@myagentroam/protocol 0.10.19 → 0.10.21

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
@@ -505,6 +505,19 @@ export declare const nodeUpgradeStatusSchema: z.ZodObject<{
505
505
  activeRunCount?: number | undefined;
506
506
  }>;
507
507
  export type NodeUpgradeStatus = z.infer<typeof nodeUpgradeStatusSchema>;
508
+ export declare const promptCompletionCapabilitySchema: z.ZodObject<{
509
+ apiVersion: z.ZodLiteral<1>;
510
+ contextVersion: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
511
+ automaticTriggers: z.ZodOptional<z.ZodLiteral<true>>;
512
+ }, "strict", z.ZodTypeAny, {
513
+ apiVersion: 1;
514
+ contextVersion?: 2 | 3 | undefined;
515
+ automaticTriggers?: true | undefined;
516
+ }, {
517
+ apiVersion: 1;
518
+ contextVersion?: 2 | 3 | undefined;
519
+ automaticTriggers?: true | undefined;
520
+ }>;
508
521
  export declare const nodeMetadataSchema: z.ZodOptional<z.ZodObject<{
509
522
  platform: z.ZodOptional<z.ZodOptional<z.ZodEnum<["windows", "linux", "macos"]>>>;
510
523
  architecture: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -1011,6 +1024,19 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1011
1024
  responsesOptionalParameters?: boolean | undefined;
1012
1025
  responsesHttpContinuation?: boolean | undefined;
1013
1026
  }>>;
1027
+ promptCompletion: z.ZodOptional<z.ZodObject<{
1028
+ apiVersion: z.ZodLiteral<1>;
1029
+ contextVersion: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
1030
+ automaticTriggers: z.ZodOptional<z.ZodLiteral<true>>;
1031
+ }, "strict", z.ZodTypeAny, {
1032
+ apiVersion: 1;
1033
+ contextVersion?: 2 | 3 | undefined;
1034
+ automaticTriggers?: true | undefined;
1035
+ }, {
1036
+ apiVersion: 1;
1037
+ contextVersion?: 2 | 3 | undefined;
1038
+ automaticTriggers?: true | undefined;
1039
+ }>>;
1014
1040
  chatgptLogin: z.ZodOptional<z.ZodObject<{
1015
1041
  apiVersion: z.ZodLiteral<1>;
1016
1042
  loopback: z.ZodLiteral<true>;
@@ -1149,6 +1175,11 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1149
1175
  responsesOptionalParameters?: boolean | undefined;
1150
1176
  responsesHttpContinuation?: boolean | undefined;
1151
1177
  } | undefined;
1178
+ promptCompletion?: {
1179
+ apiVersion: 1;
1180
+ contextVersion?: 2 | 3 | undefined;
1181
+ automaticTriggers?: true | undefined;
1182
+ } | undefined;
1152
1183
  chatgptLogin?: {
1153
1184
  apiVersion: 1;
1154
1185
  loopback: true;
@@ -1259,6 +1290,11 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1259
1290
  responsesOptionalParameters?: boolean | undefined;
1260
1291
  responsesHttpContinuation?: boolean | undefined;
1261
1292
  } | undefined;
1293
+ promptCompletion?: {
1294
+ apiVersion: 1;
1295
+ contextVersion?: 2 | 3 | undefined;
1296
+ automaticTriggers?: true | undefined;
1297
+ } | undefined;
1262
1298
  chatgptLogin?: {
1263
1299
  apiVersion: 1;
1264
1300
  loopback: true;
@@ -1369,6 +1405,11 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1369
1405
  responsesOptionalParameters?: boolean | undefined;
1370
1406
  responsesHttpContinuation?: boolean | undefined;
1371
1407
  } | undefined;
1408
+ promptCompletion?: {
1409
+ apiVersion: 1;
1410
+ contextVersion?: 2 | 3 | undefined;
1411
+ automaticTriggers?: true | undefined;
1412
+ } | undefined;
1372
1413
  chatgptLogin?: {
1373
1414
  apiVersion: 1;
1374
1415
  loopback: true;
@@ -1479,6 +1520,11 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1479
1520
  responsesOptionalParameters?: boolean | undefined;
1480
1521
  responsesHttpContinuation?: boolean | undefined;
1481
1522
  } | undefined;
1523
+ promptCompletion?: {
1524
+ apiVersion: 1;
1525
+ contextVersion?: 2 | 3 | undefined;
1526
+ automaticTriggers?: true | undefined;
1527
+ } | undefined;
1482
1528
  chatgptLogin?: {
1483
1529
  apiVersion: 1;
1484
1530
  loopback: true;
@@ -3511,67 +3557,1320 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
3511
3557
  sessionId?: string | undefined;
3512
3558
  };
3513
3559
  } | undefined;
