@myagentroam/protocol 0.9.2 → 0.9.3

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
@@ -1159,7 +1159,6 @@ export declare const serverWorkbenchCapabilitiesSchema: z.ZodObject<{
1159
1159
  workbenchProtocolVersion: z.ZodLiteral<1>;
1160
1160
  serverVersion: z.ZodOptional<z.ZodString>;
1161
1161
  conversationItemVersions: z.ZodArray<z.ZodLiteral<1>, "many">;
1162
- supportsWorkspaceActivityStream: z.ZodBoolean;
1163
1162
  supportsSessionDetailStream: z.ZodBoolean;
1164
1163
  supportsTerminalBrowserRelay: z.ZodBoolean;
1165
1164
  supportsTerminalNodeDataChannel: z.ZodBoolean;
@@ -1168,7 +1167,6 @@ export declare const serverWorkbenchCapabilitiesSchema: z.ZodObject<{
1168
1167
  }, "strip", z.ZodTypeAny, {
1169
1168
  workbenchProtocolVersion: 1;
1170
1169
  conversationItemVersions: 1[];
1171
- supportsWorkspaceActivityStream: boolean;
1172
1170
  supportsSessionDetailStream: boolean;
1173
1171
  supportsTerminalBrowserRelay: boolean;
1174
1172
  supportsTerminalNodeDataChannel: boolean;
@@ -1178,7 +1176,6 @@ export declare const serverWorkbenchCapabilitiesSchema: z.ZodObject<{
1178
1176
  }, {
1179
1177
  workbenchProtocolVersion: 1;
1180
1178
  conversationItemVersions: 1[];
1181
- supportsWorkspaceActivityStream: boolean;
1182
1179
  supportsSessionDetailStream: boolean;
1183
1180
  supportsTerminalBrowserRelay: boolean;
1184
1181
  supportsTerminalNodeDataChannel: boolean;
@@ -1199,7 +1196,6 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
1199
1196
  } & {
1200
1197
  itemVersions: z.ZodArray<z.ZodLiteral<1>, "many">;
1201
1198
  supportsSessionCursor: z.ZodBoolean;
1202
- supportsWorkspaceActivityCursor: z.ZodBoolean;
1203
1199
  supportsHistoryPaging: z.ZodBoolean;
1204
1200
  supportsItemFinalSnapshots: z.ZodBoolean;
1205
1201
  maxPageSize: z.ZodNumber;
@@ -1208,7 +1204,6 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
1208
1204
  reasonCode: string | null;
1209
1205
  itemVersions: 1[];
1210
1206
  supportsSessionCursor: boolean;
1211
- supportsWorkspaceActivityCursor: boolean;
1212
1207
  supportsHistoryPaging: boolean;
1213
1208
  supportsItemFinalSnapshots: boolean;
1214
1209
  maxPageSize: number;
@@ -1217,7 +1212,6 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
1217
1212
  reasonCode: string | null;
1218
1213
  itemVersions: 1[];
1219
1214
  supportsSessionCursor: boolean;
1220
- supportsWorkspaceActivityCursor: boolean;
1221
1215
  supportsHistoryPaging: boolean;
1222
1216
  supportsItemFinalSnapshots: boolean;
1223
1217
  maxPageSize: number;
@@ -2637,6 +2631,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2637
2631
  payload: z.ZodObject<{
2638
2632
  code: z.ZodString;
2639
2633
  message: z.ZodString;
2634
+ httpStatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2640
2635
  recoverable: z.ZodBoolean;
2641
2636
  retryAfterMs: z.ZodNullable<z.ZodNumber>;
2642
2637
  }, "strip", z.ZodTypeAny, {
@@ -2644,11 +2639,13 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2644
2639
  message: string;
2645
2640
  recoverable: boolean;
2646
2641
  retryAfterMs: number | null;
2642
+ httpStatus?: number | null | undefined;
2647
2643
  }, {
2648
2644
  code: string;
2649
2645
  message: string;
2650
2646
  recoverable: boolean;
2651
2647
  retryAfterMs: number | null;
2648
+ httpStatus?: number | null | undefined;
2652
2649
  }>;
2653
2650
  }, "strip", z.ZodTypeAny, {
2654
2651
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
@@ -2661,6 +2658,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2661
2658
  message: string;
2662
2659
  recoverable: boolean;
2663
2660
  retryAfterMs: number | null;
2661
+ httpStatus?: number | null | undefined;
2664
2662
  };
2665
2663
  revision: number;
2666
2664
  turnId: string;
@@ -2681,6 +2679,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2681
2679
  message: string;
2682
2680
  recoverable: boolean;
2683
2681
  retryAfterMs: number | null;
2682
+ httpStatus?: number | null | undefined;
2684
2683
  };
2685
2684
  revision: number;
2686
2685
  turnId: string;
@@ -3827,6 +3826,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
3827
3826
  payload: z.ZodObject<{
3828
3827
  code: z.ZodString;
3829
3828
  message: z.ZodString;
3829
+ httpStatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3830
3830
  recoverable: z.ZodBoolean;
3831
3831
  retryAfterMs: z.ZodNullable<z.ZodNumber>;
3832
3832
  }, "strip", z.ZodTypeAny, {
@@ -3834,11 +3834,13 @@ export declare const conversationTurnSchema: z.ZodObject<{
3834
3834
  message: string;
3835
3835
  recoverable: boolean;
3836
3836
  retryAfterMs: number | null;
3837
+ httpStatus?: number | null | undefined;
3837
3838
  }, {
3838
3839
  code: string;
3839
3840
  message: string;
3840
3841
  recoverable: boolean;
3841
3842
  retryAfterMs: number | null;
3843
+ httpStatus?: number | null | undefined;
3842
3844
  }>;
3843
3845
  }, "strip", z.ZodTypeAny, {
3844
3846
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
@@ -3851,6 +3853,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
3851
3853
  message: string;
3852
3854
  recoverable: boolean;
3853
3855
  retryAfterMs: number | null;
3856
+ httpStatus?: number | null | undefined;
3854
3857
  };
3855
3858
  revision: number;
3856
3859
  turnId: string;
@@ -3871,6 +3874,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
3871
3874
  message: string;
3872
3875
  recoverable: boolean;
3873
3876
  retryAfterMs: number | null;
3877
+ httpStatus?: number | null | undefined;
3874
3878
  };
