@denizokcu/haze 0.11.0 → 1.0.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 (230) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +23 -14
  3. package/SECURITY.md +3 -3
  4. package/dist/buildInfo.json +3 -3
  5. package/dist/cli/chat/chatMetrics.d.ts +2 -2
  6. package/dist/cli/chat/chatMetrics.js +1 -1
  7. package/dist/cli/chat/fileMentionSuggestions.js +1 -1
  8. package/dist/cli/chat/inputSuggestions.d.ts +8 -16
  9. package/dist/cli/chat/inputSuggestions.js +9 -41
  10. package/dist/cli/chat/messages.d.ts +0 -2
  11. package/dist/cli/chat/messages.js +2 -2
  12. package/dist/cli/chat/sessionLifecycle.d.ts +2 -1
  13. package/dist/cli/chat/turnState.d.ts +1 -1
  14. package/dist/cli/chat/wizardDispatch.d.ts +90 -28
  15. package/dist/cli/chat/wizardDispatch.js +250 -133
  16. package/dist/cli/commands/chat.js +14 -72
  17. package/dist/cli/commands/chatModes.d.ts +8 -1
  18. package/dist/cli/commands/chatModes.js +9 -44
  19. package/dist/cli/commands/doctor.js +1 -1
  20. package/dist/cli/commands/formatters.d.ts +3 -3
  21. package/dist/cli/commands/formatters.js +6 -25
  22. package/dist/cli/commands/providerWizard.js +2 -3
  23. package/dist/cli/commands/runCommand.js +1 -1
  24. package/dist/cli/commands/serverWizard.d.ts +34 -0
  25. package/dist/cli/commands/{mcpWizard.js → serverWizard.js} +44 -2
  26. package/dist/cli/commands/skillsWizard.d.ts +41 -0
  27. package/dist/cli/commands/{skillWizard.js → skillsWizard.js} +33 -11
  28. package/dist/cli/commands/streaming/abortCause.d.ts +2 -1
  29. package/dist/cli/commands/streaming/agentAttempt.d.ts +43 -0
  30. package/dist/cli/commands/streaming/agentAttempt.js +79 -0
  31. package/dist/cli/commands/streaming/attemptLifecycle.d.ts +56 -0
  32. package/dist/cli/commands/streaming/attemptLifecycle.js +110 -0
  33. package/dist/cli/commands/streaming/attemptOutcome.d.ts +96 -0
  34. package/dist/cli/commands/streaming/attemptOutcome.js +206 -0
  35. package/dist/cli/commands/streaming/attemptSetup.d.ts +78 -0
  36. package/dist/cli/commands/streaming/attemptSetup.js +167 -0
  37. package/dist/cli/commands/streaming/goalCheckpoint.d.ts +1 -1
  38. package/dist/cli/commands/streaming/goalCheckpoint.js +2 -2
  39. package/dist/cli/commands/streaming/goalSupervisor.js +9 -6
  40. package/dist/cli/commands/streaming/stallRecovery.d.ts +94 -0
  41. package/dist/cli/commands/streaming/stallRecovery.js +105 -0
  42. package/dist/cli/commands/streaming/streamLoop.d.ts +72 -0
  43. package/dist/cli/commands/streaming/streamLoop.js +448 -0
  44. package/dist/cli/commands/streaming/toolCallRecovery.d.ts +14 -0
  45. package/dist/cli/commands/streaming/toolCallRecovery.js +56 -0
  46. package/dist/cli/commands/streaming/toolGroupRenderer.d.ts +2 -1
  47. package/dist/cli/commands/streaming/turnRuntime.d.ts +4 -0
  48. package/dist/cli/commands/streaming/turnRuntime.js +6 -0
  49. package/dist/cli/commands/streaming.d.ts +14 -25
  50. package/dist/cli/commands/streaming.js +43 -754
  51. package/dist/cli/commands/wizardFlow.d.ts +334 -0
  52. package/dist/cli/commands/wizardFlow.js +377 -0
  53. package/dist/cli/contextReport.js +3 -0
  54. package/dist/cli/index.js +1 -1
  55. package/dist/config/contextFiles.js +9 -3
  56. package/dist/config/inputHistory.d.ts +0 -1
  57. package/dist/config/inputHistory.js +1 -1
  58. package/dist/config/modelDiscovery.d.ts +0 -15
  59. package/dist/config/modelDiscovery.js +1 -1
  60. package/dist/config/settings.d.ts +7 -0
  61. package/dist/config/settings.js +3 -0
  62. package/dist/config/skillSettings.js +4 -4
  63. package/dist/config/updateCheck.d.ts +0 -1
  64. package/dist/config/updateCheck.js +1 -1
  65. package/dist/core/agent/budgets.d.ts +63 -1
  66. package/dist/core/agent/budgets.js +84 -1
  67. package/dist/core/agent/compaction.js +1 -1
  68. package/dist/core/agent/completionController.d.ts +7 -13
  69. package/dist/core/agent/completionController.js +17 -8
  70. package/dist/core/agent/contextBudget.d.ts +0 -4
  71. package/dist/core/agent/contextBudget.js +3 -3
  72. package/dist/core/agent/errors.d.ts +0 -1
  73. package/dist/core/agent/errors.js +1 -1
  74. package/dist/core/agent/events.d.ts +5 -1
  75. package/dist/core/{goal/completionPolicy.d.ts → agent/goalPolicy.d.ts} +18 -0
  76. package/dist/core/agent/goalPolicy.js +106 -0
  77. package/dist/core/agent/requestAssembly.d.ts +2 -2
  78. package/dist/core/agent/requestAssembly.js +16 -4
  79. package/dist/core/agent/toolCapabilities.d.ts +2 -2
  80. package/dist/core/agent/toolCapabilities.js +5 -5
  81. package/dist/core/agent/toolOutputStore.js +1 -1
  82. package/dist/core/agent/toolResults.js +1 -1
  83. package/dist/core/agent/workState.d.ts +6 -3
  84. package/dist/core/agent/workState.js +62 -7
  85. package/dist/core/attachments/imageAttachments.js +90 -42
  86. package/dist/core/deadline.d.ts +0 -6
  87. package/dist/core/deadline.js +1 -1
  88. package/dist/core/io/boundedRead.js +1 -1
  89. package/dist/core/limits.d.ts +51 -0
  90. package/dist/core/limits.js +51 -0
  91. package/dist/core/log/llmLog.js +1 -1
  92. package/dist/core/process/backgroundRegistry.d.ts +2 -3
  93. package/dist/core/process/backgroundRegistry.js +10 -6
  94. package/dist/core/process/userShell.d.ts +16 -0
  95. package/dist/core/process/userShell.js +59 -0
  96. package/dist/core/safety/shellClassifier.d.ts +11 -0
  97. package/dist/core/safety/{bashClassifier.js → shellClassifier.js} +5 -3
  98. package/dist/core/safety/urlGuard.d.ts +1 -1
  99. package/dist/core/session/sessionSlimming.d.ts +0 -3
  100. package/dist/core/session/sessionSlimming.js +2 -3
  101. package/dist/core/session/sessionStore.d.ts +1 -0
  102. package/dist/core/session/sessionStore.js +39 -20
  103. package/dist/core/{bashOutput → shellOutput}/lineFilter.js +8 -2
  104. package/dist/core/{bashOutput → shellOutput}/reducers/search.d.ts +0 -1
  105. package/dist/core/{bashOutput → shellOutput}/reducers/search.js +1 -1
  106. package/dist/core/shellOutput/registry.d.ts +2 -0
  107. package/dist/core/{bashOutput → shellOutput}/registry.js +3 -3
  108. package/dist/core/{bashOutput → shellOutput}/types.d.ts +6 -5
  109. package/dist/core/subagent/contracts.d.ts +2 -14
  110. package/dist/core/subagent/contracts.js +3 -3
  111. package/dist/core/subagent/executionProfiles.js +2 -2
  112. package/dist/core/subagent/subagentRunner.js +3 -4
  113. package/dist/core/toolOutput/reduction.d.ts +0 -12
  114. package/dist/core/toolOutput/reduction.js +1 -1
  115. package/dist/core/validation/outputParser.d.ts +2 -2
  116. package/dist/llm/client.js +5 -1
  117. package/dist/llm/hazeTools.d.ts +139 -124
  118. package/dist/llm/hazeTools.js +14 -11
  119. package/dist/llm/initPrompt.js +1 -1
  120. package/dist/llm/lsp/client.d.ts +45 -0
  121. package/dist/llm/lsp/client.js +195 -0
  122. package/dist/llm/lsp/pool.d.ts +23 -0
  123. package/dist/llm/lsp/pool.js +86 -0
  124. package/dist/llm/lsp/protocol.d.ts +64 -0
  125. package/dist/llm/lsp/protocol.js +128 -0
  126. package/dist/llm/lsp/requests.d.ts +94 -0
  127. package/dist/llm/lsp/requests.js +119 -0
  128. package/dist/llm/lspTools.d.ts +3824 -570
  129. package/dist/llm/lspTools.js +65 -1
  130. package/dist/llm/openaiCodex.d.ts +0 -2
  131. package/dist/llm/openaiCodex.js +0 -4
  132. package/dist/llm/openaiCodexOAuth.d.ts +0 -3
  133. package/dist/llm/openaiCodexOAuth.js +6 -3
  134. package/dist/llm/requestContext.d.ts +5 -1
  135. package/dist/llm/requestContext.js +25 -2
  136. package/dist/llm/systemPrompt.d.ts +1 -0
  137. package/dist/llm/systemPrompt.js +13 -6
  138. package/dist/llm/toolResultTypes.d.ts +0 -14
  139. package/dist/llm/toolResultTypes.js +1 -4
  140. package/dist/llm/tools/editMatch.d.ts +0 -9
  141. package/dist/llm/tools/editMatch.js +1 -1
  142. package/dist/llm/tools/fetchTool.js +1 -1
  143. package/dist/llm/tools/fileToolShared.d.ts +4 -2
  144. package/dist/llm/tools/fileToolShared.js +9 -5
  145. package/dist/llm/tools/gitIgnore.d.ts +25 -32
  146. package/dist/llm/tools/gitIgnore.js +216 -98
  147. package/dist/llm/tools/grepParse.d.ts +2 -1
  148. package/dist/llm/tools/grepRunner.d.ts +1 -1
  149. package/dist/llm/tools/grepRunner.js +2 -2
  150. package/dist/llm/tools/outputCap.d.ts +2 -7
  151. package/dist/llm/tools/outputCap.js +3 -3
  152. package/dist/llm/tools/processTool.d.ts +16 -16
  153. package/dist/llm/tools/processTool.js +1 -1
  154. package/dist/llm/tools/readRecovery.d.ts +0 -2
  155. package/dist/llm/tools/readRecovery.js +2 -2
  156. package/dist/llm/tools/{bashTool.d.ts → shellTool.d.ts} +123 -107
  157. package/dist/llm/tools/{bashTool.js → shellTool.js} +15 -14
  158. package/dist/llm/tools/toolContext.js +5 -5
  159. package/dist/llm/tools/workspaceFile.d.ts +0 -1
  160. package/dist/llm/tools/workspaceFile.js +1 -6
  161. package/dist/llm/webFetch.d.ts +1 -1
  162. package/dist/skills/SkillLoader.d.ts +1 -11
  163. package/dist/skills/SkillLoader.js +1 -2
  164. package/dist/skills/types.d.ts +2 -1
  165. package/dist/utils/buildInfo.d.ts +6 -13
  166. package/dist/utils/buildInfo.js +6 -15
  167. package/dist/utils/fs.d.ts +7 -5
  168. package/dist/utils/fs.js +5 -2
  169. package/dist/utils/path.d.ts +0 -1
  170. package/dist/utils/path.js +1 -1
  171. package/package.json +6 -4
  172. package/dist/cli/commands/lspWizard.d.ts +0 -14
  173. package/dist/cli/commands/lspWizard.js +0 -44
  174. package/dist/cli/commands/mcpWizard.d.ts +0 -15
  175. package/dist/cli/commands/skillConfirmRemove.d.ts +0 -11
  176. package/dist/cli/commands/skillConfirmRemove.js +0 -20
  177. package/dist/cli/commands/skillCreation.d.ts +0 -12
  178. package/dist/cli/commands/skillCreation.js +0 -14
  179. package/dist/cli/commands/skillWizard.d.ts +0 -17
  180. package/dist/cli/commands/streaming/idleTimer.d.ts +0 -26
  181. package/dist/cli/commands/streaming/idleTimer.js +0 -24
  182. package/dist/cli/commands/streaming/turnOutcome.d.ts +0 -27
  183. package/dist/cli/commands/streaming/turnOutcome.js +0 -29
  184. package/dist/cli/commands/wizardActions.d.ts +0 -47
  185. package/dist/cli/commands/wizardActions.js +0 -47
  186. package/dist/cli/commands/wizardInput.d.ts +0 -4
  187. package/dist/cli/commands/wizardInput.js +0 -19
  188. package/dist/cli/commands/wizardPrompts.d.ts +0 -22
  189. package/dist/cli/commands/wizardPrompts.js +0 -58
  190. package/dist/cli/commands/wizardSuggestions.d.ts +0 -31
  191. package/dist/cli/commands/wizardSuggestions.js +0 -190
  192. package/dist/cli/commands/wizardTransition.d.ts +0 -37
  193. package/dist/cli/commands/wizardTransition.js +0 -43
  194. package/dist/core/agent/toolExecutionBudget.d.ts +0 -35
  195. package/dist/core/agent/toolExecutionBudget.js +0 -49
  196. package/dist/core/agent/turnBudget.d.ts +0 -35
  197. package/dist/core/agent/turnBudget.js +0 -27
  198. package/dist/core/bashOutput/ansi.d.ts +0 -1
  199. package/dist/core/bashOutput/ansi.js +0 -7
  200. package/dist/core/bashOutput/registry.d.ts +0 -4
  201. package/dist/core/goal/completionPolicy.js +0 -43
  202. package/dist/core/goal/requestClassifier.d.ts +0 -3
  203. package/dist/core/goal/requestClassifier.js +0 -18
  204. package/dist/core/goal/sessionGoal.d.ts +0 -8
  205. package/dist/core/goal/sessionGoal.js +0 -30
  206. package/dist/core/limits/byteBudgets.d.ts +0 -20
  207. package/dist/core/limits/byteBudgets.js +0 -20
  208. package/dist/core/limits/textBudgets.d.ts +0 -25
  209. package/dist/core/limits/textBudgets.js +0 -25
  210. package/dist/core/safety/bashClassifier.d.ts +0 -10
  211. package/dist/llm/lsp.d.ts +0 -149
  212. package/dist/llm/lsp.js +0 -368
  213. package/dist/ui/components/ErrorView.d.ts +0 -4
  214. package/dist/ui/components/ErrorView.js +0 -7
  215. package/dist/utils/yaml.d.ts +0 -2
  216. package/dist/utils/yaml.js +0 -8
  217. package/examples/skills/files/SKILL.md +0 -16
  218. package/examples/skills/files/examples/file-editing.md +0 -3
  219. /package/dist/core/{bashOutput → shellOutput}/command.d.ts +0 -0
  220. /package/dist/core/{bashOutput → shellOutput}/command.js +0 -0
  221. /package/dist/core/{bashOutput → shellOutput}/lineFilter.d.ts +0 -0
  222. /package/dist/core/{bashOutput → shellOutput}/reducers/content.d.ts +0 -0
  223. /package/dist/core/{bashOutput → shellOutput}/reducers/content.js +0 -0
  224. /package/dist/core/{bashOutput → shellOutput}/reducers/gh.d.ts +0 -0
  225. /package/dist/core/{bashOutput → shellOutput}/reducers/gh.js +0 -0
  226. /package/dist/core/{bashOutput → shellOutput}/reducers/git.d.ts +0 -0
  227. /package/dist/core/{bashOutput → shellOutput}/reducers/git.js +0 -0
  228. /package/dist/core/{bashOutput → shellOutput}/reducers/validation.d.ts +0 -0
  229. /package/dist/core/{bashOutput → shellOutput}/reducers/validation.js +0 -0
  230. /package/dist/core/{bashOutput → shellOutput}/types.js +0 -0
