@denizokcu/haze 0.7.0 → 0.9.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.
Files changed (96) hide show
  1. package/CHANGELOG.md +35 -9
  2. package/README.md +37 -35
  3. package/dist/cli/chat/inputSuggestions.js +2 -2
  4. package/dist/cli/chat/sessionRecorder.d.ts +3 -0
  5. package/dist/cli/chat/sessionRecorder.js +23 -8
  6. package/dist/cli/commands/chat.js +136 -124
  7. package/dist/cli/commands/chatModes.js +1 -1
  8. package/dist/cli/commands/commandHelp.js +2 -2
  9. package/dist/cli/commands/commands.d.ts +1 -1
  10. package/dist/cli/commands/commands.js +1 -1
  11. package/dist/cli/commands/formatters.d.ts +6 -0
  12. package/dist/cli/commands/formatters.js +41 -3
  13. package/dist/cli/commands/logsCommand.js +7 -21
  14. package/dist/cli/commands/mcpWizard.js +24 -2
  15. package/dist/cli/commands/providerWizard.js +18 -5
  16. package/dist/cli/commands/runCommand.js +7 -15
  17. package/dist/cli/commands/settingsSummary.js +3 -1
  18. package/dist/cli/commands/streaming/turnOutcome.d.ts +10 -0
  19. package/dist/cli/commands/streaming/turnOutcome.js +13 -0
  20. package/dist/cli/commands/streaming.js +99 -51
  21. package/dist/cli/commands/wizardPrompts.js +1 -1
  22. package/dist/cli/commands/wizardSuggestions.js +3 -2
  23. package/dist/cli/commands/wizardTransition.d.ts +33 -0
  24. package/dist/cli/commands/wizardTransition.js +44 -0
  25. package/dist/config/contextFiles.js +6 -3
  26. package/dist/config/endpointSecurity.d.ts +2 -0
  27. package/dist/config/endpointSecurity.js +28 -0
  28. package/dist/config/inputHistory.js +4 -2
  29. package/dist/config/privateStorage.d.ts +6 -0
  30. package/dist/config/privateStorage.js +61 -0
  31. package/dist/config/providers.js +5 -9
  32. package/dist/config/settings.d.ts +1 -0
  33. package/dist/config/settings.js +55 -3
  34. package/dist/config/updateCheck.js +4 -2
  35. package/dist/core/agent/compaction.js +2 -2
  36. package/dist/core/agent/errors.js +1 -1
  37. package/dist/core/agent/requestAssembly.d.ts +1 -0
  38. package/dist/core/agent/requestAssembly.js +13 -0
  39. package/dist/core/agent/toolOutputStore.d.ts +3 -0
  40. package/dist/core/agent/toolOutputStore.js +32 -11
  41. package/dist/core/bashOutput/registry.js +11 -9
  42. package/dist/core/goal/completionPolicy.d.ts +0 -28
  43. package/dist/core/goal/completionPolicy.js +1 -89
  44. package/dist/core/io/boundedRead.d.ts +15 -0
  45. package/dist/core/io/boundedRead.js +97 -0
  46. package/dist/core/limits/byteBudgets.d.ts +13 -0
  47. package/dist/core/limits/byteBudgets.js +13 -0
  48. package/dist/core/log/llmLog.d.ts +10 -0
  49. package/dist/core/log/llmLog.js +59 -13
  50. package/dist/core/persistence/orderedFileWriter.d.ts +11 -0
  51. package/dist/core/persistence/orderedFileWriter.js +29 -0
  52. package/dist/core/process/runBoundedProcess.d.ts +27 -0
  53. package/dist/core/process/runBoundedProcess.js +80 -0
  54. package/dist/core/session/sessionStore.js +48 -25
  55. package/dist/core/subagent/subagentRunner.d.ts +252 -9
  56. package/dist/core/subagent/subagentRunner.js +14 -19
  57. package/dist/core/toolOutput/reduction.d.ts +2 -0
  58. package/dist/core/toolOutput/reduction.js +12 -0
  59. package/dist/core/validation/outputParser.js +5 -3
  60. package/dist/llm/client.d.ts +2 -2
  61. package/dist/llm/client.js +19 -3
  62. package/dist/llm/hazeTools.d.ts +8103 -364
  63. package/dist/llm/hazeTools.js +43 -33
  64. package/dist/llm/initPrompt.js +1 -1
  65. package/dist/llm/lsp.d.ts +21 -3
  66. package/dist/llm/lsp.js +65 -14
  67. package/dist/llm/lspTools.d.ts +2358 -101
  68. package/dist/llm/mcp.d.ts +1 -1
  69. package/dist/llm/mcp.js +65 -16
  70. package/dist/llm/requestContext.d.ts +1 -0
  71. package/dist/llm/requestContext.js +6 -3
  72. package/dist/llm/systemPrompt.js +2 -2
  73. package/dist/llm/toolResultTypes.d.ts +1 -1
  74. package/dist/llm/tools/bashTool.d.ts +603 -5
  75. package/dist/llm/tools/bashTool.js +23 -60
  76. package/dist/llm/tools/fetchTool.d.ts +1201 -65
  77. package/dist/llm/tools/fetchTool.js +2 -1
  78. package/dist/llm/tools/grepRunner.d.ts +15 -0
  79. package/dist/llm/tools/grepRunner.js +85 -0
  80. package/dist/llm/tools/storedOutputTool.d.ts +351 -10
  81. package/dist/llm/tools/taskTool.d.ts +629 -28
  82. package/dist/llm/tools/toolContext.d.ts +7 -2
  83. package/dist/llm/tools/toolContext.js +11 -2
  84. package/dist/llm/webFetch.js +31 -21
  85. package/dist/skills/SkillLoader.js +17 -5
  86. package/dist/skills/SkillRegistry.js +19 -6
  87. package/dist/skills/builder/SkillBuilder.js +7 -7
  88. package/dist/skills/types.d.ts +5 -0
  89. package/dist/ui/components/TextInput.d.ts +7 -0
  90. package/dist/ui/components/TextInput.js +10 -0
  91. package/dist/utils/modelName.d.ts +2 -0
  92. package/dist/utils/modelName.js +15 -0
  93. package/dist/utils/path.d.ts +2 -0
  94. package/dist/utils/path.js +9 -4
  95. package/examples/skills/files/SKILL.md +1 -1
  96. package/package.json +14 -14
