sysprom 1.19.0 → 1.21.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 (75) hide show
  1. package/README.md +3 -0
  2. package/dist/schema.json +4 -43
  3. package/dist/src/cli/commands/add.js +6 -2
  4. package/dist/src/cli/commands/query.js +5 -3
  5. package/dist/src/cli/commands/speckit.js +2 -2
  6. package/dist/src/cli/commands/update.js +6 -4
  7. package/dist/src/endpoint-types.d.ts +4 -0
  8. package/dist/src/endpoint-types.js +22 -116
  9. package/dist/src/json-to-md.js +2 -16
  10. package/dist/src/lifecycle-state.d.ts +9 -0
  11. package/dist/src/lifecycle-state.js +22 -0
  12. package/dist/src/mcp/server.js +3 -6
  13. package/dist/src/md-to-json.js +1 -19
  14. package/dist/src/operations/add-node.d.ts +21 -132
  15. package/dist/src/operations/add-plan-task.d.ts +14 -88
  16. package/dist/src/operations/add-relationship.d.ts +16 -102
  17. package/dist/src/operations/check.d.ts +7 -44
  18. package/dist/src/operations/graph-decision.d.ts +7 -44
  19. package/dist/src/operations/graph-decision.js +0 -1
  20. package/dist/src/operations/graph-dependency.d.ts +7 -44
  21. package/dist/src/operations/graph-dependency.js +3 -23
  22. package/dist/src/operations/graph-refinement.d.ts +7 -44
  23. package/dist/src/operations/graph-shared.js +1 -3
  24. package/dist/src/operations/graph.d.ts +7 -44
  25. package/dist/src/operations/infer-completeness.d.ts +10 -53
  26. package/dist/src/operations/infer-derived.d.ts +7 -44
  27. package/dist/src/operations/infer-derived.js +28 -4
  28. package/dist/src/operations/infer-impact.d.ts +49 -308
  29. package/dist/src/operations/infer-impact.js +22 -3
  30. package/dist/src/operations/infer-lifecycle.d.ts +8 -105
  31. package/dist/src/operations/infer-lifecycle.js +4 -10
  32. package/dist/src/operations/init-document.d.ts +7 -44
  33. package/dist/src/operations/json-to-markdown.d.ts +7 -44
  34. package/dist/src/operations/mark-task-done.d.ts +14 -88
  35. package/dist/src/operations/mark-task-undone.d.ts +14 -88
  36. package/dist/src/operations/markdown-to-json.d.ts +7 -44
  37. package/dist/src/operations/next-id.d.ts +8 -47
  38. package/dist/src/operations/node-history.d.ts +7 -44
  39. package/dist/src/operations/plan-add-task.d.ts +14 -88
  40. package/dist/src/operations/plan-gate.d.ts +7 -44
  41. package/dist/src/operations/plan-init.d.ts +7 -44
  42. package/dist/src/operations/plan-progress.d.ts +7 -44
  43. package/dist/src/operations/plan-status.d.ts +7 -44
  44. package/dist/src/operations/query-node.d.ts +29 -188
  45. package/dist/src/operations/query-nodes.d.ts +15 -89
  46. package/dist/src/operations/query-nodes.js +6 -4
  47. package/dist/src/operations/query-relationships.d.ts +9 -58
  48. package/dist/src/operations/remove-node.d.ts +21 -132
  49. package/dist/src/operations/remove-node.js +11 -1
  50. package/dist/src/operations/remove-relationship.d.ts +15 -101
  51. package/dist/src/operations/rename.d.ts +14 -88
  52. package/dist/src/operations/search.d.ts +14 -88
  53. package/dist/src/operations/speckit-diff.d.ts +7 -44
  54. package/dist/src/operations/speckit-export.d.ts +7 -44
  55. package/dist/src/operations/speckit-import.d.ts +7 -44
  56. package/dist/src/operations/speckit-sync.d.ts +22 -133
  57. package/dist/src/operations/speckit-sync.js +3 -3
  58. package/dist/src/operations/state-at.d.ts +7 -44
  59. package/dist/src/operations/stats.d.ts +7 -44
  60. package/dist/src/operations/sync.d.ts +21 -132
  61. package/dist/src/operations/task-list.d.ts +7 -44
  62. package/dist/src/operations/timeline.d.ts +7 -44
  63. package/dist/src/operations/trace-from-node.d.ts +21 -132
  64. package/dist/src/operations/update-metadata.d.ts +14 -88
  65. package/dist/src/operations/update-node.d.ts +20 -152
  66. package/dist/src/operations/update-plan-task.d.ts +14 -88
  67. package/dist/src/operations/validate.d.ts +7 -44
  68. package/dist/src/operations/validate.js +8 -6
  69. package/dist/src/schema.d.ts +22 -159
  70. package/dist/src/schema.js +4 -26
  71. package/dist/src/speckit/generate.js +10 -7
  72. package/dist/src/speckit/parse.js +6 -3
  73. package/dist/src/speckit/plan.js +1 -1
  74. package/package.json +12 -1
  75. package/schema.json +4 -43
