@openspecui/core 12.0.0 → 13.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/{active-root-config-Ba57tJrq.d.mts → active-root-config-wpH_ZblJ.d.mts} +17 -17
  2. package/dist/active-root-config.d.mts +5 -5
  3. package/dist/app-daemon-control.d.mts +8 -8
  4. package/dist/{cli-projection-CvtX601c.d.mts → cli-projection-0tdEPnTe.d.mts} +17 -17
  5. package/dist/cli-projection.d.mts +5 -5
  6. package/dist/{command-result-DbXO8ZgG.mjs → command-result-DfCY18TD.mjs} +31 -3
  7. package/dist/{dashboard-summary-transport-edeWQPi7.d.mts → dashboard-summary-transport-uE7nCxmD.d.mts} +5573 -5367
  8. package/dist/dashboard-summary-transport.d.mts +19 -19
  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-CHqdo5vd.mjs → hosted-app-DWYFMLkw.mjs} +1 -1
  12. package/dist/hosted-app.d.mts +19 -19
  13. package/dist/hosted-app.mjs +3 -3
  14. package/dist/{hosted-contract-Qe5AmkiE.mjs → hosted-contract-SsTBQklx.mjs} +1 -1
  15. package/dist/hosted-contract.d.mts +19 -19
  16. package/dist/hosted-contract.mjs +2 -2
  17. package/dist/{index-D9qYKNqh.d.mts → index-DPsUTX4C.d.mts} +262 -106
  18. package/dist/index.d.mts +20 -20
  19. package/dist/index.mjs +63 -41
  20. package/dist/{local-download-profiles-DaFozMhH.d.mts → local-download-profiles-CsKGe_qF.d.mts} +1 -1
  21. package/dist/local-download-profiles.d.mts +2 -2
  22. package/dist/{notifications-Dkoh_xrs.d.mts → notifications-B8Ael_hq.d.mts} +8 -8
  23. package/dist/notifications.d.mts +2 -2
  24. package/dist/{openspec-compat-CpMO8-dz.mjs → openspec-compat-CNMMuTot.mjs} +15 -14
  25. package/dist/openspec-compat.d.mts +4 -4
  26. package/dist/openspec-compat.mjs +2 -2
  27. package/dist/{openspec-projection-46QLZ6b8.d.mts → openspec-projection-xOnjhQ7v.d.mts} +1 -1
  28. package/dist/openspec-projection.d.mts +2 -2
  29. package/dist/{opsx-entity-Btqm5OhC.d.mts → opsx-entity-DsigFL5Z.d.mts} +2 -2
  30. package/dist/opsx-entity.d.mts +7 -7
  31. package/dist/{opsx-schema-detail-C4VyWZ8B.d.mts → opsx-schema-detail-IlY4T5vO.d.mts} +2 -2
  32. package/dist/opsx-schema-detail.d.mts +8 -8
  33. package/dist/{opsx-types-hVFHL9Cb.d.mts → opsx-types-r1oKVWgZ.d.mts} +302 -280
  34. package/dist/{planning-cli-projection-BUU26bEw.mjs → planning-cli-projection-C4eG7-Yr.mjs} +27 -5
  35. package/dist/planning-cli-projection.d.mts +20 -20
  36. package/dist/planning-cli-projection.mjs +5 -5
  37. package/dist/{schemas-Ce7B_SNx.d.mts → schemas-pfpqDlAd.d.mts} +208 -208
  38. package/dist/{sounds-DzDkqTIX.d.mts → sounds-B0GiWqBN.d.mts} +4 -4
  39. package/dist/sounds.d.mts +1 -1
  40. package/dist/{spec-catalog-DshONoJ9.mjs → spec-catalog-B8TIBzwP.mjs} +1 -1
  41. package/dist/spec-catalog.d.mts +19 -19
  42. package/dist/spec-catalog.mjs +2 -2
  43. package/dist/{store-content-projection-DV31znWA.mjs → store-content-projection-CLNY-hNu.mjs} +5 -1
  44. package/dist/{store-content-projection-BnNYyb0x.d.mts → store-content-projection-DMHTVCFM.d.mts} +126 -0
  45. package/dist/store-content-projection.d.mts +1 -1
  46. package/dist/store-content-projection.mjs +1 -1
  47. package/dist/{store-mutation-protocol-DHjp76v0.d.mts → store-mutation-protocol-DXeWtAvN.d.mts} +24 -24
  48. package/dist/store-mutation-protocol.d.mts +1 -1
  49. package/dist/{store-types-vKTsXtfb.d.mts → store-types-BghVB9Qj.d.mts} +1 -1
  50. package/dist/store-types.d.mts +5 -5
  51. package/dist/{task-progress-Bvid_Ws8.mjs → task-progress-moL-QUhJ.mjs} +29 -4
  52. package/dist/task-progress.d.mts +6 -6
  53. package/dist/task-progress.mjs +1 -1
  54. package/dist/{terminal-audio-C6kc0fbX.d.mts → terminal-audio-BpfUW_eB.d.mts} +1 -1
  55. package/dist/terminal-audio.d.mts +2 -2
  56. package/dist/terminal-control.d.mts +2 -2
  57. package/dist/{terminal-invocation-zNp8J57-.d.mts → terminal-invocation-CYibC-WC.d.mts} +68 -68
  58. package/dist/terminal-invocation.d.mts +1 -1
  59. package/dist/{translator-DZO_bY1X.d.mts → translator-BdTMcSWN.d.mts} +253 -253
  60. package/dist/translator.d.mts +1 -1
  61. package/package.json +2 -1
