@openspecui/core 13.0.0 → 13.0.2

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 (59) hide show
  1. package/dist/{active-root-config-_ZXqUzpc.d.mts → active-root-config-DvfqdWF7.d.mts} +19 -19
  2. package/dist/active-root-config.d.mts +5 -5
  3. package/dist/{cli-projection-D932MJzB.d.mts → cli-projection-CXrDqHG1.d.mts} +1 -1
  4. package/dist/cli-projection.d.mts +5 -5
  5. package/dist/{command-result-Eq147Dt4.mjs → command-result-DqV3-Bf9.mjs} +36 -4
  6. package/dist/{dashboard-summary-transport-DS-bPqn1.d.mts → dashboard-summary-transport-C4sdZq07.d.mts} +4298 -4038
  7. package/dist/dashboard-summary-transport.d.mts +19 -19
  8. package/dist/{document-translation-DM2eydNr.d.mts → document-translation-CGMD0RLA.d.mts} +2 -2
  9. package/dist/document-translation.d.mts +1 -1
  10. package/dist/{hosted-app-CHqdo5vd.mjs → hosted-app-DWYFMLkw.mjs} +1 -1
  11. package/dist/hosted-app.d.mts +19 -19
  12. package/dist/hosted-app.mjs +3 -3
  13. package/dist/{hosted-contract-Qe5AmkiE.mjs → hosted-contract-SsTBQklx.mjs} +1 -1
  14. package/dist/hosted-contract.d.mts +19 -19
  15. package/dist/hosted-contract.mjs +2 -2
  16. package/dist/{index-zESQZeBd.d.mts → index-D9LApBD3.d.mts} +234 -52
  17. package/dist/index.d.mts +20 -20
  18. package/dist/index.mjs +30 -14
  19. package/dist/{local-download-profiles-Dj0nGG1k.d.mts → local-download-profiles-DtOKu_Qa.d.mts} +1 -1
  20. package/dist/local-download-profiles.d.mts +2 -2
  21. package/dist/{notifications-DwiGoWFM.d.mts → notifications-B72cq-2I.d.mts} +12 -12
  22. package/dist/notifications.d.mts +2 -2
  23. package/dist/openspec-compat.d.mts +4 -4
  24. package/dist/openspec-compat.mjs +1 -1
  25. package/dist/{openspec-projection-MyG567IF.d.mts → openspec-projection-Dm-H-UMk.d.mts} +1 -1
  26. package/dist/openspec-projection.d.mts +2 -2
  27. package/dist/{opsx-entity-BsYtWdkc.d.mts → opsx-entity-C4DJzbUg.d.mts} +2 -2
  28. package/dist/opsx-entity.d.mts +7 -7
  29. package/dist/{opsx-schema-detail-Cbg1qHlw.d.mts → opsx-schema-detail-CnTtGQsR.d.mts} +2 -2
  30. package/dist/opsx-schema-detail.d.mts +8 -8
  31. package/dist/{opsx-types-8fxRIEhj.d.mts → opsx-types-BbERbtH2.d.mts} +326 -253
  32. package/dist/{planning-cli-projection-CttkbBh9.mjs → planning-cli-projection-DpQfHj61.mjs} +58 -6
  33. package/dist/planning-cli-projection.d.mts +20 -20
  34. package/dist/planning-cli-projection.mjs +5 -5
  35. package/dist/{schemas-CdprtB2t.d.mts → schemas-Bmw7OKBb.d.mts} +174 -174
  36. package/dist/{sounds-BCmBc3Lm.d.mts → sounds-BpMOHwvO.d.mts} +13 -13
  37. package/dist/sounds.d.mts +1 -1
  38. package/dist/{spec-catalog-DYJ4dxTY.mjs → spec-catalog-Cx_PE3WR.mjs} +1 -1
  39. package/dist/spec-catalog.d.mts +19 -19
  40. package/dist/spec-catalog.mjs +2 -2
  41. package/dist/{store-content-projection-DV31znWA.mjs → store-content-projection-CLNY-hNu.mjs} +5 -1
  42. package/dist/{store-content-projection-BnNYyb0x.d.mts → store-content-projection-DMHTVCFM.d.mts} +126 -0
  43. package/dist/store-content-projection.d.mts +1 -1
  44. package/dist/store-content-projection.mjs +1 -1
  45. package/dist/{store-mutation-protocol-C9xgZkNh.d.mts → store-mutation-protocol-DXeWtAvN.d.mts} +24 -24
  46. package/dist/store-mutation-protocol.d.mts +1 -1
  47. package/dist/{store-types-Ch6RIfO6.d.mts → store-types-DzBETNjJ.d.mts} +1 -1
  48. package/dist/store-types.d.mts +5 -5
  49. package/dist/{task-progress-Bvid_Ws8.mjs → task-progress-moL-QUhJ.mjs} +29 -4
  50. package/dist/task-progress.d.mts +6 -6
  51. package/dist/task-progress.mjs +1 -1
  52. package/dist/{terminal-audio-uas32Aa-.d.mts → terminal-audio-BZDsms7w.d.mts} +2 -2
  53. package/dist/terminal-audio.d.mts +2 -2
  54. package/dist/terminal-control.d.mts +2 -2
  55. package/dist/{terminal-invocation-DSEgzEiU.d.mts → terminal-invocation-BA-nywHh.d.mts} +101 -101
  56. package/dist/terminal-invocation.d.mts +1 -1
  57. package/dist/{translator-2hRDPD9f.d.mts → translator-C_jPrCMR.d.mts} +35 -35
  58. package/dist/translator.d.mts +1 -1
  59. package/package.json +2 -2
