@openspecui/core 13.0.1 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/{active-root-config-wpH_ZblJ.d.mts → active-root-config-EIowq49O.d.mts} +15 -15
  2. package/dist/active-root-config.d.mts +4 -4
  3. package/dist/app-daemon-control.d.mts +59 -59
  4. package/dist/{cli-projection-0tdEPnTe.d.mts → cli-projection-e0TxFXmU.d.mts} +1 -1
  5. package/dist/cli-projection.d.mts +4 -4
  6. package/dist/{command-result-DfCY18TD.mjs → command-result-BBsaUYw2.mjs} +88 -8
  7. package/dist/{dashboard-summary-transport-uE7nCxmD.d.mts → dashboard-summary-transport-B7L2JSs-.d.mts} +3127 -2936
  8. package/dist/dashboard-summary-transport.d.mts +17 -17
  9. package/dist/hosted-app.d.mts +17 -17
  10. package/dist/hosted-contract.d.mts +17 -17
  11. package/dist/{index-DPsUTX4C.d.mts → index-D8GM018H.d.mts} +1331 -64
  12. package/dist/index.d.mts +17 -17
  13. package/dist/index.mjs +174 -43
  14. package/dist/{local-download-profiles-CsKGe_qF.d.mts → local-download-profiles-DWHZXsY_.d.mts} +1 -1
  15. package/dist/local-download-profiles.d.mts +2 -2
  16. package/dist/{notifications-B8Ael_hq.d.mts → notifications-BPz-EXzD.d.mts} +7 -7
  17. package/dist/notifications.d.mts +2 -2
  18. package/dist/{openspec-compat-CNMMuTot.mjs → openspec-compat-B1OCT-hK.mjs} +14 -13
  19. package/dist/openspec-compat.d.mts +3 -3
  20. package/dist/openspec-compat.mjs +2 -2
  21. package/dist/{openspec-projection-xOnjhQ7v.d.mts → openspec-projection-Bh3BECEE.d.mts} +1 -1
  22. package/dist/openspec-projection.d.mts +2 -2
  23. package/dist/{opsx-entity-DsigFL5Z.d.mts → opsx-entity-Q_C0zjFo.d.mts} +2 -2
  24. package/dist/opsx-entity.d.mts +6 -6
  25. package/dist/{opsx-schema-detail-IlY4T5vO.d.mts → opsx-schema-detail-DhoLJ6GN.d.mts} +2 -2
  26. package/dist/opsx-schema-detail.d.mts +7 -7
  27. package/dist/{opsx-types-r1oKVWgZ.d.mts → opsx-types-FvNmqVVh.d.mts} +345 -198
  28. package/dist/{planning-cli-projection-C4eG7-Yr.mjs → planning-cli-projection-DJ9Llzan.mjs} +62 -7
  29. package/dist/planning-cli-projection.d.mts +17 -17
  30. package/dist/planning-cli-projection.mjs +3 -3
  31. package/dist/{schemas-pfpqDlAd.d.mts → schemas-DqfpM3ZI.d.mts} +2 -2
  32. package/dist/{sounds-B0GiWqBN.d.mts → sounds-DbXwtc44.d.mts} +5 -5
  33. package/dist/sounds.d.mts +1 -1
  34. package/dist/{spec-catalog-B8TIBzwP.mjs → spec-catalog-Ce-UQqxo.mjs} +14 -1
  35. package/dist/spec-catalog.d.mts +17 -17
  36. package/dist/spec-catalog.mjs +2 -2
  37. package/dist/{store-mutation-protocol-DXeWtAvN.d.mts → store-mutation-protocol-C9xgZkNh.d.mts} +24 -24
  38. package/dist/store-mutation-protocol.d.mts +1 -1
  39. package/dist/{store-types-BghVB9Qj.d.mts → store-types-WFLdYbRL.d.mts} +1 -1
  40. package/dist/store-types.d.mts +4 -4
  41. package/dist/task-progress.d.mts +5 -5
  42. package/dist/{terminal-audio-BpfUW_eB.d.mts → terminal-audio-Bg8XXd3h.d.mts} +2 -2
  43. package/dist/terminal-audio.d.mts +2 -2
  44. package/dist/terminal-control.d.mts +2 -2
  45. package/dist/{terminal-invocation-CYibC-WC.d.mts → terminal-invocation-CLNVHNYw.d.mts} +22 -22
  46. package/dist/terminal-invocation.d.mts +1 -1
  47. package/dist/{translator-BdTMcSWN.d.mts → translator-BW01wfHG.d.mts} +58 -58
  48. package/dist/translator.d.mts +1 -1
  49. package/package.json +3 -2
