@cleocode/contracts 2026.10.6 → 2026.10.7-rc.ci.674

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 (65) hide show
  1. package/dist/__tests__/evidence-atom-schema.test.js +4 -2
  2. package/dist/__tests__/evidence-atom-schema.test.js.map +1 -1
  3. package/dist/acceptance-gate.d.ts +2 -1
  4. package/dist/acceptance-gate.d.ts.map +1 -1
  5. package/dist/ask-enforce-hook.d.ts +59 -0
  6. package/dist/ask-enforce-hook.d.ts.map +1 -0
  7. package/dist/ask-enforce-hook.js +18 -0
  8. package/dist/ask-enforce-hook.js.map +1 -0
  9. package/dist/dispatch/operations-registry.d.ts.map +1 -1
  10. package/dist/dispatch/operations-registry.js +114 -0
  11. package/dist/dispatch/operations-registry.js.map +1 -1
  12. package/dist/done-plan.d.ts +1 -1
  13. package/dist/done-plan.d.ts.map +1 -1
  14. package/dist/evidence-atom-schema.d.ts +20 -1
  15. package/dist/evidence-atom-schema.d.ts.map +1 -1
  16. package/dist/evidence-atom-schema.js +23 -1
  17. package/dist/evidence-atom-schema.js.map +1 -1
  18. package/dist/git-hooks.d.ts +50 -0
  19. package/dist/git-hooks.d.ts.map +1 -0
  20. package/dist/git-hooks.js +20 -0
  21. package/dist/git-hooks.js.map +1 -0
  22. package/dist/index.d.ts +3 -2
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/nexus-account.d.ts +1 -1
  27. package/dist/nexus-account.d.ts.map +1 -1
  28. package/dist/nexus-account.js +10 -0
  29. package/dist/nexus-account.js.map +1 -1
  30. package/dist/nexus-cloud.d.ts +15 -0
  31. package/dist/nexus-cloud.d.ts.map +1 -1
  32. package/dist/nexus-cloud.js.map +1 -1
  33. package/dist/nexus-vault.d.ts +68 -1
  34. package/dist/nexus-vault.d.ts.map +1 -1
  35. package/dist/operations/docs.d.ts +75 -1
  36. package/dist/operations/docs.d.ts.map +1 -1
  37. package/dist/operations/orchestrate.d.ts +15 -1
  38. package/dist/operations/orchestrate.d.ts.map +1 -1
  39. package/dist/operations/validate.d.ts +5 -0
  40. package/dist/operations/validate.d.ts.map +1 -1
  41. package/dist/release/evidence-atoms.d.ts +2 -0
  42. package/dist/release/evidence-atoms.d.ts.map +1 -1
  43. package/dist/release/evidence-atoms.js +4 -0
  44. package/dist/release/evidence-atoms.js.map +1 -1
  45. package/dist/release/plan.d.ts +3 -3
  46. package/dist/task.d.ts +36 -0
  47. package/dist/task.d.ts.map +1 -1
  48. package/package.json +2 -2
  49. package/src/__tests__/__snapshots__/operations-registry.test.ts.snap +1 -1
  50. package/src/__tests__/evidence-atom-schema.test.ts +4 -2
  51. package/src/acceptance-gate.ts +2 -1
  52. package/src/ask-enforce-hook.ts +69 -0
  53. package/src/dispatch/operations-registry.ts +118 -0
  54. package/src/done-plan.ts +1 -0
  55. package/src/evidence-atom-schema.ts +24 -1
  56. package/src/git-hooks.ts +43 -0
  57. package/src/index.ts +11 -0
  58. package/src/nexus-account.ts +10 -0
  59. package/src/nexus-cloud.ts +16 -0
  60. package/src/nexus-vault.ts +71 -1
  61. package/src/operations/docs.ts +88 -2
  62. package/src/operations/orchestrate.ts +15 -1
  63. package/src/operations/validate.ts +5 -0
  64. package/src/release/evidence-atoms.ts +4 -0
  65. package/src/task.ts +37 -0
@@ -120,6 +120,10 @@ export const ghPrViewSchema = z
120
120
  workflowName: z.string().optional(),
121
121
  conclusion: z.string().nullable().optional(),
122
122
  status: z.string().optional(),
123
+ /** ISO start time of a CheckRun; orders re-runs of one check (T13506). */
124
+ startedAt: z.string().nullable().optional(),
125
+ /** ISO completion time of a CheckRun; orders re-runs of one check (T13506). */
126
+ completedAt: z.string().nullable().optional(),
123
127
  })
124
128
  .passthrough(),
125
129
  )
package/src/task.ts CHANGED
@@ -314,6 +314,30 @@ export type EvidenceAtom =
314
314
  */
315
315
  untestedPackages?: string[];
316
316
  }
317
+ | {
318
+ /**
319
+ * A native typecheck or lint run's receipt (T13427), bound like
320
+ * `test-run:` — fresh, covering every changed code path, tree-pinned.
321
+ */
322
+ kind: 'qa-run';
323
+ path: string;
324
+ sha256: string;
325
+ /** Absolute path of the receipt hashed at verify time. DEVICE-LOCAL, as for `test-run`. */
326
+ resolvedPath?: string;
327
+ /** Which check the receipt records. */
328
+ check: 'typecheck' | 'lint';
329
+ /** The argv that ran. */
330
+ command: string[];
331
+ /** Root-relative paths the run covered (`''` = the whole root). */
332
+ roots: string[];
333
+ /** Tool name and version, when the receipt states them. */
334
+ toolName?: string;
335
+ toolVersion?: string;
336
+ /** HEAD of the bound checkout at verify time (as for `test-run`). */
337
+ headSha?: string;
338
+ /** Tool-cache tree hash at verify time; `cleo complete` refuses the atom once it moves. */
339
+ treeHash?: string;
340
+ }
317
341
  | {
318
342
  kind: 'tool';
319
343
  tool: string;
@@ -540,6 +564,19 @@ export type EvidenceAtom =
540
564
  * vouches for a PR that was not itself green.
541
565
  */
542
566
  descendantPrHeadSha?: string;
567
+ /**
568
+ * The merge commit's own run FAILED, but every failing job had already
569
+ * failed on its nearest decided first-parent ancestor: the PR inherited
570
+ * main's breakage and introduced none (T13453). `descendantSha` is then
571
+ * the later green main run standing in. Each job records the failing
572
+ * merge-commit run and the base run it inherited from.
573
+ */
574
+ inheritedFailures?: Array<{
575
+ name: string;
576
+ mergeRunId: number;
577
+ baseSha: string;
578
+ baseRunId: number;
579
+ }>;
543
580
  /**
544
581
  * The PR edited a pinned workflow, so only default-branch `push` runs
545
582
  * attested it; its own `pull_request` runs (which ran the edited