@vm0/cli 3.2.1 → 3.2.2

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.
Files changed (2) hide show
  1. package/index.js +12 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -13104,9 +13104,9 @@ async function pollEvents(runId, timeoutSeconds, options) {
13104
13104
  const pollIntervalMs = 500;
13105
13105
  const timeoutMs = timeoutSeconds * 1e3;
13106
13106
  const startTime = Date.now();
13107
- const startTimestamp = /* @__PURE__ */ new Date();
13107
+ const startTimestamp = options.startTimestamp;
13108
13108
  let previousTimestamp = startTimestamp;
13109
- const verbose = options?.verbose;
13109
+ const verbose = options.verbose;
13110
13110
  while (!complete) {
13111
13111
  const elapsed = Date.now() - startTime;
13112
13112
  if (elapsed > timeoutMs) {
@@ -13185,6 +13185,7 @@ var runCmd = new Command2().name("run").description("Execute an agent").argument
13185
13185
  String(DEFAULT_TIMEOUT_SECONDS)
13186
13186
  ).option("-v, --verbose", "Show verbose output with timing information").action(
13187
13187
  async (identifier, prompt, options) => {
13188
+ const startTimestamp = /* @__PURE__ */ new Date();
13188
13189
  const timeoutSeconds = parseInt(options.timeout, 10);
13189
13190
  if (isNaN(timeoutSeconds) || timeoutSeconds <= 0) {
13190
13191
  console.error(
@@ -13257,7 +13258,8 @@ var runCmd = new Command2().name("run").description("Execute an agent").argument
13257
13258
  conversationId: options.conversation
13258
13259
  });
13259
13260
  const succeeded = await pollEvents(response.runId, timeoutSeconds, {
13260
- verbose
13261
+ verbose,
13262
+ startTimestamp
13261
13263
  });
13262
13264
  if (!succeeded) {
13263
13265
  process.exit(1);
@@ -13295,6 +13297,7 @@ runCmd.command("resume").description("Resume an agent run from a checkpoint (use
13295
13297
  String(DEFAULT_TIMEOUT_SECONDS)
13296
13298
  ).option("-v, --verbose", "Show verbose output with timing information").action(
13297
13299
  async (checkpointId, prompt, options, command) => {
13300
+ const startTimestamp = /* @__PURE__ */ new Date();
13298
13301
  const allOpts = command.optsWithGlobals();
13299
13302
  const timeoutSeconds = parseInt(options.timeout, 10);
13300
13303
  if (isNaN(timeoutSeconds) || timeoutSeconds <= 0) {
@@ -13328,7 +13331,8 @@ runCmd.command("resume").description("Resume an agent run from a checkpoint (use
13328
13331
  volumeVersions: Object.keys(allOpts.volumeVersion).length > 0 ? allOpts.volumeVersion : void 0
13329
13332
  });
13330
13333
  const succeeded = await pollEvents(response.runId, timeoutSeconds, {
13331
- verbose
13334
+ verbose,
13335
+ startTimestamp
13332
13336
  });
13333
13337
  if (!succeeded) {
13334
13338
  process.exit(1);
@@ -13365,6 +13369,7 @@ runCmd.command("continue").description(
13365
13369
  String(DEFAULT_TIMEOUT_SECONDS)
13366
13370
  ).option("-v, --verbose", "Show verbose output with timing information").action(
13367
13371
  async (agentSessionId, prompt, options, command) => {
13372
+ const startTimestamp = /* @__PURE__ */ new Date();
13368
13373
  const allOpts = command.optsWithGlobals();
13369
13374
  const timeoutSeconds = parseInt(options.timeout, 10);
13370
13375
  if (isNaN(timeoutSeconds) || timeoutSeconds <= 0) {
@@ -13399,7 +13404,8 @@ runCmd.command("continue").description(
13399
13404
  volumeVersions: Object.keys(allOpts.volumeVersion).length > 0 ? allOpts.volumeVersion : void 0
13400
13405
  });
13401
13406
  const succeeded = await pollEvents(response.runId, timeoutSeconds, {
13402
- verbose
13407
+ verbose,
13408
+ startTimestamp
13403
13409
  });
13404
13410
  if (!succeeded) {
13405
13411
  process.exit(1);
@@ -14130,7 +14136,7 @@ var artifactCommand = new Command10().name("artifact").description("Manage cloud
14130
14136
 
14131
14137
  // src/index.ts
14132
14138
  var program = new Command11();
14133
- program.name("vm0").description("VM0 CLI - A modern build tool").version("3.2.1");
14139
+ program.name("vm0").description("VM0 CLI - A modern build tool").version("3.2.2");
14134
14140
  program.command("hello").description("Say hello from the App").action(() => {
14135
14141
  console.log(chalk11.blue("Welcome to the VM0 CLI!"));
14136
14142
  console.log(chalk11.green(`Core says: ${FOO}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",