@@ -39,39 +39,18 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
39
39
  gate: "gate";
40
40
  mode: "mode";
41
41
  artefact: "artefact";
42
- artefact_flow: "artefact_flow";
43
42
  decision: "decision";
44
43
  change: "change";
45
44
  view: "view";
46
45
  milestone: "milestone";
47
- version: "version";
48
46
  }> & {
49
- is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
47
+ is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
50
48
  };
51
49
  name: z.ZodString;
52
50
  description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
53
51
  is(value: unknown): value is string | string[];
54
52
  }>;
55
- status: z.ZodOptional<z.ZodEnum<{
56
- deprecated: "deprecated";
57
- proposed: "proposed";
58
- accepted: "accepted";
59
- active: "active";
60
- implemented: "implemented";
61
- adopted: "adopted";
62
- defined: "defined";
63
- introduced: "introduced";
64
- in_progress: "in_progress";
65
- complete: "complete";
66
- consolidated: "consolidated";
67
- experimental: "experimental";
68
- retired: "retired";
69
- superseded: "superseded";
70
- abandoned: "abandoned";
71
- deferred: "deferred";
72
- }> & {
73
- is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
74
- }>;
53
+ status: z.ZodOptional<z.ZodNever>;
75
54
  lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
76
55
  context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
77
56
  is(value: unknown): value is string | string[];
@@ -126,8 +105,6 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
126
105
  }>>;
127
106
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
128
107
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
129
- input: z.ZodOptional<z.ZodString>;
130
- output: z.ZodOptional<z.ZodString>;
131
108
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
132
109
  role: z.ZodEnum<{
133
110
  output: "output";
@@ -171,26 +148,14 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
171
148
  affects: "affects";
172
149
  supersedes: "supersedes";
173
150
  must_preserve: "must_preserve";
174
- performs: "performs";
175
151
  part_of: "part_of";
176
152
  precedes: "precedes";
177
153
  must_follow: "must_follow";
178
- blocks: "blocks";
179
- routes_to: "routes_to";
180
154
  governed_by: "governed_by";
181
155
  modifies: "modifies";
182
- triggered_by: "triggered_by";
183
- applies_to: "applies_to";
184
156
  produces: "produces";
185
- consumes: "consumes";
186
- transforms_into: "transforms_into";
187
- selects: "selects";
188
- requires: "requires";
189
- disables: "disables";
190
- influence: "influence";
191
- justifies: "justifies";
192
157
  }> & {
193
- is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
158
+ is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
194
159
  };
195
160
  description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
196
161
  is(value: unknown): value is string | string[];
@@ -209,7 +174,7 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
209
174
  [x: string]: unknown;
210
175
  from: string;
211
176
  to: string;
212
- type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
177
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
213
178
  description?: string | string[] | undefined;
