sysprom 1.21.1 → 1.22.0

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 (82) hide show
  1. package/dist/schema.json +0 -31
  2. package/dist/src/cli/commands/plan.js +54 -3
  3. package/dist/src/cli/commands/speckit.js +0 -1
  4. package/dist/src/cli/program.js +0 -2
  5. package/dist/src/index.d.ts +2 -2
  6. package/dist/src/index.js +2 -2
  7. package/dist/src/json-to-md.js +0 -8
  8. package/dist/src/mcp/server.js +0 -1
  9. package/dist/src/md-to-json.js +0 -10
  10. package/dist/src/operations/add-node.d.ts +0 -51
  11. package/dist/src/operations/add-relationship.d.ts +0 -34
  12. package/dist/src/operations/check.d.ts +0 -17
  13. package/dist/src/operations/graph-decision.d.ts +0 -17
  14. package/dist/src/operations/graph-dependency.d.ts +0 -17
  15. package/dist/src/operations/graph-refinement.d.ts +0 -17
  16. package/dist/src/operations/graph.d.ts +0 -17
  17. package/dist/src/operations/index.d.ts +3 -5
  18. package/dist/src/operations/index.js +3 -5
  19. package/dist/src/operations/infer-completeness.d.ts +0 -17
  20. package/dist/src/operations/infer-completeness.js +0 -4
  21. package/dist/src/operations/infer-derived.d.ts +0 -17
  22. package/dist/src/operations/infer-impact.d.ts +0 -119
  23. package/dist/src/operations/infer-lifecycle.d.ts +0 -17
  24. package/dist/src/operations/init-document.d.ts +0 -17
  25. package/dist/src/operations/json-to-markdown.d.ts +0 -17
  26. package/dist/src/operations/markdown-to-json.d.ts +0 -17
  27. package/dist/src/operations/next-id.d.ts +0 -17
  28. package/dist/src/operations/node-history.d.ts +0 -17
  29. package/dist/src/operations/plan-add-task.d.ts +0 -34
  30. package/dist/src/operations/{mark-task-done.d.ts → plan-complete-task.d.ts} +4 -41
  31. package/dist/src/operations/plan-complete-task.js +18 -0
  32. package/dist/src/operations/plan-gate.d.ts +0 -17
  33. package/dist/src/operations/plan-init.d.ts +0 -17
  34. package/dist/src/operations/plan-progress.d.ts +18 -17
  35. package/dist/src/operations/plan-progress.js +6 -0
  36. package/dist/src/operations/{mark-task-undone.d.ts → plan-reopen-task.d.ts} +4 -41
  37. package/dist/src/operations/plan-reopen-task.js +18 -0
  38. package/dist/src/operations/{add-plan-task.d.ts → plan-start-task.d.ts} +4 -41
  39. package/dist/src/operations/plan-start-task.js +18 -0
  40. package/dist/src/operations/plan-status.d.ts +22 -17
  41. package/dist/src/operations/plan-status.js +8 -0
  42. package/dist/src/operations/query-node.d.ts +0 -51
  43. package/dist/src/operations/query-nodes.d.ts +0 -34
  44. package/dist/src/operations/query-relationships.d.ts +0 -17
  45. package/dist/src/operations/remove-node.d.ts +0 -51
  46. package/dist/src/operations/remove-relationship.d.ts +0 -34
  47. package/dist/src/operations/rename.d.ts +0 -34
  48. package/dist/src/operations/search.d.ts +0 -34
  49. package/dist/src/operations/speckit-diff.d.ts +0 -17
  50. package/dist/src/operations/speckit-export.d.ts +0 -17
  51. package/dist/src/operations/speckit-import.d.ts +0 -17
  52. package/dist/src/operations/speckit-sync.d.ts +0 -51
  53. package/dist/src/operations/speckit-sync.js +0 -1
  54. package/dist/src/operations/state-at.d.ts +0 -17
  55. package/dist/src/operations/stats.d.ts +0 -17
  56. package/dist/src/operations/sync.d.ts +0 -51
  57. package/dist/src/operations/timeline.d.ts +0 -17
  58. package/dist/src/operations/trace-from-node.d.ts +0 -51
  59. package/dist/src/operations/update-metadata.d.ts +0 -34
  60. package/dist/src/operations/update-node.d.ts +0 -58
  61. package/dist/src/operations/validate.d.ts +0 -17
  62. package/dist/src/operations/validate.js +71 -0
  63. package/dist/src/schema.d.ts +0 -61
  64. package/dist/src/schema.js +0 -11
  65. package/dist/src/speckit/generate.js +17 -20
  66. package/dist/src/speckit/index.d.ts +1 -1
  67. package/dist/src/speckit/index.js +1 -1
  68. package/dist/src/speckit/parse.d.ts +1 -1
  69. package/dist/src/speckit/parse.js +20 -14
  70. package/dist/src/speckit/plan.d.ts +29 -7
  71. package/dist/src/speckit/plan.js +181 -47
  72. package/package.json +3 -3
  73. package/schema.json +0 -31
  74. package/dist/src/cli/commands/task.d.ts +0 -2
  75. package/dist/src/cli/commands/task.js +0 -157
  76. package/dist/src/operations/add-plan-task.js +0 -29
  77. package/dist/src/operations/mark-task-done.js +0 -30
  78. package/dist/src/operations/mark-task-undone.js +0 -30
  79. package/dist/src/operations/task-list.d.ts +0 -288
  80. package/dist/src/operations/task-list.js +0 -49
  81. package/dist/src/operations/update-plan-task.d.ts +0 -555
  82. package/dist/src/operations/update-plan-task.js +0 -35
