@openspecui/core 3.2.1 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.mts +44 -44
  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
- path: string;
24
23
  type: "file" | "directory";
24
+ path: string;
25
25
  content?: string | undefined;
26
26
  size?: number | undefined;
27
27
  }, {
28
- path: string;
29
28
  type: "file" | "directory";
29
+ path: string;
30
30
  content?: string | undefined;
31
31
  size?: number | undefined;
32
32
  }>;
@@ -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: "compose" | "command";
1459
+ agentInvocationMode: "command" | "compose";
1460
1460
  }, {
1461
- agentInvocationMode?: "compose" | "command" | undefined;
1461
+ agentInvocationMode?: "command" | "compose" | 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: "compose" | "command";
1499
+ agentInvocationMode: "command" | "compose";
1500
1500
  }, {
1501
- agentInvocationMode?: "compose" | "command" | undefined;
1501
+ agentInvocationMode?: "command" | "compose" | 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: "compose" | "command";
1562
+ agentInvocationMode: "command" | "compose";
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?: "compose" | "command" | undefined;
1592
+ agentInvocationMode?: "command" | "compose" | undefined;
1593
1593
  } | undefined;
1594
1594
  terminal?: {
1595
1595
  fontSize?: number | undefined;
@@ -2012,14 +2012,14 @@ declare const ArtifactStatusSchema: z.ZodObject<{
2012
2012
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2013
2013
  relativePath: z.ZodOptional<z.ZodString>;
2014
2014
  }, "strip", z.ZodTypeAny, {
2015
- id: string;
2016
2015
  status: "done" | "ready" | "blocked";
2016
+ id: string;
2017
2017
  outputPath: string;
2018
2018
  missingDeps?: string[] | undefined;
2019
2019
  relativePath?: string | undefined;
2020
2020
  }, {
2021
- id: string;
2022
2021
  status: "done" | "ready" | "blocked";
2022
+ id: string;
2023
2023
  outputPath: string;
2024
2024
  missingDeps?: string[] | undefined;
2025
2025
  relativePath?: string | undefined;
@@ -2037,14 +2037,14 @@ declare const ChangeStatusSchema: z.ZodObject<{
2037
2037
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2038
2038
  relativePath: z.ZodOptional<z.ZodString>;
2039
2039
  }, "strip", z.ZodTypeAny, {
2040
- id: string;
2041
2040
  status: "done" | "ready" | "blocked";
2041
+ id: string;
2042
2042
  outputPath: string;
2043
2043
  missingDeps?: string[] | undefined;
2044
2044
  relativePath?: string | undefined;
2045
2045
  }, {
2046
- id: string;
2047
2046
  status: "done" | "ready" | "blocked";
2047
+ id: string;
2048
2048
  outputPath: string;
2049
2049
  missingDeps?: string[] | undefined;
2050
2050
  relativePath?: string | undefined;
@@ -2055,8 +2055,8 @@ declare const ChangeStatusSchema: z.ZodObject<{
2055
2055
  isComplete: boolean;
2056
2056
  applyRequires: string[];
2057
2057
  artifacts: {
2058
- id: string;
2059
2058
  status: "done" | "ready" | "blocked";
2059
+ id: string;
2060
2060
  outputPath: string;
2061
2061
  missingDeps?: string[] | undefined;
2062
2062
  relativePath?: string | undefined;
@@ -2067,8 +2067,8 @@ declare const ChangeStatusSchema: z.ZodObject<{
2067
2067
  isComplete: boolean;
2068
2068
  applyRequires: string[];
2069
2069
  artifacts: {
2070
- id: string;
2071
2070
  status: "done" | "ready" | "blocked";
2071
+ id: string;
2072
2072
  outputPath: string;
2073
2073
  missingDeps?: string[] | undefined;
2074
2074
  relativePath?: string | undefined;
@@ -2081,13 +2081,13 @@ declare const DependencyInfoSchema: z.ZodObject<{
2081
2081
  path: z.ZodString;
2082
2082
  description: z.ZodString;
2083
2083
  }, "strip", z.ZodTypeAny, {
2084
- id: string;
2085
2084
  path: string;
2085
+ id: string;
2086
2086
  description: string;
2087
2087
  done: boolean;
2088
2088
  }, {
2089
- id: string;
2090
2089
  path: string;
2090
+ id: string;
2091
2091
  description: string;
2092
2092
  done: boolean;
2093
2093
  }>;
@@ -2196,13 +2196,13 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2196
2196
  path: z.ZodString;
2197
2197
  description: z.ZodString;
2198
2198
  }, "strip", z.ZodTypeAny, {
2199
- id: string;
2200
2199
  path: string;
2200
+ id: string;
2201
2201
  description: string;
2202
2202
  done: boolean;
2203
2203
  }, {
2204
- id: string;
2205
2204
  path: string;
2205
+ id: string;
2206
2206
  description: string;
2207
2207
  done: boolean;
2208
2208
  }>, "many">;
@@ -2216,8 +2216,8 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2216
2216
  artifactId: string;
2217
2217
  template: string;
2218
2218
  dependencies: {
2219
- id: string;
2220
2219
  path: string;
2220
+ id: string;
2221
2221
  description: string;
2222
2222
  done: boolean;
2223
2223
  }[];
@@ -2234,8 +2234,8 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2234
2234
  artifactId: string;
2235
2235
  template: string;
2236
2236
  dependencies: {
2237
- id: string;
2238
2237
  path: string;
2238
+ id: string;
2239
2239
  description: string;
2240
2240
  done: boolean;
2241
2241
  }[];
@@ -2281,8 +2281,8 @@ declare const SchemaResolutionSchema: z.ZodObject<{
2281
2281
  displayPath?: string | undefined;
2282
2282
  }>, "many">;
2283
2283
  }, "strip", z.ZodTypeAny, {
2284
- name: string;
2285
2284
  path: string;
2285
+ name: string;
2286
2286
  source: "project" | "user" | "package";
2287
2287
  shadows: {
2288
2288
  path: string;
@@ -2291,8 +2291,8 @@ declare const SchemaResolutionSchema: z.ZodObject<{
2291
2291
  }[];
2292
2292
  displayPath?: string | undefined;
2293
2293
  }, {
2294
- name: string;
2295
2294
  path: string;
2295
+ name: string;
2296
2296
  source: "project" | "user" | "package";
2297
2297
  shadows: {
2298
2298
  path: string;
@@ -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;
2725
2724
  command: string;
2726
2725
  args: string[];
2727
2726
  platform: "windows" | "macos" | "common";
2728
2727
  exitCode: number | null;
2729
2728
  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;
2735
2734
  command: string;
2736
2735
  args: string[];
2737
2736
  platform: "windows" | "macos" | "common";
2738
2737
  exitCode: number | null;
2739
2738
  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
- command?: string | undefined;
2757
- args?: string[] | undefined;
2758
2756
  cols?: number | undefined;
2759
2757
  rows?: number | undefined;
2758
+ command?: string | undefined;
2759
+ args?: string[] | 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
- command?: string | undefined;
2766
- args?: string[] | undefined;
2767
2765
  cols?: number | undefined;
2768
2766
  rows?: number | undefined;
2767
+ command?: string | undefined;
2768
+ args?: string[] | 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
- command?: string | undefined;
2847
- args?: string[] | undefined;
2848
2846
  cols?: number | undefined;
2849
2847
  rows?: number | undefined;
2848
+ command?: string | undefined;
2849
+ args?: string[] | 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
- command?: string | undefined;
2856
- args?: string[] | undefined;
2857
2855
  cols?: number | undefined;
2858
2856
  rows?: number | undefined;
2857
+ command?: string | undefined;
2858
+ args?: string[] | 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;
3001
3000
  command: string;
3002
3001
  args: string[];
3003
3002
  platform: "windows" | "macos" | "common";
3004
3003
  exitCode: number | null;
3005
3004
  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;
3011
3010
  command: string;
3012
3011
  args: string[];
3013
3012
  platform: "windows" | "macos" | "common";
3014
3013
  exitCode: number | null;
3015
3014
  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;
3024
3023
  command: string;
3025
3024
  args: string[];
3026
3025
  platform: "windows" | "macos" | "common";
3027
3026
  exitCode: number | null;
3028
3027
  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;
3037
3036
  command: string;
3038
3037
  args: string[];
3039
3038
  platform: "windows" | "macos" | "common";
3040
3039
  exitCode: number | null;
3041
3040
  title: string;
3041
+ id: string;
3042
3042
  isExited: boolean;
3043
3043
  closeTip?: string | undefined;
3044
3044
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -3051,14 +3051,14 @@ declare const PtyErrorResponseSchema: z.ZodObject<{
3051
3051
  message: z.ZodString;
3052
3052
  sessionId: z.ZodOptional<z.ZodString>;
3053
3053
  }, "strip", z.ZodTypeAny, {
3054
+ type: "error";
3054
3055
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
3055
3056
  message: string;
3056
- type: "error";
3057
3057
  sessionId?: string | undefined;
3058
3058
  }, {
3059
+ type: "error";
3059
3060
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
3060
3061
  message: string;
3061
- type: "error";
3062
3062
  sessionId?: string | undefined;
3063
3063
  }>;
3064
3064
  declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -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;
3141
3140
  command: string;
3142
3141
  args: string[];
3143
3142
  platform: "windows" | "macos" | "common";
3144
3143
  exitCode: number | null;
3145
3144
  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;
3151
3150
  command: string;
3152
3151
  args: string[];
3153
3152
  platform: "windows" | "macos" | "common";
3154
3153
  exitCode: number | null;
3155
3154
  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;
3164
3163
  command: string;
3165
3164
  args: string[];
3166
3165
  platform: "windows" | "macos" | "common";
3167
3166
  exitCode: number | null;
3168
3167
  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;
3177
3176
  command: string;
3178
3177
  args: string[];
3179
3178
  platform: "windows" | "macos" | "common";
3180
3179
  exitCode: number | null;
3181
3180
  title: string;
3181
+ id: string;
3182
3182
  isExited: boolean;
3183
3183
  closeTip?: string | undefined;
3184
3184
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -3189,14 +3189,14 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
3189
3189
  message: z.ZodString;
3190
3190
  sessionId: z.ZodOptional<z.ZodString>;
3191
3191
  }, "strip", z.ZodTypeAny, {
3192
+ type: "error";
3192
3193
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
3193
3194
  message: string;
3194
- type: "error";
3195
3195
  sessionId?: string | undefined;
3196
3196
  }, {
3197
+ type: "error";
3197
3198
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
3198
3199
  message: string;
3199
- type: "error";
3200
3200
  sessionId?: string | undefined;
3201
3201
  }>]>;
3202
3202
  type PtyClientMessage = z.infer<typeof PtyClientMessageSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openspecui/core",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "Core OpenSpec adapter and parser",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",