@denizokcu/haze 1.7.11 → 1.8.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 (234) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +142 -102
  3. package/SECURITY.md +1 -1
  4. package/assets/graph-grammars/NOTICE.md +21 -0
  5. package/assets/graph-grammars/tree-sitter-javascript.wasm +0 -0
  6. package/assets/graph-grammars/tree-sitter-tsx.wasm +0 -0
  7. package/assets/graph-grammars/tree-sitter-typescript.wasm +0 -0
  8. package/assets/graph-grammars/web-tree-sitter.cjs +4116 -0
  9. package/assets/graph-grammars/web-tree-sitter.cjs.map +7 -0
  10. package/assets/graph-grammars/web-tree-sitter.js +4056 -0
  11. package/assets/graph-grammars/web-tree-sitter.js.map +7 -0
  12. package/assets/graph-grammars/web-tree-sitter.wasm +0 -0
  13. package/assets/graph-grammars/web-tree-sitter.wasm.map +55 -0
  14. package/bin/haze.js +47 -19
  15. package/dist/buildInfo.json +3 -3
  16. package/dist/cli/chat/BusyBar.d.ts +1 -2
  17. package/dist/cli/chat/ChatHeader.d.ts +6 -0
  18. package/dist/cli/chat/ChatHeader.js +11 -0
  19. package/dist/cli/chat/ChatScreen.d.ts +16 -0
  20. package/dist/cli/chat/ChatScreen.js +399 -0
  21. package/dist/cli/chat/ChatScreenView.d.ts +68 -0
  22. package/dist/cli/chat/ChatScreenView.js +47 -0
  23. package/dist/cli/chat/LiveTail.d.ts +11 -0
  24. package/dist/cli/chat/LiveTail.js +26 -0
  25. package/dist/cli/chat/TaskBar.d.ts +3 -2
  26. package/dist/cli/chat/TaskBar.js +4 -0
  27. package/dist/cli/chat/agentTurnRunner.d.ts +12 -0
  28. package/dist/cli/chat/agentTurnRunner.js +177 -0
  29. package/dist/cli/chat/busyIndicator.js +9 -5
  30. package/dist/cli/chat/chatMetrics.d.ts +7 -0
  31. package/dist/cli/chat/chatMetrics.js +15 -1
  32. package/dist/cli/chat/chatViewModel.d.ts +85 -0
  33. package/dist/cli/chat/chatViewModel.js +66 -0
  34. package/dist/cli/chat/fileMentionSuggestions.d.ts +0 -14
  35. package/dist/cli/chat/fileMentionSuggestions.js +4 -21
  36. package/dist/cli/chat/inputSuggestions.js +1 -0
  37. package/dist/cli/chat/liveTheme.d.ts +11 -0
  38. package/dist/cli/chat/liveTheme.js +26 -0
  39. package/dist/cli/chat/messageFinalize.d.ts +4 -0
  40. package/dist/cli/chat/messageFinalize.js +8 -0
  41. package/dist/cli/chat/messages.js +1 -1
  42. package/dist/cli/chat/pickerOpeners.d.ts +23 -0
  43. package/dist/cli/chat/pickerOpeners.js +36 -0
  44. package/dist/cli/chat/promptSessionState.d.ts +11 -0
  45. package/dist/cli/chat/promptSessionState.js +39 -0
  46. package/dist/cli/chat/renderMetrics.d.ts +8 -0
  47. package/dist/cli/chat/renderMetrics.js +14 -0
  48. package/dist/cli/chat/resizeGuard.d.ts +11 -0
  49. package/dist/cli/chat/resizeGuard.js +25 -0
  50. package/dist/cli/chat/screenDeps.d.ts +116 -0
  51. package/dist/cli/chat/screenDeps.js +1 -0
  52. package/dist/cli/chat/sessionLifecycle.d.ts +2 -0
  53. package/dist/cli/chat/sessionLifecycle.js +6 -2
  54. package/dist/cli/chat/sessionRecorder.js +4 -1
  55. package/dist/cli/chat/settingsSelection.d.ts +33 -0
  56. package/dist/cli/chat/settingsSelection.js +46 -0
  57. package/dist/cli/chat/skillNotices.d.ts +18 -0
  58. package/dist/cli/chat/skillNotices.js +26 -0
  59. package/dist/cli/chat/startupInfo.js +1 -1
  60. package/dist/cli/chat/startupSequence.d.ts +2 -0
  61. package/dist/cli/chat/startupSequence.js +6 -0
  62. package/dist/cli/chat/submitPipeline.d.ts +8 -0
  63. package/dist/cli/chat/submitPipeline.js +141 -0
  64. package/dist/cli/chat/terminalControl.js +1 -1
  65. package/dist/cli/chat/toolSummaries.d.ts +29 -0
  66. package/dist/cli/chat/toolSummaries.js +268 -0
  67. package/dist/cli/chat/turnState.d.ts +8 -0
  68. package/dist/cli/chat/turnState.js +1 -0
  69. package/dist/cli/chat/userCommandFlow.d.ts +21 -0
  70. package/dist/cli/chat/userCommandFlow.js +66 -0
  71. package/dist/cli/chat/userCommandRunner.d.ts +14 -0
  72. package/dist/cli/chat/userCommandRunner.js +56 -0
  73. package/dist/cli/chat/wizard/providerHandlers.js +19 -2
  74. package/dist/cli/chat/wizardTrail.d.ts +22 -0
  75. package/dist/cli/chat/wizardTrail.js +55 -0
  76. package/dist/cli/commands/chat.d.ts +1 -13
  77. package/dist/cli/commands/chat.js +10 -795
  78. package/dist/cli/commands/commandHelp.js +11 -6
  79. package/dist/cli/commands/commandSuggest.d.ts +2 -0
  80. package/dist/cli/commands/commandSuggest.js +35 -0
  81. package/dist/cli/commands/commands.js +12 -3
  82. package/dist/cli/commands/formatters.d.ts +1 -23
  83. package/dist/cli/commands/formatters.js +3 -224
  84. package/dist/cli/commands/graphCommand.d.ts +2 -0
  85. package/dist/cli/commands/graphCommand.js +60 -0
  86. package/dist/cli/commands/initCommand.js +14 -0
  87. package/dist/cli/commands/modelCommand.js +11 -7
  88. package/dist/cli/commands/reasoningCommand.js +3 -3
  89. package/dist/cli/commands/runCommand.js +6 -2
  90. package/dist/cli/commands/streaming/agentAttempt.js +11 -1
  91. package/dist/cli/commands/streaming/attemptLifecycle.js +1 -0
  92. package/dist/cli/commands/streaming/attemptOutcome.js +8 -3
  93. package/dist/cli/commands/streaming/attemptSetup.d.ts +4 -0
  94. package/dist/cli/commands/streaming/attemptSetup.js +34 -5
  95. package/dist/cli/commands/streaming/goalCheckpoint.d.ts +1 -1
  96. package/dist/cli/commands/streaming/goalSupervisor.js +5 -3
  97. package/dist/cli/commands/streaming/prepareStep.js +1 -0
  98. package/dist/cli/commands/streaming/stepProjection.d.ts +59 -0
  99. package/dist/cli/commands/streaming/stepProjection.js +54 -0
  100. package/dist/cli/commands/streaming/streamLoop.d.ts +2 -0
  101. package/dist/cli/commands/streaming/streamLoop.js +34 -23
  102. package/dist/cli/commands/streaming/toolGroupRenderer.js +1 -1
  103. package/dist/cli/commands/streaming/toolPartHandlers.js +8 -2
  104. package/dist/cli/commands/streaming.d.ts +3 -1
  105. package/dist/cli/commands/streaming.js +5 -0
  106. package/dist/cli/commands/wizardFlow.d.ts +2 -0
  107. package/dist/cli/commands/wizardFlow.js +3 -0
  108. package/dist/cli/index.js +8 -4
  109. package/dist/cli/terminalTitle.js +9 -3
  110. package/dist/config/contextFiles.d.ts +2 -5
  111. package/dist/config/contextFiles.js +1 -1
  112. package/dist/config/inputHistory.js +2 -2
  113. package/dist/config/providerAuth.js +2 -2
  114. package/dist/config/providerModelFacts.js +5 -0
  115. package/dist/config/providerPresets.js +1 -1
  116. package/dist/config/settings.d.ts +7 -0
  117. package/dist/config/settings.js +9 -2
  118. package/dist/config/updateCheck.js +2 -2
  119. package/dist/core/agent/compaction.d.ts +1 -0
  120. package/dist/core/agent/compaction.js +3 -0
  121. package/dist/core/agent/completionController.d.ts +1 -1
  122. package/dist/core/agent/contextBudget.d.ts +1 -1
  123. package/dist/core/agent/goalPolicy.js +8 -2
  124. package/dist/core/agent/overflow.js +5 -0
  125. package/dist/core/agent/toolCapabilities.js +14 -0
  126. package/dist/core/agent/userCommands.d.ts +53 -0
  127. package/dist/core/agent/userCommands.js +116 -0
  128. package/dist/core/agent/workState.d.ts +3 -1
  129. package/dist/core/agent/workState.js +57 -26
  130. package/dist/core/contextFileTypes.d.ts +12 -0
  131. package/dist/core/contextFileTypes.js +1 -0
  132. package/dist/core/graph/analyze.d.ts +61 -0
  133. package/dist/core/graph/analyze.js +274 -0
  134. package/dist/core/graph/buildGraph.d.ts +44 -0
  135. package/dist/core/graph/buildGraph.js +290 -0
  136. package/dist/core/graph/digest.d.ts +2 -0
  137. package/dist/core/graph/digest.js +40 -0
  138. package/dist/core/graph/extract.d.ts +58 -0
  139. package/dist/core/graph/extract.js +394 -0
  140. package/dist/core/graph/model.d.ts +63 -0
  141. package/dist/core/graph/model.js +96 -0
  142. package/dist/core/graph/query.d.ts +69 -0
  143. package/dist/core/graph/query.js +391 -0
  144. package/dist/core/graph/store.d.ts +64 -0
  145. package/dist/core/graph/store.js +171 -0
  146. package/dist/core/limits.d.ts +2 -0
  147. package/dist/core/limits.js +2 -0
  148. package/dist/core/log/llmLog.js +2 -2
  149. package/dist/{config → core/persistence}/privateStorage.js +1 -1
  150. package/dist/core/process/runBoundedProcess.d.ts +7 -4
  151. package/dist/core/process/runBoundedProcess.js +22 -11
  152. package/dist/core/safety/redaction.d.ts +2 -0
  153. package/dist/core/safety/redaction.js +26 -5
  154. package/dist/core/safety/secretPaths.js +12 -3
  155. package/dist/core/safety/untrustedEnvelopes.d.ts +6 -0
  156. package/dist/core/safety/untrustedEnvelopes.js +17 -2
  157. package/dist/core/safety/urlGuard.js +2 -0
  158. package/dist/core/session/sessionStore.d.ts +8 -1
  159. package/dist/core/session/sessionStore.js +15 -4
  160. package/dist/core/shellOutput/reducers/validation.d.ts +1 -1
  161. package/dist/core/shellOutput/types.d.ts +1 -1
  162. package/dist/core/subagent/executionProfiles.js +4 -4
  163. package/dist/core/tasks/taskStorage.js +11 -1
  164. package/dist/{llm → core}/toolResultTypes.d.ts +1 -1
  165. package/dist/core/validation/outputParser.d.ts +1 -1
  166. package/dist/core/validation/outputParser.js +16 -8
  167. package/dist/llm/hazeTools.d.ts +2 -12426
  168. package/dist/llm/hazeTools.js +4 -0
  169. package/dist/llm/lsp/pool.js +1 -1
  170. package/dist/llm/lsp/workspaceEdit.d.ts +1 -1
  171. package/dist/llm/lspTools.d.ts +3 -12622
  172. package/dist/llm/requestContext.d.ts +6 -0
  173. package/dist/llm/requestContext.js +28 -7
  174. package/dist/llm/subagentRunner.d.ts +2 -308
  175. package/dist/llm/systemPrompt.js +17 -7
  176. package/dist/llm/toolGroups.d.ts +534 -0
  177. package/dist/llm/toolGroups.js +57 -0
  178. package/dist/llm/tools/editMatch.d.ts +1 -1
  179. package/dist/llm/tools/failures.d.ts +1 -1
  180. package/dist/llm/tools/fetchTool.d.ts +2 -1221
  181. package/dist/llm/tools/fileToolShared.d.ts +1 -1
  182. package/dist/llm/tools/fileToolShared.js +1 -1
  183. package/dist/llm/tools/fileTools.d.ts +2 -7768
  184. package/dist/llm/tools/fileTools.js +1 -1
  185. package/dist/llm/tools/gitTools.d.ts +12 -0
  186. package/dist/llm/tools/gitTools.js +527 -0
  187. package/dist/llm/tools/graphAdvisory.d.ts +22 -0
  188. package/dist/llm/tools/graphAdvisory.js +68 -0
  189. package/dist/llm/tools/graphTools.d.ts +13 -0
  190. package/dist/llm/tools/graphTools.js +195 -0
  191. package/dist/llm/tools/processTool.d.ts +2 -1081
  192. package/dist/llm/tools/readRecovery.d.ts +1 -1
  193. package/dist/llm/tools/replaceInFiles.d.ts +1 -1
  194. package/dist/llm/tools/replaceInFiles.js +1 -1
  195. package/dist/llm/tools/shellTool.d.ts +2 -1513
  196. package/dist/llm/tools/storedOutputTool.d.ts +2 -355
  197. package/dist/llm/tools/taskTool.d.ts +2 -489
  198. package/dist/llm/tools/taskTool.js +4 -1
  199. package/dist/llm/tools/toolContext.js +29 -11
  200. package/dist/llm/tools/toolContextState.d.ts +4 -1
  201. package/dist/llm/tools/toolContextState.js +2 -1
  202. package/dist/llm/tools/workspaceFile.d.ts +2 -2
  203. package/dist/llm/tools/workspaceFile.js +10 -5
  204. package/dist/skills/SkillRegistry.js +1 -1
  205. package/dist/skills/builder/SkillBuilder.js +1 -1
  206. package/dist/skills/plugins/installer.js +1 -1
  207. package/dist/skills/plugins/runtime.js +1 -1
  208. package/dist/skills/skillTools.js +4 -1
  209. package/dist/ui/components/MarkdownText.d.ts +14 -0
  210. package/dist/ui/components/MarkdownText.js +77 -12
  211. package/dist/ui/components/NativeIndicators.js +5 -1
  212. package/dist/ui/components/StreamingMarkdownText.d.ts +3 -1
  213. package/dist/ui/components/StreamingMarkdownText.js +39 -11
  214. package/dist/ui/components/TextInput.d.ts +1 -2
  215. package/dist/ui/components/TextInput.js +79 -9
  216. package/dist/ui/components/WizardChoices.d.ts +1 -2
  217. package/dist/ui/components/useInputSuggestions.d.ts +1 -1
  218. package/dist/ui/components/useInputSuggestions.js +1 -1
  219. package/dist/ui/mentionDetection.d.ts +20 -0
  220. package/dist/ui/mentionDetection.js +24 -0
  221. package/dist/ui/terminalColors.d.ts +4 -4
  222. package/dist/ui/terminalColors.js +23 -6
  223. package/dist/ui/terminalSanitize.js +8 -3
  224. package/dist/ui/textGeometry.d.ts +2 -0
  225. package/dist/ui/textGeometry.js +6 -0
  226. package/dist/ui/themes/registry.js +33 -33
  227. package/dist/utils/openPath.js +7 -0
  228. package/package.json +22 -19
  229. /package/dist/{llm/tools → core/ignore}/gitIgnore.d.ts +0 -0
  230. /package/dist/{llm/tools → core/ignore}/gitIgnore.js +0 -0
  231. /package/dist/{config → core}/paths.d.ts +0 -0
  232. /package/dist/{config → core}/paths.js +0 -0
  233. /package/dist/{config → core/persistence}/privateStorage.d.ts +0 -0
  234. /package/dist/{llm → core}/toolResultTypes.js +0 -0