214
179
  polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
215
180
  strength?: number | undefined;
@@ -249,10 +214,10 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
249
214
  nodes: {
250
215
  [x: string]: unknown;
251
216
  id: string;
252
- type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
217
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
253
218
  name: string;
254
219
  description?: string | string[] | undefined;
255
- status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
220
+ status?: undefined;
256
221
  lifecycle?: Record<string, string | boolean> | undefined;
257
222
  context?: string | string[] | undefined;
258
223
  options?: {
@@ -276,8 +241,6 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
276
241
  }[] | undefined;
277
242
  propagation?: Record<string, boolean> | undefined;
278
243
  includes?: string[] | undefined;
279
- input?: string | undefined;
280
- output?: string | undefined;
281
244
  external_references?: {
282
245
  role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
283
246
  identifier: string;
@@ -300,7 +263,7 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
300
263
  [x: string]: unknown;
301
264
  from: string;
302
265
  to: string;
303
- type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
266
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
304
267
  description?: string | string[] | undefined;
305
268
  polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
306
269
  strength?: number | undefined;
@@ -326,26 +289,14 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
326
289
  affects: "affects";
327
290
  supersedes: "supersedes";
328
291
  must_preserve: "must_preserve";
329
- performs: "performs";
330
292
  part_of: "part_of";
331
293
  precedes: "precedes";
332
294
  must_follow: "must_follow";
333
- blocks: "blocks";
334
- routes_to: "routes_to";
335
295
  governed_by: "governed_by";
336
296
  modifies: "modifies";
337
- triggered_by: "triggered_by";
338
- applies_to: "applies_to";
339
297
  produces: "produces";
340
- consumes: "consumes";
341
- transforms_into: "transforms_into";
342
- selects: "selects";
343
- requires: "requires";
344
- disables: "disables";
345
- influence: "influence";
346
- justifies: "justifies";
347
298
  }> & {
348
- is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
299
+ is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
349
300
  };
350
301
  description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
351
302
  is(value: unknown): value is string | string[];
@@ -364,7 +315,7 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
364
315
  [x: string]: unknown;
365
316
  from: string;
366
317
  to: string;
367
- type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
318
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
368
319
  description?: string | string[] | undefined;
369
320
  polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
370
321
  strength?: number | undefined;
@@ -405,39 +356,18 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
405
356
  gate: "gate";
406
357
  mode: "mode";
407
358
  artefact: "artefact";
408
- artefact_flow: "artefact_flow";
409
359
  decision: "decision";
410
360
  change: "change";
411
361
  view: "view";
412
362
  milestone: "milestone";
413
- version: "version";
414
363
  }> & {
415
- is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
364
+ is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
416
365
  };
417
366
  name: z.ZodString;
418
367
  description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
419
368
  is(value: unknown): value is string | string[];
420
369
  }>;
421
- status: z.ZodOptional<z.ZodEnum<{
422
- deprecated: "deprecated";
423
- proposed: "proposed";
424
- accepted: "accepted";
425
- active: "active";
426
- implemented: "implemented";
427
- adopted: "adopted";
428
- defined: "defined";
429
- introduced: "introduced";
430
- in_progress: "in_progress";
431
- complete: "complete";
432
- consolidated: "consolidated";
433
- experimental: "experimental";
434
- retired: "retired";
435
- superseded: "superseded";
436
- abandoned: "abandoned";
437
- deferred: "deferred";
438
- }> & {
439
- is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
440
- }>;
370
+ status: z.ZodOptional<z.ZodNever>;
441
371
  lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
442
372
  context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
443
373
  is(value: unknown): value is string | string[];
@@ -492,8 +422,6 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
492
422
  }>>;
