@openspecui/core 13.0.2 → 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 (51) hide show
  1. package/dist/{active-root-config-DvfqdWF7.d.mts → active-root-config-EIowq49O.d.mts} +17 -17
  2. package/dist/active-root-config.d.mts +5 -5
  3. package/dist/app-daemon-control.d.mts +59 -59
  4. package/dist/{cli-projection-CXrDqHG1.d.mts → cli-projection-e0TxFXmU.d.mts} +17 -17
  5. package/dist/cli-projection.d.mts +5 -5
  6. package/dist/{command-result-DqV3-Bf9.mjs → command-result-BBsaUYw2.mjs} +76 -7
  7. package/dist/{dashboard-summary-transport-C4sdZq07.d.mts → dashboard-summary-transport-B7L2JSs-.d.mts} +3643 -3543
  8. package/dist/dashboard-summary-transport.d.mts +18 -18
  9. package/dist/{document-translation-CGMD0RLA.d.mts → document-translation-DzF7Og-j.d.mts} +102 -102
  10. package/dist/document-translation.d.mts +1 -1
  11. package/dist/hosted-app.d.mts +18 -18
  12. package/dist/hosted-contract.d.mts +18 -18
  13. package/dist/{index-D9LApBD3.d.mts → index-D8GM018H.d.mts} +1314 -80
  14. package/dist/index.d.mts +18 -18
  15. package/dist/index.mjs +167 -41
  16. package/dist/{local-download-profiles-DtOKu_Qa.d.mts → local-download-profiles-DWHZXsY_.d.mts} +1 -1
  17. package/dist/local-download-profiles.d.mts +2 -2
  18. package/dist/{notifications-B72cq-2I.d.mts → notifications-BPz-EXzD.d.mts} +8 -8
  19. package/dist/notifications.d.mts +2 -2
  20. package/dist/{openspec-compat-CNMMuTot.mjs → openspec-compat-B1OCT-hK.mjs} +14 -13
  21. package/dist/openspec-compat.d.mts +4 -4
  22. package/dist/openspec-compat.mjs +2 -2
  23. package/dist/{openspec-projection-Dm-H-UMk.d.mts → openspec-projection-Bh3BECEE.d.mts} +1 -1
  24. package/dist/openspec-projection.d.mts +2 -2
  25. package/dist/{opsx-entity-C4DJzbUg.d.mts → opsx-entity-Q_C0zjFo.d.mts} +2 -2
  26. package/dist/opsx-entity.d.mts +7 -7
  27. package/dist/{opsx-schema-detail-CnTtGQsR.d.mts → opsx-schema-detail-DhoLJ6GN.d.mts} +2 -2
  28. package/dist/opsx-schema-detail.d.mts +8 -8
  29. package/dist/{opsx-types-BbERbtH2.d.mts → opsx-types-FvNmqVVh.d.mts} +239 -165
  30. package/dist/{planning-cli-projection-DpQfHj61.mjs → planning-cli-projection-DJ9Llzan.mjs} +23 -6
  31. package/dist/planning-cli-projection.d.mts +18 -18
  32. package/dist/planning-cli-projection.mjs +3 -3
  33. package/dist/{schemas-Bmw7OKBb.d.mts → schemas-DqfpM3ZI.d.mts} +84 -84
  34. package/dist/{sounds-BpMOHwvO.d.mts → sounds-DbXwtc44.d.mts} +9 -9
  35. package/dist/sounds.d.mts +1 -1
  36. package/dist/{spec-catalog-Cx_PE3WR.mjs → spec-catalog-Ce-UQqxo.mjs} +14 -1
  37. package/dist/spec-catalog.d.mts +18 -18
  38. package/dist/spec-catalog.mjs +2 -2
  39. package/dist/{store-mutation-protocol-DXeWtAvN.d.mts → store-mutation-protocol-C9xgZkNh.d.mts} +24 -24
  40. package/dist/store-mutation-protocol.d.mts +1 -1
  41. package/dist/{store-types-DzBETNjJ.d.mts → store-types-WFLdYbRL.d.mts} +1 -1
  42. package/dist/store-types.d.mts +5 -5
  43. package/dist/task-progress.d.mts +6 -6
  44. package/dist/{terminal-audio-BZDsms7w.d.mts → terminal-audio-Bg8XXd3h.d.mts} +2 -2
  45. package/dist/terminal-audio.d.mts +2 -2
  46. package/dist/terminal-control.d.mts +2 -2
  47. package/dist/{terminal-invocation-BA-nywHh.d.mts → terminal-invocation-CLNVHNYw.d.mts} +22 -22
  48. package/dist/terminal-invocation.d.mts +1 -1
  49. package/dist/{translator-C_jPrCMR.d.mts → translator-BW01wfHG.d.mts} +261 -261
  50. package/dist/translator.d.mts +1 -1
  51. package/package.json +2 -1
