@myagentroam/protocol 0.11.24 → 0.11.26

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
@@ -1620,6 +1620,8 @@ export declare const workspaceSessionCleanupResultSchema: z.ZodEffects<z.ZodObje
1620
1620
  deleted: z.ZodNumber;
1621
1621
  skipped: z.ZodNumber;
1622
1622
  failed: z.ZodNumber;
1623
+ timedOut: z.ZodOptional<z.ZodLiteral<true>>;
1624
+ remaining: z.ZodOptional<z.ZodNumber>;
1623
1625
  deletedByRunner: z.ZodObject<{
1624
1626
  codex: z.ZodOptional<z.ZodNumber>;
1625
1627
  'claude-code': z.ZodOptional<z.ZodNumber>;
@@ -1646,6 +1648,8 @@ export declare const workspaceSessionCleanupResultSchema: z.ZodEffects<z.ZodObje
1646
1648
  'claude-code'?: number | undefined;
1647
1649
  opencode?: number | undefined;
1648
1650
  };
1651
+ timedOut?: true | undefined;
1652
+ remaining?: number | undefined;
1649
1653
  }, {
1650
1654
  failed: number;
1651
1655
  skipped: number;
@@ -1656,6 +1660,8 @@ export declare const workspaceSessionCleanupResultSchema: z.ZodEffects<z.ZodObje
1656
1660
  'claude-code'?: number | undefined;
1657
1661
  opencode?: number | undefined;
1658
1662
  };
1663
+ timedOut?: true | undefined;
1664
+ remaining?: number | undefined;
1659
1665
  }>, {
1660
1666
  failed: number;
1661
1667
  skipped: number;
@@ -1666,6 +1672,8 @@ export declare const workspaceSessionCleanupResultSchema: z.ZodEffects<z.ZodObje
1666
1672
  'claude-code'?: number | undefined;
1667
1673
  opencode?: number | undefined;
1668
1674
  };
1675
+ timedOut?: true | undefined;
1676
+ remaining?: number | undefined;
1669
1677
  }, {
1670
1678
  failed: number;
1671
1679
  skipped: number;
@@ -1676,6 +1684,8 @@ export declare const workspaceSessionCleanupResultSchema: z.ZodEffects<z.ZodObje
1676
1684
  'claude-code'?: number | undefined;
1677
1685
  opencode?: number | undefined;
1678
1686
  };
1687
+ timedOut?: true | undefined;
1688
+ remaining?: number | undefined;
1679
1689
  }>;
1680
1690
  export type WorkspaceSessionCleanupResult = z.infer<typeof workspaceSessionCleanupResultSchema>;
1681
1691
  /** Account-level quota visibility is intentionally separate from a Runner's execution availability. */
