@myagentroam/protocol 0.11.30 → 0.11.32

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
@@ -32417,6 +32417,436 @@ export declare const hostedConversationConfigUpdateInputSchema: z.ZodObject<{
32417
32417
  conversationId: string;
32418
32418
  }>;
32419
32419
  export type HostedConversationConfigUpdateInput = z.infer<typeof hostedConversationConfigUpdateInputSchema>;
32420
+ export declare const hostedConversationTemplateSwitchInputSchema: z.ZodObject<{
32421
+ conversationId: z.ZodString;
32422
+ templateId: z.ZodString;
32423
+ expectedTemplateId: z.ZodString;
32424
+ }, "strict", z.ZodTypeAny, {
32425
+ templateId: string;
32426
+ conversationId: string;
32427
+ expectedTemplateId: string;
32428
+ }, {
32429
+ templateId: string;
32430
+ conversationId: string;
32431
+ expectedTemplateId: string;
32432
+ }>;
32433
+ export type HostedConversationTemplateSwitchInput = z.infer<typeof hostedConversationTemplateSwitchInputSchema>;
32434
+ export declare const hostedConversationTemplateSwitchResultSchema: z.ZodEffects<z.ZodObject<{
32435
+ conversation: z.ZodObject<{
32436
+ id: z.ZodString;
32437
+ nodeId: z.ZodString;
32438
+ sessionId: z.ZodString;
32439
+ templateId: z.ZodString;
32440
+ templateName: z.ZodString;
32441
+ activeVersionId: z.ZodString;
32442
+ title: z.ZodString;
32443
+ titleSource: z.ZodDefault<z.ZodEnum<["DEFAULT", "AUTO", "CUSTOM"]>>;
32444
+ pinnedAt: z.ZodNullable<z.ZodNumber>;
32445
+ status: z.ZodLiteral<"ACTIVE">;
32446
+ modelId: z.ZodString;
32447
+ createdAt: z.ZodNumber;
32448
+ updatedAt: z.ZodNumber;
32449
+ lastActivityAt: z.ZodNumber;
32450
+ } & {
32451
+ activity: z.ZodDefault<z.ZodObject<{
32452
+ status: z.ZodEnum<["STARTING", "RUNNING", "CANCELLING", "IDLE"]>;
32453
+ version: z.ZodNumber;
32454
+ updatedAt: z.ZodNumber;
32455
+ }, "strict", z.ZodTypeAny, {
32456
+ status: "IDLE" | "STARTING" | "RUNNING" | "CANCELLING";
32457
+ updatedAt: number;
32458
+ version: number;
32459
+ }, {
32460
+ status: "IDLE" | "STARTING" | "RUNNING" | "CANCELLING";
32461
+ updatedAt: number;
32462
+ version: number;
32463
+ }>>;
32464
+ }, "strict", z.ZodTypeAny, {
32465
+ status: "ACTIVE";
32466
+ sessionId: string;
32467
+ id: string;
32468
+ nodeId: string;
32469
+ createdAt: number;
32470
+ updatedAt: number;
32471
+ modelId: string;
32472
+ templateId: string;
32473
+ title: string;
32474
+ activity: {
32475
+ status: "IDLE" | "STARTING" | "RUNNING" | "CANCELLING";
32476
+ updatedAt: number;
32477
+ version: number;
32478
+ };
32479
+ templateName: string;
32480
+ activeVersionId: string;
32481
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
32482
+ pinnedAt: number | null;
32483
+ lastActivityAt: number;
32484
+ }, {
32485
+ status: "ACTIVE";
32486
+ sessionId: string;
32487
+ id: string;
32488
+ nodeId: string;
32489
+ createdAt: number;
32490
+ updatedAt: number;
32491
+ modelId: string;
32492
+ templateId: string;
32493
+ title: string;
32494
+ templateName: string;
32495
+ activeVersionId: string;
32496
+ pinnedAt: number | null;
32497
+ lastActivityAt: number;
32498
+ activity?: {
32499
+ status: "IDLE" | "STARTING" | "RUNNING" | "CANCELLING";
32500
+ updatedAt: number;
32501
+ version: number;
32502
+ } | undefined;
32503
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
32504
+ }>;
32505
+ template: z.ZodEffects<z.ZodObject<{
32506
+ id: z.ZodString;
32507
+ nodeId: z.ZodString;
32508
+ name: z.ZodString;
32509
+ description: z.ZodString;
32510
+ icon: z.ZodOptional<z.ZodString>;
32511
+ status: z.ZodEnum<["ACTIVE", "ARCHIVED", "DELETED"]>;
32512
+ currentVersionId: z.ZodNullable<z.ZodString>;
32513
+ available: z.ZodBoolean;
32514
+ createdAt: z.ZodNumber;
32515
+ updatedAt: z.ZodNumber;
32516
+ }, "strict", z.ZodTypeAny, {
32517
+ status: "ACTIVE" | "DELETED" | "ARCHIVED";
32518
+ name: string;
32519
+ id: string;
32520
+ nodeId: string;
32521
+ createdAt: number;
32522
+ updatedAt: number;
32523
+ available: boolean;
32524
+ description: string;
32525
+ currentVersionId: string | null;
32526
+ icon?: string | undefined;
32527
+ }, {
32528
+ status: "ACTIVE" | "DELETED" | "ARCHIVED";
32529
+ name: string;
32530
+ id: string;
32531
+ nodeId: string;
32532
+ createdAt: number;
32533
+ updatedAt: number;
32534
+ available: boolean;
32535
+ description: string;
32536
+ currentVersionId: string | null;
32537
+ icon?: string | undefined;
32538
+ }>, {
32539
+ status: "ACTIVE" | "DELETED" | "ARCHIVED";
32540
+ name: string;
32541
+ id: string;
32542
+ nodeId: string;
32543
+ createdAt: number;
32544
+ updatedAt: number;
32545
+ available: boolean;
32546
+ description: string;
32547
+ currentVersionId: string | null;
32548
+ icon?: string | undefined;
32549
+ }, {
32550
+ status: "ACTIVE" | "DELETED" | "ARCHIVED";
32551
+ name: string;
32552
+ id: string;
32553
+ nodeId: string;
32554
+ createdAt: number;
32555
+ updatedAt: number;
32556
+ available: boolean;
32557
+ description: string;
32558
+ currentVersionId: string | null;
32559
+ icon?: string | undefined;
32560
+ }>;
32561
+ models: z.ZodArray<z.ZodEffects<z.ZodObject<{
32562
+ access: z.ZodOptional<z.ZodNever>;
32563
+ apiKey: z.ZodOptional<z.ZodNever>;
32564
+ credential: z.ZodOptional<z.ZodNever>;
32565
+ imageGeneration: z.ZodOptional<z.ZodNever>;
32566
+ baseUrl: z.ZodString;
32567
+ sortOrder: z.ZodNumber;
32568
+ apiKeyConfigured: z.ZodOptional<z.ZodBoolean>;
32569
+ credentialType: z.ZodOptional<z.ZodEnum<["INLINE_API_KEY", "CREDENTIAL_REF"]>>;
32570
+ credentialConfigured: z.ZodOptional<z.ZodBoolean>;
32571
+ lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32572
+ lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
32573
+ lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32574
+ metadata: z.ZodOptional<z.ZodObject<{
32575
+ useResourceUrl: z.ZodDefault<z.ZodBoolean>;
32576
+ }, "strict", z.ZodTypeAny, {
32577
+ useResourceUrl: boolean;
32578
+ }, {
32579
+ useResourceUrl?: boolean | undefined;
32580
+ }>>;
32581
+ id: z.ZodString;
32582
+ name: z.ZodString;
32583
+ protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
32584
+ modelId: z.ZodString;
32585
+ contextWindowTokens: z.ZodNumber;
32586
+ maxOutputTokens: z.ZodNumber;
32587
+ inputCapabilities: z.ZodArray<z.ZodEnum<["TEXT", "IMAGE"]>, "many">;
32588
+ outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
32589
+ reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
32590
+ defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
32591
+ conversationModel: z.ZodDefault<z.ZodBoolean>;
32592
+ titleGeneration: z.ZodDefault<z.ZodBoolean>;
32593
+ codeMode: z.ZodDefault<z.ZodBoolean>;
32594
+ fastMode: z.ZodOptional<z.ZodBoolean>;
32595
+ serviceTier: z.ZodOptional<z.ZodEnum<["auto", "default", "flex", "priority", "fast", "ultrafast"]>>;
32596
+ hostedWebSearch: z.ZodBoolean;
32597
+ responsesTransport: z.ZodOptional<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
32598
+ transport: z.ZodLiteral<"WEBSOCKET">;
32599
+ }, "strict", z.ZodTypeAny, {
32600
+ transport: "WEBSOCKET";
32601
+ }, {
32602
+ transport: "WEBSOCKET";
32603
+ }>, z.ZodObject<{
32604
+ transport: z.ZodLiteral<"HTTP">;
32605
+ httpVersion: z.ZodEnum<["1.1", "2"]>;
32606
+ }, "strict", z.ZodTypeAny, {
32607
+ transport: "HTTP";
32608
+ httpVersion: "2" | "1.1";
32609
+ }, {
32610
+ transport: "HTTP";
32611
+ httpVersion: "2" | "1.1";
32612
+ }>]>>;
32613
+ responsesPreviousResponseId: z.ZodDefault<z.ZodBoolean>;
32614
+ enabled: z.ZodBoolean;
32615
+ }, "strip", z.ZodTypeAny, {
32616
+ name: string;
32617
+ id: string;
32618
+ modelId: string;
32619
+ protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
32620
+ enabled: boolean;
32621
+ sortOrder: number;
32622
+ baseUrl: string;
32623
+ contextWindowTokens: number;
32624
+ maxOutputTokens: number;
32625
+ inputCapabilities: ("TEXT" | "IMAGE")[];
32626
+ outputCapabilities: ["TEXT"];
32627
+ reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
32628
+ conversationModel: boolean;
32629
+ titleGeneration: boolean;
32630
+ codeMode: boolean;
32631
+ hostedWebSearch: boolean;
32632
+ responsesPreviousResponseId: boolean;
32633
+ metadata?: {
32634
+ useResourceUrl: boolean;
32635
+ } | undefined;
32636
+ credential?: undefined;
32637
+ fastMode?: boolean | undefined;
32638
+ apiKey?: undefined;
32639
+ access?: undefined;
32640
+ imageGeneration?: undefined;
32641
+ apiKeyConfigured?: boolean | undefined;
32642
+ credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
32643
+ credentialConfigured?: boolean | undefined;
32644
+ lastTestedAt?: number | null | undefined;
32645
+ lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
32646
+ lastTestCode?: string | null | undefined;
32647
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
32648
+ serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
32649
+ responsesTransport?: {
32650
+ transport: "WEBSOCKET";
32651
+ } | {
32652
+ transport: "HTTP";
32653
+ httpVersion: "2" | "1.1";
32654
+ } | undefined;
32655
+ }, {
32656
+ name: string;
32657
+ id: string;
32658
+ modelId: string;
32659
+ protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
32660
+ enabled: boolean;
32661
+ sortOrder: number;
32662
+ baseUrl: string;
32663
+ contextWindowTokens: number;
32664
+ maxOutputTokens: number;
32665
+ inputCapabilities: ("TEXT" | "IMAGE")[];
32666
+ outputCapabilities: ["TEXT"];
32667
+ reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
32668
+ hostedWebSearch: boolean;
32669
+ metadata?: {
32670
+ useResourceUrl?: boolean | undefined;
32671
+ } | undefined;
32672
+ credential?: undefined;
32673
+ fastMode?: boolean | undefined;
32674
+ apiKey?: undefined;
32675
+ access?: undefined;
32676
+ imageGeneration?: undefined;
32677
+ apiKeyConfigured?: boolean | undefined;
32678
+ credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
32679
+ credentialConfigured?: boolean | undefined;
32680
+ lastTestedAt?: number | null | undefined;
32681
+ lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
32682
+ lastTestCode?: string | null | undefined;
32683
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
32684
+ conversationModel?: boolean | undefined;
32685
+ titleGeneration?: boolean | undefined;
32686
+ codeMode?: boolean | undefined;
32687
+ serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
32688
+ responsesTransport?: {
32689
+ transport: "WEBSOCKET";
32690
+ } | {
32691
+ transport: "HTTP";
32692
+ httpVersion: "2" | "1.1";
32693
+ } | undefined;
32694
+ responsesPreviousResponseId?: boolean | undefined;
32695
+ }>, {
32696
+ [x: string]: any;
32697
+ }, {
32698
+ [x: string]: any;
32699
+ }>, "many">;
32700
+ }, "strict", z.ZodTypeAny, {
32701
+ conversation: {
32702
+ status: "ACTIVE";
32703
+ sessionId: string;
32704
+ id: string;
32705
+ nodeId: string;
32706
+ createdAt: number;
32707
+ updatedAt: number;
32708
+ modelId: string;
32709
+ templateId: string;
32710
+ title: string;
32711
+ activity: {
32712
+ status: "IDLE" | "STARTING" | "RUNNING" | "CANCELLING";
32713
+ updatedAt: number;
32714
+ version: number;
32715
+ };
32716
+ templateName: string;
32717
+ activeVersionId: string;
32718
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
32719
+ pinnedAt: number | null;
32720
+ lastActivityAt: number;
32721
+ };
32722
+ models: {
32723
+ [x: string]: any;
32724
+ }[];
32725
+ template: {
32726
+ status: "ACTIVE" | "DELETED" | "ARCHIVED";
32727
+ name: string;
32728
+ id: string;
32729
+ nodeId: string;
32730
+ createdAt: number;
32731
+ updatedAt: number;
32732
+ available: boolean;
32733
+ description: string;
32734
+ currentVersionId: string | null;
32735
+ icon?: string | undefined;
32736
+ };
32737
+ }, {
32738
+ conversation: {
32739
+ status: "ACTIVE";
32740
+ sessionId: string;
32741
+ id: string;
32742
+ nodeId: string;
32743
+ createdAt: number;
32744
+ updatedAt: number;
32745
+ modelId: string;
32746
+ templateId: string;
32747
+ title: string;
32748
+ templateName: string;
32749
+ activeVersionId: string;
32750
+ pinnedAt: number | null;
32751
+ lastActivityAt: number;
32752
+ activity?: {
32753
+ status: "IDLE" | "STARTING" | "RUNNING" | "CANCELLING";
32754
+ updatedAt: number;
32755
+ version: number;
32756
+ } | undefined;
32757
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
32758
+ };
32759
+ models: {
32760
+ [x: string]: any;
32761
+ }[];
32762
+ template: {
32763
+ status: "ACTIVE" | "DELETED" | "ARCHIVED";
32764
+ name: string;
32765
+ id: string;
32766
+ nodeId: string;
32767
+ createdAt: number;
32768
+ updatedAt: number;
32769
+ available: boolean;
32770
+ description: string;
32771
+ currentVersionId: string | null;
32772
+ icon?: string | undefined;
32773
+ };
32774
+ }>, {
32775
+ conversation: {
32776
+ status: "ACTIVE";
32777
+ sessionId: string;
32778
+ id: string;
32779
+ nodeId: string;
32780
+ createdAt: number;
32781
+ updatedAt: number;
32782
+ modelId: string;
32783
+ templateId: string;
32784
+ title: string;
32785
+ activity: {
32786
+ status: "IDLE" | "STARTING" | "RUNNING" | "CANCELLING";
32787
+ updatedAt: number;
32788
+ version: number;
32789
+ };
32790
+ templateName: string;
32791
+ activeVersionId: string;
32792
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
32793
+ pinnedAt: number | null;
32794
+ lastActivityAt: number;
32795
+ };
32796
+ models: {
32797
+ [x: string]: any;
32798
+ }[];
32799
+ template: {
32800
+ status: "ACTIVE" | "DELETED" | "ARCHIVED";
32801
+ name: string;
32802
+ id: string;
32803
+ nodeId: string;
32804
+ createdAt: number;
32805
+ updatedAt: number;
32806
+ available: boolean;
32807
+ description: string;
32808
+ currentVersionId: string | null;
32809
+ icon?: string | undefined;
32810
+ };
32811
+ }, {
32812
+ conversation: {
32813
+ status: "ACTIVE";
32814
+ sessionId: string;
32815
+ id: string;
32816
+ nodeId: string;
32817
+ createdAt: number;
32818
+ updatedAt: number;
32819
+ modelId: string;
32820
+ templateId: string;
32821
+ title: string;
32822
+ templateName: string;
32823
+ activeVersionId: string;
32824
+ pinnedAt: number | null;
32825
+ lastActivityAt: number;
32826
+ activity?: {
32827
+ status: "IDLE" | "STARTING" | "RUNNING" | "CANCELLING";
32828
+ updatedAt: number;
32829
+ version: number;
32830
+ } | undefined;
32831
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
32832
+ };
32833
+ models: {
32834
+ [x: string]: any;
32835
+ }[];
32836
+ template: {
32837
+ status: "ACTIVE" | "DELETED" | "ARCHIVED";
32838
+ name: string;
32839
+ id: string;
32840
+ nodeId: string;
32841
+ createdAt: number;
32842
+ updatedAt: number;
32843
+ available: boolean;
32844
+ description: string;
32845
+ currentVersionId: string | null;
32846
+ icon?: string | undefined;
32847
+ };
32848
+ }>;
32849
+ export type HostedConversationTemplateSwitchResult = z.infer<typeof hostedConversationTemplateSwitchResultSchema>;
32420
32850
  export declare const hostedConversationMetadataUpdateInputSchema: z.ZodEffects<z.ZodObject<{
32421
32851
  conversationId: z.ZodString;
32422
32852
  title: z.ZodOptional<z.ZodString>;
@@ -44545,7 +44975,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
44545
44975
  previousPath?: string | undefined;
44546
44976
  }>;
