@openspecui/core 1.0.3 → 1.1.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.
package/dist/index.d.mts CHANGED
@@ -2541,20 +2541,20 @@ declare const PtyListResponseSchema: z.ZodObject<{
2541
2541
  isExited: boolean;
2542
2542
  }[];
2543
2543
  }>;
2544
- declare const PtyErrorCodeSchema: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND"]>;
2544
+ declare const PtyErrorCodeSchema: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED"]>;
2545
2545
  declare const PtyErrorResponseSchema: z.ZodObject<{
2546
2546
  type: z.ZodLiteral<"error">;
2547
- code: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND"]>;
2547
+ code: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED"]>;
2548
2548
  message: z.ZodString;
2549
2549
  sessionId: z.ZodOptional<z.ZodString>;
2550
2550
  }, "strip", z.ZodTypeAny, {
2551
2551
  type: "error";
2552
- code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND";
2552
+ code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2553
2553
  message: string;
2554
2554
  sessionId?: string | undefined;
2555
2555
  }, {
2556
2556
  type: "error";
2557
- code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND";
2557
+ code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2558
2558
  message: string;
2559
2559
  sessionId?: string | undefined;
2560
2560
  }>;
@@ -2672,17 +2672,17 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
2672
2672
  }[];
2673
2673
  }>, z.ZodObject<{
2674
2674
  type: z.ZodLiteral<"error">;
2675
- code: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND"]>;
2675
+ code: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED"]>;
2676
2676
  message: z.ZodString;
2677
2677
  sessionId: z.ZodOptional<z.ZodString>;
2678
2678
  }, "strip", z.ZodTypeAny, {
2679
2679
  type: "error";
2680
- code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND";
2680
+ code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2681
2681
  message: string;
2682
2682
  sessionId?: string | undefined;
2683
2683
  }, {
2684
2684
  type: "error";
2685
- code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND";
2685
+ code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2686
2686
  message: string;
2687
2687
  sessionId?: string | undefined;
2688
2688
  }>]>;
package/dist/index.mjs CHANGED
@@ -3834,7 +3834,8 @@ const PtyListResponseSchema = z.object({
3834
3834
  const PtyErrorCodeSchema = z.enum([
3835
3835
  "INVALID_JSON",
3836
3836
  "INVALID_MESSAGE",
3837
- "SESSION_NOT_FOUND"
3837
+ "SESSION_NOT_FOUND",
3838
+ "PTY_CREATE_FAILED"
3838
3839
  ]);
3839
3840
  const PtyErrorResponseSchema = z.object({
3840
3841
  type: z.literal("error"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openspecui/core",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "Core OpenSpec adapter and parser",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",