@denizokcu/haze 1.7.11 → 1.8.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 +56 -0
- package/README.md +142 -102
- package/SECURITY.md +1 -1
- package/assets/graph-grammars/NOTICE.md +21 -0
- package/assets/graph-grammars/tree-sitter-javascript.wasm +0 -0
- package/assets/graph-grammars/tree-sitter-tsx.wasm +0 -0
- package/assets/graph-grammars/tree-sitter-typescript.wasm +0 -0
- package/assets/graph-grammars/web-tree-sitter.cjs +4116 -0
- package/assets/graph-grammars/web-tree-sitter.cjs.map +7 -0
- package/assets/graph-grammars/web-tree-sitter.js +4056 -0
- package/assets/graph-grammars/web-tree-sitter.js.map +7 -0
- package/assets/graph-grammars/web-tree-sitter.wasm +0 -0
- package/assets/graph-grammars/web-tree-sitter.wasm.map +55 -0
- package/bin/haze.js +47 -19
- package/dist/buildInfo.json +3 -3
- package/dist/cli/chat/BusyBar.d.ts +1 -2
- package/dist/cli/chat/ChatHeader.d.ts +6 -0
- package/dist/cli/chat/ChatHeader.js +11 -0
- package/dist/cli/chat/ChatScreen.d.ts +16 -0
- package/dist/cli/chat/ChatScreen.js +399 -0
- package/dist/cli/chat/ChatScreenView.d.ts +68 -0
- package/dist/cli/chat/ChatScreenView.js +47 -0
- package/dist/cli/chat/LiveTail.d.ts +11 -0
- package/dist/cli/chat/LiveTail.js +26 -0
- package/dist/cli/chat/TaskBar.d.ts +3 -2
- package/dist/cli/chat/TaskBar.js +4 -0
- package/dist/cli/chat/agentTurnRunner.d.ts +12 -0
- package/dist/cli/chat/agentTurnRunner.js +177 -0
- package/dist/cli/chat/busyIndicator.js +9 -5
- package/dist/cli/chat/chatMetrics.d.ts +7 -0
- package/dist/cli/chat/chatMetrics.js +15 -1
- package/dist/cli/chat/chatViewModel.d.ts +85 -0
- package/dist/cli/chat/chatViewModel.js +66 -0
- package/dist/cli/chat/fileMentionSuggestions.d.ts +0 -14
- package/dist/cli/chat/fileMentionSuggestions.js +4 -21
- package/dist/cli/chat/inputSuggestions.js +1 -0
- package/dist/cli/chat/liveTheme.d.ts +11 -0
- package/dist/cli/chat/liveTheme.js +26 -0
- package/dist/cli/chat/messageFinalize.d.ts +4 -0
- package/dist/cli/chat/messageFinalize.js +8 -0
- package/dist/cli/chat/messages.js +1 -1
- package/dist/cli/chat/pickerOpeners.d.ts +23 -0
- package/dist/cli/chat/pickerOpeners.js +36 -0
- package/dist/cli/chat/promptSessionState.d.ts +11 -0
- package/dist/cli/chat/promptSessionState.js +39 -0
- package/dist/cli/chat/renderMetrics.d.ts +8 -0
- package/dist/cli/chat/renderMetrics.js +14 -0
- package/dist/cli/chat/resizeGuard.d.ts +11 -0
- package/dist/cli/chat/resizeGuard.js +25 -0
- package/dist/cli/chat/screenDeps.d.ts +116 -0
- package/dist/cli/chat/screenDeps.js +1 -0
- package/dist/cli/chat/sessionLifecycle.d.ts +2 -0
- package/dist/cli/chat/sessionLifecycle.js +6 -2
- package/dist/cli/chat/sessionRecorder.js +4 -1
- package/dist/cli/chat/settingsSelection.d.ts +33 -0
- package/dist/cli/chat/settingsSelection.js +46 -0
- package/dist/cli/chat/skillNotices.d.ts +18 -0
- package/dist/cli/chat/skillNotices.js +26 -0
- package/dist/cli/chat/startupInfo.js +1 -1
- package/dist/cli/chat/startupSequence.d.ts +2 -0
- package/dist/cli/chat/startupSequence.js +6 -0
- package/dist/cli/chat/submitPipeline.d.ts +8 -0
- package/dist/cli/chat/submitPipeline.js +141 -0
- package/dist/cli/chat/terminalControl.js +1 -1
- package/dist/cli/chat/toolSummaries.d.ts +29 -0
- package/dist/cli/chat/toolSummaries.js +268 -0
- package/dist/cli/chat/turnState.d.ts +8 -0
- package/dist/cli/chat/turnState.js +1 -0
- package/dist/cli/chat/userCommandFlow.d.ts +21 -0
- package/dist/cli/chat/userCommandFlow.js +66 -0
- package/dist/cli/chat/userCommandRunner.d.ts +14 -0
- package/dist/cli/chat/userCommandRunner.js +56 -0
- package/dist/cli/chat/wizard/providerHandlers.js +19 -2
- package/dist/cli/chat/wizardTrail.d.ts +22 -0
- package/dist/cli/chat/wizardTrail.js +55 -0
- package/dist/cli/commands/chat.d.ts +1 -13
- package/dist/cli/commands/chat.js +10 -795
- package/dist/cli/commands/commandHelp.js +11 -6
- package/dist/cli/commands/commandSuggest.d.ts +2 -0
- package/dist/cli/commands/commandSuggest.js +35 -0
- package/dist/cli/commands/commands.js +12 -3
- package/dist/cli/commands/formatters.d.ts +1 -23
- package/dist/cli/commands/formatters.js +3 -224
- package/dist/cli/commands/graphCommand.d.ts +2 -0
- package/dist/cli/commands/graphCommand.js +60 -0
- package/dist/cli/commands/initCommand.js +14 -0
- package/dist/cli/commands/modelCommand.js +11 -7
- package/dist/cli/commands/reasoningCommand.js +3 -3
- package/dist/cli/commands/runCommand.js +6 -2
- package/dist/cli/commands/streaming/agentAttempt.js +11 -1
- package/dist/cli/commands/streaming/attemptLifecycle.js +1 -0
- package/dist/cli/commands/streaming/attemptOutcome.js +8 -3
- package/dist/cli/commands/streaming/attemptSetup.d.ts +4 -0
- package/dist/cli/commands/streaming/attemptSetup.js +34 -5
- package/dist/cli/commands/streaming/goalCheckpoint.d.ts +1 -1
- package/dist/cli/commands/streaming/goalSupervisor.js +5 -3
- package/dist/cli/commands/streaming/prepareStep.js +1 -0
- package/dist/cli/commands/streaming/stepProjection.d.ts +59 -0
- package/dist/cli/commands/streaming/stepProjection.js +54 -0
- package/dist/cli/commands/streaming/streamLoop.d.ts +2 -0
- package/dist/cli/commands/streaming/streamLoop.js +34 -23
- package/dist/cli/commands/streaming/toolGroupRenderer.js +1 -1
- package/dist/cli/commands/streaming/toolPartHandlers.js +8 -2
- package/dist/cli/commands/streaming.d.ts +3 -1
- package/dist/cli/commands/streaming.js +5 -0
- package/dist/cli/commands/wizardFlow.d.ts +2 -0
- package/dist/cli/commands/wizardFlow.js +3 -0
- package/dist/cli/index.js +8 -4
- package/dist/cli/terminalTitle.js +9 -3
- package/dist/config/contextFiles.d.ts +2 -5
- package/dist/config/contextFiles.js +1 -1
- package/dist/config/inputHistory.js +2 -2
- package/dist/config/providerAuth.js +2 -2
- package/dist/config/providerModelFacts.js +5 -0
- package/dist/config/providerPresets.js +1 -1
- package/dist/config/settings.d.ts +7 -0
- package/dist/config/settings.js +9 -2
- package/dist/config/updateCheck.js +2 -2
- package/dist/core/agent/compaction.d.ts +1 -0
- package/dist/core/agent/compaction.js +3 -0
- package/dist/core/agent/completionController.d.ts +1 -1
- package/dist/core/agent/contextBudget.d.ts +1 -1
- package/dist/core/agent/goalPolicy.js +8 -2
- package/dist/core/agent/overflow.js +5 -0
- package/dist/core/agent/toolCapabilities.js +14 -0
- package/dist/core/agent/userCommands.d.ts +53 -0
- package/dist/core/agent/userCommands.js +116 -0
- package/dist/core/agent/workState.d.ts +3 -1
- package/dist/core/agent/workState.js +57 -26
- package/dist/core/contextFileTypes.d.ts +12 -0
- package/dist/core/contextFileTypes.js +1 -0
- package/dist/core/graph/analyze.d.ts +61 -0
- package/dist/core/graph/analyze.js +274 -0
- package/dist/core/graph/buildGraph.d.ts +44 -0
- package/dist/core/graph/buildGraph.js +290 -0
- package/dist/core/graph/digest.d.ts +2 -0
- package/dist/core/graph/digest.js +40 -0
- package/dist/core/graph/extract.d.ts +58 -0
- package/dist/core/graph/extract.js +394 -0
- package/dist/core/graph/model.d.ts +63 -0
- package/dist/core/graph/model.js +96 -0
- package/dist/core/graph/query.d.ts +69 -0
- package/dist/core/graph/query.js +391 -0
- package/dist/core/graph/store.d.ts +64 -0
- package/dist/core/graph/store.js +171 -0
- package/dist/core/limits.d.ts +2 -0
- package/dist/core/limits.js +2 -0
- package/dist/core/log/llmLog.js +2 -2
- package/dist/{config → core/persistence}/privateStorage.js +1 -1
- package/dist/core/process/runBoundedProcess.d.ts +7 -4
- package/dist/core/process/runBoundedProcess.js +22 -11
- package/dist/core/safety/redaction.d.ts +2 -0
- package/dist/core/safety/redaction.js +26 -5
- package/dist/core/safety/secretPaths.js +12 -3
- package/dist/core/safety/untrustedEnvelopes.d.ts +6 -0
- package/dist/core/safety/untrustedEnvelopes.js +17 -2
- package/dist/core/safety/urlGuard.js +2 -0
- package/dist/core/session/sessionStore.d.ts +8 -1
- package/dist/core/session/sessionStore.js +15 -4
- package/dist/core/shellOutput/reducers/validation.d.ts +1 -1
- package/dist/core/shellOutput/types.d.ts +1 -1
- package/dist/core/subagent/executionProfiles.js +4 -4
- package/dist/core/tasks/taskStorage.js +11 -1
- package/dist/{llm → core}/toolResultTypes.d.ts +1 -1
- package/dist/core/validation/outputParser.d.ts +1 -1
- package/dist/core/validation/outputParser.js +16 -8
- package/dist/llm/hazeTools.d.ts +2 -12426
- package/dist/llm/hazeTools.js +4 -0
- package/dist/llm/lsp/pool.js +1 -1
- package/dist/llm/lsp/workspaceEdit.d.ts +1 -1
- package/dist/llm/lspTools.d.ts +3 -12622
- package/dist/llm/requestContext.d.ts +6 -0
- package/dist/llm/requestContext.js +28 -7
- package/dist/llm/subagentRunner.d.ts +2 -308
- package/dist/llm/systemPrompt.js +17 -7
- package/dist/llm/toolGroups.d.ts +534 -0
- package/dist/llm/toolGroups.js +57 -0
- package/dist/llm/tools/editMatch.d.ts +1 -1
- package/dist/llm/tools/failures.d.ts +1 -1
- package/dist/llm/tools/fetchTool.d.ts +2 -1221
- package/dist/llm/tools/fileToolShared.d.ts +1 -1
- package/dist/llm/tools/fileToolShared.js +1 -1
- package/dist/llm/tools/fileTools.d.ts +2 -7768
- package/dist/llm/tools/fileTools.js +1 -1
- package/dist/llm/tools/gitTools.d.ts +12 -0
- package/dist/llm/tools/gitTools.js +527 -0
- package/dist/llm/tools/graphAdvisory.d.ts +22 -0
- package/dist/llm/tools/graphAdvisory.js +68 -0
- package/dist/llm/tools/graphTools.d.ts +13 -0
- package/dist/llm/tools/graphTools.js +195 -0
- package/dist/llm/tools/processTool.d.ts +2 -1081
- package/dist/llm/tools/readRecovery.d.ts +1 -1
- package/dist/llm/tools/replaceInFiles.d.ts +1 -1
- package/dist/llm/tools/replaceInFiles.js +1 -1
- package/dist/llm/tools/shellTool.d.ts +2 -1513
- package/dist/llm/tools/storedOutputTool.d.ts +2 -355
- package/dist/llm/tools/taskTool.d.ts +2 -489
- package/dist/llm/tools/taskTool.js +4 -1
- package/dist/llm/tools/toolContext.js +29 -11
- package/dist/llm/tools/toolContextState.d.ts +4 -1
- package/dist/llm/tools/toolContextState.js +2 -1
- package/dist/llm/tools/workspaceFile.d.ts +2 -2
- package/dist/llm/tools/workspaceFile.js +10 -5
- package/dist/skills/SkillRegistry.js +1 -1
- package/dist/skills/builder/SkillBuilder.js +1 -1
- package/dist/skills/plugins/installer.js +1 -1
- package/dist/skills/plugins/runtime.js +1 -1
- package/dist/skills/skillTools.js +4 -1
- package/dist/ui/components/MarkdownText.d.ts +14 -0
- package/dist/ui/components/MarkdownText.js +77 -12
- package/dist/ui/components/NativeIndicators.js +5 -1
- package/dist/ui/components/StreamingMarkdownText.d.ts +3 -1
- package/dist/ui/components/StreamingMarkdownText.js +39 -11
- package/dist/ui/components/TextInput.d.ts +1 -2
- package/dist/ui/components/TextInput.js +79 -9
- package/dist/ui/components/WizardChoices.d.ts +1 -2
- package/dist/ui/components/useInputSuggestions.d.ts +1 -1
- package/dist/ui/components/useInputSuggestions.js +1 -1
- package/dist/ui/mentionDetection.d.ts +20 -0
- package/dist/ui/mentionDetection.js +24 -0
- package/dist/ui/terminalColors.d.ts +4 -4
- package/dist/ui/terminalColors.js +23 -6
- package/dist/ui/terminalSanitize.js +8 -3
- package/dist/ui/textGeometry.d.ts +2 -0
- package/dist/ui/textGeometry.js +6 -0
- package/dist/ui/themes/registry.js +33 -33
- package/dist/utils/openPath.js +7 -0
- package/package.json +22 -19
- /package/dist/{llm/tools → core/ignore}/gitIgnore.d.ts +0 -0
- /package/dist/{llm/tools → core/ignore}/gitIgnore.js +0 -0
- /package/dist/{config → core}/paths.d.ts +0 -0
- /package/dist/{config → core}/paths.js +0 -0
- /package/dist/{config → core/persistence}/privateStorage.d.ts +0 -0
- /package/dist/{llm → core}/toolResultTypes.js +0 -0
|
@@ -1,355 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
title?: string;
|
|
4
|
-
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
5
|
-
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
6
|
-
inputSchema: import("ai").FlexibleSchema<{
|
|
7
|
-
handle: string;
|
|
8
|
-
offset: number;
|
|
9
|
-
limit: number;
|
|
10
|
-
contextLines: number;
|
|
11
|
-
query?: string | undefined;
|
|
12
|
-
}>;
|
|
13
|
-
contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
|
|
14
|
-
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
15
|
-
handle: string;
|
|
16
|
-
offset: number;
|
|
17
|
-
limit: number;
|
|
18
|
-
contextLines: number;
|
|
19
|
-
query?: string | undefined;
|
|
20
|
-
}, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
|
|
21
|
-
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
|
|
22
|
-
onInputDelta?: ((options: {
|
|
23
|
-
inputTextDelta: string;
|
|
24
|
-
} & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
|
|
25
|
-
onInputAvailable?: ((options: {
|
|
26
|
-
input: {
|
|
27
|
-
handle: string;
|
|
28
|
-
offset: number;
|
|
29
|
-
limit: number;
|
|
30
|
-
contextLines: number;
|
|
31
|
-
query?: string | undefined;
|
|
32
|
-
};
|
|
33
|
-
} & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
|
|
34
|
-
toModelOutput?: ((options: {
|
|
35
|
-
toolCallId: string;
|
|
36
|
-
input: {
|
|
37
|
-
handle: string;
|
|
38
|
-
offset: number;
|
|
39
|
-
limit: number;
|
|
40
|
-
contextLines: number;
|
|
41
|
-
query?: string | undefined;
|
|
42
|
-
};
|
|
43
|
-
output: NoInfer<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
44
|
-
ok: boolean;
|
|
45
|
-
error: string;
|
|
46
|
-
}>;
|
|
47
|
-
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
48
|
-
} & {
|
|
49
|
-
outputSchema?: import("ai").FlexibleSchema<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
50
|
-
ok: boolean;
|
|
51
|
-
error: string;
|
|
52
|
-
}> | undefined;
|
|
53
|
-
execute: import("ai").ToolExecuteFunction<{
|
|
54
|
-
handle: string;
|
|
55
|
-
offset: number;
|
|
56
|
-
limit: number;
|
|
57
|
-
contextLines: number;
|
|
58
|
-
query?: string | undefined;
|
|
59
|
-
}, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
60
|
-
ok: boolean;
|
|
61
|
-
error: string;
|
|
62
|
-
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
63
|
-
} & {
|
|
64
|
-
description?: string | ((options: {
|
|
65
|
-
context: NoInfer<import("@ai-sdk/provider-utils").Context>;
|
|
66
|
-
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
67
|
-
}) => string) | undefined;
|
|
68
|
-
strict?: boolean;
|
|
69
|
-
inputExamples?: {
|
|
70
|
-
input: NoInfer<{
|
|
71
|
-
handle: string;
|
|
72
|
-
offset: number;
|
|
73
|
-
limit: number;
|
|
74
|
-
contextLines: number;
|
|
75
|
-
query?: string | undefined;
|
|
76
|
-
}>;
|
|
77
|
-
}[] | undefined;
|
|
78
|
-
id?: never;
|
|
79
|
-
isProviderExecuted?: never;
|
|
80
|
-
args?: never;
|
|
81
|
-
supportsDeferredResults?: never;
|
|
82
|
-
} & {
|
|
83
|
-
type?: undefined | "function";
|
|
84
|
-
} & {
|
|
85
|
-
execute: import("ai").ToolExecuteFunction<{
|
|
86
|
-
handle: string;
|
|
87
|
-
offset: number;
|
|
88
|
-
limit: number;
|
|
89
|
-
contextLines: number;
|
|
90
|
-
query?: string | undefined;
|
|
91
|
-
}, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
92
|
-
ok: boolean;
|
|
93
|
-
error: string;
|
|
94
|
-
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
95
|
-
}) | ({
|
|
96
|
-
deferLoading?: boolean;
|
|
97
|
-
title?: string;
|
|
98
|
-
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
99
|
-
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
100
|
-
inputSchema: import("ai").FlexibleSchema<{
|
|
101
|
-
handle: string;
|
|
102
|
-
offset: number;
|
|
103
|
-
limit: number;
|
|
104
|
-
contextLines: number;
|
|
105
|
-
query?: string | undefined;
|
|
106
|
-
}>;
|
|
107
|
-
contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
|
|
108
|
-
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
109
|
-
handle: string;
|
|
110
|
-
offset: number;
|
|
111
|
-
limit: number;
|
|
112
|
-
contextLines: number;
|
|
113
|
-
query?: string | undefined;
|
|
114
|
-
}, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
|
|
115
|
-
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
|
|
116
|
-
onInputDelta?: ((options: {
|
|
117
|
-
inputTextDelta: string;
|
|
118
|
-
} & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
|
|
119
|
-
onInputAvailable?: ((options: {
|
|
120
|
-
input: {
|
|
121
|
-
handle: string;
|
|
122
|
-
offset: number;
|
|
123
|
-
limit: number;
|
|
124
|
-
contextLines: number;
|
|
125
|
-
query?: string | undefined;
|
|
126
|
-
};
|
|
127
|
-
} & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
|
|
128
|
-
toModelOutput?: ((options: {
|
|
129
|
-
toolCallId: string;
|
|
130
|
-
input: {
|
|
131
|
-
handle: string;
|
|
132
|
-
offset: number;
|
|
133
|
-
limit: number;
|
|
134
|
-
contextLines: number;
|
|
135
|
-
query?: string | undefined;
|
|
136
|
-
};
|
|
137
|
-
output: NoInfer<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
138
|
-
ok: boolean;
|
|
139
|
-
error: string;
|
|
140
|
-
}>;
|
|
141
|
-
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
142
|
-
} & {
|
|
143
|
-
outputSchema?: import("ai").FlexibleSchema<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
144
|
-
ok: boolean;
|
|
145
|
-
error: string;
|
|
146
|
-
}> | undefined;
|
|
147
|
-
execute: import("ai").ToolExecuteFunction<{
|
|
148
|
-
handle: string;
|
|
149
|
-
offset: number;
|
|
150
|
-
limit: number;
|
|
151
|
-
contextLines: number;
|
|
152
|
-
query?: string | undefined;
|
|
153
|
-
}, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
154
|
-
ok: boolean;
|
|
155
|
-
error: string;
|
|
156
|
-
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
157
|
-
} & {
|
|
158
|
-
description?: string | ((options: {
|
|
159
|
-
context: NoInfer<import("@ai-sdk/provider-utils").Context>;
|
|
160
|
-
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
161
|
-
}) => string) | undefined;
|
|
162
|
-
strict?: boolean;
|
|
163
|
-
inputExamples?: {
|
|
164
|
-
input: NoInfer<{
|
|
165
|
-
handle: string;
|
|
166
|
-
offset: number;
|
|
167
|
-
limit: number;
|
|
168
|
-
contextLines: number;
|
|
169
|
-
query?: string | undefined;
|
|
170
|
-
}>;
|
|
171
|
-
}[] | undefined;
|
|
172
|
-
id?: never;
|
|
173
|
-
isProviderExecuted?: never;
|
|
174
|
-
args?: never;
|
|
175
|
-
supportsDeferredResults?: never;
|
|
176
|
-
} & {
|
|
177
|
-
type: "dynamic";
|
|
178
|
-
} & {
|
|
179
|
-
execute: import("ai").ToolExecuteFunction<{
|
|
180
|
-
handle: string;
|
|
181
|
-
offset: number;
|
|
182
|
-
limit: number;
|
|
183
|
-
contextLines: number;
|
|
184
|
-
query?: string | undefined;
|
|
185
|
-
}, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
186
|
-
ok: boolean;
|
|
187
|
-
error: string;
|
|
188
|
-
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
189
|
-
}) | ({
|
|
190
|
-
deferLoading?: boolean;
|
|
191
|
-
title?: string;
|
|
192
|
-
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
193
|
-
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
194
|
-
inputSchema: import("ai").FlexibleSchema<{
|
|
195
|
-
handle: string;
|
|
196
|
-
offset: number;
|
|
197
|
-
limit: number;
|
|
198
|
-
contextLines: number;
|
|
199
|
-
query?: string | undefined;
|
|
200
|
-
}>;
|
|
201
|
-
contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
|
|
202
|
-
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
203
|
-
handle: string;
|
|
204
|
-
offset: number;
|
|
205
|
-
limit: number;
|
|
206
|
-
contextLines: number;
|
|
207
|
-
query?: string | undefined;
|
|
208
|
-
}, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
|
|
209
|
-
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
|
|
210
|
-
onInputDelta?: ((options: {
|
|
211
|
-
inputTextDelta: string;
|
|
212
|
-
} & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
|
|
213
|
-
onInputAvailable?: ((options: {
|
|
214
|
-
input: {
|
|
215
|
-
handle: string;
|
|
216
|
-
offset: number;
|
|
217
|
-
limit: number;
|
|
218
|
-
contextLines: number;
|
|
219
|
-
query?: string | undefined;
|
|
220
|
-
};
|
|
221
|
-
} & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
|
|
222
|
-
toModelOutput?: ((options: {
|
|
223
|
-
toolCallId: string;
|
|
224
|
-
input: {
|
|
225
|
-
handle: string;
|
|
226
|
-
offset: number;
|
|
227
|
-
limit: number;
|
|
228
|
-
contextLines: number;
|
|
229
|
-
query?: string | undefined;
|
|
230
|
-
};
|
|
231
|
-
output: NoInfer<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
232
|
-
ok: boolean;
|
|
233
|
-
error: string;
|
|
234
|
-
}>;
|
|
235
|
-
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
236
|
-
} & {
|
|
237
|
-
outputSchema?: import("ai").FlexibleSchema<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
238
|
-
ok: boolean;
|
|
239
|
-
error: string;
|
|
240
|
-
}> | undefined;
|
|
241
|
-
execute: import("ai").ToolExecuteFunction<{
|
|
242
|
-
handle: string;
|
|
243
|
-
offset: number;
|
|
244
|
-
limit: number;
|
|
245
|
-
contextLines: number;
|
|
246
|
-
query?: string | undefined;
|
|
247
|
-
}, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
248
|
-
ok: boolean;
|
|
249
|
-
error: string;
|
|
250
|
-
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
251
|
-
} & {
|
|
252
|
-
type: "provider";
|
|
253
|
-
id: `${string}.${string}`;
|
|
254
|
-
args: Record<string, unknown>;
|
|
255
|
-
description?: never;
|
|
256
|
-
strict?: never;
|
|
257
|
-
inputExamples?: never;
|
|
258
|
-
} & {
|
|
259
|
-
isProviderExecuted: false;
|
|
260
|
-
supportsDeferredResults?: never;
|
|
261
|
-
} & {
|
|
262
|
-
execute: import("ai").ToolExecuteFunction<{
|
|
263
|
-
handle: string;
|
|
264
|
-
offset: number;
|
|
265
|
-
limit: number;
|
|
266
|
-
contextLines: number;
|
|
267
|
-
query?: string | undefined;
|
|
268
|
-
}, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
269
|
-
ok: boolean;
|
|
270
|
-
error: string;
|
|
271
|
-
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
272
|
-
}) | ({
|
|
273
|
-
deferLoading?: boolean;
|
|
274
|
-
title?: string;
|
|
275
|
-
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
276
|
-
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
277
|
-
inputSchema: import("ai").FlexibleSchema<{
|
|
278
|
-
handle: string;
|
|
279
|
-
offset: number;
|
|
280
|
-
limit: number;
|
|
281
|
-
contextLines: number;
|
|
282
|
-
query?: string | undefined;
|
|
283
|
-
}>;
|
|
284
|
-
contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
|
|
285
|
-
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
286
|
-
handle: string;
|
|
287
|
-
offset: number;
|
|
288
|
-
limit: number;
|
|
289
|
-
contextLines: number;
|
|
290
|
-
query?: string | undefined;
|
|
291
|
-
}, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
|
|
292
|
-
onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
|
|
293
|
-
onInputDelta?: ((options: {
|
|
294
|
-
inputTextDelta: string;
|
|
295
|
-
} & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
|
|
296
|
-
onInputAvailable?: ((options: {
|
|
297
|
-
input: {
|
|
298
|
-
handle: string;
|
|
299
|
-
offset: number;
|
|
300
|
-
limit: number;
|
|
301
|
-
contextLines: number;
|
|
302
|
-
query?: string | undefined;
|
|
303
|
-
};
|
|
304
|
-
} & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
|
|
305
|
-
toModelOutput?: ((options: {
|
|
306
|
-
toolCallId: string;
|
|
307
|
-
input: {
|
|
308
|
-
handle: string;
|
|
309
|
-
offset: number;
|
|
310
|
-
limit: number;
|
|
311
|
-
contextLines: number;
|
|
312
|
-
query?: string | undefined;
|
|
313
|
-
};
|
|
314
|
-
output: NoInfer<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
315
|
-
ok: boolean;
|
|
316
|
-
error: string;
|
|
317
|
-
}>;
|
|
318
|
-
}) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
|
|
319
|
-
} & {
|
|
320
|
-
outputSchema?: import("ai").FlexibleSchema<import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
321
|
-
ok: boolean;
|
|
322
|
-
error: string;
|
|
323
|
-
}> | undefined;
|
|
324
|
-
execute: import("ai").ToolExecuteFunction<{
|
|
325
|
-
handle: string;
|
|
326
|
-
offset: number;
|
|
327
|
-
limit: number;
|
|
328
|
-
contextLines: number;
|
|
329
|
-
query?: string | undefined;
|
|
330
|
-
}, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
331
|
-
ok: boolean;
|
|
332
|
-
error: string;
|
|
333
|
-
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
334
|
-
} & {
|
|
335
|
-
type: "provider";
|
|
336
|
-
id: `${string}.${string}`;
|
|
337
|
-
args: Record<string, unknown>;
|
|
338
|
-
description?: never;
|
|
339
|
-
strict?: never;
|
|
340
|
-
inputExamples?: never;
|
|
341
|
-
} & {
|
|
342
|
-
isProviderExecuted: true;
|
|
343
|
-
supportsDeferredResults?: boolean;
|
|
344
|
-
} & {
|
|
345
|
-
execute: import("ai").ToolExecuteFunction<{
|
|
346
|
-
handle: string;
|
|
347
|
-
offset: number;
|
|
348
|
-
limit: number;
|
|
349
|
-
contextLines: number;
|
|
350
|
-
query?: string | undefined;
|
|
351
|
-
}, import("../../core/agent/toolOutputStore.js").StoredToolOutputPage | {
|
|
352
|
-
ok: boolean;
|
|
353
|
-
error: string;
|
|
354
|
-
}, NoInfer<import("@ai-sdk/provider-utils").Context>>;
|
|
355
|
-
});
|
|
1
|
+
import { type Tool } from 'ai';
|
|
2
|
+
export declare const readToolOutputTool: Tool;
|