3514
- config?: Record<string, string> | undefined;
3515
- } | undefined;
3516
- defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3517
- serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
3518
- responsesTransport?: {
3519
- transport: "WEBSOCKET";
3520
- } | {
3521
- transport: "HTTP";
3522
- httpVersion: "2" | "1.1";
3523
- } | undefined;
3524
- responsesToolNamespace?: string | undefined;
3525
- responsesConfigurationUpdates?: boolean | undefined;
3526
- }, {
3527
- name: string;
3528
- id: string;
3529
- modelId: string;
3530
- protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
3531
- enabled: boolean;
3532
- baseUrl: string;
3533
- contextWindowTokens: number;
3534
- maxOutputTokens: number;
3535
- inputCapabilities: ("TEXT" | "IMAGE")[];
3536
- outputCapabilities: ["TEXT"];
3537
- reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
3538
- hostedWebSearch: boolean;
3539
- fastMode?: boolean | undefined;
3540
- responsesOptionalParameters?: {
3541
- reasoningEffort: boolean;
3542
- reasoningSummary: boolean;
3543
- textVerbosity: boolean;
3544
- promptCacheKey: boolean;
3545
- nativeTools?: boolean | undefined;
3546
- } | undefined;
3547
- credential?: {
3548
- value: string;
3549
- type: "INLINE_API_KEY";
3550
- } | {
3551
- type: "RUNTIME_TICKET";
3552
- credentialId: string;
3553
- ticket: {
3554
- nonce: string;
3555
- expiresAt: number;
3556
- workspaceId: string;
3557
- nodeId: string;
3558
- userId: number;
3559
- issuedAt: number;
3560
- credentialId: string;
3561
- runtimeScopeId: string;
3562
- allowedModelIds: string[];
3563
- signature: string;
3564
- purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3565
- sessionId?: string | undefined;
3566
- };
3567
- } | undefined;
3568
- apiKey?: string | undefined;
3569
- imageGeneration?: {
3570
- imageModelId: string;
3571
- httpVersion: "2" | "1.1";
3572
- generateEndpoint: string;
3573
- editEndpoint: string;
3574
- provider?: string | undefined;
3560
+ config?: Record<string, string> | undefined;
3561
+ } | undefined;
3562
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3563
+ serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
3564
+ responsesTransport?: {
3565
+ transport: "WEBSOCKET";
3566
+ } | {
3567
+ transport: "HTTP";
3568
+ httpVersion: "2" | "1.1";
3569
+ } | undefined;
3570
+ responsesToolNamespace?: string | undefined;
3571
+ responsesConfigurationUpdates?: boolean | undefined;
3572
+ }, {
3573
+ name: string;
3574
+ id: string;
3575
+ modelId: string;
3576
+ protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
3577
+ enabled: boolean;
3578
+ baseUrl: string;
3579
+ contextWindowTokens: number;
3580
+ maxOutputTokens: number;
3581
+ inputCapabilities: ("TEXT" | "IMAGE")[];
3582
+ outputCapabilities: ["TEXT"];
3583
+ reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
3584
+ hostedWebSearch: boolean;
3585
+ fastMode?: boolean | undefined;
3586
+ responsesOptionalParameters?: {
3587
+ reasoningEffort: boolean;
3588
+ reasoningSummary: boolean;
3589
+ textVerbosity: boolean;
3590
+ promptCacheKey: boolean;
3591
+ nativeTools?: boolean | undefined;
3592
+ } | undefined;
3593
+ credential?: {
3594
+ value: string;
3595
+ type: "INLINE_API_KEY";
3596
+ } | {
3597
+ type: "RUNTIME_TICKET";
3598
+ credentialId: string;
3599
+ ticket: {
3600
+ nonce: string;
3601
+ expiresAt: number;
3602
+ workspaceId: string;
3603
+ nodeId: string;
3604
+ userId: number;
3605
+ issuedAt: number;
3606
+ credentialId: string;
3607
+ runtimeScopeId: string;
3608
+ allowedModelIds: string[];
3609
+ signature: string;
3610
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3611
+ sessionId?: string | undefined;
3612
+ };
3613
+ } | undefined;
3614
+ apiKey?: string | undefined;
3615
+ imageGeneration?: {
3616
+ imageModelId: string;
3617
+ httpVersion: "2" | "1.1";
3618
+ generateEndpoint: string;
3619
+ editEndpoint: string;
3620
+ provider?: string | undefined;
3621
+ credential?: {
3622
+ value: string;
3623
+ type: "INLINE_API_KEY";
3624
+ } | {
3625
+ type: "RUNTIME_TICKET";
3626
+ credentialId: string;
3627
+ ticket: {
3628
+ nonce: string;
3629
+ expiresAt: number;
3630
+ workspaceId: string;
3631
+ nodeId: string;
3632
+ userId: number;
3633
+ issuedAt: number;
3634
+ credentialId: string;
3635
+ runtimeScopeId: string;
3636
+ allowedModelIds: string[];
3637
+ signature: string;
3638
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
3639
+ sessionId?: string | undefined;
3640
+ };
3641
+ } | undefined;
3642
+ config?: Record<string, string> | undefined;
3643
+ } | undefined;
3644
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3645
+ titleGeneration?: boolean | undefined;
3646
+ codeMode?: boolean | undefined;
3647
+ serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
3648
+ responsesTransport?: {
3649
+ transport: "WEBSOCKET";
3650
+ } | {
3651
+ transport: "HTTP";
3652
+ httpVersion: "2" | "1.1";
3653
+ } | undefined;
3654
+ responsesPreviousResponseId?: boolean | undefined;
3655
+ responsesToolNamespace?: string | undefined;
3656
+ responsesConfigurationUpdates?: boolean | undefined;
3657
+ }>, {
3658
+ [x: string]: any;
3659
+ }, {
3660
+ [x: string]: any;
3661
+ }>, {
3662
+ [x: string]: any;
3663
+ }, {
3664
+ [x: string]: any;
3665
+ }>;
3666
+ export type MarAgentRuntimeModelConfiguration = z.infer<typeof marAgentRuntimeModelConfigurationSchema>;
3667
+ export declare const marAgentCompactConfigurationSchema: z.ZodEffects<z.ZodObject<{
3668
+ enabled: z.ZodBoolean;
3669
+ modelId: z.ZodNullable<z.ZodString>;
3670
+ reasoningEffort: z.ZodNullable<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
3671
+ }, "strict", z.ZodTypeAny, {
3672
+ modelId: string | null;
3673
+ enabled: boolean;
3674
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3675
+ }, {
3676
+ modelId: string | null;
3677
+ enabled: boolean;
3678
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3679
+ }>, {
3680
+ modelId: string | null;
3681
+ enabled: boolean;
3682
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3683
+ }, {
3684
+ modelId: string | null;
3685
+ enabled: boolean;
3686
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3687
+ }>;
3688
+ export type MarAgentCompactConfiguration = z.infer<typeof marAgentCompactConfigurationSchema>;
3689
+ export declare const promptCompletionConfigurationSchema: z.ZodEffects<z.ZodObject<{
3690
+ enabled: z.ZodBoolean;
3691
+ modelId: z.ZodNullable<z.ZodString>;
3692
+ reasoningEffort: z.ZodNullable<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
3693
+ }, "strict", z.ZodTypeAny, {
3694
+ modelId: string | null;
3695
+ enabled: boolean;
3696
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3697
+ }, {
3698
+ modelId: string | null;
3699
+ enabled: boolean;
3700
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3701
+ }>, {
3702
+ modelId: string | null;
3703
+ enabled: boolean;
3704
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3705
+ }, {
3706
+ modelId: string | null;
3707
+ enabled: boolean;
3708
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3709
+ }>;
3710
+ export type PromptCompletionConfiguration = z.infer<typeof promptCompletionConfigurationSchema>;
3711
+ export declare const promptCompletionPreferencesSchema: z.ZodObject<{
3712
+ work: z.ZodBoolean;
3713
+ }, "strict", z.ZodTypeAny, {
3714
+ work: boolean;
3715
+ }, {
3716
+ work: boolean;
3717
+ }>;
3718
+ export type PromptCompletionPreferences = z.infer<typeof promptCompletionPreferencesSchema>;
3719
+ export declare const promptCompletionAttentionSchema: z.ZodEffects<z.ZodObject<{
3720
+ fileId: z.ZodOptional<z.ZodString>;
3721
+ worktreePath: z.ZodOptional<z.ZodString>;
3722
+ kind: z.ZodEnum<["FILE", "DIFF"]>;
3723
+ path: z.ZodString;
3724
+ observedAt: z.ZodNumber;
3725
+ revision: z.ZodOptional<z.ZodString>;
3726
+ startLine: z.ZodOptional<z.ZodNumber>;
3727
+ endLine: z.ZodOptional<z.ZodNumber>;
3728
+ source: z.ZodOptional<z.ZodEnum<["WORKING_TREE", "HISTORY", "TOOL_CHANGE"]>>;
3729
+ }, "strict", z.ZodTypeAny, {
3730
+ path: string;
3731
+ kind: "FILE" | "DIFF";
3732
+ observedAt: number;
3733
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3734
+ worktreePath?: string | undefined;
3735
+ revision?: string | undefined;
3736
+ fileId?: string | undefined;
3737
+ startLine?: number | undefined;
3738
+ endLine?: number | undefined;
3739
+ }, {
3740
+ path: string;
3741
+ kind: "FILE" | "DIFF";
3742
+ observedAt: number;
3743
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3744
+ worktreePath?: string | undefined;
3745
+ revision?: string | undefined;
3746
+ fileId?: string | undefined;
3747
+ startLine?: number | undefined;
3748
+ endLine?: number | undefined;
3749
+ }>, {
3750
+ path: string;
3751
+ kind: "FILE" | "DIFF";
3752
+ observedAt: number;
3753
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3754
+ worktreePath?: string | undefined;
3755
+ revision?: string | undefined;
3756
+ fileId?: string | undefined;
3757
+ startLine?: number | undefined;
3758
+ endLine?: number | undefined;
3759
+ }, {
3760
+ path: string;
3761
+ kind: "FILE" | "DIFF";
3762
+ observedAt: number;
3763
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3764
+ worktreePath?: string | undefined;
3765
+ revision?: string | undefined;
3766
+ fileId?: string | undefined;
3767
+ startLine?: number | undefined;
3768
+ endLine?: number | undefined;
3769
+ }>;
3770
+ export type PromptCompletionAttention = z.infer<typeof promptCompletionAttentionSchema>;
3771
+ export declare const promptCompletionRequestSchema: z.ZodEffects<z.ZodObject<{
3772
+ trigger: z.ZodEnum<["MANUAL", "AUTO"]>;
3773
+ completionMode: z.ZodEnum<["NEXT", "COMPLETE", "REWRITE"]>;
3774
+ attention: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
3775
+ fileId: z.ZodOptional<z.ZodString>;
3776
+ worktreePath: z.ZodOptional<z.ZodString>;
3777
+ kind: z.ZodEnum<["FILE", "DIFF"]>;
3778
+ path: z.ZodString;
3779
+ observedAt: z.ZodNumber;
3780
+ revision: z.ZodOptional<z.ZodString>;
3781
+ startLine: z.ZodOptional<z.ZodNumber>;
3782
+ endLine: z.ZodOptional<z.ZodNumber>;
3783
+ source: z.ZodOptional<z.ZodEnum<["WORKING_TREE", "HISTORY", "TOOL_CHANGE"]>>;
3784
+ }, "strict", z.ZodTypeAny, {
3785
+ path: string;
3786
+ kind: "FILE" | "DIFF";
3787
+ observedAt: number;
3788
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3789
+ worktreePath?: string | undefined;
3790
+ revision?: string | undefined;
3791
+ fileId?: string | undefined;
3792
+ startLine?: number | undefined;
3793
+ endLine?: number | undefined;
3794
+ }, {
3795
+ path: string;
3796
+ kind: "FILE" | "DIFF";
3797
+ observedAt: number;
3798
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3799
+ worktreePath?: string | undefined;
3800
+ revision?: string | undefined;
3801
+ fileId?: string | undefined;
3802
+ startLine?: number | undefined;
3803
+ endLine?: number | undefined;
3804
+ }>, {
3805
+ path: string;
3806
+ kind: "FILE" | "DIFF";
3807
+ observedAt: number;
3808
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3809
+ worktreePath?: string | undefined;
3810
+ revision?: string | undefined;
3811
+ fileId?: string | undefined;
3812
+ startLine?: number | undefined;
3813
+ endLine?: number | undefined;
3814
+ }, {
3815
+ path: string;
3816
+ kind: "FILE" | "DIFF";
3817
+ observedAt: number;
3818
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3819
+ worktreePath?: string | undefined;
3820
+ revision?: string | undefined;
3821
+ fileId?: string | undefined;
3822
+ startLine?: number | undefined;
3823
+ endLine?: number | undefined;
3824
+ }>, "many">>;
3825
+ draft: z.ZodEffects<z.ZodString, string, string>;
3826
+ cursorPosition: z.ZodNumber;
3827
+ draftRevision: z.ZodNumber;
3828
+ contextVersion: z.ZodString;
3829
+ historyGeneration: z.ZodString;
3830
+ requestId: z.ZodString;
3831
+ pageEpoch: z.ZodString;
3832
+ intentSequence: z.ZodNumber;
3833
+ runner: z.ZodEnum<["codex", "claude-code", "opencode", "mar-agent"]>;
3834
+ sessionId: z.ZodNullable<z.ZodString>;
3835
+ }, "strict", z.ZodTypeAny, {
3836
+ requestId: string;
3837
+ sessionId: string | null;
3838
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
3839
+ contextVersion: string;
3840
+ trigger: "MANUAL" | "AUTO";
3841
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
3842
+ draft: string;
3843
+ cursorPosition: number;
3844
+ draftRevision: number;
3845
+ historyGeneration: string;
3846
+ pageEpoch: string;
3847
+ intentSequence: number;
3848
+ attention?: {
3849
+ path: string;
3850
+ kind: "FILE" | "DIFF";
3851
+ observedAt: number;
3852
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3853
+ worktreePath?: string | undefined;
3854
+ revision?: string | undefined;
3855
+ fileId?: string | undefined;
3856
+ startLine?: number | undefined;
3857
+ endLine?: number | undefined;
3858
+ }[] | undefined;
3859
+ }, {
3860
+ requestId: string;
3861
+ sessionId: string | null;
3862
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
3863
+ contextVersion: string;
3864
+ trigger: "MANUAL" | "AUTO";
3865
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
3866
+ draft: string;
3867
+ cursorPosition: number;
3868
+ draftRevision: number;
3869
+ historyGeneration: string;
3870
+ pageEpoch: string;
3871
+ intentSequence: number;
3872
+ attention?: {
3873
+ path: string;
3874
+ kind: "FILE" | "DIFF";
3875
+ observedAt: number;
3876
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3877
+ worktreePath?: string | undefined;
3878
+ revision?: string | undefined;
3879
+ fileId?: string | undefined;
3880
+ startLine?: number | undefined;
3881
+ endLine?: number | undefined;
3882
+ }[] | undefined;
3883
+ }>, {
3884
+ requestId: string;
3885
+ sessionId: string | null;
3886
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
3887
+ contextVersion: string;
3888
+ trigger: "MANUAL" | "AUTO";
3889
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
3890
+ draft: string;
3891
+ cursorPosition: number;
3892
+ draftRevision: number;
3893
+ historyGeneration: string;
3894
+ pageEpoch: string;
3895
+ intentSequence: number;
3896
+ attention?: {
3897
+ path: string;
3898
+ kind: "FILE" | "DIFF";
3899
+ observedAt: number;
3900
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3901
+ worktreePath?: string | undefined;
3902
+ revision?: string | undefined;
3903
+ fileId?: string | undefined;
3904
+ startLine?: number | undefined;
3905
+ endLine?: number | undefined;
3906
+ }[] | undefined;
3907
+ }, {
3908
+ requestId: string;
3909
+ sessionId: string | null;
3910
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
3911
+ contextVersion: string;
3912
+ trigger: "MANUAL" | "AUTO";
3913
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
3914
+ draft: string;
3915
+ cursorPosition: number;
3916
+ draftRevision: number;
3917
+ historyGeneration: string;
3918
+ pageEpoch: string;
3919
+ intentSequence: number;
3920
+ attention?: {
3921
+ path: string;
3922
+ kind: "FILE" | "DIFF";
3923
+ observedAt: number;
3924
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
3925
+ worktreePath?: string | undefined;
3926
+ revision?: string | undefined;
3927
+ fileId?: string | undefined;
3928
+ startLine?: number | undefined;
3929
+ endLine?: number | undefined;
3930
+ }[] | undefined;
3931
+ }>;
3932
+ export type PromptCompletionRequest = z.infer<typeof promptCompletionRequestSchema>;
3933
+ export declare const promptCompletionCancelSchema: z.ZodObject<{
3934
+ requestId: z.ZodString;
3935
+ pageEpoch: z.ZodString;
3936
+ intentSequence: z.ZodNumber;
3937
+ }, "strict", z.ZodTypeAny, {
3938
+ requestId: string;
3939
+ pageEpoch: string;
3940
+ intentSequence: number;
3941
+ }, {
3942
+ requestId: string;
3943
+ pageEpoch: string;
3944
+ intentSequence: number;
3945
+ }>;
3946
+ export type PromptCompletionCancel = z.infer<typeof promptCompletionCancelSchema>;
3947
+ export declare const promptCompletionContextSchema: z.ZodObject<{
3948
+ contextVersion: z.ZodString;
3949
+ historyGeneration: z.ZodString;
3950
+ progressRevision: z.ZodNumber;
3951
+ }, "strict", z.ZodTypeAny, {
3952
+ contextVersion: string;
3953
+ historyGeneration: string;
3954
+ progressRevision: number;
3955
+ }, {
3956
+ contextVersion: string;
3957
+ historyGeneration: string;
3958
+ progressRevision: number;
3959
+ }>;
3960
+ export type PromptCompletionContext = z.infer<typeof promptCompletionContextSchema>;
3961
+ export declare const promptCompletionResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
3962
+ status: z.ZodLiteral<"ready">;
3963
+ suggestion: z.ZodString;
3964
+ source: z.ZodEnum<["generated", "cache"]>;
3965
+ expiresAt: z.ZodNumber;
3966
+ requestId: z.ZodString;
3967
+ contextVersion: z.ZodString;
3968
+ historyGeneration: z.ZodString;
3969
+ draftRevision: z.ZodNumber;
3970
+ cursorPosition: z.ZodNumber;
3971
+ }, "strict", z.ZodTypeAny, {
3972
+ status: "ready";
3973
+ expiresAt: number;
3974
+ source: "generated" | "cache";
3975
+ requestId: string;
3976
+ contextVersion: string;
3977
+ cursorPosition: number;
3978
+ draftRevision: number;
3979
+ historyGeneration: string;
3980
+ suggestion: string;
3981
+ }, {
3982
+ status: "ready";
3983
+ expiresAt: number;
3984
+ source: "generated" | "cache";
3985
+ requestId: string;
3986
+ contextVersion: string;
3987
+ cursorPosition: number;
3988
+ draftRevision: number;
3989
+ historyGeneration: string;
3990
+ suggestion: string;
3991
+ }>, z.ZodObject<{
3992
+ status: z.ZodLiteral<"empty">;
3993
+ requestId: z.ZodString;
3994
+ contextVersion: z.ZodString;
3995
+ historyGeneration: z.ZodString;
3996
+ draftRevision: z.ZodNumber;
3997
+ cursorPosition: z.ZodNumber;
3998
+ }, "strict", z.ZodTypeAny, {
3999
+ status: "empty";
4000
+ requestId: string;
4001
+ contextVersion: string;
4002
+ cursorPosition: number;
4003
+ draftRevision: number;
4004
+ historyGeneration: string;
4005
+ }, {
4006
+ status: "empty";
4007
+ requestId: string;
4008
+ contextVersion: string;
4009
+ cursorPosition: number;
4010
+ draftRevision: number;
4011
+ historyGeneration: string;
4012
+ }>, z.ZodObject<{
4013
+ status: z.ZodLiteral<"cancelled">;
4014
+ requestId: z.ZodString;
4015
+ contextVersion: z.ZodString;
4016
+ historyGeneration: z.ZodString;
4017
+ draftRevision: z.ZodNumber;
4018
+ cursorPosition: z.ZodNumber;
4019
+ }, "strict", z.ZodTypeAny, {
4020
+ status: "cancelled";
4021
+ requestId: string;
4022
+ contextVersion: string;
4023
+ cursorPosition: number;
4024
+ draftRevision: number;
4025
+ historyGeneration: string;
4026
+ }, {
4027
+ status: "cancelled";
4028
+ requestId: string;
4029
+ contextVersion: string;
4030
+ cursorPosition: number;
4031
+ draftRevision: number;
4032
+ historyGeneration: string;
4033
+ }>, z.ZodObject<{
4034
+ status: z.ZodLiteral<"skipped">;
4035
+ reason: z.ZodEnum<["IN_FLIGHT", "RATE_LIMITED", "STALE_CONTEXT", "UNAVAILABLE", "CAPACITY"]>;
4036
+ retryAfterMs: z.ZodOptional<z.ZodNumber>;
4037
+ requestId: z.ZodString;
4038
+ contextVersion: z.ZodString;
4039
+ historyGeneration: z.ZodString;
4040
+ draftRevision: z.ZodNumber;
4041
+ cursorPosition: z.ZodNumber;
4042
+ }, "strict", z.ZodTypeAny, {
4043
+ status: "skipped";
4044
+ requestId: string;
4045
+ reason: "UNAVAILABLE" | "IN_FLIGHT" | "RATE_LIMITED" | "STALE_CONTEXT" | "CAPACITY";
4046
+ contextVersion: string;
4047
+ cursorPosition: number;
4048
+ draftRevision: number;
4049
+ historyGeneration: string;
4050
+ retryAfterMs?: number | undefined;
4051
+ }, {
4052
+ status: "skipped";
4053
+ requestId: string;
4054
+ reason: "UNAVAILABLE" | "IN_FLIGHT" | "RATE_LIMITED" | "STALE_CONTEXT" | "CAPACITY";
4055
+ contextVersion: string;
4056
+ cursorPosition: number;
4057
+ draftRevision: number;
4058
+ historyGeneration: string;
4059
+ retryAfterMs?: number | undefined;
4060
+ }>]>;
4061
+ export type PromptCompletionResponse = z.infer<typeof promptCompletionResponseSchema>;
4062
+ export declare const promptCompletionTargetSchema: z.ZodObject<{
4063
+ kind: z.ZodLiteral<"WORKSPACE">;
4064
+ workspaceId: z.ZodString;
4065
+ }, "strict", z.ZodTypeAny, {
4066
+ kind: "WORKSPACE";
4067
+ workspaceId: string;
4068
+ }, {
4069
+ kind: "WORKSPACE";
4070
+ workspaceId: string;
4071
+ }>;
4072
+ export type PromptCompletionTarget = z.infer<typeof promptCompletionTargetSchema>;
4073
+ export declare const promptCompletionContextInputSchema: z.ZodObject<{
4074
+ target: z.ZodObject<{
4075
+ kind: z.ZodLiteral<"WORKSPACE">;
4076
+ workspaceId: z.ZodString;
4077
+ }, "strict", z.ZodTypeAny, {
4078
+ kind: "WORKSPACE";
4079
+ workspaceId: string;
4080
+ }, {
4081
+ kind: "WORKSPACE";
4082
+ workspaceId: string;
4083
+ }>;
4084
+ runner: z.ZodEnum<["codex", "claude-code", "opencode", "mar-agent"]>;
4085
+ sessionId: z.ZodNullable<z.ZodString>;
4086
+ workbenchConnectionId: z.ZodString;
4087
+ pageEpoch: z.ZodString;
4088
+ }, "strict", z.ZodTypeAny, {
4089
+ workbenchConnectionId: string;
4090
+ sessionId: string | null;
4091
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4092
+ pageEpoch: string;
4093
+ target: {
4094
+ kind: "WORKSPACE";
4095
+ workspaceId: string;
4096
+ };
4097
+ }, {
4098
+ workbenchConnectionId: string;
4099
+ sessionId: string | null;
4100
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4101
+ pageEpoch: string;
4102
+ target: {
4103
+ kind: "WORKSPACE";
4104
+ workspaceId: string;
4105
+ };
4106
+ }>;
4107
+ export type PromptCompletionContextInput = z.infer<typeof promptCompletionContextInputSchema>;
4108
+ export declare const promptCompletionGenerateInputSchema: z.ZodObject<{
4109
+ target: z.ZodObject<{
4110
+ kind: z.ZodLiteral<"WORKSPACE">;
4111
+ workspaceId: z.ZodString;
4112
+ }, "strict", z.ZodTypeAny, {
4113
+ kind: "WORKSPACE";
4114
+ workspaceId: string;
4115
+ }, {
4116
+ kind: "WORKSPACE";
4117
+ workspaceId: string;
4118
+ }>;
4119
+ workbenchConnectionId: z.ZodString;
4120
+ request: z.ZodEffects<z.ZodObject<{
4121
+ trigger: z.ZodEnum<["MANUAL", "AUTO"]>;
4122
+ completionMode: z.ZodEnum<["NEXT", "COMPLETE", "REWRITE"]>;
4123
+ attention: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
4124
+ fileId: z.ZodOptional<z.ZodString>;
4125
+ worktreePath: z.ZodOptional<z.ZodString>;
4126
+ kind: z.ZodEnum<["FILE", "DIFF"]>;
4127
+ path: z.ZodString;
4128
+ observedAt: z.ZodNumber;
4129
+ revision: z.ZodOptional<z.ZodString>;
4130
+ startLine: z.ZodOptional<z.ZodNumber>;
4131
+ endLine: z.ZodOptional<z.ZodNumber>;
4132
+ source: z.ZodOptional<z.ZodEnum<["WORKING_TREE", "HISTORY", "TOOL_CHANGE"]>>;
4133
+ }, "strict", z.ZodTypeAny, {
4134
+ path: string;
4135
+ kind: "FILE" | "DIFF";
4136
+ observedAt: number;
4137
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4138
+ worktreePath?: string | undefined;
4139
+ revision?: string | undefined;
4140
+ fileId?: string | undefined;
4141
+ startLine?: number | undefined;
4142
+ endLine?: number | undefined;
4143
+ }, {
4144
+ path: string;
4145
+ kind: "FILE" | "DIFF";
4146
+ observedAt: number;
4147
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4148
+ worktreePath?: string | undefined;
4149
+ revision?: string | undefined;
4150
+ fileId?: string | undefined;
4151
+ startLine?: number | undefined;
4152
+ endLine?: number | undefined;
4153
+ }>, {
4154
+ path: string;
4155
+ kind: "FILE" | "DIFF";
4156
+ observedAt: number;
4157
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4158
+ worktreePath?: string | undefined;
4159
+ revision?: string | undefined;
4160
+ fileId?: string | undefined;
4161
+ startLine?: number | undefined;
4162
+ endLine?: number | undefined;
4163
+ }, {
4164
+ path: string;
4165
+ kind: "FILE" | "DIFF";
4166
+ observedAt: number;
4167
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4168
+ worktreePath?: string | undefined;
4169
+ revision?: string | undefined;
4170
+ fileId?: string | undefined;
4171
+ startLine?: number | undefined;
4172
+ endLine?: number | undefined;
4173
+ }>, "many">>;
4174
+ draft: z.ZodEffects<z.ZodString, string, string>;
4175
+ cursorPosition: z.ZodNumber;
4176
+ draftRevision: z.ZodNumber;
4177
+ contextVersion: z.ZodString;
4178
+ historyGeneration: z.ZodString;
4179
+ requestId: z.ZodString;
4180
+ pageEpoch: z.ZodString;
4181
+ intentSequence: z.ZodNumber;
4182
+ runner: z.ZodEnum<["codex", "claude-code", "opencode", "mar-agent"]>;
4183
+ sessionId: z.ZodNullable<z.ZodString>;
4184
+ }, "strict", z.ZodTypeAny, {
4185
+ requestId: string;
4186
+ sessionId: string | null;
4187
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4188
+ contextVersion: string;
4189
+ trigger: "MANUAL" | "AUTO";
4190
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
4191
+ draft: string;
4192
+ cursorPosition: number;
4193
+ draftRevision: number;
4194
+ historyGeneration: string;
4195
+ pageEpoch: string;
4196
+ intentSequence: number;
4197
+ attention?: {
4198
+ path: string;
4199
+ kind: "FILE" | "DIFF";
4200
+ observedAt: number;
4201
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4202
+ worktreePath?: string | undefined;
4203
+ revision?: string | undefined;
4204
+ fileId?: string | undefined;
4205
+ startLine?: number | undefined;
4206
+ endLine?: number | undefined;
4207
+ }[] | undefined;
4208
+ }, {
4209
+ requestId: string;
4210
+ sessionId: string | null;
4211
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4212
+ contextVersion: string;
4213
+ trigger: "MANUAL" | "AUTO";
4214
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
4215
+ draft: string;
4216
+ cursorPosition: number;
4217
+ draftRevision: number;
4218
+ historyGeneration: string;
4219
+ pageEpoch: string;
4220
+ intentSequence: number;
4221
+ attention?: {
4222
+ path: string;
4223
+ kind: "FILE" | "DIFF";
4224
+ observedAt: number;
4225
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4226
+ worktreePath?: string | undefined;
4227
+ revision?: string | undefined;
4228
+ fileId?: string | undefined;
4229
+ startLine?: number | undefined;
4230
+ endLine?: number | undefined;
4231
+ }[] | undefined;
4232
+ }>, {
4233
+ requestId: string;
4234
+ sessionId: string | null;
4235
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4236
+ contextVersion: string;
4237
+ trigger: "MANUAL" | "AUTO";
4238
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
4239
+ draft: string;
4240
+ cursorPosition: number;
4241
+ draftRevision: number;
4242
+ historyGeneration: string;
4243
+ pageEpoch: string;
4244
+ intentSequence: number;
4245
+ attention?: {
4246
+ path: string;
4247
+ kind: "FILE" | "DIFF";
4248
+ observedAt: number;
4249
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4250
+ worktreePath?: string | undefined;
4251
+ revision?: string | undefined;
4252
+ fileId?: string | undefined;
4253
+ startLine?: number | undefined;
4254
+ endLine?: number | undefined;
4255
+ }[] | undefined;
4256
+ }, {
4257
+ requestId: string;
4258
+ sessionId: string | null;
4259
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4260
+ contextVersion: string;
4261
+ trigger: "MANUAL" | "AUTO";
4262
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
4263
+ draft: string;
4264
+ cursorPosition: number;
4265
+ draftRevision: number;
4266
+ historyGeneration: string;
4267
+ pageEpoch: string;
4268
+ intentSequence: number;
4269
+ attention?: {
4270
+ path: string;
4271
+ kind: "FILE" | "DIFF";
4272
+ observedAt: number;
4273
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4274
+ worktreePath?: string | undefined;
4275
+ revision?: string | undefined;
4276
+ fileId?: string | undefined;
4277
+ startLine?: number | undefined;
4278
+ endLine?: number | undefined;
4279
+ }[] | undefined;
4280
+ }>;
4281
+ }, "strict", z.ZodTypeAny, {
4282
+ workbenchConnectionId: string;
4283
+ request: {
4284
+ requestId: string;
4285
+ sessionId: string | null;
4286
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4287
+ contextVersion: string;
4288
+ trigger: "MANUAL" | "AUTO";
4289
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
4290
+ draft: string;
4291
+ cursorPosition: number;
4292
+ draftRevision: number;
4293
+ historyGeneration: string;
4294
+ pageEpoch: string;
4295
+ intentSequence: number;
4296
+ attention?: {
4297
+ path: string;
4298
+ kind: "FILE" | "DIFF";
4299
+ observedAt: number;
4300
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4301
+ worktreePath?: string | undefined;
4302
+ revision?: string | undefined;
4303
+ fileId?: string | undefined;
4304
+ startLine?: number | undefined;
4305
+ endLine?: number | undefined;
4306
+ }[] | undefined;
4307
+ };
4308
+ target: {
4309
+ kind: "WORKSPACE";
4310
+ workspaceId: string;
4311
+ };
4312
+ }, {
4313
+ workbenchConnectionId: string;
4314
+ request: {
4315
+ requestId: string;
4316
+ sessionId: string | null;
4317
+ runner: "mar-agent" | "codex" | "claude-code" | "opencode";
4318
+ contextVersion: string;
4319
+ trigger: "MANUAL" | "AUTO";
4320
+ completionMode: "COMPLETE" | "NEXT" | "REWRITE";
4321
+ draft: string;
4322
+ cursorPosition: number;
4323
+ draftRevision: number;
4324
+ historyGeneration: string;
4325
+ pageEpoch: string;
4326
+ intentSequence: number;
4327
+ attention?: {
4328
+ path: string;
4329
+ kind: "FILE" | "DIFF";
4330
+ observedAt: number;
4331
+ source?: "TOOL_CHANGE" | "WORKING_TREE" | "HISTORY" | undefined;
4332
+ worktreePath?: string | undefined;
4333
+ revision?: string | undefined;
4334
+ fileId?: string | undefined;
4335
+ startLine?: number | undefined;
4336
+ endLine?: number | undefined;
4337
+ }[] | undefined;
4338
+ };
4339
+ target: {
4340
+ kind: "WORKSPACE";
4341
+ workspaceId: string;
4342
+ };
4343
+ }>;
4344
+ export type PromptCompletionGenerateInput = z.infer<typeof promptCompletionGenerateInputSchema>;
4345
+ /** Server-only execution authority; never part of a browser response or Session DTO. */
4346
+ export declare const promptCompletionRuntimeSchema: z.ZodObject<{
4347
+ workspaceId: z.ZodString;
4348
+ authorizationView: z.ZodString;
4349
+ expiresAt: z.ZodNumber;
4350
+ runtimeScopeId: z.ZodString;
4351
+ modelRevision: z.ZodString;
4352
+ credentialScope: z.ZodString;
4353
+ model: z.ZodEffects<z.ZodEffects<z.ZodObject<{
4354
+ baseUrl: z.ZodString;
4355
+ apiKey: z.ZodOptional<z.ZodString>;
4356
+ credential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4357
+ type: z.ZodLiteral<"INLINE_API_KEY">;
4358
+ value: z.ZodString;
4359
+ }, "strict", z.ZodTypeAny, {
4360
+ value: string;
4361
+ type: "INLINE_API_KEY";
4362
+ }, {
4363
+ value: string;
4364
+ type: "INLINE_API_KEY";
4365
+ }>, z.ZodEffects<z.ZodObject<{
4366
+ type: z.ZodLiteral<"RUNTIME_TICKET">;
4367
+ credentialId: z.ZodString;
4368
+ ticket: z.ZodEffects<z.ZodObject<{
4369
+ userId: z.ZodNumber;
4370
+ credentialId: z.ZodString;
4371
+ nodeId: z.ZodString;
4372
+ workspaceId: z.ZodString;
4373
+ sessionId: z.ZodOptional<z.ZodString>;
4374
+ runtimeScopeId: z.ZodString;
4375
+ allowedModelIds: z.ZodArray<z.ZodString, "many">;
4376
+ purpose: z.ZodOptional<z.ZodEnum<["MODEL", "IMAGE_GENERATION"]>>;
4377
+ issuedAt: z.ZodNumber;
4378
+ expiresAt: z.ZodNumber;
4379
+ nonce: z.ZodString;
4380
+ signature: z.ZodString;
4381
+ }, "strict", z.ZodTypeAny, {
4382
+ nonce: string;
4383
+ expiresAt: number;
4384
+ workspaceId: string;
4385
+ nodeId: string;
4386
+ userId: number;
4387
+ issuedAt: number;
4388
+ credentialId: string;
4389
+ runtimeScopeId: string;
4390
+ allowedModelIds: string[];
4391
+ signature: string;
4392
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4393
+ sessionId?: string | undefined;
4394
+ }, {
4395
+ nonce: string;
4396
+ expiresAt: number;
4397
+ workspaceId: string;
4398
+ nodeId: string;
4399
+ userId: number;
4400
+ issuedAt: number;
4401
+ credentialId: string;
4402
+ runtimeScopeId: string;
4403
+ allowedModelIds: string[];
4404
+ signature: string;
4405
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4406
+ sessionId?: string | undefined;
4407
+ }>, {
4408
+ nonce: string;
4409
+ expiresAt: number;
4410
+ workspaceId: string;
4411
+ nodeId: string;
4412
+ userId: number;
4413
+ issuedAt: number;
4414
+ credentialId: string;
4415
+ runtimeScopeId: string;
4416
+ allowedModelIds: string[];
4417
+ signature: string;
4418
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4419
+ sessionId?: string | undefined;
4420
+ }, {
4421
+ nonce: string;
4422
+ expiresAt: number;
4423
+ workspaceId: string;
4424
+ nodeId: string;
4425
+ userId: number;
4426
+ issuedAt: number;
4427
+ credentialId: string;
4428
+ runtimeScopeId: string;
4429
+ allowedModelIds: string[];
4430
+ signature: string;
4431
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4432
+ sessionId?: string | undefined;
4433
+ }>;
4434
+ }, "strict", z.ZodTypeAny, {
4435
+ type: "RUNTIME_TICKET";
4436
+ credentialId: string;
4437
+ ticket: {
4438
+ nonce: string;
4439
+ expiresAt: number;
4440
+ workspaceId: string;
4441
+ nodeId: string;
4442
+ userId: number;
4443
+ issuedAt: number;
4444
+ credentialId: string;
4445
+ runtimeScopeId: string;
4446
+ allowedModelIds: string[];
4447
+ signature: string;
4448
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4449
+ sessionId?: string | undefined;
4450
+ };
4451
+ }, {
4452
+ type: "RUNTIME_TICKET";
4453
+ credentialId: string;
4454
+ ticket: {
4455
+ nonce: string;
4456
+ expiresAt: number;
4457
+ workspaceId: string;
4458
+ nodeId: string;
4459
+ userId: number;
4460
+ issuedAt: number;
4461
+ credentialId: string;
4462
+ runtimeScopeId: string;
4463
+ allowedModelIds: string[];
4464
+ signature: string;
4465
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4466
+ sessionId?: string | undefined;
4467
+ };
4468
+ }>, {
4469
+ type: "RUNTIME_TICKET";
4470
+ credentialId: string;
4471
+ ticket: {
4472
+ nonce: string;
4473
+ expiresAt: number;
4474
+ workspaceId: string;
4475
+ nodeId: string;
4476
+ userId: number;
4477
+ issuedAt: number;
4478
+ credentialId: string;
4479
+ runtimeScopeId: string;
4480
+ allowedModelIds: string[];
4481
+ signature: string;
4482
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4483
+ sessionId?: string | undefined;
4484
+ };
4485
+ }, {
4486
+ type: "RUNTIME_TICKET";
4487
+ credentialId: string;
4488
+ ticket: {
4489
+ nonce: string;
4490
+ expiresAt: number;
4491
+ workspaceId: string;
4492
+ nodeId: string;
4493
+ userId: number;
4494
+ issuedAt: number;
4495
+ credentialId: string;
4496
+ runtimeScopeId: string;
4497
+ allowedModelIds: string[];
4498
+ signature: string;
4499
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4500
+ sessionId?: string | undefined;
4501
+ };
4502
+ }>]>>;
4503
+ responsesToolNamespace: z.ZodOptional<z.ZodString>;
4504
+ responsesConfigurationUpdates: z.ZodOptional<z.ZodBoolean>;
4505
+ responsesOptionalParameters: z.ZodOptional<z.ZodObject<{
4506
+ reasoningEffort: z.ZodBoolean;
4507
+ reasoningSummary: z.ZodBoolean;
4508
+ textVerbosity: z.ZodBoolean;
4509
+ promptCacheKey: z.ZodBoolean;
4510
+ nativeTools: z.ZodOptional<z.ZodBoolean>;
4511
+ }, "strict", z.ZodTypeAny, {
4512
+ reasoningEffort: boolean;
4513
+ reasoningSummary: boolean;
4514
+ textVerbosity: boolean;
4515
+ promptCacheKey: boolean;
4516
+ nativeTools?: boolean | undefined;
4517
+ }, {
4518
+ reasoningEffort: boolean;
4519
+ reasoningSummary: boolean;
4520
+ textVerbosity: boolean;
4521
+ promptCacheKey: boolean;
4522
+ nativeTools?: boolean | undefined;
4523
+ }>>;
4524
+ imageGeneration: z.ZodOptional<z.ZodObject<{
4525
+ provider: z.ZodOptional<z.ZodString>;
4526
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4527
+ generateEndpoint: z.ZodString;
4528
+ editEndpoint: z.ZodString;
4529
+ imageModelId: z.ZodString;
4530
+ httpVersion: z.ZodEnum<["1.1", "2"]>;
4531
+ credential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4532
+ type: z.ZodLiteral<"INLINE_API_KEY">;
4533
+ value: z.ZodString;
4534
+ }, "strict", z.ZodTypeAny, {
4535
+ value: string;
4536
+ type: "INLINE_API_KEY";
4537
+ }, {
4538
+ value: string;
4539
+ type: "INLINE_API_KEY";
4540
+ }>, z.ZodEffects<z.ZodObject<{
4541
+ type: z.ZodLiteral<"RUNTIME_TICKET">;
4542
+ credentialId: z.ZodString;
4543
+ ticket: z.ZodEffects<z.ZodObject<{
4544
+ userId: z.ZodNumber;
4545
+ credentialId: z.ZodString;
4546
+ nodeId: z.ZodString;
4547
+ workspaceId: z.ZodString;
4548
+ sessionId: z.ZodOptional<z.ZodString>;
4549
+ runtimeScopeId: z.ZodString;
4550
+ allowedModelIds: z.ZodArray<z.ZodString, "many">;
4551
+ purpose: z.ZodOptional<z.ZodEnum<["MODEL", "IMAGE_GENERATION"]>>;
4552
+ issuedAt: z.ZodNumber;
4553
+ expiresAt: z.ZodNumber;
4554
+ nonce: z.ZodString;
4555
+ signature: z.ZodString;
4556
+ }, "strict", z.ZodTypeAny, {
4557
+ nonce: string;
4558
+ expiresAt: number;
4559
+ workspaceId: string;
4560
+ nodeId: string;
4561
+ userId: number;
4562
+ issuedAt: number;
4563
+ credentialId: string;
4564
+ runtimeScopeId: string;
4565
+ allowedModelIds: string[];
4566
+ signature: string;
4567
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4568
+ sessionId?: string | undefined;
4569
+ }, {
4570
+ nonce: string;
4571
+ expiresAt: number;
4572
+ workspaceId: string;
4573
+ nodeId: string;
4574
+ userId: number;
4575
+ issuedAt: number;
4576
+ credentialId: string;
4577
+ runtimeScopeId: string;
4578
+ allowedModelIds: string[];
4579
+ signature: string;
4580
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4581
+ sessionId?: string | undefined;
4582
+ }>, {
4583
+ nonce: string;
4584
+ expiresAt: number;
4585
+ workspaceId: string;
4586
+ nodeId: string;
4587
+ userId: number;
4588
+ issuedAt: number;
4589
+ credentialId: string;
4590
+ runtimeScopeId: string;
4591
+ allowedModelIds: string[];
4592
+ signature: string;
4593
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4594
+ sessionId?: string | undefined;
4595
+ }, {
4596
+ nonce: string;
4597
+ expiresAt: number;
4598
+ workspaceId: string;
4599
+ nodeId: string;
4600
+ userId: number;
4601
+ issuedAt: number;
4602
+ credentialId: string;
4603
+ runtimeScopeId: string;
4604
+ allowedModelIds: string[];
4605
+ signature: string;
4606
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4607
+ sessionId?: string | undefined;
4608
+ }>;
4609
+ }, "strict", z.ZodTypeAny, {
4610
+ type: "RUNTIME_TICKET";
4611
+ credentialId: string;
4612
+ ticket: {
4613
+ nonce: string;
4614
+ expiresAt: number;
4615
+ workspaceId: string;
4616
+ nodeId: string;
4617
+ userId: number;
4618
+ issuedAt: number;
4619
+ credentialId: string;
4620
+ runtimeScopeId: string;
4621
+ allowedModelIds: string[];
4622
+ signature: string;
4623
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4624
+ sessionId?: string | undefined;
4625
+ };
4626
+ }, {
4627
+ type: "RUNTIME_TICKET";
4628
+ credentialId: string;
4629
+ ticket: {
4630
+ nonce: string;
4631
+ expiresAt: number;
4632
+ workspaceId: string;
4633
+ nodeId: string;
4634
+ userId: number;
4635
+ issuedAt: number;
4636
+ credentialId: string;
4637
+ runtimeScopeId: string;
4638
+ allowedModelIds: string[];
4639
+ signature: string;
4640
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4641
+ sessionId?: string | undefined;
4642
+ };
4643
+ }>, {
4644
+ type: "RUNTIME_TICKET";
4645
+ credentialId: string;
4646
+ ticket: {
4647
+ nonce: string;
4648
+ expiresAt: number;
4649
+ workspaceId: string;
4650
+ nodeId: string;
4651
+ userId: number;
4652
+ issuedAt: number;
4653
+ credentialId: string;
4654
+ runtimeScopeId: string;
4655
+ allowedModelIds: string[];
4656
+ signature: string;
4657
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4658
+ sessionId?: string | undefined;
4659
+ };
4660
+ }, {
4661
+ type: "RUNTIME_TICKET";
4662
+ credentialId: string;
4663
+ ticket: {
4664
+ nonce: string;
4665
+ expiresAt: number;
4666
+ workspaceId: string;
4667
+ nodeId: string;
4668
+ userId: number;
4669
+ issuedAt: number;
4670
+ credentialId: string;
4671
+ runtimeScopeId: string;
4672
+ allowedModelIds: string[];
4673
+ signature: string;
4674
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4675
+ sessionId?: string | undefined;
4676
+ };
4677
+ }>]>>;
4678
+ }, "strict", z.ZodTypeAny, {
4679
+ imageModelId: string;
4680
+ httpVersion: "2" | "1.1";
4681
+ generateEndpoint: string;
4682
+ editEndpoint: string;
4683
+ provider?: string | undefined;
4684
+ credential?: {
4685
+ value: string;
4686
+ type: "INLINE_API_KEY";
4687
+ } | {
4688
+ type: "RUNTIME_TICKET";
4689
+ credentialId: string;
4690
+ ticket: {
4691
+ nonce: string;
4692
+ expiresAt: number;
4693
+ workspaceId: string;
4694
+ nodeId: string;
4695
+ userId: number;
4696
+ issuedAt: number;
4697
+ credentialId: string;
4698
+ runtimeScopeId: string;
4699
+ allowedModelIds: string[];
4700
+ signature: string;
4701
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4702
+ sessionId?: string | undefined;
4703
+ };
4704
+ } | undefined;
4705
+ config?: Record<string, string> | undefined;
4706
+ }, {
4707
+ imageModelId: string;
4708
+ httpVersion: "2" | "1.1";
4709
+ generateEndpoint: string;
4710
+ editEndpoint: string;
4711
+ provider?: string | undefined;
4712
+ credential?: {
4713
+ value: string;
4714
+ type: "INLINE_API_KEY";
4715
+ } | {
4716
+ type: "RUNTIME_TICKET";
4717
+ credentialId: string;
4718
+ ticket: {
4719
+ nonce: string;
4720
+ expiresAt: number;
4721
+ workspaceId: string;
4722
+ nodeId: string;
4723
+ userId: number;
4724
+ issuedAt: number;
4725
+ credentialId: string;
4726
+ runtimeScopeId: string;
4727
+ allowedModelIds: string[];
4728
+ signature: string;
4729
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4730
+ sessionId?: string | undefined;
4731
+ };
4732
+ } | undefined;
4733
+ config?: Record<string, string> | undefined;
4734
+ }>>;
4735
+ id: z.ZodString;
4736
+ name: z.ZodString;
4737
+ protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
4738
+ modelId: z.ZodString;
4739
+ contextWindowTokens: z.ZodNumber;
4740
+ maxOutputTokens: z.ZodNumber;
4741
+ inputCapabilities: z.ZodArray<z.ZodEnum<["TEXT", "IMAGE"]>, "many">;
4742
+ outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
4743
+ reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
4744
+ defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
4745
+ titleGeneration: z.ZodDefault<z.ZodBoolean>;
4746
+ codeMode: z.ZodDefault<z.ZodBoolean>;
4747
+ fastMode: z.ZodOptional<z.ZodBoolean>;
4748
+ serviceTier: z.ZodOptional<z.ZodEnum<["auto", "default", "flex", "priority", "fast", "ultrafast"]>>;
4749
+ hostedWebSearch: z.ZodBoolean;
4750
+ responsesTransport: z.ZodOptional<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
4751
+ transport: z.ZodLiteral<"WEBSOCKET">;
4752
+ }, "strict", z.ZodTypeAny, {
4753
+ transport: "WEBSOCKET";
4754
+ }, {
4755
+ transport: "WEBSOCKET";
4756
+ }>, z.ZodObject<{
4757
+ transport: z.ZodLiteral<"HTTP">;
4758
+ httpVersion: z.ZodEnum<["1.1", "2"]>;
4759
+ }, "strict", z.ZodTypeAny, {
4760
+ transport: "HTTP";
4761
+ httpVersion: "2" | "1.1";
4762
+ }, {
4763
+ transport: "HTTP";
4764
+ httpVersion: "2" | "1.1";
4765
+ }>]>>;
4766
+ responsesPreviousResponseId: z.ZodDefault<z.ZodBoolean>;
4767
+ enabled: z.ZodBoolean;
4768
+ }, "strip", z.ZodTypeAny, {
4769
+ name: string;
4770
+ id: string;
4771
+ modelId: string;
4772
+ protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
4773
+ enabled: boolean;
4774
+ baseUrl: string;
4775
+ contextWindowTokens: number;
4776
+ maxOutputTokens: number;
4777
+ inputCapabilities: ("TEXT" | "IMAGE")[];
4778
+ outputCapabilities: ["TEXT"];
4779
+ reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
4780
+ titleGeneration: boolean;
4781
+ codeMode: boolean;
4782
+ hostedWebSearch: boolean;
4783
+ responsesPreviousResponseId: boolean;
4784
+ fastMode?: boolean | undefined;
4785
+ responsesOptionalParameters?: {
4786
+ reasoningEffort: boolean;
4787
+ reasoningSummary: boolean;
4788
+ textVerbosity: boolean;
4789
+ promptCacheKey: boolean;
4790
+ nativeTools?: boolean | undefined;
4791
+ } | undefined;
4792
+ credential?: {
4793
+ value: string;
4794
+ type: "INLINE_API_KEY";
4795
+ } | {
4796
+ type: "RUNTIME_TICKET";
4797
+ credentialId: string;
4798
+ ticket: {
4799
+ nonce: string;
4800
+ expiresAt: number;
4801
+ workspaceId: string;
4802
+ nodeId: string;
4803
+ userId: number;
4804
+ issuedAt: number;
4805
+ credentialId: string;
4806
+ runtimeScopeId: string;
4807
+ allowedModelIds: string[];
4808
+ signature: string;
4809
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4810
+ sessionId?: string | undefined;
4811
+ };
4812
+ } | undefined;
4813
+ apiKey?: string | undefined;
4814
+ imageGeneration?: {
4815
+ imageModelId: string;
4816
+ httpVersion: "2" | "1.1";
4817
+ generateEndpoint: string;
4818
+ editEndpoint: string;
4819
+ provider?: string | undefined;
4820
+ credential?: {
4821
+ value: string;
4822
+ type: "INLINE_API_KEY";
4823
+ } | {
4824
+ type: "RUNTIME_TICKET";
4825
+ credentialId: string;
4826
+ ticket: {
4827
+ nonce: string;
4828
+ expiresAt: number;
4829
+ workspaceId: string;
4830
+ nodeId: string;
4831
+ userId: number;
4832
+ issuedAt: number;
4833
+ credentialId: string;
4834
+ runtimeScopeId: string;
4835
+ allowedModelIds: string[];
4836
+ signature: string;
4837
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4838
+ sessionId?: string | undefined;
4839
+ };
4840
+ } | undefined;
4841
+ config?: Record<string, string> | undefined;
4842
+ } | undefined;
4843
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
4844
+ serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
4845
+ responsesTransport?: {
4846
+ transport: "WEBSOCKET";
4847
+ } | {
4848
+ transport: "HTTP";
4849
+ httpVersion: "2" | "1.1";
4850
+ } | undefined;
4851
+ responsesToolNamespace?: string | undefined;
4852
+ responsesConfigurationUpdates?: boolean | undefined;
4853
+ }, {
4854
+ name: string;
4855
+ id: string;
4856
+ modelId: string;
4857
+ protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
4858
+ enabled: boolean;
4859
+ baseUrl: string;
4860
+ contextWindowTokens: number;
4861
+ maxOutputTokens: number;
4862
+ inputCapabilities: ("TEXT" | "IMAGE")[];
4863
+ outputCapabilities: ["TEXT"];
4864
+ reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
4865
+ hostedWebSearch: boolean;
4866
+ fastMode?: boolean | undefined;
4867
+ responsesOptionalParameters?: {
4868
+ reasoningEffort: boolean;
4869
+ reasoningSummary: boolean;
4870
+ textVerbosity: boolean;
4871
+ promptCacheKey: boolean;
4872
+ nativeTools?: boolean | undefined;
4873
+ } | undefined;
3575
4874
  credential?: {
3576
4875
  value: string;
3577
4876
  type: "INLINE_API_KEY";
@@ -3593,53 +4892,83 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
3593
4892
  sessionId?: string | undefined;
3594
4893
  };
3595
4894
  } | undefined;
