@denizokcu/haze 0.8.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.
- package/CHANGELOG.md +67 -17
- package/README.md +121 -64
- package/dist/cli/chat/chatMetrics.d.ts +17 -1
- package/dist/cli/chat/chatMetrics.js +22 -5
- package/dist/cli/chat/contextReport.d.ts +11 -0
- package/dist/cli/chat/contextReport.js +44 -0
- package/dist/cli/chat/fileMentionSuggestions.d.ts +29 -0
- package/dist/cli/chat/fileMentionSuggestions.js +91 -0
- package/dist/cli/chat/inputSuggestions.d.ts +5 -0
- package/dist/cli/chat/inputSuggestions.js +17 -3
- package/dist/cli/chat/sessionLifecycle.d.ts +58 -0
- package/dist/cli/chat/sessionLifecycle.js +155 -0
- package/dist/cli/chat/sessionRecorder.d.ts +3 -0
- package/dist/cli/chat/sessionRecorder.js +21 -8
- package/dist/cli/chat/startupInfo.d.ts +1 -0
- package/dist/cli/chat/startupInfo.js +11 -0
- package/dist/cli/chat/tips.d.ts +21 -0
- package/dist/cli/chat/tips.js +43 -0
- package/dist/cli/chat/wizardDispatch.d.ts +64 -0
- package/dist/cli/chat/wizardDispatch.js +645 -0
- package/dist/cli/commands/chat.d.ts +1 -0
- package/dist/cli/commands/chat.js +246 -779
- package/dist/cli/commands/chatModes.d.ts +1 -1
- package/dist/cli/commands/chatModes.js +7 -2
- package/dist/cli/commands/commandHelp.js +5 -3
- package/dist/cli/commands/commands.d.ts +4 -3
- package/dist/cli/commands/commands.js +12 -13
- package/dist/cli/commands/fleetCommand.d.ts +14 -0
- package/dist/cli/commands/fleetCommand.js +46 -0
- package/dist/cli/commands/formatters.d.ts +5 -0
- package/dist/cli/commands/formatters.js +36 -9
- package/dist/cli/commands/logsCommand.js +8 -28
- package/dist/cli/commands/mcpWizard.js +24 -2
- package/dist/cli/commands/modelCommand.js +1 -1
- package/dist/cli/commands/providerWizard.d.ts +1 -0
- package/dist/cli/commands/providerWizard.js +31 -5
- package/dist/cli/commands/runCommand.d.ts +1 -0
- package/dist/cli/commands/runCommand.js +32 -20
- package/dist/cli/commands/sessionPicker.d.ts +9 -0
- package/dist/cli/commands/sessionPicker.js +29 -0
- package/dist/cli/commands/settingsSummary.js +8 -4
- package/dist/cli/commands/skillConfirmRemove.js +4 -3
- package/dist/cli/commands/skillWizard.d.ts +2 -0
- package/dist/cli/commands/skillWizard.js +16 -6
- package/dist/cli/commands/streaming/idleTimer.d.ts +26 -0
- package/dist/cli/commands/streaming/idleTimer.js +24 -0
- package/dist/cli/commands/streaming/toolGroupRenderer.d.ts +2 -0
- package/dist/cli/commands/streaming/toolGroupRenderer.js +4 -2
- package/dist/cli/commands/streaming/turnOutcome.d.ts +10 -0
- package/dist/cli/commands/streaming/turnOutcome.js +13 -0
- package/dist/cli/commands/streaming/turnRuntime.js +6 -4
- package/dist/cli/commands/streaming.d.ts +13 -1
- package/dist/cli/commands/streaming.js +104 -44
- package/dist/cli/commands/wizardActions.d.ts +6 -0
- package/dist/cli/commands/wizardActions.js +6 -0
- package/dist/cli/commands/wizardPrompts.js +1 -1
- package/dist/cli/commands/wizardSuggestions.d.ts +8 -0
- package/dist/cli/commands/wizardSuggestions.js +62 -13
- package/dist/cli/commands/wizardTransition.d.ts +37 -0
- package/dist/cli/commands/wizardTransition.js +43 -0
- package/dist/cli/index.js +17 -3
- package/dist/cli/terminalTitle.d.ts +6 -0
- package/dist/cli/terminalTitle.js +36 -0
- package/dist/config/contextFiles.js +6 -3
- package/dist/config/endpointSecurity.d.ts +2 -0
- package/dist/config/endpointSecurity.js +28 -0
- package/dist/config/inputHistory.d.ts +3 -3
- package/dist/config/inputHistory.js +13 -17
- package/dist/config/modelDiscovery.d.ts +20 -0
- package/dist/config/modelDiscovery.js +51 -0
- package/dist/config/privateStorage.d.ts +6 -0
- package/dist/config/privateStorage.js +61 -0
- package/dist/config/providerPresets.d.ts +16 -4
- package/dist/config/providerPresets.js +263 -34
- package/dist/config/providers.d.ts +2 -0
- package/dist/config/providers.js +7 -0
- package/dist/config/settings.d.ts +22 -0
- package/dist/config/settings.js +33 -5
- package/dist/config/skillSettings.d.ts +6 -13
- package/dist/config/skillSettings.js +20 -19
- package/dist/config/updateCheck.js +4 -2
- package/dist/core/agent/budgets.d.ts +26 -0
- package/dist/core/agent/budgets.js +34 -0
- package/dist/core/agent/compaction.js +17 -3
- package/dist/core/agent/contextBudget.d.ts +8 -0
- package/dist/core/agent/contextBudget.js +29 -0
- package/dist/core/agent/errors.js +6 -2
- package/dist/core/agent/events.d.ts +12 -0
- package/dist/core/agent/toolOutputStore.d.ts +8 -0
- package/dist/core/agent/toolOutputStore.js +49 -11
- package/dist/core/agent/workState.d.ts +1 -1
- package/dist/core/agent/workState.js +0 -4
- package/dist/core/attachments/imageAttachments.d.ts +90 -0
- package/dist/core/attachments/imageAttachments.js +245 -0
- package/dist/core/attachments/readBlessings.d.ts +37 -0
- package/dist/core/attachments/readBlessings.js +79 -0
- package/dist/core/goal/completionPolicy.d.ts +0 -28
- package/dist/core/goal/completionPolicy.js +0 -88
- package/dist/core/goal/requestClassifier.d.ts +0 -3
- package/dist/core/goal/requestClassifier.js +0 -13
- package/dist/core/io/boundedRead.d.ts +15 -0
- package/dist/core/io/boundedRead.js +144 -0
- package/dist/core/limits/byteBudgets.d.ts +18 -0
- package/dist/core/limits/byteBudgets.js +18 -0
- package/dist/core/limits/textBudgets.d.ts +23 -0
- package/dist/core/limits/textBudgets.js +23 -0
- package/dist/core/log/llmLog.d.ts +10 -0
- package/dist/core/log/llmLog.js +59 -13
- package/dist/core/persistence/orderedFileWriter.d.ts +11 -0
- package/dist/core/persistence/orderedFileWriter.js +29 -0
- package/dist/core/process/backgroundRegistry.d.ts +35 -0
- package/dist/core/process/backgroundRegistry.js +194 -0
- package/dist/core/process/runBoundedProcess.d.ts +30 -0
- package/dist/core/process/runBoundedProcess.js +116 -0
- package/dist/core/safety/urlGuard.d.ts +2 -1
- package/dist/core/safety/urlGuard.js +3 -2
- package/dist/core/session/sessionSlimming.js +47 -4
- package/dist/core/session/sessionStore.d.ts +37 -0
- package/dist/core/session/sessionStore.js +136 -27
- package/dist/core/subagent/contracts.d.ts +116 -0
- package/dist/core/subagent/contracts.js +54 -0
- package/dist/core/subagent/executionProfiles.d.ts +28 -0
- package/dist/core/subagent/executionProfiles.js +45 -0
- package/dist/core/subagent/subagentCoordinator.d.ts +74 -0
- package/dist/core/subagent/subagentCoordinator.js +134 -0
- package/dist/core/subagent/subagentRunner.d.ts +211 -145
- package/dist/core/subagent/subagentRunner.js +228 -98
- package/dist/core/subagent/workspaceMutationPolicy.d.ts +11 -0
- package/dist/core/subagent/workspaceMutationPolicy.js +52 -0
- package/dist/core/tasks/taskStorage.js +12 -1
- package/dist/llm/client.d.ts +20 -29
- package/dist/llm/client.js +33 -29
- package/dist/llm/hazeTools.d.ts +2396 -67
- package/dist/llm/hazeTools.js +50 -37
- package/dist/llm/lsp.d.ts +23 -3
- package/dist/llm/lsp.js +73 -16
- package/dist/llm/lspTools.d.ts +96 -48
- package/dist/llm/mcp.d.ts +1 -1
- package/dist/llm/mcp.js +65 -16
- package/dist/llm/requestContext.d.ts +23 -1
- package/dist/llm/requestContext.js +50 -7
- package/dist/llm/systemPrompt.d.ts +4 -1
- package/dist/llm/systemPrompt.js +14 -4
- package/dist/llm/toolResultTypes.d.ts +1 -1
- package/dist/llm/tools/bashTool.d.ts +1210 -16
- package/dist/llm/tools/bashTool.js +43 -60
- package/dist/llm/tools/fetchTool.d.ts +26 -26
- package/dist/llm/tools/fetchTool.js +1 -1
- package/dist/llm/tools/fileToolShared.d.ts +2 -1
- package/dist/llm/tools/fileToolShared.js +5 -5
- package/dist/llm/tools/grepRunner.d.ts +20 -0
- package/dist/llm/tools/grepRunner.js +66 -0
- package/dist/llm/tools/outputCap.d.ts +2 -6
- package/dist/llm/tools/outputCap.js +2 -6
- package/dist/llm/tools/processTool.d.ts +1077 -0
- package/dist/llm/tools/processTool.js +41 -0
- package/dist/llm/tools/toolContext.d.ts +8 -0
- package/dist/llm/tools/toolContext.js +22 -11
- package/dist/llm/tools/workspaceFile.d.ts +9 -1
- package/dist/llm/tools/workspaceFile.js +33 -4
- package/dist/llm/webFetch.js +24 -11
- package/dist/llm/workerContext.d.ts +18 -0
- package/dist/llm/workerContext.js +55 -0
- package/dist/skills/SkillLoader.d.ts +2 -2
- package/dist/skills/SkillLoader.js +17 -5
- package/dist/skills/SkillRegistry.d.ts +3 -2
- package/dist/skills/SkillRegistry.js +53 -10
- package/dist/skills/builder/SkillBuilder.d.ts +3 -0
- package/dist/skills/builder/SkillBuilder.js +23 -5
- package/dist/skills/skillTools.js +11 -4
- package/dist/skills/types.d.ts +11 -1
- package/dist/ui/components/TextInput.d.ts +5 -2
- package/dist/ui/components/TextInput.js +76 -8
- package/dist/utils/format.d.ts +2 -0
- package/dist/utils/format.js +8 -0
- package/dist/utils/fs.d.ts +0 -1
- package/dist/utils/fs.js +0 -4
- package/dist/utils/openPath.d.ts +2 -0
- package/dist/utils/openPath.js +9 -0
- package/dist/utils/path.d.ts +2 -0
- package/dist/utils/path.js +9 -4
- package/package.json +1 -1
package/dist/llm/hazeTools.d.ts
CHANGED
|
@@ -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;
|
|
@@ -1570,6 +1586,7 @@ export declare const hazeTools: {
|
|
|
1570
1586
|
contextLines: number;
|
|
1571
1587
|
maxMatches: number;
|
|
1572
1588
|
caseInsensitive: boolean;
|
|
1589
|
+
includeIgnored: boolean;
|
|
1573
1590
|
glob?: string | undefined;
|
|
1574
1591
|
}>;
|
|
1575
1592
|
contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
|
|
@@ -1579,6 +1596,7 @@ export declare const hazeTools: {
|
|
|
1579
1596
|
contextLines: number;
|
|
1580
1597
|
maxMatches: number;
|
|
1581
1598
|
caseInsensitive: boolean;
|
|
1599
|
+
includeIgnored: boolean;
|
|
1582
1600
|
glob?: string | undefined;
|
|
1583
1601
|
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
|
|
1584
1602
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -1592,6 +1610,7 @@ export declare const hazeTools: {
|
|
|
1592
1610
|
contextLines: number;
|
|
1593
1611
|
maxMatches: number;
|
|
1594
1612
|
caseInsensitive: boolean;
|
|
1613
|
+
includeIgnored: boolean;
|
|
1595
1614
|
glob?: string | undefined;
|
|
1596
1615
|
};
|
|
1597
1616
|
} & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -1603,6 +1622,7 @@ export declare const hazeTools: {
|
|
|
1603
1622
|
contextLines: number;
|
|
1604
1623
|
maxMatches: number;
|
|
1605
1624
|
caseInsensitive: boolean;
|
|
1625
|
+
includeIgnored: boolean;
|
|
1606
1626
|
glob?: string | undefined;
|
|
1607
1627
|
};
|
|
1608
1628
|
output: NoInfer<{
|
|
@@ -1655,6 +1675,7 @@ export declare const hazeTools: {
|
|
|
1655
1675
|
omittedResultLines: number;
|
|
1656
1676
|
lineTruncated: boolean;
|
|
1657
1677
|
truncated: boolean;
|
|
1678
|
+
matchCountIsLowerBound: boolean;
|
|
1658
1679
|
reducerName: string;
|
|
1659
1680
|
contentKind: string;
|
|
1660
1681
|
lossy: boolean;
|
|
@@ -1714,6 +1735,7 @@ export declare const hazeTools: {
|
|
|
1714
1735
|
omittedResultLines: number;
|
|
1715
1736
|
lineTruncated: boolean;
|
|
1716
1737
|
truncated: boolean;
|
|
1738
|
+
matchCountIsLowerBound: boolean;
|
|
1717
1739
|
reducerName: string;
|
|
1718
1740
|
contentKind: string;
|
|
1719
1741
|
lossy: boolean;
|
|
@@ -1727,6 +1749,7 @@ export declare const hazeTools: {
|
|
|
1727
1749
|
contextLines: number;
|
|
1728
1750
|
maxMatches: number;
|
|
1729
1751
|
caseInsensitive: boolean;
|
|
1752
|
+
includeIgnored: boolean;
|
|
1730
1753
|
glob?: string | undefined;
|
|
1731
1754
|
}, {
|
|
1732
1755
|
ok: boolean;
|
|
@@ -1778,6 +1801,7 @@ export declare const hazeTools: {
|
|
|
1778
1801
|
omittedResultLines: number;
|
|
1779
1802
|
lineTruncated: boolean;
|
|
1780
1803
|
truncated: boolean;
|
|
1804
|
+
matchCountIsLowerBound: boolean;
|
|
1781
1805
|
reducerName: string;
|
|
1782
1806
|
contentKind: string;
|
|
1783
1807
|
lossy: boolean;
|
|
@@ -1798,6 +1822,7 @@ export declare const hazeTools: {
|
|
|
1798
1822
|
contextLines: number;
|
|
1799
1823
|
maxMatches: number;
|
|
1800
1824
|
caseInsensitive: boolean;
|
|
1825
|
+
includeIgnored: boolean;
|
|
1801
1826
|
glob?: string | undefined;
|
|
1802
1827
|
}>;
|
|
1803
1828
|
}[] | undefined;
|
|
@@ -1814,6 +1839,7 @@ export declare const hazeTools: {
|
|
|
1814
1839
|
contextLines: number;
|
|
1815
1840
|
maxMatches: number;
|
|
1816
1841
|
caseInsensitive: boolean;
|
|
1842
|
+
includeIgnored: boolean;
|
|
1817
1843
|
glob?: string | undefined;
|
|
1818
1844
|
}, {
|
|
1819
1845
|
ok: boolean;
|
|
@@ -1865,6 +1891,7 @@ export declare const hazeTools: {
|
|
|
1865
1891
|
omittedResultLines: number;
|
|
1866
1892
|
lineTruncated: boolean;
|
|
1867
1893
|
truncated: boolean;
|
|
1894
|
+
matchCountIsLowerBound: boolean;
|
|
1868
1895
|
reducerName: string;
|
|
1869
1896
|
contentKind: string;
|
|
1870
1897
|
lossy: boolean;
|
|
@@ -1882,6 +1909,7 @@ export declare const hazeTools: {
|
|
|
1882
1909
|
contextLines: number;
|
|
1883
1910
|
maxMatches: number;
|
|
1884
1911
|
caseInsensitive: boolean;
|
|
1912
|
+
includeIgnored: boolean;
|
|
1885
1913
|
glob?: string | undefined;
|
|
1886
1914
|
}>;
|
|
1887
1915
|
contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
|
|
@@ -1891,6 +1919,7 @@ export declare const hazeTools: {
|
|
|
1891
1919
|
contextLines: number;
|
|
1892
1920
|
maxMatches: number;
|
|
1893
1921
|
caseInsensitive: boolean;
|
|
1922
|
+
includeIgnored: boolean;
|
|
1894
1923
|
glob?: string | undefined;
|
|
1895
1924
|
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
|
|
1896
1925
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -1904,6 +1933,7 @@ export declare const hazeTools: {
|
|
|
1904
1933
|
contextLines: number;
|
|
1905
1934
|
maxMatches: number;
|
|
1906
1935
|
caseInsensitive: boolean;
|
|
1936
|
+
includeIgnored: boolean;
|
|
1907
1937
|
glob?: string | undefined;
|
|
1908
1938
|
};
|
|
1909
1939
|
} & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -1915,6 +1945,7 @@ export declare const hazeTools: {
|
|
|
1915
1945
|
contextLines: number;
|
|
1916
1946
|
maxMatches: number;
|
|
1917
1947
|
caseInsensitive: boolean;
|
|
1948
|
+
includeIgnored: boolean;
|
|
1918
1949
|
glob?: string | undefined;
|
|
1919
1950
|
};
|
|
1920
1951
|
output: NoInfer<{
|
|
@@ -1967,6 +1998,7 @@ export declare const hazeTools: {
|
|
|
1967
1998
|
omittedResultLines: number;
|
|
1968
1999
|
lineTruncated: boolean;
|
|
1969
2000
|
truncated: boolean;
|
|
2001
|
+
matchCountIsLowerBound: boolean;
|
|
1970
2002
|
reducerName: string;
|
|
1971
2003
|
contentKind: string;
|
|
1972
2004
|
lossy: boolean;
|
|
@@ -2026,6 +2058,7 @@ export declare const hazeTools: {
|
|
|
2026
2058
|
omittedResultLines: number;
|
|
2027
2059
|
lineTruncated: boolean;
|
|
2028
2060
|
truncated: boolean;
|
|
2061
|
+
matchCountIsLowerBound: boolean;
|
|
2029
2062
|
reducerName: string;
|
|
2030
2063
|
contentKind: string;
|
|
2031
2064
|
lossy: boolean;
|
|
@@ -2039,6 +2072,7 @@ export declare const hazeTools: {
|
|
|
2039
2072
|
contextLines: number;
|
|
2040
2073
|
maxMatches: number;
|
|
2041
2074
|
caseInsensitive: boolean;
|
|
2075
|
+
includeIgnored: boolean;
|
|
2042
2076
|
glob?: string | undefined;
|
|
2043
2077
|
}, {
|
|
2044
2078
|
ok: boolean;
|
|
@@ -2090,6 +2124,7 @@ export declare const hazeTools: {
|
|
|
2090
2124
|
omittedResultLines: number;
|
|
2091
2125
|
lineTruncated: boolean;
|
|
2092
2126
|
truncated: boolean;
|
|
2127
|
+
matchCountIsLowerBound: boolean;
|
|
2093
2128
|
reducerName: string;
|
|
2094
2129
|
contentKind: string;
|
|
2095
2130
|
lossy: boolean;
|
|
@@ -2110,6 +2145,7 @@ export declare const hazeTools: {
|
|
|
2110
2145
|
contextLines: number;
|
|
2111
2146
|
maxMatches: number;
|
|
2112
2147
|
caseInsensitive: boolean;
|
|
2148
|
+
includeIgnored: boolean;
|
|
2113
2149
|
glob?: string | undefined;
|
|
2114
2150
|
}>;
|
|
2115
2151
|
}[] | undefined;
|
|
@@ -2126,6 +2162,7 @@ export declare const hazeTools: {
|
|
|
2126
2162
|
contextLines: number;
|
|
2127
2163
|
maxMatches: number;
|
|
2128
2164
|
caseInsensitive: boolean;
|
|
2165
|
+
includeIgnored: boolean;
|
|
2129
2166
|
glob?: string | undefined;
|
|
2130
2167
|
}, {
|
|
2131
2168
|
ok: boolean;
|
|
@@ -2177,6 +2214,7 @@ export declare const hazeTools: {
|
|
|
2177
2214
|
omittedResultLines: number;
|
|
2178
2215
|
lineTruncated: boolean;
|
|
2179
2216
|
truncated: boolean;
|
|
2217
|
+
matchCountIsLowerBound: boolean;
|
|
2180
2218
|
reducerName: string;
|
|
2181
2219
|
contentKind: string;
|
|
2182
2220
|
lossy: boolean;
|
|
@@ -2194,6 +2232,7 @@ export declare const hazeTools: {
|
|
|
2194
2232
|
contextLines: number;
|
|
2195
2233
|
maxMatches: number;
|
|
2196
2234
|
caseInsensitive: boolean;
|
|
2235
|
+
includeIgnored: boolean;
|
|
2197
2236
|
glob?: string | undefined;
|
|
2198
2237
|
}>;
|
|
2199
2238
|
contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
|
|
@@ -2203,6 +2242,7 @@ export declare const hazeTools: {
|
|
|
2203
2242
|
contextLines: number;
|
|
2204
2243
|
maxMatches: number;
|
|
2205
2244
|
caseInsensitive: boolean;
|
|
2245
|
+
includeIgnored: boolean;
|
|
2206
2246
|
glob?: string | undefined;
|
|
2207
2247
|
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
|
|
2208
2248
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -2216,6 +2256,7 @@ export declare const hazeTools: {
|
|
|
2216
2256
|
contextLines: number;
|
|
2217
2257
|
maxMatches: number;
|
|
2218
2258
|
caseInsensitive: boolean;
|
|
2259
|
+
includeIgnored: boolean;
|
|
2219
2260
|
glob?: string | undefined;
|
|
2220
2261
|
};
|
|
2221
2262
|
} & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -2227,6 +2268,7 @@ export declare const hazeTools: {
|
|
|
2227
2268
|
contextLines: number;
|
|
2228
2269
|
maxMatches: number;
|
|
2229
2270
|
caseInsensitive: boolean;
|
|
2271
|
+
includeIgnored: boolean;
|
|
2230
2272
|
glob?: string | undefined;
|
|
2231
2273
|
};
|
|
2232
2274
|
output: NoInfer<{
|
|
@@ -2279,6 +2321,7 @@ export declare const hazeTools: {
|
|
|
2279
2321
|
omittedResultLines: number;
|
|
2280
2322
|
lineTruncated: boolean;
|
|
2281
2323
|
truncated: boolean;
|
|
2324
|
+
matchCountIsLowerBound: boolean;
|
|
2282
2325
|
reducerName: string;
|
|
2283
2326
|
contentKind: string;
|
|
2284
2327
|
lossy: boolean;
|
|
@@ -2338,6 +2381,7 @@ export declare const hazeTools: {
|
|
|
2338
2381
|
omittedResultLines: number;
|
|
2339
2382
|
lineTruncated: boolean;
|
|
2340
2383
|
truncated: boolean;
|
|
2384
|
+
matchCountIsLowerBound: boolean;
|
|
2341
2385
|
reducerName: string;
|
|
2342
2386
|
contentKind: string;
|
|
2343
2387
|
lossy: boolean;
|
|
@@ -2351,6 +2395,7 @@ export declare const hazeTools: {
|
|
|
2351
2395
|
contextLines: number;
|
|
2352
2396
|
maxMatches: number;
|
|
2353
2397
|
caseInsensitive: boolean;
|
|
2398
|
+
includeIgnored: boolean;
|
|
2354
2399
|
glob?: string | undefined;
|
|
2355
2400
|
}, {
|
|
2356
2401
|
ok: boolean;
|
|
@@ -2402,6 +2447,7 @@ export declare const hazeTools: {
|
|
|
2402
2447
|
omittedResultLines: number;
|
|
2403
2448
|
lineTruncated: boolean;
|
|
2404
2449
|
truncated: boolean;
|
|
2450
|
+
matchCountIsLowerBound: boolean;
|
|
2405
2451
|
reducerName: string;
|
|
2406
2452
|
contentKind: string;
|
|
2407
2453
|
lossy: boolean;
|
|
@@ -2426,6 +2472,7 @@ export declare const hazeTools: {
|
|
|
2426
2472
|
contextLines: number;
|
|
2427
2473
|
maxMatches: number;
|
|
2428
2474
|
caseInsensitive: boolean;
|
|
2475
|
+
includeIgnored: boolean;
|
|
2429
2476
|
glob?: string | undefined;
|
|
2430
2477
|
}, {
|
|
2431
2478
|
ok: boolean;
|
|
@@ -2477,6 +2524,7 @@ export declare const hazeTools: {
|
|
|
2477
2524
|
omittedResultLines: number;
|
|
2478
2525
|
lineTruncated: boolean;
|
|
2479
2526
|
truncated: boolean;
|
|
2527
|
+
matchCountIsLowerBound: boolean;
|
|
2480
2528
|
reducerName: string;
|
|
2481
2529
|
contentKind: string;
|
|
2482
2530
|
lossy: boolean;
|
|
@@ -2494,6 +2542,7 @@ export declare const hazeTools: {
|
|
|
2494
2542
|
contextLines: number;
|
|
2495
2543
|
maxMatches: number;
|
|
2496
2544
|
caseInsensitive: boolean;
|
|
2545
|
+
includeIgnored: boolean;
|
|
2497
2546
|
glob?: string | undefined;
|
|
2498
2547
|
}>;
|
|
2499
2548
|
contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
|
|
@@ -2503,6 +2552,7 @@ export declare const hazeTools: {
|
|
|
2503
2552
|
contextLines: number;
|
|
2504
2553
|
maxMatches: number;
|
|
2505
2554
|
caseInsensitive: boolean;
|
|
2555
|
+
includeIgnored: boolean;
|
|
2506
2556
|
glob?: string | undefined;
|
|
2507
2557
|
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
|
|
2508
2558
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -2516,6 +2566,7 @@ export declare const hazeTools: {
|
|
|
2516
2566
|
contextLines: number;
|
|
2517
2567
|
maxMatches: number;
|
|
2518
2568
|
caseInsensitive: boolean;
|
|
2569
|
+
includeIgnored: boolean;
|
|
2519
2570
|
glob?: string | undefined;
|
|
2520
2571
|
};
|
|
2521
2572
|
} & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -2527,6 +2578,7 @@ export declare const hazeTools: {
|
|
|
2527
2578
|
contextLines: number;
|
|
2528
2579
|
maxMatches: number;
|
|
2529
2580
|
caseInsensitive: boolean;
|
|
2581
|
+
includeIgnored: boolean;
|
|
2530
2582
|
glob?: string | undefined;
|
|
2531
2583
|
};
|
|
2532
2584
|
output: NoInfer<{
|
|
@@ -2579,6 +2631,7 @@ export declare const hazeTools: {
|
|
|
2579
2631
|
omittedResultLines: number;
|
|
2580
2632
|
lineTruncated: boolean;
|
|
2581
2633
|
truncated: boolean;
|
|
2634
|
+
matchCountIsLowerBound: boolean;
|
|
2582
2635
|
reducerName: string;
|
|
2583
2636
|
contentKind: string;
|
|
2584
2637
|
lossy: boolean;
|
|
@@ -2638,6 +2691,7 @@ export declare const hazeTools: {
|
|
|
2638
2691
|
omittedResultLines: number;
|
|
2639
2692
|
lineTruncated: boolean;
|
|
2640
2693
|
truncated: boolean;
|
|
2694
|
+
matchCountIsLowerBound: boolean;
|
|
2641
2695
|
reducerName: string;
|
|
2642
2696
|
contentKind: string;
|
|
2643
2697
|
lossy: boolean;
|
|
@@ -2651,6 +2705,7 @@ export declare const hazeTools: {
|
|
|
2651
2705
|
contextLines: number;
|
|
2652
2706
|
maxMatches: number;
|
|
2653
2707
|
caseInsensitive: boolean;
|
|
2708
|
+
includeIgnored: boolean;
|
|
2654
2709
|
glob?: string | undefined;
|
|
2655
2710
|
}, {
|
|
2656
2711
|
ok: boolean;
|
|
@@ -2702,6 +2757,7 @@ export declare const hazeTools: {
|
|
|
2702
2757
|
omittedResultLines: number;
|
|
2703
2758
|
lineTruncated: boolean;
|
|
2704
2759
|
truncated: boolean;
|
|
2760
|
+
matchCountIsLowerBound: boolean;
|
|
2705
2761
|
reducerName: string;
|
|
2706
2762
|
contentKind: string;
|
|
2707
2763
|
lossy: boolean;
|
|
@@ -2726,6 +2782,7 @@ export declare const hazeTools: {
|
|
|
2726
2782
|
contextLines: number;
|
|
2727
2783
|
maxMatches: number;
|
|
2728
2784
|
caseInsensitive: boolean;
|
|
2785
|
+
includeIgnored: boolean;
|
|
2729
2786
|
glob?: string | undefined;
|
|
2730
2787
|
}, {
|
|
2731
2788
|
ok: boolean;
|
|
@@ -2777,6 +2834,7 @@ export declare const hazeTools: {
|
|
|
2777
2834
|
omittedResultLines: number;
|
|
2778
2835
|
lineTruncated: boolean;
|
|
2779
2836
|
truncated: boolean;
|
|
2837
|
+
matchCountIsLowerBound: boolean;
|
|
2780
2838
|
reducerName: string;
|
|
2781
2839
|
contentKind: string;
|
|
2782
2840
|
lossy: boolean;
|
|
@@ -6264,12 +6322,12 @@ export declare const hazeTools: {
|
|
|
6264
6322
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
6265
6323
|
inputSchema: import("ai").FlexibleSchema<{
|
|
6266
6324
|
url: string;
|
|
6267
|
-
format: "
|
|
6325
|
+
format: "text" | "auto";
|
|
6268
6326
|
}>;
|
|
6269
6327
|
contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
|
|
6270
6328
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
6271
6329
|
url: string;
|
|
6272
|
-
format: "
|
|
6330
|
+
format: "text" | "auto";
|
|
6273
6331
|
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
|
|
6274
6332
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
6275
6333
|
onInputDelta?: ((options: {
|
|
@@ -6278,14 +6336,14 @@ export declare const hazeTools: {
|
|
|
6278
6336
|
onInputAvailable?: ((options: {
|
|
6279
6337
|
input: {
|
|
6280
6338
|
url: string;
|
|
6281
|
-
format: "
|
|
6339
|
+
format: "text" | "auto";
|
|
6282
6340
|
};
|
|
6283
6341
|
} & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
6284
6342
|
toModelOutput?: ((options: {
|
|
6285
6343
|
toolCallId: string;
|
|
6286
6344
|
input: {
|
|
6287
6345
|
url: string;
|
|
6288
|
-
format: "
|
|
6346
|
+
format: "text" | "auto";
|
|
6289
6347
|
};
|
|
6290
6348
|
output: NoInfer<{
|
|
6291
6349
|
ok: boolean;
|
|
@@ -6415,7 +6473,7 @@ export declare const hazeTools: {
|
|
|
6415
6473
|
}> | undefined;
|
|
6416
6474
|
execute: import("ai").ToolExecuteFunction<{
|
|
6417
6475
|
url: string;
|
|
6418
|
-
format: "
|
|
6476
|
+
format: "text" | "auto";
|
|
6419
6477
|
}, {
|
|
6420
6478
|
ok: boolean;
|
|
6421
6479
|
toolName: string;
|
|
@@ -6487,7 +6545,7 @@ export declare const hazeTools: {
|
|
|
6487
6545
|
inputExamples?: {
|
|
6488
6546
|
input: NoInfer<{
|
|
6489
6547
|
url: string;
|
|
6490
|
-
format: "
|
|
6548
|
+
format: "text" | "auto";
|
|
6491
6549
|
}>;
|
|
6492
6550
|
}[] | undefined;
|
|
6493
6551
|
id?: never;
|
|
@@ -6499,7 +6557,7 @@ export declare const hazeTools: {
|
|
|
6499
6557
|
} & {
|
|
6500
6558
|
execute: import("ai").ToolExecuteFunction<{
|
|
6501
6559
|
url: string;
|
|
6502
|
-
format: "
|
|
6560
|
+
format: "text" | "auto";
|
|
6503
6561
|
}, {
|
|
6504
6562
|
ok: boolean;
|
|
6505
6563
|
toolName: string;
|
|
@@ -6568,12 +6626,12 @@ export declare const hazeTools: {
|
|
|
6568
6626
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
6569
6627
|
inputSchema: import("ai").FlexibleSchema<{
|
|
6570
6628
|
url: string;
|
|
6571
|
-
format: "
|
|
6629
|
+
format: "text" | "auto";
|
|
6572
6630
|
}>;
|
|
6573
6631
|
contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
|
|
6574
6632
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
6575
6633
|
url: string;
|
|
6576
|
-
format: "
|
|
6634
|
+
format: "text" | "auto";
|
|
6577
6635
|
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
|
|
6578
6636
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
6579
6637
|
onInputDelta?: ((options: {
|
|
@@ -6582,14 +6640,14 @@ export declare const hazeTools: {
|
|
|
6582
6640
|
onInputAvailable?: ((options: {
|
|
6583
6641
|
input: {
|
|
6584
6642
|
url: string;
|
|
6585
|
-
format: "
|
|
6643
|
+
format: "text" | "auto";
|
|
6586
6644
|
};
|
|
6587
6645
|
} & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
6588
6646
|
toModelOutput?: ((options: {
|
|
6589
6647
|
toolCallId: string;
|
|
6590
6648
|
input: {
|
|
6591
6649
|
url: string;
|
|
6592
|
-
format: "
|
|
6650
|
+
format: "text" | "auto";
|
|
6593
6651
|
};
|
|
6594
6652
|
output: NoInfer<{
|
|
6595
6653
|
ok: boolean;
|
|
@@ -6719,7 +6777,7 @@ export declare const hazeTools: {
|
|
|
6719
6777
|
}> | undefined;
|
|
6720
6778
|
execute: import("ai").ToolExecuteFunction<{
|
|
6721
6779
|
url: string;
|
|
6722
|
-
format: "
|
|
6780
|
+
format: "text" | "auto";
|
|
6723
6781
|
}, {
|
|
6724
6782
|
ok: boolean;
|
|
6725
6783
|
toolName: string;
|
|
@@ -6791,7 +6849,7 @@ export declare const hazeTools: {
|
|
|
6791
6849
|
inputExamples?: {
|
|
6792
6850
|
input: NoInfer<{
|
|
6793
6851
|
url: string;
|
|
6794
|
-
format: "
|
|
6852
|
+
format: "text" | "auto";
|
|
6795
6853
|
}>;
|
|
6796
6854
|
}[] | undefined;
|
|
6797
6855
|
id?: never;
|
|
@@ -6803,7 +6861,7 @@ export declare const hazeTools: {
|
|
|
6803
6861
|
} & {
|
|
6804
6862
|
execute: import("ai").ToolExecuteFunction<{
|
|
6805
6863
|
url: string;
|
|
6806
|
-
format: "
|
|
6864
|
+
format: "text" | "auto";
|
|
6807
6865
|
}, {
|
|
6808
6866
|
ok: boolean;
|
|
6809
6867
|
toolName: string;
|
|
@@ -6872,12 +6930,12 @@ export declare const hazeTools: {
|
|
|
6872
6930
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
6873
6931
|
inputSchema: import("ai").FlexibleSchema<{
|
|
6874
6932
|
url: string;
|
|
6875
|
-
format: "
|
|
6933
|
+
format: "text" | "auto";
|
|
6876
6934
|
}>;
|
|
6877
6935
|
contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
|
|
6878
6936
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
6879
6937
|
url: string;
|
|
6880
|
-
format: "
|
|
6938
|
+
format: "text" | "auto";
|
|
6881
6939
|
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
|
|
6882
6940
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
6883
6941
|
onInputDelta?: ((options: {
|
|
@@ -6886,14 +6944,14 @@ export declare const hazeTools: {
|
|
|
6886
6944
|
onInputAvailable?: ((options: {
|
|
6887
6945
|
input: {
|
|
6888
6946
|
url: string;
|
|
6889
|
-
format: "
|
|
6947
|
+
format: "text" | "auto";
|
|
6890
6948
|
};
|
|
6891
6949
|
} & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
6892
6950
|
toModelOutput?: ((options: {
|
|
6893
6951
|
toolCallId: string;
|
|
6894
6952
|
input: {
|
|
6895
6953
|
url: string;
|
|
6896
|
-
format: "
|
|
6954
|
+
format: "text" | "auto";
|
|
6897
6955
|
};
|
|
6898
6956
|
output: NoInfer<{
|
|
6899
6957
|
ok: boolean;
|
|
@@ -7023,7 +7081,7 @@ export declare const hazeTools: {
|
|
|
7023
7081
|
}> | undefined;
|
|
7024
7082
|
execute: import("ai").ToolExecuteFunction<{
|
|
7025
7083
|
url: string;
|
|
7026
|
-
format: "
|
|
7084
|
+
format: "text" | "auto";
|
|
7027
7085
|
}, {
|
|
7028
7086
|
ok: boolean;
|
|
7029
7087
|
toolName: string;
|
|
@@ -7099,7 +7157,7 @@ export declare const hazeTools: {
|
|
|
7099
7157
|
} & {
|
|
7100
7158
|
execute: import("ai").ToolExecuteFunction<{
|
|
7101
7159
|
url: string;
|
|
7102
|
-
format: "
|
|
7160
|
+
format: "text" | "auto";
|
|
7103
7161
|
}, {
|
|
7104
7162
|
ok: boolean;
|
|
7105
7163
|
toolName: string;
|
|
@@ -7168,12 +7226,12 @@ export declare const hazeTools: {
|
|
|
7168
7226
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
7169
7227
|
inputSchema: import("ai").FlexibleSchema<{
|
|
7170
7228
|
url: string;
|
|
7171
|
-
format: "
|
|
7229
|
+
format: "text" | "auto";
|
|
7172
7230
|
}>;
|
|
7173
7231
|
contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
|
|
7174
7232
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
7175
7233
|
url: string;
|
|
7176
|
-
format: "
|
|
7234
|
+
format: "text" | "auto";
|
|
7177
7235
|
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
|
|
7178
7236
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
7179
7237
|
onInputDelta?: ((options: {
|
|
@@ -7182,14 +7240,14 @@ export declare const hazeTools: {
|
|
|
7182
7240
|
onInputAvailable?: ((options: {
|
|
7183
7241
|
input: {
|
|
7184
7242
|
url: string;
|
|
7185
|
-
format: "
|
|
7243
|
+
format: "text" | "auto";
|
|
7186
7244
|
};
|
|
7187
7245
|
} & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
7188
7246
|
toModelOutput?: ((options: {
|
|
7189
7247
|
toolCallId: string;
|
|
7190
7248
|
input: {
|
|
7191
7249
|
url: string;
|
|
7192
|
-
format: "
|
|
7250
|
+
format: "text" | "auto";
|
|
7193
7251
|
};
|
|
7194
7252
|
output: NoInfer<{
|
|
7195
7253
|
ok: boolean;
|
|
@@ -7319,7 +7377,7 @@ export declare const hazeTools: {
|
|
|
7319
7377
|
}> | undefined;
|
|
7320
7378
|
execute: import("ai").ToolExecuteFunction<{
|
|
7321
7379
|
url: string;
|
|
7322
|
-
format: "
|
|
7380
|
+
format: "text" | "auto";
|
|
7323
7381
|
}, {
|
|
7324
7382
|
ok: boolean;
|
|
7325
7383
|
toolName: string;
|
|
@@ -7395,7 +7453,7 @@ export declare const hazeTools: {
|
|
|
7395
7453
|
} & {
|
|
7396
7454
|
execute: import("ai").ToolExecuteFunction<{
|
|
7397
7455
|
url: string;
|
|
7398
|
-
format: "
|
|
7456
|
+
format: "text" | "auto";
|
|
7399
7457
|
}, {
|
|
7400
7458
|
ok: boolean;
|
|
7401
7459
|
toolName: string;
|
|
@@ -7466,12 +7524,14 @@ export declare const hazeTools: {
|
|
|
7466
7524
|
inputSchema: import("ai").FlexibleSchema<{
|
|
7467
7525
|
command: string;
|
|
7468
7526
|
allowMutation: boolean;
|
|
7527
|
+
background: boolean;
|
|
7469
7528
|
timeoutSeconds?: number | undefined;
|
|
7470
7529
|
}>;
|
|
7471
7530
|
contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
|
|
7472
7531
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
7473
7532
|
command: string;
|
|
7474
7533
|
allowMutation: boolean;
|
|
7534
|
+
background: boolean;
|
|
7475
7535
|
timeoutSeconds?: number | undefined;
|
|
7476
7536
|
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
|
|
7477
7537
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -7482,6 +7542,7 @@ export declare const hazeTools: {
|
|
|
7482
7542
|
input: {
|
|
7483
7543
|
command: string;
|
|
7484
7544
|
allowMutation: boolean;
|
|
7545
|
+
background: boolean;
|
|
7485
7546
|
timeoutSeconds?: number | undefined;
|
|
7486
7547
|
};
|
|
7487
7548
|
} & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -7490,17 +7551,238 @@ export declare const hazeTools: {
|
|
|
7490
7551
|
input: {
|
|
7491
7552
|
command: string;
|
|
7492
7553
|
allowMutation: boolean;
|
|
7554
|
+
background: boolean;
|
|
7493
7555
|
timeoutSeconds?: number | undefined;
|
|
7494
7556
|
};
|
|
7495
|
-
output:
|
|
7557
|
+
output: NoInfer<{
|
|
7558
|
+
ok: true;
|
|
7559
|
+
duplicateSkipped: true;
|
|
7560
|
+
toolName: string;
|
|
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;
|
|
7601
|
+
} | {
|
|
7602
|
+
error?: string | undefined;
|
|
7603
|
+
ok: boolean;
|
|
7604
|
+
code: number | null;
|
|
7605
|
+
command: string;
|
|
7606
|
+
cwd: string;
|
|
7607
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
7608
|
+
durationMs: number;
|
|
7609
|
+
timedOut: boolean;
|
|
7610
|
+
aborted: boolean;
|
|
7611
|
+
signal: NodeJS.Signals | null;
|
|
7612
|
+
forcedTermination: boolean;
|
|
7613
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
7614
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
7615
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
7630
|
+
}>;
|
|
7496
7631
|
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
7497
7632
|
} & {
|
|
7498
|
-
outputSchema?: import("ai").FlexibleSchema<
|
|
7633
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
7634
|
+
ok: true;
|
|
7635
|
+
duplicateSkipped: true;
|
|
7636
|
+
toolName: string;
|
|
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;
|
|
7677
|
+
} | {
|
|
7678
|
+
error?: string | undefined;
|
|
7679
|
+
ok: boolean;
|
|
7680
|
+
code: number | null;
|
|
7681
|
+
command: string;
|
|
7682
|
+
cwd: string;
|
|
7683
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
7684
|
+
durationMs: number;
|
|
7685
|
+
timedOut: boolean;
|
|
7686
|
+
aborted: boolean;
|
|
7687
|
+
signal: NodeJS.Signals | null;
|
|
7688
|
+
forcedTermination: boolean;
|
|
7689
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
7690
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
7691
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
7706
|
+
}> | undefined;
|
|
7499
7707
|
execute: import("ai").ToolExecuteFunction<{
|
|
7500
7708
|
command: string;
|
|
7501
7709
|
allowMutation: boolean;
|
|
7710
|
+
background: boolean;
|
|
7502
7711
|
timeoutSeconds?: number | undefined;
|
|
7503
|
-
},
|
|
7712
|
+
}, {
|
|
7713
|
+
ok: true;
|
|
7714
|
+
duplicateSkipped: true;
|
|
7715
|
+
toolName: string;
|
|
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;
|
|
7756
|
+
} | {
|
|
7757
|
+
error?: string | undefined;
|
|
7758
|
+
ok: boolean;
|
|
7759
|
+
code: number | null;
|
|
7760
|
+
command: string;
|
|
7761
|
+
cwd: string;
|
|
7762
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
7763
|
+
durationMs: number;
|
|
7764
|
+
timedOut: boolean;
|
|
7765
|
+
aborted: boolean;
|
|
7766
|
+
signal: NodeJS.Signals | null;
|
|
7767
|
+
forcedTermination: boolean;
|
|
7768
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
7769
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
7770
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
7785
|
+
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
|
|
7504
7786
|
} & {
|
|
7505
7787
|
description?: string | ((options: {
|
|
7506
7788
|
context: NoInfer<import("./tools/toolContext.js").HazeToolContext>;
|
|
@@ -7511,6 +7793,7 @@ export declare const hazeTools: {
|
|
|
7511
7793
|
input: NoInfer<{
|
|
7512
7794
|
command: string;
|
|
7513
7795
|
allowMutation: boolean;
|
|
7796
|
+
background: boolean;
|
|
7514
7797
|
timeoutSeconds?: number | undefined;
|
|
7515
7798
|
}>;
|
|
7516
7799
|
}[] | undefined;
|
|
@@ -7524,8 +7807,82 @@ export declare const hazeTools: {
|
|
|
7524
7807
|
execute: import("ai").ToolExecuteFunction<{
|
|
7525
7808
|
command: string;
|
|
7526
7809
|
allowMutation: boolean;
|
|
7810
|
+
background: boolean;
|
|
7527
7811
|
timeoutSeconds?: number | undefined;
|
|
7528
|
-
},
|
|
7812
|
+
}, {
|
|
7813
|
+
ok: true;
|
|
7814
|
+
duplicateSkipped: true;
|
|
7815
|
+
toolName: string;
|
|
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;
|
|
7856
|
+
} | {
|
|
7857
|
+
error?: string | undefined;
|
|
7858
|
+
ok: boolean;
|
|
7859
|
+
code: number | null;
|
|
7860
|
+
command: string;
|
|
7861
|
+
cwd: string;
|
|
7862
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
7863
|
+
durationMs: number;
|
|
7864
|
+
timedOut: boolean;
|
|
7865
|
+
aborted: boolean;
|
|
7866
|
+
signal: NodeJS.Signals | null;
|
|
7867
|
+
forcedTermination: boolean;
|
|
7868
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
7869
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
7870
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
7885
|
+
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
|
|
7529
7886
|
}) | ({
|
|
7530
7887
|
title?: string;
|
|
7531
7888
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
@@ -7533,12 +7890,14 @@ export declare const hazeTools: {
|
|
|
7533
7890
|
inputSchema: import("ai").FlexibleSchema<{
|
|
7534
7891
|
command: string;
|
|
7535
7892
|
allowMutation: boolean;
|
|
7893
|
+
background: boolean;
|
|
7536
7894
|
timeoutSeconds?: number | undefined;
|
|
7537
7895
|
}>;
|
|
7538
7896
|
contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
|
|
7539
7897
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
7540
7898
|
command: string;
|
|
7541
7899
|
allowMutation: boolean;
|
|
7900
|
+
background: boolean;
|
|
7542
7901
|
timeoutSeconds?: number | undefined;
|
|
7543
7902
|
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
|
|
7544
7903
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -7549,6 +7908,7 @@ export declare const hazeTools: {
|
|
|
7549
7908
|
input: {
|
|
7550
7909
|
command: string;
|
|
7551
7910
|
allowMutation: boolean;
|
|
7911
|
+
background: boolean;
|
|
7552
7912
|
timeoutSeconds?: number | undefined;
|
|
7553
7913
|
};
|
|
7554
7914
|
} & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -7557,17 +7917,238 @@ export declare const hazeTools: {
|
|
|
7557
7917
|
input: {
|
|
7558
7918
|
command: string;
|
|
7559
7919
|
allowMutation: boolean;
|
|
7920
|
+
background: boolean;
|
|
7560
7921
|
timeoutSeconds?: number | undefined;
|
|
7561
7922
|
};
|
|
7562
|
-
output:
|
|
7923
|
+
output: NoInfer<{
|
|
7924
|
+
ok: true;
|
|
7925
|
+
duplicateSkipped: true;
|
|
7926
|
+
toolName: string;
|
|
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;
|
|
7967
|
+
} | {
|
|
7968
|
+
error?: string | undefined;
|
|
7969
|
+
ok: boolean;
|
|
7970
|
+
code: number | null;
|
|
7971
|
+
command: string;
|
|
7972
|
+
cwd: string;
|
|
7973
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
7974
|
+
durationMs: number;
|
|
7975
|
+
timedOut: boolean;
|
|
7976
|
+
aborted: boolean;
|
|
7977
|
+
signal: NodeJS.Signals | null;
|
|
7978
|
+
forcedTermination: boolean;
|
|
7979
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
7980
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
7981
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
7996
|
+
}>;
|
|
7563
7997
|
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
7564
7998
|
} & {
|
|
7565
|
-
outputSchema?: import("ai").FlexibleSchema<
|
|
7999
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
8000
|
+
ok: true;
|
|
8001
|
+
duplicateSkipped: true;
|
|
8002
|
+
toolName: string;
|
|
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;
|
|
8043
|
+
} | {
|
|
8044
|
+
error?: string | undefined;
|
|
8045
|
+
ok: boolean;
|
|
8046
|
+
code: number | null;
|
|
8047
|
+
command: string;
|
|
8048
|
+
cwd: string;
|
|
8049
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
8050
|
+
durationMs: number;
|
|
8051
|
+
timedOut: boolean;
|
|
8052
|
+
aborted: boolean;
|
|
8053
|
+
signal: NodeJS.Signals | null;
|
|
8054
|
+
forcedTermination: boolean;
|
|
8055
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
8056
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
8057
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
8072
|
+
}> | undefined;
|
|
7566
8073
|
execute: import("ai").ToolExecuteFunction<{
|
|
7567
8074
|
command: string;
|
|
7568
8075
|
allowMutation: boolean;
|
|
8076
|
+
background: boolean;
|
|
7569
8077
|
timeoutSeconds?: number | undefined;
|
|
7570
|
-
},
|
|
8078
|
+
}, {
|
|
8079
|
+
ok: true;
|
|
8080
|
+
duplicateSkipped: true;
|
|
8081
|
+
toolName: string;
|
|
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;
|
|
8122
|
+
} | {
|
|
8123
|
+
error?: string | undefined;
|
|
8124
|
+
ok: boolean;
|
|
8125
|
+
code: number | null;
|
|
8126
|
+
command: string;
|
|
8127
|
+
cwd: string;
|
|
8128
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
8129
|
+
durationMs: number;
|
|
8130
|
+
timedOut: boolean;
|
|
8131
|
+
aborted: boolean;
|
|
8132
|
+
signal: NodeJS.Signals | null;
|
|
8133
|
+
forcedTermination: boolean;
|
|
8134
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
8135
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
8136
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
8151
|
+
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
|
|
7571
8152
|
} & {
|
|
7572
8153
|
description?: string | ((options: {
|
|
7573
8154
|
context: NoInfer<import("./tools/toolContext.js").HazeToolContext>;
|
|
@@ -7578,6 +8159,7 @@ export declare const hazeTools: {
|
|
|
7578
8159
|
input: NoInfer<{
|
|
7579
8160
|
command: string;
|
|
7580
8161
|
allowMutation: boolean;
|
|
8162
|
+
background: boolean;
|
|
7581
8163
|
timeoutSeconds?: number | undefined;
|
|
7582
8164
|
}>;
|
|
7583
8165
|
}[] | undefined;
|
|
@@ -7591,21 +8173,97 @@ export declare const hazeTools: {
|
|
|
7591
8173
|
execute: import("ai").ToolExecuteFunction<{
|
|
7592
8174
|
command: string;
|
|
7593
8175
|
allowMutation: boolean;
|
|
8176
|
+
background: boolean;
|
|
7594
8177
|
timeoutSeconds?: number | undefined;
|
|
7595
|
-
},
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
8178
|
+
}, {
|
|
8179
|
+
ok: true;
|
|
8180
|
+
duplicateSkipped: true;
|
|
8181
|
+
toolName: string;
|
|
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;
|
|
8222
|
+
} | {
|
|
8223
|
+
error?: string | undefined;
|
|
8224
|
+
ok: boolean;
|
|
8225
|
+
code: number | null;
|
|
8226
|
+
command: string;
|
|
8227
|
+
cwd: string;
|
|
8228
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
8229
|
+
durationMs: number;
|
|
8230
|
+
timedOut: boolean;
|
|
8231
|
+
aborted: boolean;
|
|
8232
|
+
signal: NodeJS.Signals | null;
|
|
8233
|
+
forcedTermination: boolean;
|
|
8234
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
8235
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
8236
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
8251
|
+
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
|
|
8252
|
+
}) | ({
|
|
8253
|
+
title?: string;
|
|
8254
|
+
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
8255
|
+
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
8256
|
+
inputSchema: import("ai").FlexibleSchema<{
|
|
8257
|
+
command: string;
|
|
8258
|
+
allowMutation: boolean;
|
|
8259
|
+
background: boolean;
|
|
8260
|
+
timeoutSeconds?: number | undefined;
|
|
8261
|
+
}>;
|
|
7605
8262
|
contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
|
|
7606
8263
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
7607
8264
|
command: string;
|
|
7608
8265
|
allowMutation: boolean;
|
|
8266
|
+
background: boolean;
|
|
7609
8267
|
timeoutSeconds?: number | undefined;
|
|
7610
8268
|
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
|
|
7611
8269
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -7616,6 +8274,7 @@ export declare const hazeTools: {
|
|
|
7616
8274
|
input: {
|
|
7617
8275
|
command: string;
|
|
7618
8276
|
allowMutation: boolean;
|
|
8277
|
+
background: boolean;
|
|
7619
8278
|
timeoutSeconds?: number | undefined;
|
|
7620
8279
|
};
|
|
7621
8280
|
} & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -7624,17 +8283,238 @@ export declare const hazeTools: {
|
|
|
7624
8283
|
input: {
|
|
7625
8284
|
command: string;
|
|
7626
8285
|
allowMutation: boolean;
|
|
8286
|
+
background: boolean;
|
|
7627
8287
|
timeoutSeconds?: number | undefined;
|
|
7628
8288
|
};
|
|
7629
|
-
output:
|
|
8289
|
+
output: NoInfer<{
|
|
8290
|
+
ok: true;
|
|
8291
|
+
duplicateSkipped: true;
|
|
8292
|
+
toolName: string;
|
|
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;
|
|
8333
|
+
} | {
|
|
8334
|
+
error?: string | undefined;
|
|
8335
|
+
ok: boolean;
|
|
8336
|
+
code: number | null;
|
|
8337
|
+
command: string;
|
|
8338
|
+
cwd: string;
|
|
8339
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
8340
|
+
durationMs: number;
|
|
8341
|
+
timedOut: boolean;
|
|
8342
|
+
aborted: boolean;
|
|
8343
|
+
signal: NodeJS.Signals | null;
|
|
8344
|
+
forcedTermination: boolean;
|
|
8345
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
8346
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
8347
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
8362
|
+
}>;
|
|
7630
8363
|
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
7631
8364
|
} & {
|
|
7632
|
-
outputSchema?: import("ai").FlexibleSchema<
|
|
8365
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
8366
|
+
ok: true;
|
|
8367
|
+
duplicateSkipped: true;
|
|
8368
|
+
toolName: string;
|
|
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;
|
|
8409
|
+
} | {
|
|
8410
|
+
error?: string | undefined;
|
|
8411
|
+
ok: boolean;
|
|
8412
|
+
code: number | null;
|
|
8413
|
+
command: string;
|
|
8414
|
+
cwd: string;
|
|
8415
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
8416
|
+
durationMs: number;
|
|
8417
|
+
timedOut: boolean;
|
|
8418
|
+
aborted: boolean;
|
|
8419
|
+
signal: NodeJS.Signals | null;
|
|
8420
|
+
forcedTermination: boolean;
|
|
8421
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
8422
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
8423
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
8438
|
+
}> | undefined;
|
|
7633
8439
|
execute: import("ai").ToolExecuteFunction<{
|
|
7634
8440
|
command: string;
|
|
7635
8441
|
allowMutation: boolean;
|
|
8442
|
+
background: boolean;
|
|
7636
8443
|
timeoutSeconds?: number | undefined;
|
|
7637
|
-
},
|
|
8444
|
+
}, {
|
|
8445
|
+
ok: true;
|
|
8446
|
+
duplicateSkipped: true;
|
|
8447
|
+
toolName: string;
|
|
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;
|
|
8488
|
+
} | {
|
|
8489
|
+
error?: string | undefined;
|
|
8490
|
+
ok: boolean;
|
|
8491
|
+
code: number | null;
|
|
8492
|
+
command: string;
|
|
8493
|
+
cwd: string;
|
|
8494
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
8495
|
+
durationMs: number;
|
|
8496
|
+
timedOut: boolean;
|
|
8497
|
+
aborted: boolean;
|
|
8498
|
+
signal: NodeJS.Signals | null;
|
|
8499
|
+
forcedTermination: boolean;
|
|
8500
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
8501
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
8502
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
8517
|
+
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
|
|
7638
8518
|
} & {
|
|
7639
8519
|
type: "provider";
|
|
7640
8520
|
id: `${string}.${string}`;
|
|
@@ -7649,8 +8529,82 @@ export declare const hazeTools: {
|
|
|
7649
8529
|
execute: import("ai").ToolExecuteFunction<{
|
|
7650
8530
|
command: string;
|
|
7651
8531
|
allowMutation: boolean;
|
|
8532
|
+
background: boolean;
|
|
7652
8533
|
timeoutSeconds?: number | undefined;
|
|
7653
|
-
},
|
|
8534
|
+
}, {
|
|
8535
|
+
ok: true;
|
|
8536
|
+
duplicateSkipped: true;
|
|
8537
|
+
toolName: string;
|
|
8538
|
+
reason: string;
|
|
8539
|
+
} | {
|
|
8540
|
+
ok: boolean;
|
|
8541
|
+
command: string;
|
|
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;
|
|
8585
|
+
durationMs: number;
|
|
8586
|
+
timedOut: boolean;
|
|
8587
|
+
aborted: boolean;
|
|
8588
|
+
signal: NodeJS.Signals | null;
|
|
8589
|
+
forcedTermination: boolean;
|
|
8590
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
8591
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
8592
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
8607
|
+
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
|
|
7654
8608
|
}) | ({
|
|
7655
8609
|
title?: string;
|
|
7656
8610
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
@@ -7658,12 +8612,14 @@ export declare const hazeTools: {
|
|
|
7658
8612
|
inputSchema: import("ai").FlexibleSchema<{
|
|
7659
8613
|
command: string;
|
|
7660
8614
|
allowMutation: boolean;
|
|
8615
|
+
background: boolean;
|
|
7661
8616
|
timeoutSeconds?: number | undefined;
|
|
7662
8617
|
}>;
|
|
7663
8618
|
contextSchema?: import("ai").FlexibleSchema<import("./tools/toolContext.js").HazeToolContext> | undefined;
|
|
7664
8619
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
7665
8620
|
command: string;
|
|
7666
8621
|
allowMutation: boolean;
|
|
8622
|
+
background: boolean;
|
|
7667
8623
|
timeoutSeconds?: number | undefined;
|
|
7668
8624
|
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>> | undefined;
|
|
7669
8625
|
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -7674,6 +8630,7 @@ export declare const hazeTools: {
|
|
|
7674
8630
|
input: {
|
|
7675
8631
|
command: string;
|
|
7676
8632
|
allowMutation: boolean;
|
|
8633
|
+
background: boolean;
|
|
7677
8634
|
timeoutSeconds?: number | undefined;
|
|
7678
8635
|
};
|
|
7679
8636
|
} & import("ai").ToolExecutionOptions<NoInfer<import("./tools/toolContext.js").HazeToolContext>>) => void | PromiseLike<void>) | undefined;
|
|
@@ -7682,17 +8639,238 @@ export declare const hazeTools: {
|
|
|
7682
8639
|
input: {
|
|
7683
8640
|
command: string;
|
|
7684
8641
|
allowMutation: boolean;
|
|
8642
|
+
background: boolean;
|
|
7685
8643
|
timeoutSeconds?: number | undefined;
|
|
7686
8644
|
};
|
|
7687
|
-
output:
|
|
8645
|
+
output: NoInfer<{
|
|
8646
|
+
ok: true;
|
|
8647
|
+
duplicateSkipped: true;
|
|
8648
|
+
toolName: string;
|
|
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;
|
|
8689
|
+
} | {
|
|
8690
|
+
error?: string | undefined;
|
|
8691
|
+
ok: boolean;
|
|
8692
|
+
code: number | null;
|
|
8693
|
+
command: string;
|
|
8694
|
+
cwd: string;
|
|
8695
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
8696
|
+
durationMs: number;
|
|
8697
|
+
timedOut: boolean;
|
|
8698
|
+
aborted: boolean;
|
|
8699
|
+
signal: NodeJS.Signals | null;
|
|
8700
|
+
forcedTermination: boolean;
|
|
8701
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
8702
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
8703
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
8718
|
+
}>;
|
|
7688
8719
|
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
7689
8720
|
} & {
|
|
7690
|
-
outputSchema?: import("ai").FlexibleSchema<
|
|
8721
|
+
outputSchema?: import("ai").FlexibleSchema<{
|
|
8722
|
+
ok: true;
|
|
8723
|
+
duplicateSkipped: true;
|
|
8724
|
+
toolName: string;
|
|
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;
|
|
8765
|
+
} | {
|
|
8766
|
+
error?: string | undefined;
|
|
8767
|
+
ok: boolean;
|
|
8768
|
+
code: number | null;
|
|
8769
|
+
command: string;
|
|
8770
|
+
cwd: string;
|
|
8771
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
8772
|
+
durationMs: number;
|
|
8773
|
+
timedOut: boolean;
|
|
8774
|
+
aborted: boolean;
|
|
8775
|
+
signal: NodeJS.Signals | null;
|
|
8776
|
+
forcedTermination: boolean;
|
|
8777
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
8778
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
8779
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
8794
|
+
}> | undefined;
|
|
7691
8795
|
execute: import("ai").ToolExecuteFunction<{
|
|
7692
8796
|
command: string;
|
|
7693
8797
|
allowMutation: boolean;
|
|
8798
|
+
background: boolean;
|
|
7694
8799
|
timeoutSeconds?: number | undefined;
|
|
7695
|
-
},
|
|
8800
|
+
}, {
|
|
8801
|
+
ok: true;
|
|
8802
|
+
duplicateSkipped: true;
|
|
8803
|
+
toolName: string;
|
|
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;
|
|
8844
|
+
} | {
|
|
8845
|
+
error?: string | undefined;
|
|
8846
|
+
ok: boolean;
|
|
8847
|
+
code: number | null;
|
|
8848
|
+
command: string;
|
|
8849
|
+
cwd: string;
|
|
8850
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
8851
|
+
durationMs: number;
|
|
8852
|
+
timedOut: boolean;
|
|
8853
|
+
aborted: boolean;
|
|
8854
|
+
signal: NodeJS.Signals | null;
|
|
8855
|
+
forcedTermination: boolean;
|
|
8856
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
8857
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
8858
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
8873
|
+
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
|
|
7696
8874
|
} & {
|
|
7697
8875
|
type: "provider";
|
|
7698
8876
|
id: `${string}.${string}`;
|
|
@@ -7707,8 +8885,1159 @@ export declare const hazeTools: {
|
|
|
7707
8885
|
execute: import("ai").ToolExecuteFunction<{
|
|
7708
8886
|
command: string;
|
|
7709
8887
|
allowMutation: boolean;
|
|
8888
|
+
background: boolean;
|
|
7710
8889
|
timeoutSeconds?: number | undefined;
|
|
7711
|
-
},
|
|
8890
|
+
}, {
|
|
8891
|
+
ok: true;
|
|
8892
|
+
duplicateSkipped: true;
|
|
8893
|
+
toolName: string;
|
|
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;
|
|
8934
|
+
} | {
|
|
8935
|
+
error?: string | undefined;
|
|
8936
|
+
ok: boolean;
|
|
8937
|
+
code: number | null;
|
|
8938
|
+
command: string;
|
|
8939
|
+
cwd: string;
|
|
8940
|
+
classification: import("../core/safety/bashClassifier.js").BashClassification;
|
|
8941
|
+
durationMs: number;
|
|
8942
|
+
timedOut: boolean;
|
|
8943
|
+
aborted: boolean;
|
|
8944
|
+
signal: NodeJS.Signals | null;
|
|
8945
|
+
forcedTermination: boolean;
|
|
8946
|
+
stdout: import("../core/bashOutput/types.js").StreamReduction;
|
|
8947
|
+
stderr: import("../core/bashOutput/types.js").StreamReduction;
|
|
8948
|
+
validationSummary: import("./toolResultTypes.js").ValidationSummary | undefined;
|
|
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;
|
|
10040
|
+
}, NoInfer<import("./tools/toolContext.js").HazeToolContext>>;
|
|
7712
10041
|
});
|
|
7713
10042
|
};
|
|
7714
10043
|
export type HazeTools = typeof hazeTools;
|