@getpaseo/server 0.1.97-beta.3 → 0.1.98

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.
Files changed (96) hide show
  1. package/dist/server/server/agent/agent-manager.d.ts +11 -3
  2. package/dist/server/server/agent/agent-manager.js +95 -23
  3. package/dist/server/server/agent/agent-prompt.d.ts +1 -1
  4. package/dist/server/server/agent/agent-prompt.js +3 -10
  5. package/dist/server/server/agent/agent-response-loop.js +9 -3
  6. package/dist/server/server/agent/agent-sdk-types.d.ts +9 -3
  7. package/dist/server/server/agent/agent-storage.d.ts +20 -240
  8. package/dist/server/server/agent/agent-storage.js +6 -6
  9. package/dist/server/server/agent/create-agent/create.d.ts +2 -0
  10. package/dist/server/server/agent/create-agent/create.js +8 -7
  11. package/dist/server/server/agent/lifecycle-command.d.ts +15 -1
  12. package/dist/server/server/agent/lifecycle-command.js +9 -2
  13. package/dist/server/server/agent/mcp-server.js +263 -119
  14. package/dist/server/server/agent/mcp-shared.d.ts +35 -179
  15. package/dist/server/server/agent/provider-notices.d.ts +3 -0
  16. package/dist/server/server/agent/provider-notices.js +5 -0
  17. package/dist/server/server/agent/provider-registry.d.ts +2 -0
  18. package/dist/server/server/agent/provider-registry.js +10 -3
  19. package/dist/server/server/agent/provider-snapshot-manager.d.ts +3 -0
  20. package/dist/server/server/agent/provider-snapshot-manager.js +11 -2
  21. package/dist/server/server/agent/providers/claude/agent.js +257 -143
  22. package/dist/server/server/agent/providers/claude/models.js +7 -3
  23. package/dist/server/server/agent/providers/claude/project-dir.js +9 -6
  24. package/dist/server/server/agent/providers/claude/task-notification-tool-call.d.ts +2 -22
  25. package/dist/server/server/agent/providers/codex/app-server-transport.d.ts +8 -118
  26. package/dist/server/server/agent/providers/codex-app-server-agent.d.ts +4 -3
  27. package/dist/server/server/agent/providers/codex-app-server-agent.js +43 -1
  28. package/dist/server/server/agent/providers/copilot-acp-agent.js +4 -1
  29. package/dist/server/server/agent/providers/diagnostic-utils.d.ts +9 -0
  30. package/dist/server/server/agent/providers/diagnostic-utils.js +188 -0
  31. package/dist/server/server/agent/providers/generic-acp-agent.d.ts +1 -5
  32. package/dist/server/server/agent/providers/mock-slow-provider.js +1 -1
  33. package/dist/server/server/agent/providers/opencode/server-manager.d.ts +29 -2
  34. package/dist/server/server/agent/providers/opencode/server-manager.js +83 -17
  35. package/dist/server/server/agent/providers/opencode-agent.d.ts +2 -0
  36. package/dist/server/server/agent/providers/opencode-agent.js +14 -9
  37. package/dist/server/server/agent/providers/pi/agent.d.ts +1 -5
  38. package/dist/server/server/agent/providers/pi/agent.js +27 -14
  39. package/dist/server/server/agent/providers/tool-call-detail-primitives.d.ts +391 -1261
  40. package/dist/server/server/agent/providers/tool-call-detail-primitives.js +26 -16
  41. package/dist/server/server/bootstrap.d.ts +2 -0
  42. package/dist/server/server/bootstrap.js +32 -2
  43. package/dist/server/server/loop-service.d.ts +60 -359
  44. package/dist/server/server/managed-processes/managed-processes.d.ts +76 -0
  45. package/dist/server/server/managed-processes/managed-processes.js +326 -0
  46. package/dist/server/server/migrations/backfill-workspace-id.migration.js +10 -6
  47. package/dist/server/server/package-version.d.ts +1 -7
  48. package/dist/server/server/paseo-worktree-service.js +15 -1
  49. package/dist/server/server/persisted-config.d.ts +138 -1009
  50. package/dist/server/server/persisted-config.js +1 -1
  51. package/dist/server/server/pid-lock.d.ts +1 -15
  52. package/dist/server/server/resolve-worktree-creation-intent.d.ts +3 -0
  53. package/dist/server/server/resolve-worktree-creation-intent.js +3 -3
  54. package/dist/server/server/session.d.ts +18 -1
  55. package/dist/server/server/session.js +424 -64
  56. package/dist/server/server/speech/providers/local/sherpa/model-catalog.d.ts +2 -2
  57. package/dist/server/server/speech/providers/openai/runtime.js +3 -4
  58. package/dist/server/server/speech/speech-types.d.ts +9 -11
  59. package/dist/server/server/websocket-server.d.ts +1 -0
  60. package/dist/server/server/websocket-server.js +15 -0
  61. package/dist/server/server/workspace-archive-service.js +2 -3
  62. package/dist/server/server/workspace-directory.js +5 -5
  63. package/dist/server/server/workspace-reconciliation-service.js +2 -2
  64. package/dist/server/server/workspace-registry.d.ts +17 -48
  65. package/dist/server/server/workspace-registry.js +9 -0
  66. package/dist/server/server/worktree-core.d.ts +1 -0
  67. package/dist/server/server/worktree-core.js +5 -1
  68. package/dist/server/services/quota-fetcher/manifest.d.ts +4 -0
  69. package/dist/server/services/quota-fetcher/manifest.js +47 -0
  70. package/dist/server/services/quota-fetcher/provider.d.ts +17 -0
  71. package/dist/server/services/quota-fetcher/provider.js +2 -0
  72. package/dist/server/services/quota-fetcher/providers/claude.d.ts +26 -0
  73. package/dist/server/services/quota-fetcher/providers/claude.js +217 -0
  74. package/dist/server/services/quota-fetcher/providers/codex.d.ts +23 -0
  75. package/dist/server/services/quota-fetcher/providers/codex.js +211 -0
  76. package/dist/server/services/quota-fetcher/providers/copilot.d.ts +17 -0
  77. package/dist/server/services/quota-fetcher/providers/copilot.js +75 -0
  78. package/dist/server/services/quota-fetcher/providers/cursor.d.ts +17 -0
  79. package/dist/server/services/quota-fetcher/providers/cursor.js +123 -0
  80. package/dist/server/services/quota-fetcher/providers/grok.d.ts +18 -0
  81. package/dist/server/services/quota-fetcher/providers/grok.js +89 -0
  82. package/dist/server/services/quota-fetcher/providers/kimi.d.ts +20 -0
  83. package/dist/server/services/quota-fetcher/providers/kimi.js +89 -0
  84. package/dist/server/services/quota-fetcher/providers/zai.d.ts +17 -0
  85. package/dist/server/services/quota-fetcher/providers/zai.js +58 -0
  86. package/dist/server/services/quota-fetcher/service.d.ts +28 -0
  87. package/dist/server/services/quota-fetcher/service.js +58 -0
  88. package/dist/server/services/quota-fetcher/usage.d.ts +22 -0
  89. package/dist/server/services/quota-fetcher/usage.js +49 -0
  90. package/dist/server/terminal/terminal-session-controller.d.ts +8 -0
  91. package/dist/server/terminal/terminal-session-controller.js +23 -3
  92. package/dist/server/utils/checkout-git.js +36 -76
  93. package/dist/server/utils/directory-suggestions.js +98 -2
  94. package/dist/server/utils/worktree-metadata.d.ts +7 -59
  95. package/dist/src/server/persisted-config.js +1 -1
  96. package/package.json +9 -9
@@ -1,169 +1,34 @@
1
1
  import { z } from "zod";
2
2
  import type { ToolCallDetail } from "../agent-sdk-types.js";
3
- export declare const CommandValueSchema: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
4
- export declare const ToolShellInputSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
5
- command: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
3
+ export declare const CommandValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
4
+ type ToolDetailSchema = z.ZodType;
5
+ export declare const ToolShellInputSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
6
+ command: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
6
7
  cwd: z.ZodOptional<z.ZodString>;
7
8
  directory: z.ZodOptional<z.ZodString>;