493
423
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
494
424
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
495
- input: z.ZodOptional<z.ZodString>;
496
- output: z.ZodOptional<z.ZodString>;
497
425
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
498
426
  role: z.ZodEnum<{
499
427
  output: "output";
@@ -537,26 +465,14 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
537
465
  affects: "affects";
538
466
  supersedes: "supersedes";
539
467
  must_preserve: "must_preserve";
540
- performs: "performs";
541
468
  part_of: "part_of";
542
469
  precedes: "precedes";
543
470
  must_follow: "must_follow";
544
- blocks: "blocks";
545
- routes_to: "routes_to";
546
471
  governed_by: "governed_by";
547
472
  modifies: "modifies";
548
- triggered_by: "triggered_by";
549
- applies_to: "applies_to";
550
473
  produces: "produces";
551
- consumes: "consumes";
552
- transforms_into: "transforms_into";
553
- selects: "selects";
554
- requires: "requires";
555
- disables: "disables";
556
- influence: "influence";
557
- justifies: "justifies";
558
474
  }> & {
559
- is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
475
+ is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
560
476
  };
561
477
  description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
562
478
  is(value: unknown): value is string | string[];
@@ -575,7 +491,7 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
575
491
  [x: string]: unknown;
576
492
  from: string;
577
493
  to: string;
578
- type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
494
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
579
495
  description?: string | string[] | undefined;
580
496
  polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
581
497
  strength?: number | undefined;
@@ -615,10 +531,10 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
615
531
  nodes: {
616
532
  [x: string]: unknown;
617
533
  id: string;
618
- type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
534
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
619
535
  name: string;
620
536
  description?: string | string[] | undefined;
621
- status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
537
+ status?: undefined;
622
538
  lifecycle?: Record<string, string | boolean> | undefined;
623
539
  context?: string | string[] | undefined;
624
540
  options?: {
@@ -642,8 +558,6 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
642
558
  }[] | undefined;
643
559
  propagation?: Record<string, boolean> | undefined;
644
560
  includes?: string[] | undefined;
645
- input?: string | undefined;
646
- output?: string | undefined;
647
561
  external_references?: {
648
562
  role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
649
563
  identifier: string;
@@ -666,7 +580,7 @@ export declare const addRelationshipOp: import("./define-operation.js").DefinedO
666
580
  [x: string]: unknown;
667
581
  from: string;
668
582
  to: string;
669
- type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
583
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
670
584
  description?: string | string[] | undefined;
671
585
  polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
672
586
  strength?: number | undefined;
@@ -40,39 +40,18 @@ export declare const checkOp: import("./define-operation.js").DefinedOperation<z
40
40
  gate: "gate";
41
41
  mode: "mode";
42
42
  artefact: "artefact";
43
- artefact_flow: "artefact_flow";
44
43
  decision: "decision";
45
44
  change: "change";
46
45
  view: "view";
47
46
  milestone: "milestone";
48
- version: "version";
49
47
  }> & {
50
- is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
48
+ is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
51
49
  };
52
50
  name: z.ZodString;
53
51
  description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
54
52
  is(value: unknown): value is string | string[];
55
53
  }>;
56
- status: z.ZodOptional<z.ZodEnum<{
57
- deprecated: "deprecated";
58
- proposed: "proposed";
59
- accepted: "accepted";
60
- active: "active";
61
- implemented: "implemented";
62
- adopted: "adopted";
63
- defined: "defined";
64
- introduced: "introduced";
65
- in_progress: "in_progress";
66
- complete: "complete";
67
- consolidated: "consolidated";
68
- experimental: "experimental";
69
- retired: "retired";
70
- superseded: "superseded";
71
- abandoned: "abandoned";
72
- deferred: "deferred";
73
- }> & {
74
- is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
75
- }>;
54
+ status: z.ZodOptional<z.ZodNever>;
76
55
  lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
77
56
  context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
78
57
  is(value: unknown): value is string | string[];
@@ -127,8 +106,6 @@ export declare const checkOp: import("./define-operation.js").DefinedOperation<z
127
106
  }>>;
