@myagentroam/protocol 0.9.94 → 0.9.96

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 CHANGED
@@ -87,6 +87,170 @@ export declare const conversationHostingCapabilitySchema: z.ZodEffects<z.ZodObje
87
87
  reasonCode?: string | undefined;
88
88
  }>;
89
89
  export type ConversationHostingCapability = z.infer<typeof conversationHostingCapabilitySchema>;
90
+ export declare const computerUseCapabilitySchema: z.ZodEffects<z.ZodObject<{
91
+ apiVersion: z.ZodLiteral<1>;
92
+ enabled: z.ZodBoolean;
93
+ state: z.ZodEnum<["DISABLED", "INITIALIZING", "AVAILABLE", "UNAVAILABLE"]>;
94
+ backend: z.ZodLiteral<"PYAUTOGUI">;
95
+ supportsScreenshot: z.ZodBoolean;
96
+ supportsInput: z.ZodBoolean;
97
+ supportsUnicodePaste: z.ZodBoolean;
98
+ supportsPrimaryDisplay: z.ZodBoolean;
99
+ runtimeVersion: z.ZodOptional<z.ZodString>;
100
+ reasonCode: z.ZodOptional<z.ZodString>;
101
+ measuredAt: z.ZodNumber;
102
+ }, "strict", z.ZodTypeAny, {
103
+ apiVersion: 1;
104
+ enabled: boolean;
105
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
106
+ backend: "PYAUTOGUI";
107
+ supportsScreenshot: boolean;
108
+ supportsInput: boolean;
109
+ supportsUnicodePaste: boolean;
110
+ supportsPrimaryDisplay: boolean;
111
+ measuredAt: number;
112
+ reasonCode?: string | undefined;
113
+ runtimeVersion?: string | undefined;
114
+ }, {
115
+ apiVersion: 1;
116
+ enabled: boolean;
117
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
118
+ backend: "PYAUTOGUI";
119
+ supportsScreenshot: boolean;
120
+ supportsInput: boolean;
121
+ supportsUnicodePaste: boolean;
122
+ supportsPrimaryDisplay: boolean;
123
+ measuredAt: number;
124
+ reasonCode?: string | undefined;
125
+ runtimeVersion?: string | undefined;
126
+ }>, {
127
+ apiVersion: 1;
128
+ enabled: boolean;
129
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
130
+ backend: "PYAUTOGUI";
131
+ supportsScreenshot: boolean;
132
+ supportsInput: boolean;
133
+ supportsUnicodePaste: boolean;
134
+ supportsPrimaryDisplay: boolean;
135
+ measuredAt: number;
136
+ reasonCode?: string | undefined;
137
+ runtimeVersion?: string | undefined;
138
+ }, {
139
+ apiVersion: 1;
140
+ enabled: boolean;
141
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
142
+ backend: "PYAUTOGUI";
143
+ supportsScreenshot: boolean;
144
+ supportsInput: boolean;
145
+ supportsUnicodePaste: boolean;
146
+ supportsPrimaryDisplay: boolean;
147
+ measuredAt: number;
148
+ reasonCode?: string | undefined;
149
+ runtimeVersion?: string | undefined;
150
+ }>;
151
+ export type ComputerUseCapability = z.infer<typeof computerUseCapabilitySchema>;
152
+ export declare const computerUseEnableInputSchema: z.ZodObject<{
153
+ enabled: z.ZodLiteral<true>;
154
+ }, "strict", z.ZodTypeAny, {
155
+ enabled: true;
156
+ }, {
157
+ enabled: true;
158
+ }>;
159
+ export type ComputerUseEnableInput = z.infer<typeof computerUseEnableInputSchema>;
160
+ export declare const computerUseDisableInputSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
161
+ export type ComputerUseDisableInput = z.infer<typeof computerUseDisableInputSchema>;
162
+ export declare const computerUseEnableResultSchema: z.ZodObject<{
163
+ capability: z.ZodEffects<z.ZodObject<{
164
+ apiVersion: z.ZodLiteral<1>;
165
+ enabled: z.ZodBoolean;
166
+ state: z.ZodEnum<["DISABLED", "INITIALIZING", "AVAILABLE", "UNAVAILABLE"]>;
167
+ backend: z.ZodLiteral<"PYAUTOGUI">;
168
+ supportsScreenshot: z.ZodBoolean;
169
+ supportsInput: z.ZodBoolean;
170
+ supportsUnicodePaste: z.ZodBoolean;
171
+ supportsPrimaryDisplay: z.ZodBoolean;
172
+ runtimeVersion: z.ZodOptional<z.ZodString>;
173
+ reasonCode: z.ZodOptional<z.ZodString>;
174
+ measuredAt: z.ZodNumber;
175
+ }, "strict", z.ZodTypeAny, {
176
+ apiVersion: 1;
177
+ enabled: boolean;
178
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
179
+ backend: "PYAUTOGUI";
180
+ supportsScreenshot: boolean;
181
+ supportsInput: boolean;
182
+ supportsUnicodePaste: boolean;
183
+ supportsPrimaryDisplay: boolean;
184
+ measuredAt: number;
185
+ reasonCode?: string | undefined;
186
+ runtimeVersion?: string | undefined;
187
+ }, {
188
+ apiVersion: 1;
189
+ enabled: boolean;
190
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
191
+ backend: "PYAUTOGUI";
192
+ supportsScreenshot: boolean;
193
+ supportsInput: boolean;
194
+ supportsUnicodePaste: boolean;
195
+ supportsPrimaryDisplay: boolean;
196
+ measuredAt: number;
197
+ reasonCode?: string | undefined;
198
+ runtimeVersion?: string | undefined;
199
+ }>, {
200
+ apiVersion: 1;
201
+ enabled: boolean;
202
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
203
+ backend: "PYAUTOGUI";
204
+ supportsScreenshot: boolean;
205
+ supportsInput: boolean;
206
+ supportsUnicodePaste: boolean;
207
+ supportsPrimaryDisplay: boolean;
208
+ measuredAt: number;
209
+ reasonCode?: string | undefined;
210
+ runtimeVersion?: string | undefined;
211
+ }, {
212
+ apiVersion: 1;
213
+ enabled: boolean;
214
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
215
+ backend: "PYAUTOGUI";
216
+ supportsScreenshot: boolean;
217
+ supportsInput: boolean;
218
+ supportsUnicodePaste: boolean;
219
+ supportsPrimaryDisplay: boolean;
220
+ measuredAt: number;
221
+ reasonCode?: string | undefined;
222
+ runtimeVersion?: string | undefined;
223
+ }>;
224
+ }, "strict", z.ZodTypeAny, {
225
+ capability: {
226
+ apiVersion: 1;
227
+ enabled: boolean;
228
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
229
+ backend: "PYAUTOGUI";
230
+ supportsScreenshot: boolean;
231
+ supportsInput: boolean;
232
+ supportsUnicodePaste: boolean;
233
+ supportsPrimaryDisplay: boolean;
234
+ measuredAt: number;
235
+ reasonCode?: string | undefined;
236
+ runtimeVersion?: string | undefined;
237
+ };
238
+ }, {
239
+ capability: {
240
+ apiVersion: 1;
241
+ enabled: boolean;
242
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
243
+ backend: "PYAUTOGUI";
244
+ supportsScreenshot: boolean;
245
+ supportsInput: boolean;
246
+ supportsUnicodePaste: boolean;
247
+ supportsPrimaryDisplay: boolean;
248
+ measuredAt: number;
249
+ reasonCode?: string | undefined;
250
+ runtimeVersion?: string | undefined;
251
+ };
252
+ }>;
253
+ export type ComputerUseEnableResult = z.infer<typeof computerUseEnableResultSchema>;
90
254
  export declare const conversationHostingEnableInputSchema: z.ZodObject<{
91
255
  enabled: z.ZodLiteral<true>;
92
256
  }, "strict", z.ZodTypeAny, {
@@ -180,39 +344,39 @@ export declare const conversationHostingStorageCapacitySchema: z.ZodEffects<z.Zo
180
344
  }, "strict", z.ZodTypeAny, {
181
345
  acceptsNewConversations: boolean;
182
346
  capacity: "AVAILABLE" | "HIGH" | "FULL";
347
+ measuredAt: number;
183
348
  hostedStorageUsedBytes: number;
184
349
  filesystemTotalBytes: number;
185
350
  filesystemAvailableBytes: number;
186
351
  filesystemUsageBasisPoints: number;
187
352
  automaticCleanupInactiveDays: number;
188
- measuredAt: number;
189
353
  }, {
190
354
  acceptsNewConversations: boolean;
191
355
  capacity: "AVAILABLE" | "HIGH" | "FULL";
356
+ measuredAt: number;
192
357
  hostedStorageUsedBytes: number;
193
358
  filesystemTotalBytes: number;
194
359
  filesystemAvailableBytes: number;
195
360
  filesystemUsageBasisPoints: number;
196
361
  automaticCleanupInactiveDays: number;
197
- measuredAt: number;
198
362
  }>, {
199
363
  acceptsNewConversations: boolean;
200
364
  capacity: "AVAILABLE" | "HIGH" | "FULL";
365
+ measuredAt: number;
201
366
  hostedStorageUsedBytes: number;
202
367
  filesystemTotalBytes: number;
203
368
  filesystemAvailableBytes: number;
204
369
  filesystemUsageBasisPoints: number;
205
370
  automaticCleanupInactiveDays: number;
206
- measuredAt: number;
207
371
  }, {
208
372
  acceptsNewConversations: boolean;
209
373
  capacity: "AVAILABLE" | "HIGH" | "FULL";
374
+ measuredAt: number;
210
375
  hostedStorageUsedBytes: number;
211
376
  filesystemTotalBytes: number;
212
377
  filesystemAvailableBytes: number;
213
378
  filesystemUsageBasisPoints: number;
214
379
  automaticCleanupInactiveDays: number;
215
- measuredAt: number;
216
380
  }>;