@@ -141,18 +141,6 @@ export declare const inferDerivedOp: import("./define-operation.js").DefinedOper
141
141
  description?: string | string[] | undefined;
142
142
  };
143
143
  }>>;
144
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
145
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
146
- is(value: unknown): value is string | string[];
147
- };
148
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
149
- }, z.core.$loose> & {
150
- is(value: unknown): value is {
151
- [x: string]: unknown;
152
- description: string | string[];
153
- done?: boolean | undefined;
154
- };
155
- }>>;
156
144
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
157
145
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
158
146
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -284,11 +272,6 @@ export declare const inferDerivedOp: import("./define-operation.js").DefinedOper
284
272
  target?: string | undefined;
285
273
  description?: string | string[] | undefined;
286
274
  }[] | undefined;
287
- plan?: {
288
- [x: string]: unknown;
289
- description: string | string[];
290
- done?: boolean | undefined;
291
- }[] | undefined;
292
275
  propagation?: Record<string, boolean> | undefined;
293
276
  includes?: string[] | undefined;
294
277
  external_references?: {
@@ -73,18 +73,6 @@ declare const ImpactNode: z.ZodObject<{
73
73
  description?: string | string[] | undefined;
74
74
  };
75
75
  }>>;
76
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
78
- is(value: unknown): value is string | string[];
79
- };
80
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
81
- }, z.core.$loose> & {
82
- is(value: unknown): value is {
83
- [x: string]: unknown;
84
- description: string | string[];
85
- done?: boolean | undefined;
86
- };
87
- }>>;
88
76
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
89
77
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
90
78
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -233,11 +221,6 @@ declare const ImpactNode: z.ZodObject<{
233
221
  target?: string | undefined;
234
222
  description?: string | string[] | undefined;
235
223
  }[] | undefined;
236
- plan?: {
237
- [x: string]: unknown;
238
- description: string | string[];
239
- done?: boolean | undefined;
240
- }[] | undefined;
241
224
  propagation?: Record<string, boolean> | undefined;
242
225
  includes?: string[] | undefined;
243
226
  external_references?: {
@@ -370,18 +353,6 @@ declare const ImpactOutput: z.ZodObject<{
370
353
  description?: string | string[] | undefined;
371
354
  };
372
355
  }>>;
373
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
374
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
375
- is(value: unknown): value is string | string[];
376
- };
377
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
378
- }, z.core.$loose> & {
379
- is(value: unknown): value is {
380
- [x: string]: unknown;
381
- description: string | string[];
382
- done?: boolean | undefined;
383
- };
384
- }>>;
385
356
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
386
357
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
387
358
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -530,11 +501,6 @@ declare const ImpactOutput: z.ZodObject<{
530
501
  target?: string | undefined;
531
502
  description?: string | string[] | undefined;
532
503
  }[] | undefined;