3596
- config?: Record<string, string> | undefined;
3597
- } | undefined;
3598
- defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
3599
- titleGeneration?: boolean | undefined;
3600
- codeMode?: boolean | undefined;
3601
- serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
3602
- responsesTransport?: {
3603
- transport: "WEBSOCKET";
3604
- } | {
3605
- transport: "HTTP";
3606
- httpVersion: "2" | "1.1";
3607
- } | undefined;
3608
- responsesPreviousResponseId?: boolean | undefined;
3609
- responsesToolNamespace?: string | undefined;
3610
- responsesConfigurationUpdates?: boolean | undefined;
3611
- }>, {
3612
- [x: string]: any;
3613
- }, {
3614
- [x: string]: any;
3615
- }>, {
3616
- [x: string]: any;
3617
- }, {
3618
- [x: string]: any;
3619
- }>;
3620
- export type MarAgentRuntimeModelConfiguration = z.infer<typeof marAgentRuntimeModelConfigurationSchema>;
3621
- export declare const marAgentCompactConfigurationSchema: z.ZodEffects<z.ZodObject<{
3622
- enabled: z.ZodBoolean;
3623
- modelId: z.ZodNullable<z.ZodString>;
3624
- reasoningEffort: z.ZodNullable<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
4895
+ apiKey?: string | undefined;
4896
+ imageGeneration?: {
4897
+ imageModelId: string;
4898
+ httpVersion: "2" | "1.1";
4899
+ generateEndpoint: string;
4900
+ editEndpoint: string;
4901
+ provider?: string | undefined;
4902
+ credential?: {
4903
+ value: string;
4904
+ type: "INLINE_API_KEY";
4905
+ } | {
4906
+ type: "RUNTIME_TICKET";
4907
+ credentialId: string;
4908
+ ticket: {
4909
+ nonce: string;
4910
+ expiresAt: number;
4911
+ workspaceId: string;
4912
+ nodeId: string;
4913
+ userId: number;
4914
+ issuedAt: number;
4915
+ credentialId: string;
4916
+ runtimeScopeId: string;
4917
+ allowedModelIds: string[];
4918
+ signature: string;
4919
+ purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
4920
+ sessionId?: string | undefined;
4921
+ };
4922
+ } | undefined;
4923
+ config?: Record<string, string> | undefined;
4924
+ } | undefined;
4925
+ defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
4926
+ titleGeneration?: boolean | undefined;
4927
+ codeMode?: boolean | undefined;
4928
+ serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
4929
+ responsesTransport?: {
4930
+ transport: "WEBSOCKET";
4931
+ } | {
4932
+ transport: "HTTP";
4933
+ httpVersion: "2" | "1.1";
4934
+ } | undefined;
4935
+ responsesPreviousResponseId?: boolean | undefined;
4936
+ responsesToolNamespace?: string | undefined;
4937
+ responsesConfigurationUpdates?: boolean | undefined;
4938
+ }>, {
4939
+ [x: string]: any;
4940
+ }, {
4941
+ [x: string]: any;
4942
+ }>, {
4943
+ [x: string]: any;
4944
+ }, {
4945
+ [x: string]: any;
4946
+ }>;
4947
+ reasoningEffort: z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>;
3625
4948
  }, "strict", z.ZodTypeAny, {
3626
- modelId: string | null;
3627
- enabled: boolean;
3628
- reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3629
- }, {
3630
- modelId: string | null;
3631
- enabled: boolean;
3632
- reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
3633
- }>, {
3634
- modelId: string | null;
3635
- enabled: boolean;
3636
- reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
4949
+ expiresAt: number;
4950
+ workspaceId: string;
4951
+ model: {
4952
+ [x: string]: any;
4953
+ };
4954
+ runtimeScopeId: string;
4955
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra";
4956
+ authorizationView: string;
4957
+ modelRevision: string;
4958
+ credentialScope: string;
3637
4959
  }, {
3638
- modelId: string | null;
3639
- enabled: boolean;
3640
- reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
4960
+ expiresAt: number;
4961
+ workspaceId: string;
4962
+ model: {
4963
+ [x: string]: any;
4964
+ };
4965
+ runtimeScopeId: string;
4966
+ reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra";
4967
+ authorizationView: string;
4968
+ modelRevision: string;
4969
+ credentialScope: string;
3641
4970
  }>;