@@ -7657,6 +7667,7 @@ export declare const recentRunSchema: z.ZodObject<{
7657
7667
  userMessage: z.ZodOptional<z.ZodString>;
7658
7668
  runner: z.ZodEnum<["codex", "claude-code", "opencode", "mar-agent"]>;
7659
7669
  status: z.ZodEnum<["STARTING", "RUNNING", "CANCELLING", "SUCCEEDED", "FAILED", "CANCELLED", "INTERRUPTED"]>;
7670
+ interruptionReason: z.ZodOptional<z.ZodLiteral<"USER_STOP">>;
7660
7671
  createdAt: z.ZodNumber;
7661
7672
  startedAt: z.ZodNumber;
7662
7673
  completedAt: z.ZodNullable<z.ZodNumber>;
@@ -7680,6 +7691,7 @@ export declare const recentRunSchema: z.ZodObject<{
7680
7691
  userMessage?: string | undefined;
7681
7692
  workspaceName?: string | undefined;
7682
7693
  sessionGroup?: "MAIN" | "CHILD" | undefined;
7694
+ interruptionReason?: "USER_STOP" | undefined;
7683
7695
  }, {
7684
7696
  status: "SUCCEEDED" | "FAILED" | "CANCELLED" | "STARTING" | "RUNNING" | "CANCELLING" | "INTERRUPTED";
7685
7697
  sessionId: string;
@@ -7697,6 +7709,7 @@ export declare const recentRunSchema: z.ZodObject<{
7697
7709
  userMessage?: string | undefined;
7698
7710
  workspaceName?: string | undefined;
7699
7711
  sessionGroup?: "MAIN" | "CHILD" | undefined;
7712
+ interruptionReason?: "USER_STOP" | undefined;
7700
7713
  }>;
7701
7714
  export type RecentRun = z.infer<typeof recentRunSchema>;
7702
7715
  export declare const recentRunProjectionSchema: z.ZodObject<Omit<{
@@ -7710,6 +7723,7 @@ export declare const recentRunProjectionSchema: z.ZodObject<Omit<{
7710
7723
  userMessage: z.ZodOptional<z.ZodString>;
7711
7724
  runner: z.ZodEnum<["codex", "claude-code", "opencode", "mar-agent"]>;
7712
7725
  status: z.ZodEnum<["STARTING", "RUNNING", "CANCELLING", "SUCCEEDED", "FAILED", "CANCELLED", "INTERRUPTED"]>;
7726
+ interruptionReason: z.ZodOptional<z.ZodLiteral<"USER_STOP">>;
7713
7727
  createdAt: z.ZodNumber;
7714
7728
  startedAt: z.ZodNumber;
7715
7729
  completedAt: z.ZodNullable<z.ZodNumber>;
@@ -7735,6 +7749,7 @@ export declare const recentRunProjectionSchema: z.ZodObject<Omit<{
7735
7749
  sortAt: number;
7736
7750
  userMessage?: string | undefined;
7737
7751
  sessionGroup?: "MAIN" | "CHILD" | undefined;
7752
+ interruptionReason?: "USER_STOP" | undefined;
7738
7753
  }, {
7739
7754
  status: "SUCCEEDED" | "FAILED" | "CANCELLED" | "STARTING" | "RUNNING" | "CANCELLING" | "INTERRUPTED";
7740
7755
  sessionId: string;
@@ -7752,6 +7767,7 @@ export declare const recentRunProjectionSchema: z.ZodObject<Omit<{
7752
7767
  sortAt: number;
7753
7768
  userMessage?: string | undefined;
7754
7769
  sessionGroup?: "MAIN" | "CHILD" | undefined;
7770
+ interruptionReason?: "USER_STOP" | undefined;
7755
7771
  }>;
7756
7772
  export type RecentRunProjection = z.infer<typeof recentRunProjectionSchema>;
7757
7773
  export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
@@ -7767,6 +7783,7 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
7767
7783
  userMessage: z.ZodOptional<z.ZodString>;
7768
7784
  runner: z.ZodEnum<["codex", "claude-code", "opencode", "mar-agent"]>;
7769
7785
  status: z.ZodEnum<["STARTING", "RUNNING", "CANCELLING", "SUCCEEDED", "FAILED", "CANCELLED", "INTERRUPTED"]>;
7786
+ interruptionReason: z.ZodOptional<z.ZodLiteral<"USER_STOP">>;
7770
7787
  createdAt: z.ZodNumber;
7771
7788
  startedAt: z.ZodNumber;
7772
7789
  completedAt: z.ZodNullable<z.ZodNumber>;
@@ -7792,6 +7809,7 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
7792
7809
  sortAt: number;
7793
7810
  userMessage?: string | undefined;
7794
7811
  sessionGroup?: "MAIN" | "CHILD" | undefined;
7812
+ interruptionReason?: "USER_STOP" | undefined;
7795
7813
  }, {
7796
7814
  status: "SUCCEEDED" | "FAILED" | "CANCELLED" | "STARTING" | "RUNNING" | "CANCELLING" | "INTERRUPTED";
7797
7815
  sessionId: string;
@@ -7809,6 +7827,7 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
7809
7827
  sortAt: number;
7810
7828
  userMessage?: string | undefined;
7811
7829
  sessionGroup?: "MAIN" | "CHILD" | undefined;
7830
+ interruptionReason?: "USER_STOP" | undefined;
7812
7831
  }>;
7813
7832
  }, "strip", z.ZodTypeAny, {
7814
7833
  kind: "UPDATE";
@@ -7829,6 +7848,7 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
7829
7848
  sortAt: number;
7830
7849
  userMessage?: string | undefined;
7831
7850
  sessionGroup?: "MAIN" | "CHILD" | undefined;
7851
+ interruptionReason?: "USER_STOP" | undefined;
7832
7852
  };
7833
7853
  }, {
7834
7854
  kind: "UPDATE";
@@ -7849,6 +7869,7 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
7849
7869
  sortAt: number;
7850
7870
  userMessage?: string | undefined;
7851
7871
  sessionGroup?: "MAIN" | "CHILD" | undefined;
7872
+ interruptionReason?: "USER_STOP" | undefined;
7852
7873
  };
7853
7874
  }>, z.ZodObject<{
7854
7875
  kind: z.ZodLiteral<"SNAPSHOT">;
@@ -7863,6 +7884,7 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
7863
7884
  userMessage: z.ZodOptional<z.ZodString>;
7864
7885
  runner: z.ZodEnum<["codex", "claude-code", "opencode", "mar-agent"]>;
7865
7886
  status: z.ZodEnum<["STARTING", "RUNNING", "CANCELLING", "SUCCEEDED", "FAILED", "CANCELLED", "INTERRUPTED"]>;
7887
+ interruptionReason: z.ZodOptional<z.ZodLiteral<"USER_STOP">>;
7866
7888
  createdAt: z.ZodNumber;
7867
7889
  startedAt: z.ZodNumber;
7868
7890
  completedAt: z.ZodNullable<z.ZodNumber>;
@@ -7888,6 +7910,7 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
7888
7910
  sortAt: number;
7889
7911
  userMessage?: string | undefined;
7890
7912
  sessionGroup?: "MAIN" | "CHILD" | undefined;
7913
+ interruptionReason?: "USER_STOP" | undefined;
7891
7914
  }, {
7892
7915
  status: "SUCCEEDED" | "FAILED" | "CANCELLED" | "STARTING" | "RUNNING" | "CANCELLING" | "INTERRUPTED";
7893
7916
  sessionId: string;
@@ -7905,6 +7928,7 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
7905
7928
  sortAt: number;
7906
7929
  userMessage?: string | undefined;
7907
7930
  sessionGroup?: "MAIN" | "CHILD" | undefined;
7931
+ interruptionReason?: "USER_STOP" | undefined;
7908
7932
  }>, "many">;
7909
7933
  }, "strip", z.ZodTypeAny, {
7910
7934
  kind: "SNAPSHOT";
@@ -7925,6 +7949,7 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
7925
7949
  sortAt: number;
7926
7950
  userMessage?: string | undefined;
7927
7951
  sessionGroup?: "MAIN" | "CHILD" | undefined;
7952
+ interruptionReason?: "USER_STOP" | undefined;
7928
7953
  }[];
7929
7954
  }, {
7930
7955
  kind: "SNAPSHOT";
@@ -7945,6 +7970,7 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
7945
7970
  sortAt: number;
7946
7971
  userMessage?: string | undefined;
7947
7972
  sessionGroup?: "MAIN" | "CHILD" | undefined;
7973
+ interruptionReason?: "USER_STOP" | undefined;
7948
7974
  }[];
7949
7975
  }>]>;
7950
7976
  export type RecentRunProjectionMessage = z.infer<typeof recentRunProjectionMessageSchema>;
@@ -32181,35 +32207,85 @@ export declare const hostedConversationRollbackInputSchema: z.ZodObject<{
32181
32207
  conversationId: z.ZodString;
32182
32208
  } & {
32183
32209
  turnId: z.ZodString;
32210
+ itemId: z.ZodOptional<z.ZodString>;
32184
32211
  boundary: z.ZodNullable<z.ZodString>;
32185
32212
  }, "strict", z.ZodTypeAny, {
32186
32213
  conversationId: string;
32187
32214
  turnId: string;
32188
32215
  boundary: string | null;
32216
+ itemId?: string | undefined;
32189
32217
  }, {
32190
32218
  conversationId: string;
32191
32219
  turnId: string;
32192
32220
  boundary: string | null;
32221
+ itemId?: string | undefined;
32193
32222
  }>;
32194
32223
  export type HostedConversationRollbackInput = z.infer<typeof hostedConversationRollbackInputSchema>;
