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.
- package/README.md +3 -0
- package/dist/schema.json +4 -43
- package/dist/src/cli/commands/add.js +6 -2
- package/dist/src/cli/commands/query.js +5 -3
- package/dist/src/cli/commands/speckit.js +2 -2
- package/dist/src/cli/commands/update.js +6 -4
- package/dist/src/endpoint-types.d.ts +4 -0
- package/dist/src/endpoint-types.js +22 -116
- package/dist/src/json-to-md.js +2 -16
- package/dist/src/lifecycle-state.d.ts +9 -0
- package/dist/src/lifecycle-state.js +22 -0
- package/dist/src/mcp/server.js +3 -6
- package/dist/src/md-to-json.js +1 -19
- package/dist/src/operations/add-node.d.ts +21 -132
- package/dist/src/operations/add-plan-task.d.ts +14 -88
- package/dist/src/operations/add-relationship.d.ts +16 -102
- package/dist/src/operations/check.d.ts +7 -44
- package/dist/src/operations/graph-decision.d.ts +7 -44
- package/dist/src/operations/graph-decision.js +0 -1
- package/dist/src/operations/graph-dependency.d.ts +7 -44
- package/dist/src/operations/graph-dependency.js +3 -23
- package/dist/src/operations/graph-refinement.d.ts +7 -44
- package/dist/src/operations/graph-shared.js +1 -3
- package/dist/src/operations/graph.d.ts +7 -44
- package/dist/src/operations/infer-completeness.d.ts +10 -53
- package/dist/src/operations/infer-derived.d.ts +7 -44
- package/dist/src/operations/infer-derived.js +28 -4
- package/dist/src/operations/infer-impact.d.ts +49 -308
- package/dist/src/operations/infer-impact.js +22 -3
- package/dist/src/operations/infer-lifecycle.d.ts +8 -105
- package/dist/src/operations/infer-lifecycle.js +4 -10
- package/dist/src/operations/init-document.d.ts +7 -44
- package/dist/src/operations/json-to-markdown.d.ts +7 -44
- package/dist/src/operations/mark-task-done.d.ts +14 -88
- package/dist/src/operations/mark-task-undone.d.ts +14 -88
- package/dist/src/operations/markdown-to-json.d.ts +7 -44
- package/dist/src/operations/next-id.d.ts +8 -47
- package/dist/src/operations/node-history.d.ts +7 -44
- package/dist/src/operations/plan-add-task.d.ts +14 -88
- package/dist/src/operations/plan-gate.d.ts +7 -44
- package/dist/src/operations/plan-init.d.ts +7 -44
- package/dist/src/operations/plan-progress.d.ts +7 -44
- package/dist/src/operations/plan-status.d.ts +7 -44
- package/dist/src/operations/query-node.d.ts +29 -188
- package/dist/src/operations/query-nodes.d.ts +15 -89
- package/dist/src/operations/query-nodes.js +6 -4
- package/dist/src/operations/query-relationships.d.ts +9 -58
- package/dist/src/operations/remove-node.d.ts +21 -132
- package/dist/src/operations/remove-node.js +11 -1
- package/dist/src/operations/remove-relationship.d.ts +15 -101
- package/dist/src/operations/rename.d.ts +14 -88
- package/dist/src/operations/search.d.ts +14 -88
- package/dist/src/operations/speckit-diff.d.ts +7 -44
- package/dist/src/operations/speckit-export.d.ts +7 -44
- package/dist/src/operations/speckit-import.d.ts +7 -44
- package/dist/src/operations/speckit-sync.d.ts +22 -133
- package/dist/src/operations/speckit-sync.js +3 -3
- package/dist/src/operations/state-at.d.ts +7 -44
- package/dist/src/operations/stats.d.ts +7 -44
- package/dist/src/operations/sync.d.ts +21 -132
- package/dist/src/operations/task-list.d.ts +7 -44
- package/dist/src/operations/timeline.d.ts +7 -44
- package/dist/src/operations/trace-from-node.d.ts +21 -132
- package/dist/src/operations/update-metadata.d.ts +14 -88
- package/dist/src/operations/update-node.d.ts +20 -152
- package/dist/src/operations/update-plan-task.d.ts +14 -88
- package/dist/src/operations/validate.d.ts +7 -44
- package/dist/src/operations/validate.js +8 -6
- package/dist/src/schema.d.ts +22 -159
- package/dist/src/schema.js +4 -26
- package/dist/src/speckit/generate.js +10 -7
- package/dist/src/speckit/parse.js +6 -3
- package/dist/src/speckit/plan.js +1 -1
- package/package.json +12 -1
- package/schema.json +4 -43
|
@@ -36,39 +36,18 @@ export declare const RemoveResult: z.ZodObject<{
|
|
|
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" | "
|
|
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.
|
|
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 RemoveResult: z.ZodObject<{
|
|
|
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 RemoveResult: z.ZodObject<{
|
|
|
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" | "
|
|
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 RemoveResult: z.ZodObject<{
|
|
|
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" | "
|
|
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 RemoveResult: z.ZodObject<{
|
|
|
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" | "
|
|
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?:
|
|
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 RemoveResult: z.ZodObject<{
|
|
|
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 RemoveResult: z.ZodObject<{
|
|
|
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" | "
|
|
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;
|
|
@@ -356,39 +319,18 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
356
319
|
gate: "gate";
|
|
357
320
|
mode: "mode";
|
|
358
321
|
artefact: "artefact";
|
|
359
|
-
artefact_flow: "artefact_flow";
|
|
360
322
|
decision: "decision";
|
|
361
323
|
change: "change";
|
|
362
324
|
view: "view";
|
|
363
325
|
milestone: "milestone";
|
|
364
|
-
version: "version";
|
|
365
326
|
}> & {
|
|
366
|
-
is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "
|
|
327
|
+
is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
|
|
367
328
|
};
|
|
368
329
|
name: z.ZodString;
|
|
369
330
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
370
331
|
is(value: unknown): value is string | string[];
|
|
371
332
|
}>;
|
|
372
|
-
status: z.ZodOptional<z.
|
|
373
|
-
deprecated: "deprecated";
|
|
374
|
-
proposed: "proposed";
|
|
375
|
-
accepted: "accepted";
|
|
376
|
-
active: "active";
|
|
377
|
-
implemented: "implemented";
|
|
378
|
-
adopted: "adopted";
|
|
379
|
-
defined: "defined";
|
|
380
|
-
introduced: "introduced";
|
|
381
|
-
in_progress: "in_progress";
|
|
382
|
-
complete: "complete";
|
|
383
|
-
consolidated: "consolidated";
|
|
384
|
-
experimental: "experimental";
|
|
385
|
-
retired: "retired";
|
|
386
|
-
superseded: "superseded";
|
|
387
|
-
abandoned: "abandoned";
|
|
388
|
-
deferred: "deferred";
|
|
389
|
-
}> & {
|
|
390
|
-
is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
|
|
391
|
-
}>;
|
|
333
|
+
status: z.ZodOptional<z.ZodNever>;
|
|
392
334
|
lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
|
|
393
335
|
context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
394
336
|
is(value: unknown): value is string | string[];
|
|
@@ -443,8 +385,6 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
443
385
|
}>>;
|
|
444
386
|
propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
445
387
|
includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
446
|
-
input: z.ZodOptional<z.ZodString>;
|
|
447
|
-
output: z.ZodOptional<z.ZodString>;
|
|
448
388
|
external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
449
389
|
role: z.ZodEnum<{
|
|
450
390
|
output: "output";
|
|
@@ -488,26 +428,14 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
488
428
|
affects: "affects";
|
|
489
429
|
supersedes: "supersedes";
|
|
490
430
|
must_preserve: "must_preserve";
|
|
491
|
-
performs: "performs";
|
|
492
431
|
part_of: "part_of";
|
|
493
432
|
precedes: "precedes";
|
|
494
433
|
must_follow: "must_follow";
|
|
495
|
-
blocks: "blocks";
|
|
496
|
-
routes_to: "routes_to";
|
|
497
434
|
governed_by: "governed_by";
|
|
498
435
|
modifies: "modifies";
|
|
499
|
-
triggered_by: "triggered_by";
|
|
500
|
-
applies_to: "applies_to";
|
|
501
436
|
produces: "produces";
|
|
502
|
-
consumes: "consumes";
|
|
503
|
-
transforms_into: "transforms_into";
|
|
504
|
-
selects: "selects";
|
|
505
|
-
requires: "requires";
|
|
506
|
-
disables: "disables";
|
|
507
|
-
influence: "influence";
|
|
508
|
-
justifies: "justifies";
|
|
509
437
|
}> & {
|
|
510
|
-
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "
|
|
438
|
+
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";
|
|
511
439
|
};
|
|
512
440
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
513
441
|
is(value: unknown): value is string | string[];
|
|
@@ -526,7 +454,7 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
526
454
|
[x: string]: unknown;
|
|
527
455
|
from: string;
|
|
528
456
|
to: string;
|
|
529
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "
|
|
457
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
|
|
530
458
|
description?: string | string[] | undefined;
|
|
531
459
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
532
460
|
strength?: number | undefined;
|
|
@@ -566,10 +494,10 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
566
494
|
nodes: {
|
|
567
495
|
[x: string]: unknown;
|
|
568
496
|
id: string;
|
|
569
|
-
type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "
|
|
497
|
+
type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
|
|
570
498
|
name: string;
|
|
571
499
|
description?: string | string[] | undefined;
|
|
572
|
-
status?:
|
|
500
|
+
status?: undefined;
|
|
573
501
|
lifecycle?: Record<string, string | boolean> | undefined;
|
|
574
502
|
context?: string | string[] | undefined;
|
|
575
503
|
options?: {
|
|
@@ -593,8 +521,6 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
593
521
|
}[] | undefined;
|
|
594
522
|
propagation?: Record<string, boolean> | undefined;
|
|
595
523
|
includes?: string[] | undefined;
|
|
596
|
-
input?: string | undefined;
|
|
597
|
-
output?: string | undefined;
|
|
598
524
|
external_references?: {
|
|
599
525
|
role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
|
|
600
526
|
identifier: string;
|
|
@@ -617,7 +543,7 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
617
543
|
[x: string]: unknown;
|
|
618
544
|
from: string;
|
|
619
545
|
to: string;
|
|
620
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "
|
|
546
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
|
|
621
547
|
description?: string | string[] | undefined;
|
|
622
548
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
623
549
|
strength?: number | undefined;
|
|
@@ -671,39 +597,18 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
671
597
|
gate: "gate";
|
|
672
598
|
mode: "mode";
|
|
673
599
|
artefact: "artefact";
|
|
674
|
-
artefact_flow: "artefact_flow";
|
|
675
600
|
decision: "decision";
|
|
676
601
|
change: "change";
|
|
677
602
|
view: "view";
|
|
678
603
|
milestone: "milestone";
|
|
679
|
-
version: "version";
|
|
680
604
|
}> & {
|
|
681
|
-
is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "
|
|
605
|
+
is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
|
|
682
606
|
};
|
|
683
607
|
name: z.ZodString;
|
|
684
608
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
685
609
|
is(value: unknown): value is string | string[];
|
|
686
610
|
}>;
|
|
687
|
-
status: z.ZodOptional<z.
|
|
688
|
-
deprecated: "deprecated";
|
|
689
|
-
proposed: "proposed";
|
|
690
|
-
accepted: "accepted";
|
|
691
|
-
active: "active";
|
|
692
|
-
implemented: "implemented";
|
|
693
|
-
adopted: "adopted";
|
|
694
|
-
defined: "defined";
|
|
695
|
-
introduced: "introduced";
|
|
696
|
-
in_progress: "in_progress";
|
|
697
|
-
complete: "complete";
|
|
698
|
-
consolidated: "consolidated";
|
|
699
|
-
experimental: "experimental";
|
|
700
|
-
retired: "retired";
|
|
701
|
-
superseded: "superseded";
|
|
702
|
-
abandoned: "abandoned";
|
|
703
|
-
deferred: "deferred";
|
|
704
|
-
}> & {
|
|
705
|
-
is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
|
|
706
|
-
}>;
|
|
611
|
+
status: z.ZodOptional<z.ZodNever>;
|
|
707
612
|
lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
|
|
708
613
|
context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
709
614
|
is(value: unknown): value is string | string[];
|
|
@@ -758,8 +663,6 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
758
663
|
}>>;
|
|
759
664
|
propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
760
665
|
includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
761
|
-
input: z.ZodOptional<z.ZodString>;
|
|
762
|
-
output: z.ZodOptional<z.ZodString>;
|
|
763
666
|
external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
764
667
|
role: z.ZodEnum<{
|
|
765
668
|
output: "output";
|
|
@@ -803,26 +706,14 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
803
706
|
affects: "affects";
|
|
804
707
|
supersedes: "supersedes";
|
|
805
708
|
must_preserve: "must_preserve";
|
|
806
|
-
performs: "performs";
|
|
807
709
|
part_of: "part_of";
|
|
808
710
|
precedes: "precedes";
|
|
809
711
|
must_follow: "must_follow";
|
|
810
|
-
blocks: "blocks";
|
|
811
|
-
routes_to: "routes_to";
|
|
812
712
|
governed_by: "governed_by";
|
|
813
713
|
modifies: "modifies";
|
|
814
|
-
triggered_by: "triggered_by";
|
|
815
|
-
applies_to: "applies_to";
|
|
816
714
|
produces: "produces";
|
|
817
|
-
consumes: "consumes";
|
|
818
|
-
transforms_into: "transforms_into";
|
|
819
|
-
selects: "selects";
|
|
820
|
-
requires: "requires";
|
|
821
|
-
disables: "disables";
|
|
822
|
-
influence: "influence";
|
|
823
|
-
justifies: "justifies";
|
|
824
715
|
}> & {
|
|
825
|
-
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "
|
|
716
|
+
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";
|
|
826
717
|
};
|
|
827
718
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
828
719
|
is(value: unknown): value is string | string[];
|
|
@@ -841,7 +732,7 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
841
732
|
[x: string]: unknown;
|
|
842
733
|
from: string;
|
|
843
734
|
to: string;
|
|
844
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "
|
|
735
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
|
|
845
736
|
description?: string | string[] | undefined;
|
|
846
737
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
847
738
|
strength?: number | undefined;
|
|
@@ -881,10 +772,10 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
881
772
|
nodes: {
|
|
882
773
|
[x: string]: unknown;
|
|
883
774
|
id: string;
|
|
884
|
-
type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "
|
|
775
|
+
type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
|
|
885
776
|
name: string;
|
|
886
777
|
description?: string | string[] | undefined;
|
|
887
|
-
status?:
|
|
778
|
+
status?: undefined;
|
|
888
779
|
lifecycle?: Record<string, string | boolean> | undefined;
|
|
889
780
|
context?: string | string[] | undefined;
|
|
890
781
|
options?: {
|
|
@@ -908,8 +799,6 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
908
799
|
}[] | undefined;
|
|
909
800
|
propagation?: Record<string, boolean> | undefined;
|
|
910
801
|
includes?: string[] | undefined;
|
|
911
|
-
input?: string | undefined;
|
|
912
|
-
output?: string | undefined;
|
|
913
802
|
external_references?: {
|
|
914
803
|
role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
|
|
915
804
|
identifier: string;
|
|
@@ -932,7 +821,7 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
932
821
|
[x: string]: unknown;
|
|
933
822
|
from: string;
|
|
934
823
|
to: string;
|
|
935
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "
|
|
824
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
|
|
936
825
|
description?: string | string[] | undefined;
|
|
937
826
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
938
827
|
strength?: number | undefined;
|
|
@@ -78,7 +78,17 @@ export const removeNodeOp = defineOperation({
|
|
|
78
78
|
}
|
|
79
79
|
else {
|
|
80
80
|
// Soft delete: mark as retired and preserve relationships
|
|
81
|
-
newNodes = doc.nodes.map((n) =>
|
|
81
|
+
newNodes = doc.nodes.map((n) => {
|
|
82
|
+
if (n.id !== id)
|
|
83
|
+
return n;
|
|
84
|
+
return {
|
|
85
|
+
...n,
|
|
86
|
+
lifecycle: {
|
|
87
|
+
...(n.lifecycle ?? {}),
|
|
88
|
+
retired: true,
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
});
|
|
82
92
|
// Don't remove relationships in soft delete
|
|
83
93
|
}
|
|
84
94
|
// Clean up all references to the removed node (both soft and hard)
|