3642
- export type MarAgentCompactConfiguration = z.infer<typeof marAgentCompactConfigurationSchema>;
4971
+ export type PromptCompletionRuntime = z.infer<typeof promptCompletionRuntimeSchema>;
3643
4972
  export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
3644
4973
  model: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3645
4974
  baseUrl: z.ZodString;
@@ -7487,8 +8816,8 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
7487
8816
  };
7488
8817
  platform: "windows" | "linux" | "macos";
7489
8818
  architecture: string;
7490
- manifestVersion: 1;
7491
8819
  observedAt: number;
8820
+ manifestVersion: 1;
7492
8821
  runners: {
7493
8822
  runner: "mar-agent" | "codex" | "claude-code" | "opencode";
7494
8823
  capabilities: string[];
@@ -7547,8 +8876,8 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
7547
8876
  };
7548
8877
  platform: "windows" | "linux" | "macos";
7549
8878
  architecture: string;
7550
- manifestVersion: 1;
7551
8879
  observedAt: number;
8880
+ manifestVersion: 1;
7552
8881
  runners: {
7553
8882
  runner: "mar-agent" | "codex" | "claude-code" | "opencode";
7554
8883
  capabilities: string[];
@@ -12850,7 +14179,7 @@ export declare const hostedConversationSummarySchema: z.ZodObject<{
12850
14179
  };
12851
14180
  templateName: string;
12852
14181
  activeVersionId: string;
12853
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
14182
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
12854
14183
  pinnedAt: number | null;
12855
14184
  lastActivityAt: number;
12856
14185
  }, {
@@ -12872,7 +14201,7 @@ export declare const hostedConversationSummarySchema: z.ZodObject<{
12872
14201
  updatedAt: number;
12873
14202
  version: number;
12874
14203
  } | undefined;
12875
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
14204
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
12876
14205
  }>;
