sysprom 1.0.0 → 1.0.6

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 (148) hide show
  1. package/README.md +207 -0
  2. package/dist/schema.json +510 -0
  3. package/dist/src/canonical-json.d.ts +23 -0
  4. package/dist/src/canonical-json.js +120 -0
  5. package/dist/src/cli/commands/add.d.ts +22 -0
  6. package/dist/src/cli/commands/add.js +95 -0
  7. package/dist/src/cli/commands/check.d.ts +10 -0
  8. package/dist/src/cli/commands/check.js +33 -0
  9. package/dist/src/cli/commands/graph.d.ts +15 -0
  10. package/dist/src/cli/commands/graph.js +32 -0
  11. package/dist/src/cli/commands/init.d.ts +2 -0
  12. package/dist/src/cli/commands/init.js +44 -0
  13. package/dist/src/cli/commands/json2md.d.ts +2 -0
  14. package/dist/src/cli/commands/json2md.js +60 -0
  15. package/dist/src/cli/commands/md2json.d.ts +2 -0
  16. package/dist/src/cli/commands/md2json.js +29 -0
  17. package/dist/src/cli/commands/plan.d.ts +2 -0
  18. package/dist/src/cli/commands/plan.js +227 -0
  19. package/dist/src/cli/commands/query.d.ts +2 -0
  20. package/dist/src/cli/commands/query.js +275 -0
  21. package/dist/src/cli/commands/remove.d.ts +13 -0
  22. package/dist/src/cli/commands/remove.js +50 -0
  23. package/dist/src/cli/commands/rename.d.ts +14 -0
  24. package/dist/src/cli/commands/rename.js +34 -0
  25. package/dist/src/cli/commands/search.d.ts +11 -0
  26. package/dist/src/cli/commands/search.js +37 -0
  27. package/dist/src/cli/commands/speckit.d.ts +2 -0
  28. package/dist/src/cli/commands/speckit.js +318 -0
  29. package/dist/src/cli/commands/stats.d.ts +10 -0
  30. package/dist/src/cli/commands/stats.js +51 -0
  31. package/dist/src/cli/commands/task.d.ts +2 -0
  32. package/dist/src/cli/commands/task.js +162 -0
  33. package/dist/src/cli/commands/update.d.ts +2 -0
  34. package/dist/src/cli/commands/update.js +219 -0
  35. package/dist/src/cli/commands/validate.d.ts +10 -0
  36. package/dist/src/cli/commands/validate.js +30 -0
  37. package/dist/src/cli/define-command.d.ts +34 -0
  38. package/dist/src/cli/define-command.js +237 -0
  39. package/dist/src/cli/index.d.ts +2 -0
  40. package/dist/src/cli/index.js +3 -0
  41. package/dist/src/cli/program.d.ts +4 -0
  42. package/dist/src/cli/program.js +46 -0
  43. package/dist/src/cli/shared.d.ts +26 -0
  44. package/dist/src/cli/shared.js +41 -0
  45. package/dist/src/generate-schema.d.ts +1 -0
  46. package/dist/src/generate-schema.js +9 -0
  47. package/dist/src/index.d.ts +48 -0
  48. package/dist/src/index.js +99 -0
  49. package/dist/src/io.d.ts +22 -0
  50. package/dist/src/io.js +66 -0
  51. package/dist/src/json-to-md.d.ts +26 -0
  52. package/dist/src/json-to-md.js +498 -0
  53. package/dist/src/md-to-json.d.ts +22 -0
  54. package/dist/src/md-to-json.js +548 -0
  55. package/dist/src/operations/add-node.d.ts +887 -0
  56. package/dist/src/operations/add-node.js +21 -0
  57. package/dist/src/operations/add-plan-task.d.ts +594 -0
  58. package/dist/src/operations/add-plan-task.js +25 -0
  59. package/dist/src/operations/add-relationship.d.ts +635 -0
  60. package/dist/src/operations/add-relationship.js +25 -0
  61. package/dist/src/operations/check.d.ts +301 -0
  62. package/dist/src/operations/check.js +66 -0
  63. package/dist/src/operations/define-operation.d.ts +14 -0
  64. package/dist/src/operations/define-operation.js +21 -0
  65. package/dist/src/operations/graph.d.ts +303 -0
  66. package/dist/src/operations/graph.js +71 -0
  67. package/dist/src/operations/index.d.ts +38 -0
  68. package/dist/src/operations/index.js +45 -0
  69. package/dist/src/operations/init-document.d.ts +299 -0
  70. package/dist/src/operations/init-document.js +26 -0
  71. package/dist/src/operations/json-to-markdown.d.ts +298 -0
  72. package/dist/src/operations/json-to-markdown.js +13 -0
  73. package/dist/src/operations/mark-task-done.d.ts +594 -0
  74. package/dist/src/operations/mark-task-done.js +26 -0
  75. package/dist/src/operations/mark-task-undone.d.ts +594 -0
  76. package/dist/src/operations/mark-task-undone.js +26 -0
  77. package/dist/src/operations/markdown-to-json.d.ts +298 -0
  78. package/dist/src/operations/markdown-to-json.js +13 -0
  79. package/dist/src/operations/next-id.d.ts +322 -0
  80. package/dist/src/operations/next-id.js +29 -0
  81. package/dist/src/operations/node-history.d.ts +313 -0
  82. package/dist/src/operations/node-history.js +55 -0
  83. package/dist/src/operations/plan-add-task.d.ts +595 -0
  84. package/dist/src/operations/plan-add-task.js +18 -0
  85. package/dist/src/operations/plan-gate.d.ts +351 -0
  86. package/dist/src/operations/plan-gate.js +41 -0
  87. package/dist/src/operations/plan-init.d.ts +299 -0
  88. package/dist/src/operations/plan-init.js +17 -0
  89. package/dist/src/operations/plan-progress.d.ts +313 -0
  90. package/dist/src/operations/plan-progress.js +23 -0
  91. package/dist/src/operations/plan-status.d.ts +349 -0
  92. package/dist/src/operations/plan-status.js +41 -0
  93. package/dist/src/operations/query-node.d.ts +1065 -0
  94. package/dist/src/operations/query-node.js +27 -0
  95. package/dist/src/operations/query-nodes.d.ts +594 -0
  96. package/dist/src/operations/query-nodes.js +23 -0
  97. package/dist/src/operations/query-relationships.d.ts +343 -0
  98. package/dist/src/operations/query-relationships.js +27 -0
  99. package/dist/src/operations/remove-node.d.ts +895 -0
  100. package/dist/src/operations/remove-node.js +58 -0
  101. package/dist/src/operations/remove-relationship.d.ts +622 -0
  102. package/dist/src/operations/remove-relationship.js +26 -0
  103. package/dist/src/operations/rename.d.ts +594 -0
  104. package/dist/src/operations/rename.js +113 -0
  105. package/dist/src/operations/search.d.ts +593 -0
  106. package/dist/src/operations/search.js +39 -0
  107. package/dist/src/operations/speckit-diff.d.ts +330 -0
  108. package/dist/src/operations/speckit-diff.js +89 -0
  109. package/dist/src/operations/speckit-export.d.ts +300 -0
  110. package/dist/src/operations/speckit-export.js +17 -0
  111. package/dist/src/operations/speckit-import.d.ts +299 -0
  112. package/dist/src/operations/speckit-import.js +39 -0
  113. package/dist/src/operations/speckit-sync.d.ts +900 -0
  114. package/dist/src/operations/speckit-sync.js +116 -0
  115. package/dist/src/operations/state-at.d.ts +309 -0
  116. package/dist/src/operations/state-at.js +53 -0
  117. package/dist/src/operations/stats.d.ts +324 -0
  118. package/dist/src/operations/stats.js +85 -0
  119. package/dist/src/operations/task-list.d.ts +305 -0
  120. package/dist/src/operations/task-list.js +44 -0
  121. package/dist/src/operations/timeline.d.ts +312 -0
  122. package/dist/src/operations/timeline.js +46 -0
  123. package/dist/src/operations/trace-from-node.d.ts +1197 -0
  124. package/dist/src/operations/trace-from-node.js +36 -0
  125. package/dist/src/operations/update-metadata.d.ts +593 -0
  126. package/dist/src/operations/update-metadata.js +18 -0
  127. package/dist/src/operations/update-node.d.ts +957 -0
  128. package/dist/src/operations/update-node.js +24 -0
  129. package/dist/src/operations/update-plan-task.d.ts +595 -0
  130. package/dist/src/operations/update-plan-task.js +31 -0
  131. package/dist/src/operations/validate.d.ts +310 -0
  132. package/dist/src/operations/validate.js +82 -0
  133. package/dist/src/schema.d.ts +891 -0
  134. package/dist/src/schema.js +356 -0
  135. package/dist/src/speckit/generate.d.ts +7 -0
  136. package/dist/src/speckit/generate.js +546 -0
  137. package/dist/src/speckit/index.d.ts +4 -0
  138. package/dist/src/speckit/index.js +4 -0
  139. package/dist/src/speckit/parse.d.ts +11 -0
  140. package/dist/src/speckit/parse.js +712 -0
  141. package/dist/src/speckit/plan.d.ts +125 -0
  142. package/dist/src/speckit/plan.js +636 -0
  143. package/dist/src/speckit/project.d.ts +39 -0
  144. package/dist/src/speckit/project.js +141 -0
  145. package/dist/src/text.d.ts +23 -0
  146. package/dist/src/text.js +32 -0
  147. package/package.json +86 -8
  148. package/schema.json +510 -0
