@kvell007/embed-labs-cli 0.1.0-alpha.57 → 0.1.0-alpha.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -121,12 +121,12 @@ const BOARD_KNOWLEDGE_FILE_USAGE = "Usage: embed board knowledge file <template_
121
121
  const MODEL_LIST_USAGE = "Usage: embed model list [--json]";
122
122
  const MODEL_DEFAULT_USAGE = "Usage: embed model default [--json]";
123
123
  const SERVICE_MODES_USAGE = "Usage: embed service modes [--json]";
124
- const AGENT_RUN_USAGE = "Usage: embed agent run --prompt <request> [--account <account_id>] [--workspace <workspace_id>] [--provider stub|openai|bai|cc|claude-code] [--model <model>] [--max-tool-calls 6] [--host <ip>] [--ports 22,15301] [--artifact <local_file>|--artifact-id <artifact_id>|--artifact-task <task_id>] [--artifact-output <path>] [--remote-path <path>] [--run] [--approve] [--json]";
124
+ const AGENT_RUN_USAGE = "Usage: embed agent run --prompt <request> [--account <account_id>] [--workspace <workspace_id>] [--provider stub|openai|bai|cc|claude-code] [--model <model>] [--max-tool-calls 6] [--host <ip>] [--ports 22,15301] [--artifact <local_file>|--artifact-id <artifact_id>|--artifact-task <task_id>] [--artifact-output <path>] [--remote-path <path>] [--run-command <cmd>] [--run] [--approve] [--json]";
125
125
  let cachedLocalHardwareFingerprint;
126
126
  const TOOL_LIST_USAGE = "Usage: embed tool list [--json]";
127
127
  const TOOL_CALL_USAGE = "Usage: embed tool call <capability_id> [--input-json '<json>'] [--approve] [--json]";
128
128
  const MCP_TOOL_EVENT_USAGE = "Usage: embed mcp log --tool <tool_name> [--client codex|opencode] [--mode local_ai|server_ai] [--local-device-id <id>] [--server-model-used true|false] [--success true|false] [--request-id <id>] [--duration-ms <ms>] [--input-summary <text>] [--output-summary <text>] [--json]";
129
- const BOARD_DEPLOY_TAISHANPI_USAGE = "Usage: embed deploy taishanpi --host <ip> --artifact <local_file> --approve [--user root] [--remote-path /userdata/embed-labs/apps/app] [--run] [--timeout 30] [--json]";
129
+ const BOARD_DEPLOY_TAISHANPI_USAGE = "Usage: embed deploy taishanpi --host <ip> --artifact <local_file> --approve [--user root] [--remote-path /userdata/embed-labs/apps/app] [--run-command <cmd>] [--run] [--timeout 30] [--json]";
130
130
  const CLOUD_TASK_EVENT_APPEND_USAGE = "Usage: embed cloud task event append <task_id> [--state <state>] [--progress-stage <stage>|--stage <stage>] [--progress-text <text>|--message <text>] [--progress-percent 0-100] [--severity info|warning|error] [--type <event_type>] [--artifact-json '<json>'] [--evidence-json '<json>'] [--json]";