@@ -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-D9LApBD3.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,12 +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
- mode: "structured";
557
554
  update: {
558
- context: string | null;
559
555
  schema: string;
556
+ context: string | null;
560
557
  rules: Record<string, string[]> | null;
561
558
  operations: {
562
559
  apply: {
@@ -567,14 +564,14 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
567
564
  } | null;
568
565
  } | null;
569
566
  };
570
- ownerPath: string;
571
- }, {
572
567
  filePath: string;
573
- revision: string;
574
568
  mode: "structured";
569
+ revision: string;
570
+ ownerPath: string;
571
+ }, {
575
572
  update: {
576
- context: string | null;
577
573
  schema: string;
574
+ context: string | null;
578
575
  rules: Record<string, string[]> | null;
579
576
  operations: {
580
577
  apply: {
@@ -585,6 +582,9 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
585
582
  } | null;
586
583
  } | null;
587
584
  };
585
+ filePath: string;
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-D9LApBD3.mjs";
2
- import "./document-translation-CGMD0RLA.mjs";
3
- import "./sounds-BpMOHwvO.mjs";
4
- import "./notifications-B72cq-2I.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-DvfqdWF7.mjs";
1
+ import "./index-D8GM018H.mjs";
2
+ import "./document-translation-DzF7Og-j.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-D9LApBD3.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
@@ -215,22 +215,22 @@ declare function createCliProjectionStateSchema<TOutput, TInput>(dataSchema: z.Z
215
215
  workGeneration: z.ZodNumber;
216
216
  invalidationCause: z.ZodEnum<["initial", "dependency", "explicit-refresh", "subscriber-resume"]>;
217
217
  }, "strip", z.ZodTypeAny, {
218
+ identity: string;
219
+ workGeneration: number;
220
+ snapshotGeneration: null;
218
221
  error: null;
219
222
  state: "loading";
220
223
  data: null;
221
224
  freshness: null;
222
- snapshotGeneration: null;
223
- identity: string;
224
- workGeneration: number;
225
225
  invalidationCause: "initial" | "dependency" | "explicit-refresh" | "subscriber-resume";
226
226
  }, {
227
+ identity: string;
228
+ workGeneration: number;
229
+ snapshotGeneration: null;
227
230
  error: null;
228
231
  state: "loading";
229
232
  data: null;
230
233
  freshness: null;
231
- snapshotGeneration: null;
232
- identity: string;
233
- workGeneration: number;
234
234
  invalidationCause: "initial" | "dependency" | "explicit-refresh" | "subscriber-resume";
235
235
  }>, z.ZodObject<{
236
236
  state: z.ZodLiteral<"ready">;
@@ -390,6 +390,9 @@ declare function createCliProjectionStateSchema<TOutput, TInput>(dataSchema: z.Z
390
390
  workGeneration: z.ZodNumber;
391
391
  invalidationCause: z.ZodEnum<["initial", "dependency", "explicit-refresh", "subscriber-resume"]>;
392
392
  }, "strip", z.ZodTypeAny, {
393
+ identity: string;
394
+ workGeneration: number;
395
+ snapshotGeneration: null;
393
396
  error: {
394
397
  message: string;
395
398
  name: string;
@@ -412,11 +415,11 @@ declare function createCliProjectionStateSchema<TOutput, TInput>(dataSchema: z.Z
412
415
  state: "error";
413
416
  data: null;
414
417
  freshness: null;
415
- snapshotGeneration: null;
416
- identity: string;
417
- workGeneration: number;
418
418
  invalidationCause: "initial" | "dependency" | "explicit-refresh" | "subscriber-resume";
419
419
  }, {
420
+ identity: string;
421
+ workGeneration: number;
422
+ snapshotGeneration: null;
420
423
  error: {
421
424
  message: string;
422
425
  name: string;
@@ -439,9 +442,6 @@ declare function createCliProjectionStateSchema<TOutput, TInput>(dataSchema: z.Z
439
442
  state: "error";
440
443
  data: null;
441
444
  freshness: null;
442
- snapshotGeneration: null;
443
- identity: string;
444
- workGeneration: number;
445
445
  invalidationCause: "initial" | "dependency" | "explicit-refresh" | "subscriber-resume";
446
446
  }>, z.ZodObject<{
447
447
  state: z.ZodLiteral<"refresh-error">;
@@ -761,16 +761,16 @@ declare const CliProjectionNoticeSchema: z.ZodObject<{
761
761
  state: z.ZodEnum<["loading", "ready", "revalidating", "error", "refresh-error"]>;
762
762
  invalidationCause: z.ZodEnum<["initial", "dependency", "explicit-refresh", "subscriber-resume"]>;
763
763
  }, "strip", z.ZodTypeAny, {
764
- state: "error" | "loading" | "ready" | "revalidating" | "refresh-error";
765
- snapshotGeneration: number | null;
766
764
  identity: string;
767
765
  workGeneration: number;
766
+ snapshotGeneration: number | null;
767
+ state: "loading" | "ready" | "revalidating" | "error" | "refresh-error";
768
768
  invalidationCause: "initial" | "dependency" | "explicit-refresh" | "subscriber-resume";
769
769
  }, {
770
- state: "error" | "loading" | "ready" | "revalidating" | "refresh-error";
771
- snapshotGeneration: number | null;
772
770
  identity: string;
773
771
  workGeneration: number;
772
+ snapshotGeneration: number | null;
773
+ state: "loading" | "ready" | "revalidating" | "error" | "refresh-error";
774
774
  invalidationCause: "initial" | "dependency" | "explicit-refresh" | "subscriber-resume";
775
775
  }>;
776
776
  type CliProjectionNotice = z.infer<typeof CliProjectionNoticeSchema>;
@@ -1,6 +1,6 @@
1
- import "./index-D9LApBD3.mjs";
2
- import "./document-translation-CGMD0RLA.mjs";
3
- import "./sounds-BpMOHwvO.mjs";
4
- import "./notifications-B72cq-2I.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-CXrDqHG1.mjs";
1
+ import "./index-D8GM018H.mjs";
2
+ import "./document-translation-DzF7Og-j.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-26 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`.
@@ -30,6 +30,17 @@ import { z } from "zod";
30
30
  * members: 1.13.2 always emits the boolean while 1.13.0/1.13.1 (still admitted) emit
31
31
  * neither, so absence stays "unknown" and is never synthesized; the array is
32
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`).
33
44
  *
34
45
  * Original request (2026-07-15): "为不同命令建立强类型适配器,不实现平行解析规则。"
35
46
  * Original request (2026-07-26): "展开全面的接口升级和内核升级和测试升级。"
@@ -39,6 +50,7 @@ import { z } from "zod";
39
50
  * Original request (2026-09-12): "Openspec 1.13.0 释放了,你更新一下,调查变更内容,然后开始规划适配工作,我们将用标准工作流worktree来推进。让 codex 参与。"
40
51
  * Original request (2026-09-17): "Openspec 1.13.1 释放了…" — change-list nested/warnings projection (update-openspec-cli-1131 Slice 2).
41
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).
42
54
  */
43
55
  /**
44
56
  * One top-level change-list hygiene warning (OpenSpec 1.13.1 `list --json`).
@@ -64,7 +76,8 @@ const CliChangeListEntrySchema = z.object({
64
76
  "complete",
65
77
  "in-progress"
66
78
  ]),
67
- nested: z.array(z.string()).optional()
79
+ nested: z.array(z.string()).optional(),
80
+ archived: z.boolean().optional()
68
81
  }).passthrough();
69
82
  /** Typed result of the CLI change-list JSON command. */
70
83
  const CliChangeListSchema = z.object({
@@ -114,10 +127,21 @@ const CliTemplateEntrySchema = z.object({
114
127
  ])
115
128
  }).passthrough();
116
129
  const CliTemplatesSchema = z.record(CliTemplateEntrySchema);
117
- /** 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
+ */
118
138
  const CliSpecRequirementSchema = z.object({
139
+ name: z.string().optional(),
119
140
  text: z.string(),
120
- 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())
121
145
  }).passthrough();
122
146
  /** Typed successful document returned by the CLI show-Spec JSON command. */
123
147
  const CliShowSpecDocumentSchema = z.object({
@@ -188,7 +212,8 @@ const CliWorkflowStatusFieldsSchema = z.object({
188
212
  applyRequires: z.array(z.string()),
189
213
  nextSteps: z.array(z.string()),
190
214
  actionContext: CliActionContextSchema,
191
- artifacts: z.array(CliStatusArtifactSchema)
215
+ artifacts: z.array(CliStatusArtifactSchema),
216
+ warnings: z.array(z.string()).optional()
192
217
  }).passthrough();
193
218
  /** Complete successful Status payload for one OpenSpec change. */
194
219
  const CliWorkflowStatusSuccessSchema = CliWorkflowStatusFieldsSchema.extend({ root: CliRootSchema }).passthrough();
@@ -226,7 +251,9 @@ const CliArtifactInstructionsSchema = z.union([CliArtifactInstructionsSuccessSch
226
251
  const CliApplyTaskSchema = z.object({
227
252
  id: z.string(),
228
253
  description: z.string(),
229
- done: z.boolean()
254
+ done: z.boolean(),
255
+ sourcePath: z.string().optional(),
256
+ line: z.number().optional()
230
257
  }).passthrough();
231
258
  /** Complete successful Apply Instructions payload, including raw Apply progress. */
232
259
  const CliApplyInstructionsSuccessSchema = z.object({
@@ -409,6 +436,48 @@ const CliArchiveSchema = z.object({
409
436
  root: CliRootSchema.optional(),
410
437
  status: z.array(CliDiagnosticSchema).optional()
411
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();
412
481
 
413
482
  //#endregion
414
483
  //#region src/cli-contracts/command-result.ts
@@ -484,4 +553,4 @@ function parseCliCommandResult(result, schema) {
484
553
  }
485
554
 
486
555
  //#endregion
487
- 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 };