@cleocode/contracts 2026.5.100 → 2026.5.102
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/boundary.d.ts +166 -0
- package/dist/boundary.d.ts.map +1 -0
- package/dist/boundary.js +663 -0
- package/dist/boundary.js.map +1 -0
- package/dist/dispatch/operations-registry.d.ts.map +1 -1
- package/dist/dispatch/operations-registry.js +53 -0
- package/dist/dispatch/operations-registry.js.map +1 -1
- package/dist/doctor.d.ts +76 -0
- package/dist/doctor.d.ts.map +1 -1
- package/dist/errors.d.ts +54 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +44 -0
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/operations/tasks.d.ts +91 -0
- package/dist/operations/tasks.d.ts.map +1 -1
- package/dist/operations/worktree.d.ts +30 -0
- package/dist/operations/worktree.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/__snapshots__/operations-registry.test.ts.snap +1 -1
- package/src/boundary.ts +875 -0
- package/src/dispatch/operations-registry.ts +55 -0
- package/src/doctor.ts +84 -0
- package/src/errors.ts +61 -0
- package/src/index.ts +21 -0
- package/src/operations/tasks.ts +96 -0
- package/src/operations/worktree.ts +30 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations-registry.d.ts","sourceRoot":"","sources":["../../src/dispatch/operations-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,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;AAEH,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,EAyzPpC,CAAC"}
|
|
@@ -2346,6 +2346,38 @@ export const OPERATIONS = [
|
|
|
2346
2346
|
},
|
|
2347
2347
|
],
|
|
2348
2348
|
},
|
|
2349
|
+
{
|
|
2350
|
+
gateway: 'mutate',
|
|
2351
|
+
domain: 'tasks',
|
|
2352
|
+
operation: 'saga.detach',
|
|
2353
|
+
description: 'tasks.saga.detach (mutate) — remove a Saga member relation (task_relations type=groups); idempotent; appends to .cleo/audit/saga-detach.jsonl (T10118)',
|
|
2354
|
+
tier: 0,
|
|
2355
|
+
idempotent: true,
|
|
2356
|
+
sessionRequired: false,
|
|
2357
|
+
requiredParams: ['sagaId', 'memberId'],
|
|
2358
|
+
params: [
|
|
2359
|
+
{
|
|
2360
|
+
name: 'sagaId',
|
|
2361
|
+
type: 'string',
|
|
2362
|
+
required: true,
|
|
2363
|
+
description: 'Saga task ID',
|
|
2364
|
+
cli: { positional: true },
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
name: 'memberId',
|
|
2368
|
+
type: 'string',
|
|
2369
|
+
required: true,
|
|
2370
|
+
description: 'Member task ID to detach from the Saga',
|
|
2371
|
+
cli: { positional: true },
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
name: 'reason',
|
|
2375
|
+
type: 'string',
|
|
2376
|
+
required: false,
|
|
2377
|
+
description: 'Human-readable reason recorded in the audit log entry',
|
|
2378
|
+
},
|
|
2379
|
+
],
|
|
2380
|
+
},
|
|
2349
2381
|
{
|
|
2350
2382
|
gateway: 'query',
|
|
2351
2383
|
domain: 'tasks',
|
|
@@ -2395,6 +2427,27 @@ export const OPERATIONS = [
|
|
|
2395
2427
|
},
|
|
2396
2428
|
],
|
|
2397
2429
|
},
|
|
2430
|
+
{
|
|
2431
|
+
// T10117 — detach I5-violating parentId and re-attach via task_relations
|
|
2432
|
+
// type=groups (ADR-073 §1.2 invariant I5). Idempotent.
|
|
2433
|
+
gateway: 'mutate',
|
|
2434
|
+
domain: 'tasks',
|
|
2435
|
+
operation: 'saga.repair',
|
|
2436
|
+
description: 'tasks.saga.repair (mutate) — detach I5-violating parentId and re-attach via task_relations type=groups; idempotent',
|
|
2437
|
+
tier: 0,
|
|
2438
|
+
idempotent: true,
|
|
2439
|
+
sessionRequired: false,
|
|
2440
|
+
requiredParams: ['sagaId'],
|
|
2441
|
+
params: [
|
|
2442
|
+
{
|
|
2443
|
+
name: 'sagaId',
|
|
2444
|
+
type: 'string',
|
|
2445
|
+
required: true,
|
|
2446
|
+
description: 'Saga task ID (must have label=saga)',
|
|
2447
|
+
cli: { positional: true },
|
|
2448
|
+
},
|
|
2449
|
+
],
|
|
2450
|
+
},
|
|
2398
2451
|
{
|
|
2399
2452
|
gateway: 'mutate',
|
|
2400
2453
|
domain: 'tasks',
|