217
381
  export type ConversationHostingStorageCapacity = z.infer<typeof conversationHostingStorageCapacitySchema>;
218
382
  export declare const conversationHostingCleanupPreviewInputSchema: z.ZodObject<{
@@ -731,6 +895,67 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
731
895
  sandboxPolicyVersion?: number | undefined;
732
896
  reasonCode?: string | undefined;
733
897
  }>>;
898
+ computerUse: z.ZodOptional<z.ZodEffects<z.ZodObject<{
899
+ apiVersion: z.ZodLiteral<1>;
900
+ enabled: z.ZodBoolean;
901
+ state: z.ZodEnum<["DISABLED", "INITIALIZING", "AVAILABLE", "UNAVAILABLE"]>;
902
+ backend: z.ZodLiteral<"PYAUTOGUI">;
903
+ supportsScreenshot: z.ZodBoolean;
904
+ supportsInput: z.ZodBoolean;
905
+ supportsUnicodePaste: z.ZodBoolean;
906
+ supportsPrimaryDisplay: z.ZodBoolean;
907
+ runtimeVersion: z.ZodOptional<z.ZodString>;
908
+ reasonCode: z.ZodOptional<z.ZodString>;
909
+ measuredAt: z.ZodNumber;
910
+ }, "strict", z.ZodTypeAny, {
911
+ apiVersion: 1;
912
+ enabled: boolean;
913
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
914
+ backend: "PYAUTOGUI";
915
+ supportsScreenshot: boolean;
916
+ supportsInput: boolean;
917
+ supportsUnicodePaste: boolean;
918
+ supportsPrimaryDisplay: boolean;
919
+ measuredAt: number;
920
+ reasonCode?: string | undefined;
921
+ runtimeVersion?: string | undefined;
922
+ }, {
923
+ apiVersion: 1;
924
+ enabled: boolean;
925
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
926
+ backend: "PYAUTOGUI";
927
+ supportsScreenshot: boolean;
928
+ supportsInput: boolean;
929
+ supportsUnicodePaste: boolean;
930
+ supportsPrimaryDisplay: boolean;
931
+ measuredAt: number;
932
+ reasonCode?: string | undefined;
933
+ runtimeVersion?: string | undefined;
934
+ }>, {
935
+ apiVersion: 1;
936
+ enabled: boolean;
937
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
938
+ backend: "PYAUTOGUI";
939
+ supportsScreenshot: boolean;
940
+ supportsInput: boolean;
941
+ supportsUnicodePaste: boolean;
942
+ supportsPrimaryDisplay: boolean;
943
+ measuredAt: number;
944
+ reasonCode?: string | undefined;
945
+ runtimeVersion?: string | undefined;
946
+ }, {
947
+ apiVersion: 1;
948
+ enabled: boolean;
949
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
950
+ backend: "PYAUTOGUI";
951
+ supportsScreenshot: boolean;
952
+ supportsInput: boolean;
953
+ supportsUnicodePaste: boolean;
954
+ supportsPrimaryDisplay: boolean;
955
+ measuredAt: number;
956
+ reasonCode?: string | undefined;
957
+ runtimeVersion?: string | undefined;
958
+ }>>;
734
959
  marAgentRuntimeCredentials: z.ZodOptional<z.ZodObject<{
735
960
  apiVersion: z.ZodLiteral<1>;
736
961
  websocket: z.ZodBoolean;
@@ -839,6 +1064,19 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
839
1064
  sandboxPolicyVersion?: number | undefined;
840
1065
  reasonCode?: string | undefined;
841
1066
  } | undefined;
