@openspecui/core 2.1.0 → 2.1.1

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 (3) hide show
  1. package/dist/index.d.mts +31 -30
  2. package/package.json +12 -8
  3. package/LICENSE +0 -21
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
- type: "file" | "directory";
23
22
  path: string;
23
+ type: "file" | "directory";
24
24
  content?: string | undefined;
25
25
  size?: number | undefined;
26
26
  }, {
27
- type: "file" | "directory";
28
27
  path: string;
28
+ type: "file" | "directory";
29
29
  content?: string | undefined;
30
30
  size?: number | undefined;
31
31
  }>;
@@ -1814,6 +1814,7 @@ interface DashboardGitWorktree {
1814
1814
  path: string;
1815
1815
  relativePath: string;
1816
1816
  branchName: string;
1817
+ detached: boolean;
1817
1818
  isCurrent: boolean;
1818
1819
  ahead: number;
1819
1820
  behind: number;
@@ -1859,14 +1860,14 @@ declare const ArtifactStatusSchema: z.ZodObject<{
1859
1860
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1860
1861
  relativePath: z.ZodOptional<z.ZodString>;
1861
1862
  }, "strip", z.ZodTypeAny, {
1862
- status: "done" | "ready" | "blocked";
1863
1863
  id: string;
1864
+ status: "done" | "ready" | "blocked";
1864
1865
  outputPath: string;
1865
1866
  missingDeps?: string[] | undefined;
1866
1867
  relativePath?: string | undefined;
1867
1868
  }, {
1868
- status: "done" | "ready" | "blocked";
1869
1869
  id: string;
1870
+ status: "done" | "ready" | "blocked";
1870
1871
  outputPath: string;
1871
1872
  missingDeps?: string[] | undefined;
1872
1873
  relativePath?: string | undefined;
@@ -1884,14 +1885,14 @@ declare const ChangeStatusSchema: z.ZodObject<{
1884
1885
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1885
1886
  relativePath: z.ZodOptional<z.ZodString>;
1886
1887
  }, "strip", z.ZodTypeAny, {
1887
- status: "done" | "ready" | "blocked";
1888
1888
  id: string;
1889
+ status: "done" | "ready" | "blocked";
1889
1890
  outputPath: string;
1890
1891
  missingDeps?: string[] | undefined;
1891
1892
  relativePath?: string | undefined;
1892
1893
  }, {
1893
- status: "done" | "ready" | "blocked";
1894
1894
  id: string;
1895
+ status: "done" | "ready" | "blocked";
1895
1896
  outputPath: string;
1896
1897
  missingDeps?: string[] | undefined;
1897
1898
  relativePath?: string | undefined;
@@ -1902,8 +1903,8 @@ declare const ChangeStatusSchema: z.ZodObject<{
1902
1903
  isComplete: boolean;
1903
1904
  applyRequires: string[];
1904
1905
  artifacts: {
1905
- status: "done" | "ready" | "blocked";
1906
1906
  id: string;
1907
+ status: "done" | "ready" | "blocked";
1907
1908
  outputPath: string;
1908
1909
  missingDeps?: string[] | undefined;
1909
1910
  relativePath?: string | undefined;
@@ -1914,8 +1915,8 @@ declare const ChangeStatusSchema: z.ZodObject<{
1914
1915
  isComplete: boolean;
1915
1916
  applyRequires: string[];
1916
1917
  artifacts: {
1917
- status: "done" | "ready" | "blocked";
1918
1918
  id: string;
1919
+ status: "done" | "ready" | "blocked";
1919
1920
  outputPath: string;
1920
1921
  missingDeps?: string[] | undefined;
1921
1922
  relativePath?: string | undefined;
@@ -1928,13 +1929,13 @@ declare const DependencyInfoSchema: z.ZodObject<{
1928
1929
  path: z.ZodString;
1929
1930
  description: z.ZodString;
1930
1931
  }, "strip", z.ZodTypeAny, {
1931
- path: string;
1932
1932
  id: string;
1933
+ path: string;
1933
1934
  description: string;
1934
1935
  done: boolean;
1935
1936
  }, {
1936
- path: string;
1937
1937
  id: string;
1938
+ path: string;
1938
1939
  description: string;
1939
1940
  done: boolean;
1940
1941
  }>;
@@ -2042,13 +2043,13 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2042
2043
  path: z.ZodString;
2043
2044
  description: z.ZodString;
2044
2045
  }, "strip", z.ZodTypeAny, {
2045
- path: string;
2046
2046
  id: string;
2047
+ path: string;
2047
2048
  description: string;
2048
2049
  done: boolean;
2049
2050
  }, {
2050
- path: string;
2051
2051
  id: string;
2052
+ path: string;
2052
2053
  description: string;
2053
2054
  done: boolean;
2054
2055
  }>, "many">;
@@ -2062,8 +2063,8 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2062
2063
  artifactId: string;
2063
2064
  template: string;
2064
2065
  dependencies: {
2065
- path: string;
2066
2066
  id: string;
2067
+ path: string;
2067
2068
  description: string;
2068
2069
  done: boolean;
2069
2070
  }[];
@@ -2080,8 +2081,8 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2080
2081
  artifactId: string;
2081
2082
  template: string;
2082
2083
  dependencies: {
2083
- path: string;
2084
2084
  id: string;
2085
+ path: string;
2085
2086
  description: string;
2086
2087
  done: boolean;
2087
2088
  }[];
@@ -2127,8 +2128,8 @@ declare const SchemaResolutionSchema: z.ZodObject<{
2127
2128
  displayPath?: string | undefined;
2128
2129
  }>, "many">;
2129
2130
  }, "strip", z.ZodTypeAny, {
2130
- path: string;
2131
2131
  name: string;
2132
+ path: string;
2132
2133
  source: "project" | "user" | "package";
2133
2134
  shadows: {
2134
2135
  path: string;
@@ -2137,8 +2138,8 @@ declare const SchemaResolutionSchema: z.ZodObject<{
2137
2138
  }[];
2138
2139
  displayPath?: string | undefined;
2139
2140
  }, {
2140
- path: string;
2141
2141
  name: string;
2142
+ path: string;
2142
2143
  source: "project" | "user" | "package";
2143
2144
  shadows: {
2144
2145
  path: string;
@@ -2478,22 +2479,22 @@ declare const PtySessionInfoSchema: z.ZodObject<{
2478
2479
  closeTip: z.ZodOptional<z.ZodString>;
2479
2480
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2480
2481
  }, "strip", z.ZodTypeAny, {
2482
+ id: string;
2481
2483
  command: string;
2482
2484
  args: string[];
2483
2485
  platform: "windows" | "macos" | "common";
2484
2486
  exitCode: number | null;
2485
2487
  title: string;
2486
- id: string;
2487
2488
  isExited: boolean;
2488
2489
  closeTip?: string | undefined;
2489
2490
  closeCallbackUrl?: string | Record<string, string> | undefined;
2490
2491
  }, {
2492
+ id: string;
2491
2493
  command: string;
2492
2494
  args: string[];
2493
2495
  platform: "windows" | "macos" | "common";
2494
2496
  exitCode: number | null;
2495
2497
  title: string;
2496
- id: string;
2497
2498
  isExited: boolean;
2498
2499
  closeTip?: string | undefined;
2499
2500
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -2754,22 +2755,22 @@ declare const PtyListResponseSchema: z.ZodObject<{
2754
2755
  closeTip: z.ZodOptional<z.ZodString>;
2755
2756
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2756
2757
  }, "strip", z.ZodTypeAny, {
2758
+ id: string;
2757
2759
  command: string;
2758
2760
  args: string[];
2759
2761
  platform: "windows" | "macos" | "common";
2760
2762
  exitCode: number | null;
2761
2763
  title: string;
2762
- id: string;
2763
2764
  isExited: boolean;
2764
2765
  closeTip?: string | undefined;
2765
2766
  closeCallbackUrl?: string | Record<string, string> | undefined;
2766
2767
  }, {
2768
+ id: string;
2767
2769
  command: string;
2768
2770
  args: string[];
2769
2771
  platform: "windows" | "macos" | "common";
2770
2772
  exitCode: number | null;
2771
2773
  title: string;
2772
- id: string;
2773
2774
  isExited: boolean;
2774
2775
  closeTip?: string | undefined;
2775
2776
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -2777,12 +2778,12 @@ declare const PtyListResponseSchema: z.ZodObject<{
2777
2778
  }, "strip", z.ZodTypeAny, {
2778
2779
  type: "list";
2779
2780
  sessions: {
2781
+ id: string;
2780
2782
  command: string;
2781
2783
  args: string[];
2782
2784
  platform: "windows" | "macos" | "common";
2783
2785
  exitCode: number | null;
2784
2786
  title: string;
2785
- id: string;
2786
2787
  isExited: boolean;
2787
2788
  closeTip?: string | undefined;
2788
2789
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -2790,12 +2791,12 @@ declare const PtyListResponseSchema: z.ZodObject<{
2790
2791
  }, {
2791
2792
  type: "list";
2792
2793
  sessions: {
2794
+ id: string;
2793
2795
  command: string;
2794
2796
  args: string[];
2795
2797
  platform: "windows" | "macos" | "common";
2796
2798
  exitCode: number | null;
2797
2799
  title: string;
2798
- id: string;
2799
2800
  isExited: boolean;
2800
2801
  closeTip?: string | undefined;
2801
2802
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -2808,14 +2809,14 @@ declare const PtyErrorResponseSchema: z.ZodObject<{
2808
2809
  message: z.ZodString;
2809
2810
  sessionId: z.ZodOptional<z.ZodString>;
2810
2811
  }, "strip", z.ZodTypeAny, {
2811
- type: "error";
2812
2812
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2813
2813
  message: string;
2814
+ type: "error";
2814
2815
  sessionId?: string | undefined;
2815
2816
  }, {
2816
- type: "error";
2817
2817
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2818
2818
  message: string;
2819
+ type: "error";
2819
2820
  sessionId?: string | undefined;
2820
2821
  }>;
2821
2822
  declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -2894,22 +2895,22 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
2894
2895
  closeTip: z.ZodOptional<z.ZodString>;
2895
2896
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2896
2897
  }, "strip", z.ZodTypeAny, {
2898
+ id: string;
2897
2899
  command: string;
2898
2900
  args: string[];
2899
2901
  platform: "windows" | "macos" | "common";
2900
2902
  exitCode: number | null;
2901
2903
  title: string;
2902
- id: string;
2903
2904
  isExited: boolean;
2904
2905
  closeTip?: string | undefined;
2905
2906
  closeCallbackUrl?: string | Record<string, string> | undefined;
2906
2907
  }, {
2908
+ id: string;
2907
2909
  command: string;
2908
2910
  args: string[];
2909
2911
  platform: "windows" | "macos" | "common";
2910
2912
  exitCode: number | null;
2911
2913
  title: string;
2912
- id: string;
2913
2914
  isExited: boolean;
2914
2915
  closeTip?: string | undefined;
2915
2916
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -2917,12 +2918,12 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
2917
2918
  }, "strip", z.ZodTypeAny, {
2918
2919
  type: "list";
2919
2920
  sessions: {
2921
+ id: string;
2920
2922
  command: string;
2921
2923
  args: string[];
2922
2924
  platform: "windows" | "macos" | "common";
2923
2925
  exitCode: number | null;
2924
2926
  title: string;
2925
- id: string;
2926
2927
  isExited: boolean;
2927
2928
  closeTip?: string | undefined;
2928
2929
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -2930,12 +2931,12 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
2930
2931
  }, {
2931
2932
  type: "list";
2932
2933
  sessions: {
2934
+ id: string;
2933
2935
  command: string;
2934
2936
  args: string[];
2935
2937
  platform: "windows" | "macos" | "common";
2936
2938
  exitCode: number | null;
2937
2939
  title: string;
2938
- id: string;
2939
2940
  isExited: boolean;
2940
2941
  closeTip?: string | undefined;
2941
2942
  closeCallbackUrl?: string | Record<string, string> | undefined;
@@ -2946,14 +2947,14 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
2946
2947
  message: z.ZodString;
2947
2948
  sessionId: z.ZodOptional<z.ZodString>;
2948
2949
  }, "strip", z.ZodTypeAny, {
2949
- type: "error";
2950
2950
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2951
2951
  message: string;
2952
+ type: "error";
2952
2953
  sessionId?: string | undefined;
2953
2954
  }, {
2954
- type: "error";
2955
2955
  code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
2956
2956
  message: string;
2957
+ type: "error";
2957
2958
  sessionId?: string | undefined;
2958
2959
  }>]>;
2959
2960
  type PtyClientMessage = z.infer<typeof PtyClientMessageSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openspecui/core",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Core OpenSpec adapter and parser",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -22,6 +22,13 @@
22
22
  "files": [
23
23
  "dist"
24
24
  ],
25
+ "scripts": {
26
+ "build": "tsdown src/index.ts src/opsx-display-path.ts src/hosted-app.ts --format esm --dts",
27
+ "dev": "tsdown src/index.ts src/opsx-display-path.ts src/hosted-app.ts --format esm --dts --watch",
28
+ "test": "vitest run",
29
+ "test:watch": "vitest",
30
+ "typecheck": "tsc --noEmit"
31
+ },
25
32
  "dependencies": {
26
33
  "@parcel/watcher": "^2.5.1",
27
34
  "yaml": "^2.8.2",
@@ -36,11 +43,8 @@
36
43
  "peerDependencies": {
37
44
  "typescript": "^5.0.0"
38
45
  },
39
- "scripts": {
40
- "build": "tsdown src/index.ts src/opsx-display-path.ts src/hosted-app.ts --format esm --dts",
41
- "dev": "tsdown src/index.ts src/opsx-display-path.ts src/hosted-app.ts --format esm --dts --watch",
42
- "test": "vitest run",
43
- "test:watch": "vitest",
44
- "typecheck": "tsc --noEmit"
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "https://github.com/jixoai/openspecui"
45
49
  }
46
- }
50
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 OpenSpecUI Contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.