8
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9
- command: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
9
+ }, z.core.$loose>, z.ZodObject<{
10
+ cmd: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
10
11
  cwd: z.ZodOptional<z.ZodString>;
11
12
  directory: z.ZodOptional<z.ZodString>;
12
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
13
- command: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
14
- cwd: z.ZodOptional<z.ZodString>;
15
- directory: z.ZodOptional<z.ZodString>;
16
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
17
- cmd: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
18
- cwd: z.ZodOptional<z.ZodString>;
19
- directory: z.ZodOptional<z.ZodString>;
20
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
21
- cmd: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
22
- cwd: z.ZodOptional<z.ZodString>;
23
- directory: z.ZodOptional<z.ZodString>;
24
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
25
- cmd: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
26
- cwd: z.ZodOptional<z.ZodString>;
27
- directory: z.ZodOptional<z.ZodString>;
28
- }, z.ZodTypeAny, "passthrough">>]>, {
13
+ }, z.core.$loose>]>, z.ZodTransform<{
29
14
  command: string | undefined;
30
15
  cwd: string | undefined;
31
- }, z.objectInputType<{
32
- command: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
33
- cwd: z.ZodOptional<z.ZodString>;
34
- directory: z.ZodOptional<z.ZodString>;
35
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
36
- cmd: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
37
- cwd: z.ZodOptional<z.ZodString>;
38
- directory: z.ZodOptional<z.ZodString>;
39
- }, z.ZodTypeAny, "passthrough">>;
40
- export declare const ToolShellOutputSchema: z.ZodUnion<[z.ZodEffects<z.ZodString, {
16
+ }, {
17
+ [x: string]: unknown;
18
+ command: string | string[];
19
+ cwd?: string | undefined;
20
+ directory?: string | undefined;
21
+ } | {
22
+ [x: string]: unknown;
23
+ cmd: string | string[];
24
+ cwd?: string | undefined;
25
+ directory?: string | undefined;
26
+ }>>;
27
+ export declare const ToolShellOutputSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
41
28
  command: undefined;
42
29
  output: string | undefined;
43
30
  exitCode: undefined;
44
- }, string>, z.ZodEffects<z.ZodObject<{
45
- command: z.ZodOptional<z.ZodString>;
46
- output: z.ZodOptional<z.ZodString>;
47
- text: z.ZodOptional<z.ZodString>;
48
- content: z.ZodOptional<z.ZodString>;
49
- aggregated_output: z.ZodOptional<z.ZodString>;
50
- aggregatedOutput: z.ZodOptional<z.ZodString>;
51
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
52
- exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
53
- metadata: z.ZodOptional<z.ZodObject<{
54
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
- exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
57
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
58
- exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
60
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
61
- exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
62
- }, z.ZodTypeAny, "passthrough">>>;
63
- structuredContent: z.ZodOptional<z.ZodObject<{
64
- output: z.ZodOptional<z.ZodString>;
65
- text: z.ZodOptional<z.ZodString>;
66
- content: z.ZodOptional<z.ZodString>;
67
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
68
- output: z.ZodOptional<z.ZodString>;
69
- text: z.ZodOptional<z.ZodString>;
70
- content: z.ZodOptional<z.ZodString>;
71
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
72
- output: z.ZodOptional<z.ZodString>;
73
- text: z.ZodOptional<z.ZodString>;
74
- content: z.ZodOptional<z.ZodString>;
75
- }, z.ZodTypeAny, "passthrough">>>;
76
- structured_content: z.ZodOptional<z.ZodObject<{
77
- output: z.ZodOptional<z.ZodString>;
78
- text: z.ZodOptional<z.ZodString>;
79
- content: z.ZodOptional<z.ZodString>;
80
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
81
- output: z.ZodOptional<z.ZodString>;
82
- text: z.ZodOptional<z.ZodString>;
83
- content: z.ZodOptional<z.ZodString>;
84
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
85
- output: z.ZodOptional<z.ZodString>;
86
- text: z.ZodOptional<z.ZodString>;
87
- content: z.ZodOptional<z.ZodString>;
88
- }, z.ZodTypeAny, "passthrough">>>;
89
- result: z.ZodOptional<z.ZodObject<{
90
- command: z.ZodOptional<z.ZodString>;
91
- output: z.ZodOptional<z.ZodString>;
92
- text: z.ZodOptional<z.ZodString>;
93
- content: z.ZodOptional<z.ZodString>;
94
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
95
- command: z.ZodOptional<z.ZodString>;
96
- output: z.ZodOptional<z.ZodString>;
97
- text: z.ZodOptional<z.ZodString>;
98
- content: z.ZodOptional<z.ZodString>;
99
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
100
- command: z.ZodOptional<z.ZodString>;
101
- output: z.ZodOptional<z.ZodString>;
102
- text: z.ZodOptional<z.ZodString>;
103
- content: z.ZodOptional<z.ZodString>;
104
- }, z.ZodTypeAny, "passthrough">>>;
105
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
106
- command: z.ZodOptional<z.ZodString>;
107
- output: z.ZodOptional<z.ZodString>;
108
- text: z.ZodOptional<z.ZodString>;
109
- content: z.ZodOptional<z.ZodString>;
110
- aggregated_output: z.ZodOptional<z.ZodString>;
111
- aggregatedOutput: z.ZodOptional<z.ZodString>;
112
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
113
- exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
114
- metadata: z.ZodOptional<z.ZodObject<{
115
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
116
- exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
117
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
118
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
119
- exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
120
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
121
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
122
- exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
123
- }, z.ZodTypeAny, "passthrough">>>;
124
- structuredContent: z.ZodOptional<z.ZodObject<{
125
- output: z.ZodOptional<z.ZodString>;
126
- text: z.ZodOptional<z.ZodString>;
127
- content: z.ZodOptional<z.ZodString>;
128
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
129
- output: z.ZodOptional<z.ZodString>;
130
- text: z.ZodOptional<z.ZodString>;
131
- content: z.ZodOptional<z.ZodString>;
132
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
133
- output: z.ZodOptional<z.ZodString>;
134
- text: z.ZodOptional<z.ZodString>;
135
- content: z.ZodOptional<z.ZodString>;
136
- }, z.ZodTypeAny, "passthrough">>>;
137
- structured_content: z.ZodOptional<z.ZodObject<{
138
- output: z.ZodOptional<z.ZodString>;
139
- text: z.ZodOptional<z.ZodString>;
140
- content: z.ZodOptional<z.ZodString>;
141
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
142
- output: z.ZodOptional<z.ZodString>;
143
- text: z.ZodOptional<z.ZodString>;
144
- content: z.ZodOptional<z.ZodString>;
145
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
146
- output: z.ZodOptional<z.ZodString>;
147
- text: z.ZodOptional<z.ZodString>;
148
- content: z.ZodOptional<z.ZodString>;
149
- }, z.ZodTypeAny, "passthrough">>>;
150
- result: z.ZodOptional<z.ZodObject<{
151
- command: z.ZodOptional<z.ZodString>;
152
- output: z.ZodOptional<z.ZodString>;
153
- text: z.ZodOptional<z.ZodString>;
154
- content: z.ZodOptional<z.ZodString>;
155
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
156
- command: z.ZodOptional<z.ZodString>;
157
- output: z.ZodOptional<z.ZodString>;
158
- text: z.ZodOptional<z.ZodString>;
159
- content: z.ZodOptional<z.ZodString>;
160
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
161
- command: z.ZodOptional<z.ZodString>;
162
- output: z.ZodOptional<z.ZodString>;
163
- text: z.ZodOptional<z.ZodString>;
164
- content: z.ZodOptional<z.ZodString>;
165
- }, z.ZodTypeAny, "passthrough">>>;
166
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
31
+ }, string>>, z.ZodPipe<z.ZodObject<{
167
32
  command: z.ZodOptional<z.ZodString>;
168
33
  output: z.ZodOptional<z.ZodString>;
169
34
  text: z.ZodOptional<z.ZodString>;
@@ -175,948 +40,231 @@ export declare const ToolShellOutputSchema: z.ZodUnion<[z.ZodEffects<z.ZodString
175
40
  metadata: z.ZodOptional<z.ZodObject<{
176
41
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
177
42
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
178
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
179
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
180
- exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
181
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
182
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
183
- exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
184
- }, z.ZodTypeAny, "passthrough">>>;
43
+ }, z.core.$loose>>;
185
44
  structuredContent: z.ZodOptional<z.ZodObject<{
186
45
  output: z.ZodOptional<z.ZodString>;
187
46
  text: z.ZodOptional<z.ZodString>;
188
47
  content: z.ZodOptional<z.ZodString>;
189
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
190
- output: z.ZodOptional<z.ZodString>;
191
- text: z.ZodOptional<z.ZodString>;
192
- content: z.ZodOptional<z.ZodString>;
193
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
194
- output: z.ZodOptional<z.ZodString>;
195
- text: z.ZodOptional<z.ZodString>;
196
- content: z.ZodOptional<z.ZodString>;
197
- }, z.ZodTypeAny, "passthrough">>>;
48
+ }, z.core.$loose>>;
198
49
  structured_content: z.ZodOptional<z.ZodObject<{
199
50
  output: z.ZodOptional<z.ZodString>;
200
51
  text: z.ZodOptional<z.ZodString>;
201
52
  content: z.ZodOptional<z.ZodString>;
202
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
203
- output: z.ZodOptional<z.ZodString>;
204
- text: z.ZodOptional<z.ZodString>;
205
- content: z.ZodOptional<z.ZodString>;
206
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
207
- output: z.ZodOptional<z.ZodString>;
208
- text: z.ZodOptional<z.ZodString>;
209
- content: z.ZodOptional<z.ZodString>;
210
- }, z.ZodTypeAny, "passthrough">>>;
53
+ }, z.core.$loose>>;
211
54
  result: z.ZodOptional<z.ZodObject<{
212
55
  command: z.ZodOptional<z.ZodString>;
213
56
  output: z.ZodOptional<z.ZodString>;
214
57
  text: z.ZodOptional<z.ZodString>;
215
58
  content: z.ZodOptional<z.ZodString>;
216
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
217
- command: z.ZodOptional<z.ZodString>;
218
- output: z.ZodOptional<z.ZodString>;
219
- text: z.ZodOptional<z.ZodString>;
220
- content: z.ZodOptional<z.ZodString>;
221
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
222
- command: z.ZodOptional<z.ZodString>;
223
- output: z.ZodOptional<z.ZodString>;
224
- text: z.ZodOptional<z.ZodString>;
225
- content: z.ZodOptional<z.ZodString>;
226
- }, z.ZodTypeAny, "passthrough">>>;
227
- }, z.ZodTypeAny, "passthrough">>, {
59
+ }, z.core.$loose>>;
60
+ }, z.core.$loose>, z.ZodTransform<{
228
61
  command: string | undefined;
229
62
  output: string | undefined;
230
63
  exitCode: number | null | undefined;
231
- }, z.objectInputType<{
232
- command: z.ZodOptional<z.ZodString>;
233
- output: z.ZodOptional<z.ZodString>;
234
- text: z.ZodOptional<z.ZodString>;
235
- content: z.ZodOptional<z.ZodString>;
236
- aggregated_output: z.ZodOptional<z.ZodString>;
237
- aggregatedOutput: z.ZodOptional<z.ZodString>;
238
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
239
- exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
240
- metadata: z.ZodOptional<z.ZodObject<{
241
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
242
- exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
243
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
244
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
245
- exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
246
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
247
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
248
- exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
249
- }, z.ZodTypeAny, "passthrough">>>;
250
- structuredContent: z.ZodOptional<z.ZodObject<{
251
- output: z.ZodOptional<z.ZodString>;
252
- text: z.ZodOptional<z.ZodString>;
253
- content: z.ZodOptional<z.ZodString>;
254
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
255
- output: z.ZodOptional<z.ZodString>;
256
- text: z.ZodOptional<z.ZodString>;
257
- content: z.ZodOptional<z.ZodString>;
258
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
259
- output: z.ZodOptional<z.ZodString>;
260
- text: z.ZodOptional<z.ZodString>;
261
- content: z.ZodOptional<z.ZodString>;
262
- }, z.ZodTypeAny, "passthrough">>>;
263
- structured_content: z.ZodOptional<z.ZodObject<{
264
- output: z.ZodOptional<z.ZodString>;
265
- text: z.ZodOptional<z.ZodString>;
266
- content: z.ZodOptional<z.ZodString>;
267
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
268
- output: z.ZodOptional<z.ZodString>;
269
- text: z.ZodOptional<z.ZodString>;
270
- content: z.ZodOptional<z.ZodString>;
271
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
272
- output: z.ZodOptional<z.ZodString>;
273
- text: z.ZodOptional<z.ZodString>;
274
- content: z.ZodOptional<z.ZodString>;
275
- }, z.ZodTypeAny, "passthrough">>>;
276
- result: z.ZodOptional<z.ZodObject<{
277
- command: z.ZodOptional<z.ZodString>;
278
- output: z.ZodOptional<z.ZodString>;
279
- text: z.ZodOptional<z.ZodString>;
280
- content: z.ZodOptional<z.ZodString>;
281
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
282
- command: z.ZodOptional<z.ZodString>;
283
- output: z.ZodOptional<z.ZodString>;
284
- text: z.ZodOptional<z.ZodString>;
285
- content: z.ZodOptional<z.ZodString>;
286
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
287
- command: z.ZodOptional<z.ZodString>;
288
- output: z.ZodOptional<z.ZodString>;
289
- text: z.ZodOptional<z.ZodString>;
290
- content: z.ZodOptional<z.ZodString>;
291
- }, z.ZodTypeAny, "passthrough">>>;
292
- }, z.ZodTypeAny, "passthrough">>]>;
293
- export declare const ToolPathInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
294
- path: z.ZodString;
295
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
296
- path: z.ZodString;
297
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
64
+ }, {
65
+ [x: string]: unknown;
66
+ command?: string | undefined;
67
+ output?: string | undefined;
68
+ text?: string | undefined;
69
+ content?: string | undefined;
70
+ aggregated_output?: string | undefined;
71
+ aggregatedOutput?: string | undefined;
72
+ exitCode?: number | null | undefined;
73
+ exit_code?: number | null | undefined;
74
+ metadata?: {
75
+ [x: string]: unknown;
76
+ exitCode?: number | null | undefined;
77
+ exit_code?: number | null | undefined;
78
+ } | undefined;
79
+ structuredContent?: {
80
+ [x: string]: unknown;
81
+ output?: string | undefined;
82
+ text?: string | undefined;
83
+ content?: string | undefined;
84
+ } | undefined;
85
+ structured_content?: {
86
+ [x: string]: unknown;
87
+ output?: string | undefined;
88
+ text?: string | undefined;
89
+ content?: string | undefined;
90
+ } | undefined;
91
+ result?: {
92
+ [x: string]: unknown;
93
+ command?: string | undefined;
94
+ output?: string | undefined;
95
+ text?: string | undefined;
96
+ content?: string | undefined;
97
+ } | undefined;
98
+ }>>]>;
99
+ export declare const ToolPathInputSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
298
100
  path: z.ZodString;