@@ -1,4 +1,4 @@
1
- import { Ct as CliJsonValue, Ft as CliRootSource, Lt as CliExecutor, Rt as CliResult, Tt as CliDiagnostic, f as CliDoctor, kt as CliDoctorReferenceEntry, l as OpenSpecCliContractExecutor, n as CliRootSelector, u as CliContext, xt as CliCommandResult } from "./index-D9qYKNqh.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-DPsUTX4C.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
- schema: string | null;
397
396
  context: string | null;
397
+ schema: 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
- schema: string | null;
409
408
  context: string | null;
409
+ schema: 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
- schema: string;
459
458
  context: string | null;
459
+ schema: string;
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
- schema: string;
471
470
  context: string | null;
471
+ schema: string;
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
- schema: string;
527
526
  context: string | null;
527
+ schema: string;
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
- schema: string;
539
538
  context: string | null;
539
+ schema: string;
540
540
  rules: Record<string, string[]> | null;
541
541
  operations: {
542
542
  apply: {
@@ -551,11 +551,11 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
551
551
  filePath: z.ZodString;
552
552
  revision: z.ZodString;
553
553
  }, "strict", z.ZodTypeAny, {
554
- mode: "structured";
554
+ filePath: string;
555
555
  revision: string;
556
556
  update: {
557
- schema: string;
558
557
  context: string | null;
558
+ schema: string;
559
559
  rules: Record<string, string[]> | null;
560
560
  operations: {
561
561
  apply: {
@@ -566,14 +566,14 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
566
566
  } | null;
567
567
  } | null;
568
568
  };
569
- filePath: string;
569
+ mode: "structured";
570
570
  ownerPath: string;
571
571
  }, {
572
- mode: "structured";
572
+ filePath: string;
573
573
  revision: string;
574
574
  update: {
575
- schema: string;
576
575
  context: string | null;
576
+ schema: string;
577
577
  rules: Record<string, string[]> | null;
578
578
  operations: {
579
579
  apply: {
@@ -584,7 +584,7 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
584
584
  } | null;
585
585
  } | null;
586
586
  };
587
- filePath: string;
587
+ mode: "structured";
588
588
  ownerPath: string;
589
589
  }>, z.ZodObject<{
590
590
  mode: z.ZodLiteral<"raw">;
@@ -593,16 +593,16 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
593
593
  filePath: z.ZodString;
594
594
  revision: z.ZodString;
595
595
  }, "strict", z.ZodTypeAny, {
596
+ filePath: string;
597
+ revision: string;
596
598
  mode: "raw";
597
599
  content: string;
598
- revision: string;
599
- filePath: string;
600
600
  ownerPath: string;
601
601
  }, {
602
+ filePath: string;
603
+ revision: string;
602
604
  mode: "raw";
603
605
  content: string;
604
- revision: string;
605
- filePath: string;
606
606
  ownerPath: string;
607
607
  }>]>;
608
608
  /** Revision-aware Active Root mutation request. */
@@ -1,6 +1,6 @@
1
- import "./index-D9qYKNqh.mjs";
2
- import "./document-translation-CGMD0RLA.mjs";
3
- import "./sounds-DzDkqTIX.mjs";
4
- import "./notifications-Dkoh_xrs.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-Ba57tJrq.mjs";
1
+ import "./index-DPsUTX4C.mjs";
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";
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 };
@@ -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: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
305
+ code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
306
306
  message: string;
307
307
  }, {
308
- code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
308
+ code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
309
309
  message: string;
310
310
  }>;
