@myagentroam/protocol 0.9.108 → 0.9.110

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
@@ -4,6 +4,7 @@ export * from './skill.js';
4
4
  export * from './mcp.js';
5
5
  export * from './git-identity.js';
6
6
  export * from './direct-transfer.js';
7
+ export * from './terminal-direct.js';
7
8
  export declare const healthStatusSchema: z.ZodObject<{
8
9
  status: z.ZodLiteral<"ok">;
9
10
  }, "strip", z.ZodTypeAny, {
@@ -29,15 +30,18 @@ export declare const runnerAvailabilitySchema: z.ZodObject<{
29
30
  export declare const marAgentRuntimeCredentialCapabilitySchema: z.ZodObject<{
30
31
  apiVersion: z.ZodLiteral<1>;
31
32
  websocket: z.ZodBoolean;
33
+ fastMode: z.ZodOptional<z.ZodBoolean>;
32
34
  httpVersions: z.ZodEffects<z.ZodArray<z.ZodEnum<["1.1", "2"]>, "many">, ("2" | "1.1")[], ("2" | "1.1")[]>;
33
35
  }, "strict", z.ZodTypeAny, {
34
36
  apiVersion: 1;
35
37
  websocket: boolean;
36
38
  httpVersions: ("2" | "1.1")[];
39
+ fastMode?: boolean | undefined;
37
40
  }, {
38
41
  apiVersion: 1;
39
42
  websocket: boolean;
40
43
  httpVersions: ("2" | "1.1")[];
44
+ fastMode?: boolean | undefined;
41
45
  }>;
42
46
  export type MarAgentRuntimeCredentialCapability = z.infer<typeof marAgentRuntimeCredentialCapabilitySchema>;
43
47
  export declare const conversationHostingCapabilitySchema: z.ZodEffects<z.ZodObject<{
@@ -959,15 +963,18 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
959
963
  marAgentRuntimeCredentials: z.ZodOptional<z.ZodObject<{
960
964
  apiVersion: z.ZodLiteral<1>;
961
965
  websocket: z.ZodBoolean;
966
+ fastMode: z.ZodOptional<z.ZodBoolean>;
962
967
  httpVersions: z.ZodEffects<z.ZodArray<z.ZodEnum<["1.1", "2"]>, "many">, ("2" | "1.1")[], ("2" | "1.1")[]>;
963
968
  }, "strict", z.ZodTypeAny, {
964
969
  apiVersion: 1;
965
970
  websocket: boolean;
966
971
  httpVersions: ("2" | "1.1")[];
972
+ fastMode?: boolean | undefined;
967
973
  }, {
968
974
  apiVersion: 1;
969
975
  websocket: boolean;
970
976
  httpVersions: ("2" | "1.1")[];
977
+ fastMode?: boolean | undefined;
971
978
  }>>;
972
979
  workspaceDirectTransfer: z.ZodOptional<z.ZodObject<{
973
980
  apiVersion: z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<3>]>;
@@ -994,6 +1001,16 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
994
1001
  gitCommitBlob: boolean;
995
1002
  maxChunkBytes: number;
996
1003
  }>>;
1004
+ terminalDirect: z.ZodOptional<z.ZodObject<{
1005
+ apiVersion: z.ZodLiteral<1>;
1006
+ transport: z.ZodLiteral<true>;
1007
+ }, "strict", z.ZodTypeAny, {
1008
+ apiVersion: 1;
1009
+ transport: true;
1010
+ }, {
1011
+ apiVersion: 1;
1012
+ transport: true;
1013
+ }>>;
997
1014
  }, "strip", z.ZodTypeAny, {
998
1015
  platform: "windows" | "linux" | "macos";
999
1016
  architecture: string;
@@ -1081,6 +1098,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1081
1098
  apiVersion: 1;
1082
1099
  websocket: boolean;
1083
1100
  httpVersions: ("2" | "1.1")[];
1101
+ fastMode?: boolean | undefined;
1084
1102
  } | undefined;
1085
1103
  workspaceDirectTransfer?: {
1086
1104
  apiVersion: 2 | 3;
@@ -1091,6 +1109,10 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1091
1109
  gitCommitBlob: boolean;
1092
1110
  maxChunkBytes: number;
1093
1111
  } | undefined;
1112
+ terminalDirect?: {
1113
+ apiVersion: 1;
1114
+ transport: true;
1115
+ } | undefined;
1094
1116
  }, {
1095
1117
  platform: "windows" | "linux" | "macos";
1096
1118
  architecture: string;
@@ -1178,6 +1200,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1178
1200
  apiVersion: 1;
1179
1201
  websocket: boolean;
1180
1202
  httpVersions: ("2" | "1.1")[];
1203
+ fastMode?: boolean | undefined;
1181
1204
  } | undefined;
1182
1205
  workspaceDirectTransfer?: {
1183
1206
  apiVersion: 2 | 3;
@@ -1188,6 +1211,10 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1188
1211
  gitCommitBlob: boolean;
1189
1212
  maxChunkBytes: number;
1190
1213
  } | undefined;
1214
+ terminalDirect?: {
1215
+ apiVersion: 1;
1216
+ transport: true;
1217
+ } | undefined;
1191
1218
  }>, {
1192
1219
  platform: "windows" | "linux" | "macos";
1193
1220
  architecture: string;
@@ -1275,6 +1302,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1275
1302
  apiVersion: 1;
1276
1303
  websocket: boolean;
1277
1304
  httpVersions: ("2" | "1.1")[];
1305
+ fastMode?: boolean | undefined;
1278
1306
  } | undefined;
1279
1307
  workspaceDirectTransfer?: {
1280
1308
  apiVersion: 2 | 3;
@@ -1285,6 +1313,10 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1285
1313
  gitCommitBlob: boolean;
1286
1314
  maxChunkBytes: number;
1287
1315
  } | undefined;
1316
+ terminalDirect?: {
1317
+ apiVersion: 1;
1318
+ transport: true;
1319
+ } | undefined;
1288
1320
  }, {
1289
1321
  platform: "windows" | "linux" | "macos";
1290
1322
  architecture: string;
@@ -1372,6 +1404,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1372
1404
  apiVersion: 1;
1373
1405
  websocket: boolean;
1374
1406
  httpVersions: ("2" | "1.1")[];
1407
+ fastMode?: boolean | undefined;
1375
1408
  } | undefined;
1376
1409
  workspaceDirectTransfer?: {
1377
1410
  apiVersion: 2 | 3;
@@ -1382,6 +1415,10 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1382
1415
  gitCommitBlob: boolean;
1383
1416
  maxChunkBytes: number;
1384
1417
  } | undefined;
1418
+ terminalDirect?: {
1419
+ apiVersion: 1;
1420
+ transport: true;
1421
+ } | undefined;
1385
1422
  }>;
1386
1423
  export type NodeCapabilities = z.infer<typeof nodeCapabilitiesSchema>;
1387
1424
  export declare const workspaceKindSchema: z.ZodEnum<["DIRECTORY", "GIT_WORKSPACE"]>;
@@ -2314,29 +2351,34 @@ export declare const imageGenerationCatalogSchema: z.ZodEffects<z.ZodArray<z.Zod
2314
2351
  };