299
- }, z.ZodTypeAny, "passthrough">>, {
101
+ }, z.core.$loose>, z.ZodTransform<{
300
102
  filePath: string;
301
- }, z.objectInputType<{
302
- path: z.ZodString;
303
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
304
- file_path: z.ZodString;
305
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
103
+ }, {
104
+ [x: string]: unknown;
105
+ path: string;
106
+ }>>, z.ZodPipe<z.ZodObject<{
306
107
  file_path: z.ZodString;
307
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
308
- file_path: z.ZodString;
309
- }, z.ZodTypeAny, "passthrough">>, {
108
+ }, z.core.$loose>, z.ZodTransform<{
310
109
  filePath: string;
311
- }, z.objectInputType<{
312
- file_path: z.ZodString;
313
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
110
+ }, {
111
+ [x: string]: unknown;
112
+ file_path: string;
113
+ }>>, z.ZodPipe<z.ZodObject<{
314
114
  filePath: z.ZodString;
315
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
316
- filePath: z.ZodString;
317
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
318
- filePath: z.ZodString;
319
- }, z.ZodTypeAny, "passthrough">>, {
115
+ }, z.core.$loose>, z.ZodTransform<{
320
116
  filePath: string;
321
- }, z.objectInputType<{
322
- filePath: z.ZodString;
323
- }, z.ZodTypeAny, "passthrough">>]>;
324
- export declare const ToolReadInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
325
- path: z.ZodString;
326
- offset: z.ZodOptional<z.ZodNumber>;
327
- limit: z.ZodOptional<z.ZodNumber>;
328
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
329
- path: z.ZodString;
330
- offset: z.ZodOptional<z.ZodNumber>;
331
- limit: z.ZodOptional<z.ZodNumber>;
332
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
117
+ }, {
118
+ [x: string]: unknown;
119
+ filePath: string;
120
+ }>>]>;
121
+ export declare const ToolReadInputSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
333
122
  path: z.ZodString;
334
123
  offset: z.ZodOptional<z.ZodNumber>;
335
124
  limit: z.ZodOptional<z.ZodNumber>;
336
- }, z.ZodTypeAny, "passthrough">>, {
125
+ }, z.core.$loose>, z.ZodTransform<{
337
126
  filePath: string;
338
127
  offset: number | undefined;
339
128
  limit: number | undefined;
340
- }, z.objectInputType<{
341
- path: z.ZodString;
342
- offset: z.ZodOptional<z.ZodNumber>;
343
- limit: z.ZodOptional<z.ZodNumber>;
344
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
345
- file_path: z.ZodString;
346
- offset: z.ZodOptional<z.ZodNumber>;
347
- limit: z.ZodOptional<z.ZodNumber>;
348
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
129
+ }, {
130
+ [x: string]: unknown;
131
+ path: string;
132
+ offset?: number | undefined;
133
+ limit?: number | undefined;
134
+ }>>, z.ZodPipe<z.ZodObject<{
349
135
  file_path: z.ZodString;
350
136
  offset: z.ZodOptional<z.ZodNumber>;
351
137
  limit: z.ZodOptional<z.ZodNumber>;
352
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
353
- file_path: z.ZodString;
354
- offset: z.ZodOptional<z.ZodNumber>;
355
- limit: z.ZodOptional<z.ZodNumber>;
356
- }, z.ZodTypeAny, "passthrough">>, {
138
+ }, z.core.$loose>, z.ZodTransform<{
357
139
  filePath: string;
358
140
  offset: number | undefined;
359
141
  limit: number | undefined;
360
- }, z.objectInputType<{
361
- file_path: z.ZodString;
362
- offset: z.ZodOptional<z.ZodNumber>;
363
- limit: z.ZodOptional<z.ZodNumber>;
364
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
365
- filePath: z.ZodString;
366
- offset: z.ZodOptional<z.ZodNumber>;
367
- limit: z.ZodOptional<z.ZodNumber>;
368
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
369
- filePath: z.ZodString;
370
- offset: z.ZodOptional<z.ZodNumber>;
371
- limit: z.ZodOptional<z.ZodNumber>;
372
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
142
+ }, {
143
+ [x: string]: unknown;
144
+ file_path: string;
145
+ offset?: number | undefined;
146
+ limit?: number | undefined;
147
+ }>>, z.ZodPipe<z.ZodObject<{
373
148
  filePath: z.ZodString;
374
149
  offset: z.ZodOptional<z.ZodNumber>;
375
150
  limit: z.ZodOptional<z.ZodNumber>;
376
- }, z.ZodTypeAny, "passthrough">>, {
151
+ }, z.core.$loose>, z.ZodTransform<{
377
152
  filePath: string;
378
153
  offset: number | undefined;
379
154
  limit: number | undefined;
380
- }, z.objectInputType<{
381
- filePath: z.ZodString;
382
- offset: z.ZodOptional<z.ZodNumber>;
383
- limit: z.ZodOptional<z.ZodNumber>;
384
- }, z.ZodTypeAny, "passthrough">>]>;
155
+ }, {
156
+ [x: string]: unknown;
157
+ filePath: string;
158
+ offset?: number | undefined;
159
+ limit?: number | undefined;
160
+ }>>]>;
385
161
  interface ToolReadOutputValue {
386
162
  filePath?: string;
387
163
  content?: string;
388
164
  }
389
- export declare const ToolReadOutputSchema: z.ZodType<ToolReadOutputValue, z.ZodTypeDef, unknown>;
390
- export declare const ToolReadOutputWithPathSchema: z.ZodType<ToolReadOutputValue, z.ZodTypeDef, unknown>;
165
+ export declare const ToolReadOutputSchema: z.ZodType<ToolReadOutputValue, unknown>;
166
+ export declare const ToolReadOutputWithPathSchema: z.ZodType<ToolReadOutputValue, unknown>;
391
167
  export declare const ToolWriteContentSchema: z.ZodObject<{
392
168
  content: z.ZodOptional<z.ZodString>;
393
169
  new_content: z.ZodOptional<z.ZodString>;
394
170
  newContent: z.ZodOptional<z.ZodString>;
395
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
396
- content: z.ZodOptional<z.ZodString>;
397
- new_content: z.ZodOptional<z.ZodString>;
398
- newContent: z.ZodOptional<z.ZodString>;
399
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
400
- content: z.ZodOptional<z.ZodString>;
401
- new_content: z.ZodOptional<z.ZodString>;
402
- newContent: z.ZodOptional<z.ZodString>;
403
- }, z.ZodTypeAny, "passthrough">>;
404
- export declare const ToolWriteInputSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
405
- path: z.ZodString;
406
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
407
- path: z.ZodString;
408
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
171
+ }, z.core.$loose>;
172
+ export declare const ToolWriteInputSchema: z.ZodPipe<z.ZodIntersection<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
409
173
  path: z.ZodString;
410
- }, z.ZodTypeAny, "passthrough">>, {
174
+ }, z.core.$loose>, z.ZodTransform<{
411
175
  filePath: string;
412
- }, z.objectInputType<{
413
- path: z.ZodString;
414
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
415
- file_path: z.ZodString;
416
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
176
+ }, {
177
+ [x: string]: unknown;
178
+ path: string;
179
+ }>>, z.ZodPipe<z.ZodObject<{
417
180
  file_path: z.ZodString;
418
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
419
- file_path: z.ZodString;
420
- }, z.ZodTypeAny, "passthrough">>, {
181
+ }, z.core.$loose>, z.ZodTransform<{
421
182
  filePath: string;
422
- }, z.objectInputType<{
423
- file_path: z.ZodString;
424
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
183
+ }, {
184
+ [x: string]: unknown;
185
+ file_path: string;
186
+ }>>, z.ZodPipe<z.ZodObject<{
425
187
  filePath: z.ZodString;
426
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
427
- filePath: z.ZodString;
428
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
429
- filePath: z.ZodString;
430
- }, z.ZodTypeAny, "passthrough">>, {
188
+ }, z.core.$loose>, z.ZodTransform<{
431
189
  filePath: string;
432
- }, z.objectInputType<{
433
- filePath: z.ZodString;
434
- }, z.ZodTypeAny, "passthrough">>]>, z.ZodObject<{
435
- content: z.ZodOptional<z.ZodString>;
436
- new_content: z.ZodOptional<z.ZodString>;
437
- newContent: z.ZodOptional<z.ZodString>;
438
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
439
- content: z.ZodOptional<z.ZodString>;
440
- new_content: z.ZodOptional<z.ZodString>;
441
- newContent: z.ZodOptional<z.ZodString>;
442
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
190
+ }, {
191
+ [x: string]: unknown;
192
+ filePath: string;
193
+ }>>]>, z.ZodObject<{
443
194
  content: z.ZodOptional<z.ZodString>;
444
195
  new_content: z.ZodOptional<z.ZodString>;
445
196
  newContent: z.ZodOptional<z.ZodString>;
446
- }, z.ZodTypeAny, "passthrough">>>, {
197
+ }, z.core.$loose>>, z.ZodTransform<{
447
198
  filePath: string;
448
199
  content: string | undefined;
449
- }, (z.objectInputType<{
450
- path: z.ZodString;
451
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
452
- file_path: z.ZodString;
453
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
454
- filePath: z.ZodString;
455
- }, z.ZodTypeAny, "passthrough">) & {
200
+ }, ({
201
+ filePath: string;
202
+ } | {
203
+ filePath: string;
204
+ } | {
205
+ filePath: string;
206
+ }) & {
207
+ [x: string]: unknown;
456
208
  content?: string | undefined;
457
209
  new_content?: string | undefined;
458
210
  newContent?: string | undefined;
459
- } & {
460
- [k: string]: unknown;
461
- }>;
462
- export declare const ToolWriteOutputSchema: z.ZodUnion<[z.ZodEffects<z.ZodString, {
211
+ }>>;
212
+ export declare const ToolWriteOutputSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
463
213
  filePath: undefined;
464
214
  content: undefined;
465
- }, string>, z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
466
- path: z.ZodString;
467
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
215
+ }, string>>, z.ZodPipe<z.ZodIntersection<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
468
216
  path: z.ZodString;
