@denizokcu/haze 0.11.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +28 -14
  3. package/SECURITY.md +5 -3
  4. package/dist/buildInfo.json +3 -3
  5. package/dist/cli/chat/TaskBar.js +1 -1
  6. package/dist/cli/chat/chatMetrics.d.ts +2 -2
  7. package/dist/cli/chat/chatMetrics.js +1 -1
  8. package/dist/cli/chat/fileMentionSuggestions.js +1 -1
  9. package/dist/cli/chat/inputSuggestions.d.ts +8 -16
  10. package/dist/cli/chat/inputSuggestions.js +10 -41
  11. package/dist/cli/chat/messages.d.ts +0 -2
  12. package/dist/cli/chat/messages.js +5 -5
  13. package/dist/cli/chat/sessionLifecycle.d.ts +2 -1
  14. package/dist/cli/chat/turnState.d.ts +1 -1
  15. package/dist/cli/chat/wizardDispatch.d.ts +90 -28
  16. package/dist/cli/chat/wizardDispatch.js +257 -130
  17. package/dist/cli/commands/chat.js +61 -77
  18. package/dist/cli/commands/chatModes.d.ts +8 -1
  19. package/dist/cli/commands/chatModes.js +9 -44
  20. package/dist/cli/commands/commandHelp.js +2 -0
  21. package/dist/cli/commands/commands.js +2 -0
  22. package/dist/cli/commands/doctor.js +1 -1
  23. package/dist/cli/commands/formatters.d.ts +3 -3
  24. package/dist/cli/commands/formatters.js +12 -25
  25. package/dist/cli/commands/providerWizard.js +2 -3
  26. package/dist/cli/commands/runCommand.js +1 -1
  27. package/dist/cli/commands/serverWizard.d.ts +34 -0
  28. package/dist/cli/commands/{mcpWizard.js → serverWizard.js} +44 -2
  29. package/dist/cli/commands/settingsSummary.js +2 -0
  30. package/dist/cli/commands/skillsWizard.d.ts +41 -0
  31. package/dist/cli/commands/{skillWizard.js → skillsWizard.js} +33 -11
  32. package/dist/cli/commands/streaming/abortCause.d.ts +2 -1
  33. package/dist/cli/commands/streaming/agentAttempt.d.ts +43 -0
  34. package/dist/cli/commands/streaming/agentAttempt.js +79 -0
  35. package/dist/cli/commands/streaming/attemptLifecycle.d.ts +56 -0
  36. package/dist/cli/commands/streaming/attemptLifecycle.js +110 -0
  37. package/dist/cli/commands/streaming/attemptOutcome.d.ts +96 -0
  38. package/dist/cli/commands/streaming/attemptOutcome.js +206 -0
  39. package/dist/cli/commands/streaming/attemptSetup.d.ts +78 -0
  40. package/dist/cli/commands/streaming/attemptSetup.js +167 -0
  41. package/dist/cli/commands/streaming/goalCheckpoint.d.ts +1 -1
  42. package/dist/cli/commands/streaming/goalCheckpoint.js +2 -2
  43. package/dist/cli/commands/streaming/goalSupervisor.js +9 -6
  44. package/dist/cli/commands/streaming/stallRecovery.d.ts +94 -0
  45. package/dist/cli/commands/streaming/stallRecovery.js +105 -0
  46. package/dist/cli/commands/streaming/streamLoop.d.ts +72 -0
  47. package/dist/cli/commands/streaming/streamLoop.js +448 -0
  48. package/dist/cli/commands/streaming/toolCallRecovery.d.ts +14 -0
  49. package/dist/cli/commands/streaming/toolCallRecovery.js +56 -0
  50. package/dist/cli/commands/streaming/toolGroupRenderer.d.ts +2 -1
  51. package/dist/cli/commands/streaming/turnRuntime.d.ts +4 -0
  52. package/dist/cli/commands/streaming/turnRuntime.js +6 -0
  53. package/dist/cli/commands/streaming.d.ts +14 -25
  54. package/dist/cli/commands/streaming.js +43 -754
  55. package/dist/cli/commands/themesCommand.d.ts +17 -0
  56. package/dist/cli/commands/themesCommand.js +24 -0
  57. package/dist/cli/commands/wizardFlow.d.ts +341 -0
  58. package/dist/cli/commands/wizardFlow.js +397 -0
  59. package/dist/cli/contextReport.js +3 -0
  60. package/dist/cli/index.js +1 -1
  61. package/dist/config/contextFiles.js +9 -3
  62. package/dist/config/inputHistory.d.ts +0 -1
  63. package/dist/config/inputHistory.js +1 -1
  64. package/dist/config/modelDiscovery.d.ts +0 -15
  65. package/dist/config/modelDiscovery.js +1 -1
  66. package/dist/config/settings.d.ts +9 -0
  67. package/dist/config/settings.js +4 -0
  68. package/dist/config/skillSettings.js +4 -4
  69. package/dist/config/updateCheck.d.ts +0 -1
  70. package/dist/config/updateCheck.js +1 -1
  71. package/dist/core/agent/budgets.d.ts +63 -1
  72. package/dist/core/agent/budgets.js +84 -1
  73. package/dist/core/agent/compaction.js +1 -1
  74. package/dist/core/agent/completionController.d.ts +7 -13
  75. package/dist/core/agent/completionController.js +17 -8
  76. package/dist/core/agent/contextBudget.d.ts +0 -4
  77. package/dist/core/agent/contextBudget.js +3 -3
  78. package/dist/core/agent/errors.d.ts +0 -1
  79. package/dist/core/agent/errors.js +1 -1
  80. package/dist/core/agent/events.d.ts +5 -1
  81. package/dist/core/{goal/completionPolicy.d.ts → agent/goalPolicy.d.ts} +18 -0
  82. package/dist/core/agent/goalPolicy.js +106 -0
  83. package/dist/core/agent/requestAssembly.d.ts +2 -2
  84. package/dist/core/agent/requestAssembly.js +16 -4
  85. package/dist/core/agent/toolCapabilities.d.ts +2 -2
  86. package/dist/core/agent/toolCapabilities.js +5 -5
  87. package/dist/core/agent/toolOutputStore.js +1 -1
  88. package/dist/core/agent/toolResults.js +1 -1
  89. package/dist/core/agent/workState.d.ts +6 -3
  90. package/dist/core/agent/workState.js +62 -7
  91. package/dist/core/attachments/imageAttachments.js +90 -42
  92. package/dist/core/deadline.d.ts +0 -6
  93. package/dist/core/deadline.js +1 -1
  94. package/dist/core/io/boundedRead.js +1 -1
  95. package/dist/core/limits.d.ts +51 -0
  96. package/dist/core/limits.js +51 -0
  97. package/dist/core/log/llmLog.js +1 -1
  98. package/dist/core/process/backgroundRegistry.d.ts +2 -3
  99. package/dist/core/process/backgroundRegistry.js +10 -6
  100. package/dist/core/process/userShell.d.ts +16 -0
  101. package/dist/core/process/userShell.js +59 -0
  102. package/dist/core/safety/secretPaths.d.ts +18 -0
  103. package/dist/core/safety/secretPaths.js +115 -0
  104. package/dist/core/safety/shellClassifier.d.ts +11 -0
  105. package/dist/core/safety/{bashClassifier.js → shellClassifier.js} +5 -3
  106. package/dist/core/safety/urlGuard.d.ts +1 -1
  107. package/dist/core/session/sessionSlimming.d.ts +0 -3
  108. package/dist/core/session/sessionSlimming.js +2 -3
  109. package/dist/core/session/sessionStore.d.ts +1 -0
  110. package/dist/core/session/sessionStore.js +39 -20
  111. package/dist/core/{bashOutput → shellOutput}/lineFilter.js +8 -2
  112. package/dist/core/{bashOutput → shellOutput}/reducers/search.d.ts +0 -1
  113. package/dist/core/{bashOutput → shellOutput}/reducers/search.js +1 -1
  114. package/dist/core/shellOutput/registry.d.ts +2 -0
  115. package/dist/core/{bashOutput → shellOutput}/registry.js +3 -3
  116. package/dist/core/{bashOutput → shellOutput}/types.d.ts +6 -5
  117. package/dist/core/subagent/contracts.d.ts +2 -14
  118. package/dist/core/subagent/contracts.js +3 -3
  119. package/dist/core/subagent/executionProfiles.js +2 -2
  120. package/dist/core/subagent/subagentRunner.js +3 -4
  121. package/dist/core/toolOutput/reduction.d.ts +0 -12
  122. package/dist/core/toolOutput/reduction.js +1 -1
  123. package/dist/core/validation/outputParser.d.ts +2 -2
  124. package/dist/llm/client.js +5 -1
  125. package/dist/llm/hazeTools.d.ts +139 -124
  126. package/dist/llm/hazeTools.js +20 -11
  127. package/dist/llm/initPrompt.js +1 -1
  128. package/dist/llm/lsp/client.d.ts +45 -0
  129. package/dist/llm/lsp/client.js +195 -0
  130. package/dist/llm/lsp/pool.d.ts +23 -0
  131. package/dist/llm/lsp/pool.js +86 -0
  132. package/dist/llm/lsp/protocol.d.ts +64 -0
  133. package/dist/llm/lsp/protocol.js +128 -0
  134. package/dist/llm/lsp/requests.d.ts +94 -0
  135. package/dist/llm/lsp/requests.js +119 -0
  136. package/dist/llm/lspTools.d.ts +3824 -570
  137. package/dist/llm/lspTools.js +65 -1
  138. package/dist/llm/openaiCodex.d.ts +0 -2
  139. package/dist/llm/openaiCodex.js +0 -4
  140. package/dist/llm/openaiCodexOAuth.d.ts +0 -3
  141. package/dist/llm/openaiCodexOAuth.js +6 -3
  142. package/dist/llm/requestContext.d.ts +5 -1
  143. package/dist/llm/requestContext.js +25 -2
  144. package/dist/llm/systemPrompt.d.ts +1 -0
  145. package/dist/llm/systemPrompt.js +16 -7
  146. package/dist/llm/toolResultTypes.d.ts +1 -15
  147. package/dist/llm/toolResultTypes.js +1 -4
  148. package/dist/llm/tools/editMatch.d.ts +0 -9
  149. package/dist/llm/tools/editMatch.js +1 -1
  150. package/dist/llm/tools/failures.d.ts +6 -0
  151. package/dist/llm/tools/failures.js +8 -2
  152. package/dist/llm/tools/fetchTool.js +1 -1
  153. package/dist/llm/tools/fileToolShared.d.ts +4 -2
  154. package/dist/llm/tools/fileToolShared.js +9 -5
  155. package/dist/llm/tools/gitIgnore.d.ts +25 -32
  156. package/dist/llm/tools/gitIgnore.js +216 -98
  157. package/dist/llm/tools/grepParse.d.ts +2 -1
  158. package/dist/llm/tools/grepRunner.d.ts +1 -1
  159. package/dist/llm/tools/grepRunner.js +2 -2
  160. package/dist/llm/tools/outputCap.d.ts +2 -7
  161. package/dist/llm/tools/outputCap.js +3 -3
  162. package/dist/llm/tools/processTool.d.ts +16 -16
  163. package/dist/llm/tools/processTool.js +1 -1
  164. package/dist/llm/tools/readRecovery.d.ts +0 -2
  165. package/dist/llm/tools/readRecovery.js +4 -2
  166. package/dist/llm/tools/{bashTool.d.ts → shellTool.d.ts} +123 -107
  167. package/dist/llm/tools/{bashTool.js → shellTool.js} +18 -14
  168. package/dist/llm/tools/toolContext.js +5 -5
  169. package/dist/llm/tools/workspaceFile.d.ts +4 -4
  170. package/dist/llm/tools/workspaceFile.js +29 -17
  171. package/dist/llm/webFetch.d.ts +1 -1
  172. package/dist/skills/SkillLoader.d.ts +1 -11
  173. package/dist/skills/SkillLoader.js +1 -2
  174. package/dist/skills/types.d.ts +2 -1
  175. package/dist/ui/components/Header.js +1 -1
  176. package/dist/ui/components/MarkdownText.js +10 -10
  177. package/dist/ui/components/TextInput.d.ts +1 -1
  178. package/dist/ui/components/TextInput.js +2 -2
  179. package/dist/ui/terminalColors.d.ts +29 -0
  180. package/dist/ui/terminalColors.js +47 -0
  181. package/dist/ui/theme.d.ts +105 -10
  182. package/dist/ui/theme.js +126 -15
  183. package/dist/ui/themes/af-magic.d.ts +7 -0
  184. package/dist/ui/themes/af-magic.js +25 -0
  185. package/dist/ui/themes/agnoster.d.ts +10 -0
  186. package/dist/ui/themes/agnoster.js +40 -0
  187. package/dist/ui/themes/bira.d.ts +10 -0
  188. package/dist/ui/themes/bira.js +28 -0
  189. package/dist/ui/themes/bureau.d.ts +10 -0
  190. package/dist/ui/themes/bureau.js +28 -0
  191. package/dist/ui/themes/clean.d.ts +9 -0
  192. package/dist/ui/themes/clean.js +27 -0
  193. package/dist/ui/themes/cloud.d.ts +6 -0
  194. package/dist/ui/themes/cloud.js +24 -0
  195. package/dist/ui/themes/dst.d.ts +10 -0
  196. package/dist/ui/themes/dst.js +28 -0
  197. package/dist/ui/themes/fishy.d.ts +7 -0
  198. package/dist/ui/themes/fishy.js +25 -0
  199. package/dist/ui/themes/index.d.ts +8 -0
  200. package/dist/ui/themes/index.js +36 -0
  201. package/dist/ui/themes/light.d.ts +3 -0
  202. package/dist/ui/themes/light.js +21 -0
  203. package/dist/ui/themes/purple.d.ts +7 -0
  204. package/dist/ui/themes/purple.js +26 -0
  205. package/dist/ui/themes/robbyrussell.d.ts +8 -0
  206. package/dist/ui/themes/robbyrussell.js +26 -0
  207. package/dist/ui/themes/solarized-dark.d.ts +16 -0
  208. package/dist/ui/themes/solarized-dark.js +44 -0
  209. package/dist/ui/themes/solarized-light.d.ts +12 -0
  210. package/dist/ui/themes/solarized-light.js +40 -0
  211. package/dist/ui/themes/steeef.d.ts +11 -0
  212. package/dist/ui/themes/steeef.js +29 -0
  213. package/dist/utils/buildInfo.d.ts +6 -13
  214. package/dist/utils/buildInfo.js +6 -15
  215. package/dist/utils/fs.d.ts +7 -5
  216. package/dist/utils/fs.js +5 -2
  217. package/dist/utils/path.d.ts +0 -1
  218. package/dist/utils/path.js +1 -1
  219. package/package.json +6 -4
  220. package/dist/cli/commands/lspWizard.d.ts +0 -14
  221. package/dist/cli/commands/lspWizard.js +0 -44
  222. package/dist/cli/commands/mcpWizard.d.ts +0 -15
  223. package/dist/cli/commands/skillConfirmRemove.d.ts +0 -11
  224. package/dist/cli/commands/skillConfirmRemove.js +0 -20
  225. package/dist/cli/commands/skillCreation.d.ts +0 -12
  226. package/dist/cli/commands/skillCreation.js +0 -14
  227. package/dist/cli/commands/skillWizard.d.ts +0 -17
  228. package/dist/cli/commands/streaming/idleTimer.d.ts +0 -26
  229. package/dist/cli/commands/streaming/idleTimer.js +0 -24
  230. package/dist/cli/commands/streaming/turnOutcome.d.ts +0 -27
  231. package/dist/cli/commands/streaming/turnOutcome.js +0 -29
  232. package/dist/cli/commands/wizardActions.d.ts +0 -47
  233. package/dist/cli/commands/wizardActions.js +0 -47
  234. package/dist/cli/commands/wizardInput.d.ts +0 -4
  235. package/dist/cli/commands/wizardInput.js +0 -19
  236. package/dist/cli/commands/wizardPrompts.d.ts +0 -22
  237. package/dist/cli/commands/wizardPrompts.js +0 -58
  238. package/dist/cli/commands/wizardSuggestions.d.ts +0 -31
  239. package/dist/cli/commands/wizardSuggestions.js +0 -190
  240. package/dist/cli/commands/wizardTransition.d.ts +0 -37
  241. package/dist/cli/commands/wizardTransition.js +0 -43
  242. package/dist/core/agent/toolExecutionBudget.d.ts +0 -35
  243. package/dist/core/agent/toolExecutionBudget.js +0 -49
  244. package/dist/core/agent/turnBudget.d.ts +0 -35
  245. package/dist/core/agent/turnBudget.js +0 -27
  246. package/dist/core/bashOutput/ansi.d.ts +0 -1
  247. package/dist/core/bashOutput/ansi.js +0 -7
  248. package/dist/core/bashOutput/registry.d.ts +0 -4
  249. package/dist/core/goal/completionPolicy.js +0 -43
  250. package/dist/core/goal/requestClassifier.d.ts +0 -3
  251. package/dist/core/goal/requestClassifier.js +0 -18
  252. package/dist/core/goal/sessionGoal.d.ts +0 -8
  253. package/dist/core/goal/sessionGoal.js +0 -30
  254. package/dist/core/limits/byteBudgets.d.ts +0 -20
  255. package/dist/core/limits/byteBudgets.js +0 -20
  256. package/dist/core/limits/textBudgets.d.ts +0 -25
  257. package/dist/core/limits/textBudgets.js +0 -25
  258. package/dist/core/safety/bashClassifier.d.ts +0 -10
  259. package/dist/llm/lsp.d.ts +0 -149
  260. package/dist/llm/lsp.js +0 -368
  261. package/dist/ui/components/ErrorView.d.ts +0 -4
  262. package/dist/ui/components/ErrorView.js +0 -7
  263. package/dist/utils/yaml.d.ts +0 -2
  264. package/dist/utils/yaml.js +0 -8
  265. package/examples/skills/files/SKILL.md +0 -16
  266. package/examples/skills/files/examples/file-editing.md +0 -3
  267. /package/dist/core/{bashOutput → shellOutput}/command.d.ts +0 -0
  268. /package/dist/core/{bashOutput → shellOutput}/command.js +0 -0
  269. /package/dist/core/{bashOutput → shellOutput}/lineFilter.d.ts +0 -0
  270. /package/dist/core/{bashOutput → shellOutput}/reducers/content.d.ts +0 -0
  271. /package/dist/core/{bashOutput → shellOutput}/reducers/content.js +0 -0
  272. /package/dist/core/{bashOutput → shellOutput}/reducers/gh.d.ts +0 -0
  273. /package/dist/core/{bashOutput → shellOutput}/reducers/gh.js +0 -0
  274. /package/dist/core/{bashOutput → shellOutput}/reducers/git.d.ts +0 -0
  275. /package/dist/core/{bashOutput → shellOutput}/reducers/git.js +0 -0
  276. /package/dist/core/{bashOutput → shellOutput}/reducers/validation.d.ts +0 -0
  277. /package/dist/core/{bashOutput → shellOutput}/reducers/validation.js +0 -0
  278. /package/dist/core/{bashOutput → shellOutput}/types.js +0 -0
