@openspecui/core 3.6.0 → 3.7.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 (63) hide show
  1. package/dist/document-translation-CEI09yZe.mjs +13 -0
  2. package/dist/document-translation-CuCbRCNb.d.mts +22 -0
  3. package/dist/document-translation.d.mts +2 -0
  4. package/dist/document-translation.mjs +3 -0
  5. package/dist/hosted-app.d.mts +1 -1
  6. package/dist/hosted-app.mjs +1 -1
  7. package/dist/index.d.mts +52 -432
  8. package/dist/index.mjs +47 -62
  9. package/dist/markdown-facts.d.mts +1 -1
  10. package/dist/markdown-facts.mjs +1 -1
  11. package/dist/{markdown-reading-D36W693c.d.mts → markdown-reading-BC6uFgx0.d.mts} +10 -2
  12. package/dist/{markdown-reading-CrchEfoW.mjs → markdown-reading-CsL1q84q.mjs} +23 -4
  13. package/dist/markdown-reading.d.mts +3 -3
  14. package/dist/markdown-reading.mjs +3 -3
  15. package/dist/{notifications-C4amULI4.d.mts → notifications-CbKmEdCU.d.mts} +1 -1
  16. package/dist/{notifications-fD-V5hyP.mjs → notifications-DXOoOJ3m.mjs} +2 -2
  17. package/dist/notifications.d.mts +2 -2
  18. package/dist/notifications.mjs +3 -3
  19. package/dist/{openspec-annotations-CJmYcfAu.d.mts → openspec-annotations-DKP1Uuho.d.mts} +2 -2
  20. package/dist/{openspec-annotations-BMy9nWUe.mjs → openspec-annotations-D_xQqQOB.mjs} +2 -2
  21. package/dist/openspec-annotations.d.mts +3 -3
  22. package/dist/openspec-annotations.mjs +3 -3
  23. package/dist/openspec-projection-Co3CUAHe.d.mts +52 -0
  24. package/dist/{openspec-projection-DWqBxedv.mjs → openspec-projection-DLGD1JFD.mjs} +2 -2
  25. package/dist/openspec-projection.d.mts +5 -4
  26. package/dist/openspec-projection.mjs +4 -4
  27. package/dist/opsx-display-path.d.mts +1 -1
  28. package/dist/opsx-display-path.mjs +1 -1
  29. package/dist/opsx-entity-B_Od4N3r.mjs +144 -0
  30. package/dist/opsx-entity-Cz89hbt3.d.mts +453 -0
  31. package/dist/opsx-entity.d.mts +3 -0
  32. package/dist/opsx-entity.mjs +3 -0
  33. package/dist/opsx-schema-detail-Bh-aNaSk.mjs +114 -0
  34. package/dist/opsx-schema-detail-CuDl2xjZ.d.mts +12 -0
  35. package/dist/opsx-schema-detail.d.mts +4 -0
  36. package/dist/opsx-schema-detail.mjs +3 -0
  37. package/dist/{openspec-projection-DTuKPTgf.d.mts → schemas-q7tGvvxx.d.mts} +9 -58
  38. package/dist/sounds.d.mts +1 -1
  39. package/dist/sounds.mjs +1 -1
  40. package/dist/{terminal-audio-UEv3j655.mjs → terminal-audio-BiQ9qJJW.mjs} +1 -1
  41. package/dist/{terminal-audio-U9Exv9A5.d.mts → terminal-audio-Dmi6lR7o.d.mts} +1 -1
  42. package/dist/terminal-audio.d.mts +2 -2
  43. package/dist/terminal-audio.mjs +2 -2
  44. package/dist/terminal-control.d.mts +2 -2
  45. package/dist/terminal-control.mjs +1 -1
  46. package/dist/{terminal-invocation-BmwWgwgY.d.mts → terminal-invocation-C733ofmf.d.mts} +6 -6
  47. package/dist/terminal-invocation.d.mts +1 -1
  48. package/dist/terminal-invocation.mjs +1 -1
  49. package/dist/terminal-theme.d.mts +1 -1
  50. package/dist/terminal-theme.mjs +1 -1
  51. package/package.json +15 -3
  52. /package/dist/{hosted-app-DFFffbJc.mjs → hosted-app-Bl5W6LWQ.mjs} +0 -0
  53. /package/dist/{hosted-app-DZrYivji.d.mts → hosted-app-DHrXW3jc.d.mts} +0 -0
  54. /package/dist/{markdown-facts-BmSmZmpB.mjs → markdown-facts-BFqXdPfN.mjs} +0 -0
  55. /package/dist/{markdown-facts-f3kXnqXb.d.mts → markdown-facts-DxElzSsp.d.mts} +0 -0
  56. /package/dist/{opsx-display-path-D4KLYRXQ.mjs → opsx-display-path-BHEPZsJx.mjs} +0 -0
  57. /package/dist/{opsx-display-path-CkV9sq_j.d.mts → opsx-display-path-BKUYCqwP.d.mts} +0 -0
  58. /package/dist/{sounds-CYxOpEdm.d.mts → sounds-BORGLPIt.d.mts} +0 -0
  59. /package/dist/{sounds-BzNKMW05.mjs → sounds-Ctm3QEtf.mjs} +0 -0
  60. /package/dist/{terminal-control-Bxois59k.mjs → terminal-control-CMkG-o9C.mjs} +0 -0
  61. /package/dist/{terminal-invocation-BRCuSBjE.mjs → terminal-invocation-CX1LDM89.mjs} +0 -0
  62. /package/dist/{terminal-theme-CIv3YMfi.mjs → terminal-theme-BOGPIiVm.mjs} +0 -0
  63. /package/dist/{terminal-theme-lPZGfVA_.d.mts → terminal-theme-DdhVuegL.d.mts} +0 -0
