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 graphDependencyOp: import("./define-operation.js").DefinedO
|
|
|
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 graphDependencyOp: import("./define-operation.js").DefinedO
|
|
|
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 graphDependencyOp: import("./define-operation.js").DefinedO
|
|
|
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 graphDependencyOp: import("./define-operation.js").DefinedO
|
|
|
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 graphDependencyOp: import("./define-operation.js").DefinedO
|
|
|
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 graphDependencyOp: import("./define-operation.js").DefinedO
|
|
|
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 graphDependencyOp: import("./define-operation.js").DefinedO
|
|
|
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;
|
|
@@ -5,8 +5,6 @@ import { sanitiseMermaidId, mermaidShapeForNode, renderMermaidNode, renderMermai
|
|
|
5
5
|
const DEPENDENCY_REL_TYPES = new Set([
|
|
6
6
|
"depends_on",
|
|
7
7
|
"constrained_by",
|
|
8
|
-
"requires",
|
|
9
|
-
"blocks",
|
|
10
8
|
"governed_by",
|
|
11
9
|
]);
|
|
12
10
|
function collectDependencyGraph(doc, seedIds) {
|
|
@@ -51,18 +49,8 @@ function generateDependencyMermaid(nodes, rels, labelMode) {
|
|
|
51
49
|
for (const rel of rels) {
|
|
52
50
|
const fromId = sanitiseMermaidId(rel.from);
|
|
53
51
|
const toId = sanitiseMermaidId(rel.to);
|
|
54
|
-
const style = rel.type === "blocks"
|
|
55
|
-
? "-.->|blocked|"
|
|
56
|
-
: rel.type === "requires"
|
|
57
|
-
? "==>|required|"
|
|
58
|
-
: `-->|${rel.type}|`;
|
|
59
52
|
const label = renderRelationshipLabel(rel);
|
|
60
|
-
|
|
61
|
-
lines.push(` ${toId} ${style} ${fromId}`);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
lines.push(` ${fromId} ${style}${label ? `|${label}| ` : " "}${toId}`);
|
|
65
|
-
}
|
|
53
|
+
lines.push(` ${fromId} -->|${label}| ${toId}`);
|
|
66
54
|
}
|
|
67
55
|
return lines.join("\n");
|
|
68
56
|
}
|
|
@@ -83,15 +71,7 @@ function generateDependencyDot(nodes, rels, layout, labelMode) {
|
|
|
83
71
|
}
|
|
84
72
|
for (const rel of rels) {
|
|
85
73
|
const attrs = [`label="${renderRelationshipLabel(rel)}"`];
|
|
86
|
-
|
|
87
|
-
attrs.push("style=dashed", "color=red");
|
|
88
|
-
lines.push(` "${rel.to}" -> "${rel.from}" [${attrs.join(" ")}];`);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
if (rel.type === "requires")
|
|
92
|
-
attrs.push("penwidth=2");
|
|
93
|
-
lines.push(` "${rel.from}" -> "${rel.to}" [${attrs.join(" ")}];`);
|
|
94
|
-
}
|
|
74
|
+
lines.push(` "${rel.from}" -> "${rel.to}" [${attrs.join(" ")}];`);
|
|
95
75
|
}
|
|
96
76
|
lines.push("}");
|
|
97
77
|
return lines.join("\n");
|
|
@@ -99,7 +79,7 @@ function generateDependencyDot(nodes, rels, layout, labelMode) {
|
|
|
99
79
|
/** Generate a dependency graph showing how nodes depend on, constrain, and require each other. */
|
|
100
80
|
export const graphDependencyOp = defineOperation({
|
|
101
81
|
name: "graphDependency",
|
|
102
|
-
description: "Generate a dependency graph showing depends_on, constrained_by,
|
|
82
|
+
description: "Generate a dependency graph showing depends_on, constrained_by, and governed_by relationships.",
|
|
103
83
|
input: z.object({
|
|
104
84
|
doc: SysProMDocument,
|
|
105
85
|
format: z.enum(["mermaid", "dot"]).default("mermaid"),
|
|
@@ -36,39 +36,18 @@ export declare const graphRefinementOp: import("./define-operation.js").DefinedO
|
|
|
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 graphRefinementOp: import("./define-operation.js").DefinedO
|
|
|
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 graphRefinementOp: import("./define-operation.js").DefinedO
|
|
|
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 graphRefinementOp: import("./define-operation.js").DefinedO
|
|
|
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 graphRefinementOp: import("./define-operation.js").DefinedO
|
|
|
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 graphRefinementOp: import("./define-operation.js").DefinedO
|
|
|
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 graphRefinementOp: import("./define-operation.js").DefinedO
|
|
|
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;
|
|
@@ -51,7 +51,7 @@ export const NODE_CATEGORIES = [
|
|
|
51
51
|
{
|
|
52
52
|
name: "meta",
|
|
53
53
|
label: "Meta",
|
|
54
|
-
types: ["view", "milestone"
|
|
54
|
+
types: ["view", "milestone"],
|
|
55
55
|
colour: "#95A5A6",
|
|
56
56
|
textColour: "#fff",
|
|
57
57
|
},
|
|
@@ -92,12 +92,10 @@ const NODE_TYPE_SHAPES = {
|
|
|
92
92
|
gate: "rectangle",
|
|
93
93
|
mode: "rectangle",
|
|
94
94
|
artefact: "rectangle",
|
|
95
|
-
artefact_flow: "rectangle",
|
|
96
95
|
decision: "rhombus",
|
|
97
96
|
change: "rectangle",
|
|
98
97
|
view: "rectangle",
|
|
99
98
|
milestone: "rectangle",
|
|
100
|
-
version: "rectangle",
|
|
101
99
|
};
|
|
102
100
|
/**
|
|
103
101
|
* Map a node to its Mermaid shape.
|
|
@@ -36,39 +36,18 @@ export declare const graphOp: import("./define-operation.js").DefinedOperation<z
|
|
|
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 graphOp: import("./define-operation.js").DefinedOperation<z
|
|
|
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 graphOp: import("./define-operation.js").DefinedOperation<z
|
|
|
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 graphOp: import("./define-operation.js").DefinedOperation<z
|
|
|
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 graphOp: import("./define-operation.js").DefinedOperation<z
|
|
|
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 graphOp: import("./define-operation.js").DefinedOperation<z
|
|
|
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 graphOp: import("./define-operation.js").DefinedOperation<z
|
|
|
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;
|
|
@@ -19,14 +19,12 @@ declare const CompletenessResult: z.ZodObject<{
|
|
|
19
19
|
gate: "gate";
|
|
20
20
|
mode: "mode";
|
|
21
21
|
artefact: "artefact";
|
|
22
|
-
artefact_flow: "artefact_flow";
|
|
23
22
|
decision: "decision";
|
|
24
23
|
change: "change";
|
|
25
24
|
view: "view";
|
|
26
25
|
milestone: "milestone";
|
|
27
|
-
version: "version";
|
|
28
26
|
}> & {
|
|
29
|
-
is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "
|
|
27
|
+
is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
|
|
30
28
|
};
|
|
31
29
|
name: z.ZodString;
|
|
32
30
|
score: z.ZodNumber;
|
|
@@ -55,14 +53,12 @@ declare const CompletenessOutput: z.ZodObject<{
|
|
|
55
53
|
gate: "gate";
|
|
56
54
|
mode: "mode";
|
|
57
55
|
artefact: "artefact";
|
|
58
|
-
artefact_flow: "artefact_flow";
|
|
59
56
|
decision: "decision";
|
|
60
57
|
change: "change";
|
|
61
58
|
view: "view";
|
|
62
59
|
milestone: "milestone";
|
|
63
|
-
version: "version";
|
|
64
60
|
}> & {
|
|
65
|
-
is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "
|
|
61
|
+
is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
|
|
66
62
|
};
|
|
67
63
|
name: z.ZodString;
|
|
68
64
|
score: z.ZodNumber;
|
|
@@ -116,39 +112,18 @@ export declare const inferCompletenessOp: import("./define-operation.js").Define
|
|
|
116
112
|
gate: "gate";
|
|
117
113
|
mode: "mode";
|
|
118
114
|
artefact: "artefact";
|
|
119
|
-
artefact_flow: "artefact_flow";
|
|
120
115
|
decision: "decision";
|
|
121
116
|
change: "change";
|
|
122
117
|
view: "view";
|
|
123
118
|
milestone: "milestone";
|
|
124
|
-
version: "version";
|
|
125
119
|
}> & {
|
|
126
|
-
is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "
|
|
120
|
+
is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
|
|
127
121
|
};
|
|
128
122
|
name: z.ZodString;
|
|
129
123
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
130
124
|
is(value: unknown): value is string | string[];
|
|
131
125
|
}>;
|
|
132
|
-
status: z.ZodOptional<z.
|
|
133
|
-
deprecated: "deprecated";
|
|
134
|
-
proposed: "proposed";
|
|
135
|
-
accepted: "accepted";
|
|
136
|
-
active: "active";
|
|
137
|
-
implemented: "implemented";
|
|
138
|
-
adopted: "adopted";
|
|
139
|
-
defined: "defined";
|
|
140
|
-
introduced: "introduced";
|
|
141
|
-
in_progress: "in_progress";
|
|
142
|
-
complete: "complete";
|
|
143
|
-
consolidated: "consolidated";
|
|
144
|
-
experimental: "experimental";
|
|
145
|
-
retired: "retired";
|
|
146
|
-
superseded: "superseded";
|
|
147
|
-
abandoned: "abandoned";
|
|
148
|
-
deferred: "deferred";
|
|
149
|
-
}> & {
|
|
150
|
-
is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
|
|
151
|
-
}>;
|
|
126
|
+
status: z.ZodOptional<z.ZodNever>;
|
|
152
127
|
lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
|
|
153
128
|
context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
154
129
|
is(value: unknown): value is string | string[];
|
|
@@ -203,8 +178,6 @@ export declare const inferCompletenessOp: import("./define-operation.js").Define
|
|
|
203
178
|
}>>;
|
|
204
179
|
propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
205
180
|
includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
206
|
-
input: z.ZodOptional<z.ZodString>;
|
|
207
|
-
output: z.ZodOptional<z.ZodString>;
|
|
208
181
|
external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
209
182
|
role: z.ZodEnum<{
|
|
210
183
|
output: "output";
|
|
@@ -248,27 +221,14 @@ export declare const inferCompletenessOp: import("./define-operation.js").Define
|
|
|
248
221
|
affects: "affects";
|
|
249
222
|
supersedes: "supersedes";
|
|
250
223
|
must_preserve: "must_preserve";
|
|
251
|
-
performs: "performs";
|
|
252
224
|
part_of: "part_of";
|
|
253
225
|
precedes: "precedes";
|
|
254
226
|
must_follow: "must_follow";
|
|
255
|
-
blocks: "blocks";
|
|
256
|
-
routes_to: "routes_to";
|
|
257
|
-
orchestrates: "orchestrates";
|
|
258
227
|
governed_by: "governed_by";
|
|
259
228
|
modifies: "modifies";
|
|
260
|
-
triggered_by: "triggered_by";
|
|
261
|
-
applies_to: "applies_to";
|
|
262
229
|
produces: "produces";
|
|
263
|
-
consumes: "consumes";
|
|
264
|
-
transforms_into: "transforms_into";
|
|
265
|
-
selects: "selects";
|
|
266
|
-
requires: "requires";
|
|
267
|
-
disables: "disables";
|
|
268
|
-
influence: "influence";
|
|
269
|
-
justifies: "justifies";
|
|
270
230
|
}> & {
|
|
271
|
-
is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "
|
|
231
|
+
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";
|
|
272
232
|
};
|
|
273
233
|
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
|
|
274
234
|
is(value: unknown): value is string | string[];
|
|
@@ -287,7 +247,7 @@ export declare const inferCompletenessOp: import("./define-operation.js").Define
|
|
|
287
247
|
[x: string]: unknown;
|
|
288
248
|
from: string;
|
|
289
249
|
to: string;
|
|
290
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "
|
|
250
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
|
|
291
251
|
description?: string | string[] | undefined;
|
|
292
252
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
293
253
|
strength?: number | undefined;
|
|
@@ -327,10 +287,10 @@ export declare const inferCompletenessOp: import("./define-operation.js").Define
|
|
|
327
287
|
nodes: {
|
|
328
288
|
[x: string]: unknown;
|
|
329
289
|
id: string;
|
|
330
|
-
type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "
|
|
290
|
+
type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
|
|
331
291
|
name: string;
|
|
332
292
|
description?: string | string[] | undefined;
|
|
333
|
-
status?:
|
|
293
|
+
status?: undefined;
|
|
334
294
|
lifecycle?: Record<string, string | boolean> | undefined;
|
|
335
295
|
context?: string | string[] | undefined;
|
|
336
296
|
options?: {
|
|
@@ -354,8 +314,6 @@ export declare const inferCompletenessOp: import("./define-operation.js").Define
|
|
|
354
314
|
}[] | undefined;
|
|
355
315
|
propagation?: Record<string, boolean> | undefined;
|
|
356
316
|
includes?: string[] | undefined;
|
|
357
|
-
input?: string | undefined;
|
|
358
|
-
output?: string | undefined;
|
|
359
317
|
external_references?: {
|
|
360
318
|
role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
|
|
361
319
|
identifier: string;
|
|
@@ -378,7 +336,7 @@ export declare const inferCompletenessOp: import("./define-operation.js").Define
|
|
|
378
336
|
[x: string]: unknown;
|
|
379
337
|
from: string;
|
|
380
338
|
to: string;
|
|
381
|
-
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "
|
|
339
|
+
type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "part_of" | "precedes" | "must_follow" | "governed_by" | "modifies" | "produces";
|
|
382
340
|
description?: string | string[] | undefined;
|
|
383
341
|
polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
|
|
384
342
|
strength?: number | undefined;
|
|
@@ -410,14 +368,12 @@ export declare const inferCompletenessOp: import("./define-operation.js").Define
|
|
|
410
368
|
gate: "gate";
|
|
411
369
|
mode: "mode";
|
|
412
370
|
artefact: "artefact";
|
|
413
|
-
artefact_flow: "artefact_flow";
|
|
414
371
|
decision: "decision";
|
|
415
372
|
change: "change";
|
|
416
373
|
view: "view";
|
|
417
374
|
milestone: "milestone";
|
|
418
|
-
version: "version";
|
|
419
375
|
}> & {
|
|
420
|
-
is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "
|
|
376
|
+
is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "decision" | "change" | "view" | "milestone";
|
|
421
377
|
};
|
|
422
378
|
name: z.ZodString;
|
|
423
379
|
score: z.ZodNumber;
|