@openspecui/core 3.2.2 → 3.2.3

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 (2) hide show
  1. package/dist/index.d.mts +33 -33
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -20,13 +20,13 @@ declare const ChangeFileSchema: z.ZodObject<{
20
20
  /** Optional byte size for files */
21
21
  size: z.ZodOptional<z.ZodNumber>;
22
22
  }, "strip", z.ZodTypeAny, {
23
- type: "file" | "directory";
24
23
  path: string;
24
+ type: "file" | "directory";
25
25
  content?: string | undefined;
26
26
  size?: number | undefined;
27
27
  }, {
28
- type: "file" | "directory";
29
28
  path: string;
29
+ type: "file" | "directory";
30
30
  content?: string | undefined;
31
31
  size?: number | undefined;
32
32
  }>;
@@ -307,11 +307,11 @@ declare const DeltaSpecSchema: z.ZodObject<{
307
307
  /** Raw markdown content of the delta spec */
308
308
  content: z.ZodString;
309
309
  }, "strip", z.ZodTypeAny, {
310
- specId: string;
311
310
  content: string;
312
- }, {
313
311
  specId: string;
312
+ }, {
314
313
  content: string;
314
+ specId: string;
315
315
  }>;
316
316
  type DeltaSpec = z.infer<typeof DeltaSpecSchema>;
317
317
  /**
@@ -489,11 +489,11 @@ declare const ChangeSchema: z.ZodObject<{
489
489
  /** Raw markdown content of the delta spec */
490
490
  content: z.ZodString;
491
491
  }, "strip", z.ZodTypeAny, {
492
- specId: string;
493
492
  content: string;
494
- }, {
495
493
  specId: string;
494
+ }, {
496
495
  content: string;
496
+ specId: string;
497
497
  }>, "many">>;
498
498
  /** Optional metadata */
499
499
  metadata: z.ZodOptional<z.ZodObject<{
@@ -550,8 +550,8 @@ declare const ChangeSchema: z.ZodObject<{
550
550
  } | undefined;
551
551
  design?: string | undefined;
552
552
  deltaSpecs?: {
553
- specId: string;
554
553
  content: string;
554
+ specId: string;
555
555
  }[] | undefined;
556
556
  }, {
557
557
  id: string;
@@ -597,8 +597,8 @@ declare const ChangeSchema: z.ZodObject<{
597
597
  } | undefined;
598
598
  design?: string | undefined;
599
599
  deltaSpecs?: {
600
- specId: string;
601
600
  content: string;
601
+ specId: string;
602
602
  }[] | undefined;
603
603
  }>;
604
604
  type Change = z.infer<typeof ChangeSchema>;
@@ -804,8 +804,8 @@ declare class OpenSpecAdapter {
804
804
  } | undefined;
805
805
  design?: string | undefined;
806
806
  deltaSpecs?: {
807
- specId: string;
808
807
  content: string;
808
+ specId: string;
809
809
  }[] | undefined;
810
810
  }[];
811
811
  archivedCount: number;
@@ -1456,9 +1456,9 @@ type GitConfig = z.infer<typeof GitConfigSchema>;
1456
1456
  declare const OpsxConfigSchema: z.ZodObject<{
1457
1457
  agentInvocationMode: z.ZodDefault<z.ZodEnum<["compose", "command"]>>;
1458
1458
  }, "strip", z.ZodTypeAny, {
1459
- agentInvocationMode: "command" | "compose";
1459
+ agentInvocationMode: "compose" | "command";
1460
1460
  }, {
1461
- agentInvocationMode?: "command" | "compose" | undefined;
1461
+ agentInvocationMode?: "compose" | "command" | undefined;
1462
1462
  }>;
1463
1463
  type OpsxConfig = z.infer<typeof OpsxConfigSchema>;
1464
1464
  /**
@@ -1496,9 +1496,9 @@ declare const OpenSpecUIConfigSchema: z.ZodObject<{
1496
1496
  opsx: z.ZodDefault<z.ZodObject<{
1497
1497
  agentInvocationMode: z.ZodDefault<z.ZodEnum<["compose", "command"]>>;
1498
1498
  }, "strip", z.ZodTypeAny, {
1499
- agentInvocationMode: "command" | "compose";
1499
+ agentInvocationMode: "compose" | "command";
1500
1500
  }, {
1501
- agentInvocationMode?: "command" | "compose" | undefined;
1501
+ agentInvocationMode?: "compose" | "command" | undefined;
1502
1502
  }>>;
1503
1503
  /** 终端配置 */