@@ -0,0 +1,114 @@
1
+ import { parse } from "yaml";
2
+
3
+ //#region src/opsx-schema-detail.ts
4
+ function isRecord(value) {
5
+ return value !== null && typeof value === "object" && !Array.isArray(value);
6
+ }
7
+ function stringField(record, key) {
8
+ const value = record[key];
9
+ return typeof value === "string" && value.trim().length > 0 ? value.trim() : void 0;
10
+ }
11
+ function stringOrNumberField(record, key) {
12
+ const value = record[key];
13
+ if (typeof value === "string" && value.trim().length > 0) return value.trim();
14
+ if (typeof value === "number" && Number.isFinite(value)) return value;
15
+ }
16
+ function stringArrayField(record, key) {
17
+ const value = record[key];
18
+ if (!Array.isArray(value)) return [];
19
+ return value.filter((item) => typeof item === "string" && item.length > 0);
20
+ }
21
+ function parseOpsxSchemaDetail(content, fallbackName, options = {}) {
22
+ const path = options.path ?? "schema.yaml";
23
+ const diagnostics = [];
24
+ let raw;
25
+ try {
26
+ raw = parse(content);
27
+ } catch (error) {
28
+ diagnostics.push({
29
+ level: "warning",
30
+ path,
31
+ message: `Schema YAML could not be parsed: ${error instanceof Error ? error.message : String(error)}`
32
+ });
33
+ return {
34
+ detail: {
35
+ name: fallbackName,
36
+ artifacts: [],
37
+ applyRequires: []
38
+ },
39
+ diagnostics
40
+ };
41
+ }
42
+ if (!isRecord(raw)) {
43
+ diagnostics.push({
44
+ level: "warning",
45
+ path,
46
+ message: "Schema YAML is not an object; artifact binding is unavailable."
47
+ });
48
+ return {
49
+ detail: {
50
+ name: fallbackName,
51
+ artifacts: [],
52
+ applyRequires: []
53
+ },
54
+ diagnostics
55
+ };
56
+ }
57
+ const artifactsRaw = raw.artifacts;
58
+ const artifacts = [];
59
+ if (Array.isArray(artifactsRaw)) artifactsRaw.forEach((item, index) => {
60
+ const artifactPath = `${path}:artifacts[${index}]`;
61
+ if (!isRecord(item)) {
62
+ diagnostics.push({
63
+ level: "warning",
64
+ path: artifactPath,
65
+ message: "Schema artifact is not an object and was skipped."
66
+ });
67
+ return;
68
+ }
69
+ const id = stringField(item, "id");
70
+ const outputPath = stringField(item, "generates") ?? stringField(item, "outputPath");
71
+ if (!id || !outputPath) {
72
+ diagnostics.push({
73
+ level: "warning",
74
+ path: artifactPath,
75
+ message: "Schema artifact is missing a usable id or output path and was skipped."
76
+ });
77
+ return;
78
+ }
79
+ artifacts.push({
80
+ id,
81
+ outputPath,
82
+ description: stringField(item, "description"),
83
+ template: stringField(item, "template"),
84
+ instruction: stringField(item, "instruction"),
85
+ requires: stringArrayField(item, "requires")
86
+ });
87
+ });
88
+ else if (artifactsRaw !== void 0) diagnostics.push({
89
+ level: "warning",
90
+ path,
91
+ message: "Schema artifacts must be an array; artifact binding is unavailable."
92
+ });
93
+ const apply = isRecord(raw.apply) ? raw.apply : {};
94
+ if (raw.apply !== void 0 && !isRecord(raw.apply)) diagnostics.push({
95
+ level: "warning",
96
+ path,
97
+ message: "Schema apply block is not an object and was ignored."
98
+ });
99
+ return {
100
+ detail: {
101
+ name: stringField(raw, "name") ?? fallbackName,
102
+ description: stringField(raw, "description"),
103
+ version: stringOrNumberField(raw, "version"),
104
+ artifacts,
105
+ applyRequires: stringArrayField(apply, "requires"),
106
+ applyTracks: stringField(apply, "tracks"),
107
+ applyInstruction: stringField(apply, "instruction")
108
+ },
109
+ diagnostics
110
+ };
111
+ }
112
+
113
+ //#endregion
114
+ export { parseOpsxSchemaDetail as t };
@@ -0,0 +1,12 @@
1
+ import { i as OpsxEntityDiagnostic, j as SchemaDetail } from "./opsx-entity-Cz89hbt3.mjs";
2
+
3
+ //#region src/opsx-schema-detail.d.ts
4
+ interface ParsedOpsxSchemaDetail {
5
+ detail: SchemaDetail;
6
+ diagnostics: OpsxEntityDiagnostic[];
7
+ }
8
+ declare function parseOpsxSchemaDetail(content: string, fallbackName: string, options?: {
9
+ path?: string;
10
+ }): ParsedOpsxSchemaDetail;
11
+ //#endregion
12
+ export { parseOpsxSchemaDetail as n, ParsedOpsxSchemaDetail as t };
@@ -0,0 +1,4 @@
1
+ import "./opsx-entity-Cz89hbt3.mjs";
2
+ import "./schemas-q7tGvvxx.mjs";
3
+ import { n as parseOpsxSchemaDetail, t as ParsedOpsxSchemaDetail } from "./opsx-schema-detail-CuDl2xjZ.mjs";
4
+ export { ParsedOpsxSchemaDetail, parseOpsxSchemaDetail };
@@ -0,0 +1,3 @@
1
+ import { t as parseOpsxSchemaDetail } from "./opsx-schema-detail-Bh-aNaSk.mjs";
2
+
3
+ export { parseOpsxSchemaDetail };
@@ -1,5 +1,3 @@
1
- import { d as MarkdownReadingPlugin, l as MarkdownReadingDocument } from "./markdown-reading-D36W693c.mjs";
2
- import { n as OpenSpecAnnotation, t as AnnotatedOpenSpecDocument } from "./openspec-annotations-CJmYcfAu.mjs";
3
1
  import { z } from "zod";