44547
44977
  export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
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"]>;
44978
+ 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.template.switch", "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"]>;
44549
44979
  export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
44550
44980
  /**
44551
44981
  * A small, explicit envelope keeps WebSocket messages independently parseable
@@ -44656,11 +45086,11 @@ export declare function publicErrorMessage(code: string): string;
44656
45086
  /** Builds the bounded public error shape shared by Node and Server boundaries. */
44657
45087
  export declare function safePublicError(error: unknown, fallback?: string): PublicError;
44658
45088
  export declare const nodeErrorSchema: z.ZodObject<{
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"]>;
45089
+ 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_TEMPLATE_CONFLICT", "HOSTED_CONVERSATION_FILE_INVALID", "HOSTED_CONVERSATION_FILE_NOT_FOUND", "HOSTED_CONVERSATION_FILE_CONFLICT", "SANDBOX_UNAVAILABLE", "SANDBOX_POLICY_INVALID", "SANDBOX_RESOURCE_LIMIT", "INTERNAL_ERROR"]>;
44660
45090
  }, "strip", z.ZodTypeAny, {
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";
45091
+ 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_TEMPLATE_CONFLICT" | "HOSTED_CONVERSATION_FILE_INVALID" | "HOSTED_CONVERSATION_FILE_NOT_FOUND" | "HOSTED_CONVERSATION_FILE_CONFLICT" | "SANDBOX_UNAVAILABLE" | "SANDBOX_POLICY_INVALID" | "SANDBOX_RESOURCE_LIMIT";
44662
45092
  }, {
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";
45093
+ 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_TEMPLATE_CONFLICT" | "HOSTED_CONVERSATION_FILE_INVALID" | "HOSTED_CONVERSATION_FILE_NOT_FOUND" | "HOSTED_CONVERSATION_FILE_CONFLICT" | "SANDBOX_UNAVAILABLE" | "SANDBOX_POLICY_INVALID" | "SANDBOX_RESOURCE_LIMIT";
44664
45094
  }>;
