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,900 @@
1
+ import * as z from "zod";
2
+ export type SyncResult = z.infer<typeof SyncResult>;
3
+ export declare const SyncResult: z.ZodObject<{
4
+ doc: z.ZodObject<{
5
+ $schema: z.ZodOptional<z.ZodString>;
6
+ metadata: z.ZodOptional<z.ZodObject<{
7
+ title: z.ZodOptional<z.ZodString>;
8
+ doc_type: z.ZodOptional<z.ZodString>;
9
+ scope: z.ZodOptional<z.ZodString>;
10
+ status: z.ZodOptional<z.ZodString>;
11
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
12
+ }, z.core.$loose> & {
13
+ is(value: unknown): value is {
14
+ [x: string]: unknown;
15
+ title?: string | undefined;
16
+ doc_type?: string | undefined;
17
+ scope?: string | undefined;
18
+ status?: string | undefined;
19
+ version?: string | number | undefined;
20
+ };
21
+ }>;
22
+ nodes: z.ZodArray<z.ZodObject<{
23
+ id: z.ZodString;
24
+ type: z.ZodEnum<{
25
+ intent: "intent";
26
+ concept: "concept";
27
+ capability: "capability";
28
+ element: "element";
29
+ realisation: "realisation";
30
+ invariant: "invariant";
31
+ principle: "principle";
32
+ policy: "policy";
33
+ protocol: "protocol";
34
+ stage: "stage";
35
+ role: "role";
36
+ gate: "gate";
37
+ mode: "mode";
38
+ artefact: "artefact";
39
+ artefact_flow: "artefact_flow";
40
+ decision: "decision";
41
+ change: "change";
42
+ view: "view";
43
+ milestone: "milestone";
44
+ version: "version";
45
+ }> & {
46
+ 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";
47
+ };
48
+ name: z.ZodString;
49
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
50
+ is(value: unknown): value is string | string[];
51
+ }>;
52
+ status: z.ZodOptional<z.ZodEnum<{
53
+ deprecated: "deprecated";
54
+ proposed: "proposed";
55
+ accepted: "accepted";
56
+ active: "active";
57
+ implemented: "implemented";
58
+ adopted: "adopted";
59
+ defined: "defined";
60
+ introduced: "introduced";
61
+ in_progress: "in_progress";
62
+ complete: "complete";
63
+ consolidated: "consolidated";
64
+ experimental: "experimental";
65
+ retired: "retired";
66
+ superseded: "superseded";
67
+ abandoned: "abandoned";
68
+ deferred: "deferred";
69
+ }> & {
70
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
71
+ }>;
72
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
73
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
74
+ is(value: unknown): value is string | string[];
75
+ }>;
76
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
+ id: z.ZodString;
78
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
79
+ is(value: unknown): value is string | string[];
80
+ };
81
+ }, z.core.$loose> & {
82
+ is(value: unknown): value is {
83
+ [x: string]: unknown;
84
+ id: string;
85
+ description: string | string[];
86
+ };
87
+ }>>;
88
+ selected: z.ZodOptional<z.ZodString>;
89
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
90
+ is(value: unknown): value is string | string[];
91
+ }>;
92
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
93
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
94
+ type: z.ZodEnum<{
95
+ link: "link";
96
+ add: "add";
97
+ update: "update";
98
+ remove: "remove";
99
+ }>;
100
+ target: z.ZodOptional<z.ZodString>;
101
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
102
+ is(value: unknown): value is string | string[];
103
+ }>;
104
+ }, z.core.$loose> & {
105
+ is(value: unknown): value is {
106
+ [x: string]: unknown;
107
+ type: "link" | "add" | "update" | "remove";
108
+ target?: string | undefined;
109
+ description?: string | string[] | undefined;
110
+ };
111
+ }>>;
112
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
113
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
114
+ is(value: unknown): value is string | string[];
115
+ };
116
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
117
+ }, z.core.$loose> & {
118
+ is(value: unknown): value is {
119
+ [x: string]: unknown;
120
+ description: string | string[];
121
+ done?: boolean | undefined;
122
+ };
123
+ }>>;
124
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
125
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
126
+ input: z.ZodOptional<z.ZodString>;
127
+ output: z.ZodOptional<z.ZodString>;
128
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
129
+ role: z.ZodEnum<{
130
+ output: "output";
131
+ input: "input";
132
+ context: "context";
133
+ evidence: "evidence";
134
+ source: "source";
135
+ standard: "standard";
136
+ prior_art: "prior_art";
137
+ }> & {
138
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
139
+ };
140
+ identifier: z.ZodString;
141
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
142
+ is(value: unknown): value is string | string[];
143
+ }>;
144
+ node_id: z.ZodOptional<z.ZodString>;
145
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
146
+ is(value: unknown): value is string | string[];
147
+ }>;
148
+ }, z.core.$strip> & {
149
+ is(value: unknown): value is {
150
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
151
+ identifier: string;
152
+ description?: string | string[] | undefined;
153
+ node_id?: string | undefined;
154
+ internalised?: string | string[] | undefined;
155
+ };
156
+ }>>;
157
+ readonly subsystem: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>;
158
+ }, z.core.$loose>>;
159
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
160
+ from: z.ZodString;
161
+ to: z.ZodString;
162
+ type: z.ZodEnum<{
163
+ refines: "refines";
164
+ realises: "realises";
165
+ implements: "implements";
166
+ depends_on: "depends_on";
167
+ constrained_by: "constrained_by";
168
+ affects: "affects";
169
+ supersedes: "supersedes";
170
+ must_preserve: "must_preserve";
171
+ performs: "performs";
172
+ part_of: "part_of";
173
+ precedes: "precedes";
174
+ must_follow: "must_follow";
175
+ blocks: "blocks";
176
+ routes_to: "routes_to";
177
+ governed_by: "governed_by";
178
+ modifies: "modifies";
179
+ triggered_by: "triggered_by";
180
+ applies_to: "applies_to";
181
+ produces: "produces";
182
+ consumes: "consumes";
183
+ transforms_into: "transforms_into";
184
+ selects: "selects";
185
+ requires: "requires";
186
+ disables: "disables";
187
+ }> & {
188
+ 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";
189
+ };
190
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
191
+ is(value: unknown): value is string | string[];
192
+ }>;
193
+ }, z.core.$loose> & {
194
+ is(value: unknown): value is {
195
+ [x: string]: unknown;
196
+ from: string;
197
+ to: string;
198
+ 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";
199
+ description?: string | string[] | undefined;
200
+ };
201
+ }>>;
202
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
203
+ role: z.ZodEnum<{
204
+ output: "output";
205
+ input: "input";
206
+ context: "context";
207
+ evidence: "evidence";
208
+ source: "source";
209
+ standard: "standard";
210
+ prior_art: "prior_art";
211
+ }> & {
212
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
213
+ };
214
+ identifier: z.ZodString;
215
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
216
+ is(value: unknown): value is string | string[];
217
+ }>;
218
+ node_id: z.ZodOptional<z.ZodString>;
219
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
220
+ is(value: unknown): value is string | string[];
221
+ }>;
222
+ }, z.core.$strip> & {
223
+ is(value: unknown): value is {
224
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
225
+ identifier: string;
226
+ description?: string | string[] | undefined;
227
+ node_id?: string | undefined;
228
+ internalised?: string | string[] | undefined;
229
+ };
230
+ }>>;
231
+ }, z.core.$strip> & {
232
+ is(value: unknown): value is {
233
+ nodes: {
234
+ [x: string]: unknown;
235
+ id: string;
236
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
237
+ name: string;
238
+ description?: string | string[] | undefined;
239
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
240
+ lifecycle?: Record<string, string | boolean> | undefined;
241
+ context?: string | string[] | undefined;
242
+ options?: {
243
+ [x: string]: unknown;
244
+ id: string;
245
+ description: string | string[];
246
+ }[] | undefined;
247
+ selected?: string | undefined;
248
+ rationale?: string | string[] | undefined;
249
+ scope?: string[] | undefined;
250
+ operations?: {
251
+ [x: string]: unknown;
252
+ type: "link" | "add" | "update" | "remove";
253
+ target?: string | undefined;
254
+ description?: string | string[] | undefined;
255
+ }[] | undefined;
256
+ plan?: {
257
+ [x: string]: unknown;
258
+ description: string | string[];
259
+ done?: boolean | undefined;
260
+ }[] | undefined;
261
+ propagation?: Record<string, boolean> | undefined;
262
+ includes?: string[] | undefined;
263
+ input?: string | undefined;
264
+ output?: string | undefined;
265
+ external_references?: {
266
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
267
+ identifier: string;
268
+ description?: string | string[] | undefined;
269
+ node_id?: string | undefined;
270
+ internalised?: string | string[] | undefined;
271
+ }[] | undefined;
272
+ subsystem?: /*elided*/ any | undefined;
273
+ }[];
274
+ $schema?: string | undefined;
275
+ metadata?: {
276
+ [x: string]: unknown;
277
+ title?: string | undefined;
278
+ doc_type?: string | undefined;
279
+ scope?: string | undefined;
280
+ status?: string | undefined;
281
+ version?: string | number | undefined;
282
+ } | undefined;
283
+ relationships?: {
284
+ [x: string]: unknown;
285
+ from: string;
286
+ to: string;
287
+ 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";
288
+ description?: string | string[] | undefined;
289
+ }[] | undefined;
290
+ external_references?: {
291
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
292
+ identifier: string;
293
+ description?: string | string[] | undefined;
294
+ node_id?: string | undefined;
295
+ internalised?: string | string[] | undefined;
296
+ }[] | undefined;
297
+ };
298
+ };
299
+ added: z.ZodNumber;
300
+ modified: z.ZodNumber;
301
+ removed: z.ZodNumber;
302
+ }, z.core.$strip>;
303
+ export declare const speckitSyncOp: import("./define-operation.js").DefinedOperation<z.ZodObject<{
304
+ doc: z.ZodObject<{
305
+ $schema: z.ZodOptional<z.ZodString>;
306
+ metadata: z.ZodOptional<z.ZodObject<{
307
+ title: z.ZodOptional<z.ZodString>;
308
+ doc_type: z.ZodOptional<z.ZodString>;
309
+ scope: z.ZodOptional<z.ZodString>;
310
+ status: z.ZodOptional<z.ZodString>;
311
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
312
+ }, z.core.$loose> & {
313
+ is(value: unknown): value is {
314
+ [x: string]: unknown;
315
+ title?: string | undefined;
316
+ doc_type?: string | undefined;
317
+ scope?: string | undefined;
318
+ status?: string | undefined;
319
+ version?: string | number | undefined;
320
+ };
321
+ }>;
322
+ nodes: z.ZodArray<z.ZodObject<{
323
+ id: z.ZodString;
324
+ type: z.ZodEnum<{
325
+ intent: "intent";
326
+ concept: "concept";
327
+ capability: "capability";
328
+ element: "element";
329
+ realisation: "realisation";
330
+ invariant: "invariant";
331
+ principle: "principle";
332
+ policy: "policy";
333
+ protocol: "protocol";
334
+ stage: "stage";
335
+ role: "role";
336
+ gate: "gate";
337
+ mode: "mode";
338
+ artefact: "artefact";
339
+ artefact_flow: "artefact_flow";
340
+ decision: "decision";
341
+ change: "change";
342
+ view: "view";
343
+ milestone: "milestone";
344
+ version: "version";
345
+ }> & {
346
+ 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";
347
+ };
348
+ name: z.ZodString;
349
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
350
+ is(value: unknown): value is string | string[];
351
+ }>;
352
+ status: z.ZodOptional<z.ZodEnum<{
353
+ deprecated: "deprecated";
354
+ proposed: "proposed";
355
+ accepted: "accepted";
356
+ active: "active";
357
+ implemented: "implemented";
358
+ adopted: "adopted";
359
+ defined: "defined";
360
+ introduced: "introduced";
361
+ in_progress: "in_progress";
362
+ complete: "complete";
363
+ consolidated: "consolidated";
364
+ experimental: "experimental";
365
+ retired: "retired";
366
+ superseded: "superseded";
367
+ abandoned: "abandoned";
368
+ deferred: "deferred";
369
+ }> & {
370
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
371
+ }>;
372
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
373
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
374
+ is(value: unknown): value is string | string[];
375
+ }>;
376
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
377
+ id: z.ZodString;
378
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
379
+ is(value: unknown): value is string | string[];
380
+ };
381
+ }, z.core.$loose> & {
382
+ is(value: unknown): value is {
383
+ [x: string]: unknown;
384
+ id: string;
385
+ description: string | string[];
386
+ };
387
+ }>>;
388
+ selected: z.ZodOptional<z.ZodString>;
389
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
390
+ is(value: unknown): value is string | string[];
391
+ }>;
392
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
393
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
394
+ type: z.ZodEnum<{
395
+ link: "link";
396
+ add: "add";
397
+ update: "update";
398
+ remove: "remove";
399
+ }>;
400
+ target: z.ZodOptional<z.ZodString>;
401
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
402
+ is(value: unknown): value is string | string[];
403
+ }>;
404
+ }, z.core.$loose> & {
405
+ is(value: unknown): value is {
406
+ [x: string]: unknown;
407
+ type: "link" | "add" | "update" | "remove";
408
+ target?: string | undefined;
409
+ description?: string | string[] | undefined;
410
+ };
411
+ }>>;
412
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
413
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
414
+ is(value: unknown): value is string | string[];
415
+ };
416
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
417
+ }, z.core.$loose> & {
418
+ is(value: unknown): value is {
419
+ [x: string]: unknown;
420
+ description: string | string[];
421
+ done?: boolean | undefined;
422
+ };
423
+ }>>;
424
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
425
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
426
+ input: z.ZodOptional<z.ZodString>;
427
+ output: z.ZodOptional<z.ZodString>;
428
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
429
+ role: z.ZodEnum<{
430
+ output: "output";
431
+ input: "input";
432
+ context: "context";
433
+ evidence: "evidence";
434
+ source: "source";
435
+ standard: "standard";
436
+ prior_art: "prior_art";
437
+ }> & {
438
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
439
+ };
440
+ identifier: z.ZodString;
441
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
442
+ is(value: unknown): value is string | string[];
443
+ }>;
444
+ node_id: z.ZodOptional<z.ZodString>;
445
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
446
+ is(value: unknown): value is string | string[];
447
+ }>;
448
+ }, z.core.$strip> & {
449
+ is(value: unknown): value is {
450
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
451
+ identifier: string;
452
+ description?: string | string[] | undefined;
453
+ node_id?: string | undefined;
454
+ internalised?: string | string[] | undefined;
455
+ };
456
+ }>>;
457
+ readonly subsystem: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>;
458
+ }, z.core.$loose>>;
459
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
460
+ from: z.ZodString;
461
+ to: z.ZodString;
462
+ type: z.ZodEnum<{
463
+ refines: "refines";
464
+ realises: "realises";
465
+ implements: "implements";
466
+ depends_on: "depends_on";
467
+ constrained_by: "constrained_by";
468
+ affects: "affects";
469
+ supersedes: "supersedes";
470
+ must_preserve: "must_preserve";
471
+ performs: "performs";
472
+ part_of: "part_of";
473
+ precedes: "precedes";
474
+ must_follow: "must_follow";
475
+ blocks: "blocks";
476
+ routes_to: "routes_to";
477
+ governed_by: "governed_by";
478
+ modifies: "modifies";
479
+ triggered_by: "triggered_by";
480
+ applies_to: "applies_to";
481
+ produces: "produces";
482
+ consumes: "consumes";
483
+ transforms_into: "transforms_into";
484
+ selects: "selects";
485
+ requires: "requires";
486
+ disables: "disables";
487
+ }> & {
488
+ 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";
489
+ };
490
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
491
+ is(value: unknown): value is string | string[];
492
+ }>;
493
+ }, z.core.$loose> & {
494
+ is(value: unknown): value is {
495
+ [x: string]: unknown;
496
+ from: string;
497
+ to: string;
498
+ 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";
499
+ description?: string | string[] | undefined;
500
+ };
501
+ }>>;
502
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
503
+ role: z.ZodEnum<{
504
+ output: "output";
505
+ input: "input";
506
+ context: "context";
507
+ evidence: "evidence";
508
+ source: "source";
509
+ standard: "standard";
510
+ prior_art: "prior_art";
511
+ }> & {
512
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
513
+ };
514
+ identifier: z.ZodString;
515
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
516
+ is(value: unknown): value is string | string[];
517
+ }>;
518
+ node_id: z.ZodOptional<z.ZodString>;
519
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
520
+ is(value: unknown): value is string | string[];
521
+ }>;
522
+ }, z.core.$strip> & {
523
+ is(value: unknown): value is {
524
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
525
+ identifier: string;
526
+ description?: string | string[] | undefined;
527
+ node_id?: string | undefined;
528
+ internalised?: string | string[] | undefined;
529
+ };
530
+ }>>;
531
+ }, z.core.$strip> & {
532
+ is(value: unknown): value is {
533
+ nodes: {
534
+ [x: string]: unknown;
535
+ id: string;
536
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
537
+ name: string;
538
+ description?: string | string[] | undefined;
539
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
540
+ lifecycle?: Record<string, string | boolean> | undefined;
541
+ context?: string | string[] | undefined;
542
+ options?: {
543
+ [x: string]: unknown;
544
+ id: string;
545
+ description: string | string[];
546
+ }[] | undefined;
547
+ selected?: string | undefined;
548
+ rationale?: string | string[] | undefined;
549
+ scope?: string[] | undefined;
550
+ operations?: {
551
+ [x: string]: unknown;
552
+ type: "link" | "add" | "update" | "remove";
553
+ target?: string | undefined;
554
+ description?: string | string[] | undefined;
555
+ }[] | undefined;
556
+ plan?: {
557
+ [x: string]: unknown;
558
+ description: string | string[];
559
+ done?: boolean | undefined;
560
+ }[] | undefined;
561
+ propagation?: Record<string, boolean> | undefined;
562
+ includes?: string[] | undefined;
563
+ input?: string | undefined;
564
+ output?: string | undefined;
565
+ external_references?: {
566
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
567
+ identifier: string;
568
+ description?: string | string[] | undefined;
569
+ node_id?: string | undefined;
570
+ internalised?: string | string[] | undefined;
571
+ }[] | undefined;
572
+ subsystem?: /*elided*/ any | undefined;
573
+ }[];
574
+ $schema?: string | undefined;
575
+ metadata?: {
576
+ [x: string]: unknown;
577
+ title?: string | undefined;
578
+ doc_type?: string | undefined;
579
+ scope?: string | undefined;
580
+ status?: string | undefined;
581
+ version?: string | number | undefined;
582
+ } | undefined;
583
+ relationships?: {
584
+ [x: string]: unknown;
585
+ from: string;
586
+ to: string;
587
+ 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";
588
+ description?: string | string[] | undefined;
589
+ }[] | undefined;
590
+ external_references?: {
591
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
592
+ identifier: string;
593
+ description?: string | string[] | undefined;
594
+ node_id?: string | undefined;
595
+ internalised?: string | string[] | undefined;
596
+ }[] | undefined;
597
+ };
598
+ };
599
+ speckitDir: z.ZodString;
600
+ prefix: z.ZodOptional<z.ZodString>;
601
+ }, z.core.$strip>, 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
+ added: z.ZodNumber;
898
+ modified: z.ZodNumber;
899
+ removed: z.ZodNumber;
900
+ }, z.core.$strip>>;