12877
14206
  export type HostedConversationSummary = z.infer<typeof hostedConversationSummarySchema>;
12878
14207
  export declare const hostedConversationManifestSchema: z.ZodEffects<z.ZodObject<{
@@ -12917,7 +14246,7 @@ export declare const hostedConversationManifestSchema: z.ZodEffects<z.ZodObject<
12917
14246
  title: string;
12918
14247
  templateName: string;
12919
14248
  activeVersionId: string;
12920
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
14249
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
12921
14250
  pinnedAt: number | null;
12922
14251
  lastActivityAt: number;
12923
14252
  userStorageKey: string;
@@ -12949,7 +14278,7 @@ export declare const hostedConversationManifestSchema: z.ZodEffects<z.ZodObject<
12949
14278
  maxBytes: number;
12950
14279
  usedBytes: number;
12951
14280
  };
12952
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
14281
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
12953
14282
  clientRequestId?: string | undefined;
12954
14283
  }>, {
12955
14284
  status: "ACTIVE";
@@ -12963,7 +14292,7 @@ export declare const hostedConversationManifestSchema: z.ZodEffects<z.ZodObject<
12963
14292
  title: string;
12964
14293
  templateName: string;
12965
14294
  activeVersionId: string;
12966
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
14295
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
12967
14296
  pinnedAt: number | null;
12968
14297
  lastActivityAt: number;
12969
14298
  userStorageKey: string;
@@ -12995,7 +14324,7 @@ export declare const hostedConversationManifestSchema: z.ZodEffects<z.ZodObject<
12995
14324
  maxBytes: number;
12996
14325
  usedBytes: number;
12997
14326
  };
