@openspecui/core 3.6.1 → 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 +63 -443
  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-CCV2bgWG.d.mts → notifications-CbKmEdCU.d.mts} +9 -9
  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-DmB448No.d.mts → schemas-q7tGvvxx.d.mts} +35 -84
  38. package/dist/{sounds-B0sH3QwE.d.mts → sounds-BORGLPIt.d.mts} +5 -5
  39. package/dist/sounds.d.mts +1 -1
  40. package/dist/sounds.mjs +1 -1
  41. package/dist/{terminal-audio-UEv3j655.mjs → terminal-audio-BiQ9qJJW.mjs} +1 -1
  42. package/dist/{terminal-audio-qSc6nZUI.d.mts → terminal-audio-Dmi6lR7o.d.mts} +2 -2
  43. package/dist/terminal-audio.d.mts +2 -2
  44. package/dist/terminal-audio.mjs +2 -2
  45. package/dist/terminal-control.d.mts +2 -2
  46. package/dist/terminal-control.mjs +1 -1
  47. package/dist/{terminal-invocation-BCqjtd4p.d.mts → terminal-invocation-C733ofmf.d.mts} +36 -36
  48. package/dist/terminal-invocation.d.mts +1 -1
  49. package/dist/terminal-invocation.mjs +1 -1
  50. package/dist/terminal-theme.d.mts +1 -1
  51. package/dist/terminal-theme.mjs +1 -1
  52. package/package.json +15 -3
  53. /package/dist/{hosted-app-DFFffbJc.mjs → hosted-app-Bl5W6LWQ.mjs} +0 -0
  54. /package/dist/{hosted-app-DZrYivji.d.mts → hosted-app-DHrXW3jc.d.mts} +0 -0
  55. /package/dist/{markdown-facts-BmSmZmpB.mjs → markdown-facts-BFqXdPfN.mjs} +0 -0
  56. /package/dist/{markdown-facts-f3kXnqXb.d.mts → markdown-facts-DxElzSsp.d.mts} +0 -0
  57. /package/dist/{opsx-display-path-D4KLYRXQ.mjs → opsx-display-path-BHEPZsJx.mjs} +0 -0
  58. /package/dist/{opsx-display-path-CkV9sq_j.d.mts → opsx-display-path-BKUYCqwP.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
@@ -104,8 +102,8 @@ declare const RequirementSchema: z.ZodObject<{
104
102
  }[] | undefined;
105
103
  }>, "many">;
