@cleocode/contracts 2026.10.10-canary.1 → 2026.10.10-rc.ci.679
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 +93 -0
- package/dist/dispatch/operations-registry.js.map +1 -1
- package/dist/invariants/sync-write-invariants.d.ts.map +1 -1
- package/dist/invariants/sync-write-invariants.js +12 -0
- package/dist/invariants/sync-write-invariants.js.map +1 -1
- package/dist/operations/docs.d.ts +44 -1
- package/dist/operations/docs.d.ts.map +1 -1
- package/dist/operations/docs.js.map +1 -1
- package/dist/release/plan.d.ts +1 -0
- package/dist/release/plan.d.ts.map +1 -1
- package/dist/release/plan.js +2 -0
- package/dist/release/plan.js.map +1 -1
- package/dist/task.d.ts +4 -0
- package/dist/task.d.ts.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 +97 -0
- package/src/invariants/sync-write-invariants.ts +49 -0
- package/src/operations/docs.ts +45 -0
- package/src/release/plan.ts +2 -0
- package/src/task.ts +4 -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;AAeD,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;AAeD,6DAA6D;AAC7D,eAAO,MAAM,UAAU,EAAE,YAAY,EA8zVpC,CAAC"}
|
|
@@ -7931,6 +7931,59 @@ export const OPERATIONS = [
|
|
|
7931
7931
|
},
|
|
7932
7932
|
],
|
|
7933
7933
|
},
|
|
7934
|
+
// ── docs.link-decision / docs.unlink-decision (T13598) ──────────────────
|
|
7935
|
+
{
|
|
7936
|
+
gateway: 'mutate',
|
|
7937
|
+
domain: 'docs',
|
|
7938
|
+
operation: 'link-decision',
|
|
7939
|
+
description: 'docs.link-decision (mutate) — link a D#### decision to the ADR doc that ratifies it (decision_adr_links); idempotent, refuses a revoked pair (T13598)',
|
|
7940
|
+
tier: 1,
|
|
7941
|
+
idempotent: true,
|
|
7942
|
+
sessionRequired: false,
|
|
7943
|
+
requiredParams: ['adrSlug', 'decisionId'],
|
|
7944
|
+
params: [
|
|
7945
|
+
{
|
|
7946
|
+
name: 'adrSlug',
|
|
7947
|
+
type: 'string',
|
|
7948
|
+
required: true,
|
|
7949
|
+
description: 'Slug of the ADR doc',
|
|
7950
|
+
cli: { positional: true },
|
|
7951
|
+
},
|
|
7952
|
+
{
|
|
7953
|
+
name: 'decisionId',
|
|
7954
|
+
type: 'string',
|
|
7955
|
+
required: true,
|
|
7956
|
+
description: 'The D#### brain ledger decision id the ADR ratifies',
|
|
7957
|
+
cli: { positional: true },
|
|
7958
|
+
},
|
|
7959
|
+
],
|
|
7960
|
+
},
|
|
7961
|
+
{
|
|
7962
|
+
gateway: 'mutate',
|
|
7963
|
+
domain: 'docs',
|
|
7964
|
+
operation: 'unlink-decision',
|
|
7965
|
+
description: 'docs.unlink-decision (mutate) — revoke a decision-to-ADR link as a permanent tombstone; the pair can never be re-linked (T13598)',
|
|
7966
|
+
tier: 1,
|
|
7967
|
+
idempotent: true,
|
|
7968
|
+
sessionRequired: false,
|
|
7969
|
+
requiredParams: ['adrSlug', 'decisionId'],
|
|
7970
|
+
params: [
|
|
7971
|
+
{
|
|
7972
|
+
name: 'adrSlug',
|
|
7973
|
+
type: 'string',
|
|
7974
|
+
required: true,
|
|
7975
|
+
description: 'Slug of the ADR doc',
|
|
7976
|
+
cli: { positional: true },
|
|
7977
|
+
},
|
|
7978
|
+
{
|
|
7979
|
+
name: 'decisionId',
|
|
7980
|
+
type: 'string',
|
|
7981
|
+
required: true,
|
|
7982
|
+
description: 'The D#### brain ledger decision id to unlink',
|
|
7983
|
+
cli: { positional: true },
|
|
7984
|
+
},
|
|
7985
|
+
],
|
|
7986
|
+
},
|
|
7934
7987
|
// ── docs.supersede (T10162) ──────────────────────────────────────────────
|
|
7935
7988
|
{
|
|
7936
7989
|
gateway: 'mutate',
|
|
@@ -8360,6 +8413,40 @@ export const OPERATIONS = [
|
|
|
8360
8413
|
},
|
|
8361
8414
|
],
|
|
8362
8415
|
},
|
|
8416
|
+
// ── docs.triage (T13446 — Epic T13340 / Saga T13339) ──────────────────────
|
|
8417
|
+
{
|
|
8418
|
+
gateway: 'query',
|
|
8419
|
+
domain: 'docs',
|
|
8420
|
+
operation: 'triage',
|
|
8421
|
+
description: 'docs.triage (query) — batch-triage docs through the docs.triage decision site: ' +
|
|
8422
|
+
'proposed keep/update/supersede/archive verdicts plus staleness scores, oldest first ' +
|
|
8423
|
+
'(default: drafts). Proposals only — never mutates a doc; --record persists each ' +
|
|
8424
|
+
'verdict as a proposed D#### decision.',
|
|
8425
|
+
tier: 1,
|
|
8426
|
+
idempotent: true,
|
|
8427
|
+
sessionRequired: false,
|
|
8428
|
+
requiredParams: [],
|
|
8429
|
+
params: [
|
|
8430
|
+
{
|
|
8431
|
+
name: 'limit',
|
|
8432
|
+
type: 'number',
|
|
8433
|
+
required: false,
|
|
8434
|
+
description: 'Maximum docs to scan, oldest first (default 25)',
|
|
8435
|
+
},
|
|
8436
|
+
{
|
|
8437
|
+
name: 'status',
|
|
8438
|
+
type: 'string',
|
|
8439
|
+
required: false,
|
|
8440
|
+
description: 'Lifecycle status to scan (default draft)',
|
|
8441
|
+
},
|
|
8442
|
+
{
|
|
8443
|
+
name: 'record',
|
|
8444
|
+
type: 'boolean',
|
|
8445
|
+
required: false,
|
|
8446
|
+
description: 'Persist every verdict as a proposed D#### decision (default false)',
|
|
8447
|
+
},
|
|
8448
|
+
],
|
|
8449
|
+
},
|
|
8363
8450
|
{
|
|
8364
8451
|
gateway: 'mutate',
|
|
8365
8452
|
domain: 'docs',
|
|
@@ -9146,6 +9233,12 @@ export const OPERATIONS = [
|
|
|
9146
9233
|
required: false,
|
|
9147
9234
|
description: 'Require the unified-hooks pilot for this stable promotion',
|
|
9148
9235
|
},
|
|
9236
|
+
{
|
|
9237
|
+
name: 'hooksV1Waiver',
|
|
9238
|
+
type: 'string',
|
|
9239
|
+
required: false,
|
|
9240
|
+
description: 'Audited reason to ship a source change that opens the hooks-v1 gate without the promotion',
|
|
9241
|
+
},
|
|
9149
9242
|
{
|
|
9150
9243
|
name: 'dryRun',
|
|
9151
9244
|
type: 'boolean',
|