@denizokcu/haze 0.9.0 → 0.10.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 (158) hide show
  1. package/CHANGELOG.md +57 -17
  2. package/README.md +119 -64
  3. package/dist/cli/chat/chatMetrics.d.ts +17 -1
  4. package/dist/cli/chat/chatMetrics.js +22 -5
  5. package/dist/cli/chat/contextReport.d.ts +11 -0
  6. package/dist/cli/chat/contextReport.js +44 -0
  7. package/dist/cli/chat/fileMentionSuggestions.d.ts +29 -0
  8. package/dist/cli/chat/fileMentionSuggestions.js +91 -0
  9. package/dist/cli/chat/inputSuggestions.d.ts +5 -0
  10. package/dist/cli/chat/inputSuggestions.js +17 -3
  11. package/dist/cli/chat/sessionLifecycle.d.ts +58 -0
  12. package/dist/cli/chat/sessionLifecycle.js +155 -0
  13. package/dist/cli/chat/sessionRecorder.js +7 -9
  14. package/dist/cli/chat/startupInfo.d.ts +1 -0
  15. package/dist/cli/chat/startupInfo.js +11 -0
  16. package/dist/cli/chat/tips.d.ts +21 -0
  17. package/dist/cli/chat/tips.js +43 -0
  18. package/dist/cli/chat/wizardDispatch.d.ts +64 -0
  19. package/dist/cli/chat/wizardDispatch.js +645 -0
  20. package/dist/cli/commands/chat.d.ts +1 -0
  21. package/dist/cli/commands/chat.js +181 -700
  22. package/dist/cli/commands/chatModes.d.ts +1 -1
  23. package/dist/cli/commands/chatModes.js +7 -2
  24. package/dist/cli/commands/commandHelp.js +5 -3
  25. package/dist/cli/commands/commands.d.ts +3 -2
  26. package/dist/cli/commands/commands.js +12 -13
  27. package/dist/cli/commands/fleetCommand.d.ts +14 -0
  28. package/dist/cli/commands/fleetCommand.js +46 -0
  29. package/dist/cli/commands/formatters.d.ts +5 -0
  30. package/dist/cli/commands/formatters.js +33 -6
  31. package/dist/cli/commands/logsCommand.js +1 -7
  32. package/dist/cli/commands/modelCommand.js +1 -1
  33. package/dist/cli/commands/providerWizard.d.ts +1 -0
  34. package/dist/cli/commands/providerWizard.js +13 -0
  35. package/dist/cli/commands/runCommand.d.ts +1 -0
  36. package/dist/cli/commands/runCommand.js +25 -5
  37. package/dist/cli/commands/sessionPicker.d.ts +9 -0
  38. package/dist/cli/commands/sessionPicker.js +29 -0
  39. package/dist/cli/commands/settingsSummary.js +6 -4
  40. package/dist/cli/commands/skillConfirmRemove.js +4 -3
  41. package/dist/cli/commands/skillWizard.d.ts +2 -0
  42. package/dist/cli/commands/skillWizard.js +16 -6
  43. package/dist/cli/commands/streaming/idleTimer.d.ts +26 -0
  44. package/dist/cli/commands/streaming/idleTimer.js +24 -0
  45. package/dist/cli/commands/streaming/toolGroupRenderer.d.ts +2 -0
  46. package/dist/cli/commands/streaming/toolGroupRenderer.js +4 -2
  47. package/dist/cli/commands/streaming/turnRuntime.js +6 -4
  48. package/dist/cli/commands/streaming.d.ts +13 -1
  49. package/dist/cli/commands/streaming.js +42 -19
  50. package/dist/cli/commands/wizardActions.d.ts +6 -0
  51. package/dist/cli/commands/wizardActions.js +6 -0
  52. package/dist/cli/commands/wizardSuggestions.d.ts +8 -0
  53. package/dist/cli/commands/wizardSuggestions.js +60 -12
  54. package/dist/cli/commands/wizardTransition.d.ts +4 -0
  55. package/dist/cli/commands/wizardTransition.js +1 -2
  56. package/dist/cli/index.js +17 -3
  57. package/dist/cli/terminalTitle.d.ts +6 -0
  58. package/dist/cli/terminalTitle.js +36 -0
  59. package/dist/config/inputHistory.d.ts +3 -3
  60. package/dist/config/inputHistory.js +12 -18
  61. package/dist/config/modelDiscovery.d.ts +20 -0
  62. package/dist/config/modelDiscovery.js +51 -0
  63. package/dist/config/providerPresets.d.ts +16 -4
  64. package/dist/config/providerPresets.js +263 -34
  65. package/dist/config/providers.d.ts +2 -0
  66. package/dist/config/providers.js +7 -0
  67. package/dist/config/settings.d.ts +22 -0
  68. package/dist/config/settings.js +29 -1
  69. package/dist/config/skillSettings.d.ts +6 -13
  70. package/dist/config/skillSettings.js +20 -19
  71. package/dist/core/agent/budgets.d.ts +26 -0
  72. package/dist/core/agent/budgets.js +34 -0
  73. package/dist/core/agent/compaction.js +17 -3
  74. package/dist/core/agent/contextBudget.d.ts +8 -0
  75. package/dist/core/agent/contextBudget.js +29 -0
  76. package/dist/core/agent/errors.js +6 -2
  77. package/dist/core/agent/events.d.ts +12 -0
  78. package/dist/core/agent/toolOutputStore.d.ts +5 -0
  79. package/dist/core/agent/toolOutputStore.js +18 -1
  80. package/dist/core/agent/workState.d.ts +1 -1
  81. package/dist/core/agent/workState.js +0 -4
  82. package/dist/core/attachments/imageAttachments.d.ts +90 -0
  83. package/dist/core/attachments/imageAttachments.js +245 -0
  84. package/dist/core/attachments/readBlessings.d.ts +37 -0
  85. package/dist/core/attachments/readBlessings.js +79 -0
  86. package/dist/core/goal/requestClassifier.d.ts +0 -3
  87. package/dist/core/goal/requestClassifier.js +0 -13
  88. package/dist/core/io/boundedRead.js +76 -29
  89. package/dist/core/limits/byteBudgets.d.ts +5 -0
  90. package/dist/core/limits/byteBudgets.js +5 -0
  91. package/dist/core/limits/textBudgets.d.ts +23 -0
  92. package/dist/core/limits/textBudgets.js +23 -0
  93. package/dist/core/process/backgroundRegistry.d.ts +35 -0
  94. package/dist/core/process/backgroundRegistry.js +194 -0
  95. package/dist/core/process/runBoundedProcess.d.ts +3 -0
  96. package/dist/core/process/runBoundedProcess.js +65 -29
  97. package/dist/core/safety/urlGuard.d.ts +2 -1
  98. package/dist/core/safety/urlGuard.js +3 -2
  99. package/dist/core/session/sessionSlimming.js +47 -4
  100. package/dist/core/session/sessionStore.d.ts +37 -0
  101. package/dist/core/session/sessionStore.js +95 -9
  102. package/dist/core/subagent/contracts.d.ts +116 -0
  103. package/dist/core/subagent/contracts.js +54 -0
  104. package/dist/core/subagent/executionProfiles.d.ts +28 -0
  105. package/dist/core/subagent/executionProfiles.js +45 -0
  106. package/dist/core/subagent/subagentCoordinator.d.ts +74 -0
  107. package/dist/core/subagent/subagentCoordinator.js +134 -0
  108. package/dist/core/subagent/subagentRunner.d.ts +211 -145
  109. package/dist/core/subagent/subagentRunner.js +228 -98
  110. package/dist/core/subagent/workspaceMutationPolicy.d.ts +11 -0
  111. package/dist/core/subagent/workspaceMutationPolicy.js +52 -0
  112. package/dist/core/tasks/taskStorage.js +12 -1
  113. package/dist/llm/client.d.ts +20 -29
  114. package/dist/llm/client.js +29 -28
  115. package/dist/llm/hazeTools.d.ts +2013 -78
  116. package/dist/llm/hazeTools.js +16 -7
  117. package/dist/llm/lsp.d.ts +2 -0
  118. package/dist/llm/lsp.js +18 -3
  119. package/dist/llm/requestContext.d.ts +22 -1
  120. package/dist/llm/requestContext.js +45 -5
  121. package/dist/llm/systemPrompt.d.ts +4 -1
  122. package/dist/llm/systemPrompt.js +14 -4
  123. package/dist/llm/toolResultTypes.d.ts +1 -1
  124. package/dist/llm/tools/bashTool.d.ts +874 -32
  125. package/dist/llm/tools/bashTool.js +25 -4
  126. package/dist/llm/tools/fetchTool.d.ts +26 -26
  127. package/dist/llm/tools/fetchTool.js +1 -1
  128. package/dist/llm/tools/fileToolShared.d.ts +2 -1
  129. package/dist/llm/tools/fileToolShared.js +5 -5
  130. package/dist/llm/tools/grepRunner.d.ts +5 -0
  131. package/dist/llm/tools/grepRunner.js +52 -71
  132. package/dist/llm/tools/outputCap.d.ts +2 -6
  133. package/dist/llm/tools/outputCap.js +2 -6
  134. package/dist/llm/tools/processTool.d.ts +1077 -0
  135. package/dist/llm/tools/processTool.js +41 -0
  136. package/dist/llm/tools/toolContext.d.ts +8 -0
  137. package/dist/llm/tools/toolContext.js +22 -11
  138. package/dist/llm/tools/workspaceFile.d.ts +9 -1
  139. package/dist/llm/tools/workspaceFile.js +33 -4
  140. package/dist/llm/webFetch.js +24 -11
  141. package/dist/llm/workerContext.d.ts +18 -0
  142. package/dist/llm/workerContext.js +55 -0
  143. package/dist/skills/SkillLoader.d.ts +2 -2
  144. package/dist/skills/SkillRegistry.d.ts +3 -2
  145. package/dist/skills/SkillRegistry.js +43 -13
  146. package/dist/skills/builder/SkillBuilder.d.ts +3 -0
  147. package/dist/skills/builder/SkillBuilder.js +23 -5
  148. package/dist/skills/skillTools.js +11 -4
  149. package/dist/skills/types.d.ts +6 -1
  150. package/dist/ui/components/TextInput.d.ts +5 -2
  151. package/dist/ui/components/TextInput.js +76 -8
  152. package/dist/utils/format.d.ts +2 -0
  153. package/dist/utils/format.js +8 -0
  154. package/dist/utils/fs.d.ts +0 -1
  155. package/dist/utils/fs.js +0 -4
  156. package/dist/utils/openPath.d.ts +2 -0
  157. package/dist/utils/openPath.js +9 -0
  158. package/package.json +1 -1