1067
+ computerUse?: {
1068
+ apiVersion: 1;
1069
+ enabled: boolean;
1070
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
1071
+ backend: "PYAUTOGUI";
1072
+ supportsScreenshot: boolean;
1073
+ supportsInput: boolean;
1074
+ supportsUnicodePaste: boolean;
1075
+ supportsPrimaryDisplay: boolean;
1076
+ measuredAt: number;
1077
+ reasonCode?: string | undefined;
1078
+ runtimeVersion?: string | undefined;
1079
+ } | undefined;
842
1080
  marAgentRuntimeCredentials?: {
843
1081
  apiVersion: 1;
844
1082
  websocket: boolean;
@@ -923,6 +1161,19 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
923
1161
  sandboxPolicyVersion?: number | undefined;
924
1162
  reasonCode?: string | undefined;
925
1163
  } | undefined;
1164
+ computerUse?: {
1165
+ apiVersion: 1;
1166
+ enabled: boolean;
1167
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
1168
+ backend: "PYAUTOGUI";
1169
+ supportsScreenshot: boolean;
1170
+ supportsInput: boolean;
1171
+ supportsUnicodePaste: boolean;
1172
+ supportsPrimaryDisplay: boolean;
1173
+ measuredAt: number;
1174
+ reasonCode?: string | undefined;
1175
+ runtimeVersion?: string | undefined;
1176
+ } | undefined;
926
1177
  marAgentRuntimeCredentials?: {
927
1178
  apiVersion: 1;
928
1179
  websocket: boolean;
@@ -1007,6 +1258,19 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1007
1258
  sandboxPolicyVersion?: number | undefined;
1008
1259
  reasonCode?: string | undefined;
1009
1260
  } | undefined;