4
2
 
5
3
  //#region src/schemas.d.ts
@@ -962,6 +960,10 @@ declare const ChangeSchema: z.ZodObject<{
962
960
  }, "strip", z.ZodTypeAny, {
963
961
  id: string;
964
962
  name: string;
963
+ progress: {
964
+ completed: number;
965
+ total: number;
966
+ };
965
967
  why: string;
966
968
  whatChanges: string;
967
969
  deltas: {
@@ -1011,10 +1013,6 @@ declare const ChangeSchema: z.ZodObject<{
1011
1013
  completed: boolean;
1012
1014
  section?: string | undefined;
1013
1015
  }[];
1014
- progress: {
1015
- completed: number;
1016
- total: number;
1017
- };
1018
1016
  metadata?: {
1019
1017
  version: string;
1020
1018
  format: "openspec-change";
@@ -1027,6 +1025,10 @@ declare const ChangeSchema: z.ZodObject<{
1027
1025
  }, {
1028
1026
  id: string;
1029
1027
  name: string;
1028
+ progress: {
1029
+ completed: number;
1030
+ total: number;
1031
+ };
1030
1032
  why: string;
1031
1033
  whatChanges: string;
1032
1034
  deltas: {
@@ -1076,10 +1078,6 @@ declare const ChangeSchema: z.ZodObject<{
1076
1078
  completed: boolean;
1077
1079
  section?: string | undefined;
1078
1080
  }[];
1079
- progress: {
1080
- completed: number;
1081
- total: number;
1082
- };
1083
1081
  metadata?: {
1084
1082
  version?: string | undefined;
1085
1083
  format?: "openspec-change" | undefined;
@@ -1092,51 +1090,4 @@ declare const ChangeSchema: z.ZodObject<{
1092
1090
  }>;
1093
1091
  type Change = z.infer<typeof ChangeSchema>;
1094
1092
  //#endregion
1095
- //#region src/openspec-projection.d.ts
1096
- declare const OPEN_SPEC_SPEC_PROJECTION_ID = "openspec.projection.spec.v2";
1097
- declare const OPEN_SPEC_READING_SECTIONS_PROJECTION_ID = "openspec.projection.reading-sections.v2";
1098
- type SpecSectionKind = 'overview' | 'requirements' | 'other';
1099
- interface OpenSpecProjectionOptions {
1100
- specId: string;
1101
- }
1102
- interface OpenSpecHeadingSection {
1103
- id: string;
1104
- title: string;
1105
- kind: SpecSectionKind;
1106
- factId: string;
1107
- start: number;
1108
- end: number;
1109
- }
1110
- interface OpenSpecRequirementBlock {
1111
- id: string;
1112
- title: string;
1113
- factId: string;
1114
- start: number;
1115
- end: number;
1116
- scenarios: OpenSpecScenarioBlock[];
1117
- }
1118
- interface OpenSpecScenarioBlock {
1119
- title: string;
1120
- factId: string;
1121
- start: number;
1122
- end: number;
1123
- }
1124
- interface OpenSpecReadingSectionsProjection {
1125
- sections: OpenSpecHeadingSection[];
1126
- requirements: OpenSpecRequirementBlock[];
1127
- }
1128
- interface ProjectedOpenSpecDocument extends MarkdownReadingDocument {
1129
- annotations: OpenSpecAnnotation[];
1130
- projections: MarkdownReadingDocument['projections'] & {
1131
- [OPEN_SPEC_SPEC_PROJECTION_ID]?: Spec;
1132
- [OPEN_SPEC_READING_SECTIONS_PROJECTION_ID]?: OpenSpecReadingSectionsProjection;
1133
- };
1134
- }
1135
- declare function createOpenSpecReadingPlugin(options: OpenSpecProjectionOptions): MarkdownReadingPlugin;
1136
- declare function parseOpenSpecMarkdownToSpec(specId: string, content: string): Spec;
1137
- declare function projectOpenSpecMarkdown(sourceMarkdown: string, options: OpenSpecProjectionOptions, plugins?: readonly MarkdownReadingPlugin[]): ProjectedOpenSpecDocument;
1138
- declare function projectAnnotatedOpenSpecToSpec(specId: string, document: AnnotatedOpenSpecDocument): Spec;
1139
- declare function getOpenSpecReadingSections(document: Pick<MarkdownReadingDocument, 'facts' | 'annotations' | 'sourceMarkdown'>): OpenSpecReadingSectionsProjection;
1140
- declare function getOpenSpecProjectionAnnotation(annotations: readonly OpenSpecAnnotation[], factId: string, kind: OpenSpecAnnotation['kind']): OpenSpecAnnotation | undefined;
1141
- //#endregion
1142
- export { Spec as A, DeltaSpec as C, ScenarioStep as D, RequirementSchema as E, Task as M, TaskSchema as N, ScenarioStepKeywordSchema as O, DeltaSchema as S, Requirement as T, ChangeFileSchema as _, OpenSpecReadingSectionsProjection as a, DeltaOperation as b, ProjectedOpenSpecDocument as c, getOpenSpecReadingSections as d, parseOpenSpecMarkdownToSpec as f, ChangeFile as g, Change as h, OpenSpecProjectionOptions as i, SpecSchema as j, ScenarioStepSchema as k, createOpenSpecReadingPlugin as l, projectOpenSpecMarkdown as m, OPEN_SPEC_SPEC_PROJECTION_ID as n, OpenSpecRequirementBlock as o, projectAnnotatedOpenSpecToSpec as p, OpenSpecHeadingSection as r, OpenSpecScenarioBlock as s, OPEN_SPEC_READING_SECTIONS_PROJECTION_ID as t, getOpenSpecProjectionAnnotation as u, ChangeSchema as v, DeltaSpecSchema as w, DeltaOperationType as x, Delta as y };
1093
+ export { SpecSchema as _, Delta as a, DeltaSchema as c, Requirement as d, RequirementSchema as f, Spec as g, ScenarioStepSchema as h, ChangeSchema as i, DeltaSpec as l, ScenarioStepKeywordSchema as m, ChangeFile as n, DeltaOperation as o, ScenarioStep as p, ChangeFileSchema as r, DeltaOperationType as s, Change as t, DeltaSpecSchema as u, Task as v, TaskSchema as y };
package/dist/sounds.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { C as SoundVolume, D as normalizeLegacySoundId, E as getBuiltinSoundUrl, O as soundIdFromCustomHash, S as SoundIdSchema, T as customHashFromSoundId, _ as DEFAULT_SOUND_VOLUME, a as BuiltinSoundOption, b as SoundConfigIdSchema, c as CustomSoundHashSchema, d as CustomSoundMetadata, f as CustomSoundMetadataFile, g as DEFAULT_NOTIFICATION_SOUND_ID, h as DEFAULT_BELL_SOUND_ID, i as BuiltinSoundIdSchema, l as CustomSoundId, m as CustomSoundMetadataSchema, n as BUILTIN_SOUND_OPTIONS, o as CUSTOM_SOUND_ADD_VALUE, p as CustomSoundMetadataFileSchema, r as BuiltinSoundId, s as CustomSoundHash, t as BUILTIN_SOUND_IDS, u as CustomSoundIdSchema, v as LEGACY_SOUND_ID_MAP, w as SoundVolumeSchema, x as SoundId, y as SILENT_SOUND_ID } from "./sounds-CYxOpEdm.mjs";
1
+ import { C as SoundVolume, D as normalizeLegacySoundId, E as getBuiltinSoundUrl, O as soundIdFromCustomHash, S as SoundIdSchema, T as customHashFromSoundId, _ as DEFAULT_SOUND_VOLUME, a as BuiltinSoundOption, b as SoundConfigIdSchema, c as CustomSoundHashSchema, d as CustomSoundMetadata, f as CustomSoundMetadataFile, g as DEFAULT_NOTIFICATION_SOUND_ID, h as DEFAULT_BELL_SOUND_ID, i as BuiltinSoundIdSchema, l as CustomSoundId, m as CustomSoundMetadataSchema, n as BUILTIN_SOUND_OPTIONS, o as CUSTOM_SOUND_ADD_VALUE, p as CustomSoundMetadataFileSchema, r as BuiltinSoundId, s as CustomSoundHash, t as BUILTIN_SOUND_IDS, u as CustomSoundIdSchema, v as LEGACY_SOUND_ID_MAP, w as SoundVolumeSchema, x as SoundId, y as SILENT_SOUND_ID } from "./sounds-BORGLPIt.mjs";
2
2
  export { BUILTIN_SOUND_IDS, BUILTIN_SOUND_OPTIONS, BuiltinSoundId, BuiltinSoundIdSchema, BuiltinSoundOption, CUSTOM_SOUND_ADD_VALUE, CustomSoundHash, CustomSoundHashSchema, CustomSoundId, CustomSoundIdSchema, CustomSoundMetadata, CustomSoundMetadataFile, CustomSoundMetadataFileSchema, CustomSoundMetadataSchema, DEFAULT_BELL_SOUND_ID, DEFAULT_NOTIFICATION_SOUND_ID, DEFAULT_SOUND_VOLUME, LEGACY_SOUND_ID_MAP, SILENT_SOUND_ID, SoundConfigIdSchema, SoundId, SoundIdSchema, SoundVolume, SoundVolumeSchema, customHashFromSoundId, getBuiltinSoundUrl, normalizeLegacySoundId, soundIdFromCustomHash };
package/dist/sounds.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { _ as customHashFromSoundId, a as CustomSoundHashSchema, b as soundIdFromCustomHash, c as CustomSoundMetadataSchema, d as DEFAULT_SOUND_VOLUME, f as LEGACY_SOUND_ID_MAP, g as SoundVolumeSchema, h as SoundIdSchema, i as CUSTOM_SOUND_ADD_VALUE, l as DEFAULT_BELL_SOUND_ID, m as SoundConfigIdSchema, n as BUILTIN_SOUND_OPTIONS, o as CustomSoundIdSchema, p as SILENT_SOUND_ID, r as BuiltinSoundIdSchema, s as CustomSoundMetadataFileSchema, t as BUILTIN_SOUND_IDS, u as DEFAULT_NOTIFICATION_SOUND_ID, v as getBuiltinSoundUrl, y as normalizeLegacySoundId } from "./sounds-BzNKMW05.mjs";
1
+ import { _ as customHashFromSoundId, a as CustomSoundHashSchema, b as soundIdFromCustomHash, c as CustomSoundMetadataSchema, d as DEFAULT_SOUND_VOLUME, f as LEGACY_SOUND_ID_MAP, g as SoundVolumeSchema, h as SoundIdSchema, i as CUSTOM_SOUND_ADD_VALUE, l as DEFAULT_BELL_SOUND_ID, m as SoundConfigIdSchema, n as BUILTIN_SOUND_OPTIONS, o as CustomSoundIdSchema, p as SILENT_SOUND_ID, r as BuiltinSoundIdSchema, s as CustomSoundMetadataFileSchema, t as BUILTIN_SOUND_IDS, u as DEFAULT_NOTIFICATION_SOUND_ID, v as getBuiltinSoundUrl, y as normalizeLegacySoundId } from "./sounds-Ctm3QEtf.mjs";
2
2
 
3
3
  export { BUILTIN_SOUND_IDS, BUILTIN_SOUND_OPTIONS, BuiltinSoundIdSchema, CUSTOM_SOUND_ADD_VALUE, CustomSoundHashSchema, CustomSoundIdSchema, CustomSoundMetadataFileSchema, CustomSoundMetadataSchema, DEFAULT_BELL_SOUND_ID, DEFAULT_NOTIFICATION_SOUND_ID, DEFAULT_SOUND_VOLUME, LEGACY_SOUND_ID_MAP, SILENT_SOUND_ID, SoundConfigIdSchema, SoundIdSchema, SoundVolumeSchema, customHashFromSoundId, getBuiltinSoundUrl, normalizeLegacySoundId, soundIdFromCustomHash };
@@ -1,4 +1,4 @@
1
- import { l as DEFAULT_BELL_SOUND_ID, m as SoundConfigIdSchema } from "./sounds-BzNKMW05.mjs";
1
+ import { l as DEFAULT_BELL_SOUND_ID, m as SoundConfigIdSchema } from "./sounds-Ctm3QEtf.mjs";
2
2
 
3
3
  //#region src/terminal-audio.ts
4
4
  const TERMINAL_BELL_SOUND_VALUES = [
@@ -1,4 +1,4 @@
1
- import { x as SoundId } from "./sounds-CYxOpEdm.mjs";
1
+ import { x as SoundId } from "./sounds-BORGLPIt.mjs";
2
2
  import * as zod0 from "zod";
3
3
 
4
4
  //#region src/terminal-audio.d.ts
@@ -1,3 +1,3 @@
1
- import "./sounds-CYxOpEdm.mjs";
2
- import { i as TerminalBellSoundSchema, n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSound, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-U9Exv9A5.mjs";
1
+ import "./sounds-BORGLPIt.mjs";
2
+ import { i as TerminalBellSoundSchema, n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSound, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-Dmi6lR7o.mjs";
3
3
  export { TERMINAL_BELL_SOUND_OPTIONS, TERMINAL_BELL_SOUND_VALUES, TerminalBellSound, TerminalBellSoundSchema };
@@ -1,4 +1,4 @@
1
- import "./sounds-BzNKMW05.mjs";
2
- import { n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSoundSchema, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-UEv3j655.mjs";
1
+ import "./sounds-Ctm3QEtf.mjs";
2
+ import { n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSoundSchema, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-BiQ9qJJW.mjs";
3
3
 
4
4
  export { TERMINAL_BELL_SOUND_OPTIONS, TERMINAL_BELL_SOUND_VALUES, TerminalBellSoundSchema };
@@ -1,3 +1,3 @@
1
- import "./sounds-CYxOpEdm.mjs";
2
- import { A as TerminalNotificationProtocol, D as TerminalControlEvent, M as TerminalPromptState, N as TerminalTitleTarget, O as TerminalControlParseResult, P as terminalNotificationEventToPublishInput, j as TerminalProgressState, k as TerminalControlParser } from "./notifications-C4amULI4.mjs";
1
+ import "./sounds-BORGLPIt.mjs";
2
+ import { A as TerminalNotificationProtocol, D as TerminalControlEvent, M as TerminalPromptState, N as TerminalTitleTarget, O as TerminalControlParseResult, P as terminalNotificationEventToPublishInput, j as TerminalProgressState, k as TerminalControlParser } from "./notifications-CbKmEdCU.mjs";
3
3
  export { TerminalControlEvent, TerminalControlParseResult, TerminalControlParser, TerminalNotificationProtocol, TerminalProgressState, TerminalPromptState, TerminalTitleTarget, terminalNotificationEventToPublishInput };
@@ -1,3 +1,3 @@
1
- import { n as terminalNotificationEventToPublishInput, t as TerminalControlParser } from "./terminal-control-Bxois59k.mjs";
1
+ import { n as terminalNotificationEventToPublishInput, t as TerminalControlParser } from "./terminal-control-CMkG-o9C.mjs";
2
2
 
3
3
  export { TerminalControlParser, terminalNotificationEventToPublishInput };
@@ -645,10 +645,10 @@ declare const TerminalCommandFieldSchema: z.ZodObject<{
645
645
  label: string;
646
646
  id: string;
647
647
  options?: string[] | undefined;
648
+ required?: boolean | undefined;
648
649
  description?: string | undefined;
649
650
  placeholder?: string | undefined;
650
651
  defaultValue?: string | boolean | undefined;
651
- required?: boolean | undefined;
652
652
  advanced?: boolean | undefined;
653
653
  }>;
654
654
  type TerminalCommandField = z.infer<typeof TerminalCommandFieldSchema>;
@@ -1012,10 +1012,10 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1012
1012
  label: string;
1013
1013
  id: string;
1014
1014
  options?: string[] | undefined;
1015
+ required?: boolean | undefined;
1015
1016
  description?: string | undefined;
1016
1017
  placeholder?: string | undefined;
1017
1018
  defaultValue?: string | boolean | undefined;
1018
- required?: boolean | undefined;
1019
1019
  advanced?: boolean | undefined;
1020
1020
  }>, "many">>;
1021
1021
  parameters: z.ZodOptional<z.ZodObject<{
@@ -1259,10 +1259,10 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1259
1259
  label: string;
1260
1260
  id: string;
1261
1261
  options?: string[] | undefined;
1262
+ required?: boolean | undefined;
1262
1263
  description?: string | undefined;
1263
1264
  placeholder?: string | undefined;
1264
1265
  defaultValue?: string | boolean | undefined;
1265
- required?: boolean | undefined;
1266
1266
  advanced?: boolean | undefined;
1267
1267
  }[] | undefined;
1268
1268
  parameters?: {
@@ -1392,10 +1392,10 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1392
1392
  label: string;
1393
1393
  id: string;
1394
1394
  options?: string[] | undefined;
1395
+ required?: boolean | undefined;
1395
1396
  description?: string | undefined;
1396
1397
  placeholder?: string | undefined;
1397
1398
  defaultValue?: string | boolean | undefined;
1398
- required?: boolean | undefined;
1399
1399
  advanced?: boolean | undefined;
1400
1400
  }>, "many">>;
1401
1401
  parameters: z.ZodOptional<z.ZodObject<{
@@ -1639,10 +1639,10 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1639
1639
  label: string;
1640
1640
  id: string;
1641
1641
  options?: string[] | undefined;
1642
+ required?: boolean | undefined;
1642
1643
  description?: string | undefined;
1643
1644
  placeholder?: string | undefined;
1644
1645
  defaultValue?: string | boolean | undefined;
1645
- required?: boolean | undefined;
1646
1646
  advanced?: boolean | undefined;
1647
1647
  }[] | undefined;
1648
1648
  parameters?: {
@@ -1789,10 +1789,10 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1789
1789
  label: string;
1790
1790
  id: string;
1791
1791
  options?: string[] | undefined;
1792
+ required?: boolean | undefined;
1792
1793
  description?: string | undefined;
1793
1794
  placeholder?: string | undefined;
1794
1795
  defaultValue?: string | boolean | undefined;
1795
- required?: boolean | undefined;
1796
1796
  advanced?: boolean | undefined;
1797
1797
  }[] | undefined;
1798
1798
  parameters?: {
@@ -1,2 +1,2 @@
1
- import { A as renderTerminalSpawnCommand, C as TerminalSpawnCommand, D as getTerminalCommandParameters, E as getTerminalCommandDefaultValues, M as resolveTerminalShellDefaults, O as quoteTerminalShellArg, S as TerminalShellQuoteStyleSchema, T as fieldsToTerminalCommandParameters, _ as TerminalShellDefaults, a as TerminalCommandBuilder, b as TerminalShellProfileSchema, c as TerminalCommandFieldSchema, d as TerminalCommandJsonSchema, f as TerminalCommandJsonSchemaProperty, g as TerminalInvocationSettingsSchema, h as TerminalInvocationSettings, i as TerminalCommandArgument, j as renderTerminalSpawnCommandLine, k as renderTerminalCommandArgs, l as TerminalCommandFieldValue, m as TerminalCommandRenderResult, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, o as TerminalCommandBuilderPart, p as TerminalCommandParameters, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalCommandField, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as TerminalCommandFieldValues, v as TerminalShellEnv, w as TerminalSpawnCommandSchema, x as TerminalShellQuoteStyle, y as TerminalShellProfile } from "./terminal-invocation-BmwWgwgY.mjs";
1
+ import { A as renderTerminalSpawnCommand, C as TerminalSpawnCommand, D as getTerminalCommandParameters, E as getTerminalCommandDefaultValues, M as resolveTerminalShellDefaults, O as quoteTerminalShellArg, S as TerminalShellQuoteStyleSchema, T as fieldsToTerminalCommandParameters, _ as TerminalShellDefaults, a as TerminalCommandBuilder, b as TerminalShellProfileSchema, c as TerminalCommandFieldSchema, d as TerminalCommandJsonSchema, f as TerminalCommandJsonSchemaProperty, g as TerminalInvocationSettingsSchema, h as TerminalInvocationSettings, i as TerminalCommandArgument, j as renderTerminalSpawnCommandLine, k as renderTerminalCommandArgs, l as TerminalCommandFieldValue, m as TerminalCommandRenderResult, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, o as TerminalCommandBuilderPart, p as TerminalCommandParameters, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalCommandField, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as TerminalCommandFieldValues, v as TerminalShellEnv, w as TerminalSpawnCommandSchema, x as TerminalShellQuoteStyle, y as TerminalShellProfile } from "./terminal-invocation-C733ofmf.mjs";
2
2
  export { BUILTIN_TERMINAL_SPAWN_COMMANDS, TERMINAL_COMMAND_FIELD_TYPE_VALUES, TERMINAL_SHELL_QUOTE_STYLE_VALUES, TerminalCommandArgument, TerminalCommandBuilder, TerminalCommandBuilderPart, TerminalCommandField, TerminalCommandFieldSchema, TerminalCommandFieldValue, TerminalCommandFieldValues, TerminalCommandJsonSchema, TerminalCommandJsonSchemaProperty, TerminalCommandParameters, TerminalCommandRenderResult, TerminalInvocationSettings, TerminalInvocationSettingsSchema, TerminalShellDefaults, TerminalShellEnv, TerminalShellProfile, TerminalShellProfileSchema, TerminalShellQuoteStyle, TerminalShellQuoteStyleSchema, TerminalSpawnCommand, TerminalSpawnCommandSchema, fieldsToTerminalCommandParameters, getTerminalCommandDefaultValues, getTerminalCommandParameters, quoteTerminalShellArg, renderTerminalCommandArgs, renderTerminalSpawnCommand, renderTerminalSpawnCommandLine, resolveTerminalShellDefaults };
@@ -1,3 +1,3 @@
1
- import { a as TerminalInvocationSettingsSchema, c as TerminalSpawnCommandSchema, d as getTerminalCommandParameters, f as quoteTerminalShellArg, g as resolveTerminalShellDefaults, h as renderTerminalSpawnCommandLine, i as TerminalCommandFieldSchema, l as fieldsToTerminalCommandParameters, m as renderTerminalSpawnCommand, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, o as TerminalShellProfileSchema, p as renderTerminalCommandArgs, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalShellQuoteStyleSchema, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as getTerminalCommandDefaultValues } from "./terminal-invocation-BRCuSBjE.mjs";
1
+ import { a as TerminalInvocationSettingsSchema, c as TerminalSpawnCommandSchema, d as getTerminalCommandParameters, f as quoteTerminalShellArg, g as resolveTerminalShellDefaults, h as renderTerminalSpawnCommandLine, i as TerminalCommandFieldSchema, l as fieldsToTerminalCommandParameters, m as renderTerminalSpawnCommand, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, o as TerminalShellProfileSchema, p as renderTerminalCommandArgs, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalShellQuoteStyleSchema, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as getTerminalCommandDefaultValues } from "./terminal-invocation-CX1LDM89.mjs";
2
2
 
3
3
  export { BUILTIN_TERMINAL_SPAWN_COMMANDS, TERMINAL_COMMAND_FIELD_TYPE_VALUES, TERMINAL_SHELL_QUOTE_STYLE_VALUES, TerminalCommandFieldSchema, TerminalInvocationSettingsSchema, TerminalShellProfileSchema, TerminalShellQuoteStyleSchema, TerminalSpawnCommandSchema, fieldsToTerminalCommandParameters, getTerminalCommandDefaultValues, getTerminalCommandParameters, quoteTerminalShellArg, renderTerminalCommandArgs, renderTerminalSpawnCommand, renderTerminalSpawnCommandLine, resolveTerminalShellDefaults };
@@ -1,2 +1,2 @@
1
- import { a as TERMINAL_THEME_VALUES, i as TERMINAL_THEME_MODE_VALUES, n as DEFAULT_TERMINAL_LIGHT_THEME, o as TerminalThemeId, r as DEFAULT_TERMINAL_THEME_MODE, s as TerminalThemeMode, t as DEFAULT_TERMINAL_DARK_THEME } from "./terminal-theme-lPZGfVA_.mjs";
1
+ import { a as TERMINAL_THEME_VALUES, i as TERMINAL_THEME_MODE_VALUES, n as DEFAULT_TERMINAL_LIGHT_THEME, o as TerminalThemeId, r as DEFAULT_TERMINAL_THEME_MODE, s as TerminalThemeMode, t as DEFAULT_TERMINAL_DARK_THEME } from "./terminal-theme-DdhVuegL.mjs";
2
2
  export { DEFAULT_TERMINAL_DARK_THEME, DEFAULT_TERMINAL_LIGHT_THEME, DEFAULT_TERMINAL_THEME_MODE, TERMINAL_THEME_MODE_VALUES, TERMINAL_THEME_VALUES, TerminalThemeId, TerminalThemeMode };
@@ -1,3 +1,3 @@
1
- import { a as TERMINAL_THEME_VALUES, i as TERMINAL_THEME_MODE_VALUES, n as DEFAULT_TERMINAL_LIGHT_THEME, r as DEFAULT_TERMINAL_THEME_MODE, t as DEFAULT_TERMINAL_DARK_THEME } from "./terminal-theme-CIv3YMfi.mjs";
1
+ import { a as TERMINAL_THEME_VALUES, i as TERMINAL_THEME_MODE_VALUES, n as DEFAULT_TERMINAL_LIGHT_THEME, r as DEFAULT_TERMINAL_THEME_MODE, t as DEFAULT_TERMINAL_DARK_THEME } from "./terminal-theme-BOGPIiVm.mjs";
2
2
 
3
3
  export { DEFAULT_TERMINAL_DARK_THEME, DEFAULT_TERMINAL_LIGHT_THEME, DEFAULT_TERMINAL_THEME_MODE, TERMINAL_THEME_MODE_VALUES, TERMINAL_THEME_VALUES };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openspecui/core",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "description": "Core OpenSpec adapter and parser",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -30,6 +30,10 @@
30
30
  "import": "./dist/markdown-reading.mjs",
31
31
  "types": "./dist/markdown-reading.d.mts"
32
32
  },
33
+ "./document-translation": {
34
+ "import": "./dist/document-translation.mjs",
35
+ "types": "./dist/document-translation.d.mts"
36
+ },
33
37
  "./openspec-annotations": {
34
38
  "import": "./dist/openspec-annotations.mjs",
35
39
  "types": "./dist/openspec-annotations.d.mts"
@@ -42,6 +46,14 @@
42
46
  "import": "./dist/opsx-display-path.mjs",
43
47
  "types": "./dist/opsx-display-path.d.mts"
44
48
  },
49
+ "./opsx-entity": {
50
+ "import": "./dist/opsx-entity.mjs",
51
+ "types": "./dist/opsx-entity.d.mts"
52
+ },
53
+ "./opsx-schema-detail": {
54
+ "import": "./dist/opsx-schema-detail.mjs",
55
+ "types": "./dist/opsx-schema-detail.d.mts"
56
+ },
45
57
  "./notifications": {
46
58
  "import": "./dist/notifications.mjs",
47
59
  "types": "./dist/notifications.d.mts"
@@ -71,8 +83,8 @@
71
83
  "dist"
72
84
  ],
73
85
  "scripts": {
74
- "build": "tsdown src/index.ts src/dashboard-display.ts src/opsx-display-path.ts src/hosted-app.ts src/openspec-compat.ts src/markdown-facts.ts src/markdown-reading.ts src/openspec-annotations.ts src/openspec-projection.ts src/notifications.ts src/sounds.ts src/terminal-theme.ts src/terminal-invocation.ts src/terminal-audio.ts src/terminal-control.ts --format esm --dts",
75
- "dev": "tsdown src/index.ts src/dashboard-display.ts src/opsx-display-path.ts src/hosted-app.ts src/openspec-compat.ts src/markdown-facts.ts src/markdown-reading.ts src/openspec-annotations.ts src/openspec-projection.ts src/notifications.ts src/sounds.ts src/terminal-theme.ts src/terminal-invocation.ts src/terminal-audio.ts src/terminal-control.ts --format esm --dts --watch",
86
+ "build": "tsdown src/index.ts src/dashboard-display.ts src/opsx-display-path.ts src/opsx-entity.ts src/opsx-schema-detail.ts src/hosted-app.ts src/openspec-compat.ts src/markdown-facts.ts src/markdown-reading.ts src/document-translation.ts src/openspec-annotations.ts src/openspec-projection.ts src/notifications.ts src/sounds.ts src/terminal-theme.ts src/terminal-invocation.ts src/terminal-audio.ts src/terminal-control.ts --format esm --dts",
87
+ "dev": "tsdown src/index.ts src/dashboard-display.ts src/opsx-display-path.ts src/opsx-entity.ts src/opsx-schema-detail.ts src/hosted-app.ts src/openspec-compat.ts src/markdown-facts.ts src/markdown-reading.ts src/document-translation.ts src/openspec-annotations.ts src/openspec-projection.ts src/notifications.ts src/sounds.ts src/terminal-theme.ts src/terminal-invocation.ts src/terminal-audio.ts src/terminal-control.ts --format esm --dts --watch",
76
88
  "test": "vitest run",
77
89
  "test:watch": "vitest",
78
90
  "typecheck": "tsc --noEmit"