@@ -1,4 +1,4 @@
1
- import { Bt as CliResult, Ct as CliCommandResult, Dt as CliDiagnostic, Lt as CliRootSource, Tt as CliJsonValue, f as CliDoctor, jt as CliDoctorReferenceEntry, l as OpenSpecCliContractExecutor, n as CliRootSelector, u as CliContext, zt as CliExecutor } from "./index-DPsUTX4C.mjs";
1
+ import { Bt as CliResult, Ct as CliCommandResult, Dt as CliDiagnostic, Lt as CliRootSource, Tt as CliJsonValue, f as CliDoctor, jt as CliDoctorReferenceEntry, l as OpenSpecCliContractExecutor, n as CliRootSelector, u as CliContext, zt as CliExecutor } from "./index-D8GM018H.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/open-spec-data-scope.d.ts
@@ -393,8 +393,8 @@ declare const ActiveRootOfficialConfigSchema: z.ZodObject<{
393
393
  } | undefined;
394
394
  }>>;
395
395
  }, "strict", z.ZodTypeAny, {
396
- context: string | null;
397
396
  schema: string | null;
397
+ context: string | null;
398
398
  rules: Record<string, string[]> | null;
399
399
  operations: {
400
400
  apply?: {
@@ -405,8 +405,8 @@ declare const ActiveRootOfficialConfigSchema: z.ZodObject<{
405
405
  } | undefined;
406
406
  } | null;
407
407
  }, {
408
- context: string | null;
409
408
  schema: string | null;
409
+ context: string | null;
410
410
  rules: Record<string, string[]> | null;
411
411
  operations: {
412
412
  apply?: {
@@ -455,8 +455,8 @@ declare const ActiveRootStructuredUpdateSchema: z.ZodObject<{
455
455
  } | null;
456
456
  }>>;
457
457
  }, "strict", z.ZodTypeAny, {
458
- context: string | null;
459
458
  schema: string;
459
+ context: string | null;
460
460
  rules: Record<string, string[]> | null;
461
461
  operations: {
462
462
  apply: {
@@ -467,8 +467,8 @@ declare const ActiveRootStructuredUpdateSchema: z.ZodObject<{
467
467
  } | null;
468
468
  } | null;
469
469
  }, {
470
- context: string | null;
471
470
  schema: string;
471
+ context: string | null;
472
472
  rules: Record<string, string[]> | null;
473
473
  operations: {
474
474
  apply: {
@@ -523,8 +523,8 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
523
523
  } | null;
524
524
  }>>;
525
525
  }, "strict", z.ZodTypeAny, {
526
- context: string | null;
527
526
  schema: string;
527
+ context: string | null;
528
528
  rules: Record<string, string[]> | null;
529
529
  operations: {
530
530
  apply: {
@@ -535,8 +535,8 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
535
535
  } | null;
536
536
  } | null;
537
537
  }, {
538
- context: string | null;
539
538
  schema: string;
539
+ context: string | null;
540
540
  rules: Record<string, string[]> | null;
541
541
  operations: {
542
542
  apply: {
@@ -551,11 +551,9 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
551
551
  filePath: z.ZodString;
552
552
  revision: z.ZodString;
553
553
  }, "strict", z.ZodTypeAny, {
554
- filePath: string;
555
- revision: string;
556
554
  update: {
557
- context: string | null;
558
555
  schema: string;
556
+ context: string | null;
559
557
  rules: Record<string, string[]> | null;
560
558
  operations: {
561
559
  apply: {
@@ -566,14 +564,14 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
566
564
  } | null;
567
565
  } | null;
568
566
  };
567
+ filePath: string;
569
568
  mode: "structured";
569
+ revision: string;
570
570
  ownerPath: string;
571
571
  }, {
572
- filePath: string;
573
- revision: string;
574
572
  update: {
575
- context: string | null;
576
573
  schema: string;
574
+ context: string | null;
577
575
  rules: Record<string, string[]> | null;
578
576
  operations: {
579
577
  apply: {
@@ -584,7 +582,9 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
584
582
  } | null;
585
583
  } | null;
586
584
  };
585
+ filePath: string;
587
586
  mode: "structured";
587
+ revision: string;
588
588
  ownerPath: string;
589
589
  }>, z.ZodObject<{
590
590
  mode: z.ZodLiteral<"raw">;
@@ -594,15 +594,15 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
594
594
  revision: z.ZodString;
595
595
  }, "strict", z.ZodTypeAny, {
596
596
  filePath: string;
597
- revision: string;
598
597
  mode: "raw";
599
598
  content: string;
599
+ revision: string;
600
600
  ownerPath: string;
601
601
  }, {
602
602
  filePath: string;
603
- revision: string;
604
603
  mode: "raw";
605
604
  content: string;
605
+ revision: string;
606
606
  ownerPath: string;
607
607
  }>]>;
608
608
  /** Revision-aware Active Root mutation request. */
@@ -1,6 +1,6 @@
1
- import "./index-DPsUTX4C.mjs";
1
+ import "./index-D8GM018H.mjs";
2
2
  import "./document-translation-DzF7Og-j.mjs";
3
- import "./sounds-B0GiWqBN.mjs";
4
- import "./notifications-B8Ael_hq.mjs";
5
- import { _ as ActiveRootStructuredUpdateSchema, a as ActiveRootConfigDiagnostic, c as ActiveRootMutation, d as ActiveRootOfficialConfig, f as ActiveRootOfficialConfigSchema, g as ActiveRootStructuredUpdate, h as ActiveRootRevisionSchema, i as ActiveRootConfig, l as ActiveRootMutationResult, m as ActiveRootRevision, n as patchActiveRootOfficialFields, o as ActiveRootConfigFile, p as ActiveRootRawValidation, r as validateActiveRootRawYaml, s as ActiveRootConfigInspection, t as inspectActiveRootOfficialConfig, u as ActiveRootMutationSchema, v as MAX_ACTIVE_ROOT_CONTEXT_BYTES } from "./active-root-config-wpH_ZblJ.mjs";
3
+ import "./sounds-DbXwtc44.mjs";
4
+ import "./notifications-BPz-EXzD.mjs";
5
+ import { _ as ActiveRootStructuredUpdateSchema, a as ActiveRootConfigDiagnostic, c as ActiveRootMutation, d as ActiveRootOfficialConfig, f as ActiveRootOfficialConfigSchema, g as ActiveRootStructuredUpdate, h as ActiveRootRevisionSchema, i as ActiveRootConfig, l as ActiveRootMutationResult, m as ActiveRootRevision, n as patchActiveRootOfficialFields, o as ActiveRootConfigFile, p as ActiveRootRawValidation, r as validateActiveRootRawYaml, s as ActiveRootConfigInspection, t as inspectActiveRootOfficialConfig, u as ActiveRootMutationSchema, v as MAX_ACTIVE_ROOT_CONTEXT_BYTES } from "./active-root-config-EIowq49O.mjs";
6
6
  export { ActiveRootConfig, ActiveRootConfigDiagnostic, ActiveRootConfigFile, ActiveRootConfigInspection, ActiveRootMutation, ActiveRootMutationResult, ActiveRootMutationSchema, ActiveRootOfficialConfig, ActiveRootOfficialConfigSchema, ActiveRootRawValidation, ActiveRootRevision, ActiveRootRevisionSchema, ActiveRootStructuredUpdate, ActiveRootStructuredUpdateSchema, MAX_ACTIVE_ROOT_CONTEXT_BYTES, inspectActiveRootOfficialConfig, patchActiveRootOfficialFields, validateActiveRootRawYaml };
@@ -27,32 +27,32 @@ declare const AppDaemonWorkspaceBindingSchema: z.ZodObject<{
27
27
  }>>;
28
28
  }, "strip", z.ZodTypeAny, {
29
29
  id: string;
30
+ git: {
31
+ remoteUrl: string | null;
32
+ branch: string | null;
33
+ githubSlug: string | null;
34
+ } | null;
35
+ projectDir: string;
30
36
  backendUrl: string;
31
37
  credential: string | null;
32
- projectDir: string;
33
38
  ownership: "daemon-managed" | "external";
34
39
  registeredAt: number;
35
40
  managedGeneration: number | null;
36
41
  shutdown: "managed" | "external-owner" | "close-only";
42
+ }, {
43
+ id: string;
37
44
  git: {
38
45
  remoteUrl: string | null;
39
46
  branch: string | null;
40
47
  githubSlug: string | null;
41
48
  } | null;
42
- }, {
43
- id: string;
49
+ projectDir: string;
44
50
  backendUrl: string;
45
51
  credential: string | null;
46
- projectDir: string;
47
52
  ownership: "daemon-managed" | "external";
48
53
  registeredAt: number;
49
54
  managedGeneration: number | null;
50
55
  shutdown: "managed" | "external-owner" | "close-only";
51
- git: {
52
- remoteUrl: string | null;
53
- branch: string | null;
54
- githubSlug: string | null;
55
- } | null;
56
56
  }>;
57
57
  type AppDaemonWorkspaceBinding = z.infer<typeof AppDaemonWorkspaceBindingSchema>;
58
58
  /** Complete current daemon ledger; clients replace by revision instead of applying event deltas. */
@@ -82,66 +82,66 @@ declare const AppDaemonWorkspaceSnapshotSchema: z.ZodObject<{
82
82
  }>>;
83
83
  }, "strip", z.ZodTypeAny, {
84
84
  id: string;
85
+ git: {
86
+ remoteUrl: string | null;
87
+ branch: string | null;
88
+ githubSlug: string | null;
89
+ } | null;
90
+ projectDir: string;
85
91
  backendUrl: string;
86
92
  credential: string | null;
87
- projectDir: string;
88
93
  ownership: "daemon-managed" | "external";
89
94
  registeredAt: number;
90
95
  managedGeneration: number | null;
91
96
  shutdown: "managed" | "external-owner" | "close-only";
97
+ }, {
98
+ id: string;
92
99
  git: {
93
100
  remoteUrl: string | null;
94
101
  branch: string | null;
95
102
  githubSlug: string | null;
96
103
  } | null;
97
- }, {
98
- id: string;
104
+ projectDir: string;
99
105
  backendUrl: string;
100
106
  credential: string | null;
101
- projectDir: string;
102
107
  ownership: "daemon-managed" | "external";
103
108
  registeredAt: number;
104
109
  managedGeneration: number | null;
105
110
  shutdown: "managed" | "external-owner" | "close-only";
106
- git: {
107
- remoteUrl: string | null;
108
- branch: string | null;
109
- githubSlug: string | null;
110
- } | null;
111
111
  }>, "many">;
112
112
  }, "strip", z.ZodTypeAny, {
113
113
  revision: number;
114
114
  workspaces: {
115
115
  id: string;
116
+ git: {
117
+ remoteUrl: string | null;
118
+ branch: string | null;
119
+ githubSlug: string | null;
120
+ } | null;
121
+ projectDir: string;
116
122
  backendUrl: string;
117
123
  credential: string | null;
118
- projectDir: string;
119
124
  ownership: "daemon-managed" | "external";
120
125
  registeredAt: number;
121
126
  managedGeneration: number | null;
122
127
  shutdown: "managed" | "external-owner" | "close-only";
123
- git: {
124
- remoteUrl: string | null;
125
- branch: string | null;
126
- githubSlug: string | null;
127
- } | null;
128
128
  }[];
129
129
  }, {
130
130
  revision: number;
131
131
  workspaces: {
132
132
  id: string;
133
+ git: {
134
+ remoteUrl: string | null;
135
+ branch: string | null;
136
+ githubSlug: string | null;
137
+ } | null;
138
+ projectDir: string;
133
139
  backendUrl: string;
134
140
  credential: string | null;
135
- projectDir: string;
136
141
  ownership: "daemon-managed" | "external";
137
142
  registeredAt: number;
138
143
  managedGeneration: number | null;
139
144
  shutdown: "managed" | "external-owner" | "close-only";
140
- git: {
141
- remoteUrl: string | null;
142
- branch: string | null;
143
- githubSlug: string | null;
144
- } | null;
145
145
  }[];
146
146
  }>;
147
147
  type AppDaemonWorkspaceSnapshot = z.infer<typeof AppDaemonWorkspaceSnapshotSchema>;
@@ -232,68 +232,68 @@ declare const AppDaemonStartManagedProjectResponseSchema: z.ZodDiscriminatedUnio
232
232
  }>>;