1261
+ computerUse?: {
1262
+ apiVersion: 1;
1263
+ enabled: boolean;
1264
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
1265
+ backend: "PYAUTOGUI";
1266
+ supportsScreenshot: boolean;
1267
+ supportsInput: boolean;
1268
+ supportsUnicodePaste: boolean;
1269
+ supportsPrimaryDisplay: boolean;
1270
+ measuredAt: number;
1271
+ reasonCode?: string | undefined;
1272
+ runtimeVersion?: string | undefined;
1273
+ } | undefined;
1010
1274
  marAgentRuntimeCredentials?: {
1011
1275
  apiVersion: 1;
1012
1276
  websocket: boolean;
@@ -1091,6 +1355,19 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1091
1355
  sandboxPolicyVersion?: number | undefined;
1092
1356
  reasonCode?: string | undefined;
1093
1357
  } | undefined;
1358
+ computerUse?: {
1359
+ apiVersion: 1;
1360
+ enabled: boolean;
1361
+ state: "DISABLED" | "UNAVAILABLE" | "AVAILABLE" | "INITIALIZING";
1362
+ backend: "PYAUTOGUI";
1363
+ supportsScreenshot: boolean;
1364
+ supportsInput: boolean;
1365
+ supportsUnicodePaste: boolean;
1366
+ supportsPrimaryDisplay: boolean;
1367
+ measuredAt: number;
1368
+ reasonCode?: string | undefined;
1369
+ runtimeVersion?: string | undefined;
1370
+ } | undefined;
1094
1371
  marAgentRuntimeCredentials?: {
1095
1372
  apiVersion: 1;
1096
1373
  websocket: boolean;
@@ -24323,6 +24600,165 @@ export declare const workspaceContentSearchSchema: z.ZodObject<{
24323
24600
  }>;
24324
24601
  export type WorkspaceContentMatch = z.infer<typeof workspaceContentMatchSchema>;
24325
24602
  export type WorkspaceContentSearch = z.infer<typeof workspaceContentSearchSchema>;
24603
+ export declare const workspaceSymbolDefinitionTargetSchema: z.ZodObject<{
24604
+ path: z.ZodString;
24605
+ line: z.ZodNumber;
24606
+ kind: z.ZodOptional<z.ZodString>;
24607
+ scope: z.ZodOptional<z.ZodString>;
24608
+ preview: z.ZodOptional<z.ZodString>;
24609
+ }, "strip", z.ZodTypeAny, {
24610
+ path: string;
24611
+ line: number;
24612
+ kind?: string | undefined;
24613
+ scope?: string | undefined;
24614
+ preview?: string | undefined;
24615
+ }, {
24616
+ path: string;
24617
+ line: number;
24618
+ kind?: string | undefined;
24619
+ scope?: string | undefined;
24620
+ preview?: string | undefined;
24621
+ }>;
24622
+ export declare const workspaceSymbolReferenceSchema: z.ZodObject<{
24623
+ path: z.ZodString;
24624
+ line: z.ZodNumber;
24625
+ column: z.ZodNumber;
24626
+ preview: z.ZodString;
24627
+ }, "strip", z.ZodTypeAny, {
24628
+ path: string;
24629
+ line: number;
24630
+ column: number;
24631
+ preview: string;
24632
+ }, {
24633
+ path: string;
24634
+ line: number;
24635
+ column: number;
24636
+ preview: string;
24637
+ }>;
24638
+ export declare const workspaceSymbolDefinitionSchema: z.ZodObject<{
24639
+ state: z.ZodEnum<["UNAVAILABLE", "BUILDING", "READY", "STALE", "FAILED"]>;
24640
+ targets: z.ZodArray<z.ZodObject<{
24641
+ path: z.ZodString;
24642
+ line: z.ZodNumber;
24643
+ kind: z.ZodOptional<z.ZodString>;
24644
+ scope: z.ZodOptional<z.ZodString>;
24645
+ preview: z.ZodOptional<z.ZodString>;
24646
+ }, "strip", z.ZodTypeAny, {
24647
+ path: string;
24648
+ line: number;
24649
+ kind?: string | undefined;
24650
+ scope?: string | undefined;
24651
+ preview?: string | undefined;
24652
+ }, {
24653
+ path: string;
24654
+ line: number;
24655
+ kind?: string | undefined;
24656
+ scope?: string | undefined;
24657
+ preview?: string | undefined;
24658
+ }>, "many">;
24659
+ references: z.ZodDefault<z.ZodArray<z.ZodObject<{
24660
+ path: z.ZodString;
24661
+ line: z.ZodNumber;
24662
+ column: z.ZodNumber;
24663
+ preview: z.ZodString;
24664
+ }, "strip", z.ZodTypeAny, {
24665
+ path: string;
24666
+ line: number;
24667
+ column: number;
24668
+ preview: string;
24669
+ }, {
24670
+ path: string;
24671
+ line: number;
24672
+ column: number;
24673
+ preview: string;
24674
+ }>, "many">>;
24675
+ referenceTruncated: z.ZodDefault<z.ZodBoolean>;
24676
+ paths: z.ZodDefault<z.ZodArray<z.ZodObject<{
24677
+ path: z.ZodString;
24678
+ line: z.ZodNumber;
24679
+ kind: z.ZodOptional<z.ZodString>;
24680
+ scope: z.ZodOptional<z.ZodString>;
24681
+ preview: z.ZodOptional<z.ZodString>;
24682
+ }, "strip", z.ZodTypeAny, {
24683
+ path: string;
24684
+ line: number;
24685
+ kind?: string | undefined;
24686
+ scope?: string | undefined;
24687
+ preview?: string | undefined;
24688
+ }, {
24689
+ path: string;
24690
+ line: number;
24691
+ kind?: string | undefined;
24692
+ scope?: string | undefined;
24693
+ preview?: string | undefined;
24694
+ }>, "many">>;
24695
+ truncated: z.ZodBoolean;
24696
+ failureCode: z.ZodOptional<z.ZodEnum<["SYMBOL_INDEX_BUILD_FAILED", "SYMBOL_INDEX_LIMIT_EXCEEDED"]>>;
24697
+ }, "strip", z.ZodTypeAny, {
24698
+ state: "FAILED" | "READY" | "UNAVAILABLE" | "BUILDING" | "STALE";
24699
+ truncated: boolean;
24700
+ targets: {
24701
+ path: string;
24702
+ line: number;
24703
+ kind?: string | undefined;
24704
+ scope?: string | undefined;
24705
+ preview?: string | undefined;
24706
+ }[];
24707
+ references: {
24708
+ path: string;
24709
+ line: number;
24710
+ column: number;
24711
+ preview: string;
24712
+ }[];
24713
+ referenceTruncated: boolean;
24714
+ paths: {
24715
+ path: string;
24716
+ line: number;
24717
+ kind?: string | undefined;
24718
+ scope?: string | undefined;
24719
+ preview?: string | undefined;
24720
+ }[];
24721
+ failureCode?: "SYMBOL_INDEX_BUILD_FAILED" | "SYMBOL_INDEX_LIMIT_EXCEEDED" | undefined;
24722
+ }, {
24723
+ state: "FAILED" | "READY" | "UNAVAILABLE" | "BUILDING" | "STALE";
24724
+ truncated: boolean;
24725
+ targets: {
24726
+ path: string;
24727
+ line: number;
24728
+ kind?: string | undefined;
24729
+ scope?: string | undefined;
24730
+ preview?: string | undefined;
24731
+ }[];
24732
+ references?: {
24733
+ path: string;
24734
+ line: number;
24735
+ column: number;
24736
+ preview: string;
24737
+ }[] | undefined;
24738
+ referenceTruncated?: boolean | undefined;
24739
+ paths?: {
24740
+ path: string;
24741
+ line: number;
24742
+ kind?: string | undefined;
24743
+ scope?: string | undefined;
24744
+ preview?: string | undefined;
24745
+ }[] | undefined;
24746
+ failureCode?: "SYMBOL_INDEX_BUILD_FAILED" | "SYMBOL_INDEX_LIMIT_EXCEEDED" | undefined;
24747
+ }>;
24748
+ export type WorkspaceSymbolDefinitionTarget = z.infer<typeof workspaceSymbolDefinitionTargetSchema>;
24749
+ export type WorkspaceSymbolReference = z.infer<typeof workspaceSymbolReferenceSchema>;
24750
+ export type WorkspaceSymbolDefinition = z.infer<typeof workspaceSymbolDefinitionSchema>;
24751
+ export declare const workspaceSymbolIndexPreparationSchema: z.ZodObject<{
24752
+ state: z.ZodEnum<["UNAVAILABLE", "BUILDING", "READY", "STALE", "FAILED"]>;
24753
+ failureCode: z.ZodOptional<z.ZodEnum<["SYMBOL_INDEX_BUILD_FAILED", "SYMBOL_INDEX_LIMIT_EXCEEDED"]>>;
24754
+ }, "strict", z.ZodTypeAny, {
24755
+ state: "FAILED" | "READY" | "UNAVAILABLE" | "BUILDING" | "STALE";
24756
+ failureCode?: "SYMBOL_INDEX_BUILD_FAILED" | "SYMBOL_INDEX_LIMIT_EXCEEDED" | undefined;
24757
+ }, {
24758
+ state: "FAILED" | "READY" | "UNAVAILABLE" | "BUILDING" | "STALE";
24759
+ failureCode?: "SYMBOL_INDEX_BUILD_FAILED" | "SYMBOL_INDEX_LIMIT_EXCEEDED" | undefined;
24760
+ }>;
24761
+ export type WorkspaceSymbolIndexPreparation = z.infer<typeof workspaceSymbolIndexPreparationSchema>;
24326
24762
  export declare const workspaceFileReadSchema: z.ZodObject<{
24327
24763
  path: z.ZodString;
24328
24764
  encoding: z.ZodEnum<["utf-8", "base64"]>;
@@ -25000,7 +25436,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
25000
25436
  previousPath?: string | undefined;
25001
25437
  }>;
25002
25438
  export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
25003
- export declare const workbenchNodeOperationSchema: z.ZodEnum<["workspace.git.settings.get", "workspace.git.settings.update", "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.rollback", "session.remove", "workspace.sessions.cleanup", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "mar-agent.model.test", "workspace.files.list", "workspace.file.read", "workspace.file.write", "workspace.file.content.read", "workspace.file.direct.metadata", "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", "workspace.git.commit.file.direct.metadata", "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", "conversation.template.source.inspect", "conversation.template.publish", "conversation.template.publish.status", "conversation.template.version.inspect", "conversation.hosting.enable", "conversation.hosting.disable", "conversation.hosting.storage.inspect", "conversation.hosting.cleanup.preview", "conversation.hosting.cleanup.execute", "conversation.hosted.list", "conversation.hosted.create", "conversation.hosted.get", "conversation.hosted.history", "conversation.hosted.watch", "conversation.hosted.unwatch", "conversation.hosted.message", "conversation.hosted.rollback", "conversation.hosted.interrupt", "conversation.hosted.config.update", "conversation.hosted.metadata.update", "conversation.hosted.image.read", "conversation.hosted.files.list", "conversation.hosted.file.read", "conversation.hosted.file.delete", "conversation.hosted.files.upload.preflight", "conversation.hosted.files.upload.create", "conversation.hosted.files.upload.chunk", "conversation.hosted.files.upload.status", "conversation.hosted.files.upload.complete", "conversation.hosted.files.upload.cancel", "conversation.hosted.delete"]>;
25439
+ export declare const workbenchNodeOperationSchema: z.ZodEnum<["workspace.git.settings.get", "workspace.git.settings.update", "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.rollback", "session.remove", "workspace.sessions.cleanup", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "mar-agent.model.test", "workspace.files.list", "workspace.file.read", "workspace.file.write", "workspace.file.content.read", "workspace.file.direct.metadata", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.symbol.prepare", "workspace.symbol.definition", "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", "workspace.git.commit.file.direct.metadata", "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", "conversation.template.source.inspect", "conversation.template.publish", "conversation.template.publish.status", "conversation.template.version.inspect", "conversation.hosting.enable", "conversation.hosting.disable", "conversation.hosting.storage.inspect", "conversation.hosting.cleanup.preview", "conversation.hosting.cleanup.execute", "computer.use.enable", "computer.use.disable", "conversation.hosted.list", "conversation.hosted.create", "conversation.hosted.get", "conversation.hosted.history", "conversation.hosted.watch", "conversation.hosted.unwatch", "conversation.hosted.message", "conversation.hosted.rollback", "conversation.hosted.interrupt", "conversation.hosted.config.update", "conversation.hosted.metadata.update", "conversation.hosted.image.read", "conversation.hosted.files.list", "conversation.hosted.file.read", "conversation.hosted.file.delete", "conversation.hosted.files.upload.preflight", "conversation.hosted.files.upload.create", "conversation.hosted.files.upload.chunk", "conversation.hosted.files.upload.status", "conversation.hosted.files.upload.complete", "conversation.hosted.files.upload.cancel", "conversation.hosted.delete"]>;
25004
25440
  export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
25005
25441
  /**
25006
25442
  * A small, explicit envelope keeps WebSocket messages independently parseable
package/dist/index.js CHANGED
@@ -87,6 +87,80 @@ export const conversationHostingCapabilitySchema = z
87
87
  message: 'disabled conversation hosting cannot expose sandbox state'
88
88
  });
89
89
  });
90
+ export const computerUseCapabilitySchema = z
91
+ .object({
92
+ apiVersion: z.literal(1),
93
+ enabled: z.boolean(),
94
+ state: z.enum(['DISABLED', 'INITIALIZING', 'AVAILABLE', 'UNAVAILABLE']),
95
+ backend: z.literal('PYAUTOGUI'),
96
+ supportsScreenshot: z.boolean(),
97
+ supportsInput: z.boolean(),
98
+ supportsUnicodePaste: z.boolean(),
99
+ supportsPrimaryDisplay: z.boolean(),
100
+ runtimeVersion: z.string().trim().min(1).max(128).optional(),
101
+ reasonCode: z
102
+ .string()
103
+ .regex(/^[A-Z][A-Z0-9_]{0,79}$/)
104
+ .optional(),
105
+ measuredAt: nonnegativeSafeIntegerSchema
106
+ })
107
+ .strict()
108
+ .superRefine((capability, context) => {
109
+ if (capability.state === 'DISABLED') {
110
+ if (capability.enabled ||
111
+ capability.reasonCode !== undefined ||
112
+ capability.supportsScreenshot ||
113
+ capability.supportsInput ||
114
+ capability.supportsUnicodePaste ||
115
+ capability.supportsPrimaryDisplay)
116
+ context.addIssue({
117
+ code: 'custom',
118
+ message: 'disabled Computer Use cannot expose runtime support'
119
+ });
120
+ return;
121
+ }
122
+ if (!capability.enabled)
123
+ context.addIssue({
124
+ code: 'custom',
125
+ path: ['enabled'],
126
+ message: 'active Computer Use states require enabled configuration'
127
+ });
128
+ if (capability.state === 'AVAILABLE') {
129
+ if (capability.reasonCode !== undefined ||
130
+ !capability.supportsScreenshot ||
131
+ !capability.supportsInput ||
132
+ !capability.supportsUnicodePaste ||
133
+ !capability.supportsPrimaryDisplay)
134
+ context.addIssue({
135
+ code: 'custom',
136
+ message: 'available Computer Use requires complete desktop support'
137
+ });
138
+ return;
139
+ }
140
+ if (capability.state === 'INITIALIZING') {
141
+ if (capability.reasonCode !== undefined ||
142
+ capability.supportsScreenshot ||
143
+ capability.supportsInput ||
144
+ capability.supportsUnicodePaste ||
145
+ capability.supportsPrimaryDisplay)
146
+ context.addIssue({
147
+ code: 'custom',
148
+ message: 'initializing Computer Use cannot expose a completed probe'
149
+ });
150
+ return;
151
+ }
152
+ if (capability.reasonCode === undefined)
153
+ context.addIssue({
154
+ code: 'custom',
155
+ path: ['reasonCode'],
156
+ message: 'unavailable Computer Use requires a reason code'
157
+ });
158
+ });
159
+ export const computerUseEnableInputSchema = z.object({ enabled: z.literal(true) }).strict();
160
+ export const computerUseDisableInputSchema = z.object({}).strict();
161
+ export const computerUseEnableResultSchema = z
162
+ .object({ capability: computerUseCapabilitySchema })
163
+ .strict();
90
164
  export const conversationHostingEnableInputSchema = z
91
165
  .object({
92
166
  enabled: z.literal(true)
@@ -218,6 +292,7 @@ export const nodeCapabilitiesSchema = z
218
292
  openCode: runnerAvailabilitySchema.optional(),
219
293
  marAgent: runnerAvailabilitySchema.optional(),
220
294
  conversationHosting: conversationHostingCapabilitySchema.optional(),
295
+ computerUse: computerUseCapabilitySchema.optional(),
221
296
  marAgentRuntimeCredentials: marAgentRuntimeCredentialCapabilitySchema.optional(),
222
297
  workspaceDirectTransfer: workspaceDirectTransferCapabilitySchema.optional()
223
298
  })
@@ -2315,6 +2390,34 @@ export const workspaceContentSearchSchema = z.object({
2315
2390
  truncated: z.boolean(),
2316
2391
  skippedFiles: z.number().int().nonnegative()
2317
2392
  });
2393
+ export const workspaceSymbolDefinitionTargetSchema = z.object({
2394
+ path: z.string().min(1).max(4096),
2395
+ line: z.number().int().positive(),
2396
+ kind: z.string().min(1).max(128).optional(),
2397
+ scope: z.string().min(1).max(1024).optional(),
2398
+ preview: z.string().min(1).max(512).optional()
2399
+ });
2400
+ export const workspaceSymbolReferenceSchema = z.object({
2401
+ path: z.string().min(1).max(4096),
2402
+ line: z.number().int().positive(),
2403
+ column: z.number().int().positive(),
2404
+ preview: z.string().min(1).max(8192)
2405
+ });
2406
+ export const workspaceSymbolDefinitionSchema = z.object({
2407
+ state: z.enum(['UNAVAILABLE', 'BUILDING', 'READY', 'STALE', 'FAILED']),
2408
+ targets: z.array(workspaceSymbolDefinitionTargetSchema).max(20),
2409
+ references: z.array(workspaceSymbolReferenceSchema).max(100).default([]),
2410
+ referenceTruncated: z.boolean().default(false),
2411
+ paths: z.array(workspaceSymbolDefinitionTargetSchema).max(20).default([]),
2412
+ truncated: z.boolean(),
2413
+ failureCode: z.enum(['SYMBOL_INDEX_BUILD_FAILED', 'SYMBOL_INDEX_LIMIT_EXCEEDED']).optional()
2414
+ });
2415
+ export const workspaceSymbolIndexPreparationSchema = z
2416
+ .object({
2417
+ state: z.enum(['UNAVAILABLE', 'BUILDING', 'READY', 'STALE', 'FAILED']),
2418
+ failureCode: z.enum(['SYMBOL_INDEX_BUILD_FAILED', 'SYMBOL_INDEX_LIMIT_EXCEEDED']).optional()
2419
+ })
2420
+ .strict();
2318
2421
  export const workspaceFileReadSchema = z.object({
2319
2422
  path: z.string().min(1).max(4096),
2320
2423
  encoding: z.enum(['utf-8', 'base64']),
@@ -2465,6 +2568,8 @@ export const workbenchNodeOperationSchema = z.enum([
2465
2568
  'workspace.files.search',
2466
2569
  'workspace.files.mutate',
2467
2570
  'workspace.content.search',
2571
+ 'workspace.symbol.prepare',
2572
+ 'workspace.symbol.definition',
2468
2573
  'workspace.files.upload.preflight',
2469
2574
  'workspace.files.upload.create',
2470
2575
  'workspace.files.upload.chunk',
@@ -2510,6 +2615,8 @@ export const workbenchNodeOperationSchema = z.enum([
2510
2615
  'conversation.hosting.storage.inspect',
2511
2616
  'conversation.hosting.cleanup.preview',
2512
2617
  'conversation.hosting.cleanup.execute',
2618
+ 'computer.use.enable',
2619
+ 'computer.use.disable',
2513
2620
  'conversation.hosted.list',
2514
2621
  'conversation.hosted.create',
2515
2622
  'conversation.hosted.get',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.9.94",
3
+ "version": "0.9.96",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",