@vm0/cli 9.160.7 → 9.160.8

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/index.js CHANGED
@@ -68,7 +68,7 @@ import {
68
68
  source_default,
69
69
  volumeConfigSchema,
70
70
  withErrorHandler
71
- } from "./chunk-JLWCGWMZ.js";
71
+ } from "./chunk-3P3WTJU2.js";
72
72
  import {
73
73
  __toESM,
74
74
  init_esm_shims
@@ -387,7 +387,7 @@ function getConfigPath() {
387
387
  return join(os.homedir(), ".vm0", "config.json");
388
388
  }
389
389
  var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
390
- console.log(source_default.bold(`VM0 CLI v${"9.160.7"}`));
390
+ console.log(source_default.bold(`VM0 CLI v${"9.160.8"}`));
391
391
  console.log();
392
392
  const config = await loadConfig();
393
393
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -4280,7 +4280,7 @@ var composeCommand = new Command().name("compose").description("Create or update
4280
4280
  options.autoUpdate = false;
4281
4281
  }
4282
4282
  if (options.autoUpdate !== false) {
4283
- await startSilentUpgrade("9.160.7");
4283
+ await startSilentUpgrade("9.160.8");
4284
4284
  }
4285
4285
  try {
4286
4286
  let result;
@@ -4372,7 +4372,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
4372
4372
  withErrorHandler(
4373
4373
  async (identifier, prompt, options) => {
4374
4374
  if (options.autoUpdate !== false) {
4375
- await startSilentUpgrade("9.160.7");
4375
+ await startSilentUpgrade("9.160.8");
4376
4376
  }
4377
4377
  const { name, version } = parseIdentifier(identifier);
4378
4378
  let composeId;
@@ -6165,13 +6165,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
6165
6165
  if (latestVersion === null) {
6166
6166
  throw new Error("Could not check for updates. Please try again later.");
6167
6167
  }
6168
- if (latestVersion === "9.160.7") {
6169
- console.log(source_default.green(`\u2713 Already up to date (${"9.160.7"})`));
6168
+ if (latestVersion === "9.160.8") {
6169
+ console.log(source_default.green(`\u2713 Already up to date (${"9.160.8"})`));
6170
6170
  return;
6171
6171
  }
6172
6172
  console.log(
6173
6173
  source_default.yellow(
6174
- `Current version: ${"9.160.7"} -> Latest version: ${latestVersion}`
6174
+ `Current version: ${"9.160.8"} -> Latest version: ${latestVersion}`
6175
6175
  )
6176
6176
  );
6177
6177
  console.log();
@@ -6198,7 +6198,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
6198
6198
  const success = await performUpgrade(packageManager);
6199
6199
  if (success) {
6200
6200
  console.log(
6201
- source_default.green(`\u2713 Upgraded from ${"9.160.7"} to ${latestVersion}`)
6201
+ source_default.green(`\u2713 Upgraded from ${"9.160.8"} to ${latestVersion}`)
6202
6202
  );
6203
6203
  return;
6204
6204
  }
@@ -6265,7 +6265,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
6265
6265
 
6266
6266
  // src/index.ts
6267
6267
  var program = new Command();
6268
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.160.7");
6268
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.160.8");
6269
6269
  program.addCommand(authCommand);
6270
6270
  program.addCommand(infoCommand);
6271
6271
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.160.7",
3
+ "version": "9.160.8",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",
package/zero.js CHANGED
@@ -148,7 +148,7 @@ import {
148
148
  zeroAgentCustomSkillNameSchema,
149
149
  zeroLocalAgentCommand,
150
150
  zeroTokenAllowsFeatureSwitch
151
- } from "./chunk-JLWCGWMZ.js";
151
+ } from "./chunk-3P3WTJU2.js";
152
152
  import {
153
153
  __commonJS,
154
154
  __require,
@@ -34127,13 +34127,21 @@ function addTargetOptions(command) {
34127
34127
  function appOption(command) {
34128
34128
  return command.requiredOption("--app <name>", "Target app name or bundle id");
34129
34129
  }
34130
+ function auditMetadataValue(metadata, key) {
34131
+ const value = metadata?.[key];
34132
+ return typeof value === "string" && value.length > 0 ? value : null;
34133
+ }
34130
34134
  function formatAuditEvent(event) {
34135
+ const dispatchMode = auditMetadataValue(event.redactedResult, "dispatchMode");
34136
+ const inputRisk = auditMetadataValue(event.redactedResult, "inputRisk");
34131
34137
  return [
34132
34138
  `${event.createdAt} ${event.event} ${event.kind}`,
34133
34139
  `command=${event.commandId}`,
34134
34140
  event.hostId ? `host=${event.hostId}` : null,
34135
34141
  event.app ? `app=${event.app}` : null,
34136
- event.approvalOutcome ? `approval=${event.approvalOutcome}` : null
34142
+ event.approvalOutcome ? `approval=${event.approvalOutcome}` : null,
34143
+ dispatchMode ? `dispatch=${dispatchMode}` : null,
34144
+ inputRisk ? `risk=${inputRisk}` : null
34137
34145
  ].filter((part) => {
34138
34146
  return part !== null;
34139
34147
  }).join(" ");
@@ -34219,7 +34227,10 @@ var typeTextCommand = appOption(
34219
34227
  );
34220
34228
  var pressKeyCommand = appOption(
34221
34229
  addTargetOptions(
34222
- new Command().name("press-key").description("Press a key or key combination in the target app").requiredOption("--key <key>", "Key or key combination to press").action(
34230
+ new Command().name("press-key").description("Press a key or key combination in the target app").requiredOption(
34231
+ "--key <key>",
34232
+ "Key or key combination to press, for example Command+K or Control+K"
34233
+ ).action(
34223
34234
  withErrorHandler(async (options) => {
34224
34235
  await runWriteCommand("keyboard.press_key", options, {
34225
34236
  app: options.app,
@@ -36895,7 +36906,7 @@ function registerZeroCommands(prog, commands) {
36895
36906
  var program = new Command();
36896
36907
  program.name("zero").description(
36897
36908
  "Zero CLI \u2014 interact with the zero platform from inside the sandbox"
36898
- ).version("9.160.7").addHelpText("after", () => {
36909
+ ).version("9.160.8").addHelpText("after", () => {
36899
36910
  return buildZeroHelpText();
36900
36911
  });
36901
36912
  if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {