@openspecui/core 3.5.1 → 3.5.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.
package/dist/index.d.mts CHANGED
@@ -3,7 +3,7 @@ import { D as normalizeLegacySoundId, E as getBuiltinSoundUrl, O as soundIdFromC
3
3
  import { A as TerminalNotificationProtocol, D as TerminalControlEvent, E as groupNotifications, M as TerminalPromptState, N as TerminalTitleTarget, O as TerminalControlParseResult, P as terminalNotificationEventToPublishInput, T as getNotificationGroupLabel, _ as NotificationSource, b as TerminalNotificationParseResult, c as NotificationGroupKeySchema, d as NotificationRecord, f as NotificationRecordSchema, g as NotificationSoundSchema, h as NotificationSound, i as NotificationActionSchema, j as TerminalProgressState, k as TerminalControlParser, l as NotificationPublishInput, m as NotificationSettingsSchema, n as NOTIFICATION_SOUND_VALUES, o as NotificationGroup, p as NotificationSettings, r as NotificationAction, s as NotificationGroupKey, t as NOTIFICATION_SOUND_OPTIONS, u as NotificationPublishInputSchema, v as NotificationSourceSchema, w as getNotificationGroupKey, x as TerminalNotificationParser, y as TerminalNotificationEvent } from "./notifications-BWvRNkRJ.mjs";
4
4
  import { i as TerminalBellSoundSchema, n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSound, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-8E82E0AM.mjs";
5
5
  import { n as toOpsxDisplayPath, t as VIRTUAL_PROJECT_DIRNAME } from "./opsx-display-path-CuQyGB_A.mjs";
6
- import { $ as PtyServerMessageSchema, B as PtyCreatedResponseSchema, C as TerminalSpawnCommand, E as getTerminalCommandDefaultValues, F as PtyBufferResponseSchema, G as PtyListMessageSchema, H as PtyErrorResponseSchema, I as PtyClientMessage, J as PtyPlatform, K as PtyListResponseSchema, L as PtyClientMessageSchema, M as resolveTerminalShellDefaults, N as PtyAttachMessageSchema, O as quoteTerminalShellArg, P as PtyBellResponseSchema, Q as PtyServerMessage, R as PtyCloseMessageSchema, S as TerminalShellQuoteStyleSchema, U as PtyExitResponseSchema, V as PtyErrorCodeSchema, W as PtyInputMessageSchema, X as PtyProcessTitleResponseSchema, Y as PtyPlatformSchema, Z as PtyResizeMessageSchema, _ as TerminalShellDefaults, b as TerminalShellProfileSchema, c as TerminalCommandFieldSchema, et as PtySessionInfo, g as TerminalInvocationSettingsSchema, h as TerminalInvocationSettings, i as TerminalCommandArgument, j as renderTerminalSpawnCommandLine, k as renderTerminalCommandArgs, l as TerminalCommandFieldValue, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, q as PtyOutputResponseSchema, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalCommandField, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, tt as PtyTitleResponseSchema, u as TerminalCommandFieldValues, w as TerminalSpawnCommandSchema, x as TerminalShellQuoteStyle, y as TerminalShellProfile, z as PtyCreateMessageSchema } from "./terminal-invocation-CGAgqosu.mjs";
6
+ import { $ as PtyServerMessageSchema, B as PtyCreatedResponseSchema, C as TerminalSpawnCommand, E as getTerminalCommandDefaultValues, F as PtyBufferResponseSchema, G as PtyListMessageSchema, H as PtyErrorResponseSchema, I as PtyClientMessage, J as PtyPlatform, K as PtyListResponseSchema, L as PtyClientMessageSchema, M as resolveTerminalShellDefaults, N as PtyAttachMessageSchema, O as quoteTerminalShellArg, P as PtyBellResponseSchema, Q as PtyServerMessage, R as PtyCloseMessageSchema, S as TerminalShellQuoteStyleSchema, U as PtyExitResponseSchema, V as PtyErrorCodeSchema, W as PtyInputMessageSchema, X as PtyProcessTitleResponseSchema, Y as PtyPlatformSchema, Z as PtyResizeMessageSchema, _ as TerminalShellDefaults, b as TerminalShellProfileSchema, c as TerminalCommandFieldSchema, et as PtySessionInfo, g as TerminalInvocationSettingsSchema, h as TerminalInvocationSettings, i as TerminalCommandArgument, j as renderTerminalSpawnCommandLine, k as renderTerminalCommandArgs, l as TerminalCommandFieldValue, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, q as PtyOutputResponseSchema, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalCommandField, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, tt as PtyTitleResponseSchema, u as TerminalCommandFieldValues, w as TerminalSpawnCommandSchema, x as TerminalShellQuoteStyle, y as TerminalShellProfile, z as PtyCreateMessageSchema } from "./terminal-invocation-CpdllJff.mjs";
7
7
  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-wbkK9vVH.mjs";
8
8
  import { AsyncLocalStorage } from "node:async_hooks";
9
9
  import { z } from "zod";
@@ -121,6 +121,7 @@ declare const SpecSchema: z.ZodObject<{
121
121
  }, "strip", z.ZodTypeAny, {
122
122
  id: string;
123
123
  name: string;
124
+ overview: string;
124
125
  requirements: {
125
126
  id: string;
126
127
  text: string;
@@ -128,7 +129,6 @@ declare const SpecSchema: z.ZodObject<{
128
129
  rawText: string;
129
130
  }[];
130
131
  }[];
131
- overview: string;
132
132
  metadata?: {
133
133
  version: string;
134
134
  format: "openspec";
@@ -137,6 +137,7 @@ declare const SpecSchema: z.ZodObject<{
137
137
  }, {
138
138
  id: string;
139
139
  name: string;
140
+ overview: string;
140
141
  requirements: {
141
142
  id: string;
142
143
  text: string;
@@ -144,7 +145,6 @@ declare const SpecSchema: z.ZodObject<{
144
145
  rawText: string;
145
146
  }[];
146
147
  }[];
147
- overview: string;
148
148
  metadata?: {
149
149
  version?: string | undefined;
150
150
  format?: "openspec" | undefined;
@@ -311,11 +311,11 @@ declare const DeltaSpecSchema: z.ZodObject<{
311
311
  /** Raw markdown content of the delta spec */
312
312
  content: z.ZodString;
313
313
  }, "strip", z.ZodTypeAny, {
314
- specId: string;
315
314
  content: string;
316
- }, {
317
315
  specId: string;
316
+ }, {
318
317
  content: string;
318
+ specId: string;
319
319
  }>;
320
320
  type DeltaSpec = z.infer<typeof DeltaSpecSchema>;
321
321
  /**
@@ -478,11 +478,11 @@ declare const ChangeSchema: z.ZodObject<{
478
478
  total: z.ZodNumber;
479
479
  completed: z.ZodNumber;
480
480
  }, "strip", z.ZodTypeAny, {
481
- total: number;
482
481
  completed: number;
483
- }, {
484
482
  total: number;
483
+ }, {
485
484
  completed: number;
485
+ total: number;
486
486
  }>;
487
487
  /** Optional design.md content */
488
488
  design: z.ZodOptional<z.ZodString>;
@@ -493,11 +493,11 @@ declare const ChangeSchema: z.ZodObject<{
493
493
  /** Raw markdown content of the delta spec */
494
494
  content: z.ZodString;
495
495
  }, "strip", z.ZodTypeAny, {
496
- specId: string;
497
496
  content: string;
498
- }, {
499
497
  specId: string;
498
+ }, {
500
499
  content: string;
500
+ specId: string;
501
501
  }>, "many">>;
502
502
  /** Optional metadata */
503
503
  metadata: z.ZodOptional<z.ZodObject<{
@@ -514,15 +514,9 @@ declare const ChangeSchema: z.ZodObject<{
514
514
  id: string;
515
515
  name: string;
516
516
  progress: {
517
- total: number;
518
517
  completed: number;
518
+ total: number;
519
519
  };
520
- tasks: {
521
- id: string;
522
- text: string;
523
- completed: boolean;
524
- section?: string | undefined;
525
- }[];
526
520
  why: string;
527
521
  whatChanges: string;
528
522
  deltas: {
@@ -548,28 +542,28 @@ declare const ChangeSchema: z.ZodObject<{
548
542
  to: string;
549
543
  } | undefined;
550
544
  }[];
545
+ tasks: {
546
+ id: string;
547
+ text: string;
548
+ completed: boolean;
549
+ section?: string | undefined;
550
+ }[];
551
551
  metadata?: {
552
552
  version: string;
553
553
  format: "openspec-change";
554
554
  } | undefined;
555
555
  design?: string | undefined;
556
556
  deltaSpecs?: {
557
- specId: string;
558
557
  content: string;
558
+ specId: string;
559
559
  }[] | undefined;
560
560
  }, {
561
561
  id: string;
562
562
  name: string;
563
563
  progress: {
564
- total: number;
565
564
  completed: number;
565
+ total: number;
566
566
  };
567
- tasks: {
568
- id: string;
569
- text: string;
570
- completed: boolean;
571
- section?: string | undefined;
572
- }[];
573
567
  why: string;
574
568
  whatChanges: string;
575
569
  deltas: {
@@ -595,14 +589,20 @@ declare const ChangeSchema: z.ZodObject<{
595
589
  to: string;
596
590
  } | undefined;
597
591
  }[];
592
+ tasks: {
593
+ id: string;
594
+ text: string;
595
+ completed: boolean;
596
+ section?: string | undefined;
597
+ }[];
598
598
  metadata?: {
599
599
  version?: string | undefined;
600
600
  format?: "openspec-change" | undefined;
601
601
  } | undefined;
602
602
  design?: string | undefined;
603
603
  deltaSpecs?: {
604
- specId: string;
605
604
  content: string;
605
+ specId: string;
606
606
  }[] | undefined;
607
607
  }>;
608
608
  type Change = z.infer<typeof ChangeSchema>;
@@ -750,6 +750,7 @@ declare class OpenSpecAdapter {
750
750
  specs: {
751
751
  id: string;
752
752
  name: string;
753
+ overview: string;
753
754
  requirements: {
754
755
  id: string;
755
756
  text: string;
@@ -757,7 +758,6 @@ declare class OpenSpecAdapter {
757
758
  rawText: string;
758
759
  }[];
759
760
  }[];
760
- overview: string;
761
761
  metadata?: {
762
762
  version: string;
763
763
  format: "openspec";
@@ -768,15 +768,9 @@ declare class OpenSpecAdapter {
768
768
  id: string;
769
769
  name: string;
770
770
  progress: {
771
- total: number;
772
771
  completed: number;
772
+ total: number;
773
773
  };
774
- tasks: {
775
- id: string;
776
- text: string;
777
- completed: boolean;
778
- section?: string | undefined;
779
- }[];
780
774
  why: string;
781
775
  whatChanges: string;
782
776
  deltas: {
@@ -802,14 +796,20 @@ declare class OpenSpecAdapter {
802
796
  to: string;
803
797
  } | undefined;
804
798
  }[];
799
+ tasks: {
800
+ id: string;
801
+ text: string;
802
+ completed: boolean;
803
+ section?: string | undefined;
804
+ }[];
805
805
  metadata?: {
806
806
  version: string;
807
807
  format: "openspec-change";
808
808
  } | undefined;
809
809
  design?: string | undefined;
810
810
  deltaSpecs?: {
811
- specId: string;
812
811
  content: string;
812
+ specId: string;
813
813
  }[] | undefined;
814
814
  }[];
815
815
  archivedCount: number;
@@ -2193,15 +2193,15 @@ declare const ApplyInstructionsSchema: z.ZodObject<{
2193
2193
  remaining: number;
2194
2194
  };
2195
2195
  state: "ready" | "blocked" | "all_done";
2196
- changeName: string;
2197
- schemaName: string;
2198
- changeDir: string;
2199
- contextFiles: Record<string, string[]>;
2200
2196
  tasks: {
2201
2197
  id: string;
2202
2198
  description: string;
2203
2199
  done: boolean;
2204
2200
  }[];
2201
+ changeName: string;
2202
+ schemaName: string;
2203
+ changeDir: string;
2204
+ contextFiles: Record<string, string[]>;
2205
2205
  instruction: string;
2206
2206
  missingArtifacts?: string[] | undefined;
2207
2207
  }, {
@@ -2211,15 +2211,15 @@ declare const ApplyInstructionsSchema: z.ZodObject<{
2211
2211
  remaining: number;
2212
2212
  };
2213
2213
  state: "ready" | "blocked" | "all_done";
2214
- changeName: string;
2215
- schemaName: string;
2216
- changeDir: string;
2217
- contextFiles: Record<string, string | string[]>;
2218
2214
  tasks: {
2219
2215
  id: string;
2220
2216
  description: string;
2221
2217
  done: boolean;
2222
2218
  }[];
2219
+ changeName: string;
2220
+ schemaName: string;
2221
+ changeDir: string;
2222
+ contextFiles: Record<string, string | string[]>;
2223
2223
  instruction: string;
2224
2224
  missingArtifacts?: string[] | undefined;
2225
2225
  }>;
@@ -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-CGAgqosu.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-CpdllJff.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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openspecui/core",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
4
4
  "description": "Core OpenSpec adapter and parser",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",