@agen-ai/agent-protocol 0.1.0
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/LICENSE +21 -0
- package/README.md +101 -0
- package/dist/artifacts/index.d.ts +3 -0
- package/dist/artifacts/index.js +2 -0
- package/dist/artifacts/parsers.d.ts +5 -0
- package/dist/artifacts/parsers.js +12 -0
- package/dist/artifacts/types.d.ts +19 -0
- package/dist/artifacts/types.js +16 -0
- package/dist/capabilities/index.d.ts +3 -0
- package/dist/capabilities/index.js +2 -0
- package/dist/capabilities/parsers.d.ts +6 -0
- package/dist/capabilities/parsers.js +18 -0
- package/dist/capabilities/types.d.ts +96 -0
- package/dist/capabilities/types.js +20 -0
- package/dist/events/index.d.ts +3 -0
- package/dist/events/index.js +2 -0
- package/dist/events/parsers.d.ts +6 -0
- package/dist/events/parsers.js +16 -0
- package/dist/events/types.d.ts +78 -0
- package/dist/events/types.js +21 -0
- package/dist/foundation/index.d.ts +4 -0
- package/dist/foundation/index.js +3 -0
- package/dist/foundation/ordering.d.ts +2 -0
- package/dist/foundation/ordering.js +15 -0
- package/dist/foundation/parsers.d.ts +39 -0
- package/dist/foundation/parsers.js +148 -0
- package/dist/foundation/types.d.ts +62 -0
- package/dist/foundation/types.js +39 -0
- package/dist/foundation/validation.d.ts +16 -0
- package/dist/foundation/validation.js +11 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/internal/parsers.d.ts +5 -0
- package/dist/internal/parsers.js +21 -0
- package/dist/jsonSchema/generated.d.ts +6667 -0
- package/dist/jsonSchema/generated.js +4150 -0
- package/dist/jsonSchema/index.d.ts +2 -0
- package/dist/jsonSchema/index.js +1 -0
- package/dist/public/artifacts.d.ts +2 -0
- package/dist/public/artifacts.js +1 -0
- package/dist/public/capabilities.d.ts +2 -0
- package/dist/public/capabilities.js +1 -0
- package/dist/public/events.d.ts +2 -0
- package/dist/public/events.js +1 -0
- package/dist/public/index.d.ts +8 -0
- package/dist/public/index.js +7 -0
- package/dist/public/requests.d.ts +2 -0
- package/dist/public/requests.js +1 -0
- package/dist/public/sessions.d.ts +2 -0
- package/dist/public/sessions.js +1 -0
- package/dist/public/turns.d.ts +2 -0
- package/dist/public/turns.js +1 -0
- package/dist/requests/index.d.ts +3 -0
- package/dist/requests/index.js +2 -0
- package/dist/requests/parsers.d.ts +9 -0
- package/dist/requests/parsers.js +134 -0
- package/dist/requests/types.d.ts +89 -0
- package/dist/requests/types.js +0 -0
- package/dist/sessions/index.d.ts +3 -0
- package/dist/sessions/index.js +2 -0
- package/dist/sessions/parsers.d.ts +10 -0
- package/dist/sessions/parsers.js +38 -0
- package/dist/sessions/types.d.ts +37 -0
- package/dist/sessions/types.js +0 -0
- package/dist/turns/index.d.ts +3 -0
- package/dist/turns/index.js +2 -0
- package/dist/turns/parsers.d.ts +11 -0
- package/dist/turns/parsers.js +41 -0
- package/dist/turns/types.d.ts +207 -0
- package/dist/turns/types.js +62 -0
- package/dist/zod/artifacts.d.ts +4 -0
- package/dist/zod/artifacts.js +28 -0
- package/dist/zod/capabilities.d.ts +180 -0
- package/dist/zod/capabilities.js +222 -0
- package/dist/zod/events.d.ts +357 -0
- package/dist/zod/events.js +190 -0
- package/dist/zod/foundation.d.ts +45 -0
- package/dist/zod/foundation.js +205 -0
- package/dist/zod/index.d.ts +9 -0
- package/dist/zod/index.js +118 -0
- package/dist/zod/requests.d.ts +123 -0
- package/dist/zod/requests.js +174 -0
- package/dist/zod/sessions.d.ts +65 -0
- package/dist/zod/sessions.js +124 -0
- package/dist/zod/turns.d.ts +219 -0
- package/dist/zod/turns.js +400 -0
- package/dist/zod/typeEquality.generated.d.ts +51 -0
- package/dist/zod/typeEquality.generated.js +0 -0
- package/package.json +95 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import type { AgentError, AgentIsoDateTime, AgentItemId, AgentTurnId } from '../foundation/index.js';
|
|
2
|
+
export interface AgentTextInputPart {
|
|
3
|
+
readonly type: 'text';
|
|
4
|
+
readonly text: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const AGENT_IMAGE_INPUT_MEDIA_TYPES: readonly ["image/png", "image/jpeg", "image/webp"];
|
|
7
|
+
export declare const AGENT_IMAGE_INPUT_SOURCE_KINDS: readonly ["url", "base64", "local_file"];
|
|
8
|
+
export type AgentImageInputMediaType = (typeof AGENT_IMAGE_INPUT_MEDIA_TYPES)[number];
|
|
9
|
+
export type AgentImageInputSourceKind = (typeof AGENT_IMAGE_INPUT_SOURCE_KINDS)[number];
|
|
10
|
+
interface AgentImageInputSourceMetadata {
|
|
11
|
+
readonly mediaType: AgentImageInputMediaType;
|
|
12
|
+
readonly byteSize: number;
|
|
13
|
+
readonly widthPixels: number;
|
|
14
|
+
readonly heightPixels: number;
|
|
15
|
+
}
|
|
16
|
+
export type AgentImageInputSource = Readonly<AgentImageInputSourceMetadata & {
|
|
17
|
+
type: 'url';
|
|
18
|
+
url: string;
|
|
19
|
+
}> | Readonly<AgentImageInputSourceMetadata & {
|
|
20
|
+
type: 'base64';
|
|
21
|
+
data: string;
|
|
22
|
+
}> | Readonly<AgentImageInputSourceMetadata & {
|
|
23
|
+
type: 'local_file';
|
|
24
|
+
path: string;
|
|
25
|
+
sha256: string;
|
|
26
|
+
}>;
|
|
27
|
+
export interface AgentImageInputPart {
|
|
28
|
+
readonly type: 'image';
|
|
29
|
+
readonly source: AgentImageInputSource;
|
|
30
|
+
}
|
|
31
|
+
export type AgentTurnInputPart = AgentTextInputPart | AgentImageInputPart;
|
|
32
|
+
export declare const AGENT_TURN_INTERACTION_MODES: readonly ["default", "plan"];
|
|
33
|
+
export type AgentTurnInteractionMode = (typeof AGENT_TURN_INTERACTION_MODES)[number];
|
|
34
|
+
export interface AgentTurnInputContent {
|
|
35
|
+
readonly parts: readonly AgentTurnInputPart[];
|
|
36
|
+
readonly summary?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface AgentTurnRunInput extends AgentTurnInputContent {
|
|
39
|
+
readonly turnId: AgentTurnId;
|
|
40
|
+
readonly interactionMode: AgentTurnInteractionMode;
|
|
41
|
+
readonly deadlineAt?: AgentIsoDateTime;
|
|
42
|
+
}
|
|
43
|
+
export type AgentTurnInterruptionReason = 'user_requested' | 'timeout' | 'shutdown' | 'superseded' | 'other';
|
|
44
|
+
export interface AgentTurnInterruptionInput {
|
|
45
|
+
readonly turnId: AgentTurnId;
|
|
46
|
+
readonly reason: AgentTurnInterruptionReason;
|
|
47
|
+
readonly requestedAt?: AgentIsoDateTime;
|
|
48
|
+
}
|
|
49
|
+
export declare const AGENT_ITEM_KINDS: readonly ["user_message", "assistant_message", "reasoning", "plan", "command_execution", "file_change", "mcp_tool_call", "dynamic_tool_call", "collaboration_tool_call", "web_search", "browser_action", "computer_action", "image_view", "review", "context_compaction", "unknown"];
|
|
50
|
+
export type AgentItemKind = (typeof AGENT_ITEM_KINDS)[number];
|
|
51
|
+
export declare const AGENT_ITEM_STATUSES: readonly ["pending", "in_progress", "completed", "failed", "canceled", "unknown"];
|
|
52
|
+
export type AgentItemStatus = (typeof AGENT_ITEM_STATUSES)[number];
|
|
53
|
+
export declare const AGENT_CONTENT_STREAM_KINDS: readonly ["assistant_text", "reasoning_text", "reasoning_summary", "plan_text", "command_output", "file_change_output", "unknown"];
|
|
54
|
+
export type AgentContentStreamKind = (typeof AGENT_CONTENT_STREAM_KINDS)[number];
|
|
55
|
+
export type AgentTurnState = 'running' | 'waiting_for_request';
|
|
56
|
+
export type AgentTurnOutcome = 'completed' | 'failed' | 'canceled' | 'expired';
|
|
57
|
+
export interface AgentItemSnapshotBase {
|
|
58
|
+
readonly itemId: AgentItemId;
|
|
59
|
+
readonly status: AgentItemStatus;
|
|
60
|
+
readonly title?: string;
|
|
61
|
+
readonly summary?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface AgentUserMessageItemSnapshot extends AgentItemSnapshotBase {
|
|
64
|
+
readonly itemKind: 'user_message';
|
|
65
|
+
}
|
|
66
|
+
export interface AgentAssistantMessageItemSnapshot extends AgentItemSnapshotBase {
|
|
67
|
+
readonly itemKind: 'assistant_message';
|
|
68
|
+
}
|
|
69
|
+
export interface AgentReasoningItemSnapshot extends AgentItemSnapshotBase {
|
|
70
|
+
readonly itemKind: 'reasoning';
|
|
71
|
+
}
|
|
72
|
+
export interface AgentPlanItemSnapshot extends AgentItemSnapshotBase {
|
|
73
|
+
readonly itemKind: 'plan';
|
|
74
|
+
}
|
|
75
|
+
export interface AgentContextCompactionItemSnapshot extends AgentItemSnapshotBase {
|
|
76
|
+
readonly itemKind: 'context_compaction';
|
|
77
|
+
}
|
|
78
|
+
export interface AgentUnknownItemSnapshot extends AgentItemSnapshotBase {
|
|
79
|
+
readonly itemKind: 'unknown';
|
|
80
|
+
}
|
|
81
|
+
export interface AgentCommandExecutionDetails {
|
|
82
|
+
readonly commandSummary?: string;
|
|
83
|
+
readonly workingPath?: string;
|
|
84
|
+
readonly exitCode?: number;
|
|
85
|
+
readonly durationMs?: number;
|
|
86
|
+
readonly truncated?: true;
|
|
87
|
+
}
|
|
88
|
+
export interface AgentCommandExecutionItemSnapshot extends AgentItemSnapshotBase {
|
|
89
|
+
readonly itemKind: 'command_execution';
|
|
90
|
+
readonly details?: AgentCommandExecutionDetails;
|
|
91
|
+
}
|
|
92
|
+
export declare const AGENT_FILE_CHANGE_KINDS: readonly ["created", "modified", "deleted", "renamed", "unknown"];
|
|
93
|
+
export type AgentFileChangeKind = (typeof AGENT_FILE_CHANGE_KINDS)[number];
|
|
94
|
+
export interface AgentFileChange {
|
|
95
|
+
readonly path: string;
|
|
96
|
+
readonly changeKind: AgentFileChangeKind;
|
|
97
|
+
}
|
|
98
|
+
export interface AgentFileChangeDetails {
|
|
99
|
+
readonly changes: readonly AgentFileChange[];
|
|
100
|
+
readonly truncated?: true;
|
|
101
|
+
}
|
|
102
|
+
export interface AgentFileChangeItemSnapshot extends AgentItemSnapshotBase {
|
|
103
|
+
readonly itemKind: 'file_change';
|
|
104
|
+
readonly details?: AgentFileChangeDetails;
|
|
105
|
+
}
|
|
106
|
+
export interface AgentMcpToolCallDetails {
|
|
107
|
+
readonly serverName?: string;
|
|
108
|
+
readonly toolName?: string;
|
|
109
|
+
readonly actionSummary?: string;
|
|
110
|
+
readonly durationMs?: number;
|
|
111
|
+
readonly truncated?: true;
|
|
112
|
+
}
|
|
113
|
+
export interface AgentMcpToolCallItemSnapshot extends AgentItemSnapshotBase {
|
|
114
|
+
readonly itemKind: 'mcp_tool_call';
|
|
115
|
+
readonly details?: AgentMcpToolCallDetails;
|
|
116
|
+
}
|
|
117
|
+
export interface AgentDynamicToolCallDetails {
|
|
118
|
+
readonly toolName?: string;
|
|
119
|
+
readonly actionSummary?: string;
|
|
120
|
+
readonly durationMs?: number;
|
|
121
|
+
readonly success?: boolean;
|
|
122
|
+
readonly truncated?: true;
|
|
123
|
+
}
|
|
124
|
+
export interface AgentDynamicToolCallItemSnapshot extends AgentItemSnapshotBase {
|
|
125
|
+
readonly itemKind: 'dynamic_tool_call';
|
|
126
|
+
readonly details?: AgentDynamicToolCallDetails;
|
|
127
|
+
}
|
|
128
|
+
export interface AgentCollaborationToolCallDetails {
|
|
129
|
+
readonly toolName?: string;
|
|
130
|
+
readonly actionSummary?: string;
|
|
131
|
+
readonly truncated?: true;
|
|
132
|
+
}
|
|
133
|
+
export interface AgentCollaborationToolCallItemSnapshot extends AgentItemSnapshotBase {
|
|
134
|
+
readonly itemKind: 'collaboration_tool_call';
|
|
135
|
+
readonly details?: AgentCollaborationToolCallDetails;
|
|
136
|
+
}
|
|
137
|
+
export interface AgentWebSearchDetails {
|
|
138
|
+
readonly querySummary?: string;
|
|
139
|
+
readonly actionSummary?: string;
|
|
140
|
+
readonly truncated?: true;
|
|
141
|
+
}
|
|
142
|
+
export interface AgentWebSearchItemSnapshot extends AgentItemSnapshotBase {
|
|
143
|
+
readonly itemKind: 'web_search';
|
|
144
|
+
readonly details?: AgentWebSearchDetails;
|
|
145
|
+
}
|
|
146
|
+
export interface AgentBrowserActionDetails {
|
|
147
|
+
readonly actionSummary: string;
|
|
148
|
+
readonly truncated?: true;
|
|
149
|
+
}
|
|
150
|
+
export interface AgentBrowserActionItemSnapshot extends AgentItemSnapshotBase {
|
|
151
|
+
readonly itemKind: 'browser_action';
|
|
152
|
+
readonly details?: AgentBrowserActionDetails;
|
|
153
|
+
}
|
|
154
|
+
export interface AgentComputerActionDetails {
|
|
155
|
+
readonly actionSummary: string;
|
|
156
|
+
readonly truncated?: true;
|
|
157
|
+
}
|
|
158
|
+
export interface AgentComputerActionItemSnapshot extends AgentItemSnapshotBase {
|
|
159
|
+
readonly itemKind: 'computer_action';
|
|
160
|
+
readonly details?: AgentComputerActionDetails;
|
|
161
|
+
}
|
|
162
|
+
export interface AgentImageViewDetails {
|
|
163
|
+
readonly filePath?: string;
|
|
164
|
+
readonly actionSummary?: string;
|
|
165
|
+
readonly truncated?: true;
|
|
166
|
+
}
|
|
167
|
+
export interface AgentImageViewItemSnapshot extends AgentItemSnapshotBase {
|
|
168
|
+
readonly itemKind: 'image_view';
|
|
169
|
+
readonly details?: AgentImageViewDetails;
|
|
170
|
+
}
|
|
171
|
+
export type AgentReviewDetails = Readonly<{
|
|
172
|
+
phase: 'entered';
|
|
173
|
+
target: string;
|
|
174
|
+
truncated?: true;
|
|
175
|
+
}> | Readonly<{
|
|
176
|
+
phase: 'exited';
|
|
177
|
+
report: string;
|
|
178
|
+
truncated?: true;
|
|
179
|
+
}>;
|
|
180
|
+
export interface AgentReviewItemSnapshot extends AgentItemSnapshotBase {
|
|
181
|
+
readonly itemKind: 'review';
|
|
182
|
+
readonly details: AgentReviewDetails;
|
|
183
|
+
}
|
|
184
|
+
export type AgentItemSnapshot = AgentUserMessageItemSnapshot | AgentAssistantMessageItemSnapshot | AgentReasoningItemSnapshot | AgentPlanItemSnapshot | AgentCommandExecutionItemSnapshot | AgentFileChangeItemSnapshot | AgentMcpToolCallItemSnapshot | AgentDynamicToolCallItemSnapshot | AgentCollaborationToolCallItemSnapshot | AgentWebSearchItemSnapshot | AgentBrowserActionItemSnapshot | AgentComputerActionItemSnapshot | AgentImageViewItemSnapshot | AgentReviewItemSnapshot | AgentContextCompactionItemSnapshot | AgentUnknownItemSnapshot;
|
|
185
|
+
export interface AgentPlanStep {
|
|
186
|
+
readonly stepId: string;
|
|
187
|
+
readonly text: string;
|
|
188
|
+
readonly status: 'pending' | 'in_progress' | 'completed' | 'canceled';
|
|
189
|
+
readonly priority?: 'low' | 'medium' | 'high';
|
|
190
|
+
}
|
|
191
|
+
export interface AgentDiffSummary {
|
|
192
|
+
readonly summary: string;
|
|
193
|
+
readonly fileCount: number;
|
|
194
|
+
readonly byteSize: number;
|
|
195
|
+
readonly additions?: number;
|
|
196
|
+
readonly deletions?: number;
|
|
197
|
+
readonly binary?: boolean;
|
|
198
|
+
readonly malformed?: boolean;
|
|
199
|
+
readonly truncated?: boolean;
|
|
200
|
+
}
|
|
201
|
+
export interface AgentTurnCompletedPayload {
|
|
202
|
+
readonly outcome: AgentTurnOutcome;
|
|
203
|
+
readonly reason?: string;
|
|
204
|
+
readonly error?: AgentError;
|
|
205
|
+
}
|
|
206
|
+
export {};
|
|
207
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const AGENT_IMAGE_INPUT_MEDIA_TYPES = [
|
|
2
|
+
"image/png",
|
|
3
|
+
"image/jpeg",
|
|
4
|
+
"image/webp"
|
|
5
|
+
];
|
|
6
|
+
const AGENT_IMAGE_INPUT_SOURCE_KINDS = [
|
|
7
|
+
"url",
|
|
8
|
+
"base64",
|
|
9
|
+
"local_file"
|
|
10
|
+
];
|
|
11
|
+
const AGENT_TURN_INTERACTION_MODES = ["default", "plan"];
|
|
12
|
+
const AGENT_ITEM_KINDS = [
|
|
13
|
+
"user_message",
|
|
14
|
+
"assistant_message",
|
|
15
|
+
"reasoning",
|
|
16
|
+
"plan",
|
|
17
|
+
"command_execution",
|
|
18
|
+
"file_change",
|
|
19
|
+
"mcp_tool_call",
|
|
20
|
+
"dynamic_tool_call",
|
|
21
|
+
"collaboration_tool_call",
|
|
22
|
+
"web_search",
|
|
23
|
+
"browser_action",
|
|
24
|
+
"computer_action",
|
|
25
|
+
"image_view",
|
|
26
|
+
"review",
|
|
27
|
+
"context_compaction",
|
|
28
|
+
"unknown"
|
|
29
|
+
];
|
|
30
|
+
const AGENT_ITEM_STATUSES = [
|
|
31
|
+
"pending",
|
|
32
|
+
"in_progress",
|
|
33
|
+
"completed",
|
|
34
|
+
"failed",
|
|
35
|
+
"canceled",
|
|
36
|
+
"unknown"
|
|
37
|
+
];
|
|
38
|
+
const AGENT_CONTENT_STREAM_KINDS = [
|
|
39
|
+
"assistant_text",
|
|
40
|
+
"reasoning_text",
|
|
41
|
+
"reasoning_summary",
|
|
42
|
+
"plan_text",
|
|
43
|
+
"command_output",
|
|
44
|
+
"file_change_output",
|
|
45
|
+
"unknown"
|
|
46
|
+
];
|
|
47
|
+
const AGENT_FILE_CHANGE_KINDS = [
|
|
48
|
+
"created",
|
|
49
|
+
"modified",
|
|
50
|
+
"deleted",
|
|
51
|
+
"renamed",
|
|
52
|
+
"unknown"
|
|
53
|
+
];
|
|
54
|
+
export {
|
|
55
|
+
AGENT_CONTENT_STREAM_KINDS,
|
|
56
|
+
AGENT_FILE_CHANGE_KINDS,
|
|
57
|
+
AGENT_IMAGE_INPUT_MEDIA_TYPES,
|
|
58
|
+
AGENT_IMAGE_INPUT_SOURCE_KINDS,
|
|
59
|
+
AGENT_ITEM_KINDS,
|
|
60
|
+
AGENT_ITEM_STATUSES,
|
|
61
|
+
AGENT_TURN_INTERACTION_MODES
|
|
62
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
import {
|
|
3
|
+
AGENT_ARTIFACT_BYTE_SIZE_MAX,
|
|
4
|
+
AGENT_ARTIFACT_DISPLAY_NAME_MAX_LENGTH,
|
|
5
|
+
AGENT_ARTIFACT_KINDS
|
|
6
|
+
} from "../artifacts/types.js";
|
|
7
|
+
import { AGENT_PROTOCOL_SUMMARY_MAX_LENGTH } from "../foundation/types.js";
|
|
8
|
+
import {
|
|
9
|
+
AgentArtifactIdSchema,
|
|
10
|
+
createAgentCanonicalNonBlankStringSchema
|
|
11
|
+
} from "./foundation.js";
|
|
12
|
+
const AgentArtifactDescriptorSchema = z.object({
|
|
13
|
+
artifactId: AgentArtifactIdSchema,
|
|
14
|
+
kind: z.enum(AGENT_ARTIFACT_KINDS),
|
|
15
|
+
displayName: createAgentCanonicalNonBlankStringSchema(
|
|
16
|
+
AGENT_ARTIFACT_DISPLAY_NAME_MAX_LENGTH
|
|
17
|
+
),
|
|
18
|
+
mediaType: z.string().min(1).max(160).regex(/^[a-z0-9!#$&^_.+-]+\/[a-z0-9!#$&^_.+-]+(?:;[ -~]+)?$/iu).optional(),
|
|
19
|
+
byteSize: z.number().int().min(0).max(AGENT_ARTIFACT_BYTE_SIZE_MAX).optional(),
|
|
20
|
+
digest: z.object({
|
|
21
|
+
algorithm: z.literal("sha256"),
|
|
22
|
+
value: z.string().regex(/^[a-f0-9]{64}$/u)
|
|
23
|
+
}).strict().readonly().optional(),
|
|
24
|
+
summary: z.string().max(AGENT_PROTOCOL_SUMMARY_MAX_LENGTH).optional()
|
|
25
|
+
}).strict().readonly();
|
|
26
|
+
export {
|
|
27
|
+
AgentArtifactDescriptorSchema
|
|
28
|
+
};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { type AgentCapabilities } from '../capabilities/types.js';
|
|
3
|
+
export declare const AgentImageInputCapabilitySchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4
|
+
kind: z.ZodLiteral<"unsupported">;
|
|
5
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
6
|
+
kind: z.ZodLiteral<"supported">;
|
|
7
|
+
sourceKinds: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
8
|
+
url: "url";
|
|
9
|
+
base64: "base64";
|
|
10
|
+
local_file: "local_file";
|
|
11
|
+
}>>>;
|
|
12
|
+
mediaTypes: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
13
|
+
"image/png": "image/png";
|
|
14
|
+
"image/jpeg": "image/jpeg";
|
|
15
|
+
"image/webp": "image/webp";
|
|
16
|
+
}>>>;
|
|
17
|
+
maxImages: z.ZodNumber;
|
|
18
|
+
maxBytesPerImage: z.ZodNumber;
|
|
19
|
+
maxTotalBytes: z.ZodNumber;
|
|
20
|
+
maxWidthPixels: z.ZodNumber;
|
|
21
|
+
maxHeightPixels: z.ZodNumber;
|
|
22
|
+
maxPixelsPerImage: z.ZodNumber;
|
|
23
|
+
supportsImageOnly: z.ZodBoolean;
|
|
24
|
+
}, z.core.$strict>>], "kind">;
|
|
25
|
+
export declare const AgentOperationInputCapabilitySchema: z.ZodReadonly<z.ZodObject<{
|
|
26
|
+
text: z.ZodLiteral<true>;
|
|
27
|
+
images: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
28
|
+
kind: z.ZodLiteral<"unsupported">;
|
|
29
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
30
|
+
kind: z.ZodLiteral<"supported">;
|
|
31
|
+
sourceKinds: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
32
|
+
url: "url";
|
|
33
|
+
base64: "base64";
|
|
34
|
+
local_file: "local_file";
|
|
35
|
+
}>>>;
|
|
36
|
+
mediaTypes: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
37
|
+
"image/png": "image/png";
|
|
38
|
+
"image/jpeg": "image/jpeg";
|
|
39
|
+
"image/webp": "image/webp";
|
|
40
|
+
}>>>;
|
|
41
|
+
maxImages: z.ZodNumber;
|
|
42
|
+
maxBytesPerImage: z.ZodNumber;
|
|
43
|
+
maxTotalBytes: z.ZodNumber;
|
|
44
|
+
maxWidthPixels: z.ZodNumber;
|
|
45
|
+
maxHeightPixels: z.ZodNumber;
|
|
46
|
+
maxPixelsPerImage: z.ZodNumber;
|
|
47
|
+
supportsImageOnly: z.ZodBoolean;
|
|
48
|
+
}, z.core.$strict>>], "kind">;
|
|
49
|
+
}, z.core.$strict>>;
|
|
50
|
+
export declare const AgentCapabilitiesPortableSchema: z.ZodReadonly<z.ZodObject<{
|
|
51
|
+
protocolVersion: z.ZodLiteral<6>;
|
|
52
|
+
providerKey: z.ZodType<import("../index.js").AgentProviderKey, unknown, z.core.$ZodTypeInternals<import("../index.js").AgentProviderKey, unknown>>;
|
|
53
|
+
sessions: z.ZodReadonly<z.ZodObject<{
|
|
54
|
+
create: z.ZodLiteral<true>;
|
|
55
|
+
resume: z.ZodBoolean;
|
|
56
|
+
branch: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
57
|
+
kind: z.ZodLiteral<"unsupported">;
|
|
58
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
59
|
+
kind: z.ZodLiteral<"through_turn">;
|
|
60
|
+
}, z.core.$strict>>], "kind">;
|
|
61
|
+
}, z.core.$strict>>;
|
|
62
|
+
turns: z.ZodReadonly<z.ZodObject<{
|
|
63
|
+
interactionModes: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
64
|
+
default: "default";
|
|
65
|
+
plan: "plan";
|
|
66
|
+
}>>>;
|
|
67
|
+
interrupt: z.ZodBoolean;
|
|
68
|
+
steer: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
69
|
+
kind: z.ZodLiteral<"unsupported">;
|
|
70
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
71
|
+
kind: z.ZodLiteral<"supported">;
|
|
72
|
+
input: z.ZodReadonly<z.ZodObject<{
|
|
73
|
+
text: z.ZodLiteral<true>;
|
|
74
|
+
images: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
75
|
+
kind: z.ZodLiteral<"unsupported">;
|
|
76
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
77
|
+
kind: z.ZodLiteral<"supported">;
|
|
78
|
+
sourceKinds: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
79
|
+
url: "url";
|
|
80
|
+
base64: "base64";
|
|
81
|
+
local_file: "local_file";
|
|
82
|
+
}>>>;
|
|
83
|
+
mediaTypes: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
84
|
+
"image/png": "image/png";
|
|
85
|
+
"image/jpeg": "image/jpeg";
|
|
86
|
+
"image/webp": "image/webp";
|
|
87
|
+
}>>>;
|
|
88
|
+
maxImages: z.ZodNumber;
|
|
89
|
+
maxBytesPerImage: z.ZodNumber;
|
|
90
|
+
maxTotalBytes: z.ZodNumber;
|
|
91
|
+
maxWidthPixels: z.ZodNumber;
|
|
92
|
+
maxHeightPixels: z.ZodNumber;
|
|
93
|
+
maxPixelsPerImage: z.ZodNumber;
|
|
94
|
+
supportsImageOnly: z.ZodBoolean;
|
|
95
|
+
}, z.core.$strict>>], "kind">;
|
|
96
|
+
}, z.core.$strict>>;
|
|
97
|
+
}, z.core.$strict>>], "kind">;
|
|
98
|
+
}, z.core.$strict>>;
|
|
99
|
+
requests: z.ZodReadonly<z.ZodObject<{
|
|
100
|
+
approval: z.ZodBoolean;
|
|
101
|
+
elicitation: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
102
|
+
kind: z.ZodLiteral<"unsupported">;
|
|
103
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
104
|
+
kind: z.ZodLiteral<"text">;
|
|
105
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
106
|
+
kind: z.ZodLiteral<"structured">;
|
|
107
|
+
}, z.core.$strict>>], "kind">;
|
|
108
|
+
}, z.core.$strict>>;
|
|
109
|
+
input: z.ZodReadonly<z.ZodObject<{
|
|
110
|
+
text: z.ZodLiteral<true>;
|
|
111
|
+
images: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
112
|
+
kind: z.ZodLiteral<"unsupported">;
|
|
113
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
114
|
+
kind: z.ZodLiteral<"supported">;
|
|
115
|
+
sourceKinds: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
116
|
+
url: "url";
|
|
117
|
+
base64: "base64";
|
|
118
|
+
local_file: "local_file";
|
|
119
|
+
}>>>;
|
|
120
|
+
mediaTypes: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
121
|
+
"image/png": "image/png";
|
|
122
|
+
"image/jpeg": "image/jpeg";
|
|
123
|
+
"image/webp": "image/webp";
|
|
124
|
+
}>>>;
|
|
125
|
+
maxImages: z.ZodNumber;
|
|
126
|
+
maxBytesPerImage: z.ZodNumber;
|
|
127
|
+
maxTotalBytes: z.ZodNumber;
|
|
128
|
+
maxWidthPixels: z.ZodNumber;
|
|
129
|
+
maxHeightPixels: z.ZodNumber;
|
|
130
|
+
maxPixelsPerImage: z.ZodNumber;
|
|
131
|
+
supportsImageOnly: z.ZodBoolean;
|
|
132
|
+
}, z.core.$strict>>], "kind">;
|
|
133
|
+
}, z.core.$strict>>;
|
|
134
|
+
output: z.ZodReadonly<z.ZodObject<{
|
|
135
|
+
streaming: z.ZodBoolean;
|
|
136
|
+
plans: z.ZodBoolean;
|
|
137
|
+
fileChanges: z.ZodEnum<{
|
|
138
|
+
structured: "structured";
|
|
139
|
+
none: "none";
|
|
140
|
+
final_diff: "final_diff";
|
|
141
|
+
}>;
|
|
142
|
+
artifactKinds: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
143
|
+
file: "file";
|
|
144
|
+
image: "image";
|
|
145
|
+
plan: "plan";
|
|
146
|
+
other: "other";
|
|
147
|
+
report: "report";
|
|
148
|
+
diff: "diff";
|
|
149
|
+
log: "log";
|
|
150
|
+
}>>>;
|
|
151
|
+
}, z.core.$strict>>;
|
|
152
|
+
configuration: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
153
|
+
kind: z.ZodLiteral<"managed">;
|
|
154
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
155
|
+
kind: z.ZodLiteral<"selectable">;
|
|
156
|
+
fields: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
157
|
+
key: z.ZodString;
|
|
158
|
+
optionIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
159
|
+
}, z.core.$strict>>>>;
|
|
160
|
+
}, z.core.$strict>>], "kind">;
|
|
161
|
+
interactionExtensions: z.ZodReadonly<z.ZodObject<{
|
|
162
|
+
slashCommands: z.ZodBoolean;
|
|
163
|
+
mcp: z.ZodBoolean;
|
|
164
|
+
subagents: z.ZodBoolean;
|
|
165
|
+
imageGeneration: z.ZodBoolean;
|
|
166
|
+
}, z.core.$strict>>;
|
|
167
|
+
authentication: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
168
|
+
kind: z.ZodLiteral<"unsupported">;
|
|
169
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
170
|
+
kind: z.ZodLiteral<"supported">;
|
|
171
|
+
flows: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
172
|
+
device_code: "device_code";
|
|
173
|
+
browser: "browser";
|
|
174
|
+
terminal: "terminal";
|
|
175
|
+
}>>>;
|
|
176
|
+
}, z.core.$strict>>], "kind">;
|
|
177
|
+
versionReporting: z.ZodBoolean;
|
|
178
|
+
}, z.core.$strict>>;
|
|
179
|
+
export declare const AgentCapabilitiesSchema: z.ZodType<AgentCapabilities>;
|
|
180
|
+
//# sourceMappingURL=capabilities.d.ts.map
|