@@ -0,0 +1,1197 @@
1
+ import * as z from "zod";
2
+ declare const TraceNodeSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ node: z.ZodOptional<z.ZodObject<{
5
+ id: z.ZodString;
6
+ type: z.ZodEnum<{
7
+ intent: "intent";
8
+ concept: "concept";
9
+ capability: "capability";
10
+ element: "element";
11
+ realisation: "realisation";
12
+ invariant: "invariant";
13
+ principle: "principle";
14
+ policy: "policy";
15
+ protocol: "protocol";
16
+ stage: "stage";
17
+ role: "role";
18
+ gate: "gate";
19
+ mode: "mode";
20
+ artefact: "artefact";
21
+ artefact_flow: "artefact_flow";
22
+ decision: "decision";
23
+ change: "change";
24
+ view: "view";
25
+ milestone: "milestone";
26
+ version: "version";
27
+ }> & {
28
+ 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";
29
+ };
30
+ name: z.ZodString;
31
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
32
+ is(value: unknown): value is string | string[];
33
+ }>;
34
+ status: z.ZodOptional<z.ZodEnum<{
35
+ deprecated: "deprecated";
36
+ proposed: "proposed";
37
+ accepted: "accepted";
38
+ active: "active";
39
+ implemented: "implemented";
40
+ adopted: "adopted";
41
+ defined: "defined";
42
+ introduced: "introduced";
43
+ in_progress: "in_progress";
44
+ complete: "complete";
45
+ consolidated: "consolidated";
46
+ experimental: "experimental";
47
+ retired: "retired";
48
+ superseded: "superseded";
49
+ abandoned: "abandoned";
50
+ deferred: "deferred";
51
+ }> & {
52
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
53
+ }>;
54
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
55
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
56
+ is(value: unknown): value is string | string[];
57
+ }>;
58
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
59
+ id: z.ZodString;
60
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
61
+ is(value: unknown): value is string | string[];
62
+ };
63
+ }, z.core.$loose> & {
64
+ is(value: unknown): value is {
65
+ [x: string]: unknown;
66
+ id: string;
67
+ description: string | string[];
68
+ };
69
+ }>>;
70
+ selected: z.ZodOptional<z.ZodString>;
71
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
72
+ is(value: unknown): value is string | string[];
73
+ }>;
74
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
75
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
76
+ type: z.ZodEnum<{
77
+ link: "link";
78
+ add: "add";
79
+ update: "update";
80
+ remove: "remove";
81
+ }>;
82
+ target: z.ZodOptional<z.ZodString>;
83
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
84
+ is(value: unknown): value is string | string[];
85
+ }>;
86
+ }, z.core.$loose> & {
87
+ is(value: unknown): value is {
88
+ [x: string]: unknown;
89
+ type: "link" | "add" | "update" | "remove";
90
+ target?: string | undefined;
91
+ description?: string | string[] | undefined;
92
+ };
93
+ }>>;
94
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
95
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
96
+ is(value: unknown): value is string | string[];
97
+ };
98
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
99
+ }, z.core.$loose> & {
100
+ is(value: unknown): value is {
101
+ [x: string]: unknown;
102
+ description: string | string[];
103
+ done?: boolean | undefined;
104
+ };
105
+ }>>;
106
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
107
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
108
+ input: z.ZodOptional<z.ZodString>;
109
+ output: z.ZodOptional<z.ZodString>;
110
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
111
+ role: z.ZodEnum<{
112
+ output: "output";
113
+ input: "input";
114
+ context: "context";
115
+ evidence: "evidence";
116
+ source: "source";
117
+ standard: "standard";
118
+ prior_art: "prior_art";
119
+ }> & {
120
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
121
+ };
122
+ identifier: z.ZodString;
123
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
124
+ is(value: unknown): value is string | string[];
125
+ }>;
126
+ node_id: z.ZodOptional<z.ZodString>;
127
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
128
+ is(value: unknown): value is string | string[];
129
+ }>;
130
+ }, z.core.$strip> & {
131
+ is(value: unknown): value is {
132
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
133
+ identifier: string;
134
+ description?: string | string[] | undefined;
135
+ node_id?: string | undefined;
136
+ internalised?: string | string[] | undefined;
137
+ };
138
+ }>>;
139
+ readonly subsystem: z.ZodOptional<z.ZodObject<{
140
+ $schema: z.ZodOptional<z.ZodString>;
141
+ metadata: z.ZodOptional<z.ZodObject<{
142
+ title: z.ZodOptional<z.ZodString>;
143
+ doc_type: z.ZodOptional<z.ZodString>;
144
+ scope: z.ZodOptional<z.ZodString>;
145
+ status: z.ZodOptional<z.ZodString>;
146
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
147
+ }, z.core.$loose> & {
148
+ is(value: unknown): value is {
149
+ [x: string]: unknown;
150
+ title?: string | undefined;
151
+ doc_type?: string | undefined;
152
+ scope?: string | undefined;
153
+ status?: string | undefined;
154
+ version?: string | number | undefined;
155
+ };
156
+ }>;
157
+ nodes: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$loose>>;
158
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
159
+ from: z.ZodString;
160
+ to: z.ZodString;
161
+ type: z.ZodEnum<{
162
+ refines: "refines";
163
+ realises: "realises";
164
+ implements: "implements";
165
+ depends_on: "depends_on";
166
+ constrained_by: "constrained_by";
167
+ affects: "affects";
168
+ supersedes: "supersedes";
169
+ must_preserve: "must_preserve";
170
+ performs: "performs";
171
+ part_of: "part_of";
172
+ precedes: "precedes";
173
+ must_follow: "must_follow";
174
+ blocks: "blocks";
175
+ routes_to: "routes_to";
176
+ governed_by: "governed_by";
177
+ modifies: "modifies";
178
+ triggered_by: "triggered_by";
179
+ applies_to: "applies_to";
180
+ produces: "produces";
181
+ consumes: "consumes";
182
+ transforms_into: "transforms_into";
183
+ selects: "selects";
184
+ requires: "requires";
185
+ disables: "disables";
186
+ }> & {
187
+ 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";
188
+ };
189
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
190
+ is(value: unknown): value is string | string[];
191
+ }>;
192
+ }, z.core.$loose> & {
193
+ is(value: unknown): value is {
194
+ [x: string]: unknown;
195
+ from: string;
196
+ to: string;
197
+ 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";
198
+ description?: string | string[] | undefined;
199
+ };
200
+ }>>;
201
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
202
+ role: z.ZodEnum<{
203
+ output: "output";
204
+ input: "input";
205
+ context: "context";
206
+ evidence: "evidence";
207
+ source: "source";
208
+ standard: "standard";
209
+ prior_art: "prior_art";
210
+ }> & {
211
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
212
+ };
213
+ identifier: z.ZodString;
214
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
215
+ is(value: unknown): value is string | string[];
216
+ }>;
217
+ node_id: z.ZodOptional<z.ZodString>;
218
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
219
+ is(value: unknown): value is string | string[];
220
+ }>;
221
+ }, z.core.$strip> & {
222
+ is(value: unknown): value is {
223
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
224
+ identifier: string;
225
+ description?: string | string[] | undefined;
226
+ node_id?: string | undefined;
227
+ internalised?: string | string[] | undefined;
228
+ };
229
+ }>>;
230
+ }, z.core.$strip>>;
231
+ }, z.core.$loose> & {
232
+ is(value: unknown): value is {
233
+ [x: string]: unknown;
234
+ id: string;
235
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
236
+ name: string;
237
+ description?: string | string[] | undefined;
238
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
239
+ lifecycle?: Record<string, string | boolean> | undefined;
240
+ context?: string | string[] | undefined;
241
+ options?: {
242
+ [x: string]: unknown;
243
+ id: string;
244
+ description: string | string[];
245
+ }[] | undefined;
246
+ selected?: string | undefined;
247
+ rationale?: string | string[] | undefined;
248
+ scope?: string[] | undefined;
249
+ operations?: {
250
+ [x: string]: unknown;
251
+ type: "link" | "add" | "update" | "remove";
252
+ target?: string | undefined;
253
+ description?: string | string[] | undefined;
254
+ }[] | undefined;
255
+ plan?: {
256
+ [x: string]: unknown;
257
+ description: string | string[];
258
+ done?: boolean | undefined;
259
+ }[] | undefined;
260
+ propagation?: Record<string, boolean> | undefined;
261
+ includes?: string[] | undefined;
262
+ input?: string | undefined;
263
+ output?: string | undefined;
264
+ external_references?: {
265
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
266
+ identifier: string;
267
+ description?: string | string[] | undefined;
268
+ node_id?: string | undefined;
269
+ internalised?: string | string[] | undefined;
270
+ }[] | undefined;
271
+ subsystem?: {
272
+ nodes: /*elided*/ any[];
273
+ $schema?: string | undefined;
274
+ metadata?: {
275
+ [x: string]: unknown;
276
+ title?: string | undefined;
277
+ doc_type?: string | undefined;
278
+ scope?: string | undefined;
279
+ status?: string | undefined;
280
+ version?: string | number | undefined;
281
+ } | undefined;
282
+ relationships?: {
283
+ [x: string]: unknown;
284
+ from: string;
285
+ to: string;
286
+ 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";
287
+ description?: string | string[] | undefined;
288
+ }[] | undefined;
289
+ external_references?: {
290
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
291
+ identifier: string;
292
+ description?: string | string[] | undefined;
293
+ node_id?: string | undefined;
294
+ internalised?: string | string[] | undefined;
295
+ }[] | undefined;
296
+ } | undefined;
297
+ };
298
+ }>;
299
+ children: z.ZodArray<typeof TraceNodeSchema>;
300
+ }, z.core.$strip>;
301
+ export declare const TraceNode: z.ZodObject<{
302
+ id: z.ZodString;
303
+ node: z.ZodOptional<z.ZodObject<{
304
+ id: z.ZodString;
305
+ type: z.ZodEnum<{
306
+ intent: "intent";
307
+ concept: "concept";
308
+ capability: "capability";
309
+ element: "element";
310
+ realisation: "realisation";
311
+ invariant: "invariant";
312
+ principle: "principle";
313
+ policy: "policy";
314
+ protocol: "protocol";
315
+ stage: "stage";
316
+ role: "role";
317
+ gate: "gate";
318
+ mode: "mode";
319
+ artefact: "artefact";
320
+ artefact_flow: "artefact_flow";
321
+ decision: "decision";
322
+ change: "change";
323
+ view: "view";
324
+ milestone: "milestone";
325
+ version: "version";
326
+ }> & {
327
+ 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";
328
+ };
329
+ name: z.ZodString;
330
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
331
+ is(value: unknown): value is string | string[];
332
+ }>;
333
+ status: z.ZodOptional<z.ZodEnum<{
334
+ deprecated: "deprecated";
335
+ proposed: "proposed";
336
+ accepted: "accepted";
337
+ active: "active";
338
+ implemented: "implemented";
339
+ adopted: "adopted";
340
+ defined: "defined";
341
+ introduced: "introduced";
342
+ in_progress: "in_progress";
343
+ complete: "complete";
344
+ consolidated: "consolidated";
345
+ experimental: "experimental";
346
+ retired: "retired";
347
+ superseded: "superseded";
348
+ abandoned: "abandoned";
349
+ deferred: "deferred";
350
+ }> & {
351
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
352
+ }>;
353
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
354
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
355
+ is(value: unknown): value is string | string[];
356
+ }>;
357
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
358
+ id: z.ZodString;
359
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
360
+ is(value: unknown): value is string | string[];
361
+ };
362
+ }, z.core.$loose> & {
363
+ is(value: unknown): value is {
364
+ [x: string]: unknown;
365
+ id: string;
366
+ description: string | string[];
367
+ };
368
+ }>>;
369
+ selected: z.ZodOptional<z.ZodString>;
370
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
371
+ is(value: unknown): value is string | string[];
372
+ }>;
373
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
374
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
375
+ type: z.ZodEnum<{
376
+ link: "link";
377
+ add: "add";
378
+ update: "update";
379
+ remove: "remove";
380
+ }>;
381
+ target: z.ZodOptional<z.ZodString>;
382
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
383
+ is(value: unknown): value is string | string[];
384
+ }>;
385
+ }, z.core.$loose> & {
386
+ is(value: unknown): value is {
387
+ [x: string]: unknown;
388
+ type: "link" | "add" | "update" | "remove";
389
+ target?: string | undefined;
390
+ description?: string | string[] | undefined;
391
+ };
392
+ }>>;
393
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
394
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
395
+ is(value: unknown): value is string | string[];
396
+ };
397
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
398
+ }, z.core.$loose> & {
399
+ is(value: unknown): value is {
400
+ [x: string]: unknown;
401
+ description: string | string[];
402
+ done?: boolean | undefined;
403
+ };
404
+ }>>;
405
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
406
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
407
+ input: z.ZodOptional<z.ZodString>;
408
+ output: z.ZodOptional<z.ZodString>;
409
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
410
+ role: z.ZodEnum<{
411
+ output: "output";
412
+ input: "input";
413
+ context: "context";
414
+ evidence: "evidence";
415
+ source: "source";
416
+ standard: "standard";
417
+ prior_art: "prior_art";
418
+ }> & {
419
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
420
+ };
421
+ identifier: z.ZodString;
422
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
423
+ is(value: unknown): value is string | string[];
424
+ }>;
425
+ node_id: z.ZodOptional<z.ZodString>;
426
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
427
+ is(value: unknown): value is string | string[];
428
+ }>;
429
+ }, z.core.$strip> & {
430
+ is(value: unknown): value is {
431
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
432
+ identifier: string;
433
+ description?: string | string[] | undefined;
434
+ node_id?: string | undefined;
435
+ internalised?: string | string[] | undefined;
436
+ };
437
+ }>>;
438
+ readonly subsystem: z.ZodOptional<z.ZodObject<{
439
+ $schema: z.ZodOptional<z.ZodString>;
440
+ metadata: z.ZodOptional<z.ZodObject<{
441
+ title: z.ZodOptional<z.ZodString>;
442
+ doc_type: z.ZodOptional<z.ZodString>;
443
+ scope: z.ZodOptional<z.ZodString>;
444
+ status: z.ZodOptional<z.ZodString>;
445
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
446
+ }, z.core.$loose> & {
447
+ is(value: unknown): value is {
448
+ [x: string]: unknown;
449
+ title?: string | undefined;
450
+ doc_type?: string | undefined;
451
+ scope?: string | undefined;
452
+ status?: string | undefined;
453
+ version?: string | number | undefined;
454
+ };
455
+ }>;
456
+ nodes: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$loose>>;
457
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
458
+ from: z.ZodString;
459
+ to: z.ZodString;
460
+ type: z.ZodEnum<{
461
+ refines: "refines";
462
+ realises: "realises";
463
+ implements: "implements";
464
+ depends_on: "depends_on";
465
+ constrained_by: "constrained_by";
466
+ affects: "affects";
467
+ supersedes: "supersedes";
468
+ must_preserve: "must_preserve";
469
+ performs: "performs";
470
+ part_of: "part_of";
471
+ precedes: "precedes";
472
+ must_follow: "must_follow";
473
+ blocks: "blocks";
474
+ routes_to: "routes_to";
475
+ governed_by: "governed_by";
476
+ modifies: "modifies";
477
+ triggered_by: "triggered_by";
478
+ applies_to: "applies_to";
479
+ produces: "produces";
480
+ consumes: "consumes";
481
+ transforms_into: "transforms_into";
482
+ selects: "selects";
483
+ requires: "requires";
484
+ disables: "disables";
485
+ }> & {
486
+ 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";
487
+ };
488
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
489
+ is(value: unknown): value is string | string[];
490
+ }>;
491
+ }, z.core.$loose> & {
492
+ is(value: unknown): value is {
493
+ [x: string]: unknown;
494
+ from: string;
495
+ to: string;
496
+ 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";
497
+ description?: string | string[] | undefined;
498
+ };
499
+ }>>;
500
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
501
+ role: z.ZodEnum<{
502
+ output: "output";
503
+ input: "input";
504
+ context: "context";
505
+ evidence: "evidence";
506
+ source: "source";
507
+ standard: "standard";
508
+ prior_art: "prior_art";
509
+ }> & {
510
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
511
+ };
512
+ identifier: z.ZodString;
513
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
514
+ is(value: unknown): value is string | string[];
515
+ }>;
516
+ node_id: z.ZodOptional<z.ZodString>;
517
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
518
+ is(value: unknown): value is string | string[];
519
+ }>;
520
+ }, z.core.$strip> & {
521
+ is(value: unknown): value is {
522
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
523
+ identifier: string;
524
+ description?: string | string[] | undefined;
525
+ node_id?: string | undefined;
526
+ internalised?: string | string[] | undefined;
527
+ };
528
+ }>>;
529
+ }, z.core.$strip>>;
530
+ }, z.core.$loose> & {
531
+ is(value: unknown): value is {
532
+ [x: string]: unknown;
533
+ id: string;
534
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
535
+ name: string;
536
+ description?: string | string[] | undefined;
537
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
538
+ lifecycle?: Record<string, string | boolean> | undefined;
539
+ context?: string | string[] | undefined;
540
+ options?: {
541
+ [x: string]: unknown;
542
+ id: string;
543
+ description: string | string[];
544
+ }[] | undefined;
545
+ selected?: string | undefined;
546
+ rationale?: string | string[] | undefined;
547
+ scope?: string[] | undefined;
548
+ operations?: {
549
+ [x: string]: unknown;
550
+ type: "link" | "add" | "update" | "remove";
551
+ target?: string | undefined;
552
+ description?: string | string[] | undefined;
553
+ }[] | undefined;
554
+ plan?: {
555
+ [x: string]: unknown;
556
+ description: string | string[];
557
+ done?: boolean | undefined;
558
+ }[] | undefined;
559
+ propagation?: Record<string, boolean> | undefined;
560
+ includes?: string[] | undefined;
561
+ input?: string | undefined;
562
+ output?: string | undefined;
563
+ external_references?: {
564
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
565
+ identifier: string;
566
+ description?: string | string[] | undefined;
567
+ node_id?: string | undefined;
568
+ internalised?: string | string[] | undefined;
569
+ }[] | undefined;
570
+ subsystem?: {
571
+ nodes: /*elided*/ any[];
572
+ $schema?: string | undefined;
573
+ metadata?: {
574
+ [x: string]: unknown;
575
+ title?: string | undefined;
576
+ doc_type?: string | undefined;
577
+ scope?: string | undefined;
578
+ status?: string | undefined;
579
+ version?: string | number | undefined;
580
+ } | undefined;
581
+ relationships?: {
582
+ [x: string]: unknown;
583
+ from: string;
584
+ to: string;
585
+ 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";
586
+ description?: string | string[] | undefined;
587
+ }[] | undefined;
588
+ external_references?: {
589
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
590
+ identifier: string;
591
+ description?: string | string[] | undefined;
592
+ node_id?: string | undefined;
593
+ internalised?: string | string[] | undefined;
594
+ }[] | undefined;
595
+ } | undefined;
596
+ };
597
+ }>;
598
+ children: z.ZodArray<typeof TraceNodeSchema>;
599
+ }, z.core.$strip>;
600
+ export type TraceNode = z.infer<typeof TraceNodeSchema>;
601
+ export declare const traceFromNodeOp: import("./define-operation.js").DefinedOperation<z.ZodObject<{
602
+ doc: z.ZodObject<{
603
+ $schema: z.ZodOptional<z.ZodString>;
604
+ metadata: z.ZodOptional<z.ZodObject<{
605
+ title: z.ZodOptional<z.ZodString>;
606
+ doc_type: z.ZodOptional<z.ZodString>;
607
+ scope: z.ZodOptional<z.ZodString>;
608
+ status: z.ZodOptional<z.ZodString>;
609
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
610
+ }, z.core.$loose> & {
611
+ is(value: unknown): value is {
612
+ [x: string]: unknown;
613
+ title?: string | undefined;
614
+ doc_type?: string | undefined;
615
+ scope?: string | undefined;
616
+ status?: string | undefined;
617
+ version?: string | number | undefined;
618
+ };
619
+ }>;
620
+ nodes: z.ZodArray<z.ZodObject<{
621
+ id: z.ZodString;
622
+ type: z.ZodEnum<{
623
+ intent: "intent";
624
+ concept: "concept";
625
+ capability: "capability";
626
+ element: "element";
627
+ realisation: "realisation";
628
+ invariant: "invariant";
629
+ principle: "principle";
630
+ policy: "policy";
631
+ protocol: "protocol";
632
+ stage: "stage";
633
+ role: "role";
634
+ gate: "gate";
635
+ mode: "mode";
636
+ artefact: "artefact";
637
+ artefact_flow: "artefact_flow";
638
+ decision: "decision";
639
+ change: "change";
640
+ view: "view";
641
+ milestone: "milestone";
642
+ version: "version";
643
+ }> & {
644
+ 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";
645
+ };
646
+ name: z.ZodString;
647
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
648
+ is(value: unknown): value is string | string[];
649
+ }>;
650
+ status: z.ZodOptional<z.ZodEnum<{
651
+ deprecated: "deprecated";
652
+ proposed: "proposed";
653
+ accepted: "accepted";
654
+ active: "active";
655
+ implemented: "implemented";
656
+ adopted: "adopted";
657
+ defined: "defined";
658
+ introduced: "introduced";
659
+ in_progress: "in_progress";
660
+ complete: "complete";
661
+ consolidated: "consolidated";
662
+ experimental: "experimental";
663
+ retired: "retired";
664
+ superseded: "superseded";
665
+ abandoned: "abandoned";
666
+ deferred: "deferred";
667
+ }> & {
668
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
669
+ }>;
670
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
671
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
672
+ is(value: unknown): value is string | string[];
673
+ }>;
674
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
675
+ id: z.ZodString;
676
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
677
+ is(value: unknown): value is string | string[];
678
+ };
679
+ }, z.core.$loose> & {
680
+ is(value: unknown): value is {
681
+ [x: string]: unknown;
682
+ id: string;
683
+ description: string | string[];
684
+ };
685
+ }>>;
686
+ selected: z.ZodOptional<z.ZodString>;
687
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
688
+ is(value: unknown): value is string | string[];
689
+ }>;
690
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
691
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
692
+ type: z.ZodEnum<{
693
+ link: "link";
694
+ add: "add";
695
+ update: "update";
696
+ remove: "remove";
697
+ }>;
698
+ target: z.ZodOptional<z.ZodString>;
699
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
700
+ is(value: unknown): value is string | string[];
701
+ }>;
702
+ }, z.core.$loose> & {
703
+ is(value: unknown): value is {
704
+ [x: string]: unknown;
705
+ type: "link" | "add" | "update" | "remove";
706
+ target?: string | undefined;
707
+ description?: string | string[] | undefined;
708
+ };
709
+ }>>;
710
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
711
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
712
+ is(value: unknown): value is string | string[];
713
+ };
714
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
715
+ }, z.core.$loose> & {
716
+ is(value: unknown): value is {
717
+ [x: string]: unknown;
718
+ description: string | string[];
719
+ done?: boolean | undefined;
720
+ };
721
+ }>>;
722
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
723
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
724
+ input: z.ZodOptional<z.ZodString>;
725
+ output: z.ZodOptional<z.ZodString>;
726
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
727
+ role: z.ZodEnum<{
728
+ output: "output";
729
+ input: "input";
730
+ context: "context";
731
+ evidence: "evidence";
732
+ source: "source";
733
+ standard: "standard";
734
+ prior_art: "prior_art";
735
+ }> & {
736
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
737
+ };
738
+ identifier: z.ZodString;
739
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
740
+ is(value: unknown): value is string | string[];
741
+ }>;
742
+ node_id: z.ZodOptional<z.ZodString>;
743
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
744
+ is(value: unknown): value is string | string[];
745
+ }>;
746
+ }, z.core.$strip> & {
747
+ is(value: unknown): value is {
748
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
749
+ identifier: string;
750
+ description?: string | string[] | undefined;
751
+ node_id?: string | undefined;
752
+ internalised?: string | string[] | undefined;
753
+ };
754
+ }>>;
755
+ readonly subsystem: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>;
756
+ }, z.core.$loose>>;
757
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
758
+ from: z.ZodString;
759
+ to: z.ZodString;
760
+ type: z.ZodEnum<{
761
+ refines: "refines";
762
+ realises: "realises";
763
+ implements: "implements";
764
+ depends_on: "depends_on";
765
+ constrained_by: "constrained_by";
766
+ affects: "affects";
767
+ supersedes: "supersedes";
768
+ must_preserve: "must_preserve";
769
+ performs: "performs";
770
+ part_of: "part_of";
771
+ precedes: "precedes";
772
+ must_follow: "must_follow";
773
+ blocks: "blocks";
774
+ routes_to: "routes_to";
775
+ governed_by: "governed_by";
776
+ modifies: "modifies";
777
+ triggered_by: "triggered_by";
778
+ applies_to: "applies_to";
779
+ produces: "produces";
780
+ consumes: "consumes";
781
+ transforms_into: "transforms_into";
782
+ selects: "selects";
783
+ requires: "requires";
784
+ disables: "disables";
785
+ }> & {
786
+ 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";
787
+ };
788
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
789
+ is(value: unknown): value is string | string[];
790
+ }>;
791
+ }, z.core.$loose> & {
792
+ is(value: unknown): value is {
793
+ [x: string]: unknown;
794
+ from: string;
795
+ to: string;
796
+ 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";
797
+ description?: string | string[] | undefined;
798
+ };
799
+ }>>;
800
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
801
+ role: z.ZodEnum<{
802
+ output: "output";
803
+ input: "input";
804
+ context: "context";
805
+ evidence: "evidence";
806
+ source: "source";
807
+ standard: "standard";
808
+ prior_art: "prior_art";
809
+ }> & {
810
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
811
+ };
812
+ identifier: z.ZodString;
813
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
814
+ is(value: unknown): value is string | string[];
815
+ }>;
816
+ node_id: z.ZodOptional<z.ZodString>;
817
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
818
+ is(value: unknown): value is string | string[];
819
+ }>;
820
+ }, z.core.$strip> & {
821
+ is(value: unknown): value is {
822
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
823
+ identifier: string;
824
+ description?: string | string[] | undefined;
825
+ node_id?: string | undefined;
826
+ internalised?: string | string[] | undefined;
827
+ };
828
+ }>>;
829
+ }, z.core.$strip> & {
830
+ is(value: unknown): value is {
831
+ nodes: {
832
+ [x: string]: unknown;
833
+ id: string;
834
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
835
+ name: string;
836
+ description?: string | string[] | undefined;
837
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
838
+ lifecycle?: Record<string, string | boolean> | undefined;
839
+ context?: string | string[] | undefined;
840
+ options?: {
841
+ [x: string]: unknown;
842
+ id: string;
843
+ description: string | string[];
844
+ }[] | undefined;
845
+ selected?: string | undefined;
846
+ rationale?: string | string[] | undefined;
847
+ scope?: string[] | undefined;
848
+ operations?: {
849
+ [x: string]: unknown;
850
+ type: "link" | "add" | "update" | "remove";
851
+ target?: string | undefined;
852
+ description?: string | string[] | undefined;
853
+ }[] | undefined;
854
+ plan?: {
855
+ [x: string]: unknown;
856
+ description: string | string[];
857
+ done?: boolean | undefined;
858
+ }[] | undefined;
859
+ propagation?: Record<string, boolean> | undefined;
860
+ includes?: string[] | undefined;
861
+ input?: string | undefined;
862
+ output?: string | undefined;
863
+ external_references?: {
864
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
865
+ identifier: string;
866
+ description?: string | string[] | undefined;
867
+ node_id?: string | undefined;
868
+ internalised?: string | string[] | undefined;
869
+ }[] | undefined;
870
+ subsystem?: /*elided*/ any | undefined;
871
+ }[];
872
+ $schema?: string | undefined;
873
+ metadata?: {
874
+ [x: string]: unknown;
875
+ title?: string | undefined;
876
+ doc_type?: string | undefined;
877
+ scope?: string | undefined;
878
+ status?: string | undefined;
879
+ version?: string | number | undefined;
880
+ } | undefined;
881
+ relationships?: {
882
+ [x: string]: unknown;
883
+ from: string;
884
+ to: string;
885
+ 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";
886
+ description?: string | string[] | undefined;
887
+ }[] | undefined;
888
+ external_references?: {
889
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
890
+ identifier: string;
891
+ description?: string | string[] | undefined;
892
+ node_id?: string | undefined;
893
+ internalised?: string | string[] | undefined;
894
+ }[] | undefined;
895
+ };
896
+ };
897
+ startId: z.ZodString;
898
+ }, z.core.$strip>, z.ZodObject<{
899
+ id: z.ZodString;
900
+ node: z.ZodOptional<z.ZodObject<{
901
+ id: z.ZodString;
902
+ type: z.ZodEnum<{
903
+ intent: "intent";
904
+ concept: "concept";
905
+ capability: "capability";
906
+ element: "element";
907
+ realisation: "realisation";
908
+ invariant: "invariant";
909
+ principle: "principle";
910
+ policy: "policy";
911
+ protocol: "protocol";
912
+ stage: "stage";
913
+ role: "role";
914
+ gate: "gate";
915
+ mode: "mode";
916
+ artefact: "artefact";
917
+ artefact_flow: "artefact_flow";
918
+ decision: "decision";
919
+ change: "change";
920
+ view: "view";
921
+ milestone: "milestone";
922
+ version: "version";
923
+ }> & {
924
+ 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";
925
+ };
926
+ name: z.ZodString;
927
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
928
+ is(value: unknown): value is string | string[];
929
+ }>;
930
+ status: z.ZodOptional<z.ZodEnum<{
931
+ deprecated: "deprecated";
932
+ proposed: "proposed";
933
+ accepted: "accepted";
934
+ active: "active";
935
+ implemented: "implemented";
936
+ adopted: "adopted";
937
+ defined: "defined";
938
+ introduced: "introduced";
939
+ in_progress: "in_progress";
940
+ complete: "complete";
941
+ consolidated: "consolidated";
942
+ experimental: "experimental";
943
+ retired: "retired";
944
+ superseded: "superseded";
945
+ abandoned: "abandoned";
946
+ deferred: "deferred";
947
+ }> & {
948
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
949
+ }>;
950
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
951
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
952
+ is(value: unknown): value is string | string[];
953
+ }>;
954
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
955
+ id: z.ZodString;
956
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
957
+ is(value: unknown): value is string | string[];
958
+ };
959
+ }, z.core.$loose> & {
960
+ is(value: unknown): value is {
961
+ [x: string]: unknown;
962
+ id: string;
963
+ description: string | string[];
964
+ };
965
+ }>>;
966
+ selected: z.ZodOptional<z.ZodString>;
967
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
968
+ is(value: unknown): value is string | string[];
969
+ }>;
970
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
971
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
972
+ type: z.ZodEnum<{
973
+ link: "link";
974
+ add: "add";
975
+ update: "update";
976
+ remove: "remove";
977
+ }>;
978
+ target: z.ZodOptional<z.ZodString>;
979
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
980
+ is(value: unknown): value is string | string[];
981
+ }>;
982
+ }, z.core.$loose> & {
983
+ is(value: unknown): value is {
984
+ [x: string]: unknown;
985
+ type: "link" | "add" | "update" | "remove";
986
+ target?: string | undefined;
987
+ description?: string | string[] | undefined;
988
+ };
989
+ }>>;
990
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
991
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
992
+ is(value: unknown): value is string | string[];
993
+ };
994
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
995
+ }, z.core.$loose> & {
996
+ is(value: unknown): value is {
997
+ [x: string]: unknown;
998
+ description: string | string[];
999
+ done?: boolean | undefined;
1000
+ };
1001
+ }>>;
1002
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1003
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1004
+ input: z.ZodOptional<z.ZodString>;
1005
+ output: z.ZodOptional<z.ZodString>;
1006
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1007
+ role: z.ZodEnum<{
1008
+ output: "output";
1009
+ input: "input";
1010
+ context: "context";
1011
+ evidence: "evidence";
1012
+ source: "source";
1013
+ standard: "standard";
1014
+ prior_art: "prior_art";
1015
+ }> & {
1016
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1017
+ };
1018
+ identifier: z.ZodString;
1019
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1020
+ is(value: unknown): value is string | string[];
1021
+ }>;
1022
+ node_id: z.ZodOptional<z.ZodString>;
1023
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1024
+ is(value: unknown): value is string | string[];
1025
+ }>;
1026
+ }, z.core.$strip> & {
1027
+ is(value: unknown): value is {
1028
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1029
+ identifier: string;
1030
+ description?: string | string[] | undefined;
1031
+ node_id?: string | undefined;
1032
+ internalised?: string | string[] | undefined;
1033
+ };
1034
+ }>>;
1035
+ readonly subsystem: z.ZodOptional<z.ZodObject<{
1036
+ $schema: z.ZodOptional<z.ZodString>;
1037
+ metadata: z.ZodOptional<z.ZodObject<{
1038
+ title: z.ZodOptional<z.ZodString>;
1039
+ doc_type: z.ZodOptional<z.ZodString>;
1040
+ scope: z.ZodOptional<z.ZodString>;
1041
+ status: z.ZodOptional<z.ZodString>;
1042
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1043
+ }, z.core.$loose> & {
1044
+ is(value: unknown): value is {
1045
+ [x: string]: unknown;
1046
+ title?: string | undefined;
1047
+ doc_type?: string | undefined;
1048
+ scope?: string | undefined;
1049
+ status?: string | undefined;
1050
+ version?: string | number | undefined;
1051
+ };
1052
+ }>;
1053
+ nodes: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$loose>>;
1054
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
1055
+ from: z.ZodString;
1056
+ to: z.ZodString;
1057
+ type: z.ZodEnum<{
1058
+ refines: "refines";
1059
+ realises: "realises";
1060
+ implements: "implements";
1061
+ depends_on: "depends_on";
1062
+ constrained_by: "constrained_by";
1063
+ affects: "affects";
1064
+ supersedes: "supersedes";
1065
+ must_preserve: "must_preserve";
1066
+ performs: "performs";
1067
+ part_of: "part_of";
1068
+ precedes: "precedes";
1069
+ must_follow: "must_follow";
1070
+ blocks: "blocks";
1071
+ routes_to: "routes_to";
1072
+ governed_by: "governed_by";
1073
+ modifies: "modifies";
1074
+ triggered_by: "triggered_by";
1075
+ applies_to: "applies_to";
1076
+ produces: "produces";
1077
+ consumes: "consumes";
1078
+ transforms_into: "transforms_into";
1079
+ selects: "selects";
1080
+ requires: "requires";
1081
+ disables: "disables";
1082
+ }> & {
1083
+ 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";
1084
+ };
1085
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1086
+ is(value: unknown): value is string | string[];
1087
+ }>;
1088
+ }, z.core.$loose> & {
1089
+ is(value: unknown): value is {
1090
+ [x: string]: unknown;
1091
+ from: string;
1092
+ to: string;
1093
+ 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";
1094
+ description?: string | string[] | undefined;
1095
+ };
1096
+ }>>;
1097
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1098
+ role: z.ZodEnum<{
1099
+ output: "output";
1100
+ input: "input";
1101
+ context: "context";
1102
+ evidence: "evidence";
1103
+ source: "source";
1104
+ standard: "standard";
1105
+ prior_art: "prior_art";
1106
+ }> & {
1107
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1108
+ };
1109
+ identifier: z.ZodString;
1110
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1111
+ is(value: unknown): value is string | string[];
1112
+ }>;
1113
+ node_id: z.ZodOptional<z.ZodString>;
1114
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1115
+ is(value: unknown): value is string | string[];
1116
+ }>;
1117
+ }, z.core.$strip> & {
1118
+ is(value: unknown): value is {
1119
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1120
+ identifier: string;
1121
+ description?: string | string[] | undefined;
1122
+ node_id?: string | undefined;
1123
+ internalised?: string | string[] | undefined;
1124
+ };
1125
+ }>>;
1126
+ }, z.core.$strip>>;
1127
+ }, z.core.$loose> & {
1128
+ is(value: unknown): value is {
1129
+ [x: string]: unknown;
1130
+ id: string;
1131
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
1132
+ name: string;
1133
+ description?: string | string[] | undefined;
1134
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
1135
+ lifecycle?: Record<string, string | boolean> | undefined;
1136
+ context?: string | string[] | undefined;
1137
+ options?: {
1138
+ [x: string]: unknown;
1139
+ id: string;
1140
+ description: string | string[];
1141
+ }[] | undefined;
1142
+ selected?: string | undefined;
1143
+ rationale?: string | string[] | undefined;
1144
+ scope?: string[] | undefined;
1145
+ operations?: {
1146
+ [x: string]: unknown;
1147
+ type: "link" | "add" | "update" | "remove";
1148
+ target?: string | undefined;
1149
+ description?: string | string[] | undefined;
1150
+ }[] | undefined;
1151
+ plan?: {
1152
+ [x: string]: unknown;
1153
+ description: string | string[];
1154
+ done?: boolean | undefined;
1155
+ }[] | undefined;
1156
+ propagation?: Record<string, boolean> | undefined;
1157
+ includes?: string[] | undefined;
1158
+ input?: string | undefined;
1159
+ output?: string | undefined;
1160
+ external_references?: {
1161
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1162
+ identifier: string;
1163
+ description?: string | string[] | undefined;
1164
+ node_id?: string | undefined;
1165
+ internalised?: string | string[] | undefined;
1166
+ }[] | undefined;
1167
+ subsystem?: {
1168
+ nodes: /*elided*/ any[];
1169
+ $schema?: string | undefined;
1170
+ metadata?: {
1171
+ [x: string]: unknown;
1172
+ title?: string | undefined;
1173
+ doc_type?: string | undefined;
1174
+ scope?: string | undefined;
1175
+ status?: string | undefined;
1176
+ version?: string | number | undefined;
1177
+ } | undefined;
1178
+ relationships?: {
1179
+ [x: string]: unknown;
1180
+ from: string;
1181
+ to: string;
1182
+ 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";
1183
+ description?: string | string[] | undefined;
1184
+ }[] | undefined;
1185
+ external_references?: {
1186
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
1187
+ identifier: string;
1188
+ description?: string | string[] | undefined;
1189
+ node_id?: string | undefined;
1190
+ internalised?: string | string[] | undefined;
1191
+ }[] | undefined;
1192
+ } | undefined;
1193
+ };
1194
+ }>;
1195
+ children: z.ZodArray<typeof TraceNodeSchema>;
1196
+ }, z.core.$strip>>;
1197
+ export {};