533
- plan?: {
534
- [x: string]: unknown;
535
- description: string | string[];
536
- done?: boolean | undefined;
537
- }[] | undefined;
538
504
  propagation?: Record<string, boolean> | undefined;
539
505
  includes?: string[] | undefined;
540
506
  external_references?: {
@@ -694,18 +660,6 @@ export declare const inferImpactOp: import("./define-operation.js").DefinedOpera
694
660
  description?: string | string[] | undefined;
695
661
  };
696
662
  }>>;
697
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
698
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
699
- is(value: unknown): value is string | string[];
700
- };
701
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
702
- }, z.core.$loose> & {
703
- is(value: unknown): value is {
704
- [x: string]: unknown;
705
- description: string | string[];
706
- done?: boolean | undefined;
707
- };
708
- }>>;
709
663
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
710
664
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
711
665
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -837,11 +791,6 @@ export declare const inferImpactOp: import("./define-operation.js").DefinedOpera
837
791
  target?: string | undefined;
838
792
  description?: string | string[] | undefined;
839
793
  }[] | undefined;
840
- plan?: {
841
- [x: string]: unknown;
842
- description: string | string[];
843
- done?: boolean | undefined;
844
- }[] | undefined;
845
794
  propagation?: Record<string, boolean> | undefined;
846
795
  includes?: string[] | undefined;
847
796
  external_references?: {
@@ -961,18 +910,6 @@ export declare const inferImpactOp: import("./define-operation.js").DefinedOpera
961
910
  description?: string | string[] | undefined;
962
911
  };
963
912
  }>>;
964
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
965
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
966
- is(value: unknown): value is string | string[];
967
- };
968
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
969
- }, z.core.$loose> & {
970
- is(value: unknown): value is {
971
- [x: string]: unknown;
972
- description: string | string[];
973
- done?: boolean | undefined;
974
- };
975
- }>>;
976
913
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
977
914
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
978
915
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1121,11 +1058,6 @@ export declare const inferImpactOp: import("./define-operation.js").DefinedOpera
1121
1058
  target?: string | undefined;
1122
1059
  description?: string | string[] | undefined;
1123
1060
  }[] | undefined;
1124
- plan?: {
1125
- [x: string]: unknown;
1126
- description: string | string[];
1127
- done?: boolean | undefined;
1128
- }[] | undefined;
1129
1061
  propagation?: Record<string, boolean> | undefined;
1130
1062
  includes?: string[] | undefined;
1131
1063
  external_references?: {
@@ -1262,18 +1194,6 @@ declare const ImpactSummaryOutput: z.ZodObject<{
1262
1194
  description?: string | string[] | undefined;
1263
1195
  };
1264
1196
  }>>;
1265
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
1266
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1267
- is(value: unknown): value is string | string[];
1268
- };
1269
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1270
- }, z.core.$loose> & {
1271
- is(value: unknown): value is {
1272
- [x: string]: unknown;
1273
- description: string | string[];
1274
- done?: boolean | undefined;
1275
- };
1276
- }>>;
1277
1197
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1278
1198
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1279
1199
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1422,11 +1342,6 @@ declare const ImpactSummaryOutput: z.ZodObject<{
1422
1342
  target?: string | undefined;
1423
1343
  description?: string | string[] | undefined;
1424
1344
  }[] | undefined;
1425
- plan?: {
1426
- [x: string]: unknown;
1427
- description: string | string[];
1428
- done?: boolean | undefined;
1429
- }[] | undefined;
1430
1345
  propagation?: Record<string, boolean> | undefined;
1431
1346
  includes?: string[] | undefined;
1432
1347
  external_references?: {
@@ -1572,18 +1487,6 @@ export declare const impactSummaryOp: import("./define-operation.js").DefinedOpe
1572
1487
  description?: string | string[] | undefined;
1573
1488
  };
1574
1489
  }>>;
1575
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
1576
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1577
- is(value: unknown): value is string | string[];
1578
- };
1579
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1580
- }, z.core.$loose> & {
1581
- is(value: unknown): value is {
1582
- [x: string]: unknown;
1583
- description: string | string[];
1584
- done?: boolean | undefined;
1585
- };
1586
- }>>;
1587
1490
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1588
1491
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1589
1492
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1715,11 +1618,6 @@ export declare const impactSummaryOp: import("./define-operation.js").DefinedOpe
1715
1618
  target?: string | undefined;
