linkshell-cli 0.10.75 → 0.10.77
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/cli/src/commands/desktop.d.ts +77 -72
- package/dist/cli/tsconfig.tsbuildinfo +1 -1
- package/dist/host/src/acp-settings.js +1 -1
- package/dist/host/src/acp-settings.js.map +1 -1
- package/dist/host/src/computer-preview.d.ts +1 -9
- package/dist/host/src/drivers/acp/driver.d.ts +3 -0
- package/dist/host/src/drivers/acp/driver.js +10 -3
- package/dist/host/src/drivers/acp/driver.js.map +1 -1
- package/dist/host/src/drivers/acp/questions.js +2 -2
- package/dist/host/src/drivers/acp/questions.js.map +1 -1
- package/dist/host/src/drivers/claude/driver.d.ts +10 -0
- package/dist/host/src/drivers/claude/driver.js +65 -6
- package/dist/host/src/drivers/claude/driver.js.map +1 -1
- package/dist/host/src/drivers/claude/holders.d.ts +2 -0
- package/dist/host/src/drivers/claude/holders.js +5 -1
- package/dist/host/src/drivers/claude/holders.js.map +1 -1
- package/dist/host/src/drivers/claude/tasks.d.ts +2 -2
- package/dist/host/src/drivers/claude/transcript.d.ts +399 -344
- package/dist/host/src/drivers/claude/transcript.js +83 -11
- package/dist/host/src/drivers/claude/transcript.js.map +1 -1
- package/dist/host/src/fs.d.ts +9 -9
- package/dist/host/src/hub.d.ts +87 -82
- package/dist/host/src/hub.js +2 -2
- package/dist/host/src/hub.js.map +1 -1
- package/dist/host/src/input.d.ts +43 -89
- package/dist/host/src/input.js +1 -1
- package/dist/host/src/input.js.map +1 -1
- package/dist/host/src/screen-session.d.ts +3 -17
- package/dist/host/src/screen-session.js +2 -2
- package/dist/host/src/screen-session.js.map +1 -1
- package/dist/host/src/store.d.ts +11 -5
- package/dist/host/src/store.js +51 -19
- package/dist/host/src/store.js.map +1 -1
- package/dist/host/src/terminals.d.ts +9 -9
- package/dist/wire/src/acp.d.ts +68 -430
- package/dist/wire/src/acp.js +5 -5
- package/dist/wire/src/acp.js.map +1 -1
- package/dist/wire/src/async-questions.d.ts +2 -10
- package/dist/wire/src/computer-preview.d.ts +1 -15
- package/dist/wire/src/computer-preview.js +1 -1
- package/dist/wire/src/computer-preview.js.map +1 -1
- package/dist/wire/src/content.d.ts +205 -370
- package/dist/wire/src/content.js +4 -4
- package/dist/wire/src/content.js.map +1 -1
- package/dist/wire/src/editor.d.ts +48 -592
- package/dist/wire/src/envelopes.js +13 -1
- package/dist/wire/src/envelopes.js.map +1 -1
- package/dist/wire/src/goal.d.ts +15 -48
- package/dist/wire/src/live-activity.d.ts +83 -212
- package/dist/wire/src/live-activity.js +1 -1
- package/dist/wire/src/live-activity.js.map +1 -1
- package/dist/wire/src/model.d.ts +450 -2305
- package/dist/wire/src/relay.d.ts +41 -267
- package/dist/wire/src/relay.js +1 -1
- package/dist/wire/src/relay.js.map +1 -1
- package/dist/wire/src/rpc-mcp.d.ts +21 -136
- package/dist/wire/src/rpc-mcp.js +1 -1
- package/dist/wire/src/rpc-mcp.js.map +1 -1
- package/dist/wire/src/rpc.d.ts +6689 -31361
- package/dist/wire/src/rpc.js +5 -5
- package/dist/wire/src/rpc.js.map +1 -1
- package/dist/wire/src/side.d.ts +13 -61
- package/dist/wire/src/updates.d.ts +1728 -6848
- package/dist/wire/src/usage.d.ts +17 -195
- package/dist/wire/src/watch.d.ts +223 -1141
- package/dist/wire/src/workflow.d.ts +46 -139
- package/package.json +4 -4
|
@@ -1,320 +1,178 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
declare const contentVariants: z.ZodDiscriminatedUnion<
|
|
3
|
-
annotations: z.
|
|
4
|
-
audience: z.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
audience
|
|
13
|
-
priority
|
|
14
|
-
lastModified
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
23
|
-
}, z.ZodTypeAny, "passthrough"> | null | undefined>;
|
|
24
|
-
_meta: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>;
|
|
2
|
+
declare const contentVariants: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
annotations: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4
|
+
audience: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
5
|
+
user: "user";
|
|
6
|
+
assistant: "assistant";
|
|
7
|
+
}>>>>, z.ZodTransform<("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>>>;
|
|
8
|
+
priority: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>>;
|
|
9
|
+
lastModified: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
10
|
+
}, z.core.$loose>>>, z.ZodTransform<{
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
13
|
+
priority?: number | undefined;
|
|
14
|
+
lastModified?: string | undefined;
|
|
15
|
+
} | undefined, {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
18
|
+
priority?: number | undefined;
|
|
19
|
+
lastModified?: string | undefined;
|
|
20
|
+
} | null | undefined>>>;
|
|
21
|
+
_meta: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, z.ZodTransform<Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>>>;
|
|
25
22
|
type: z.ZodLiteral<"text">;
|
|
26
23
|
text: z.ZodString;
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
48
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
49
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
50
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
51
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
52
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
53
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
54
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
55
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
56
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
57
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
58
|
-
}, z.ZodTypeAny, "passthrough">>>>, z.objectOutputType<{
|
|
59
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
60
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
61
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
62
|
-
}, z.ZodTypeAny, "passthrough"> | undefined, z.objectInputType<{
|
|
63
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
64
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
65
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
66
|
-
}, z.ZodTypeAny, "passthrough"> | null | undefined>;
|
|
67
|
-
_meta: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
annotations: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
|
+
audience: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
27
|
+
user: "user";
|
|
28
|
+
assistant: "assistant";
|
|
29
|
+
}>>>>, z.ZodTransform<("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>>>;
|
|
30
|
+
priority: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>>;
|
|
31
|
+
lastModified: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
32
|
+
}, z.core.$loose>>>, z.ZodTransform<{
|
|
33
|
+
[x: string]: unknown;
|
|
34
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
35
|
+
priority?: number | undefined;
|
|
36
|
+
lastModified?: string | undefined;
|
|
37
|
+
} | undefined, {
|
|
38
|
+
[x: string]: unknown;
|
|
39
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
40
|
+
priority?: number | undefined;
|
|
41
|
+
lastModified?: string | undefined;
|
|
42
|
+
} | null | undefined>>>;
|
|
43
|
+
_meta: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, z.ZodTransform<Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>>>;
|
|
68
44
|
type: z.ZodLiteral<"image">;
|
|
69
45
|
mimeType: z.ZodString;
|
|
70
|
-
data: z.
|
|
71
|
-
uri: z.
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
audience
|
|
88
|
-
priority
|
|
89
|
-
lastModified
|
|
90
|
-
}
|
|
91
|
-
_meta
|
|
92
|
-
data?: string | null | undefined;
|
|
93
|
-
uri?: string | null | undefined;
|
|
94
|
-
}>, z.ZodObject<{
|
|
95
|
-
annotations: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
96
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
97
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
98
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
99
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
100
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
101
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
102
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
103
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
104
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
105
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
106
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
107
|
-
}, z.ZodTypeAny, "passthrough">>>>, z.objectOutputType<{
|
|
108
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
109
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
110
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
111
|
-
}, z.ZodTypeAny, "passthrough"> | undefined, z.objectInputType<{
|
|
112
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
113
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
114
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
115
|
-
}, z.ZodTypeAny, "passthrough"> | null | undefined>;
|
|
116
|
-
_meta: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>;
|
|
46
|
+
data: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
47
|
+
uri: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
48
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
+
annotations: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
50
|
+
audience: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
51
|
+
user: "user";
|
|
52
|
+
assistant: "assistant";
|
|
53
|
+
}>>>>, z.ZodTransform<("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>>>;
|
|
54
|
+
priority: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>>;
|
|
55
|
+
lastModified: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
56
|
+
}, z.core.$loose>>>, z.ZodTransform<{
|
|
57
|
+
[x: string]: unknown;
|
|
58
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
59
|
+
priority?: number | undefined;
|
|
60
|
+
lastModified?: string | undefined;
|
|
61
|
+
} | undefined, {
|
|
62
|
+
[x: string]: unknown;
|
|
63
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
64
|
+
priority?: number | undefined;
|
|
65
|
+
lastModified?: string | undefined;
|
|
66
|
+
} | null | undefined>>>;
|
|
67
|
+
_meta: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, z.ZodTransform<Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>>>;
|
|
117
68
|
type: z.ZodLiteral<"audio">;
|
|
118
69
|
mimeType: z.ZodString;
|
|
119
|
-
data: z.
|
|
120
|
-
uri: z.
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
audience
|
|
137
|
-
priority
|
|
138
|
-
lastModified
|
|
139
|
-
}
|
|
140
|
-
_meta
|
|
141
|
-
data?: string | null | undefined;
|
|
142
|
-
uri?: string | null | undefined;
|
|
143
|
-
}>, z.ZodObject<{
|
|
144
|
-
annotations: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
145
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
146
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
147
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
148
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
149
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
150
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
151
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
152
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
153
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
154
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
155
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
156
|
-
}, z.ZodTypeAny, "passthrough">>>>, z.objectOutputType<{
|
|
157
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
158
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
159
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
160
|
-
}, z.ZodTypeAny, "passthrough"> | undefined, z.objectInputType<{
|
|
161
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
162
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
163
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
164
|
-
}, z.ZodTypeAny, "passthrough"> | null | undefined>;
|
|
165
|
-
_meta: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>;
|
|
70
|
+
data: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
71
|
+
uri: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
72
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
+
annotations: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
74
|
+
audience: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
75
|
+
user: "user";
|
|
76
|
+
assistant: "assistant";
|
|
77
|
+
}>>>>, z.ZodTransform<("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>>>;
|
|
78
|
+
priority: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>>;
|
|
79
|
+
lastModified: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
80
|
+
}, z.core.$loose>>>, z.ZodTransform<{
|
|
81
|
+
[x: string]: unknown;
|
|
82
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
83
|
+
priority?: number | undefined;
|
|
84
|
+
lastModified?: string | undefined;
|
|
85
|
+
} | undefined, {
|
|
86
|
+
[x: string]: unknown;
|
|
87
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
88
|
+
priority?: number | undefined;
|
|
89
|
+
lastModified?: string | undefined;
|
|
90
|
+
} | null | undefined>>>;
|
|
91
|
+
_meta: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, z.ZodTransform<Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>>>;
|
|
166
92
|
type: z.ZodLiteral<"resource">;
|
|
167
93
|
resource: z.ZodObject<{
|
|
168
94
|
uri: z.ZodString;
|
|
169
|
-
mimeType: z.
|
|
170
|
-
text: z.
|
|
171
|
-
blob: z.
|
|
172
|
-
assetUri: z.
|
|
173
|
-
_meta: z.
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
201
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
202
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
203
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
204
|
-
_meta?: Record<string, unknown> | undefined;
|
|
205
|
-
}, {
|
|
206
|
-
type: "resource";
|
|
207
|
-
resource: {
|
|
208
|
-
uri: string;
|
|
209
|
-
text?: string | null | undefined;
|
|
210
|
-
_meta?: Record<string, unknown> | null | undefined;
|
|
211
|
-
mimeType?: string | null | undefined;
|
|
212
|
-
blob?: string | null | undefined;
|
|
213
|
-
assetUri?: string | null | undefined;
|
|
214
|
-
};
|
|
215
|
-
annotations?: z.objectInputType<{
|
|
216
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
217
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
218
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
219
|
-
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
220
|
-
_meta?: Record<string, unknown> | null | undefined;
|
|
221
|
-
}>, z.ZodObject<{
|
|
222
|
-
/** What the link names: a file (default), a skill the user invoked, or another agent. */
|
|
223
|
-
kind: z.ZodOptional<z.ZodEnum<["file", "skill", "agent"]>>;
|
|
224
|
-
annotations: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
225
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
226
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
227
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
228
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
229
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
230
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
231
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
232
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
233
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
234
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
235
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
236
|
-
}, z.ZodTypeAny, "passthrough">>>>, z.objectOutputType<{
|
|
237
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
238
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
239
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
240
|
-
}, z.ZodTypeAny, "passthrough"> | undefined, z.objectInputType<{
|
|
241
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
242
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
243
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
244
|
-
}, z.ZodTypeAny, "passthrough"> | null | undefined>;
|
|
245
|
-
_meta: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>;
|
|
95
|
+
mimeType: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
96
|
+
text: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
97
|
+
blob: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
98
|
+
assetUri: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
99
|
+
_meta: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, z.ZodTransform<Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>>>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
103
|
+
file: "file";
|
|
104
|
+
skill: "skill";
|
|
105
|
+
agent: "agent";
|
|
106
|
+
}>>;
|
|
107
|
+
annotations: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
108
|
+
audience: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
109
|
+
user: "user";
|
|
110
|
+
assistant: "assistant";
|
|
111
|
+
}>>>>, z.ZodTransform<("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>>>;
|
|
112
|
+
priority: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>>;
|
|
113
|
+
lastModified: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
114
|
+
}, z.core.$loose>>>, z.ZodTransform<{
|
|
115
|
+
[x: string]: unknown;
|
|
116
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
117
|
+
priority?: number | undefined;
|
|
118
|
+
lastModified?: string | undefined;
|
|
119
|
+
} | undefined, {
|
|
120
|
+
[x: string]: unknown;
|
|
121
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
122
|
+
priority?: number | undefined;
|
|
123
|
+
lastModified?: string | undefined;
|
|
124
|
+
} | null | undefined>>>;
|
|
125
|
+
_meta: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, z.ZodTransform<Record<string, unknown> | undefined, Record<string, unknown> | null | undefined>>>;
|
|
246
126
|
type: z.ZodLiteral<"resource_link">;
|
|
247
127
|
uri: z.ZodString;
|
|
248
128
|
name: z.ZodString;
|
|
249
|
-
title: z.
|
|
250
|
-
description: z.
|
|
251
|
-
mimeType: z.
|
|
252
|
-
size: z.
|
|
253
|
-
},
|
|
254
|
-
type: "resource_link";
|
|
255
|
-
uri: string;
|
|
256
|
-
name: string;
|
|
257
|
-
kind?: "file" | "skill" | "agent" | undefined;
|
|
258
|
-
annotations?: z.objectOutputType<{
|
|
259
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
260
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
261
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
262
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
263
|
-
_meta?: Record<string, unknown> | undefined;
|
|
264
|
-
mimeType?: string | undefined;
|
|
265
|
-
title?: string | undefined;
|
|
266
|
-
description?: string | undefined;
|
|
267
|
-
size?: number | undefined;
|
|
268
|
-
}, {
|
|
269
|
-
type: "resource_link";
|
|
270
|
-
uri: string;
|
|
271
|
-
name: string;
|
|
272
|
-
kind?: "file" | "skill" | "agent" | undefined;
|
|
273
|
-
annotations?: z.objectInputType<{
|
|
274
|
-
audience: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
275
|
-
priority: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | undefined, number | null | undefined>;
|
|
276
|
-
lastModified: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
277
|
-
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
278
|
-
_meta?: Record<string, unknown> | null | undefined;
|
|
279
|
-
mimeType?: string | null | undefined;
|
|
280
|
-
title?: string | null | undefined;
|
|
281
|
-
description?: string | null | undefined;
|
|
282
|
-
size?: number | null | undefined;
|
|
283
|
-
}>]>;
|
|
129
|
+
title: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
130
|
+
description: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
131
|
+
mimeType: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>>;
|
|
132
|
+
size: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>>;
|
|
133
|
+
}, z.core.$strip>], "type">;
|
|
284
134
|
export type ContentBlock = z.infer<typeof contentVariants>;
|
|
285
|
-
export declare const contentBlockSchema: z.ZodType<ContentBlock,
|
|
286
|
-
export declare const toolCallStatusSchema: z.ZodEnum<
|
|
135
|
+
export declare const contentBlockSchema: z.ZodType<ContentBlock, unknown>;
|
|
136
|
+
export declare const toolCallStatusSchema: z.ZodEnum<{
|
|
137
|
+
pending: "pending";
|
|
138
|
+
in_progress: "in_progress";
|
|
139
|
+
completed: "completed";
|
|
140
|
+
failed: "failed";
|
|
141
|
+
}>;
|
|
287
142
|
export type ToolCallStatus = z.infer<typeof toolCallStatusSchema>;
|
|
288
|
-
export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<
|
|
143
|
+
export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
289
144
|
type: z.ZodLiteral<"content">;
|
|
290
145
|
content: z.ZodType<{
|
|
291
146
|
type: "text";
|
|
292
147
|
text: string;
|
|
293
|
-
annotations?:
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
148
|
+
annotations?: {
|
|
149
|
+
[x: string]: unknown;
|
|
150
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
151
|
+
priority?: number | undefined;
|
|
152
|
+
lastModified?: string | undefined;
|
|
153
|
+
} | undefined;
|
|
298
154
|
_meta?: Record<string, unknown> | undefined;
|
|
299
155
|
} | {
|
|
300
156
|
type: "image";
|
|
301
157
|
mimeType: string;
|
|
302
|
-
annotations?:
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
158
|
+
annotations?: {
|
|
159
|
+
[x: string]: unknown;
|
|
160
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
161
|
+
priority?: number | undefined;
|
|
162
|
+
lastModified?: string | undefined;
|
|
163
|
+
} | undefined;
|
|
307
164
|
_meta?: Record<string, unknown> | undefined;
|
|
308
165
|
data?: string | undefined;
|
|
309
166
|
uri?: string | undefined;
|
|
310
167
|
} | {
|
|
311
168
|
type: "audio";
|
|
312
169
|
mimeType: string;
|
|
313
|
-
annotations?:
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
170
|
+
annotations?: {
|
|
171
|
+
[x: string]: unknown;
|
|
172
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
173
|
+
priority?: number | undefined;
|
|
174
|
+
lastModified?: string | undefined;
|
|
175
|
+
} | undefined;
|
|
318
176
|
_meta?: Record<string, unknown> | undefined;
|
|
319
177
|
data?: string | undefined;
|
|
320
178
|
uri?: string | undefined;
|
|
@@ -322,64 +180,66 @@ export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
322
180
|
type: "resource";
|
|
323
181
|
resource: {
|
|
324
182
|
uri: string;
|
|
325
|
-
text?: string | undefined;
|
|
326
|
-
_meta?: Record<string, unknown> | undefined;
|
|
327
183
|
mimeType?: string | undefined;
|
|
184
|
+
text?: string | undefined;
|
|
328
185
|
blob?: string | undefined;
|
|
329
186
|
assetUri?: string | undefined;
|
|
187
|
+
_meta?: Record<string, unknown> | undefined;
|
|
330
188
|
};
|
|
331
|
-
annotations?:
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
189
|
+
annotations?: {
|
|
190
|
+
[x: string]: unknown;
|
|
191
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
192
|
+
priority?: number | undefined;
|
|
193
|
+
lastModified?: string | undefined;
|
|
194
|
+
} | undefined;
|
|
336
195
|
_meta?: Record<string, unknown> | undefined;
|
|
337
196
|
} | {
|
|
338
197
|
type: "resource_link";
|
|
339
198
|
uri: string;
|
|
340
199
|
name: string;
|
|
341
200
|
kind?: "file" | "skill" | "agent" | undefined;
|
|
342
|
-
annotations?:
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
201
|
+
annotations?: {
|
|
202
|
+
[x: string]: unknown;
|
|
203
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
204
|
+
priority?: number | undefined;
|
|
205
|
+
lastModified?: string | undefined;
|
|
206
|
+
} | undefined;
|
|
347
207
|
_meta?: Record<string, unknown> | undefined;
|
|
348
|
-
mimeType?: string | undefined;
|
|
349
208
|
title?: string | undefined;
|
|
350
209
|
description?: string | undefined;
|
|
210
|
+
mimeType?: string | undefined;
|
|
351
211
|
size?: number | undefined;
|
|
352
|
-
}, z.
|
|
353
|
-
}, "strip", z.ZodTypeAny, {
|
|
354
|
-
type: "content";
|
|
355
|
-
content: {
|
|
212
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
356
213
|
type: "text";
|
|
357
214
|
text: string;
|
|
358
|
-
annotations?:
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
215
|
+
annotations?: {
|
|
216
|
+
[x: string]: unknown;
|
|
217
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
218
|
+
priority?: number | undefined;
|
|
219
|
+
lastModified?: string | undefined;
|
|
220
|
+
} | undefined;
|
|
363
221
|
_meta?: Record<string, unknown> | undefined;
|
|
364
222
|
} | {
|
|
365
223
|
type: "image";
|
|
366
224
|
mimeType: string;
|
|
367
|
-
annotations?:
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
225
|
+
annotations?: {
|
|
226
|
+
[x: string]: unknown;
|
|
227
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
228
|
+
priority?: number | undefined;
|
|
229
|
+
lastModified?: string | undefined;
|
|
230
|
+
} | undefined;
|
|
372
231
|
_meta?: Record<string, unknown> | undefined;
|
|
373
232
|
data?: string | undefined;
|
|
374
233
|
uri?: string | undefined;
|
|
375
234
|
} | {
|
|
376
235
|
type: "audio";
|
|
377
236
|
mimeType: string;
|
|
378
|
-
annotations?:
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
237
|
+
annotations?: {
|
|
238
|
+
[x: string]: unknown;
|
|
239
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
240
|
+
priority?: number | undefined;
|
|
241
|
+
lastModified?: string | undefined;
|
|
242
|
+
} | undefined;
|
|
383
243
|
_meta?: Record<string, unknown> | undefined;
|
|
384
244
|
data?: string | undefined;
|
|
385
245
|
uri?: string | undefined;
|
|
@@ -387,79 +247,54 @@ export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
387
247
|
type: "resource";
|
|
388
248
|
resource: {
|
|
389
249
|
uri: string;
|
|
390
|
-
text?: string | undefined;
|
|
391
|
-
_meta?: Record<string, unknown> | undefined;
|
|
392
250
|
mimeType?: string | undefined;
|
|
251
|
+
text?: string | undefined;
|
|
393
252
|
blob?: string | undefined;
|
|
394
253
|
assetUri?: string | undefined;
|
|
254
|
+
_meta?: Record<string, unknown> | undefined;
|
|
395
255
|
};
|
|
396
|
-
annotations?:
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
256
|
+
annotations?: {
|
|
257
|
+
[x: string]: unknown;
|
|
258
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
259
|
+
priority?: number | undefined;
|
|
260
|
+
lastModified?: string | undefined;
|
|
261
|
+
} | undefined;
|
|
401
262
|
_meta?: Record<string, unknown> | undefined;
|
|
402
263
|
} | {
|
|
403
264
|
type: "resource_link";
|
|
404
265
|
uri: string;
|
|
405
266
|
name: string;
|
|
406
267
|
kind?: "file" | "skill" | "agent" | undefined;
|
|
407
|
-
annotations?:
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
268
|
+
annotations?: {
|
|
269
|
+
[x: string]: unknown;
|
|
270
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
271
|
+
priority?: number | undefined;
|
|
272
|
+
lastModified?: string | undefined;
|
|
273
|
+
} | undefined;
|
|
412
274
|
_meta?: Record<string, unknown> | undefined;
|
|
413
|
-
mimeType?: string | undefined;
|
|
414
275
|
title?: string | undefined;
|
|
415
276
|
description?: string | undefined;
|
|
277
|
+
mimeType?: string | undefined;
|
|
416
278
|
size?: number | undefined;
|
|
417
|
-
}
|
|
418
|
-
}, {
|
|
419
|
-
type: "content";
|
|
420
|
-
content?: unknown;
|
|
421
|
-
}>, z.ZodObject<{
|
|
279
|
+
}, unknown>>;
|
|
280
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
422
281
|
type: z.ZodLiteral<"diff">;
|
|
423
282
|
path: z.ZodString;
|
|
424
283
|
oldText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
425
284
|
newText: z.ZodString;
|
|
426
|
-
},
|
|
427
|
-
path: string;
|
|
428
|
-
type: "diff";
|
|
429
|
-
newText: string;
|
|
430
|
-
oldText?: string | null | undefined;
|
|
431
|
-
}, {
|
|
432
|
-
path: string;
|
|
433
|
-
type: "diff";
|
|
434
|
-
newText: string;
|
|
435
|
-
oldText?: string | null | undefined;
|
|
436
|
-
}>, z.ZodObject<{
|
|
285
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
437
286
|
type: z.ZodLiteral<"patch">;
|
|
438
287
|
path: z.ZodString;
|
|
439
|
-
change: z.ZodEnum<
|
|
288
|
+
change: z.ZodEnum<{
|
|
289
|
+
add: "add";
|
|
290
|
+
delete: "delete";
|
|
291
|
+
update: "update";
|
|
292
|
+
}>;
|
|
440
293
|
movePath: z.ZodOptional<z.ZodString>;
|
|
441
294
|
diff: z.ZodString;
|
|
442
|
-
},
|
|
443
|
-
path: string;
|
|
444
|
-
type: "patch";
|
|
445
|
-
diff: string;
|
|
446
|
-
change: "add" | "delete" | "update";
|
|
447
|
-
movePath?: string | undefined;
|
|
448
|
-
}, {
|
|
449
|
-
path: string;
|
|
450
|
-
type: "patch";
|
|
451
|
-
diff: string;
|
|
452
|
-
change: "add" | "delete" | "update";
|
|
453
|
-
movePath?: string | undefined;
|
|
454
|
-
}>, z.ZodObject<{
|
|
295
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
455
296
|
type: z.ZodLiteral<"terminal">;
|
|
456
297
|
terminalId: z.ZodString;
|
|
457
|
-
},
|
|
458
|
-
type: "terminal";
|
|
459
|
-
terminalId: string;
|
|
460
|
-
}, {
|
|
461
|
-
type: "terminal";
|
|
462
|
-
terminalId: string;
|
|
463
|
-
}>]>;
|
|
298
|
+
}, z.core.$strip>], "type">;
|
|
464
299
|
export type ToolCallContent = z.infer<typeof toolCallContentSchema>;
|
|
465
300
|
export {};
|