@openspecui/core 1.0.4 → 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.
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
@@ -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
- path: string;
21
20
  type: "file" | "directory";
21
+ path: string;
22
22
  content?: string | undefined;
23
23
  size?: number | undefined;
24
24
  }, {
25
- path: string;
26
25
  type: "file" | "directory";
26
+ path: string;
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
- id: string;
1677
1676
  status: "done" | "ready" | "blocked";
1677
+ id: string;
1678
1678
  outputPath: string;
1679
1679
  missingDeps?: string[] | undefined;
1680
1680
  relativePath?: string | undefined;
1681
1681
  }, {
1682
- id: string;
1683
1682
  status: "done" | "ready" | "blocked";
1683
+ id: string;
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
- id: string;
1702
1701
  status: "done" | "ready" | "blocked";
1702
+ id: string;
1703
1703
  outputPath: string;
1704
1704
  missingDeps?: string[] | undefined;
1705
1705
  relativePath?: string | undefined;
1706
1706
  }, {
1707
- id: string;
1708
1707
  status: "done" | "ready" | "blocked";
1708
+ id: string;
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
- id: string;
1720
1719
  status: "done" | "ready" | "blocked";
1720
+ id: string;
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
- id: string;
1732
1731
  status: "done" | "ready" | "blocked";
1732
+ id: string;
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
- id: string;
1746
1745
  path: string;
1746
+ id: string;
1747
1747
  description: string;
1748
1748
  done: boolean;
1749
1749
  }, {
1750
- id: string;
1751
1750
  path: string;
1751
+ id: 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
- id: string;
1860
1859
  path: string;
1860
+ id: string;
1861
1861
  description: string;
1862
1862
  done: boolean;
1863
1863
  }, {
1864
- id: string;
1865
1864
  path: string;
1865
+ id: 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
- id: string;
1880
1879
  path: string;
1880
+ id: 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
- id: string;
1898
1897
  path: string;
1898
+ id: 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
- name: string;
1941
1940
  path: string;
1941
+ name: 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
- name: string;
1949
1948
  path: string;
1949
+ name: 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;
2248
2247
  command: string;
2249
2248
  args: string[];
2250
2249
  platform: "windows" | "macos" | "common";
2251
2250
  exitCode: number | null;
2252
2251
  title: string;
2252
+ id: string;
2253
2253
  isExited: boolean;
2254
2254
  }, {
2255
- id: string;
2256
2255
  command: string;
2257
2256
  args: string[];
2258
2257
  platform: "windows" | "macos" | "common";
2259
2258
  exitCode: number | null;
2260
2259
  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
- command?: string | undefined;
2274
- args?: string[] | undefined;
2275
2273
  cols?: number | undefined;
2276
2274
  rows?: number | undefined;
2275
+ command?: string | undefined;
2276
+ args?: string[] | undefined;
2277
2277
  }, {
2278
2278
  type: "create";
2279
2279
  requestId: string;
2280
- command?: string | undefined;
2281
- args?: string[] | undefined;
2282
2280
  cols?: number | undefined;
2283
2281
  rows?: number | undefined;
2282
+ command?: string | undefined;
2283
+ args?: string[] | 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
- command?: string | undefined;
2358
- args?: string[] | undefined;
2359
2357
  cols?: number | undefined;
2360
2358
  rows?: number | undefined;
2359
+ command?: string | undefined;
2360
+ args?: string[] | undefined;
2361
2361
  }, {
2362
2362
  type: "create";
2363
2363
  requestId: string;
2364
- command?: string | undefined;
2365
- args?: string[] | undefined;
2366
2364
  cols?: number | undefined;
2367
2365
  rows?: number | undefined;
2366
+ command?: string | undefined;
2367
+ args?: string[] | undefined;
2368
2368
  }>, z.ZodObject<{
2369
2369
  type: z.ZodLiteral<"input">;
2370
2370
  sessionId: z.ZodString;
@@ -2502,42 +2502,42 @@ 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;
2506
2505
  command: string;
2507
2506
  args: string[];
2508
2507
  platform: "windows" | "macos" | "common";
2509
2508
  exitCode: number | null;
2510
2509
  title: string;
2510
+ id: string;
2511
2511
  isExited: boolean;
2512
2512
  }, {
2513
- id: string;
2514
2513
  command: string;
2515
2514
  args: string[];
2516
2515
  platform: "windows" | "macos" | "common";
2517
2516
  exitCode: number | null;
2518
2517
  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;
2525
2524
  command: string;
2526
2525
  args: string[];
2527
2526
  platform: "windows" | "macos" | "common";
2528
2527
  exitCode: number | null;
2529
2528
  title: string;
2529
+ id: string;
2530
2530
  isExited: boolean;
2531
2531
  }[];
2532
2532
  }, {
2533
2533
  type: "list";
2534
2534
  sessions: {
2535
- id: string;
2536
2535
  command: string;
2537
2536
  args: string[];
2538
2537
  platform: "windows" | "macos" | "common";
2539
2538
  exitCode: number | null;
2540
2539
  title: string;
2540
+ id: string;
2541
2541
  isExited: boolean;
2542
2542
  }[];
2543
2543
  }>;
@@ -2548,14 +2548,14 @@ declare const PtyErrorResponseSchema: z.ZodObject<{
2548
2548
  message: z.ZodString;
2549
2549
  sessionId: z.ZodOptional<z.ZodString>;
2550
2550
  }, "strip", z.ZodTypeAny, {
2551
+ type: "error";
2551
2552
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2552
2553
  message: string;
2553
- type: "error";
2554
2554
  sessionId?: string | undefined;
2555
2555
  }, {
2556
+ type: "error";
2556
2557
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2557
2558
  message: string;
2558
- type: "error";
2559
2559
  sessionId?: string | undefined;
2560
2560
  }>;
2561
2561
  declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -2632,42 +2632,42 @@ 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;
2636
2635
  command: string;
2637
2636
  args: string[];
2638
2637
  platform: "windows" | "macos" | "common";
2639
2638
  exitCode: number | null;
2640
2639
  title: string;
2640
+ id: string;
2641
2641
  isExited: boolean;
2642
2642
  }, {
2643
- id: string;
2644
2643
  command: string;
2645
2644
  args: string[];
2646
2645
  platform: "windows" | "macos" | "common";
2647
2646
  exitCode: number | null;
2648
2647
  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;
2655
2654
  command: string;
2656
2655
  args: string[];
2657
2656
  platform: "windows" | "macos" | "common";
2658
2657
  exitCode: number | null;
2659
2658
  title: string;
2659
+ id: string;
2660
2660
  isExited: boolean;
2661
2661
  }[];
2662
2662
  }, {
2663
2663
  type: "list";
2664
2664
  sessions: {
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
  }[];
2673
2673
  }>, z.ZodObject<{
@@ -2676,14 +2676,14 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
2676
2676
  message: z.ZodString;
2677
2677
  sessionId: z.ZodOptional<z.ZodString>;
2678
2678
  }, "strip", z.ZodTypeAny, {
2679
+ type: "error";
2679
2680
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2680
2681
  message: string;
2681
- type: "error";
2682
2682
  sessionId?: string | undefined;
2683
2683
  }, {
2684
+ type: "error";
2684
2685
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2685
2686
  message: string;
2686
- type: "error";
2687
2687
  sessionId?: string | undefined;
2688
2688
  }>]>;
2689
2689
  type PtyClientMessage = z.infer<typeof PtyClientMessageSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openspecui/core",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "description": "Core OpenSpec adapter and parser",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",