131
131
  const TASK_STATES = new Set([
132
132
  "created",
@@ -3719,6 +3719,10 @@ function agentRunToolInputs(parsed) {
3719
3719
  if (remotePath.error) {
3720
3720
  return remotePath.error;
3721
3721
  }
3722
+ const runCommand = optionalTrimmedStringFlag(parsed, "run-command");
3723
+ if (runCommand.error) {
3724
+ return runCommand.error;
3725
+ }
3722
3726
  const user = optionalTrimmedStringFlag(parsed, "user");
3723
3727
  if (user.error) {
3724
3728
  return user.error;
@@ -3772,6 +3776,7 @@ function agentRunToolInputs(parsed) {
3772
3776
  user: user.value,
3773
3777
  artifact_path: artifact.value,
3774
3778
  remote_path: remotePath.value,
3779
+ run_command: runCommand.value,
3775
3780
  run: booleanFlag(parsed, "run") || undefined,
3776
3781
  timeout_seconds: timeout.value
3777
3782
  });
@@ -4795,7 +4800,7 @@ function isTaishanPiDeployCommand(parsed) {
4795
4800
  || area === "deploy";
4796
4801
  }
4797
4802
  function boardDeployTaishanPiRequest(parsed) {
4798
- const unknownFlag = firstUnknownFlag(parsed, ["json", "host", "user", "artifact", "artifact-path", "remote-path", "run", "timeout", "approve", "approved"]);
4803
+ const unknownFlag = firstUnknownFlag(parsed, ["json", "host", "user", "artifact", "artifact-path", "remote-path", "run-command", "run", "timeout", "approve", "approved"]);
4799
4804
  if (unknownFlag) {
4800
4805
  return `Unknown flag --${unknownFlag}. ${BOARD_DEPLOY_TAISHANPI_USAGE}`;
4801
4806
  }
@@ -4837,6 +4842,10 @@ function boardDeployTaishanPiRequest(parsed) {
4837
4842
  if (remotePath.error) {
4838
4843
  return remotePath.error;
4839
4844
  }
4845
+ const runCommand = optionalTrimmedStringFlag(parsed, "run-command");
4846
+ if (runCommand.error) {
4847
+ return runCommand.error;
4848
+ }
4840
4849
  const timeout = optionalNonNegativeIntegerFlag(parsed, "timeout");
4841
4850
  if (timeout.error) {
4842
4851
  return timeout.error;
@@ -4851,6 +4860,7 @@ function boardDeployTaishanPiRequest(parsed) {
4851
4860
  user: user.value,
4852
4861
  artifact_path: artifact.value,
4853
4862
  remote_path: remotePath.value,
4863
+ run_command: runCommand.value,
4854
4864
  run: booleanFlag(parsed, "run") || undefined,
4855
4865
  timeout_seconds: timeout.value,
4856
4866
  approved: approval.value || undefined
@@ -7120,6 +7130,18 @@ function renderLocalToolchainList(result) {
7120
7130
  }
7121
7131
  }
7122
7132
  lines.push(` install_modes=${environment.install_modes.join(",")}`);
7133
+ if (environment.execution) {
7134
+ lines.push(` execution=${environment.execution.kind} supported=${environment.execution.supported}`);
7135
+ if (environment.execution.required_host) {
7136
+ lines.push(` execution_required_host=${environment.execution.required_host}`);
7137
+ }
7138
+ if (environment.execution.actual_host) {
7139
+ lines.push(` execution_actual_host=${environment.execution.actual_host}`);
7140
+ }
7141
+ if (environment.execution.reason) {
7142
+ lines.push(` execution_reason=${environment.execution.reason}`);
7143
+ }
7144
+ }
7123
7145
  lines.push(` install_command=${environment.install_command}`);
7124
7146
  if (environment.status === "update_available") {
7125
7147
  lines.push(` update_command=${environment.update_command}`);
@@ -7162,12 +7184,16 @@ function renderWindowsWslStatus(result) {
7162
7184
  `applicable=${result.applicable}`,
7163
7185
  `wsl_available=${result.wsl_available}`,
7164
7186
  `usable=${result.usable}`,
7187
+ `taishanpi_execution=${result.taishanpi_execution.status} supported=${result.taishanpi_execution.supported}`,
7188
+ `taishanpi_required_host=${result.taishanpi_execution.required_host}`,
7189
+ result.taishanpi_execution.actual_host ? `taishanpi_actual_host=${result.taishanpi_execution.actual_host}` : "",
7190
+ `taishanpi_reason=${result.taishanpi_execution.reason}`,
7165
7191
  `checked_at=${result.checked_at}`,
7166
7192
  `status_command=${result.commands.status}`,
7167
7193
  `list_command=${result.commands.list}`,
7168
7194
  `list_online_command=${result.commands.list_online}`,
7169
7195
  `install_command=${result.commands.install_ubuntu}`
7170
- ];
7196
+ ].filter(Boolean);
7171
7197
  if (result.distributions.length > 0) {
7172
7198
  lines.push("distributions:");
7173
7199
  for (const distro of result.distributions) {