2315
2352
  })[]>;
2316
2353
  export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
2317
- readonly baseUrl: z.ZodString;
2318
- readonly sortOrder: z.ZodNumber;
2319
- readonly apiKeyConfigured: z.ZodOptional<z.ZodBoolean>;
2320
- readonly credentialType: z.ZodOptional<z.ZodEnum<["INLINE_API_KEY", "CREDENTIAL_REF"]>>;
2321
- readonly credentialConfigured: z.ZodOptional<z.ZodBoolean>;
2322
- readonly lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2323
- readonly lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
2324
- readonly lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2325
- readonly id: z.ZodString;
2326
- readonly name: z.ZodString;
2327
- readonly protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
2328
- readonly modelId: z.ZodString;
2329
- readonly contextWindowTokens: z.ZodNumber;
2330
- readonly maxOutputTokens: z.ZodNumber;
2331
- readonly inputCapabilities: z.ZodArray<z.ZodEnum<["TEXT", "IMAGE"]>, "many">;
2332
- readonly outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
2333
- readonly reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
2334
- readonly defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
2335
- readonly titleGeneration: z.ZodDefault<z.ZodBoolean>;
2336
- readonly codeMode: z.ZodDefault<z.ZodBoolean>;
2337
- readonly highDensityCompaction: z.ZodDefault<z.ZodBoolean>;
2338
- readonly hostedWebSearch: z.ZodBoolean;
2339
- readonly responsesTransport: z.ZodOptional<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
2354
+ access: z.ZodOptional<z.ZodNever>;
2355
+ apiKey: z.ZodOptional<z.ZodNever>;
2356
+ credential: z.ZodOptional<z.ZodNever>;
2357
+ imageGeneration: z.ZodOptional<z.ZodNever>;
2358
+ baseUrl: z.ZodString;
2359
+ sortOrder: z.ZodNumber;
2360
+ apiKeyConfigured: z.ZodOptional<z.ZodBoolean>;
2361
+ credentialType: z.ZodOptional<z.ZodEnum<["INLINE_API_KEY", "CREDENTIAL_REF"]>>;
2362
+ credentialConfigured: z.ZodOptional<z.ZodBoolean>;
2363
+ lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2364
+ lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
2365
+ lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2366
+ id: z.ZodString;
2367
+ name: z.ZodString;
2368
+ protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
2369
+ modelId: z.ZodString;
2370
+ contextWindowTokens: z.ZodNumber;
2371
+ maxOutputTokens: z.ZodNumber;
2372
+ inputCapabilities: z.ZodArray<z.ZodEnum<["TEXT", "IMAGE"]>, "many">;
2373
+ outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
2374
+ reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
2375
+ defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
2376
+ titleGeneration: z.ZodDefault<z.ZodBoolean>;
2377
+ codeMode: z.ZodDefault<z.ZodBoolean>;
2378
+ highDensityCompaction: z.ZodDefault<z.ZodBoolean>;
2379
+ fastMode: z.ZodOptional<z.ZodBoolean>;
2380
+ hostedWebSearch: z.ZodBoolean;
2381
+ responsesTransport: z.ZodOptional<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
2340
2382
  transport: z.ZodLiteral<"WEBSOCKET">;
2341
2383
  }, "strict", z.ZodTypeAny, {
2342
2384
  transport: "WEBSOCKET";
@@ -2352,10 +2394,10 @@ export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
2352
2394
  transport: "HTTP";
2353
2395
  httpVersion: "2" | "1.1";
2354
2396
  }>]>>;