3875
3879
  revision: number;
3876
3880
  turnId: string;
@@ -4284,6 +4288,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
4284
4288
  message: string;
4285
4289
  recoverable: boolean;
4286
4290
  retryAfterMs: number | null;
4291
+ httpStatus?: number | null | undefined;
4287
4292
  };
4288
4293
  revision: number;
4289
4294
  turnId: string;
@@ -4601,6 +4606,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
4601
4606
  message: string;
4602
4607
  recoverable: boolean;
4603
4608
  retryAfterMs: number | null;
4609
+ httpStatus?: number | null | undefined;
4604
4610
  };
4605
4611
  revision: number;
4606
4612
  turnId: string;
@@ -5652,6 +5658,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
5652
5658
  payload: z.ZodObject<{
5653
5659
  code: z.ZodString;
5654
5660
  message: z.ZodString;
5661
+ httpStatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5655
5662
  recoverable: z.ZodBoolean;
5656
5663
  retryAfterMs: z.ZodNullable<z.ZodNumber>;
5657
5664
  }, "strip", z.ZodTypeAny, {
@@ -5659,11 +5666,13 @@ export declare const conversationSegmentSchema: z.ZodObject<{
5659
5666
  message: string;
5660
5667
  recoverable: boolean;
5661
5668
  retryAfterMs: number | null;
5669
+ httpStatus?: number | null | undefined;
5662
5670
  }, {
5663
5671
  code: string;
5664
5672
  message: string;
5665
5673
  recoverable: boolean;
5666
5674
  retryAfterMs: number | null;
5675
+ httpStatus?: number | null | undefined;
5667
5676
  }>;
5668
5677
  }, "strip", z.ZodTypeAny, {
5669
5678
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
@@ -5676,6 +5685,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
5676
5685
  message: string;
5677
5686
  recoverable: boolean;
5678
5687
  retryAfterMs: number | null;
5688
+ httpStatus?: number | null | undefined;
5679
5689
  };
