@myagentroam/protocol 0.9.4 → 0.9.6
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.ts +199 -69
- package/dist/index.js +46 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -861,6 +861,136 @@ export declare const workbenchEventSchema: z.ZodObject<{
|
|
|
861
861
|
payload?: unknown;
|
|
862
862
|
}>;
|
|
863
863
|
export type WorkbenchEvent = z.infer<typeof workbenchEventSchema>;
|
|
864
|
+
export declare const watchAcceptedSchema: z.ZodObject<{
|
|
865
|
+
accepted: z.ZodLiteral<true>;
|
|
866
|
+
watchId: z.ZodString;
|
|
867
|
+
nodeGeneration: z.ZodString;
|
|
868
|
+
expiresAt: z.ZodNumber;
|
|
869
|
+
}, "strict", z.ZodTypeAny, {
|
|
870
|
+
accepted: true;
|
|
871
|
+
watchId: string;
|
|
872
|
+
nodeGeneration: string;
|
|
873
|
+
expiresAt: number;
|
|
874
|
+
}, {
|
|
875
|
+
accepted: true;
|
|
876
|
+
watchId: string;
|
|
877
|
+
nodeGeneration: string;
|
|
878
|
+
expiresAt: number;
|
|
879
|
+
}>;
|
|
880
|
+
export type WatchAccepted = z.infer<typeof watchAcceptedSchema>;
|
|
881
|
+
export declare const watchEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
882
|
+
workbenchConnectionId: z.ZodString;
|
|
883
|
+
watchId: z.ZodString;
|
|
884
|
+
nodeGeneration: z.ZodString;
|
|
885
|
+
nodeId: z.ZodString;
|
|
886
|
+
workspaceId: z.ZodString;
|
|
887
|
+
} & {
|
|
888
|
+
type: z.ZodLiteral<"watch.workspace.snapshot">;
|
|
889
|
+
topic: z.ZodEnum<["sessions", "files", "changes"]>;
|
|
890
|
+
revision: z.ZodNumber;
|
|
891
|
+
snapshotSequence: z.ZodNumber;
|
|
892
|
+
expiresAt: z.ZodNumber;
|
|
893
|
+
payload: z.ZodUnknown;
|
|
894
|
+
}, "strict", z.ZodTypeAny, {
|
|
895
|
+
type: "watch.workspace.snapshot";
|
|
896
|
+
nodeId: string;
|
|
897
|
+
workspaceId: string;
|
|
898
|
+
watchId: string;
|
|
899
|
+
nodeGeneration: string;
|
|
900
|
+
expiresAt: number;
|
|
901
|
+
workbenchConnectionId: string;
|
|
902
|
+
topic: "sessions" | "files" | "changes";
|
|
903
|
+
revision: number;
|
|
904
|
+
snapshotSequence: number;
|
|
905
|
+
payload?: unknown;
|
|
906
|
+
}, {
|
|
907
|
+
type: "watch.workspace.snapshot";
|
|
908
|
+
nodeId: string;
|
|
909
|
+
workspaceId: string;
|
|
910
|
+
watchId: string;
|
|
911
|
+
nodeGeneration: string;
|
|
912
|
+
expiresAt: number;
|
|
913
|
+
workbenchConnectionId: string;
|
|
914
|
+
topic: "sessions" | "files" | "changes";
|
|
915
|
+
revision: number;
|
|
916
|
+
snapshotSequence: number;
|
|
917
|
+
payload?: unknown;
|
|
918
|
+
}>, z.ZodObject<{
|
|
919
|
+
workbenchConnectionId: z.ZodString;
|
|
920
|
+
watchId: z.ZodString;
|
|
921
|
+
nodeGeneration: z.ZodString;
|
|
922
|
+
nodeId: z.ZodString;
|
|
923
|
+
workspaceId: z.ZodString;
|
|
924
|
+
} & {
|
|
925
|
+
type: z.ZodLiteral<"watch.session.snapshot">;
|
|
926
|
+
sessionId: z.ZodString;
|
|
927
|
+
revision: z.ZodNumber;
|
|
928
|
+
snapshotSequence: z.ZodNumber;
|
|
929
|
+
expiresAt: z.ZodNumber;
|
|
930
|
+
payload: z.ZodUnknown;
|
|
931
|
+
}, "strict", z.ZodTypeAny, {
|
|
932
|
+
type: "watch.session.snapshot";
|
|
933
|
+
nodeId: string;
|
|
934
|
+
workspaceId: string;
|
|
935
|
+
sessionId: string;
|
|
936
|
+
watchId: string;
|
|
937
|
+
nodeGeneration: string;
|
|
938
|
+
expiresAt: number;
|
|
939
|
+
workbenchConnectionId: string;
|
|
940
|
+
revision: number;
|
|
941
|
+
snapshotSequence: number;
|
|
942
|
+
payload?: unknown;
|
|
943
|
+
}, {
|
|
944
|
+
type: "watch.session.snapshot";
|
|
945
|
+
nodeId: string;
|
|
946
|
+
workspaceId: string;
|
|
947
|
+
sessionId: string;
|
|
948
|
+
watchId: string;
|
|
949
|
+
nodeGeneration: string;
|
|
950
|
+
expiresAt: number;
|
|
951
|
+
workbenchConnectionId: string;
|
|
952
|
+
revision: number;
|
|
953
|
+
snapshotSequence: number;
|
|
954
|
+
payload?: unknown;
|
|
955
|
+
}>, z.ZodObject<{
|
|
956
|
+
workbenchConnectionId: z.ZodString;
|
|
957
|
+
watchId: z.ZodString;
|
|
958
|
+
nodeGeneration: z.ZodString;
|
|
959
|
+
nodeId: z.ZodString;
|
|
960
|
+
workspaceId: z.ZodString;
|
|
961
|
+
} & {
|
|
962
|
+
type: z.ZodLiteral<"watch.failed">;
|
|
963
|
+
watchType: z.ZodEnum<["workspace", "session"]>;
|
|
964
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
965
|
+
topic: z.ZodOptional<z.ZodEnum<["sessions", "files", "changes"]>>;
|
|
966
|
+
code: z.ZodString;
|
|
967
|
+
message: z.ZodString;
|
|
968
|
+
}, "strict", z.ZodTypeAny, {
|
|
969
|
+
code: string;
|
|
970
|
+
message: string;
|
|
971
|
+
type: "watch.failed";
|
|
972
|
+
nodeId: string;
|
|
973
|
+
workspaceId: string;
|
|
974
|
+
watchId: string;
|
|
975
|
+
nodeGeneration: string;
|
|
976
|
+
workbenchConnectionId: string;
|
|
977
|
+
watchType: "session" | "workspace";
|
|
978
|
+
sessionId?: string | undefined;
|
|
979
|
+
topic?: "sessions" | "files" | "changes" | undefined;
|
|
980
|
+
}, {
|
|
981
|
+
code: string;
|
|
982
|
+
message: string;
|
|
983
|
+
type: "watch.failed";
|
|
984
|
+
nodeId: string;
|
|
985
|
+
workspaceId: string;
|
|
986
|
+
watchId: string;
|
|
987
|
+
nodeGeneration: string;
|
|
988
|
+
workbenchConnectionId: string;
|
|
989
|
+
watchType: "session" | "workspace";
|
|
990
|
+
sessionId?: string | undefined;
|
|
991
|
+
topic?: "sessions" | "files" | "changes" | undefined;
|
|
992
|
+
}>]>;
|
|
993
|
+
export type WatchEvent = z.infer<typeof watchEventSchema>;
|
|
864
994
|
export declare const capabilityAvailabilitySchema: z.ZodEffects<z.ZodObject<{
|
|
865
995
|
available: z.ZodBoolean;
|
|
866
996
|
reasonCode: z.ZodNullable<z.ZodString>;
|
|
@@ -1498,8 +1628,11 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
|
|
|
1498
1628
|
conversation: {
|
|
1499
1629
|
[x: string]: any;
|
|
1500
1630
|
};
|
|
1501
|
-
|
|
1631
|
+
files: {
|
|
1632
|
+
[x: string]: any;
|
|
1633
|
+
};
|
|
1502
1634
|
revision: number;
|
|
1635
|
+
manifestVersion: 1;
|
|
1503
1636
|
observedAt: number;
|
|
1504
1637
|
runners: {
|
|
1505
1638
|
runner: "codex" | "claude-code" | "opencode";
|
|
@@ -1529,9 +1662,6 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
|
|
|
1529
1662
|
stateLabel?: string | undefined;
|
|
1530
1663
|
}[];
|
|
1531
1664
|
}[];
|
|
1532
|
-
files: {
|
|
1533
|
-
[x: string]: any;
|
|
1534
|
-
};
|
|
1535
1665
|
terminal: {
|
|
1536
1666
|
[x: string]: any;
|
|
1537
1667
|
};
|
|
@@ -1544,8 +1674,11 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
|
|
|
1544
1674
|
conversation: {
|
|
1545
1675
|
[x: string]: any;
|
|
1546
1676
|
};
|
|
1547
|
-
|
|
1677
|
+
files: {
|
|
1678
|
+
[x: string]: any;
|
|
1679
|
+
};
|
|
1548
1680
|
revision: number;
|
|
1681
|
+
manifestVersion: 1;
|
|
1549
1682
|
observedAt: number;
|
|
1550
1683
|
runners: {
|
|
1551
1684
|
runner: "codex" | "claude-code" | "opencode";
|
|
@@ -1575,9 +1708,6 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
|
|
|
1575
1708
|
stateLabel?: string | undefined;
|
|
1576
1709
|
}[];
|
|
1577
1710
|
}[];
|
|
1578
|
-
files: {
|
|
1579
|
-
[x: string]: any;
|
|
1580
|
-
};
|
|
1581
1711
|
terminal: {
|
|
1582
1712
|
[x: string]: any;
|
|
1583
1713
|
};
|
|
@@ -1622,14 +1752,14 @@ export declare const contextReferenceSchema: z.ZodObject<{
|
|
|
1622
1752
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
1623
1753
|
endLine: z.ZodOptional<z.ZodNumber>;
|
|
1624
1754
|
}, "strip", z.ZodTypeAny, {
|
|
1625
|
-
type: "message" | "
|
|
1755
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
1626
1756
|
label: string;
|
|
1627
1757
|
referenceId: string;
|
|
1628
1758
|
path?: string | undefined;
|
|
1629
1759
|
startLine?: number | undefined;
|
|
1630
1760
|
endLine?: number | undefined;
|
|
1631
1761
|
}, {
|
|
1632
|
-
type: "message" | "
|
|
1762
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
1633
1763
|
label: string;
|
|
1634
1764
|
referenceId: string;
|
|
1635
1765
|
path?: string | undefined;
|
|
@@ -1729,14 +1859,14 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
|
|
|
1729
1859
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
1730
1860
|
endLine: z.ZodOptional<z.ZodNumber>;
|
|
1731
1861
|
}, "strip", z.ZodTypeAny, {
|
|
1732
|
-
type: "message" | "
|
|
1862
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
1733
1863
|
label: string;
|
|
1734
1864
|
referenceId: string;
|
|
1735
1865
|
path?: string | undefined;
|
|
1736
1866
|
startLine?: number | undefined;
|
|
1737
1867
|
endLine?: number | undefined;
|
|
1738
1868
|
}, {
|
|
1739
|
-
type: "message" | "
|
|
1869
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
1740
1870
|
label: string;
|
|
1741
1871
|
referenceId: string;
|
|
1742
1872
|
path?: string | undefined;
|
|
@@ -1748,7 +1878,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
|
|
|
1748
1878
|
clientMessageId: string | null;
|
|
1749
1879
|
text: string;
|
|
1750
1880
|
contexts: {
|
|
1751
|
-
type: "message" | "
|
|
1881
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
1752
1882
|
label: string;
|
|
1753
1883
|
referenceId: string;
|
|
1754
1884
|
path?: string | undefined;
|
|
@@ -1761,7 +1891,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
|
|
|
1761
1891
|
text: string;
|
|
1762
1892
|
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
1763
1893
|
contexts?: {
|
|
1764
|
-
type: "message" | "
|
|
1894
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
1765
1895
|
label: string;
|
|
1766
1896
|
referenceId: string;
|
|
1767
1897
|
path?: string | undefined;
|
|
@@ -1779,7 +1909,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
|
|
|
1779
1909
|
clientMessageId: string | null;
|
|
1780
1910
|
text: string;
|
|
1781
1911
|
contexts: {
|
|
1782
|
-
type: "message" | "
|
|
1912
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
1783
1913
|
label: string;
|
|
1784
1914
|
referenceId: string;
|
|
1785
1915
|
path?: string | undefined;
|
|
@@ -1807,7 +1937,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
|
|
|
1807
1937
|
text: string;
|
|
1808
1938
|
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
1809
1939
|
contexts?: {
|
|
1810
|
-
type: "message" | "
|
|
1940
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
1811
1941
|
label: string;
|
|
1812
1942
|
referenceId: string;
|
|
1813
1943
|
path?: string | undefined;
|
|
@@ -2287,15 +2417,15 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
|
|
|
2287
2417
|
resolvedDecision: z.ZodNullable<z.ZodString>;
|
|
2288
2418
|
}, "strip", z.ZodTypeAny, {
|
|
2289
2419
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
2420
|
+
expiresAt: number;
|
|
2290
2421
|
approvalId: string;
|
|
2291
2422
|
reason: string | null;
|
|
2292
|
-
expiresAt: number;
|
|
2293
2423
|
resolvedDecision: string | null;
|
|
2294
2424
|
}, {
|
|
2295
2425
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
2426
|
+
expiresAt: number;
|
|
2296
2427
|
approvalId: string;
|
|
2297
2428
|
reason: string | null;
|
|
2298
|
-
expiresAt: number;
|
|
2299
2429
|
resolvedDecision: string | null;
|
|
2300
2430
|
}>;
|
|
2301
2431
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2306,9 +2436,9 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
|
|
|
2306
2436
|
sessionId: string;
|
|
2307
2437
|
payload: {
|
|
2308
2438
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
2439
|
+
expiresAt: number;
|
|
2309
2440
|
approvalId: string;
|
|
2310
2441
|
reason: string | null;
|
|
2311
|
-
expiresAt: number;
|
|
2312
2442
|
resolvedDecision: string | null;
|
|
2313
2443
|
};
|
|
2314
2444
|
revision: number;
|
|
@@ -2327,9 +2457,9 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
|
|
|
2327
2457
|
sessionId: string;
|
|
2328
2458
|
payload: {
|
|
2329
2459
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
2460
|
+
expiresAt: number;
|
|
2330
2461
|
approvalId: string;
|
|
2331
2462
|
reason: string | null;
|
|
2332
|
-
expiresAt: number;
|
|
2333
2463
|
resolvedDecision: string | null;
|
|
2334
2464
|
};
|
|
2335
2465
|
revision: number;
|
|
@@ -2924,14 +3054,14 @@ export declare const conversationTurnSchema: z.ZodObject<{
|
|
|
2924
3054
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
2925
3055
|
endLine: z.ZodOptional<z.ZodNumber>;
|
|
2926
3056
|
}, "strip", z.ZodTypeAny, {
|
|
2927
|
-
type: "message" | "
|
|
3057
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
2928
3058
|
label: string;
|
|
2929
3059
|
referenceId: string;
|
|
2930
3060
|
path?: string | undefined;
|
|
2931
3061
|
startLine?: number | undefined;
|
|
2932
3062
|
endLine?: number | undefined;
|
|
2933
3063
|
}, {
|
|
2934
|
-
type: "message" | "
|
|
3064
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
2935
3065
|
label: string;
|
|
2936
3066
|
referenceId: string;
|
|
2937
3067
|
path?: string | undefined;
|
|
@@ -2943,7 +3073,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
|
|
|
2943
3073
|
clientMessageId: string | null;
|
|
2944
3074
|
text: string;
|
|
2945
3075
|
contexts: {
|
|
2946
|
-
type: "message" | "
|
|
3076
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
2947
3077
|
label: string;
|
|
2948
3078
|
referenceId: string;
|
|
2949
3079
|
path?: string | undefined;
|
|
@@ -2956,7 +3086,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
|
|
|
2956
3086
|
text: string;
|
|
2957
3087
|
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
2958
3088
|
contexts?: {
|
|
2959
|
-
type: "message" | "
|
|
3089
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
2960
3090
|
label: string;
|
|
2961
3091
|
referenceId: string;
|
|
2962
3092
|
path?: string | undefined;
|
|
@@ -2974,7 +3104,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
|
|
|
2974
3104
|
clientMessageId: string | null;
|
|
2975
3105
|
text: string;
|
|
2976
3106
|
contexts: {
|
|
2977
|
-
type: "message" | "
|
|
3107
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
2978
3108
|
label: string;
|
|
2979
3109
|
referenceId: string;
|
|
2980
3110
|
path?: string | undefined;
|
|
@@ -3002,7 +3132,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
|
|
|
3002
3132
|
text: string;
|
|
3003
3133
|
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
3004
3134
|
contexts?: {
|
|
3005
|
-
type: "message" | "
|
|
3135
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
3006
3136
|
label: string;
|
|
3007
3137
|
referenceId: string;
|
|
3008
3138
|
path?: string | undefined;
|
|
@@ -3482,15 +3612,15 @@ export declare const conversationTurnSchema: z.ZodObject<{
|
|
|
3482
3612
|
resolvedDecision: z.ZodNullable<z.ZodString>;
|
|
3483
3613
|
}, "strip", z.ZodTypeAny, {
|
|
3484
3614
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
3615
|
+
expiresAt: number;
|
|
3485
3616
|
approvalId: string;
|
|
3486
3617
|
reason: string | null;
|
|
3487
|
-
expiresAt: number;
|
|
3488
3618
|
resolvedDecision: string | null;
|
|
3489
3619
|
}, {
|
|
3490
3620
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
3621
|
+
expiresAt: number;
|
|
3491
3622
|
approvalId: string;
|
|
3492
3623
|
reason: string | null;
|
|
3493
|
-
expiresAt: number;
|
|
3494
3624
|
resolvedDecision: string | null;
|
|
3495
3625
|
}>;
|
|
3496
3626
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3501,9 +3631,9 @@ export declare const conversationTurnSchema: z.ZodObject<{
|
|
|
3501
3631
|
sessionId: string;
|
|
3502
3632
|
payload: {
|
|
3503
3633
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
3634
|
+
expiresAt: number;
|
|
3504
3635
|
approvalId: string;
|
|
3505
3636
|
reason: string | null;
|
|
3506
|
-
expiresAt: number;
|
|
3507
3637
|
resolvedDecision: string | null;
|
|
3508
3638
|
};
|
|
3509
3639
|
revision: number;
|
|
@@ -3522,9 +3652,9 @@ export declare const conversationTurnSchema: z.ZodObject<{
|
|
|
3522
3652
|
sessionId: string;
|
|
3523
3653
|
payload: {
|
|
3524
3654
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
3655
|
+
expiresAt: number;
|
|
3525
3656
|
approvalId: string;
|
|
3526
3657
|
reason: string | null;
|
|
3527
|
-
expiresAt: number;
|
|
3528
3658
|
resolvedDecision: string | null;
|
|
3529
3659
|
};
|
|
3530
3660
|
revision: number;
|
|
@@ -4043,7 +4173,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
|
|
|
4043
4173
|
clientMessageId: string | null;
|
|
4044
4174
|
text: string;
|
|
4045
4175
|
contexts: {
|
|
4046
|
-
type: "message" | "
|
|
4176
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
4047
4177
|
label: string;
|
|
4048
4178
|
referenceId: string;
|
|
4049
4179
|
path?: string | undefined;
|
|
@@ -4090,9 +4220,9 @@ export declare const conversationTurnSchema: z.ZodObject<{
|
|
|
4090
4220
|
sessionId: string;
|
|
4091
4221
|
payload: {
|
|
4092
4222
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
4223
|
+
expiresAt: number;
|
|
4093
4224
|
approvalId: string;
|
|
4094
4225
|
reason: string | null;
|
|
4095
|
-
expiresAt: number;
|
|
4096
4226
|
resolvedDecision: string | null;
|
|
4097
4227
|
};
|
|
4098
4228
|
revision: number;
|
|
@@ -4362,7 +4492,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
|
|
|
4362
4492
|
text: string;
|
|
4363
4493
|
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
4364
4494
|
contexts?: {
|
|
4365
|
-
type: "message" | "
|
|
4495
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
4366
4496
|
label: string;
|
|
4367
4497
|
referenceId: string;
|
|
4368
4498
|
path?: string | undefined;
|
|
@@ -4408,9 +4538,9 @@ export declare const conversationTurnSchema: z.ZodObject<{
|
|
|
4408
4538
|
sessionId: string;
|
|
4409
4539
|
payload: {
|
|
4410
4540
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
4541
|
+
expiresAt: number;
|
|
4411
4542
|
approvalId: string;
|
|
4412
4543
|
reason: string | null;
|
|
4413
|
-
expiresAt: number;
|
|
4414
4544
|
resolvedDecision: string | null;
|
|
4415
4545
|
};
|
|
4416
4546
|
revision: number;
|
|
@@ -4756,14 +4886,14 @@ export declare const conversationSegmentSchema: z.ZodObject<{
|
|
|
4756
4886
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
4757
4887
|
endLine: z.ZodOptional<z.ZodNumber>;
|
|
4758
4888
|
}, "strip", z.ZodTypeAny, {
|
|
4759
|
-
type: "message" | "
|
|
4889
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
4760
4890
|
label: string;
|
|
4761
4891
|
referenceId: string;
|
|
4762
4892
|
path?: string | undefined;
|
|
4763
4893
|
startLine?: number | undefined;
|
|
4764
4894
|
endLine?: number | undefined;
|
|
4765
4895
|
}, {
|
|
4766
|
-
type: "message" | "
|
|
4896
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
4767
4897
|
label: string;
|
|
4768
4898
|
referenceId: string;
|
|
4769
4899
|
path?: string | undefined;
|
|
@@ -4775,7 +4905,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
|
|
|
4775
4905
|
clientMessageId: string | null;
|
|
4776
4906
|
text: string;
|
|
4777
4907
|
contexts: {
|
|
4778
|
-
type: "message" | "
|
|
4908
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
4779
4909
|
label: string;
|
|
4780
4910
|
referenceId: string;
|
|
4781
4911
|
path?: string | undefined;
|
|
@@ -4788,7 +4918,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
|
|
|
4788
4918
|
text: string;
|
|
4789
4919
|
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
4790
4920
|
contexts?: {
|
|
4791
|
-
type: "message" | "
|
|
4921
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
4792
4922
|
label: string;
|
|
4793
4923
|
referenceId: string;
|
|
4794
4924
|
path?: string | undefined;
|
|
@@ -4806,7 +4936,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
|
|
|
4806
4936
|
clientMessageId: string | null;
|
|
4807
4937
|
text: string;
|
|
4808
4938
|
contexts: {
|
|
4809
|
-
type: "message" | "
|
|
4939
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
4810
4940
|
label: string;
|
|
4811
4941
|
referenceId: string;
|
|
4812
4942
|
path?: string | undefined;
|
|
@@ -4834,7 +4964,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
|
|
|
4834
4964
|
text: string;
|
|
4835
4965
|
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
4836
4966
|
contexts?: {
|
|
4837
|
-
type: "message" | "
|
|
4967
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
4838
4968
|
label: string;
|
|
4839
4969
|
referenceId: string;
|
|
4840
4970
|
path?: string | undefined;
|
|
@@ -5314,15 +5444,15 @@ export declare const conversationSegmentSchema: z.ZodObject<{
|
|
|
5314
5444
|
resolvedDecision: z.ZodNullable<z.ZodString>;
|
|
5315
5445
|
}, "strip", z.ZodTypeAny, {
|
|
5316
5446
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
5447
|
+
expiresAt: number;
|
|
5317
5448
|
approvalId: string;
|
|
5318
5449
|
reason: string | null;
|
|
5319
|
-
expiresAt: number;
|
|
5320
5450
|
resolvedDecision: string | null;
|
|
5321
5451
|
}, {
|
|
5322
5452
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
5453
|
+
expiresAt: number;
|
|
5323
5454
|
approvalId: string;
|
|
5324
5455
|
reason: string | null;
|
|
5325
|
-
expiresAt: number;
|
|
5326
5456
|
resolvedDecision: string | null;
|
|
5327
5457
|
}>;
|
|
5328
5458
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5333,9 +5463,9 @@ export declare const conversationSegmentSchema: z.ZodObject<{
|
|
|
5333
5463
|
sessionId: string;
|
|
5334
5464
|
payload: {
|
|
5335
5465
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
5466
|
+
expiresAt: number;
|
|
5336
5467
|
approvalId: string;
|
|
5337
5468
|
reason: string | null;
|
|
5338
|
-
expiresAt: number;
|
|
5339
5469
|
resolvedDecision: string | null;
|
|
5340
5470
|
};
|
|
5341
5471
|
revision: number;
|
|
@@ -5354,9 +5484,9 @@ export declare const conversationSegmentSchema: z.ZodObject<{
|
|
|
5354
5484
|
sessionId: string;
|
|
5355
5485
|
payload: {
|
|
5356
5486
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
5487
|
+
expiresAt: number;
|
|
5357
5488
|
approvalId: string;
|
|
5358
5489
|
reason: string | null;
|
|
5359
|
-
expiresAt: number;
|
|
5360
5490
|
resolvedDecision: string | null;
|
|
5361
5491
|
};
|
|
5362
5492
|
revision: number;
|
|
@@ -5875,7 +6005,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
|
|
|
5875
6005
|
clientMessageId: string | null;
|
|
5876
6006
|
text: string;
|
|
5877
6007
|
contexts: {
|
|
5878
|
-
type: "message" | "
|
|
6008
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
5879
6009
|
label: string;
|
|
5880
6010
|
referenceId: string;
|
|
5881
6011
|
path?: string | undefined;
|
|
@@ -5922,9 +6052,9 @@ export declare const conversationSegmentSchema: z.ZodObject<{
|
|
|
5922
6052
|
sessionId: string;
|
|
5923
6053
|
payload: {
|
|
5924
6054
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
6055
|
+
expiresAt: number;
|
|
5925
6056
|
approvalId: string;
|
|
5926
6057
|
reason: string | null;
|
|
5927
|
-
expiresAt: number;
|
|
5928
6058
|
resolvedDecision: string | null;
|
|
5929
6059
|
};
|
|
5930
6060
|
revision: number;
|
|
@@ -6192,7 +6322,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
|
|
|
6192
6322
|
text: string;
|
|
6193
6323
|
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
6194
6324
|
contexts?: {
|
|
6195
|
-
type: "message" | "
|
|
6325
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
6196
6326
|
label: string;
|
|
6197
6327
|
referenceId: string;
|
|
6198
6328
|
path?: string | undefined;
|
|
@@ -6238,9 +6368,9 @@ export declare const conversationSegmentSchema: z.ZodObject<{
|
|
|
6238
6368
|
sessionId: string;
|
|
6239
6369
|
payload: {
|
|
6240
6370
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
6371
|
+
expiresAt: number;
|
|
6241
6372
|
approvalId: string;
|
|
6242
6373
|
reason: string | null;
|
|
6243
|
-
expiresAt: number;
|
|
6244
6374
|
resolvedDecision: string | null;
|
|
6245
6375
|
};
|
|
6246
6376
|
revision: number;
|
|
@@ -6586,14 +6716,14 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
6586
6716
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
6587
6717
|
endLine: z.ZodOptional<z.ZodNumber>;
|
|
6588
6718
|
}, "strip", z.ZodTypeAny, {
|
|
6589
|
-
type: "message" | "
|
|
6719
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
6590
6720
|
label: string;
|
|
6591
6721
|
referenceId: string;
|
|
6592
6722
|
path?: string | undefined;
|
|
6593
6723
|
startLine?: number | undefined;
|
|
6594
6724
|
endLine?: number | undefined;
|
|
6595
6725
|
}, {
|
|
6596
|
-
type: "message" | "
|
|
6726
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
6597
6727
|
label: string;
|
|
6598
6728
|
referenceId: string;
|
|
6599
6729
|
path?: string | undefined;
|
|
@@ -6605,7 +6735,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
6605
6735
|
clientMessageId: string | null;
|
|
6606
6736
|
text: string;
|
|
6607
6737
|
contexts: {
|
|
6608
|
-
type: "message" | "
|
|
6738
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
6609
6739
|
label: string;
|
|
6610
6740
|
referenceId: string;
|
|
6611
6741
|
path?: string | undefined;
|
|
@@ -6618,7 +6748,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
6618
6748
|
text: string;
|
|
6619
6749
|
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
6620
6750
|
contexts?: {
|
|
6621
|
-
type: "message" | "
|
|
6751
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
6622
6752
|
label: string;
|
|
6623
6753
|
referenceId: string;
|
|
6624
6754
|
path?: string | undefined;
|
|
@@ -6636,7 +6766,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
6636
6766
|
clientMessageId: string | null;
|
|
6637
6767
|
text: string;
|
|
6638
6768
|
contexts: {
|
|
6639
|
-
type: "message" | "
|
|
6769
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
6640
6770
|
label: string;
|
|
6641
6771
|
referenceId: string;
|
|
6642
6772
|
path?: string | undefined;
|
|
@@ -6664,7 +6794,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
6664
6794
|
text: string;
|
|
6665
6795
|
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
6666
6796
|
contexts?: {
|
|
6667
|
-
type: "message" | "
|
|
6797
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
6668
6798
|
label: string;
|
|
6669
6799
|
referenceId: string;
|
|
6670
6800
|
path?: string | undefined;
|
|
@@ -7144,15 +7274,15 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
7144
7274
|
resolvedDecision: z.ZodNullable<z.ZodString>;
|
|
7145
7275
|
}, "strip", z.ZodTypeAny, {
|
|
7146
7276
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
7277
|
+
expiresAt: number;
|
|
7147
7278
|
approvalId: string;
|
|
7148
7279
|
reason: string | null;
|
|
7149
|
-
expiresAt: number;
|
|
7150
7280
|
resolvedDecision: string | null;
|
|
7151
7281
|
}, {
|
|
7152
7282
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
7283
|
+
expiresAt: number;
|
|
7153
7284
|
approvalId: string;
|
|
7154
7285
|
reason: string | null;
|
|
7155
|
-
expiresAt: number;
|
|
7156
7286
|
resolvedDecision: string | null;
|
|
7157
7287
|
}>;
|
|
7158
7288
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7163,9 +7293,9 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
7163
7293
|
sessionId: string;
|
|
7164
7294
|
payload: {
|
|
7165
7295
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
7296
|
+
expiresAt: number;
|
|
7166
7297
|
approvalId: string;
|
|
7167
7298
|
reason: string | null;
|
|
7168
|
-
expiresAt: number;
|
|
7169
7299
|
resolvedDecision: string | null;
|
|
7170
7300
|
};
|
|
7171
7301
|
revision: number;
|
|
@@ -7184,9 +7314,9 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
7184
7314
|
sessionId: string;
|
|
7185
7315
|
payload: {
|
|
7186
7316
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
7317
|
+
expiresAt: number;
|
|
7187
7318
|
approvalId: string;
|
|
7188
7319
|
reason: string | null;
|
|
7189
|
-
expiresAt: number;
|
|
7190
7320
|
resolvedDecision: string | null;
|
|
7191
7321
|
};
|
|
7192
7322
|
revision: number;
|
|
@@ -7705,7 +7835,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
7705
7835
|
clientMessageId: string | null;
|
|
7706
7836
|
text: string;
|
|
7707
7837
|
contexts: {
|
|
7708
|
-
type: "message" | "
|
|
7838
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
7709
7839
|
label: string;
|
|
7710
7840
|
referenceId: string;
|
|
7711
7841
|
path?: string | undefined;
|
|
@@ -7752,9 +7882,9 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
7752
7882
|
sessionId: string;
|
|
7753
7883
|
payload: {
|
|
7754
7884
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
7885
|
+
expiresAt: number;
|
|
7755
7886
|
approvalId: string;
|
|
7756
7887
|
reason: string | null;
|
|
7757
|
-
expiresAt: number;
|
|
7758
7888
|
resolvedDecision: string | null;
|
|
7759
7889
|
};
|
|
7760
7890
|
revision: number;
|
|
@@ -8022,7 +8152,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
8022
8152
|
text: string;
|
|
8023
8153
|
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
8024
8154
|
contexts?: {
|
|
8025
|
-
type: "message" | "
|
|
8155
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
8026
8156
|
label: string;
|
|
8027
8157
|
referenceId: string;
|
|
8028
8158
|
path?: string | undefined;
|
|
@@ -8068,9 +8198,9 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
8068
8198
|
sessionId: string;
|
|
8069
8199
|
payload: {
|
|
8070
8200
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
8201
|
+
expiresAt: number;
|
|
8071
8202
|
approvalId: string;
|
|
8072
8203
|
reason: string | null;
|
|
8073
|
-
expiresAt: number;
|
|
8074
8204
|
resolvedDecision: string | null;
|
|
8075
8205
|
};
|
|
8076
8206
|
revision: number;
|
|
@@ -8311,6 +8441,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
8311
8441
|
latestVisibleAt: z.ZodNumber;
|
|
8312
8442
|
deferredOlderHistory: z.ZodOptional<z.ZodBoolean>;
|
|
8313
8443
|
}, "strip", z.ZodTypeAny, {
|
|
8444
|
+
snapshotSequence: number;
|
|
8314
8445
|
source: "runtime" | "official" | "native";
|
|
8315
8446
|
unit: "SEGMENT";
|
|
8316
8447
|
segments: {
|
|
@@ -8347,7 +8478,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
8347
8478
|
clientMessageId: string | null;
|
|
8348
8479
|
text: string;
|
|
8349
8480
|
contexts: {
|
|
8350
|
-
type: "message" | "
|
|
8481
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
8351
8482
|
label: string;
|
|
8352
8483
|
referenceId: string;
|
|
8353
8484
|
path?: string | undefined;
|
|
@@ -8394,9 +8525,9 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
8394
8525
|
sessionId: string;
|
|
8395
8526
|
payload: {
|
|
8396
8527
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
8528
|
+
expiresAt: number;
|
|
8397
8529
|
approvalId: string;
|
|
8398
8530
|
reason: string | null;
|
|
8399
|
-
expiresAt: number;
|
|
8400
8531
|
resolvedDecision: string | null;
|
|
8401
8532
|
};
|
|
8402
8533
|
revision: number;
|
|
@@ -8631,11 +8762,11 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
8631
8762
|
} | undefined;
|
|
8632
8763
|
}[];
|
|
8633
8764
|
nextCursor: string | null;
|
|
8634
|
-
snapshotSequence: number;
|
|
8635
8765
|
readAt: number;
|
|
8636
8766
|
latestVisibleAt: number;
|
|
8637
8767
|
deferredOlderHistory?: boolean | undefined;
|
|
8638
8768
|
}, {
|
|
8769
|
+
snapshotSequence: number;
|
|
8639
8770
|
source: "runtime" | "official" | "native";
|
|
8640
8771
|
unit: "SEGMENT";
|
|
8641
8772
|
segments: {
|
|
@@ -8673,7 +8804,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
8673
8804
|
text: string;
|
|
8674
8805
|
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
8675
8806
|
contexts?: {
|
|
8676
|
-
type: "message" | "
|
|
8807
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
8677
8808
|
label: string;
|
|
8678
8809
|
referenceId: string;
|
|
8679
8810
|
path?: string | undefined;
|
|
@@ -8719,9 +8850,9 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
8719
8850
|
sessionId: string;
|
|
8720
8851
|
payload: {
|
|
8721
8852
|
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
8853
|
+
expiresAt: number;
|
|
8722
8854
|
approvalId: string;
|
|
8723
8855
|
reason: string | null;
|
|
8724
|
-
expiresAt: number;
|
|
8725
8856
|
resolvedDecision: string | null;
|
|
8726
8857
|
};
|
|
8727
8858
|
revision: number;
|
|
@@ -8956,7 +9087,6 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
8956
9087
|
} | undefined;
|
|
8957
9088
|
}[];
|
|
8958
9089
|
nextCursor: string | null;
|
|
8959
|
-
snapshotSequence: number;
|
|
8960
9090
|
readAt: number;
|
|
8961
9091
|
latestVisibleAt: number;
|
|
8962
9092
|
deferredOlderHistory?: boolean | undefined;
|
|
@@ -9610,7 +9740,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
|
|
|
9610
9740
|
previousPath?: string | undefined;
|
|
9611
9741
|
}>;
|
|
9612
9742
|
export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
|
|
9613
|
-
export declare const workbenchNodeOperationSchema: z.ZodEnum<["node.workbench.capabilities", "runner.usage.status", "runner.usage.read", "workspace.directories.list", "workspace.remove", "workspace.watch", "workspace.unwatch", "session.metadata.update", "session.pin.move", "session.rewind", "session.remove", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "workspace.files.list", "workspace.file.read", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "run.image.read", "terminal.open", "terminal.list", "terminal.close", "terminal.attach.authorize", "node.upgrade.request", "node.upgrade.cancel", "node.skills.inspect", "node.skills.install", "node.skills.remove", "workspace.skills.inspect", "workspace.skills.install", "workspace.skills.remove", "workspace.skills.git-exclude-repair", "skill.install.job.get", "node.mcps.inspect", "node.mcps.install", "node.mcps.remove", "workspace.mcps.inspect", "workspace.mcps.install", "workspace.mcps.remove"]>;
|
|
9743
|
+
export declare const workbenchNodeOperationSchema: z.ZodEnum<["node.workbench.capabilities", "runner.usage.status", "runner.usage.read", "workspace.directories.list", "workspace.remove", "workspace.watch", "workspace.unwatch", "session.unwatch", "session.metadata.update", "session.pin.move", "session.rewind", "session.remove", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "workspace.files.list", "workspace.file.read", "workspace.file.content.read", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "workspace.git.commit.file.content.read", "run.image.read", "terminal.open", "terminal.list", "terminal.close", "terminal.attach.authorize", "node.upgrade.request", "node.upgrade.cancel", "node.skills.inspect", "node.skills.install", "node.skills.remove", "workspace.skills.inspect", "workspace.skills.install", "workspace.skills.remove", "workspace.skills.git-exclude-repair", "skill.install.job.get", "node.mcps.inspect", "node.mcps.install", "node.mcps.remove", "workspace.mcps.inspect", "workspace.mcps.install", "workspace.mcps.remove"]>;
|
|
9614
9744
|
export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
|
|
9615
9745
|
/**
|
|
9616
9746
|
* A small, explicit envelope keeps WebSocket messages independently parseable
|
package/dist/index.js
CHANGED
|
@@ -188,6 +188,49 @@ export const workbenchEventSchema = z.object({
|
|
|
188
188
|
category: workbenchEventCategorySchema,
|
|
189
189
|
payload: z.unknown()
|
|
190
190
|
});
|
|
191
|
+
export const watchAcceptedSchema = z
|
|
192
|
+
.object({
|
|
193
|
+
accepted: z.literal(true),
|
|
194
|
+
watchId: z.string().regex(/^[A-Za-z0-9_-]{8,128}$/),
|
|
195
|
+
nodeGeneration: z.string().regex(/^[A-Za-z0-9_-]{8,128}$/),
|
|
196
|
+
expiresAt: z.number().int().positive()
|
|
197
|
+
})
|
|
198
|
+
.strict();
|
|
199
|
+
const watchEventIdentitySchema = z
|
|
200
|
+
.object({
|
|
201
|
+
workbenchConnectionId: z.string().regex(/^[A-Za-z0-9_-]{8,128}$/),
|
|
202
|
+
watchId: z.string().regex(/^[A-Za-z0-9_-]{8,128}$/),
|
|
203
|
+
nodeGeneration: z.string().regex(/^[A-Za-z0-9_-]{8,128}$/),
|
|
204
|
+
nodeId: z.string().min(1).max(160),
|
|
205
|
+
workspaceId: z.string().min(1).max(160)
|
|
206
|
+
})
|
|
207
|
+
.strict();
|
|
208
|
+
export const watchEventSchema = z.discriminatedUnion('type', [
|
|
209
|
+
watchEventIdentitySchema.extend({
|
|
210
|
+
type: z.literal('watch.workspace.snapshot'),
|
|
211
|
+
topic: z.enum(['sessions', 'files', 'changes']),
|
|
212
|
+
revision: z.number().int().nonnegative(),
|
|
213
|
+
snapshotSequence: z.number().int().positive(),
|
|
214
|
+
expiresAt: z.number().int().positive(),
|
|
215
|
+
payload: z.unknown()
|
|
216
|
+
}),
|
|
217
|
+
watchEventIdentitySchema.extend({
|
|
218
|
+
type: z.literal('watch.session.snapshot'),
|
|
219
|
+
sessionId: z.string().min(1).max(512),
|
|
220
|
+
revision: z.number().int().nonnegative(),
|
|
221
|
+
snapshotSequence: z.number().int().positive(),
|
|
222
|
+
expiresAt: z.number().int().positive(),
|
|
223
|
+
payload: z.unknown()
|
|
224
|
+
}),
|
|
225
|
+
watchEventIdentitySchema.extend({
|
|
226
|
+
type: z.literal('watch.failed'),
|
|
227
|
+
watchType: z.enum(['workspace', 'session']),
|
|
228
|
+
sessionId: z.string().min(1).max(512).optional(),
|
|
229
|
+
topic: z.enum(['sessions', 'files', 'changes']).optional(),
|
|
230
|
+
code: z.string().regex(/^[A-Z][A-Z0-9_]{0,127}$/),
|
|
231
|
+
message: z.string().min(1).max(1000)
|
|
232
|
+
})
|
|
233
|
+
]);
|
|
191
234
|
const capabilityAvailabilityBaseSchema = z.object({
|
|
192
235
|
available: z.boolean(),
|
|
193
236
|
reasonCode: z.string().min(1).max(80).nullable()
|
|
@@ -755,6 +798,7 @@ export const workbenchNodeOperationSchema = z.enum([
|
|
|
755
798
|
'workspace.remove',
|
|
756
799
|
'workspace.watch',
|
|
757
800
|
'workspace.unwatch',
|
|
801
|
+
'session.unwatch',
|
|
758
802
|
'session.metadata.update',
|
|
759
803
|
'session.pin.move',
|
|
760
804
|
'session.rewind',
|
|
@@ -769,6 +813,7 @@ export const workbenchNodeOperationSchema = z.enum([
|
|
|
769
813
|
'runner.defaults.save',
|
|
770
814
|
'workspace.files.list',
|
|
771
815
|
'workspace.file.read',
|
|
816
|
+
'workspace.file.content.read',
|
|
772
817
|
'workspace.files.search',
|
|
773
818
|
'workspace.files.mutate',
|
|
774
819
|
'workspace.content.search',
|
|
@@ -785,6 +830,7 @@ export const workbenchNodeOperationSchema = z.enum([
|
|
|
785
830
|
'workspace.git.history.list',
|
|
786
831
|
'workspace.git.commit.files',
|
|
787
832
|
'workspace.git.commit.file.diff',
|
|
833
|
+
'workspace.git.commit.file.content.read',
|
|
788
834
|
'run.image.read',
|
|
789
835
|
'terminal.open',
|
|
790
836
|
'terminal.list',
|