469
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
470
- path: z.ZodString;
471
- }, z.ZodTypeAny, "passthrough">>, {
217
+ }, z.core.$loose>, z.ZodTransform<{
472
218
  filePath: string;
473
- }, z.objectInputType<{
474
- path: z.ZodString;
475
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
476
- file_path: z.ZodString;
477
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
478
- file_path: z.ZodString;
479
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
219
+ }, {
220
+ [x: string]: unknown;
221
+ path: string;
222
+ }>>, z.ZodPipe<z.ZodObject<{
480
223
  file_path: z.ZodString;
481
- }, z.ZodTypeAny, "passthrough">>, {
224
+ }, z.core.$loose>, z.ZodTransform<{
482
225
  filePath: string;
483
- }, z.objectInputType<{
484
- file_path: z.ZodString;
485
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
486
- filePath: z.ZodString;
487
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
226
+ }, {
227
+ [x: string]: unknown;
228
+ file_path: string;
229
+ }>>, z.ZodPipe<z.ZodObject<{
488
230
  filePath: z.ZodString;
489
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
490
- filePath: z.ZodString;
491
- }, z.ZodTypeAny, "passthrough">>, {
231
+ }, z.core.$loose>, z.ZodTransform<{
492
232
  filePath: string;
493
- }, z.objectInputType<{
494
- filePath: z.ZodString;
495
- }, z.ZodTypeAny, "passthrough">>]>, z.ZodObject<{
496
- content: z.ZodOptional<z.ZodString>;
497
- new_content: z.ZodOptional<z.ZodString>;
498
- newContent: z.ZodOptional<z.ZodString>;
499
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
500
- content: z.ZodOptional<z.ZodString>;
501
- new_content: z.ZodOptional<z.ZodString>;
502
- newContent: z.ZodOptional<z.ZodString>;
503
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
504
- content: z.ZodOptional<z.ZodString>;
505
- new_content: z.ZodOptional<z.ZodString>;
506
- newContent: z.ZodOptional<z.ZodString>;
507
- }, z.ZodTypeAny, "passthrough">>>, {
233
+ }, {
234
+ [x: string]: unknown;
508
235
  filePath: string;
509
- content: string | undefined;
510
- }, (z.objectInputType<{
511
- path: z.ZodString;
512
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
513
- file_path: z.ZodString;
514
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
515
- filePath: z.ZodString;
516
- }, z.ZodTypeAny, "passthrough">) & {
517
- content?: string | undefined;
518
- new_content?: string | undefined;
519
- newContent?: string | undefined;
520
- } & {
521
- [k: string]: unknown;
522
- }>, z.ZodEffects<z.ZodObject<{
523
- content: z.ZodOptional<z.ZodString>;
524
- new_content: z.ZodOptional<z.ZodString>;
525
- newContent: z.ZodOptional<z.ZodString>;
526
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
236
+ }>>]>, z.ZodObject<{
527
237
  content: z.ZodOptional<z.ZodString>;
528
238
  new_content: z.ZodOptional<z.ZodString>;
529
239
  newContent: z.ZodOptional<z.ZodString>;
530
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
531
- content: z.ZodOptional<z.ZodString>;
532
- new_content: z.ZodOptional<z.ZodString>;
533
- newContent: z.ZodOptional<z.ZodString>;
534
- }, z.ZodTypeAny, "passthrough">>, {
535
- filePath: undefined;
536
- content: string | undefined;
537
- }, z.objectInputType<{
538
- content: z.ZodOptional<z.ZodString>;
539
- new_content: z.ZodOptional<z.ZodString>;
540
- newContent: z.ZodOptional<z.ZodString>;
541
- }, z.ZodTypeAny, "passthrough">>]>;
542
- export declare const ToolEditTextSchema: z.ZodObject<{
543
- old_string: z.ZodOptional<z.ZodString>;
544
- old_str: z.ZodOptional<z.ZodString>;
545
- oldContent: z.ZodOptional<z.ZodString>;
546
- old_content: z.ZodOptional<z.ZodString>;
547
- new_string: z.ZodOptional<z.ZodString>;
548
- new_str: z.ZodOptional<z.ZodString>;
549
- newContent: z.ZodOptional<z.ZodString>;
550
- new_content: z.ZodOptional<z.ZodString>;
551
- content: z.ZodOptional<z.ZodString>;
552
- patch: z.ZodOptional<z.ZodString>;
553
- diff: z.ZodOptional<z.ZodString>;
554
- unified_diff: z.ZodOptional<z.ZodString>;
555
- unifiedDiff: z.ZodOptional<z.ZodString>;
556
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
557
- old_string: z.ZodOptional<z.ZodString>;
558
- old_str: z.ZodOptional<z.ZodString>;
559
- oldContent: z.ZodOptional<z.ZodString>;
560
- old_content: z.ZodOptional<z.ZodString>;
561
- new_string: z.ZodOptional<z.ZodString>;
562
- new_str: z.ZodOptional<z.ZodString>;
563
- newContent: z.ZodOptional<z.ZodString>;
564
- new_content: z.ZodOptional<z.ZodString>;
565
- content: z.ZodOptional<z.ZodString>;
566
- patch: z.ZodOptional<z.ZodString>;
567
- diff: z.ZodOptional<z.ZodString>;
568
- unified_diff: z.ZodOptional<z.ZodString>;
569
- unifiedDiff: z.ZodOptional<z.ZodString>;
570
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
571
- old_string: z.ZodOptional<z.ZodString>;
572
- old_str: z.ZodOptional<z.ZodString>;
573
- oldContent: z.ZodOptional<z.ZodString>;
574
- old_content: z.ZodOptional<z.ZodString>;
575
- new_string: z.ZodOptional<z.ZodString>;
576
- new_str: z.ZodOptional<z.ZodString>;
577
- newContent: z.ZodOptional<z.ZodString>;
578
- new_content: z.ZodOptional<z.ZodString>;
579
- content: z.ZodOptional<z.ZodString>;
580
- patch: z.ZodOptional<z.ZodString>;
581
- diff: z.ZodOptional<z.ZodString>;
582
- unified_diff: z.ZodOptional<z.ZodString>;
583
- unifiedDiff: z.ZodOptional<z.ZodString>;
584
- }, z.ZodTypeAny, "passthrough">>;
585
- export declare const ToolEditInputSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
586
- path: z.ZodString;
587
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
588
- path: z.ZodString;
589
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
590
- path: z.ZodString;
591
- }, z.ZodTypeAny, "passthrough">>, {
240
+ }, z.core.$loose>>, z.ZodTransform<{
592
241
  filePath: string;
593
- }, z.objectInputType<{
594
- path: z.ZodString;
595
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
596
- file_path: z.ZodString;
597
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
598
- file_path: z.ZodString;
599
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
600
- file_path: z.ZodString;
601
- }, z.ZodTypeAny, "passthrough">>, {
242
+ content: string | undefined;
243
+ }, ({
602
244
  filePath: string;
603
- }, z.objectInputType<{
604
- file_path: z.ZodString;
605
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
606
- filePath: z.ZodString;
607
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
608
- filePath: z.ZodString;
609
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
610
- filePath: z.ZodString;
611
- }, z.ZodTypeAny, "passthrough">>, {
245
+ } | {
612
246
  filePath: string;
613
- }, z.objectInputType<{
614
- filePath: z.ZodString;
615
- }, z.ZodTypeAny, "passthrough">>]>, z.ZodObject<{
616
- old_string: z.ZodOptional<z.ZodString>;
617
- old_str: z.ZodOptional<z.ZodString>;
618
- oldContent: z.ZodOptional<z.ZodString>;
619
- old_content: z.ZodOptional<z.ZodString>;
620
- new_string: z.ZodOptional<z.ZodString>;
621
- new_str: z.ZodOptional<z.ZodString>;
622
- newContent: z.ZodOptional<z.ZodString>;
623
- new_content: z.ZodOptional<z.ZodString>;
624
- content: z.ZodOptional<z.ZodString>;
625
- patch: z.ZodOptional<z.ZodString>;
626
- diff: z.ZodOptional<z.ZodString>;
627
- unified_diff: z.ZodOptional<z.ZodString>;
628
- unifiedDiff: z.ZodOptional<z.ZodString>;
629
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
630
- old_string: z.ZodOptional<z.ZodString>;
631
- old_str: z.ZodOptional<z.ZodString>;
632
- oldContent: z.ZodOptional<z.ZodString>;
633
- old_content: z.ZodOptional<z.ZodString>;
634
- new_string: z.ZodOptional<z.ZodString>;
635
- new_str: z.ZodOptional<z.ZodString>;
636
- newContent: z.ZodOptional<z.ZodString>;
637
- new_content: z.ZodOptional<z.ZodString>;
638
- content: z.ZodOptional<z.ZodString>;
639
- patch: z.ZodOptional<z.ZodString>;
640
- diff: z.ZodOptional<z.ZodString>;
641
- unified_diff: z.ZodOptional<z.ZodString>;
642
- unifiedDiff: z.ZodOptional<z.ZodString>;
643
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
644
- old_string: z.ZodOptional<z.ZodString>;
645
- old_str: z.ZodOptional<z.ZodString>;
646
- oldContent: z.ZodOptional<z.ZodString>;
647
- old_content: z.ZodOptional<z.ZodString>;
648
- new_string: z.ZodOptional<z.ZodString>;
649
- new_str: z.ZodOptional<z.ZodString>;
650
- newContent: z.ZodOptional<z.ZodString>;
651
- new_content: z.ZodOptional<z.ZodString>;
652
- content: z.ZodOptional<z.ZodString>;
653
- patch: z.ZodOptional<z.ZodString>;
654
- diff: z.ZodOptional<z.ZodString>;
655
- unified_diff: z.ZodOptional<z.ZodString>;
656
- unifiedDiff: z.ZodOptional<z.ZodString>;
657
- }, z.ZodTypeAny, "passthrough">>>, {
247
+ } | {
658
248
  filePath: string;
659
- oldString: string | undefined;
660
- newString: string | undefined;
661
- unifiedDiff: string | undefined;
662
- }, (z.objectInputType<{
663
- path: z.ZodString;
664
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
665
- file_path: z.ZodString;
666
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
667
- filePath: z.ZodString;
668
- }, z.ZodTypeAny, "passthrough">) & {
249
+ }) & {
250
+ [x: string]: unknown;
669
251
  content?: string | undefined;
670
- diff?: string | undefined;
671
252
  new_content?: string | undefined;
672
253
  newContent?: string | undefined;
673
- old_string?: string | undefined;
674
- old_str?: string | undefined;
675
- oldContent?: string | undefined;
676
- old_content?: string | undefined;
677
- new_string?: string | undefined;
678
- new_str?: string | undefined;
679
- patch?: string | undefined;
680
- unified_diff?: string | undefined;
681
- unifiedDiff?: string | undefined;
682
- } & {
683
- [k: string]: unknown;
684
- }>;
685
- export declare const ToolEditOutputSchema: z.ZodUnion<[z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
686
- path: z.ZodString;
687
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
688
- path: z.ZodString;
689
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
690
- path: z.ZodString;
691
- }, z.ZodTypeAny, "passthrough">>, {
692
- filePath: string;
693
- }, z.objectInputType<{
694
- path: z.ZodString;
695
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
696
- file_path: z.ZodString;
697
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
698
- file_path: z.ZodString;
699
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
700
- file_path: z.ZodString;
701
- }, z.ZodTypeAny, "passthrough">>, {
702
- filePath: string;
703
- }, z.objectInputType<{
704
- file_path: z.ZodString;
705
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
706
- filePath: z.ZodString;
707
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
708
- filePath: z.ZodString;
709
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
710
- filePath: z.ZodString;
711
- }, z.ZodTypeAny, "passthrough">>, {
712
- filePath: string;
713
- }, z.objectInputType<{
714
- filePath: z.ZodString;
715
- }, z.ZodTypeAny, "passthrough">>]>, z.ZodObject<{
716
- old_string: z.ZodOptional<z.ZodString>;
717
- old_str: z.ZodOptional<z.ZodString>;
718
- oldContent: z.ZodOptional<z.ZodString>;
719
- old_content: z.ZodOptional<z.ZodString>;
720
- new_string: z.ZodOptional<z.ZodString>;
721
- new_str: z.ZodOptional<z.ZodString>;
722
- newContent: z.ZodOptional<z.ZodString>;
723
- new_content: z.ZodOptional<z.ZodString>;
254
+ }>>, z.ZodPipe<z.ZodObject<{
724
255
  content: z.ZodOptional<z.ZodString>;
725
- patch: z.ZodOptional<z.ZodString>;
726
- diff: z.ZodOptional<z.ZodString>;
727
- unified_diff: z.ZodOptional<z.ZodString>;
728
- unifiedDiff: z.ZodOptional<z.ZodString>;
729
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
730
- old_string: z.ZodOptional<z.ZodString>;
731
- old_str: z.ZodOptional<z.ZodString>;
732
- oldContent: z.ZodOptional<z.ZodString>;
733
- old_content: z.ZodOptional<z.ZodString>;
734
- new_string: z.ZodOptional<z.ZodString>;
735
- new_str: z.ZodOptional<z.ZodString>;
736
- newContent: z.ZodOptional<z.ZodString>;
737
256
  new_content: z.ZodOptional<z.ZodString>;
738
- content: z.ZodOptional<z.ZodString>;
739
- patch: z.ZodOptional<z.ZodString>;
740
- diff: z.ZodOptional<z.ZodString>;
741
- unified_diff: z.ZodOptional<z.ZodString>;
742
- unifiedDiff: z.ZodOptional<z.ZodString>;
743
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
744
- old_string: z.ZodOptional<z.ZodString>;
745
- old_str: z.ZodOptional<z.ZodString>;
746
- oldContent: z.ZodOptional<z.ZodString>;
747
- old_content: z.ZodOptional<z.ZodString>;
748
- new_string: z.ZodOptional<z.ZodString>;
749
- new_str: z.ZodOptional<z.ZodString>;
750
257
  newContent: z.ZodOptional<z.ZodString>;
751
- new_content: z.ZodOptional<z.ZodString>;
752
- content: z.ZodOptional<z.ZodString>;
753
- patch: z.ZodOptional<z.ZodString>;
754
- diff: z.ZodOptional<z.ZodString>;
755
- unified_diff: z.ZodOptional<z.ZodString>;
756
- unifiedDiff: z.ZodOptional<z.ZodString>;
757
- }, z.ZodTypeAny, "passthrough">>>, {
758
- filePath: string;
759
- newString: string | undefined;
760
- unifiedDiff: string | undefined;
761
- }, (z.objectInputType<{
762
- path: z.ZodString;
763
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
764
- file_path: z.ZodString;
765
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
766
- filePath: z.ZodString;
767
- }, z.ZodTypeAny, "passthrough">) & {
768
- content?: string | undefined;
769
- diff?: string | undefined;
770
- new_content?: string | undefined;
771
- newContent?: string | undefined;
772
- old_string?: string | undefined;
773
- old_str?: string | undefined;
774
- oldContent?: string | undefined;
775
- old_content?: string | undefined;
776
- new_string?: string | undefined;
777
- new_str?: string | undefined;
778
- patch?: string | undefined;
779
- unified_diff?: string | undefined;
780
- unifiedDiff?: string | undefined;
781
- } & {
782
- [k: string]: unknown;
783
- }>, z.ZodEffects<z.ZodObject<{
784
- files: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
785
- path: z.ZodString;
786
- patch: z.ZodOptional<z.ZodString>;
787
- diff: z.ZodOptional<z.ZodString>;
788
- unified_diff: z.ZodOptional<z.ZodString>;
789
- unifiedDiff: z.ZodOptional<z.ZodString>;
790
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
791
- path: z.ZodString;
792
- patch: z.ZodOptional<z.ZodString>;
793
- diff: z.ZodOptional<z.ZodString>;
794
- unified_diff: z.ZodOptional<z.ZodString>;
795
- unifiedDiff: z.ZodOptional<z.ZodString>;
796
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
797
- path: z.ZodString;
798
- patch: z.ZodOptional<z.ZodString>;
799
- diff: z.ZodOptional<z.ZodString>;
800
- unified_diff: z.ZodOptional<z.ZodString>;
801
- unifiedDiff: z.ZodOptional<z.ZodString>;
802
- }, z.ZodTypeAny, "passthrough">>, {
803
- filePath: string;
804
- unifiedDiff: string | undefined;
805
- }, z.objectInputType<{
806
- path: z.ZodString;
807
- patch: z.ZodOptional<z.ZodString>;
808
- diff: z.ZodOptional<z.ZodString>;
809
- unified_diff: z.ZodOptional<z.ZodString>;
810
- unifiedDiff: z.ZodOptional<z.ZodString>;
811
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
812
- file_path: z.ZodString;
813
- patch: z.ZodOptional<z.ZodString>;
814
- diff: z.ZodOptional<z.ZodString>;
815
- unified_diff: z.ZodOptional<z.ZodString>;
816
- unifiedDiff: z.ZodOptional<z.ZodString>;
817
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
818
- file_path: z.ZodString;
819
- patch: z.ZodOptional<z.ZodString>;
820
- diff: z.ZodOptional<z.ZodString>;
821
- unified_diff: z.ZodOptional<z.ZodString>;
822
- unifiedDiff: z.ZodOptional<z.ZodString>;
823
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
824
- file_path: z.ZodString;
825
- patch: z.ZodOptional<z.ZodString>;
826
- diff: z.ZodOptional<z.ZodString>;
827
- unified_diff: z.ZodOptional<z.ZodString>;
828
- unifiedDiff: z.ZodOptional<z.ZodString>;
829
- }, z.ZodTypeAny, "passthrough">>, {
830
- filePath: string;
831
- unifiedDiff: string | undefined;
832
- }, z.objectInputType<{
833
- file_path: z.ZodString;
834
- patch: z.ZodOptional<z.ZodString>;
835
- diff: z.ZodOptional<z.ZodString>;
836
- unified_diff: z.ZodOptional<z.ZodString>;
837
- unifiedDiff: z.ZodOptional<z.ZodString>;
838
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
839
- filePath: z.ZodString;
840
- patch: z.ZodOptional<z.ZodString>;
841
- diff: z.ZodOptional<z.ZodString>;
842
- unified_diff: z.ZodOptional<z.ZodString>;
843
- unifiedDiff: z.ZodOptional<z.ZodString>;
844
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
845
- filePath: z.ZodString;
846
- patch: z.ZodOptional<z.ZodString>;
847
- diff: z.ZodOptional<z.ZodString>;
848
- unified_diff: z.ZodOptional<z.ZodString>;
849
- unifiedDiff: z.ZodOptional<z.ZodString>;
850
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
851
- filePath: z.ZodString;
852
- patch: z.ZodOptional<z.ZodString>;
853
- diff: z.ZodOptional<z.ZodString>;
854
- unified_diff: z.ZodOptional<z.ZodString>;
855
- unifiedDiff: z.ZodOptional<z.ZodString>;
856
- }, z.ZodTypeAny, "passthrough">>, {
857
- filePath: string;
858
- unifiedDiff: string | undefined;
859
- }, z.objectInputType<{
860
- filePath: z.ZodString;
861
- patch: z.ZodOptional<z.ZodString>;
862
- diff: z.ZodOptional<z.ZodString>;
863
- unified_diff: z.ZodOptional<z.ZodString>;
864
- unifiedDiff: z.ZodOptional<z.ZodString>;
865
- }, z.ZodTypeAny, "passthrough">>]>, "many">;
866
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
867
- files: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
868
- path: z.ZodString;
869
- patch: z.ZodOptional<z.ZodString>;
870
- diff: z.ZodOptional<z.ZodString>;
871
- unified_diff: z.ZodOptional<z.ZodString>;
872
- unifiedDiff: z.ZodOptional<z.ZodString>;
873
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
874
- path: z.ZodString;
875
- patch: z.ZodOptional<z.ZodString>;
876
- diff: z.ZodOptional<z.ZodString>;
877
- unified_diff: z.ZodOptional<z.ZodString>;
878
- unifiedDiff: z.ZodOptional<z.ZodString>;
879
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
880
- path: z.ZodString;
881
- patch: z.ZodOptional<z.ZodString>;
882
- diff: z.ZodOptional<z.ZodString>;
883
- unified_diff: z.ZodOptional<z.ZodString>;
884
- unifiedDiff: z.ZodOptional<z.ZodString>;
885
- }, z.ZodTypeAny, "passthrough">>, {
886
- filePath: string;
887
- unifiedDiff: string | undefined;
888
- }, z.objectInputType<{
889
- path: z.ZodString;
890
- patch: z.ZodOptional<z.ZodString>;
891
- diff: z.ZodOptional<z.ZodString>;
892
- unified_diff: z.ZodOptional<z.ZodString>;
893
- unifiedDiff: z.ZodOptional<z.ZodString>;
894
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
895
- file_path: z.ZodString;
896
- patch: z.ZodOptional<z.ZodString>;
897
- diff: z.ZodOptional<z.ZodString>;
898
- unified_diff: z.ZodOptional<z.ZodString>;
899
- unifiedDiff: z.ZodOptional<z.ZodString>;
900
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
901
- file_path: z.ZodString;
902
- patch: z.ZodOptional<z.ZodString>;
903
- diff: z.ZodOptional<z.ZodString>;
904
- unified_diff: z.ZodOptional<z.ZodString>;
905
- unifiedDiff: z.ZodOptional<z.ZodString>;
906
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
907
- file_path: z.ZodString;
908
- patch: z.ZodOptional<z.ZodString>;
909
- diff: z.ZodOptional<z.ZodString>;
910
- unified_diff: z.ZodOptional<z.ZodString>;
911
- unifiedDiff: z.ZodOptional<z.ZodString>;
912
- }, z.ZodTypeAny, "passthrough">>, {
913
- filePath: string;
914
- unifiedDiff: string | undefined;
915
- }, z.objectInputType<{
916
- file_path: z.ZodString;
917
- patch: z.ZodOptional<z.ZodString>;
918
- diff: z.ZodOptional<z.ZodString>;
919
- unified_diff: z.ZodOptional<z.ZodString>;
920
- unifiedDiff: z.ZodOptional<z.ZodString>;
921
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
922
- filePath: z.ZodString;
923
- patch: z.ZodOptional<z.ZodString>;
924
- diff: z.ZodOptional<z.ZodString>;
925
- unified_diff: z.ZodOptional<z.ZodString>;
926
- unifiedDiff: z.ZodOptional<z.ZodString>;
927
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
928
- filePath: z.ZodString;
929
- patch: z.ZodOptional<z.ZodString>;
930
- diff: z.ZodOptional<z.ZodString>;
931
- unified_diff: z.ZodOptional<z.ZodString>;
932
- unifiedDiff: z.ZodOptional<z.ZodString>;
933
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
934
- filePath: z.ZodString;
935
- patch: z.ZodOptional<z.ZodString>;
936
- diff: z.ZodOptional<z.ZodString>;
937
- unified_diff: z.ZodOptional<z.ZodString>;
938
- unifiedDiff: z.ZodOptional<z.ZodString>;
939
- }, z.ZodTypeAny, "passthrough">>, {
940
- filePath: string;
941
- unifiedDiff: string | undefined;
942
- }, z.objectInputType<{
943
- filePath: z.ZodString;
944
- patch: z.ZodOptional<z.ZodString>;
945
- diff: z.ZodOptional<z.ZodString>;
946
- unified_diff: z.ZodOptional<z.ZodString>;
947
- unifiedDiff: z.ZodOptional<z.ZodString>;
948
- }, z.ZodTypeAny, "passthrough">>]>, "many">;
949
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
950
- files: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
951
- path: z.ZodString;
952
- patch: z.ZodOptional<z.ZodString>;
953
- diff: z.ZodOptional<z.ZodString>;
954
- unified_diff: z.ZodOptional<z.ZodString>;
955
- unifiedDiff: z.ZodOptional<z.ZodString>;
956
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
957
- path: z.ZodString;
958
- patch: z.ZodOptional<z.ZodString>;
959
- diff: z.ZodOptional<z.ZodString>;
960
- unified_diff: z.ZodOptional<z.ZodString>;
961
- unifiedDiff: z.ZodOptional<z.ZodString>;
962
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
963
- path: z.ZodString;
964
- patch: z.ZodOptional<z.ZodString>;
965
- diff: z.ZodOptional<z.ZodString>;
966
- unified_diff: z.ZodOptional<z.ZodString>;
967
- unifiedDiff: z.ZodOptional<z.ZodString>;
968
- }, z.ZodTypeAny, "passthrough">>, {
969
- filePath: string;
970
- unifiedDiff: string | undefined;
971
- }, z.objectInputType<{
972
- path: z.ZodString;
973
- patch: z.ZodOptional<z.ZodString>;
974
- diff: z.ZodOptional<z.ZodString>;
975
- unified_diff: z.ZodOptional<z.ZodString>;
976
- unifiedDiff: z.ZodOptional<z.ZodString>;
977
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
978
- file_path: z.ZodString;
979
- patch: z.ZodOptional<z.ZodString>;
980
- diff: z.ZodOptional<z.ZodString>;
981
- unified_diff: z.ZodOptional<z.ZodString>;
982
- unifiedDiff: z.ZodOptional<z.ZodString>;
983
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
984
- file_path: z.ZodString;
985
- patch: z.ZodOptional<z.ZodString>;
986
- diff: z.ZodOptional<z.ZodString>;
987
- unified_diff: z.ZodOptional<z.ZodString>;
988
- unifiedDiff: z.ZodOptional<z.ZodString>;
989
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
990
- file_path: z.ZodString;
991
- patch: z.ZodOptional<z.ZodString>;
992
- diff: z.ZodOptional<z.ZodString>;
993
- unified_diff: z.ZodOptional<z.ZodString>;
994
- unifiedDiff: z.ZodOptional<z.ZodString>;
995
- }, z.ZodTypeAny, "passthrough">>, {
996
- filePath: string;
997
- unifiedDiff: string | undefined;
998
- }, z.objectInputType<{
999
- file_path: z.ZodString;
1000
- patch: z.ZodOptional<z.ZodString>;
1001
- diff: z.ZodOptional<z.ZodString>;
1002
- unified_diff: z.ZodOptional<z.ZodString>;
1003
- unifiedDiff: z.ZodOptional<z.ZodString>;
1004
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
1005
- filePath: z.ZodString;
1006
- patch: z.ZodOptional<z.ZodString>;
1007
- diff: z.ZodOptional<z.ZodString>;
1008
- unified_diff: z.ZodOptional<z.ZodString>;
1009
- unifiedDiff: z.ZodOptional<z.ZodString>;
1010
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1011
- filePath: z.ZodString;
1012
- patch: z.ZodOptional<z.ZodString>;
1013
- diff: z.ZodOptional<z.ZodString>;
1014
- unified_diff: z.ZodOptional<z.ZodString>;
1015
- unifiedDiff: z.ZodOptional<z.ZodString>;
1016
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1017
- filePath: z.ZodString;
1018
- patch: z.ZodOptional<z.ZodString>;
1019
- diff: z.ZodOptional<z.ZodString>;
1020
- unified_diff: z.ZodOptional<z.ZodString>;
1021
- unifiedDiff: z.ZodOptional<z.ZodString>;
1022
- }, z.ZodTypeAny, "passthrough">>, {
1023
- filePath: string;
1024
- unifiedDiff: string | undefined;
1025
- }, z.objectInputType<{
1026
- filePath: z.ZodString;
1027
- patch: z.ZodOptional<z.ZodString>;
1028
- diff: z.ZodOptional<z.ZodString>;
1029
- unified_diff: z.ZodOptional<z.ZodString>;
1030
- unifiedDiff: z.ZodOptional<z.ZodString>;
1031
- }, z.ZodTypeAny, "passthrough">>]>, "many">;
1032
- }, z.ZodTypeAny, "passthrough">>, {
1033
- filePath: string;
1034
- unifiedDiff: string | undefined;
1035
- newString: undefined;
1036
- }, z.objectInputType<{
1037
- files: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
1038
- path: z.ZodString;
1039
- patch: z.ZodOptional<z.ZodString>;
1040
- diff: z.ZodOptional<z.ZodString>;
1041
- unified_diff: z.ZodOptional<z.ZodString>;
1042
- unifiedDiff: z.ZodOptional<z.ZodString>;
1043
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1044
- path: z.ZodString;
1045
- patch: z.ZodOptional<z.ZodString>;
1046
- diff: z.ZodOptional<z.ZodString>;
1047
- unified_diff: z.ZodOptional<z.ZodString>;
1048
- unifiedDiff: z.ZodOptional<z.ZodString>;
1049
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1050
- path: z.ZodString;
1051
- patch: z.ZodOptional<z.ZodString>;
1052
- diff: z.ZodOptional<z.ZodString>;
1053
- unified_diff: z.ZodOptional<z.ZodString>;
1054
- unifiedDiff: z.ZodOptional<z.ZodString>;
1055
- }, z.ZodTypeAny, "passthrough">>, {
1056
- filePath: string;
1057
- unifiedDiff: string | undefined;
1058
- }, z.objectInputType<{
1059
- path: z.ZodString;
1060
- patch: z.ZodOptional<z.ZodString>;
1061
- diff: z.ZodOptional<z.ZodString>;
1062
- unified_diff: z.ZodOptional<z.ZodString>;
1063
- unifiedDiff: z.ZodOptional<z.ZodString>;
1064
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
1065
- file_path: z.ZodString;
1066
- patch: z.ZodOptional<z.ZodString>;
1067
- diff: z.ZodOptional<z.ZodString>;
1068
- unified_diff: z.ZodOptional<z.ZodString>;
1069
- unifiedDiff: z.ZodOptional<z.ZodString>;
1070
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1071
- file_path: z.ZodString;
1072
- patch: z.ZodOptional<z.ZodString>;
1073
- diff: z.ZodOptional<z.ZodString>;
1074
- unified_diff: z.ZodOptional<z.ZodString>;
1075
- unifiedDiff: z.ZodOptional<z.ZodString>;
1076
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1077
- file_path: z.ZodString;
1078
- patch: z.ZodOptional<z.ZodString>;
1079
- diff: z.ZodOptional<z.ZodString>;
1080
- unified_diff: z.ZodOptional<z.ZodString>;
1081
- unifiedDiff: z.ZodOptional<z.ZodString>;
1082
- }, z.ZodTypeAny, "passthrough">>, {
1083
- filePath: string;
1084
- unifiedDiff: string | undefined;
1085
- }, z.objectInputType<{
1086
- file_path: z.ZodString;
1087
- patch: z.ZodOptional<z.ZodString>;
1088
- diff: z.ZodOptional<z.ZodString>;
1089
- unified_diff: z.ZodOptional<z.ZodString>;
1090
- unifiedDiff: z.ZodOptional<z.ZodString>;
1091
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
1092
- filePath: z.ZodString;
1093
- patch: z.ZodOptional<z.ZodString>;
1094
- diff: z.ZodOptional<z.ZodString>;
1095
- unified_diff: z.ZodOptional<z.ZodString>;
1096
- unifiedDiff: z.ZodOptional<z.ZodString>;
1097
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1098
- filePath: z.ZodString;
1099
- patch: z.ZodOptional<z.ZodString>;
1100
- diff: z.ZodOptional<z.ZodString>;
1101
- unified_diff: z.ZodOptional<z.ZodString>;
1102
- unifiedDiff: z.ZodOptional<z.ZodString>;
1103
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1104
- filePath: z.ZodString;
1105
- patch: z.ZodOptional<z.ZodString>;
1106
- diff: z.ZodOptional<z.ZodString>;
1107
- unified_diff: z.ZodOptional<z.ZodString>;
1108
- unifiedDiff: z.ZodOptional<z.ZodString>;
1109
- }, z.ZodTypeAny, "passthrough">>, {
1110
- filePath: string;
1111
- unifiedDiff: string | undefined;
1112
- }, z.objectInputType<{
1113
- filePath: z.ZodString;
1114
- patch: z.ZodOptional<z.ZodString>;
1115
- diff: z.ZodOptional<z.ZodString>;
1116
- unified_diff: z.ZodOptional<z.ZodString>;
1117
- unifiedDiff: z.ZodOptional<z.ZodString>;
1118
- }, z.ZodTypeAny, "passthrough">>]>, "many">;
1119
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
258
+ }, z.core.$loose>, z.ZodTransform<{
259
+ filePath: undefined;
260
+ content: string | undefined;
261
+ }, {
262
+ [x: string]: unknown;
263
+ content?: string | undefined;
264
+ new_content?: string | undefined;
265
+ newContent?: string | undefined;
266
+ }>>]>;
267
+ export declare const ToolEditTextSchema: z.ZodObject<{
1120
268
  old_string: z.ZodOptional<z.ZodString>;
1121
269
  old_str: z.ZodOptional<z.ZodString>;
1122
270
  oldContent: z.ZodOptional<z.ZodString>;
@@ -1130,7 +278,29 @@ export declare const ToolEditOutputSchema: z.ZodUnion<[z.ZodEffects<z.ZodInterse
1130
278
  diff: z.ZodOptional<z.ZodString>;
1131
279
  unified_diff: z.ZodOptional<z.ZodString>;
1132
280
  unifiedDiff: z.ZodOptional<z.ZodString>;
1133
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
281
+ }, z.core.$loose>;
282
+ export declare const ToolEditInputSchema: z.ZodPipe<z.ZodIntersection<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
283
+ path: z.ZodString;
284
+ }, z.core.$loose>, z.ZodTransform<{
285
+ filePath: string;
286
+ }, {
287
+ [x: string]: unknown;
288
+ path: string;
289
+ }>>, z.ZodPipe<z.ZodObject<{
290
+ file_path: z.ZodString;
291
+ }, z.core.$loose>, z.ZodTransform<{
292
+ filePath: string;
293
+ }, {
294
+ [x: string]: unknown;
295
+ file_path: string;
296
+ }>>, z.ZodPipe<z.ZodObject<{
297
+ filePath: z.ZodString;
298
+ }, z.core.$loose>, z.ZodTransform<{
299
+ filePath: string;
300
+ }, {
301
+ [x: string]: unknown;
302
+ filePath: string;
303
+ }>>]>, z.ZodObject<{
1134
304
  old_string: z.ZodOptional<z.ZodString>;
1135
305
  old_str: z.ZodOptional<z.ZodString>;
1136
306
  oldContent: z.ZodOptional<z.ZodString>;
@@ -1144,7 +314,55 @@ export declare const ToolEditOutputSchema: z.ZodUnion<[z.ZodEffects<z.ZodInterse
1144
314
  diff: z.ZodOptional<z.ZodString>;
1145
315
  unified_diff: z.ZodOptional<z.ZodString>;
1146
316
  unifiedDiff: z.ZodOptional<z.ZodString>;
1147
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
317
+ }, z.core.$loose>>, z.ZodTransform<{
318
+ filePath: string;
319
+ oldString: string | undefined;
320
+ newString: string | undefined;
321
+ unifiedDiff: string | undefined;
322
+ }, ({
323
+ filePath: string;
324
+ } | {
325
+ filePath: string;
326
+ } | {
327
+ filePath: string;
328
+ }) & {
329
+ [x: string]: unknown;
330
+ old_string?: string | undefined;
331
+ old_str?: string | undefined;
332
+ oldContent?: string | undefined;
333
+ old_content?: string | undefined;
334
+ new_string?: string | undefined;
335
+ new_str?: string | undefined;
336
+ newContent?: string | undefined;
337
+ new_content?: string | undefined;
338
+ content?: string | undefined;
339
+ patch?: string | undefined;
340
+ diff?: string | undefined;
341
+ unified_diff?: string | undefined;
342
+ unifiedDiff?: string | undefined;
343
+ }>>;
344
+ export declare const ToolEditOutputSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodIntersection<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
345
+ path: z.ZodString;
346
+ }, z.core.$loose>, z.ZodTransform<{
347
+ filePath: string;
348
+ }, {
349
+ [x: string]: unknown;
350
+ path: string;
351
+ }>>, z.ZodPipe<z.ZodObject<{
352
+ file_path: z.ZodString;
353
+ }, z.core.$loose>, z.ZodTransform<{
354
+ filePath: string;
355
+ }, {
356
+ [x: string]: unknown;
357
+ file_path: string;
358
+ }>>, z.ZodPipe<z.ZodObject<{
359
+ filePath: z.ZodString;
360
+ }, z.core.$loose>, z.ZodTransform<{
361
+ filePath: string;
362
+ }, {
363
+ [x: string]: unknown;
364
+ filePath: string;
365
+ }>>]>, z.ZodObject<{
1148
366
  old_string: z.ZodOptional<z.ZodString>;
1149
367
  old_str: z.ZodOptional<z.ZodString>;
1150
368
  oldContent: z.ZodOptional<z.ZodString>;
@@ -1158,11 +376,98 @@ export declare const ToolEditOutputSchema: z.ZodUnion<[z.ZodEffects<z.ZodInterse
1158
376
  diff: z.ZodOptional<z.ZodString>;
1159
377
  unified_diff: z.ZodOptional<z.ZodString>;
1160
378
  unifiedDiff: z.ZodOptional<z.ZodString>;
1161
- }, z.ZodTypeAny, "passthrough">>, {
1162
- filePath: undefined;
379
+ }, z.core.$loose>>, z.ZodTransform<{
380
+ filePath: string;
1163
381
  newString: string | undefined;
1164
382
  unifiedDiff: string | undefined;
1165
- }, z.objectInputType<{
383
+ }, ({
384
+ filePath: string;
385
+ } | {
386
+ filePath: string;
387
+ } | {
388
+ filePath: string;
389
+ }) & {
390
+ [x: string]: unknown;
391
+ old_string?: string | undefined;
392
+ old_str?: string | undefined;
393
+ oldContent?: string | undefined;
394
+ old_content?: string | undefined;
395
+ new_string?: string | undefined;
396
+ new_str?: string | undefined;
397
+ newContent?: string | undefined;
398
+ new_content?: string | undefined;
399
+ content?: string | undefined;
400
+ patch?: string | undefined;
401
+ diff?: string | undefined;
402
+ unified_diff?: string | undefined;
403
+ unifiedDiff?: string | undefined;
404
+ }>>, z.ZodPipe<z.ZodObject<{
405
+ files: z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
406
+ path: z.ZodString;
407
+ patch: z.ZodOptional<z.ZodString>;
408
+ diff: z.ZodOptional<z.ZodString>;
409
+ unified_diff: z.ZodOptional<z.ZodString>;
410
+ unifiedDiff: z.ZodOptional<z.ZodString>;
411
+ }, z.core.$loose>, z.ZodTransform<{
412
+ filePath: string;
413
+ unifiedDiff: string | undefined;
414
+ }, {
415
+ [x: string]: unknown;
416
+ path: string;
417
+ patch?: string | undefined;
418
+ diff?: string | undefined;
419
+ unified_diff?: string | undefined;
420
+ unifiedDiff?: string | undefined;
421
+ }>>, z.ZodPipe<z.ZodObject<{
422
+ file_path: z.ZodString;
423
+ patch: z.ZodOptional<z.ZodString>;
424
+ diff: z.ZodOptional<z.ZodString>;
425
+ unified_diff: z.ZodOptional<z.ZodString>;
426
+ unifiedDiff: z.ZodOptional<z.ZodString>;
427
+ }, z.core.$loose>, z.ZodTransform<{
428
+ filePath: string;
429
+ unifiedDiff: string | undefined;
430
+ }, {
431
+ [x: string]: unknown;
432
+ file_path: string;
433
+ patch?: string | undefined;
434
+ diff?: string | undefined;
435
+ unified_diff?: string | undefined;
436
+ unifiedDiff?: string | undefined;
437
+ }>>, z.ZodPipe<z.ZodObject<{
438
+ filePath: z.ZodString;
439
+ patch: z.ZodOptional<z.ZodString>;
440
+ diff: z.ZodOptional<z.ZodString>;
441
+ unified_diff: z.ZodOptional<z.ZodString>;
442
+ unifiedDiff: z.ZodOptional<z.ZodString>;
443
+ }, z.core.$loose>, z.ZodTransform<{
444
+ filePath: string;
445
+ unifiedDiff: string | undefined;
446
+ }, {
447
+ [x: string]: unknown;
448
+ filePath: string;
449
+ patch?: string | undefined;
450
+ diff?: string | undefined;
451
+ unified_diff?: string | undefined;
452
+ unifiedDiff?: string | undefined;
453
+ }>>]>>;
454
+ }, z.core.$loose>, z.ZodTransform<{
455
+ filePath: string;
456
+ unifiedDiff: string | undefined;
457
+ newString: undefined;
458
+ }, {
459
+ [x: string]: unknown;
460
+ files: ({
461
+ filePath: string;
462
+ unifiedDiff: string | undefined;
463
+ } | {
464
+ filePath: string;
465
+ unifiedDiff: string | undefined;
466
+ } | {
467
+ filePath: string;
468
+ unifiedDiff: string | undefined;
469
+ })[];
470
+ }>>, z.ZodPipe<z.ZodObject<{
1166
471
  old_string: z.ZodOptional<z.ZodString>;
1167
472
  old_str: z.ZodOptional<z.ZodString>;
1168
473
  oldContent: z.ZodOptional<z.ZodString>;
@@ -1176,92 +481,72 @@ export declare const ToolEditOutputSchema: z.ZodUnion<[z.ZodEffects<z.ZodInterse
1176
481
  diff: z.ZodOptional<z.ZodString>;
1177
482
  unified_diff: z.ZodOptional<z.ZodString>;
1178
483
  unifiedDiff: z.ZodOptional<z.ZodString>;
1179
- }, z.ZodTypeAny, "passthrough">>]>;
1180
- export declare const ToolSearchInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
1181
- query: z.ZodString;
1182
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1183
- query: z.ZodString;
1184
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
484
+ }, z.core.$loose>, z.ZodTransform<{
485
+ filePath: undefined;
486
+ newString: string | undefined;
487
+ unifiedDiff: string | undefined;
488
+ }, {
489
+ [x: string]: unknown;
490
+ old_string?: string | undefined;
491
+ old_str?: string | undefined;
492
+ oldContent?: string | undefined;
493
+ old_content?: string | undefined;
494
+ new_string?: string | undefined;
495
+ new_str?: string | undefined;
496
+ newContent?: string | undefined;
497
+ new_content?: string | undefined;
498
+ content?: string | undefined;
499
+ patch?: string | undefined;
500
+ diff?: string | undefined;
501
+ unified_diff?: string | undefined;
502
+ unifiedDiff?: string | undefined;
503
+ }>>]>;
504
+ export declare const ToolSearchInputSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
1185
505
  query: z.ZodString;