@@ -4,10 +4,11 @@ import { reductionMetrics } from '../../core/toolOutput/reduction.js';
4
4
  import { fetchUrlContent, BlockedUrlError } from '../webFetch.js';
5
5
  import { structuredToolFailure } from './failures.js';
6
6
  import { compactStoredOutput } from './outputCap.js';
7
- import { runDedupedTool } from './toolContext.js';
7
+ import { hazeToolContextSchema, runDedupedTool } from './toolContext.js';
8
8
  const MAX_OUTPUT_CHARS = 50_000;
9
9
  export const fetchTool = tool({
10
10
  description: 'Fetch a public http(s) URL and return readable content. Use for current docs, API references, error lookups, or CI logs. Private/loopback/metadata hosts are blocked.',
11
+ contextSchema: hazeToolContextSchema,
11
12
  inputSchema: z.object({
12
13
  url: z.string().url().describe('Absolute http(s) URL to fetch'),
13
14
  format: z.enum(['auto', 'text']).default('auto').describe('auto = markdown for HTML, pretty for JSON, passthrough for text; text = raw text only'),
@@ -0,0 +1,15 @@
1
+ export declare function runRipgrepBounded(input: {
2
+ executable: string;
3
+ args: string[];
4
+ cwd: string;
5
+ maxMatches: number;
6
+ timeoutMs?: number;
7
+ signal?: AbortSignal;
8
+ }): Promise<{
9
+ stdout: string;
10
+ stderr: string;
11
+ code: number | null;
12
+ capped: boolean;
13
+ timedOut: boolean;
14
+ aborted: boolean;
15
+ }>;
@@ -0,0 +1,85 @@
1
+ import { spawn } from 'node:child_process';
2
+ import { StringDecoder } from 'node:string_decoder';
3
+ import { GREP_STREAM_BYTES, PROCESS_STDERR_BYTES, TEXT_LINE_BYTES } from '../../core/limits/byteBudgets.js';
4
+ export async function runRipgrepBounded(input) {
5
+ if (input.signal?.aborted)
6
+ return { stdout: '', stderr: '', code: null, capped: false, timedOut: false, aborted: true };
7
+ const child = spawn(input.executable, input.args, { cwd: input.cwd, stdio: ['ignore', 'pipe', 'pipe'] });
8
+ const decoder = new StringDecoder('utf8');
9
+ const stderrDecoder = new StringDecoder('utf8');
10
+ let pending = '';
11
+ const lines = [];
12
+ let stderr = '';
13
+ let retainedBytes = 0;
14
+ let stderrBytes = 0;
15
+ let matches = 0;
16
+ let capped = false;
17
+ let timedOut = false;
18
+ let aborted = false;
19
+ let protocolError;
20
+ let forceTimer;
21
+ const stop = () => {
22
+ if (!child.killed)
23
+ child.kill('SIGTERM');
24
+ forceTimer ??= setTimeout(() => child.kill('SIGKILL'), 500);
25
+ forceTimer.unref?.();
26
+ };
27
+ const timer = setTimeout(() => { timedOut = true; stop(); }, input.timeoutMs ?? 30_000);
28
+ const abort = () => { aborted = true; stop(); };
29
+ input.signal?.addEventListener('abort', abort, { once: true });
30
+ child.stdout.on('data', (chunk) => {
31
+ pending += decoder.write(chunk);
32
+ if (Buffer.byteLength(pending, 'utf8') > TEXT_LINE_BYTES) {
33
+ protocolError = `ripgrep JSON line exceeds ${TEXT_LINE_BYTES} bytes`;
34
+ stop();
35
+ return;
36
+ }
37
+ const parts = pending.split('\n');
38
+ pending = parts.pop() ?? '';
39
+ for (const line of parts) {
40
+ if (capped)
41
+ continue;
42
+ const lineBytes = Buffer.byteLength(line, 'utf8') + 1;
43
+ if (retainedBytes + lineBytes > GREP_STREAM_BYTES) {
44
+ capped = true;
45
+ stop();
46
+ break;
47
+ }
48
+ lines.push(line);
49
+ retainedBytes += lineBytes;
50
+ try {
51
+ if (JSON.parse(line).type === 'match')
52
+ matches++;
53
+ }
54
+ catch { /* parser reports malformed data later */ }
55
+ if (matches > input.maxMatches) {
56
+ capped = true;
57
+ stop();
58
+ }
59
+ }
60
+ });
61
+ child.stderr.on('data', (chunk) => {
62
+ const remaining = PROCESS_STDERR_BYTES - stderrBytes;
63
+ if (remaining <= 0)
64
+ return;
65
+ const kept = chunk.subarray(0, remaining);
66
+ stderrBytes += kept.length;
67
+ stderr += stderrDecoder.write(kept);
68
+ });
69
+ return await new Promise((resolve, reject) => {
70
+ child.once('error', reject);
71
+ child.once('close', code => {
72
+ clearTimeout(timer);
73
+ if (forceTimer)
74
+ clearTimeout(forceTimer);
75
+ input.signal?.removeEventListener('abort', abort);
76
+ const tail = pending + decoder.end();
77
+ if (tail && !capped)
78
+ lines.push(tail);
79
+ stderr += stderrDecoder.end();
80
+ if (protocolError)
81
+ stderr = `${stderr}${stderr ? '\n' : ''}${protocolError}`;
82
+ resolve({ stdout: lines.join('\n'), stderr, code, capped, timedOut, aborted });
83
+ });
84
+ });
85
+ }
@@ -1,10 +1,351 @@
1
- export declare const readToolOutputTool: import("ai").Tool<{
2
- handle: string;
3
- offset: number;
4
- limit: number;
5
- contextLines: number;
6
- query?: string | undefined;
7
- }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
8
- ok: boolean;
9
- error: string;
10
- }>;
1
+ export declare const readToolOutputTool: ({
2
+ title?: string;
3
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
4
+ metadata?: import("@ai-sdk/provider").JSONObject;
5
+ inputSchema: import("ai").FlexibleSchema<{
6
+ handle: string;
7
+ offset: number;
8
+ limit: number;
9
+ contextLines: number;
10
+ query?: string | undefined;
11
+ }>;
12
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
13
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
14
+ handle: string;
15
+ offset: number;
16
+ limit: number;
17
+ contextLines: number;
18
+ query?: string | undefined;
19
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
20
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
21
+ onInputDelta?: ((options: {
22
+ inputTextDelta: string;
23
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
24
+ onInputAvailable?: ((options: {
25
+ input: {
26
+ handle: string;
27
+ offset: number;
28
+ limit: number;
29
+ contextLines: number;
30
+ query?: string | undefined;
31
+ };
32
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
33
+ toModelOutput?: ((options: {
34
+ toolCallId: string;
35
+ input: {
36
+ handle: string;
37
+ offset: number;
38
+ limit: number;
39
+ contextLines: number;
40
+ query?: string | undefined;
41
+ };
42
+ output: NoInfer<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
43
+ ok: boolean;
44
+ error: string;
45
+ }>;
46
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
47
+ } & {
48
+ outputSchema?: import("ai").FlexibleSchema<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
49
+ ok: boolean;
50
+ error: string;
51
+ }> | undefined;
52
+ execute: import("ai").ToolExecuteFunction<{
53
+ handle: string;
54
+ offset: number;
55
+ limit: number;
56
+ contextLines: number;
57
+ query?: string | undefined;
58
+ }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
59
+ ok: boolean;
60
+ error: string;
61
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
62
+ } & {
63
+ description?: string | ((options: {
64
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
65
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
66
+ }) => string) | undefined;
67
+ strict?: boolean;
68
+ inputExamples?: {
69
+ input: NoInfer<{
70
+ handle: string;
71
+ offset: number;
72
+ limit: number;
73
+ contextLines: number;
74
+ query?: string | undefined;
75
+ }>;
76
+ }[] | undefined;
77
+ id?: never;
78
+ isProviderExecuted?: never;
79
+ args?: never;
80
+ supportsDeferredResults?: never;
81
+ } & {
82
+ type?: undefined | "function";
83
+ } & {
84
+ execute: import("ai").ToolExecuteFunction<{
85
+ handle: string;
86
+ offset: number;
87
+ limit: number;
88
+ contextLines: number;
89
+ query?: string | undefined;
90
+ }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
91
+ ok: boolean;
92
+ error: string;
93
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
94
+ }) | ({
95
+ title?: string;
96
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
97
+ metadata?: import("@ai-sdk/provider").JSONObject;
98
+ inputSchema: import("ai").FlexibleSchema<{
99
+ handle: string;
100
+ offset: number;
101
+ limit: number;
102
+ contextLines: number;
103
+ query?: string | undefined;
104
+ }>;
105
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
106
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
107
+ handle: string;
108
+ offset: number;
109
+ limit: number;
110
+ contextLines: number;
111
+ query?: string | undefined;
112
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
113
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
114
+ onInputDelta?: ((options: {
115
+ inputTextDelta: string;
116
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
117
+ onInputAvailable?: ((options: {
118
+ input: {
119
+ handle: string;
120
+ offset: number;
121
+ limit: number;
122
+ contextLines: number;
123
+ query?: string | undefined;
124
+ };
125
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
126
+ toModelOutput?: ((options: {
127
+ toolCallId: string;
128
+ input: {
129
+ handle: string;
130
+ offset: number;
131
+ limit: number;
132
+ contextLines: number;
133
+ query?: string | undefined;
134
+ };
135
+ output: NoInfer<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
136
+ ok: boolean;
137
+ error: string;
138
+ }>;
139
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
140
+ } & {
141
+ outputSchema?: import("ai").FlexibleSchema<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
142
+ ok: boolean;
143
+ error: string;
144
+ }> | undefined;
145
+ execute: import("ai").ToolExecuteFunction<{
146
+ handle: string;
147
+ offset: number;
148
+ limit: number;
149
+ contextLines: number;
150
+ query?: string | undefined;
151
+ }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
152
+ ok: boolean;
153
+ error: string;
154
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
155
+ } & {
156
+ description?: string | ((options: {
157
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
158
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
159
+ }) => string) | undefined;
160
+ strict?: boolean;
161
+ inputExamples?: {
162
+ input: NoInfer<{
163
+ handle: string;
164
+ offset: number;
165
+ limit: number;
166
+ contextLines: number;
167
+ query?: string | undefined;
168
+ }>;
169
+ }[] | undefined;
170
+ id?: never;
171
+ isProviderExecuted?: never;
172
+ args?: never;
173
+ supportsDeferredResults?: never;
174
+ } & {
175
+ type: "dynamic";
176
+ } & {
177
+ execute: import("ai").ToolExecuteFunction<{
178
+ handle: string;
179
+ offset: number;
180
+ limit: number;
181
+ contextLines: number;
182
+ query?: string | undefined;
183
+ }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
184
+ ok: boolean;
185
+ error: string;
186
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
187
+ }) | ({
188
+ title?: string;
189
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
190
+ metadata?: import("@ai-sdk/provider").JSONObject;
191
+ inputSchema: import("ai").FlexibleSchema<{
192
+ handle: string;
193
+ offset: number;
194
+ limit: number;
195
+ contextLines: number;
196
+ query?: string | undefined;
197
+ }>;
198
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
199
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
200
+ handle: string;
201
+ offset: number;
202
+ limit: number;
203
+ contextLines: number;
204
+ query?: string | undefined;
205
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
206
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
207
+ onInputDelta?: ((options: {
208
+ inputTextDelta: string;
209
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
210
+ onInputAvailable?: ((options: {
211
+ input: {
212
+ handle: string;
213
+ offset: number;
214
+ limit: number;
215
+ contextLines: number;
216
+ query?: string | undefined;
217
+ };
218
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
219
+ toModelOutput?: ((options: {
220
+ toolCallId: string;
221
+ input: {
222
+ handle: string;
223
+ offset: number;
224
+ limit: number;
225
+ contextLines: number;
226
+ query?: string | undefined;
227
+ };
228
+ output: NoInfer<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
229
+ ok: boolean;
230
+ error: string;
231
+ }>;
232
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
233
+ } & {
234
+ outputSchema?: import("ai").FlexibleSchema<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
235
+ ok: boolean;
236
+ error: string;
237
+ }> | undefined;
238
+ execute: import("ai").ToolExecuteFunction<{
239
+ handle: string;
240
+ offset: number;
241
+ limit: number;
242
+ contextLines: number;
243
+ query?: string | undefined;
244
+ }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
245
+ ok: boolean;
246
+ error: string;
247
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
248
+ } & {
249
+ type: "provider";
250
+ id: `${string}.${string}`;
251
+ args: Record<string, unknown>;
252
+ description?: never;
253
+ strict?: never;
254
+ inputExamples?: never;
255
+ } & {
256
+ isProviderExecuted: false;
257
+ supportsDeferredResults?: never;
258
+ } & {
259
+ execute: import("ai").ToolExecuteFunction<{
260
+ handle: string;
261
+ offset: number;
262
+ limit: number;
263
+ contextLines: number;
264
+ query?: string | undefined;
265
+ }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
266
+ ok: boolean;
267
+ error: string;
268
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
269
+ }) | ({
270
+ title?: string;
271
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
272
+ metadata?: import("@ai-sdk/provider").JSONObject;
273
+ inputSchema: import("ai").FlexibleSchema<{
274
+ handle: string;
275
+ offset: number;
276
+ limit: number;
277
+ contextLines: number;
278
+ query?: string | undefined;
279
+ }>;
280
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
281
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
282
+ handle: string;
283
+ offset: number;
284
+ limit: number;
285
+ contextLines: number;
286
+ query?: string | undefined;
287
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
288
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
289
+ onInputDelta?: ((options: {
290
+ inputTextDelta: string;
291
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
292
+ onInputAvailable?: ((options: {
293
+ input: {
294
+ handle: string;
295
+ offset: number;
296
+ limit: number;
297
+ contextLines: number;
298
+ query?: string | undefined;
299
+ };
300
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
301
+ toModelOutput?: ((options: {
302
+ toolCallId: string;
303
+ input: {
304
+ handle: string;
305
+ offset: number;
306
+ limit: number;
307
+ contextLines: number;
308
+ query?: string | undefined;
309
+ };
310
+ output: NoInfer<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
311
+ ok: boolean;
312
+ error: string;
313
+ }>;
314
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
315
+ } & {
316
+ outputSchema?: import("ai").FlexibleSchema<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
317
+ ok: boolean;
318
+ error: string;
319
+ }> | undefined;
320
+ execute: import("ai").ToolExecuteFunction<{
321
+ handle: string;
322
+ offset: number;
323
+ limit: number;
324
+ contextLines: number;
325
+ query?: string | undefined;
326
+ }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
327
+ ok: boolean;
328
+ error: string;
329
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
330
+ } & {
331
+ type: "provider";
332
+ id: `${string}.${string}`;
333
+ args: Record<string, unknown>;
334
+ description?: never;
335
+ strict?: never;
336
+ inputExamples?: never;
337
+ } & {
338
+ isProviderExecuted: true;
339
+ supportsDeferredResults?: boolean;
340
+ } & {
341
+ execute: import("ai").ToolExecuteFunction<{
342
+ handle: string;
343
+ offset: number;
344
+ limit: number;
345
+ contextLines: number;
346
+ query?: string | undefined;
347
+ }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
348
+ ok: boolean;
349
+ error: string;
350
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
351
+ });