233
233
  }, "strip", z.ZodTypeAny, {
234
234
  id: string;
235
+ git: {
236
+ remoteUrl: string | null;
237
+ branch: string | null;
238
+ githubSlug: string | null;
239
+ } | null;
240
+ projectDir: string;
235
241
  backendUrl: string;
236
242
  credential: string | null;
237
- projectDir: string;
238
243
  ownership: "daemon-managed" | "external";
239
244
  registeredAt: number;
240
245
  managedGeneration: number | null;
241
246
  shutdown: "managed" | "external-owner" | "close-only";
247
+ }, {
248
+ id: string;
242
249
  git: {
243
250
  remoteUrl: string | null;
244
251
  branch: string | null;
245
252
  githubSlug: string | null;
246
253
  } | null;
247
- }, {
248
- id: string;
254
+ projectDir: string;
249
255
  backendUrl: string;
250
256
  credential: string | null;
251
- projectDir: string;
252
257
  ownership: "daemon-managed" | "external";
253
258
  registeredAt: number;
254
259
  managedGeneration: number | null;
255
260
  shutdown: "managed" | "external-owner" | "close-only";
256
- git: {
257
- remoteUrl: string | null;
258
- branch: string | null;
259
- githubSlug: string | null;
260
- } | null;
261
261
  }>;
