Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions nemoclaw/src/commands/status.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

import { exec } from "node:child_process";
import { execFile } from "node:child_process";
import { existsSync } from "node:fs";
import { promisify } from "node:util";
import type { PluginLogger, NemoClawConfig } from "../index.js";
import { loadState } from "../blueprint/state.js";

const execAsync = promisify(exec);
const execFileAsync = promisify(execFile);

/**
* Detect whether the plugin is running inside an OpenShell sandbox.
Expand Down Expand Up @@ -128,7 +128,7 @@ async function getSandboxStatus(sandboxName: string, insideSandbox: boolean): Pr
return { name: sandboxName, running: false, uptime: null, insideSandbox: true };
}
try {
const { stdout } = await execAsync(`openshell sandbox status ${sandboxName} --json`, {
const { stdout } = await execFileAsync("openshell", ["sandbox", "status", sandboxName, "--json"], {
timeout: 5000,
});
const parsed = JSON.parse(stdout) as SandboxStatusResponse;
Expand Down Expand Up @@ -162,7 +162,7 @@ async function getInferenceStatus(insideSandbox: boolean): Promise<InferenceStat
return { configured: false, provider: null, model: null, endpoint: null, insideSandbox: true };
}
try {
const { stdout } = await execAsync("openshell inference get --json", {
const { stdout } = await execFileAsync("openshell", ["inference", "get", "--json"], {
timeout: 5000,
});
const parsed = JSON.parse(stdout) as InferenceStatusResponse;
Expand Down