@@ -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-zESQZeBd.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-D9LApBD3.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,9 +551,12 @@ 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";
554
557
  update: {
555
- schema: string;
556
558
  context: string | null;
559
+ schema: string;
557
560
  rules: Record<string, string[]> | null;
558
561
  operations: {
559
562
  apply: {
@@ -564,14 +567,14 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
564
567
  } | null;
565
568
  } | null;
566
569
  };
567
- mode: "structured";
568
- revision: string;
569
- filePath: string;
570
570
  ownerPath: string;
571
571
  }, {
572
+ filePath: string;
573
+ revision: string;
574
+ mode: "structured";
572
575
  update: {
573
- schema: string;
574
576
  context: string | null;
577
+ schema: string;
575
578
  rules: Record<string, string[]> | null;
576
579
  operations: {
577
580
  apply: {
@@ -582,9 +585,6 @@ declare const ActiveRootMutationSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodOb
582
585
  } | null;
583
586
  } | null;
584
587
  };
585
- mode: "structured";
586
- revision: string;
587
- filePath: string;
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-zESQZeBd.mjs";
2
- import "./document-translation-DM2eydNr.mjs";
3
- import "./sounds-BCmBc3Lm.mjs";
4
- import "./notifications-DwiGoWFM.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-_ZXqUzpc.mjs";
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";
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 };
@@ -1,4 +1,4 @@
1
- import { Ct as CliJsonValue, xt as CliCommandResult } from "./index-zESQZeBd.mjs";
1
+ import { Ct as CliCommandResult, Tt as CliJsonValue } from "./index-D9LApBD3.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/cli-projection.d.ts
@@ -1,6 +1,6 @@
1
- import "./index-zESQZeBd.mjs";
2
- import "./document-translation-DM2eydNr.mjs";
3
- import "./sounds-BCmBc3Lm.mjs";
4
- import "./notifications-DwiGoWFM.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-D932MJzB.mjs";
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";
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-09-26 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`.
@@ -21,14 +21,39 @@ import { z } from "zod";
21
21
  * present even when ready) and `warnings` (no-delta-specs advisory) as additive optional
22
22
  * success members that never gain default empty arrays, never alter `state`/`progress`/
23
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`.
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.
24
33
  *
