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,345 @@
|
|
|
1
|
+
export type PluginID = string;
|
|
2
|
+
export type PluginVersion = string;
|
|
3
|
+
export type SemVer = `${number}.${number}.${number}`;
|
|
4
|
+
export interface PluginAuthor {
|
|
5
|
+
name: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface PluginManifest {
|
|
10
|
+
id: PluginID;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
version: PluginVersion;
|
|
14
|
+
author: PluginAuthor;
|
|
15
|
+
license?: string;
|
|
16
|
+
icon?: string;
|
|
17
|
+
homepage?: string;
|
|
18
|
+
repository?: string;
|
|
19
|
+
engines?: {
|
|
20
|
+
turboforge: string;
|
|
21
|
+
turboflux?: string;
|
|
22
|
+
};
|
|
23
|
+
categories?: PluginCategory[];
|
|
24
|
+
keywords?: string[];
|
|
25
|
+
activationEvents?: ActivationEvent[];
|
|
26
|
+
contributes?: PluginContributes;
|
|
27
|
+
permissions?: PluginPermission[];
|
|
28
|
+
dependencies?: Record<PluginID, string>;
|
|
29
|
+
main?: string;
|
|
30
|
+
}
|
|
31
|
+
export type PluginCategory = 'ai-model' | 'theme' | 'language' | 'tool' | 'integration' | 'productivity' | 'custom';
|
|
32
|
+
export type ActivationEvent = '*' | 'onStartupFinished' | 'onCommand:<id>' | 'onView:<id>' | 'onFile:<glob>' | 'onLanguage:<lang>' | 'onMode:<mode>' | 'onTask:<type>';
|
|
33
|
+
export interface PluginContributes {
|
|
34
|
+
commands?: PluginCommand[];
|
|
35
|
+
configuration?: PluginConfiguration[];
|
|
36
|
+
menus?: PluginMenus;
|
|
37
|
+
keybindings?: PluginKeybinding[];
|
|
38
|
+
themes?: PluginTheme[];
|
|
39
|
+
tools?: PluginTool[];
|
|
40
|
+
agents?: PluginAgent[];
|
|
41
|
+
skills?: PluginSkill[];
|
|
42
|
+
hooks?: PluginHooks;
|
|
43
|
+
views?: PluginView[];
|
|
44
|
+
viewsContainers?: PluginViewsContainer[];
|
|
45
|
+
}
|
|
46
|
+
export interface PluginCommand {
|
|
47
|
+
id: string;
|
|
48
|
+
title: string;
|
|
49
|
+
category?: string;
|
|
50
|
+
icon?: string;
|
|
51
|
+
when?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface PluginConfiguration {
|
|
54
|
+
id: string;
|
|
55
|
+
title: string;
|
|
56
|
+
properties: Record<string, ConfigProperty>;
|
|
57
|
+
}
|
|
58
|
+
export interface ConfigProperty {
|
|
59
|
+
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
60
|
+
default?: unknown;
|
|
61
|
+
description?: string;
|
|
62
|
+
enum?: unknown[];
|
|
63
|
+
enumDescriptions?: string[];
|
|
64
|
+
minimum?: number;
|
|
65
|
+
maximum?: number;
|
|
66
|
+
}
|
|
67
|
+
export interface PluginMenus {
|
|
68
|
+
'commandPalette'?: MenuItem[];
|
|
69
|
+
'editor/context'?: MenuItem[];
|
|
70
|
+
'explorer/context'?: MenuItem[];
|
|
71
|
+
'sidebar/activity'?: MenuItem[];
|
|
72
|
+
'statusBar'?: MenuItem[];
|
|
73
|
+
}
|
|
74
|
+
export interface MenuItem {
|
|
75
|
+
command: string;
|
|
76
|
+
when?: string;
|
|
77
|
+
group?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface PluginKeybinding {
|
|
80
|
+
command: string;
|
|
81
|
+
key: string;
|
|
82
|
+
when?: string;
|
|
83
|
+
mac?: string;
|
|
84
|
+
linux?: string;
|
|
85
|
+
win?: string;
|
|
86
|
+
}
|
|
87
|
+
export interface PluginTheme {
|
|
88
|
+
id: string;
|
|
89
|
+
label: string;
|
|
90
|
+
uiTheme: 'vs' | 'vs-dark' | 'hc-black';
|
|
91
|
+
path: string;
|
|
92
|
+
}
|
|
93
|
+
export interface PluginTool {
|
|
94
|
+
id: string;
|
|
95
|
+
name: string;
|
|
96
|
+
description: string;
|
|
97
|
+
icon?: string;
|
|
98
|
+
parameters?: ToolParameter[];
|
|
99
|
+
handler: string;
|
|
100
|
+
}
|
|
101
|
+
export interface ToolParameter {
|
|
102
|
+
name: string;
|
|
103
|
+
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
104
|
+
description: string;
|
|
105
|
+
required?: boolean;
|
|
106
|
+
default?: unknown;
|
|
107
|
+
}
|
|
108
|
+
export interface PluginAgent {
|
|
109
|
+
id: string;
|
|
110
|
+
name: string;
|
|
111
|
+
description: string;
|
|
112
|
+
icon?: string;
|
|
113
|
+
systemPrompt?: string;
|
|
114
|
+
tools?: string[];
|
|
115
|
+
model?: string;
|
|
116
|
+
}
|
|
117
|
+
export interface PluginSkill {
|
|
118
|
+
id: string;
|
|
119
|
+
name: string;
|
|
120
|
+
command: string;
|
|
121
|
+
description: string;
|
|
122
|
+
icon?: string;
|
|
123
|
+
category: SkillCategory;
|
|
124
|
+
systemPrompt?: string;
|
|
125
|
+
promptPath?: string;
|
|
126
|
+
capabilities?: {
|
|
127
|
+
can: string[];
|
|
128
|
+
cannot: string[];
|
|
129
|
+
};
|
|
130
|
+
principles?: string[];
|
|
131
|
+
tools?: SkillTool[];
|
|
132
|
+
outputFormat?: string;
|
|
133
|
+
examples?: SkillExample[];
|
|
134
|
+
autoTrigger?: {
|
|
135
|
+
onFile?: string;
|
|
136
|
+
onMode?: string;
|
|
137
|
+
onTask?: string;
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
export type SkillCategory = 'core' | 'design' | 'code-quality' | 'engineering' | 'ai-ml' | 'devops' | 'security' | 'custom';
|
|
141
|
+
export interface SkillTool {
|
|
142
|
+
name: string;
|
|
143
|
+
description: string;
|
|
144
|
+
parameters?: ToolParameter[];
|
|
145
|
+
}
|
|
146
|
+
export interface SkillExample {
|
|
147
|
+
input: string;
|
|
148
|
+
output?: string;
|
|
149
|
+
description?: string;
|
|
150
|
+
}
|
|
151
|
+
export interface PluginHooks {
|
|
152
|
+
preTask?: string;
|
|
153
|
+
postTask?: string;
|
|
154
|
+
preToolUse?: string;
|
|
155
|
+
postToolUse?: string;
|
|
156
|
+
onModeChange?: string;
|
|
157
|
+
onFileChange?: string;
|
|
158
|
+
}
|
|
159
|
+
export interface PluginView {
|
|
160
|
+
id: string;
|
|
161
|
+
name: string;
|
|
162
|
+
when?: string;
|
|
163
|
+
icon?: string;
|
|
164
|
+
}
|
|
165
|
+
export interface PluginViewsContainer {
|
|
166
|
+
id: string;
|
|
167
|
+
title: string;
|
|
168
|
+
icon: string;
|
|
169
|
+
}
|
|
170
|
+
export type PluginPermission = 'filesystem.read' | 'filesystem.write' | 'network' | 'terminal' | 'clipboard' | 'notifications' | 'webview' | 'ai' | 'storage' | 'process' | 'unsafe-eval';
|
|
171
|
+
export type PluginState = 'installing' | 'installed' | 'enabling' | 'enabled' | 'disabling' | 'disabled' | 'uninstalling' | 'error';
|
|
172
|
+
export interface LoadedPlugin {
|
|
173
|
+
id: PluginID;
|
|
174
|
+
manifest: PluginManifest;
|
|
175
|
+
path: string;
|
|
176
|
+
source: string;
|
|
177
|
+
state: PluginState;
|
|
178
|
+
enabled: boolean;
|
|
179
|
+
installedAt: string;
|
|
180
|
+
updatedAt: string;
|
|
181
|
+
error?: string;
|
|
182
|
+
isBuiltin?: boolean;
|
|
183
|
+
isDevelopment?: boolean;
|
|
184
|
+
}
|
|
185
|
+
export interface PluginMarketplace {
|
|
186
|
+
id: string;
|
|
187
|
+
name: string;
|
|
188
|
+
description?: string;
|
|
189
|
+
url: string;
|
|
190
|
+
icon?: string;
|
|
191
|
+
trusted?: boolean;
|
|
192
|
+
autoUpdate?: boolean;
|
|
193
|
+
}
|
|
194
|
+
export interface MarketplacePlugin {
|
|
195
|
+
id: PluginID;
|
|
196
|
+
manifest: PluginManifest;
|
|
197
|
+
downloadUrl: string;
|
|
198
|
+
readme?: string;
|
|
199
|
+
changelog?: string;
|
|
200
|
+
downloadCount: number;
|
|
201
|
+
rating: number;
|
|
202
|
+
reviewCount: number;
|
|
203
|
+
lastUpdated: string;
|
|
204
|
+
}
|
|
205
|
+
export interface PluginMessage {
|
|
206
|
+
type: string;
|
|
207
|
+
payload?: unknown;
|
|
208
|
+
}
|
|
209
|
+
export interface PluginAPI {
|
|
210
|
+
storage: {
|
|
211
|
+
get<T>(key: string): Promise<T | undefined>;
|
|
212
|
+
set<T>(key: string, value: T): Promise<void>;
|
|
213
|
+
remove(key: string): Promise<void>;
|
|
214
|
+
};
|
|
215
|
+
filesystem: {
|
|
216
|
+
readFile(path: string): Promise<string>;
|
|
217
|
+
writeFile(path: string, content: string): Promise<void>;
|
|
218
|
+
readDirectory(path: string): Promise<string[]>;
|
|
219
|
+
exists(path: string): Promise<boolean>;
|
|
220
|
+
delete(path: string): Promise<void>;
|
|
221
|
+
mkdir(path: string): Promise<void>;
|
|
222
|
+
};
|
|
223
|
+
window: {
|
|
224
|
+
showInformationMessage(message: string): Promise<void>;
|
|
225
|
+
showWarningMessage(message: string): Promise<void>;
|
|
226
|
+
showErrorMessage(message: string): Promise<void>;
|
|
227
|
+
showInputBox(options: {
|
|
228
|
+
prompt?: string;
|
|
229
|
+
placeholder?: string;
|
|
230
|
+
value?: string;
|
|
231
|
+
}): Promise<string | undefined>;
|
|
232
|
+
showQuickPick(items: string[], options?: {
|
|
233
|
+
placeholder?: string;
|
|
234
|
+
}): Promise<string | undefined>;
|
|
235
|
+
};
|
|
236
|
+
ai: {
|
|
237
|
+
invokeTool(toolId: string, params: unknown): Promise<unknown>;
|
|
238
|
+
createAgent(config: Partial<PluginAgent>): Promise<string>;
|
|
239
|
+
invokeSkill(skillId: string, params?: unknown): Promise<unknown>;
|
|
240
|
+
getAvailableModels(): Promise<string[]>;
|
|
241
|
+
};
|
|
242
|
+
tasks: {
|
|
243
|
+
createTask(type: string, data: unknown): Promise<string>;
|
|
244
|
+
onDidCreateTask(callback: (task: unknown) => void): () => void;
|
|
245
|
+
updateTask(taskId: string, updates: unknown): Promise<void>;
|
|
246
|
+
completeTask(taskId: string): Promise<void>;
|
|
247
|
+
};
|
|
248
|
+
events: {
|
|
249
|
+
on(event: string, callback: (data: unknown) => void): () => void;
|
|
250
|
+
emit(event: string, data?: unknown): void;
|
|
251
|
+
once(event: string, callback: (data: unknown) => void): () => void;
|
|
252
|
+
};
|
|
253
|
+
commands: {
|
|
254
|
+
registerCommand(id: string, handler: (...args: unknown[]) => unknown): void;
|
|
255
|
+
executeCommand(id: string, ...args: unknown[]): Promise<unknown>;
|
|
256
|
+
getCommands(): string[];
|
|
257
|
+
};
|
|
258
|
+
tools: {
|
|
259
|
+
registerTool(tool: PluginTool, handler: (params: unknown) => Promise<unknown>): void;
|
|
260
|
+
invokeTool(toolId: string, params: unknown): Promise<unknown>;
|
|
261
|
+
getTools(): PluginTool[];
|
|
262
|
+
};
|
|
263
|
+
skills: {
|
|
264
|
+
registerSkill(skill: PluginSkill): void;
|
|
265
|
+
invokeSkill(skillId: string, context?: unknown): Promise<unknown>;
|
|
266
|
+
getSkills(): PluginSkill[];
|
|
267
|
+
getSkillByCommand(command: string): PluginSkill | undefined;
|
|
268
|
+
};
|
|
269
|
+
vendor: {
|
|
270
|
+
imageProcessor: {
|
|
271
|
+
isAvailable(): boolean;
|
|
272
|
+
sharp(input: Buffer): SharpInstance;
|
|
273
|
+
readClipboardImage?(maxWidth?: number, maxHeight?: number): Promise<ClipboardImageResult | null>;
|
|
274
|
+
hasClipboardImage?(): boolean;
|
|
275
|
+
};
|
|
276
|
+
audioCapture: {
|
|
277
|
+
isAvailable(): boolean;
|
|
278
|
+
startRecording(onData: (data: Buffer) => void, onEnd: () => void): boolean;
|
|
279
|
+
stopRecording(): void;
|
|
280
|
+
isRecording(): boolean;
|
|
281
|
+
startPlayback(sampleRate: number, channels: number): boolean;
|
|
282
|
+
writePlaybackData(data: Buffer): void;
|
|
283
|
+
stopPlayback(): void;
|
|
284
|
+
isPlaying(): boolean;
|
|
285
|
+
microphoneAuthorizationStatus(): number;
|
|
286
|
+
};
|
|
287
|
+
urlHandler: {
|
|
288
|
+
isAvailable(): boolean;
|
|
289
|
+
registerUrlHandler(): Promise<boolean>;
|
|
290
|
+
getLaunchUrl(): string | null;
|
|
291
|
+
onOpenUrl(callback: (url: string) => void): () => void;
|
|
292
|
+
};
|
|
293
|
+
modifiers: {
|
|
294
|
+
isAvailable(): boolean;
|
|
295
|
+
getModifiers(): string[];
|
|
296
|
+
isModifierPressed(modifier: string): boolean;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
export interface SharpInstance {
|
|
301
|
+
metadata(): Promise<{
|
|
302
|
+
width: number;
|
|
303
|
+
height: number;
|
|
304
|
+
format: string;
|
|
305
|
+
}>;
|
|
306
|
+
resize(width: number, height: number, options?: {
|
|
307
|
+
fit?: string;
|
|
308
|
+
withoutEnlargement?: boolean;
|
|
309
|
+
}): SharpInstance;
|
|
310
|
+
jpeg(options?: {
|
|
311
|
+
quality?: number;
|
|
312
|
+
}): SharpInstance;
|
|
313
|
+
png(options?: {
|
|
314
|
+
compressionLevel?: number;
|
|
315
|
+
palette?: boolean;
|
|
316
|
+
colors?: number;
|
|
317
|
+
}): SharpInstance;
|
|
318
|
+
webp(options?: {
|
|
319
|
+
quality?: number;
|
|
320
|
+
}): SharpInstance;
|
|
321
|
+
toBuffer(): Promise<Buffer>;
|
|
322
|
+
}
|
|
323
|
+
export interface ClipboardImageResult {
|
|
324
|
+
png: Buffer;
|
|
325
|
+
originalWidth: number;
|
|
326
|
+
originalHeight: number;
|
|
327
|
+
width: number;
|
|
328
|
+
height: number;
|
|
329
|
+
}
|
|
330
|
+
export interface PluginContext {
|
|
331
|
+
id: PluginID;
|
|
332
|
+
manifest: PluginManifest;
|
|
333
|
+
path: string;
|
|
334
|
+
api: PluginAPI;
|
|
335
|
+
logger: {
|
|
336
|
+
info: (...args: unknown[]) => void;
|
|
337
|
+
warn: (...args: unknown[]) => void;
|
|
338
|
+
error: (...args: unknown[]) => void;
|
|
339
|
+
debug: (...args: unknown[]) => void;
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
export interface PluginModule {
|
|
343
|
+
activate?(context: PluginContext): Promise<void> | void;
|
|
344
|
+
deactivate?(): Promise<void> | void;
|
|
345
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluginTypes.js","sourceRoot":"","sources":["../../src/shared/pluginTypes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export type RuntimeTaskKind = 'shell' | 'terminal' | 'agent' | 'mcp' | 'workflow' | 'remote';
|
|
2
|
+
export type RuntimeTaskStatus = 'starting' | 'running' | 'stopping' | 'completed' | 'failed' | 'stopped' | 'interrupted' | 'orphaned';
|
|
3
|
+
export type RuntimeRestartPolicy = 'never' | 'on-failure' | 'always';
|
|
4
|
+
export interface RuntimeTask {
|
|
5
|
+
id: string;
|
|
6
|
+
kind: RuntimeTaskKind;
|
|
7
|
+
ownerSessionId?: string;
|
|
8
|
+
parentTaskId?: string;
|
|
9
|
+
status: RuntimeTaskStatus;
|
|
10
|
+
command?: string;
|
|
11
|
+
cwd?: string;
|
|
12
|
+
pid?: number;
|
|
13
|
+
startedAt: number;
|
|
14
|
+
updatedAt: number;
|
|
15
|
+
endedAt?: number;
|
|
16
|
+
exitCode?: number | null;
|
|
17
|
+
logPath?: string;
|
|
18
|
+
outputOffset?: number;
|
|
19
|
+
outputBytes?: number;
|
|
20
|
+
interactive: boolean;
|
|
21
|
+
restartPolicy: RuntimeRestartPolicy;
|
|
22
|
+
error?: string;
|
|
23
|
+
metadata?: Record<string, unknown>;
|
|
24
|
+
}
|
|
25
|
+
export interface RuntimeTaskFilter {
|
|
26
|
+
kind?: RuntimeTaskKind;
|
|
27
|
+
status?: RuntimeTaskStatus;
|
|
28
|
+
ownerSessionId?: string;
|
|
29
|
+
parentTaskId?: string;
|
|
30
|
+
}
|
|
31
|
+
export type RuntimeTaskEvent = {
|
|
32
|
+
type: 'runtime-task:created';
|
|
33
|
+
task: RuntimeTask;
|
|
34
|
+
} | {
|
|
35
|
+
type: 'runtime-task:updated';
|
|
36
|
+
task: RuntimeTask;
|
|
37
|
+
} | {
|
|
38
|
+
type: 'runtime-task:finished';
|
|
39
|
+
task: RuntimeTask;
|
|
40
|
+
} | {
|
|
41
|
+
type: 'runtime-task:removed';
|
|
42
|
+
taskId: string;
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtimeTaskTypes.js","sourceRoot":"","sources":["../../src/shared/runtimeTaskTypes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { PluginSkill as Skill, SkillCategory } from './pluginTypes';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skillTypes.js","sourceRoot":"","sources":["../../src/shared/skillTypes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export type SubAgentDriver = 'main-model' | 'deepseek-flash' | 'deepseek-reasoner';
|
|
2
|
+
export type SubAgentThinking = 'disabled' | 'high' | 'max';
|
|
3
|
+
export interface SubAgentDefinition {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
description: string;
|
|
7
|
+
driver: SubAgentDriver;
|
|
8
|
+
systemPrompt: string;
|
|
9
|
+
maxTurns: number;
|
|
10
|
+
maxParallel: number;
|
|
11
|
+
maxOutputTokens?: number;
|
|
12
|
+
temperature?: number;
|
|
13
|
+
thinking?: SubAgentThinking;
|
|
14
|
+
}
|
|
15
|
+
export interface SubAgentEvidence {
|
|
16
|
+
path: string;
|
|
17
|
+
startLine: number;
|
|
18
|
+
endLine: number;
|
|
19
|
+
preview: string;
|
|
20
|
+
content?: string;
|
|
21
|
+
reason: string;
|
|
22
|
+
kind?: 'entry' | 'implementation' | 'caller' | 'config' | 'schema' | 'test' | 'root_cause' | 'supporting';
|
|
23
|
+
score?: number;
|
|
24
|
+
confidence?: 'high' | 'medium' | 'low';
|
|
25
|
+
symbol?: string;
|
|
26
|
+
}
|
|
27
|
+
export type SubAgentEvent = {
|
|
28
|
+
type: 'turn_start';
|
|
29
|
+
turn: number;
|
|
30
|
+
maxTurns: number;
|
|
31
|
+
} | {
|
|
32
|
+
type: 'model_wait';
|
|
33
|
+
turn: number;
|
|
34
|
+
elapsedMs: number;
|
|
35
|
+
timeoutMs: number;
|
|
36
|
+
} | {
|
|
37
|
+
type: 'model_retry';
|
|
38
|
+
turn: number;
|
|
39
|
+
attempt: number;
|
|
40
|
+
delayMs: number;
|
|
41
|
+
reason: string;
|
|
42
|
+
} | {
|
|
43
|
+
type: 'model_response';
|
|
44
|
+
turn: number;
|
|
45
|
+
protocol: string;
|
|
46
|
+
offeredTools: string[];
|
|
47
|
+
returnedTools: string[];
|
|
48
|
+
} | {
|
|
49
|
+
type: 'turn_complete';
|
|
50
|
+
turn: number;
|
|
51
|
+
calls: number;
|
|
52
|
+
modelElapsedMs?: number;
|
|
53
|
+
toolElapsedMs?: number;
|
|
54
|
+
totalElapsedMs?: number;
|
|
55
|
+
inputTokens?: number;
|
|
56
|
+
outputTokens?: number;
|
|
57
|
+
cacheReadTokens?: number;
|
|
58
|
+
reasoningTokens?: number;
|
|
59
|
+
} | {
|
|
60
|
+
type: 'tool_call';
|
|
61
|
+
tool: string;
|
|
62
|
+
args: unknown;
|
|
63
|
+
turn: number;
|
|
64
|
+
} | {
|
|
65
|
+
type: 'tool_result';
|
|
66
|
+
tool: string;
|
|
67
|
+
ok: boolean;
|
|
68
|
+
summary: string;
|
|
69
|
+
turn: number;
|
|
70
|
+
elapsedMs?: number;
|
|
71
|
+
operations?: number;
|
|
72
|
+
readOperations?: number;
|
|
73
|
+
} | {
|
|
74
|
+
type: 'evidence';
|
|
75
|
+
evidence: SubAgentEvidence;
|
|
76
|
+
} | {
|
|
77
|
+
type: 'final';
|
|
78
|
+
text: string;
|
|
79
|
+
} | {
|
|
80
|
+
type: 'error';
|
|
81
|
+
message: string;
|
|
82
|
+
};
|
|
83
|
+
export interface SubAgentInvocation {
|
|
84
|
+
definition: SubAgentDefinition;
|
|
85
|
+
objective: string;
|
|
86
|
+
workspacePath: string;
|
|
87
|
+
codemap?: string;
|
|
88
|
+
abortSignal?: AbortSignal;
|
|
89
|
+
onEvent?: (event: SubAgentEvent) => void;
|
|
90
|
+
}
|
|
91
|
+
export interface SubAgentResult {
|
|
92
|
+
ok: boolean;
|
|
93
|
+
finalText: string;
|
|
94
|
+
evidence: SubAgentEvidence[];
|
|
95
|
+
turns: number;
|
|
96
|
+
elapsedMs: number;
|
|
97
|
+
truncated: boolean;
|
|
98
|
+
error?: string;
|
|
99
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subAgentTypes.js","sourceRoot":"","sources":["../../src/shared/subAgentTypes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export type TerminalSessionStatus = 'starting' | 'running' | 'exited' | 'error';
|
|
2
|
+
export interface TerminalShellInfo {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
command: string;
|
|
6
|
+
args?: string[];
|
|
7
|
+
available: boolean;
|
|
8
|
+
reason?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface TerminalOutputChunk {
|
|
11
|
+
seq: number;
|
|
12
|
+
data: string;
|
|
13
|
+
timestamp: number;
|
|
14
|
+
}
|
|
15
|
+
export interface TerminalSessionInfo {
|
|
16
|
+
id: string;
|
|
17
|
+
pid: number;
|
|
18
|
+
shell: string;
|
|
19
|
+
shellId: string;
|
|
20
|
+
shellLabel: string;
|
|
21
|
+
cwd: string;
|
|
22
|
+
status: TerminalSessionStatus;
|
|
23
|
+
createdAt: number;
|
|
24
|
+
updatedAt: number;
|
|
25
|
+
isAgentSession: boolean;
|
|
26
|
+
title: string;
|
|
27
|
+
command?: string;
|
|
28
|
+
runtimeTaskId?: string;
|
|
29
|
+
logPath?: string;
|
|
30
|
+
outputBytes?: number;
|
|
31
|
+
omittedBytes?: number;
|
|
32
|
+
firstSeq?: number;
|
|
33
|
+
lastSeq?: number;
|
|
34
|
+
recovered?: boolean;
|
|
35
|
+
canWrite?: boolean;
|
|
36
|
+
exitCode?: number | null;
|
|
37
|
+
exitSignal?: string | null;
|
|
38
|
+
error?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface TerminalCreateOptions {
|
|
41
|
+
shell?: string;
|
|
42
|
+
cwd?: string;
|
|
43
|
+
env?: Record<string, string>;
|
|
44
|
+
cols?: number;
|
|
45
|
+
rows?: number;
|
|
46
|
+
isAgentSession?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface TerminalCreateResult {
|
|
49
|
+
success: boolean;
|
|
50
|
+
session?: TerminalSessionInfo;
|
|
51
|
+
id?: string;
|
|
52
|
+
pid?: number;
|
|
53
|
+
shell?: string;
|
|
54
|
+
cwd?: string;
|
|
55
|
+
error?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface TerminalListResult {
|
|
58
|
+
success: boolean;
|
|
59
|
+
sessions?: TerminalSessionInfo[];
|
|
60
|
+
error?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface TerminalBufferResult {
|
|
63
|
+
success: boolean;
|
|
64
|
+
chunks?: TerminalOutputChunk[];
|
|
65
|
+
session?: TerminalSessionInfo;
|
|
66
|
+
firstSeq?: number;
|
|
67
|
+
lastSeq?: number;
|
|
68
|
+
omittedBytes?: number;
|
|
69
|
+
error?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface TerminalStartCommandResult {
|
|
72
|
+
sessionId: string;
|
|
73
|
+
session: TerminalSessionInfo;
|
|
74
|
+
}
|
|
75
|
+
export interface TerminalShellsResult {
|
|
76
|
+
success: boolean;
|
|
77
|
+
shells?: TerminalShellInfo[];
|
|
78
|
+
defaultShellId?: string;
|
|
79
|
+
error?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface TerminalRunCommandResult {
|
|
82
|
+
success: boolean;
|
|
83
|
+
output?: string;
|
|
84
|
+
exitCode?: number | null;
|
|
85
|
+
completed?: boolean;
|
|
86
|
+
error?: string;
|
|
87
|
+
}
|
|
88
|
+
export interface TerminalDataEvent {
|
|
89
|
+
sessionId: string;
|
|
90
|
+
data: string;
|
|
91
|
+
seq: number;
|
|
92
|
+
timestamp: number;
|
|
93
|
+
}
|
|
94
|
+
export interface TerminalExitEvent {
|
|
95
|
+
sessionId: string;
|
|
96
|
+
exitCode: number | null;
|
|
97
|
+
exitSignal?: string | null;
|
|
98
|
+
timestamp: number;
|
|
99
|
+
}
|
|
100
|
+
export interface TerminalStatusEvent {
|
|
101
|
+
session: TerminalSessionInfo;
|
|
102
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminalTypes.js","sourceRoot":"","sources":["../../src/shared/terminalTypes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ToolCall } from './agentTypes';
|
|
2
|
+
export interface TextToolCallParseResult {
|
|
3
|
+
toolCalls: ToolCall[];
|
|
4
|
+
cleanedText: string;
|
|
5
|
+
containsToolMarkup: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function stripTextToolCallMarkup(text: string, options?: {
|
|
8
|
+
stripIncomplete?: boolean;
|
|
9
|
+
}): string;
|
|
10
|
+
export declare function parseTextToolCalls(text: string): TextToolCallParseResult;
|