12998
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
14327
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
12999
14328
  clientRequestId?: string | undefined;
13000
14329
  }>;
13001
14330
  export type HostedConversationManifest = z.infer<typeof hostedConversationManifestSchema>;
@@ -13088,7 +14417,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13088
14417
  };
13089
14418
  templateName: string;
13090
14419
  activeVersionId: string;
13091
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
14420
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
13092
14421
  pinnedAt: number | null;
13093
14422
  lastActivityAt: number;
13094
14423
  }, {
@@ -13110,7 +14439,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13110
14439
  updatedAt: number;
13111
14440
  version: number;
13112
14441
  } | undefined;
13113
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
14442
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
13114
14443
  }>;
13115
14444
  template: z.ZodEffects<z.ZodObject<{
13116
14445
  id: z.ZodString;
@@ -15772,7 +17101,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
15772
17101
  };
15773
17102
  templateName: string;
15774
17103
  activeVersionId: string;
15775
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
17104
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
15776
17105
  pinnedAt: number | null;
15777
17106
  lastActivityAt: number;
15778
17107
  };
@@ -16222,7 +17551,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
16222
17551
  updatedAt: number;
16223
17552
  version: number;
16224
17553
  } | undefined;
16225
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
17554
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
16226
17555
  };
16227
17556
  error: {
16228
17557
  code: string;
@@ -16668,7 +17997,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
16668
17997
  };