106
104
  }, "strip", z.ZodTypeAny, {
107
- id: string;
108
105
  title: string;
106
+ id: string;
109
107
  text: string;
110
108
  bodyMarkdown: string;
111
109
  scenarios: {
@@ -119,8 +117,8 @@ declare const RequirementSchema: z.ZodObject<{
119
117
  }[] | undefined;
120
118
  }[];
121
119
  }, {
122
- id: string;
123
120
  title: string;
121
+ id: string;
124
122
  text: string;
125
123
  bodyMarkdown: string;
126
124
  scenarios: {
@@ -201,8 +199,8 @@ declare const SpecSchema: z.ZodObject<{
201
199
  }[] | undefined;
202
200
  }>, "many">;
203
201
  }, "strip", z.ZodTypeAny, {
204
- id: string;
205
202
  title: string;
203
+ id: string;
206
204
  text: string;
207
205
  bodyMarkdown: string;
208
206
  scenarios: {
@@ -216,8 +214,8 @@ declare const SpecSchema: z.ZodObject<{
216
214
  }[] | undefined;
217
215
  }[];
218
216
  }, {
219
- id: string;
220
217
  title: string;
218
+ id: string;
221
219
  text: string;
222
220
  bodyMarkdown: string;
223
221
  scenarios: {
@@ -250,8 +248,8 @@ declare const SpecSchema: z.ZodObject<{
250
248
  name: string;
251
249
  overview: string;
252
250
  requirements: {
253
- id: string;
254
251
  title: string;
252
+ id: string;
255
253
  text: string;
256
254
  bodyMarkdown: string;
257
255
  scenarios: {
@@ -275,8 +273,8 @@ declare const SpecSchema: z.ZodObject<{
275
273
  name: string;
276
274
  overview: string;
277
275
  requirements: {
278
- id: string;
279
276
  title: string;
277
+ id: string;
280
278
  text: string;
281
279
  bodyMarkdown: string;
282
280
  scenarios: {
@@ -364,8 +362,8 @@ declare const DeltaSchema: z.ZodObject<{
364
362
  }[] | undefined;
365
363
  }>, "many">;
366
364
  }, "strip", z.ZodTypeAny, {
367
- id: string;
368
365
  title: string;
366
+ id: string;
369
367
  text: string;
370
368
  bodyMarkdown: string;
371
369
  scenarios: {
@@ -379,8 +377,8 @@ declare const DeltaSchema: z.ZodObject<{
379
377
  }[] | undefined;
380
378
  }[];
381
379
  }, {
382
- id: string;
383
380
  title: string;
381
+ id: string;
384
382
  text: string;
385
383
  bodyMarkdown: string;
386
384
  scenarios: {
@@ -449,8 +447,8 @@ declare const DeltaSchema: z.ZodObject<{
449
447
  }[] | undefined;
450
448
  }>, "many">;
451
449
  }, "strip", z.ZodTypeAny, {
452
- id: string;
453
450
  title: string;
451
+ id: string;
454
452
  text: string;
455
453
  bodyMarkdown: string;
456
454
  scenarios: {
@@ -464,8 +462,8 @@ declare const DeltaSchema: z.ZodObject<{
464
462
  }[] | undefined;
465
463
  }[];
466
464
  }, {
467
- id: string;
468
465
  title: string;
466
+ id: string;
469
467
  text: string;
470
468
  bodyMarkdown: string;
471
469
  scenarios: {
@@ -495,8 +493,8 @@ declare const DeltaSchema: z.ZodObject<{
495
493
  spec: string;
496
494
  operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
497
495
  requirements?: {
498
- id: string;
499
496
  title: string;
497
+ id: string;
500
498
  text: string;
501
499
  bodyMarkdown: string;
502
500
  scenarios: {
@@ -511,8 +509,8 @@ declare const DeltaSchema: z.ZodObject<{
511
509
  }[];
512
510
  }[] | undefined;
513
511
  requirement?: {
514
- id: string;
515
512
  title: string;
513
+ id: string;
516
514
  text: string;
517
515
  bodyMarkdown: string;
518
516
  scenarios: {
@@ -535,8 +533,8 @@ declare const DeltaSchema: z.ZodObject<{
535
533
  spec: string;
536
534
  operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
537
535
  requirements?: {
538
- id: string;
539
536
  title: string;
537
+ id: string;
540
538
  text: string;
541
539
  bodyMarkdown: string;
542
540
  scenarios: {
@@ -551,8 +549,8 @@ declare const DeltaSchema: z.ZodObject<{
551
549
  }[];
552
550
  }[] | undefined;
553
551
  requirement?: {
554
- id: string;
555
552
  title: string;
553
+ id: string;
556
554
  text: string;
557
555
  bodyMarkdown: string;
558
556
  scenarios: {
@@ -694,8 +692,8 @@ declare const ChangeSchema: z.ZodObject<{
694
692
  }[] | undefined;
695
693
  }>, "many">;
696
694
  }, "strip", z.ZodTypeAny, {
697
- id: string;
698
695
  title: string;
696
+ id: string;
699
697
  text: string;
700
698
  bodyMarkdown: string;
701
699
  scenarios: {
@@ -709,8 +707,8 @@ declare const ChangeSchema: z.ZodObject<{
709
707
  }[] | undefined;
710
708
  }[];
711
709
  }, {
712
- id: string;
713
710
  title: string;
711
+ id: string;
714
712
  text: string;
715
713
  bodyMarkdown: string;
716
714
  scenarios: {
@@ -779,8 +777,8 @@ declare const ChangeSchema: z.ZodObject<{
779
777
  }[] | undefined;
780
778
  }>, "many">;
781
779
  }, "strip", z.ZodTypeAny, {
782
- id: string;
783
780
  title: string;
781
+ id: string;
784
782
  text: string;
785
783
  bodyMarkdown: string;
786
784
  scenarios: {
@@ -794,8 +792,8 @@ declare const ChangeSchema: z.ZodObject<{
794
792
  }[] | undefined;
795
793
  }[];
796
794
  }, {
797
- id: string;
798
795
  title: string;
796
+ id: string;
799
797
  text: string;
800
798
  bodyMarkdown: string;
801
799
  scenarios: {
@@ -825,8 +823,8 @@ declare const ChangeSchema: z.ZodObject<{
825
823
  spec: string;
826
824
  operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
827
825
  requirements?: {
828
- id: string;
829
826
  title: string;
827
+ id: string;
830
828
  text: string;
831
829
  bodyMarkdown: string;
832
830
  scenarios: {
@@ -841,8 +839,8 @@ declare const ChangeSchema: z.ZodObject<{
841
839
  }[];
842
840
  }[] | undefined;
843
841
  requirement?: {
844
- id: string;
845
842
  title: string;
843
+ id: string;
846
844
  text: string;
847
845
  bodyMarkdown: string;
848
846
  scenarios: {
@@ -865,8 +863,8 @@ declare const ChangeSchema: z.ZodObject<{
865
863
  spec: string;
866
864
  operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
867
865
  requirements?: {
868
- id: string;
869
866
  title: string;
867
+ id: string;
870
868
  text: string;
871
869
  bodyMarkdown: string;
872
870
  scenarios: {
@@ -881,8 +879,8 @@ declare const ChangeSchema: z.ZodObject<{
881
879
  }[];
882
880
  }[] | undefined;
883
881
  requirement?: {
884
- id: string;
885
882
  title: string;
883
+ id: string;
886
884
  text: string;
887
885
  bodyMarkdown: string;
888
886
  scenarios: {
@@ -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: {
@@ -969,8 +971,8 @@ declare const ChangeSchema: z.ZodObject<{
969
971
  spec: string;
970
972
  operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
971
973
  requirements?: {
972
- id: string;
973
974
  title: string;
975
+ id: string;
974
976
  text: string;
975
977
  bodyMarkdown: string;
976
978
  scenarios: {
@@ -985,8 +987,8 @@ declare const ChangeSchema: z.ZodObject<{
985
987
  }[];
986
988
  }[] | undefined;
987
989
  requirement?: {
988
- id: string;
989
990
  title: string;
991
+ id: string;
990
992
  text: string;
991
993
  bodyMarkdown: string;
992
994
  scenarios: {
@@ -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: {
@@ -1034,8 +1036,8 @@ declare const ChangeSchema: z.ZodObject<{
1034
1036
  spec: string;
1035
1037
  operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
1036
1038
  requirements?: {
1037
- id: string;
1038
1039
  title: string;
1040
+ id: string;
1039
1041
  text: string;
1040
1042
  bodyMarkdown: string;
1041
1043
  scenarios: {
@@ -1050,8 +1052,8 @@ declare const ChangeSchema: z.ZodObject<{
1050
1052
  }[];
1051
1053
  }[] | undefined;
1052
1054
  requirement?: {
1053
- id: string;
1054
1055
  title: string;
1056
+ id: string;
1055
1057
  text: string;
1056
1058
  bodyMarkdown: string;
1057
1059
  scenarios: {
@@ -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 };
@@ -23,7 +23,7 @@ declare const LEGACY_SOUND_ID_MAP: {
23
23
  readonly pulse: "builtin:Tink";
24
24
  };
25
25
  declare function normalizeLegacySoundId(value: unknown): unknown;
26
- declare const SoundConfigIdSchema: z.ZodEffects<z.ZodUnion<[z.ZodLiteral<"silent">, z.ZodEnum<["builtin:Basso", "builtin:Blow", "builtin:Bottle", "builtin:Frog", "builtin:Funk", "builtin:Glass", "builtin:Hero", "builtin:Morse", "builtin:Ping", "builtin:Pop", "builtin:Purr", "builtin:Sosumi", "builtin:Submarine", "builtin:Tink"]>, z.ZodType<`custom:${string}`, z.ZodTypeDef, `custom:${string}`>]>, "silent" | "builtin:Tink" | "builtin:Blow" | "builtin:Basso" | "builtin:Bottle" | "builtin:Frog" | "builtin:Funk" | "builtin:Glass" | "builtin:Hero" | "builtin:Morse" | "builtin:Ping" | "builtin:Pop" | "builtin:Purr" | "builtin:Sosumi" | "builtin:Submarine" | `custom:${string}`, unknown>;
26
+ declare const SoundConfigIdSchema: z.ZodEffects<z.ZodUnion<[z.ZodLiteral<"silent">, z.ZodEnum<["builtin:Basso", "builtin:Blow", "builtin:Bottle", "builtin:Frog", "builtin:Funk", "builtin:Glass", "builtin:Hero", "builtin:Morse", "builtin:Ping", "builtin:Pop", "builtin:Purr", "builtin:Sosumi", "builtin:Submarine", "builtin:Tink"]>, z.ZodType<`custom:${string}`, z.ZodTypeDef, `custom:${string}`>]>, "silent" | "builtin:Basso" | "builtin:Blow" | "builtin:Bottle" | "builtin:Frog" | "builtin:Funk" | "builtin:Glass" | "builtin:Hero" | "builtin:Morse" | "builtin:Ping" | "builtin:Pop" | "builtin:Purr" | "builtin:Sosumi" | "builtin:Submarine" | "builtin:Tink" | `custom:${string}`, unknown>;
27
27
  declare const SoundVolumeSchema: z.ZodDefault<z.ZodNumber>;
28
28
  type SoundVolume = z.infer<typeof SoundVolumeSchema>;
29
29
  interface BuiltinSoundOption {
@@ -41,18 +41,18 @@ declare const CustomSoundMetadataSchema: z.ZodObject<{
41
41
  createdAt: z.ZodNumber;
42
42
  updatedAt: z.ZodNumber;
43
43
  }, "strip", z.ZodTypeAny, {
44
+ createdAt: number;
44
45
  id: string;
45
46
  name: string;
46
47
  mime: string;
47
48
  size: number;
48
- createdAt: number;
49
49
  updatedAt: number;
50
50
  }, {
51
+ createdAt: number;
51
52
  id: string;
52
53
  name: string;
53
54
  mime: string;
54
55
  size: number;
55
- createdAt: number;
56
56
  updatedAt: number;
57
57
  }>;
58
58
  type CustomSoundMetadata = z.infer<typeof CustomSoundMetadataSchema>;
@@ -64,18 +64,18 @@ declare const CustomSoundMetadataFileSchema: z.ZodRecord<z.ZodString, z.ZodObjec
64
64
  createdAt: z.ZodNumber;
65
65
  updatedAt: z.ZodNumber;
66
66
  }, "strip", z.ZodTypeAny, {
67
+ createdAt: number;
67
68
  id: string;
68
69
  name: string;
69
70
  mime: string;
70
71
  size: number;
71
- createdAt: number;
72
72
  updatedAt: number;
73
73
  }, {
74
+ createdAt: number;
74
75
  id: string;
75
76
  name: string;
76
77
  mime: string;
77
78
  size: number;
78
- createdAt: number;
79
79
  updatedAt: number;
80
80
  }>>;
81
81
  type CustomSoundMetadataFile = z.infer<typeof CustomSoundMetadataFileSchema>;
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-B0sH3QwE.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,9 +1,9 @@
1
- import { x as SoundId } from "./sounds-B0sH3QwE.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
5
5
  declare const TERMINAL_BELL_SOUND_VALUES: readonly ["silent", "bell", "soft", "clear", "pulse"];
6
- declare const TerminalBellSoundSchema: zod0.ZodEffects<zod0.ZodUnion<[zod0.ZodLiteral<"silent">, zod0.ZodEnum<["builtin:Basso", "builtin:Blow", "builtin:Bottle", "builtin:Frog", "builtin:Funk", "builtin:Glass", "builtin:Hero", "builtin:Morse", "builtin:Ping", "builtin:Pop", "builtin:Purr", "builtin:Sosumi", "builtin:Submarine", "builtin:Tink"]>, zod0.ZodType<`custom:${string}`, zod0.ZodTypeDef, `custom:${string}`>]>, "silent" | "builtin:Tink" | "builtin:Blow" | "builtin:Basso" | "builtin:Bottle" | "builtin:Frog" | "builtin:Funk" | "builtin:Glass" | "builtin:Hero" | "builtin:Morse" | "builtin:Ping" | "builtin:Pop" | "builtin:Purr" | "builtin:Sosumi" | "builtin:Submarine" | `custom:${string}`, unknown>;
6
+ declare const TerminalBellSoundSchema: zod0.ZodEffects<zod0.ZodUnion<[zod0.ZodLiteral<"silent">, zod0.ZodEnum<["builtin:Basso", "builtin:Blow", "builtin:Bottle", "builtin:Frog", "builtin:Funk", "builtin:Glass", "builtin:Hero", "builtin:Morse", "builtin:Ping", "builtin:Pop", "builtin:Purr", "builtin:Sosumi", "builtin:Submarine", "builtin:Tink"]>, zod0.ZodType<`custom:${string}`, zod0.ZodTypeDef, `custom:${string}`>]>, "silent" | "builtin:Basso" | "builtin:Blow" | "builtin:Bottle" | "builtin:Frog" | "builtin:Funk" | "builtin:Glass" | "builtin:Hero" | "builtin:Morse" | "builtin:Ping" | "builtin:Pop" | "builtin:Purr" | "builtin:Sosumi" | "builtin:Submarine" | "builtin:Tink" | `custom:${string}`, unknown>;
7
7
  type TerminalBellSound = SoundId;
8
8
  declare const TERMINAL_BELL_SOUND_OPTIONS: readonly {
9
9
  id: TerminalBellSound;
@@ -1,3 +1,3 @@
1
- import "./sounds-B0sH3QwE.mjs";
2
- import { i as TerminalBellSoundSchema, n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSound, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-qSc6nZUI.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-B0sH3QwE.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-CCV2bgWG.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 };