1186
- }, z.ZodTypeAny, "passthrough">>, {
506
+ }, z.core.$loose>, z.ZodTransform<{
1187
507
  query: string;
1188
- }, z.objectInputType<{
1189
- query: z.ZodString;
1190
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
1191
- q: z.ZodString;
1192
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1193
- q: z.ZodString;
1194
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1195
- q: z.ZodString;
1196
- }, z.ZodTypeAny, "passthrough">>, {
508
+ }, {
509
+ [x: string]: unknown;
1197
510
  query: string;
1198
- }, z.objectInputType<{
511
+ }>>, z.ZodPipe<z.ZodObject<{
1199
512
  q: z.ZodString;
1200
- }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
1201
- pattern: z.ZodString;
1202
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1203
- pattern: z.ZodString;
1204
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1205
- pattern: z.ZodString;
1206
- }, z.ZodTypeAny, "passthrough">>, {
513
+ }, z.core.$loose>, z.ZodTransform<{
1207
514
  query: string;
1208
- }, z.objectInputType<{
515
+ }, {
516
+ [x: string]: unknown;
517
+ q: string;
518
+ }>>, z.ZodPipe<z.ZodObject<{
1209
519
  pattern: z.ZodString;
1210
- }, z.ZodTypeAny, "passthrough">>]>;
520
+ }, z.core.$loose>, z.ZodTransform<{
521
+ query: string;
522
+ }, {
523
+ [x: string]: unknown;
524
+ pattern: string;
525
+ }>>]>;
1211
526
  export declare const ToolGlobOutputSchema: z.ZodObject<{
1212
527
  durationMs: z.ZodNumber;
1213
528
  numFiles: z.ZodNumber;
1214
- filenames: z.ZodArray<z.ZodString, "many">;
1215
- truncated: z.ZodBoolean;
1216
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1217
- durationMs: z.ZodNumber;
1218
- numFiles: z.ZodNumber;
1219
- filenames: z.ZodArray<z.ZodString, "many">;
1220
- truncated: z.ZodBoolean;
1221
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1222
- durationMs: z.ZodNumber;
1223
- numFiles: z.ZodNumber;
1224
- filenames: z.ZodArray<z.ZodString, "many">;
529
+ filenames: z.ZodArray<z.ZodString>;
1225
530
  truncated: z.ZodBoolean;
1226
- }, z.ZodTypeAny, "passthrough">>;
531
+ }, z.core.$loose>;
1227
532
  export declare const ToolGrepOutputSchema: z.ZodObject<{
1228
- mode: z.ZodOptional<z.ZodEnum<["content", "files_with_matches", "count"]>>;
1229
- numFiles: z.ZodNumber;
1230
- filenames: z.ZodArray<z.ZodString, "many">;
1231
- content: z.ZodOptional<z.ZodString>;
1232
- numLines: z.ZodOptional<z.ZodNumber>;
1233
- numMatches: z.ZodOptional<z.ZodNumber>;
1234
- appliedLimit: z.ZodOptional<z.ZodNumber>;
1235
- appliedOffset: z.ZodOptional<z.ZodNumber>;
1236
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1237
- mode: z.ZodOptional<z.ZodEnum<["content", "files_with_matches", "count"]>>;
1238
- numFiles: z.ZodNumber;
1239
- filenames: z.ZodArray<z.ZodString, "many">;
1240
- content: z.ZodOptional<z.ZodString>;
1241
- numLines: z.ZodOptional<z.ZodNumber>;
1242
- numMatches: z.ZodOptional<z.ZodNumber>;
1243
- appliedLimit: z.ZodOptional<z.ZodNumber>;
1244
- appliedOffset: z.ZodOptional<z.ZodNumber>;
1245
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1246
- mode: z.ZodOptional<z.ZodEnum<["content", "files_with_matches", "count"]>>;
533
+ mode: z.ZodOptional<z.ZodEnum<{
534
+ content: "content";
535
+ files_with_matches: "files_with_matches";
536
+ count: "count";
537
+ }>>;
1247
538
  numFiles: z.ZodNumber;
1248
- filenames: z.ZodArray<z.ZodString, "many">;
539
+ filenames: z.ZodArray<z.ZodString>;
1249
540
  content: z.ZodOptional<z.ZodString>;
1250
541
  numLines: z.ZodOptional<z.ZodNumber>;
1251
542
  numMatches: z.ZodOptional<z.ZodNumber>;
1252
543
  appliedLimit: z.ZodOptional<z.ZodNumber>;
1253
544
  appliedOffset: z.ZodOptional<z.ZodNumber>;
1254
- }, z.ZodTypeAny, "passthrough">>;
545
+ }, z.core.$loose>;
1255
546
  export declare const ToolWebFetchInputSchema: z.ZodObject<{
1256
547
  url: z.ZodString;
1257
548
  prompt: z.ZodString;
1258
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1259
- url: z.ZodString;
1260
- prompt: z.ZodString;
1261
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1262
- url: z.ZodString;
1263
- prompt: z.ZodString;
1264
- }, z.ZodTypeAny, "passthrough">>;
549
+ }, z.core.$loose>;
1265
550
  export declare const ToolWebFetchOutputSchema: z.ZodObject<{
1266
551
  bytes: z.ZodNumber;
1267
552
  code: z.ZodNumber;
@@ -1269,142 +554,18 @@ export declare const ToolWebFetchOutputSchema: z.ZodObject<{
1269
554
  result: z.ZodString;
1270
555
  durationMs: z.ZodNumber;
1271
556
  url: z.ZodString;
1272
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1273
- bytes: z.ZodNumber;
1274
- code: z.ZodNumber;
1275
- codeText: z.ZodString;
1276
- result: z.ZodString;
1277
- durationMs: z.ZodNumber;
1278
- url: z.ZodString;
1279
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1280
- bytes: z.ZodNumber;
1281
- code: z.ZodNumber;
1282
- codeText: z.ZodString;
1283
- result: z.ZodString;
1284
- durationMs: z.ZodNumber;
1285
- url: z.ZodString;
1286
- }, z.ZodTypeAny, "passthrough">>;
557
+ }, z.core.$loose>;
1287
558
  export declare const ToolWebSearchOutputSchema: z.ZodObject<{
1288
559
  query: z.ZodString;
1289
- results: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1290
- tool_use_id: z.ZodString;
1291
- content: z.ZodArray<z.ZodObject<{
1292
- title: z.ZodString;
1293
- url: z.ZodString;
1294
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1295
- title: z.ZodString;
1296
- url: z.ZodString;
1297
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1298
- title: z.ZodString;
1299
- url: z.ZodString;
1300
- }, z.ZodTypeAny, "passthrough">>, "many">;
1301
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1302
- tool_use_id: z.ZodString;
1303
- content: z.ZodArray<z.ZodObject<{
1304
- title: z.ZodString;
1305
- url: z.ZodString;
1306
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1307
- title: z.ZodString;
1308
- url: z.ZodString;
1309
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1310
- title: z.ZodString;
1311
- url: z.ZodString;
1312
- }, z.ZodTypeAny, "passthrough">>, "many">;
1313
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1314
- tool_use_id: z.ZodString;
1315
- content: z.ZodArray<z.ZodObject<{
1316
- title: z.ZodString;
1317
- url: z.ZodString;
1318
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1319
- title: z.ZodString;
1320
- url: z.ZodString;
1321
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1322
- title: z.ZodString;
1323
- url: z.ZodString;
1324
- }, z.ZodTypeAny, "passthrough">>, "many">;
1325
- }, z.ZodTypeAny, "passthrough">>, z.ZodString]>, "many">;
1326
- durationSeconds: z.ZodNumber;
1327
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1328
- query: z.ZodString;
1329
- results: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1330
- tool_use_id: z.ZodString;
1331
- content: z.ZodArray<z.ZodObject<{
1332
- title: z.ZodString;
1333
- url: z.ZodString;
1334
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1335
- title: z.ZodString;
1336
- url: z.ZodString;
1337
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1338
- title: z.ZodString;
1339
- url: z.ZodString;
1340
- }, z.ZodTypeAny, "passthrough">>, "many">;
1341
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1342
- tool_use_id: z.ZodString;
1343
- content: z.ZodArray<z.ZodObject<{
1344
- title: z.ZodString;
1345
- url: z.ZodString;
1346
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1347
- title: z.ZodString;
1348
- url: z.ZodString;
1349
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1350
- title: z.ZodString;
1351
- url: z.ZodString;
1352
- }, z.ZodTypeAny, "passthrough">>, "many">;
1353
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1354
- tool_use_id: z.ZodString;
1355
- content: z.ZodArray<z.ZodObject<{
1356
- title: z.ZodString;
1357
- url: z.ZodString;
1358
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1359
- title: z.ZodString;
1360
- url: z.ZodString;
1361
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1362
- title: z.ZodString;
1363
- url: z.ZodString;
1364
- }, z.ZodTypeAny, "passthrough">>, "many">;
1365
- }, z.ZodTypeAny, "passthrough">>, z.ZodString]>, "many">;
1366
- durationSeconds: z.ZodNumber;
1367
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1368
- query: z.ZodString;
1369
- results: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1370
- tool_use_id: z.ZodString;
1371
- content: z.ZodArray<z.ZodObject<{
1372
- title: z.ZodString;
1373
- url: z.ZodString;
1374
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1375
- title: z.ZodString;
1376
- url: z.ZodString;
1377
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1378
- title: z.ZodString;
1379
- url: z.ZodString;
1380
- }, z.ZodTypeAny, "passthrough">>, "many">;
1381
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1382
- tool_use_id: z.ZodString;
1383
- content: z.ZodArray<z.ZodObject<{
1384
- title: z.ZodString;
1385
- url: z.ZodString;
1386
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1387
- title: z.ZodString;
1388
- url: z.ZodString;
1389
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1390
- title: z.ZodString;
1391
- url: z.ZodString;
1392
- }, z.ZodTypeAny, "passthrough">>, "many">;
1393
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
560
+ results: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1394
561
  tool_use_id: z.ZodString;
