sysprom 1.14.0 → 1.16.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 (61) hide show
  1. package/README.md +19 -2
  2. package/dist/schema.json +18 -1
  3. package/dist/src/cli/commands/infer.d.ts +2 -0
  4. package/dist/src/cli/commands/infer.js +235 -0
  5. package/dist/src/cli/program.js +2 -0
  6. package/dist/src/endpoint-types.js +23 -0
  7. package/dist/src/index.d.ts +2 -2
  8. package/dist/src/index.js +2 -2
  9. package/dist/src/mcp/server.js +112 -1
  10. package/dist/src/operations/add-node.d.ts +51 -9
  11. package/dist/src/operations/add-plan-task.d.ts +34 -6
  12. package/dist/src/operations/add-relationship.d.ts +48 -8
  13. package/dist/src/operations/check.d.ts +17 -3
  14. package/dist/src/operations/graph.d.ts +17 -3
  15. package/dist/src/operations/index.d.ts +4 -0
  16. package/dist/src/operations/index.js +5 -0
  17. package/dist/src/operations/infer-completeness.d.ts +428 -0
  18. package/dist/src/operations/infer-completeness.js +131 -0
  19. package/dist/src/operations/infer-derived.d.ts +389 -0
  20. package/dist/src/operations/infer-derived.js +158 -0
  21. package/dist/src/operations/infer-impact.d.ts +2299 -0
  22. package/dist/src/operations/infer-impact.js +262 -0
  23. package/dist/src/operations/infer-lifecycle.d.ts +435 -0
  24. package/dist/src/operations/infer-lifecycle.js +119 -0
  25. package/dist/src/operations/init-document.d.ts +17 -3
  26. package/dist/src/operations/json-to-markdown.d.ts +17 -3
  27. package/dist/src/operations/mark-task-done.d.ts +34 -6
  28. package/dist/src/operations/mark-task-undone.d.ts +34 -6
  29. package/dist/src/operations/markdown-to-json.d.ts +17 -3
  30. package/dist/src/operations/next-id.d.ts +17 -3
  31. package/dist/src/operations/node-history.d.ts +17 -3
  32. package/dist/src/operations/plan-add-task.d.ts +34 -6
  33. package/dist/src/operations/plan-gate.d.ts +17 -3
  34. package/dist/src/operations/plan-init.d.ts +17 -3
  35. package/dist/src/operations/plan-progress.d.ts +17 -3
  36. package/dist/src/operations/plan-status.d.ts +17 -3
  37. package/dist/src/operations/query-node.d.ts +107 -17
  38. package/dist/src/operations/query-nodes.d.ts +34 -6
  39. package/dist/src/operations/query-relationships.d.ts +31 -5
  40. package/dist/src/operations/remove-node.d.ts +51 -9
  41. package/dist/src/operations/remove-relationship.d.ts +36 -7
  42. package/dist/src/operations/rename.d.ts +34 -6
  43. package/dist/src/operations/search.d.ts +34 -6
  44. package/dist/src/operations/speckit-diff.d.ts +17 -3
  45. package/dist/src/operations/speckit-export.d.ts +17 -3
  46. package/dist/src/operations/speckit-import.d.ts +17 -3
  47. package/dist/src/operations/speckit-sync.d.ts +51 -9
  48. package/dist/src/operations/state-at.d.ts +17 -3
  49. package/dist/src/operations/stats.d.ts +17 -3
  50. package/dist/src/operations/sync.d.ts +51 -9
  51. package/dist/src/operations/task-list.d.ts +17 -3
  52. package/dist/src/operations/timeline.d.ts +17 -3
  53. package/dist/src/operations/trace-from-node.d.ts +51 -9
  54. package/dist/src/operations/update-metadata.d.ts +34 -6
  55. package/dist/src/operations/update-node.d.ts +48 -8
  56. package/dist/src/operations/update-plan-task.d.ts +34 -6
  57. package/dist/src/operations/validate.d.ts +17 -3
  58. package/dist/src/schema.d.ts +70 -10
  59. package/dist/src/schema.js +21 -0
  60. package/package.json +1 -1
  61. package/schema.json +18 -1