@@ -1,17 +1,17 @@
1
- export declare const bashTool: ({
1
+ export declare const shellTool: ({
2
2
  title?: string;
3
3
  providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
4
4
  metadata?: import("@ai-sdk/provider").JSONObject;
5
5
  inputSchema: import("ai").FlexibleSchema<{
6
6
  command: string;
7
- allowMutation: boolean;
7
+ purpose: "validation" | "auto";
8
8
  background: boolean;
9
9
  timeoutSeconds?: number | undefined;
10
10
  }>;
11
11
  contextSchema?: import("ai").FlexibleSchema<import("./toolContext.js").HazeToolContext> | undefined;
12
12
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
13
13
  command: string;
14
- allowMutation: boolean;
14
+ purpose: "validation" | "auto";
15
15
  background: boolean;
16
16
  timeoutSeconds?: number | undefined;
17
17
  }, NoInfer<import("./toolContext.js").HazeToolContext>> | undefined;
@@ -22,7 +22,7 @@ export declare const bashTool: ({
22
22
  onInputAvailable?: ((options: {
23
23
  input: {
24
24
  command: string;
25
- allowMutation: boolean;
25
+ purpose: "validation" | "auto";
26
26
  background: boolean;
27
27
  timeoutSeconds?: number | undefined;
28
28
  };
@@ -31,7 +31,7 @@ export declare const bashTool: ({
31
31
  toolCallId: string;
32
32
  input: {
33
33
  command: string;
34
- allowMutation: boolean;
34
+ purpose: "validation" | "auto";
35
35
  background: boolean;
36
36
  timeoutSeconds?: number | undefined;
37
37
  };
@@ -49,14 +49,14 @@ export declare const bashTool: ({
49
49
  suggestedNextStep: string;
50
50
  background?: undefined;
51
51
  } | {
52
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
52
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
53
53
  hint: string;
54
54
  backgroundId: string;
55
55
  pid?: number;
56
56
  command: string;
57
57
  cwd: string;
58
58
  startedAt: string;
59
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
59
+ status: "failed" | "killed" | "running" | "exited";
60
60
  code?: number | null;
61
61
  signal?: NodeJS.Signals | null;
62
62
  outputHandle: string;
@@ -87,15 +87,16 @@ export declare const bashTool: ({
87
87
  ok: boolean;
88
88
  code: number | null;
89
89
  command: string;
90
+ purpose: "validation" | "auto";
90
91
  cwd: string;
91
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
92
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
92
93
  durationMs: number;
93
94
  timedOut: boolean;
94
95
  aborted: boolean;
95
96
  signal: NodeJS.Signals | null;
96
97
  forcedTermination: boolean;
97
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
98
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
98
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
99
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
99
100
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
100
101
  stdoutBytes: {
101
102
  totalBytes: number;
@@ -127,14 +128,14 @@ export declare const bashTool: ({
127
128
  suggestedNextStep: string;
128
129
  background?: undefined;
129
130
  } | {
130
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
131
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
131
132
  hint: string;
132
133
  backgroundId: string;
133
134
  pid?: number;
134
135
  command: string;
135
136
  cwd: string;
136
137
  startedAt: string;
137
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
138
+ status: "failed" | "killed" | "running" | "exited";
138
139
  code?: number | null;
139
140
  signal?: NodeJS.Signals | null;
140
141
  outputHandle: string;
@@ -165,15 +166,16 @@ export declare const bashTool: ({
165
166
  ok: boolean;
166
167
  code: number | null;
167
168
  command: string;
169
+ purpose: "validation" | "auto";
168
170
  cwd: string;
169
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
171
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
170
172
  durationMs: number;
171
173
  timedOut: boolean;
172
174
  aborted: boolean;
173
175
  signal: NodeJS.Signals | null;
174
176
  forcedTermination: boolean;
175
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
176
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
177
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
178
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
177
179
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
178
180
  stdoutBytes: {
179
181
  totalBytes: number;
@@ -191,7 +193,7 @@ export declare const bashTool: ({
191
193
  }> | undefined;
192
194
  execute: import("ai").ToolExecuteFunction<{
193
195
  command: string;
194
- allowMutation: boolean;
196
+ purpose: "validation" | "auto";
195
197
  background: boolean;
196
198
  timeoutSeconds?: number | undefined;
197
199
  }, {
@@ -208,14 +210,14 @@ export declare const bashTool: ({
208
210
  suggestedNextStep: string;
209
211
  background?: undefined;
210
212
  } | {
211
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
213
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
212
214
  hint: string;
213
215
  backgroundId: string;
214
216
  pid?: number;
215
217
  command: string;
216
218
  cwd: string;
217
219
  startedAt: string;
218
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
220
+ status: "failed" | "killed" | "running" | "exited";
219
221
  code?: number | null;
220
222
  signal?: NodeJS.Signals | null;
221
223
  outputHandle: string;
@@ -246,15 +248,16 @@ export declare const bashTool: ({
246
248
  ok: boolean;
247
249
  code: number | null;
248
250
  command: string;
251
+ purpose: "validation" | "auto";
249
252
  cwd: string;
250
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
253
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
251
254
  durationMs: number;
252
255
  timedOut: boolean;
253
256
  aborted: boolean;
254
257
  signal: NodeJS.Signals | null;
255
258
  forcedTermination: boolean;
256
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
257
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
259
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
260
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
258
261
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
259
262
  stdoutBytes: {
260
263
  totalBytes: number;
@@ -279,7 +282,7 @@ export declare const bashTool: ({
279
282
  inputExamples?: {
280
283
  input: NoInfer<{
281
284
  command: string;
282
- allowMutation: boolean;
285
+ purpose: "validation" | "auto";
283
286
  background: boolean;
284
287
  timeoutSeconds?: number | undefined;
285
288
  }>;
@@ -293,7 +296,7 @@ export declare const bashTool: ({
293
296
  } & {
294
297
  execute: import("ai").ToolExecuteFunction<{
295
298
  command: string;
296
- allowMutation: boolean;
299
+ purpose: "validation" | "auto";
297
300
  background: boolean;
298
301
  timeoutSeconds?: number | undefined;
299
302
  }, {
@@ -310,14 +313,14 @@ export declare const bashTool: ({
310
313
  suggestedNextStep: string;
311
314
  background?: undefined;
312
315
  } | {
313
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
316
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
314
317
  hint: string;
315
318
  backgroundId: string;
316
319
  pid?: number;
317
320
  command: string;
318
321
  cwd: string;
319
322
  startedAt: string;
320
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
323
+ status: "failed" | "killed" | "running" | "exited";
321
324
  code?: number | null;
322
325
  signal?: NodeJS.Signals | null;
323
326
  outputHandle: string;
@@ -348,15 +351,16 @@ export declare const bashTool: ({
348
351
  ok: boolean;
349
352
  code: number | null;
350
353
  command: string;
354
+ purpose: "validation" | "auto";
351
355
  cwd: string;
352
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
356
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
353
357
  durationMs: number;
354
358
  timedOut: boolean;
355
359
  aborted: boolean;
356
360
  signal: NodeJS.Signals | null;
357
361
  forcedTermination: boolean;
358
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
359
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
362
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
363
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
360
364
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
361
365
  stdoutBytes: {
362
366
  totalBytes: number;
@@ -378,14 +382,14 @@ export declare const bashTool: ({
378
382
  metadata?: import("@ai-sdk/provider").JSONObject;
379
383
  inputSchema: import("ai").FlexibleSchema<{
380
384
  command: string;
381
- allowMutation: boolean;
385
+ purpose: "validation" | "auto";
382
386
  background: boolean;
383
387
  timeoutSeconds?: number | undefined;
384
388
  }>;
385
389
  contextSchema?: import("ai").FlexibleSchema<import("./toolContext.js").HazeToolContext> | undefined;
386
390
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
387
391
  command: string;
388
- allowMutation: boolean;
392
+ purpose: "validation" | "auto";
389
393
  background: boolean;
390
394
  timeoutSeconds?: number | undefined;
391
395
  }, NoInfer<import("./toolContext.js").HazeToolContext>> | undefined;
@@ -396,7 +400,7 @@ export declare const bashTool: ({
396
400
  onInputAvailable?: ((options: {
397
401
  input: {
398
402
  command: string;
399
- allowMutation: boolean;
403
+ purpose: "validation" | "auto";
400
404
  background: boolean;
401
405
  timeoutSeconds?: number | undefined;
402
406
  };
@@ -405,7 +409,7 @@ export declare const bashTool: ({
405
409
  toolCallId: string;
406
410
  input: {
407
411
  command: string;
408
- allowMutation: boolean;
412
+ purpose: "validation" | "auto";
409
413
  background: boolean;
410
414
  timeoutSeconds?: number | undefined;
411
415
  };
@@ -423,14 +427,14 @@ export declare const bashTool: ({
423
427
  suggestedNextStep: string;
424
428
  background?: undefined;
425
429
  } | {
426
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
430
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
427
431
  hint: string;
428
432
  backgroundId: string;
429
433
  pid?: number;
430
434
  command: string;
431
435
  cwd: string;
432
436
  startedAt: string;
433
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
437
+ status: "failed" | "killed" | "running" | "exited";
434
438
  code?: number | null;
435
439
  signal?: NodeJS.Signals | null;
436
440
  outputHandle: string;
@@ -461,15 +465,16 @@ export declare const bashTool: ({
461
465
  ok: boolean;
462
466
  code: number | null;
463
467
  command: string;
468
+ purpose: "validation" | "auto";
464
469
  cwd: string;
465
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
470
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
466
471
  durationMs: number;
467
472
  timedOut: boolean;
468
473
  aborted: boolean;
469
474
  signal: NodeJS.Signals | null;
470
475
  forcedTermination: boolean;
471
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
472
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
476
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
477
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
473
478
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
474
479
  stdoutBytes: {
475
480
  totalBytes: number;
@@ -501,14 +506,14 @@ export declare const bashTool: ({
501
506
  suggestedNextStep: string;
502
507
  background?: undefined;
503
508
  } | {
504
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
509
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
505
510
  hint: string;
506
511
  backgroundId: string;
507
512
  pid?: number;
508
513
  command: string;
509
514
  cwd: string;
510
515
  startedAt: string;
511
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
516
+ status: "failed" | "killed" | "running" | "exited";
512
517
  code?: number | null;
513
518
  signal?: NodeJS.Signals | null;
514
519
  outputHandle: string;
@@ -539,15 +544,16 @@ export declare const bashTool: ({
539
544
  ok: boolean;
540
545
  code: number | null;
541
546
  command: string;
547
+ purpose: "validation" | "auto";
542
548
  cwd: string;
543
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
549
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
544
550
  durationMs: number;
545
551
  timedOut: boolean;
546
552
  aborted: boolean;
547
553
  signal: NodeJS.Signals | null;
548
554
  forcedTermination: boolean;
549
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
550
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
555
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
556
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
551
557
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
552
558
  stdoutBytes: {
553
559
  totalBytes: number;
@@ -565,7 +571,7 @@ export declare const bashTool: ({
565
571
  }> | undefined;
566
572
  execute: import("ai").ToolExecuteFunction<{
567
573
  command: string;
568
- allowMutation: boolean;
574
+ purpose: "validation" | "auto";
569
575
  background: boolean;
570
576
  timeoutSeconds?: number | undefined;
571
577
  }, {
@@ -582,14 +588,14 @@ export declare const bashTool: ({
582
588
  suggestedNextStep: string;
583
589
  background?: undefined;
584
590
  } | {
585
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
591
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
586
592
  hint: string;
587
593
  backgroundId: string;
588
594
  pid?: number;
589
595
  command: string;
590
596
  cwd: string;
591
597
  startedAt: string;
592
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
598
+ status: "failed" | "killed" | "running" | "exited";
593
599
  code?: number | null;
594
600
  signal?: NodeJS.Signals | null;
595
601
  outputHandle: string;
@@ -620,15 +626,16 @@ export declare const bashTool: ({
620
626
  ok: boolean;
621
627
  code: number | null;
622
628
  command: string;
629
+ purpose: "validation" | "auto";
623
630
  cwd: string;
624
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
631
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
625
632
  durationMs: number;
626
633
  timedOut: boolean;
627
634
  aborted: boolean;
628
635
  signal: NodeJS.Signals | null;
629
636
  forcedTermination: boolean;
630
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
631
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
637
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
638
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
632
639
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
633
640
  stdoutBytes: {
634
641
  totalBytes: number;
@@ -653,7 +660,7 @@ export declare const bashTool: ({
653
660
  inputExamples?: {
654
661
  input: NoInfer<{
655
662
  command: string;
656
- allowMutation: boolean;
663
+ purpose: "validation" | "auto";
657
664
  background: boolean;
658
665
  timeoutSeconds?: number | undefined;
659
666
  }>;
@@ -667,7 +674,7 @@ export declare const bashTool: ({
667
674
  } & {
668
675
  execute: import("ai").ToolExecuteFunction<{
669
676
  command: string;
670
- allowMutation: boolean;
677
+ purpose: "validation" | "auto";
671
678
  background: boolean;
672
679
  timeoutSeconds?: number | undefined;
673
680
  }, {
@@ -684,14 +691,14 @@ export declare const bashTool: ({
684
691
  suggestedNextStep: string;
685
692
  background?: undefined;
686
693
  } | {
687
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
694
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
688
695
  hint: string;
689
696
  backgroundId: string;
690
697
  pid?: number;
691
698
  command: string;
692
699
  cwd: string;
693
700
  startedAt: string;
694
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
701
+ status: "failed" | "killed" | "running" | "exited";
695
702
  code?: number | null;
696
703
  signal?: NodeJS.Signals | null;
697
704
  outputHandle: string;
@@ -722,15 +729,16 @@ export declare const bashTool: ({
722
729
  ok: boolean;
723
730
  code: number | null;
724
731
  command: string;
732
+ purpose: "validation" | "auto";
725
733
  cwd: string;
726
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
734
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
727
735
  durationMs: number;
728
736
  timedOut: boolean;
729
737
  aborted: boolean;
730
738
  signal: NodeJS.Signals | null;
731
739
  forcedTermination: boolean;
732
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
733
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
740
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
741
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
734
742
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
735
743
  stdoutBytes: {
736
744
  totalBytes: number;
@@ -752,14 +760,14 @@ export declare const bashTool: ({
752
760
  metadata?: import("@ai-sdk/provider").JSONObject;
753
761
  inputSchema: import("ai").FlexibleSchema<{
754
762
  command: string;
755
- allowMutation: boolean;
763
+ purpose: "validation" | "auto";
756
764
  background: boolean;
757
765
  timeoutSeconds?: number | undefined;
758
766
  }>;
759
767
  contextSchema?: import("ai").FlexibleSchema<import("./toolContext.js").HazeToolContext> | undefined;
760
768
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
761
769
  command: string;
762
- allowMutation: boolean;
770
+ purpose: "validation" | "auto";
763
771
  background: boolean;
764
772
  timeoutSeconds?: number | undefined;
765
773
  }, NoInfer<import("./toolContext.js").HazeToolContext>> | undefined;
@@ -770,7 +778,7 @@ export declare const bashTool: ({
770
778
  onInputAvailable?: ((options: {
771
779
  input: {
772
780
  command: string;
773
- allowMutation: boolean;
781
+ purpose: "validation" | "auto";
774
782
  background: boolean;
775
783
  timeoutSeconds?: number | undefined;
776
784
  };
@@ -779,7 +787,7 @@ export declare const bashTool: ({
779
787
  toolCallId: string;
780
788
  input: {
781
789
  command: string;
782
- allowMutation: boolean;
790
+ purpose: "validation" | "auto";
783
791
  background: boolean;
784
792
  timeoutSeconds?: number | undefined;
785
793
  };
@@ -797,14 +805,14 @@ export declare const bashTool: ({
797
805
  suggestedNextStep: string;
798
806
  background?: undefined;
799
807
  } | {
800
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
808
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
801
809
  hint: string;
802
810
  backgroundId: string;
803
811
  pid?: number;
804
812
  command: string;
805
813
  cwd: string;
806
814
  startedAt: string;
807
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
815
+ status: "failed" | "killed" | "running" | "exited";
808
816
  code?: number | null;
809
817
  signal?: NodeJS.Signals | null;
810
818
  outputHandle: string;
@@ -835,15 +843,16 @@ export declare const bashTool: ({
835
843
  ok: boolean;
836
844
  code: number | null;
837
845
  command: string;
846
+ purpose: "validation" | "auto";
838
847
  cwd: string;
839
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
848
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
840
849
  durationMs: number;
841
850
  timedOut: boolean;
842
851
  aborted: boolean;
843
852
  signal: NodeJS.Signals | null;
844
853
  forcedTermination: boolean;
845
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
846
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
854
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
855
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
847
856
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
848
857
  stdoutBytes: {
849
858
  totalBytes: number;
@@ -875,14 +884,14 @@ export declare const bashTool: ({
875
884
  suggestedNextStep: string;
876
885
  background?: undefined;
877
886
  } | {
878
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
887
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
879
888
  hint: string;
880
889
  backgroundId: string;
881
890
  pid?: number;
882
891
  command: string;
883
892
  cwd: string;
884
893
  startedAt: string;
885
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
894
+ status: "failed" | "killed" | "running" | "exited";
886
895
  code?: number | null;
887
896
  signal?: NodeJS.Signals | null;
888
897
  outputHandle: string;
@@ -913,15 +922,16 @@ export declare const bashTool: ({
913
922
  ok: boolean;
914
923
  code: number | null;
915
924
  command: string;
925
+ purpose: "validation" | "auto";
916
926
  cwd: string;
917
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
927
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
918
928
  durationMs: number;
919
929
  timedOut: boolean;
920
930
  aborted: boolean;
921
931
  signal: NodeJS.Signals | null;
922
932
  forcedTermination: boolean;
923
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
924
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
933
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
934
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
925
935
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
926
936
  stdoutBytes: {
927
937
  totalBytes: number;
@@ -939,7 +949,7 @@ export declare const bashTool: ({
939
949
  }> | undefined;
940
950
  execute: import("ai").ToolExecuteFunction<{
941
951
  command: string;
942
- allowMutation: boolean;
952
+ purpose: "validation" | "auto";
943
953
  background: boolean;
944
954
  timeoutSeconds?: number | undefined;
945
955
  }, {
@@ -956,14 +966,14 @@ export declare const bashTool: ({
956
966
  suggestedNextStep: string;
957
967
  background?: undefined;
958
968
  } | {
959
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
969
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
960
970
  hint: string;
961
971
  backgroundId: string;
962
972
  pid?: number;
963
973
  command: string;
964
974
  cwd: string;
965
975
  startedAt: string;
966
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
976
+ status: "failed" | "killed" | "running" | "exited";
967
977
  code?: number | null;
968
978
  signal?: NodeJS.Signals | null;
969
979
  outputHandle: string;
@@ -994,15 +1004,16 @@ export declare const bashTool: ({
994
1004
  ok: boolean;
995
1005
  code: number | null;
996
1006
  command: string;
1007
+ purpose: "validation" | "auto";
997
1008
  cwd: string;
998
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
1009
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
999
1010
  durationMs: number;
1000
1011
  timedOut: boolean;
1001
1012
  aborted: boolean;
1002
1013
  signal: NodeJS.Signals | null;
1003
1014
  forcedTermination: boolean;
1004
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
1005
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
1015
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
1016
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
1006
1017
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
1007
1018
  stdoutBytes: {
1008
1019
  totalBytes: number;
@@ -1031,7 +1042,7 @@ export declare const bashTool: ({
1031
1042
  } & {
1032
1043
  execute: import("ai").ToolExecuteFunction<{
1033
1044
  command: string;
1034
- allowMutation: boolean;
1045
+ purpose: "validation" | "auto";
1035
1046
  background: boolean;
1036
1047
  timeoutSeconds?: number | undefined;
1037
1048
  }, {
@@ -1048,14 +1059,14 @@ export declare const bashTool: ({
1048
1059
  suggestedNextStep: string;
1049
1060
  background?: undefined;
1050
1061
  } | {
1051
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
1062
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
1052
1063
  hint: string;
1053
1064
  backgroundId: string;
1054
1065
  pid?: number;
1055
1066
  command: string;
1056
1067
  cwd: string;
1057
1068
  startedAt: string;
1058
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
1069
+ status: "failed" | "killed" | "running" | "exited";
1059
1070
  code?: number | null;
1060
1071
  signal?: NodeJS.Signals | null;
1061
1072
  outputHandle: string;
@@ -1086,15 +1097,16 @@ export declare const bashTool: ({
1086
1097
  ok: boolean;
1087
1098
  code: number | null;
1088
1099
  command: string;
1100
+ purpose: "validation" | "auto";
1089
1101
  cwd: string;
1090
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
1102
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
1091
1103
  durationMs: number;
1092
1104
  timedOut: boolean;
1093
1105
  aborted: boolean;
1094
1106
  signal: NodeJS.Signals | null;
1095
1107
  forcedTermination: boolean;
1096
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
1097
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
1108
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
1109
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
1098
1110
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
1099
1111
  stdoutBytes: {
1100
1112
  totalBytes: number;
@@ -1116,14 +1128,14 @@ export declare const bashTool: ({
1116
1128
  metadata?: import("@ai-sdk/provider").JSONObject;
1117
1129
  inputSchema: import("ai").FlexibleSchema<{
1118
1130
  command: string;
1119
- allowMutation: boolean;
1131
+ purpose: "validation" | "auto";
1120
1132
  background: boolean;
1121
1133
  timeoutSeconds?: number | undefined;
1122
1134
  }>;
1123
1135
  contextSchema?: import("ai").FlexibleSchema<import("./toolContext.js").HazeToolContext> | undefined;
1124
1136
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1125
1137
  command: string;
1126
- allowMutation: boolean;
1138
+ purpose: "validation" | "auto";
1127
1139
  background: boolean;
1128
1140
  timeoutSeconds?: number | undefined;
1129
1141
  }, NoInfer<import("./toolContext.js").HazeToolContext>> | undefined;
@@ -1134,7 +1146,7 @@ export declare const bashTool: ({
1134
1146
  onInputAvailable?: ((options: {
1135
1147
  input: {
1136
1148
  command: string;
1137
- allowMutation: boolean;
1149
+ purpose: "validation" | "auto";
1138
1150
  background: boolean;
1139
1151
  timeoutSeconds?: number | undefined;
1140
1152
  };
@@ -1143,7 +1155,7 @@ export declare const bashTool: ({
1143
1155
  toolCallId: string;
1144
1156
  input: {
1145
1157
  command: string;
1146
- allowMutation: boolean;
1158
+ purpose: "validation" | "auto";
1147
1159
  background: boolean;
1148
1160
  timeoutSeconds?: number | undefined;
1149
1161
  };
@@ -1161,14 +1173,14 @@ export declare const bashTool: ({
1161
1173
  suggestedNextStep: string;
1162
1174
  background?: undefined;
1163
1175
  } | {
1164
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
1176
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
1165
1177
  hint: string;
1166
1178
  backgroundId: string;
1167
1179
  pid?: number;
1168
1180
  command: string;
1169
1181
  cwd: string;
1170
1182
  startedAt: string;
1171
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
1183
+ status: "failed" | "killed" | "running" | "exited";
1172
1184
  code?: number | null;
1173
1185
  signal?: NodeJS.Signals | null;
1174
1186
  outputHandle: string;
@@ -1199,15 +1211,16 @@ export declare const bashTool: ({
1199
1211
  ok: boolean;
1200
1212
  code: number | null;
1201
1213
  command: string;
1214
+ purpose: "validation" | "auto";
1202
1215
  cwd: string;
1203
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
1216
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
1204
1217
  durationMs: number;
1205
1218
  timedOut: boolean;
1206
1219
  aborted: boolean;
1207
1220
  signal: NodeJS.Signals | null;
1208
1221
  forcedTermination: boolean;
1209
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
1210
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
1222
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
1223
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
1211
1224
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
1212
1225
  stdoutBytes: {
1213
1226
  totalBytes: number;
@@ -1239,14 +1252,14 @@ export declare const bashTool: ({
1239
1252
  suggestedNextStep: string;
1240
1253
  background?: undefined;
1241
1254
  } | {
1242
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
1255
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
1243
1256
  hint: string;
1244
1257
  backgroundId: string;
1245
1258
  pid?: number;
1246
1259
  command: string;
1247
1260
  cwd: string;
1248
1261
  startedAt: string;
1249
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
1262
+ status: "failed" | "killed" | "running" | "exited";
1250
1263
  code?: number | null;
1251
1264
  signal?: NodeJS.Signals | null;
1252
1265
  outputHandle: string;
@@ -1277,15 +1290,16 @@ export declare const bashTool: ({
1277
1290
  ok: boolean;
1278
1291
  code: number | null;
1279
1292
  command: string;
1293
+ purpose: "validation" | "auto";
1280
1294
  cwd: string;
1281
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
1295
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
1282
1296
  durationMs: number;
1283
1297
  timedOut: boolean;
1284
1298
  aborted: boolean;
1285
1299
  signal: NodeJS.Signals | null;
1286
1300
  forcedTermination: boolean;
1287
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
1288
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
1301
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
1302
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
1289
1303
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
1290
1304
  stdoutBytes: {
1291
1305
  totalBytes: number;
@@ -1303,7 +1317,7 @@ export declare const bashTool: ({
1303
1317
  }> | undefined;
1304
1318
  execute: import("ai").ToolExecuteFunction<{
1305
1319
  command: string;
1306
- allowMutation: boolean;
1320
+ purpose: "validation" | "auto";
1307
1321
  background: boolean;
1308
1322
  timeoutSeconds?: number | undefined;
1309
1323
  }, {
@@ -1320,14 +1334,14 @@ export declare const bashTool: ({
1320
1334
  suggestedNextStep: string;
1321
1335
  background?: undefined;
1322
1336
  } | {
1323
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
1337
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
1324
1338
  hint: string;
1325
1339
  backgroundId: string;
1326
1340
  pid?: number;
1327
1341
  command: string;
1328
1342
  cwd: string;
1329
1343
  startedAt: string;
1330
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
1344
+ status: "failed" | "killed" | "running" | "exited";
1331
1345
  code?: number | null;
1332
1346
  signal?: NodeJS.Signals | null;
1333
1347
  outputHandle: string;
@@ -1358,15 +1372,16 @@ export declare const bashTool: ({
1358
1372
  ok: boolean;
1359
1373
  code: number | null;
1360
1374
  command: string;
1375
+ purpose: "validation" | "auto";
1361
1376
  cwd: string;
1362
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
1377
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
1363
1378
  durationMs: number;
1364
1379
  timedOut: boolean;
1365
1380
  aborted: boolean;
1366
1381
  signal: NodeJS.Signals | null;
1367
1382
  forcedTermination: boolean;
1368
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
1369
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
1383
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
1384
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
1370
1385
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
1371
1386
  stdoutBytes: {
1372
1387
  totalBytes: number;
@@ -1395,7 +1410,7 @@ export declare const bashTool: ({
1395
1410
  } & {
1396
1411
  execute: import("ai").ToolExecuteFunction<{
1397
1412
  command: string;
1398
- allowMutation: boolean;
1413
+ purpose: "validation" | "auto";
1399
1414
  background: boolean;
1400
1415
  timeoutSeconds?: number | undefined;
1401
1416
  }, {
@@ -1412,14 +1427,14 @@ export declare const bashTool: ({
1412
1427
  suggestedNextStep: string;
1413
1428
  background?: undefined;
1414
1429
  } | {
1415
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
1430
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
1416
1431
  hint: string;
1417
1432
  backgroundId: string;
1418
1433
  pid?: number;
1419
1434
  command: string;
1420
1435
  cwd: string;
1421
1436
  startedAt: string;
1422
- status: import("../../core/process/backgroundRegistry.js").BackgroundProcessStatus;
1437
+ status: "failed" | "killed" | "running" | "exited";
1423
1438
  code?: number | null;
1424
1439
  signal?: NodeJS.Signals | null;
1425
1440
  outputHandle: string;
@@ -1450,15 +1465,16 @@ export declare const bashTool: ({
1450
1465
  ok: boolean;
1451
1466
  code: number | null;
1452
1467
  command: string;
1468
+ purpose: "validation" | "auto";
1453
1469
  cwd: string;
1454
- classification: import("../../core/safety/bashClassifier.js").BashClassification;
1470
+ classification: import("../../core/safety/shellClassifier.js").ShellClassification;
1455
1471
  durationMs: number;
1456
1472
  timedOut: boolean;
1457
1473
  aborted: boolean;
1458
1474
  signal: NodeJS.Signals | null;
1459
1475
  forcedTermination: boolean;
1460
- stdout: import("../../core/bashOutput/types.js").StreamReduction;
1461
- stderr: import("../../core/bashOutput/types.js").StreamReduction;
1476
+ stdout: import("../../core/shellOutput/types.js").StreamReduction;
1477
+ stderr: import("../../core/shellOutput/types.js").StreamReduction;
1462
1478
  validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
1463
1479
  stdoutBytes: {
1464
1480
  totalBytes: number;