sysprom 1.20.0 → 1.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schema.json +4 -44
- 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 -121
- 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 -135
- package/dist/src/operations/add-plan-task.d.ts +14 -90
- package/dist/src/operations/add-relationship.d.ts +16 -105
- package/dist/src/operations/check.d.ts +7 -45
- package/dist/src/operations/graph-decision.d.ts +7 -45
- package/dist/src/operations/graph-decision.js +0 -1
- package/dist/src/operations/graph-dependency.d.ts +7 -45
- package/dist/src/operations/graph-dependency.js +3 -23
- package/dist/src/operations/graph-refinement.d.ts +7 -45
- package/dist/src/operations/graph-shared.js +1 -3
- package/dist/src/operations/graph.d.ts +7 -45
- package/dist/src/operations/infer-completeness.d.ts +10 -54
- package/dist/src/operations/infer-derived.d.ts +7 -45
- package/dist/src/operations/infer-derived.js +28 -4
- package/dist/src/operations/infer-impact.d.ts +49 -315
- package/dist/src/operations/infer-impact.js +22 -3
- package/dist/src/operations/infer-lifecycle.d.ts +8 -106
- package/dist/src/operations/infer-lifecycle.js +4 -10
- package/dist/src/operations/init-document.d.ts +7 -45
- package/dist/src/operations/json-to-markdown.d.ts +7 -45
- package/dist/src/operations/mark-task-done.d.ts +14 -90
- package/dist/src/operations/mark-task-undone.d.ts +14 -90
- package/dist/src/operations/markdown-to-json.d.ts +7 -45
- package/dist/src/operations/next-id.d.ts +8 -48
- package/dist/src/operations/node-history.d.ts +7 -45
- package/dist/src/operations/plan-add-task.d.ts +14 -90
- package/dist/src/operations/plan-gate.d.ts +7 -45
- package/dist/src/operations/plan-init.d.ts +7 -45
- package/dist/src/operations/plan-progress.d.ts +7 -45
- package/dist/src/operations/plan-status.d.ts +7 -45
- package/dist/src/operations/query-node.d.ts +29 -195
- package/dist/src/operations/query-nodes.d.ts +15 -91
- package/dist/src/operations/query-nodes.js +6 -4
- package/dist/src/operations/query-relationships.d.ts +9 -60
- package/dist/src/operations/remove-node.d.ts +21 -135
- package/dist/src/operations/remove-node.js +11 -1
- package/dist/src/operations/remove-relationship.d.ts +15 -104
- package/dist/src/operations/rename.d.ts +14 -90
- package/dist/src/operations/search.d.ts +14 -90
- package/dist/src/operations/speckit-diff.d.ts +7 -45
- package/dist/src/operations/speckit-export.d.ts +7 -45
- package/dist/src/operations/speckit-import.d.ts +7 -45
- package/dist/src/operations/speckit-sync.d.ts +22 -136
- package/dist/src/operations/speckit-sync.js +3 -3
- package/dist/src/operations/state-at.d.ts +7 -45
- package/dist/src/operations/stats.d.ts +7 -45
- package/dist/src/operations/sync.d.ts +21 -135
- package/dist/src/operations/task-list.d.ts +7 -45
- package/dist/src/operations/timeline.d.ts +7 -45
- package/dist/src/operations/trace-from-node.d.ts +21 -135
- package/dist/src/operations/update-metadata.d.ts +14 -90
- package/dist/src/operations/update-node.d.ts +20 -155
- package/dist/src/operations/update-plan-task.d.ts +14 -90
- package/dist/src/operations/validate.d.ts +7 -45
- package/dist/src/operations/validate.js +8 -6
- package/dist/src/schema.d.ts +22 -164
- package/dist/src/schema.js +4 -27
- 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 +13 -2
- package/schema.json +4 -44
|
@@ -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,27 +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
|
-
orchestrates: "orchestrates";
|
|
178
151
|
governed_by: "governed_by";
|
|
179
152
|
modifies: "modifies";
|
|
180
|
-
triggered_by: "triggered_by";
|
|
181
|
-
applies_to: "applies_to";
|
|
182
153
|
produces: "produces";
|
|
183
|
-
consumes: "consumes";
|
|
184
|
-
transforms_into: "transforms_into";
|
|
185
|
-
selects: "selects";
|
|
186
|
-
requires: "requires";
|
|
187
|
-
disables: "disables";
|
|
188
|
-
influence: "influence";
|
|
189
|
-
justifies: "justifies";
|
|
190
154
|
}> & {
|
|
191
|
-
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";
|
|
192
156
|
};
|
|
193
157
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
194
158
|
is(value: unknown): value is string | string[];
|
|
@@ -207,7 +171,7 @@ export declare const RemoveResult: z.ZodObject<{
|
|
|
207
171
|
[x: string]: unknown;
|
|
208
172
|
from: string;
|
|
209
173
|
to: string;
|
|
210
|
-
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";
|
|
211
175
|
description?: string | string[] | undefined;
|
|
212
176
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
213
177
|
strength?: number | undefined;
|
|
@@ -247,10 +211,10 @@ export declare const RemoveResult: z.ZodObject<{
|
|
|
247
211
|
nodes: {
|
|
248
212
|
[x: string]: unknown;
|
|
249
213
|
id: string;
|
|
250
|
-
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";
|
|
251
215
|
name: string;
|
|
252
216
|
description?: string | string[] | undefined;
|
|
253
|
-
status?:
|
|
217
|
+
status?: undefined;
|
|
254
218
|
lifecycle?: Record<string, string | boolean> | undefined;
|
|
255
219
|
context?: string | string[] | undefined;
|
|
256
220
|
options?: {
|
|
@@ -274,8 +238,6 @@ export declare const RemoveResult: z.ZodObject<{
|
|
|
274
238
|
}[] | undefined;
|
|
275
239
|
propagation?: Record<string, boolean> | undefined;
|
|
276
240
|
includes?: string[] | undefined;
|
|
277
|
-
input?: string | undefined;
|
|
278
|
-
output?: string | undefined;
|
|
279
241
|
external_references?: {
|
|
280
242
|
role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
|
|
281
243
|
identifier: string;
|
|
@@ -298,7 +260,7 @@ export declare const RemoveResult: z.ZodObject<{
|
|
|
298
260
|
[x: string]: unknown;
|
|
299
261
|
from: string;
|
|
300
262
|
to: string;
|
|
301
|
-
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";
|
|
302
264
|
description?: string | string[] | undefined;
|
|
303
265
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
304
266
|
strength?: number | undefined;
|
|
@@ -357,39 +319,18 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
357
319
|
gate: "gate";
|
|
358
320
|
mode: "mode";
|
|
359
321
|
artefact: "artefact";
|
|
360
|
-
artefact_flow: "artefact_flow";
|
|
361
322
|
decision: "decision";
|
|
362
323
|
change: "change";
|
|
363
324
|
view: "view";
|
|
364
325
|
milestone: "milestone";
|
|
365
|
-
version: "version";
|
|
366
326
|
}> & {
|
|
367
|
-
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";
|
|
368
328
|
};
|
|
369
329
|
name: z.ZodString;
|
|
370
330
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
371
331
|
is(value: unknown): value is string | string[];
|
|
372
332
|
}>;
|
|
373
|
-
status: z.ZodOptional<z.
|
|
374
|
-
deprecated: "deprecated";
|
|
375
|
-
proposed: "proposed";
|
|
376
|
-
accepted: "accepted";
|
|
377
|
-
active: "active";
|
|
378
|
-
implemented: "implemented";
|
|
379
|
-
adopted: "adopted";
|
|
380
|
-
defined: "defined";
|
|
381
|
-
introduced: "introduced";
|
|
382
|
-
in_progress: "in_progress";
|
|
383
|
-
complete: "complete";
|
|
384
|
-
consolidated: "consolidated";
|
|
385
|
-
experimental: "experimental";
|
|
386
|
-
retired: "retired";
|
|
387
|
-
superseded: "superseded";
|
|
388
|
-
abandoned: "abandoned";
|
|
389
|
-
deferred: "deferred";
|
|
390
|
-
}> & {
|
|
391
|
-
is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
|
|
392
|
-
}>;
|
|
333
|
+
status: z.ZodOptional<z.ZodNever>;
|
|
393
334
|
lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
|
|
394
335
|
context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
395
336
|
is(value: unknown): value is string | string[];
|
|
@@ -444,8 +385,6 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
444
385
|
}>>;
|
|
445
386
|
propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
446
387
|
includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
447
|
-
input: z.ZodOptional<z.ZodString>;
|
|
448
|
-
output: z.ZodOptional<z.ZodString>;
|
|
449
388
|
external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
450
389
|
role: z.ZodEnum<{
|
|
451
390
|
output: "output";
|
|
@@ -489,27 +428,14 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
489
428
|
affects: "affects";
|
|
490
429
|
supersedes: "supersedes";
|
|
491
430
|
must_preserve: "must_preserve";
|
|
492
|
-
performs: "performs";
|
|
493
431
|
part_of: "part_of";
|
|
494
432
|
precedes: "precedes";
|
|
495
433
|
must_follow: "must_follow";
|
|
496
|
-
blocks: "blocks";
|
|
497
|
-
routes_to: "routes_to";
|
|
498
|
-
orchestrates: "orchestrates";
|
|
499
434
|
governed_by: "governed_by";
|
|
500
435
|
modifies: "modifies";
|
|
501
|
-
triggered_by: "triggered_by";
|
|
502
|
-
applies_to: "applies_to";
|
|
503
436
|
produces: "produces";
|
|
504
|
-
consumes: "consumes";
|
|
505
|
-
transforms_into: "transforms_into";
|
|
506
|
-
selects: "selects";
|
|
507
|
-
requires: "requires";
|
|
508
|
-
disables: "disables";
|
|
509
|
-
influence: "influence";
|
|
510
|
-
justifies: "justifies";
|
|
511
437
|
}> & {
|
|
512
|
-
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";
|
|
513
439
|
};
|
|
514
440
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
515
441
|
is(value: unknown): value is string | string[];
|
|
@@ -528,7 +454,7 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
528
454
|
[x: string]: unknown;
|
|
529
455
|
from: string;
|
|
530
456
|
to: string;
|
|
531
|
-
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";
|
|
532
458
|
description?: string | string[] | undefined;
|
|
533
459
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
534
460
|
strength?: number | undefined;
|
|
@@ -568,10 +494,10 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
568
494
|
nodes: {
|
|
569
495
|
[x: string]: unknown;
|
|
570
496
|
id: string;
|
|
571
|
-
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";
|
|
572
498
|
name: string;
|
|
573
499
|
description?: string | string[] | undefined;
|
|
574
|
-
status?:
|
|
500
|
+
status?: undefined;
|
|
575
501
|
lifecycle?: Record<string, string | boolean> | undefined;
|
|
576
502
|
context?: string | string[] | undefined;
|
|
577
503
|
options?: {
|
|
@@ -595,8 +521,6 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
595
521
|
}[] | undefined;
|
|
596
522
|
propagation?: Record<string, boolean> | undefined;
|
|
597
523
|
includes?: string[] | undefined;
|
|
598
|
-
input?: string | undefined;
|
|
599
|
-
output?: string | undefined;
|
|
600
524
|
external_references?: {
|
|
601
525
|
role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
|
|
602
526
|
identifier: string;
|
|
@@ -619,7 +543,7 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
619
543
|
[x: string]: unknown;
|
|
620
544
|
from: string;
|
|
621
545
|
to: string;
|
|
622
|
-
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";
|
|
623
547
|
description?: string | string[] | undefined;
|
|
624
548
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
625
549
|
strength?: number | undefined;
|
|
@@ -673,39 +597,18 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
673
597
|
gate: "gate";
|
|
674
598
|
mode: "mode";
|
|
675
599
|
artefact: "artefact";
|
|
676
|
-
artefact_flow: "artefact_flow";
|
|
677
600
|
decision: "decision";
|
|
678
601
|
change: "change";
|
|
679
602
|
view: "view";
|
|
680
603
|
milestone: "milestone";
|
|
681
|
-
version: "version";
|
|
682
604
|
}> & {
|
|
683
|
-
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";
|
|
684
606
|
};
|
|
685
607
|
name: z.ZodString;
|
|
686
608
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
687
609
|
is(value: unknown): value is string | string[];
|
|
688
610
|
}>;
|
|
689
|
-
status: z.ZodOptional<z.
|
|
690
|
-
deprecated: "deprecated";
|
|
691
|
-
proposed: "proposed";
|
|
692
|
-
accepted: "accepted";
|
|
693
|
-
active: "active";
|
|
694
|
-
implemented: "implemented";
|
|
695
|
-
adopted: "adopted";
|
|
696
|
-
defined: "defined";
|
|
697
|
-
introduced: "introduced";
|
|
698
|
-
in_progress: "in_progress";
|
|
699
|
-
complete: "complete";
|
|
700
|
-
consolidated: "consolidated";
|
|
701
|
-
experimental: "experimental";
|
|
702
|
-
retired: "retired";
|
|
703
|
-
superseded: "superseded";
|
|
704
|
-
abandoned: "abandoned";
|
|
705
|
-
deferred: "deferred";
|
|
706
|
-
}> & {
|
|
707
|
-
is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
|
|
708
|
-
}>;
|
|
611
|
+
status: z.ZodOptional<z.ZodNever>;
|
|
709
612
|
lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
|
|
710
613
|
context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
711
614
|
is(value: unknown): value is string | string[];
|
|
@@ -760,8 +663,6 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
760
663
|
}>>;
|
|
761
664
|
propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
762
665
|
includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
763
|
-
input: z.ZodOptional<z.ZodString>;
|
|
764
|
-
output: z.ZodOptional<z.ZodString>;
|
|
765
666
|
external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
766
667
|
role: z.ZodEnum<{
|
|
767
668
|
output: "output";
|
|
@@ -805,27 +706,14 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
805
706
|
affects: "affects";
|
|
806
707
|
supersedes: "supersedes";
|
|
807
708
|
must_preserve: "must_preserve";
|
|
808
|
-
performs: "performs";
|
|
809
709
|
part_of: "part_of";
|
|
810
710
|
precedes: "precedes";
|
|
811
711
|
must_follow: "must_follow";
|
|
812
|
-
blocks: "blocks";
|
|
813
|
-
routes_to: "routes_to";
|
|
814
|
-
orchestrates: "orchestrates";
|
|
815
712
|
governed_by: "governed_by";
|
|
816
713
|
modifies: "modifies";
|
|
817
|
-
triggered_by: "triggered_by";
|
|
818
|
-
applies_to: "applies_to";
|
|
819
714
|
produces: "produces";
|
|
820
|
-
consumes: "consumes";
|
|
821
|
-
transforms_into: "transforms_into";
|
|
822
|
-
selects: "selects";
|
|
823
|
-
requires: "requires";
|
|
824
|
-
disables: "disables";
|
|
825
|
-
influence: "influence";
|
|
826
|
-
justifies: "justifies";
|
|
827
715
|
}> & {
|
|
828
|
-
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";
|
|
829
717
|
};
|
|
830
718
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
831
719
|
is(value: unknown): value is string | string[];
|
|
@@ -844,7 +732,7 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
844
732
|
[x: string]: unknown;
|
|
845
733
|
from: string;
|
|
846
734
|
to: string;
|
|
847
|
-
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";
|
|
848
736
|
description?: string | string[] | undefined;
|
|
849
737
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
850
738
|
strength?: number | undefined;
|
|
@@ -884,10 +772,10 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
884
772
|
nodes: {
|
|
885
773
|
[x: string]: unknown;
|
|
886
774
|
id: string;
|
|
887
|
-
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";
|
|
888
776
|
name: string;
|
|
889
777
|
description?: string | string[] | undefined;
|
|
890
|
-
status?:
|
|
778
|
+
status?: undefined;
|
|
891
779
|
lifecycle?: Record<string, string | boolean> | undefined;
|
|
892
780
|
context?: string | string[] | undefined;
|
|
893
781
|
options?: {
|
|
@@ -911,8 +799,6 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
911
799
|
}[] | undefined;
|
|
912
800
|
propagation?: Record<string, boolean> | undefined;
|
|
913
801
|
includes?: string[] | undefined;
|
|
914
|
-
input?: string | undefined;
|
|
915
|
-
output?: string | undefined;
|
|
916
802
|
external_references?: {
|
|
917
803
|
role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
|
|
918
804
|
identifier: string;
|
|
@@ -935,7 +821,7 @@ export declare const removeNodeOp: import("./define-operation.js").DefinedOperat
|
|
|
935
821
|
[x: string]: unknown;
|
|
936
822
|
from: string;
|
|
937
823
|
to: string;
|
|
938
|
-
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";
|
|
939
825
|
description?: string | string[] | undefined;
|
|
940
826
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
941
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)
|