2355
- readonly responsesEncoding: z.ZodOptional<z.ZodEnum<["STANDARD", "LITE"]>>;
2356
- readonly responsesPreviousResponseId: z.ZodDefault<z.ZodBoolean>;
2357
- readonly enabled: z.ZodBoolean;
2358
- }, "strict", z.ZodTypeAny, {
2397
+ responsesEncoding: z.ZodOptional<z.ZodEnum<["STANDARD", "LITE"]>>;
2398
+ responsesPreviousResponseId: z.ZodDefault<z.ZodBoolean>;
2399
+ enabled: z.ZodBoolean;
2400
+ }, "strip", z.ZodTypeAny, {
2359
2401
  id: string;
2360
2402
  name: string;
2361
2403
  modelId: string;
@@ -2373,6 +2415,11 @@ export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
2373
2415
  highDensityCompaction: boolean;
2374
2416
  hostedWebSearch: boolean;
2375
2417
  responsesPreviousResponseId: boolean;
2418
+ fastMode?: boolean | undefined;
2419
+ credential?: undefined;
2420
+ apiKey?: undefined;
2421
+ access?: undefined;
2422
+ imageGeneration?: undefined;
2376
2423
  apiKeyConfigured?: boolean | undefined;
2377
2424
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
2378
2425
  credentialConfigured?: boolean | undefined;
@@ -2401,6 +2448,11 @@ export declare const marAgentNodeModelSummarySchema: z.ZodEffects<z.ZodObject<{
2401
2448
  outputCapabilities: ["TEXT"];
2402
2449
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
2403
2450
  hostedWebSearch: boolean;
2451
+ fastMode?: boolean | undefined;
2452
+ credential?: undefined;
2453
+ apiKey?: undefined;
2454
+ access?: undefined;
2455
+ imageGeneration?: undefined;
2404
2456
  apiKeyConfigured?: boolean | undefined;
2405
2457
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
2406
2458
  credentialConfigured?: boolean | undefined;
@@ -2447,6 +2499,7 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
2447
2499
  titleGeneration: z.ZodDefault<z.ZodBoolean>;
2448
2500
  codeMode: z.ZodDefault<z.ZodBoolean>;
2449
2501
  highDensityCompaction: z.ZodDefault<z.ZodBoolean>;
2502
+ fastMode: z.ZodOptional<z.ZodBoolean>;
2450
2503
  hostedWebSearch: z.ZodBoolean;
2451
2504
  responsesTransport: z.ZodOptional<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
2452
2505
  transport: z.ZodLiteral<"WEBSOCKET">;
@@ -2473,6 +2526,7 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
2473
2526
  modelId: string;
2474
2527
  protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
2475
2528
  enabled: boolean;
2529
+ access: "PUBLIC" | "RESTRICTED";
2476
2530
  baseUrl: string;
2477
2531
  sortOrder: number;
2478
2532
  contextWindowTokens: number;
@@ -2485,7 +2539,7 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
2485
2539
  highDensityCompaction: boolean;
2486
2540
  hostedWebSearch: boolean;
2487
2541
  responsesPreviousResponseId: boolean;
2488
- access: "PUBLIC" | "RESTRICTED";
2542
+ fastMode?: boolean | undefined;
2489
2543
  apiKeyConfigured?: boolean | undefined;
2490
2544
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
2491
2545
  credentialConfigured?: boolean | undefined;
@@ -2506,6 +2560,7 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
2506
2560
  modelId: string;
2507
2561
  protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
2508
2562
  enabled: boolean;
2563
+ access: "PUBLIC" | "RESTRICTED";
2509
2564
  baseUrl: string;
2510
2565
  sortOrder: number;
2511
2566
  contextWindowTokens: number;
@@ -2514,7 +2569,7 @@ export declare const marAgentModelSummarySchema: z.ZodEffects<z.ZodObject<{
2514
2569
  outputCapabilities: ["TEXT"];
2515
2570
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
2516
2571
  hostedWebSearch: boolean;
2517
- access: "PUBLIC" | "RESTRICTED";
2572
+ fastMode?: boolean | undefined;
2518
2573
  apiKeyConfigured?: boolean | undefined;
2519
2574
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
2520
2575
  credentialConfigured?: boolean | undefined;
@@ -2553,6 +2608,7 @@ export interface MarAgentModelSummary {
2553
2608
  titleGeneration: boolean;
2554
2609
  codeMode: boolean;
2555
2610
  highDensityCompaction: boolean;
2611
+ fastMode?: boolean;
2556
2612
  hostedWebSearch: boolean;
2557
2613
  responsesTransport?: MarAgentResponsesTransport;
2558
2614
  responsesEncoding?: 'STANDARD' | 'LITE';
@@ -2942,6 +2998,7 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
2942
2998
  titleGeneration: z.ZodDefault<z.ZodBoolean>;
2943
2999
  codeMode: z.ZodDefault<z.ZodBoolean>;
2944
3000
  highDensityCompaction: z.ZodDefault<z.ZodBoolean>;
3001
+ fastMode: z.ZodOptional<z.ZodBoolean>;
2945
3002
  hostedWebSearch: z.ZodBoolean;
2946
3003
  responsesTransport: z.ZodOptional<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
2947
3004
  transport: z.ZodLiteral<"WEBSOCKET">;
@@ -2962,7 +3019,7 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
2962
3019
  responsesEncoding: z.ZodOptional<z.ZodEnum<["STANDARD", "LITE"]>>;
2963
3020
  responsesPreviousResponseId: z.ZodDefault<z.ZodBoolean>;
2964
3021
  enabled: z.ZodBoolean;
2965
- }, "strict", z.ZodTypeAny, {
3022
+ }, "strip", z.ZodTypeAny, {
2966
3023
  id: string;
2967
3024
  name: string;
2968
3025
  modelId: string;
@@ -2979,6 +3036,7 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
2979
3036
  highDensityCompaction: boolean;
2980
3037
  hostedWebSearch: boolean;
2981
3038
  responsesPreviousResponseId: boolean;
3039
+ fastMode?: boolean | undefined;
2982
3040
  credential?: {
2983
3041
  value: string;
2984
3042
  type: "INLINE_API_KEY";
@@ -3001,14 +3059,6 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
3001
3059
  };
3002
3060
  } | undefined;
3003
3061
  apiKey?: string | undefined;
3004
- defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3005
- responsesTransport?: {
3006
- transport: "WEBSOCKET";
3007
- } | {
3008
- transport: "HTTP";
3009
- httpVersion: "2" | "1.1";
3010
- } | undefined;
3011
- responsesEncoding?: "STANDARD" | "LITE" | undefined;
3012
3062
  imageGeneration?: {
3013
3063
  httpVersion: "2" | "1.1";
3014
3064
  generateEndpoint: string;
@@ -3038,6 +3088,14 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
3038
3088
  provider?: string | undefined;
3039
3089
  config?: Record<string, string> | undefined;
3040
3090
  } | undefined;
3091
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3092
+ responsesTransport?: {
3093
+ transport: "WEBSOCKET";
3094
+ } | {
3095
+ transport: "HTTP";
3096
+ httpVersion: "2" | "1.1";
3097
+ } | undefined;
3098
+ responsesEncoding?: "STANDARD" | "LITE" | undefined;
3041
3099
  }, {
3042
3100
  id: string;
3043
3101
  name: string;
@@ -3051,6 +3109,7 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
3051
3109
  outputCapabilities: ["TEXT"];
3052
3110
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
3053
3111
  hostedWebSearch: boolean;
3112
+ fastMode?: boolean | undefined;
3054
3113
  credential?: {
3055
3114
  value: string;
3056
3115
  type: "INLINE_API_KEY";
@@ -3073,18 +3132,6 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
3073
3132
  };
3074
3133
  } | undefined;
3075
3134
  apiKey?: string | undefined;
3076
- defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3077
- titleGeneration?: boolean | undefined;
3078
- codeMode?: boolean | undefined;
3079
- highDensityCompaction?: boolean | undefined;
3080
- responsesTransport?: {
3081
- transport: "WEBSOCKET";
3082
- } | {
3083
- transport: "HTTP";
3084
- httpVersion: "2" | "1.1";
3085
- } | undefined;
3086
- responsesEncoding?: "STANDARD" | "LITE" | undefined;
3087
- responsesPreviousResponseId?: boolean | undefined;
3088
3135
  imageGeneration?: {
3089
3136
  httpVersion: "2" | "1.1";
3090
3137
  generateEndpoint: string;
@@ -3114,6 +3161,18 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
3114
3161
  provider?: string | undefined;
3115
3162
  config?: Record<string, string> | undefined;
3116
3163
  } | undefined;
3164
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3165
+ titleGeneration?: boolean | undefined;
3166
+ codeMode?: boolean | undefined;
3167
+ highDensityCompaction?: boolean | undefined;
3168
+ responsesTransport?: {
3169
+ transport: "WEBSOCKET";
3170
+ } | {
3171
+ transport: "HTTP";
3172
+ httpVersion: "2" | "1.1";
3173
+ } | undefined;
3174
+ responsesEncoding?: "STANDARD" | "LITE" | undefined;
3175
+ responsesPreviousResponseId?: boolean | undefined;
3117
3176
  }>, {
3118
3177
  [x: string]: any;
3119
3178
  }, {
@@ -3501,6 +3560,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
3501
3560
  titleGeneration: z.ZodDefault<z.ZodBoolean>;
3502
3561
  codeMode: z.ZodDefault<z.ZodBoolean>;
3503
3562
  highDensityCompaction: z.ZodDefault<z.ZodBoolean>;
3563
+ fastMode: z.ZodOptional<z.ZodBoolean>;
3504
3564
  hostedWebSearch: z.ZodBoolean;
3505
3565
  responsesTransport: z.ZodOptional<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
3506
3566
  transport: z.ZodLiteral<"WEBSOCKET">;
@@ -3521,7 +3581,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
3521
3581
  responsesEncoding: z.ZodOptional<z.ZodEnum<["STANDARD", "LITE"]>>;
3522
3582
  responsesPreviousResponseId: z.ZodDefault<z.ZodBoolean>;
3523
3583
  enabled: z.ZodBoolean;
3524
- }, "strict", z.ZodTypeAny, {
3584
+ }, "strip", z.ZodTypeAny, {
3525
3585
  id: string;
3526
3586
  name: string;
3527
3587
  modelId: string;
@@ -3538,6 +3598,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
3538
3598
  highDensityCompaction: boolean;
3539
3599
  hostedWebSearch: boolean;
3540
3600
  responsesPreviousResponseId: boolean;
3601
+ fastMode?: boolean | undefined;
3541
3602
  credential?: {
3542
3603
  value: string;
3543
3604
  type: "INLINE_API_KEY";
@@ -3560,14 +3621,6 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
3560
3621
  };
3561
3622
  } | undefined;
3562
3623
  apiKey?: string | undefined;
3563
- defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3564
- responsesTransport?: {
3565
- transport: "WEBSOCKET";
3566
- } | {
3567
- transport: "HTTP";
3568
- httpVersion: "2" | "1.1";
3569
- } | undefined;
3570
- responsesEncoding?: "STANDARD" | "LITE" | undefined;
3571
3624
  imageGeneration?: {
3572
3625
  httpVersion: "2" | "1.1";
3573
3626
  generateEndpoint: string;
@@ -3597,6 +3650,14 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
3597
3650
  provider?: string | undefined;
3598
3651
  config?: Record<string, string> | undefined;
3599
3652
  } | undefined;
3653
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3654
+ responsesTransport?: {
3655
+ transport: "WEBSOCKET";
3656
+ } | {
3657
+ transport: "HTTP";
3658
+ httpVersion: "2" | "1.1";
3659
+ } | undefined;
3660
+ responsesEncoding?: "STANDARD" | "LITE" | undefined;
3600
3661
  }, {
3601
3662
  id: string;
3602
3663
  name: string;
@@ -3610,6 +3671,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
3610
3671
  outputCapabilities: ["TEXT"];
3611
3672
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
3612
3673
  hostedWebSearch: boolean;
3674
+ fastMode?: boolean | undefined;
3613
3675
  credential?: {
3614
3676
  value: string;
3615
3677
  type: "INLINE_API_KEY";
@@ -3632,18 +3694,6 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
3632
3694
  };
3633
3695
  } | undefined;