44665
45095
  export declare function createEnvelope(type: string, payload: unknown, options?: {
44666
45096
  id?: string;
package/dist/index.js CHANGED
@@ -2593,6 +2593,26 @@ export const hostedConversationConfigUpdateInputSchema = z
2593
2593
  modelId: protocolIdSchema
2594
2594
  })
2595
2595
  .strict();
2596
+ export const hostedConversationTemplateSwitchInputSchema = z
2597
+ .object({
2598
+ conversationId: protocolIdSchema,
2599
+ templateId: protocolIdSchema,
2600
+ expectedTemplateId: protocolIdSchema
2601
+ })
2602
+ .strict();
2603
+ export const hostedConversationTemplateSwitchResultSchema = z
2604
+ .object({
2605
+ conversation: hostedConversationSummarySchema,
2606
+ template: conversationTemplateSummarySchema,
2607
+ models: z.array(marAgentNodeModelSummarySchema)
2608
+ })
2609
+ .strict()
2610
+ .superRefine((value, context) => {
2611
+ if (value.conversation.templateId !== value.template.id ||
2612
+ value.conversation.nodeId !== value.template.nodeId ||
2613
+ value.conversation.activeVersionId !== value.template.currentVersionId)
2614
+ context.addIssue({ code: 'custom', message: 'Inconsistent conversation template binding' });
2615
+ });
2596
2616
  export const hostedConversationMetadataUpdateInputSchema = z