1504
1504
  terminal: z.ZodDefault<z.ZodObject<{
@@ -1559,7 +1559,7 @@ declare const OpenSpecUIConfigSchema: z.ZodObject<{
1559
1559
  };
1560
1560
  appBaseUrl: string;
1561
1561
  opsx: {
1562
- agentInvocationMode: "command" | "compose";
1562
+ agentInvocationMode: "compose" | "command";
1563
1563
  };
1564
1564
  terminal: {
1565
1565
  fontSize: number;
@@ -1589,7 +1589,7 @@ declare const OpenSpecUIConfigSchema: z.ZodObject<{
1589
1589
  } | undefined;
1590
1590
  appBaseUrl?: string | undefined;
1591
1591
  opsx?: {
1592
- agentInvocationMode?: "command" | "compose" | undefined;
1592
+ agentInvocationMode?: "compose" | "command" | undefined;
1593
1593
  } | undefined;
1594
1594
  terminal?: {
1595
1595
  fontSize?: number | undefined;
@@ -2721,22 +2721,22 @@ declare const PtySessionInfoSchema: z.ZodObject<{
2721
2721
  closeTip: z.ZodOptional<z.ZodString>;
2722
2722
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2723
2723
  }, "strip", z.ZodTypeAny, {
2724
+ id: string;
2724
2725
  command: string;
2725
2726
  args: string[];
2726
2727
  platform: "windows" | "macos" | "common";
2727
2728
  exitCode: number | null;
2728
2729
  title: string;
2729
- id: string;
2730
2730
  isExited: boolean;
2731
2731
  closeTip?: string | undefined;
2732
2732
  closeCallbackUrl?: string | Record<string, string> | undefined;
2733
2733
  }, {
2734
+ id: string;
2734
2735
  command: string;
2735
2736
  args: string[];
2736
2737
  platform: "windows" | "macos" | "common";
2737
2738
  exitCode: number | null;
2738
2739
  title: string;
2739
- id: string;
2740
2740
  isExited: boolean;
2741
2741
  closeTip?: string | undefined;
2742
2742
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -2753,19 +2753,19 @@ declare const PtyCreateMessageSchema: z.ZodObject<{
2753
2753
  }, "strip", z.ZodTypeAny, {
2754
2754
  type: "create";
2755
2755
  requestId: string;
2756
- cols?: number | undefined;
2757
- rows?: number | undefined;
2758
2756
  command?: string | undefined;
2759
2757
  args?: string[] | undefined;
2758
+ cols?: number | undefined;
2759
+ rows?: number | undefined;
2760
2760
  closeTip?: string | undefined;
2761
2761
  closeCallbackUrl?: string | Record<string, string> | undefined;
2762
2762
  }, {
2763
2763
  type: "create";
2764
2764
  requestId: string;
2765
- cols?: number | undefined;
2766
- rows?: number | undefined;
2767
2765
  command?: string | undefined;
2768
2766
  args?: string[] | undefined;
2767
+ cols?: number | undefined;
2768
+ rows?: number | undefined;
2769
2769
  closeTip?: string | undefined;
2770
2770
  closeCallbackUrl?: string | Record<string, string> | undefined;
2771
2771
  }>;
@@ -2843,19 +2843,19 @@ declare const PtyClientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
2843
2843
  }, "strip", z.ZodTypeAny, {
2844
2844
  type: "create";
2845
2845
  requestId: string;
2846
- cols?: number | undefined;
2847
- rows?: number | undefined;
2848
2846
  command?: string | undefined;
2849
2847
  args?: string[] | undefined;
2848
+ cols?: number | undefined;
2849
+ rows?: number | undefined;
2850
2850
  closeTip?: string | undefined;
2851
2851
  closeCallbackUrl?: string | Record<string, string> | undefined;
2852
2852
  }, {
2853
2853
  type: "create";
2854
2854
  requestId: string;
2855
- cols?: number | undefined;
2856
- rows?: number | undefined;
2857
2855
  command?: string | undefined;
2858
2856
  args?: string[] | undefined;
2857
+ cols?: number | undefined;
2858
+ rows?: number | undefined;
2859
2859
  closeTip?: string | undefined;
2860
2860
  closeCallbackUrl?: string | Record<string, string> | undefined;
2861
2861
  }>, z.ZodObject<{
@@ -2997,22 +2997,22 @@ declare const PtyListResponseSchema: z.ZodObject<{
2997
2997
  closeTip: z.ZodOptional<z.ZodString>;
2998
2998
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2999
2999
  }, "strip", z.ZodTypeAny, {
3000
+ id: string;
3000
3001
  command: string;
3001
3002
  args: string[];
3002
3003
  platform: "windows" | "macos" | "common";
3003
3004
  exitCode: number | null;
3004
3005
  title: string;
3005
- id: string;
3006
3006
  isExited: boolean;
3007
3007
  closeTip?: string | undefined;
3008
3008
  closeCallbackUrl?: string | Record<string, string> | undefined;
3009
3009
  }, {
3010
+ id: string;
3010
3011
  command: string;
3011
3012
  args: string[];
3012
3013
  platform: "windows" | "macos" | "common";
3013
3014
  exitCode: number | null;
3014
3015
  title: string;
3015
- id: string;
3016
3016
  isExited: boolean;
3017
3017
  closeTip?: string | undefined;
3018
3018
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -3020,12 +3020,12 @@ declare const PtyListResponseSchema: z.ZodObject<{
3020
3020
  }, "strip", z.ZodTypeAny, {
3021
3021
  type: "list";
3022
3022
  sessions: {
3023
+ id: string;
3023
3024
  command: string;
3024
3025
  args: string[];
3025
3026
  platform: "windows" | "macos" | "common";
3026
3027
  exitCode: number | null;
3027
3028
  title: string;
3028
- id: string;
3029
3029
  isExited: boolean;
3030
3030
  closeTip?: string | undefined;
3031
3031
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -3033,12 +3033,12 @@ declare const PtyListResponseSchema: z.ZodObject<{
3033
3033
  }, {
3034
3034
  type: "list";
3035
3035
  sessions: {
3036
+ id: string;
3036
3037
  command: string;
3037
3038
  args: string[];
3038
3039
  platform: "windows" | "macos" | "common";
3039
3040
  exitCode: number | null;
3040
3041
  title: string;
3041
- id: string;
3042
3042
  isExited: boolean;
3043
3043
  closeTip?: string | undefined;
3044
3044
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -3137,22 +3137,22 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
3137
3137
  closeTip: z.ZodOptional<z.ZodString>;
3138
3138
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3139
3139
  }, "strip", z.ZodTypeAny, {
3140
+ id: string;
3140
3141
  command: string;
3141
3142
  args: string[];
3142
3143
  platform: "windows" | "macos" | "common";
3143
3144
  exitCode: number | null;
3144
3145
  title: string;
3145
- id: string;
3146
3146
  isExited: boolean;
3147
3147
  closeTip?: string | undefined;
3148
3148
  closeCallbackUrl?: string | Record<string, string> | undefined;
3149
3149
  }, {
3150
+ id: string;
3150
3151
  command: string;
3151
3152
  args: string[];
3152
3153
  platform: "windows" | "macos" | "common";
3153
3154
  exitCode: number | null;
3154
3155
  title: string;
3155
- id: string;
3156
3156
  isExited: boolean;
3157
3157
  closeTip?: string | undefined;
3158
3158
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -3160,12 +3160,12 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
3160
3160
  }, "strip", z.ZodTypeAny, {
3161
3161
  type: "list";
3162
3162
  sessions: {
3163
+ id: string;
3163
3164
  command: string;
3164
3165
  args: string[];
3165
3166
  platform: "windows" | "macos" | "common";
3166
3167
  exitCode: number | null;
3167
3168
  title: string;
3168
- id: string;
3169
3169
  isExited: boolean;
3170
3170
  closeTip?: string | undefined;
3171
3171
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -3173,12 +3173,12 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
3173
3173
  }, {
3174
3174
  type: "list";
3175
3175
  sessions: {
3176
+ id: string;
3176
3177
  command: string;
3177
3178
  args: string[];
3178
3179
  platform: "windows" | "macos" | "common";
3179
3180
  exitCode: number | null;
3180
3181
  title: string;
3181
- id: string;
3182
3182
  isExited: boolean;
3183
3183
  closeTip?: string | undefined;
3184
3184
  closeCallbackUrl?: string | Record<string, string> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openspecui/core",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "description": "Core OpenSpec adapter and parser",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",