32224
+ export declare const imagePreviewOptionsSchema: z.ZodObject<{
32225
+ maxWidth: z.ZodNumber;
32226
+ maxHeight: z.ZodNumber;
32227
+ }, "strict", z.ZodTypeAny, {
32228
+ maxWidth: number;
32229
+ maxHeight: number;
32230
+ }, {
32231
+ maxWidth: number;
32232
+ maxHeight: number;
32233
+ }>;
32234
+ export type ImagePreviewOptions = z.infer<typeof imagePreviewOptionsSchema>;
32195
32235
  export declare const runImageReadInputSchema: z.ZodUnion<[z.ZodObject<{
32196
32236
  runId: z.ZodString;
32197
32237
  imageIndex: z.ZodNumber;
32238
+ preview: z.ZodOptional<z.ZodObject<{
32239
+ maxWidth: z.ZodNumber;
32240
+ maxHeight: z.ZodNumber;
32241
+ }, "strict", z.ZodTypeAny, {
32242
+ maxWidth: number;
32243
+ maxHeight: number;
32244
+ }, {
32245
+ maxWidth: number;
32246
+ maxHeight: number;
32247
+ }>>;
32198
32248
  }, "strict", z.ZodTypeAny, {
32199
32249
  runId: string;
32200
32250
  imageIndex: number;
32251
+ preview?: {
32252
+ maxWidth: number;
32253
+ maxHeight: number;
32254
+ } | undefined;
32201
32255
  }, {
32202
32256
  runId: string;
32203
32257
  imageIndex: number;
32258
+ preview?: {
32259
+ maxWidth: number;
32260
+ maxHeight: number;
32261
+ } | undefined;
32204
32262
  }>, z.ZodObject<{
32205
32263
  runId: z.ZodString;
32206
32264
  imageRef: z.ZodString;
32265
+ preview: z.ZodOptional<z.ZodObject<{
32266
+ maxWidth: z.ZodNumber;
32267
+ maxHeight: z.ZodNumber;
32268
+ }, "strict", z.ZodTypeAny, {
32269
+ maxWidth: number;
32270
+ maxHeight: number;
32271
+ }, {
32272
+ maxWidth: number;
32273
+ maxHeight: number;
32274
+ }>>;
32207
32275
  }, "strict", z.ZodTypeAny, {
32208
32276
  runId: string;
32209
32277
  imageRef: string;
32278
+ preview?: {
32279
+ maxWidth: number;
32280
+ maxHeight: number;
32281
+ } | undefined;
32210
32282
  }, {
32211
32283
  runId: string;
32212
32284
  imageRef: string;
32285
+ preview?: {
32286
+ maxWidth: number;
32287
+ maxHeight: number;
32288
+ } | undefined;
32213
32289
  }>]>;
32214
32290
  export type RunImageReadInput = z.infer<typeof runImageReadInputSchema>;
