@denizokcu/haze 0.10.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +100 -1
- package/README.md +77 -27
- package/SECURITY.md +22 -0
- package/bin/haze.js +102 -1
- package/dist/buildInfo.json +7 -0
- package/dist/cli/chat/TaskBar.d.ts +2 -1
- package/dist/cli/chat/TaskBar.js +7 -4
- package/dist/cli/chat/chatMetrics.d.ts +2 -2
- package/dist/cli/chat/chatMetrics.js +1 -1
- package/dist/cli/chat/contextReport.js +2 -0
- package/dist/cli/chat/fileMentionSuggestions.js +3 -2
- package/dist/cli/chat/inputSuggestions.d.ts +8 -16
- package/dist/cli/chat/inputSuggestions.js +9 -41
- package/dist/cli/chat/liveRegion.d.ts +25 -0
- package/dist/cli/chat/liveRegion.js +48 -0
- package/dist/cli/chat/messages.d.ts +33 -4
- package/dist/cli/chat/messages.js +218 -35
- package/dist/cli/chat/sessionLifecycle.d.ts +11 -1
- package/dist/cli/chat/sessionLifecycle.js +64 -14
- package/dist/cli/chat/sessionRecorder.js +75 -7
- package/dist/cli/chat/startupInfo.d.ts +0 -1
- package/dist/cli/chat/startupInfo.js +11 -15
- package/dist/cli/chat/turnState.d.ts +1 -1
- package/dist/cli/chat/wizardDispatch.d.ts +90 -28
- package/dist/cli/chat/wizardDispatch.js +349 -133
- package/dist/cli/commands/chat.d.ts +5 -0
- package/dist/cli/commands/chat.js +216 -172
- package/dist/cli/commands/chatModes.d.ts +8 -1
- package/dist/cli/commands/chatModes.js +9 -44
- package/dist/cli/commands/commands.d.ts +2 -0
- package/dist/cli/commands/commands.js +10 -5
- package/dist/cli/commands/doctor.d.ts +19 -0
- package/dist/cli/commands/doctor.js +76 -0
- package/dist/cli/commands/formatters.d.ts +3 -3
- package/dist/cli/commands/formatters.js +8 -25
- package/dist/cli/commands/ndjsonSink.d.ts +23 -0
- package/dist/cli/commands/ndjsonSink.js +38 -0
- package/dist/cli/commands/providerWizard.d.ts +9 -2
- package/dist/cli/commands/providerWizard.js +39 -7
- package/dist/cli/commands/runCommand.d.ts +3 -0
- package/dist/cli/commands/runCommand.js +117 -11
- package/dist/cli/commands/serverWizard.d.ts +34 -0
- package/dist/cli/commands/{mcpWizard.js → serverWizard.js} +44 -2
- package/dist/cli/commands/skillsWizard.d.ts +41 -0
- package/dist/cli/commands/{skillWizard.js → skillsWizard.js} +33 -11
- package/dist/cli/commands/streaming/abortCause.d.ts +25 -0
- package/dist/cli/commands/streaming/abortCause.js +16 -0
- package/dist/cli/commands/streaming/agentAttempt.d.ts +43 -0
- package/dist/cli/commands/streaming/agentAttempt.js +79 -0
- package/dist/cli/commands/streaming/assistantText.js +9 -2
- package/dist/cli/commands/streaming/attemptLifecycle.d.ts +56 -0
- package/dist/cli/commands/streaming/attemptLifecycle.js +110 -0
- package/dist/cli/commands/streaming/attemptOutcome.d.ts +96 -0
- package/dist/cli/commands/streaming/attemptOutcome.js +206 -0
- package/dist/cli/commands/streaming/attemptSetup.d.ts +78 -0
- package/dist/cli/commands/streaming/attemptSetup.js +167 -0
- package/dist/cli/commands/streaming/goalCheckpoint.d.ts +65 -0
- package/dist/cli/commands/streaming/goalCheckpoint.js +23 -0
- package/dist/cli/commands/streaming/goalSupervisor.d.ts +64 -0
- package/dist/cli/commands/streaming/goalSupervisor.js +130 -0
- package/dist/cli/commands/streaming/stallRecovery.d.ts +94 -0
- package/dist/cli/commands/streaming/stallRecovery.js +105 -0
- package/dist/cli/commands/streaming/streamLoop.d.ts +72 -0
- package/dist/cli/commands/streaming/streamLoop.js +448 -0
- package/dist/cli/commands/streaming/toolCallRecovery.d.ts +16 -0
- package/dist/cli/commands/streaming/toolCallRecovery.js +80 -0
- package/dist/cli/commands/streaming/toolGroupRenderer.d.ts +31 -1
- package/dist/cli/commands/streaming/toolGroupRenderer.js +50 -4
- package/dist/cli/commands/streaming/toolResultState.d.ts +6 -1
- package/dist/cli/commands/streaming/toolResultState.js +29 -7
- package/dist/cli/commands/streaming/turnRuntime.d.ts +4 -0
- package/dist/cli/commands/streaming/turnRuntime.js +6 -0
- package/dist/cli/commands/streaming.d.ts +65 -9
- package/dist/cli/commands/streaming.js +133 -430
- package/dist/cli/commands/wizardFlow.d.ts +334 -0
- package/dist/cli/commands/wizardFlow.js +377 -0
- package/dist/cli/contextReport.js +3 -0
- package/dist/cli/index.js +68 -22
- package/dist/cli/terminalTitle.js +1 -1
- package/dist/config/contextFiles.js +9 -3
- package/dist/config/inputHistory.d.ts +0 -1
- package/dist/config/inputHistory.js +1 -1
- package/dist/config/modelDiscovery.d.ts +36 -0
- package/dist/config/modelDiscovery.js +164 -1
- package/dist/config/privateStorage.js +28 -2
- package/dist/config/providerAuth.d.ts +14 -0
- package/dist/config/providerAuth.js +49 -0
- package/dist/config/providerPresets.d.ts +39 -7
- package/dist/config/providerPresets.js +371 -100
- package/dist/config/providers.js +2 -0
- package/dist/config/settings.d.ts +43 -0
- package/dist/config/settings.js +12 -0
- package/dist/config/skillSettings.js +4 -4
- package/dist/config/updateCheck.d.ts +0 -1
- package/dist/config/updateCheck.js +1 -1
- package/dist/core/agent/budgets.d.ts +73 -1
- package/dist/core/agent/budgets.js +94 -1
- package/dist/core/agent/compaction.d.ts +38 -0
- package/dist/core/agent/compaction.js +92 -17
- package/dist/core/agent/completionController.d.ts +224 -0
- package/dist/core/agent/completionController.js +296 -0
- package/dist/core/agent/contextBudget.d.ts +36 -2
- package/dist/core/agent/contextBudget.js +62 -9
- package/dist/core/agent/errors.d.ts +0 -1
- package/dist/core/agent/errors.js +1 -1
- package/dist/core/agent/events.d.ts +78 -0
- package/dist/core/agent/goalPolicy.d.ts +47 -0
- package/dist/core/agent/goalPolicy.js +106 -0
- package/dist/core/agent/reasoningPolicy.d.ts +31 -0
- package/dist/core/agent/reasoningPolicy.js +27 -0
- package/dist/core/agent/requestAssembly.d.ts +2 -2
- package/dist/core/agent/requestAssembly.js +16 -4
- package/dist/core/agent/toolCapabilities.d.ts +27 -0
- package/dist/core/agent/toolCapabilities.js +58 -0
- package/dist/core/agent/toolOutputStore.d.ts +8 -0
- package/dist/core/agent/toolOutputStore.js +11 -11
- package/dist/core/agent/toolResults.d.ts +12 -0
- package/dist/core/agent/toolResults.js +38 -0
- package/dist/core/agent/turnPolicy.d.ts +11 -0
- package/dist/core/agent/turnPolicy.js +19 -0
- package/dist/core/agent/workState.d.ts +81 -3
- package/dist/core/agent/workState.js +176 -10
- package/dist/core/attachments/imageAttachments.js +90 -42
- package/dist/core/deadline.d.ts +27 -0
- package/dist/core/deadline.js +74 -0
- package/dist/core/io/boundedRead.js +1 -1
- package/dist/core/limits.d.ts +51 -0
- package/dist/core/limits.js +51 -0
- package/dist/core/log/llmLog.js +8 -1
- package/dist/core/persistence/orderedFileWriter.d.ts +10 -0
- package/dist/core/persistence/orderedFileWriter.js +16 -2
- package/dist/core/process/backgroundRegistry.d.ts +2 -3
- package/dist/core/process/backgroundRegistry.js +15 -10
- package/dist/core/process/runBoundedProcess.d.ts +8 -2
- package/dist/core/process/runBoundedProcess.js +15 -6
- package/dist/core/process/userShell.d.ts +16 -0
- package/dist/core/process/userShell.js +59 -0
- package/dist/core/safety/missingExecutable.d.ts +42 -0
- package/dist/core/safety/missingExecutable.js +77 -0
- package/dist/core/safety/shellClassifier.d.ts +11 -0
- package/dist/core/safety/{bashClassifier.js → shellClassifier.js} +5 -3
- package/dist/core/safety/urlGuard.d.ts +1 -1
- package/dist/core/session/sessionSlimming.d.ts +0 -3
- package/dist/core/session/sessionSlimming.js +2 -3
- package/dist/core/session/sessionStore.d.ts +38 -0
- package/dist/core/session/sessionStore.js +242 -59
- package/dist/core/{bashOutput → shellOutput}/lineFilter.js +8 -2
- package/dist/core/{bashOutput → shellOutput}/reducers/search.d.ts +0 -1
- package/dist/core/{bashOutput → shellOutput}/reducers/search.js +1 -1
- package/dist/core/shellOutput/registry.d.ts +2 -0
- package/dist/core/{bashOutput → shellOutput}/registry.js +3 -3
- package/dist/core/{bashOutput → shellOutput}/types.d.ts +6 -5
- package/dist/core/subagent/contracts.d.ts +6 -14
- package/dist/core/subagent/contracts.js +4 -3
- package/dist/core/subagent/executionProfiles.js +2 -2
- package/dist/core/subagent/subagentCoordinator.d.ts +4 -0
- package/dist/core/subagent/subagentCoordinator.js +32 -2
- package/dist/core/subagent/subagentRunner.js +19 -40
- package/dist/core/toolOutput/reduction.d.ts +0 -12
- package/dist/core/toolOutput/reduction.js +1 -1
- package/dist/core/validation/outputParser.d.ts +2 -2
- package/dist/llm/client.d.ts +17 -1
- package/dist/llm/client.js +86 -14
- package/dist/llm/hazeTools.d.ts +693 -204
- package/dist/llm/hazeTools.js +110 -28
- package/dist/llm/initPrompt.js +1 -1
- package/dist/llm/lsp/client.d.ts +45 -0
- package/dist/llm/lsp/client.js +195 -0
- package/dist/llm/lsp/pool.d.ts +23 -0
- package/dist/llm/lsp/pool.js +86 -0
- package/dist/llm/lsp/protocol.d.ts +64 -0
- package/dist/llm/lsp/protocol.js +128 -0
- package/dist/llm/lsp/requests.d.ts +94 -0
- package/dist/llm/lsp/requests.js +119 -0
- package/dist/llm/lspTools.d.ts +5653 -33
- package/dist/llm/lspTools.js +152 -80
- package/dist/llm/openaiCodex.d.ts +1 -0
- package/dist/llm/openaiCodex.js +43 -0
- package/dist/llm/openaiCodexOAuth.d.ts +51 -0
- package/dist/llm/openaiCodexOAuth.js +217 -0
- package/dist/llm/requestContext.d.ts +7 -0
- package/dist/llm/requestContext.js +30 -4
- package/dist/llm/systemPrompt.d.ts +12 -0
- package/dist/llm/systemPrompt.js +24 -11
- package/dist/llm/toolResultTypes.d.ts +7 -14
- package/dist/llm/toolResultTypes.js +1 -4
- package/dist/llm/tools/editMatch.d.ts +14 -9
- package/dist/llm/tools/editMatch.js +73 -1
- package/dist/llm/tools/failures.d.ts +2 -0
- package/dist/llm/tools/failures.js +1 -0
- package/dist/llm/tools/fetchTool.d.ts +16 -0
- package/dist/llm/tools/fetchTool.js +1 -1
- package/dist/llm/tools/fileToolShared.d.ts +8 -5
- package/dist/llm/tools/fileToolShared.js +22 -23
- package/dist/llm/tools/gitIgnore.d.ts +42 -0
- package/dist/llm/tools/gitIgnore.js +247 -0
- package/dist/llm/tools/grepParse.d.ts +2 -1
- package/dist/llm/tools/grepRunner.d.ts +1 -1
- package/dist/llm/tools/grepRunner.js +2 -2
- package/dist/llm/tools/outputCap.d.ts +2 -7
- package/dist/llm/tools/outputCap.js +3 -3
- package/dist/llm/tools/processTool.d.ts +16 -16
- package/dist/llm/tools/processTool.js +1 -1
- package/dist/llm/tools/readRecovery.d.ts +8 -0
- package/dist/llm/tools/readRecovery.js +135 -0
- package/dist/llm/tools/{bashTool.d.ts → shellTool.d.ts} +171 -123
- package/dist/llm/tools/{bashTool.js → shellTool.js} +20 -14
- package/dist/llm/tools/toolContext.d.ts +1 -1
- package/dist/llm/tools/toolContext.js +66 -37
- package/dist/llm/tools/workspaceFile.d.ts +0 -1
- package/dist/llm/tools/workspaceFile.js +1 -6
- package/dist/llm/webFetch.d.ts +18 -1
- package/dist/llm/webFetch.js +64 -97
- package/dist/skills/SkillLoader.d.ts +1 -11
- package/dist/skills/SkillLoader.js +1 -2
- package/dist/skills/types.d.ts +2 -1
- package/dist/ui/codeHighlight.d.ts +4 -0
- package/dist/ui/codeHighlight.js +31 -0
- package/dist/ui/components/Header.d.ts +1 -1
- package/dist/ui/components/MarkdownText.d.ts +16 -2
- package/dist/ui/components/MarkdownText.js +244 -34
- package/dist/ui/components/TextInput.d.ts +8 -1
- package/dist/ui/components/TextInput.js +6 -2
- package/dist/ui/theme.d.ts +4 -3
- package/dist/ui/theme.js +5 -4
- package/dist/utils/buildInfo.d.ts +97 -0
- package/dist/utils/buildInfo.js +244 -0
- package/dist/utils/fs.d.ts +11 -0
- package/dist/utils/fs.js +91 -26
- package/dist/utils/openPath.d.ts +2 -2
- package/dist/utils/openPath.js +19 -6
- package/dist/utils/path.d.ts +2 -1
- package/dist/utils/path.js +6 -2
- package/dist/utils/utf8.d.ts +22 -0
- package/dist/utils/utf8.js +54 -0
- package/dist/utils/version.d.ts +9 -3
- package/dist/utils/version.js +28 -2
- package/package.json +28 -21
- package/dist/cli/commands/lspWizard.d.ts +0 -14
- package/dist/cli/commands/lspWizard.js +0 -44
- package/dist/cli/commands/mcpWizard.d.ts +0 -15
- package/dist/cli/commands/skillConfirmRemove.d.ts +0 -11
- package/dist/cli/commands/skillConfirmRemove.js +0 -20
- package/dist/cli/commands/skillCreation.d.ts +0 -12
- package/dist/cli/commands/skillCreation.js +0 -14
- package/dist/cli/commands/skillWizard.d.ts +0 -17
- package/dist/cli/commands/streaming/idleTimer.d.ts +0 -26
- package/dist/cli/commands/streaming/idleTimer.js +0 -24
- package/dist/cli/commands/streaming/turnOutcome.d.ts +0 -10
- package/dist/cli/commands/streaming/turnOutcome.js +0 -13
- package/dist/cli/commands/wizardActions.d.ts +0 -46
- package/dist/cli/commands/wizardActions.js +0 -46
- package/dist/cli/commands/wizardInput.d.ts +0 -4
- package/dist/cli/commands/wizardInput.js +0 -19
- package/dist/cli/commands/wizardPrompts.d.ts +0 -22
- package/dist/cli/commands/wizardPrompts.js +0 -52
- package/dist/cli/commands/wizardSuggestions.d.ts +0 -31
- package/dist/cli/commands/wizardSuggestions.js +0 -188
- package/dist/cli/commands/wizardTransition.d.ts +0 -37
- package/dist/cli/commands/wizardTransition.js +0 -43
- package/dist/core/bashOutput/ansi.d.ts +0 -1
- package/dist/core/bashOutput/ansi.js +0 -7
- package/dist/core/bashOutput/registry.d.ts +0 -4
- package/dist/core/goal/completionPolicy.d.ts +0 -2
- package/dist/core/goal/completionPolicy.js +0 -7
- package/dist/core/goal/requestClassifier.d.ts +0 -3
- package/dist/core/goal/requestClassifier.js +0 -18
- package/dist/core/goal/sessionGoal.d.ts +0 -8
- package/dist/core/goal/sessionGoal.js +0 -30
- package/dist/core/limits/byteBudgets.d.ts +0 -18
- package/dist/core/limits/byteBudgets.js +0 -18
- package/dist/core/limits/textBudgets.d.ts +0 -23
- package/dist/core/limits/textBudgets.js +0 -23
- package/dist/core/safety/bashClassifier.d.ts +0 -10
- package/dist/llm/lsp.d.ts +0 -129
- package/dist/llm/lsp.js +0 -307
- package/dist/ui/components/ErrorView.d.ts +0 -4
- package/dist/ui/components/ErrorView.js +0 -7
- package/dist/utils/yaml.d.ts +0 -2
- package/dist/utils/yaml.js +0 -8
- package/examples/skills/files/SKILL.md +0 -16
- package/examples/skills/files/examples/file-editing.md +0 -3
- /package/dist/core/{bashOutput → shellOutput}/command.d.ts +0 -0
- /package/dist/core/{bashOutput → shellOutput}/command.js +0 -0
- /package/dist/core/{bashOutput → shellOutput}/lineFilter.d.ts +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/content.d.ts +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/content.js +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/gh.d.ts +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/gh.js +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/git.d.ts +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/git.js +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/validation.d.ts +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/validation.js +0 -0
- /package/dist/core/{bashOutput → shellOutput}/types.js +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const shellTool: ({
|
|
2
2
|
title?: string;
|
|
3
3
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
4
4
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
5
5
|
inputSchema: import("ai").FlexibleSchema<{
|
|
6
6
|
command: string;
|
|
7
|
-
|
|
7
|
+
purpose: "validation" | "auto";
|
|
8
8
|
background: boolean;
|
|
9
9
|
timeoutSeconds?: number | undefined;
|
|
10
10
|
}>;
|
|
11
11
|
contextSchema?: import("ai").FlexibleSchema<import("./toolContext.js").HazeToolContext> | undefined;
|
|
12
12
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
13
13
|
command: string;
|
|
14
|
-
|
|
14
|
+
purpose: "validation" | "auto";
|
|
15
15
|
background: boolean;
|
|
16
16
|
timeoutSeconds?: number | undefined;
|
|
17
17
|
}, NoInfer<import("./toolContext.js").HazeToolContext>> | undefined;
|
|
@@ -22,7 +22,7 @@ export declare const bashTool: ({
|
|
|
22
22
|
onInputAvailable?: ((options: {
|
|
23
23
|
input: {
|
|
24
24
|
command: string;
|
|
25
|
-
|
|
25
|
+
purpose: "validation" | "auto";
|
|
26
26
|
background: boolean;
|
|
27
27
|
timeoutSeconds?: number | undefined;
|
|
28
28
|
};
|
|
@@ -31,7 +31,7 @@ export declare const bashTool: ({
|
|
|
31
31
|
toolCallId: string;
|
|
32
32
|
input: {
|
|
33
33
|
command: string;
|
|
34
|
-
|
|
34
|
+
purpose: "validation" | "auto";
|
|
35
35
|
background: boolean;
|
|
36
36
|
timeoutSeconds?: number | undefined;
|
|
37
37
|
};
|
|
@@ -49,14 +49,14 @@ export declare const bashTool: ({
|
|
|
49
49
|
suggestedNextStep: string;
|
|
50
50
|
background?: undefined;
|
|
51
51
|
} | {
|
|
52
|
-
classification: import("../../core/safety/
|
|
52
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
53
53
|
hint: string;
|
|
54
54
|
backgroundId: string;
|
|
55
55
|
pid?: number;
|
|
56
56
|
command: string;
|
|
57
57
|
cwd: string;
|
|
58
58
|
startedAt: string;
|
|
59
|
-
status:
|
|
59
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
60
60
|
code?: number | null;
|
|
61
61
|
signal?: NodeJS.Signals | null;
|
|
62
62
|
outputHandle: string;
|
|
@@ -81,18 +81,22 @@ export declare const bashTool: ({
|
|
|
81
81
|
suggestedNextStep: string;
|
|
82
82
|
} | {
|
|
83
83
|
error?: string | undefined;
|
|
84
|
+
missingExecutableStep?: string | undefined;
|
|
85
|
+
reasonCode?: "missing_executable" | undefined;
|
|
86
|
+
missingExecutable?: string | undefined;
|
|
84
87
|
ok: boolean;
|
|
85
88
|
code: number | null;
|
|
86
89
|
command: string;
|
|
90
|
+
purpose: "validation" | "auto";
|
|
87
91
|
cwd: string;
|
|
88
|
-
classification: import("../../core/safety/
|
|
92
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
89
93
|
durationMs: number;
|
|
90
94
|
timedOut: boolean;
|
|
91
95
|
aborted: boolean;
|
|
92
96
|
signal: NodeJS.Signals | null;
|
|
93
97
|
forcedTermination: boolean;
|
|
94
|
-
stdout: import("../../core/
|
|
95
|
-
stderr: import("../../core/
|
|
98
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
99
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
96
100
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
97
101
|
stdoutBytes: {
|
|
98
102
|
totalBytes: number;
|
|
@@ -104,7 +108,6 @@ export declare const bashTool: ({
|
|
|
104
108
|
retainedBytes: number;
|
|
105
109
|
omittedBytes: number;
|
|
106
110
|
};
|
|
107
|
-
reasonCode?: undefined;
|
|
108
111
|
recoverable?: undefined;
|
|
109
112
|
suggestedNextStep?: undefined;
|
|
110
113
|
background?: undefined;
|
|
@@ -125,14 +128,14 @@ export declare const bashTool: ({
|
|
|
125
128
|
suggestedNextStep: string;
|
|
126
129
|
background?: undefined;
|
|
127
130
|
} | {
|
|
128
|
-
classification: import("../../core/safety/
|
|
131
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
129
132
|
hint: string;
|
|
130
133
|
backgroundId: string;
|
|
131
134
|
pid?: number;
|
|
132
135
|
command: string;
|
|
133
136
|
cwd: string;
|
|
134
137
|
startedAt: string;
|
|
135
|
-
status:
|
|
138
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
136
139
|
code?: number | null;
|
|
137
140
|
signal?: NodeJS.Signals | null;
|
|
138
141
|
outputHandle: string;
|
|
@@ -157,18 +160,22 @@ export declare const bashTool: ({
|
|
|
157
160
|
suggestedNextStep: string;
|
|
158
161
|
} | {
|
|
159
162
|
error?: string | undefined;
|
|
163
|
+
missingExecutableStep?: string | undefined;
|
|
164
|
+
reasonCode?: "missing_executable" | undefined;
|
|
165
|
+
missingExecutable?: string | undefined;
|
|
160
166
|
ok: boolean;
|
|
161
167
|
code: number | null;
|
|
162
168
|
command: string;
|
|
169
|
+
purpose: "validation" | "auto";
|
|
163
170
|
cwd: string;
|
|
164
|
-
classification: import("../../core/safety/
|
|
171
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
165
172
|
durationMs: number;
|
|
166
173
|
timedOut: boolean;
|
|
167
174
|
aborted: boolean;
|
|
168
175
|
signal: NodeJS.Signals | null;
|
|
169
176
|
forcedTermination: boolean;
|
|
170
|
-
stdout: import("../../core/
|
|
171
|
-
stderr: import("../../core/
|
|
177
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
178
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
172
179
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
173
180
|
stdoutBytes: {
|
|
174
181
|
totalBytes: number;
|
|
@@ -180,14 +187,13 @@ export declare const bashTool: ({
|
|
|
180
187
|
retainedBytes: number;
|
|
181
188
|
omittedBytes: number;
|
|
182
189
|
};
|
|
183
|
-
reasonCode?: undefined;
|
|
184
190
|
recoverable?: undefined;
|
|
185
191
|
suggestedNextStep?: undefined;
|
|
186
192
|
background?: undefined;
|
|
187
193
|
}> | undefined;
|
|
188
194
|
execute: import("ai").ToolExecuteFunction<{
|
|
189
195
|
command: string;
|
|
190
|
-
|
|
196
|
+
purpose: "validation" | "auto";
|
|
191
197
|
background: boolean;
|
|
192
198
|
timeoutSeconds?: number | undefined;
|
|
193
199
|
}, {
|
|
@@ -204,14 +210,14 @@ export declare const bashTool: ({
|
|
|
204
210
|
suggestedNextStep: string;
|
|
205
211
|
background?: undefined;
|
|
206
212
|
} | {
|
|
207
|
-
classification: import("../../core/safety/
|
|
213
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
208
214
|
hint: string;
|
|
209
215
|
backgroundId: string;
|
|
210
216
|
pid?: number;
|
|
211
217
|
command: string;
|
|
212
218
|
cwd: string;
|
|
213
219
|
startedAt: string;
|
|
214
|
-
status:
|
|
220
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
215
221
|
code?: number | null;
|
|
216
222
|
signal?: NodeJS.Signals | null;
|
|
217
223
|
outputHandle: string;
|
|
@@ -236,18 +242,22 @@ export declare const bashTool: ({
|
|
|
236
242
|
suggestedNextStep: string;
|
|
237
243
|
} | {
|
|
238
244
|
error?: string | undefined;
|
|
245
|
+
missingExecutableStep?: string | undefined;
|
|
246
|
+
reasonCode?: "missing_executable" | undefined;
|
|
247
|
+
missingExecutable?: string | undefined;
|
|
239
248
|
ok: boolean;
|
|
240
249
|
code: number | null;
|
|
241
250
|
command: string;
|
|
251
|
+
purpose: "validation" | "auto";
|
|
242
252
|
cwd: string;
|
|
243
|
-
classification: import("../../core/safety/
|
|
253
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
244
254
|
durationMs: number;
|
|
245
255
|
timedOut: boolean;
|
|
246
256
|
aborted: boolean;
|
|
247
257
|
signal: NodeJS.Signals | null;
|
|
248
258
|
forcedTermination: boolean;
|
|
249
|
-
stdout: import("../../core/
|
|
250
|
-
stderr: import("../../core/
|
|
259
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
260
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
251
261
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
252
262
|
stdoutBytes: {
|
|
253
263
|
totalBytes: number;
|
|
@@ -259,7 +269,6 @@ export declare const bashTool: ({
|
|
|
259
269
|
retainedBytes: number;
|
|
260
270
|
omittedBytes: number;
|
|
261
271
|
};
|
|
262
|
-
reasonCode?: undefined;
|
|
263
272
|
recoverable?: undefined;
|
|
264
273
|
suggestedNextStep?: undefined;
|
|
265
274
|
background?: undefined;
|
|
@@ -273,7 +282,7 @@ export declare const bashTool: ({
|
|
|
273
282
|
inputExamples?: {
|
|
274
283
|
input: NoInfer<{
|
|
275
284
|
command: string;
|
|
276
|
-
|
|
285
|
+
purpose: "validation" | "auto";
|
|
277
286
|
background: boolean;
|
|
278
287
|
timeoutSeconds?: number | undefined;
|
|
279
288
|
}>;
|
|
@@ -287,7 +296,7 @@ export declare const bashTool: ({
|
|
|
287
296
|
} & {
|
|
288
297
|
execute: import("ai").ToolExecuteFunction<{
|
|
289
298
|
command: string;
|
|
290
|
-
|
|
299
|
+
purpose: "validation" | "auto";
|
|
291
300
|
background: boolean;
|
|
292
301
|
timeoutSeconds?: number | undefined;
|
|
293
302
|
}, {
|
|
@@ -304,14 +313,14 @@ export declare const bashTool: ({
|
|
|
304
313
|
suggestedNextStep: string;
|
|
305
314
|
background?: undefined;
|
|
306
315
|
} | {
|
|
307
|
-
classification: import("../../core/safety/
|
|
316
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
308
317
|
hint: string;
|
|
309
318
|
backgroundId: string;
|
|
310
319
|
pid?: number;
|
|
311
320
|
command: string;
|
|
312
321
|
cwd: string;
|
|
313
322
|
startedAt: string;
|
|
314
|
-
status:
|
|
323
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
315
324
|
code?: number | null;
|
|
316
325
|
signal?: NodeJS.Signals | null;
|
|
317
326
|
outputHandle: string;
|
|
@@ -336,18 +345,22 @@ export declare const bashTool: ({
|
|
|
336
345
|
suggestedNextStep: string;
|
|
337
346
|
} | {
|
|
338
347
|
error?: string | undefined;
|
|
348
|
+
missingExecutableStep?: string | undefined;
|
|
349
|
+
reasonCode?: "missing_executable" | undefined;
|
|
350
|
+
missingExecutable?: string | undefined;
|
|
339
351
|
ok: boolean;
|
|
340
352
|
code: number | null;
|
|
341
353
|
command: string;
|
|
354
|
+
purpose: "validation" | "auto";
|
|
342
355
|
cwd: string;
|
|
343
|
-
classification: import("../../core/safety/
|
|
356
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
344
357
|
durationMs: number;
|
|
345
358
|
timedOut: boolean;
|
|
346
359
|
aborted: boolean;
|
|
347
360
|
signal: NodeJS.Signals | null;
|
|
348
361
|
forcedTermination: boolean;
|
|
349
|
-
stdout: import("../../core/
|
|
350
|
-
stderr: import("../../core/
|
|
362
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
363
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
351
364
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
352
365
|
stdoutBytes: {
|
|
353
366
|
totalBytes: number;
|
|
@@ -359,7 +372,6 @@ export declare const bashTool: ({
|
|
|
359
372
|
retainedBytes: number;
|
|
360
373
|
omittedBytes: number;
|
|
361
374
|
};
|
|
362
|
-
reasonCode?: undefined;
|
|
363
375
|
recoverable?: undefined;
|
|
364
376
|
suggestedNextStep?: undefined;
|
|
365
377
|
background?: undefined;
|
|
@@ -370,14 +382,14 @@ export declare const bashTool: ({
|
|
|
370
382
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
371
383
|
inputSchema: import("ai").FlexibleSchema<{
|
|
372
384
|
command: string;
|
|
373
|
-
|
|
385
|
+
purpose: "validation" | "auto";
|
|
374
386
|
background: boolean;
|
|
375
387
|
timeoutSeconds?: number | undefined;
|
|
376
388
|
}>;
|
|
377
389
|
contextSchema?: import("ai").FlexibleSchema<import("./toolContext.js").HazeToolContext> | undefined;
|
|
378
390
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
379
391
|
command: string;
|
|
380
|
-
|
|
392
|
+
purpose: "validation" | "auto";
|
|
381
393
|
background: boolean;
|
|
382
394
|
timeoutSeconds?: number | undefined;
|
|
383
395
|
}, NoInfer<import("./toolContext.js").HazeToolContext>> | undefined;
|
|
@@ -388,7 +400,7 @@ export declare const bashTool: ({
|
|
|
388
400
|
onInputAvailable?: ((options: {
|
|
389
401
|
input: {
|
|
390
402
|
command: string;
|
|
391
|
-
|
|
403
|
+
purpose: "validation" | "auto";
|
|
392
404
|
background: boolean;
|
|
393
405
|
timeoutSeconds?: number | undefined;
|
|
394
406
|
};
|
|
@@ -397,7 +409,7 @@ export declare const bashTool: ({
|
|
|
397
409
|
toolCallId: string;
|
|
398
410
|
input: {
|
|
399
411
|
command: string;
|
|
400
|
-
|
|
412
|
+
purpose: "validation" | "auto";
|
|
401
413
|
background: boolean;
|
|
402
414
|
timeoutSeconds?: number | undefined;
|
|
403
415
|
};
|
|
@@ -415,14 +427,14 @@ export declare const bashTool: ({
|
|
|
415
427
|
suggestedNextStep: string;
|
|
416
428
|
background?: undefined;
|
|
417
429
|
} | {
|
|
418
|
-
classification: import("../../core/safety/
|
|
430
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
419
431
|
hint: string;
|
|
420
432
|
backgroundId: string;
|
|
421
433
|
pid?: number;
|
|
422
434
|
command: string;
|
|
423
435
|
cwd: string;
|
|
424
436
|
startedAt: string;
|
|
425
|
-
status:
|
|
437
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
426
438
|
code?: number | null;
|
|
427
439
|
signal?: NodeJS.Signals | null;
|
|
428
440
|
outputHandle: string;
|
|
@@ -447,18 +459,22 @@ export declare const bashTool: ({
|
|
|
447
459
|
suggestedNextStep: string;
|
|
448
460
|
} | {
|
|
449
461
|
error?: string | undefined;
|
|
462
|
+
missingExecutableStep?: string | undefined;
|
|
463
|
+
reasonCode?: "missing_executable" | undefined;
|
|
464
|
+
missingExecutable?: string | undefined;
|
|
450
465
|
ok: boolean;
|
|
451
466
|
code: number | null;
|
|
452
467
|
command: string;
|
|
468
|
+
purpose: "validation" | "auto";
|
|
453
469
|
cwd: string;
|
|
454
|
-
classification: import("../../core/safety/
|
|
470
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
455
471
|
durationMs: number;
|
|
456
472
|
timedOut: boolean;
|
|
457
473
|
aborted: boolean;
|
|
458
474
|
signal: NodeJS.Signals | null;
|
|
459
475
|
forcedTermination: boolean;
|
|
460
|
-
stdout: import("../../core/
|
|
461
|
-
stderr: import("../../core/
|
|
476
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
477
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
462
478
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
463
479
|
stdoutBytes: {
|
|
464
480
|
totalBytes: number;
|
|
@@ -470,7 +486,6 @@ export declare const bashTool: ({
|
|
|
470
486
|
retainedBytes: number;
|
|
471
487
|
omittedBytes: number;
|
|
472
488
|
};
|
|
473
|
-
reasonCode?: undefined;
|
|
474
489
|
recoverable?: undefined;
|
|
475
490
|
suggestedNextStep?: undefined;
|
|
476
491
|
background?: undefined;
|
|
@@ -491,14 +506,14 @@ export declare const bashTool: ({
|
|
|
491
506
|
suggestedNextStep: string;
|
|
492
507
|
background?: undefined;
|
|
493
508
|
} | {
|
|
494
|
-
classification: import("../../core/safety/
|
|
509
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
495
510
|
hint: string;
|
|
496
511
|
backgroundId: string;
|
|
497
512
|
pid?: number;
|
|
498
513
|
command: string;
|
|
499
514
|
cwd: string;
|
|
500
515
|
startedAt: string;
|
|
501
|
-
status:
|
|
516
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
502
517
|
code?: number | null;
|
|
503
518
|
signal?: NodeJS.Signals | null;
|
|
504
519
|
outputHandle: string;
|
|
@@ -523,18 +538,22 @@ export declare const bashTool: ({
|
|
|
523
538
|
suggestedNextStep: string;
|
|
524
539
|
} | {
|
|
525
540
|
error?: string | undefined;
|
|
541
|
+
missingExecutableStep?: string | undefined;
|
|
542
|
+
reasonCode?: "missing_executable" | undefined;
|
|
543
|
+
missingExecutable?: string | undefined;
|
|
526
544
|
ok: boolean;
|
|
527
545
|
code: number | null;
|
|
528
546
|
command: string;
|
|
547
|
+
purpose: "validation" | "auto";
|
|
529
548
|
cwd: string;
|
|
530
|
-
classification: import("../../core/safety/
|
|
549
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
531
550
|
durationMs: number;
|
|
532
551
|
timedOut: boolean;
|
|
533
552
|
aborted: boolean;
|
|
534
553
|
signal: NodeJS.Signals | null;
|
|
535
554
|
forcedTermination: boolean;
|
|
536
|
-
stdout: import("../../core/
|
|
537
|
-
stderr: import("../../core/
|
|
555
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
556
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
538
557
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
539
558
|
stdoutBytes: {
|
|
540
559
|
totalBytes: number;
|
|
@@ -546,14 +565,13 @@ export declare const bashTool: ({
|
|
|
546
565
|
retainedBytes: number;
|
|
547
566
|
omittedBytes: number;
|
|
548
567
|
};
|
|
549
|
-
reasonCode?: undefined;
|
|
550
568
|
recoverable?: undefined;
|
|
551
569
|
suggestedNextStep?: undefined;
|
|
552
570
|
background?: undefined;
|
|
553
571
|
}> | undefined;
|
|
554
572
|
execute: import("ai").ToolExecuteFunction<{
|
|
555
573
|
command: string;
|
|
556
|
-
|
|
574
|
+
purpose: "validation" | "auto";
|
|
557
575
|
background: boolean;
|
|
558
576
|
timeoutSeconds?: number | undefined;
|
|
559
577
|
}, {
|
|
@@ -570,14 +588,14 @@ export declare const bashTool: ({
|
|
|
570
588
|
suggestedNextStep: string;
|
|
571
589
|
background?: undefined;
|
|
572
590
|
} | {
|
|
573
|
-
classification: import("../../core/safety/
|
|
591
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
574
592
|
hint: string;
|
|
575
593
|
backgroundId: string;
|
|
576
594
|
pid?: number;
|
|
577
595
|
command: string;
|
|
578
596
|
cwd: string;
|
|
579
597
|
startedAt: string;
|
|
580
|
-
status:
|
|
598
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
581
599
|
code?: number | null;
|
|
582
600
|
signal?: NodeJS.Signals | null;
|
|
583
601
|
outputHandle: string;
|
|
@@ -602,18 +620,22 @@ export declare const bashTool: ({
|
|
|
602
620
|
suggestedNextStep: string;
|
|
603
621
|
} | {
|
|
604
622
|
error?: string | undefined;
|
|
623
|
+
missingExecutableStep?: string | undefined;
|
|
624
|
+
reasonCode?: "missing_executable" | undefined;
|
|
625
|
+
missingExecutable?: string | undefined;
|
|
605
626
|
ok: boolean;
|
|
606
627
|
code: number | null;
|
|
607
628
|
command: string;
|
|
629
|
+
purpose: "validation" | "auto";
|
|
608
630
|
cwd: string;
|
|
609
|
-
classification: import("../../core/safety/
|
|
631
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
610
632
|
durationMs: number;
|
|
611
633
|
timedOut: boolean;
|
|
612
634
|
aborted: boolean;
|
|
613
635
|
signal: NodeJS.Signals | null;
|
|
614
636
|
forcedTermination: boolean;
|
|
615
|
-
stdout: import("../../core/
|
|
616
|
-
stderr: import("../../core/
|
|
637
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
638
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
617
639
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
618
640
|
stdoutBytes: {
|
|
619
641
|
totalBytes: number;
|
|
@@ -625,7 +647,6 @@ export declare const bashTool: ({
|
|
|
625
647
|
retainedBytes: number;
|
|
626
648
|
omittedBytes: number;
|
|
627
649
|
};
|
|
628
|
-
reasonCode?: undefined;
|
|
629
650
|
recoverable?: undefined;
|
|
630
651
|
suggestedNextStep?: undefined;
|
|
631
652
|
background?: undefined;
|
|
@@ -639,7 +660,7 @@ export declare const bashTool: ({
|
|
|
639
660
|
inputExamples?: {
|
|
640
661
|
input: NoInfer<{
|
|
641
662
|
command: string;
|
|
642
|
-
|
|
663
|
+
purpose: "validation" | "auto";
|
|
643
664
|
background: boolean;
|
|
644
665
|
timeoutSeconds?: number | undefined;
|
|
645
666
|
}>;
|
|
@@ -653,7 +674,7 @@ export declare const bashTool: ({
|
|
|
653
674
|
} & {
|
|
654
675
|
execute: import("ai").ToolExecuteFunction<{
|
|
655
676
|
command: string;
|
|
656
|
-
|
|
677
|
+
purpose: "validation" | "auto";
|
|
657
678
|
background: boolean;
|
|
658
679
|
timeoutSeconds?: number | undefined;
|
|
659
680
|
}, {
|
|
@@ -670,14 +691,14 @@ export declare const bashTool: ({
|
|
|
670
691
|
suggestedNextStep: string;
|
|
671
692
|
background?: undefined;
|
|
672
693
|
} | {
|
|
673
|
-
classification: import("../../core/safety/
|
|
694
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
674
695
|
hint: string;
|
|
675
696
|
backgroundId: string;
|
|
676
697
|
pid?: number;
|
|
677
698
|
command: string;
|
|
678
699
|
cwd: string;
|
|
679
700
|
startedAt: string;
|
|
680
|
-
status:
|
|
701
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
681
702
|
code?: number | null;
|
|
682
703
|
signal?: NodeJS.Signals | null;
|
|
683
704
|
outputHandle: string;
|
|
@@ -702,18 +723,22 @@ export declare const bashTool: ({
|
|
|
702
723
|
suggestedNextStep: string;
|
|
703
724
|
} | {
|
|
704
725
|
error?: string | undefined;
|
|
726
|
+
missingExecutableStep?: string | undefined;
|
|
727
|
+
reasonCode?: "missing_executable" | undefined;
|
|
728
|
+
missingExecutable?: string | undefined;
|
|
705
729
|
ok: boolean;
|
|
706
730
|
code: number | null;
|
|
707
731
|
command: string;
|
|
732
|
+
purpose: "validation" | "auto";
|
|
708
733
|
cwd: string;
|
|
709
|
-
classification: import("../../core/safety/
|
|
734
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
710
735
|
durationMs: number;
|
|
711
736
|
timedOut: boolean;
|
|
712
737
|
aborted: boolean;
|
|
713
738
|
signal: NodeJS.Signals | null;
|
|
714
739
|
forcedTermination: boolean;
|
|
715
|
-
stdout: import("../../core/
|
|
716
|
-
stderr: import("../../core/
|
|
740
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
741
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
717
742
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
718
743
|
stdoutBytes: {
|
|
719
744
|
totalBytes: number;
|
|
@@ -725,7 +750,6 @@ export declare const bashTool: ({
|
|
|
725
750
|
retainedBytes: number;
|
|
726
751
|
omittedBytes: number;
|
|
727
752
|
};
|
|
728
|
-
reasonCode?: undefined;
|
|
729
753
|
recoverable?: undefined;
|
|
730
754
|
suggestedNextStep?: undefined;
|
|
731
755
|
background?: undefined;
|
|
@@ -736,14 +760,14 @@ export declare const bashTool: ({
|
|
|
736
760
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
737
761
|
inputSchema: import("ai").FlexibleSchema<{
|
|
738
762
|
command: string;
|
|
739
|
-
|
|
763
|
+
purpose: "validation" | "auto";
|
|
740
764
|
background: boolean;
|
|
741
765
|
timeoutSeconds?: number | undefined;
|
|
742
766
|
}>;
|
|
743
767
|
contextSchema?: import("ai").FlexibleSchema<import("./toolContext.js").HazeToolContext> | undefined;
|
|
744
768
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
745
769
|
command: string;
|
|
746
|
-
|
|
770
|
+
purpose: "validation" | "auto";
|
|
747
771
|
background: boolean;
|
|
748
772
|
timeoutSeconds?: number | undefined;
|
|
749
773
|
}, NoInfer<import("./toolContext.js").HazeToolContext>> | undefined;
|
|
@@ -754,7 +778,7 @@ export declare const bashTool: ({
|
|
|
754
778
|
onInputAvailable?: ((options: {
|
|
755
779
|
input: {
|
|
756
780
|
command: string;
|
|
757
|
-
|
|
781
|
+
purpose: "validation" | "auto";
|
|
758
782
|
background: boolean;
|
|
759
783
|
timeoutSeconds?: number | undefined;
|
|
760
784
|
};
|
|
@@ -763,7 +787,7 @@ export declare const bashTool: ({
|
|
|
763
787
|
toolCallId: string;
|
|
764
788
|
input: {
|
|
765
789
|
command: string;
|
|
766
|
-
|
|
790
|
+
purpose: "validation" | "auto";
|
|
767
791
|
background: boolean;
|
|
768
792
|
timeoutSeconds?: number | undefined;
|
|
769
793
|
};
|
|
@@ -781,14 +805,14 @@ export declare const bashTool: ({
|
|
|
781
805
|
suggestedNextStep: string;
|
|
782
806
|
background?: undefined;
|
|
783
807
|
} | {
|
|
784
|
-
classification: import("../../core/safety/
|
|
808
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
785
809
|
hint: string;
|
|
786
810
|
backgroundId: string;
|
|
787
811
|
pid?: number;
|
|
788
812
|
command: string;
|
|
789
813
|
cwd: string;
|
|
790
814
|
startedAt: string;
|
|
791
|
-
status:
|
|
815
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
792
816
|
code?: number | null;
|
|
793
817
|
signal?: NodeJS.Signals | null;
|
|
794
818
|
outputHandle: string;
|
|
@@ -813,18 +837,22 @@ export declare const bashTool: ({
|
|
|
813
837
|
suggestedNextStep: string;
|
|
814
838
|
} | {
|
|
815
839
|
error?: string | undefined;
|
|
840
|
+
missingExecutableStep?: string | undefined;
|
|
841
|
+
reasonCode?: "missing_executable" | undefined;
|
|
842
|
+
missingExecutable?: string | undefined;
|
|
816
843
|
ok: boolean;
|
|
817
844
|
code: number | null;
|
|
818
845
|
command: string;
|
|
846
|
+
purpose: "validation" | "auto";
|
|
819
847
|
cwd: string;
|
|
820
|
-
classification: import("../../core/safety/
|
|
848
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
821
849
|
durationMs: number;
|
|
822
850
|
timedOut: boolean;
|
|
823
851
|
aborted: boolean;
|
|
824
852
|
signal: NodeJS.Signals | null;
|
|
825
853
|
forcedTermination: boolean;
|
|
826
|
-
stdout: import("../../core/
|
|
827
|
-
stderr: import("../../core/
|
|
854
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
855
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
828
856
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
829
857
|
stdoutBytes: {
|
|
830
858
|
totalBytes: number;
|
|
@@ -836,7 +864,6 @@ export declare const bashTool: ({
|
|
|
836
864
|
retainedBytes: number;
|
|
837
865
|
omittedBytes: number;
|
|
838
866
|
};
|
|
839
|
-
reasonCode?: undefined;
|
|
840
867
|
recoverable?: undefined;
|
|
841
868
|
suggestedNextStep?: undefined;
|
|
842
869
|
background?: undefined;
|
|
@@ -857,14 +884,14 @@ export declare const bashTool: ({
|
|
|
857
884
|
suggestedNextStep: string;
|
|
858
885
|
background?: undefined;
|
|
859
886
|
} | {
|
|
860
|
-
classification: import("../../core/safety/
|
|
887
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
861
888
|
hint: string;
|
|
862
889
|
backgroundId: string;
|
|
863
890
|
pid?: number;
|
|
864
891
|
command: string;
|
|
865
892
|
cwd: string;
|
|
866
893
|
startedAt: string;
|
|
867
|
-
status:
|
|
894
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
868
895
|
code?: number | null;
|
|
869
896
|
signal?: NodeJS.Signals | null;
|
|
870
897
|
outputHandle: string;
|
|
@@ -889,18 +916,22 @@ export declare const bashTool: ({
|
|
|
889
916
|
suggestedNextStep: string;
|
|
890
917
|
} | {
|
|
891
918
|
error?: string | undefined;
|
|
919
|
+
missingExecutableStep?: string | undefined;
|
|
920
|
+
reasonCode?: "missing_executable" | undefined;
|
|
921
|
+
missingExecutable?: string | undefined;
|
|
892
922
|
ok: boolean;
|
|
893
923
|
code: number | null;
|
|
894
924
|
command: string;
|
|
925
|
+
purpose: "validation" | "auto";
|
|
895
926
|
cwd: string;
|
|
896
|
-
classification: import("../../core/safety/
|
|
927
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
897
928
|
durationMs: number;
|
|
898
929
|
timedOut: boolean;
|
|
899
930
|
aborted: boolean;
|
|
900
931
|
signal: NodeJS.Signals | null;
|
|
901
932
|
forcedTermination: boolean;
|
|
902
|
-
stdout: import("../../core/
|
|
903
|
-
stderr: import("../../core/
|
|
933
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
934
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
904
935
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
905
936
|
stdoutBytes: {
|
|
906
937
|
totalBytes: number;
|
|
@@ -912,14 +943,13 @@ export declare const bashTool: ({
|
|
|
912
943
|
retainedBytes: number;
|
|
913
944
|
omittedBytes: number;
|
|
914
945
|
};
|
|
915
|
-
reasonCode?: undefined;
|
|
916
946
|
recoverable?: undefined;
|
|
917
947
|
suggestedNextStep?: undefined;
|
|
918
948
|
background?: undefined;
|
|
919
949
|
}> | undefined;
|
|
920
950
|
execute: import("ai").ToolExecuteFunction<{
|
|
921
951
|
command: string;
|
|
922
|
-
|
|
952
|
+
purpose: "validation" | "auto";
|
|
923
953
|
background: boolean;
|
|
924
954
|
timeoutSeconds?: number | undefined;
|
|
925
955
|
}, {
|
|
@@ -936,14 +966,14 @@ export declare const bashTool: ({
|
|
|
936
966
|
suggestedNextStep: string;
|
|
937
967
|
background?: undefined;
|
|
938
968
|
} | {
|
|
939
|
-
classification: import("../../core/safety/
|
|
969
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
940
970
|
hint: string;
|
|
941
971
|
backgroundId: string;
|
|
942
972
|
pid?: number;
|
|
943
973
|
command: string;
|
|
944
974
|
cwd: string;
|
|
945
975
|
startedAt: string;
|
|
946
|
-
status:
|
|
976
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
947
977
|
code?: number | null;
|
|
948
978
|
signal?: NodeJS.Signals | null;
|
|
949
979
|
outputHandle: string;
|
|
@@ -968,18 +998,22 @@ export declare const bashTool: ({
|
|
|
968
998
|
suggestedNextStep: string;
|
|
969
999
|
} | {
|
|
970
1000
|
error?: string | undefined;
|
|
1001
|
+
missingExecutableStep?: string | undefined;
|
|
1002
|
+
reasonCode?: "missing_executable" | undefined;
|
|
1003
|
+
missingExecutable?: string | undefined;
|
|
971
1004
|
ok: boolean;
|
|
972
1005
|
code: number | null;
|
|
973
1006
|
command: string;
|
|
1007
|
+
purpose: "validation" | "auto";
|
|
974
1008
|
cwd: string;
|
|
975
|
-
classification: import("../../core/safety/
|
|
1009
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
976
1010
|
durationMs: number;
|
|
977
1011
|
timedOut: boolean;
|
|
978
1012
|
aborted: boolean;
|
|
979
1013
|
signal: NodeJS.Signals | null;
|
|
980
1014
|
forcedTermination: boolean;
|
|
981
|
-
stdout: import("../../core/
|
|
982
|
-
stderr: import("../../core/
|
|
1015
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
1016
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
983
1017
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
984
1018
|
stdoutBytes: {
|
|
985
1019
|
totalBytes: number;
|
|
@@ -991,7 +1025,6 @@ export declare const bashTool: ({
|
|
|
991
1025
|
retainedBytes: number;
|
|
992
1026
|
omittedBytes: number;
|
|
993
1027
|
};
|
|
994
|
-
reasonCode?: undefined;
|
|
995
1028
|
recoverable?: undefined;
|
|
996
1029
|
suggestedNextStep?: undefined;
|
|
997
1030
|
background?: undefined;
|
|
@@ -1009,7 +1042,7 @@ export declare const bashTool: ({
|
|
|
1009
1042
|
} & {
|
|
1010
1043
|
execute: import("ai").ToolExecuteFunction<{
|
|
1011
1044
|
command: string;
|
|
1012
|
-
|
|
1045
|
+
purpose: "validation" | "auto";
|
|
1013
1046
|
background: boolean;
|
|
1014
1047
|
timeoutSeconds?: number | undefined;
|
|
1015
1048
|
}, {
|
|
@@ -1026,14 +1059,14 @@ export declare const bashTool: ({
|
|
|
1026
1059
|
suggestedNextStep: string;
|
|
1027
1060
|
background?: undefined;
|
|
1028
1061
|
} | {
|
|
1029
|
-
classification: import("../../core/safety/
|
|
1062
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
1030
1063
|
hint: string;
|
|
1031
1064
|
backgroundId: string;
|
|
1032
1065
|
pid?: number;
|
|
1033
1066
|
command: string;
|
|
1034
1067
|
cwd: string;
|
|
1035
1068
|
startedAt: string;
|
|
1036
|
-
status:
|
|
1069
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
1037
1070
|
code?: number | null;
|
|
1038
1071
|
signal?: NodeJS.Signals | null;
|
|
1039
1072
|
outputHandle: string;
|
|
@@ -1058,18 +1091,22 @@ export declare const bashTool: ({
|
|
|
1058
1091
|
suggestedNextStep: string;
|
|
1059
1092
|
} | {
|
|
1060
1093
|
error?: string | undefined;
|
|
1094
|
+
missingExecutableStep?: string | undefined;
|
|
1095
|
+
reasonCode?: "missing_executable" | undefined;
|
|
1096
|
+
missingExecutable?: string | undefined;
|
|
1061
1097
|
ok: boolean;
|
|
1062
1098
|
code: number | null;
|
|
1063
1099
|
command: string;
|
|
1100
|
+
purpose: "validation" | "auto";
|
|
1064
1101
|
cwd: string;
|
|
1065
|
-
classification: import("../../core/safety/
|
|
1102
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
1066
1103
|
durationMs: number;
|
|
1067
1104
|
timedOut: boolean;
|
|
1068
1105
|
aborted: boolean;
|
|
1069
1106
|
signal: NodeJS.Signals | null;
|
|
1070
1107
|
forcedTermination: boolean;
|
|
1071
|
-
stdout: import("../../core/
|
|
1072
|
-
stderr: import("../../core/
|
|
1108
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
1109
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
1073
1110
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
1074
1111
|
stdoutBytes: {
|
|
1075
1112
|
totalBytes: number;
|
|
@@ -1081,7 +1118,6 @@ export declare const bashTool: ({
|
|
|
1081
1118
|
retainedBytes: number;
|
|
1082
1119
|
omittedBytes: number;
|
|
1083
1120
|
};
|
|
1084
|
-
reasonCode?: undefined;
|
|
1085
1121
|
recoverable?: undefined;
|
|
1086
1122
|
suggestedNextStep?: undefined;
|
|
1087
1123
|
background?: undefined;
|
|
@@ -1092,14 +1128,14 @@ export declare const bashTool: ({
|
|
|
1092
1128
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
1093
1129
|
inputSchema: import("ai").FlexibleSchema<{
|
|
1094
1130
|
command: string;
|
|
1095
|
-
|
|
1131
|
+
purpose: "validation" | "auto";
|
|
1096
1132
|
background: boolean;
|
|
1097
1133
|
timeoutSeconds?: number | undefined;
|
|
1098
1134
|
}>;
|
|
1099
1135
|
contextSchema?: import("ai").FlexibleSchema<import("./toolContext.js").HazeToolContext> | undefined;
|
|
1100
1136
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
1101
1137
|
command: string;
|
|
1102
|
-
|
|
1138
|
+
purpose: "validation" | "auto";
|
|
1103
1139
|
background: boolean;
|
|
1104
1140
|
timeoutSeconds?: number | undefined;
|
|
1105
1141
|
}, NoInfer<import("./toolContext.js").HazeToolContext>> | undefined;
|
|
@@ -1110,7 +1146,7 @@ export declare const bashTool: ({
|
|
|
1110
1146
|
onInputAvailable?: ((options: {
|
|
1111
1147
|
input: {
|
|
1112
1148
|
command: string;
|
|
1113
|
-
|
|
1149
|
+
purpose: "validation" | "auto";
|
|
1114
1150
|
background: boolean;
|
|
1115
1151
|
timeoutSeconds?: number | undefined;
|
|
1116
1152
|
};
|
|
@@ -1119,7 +1155,7 @@ export declare const bashTool: ({
|
|
|
1119
1155
|
toolCallId: string;
|
|
1120
1156
|
input: {
|
|
1121
1157
|
command: string;
|
|
1122
|
-
|
|
1158
|
+
purpose: "validation" | "auto";
|
|
1123
1159
|
background: boolean;
|
|
1124
1160
|
timeoutSeconds?: number | undefined;
|
|
1125
1161
|
};
|
|
@@ -1137,14 +1173,14 @@ export declare const bashTool: ({
|
|
|
1137
1173
|
suggestedNextStep: string;
|
|
1138
1174
|
background?: undefined;
|
|
1139
1175
|
} | {
|
|
1140
|
-
classification: import("../../core/safety/
|
|
1176
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
1141
1177
|
hint: string;
|
|
1142
1178
|
backgroundId: string;
|
|
1143
1179
|
pid?: number;
|
|
1144
1180
|
command: string;
|
|
1145
1181
|
cwd: string;
|
|
1146
1182
|
startedAt: string;
|
|
1147
|
-
status:
|
|
1183
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
1148
1184
|
code?: number | null;
|
|
1149
1185
|
signal?: NodeJS.Signals | null;
|
|
1150
1186
|
outputHandle: string;
|
|
@@ -1169,18 +1205,22 @@ export declare const bashTool: ({
|
|
|
1169
1205
|
suggestedNextStep: string;
|
|
1170
1206
|
} | {
|
|
1171
1207
|
error?: string | undefined;
|
|
1208
|
+
missingExecutableStep?: string | undefined;
|
|
1209
|
+
reasonCode?: "missing_executable" | undefined;
|
|
1210
|
+
missingExecutable?: string | undefined;
|
|
1172
1211
|
ok: boolean;
|
|
1173
1212
|
code: number | null;
|
|
1174
1213
|
command: string;
|
|
1214
|
+
purpose: "validation" | "auto";
|
|
1175
1215
|
cwd: string;
|
|
1176
|
-
classification: import("../../core/safety/
|
|
1216
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
1177
1217
|
durationMs: number;
|
|
1178
1218
|
timedOut: boolean;
|
|
1179
1219
|
aborted: boolean;
|
|
1180
1220
|
signal: NodeJS.Signals | null;
|
|
1181
1221
|
forcedTermination: boolean;
|
|
1182
|
-
stdout: import("../../core/
|
|
1183
|
-
stderr: import("../../core/
|
|
1222
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
1223
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
1184
1224
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
1185
1225
|
stdoutBytes: {
|
|
1186
1226
|
totalBytes: number;
|
|
@@ -1192,7 +1232,6 @@ export declare const bashTool: ({
|
|
|
1192
1232
|
retainedBytes: number;
|
|
1193
1233
|
omittedBytes: number;
|
|
1194
1234
|
};
|
|
1195
|
-
reasonCode?: undefined;
|
|
1196
1235
|
recoverable?: undefined;
|
|
1197
1236
|
suggestedNextStep?: undefined;
|
|
1198
1237
|
background?: undefined;
|
|
@@ -1213,14 +1252,14 @@ export declare const bashTool: ({
|
|
|
1213
1252
|
suggestedNextStep: string;
|
|
1214
1253
|
background?: undefined;
|
|
1215
1254
|
} | {
|
|
1216
|
-
classification: import("../../core/safety/
|
|
1255
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
1217
1256
|
hint: string;
|
|
1218
1257
|
backgroundId: string;
|
|
1219
1258
|
pid?: number;
|
|
1220
1259
|
command: string;
|
|
1221
1260
|
cwd: string;
|
|
1222
1261
|
startedAt: string;
|
|
1223
|
-
status:
|
|
1262
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
1224
1263
|
code?: number | null;
|
|
1225
1264
|
signal?: NodeJS.Signals | null;
|
|
1226
1265
|
outputHandle: string;
|
|
@@ -1245,18 +1284,22 @@ export declare const bashTool: ({
|
|
|
1245
1284
|
suggestedNextStep: string;
|
|
1246
1285
|
} | {
|
|
1247
1286
|
error?: string | undefined;
|
|
1287
|
+
missingExecutableStep?: string | undefined;
|
|
1288
|
+
reasonCode?: "missing_executable" | undefined;
|
|
1289
|
+
missingExecutable?: string | undefined;
|
|
1248
1290
|
ok: boolean;
|
|
1249
1291
|
code: number | null;
|
|
1250
1292
|
command: string;
|
|
1293
|
+
purpose: "validation" | "auto";
|
|
1251
1294
|
cwd: string;
|
|
1252
|
-
classification: import("../../core/safety/
|
|
1295
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
1253
1296
|
durationMs: number;
|
|
1254
1297
|
timedOut: boolean;
|
|
1255
1298
|
aborted: boolean;
|
|
1256
1299
|
signal: NodeJS.Signals | null;
|
|
1257
1300
|
forcedTermination: boolean;
|
|
1258
|
-
stdout: import("../../core/
|
|
1259
|
-
stderr: import("../../core/
|
|
1301
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
1302
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
1260
1303
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
1261
1304
|
stdoutBytes: {
|
|
1262
1305
|
totalBytes: number;
|
|
@@ -1268,14 +1311,13 @@ export declare const bashTool: ({
|
|
|
1268
1311
|
retainedBytes: number;
|
|
1269
1312
|
omittedBytes: number;
|
|
1270
1313
|
};
|
|
1271
|
-
reasonCode?: undefined;
|
|
1272
1314
|
recoverable?: undefined;
|
|
1273
1315
|
suggestedNextStep?: undefined;
|
|
1274
1316
|
background?: undefined;
|
|
1275
1317
|
}> | undefined;
|
|
1276
1318
|
execute: import("ai").ToolExecuteFunction<{
|
|
1277
1319
|
command: string;
|
|
1278
|
-
|
|
1320
|
+
purpose: "validation" | "auto";
|
|
1279
1321
|
background: boolean;
|
|
1280
1322
|
timeoutSeconds?: number | undefined;
|
|
1281
1323
|
}, {
|
|
@@ -1292,14 +1334,14 @@ export declare const bashTool: ({
|
|
|
1292
1334
|
suggestedNextStep: string;
|
|
1293
1335
|
background?: undefined;
|
|
1294
1336
|
} | {
|
|
1295
|
-
classification: import("../../core/safety/
|
|
1337
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
1296
1338
|
hint: string;
|
|
1297
1339
|
backgroundId: string;
|
|
1298
1340
|
pid?: number;
|
|
1299
1341
|
command: string;
|
|
1300
1342
|
cwd: string;
|
|
1301
1343
|
startedAt: string;
|
|
1302
|
-
status:
|
|
1344
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
1303
1345
|
code?: number | null;
|
|
1304
1346
|
signal?: NodeJS.Signals | null;
|
|
1305
1347
|
outputHandle: string;
|
|
@@ -1324,18 +1366,22 @@ export declare const bashTool: ({
|
|
|
1324
1366
|
suggestedNextStep: string;
|
|
1325
1367
|
} | {
|
|
1326
1368
|
error?: string | undefined;
|
|
1369
|
+
missingExecutableStep?: string | undefined;
|
|
1370
|
+
reasonCode?: "missing_executable" | undefined;
|
|
1371
|
+
missingExecutable?: string | undefined;
|
|
1327
1372
|
ok: boolean;
|
|
1328
1373
|
code: number | null;
|
|
1329
1374
|
command: string;
|
|
1375
|
+
purpose: "validation" | "auto";
|
|
1330
1376
|
cwd: string;
|
|
1331
|
-
classification: import("../../core/safety/
|
|
1377
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
1332
1378
|
durationMs: number;
|
|
1333
1379
|
timedOut: boolean;
|
|
1334
1380
|
aborted: boolean;
|
|
1335
1381
|
signal: NodeJS.Signals | null;
|
|
1336
1382
|
forcedTermination: boolean;
|
|
1337
|
-
stdout: import("../../core/
|
|
1338
|
-
stderr: import("../../core/
|
|
1383
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
1384
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
1339
1385
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
1340
1386
|
stdoutBytes: {
|
|
1341
1387
|
totalBytes: number;
|
|
@@ -1347,7 +1393,6 @@ export declare const bashTool: ({
|
|
|
1347
1393
|
retainedBytes: number;
|
|
1348
1394
|
omittedBytes: number;
|
|
1349
1395
|
};
|
|
1350
|
-
reasonCode?: undefined;
|
|
1351
1396
|
recoverable?: undefined;
|
|
1352
1397
|
suggestedNextStep?: undefined;
|
|
1353
1398
|
background?: undefined;
|
|
@@ -1365,7 +1410,7 @@ export declare const bashTool: ({
|
|
|
1365
1410
|
} & {
|
|
1366
1411
|
execute: import("ai").ToolExecuteFunction<{
|
|
1367
1412
|
command: string;
|
|
1368
|
-
|
|
1413
|
+
purpose: "validation" | "auto";
|
|
1369
1414
|
background: boolean;
|
|
1370
1415
|
timeoutSeconds?: number | undefined;
|
|
1371
1416
|
}, {
|
|
@@ -1382,14 +1427,14 @@ export declare const bashTool: ({
|
|
|
1382
1427
|
suggestedNextStep: string;
|
|
1383
1428
|
background?: undefined;
|
|
1384
1429
|
} | {
|
|
1385
|
-
classification: import("../../core/safety/
|
|
1430
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
1386
1431
|
hint: string;
|
|
1387
1432
|
backgroundId: string;
|
|
1388
1433
|
pid?: number;
|
|
1389
1434
|
command: string;
|
|
1390
1435
|
cwd: string;
|
|
1391
1436
|
startedAt: string;
|
|
1392
|
-
status:
|
|
1437
|
+
status: "failed" | "killed" | "running" | "exited";
|
|
1393
1438
|
code?: number | null;
|
|
1394
1439
|
signal?: NodeJS.Signals | null;
|
|
1395
1440
|
outputHandle: string;
|
|
@@ -1414,18 +1459,22 @@ export declare const bashTool: ({
|
|
|
1414
1459
|
suggestedNextStep: string;
|
|
1415
1460
|
} | {
|
|
1416
1461
|
error?: string | undefined;
|
|
1462
|
+
missingExecutableStep?: string | undefined;
|
|
1463
|
+
reasonCode?: "missing_executable" | undefined;
|
|
1464
|
+
missingExecutable?: string | undefined;
|
|
1417
1465
|
ok: boolean;
|
|
1418
1466
|
code: number | null;
|
|
1419
1467
|
command: string;
|
|
1468
|
+
purpose: "validation" | "auto";
|
|
1420
1469
|
cwd: string;
|
|
1421
|
-
classification: import("../../core/safety/
|
|
1470
|
+
classification: import("../../core/safety/shellClassifier.js").ShellClassification;
|
|
1422
1471
|
durationMs: number;
|
|
1423
1472
|
timedOut: boolean;
|
|
1424
1473
|
aborted: boolean;
|
|
1425
1474
|
signal: NodeJS.Signals | null;
|
|
1426
1475
|
forcedTermination: boolean;
|
|
1427
|
-
stdout: import("../../core/
|
|
1428
|
-
stderr: import("../../core/
|
|
1476
|
+
stdout: import("../../core/shellOutput/types.js").StreamReduction;
|
|
1477
|
+
stderr: import("../../core/shellOutput/types.js").StreamReduction;
|
|
1429
1478
|
validationSummary: import("../toolResultTypes.js").ValidationSummary | undefined;
|
|
1430
1479
|
stdoutBytes: {
|
|
1431
1480
|
totalBytes: number;
|
|
@@ -1437,7 +1486,6 @@ export declare const bashTool: ({
|
|
|
1437
1486
|
retainedBytes: number;
|
|
1438
1487
|
omittedBytes: number;
|
|
1439
1488
|
};
|
|
1440
|
-
reasonCode?: undefined;
|
|
1441
1489
|
recoverable?: undefined;
|
|
1442
1490
|
suggestedNextStep?: undefined;
|
|
1443
1491
|
background?: undefined;
|