1716
1619
  description?: string | string[] | undefined;
1717
1620
  }[] | undefined;
1718
- plan?: {
1719
- [x: string]: unknown;
1720
- description: string | string[];
1721
- done?: boolean | undefined;
1722
- }[] | undefined;
1723
1621
  propagation?: Record<string, boolean> | undefined;
1724
1622
  includes?: string[] | undefined;
1725
1623
  external_references?: {
@@ -1830,18 +1728,6 @@ export declare const impactSummaryOp: import("./define-operation.js").DefinedOpe
1830
1728
  description?: string | string[] | undefined;
1831
1729
  };
1832
1730
  }>>;
1833
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
1834
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1835
- is(value: unknown): value is string | string[];
1836
- };
1837
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1838
- }, z.core.$loose> & {
1839
- is(value: unknown): value is {
1840
- [x: string]: unknown;
1841
- description: string | string[];
1842
- done?: boolean | undefined;
1843
- };
1844
- }>>;
1845
1731
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1846
1732
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1847
1733
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1990,11 +1876,6 @@ export declare const impactSummaryOp: import("./define-operation.js").DefinedOpe
1990
1876
  target?: string | undefined;
1991
1877
  description?: string | string[] | undefined;
1992
1878
  }[] | undefined;
1993
- plan?: {
1994
- [x: string]: unknown;
1995
- description: string | string[];
1996
- done?: boolean | undefined;
1997
- }[] | undefined;
1998
1879
  propagation?: Record<string, boolean> | undefined;
1999
1880
  includes?: string[] | undefined;
2000
1881
  external_references?: {
@@ -133,18 +133,6 @@ export declare const inferLifecycleOp: import("./define-operation.js").DefinedOp
133
133
  description?: string | string[] | undefined;
134
134
  };
135
135
  }>>;
136
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
137
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
138
- is(value: unknown): value is string | string[];
139
- };
140
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
141
- }, z.core.$loose> & {
142
- is(value: unknown): value is {
143
- [x: string]: unknown;
144
- description: string | string[];
145
- done?: boolean | undefined;
146
- };
147
- }>>;
148
136
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
149
137
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
150
138
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -276,11 +264,6 @@ export declare const inferLifecycleOp: import("./define-operation.js").DefinedOp
276
264
  target?: string | undefined;
277
265
  description?: string | string[] | undefined;
278
266
  }[] | undefined;
279
- plan?: {
280
- [x: string]: unknown;
281
- description: string | string[];
282
- done?: boolean | undefined;
283
- }[] | undefined;
284
267
  propagation?: Record<string, boolean> | undefined;
285
268
  includes?: string[] | undefined;
286
269
  external_references?: {
@@ -90,18 +90,6 @@ export declare const initDocumentOp: import("./define-operation.js").DefinedOper
90
90
  description?: string | string[] | undefined;
91
91
  };
92
92
  }>>;
93
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
94
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
95
- is(value: unknown): value is string | string[];
96
- };
97
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
98
- }, z.core.$loose> & {
99
- is(value: unknown): value is {
100
- [x: string]: unknown;
101
- description: string | string[];
102
- done?: boolean | undefined;
103
- };
104
- }>>;
105
93
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
106
94
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
107
95
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -233,11 +221,6 @@ export declare const initDocumentOp: import("./define-operation.js").DefinedOper
233
221
  target?: string | undefined;
234
222
  description?: string | string[] | undefined;
235
223
  }[] | undefined;
236
- plan?: {
237
- [x: string]: unknown;
238
- description: string | string[];
239
- done?: boolean | undefined;
240
- }[] | undefined;
241
224
  propagation?: Record<string, boolean> | undefined;
242
225
  includes?: string[] | undefined;
243
226
  external_references?: {
@@ -88,18 +88,6 @@ export declare const jsonToMarkdownOp: import("./define-operation.js").DefinedOp
88
88
  description?: string | string[] | undefined;
89
89
  };
90
90
  }>>;