2597
2617
  .object({
2598
2618
  conversationId: protocolIdSchema,
@@ -3172,6 +3192,7 @@ export const workbenchNodeOperationSchema = z.enum([
3172
3192
  'conversation.hosted.rollback',
3173
3193
  'conversation.hosted.interrupt',
3174
3194
  'conversation.hosted.config.update',
3195
+ 'conversation.hosted.template.switch',
3175
3196
  'conversation.hosted.metadata.update',
3176
3197
  'conversation.hosted.image.read',
3177
3198
  'conversation.hosted.tool-resource.read',
@@ -3481,6 +3502,7 @@ export const nodeErrorSchema = z.object({
3481
3502
  'HOSTED_CONVERSATION_NOT_AUTHORIZED',
3482
3503
  'HOSTED_CONVERSATION_UPGRADE_FAILED',
3483
3504
  'HOSTED_CONVERSATION_QUOTA_EXCEEDED',
3505
+ 'HOSTED_CONVERSATION_TEMPLATE_CONFLICT',
3484
3506
  'HOSTED_CONVERSATION_FILE_INVALID',
3485
3507
  'HOSTED_CONVERSATION_FILE_NOT_FOUND',
3486
3508
  'HOSTED_CONVERSATION_FILE_CONFLICT',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.11.30",
3
+ "version": "0.11.32",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",