@@ -834,9 +834,10 @@ export declare const hazeTools: {
834
834
  toolName: string;
835
835
  reason: string;
836
836
  } | ({
837
+ warning?: string | undefined;
838
+ outlineDroppedEntries?: number | undefined;
837
839
  outline?: boolean | undefined;
838
840
  outlineEntries?: number | undefined;
839
- warning?: string | undefined;
840
841
  path: string;
841
842
  mode: "exact" | "outline";
842
843
  startLine: number;
@@ -867,9 +868,10 @@ export declare const hazeTools: {
867
868
  toolName: string;
868
869
  reason: string;
869
870
  } | ({
871
+ warning?: string | undefined;
872
+ outlineDroppedEntries?: number | undefined;
870
873
  outline?: boolean | undefined;
871
874
  outlineEntries?: number | undefined;
872
- warning?: string | undefined;
873
875
  path: string;
874
876
  mode: "exact" | "outline";
875
877
  startLine: number;
@@ -904,9 +906,10 @@ export declare const hazeTools: {
904
906
  toolName: string;
905
907
  reason: string;
906
908
  } | ({
909
+ warning?: string | undefined;
910
+ outlineDroppedEntries?: number | undefined;
907
911
  outline?: boolean | undefined;
908
912
  outlineEntries?: number | undefined;
909
- warning?: string | undefined;
910
913
  path: string;
911
914
  mode: "exact" | "outline";
912
915
  startLine: number;
@@ -963,9 +966,10 @@ export declare const hazeTools: {
963
966
  toolName: string;
964
967
  reason: string;
965
968
  } | ({
969
+ warning?: string | undefined;
970
+ outlineDroppedEntries?: number | undefined;
966
971
  outline?: boolean | undefined;
967
972
  outlineEntries?: number | undefined;
968
- warning?: string | undefined;
969
973
  path: string;
970
974
  mode: "exact" | "outline";
971
975
  startLine: number;
@@ -1035,9 +1039,10 @@ export declare const hazeTools: {
1035
1039
  toolName: string;
1036
1040
  reason: string;
1037
1041
  } | ({
1042
+ warning?: string | undefined;
1043
+ outlineDroppedEntries?: number | undefined;
1038
1044
  outline?: boolean | undefined;
1039
1045
  outlineEntries?: number | undefined;
1040
- warning?: string | undefined;
1041
1046
  path: string;
1042
1047
  mode: "exact" | "outline";
1043
1048
  startLine: number;
@@ -1068,9 +1073,10 @@ export declare const hazeTools: {
1068
1073
  toolName: string;
1069
1074
  reason: string;
1070
1075
  } | ({
1076
+ warning?: string | undefined;
1077
+ outlineDroppedEntries?: number | undefined;
1071
1078
  outline?: boolean | undefined;
1072
1079
  outlineEntries?: number | undefined;
1073
- warning?: string | undefined;
1074
1080
  path: string;
1075
1081
  mode: "exact" | "outline";
1076
1082
  startLine: number;
@@ -1105,9 +1111,10 @@ export declare const hazeTools: {
1105
1111
  toolName: string;
1106
1112
  reason: string;
1107
1113
  } | ({
1114
+ warning?: string | undefined;
1115
+ outlineDroppedEntries?: number | undefined;
1108
1116
  outline?: boolean | undefined;
1109
1117
  outlineEntries?: number | undefined;
1110
- warning?: string | undefined;
1111
1118
  path: string;
1112
1119
  mode: "exact" | "outline";
1113
1120
  startLine: number;
@@ -1164,9 +1171,10 @@ export declare const hazeTools: {
1164
1171
  toolName: string;
1165
1172
  reason: string;
1166
1173
  } | ({
1174
+ warning?: string | undefined;
1175
+ outlineDroppedEntries?: number | undefined;
1167
1176
  outline?: boolean | undefined;
1168
1177
  outlineEntries?: number | undefined;
1169
- warning?: string | undefined;
1170
1178
  path: string;
1171
1179
  mode: "exact" | "outline";
1172
1180
  startLine: number;
@@ -1236,9 +1244,10 @@ export declare const hazeTools: {
1236
1244
  toolName: string;
1237
1245
  reason: string;
1238
1246
  } | ({
1247
+ warning?: string | undefined;
1248
+ outlineDroppedEntries?: number | undefined;
1239
1249
  outline?: boolean | undefined;
1240
1250
  outlineEntries?: number | undefined;
1241
- warning?: string | undefined;
1242
1251
  path: string;
1243
1252
  mode: "exact" | "outline";
1244
1253
  startLine: number;
@@ -1269,9 +1278,10 @@ export declare const hazeTools: {
1269
1278
  toolName: string;
1270
1279
  reason: string;
1271
1280
  } | ({
1281
+ warning?: string | undefined;
1282
+ outlineDroppedEntries?: number | undefined;
1272
1283
  outline?: boolean | undefined;
1273
1284
  outlineEntries?: number | undefined;
1274
- warning?: string | undefined;
1275
1285
  path: string;
1276
1286
  mode: "exact" | "outline";
1277
1287
  startLine: number;
@@ -1306,9 +1316,10 @@ export declare const hazeTools: {
1306
1316
  toolName: string;
1307
1317
  reason: string;
1308
1318
  } | ({
1319
+ warning?: string | undefined;
1320
+ outlineDroppedEntries?: number | undefined;
1309
1321
  outline?: boolean | undefined;
1310
1322
  outlineEntries?: number | undefined;
1311
- warning?: string | undefined;
1312
1323
  path: string;
1313
1324
  mode: "exact" | "outline";
1314
1325
  startLine: number;
@@ -1354,9 +1365,10 @@ export declare const hazeTools: {
1354
1365
  toolName: string;
1355
1366
  reason: string;
1356
1367
  } | ({
1368
+ warning?: string | undefined;
1369
+ outlineDroppedEntries?: number | undefined;
1357
1370
  outline?: boolean | undefined;
1358
1371
  outlineEntries?: number | undefined;
1359
- warning?: string | undefined;
1360
1372
  path: string;
1361
1373
  mode: "exact" | "outline";
1362
1374
  startLine: number;
@@ -1426,9 +1438,10 @@ export declare const hazeTools: {
1426
1438
  toolName: string;
1427
1439
  reason: string;
1428
1440
  } | ({
1441
+ warning?: string | undefined;
1442
+ outlineDroppedEntries?: number | undefined;
1429
1443
  outline?: boolean | undefined;
1430
1444
  outlineEntries?: number | undefined;
1431
- warning?: string | undefined;
1432
1445
  path: string;
1433
1446
  mode: "exact" | "outline";
1434
1447
  startLine: number;
@@ -1459,9 +1472,10 @@ export declare const hazeTools: {
1459
1472
  toolName: string;
1460
1473
  reason: string;
1461
1474
  } | ({
1475
+ warning?: string | undefined;
1476
+ outlineDroppedEntries?: number | undefined;
1462
1477
  outline?: boolean | undefined;
1463
1478
  outlineEntries?: number | undefined;
1464
- warning?: string | undefined;
1465
1479
  path: string;
1466
1480
  mode: "exact" | "outline";
1467
1481
  startLine: number;
@@ -1496,9 +1510,10 @@ export declare const hazeTools: {
1496
1510
  toolName: string;
1497
1511
  reason: string;
1498
1512
  } | ({
1513
+ warning?: string | undefined;
1514
+ outlineDroppedEntries?: number | undefined;
1499
1515
  outline?: boolean | undefined;
1500
1516
  outlineEntries?: number | undefined;
1501
- warning?: string | undefined;
1502
1517
  path: string;
1503
1518
  mode: "exact" | "outline";
1504
1519
  startLine: number;
@@ -1544,9 +1559,10 @@ export declare const hazeTools: {
1544
1559
  toolName: string;
1545
1560
  reason: string;
1546
1561
  } | ({
1562
+ warning?: string | undefined;
1563
+ outlineDroppedEntries?: number | undefined;
1547
1564
  outline?: boolean | undefined;
1548
1565
  outlineEntries?: number | undefined;
1549
- warning?: string | undefined;
1550
1566
  path: string;
1551
1567
  mode: "exact" | "outline";
1552
1568
  startLine: number;
@@ -6306,12 +6322,12 @@ export declare const hazeTools: {
6306
6322
  metadata?: import("@ai-sdk/provider").JSONObject;
6307
6323
  inputSchema: import("ai").FlexibleSchema<{
6308
6324
  url: string;
6309
- format: "auto" | "text";
6325
+ format: "text" | "auto";
6310
6326
  }>;
6311
6327
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
6312
6328
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
6313
6329
  url: string;
6314
- format: "auto" | "text";
6330
+ format: "text" | "auto";
6315
6331
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
6316
6332
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
6317
6333
  onInputDelta?: ((options: {
@@ -6320,14 +6336,14 @@ export declare const hazeTools: {
6320
6336
  onInputAvailable?: ((options: {
6321
6337
  input: {
6322
6338
  url: string;
6323
- format: "auto" | "text";
6339
+ format: "text" | "auto";
6324
6340
  };
6325
6341
  } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
6326
6342
  toModelOutput?: ((options: {
6327
6343
  toolCallId: string;
6328
6344
  input: {
6329
6345
  url: string;
6330
- format: "auto" | "text";
6346
+ format: "text" | "auto";
6331
6347
  };
6332
6348
  output: NoInfer<{
6333
6349
  ok: boolean;
@@ -6457,7 +6473,7 @@ export declare const hazeTools: {
6457
6473
  }> | undefined;
6458
6474
  execute: import("ai").ToolExecuteFunction<{
6459
6475
  url: string;
6460
- format: "auto" | "text";
6476
+ format: "text" | "auto";
6461
6477
  }, {
6462
6478
  ok: boolean;
6463
6479
  toolName: string;
@@ -6529,7 +6545,7 @@ export declare const hazeTools: {
6529
6545
  inputExamples?: {
6530
6546
  input: NoInfer<{
6531
6547
  url: string;
6532
- format: "auto" | "text";
6548
+ format: "text" | "auto";
6533
6549
  }>;
6534
6550
  }[] | undefined;
6535
6551
  id?: never;
@@ -6541,7 +6557,7 @@ export declare const hazeTools: {
6541
6557
  } & {
6542
6558
  execute: import("ai").ToolExecuteFunction<{
6543
6559
  url: string;
6544
- format: "auto" | "text";
6560
+ format: "text" | "auto";
6545
6561
  }, {
6546
6562
  ok: boolean;
6547
6563
  toolName: string;
@@ -6610,12 +6626,12 @@ export declare const hazeTools: {
6610
6626
  metadata?: import("@ai-sdk/provider").JSONObject;
6611
6627
  inputSchema: import("ai").FlexibleSchema<{
6612
6628
  url: string;
6613
- format: "auto" | "text";
6629
+ format: "text" | "auto";
6614
6630
  }>;
6615
6631
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
6616
6632
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
6617
6633
  url: string;
6618
- format: "auto" | "text";
6634
+ format: "text" | "auto";
6619
6635
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
6620
6636
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
6621
6637
  onInputDelta?: ((options: {
@@ -6624,14 +6640,14 @@ export declare const hazeTools: {
6624
6640
  onInputAvailable?: ((options: {
6625
6641
  input: {
6626
6642
  url: string;
6627
- format: "auto" | "text";
6643
+ format: "text" | "auto";
6628
6644
  };
6629
6645
  } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
6630
6646
  toModelOutput?: ((options: {
6631
6647
  toolCallId: string;
6632
6648
  input: {
6633
6649
  url: string;
6634
- format: "auto" | "text";
6650
+ format: "text" | "auto";
6635
6651
  };
6636
6652
  output: NoInfer<{
6637
6653
  ok: boolean;
@@ -6761,7 +6777,7 @@ export declare const hazeTools: {
6761
6777
  }> | undefined;
6762
6778
  execute: import("ai").ToolExecuteFunction<{
6763
6779
  url: string;
6764
- format: "auto" | "text";
6780
+ format: "text" | "auto";
6765
6781
  }, {
6766
6782
  ok: boolean;
6767
6783
  toolName: string;
@@ -6833,7 +6849,7 @@ export declare const hazeTools: {
6833
6849
  inputExamples?: {
6834
6850
  input: NoInfer<{
6835
6851
  url: string;
6836
- format: "auto" | "text";
6852
+ format: "text" | "auto";
6837
6853
  }>;
6838
6854
  }[] | undefined;
6839
6855
  id?: never;
@@ -6845,7 +6861,7 @@ export declare const hazeTools: {
6845
6861
  } & {
6846
6862
  execute: import("ai").ToolExecuteFunction<{
6847
6863
  url: string;
6848
- format: "auto" | "text";
6864
+ format: "text" | "auto";
6849
6865
  }, {
6850
6866
  ok: boolean;
6851
6867
  toolName: string;
@@ -6914,12 +6930,12 @@ export declare const hazeTools: {
6914
6930
  metadata?: import("@ai-sdk/provider").JSONObject;
6915
6931
  inputSchema: import("ai").FlexibleSchema<{
6916
6932
  url: string;
6917
- format: "auto" | "text";
6933
+ format: "text" | "auto";
6918
6934
  }>;
6919
6935
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
6920
6936
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
6921
6937
  url: string;
6922
- format: "auto" | "text";
6938
+ format: "text" | "auto";
6923
6939
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
6924
6940
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
6925
6941
  onInputDelta?: ((options: {
@@ -6928,14 +6944,14 @@ export declare const hazeTools: {
6928
6944
  onInputAvailable?: ((options: {
6929
6945
  input: {
6930
6946
  url: string;
6931
- format: "auto" | "text";
6947
+ format: "text" | "auto";
6932
6948
  };
6933
6949
  } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
6934
6950
  toModelOutput?: ((options: {
6935
6951
  toolCallId: string;
6936
6952
  input: {
6937
6953
  url: string;
6938
- format: "auto" | "text";
6954
+ format: "text" | "auto";
6939
6955
  };
6940
6956
  output: NoInfer<{
6941
6957
  ok: boolean;
@@ -7065,7 +7081,7 @@ export declare const hazeTools: {
7065
7081
  }> | undefined;
7066
7082
  execute: import("ai").ToolExecuteFunction<{
7067
7083
  url: string;
7068
- format: "auto" | "text";
7084
+ format: "text" | "auto";
7069
7085
  }, {
7070
7086
  ok: boolean;
7071
7087
  toolName: string;
@@ -7141,7 +7157,7 @@ export declare const hazeTools: {
7141
7157
  } & {
7142
7158
  execute: import("ai").ToolExecuteFunction<{
7143
7159
  url: string;
7144
- format: "auto" | "text";
7160
+ format: "text" | "auto";
7145
7161
  }, {
7146
7162
  ok: boolean;
7147
7163
  toolName: string;
@@ -7210,12 +7226,12 @@ export declare const hazeTools: {
7210
7226
  metadata?: import("@ai-sdk/provider").JSONObject;
7211
7227
  inputSchema: import("ai").FlexibleSchema<{
7212
7228
  url: string;
7213
- format: "auto" | "text";
7229
+ format: "text" | "auto";
7214
7230
  }>;
7215
7231
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
7216
7232
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
7217
7233
  url: string;
7218
- format: "auto" | "text";
7234
+ format: "text" | "auto";
7219
7235
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
7220
7236
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
7221
7237
  onInputDelta?: ((options: {
@@ -7224,14 +7240,14 @@ export declare const hazeTools: {
7224
7240
  onInputAvailable?: ((options: {
7225
7241
  input: {
7226
7242
  url: string;
7227
- format: "auto" | "text";
7243
+ format: "text" | "auto";
7228
7244
  };
7229
7245
  } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
7230
7246
  toModelOutput?: ((options: {
7231
7247
  toolCallId: string;
7232
7248
  input: {
7233
7249
  url: string;
7234
- format: "auto" | "text";
7250
+ format: "text" | "auto";
7235
7251
  };
7236
7252
  output: NoInfer<{
7237
7253
  ok: boolean;
@@ -7361,7 +7377,7 @@ export declare const hazeTools: {
7361
7377
  }> | undefined;
7362
7378
  execute: import("ai").ToolExecuteFunction<{
7363
7379
  url: string;
7364
- format: "auto" | "text";
7380
+ format: "text" | "auto";
7365
7381
  }, {
7366
7382
  ok: boolean;
7367
7383
  toolName: string;
@@ -7437,7 +7453,7 @@ export declare const hazeTools: {
7437
7453
  } & {
7438
7454
  execute: import("ai").ToolExecuteFunction<{
7439
7455
  url: string;
7440
- format: "auto" | "text";
7456
+ format: "text" | "auto";
7441
7457
  }, {
7442
7458
  ok: boolean;
7443
7459
  toolName: string;
@@ -7508,12 +7524,14 @@ export declare const hazeTools: {
7508
7524
  inputSchema: import("ai").FlexibleSchema<{
7509
7525
  command: string;
7510
7526
  allowMutation: boolean;
7527
+ background: boolean;
7511
7528
  timeoutSeconds?: number | undefined;
7512
7529
  }>;
7513
7530
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
7514
7531
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
7515
7532
  command: string;
7516
7533
  allowMutation: boolean;
7534
+ background: boolean;
7517
7535
  timeoutSeconds?: number | undefined;
7518
7536
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
7519
7537
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -7524,6 +7542,7 @@ export declare const hazeTools: {
7524
7542
  input: {
7525
7543
  command: string;
7526
7544
  allowMutation: boolean;
7545
+ background: boolean;
7527
7546
  timeoutSeconds?: number | undefined;
7528
7547
  };
7529
7548
  } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -7532,6 +7551,7 @@ export declare const hazeTools: {
7532
7551
  input: {
7533
7552
  command: string;
7534
7553
  allowMutation: boolean;
7554
+ background: boolean;
7535
7555
  timeoutSeconds?: number | undefined;
7536
7556
  };
7537
7557
  output: NoInfer<{
@@ -7539,6 +7559,45 @@ export declare const hazeTools: {
7539
7559
  duplicateSkipped: true;
7540
7560
  toolName: string;
7541
7561
  reason: string;
7562
+ } | {
7563
+ ok: boolean;
7564
+ command: string;
7565
+ reasonCode: string;
7566
+ recoverable: boolean;
7567
+ error: string;
7568
+ suggestedNextStep: string;
7569
+ background?: undefined;
7570
+ } | {
7571
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7572
+ hint: string;
7573
+ backgroundId: string;
7574
+ pid?: number;
7575
+ command: string;
7576
+ cwd: string;
7577
+ startedAt: string;
7578
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
7579
+ code?: number | null;
7580
+ signal?: NodeJS.Signals | null;
7581
+ outputHandle: string;
7582
+ outputBytes: {
7583
+ totalBytes: number;
7584
+ retainedBytes: number;
7585
+ omittedBytes: number;
7586
+ };
7587
+ error?: string;
7588
+ ok: boolean;
7589
+ background: boolean;
7590
+ reasonCode?: undefined;
7591
+ recoverable?: undefined;
7592
+ suggestedNextStep?: undefined;
7593
+ } | {
7594
+ ok: boolean;
7595
+ background: boolean;
7596
+ command: string;
7597
+ reasonCode: string;
7598
+ recoverable: boolean;
7599
+ error: string;
7600
+ suggestedNextStep: string;
7542
7601
  } | {
7543
7602
  error?: string | undefined;
7544
7603
  ok: boolean;
@@ -7554,8 +7613,20 @@ export declare const hazeTools: {
7554
7613
  stdout: import("../core/bashOutput/types.js").StreamReduction;
7555
7614
  stderr: import("../core/bashOutput/types.js").StreamReduction;
7556
7615
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7557
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7558
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7616
+ stdoutBytes: {
7617
+ totalBytes: number;
7618
+ retainedBytes: number;
7619
+ omittedBytes: number;
7620
+ };
7621
+ stderrBytes: {
7622
+ totalBytes: number;
7623
+ retainedBytes: number;
7624
+ omittedBytes: number;
7625
+ };
7626
+ reasonCode?: undefined;
7627
+ recoverable?: undefined;
7628
+ suggestedNextStep?: undefined;
7629
+ background?: undefined;
7559
7630
  }>;
7560
7631
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
7561
7632
  } & {
@@ -7564,6 +7635,45 @@ export declare const hazeTools: {
7564
7635
  duplicateSkipped: true;
7565
7636
  toolName: string;
7566
7637
  reason: string;
7638
+ } | {
7639
+ ok: boolean;
7640
+ command: string;
7641
+ reasonCode: string;
7642
+ recoverable: boolean;
7643
+ error: string;
7644
+ suggestedNextStep: string;
7645
+ background?: undefined;
7646
+ } | {
7647
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7648
+ hint: string;
7649
+ backgroundId: string;
7650
+ pid?: number;
7651
+ command: string;
7652
+ cwd: string;
7653
+ startedAt: string;
7654
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
7655
+ code?: number | null;
7656
+ signal?: NodeJS.Signals | null;
7657
+ outputHandle: string;
7658
+ outputBytes: {
7659
+ totalBytes: number;
7660
+ retainedBytes: number;
7661
+ omittedBytes: number;
7662
+ };
7663
+ error?: string;
7664
+ ok: boolean;
7665
+ background: boolean;
7666
+ reasonCode?: undefined;
7667
+ recoverable?: undefined;
7668
+ suggestedNextStep?: undefined;
7669
+ } | {
7670
+ ok: boolean;
7671
+ background: boolean;
7672
+ command: string;
7673
+ reasonCode: string;
7674
+ recoverable: boolean;
7675
+ error: string;
7676
+ suggestedNextStep: string;
7567
7677
  } | {
7568
7678
  error?: string | undefined;
7569
7679
  ok: boolean;
@@ -7579,18 +7689,70 @@ export declare const hazeTools: {
7579
7689
  stdout: import("../core/bashOutput/types.js").StreamReduction;
7580
7690
  stderr: import("../core/bashOutput/types.js").StreamReduction;
7581
7691
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7582
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7583
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7692
+ stdoutBytes: {
7693
+ totalBytes: number;
7694
+ retainedBytes: number;
7695
+ omittedBytes: number;
7696
+ };
7697
+ stderrBytes: {
7698
+ totalBytes: number;
7699
+ retainedBytes: number;
7700
+ omittedBytes: number;
7701
+ };
7702
+ reasonCode?: undefined;
7703
+ recoverable?: undefined;
7704
+ suggestedNextStep?: undefined;
7705
+ background?: undefined;
7584
7706
  }> | undefined;
7585
7707
  execute: import("ai").ToolExecuteFunction<{
7586
7708
  command: string;
7587
7709
  allowMutation: boolean;
7710
+ background: boolean;
7588
7711
  timeoutSeconds?: number | undefined;
7589
7712
  }, {
7590
7713
  ok: true;
7591
7714
  duplicateSkipped: true;
7592
7715
  toolName: string;
7593
7716
  reason: string;
7717
+ } | {
7718
+ ok: boolean;
7719
+ command: string;
7720
+ reasonCode: string;
7721
+ recoverable: boolean;
7722
+ error: string;
7723
+ suggestedNextStep: string;
7724
+ background?: undefined;
7725
+ } | {
7726
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7727
+ hint: string;
7728
+ backgroundId: string;
7729
+ pid?: number;
7730
+ command: string;
7731
+ cwd: string;
7732
+ startedAt: string;
7733
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
7734
+ code?: number | null;
7735
+ signal?: NodeJS.Signals | null;
7736
+ outputHandle: string;
7737
+ outputBytes: {
7738
+ totalBytes: number;
7739
+ retainedBytes: number;
7740
+ omittedBytes: number;
7741
+ };
7742
+ error?: string;
7743
+ ok: boolean;
7744
+ background: boolean;
7745
+ reasonCode?: undefined;
7746
+ recoverable?: undefined;
7747
+ suggestedNextStep?: undefined;
7748
+ } | {
7749
+ ok: boolean;
7750
+ background: boolean;
7751
+ command: string;
7752
+ reasonCode: string;
7753
+ recoverable: boolean;
7754
+ error: string;
7755
+ suggestedNextStep: string;
7594
7756
  } | {
7595
7757
  error?: string | undefined;
7596
7758
  ok: boolean;
@@ -7606,8 +7768,20 @@ export declare const hazeTools: {
7606
7768
  stdout: import("../core/bashOutput/types.js").StreamReduction;
7607
7769
  stderr: import("../core/bashOutput/types.js").StreamReduction;
7608
7770
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7609
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7610
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7771
+ stdoutBytes: {
7772
+ totalBytes: number;
7773
+ retainedBytes: number;
7774
+ omittedBytes: number;
7775
+ };
7776
+ stderrBytes: {
7777
+ totalBytes: number;
7778
+ retainedBytes: number;
7779
+ omittedBytes: number;
7780
+ };
7781
+ reasonCode?: undefined;
7782
+ recoverable?: undefined;
7783
+ suggestedNextStep?: undefined;
7784
+ background?: undefined;
7611
7785
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7612
7786
  } & {
7613
7787
  description?: string | ((options: {
@@ -7619,6 +7793,7 @@ export declare const hazeTools: {
7619
7793
  input: NoInfer<{
7620
7794
  command: string;
7621
7795
  allowMutation: boolean;
7796
+ background: boolean;
7622
7797
  timeoutSeconds?: number | undefined;
7623
7798
  }>;
7624
7799
  }[] | undefined;
@@ -7632,12 +7807,52 @@ export declare const hazeTools: {
7632
7807
  execute: import("ai").ToolExecuteFunction<{
7633
7808
  command: string;
7634
7809
  allowMutation: boolean;
7810
+ background: boolean;
7635
7811
  timeoutSeconds?: number | undefined;
7636
7812
  }, {
7637
7813
  ok: true;
7638
7814
  duplicateSkipped: true;
7639
7815
  toolName: string;
7640
7816
  reason: string;
7817
+ } | {
7818
+ ok: boolean;
7819
+ command: string;
7820
+ reasonCode: string;
7821
+ recoverable: boolean;
7822
+ error: string;
7823
+ suggestedNextStep: string;
7824
+ background?: undefined;
7825
+ } | {
7826
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7827
+ hint: string;
7828
+ backgroundId: string;
7829
+ pid?: number;
7830
+ command: string;
7831
+ cwd: string;
7832
+ startedAt: string;
7833
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
7834
+ code?: number | null;
7835
+ signal?: NodeJS.Signals | null;
7836
+ outputHandle: string;
7837
+ outputBytes: {
7838
+ totalBytes: number;
7839
+ retainedBytes: number;
7840
+ omittedBytes: number;
7841
+ };
7842
+ error?: string;
7843
+ ok: boolean;
7844
+ background: boolean;
7845
+ reasonCode?: undefined;
7846
+ recoverable?: undefined;
7847
+ suggestedNextStep?: undefined;
7848
+ } | {
7849
+ ok: boolean;
7850
+ background: boolean;
7851
+ command: string;
7852
+ reasonCode: string;
7853
+ recoverable: boolean;
7854
+ error: string;
7855
+ suggestedNextStep: string;
7641
7856
  } | {
7642
7857
  error?: string | undefined;
7643
7858
  ok: boolean;
@@ -7653,8 +7868,20 @@ export declare const hazeTools: {
7653
7868
  stdout: import("../core/bashOutput/types.js").StreamReduction;
7654
7869
  stderr: import("../core/bashOutput/types.js").StreamReduction;
7655
7870
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7656
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7657
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7871
+ stdoutBytes: {
7872
+ totalBytes: number;
7873
+ retainedBytes: number;
7874
+ omittedBytes: number;
7875
+ };
7876
+ stderrBytes: {
7877
+ totalBytes: number;
7878
+ retainedBytes: number;
7879
+ omittedBytes: number;
7880
+ };
7881
+ reasonCode?: undefined;
7882
+ recoverable?: undefined;
7883
+ suggestedNextStep?: undefined;
7884
+ background?: undefined;
7658
7885
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7659
7886
  }) | ({
7660
7887
  title?: string;
@@ -7663,12 +7890,14 @@ export declare const hazeTools: {
7663
7890
  inputSchema: import("ai").FlexibleSchema<{
7664
7891
  command: string;
7665
7892
  allowMutation: boolean;
7893
+ background: boolean;
7666
7894
  timeoutSeconds?: number | undefined;
7667
7895
  }>;
7668
7896
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
7669
7897
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
7670
7898
  command: string;
7671
7899
  allowMutation: boolean;
7900
+ background: boolean;
7672
7901
  timeoutSeconds?: number | undefined;
7673
7902
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
7674
7903
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -7679,6 +7908,7 @@ export declare const hazeTools: {
7679
7908
  input: {
7680
7909
  command: string;
7681
7910
  allowMutation: boolean;
7911
+ background: boolean;
7682
7912
  timeoutSeconds?: number | undefined;
7683
7913
  };
7684
7914
  } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -7687,6 +7917,7 @@ export declare const hazeTools: {
7687
7917
  input: {
7688
7918
  command: string;
7689
7919
  allowMutation: boolean;
7920
+ background: boolean;
7690
7921
  timeoutSeconds?: number | undefined;
7691
7922
  };
7692
7923
  output: NoInfer<{
@@ -7694,6 +7925,45 @@ export declare const hazeTools: {
7694
7925
  duplicateSkipped: true;
7695
7926
  toolName: string;
7696
7927
  reason: string;
7928
+ } | {
7929
+ ok: boolean;
7930
+ command: string;
7931
+ reasonCode: string;
7932
+ recoverable: boolean;
7933
+ error: string;
7934
+ suggestedNextStep: string;
7935
+ background?: undefined;
7936
+ } | {
7937
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7938
+ hint: string;
7939
+ backgroundId: string;
7940
+ pid?: number;
7941
+ command: string;
7942
+ cwd: string;
7943
+ startedAt: string;
7944
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
7945
+ code?: number | null;
7946
+ signal?: NodeJS.Signals | null;
7947
+ outputHandle: string;
7948
+ outputBytes: {
7949
+ totalBytes: number;
7950
+ retainedBytes: number;
7951
+ omittedBytes: number;
7952
+ };
7953
+ error?: string;
7954
+ ok: boolean;
7955
+ background: boolean;
7956
+ reasonCode?: undefined;
7957
+ recoverable?: undefined;
7958
+ suggestedNextStep?: undefined;
7959
+ } | {
7960
+ ok: boolean;
7961
+ background: boolean;
7962
+ command: string;
7963
+ reasonCode: string;
7964
+ recoverable: boolean;
7965
+ error: string;
7966
+ suggestedNextStep: string;
7697
7967
  } | {
7698
7968
  error?: string | undefined;
7699
7969
  ok: boolean;
@@ -7709,8 +7979,20 @@ export declare const hazeTools: {
7709
7979
  stdout: import("../core/bashOutput/types.js").StreamReduction;
7710
7980
  stderr: import("../core/bashOutput/types.js").StreamReduction;
7711
7981
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7712
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7713
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7982
+ stdoutBytes: {
7983
+ totalBytes: number;
7984
+ retainedBytes: number;
7985
+ omittedBytes: number;
7986
+ };
7987
+ stderrBytes: {
7988
+ totalBytes: number;
7989
+ retainedBytes: number;
7990
+ omittedBytes: number;
7991
+ };
7992
+ reasonCode?: undefined;
7993
+ recoverable?: undefined;
7994
+ suggestedNextStep?: undefined;
7995
+ background?: undefined;
7714
7996
  }>;
7715
7997
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
7716
7998
  } & {
@@ -7719,6 +8001,45 @@ export declare const hazeTools: {
7719
8001
  duplicateSkipped: true;
7720
8002
  toolName: string;
7721
8003
  reason: string;
8004
+ } | {
8005
+ ok: boolean;
8006
+ command: string;
8007
+ reasonCode: string;
8008
+ recoverable: boolean;
8009
+ error: string;
8010
+ suggestedNextStep: string;
8011
+ background?: undefined;
8012
+ } | {
8013
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8014
+ hint: string;
8015
+ backgroundId: string;
8016
+ pid?: number;
8017
+ command: string;
8018
+ cwd: string;
8019
+ startedAt: string;
8020
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8021
+ code?: number | null;
8022
+ signal?: NodeJS.Signals | null;
8023
+ outputHandle: string;
8024
+ outputBytes: {
8025
+ totalBytes: number;
8026
+ retainedBytes: number;
8027
+ omittedBytes: number;
8028
+ };
8029
+ error?: string;
8030
+ ok: boolean;
8031
+ background: boolean;
8032
+ reasonCode?: undefined;
8033
+ recoverable?: undefined;
8034
+ suggestedNextStep?: undefined;
8035
+ } | {
8036
+ ok: boolean;
8037
+ background: boolean;
8038
+ command: string;
8039
+ reasonCode: string;
8040
+ recoverable: boolean;
8041
+ error: string;
8042
+ suggestedNextStep: string;
7722
8043
  } | {
7723
8044
  error?: string | undefined;
7724
8045
  ok: boolean;
@@ -7734,18 +8055,70 @@ export declare const hazeTools: {
7734
8055
  stdout: import("../core/bashOutput/types.js").StreamReduction;
7735
8056
  stderr: import("../core/bashOutput/types.js").StreamReduction;
7736
8057
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7737
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7738
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8058
+ stdoutBytes: {
8059
+ totalBytes: number;
8060
+ retainedBytes: number;
8061
+ omittedBytes: number;
8062
+ };
8063
+ stderrBytes: {
8064
+ totalBytes: number;
8065
+ retainedBytes: number;
8066
+ omittedBytes: number;
8067
+ };
8068
+ reasonCode?: undefined;
8069
+ recoverable?: undefined;
8070
+ suggestedNextStep?: undefined;
8071
+ background?: undefined;
7739
8072
  }> | undefined;
7740
8073
  execute: import("ai").ToolExecuteFunction<{
7741
8074
  command: string;
7742
8075
  allowMutation: boolean;
8076
+ background: boolean;
7743
8077
  timeoutSeconds?: number | undefined;
7744
8078
  }, {
7745
8079
  ok: true;
7746
8080
  duplicateSkipped: true;
7747
8081
  toolName: string;
7748
8082
  reason: string;
8083
+ } | {
8084
+ ok: boolean;
8085
+ command: string;
8086
+ reasonCode: string;
8087
+ recoverable: boolean;
8088
+ error: string;
8089
+ suggestedNextStep: string;
8090
+ background?: undefined;
8091
+ } | {
8092
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8093
+ hint: string;
8094
+ backgroundId: string;
8095
+ pid?: number;
8096
+ command: string;
8097
+ cwd: string;
8098
+ startedAt: string;
8099
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8100
+ code?: number | null;
8101
+ signal?: NodeJS.Signals | null;
8102
+ outputHandle: string;
8103
+ outputBytes: {
8104
+ totalBytes: number;
8105
+ retainedBytes: number;
8106
+ omittedBytes: number;
8107
+ };
8108
+ error?: string;
8109
+ ok: boolean;
8110
+ background: boolean;
8111
+ reasonCode?: undefined;
8112
+ recoverable?: undefined;
8113
+ suggestedNextStep?: undefined;
8114
+ } | {
8115
+ ok: boolean;
8116
+ background: boolean;
8117
+ command: string;
8118
+ reasonCode: string;
8119
+ recoverable: boolean;
8120
+ error: string;
8121
+ suggestedNextStep: string;
7749
8122
  } | {
7750
8123
  error?: string | undefined;
7751
8124
  ok: boolean;
@@ -7761,8 +8134,20 @@ export declare const hazeTools: {
7761
8134
  stdout: import("../core/bashOutput/types.js").StreamReduction;
7762
8135
  stderr: import("../core/bashOutput/types.js").StreamReduction;
7763
8136
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7764
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7765
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8137
+ stdoutBytes: {
8138
+ totalBytes: number;
8139
+ retainedBytes: number;
8140
+ omittedBytes: number;
8141
+ };
8142
+ stderrBytes: {
8143
+ totalBytes: number;
8144
+ retainedBytes: number;
8145
+ omittedBytes: number;
8146
+ };
8147
+ reasonCode?: undefined;
8148
+ recoverable?: undefined;
8149
+ suggestedNextStep?: undefined;
8150
+ background?: undefined;
7766
8151
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7767
8152
  } & {
7768
8153
  description?: string | ((options: {
@@ -7774,6 +8159,7 @@ export declare const hazeTools: {
7774
8159
  input: NoInfer<{
7775
8160
  command: string;
7776
8161
  allowMutation: boolean;
8162
+ background: boolean;
7777
8163
  timeoutSeconds?: number | undefined;
7778
8164
  }>;
7779
8165
  }[] | undefined;
@@ -7787,12 +8173,52 @@ export declare const hazeTools: {
7787
8173
  execute: import("ai").ToolExecuteFunction<{
7788
8174
  command: string;
7789
8175
  allowMutation: boolean;
8176
+ background: boolean;
7790
8177
  timeoutSeconds?: number | undefined;
7791
8178
  }, {
7792
8179
  ok: true;
7793
8180
  duplicateSkipped: true;
7794
8181
  toolName: string;
7795
8182
  reason: string;
8183
+ } | {
8184
+ ok: boolean;
8185
+ command: string;
8186
+ reasonCode: string;
8187
+ recoverable: boolean;
8188
+ error: string;
8189
+ suggestedNextStep: string;
8190
+ background?: undefined;
8191
+ } | {
8192
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8193
+ hint: string;
8194
+ backgroundId: string;
8195
+ pid?: number;
8196
+ command: string;
8197
+ cwd: string;
8198
+ startedAt: string;
8199
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8200
+ code?: number | null;
8201
+ signal?: NodeJS.Signals | null;
8202
+ outputHandle: string;
8203
+ outputBytes: {
8204
+ totalBytes: number;
8205
+ retainedBytes: number;
8206
+ omittedBytes: number;
8207
+ };
8208
+ error?: string;
8209
+ ok: boolean;
8210
+ background: boolean;
8211
+ reasonCode?: undefined;
8212
+ recoverable?: undefined;
8213
+ suggestedNextStep?: undefined;
8214
+ } | {
8215
+ ok: boolean;
8216
+ background: boolean;
8217
+ command: string;
8218
+ reasonCode: string;
8219
+ recoverable: boolean;
8220
+ error: string;
8221
+ suggestedNextStep: string;
7796
8222
  } | {
7797
8223
  error?: string | undefined;
7798
8224
  ok: boolean;
@@ -7808,8 +8234,20 @@ export declare const hazeTools: {
7808
8234
  stdout: import("../core/bashOutput/types.js").StreamReduction;
7809
8235
  stderr: import("../core/bashOutput/types.js").StreamReduction;
7810
8236
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7811
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7812
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8237
+ stdoutBytes: {
8238
+ totalBytes: number;
8239
+ retainedBytes: number;
8240
+ omittedBytes: number;
8241
+ };
8242
+ stderrBytes: {
8243
+ totalBytes: number;
8244
+ retainedBytes: number;
8245
+ omittedBytes: number;
8246
+ };
8247
+ reasonCode?: undefined;
8248
+ recoverable?: undefined;
8249
+ suggestedNextStep?: undefined;
8250
+ background?: undefined;
7813
8251
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7814
8252
  }) | ({
7815
8253
  title?: string;
@@ -7818,12 +8256,14 @@ export declare const hazeTools: {
7818
8256
  inputSchema: import("ai").FlexibleSchema<{
7819
8257
  command: string;
7820
8258
  allowMutation: boolean;
8259
+ background: boolean;
7821
8260
  timeoutSeconds?: number | undefined;
7822
8261
  }>;
7823
8262
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
7824
8263
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
7825
8264
  command: string;
7826
8265
  allowMutation: boolean;
8266
+ background: boolean;
7827
8267
  timeoutSeconds?: number | undefined;
7828
8268
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
7829
8269
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -7834,6 +8274,7 @@ export declare const hazeTools: {
7834
8274
  input: {
7835
8275
  command: string;
7836
8276
  allowMutation: boolean;
8277
+ background: boolean;
7837
8278
  timeoutSeconds?: number | undefined;
7838
8279
  };
7839
8280
  } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -7842,6 +8283,7 @@ export declare const hazeTools: {
7842
8283
  input: {
7843
8284
  command: string;
7844
8285
  allowMutation: boolean;
8286
+ background: boolean;
7845
8287
  timeoutSeconds?: number | undefined;
7846
8288
  };
7847
8289
  output: NoInfer<{
@@ -7849,6 +8291,45 @@ export declare const hazeTools: {
7849
8291
  duplicateSkipped: true;
7850
8292
  toolName: string;
7851
8293
  reason: string;
8294
+ } | {
8295
+ ok: boolean;
8296
+ command: string;
8297
+ reasonCode: string;
8298
+ recoverable: boolean;
8299
+ error: string;
8300
+ suggestedNextStep: string;
8301
+ background?: undefined;
8302
+ } | {
8303
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8304
+ hint: string;
8305
+ backgroundId: string;
8306
+ pid?: number;
8307
+ command: string;
8308
+ cwd: string;
8309
+ startedAt: string;
8310
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8311
+ code?: number | null;
8312
+ signal?: NodeJS.Signals | null;
8313
+ outputHandle: string;
8314
+ outputBytes: {
8315
+ totalBytes: number;
8316
+ retainedBytes: number;
8317
+ omittedBytes: number;
8318
+ };
8319
+ error?: string;
8320
+ ok: boolean;
8321
+ background: boolean;
8322
+ reasonCode?: undefined;
8323
+ recoverable?: undefined;
8324
+ suggestedNextStep?: undefined;
8325
+ } | {
8326
+ ok: boolean;
8327
+ background: boolean;
8328
+ command: string;
8329
+ reasonCode: string;
8330
+ recoverable: boolean;
8331
+ error: string;
8332
+ suggestedNextStep: string;
7852
8333
  } | {
7853
8334
  error?: string | undefined;
7854
8335
  ok: boolean;
@@ -7864,8 +8345,20 @@ export declare const hazeTools: {
7864
8345
  stdout: import("../core/bashOutput/types.js").StreamReduction;
7865
8346
  stderr: import("../core/bashOutput/types.js").StreamReduction;
7866
8347
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7867
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7868
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8348
+ stdoutBytes: {
8349
+ totalBytes: number;
8350
+ retainedBytes: number;
8351
+ omittedBytes: number;
8352
+ };
8353
+ stderrBytes: {
8354
+ totalBytes: number;
8355
+ retainedBytes: number;
8356
+ omittedBytes: number;
8357
+ };
8358
+ reasonCode?: undefined;
8359
+ recoverable?: undefined;
8360
+ suggestedNextStep?: undefined;
8361
+ background?: undefined;
7869
8362
  }>;
7870
8363
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
7871
8364
  } & {
@@ -7874,6 +8367,45 @@ export declare const hazeTools: {
7874
8367
  duplicateSkipped: true;
7875
8368
  toolName: string;
7876
8369
  reason: string;
8370
+ } | {
8371
+ ok: boolean;
8372
+ command: string;
8373
+ reasonCode: string;
8374
+ recoverable: boolean;
8375
+ error: string;
8376
+ suggestedNextStep: string;
8377
+ background?: undefined;
8378
+ } | {
8379
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8380
+ hint: string;
8381
+ backgroundId: string;
8382
+ pid?: number;
8383
+ command: string;
8384
+ cwd: string;
8385
+ startedAt: string;
8386
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8387
+ code?: number | null;
8388
+ signal?: NodeJS.Signals | null;
8389
+ outputHandle: string;
8390
+ outputBytes: {
8391
+ totalBytes: number;
8392
+ retainedBytes: number;
8393
+ omittedBytes: number;
8394
+ };
8395
+ error?: string;
8396
+ ok: boolean;
8397
+ background: boolean;
8398
+ reasonCode?: undefined;
8399
+ recoverable?: undefined;
8400
+ suggestedNextStep?: undefined;
8401
+ } | {
8402
+ ok: boolean;
8403
+ background: boolean;
8404
+ command: string;
8405
+ reasonCode: string;
8406
+ recoverable: boolean;
8407
+ error: string;
8408
+ suggestedNextStep: string;
7877
8409
  } | {
7878
8410
  error?: string | undefined;
7879
8411
  ok: boolean;
@@ -7889,18 +8421,70 @@ export declare const hazeTools: {
7889
8421
  stdout: import("../core/bashOutput/types.js").StreamReduction;
7890
8422
  stderr: import("../core/bashOutput/types.js").StreamReduction;
7891
8423
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7892
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7893
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8424
+ stdoutBytes: {
8425
+ totalBytes: number;
8426
+ retainedBytes: number;
8427
+ omittedBytes: number;
8428
+ };
8429
+ stderrBytes: {
8430
+ totalBytes: number;
8431
+ retainedBytes: number;
8432
+ omittedBytes: number;
8433
+ };
8434
+ reasonCode?: undefined;
8435
+ recoverable?: undefined;
8436
+ suggestedNextStep?: undefined;
8437
+ background?: undefined;
7894
8438
  }> | undefined;
7895
8439
  execute: import("ai").ToolExecuteFunction<{
7896
8440
  command: string;
7897
8441
  allowMutation: boolean;
8442
+ background: boolean;
7898
8443
  timeoutSeconds?: number | undefined;
7899
8444
  }, {
7900
8445
  ok: true;
7901
8446
  duplicateSkipped: true;
7902
8447
  toolName: string;
7903
8448
  reason: string;
8449
+ } | {
8450
+ ok: boolean;
8451
+ command: string;
8452
+ reasonCode: string;
8453
+ recoverable: boolean;
8454
+ error: string;
8455
+ suggestedNextStep: string;
8456
+ background?: undefined;
8457
+ } | {
8458
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8459
+ hint: string;
8460
+ backgroundId: string;
8461
+ pid?: number;
8462
+ command: string;
8463
+ cwd: string;
8464
+ startedAt: string;
8465
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8466
+ code?: number | null;
8467
+ signal?: NodeJS.Signals | null;
8468
+ outputHandle: string;
8469
+ outputBytes: {
8470
+ totalBytes: number;
8471
+ retainedBytes: number;
8472
+ omittedBytes: number;
8473
+ };
8474
+ error?: string;
8475
+ ok: boolean;
8476
+ background: boolean;
8477
+ reasonCode?: undefined;
8478
+ recoverable?: undefined;
8479
+ suggestedNextStep?: undefined;
8480
+ } | {
8481
+ ok: boolean;
8482
+ background: boolean;
8483
+ command: string;
8484
+ reasonCode: string;
8485
+ recoverable: boolean;
8486
+ error: string;
8487
+ suggestedNextStep: string;
7904
8488
  } | {
7905
8489
  error?: string | undefined;
7906
8490
  ok: boolean;
@@ -7916,8 +8500,20 @@ export declare const hazeTools: {
7916
8500
  stdout: import("../core/bashOutput/types.js").StreamReduction;
7917
8501
  stderr: import("../core/bashOutput/types.js").StreamReduction;
7918
8502
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7919
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7920
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8503
+ stdoutBytes: {
8504
+ totalBytes: number;
8505
+ retainedBytes: number;
8506
+ omittedBytes: number;
8507
+ };
8508
+ stderrBytes: {
8509
+ totalBytes: number;
8510
+ retainedBytes: number;
8511
+ omittedBytes: number;
8512
+ };
8513
+ reasonCode?: undefined;
8514
+ recoverable?: undefined;
8515
+ suggestedNextStep?: undefined;
8516
+ background?: undefined;
7921
8517
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7922
8518
  } & {
7923
8519
  type: "provider";
@@ -7933,6 +8529,7 @@ export declare const hazeTools: {
7933
8529
  execute: import("ai").ToolExecuteFunction<{
7934
8530
  command: string;
7935
8531
  allowMutation: boolean;
8532
+ background: boolean;
7936
8533
  timeoutSeconds?: number | undefined;
7937
8534
  }, {
7938
8535
  ok: true;
@@ -7940,12 +8537,51 @@ export declare const hazeTools: {
7940
8537
  toolName: string;
7941
8538
  reason: string;
7942
8539
  } | {
7943
- error?: string | undefined;
7944
8540
  ok: boolean;
7945
- code: number | null;
7946
8541
  command: string;
7947
- cwd: string;
7948
- classification: import("../core/safety/bashClassifier.js").BashClassification;
8542
+ reasonCode: string;
8543
+ recoverable: boolean;
8544
+ error: string;
8545
+ suggestedNextStep: string;
8546
+ background?: undefined;
8547
+ } | {
8548
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8549
+ hint: string;
8550
+ backgroundId: string;
8551
+ pid?: number;
8552
+ command: string;
8553
+ cwd: string;
8554
+ startedAt: string;
8555
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8556
+ code?: number | null;
8557
+ signal?: NodeJS.Signals | null;
8558
+ outputHandle: string;
8559
+ outputBytes: {
8560
+ totalBytes: number;
8561
+ retainedBytes: number;
8562
+ omittedBytes: number;
8563
+ };
8564
+ error?: string;
8565
+ ok: boolean;
8566
+ background: boolean;
8567
+ reasonCode?: undefined;
8568
+ recoverable?: undefined;
8569
+ suggestedNextStep?: undefined;
8570
+ } | {
8571
+ ok: boolean;
8572
+ background: boolean;
8573
+ command: string;
8574
+ reasonCode: string;
8575
+ recoverable: boolean;
8576
+ error: string;
8577
+ suggestedNextStep: string;
8578
+ } | {
8579
+ error?: string | undefined;
8580
+ ok: boolean;
8581
+ code: number | null;
8582
+ command: string;
8583
+ cwd: string;
8584
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
7949
8585
  durationMs: number;
7950
8586
  timedOut: boolean;
7951
8587
  aborted: boolean;
@@ -7954,8 +8590,20 @@ export declare const hazeTools: {
7954
8590
  stdout: import("../core/bashOutput/types.js").StreamReduction;
7955
8591
  stderr: import("../core/bashOutput/types.js").StreamReduction;
7956
8592
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
7957
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
7958
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8593
+ stdoutBytes: {
8594
+ totalBytes: number;
8595
+ retainedBytes: number;
8596
+ omittedBytes: number;
8597
+ };
8598
+ stderrBytes: {
8599
+ totalBytes: number;
8600
+ retainedBytes: number;
8601
+ omittedBytes: number;
8602
+ };
8603
+ reasonCode?: undefined;
8604
+ recoverable?: undefined;
8605
+ suggestedNextStep?: undefined;
8606
+ background?: undefined;
7959
8607
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
7960
8608
  }) | ({
7961
8609
  title?: string;
@@ -7964,12 +8612,14 @@ export declare const hazeTools: {
7964
8612
  inputSchema: import("ai").FlexibleSchema<{
7965
8613
  command: string;
7966
8614
  allowMutation: boolean;
8615
+ background: boolean;
7967
8616
  timeoutSeconds?: number | undefined;
7968
8617
  }>;
7969
8618
  contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
7970
8619
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
7971
8620
  command: string;
7972
8621
  allowMutation: boolean;
8622
+ background: boolean;
7973
8623
  timeoutSeconds?: number | undefined;
7974
8624
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
7975
8625
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -7980,6 +8630,7 @@ export declare const hazeTools: {
7980
8630
  input: {
7981
8631
  command: string;
7982
8632
  allowMutation: boolean;
8633
+ background: boolean;
7983
8634
  timeoutSeconds?: number | undefined;
7984
8635
  };
7985
8636
  } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
@@ -7988,6 +8639,7 @@ export declare const hazeTools: {
7988
8639
  input: {
7989
8640
  command: string;
7990
8641
  allowMutation: boolean;
8642
+ background: boolean;
7991
8643
  timeoutSeconds?: number | undefined;
7992
8644
  };
7993
8645
  output: NoInfer<{
@@ -7995,6 +8647,45 @@ export declare const hazeTools: {
7995
8647
  duplicateSkipped: true;
7996
8648
  toolName: string;
7997
8649
  reason: string;
8650
+ } | {
8651
+ ok: boolean;
8652
+ command: string;
8653
+ reasonCode: string;
8654
+ recoverable: boolean;
8655
+ error: string;
8656
+ suggestedNextStep: string;
8657
+ background?: undefined;
8658
+ } | {
8659
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8660
+ hint: string;
8661
+ backgroundId: string;
8662
+ pid?: number;
8663
+ command: string;
8664
+ cwd: string;
8665
+ startedAt: string;
8666
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8667
+ code?: number | null;
8668
+ signal?: NodeJS.Signals | null;
8669
+ outputHandle: string;
8670
+ outputBytes: {
8671
+ totalBytes: number;
8672
+ retainedBytes: number;
8673
+ omittedBytes: number;
8674
+ };
8675
+ error?: string;
8676
+ ok: boolean;
8677
+ background: boolean;
8678
+ reasonCode?: undefined;
8679
+ recoverable?: undefined;
8680
+ suggestedNextStep?: undefined;
8681
+ } | {
8682
+ ok: boolean;
8683
+ background: boolean;
8684
+ command: string;
8685
+ reasonCode: string;
8686
+ recoverable: boolean;
8687
+ error: string;
8688
+ suggestedNextStep: string;
7998
8689
  } | {
7999
8690
  error?: string | undefined;
8000
8691
  ok: boolean;
@@ -8010,8 +8701,20 @@ export declare const hazeTools: {
8010
8701
  stdout: import("../core/bashOutput/types.js").StreamReduction;
8011
8702
  stderr: import("../core/bashOutput/types.js").StreamReduction;
8012
8703
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8013
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8014
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8704
+ stdoutBytes: {
8705
+ totalBytes: number;
8706
+ retainedBytes: number;
8707
+ omittedBytes: number;
8708
+ };
8709
+ stderrBytes: {
8710
+ totalBytes: number;
8711
+ retainedBytes: number;
8712
+ omittedBytes: number;
8713
+ };
8714
+ reasonCode?: undefined;
8715
+ recoverable?: undefined;
8716
+ suggestedNextStep?: undefined;
8717
+ background?: undefined;
8015
8718
  }>;
8016
8719
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
8017
8720
  } & {
@@ -8020,6 +8723,45 @@ export declare const hazeTools: {
8020
8723
  duplicateSkipped: true;
8021
8724
  toolName: string;
8022
8725
  reason: string;
8726
+ } | {
8727
+ ok: boolean;
8728
+ command: string;
8729
+ reasonCode: string;
8730
+ recoverable: boolean;
8731
+ error: string;
8732
+ suggestedNextStep: string;
8733
+ background?: undefined;
8734
+ } | {
8735
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8736
+ hint: string;
8737
+ backgroundId: string;
8738
+ pid?: number;
8739
+ command: string;
8740
+ cwd: string;
8741
+ startedAt: string;
8742
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8743
+ code?: number | null;
8744
+ signal?: NodeJS.Signals | null;
8745
+ outputHandle: string;
8746
+ outputBytes: {
8747
+ totalBytes: number;
8748
+ retainedBytes: number;
8749
+ omittedBytes: number;
8750
+ };
8751
+ error?: string;
8752
+ ok: boolean;
8753
+ background: boolean;
8754
+ reasonCode?: undefined;
8755
+ recoverable?: undefined;
8756
+ suggestedNextStep?: undefined;
8757
+ } | {
8758
+ ok: boolean;
8759
+ background: boolean;
8760
+ command: string;
8761
+ reasonCode: string;
8762
+ recoverable: boolean;
8763
+ error: string;
8764
+ suggestedNextStep: string;
8023
8765
  } | {
8024
8766
  error?: string | undefined;
8025
8767
  ok: boolean;
@@ -8035,18 +8777,70 @@ export declare const hazeTools: {
8035
8777
  stdout: import("../core/bashOutput/types.js").StreamReduction;
8036
8778
  stderr: import("../core/bashOutput/types.js").StreamReduction;
8037
8779
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8038
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8039
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8780
+ stdoutBytes: {
8781
+ totalBytes: number;
8782
+ retainedBytes: number;
8783
+ omittedBytes: number;
8784
+ };
8785
+ stderrBytes: {
8786
+ totalBytes: number;
8787
+ retainedBytes: number;
8788
+ omittedBytes: number;
8789
+ };
8790
+ reasonCode?: undefined;
8791
+ recoverable?: undefined;
8792
+ suggestedNextStep?: undefined;
8793
+ background?: undefined;
8040
8794
  }> | undefined;
8041
8795
  execute: import("ai").ToolExecuteFunction<{
8042
8796
  command: string;
8043
8797
  allowMutation: boolean;
8798
+ background: boolean;
8044
8799
  timeoutSeconds?: number | undefined;
8045
8800
  }, {
8046
8801
  ok: true;
8047
8802
  duplicateSkipped: true;
8048
8803
  toolName: string;
8049
8804
  reason: string;
8805
+ } | {
8806
+ ok: boolean;
8807
+ command: string;
8808
+ reasonCode: string;
8809
+ recoverable: boolean;
8810
+ error: string;
8811
+ suggestedNextStep: string;
8812
+ background?: undefined;
8813
+ } | {
8814
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8815
+ hint: string;
8816
+ backgroundId: string;
8817
+ pid?: number;
8818
+ command: string;
8819
+ cwd: string;
8820
+ startedAt: string;
8821
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8822
+ code?: number | null;
8823
+ signal?: NodeJS.Signals | null;
8824
+ outputHandle: string;
8825
+ outputBytes: {
8826
+ totalBytes: number;
8827
+ retainedBytes: number;
8828
+ omittedBytes: number;
8829
+ };
8830
+ error?: string;
8831
+ ok: boolean;
8832
+ background: boolean;
8833
+ reasonCode?: undefined;
8834
+ recoverable?: undefined;
8835
+ suggestedNextStep?: undefined;
8836
+ } | {
8837
+ ok: boolean;
8838
+ background: boolean;
8839
+ command: string;
8840
+ reasonCode: string;
8841
+ recoverable: boolean;
8842
+ error: string;
8843
+ suggestedNextStep: string;
8050
8844
  } | {
8051
8845
  error?: string | undefined;
8052
8846
  ok: boolean;
@@ -8062,8 +8856,20 @@ export declare const hazeTools: {
8062
8856
  stdout: import("../core/bashOutput/types.js").StreamReduction;
8063
8857
  stderr: import("../core/bashOutput/types.js").StreamReduction;
8064
8858
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8065
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8066
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8859
+ stdoutBytes: {
8860
+ totalBytes: number;
8861
+ retainedBytes: number;
8862
+ omittedBytes: number;
8863
+ };
8864
+ stderrBytes: {
8865
+ totalBytes: number;
8866
+ retainedBytes: number;
8867
+ omittedBytes: number;
8868
+ };
8869
+ reasonCode?: undefined;
8870
+ recoverable?: undefined;
8871
+ suggestedNextStep?: undefined;
8872
+ background?: undefined;
8067
8873
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
8068
8874
  } & {
8069
8875
  type: "provider";
@@ -8079,12 +8885,52 @@ export declare const hazeTools: {
8079
8885
  execute: import("ai").ToolExecuteFunction<{
8080
8886
  command: string;
8081
8887
  allowMutation: boolean;
8888
+ background: boolean;
8082
8889
  timeoutSeconds?: number | undefined;
8083
8890
  }, {
8084
8891
  ok: true;
8085
8892
  duplicateSkipped: true;
8086
8893
  toolName: string;
8087
8894
  reason: string;
8895
+ } | {
8896
+ ok: boolean;
8897
+ command: string;
8898
+ reasonCode: string;
8899
+ recoverable: boolean;
8900
+ error: string;
8901
+ suggestedNextStep: string;
8902
+ background?: undefined;
8903
+ } | {
8904
+ classification: import("../core/safety/bashClassifier.js").BashClassification;
8905
+ hint: string;
8906
+ backgroundId: string;
8907
+ pid?: number;
8908
+ command: string;
8909
+ cwd: string;
8910
+ startedAt: string;
8911
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
8912
+ code?: number | null;
8913
+ signal?: NodeJS.Signals | null;
8914
+ outputHandle: string;
8915
+ outputBytes: {
8916
+ totalBytes: number;
8917
+ retainedBytes: number;
8918
+ omittedBytes: number;
8919
+ };
8920
+ error?: string;
8921
+ ok: boolean;
8922
+ background: boolean;
8923
+ reasonCode?: undefined;
8924
+ recoverable?: undefined;
8925
+ suggestedNextStep?: undefined;
8926
+ } | {
8927
+ ok: boolean;
8928
+ background: boolean;
8929
+ command: string;
8930
+ reasonCode: string;
8931
+ recoverable: boolean;
8932
+ error: string;
8933
+ suggestedNextStep: string;
8088
8934
  } | {
8089
8935
  error?: string | undefined;
8090
8936
  ok: boolean;
@@ -8100,8 +8946,1097 @@ export declare const hazeTools: {
8100
8946
  stdout: import("../core/bashOutput/types.js").StreamReduction;
8101
8947
  stderr: import("../core/bashOutput/types.js").StreamReduction;
8102
8948
  validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
8103
- stdoutBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8104
- stderrBytes: import("../core/process/runBoundedProcess.js").BoundedStream;
8949
+ stdoutBytes: {
8950
+ totalBytes: number;
8951
+ retainedBytes: number;
8952
+ omittedBytes: number;
8953
+ };
8954
+ stderrBytes: {
8955
+ totalBytes: number;
8956
+ retainedBytes: number;
8957
+ omittedBytes: number;
8958
+ };
8959
+ reasonCode?: undefined;
8960
+ recoverable?: undefined;
8961
+ suggestedNextStep?: undefined;
8962
+ background?: undefined;
8963
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
8964
+ });
8965
+ process: ({
8966
+ title?: string;
8967
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
8968
+ metadata?: import("@ai-sdk/provider").JSONObject;
8969
+ inputSchema: import("ai").FlexibleSchema<{
8970
+ action: "output" | "kill" | "list";
8971
+ offset: number;
8972
+ limit: number;
8973
+ backgroundId?: string | undefined;
8974
+ }>;
8975
+ contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
8976
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
8977
+ action: "output" | "kill" | "list";
8978
+ offset: number;
8979
+ limit: number;
8980
+ backgroundId?: string | undefined;
8981
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
8982
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
8983
+ onInputDelta?: ((options: {
8984
+ inputTextDelta: string;
8985
+ } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
8986
+ onInputAvailable?: ((options: {
8987
+ input: {
8988
+ action: "output" | "kill" | "list";
8989
+ offset: number;
8990
+ limit: number;
8991
+ backgroundId?: string | undefined;
8992
+ };
8993
+ } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
8994
+ toModelOutput?: ((options: {
8995
+ toolCallId: string;
8996
+ input: {
8997
+ action: "output" | "kill" | "list";
8998
+ offset: number;
8999
+ limit: number;
9000
+ backgroundId?: string | undefined;
9001
+ };
9002
+ output: NoInfer<{
9003
+ ok: boolean;
9004
+ reasonCode: string;
9005
+ recoverable: boolean;
9006
+ error: string;
9007
+ suggestedNextStep: string;
9008
+ processes?: undefined;
9009
+ action?: undefined;
9010
+ process?: undefined;
9011
+ } | {
9012
+ ok: boolean;
9013
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9014
+ reasonCode?: undefined;
9015
+ recoverable?: undefined;
9016
+ error?: undefined;
9017
+ suggestedNextStep?: undefined;
9018
+ action?: undefined;
9019
+ process?: undefined;
9020
+ } | {
9021
+ handle: string;
9022
+ offset: number;
9023
+ nextOffset?: number;
9024
+ totalChars: number;
9025
+ totalBytes: number;
9026
+ retainedBytes: number;
9027
+ omittedBytes: number;
9028
+ content: string;
9029
+ truncated: boolean;
9030
+ query?: string;
9031
+ matches?: number;
9032
+ ok: boolean;
9033
+ backgroundId: string;
9034
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9035
+ outputHandle: string;
9036
+ reasonCode?: undefined;
9037
+ recoverable?: undefined;
9038
+ error?: undefined;
9039
+ suggestedNextStep?: undefined;
9040
+ processes?: undefined;
9041
+ action?: undefined;
9042
+ process?: undefined;
9043
+ } | {
9044
+ ok: boolean;
9045
+ action: string;
9046
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9047
+ reasonCode?: undefined;
9048
+ recoverable?: undefined;
9049
+ error?: undefined;
9050
+ suggestedNextStep?: undefined;
9051
+ processes?: undefined;
9052
+ }>;
9053
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
9054
+ } & {
9055
+ outputSchema?: import("ai").FlexibleSchema<{
9056
+ ok: boolean;
9057
+ reasonCode: string;
9058
+ recoverable: boolean;
9059
+ error: string;
9060
+ suggestedNextStep: string;
9061
+ processes?: undefined;
9062
+ action?: undefined;
9063
+ process?: undefined;
9064
+ } | {
9065
+ ok: boolean;
9066
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9067
+ reasonCode?: undefined;
9068
+ recoverable?: undefined;
9069
+ error?: undefined;
9070
+ suggestedNextStep?: undefined;
9071
+ action?: undefined;
9072
+ process?: undefined;
9073
+ } | {
9074
+ handle: string;
9075
+ offset: number;
9076
+ nextOffset?: number;
9077
+ totalChars: number;
9078
+ totalBytes: number;
9079
+ retainedBytes: number;
9080
+ omittedBytes: number;
9081
+ content: string;
9082
+ truncated: boolean;
9083
+ query?: string;
9084
+ matches?: number;
9085
+ ok: boolean;
9086
+ backgroundId: string;
9087
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9088
+ outputHandle: string;
9089
+ reasonCode?: undefined;
9090
+ recoverable?: undefined;
9091
+ error?: undefined;
9092
+ suggestedNextStep?: undefined;
9093
+ processes?: undefined;
9094
+ action?: undefined;
9095
+ process?: undefined;
9096
+ } | {
9097
+ ok: boolean;
9098
+ action: string;
9099
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9100
+ reasonCode?: undefined;
9101
+ recoverable?: undefined;
9102
+ error?: undefined;
9103
+ suggestedNextStep?: undefined;
9104
+ processes?: undefined;
9105
+ }> | undefined;
9106
+ execute: import("ai").ToolExecuteFunction<{
9107
+ action: "output" | "kill" | "list";
9108
+ offset: number;
9109
+ limit: number;
9110
+ backgroundId?: string | undefined;
9111
+ }, {
9112
+ ok: boolean;
9113
+ reasonCode: string;
9114
+ recoverable: boolean;
9115
+ error: string;
9116
+ suggestedNextStep: string;
9117
+ processes?: undefined;
9118
+ action?: undefined;
9119
+ process?: undefined;
9120
+ } | {
9121
+ ok: boolean;
9122
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9123
+ reasonCode?: undefined;
9124
+ recoverable?: undefined;
9125
+ error?: undefined;
9126
+ suggestedNextStep?: undefined;
9127
+ action?: undefined;
9128
+ process?: undefined;
9129
+ } | {
9130
+ handle: string;
9131
+ offset: number;
9132
+ nextOffset?: number;
9133
+ totalChars: number;
9134
+ totalBytes: number;
9135
+ retainedBytes: number;
9136
+ omittedBytes: number;
9137
+ content: string;
9138
+ truncated: boolean;
9139
+ query?: string;
9140
+ matches?: number;
9141
+ ok: boolean;
9142
+ backgroundId: string;
9143
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9144
+ outputHandle: string;
9145
+ reasonCode?: undefined;
9146
+ recoverable?: undefined;
9147
+ error?: undefined;
9148
+ suggestedNextStep?: undefined;
9149
+ processes?: undefined;
9150
+ action?: undefined;
9151
+ process?: undefined;
9152
+ } | {
9153
+ ok: boolean;
9154
+ action: string;
9155
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9156
+ reasonCode?: undefined;
9157
+ recoverable?: undefined;
9158
+ error?: undefined;
9159
+ suggestedNextStep?: undefined;
9160
+ processes?: undefined;
9161
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
9162
+ } & {
9163
+ description?: string | ((options: {
9164
+ context: NoInfer<import("./tools/toolContext.js").HazeToolContext>;
9165
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
9166
+ }) => string) | undefined;
9167
+ strict?: boolean;
9168
+ inputExamples?: {
9169
+ input: NoInfer<{
9170
+ action: "output" | "kill" | "list";
9171
+ offset: number;
9172
+ limit: number;
9173
+ backgroundId?: string | undefined;
9174
+ }>;
9175
+ }[] | undefined;
9176
+ id?: never;
9177
+ isProviderExecuted?: never;
9178
+ args?: never;
9179
+ supportsDeferredResults?: never;
9180
+ } & {
9181
+ type?: undefined | "function";
9182
+ } & {
9183
+ execute: import("ai").ToolExecuteFunction<{
9184
+ action: "output" | "kill" | "list";
9185
+ offset: number;
9186
+ limit: number;
9187
+ backgroundId?: string | undefined;
9188
+ }, {
9189
+ ok: boolean;
9190
+ reasonCode: string;
9191
+ recoverable: boolean;
9192
+ error: string;
9193
+ suggestedNextStep: string;
9194
+ processes?: undefined;
9195
+ action?: undefined;
9196
+ process?: undefined;
9197
+ } | {
9198
+ ok: boolean;
9199
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9200
+ reasonCode?: undefined;
9201
+ recoverable?: undefined;
9202
+ error?: undefined;
9203
+ suggestedNextStep?: undefined;
9204
+ action?: undefined;
9205
+ process?: undefined;
9206
+ } | {
9207
+ handle: string;
9208
+ offset: number;
9209
+ nextOffset?: number;
9210
+ totalChars: number;
9211
+ totalBytes: number;
9212
+ retainedBytes: number;
9213
+ omittedBytes: number;
9214
+ content: string;
9215
+ truncated: boolean;
9216
+ query?: string;
9217
+ matches?: number;
9218
+ ok: boolean;
9219
+ backgroundId: string;
9220
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9221
+ outputHandle: string;
9222
+ reasonCode?: undefined;
9223
+ recoverable?: undefined;
9224
+ error?: undefined;
9225
+ suggestedNextStep?: undefined;
9226
+ processes?: undefined;
9227
+ action?: undefined;
9228
+ process?: undefined;
9229
+ } | {
9230
+ ok: boolean;
9231
+ action: string;
9232
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9233
+ reasonCode?: undefined;
9234
+ recoverable?: undefined;
9235
+ error?: undefined;
9236
+ suggestedNextStep?: undefined;
9237
+ processes?: undefined;
9238
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
9239
+ }) | ({
9240
+ title?: string;
9241
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
9242
+ metadata?: import("@ai-sdk/provider").JSONObject;
9243
+ inputSchema: import("ai").FlexibleSchema<{
9244
+ action: "output" | "kill" | "list";
9245
+ offset: number;
9246
+ limit: number;
9247
+ backgroundId?: string | undefined;
9248
+ }>;
9249
+ contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
9250
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
9251
+ action: "output" | "kill" | "list";
9252
+ offset: number;
9253
+ limit: number;
9254
+ backgroundId?: string | undefined;
9255
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
9256
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
9257
+ onInputDelta?: ((options: {
9258
+ inputTextDelta: string;
9259
+ } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
9260
+ onInputAvailable?: ((options: {
9261
+ input: {
9262
+ action: "output" | "kill" | "list";
9263
+ offset: number;
9264
+ limit: number;
9265
+ backgroundId?: string | undefined;
9266
+ };
9267
+ } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
9268
+ toModelOutput?: ((options: {
9269
+ toolCallId: string;
9270
+ input: {
9271
+ action: "output" | "kill" | "list";
9272
+ offset: number;
9273
+ limit: number;
9274
+ backgroundId?: string | undefined;
9275
+ };
9276
+ output: NoInfer<{
9277
+ ok: boolean;
9278
+ reasonCode: string;
9279
+ recoverable: boolean;
9280
+ error: string;
9281
+ suggestedNextStep: string;
9282
+ processes?: undefined;
9283
+ action?: undefined;
9284
+ process?: undefined;
9285
+ } | {
9286
+ ok: boolean;
9287
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9288
+ reasonCode?: undefined;
9289
+ recoverable?: undefined;
9290
+ error?: undefined;
9291
+ suggestedNextStep?: undefined;
9292
+ action?: undefined;
9293
+ process?: undefined;
9294
+ } | {
9295
+ handle: string;
9296
+ offset: number;
9297
+ nextOffset?: number;
9298
+ totalChars: number;
9299
+ totalBytes: number;
9300
+ retainedBytes: number;
9301
+ omittedBytes: number;
9302
+ content: string;
9303
+ truncated: boolean;
9304
+ query?: string;
9305
+ matches?: number;
9306
+ ok: boolean;
9307
+ backgroundId: string;
9308
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9309
+ outputHandle: string;
9310
+ reasonCode?: undefined;
9311
+ recoverable?: undefined;
9312
+ error?: undefined;
9313
+ suggestedNextStep?: undefined;
9314
+ processes?: undefined;
9315
+ action?: undefined;
9316
+ process?: undefined;
9317
+ } | {
9318
+ ok: boolean;
9319
+ action: string;
9320
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9321
+ reasonCode?: undefined;
9322
+ recoverable?: undefined;
9323
+ error?: undefined;
9324
+ suggestedNextStep?: undefined;
9325
+ processes?: undefined;
9326
+ }>;
9327
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
9328
+ } & {
9329
+ outputSchema?: import("ai").FlexibleSchema<{
9330
+ ok: boolean;
9331
+ reasonCode: string;
9332
+ recoverable: boolean;
9333
+ error: string;
9334
+ suggestedNextStep: string;
9335
+ processes?: undefined;
9336
+ action?: undefined;
9337
+ process?: undefined;
9338
+ } | {
9339
+ ok: boolean;
9340
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9341
+ reasonCode?: undefined;
9342
+ recoverable?: undefined;
9343
+ error?: undefined;
9344
+ suggestedNextStep?: undefined;
9345
+ action?: undefined;
9346
+ process?: undefined;
9347
+ } | {
9348
+ handle: string;
9349
+ offset: number;
9350
+ nextOffset?: number;
9351
+ totalChars: number;
9352
+ totalBytes: number;
9353
+ retainedBytes: number;
9354
+ omittedBytes: number;
9355
+ content: string;
9356
+ truncated: boolean;
9357
+ query?: string;
9358
+ matches?: number;
9359
+ ok: boolean;
9360
+ backgroundId: string;
9361
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9362
+ outputHandle: string;
9363
+ reasonCode?: undefined;
9364
+ recoverable?: undefined;
9365
+ error?: undefined;
9366
+ suggestedNextStep?: undefined;
9367
+ processes?: undefined;
9368
+ action?: undefined;
9369
+ process?: undefined;
9370
+ } | {
9371
+ ok: boolean;
9372
+ action: string;
9373
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9374
+ reasonCode?: undefined;
9375
+ recoverable?: undefined;
9376
+ error?: undefined;
9377
+ suggestedNextStep?: undefined;
9378
+ processes?: undefined;
9379
+ }> | undefined;
9380
+ execute: import("ai").ToolExecuteFunction<{
9381
+ action: "output" | "kill" | "list";
9382
+ offset: number;
9383
+ limit: number;
9384
+ backgroundId?: string | undefined;
9385
+ }, {
9386
+ ok: boolean;
9387
+ reasonCode: string;
9388
+ recoverable: boolean;
9389
+ error: string;
9390
+ suggestedNextStep: string;
9391
+ processes?: undefined;
9392
+ action?: undefined;
9393
+ process?: undefined;
9394
+ } | {
9395
+ ok: boolean;
9396
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9397
+ reasonCode?: undefined;
9398
+ recoverable?: undefined;
9399
+ error?: undefined;
9400
+ suggestedNextStep?: undefined;
9401
+ action?: undefined;
9402
+ process?: undefined;
9403
+ } | {
9404
+ handle: string;
9405
+ offset: number;
9406
+ nextOffset?: number;
9407
+ totalChars: number;
9408
+ totalBytes: number;
9409
+ retainedBytes: number;
9410
+ omittedBytes: number;
9411
+ content: string;
9412
+ truncated: boolean;
9413
+ query?: string;
9414
+ matches?: number;
9415
+ ok: boolean;
9416
+ backgroundId: string;
9417
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9418
+ outputHandle: string;
9419
+ reasonCode?: undefined;
9420
+ recoverable?: undefined;
9421
+ error?: undefined;
9422
+ suggestedNextStep?: undefined;
9423
+ processes?: undefined;
9424
+ action?: undefined;
9425
+ process?: undefined;
9426
+ } | {
9427
+ ok: boolean;
9428
+ action: string;
9429
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9430
+ reasonCode?: undefined;
9431
+ recoverable?: undefined;
9432
+ error?: undefined;
9433
+ suggestedNextStep?: undefined;
9434
+ processes?: undefined;
9435
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
9436
+ } & {
9437
+ description?: string | ((options: {
9438
+ context: NoInfer<import("./tools/toolContext.js").HazeToolContext>;
9439
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
9440
+ }) => string) | undefined;
9441
+ strict?: boolean;
9442
+ inputExamples?: {
9443
+ input: NoInfer<{
9444
+ action: "output" | "kill" | "list";
9445
+ offset: number;
9446
+ limit: number;
9447
+ backgroundId?: string | undefined;
9448
+ }>;
9449
+ }[] | undefined;
9450
+ id?: never;
9451
+ isProviderExecuted?: never;
9452
+ args?: never;
9453
+ supportsDeferredResults?: never;
9454
+ } & {
9455
+ type: "dynamic";
9456
+ } & {
9457
+ execute: import("ai").ToolExecuteFunction<{
9458
+ action: "output" | "kill" | "list";
9459
+ offset: number;
9460
+ limit: number;
9461
+ backgroundId?: string | undefined;
9462
+ }, {
9463
+ ok: boolean;
9464
+ reasonCode: string;
9465
+ recoverable: boolean;
9466
+ error: string;
9467
+ suggestedNextStep: string;
9468
+ processes?: undefined;
9469
+ action?: undefined;
9470
+ process?: undefined;
9471
+ } | {
9472
+ ok: boolean;
9473
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9474
+ reasonCode?: undefined;
9475
+ recoverable?: undefined;
9476
+ error?: undefined;
9477
+ suggestedNextStep?: undefined;
9478
+ action?: undefined;
9479
+ process?: undefined;
9480
+ } | {
9481
+ handle: string;
9482
+ offset: number;
9483
+ nextOffset?: number;
9484
+ totalChars: number;
9485
+ totalBytes: number;
9486
+ retainedBytes: number;
9487
+ omittedBytes: number;
9488
+ content: string;
9489
+ truncated: boolean;
9490
+ query?: string;
9491
+ matches?: number;
9492
+ ok: boolean;
9493
+ backgroundId: string;
9494
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9495
+ outputHandle: string;
9496
+ reasonCode?: undefined;
9497
+ recoverable?: undefined;
9498
+ error?: undefined;
9499
+ suggestedNextStep?: undefined;
9500
+ processes?: undefined;
9501
+ action?: undefined;
9502
+ process?: undefined;
9503
+ } | {
9504
+ ok: boolean;
9505
+ action: string;
9506
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9507
+ reasonCode?: undefined;
9508
+ recoverable?: undefined;
9509
+ error?: undefined;
9510
+ suggestedNextStep?: undefined;
9511
+ processes?: undefined;
9512
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
9513
+ }) | ({
9514
+ title?: string;
9515
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
9516
+ metadata?: import("@ai-sdk/provider").JSONObject;
9517
+ inputSchema: import("ai").FlexibleSchema<{
9518
+ action: "output" | "kill" | "list";
9519
+ offset: number;
9520
+ limit: number;
9521
+ backgroundId?: string | undefined;
9522
+ }>;
9523
+ contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
9524
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
9525
+ action: "output" | "kill" | "list";
9526
+ offset: number;
9527
+ limit: number;
9528
+ backgroundId?: string | undefined;
9529
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
9530
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
9531
+ onInputDelta?: ((options: {
9532
+ inputTextDelta: string;
9533
+ } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
9534
+ onInputAvailable?: ((options: {
9535
+ input: {
9536
+ action: "output" | "kill" | "list";
9537
+ offset: number;
9538
+ limit: number;
9539
+ backgroundId?: string | undefined;
9540
+ };
9541
+ } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
9542
+ toModelOutput?: ((options: {
9543
+ toolCallId: string;
9544
+ input: {
9545
+ action: "output" | "kill" | "list";
9546
+ offset: number;
9547
+ limit: number;
9548
+ backgroundId?: string | undefined;
9549
+ };
9550
+ output: NoInfer<{
9551
+ ok: boolean;
9552
+ reasonCode: string;
9553
+ recoverable: boolean;
9554
+ error: string;
9555
+ suggestedNextStep: string;
9556
+ processes?: undefined;
9557
+ action?: undefined;
9558
+ process?: undefined;
9559
+ } | {
9560
+ ok: boolean;
9561
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9562
+ reasonCode?: undefined;
9563
+ recoverable?: undefined;
9564
+ error?: undefined;
9565
+ suggestedNextStep?: undefined;
9566
+ action?: undefined;
9567
+ process?: undefined;
9568
+ } | {
9569
+ handle: string;
9570
+ offset: number;
9571
+ nextOffset?: number;
9572
+ totalChars: number;
9573
+ totalBytes: number;
9574
+ retainedBytes: number;
9575
+ omittedBytes: number;
9576
+ content: string;
9577
+ truncated: boolean;
9578
+ query?: string;
9579
+ matches?: number;
9580
+ ok: boolean;
9581
+ backgroundId: string;
9582
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9583
+ outputHandle: string;
9584
+ reasonCode?: undefined;
9585
+ recoverable?: undefined;
9586
+ error?: undefined;
9587
+ suggestedNextStep?: undefined;
9588
+ processes?: undefined;
9589
+ action?: undefined;
9590
+ process?: undefined;
9591
+ } | {
9592
+ ok: boolean;
9593
+ action: string;
9594
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9595
+ reasonCode?: undefined;
9596
+ recoverable?: undefined;
9597
+ error?: undefined;
9598
+ suggestedNextStep?: undefined;
9599
+ processes?: undefined;
9600
+ }>;
9601
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
9602
+ } & {
9603
+ outputSchema?: import("ai").FlexibleSchema<{
9604
+ ok: boolean;
9605
+ reasonCode: string;
9606
+ recoverable: boolean;
9607
+ error: string;
9608
+ suggestedNextStep: string;
9609
+ processes?: undefined;
9610
+ action?: undefined;
9611
+ process?: undefined;
9612
+ } | {
9613
+ ok: boolean;
9614
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9615
+ reasonCode?: undefined;
9616
+ recoverable?: undefined;
9617
+ error?: undefined;
9618
+ suggestedNextStep?: undefined;
9619
+ action?: undefined;
9620
+ process?: undefined;
9621
+ } | {
9622
+ handle: string;
9623
+ offset: number;
9624
+ nextOffset?: number;
9625
+ totalChars: number;
9626
+ totalBytes: number;
9627
+ retainedBytes: number;
9628
+ omittedBytes: number;
9629
+ content: string;
9630
+ truncated: boolean;
9631
+ query?: string;
9632
+ matches?: number;
9633
+ ok: boolean;
9634
+ backgroundId: string;
9635
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9636
+ outputHandle: string;
9637
+ reasonCode?: undefined;
9638
+ recoverable?: undefined;
9639
+ error?: undefined;
9640
+ suggestedNextStep?: undefined;
9641
+ processes?: undefined;
9642
+ action?: undefined;
9643
+ process?: undefined;
9644
+ } | {
9645
+ ok: boolean;
9646
+ action: string;
9647
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9648
+ reasonCode?: undefined;
9649
+ recoverable?: undefined;
9650
+ error?: undefined;
9651
+ suggestedNextStep?: undefined;
9652
+ processes?: undefined;
9653
+ }> | undefined;
9654
+ execute: import("ai").ToolExecuteFunction<{
9655
+ action: "output" | "kill" | "list";
9656
+ offset: number;
9657
+ limit: number;
9658
+ backgroundId?: string | undefined;
9659
+ }, {
9660
+ ok: boolean;
9661
+ reasonCode: string;
9662
+ recoverable: boolean;
9663
+ error: string;
9664
+ suggestedNextStep: string;
9665
+ processes?: undefined;
9666
+ action?: undefined;
9667
+ process?: undefined;
9668
+ } | {
9669
+ ok: boolean;
9670
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9671
+ reasonCode?: undefined;
9672
+ recoverable?: undefined;
9673
+ error?: undefined;
9674
+ suggestedNextStep?: undefined;
9675
+ action?: undefined;
9676
+ process?: undefined;
9677
+ } | {
9678
+ handle: string;
9679
+ offset: number;
9680
+ nextOffset?: number;
9681
+ totalChars: number;
9682
+ totalBytes: number;
9683
+ retainedBytes: number;
9684
+ omittedBytes: number;
9685
+ content: string;
9686
+ truncated: boolean;
9687
+ query?: string;
9688
+ matches?: number;
9689
+ ok: boolean;
9690
+ backgroundId: string;
9691
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9692
+ outputHandle: string;
9693
+ reasonCode?: undefined;
9694
+ recoverable?: undefined;
9695
+ error?: undefined;
9696
+ suggestedNextStep?: undefined;
9697
+ processes?: undefined;
9698
+ action?: undefined;
9699
+ process?: undefined;
9700
+ } | {
9701
+ ok: boolean;
9702
+ action: string;
9703
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9704
+ reasonCode?: undefined;
9705
+ recoverable?: undefined;
9706
+ error?: undefined;
9707
+ suggestedNextStep?: undefined;
9708
+ processes?: undefined;
9709
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
9710
+ } & {
9711
+ type: "provider";
9712
+ id: `${string}.${string}`;
9713
+ args: Record<string, unknown>;
9714
+ description?: never;
9715
+ strict?: never;
9716
+ inputExamples?: never;
9717
+ } & {
9718
+ isProviderExecuted: false;
9719
+ supportsDeferredResults?: never;
9720
+ } & {
9721
+ execute: import("ai").ToolExecuteFunction<{
9722
+ action: "output" | "kill" | "list";
9723
+ offset: number;
9724
+ limit: number;
9725
+ backgroundId?: string | undefined;
9726
+ }, {
9727
+ ok: boolean;
9728
+ reasonCode: string;
9729
+ recoverable: boolean;
9730
+ error: string;
9731
+ suggestedNextStep: string;
9732
+ processes?: undefined;
9733
+ action?: undefined;
9734
+ process?: undefined;
9735
+ } | {
9736
+ ok: boolean;
9737
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9738
+ reasonCode?: undefined;
9739
+ recoverable?: undefined;
9740
+ error?: undefined;
9741
+ suggestedNextStep?: undefined;
9742
+ action?: undefined;
9743
+ process?: undefined;
9744
+ } | {
9745
+ handle: string;
9746
+ offset: number;
9747
+ nextOffset?: number;
9748
+ totalChars: number;
9749
+ totalBytes: number;
9750
+ retainedBytes: number;
9751
+ omittedBytes: number;
9752
+ content: string;
9753
+ truncated: boolean;
9754
+ query?: string;
9755
+ matches?: number;
9756
+ ok: boolean;
9757
+ backgroundId: string;
9758
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9759
+ outputHandle: string;
9760
+ reasonCode?: undefined;
9761
+ recoverable?: undefined;
9762
+ error?: undefined;
9763
+ suggestedNextStep?: undefined;
9764
+ processes?: undefined;
9765
+ action?: undefined;
9766
+ process?: undefined;
9767
+ } | {
9768
+ ok: boolean;
9769
+ action: string;
9770
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9771
+ reasonCode?: undefined;
9772
+ recoverable?: undefined;
9773
+ error?: undefined;
9774
+ suggestedNextStep?: undefined;
9775
+ processes?: undefined;
9776
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
9777
+ }) | ({
9778
+ title?: string;
9779
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
9780
+ metadata?: import("@ai-sdk/provider").JSONObject;
9781
+ inputSchema: import("ai").FlexibleSchema<{
9782
+ action: "output" | "kill" | "list";
9783
+ offset: number;
9784
+ limit: number;
9785
+ backgroundId?: string | undefined;
9786
+ }>;
9787
+ contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
9788
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
9789
+ action: "output" | "kill" | "list";
9790
+ offset: number;
9791
+ limit: number;
9792
+ backgroundId?: string | undefined;
9793
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
9794
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
9795
+ onInputDelta?: ((options: {
9796
+ inputTextDelta: string;
9797
+ } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
9798
+ onInputAvailable?: ((options: {
9799
+ input: {
9800
+ action: "output" | "kill" | "list";
9801
+ offset: number;
9802
+ limit: number;
9803
+ backgroundId?: string | undefined;
9804
+ };
9805
+ } & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
9806
+ toModelOutput?: ((options: {
9807
+ toolCallId: string;
9808
+ input: {
9809
+ action: "output" | "kill" | "list";
9810
+ offset: number;
9811
+ limit: number;
9812
+ backgroundId?: string | undefined;
9813
+ };
9814
+ output: NoInfer<{
9815
+ ok: boolean;
9816
+ reasonCode: string;
9817
+ recoverable: boolean;
9818
+ error: string;
9819
+ suggestedNextStep: string;
9820
+ processes?: undefined;
9821
+ action?: undefined;
9822
+ process?: undefined;
9823
+ } | {
9824
+ ok: boolean;
9825
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9826
+ reasonCode?: undefined;
9827
+ recoverable?: undefined;
9828
+ error?: undefined;
9829
+ suggestedNextStep?: undefined;
9830
+ action?: undefined;
9831
+ process?: undefined;
9832
+ } | {
9833
+ handle: string;
9834
+ offset: number;
9835
+ nextOffset?: number;
9836
+ totalChars: number;
9837
+ totalBytes: number;
9838
+ retainedBytes: number;
9839
+ omittedBytes: number;
9840
+ content: string;
9841
+ truncated: boolean;
9842
+ query?: string;
9843
+ matches?: number;
9844
+ ok: boolean;
9845
+ backgroundId: string;
9846
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9847
+ outputHandle: string;
9848
+ reasonCode?: undefined;
9849
+ recoverable?: undefined;
9850
+ error?: undefined;
9851
+ suggestedNextStep?: undefined;
9852
+ processes?: undefined;
9853
+ action?: undefined;
9854
+ process?: undefined;
9855
+ } | {
9856
+ ok: boolean;
9857
+ action: string;
9858
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9859
+ reasonCode?: undefined;
9860
+ recoverable?: undefined;
9861
+ error?: undefined;
9862
+ suggestedNextStep?: undefined;
9863
+ processes?: undefined;
9864
+ }>;
9865
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
9866
+ } & {
9867
+ outputSchema?: import("ai").FlexibleSchema<{
9868
+ ok: boolean;
9869
+ reasonCode: string;
9870
+ recoverable: boolean;
9871
+ error: string;
9872
+ suggestedNextStep: string;
9873
+ processes?: undefined;
9874
+ action?: undefined;
9875
+ process?: undefined;
9876
+ } | {
9877
+ ok: boolean;
9878
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9879
+ reasonCode?: undefined;
9880
+ recoverable?: undefined;
9881
+ error?: undefined;
9882
+ suggestedNextStep?: undefined;
9883
+ action?: undefined;
9884
+ process?: undefined;
9885
+ } | {
9886
+ handle: string;
9887
+ offset: number;
9888
+ nextOffset?: number;
9889
+ totalChars: number;
9890
+ totalBytes: number;
9891
+ retainedBytes: number;
9892
+ omittedBytes: number;
9893
+ content: string;
9894
+ truncated: boolean;
9895
+ query?: string;
9896
+ matches?: number;
9897
+ ok: boolean;
9898
+ backgroundId: string;
9899
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9900
+ outputHandle: string;
9901
+ reasonCode?: undefined;
9902
+ recoverable?: undefined;
9903
+ error?: undefined;
9904
+ suggestedNextStep?: undefined;
9905
+ processes?: undefined;
9906
+ action?: undefined;
9907
+ process?: undefined;
9908
+ } | {
9909
+ ok: boolean;
9910
+ action: string;
9911
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9912
+ reasonCode?: undefined;
9913
+ recoverable?: undefined;
9914
+ error?: undefined;
9915
+ suggestedNextStep?: undefined;
9916
+ processes?: undefined;
9917
+ }> | undefined;
9918
+ execute: import("ai").ToolExecuteFunction<{
9919
+ action: "output" | "kill" | "list";
9920
+ offset: number;
9921
+ limit: number;
9922
+ backgroundId?: string | undefined;
9923
+ }, {
9924
+ ok: boolean;
9925
+ reasonCode: string;
9926
+ recoverable: boolean;
9927
+ error: string;
9928
+ suggestedNextStep: string;
9929
+ processes?: undefined;
9930
+ action?: undefined;
9931
+ process?: undefined;
9932
+ } | {
9933
+ ok: boolean;
9934
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
9935
+ reasonCode?: undefined;
9936
+ recoverable?: undefined;
9937
+ error?: undefined;
9938
+ suggestedNextStep?: undefined;
9939
+ action?: undefined;
9940
+ process?: undefined;
9941
+ } | {
9942
+ handle: string;
9943
+ offset: number;
9944
+ nextOffset?: number;
9945
+ totalChars: number;
9946
+ totalBytes: number;
9947
+ retainedBytes: number;
9948
+ omittedBytes: number;
9949
+ content: string;
9950
+ truncated: boolean;
9951
+ query?: string;
9952
+ matches?: number;
9953
+ ok: boolean;
9954
+ backgroundId: string;
9955
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
9956
+ outputHandle: string;
9957
+ reasonCode?: undefined;
9958
+ recoverable?: undefined;
9959
+ error?: undefined;
9960
+ suggestedNextStep?: undefined;
9961
+ processes?: undefined;
9962
+ action?: undefined;
9963
+ process?: undefined;
9964
+ } | {
9965
+ ok: boolean;
9966
+ action: string;
9967
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
9968
+ reasonCode?: undefined;
9969
+ recoverable?: undefined;
9970
+ error?: undefined;
9971
+ suggestedNextStep?: undefined;
9972
+ processes?: undefined;
9973
+ }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
9974
+ } & {
9975
+ type: "provider";
9976
+ id: `${string}.${string}`;
9977
+ args: Record<string, unknown>;
9978
+ description?: never;
9979
+ strict?: never;
9980
+ inputExamples?: never;
9981
+ } & {
9982
+ isProviderExecuted: true;
9983
+ supportsDeferredResults?: boolean;
9984
+ } & {
9985
+ execute: import("ai").ToolExecuteFunction<{
9986
+ action: "output" | "kill" | "list";
9987
+ offset: number;
9988
+ limit: number;
9989
+ backgroundId?: string | undefined;
9990
+ }, {
9991
+ ok: boolean;
9992
+ reasonCode: string;
9993
+ recoverable: boolean;
9994
+ error: string;
9995
+ suggestedNextStep: string;
9996
+ processes?: undefined;
9997
+ action?: undefined;
9998
+ process?: undefined;
9999
+ } | {
10000
+ ok: boolean;
10001
+ processes: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary[];
10002
+ reasonCode?: undefined;
10003
+ recoverable?: undefined;
10004
+ error?: undefined;
10005
+ suggestedNextStep?: undefined;
10006
+ action?: undefined;
10007
+ process?: undefined;
10008
+ } | {
10009
+ handle: string;
10010
+ offset: number;
10011
+ nextOffset?: number;
10012
+ totalChars: number;
10013
+ totalBytes: number;
10014
+ retainedBytes: number;
10015
+ omittedBytes: number;
10016
+ content: string;
10017
+ truncated: boolean;
10018
+ query?: string;
10019
+ matches?: number;
10020
+ ok: boolean;
10021
+ backgroundId: string;
10022
+ status: import("../core/process/backgroundRegistry.js").BackgroundProcessStatus;
10023
+ outputHandle: string;
10024
+ reasonCode?: undefined;
10025
+ recoverable?: undefined;
10026
+ error?: undefined;
10027
+ suggestedNextStep?: undefined;
10028
+ processes?: undefined;
10029
+ action?: undefined;
10030
+ process?: undefined;
10031
+ } | {
10032
+ ok: boolean;
10033
+ action: string;
10034
+ process: import("../core/process/backgroundRegistry.js").BackgroundProcessSummary;
10035
+ reasonCode?: undefined;
10036
+ recoverable?: undefined;
10037
+ error?: undefined;
10038
+ suggestedNextStep?: undefined;
10039
+ processes?: undefined;
8105
10040
  }, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
8106
10041
  });
8107
10042
  };