@riddledc/riddle-proof 0.7.92 → 0.7.93

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.
@@ -4437,6 +4437,16 @@ async function findInventoryLinkIndex(check, expectedPath) {
4437
4437
  }
4438
4438
  return -1;
4439
4439
  }
4440
+ async function waitForInventoryLinkIndex(check, expectedPath) {
4441
+ const timeout = Math.min(inventoryCheckTimeout(check), 15000);
4442
+ const started = Date.now();
4443
+ let index = await findInventoryLinkIndex(check, expectedPath);
4444
+ while (index < 0 && Date.now() - started < timeout) {
4445
+ await page.waitForTimeout(250);
4446
+ index = await findInventoryLinkIndex(check, expectedPath);
4447
+ }
4448
+ return index;
4449
+ }
4440
4450
  async function collectRouteInventory(check, viewport) {
4441
4451
  const expectedRoutes = check.expected_routes || [];
4442
4452
  const expectedPaths = expectedRoutes.map((route) => normalizeRoutePath(route.path));
@@ -4493,7 +4503,7 @@ async function collectRouteInventory(check, viewport) {
4493
4503
  if (profile.target.wait_for_selector) {
4494
4504
  await waitForAnyVisibleSelector(page, profile.target.wait_for_selector, 15000).catch(() => {});
4495
4505
  }
4496
- const index = await findInventoryLinkIndex(check, expectedRoute.path);
4506
+ const index = await waitForInventoryLinkIndex(check, expectedRoute.path);
4497
4507
  if (index < 0) {
4498
4508
  result.error = "source_link_not_found";
4499
4509
  failures.push({ code: "source_link_clickthrough_missing", name: expectedRoute.name || null, path: expectedRoute.path });
package/dist/cli.cjs CHANGED
@@ -11314,6 +11314,16 @@ async function findInventoryLinkIndex(check, expectedPath) {
11314
11314
  }
11315
11315
  return -1;
11316
11316
  }
11317
+ async function waitForInventoryLinkIndex(check, expectedPath) {
11318
+ const timeout = Math.min(inventoryCheckTimeout(check), 15000);
11319
+ const started = Date.now();
11320
+ let index = await findInventoryLinkIndex(check, expectedPath);
11321
+ while (index < 0 && Date.now() - started < timeout) {
11322
+ await page.waitForTimeout(250);
11323
+ index = await findInventoryLinkIndex(check, expectedPath);
11324
+ }
11325
+ return index;
11326
+ }
11317
11327
  async function collectRouteInventory(check, viewport) {
11318
11328
  const expectedRoutes = check.expected_routes || [];
11319
11329
  const expectedPaths = expectedRoutes.map((route) => normalizeRoutePath(route.path));
@@ -11370,7 +11380,7 @@ async function collectRouteInventory(check, viewport) {
11370
11380
  if (profile.target.wait_for_selector) {
11371
11381
  await waitForAnyVisibleSelector(page, profile.target.wait_for_selector, 15000).catch(() => {});
11372
11382
  }
11373
- const index = await findInventoryLinkIndex(check, expectedRoute.path);
11383
+ const index = await waitForInventoryLinkIndex(check, expectedRoute.path);
11374
11384
  if (index < 0) {
11375
11385
  result.error = "source_link_not_found";
11376
11386
  failures.push({ code: "source_link_clickthrough_missing", name: expectedRoute.name || null, path: expectedRoute.path });
package/dist/cli.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  profileStatusExitCode,
11
11
  resolveRiddleProofProfileTargetUrl,
12
12
  resolveRiddleProofProfileTimeoutSec
13
- } from "./chunk-2SGLFPFX.js";
13
+ } from "./chunk-QLBOFUON.js";
14
14
  import {
15
15
  createRiddleApiClient,
16
16
  parseRiddleViewport
package/dist/index.cjs CHANGED
@@ -13166,6 +13166,16 @@ async function findInventoryLinkIndex(check, expectedPath) {
13166
13166
  }
13167
13167
  return -1;
13168
13168
  }
13169
+ async function waitForInventoryLinkIndex(check, expectedPath) {
13170
+ const timeout = Math.min(inventoryCheckTimeout(check), 15000);
13171
+ const started = Date.now();
13172
+ let index = await findInventoryLinkIndex(check, expectedPath);
13173
+ while (index < 0 && Date.now() - started < timeout) {
13174
+ await page.waitForTimeout(250);
13175
+ index = await findInventoryLinkIndex(check, expectedPath);
13176
+ }
13177
+ return index;
13178
+ }
13169
13179
  async function collectRouteInventory(check, viewport) {
13170
13180
  const expectedRoutes = check.expected_routes || [];
13171
13181
  const expectedPaths = expectedRoutes.map((route) => normalizeRoutePath(route.path));
@@ -13222,7 +13232,7 @@ async function collectRouteInventory(check, viewport) {
13222
13232
  if (profile.target.wait_for_selector) {
13223
13233
  await waitForAnyVisibleSelector(page, profile.target.wait_for_selector, 15000).catch(() => {});
13224
13234
  }
13225
- const index = await findInventoryLinkIndex(check, expectedRoute.path);
13235
+ const index = await waitForInventoryLinkIndex(check, expectedRoute.path);
13226
13236
  if (index < 0) {
13227
13237
  result.error = "source_link_not_found";
13228
13238
  failures.push({ code: "source_link_clickthrough_missing", name: expectedRoute.name || null, path: expectedRoute.path });
package/dist/index.js CHANGED
@@ -58,7 +58,7 @@ import {
58
58
  resolveRiddleProofProfileTimeoutSec,
59
59
  slugifyRiddleProofProfileName,
60
60
  summarizeRiddleProofProfileResult
61
- } from "./chunk-2SGLFPFX.js";
61
+ } from "./chunk-QLBOFUON.js";
62
62
  import {
63
63
  DEFAULT_RIDDLE_API_BASE_URL,
64
64
  DEFAULT_RIDDLE_API_KEY_FILE,
package/dist/profile.cjs CHANGED
@@ -4480,6 +4480,16 @@ async function findInventoryLinkIndex(check, expectedPath) {
4480
4480
  }
4481
4481
  return -1;
4482
4482
  }
4483
+ async function waitForInventoryLinkIndex(check, expectedPath) {
4484
+ const timeout = Math.min(inventoryCheckTimeout(check), 15000);
4485
+ const started = Date.now();
4486
+ let index = await findInventoryLinkIndex(check, expectedPath);
4487
+ while (index < 0 && Date.now() - started < timeout) {
4488
+ await page.waitForTimeout(250);
4489
+ index = await findInventoryLinkIndex(check, expectedPath);
4490
+ }
4491
+ return index;
4492
+ }
4483
4493
  async function collectRouteInventory(check, viewport) {
4484
4494
  const expectedRoutes = check.expected_routes || [];
4485
4495
  const expectedPaths = expectedRoutes.map((route) => normalizeRoutePath(route.path));
@@ -4536,7 +4546,7 @@ async function collectRouteInventory(check, viewport) {
4536
4546
  if (profile.target.wait_for_selector) {
4537
4547
  await waitForAnyVisibleSelector(page, profile.target.wait_for_selector, 15000).catch(() => {});
4538
4548
  }
4539
- const index = await findInventoryLinkIndex(check, expectedRoute.path);
4549
+ const index = await waitForInventoryLinkIndex(check, expectedRoute.path);
4540
4550
  if (index < 0) {
4541
4551
  result.error = "source_link_not_found";
4542
4552
  failures.push({ code: "source_link_clickthrough_missing", name: expectedRoute.name || null, path: expectedRoute.path });
package/dist/profile.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  resolveRiddleProofProfileTimeoutSec,
20
20
  slugifyRiddleProofProfileName,
21
21
  summarizeRiddleProofProfileResult
22
- } from "./chunk-2SGLFPFX.js";
22
+ } from "./chunk-QLBOFUON.js";
23
23
  export {
24
24
  RIDDLE_PROOF_PROFILE_CHECK_TYPES,
25
25
  RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
@@ -292,7 +292,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
292
292
  blocking?: boolean;
293
293
  details?: Record<string, unknown>;
294
294
  ok: boolean;
295
- action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
295
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
296
296
  state_path: string;
297
297
  stage: any;
298
298
  summary: string;
@@ -382,7 +382,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
382
382
  continueWithStage?: WorkflowStage | null;
383
383
  blocking?: boolean;
384
384
  details?: Record<string, unknown>;
385
- action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
385
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
386
386
  state_path: string;
387
387
  stage: any;
388
388
  checkpoint: string;
@@ -659,7 +659,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
659
659
  error?: undefined;
660
660
  } | {
661
661
  ok: boolean;
662
- action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
662
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
663
663
  state_path: string;
664
664
  stage: any;
665
665
  summary: string;
@@ -292,7 +292,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
292
292
  blocking?: boolean;
293
293
  details?: Record<string, unknown>;
294
294
  ok: boolean;
295
- action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
295
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
296
296
  state_path: string;
297
297
  stage: any;
298
298
  summary: string;
@@ -382,7 +382,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
382
382
  continueWithStage?: WorkflowStage | null;
383
383
  blocking?: boolean;
384
384
  details?: Record<string, unknown>;
385
- action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
385
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
386
386
  state_path: string;
387
387
  stage: any;
388
388
  checkpoint: string;
@@ -659,7 +659,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
659
659
  error?: undefined;
660
660
  } | {
661
661
  ok: boolean;
662
- action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
662
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
663
663
  state_path: string;
664
664
  stage: any;
665
665
  summary: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof",
3
- "version": "0.7.92",
3
+ "version": "0.7.93",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",