@nervekit/shared 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 +201 -0
- package/NOTICE +5 -0
- package/dist/agent-worker.d.ts +66 -0
- package/dist/agent-worker.d.ts.map +1 -0
- package/dist/agent-worker.js +45 -0
- package/dist/agent-worker.js.map +1 -0
- package/dist/agents.d.ts +211 -0
- package/dist/agents.d.ts.map +1 -0
- package/dist/agents.js +105 -0
- package/dist/agents.js.map +1 -0
- package/dist/api-errors.d.ts +10 -0
- package/dist/api-errors.d.ts.map +1 -0
- package/dist/api-errors.js +9 -0
- package/dist/api-errors.js.map +1 -0
- package/dist/auth.d.ts +110 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +82 -0
- package/dist/auth.js.map +1 -0
- package/dist/conversation-title.d.ts +2 -0
- package/dist/conversation-title.d.ts.map +1 -0
- package/dist/conversation-title.js +244 -0
- package/dist/conversation-title.js.map +1 -0
- package/dist/conversation.d.ts +269 -0
- package/dist/conversation.d.ts.map +1 -0
- package/dist/conversation.js +26 -0
- package/dist/conversation.js.map +1 -0
- package/dist/conversations.d.ts +219 -0
- package/dist/conversations.d.ts.map +1 -0
- package/dist/conversations.js +88 -0
- package/dist/conversations.js.map +1 -0
- package/dist/core/api-errors.d.ts +10 -0
- package/dist/core/api-errors.d.ts.map +1 -0
- package/dist/core/api-errors.js +9 -0
- package/dist/core/api-errors.js.map +1 -0
- package/dist/core/cookies.d.ts +2 -0
- package/dist/core/cookies.d.ts.map +1 -0
- package/dist/core/cookies.js +13 -0
- package/dist/core/cookies.js.map +1 -0
- package/dist/core/html.d.ts +6 -0
- package/dist/core/html.d.ts.map +1 -0
- package/dist/core/html.js +13 -0
- package/dist/core/html.js.map +1 -0
- package/dist/core/ids.d.ts +3 -0
- package/dist/core/ids.d.ts.map +1 -0
- package/dist/core/ids.js +22 -0
- package/dist/core/ids.js.map +1 -0
- package/dist/core/index.d.ts +5 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +5 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core.d.ts +4 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +34 -0
- package/dist/core.js.map +1 -0
- package/dist/domains/agents/agent.schema.d.ts +213 -0
- package/dist/domains/agents/agent.schema.d.ts.map +1 -0
- package/dist/domains/agents/agent.schema.js +107 -0
- package/dist/domains/agents/agent.schema.js.map +1 -0
- package/dist/domains/agents/index.d.ts +2 -0
- package/dist/domains/agents/index.d.ts.map +1 -0
- package/dist/domains/agents/index.js +2 -0
- package/dist/domains/agents/index.js.map +1 -0
- package/dist/domains/auth/auth.schema.d.ts +110 -0
- package/dist/domains/auth/auth.schema.d.ts.map +1 -0
- package/dist/domains/auth/auth.schema.js +82 -0
- package/dist/domains/auth/auth.schema.js.map +1 -0
- package/dist/domains/auth/index.d.ts +2 -0
- package/dist/domains/auth/index.d.ts.map +1 -0
- package/dist/domains/auth/index.js +2 -0
- package/dist/domains/auth/index.js.map +1 -0
- package/dist/domains/completions/completion.schema.d.ts +48 -0
- package/dist/domains/completions/completion.schema.d.ts.map +1 -0
- package/dist/domains/completions/completion.schema.js +25 -0
- package/dist/domains/completions/completion.schema.js.map +1 -0
- package/dist/domains/completions/completions.schema.d.ts +21 -0
- package/dist/domains/completions/completions.schema.d.ts.map +1 -0
- package/dist/domains/completions/completions.schema.js +22 -0
- package/dist/domains/completions/completions.schema.js.map +1 -0
- package/dist/domains/completions/index.d.ts +2 -0
- package/dist/domains/completions/index.d.ts.map +1 -0
- package/dist/domains/completions/index.js +2 -0
- package/dist/domains/completions/index.js.map +1 -0
- package/dist/domains/conversations/conversation.schema.d.ts +354 -0
- package/dist/domains/conversations/conversation.schema.d.ts.map +1 -0
- package/dist/domains/conversations/conversation.schema.js +30 -0
- package/dist/domains/conversations/conversation.schema.js.map +1 -0
- package/dist/domains/conversations/index.d.ts +4 -0
- package/dist/domains/conversations/index.d.ts.map +1 -0
- package/dist/domains/conversations/index.js +4 -0
- package/dist/domains/conversations/index.js.map +1 -0
- package/dist/domains/conversations/title.d.ts +3 -0
- package/dist/domains/conversations/title.d.ts.map +1 -0
- package/dist/domains/conversations/title.js +250 -0
- package/dist/domains/conversations/title.js.map +1 -0
- package/dist/domains/conversations/tree.schema.d.ts +228 -0
- package/dist/domains/conversations/tree.schema.d.ts.map +1 -0
- package/dist/domains/conversations/tree.schema.js +89 -0
- package/dist/domains/conversations/tree.schema.js.map +1 -0
- package/dist/domains/events/envelope.schema.d.ts +17 -0
- package/dist/domains/events/envelope.schema.d.ts.map +1 -0
- package/dist/domains/events/envelope.schema.js +10 -0
- package/dist/domains/events/envelope.schema.js.map +1 -0
- package/dist/domains/events/index.d.ts +2 -0
- package/dist/domains/events/index.d.ts.map +1 -0
- package/dist/domains/events/index.js +2 -0
- package/dist/domains/events/index.js.map +1 -0
- package/dist/domains/filesystem/filesystem.schema.d.ts +95 -0
- package/dist/domains/filesystem/filesystem.schema.d.ts.map +1 -0
- package/dist/domains/filesystem/filesystem.schema.js +56 -0
- package/dist/domains/filesystem/filesystem.schema.js.map +1 -0
- package/dist/domains/filesystem/index.d.ts +2 -0
- package/dist/domains/filesystem/index.d.ts.map +1 -0
- package/dist/domains/filesystem/index.js +2 -0
- package/dist/domains/filesystem/index.js.map +1 -0
- package/dist/domains/git/git.schema.d.ts +391 -0
- package/dist/domains/git/git.schema.d.ts.map +1 -0
- package/dist/domains/git/git.schema.js +172 -0
- package/dist/domains/git/git.schema.js.map +1 -0
- package/dist/domains/git/index.d.ts +2 -0
- package/dist/domains/git/index.d.ts.map +1 -0
- package/dist/domains/git/index.js +2 -0
- package/dist/domains/git/index.js.map +1 -0
- package/dist/domains/logs/index.d.ts +2 -0
- package/dist/domains/logs/index.d.ts.map +1 -0
- package/dist/domains/logs/index.js +2 -0
- package/dist/domains/logs/index.js.map +1 -0
- package/dist/domains/logs/logs.schema.d.ts +186 -0
- package/dist/domains/logs/logs.schema.d.ts.map +1 -0
- package/dist/domains/logs/logs.schema.js +84 -0
- package/dist/domains/logs/logs.schema.js.map +1 -0
- package/dist/domains/models/index.d.ts +2 -0
- package/dist/domains/models/index.d.ts.map +1 -0
- package/dist/domains/models/index.js +2 -0
- package/dist/domains/models/index.js.map +1 -0
- package/dist/domains/models/models.schema.d.ts +49 -0
- package/dist/domains/models/models.schema.d.ts.map +1 -0
- package/dist/domains/models/models.schema.js +38 -0
- package/dist/domains/models/models.schema.js.map +1 -0
- package/dist/domains/pinned-commands/index.d.ts +2 -0
- package/dist/domains/pinned-commands/index.d.ts.map +1 -0
- package/dist/domains/pinned-commands/index.js +2 -0
- package/dist/domains/pinned-commands/index.js.map +1 -0
- package/dist/domains/pinned-commands/pinned-command.schema.d.ts +30 -0
- package/dist/domains/pinned-commands/pinned-command.schema.d.ts.map +1 -0
- package/dist/domains/pinned-commands/pinned-command.schema.js +19 -0
- package/dist/domains/pinned-commands/pinned-command.schema.js.map +1 -0
- package/dist/domains/plans/index.d.ts +2 -0
- package/dist/domains/plans/index.d.ts.map +1 -0
- package/dist/domains/plans/index.js +2 -0
- package/dist/domains/plans/index.js.map +1 -0
- package/dist/domains/plans/plan-review.schema.d.ts +59 -0
- package/dist/domains/plans/plan-review.schema.d.ts.map +1 -0
- package/dist/domains/plans/plan-review.schema.js +38 -0
- package/dist/domains/plans/plan-review.schema.js.map +1 -0
- package/dist/domains/processes/index.d.ts +2 -0
- package/dist/domains/processes/index.d.ts.map +1 -0
- package/dist/domains/processes/index.js +2 -0
- package/dist/domains/processes/index.js.map +1 -0
- package/dist/domains/processes/process.schema.d.ts +241 -0
- package/dist/domains/processes/process.schema.d.ts.map +1 -0
- package/dist/domains/processes/process.schema.js +106 -0
- package/dist/domains/processes/process.schema.js.map +1 -0
- package/dist/domains/projects/index.d.ts +2 -0
- package/dist/domains/projects/index.d.ts.map +1 -0
- package/dist/domains/projects/index.js +2 -0
- package/dist/domains/projects/index.js.map +1 -0
- package/dist/domains/projects/project.schema.d.ts +71 -0
- package/dist/domains/projects/project.schema.d.ts.map +1 -0
- package/dist/domains/projects/project.schema.js +47 -0
- package/dist/domains/projects/project.schema.js.map +1 -0
- package/dist/domains/providers/index.d.ts +2 -0
- package/dist/domains/providers/index.d.ts.map +1 -0
- package/dist/domains/providers/index.js +2 -0
- package/dist/domains/providers/index.js.map +1 -0
- package/dist/domains/providers/providers.schema.d.ts +227 -0
- package/dist/domains/providers/providers.schema.d.ts.map +1 -0
- package/dist/domains/providers/providers.schema.js +81 -0
- package/dist/domains/providers/providers.schema.js.map +1 -0
- package/dist/domains/settings/index.d.ts +2 -0
- package/dist/domains/settings/index.d.ts.map +1 -0
- package/dist/domains/settings/index.js +2 -0
- package/dist/domains/settings/index.js.map +1 -0
- package/dist/domains/settings/settings.schema.d.ts +244 -0
- package/dist/domains/settings/settings.schema.d.ts.map +1 -0
- package/dist/domains/settings/settings.schema.js +167 -0
- package/dist/domains/settings/settings.schema.js.map +1 -0
- package/dist/domains/status/index.d.ts +2 -0
- package/dist/domains/status/index.d.ts.map +1 -0
- package/dist/domains/status/index.js +2 -0
- package/dist/domains/status/index.js.map +1 -0
- package/dist/domains/status/status.schema.d.ts +143 -0
- package/dist/domains/status/status.schema.d.ts.map +1 -0
- package/dist/domains/status/status.schema.js +73 -0
- package/dist/domains/status/status.schema.js.map +1 -0
- package/dist/domains/storage/index.d.ts +2 -0
- package/dist/domains/storage/index.d.ts.map +1 -0
- package/dist/domains/storage/index.js +2 -0
- package/dist/domains/storage/index.js.map +1 -0
- package/dist/domains/storage/storage.schema.d.ts +165 -0
- package/dist/domains/storage/storage.schema.d.ts.map +1 -0
- package/dist/domains/storage/storage.schema.js +78 -0
- package/dist/domains/storage/storage.schema.js.map +1 -0
- package/dist/domains/suspensions/index.d.ts +2 -0
- package/dist/domains/suspensions/index.d.ts.map +1 -0
- package/dist/domains/suspensions/index.js +2 -0
- package/dist/domains/suspensions/index.js.map +1 -0
- package/dist/domains/suspensions/suspension.schema.d.ts +55 -0
- package/dist/domains/suspensions/suspension.schema.d.ts.map +1 -0
- package/dist/domains/suspensions/suspension.schema.js +38 -0
- package/dist/domains/suspensions/suspension.schema.js.map +1 -0
- package/dist/domains/tasks/index.d.ts +2 -0
- package/dist/domains/tasks/index.d.ts.map +1 -0
- package/dist/domains/tasks/index.js +2 -0
- package/dist/domains/tasks/index.js.map +1 -0
- package/dist/domains/tasks/task.schema.d.ts +373 -0
- package/dist/domains/tasks/task.schema.d.ts.map +1 -0
- package/dist/domains/tasks/task.schema.js +158 -0
- package/dist/domains/tasks/task.schema.js.map +1 -0
- package/dist/domains/tools/index.d.ts +3 -0
- package/dist/domains/tools/index.d.ts.map +1 -0
- package/dist/domains/tools/index.js +3 -0
- package/dist/domains/tools/index.js.map +1 -0
- package/dist/domains/tools/records.schema.d.ts +301 -0
- package/dist/domains/tools/records.schema.d.ts.map +1 -0
- package/dist/domains/tools/records.schema.js +137 -0
- package/dist/domains/tools/records.schema.js.map +1 -0
- package/dist/domains/tools/tool-results.schema.d.ts +1062 -0
- package/dist/domains/tools/tool-results.schema.d.ts.map +1 -0
- package/dist/domains/tools/tool-results.schema.js +274 -0
- package/dist/domains/tools/tool-results.schema.js.map +1 -0
- package/dist/domains/transcription/index.d.ts +2 -0
- package/dist/domains/transcription/index.d.ts.map +1 -0
- package/dist/domains/transcription/index.js +2 -0
- package/dist/domains/transcription/index.js.map +1 -0
- package/dist/domains/transcription/transcription.schema.d.ts +8 -0
- package/dist/domains/transcription/transcription.schema.d.ts.map +1 -0
- package/dist/domains/transcription/transcription.schema.js +7 -0
- package/dist/domains/transcription/transcription.schema.js.map +1 -0
- package/dist/domains/usage/index.d.ts +2 -0
- package/dist/domains/usage/index.d.ts.map +1 -0
- package/dist/domains/usage/index.js +2 -0
- package/dist/domains/usage/index.js.map +1 -0
- package/dist/domains/usage/usage.schema.d.ts +70 -0
- package/dist/domains/usage/usage.schema.d.ts.map +1 -0
- package/dist/domains/usage/usage.schema.js +35 -0
- package/dist/domains/usage/usage.schema.js.map +1 -0
- package/dist/domains/workers/agent-worker.schema.d.ts +66 -0
- package/dist/domains/workers/agent-worker.schema.d.ts.map +1 -0
- package/dist/domains/workers/agent-worker.schema.js +45 -0
- package/dist/domains/workers/agent-worker.schema.js.map +1 -0
- package/dist/domains/workers/index.d.ts +3 -0
- package/dist/domains/workers/index.d.ts.map +1 -0
- package/dist/domains/workers/index.js +3 -0
- package/dist/domains/workers/index.js.map +1 -0
- package/dist/domains/workers/worker.schema.d.ts +36 -0
- package/dist/domains/workers/worker.schema.d.ts.map +1 -0
- package/dist/domains/workers/worker.schema.js +24 -0
- package/dist/domains/workers/worker.schema.js.map +1 -0
- package/dist/events.d.ts +17 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +10 -0
- package/dist/events.js.map +1 -0
- package/dist/filesystem.d.ts +95 -0
- package/dist/filesystem.d.ts.map +1 -0
- package/dist/filesystem.js +56 -0
- package/dist/filesystem.js.map +1 -0
- package/dist/git.d.ts +386 -0
- package/dist/git.d.ts.map +1 -0
- package/dist/git.js +167 -0
- package/dist/git.js.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/logs.d.ts +186 -0
- package/dist/logs.d.ts.map +1 -0
- package/dist/logs.js +84 -0
- package/dist/logs.js.map +1 -0
- package/dist/models.d.ts +49 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +38 -0
- package/dist/models.js.map +1 -0
- package/dist/pinned-commands.d.ts +30 -0
- package/dist/pinned-commands.d.ts.map +1 -0
- package/dist/pinned-commands.js +19 -0
- package/dist/pinned-commands.js.map +1 -0
- package/dist/plans.d.ts +40 -0
- package/dist/plans.d.ts.map +1 -0
- package/dist/plans.js +34 -0
- package/dist/plans.js.map +1 -0
- package/dist/processes.d.ts +195 -0
- package/dist/processes.d.ts.map +1 -0
- package/dist/processes.js +86 -0
- package/dist/processes.js.map +1 -0
- package/dist/projects.d.ts +50 -0
- package/dist/projects.d.ts.map +1 -0
- package/dist/projects.js +38 -0
- package/dist/projects.js.map +1 -0
- package/dist/settings.d.ts +136 -0
- package/dist/settings.d.ts.map +1 -0
- package/dist/settings.js +124 -0
- package/dist/settings.js.map +1 -0
- package/dist/status.d.ts +39 -0
- package/dist/status.d.ts.map +1 -0
- package/dist/status.js +38 -0
- package/dist/status.js.map +1 -0
- package/dist/suspensions.d.ts +55 -0
- package/dist/suspensions.d.ts.map +1 -0
- package/dist/suspensions.js +38 -0
- package/dist/suspensions.js.map +1 -0
- package/dist/tool-results.d.ts +369 -0
- package/dist/tool-results.d.ts.map +1 -0
- package/dist/tool-results.js +117 -0
- package/dist/tool-results.js.map +1 -0
- package/dist/tools.d.ts +277 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.js +127 -0
- package/dist/tools.js.map +1 -0
- package/dist/transcription.d.ts +8 -0
- package/dist/transcription.d.ts.map +1 -0
- package/dist/transcription.js +7 -0
- package/dist/transcription.js.map +1 -0
- package/dist/usage.d.ts +70 -0
- package/dist/usage.d.ts.map +1 -0
- package/dist/usage.js +35 -0
- package/dist/usage.js.map +1 -0
- package/dist/workers.d.ts +36 -0
- package/dist/workers.d.ts.map +1 -0
- package/dist/workers.js +22 -0
- package/dist/workers.js.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,1062 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Result contracts shared between the `@nervekit/tools` executors (producers) and the
|
|
4
|
+
* web UI (consumers). The persisted `toolCallRecordSchema.result` stays `z.unknown()`
|
|
5
|
+
* because results are heterogeneous across tools; these schemas let consumers narrow
|
|
6
|
+
* a result per tool via `safeParse` without throwing on partial/legacy payloads.
|
|
7
|
+
*/
|
|
8
|
+
export declare const toolTextContentSchema: z.ZodObject<{
|
|
9
|
+
type: z.ZodLiteral<"text">;
|
|
10
|
+
text: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type ToolTextContentPayload = z.infer<typeof toolTextContentSchema>;
|
|
13
|
+
export declare const toolImageContentSchema: z.ZodObject<{
|
|
14
|
+
type: z.ZodLiteral<"image">;
|
|
15
|
+
data: z.ZodString;
|
|
16
|
+
mimeType: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type ToolImageContentPayload = z.infer<typeof toolImageContentSchema>;
|
|
19
|
+
export declare const toolContentBlockSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
20
|
+
type: z.ZodLiteral<"text">;
|
|
21
|
+
text: z.ZodString;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
type: z.ZodLiteral<"image">;
|
|
24
|
+
data: z.ZodString;
|
|
25
|
+
mimeType: z.ZodString;
|
|
26
|
+
}, z.core.$strip>]>;
|
|
27
|
+
export type ToolContentBlockPayload = z.infer<typeof toolContentBlockSchema>;
|
|
28
|
+
/** Loose envelope covering the `details.truncation` shapes emitted by file tools. */
|
|
29
|
+
export declare const truncationDetailsSchema: z.ZodObject<{
|
|
30
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
omittedLines: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
omittedBytes: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
truncatedLines: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
head: "head";
|
|
36
|
+
tail: "tail";
|
|
37
|
+
line: "line";
|
|
38
|
+
head_tail: "head_tail";
|
|
39
|
+
}>>;
|
|
40
|
+
partialLine: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
nextOffset: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
nextByteOffset: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
maxLines: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
maxBytes: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
maxLineChars: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
byteOffset: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
byteLimit: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
rawResultPath: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$loose>;
|
|
50
|
+
export type TruncationDetails = z.infer<typeof truncationDetailsSchema>;
|
|
51
|
+
export declare const processStreamResultDetailsSchema: z.ZodObject<{
|
|
52
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
displayedBytes: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
displayedLines: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
omittedLines: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
omittedBytes: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
truncatedLines: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
61
|
+
head: "head";
|
|
62
|
+
tail: "tail";
|
|
63
|
+
line: "line";
|
|
64
|
+
head_tail: "head_tail";
|
|
65
|
+
}>>;
|
|
66
|
+
maxLineChars: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
savedTo: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$loose>;
|
|
69
|
+
export type ProcessStreamResultDetails = z.infer<typeof processStreamResultDetailsSchema>;
|
|
70
|
+
export declare const processStreamsResultDetailsSchema: z.ZodObject<{
|
|
71
|
+
stdout: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
displayedBytes: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
displayedLines: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
omittedLines: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
omittedBytes: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
truncatedLines: z.ZodOptional<z.ZodNumber>;
|
|
80
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
81
|
+
head: "head";
|
|
82
|
+
tail: "tail";
|
|
83
|
+
line: "line";
|
|
84
|
+
head_tail: "head_tail";
|
|
85
|
+
}>>;
|
|
86
|
+
maxLineChars: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
savedTo: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, z.core.$loose>>;
|
|
89
|
+
stderr: z.ZodOptional<z.ZodObject<{
|
|
90
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
displayedBytes: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
displayedLines: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
omittedLines: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
omittedBytes: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
truncatedLines: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
99
|
+
head: "head";
|
|
100
|
+
tail: "tail";
|
|
101
|
+
line: "line";
|
|
102
|
+
head_tail: "head_tail";
|
|
103
|
+
}>>;
|
|
104
|
+
maxLineChars: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
savedTo: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}, z.core.$loose>>;
|
|
107
|
+
combined: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
displayedBytes: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
displayedLines: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
omittedLines: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
omittedBytes: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
truncatedLines: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
head: "head";
|
|
118
|
+
tail: "tail";
|
|
119
|
+
line: "line";
|
|
120
|
+
head_tail: "head_tail";
|
|
121
|
+
}>>;
|
|
122
|
+
maxLineChars: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
savedTo: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$loose>>;
|
|
125
|
+
}, z.core.$loose>;
|
|
126
|
+
export type ProcessStreamsResultDetails = z.infer<typeof processStreamsResultDetailsSchema>;
|
|
127
|
+
export declare const editOperationResultSchema: z.ZodObject<{
|
|
128
|
+
index: z.ZodNumber;
|
|
129
|
+
type: z.ZodEnum<{
|
|
130
|
+
replace_text: "replace_text";
|
|
131
|
+
insert_text: "insert_text";
|
|
132
|
+
replace_lines: "replace_lines";
|
|
133
|
+
insert_lines: "insert_lines";
|
|
134
|
+
apply_patch: "apply_patch";
|
|
135
|
+
}>;
|
|
136
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
replacements: "replacements";
|
|
138
|
+
insertions: "insertions";
|
|
139
|
+
lineReplacements: "lineReplacements";
|
|
140
|
+
lineInsertions: "lineInsertions";
|
|
141
|
+
patch: "patch";
|
|
142
|
+
}>>;
|
|
143
|
+
sourceIndex: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
matchMode: z.ZodOptional<z.ZodEnum<{
|
|
145
|
+
exact: "exact";
|
|
146
|
+
trimmed: "trimmed";
|
|
147
|
+
whitespace: "whitespace";
|
|
148
|
+
}>>;
|
|
149
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
matchCount: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
matchedBy: z.ZodEnum<{
|
|
154
|
+
patch: "patch";
|
|
155
|
+
occurrence: "occurrence";
|
|
156
|
+
unique: "unique";
|
|
157
|
+
line_range: "line_range";
|
|
158
|
+
line_insert: "line_insert";
|
|
159
|
+
}>;
|
|
160
|
+
}, z.core.$loose>;
|
|
161
|
+
export type EditOperationResult = z.infer<typeof editOperationResultSchema>;
|
|
162
|
+
export declare const editOperationResultDetailsSchema: z.ZodObject<{
|
|
163
|
+
diff: z.ZodString;
|
|
164
|
+
firstChangedLine: z.ZodOptional<z.ZodNumber>;
|
|
165
|
+
lineEnding: z.ZodUnion<readonly [z.ZodLiteral<"\n">, z.ZodLiteral<"\r\n">]>;
|
|
166
|
+
bom: z.ZodBoolean;
|
|
167
|
+
dryRun: z.ZodBoolean;
|
|
168
|
+
operationCount: z.ZodNumber;
|
|
169
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
170
|
+
index: z.ZodNumber;
|
|
171
|
+
type: z.ZodEnum<{
|
|
172
|
+
replace_text: "replace_text";
|
|
173
|
+
insert_text: "insert_text";
|
|
174
|
+
replace_lines: "replace_lines";
|
|
175
|
+
insert_lines: "insert_lines";
|
|
176
|
+
apply_patch: "apply_patch";
|
|
177
|
+
}>;
|
|
178
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
179
|
+
replacements: "replacements";
|
|
180
|
+
insertions: "insertions";
|
|
181
|
+
lineReplacements: "lineReplacements";
|
|
182
|
+
lineInsertions: "lineInsertions";
|
|
183
|
+
patch: "patch";
|
|
184
|
+
}>>;
|
|
185
|
+
sourceIndex: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
matchMode: z.ZodOptional<z.ZodEnum<{
|
|
187
|
+
exact: "exact";
|
|
188
|
+
trimmed: "trimmed";
|
|
189
|
+
whitespace: "whitespace";
|
|
190
|
+
}>>;
|
|
191
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
192
|
+
matchCount: z.ZodOptional<z.ZodNumber>;
|
|
193
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
194
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
195
|
+
matchedBy: z.ZodEnum<{
|
|
196
|
+
patch: "patch";
|
|
197
|
+
occurrence: "occurrence";
|
|
198
|
+
unique: "unique";
|
|
199
|
+
line_range: "line_range";
|
|
200
|
+
line_insert: "line_insert";
|
|
201
|
+
}>;
|
|
202
|
+
}, z.core.$loose>>;
|
|
203
|
+
}, z.core.$loose>;
|
|
204
|
+
export type EditOperationResultDetails = z.infer<typeof editOperationResultDetailsSchema>;
|
|
205
|
+
export declare const bashResultDetailsSchema: z.ZodObject<{
|
|
206
|
+
truncation: z.ZodOptional<z.ZodObject<{
|
|
207
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
208
|
+
omittedLines: z.ZodOptional<z.ZodNumber>;
|
|
209
|
+
omittedBytes: z.ZodOptional<z.ZodNumber>;
|
|
210
|
+
truncatedLines: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
212
|
+
head: "head";
|
|
213
|
+
tail: "tail";
|
|
214
|
+
line: "line";
|
|
215
|
+
head_tail: "head_tail";
|
|
216
|
+
}>>;
|
|
217
|
+
partialLine: z.ZodOptional<z.ZodBoolean>;
|
|
218
|
+
nextOffset: z.ZodOptional<z.ZodNumber>;
|
|
219
|
+
nextByteOffset: z.ZodOptional<z.ZodNumber>;
|
|
220
|
+
maxLines: z.ZodOptional<z.ZodNumber>;
|
|
221
|
+
maxBytes: z.ZodOptional<z.ZodNumber>;
|
|
222
|
+
maxLineChars: z.ZodOptional<z.ZodNumber>;
|
|
223
|
+
byteOffset: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
byteLimit: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
rawResultPath: z.ZodOptional<z.ZodString>;
|
|
226
|
+
}, z.core.$loose>>;
|
|
227
|
+
fullOutputPath: z.ZodOptional<z.ZodString>;
|
|
228
|
+
rawResultPath: z.ZodOptional<z.ZodString>;
|
|
229
|
+
signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
230
|
+
}, z.core.$loose>;
|
|
231
|
+
export type BashResultDetails = z.infer<typeof bashResultDetailsSchema>;
|
|
232
|
+
export declare const pythonArtifactResultDetailsSchema: z.ZodObject<{
|
|
233
|
+
path: z.ZodString;
|
|
234
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
}, z.core.$loose>;
|
|
236
|
+
export type PythonArtifactResultDetails = z.infer<typeof pythonArtifactResultDetailsSchema>;
|
|
237
|
+
export declare const pythonResultDetailsSchema: z.ZodObject<{
|
|
238
|
+
truncation: z.ZodOptional<z.ZodObject<{
|
|
239
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
+
omittedLines: z.ZodOptional<z.ZodNumber>;
|
|
241
|
+
omittedBytes: z.ZodOptional<z.ZodNumber>;
|
|
242
|
+
truncatedLines: z.ZodOptional<z.ZodNumber>;
|
|
243
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
244
|
+
head: "head";
|
|
245
|
+
tail: "tail";
|
|
246
|
+
line: "line";
|
|
247
|
+
head_tail: "head_tail";
|
|
248
|
+
}>>;
|
|
249
|
+
partialLine: z.ZodOptional<z.ZodBoolean>;
|
|
250
|
+
nextOffset: z.ZodOptional<z.ZodNumber>;
|
|
251
|
+
nextByteOffset: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
maxLines: z.ZodOptional<z.ZodNumber>;
|
|
253
|
+
maxBytes: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
maxLineChars: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
byteOffset: z.ZodOptional<z.ZodNumber>;
|
|
256
|
+
byteLimit: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
rawResultPath: z.ZodOptional<z.ZodString>;
|
|
258
|
+
}, z.core.$loose>>;
|
|
259
|
+
fullOutputPath: z.ZodOptional<z.ZodString>;
|
|
260
|
+
rawResultPath: z.ZodOptional<z.ZodString>;
|
|
261
|
+
signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
|
+
executable: z.ZodOptional<z.ZodString>;
|
|
263
|
+
version: z.ZodOptional<z.ZodString>;
|
|
264
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
265
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
266
|
+
timedOut: z.ZodOptional<z.ZodBoolean>;
|
|
267
|
+
timeoutKilled: z.ZodOptional<z.ZodBoolean>;
|
|
268
|
+
allowNetwork: z.ZodOptional<z.ZodBoolean>;
|
|
269
|
+
allowFileWrite: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
+
inputMode: z.ZodOptional<z.ZodEnum<{
|
|
271
|
+
file: "file";
|
|
272
|
+
inline: "inline";
|
|
273
|
+
}>>;
|
|
274
|
+
scriptPath: z.ZodOptional<z.ZodString>;
|
|
275
|
+
streams: z.ZodOptional<z.ZodObject<{
|
|
276
|
+
stdout: z.ZodOptional<z.ZodObject<{
|
|
277
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
278
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
279
|
+
displayedBytes: z.ZodOptional<z.ZodNumber>;
|
|
280
|
+
displayedLines: z.ZodOptional<z.ZodNumber>;
|
|
281
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
282
|
+
omittedLines: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
omittedBytes: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
truncatedLines: z.ZodOptional<z.ZodNumber>;
|
|
285
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
286
|
+
head: "head";
|
|
287
|
+
tail: "tail";
|
|
288
|
+
line: "line";
|
|
289
|
+
head_tail: "head_tail";
|
|
290
|
+
}>>;
|
|
291
|
+
maxLineChars: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
savedTo: z.ZodOptional<z.ZodString>;
|
|
293
|
+
}, z.core.$loose>>;
|
|
294
|
+
stderr: z.ZodOptional<z.ZodObject<{
|
|
295
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
296
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
displayedBytes: z.ZodOptional<z.ZodNumber>;
|
|
298
|
+
displayedLines: z.ZodOptional<z.ZodNumber>;
|
|
299
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
300
|
+
omittedLines: z.ZodOptional<z.ZodNumber>;
|
|
301
|
+
omittedBytes: z.ZodOptional<z.ZodNumber>;
|
|
302
|
+
truncatedLines: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
304
|
+
head: "head";
|
|
305
|
+
tail: "tail";
|
|
306
|
+
line: "line";
|
|
307
|
+
head_tail: "head_tail";
|
|
308
|
+
}>>;
|
|
309
|
+
maxLineChars: z.ZodOptional<z.ZodNumber>;
|
|
310
|
+
savedTo: z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, z.core.$loose>>;
|
|
312
|
+
combined: z.ZodOptional<z.ZodObject<{
|
|
313
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
314
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
315
|
+
displayedBytes: z.ZodOptional<z.ZodNumber>;
|
|
316
|
+
displayedLines: z.ZodOptional<z.ZodNumber>;
|
|
317
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
318
|
+
omittedLines: z.ZodOptional<z.ZodNumber>;
|
|
319
|
+
omittedBytes: z.ZodOptional<z.ZodNumber>;
|
|
320
|
+
truncatedLines: z.ZodOptional<z.ZodNumber>;
|
|
321
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
322
|
+
head: "head";
|
|
323
|
+
tail: "tail";
|
|
324
|
+
line: "line";
|
|
325
|
+
head_tail: "head_tail";
|
|
326
|
+
}>>;
|
|
327
|
+
maxLineChars: z.ZodOptional<z.ZodNumber>;
|
|
328
|
+
savedTo: z.ZodOptional<z.ZodString>;
|
|
329
|
+
}, z.core.$loose>>;
|
|
330
|
+
}, z.core.$loose>>;
|
|
331
|
+
artifactDir: z.ZodOptional<z.ZodString>;
|
|
332
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
333
|
+
path: z.ZodString;
|
|
334
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
335
|
+
}, z.core.$loose>>>;
|
|
336
|
+
envKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
337
|
+
}, z.core.$loose>;
|
|
338
|
+
export type PythonResultDetails = z.infer<typeof pythonResultDetailsSchema>;
|
|
339
|
+
export declare const fileEntrySchema: z.ZodObject<{
|
|
340
|
+
path: z.ZodString;
|
|
341
|
+
kind: z.ZodEnum<{
|
|
342
|
+
file: "file";
|
|
343
|
+
directory: "directory";
|
|
344
|
+
other: "other";
|
|
345
|
+
}>;
|
|
346
|
+
}, z.core.$strip>;
|
|
347
|
+
export type FileEntry = z.infer<typeof fileEntrySchema>;
|
|
348
|
+
export declare const grepMatchSchema: z.ZodObject<{
|
|
349
|
+
path: z.ZodString;
|
|
350
|
+
line: z.ZodNumber;
|
|
351
|
+
text: z.ZodString;
|
|
352
|
+
}, z.core.$strip>;
|
|
353
|
+
export type GrepMatch = z.infer<typeof grepMatchSchema>;
|
|
354
|
+
export declare const webSearchResultDetailsSchema: z.ZodObject<{
|
|
355
|
+
query: z.ZodString;
|
|
356
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
357
|
+
results: z.ZodArray<z.ZodObject<{
|
|
358
|
+
title: z.ZodString;
|
|
359
|
+
url: z.ZodString;
|
|
360
|
+
}, z.core.$strip>>;
|
|
361
|
+
}, z.core.$strip>;
|
|
362
|
+
export type WebSearchResultDetails = z.infer<typeof webSearchResultDetailsSchema>;
|
|
363
|
+
export declare const webFetchResultDetailsSchema: z.ZodObject<{
|
|
364
|
+
url: z.ZodString;
|
|
365
|
+
status: z.ZodNumber;
|
|
366
|
+
contentType: z.ZodString;
|
|
367
|
+
size: z.ZodNumber;
|
|
368
|
+
savedTo: z.ZodOptional<z.ZodString>;
|
|
369
|
+
converted: z.ZodBoolean;
|
|
370
|
+
}, z.core.$strip>;
|
|
371
|
+
export type WebFetchResultDetails = z.infer<typeof webFetchResultDetailsSchema>;
|
|
372
|
+
/** File-tool result envelope (read/write/edit/grep/find/ls/bash/python/web_fetch/web_search). */
|
|
373
|
+
export declare const toolExecutionResultSchema: z.ZodObject<{
|
|
374
|
+
content: z.ZodOptional<z.ZodString>;
|
|
375
|
+
contentBlocks: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
376
|
+
type: z.ZodLiteral<"text">;
|
|
377
|
+
text: z.ZodString;
|
|
378
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
379
|
+
type: z.ZodLiteral<"image">;
|
|
380
|
+
data: z.ZodString;
|
|
381
|
+
mimeType: z.ZodString;
|
|
382
|
+
}, z.core.$strip>]>>>;
|
|
383
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
384
|
+
path: z.ZodOptional<z.ZodString>;
|
|
385
|
+
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
386
|
+
path: z.ZodString;
|
|
387
|
+
kind: z.ZodEnum<{
|
|
388
|
+
file: "file";
|
|
389
|
+
directory: "directory";
|
|
390
|
+
other: "other";
|
|
391
|
+
}>;
|
|
392
|
+
}, z.core.$strip>>>;
|
|
393
|
+
matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
394
|
+
path: z.ZodString;
|
|
395
|
+
line: z.ZodNumber;
|
|
396
|
+
text: z.ZodString;
|
|
397
|
+
}, z.core.$strip>>>;
|
|
398
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
399
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
400
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
401
|
+
}, z.core.$strip>;
|
|
402
|
+
export type ToolExecutionResultPayload = z.infer<typeof toolExecutionResultSchema>;
|
|
403
|
+
export declare const taskCancelOutcomeSchema: z.ZodEnum<{
|
|
404
|
+
cancelled: "cancelled";
|
|
405
|
+
force_cancelled: "force_cancelled";
|
|
406
|
+
already_terminal: "already_terminal";
|
|
407
|
+
became_terminal_before_cancel: "became_terminal_before_cancel";
|
|
408
|
+
no_matching_active_task: "no_matching_active_task";
|
|
409
|
+
}>;
|
|
410
|
+
export type TaskCancelOutcomePayload = z.infer<typeof taskCancelOutcomeSchema>;
|
|
411
|
+
export declare const taskCancelResultSchema: z.ZodObject<{
|
|
412
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
413
|
+
taskName: z.ZodOptional<z.ZodString>;
|
|
414
|
+
requestedSignal: z.ZodOptional<z.ZodEnum<{
|
|
415
|
+
SIGTERM: "SIGTERM";
|
|
416
|
+
SIGINT: "SIGINT";
|
|
417
|
+
SIGKILL: "SIGKILL";
|
|
418
|
+
}>>;
|
|
419
|
+
outcome: z.ZodEnum<{
|
|
420
|
+
cancelled: "cancelled";
|
|
421
|
+
force_cancelled: "force_cancelled";
|
|
422
|
+
already_terminal: "already_terminal";
|
|
423
|
+
became_terminal_before_cancel: "became_terminal_before_cancel";
|
|
424
|
+
no_matching_active_task: "no_matching_active_task";
|
|
425
|
+
}>;
|
|
426
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
427
|
+
cancelled: "cancelled";
|
|
428
|
+
starting: "starting";
|
|
429
|
+
running: "running";
|
|
430
|
+
ready: "ready";
|
|
431
|
+
stopping: "stopping";
|
|
432
|
+
completed: "completed";
|
|
433
|
+
failed: "failed";
|
|
434
|
+
timed_out: "timed_out";
|
|
435
|
+
orphaned: "orphaned";
|
|
436
|
+
}>>;
|
|
437
|
+
message: z.ZodString;
|
|
438
|
+
}, z.core.$strip>;
|
|
439
|
+
export type TaskCancelResultPayload = z.infer<typeof taskCancelResultSchema>;
|
|
440
|
+
/** Result of task_start / task_cancel / task_restart. */
|
|
441
|
+
export declare const taskActionResultSchema: z.ZodObject<{
|
|
442
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
443
|
+
id: z.ZodString;
|
|
444
|
+
name: z.ZodOptional<z.ZodString>;
|
|
445
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
446
|
+
groupName: z.ZodOptional<z.ZodString>;
|
|
447
|
+
workerId: z.ZodOptional<z.ZodString>;
|
|
448
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
449
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
450
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
451
|
+
cwd: z.ZodString;
|
|
452
|
+
command: z.ZodString;
|
|
453
|
+
envInfo: z.ZodOptional<z.ZodObject<{
|
|
454
|
+
keys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
455
|
+
persisted: z.ZodBoolean;
|
|
456
|
+
redacted: z.ZodDefault<z.ZodLiteral<true>>;
|
|
457
|
+
}, z.core.$strip>>;
|
|
458
|
+
status: z.ZodEnum<{
|
|
459
|
+
cancelled: "cancelled";
|
|
460
|
+
starting: "starting";
|
|
461
|
+
running: "running";
|
|
462
|
+
ready: "ready";
|
|
463
|
+
stopping: "stopping";
|
|
464
|
+
completed: "completed";
|
|
465
|
+
failed: "failed";
|
|
466
|
+
timed_out: "timed_out";
|
|
467
|
+
orphaned: "orphaned";
|
|
468
|
+
}>;
|
|
469
|
+
readiness: z.ZodObject<{
|
|
470
|
+
readyUrl: z.ZodOptional<z.ZodString>;
|
|
471
|
+
readyOnUrl: z.ZodOptional<z.ZodBoolean>;
|
|
472
|
+
readyPattern: z.ZodOptional<z.ZodString>;
|
|
473
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
474
|
+
outcome: z.ZodEnum<{
|
|
475
|
+
ready: "ready";
|
|
476
|
+
pending: "pending";
|
|
477
|
+
timeout: "timeout";
|
|
478
|
+
exited: "exited";
|
|
479
|
+
none: "none";
|
|
480
|
+
}>;
|
|
481
|
+
matched: z.ZodOptional<z.ZodString>;
|
|
482
|
+
readyAt: z.ZodOptional<z.ZodString>;
|
|
483
|
+
}, z.core.$strip>;
|
|
484
|
+
stdoutPath: z.ZodString;
|
|
485
|
+
stderrPath: z.ZodString;
|
|
486
|
+
combinedPath: z.ZodOptional<z.ZodString>;
|
|
487
|
+
logsPath: z.ZodString;
|
|
488
|
+
startedAt: z.ZodString;
|
|
489
|
+
updatedAt: z.ZodString;
|
|
490
|
+
finishedAt: z.ZodOptional<z.ZodString>;
|
|
491
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
492
|
+
signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
493
|
+
error: z.ZodOptional<z.ZodString>;
|
|
494
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
495
|
+
restartedFromTaskId: z.ZodOptional<z.ZodString>;
|
|
496
|
+
restartRootTaskId: z.ZodOptional<z.ZodString>;
|
|
497
|
+
restartGeneration: z.ZodOptional<z.ZodNumber>;
|
|
498
|
+
legacyProcessId: z.ZodOptional<z.ZodString>;
|
|
499
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
500
|
+
platform: z.ZodString;
|
|
501
|
+
childPid: z.ZodOptional<z.ZodNumber>;
|
|
502
|
+
processGroupId: z.ZodOptional<z.ZodNumber>;
|
|
503
|
+
detached: z.ZodBoolean;
|
|
504
|
+
shell: z.ZodBoolean;
|
|
505
|
+
spawnedAt: z.ZodString;
|
|
506
|
+
}, z.core.$strip>>;
|
|
507
|
+
origin: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
508
|
+
kind: z.ZodLiteral<"api">;
|
|
509
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
510
|
+
kind: z.ZodLiteral<"utility_panel">;
|
|
511
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
512
|
+
kind: z.ZodLiteral<"agent_tool">;
|
|
513
|
+
toolCallId: z.ZodString;
|
|
514
|
+
providerToolCallId: z.ZodOptional<z.ZodString>;
|
|
515
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
516
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
517
|
+
liveMessageId: z.ZodOptional<z.ZodString>;
|
|
518
|
+
contentIndex: z.ZodOptional<z.ZodNumber>;
|
|
519
|
+
}, z.core.$strip>], "kind">>;
|
|
520
|
+
completion: z.ZodOptional<z.ZodObject<{
|
|
521
|
+
inject: z.ZodDefault<z.ZodBoolean>;
|
|
522
|
+
entryId: z.ZodOptional<z.ZodString>;
|
|
523
|
+
injectedAt: z.ZodOptional<z.ZodString>;
|
|
524
|
+
outputTailLineCount: z.ZodDefault<z.ZodNumber>;
|
|
525
|
+
}, z.core.$strip>>;
|
|
526
|
+
notifications: z.ZodOptional<z.ZodObject<{
|
|
527
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
528
|
+
ready: z.ZodDefault<z.ZodBoolean>;
|
|
529
|
+
terminal: z.ZodDefault<z.ZodBoolean>;
|
|
530
|
+
readyEntryId: z.ZodOptional<z.ZodString>;
|
|
531
|
+
terminalEntryId: z.ZodOptional<z.ZodString>;
|
|
532
|
+
readyDeliveredAt: z.ZodOptional<z.ZodString>;
|
|
533
|
+
terminalDeliveredAt: z.ZodOptional<z.ZodString>;
|
|
534
|
+
outputTailLineCount: z.ZodDefault<z.ZodNumber>;
|
|
535
|
+
}, z.core.$strip>>;
|
|
536
|
+
visibility: z.ZodDefault<z.ZodEnum<{
|
|
537
|
+
foreground: "foreground";
|
|
538
|
+
background: "background";
|
|
539
|
+
}>>;
|
|
540
|
+
}, z.core.$strip>>;
|
|
541
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
542
|
+
id: z.ZodString;
|
|
543
|
+
name: z.ZodOptional<z.ZodString>;
|
|
544
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
545
|
+
groupName: z.ZodOptional<z.ZodString>;
|
|
546
|
+
workerId: z.ZodOptional<z.ZodString>;
|
|
547
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
548
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
549
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
550
|
+
cwd: z.ZodString;
|
|
551
|
+
command: z.ZodString;
|
|
552
|
+
envInfo: z.ZodOptional<z.ZodObject<{
|
|
553
|
+
keys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
554
|
+
persisted: z.ZodBoolean;
|
|
555
|
+
redacted: z.ZodDefault<z.ZodLiteral<true>>;
|
|
556
|
+
}, z.core.$strip>>;
|
|
557
|
+
status: z.ZodEnum<{
|
|
558
|
+
cancelled: "cancelled";
|
|
559
|
+
starting: "starting";
|
|
560
|
+
running: "running";
|
|
561
|
+
ready: "ready";
|
|
562
|
+
stopping: "stopping";
|
|
563
|
+
completed: "completed";
|
|
564
|
+
failed: "failed";
|
|
565
|
+
timed_out: "timed_out";
|
|
566
|
+
orphaned: "orphaned";
|
|
567
|
+
}>;
|
|
568
|
+
readiness: z.ZodObject<{
|
|
569
|
+
readyUrl: z.ZodOptional<z.ZodString>;
|
|
570
|
+
readyOnUrl: z.ZodOptional<z.ZodBoolean>;
|
|
571
|
+
readyPattern: z.ZodOptional<z.ZodString>;
|
|
572
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
573
|
+
outcome: z.ZodEnum<{
|
|
574
|
+
ready: "ready";
|
|
575
|
+
pending: "pending";
|
|
576
|
+
timeout: "timeout";
|
|
577
|
+
exited: "exited";
|
|
578
|
+
none: "none";
|
|
579
|
+
}>;
|
|
580
|
+
matched: z.ZodOptional<z.ZodString>;
|
|
581
|
+
readyAt: z.ZodOptional<z.ZodString>;
|
|
582
|
+
}, z.core.$strip>;
|
|
583
|
+
stdoutPath: z.ZodString;
|
|
584
|
+
stderrPath: z.ZodString;
|
|
585
|
+
combinedPath: z.ZodOptional<z.ZodString>;
|
|
586
|
+
logsPath: z.ZodString;
|
|
587
|
+
startedAt: z.ZodString;
|
|
588
|
+
updatedAt: z.ZodString;
|
|
589
|
+
finishedAt: z.ZodOptional<z.ZodString>;
|
|
590
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
591
|
+
signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
592
|
+
error: z.ZodOptional<z.ZodString>;
|
|
593
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
594
|
+
restartedFromTaskId: z.ZodOptional<z.ZodString>;
|
|
595
|
+
restartRootTaskId: z.ZodOptional<z.ZodString>;
|
|
596
|
+
restartGeneration: z.ZodOptional<z.ZodNumber>;
|
|
597
|
+
legacyProcessId: z.ZodOptional<z.ZodString>;
|
|
598
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
599
|
+
platform: z.ZodString;
|
|
600
|
+
childPid: z.ZodOptional<z.ZodNumber>;
|
|
601
|
+
processGroupId: z.ZodOptional<z.ZodNumber>;
|
|
602
|
+
detached: z.ZodBoolean;
|
|
603
|
+
shell: z.ZodBoolean;
|
|
604
|
+
spawnedAt: z.ZodString;
|
|
605
|
+
}, z.core.$strip>>;
|
|
606
|
+
origin: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
607
|
+
kind: z.ZodLiteral<"api">;
|
|
608
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
609
|
+
kind: z.ZodLiteral<"utility_panel">;
|
|
610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
611
|
+
kind: z.ZodLiteral<"agent_tool">;
|
|
612
|
+
toolCallId: z.ZodString;
|
|
613
|
+
providerToolCallId: z.ZodOptional<z.ZodString>;
|
|
614
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
615
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
616
|
+
liveMessageId: z.ZodOptional<z.ZodString>;
|
|
617
|
+
contentIndex: z.ZodOptional<z.ZodNumber>;
|
|
618
|
+
}, z.core.$strip>], "kind">>;
|
|
619
|
+
completion: z.ZodOptional<z.ZodObject<{
|
|
620
|
+
inject: z.ZodDefault<z.ZodBoolean>;
|
|
621
|
+
entryId: z.ZodOptional<z.ZodString>;
|
|
622
|
+
injectedAt: z.ZodOptional<z.ZodString>;
|
|
623
|
+
outputTailLineCount: z.ZodDefault<z.ZodNumber>;
|
|
624
|
+
}, z.core.$strip>>;
|
|
625
|
+
notifications: z.ZodOptional<z.ZodObject<{
|
|
626
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
627
|
+
ready: z.ZodDefault<z.ZodBoolean>;
|
|
628
|
+
terminal: z.ZodDefault<z.ZodBoolean>;
|
|
629
|
+
readyEntryId: z.ZodOptional<z.ZodString>;
|
|
630
|
+
terminalEntryId: z.ZodOptional<z.ZodString>;
|
|
631
|
+
readyDeliveredAt: z.ZodOptional<z.ZodString>;
|
|
632
|
+
terminalDeliveredAt: z.ZodOptional<z.ZodString>;
|
|
633
|
+
outputTailLineCount: z.ZodDefault<z.ZodNumber>;
|
|
634
|
+
}, z.core.$strip>>;
|
|
635
|
+
visibility: z.ZodDefault<z.ZodEnum<{
|
|
636
|
+
foreground: "foreground";
|
|
637
|
+
background: "background";
|
|
638
|
+
}>>;
|
|
639
|
+
}, z.core.$strip>>>;
|
|
640
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
641
|
+
groupName: z.ZodOptional<z.ZodString>;
|
|
642
|
+
restartedFromTaskId: z.ZodOptional<z.ZodString>;
|
|
643
|
+
newTaskId: z.ZodOptional<z.ZodString>;
|
|
644
|
+
restartRootTaskId: z.ZodOptional<z.ZodString>;
|
|
645
|
+
cancelResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
646
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
647
|
+
taskName: z.ZodOptional<z.ZodString>;
|
|
648
|
+
requestedSignal: z.ZodOptional<z.ZodEnum<{
|
|
649
|
+
SIGTERM: "SIGTERM";
|
|
650
|
+
SIGINT: "SIGINT";
|
|
651
|
+
SIGKILL: "SIGKILL";
|
|
652
|
+
}>>;
|
|
653
|
+
outcome: z.ZodEnum<{
|
|
654
|
+
cancelled: "cancelled";
|
|
655
|
+
force_cancelled: "force_cancelled";
|
|
656
|
+
already_terminal: "already_terminal";
|
|
657
|
+
became_terminal_before_cancel: "became_terminal_before_cancel";
|
|
658
|
+
no_matching_active_task: "no_matching_active_task";
|
|
659
|
+
}>;
|
|
660
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
661
|
+
cancelled: "cancelled";
|
|
662
|
+
starting: "starting";
|
|
663
|
+
running: "running";
|
|
664
|
+
ready: "ready";
|
|
665
|
+
stopping: "stopping";
|
|
666
|
+
completed: "completed";
|
|
667
|
+
failed: "failed";
|
|
668
|
+
timed_out: "timed_out";
|
|
669
|
+
orphaned: "orphaned";
|
|
670
|
+
}>>;
|
|
671
|
+
message: z.ZodString;
|
|
672
|
+
}, z.core.$strip>>>;
|
|
673
|
+
contentBlocks: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
674
|
+
type: z.ZodLiteral<"text">;
|
|
675
|
+
text: z.ZodString;
|
|
676
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
677
|
+
type: z.ZodLiteral<"image">;
|
|
678
|
+
data: z.ZodString;
|
|
679
|
+
mimeType: z.ZodString;
|
|
680
|
+
}, z.core.$strip>]>>>;
|
|
681
|
+
}, z.core.$strip>;
|
|
682
|
+
export type TaskActionResult = z.infer<typeof taskActionResultSchema>;
|
|
683
|
+
/** Result of task_list. */
|
|
684
|
+
export declare const taskListResultSchema: z.ZodObject<{
|
|
685
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
686
|
+
id: z.ZodString;
|
|
687
|
+
name: z.ZodOptional<z.ZodString>;
|
|
688
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
689
|
+
groupName: z.ZodOptional<z.ZodString>;
|
|
690
|
+
workerId: z.ZodOptional<z.ZodString>;
|
|
691
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
692
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
693
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
694
|
+
cwd: z.ZodString;
|
|
695
|
+
command: z.ZodString;
|
|
696
|
+
envInfo: z.ZodOptional<z.ZodObject<{
|
|
697
|
+
keys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
698
|
+
persisted: z.ZodBoolean;
|
|
699
|
+
redacted: z.ZodDefault<z.ZodLiteral<true>>;
|
|
700
|
+
}, z.core.$strip>>;
|
|
701
|
+
status: z.ZodEnum<{
|
|
702
|
+
cancelled: "cancelled";
|
|
703
|
+
starting: "starting";
|
|
704
|
+
running: "running";
|
|
705
|
+
ready: "ready";
|
|
706
|
+
stopping: "stopping";
|
|
707
|
+
completed: "completed";
|
|
708
|
+
failed: "failed";
|
|
709
|
+
timed_out: "timed_out";
|
|
710
|
+
orphaned: "orphaned";
|
|
711
|
+
}>;
|
|
712
|
+
readiness: z.ZodObject<{
|
|
713
|
+
readyUrl: z.ZodOptional<z.ZodString>;
|
|
714
|
+
readyOnUrl: z.ZodOptional<z.ZodBoolean>;
|
|
715
|
+
readyPattern: z.ZodOptional<z.ZodString>;
|
|
716
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
717
|
+
outcome: z.ZodEnum<{
|
|
718
|
+
ready: "ready";
|
|
719
|
+
pending: "pending";
|
|
720
|
+
timeout: "timeout";
|
|
721
|
+
exited: "exited";
|
|
722
|
+
none: "none";
|
|
723
|
+
}>;
|
|
724
|
+
matched: z.ZodOptional<z.ZodString>;
|
|
725
|
+
readyAt: z.ZodOptional<z.ZodString>;
|
|
726
|
+
}, z.core.$strip>;
|
|
727
|
+
stdoutPath: z.ZodString;
|
|
728
|
+
stderrPath: z.ZodString;
|
|
729
|
+
combinedPath: z.ZodOptional<z.ZodString>;
|
|
730
|
+
logsPath: z.ZodString;
|
|
731
|
+
startedAt: z.ZodString;
|
|
732
|
+
updatedAt: z.ZodString;
|
|
733
|
+
finishedAt: z.ZodOptional<z.ZodString>;
|
|
734
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
735
|
+
signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
736
|
+
error: z.ZodOptional<z.ZodString>;
|
|
737
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
738
|
+
restartedFromTaskId: z.ZodOptional<z.ZodString>;
|
|
739
|
+
restartRootTaskId: z.ZodOptional<z.ZodString>;
|
|
740
|
+
restartGeneration: z.ZodOptional<z.ZodNumber>;
|
|
741
|
+
legacyProcessId: z.ZodOptional<z.ZodString>;
|
|
742
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
743
|
+
platform: z.ZodString;
|
|
744
|
+
childPid: z.ZodOptional<z.ZodNumber>;
|
|
745
|
+
processGroupId: z.ZodOptional<z.ZodNumber>;
|
|
746
|
+
detached: z.ZodBoolean;
|
|
747
|
+
shell: z.ZodBoolean;
|
|
748
|
+
spawnedAt: z.ZodString;
|
|
749
|
+
}, z.core.$strip>>;
|
|
750
|
+
origin: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
751
|
+
kind: z.ZodLiteral<"api">;
|
|
752
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
753
|
+
kind: z.ZodLiteral<"utility_panel">;
|
|
754
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
755
|
+
kind: z.ZodLiteral<"agent_tool">;
|
|
756
|
+
toolCallId: z.ZodString;
|
|
757
|
+
providerToolCallId: z.ZodOptional<z.ZodString>;
|
|
758
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
759
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
760
|
+
liveMessageId: z.ZodOptional<z.ZodString>;
|
|
761
|
+
contentIndex: z.ZodOptional<z.ZodNumber>;
|
|
762
|
+
}, z.core.$strip>], "kind">>;
|
|
763
|
+
completion: z.ZodOptional<z.ZodObject<{
|
|
764
|
+
inject: z.ZodDefault<z.ZodBoolean>;
|
|
765
|
+
entryId: z.ZodOptional<z.ZodString>;
|
|
766
|
+
injectedAt: z.ZodOptional<z.ZodString>;
|
|
767
|
+
outputTailLineCount: z.ZodDefault<z.ZodNumber>;
|
|
768
|
+
}, z.core.$strip>>;
|
|
769
|
+
notifications: z.ZodOptional<z.ZodObject<{
|
|
770
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
771
|
+
ready: z.ZodDefault<z.ZodBoolean>;
|
|
772
|
+
terminal: z.ZodDefault<z.ZodBoolean>;
|
|
773
|
+
readyEntryId: z.ZodOptional<z.ZodString>;
|
|
774
|
+
terminalEntryId: z.ZodOptional<z.ZodString>;
|
|
775
|
+
readyDeliveredAt: z.ZodOptional<z.ZodString>;
|
|
776
|
+
terminalDeliveredAt: z.ZodOptional<z.ZodString>;
|
|
777
|
+
outputTailLineCount: z.ZodDefault<z.ZodNumber>;
|
|
778
|
+
}, z.core.$strip>>;
|
|
779
|
+
visibility: z.ZodDefault<z.ZodEnum<{
|
|
780
|
+
foreground: "foreground";
|
|
781
|
+
background: "background";
|
|
782
|
+
}>>;
|
|
783
|
+
}, z.core.$strip>>;
|
|
784
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
785
|
+
contentBlocks: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
786
|
+
type: z.ZodLiteral<"text">;
|
|
787
|
+
text: z.ZodString;
|
|
788
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
789
|
+
type: z.ZodLiteral<"image">;
|
|
790
|
+
data: z.ZodString;
|
|
791
|
+
mimeType: z.ZodString;
|
|
792
|
+
}, z.core.$strip>]>>>;
|
|
793
|
+
}, z.core.$strip>;
|
|
794
|
+
export type TaskListResult = z.infer<typeof taskListResultSchema>;
|
|
795
|
+
/** Result of task_logs (re-export of the existing query response shape). */
|
|
796
|
+
export declare const taskLogsResultSchema: z.ZodObject<{
|
|
797
|
+
task: z.ZodObject<{
|
|
798
|
+
id: z.ZodString;
|
|
799
|
+
name: z.ZodOptional<z.ZodString>;
|
|
800
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
801
|
+
groupName: z.ZodOptional<z.ZodString>;
|
|
802
|
+
workerId: z.ZodOptional<z.ZodString>;
|
|
803
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
804
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
805
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
806
|
+
cwd: z.ZodString;
|
|
807
|
+
command: z.ZodString;
|
|
808
|
+
envInfo: z.ZodOptional<z.ZodObject<{
|
|
809
|
+
keys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
810
|
+
persisted: z.ZodBoolean;
|
|
811
|
+
redacted: z.ZodDefault<z.ZodLiteral<true>>;
|
|
812
|
+
}, z.core.$strip>>;
|
|
813
|
+
status: z.ZodEnum<{
|
|
814
|
+
cancelled: "cancelled";
|
|
815
|
+
starting: "starting";
|
|
816
|
+
running: "running";
|
|
817
|
+
ready: "ready";
|
|
818
|
+
stopping: "stopping";
|
|
819
|
+
completed: "completed";
|
|
820
|
+
failed: "failed";
|
|
821
|
+
timed_out: "timed_out";
|
|
822
|
+
orphaned: "orphaned";
|
|
823
|
+
}>;
|
|
824
|
+
readiness: z.ZodObject<{
|
|
825
|
+
readyUrl: z.ZodOptional<z.ZodString>;
|
|
826
|
+
readyOnUrl: z.ZodOptional<z.ZodBoolean>;
|
|
827
|
+
readyPattern: z.ZodOptional<z.ZodString>;
|
|
828
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
829
|
+
outcome: z.ZodEnum<{
|
|
830
|
+
ready: "ready";
|
|
831
|
+
pending: "pending";
|
|
832
|
+
timeout: "timeout";
|
|
833
|
+
exited: "exited";
|
|
834
|
+
none: "none";
|
|
835
|
+
}>;
|
|
836
|
+
matched: z.ZodOptional<z.ZodString>;
|
|
837
|
+
readyAt: z.ZodOptional<z.ZodString>;
|
|
838
|
+
}, z.core.$strip>;
|
|
839
|
+
stdoutPath: z.ZodString;
|
|
840
|
+
stderrPath: z.ZodString;
|
|
841
|
+
combinedPath: z.ZodOptional<z.ZodString>;
|
|
842
|
+
logsPath: z.ZodString;
|
|
843
|
+
startedAt: z.ZodString;
|
|
844
|
+
updatedAt: z.ZodString;
|
|
845
|
+
finishedAt: z.ZodOptional<z.ZodString>;
|
|
846
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
847
|
+
signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
848
|
+
error: z.ZodOptional<z.ZodString>;
|
|
849
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
850
|
+
restartedFromTaskId: z.ZodOptional<z.ZodString>;
|
|
851
|
+
restartRootTaskId: z.ZodOptional<z.ZodString>;
|
|
852
|
+
restartGeneration: z.ZodOptional<z.ZodNumber>;
|
|
853
|
+
legacyProcessId: z.ZodOptional<z.ZodString>;
|
|
854
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
855
|
+
platform: z.ZodString;
|
|
856
|
+
childPid: z.ZodOptional<z.ZodNumber>;
|
|
857
|
+
processGroupId: z.ZodOptional<z.ZodNumber>;
|
|
858
|
+
detached: z.ZodBoolean;
|
|
859
|
+
shell: z.ZodBoolean;
|
|
860
|
+
spawnedAt: z.ZodString;
|
|
861
|
+
}, z.core.$strip>>;
|
|
862
|
+
origin: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
863
|
+
kind: z.ZodLiteral<"api">;
|
|
864
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
865
|
+
kind: z.ZodLiteral<"utility_panel">;
|
|
866
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
867
|
+
kind: z.ZodLiteral<"agent_tool">;
|
|
868
|
+
toolCallId: z.ZodString;
|
|
869
|
+
providerToolCallId: z.ZodOptional<z.ZodString>;
|
|
870
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
871
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
872
|
+
liveMessageId: z.ZodOptional<z.ZodString>;
|
|
873
|
+
contentIndex: z.ZodOptional<z.ZodNumber>;
|
|
874
|
+
}, z.core.$strip>], "kind">>;
|
|
875
|
+
completion: z.ZodOptional<z.ZodObject<{
|
|
876
|
+
inject: z.ZodDefault<z.ZodBoolean>;
|
|
877
|
+
entryId: z.ZodOptional<z.ZodString>;
|
|
878
|
+
injectedAt: z.ZodOptional<z.ZodString>;
|
|
879
|
+
outputTailLineCount: z.ZodDefault<z.ZodNumber>;
|
|
880
|
+
}, z.core.$strip>>;
|
|
881
|
+
notifications: z.ZodOptional<z.ZodObject<{
|
|
882
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
883
|
+
ready: z.ZodDefault<z.ZodBoolean>;
|
|
884
|
+
terminal: z.ZodDefault<z.ZodBoolean>;
|
|
885
|
+
readyEntryId: z.ZodOptional<z.ZodString>;
|
|
886
|
+
terminalEntryId: z.ZodOptional<z.ZodString>;
|
|
887
|
+
readyDeliveredAt: z.ZodOptional<z.ZodString>;
|
|
888
|
+
terminalDeliveredAt: z.ZodOptional<z.ZodString>;
|
|
889
|
+
outputTailLineCount: z.ZodDefault<z.ZodNumber>;
|
|
890
|
+
}, z.core.$strip>>;
|
|
891
|
+
visibility: z.ZodDefault<z.ZodEnum<{
|
|
892
|
+
foreground: "foreground";
|
|
893
|
+
background: "background";
|
|
894
|
+
}>>;
|
|
895
|
+
}, z.core.$strip>;
|
|
896
|
+
events: z.ZodArray<z.ZodObject<{
|
|
897
|
+
seq: z.ZodNumber;
|
|
898
|
+
ts: z.ZodString;
|
|
899
|
+
stream: z.ZodEnum<{
|
|
900
|
+
stdout: "stdout";
|
|
901
|
+
stderr: "stderr";
|
|
902
|
+
}>;
|
|
903
|
+
level: z.ZodEnum<{
|
|
904
|
+
error: "error";
|
|
905
|
+
info: "info";
|
|
906
|
+
warn: "warn";
|
|
907
|
+
}>;
|
|
908
|
+
line: z.ZodString;
|
|
909
|
+
}, z.core.$strip>>;
|
|
910
|
+
nextCursor: z.ZodNumber;
|
|
911
|
+
mode: z.ZodString;
|
|
912
|
+
previewPath: z.ZodOptional<z.ZodString>;
|
|
913
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
914
|
+
contentBlocks: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
915
|
+
type: z.ZodLiteral<"text">;
|
|
916
|
+
text: z.ZodString;
|
|
917
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
918
|
+
type: z.ZodLiteral<"image">;
|
|
919
|
+
data: z.ZodString;
|
|
920
|
+
mimeType: z.ZodString;
|
|
921
|
+
}, z.core.$strip>]>>>;
|
|
922
|
+
}, z.core.$strip>;
|
|
923
|
+
export type TaskLogsResult = z.infer<typeof taskLogsResultSchema>;
|
|
924
|
+
/** Result of explore. */
|
|
925
|
+
export declare const exploreUsageStatsSchema: z.ZodObject<{
|
|
926
|
+
input: z.ZodDefault<z.ZodNumber>;
|
|
927
|
+
output: z.ZodDefault<z.ZodNumber>;
|
|
928
|
+
cacheRead: z.ZodDefault<z.ZodNumber>;
|
|
929
|
+
cacheWrite: z.ZodDefault<z.ZodNumber>;
|
|
930
|
+
totalTokens: z.ZodDefault<z.ZodNumber>;
|
|
931
|
+
cost: z.ZodDefault<z.ZodNumber>;
|
|
932
|
+
turns: z.ZodDefault<z.ZodNumber>;
|
|
933
|
+
}, z.core.$strip>;
|
|
934
|
+
export type ExploreUsageStatsPayload = z.infer<typeof exploreUsageStatsSchema>;
|
|
935
|
+
export declare const exploreStepSchema: z.ZodObject<{
|
|
936
|
+
type: z.ZodEnum<{
|
|
937
|
+
tool_call: "tool_call";
|
|
938
|
+
tool_result: "tool_result";
|
|
939
|
+
assistant: "assistant";
|
|
940
|
+
}>;
|
|
941
|
+
toolName: z.ZodOptional<z.ZodString>;
|
|
942
|
+
message: z.ZodString;
|
|
943
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
944
|
+
}, z.core.$strip>;
|
|
945
|
+
export type ExploreStepPayload = z.infer<typeof exploreStepSchema>;
|
|
946
|
+
export declare const exploreReportSchema: z.ZodObject<{
|
|
947
|
+
agentId: z.ZodString;
|
|
948
|
+
task: z.ZodString;
|
|
949
|
+
label: z.ZodOptional<z.ZodString>;
|
|
950
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
951
|
+
completed: "completed";
|
|
952
|
+
failed: "failed";
|
|
953
|
+
aborted: "aborted";
|
|
954
|
+
}>>;
|
|
955
|
+
report: z.ZodString;
|
|
956
|
+
reportPath: z.ZodOptional<z.ZodString>;
|
|
957
|
+
summaryPreview: z.ZodOptional<z.ZodString>;
|
|
958
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
959
|
+
input: z.ZodDefault<z.ZodNumber>;
|
|
960
|
+
output: z.ZodDefault<z.ZodNumber>;
|
|
961
|
+
cacheRead: z.ZodDefault<z.ZodNumber>;
|
|
962
|
+
cacheWrite: z.ZodDefault<z.ZodNumber>;
|
|
963
|
+
totalTokens: z.ZodDefault<z.ZodNumber>;
|
|
964
|
+
cost: z.ZodDefault<z.ZodNumber>;
|
|
965
|
+
turns: z.ZodDefault<z.ZodNumber>;
|
|
966
|
+
}, z.core.$strip>>;
|
|
967
|
+
model: z.ZodOptional<z.ZodString>;
|
|
968
|
+
stopReason: z.ZodOptional<z.ZodString>;
|
|
969
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
970
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
971
|
+
type: z.ZodEnum<{
|
|
972
|
+
tool_call: "tool_call";
|
|
973
|
+
tool_result: "tool_result";
|
|
974
|
+
assistant: "assistant";
|
|
975
|
+
}>;
|
|
976
|
+
toolName: z.ZodOptional<z.ZodString>;
|
|
977
|
+
message: z.ZodString;
|
|
978
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
979
|
+
}, z.core.$strip>>>;
|
|
980
|
+
}, z.core.$strip>;
|
|
981
|
+
export type ExploreReportPayload = z.infer<typeof exploreReportSchema>;
|
|
982
|
+
export declare const exploreResultSchema: z.ZodObject<{
|
|
983
|
+
reports: z.ZodArray<z.ZodObject<{
|
|
984
|
+
agentId: z.ZodString;
|
|
985
|
+
task: z.ZodString;
|
|
986
|
+
label: z.ZodOptional<z.ZodString>;
|
|
987
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
988
|
+
completed: "completed";
|
|
989
|
+
failed: "failed";
|
|
990
|
+
aborted: "aborted";
|
|
991
|
+
}>>;
|
|
992
|
+
report: z.ZodString;
|
|
993
|
+
reportPath: z.ZodOptional<z.ZodString>;
|
|
994
|
+
summaryPreview: z.ZodOptional<z.ZodString>;
|
|
995
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
996
|
+
input: z.ZodDefault<z.ZodNumber>;
|
|
997
|
+
output: z.ZodDefault<z.ZodNumber>;
|
|
998
|
+
cacheRead: z.ZodDefault<z.ZodNumber>;
|
|
999
|
+
cacheWrite: z.ZodDefault<z.ZodNumber>;
|
|
1000
|
+
totalTokens: z.ZodDefault<z.ZodNumber>;
|
|
1001
|
+
cost: z.ZodDefault<z.ZodNumber>;
|
|
1002
|
+
turns: z.ZodDefault<z.ZodNumber>;
|
|
1003
|
+
}, z.core.$strip>>;
|
|
1004
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1005
|
+
stopReason: z.ZodOptional<z.ZodString>;
|
|
1006
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1008
|
+
type: z.ZodEnum<{
|
|
1009
|
+
tool_call: "tool_call";
|
|
1010
|
+
tool_result: "tool_result";
|
|
1011
|
+
assistant: "assistant";
|
|
1012
|
+
}>;
|
|
1013
|
+
toolName: z.ZodOptional<z.ZodString>;
|
|
1014
|
+
message: z.ZodString;
|
|
1015
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
1016
|
+
}, z.core.$strip>>>;
|
|
1017
|
+
}, z.core.$strip>>;
|
|
1018
|
+
contentBlocks: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1019
|
+
type: z.ZodLiteral<"text">;
|
|
1020
|
+
text: z.ZodString;
|
|
1021
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1022
|
+
type: z.ZodLiteral<"image">;
|
|
1023
|
+
data: z.ZodString;
|
|
1024
|
+
mimeType: z.ZodString;
|
|
1025
|
+
}, z.core.$strip>]>>>;
|
|
1026
|
+
}, z.core.$strip>;
|
|
1027
|
+
export type ExploreResultPayload = z.infer<typeof exploreResultSchema>;
|
|
1028
|
+
/** Result of ask_user (resolved question). */
|
|
1029
|
+
export declare const askUserResultSchema: z.ZodObject<{
|
|
1030
|
+
question: z.ZodString;
|
|
1031
|
+
context: z.ZodOptional<z.ZodString>;
|
|
1032
|
+
recommendation: z.ZodOptional<z.ZodString>;
|
|
1033
|
+
response: z.ZodOptional<z.ZodString>;
|
|
1034
|
+
dismissed: z.ZodOptional<z.ZodBoolean>;
|
|
1035
|
+
dismissedReason: z.ZodOptional<z.ZodString>;
|
|
1036
|
+
}, z.core.$strip>;
|
|
1037
|
+
export type AskUserResult = z.infer<typeof askUserResultSchema>;
|
|
1038
|
+
/** Todo item shape shared by todos_set / todos_get. */
|
|
1039
|
+
export declare const todoItemSchema: z.ZodObject<{
|
|
1040
|
+
todo: z.ZodString;
|
|
1041
|
+
done: z.ZodBoolean;
|
|
1042
|
+
}, z.core.$strip>;
|
|
1043
|
+
export type TodoItem = z.infer<typeof todoItemSchema>;
|
|
1044
|
+
/** Result of todos_set / todos_get. */
|
|
1045
|
+
export declare const todosResultSchema: z.ZodObject<{
|
|
1046
|
+
contentBlocks: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1047
|
+
type: z.ZodLiteral<"text">;
|
|
1048
|
+
text: z.ZodString;
|
|
1049
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1050
|
+
type: z.ZodLiteral<"image">;
|
|
1051
|
+
data: z.ZodString;
|
|
1052
|
+
mimeType: z.ZodString;
|
|
1053
|
+
}, z.core.$strip>]>>>;
|
|
1054
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1055
|
+
todos: z.ZodArray<z.ZodObject<{
|
|
1056
|
+
todo: z.ZodString;
|
|
1057
|
+
done: z.ZodBoolean;
|
|
1058
|
+
}, z.core.$strip>>;
|
|
1059
|
+
}, z.core.$strip>>;
|
|
1060
|
+
}, z.core.$strip>;
|
|
1061
|
+
export type TodosResult = z.infer<typeof todosResultSchema>;
|
|
1062
|
+
//# sourceMappingURL=tool-results.schema.d.ts.map
|