262
262
  alreadyRunning: z.ZodBoolean;
263
263
  }, "strip", z.ZodTypeAny, {
264
264
  ok: true;
265
265
  workspace: {
266
266
  id: string;
267
+ git: {
268
+ remoteUrl: string | null;
269
+ branch: string | null;
270
+ githubSlug: string | null;
271
+ } | null;
272
+ projectDir: string;
267
273
  backendUrl: string;
268
274
  credential: string | null;
269
- projectDir: string;
270
275
  ownership: "daemon-managed" | "external";
271
276
  registeredAt: number;
272
277
  managedGeneration: number | null;
273
278
  shutdown: "managed" | "external-owner" | "close-only";
274
- git: {
275
- remoteUrl: string | null;
276
- branch: string | null;
277
- githubSlug: string | null;
278
- } | null;
279
279
  };
280
280
  alreadyRunning: boolean;
281
281
  }, {
282
282
  ok: true;
283
283
  workspace: {
284
284
  id: string;
285
+ git: {
286
+ remoteUrl: string | null;
287
+ branch: string | null;
288
+ githubSlug: string | null;
289
+ } | null;
290
+ projectDir: string;
285
291
  backendUrl: string;
286
292
  credential: string | null;
287
- projectDir: string;
288
293
  ownership: "daemon-managed" | "external";
289
294
  registeredAt: number;
290
295
  managedGeneration: number | null;
291
296
  shutdown: "managed" | "external-owner" | "close-only";
292
- git: {
293
- remoteUrl: string | null;
294
- branch: string | null;
295
- githubSlug: string | null;
296
- } | null;
297
297
  };
298
298
  alreadyRunning: boolean;
299
299
  }>, z.ZodObject<{
@@ -302,21 +302,21 @@ declare const AppDaemonStartManagedProjectResponseSchema: z.ZodDiscriminatedUnio
302
302
  code: z.ZodEnum<["UNSUPPORTED", "INVALID_DIRECTORY", "SPAWN_FAILED", "GENERATION_MISMATCH", "INVALID_REQUEST"]>;
303
303
  message: z.ZodString;
304
304
  }, "strip", z.ZodTypeAny, {
305
- code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
305
+ code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
306
306
  message: string;
307
307
  }, {
308
- code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
308
+ code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
309
309
  message: string;
310
310
  }>;