128
107
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
129
108
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
130
- input: z.ZodOptional<z.ZodString>;
131
- output: z.ZodOptional<z.ZodString>;
132
109
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
133
110
  role: z.ZodEnum<{
134
111
  output: "output";
@@ -172,26 +149,14 @@ export declare const checkOp: import("./define-operation.js").DefinedOperation<z
172
149
  affects: "affects";
173
150
  supersedes: "supersedes";
174
151
  must_preserve: "must_preserve";
175
- performs: "performs";
176
152
  part_of: "part_of";
177
153
  precedes: "precedes";
178
154
  must_follow: "must_follow";
179
- blocks: "blocks";
180
- routes_to: "routes_to";
181
155
  governed_by: "governed_by";
182
156
  modifies: "modifies";
183
- triggered_by: "triggered_by";
184
- applies_to: "applies_to";
185
157
  produces: "produces";
186
- consumes: "consumes";
187
- transforms_into: "transforms_into";
188
- selects: "selects";
189
- requires: "requires";
190
- disables: "disables";
191
- influence: "influence";
192
- justifies: "justifies";
193
158
  }> & {
194
- is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
159
+ is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
195
160
  };
196
161
  description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
197
162
  is(value: unknown): value is string | string[];
@@ -210,7 +175,7 @@ export declare const checkOp: import("./define-operation.js").DefinedOperation<z
210
175
  [x: string]: unknown;
211
176
  from: string;
212
177
  to: string;
213
- type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
178
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
214
179
  description?: string | string[] | undefined;
215
180
  polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
216
181
  strength?: number | undefined;
@@ -250,10 +215,10 @@ export declare const checkOp: import("./define-operation.js").DefinedOperation<z
250
215
  nodes: {
251
216
  [x: string]: unknown;
252
217
  id: string;
253
- type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
218
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
254
219
  name: string;
255
220
  description?: string | string[] | undefined;
256
- status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
221
+ status?: undefined;
257
222
  lifecycle?: Record<string, string | boolean> | undefined;
258
223
  context?: string | string[] | undefined;
259
224
  options?: {
@@ -277,8 +242,6 @@ export declare const checkOp: import("./define-operation.js").DefinedOperation<z
277
242
  }[] | undefined;
278
243
  propagation?: Record<string, boolean> | undefined;
279
244
  includes?: string[] | undefined;
280
- input?: string | undefined;
281
- output?: string | undefined;
282
245
  external_references?: {
283
246
  role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
284
247
  identifier: string;
@@ -301,7 +264,7 @@ export declare const checkOp: import("./define-operation.js").DefinedOperation<z
301
264
  [x: string]: unknown;
302
265
  from: string;
303
266
  to: string;
304
- type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
267
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
305
268
  description?: string | string[] | undefined;
306
269
  polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
307
270
  strength?: number | undefined;
@@ -36,39 +36,18 @@ export declare const graphDecisionOp: import("./define-operation.js").DefinedOpe
36
36
  gate: "gate";
37
37
  mode: "mode";
38
38
  artefact: "artefact";
39
- artefact_flow: "artefact_flow";
40
39
  decision: "decision";
41
40
  change: "change";
42
41
  view: "view";
43
42
  milestone: "milestone";
44
- version: "version";
45
43
  }> & {
46
- is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
44
+ is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
47
45
  };
48
46
  name: z.ZodString;
49
47
  description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
50
48
  is(value: unknown): value is string | string[];
51
49
  }>;
52
- status: z.ZodOptional<z.ZodEnum<{
53
- deprecated: "deprecated";
54
- proposed: "proposed";
55
- accepted: "accepted";
56
- active: "active";
57
- implemented: "implemented";
58
- adopted: "adopted";
59
- defined: "defined";
60
- introduced: "introduced";
61
- in_progress: "in_progress";
62
- complete: "complete";
63
- consolidated: "consolidated";
64
- experimental: "experimental";
65
- retired: "retired";
66
- superseded: "superseded";
67
- abandoned: "abandoned";
68
- deferred: "deferred";
69
- }> & {
70
- is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
71
- }>;
50
+ status: z.ZodOptional<z.ZodNever>;
72
51
  lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
