@cleocode/contracts 2026.6.15 → 2026.6.18
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/dispatch/operations-registry.d.ts.map +1 -1
- package/dist/dispatch/operations-registry.js +41 -0
- package/dist/dispatch/operations-registry.js.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/__snapshots__/operations-registry.test.ts.snap +1 -1
- package/src/dispatch/operations-registry.ts +45 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations-registry.d.ts","sourceRoot":"","sources":["../../src/dispatch/operations-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAEjG,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAMvE;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,YAAY,GAAG,YAAY,CAExD;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,eAAe,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,CAE1F;AAMD,6DAA6D;AAC7D,eAAO,MAAM,UAAU,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"operations-registry.d.ts","sourceRoot":"","sources":["../../src/dispatch/operations-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAEjG,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAMvE;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,YAAY,GAAG,YAAY,CAExD;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,eAAe,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,CAE1F;AAMD,6DAA6D;AAC7D,eAAO,MAAM,UAAU,EAAE,YAAY,EAmoTpC,CAAC"}
|
|
@@ -8891,6 +8891,22 @@ export const OPERATIONS = [
|
|
|
8891
8891
|
},
|
|
8892
8892
|
],
|
|
8893
8893
|
},
|
|
8894
|
+
// ── selfimprove query: probe (T11988 — seeded-code-regression scenario) ────────
|
|
8895
|
+
// Pure read-only op that returns `{ probe: 'ok', version: probeVersion() }`.
|
|
8896
|
+
// The `probe-helper.ts` intentionally ships with `probeVersion()` returning `2`
|
|
8897
|
+
// (should be `1`) so the seeded-code-regression scenario replay diverges from its
|
|
8898
|
+
// golden (`version: 1`) and gives the fix-gen LLM stage a real, patchable bug.
|
|
8899
|
+
{
|
|
8900
|
+
gateway: 'query',
|
|
8901
|
+
domain: 'selfimprove',
|
|
8902
|
+
operation: 'probe',
|
|
8903
|
+
description: 'selfimprove.probe (query) — returns { probe: "ok", version: 1 } (health/version probe). Used by the seeded-code-regression scenario to validate the fix-gen pipeline (T11988).',
|
|
8904
|
+
tier: 2,
|
|
8905
|
+
idempotent: true,
|
|
8906
|
+
sessionRequired: false,
|
|
8907
|
+
requiredParams: [],
|
|
8908
|
+
params: [],
|
|
8909
|
+
},
|
|
8894
8910
|
// ── selfimprove mutate: run (T11889 / T11889-D — the self-dogfooding loop) ──
|
|
8895
8911
|
// Boots ONE sandbox → replays the named canned scenario → diffs result
|
|
8896
8912
|
// envelopes vs the golden → on a regression emits ONE leased `selfimprove_dhq`
|
|
@@ -9505,5 +9521,30 @@ export const OPERATIONS = [
|
|
|
9505
9521
|
},
|
|
9506
9522
|
],
|
|
9507
9523
|
},
|
|
9524
|
+
// T11995 — Janitor MVP: orphan process reaper + stale scope/lock/debris sweep
|
|
9525
|
+
{
|
|
9526
|
+
gateway: 'mutate',
|
|
9527
|
+
domain: 'admin',
|
|
9528
|
+
operation: 'janitor.run',
|
|
9529
|
+
description: 'admin.janitor.run (mutate) — run the janitor sweep: reap orphan processes, stop dead cleo-owned scopes, reclaim stale locks, prune tmp debris',
|
|
9530
|
+
tier: 1,
|
|
9531
|
+
idempotent: true,
|
|
9532
|
+
sessionRequired: false,
|
|
9533
|
+
requiredParams: [],
|
|
9534
|
+
params: [
|
|
9535
|
+
{
|
|
9536
|
+
name: 'dryRun',
|
|
9537
|
+
type: 'boolean',
|
|
9538
|
+
required: false,
|
|
9539
|
+
description: 'Report planned actions without mutating anything.',
|
|
9540
|
+
},
|
|
9541
|
+
{
|
|
9542
|
+
name: 'gracePeriodMs',
|
|
9543
|
+
type: 'number',
|
|
9544
|
+
required: false,
|
|
9545
|
+
description: 'Minimum age (ms) of an unregistered process before reap eligibility (default: 600000).',
|
|
9546
|
+
},
|
|
9547
|
+
],
|
|
9548
|
+
},
|
|
9508
9549
|
];
|
|
9509
9550
|
//# sourceMappingURL=operations-registry.js.map
|