@@ -0,0 +1,2299 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Impact node in the impact trace.
4
+ */
5
+ declare const ImpactNode: z.ZodObject<{
6
+ id: z.ZodString;
7
+ node: z.ZodOptional<z.ZodObject<{
8
+ id: z.ZodString;
9
+ type: z.ZodEnum<{
10
+ intent: "intent";
11
+ concept: "concept";
12
+ capability: "capability";
13
+ element: "element";
14
+ realisation: "realisation";
15
+ invariant: "invariant";
16
+ principle: "principle";
17
+ policy: "policy";
18
+ protocol: "protocol";
19
+ stage: "stage";
20
+ role: "role";
21
+ gate: "gate";
22
+ mode: "mode";
23
+ artefact: "artefact";
24
+ artefact_flow: "artefact_flow";
25
+ decision: "decision";
26
+ change: "change";
27
+ view: "view";
28
+ milestone: "milestone";
29
+ version: "version";
30
+ }> & {
31
+ 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";
32
+ };
33
+ name: z.ZodString;
34
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
35
+ is(value: unknown): value is string | string[];
36
+ }>;
37
+ status: z.ZodOptional<z.ZodEnum<{
38
+ deprecated: "deprecated";
39
+ proposed: "proposed";
40
+ accepted: "accepted";
41
+ active: "active";
42
+ implemented: "implemented";
43
+ adopted: "adopted";
44
+ defined: "defined";
45
+ introduced: "introduced";
46
+ in_progress: "in_progress";
47
+ complete: "complete";
48
+ consolidated: "consolidated";
49
+ experimental: "experimental";
50
+ retired: "retired";
51
+ superseded: "superseded";
52
+ abandoned: "abandoned";
53
+ deferred: "deferred";
54
+ }> & {
55
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
56
+ }>;
57
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
58
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
59
+ is(value: unknown): value is string | string[];
60
+ }>;
61
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
62
+ id: z.ZodString;
63
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
64
+ is(value: unknown): value is string | string[];
65
+ };
66
+ }, z.core.$loose> & {
67
+ is(value: unknown): value is {
68
+ [x: string]: unknown;
69
+ id: string;
70
+ description: string | string[];
71
+ };
72
+ }>>;
73
+ selected: z.ZodOptional<z.ZodString>;
74
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
75
+ is(value: unknown): value is string | string[];
76
+ }>;
77
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
79
+ type: z.ZodEnum<{
80
+ link: "link";
81
+ add: "add";
82
+ update: "update";
83
+ remove: "remove";
84
+ }>;
85
+ target: z.ZodOptional<z.ZodString>;
86
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
87
+ is(value: unknown): value is string | string[];
88
+ }>;
89
+ }, z.core.$loose> & {
90
+ is(value: unknown): value is {
91
+ [x: string]: unknown;
92
+ type: "link" | "add" | "update" | "remove";
93
+ target?: string | undefined;
94
+ description?: string | string[] | undefined;
95
+ };
96
+ }>>;
97
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
98
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
99
+ is(value: unknown): value is string | string[];
100
+ };
101
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
102
+ }, z.core.$loose> & {
103
+ is(value: unknown): value is {
104
+ [x: string]: unknown;
105
+ description: string | string[];
106
+ done?: boolean | undefined;
107
+ };
108
+ }>>;
109
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
110
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
111
+ input: z.ZodOptional<z.ZodString>;
112
+ output: z.ZodOptional<z.ZodString>;
113
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
114
+ role: z.ZodEnum<{
115
+ output: "output";
116
+ input: "input";
117
+ context: "context";
118
+ evidence: "evidence";
119
+ source: "source";
120
+ standard: "standard";
121
+ prior_art: "prior_art";
122
+ }> & {
123
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
124
+ };
125
+ identifier: z.ZodString;
126
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
127
+ is(value: unknown): value is string | string[];
128
+ }>;
129
+ node_id: z.ZodOptional<z.ZodString>;
130
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
131
+ is(value: unknown): value is string | string[];
132
+ }>;
133
+ }, z.core.$strip> & {
134
+ is(value: unknown): value is {
135
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
136
+ identifier: string;
137
+ description?: string | string[] | undefined;
138
+ node_id?: string | undefined;
139
+ internalised?: string | string[] | undefined;
140
+ };
141
+ }>>;
142
+ readonly subsystem: z.ZodOptional<z.ZodObject<{
143
+ $schema: z.ZodOptional<z.ZodString>;
144
+ metadata: z.ZodOptional<z.ZodObject<{
145
+ title: z.ZodOptional<z.ZodString>;
146
+ doc_type: z.ZodOptional<z.ZodString>;
147
+ scope: z.ZodOptional<z.ZodString>;
148
+ status: z.ZodOptional<z.ZodString>;
149
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
150
+ }, z.core.$loose> & {
151
+ is(value: unknown): value is {
152
+ [x: string]: unknown;
153
+ title?: string | undefined;
154
+ doc_type?: string | undefined;
155
+ scope?: string | undefined;
156
+ status?: string | undefined;
157
+ version?: string | number | undefined;
158
+ };
159
+ }>;
160
+ nodes: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$loose>>;
161
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
162
+ from: z.ZodString;
163
+ to: z.ZodString;
164
+ type: z.ZodEnum<{
165
+ refines: "refines";
166
+ realises: "realises";
167
+ implements: "implements";
168
+ depends_on: "depends_on";
169
+ constrained_by: "constrained_by";
170
+ affects: "affects";
171
+ supersedes: "supersedes";
172
+ must_preserve: "must_preserve";
173
+ performs: "performs";
174
+ part_of: "part_of";
175
+ precedes: "precedes";
176
+ must_follow: "must_follow";
177
+ blocks: "blocks";
178
+ routes_to: "routes_to";
179
+ governed_by: "governed_by";
180
+ modifies: "modifies";
181
+ triggered_by: "triggered_by";
182
+ applies_to: "applies_to";
183
+ produces: "produces";
184
+ consumes: "consumes";
185
+ transforms_into: "transforms_into";
186
+ selects: "selects";
187
+ requires: "requires";
188
+ disables: "disables";
189
+ influence: "influence";
190
+ }> & {
191
+ 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";
192
+ };
193
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
194
+ is(value: unknown): value is string | string[];
195
+ }>;
196
+ polarity: z.ZodOptional<z.ZodEnum<{
197
+ positive: "positive";
198
+ negative: "negative";
199
+ neutral: "neutral";
200
+ uncertain: "uncertain";
201
+ }> & {
202
+ is(value: unknown): value is "positive" | "negative" | "neutral" | "uncertain";
203
+ }>;
204
+ strength: z.ZodOptional<z.ZodNumber>;
205
+ }, z.core.$loose> & {
206
+ is(value: unknown): value is {
207
+ [x: string]: unknown;
208
+ from: string;
209
+ to: string;
210
+ 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";
211
+ description?: string | string[] | undefined;
212
+ polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
213
+ strength?: number | undefined;
214
+ };
215
+ }>>;
216
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
217
+ role: z.ZodEnum<{
218
+ output: "output";
219
+ input: "input";
220
+ context: "context";
221
+ evidence: "evidence";
222
+ source: "source";
223
+ standard: "standard";
224
+ prior_art: "prior_art";
225
+ }> & {
226
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
227
+ };
228
+ identifier: z.ZodString;
229
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
230
+ is(value: unknown): value is string | string[];
231
+ }>;
232
+ node_id: z.ZodOptional<z.ZodString>;
233
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
234
+ is(value: unknown): value is string | string[];
235
+ }>;
236
+ }, z.core.$strip> & {
237
+ is(value: unknown): value is {
238
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
239
+ identifier: string;
240
+ description?: string | string[] | undefined;
241
+ node_id?: string | undefined;
242
+ internalised?: string | string[] | undefined;
243
+ };
244
+ }>>;
245
+ }, z.core.$strip>>;
246
+ }, z.core.$loose> & {
247
+ is(value: unknown): value is {
248
+ [x: string]: unknown;
249
+ id: string;
250
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
251
+ name: string;
252
+ description?: string | string[] | undefined;
253
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
254
+ lifecycle?: Record<string, string | boolean> | undefined;
255
+ context?: string | string[] | undefined;
256
+ options?: {
257
+ [x: string]: unknown;
258
+ id: string;
259
+ description: string | string[];
260
+ }[] | undefined;
261
+ selected?: string | undefined;
262
+ rationale?: string | string[] | undefined;
263
+ scope?: string[] | undefined;
264
+ operations?: {
265
+ [x: string]: unknown;
266
+ type: "link" | "add" | "update" | "remove";
267
+ target?: string | undefined;
268
+ description?: string | string[] | undefined;
269
+ }[] | undefined;
270
+ plan?: {
271
+ [x: string]: unknown;
272
+ description: string | string[];
273
+ done?: boolean | undefined;
274
+ }[] | undefined;
275
+ propagation?: Record<string, boolean> | undefined;
276
+ includes?: string[] | undefined;
277
+ input?: string | undefined;
278
+ output?: string | undefined;
279
+ external_references?: {
280
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
281
+ identifier: string;
282
+ description?: string | string[] | undefined;
283
+ node_id?: string | undefined;
284
+ internalised?: string | string[] | undefined;
285
+ }[] | undefined;
286
+ subsystem?: {
287
+ nodes: /*elided*/ any[];
288
+ $schema?: string | undefined;
289
+ metadata?: {
290
+ [x: string]: unknown;
291
+ title?: string | undefined;
292
+ doc_type?: string | undefined;
293
+ scope?: string | undefined;
294
+ status?: string | undefined;
295
+ version?: string | number | undefined;
296
+ } | undefined;
297
+ relationships?: {
298
+ [x: string]: unknown;
299
+ from: string;
300
+ to: string;
301
+ 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";
302
+ description?: string | string[] | undefined;
303
+ polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
304
+ strength?: number | undefined;
305
+ }[] | undefined;
306
+ external_references?: {
307
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
308
+ identifier: string;
309
+ description?: string | string[] | undefined;
310
+ node_id?: string | undefined;
311
+ internalised?: string | string[] | undefined;
312
+ }[] | undefined;
313
+ } | undefined;
314
+ };
315
+ }>;
316
+ impactType: z.ZodEnum<{
317
+ direct: "direct";
318
+ transitive: "transitive";
319
+ potential: "potential";
320
+ }>;
321
+ distance: z.ZodNumber;
322
+ polarity: z.ZodOptional<z.ZodEnum<{
323
+ positive: "positive";
324
+ negative: "negative";
325
+ neutral: "neutral";
326
+ uncertain: "uncertain";
327
+ }> & {
328
+ is(value: unknown): value is "positive" | "negative" | "neutral" | "uncertain";
329
+ }>;
330
+ }, z.core.$strip>;
331
+ /** Impact node in the impact trace. */
332
+ export type ImpactNode = z.infer<typeof ImpactNode>;
333
+ /**
334
+ * Output schema for inferImpactOp.
335
+ */
336
+ declare const ImpactOutput: z.ZodObject<{
337
+ sourceId: z.ZodString;
338
+ impactedNodes: z.ZodArray<z.ZodObject<{
339
+ id: z.ZodString;
340
+ node: z.ZodOptional<z.ZodObject<{
341
+ id: z.ZodString;
342
+ type: z.ZodEnum<{
343
+ intent: "intent";
344
+ concept: "concept";
345
+ capability: "capability";
346
+ element: "element";
347
+ realisation: "realisation";
348
+ invariant: "invariant";
349
+ principle: "principle";
350
+ policy: "policy";
351
+ protocol: "protocol";
352
+ stage: "stage";
353
+ role: "role";
354
+ gate: "gate";
355
+ mode: "mode";
356
+ artefact: "artefact";
357
+ artefact_flow: "artefact_flow";
358
+ decision: "decision";
359
+ change: "change";
360
+ view: "view";
361
+ milestone: "milestone";
362
+ version: "version";
363
+ }> & {
364
+ 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";
365
+ };
366
+ name: z.ZodString;
367
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
368
+ is(value: unknown): value is string | string[];
369
+ }>;
370
+ status: z.ZodOptional<z.ZodEnum<{
371
+ deprecated: "deprecated";
372
+ proposed: "proposed";
373
+ accepted: "accepted";
374
+ active: "active";
375
+ implemented: "implemented";
376
+ adopted: "adopted";
377
+ defined: "defined";
378
+ introduced: "introduced";
379
+ in_progress: "in_progress";
380
+ complete: "complete";
381
+ consolidated: "consolidated";
382
+ experimental: "experimental";
383
+ retired: "retired";
384
+ superseded: "superseded";
385
+ abandoned: "abandoned";
386
+ deferred: "deferred";
387
+ }> & {
388
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
389
+ }>;
390
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
391
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
392
+ is(value: unknown): value is string | string[];
393
+ }>;
394
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
395
+ id: z.ZodString;
396
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
397
+ is(value: unknown): value is string | string[];
398
+ };
399
+ }, z.core.$loose> & {
400
+ is(value: unknown): value is {
401
+ [x: string]: unknown;
402
+ id: string;
403
+ description: string | string[];
404
+ };
405
+ }>>;
406
+ selected: z.ZodOptional<z.ZodString>;
407
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
408
+ is(value: unknown): value is string | string[];
409
+ }>;
410
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
411
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
412
+ type: z.ZodEnum<{
413
+ link: "link";
414
+ add: "add";
415
+ update: "update";
416
+ remove: "remove";
417
+ }>;
418
+ target: z.ZodOptional<z.ZodString>;
419
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
420
+ is(value: unknown): value is string | string[];
421
+ }>;
422
+ }, z.core.$loose> & {
423
+ is(value: unknown): value is {
424
+ [x: string]: unknown;
425
+ type: "link" | "add" | "update" | "remove";
426
+ target?: string | undefined;
427
+ description?: string | string[] | undefined;
428
+ };
429
+ }>>;
430
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
431
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
432
+ is(value: unknown): value is string | string[];
433
+ };
434
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
435
+ }, z.core.$loose> & {
436
+ is(value: unknown): value is {
437
+ [x: string]: unknown;
438
+ description: string | string[];
439
+ done?: boolean | undefined;
440
+ };
441
+ }>>;
442
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
443
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
444
+ input: z.ZodOptional<z.ZodString>;
445
+ output: z.ZodOptional<z.ZodString>;
446
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
447
+ role: z.ZodEnum<{
448
+ output: "output";
449
+ input: "input";
450
+ context: "context";
451
+ evidence: "evidence";
452
+ source: "source";
453
+ standard: "standard";
454
+ prior_art: "prior_art";
455
+ }> & {
456
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
457
+ };
458
+ identifier: z.ZodString;
459
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
460
+ is(value: unknown): value is string | string[];
461
+ }>;
462
+ node_id: z.ZodOptional<z.ZodString>;
463
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
464
+ is(value: unknown): value is string | string[];
465
+ }>;
466
+ }, z.core.$strip> & {
467
+ is(value: unknown): value is {
468
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
469
+ identifier: string;
470
+ description?: string | string[] | undefined;
471
+ node_id?: string | undefined;
472
+ internalised?: string | string[] | undefined;
473
+ };
474
+ }>>;
475
+ readonly subsystem: z.ZodOptional<z.ZodObject<{
476
+ $schema: z.ZodOptional<z.ZodString>;
477
+ metadata: z.ZodOptional<z.ZodObject<{
478
+ title: z.ZodOptional<z.ZodString>;
479
+ doc_type: z.ZodOptional<z.ZodString>;
480
+ scope: z.ZodOptional<z.ZodString>;
481
+ status: z.ZodOptional<z.ZodString>;
482
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
483
+ }, z.core.$loose> & {
484
+ is(value: unknown): value is {
485
+ [x: string]: unknown;
486
+ title?: string | undefined;
487
+ doc_type?: string | undefined;
488
+ scope?: string | undefined;
489
+ status?: string | undefined;
490
+ version?: string | number | undefined;
491
+ };
492
+ }>;
493
+ nodes: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$loose>>;
494
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
495
+ from: z.ZodString;
496
+ to: z.ZodString;
497
+ type: z.ZodEnum<{
498
+ refines: "refines";
499
+ realises: "realises";
500
+ implements: "implements";
501
+ depends_on: "depends_on";
502
+ constrained_by: "constrained_by";
503
+ affects: "affects";
504
+ supersedes: "supersedes";
505
+ must_preserve: "must_preserve";
506
+ performs: "performs";
507
+ part_of: "part_of";
508
+ precedes: "precedes";
509
+ must_follow: "must_follow";
510
+ blocks: "blocks";
511
+ routes_to: "routes_to";
512
+ governed_by: "governed_by";
513
+ modifies: "modifies";
514
+ triggered_by: "triggered_by";
515
+ applies_to: "applies_to";
516
+ produces: "produces";
517
+ consumes: "consumes";
518
+ transforms_into: "transforms_into";
519
+ selects: "selects";
520
+ requires: "requires";
521
+ disables: "disables";
522
+ influence: "influence";
523
+ }> & {
524
+ 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";
525
+ };
526
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
527
+ is(value: unknown): value is string | string[];
528
+ }>;
529
+ polarity: z.ZodOptional<z.ZodEnum<{
530
+ positive: "positive";
531
+ negative: "negative";
532
+ neutral: "neutral";
533
+ uncertain: "uncertain";
534
+ }> & {
535
+ is(value: unknown): value is "positive" | "negative" | "neutral" | "uncertain";
536
+ }>;
537
+ strength: z.ZodOptional<z.ZodNumber>;
538
+ }, z.core.$loose> & {
539
+ is(value: unknown): value is {
540
+ [x: string]: unknown;
541
+ from: string;
542
+ to: string;
543
+ 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";
544
+ description?: string | string[] | undefined;
545
+ polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
546
+ strength?: number | undefined;
547
+ };
548
+ }>>;
549
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
550
+ role: z.ZodEnum<{
551
+ output: "output";
552
+ input: "input";
553
+ context: "context";
554
+ evidence: "evidence";
555
+ source: "source";
556
+ standard: "standard";
557
+ prior_art: "prior_art";
558
+ }> & {
559
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
560
+ };
561
+ identifier: z.ZodString;
562
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
563
+ is(value: unknown): value is string | string[];
564
+ }>;
565
+ node_id: z.ZodOptional<z.ZodString>;
566
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
567
+ is(value: unknown): value is string | string[];
568
+ }>;
569
+ }, z.core.$strip> & {
570
+ is(value: unknown): value is {
571
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
572
+ identifier: string;
573
+ description?: string | string[] | undefined;
574
+ node_id?: string | undefined;
575
+ internalised?: string | string[] | undefined;
576
+ };
577
+ }>>;
578
+ }, z.core.$strip>>;
579
+ }, z.core.$loose> & {
580
+ is(value: unknown): value is {
581
+ [x: string]: unknown;
582
+ id: string;
583
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
584
+ name: string;
585
+ description?: string | string[] | undefined;
586
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
587
+ lifecycle?: Record<string, string | boolean> | undefined;
588
+ context?: string | string[] | undefined;
589
+ options?: {
590
+ [x: string]: unknown;
591
+ id: string;
592
+ description: string | string[];
593
+ }[] | undefined;
594
+ selected?: string | undefined;
595
+ rationale?: string | string[] | undefined;
596
+ scope?: string[] | undefined;
597
+ operations?: {
598
+ [x: string]: unknown;
599
+ type: "link" | "add" | "update" | "remove";
600
+ target?: string | undefined;
601
+ description?: string | string[] | undefined;
602
+ }[] | undefined;
603
+ plan?: {
604
+ [x: string]: unknown;
605
+ description: string | string[];
606
+ done?: boolean | undefined;
607
+ }[] | undefined;
608
+ propagation?: Record<string, boolean> | undefined;
609
+ includes?: string[] | undefined;
610
+ input?: string | undefined;
611
+ output?: string | undefined;
612
+ external_references?: {
613
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
614
+ identifier: string;
615
+ description?: string | string[] | undefined;
616
+ node_id?: string | undefined;
617
+ internalised?: string | string[] | undefined;
618
+ }[] | undefined;
619
+ subsystem?: {
620
+ nodes: /*elided*/ any[];
621
+ $schema?: string | undefined;
622
+ metadata?: {
623
+ [x: string]: unknown;
624
+ title?: string | undefined;
625
+ doc_type?: string | undefined;
626
+ scope?: string | undefined;
627
+ status?: string | undefined;
628
+ version?: string | number | undefined;
629
+ } | undefined;
630
+ relationships?: {
631
+ [x: string]: unknown;
632
+ from: string;
633
+ to: string;
634
+ 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";
635
+ description?: string | string[] | undefined;
636
+ polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
637
+ strength?: number | undefined;
638
+ }[] | undefined;
639
+ external_references?: {
640
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
641
+ identifier: string;
642
+ description?: string | string[] | undefined;
643
+ node_id?: string | undefined;
644
+ internalised?: string | string[] | undefined;
645
+ }[] | undefined;
646
+ } | undefined;
647
+ };
648
+ }>;
649
+ impactType: z.ZodEnum<{
650
+ direct: "direct";
651
+ transitive: "transitive";
652
+ potential: "potential";
653
+ }>;
654
+ distance: z.ZodNumber;
655
+ polarity: z.ZodOptional<z.ZodEnum<{
656
+ positive: "positive";
657
+ negative: "negative";
658
+ neutral: "neutral";
659
+ uncertain: "uncertain";
660
+ }> & {
661
+ is(value: unknown): value is "positive" | "negative" | "neutral" | "uncertain";
662
+ }>;
663
+ }, z.core.$strip>>;
664
+ summary: z.ZodObject<{
665
+ direct: z.ZodNumber;
666
+ transitive: z.ZodNumber;
667
+ potential: z.ZodNumber;
668
+ total: z.ZodNumber;
669
+ }, z.core.$strip>;
670
+ }, z.core.$strip>;
671
+ /** Output of impact inference operation. */
672
+ export type ImpactOutput = z.infer<typeof ImpactOutput>;
673
+ /**
674
+ * Infer impact from a starting node through the graph.
675
+ *
676
+ * Traces impact propagation through affect, dependency, and modification
677
+ * relationships, categorising nodes as directly impacted, transitively
678
+ * impacted, or potentially impacted. Supports bidirectional traversal
679
+ * (CHG40) with optional polarity annotations.
680
+ */
681
+ export declare const inferImpactOp: import("./define-operation.js").DefinedOperation<z.ZodObject<{
682
+ doc: z.ZodObject<{
683
+ $schema: z.ZodOptional<z.ZodString>;
684
+ metadata: z.ZodOptional<z.ZodObject<{
685
+ title: z.ZodOptional<z.ZodString>;
686
+ doc_type: z.ZodOptional<z.ZodString>;
687
+ scope: z.ZodOptional<z.ZodString>;
688
+ status: z.ZodOptional<z.ZodString>;
689
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
690
+ }, z.core.$loose> & {
691
+ is(value: unknown): value is {
692
+ [x: string]: unknown;
693
+ title?: string | undefined;
694
+ doc_type?: string | undefined;
695
+ scope?: string | undefined;
696
+ status?: string | undefined;
697
+ version?: string | number | undefined;
698
+ };
699
+ }>;
700
+ nodes: z.ZodArray<z.ZodObject<{
701
+ id: z.ZodString;
702
+ type: z.ZodEnum<{
703
+ intent: "intent";
704
+ concept: "concept";
705
+ capability: "capability";
706
+ element: "element";
707
+ realisation: "realisation";
708
+ invariant: "invariant";
709
+ principle: "principle";
710
+ policy: "policy";
711
+ protocol: "protocol";
712
+ stage: "stage";
713
+ role: "role";
714
+ gate: "gate";
715
+ mode: "mode";
716
+ artefact: "artefact";
717
+ artefact_flow: "artefact_flow";
718
+ decision: "decision";
719
+ change: "change";
720
+ view: "view";
721
+ milestone: "milestone";
722
+ version: "version";
723
+ }> & {
724
+ 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";
725
+ };
726
+ name: z.ZodString;
727
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
728
+ is(value: unknown): value is string | string[];
729
+ }>;
730
+ status: z.ZodOptional<z.ZodEnum<{
731
+ deprecated: "deprecated";
732
+ proposed: "proposed";
733
+ accepted: "accepted";
734
+ active: "active";
735
+ implemented: "implemented";
736
+ adopted: "adopted";
737
+ defined: "defined";
738
+ introduced: "introduced";
739
+ in_progress: "in_progress";
740
+ complete: "complete";
741
+ consolidated: "consolidated";
742
+ experimental: "experimental";
743
+ retired: "retired";
744
+ superseded: "superseded";
745
+ abandoned: "abandoned";
746
+ deferred: "deferred";
747
+ }> & {
748
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
749
+ }>;
750
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
751
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
752
+ is(value: unknown): value is string | string[];
753
+ }>;
754
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
755
+ id: z.ZodString;
756
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
757
+ is(value: unknown): value is string | string[];
758
+ };
759
+ }, z.core.$loose> & {
760
+ is(value: unknown): value is {
761
+ [x: string]: unknown;
762
+ id: string;
763
+ description: string | string[];
764
+ };
765
+ }>>;
766
+ selected: z.ZodOptional<z.ZodString>;
767
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
768
+ is(value: unknown): value is string | string[];
769
+ }>;
770
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
771
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
772
+ type: z.ZodEnum<{
773
+ link: "link";
774
+ add: "add";
775
+ update: "update";
776
+ remove: "remove";
777
+ }>;
778
+ target: z.ZodOptional<z.ZodString>;
779
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
780
+ is(value: unknown): value is string | string[];
781
+ }>;
782
+ }, z.core.$loose> & {
783
+ is(value: unknown): value is {
784
+ [x: string]: unknown;
785
+ type: "link" | "add" | "update" | "remove";
786
+ target?: string | undefined;
787
+ description?: string | string[] | undefined;
788
+ };
789
+ }>>;
790
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
791
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
792
+ is(value: unknown): value is string | string[];
793
+ };
794
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
795
+ }, z.core.$loose> & {
796
+ is(value: unknown): value is {
797
+ [x: string]: unknown;
798
+ description: string | string[];
799
+ done?: boolean | undefined;
800
+ };
801
+ }>>;
802
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
803
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
804
+ input: z.ZodOptional<z.ZodString>;
805
+ output: z.ZodOptional<z.ZodString>;
806
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
807
+ role: z.ZodEnum<{
808
+ output: "output";
809
+ input: "input";
810
+ context: "context";
811
+ evidence: "evidence";
812
+ source: "source";
813
+ standard: "standard";
814
+ prior_art: "prior_art";
815
+ }> & {
816
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
817
+ };
818
+ identifier: z.ZodString;
819
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
820
+ is(value: unknown): value is string | string[];
821
+ }>;
822
+ node_id: z.ZodOptional<z.ZodString>;
823
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
824
+ is(value: unknown): value is string | string[];
825
+ }>;
826
+ }, z.core.$strip> & {
827
+ is(value: unknown): value is {
828
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
829
+ identifier: string;
830
+ description?: string | string[] | undefined;
831
+ node_id?: string | undefined;
832
+ internalised?: string | string[] | undefined;
833
+ };
834
+ }>>;
835
+ readonly subsystem: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>;
836
+ }, z.core.$loose>>;
837
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
838
+ from: z.ZodString;
839
+ to: z.ZodString;
840
+ type: z.ZodEnum<{
841
+ refines: "refines";
842
+ realises: "realises";
843
+ implements: "implements";
844
+ depends_on: "depends_on";
845
+ constrained_by: "constrained_by";
846
+ affects: "affects";
847
+ supersedes: "supersedes";
848
+ must_preserve: "must_preserve";
849
+ performs: "performs";
850
+ part_of: "part_of";
851
+ precedes: "precedes";
852
+ must_follow: "must_follow";
853
+ blocks: "blocks";
854
+ routes_to: "routes_to";
855
+ governed_by: "governed_by";
856
+ modifies: "modifies";
857
+ triggered_by: "triggered_by";
858
+ applies_to: "applies_to";
859
+ produces: "produces";
860
+ consumes: "consumes";
861
+ transforms_into: "transforms_into";
862
+ selects: "selects";
863
+ requires: "requires";
864
+ disables: "disables";
865
+ influence: "influence";
866
+ }> & {
867
+ 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";
868
+ };
869
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
870
+ is(value: unknown): value is string | string[];
871
+ }>;
872
+ polarity: z.ZodOptional<z.ZodEnum<{
873
+ positive: "positive";
874
+ negative: "negative";
875
+ neutral: "neutral";
876
+ uncertain: "uncertain";
877
+ }> & {
878
+ is(value: unknown): value is "positive" | "negative" | "neutral" | "uncertain";
879
+ }>;
880
+ strength: z.ZodOptional<z.ZodNumber>;
881
+ }, z.core.$loose> & {
882
+ is(value: unknown): value is {
883
+ [x: string]: unknown;
884
+ from: string;
885
+ to: string;
886
+ 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";
887
+ description?: string | string[] | undefined;
888
+ polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
889
+ strength?: number | undefined;
890
+ };
891
+ }>>;
892
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
893
+ role: z.ZodEnum<{
894
+ output: "output";
895
+ input: "input";
896
+ context: "context";
897
+ evidence: "evidence";
898
+ source: "source";
899
+ standard: "standard";
900
+ prior_art: "prior_art";
901
+ }> & {
902
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
903
+ };
904
+ identifier: z.ZodString;
905
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
906
+ is(value: unknown): value is string | string[];
907
+ }>;
908
+ node_id: z.ZodOptional<z.ZodString>;
909
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
910
+ is(value: unknown): value is string | string[];
911
+ }>;
912
+ }, z.core.$strip> & {
913
+ is(value: unknown): value is {
914
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
915
+ identifier: string;
916
+ description?: string | string[] | undefined;
917
+ node_id?: string | undefined;
918
+ internalised?: string | string[] | undefined;
919
+ };
920
+ }>>;
921
+ }, z.core.$strip> & {
922
+ is(value: unknown): value is {
923
+ nodes: {
924
+ [x: string]: unknown;
925
+ id: string;
926
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
927
+ name: string;
928
+ description?: string | string[] | undefined;
929
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
930
+ lifecycle?: Record<string, string | boolean> | undefined;
931
+ context?: string | string[] | undefined;
932
+ options?: {
933
+ [x: string]: unknown;
934
+ id: string;
935
+ description: string | string[];
936
+ }[] | undefined;
937
+ selected?: string | undefined;
938
+ rationale?: string | string[] | undefined;
939
+ scope?: string[] | undefined;
940
+ operations?: {
941
+ [x: string]: unknown;
942
+ type: "link" | "add" | "update" | "remove";
943
+ target?: string | undefined;
944
+ description?: string | string[] | undefined;
945
+ }[] | undefined;
946
+ plan?: {
947
+ [x: string]: unknown;
948
+ description: string | string[];
949
+ done?: boolean | undefined;
950
+ }[] | undefined;
951
+ propagation?: Record<string, boolean> | undefined;
952
+ includes?: string[] | undefined;
953
+ input?: string | undefined;
954
+ output?: string | undefined;
955
+ external_references?: {
956
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
957
+ identifier: string;
958
+ description?: string | string[] | undefined;
959
+ node_id?: string | undefined;
960
+ internalised?: string | string[] | undefined;
961
+ }[] | undefined;
962
+ subsystem?: /*elided*/ any | undefined;
963
+ }[];
964
+ $schema?: string | undefined;
965
+ metadata?: {
966
+ [x: string]: unknown;
967
+ title?: string | undefined;
968
+ doc_type?: string | undefined;
969
+ scope?: string | undefined;
970
+ status?: string | undefined;
971
+ version?: string | number | undefined;
972
+ } | undefined;
973
+ relationships?: {
974
+ [x: string]: unknown;
975
+ from: string;
976
+ to: string;
977
+ 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";
978
+ description?: string | string[] | undefined;
979
+ polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
980
+ strength?: number | undefined;
981
+ }[] | undefined;
982
+ external_references?: {
983
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
984
+ identifier: string;
985
+ description?: string | string[] | undefined;
986
+ node_id?: string | undefined;
987
+ internalised?: string | string[] | undefined;
988
+ }[] | undefined;
989
+ };
990
+ };
991
+ startId: z.ZodString;
992
+ direction: z.ZodOptional<z.ZodEnum<{
993
+ outgoing: "outgoing";
994
+ incoming: "incoming";
995
+ bidirectional: "bidirectional";
996
+ }>>;
997
+ maxDepth: z.ZodOptional<z.ZodNumber>;
998
+ relationshipFilter: z.ZodOptional<z.ZodArray<z.ZodString>>;
999
+ }, z.core.$strip>, z.ZodObject<{
1000
+ sourceId: z.ZodString;
1001
+ impactedNodes: z.ZodArray<z.ZodObject<{
1002
+ id: z.ZodString;
1003
+ node: z.ZodOptional<z.ZodObject<{
1004
+ id: z.ZodString;
1005
+ type: z.ZodEnum<{
1006
+ intent: "intent";
1007
+ concept: "concept";
1008
+ capability: "capability";
1009
+ element: "element";
1010
+ realisation: "realisation";
1011
+ invariant: "invariant";
1012
+ principle: "principle";
1013
+ policy: "policy";
1014
+ protocol: "protocol";
1015
+ stage: "stage";
1016
+ role: "role";
1017
+ gate: "gate";
1018
+ mode: "mode";
1019
+ artefact: "artefact";
1020
+ artefact_flow: "artefact_flow";
1021
+ decision: "decision";
1022
+ change: "change";
1023
+ view: "view";
1024
+ milestone: "milestone";
1025
+ version: "version";
1026
+ }> & {
1027
+ 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";
1028
+ };
1029
+ name: z.ZodString;
1030
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1031
+ is(value: unknown): value is string | string[];
1032
+ }>;
1033
+ status: z.ZodOptional<z.ZodEnum<{
1034
+ deprecated: "deprecated";
1035
+ proposed: "proposed";
1036
+ accepted: "accepted";
1037
+ active: "active";
1038
+ implemented: "implemented";
1039
+ adopted: "adopted";
1040
+ defined: "defined";
1041
+ introduced: "introduced";
1042
+ in_progress: "in_progress";
1043
+ complete: "complete";
1044
+ consolidated: "consolidated";
1045
+ experimental: "experimental";
1046
+ retired: "retired";
1047
+ superseded: "superseded";
1048
+ abandoned: "abandoned";
1049
+ deferred: "deferred";
1050
+ }> & {
1051
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
1052
+ }>;
1053
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
1054
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1055
+ is(value: unknown): value is string | string[];
1056
+ }>;
1057
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1058
+ id: z.ZodString;
1059
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1060
+ is(value: unknown): value is string | string[];
1061
+ };
1062
+ }, z.core.$loose> & {
1063
+ is(value: unknown): value is {
1064
+ [x: string]: unknown;
1065
+ id: string;
1066
+ description: string | string[];
1067
+ };
1068
+ }>>;
1069
+ selected: z.ZodOptional<z.ZodString>;
1070
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1071
+ is(value: unknown): value is string | string[];
1072
+ }>;
1073
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
1074
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1075
+ type: z.ZodEnum<{
1076
+ link: "link";
1077
+ add: "add";
1078
+ update: "update";
1079
+ remove: "remove";
1080
+ }>;
1081
+ target: z.ZodOptional<z.ZodString>;
1082
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1083
+ is(value: unknown): value is string | string[];
1084
+ }>;
1085
+ }, z.core.$loose> & {
1086
+ is(value: unknown): value is {
1087
+ [x: string]: unknown;
1088
+ type: "link" | "add" | "update" | "remove";
1089
+ target?: string | undefined;
1090
+ description?: string | string[] | undefined;
1091
+ };
1092
+ }>>;
1093
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
1094
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1095
+ is(value: unknown): value is string | string[];
1096
+ };
1097
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1098
+ }, z.core.$loose> & {
1099
+ is(value: unknown): value is {
1100
+ [x: string]: unknown;
1101
+ description: string | string[];
1102
+ done?: boolean | undefined;
1103
+ };
1104
+ }>>;
1105
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1106
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1107
+ input: z.ZodOptional<z.ZodString>;
1108
+ output: z.ZodOptional<z.ZodString>;
1109
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1110
+ role: z.ZodEnum<{
1111
+ output: "output";
1112
+ input: "input";
1113
+ context: "context";
1114
+ evidence: "evidence";
1115
+ source: "source";
1116
+ standard: "standard";
1117
+ prior_art: "prior_art";
1118
+ }> & {
1119
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1120
+ };
1121
+ identifier: z.ZodString;
1122
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1123
+ is(value: unknown): value is string | string[];
1124
+ }>;
1125
+ node_id: z.ZodOptional<z.ZodString>;
1126
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1127
+ is(value: unknown): value is string | string[];
1128
+ }>;
1129
+ }, z.core.$strip> & {
1130
+ is(value: unknown): value is {
1131
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1132
+ identifier: string;
1133
+ description?: string | string[] | undefined;
1134
+ node_id?: string | undefined;
1135
+ internalised?: string | string[] | undefined;
1136
+ };
1137
+ }>>;
1138
+ readonly subsystem: z.ZodOptional<z.ZodObject<{
1139
+ $schema: z.ZodOptional<z.ZodString>;
1140
+ metadata: z.ZodOptional<z.ZodObject<{
1141
+ title: z.ZodOptional<z.ZodString>;
1142
+ doc_type: z.ZodOptional<z.ZodString>;
1143
+ scope: z.ZodOptional<z.ZodString>;
1144
+ status: z.ZodOptional<z.ZodString>;
1145
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1146
+ }, z.core.$loose> & {
1147
+ is(value: unknown): value is {
1148
+ [x: string]: unknown;
1149
+ title?: string | undefined;
1150
+ doc_type?: string | undefined;
1151
+ scope?: string | undefined;
1152
+ status?: string | undefined;
1153
+ version?: string | number | undefined;
1154
+ };
1155
+ }>;
1156
+ nodes: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$loose>>;
1157
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
1158
+ from: z.ZodString;
1159
+ to: z.ZodString;
1160
+ type: z.ZodEnum<{
1161
+ refines: "refines";
1162
+ realises: "realises";
1163
+ implements: "implements";
1164
+ depends_on: "depends_on";
1165
+ constrained_by: "constrained_by";
1166
+ affects: "affects";
1167
+ supersedes: "supersedes";
1168
+ must_preserve: "must_preserve";
1169
+ performs: "performs";
1170
+ part_of: "part_of";
1171
+ precedes: "precedes";
1172
+ must_follow: "must_follow";
1173
+ blocks: "blocks";
1174
+ routes_to: "routes_to";
1175
+ governed_by: "governed_by";
1176
+ modifies: "modifies";
1177
+ triggered_by: "triggered_by";
1178
+ applies_to: "applies_to";
1179
+ produces: "produces";
1180
+ consumes: "consumes";
1181
+ transforms_into: "transforms_into";
1182
+ selects: "selects";
1183
+ requires: "requires";
1184
+ disables: "disables";
1185
+ influence: "influence";
1186
+ }> & {
1187
+ 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";
1188
+ };
1189
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1190
+ is(value: unknown): value is string | string[];
1191
+ }>;
1192
+ polarity: z.ZodOptional<z.ZodEnum<{
1193
+ positive: "positive";
1194
+ negative: "negative";
1195
+ neutral: "neutral";
1196
+ uncertain: "uncertain";
1197
+ }> & {
1198
+ is(value: unknown): value is "positive" | "negative" | "neutral" | "uncertain";
1199
+ }>;
1200
+ strength: z.ZodOptional<z.ZodNumber>;
1201
+ }, z.core.$loose> & {
1202
+ is(value: unknown): value is {
1203
+ [x: string]: unknown;
1204
+ from: string;
1205
+ to: string;
1206
+ 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";
1207
+ description?: string | string[] | undefined;
1208
+ polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
1209
+ strength?: number | undefined;
1210
+ };
1211
+ }>>;
1212
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1213
+ role: z.ZodEnum<{
1214
+ output: "output";
1215
+ input: "input";
1216
+ context: "context";
1217
+ evidence: "evidence";
1218
+ source: "source";
1219
+ standard: "standard";
1220
+ prior_art: "prior_art";
1221
+ }> & {
1222
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1223
+ };
1224
+ identifier: z.ZodString;
1225
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1226
+ is(value: unknown): value is string | string[];
1227
+ }>;
1228
+ node_id: z.ZodOptional<z.ZodString>;
1229
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1230
+ is(value: unknown): value is string | string[];
1231
+ }>;
1232
+ }, z.core.$strip> & {
1233
+ is(value: unknown): value is {
1234
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1235
+ identifier: string;
1236
+ description?: string | string[] | undefined;
1237
+ node_id?: string | undefined;
1238
+ internalised?: string | string[] | undefined;
1239
+ };
1240
+ }>>;
1241
+ }, z.core.$strip>>;
1242
+ }, z.core.$loose> & {
1243
+ is(value: unknown): value is {
1244
+ [x: string]: unknown;
1245
+ id: string;
1246
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
1247
+ name: string;
1248
+ description?: string | string[] | undefined;
1249
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
1250
+ lifecycle?: Record<string, string | boolean> | undefined;
1251
+ context?: string | string[] | undefined;
1252
+ options?: {
1253
+ [x: string]: unknown;
1254
+ id: string;
1255
+ description: string | string[];
1256
+ }[] | undefined;
1257
+ selected?: string | undefined;
1258
+ rationale?: string | string[] | undefined;
1259
+ scope?: string[] | undefined;
1260
+ operations?: {
1261
+ [x: string]: unknown;
1262
+ type: "link" | "add" | "update" | "remove";
1263
+ target?: string | undefined;
1264
+ description?: string | string[] | undefined;
1265
+ }[] | undefined;
1266
+ plan?: {
1267
+ [x: string]: unknown;
1268
+ description: string | string[];
1269
+ done?: boolean | undefined;
1270
+ }[] | undefined;
1271
+ propagation?: Record<string, boolean> | undefined;
1272
+ includes?: string[] | undefined;
1273
+ input?: string | undefined;
1274
+ output?: string | undefined;
1275
+ external_references?: {
1276
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1277
+ identifier: string;
1278
+ description?: string | string[] | undefined;
1279
+ node_id?: string | undefined;
1280
+ internalised?: string | string[] | undefined;
1281
+ }[] | undefined;
1282
+ subsystem?: {
1283
+ nodes: /*elided*/ any[];
1284
+ $schema?: string | undefined;
1285
+ metadata?: {
1286
+ [x: string]: unknown;
1287
+ title?: string | undefined;
1288
+ doc_type?: string | undefined;
1289
+ scope?: string | undefined;
1290
+ status?: string | undefined;
1291
+ version?: string | number | undefined;
1292
+ } | undefined;
1293
+ relationships?: {
1294
+ [x: string]: unknown;
1295
+ from: string;
1296
+ to: string;
1297
+ 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";
1298
+ description?: string | string[] | undefined;
1299
+ polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
1300
+ strength?: number | undefined;
1301
+ }[] | undefined;
1302
+ external_references?: {
1303
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1304
+ identifier: string;
1305
+ description?: string | string[] | undefined;
1306
+ node_id?: string | undefined;
1307
+ internalised?: string | string[] | undefined;
1308
+ }[] | undefined;
1309
+ } | undefined;
1310
+ };
1311
+ }>;
1312
+ impactType: z.ZodEnum<{
1313
+ direct: "direct";
1314
+ transitive: "transitive";
1315
+ potential: "potential";
1316
+ }>;
1317
+ distance: z.ZodNumber;
1318
+ polarity: z.ZodOptional<z.ZodEnum<{
1319
+ positive: "positive";
1320
+ negative: "negative";
1321
+ neutral: "neutral";
1322
+ uncertain: "uncertain";
1323
+ }> & {
1324
+ is(value: unknown): value is "positive" | "negative" | "neutral" | "uncertain";
1325
+ }>;
1326
+ }, z.core.$strip>>;
1327
+ summary: z.ZodObject<{
1328
+ direct: z.ZodNumber;
1329
+ transitive: z.ZodNumber;
1330
+ potential: z.ZodNumber;
1331
+ total: z.ZodNumber;
1332
+ }, z.core.$strip>;
1333
+ }, z.core.$strip>>;
1334
+ /**
1335
+ * Output schema for impactSummaryOp.
1336
+ */
1337
+ declare const ImpactSummaryOutput: z.ZodObject<{
1338
+ hotspots: z.ZodArray<z.ZodObject<{
1339
+ nodeId: z.ZodString;
1340
+ node: z.ZodOptional<z.ZodObject<{
1341
+ id: z.ZodString;
1342
+ type: z.ZodEnum<{
1343
+ intent: "intent";
1344
+ concept: "concept";
1345
+ capability: "capability";
1346
+ element: "element";
1347
+ realisation: "realisation";
1348
+ invariant: "invariant";
1349
+ principle: "principle";
1350
+ policy: "policy";
1351
+ protocol: "protocol";
1352
+ stage: "stage";
1353
+ role: "role";
1354
+ gate: "gate";
1355
+ mode: "mode";
1356
+ artefact: "artefact";
1357
+ artefact_flow: "artefact_flow";
1358
+ decision: "decision";
1359
+ change: "change";
1360
+ view: "view";
1361
+ milestone: "milestone";
1362
+ version: "version";
1363
+ }> & {
1364
+ 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";
1365
+ };
1366
+ name: z.ZodString;
1367
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1368
+ is(value: unknown): value is string | string[];
1369
+ }>;
1370
+ status: z.ZodOptional<z.ZodEnum<{
1371
+ deprecated: "deprecated";
1372
+ proposed: "proposed";
1373
+ accepted: "accepted";
1374
+ active: "active";
1375
+ implemented: "implemented";
1376
+ adopted: "adopted";
1377
+ defined: "defined";
1378
+ introduced: "introduced";
1379
+ in_progress: "in_progress";
1380
+ complete: "complete";
1381
+ consolidated: "consolidated";
1382
+ experimental: "experimental";
1383
+ retired: "retired";
1384
+ superseded: "superseded";
1385
+ abandoned: "abandoned";
1386
+ deferred: "deferred";
1387
+ }> & {
1388
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
1389
+ }>;
1390
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
1391
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1392
+ is(value: unknown): value is string | string[];
1393
+ }>;
1394
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1395
+ id: z.ZodString;
1396
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1397
+ is(value: unknown): value is string | string[];
1398
+ };
1399
+ }, z.core.$loose> & {
1400
+ is(value: unknown): value is {
1401
+ [x: string]: unknown;
1402
+ id: string;
1403
+ description: string | string[];
1404
+ };
1405
+ }>>;
1406
+ selected: z.ZodOptional<z.ZodString>;
1407
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1408
+ is(value: unknown): value is string | string[];
1409
+ }>;
1410
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
1411
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1412
+ type: z.ZodEnum<{
1413
+ link: "link";
1414
+ add: "add";
1415
+ update: "update";
1416
+ remove: "remove";
1417
+ }>;
1418
+ target: z.ZodOptional<z.ZodString>;
1419
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1420
+ is(value: unknown): value is string | string[];
1421
+ }>;
1422
+ }, z.core.$loose> & {
1423
+ is(value: unknown): value is {
1424
+ [x: string]: unknown;
1425
+ type: "link" | "add" | "update" | "remove";
1426
+ target?: string | undefined;
1427
+ description?: string | string[] | undefined;
1428
+ };
1429
+ }>>;
1430
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
1431
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1432
+ is(value: unknown): value is string | string[];
1433
+ };
1434
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1435
+ }, z.core.$loose> & {
1436
+ is(value: unknown): value is {
1437
+ [x: string]: unknown;
1438
+ description: string | string[];
1439
+ done?: boolean | undefined;
1440
+ };
1441
+ }>>;
1442
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1443
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1444
+ input: z.ZodOptional<z.ZodString>;
1445
+ output: z.ZodOptional<z.ZodString>;
1446
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1447
+ role: z.ZodEnum<{
1448
+ output: "output";
1449
+ input: "input";
1450
+ context: "context";
1451
+ evidence: "evidence";
1452
+ source: "source";
1453
+ standard: "standard";
1454
+ prior_art: "prior_art";
1455
+ }> & {
1456
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1457
+ };
1458
+ identifier: z.ZodString;
1459
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1460
+ is(value: unknown): value is string | string[];
1461
+ }>;
1462
+ node_id: z.ZodOptional<z.ZodString>;
1463
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1464
+ is(value: unknown): value is string | string[];
1465
+ }>;
1466
+ }, z.core.$strip> & {
1467
+ is(value: unknown): value is {
1468
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1469
+ identifier: string;
1470
+ description?: string | string[] | undefined;
1471
+ node_id?: string | undefined;
1472
+ internalised?: string | string[] | undefined;
1473
+ };
1474
+ }>>;
1475
+ readonly subsystem: z.ZodOptional<z.ZodObject<{
1476
+ $schema: z.ZodOptional<z.ZodString>;
1477
+ metadata: z.ZodOptional<z.ZodObject<{
1478
+ title: z.ZodOptional<z.ZodString>;
1479
+ doc_type: z.ZodOptional<z.ZodString>;
1480
+ scope: z.ZodOptional<z.ZodString>;
1481
+ status: z.ZodOptional<z.ZodString>;
1482
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1483
+ }, z.core.$loose> & {
1484
+ is(value: unknown): value is {
1485
+ [x: string]: unknown;
1486
+ title?: string | undefined;
1487
+ doc_type?: string | undefined;
1488
+ scope?: string | undefined;
1489
+ status?: string | undefined;
1490
+ version?: string | number | undefined;
1491
+ };
1492
+ }>;
1493
+ nodes: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$loose>>;
1494
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
1495
+ from: z.ZodString;
1496
+ to: z.ZodString;
1497
+ type: z.ZodEnum<{
1498
+ refines: "refines";
1499
+ realises: "realises";
1500
+ implements: "implements";
1501
+ depends_on: "depends_on";
1502
+ constrained_by: "constrained_by";
1503
+ affects: "affects";
1504
+ supersedes: "supersedes";
1505
+ must_preserve: "must_preserve";
1506
+ performs: "performs";
1507
+ part_of: "part_of";
1508
+ precedes: "precedes";
1509
+ must_follow: "must_follow";
1510
+ blocks: "blocks";
1511
+ routes_to: "routes_to";
1512
+ governed_by: "governed_by";
1513
+ modifies: "modifies";
1514
+ triggered_by: "triggered_by";
1515
+ applies_to: "applies_to";
1516
+ produces: "produces";
1517
+ consumes: "consumes";
1518
+ transforms_into: "transforms_into";
1519
+ selects: "selects";
1520
+ requires: "requires";
1521
+ disables: "disables";
1522
+ influence: "influence";
1523
+ }> & {
1524
+ 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";
1525
+ };
1526
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1527
+ is(value: unknown): value is string | string[];
1528
+ }>;
1529
+ polarity: z.ZodOptional<z.ZodEnum<{
1530
+ positive: "positive";
1531
+ negative: "negative";
1532
+ neutral: "neutral";
1533
+ uncertain: "uncertain";
1534
+ }> & {
1535
+ is(value: unknown): value is "positive" | "negative" | "neutral" | "uncertain";
1536
+ }>;
1537
+ strength: z.ZodOptional<z.ZodNumber>;
1538
+ }, z.core.$loose> & {
1539
+ is(value: unknown): value is {
1540
+ [x: string]: unknown;
1541
+ from: string;
1542
+ to: string;
1543
+ 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";
1544
+ description?: string | string[] | undefined;
1545
+ polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
1546
+ strength?: number | undefined;
1547
+ };
1548
+ }>>;
1549
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1550
+ role: z.ZodEnum<{
1551
+ output: "output";
1552
+ input: "input";
1553
+ context: "context";
1554
+ evidence: "evidence";
1555
+ source: "source";
1556
+ standard: "standard";
1557
+ prior_art: "prior_art";
1558
+ }> & {
1559
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1560
+ };
1561
+ identifier: z.ZodString;
1562
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1563
+ is(value: unknown): value is string | string[];
1564
+ }>;
1565
+ node_id: z.ZodOptional<z.ZodString>;
1566
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1567
+ is(value: unknown): value is string | string[];
1568
+ }>;
1569
+ }, z.core.$strip> & {
1570
+ is(value: unknown): value is {
1571
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1572
+ identifier: string;
1573
+ description?: string | string[] | undefined;
1574
+ node_id?: string | undefined;
1575
+ internalised?: string | string[] | undefined;
1576
+ };
1577
+ }>>;
1578
+ }, z.core.$strip>>;
1579
+ }, z.core.$loose> & {
1580
+ is(value: unknown): value is {
1581
+ [x: string]: unknown;
1582
+ id: string;
1583
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
1584
+ name: string;
1585
+ description?: string | string[] | undefined;
1586
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
1587
+ lifecycle?: Record<string, string | boolean> | undefined;
1588
+ context?: string | string[] | undefined;
1589
+ options?: {
1590
+ [x: string]: unknown;
1591
+ id: string;
1592
+ description: string | string[];
1593
+ }[] | undefined;
1594
+ selected?: string | undefined;
1595
+ rationale?: string | string[] | undefined;
1596
+ scope?: string[] | undefined;
1597
+ operations?: {
1598
+ [x: string]: unknown;
1599
+ type: "link" | "add" | "update" | "remove";
1600
+ target?: string | undefined;
1601
+ description?: string | string[] | undefined;
1602
+ }[] | undefined;
1603
+ plan?: {
1604
+ [x: string]: unknown;
1605
+ description: string | string[];
1606
+ done?: boolean | undefined;
1607
+ }[] | undefined;
1608
+ propagation?: Record<string, boolean> | undefined;
1609
+ includes?: string[] | undefined;
1610
+ input?: string | undefined;
1611
+ output?: string | undefined;
1612
+ external_references?: {
1613
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1614
+ identifier: string;
1615
+ description?: string | string[] | undefined;
1616
+ node_id?: string | undefined;
1617
+ internalised?: string | string[] | undefined;
1618
+ }[] | undefined;
1619
+ subsystem?: {
1620
+ nodes: /*elided*/ any[];
1621
+ $schema?: string | undefined;
1622
+ metadata?: {
1623
+ [x: string]: unknown;
1624
+ title?: string | undefined;
1625
+ doc_type?: string | undefined;
1626
+ scope?: string | undefined;
1627
+ status?: string | undefined;
1628
+ version?: string | number | undefined;
1629
+ } | undefined;
1630
+ relationships?: {
1631
+ [x: string]: unknown;
1632
+ from: string;
1633
+ to: string;
1634
+ 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";
1635
+ description?: string | string[] | undefined;
1636
+ polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
1637
+ strength?: number | undefined;
1638
+ }[] | undefined;
1639
+ external_references?: {
1640
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1641
+ identifier: string;
1642
+ description?: string | string[] | undefined;
1643
+ node_id?: string | undefined;
1644
+ internalised?: string | string[] | undefined;
1645
+ }[] | undefined;
1646
+ } | undefined;
1647
+ };
1648
+ }>;
1649
+ incomingImpactCount: z.ZodNumber;
1650
+ outgoingImpactCount: z.ZodNumber;
1651
+ totalImpact: z.ZodNumber;
1652
+ }, z.core.$strip>>;
1653
+ summary: z.ZodObject<{
1654
+ totalNodes: z.ZodNumber;
1655
+ totalImpactedNodes: z.ZodNumber;
1656
+ averageDegree: z.ZodNumber;
1657
+ }, z.core.$strip>;
1658
+ }, z.core.$strip>;
1659
+ /** Output of impact summary inference operation. */
1660
+ export type ImpactSummaryOutput = z.infer<typeof ImpactSummaryOutput>;
1661
+ /**
1662
+ * Analyse the entire document for impact hotspots.
1663
+ *
1664
+ * Identifies nodes that are heavily impacted or that impact many other nodes.
1665
+ * Useful for identifying critical elements and dependencies.
1666
+ */
1667
+ export declare const impactSummaryOp: import("./define-operation.js").DefinedOperation<z.ZodObject<{
1668
+ doc: z.ZodObject<{
1669
+ $schema: z.ZodOptional<z.ZodString>;
1670
+ metadata: z.ZodOptional<z.ZodObject<{
1671
+ title: z.ZodOptional<z.ZodString>;
1672
+ doc_type: z.ZodOptional<z.ZodString>;
1673
+ scope: z.ZodOptional<z.ZodString>;
1674
+ status: z.ZodOptional<z.ZodString>;
1675
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1676
+ }, z.core.$loose> & {
1677
+ is(value: unknown): value is {
1678
+ [x: string]: unknown;
1679
+ title?: string | undefined;
1680
+ doc_type?: string | undefined;
1681
+ scope?: string | undefined;
1682
+ status?: string | undefined;
1683
+ version?: string | number | undefined;
1684
+ };
1685
+ }>;
1686
+ nodes: z.ZodArray<z.ZodObject<{
1687
+ id: z.ZodString;
1688
+ type: z.ZodEnum<{
1689
+ intent: "intent";
1690
+ concept: "concept";
1691
+ capability: "capability";
1692
+ element: "element";
1693
+ realisation: "realisation";
1694
+ invariant: "invariant";
1695
+ principle: "principle";
1696
+ policy: "policy";
1697
+ protocol: "protocol";
1698
+ stage: "stage";
1699
+ role: "role";
1700
+ gate: "gate";
1701
+ mode: "mode";
1702
+ artefact: "artefact";
1703
+ artefact_flow: "artefact_flow";
1704
+ decision: "decision";
1705
+ change: "change";
1706
+ view: "view";
1707
+ milestone: "milestone";
1708
+ version: "version";
1709
+ }> & {
1710
+ 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";
1711
+ };
1712
+ name: z.ZodString;
1713
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1714
+ is(value: unknown): value is string | string[];
1715
+ }>;
1716
+ status: z.ZodOptional<z.ZodEnum<{
1717
+ deprecated: "deprecated";
1718
+ proposed: "proposed";
1719
+ accepted: "accepted";
1720
+ active: "active";
1721
+ implemented: "implemented";
1722
+ adopted: "adopted";
1723
+ defined: "defined";
1724
+ introduced: "introduced";
1725
+ in_progress: "in_progress";
1726
+ complete: "complete";
1727
+ consolidated: "consolidated";
1728
+ experimental: "experimental";
1729
+ retired: "retired";
1730
+ superseded: "superseded";
1731
+ abandoned: "abandoned";
1732
+ deferred: "deferred";
1733
+ }> & {
1734
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
1735
+ }>;
1736
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
1737
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1738
+ is(value: unknown): value is string | string[];
1739
+ }>;
1740
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1741
+ id: z.ZodString;
1742
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1743
+ is(value: unknown): value is string | string[];
1744
+ };
1745
+ }, z.core.$loose> & {
1746
+ is(value: unknown): value is {
1747
+ [x: string]: unknown;
1748
+ id: string;
1749
+ description: string | string[];
1750
+ };
1751
+ }>>;
1752
+ selected: z.ZodOptional<z.ZodString>;
1753
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1754
+ is(value: unknown): value is string | string[];
1755
+ }>;
1756
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
1757
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1758
+ type: z.ZodEnum<{
1759
+ link: "link";
1760
+ add: "add";
1761
+ update: "update";
1762
+ remove: "remove";
1763
+ }>;
1764
+ target: z.ZodOptional<z.ZodString>;
1765
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1766
+ is(value: unknown): value is string | string[];
1767
+ }>;
1768
+ }, z.core.$loose> & {
1769
+ is(value: unknown): value is {
1770
+ [x: string]: unknown;
1771
+ type: "link" | "add" | "update" | "remove";
1772
+ target?: string | undefined;
1773
+ description?: string | string[] | undefined;
1774
+ };
1775
+ }>>;
1776
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
1777
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1778
+ is(value: unknown): value is string | string[];
1779
+ };
1780
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1781
+ }, z.core.$loose> & {
1782
+ is(value: unknown): value is {
1783
+ [x: string]: unknown;
1784
+ description: string | string[];
1785
+ done?: boolean | undefined;
1786
+ };
1787
+ }>>;
1788
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1789
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1790
+ input: z.ZodOptional<z.ZodString>;
1791
+ output: z.ZodOptional<z.ZodString>;
1792
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1793
+ role: z.ZodEnum<{
1794
+ output: "output";
1795
+ input: "input";
1796
+ context: "context";
1797
+ evidence: "evidence";
1798
+ source: "source";
1799
+ standard: "standard";
1800
+ prior_art: "prior_art";
1801
+ }> & {
1802
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1803
+ };
1804
+ identifier: z.ZodString;
1805
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1806
+ is(value: unknown): value is string | string[];
1807
+ }>;
1808
+ node_id: z.ZodOptional<z.ZodString>;
1809
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1810
+ is(value: unknown): value is string | string[];
1811
+ }>;
1812
+ }, z.core.$strip> & {
1813
+ is(value: unknown): value is {
1814
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1815
+ identifier: string;
1816
+ description?: string | string[] | undefined;
1817
+ node_id?: string | undefined;
1818
+ internalised?: string | string[] | undefined;
1819
+ };
1820
+ }>>;
1821
+ readonly subsystem: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>;
1822
+ }, z.core.$loose>>;
1823
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
1824
+ from: z.ZodString;
1825
+ to: z.ZodString;
1826
+ type: z.ZodEnum<{
1827
+ refines: "refines";
1828
+ realises: "realises";
1829
+ implements: "implements";
1830
+ depends_on: "depends_on";
1831
+ constrained_by: "constrained_by";
1832
+ affects: "affects";
1833
+ supersedes: "supersedes";
1834
+ must_preserve: "must_preserve";
1835
+ performs: "performs";
1836
+ part_of: "part_of";
1837
+ precedes: "precedes";
1838
+ must_follow: "must_follow";
1839
+ blocks: "blocks";
1840
+ routes_to: "routes_to";
1841
+ governed_by: "governed_by";
1842
+ modifies: "modifies";
1843
+ triggered_by: "triggered_by";
1844
+ applies_to: "applies_to";
1845
+ produces: "produces";
1846
+ consumes: "consumes";
1847
+ transforms_into: "transforms_into";
1848
+ selects: "selects";
1849
+ requires: "requires";
1850
+ disables: "disables";
1851
+ influence: "influence";
1852
+ }> & {
1853
+ 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";
1854
+ };
1855
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1856
+ is(value: unknown): value is string | string[];
1857
+ }>;
1858
+ polarity: z.ZodOptional<z.ZodEnum<{
1859
+ positive: "positive";
1860
+ negative: "negative";
1861
+ neutral: "neutral";
1862
+ uncertain: "uncertain";
1863
+ }> & {
1864
+ is(value: unknown): value is "positive" | "negative" | "neutral" | "uncertain";
1865
+ }>;
1866
+ strength: z.ZodOptional<z.ZodNumber>;
1867
+ }, z.core.$loose> & {
1868
+ is(value: unknown): value is {
1869
+ [x: string]: unknown;
1870
+ from: string;
1871
+ to: string;
1872
+ 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";
1873
+ description?: string | string[] | undefined;
1874
+ polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
1875
+ strength?: number | undefined;
1876
+ };
1877
+ }>>;
1878
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1879
+ role: z.ZodEnum<{
1880
+ output: "output";
1881
+ input: "input";
1882
+ context: "context";
1883
+ evidence: "evidence";
1884
+ source: "source";
1885
+ standard: "standard";
1886
+ prior_art: "prior_art";
1887
+ }> & {
1888
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1889
+ };
1890
+ identifier: z.ZodString;
1891
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1892
+ is(value: unknown): value is string | string[];
1893
+ }>;
1894
+ node_id: z.ZodOptional<z.ZodString>;
1895
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1896
+ is(value: unknown): value is string | string[];
1897
+ }>;
1898
+ }, z.core.$strip> & {
1899
+ is(value: unknown): value is {
1900
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1901
+ identifier: string;
1902
+ description?: string | string[] | undefined;
1903
+ node_id?: string | undefined;
1904
+ internalised?: string | string[] | undefined;
1905
+ };
1906
+ }>>;
1907
+ }, z.core.$strip> & {
1908
+ is(value: unknown): value is {
1909
+ nodes: {
1910
+ [x: string]: unknown;
1911
+ id: string;
1912
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
1913
+ name: string;
1914
+ description?: string | string[] | undefined;
1915
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
1916
+ lifecycle?: Record<string, string | boolean> | undefined;
1917
+ context?: string | string[] | undefined;
1918
+ options?: {
1919
+ [x: string]: unknown;
1920
+ id: string;
1921
+ description: string | string[];
1922
+ }[] | undefined;
1923
+ selected?: string | undefined;
1924
+ rationale?: string | string[] | undefined;
1925
+ scope?: string[] | undefined;
1926
+ operations?: {
1927
+ [x: string]: unknown;
1928
+ type: "link" | "add" | "update" | "remove";
1929
+ target?: string | undefined;
1930
+ description?: string | string[] | undefined;
1931
+ }[] | undefined;
1932
+ plan?: {
1933
+ [x: string]: unknown;
1934
+ description: string | string[];
1935
+ done?: boolean | undefined;
1936
+ }[] | undefined;
1937
+ propagation?: Record<string, boolean> | undefined;
1938
+ includes?: string[] | undefined;
1939
+ input?: string | undefined;
1940
+ output?: string | undefined;
1941
+ external_references?: {
1942
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1943
+ identifier: string;
1944
+ description?: string | string[] | undefined;
1945
+ node_id?: string | undefined;
1946
+ internalised?: string | string[] | undefined;
1947
+ }[] | undefined;
1948
+ subsystem?: /*elided*/ any | undefined;
1949
+ }[];
1950
+ $schema?: string | undefined;
1951
+ metadata?: {
1952
+ [x: string]: unknown;
1953
+ title?: string | undefined;
1954
+ doc_type?: string | undefined;
1955
+ scope?: string | undefined;
1956
+ status?: string | undefined;
1957
+ version?: string | number | undefined;
1958
+ } | undefined;
1959
+ relationships?: {
1960
+ [x: string]: unknown;
1961
+ from: string;
1962
+ to: string;
1963
+ 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";
1964
+ description?: string | string[] | undefined;
1965
+ polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
1966
+ strength?: number | undefined;
1967
+ }[] | undefined;
1968
+ external_references?: {
1969
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1970
+ identifier: string;
1971
+ description?: string | string[] | undefined;
1972
+ node_id?: string | undefined;
1973
+ internalised?: string | string[] | undefined;
1974
+ }[] | undefined;
1975
+ };
1976
+ };
1977
+ }, z.core.$strip>, z.ZodObject<{
1978
+ hotspots: z.ZodArray<z.ZodObject<{
1979
+ nodeId: z.ZodString;
1980
+ node: z.ZodOptional<z.ZodObject<{
1981
+ id: z.ZodString;
1982
+ type: z.ZodEnum<{
1983
+ intent: "intent";
1984
+ concept: "concept";
1985
+ capability: "capability";
1986
+ element: "element";
1987
+ realisation: "realisation";
1988
+ invariant: "invariant";
1989
+ principle: "principle";
1990
+ policy: "policy";
1991
+ protocol: "protocol";
1992
+ stage: "stage";
1993
+ role: "role";
1994
+ gate: "gate";
1995
+ mode: "mode";
1996
+ artefact: "artefact";
1997
+ artefact_flow: "artefact_flow";
1998
+ decision: "decision";
1999
+ change: "change";
2000
+ view: "view";
2001
+ milestone: "milestone";
2002
+ version: "version";
2003
+ }> & {
2004
+ 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";
2005
+ };
2006
+ name: z.ZodString;
2007
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
2008
+ is(value: unknown): value is string | string[];
2009
+ }>;
2010
+ status: z.ZodOptional<z.ZodEnum<{
2011
+ deprecated: "deprecated";
2012
+ proposed: "proposed";
2013
+ accepted: "accepted";
2014
+ active: "active";
2015
+ implemented: "implemented";
2016
+ adopted: "adopted";
2017
+ defined: "defined";
2018
+ introduced: "introduced";
2019
+ in_progress: "in_progress";
2020
+ complete: "complete";
2021
+ consolidated: "consolidated";
2022
+ experimental: "experimental";
2023
+ retired: "retired";
2024
+ superseded: "superseded";
2025
+ abandoned: "abandoned";
2026
+ deferred: "deferred";
2027
+ }> & {
2028
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
2029
+ }>;
2030
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
2031
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
2032
+ is(value: unknown): value is string | string[];
2033
+ }>;
2034
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
2035
+ id: z.ZodString;
2036
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
2037
+ is(value: unknown): value is string | string[];
2038
+ };
2039
+ }, z.core.$loose> & {
2040
+ is(value: unknown): value is {
2041
+ [x: string]: unknown;
2042
+ id: string;
2043
+ description: string | string[];
2044
+ };
2045
+ }>>;
2046
+ selected: z.ZodOptional<z.ZodString>;
2047
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
2048
+ is(value: unknown): value is string | string[];
2049
+ }>;
2050
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
2051
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2052
+ type: z.ZodEnum<{
2053
+ link: "link";
2054
+ add: "add";
2055
+ update: "update";
2056
+ remove: "remove";
2057
+ }>;
2058
+ target: z.ZodOptional<z.ZodString>;
2059
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
2060
+ is(value: unknown): value is string | string[];
2061
+ }>;
2062
+ }, z.core.$loose> & {
2063
+ is(value: unknown): value is {
2064
+ [x: string]: unknown;
2065
+ type: "link" | "add" | "update" | "remove";
2066
+ target?: string | undefined;
2067
+ description?: string | string[] | undefined;
2068
+ };
2069
+ }>>;
2070
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
2071
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
2072
+ is(value: unknown): value is string | string[];
2073
+ };
2074
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2075
+ }, z.core.$loose> & {
2076
+ is(value: unknown): value is {
2077
+ [x: string]: unknown;
2078
+ description: string | string[];
2079
+ done?: boolean | undefined;
2080
+ };
2081
+ }>>;
2082
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
2083
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2084
+ input: z.ZodOptional<z.ZodString>;
2085
+ output: z.ZodOptional<z.ZodString>;
2086
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
2087
+ role: z.ZodEnum<{
2088
+ output: "output";
2089
+ input: "input";
2090
+ context: "context";
2091
+ evidence: "evidence";
2092
+ source: "source";
2093
+ standard: "standard";
2094
+ prior_art: "prior_art";
2095
+ }> & {
2096
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
2097
+ };
2098
+ identifier: z.ZodString;
2099
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
2100
+ is(value: unknown): value is string | string[];
2101
+ }>;
2102
+ node_id: z.ZodOptional<z.ZodString>;
2103
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
2104
+ is(value: unknown): value is string | string[];
2105
+ }>;
2106
+ }, z.core.$strip> & {
2107
+ is(value: unknown): value is {
2108
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
2109
+ identifier: string;
2110
+ description?: string | string[] | undefined;
2111
+ node_id?: string | undefined;
2112
+ internalised?: string | string[] | undefined;
2113
+ };
2114
+ }>>;
2115
+ readonly subsystem: z.ZodOptional<z.ZodObject<{
2116
+ $schema: z.ZodOptional<z.ZodString>;
2117
+ metadata: z.ZodOptional<z.ZodObject<{
2118
+ title: z.ZodOptional<z.ZodString>;
2119
+ doc_type: z.ZodOptional<z.ZodString>;
2120
+ scope: z.ZodOptional<z.ZodString>;
2121
+ status: z.ZodOptional<z.ZodString>;
2122
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
2123
+ }, z.core.$loose> & {
2124
+ is(value: unknown): value is {
2125
+ [x: string]: unknown;
2126
+ title?: string | undefined;
2127
+ doc_type?: string | undefined;
2128
+ scope?: string | undefined;
2129
+ status?: string | undefined;
2130
+ version?: string | number | undefined;
2131
+ };
2132
+ }>;
2133
+ nodes: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$loose>>;
2134
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
2135
+ from: z.ZodString;
2136
+ to: z.ZodString;
2137
+ type: z.ZodEnum<{
2138
+ refines: "refines";
2139
+ realises: "realises";
2140
+ implements: "implements";
2141
+ depends_on: "depends_on";
2142
+ constrained_by: "constrained_by";
2143
+ affects: "affects";
2144
+ supersedes: "supersedes";
2145
+ must_preserve: "must_preserve";
2146
+ performs: "performs";
2147
+ part_of: "part_of";
2148
+ precedes: "precedes";
2149
+ must_follow: "must_follow";
2150
+ blocks: "blocks";
2151
+ routes_to: "routes_to";
2152
+ governed_by: "governed_by";
2153
+ modifies: "modifies";
2154
+ triggered_by: "triggered_by";
2155
+ applies_to: "applies_to";
2156
+ produces: "produces";
2157
+ consumes: "consumes";
2158
+ transforms_into: "transforms_into";
2159
+ selects: "selects";
2160
+ requires: "requires";
2161
+ disables: "disables";
2162
+ influence: "influence";
2163
+ }> & {
2164
+ 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";
2165
+ };
2166
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
2167
+ is(value: unknown): value is string | string[];
2168
+ }>;
2169
+ polarity: z.ZodOptional<z.ZodEnum<{
2170
+ positive: "positive";
2171
+ negative: "negative";
2172
+ neutral: "neutral";
2173
+ uncertain: "uncertain";
2174
+ }> & {
2175
+ is(value: unknown): value is "positive" | "negative" | "neutral" | "uncertain";
2176
+ }>;
2177
+ strength: z.ZodOptional<z.ZodNumber>;
2178
+ }, z.core.$loose> & {
2179
+ is(value: unknown): value is {
2180
+ [x: string]: unknown;
2181
+ from: string;
2182
+ to: string;
2183
+ 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";
2184
+ description?: string | string[] | undefined;
2185
+ polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
2186
+ strength?: number | undefined;
2187
+ };
2188
+ }>>;
2189
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
2190
+ role: z.ZodEnum<{
2191
+ output: "output";
2192
+ input: "input";
2193
+ context: "context";
2194
+ evidence: "evidence";
2195
+ source: "source";
2196
+ standard: "standard";
2197
+ prior_art: "prior_art";
2198
+ }> & {
2199
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
2200
+ };
2201
+ identifier: z.ZodString;
2202
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
2203
+ is(value: unknown): value is string | string[];
2204
+ }>;
2205
+ node_id: z.ZodOptional<z.ZodString>;
2206
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
2207
+ is(value: unknown): value is string | string[];
2208
+ }>;
2209
+ }, z.core.$strip> & {
2210
+ is(value: unknown): value is {
2211
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
2212
+ identifier: string;
2213
+ description?: string | string[] | undefined;
2214
+ node_id?: string | undefined;
2215
+ internalised?: string | string[] | undefined;
2216
+ };
2217
+ }>>;
2218
+ }, z.core.$strip>>;
2219
+ }, z.core.$loose> & {
2220
+ is(value: unknown): value is {
2221
+ [x: string]: unknown;
2222
+ id: string;
2223
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
2224
+ name: string;
2225
+ description?: string | string[] | undefined;
2226
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
2227
+ lifecycle?: Record<string, string | boolean> | undefined;
2228
+ context?: string | string[] | undefined;
2229
+ options?: {
2230
+ [x: string]: unknown;
2231
+ id: string;
2232
+ description: string | string[];
2233
+ }[] | undefined;
2234
+ selected?: string | undefined;
2235
+ rationale?: string | string[] | undefined;
2236
+ scope?: string[] | undefined;
2237
+ operations?: {
2238
+ [x: string]: unknown;
2239
+ type: "link" | "add" | "update" | "remove";
2240
+ target?: string | undefined;
2241
+ description?: string | string[] | undefined;
2242
+ }[] | undefined;
2243
+ plan?: {
2244
+ [x: string]: unknown;
2245
+ description: string | string[];
2246
+ done?: boolean | undefined;
2247
+ }[] | undefined;
2248
+ propagation?: Record<string, boolean> | undefined;
2249
+ includes?: string[] | undefined;
2250
+ input?: string | undefined;
2251
+ output?: string | undefined;
2252
+ external_references?: {
2253
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
2254
+ identifier: string;
2255
+ description?: string | string[] | undefined;
2256
+ node_id?: string | undefined;
2257
+ internalised?: string | string[] | undefined;
2258
+ }[] | undefined;
2259
+ subsystem?: {
2260
+ nodes: /*elided*/ any[];
2261
+ $schema?: string | undefined;
2262
+ metadata?: {
2263
+ [x: string]: unknown;
2264
+ title?: string | undefined;
2265
+ doc_type?: string | undefined;
2266
+ scope?: string | undefined;
2267
+ status?: string | undefined;
2268
+ version?: string | number | undefined;
2269
+ } | undefined;
2270
+ relationships?: {
2271
+ [x: string]: unknown;
2272
+ from: string;
2273
+ to: string;
2274
+ 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";
2275
+ description?: string | string[] | undefined;
2276
+ polarity?: "positive" | "negative" | "neutral" | "uncertain" | undefined;
2277
+ strength?: number | undefined;
2278
+ }[] | undefined;
2279
+ external_references?: {
2280
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
2281
+ identifier: string;
2282
+ description?: string | string[] | undefined;
2283
+ node_id?: string | undefined;
2284
+ internalised?: string | string[] | undefined;
2285
+ }[] | undefined;
2286
+ } | undefined;
2287
+ };
2288
+ }>;
2289
+ incomingImpactCount: z.ZodNumber;
2290
+ outgoingImpactCount: z.ZodNumber;
2291
+ totalImpact: z.ZodNumber;
2292
+ }, z.core.$strip>>;
2293
+ summary: z.ZodObject<{
2294
+ totalNodes: z.ZodNumber;
2295
+ totalImpactedNodes: z.ZodNumber;
2296
+ averageDegree: z.ZodNumber;
2297
+ }, z.core.$strip>;
2298
+ }, z.core.$strip>>;
2299
+ export {};