16669
17998
  templateName: string;
16670
17999
  activeVersionId: string;
16671
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
18000
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
16672
18001
  pinnedAt: number | null;
16673
18002
  lastActivityAt: number;
16674
18003
  };
@@ -17118,7 +18447,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
17118
18447
  updatedAt: number;
17119
18448
  version: number;
17120
18449
  } | undefined;
17121
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
18450
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
17122
18451
  };
17123
18452
  error: {
17124
18453
  code: string;
@@ -17603,7 +18932,7 @@ export declare const hostedConversationListPageSchema: z.ZodObject<{
17603
18932
  };
17604
18933
  templateName: string;
17605
18934
  activeVersionId: string;
17606
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
18935
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
17607
18936
  pinnedAt: number | null;
17608
18937
  lastActivityAt: number;
17609
18938
  }, {
@@ -17625,7 +18954,7 @@ export declare const hostedConversationListPageSchema: z.ZodObject<{
17625
18954
  updatedAt: number;
17626
18955
  version: number;
17627
18956
  } | undefined;
17628
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
18957
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
17629
18958
  }>, "many">;
17630
18959
  nextCursor: z.ZodNullable<z.ZodString>;
17631
18960
  }, "strict", z.ZodTypeAny, {
@@ -17647,7 +18976,7 @@ export declare const hostedConversationListPageSchema: z.ZodObject<{
17647
18976
  };
17648
18977
  templateName: string;
17649
18978
  activeVersionId: string;
17650
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
18979
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
17651
18980
  pinnedAt: number | null;
17652
18981
  lastActivityAt: number;
17653
18982
  }[];