3634
3696
  apiKey?: string | undefined;
3635
- defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3636
- titleGeneration?: boolean | undefined;
3637
- codeMode?: boolean | undefined;
3638
- highDensityCompaction?: boolean | undefined;
3639
- responsesTransport?: {
3640
- transport: "WEBSOCKET";
3641
- } | {
3642
- transport: "HTTP";
3643
- httpVersion: "2" | "1.1";
3644
- } | undefined;
3645
- responsesEncoding?: "STANDARD" | "LITE" | undefined;
3646
- responsesPreviousResponseId?: boolean | undefined;
3647
3697
  imageGeneration?: {
3648
3698
  httpVersion: "2" | "1.1";
3649
3699
  generateEndpoint: string;
@@ -3673,6 +3723,18 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
3673
3723
  provider?: string | undefined;
3674
3724
  config?: Record<string, string> | undefined;
3675
3725
  } | undefined;
3726
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3727
+ titleGeneration?: boolean | undefined;
3728
+ codeMode?: boolean | undefined;
3729
+ highDensityCompaction?: boolean | undefined;
3730
+ responsesTransport?: {
3731
+ transport: "WEBSOCKET";
3732
+ } | {
3733
+ transport: "HTTP";
3734
+ httpVersion: "2" | "1.1";
3735
+ } | undefined;
3736
+ responsesEncoding?: "STANDARD" | "LITE" | undefined;
3737
+ responsesPreviousResponseId?: boolean | undefined;
3676
3738
  }>, {
3677
3739
  [x: string]: any;
3678
3740
  }, {
@@ -3762,6 +3824,7 @@ export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodO
3762
3824
  titleGeneration: z.ZodDefault<z.ZodBoolean>;
3763
3825
  codeMode: z.ZodDefault<z.ZodBoolean>;
3764
3826
  highDensityCompaction: z.ZodDefault<z.ZodBoolean>;
3827
+ fastMode: z.ZodOptional<z.ZodBoolean>;
3765
3828
  hostedWebSearch: z.ZodBoolean;
3766
3829
  responsesTransport: z.ZodOptional<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
3767
3830
  transport: z.ZodLiteral<"WEBSOCKET">;
@@ -3806,6 +3869,7 @@ export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodO
3806
3869
  highDensityCompaction: boolean;
3807
3870
  hostedWebSearch: boolean;
3808
3871
  responsesPreviousResponseId: boolean;
3872
+ fastMode?: boolean | undefined;
3809
3873
  defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3810
3874
  responsesTransport?: {
3811
3875
  transport: "WEBSOCKET";
@@ -3834,6 +3898,7 @@ export declare const marAgentStoredModelConfigurationSchema: z.ZodEffects<z.ZodO
3834
3898
  outputCapabilities: ["TEXT"];
3835
3899
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
3836
3900
  hostedWebSearch: boolean;
3901
+ fastMode?: boolean | undefined;
3837
3902
  defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3838
3903
  titleGeneration?: boolean | undefined;
3839
3904
  codeMode?: boolean | undefined;
@@ -6018,6 +6083,16 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
6018
6083
  gitCommitBlob: boolean;
6019
6084
  maxChunkBytes: number;
6020
6085
  }>>;
6086
+ terminalDirect: z.ZodOptional<z.ZodObject<{
6087
+ apiVersion: z.ZodLiteral<1>;
6088
+ transport: z.ZodLiteral<true>;
6089
+ }, "strict", z.ZodTypeAny, {
6090
+ apiVersion: 1;
6091
+ transport: true;
6092
+ }, {
6093
+ apiVersion: 1;
6094
+ transport: true;
6095
+ }>>;
6021
6096
  git: z.ZodEffects<z.ZodObject<{
6022
6097
  available: z.ZodBoolean;
6023
6098
  reasonCode: z.ZodNullable<z.ZodString>;
@@ -6154,6 +6229,10 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
6154
6229
  [x: string]: any;
6155
6230
  };
6156
6231
  nodeGeneration?: string | undefined;
6232
+ terminalDirect?: {
6233
+ apiVersion: 1;
6234
+ transport: true;
6235
+ } | undefined;
6157
6236
  directTransfer?: {
6158
6237
  apiVersion: 2 | 3;
6159
6238
  transport: boolean;
@@ -6210,6 +6289,10 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
6210
6289
  [x: string]: any;
6211
6290
  };
6212
6291
  nodeGeneration?: string | undefined;
6292
+ terminalDirect?: {
6293
+ apiVersion: 1;
6294
+ transport: true;
6295
+ } | undefined;
6213
6296
  directTransfer?: {
6214
6297
  apiVersion: 2 | 3;
6215
6298
  transport: boolean;
@@ -13561,29 +13644,34 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13561
13644
  itemId?: string | undefined;
13562
13645
  }>, "many">;
13563
13646
  models: z.ZodArray<z.ZodEffects<z.ZodObject<{
13564
- readonly baseUrl: z.ZodString;
13565
- readonly sortOrder: z.ZodNumber;
13566
- readonly apiKeyConfigured: z.ZodOptional<z.ZodBoolean>;
13567
- readonly credentialType: z.ZodOptional<z.ZodEnum<["INLINE_API_KEY", "CREDENTIAL_REF"]>>;
13568
- readonly credentialConfigured: z.ZodOptional<z.ZodBoolean>;
13569
- readonly lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13570
- readonly lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
13571
- readonly lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13572
- readonly id: z.ZodString;
13573
- readonly name: z.ZodString;
13574
- readonly protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
13575
- readonly modelId: z.ZodString;
13576
- readonly contextWindowTokens: z.ZodNumber;
13577
- readonly maxOutputTokens: z.ZodNumber;
13578
- readonly inputCapabilities: z.ZodArray<z.ZodEnum<["TEXT", "IMAGE"]>, "many">;
13579
- readonly outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
13580
- readonly reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
13581
- readonly defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
13582
- readonly titleGeneration: z.ZodDefault<z.ZodBoolean>;
13583
- readonly codeMode: z.ZodDefault<z.ZodBoolean>;
13584
- readonly highDensityCompaction: z.ZodDefault<z.ZodBoolean>;
13585
- readonly hostedWebSearch: z.ZodBoolean;
13586
- readonly responsesTransport: z.ZodOptional<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
13647
+ access: z.ZodOptional<z.ZodNever>;
13648
+ apiKey: z.ZodOptional<z.ZodNever>;
13649
+ credential: z.ZodOptional<z.ZodNever>;
13650
+ imageGeneration: z.ZodOptional<z.ZodNever>;
13651
+ baseUrl: z.ZodString;
13652
+ sortOrder: z.ZodNumber;
13653
+ apiKeyConfigured: z.ZodOptional<z.ZodBoolean>;
13654
+ credentialType: z.ZodOptional<z.ZodEnum<["INLINE_API_KEY", "CREDENTIAL_REF"]>>;
13655
+ credentialConfigured: z.ZodOptional<z.ZodBoolean>;
13656
+ lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13657
+ lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
13658
+ lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13659
+ id: z.ZodString;
13660
+ name: z.ZodString;
13661
+ protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
13662
+ modelId: z.ZodString;
13663
+ contextWindowTokens: z.ZodNumber;
13664
+ maxOutputTokens: z.ZodNumber;
13665
+ inputCapabilities: z.ZodArray<z.ZodEnum<["TEXT", "IMAGE"]>, "many">;
13666
+ outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
13667
+ reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
13668
+ defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
13669
+ titleGeneration: z.ZodDefault<z.ZodBoolean>;
13670
+ codeMode: z.ZodDefault<z.ZodBoolean>;
13671
+ highDensityCompaction: z.ZodDefault<z.ZodBoolean>;
13672
+ fastMode: z.ZodOptional<z.ZodBoolean>;
13673
+ hostedWebSearch: z.ZodBoolean;
13674
+ responsesTransport: z.ZodOptional<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
13587
13675
  transport: z.ZodLiteral<"WEBSOCKET">;
13588
13676
  }, "strict", z.ZodTypeAny, {
13589
13677
  transport: "WEBSOCKET";
@@ -13599,10 +13687,10 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13599
13687
  transport: "HTTP";
13600
13688
  httpVersion: "2" | "1.1";
13601
13689
  }>]>>;