311
311
  }, "strip", z.ZodTypeAny, {
312
312
  error: {
313
- code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
313
+ code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
314
314
  message: string;
315
315
  };
316
316
  ok: false;
317
317
  }, {
318
318
  error: {
319
- code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
319
+ code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
320
320
  message: string;
321
321
  };
322
322
  ok: false;
@@ -338,21 +338,21 @@ declare const AppDaemonStopManagedProjectResponseSchema: z.ZodDiscriminatedUnion
338
338
  code: z.ZodEnum<["UNSUPPORTED", "INVALID_DIRECTORY", "SPAWN_FAILED", "GENERATION_MISMATCH", "INVALID_REQUEST"]>;
339
339
  message: z.ZodString;
340
340
  }, "strip", z.ZodTypeAny, {
341
- code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
341
+ code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
342
342
  message: string;
343
343
  }, {
344
- code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
344
+ code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
345
345
  message: string;
346
346
  }>;
347
347
  }, "strip", z.ZodTypeAny, {
348
348
  error: {
349
- code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
349
+ code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
350
350
  message: string;
351
351
  };
352
352
  ok: false;
353
353
  }, {
354
354
  error: {
355
- code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
355
+ code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
356
356
  message: string;
357
357
  };
358
358
  ok: false;
@@ -1,4 +1,4 @@
1
- import { Ct as CliCommandResult, Tt as CliJsonValue } from "./index-DPsUTX4C.mjs";
1
+ import { Ct as CliCommandResult, Tt as CliJsonValue } from "./index-D8GM018H.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/cli-projection.d.ts
@@ -1,6 +1,6 @@
1
- import "./index-DPsUTX4C.mjs";
1
+ import "./index-D8GM018H.mjs";
2
2
  import "./document-translation-DzF7Og-j.mjs";
3
- import "./sounds-B0GiWqBN.mjs";
4
- import "./notifications-B8Ael_hq.mjs";
5
- import { _ as toCliProjectionCommandEvidence, a as CliProjectionFailure, c as CliProjectionInvalidationCauseSchema, d as CliProjectionState, f as CliProjectionStateName, g as createCliProjectionStateSchema, h as cliProjectionStates, i as CliProjectionCommandEvidenceSchema, l as CliProjectionNotice, m as cliProjectionInvalidationCauses, n as CliProjectionCommandError, o as CliProjectionFailureSchema, p as CliProjectionStateNameSchema, r as CliProjectionCommandEvidence, s as CliProjectionInvalidationCause, t as CliJsonValueSchema, u as CliProjectionNoticeSchema, v as toCliProjectionFailure, y as toCliProjectionNotice } from "./cli-projection-0tdEPnTe.mjs";
3
+ import "./sounds-DbXwtc44.mjs";
4
+ import "./notifications-BPz-EXzD.mjs";
5
+ import { _ as toCliProjectionCommandEvidence, a as CliProjectionFailure, c as CliProjectionInvalidationCauseSchema, d as CliProjectionState, f as CliProjectionStateName, g as createCliProjectionStateSchema, h as cliProjectionStates, i as CliProjectionCommandEvidenceSchema, l as CliProjectionNotice, m as cliProjectionInvalidationCauses, n as CliProjectionCommandError, o as CliProjectionFailureSchema, p as CliProjectionStateNameSchema, r as CliProjectionCommandEvidence, s as CliProjectionInvalidationCause, t as CliJsonValueSchema, u as CliProjectionNoticeSchema, v as toCliProjectionFailure, y as toCliProjectionNotice } from "./cli-projection-e0TxFXmU.mjs";
6
6
  export { CliJsonValueSchema, CliProjectionCommandError, CliProjectionCommandEvidence, CliProjectionCommandEvidenceSchema, CliProjectionFailure, CliProjectionFailureSchema, CliProjectionInvalidationCause, CliProjectionInvalidationCauseSchema, CliProjectionNotice, CliProjectionNoticeSchema, CliProjectionState, CliProjectionStateName, CliProjectionStateNameSchema, cliProjectionInvalidationCauses, cliProjectionStates, createCliProjectionStateSchema, toCliProjectionCommandEvidence, toCliProjectionFailure, toCliProjectionNotice };
@@ -3,7 +3,7 @@ import { z } from "zod";
3
3
 
4
4
  //#region src/cli-contracts/workflow.ts
5
5
  /**
6
- * Orthogonal intents (updated 2026-09-12 Asia/Shanghai):
6
+ * Orthogonal intents (updated 2026-10-02 Asia/Shanghai):
7
7
  * 1. Model camelCase workflow JSON independently from Store-family JSON.
8
8
  * 2. Preserve strict, archived, and bulk Validate plus Archive outcomes, including failure payloads.
9
9
  * 3. Preserve multiline requirement bodies from `show --json`.
@@ -25,14 +25,32 @@ import { z } from "zod";
25
25
  * array as additive optional facts (absent when empty, never null): an entry carrying
26
26
  * `nested` is a namespace folder, not an actionable change; `code` stays an open string
27
27
  * because an in-window patch may add codes beyond `nested_change_directory`.
28
+ * 10. Type the OpenSpec 1.13.2 Apply tracking-evidence members (`taskTrackingConfigured`
29
+ * boolean, `unavailableTrackingFiles` `{path, reason}[]`) as additive optional success
30
+ * members: 1.13.2 always emits the boolean while 1.13.0/1.13.1 (still admitted) emit
31
+ * neither, so absence stays "unknown" and is never synthesized; the array is
32
+ * absent-when-everything-is-readable and both stay verbatim evidence.
33
+ * 11. Type the OpenSpec 1.14 members (references/openspec-1.14.0-report.md, Verified CLI
34
+ * observations) as additive optional facts: apply task `sourcePath` (absolute) +
35
+ * `line` (1-based, upstream LocatedTask) — older in-flight payloads may lack them and
36
+ * OpenSpecUI never re-derives them; show-Spec requirement/scenario `name` members
37
+ * (upstream normalizeRequirementName/scenarioNameFromHeaderText) preserved by CLI
38
+ * value with old snapshots still decoding; Status top-level `warnings` advisory array
39
+ * on the single success payload and every batch healthy entry (same fields schema),
40
+ * verbatim CLI evidence that never gates anything; change-list per-entry `archived`
41
+ * boolean from `list --archived`/`--all` (default list never emits it); and the new
42
+ * `openspec version --json` envelope (`schemaVersion: 1` literal, `version`,
43
+ * `install`, check-gated passthrough `update`).
28
44
  *
29
45
  * Original request (2026-07-15): "为不同命令建立强类型适配器,不实现平行解析规则。"
30
46
  * Original request (2026-07-26): "展开全面的接口升级和内核升级和测试升级。"
31
47
  * Original request (2026-08-15): "v9的适配需要同时适配 1.8和1.9。"
32
48
  * Original request (2026-08-28): "直接将 0.10.0 和 0.11.0 一起适配,然后发布 v11。"
33
- * Original request (2026-09-03): "Openspec 1.12.0 刚刚放出来,你更新一下,调查变更内容,然后开始规划适配工作,我们将用标准工作流worktree来推进"
49
+ * Original request (2026-09-03): "Openspec 1.12.0 刚刚放出来,你更新一下,调查变更内容,然后开始规划适配工作,我们将用标准工作流worktree来推进。"
34
50
  * Original request (2026-09-12): "Openspec 1.13.0 释放了,你更新一下,调查变更内容,然后开始规划适配工作,我们将用标准工作流worktree来推进。让 codex 参与。"
35
51
  * Original request (2026-09-17): "Openspec 1.13.1 释放了…" — change-list nested/warnings projection (update-openspec-cli-1131 Slice 2).
52
+ * Original request (2026-09-26): "Openspec 1.13.2 释放了…" — Apply tracking-evidence decode contract (update-openspec-cli-1132 Slice 2).
53
+ * Original request (2026-10-02): "Openspec v1.14.0 释放了,你更新一下,调查变更内容,然后开始规划适配工作,我们将用标准工作流worktree来推进。让 codex 参与。完成后关于 github 上的相关 issue" — typed contracts Slice 2 (target-openspec-cli-114-line).
36
54
  */
37
55
  /**
38
56
  * One top-level change-list hygiene warning (OpenSpec 1.13.1 `list --json`).
@@ -58,7 +76,8 @@ const CliChangeListEntrySchema = z.object({
58
76
  "complete",
59
77
  "in-progress"
60
78
  ]),
61
- nested: z.array(z.string()).optional()
79
+ nested: z.array(z.string()).optional(),
80
+ archived: z.boolean().optional()
62
81
  }).passthrough();
63
82
  /** Typed result of the CLI change-list JSON command. */
64
83
  const CliChangeListSchema = z.object({
@@ -108,10 +127,21 @@ const CliTemplateEntrySchema = z.object({
108
127
  ])
109
128
  }).passthrough();
110
129
  const CliTemplatesSchema = z.record(CliTemplateEntrySchema);
111
- /** One requirement body shared by Spec documents and Change deltas. */
130
+ /**
131
+ * One requirement body shared by Spec documents and Change deltas.
132
+ *
133
+ * OpenSpec 1.14 adds `name` on requirements and scenarios (upstream
134
+ * `normalizeRequirementName` / `scenarioNameFromHeaderText`): the requirement name is
135
+ * the identity archive matches on. Optional because old snapshots and in-window
136
+ * payloads may lack it; preserved strictly by CLI value, never re-derived locally.
137
+ */
112
138
  const CliSpecRequirementSchema = z.object({
139
+ name: z.string().optional(),
113
140
  text: z.string(),
114
- scenarios: z.array(z.object({ rawText: z.string() }).passthrough())
141
+ scenarios: z.array(z.object({
142
+ name: z.string().optional(),
143
+ rawText: z.string()
144
+ }).passthrough())
115
145
  }).passthrough();
116
146
  /** Typed successful document returned by the CLI show-Spec JSON command. */
117
147
  const CliShowSpecDocumentSchema = z.object({
@@ -182,7 +212,8 @@ const CliWorkflowStatusFieldsSchema = z.object({
182
212
  applyRequires: z.array(z.string()),
183
213
  nextSteps: z.array(z.string()),
184
214
  actionContext: CliActionContextSchema,
185
- artifacts: z.array(CliStatusArtifactSchema)
215
+ artifacts: z.array(CliStatusArtifactSchema),
216
+ warnings: z.array(z.string()).optional()
186
217
  }).passthrough();
187
218
  /** Complete successful Status payload for one OpenSpec change. */
188
219
  const CliWorkflowStatusSuccessSchema = CliWorkflowStatusFieldsSchema.extend({ root: CliRootSchema }).passthrough();
@@ -220,7 +251,9 @@ const CliArtifactInstructionsSchema = z.union([CliArtifactInstructionsSuccessSch
220
251
  const CliApplyTaskSchema = z.object({
221
252
  id: z.string(),
222
253
  description: z.string(),
223
- done: z.boolean()
254
+ done: z.boolean(),
255
+ sourcePath: z.string().optional(),
256
+ line: z.number().optional()
224
257
  }).passthrough();
225
258
  /** Complete successful Apply Instructions payload, including raw Apply progress. */
226
259
  const CliApplyInstructionsSuccessSchema = z.object({
@@ -242,6 +275,11 @@ const CliApplyInstructionsSuccessSchema = z.object({
242
275
  missingArtifacts: z.array(z.string()).optional(),
243
276
  missingPrerequisites: z.array(z.string()).optional(),
244
277
  warnings: z.array(z.string()).optional(),
278
+ taskTrackingConfigured: z.boolean().optional(),
279
+ unavailableTrackingFiles: z.array(z.object({
280
+ path: z.string(),
281
+ reason: z.string()
282
+ })).optional(),
245
283
  instruction: z.string(),
246
284
  references: z.array(CliReferenceIndexEntrySchema).optional(),
247
285
  context: z.string().optional(),
@@ -398,6 +436,48 @@ const CliArchiveSchema = z.object({
398
436
  root: CliRootSchema.optional(),
399
437
  status: z.array(CliDiagnosticSchema).optional()
400
438
  }).passthrough();
439
+ /**
440
+ * Typed result of the OpenSpec 1.14 `openspec version --json` command.
441
+ *
442
+ * Upstream (pinned v1.14.0, src/cli/index.ts + src/core/version-check.ts) always emits
443
+ * `schemaVersion: 1`, the running `version`, and the resolved `install` facts (every
444
+ * install member nullable — an unresolvable install reports all-null, never a guess).
445
+ * `update` is conditionally spread only under `--check` (a registry probe honoring
446
+ * CI/no-network and DO_NOT_TRACK opt-outs), so it is optional with no default and its
447
+ * facts stay passthrough evidence; the probe is opt-in and OpenSpecUI composes no
448
+ * capability gate for this admitted-window command.
449
+ */
450
+ const CliVersionSchema = z.object({
451
+ schemaVersion: z.literal(1),
452
+ version: z.string(),
453
+ install: z.object({
454
+ location: z.string().nullable(),
455
+ packageManager: z.enum([
456
+ "npm",
457
+ "pnpm",
458
+ "bun",
459
+ "yarn",
460
+ "volta"
461
+ ]).nullable(),
462
+ scope: z.enum([
463
+ "global",
464
+ "project",
465
+ "temporary",
466
+ "source"
467
+ ]).nullable()
468
+ }).passthrough(),
469
+ update: z.object({
470
+ status: z.enum([
471
+ "disabled",
472
+ "offline",
473
+ "available",
474
+ "current"
475
+ ]),
476
+ latest: z.string().nullable(),
477
+ command: z.string().nullable(),
478
+ canSelfUpgrade: z.boolean()
479
+ }).passthrough().optional()
480
+ }).passthrough();
401
481
 
402
482
  //#endregion
403
483
  //#region src/cli-contracts/command-result.ts
@@ -473,4 +553,4 @@ function parseCliCommandResult(result, schema) {
473
553
  }
474
554
 
475
555
  //#endregion
476
- export { CliWorkflowStatusSuccessSchema as A, CliTemplatesSchema as C, CliValidateSchema as D, CliValidateReportSchema as E, CliWorkflowStatusFieldsSchema as O, CliTemplateEntrySchema as S, CliValidateFindingsSchema as T, CliSchemaWhichSchema as _, CliApplyInstructionsSuccessSchema as a, CliSpecListSchema as b, CliArchiveSchema as c, CliArtifactPathSchema as d, CliChangeListSchema as f, CliSchemaShadowSchema as g, CliSchemaResolutionSchema as h, CliApplyInstructionsSchema as i, isCliValidateFindings as j, CliWorkflowStatusSchema as k, CliArtifactInstructionsSchema as l, CliPlanningHomeSchema as m, parseCliCommandResult as n, CliArchiveInstructionsSchema as o, CliChangeListWarningSchema as p, CliActionContextSchema as r, CliArchiveInstructionsSuccessSchema as s, CliCommandTransportSchema as t, CliArtifactInstructionsSuccessSchema as u, CliShowSpecDocumentSchema as v, CliValidateFindingsResultSchema as w, CliSpecRequirementSchema as x, CliShowSpecSchema as y };
556
+ export { CliWorkflowStatusSchema as A, CliTemplatesSchema as C, CliValidateSchema as D, CliValidateReportSchema as E, isCliValidateFindings as M, CliVersionSchema as O, CliTemplateEntrySchema as S, CliValidateFindingsSchema as T, CliSchemaWhichSchema as _, CliApplyInstructionsSuccessSchema as a, CliSpecListSchema as b, CliArchiveSchema as c, CliArtifactPathSchema as d, CliChangeListSchema as f, CliSchemaShadowSchema as g, CliSchemaResolutionSchema as h, CliApplyInstructionsSchema as i, CliWorkflowStatusSuccessSchema as j, CliWorkflowStatusFieldsSchema as k, CliArtifactInstructionsSchema as l, CliPlanningHomeSchema as m, parseCliCommandResult as n, CliArchiveInstructionsSchema as o, CliChangeListWarningSchema as p, CliActionContextSchema as r, CliArchiveInstructionsSuccessSchema as s, CliCommandTransportSchema as t, CliArtifactInstructionsSuccessSchema as u, CliShowSpecDocumentSchema as v, CliValidateFindingsResultSchema as w, CliSpecRequirementSchema as x, CliShowSpecSchema as y };