311
311
  }, "strip", z.ZodTypeAny, {
312
312
  error: {
313
- code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
313
+ code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
314
314
  message: string;
315
315
  };
316
316
  ok: false;
317
317
  }, {
318
318
  error: {
319
- code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
319
+ code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
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: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
341
+ code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
342
342
  message: string;
343
343
  }, {
344
- code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
344
+ code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
345
345
  message: string;
346
346
  }>;
347
347
  }, "strip", z.ZodTypeAny, {
348
348
  error: {
349
- code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
349
+ code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
350
350
  message: string;
351
351
  };
352
352
  ok: false;
353
353
  }, {
354
354
  error: {
355
- code: "INVALID_REQUEST" | "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH";
355
+ code: "UNSUPPORTED" | "INVALID_DIRECTORY" | "SPAWN_FAILED" | "GENERATION_MISMATCH" | "INVALID_REQUEST";
356
356
  message: string;
357
357
  };
358
358
  ok: false;
@@ -1,4 +1,4 @@
1
- import { Ct as CliJsonValue, xt as CliCommandResult } from "./index-D9qYKNqh.mjs";
1
+ import { Ct as CliCommandResult, Tt as CliJsonValue } from "./index-DPsUTX4C.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
- error: null;
219
218
  identity: string;
219
+ workGeneration: number;
220
+ snapshotGeneration: null;
221
+ error: null;
220
222
  state: "loading";
221
223
  data: null;
222
224
  freshness: null;
223
- snapshotGeneration: null;
224
- workGeneration: number;
225
225
  invalidationCause: "initial" | "dependency" | "explicit-refresh" | "subscriber-resume";
226
226
  }, {
227
- error: null;
228
227
  identity: string;
228
+ workGeneration: number;
229
+ snapshotGeneration: null;
230
+ error: null;
229
231
  state: "loading";
230
232
  data: null;
231
233
  freshness: null;
232
- snapshotGeneration: null;
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;
@@ -409,14 +412,14 @@ declare function createCliProjectionStateSchema<TOutput, TInput>(dataSchema: z.Z
409
412
  contractError?: string | undefined;
410
413
  } | null;
411
414
  };
412
- identity: string;
413
415
  state: "error";
414
416
  data: null;
415
417
  freshness: null;
416
- snapshotGeneration: null;
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;
@@ -436,12 +439,9 @@ declare function createCliProjectionStateSchema<TOutput, TInput>(dataSchema: z.Z
436
439
  contractError?: string | undefined;
437
440
  } | null;
438
441
  };
439
- identity: string;
440
442
  state: "error";
441
443
  data: null;
442
444
  freshness: null;
443
- snapshotGeneration: null;
444
- workGeneration: number;
445
445
  invalidationCause: "initial" | "dependency" | "explicit-refresh" | "subscriber-resume";