13602
- readonly responsesEncoding: z.ZodOptional<z.ZodEnum<["STANDARD", "LITE"]>>;
13603
- readonly responsesPreviousResponseId: z.ZodDefault<z.ZodBoolean>;
13604
- readonly enabled: z.ZodBoolean;
13605
- }, "strict", z.ZodTypeAny, {
13690
+ responsesEncoding: z.ZodOptional<z.ZodEnum<["STANDARD", "LITE"]>>;
13691
+ responsesPreviousResponseId: z.ZodDefault<z.ZodBoolean>;
13692
+ enabled: z.ZodBoolean;
13693
+ }, "strip", z.ZodTypeAny, {
13606
13694
  id: string;
13607
13695
  name: string;
13608
13696
  modelId: string;
@@ -13620,6 +13708,11 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13620
13708
  highDensityCompaction: boolean;
13621
13709
  hostedWebSearch: boolean;
13622
13710
  responsesPreviousResponseId: boolean;
13711
+ fastMode?: boolean | undefined;
13712
+ credential?: undefined;
13713
+ apiKey?: undefined;
13714
+ access?: undefined;
13715
+ imageGeneration?: undefined;
13623
13716
  apiKeyConfigured?: boolean | undefined;
13624
13717
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
13625
13718
  credentialConfigured?: boolean | undefined;
@@ -13648,6 +13741,11 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13648
13741
  outputCapabilities: ["TEXT"];
13649
13742
  reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
13650
13743
  hostedWebSearch: boolean;
13744
+ fastMode?: boolean | undefined;
13745
+ credential?: undefined;
13746
+ apiKey?: undefined;
13747
+ access?: undefined;
13748
+ imageGeneration?: undefined;
13651
13749
  apiKeyConfigured?: boolean | undefined;
13652
13750
  credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
13653
13751
  credentialConfigured?: boolean | undefined;
@@ -24399,13 +24497,13 @@ export declare const terminalDataFrameSchema: z.ZodDiscriminatedUnion<"type", [z
24399
24497
  data: z.ZodString;
24400
24498
  }, "strip", z.ZodTypeAny, {
24401
24499
  type: "output";
24402
- sequence: number;
24403
24500
  terminalId: string;
24501
+ sequence: number;
24404
24502
  data: string;
24405
24503
  }, {
24406
24504
  type: "output";
24407
- sequence: number;
24408
24505
  terminalId: string;
24506
+ sequence: number;
24409
24507
  data: string;
24410
24508
  }>, z.ZodObject<{
24411
24509
  type: z.ZodLiteral<"close">;
@@ -24422,12 +24520,12 @@ export declare const terminalDataFrameSchema: z.ZodDiscriminatedUnion<"type", [z
24422
24520
  exitCode: z.ZodNullable<z.ZodNumber>;
24423
24521
  }, "strip", z.ZodTypeAny, {
24424
24522
  type: "exit";
24425
- exitCode: number | null;
24426
24523
  terminalId: string;
24524
+ exitCode: number | null;
24427
24525
  }, {
24428
24526
  type: "exit";
24429
- exitCode: number | null;
24430
24527
  terminalId: string;
24528
+ exitCode: number | null;
24431
24529
  }>, z.ZodObject<{
24432
24530
  type: z.ZodLiteral<"error">;
24433
24531
  terminalId: z.ZodString;
@@ -24452,30 +24550,30 @@ export declare const terminalAttachTicketSchema: z.ZodEffects<z.ZodObject<{
24452
24550
  }, "strip", z.ZodTypeAny, {
24453
24551
  nodeId: string;
24454
24552
  expiresAt: number;
24553
+ terminalId: string;
24455
24554
  issuedAt: number;
24456
24555
  ticket: string;
24457
- terminalId: string;
24458
24556
  userSessionFingerprint: string;
24459
24557
  }, {
24460
24558
  nodeId: string;
24461
24559
  expiresAt: number;
24560
+ terminalId: string;
24462
24561
  issuedAt: number;
24463
24562
  ticket: string;
24464
- terminalId: string;
24465
24563
  userSessionFingerprint: string;
24466
24564
  }>, {
24467
24565
  nodeId: string;
24468
24566
  expiresAt: number;
24567
+ terminalId: string;
24469
24568
  issuedAt: number;
24470
24569
  ticket: string;
24471
- terminalId: string;
24472
24570
  userSessionFingerprint: string;
24473
24571
  }, {
24474
24572
  nodeId: string;
24475
24573
  expiresAt: number;
24574
+ terminalId: string;
24476
24575
  issuedAt: number;
24477
24576
  ticket: string;
24478
- terminalId: string;
24479
24577
  userSessionFingerprint: string;
24480
24578
  }>;
24481
24579
  export type TerminalAttachTicket = z.infer<typeof terminalAttachTicketSchema>;
@@ -25514,7 +25612,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
25514
25612
  previousPath?: string | undefined;
25515
25613
  }>;
25516
25614
  export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
25517
- 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"]>;
25615
+ 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", "terminal.direct.preflight", "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"]>;
25518
25616
  export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
25519
25617
  /**
25520
25618
  * A small, explicit envelope keeps WebSocket messages independently parseable
package/dist/index.js CHANGED
@@ -1,10 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  import { workspaceDirectTransferCapabilitySchema } from './direct-transfer.js';
3
+ import { terminalDirectCapabilitySchema } from './terminal-direct.js';
3
4
  export * from './enterprise.js';
4
5
  export * from './skill.js';
5
6
  export * from './mcp.js';
6
7
  export * from './git-identity.js';
7
8
  export * from './direct-transfer.js';
9
+ export * from './terminal-direct.js';
8
10
  export const healthStatusSchema = z.object({
9
11
  status: z.literal('ok')
10
12
  });
@@ -25,6 +27,7 @@ export const marAgentRuntimeCredentialCapabilitySchema = z
25
27
  .object({
26
28
  apiVersion: z.literal(1),
27
29
  websocket: z.boolean(),
30
+ fastMode: z.boolean().optional(),
28
31
  httpVersions: z
29
32
  .array(runtimeCredentialHttpVersionSchema)
30
33
  .min(1)
@@ -294,7 +297,8 @@ export const nodeCapabilitiesSchema = z
294
297
  conversationHosting: conversationHostingCapabilitySchema.optional(),
295
298
  computerUse: computerUseCapabilitySchema.optional(),
296
299
  marAgentRuntimeCredentials: marAgentRuntimeCredentialCapabilitySchema.optional(),
297
- workspaceDirectTransfer: workspaceDirectTransferCapabilitySchema.optional()
300
+ workspaceDirectTransfer: workspaceDirectTransferCapabilitySchema.optional(),
301
+ terminalDirect: terminalDirectCapabilitySchema.optional()
298
302
  })
299
303
  .superRefine((capabilities, context) => {
300
304
  if (capabilities.platform !== 'linux' &&
@@ -665,6 +669,7 @@ const marAgentModelShape = {
665
669
  titleGeneration: z.boolean().default(false),
666
670
  codeMode: z.boolean().default(false),
667
671
  highDensityCompaction: z.boolean().default(false),
672
+ fastMode: z.boolean().optional(),
668
673
  hostedWebSearch: z.boolean(),
669
674
  responsesTransport: marAgentResponsesTransportSchema.optional(),
670
675
  responsesEncoding: z.enum(['STANDARD', 'LITE']).optional(),
@@ -701,6 +706,8 @@ function refineMarAgentModel(schema) {
701
706
  context.addIssue({ code: 'custom', message: 'Responses continuation requires Responses' });
702
707
  if (value.protocol !== 'OPENAI_RESPONSES' && value.responsesEncoding !== undefined)
703
708
  context.addIssue({ code: 'custom', message: 'Responses encoding requires OpenAI Responses' });
709
+ if (value.protocol !== 'OPENAI_RESPONSES' && value.fastMode === true)
710
+ context.addIssue({ code: 'custom', message: 'Fast mode requires OpenAI Responses' });
704
711
  });
705
712
  }
706
713
  const marAgentModelSummaryShape = {
@@ -714,7 +721,15 @@ const marAgentModelSummaryShape = {
714
721
  lastTestStatus: z.enum(['UNVERIFIED', 'SUCCEEDED', 'FAILED']).nullable().optional(),
715
722
  lastTestCode: z.string().max(80).nullable().optional()
716
723
  };
717
- export const marAgentNodeModelSummarySchema = refineMarAgentModel(z.object(marAgentModelSummaryShape).strict());
724
+ export const marAgentNodeModelSummarySchema = refineMarAgentModel(z
725
+ .object({
726
+ ...marAgentModelSummaryShape,
727
+ access: z.never().optional(),
728
+ apiKey: z.never().optional(),
729
+ credential: z.never().optional(),
730
+ imageGeneration: z.never().optional()
731
+ })
732
+ .strip());
718
733
  export const marAgentModelSummarySchema = refineMarAgentModel(z
719
734
  .object({
720
735
  ...marAgentModelSummaryShape,
@@ -729,7 +744,7 @@ export const marAgentRuntimeModelConfigurationSchema = refineMarAgentModel(z
729
744
  credential: marAgentRuntimeCredentialSchema.optional(),
730
745
  imageGeneration: marAgentImageGenerationSchema.optional()
731
746
  })
732
- .strict()).superRefine((configuration, context) => {
747
+ .strip()).superRefine((configuration, context) => {
733
748
  if ((configuration.apiKey === undefined) === (configuration.credential === undefined))
734
749
  context.addIssue({
735
750
  code: 'custom',
@@ -1340,6 +1355,7 @@ export const nodeWorkbenchCapabilitiesSchema = z.object({
1340
1355
  maxSearchResults: z.number().int().positive().max(10000)
1341
1356
  }),
1342
1357
  directTransfer: workspaceDirectTransferCapabilitySchema.optional(),
1358
+ terminalDirect: terminalDirectCapabilitySchema.optional(),
1343
1359
  git: capabilitySchemaWith({
1344
1360
  supportsCurrentChanges: z.boolean(),
1345
1361
  supportsTurnChanges: z.boolean(),
@@ -2615,6 +2631,7 @@ export const workbenchNodeOperationSchema = z.enum([
2615
2631
  'terminal.list',
2616
2632
  'terminal.close',
2617
2633
  'terminal.attach.authorize',
2634
+ 'terminal.direct.preflight',
2618
2635
  'node.upgrade.request',
2619
2636
  'node.upgrade.cancel',
2620
2637
  'node.skills.inspect',
@@ -0,0 +1,248 @@
1
+ import { z } from 'zod';
2
+ export declare const terminalDirectCapabilitySchema: z.ZodObject<{
3
+ apiVersion: z.ZodLiteral<1>;
4
+ transport: z.ZodLiteral<true>;
5
+ }, "strict", z.ZodTypeAny, {
6
+ apiVersion: 1;
7
+ transport: true;
8
+ }, {
9
+ apiVersion: 1;
10
+ transport: true;
11
+ }>;
12
+ export declare const terminalDirectBrowserMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13
+ type: z.ZodLiteral<"terminal.direct.prepare">;
14
+ requestId: z.ZodString;
15
+ nodeId: z.ZodString;
16
+ nodeGeneration: z.ZodString;
17
+ transportSessionId: z.ZodString;
18
+ terminalId: z.ZodString;
19
+ workspaceId: z.ZodOptional<z.ZodString>;
20
+ afterSequence: z.ZodNumber;
21
+ readonly: z.ZodBoolean;
22
+ takeover: z.ZodBoolean;
23
+ }, "strict", z.ZodTypeAny, {
24
+ type: "terminal.direct.prepare";
25
+ requestId: string;
26
+ nodeId: string;
27
+ nodeGeneration: string;
28
+ transportSessionId: string;
29
+ terminalId: string;
30
+ afterSequence: number;
31
+ readonly: boolean;
32
+ takeover: boolean;
33
+ workspaceId?: string | undefined;
34
+ }, {
35
+ type: "terminal.direct.prepare";
36
+ requestId: string;
37
+ nodeId: string;
38
+ nodeGeneration: string;
39
+ transportSessionId: string;
40
+ terminalId: string;
41
+ afterSequence: number;
42
+ readonly: boolean;
43
+ takeover: boolean;
44
+ workspaceId?: string | undefined;
45
+ }>, z.ZodObject<{
46
+ type: z.ZodLiteral<"terminal.direct.heartbeat">;
47
+ directSessionId: z.ZodString;
48
+ }, "strict", z.ZodTypeAny, {
49
+ type: "terminal.direct.heartbeat";
50
+ directSessionId: string;
51
+ }, {
52
+ type: "terminal.direct.heartbeat";
53
+ directSessionId: string;
54
+ }>, z.ZodObject<{
55
+ type: z.ZodLiteral<"terminal.direct.cancel">;
56
+ directSessionId: z.ZodString;
57
+ }, "strict", z.ZodTypeAny, {
58
+ type: "terminal.direct.cancel";
59
+ directSessionId: string;
60
+ }, {
61
+ type: "terminal.direct.cancel";
62
+ directSessionId: string;
63
+ }>]>;
64
+ export type TerminalDirectBrowserMessage = z.infer<typeof terminalDirectBrowserMessageSchema>;
65
+ export declare const terminalDirectServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
66
+ type: z.ZodLiteral<"terminal.direct.prepared">;
67
+ requestId: z.ZodString;
68
+ directSessionId: z.ZodString;
69
+ grant: z.ZodString;
70
+ openExpiresAt: z.ZodNumber;
71
+ expiresAt: z.ZodNumber;
72
+ }, "strict", z.ZodTypeAny, {
73
+ type: "terminal.direct.prepared";
74
+ requestId: string;
75
+ directSessionId: string;
76
+ expiresAt: number;
77
+ grant: string;
78
+ openExpiresAt: number;
79
+ }, {
80
+ type: "terminal.direct.prepared";
81
+ requestId: string;
82
+ directSessionId: string;
83
+ expiresAt: number;
84
+ grant: string;
85
+ openExpiresAt: number;
86
+ }>, z.ZodObject<{
87
+ type: z.ZodLiteral<"terminal.direct.heartbeat">;
88
+ directSessionId: z.ZodString;
89
+ expiresAt: z.ZodNumber;
90
+ }, "strict", z.ZodTypeAny, {
91
+ type: "terminal.direct.heartbeat";
92
+ directSessionId: string;
93
+ expiresAt: number;
94
+ }, {
95
+ type: "terminal.direct.heartbeat";
96
+ directSessionId: string;
97
+ expiresAt: number;
98
+ }>, z.ZodObject<{
99
+ type: z.ZodLiteral<"terminal.direct.closed">;
100
+ directSessionId: z.ZodString;
101
+ code: z.ZodString;
102
+ }, "strict", z.ZodTypeAny, {
103
+ code: string;
104
+ type: "terminal.direct.closed";
105
+ directSessionId: string;
106
+ }, {
107
+ code: string;
108
+ type: "terminal.direct.closed";
109
+ directSessionId: string;
110
+ }>, z.ZodObject<{
111
+ type: z.ZodLiteral<"terminal.direct.error">;
112
+ requestId: z.ZodOptional<z.ZodString>;
113
+ directSessionId: z.ZodOptional<z.ZodString>;
114
+ code: z.ZodString;
115
+ message: z.ZodString;
116
+ }, "strict", z.ZodTypeAny, {
117
+ code: string;
118
+ message: string;
119
+ type: "terminal.direct.error";
120
+ requestId?: string | undefined;
121
+ directSessionId?: string | undefined;
122
+ }, {
123
+ code: string;
124
+ message: string;
125
+ type: "terminal.direct.error";
126
+ requestId?: string | undefined;
127
+ directSessionId?: string | undefined;
128
+ }>]>;
129
+ export type TerminalDirectServerMessage = z.infer<typeof terminalDirectServerMessageSchema>;
130
+ export declare const terminalDirectNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
131
+ type: z.ZodLiteral<"terminal.direct.prepare">;
132
+ directSessionId: z.ZodString;
133
+ transportSessionId: z.ZodString;
134
+ workbenchConnectionId: z.ZodString;
135
+ nodeGeneration: z.ZodString;
136
+ terminalId: z.ZodString;
137
+ workspaceId: z.ZodOptional<z.ZodString>;
138
+ afterSequence: z.ZodNumber;
139
+ readonly: z.ZodBoolean;
140
+ takeover: z.ZodBoolean;
141
+ grant: z.ZodString;
142
+ browserFingerprint: z.ZodString;
143
+ nodeFingerprint: z.ZodString;
144
+ openExpiresAt: z.ZodNumber;
145
+ expiresAt: z.ZodNumber;
146
+ }, "strict", z.ZodTypeAny, {
147
+ type: "terminal.direct.prepare";
148
+ nodeGeneration: string;
149
+ transportSessionId: string;
150
+ directSessionId: string;
151
+ expiresAt: number;
152
+ grant: string;
153
+ openExpiresAt: number;
154
+ workbenchConnectionId: string;
155
+ browserFingerprint: string;
156
+ nodeFingerprint: string;
157
+ terminalId: string;
158
+ afterSequence: number;
159
+ readonly: boolean;
160
+ takeover: boolean;
161
+ workspaceId?: string | undefined;
162
+ }, {
163
+ type: "terminal.direct.prepare";
164
+ nodeGeneration: string;
165
+ transportSessionId: string;
166
+ directSessionId: string;
167
+ expiresAt: number;
168
+ grant: string;
169
+ openExpiresAt: number;
170
+ workbenchConnectionId: string;
171
+ browserFingerprint: string;
172
+ nodeFingerprint: string;
173
+ terminalId: string;
174
+ afterSequence: number;
175
+ readonly: boolean;
176
+ takeover: boolean;
177
+ workspaceId?: string | undefined;
178
+ }>, z.ZodObject<{
179
+ type: z.ZodLiteral<"terminal.direct.heartbeat">;
180
+ directSessionId: z.ZodString;
181
+ expiresAt: z.ZodNumber;
182
+ }, "strict", z.ZodTypeAny, {
183
+ type: "terminal.direct.heartbeat";
184
+ directSessionId: string;
185
+ expiresAt: number;
186
+ }, {
187
+ type: "terminal.direct.heartbeat";
188
+ directSessionId: string;
189
+ expiresAt: number;
190
+ }>, z.ZodObject<{
191
+ type: z.ZodLiteral<"terminal.direct.cancel">;
192
+ directSessionId: z.ZodString;
193
+ code: z.ZodString;
194
+ }, "strict", z.ZodTypeAny, {
195
+ code: string;
196
+ type: "terminal.direct.cancel";
197
+ directSessionId: string;
198
+ }, {
199
+ code: string;
200
+ type: "terminal.direct.cancel";
201
+ directSessionId: string;
202
+ }>]>;
203
+ export type TerminalDirectNodeCommand = z.infer<typeof terminalDirectNodeCommandSchema>;
204
+ export declare const terminalDirectNodeEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
205
+ type: z.ZodLiteral<"terminal.direct.ready">;
206
+ directSessionId: z.ZodString;
207
+ }, "strict", z.ZodTypeAny, {
208
+ type: "terminal.direct.ready";
209
+ directSessionId: string;
210
+ }, {
211
+ type: "terminal.direct.ready";
212
+ directSessionId: string;
213
+ }>, z.ZodObject<{
214
+ type: z.ZodLiteral<"terminal.direct.takeover">;
215
+ directSessionId: z.ZodString;
216
+ }, "strict", z.ZodTypeAny, {
217
+ type: "terminal.direct.takeover";
218
+ directSessionId: string;
219
+ }, {
220
+ type: "terminal.direct.takeover";
221
+ directSessionId: string;
222
+ }>]>;
223
+ export declare const terminalDirectOpenFrameSchema: z.ZodObject<{
224
+ type: z.ZodLiteral<"OPEN">;
225
+ directSessionId: z.ZodString;
226
+ grant: z.ZodString;
227
+ }, "strict", z.ZodTypeAny, {
228
+ type: "OPEN";
229
+ directSessionId: string;
230
+ grant: string;
231
+ }, {
232
+ type: "OPEN";
233
+ directSessionId: string;
234
+ grant: string;
235
+ }>;
236
+ export declare const terminalDirectAttachedFrameSchema: z.ZodObject<{
237
+ type: z.ZodLiteral<"ATTACHED">;
238
+ terminalId: z.ZodString;
239
+ afterSequence: z.ZodNumber;
240
+ }, "strict", z.ZodTypeAny, {
241
+ type: "ATTACHED";
242
+ terminalId: string;
243
+ afterSequence: number;
244
+ }, {
245
+ type: "ATTACHED";
246
+ terminalId: string;
247
+ afterSequence: number;
248
+ }>;
@@ -0,0 +1,103 @@
1
+ import { z } from 'zod';
2
+ const id = z
3
+ .string()
4
+ .min(8)
5
+ .max(128)
6
+ .regex(/^[A-Za-z0-9_-]+$/u);
7
+ const resourceId = z.string().min(1).max(512);
8
+ const expiresAt = z.number().int().positive();
9
+ const code = z.string().regex(/^[A-Z][A-Z0-9_]{0,127}$/u);
10
+ const fingerprint = z.string().regex(/^sha-256(?: [A-F0-9]{2}(?::[A-F0-9]{2}){31})$/u);
11
+ export const terminalDirectCapabilitySchema = z
12
+ .object({ apiVersion: z.literal(1), transport: z.literal(true) })
13
+ .strict();
14
+ export const terminalDirectBrowserMessageSchema = z.discriminatedUnion('type', [
15
+ z
16
+ .object({
17
+ type: z.literal('terminal.direct.prepare'),
18
+ requestId: id,
19
+ nodeId: resourceId,
20
+ nodeGeneration: id,
21
+ transportSessionId: id,
22
+ terminalId: resourceId,
23
+ workspaceId: resourceId.optional(),
24
+ afterSequence: z.number().int().nonnegative(),
25
+ readonly: z.boolean(),
26
+ takeover: z.boolean()
27
+ })
28
+ .strict(),
29
+ z.object({ type: z.literal('terminal.direct.heartbeat'), directSessionId: id }).strict(),
30
+ z.object({ type: z.literal('terminal.direct.cancel'), directSessionId: id }).strict()
31
+ ]);
32
+ export const terminalDirectServerMessageSchema = z.discriminatedUnion('type', [
33
+ z
34
+ .object({
35
+ type: z.literal('terminal.direct.prepared'),
36
+ requestId: id,
37
+ directSessionId: id,
38
+ grant: z.string().min(32).max(4096),
39
+ openExpiresAt: expiresAt,
40
+ expiresAt
41
+ })
42
+ .strict(),
43
+ z
44
+ .object({
45
+ type: z.literal('terminal.direct.heartbeat'),
46
+ directSessionId: id,
47
+ expiresAt
48
+ })
49
+ .strict(),
50
+ z.object({ type: z.literal('terminal.direct.closed'), directSessionId: id, code }).strict(),
51
+ z
52
+ .object({
53
+ type: z.literal('terminal.direct.error'),
54
+ requestId: id.optional(),
55
+ directSessionId: id.optional(),
56
+ code,
57
+ message: z.string().min(1).max(1000)
58
+ })
59
+ .strict()
60
+ ]);
61
+ export const terminalDirectNodeCommandSchema = z.discriminatedUnion('type', [
62
+ z
63
+ .object({
64
+ type: z.literal('terminal.direct.prepare'),
65
+ directSessionId: id,
66
+ transportSessionId: id,
67
+ workbenchConnectionId: id,
68
+ nodeGeneration: id,
69
+ terminalId: resourceId,
70
+ workspaceId: resourceId.optional(),
71
+ afterSequence: z.number().int().nonnegative(),
72
+ readonly: z.boolean(),
73
+ takeover: z.boolean(),
74
+ grant: z.string().min(32).max(4096),
75
+ browserFingerprint: fingerprint,
76
+ nodeFingerprint: fingerprint,
77
+ openExpiresAt: expiresAt,
78
+ expiresAt
79
+ })
80
+ .strict(),
81
+ z
82
+ .object({ type: z.literal('terminal.direct.heartbeat'), directSessionId: id, expiresAt })
83
+ .strict(),
84
+ z.object({ type: z.literal('terminal.direct.cancel'), directSessionId: id, code }).strict()
85
+ ]);
86
+ export const terminalDirectNodeEventSchema = z.discriminatedUnion('type', [
87
+ z.object({ type: z.literal('terminal.direct.ready'), directSessionId: id }).strict(),
88
+ z.object({ type: z.literal('terminal.direct.takeover'), directSessionId: id }).strict()
89
+ ]);
90
+ export const terminalDirectOpenFrameSchema = z
91
+ .object({
92
+ type: z.literal('OPEN'),
93
+ directSessionId: id,
94
+ grant: z.string().min(32).max(4096)
95
+ })
96
+ .strict();
97
+ export const terminalDirectAttachedFrameSchema = z
98
+ .object({
99
+ type: z.literal('ATTACHED'),
100
+ terminalId: resourceId,
101
+ afterSequence: z.number().int().nonnegative()
102
+ })
103
+ .strict();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.9.108",
3
+ "version": "0.9.110",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",