@@ -7959,20 +7959,20 @@ export declare const hazeTools: {
7959
7959
  parseTier: string;
7960
7960
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7961
7961
  });
7962
- bash: ({
7962
+ shell: ({
7963
7963
  title?: string;
7964
7964
  providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
7965
7965
  metadata?: import("@ai-sdk/provider").JSONObject;
7966
7966
  inputSchema: import("ai").FlexibleSchema<{
7967
7967
  command: string;
7968
- allowMutation: boolean;
7968
+ purpose: "validation" | "auto";
7969
7969
  background: boolean;
7970
7970
  timeoutSeconds?: number | undefined;
7971
7971
  }>;
7972
7972
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
7973
7973
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
7974
7974
  command: string;
7975
- allowMutation: boolean;
7975
+ purpose: "validation" | "auto";
7976
7976
  background: boolean;
7977
7977
  timeoutSeconds?: number | undefined;
7978
7978
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
@@ -7983,7 +7983,7 @@ export declare const hazeTools: {
7983
7983
  onInputAvailable?: ((options: {
7984
7984
  input: {
7985
7985
  command: string;
7986
- allowMutation: boolean;
7986
+ purpose: "validation" | "auto";
7987
7987
  background: boolean;
7988
7988
  timeoutSeconds?: number | undefined;
7989
7989
  };
@@ -7992,7 +7992,7 @@ export declare const hazeTools: {
7992
7992
  toolCallId: string;
7993
7993
  input: {
7994
7994
  command: string;
7995
- allowMutation: boolean;
7995
+ purpose: "validation" | "auto";
7996
7996
  background: boolean;
7997
7997
  timeoutSeconds?: number | undefined;
7998
7998
  };
@@ -8010,14 +8010,14 @@ export declare const hazeTools: {
8010
8010
  suggestedNextStep: string;
8011
8011
  background?: undefined;
8012
8012
  } | {
8013
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8013
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8014
8014
  hint: string;
8015
8015
  backgroundId: string;
8016
8016
  pid?: number;
8017
8017
  command: string;
8018
8018
  cwd: string;
8019
8019
  startedAt: string;
8020
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8020
+ status: "failed" | "killed" | "running" | "exited";
8021
8021
  code?: number | null;
8022
8022
  signal?: NodeJS.Signals | null;
8023
8023
  outputHandle: string;
@@ -8048,15 +8048,16 @@ export declare const hazeTools: {
8048
8048
  ok: boolean;
8049
8049
  code: number | null;
8050
8050
  command: string;
8051
+ purpose: "validation" | "auto";
8051
8052
  cwd: string;
8052
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8053
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8053
8054
  durationMs: number;
8054
8055
  timedOut: boolean;
8055
8056
  aborted: boolean;
8056
8057
  signal: NodeJS.Signals | null;
8057
8058
  forcedTermination: boolean;
8058
- stdout: import("../core/bashOutput/types.js").StreamReduction;
8059
- stderr: import("../core/bashOutput/types.js").StreamReduction;
8059
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
8060
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
8060
8061
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8061
8062
  stdoutBytes: {
8062
8063
  totalBytes: number;
@@ -8088,14 +8089,14 @@ export declare const hazeTools: {
8088
8089
  suggestedNextStep: string;
8089
8090
  background?: undefined;
8090
8091
  } | {
8091
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8092
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8092
8093
  hint: string;
8093
8094
  backgroundId: string;
8094
8095
  pid?: number;
8095
8096
  command: string;
8096
8097
  cwd: string;
8097
8098
  startedAt: string;
8098
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8099
+ status: "failed" | "killed" | "running" | "exited";
8099
8100
  code?: number | null;
8100
8101
  signal?: NodeJS.Signals | null;
8101
8102
  outputHandle: string;
@@ -8126,15 +8127,16 @@ export declare const hazeTools: {
8126
8127
  ok: boolean;
8127
8128
  code: number | null;
8128
8129
  command: string;
8130
+ purpose: "validation" | "auto";
8129
8131
  cwd: string;
8130
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8132
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8131
8133
  durationMs: number;
8132
8134
  timedOut: boolean;
8133
8135
  aborted: boolean;
8134
8136
  signal: NodeJS.Signals | null;
8135
8137
  forcedTermination: boolean;
8136
- stdout: import("../core/bashOutput/types.js").StreamReduction;
8137
- stderr: import("../core/bashOutput/types.js").StreamReduction;
8138
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
8139
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
8138
8140
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8139
8141
  stdoutBytes: {
8140
8142
  totalBytes: number;
@@ -8152,7 +8154,7 @@ export declare const hazeTools: {
8152
8154
  }> | undefined;
8153
8155
  execute: import("ai").ToolExecuteFunction<{
8154
8156
  command: string;
8155
- allowMutation: boolean;
8157
+ purpose: "validation" | "auto";
8156
8158
  background: boolean;
8157
8159
  timeoutSeconds?: number | undefined;
8158
8160
  }, {
@@ -8169,14 +8171,14 @@ export declare const hazeTools: {
8169
8171
  suggestedNextStep: string;
8170
8172
  background?: undefined;
8171
8173
  } | {
8172
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8174
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8173
8175
  hint: string;
8174
8176
  backgroundId: string;
8175
8177
  pid?: number;
8176
8178
  command: string;
8177
8179
  cwd: string;
8178
8180
  startedAt: string;
8179
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8181
+ status: "failed" | "killed" | "running" | "exited";
8180
8182
  code?: number | null;
8181
8183
  signal?: NodeJS.Signals | null;
8182
8184
  outputHandle: string;
@@ -8207,15 +8209,16 @@ export declare const hazeTools: {
8207
8209
  ok: boolean;
8208
8210
  code: number | null;
8209
8211
  command: string;
8212
+ purpose: "validation" | "auto";
8210
8213
  cwd: string;
8211
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8214
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8212
8215
  durationMs: number;
8213
8216
  timedOut: boolean;
8214
8217
  aborted: boolean;
8215
8218
  signal: NodeJS.Signals | null;
8216
8219
  forcedTermination: boolean;
8217
- stdout: import("../core/bashOutput/types.js").StreamReduction;
8218
- stderr: import("../core/bashOutput/types.js").StreamReduction;
8220
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
8221
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
8219
8222
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8220
8223
  stdoutBytes: {
8221
8224
  totalBytes: number;
@@ -8240,7 +8243,7 @@ export declare const hazeTools: {
8240
8243
  inputExamples?: {
8241
8244
  input: NoInfer<{
8242
8245
  command: string;
8243
- allowMutation: boolean;
8246
+ purpose: "validation" | "auto";
8244
8247
  background: boolean;
8245
8248
  timeoutSeconds?: number | undefined;
8246
8249
  }>;
@@ -8254,7 +8257,7 @@ export declare const hazeTools: {
8254
8257
  } & {
8255
8258
  execute: import("ai").ToolExecuteFunction<{
8256
8259
  command: string;
8257
- allowMutation: boolean;
8260
+ purpose: "validation" | "auto";
8258
8261
  background: boolean;
8259
8262
  timeoutSeconds?: number | undefined;
8260
8263
  }, {
@@ -8271,14 +8274,14 @@ export declare const hazeTools: {
8271
8274
  suggestedNextStep: string;
8272
8275
  background?: undefined;
8273
8276
  } | {
8274
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8277
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8275
8278
  hint: string;
8276
8279
  backgroundId: string;
8277
8280
  pid?: number;
8278
8281
  command: string;
8279
8282
  cwd: string;
8280
8283
  startedAt: string;
8281
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8284
+ status: "failed" | "killed" | "running" | "exited";
8282
8285
  code?: number | null;
8283
8286
  signal?: NodeJS.Signals | null;
8284
8287
  outputHandle: string;
@@ -8309,15 +8312,16 @@ export declare const hazeTools: {
8309
8312
  ok: boolean;
8310
8313
  code: number | null;
8311
8314
  command: string;
8315
+ purpose: "validation" | "auto";
8312
8316
  cwd: string;
8313
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8317
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8314
8318
  durationMs: number;
8315
8319
  timedOut: boolean;
8316
8320
  aborted: boolean;
8317
8321
  signal: NodeJS.Signals | null;
8318
8322
  forcedTermination: boolean;
8319
- stdout: import("../core/bashOutput/types.js").StreamReduction;
8320
- stderr: import("../core/bashOutput/types.js").StreamReduction;
8323
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
8324
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
8321
8325
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8322
8326
  stdoutBytes: {
8323
8327
  totalBytes: number;
@@ -8339,14 +8343,14 @@ export declare const hazeTools: {
8339
8343
  metadata?: import("@ai-sdk/provider").JSONObject;
8340
8344
  inputSchema: import("ai").FlexibleSchema<{
8341
8345
  command: string;
8342
- allowMutation: boolean;
8346
+ purpose: "validation" | "auto";
8343
8347
  background: boolean;
8344
8348
  timeoutSeconds?: number | undefined;
8345
8349
  }>;
8346
8350
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
8347
8351
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
8348
8352
  command: string;
8349
- allowMutation: boolean;
8353
+ purpose: "validation" | "auto";
8350
8354
  background: boolean;
8351
8355
  timeoutSeconds?: number | undefined;
8352
8356
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
@@ -8357,7 +8361,7 @@ export declare const hazeTools: {
8357
8361
  onInputAvailable?: ((options: {
8358
8362
  input: {
8359
8363
  command: string;
8360
- allowMutation: boolean;
8364
+ purpose: "validation" | "auto";
8361
8365
  background: boolean;
8362
8366
  timeoutSeconds?: number | undefined;
8363
8367
  };
@@ -8366,7 +8370,7 @@ export declare const hazeTools: {
8366
8370
  toolCallId: string;
8367
8371
  input: {
8368
8372
  command: string;
8369
- allowMutation: boolean;
8373
+ purpose: "validation" | "auto";
8370
8374
  background: boolean;
8371
8375
  timeoutSeconds?: number | undefined;
8372
8376
  };
@@ -8384,14 +8388,14 @@ export declare const hazeTools: {
8384
8388
  suggestedNextStep: string;
8385
8389
  background?: undefined;
8386
8390
  } | {
8387
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8391
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8388
8392
  hint: string;
8389
8393
  backgroundId: string;
8390
8394
  pid?: number;
8391
8395
  command: string;
8392
8396
  cwd: string;
8393
8397
  startedAt: string;
8394
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8398
+ status: "failed" | "killed" | "running" | "exited";
8395
8399
  code?: number | null;
8396
8400
  signal?: NodeJS.Signals | null;
8397
8401
  outputHandle: string;
@@ -8422,15 +8426,16 @@ export declare const hazeTools: {
8422
8426
  ok: boolean;
8423
8427
  code: number | null;
8424
8428
  command: string;
8429
+ purpose: "validation" | "auto";
8425
8430
  cwd: string;
8426
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8431
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8427
8432
  durationMs: number;
8428
8433
  timedOut: boolean;
8429
8434
  aborted: boolean;
8430
8435
  signal: NodeJS.Signals | null;
8431
8436
  forcedTermination: boolean;
8432
- stdout: import("../core/bashOutput/types.js").StreamReduction;
8433
- stderr: import("../core/bashOutput/types.js").StreamReduction;
8437
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
8438
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
8434
8439
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8435
8440
  stdoutBytes: {
8436
8441
  totalBytes: number;
@@ -8462,14 +8467,14 @@ export declare const hazeTools: {
8462
8467
  suggestedNextStep: string;
8463
8468
  background?: undefined;
8464
8469
  } | {
8465
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8470
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8466
8471
  hint: string;
8467
8472
  backgroundId: string;
8468
8473
  pid?: number;
8469
8474
  command: string;
8470
8475
  cwd: string;
8471
8476
  startedAt: string;
8472
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8477
+ status: "failed" | "killed" | "running" | "exited";
8473
8478
  code?: number | null;
8474
8479
  signal?: NodeJS.Signals | null;
8475
8480
  outputHandle: string;
@@ -8500,15 +8505,16 @@ export declare const hazeTools: {
8500
8505
  ok: boolean;
8501
8506
  code: number | null;
8502
8507
  command: string;
8508
+ purpose: "validation" | "auto";
8503
8509
  cwd: string;
8504
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8510
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8505
8511
  durationMs: number;
8506
8512
  timedOut: boolean;
8507
8513
  aborted: boolean;
8508
8514
  signal: NodeJS.Signals | null;
8509
8515
  forcedTermination: boolean;
8510
- stdout: import("../core/bashOutput/types.js").StreamReduction;
8511
- stderr: import("../core/bashOutput/types.js").StreamReduction;
8516
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
8517
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
8512
8518
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8513
8519
  stdoutBytes: {
8514
8520
  totalBytes: number;
@@ -8526,7 +8532,7 @@ export declare const hazeTools: {
8526
8532
  }> | undefined;
8527
8533
  execute: import("ai").ToolExecuteFunction<{
8528
8534
  command: string;
8529
- allowMutation: boolean;
8535
+ purpose: "validation" | "auto";
8530
8536
  background: boolean;
8531
8537
  timeoutSeconds?: number | undefined;
8532
8538
  }, {
@@ -8543,14 +8549,14 @@ export declare const hazeTools: {
8543
8549
  suggestedNextStep: string;
8544
8550
  background?: undefined;
8545
8551
  } | {
8546
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8552
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8547
8553
  hint: string;
8548
8554
  backgroundId: string;
8549
8555
  pid?: number;
8550
8556
  command: string;
8551
8557
  cwd: string;
8552
8558
  startedAt: string;
8553
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8559
+ status: "failed" | "killed" | "running" | "exited";
8554
8560
  code?: number | null;
8555
8561
  signal?: NodeJS.Signals | null;
8556
8562
  outputHandle: string;
@@ -8581,15 +8587,16 @@ export declare const hazeTools: {
8581
8587
  ok: boolean;
8582
8588
  code: number | null;
8583
8589
  command: string;
8590
+ purpose: "validation" | "auto";
8584
8591
  cwd: string;
8585
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8592
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8586
8593
  durationMs: number;
8587
8594
  timedOut: boolean;
8588
8595
  aborted: boolean;
8589
8596
  signal: NodeJS.Signals | null;
8590
8597
  forcedTermination: boolean;
8591
- stdout: import("../core/bashOutput/types.js").StreamReduction;
8592
- stderr: import("../core/bashOutput/types.js").StreamReduction;
8598
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
8599
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
8593
8600
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8594
8601
  stdoutBytes: {
8595
8602
  totalBytes: number;
@@ -8614,7 +8621,7 @@ export declare const hazeTools: {
8614
8621
  inputExamples?: {
8615
8622
  input: NoInfer<{
8616
8623
  command: string;
8617
- allowMutation: boolean;
8624
+ purpose: "validation" | "auto";
8618
8625
  background: boolean;
8619
8626
  timeoutSeconds?: number | undefined;
8620
8627
  }>;
@@ -8628,7 +8635,7 @@ export declare const hazeTools: {
8628
8635
  } & {
8629
8636
  execute: import("ai").ToolExecuteFunction<{
8630
8637
  command: string;
8631
- allowMutation: boolean;
8638
+ purpose: "validation" | "auto";
8632
8639
  background: boolean;
8633
8640
  timeoutSeconds?: number | undefined;
8634
8641
  }, {
@@ -8645,14 +8652,14 @@ export declare const hazeTools: {
8645
8652
  suggestedNextStep: string;
8646
8653
  background?: undefined;
8647
8654
  } | {
8648
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8655
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8649
8656
  hint: string;
8650
8657
  backgroundId: string;
8651
8658
  pid?: number;
8652
8659
  command: string;
8653
8660
  cwd: string;
8654
8661
  startedAt: string;
8655
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8662
+ status: "failed" | "killed" | "running" | "exited";
8656
8663
  code?: number | null;
8657
8664
  signal?: NodeJS.Signals | null;
8658
8665
  outputHandle: string;
@@ -8683,15 +8690,16 @@ export declare const hazeTools: {
8683
8690
  ok: boolean;
8684
8691
  code: number | null;
8685
8692
  command: string;
8693
+ purpose: "validation" | "auto";
8686
8694
  cwd: string;
8687
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8695
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8688
8696
  durationMs: number;
8689
8697
  timedOut: boolean;
8690
8698
  aborted: boolean;
8691
8699
  signal: NodeJS.Signals | null;
8692
8700
  forcedTermination: boolean;
8693
- stdout: import("../core/bashOutput/types.js").StreamReduction;
8694
- stderr: import("../core/bashOutput/types.js").StreamReduction;
8701
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
8702
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
8695
8703
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8696
8704
  stdoutBytes: {
8697
8705
  totalBytes: number;
@@ -8713,14 +8721,14 @@ export declare const hazeTools: {
8713
8721
  metadata?: import("@ai-sdk/provider").JSONObject;
8714
8722
  inputSchema: import("ai").FlexibleSchema<{
8715
8723
  command: string;
8716
- allowMutation: boolean;
8724
+ purpose: "validation" | "auto";
8717
8725
  background: boolean;
8718
8726
  timeoutSeconds?: number | undefined;
8719
8727
  }>;
8720
8728
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
8721
8729
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
8722
8730
  command: string;
8723
- allowMutation: boolean;
8731
+ purpose: "validation" | "auto";
8724
8732
  background: boolean;
8725
8733
  timeoutSeconds?: number | undefined;
8726
8734
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
@@ -8731,7 +8739,7 @@ export declare const hazeTools: {
8731
8739
  onInputAvailable?: ((options: {
8732
8740
  input: {
8733
8741
  command: string;
8734
- allowMutation: boolean;
8742
+ purpose: "validation" | "auto";
8735
8743
  background: boolean;
8736
8744
  timeoutSeconds?: number | undefined;
8737
8745
  };
@@ -8740,7 +8748,7 @@ export declare const hazeTools: {
8740
8748
  toolCallId: string;
8741
8749
  input: {
8742
8750
  command: string;
8743
- allowMutation: boolean;
8751
+ purpose: "validation" | "auto";
8744
8752
  background: boolean;
8745
8753
  timeoutSeconds?: number | undefined;
8746
8754
  };
@@ -8758,14 +8766,14 @@ export declare const hazeTools: {
8758
8766
  suggestedNextStep: string;
8759
8767
  background?: undefined;
8760
8768
  } | {
8761
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8769
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8762
8770
  hint: string;
8763
8771
  backgroundId: string;
8764
8772
  pid?: number;
8765
8773
  command: string;
8766
8774
  cwd: string;
8767
8775
  startedAt: string;
8768
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8776
+ status: "failed" | "killed" | "running" | "exited";
8769
8777
  code?: number | null;
8770
8778
  signal?: NodeJS.Signals | null;
8771
8779
  outputHandle: string;
@@ -8796,15 +8804,16 @@ export declare const hazeTools: {
8796
8804
  ok: boolean;
8797
8805
  code: number | null;
8798
8806
  command: string;
8807
+ purpose: "validation" | "auto";
8799
8808
  cwd: string;
8800
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8809
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8801
8810
  durationMs: number;
8802
8811
  timedOut: boolean;
8803
8812
  aborted: boolean;
8804
8813
  signal: NodeJS.Signals | null;
8805
8814
  forcedTermination: boolean;
8806
- stdout: import("../core/bashOutput/types.js").StreamReduction;
8807
- stderr: import("../core/bashOutput/types.js").StreamReduction;
8815
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
8816
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
8808
8817
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8809
8818
  stdoutBytes: {
8810
8819
  totalBytes: number;
@@ -8836,14 +8845,14 @@ export declare const hazeTools: {
8836
8845
  suggestedNextStep: string;
8837
8846
  background?: undefined;
8838
8847
  } | {
8839
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8848
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8840
8849
  hint: string;
8841
8850
  backgroundId: string;
8842
8851
  pid?: number;
8843
8852
  command: string;
8844
8853
  cwd: string;
8845
8854
  startedAt: string;
8846
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8855
+ status: "failed" | "killed" | "running" | "exited";
8847
8856
  code?: number | null;
8848
8857
  signal?: NodeJS.Signals | null;
8849
8858
  outputHandle: string;
@@ -8874,15 +8883,16 @@ export declare const hazeTools: {
8874
8883
  ok: boolean;
8875
8884
  code: number | null;
8876
8885
  command: string;
8886
+ purpose: "validation" | "auto";
8877
8887
  cwd: string;
8878
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8888
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8879
8889
  durationMs: number;
8880
8890
  timedOut: boolean;
8881
8891
  aborted: boolean;
8882
8892
  signal: NodeJS.Signals | null;
8883
8893
  forcedTermination: boolean;
8884
- stdout: import("../core/bashOutput/types.js").StreamReduction;
8885
- stderr: import("../core/bashOutput/types.js").StreamReduction;
8894
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
8895
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
8886
8896
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8887
8897
  stdoutBytes: {
8888
8898
  totalBytes: number;
@@ -8900,7 +8910,7 @@ export declare const hazeTools: {
8900
8910
  }> | undefined;
8901
8911
  execute: import("ai").ToolExecuteFunction<{
8902
8912
  command: string;
8903
- allowMutation: boolean;
8913
+ purpose: "validation" | "auto";
8904
8914
  background: boolean;
8905
8915
  timeoutSeconds?: number | undefined;
8906
8916
  }, {
@@ -8917,14 +8927,14 @@ export declare const hazeTools: {
8917
8927
  suggestedNextStep: string;
8918
8928
  background?: undefined;
8919
8929
  } | {
8920
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8930
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8921
8931
  hint: string;
8922
8932
  backgroundId: string;
8923
8933
  pid?: number;
8924
8934
  command: string;
8925
8935
  cwd: string;
8926
8936
  startedAt: string;
8927
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8937
+ status: "failed" | "killed" | "running" | "exited";
8928
8938
  code?: number | null;
8929
8939
  signal?: NodeJS.Signals | null;
8930
8940
  outputHandle: string;
@@ -8955,15 +8965,16 @@ export declare const hazeTools: {
8955
8965
  ok: boolean;
8956
8966
  code: number | null;
8957
8967
  command: string;
8968
+ purpose: "validation" | "auto";
8958
8969
  cwd: string;
8959
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8970
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
8960
8971
  durationMs: number;
8961
8972
  timedOut: boolean;
8962
8973
  aborted: boolean;
8963
8974
  signal: NodeJS.Signals | null;
8964
8975
  forcedTermination: boolean;
8965
- stdout: import("../core/bashOutput/types.js").StreamReduction;
8966
- stderr: import("../core/bashOutput/types.js").StreamReduction;
8976
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
8977
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
8967
8978
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8968
8979
  stdoutBytes: {
8969
8980
  totalBytes: number;
@@ -8992,7 +9003,7 @@ export declare const hazeTools: {
8992
9003
  } & {
8993
9004
  execute: import("ai").ToolExecuteFunction<{
8994
9005
  command: string;
8995
- allowMutation: boolean;
9006
+ purpose: "validation" | "auto";
8996
9007
  background: boolean;
8997
9008
  timeoutSeconds?: number | undefined;
8998
9009
  }, {
@@ -9009,14 +9020,14 @@ export declare const hazeTools: {
9009
9020
  suggestedNextStep: string;
9010
9021
  background?: undefined;
9011
9022
  } | {
9012
- classification: import("../core/safety/bashClassifier.js").BashClassification;
9023
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
9013
9024
  hint: string;
9014
9025
  backgroundId: string;
9015
9026
  pid?: number;
9016
9027
  command: string;
9017
9028
  cwd: string;
9018
9029
  startedAt: string;
9019
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9030
+ status: "failed" | "killed" | "running" | "exited";
9020
9031
  code?: number | null;
9021
9032
  signal?: NodeJS.Signals | null;
9022
9033
  outputHandle: string;
@@ -9047,15 +9058,16 @@ export declare const hazeTools: {
9047
9058
  ok: boolean;
9048
9059
  code: number | null;
9049
9060
  command: string;
9061
+ purpose: "validation" | "auto";
9050
9062
  cwd: string;
9051
- classification: import("../core/safety/bashClassifier.js").BashClassification;
9063
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
9052
9064
  durationMs: number;
9053
9065
  timedOut: boolean;
9054
9066
  aborted: boolean;
9055
9067
  signal: NodeJS.Signals | null;
9056
9068
  forcedTermination: boolean;
9057
- stdout: import("../core/bashOutput/types.js").StreamReduction;
9058
- stderr: import("../core/bashOutput/types.js").StreamReduction;
9069
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
9070
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
9059
9071
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
9060
9072
  stdoutBytes: {
9061
9073
  totalBytes: number;
@@ -9077,14 +9089,14 @@ export declare const hazeTools: {
9077
9089
  metadata?: import("@ai-sdk/provider").JSONObject;
9078
9090
  inputSchema: import("ai").FlexibleSchema<{
9079
9091
  command: string;
9080
- allowMutation: boolean;
9092
+ purpose: "validation" | "auto";
9081
9093
  background: boolean;
9082
9094
  timeoutSeconds?: number | undefined;
9083
9095
  }>;
9084
9096
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
9085
9097
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
9086
9098
  command: string;
9087
- allowMutation: boolean;
9099
+ purpose: "validation" | "auto";
9088
9100
  background: boolean;
9089
9101
  timeoutSeconds?: number | undefined;
9090
9102
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
@@ -9095,7 +9107,7 @@ export declare const hazeTools: {
9095
9107
  onInputAvailable?: ((options: {
9096
9108
  input: {
9097
9109
  command: string;
9098
- allowMutation: boolean;
9110
+ purpose: "validation" | "auto";
9099
9111
  background: boolean;
9100
9112
  timeoutSeconds?: number | undefined;
9101
9113
  };
@@ -9104,7 +9116,7 @@ export declare const hazeTools: {
9104
9116
  toolCallId: string;
9105
9117
  input: {
9106
9118
  command: string;
9107
- allowMutation: boolean;
9119
+ purpose: "validation" | "auto";
9108
9120
  background: boolean;
9109
9121
  timeoutSeconds?: number | undefined;
9110
9122
  };
@@ -9122,14 +9134,14 @@ export declare const hazeTools: {
9122
9134
  suggestedNextStep: string;
9123
9135
  background?: undefined;
9124
9136
  } | {
9125
- classification: import("../core/safety/bashClassifier.js").BashClassification;
9137
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
9126
9138
  hint: string;
9127
9139
  backgroundId: string;
9128
9140
  pid?: number;
9129
9141
  command: string;
9130
9142
  cwd: string;
9131
9143
  startedAt: string;
9132
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9144
+ status: "failed" | "killed" | "running" | "exited";
9133
9145
  code?: number | null;
9134
9146
  signal?: NodeJS.Signals | null;
9135
9147
  outputHandle: string;
@@ -9160,15 +9172,16 @@ export declare const hazeTools: {
9160
9172
  ok: boolean;
9161
9173
  code: number | null;
9162
9174
  command: string;
9175
+ purpose: "validation" | "auto";
9163
9176
  cwd: string;
9164
- classification: import("../core/safety/bashClassifier.js").BashClassification;
9177
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
9165
9178
  durationMs: number;
9166
9179
  timedOut: boolean;
9167
9180
  aborted: boolean;
9168
9181
  signal: NodeJS.Signals | null;
9169
9182
  forcedTermination: boolean;
9170
- stdout: import("../core/bashOutput/types.js").StreamReduction;
9171
- stderr: import("../core/bashOutput/types.js").StreamReduction;
9183
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
9184
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
9172
9185
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
9173
9186
  stdoutBytes: {
9174
9187
  totalBytes: number;
@@ -9200,14 +9213,14 @@ export declare const hazeTools: {
9200
9213
  suggestedNextStep: string;
9201
9214
  background?: undefined;
9202
9215
  } | {
9203
- classification: import("../core/safety/bashClassifier.js").BashClassification;
9216
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
9204
9217
  hint: string;
9205
9218
  backgroundId: string;
9206
9219
  pid?: number;
9207
9220
  command: string;
9208
9221
  cwd: string;
9209
9222
  startedAt: string;
9210
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9223
+ status: "failed" | "killed" | "running" | "exited";
9211
9224
  code?: number | null;
9212
9225
  signal?: NodeJS.Signals | null;
9213
9226
  outputHandle: string;
@@ -9238,15 +9251,16 @@ export declare const hazeTools: {
9238
9251
  ok: boolean;
9239
9252
  code: number | null;
9240
9253
  command: string;
9254
+ purpose: "validation" | "auto";
9241
9255
  cwd: string;
9242
- classification: import("../core/safety/bashClassifier.js").BashClassification;
9256
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
9243
9257
  durationMs: number;
9244
9258
  timedOut: boolean;
9245
9259
  aborted: boolean;
9246
9260
  signal: NodeJS.Signals | null;
9247
9261
  forcedTermination: boolean;
9248
- stdout: import("../core/bashOutput/types.js").StreamReduction;
9249
- stderr: import("../core/bashOutput/types.js").StreamReduction;
9262
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
9263
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
9250
9264
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
9251
9265
  stdoutBytes: {
9252
9266
  totalBytes: number;
@@ -9264,7 +9278,7 @@ export declare const hazeTools: {
9264
9278
  }> | undefined;
9265
9279
  execute: import("ai").ToolExecuteFunction<{
9266
9280
  command: string;
9267
- allowMutation: boolean;
9281
+ purpose: "validation" | "auto";
9268
9282
  background: boolean;
9269
9283
  timeoutSeconds?: number | undefined;
9270
9284
  }, {
@@ -9281,14 +9295,14 @@ export declare const hazeTools: {
9281
9295
  suggestedNextStep: string;
9282
9296
  background?: undefined;
9283
9297
  } | {
9284
- classification: import("../core/safety/bashClassifier.js").BashClassification;
9298
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
9285
9299
  hint: string;
9286
9300
  backgroundId: string;
9287
9301
  pid?: number;
9288
9302
  command: string;
9289
9303
  cwd: string;
9290
9304
  startedAt: string;
9291
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9305
+ status: "failed" | "killed" | "running" | "exited";
9292
9306
  code?: number | null;
9293
9307
  signal?: NodeJS.Signals | null;
9294
9308
  outputHandle: string;
@@ -9319,15 +9333,16 @@ export declare const hazeTools: {
9319
9333
  ok: boolean;
9320
9334
  code: number | null;
9321
9335
  command: string;
9336
+ purpose: "validation" | "auto";
9322
9337
  cwd: string;
9323
- classification: import("../core/safety/bashClassifier.js").BashClassification;
9338
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
9324
9339
  durationMs: number;
9325
9340
  timedOut: boolean;
9326
9341
  aborted: boolean;
9327
9342
  signal: NodeJS.Signals | null;
9328
9343
  forcedTermination: boolean;
9329
- stdout: import("../core/bashOutput/types.js").StreamReduction;
9330
- stderr: import("../core/bashOutput/types.js").StreamReduction;
9344
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
9345
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
9331
9346
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
9332
9347
  stdoutBytes: {
9333
9348
  totalBytes: number;
@@ -9356,7 +9371,7 @@ export declare const hazeTools: {
9356
9371
  } & {
9357
9372
  execute: import("ai").ToolExecuteFunction<{
9358
9373
  command: string;
9359
- allowMutation: boolean;
9374
+ purpose: "validation" | "auto";
9360
9375
  background: boolean;
9361
9376
  timeoutSeconds?: number | undefined;
9362
9377
  }, {
@@ -9373,14 +9388,14 @@ export declare const hazeTools: {
9373
9388
  suggestedNextStep: string;
9374
9389
  background?: undefined;
9375
9390
  } | {
9376
- classification: import("../core/safety/bashClassifier.js").BashClassification;
9391
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
9377
9392
  hint: string;
9378
9393
  backgroundId: string;
9379
9394
  pid?: number;
9380
9395
  command: string;
9381
9396
  cwd: string;
9382
9397
  startedAt: string;
9383
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9398
+ status: "failed" | "killed" | "running" | "exited";
9384
9399
  code?: number | null;
9385
9400
  signal?: NodeJS.Signals | null;
9386
9401
  outputHandle: string;
@@ -9411,15 +9426,16 @@ export declare const hazeTools: {
9411
9426
  ok: boolean;
9412
9427
  code: number | null;
9413
9428
  command: string;
9429
+ purpose: "validation" | "auto";
9414
9430
  cwd: string;
9415
- classification: import("../core/safety/bashClassifier.js").BashClassification;
9431
+ classification: import("../core/safety/shellClassifier.js").ShellClassification;
9416
9432
  durationMs: number;
9417
9433
  timedOut: boolean;
9418
9434
  aborted: boolean;
9419
9435
  signal: NodeJS.Signals | null;
9420
9436
  forcedTermination: boolean;
9421
- stdout: import("../core/bashOutput/types.js").StreamReduction;
9422
- stderr: import("../core/bashOutput/types.js").StreamReduction;
9437
+ stdout: import("../core/shellOutput/types.js").StreamReduction;
9438
+ stderr: import("../core/shellOutput/types.js").StreamReduction;
9423
9439
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
9424
9440
  stdoutBytes: {
9425
9441
  totalBytes: number;
@@ -9505,7 +9521,7 @@ export declare const hazeTools: {
9505
9521
  matches?: number;
9506
9522
  ok: boolean;
9507
9523
  backgroundId: string;
9508
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9524
+ status: "failed" | "killed" | "running" | "exited";
9509
9525
  outputHandle: string;
9510
9526
  reasonCode?: undefined;
9511
9527
  recoverable?: undefined;
@@ -9558,7 +9574,7 @@ export declare const hazeTools: {
9558
9574
  matches?: number;
9559
9575
  ok: boolean;
9560
9576
  backgroundId: string;
9561
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9577
+ status: "failed" | "killed" | "running" | "exited";
9562
9578
  outputHandle: string;
9563
9579
  reasonCode?: undefined;
9564
9580
  recoverable?: undefined;
@@ -9614,7 +9630,7 @@ export declare const hazeTools: {
9614
9630
  matches?: number;
9615
9631
  ok: boolean;
9616
9632
  backgroundId: string;
9617
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9633
+ status: "failed" | "killed" | "running" | "exited";
9618
9634
  outputHandle: string;
9619
9635
  reasonCode?: undefined;
9620
9636
  recoverable?: undefined;
@@ -9691,7 +9707,7 @@ export declare const hazeTools: {
9691
9707
  matches?: number;
9692
9708
  ok: boolean;
9693
9709
  backgroundId: string;
9694
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9710
+ status: "failed" | "killed" | "running" | "exited";
9695
9711
  outputHandle: string;
9696
9712
  reasonCode?: undefined;
9697
9713
  recoverable?: undefined;
@@ -9779,7 +9795,7 @@ export declare const hazeTools: {
9779
9795
  matches?: number;
9780
9796
  ok: boolean;
9781
9797
  backgroundId: string;
9782
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9798
+ status: "failed" | "killed" | "running" | "exited";
9783
9799
  outputHandle: string;
9784
9800
  reasonCode?: undefined;
9785
9801
  recoverable?: undefined;
@@ -9832,7 +9848,7 @@ export declare const hazeTools: {
9832
9848
  matches?: number;
9833
9849
  ok: boolean;
9834
9850
  backgroundId: string;
9835
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9851
+ status: "failed" | "killed" | "running" | "exited";
9836
9852
  outputHandle: string;
9837
9853
  reasonCode?: undefined;
9838
9854
  recoverable?: undefined;
@@ -9888,7 +9904,7 @@ export declare const hazeTools: {
9888
9904
  matches?: number;
9889
9905
  ok: boolean;
9890
9906
  backgroundId: string;
9891
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9907
+ status: "failed" | "killed" | "running" | "exited";
9892
9908
  outputHandle: string;
9893
9909
  reasonCode?: undefined;
9894
9910
  recoverable?: undefined;
@@ -9965,7 +9981,7 @@ export declare const hazeTools: {
9965
9981
  matches?: number;
9966
9982
  ok: boolean;
9967
9983
  backgroundId: string;
9968
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9984
+ status: "failed" | "killed" | "running" | "exited";
9969
9985
  outputHandle: string;
9970
9986
  reasonCode?: undefined;
9971
9987
  recoverable?: undefined;
@@ -10053,7 +10069,7 @@ export declare const hazeTools: {
10053
10069
  matches?: number;
10054
10070
  ok: boolean;
10055
10071
  backgroundId: string;
10056
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
10072
+ status: "failed" | "killed" | "running" | "exited";
10057
10073
  outputHandle: string;
10058
10074
  reasonCode?: undefined;
10059
10075
  recoverable?: undefined;
@@ -10106,7 +10122,7 @@ export declare const hazeTools: {
10106
10122
  matches?: number;
10107
10123
  ok: boolean;
10108
10124
  backgroundId: string;
10109
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
10125
+ status: "failed" | "killed" | "running" | "exited";
10110
10126
  outputHandle: string;
10111
10127
  reasonCode?: undefined;
10112
10128
  recoverable?: undefined;
@@ -10162,7 +10178,7 @@ export declare const hazeTools: {
10162
10178
  matches?: number;
10163
10179
  ok: boolean;
10164
10180
  backgroundId: string;
10165
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
10181
+ status: "failed" | "killed" | "running" | "exited";
10166
10182
  outputHandle: string;
10167
10183
  reasonCode?: undefined;
10168
10184
  recoverable?: undefined;
@@ -10229,7 +10245,7 @@ export declare const hazeTools: {
10229
10245
  matches?: number;
10230
10246
  ok: boolean;
10231
10247
  backgroundId: string;
10232
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
10248
+ status: "failed" | "killed" | "running" | "exited";
10233
10249
  outputHandle: string;
10234
10250
  reasonCode?: undefined;
10235
10251
  recoverable?: undefined;
@@ -10317,7 +10333,7 @@ export declare const hazeTools: {
10317
10333
  matches?: number;
10318
10334
  ok: boolean;
10319
10335
  backgroundId: string;
10320
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
10336
+ status: "failed" | "killed" | "running" | "exited";
10321
10337
  outputHandle: string;
10322
10338
  reasonCode?: undefined;
10323
10339
  recoverable?: undefined;
@@ -10370,7 +10386,7 @@ export declare const hazeTools: {
10370
10386
  matches?: number;
10371
10387
  ok: boolean;
10372
10388
  backgroundId: string;
10373
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
10389
+ status: "failed" | "killed" | "running" | "exited";
10374
10390
  outputHandle: string;
10375
10391
  reasonCode?: undefined;
10376
10392
  recoverable?: undefined;
@@ -10426,7 +10442,7 @@ export declare const hazeTools: {
10426
10442
  matches?: number;
10427
10443
  ok: boolean;
10428
10444
  backgroundId: string;
10429
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
10445
+ status: "failed" | "killed" | "running" | "exited";
10430
10446
  outputHandle: string;
10431
10447
  reasonCode?: undefined;
10432
10448
  recoverable?: undefined;
@@ -10493,7 +10509,7 @@ export declare const hazeTools: {
10493
10509
  matches?: number;
10494
10510
  ok: boolean;
10495
10511
  backgroundId: string;
10496
- status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
10512
+ status: "failed" | "killed" | "running" | "exited";
10497
10513
  outputHandle: string;
10498
10514
  reasonCode?: undefined;
10499
10515
  recoverable?: undefined;
@@ -10514,4 +10530,3 @@ export declare const hazeTools: {
10514
10530
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
10515
10531
  });
10516
10532
  };
10517
- export type HazeTools = typeof hazeTools;