32215
32291
  export declare const modelResourceReadInputSchema: z.ZodUnion<[z.ZodObject<{
@@ -32257,14 +32333,32 @@ export declare const hostedConversationImageReadInputSchema: z.ZodObject<{
32257
32333
  } & {
32258
32334
  runId: z.ZodString;
32259
32335
  imageRef: z.ZodString;
32336
+ preview: z.ZodOptional<z.ZodObject<{
32337
+ maxWidth: z.ZodNumber;
32338
+ maxHeight: z.ZodNumber;
32339
+ }, "strict", z.ZodTypeAny, {
32340
+ maxWidth: number;
32341
+ maxHeight: number;
32342
+ }, {
32343
+ maxWidth: number;
32344
+ maxHeight: number;
32345
+ }>>;
32260
32346
  }, "strict", z.ZodTypeAny, {
32261
32347
  runId: string;
32262
32348
  conversationId: string;
32263
32349
  imageRef: string;
32350
+ preview?: {
32351
+ maxWidth: number;
32352
+ maxHeight: number;
32353
+ } | undefined;
32264
32354
  }, {
32265
32355
  runId: string;
32266
32356
  conversationId: string;
32267
32357
  imageRef: string;
32358
+ preview?: {
32359
+ maxWidth: number;
32360
+ maxHeight: number;
32361
+ } | undefined;
32268
32362
  }>;
32269
32363
  export type HostedConversationImageReadInput = z.infer<typeof hostedConversationImageReadInputSchema>;
32270
32364
  export declare const hostedConversationDeleteResultSchema: z.ZodObject<{
@@ -32453,6 +32547,16 @@ export declare const hostedConversationFileReadInputSchema: z.ZodObject<{
32453
32547
  conversationId: z.ZodString;
32454
32548
  } & {
32455
32549
  fileId: z.ZodString;
32550
+ preview: z.ZodOptional<z.ZodObject<{
32551
+ maxWidth: z.ZodNumber;
32552
+ maxHeight: z.ZodNumber;
32553
+ }, "strict", z.ZodTypeAny, {
32554
+ maxWidth: number;
32555
+ maxHeight: number;
32556
+ }, {
32557
+ maxWidth: number;
32558
+ maxHeight: number;
32559
+ }>>;
32456
32560
  offset: z.ZodOptional<z.ZodNumber>;
32457
32561
  limit: z.ZodOptional<z.ZodNumber>;
32458
32562
  }, "strict", z.ZodTypeAny, {
@@ -32460,11 +32564,19 @@ export declare const hostedConversationFileReadInputSchema: z.ZodObject<{
32460
32564
  fileId: string;
32461
32565
  offset?: number | undefined;
32462
32566
  limit?: number | undefined;
32567
+ preview?: {
32568
+ maxWidth: number;
32569
+ maxHeight: number;
32570
+ } | undefined;
32463
32571
  }, {
32464
32572
  conversationId: string;
32465
32573
  fileId: string;
32466
32574
  offset?: number | undefined;
32467
32575
  limit?: number | undefined;
32576
+ preview?: {
32577
+ maxWidth: number;
32578
+ maxHeight: number;
32579
+ } | undefined;
32468
32580
  }>;
32469
32581
  export type HostedConversationFileReadInput = z.infer<typeof hostedConversationFileReadInputSchema>;
32470
32582
  export declare const hostedConversationFileDeleteInputSchema: z.ZodObject<{
@@ -43377,14 +43489,14 @@ export declare const workspaceContentMatchSchema: z.ZodObject<{
43377
43489
  preview: z.ZodString;
43378
43490
  }, "strip", z.ZodTypeAny, {
43379
43491
  path: string;
43492
+ preview: string;
43380
43493
  line: number;
43381
43494
  column: number;
43382
- preview: string;
43383
43495
  }, {
43384
43496
  path: string;
43497
+ preview: string;
43385
43498
  line: number;
43386
43499
  column: number;
43387
- preview: string;
43388
43500
  }>;
43389
43501
  export declare const workspaceContentSearchSchema: z.ZodObject<{
43390
43502
  matches: z.ZodArray<z.ZodObject<{
@@ -43394,14 +43506,14 @@ export declare const workspaceContentSearchSchema: z.ZodObject<{
43394
43506
  preview: z.ZodString;
43395
43507
  }, "strip", z.ZodTypeAny, {
43396
43508
  path: string;
43509
+ preview: string;
43397
43510
  line: number;
43398
43511
  column: number;
43399
- preview: string;
43400
43512
  }, {
43401
43513
  path: string;
43514
+ preview: string;
43402
43515
  line: number;
43403
43516
  column: number;
43404
- preview: string;
43405
43517
  }>, "many">;
43406
43518
  engine: z.ZodEnum<["RIPGREP", "GREP", "POWERSHELL", "NODE"]>;
43407
43519
  truncated: z.ZodBoolean;
@@ -43410,9 +43522,9 @@ export declare const workspaceContentSearchSchema: z.ZodObject<{
43410
43522
  truncated: boolean;
43411
43523
  matches: {
43412
43524
  path: string;
43525
+ preview: string;
43413
43526
  line: number;
43414
43527
  column: number;
43415
- preview: string;
43416
43528
  }[];
43417
43529
  engine: "NODE" | "RIPGREP" | "GREP" | "POWERSHELL";
43418
43530
  skippedFiles: number;
@@ -43420,9 +43532,9 @@ export declare const workspaceContentSearchSchema: z.ZodObject<{
43420
43532
  truncated: boolean;
43421
43533
  matches: {
43422
43534
  path: string;
43535
+ preview: string;
43423
43536
  line: number;
43424
43537
  column: number;
43425
- preview: string;
43426
43538
  }[];
43427
43539
  engine: "NODE" | "RIPGREP" | "GREP" | "POWERSHELL";
43428
43540
  skippedFiles: number;
@@ -43533,14 +43645,14 @@ export declare const workspaceSymbolReferenceSchema: z.ZodObject<{
43533
43645
  preview: z.ZodString;
43534
43646
  }, "strip", z.ZodTypeAny, {
43535
43647
  path: string;
43648
+ preview: string;
43536
43649
  line: number;
43537
43650
  column: number;
43538
- preview: string;
43539
43651
  }, {
43540
43652
  path: string;
43653
+ preview: string;
43541
43654
  line: number;
43542
43655
  column: number;
43543
- preview: string;
43544
43656
  }>;
43545
43657
  export declare const workspaceSymbolDefinitionSchema: z.ZodObject<{
43546
43658
  state: z.ZodEnum<["UNAVAILABLE", "BUILDING", "READY", "STALE", "FAILED"]>;
@@ -43570,14 +43682,14 @@ export declare const workspaceSymbolDefinitionSchema: z.ZodObject<{
43570
43682
  preview: z.ZodString;
43571
43683
  }, "strip", z.ZodTypeAny, {
43572
43684
  path: string;
43685
+ preview: string;
43573
43686
  line: number;
43574
43687
  column: number;
43575
- preview: string;
43576
43688
  }, {
43577
43689
  path: string;
43690
+ preview: string;
43578
43691
  line: number;
43579
43692
  column: number;
43580
- preview: string;
43581
43693
  }>, "many">>;
43582
43694
  referenceTruncated: z.ZodDefault<z.ZodBoolean>;
43583
43695
  paths: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -43604,9 +43716,9 @@ export declare const workspaceSymbolDefinitionSchema: z.ZodObject<{
43604
43716
  }, "strip", z.ZodTypeAny, {
43605
43717
  references: {
43606
43718
  path: string;
43719
+ preview: string;
43607
43720
  line: number;
43608
43721
  column: number;
43609
- preview: string;
43610
43722
  }[];
43611
43723
  state: "FAILED" | "READY" | "UNAVAILABLE" | "BUILDING" | "STALE";
43612
43724
  truncated: boolean;
@@ -43638,9 +43750,9 @@ export declare const workspaceSymbolDefinitionSchema: z.ZodObject<{
43638
43750
  }[];
43639
43751
  references?: {
43640
43752
  path: string;
43753
+ preview: string;
43641
43754
  line: number;
43642
43755
  column: number;
43643
- preview: string;
43644
43756
  }[] | undefined;
43645
43757
  paths?: {
43646
43758
  path: string;
@@ -44433,7 +44545,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
44433
44545
  previousPath?: string | undefined;
44434
44546
  }>;
44435
44547
  export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
44436
- 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.schedule.get", "session.schedule.list", "session.schedule.agent.save", "session.cli.context", "session.graph", "session.goal.get", "session.schedule.save", "session.schedule.remove", "session.schedule.proposal.resolve", "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.tool-resource.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "mar-agent.model.test", "prompt-completion.context", "prompt-completion.generate", "prompt-completion.cancel", "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", "model.resource.read", "terminal.open", "terminal.command.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.model-options", "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.tool-resource.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"]>;
44548
+ 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.schedule.get", "session.schedule.list", "session.schedule.agent.save", "session.cli.context", "session.graph", "session.goal.get", "session.schedule.save", "session.schedule.remove", "session.schedule.proposal.resolve", "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.tool-resource.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "mar-agent.model.test", "prompt-completion.context", "prompt-completion.generate", "prompt-completion.cancel", "workspace.files.list", "workspace.file.read", "workspace.file.write", "workspace.file.content.read", "workspace.file.direct.metadata", "workspace.files.search", "workspace.files.mutate", "workspace.files.reveal", "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", "model.resource.read", "terminal.open", "terminal.command.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.model-options", "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.tool-resource.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"]>;
44437
44549
  export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
44438
44550
  /**
44439
44551
  * A small, explicit envelope keeps WebSocket messages independently parseable
@@ -44544,11 +44656,11 @@ export declare function publicErrorMessage(code: string): string;
44544
44656
  /** Builds the bounded public error shape shared by Node and Server boundaries. */
44545
44657
  export declare function safePublicError(error: unknown, fallback?: string): PublicError;
44546
44658
  export declare const nodeErrorSchema: z.ZodObject<{
44547
- code: z.ZodEnum<["PROTOCOL_VERSION_UNSUPPORTED", "MESSAGE_TYPE_UNKNOWN", "MESSAGE_INVALID", "NODE_UNAUTHENTICATED", "NODE_DISABLED", "REGISTRATION_TOKEN_INVALID", "WORKSPACE_INVALID", "RUN_NOT_FOUND", "RUN_STATE_INVALID", "RUN_LOST", "APPROVAL_NOT_FOUND", "APPROVAL_EXPIRED", "APPROVAL_ALREADY_DECIDED", "APPROVAL_ALREADY_EXISTS", "WORKBENCH_PROTOCOL_UNSUPPORTED", "CAPABILITY_UNAVAILABLE", "CAPABILITY_VERSION_UNSUPPORTED", "CAPABILITY_STALE", "EVENT_CURSOR_INVALID", "EVENT_CURSOR_GAP", "ITEM_REVISION_CONFLICT", "RUNNER_PROFILE_INVALID", "RUNNER_COMMAND_UNSUPPORTED", "FILE_NOT_FOUND", "FILE_NOT_REGULAR", "FILE_TOO_LARGE", "FILE_ENCODING_UNSUPPORTED", "FILE_PATH_ESCAPE", "DIRECTORY_CURSOR_INVALID", "FILE_SEARCH_LIMIT_EXCEEDED", "GIT_CHANGE_RESTORE_UNAVAILABLE", "TERMINAL_UNAVAILABLE", "TERMINAL_LIMIT_REACHED", "TERMINAL_NOT_FOUND", "TERMINAL_ATTACH_CONFLICT", "TERMINAL_REPLAY_GAP", "TERMINAL_DATA_CHANNEL_UNAVAILABLE", "SKILL_TARGET_OFFLINE", "SKILL_TARGET_LIMIT_EXCEEDED", "SKILL_NAME_CONFLICT", "SKILL_PATH_UNSAFE", "SKILL_CONTENT_INVALID", "SKILL_INSTALL_PARTIAL", "SKILL_INSTALL_FAILED", "SKILL_INSTALL_VERSION_UNKNOWN", "SKILL_INSTALL_RECOVERY_REQUIRED", "SKILL_INSTALL_INVALID_LINK", "NODE_SKILL_LINK_UNAVAILABLE", "WORKSPACE_SKILL_GIT_EXCLUDE_FAILED", "WORKSPACE_SKILL_TRACKED_CONFIRM_REQUIRED", "CONVERSATION_HOSTING_UNAVAILABLE", "CONVERSATION_HOSTING_STORAGE_FULL", "CONVERSATION_TEMPLATE_NOT_FOUND", "CONVERSATION_TEMPLATE_NOT_AUTHORIZED", "CONVERSATION_TEMPLATE_NOT_PUBLISHED", "CONVERSATION_TEMPLATE_REVISION_CONFLICT", "CONVERSATION_TEMPLATE_VERSION_CORRUPTED", "HOSTED_CONVERSATION_NOT_FOUND", "HOSTED_CONVERSATION_NOT_AUTHORIZED", "HOSTED_CONVERSATION_UPGRADE_FAILED", "HOSTED_CONVERSATION_QUOTA_EXCEEDED", "HOSTED_CONVERSATION_FILE_INVALID", "HOSTED_CONVERSATION_FILE_NOT_FOUND", "HOSTED_CONVERSATION_FILE_CONFLICT", "SANDBOX_UNAVAILABLE", "SANDBOX_POLICY_INVALID", "SANDBOX_RESOURCE_LIMIT", "INTERNAL_ERROR"]>;
44659
+ code: z.ZodEnum<["PROTOCOL_VERSION_UNSUPPORTED", "MESSAGE_TYPE_UNKNOWN", "MESSAGE_INVALID", "NODE_UNAUTHENTICATED", "NODE_DISABLED", "REGISTRATION_TOKEN_INVALID", "WORKSPACE_INVALID", "RUN_NOT_FOUND", "RUN_STATE_INVALID", "RUN_LOST", "APPROVAL_NOT_FOUND", "APPROVAL_EXPIRED", "APPROVAL_ALREADY_DECIDED", "APPROVAL_ALREADY_EXISTS", "WORKBENCH_PROTOCOL_UNSUPPORTED", "CAPABILITY_UNAVAILABLE", "CAPABILITY_VERSION_UNSUPPORTED", "CAPABILITY_STALE", "EVENT_CURSOR_INVALID", "EVENT_CURSOR_GAP", "ITEM_REVISION_CONFLICT", "RUNNER_PROFILE_INVALID", "RUNNER_COMMAND_UNSUPPORTED", "FILE_NOT_FOUND", "FILE_NOT_REGULAR", "FILE_TOO_LARGE", "FILE_ENCODING_UNSUPPORTED", "FILE_PATH_ESCAPE", "FILE_REVEAL_INVALID", "FILE_MANAGER_UNAVAILABLE", "DIRECTORY_CURSOR_INVALID", "FILE_SEARCH_LIMIT_EXCEEDED", "GIT_CHANGE_RESTORE_UNAVAILABLE", "TERMINAL_UNAVAILABLE", "TERMINAL_LIMIT_REACHED", "TERMINAL_NOT_FOUND", "TERMINAL_ATTACH_CONFLICT", "TERMINAL_REPLAY_GAP", "TERMINAL_DATA_CHANNEL_UNAVAILABLE", "SKILL_TARGET_OFFLINE", "SKILL_TARGET_LIMIT_EXCEEDED", "SKILL_NAME_CONFLICT", "SKILL_PATH_UNSAFE", "SKILL_CONTENT_INVALID", "SKILL_INSTALL_PARTIAL", "SKILL_INSTALL_FAILED", "SKILL_INSTALL_VERSION_UNKNOWN", "SKILL_INSTALL_RECOVERY_REQUIRED", "SKILL_INSTALL_INVALID_LINK", "NODE_SKILL_LINK_UNAVAILABLE", "WORKSPACE_SKILL_GIT_EXCLUDE_FAILED", "WORKSPACE_SKILL_TRACKED_CONFIRM_REQUIRED", "CONVERSATION_HOSTING_UNAVAILABLE", "CONVERSATION_HOSTING_STORAGE_FULL", "CONVERSATION_TEMPLATE_NOT_FOUND", "CONVERSATION_TEMPLATE_NOT_AUTHORIZED", "CONVERSATION_TEMPLATE_NOT_PUBLISHED", "CONVERSATION_TEMPLATE_REVISION_CONFLICT", "CONVERSATION_TEMPLATE_VERSION_CORRUPTED", "HOSTED_CONVERSATION_NOT_FOUND", "HOSTED_CONVERSATION_NOT_AUTHORIZED", "HOSTED_CONVERSATION_UPGRADE_FAILED", "HOSTED_CONVERSATION_QUOTA_EXCEEDED", "HOSTED_CONVERSATION_FILE_INVALID", "HOSTED_CONVERSATION_FILE_NOT_FOUND", "HOSTED_CONVERSATION_FILE_CONFLICT", "SANDBOX_UNAVAILABLE", "SANDBOX_POLICY_INVALID", "SANDBOX_RESOURCE_LIMIT", "INTERNAL_ERROR"]>;
44548
44660
  }, "strip", z.ZodTypeAny, {
44549
- code: "INTERNAL_ERROR" | "PROTOCOL_VERSION_UNSUPPORTED" | "MESSAGE_TYPE_UNKNOWN" | "MESSAGE_INVALID" | "NODE_UNAUTHENTICATED" | "NODE_DISABLED" | "REGISTRATION_TOKEN_INVALID" | "WORKSPACE_INVALID" | "RUN_NOT_FOUND" | "RUN_STATE_INVALID" | "RUN_LOST" | "APPROVAL_NOT_FOUND" | "APPROVAL_EXPIRED" | "APPROVAL_ALREADY_DECIDED" | "APPROVAL_ALREADY_EXISTS" | "WORKBENCH_PROTOCOL_UNSUPPORTED" | "CAPABILITY_UNAVAILABLE" | "CAPABILITY_VERSION_UNSUPPORTED" | "CAPABILITY_STALE" | "EVENT_CURSOR_INVALID" | "EVENT_CURSOR_GAP" | "ITEM_REVISION_CONFLICT" | "RUNNER_PROFILE_INVALID" | "RUNNER_COMMAND_UNSUPPORTED" | "FILE_NOT_FOUND" | "FILE_NOT_REGULAR" | "FILE_TOO_LARGE" | "FILE_ENCODING_UNSUPPORTED" | "FILE_PATH_ESCAPE" | "DIRECTORY_CURSOR_INVALID" | "FILE_SEARCH_LIMIT_EXCEEDED" | "GIT_CHANGE_RESTORE_UNAVAILABLE" | "TERMINAL_UNAVAILABLE" | "TERMINAL_LIMIT_REACHED" | "TERMINAL_NOT_FOUND" | "TERMINAL_ATTACH_CONFLICT" | "TERMINAL_REPLAY_GAP" | "TERMINAL_DATA_CHANNEL_UNAVAILABLE" | "SKILL_TARGET_OFFLINE" | "SKILL_TARGET_LIMIT_EXCEEDED" | "SKILL_NAME_CONFLICT" | "SKILL_PATH_UNSAFE" | "SKILL_CONTENT_INVALID" | "SKILL_INSTALL_PARTIAL" | "SKILL_INSTALL_FAILED" | "SKILL_INSTALL_VERSION_UNKNOWN" | "SKILL_INSTALL_RECOVERY_REQUIRED" | "SKILL_INSTALL_INVALID_LINK" | "NODE_SKILL_LINK_UNAVAILABLE" | "WORKSPACE_SKILL_GIT_EXCLUDE_FAILED" | "WORKSPACE_SKILL_TRACKED_CONFIRM_REQUIRED" | "CONVERSATION_HOSTING_UNAVAILABLE" | "CONVERSATION_HOSTING_STORAGE_FULL" | "CONVERSATION_TEMPLATE_NOT_FOUND" | "CONVERSATION_TEMPLATE_NOT_AUTHORIZED" | "CONVERSATION_TEMPLATE_NOT_PUBLISHED" | "CONVERSATION_TEMPLATE_REVISION_CONFLICT" | "CONVERSATION_TEMPLATE_VERSION_CORRUPTED" | "HOSTED_CONVERSATION_NOT_FOUND" | "HOSTED_CONVERSATION_NOT_AUTHORIZED" | "HOSTED_CONVERSATION_UPGRADE_FAILED" | "HOSTED_CONVERSATION_QUOTA_EXCEEDED" | "HOSTED_CONVERSATION_FILE_INVALID" | "HOSTED_CONVERSATION_FILE_NOT_FOUND" | "HOSTED_CONVERSATION_FILE_CONFLICT" | "SANDBOX_UNAVAILABLE" | "SANDBOX_POLICY_INVALID" | "SANDBOX_RESOURCE_LIMIT";
44661
+ code: "FILE_REVEAL_INVALID" | "FILE_MANAGER_UNAVAILABLE" | "INTERNAL_ERROR" | "PROTOCOL_VERSION_UNSUPPORTED" | "MESSAGE_TYPE_UNKNOWN" | "MESSAGE_INVALID" | "NODE_UNAUTHENTICATED" | "NODE_DISABLED" | "REGISTRATION_TOKEN_INVALID" | "WORKSPACE_INVALID" | "RUN_NOT_FOUND" | "RUN_STATE_INVALID" | "RUN_LOST" | "APPROVAL_NOT_FOUND" | "APPROVAL_EXPIRED" | "APPROVAL_ALREADY_DECIDED" | "APPROVAL_ALREADY_EXISTS" | "WORKBENCH_PROTOCOL_UNSUPPORTED" | "CAPABILITY_UNAVAILABLE" | "CAPABILITY_VERSION_UNSUPPORTED" | "CAPABILITY_STALE" | "EVENT_CURSOR_INVALID" | "EVENT_CURSOR_GAP" | "ITEM_REVISION_CONFLICT" | "RUNNER_PROFILE_INVALID" | "RUNNER_COMMAND_UNSUPPORTED" | "FILE_NOT_FOUND" | "FILE_NOT_REGULAR" | "FILE_TOO_LARGE" | "FILE_ENCODING_UNSUPPORTED" | "FILE_PATH_ESCAPE" | "DIRECTORY_CURSOR_INVALID" | "FILE_SEARCH_LIMIT_EXCEEDED" | "GIT_CHANGE_RESTORE_UNAVAILABLE" | "TERMINAL_UNAVAILABLE" | "TERMINAL_LIMIT_REACHED" | "TERMINAL_NOT_FOUND" | "TERMINAL_ATTACH_CONFLICT" | "TERMINAL_REPLAY_GAP" | "TERMINAL_DATA_CHANNEL_UNAVAILABLE" | "SKILL_TARGET_OFFLINE" | "SKILL_TARGET_LIMIT_EXCEEDED" | "SKILL_NAME_CONFLICT" | "SKILL_PATH_UNSAFE" | "SKILL_CONTENT_INVALID" | "SKILL_INSTALL_PARTIAL" | "SKILL_INSTALL_FAILED" | "SKILL_INSTALL_VERSION_UNKNOWN" | "SKILL_INSTALL_RECOVERY_REQUIRED" | "SKILL_INSTALL_INVALID_LINK" | "NODE_SKILL_LINK_UNAVAILABLE" | "WORKSPACE_SKILL_GIT_EXCLUDE_FAILED" | "WORKSPACE_SKILL_TRACKED_CONFIRM_REQUIRED" | "CONVERSATION_HOSTING_UNAVAILABLE" | "CONVERSATION_HOSTING_STORAGE_FULL" | "CONVERSATION_TEMPLATE_NOT_FOUND" | "CONVERSATION_TEMPLATE_NOT_AUTHORIZED" | "CONVERSATION_TEMPLATE_NOT_PUBLISHED" | "CONVERSATION_TEMPLATE_REVISION_CONFLICT" | "CONVERSATION_TEMPLATE_VERSION_CORRUPTED" | "HOSTED_CONVERSATION_NOT_FOUND" | "HOSTED_CONVERSATION_NOT_AUTHORIZED" | "HOSTED_CONVERSATION_UPGRADE_FAILED" | "HOSTED_CONVERSATION_QUOTA_EXCEEDED" | "HOSTED_CONVERSATION_FILE_INVALID" | "HOSTED_CONVERSATION_FILE_NOT_FOUND" | "HOSTED_CONVERSATION_FILE_CONFLICT" | "SANDBOX_UNAVAILABLE" | "SANDBOX_POLICY_INVALID" | "SANDBOX_RESOURCE_LIMIT";
44550
44662
  }, {
44551
- code: "INTERNAL_ERROR" | "PROTOCOL_VERSION_UNSUPPORTED" | "MESSAGE_TYPE_UNKNOWN" | "MESSAGE_INVALID" | "NODE_UNAUTHENTICATED" | "NODE_DISABLED" | "REGISTRATION_TOKEN_INVALID" | "WORKSPACE_INVALID" | "RUN_NOT_FOUND" | "RUN_STATE_INVALID" | "RUN_LOST" | "APPROVAL_NOT_FOUND" | "APPROVAL_EXPIRED" | "APPROVAL_ALREADY_DECIDED" | "APPROVAL_ALREADY_EXISTS" | "WORKBENCH_PROTOCOL_UNSUPPORTED" | "CAPABILITY_UNAVAILABLE" | "CAPABILITY_VERSION_UNSUPPORTED" | "CAPABILITY_STALE" | "EVENT_CURSOR_INVALID" | "EVENT_CURSOR_GAP" | "ITEM_REVISION_CONFLICT" | "RUNNER_PROFILE_INVALID" | "RUNNER_COMMAND_UNSUPPORTED" | "FILE_NOT_FOUND" | "FILE_NOT_REGULAR" | "FILE_TOO_LARGE" | "FILE_ENCODING_UNSUPPORTED" | "FILE_PATH_ESCAPE" | "DIRECTORY_CURSOR_INVALID" | "FILE_SEARCH_LIMIT_EXCEEDED" | "GIT_CHANGE_RESTORE_UNAVAILABLE" | "TERMINAL_UNAVAILABLE" | "TERMINAL_LIMIT_REACHED" | "TERMINAL_NOT_FOUND" | "TERMINAL_ATTACH_CONFLICT" | "TERMINAL_REPLAY_GAP" | "TERMINAL_DATA_CHANNEL_UNAVAILABLE" | "SKILL_TARGET_OFFLINE" | "SKILL_TARGET_LIMIT_EXCEEDED" | "SKILL_NAME_CONFLICT" | "SKILL_PATH_UNSAFE" | "SKILL_CONTENT_INVALID" | "SKILL_INSTALL_PARTIAL" | "SKILL_INSTALL_FAILED" | "SKILL_INSTALL_VERSION_UNKNOWN" | "SKILL_INSTALL_RECOVERY_REQUIRED" | "SKILL_INSTALL_INVALID_LINK" | "NODE_SKILL_LINK_UNAVAILABLE" | "WORKSPACE_SKILL_GIT_EXCLUDE_FAILED" | "WORKSPACE_SKILL_TRACKED_CONFIRM_REQUIRED" | "CONVERSATION_HOSTING_UNAVAILABLE" | "CONVERSATION_HOSTING_STORAGE_FULL" | "CONVERSATION_TEMPLATE_NOT_FOUND" | "CONVERSATION_TEMPLATE_NOT_AUTHORIZED" | "CONVERSATION_TEMPLATE_NOT_PUBLISHED" | "CONVERSATION_TEMPLATE_REVISION_CONFLICT" | "CONVERSATION_TEMPLATE_VERSION_CORRUPTED" | "HOSTED_CONVERSATION_NOT_FOUND" | "HOSTED_CONVERSATION_NOT_AUTHORIZED" | "HOSTED_CONVERSATION_UPGRADE_FAILED" | "HOSTED_CONVERSATION_QUOTA_EXCEEDED" | "HOSTED_CONVERSATION_FILE_INVALID" | "HOSTED_CONVERSATION_FILE_NOT_FOUND" | "HOSTED_CONVERSATION_FILE_CONFLICT" | "SANDBOX_UNAVAILABLE" | "SANDBOX_POLICY_INVALID" | "SANDBOX_RESOURCE_LIMIT";
44663
+ code: "FILE_REVEAL_INVALID" | "FILE_MANAGER_UNAVAILABLE" | "INTERNAL_ERROR" | "PROTOCOL_VERSION_UNSUPPORTED" | "MESSAGE_TYPE_UNKNOWN" | "MESSAGE_INVALID" | "NODE_UNAUTHENTICATED" | "NODE_DISABLED" | "REGISTRATION_TOKEN_INVALID" | "WORKSPACE_INVALID" | "RUN_NOT_FOUND" | "RUN_STATE_INVALID" | "RUN_LOST" | "APPROVAL_NOT_FOUND" | "APPROVAL_EXPIRED" | "APPROVAL_ALREADY_DECIDED" | "APPROVAL_ALREADY_EXISTS" | "WORKBENCH_PROTOCOL_UNSUPPORTED" | "CAPABILITY_UNAVAILABLE" | "CAPABILITY_VERSION_UNSUPPORTED" | "CAPABILITY_STALE" | "EVENT_CURSOR_INVALID" | "EVENT_CURSOR_GAP" | "ITEM_REVISION_CONFLICT" | "RUNNER_PROFILE_INVALID" | "RUNNER_COMMAND_UNSUPPORTED" | "FILE_NOT_FOUND" | "FILE_NOT_REGULAR" | "FILE_TOO_LARGE" | "FILE_ENCODING_UNSUPPORTED" | "FILE_PATH_ESCAPE" | "DIRECTORY_CURSOR_INVALID" | "FILE_SEARCH_LIMIT_EXCEEDED" | "GIT_CHANGE_RESTORE_UNAVAILABLE" | "TERMINAL_UNAVAILABLE" | "TERMINAL_LIMIT_REACHED" | "TERMINAL_NOT_FOUND" | "TERMINAL_ATTACH_CONFLICT" | "TERMINAL_REPLAY_GAP" | "TERMINAL_DATA_CHANNEL_UNAVAILABLE" | "SKILL_TARGET_OFFLINE" | "SKILL_TARGET_LIMIT_EXCEEDED" | "SKILL_NAME_CONFLICT" | "SKILL_PATH_UNSAFE" | "SKILL_CONTENT_INVALID" | "SKILL_INSTALL_PARTIAL" | "SKILL_INSTALL_FAILED" | "SKILL_INSTALL_VERSION_UNKNOWN" | "SKILL_INSTALL_RECOVERY_REQUIRED" | "SKILL_INSTALL_INVALID_LINK" | "NODE_SKILL_LINK_UNAVAILABLE" | "WORKSPACE_SKILL_GIT_EXCLUDE_FAILED" | "WORKSPACE_SKILL_TRACKED_CONFIRM_REQUIRED" | "CONVERSATION_HOSTING_UNAVAILABLE" | "CONVERSATION_HOSTING_STORAGE_FULL" | "CONVERSATION_TEMPLATE_NOT_FOUND" | "CONVERSATION_TEMPLATE_NOT_AUTHORIZED" | "CONVERSATION_TEMPLATE_NOT_PUBLISHED" | "CONVERSATION_TEMPLATE_REVISION_CONFLICT" | "CONVERSATION_TEMPLATE_VERSION_CORRUPTED" | "HOSTED_CONVERSATION_NOT_FOUND" | "HOSTED_CONVERSATION_NOT_AUTHORIZED" | "HOSTED_CONVERSATION_UPGRADE_FAILED" | "HOSTED_CONVERSATION_QUOTA_EXCEEDED" | "HOSTED_CONVERSATION_FILE_INVALID" | "HOSTED_CONVERSATION_FILE_NOT_FOUND" | "HOSTED_CONVERSATION_FILE_CONFLICT" | "SANDBOX_UNAVAILABLE" | "SANDBOX_POLICY_INVALID" | "SANDBOX_RESOURCE_LIMIT";
44552
44664
  }>;
44553
44665
  export declare function createEnvelope(type: string, payload: unknown, options?: {
44554
44666
  id?: string;
package/dist/index.js CHANGED
@@ -376,6 +376,8 @@ export const workspaceSessionCleanupResultSchema = z
376
376
  deleted: nonnegativeSafeIntegerSchema,
377
377
  skipped: nonnegativeSafeIntegerSchema,
378
378
  failed: nonnegativeSafeIntegerSchema,
379
+ timedOut: z.literal(true).optional(),
380
+ remaining: nonnegativeSafeIntegerSchema.optional(),
379
381
  deletedByRunner: z
380
382
  .object({
381
383
  codex: nonnegativeSafeIntegerSchema,
@@ -388,6 +390,12 @@ export const workspaceSessionCleanupResultSchema = z
388
390
  })
389
391
  .strict()
390
392
  .superRefine((result, context) => {
393
+ if (result.remaining !== undefined && result.timedOut !== true)
394
+ context.addIssue({
395
+ code: 'custom',
396
+ path: ['remaining'],
397
+ message: 'Remaining candidates are only reported for a time-limited cleanup'
398
+ });
391
399
  const runnerDeleted = Object.values(result.deletedByRunner).reduce((total, count) => total + (count ?? 0), 0);
392
400
  if (runnerDeleted !== result.deleted)
393
401
  context.addIssue({
@@ -1386,6 +1394,7 @@ export const recentRunSchema = z.object({
1386
1394
  userMessage: z.string().max(500).optional(),
1387
1395
  runner: runnerNameSchema,
1388
1396
  status: agentRunStatusSchema,
1397
+ interruptionReason: z.literal('USER_STOP').optional(),
1389
1398
  createdAt: z.number().int().nonnegative(),
1390
1399
  startedAt: z.number().int().nonnegative(),
1391
1400
  completedAt: z.number().int().nonnegative().nullable(),
@@ -2515,12 +2524,31 @@ export const hostedConversationHistoryPageSchema = z
2515
2524
  export const hostedConversationRollbackInputSchema = hostedConversationIdInputSchema
2516
2525
  .extend({
2517
2526
  turnId: z.string().min(1).max(128),
2527
+ itemId: z.string().min(1).max(128).optional(),
2518
2528
  boundary: z.string().min(1).max(256).nullable()
2519
2529
  })
2520
2530
  .strict();
2531
+ export const imagePreviewOptionsSchema = z
2532
+ .object({
2533
+ maxWidth: z.number().int().min(1).max(4096),
2534
+ maxHeight: z.number().int().min(1).max(4096)
2535
+ })
2536
+ .strict();
2521
2537
  export const runImageReadInputSchema = z.union([
2522
- z.object({ runId: protocolIdSchema, imageIndex: z.number().int().nonnegative() }).strict(),
2523
- z.object({ runId: protocolIdSchema, imageRef: imageRefSchema }).strict()
2538
+ z
2539
+ .object({
2540
+ runId: protocolIdSchema,
2541
+ imageIndex: z.number().int().nonnegative(),
2542
+ preview: imagePreviewOptionsSchema.optional()
2543
+ })
2544
+ .strict(),
2545
+ z
2546
+ .object({
2547
+ runId: protocolIdSchema,
2548
+ imageRef: imageRefSchema,
2549
+ preview: imagePreviewOptionsSchema.optional()
2550
+ })
2551
+ .strict()
2524
2552
  ]);
2525
2553
  const modelResourceInputSchema = z.object({
2526
2554
  sessionId: protocolIdSchema,
@@ -2535,7 +2563,8 @@ export const modelResourceReadInputSchema = z.union([
2535
2563
  export const hostedConversationImageReadInputSchema = hostedConversationIdInputSchema
2536
2564
  .extend({
2537
2565
  runId: protocolIdSchema,
2538
- imageRef: imageRefSchema
2566
+ imageRef: imageRefSchema,
2567
+ preview: imagePreviewOptionsSchema.optional()
2539
2568
  })
2540
2569
  .strict();
2541
2570
  export const hostedConversationDeleteResultSchema = z
@@ -2614,6 +2643,7 @@ export const hostedConversationFilesSchema = z
2614
2643
  export const hostedConversationFileReadInputSchema = hostedConversationIdInputSchema
2615
2644
  .extend({
2616
2645
  fileId: protocolIdSchema,
2646
+ preview: imagePreviewOptionsSchema.optional(),
2617
2647
  offset: z.number().int().nonnegative().optional(),
2618
2648
  limit: z
2619
2649
  .number()
@@ -3077,6 +3107,7 @@ export const workbenchNodeOperationSchema = z.enum([
3077
3107
  'workspace.file.direct.metadata',
3078
3108
  'workspace.files.search',
3079
3109
  'workspace.files.mutate',
3110
+ 'workspace.files.reveal',
3080
3111
  'workspace.content.search',
3081
3112
  'workspace.symbol.prepare',
3082
3113
  'workspace.symbol.definition',
@@ -3245,6 +3276,8 @@ const FIXED_PUBLIC_ERROR_MESSAGES = {
3245
3276
  TERMINAL_OWNER_REQUIRED: 'This terminal belongs to another user. Open your own terminal.',
3246
3277
  TERMINAL_COMMAND_INVALID: 'The remote command must be non-empty and at most 8 KiB.',
3247
3278
  TERMINAL_COMMAND_START_FAILED: 'The remote command could not be started.',
3279
+ FILE_REVEAL_INVALID: 'The Workspace file manager target is invalid.',
3280
+ FILE_MANAGER_UNAVAILABLE: 'The local file manager is unavailable in this Node desktop session.',
3248
3281
  EXTERNAL_SESSION_ACTIVE: 'This native session is currently active in another client. Try again later.',
3249
3282
  RUNNER_RESUME_FAILED: 'The native session could not be activated. Try again later.',
3250
3283
  SESSION_ACTIVATION_REQUIRED: 'Send a regular message before using this session command.',
@@ -3413,6 +3446,8 @@ export const nodeErrorSchema = z.object({
3413
3446
  'FILE_TOO_LARGE',
3414
3447
  'FILE_ENCODING_UNSUPPORTED',
3415
3448
  'FILE_PATH_ESCAPE',
3449
+ 'FILE_REVEAL_INVALID',
3450
+ 'FILE_MANAGER_UNAVAILABLE',
3416
3451
  'DIRECTORY_CURSOR_INVALID',
3417
3452
  'FILE_SEARCH_LIMIT_EXCEEDED',
3418
3453
  'GIT_CHANGE_RESTORE_UNAVAILABLE',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.11.24",
3
+ "version": "0.11.26",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",