@cleocode/contracts 2026.5.126 → 2026.5.128
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/__tests__/enums.test.js +1 -1
- package/dist/__tests__/enums.test.js.map +1 -1
- package/dist/dispatch/operations-registry.d.ts.map +1 -1
- package/dist/dispatch/operations-registry.js +48 -3
- package/dist/dispatch/operations-registry.js.map +1 -1
- package/dist/enums.d.ts +5 -3
- package/dist/enums.d.ts.map +1 -1
- package/dist/enums.js +5 -3
- package/dist/enums.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/operations/docs.d.ts +42 -1
- package/dist/operations/docs.d.ts.map +1 -1
- package/dist/operations/docs.js +4 -0
- package/dist/operations/docs.js.map +1 -1
- package/dist/operations/tasks.d.ts +11 -21
- package/dist/operations/tasks.d.ts.map +1 -1
- package/dist/operations/tasks.js.map +1 -1
- package/dist/taxonomy.d.ts +136 -0
- package/dist/taxonomy.d.ts.map +1 -0
- package/dist/taxonomy.js +562 -0
- package/dist/taxonomy.js.map +1 -0
- package/dist/workgraph.d.ts +19 -3
- package/dist/workgraph.d.ts.map +1 -1
- package/dist/workgraph.js +29 -9
- package/dist/workgraph.js.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/enums.test.ts +1 -1
- package/src/dispatch/operations-registry.ts +49 -3
- package/src/enums.ts +5 -3
- package/src/index.ts +18 -0
- package/src/operations/docs.ts +47 -0
- package/src/operations/tasks.ts +13 -23
- package/src/taxonomy.ts +634 -0
- package/src/workgraph.ts +32 -9
|
@@ -36,7 +36,7 @@ describe('task-axis enum constants', () => {
|
|
|
36
36
|
'completed-unverified',
|
|
37
37
|
]);
|
|
38
38
|
});
|
|
39
|
-
it('TASK_RELATION_TYPES includes "groups" (
|
|
39
|
+
it('TASK_RELATION_TYPES includes "groups" (non-containment soft association, ADR-088)', () => {
|
|
40
40
|
expect(TASK_RELATION_TYPES).toContain('groups');
|
|
41
41
|
expect(TASK_RELATION_TYPES).toEqual([
|
|
42
42
|
'related',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.test.js","sourceRoot":"","sources":["../../src/__tests__/enums.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACL,eAAe,EACf,UAAU,EACV,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,UAAU,GACX,MAAM,aAAa,CAAC;AAkBrB,uEAAuE;AAEvE,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACrD,MAAM,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;IAC5F,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iEAAiE,EAAE,GAAG,EAAE;QACzE,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kEAAkE,EAAE,GAAG,EAAE;QAC1E,MAAM,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sEAAsE,EAAE,GAAG,EAAE;QAC9E,MAAM,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iEAAiE,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WAAW;YACX,eAAe;YACf,UAAU;YACV,eAAe;YACf,mBAAmB;SACpB,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations-registry.d.ts","sourceRoot":"","sources":["../../src/dispatch/operations-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,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;AAGH,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,EA8gRpC,CAAC"}
|
|
@@ -2656,7 +2656,7 @@ export const OPERATIONS = [
|
|
|
2656
2656
|
},
|
|
2657
2657
|
],
|
|
2658
2658
|
},
|
|
2659
|
-
// === saga sub-domain (ADR-
|
|
2659
|
+
// === saga sub-domain (ADR-088 PM-Core V2 — canonical containment tier) ===
|
|
2660
2660
|
{
|
|
2661
2661
|
gateway: 'mutate',
|
|
2662
2662
|
domain: 'tasks',
|
|
@@ -2805,8 +2805,10 @@ export const OPERATIONS = [
|
|
|
2805
2805
|
],
|
|
2806
2806
|
},
|
|
2807
2807
|
{
|
|
2808
|
-
// T10117
|
|
2808
|
+
// [LEGACY T10117] Detach I5-violating parentId and re-attach via task_relations
|
|
2809
2809
|
// type=groups (ADR-073 §1.2 invariant I5). Idempotent.
|
|
2810
|
+
// PM-Core V2 (ADR-088): parent_id is canonical containment; this repair
|
|
2811
|
+
// direction is the inverse of the canonical model.
|
|
2810
2812
|
gateway: 'mutate',
|
|
2811
2813
|
domain: 'tasks',
|
|
2812
2814
|
operation: 'saga.repair',
|
|
@@ -2855,7 +2857,11 @@ export const OPERATIONS = [
|
|
|
2855
2857
|
],
|
|
2856
2858
|
},
|
|
2857
2859
|
{
|
|
2858
|
-
// T10637
|
|
2860
|
+
// [LEGACY T10637] Pre-ADR-088 migration: convert parent_id-based Saga
|
|
2861
|
+
// membership to groups relations. PM-Core V2 (ADR-088) canonicalizes
|
|
2862
|
+
// parent_id as the sole containment edge. This operation is retained
|
|
2863
|
+
// for historical reference; its migration direction is the opposite
|
|
2864
|
+
// of the PM-Core V2 canonical model.
|
|
2859
2865
|
// Converts Epics whose parent_id points to a type='saga' task into proper
|
|
2860
2866
|
// groups relations. Non-Epic tasks are documented as conflicts.
|
|
2861
2867
|
gateway: 'mutate',
|
|
@@ -7040,6 +7046,45 @@ export const OPERATIONS = [
|
|
|
7040
7046
|
},
|
|
7041
7047
|
],
|
|
7042
7048
|
},
|
|
7049
|
+
// ── docs.llm-output (T11137) — unified LLM output surface ──────────────────
|
|
7050
|
+
{
|
|
7051
|
+
gateway: 'query',
|
|
7052
|
+
domain: 'docs',
|
|
7053
|
+
operation: 'llm-output',
|
|
7054
|
+
description: 'docs.llm-output (query) — unified LLM output: task export (rich Markdown) or attachment-bundle (llms.txt). Replaces `docs export` and `docs generate`.',
|
|
7055
|
+
tier: 1,
|
|
7056
|
+
idempotent: true,
|
|
7057
|
+
sessionRequired: false,
|
|
7058
|
+
requiredParams: ['for'],
|
|
7059
|
+
params: [
|
|
7060
|
+
{ name: 'for', type: 'string', required: true, description: 'Target entity ID' },
|
|
7061
|
+
{
|
|
7062
|
+
name: 'mode',
|
|
7063
|
+
type: 'string',
|
|
7064
|
+
required: false,
|
|
7065
|
+
description: 'Output mode: task-export|attachment-bundle (auto-detected)',
|
|
7066
|
+
},
|
|
7067
|
+
{ name: 'out', type: 'string', required: false, description: 'Output file path' },
|
|
7068
|
+
{
|
|
7069
|
+
name: 'includeAttachments',
|
|
7070
|
+
type: 'boolean',
|
|
7071
|
+
required: false,
|
|
7072
|
+
description: 'Include attachment manifest (task-export)',
|
|
7073
|
+
},
|
|
7074
|
+
{
|
|
7075
|
+
name: 'includeMemoryRefs',
|
|
7076
|
+
type: 'boolean',
|
|
7077
|
+
required: false,
|
|
7078
|
+
description: 'Include memory refs (task-export)',
|
|
7079
|
+
},
|
|
7080
|
+
{
|
|
7081
|
+
name: 'attach',
|
|
7082
|
+
type: 'boolean',
|
|
7083
|
+
required: false,
|
|
7084
|
+
description: 'Save as llms-txt attachment (attachment-bundle)',
|
|
7085
|
+
},
|
|
7086
|
+
],
|
|
7087
|
+
},
|
|
7043
7088
|
// ── docs.update (T10161 — Epic T10157 / Saga T9855) ──────────────────────
|
|
7044
7089
|
{
|
|
7045
7090
|
gateway: 'mutate',
|