@myagentroam/protocol 0.11.19 → 0.11.20
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 +161 -1
- package/dist/index.js +21 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -25870,14 +25870,174 @@ export type HostedConversationSnapshot = z.infer<typeof hostedConversationSnapsh
|
|
|
25870
25870
|
export declare const hostedConversationCreateInputSchema: z.ZodObject<{
|
|
25871
25871
|
templateId: z.ZodString;
|
|
25872
25872
|
clientRequestId: z.ZodString;
|
|
25873
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
25873
25874
|
}, "strict", z.ZodTypeAny, {
|
|
25874
25875
|
templateId: string;
|
|
25875
25876
|
clientRequestId: string;
|
|
25877
|
+
modelId?: string | undefined;
|
|
25876
25878
|
}, {
|
|
25877
25879
|
templateId: string;
|
|
25878
25880
|
clientRequestId: string;
|
|
25881
|
+
modelId?: string | undefined;
|
|
25879
25882
|
}>;
|
|
25880
25883
|
export type HostedConversationCreateInput = z.infer<typeof hostedConversationCreateInputSchema>;
|
|
25884
|
+
export declare const hostedConversationModelOptionsInputSchema: z.ZodObject<{
|
|
25885
|
+
templateId: z.ZodString;
|
|
25886
|
+
}, "strict", z.ZodTypeAny, {
|
|
25887
|
+
templateId: string;
|
|
25888
|
+
}, {
|
|
25889
|
+
templateId: string;
|
|
25890
|
+
}>;
|
|
25891
|
+
export declare const hostedConversationModelOptionsSchema: z.ZodEffects<z.ZodObject<{
|
|
25892
|
+
models: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
25893
|
+
access: z.ZodOptional<z.ZodNever>;
|
|
25894
|
+
apiKey: z.ZodOptional<z.ZodNever>;
|
|
25895
|
+
credential: z.ZodOptional<z.ZodNever>;
|
|
25896
|
+
imageGeneration: z.ZodOptional<z.ZodNever>;
|
|
25897
|
+
baseUrl: z.ZodString;
|
|
25898
|
+
sortOrder: z.ZodNumber;
|
|
25899
|
+
apiKeyConfigured: z.ZodOptional<z.ZodBoolean>;
|
|
25900
|
+
credentialType: z.ZodOptional<z.ZodEnum<["INLINE_API_KEY", "CREDENTIAL_REF"]>>;
|
|
25901
|
+
credentialConfigured: z.ZodOptional<z.ZodBoolean>;
|
|
25902
|
+
lastTestedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25903
|
+
lastTestStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNVERIFIED", "SUCCEEDED", "FAILED"]>>>;
|
|
25904
|
+
lastTestCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25905
|
+
id: z.ZodString;
|
|
25906
|
+
name: z.ZodString;
|
|
25907
|
+
protocol: z.ZodEnum<["OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"]>;
|
|
25908
|
+
modelId: z.ZodString;
|
|
25909
|
+
contextWindowTokens: z.ZodNumber;
|
|
25910
|
+
maxOutputTokens: z.ZodNumber;
|
|
25911
|
+
inputCapabilities: z.ZodArray<z.ZodEnum<["TEXT", "IMAGE"]>, "many">;
|
|
25912
|
+
outputCapabilities: z.ZodTuple<[z.ZodLiteral<"TEXT">], null>;
|
|
25913
|
+
reasoningEfforts: z.ZodArray<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>, "many">;
|
|
25914
|
+
defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
25915
|
+
conversationModel: z.ZodDefault<z.ZodBoolean>;
|
|
25916
|
+
titleGeneration: z.ZodDefault<z.ZodBoolean>;
|
|
25917
|
+
codeMode: z.ZodDefault<z.ZodBoolean>;
|
|
25918
|
+
fastMode: z.ZodOptional<z.ZodBoolean>;
|
|
25919
|
+
serviceTier: z.ZodOptional<z.ZodEnum<["auto", "default", "flex", "priority", "fast", "ultrafast"]>>;
|
|
25920
|
+
hostedWebSearch: z.ZodBoolean;
|
|
25921
|
+
responsesTransport: z.ZodOptional<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
|
|
25922
|
+
transport: z.ZodLiteral<"WEBSOCKET">;
|
|
25923
|
+
}, "strict", z.ZodTypeAny, {
|
|
25924
|
+
transport: "WEBSOCKET";
|
|
25925
|
+
}, {
|
|
25926
|
+
transport: "WEBSOCKET";
|
|
25927
|
+
}>, z.ZodObject<{
|
|
25928
|
+
transport: z.ZodLiteral<"HTTP">;
|
|
25929
|
+
httpVersion: z.ZodEnum<["1.1", "2"]>;
|
|
25930
|
+
}, "strict", z.ZodTypeAny, {
|
|
25931
|
+
transport: "HTTP";
|
|
25932
|
+
httpVersion: "2" | "1.1";
|
|
25933
|
+
}, {
|
|
25934
|
+
transport: "HTTP";
|
|
25935
|
+
httpVersion: "2" | "1.1";
|
|
25936
|
+
}>]>>;
|
|
25937
|
+
responsesPreviousResponseId: z.ZodDefault<z.ZodBoolean>;
|
|
25938
|
+
enabled: z.ZodBoolean;
|
|
25939
|
+
}, "strip", z.ZodTypeAny, {
|
|
25940
|
+
name: string;
|
|
25941
|
+
id: string;
|
|
25942
|
+
modelId: string;
|
|
25943
|
+
protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
|
|
25944
|
+
enabled: boolean;
|
|
25945
|
+
sortOrder: number;
|
|
25946
|
+
baseUrl: string;
|
|
25947
|
+
contextWindowTokens: number;
|
|
25948
|
+
maxOutputTokens: number;
|
|
25949
|
+
inputCapabilities: ("TEXT" | "IMAGE")[];
|
|
25950
|
+
outputCapabilities: ["TEXT"];
|
|
25951
|
+
reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
|
|
25952
|
+
conversationModel: boolean;
|
|
25953
|
+
titleGeneration: boolean;
|
|
25954
|
+
codeMode: boolean;
|
|
25955
|
+
hostedWebSearch: boolean;
|
|
25956
|
+
responsesPreviousResponseId: boolean;
|
|
25957
|
+
credential?: undefined;
|
|
25958
|
+
fastMode?: boolean | undefined;
|
|
25959
|
+
apiKey?: undefined;
|
|
25960
|
+
access?: undefined;
|
|
25961
|
+
imageGeneration?: undefined;
|
|
25962
|
+
apiKeyConfigured?: boolean | undefined;
|
|
25963
|
+
credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
|
|
25964
|
+
credentialConfigured?: boolean | undefined;
|
|
25965
|
+
lastTestedAt?: number | null | undefined;
|
|
25966
|
+
lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
|
|
25967
|
+
lastTestCode?: string | null | undefined;
|
|
25968
|
+
defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
|
|
25969
|
+
serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
|
|
25970
|
+
responsesTransport?: {
|
|
25971
|
+
transport: "WEBSOCKET";
|
|
25972
|
+
} | {
|
|
25973
|
+
transport: "HTTP";
|
|
25974
|
+
httpVersion: "2" | "1.1";
|
|
25975
|
+
} | undefined;
|
|
25976
|
+
}, {
|
|
25977
|
+
name: string;
|
|
25978
|
+
id: string;
|
|
25979
|
+
modelId: string;
|
|
25980
|
+
protocol: "OPENAI_RESPONSES" | "ANTHROPIC_MESSAGES";
|
|
25981
|
+
enabled: boolean;
|
|
25982
|
+
sortOrder: number;
|
|
25983
|
+
baseUrl: string;
|
|
25984
|
+
contextWindowTokens: number;
|
|
25985
|
+
maxOutputTokens: number;
|
|
25986
|
+
inputCapabilities: ("TEXT" | "IMAGE")[];
|
|
25987
|
+
outputCapabilities: ["TEXT"];
|
|
25988
|
+
reasoningEfforts: ("low" | "medium" | "high" | "xhigh" | "max" | "ultra")[];
|
|
25989
|
+
hostedWebSearch: boolean;
|
|
25990
|
+
credential?: undefined;
|
|
25991
|
+
fastMode?: boolean | undefined;
|
|
25992
|
+
apiKey?: undefined;
|
|
25993
|
+
access?: undefined;
|
|
25994
|
+
imageGeneration?: undefined;
|
|
25995
|
+
apiKeyConfigured?: boolean | undefined;
|
|
25996
|
+
credentialType?: "INLINE_API_KEY" | "CREDENTIAL_REF" | undefined;
|
|
25997
|
+
credentialConfigured?: boolean | undefined;
|
|
25998
|
+
lastTestedAt?: number | null | undefined;
|
|
25999
|
+
lastTestStatus?: "SUCCEEDED" | "FAILED" | "UNVERIFIED" | null | undefined;
|
|
26000
|
+
lastTestCode?: string | null | undefined;
|
|
26001
|
+
defaultReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
|
|
26002
|
+
conversationModel?: boolean | undefined;
|
|
26003
|
+
titleGeneration?: boolean | undefined;
|
|
26004
|
+
codeMode?: boolean | undefined;
|
|
26005
|
+
serviceTier?: "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | undefined;
|
|
26006
|
+
responsesTransport?: {
|
|
26007
|
+
transport: "WEBSOCKET";
|
|
26008
|
+
} | {
|
|
26009
|
+
transport: "HTTP";
|
|
26010
|
+
httpVersion: "2" | "1.1";
|
|
26011
|
+
} | undefined;
|
|
26012
|
+
responsesPreviousResponseId?: boolean | undefined;
|
|
26013
|
+
}>, {
|
|
26014
|
+
[x: string]: any;
|
|
26015
|
+
}, {
|
|
26016
|
+
[x: string]: any;
|
|
26017
|
+
}>, "many">;
|
|
26018
|
+
defaultModelId: z.ZodNullable<z.ZodString>;
|
|
26019
|
+
}, "strict", z.ZodTypeAny, {
|
|
26020
|
+
models: {
|
|
26021
|
+
[x: string]: any;
|
|
26022
|
+
}[];
|
|
26023
|
+
defaultModelId: string | null;
|
|
26024
|
+
}, {
|
|
26025
|
+
models: {
|
|
26026
|
+
[x: string]: any;
|
|
26027
|
+
}[];
|
|
26028
|
+
defaultModelId: string | null;
|
|
26029
|
+
}>, {
|
|
26030
|
+
models: {
|
|
26031
|
+
[x: string]: any;
|
|
26032
|
+
}[];
|
|
26033
|
+
defaultModelId: string | null;
|
|
26034
|
+
}, {
|
|
26035
|
+
models: {
|
|
26036
|
+
[x: string]: any;
|
|
26037
|
+
}[];
|
|
26038
|
+
defaultModelId: string | null;
|
|
26039
|
+
}>;
|
|
26040
|
+
export type HostedConversationModelOptions = z.infer<typeof hostedConversationModelOptionsSchema>;
|
|
25881
26041
|
export declare const hostedConversationListInputSchema: z.ZodObject<{
|
|
25882
26042
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
25883
26043
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -44091,7 +44251,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
|
|
|
44091
44251
|
previousPath?: string | undefined;
|
|
44092
44252
|
}>;
|
|
44093
44253
|
export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
|
|
44094
|
-
export declare const workbenchNodeOperationSchema: z.ZodEnum<["workspace.git.settings.get", "workspace.git.settings.update", "node.workbench.capabilities", "runner.usage.status", "runner.usage.read", "workspace.directories.list", "workspace.remove", "workspace.watch", "workspace.unwatch", "session.unwatch", "session.metadata.update", "session.schedule.get", "session.schedule.list", "session.schedule.agent.save", "session.cli.context", "session.graph", "session.goal.get", "session.schedule.save", "session.schedule.remove", "session.schedule.proposal.resolve", "session.pin.move", "session.rewind", "session.rollback", "session.remove", "workspace.sessions.cleanup", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.tool-resource.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "mar-agent.model.test", "prompt-completion.context", "prompt-completion.generate", "prompt-completion.cancel", "workspace.files.list", "workspace.file.read", "workspace.file.write", "workspace.file.content.read", "workspace.file.direct.metadata", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.symbol.prepare", "workspace.symbol.definition", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "workspace.git.commit.file.content.read", "workspace.git.commit.file.direct.metadata", "run.image.read", "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"]>;
|
|
44254
|
+
export declare const workbenchNodeOperationSchema: z.ZodEnum<["workspace.git.settings.get", "workspace.git.settings.update", "node.workbench.capabilities", "runner.usage.status", "runner.usage.read", "workspace.directories.list", "workspace.remove", "workspace.watch", "workspace.unwatch", "session.unwatch", "session.metadata.update", "session.schedule.get", "session.schedule.list", "session.schedule.agent.save", "session.cli.context", "session.graph", "session.goal.get", "session.schedule.save", "session.schedule.remove", "session.schedule.proposal.resolve", "session.pin.move", "session.rewind", "session.rollback", "session.remove", "workspace.sessions.cleanup", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.tool-resource.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "mar-agent.model.test", "prompt-completion.context", "prompt-completion.generate", "prompt-completion.cancel", "workspace.files.list", "workspace.file.read", "workspace.file.write", "workspace.file.content.read", "workspace.file.direct.metadata", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.symbol.prepare", "workspace.symbol.definition", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "workspace.git.commit.file.content.read", "workspace.git.commit.file.direct.metadata", "run.image.read", "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"]>;
|
|
44095
44255
|
export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
|
|
44096
44256
|
/**
|
|
44097
44257
|
* A small, explicit envelope keeps WebSocket messages independently parseable
|
package/dist/index.js
CHANGED
|
@@ -2449,9 +2449,28 @@ export const hostedConversationSnapshotSchema = z
|
|
|
2449
2449
|
export const hostedConversationCreateInputSchema = z
|
|
2450
2450
|
.object({
|
|
2451
2451
|
templateId: protocolIdSchema,
|
|
2452
|
-
clientRequestId: protocolIdSchema
|
|
2452
|
+
clientRequestId: protocolIdSchema,
|
|
2453
|
+
modelId: protocolIdSchema.optional()
|
|
2453
2454
|
})
|
|
2454
2455
|
.strict();
|
|
2456
|
+
export const hostedConversationModelOptionsInputSchema = z
|
|
2457
|
+
.object({ templateId: protocolIdSchema })
|
|
2458
|
+
.strict();
|
|
2459
|
+
export const hostedConversationModelOptionsSchema = z
|
|
2460
|
+
.object({
|
|
2461
|
+
models: z.array(marAgentNodeModelSummarySchema),
|
|
2462
|
+
defaultModelId: protocolIdSchema.nullable()
|
|
2463
|
+
})
|
|
2464
|
+
.strict()
|
|
2465
|
+
.superRefine((options, context) => {
|
|
2466
|
+
uniqueProtocolIds(options.models.map((model) => model.id), context, ['models']);
|
|
2467
|
+
if (options.models.length === 0 && options.defaultModelId !== null)
|
|
2468
|
+
context.addIssue({ code: 'custom', path: ['defaultModelId'] });
|
|
2469
|
+
if (options.models.length > 0 &&
|
|
2470
|
+
(options.defaultModelId === null ||
|
|
2471
|
+
!options.models.some((model) => model.id === options.defaultModelId)))
|
|
2472
|
+
context.addIssue({ code: 'custom', path: ['defaultModelId'] });
|
|
2473
|
+
});
|
|
2455
2474
|
export const hostedConversationListInputSchema = z
|
|
2456
2475
|
.object({
|
|
2457
2476
|
limit: z.number().int().min(1).max(100).default(20),
|
|
@@ -3095,6 +3114,7 @@ export const workbenchNodeOperationSchema = z.enum([
|
|
|
3095
3114
|
'computer.use.enable',
|
|
3096
3115
|
'computer.use.disable',
|
|
3097
3116
|
'conversation.hosted.list',
|
|
3117
|
+
'conversation.hosted.model-options',
|
|
3098
3118
|
'conversation.hosted.create',
|
|
3099
3119
|
'conversation.hosted.get',
|
|
3100
3120
|
'conversation.hosted.history',
|