91
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
92
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
93
- is(value: unknown): value is string | string[];
94
- };
95
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
96
- }, z.core.$loose> & {
97
- is(value: unknown): value is {
98
- [x: string]: unknown;
99
- description: string | string[];
100
- done?: boolean | undefined;
101
- };
102
- }>>;
103
91
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
104
92
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
93
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -231,11 +219,6 @@ export declare const jsonToMarkdownOp: import("./define-operation.js").DefinedOp
231
219
  target?: string | undefined;
232
220
  description?: string | string[] | undefined;
233
221
  }[] | undefined;
234
- plan?: {
235
- [x: string]: unknown;
236
- description: string | string[];
237
- done?: boolean | undefined;
238
- }[] | undefined;
239
222
  propagation?: Record<string, boolean> | undefined;
240
223
  includes?: string[] | undefined;
241
224
  external_references?: {
@@ -89,18 +89,6 @@ export declare const markdownToJsonOp: import("./define-operation.js").DefinedOp
89
89
  description?: string | string[] | undefined;
90
90
  };
91
91
  }>>;
92
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
93
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
94
- is(value: unknown): value is string | string[];
95
- };
96
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
97
- }, z.core.$loose> & {
98
- is(value: unknown): value is {
99
- [x: string]: unknown;
100
- description: string | string[];
101
- done?: boolean | undefined;
102
- };
103
- }>>;
104
92
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
105
93
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
106
94
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -232,11 +220,6 @@ export declare const markdownToJsonOp: import("./define-operation.js").DefinedOp
232
220
  target?: string | undefined;
233
221
  description?: string | string[] | undefined;
234
222
  }[] | undefined;
235
- plan?: {
236
- [x: string]: unknown;
237
- description: string | string[];
238
- done?: boolean | undefined;
239
- }[] | undefined;
240
223
  propagation?: Record<string, boolean> | undefined;
241
224
  includes?: string[] | undefined;
242
225
  external_references?: {
@@ -92,18 +92,6 @@ export declare const nextIdOp: import("./define-operation.js").DefinedOperation<
92
92
  description?: string | string[] | undefined;
93
93
  };
94
94
  }>>;
95
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
96
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
97
- is(value: unknown): value is string | string[];
98
- };
99
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
100
- }, z.core.$loose> & {
101
- is(value: unknown): value is {
102
- [x: string]: unknown;
103
- description: string | string[];
104
- done?: boolean | undefined;
105
- };
106
- }>>;
107
95
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
108
96
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
109
97
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -235,11 +223,6 @@ export declare const nextIdOp: import("./define-operation.js").DefinedOperation<
235
223
  target?: string | undefined;
236
224
  description?: string | string[] | undefined;
237
225
  }[] | undefined;
238
- plan?: {
239
- [x: string]: unknown;
240
- description: string | string[];
241
- done?: boolean | undefined;
242
- }[] | undefined;
243
226
  propagation?: Record<string, boolean> | undefined;
244
227
  includes?: string[] | undefined;
245
228
  external_references?: {
@@ -98,18 +98,6 @@ export declare const nodeHistoryOp: import("./define-operation.js").DefinedOpera
98
98
  description?: string | string[] | undefined;
99
99
  };
100
100
  }>>;
101
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
103
- is(value: unknown): value is string | string[];
104
- };
105
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
106
- }, z.core.$loose> & {
107
- is(value: unknown): value is {
108
- [x: string]: unknown;
109
- description: string | string[];
110
- done?: boolean | undefined;
111
- };
112
- }>>;
113
101
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
114
102
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
115
103
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -241,11 +229,6 @@ export declare const nodeHistoryOp: import("./define-operation.js").DefinedOpera
241
229
  target?: string | undefined;
242
230
  description?: string | string[] | undefined;
243
231
  }[] | undefined;
244
- plan?: {
245
- [x: string]: unknown;
246
- description: string | string[];
247
- done?: boolean | undefined;
248
- }[] | undefined;
249
232
  propagation?: Record<string, boolean> | undefined;
250
233
  includes?: string[] | undefined;
251
234
  external_references?: {
@@ -88,18 +88,6 @@ export declare const planAddTaskOp: import("./define-operation.js").DefinedOpera
88
88
  description?: string | string[] | undefined;
89
89
  };
90
90
  }>>;
