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