1395
562
  content: z.ZodArray<z.ZodObject<{
1396
563
  title: z.ZodString;
1397
564
  url: z.ZodString;
1398
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1399
- title: z.ZodString;
1400
- url: z.ZodString;
1401
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1402
- title: z.ZodString;
1403
- url: z.ZodString;
1404
- }, z.ZodTypeAny, "passthrough">>, "many">;
1405
- }, z.ZodTypeAny, "passthrough">>, z.ZodString]>, "many">;
565
+ }, z.core.$loose>>;
566
+ }, z.core.$loose>, z.ZodString]>>;
1406
567
  durationSeconds: z.ZodNumber;
1407
- }, z.ZodTypeAny, "passthrough">>;
568
+ }, z.core.$loose>;
1408
569
  export type ParsedToolShellInput = z.infer<typeof ToolShellInputSchema>;
1409
570
  export type ParsedToolShellOutput = z.infer<typeof ToolShellOutputSchema>;
1410
571
  export type ParsedToolReadInput = z.infer<typeof ToolReadInputSchema>;
@@ -1437,19 +598,11 @@ export declare function toSearchToolDetail(params: {
1437
598
  toolName?: "search" | "grep" | "glob" | "web_search";
1438
599
  }): ToolCallDetail | undefined;
1439
600
  export declare function toFetchToolDetail(input: ParsedToolWebFetchInput | null, output: ParsedToolWebFetchOutput | null): ToolCallDetail | undefined;