5680
5690
  revision: number;
5681
5691
  turnId: string;
@@ -5696,6 +5706,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
5696
5706
  message: string;
5697
5707
  recoverable: boolean;
5698
5708
  retryAfterMs: number | null;
5709
+ httpStatus?: number | null | undefined;
5699
5710
  };
5700
5711
  revision: number;
5701
5712
  turnId: string;
@@ -6109,6 +6120,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
6109
6120
  message: string;
6110
6121
  recoverable: boolean;
6111
6122
  retryAfterMs: number | null;
6123
+ httpStatus?: number | null | undefined;
6112
6124
  };
6113
6125
  revision: number;
6114
6126
  turnId: string;
@@ -6424,6 +6436,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
6424
6436
  message: string;
6425
6437
  recoverable: boolean;
6426
6438
  retryAfterMs: number | null;
6439
+ httpStatus?: number | null | undefined;
6427
6440
  };
6428
6441
  revision: number;
6429
6442
  turnId: string;
@@ -7475,6 +7488,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
7475
7488
  payload: z.ZodObject<{
7476
7489
  code: z.ZodString;
7477
7490
  message: z.ZodString;
7491
+ httpStatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7478
7492
  recoverable: z.ZodBoolean;
7479
7493
  retryAfterMs: z.ZodNullable<z.ZodNumber>;
7480
7494
  }, "strip", z.ZodTypeAny, {
@@ -7482,11 +7496,13 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
7482
7496
  message: string;
7483
7497
  recoverable: boolean;
7484
7498
  retryAfterMs: number | null;
7499
+ httpStatus?: number | null | undefined;
7485
7500
  }, {
7486
7501
  code: string;
7487
7502
  message: string;
7488
7503
  recoverable: boolean;
7489
7504
  retryAfterMs: number | null;
7505
+ httpStatus?: number | null | undefined;
7490
7506
  }>;
7491
7507
  }, "strip", z.ZodTypeAny, {
7492
7508
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
@@ -7499,6 +7515,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
7499
7515
  message: string;
7500
7516
  recoverable: boolean;
7501
7517
  retryAfterMs: number | null;
7518
+ httpStatus?: number | null | undefined;
7502
7519
  };
7503
7520
  revision: number;
7504
7521
  turnId: string;
@@ -7519,6 +7536,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
7519
7536
  message: string;
7520
7537
  recoverable: boolean;
7521
7538
  retryAfterMs: number | null;
7539
+ httpStatus?: number | null | undefined;
7522
7540
  };
7523
7541
  revision: number;
7524
7542
  turnId: string;
@@ -7932,6 +7950,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
7932
7950
  message: string;
7933
7951
  recoverable: boolean;
7934
7952
  retryAfterMs: number | null;
7953
+ httpStatus?: number | null | undefined;
7935
7954
  };
7936
7955
  revision: number;
7937
7956
  turnId: string;
@@ -8247,6 +8266,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
8247
8266
  message: string;
8248
8267
  recoverable: boolean;
8249
8268
  retryAfterMs: number | null;
8269
+ httpStatus?: number | null | undefined;
8250
8270
  };
8251
8271
  revision: number;
8252
8272
  turnId: string;
@@ -8571,6 +8591,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
8571
8591
  message: string;
8572
8592
  recoverable: boolean;
8573
8593
  retryAfterMs: number | null;
8594
+ httpStatus?: number | null | undefined;
8574
8595
  };
8575
8596
  revision: number;
8576
8597
  turnId: string;
@@ -8894,6 +8915,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
8894
8915
  message: string;
8895
8916
  recoverable: boolean;
8896
8917
  retryAfterMs: number | null;
8918
+ httpStatus?: number | null | undefined;
8897
8919
  };
8898
8920
  revision: number;
8899
8921
  turnId: string;
@@ -9585,7 +9607,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
9585
9607
  previousPath?: string | undefined;
9586
9608
  }>;
9587
9609
  export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