446
446
  }>, z.ZodObject<{
447
447
  state: z.ZodLiteral<"refresh-error">;
@@ -762,15 +762,15 @@ declare const CliProjectionNoticeSchema: z.ZodObject<{
762
762
  invalidationCause: z.ZodEnum<["initial", "dependency", "explicit-refresh", "subscriber-resume"]>;
763
763
  }, "strip", z.ZodTypeAny, {
764
764
  identity: string;
765
- state: "error" | "ready" | "loading" | "revalidating" | "refresh-error";
766
- snapshotGeneration: number | null;
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
770
  identity: string;
771
- state: "error" | "ready" | "loading" | "revalidating" | "refresh-error";
772
- snapshotGeneration: number | null;
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-D9qYKNqh.mjs";
2
- import "./document-translation-CGMD0RLA.mjs";
3
- import "./sounds-DzDkqTIX.mjs";
4
- import "./notifications-Dkoh_xrs.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-CvtX601c.mjs";
1
+ import "./index-DPsUTX4C.mjs";
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";
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-03 Asia/Shanghai):
6
+ * Orthogonal intents (updated 2026-09-12 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`.
@@ -17,13 +17,37 @@ import { z } from "zod";
17
17
  * the upstream-guaranteed invariants (non-empty per-item issues, returnedItems bounded
18
18
  * by totalItems), and the union guard validates the discriminator shape rather than
19
19
  * mere `report`-key presence.
20
+ * 8. Type the OpenSpec 1.13 Apply Instructions `missingPrerequisites` (build-order closure,
21
+ * present even when ready) and `warnings` (no-delta-specs advisory) as additive optional
22
+ * success members that never gain default empty arrays, never alter `state`/`progress`/
23
+ * `tasks`/`missingArtifacts` semantics, and stay verbatim CLI evidence.
24
+ * 9. Type the OpenSpec 1.13.1 change-list `nested` entry member and top-level `warnings`
25
+ * array as additive optional facts (absent when empty, never null): an entry carrying
26
+ * `nested` is a namespace folder, not an actionable change; `code` stays an open string
27
+ * because an in-window patch may add codes beyond `nested_change_directory`.
20
28
  *
21
29
  * Original request (2026-07-15): "为不同命令建立强类型适配器,不实现平行解析规则。"
22
30
  * Original request (2026-07-26): "展开全面的接口升级和内核升级和测试升级。"
23
31
  * Original request (2026-08-15): "v9的适配需要同时适配 1.8和1.9。"
24
32
  * Original request (2026-08-28): "直接将 0.10.0 和 0.11.0 一起适配,然后发布 v11。"
25
33
  * Original request (2026-09-03): "Openspec 1.12.0 刚刚放出来,你更新一下,调查变更内容,然后开始规划适配工作,我们将用标准工作流worktree来推进"
34
+ * Original request (2026-09-12): "Openspec 1.13.0 释放了,你更新一下,调查变更内容,然后开始规划适配工作,我们将用标准工作流worktree来推进。让 codex 参与。"
35
+ * Original request (2026-09-17): "Openspec 1.13.1 释放了…" — change-list nested/warnings projection (update-openspec-cli-1131 Slice 2).
26
36
  */
37
+ /**
38
+ * One top-level change-list hygiene warning (OpenSpec 1.13.1 `list --json`).
39
+ *
40
+ * `code` is an open string, not a literal: the upstream contract documents
41
+ * `nested_change_directory` as the only current code while reserving room for more, so an
42
+ * in-window patch adding a code must survive decode as evidence instead of failing the
43
+ * whole document. The whole array is absent when empty (never `null`, never `[]`).
44
+ */
45
+ const CliChangeListWarningSchema = z.object({
46
+ code: z.string(),
47
+ name: z.string(),
48
+ nested: z.array(z.string()),
49
+ message: z.string()
50
+ }).passthrough();
27
51
  const CliChangeListEntrySchema = z.object({
28
52
  name: z.string(),
29
53
  completedTasks: z.number(),
@@ -33,11 +57,13 @@ const CliChangeListEntrySchema = z.object({
33
57
  "no-tasks",
34
58
  "complete",
35
59
  "in-progress"
36
- ])
60
+ ]),
61
+ nested: z.array(z.string()).optional()
37
62
  }).passthrough();
38
63
  /** Typed result of the CLI change-list JSON command. */
39
64
  const CliChangeListSchema = z.object({
40
65
  changes: z.array(CliChangeListEntrySchema),
66
+ warnings: z.array(CliChangeListWarningSchema).optional(),
41
67
  root: CliRootSchema.nullable(),
42
68
  status: z.array(CliDiagnosticSchema).optional()
43
69
  }).passthrough();
@@ -214,6 +240,8 @@ const CliApplyInstructionsSuccessSchema = z.object({
214
240
  "ready"
215
241
  ]),
216
242
  missingArtifacts: z.array(z.string()).optional(),
243
+ missingPrerequisites: z.array(z.string()).optional(),
244
+ warnings: z.array(z.string()).optional(),
217
245
  instruction: z.string(),
218
246
  references: z.array(CliReferenceIndexEntrySchema).optional(),
219
247
  context: z.string().optional(),
@@ -445,4 +473,4 @@ function parseCliCommandResult(result, schema) {
445
473
  }
446
474
 
447
475
  //#endregion
448
- export { isCliValidateFindings as A, CliValidateFindingsResultSchema as C, CliWorkflowStatusFieldsSchema as D, CliValidateSchema as E, CliWorkflowStatusSchema as O, CliTemplatesSchema as S, CliValidateReportSchema as T, CliShowSpecDocumentSchema as _, CliApplyInstructionsSuccessSchema as a, CliSpecRequirementSchema as b, CliArchiveSchema as c, CliArtifactPathSchema as d, CliChangeListSchema as f, CliSchemaWhichSchema as g, CliSchemaShadowSchema as h, CliApplyInstructionsSchema as i, CliWorkflowStatusSuccessSchema as k, CliArtifactInstructionsSchema as l, CliSchemaResolutionSchema as m, parseCliCommandResult as n, CliArchiveInstructionsSchema as o, CliPlanningHomeSchema as p, CliActionContextSchema as r, CliArchiveInstructionsSuccessSchema as s, CliCommandTransportSchema as t, CliArtifactInstructionsSuccessSchema as u, CliShowSpecSchema as v, CliValidateFindingsSchema as w, CliTemplateEntrySchema as x, CliSpecListSchema as y };
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 };