91
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
92
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
93
- is(value: unknown): value is string | string[];
94
- };
95
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
96
- }, z.core.$loose> & {
97
- is(value: unknown): value is {
98
- [x: string]: unknown;
99
- description: string | string[];
100
- done?: boolean | undefined;
101
- };
102
- }>>;
103
91
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
104
92
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
93
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -231,11 +219,6 @@ export declare const planAddTaskOp: import("./define-operation.js").DefinedOpera
231
219
  target?: string | undefined;
232
220
  description?: string | string[] | undefined;
233
221
  }[] | undefined;
234
- plan?: {
235
- [x: string]: unknown;
236
- description: string | string[];
237
- done?: boolean | undefined;
238
- }[] | undefined;
239
222
  propagation?: Record<string, boolean> | undefined;
240
223
  includes?: string[] | undefined;
241
224
  external_references?: {
@@ -364,18 +347,6 @@ export declare const planAddTaskOp: import("./define-operation.js").DefinedOpera
364
347
  description?: string | string[] | undefined;
365
348
  };
366
349
  }>>;
367
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
368
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
369
- is(value: unknown): value is string | string[];
370
- };
371
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
372
- }, z.core.$loose> & {
373
- is(value: unknown): value is {
374
- [x: string]: unknown;
375
- description: string | string[];
376
- done?: boolean | undefined;
377
- };
378
- }>>;
379
350
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
380
351
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
381
352
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -507,11 +478,6 @@ export declare const planAddTaskOp: import("./define-operation.js").DefinedOpera
507
478
  target?: string | undefined;
508
479
  description?: string | string[] | undefined;
509
480
  }[] | undefined;
510
- plan?: {
511
- [x: string]: unknown;
512
- description: string | string[];
513
- done?: boolean | undefined;
514
- }[] | undefined;
515
481
  propagation?: Record<string, boolean> | undefined;
516
482
  includes?: string[] | undefined;
517
483
  external_references?: {
@@ -1,9 +1,6 @@
1
1
  import * as z from "zod";
2
- /**
3
- * Mark a task as done within a change node's plan.
4
- * @throws {Error} If the change node is not found or the task index is out of range.
5
- */
6
- export declare const markTaskDoneOp: import("./define-operation.js").DefinedOperation<z.ZodObject<{
2
+ /** Mark a plan task as complete by setting lifecycle complete and clearing in_progress. */
3
+ export declare const planCompleteTaskOp: import("./define-operation.js").DefinedOperation<z.ZodObject<{
7
4
  doc: z.ZodObject<{
8
5
  $schema: z.ZodOptional<z.ZodString>;
9
6
  metadata: z.ZodOptional<z.ZodObject<{
@@ -91,18 +88,6 @@ export declare const markTaskDoneOp: import("./define-operation.js").DefinedOper
91
88
  description?: string | string[] | undefined;
92
89
  };
93
90
  }>>;
94
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
95
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
96
- is(value: unknown): value is string | string[];
97
- };
98
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
99
- }, z.core.$loose> & {
100
- is(value: unknown): value is {
101
- [x: string]: unknown;
102
- description: string | string[];
103
- done?: boolean | undefined;
104
- };
105
- }>>;
106
91
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
107
92
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
108
93
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -234,11 +219,6 @@ export declare const markTaskDoneOp: import("./define-operation.js").DefinedOper
234
219
  target?: string | undefined;
235
220
  description?: string | string[] | undefined;
236
221
  }[] | undefined;
237
- plan?: {
238
- [x: string]: unknown;
239
- description: string | string[];
240
- done?: boolean | undefined;
241
- }[] | undefined;
242
222
  propagation?: Record<string, boolean> | undefined;
243
223
  includes?: string[] | undefined;
244
224
  external_references?: {
@@ -277,8 +257,8 @@ export declare const markTaskDoneOp: import("./define-operation.js").DefinedOper
277
257
  }[] | undefined;
278
258
  };
279
259
  };