@@ -1,355 +1,2 @@
1
- export declare const readToolOutputTool: ({
2
- deferLoading?: boolean;
3
- title?: string;
4
- providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
5
- metadata?: import("@ai-sdk/provider").JSONObject;
6
- inputSchema: import("ai").FlexibleSchema<{
7
- handle: string;
8
- offset: number;
9
- limit: number;
10
- contextLines: number;
11
- query?: string | undefined;
12
- }>;
13
- contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
14
- needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
15
- handle: string;
16
- offset: number;
17
- limit: number;
18
- contextLines: number;
19
- query?: string | undefined;
20
- }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
21
- onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
22
- onInputDelta?: ((options: {
23
- inputTextDelta: string;
24
- } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
25
- onInputAvailable?: ((options: {
26
- input: {
27
- handle: string;
28
- offset: number;
29
- limit: number;
30
- contextLines: number;
31
- query?: string | undefined;
32
- };
33
- } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
34
- toModelOutput?: ((options: {
35
- toolCallId: string;
36
- input: {
37
- handle: string;
38
- offset: number;
39
- limit: number;
40
- contextLines: number;
41
- query?: string | undefined;
42
- };
43
- output: NoInfer<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
44
- ok: boolean;
45
- error: string;
46
- }>;
47
- }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
48
- } & {
49
- outputSchema?: import("ai").FlexibleSchema<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
50
- ok: boolean;
51
- error: string;
52
- }> | undefined;
53
- execute: import("ai").ToolExecuteFunction<{
54
- handle: string;
55
- offset: number;
56
- limit: number;
57
- contextLines: number;
58
- query?: string | undefined;
59
- }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
60
- ok: boolean;
61
- error: string;
62
- }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
63
- } & {
64
- description?: string | ((options: {
65
- context: NoInfer<import("@ai-sdk/provider-utils").Context>;
66
- experimental_sandbox?: import("ai").Experimental_SandboxSession;
67
- }) => string) | undefined;
68
- strict?: boolean;
69
- inputExamples?: {
70
- input: NoInfer<{
71
- handle: string;
72
- offset: number;
73
- limit: number;
74
- contextLines: number;
75
- query?: string | undefined;
76
- }>;
77
- }[] | undefined;
78
- id?: never;
79
- isProviderExecuted?: never;
80
- args?: never;
81
- supportsDeferredResults?: never;
82
- } & {
83
- type?: undefined | "function";
84
- } & {
85
- execute: import("ai").ToolExecuteFunction<{
86
- handle: string;
87
- offset: number;
88
- limit: number;
89
- contextLines: number;
90
- query?: string | undefined;
91
- }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
92
- ok: boolean;
93
- error: string;
94
- }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
95
- }) | ({
96
- deferLoading?: boolean;
97
- title?: string;
98
- providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
99
- metadata?: import("@ai-sdk/provider").JSONObject;
100
- inputSchema: import("ai").FlexibleSchema<{
101
- handle: string;
102
- offset: number;
103
- limit: number;
104
- contextLines: number;
105
- query?: string | undefined;
106
- }>;
107
- contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
108
- needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
109
- handle: string;
110
- offset: number;
111
- limit: number;
112
- contextLines: number;
113
- query?: string | undefined;
114
- }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
115
- onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
116
- onInputDelta?: ((options: {
117
- inputTextDelta: string;
118
- } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
119
- onInputAvailable?: ((options: {
120
- input: {
121
- handle: string;
122
- offset: number;
123
- limit: number;
124
- contextLines: number;
125
- query?: string | undefined;
126
- };
127
- } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
128
- toModelOutput?: ((options: {
129
- toolCallId: string;
130
- input: {
131
- handle: string;
132
- offset: number;
133
- limit: number;
134
- contextLines: number;
135
- query?: string | undefined;
136
- };
137
- output: NoInfer<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
138
- ok: boolean;
139
- error: string;
140
- }>;
141
- }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
142
- } & {
143
- outputSchema?: import("ai").FlexibleSchema<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
144
- ok: boolean;
145
- error: string;
146
- }> | undefined;
147
- execute: import("ai").ToolExecuteFunction<{
148
- handle: string;
149
- offset: number;
150
- limit: number;
151
- contextLines: number;
152
- query?: string | undefined;
153
- }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
154
- ok: boolean;
155
- error: string;
156
- }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
157
- } & {
158
- description?: string | ((options: {
159
- context: NoInfer<import("@ai-sdk/provider-utils").Context>;
160
- experimental_sandbox?: import("ai").Experimental_SandboxSession;
161
- }) => string) | undefined;
162
- strict?: boolean;
163
- inputExamples?: {
164
- input: NoInfer<{
165
- handle: string;
166
- offset: number;
167
- limit: number;
168
- contextLines: number;
169
- query?: string | undefined;
170
- }>;
171
- }[] | undefined;
172
- id?: never;
173
- isProviderExecuted?: never;
174
- args?: never;
175
- supportsDeferredResults?: never;
176
- } & {
177
- type: "dynamic";
178
- } & {
179
- execute: import("ai").ToolExecuteFunction<{
180
- handle: string;
181
- offset: number;
182
- limit: number;
183
- contextLines: number;
184
- query?: string | undefined;
185
- }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
186
- ok: boolean;
187
- error: string;
188
- }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
189
- }) | ({
190
- deferLoading?: boolean;
191
- title?: string;
192
- providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
193
- metadata?: import("@ai-sdk/provider").JSONObject;
194
- inputSchema: import("ai").FlexibleSchema<{
195
- handle: string;
196
- offset: number;
197
- limit: number;
198
- contextLines: number;
199
- query?: string | undefined;
200
- }>;
201
- contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
202
- needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
203
- handle: string;
204
- offset: number;
205
- limit: number;
206
- contextLines: number;
207
- query?: string | undefined;
208
- }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
209
- onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
210
- onInputDelta?: ((options: {
211
- inputTextDelta: string;
212
- } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
213
- onInputAvailable?: ((options: {
214
- input: {
215
- handle: string;
216
- offset: number;
217
- limit: number;
218
- contextLines: number;
219
- query?: string | undefined;
220
- };
221
- } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
222
- toModelOutput?: ((options: {
223
- toolCallId: string;
224
- input: {
225
- handle: string;
226
- offset: number;
227
- limit: number;
228
- contextLines: number;
229
- query?: string | undefined;
230
- };
231
- output: NoInfer<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
232
- ok: boolean;
233
- error: string;
234
- }>;
235
- }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
236
- } & {
237
- outputSchema?: import("ai").FlexibleSchema<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
238
- ok: boolean;
239
- error: string;
240
- }> | undefined;
241
- execute: import("ai").ToolExecuteFunction<{
242
- handle: string;
243
- offset: number;
244
- limit: number;
245
- contextLines: number;
246
- query?: string | undefined;
247
- }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
248
- ok: boolean;
249
- error: string;
250
- }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
251
- } & {
252
- type: "provider";
253
- id: `${string}.${string}`;
254
- args: Record<string, unknown>;
255
- description?: never;
256
- strict?: never;
257
- inputExamples?: never;
258
- } & {
259
- isProviderExecuted: false;
260
- supportsDeferredResults?: never;
261
- } & {
262
- execute: import("ai").ToolExecuteFunction<{
263
- handle: string;
264
- offset: number;
265
- limit: number;
266
- contextLines: number;
267
- query?: string | undefined;
268
- }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
269
- ok: boolean;
270
- error: string;
271
- }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
272
- }) | ({
273
- deferLoading?: boolean;
274
- title?: string;
275
- providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
276
- metadata?: import("@ai-sdk/provider").JSONObject;
277
- inputSchema: import("ai").FlexibleSchema<{
278
- handle: string;
279
- offset: number;
280
- limit: number;
281
- contextLines: number;
282
- query?: string | undefined;
283
- }>;
284
- contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
285
- needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
286
- handle: string;
287
- offset: number;
288
- limit: number;
289
- contextLines: number;
290
- query?: string | undefined;
291
- }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
292
- onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
293
- onInputDelta?: ((options: {
294
- inputTextDelta: string;
295
- } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
296
- onInputAvailable?: ((options: {
297
- input: {
298
- handle: string;
299
- offset: number;
300
- limit: number;
301
- contextLines: number;
302
- query?: string | undefined;
303
- };
304
- } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
305
- toModelOutput?: ((options: {
306
- toolCallId: string;
307
- input: {
308
- handle: string;
309
- offset: number;
310
- limit: number;
311
- contextLines: number;
312
- query?: string | undefined;
313
- };
314
- output: NoInfer<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
315
- ok: boolean;
316
- error: string;
317
- }>;
318
- }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
319
- } & {
320
- outputSchema?: import("ai").FlexibleSchema<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
321
- ok: boolean;
322
- error: string;
323
- }> | undefined;
324
- execute: import("ai").ToolExecuteFunction<{
325
- handle: string;
326
- offset: number;
327
- limit: number;
328
- contextLines: number;
329
- query?: string | undefined;
330
- }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
331
- ok: boolean;
332
- error: string;
333
- }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
334
- } & {
335
- type: "provider";
336
- id: `${string}.${string}`;
337
- args: Record<string, unknown>;
338
- description?: never;
339
- strict?: never;
340
- inputExamples?: never;
341
- } & {
342
- isProviderExecuted: true;
343
- supportsDeferredResults?: boolean;
344
- } & {
345
- execute: import("ai").ToolExecuteFunction<{
346
- handle: string;
347
- offset: number;
348
- limit: number;
349
- contextLines: number;
350
- query?: string | undefined;
351
- }, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
352
- ok: boolean;
353
- error: string;
354
- }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
355
- });
1
+ import { type Tool } from 'ai';
2
+ export declare const readToolOutputTool: Tool;