@hypersoniclabs/helix-cli 0.1.27-helix3.673 → 0.1.27-helix3.675

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
@@ -2323,6 +2323,7 @@ item
2323
2323
  .option('--poll-seconds <n>', 'with --hosted-worker: queue polling interval', '10')
2324
2324
  .option('--render-timeout <seconds>', 'with --hosted-worker: hard limit per render', '900')
2325
2325
  .option('--worker <name>', 'with --hosted-worker: runner identity recorded on the job')
2326
+ .option('--follow-ref <ref>', 'with --hosted-worker: exit before the next claim when origin/<ref> changed a harness file (HELIX_VQA_FOLLOW_REF), so the next worker starts on current source')
2326
2327
  .option('--local-critic', 'also run the vision critic locally (needs ANTHROPIC_API_KEY or OPENROUTER_API_KEY)')
2327
2328
  .option('--out <dir>', 'bundle directory (frames, bundle.json, contact-sheet.jpg)')
2328
2329
  .option('--storage-state <file>', 'Playwright storageState of a signed-in QA account (Try Now and the customiser need one); default $HELIX_VQA_STORAGE_STATE')
@@ -2355,6 +2356,7 @@ item
2355
2356
  fail('✖ --hosted-worker needs HELIX_VQA_BOT_EMAIL and HELIX_VQA_BOT_PASSWORD in the environment');
2356
2357
  const { runHostedWorker } = await Promise.resolve().then(() => __importStar(require('./visualQa/hosted')));
2357
2358
  const workerApi = opts.apiUrl ?? process.env.HELIX_API_URL ?? config_1.DEFAULT_API_URL; // never a stored login: the runner is its own account
2359
+ const followRef = opts.followRef ?? process.env.HELIX_VQA_FOLLOW_REF;
2358
2360
  const summary = await runHostedWorker({
2359
2361
  apiBase: workerApi,
2360
2362
  webBase: opts.webUrl ?? process.env.HELIX_WEB_URL ?? (0, config_1.webUrlForApi)(workerApi) ?? config_1.DEFAULT_WEB_URL,
@@ -2370,6 +2372,7 @@ item
2370
2372
  out: opts.out,
2371
2373
  chrome: opts.chrome,
2372
2374
  cliVersion: (0, lib_1.cliVersion)(),
2375
+ freshness: followRef ? async () => (await Promise.resolve().then(() => __importStar(require('./visualQa/harnessFreshness')))).checkHarnessFresh({ ref: followRef }) : undefined,
2373
2376
  });
2374
2377
  if (opts.json)
2375
2378
  console.log(JSON.stringify(summary, null, 2));