9588
- export declare const workbenchNodeOperationSchema: z.ZodEnum<["node.workbench.capabilities", "runner.usage.status", "runner.usage.read", "workspace.directories.list", "workspace.remove", "workspace.watch", "workspace.unwatch", "session.metadata.update", "session.pin.move", "session.rewind", "session.remove", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.command.execute", "runner.command.execute", "workspace.activity.read", "runner.profiles.list", "runner.defaults.save", "workspace.files.list", "workspace.file.read", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "run.image.read", "terminal.open", "terminal.list", "terminal.close", "terminal.attach.authorize", "node.upgrade.request", "node.upgrade.cancel", "node.skills.inspect", "node.skills.install", "node.skills.remove", "workspace.skills.inspect", "workspace.skills.install", "workspace.skills.remove", "workspace.skills.git-exclude-repair", "skill.install.job.get", "node.mcps.inspect", "node.mcps.install", "node.mcps.remove", "workspace.mcps.inspect", "workspace.mcps.install", "workspace.mcps.remove"]>;
9610
+ export declare const workbenchNodeOperationSchema: z.ZodEnum<["node.workbench.capabilities", "runner.usage.status", "runner.usage.read", "workspace.directories.list", "workspace.remove", "workspace.watch", "workspace.unwatch", "session.metadata.update", "session.pin.move", "session.rewind", "session.remove", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "workspace.files.list", "workspace.file.read", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "run.image.read", "terminal.open", "terminal.list", "terminal.close", "terminal.attach.authorize", "node.upgrade.request", "node.upgrade.cancel", "node.skills.inspect", "node.skills.install", "node.skills.remove", "workspace.skills.inspect", "workspace.skills.install", "workspace.skills.remove", "workspace.skills.git-exclude-repair", "skill.install.job.get", "node.mcps.inspect", "node.mcps.install", "node.mcps.remove", "workspace.mcps.inspect", "workspace.mcps.install", "workspace.mcps.remove"]>;
9589
9611
  export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
9590
9612
  /**
9591
9613
  * A small, explicit envelope keeps WebSocket messages independently parseable
package/dist/index.js CHANGED
@@ -278,7 +278,6 @@ export const serverWorkbenchCapabilitiesSchema = z.object({
278
278
  workbenchProtocolVersion: z.literal(WORKBENCH_PROTOCOL_VERSION),
279
279
  serverVersion: z.string().trim().min(1).max(128).optional(),
280
280
  conversationItemVersions: z.array(z.literal(1)).min(1),
281
- supportsWorkspaceActivityStream: z.boolean(),
282
281
  supportsSessionDetailStream: z.boolean(),
283
282
  supportsTerminalBrowserRelay: z.boolean(),
284
283
  supportsTerminalNodeDataChannel: z.boolean(),
@@ -294,7 +293,6 @@ export const nodeWorkbenchCapabilitiesSchema = z.object({
294
293
  conversation: capabilitySchemaWith({
295
294
  itemVersions: z.array(z.literal(1)),
296
295
  supportsSessionCursor: z.boolean(),
297
- supportsWorkspaceActivityCursor: z.boolean(),
298
296
  supportsHistoryPaging: z.boolean(),
299
297
  supportsItemFinalSnapshots: z.boolean(),
300
298
  maxPageSize: z.number().int().positive().max(500)
@@ -515,7 +513,8 @@ const errorItemSchema = conversationItemBaseSchema.extend({
515
513
  kind: z.literal('error'),
516
514
  payload: z.object({
517
515
  code: z.string().min(1).max(80),
518
- message: z.string().max(5000),
516
+ message: z.string().max(1000),
517
+ httpStatus: z.number().int().min(100).max(599).nullable().optional(),
519
518
  recoverable: z.boolean(),
520
519
  retryAfterMs: z.number().int().nonnegative().nullable()
521
520
  })
@@ -765,7 +764,6 @@ export const workbenchNodeOperationSchema = z.enum([
765
764
  'session.context.read',
766
765
  'session.command.execute',
767
766
  'runner.command.execute',
768
- 'workspace.activity.read',
769
767
  'runner.profiles.list',
770
768
  'runner.defaults.save',
771
769
  'workspace.files.list',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "type": "module",
6
6
  "files": [