@openspecui/core 1.1.2 → 1.2.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 +76 -38
- package/dist/index.mjs +7 -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
|
-
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;
|
|
@@ -2251,22 +2251,28 @@ declare const PtySessionInfoSchema: z.ZodObject<{
|
|
|
2251
2251
|
platform: z.ZodEnum<["windows", "macos", "common"]>;
|
|
2252
2252
|
isExited: z.ZodBoolean;
|
|
2253
2253
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
2254
|
+
closeTip: z.ZodOptional<z.ZodString>;
|
|
2255
|
+
closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
2254
2256
|
}, "strip", z.ZodTypeAny, {
|
|
2257
|
+
id: string;
|
|
2255
2258
|
command: string;
|
|
2256
2259
|
args: string[];
|
|
2257
2260
|
platform: "windows" | "macos" | "common";
|
|
2258
2261
|
exitCode: number | null;
|
|
2259
2262
|
title: string;
|
|
2260
|
-
id: string;
|
|
2261
2263
|
isExited: boolean;
|
|
2264
|
+
closeTip?: string | undefined;
|
|
2265
|
+
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2262
2266
|
}, {
|
|
2267
|
+
id: string;
|
|
2263
2268
|
command: string;
|
|
2264
2269
|
args: string[];
|
|
2265
2270
|
platform: "windows" | "macos" | "common";
|
|
2266
2271
|
exitCode: number | null;
|
|
2267
2272
|
title: string;
|
|
2268
|
-
id: string;
|
|
2269
2273
|
isExited: boolean;
|
|
2274
|
+
closeTip?: string | undefined;
|
|
2275
|
+
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2270
2276
|
}>;
|
|
2271
2277
|
declare const PtyCreateMessageSchema: z.ZodObject<{
|
|
2272
2278
|
type: z.ZodLiteral<"create">;
|
|
@@ -2275,20 +2281,26 @@ declare const PtyCreateMessageSchema: z.ZodObject<{
|
|
|
2275
2281
|
rows: z.ZodOptional<z.ZodNumber>;
|
|
2276
2282
|
command: z.ZodOptional<z.ZodString>;
|
|
2277
2283
|
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2284
|
+
closeTip: z.ZodOptional<z.ZodString>;
|
|
2285
|
+
closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
2278
2286
|
}, "strip", z.ZodTypeAny, {
|
|
2279
2287
|
type: "create";
|
|
2280
2288
|
requestId: string;
|
|
2281
|
-
cols?: number | undefined;
|
|
2282
|
-
rows?: number | undefined;
|
|
2283
2289
|
command?: string | undefined;
|
|
2284
2290
|
args?: string[] | undefined;
|
|
2291
|
+
cols?: number | undefined;
|
|
2292
|
+
rows?: number | undefined;
|
|
2293
|
+
closeTip?: string | undefined;
|
|
2294
|
+
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2285
2295
|
}, {
|
|
2286
2296
|
type: "create";
|
|
2287
2297
|
requestId: string;
|
|
2288
|
-
cols?: number | undefined;
|
|
2289
|
-
rows?: number | undefined;
|
|
2290
2298
|
command?: string | undefined;
|
|
2291
2299
|
args?: string[] | undefined;
|
|
2300
|
+
cols?: number | undefined;
|
|
2301
|
+
rows?: number | undefined;
|
|
2302
|
+
closeTip?: string | undefined;
|
|
2303
|
+
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2292
2304
|
}>;
|
|
2293
2305
|
declare const PtyInputMessageSchema: z.ZodObject<{
|
|
2294
2306
|
type: z.ZodLiteral<"input">;
|
|
@@ -2359,20 +2371,26 @@ declare const PtyClientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2359
2371
|
rows: z.ZodOptional<z.ZodNumber>;
|
|
2360
2372
|
command: z.ZodOptional<z.ZodString>;
|
|
2361
2373
|
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2374
|
+
closeTip: z.ZodOptional<z.ZodString>;
|
|
2375
|
+
closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
2362
2376
|
}, "strip", z.ZodTypeAny, {
|
|
2363
2377
|
type: "create";
|
|
2364
2378
|
requestId: string;
|
|
2365
|
-
cols?: number | undefined;
|
|
2366
|
-
rows?: number | undefined;
|
|
2367
2379
|
command?: string | undefined;
|
|
2368
2380
|
args?: string[] | undefined;
|
|
2381
|
+
cols?: number | undefined;
|
|
2382
|
+
rows?: number | undefined;
|
|
2383
|
+
closeTip?: string | undefined;
|
|
2384
|
+
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2369
2385
|
}, {
|
|
2370
2386
|
type: "create";
|
|
2371
2387
|
requestId: string;
|
|
2372
|
-
cols?: number | undefined;
|
|
2373
|
-
rows?: number | undefined;
|
|
2374
2388
|
command?: string | undefined;
|
|
2375
2389
|
args?: string[] | undefined;
|
|
2390
|
+
cols?: number | undefined;
|
|
2391
|
+
rows?: number | undefined;
|
|
2392
|
+
closeTip?: string | undefined;
|
|
2393
|
+
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2376
2394
|
}>, z.ZodObject<{
|
|
2377
2395
|
type: z.ZodLiteral<"input">;
|
|
2378
2396
|
sessionId: z.ZodString;
|
|
@@ -2509,44 +2527,54 @@ declare const PtyListResponseSchema: z.ZodObject<{
|
|
|
2509
2527
|
platform: z.ZodEnum<["windows", "macos", "common"]>;
|
|
2510
2528
|
isExited: z.ZodBoolean;
|
|
2511
2529
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
2530
|
+
closeTip: z.ZodOptional<z.ZodString>;
|
|
2531
|
+
closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
2512
2532
|
}, "strip", z.ZodTypeAny, {
|
|
2533
|
+
id: string;
|
|
2513
2534
|
command: string;
|
|
2514
2535
|
args: string[];
|
|
2515
2536
|
platform: "windows" | "macos" | "common";
|
|
2516
2537
|
exitCode: number | null;
|
|
2517
2538
|
title: string;
|
|
2518
|
-
id: string;
|
|
2519
2539
|
isExited: boolean;
|
|
2540
|
+
closeTip?: string | undefined;
|
|
2541
|
+
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2520
2542
|
}, {
|
|
2543
|
+
id: string;
|
|
2521
2544
|
command: string;
|
|
2522
2545
|
args: string[];
|
|
2523
2546
|
platform: "windows" | "macos" | "common";
|
|
2524
2547
|
exitCode: number | null;
|
|
2525
2548
|
title: string;
|
|
2526
|
-
id: string;
|
|
2527
2549
|
isExited: boolean;
|
|
2550
|
+
closeTip?: string | undefined;
|
|
2551
|
+
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2528
2552
|
}>, "many">;
|
|
2529
2553
|
}, "strip", z.ZodTypeAny, {
|
|
2530
2554
|
type: "list";
|
|
2531
2555
|
sessions: {
|
|
2556
|
+
id: string;
|
|
2532
2557
|
command: string;
|
|
2533
2558
|
args: string[];
|
|
2534
2559
|
platform: "windows" | "macos" | "common";
|
|
2535
2560
|
exitCode: number | null;
|
|
2536
2561
|
title: string;
|
|
2537
|
-
id: string;
|
|
2538
2562
|
isExited: boolean;
|
|
2563
|
+
closeTip?: string | undefined;
|
|
2564
|
+
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2539
2565
|
}[];
|
|
2540
2566
|
}, {
|
|
2541
2567
|
type: "list";
|
|
2542
2568
|
sessions: {
|
|
2569
|
+
id: string;
|
|
2543
2570
|
command: string;
|
|
2544
2571
|
args: string[];
|
|
2545
2572
|
platform: "windows" | "macos" | "common";
|
|
2546
2573
|
exitCode: number | null;
|
|
2547
2574
|
title: string;
|
|
2548
|
-
id: string;
|
|
2549
2575
|
isExited: boolean;
|
|
2576
|
+
closeTip?: string | undefined;
|
|
2577
|
+
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2550
2578
|
}[];
|
|
2551
2579
|
}>;
|
|
2552
2580
|
declare const PtyErrorCodeSchema: z.ZodEnum<["INVALID_JSON", "INVALID_MESSAGE", "SESSION_NOT_FOUND", "PTY_CREATE_FAILED"]>;
|
|
@@ -2556,14 +2584,14 @@ declare const PtyErrorResponseSchema: z.ZodObject<{
|
|
|
2556
2584
|
message: z.ZodString;
|
|
2557
2585
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
2558
2586
|
}, "strip", z.ZodTypeAny, {
|
|
2559
|
-
type: "error";
|
|
2560
2587
|
code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
|
|
2561
2588
|
message: string;
|
|
2589
|
+
type: "error";
|
|
2562
2590
|
sessionId?: string | undefined;
|
|
2563
2591
|
}, {
|
|
2564
|
-
type: "error";
|
|
2565
2592
|
code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
|
|
2566
2593
|
message: string;
|
|
2594
|
+
type: "error";
|
|
2567
2595
|
sessionId?: string | undefined;
|
|
2568
2596
|
}>;
|
|
2569
2597
|
declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -2639,44 +2667,54 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2639
2667
|
platform: z.ZodEnum<["windows", "macos", "common"]>;
|
|
2640
2668
|
isExited: z.ZodBoolean;
|
|
2641
2669
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
2670
|
+
closeTip: z.ZodOptional<z.ZodString>;
|
|
2671
|
+
closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
2642
2672
|
}, "strip", z.ZodTypeAny, {
|
|
2673
|
+
id: string;
|
|
2643
2674
|
command: string;
|
|
2644
2675
|
args: string[];
|
|
2645
2676
|
platform: "windows" | "macos" | "common";
|
|
2646
2677
|
exitCode: number | null;
|
|
2647
2678
|
title: string;
|
|
2648
|
-
id: string;
|
|
2649
2679
|
isExited: boolean;
|
|
2680
|
+
closeTip?: string | undefined;
|
|
2681
|
+
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2650
2682
|
}, {
|
|
2683
|
+
id: string;
|
|
2651
2684
|
command: string;
|
|
2652
2685
|
args: string[];
|
|
2653
2686
|
platform: "windows" | "macos" | "common";
|
|
2654
2687
|
exitCode: number | null;
|
|
2655
2688
|
title: string;
|
|
2656
|
-
id: string;
|
|
2657
2689
|
isExited: boolean;
|
|
2690
|
+
closeTip?: string | undefined;
|
|
2691
|
+
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2658
2692
|
}>, "many">;
|
|
2659
2693
|
}, "strip", z.ZodTypeAny, {
|
|
2660
2694
|
type: "list";
|
|
2661
2695
|
sessions: {
|
|
2696
|
+
id: string;
|
|
2662
2697
|
command: string;
|
|
2663
2698
|
args: string[];
|
|
2664
2699
|
platform: "windows" | "macos" | "common";
|
|
2665
2700
|
exitCode: number | null;
|
|
2666
2701
|
title: string;
|
|
2667
|
-
id: string;
|
|
2668
2702
|
isExited: boolean;
|
|
2703
|
+
closeTip?: string | undefined;
|
|
2704
|
+
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2669
2705
|
}[];
|
|
2670
2706
|
}, {
|
|
2671
2707
|
type: "list";
|
|
2672
2708
|
sessions: {
|
|
2709
|
+
id: string;
|
|
2673
2710
|
command: string;
|
|
2674
2711
|
args: string[];
|
|
2675
2712
|
platform: "windows" | "macos" | "common";
|
|
2676
2713
|
exitCode: number | null;
|
|
2677
2714
|
title: string;
|
|
2678
|
-
id: string;
|
|
2679
2715
|
isExited: boolean;
|
|
2716
|
+
closeTip?: string | undefined;
|
|
2717
|
+
closeCallbackUrl?: string | Record<string, string> | undefined;
|
|
2680
2718
|
}[];
|
|
2681
2719
|
}>, z.ZodObject<{
|
|
2682
2720
|
type: z.ZodLiteral<"error">;
|
|
@@ -2684,14 +2722,14 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2684
2722
|
message: z.ZodString;
|
|
2685
2723
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
2686
2724
|
}, "strip", z.ZodTypeAny, {
|
|
2687
|
-
type: "error";
|
|
2688
2725
|
code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
|
|
2689
2726
|
message: string;
|
|
2727
|
+
type: "error";
|
|
2690
2728
|
sessionId?: string | undefined;
|
|
2691
2729
|
}, {
|
|
2692
|
-
type: "error";
|
|
2693
2730
|
code: "INVALID_JSON" | "INVALID_MESSAGE" | "SESSION_NOT_FOUND" | "PTY_CREATE_FAILED";
|
|
2694
2731
|
message: string;
|
|
2732
|
+
type: "error";
|
|
2695
2733
|
sessionId?: string | undefined;
|
|
2696
2734
|
}>]>;
|
|
2697
2735
|
type PtyClientMessage = z.infer<typeof PtyClientMessageSchema>;
|
package/dist/index.mjs
CHANGED
|
@@ -3803,6 +3803,7 @@ const PtyPlatformSchema = z.enum([
|
|
|
3803
3803
|
"macos",
|
|
3804
3804
|
"common"
|
|
3805
3805
|
]);
|
|
3806
|
+
const CloseCallbackUrlSchema = z.union([z.string(), z.record(z.string())]);
|
|
3806
3807
|
const PtySessionInfoSchema = z.object({
|
|
3807
3808
|
id: z.string().min(1),
|
|
3808
3809
|
title: z.string(),
|
|
@@ -3810,7 +3811,9 @@ const PtySessionInfoSchema = z.object({
|
|
|
3810
3811
|
args: z.array(z.string()),
|
|
3811
3812
|
platform: PtyPlatformSchema,
|
|
3812
3813
|
isExited: z.boolean(),
|
|
3813
|
-
exitCode: z.number().int().nullable()
|
|
3814
|
+
exitCode: z.number().int().nullable(),
|
|
3815
|
+
closeTip: z.string().optional(),
|
|
3816
|
+
closeCallbackUrl: CloseCallbackUrlSchema.optional()
|
|
3814
3817
|
});
|
|
3815
3818
|
const PtyCreateMessageSchema = z.object({
|
|
3816
3819
|
type: z.literal("create"),
|
|
@@ -3818,7 +3821,9 @@ const PtyCreateMessageSchema = z.object({
|
|
|
3818
3821
|
cols: PositiveInt.optional(),
|
|
3819
3822
|
rows: PositiveInt.optional(),
|
|
3820
3823
|
command: z.string().min(1).optional(),
|
|
3821
|
-
args: z.array(z.string()).optional()
|
|
3824
|
+
args: z.array(z.string()).optional(),
|
|
3825
|
+
closeTip: z.string().optional(),
|
|
3826
|
+
closeCallbackUrl: CloseCallbackUrlSchema.optional()
|
|
3822
3827
|
});
|
|
3823
3828
|
const PtyInputMessageSchema = z.object({
|
|
3824
3829
|
type: z.literal("input"),
|