73
52
  context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
74
53
  is(value: unknown): value is string | string[];
@@ -123,8 +102,6 @@ export declare const graphDecisionOp: import("./define-operation.js").DefinedOpe
123
102
  }>>;
124
103
  propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
125
104
  includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
126
- input: z.ZodOptional<z.ZodString>;
127
- output: z.ZodOptional<z.ZodString>;
128
105
  external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
129
106
  role: z.ZodEnum<{
130
107
  output: "output";
@@ -168,26 +145,14 @@ export declare const graphDecisionOp: import("./define-operation.js").DefinedOpe
168
145
  affects: "affects";
169
146
  supersedes: "supersedes";
170
147
  must_preserve: "must_preserve";
171
- performs: "performs";
172
148
  part_of: "part_of";
173
149
  precedes: "precedes";
174
150
  must_follow: "must_follow";
175
- blocks: "blocks";
176
- routes_to: "routes_to";
177
151
  governed_by: "governed_by";
178
152
  modifies: "modifies";
179
- triggered_by: "triggered_by";
180
- applies_to: "applies_to";
181
153
  produces: "produces";
182
- consumes: "consumes";
183
- transforms_into: "transforms_into";
184
- selects: "selects";
185
- requires: "requires";
186
- disables: "disables";
187
- influence: "influence";
188
- justifies: "justifies";
189
154
  }> & {
190
- is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
155
+ is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
191
156
  };
192
157
  description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
193
158
  is(value: unknown): value is string | string[];
@@ -206,7 +171,7 @@ export declare const graphDecisionOp: import("./define-operation.js").DefinedOpe
206
171
  [x: string]: unknown;
207
172
  from: string;
208
173
  to: string;
209
- type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
174
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
210
175
  description?: string | string[] | undefined;
211
176
  polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
212
177
  strength?: number | undefined;
@@ -246,10 +211,10 @@ export declare const graphDecisionOp: import("./define-operation.js").DefinedOpe
246
211
  nodes: {
247
212
  [x: string]: unknown;
248
213
  id: string;
249
- type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
214
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
250
215
  name: string;
251
216
  description?: string | string[] | undefined;
252
- status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
217
+ status?: undefined;
253
218
  lifecycle?: Record<string, string | boolean> | undefined;
254
219
  context?: string | string[] | undefined;
255
220
  options?: {
@@ -273,8 +238,6 @@ export declare const graphDecisionOp: import("./define-operation.js").DefinedOpe
273
238
  }[] | undefined;
274
239
  propagation?: Record<string, boolean> | undefined;
275
240
  includes?: string[] | undefined;
276
- input?: string | undefined;
277
- output?: string | undefined;
278
241
  external_references?: {
279
242
  role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
280
243
  identifier: string;
@@ -297,7 +260,7 @@ export declare const graphDecisionOp: import("./define-operation.js").DefinedOpe
297
260
  [x: string]: unknown;
298
261
  from: string;
299
262
  to: string;
300
- type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables" | "influence" | "justifies";
263
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
301
264
  description?: string | string[] | undefined;
302
265
  polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
303
266
  strength?: number | undefined;
@@ -3,7 +3,6 @@ import { defineOperation } from "./define-operation.js";
3
3
  import { SysProMDocument } from "../schema.js";
4
4
  import { sanitiseMermaidId, mermaidShapeForNode, renderMermaidNode, renderMermaidClassDefs, mermaidClassForNode, dotNodeAttrsWithMode, renderRelationshipLabel, } from "./graph-shared.js";
5
5
  const DECISION_REL_TYPES = new Set([
6
- "selects",
7
6
  "must_preserve",
8
7
  "affects",
9
8
  "constrained_by",