25
34
  * Original request (2026-07-15): "为不同命令建立强类型适配器,不实现平行解析规则。"
26
35
  * Original request (2026-07-26): "展开全面的接口升级和内核升级和测试升级。"
27
36
  * Original request (2026-08-15): "v9的适配需要同时适配 1.8和1.9。"
28
37
  * Original request (2026-08-28): "直接将 0.10.0 和 0.11.0 一起适配,然后发布 v11。"
29
- * Original request (2026-09-03): "Openspec 1.12.0 刚刚放出来,你更新一下,调查变更内容,然后开始规划适配工作,我们将用标准工作流worktree来推进"
38
+ * Original request (2026-09-03): "Openspec 1.12.0 刚刚放出来,你更新一下,调查变更内容,然后开始规划适配工作,我们将用标准工作流worktree来推进。"
30
39
  * Original request (2026-09-12): "Openspec 1.13.0 释放了,你更新一下,调查变更内容,然后开始规划适配工作,我们将用标准工作流worktree来推进。让 codex 参与。"
40
+ * Original request (2026-09-17): "Openspec 1.13.1 释放了…" — change-list nested/warnings projection (update-openspec-cli-1131 Slice 2).
41
+ * Original request (2026-09-26): "Openspec 1.13.2 释放了…" — Apply tracking-evidence decode contract (update-openspec-cli-1132 Slice 2).
31
42
  */
43
+ /**
44
+ * One top-level change-list hygiene warning (OpenSpec 1.13.1 `list --json`).
45
+ *
46
+ * `code` is an open string, not a literal: the upstream contract documents
47
+ * `nested_change_directory` as the only current code while reserving room for more, so an
48
+ * in-window patch adding a code must survive decode as evidence instead of failing the
49
+ * whole document. The whole array is absent when empty (never `null`, never `[]`).
50
+ */
51
+ const CliChangeListWarningSchema = z.object({
52
+ code: z.string(),
53
+ name: z.string(),
54
+ nested: z.array(z.string()),
55
+ message: z.string()
56
+ }).passthrough();
32
57
  const CliChangeListEntrySchema = z.object({
33
58
  name: z.string(),
34
59
  completedTasks: z.number(),
@@ -38,11 +63,13 @@ const CliChangeListEntrySchema = z.object({
38
63
  "no-tasks",
39
64
  "complete",
40
65
  "in-progress"
41
- ])
66
+ ]),
67
+ nested: z.array(z.string()).optional()
42
68
  }).passthrough();
43
69
  /** Typed result of the CLI change-list JSON command. */
44
70
  const CliChangeListSchema = z.object({
45
71
  changes: z.array(CliChangeListEntrySchema),
72
+ warnings: z.array(CliChangeListWarningSchema).optional(),
46
73
  root: CliRootSchema.nullable(),
47
74
  status: z.array(CliDiagnosticSchema).optional()
48
75
  }).passthrough();
@@ -221,6 +248,11 @@ const CliApplyInstructionsSuccessSchema = z.object({
221
248
  missingArtifacts: z.array(z.string()).optional(),
222
249
  missingPrerequisites: z.array(z.string()).optional(),
223
250
  warnings: z.array(z.string()).optional(),
251
+ taskTrackingConfigured: z.boolean().optional(),
252
+ unavailableTrackingFiles: z.array(z.object({
253
+ path: z.string(),
254
+ reason: z.string()
255
+ })).optional(),
224
256
  instruction: z.string(),
225
257
  references: z.array(CliReferenceIndexEntrySchema).optional(),
226
258
  context: z.string().optional(),
@@ -452,4 +484,4 @@ function parseCliCommandResult(result, schema) {
452
484
  }
453
485
 
454
486
  //#endregion
455
- 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 };
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 };