turboflux 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/LICENSE +21 -0
- package/README.md +177 -0
- package/bin/turboflux.mjs +28 -0
- package/dist/cli/brand.d.ts +7 -0
- package/dist/cli/brand.js +33 -0
- package/dist/cli/brand.js.map +1 -0
- package/dist/cli/commands/index.d.ts +4 -0
- package/dist/cli/commands/index.js +671 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/registry.d.ts +24 -0
- package/dist/cli/commands/registry.js +124 -0
- package/dist/cli/commands/registry.js.map +1 -0
- package/dist/cli/commands/types.d.ts +69 -0
- package/dist/cli/commands/types.js +2 -0
- package/dist/cli/commands/types.js.map +1 -0
- package/dist/cli/components/App.d.ts +15 -0
- package/dist/cli/components/App.js +1738 -0
- package/dist/cli/components/App.js.map +1 -0
- package/dist/cli/components/ConversationHistory.d.ts +15 -0
- package/dist/cli/components/ConversationHistory.js +92 -0
- package/dist/cli/components/ConversationHistory.js.map +1 -0
- package/dist/cli/components/TranscriptViewport.d.ts +25 -0
- package/dist/cli/components/TranscriptViewport.js +77 -0
- package/dist/cli/components/TranscriptViewport.js.map +1 -0
- package/dist/cli/components/agentActivityModel.d.ts +24 -0
- package/dist/cli/components/agentActivityModel.js +45 -0
- package/dist/cli/components/agentActivityModel.js.map +1 -0
- package/dist/cli/components/appHelpers.d.ts +34 -0
- package/dist/cli/components/appHelpers.js +209 -0
- package/dist/cli/components/appHelpers.js.map +1 -0
- package/dist/cli/components/design-system/StatusIcon.d.ts +5 -0
- package/dist/cli/components/design-system/StatusIcon.js +25 -0
- package/dist/cli/components/design-system/StatusIcon.js.map +1 -0
- package/dist/cli/components/developerFlowModel.d.ts +36 -0
- package/dist/cli/components/developerFlowModel.js +88 -0
- package/dist/cli/components/developerFlowModel.js.map +1 -0
- package/dist/cli/components/diff/DiffCard.d.ts +16 -0
- package/dist/cli/components/diff/DiffCard.js +30 -0
- package/dist/cli/components/diff/DiffCard.js.map +1 -0
- package/dist/cli/components/diff/DiffHunks.d.ts +11 -0
- package/dist/cli/components/diff/DiffHunks.js +58 -0
- package/dist/cli/components/diff/DiffHunks.js.map +1 -0
- package/dist/cli/components/header/Header.d.ts +13 -0
- package/dist/cli/components/header/Header.js +25 -0
- package/dist/cli/components/header/Header.js.map +1 -0
- package/dist/cli/components/header/Mascot.d.ts +4 -0
- package/dist/cli/components/header/Mascot.js +53 -0
- package/dist/cli/components/header/Mascot.js.map +1 -0
- package/dist/cli/components/header/StatusLine.d.ts +21 -0
- package/dist/cli/components/header/StatusLine.js +110 -0
- package/dist/cli/components/header/StatusLine.js.map +1 -0
- package/dist/cli/components/input/EffortPicker.d.ts +30 -0
- package/dist/cli/components/input/EffortPicker.js +126 -0
- package/dist/cli/components/input/EffortPicker.js.map +1 -0
- package/dist/cli/components/input/ModelPicker.d.ts +15 -0
- package/dist/cli/components/input/ModelPicker.js +95 -0
- package/dist/cli/components/input/ModelPicker.js.map +1 -0
- package/dist/cli/components/input/PromptInput.d.ts +79 -0
- package/dist/cli/components/input/PromptInput.js +496 -0
- package/dist/cli/components/input/PromptInput.js.map +1 -0
- package/dist/cli/components/input/RewindSelector.d.ts +8 -0
- package/dist/cli/components/input/RewindSelector.js +45 -0
- package/dist/cli/components/input/RewindSelector.js.map +1 -0
- package/dist/cli/components/input/pasteState.d.ts +6 -0
- package/dist/cli/components/input/pasteState.js +42 -0
- package/dist/cli/components/input/pasteState.js.map +1 -0
- package/dist/cli/components/input/terminalInputStateMachine.d.ts +29 -0
- package/dist/cli/components/input/terminalInputStateMachine.js +67 -0
- package/dist/cli/components/input/terminalInputStateMachine.js.map +1 -0
- package/dist/cli/components/layout/CockpitRails.d.ts +6 -0
- package/dist/cli/components/layout/CockpitRails.js +13 -0
- package/dist/cli/components/layout/CockpitRails.js.map +1 -0
- package/dist/cli/components/layout/LandingView.d.ts +15 -0
- package/dist/cli/components/layout/LandingView.js +12 -0
- package/dist/cli/components/layout/LandingView.js.map +1 -0
- package/dist/cli/components/layout/SessionSidebar.d.ts +18 -0
- package/dist/cli/components/layout/SessionSidebar.js +70 -0
- package/dist/cli/components/layout/SessionSidebar.js.map +1 -0
- package/dist/cli/components/layout/StartupAnimation.d.ts +14 -0
- package/dist/cli/components/layout/StartupAnimation.js +30 -0
- package/dist/cli/components/layout/StartupAnimation.js.map +1 -0
- package/dist/cli/components/markdown/highlighter.d.ts +1 -0
- package/dist/cli/components/markdown/highlighter.js +110 -0
- package/dist/cli/components/markdown/highlighter.js.map +1 -0
- package/dist/cli/components/markdown/index.d.ts +11 -0
- package/dist/cli/components/markdown/index.js +86 -0
- package/dist/cli/components/markdown/index.js.map +1 -0
- package/dist/cli/components/messages/MessageList.d.ts +16 -0
- package/dist/cli/components/messages/MessageList.js +56 -0
- package/dist/cli/components/messages/MessageList.js.map +1 -0
- package/dist/cli/components/messages/Messages.d.ts +26 -0
- package/dist/cli/components/messages/Messages.js +32 -0
- package/dist/cli/components/messages/Messages.js.map +1 -0
- package/dist/cli/components/messages/ThinkingBlock.d.ts +9 -0
- package/dist/cli/components/messages/ThinkingBlock.js +51 -0
- package/dist/cli/components/messages/ThinkingBlock.js.map +1 -0
- package/dist/cli/components/messages/WindowedMessageList.d.ts +21 -0
- package/dist/cli/components/messages/WindowedMessageList.js +44 -0
- package/dist/cli/components/messages/WindowedMessageList.js.map +1 -0
- package/dist/cli/components/permissions/PermissionDialog.d.ts +23 -0
- package/dist/cli/components/permissions/PermissionDialog.js +83 -0
- package/dist/cli/components/permissions/PermissionDialog.js.map +1 -0
- package/dist/cli/components/spinner/SpinnerGlyph.d.ts +6 -0
- package/dist/cli/components/spinner/SpinnerGlyph.js +55 -0
- package/dist/cli/components/spinner/SpinnerGlyph.js.map +1 -0
- package/dist/cli/components/spinner/constants.d.ts +4 -0
- package/dist/cli/components/spinner/constants.js +5 -0
- package/dist/cli/components/spinner/constants.js.map +1 -0
- package/dist/cli/components/tools/ActiveWorkPanel.d.ts +22 -0
- package/dist/cli/components/tools/ActiveWorkPanel.js +70 -0
- package/dist/cli/components/tools/ActiveWorkPanel.js.map +1 -0
- package/dist/cli/components/tools/AgentActivityLine.d.ts +13 -0
- package/dist/cli/components/tools/AgentActivityLine.js +88 -0
- package/dist/cli/components/tools/AgentActivityLine.js.map +1 -0
- package/dist/cli/components/tools/QueuedPromptList.d.ts +10 -0
- package/dist/cli/components/tools/QueuedPromptList.js +26 -0
- package/dist/cli/components/tools/QueuedPromptList.js.map +1 -0
- package/dist/cli/components/tools/TaskFlowHud.d.ts +15 -0
- package/dist/cli/components/tools/TaskFlowHud.js +55 -0
- package/dist/cli/components/tools/TaskFlowHud.js.map +1 -0
- package/dist/cli/components/tools/TerminalSessionsFooter.d.ts +6 -0
- package/dist/cli/components/tools/TerminalSessionsFooter.js +36 -0
- package/dist/cli/components/tools/TerminalSessionsFooter.js.map +1 -0
- package/dist/cli/components/tools/ToolActivityList.d.ts +11 -0
- package/dist/cli/components/tools/ToolActivityList.js +73 -0
- package/dist/cli/components/tools/ToolActivityList.js.map +1 -0
- package/dist/cli/components/tools/ToolCallTree.d.ts +11 -0
- package/dist/cli/components/tools/ToolCallTree.js +14 -0
- package/dist/cli/components/tools/ToolCallTree.js.map +1 -0
- package/dist/cli/components/tools/toolLifecycleModel.d.ts +16 -0
- package/dist/cli/components/tools/toolLifecycleModel.js +30 -0
- package/dist/cli/components/tools/toolLifecycleModel.js.map +1 -0
- package/dist/cli/components/tools/toolPresentation.d.ts +9 -0
- package/dist/cli/components/tools/toolPresentation.js +171 -0
- package/dist/cli/components/tools/toolPresentation.js.map +1 -0
- package/dist/cli/components/tools/toolTypes.d.ts +16 -0
- package/dist/cli/components/tools/toolTypes.js +2 -0
- package/dist/cli/components/tools/toolTypes.js.map +1 -0
- package/dist/cli/components/transcriptWindowing.d.ts +19 -0
- package/dist/cli/components/transcriptWindowing.js +81 -0
- package/dist/cli/components/transcriptWindowing.js.map +1 -0
- package/dist/cli/config.d.ts +1 -0
- package/dist/cli/config.js +2 -0
- package/dist/cli/config.js.map +1 -0
- package/dist/cli/conversations/journalWriter.d.ts +50 -0
- package/dist/cli/conversations/journalWriter.js +191 -0
- package/dist/cli/conversations/journalWriter.js.map +1 -0
- package/dist/cli/conversations/manager.d.ts +65 -0
- package/dist/cli/conversations/manager.js +435 -0
- package/dist/cli/conversations/manager.js.map +1 -0
- package/dist/cli/conversations/recoveryExport.d.ts +18 -0
- package/dist/cli/conversations/recoveryExport.js +39 -0
- package/dist/cli/conversations/recoveryExport.js.map +1 -0
- package/dist/cli/conversations/recoveryMessages.d.ts +2 -0
- package/dist/cli/conversations/recoveryMessages.js +3 -0
- package/dist/cli/conversations/recoveryMessages.js.map +1 -0
- package/dist/cli/conversations/store.d.ts +14 -0
- package/dist/cli/conversations/store.js +603 -0
- package/dist/cli/conversations/store.js.map +1 -0
- package/dist/cli/conversations/types.d.ts +142 -0
- package/dist/cli/conversations/types.js +2 -0
- package/dist/cli/conversations/types.js.map +1 -0
- package/dist/cli/globalConfiguration.d.ts +13 -0
- package/dist/cli/globalConfiguration.js +61 -0
- package/dist/cli/globalConfiguration.js.map +1 -0
- package/dist/cli/hooks/useMessageCursor.d.ts +16 -0
- package/dist/cli/hooks/useMessageCursor.js +75 -0
- package/dist/cli/hooks/useMessageCursor.js.map +1 -0
- package/dist/cli/hooks/useOverlayStack.d.ts +9 -0
- package/dist/cli/hooks/useOverlayStack.js +26 -0
- package/dist/cli/hooks/useOverlayStack.js.map +1 -0
- package/dist/cli/hooks/useTerminalSize.d.ts +16 -0
- package/dist/cli/hooks/useTerminalSize.js +37 -0
- package/dist/cli/hooks/useTerminalSize.js.map +1 -0
- package/dist/cli/i18n/index.d.ts +15 -0
- package/dist/cli/i18n/index.js +32 -0
- package/dist/cli/i18n/index.js.map +1 -0
- package/dist/cli/i18n/messages.d.ts +1305 -0
- package/dist/cli/i18n/messages.js +1305 -0
- package/dist/cli/i18n/messages.js.map +1 -0
- package/dist/cli/imageAttachments.d.ts +22 -0
- package/dist/cli/imageAttachments.js +329 -0
- package/dist/cli/imageAttachments.js.map +1 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +146 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/platform/terminalAttention.d.ts +46 -0
- package/dist/cli/platform/terminalAttention.js +152 -0
- package/dist/cli/platform/terminalAttention.js.map +1 -0
- package/dist/cli/platform/terminalTransparency.d.ts +11 -0
- package/dist/cli/platform/terminalTransparency.js +193 -0
- package/dist/cli/platform/terminalTransparency.js.map +1 -0
- package/dist/cli/repl.d.ts +15 -0
- package/dist/cli/repl.js +38 -0
- package/dist/cli/repl.js.map +1 -0
- package/dist/cli/setup.d.ts +17 -0
- package/dist/cli/setup.js +991 -0
- package/dist/cli/setup.js.map +1 -0
- package/dist/cli/singleShot.d.ts +30 -0
- package/dist/cli/singleShot.js +167 -0
- package/dist/cli/singleShot.js.map +1 -0
- package/dist/cli/state/adaptiveStreamScheduler.d.ts +53 -0
- package/dist/cli/state/adaptiveStreamScheduler.js +136 -0
- package/dist/cli/state/adaptiveStreamScheduler.js.map +1 -0
- package/dist/cli/state/agentFlowController.d.ts +37 -0
- package/dist/cli/state/agentFlowController.js +402 -0
- package/dist/cli/state/agentFlowController.js.map +1 -0
- package/dist/cli/state/approvalPresentationScheduler.d.ts +28 -0
- package/dist/cli/state/approvalPresentationScheduler.js +72 -0
- package/dist/cli/state/approvalPresentationScheduler.js.map +1 -0
- package/dist/cli/state/flowFeatureFlags.d.ts +18 -0
- package/dist/cli/state/flowFeatureFlags.js +45 -0
- package/dist/cli/state/flowFeatureFlags.js.map +1 -0
- package/dist/cli/state/flowReducer.d.ts +120 -0
- package/dist/cli/state/flowReducer.js +535 -0
- package/dist/cli/state/flowReducer.js.map +1 -0
- package/dist/cli/state/flowSelectors.d.ts +45 -0
- package/dist/cli/state/flowSelectors.js +144 -0
- package/dist/cli/state/flowSelectors.js.map +1 -0
- package/dist/cli/state/flowStore.d.ts +19 -0
- package/dist/cli/state/flowStore.js +51 -0
- package/dist/cli/state/flowStore.js.map +1 -0
- package/dist/cli/state/globalCommandActivity.d.ts +25 -0
- package/dist/cli/state/globalCommandActivity.js +57 -0
- package/dist/cli/state/globalCommandActivity.js.map +1 -0
- package/dist/cli/state/goldenTraces.d.ts +2 -0
- package/dist/cli/state/goldenTraces.js +15 -0
- package/dist/cli/state/goldenTraces.js.map +1 -0
- package/dist/cli/state/notificationCoordinator.d.ts +38 -0
- package/dist/cli/state/notificationCoordinator.js +101 -0
- package/dist/cli/state/notificationCoordinator.js.map +1 -0
- package/dist/cli/stateProvider.d.ts +5 -0
- package/dist/cli/stateProvider.js +7 -0
- package/dist/cli/stateProvider.js.map +1 -0
- package/dist/cli/telemetry/localFlowTelemetry.d.ts +42 -0
- package/dist/cli/telemetry/localFlowTelemetry.js +131 -0
- package/dist/cli/telemetry/localFlowTelemetry.js.map +1 -0
- package/dist/cli/telemetry/terminalBaseline.d.ts +93 -0
- package/dist/cli/telemetry/terminalBaseline.js +199 -0
- package/dist/cli/telemetry/terminalBaseline.js.map +1 -0
- package/dist/cli/telemetry/terminalLatencyTracker.d.ts +24 -0
- package/dist/cli/telemetry/terminalLatencyTracker.js +59 -0
- package/dist/cli/telemetry/terminalLatencyTracker.js.map +1 -0
- package/dist/cli/terminalLayout.d.ts +2 -0
- package/dist/cli/terminalLayout.js +16 -0
- package/dist/cli/terminalLayout.js.map +1 -0
- package/dist/cli/terminalMouse.d.ts +10 -0
- package/dist/cli/terminalMouse.js +29 -0
- package/dist/cli/terminalMouse.js.map +1 -0
- package/dist/cli/theme/ThemeProvider.d.ts +9 -0
- package/dist/cli/theme/ThemeProvider.js +26 -0
- package/dist/cli/theme/ThemeProvider.js.map +1 -0
- package/dist/cli/theme/dark.d.ts +2 -0
- package/dist/cli/theme/dark.js +27 -0
- package/dist/cli/theme/dark.js.map +1 -0
- package/dist/cli/theme/index.d.ts +5 -0
- package/dist/cli/theme/index.js +5 -0
- package/dist/cli/theme/index.js.map +1 -0
- package/dist/cli/theme/light.d.ts +2 -0
- package/dist/cli/theme/light.js +26 -0
- package/dist/cli/theme/light.js.map +1 -0
- package/dist/cli/theme/palette.d.ts +7 -0
- package/dist/cli/theme/palette.js +8 -0
- package/dist/cli/theme/palette.js.map +1 -0
- package/dist/cli/theme/resolveColor.d.ts +4 -0
- package/dist/cli/theme/resolveColor.js +43 -0
- package/dist/cli/theme/resolveColor.js.map +1 -0
- package/dist/cli/theme/types.d.ts +27 -0
- package/dist/cli/theme/types.js +2 -0
- package/dist/cli/theme/types.js.map +1 -0
- package/dist/cli/toolExecutor.d.ts +1 -0
- package/dist/cli/toolExecutor.js +2 -0
- package/dist/cli/toolExecutor.js.map +1 -0
- package/dist/core/agentEngine.d.ts +425 -0
- package/dist/core/agentEngine.js +5170 -0
- package/dist/core/agentEngine.js.map +1 -0
- package/dist/core/agents/loader.d.ts +9 -0
- package/dist/core/agents/loader.js +144 -0
- package/dist/core/agents/loader.js.map +1 -0
- package/dist/core/applyPatch.d.ts +24 -0
- package/dist/core/applyPatch.js +158 -0
- package/dist/core/applyPatch.js.map +1 -0
- package/dist/core/cacheMonitor.d.ts +24 -0
- package/dist/core/cacheMonitor.js +211 -0
- package/dist/core/cacheMonitor.js.map +1 -0
- package/dist/core/clientIdentity.d.ts +6 -0
- package/dist/core/clientIdentity.js +44 -0
- package/dist/core/clientIdentity.js.map +1 -0
- package/dist/core/config.d.ts +99 -0
- package/dist/core/config.js +715 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/contextCompaction.d.ts +20 -0
- package/dist/core/contextCompaction.js +158 -0
- package/dist/core/contextCompaction.js.map +1 -0
- package/dist/core/contextManager.d.ts +44 -0
- package/dist/core/contextManager.js +590 -0
- package/dist/core/contextManager.js.map +1 -0
- package/dist/core/contextPolicy.d.ts +18 -0
- package/dist/core/contextPolicy.js +39 -0
- package/dist/core/contextPolicy.js.map +1 -0
- package/dist/core/credentialStore.d.ts +8 -0
- package/dist/core/credentialStore.js +37 -0
- package/dist/core/credentialStore.js.map +1 -0
- package/dist/core/diffCompute.d.ts +31 -0
- package/dist/core/diffCompute.js +116 -0
- package/dist/core/diffCompute.js.map +1 -0
- package/dist/core/editHelpers.d.ts +8 -0
- package/dist/core/editHelpers.js +35 -0
- package/dist/core/editHelpers.js.map +1 -0
- package/dist/core/fileIO.d.ts +12 -0
- package/dist/core/fileIO.js +199 -0
- package/dist/core/fileIO.js.map +1 -0
- package/dist/core/gitService.d.ts +83 -0
- package/dist/core/gitService.js +522 -0
- package/dist/core/gitService.js.map +1 -0
- package/dist/core/index.d.ts +30 -0
- package/dist/core/index.js +19 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/mcp/client.d.ts +32 -0
- package/dist/core/mcp/client.js +186 -0
- package/dist/core/mcp/client.js.map +1 -0
- package/dist/core/mcp/settings.d.ts +2 -0
- package/dist/core/mcp/settings.js +26 -0
- package/dist/core/mcp/settings.js.map +1 -0
- package/dist/core/mcp/toolBridge.d.ts +20 -0
- package/dist/core/mcp/toolBridge.js +74 -0
- package/dist/core/mcp/toolBridge.js.map +1 -0
- package/dist/core/mcp/types.d.ts +29 -0
- package/dist/core/mcp/types.js +2 -0
- package/dist/core/mcp/types.js.map +1 -0
- package/dist/core/modelDiscovery.d.ts +14 -0
- package/dist/core/modelDiscovery.js +566 -0
- package/dist/core/modelDiscovery.js.map +1 -0
- package/dist/core/modelProtocol.d.ts +43 -0
- package/dist/core/modelProtocol.js +238 -0
- package/dist/core/modelProtocol.js.map +1 -0
- package/dist/core/modelRegistry.d.ts +56 -0
- package/dist/core/modelRegistry.js +308 -0
- package/dist/core/modelRegistry.js.map +1 -0
- package/dist/core/networkProxy.d.ts +20 -0
- package/dist/core/networkProxy.js +145 -0
- package/dist/core/networkProxy.js.map +1 -0
- package/dist/core/normalizeBaseUrl.d.ts +1 -0
- package/dist/core/normalizeBaseUrl.js +9 -0
- package/dist/core/normalizeBaseUrl.js.map +1 -0
- package/dist/core/pathUtils.d.ts +3 -0
- package/dist/core/pathUtils.js +46 -0
- package/dist/core/pathUtils.js.map +1 -0
- package/dist/core/permissions.d.ts +29 -0
- package/dist/core/permissions.js +245 -0
- package/dist/core/permissions.js.map +1 -0
- package/dist/core/persona/voiceProfile.d.ts +7 -0
- package/dist/core/persona/voiceProfile.js +14 -0
- package/dist/core/persona/voiceProfile.js.map +1 -0
- package/dist/core/profile.d.ts +35 -0
- package/dist/core/profile.js +373 -0
- package/dist/core/profile.js.map +1 -0
- package/dist/core/requestCompatibility.d.ts +13 -0
- package/dist/core/requestCompatibility.js +181 -0
- package/dist/core/requestCompatibility.js.map +1 -0
- package/dist/core/runtime/agentRuntime.d.ts +43 -0
- package/dist/core/runtime/agentRuntime.js +137 -0
- package/dist/core/runtime/agentRuntime.js.map +1 -0
- package/dist/core/runtime/approvalCoordinator.d.ts +36 -0
- package/dist/core/runtime/approvalCoordinator.js +113 -0
- package/dist/core/runtime/approvalCoordinator.js.map +1 -0
- package/dist/core/runtime/capabilityBoundary.d.ts +18 -0
- package/dist/core/runtime/capabilityBoundary.js +89 -0
- package/dist/core/runtime/capabilityBoundary.js.map +1 -0
- package/dist/core/runtime/nodeToolExecutor.d.ts +200 -0
- package/dist/core/runtime/nodeToolExecutor.js +2446 -0
- package/dist/core/runtime/nodeToolExecutor.js.map +1 -0
- package/dist/core/runtime/runtimeLogWriter.d.ts +32 -0
- package/dist/core/runtime/runtimeLogWriter.js +129 -0
- package/dist/core/runtime/runtimeLogWriter.js.map +1 -0
- package/dist/core/runtime/runtimeTaskManager.d.ts +78 -0
- package/dist/core/runtime/runtimeTaskManager.js +374 -0
- package/dist/core/runtime/runtimeTaskManager.js.map +1 -0
- package/dist/core/runtime/sessionRegistry.d.ts +19 -0
- package/dist/core/runtime/sessionRegistry.js +41 -0
- package/dist/core/runtime/sessionRegistry.js.map +1 -0
- package/dist/core/runtime/stateProvider.d.ts +69 -0
- package/dist/core/runtime/stateProvider.js +131 -0
- package/dist/core/runtime/stateProvider.js.map +1 -0
- package/dist/core/runtime/subAgentTaskManager.d.ts +111 -0
- package/dist/core/runtime/subAgentTaskManager.js +386 -0
- package/dist/core/runtime/subAgentTaskManager.js.map +1 -0
- package/dist/core/schemaValidation.d.ts +5 -0
- package/dist/core/schemaValidation.js +153 -0
- package/dist/core/schemaValidation.js.map +1 -0
- package/dist/core/skills/loader.d.ts +7 -0
- package/dist/core/skills/loader.js +91 -0
- package/dist/core/skills/loader.js.map +1 -0
- package/dist/core/skills/runtime.d.ts +19 -0
- package/dist/core/skills/runtime.js +61 -0
- package/dist/core/skills/runtime.js.map +1 -0
- package/dist/core/subAgent.d.ts +50 -0
- package/dist/core/subAgent.js +1258 -0
- package/dist/core/subAgent.js.map +1 -0
- package/dist/core/systemPrompt.d.ts +27 -0
- package/dist/core/systemPrompt.js +219 -0
- package/dist/core/systemPrompt.js.map +1 -0
- package/dist/core/taskManager.d.ts +105 -0
- package/dist/core/taskManager.js +617 -0
- package/dist/core/taskManager.js.map +1 -0
- package/dist/core/tokenCompressor.d.ts +14 -0
- package/dist/core/tokenCompressor.js +161 -0
- package/dist/core/tokenCompressor.js.map +1 -0
- package/dist/core/tokenCounter.d.ts +28 -0
- package/dist/core/tokenCounter.js +101 -0
- package/dist/core/tokenCounter.js.map +1 -0
- package/dist/core/toolDispatcher.d.ts +11 -0
- package/dist/core/toolDispatcher.js +38 -0
- package/dist/core/toolDispatcher.js.map +1 -0
- package/dist/core/toolExecutionLedger.d.ts +9 -0
- package/dist/core/toolExecutionLedger.js +84 -0
- package/dist/core/toolExecutionLedger.js.map +1 -0
- package/dist/core/toolRegistry.d.ts +19 -0
- package/dist/core/toolRegistry.js +820 -0
- package/dist/core/toolRegistry.js.map +1 -0
- package/dist/core/turnStrategy.d.ts +20 -0
- package/dist/core/turnStrategy.js +103 -0
- package/dist/core/turnStrategy.js.map +1 -0
- package/dist/platform/process.d.ts +14 -0
- package/dist/platform/process.js +28 -0
- package/dist/platform/process.js.map +1 -0
- package/dist/platform/runtime.d.ts +8 -0
- package/dist/platform/runtime.js +21 -0
- package/dist/platform/runtime.js.map +1 -0
- package/dist/server/adminPage.d.ts +1 -0
- package/dist/server/adminPage.js +755 -0
- package/dist/server/adminPage.js.map +1 -0
- package/dist/server/index.d.ts +22 -0
- package/dist/server/index.js +566 -0
- package/dist/server/index.js.map +1 -0
- package/dist/shared/agentTypes.d.ts +227 -0
- package/dist/shared/agentTypes.js +79 -0
- package/dist/shared/agentTypes.js.map +1 -0
- package/dist/shared/codeIndexTypes.d.ts +32 -0
- package/dist/shared/codeIndexTypes.js +2 -0
- package/dist/shared/codeIndexTypes.js.map +1 -0
- package/dist/shared/flowEvents.d.ts +192 -0
- package/dist/shared/flowEvents.js +37 -0
- package/dist/shared/flowEvents.js.map +1 -0
- package/dist/shared/memoryTypes.d.ts +100 -0
- package/dist/shared/memoryTypes.js +2 -0
- package/dist/shared/memoryTypes.js.map +1 -0
- package/dist/shared/pluginTypes.d.ts +345 -0
- package/dist/shared/pluginTypes.js +2 -0
- package/dist/shared/pluginTypes.js.map +1 -0
- package/dist/shared/runtimeTaskTypes.d.ts +43 -0
- package/dist/shared/runtimeTaskTypes.js +2 -0
- package/dist/shared/runtimeTaskTypes.js.map +1 -0
- package/dist/shared/skillTypes.d.ts +1 -0
- package/dist/shared/skillTypes.js +2 -0
- package/dist/shared/skillTypes.js.map +1 -0
- package/dist/shared/subAgentTypes.d.ts +99 -0
- package/dist/shared/subAgentTypes.js +2 -0
- package/dist/shared/subAgentTypes.js.map +1 -0
- package/dist/shared/terminalTypes.d.ts +102 -0
- package/dist/shared/terminalTypes.js +2 -0
- package/dist/shared/terminalTypes.js.map +1 -0
- package/dist/shared/toolCallMarkup.d.ts +10 -0
- package/dist/shared/toolCallMarkup.js +107 -0
- package/dist/shared/toolCallMarkup.js.map +1 -0
- package/dist/shared/toolTypes.d.ts +24 -0
- package/dist/shared/toolTypes.js +2 -0
- package/dist/shared/toolTypes.js.map +1 -0
- package/dist/shared/types.d.ts +81 -0
- package/dist/shared/types.js +2 -0
- package/dist/shared/types.js.map +1 -0
- package/dist/state/types.d.ts +69 -0
- package/dist/state/types.js +2 -0
- package/dist/state/types.js.map +1 -0
- package/dist/tools/executor.d.ts +133 -0
- package/dist/tools/executor.js +2 -0
- package/dist/tools/executor.js.map +1 -0
- package/dist/tools/memory/loaders.d.ts +6 -0
- package/dist/tools/memory/loaders.js +292 -0
- package/dist/tools/memory/loaders.js.map +1 -0
- package/dist/tools/memory/sanitizer.d.ts +6 -0
- package/dist/tools/memory/sanitizer.js +48 -0
- package/dist/tools/memory/sanitizer.js.map +1 -0
- package/dist/tools/memory/service.d.ts +24 -0
- package/dist/tools/memory/service.js +273 -0
- package/dist/tools/memory/service.js.map +1 -0
- package/dist/tools/memory/writer.d.ts +17 -0
- package/dist/tools/memory/writer.js +192 -0
- package/dist/tools/memory/writer.js.map +1 -0
- package/package.json +68 -0
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
import type { AgentMode, AgentSession, AgentTurn, AgentConfig, ContextPolicyMode, ToolCall, ToolResult, TokenUsage, AgentRunState } from '../shared/agentTypes';
|
|
2
|
+
import { TaskManager, type TaskTreeNode } from './taskManager';
|
|
3
|
+
import type { TerminalSessionInfo } from '../shared/terminalTypes';
|
|
4
|
+
import type { RuntimeTask } from '../shared/runtimeTaskTypes';
|
|
5
|
+
import type { McpClient } from './mcp/client';
|
|
6
|
+
import type { SubAgentEvent } from '../shared/subAgentTypes';
|
|
7
|
+
import { type ModelProtocol } from './modelProtocol';
|
|
8
|
+
import type { ToolExecutor } from '../tools/executor';
|
|
9
|
+
import type { AgentStateProvider, ContextReservoirEntry, ContextSegment } from '../state/types';
|
|
10
|
+
import { type GitIntegrationState } from './gitService';
|
|
11
|
+
import { SubAgentTaskManager } from './runtime/subAgentTaskManager';
|
|
12
|
+
type TaskSystemCreationEvent = {
|
|
13
|
+
status: 'planning' | 'creating' | 'completed' | 'error';
|
|
14
|
+
toolName?: string;
|
|
15
|
+
expectedCount?: number;
|
|
16
|
+
createdCount?: number;
|
|
17
|
+
title?: string;
|
|
18
|
+
startedAt?: number;
|
|
19
|
+
updatedAt: number;
|
|
20
|
+
error?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare function splitTurnsForCompaction(turns: AgentTurn[], keepRecent: number): {
|
|
23
|
+
oldTurns: AgentTurn[];
|
|
24
|
+
recentTurns: AgentTurn[];
|
|
25
|
+
};
|
|
26
|
+
export declare function extractResponsesReasoningSummary(output: unknown): string;
|
|
27
|
+
export declare function extractResponsesReasoningEventDelta(event: unknown): string;
|
|
28
|
+
export declare function normalizeAnthropicToolMessages(messages: Array<Record<string, unknown>>): Array<Record<string, unknown>>;
|
|
29
|
+
type PromptModuleSnapshot = {
|
|
30
|
+
id: string;
|
|
31
|
+
label: string;
|
|
32
|
+
hash: string;
|
|
33
|
+
chars: number;
|
|
34
|
+
stable: boolean;
|
|
35
|
+
};
|
|
36
|
+
export type AgentEventType = {
|
|
37
|
+
type: 'run:state';
|
|
38
|
+
state: AgentRunState;
|
|
39
|
+
} | {
|
|
40
|
+
type: 'turn:start';
|
|
41
|
+
turn: AgentTurn;
|
|
42
|
+
} | {
|
|
43
|
+
type: 'turn:complete';
|
|
44
|
+
turn: AgentTurn;
|
|
45
|
+
} | {
|
|
46
|
+
type: 'tool:call';
|
|
47
|
+
toolCall: ToolCall;
|
|
48
|
+
} | {
|
|
49
|
+
type: 'tool:result';
|
|
50
|
+
toolResult: ToolResult;
|
|
51
|
+
} | {
|
|
52
|
+
type: 'task:update';
|
|
53
|
+
taskId: string;
|
|
54
|
+
status: string;
|
|
55
|
+
progress: number;
|
|
56
|
+
} | {
|
|
57
|
+
type: 'mode:change';
|
|
58
|
+
from: AgentMode;
|
|
59
|
+
to: AgentMode;
|
|
60
|
+
} | {
|
|
61
|
+
type: 'session:complete';
|
|
62
|
+
session: AgentSession;
|
|
63
|
+
} | {
|
|
64
|
+
type: 'error';
|
|
65
|
+
error: string;
|
|
66
|
+
} | {
|
|
67
|
+
type: 'notification';
|
|
68
|
+
message: string;
|
|
69
|
+
level: 'info' | 'success' | 'warning' | 'error';
|
|
70
|
+
} | {
|
|
71
|
+
type: 'model:protocol';
|
|
72
|
+
phase: 'attempt' | 'fallback' | 'success';
|
|
73
|
+
protocol: ModelProtocol;
|
|
74
|
+
url: string;
|
|
75
|
+
message?: string;
|
|
76
|
+
} | {
|
|
77
|
+
type: 'stream:delta';
|
|
78
|
+
text: string;
|
|
79
|
+
} | {
|
|
80
|
+
type: 'stream:thinking_delta';
|
|
81
|
+
text: string;
|
|
82
|
+
} | {
|
|
83
|
+
type: 'stream:tool_call_delta';
|
|
84
|
+
toolCallId: string;
|
|
85
|
+
toolName: string;
|
|
86
|
+
partialJson: string;
|
|
87
|
+
} | {
|
|
88
|
+
type: 'stream:start';
|
|
89
|
+
} | {
|
|
90
|
+
type: 'stream:end';
|
|
91
|
+
interrupted?: boolean;
|
|
92
|
+
} | {
|
|
93
|
+
type: 'stream:usage';
|
|
94
|
+
usage: TokenUsage;
|
|
95
|
+
} | {
|
|
96
|
+
type: 'ask:user';
|
|
97
|
+
question: string;
|
|
98
|
+
options?: string[];
|
|
99
|
+
reason?: string;
|
|
100
|
+
command?: string;
|
|
101
|
+
requestId?: string;
|
|
102
|
+
toolName?: string;
|
|
103
|
+
path?: string;
|
|
104
|
+
queuedCount?: number;
|
|
105
|
+
} | {
|
|
106
|
+
type: 'approval:state';
|
|
107
|
+
requestId: string;
|
|
108
|
+
requestKind: 'permission' | 'input';
|
|
109
|
+
state: 'requested' | 'resolved' | 'cancelled';
|
|
110
|
+
decision?: string;
|
|
111
|
+
question: string;
|
|
112
|
+
toolName?: string;
|
|
113
|
+
path?: string;
|
|
114
|
+
} | {
|
|
115
|
+
type: 'input:state';
|
|
116
|
+
inputId: string;
|
|
117
|
+
intent: 'steer';
|
|
118
|
+
state: 'accepted' | 'committed' | 'rejected';
|
|
119
|
+
text: string;
|
|
120
|
+
reason?: string;
|
|
121
|
+
} | {
|
|
122
|
+
type: 'active:task';
|
|
123
|
+
context: import('./taskManager').ActiveTaskContext | null;
|
|
124
|
+
} | {
|
|
125
|
+
type: 'terminal:sessions';
|
|
126
|
+
sessions: TerminalSessionInfo[];
|
|
127
|
+
} | {
|
|
128
|
+
type: 'runtime-task:finished';
|
|
129
|
+
task: RuntimeTask;
|
|
130
|
+
} | {
|
|
131
|
+
type: 'task:system';
|
|
132
|
+
context: import('./taskManager').ActiveTaskContext | null;
|
|
133
|
+
tree: TaskTreeNode[];
|
|
134
|
+
creation?: TaskSystemCreationEvent | null;
|
|
135
|
+
} | {
|
|
136
|
+
type: 'context:segment_created';
|
|
137
|
+
segment: ContextSegment;
|
|
138
|
+
} | {
|
|
139
|
+
type: 'git:state';
|
|
140
|
+
state: GitIntegrationState;
|
|
141
|
+
} | {
|
|
142
|
+
type: 'subagent:start';
|
|
143
|
+
agentId: string;
|
|
144
|
+
agentType: string;
|
|
145
|
+
label: string;
|
|
146
|
+
objective: string;
|
|
147
|
+
} | {
|
|
148
|
+
type: 'subagent:progress';
|
|
149
|
+
agentId: string;
|
|
150
|
+
agentType: string;
|
|
151
|
+
label: string;
|
|
152
|
+
event: SubAgentEvent;
|
|
153
|
+
} | {
|
|
154
|
+
type: 'subagent:end';
|
|
155
|
+
agentId: string;
|
|
156
|
+
agentType: string;
|
|
157
|
+
ok: boolean;
|
|
158
|
+
elapsedMs: number;
|
|
159
|
+
} | {
|
|
160
|
+
type: 'cache:diagnostic';
|
|
161
|
+
result: {
|
|
162
|
+
broken: boolean;
|
|
163
|
+
reason: string;
|
|
164
|
+
tokenDrop: number;
|
|
165
|
+
likelyTtlExpiry: boolean;
|
|
166
|
+
};
|
|
167
|
+
} | {
|
|
168
|
+
type: 'cache:modules';
|
|
169
|
+
modules: PromptModuleSnapshot[];
|
|
170
|
+
};
|
|
171
|
+
export type AgentEventListener = (event: AgentEventType) => void;
|
|
172
|
+
export type AgentEventRecorder = (event: AgentEventType) => void;
|
|
173
|
+
type AskUserEvent = Extract<AgentEventType, {
|
|
174
|
+
type: 'ask:user';
|
|
175
|
+
}>;
|
|
176
|
+
interface EngineInteractiveRequest {
|
|
177
|
+
id: string;
|
|
178
|
+
kind: 'permission' | 'input';
|
|
179
|
+
event: AskUserEvent;
|
|
180
|
+
}
|
|
181
|
+
export { downgradeReasoningEffort } from './requestCompatibility';
|
|
182
|
+
export declare function appendRuntimeContextToLatestUserMessage(messages: Array<Record<string, unknown>>, text: string, provider: 'openai' | 'anthropic'): boolean;
|
|
183
|
+
export declare class AgentEngine {
|
|
184
|
+
private config;
|
|
185
|
+
private session;
|
|
186
|
+
private taskManager;
|
|
187
|
+
private listeners;
|
|
188
|
+
private eventRecorder;
|
|
189
|
+
private abortController;
|
|
190
|
+
private currentStreamId;
|
|
191
|
+
private isPaused;
|
|
192
|
+
private pausePromise;
|
|
193
|
+
private pauseResolve;
|
|
194
|
+
private unsubscribeTaskManager;
|
|
195
|
+
private contextManager;
|
|
196
|
+
private readonly interactiveRequests;
|
|
197
|
+
private readonly resolvedAskUserResponses;
|
|
198
|
+
private toolCallTaskMap;
|
|
199
|
+
private fileBeforeSnapshots;
|
|
200
|
+
private agentBackgroundSessions;
|
|
201
|
+
private turnStrategyPlanner;
|
|
202
|
+
private currentTurnStrategy;
|
|
203
|
+
private workspaceSkeleton;
|
|
204
|
+
private workspaceSkeletonPath;
|
|
205
|
+
private cachedGitStatus;
|
|
206
|
+
private gitDetected;
|
|
207
|
+
private gitGeneration;
|
|
208
|
+
private gitState;
|
|
209
|
+
private workspaceMemoryText;
|
|
210
|
+
private workspaceMemoryWorkspace;
|
|
211
|
+
private workspaceMemoryBuiltAt;
|
|
212
|
+
private cacheMonitor;
|
|
213
|
+
private permissions;
|
|
214
|
+
private preservedFiles;
|
|
215
|
+
private compressionPreparedTurnCount;
|
|
216
|
+
private currentRunToolNames;
|
|
217
|
+
private currentRunReadFiles;
|
|
218
|
+
private currentRunSuccessfulReadFiles;
|
|
219
|
+
private currentRunSearches;
|
|
220
|
+
private currentRunSuccessfulSearches;
|
|
221
|
+
private toolExecutionLedger;
|
|
222
|
+
private conclusionGuardAttempts;
|
|
223
|
+
private disabledToolNames;
|
|
224
|
+
private pendingAssistantMessageId;
|
|
225
|
+
private currentRunPromise;
|
|
226
|
+
private pendingSteeringMessages;
|
|
227
|
+
private steeringOpen;
|
|
228
|
+
private runState;
|
|
229
|
+
private forceContextCompactionBeforeNextCall;
|
|
230
|
+
private contextLimitRetryInProgress;
|
|
231
|
+
private toolExecutor;
|
|
232
|
+
private stateProvider;
|
|
233
|
+
private subAgentTaskManager;
|
|
234
|
+
private mcpClient;
|
|
235
|
+
private deferredMcpToolNames;
|
|
236
|
+
setMcpClient(client: McpClient): void;
|
|
237
|
+
setEventRecorder(recorder: AgentEventRecorder | null): void;
|
|
238
|
+
constructor(config: AgentConfig, toolExecutor: ToolExecutor, stateProvider: AgentStateProvider, subAgentTaskManager?: SubAgentTaskManager);
|
|
239
|
+
destroy(): void;
|
|
240
|
+
getMode(): AgentMode;
|
|
241
|
+
setMode(mode: AgentMode): void;
|
|
242
|
+
setAppendSystemPrompt(appendSystemPrompt: string | undefined): void;
|
|
243
|
+
setConversationId(conversationId: string): void;
|
|
244
|
+
getConversationId(): string | undefined;
|
|
245
|
+
updateRuntimeConfiguration(update: Partial<Pick<AgentConfig, 'approvalPolicy' | 'capabilityProfile' | 'gitEnabled' | 'contextWindow' | 'maxTokens' | 'profileSystemPrompt'>>): void;
|
|
246
|
+
setEnabledSkills(skills: AgentConfig['enabledSkills']): void;
|
|
247
|
+
reloadAgents(): void;
|
|
248
|
+
isRunning(): boolean;
|
|
249
|
+
setContextPolicy(mode: ContextPolicyMode): void;
|
|
250
|
+
setApprovalPolicy(policy: NonNullable<AgentConfig['approvalPolicy']>): void;
|
|
251
|
+
getApprovalPolicy(): NonNullable<AgentConfig['approvalPolicy']>;
|
|
252
|
+
getGitState(): GitIntegrationState;
|
|
253
|
+
setGitEnabled(enabled: boolean): void;
|
|
254
|
+
initializeGit(force?: boolean): Promise<boolean>;
|
|
255
|
+
private invalidateStaticPromptCache;
|
|
256
|
+
refreshGitStatus(expectedGeneration?: number): Promise<void>;
|
|
257
|
+
private updateGitState;
|
|
258
|
+
private runGitOperation;
|
|
259
|
+
compactContext(): Promise<void>;
|
|
260
|
+
getTokenUsage(): {
|
|
261
|
+
input: number;
|
|
262
|
+
output: number;
|
|
263
|
+
};
|
|
264
|
+
getContextUsage(): TokenUsage;
|
|
265
|
+
getContextSegments(): ContextSegment[];
|
|
266
|
+
setContextSegments(segments: ContextSegment[]): void;
|
|
267
|
+
getContextReservoir(): ContextReservoirEntry[];
|
|
268
|
+
setContextReservoir(entries: ContextReservoirEntry[]): void;
|
|
269
|
+
getFullConversationTurns(): AgentTurn[];
|
|
270
|
+
resetSession(): void;
|
|
271
|
+
restoreFromTurns(turns: AgentTurn[]): void;
|
|
272
|
+
setDisabledTools(toolNames: string[]): void;
|
|
273
|
+
private modelDisabledToolNames;
|
|
274
|
+
attachPendingAssistantMessageId(messageId: string): void;
|
|
275
|
+
getSession(): AgentSession;
|
|
276
|
+
getTaskManager(): TaskManager;
|
|
277
|
+
resetContextTracking(): void;
|
|
278
|
+
restoreFromMessages(messages: Array<{
|
|
279
|
+
id?: string;
|
|
280
|
+
role: string;
|
|
281
|
+
content: string;
|
|
282
|
+
timestamp?: number;
|
|
283
|
+
metadata?: {
|
|
284
|
+
model?: string;
|
|
285
|
+
tokens?: number | TokenUsage;
|
|
286
|
+
duration?: number;
|
|
287
|
+
reasoningEnabled?: boolean;
|
|
288
|
+
reasoningEffort?: NonNullable<AgentTurn['metadata']>['reasoningEffort'];
|
|
289
|
+
thinking?: NonNullable<AgentTurn['metadata']>['thinking'];
|
|
290
|
+
rawReasoningPayload?: NonNullable<AgentTurn['metadata']>['rawReasoningPayload'];
|
|
291
|
+
attachments?: NonNullable<AgentTurn['metadata']>['attachments'];
|
|
292
|
+
runtimeContext?: string;
|
|
293
|
+
toolCalls?: Array<{
|
|
294
|
+
id?: string;
|
|
295
|
+
name: string;
|
|
296
|
+
arguments: Record<string, unknown>;
|
|
297
|
+
result?: string;
|
|
298
|
+
isError?: boolean;
|
|
299
|
+
status?: string;
|
|
300
|
+
changeSummary?: {
|
|
301
|
+
path: string;
|
|
302
|
+
operation: 'write' | 'edit' | 'delete';
|
|
303
|
+
addedLines?: number;
|
|
304
|
+
removedLines?: number;
|
|
305
|
+
totalLines?: number;
|
|
306
|
+
preview?: string;
|
|
307
|
+
oldPreview?: string;
|
|
308
|
+
before?: string;
|
|
309
|
+
after?: string;
|
|
310
|
+
};
|
|
311
|
+
}>;
|
|
312
|
+
detectedSkills?: string[];
|
|
313
|
+
isStreaming?: boolean;
|
|
314
|
+
};
|
|
315
|
+
}>): void;
|
|
316
|
+
private restoreTasksFromToolCalls;
|
|
317
|
+
private isRestorableTaskToolCall;
|
|
318
|
+
subscribe(listener: AgentEventListener): () => void;
|
|
319
|
+
getRunState(): AgentRunState;
|
|
320
|
+
private setRunState;
|
|
321
|
+
submitSteeringMessage(message: string, inputId?: string): boolean;
|
|
322
|
+
private consumeSteeringMessages;
|
|
323
|
+
private rejectPendingSteeringMessages;
|
|
324
|
+
publishRuntimeTaskFinished(task: RuntimeTask): void;
|
|
325
|
+
abort(): void;
|
|
326
|
+
submitAskUserResponse(response: string, requestId?: string): boolean;
|
|
327
|
+
getPendingInteractiveRequests(): {
|
|
328
|
+
active: EngineInteractiveRequest | null;
|
|
329
|
+
queued: EngineInteractiveRequest[];
|
|
330
|
+
pendingCount: number;
|
|
331
|
+
};
|
|
332
|
+
pause(): void;
|
|
333
|
+
resume(): void;
|
|
334
|
+
private waitIfPaused;
|
|
335
|
+
private isContextLimitError;
|
|
336
|
+
private prepareContextWindow;
|
|
337
|
+
private currentContextWindowSettings;
|
|
338
|
+
private providerContextTokens;
|
|
339
|
+
private shouldCompactFromProviderUsage;
|
|
340
|
+
private shouldCompactFromLocalSize;
|
|
341
|
+
private currentContextTokensWithTokenizerTail;
|
|
342
|
+
private findLastProviderUsageTurnIndex;
|
|
343
|
+
waitUntilIdle(): Promise<void>;
|
|
344
|
+
run(userMessage: string, options?: {
|
|
345
|
+
reuseLastUserTurn?: boolean;
|
|
346
|
+
attachments?: NonNullable<AgentTurn['metadata']>['attachments'];
|
|
347
|
+
userTurnId?: string;
|
|
348
|
+
}): Promise<AgentTurn[]>;
|
|
349
|
+
private ensureContextWindow;
|
|
350
|
+
private performContextCompaction;
|
|
351
|
+
private generateContinuationSummary;
|
|
352
|
+
private requestContinuationSummary;
|
|
353
|
+
private countTurnChars;
|
|
354
|
+
private collectPreservedFiles;
|
|
355
|
+
private addReservoirEntry;
|
|
356
|
+
private pruneContextReservoir;
|
|
357
|
+
private autoClearStaleToolResults;
|
|
358
|
+
private buildToolRetryHint;
|
|
359
|
+
private attachToolRetryHint;
|
|
360
|
+
private captureBeforeSnapshot;
|
|
361
|
+
private buildDiffSnapshot;
|
|
362
|
+
private callModel;
|
|
363
|
+
private callAnthropicAPI;
|
|
364
|
+
private tryParsePartialJson;
|
|
365
|
+
private buildOpenAITools;
|
|
366
|
+
private callOpenAICompatibleAPI;
|
|
367
|
+
private callOpenAIResponsesAPI;
|
|
368
|
+
private wrapRuntimeContextSection;
|
|
369
|
+
private captureRuntimeContext;
|
|
370
|
+
private buildPromptCacheKey;
|
|
371
|
+
private emitPromptModuleSnapshot;
|
|
372
|
+
private appendTextAtConversationTail;
|
|
373
|
+
private injectPreservedFilesIntoMessages;
|
|
374
|
+
private buildApiMessages;
|
|
375
|
+
private buildContextCandidateTurns;
|
|
376
|
+
private enforceFinalMessageBudget;
|
|
377
|
+
private withAnthropicMessageCacheControl;
|
|
378
|
+
private withOpenRouterCacheControl;
|
|
379
|
+
private withLastMessageCacheControl;
|
|
380
|
+
private withRecentMessageCacheControl;
|
|
381
|
+
private addCacheControlToMessage;
|
|
382
|
+
private extractStructuredReasoningDelta;
|
|
383
|
+
private maybeBuildWorkspaceSkeleton;
|
|
384
|
+
private maybeRefreshWorkspaceMemory;
|
|
385
|
+
private buildEvidenceGuardHint;
|
|
386
|
+
private buildEvidencePolicyContext;
|
|
387
|
+
private recordToolUsage;
|
|
388
|
+
private recordSuccessfulToolUsage;
|
|
389
|
+
private isToolOutputFailure;
|
|
390
|
+
private getTaskToolStatus;
|
|
391
|
+
private replayEvidenceFromExistingTurns;
|
|
392
|
+
private executeToolCalls;
|
|
393
|
+
private executeToolsConcurrently;
|
|
394
|
+
private linkToolCallToActiveTask;
|
|
395
|
+
private updateTaskToolCallStatus;
|
|
396
|
+
private emitActiveTaskContext;
|
|
397
|
+
private emitTerminalSessions;
|
|
398
|
+
private getTerminalSession;
|
|
399
|
+
private emitTaskSystem;
|
|
400
|
+
private extractToolCallPath;
|
|
401
|
+
private isWriteToolCall;
|
|
402
|
+
private resolveToolDefinition;
|
|
403
|
+
private isReadAfterWriteSensitiveToolCall;
|
|
404
|
+
private partitionToolCalls;
|
|
405
|
+
private executeSingleTool;
|
|
406
|
+
private executeSingleToolUncached;
|
|
407
|
+
private classifyToolErrorKind;
|
|
408
|
+
private checkToolPermission;
|
|
409
|
+
private parsePermissionDecision;
|
|
410
|
+
private emitSubAgentProgress;
|
|
411
|
+
private formatSubAgentTask;
|
|
412
|
+
private dispatchTool;
|
|
413
|
+
private formatContentSearchResults;
|
|
414
|
+
private formatCodeSearchHits;
|
|
415
|
+
private formatCodeMap;
|
|
416
|
+
private formatWebSearchResults;
|
|
417
|
+
private resolvePath;
|
|
418
|
+
private toWorkspaceRelative;
|
|
419
|
+
private createUserTurn;
|
|
420
|
+
private createAssistantTurn;
|
|
421
|
+
private finishInterruptedStream;
|
|
422
|
+
private createToolResultTurn;
|
|
423
|
+
private createMockTurn;
|
|
424
|
+
private emit;
|
|
425
|
+
}
|