280
- changeId: z.ZodString;
281
- taskIndex: z.ZodNumber;
260
+ prefix: z.ZodString;
261
+ taskId: z.ZodString;
282
262
  }, z.core.$strip>, z.ZodObject<{
283
263
  $schema: z.ZodOptional<z.ZodString>;
284
264
  metadata: z.ZodOptional<z.ZodObject<{
@@ -366,18 +346,6 @@ export declare const markTaskDoneOp: import("./define-operation.js").DefinedOper
366
346
  description?: string | string[] | undefined;
367
347
  };
368
348
  }>>;
369
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
370
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
371
- is(value: unknown): value is string | string[];
372
- };
373
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
374
- }, z.core.$loose> & {
375
- is(value: unknown): value is {
376
- [x: string]: unknown;
377
- description: string | string[];
378
- done?: boolean | undefined;
379
- };
380
- }>>;
381
349
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
382
350
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
383
351
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -509,11 +477,6 @@ export declare const markTaskDoneOp: import("./define-operation.js").DefinedOper
509
477
  target?: string | undefined;
510
478
  description?: string | string[] | undefined;
511
479
  }[] | undefined;
512
- plan?: {
513
- [x: string]: unknown;
514
- description: string | string[];
515
- done?: boolean | undefined;
516
- }[] | undefined;
517
480
  propagation?: Record<string, boolean> | undefined;
518
481
  includes?: string[] | undefined;
519
482
  external_references?: {
@@ -0,0 +1,18 @@
1
+ import * as z from "zod";
2
+ import { defineOperation } from "./define-operation.js";
3
+ import { SysProMDocument } from "../schema.js";
4
+ import { setTaskLifecycle } from "../speckit/plan.js";
5
+ /** Mark a plan task as complete by setting lifecycle complete and clearing in_progress. */
6
+ export const planCompleteTaskOp = defineOperation({
7
+ name: "planCompleteTask",
8
+ description: "Mark a plan task as complete",
9
+ input: z.object({
10
+ doc: SysProMDocument,
11
+ prefix: z.string().describe("Plan prefix"),
12
+ taskId: z.string().describe("Task change node ID"),
13
+ }),
14
+ output: SysProMDocument,
15
+ fn({ doc, prefix, taskId }) {
16
+ return setTaskLifecycle(doc, prefix, taskId, "complete");
17
+ },
18
+ });
@@ -125,18 +125,6 @@ export declare const planGateOp: import("./define-operation.js").DefinedOperatio
125
125
  description?: string | string[] | undefined;
126
126
  };
127
127
  }>>;
128
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
129
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
130
- is(value: unknown): value is string | string[];
131
- };
132
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
133
- }, z.core.$loose> & {
134
- is(value: unknown): value is {
135
- [x: string]: unknown;
136
- description: string | string[];
137
- done?: boolean | undefined;
138
- };
139
- }>>;
140
128
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
141
129
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
142
130
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -268,11 +256,6 @@ export declare const planGateOp: import("./define-operation.js").DefinedOperatio
268
256
  target?: string | undefined;
269
257
  description?: string | string[] | undefined;
270
258
  }[] | undefined;
271
- plan?: {
272
- [x: string]: unknown;
273
- description: string | string[];
274
- done?: boolean | undefined;
275
- }[] | undefined;
276
259
  propagation?: Record<string, boolean> | undefined;
277
260
  includes?: string[] | undefined;
278
261
  external_references?: {
@@ -90,18 +90,6 @@ export declare const planInitOp: import("./define-operation.js").DefinedOperatio
90
90
  description?: string | string[] | undefined;
91
91
  };
92
92
  }>>;
93
- plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
94
- description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
95
- is(value: unknown): value is string | string[];
96
- };
97
- done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
98
- }, z.core.$loose> & {
99
- is(value: unknown): value is {
100
- [x: string]: unknown;
101
- description: string | string[];
102
- done?: boolean | undefined;
103
- };
104
- }>>;
105
93
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
106
94
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
107
95
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -233,11 +221,6 @@ export declare const planInitOp: import("./define-operation.js").DefinedOperatio
233
221
  target?: string | undefined;
234
222
  description?: string | string[] | undefined;
235
223
  }[] | undefined;
236
- plan?: {
237
- [x: string]: unknown;
238
- description: string | string[];
239
- done?: boolean | undefined;
240
- }[] | undefined;
241
224
  propagation?: Record<string, boolean> | undefined;
242
225
  includes?: string[] | undefined;
243
226
  external_references?: {