@openspecui/core 2.3.6 → 2.3.7

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 +38 -38
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -19,13 +19,13 @@ declare const ChangeFileSchema: z.ZodObject<{
19
19
  /** Optional byte size for files */
20
20
  size: z.ZodOptional<z.ZodNumber>;
21
21
  }, "strip", z.ZodTypeAny, {
22
- path: string;
23
22
  type: "file" | "directory";
23
+ path: string;
24
24
  content?: string | undefined;
25
25
  size?: number | undefined;
26
26
  }, {
27
- path: string;
28
27
  type: "file" | "directory";
28
+ path: string;
29
29
  content?: string | undefined;
30
30
  size?: number | undefined;
31
31
  }>;
@@ -1954,14 +1954,14 @@ declare const ArtifactStatusSchema: z.ZodObject<{
1954
1954
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1955
1955
  relativePath: z.ZodOptional<z.ZodString>;
1956
1956
  }, "strip", z.ZodTypeAny, {
1957
- id: string;
1958
1957
  status: "done" | "ready" | "blocked";
1958
+ id: string;
1959
1959
  outputPath: string;
1960
1960
  missingDeps?: string[] | undefined;
1961
1961
  relativePath?: string | undefined;
1962
1962
  }, {
1963
- id: string;
1964
1963
  status: "done" | "ready" | "blocked";
1964
+ id: string;
1965
1965
  outputPath: string;
1966
1966
  missingDeps?: string[] | undefined;
1967
1967
  relativePath?: string | undefined;
@@ -1979,14 +1979,14 @@ declare const ChangeStatusSchema: z.ZodObject<{
1979
1979
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1980
1980
  relativePath: z.ZodOptional<z.ZodString>;
1981
1981
  }, "strip", z.ZodTypeAny, {
1982
- id: string;
1983
1982
  status: "done" | "ready" | "blocked";
1983
+ id: string;
1984
1984
  outputPath: string;
1985
1985
  missingDeps?: string[] | undefined;
1986
1986
  relativePath?: string | undefined;
1987
1987
  }, {
1988
- id: string;
1989
1988
  status: "done" | "ready" | "blocked";
1989
+ id: string;
1990
1990
  outputPath: string;
1991
1991
  missingDeps?: string[] | undefined;
1992
1992
  relativePath?: string | undefined;
@@ -1997,8 +1997,8 @@ declare const ChangeStatusSchema: z.ZodObject<{
1997
1997
  isComplete: boolean;
1998
1998
  applyRequires: string[];
1999
1999
  artifacts: {
2000
- id: string;
2001
2000
  status: "done" | "ready" | "blocked";
2001
+ id: string;
2002
2002
  outputPath: string;
2003
2003
  missingDeps?: string[] | undefined;
2004
2004
  relativePath?: string | undefined;
@@ -2009,8 +2009,8 @@ declare const ChangeStatusSchema: z.ZodObject<{
2009
2009
  isComplete: boolean;
2010
2010
  applyRequires: string[];
2011
2011
  artifacts: {
2012
- id: string;
2013
2012
  status: "done" | "ready" | "blocked";
2013
+ id: string;
2014
2014
  outputPath: string;
2015
2015
  missingDeps?: string[] | undefined;
2016
2016
  relativePath?: string | undefined;
@@ -2023,13 +2023,13 @@ declare const DependencyInfoSchema: z.ZodObject<{
2023
2023
  path: z.ZodString;
2024
2024
  description: z.ZodString;
2025
2025
  }, "strip", z.ZodTypeAny, {
2026
- id: string;
2027
2026
  path: string;
2027
+ id: string;
2028
2028
  description: string;
2029
2029
  done: boolean;
2030
2030
  }, {
2031
- id: string;
2032
2031
  path: string;
2032
+ id: string;
2033
2033
  description: string;
2034
2034
  done: boolean;
2035
2035
  }>;
@@ -2137,13 +2137,13 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2137
2137
  path: z.ZodString;
2138
2138
  description: z.ZodString;
2139
2139
  }, "strip", z.ZodTypeAny, {
2140
- id: string;
2141
2140
  path: string;
2141
+ id: string;
2142
2142
  description: string;
2143
2143
  done: boolean;
2144
2144
  }, {
2145
- id: string;
2146
2145
  path: string;
2146
+ id: string;
2147
2147
  description: string;
2148
2148
  done: boolean;
2149
2149
  }>, "many">;
@@ -2157,8 +2157,8 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2157
2157
  artifactId: string;
2158
2158
  template: string;
2159
2159
  dependencies: {
2160
- id: string;
2161
2160
  path: string;
2161
+ id: string;
2162
2162
  description: string;
2163
2163
  done: boolean;
2164
2164
  }[];
@@ -2175,8 +2175,8 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2175
2175
  artifactId: string;
2176
2176
  template: string;
2177
2177
  dependencies: {
2178
- id: string;
2179
2178
  path: string;
2179
+ id: string;
2180
2180
  description: string;
2181
2181
  done: boolean;
2182
2182
  }[];
@@ -2222,8 +2222,8 @@ declare const SchemaResolutionSchema: z.ZodObject<{
2222
2222
  displayPath?: string | undefined;
2223
2223
  }>, "many">;
2224
2224
  }, "strip", z.ZodTypeAny, {
2225
- name: string;
2226
2225
  path: string;
2226
+ name: string;
2227
2227
  source: "project" | "user" | "package";
2228
2228
  shadows: {
2229
2229
  path: string;
@@ -2232,8 +2232,8 @@ declare const SchemaResolutionSchema: z.ZodObject<{
2232
2232
  }[];
2233
2233
  displayPath?: string | undefined;
2234
2234
  }, {
2235
- name: string;
2236
2235
  path: string;
2236
+ name: string;
2237
2237
  source: "project" | "user" | "package";
2238
2238
  shadows: {
2239
2239
  path: string;
@@ -2662,22 +2662,22 @@ declare const PtySessionInfoSchema: z.ZodObject<{
2662
2662
  closeTip: z.ZodOptional<z.ZodString>;
2663
2663
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2664
2664
  }, "strip", z.ZodTypeAny, {
2665
- id: string;
2666
2665
  command: string;
2667
2666
  args: string[];
2668
2667
  platform: "windows" | "macos" | "common";
2669
2668
  exitCode: number | null;
2670
2669
  title: string;
2670
+ id: string;
2671
2671
  isExited: boolean;
2672
2672
  closeTip?: string | undefined;
2673
2673
  closeCallbackUrl?: string | Record<string, string> | undefined;
2674
2674
  }, {
2675
- id: string;
2676
2675
  command: string;
2677
2676
  args: string[];
2678
2677
  platform: "windows" | "macos" | "common";
2679
2678
  exitCode: number | null;
2680
2679
  title: string;
2680
+ id: string;
2681
2681
  isExited: boolean;
2682
2682
  closeTip?: string | undefined;
2683
2683
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -2694,19 +2694,19 @@ declare const PtyCreateMessageSchema: z.ZodObject<{
2694
2694
  }, "strip", z.ZodTypeAny, {
2695
2695
  type: "create";
2696
2696
  requestId: string;
2697
- command?: string | undefined;
2698
- args?: string[] | undefined;
2699
2697
  cols?: number | undefined;
2700
2698
  rows?: number | undefined;
2699
+ command?: string | undefined;
2700
+ args?: string[] | undefined;
2701
2701
  closeTip?: string | undefined;
2702
2702
  closeCallbackUrl?: string | Record<string, string> | undefined;
2703
2703
  }, {
2704
2704
  type: "create";
2705
2705
  requestId: string;
2706
- command?: string | undefined;
2707
- args?: string[] | undefined;
2708
2706
  cols?: number | undefined;
2709
2707
  rows?: number | undefined;
2708
+ command?: string | undefined;
2709
+ args?: string[] | undefined;
2710
2710
  closeTip?: string | undefined;
2711
2711
  closeCallbackUrl?: string | Record<string, string> | undefined;
2712
2712
  }>;
@@ -2784,19 +2784,19 @@ declare const PtyClientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
2784
2784
  }, "strip", z.ZodTypeAny, {
2785
2785
  type: "create";
2786
2786
  requestId: string;
2787
- command?: string | undefined;
2788
- args?: string[] | undefined;
2789
2787
  cols?: number | undefined;
2790
2788
  rows?: number | undefined;
2789
+ command?: string | undefined;
2790
+ args?: string[] | undefined;
2791
2791
  closeTip?: string | undefined;
2792
2792
  closeCallbackUrl?: string | Record<string, string> | undefined;
2793
2793
  }, {
2794
2794
  type: "create";
2795
2795
  requestId: string;
2796
- command?: string | undefined;
2797
- args?: string[] | undefined;
2798
2796
  cols?: number | undefined;
2799
2797
  rows?: number | undefined;
2798
+ command?: string | undefined;
2799
+ args?: string[] | undefined;
2800
2800
  closeTip?: string | undefined;
2801
2801
  closeCallbackUrl?: string | Record<string, string> | undefined;
2802
2802
  }>, z.ZodObject<{
@@ -2938,22 +2938,22 @@ declare const PtyListResponseSchema: z.ZodObject<{
2938
2938
  closeTip: z.ZodOptional<z.ZodString>;
2939
2939
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2940
2940
  }, "strip", z.ZodTypeAny, {
2941
- id: string;
2942
2941
  command: string;
2943
2942
  args: string[];
2944
2943
  platform: "windows" | "macos" | "common";
2945
2944
  exitCode: number | null;
2946
2945
  title: string;
2946
+ id: string;
2947
2947
  isExited: boolean;
2948
2948
  closeTip?: string | undefined;
2949
2949
  closeCallbackUrl?: string | Record<string, string> | undefined;
2950
2950
  }, {
2951
- id: string;
2952
2951
  command: string;
2953
2952
  args: string[];
2954
2953
  platform: "windows" | "macos" | "common";
2955
2954
  exitCode: number | null;
2956
2955
  title: string;
2956
+ id: string;
2957
2957
  isExited: boolean;
2958
2958
  closeTip?: string | undefined;
2959
2959
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -2961,12 +2961,12 @@ declare const PtyListResponseSchema: z.ZodObject<{
2961
2961
  }, "strip", z.ZodTypeAny, {
2962
2962
  type: "list";
2963
2963
  sessions: {
2964
- id: string;
2965
2964
  command: string;
2966
2965
  args: string[];
2967
2966
  platform: "windows" | "macos" | "common";
2968
2967
  exitCode: number | null;
2969
2968
  title: string;
2969
+ id: string;
2970
2970
  isExited: boolean;
2971
2971
  closeTip?: string | undefined;
2972
2972
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -2974,12 +2974,12 @@ declare const PtyListResponseSchema: z.ZodObject<{
2974
2974
  }, {
2975
2975
  type: "list";
2976
2976
  sessions: {
2977
- id: string;
2978
2977
  command: string;
2979
2978
  args: string[];
2980
2979
  platform: "windows" | "macos" | "common";
2981
2980
  exitCode: number | null;
2982
2981
  title: string;
2982
+ id: string;
2983
2983
  isExited: boolean;
2984
2984
  closeTip?: string | undefined;
2985
2985
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -2992,14 +2992,14 @@ declare const PtyErrorResponseSchema: z.ZodObject<{
2992
2992
  message: z.ZodString;
2993
2993
  sessionId: z.ZodOptional<z.ZodString>;
2994
2994
  }, "strip", z.ZodTypeAny, {
2995
+ type: "error";
2995
2996
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2996
2997
  message: string;
2997
- type: "error";
2998
2998
  sessionId?: string | undefined;
2999
2999
  }, {
3000
+ type: "error";
3000
3001
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
3001
3002
  message: string;
3002
- type: "error";
3003
3003
  sessionId?: string | undefined;
3004
3004
  }>;
3005
3005
  declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -3078,22 +3078,22 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
3078
3078
  closeTip: z.ZodOptional<z.ZodString>;
3079
3079
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3080
3080
  }, "strip", z.ZodTypeAny, {
3081
- id: string;
3082
3081
  command: string;
3083
3082
  args: string[];
3084
3083
  platform: "windows" | "macos" | "common";
3085
3084
  exitCode: number | null;
3086
3085
  title: string;
3086
+ id: string;
3087
3087
  isExited: boolean;
3088
3088
  closeTip?: string | undefined;
3089
3089
  closeCallbackUrl?: string | Record<string, string> | undefined;
3090
3090
  }, {
3091
- id: string;
3092
3091
  command: string;
3093
3092
  args: string[];
3094
3093
  platform: "windows" | "macos" | "common";
3095
3094
  exitCode: number | null;
3096
3095
  title: string;
3096
+ id: string;
3097
3097
  isExited: boolean;
3098
3098
  closeTip?: string | undefined;
3099
3099
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -3101,12 +3101,12 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
3101
3101
  }, "strip", z.ZodTypeAny, {
3102
3102
  type: "list";
3103
3103
  sessions: {
3104
- id: string;
3105
3104
  command: string;
3106
3105
  args: string[];
3107
3106
  platform: "windows" | "macos" | "common";
3108
3107
  exitCode: number | null;
3109
3108
  title: string;
3109
+ id: string;
3110
3110
  isExited: boolean;
3111
3111
  closeTip?: string | undefined;
3112
3112
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -3114,12 +3114,12 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
3114
3114
  }, {
3115
3115
  type: "list";
3116
3116
  sessions: {
3117
- id: string;
3118
3117
  command: string;
3119
3118
  args: string[];
3120
3119
  platform: "windows" | "macos" | "common";
3121
3120
  exitCode: number | null;
3122
3121
  title: string;
3122
+ id: string;
3123
3123
  isExited: boolean;
3124
3124
  closeTip?: string | undefined;
3125
3125
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -3130,14 +3130,14 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
3130
3130
  message: z.ZodString;
3131
3131
  sessionId: z.ZodOptional<z.ZodString>;
3132
3132
  }, "strip", z.ZodTypeAny, {
3133
+ type: "error";
3133
3134
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
3134
3135
  message: string;
3135
- type: "error";
3136
3136
  sessionId?: string | undefined;
3137
3137
  }, {
3138
+ type: "error";
3138
3139
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
3139
3140
  message: string;
3140
- type: "error";
3141
3141
  sessionId?: string | undefined;
3142
3142
  }>]>;
3143
3143
  type PtyClientMessage = z.infer<typeof PtyClientMessageSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openspecui/core",
3
- "version": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "description": "Core OpenSpec adapter and parser",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",