@openspecui/core 1.0.3 → 1.0.4

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
@@ -17,13 +17,13 @@ declare const ChangeFileSchema: z.ZodObject<{
17
17
  /** Optional byte size for files */
18
18
  size: z.ZodOptional<z.ZodNumber>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- type: "file" | "directory";
21
20
  path: string;
21
+ type: "file" | "directory";
22
22
  content?: string | undefined;
23
23
  size?: number | undefined;
24
24
  }, {
25
- type: "file" | "directory";
26
25
  path: string;
26
+ type: "file" | "directory";
27
27
  content?: string | undefined;
28
28
  size?: number | undefined;
29
29
  }>;
@@ -1673,14 +1673,14 @@ declare const ArtifactStatusSchema: z.ZodObject<{
1673
1673
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1674
1674
  relativePath: z.ZodOptional<z.ZodString>;
1675
1675
  }, "strip", z.ZodTypeAny, {
1676
- status: "done" | "ready" | "blocked";
1677
1676
  id: string;
1677
+ status: "done" | "ready" | "blocked";
1678
1678
  outputPath: string;
1679
1679
  missingDeps?: string[] | undefined;
1680
1680
  relativePath?: string | undefined;
1681
1681
  }, {
1682
- status: "done" | "ready" | "blocked";
1683
1682
  id: string;
1683
+ status: "done" | "ready" | "blocked";
1684
1684
  outputPath: string;
1685
1685
  missingDeps?: string[] | undefined;
1686
1686
  relativePath?: string | undefined;
@@ -1698,14 +1698,14 @@ declare const ChangeStatusSchema: z.ZodObject<{
1698
1698
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1699
1699
  relativePath: z.ZodOptional<z.ZodString>;
1700
1700
  }, "strip", z.ZodTypeAny, {
1701
- status: "done" | "ready" | "blocked";
1702
1701
  id: string;
1702
+ status: "done" | "ready" | "blocked";
1703
1703
  outputPath: string;
1704
1704
  missingDeps?: string[] | undefined;
1705
1705
  relativePath?: string | undefined;
1706
1706
  }, {
1707
- status: "done" | "ready" | "blocked";
1708
1707
  id: string;
1708
+ status: "done" | "ready" | "blocked";
1709
1709
  outputPath: string;
1710
1710
  missingDeps?: string[] | undefined;
1711
1711
  relativePath?: string | undefined;
@@ -1716,8 +1716,8 @@ declare const ChangeStatusSchema: z.ZodObject<{
1716
1716
  isComplete: boolean;
1717
1717
  applyRequires: string[];
1718
1718
  artifacts: {
1719
- status: "done" | "ready" | "blocked";
1720
1719
  id: string;
1720
+ status: "done" | "ready" | "blocked";
1721
1721
  outputPath: string;
1722
1722
  missingDeps?: string[] | undefined;
1723
1723
  relativePath?: string | undefined;
@@ -1728,8 +1728,8 @@ declare const ChangeStatusSchema: z.ZodObject<{
1728
1728
  isComplete: boolean;
1729
1729
  applyRequires: string[];
1730
1730
  artifacts: {
1731
- status: "done" | "ready" | "blocked";
1732
1731
  id: string;
1732
+ status: "done" | "ready" | "blocked";
1733
1733
  outputPath: string;
1734
1734
  missingDeps?: string[] | undefined;
1735
1735
  relativePath?: string | undefined;
@@ -1742,13 +1742,13 @@ declare const DependencyInfoSchema: z.ZodObject<{
1742
1742
  path: z.ZodString;
1743
1743
  description: z.ZodString;
1744
1744
  }, "strip", z.ZodTypeAny, {
1745
- path: string;
1746
1745
  id: string;
1746
+ path: string;
1747
1747
  description: string;
1748
1748
  done: boolean;
1749
1749
  }, {
1750
- path: string;
1751
1750
  id: string;
1751
+ path: string;
1752
1752
  description: string;
1753
1753
  done: boolean;
1754
1754
  }>;
@@ -1856,13 +1856,13 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
1856
1856
  path: z.ZodString;
1857
1857
  description: z.ZodString;
1858
1858
  }, "strip", z.ZodTypeAny, {
1859
- path: string;
1860
1859
  id: string;
1860
+ path: string;
1861
1861
  description: string;
1862
1862
  done: boolean;
1863
1863
  }, {
1864
- path: string;
1865
1864
  id: string;
1865
+ path: string;
1866
1866
  description: string;
1867
1867
  done: boolean;
1868
1868
  }>, "many">;
@@ -1876,8 +1876,8 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
1876
1876
  artifactId: string;
1877
1877
  template: string;
1878
1878
  dependencies: {
1879
- path: string;
1880
1879
  id: string;
1880
+ path: string;
1881
1881
  description: string;
1882
1882
  done: boolean;
1883
1883
  }[];
@@ -1894,8 +1894,8 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
1894
1894
  artifactId: string;
1895
1895
  template: string;
1896
1896
  dependencies: {
1897
- path: string;
1898
1897
  id: string;
1898
+ path: string;
1899
1899
  description: string;
1900
1900
  done: boolean;
1901
1901
  }[];
@@ -1937,16 +1937,16 @@ declare const SchemaResolutionSchema: z.ZodObject<{
1937
1937
  source: "project" | "user" | "package";
1938
1938
  }>, "many">;
1939
1939
  }, "strip", z.ZodTypeAny, {
1940
- path: string;
1941
1940
  name: string;
1941
+ path: string;
1942
1942
  source: "project" | "user" | "package";
1943
1943
  shadows: {
1944
1944
  path: string;
1945
1945
  source: "project" | "user" | "package";
1946
1946
  }[];
1947
1947
  }, {
1948
- path: string;
1949
1948
  name: string;
1949
+ path: string;
1950
1950
  source: "project" | "user" | "package";
1951
1951
  shadows: {
1952
1952
  path: string;
@@ -2244,20 +2244,20 @@ declare const PtySessionInfoSchema: z.ZodObject<{
2244
2244
  isExited: z.ZodBoolean;
2245
2245
  exitCode: z.ZodNullable<z.ZodNumber>;
2246
2246
  }, "strip", z.ZodTypeAny, {
2247
+ id: string;
2247
2248
  command: string;
2248
2249
  args: string[];
2249
2250
  platform: "windows" | "macos" | "common";
2250
2251
  exitCode: number | null;
2251
2252
  title: string;
2252
- id: string;
2253
2253
  isExited: boolean;
2254
2254
  }, {
2255
+ id: string;
2255
2256
  command: string;
2256
2257
  args: string[];
2257
2258
  platform: "windows" | "macos" | "common";
2258
2259
  exitCode: number | null;
2259
2260
  title: string;
2260
- id: string;
2261
2261
  isExited: boolean;
2262
2262
  }>;
2263
2263
  declare const PtyCreateMessageSchema: z.ZodObject<{
@@ -2270,17 +2270,17 @@ declare const PtyCreateMessageSchema: z.ZodObject<{
2270
2270
  }, "strip", z.ZodTypeAny, {
2271
2271
  type: "create";
2272
2272
  requestId: string;
2273
- cols?: number | undefined;
2274
- rows?: number | undefined;
2275
2273
  command?: string | undefined;
2276
2274
  args?: string[] | undefined;
2275
+ cols?: number | undefined;
2276
+ rows?: number | undefined;
2277
2277
  }, {
2278
2278
  type: "create";
2279
2279
  requestId: string;
2280
- cols?: number | undefined;
2281
- rows?: number | undefined;
2282
2280
  command?: string | undefined;
2283
2281
  args?: string[] | undefined;
2282
+ cols?: number | undefined;
2283
+ rows?: number | undefined;
2284
2284
  }>;
2285
2285
  declare const PtyInputMessageSchema: z.ZodObject<{
2286
2286
  type: z.ZodLiteral<"input">;
@@ -2354,17 +2354,17 @@ declare const PtyClientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
2354
2354
  }, "strip", z.ZodTypeAny, {
2355
2355
  type: "create";
2356
2356
  requestId: string;
2357
- cols?: number | undefined;
2358
- rows?: number | undefined;
2359
2357
  command?: string | undefined;
2360
2358
  args?: string[] | undefined;
2359
+ cols?: number | undefined;
2360
+ rows?: number | undefined;
2361
2361
  }, {
2362
2362
  type: "create";
2363
2363
  requestId: string;
2364
- cols?: number | undefined;
2365
- rows?: number | undefined;
2366
2364
  command?: string | undefined;
2367
2365
  args?: string[] | undefined;
2366
+ cols?: number | undefined;
2367
+ rows?: number | undefined;
2368
2368
  }>, z.ZodObject<{
2369
2369
  type: z.ZodLiteral<"input">;
2370
2370
  sessionId: z.ZodString;
@@ -2502,60 +2502,60 @@ declare const PtyListResponseSchema: z.ZodObject<{
2502
2502
  isExited: z.ZodBoolean;
2503
2503
  exitCode: z.ZodNullable<z.ZodNumber>;
2504
2504
  }, "strip", z.ZodTypeAny, {
2505
+ id: string;
2505
2506
  command: string;
2506
2507
  args: string[];
2507
2508
  platform: "windows" | "macos" | "common";
2508
2509
  exitCode: number | null;
2509
2510
  title: string;
2510
- id: string;
2511
2511
  isExited: boolean;
2512
2512
  }, {
2513
+ id: string;
2513
2514
  command: string;
2514
2515
  args: string[];
2515
2516
  platform: "windows" | "macos" | "common";
2516
2517
  exitCode: number | null;
2517
2518
  title: string;
2518
- id: string;
2519
2519
  isExited: boolean;
2520
2520
  }>, "many">;
2521
2521
  }, "strip", z.ZodTypeAny, {
2522
2522
  type: "list";
2523
2523
  sessions: {
2524
+ id: string;
2524
2525
  command: string;
2525
2526
  args: string[];
2526
2527
  platform: "windows" | "macos" | "common";
2527
2528
  exitCode: number | null;
2528
2529
  title: string;
2529
- id: string;
2530
2530
  isExited: boolean;
2531
2531
  }[];
2532
2532
  }, {
2533
2533
  type: "list";
2534
2534
  sessions: {
2535
+ id: string;
2535
2536
  command: string;
2536
2537
  args: string[];
2537
2538
  platform: "windows" | "macos" | "common";
2538
2539
  exitCode: number | null;
2539
2540
  title: string;
2540
- id: string;
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
- type: "error";
2552
- code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND";
2551
+ code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2553
2552
  message: string;
2553
+ type: "error";
2554
2554
  sessionId?: string | undefined;
2555
2555
  }, {
2556
- type: "error";
2557
- code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND";
2556
+ code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2558
2557
  message: string;
2558
+ type: "error";
2559
2559
  sessionId?: string | undefined;
2560
2560
  }>;
2561
2561
  declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -2632,58 +2632,58 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
2632
2632
  isExited: z.ZodBoolean;
2633
2633
  exitCode: z.ZodNullable<z.ZodNumber>;
2634
2634
  }, "strip", z.ZodTypeAny, {
2635
+ id: string;
2635
2636
  command: string;
2636
2637
  args: string[];
2637
2638
  platform: "windows" | "macos" | "common";
2638
2639
  exitCode: number | null;
2639
2640
  title: string;
2640
- id: string;
2641
2641
  isExited: boolean;
2642
2642
  }, {
2643
+ id: string;
2643
2644
  command: string;
2644
2645
  args: string[];
2645
2646
  platform: "windows" | "macos" | "common";
2646
2647
  exitCode: number | null;
2647
2648
  title: string;
2648
- id: string;
2649
2649
  isExited: boolean;
2650
2650
  }>, "many">;
2651
2651
  }, "strip", z.ZodTypeAny, {
2652
2652
  type: "list";
2653
2653
  sessions: {
2654
+ id: string;
2654
2655
  command: string;
2655
2656
  args: string[];
2656
2657
  platform: "windows" | "macos" | "common";
2657
2658
  exitCode: number | null;
2658
2659
  title: string;
2659
- id: string;
2660
2660
  isExited: boolean;
2661
2661
  }[];
2662
2662
  }, {
2663
2663
  type: "list";
2664
2664
  sessions: {
2665
+ id: string;
2665
2666
  command: string;
2666
2667
  args: string[];
2667
2668
  platform: "windows" | "macos" | "common";
2668
2669
  exitCode: number | null;
2669
2670
  title: string;
2670
- id: string;
2671
2671
  isExited: boolean;
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
- type: "error";
2680
- code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND";
2679
+ code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2681
2680
  message: string;
2681
+ type: "error";
2682
2682
  sessionId?: string | undefined;
2683
2683
  }, {
2684
- type: "error";
2685
- code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND";
2684
+ code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2686
2685
  message: string;
2686
+ type: "error";
2687
2687
  sessionId?: string | undefined;
2688
2688
  }>]>;
2689
2689
  type PtyClientMessage = z.infer<typeof PtyClientMessageSchema>;
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.0.4",
4
4
  "description": "Core OpenSpec adapter and parser",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",