1440
- export declare function toolDetailBranchByName<Name extends string, InputSchema extends z.ZodTypeAny, OutputSchema extends z.ZodTypeAny>(name: Name, inputSchema: InputSchema, outputSchema: OutputSchema, mapper: (input: z.infer<InputSchema> | null, output: z.infer<OutputSchema> | null) => ToolCallDetail | undefined): z.ZodEffects<z.ZodObject<{
1441
- name: z.ZodLiteral<Name>;
1442
- input: z.ZodNullable<InputSchema>;
1443
- output: z.ZodNullable<OutputSchema>;
1444
- }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
601
+ export declare function toolDetailBranchByName<Name extends string, InputSchema extends ToolDetailSchema, OutputSchema extends ToolDetailSchema>(name: Name, inputSchema: InputSchema, outputSchema: OutputSchema, mapper: (input: z.infer<InputSchema> | null, output: z.infer<OutputSchema> | null) => ToolCallDetail | undefined): z.ZodPipe<z.ZodObject<{
1445
602
  name: z.ZodLiteral<Name>;
1446
603
  input: z.ZodNullable<InputSchema>;
1447
604
  output: z.ZodNullable<OutputSchema>;
1448
- }>, any> extends infer T ? { [k in keyof T]: T[k]; } : never, z.baseObjectInputType<{
1449
- name: z.ZodLiteral<Name>;
1450
- input: z.ZodNullable<InputSchema>;
1451
- output: z.ZodNullable<OutputSchema>;
1452
- }> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never>, {
605
+ }, z.core.$strip>, z.ZodTransform<{
1453
606
  type: "shell";
1454
607
  command: string;
1455
608
  cwd?: string;
@@ -1535,24 +688,14 @@ export declare function toolDetailBranchByName<Name extends string, InputSchema
1535
688
  type: "unknown";
1536
689
  input: unknown;
1537
690
  output: unknown;
1538
- } | undefined, z.baseObjectInputType<{
1539
- name: z.ZodLiteral<Name>;
1540
- input: z.ZodNullable<InputSchema>;
1541
- output: z.ZodNullable<OutputSchema>;
1542
- }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
1543
- export declare function toolDetailBranchByToolName<Name extends string, InputSchema extends z.ZodTypeAny, OutputSchema extends z.ZodTypeAny>(toolName: Name, inputSchema: InputSchema, outputSchema: OutputSchema, mapper: (input: z.infer<InputSchema> | null, output: z.infer<OutputSchema> | null) => ToolCallDetail | undefined): z.ZodEffects<z.ZodObject<{
1544
- toolName: z.ZodLiteral<Name>;
1545
- input: z.ZodNullable<InputSchema>;
1546
- output: z.ZodNullable<OutputSchema>;
1547
- }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1548
- toolName: z.ZodLiteral<Name>;
1549
- input: z.ZodNullable<InputSchema>;
1550
- output: z.ZodNullable<OutputSchema>;
1551
- }>, any> extends infer T ? { [k in keyof T]: T[k]; } : never, z.baseObjectInputType<{
691
+ } | undefined, {
692
+ name: Name;
693
+ } & {} extends infer T ? { [K in keyof T]: T[K]; } : never>>;
694
+ export declare function toolDetailBranchByToolName<Name extends string, InputSchema extends ToolDetailSchema, OutputSchema extends ToolDetailSchema>(toolName: Name, inputSchema: InputSchema, outputSchema: OutputSchema, mapper: (input: z.infer<InputSchema> | null, output: z.infer<OutputSchema> | null) => ToolCallDetail | undefined): z.ZodPipe<z.ZodObject<{
1552
695
  toolName: z.ZodLiteral<Name>;
1553
696
  input: z.ZodNullable<InputSchema>;
1554
697
  output: z.ZodNullable<OutputSchema>;
1555
- }> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never>, {
698
+ }, z.core.$strip>, z.ZodTransform<{
1556
699
  type: "shell";
1557
700
  command: string;
1558
701
  cwd?: string;
@@ -1638,27 +781,15 @@ export declare function toolDetailBranchByToolName<Name extends string, InputSch
1638
781
  type: "unknown";
1639
782
  input: unknown;
1640
783
  output: unknown;
1641
- } | undefined, z.baseObjectInputType<{
1642
- toolName: z.ZodLiteral<Name>;
1643
- input: z.ZodNullable<InputSchema>;
1644
- output: z.ZodNullable<OutputSchema>;
1645
- }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
1646
- export declare function toolDetailBranchByNameWithCwd<Name extends string, InputSchema extends z.ZodTypeAny, OutputSchema extends z.ZodTypeAny>(name: Name, inputSchema: InputSchema, outputSchema: OutputSchema, mapper: (input: z.infer<InputSchema> | null, output: z.infer<OutputSchema> | null, cwd: string | null) => ToolCallDetail | undefined): z.ZodEffects<z.ZodObject<{
1647
- name: z.ZodLiteral<Name>;
1648
- input: z.ZodNullable<InputSchema>;
1649
- output: z.ZodNullable<OutputSchema>;
1650
- cwd: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1651
- }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1652
- name: z.ZodLiteral<Name>;
1653
- input: z.ZodNullable<InputSchema>;
1654
- output: z.ZodNullable<OutputSchema>;
784
+ } | undefined, {
785
+ toolName: Name;
786
+ } & {} extends infer T ? { [K in keyof T]: T[K]; } : never>>;
787
+ export declare function toolDetailBranchByNameWithCwd<Name extends string, InputSchema extends ToolDetailSchema, OutputSchema extends ToolDetailSchema>(name: Name, inputSchema: InputSchema, outputSchema: OutputSchema, mapper: (input: z.infer<InputSchema> | null, output: z.infer<OutputSchema> | null, cwd: string | null) => ToolCallDetail | undefined): z.ZodPipe<z.ZodObject<{
1655
788
  cwd: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1656
- }>, any> extends infer T ? { [k in keyof T]: T[k]; } : never, z.baseObjectInputType<{
1657
789
  name: z.ZodLiteral<Name>;
1658
790
  input: z.ZodNullable<InputSchema>;
1659
791
  output: z.ZodNullable<OutputSchema>;
1660
- cwd: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1661
- }> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never>, {
792
+ }, z.core.$strip>, z.ZodTransform<{
1662
793
  type: "shell";
1663
794
  command: string;
1664
795
  cwd?: string;
@@ -1744,11 +875,10 @@ export declare function toolDetailBranchByNameWithCwd<Name extends string, Input
1744
875
  type: "unknown";
1745
876
  input: unknown;
1746
877
  output: unknown;
1747
- } | undefined, z.baseObjectInputType<{
1748
- name: z.ZodLiteral<Name>;
1749
- input: z.ZodNullable<InputSchema>;
1750
- output: z.ZodNullable<OutputSchema>;
1751
- cwd: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1752
- }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
878
+ } | undefined, {
879
+ name: Name;
880
+ } & {
881
+ cwd?: string | null | undefined;
882
+ } extends infer T ? { [K in keyof T]: T[K]; } : never>>;
1753
883
  export {};
1754
884
  //# sourceMappingURL=tool-call-detail-primitives.d.ts.map