@@ -17672,7 +19001,7 @@ export declare const hostedConversationListPageSchema: z.ZodObject<{
17672
19001
  updatedAt: number;
17673
19002
  version: number;
17674
19003
  } | undefined;
17675
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
19004
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
17676
19005
  }[];
17677
19006
  }>;
17678
19007
  export type HostedConversationListPage = z.infer<typeof hostedConversationListPageSchema>;
@@ -17723,7 +19052,7 @@ export declare const hostedConversationDirectoryPageSchema: z.ZodObject<{
17723
19052
  };
17724
19053
  templateName: string;
17725
19054
  activeVersionId: string;
17726
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
19055
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
17727
19056
  pinnedAt: number | null;
17728
19057
  lastActivityAt: number;
17729
19058
  }, {
@@ -17745,7 +19074,7 @@ export declare const hostedConversationDirectoryPageSchema: z.ZodObject<{
17745
19074
  updatedAt: number;
17746
19075
  version: number;
17747
19076
  } | undefined;
17748
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
19077
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
17749
19078
  }>, "many">;
17750
19079
  nextCursor: z.ZodNullable<z.ZodString>;
17751
19080
  }, "strict", z.ZodTypeAny, {
@@ -17767,7 +19096,7 @@ export declare const hostedConversationDirectoryPageSchema: z.ZodObject<{
17767
19096
  };
17768
19097
  templateName: string;
17769
19098
  activeVersionId: string;
17770
- titleSource: "DEFAULT" | "AUTO" | "CUSTOM";
19099
+ titleSource: "AUTO" | "DEFAULT" | "CUSTOM";
17771
19100
  pinnedAt: number | null;
17772
19101
  lastActivityAt: number;
17773
19102
  }[];
@@ -17792,7 +19121,7 @@ export declare const hostedConversationDirectoryPageSchema: z.ZodObject<{
17792
19121
  updatedAt: number;
17793
19122
  version: number;
17794
19123
  } | undefined;
17795
- titleSource?: "DEFAULT" | "AUTO" | "CUSTOM" | undefined;
19124
+ titleSource?: "AUTO" | "DEFAULT" | "CUSTOM" | undefined;
17796
19125
  }[];
17797
19126
  }>;
17798
19127
  export type HostedConversationDirectoryPage = z.infer<typeof hostedConversationDirectoryPageSchema>;
@@ -28588,7 +29917,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
28588
29917
  previousPath?: string | undefined;
28589
29918
  }>;
28590
29919
  export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
28591
- 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.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", "workspace.files.list", "workspace.file.read", "workspace.file.write", "workspace.file.content.read", "workspace.file.direct.metadata", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.symbol.prepare", "workspace.symbol.definition", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "workspace.git.commit.file.content.read", "workspace.git.commit.file.direct.metadata", "run.image.read", "terminal.open", "terminal.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.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"]>;
29920
+ 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.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", "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.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"]>;
28592
29921
  export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
28593
29922
  /**
28594
29923
  * A small, explicit envelope keeps WebSocket messages independently parseable