@aria-cli/cli 1.0.54 → 1.0.55
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/bin/aria.mjs +671 -802
- package/dist/.tsbuildinfo +1 -0
- package/dist/attached-local-control-client.js +826 -0
- package/dist/attached-local-control-client.js.map +1 -0
- package/dist/bootstrap-local-control-client.js +2 -0
- package/dist/bootstrap-local-control-client.js.map +1 -0
- package/dist/capability-aware-method-proxy.js +42 -0
- package/dist/capability-aware-method-proxy.js.map +1 -0
- package/dist/cli-context.js +160 -0
- package/dist/cli-context.js.map +1 -0
- package/dist/commands/arions.js +174 -0
- package/dist/commands/arions.js.map +1 -0
- package/dist/commands/auth.js +123 -0
- package/dist/commands/auth.js.map +1 -0
- package/dist/commands/daemon.js +367 -0
- package/dist/commands/daemon.js.map +1 -0
- package/dist/commands/definitions.js +176 -0
- package/dist/commands/definitions.js.map +1 -0
- package/dist/commands/index.js +80 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/login-handler.js +1108 -0
- package/dist/commands/login-handler.js.map +1 -0
- package/dist/commands/logout-handler.js +92 -0
- package/dist/commands/logout-handler.js.map +1 -0
- package/dist/commands/memory-handlers.js +89 -0
- package/dist/commands/memory-handlers.js.map +1 -0
- package/dist/commands/pairing.js +60 -0
- package/dist/commands/pairing.js.map +1 -0
- package/dist/commands/runtime-cutover-reset-command.js +12 -0
- package/dist/commands/runtime-cutover-reset-command.js.map +1 -0
- package/dist/commands/runtime-cutover-reset.js +265 -0
- package/dist/commands/runtime-cutover-reset.js.map +1 -0
- package/dist/commands/terminal-setup.js +84 -0
- package/dist/commands/terminal-setup.js.map +1 -0
- package/dist/config/aria-config.js +238 -0
- package/dist/config/aria-config.js.map +1 -0
- package/dist/config/index.js +3 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/loader.js +97 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config.js +142 -0
- package/dist/config.js.map +1 -0
- package/dist/daemon-info.js +10 -0
- package/dist/daemon-info.js.map +1 -0
- package/dist/ensure-daemon.js +128 -0
- package/dist/ensure-daemon.js.map +1 -0
- package/dist/entrypoints/command-mode.js +5 -0
- package/dist/entrypoints/command-mode.js.map +1 -0
- package/dist/entrypoints/daemon.js +50 -0
- package/dist/entrypoints/daemon.js.map +1 -0
- package/dist/entrypoints/headless-stdio.js +25 -0
- package/dist/entrypoints/headless-stdio.js.map +1 -0
- package/dist/entrypoints/interactive.d.ts.map +1 -0
- package/dist/entrypoints/interactive.js +80 -0
- package/dist/entrypoints/interactive.js.map +1 -0
- package/dist/event-loop-watchdog.js +73 -0
- package/dist/event-loop-watchdog.js.map +1 -0
- package/dist/headless/auth-orchestrator.js +508 -0
- package/dist/headless/auth-orchestrator.js.map +1 -0
- package/dist/headless/auth-service.js +43 -0
- package/dist/headless/auth-service.js.map +1 -0
- package/dist/headless/bootstrap-fast-path.js +112 -0
- package/dist/headless/bootstrap-fast-path.js.map +1 -0
- package/dist/headless/call-command.js +143 -0
- package/dist/headless/call-command.js.map +1 -0
- package/dist/headless/daemon-service.js +318 -0
- package/dist/headless/daemon-service.js.map +1 -0
- package/dist/headless/hook-actions.js +235 -0
- package/dist/headless/hook-actions.js.map +1 -0
- package/dist/headless/hook-service.js +42 -0
- package/dist/headless/hook-service.js.map +1 -0
- package/dist/headless/kernel-services.js +216 -0
- package/dist/headless/kernel-services.js.map +1 -0
- package/dist/headless/kernel.js +785 -0
- package/dist/headless/kernel.js.map +1 -0
- package/dist/headless/operations/arion.js +119 -0
- package/dist/headless/operations/arion.js.map +1 -0
- package/dist/headless/operations/auth.js +45 -0
- package/dist/headless/operations/auth.js.map +1 -0
- package/dist/headless/operations/client.js +31 -0
- package/dist/headless/operations/client.js.map +1 -0
- package/dist/headless/operations/config.js +69 -0
- package/dist/headless/operations/config.js.map +1 -0
- package/dist/headless/operations/daemon.js +47 -0
- package/dist/headless/operations/daemon.js.map +1 -0
- package/dist/headless/operations/hook.js +56 -0
- package/dist/headless/operations/hook.js.map +1 -0
- package/dist/headless/operations/index.js +11 -0
- package/dist/headless/operations/index.js.map +1 -0
- package/dist/headless/operations/memory.js +102 -0
- package/dist/headless/operations/memory.js.map +1 -0
- package/dist/headless/operations/message.js +279 -0
- package/dist/headless/operations/message.js.map +1 -0
- package/dist/headless/operations/model.js +100 -0
- package/dist/headless/operations/model.js.map +1 -0
- package/dist/headless/operations/peer.js +56 -0
- package/dist/headless/operations/peer.js.map +1 -0
- package/dist/headless/operations/run.js +24 -0
- package/dist/headless/operations/run.js.map +1 -0
- package/dist/headless/operations/session.js +90 -0
- package/dist/headless/operations/session.js.map +1 -0
- package/dist/headless/operations/system.js +19 -0
- package/dist/headless/operations/system.js.map +1 -0
- package/dist/headless/operations/utils.js +35 -0
- package/dist/headless/operations/utils.js.map +1 -0
- package/dist/headless/run-orchestrator.js +703 -0
- package/dist/headless/run-orchestrator.js.map +1 -0
- package/dist/headless/stdio-server.js +439 -0
- package/dist/headless/stdio-server.js.map +1 -0
- package/dist/history/SessionHistory.js +8 -0
- package/dist/history/SessionHistory.js.map +1 -0
- package/dist/history/SessionHistoryClient.js +186 -0
- package/dist/history/SessionHistoryClient.js.map +1 -0
- package/dist/history/conversation-message.js +112 -0
- package/dist/history/conversation-message.js.map +1 -0
- package/dist/history/index.js +8 -0
- package/dist/history/index.js.map +1 -0
- package/dist/history/jsonl-replay.js +154 -0
- package/dist/history/jsonl-replay.js.map +1 -0
- package/dist/history/repair-tool-pairing.js +84 -0
- package/dist/history/repair-tool-pairing.js.map +1 -0
- package/dist/history/stall-phase-bridge.js +11 -0
- package/dist/history/stall-phase-bridge.js.map +1 -0
- package/dist/history/turn-accumulator.js +427 -0
- package/dist/history/turn-accumulator.js.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/ink-repl.d.ts.map +1 -0
- package/dist/ink-repl.js +4183 -0
- package/dist/ink-repl.js.map +1 -0
- package/dist/local-control-bootstrap.js +26 -0
- package/dist/local-control-bootstrap.js.map +1 -0
- package/dist/local-control-client.js +2 -0
- package/dist/local-control-client.js.map +1 -0
- package/dist/local-control-error-reporting.js +34 -0
- package/dist/local-control-error-reporting.js.map +1 -0
- package/dist/local-control-http-client.js +362 -0
- package/dist/local-control-http-client.js.map +1 -0
- package/dist/local-control-lazy-wrapper.js +363 -0
- package/dist/local-control-lazy-wrapper.js.map +1 -0
- package/dist/local-control-manager.js +146 -0
- package/dist/local-control-manager.js.map +1 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +62 -0
- package/dist/main.js.map +1 -0
- package/dist/network-security.js +62 -0
- package/dist/network-security.js.map +1 -0
- package/dist/networking-server.js +38 -0
- package/dist/networking-server.js.map +1 -0
- package/dist/peer-identity.js +23 -0
- package/dist/peer-identity.js.map +1 -0
- package/dist/polling-subscription.js +34 -0
- package/dist/polling-subscription.js.map +1 -0
- package/dist/relaunch.d.ts +63 -0
- package/dist/relaunch.d.ts.map +1 -0
- package/dist/relaunch.js +617 -0
- package/dist/relaunch.js.map +1 -0
- package/dist/release-notes.js +35 -0
- package/dist/release-notes.js.map +1 -0
- package/dist/repl-cleanup.js +47 -0
- package/dist/repl-cleanup.js.map +1 -0
- package/dist/runtime/configure-bun-sqlite.js +3 -0
- package/dist/runtime/configure-bun-sqlite.js.map +1 -0
- package/dist/runtime/crash-handlers.js +111 -0
- package/dist/runtime/crash-handlers.js.map +1 -0
- package/dist/runtime/interactive-invocation.js +39 -0
- package/dist/runtime/interactive-invocation.js.map +1 -0
- package/dist/runtime/internal-mode.js +14 -0
- package/dist/runtime/internal-mode.js.map +1 -0
- package/dist/runtime/launch-spec.js +64 -0
- package/dist/runtime/launch-spec.js.map +1 -0
- package/dist/runtime/owner-lease.js +44 -0
- package/dist/runtime/owner-lease.js.map +1 -0
- package/dist/runtime/public-mode.js +20 -0
- package/dist/runtime/public-mode.js.map +1 -0
- package/dist/runtime/run-internal-mode.d.ts.map +1 -0
- package/dist/runtime/run-internal-mode.js +18 -0
- package/dist/runtime/run-internal-mode.js.map +1 -0
- package/dist/runtime/runtime-kind.js +32 -0
- package/dist/runtime/runtime-kind.js.map +1 -0
- package/dist/runtime/spawn-aria.js +38 -0
- package/dist/runtime/spawn-aria.js.map +1 -0
- package/dist/selectable-client.js +2 -0
- package/dist/selectable-client.js.map +1 -0
- package/dist/selectable-peer.js +2 -0
- package/dist/selectable-peer.js.map +1 -0
- package/dist/session.js +203 -0
- package/dist/session.js.map +1 -0
- package/dist/slash-commands.js +80 -0
- package/dist/slash-commands.js.map +1 -0
- package/dist/sounds.js +210 -0
- package/dist/sounds.js.map +1 -0
- package/dist/ui/App.js +526 -0
- package/dist/ui/App.js.map +1 -0
- package/dist/ui/components/AnthropicMethodPicker.js +6 -0
- package/dist/ui/components/AnthropicMethodPicker.js.map +1 -0
- package/dist/ui/components/ArionPrompt.js +15 -0
- package/dist/ui/components/ArionPrompt.js.map +1 -0
- package/dist/ui/components/AutocompleteDropdown.js +23 -0
- package/dist/ui/components/AutocompleteDropdown.js.map +1 -0
- package/dist/ui/components/AutonomySelector.js +55 -0
- package/dist/ui/components/AutonomySelector.js.map +1 -0
- package/dist/ui/components/Banner.js +98 -0
- package/dist/ui/components/Banner.js.map +1 -0
- package/dist/ui/components/ConversationHistory.js +175 -0
- package/dist/ui/components/ConversationHistory.js.map +1 -0
- package/dist/ui/components/CopilotDeviceLoginFlow.js +88 -0
- package/dist/ui/components/CopilotDeviceLoginFlow.js.map +1 -0
- package/dist/ui/components/CopilotSourcePicker.js +50 -0
- package/dist/ui/components/CopilotSourcePicker.js.map +1 -0
- package/dist/ui/components/Cost.js +10 -0
- package/dist/ui/components/Cost.js.map +1 -0
- package/dist/ui/components/CustomSelect/option-map.js +30 -0
- package/dist/ui/components/CustomSelect/option-map.js.map +1 -0
- package/dist/ui/components/CustomSelect/select-option.js +13 -0
- package/dist/ui/components/CustomSelect/select-option.js.map +1 -0
- package/dist/ui/components/CustomSelect/select.js +42 -0
- package/dist/ui/components/CustomSelect/select.js.map +1 -0
- package/dist/ui/components/CustomSelect/use-select-state.js +179 -0
- package/dist/ui/components/CustomSelect/use-select-state.js.map +1 -0
- package/dist/ui/components/CustomSelect/use-select.js +15 -0
- package/dist/ui/components/CustomSelect/use-select.js.map +1 -0
- package/dist/ui/components/ErrorDisplay.js +35 -0
- package/dist/ui/components/ErrorDisplay.js.map +1 -0
- package/dist/ui/components/FallbackToolUseRejectedMessage.js +7 -0
- package/dist/ui/components/FallbackToolUseRejectedMessage.js.map +1 -0
- package/dist/ui/components/FileEditToolUpdatedMessage.js +57 -0
- package/dist/ui/components/FileEditToolUpdatedMessage.js.map +1 -0
- package/dist/ui/components/HandoffMarker.js +18 -0
- package/dist/ui/components/HandoffMarker.js.map +1 -0
- package/dist/ui/components/HighlightedCode.js +21 -0
- package/dist/ui/components/HighlightedCode.js.map +1 -0
- package/dist/ui/components/InputArea.js +187 -0
- package/dist/ui/components/InputArea.js.map +1 -0
- package/dist/ui/components/Message.js +25 -0
- package/dist/ui/components/Message.js.map +1 -0
- package/dist/ui/components/OAuthLoginFlow.js +113 -0
- package/dist/ui/components/OAuthLoginFlow.js.map +1 -0
- package/dist/ui/components/OutputTruncation.js +35 -0
- package/dist/ui/components/OutputTruncation.js.map +1 -0
- package/dist/ui/components/PermissionPrompt.js +79 -0
- package/dist/ui/components/PermissionPrompt.js.map +1 -0
- package/dist/ui/components/PipelineTimingPanel.js +15 -0
- package/dist/ui/components/PipelineTimingPanel.js.map +1 -0
- package/dist/ui/components/ProviderMethodPicker.js +61 -0
- package/dist/ui/components/ProviderMethodPicker.js.map +1 -0
- package/dist/ui/components/ProviderPicker.js +63 -0
- package/dist/ui/components/ProviderPicker.js.map +1 -0
- package/dist/ui/components/RenderItemView.js +71 -0
- package/dist/ui/components/RenderItemView.js.map +1 -0
- package/dist/ui/components/Spinner.js +46 -0
- package/dist/ui/components/Spinner.js.map +1 -0
- package/dist/ui/components/StatusBar.js +95 -0
- package/dist/ui/components/StatusBar.js.map +1 -0
- package/dist/ui/components/StreamingIndicator.js +55 -0
- package/dist/ui/components/StreamingIndicator.js.map +1 -0
- package/dist/ui/components/StructuredDiff.js +168 -0
- package/dist/ui/components/StructuredDiff.js.map +1 -0
- package/dist/ui/components/TextInputOverlay.js +43 -0
- package/dist/ui/components/TextInputOverlay.js.map +1 -0
- package/dist/ui/components/ThinkingBlock.js +82 -0
- package/dist/ui/components/ThinkingBlock.js.map +1 -0
- package/dist/ui/components/ToolCost.js +17 -0
- package/dist/ui/components/ToolCost.js.map +1 -0
- package/dist/ui/components/ToolExecution.js +61 -0
- package/dist/ui/components/ToolExecution.js.map +1 -0
- package/dist/ui/components/ToolHeader.js +51 -0
- package/dist/ui/components/ToolHeader.js.map +1 -0
- package/dist/ui/components/ToolRenderLayoutContext.js +14 -0
- package/dist/ui/components/ToolRenderLayoutContext.js.map +1 -0
- package/dist/ui/components/ToolResultWrapper.js +6 -0
- package/dist/ui/components/ToolResultWrapper.js.map +1 -0
- package/dist/ui/components/ToolUseLoader.js +35 -0
- package/dist/ui/components/ToolUseLoader.js.map +1 -0
- package/dist/ui/components/TraceWaterfall.js +91 -0
- package/dist/ui/components/TraceWaterfall.js.map +1 -0
- package/dist/ui/components/index.js +33 -0
- package/dist/ui/components/index.js.map +1 -0
- package/dist/ui/components/messages/AssistantTextMessage.js +25 -0
- package/dist/ui/components/messages/AssistantTextMessage.js.map +1 -0
- package/dist/ui/components/messages/UserImageMessage.js +12 -0
- package/dist/ui/components/messages/UserImageMessage.js.map +1 -0
- package/dist/ui/components/messages/UserTextMessage.js +12 -0
- package/dist/ui/components/messages/UserTextMessage.js.map +1 -0
- package/dist/ui/components/overlays/ArionSelector.js +68 -0
- package/dist/ui/components/overlays/ArionSelector.js.map +1 -0
- package/dist/ui/components/overlays/ClientSelector.js +62 -0
- package/dist/ui/components/overlays/ClientSelector.js.map +1 -0
- package/dist/ui/components/overlays/CommandPalette.js +67 -0
- package/dist/ui/components/overlays/CommandPalette.js.map +1 -0
- package/dist/ui/components/overlays/DaemonControl.js +87 -0
- package/dist/ui/components/overlays/DaemonControl.js.map +1 -0
- package/dist/ui/components/overlays/InviteShareOverlay.js +15 -0
- package/dist/ui/components/overlays/InviteShareOverlay.js.map +1 -0
- package/dist/ui/components/overlays/JoinInviteOverlay.js +32 -0
- package/dist/ui/components/overlays/JoinInviteOverlay.js.map +1 -0
- package/dist/ui/components/overlays/MemoryBrowser.js +100 -0
- package/dist/ui/components/overlays/MemoryBrowser.js.map +1 -0
- package/dist/ui/components/overlays/MessageSelector.js +123 -0
- package/dist/ui/components/overlays/MessageSelector.js.map +1 -0
- package/dist/ui/components/overlays/ModelSelector.js +211 -0
- package/dist/ui/components/overlays/ModelSelector.js.map +1 -0
- package/dist/ui/components/overlays/PairRequestOverlay.js +42 -0
- package/dist/ui/components/overlays/PairRequestOverlay.js.map +1 -0
- package/dist/ui/components/overlays/PeerSelector.js +84 -0
- package/dist/ui/components/overlays/PeerSelector.js.map +1 -0
- package/dist/ui/components/overlays/SessionSelector.js +102 -0
- package/dist/ui/components/overlays/SessionSelector.js.map +1 -0
- package/dist/ui/components/overlays/SoundSelector.js +86 -0
- package/dist/ui/components/overlays/SoundSelector.js.map +1 -0
- package/dist/ui/components/overlays/ThemeSelector.js +139 -0
- package/dist/ui/components/overlays/ThemeSelector.js.map +1 -0
- package/dist/ui/components/overlays/index.js +15 -0
- package/dist/ui/components/overlays/index.js.map +1 -0
- package/dist/ui/components/permissions/BashPermissionRequest/BashPermissionRequest.js +53 -0
- package/dist/ui/components/permissions/BashPermissionRequest/BashPermissionRequest.js.map +1 -0
- package/dist/ui/components/permissions/FallbackPermissionRequest.js +56 -0
- package/dist/ui/components/permissions/FallbackPermissionRequest.js.map +1 -0
- package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.js +76 -0
- package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.js.map +1 -0
- package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditToolDiff.js +18 -0
- package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditToolDiff.js.map +1 -0
- package/dist/ui/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.js +64 -0
- package/dist/ui/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.js.map +1 -0
- package/dist/ui/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.js +26 -0
- package/dist/ui/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.js.map +1 -0
- package/dist/ui/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.js +141 -0
- package/dist/ui/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.js.map +1 -0
- package/dist/ui/components/permissions/PermissionRequest.js +70 -0
- package/dist/ui/components/permissions/PermissionRequest.js.map +1 -0
- package/dist/ui/components/permissions/PermissionRequestTitle.js +41 -0
- package/dist/ui/components/permissions/PermissionRequestTitle.js.map +1 -0
- package/dist/ui/components/permissions/hooks.js +10 -0
- package/dist/ui/components/permissions/hooks.js.map +1 -0
- package/dist/ui/components/permissions/toolUseOptions.js +68 -0
- package/dist/ui/components/permissions/toolUseOptions.js.map +1 -0
- package/dist/ui/components/permissions/utils.js +10 -0
- package/dist/ui/components/permissions/utils.js.map +1 -0
- package/dist/ui/components/text-input/Cursor.js +326 -0
- package/dist/ui/components/text-input/Cursor.js.map +1 -0
- package/dist/ui/components/text-input/TextInput.js +231 -0
- package/dist/ui/components/text-input/TextInput.js.map +1 -0
- package/dist/ui/components/text-input/imagePaste.js +28 -0
- package/dist/ui/components/text-input/imagePaste.js.map +1 -0
- package/dist/ui/components/text-input/index.js +6 -0
- package/dist/ui/components/text-input/index.js.map +1 -0
- package/dist/ui/components/text-input/useDoublePress.js +30 -0
- package/dist/ui/components/text-input/useDoublePress.js.map +1 -0
- package/dist/ui/components/text-input/useTextInput.js +245 -0
- package/dist/ui/components/text-input/useTextInput.js.map +1 -0
- package/dist/ui/components/tool-types.js +9 -0
- package/dist/ui/components/tool-types.js.map +1 -0
- package/dist/ui/constants/figures.js +4 -0
- package/dist/ui/constants/figures.js.map +1 -0
- package/dist/ui/constants/index.js +3 -0
- package/dist/ui/constants/index.js.map +1 -0
- package/dist/ui/display-mode.js +93 -0
- package/dist/ui/display-mode.js.map +1 -0
- package/dist/ui/display-policy.js +19 -0
- package/dist/ui/display-policy.js.map +1 -0
- package/dist/ui/hooks/index.js +6 -0
- package/dist/ui/hooks/index.js.map +1 -0
- package/dist/ui/hooks/useCommandAutocomplete.js +93 -0
- package/dist/ui/hooks/useCommandAutocomplete.js.map +1 -0
- package/dist/ui/hooks/useDoublePress.js +37 -0
- package/dist/ui/hooks/useDoublePress.js.map +1 -0
- package/dist/ui/hooks/useIndicatorState.js +55 -0
- package/dist/ui/hooks/useIndicatorState.js.map +1 -0
- package/dist/ui/hooks/useInterval.js +23 -0
- package/dist/ui/hooks/useInterval.js.map +1 -0
- package/dist/ui/hooks/useKeyboardShortcuts.js +127 -0
- package/dist/ui/hooks/useKeyboardShortcuts.js.map +1 -0
- package/dist/ui/hooks/useTerminalSize.js +55 -0
- package/dist/ui/hooks/useTerminalSize.js.map +1 -0
- package/dist/ui/hooks/useUnifiedMessages.js +117 -0
- package/dist/ui/hooks/useUnifiedMessages.js.map +1 -0
- package/dist/ui/indicator-state.js +44 -0
- package/dist/ui/indicator-state.js.map +1 -0
- package/dist/ui/markdown/highlight.js +44 -0
- package/dist/ui/markdown/highlight.js.map +1 -0
- package/dist/ui/markdown/index.js +1460 -0
- package/dist/ui/markdown/index.js.map +1 -0
- package/dist/ui/markdown/tokenizer.js +24 -0
- package/dist/ui/markdown/tokenizer.js.map +1 -0
- package/dist/ui/render-item.js +5 -0
- package/dist/ui/render-item.js.map +1 -0
- package/dist/ui/screens/REPL.js +119 -0
- package/dist/ui/screens/REPL.js.map +1 -0
- package/dist/ui/screens/approval-lifecycle.js +38 -0
- package/dist/ui/screens/approval-lifecycle.js.map +1 -0
- package/dist/ui/status-line.js +72 -0
- package/dist/ui/status-line.js.map +1 -0
- package/dist/ui/theme/index.js +51 -0
- package/dist/ui/theme/index.js.map +1 -0
- package/dist/ui/theme/themes/claude-dark-daltonized.js +51 -0
- package/dist/ui/theme/themes/claude-dark-daltonized.js.map +1 -0
- package/dist/ui/theme/themes/claude-dark.js +50 -0
- package/dist/ui/theme/themes/claude-dark.js.map +1 -0
- package/dist/ui/theme/themes/claude-light-daltonized.js +51 -0
- package/dist/ui/theme/themes/claude-light-daltonized.js.map +1 -0
- package/dist/ui/theme/themes/claude-light.js +50 -0
- package/dist/ui/theme/themes/claude-light.js.map +1 -0
- package/dist/ui/theme/themes/dark-accessible.js +18 -0
- package/dist/ui/theme/themes/dark-accessible.js.map +1 -0
- package/dist/ui/theme/themes/dark.js +49 -0
- package/dist/ui/theme/themes/dark.js.map +1 -0
- package/dist/ui/theme/themes/light-accessible.js +18 -0
- package/dist/ui/theme/themes/light-accessible.js.map +1 -0
- package/dist/ui/theme/themes/light.js +49 -0
- package/dist/ui/theme/themes/light.js.map +1 -0
- package/dist/ui/theme/types.js +3 -0
- package/dist/ui/theme/types.js.map +1 -0
- package/dist/ui/theme.js +142 -0
- package/dist/ui/theme.js.map +1 -0
- package/dist/ui/to-render-items.js +145 -0
- package/dist/ui/to-render-items.js.map +1 -0
- package/dist/ui/tools/AgentTool/index.js +30 -0
- package/dist/ui/tools/AgentTool/index.js.map +1 -0
- package/dist/ui/tools/ArchitectTool/index.js +31 -0
- package/dist/ui/tools/ArchitectTool/index.js.map +1 -0
- package/dist/ui/tools/AskUserTool/index.js +46 -0
- package/dist/ui/tools/AskUserTool/index.js.map +1 -0
- package/dist/ui/tools/BashTool/BashToolResultMessage.js +11 -0
- package/dist/ui/tools/BashTool/BashToolResultMessage.js.map +1 -0
- package/dist/ui/tools/BashTool/OutputLine.js +21 -0
- package/dist/ui/tools/BashTool/OutputLine.js.map +1 -0
- package/dist/ui/tools/BashTool/index.js +91 -0
- package/dist/ui/tools/BashTool/index.js.map +1 -0
- package/dist/ui/tools/BrowseTool/index.js +43 -0
- package/dist/ui/tools/BrowseTool/index.js.map +1 -0
- package/dist/ui/tools/BrowserTool/index.js +47 -0
- package/dist/ui/tools/BrowserTool/index.js.map +1 -0
- package/dist/ui/tools/CbmTool/index.js +188 -0
- package/dist/ui/tools/CbmTool/index.js.map +1 -0
- package/dist/ui/tools/CheckDelegationTool/index.js +46 -0
- package/dist/ui/tools/CheckDelegationTool/index.js.map +1 -0
- package/dist/ui/tools/CheckMessagesTool/index.js +85 -0
- package/dist/ui/tools/CheckMessagesTool/index.js.map +1 -0
- package/dist/ui/tools/CreateQuipTool/index.js +30 -0
- package/dist/ui/tools/CreateQuipTool/index.js.map +1 -0
- package/dist/ui/tools/CreateSkillTool/index.js +22 -0
- package/dist/ui/tools/CreateSkillTool/index.js.map +1 -0
- package/dist/ui/tools/CreateToolTool/index.js +31 -0
- package/dist/ui/tools/CreateToolTool/index.js.map +1 -0
- package/dist/ui/tools/DelegateRemoteTool/index.js +42 -0
- package/dist/ui/tools/DelegateRemoteTool/index.js.map +1 -0
- package/dist/ui/tools/DeployTool/index.js +47 -0
- package/dist/ui/tools/DeployTool/index.js.map +1 -0
- package/dist/ui/tools/FffTool/index.js +103 -0
- package/dist/ui/tools/FffTool/index.js.map +1 -0
- package/dist/ui/tools/FileEditTool/index.js +67 -0
- package/dist/ui/tools/FileEditTool/index.js.map +1 -0
- package/dist/ui/tools/FileReadTool/index.js +68 -0
- package/dist/ui/tools/FileReadTool/index.js.map +1 -0
- package/dist/ui/tools/FileWriteTool/index.js +61 -0
- package/dist/ui/tools/FileWriteTool/index.js.map +1 -0
- package/dist/ui/tools/ForkTool/index.js +47 -0
- package/dist/ui/tools/ForkTool/index.js.map +1 -0
- package/dist/ui/tools/FrgTool/index.js +96 -0
- package/dist/ui/tools/FrgTool/index.js.map +1 -0
- package/dist/ui/tools/GetThreadTool/index.js +39 -0
- package/dist/ui/tools/GetThreadTool/index.js.map +1 -0
- package/dist/ui/tools/GlobTool/index.js +50 -0
- package/dist/ui/tools/GlobTool/index.js.map +1 -0
- package/dist/ui/tools/GrepTool/index.js +84 -0
- package/dist/ui/tools/GrepTool/index.js.map +1 -0
- package/dist/ui/tools/HatchArionTool/index.js +36 -0
- package/dist/ui/tools/HatchArionTool/index.js.map +1 -0
- package/dist/ui/tools/LearnSkillTool/index.js +22 -0
- package/dist/ui/tools/LearnSkillTool/index.js.map +1 -0
- package/dist/ui/tools/LearnTool/index.js +43 -0
- package/dist/ui/tools/LearnTool/index.js.map +1 -0
- package/dist/ui/tools/LearnToolTool/index.js +22 -0
- package/dist/ui/tools/LearnToolTool/index.js.map +1 -0
- package/dist/ui/tools/ListClientsTool/index.js +39 -0
- package/dist/ui/tools/ListClientsTool/index.js.map +1 -0
- package/dist/ui/tools/LspTool/index.js +261 -0
- package/dist/ui/tools/LspTool/index.js.map +1 -0
- package/dist/ui/tools/MCPTool/index.js +33 -0
- package/dist/ui/tools/MCPTool/index.js.map +1 -0
- package/dist/ui/tools/ManageNetworkTool/index.js +53 -0
- package/dist/ui/tools/ManageNetworkTool/index.js.map +1 -0
- package/dist/ui/tools/MemoryReadTool/index.js +64 -0
- package/dist/ui/tools/MemoryReadTool/index.js.map +1 -0
- package/dist/ui/tools/MemoryWriteTool/index.js +20 -0
- package/dist/ui/tools/MemoryWriteTool/index.js.map +1 -0
- package/dist/ui/tools/NotebookEditTool/index.js +33 -0
- package/dist/ui/tools/NotebookEditTool/index.js.map +1 -0
- package/dist/ui/tools/NotebookReadTool/index.js +25 -0
- package/dist/ui/tools/NotebookReadTool/index.js.map +1 -0
- package/dist/ui/tools/OutlookReadTool/index.js +66 -0
- package/dist/ui/tools/OutlookReadTool/index.js.map +1 -0
- package/dist/ui/tools/OutlookReplyTool/index.js +49 -0
- package/dist/ui/tools/OutlookReplyTool/index.js.map +1 -0
- package/dist/ui/tools/OutlookSendTool/index.js +49 -0
- package/dist/ui/tools/OutlookSendTool/index.js.map +1 -0
- package/dist/ui/tools/PauseDelegationTool/index.js +35 -0
- package/dist/ui/tools/PauseDelegationTool/index.js.map +1 -0
- package/dist/ui/tools/ProbeTool/index.js +121 -0
- package/dist/ui/tools/ProbeTool/index.js.map +1 -0
- package/dist/ui/tools/ProcessTool/index.js +66 -0
- package/dist/ui/tools/ProcessTool/index.js.map +1 -0
- package/dist/ui/tools/QuestListTool/index.js +46 -0
- package/dist/ui/tools/QuestListTool/index.js.map +1 -0
- package/dist/ui/tools/QuestReportTool/index.js +49 -0
- package/dist/ui/tools/QuestReportTool/index.js.map +1 -0
- package/dist/ui/tools/QuestUpdateTool/index.js +87 -0
- package/dist/ui/tools/QuestUpdateTool/index.js.map +1 -0
- package/dist/ui/tools/QuipCommentTool/index.js +69 -0
- package/dist/ui/tools/QuipCommentTool/index.js.map +1 -0
- package/dist/ui/tools/QuipReadTool/index.js +71 -0
- package/dist/ui/tools/QuipReadTool/index.js.map +1 -0
- package/dist/ui/tools/RestArionTool/index.js +32 -0
- package/dist/ui/tools/RestArionTool/index.js.map +1 -0
- package/dist/ui/tools/RestartTool/index.js +35 -0
- package/dist/ui/tools/RestartTool/index.js.map +1 -0
- package/dist/ui/tools/ResumeDelegationTool/index.js +35 -0
- package/dist/ui/tools/ResumeDelegationTool/index.js.map +1 -0
- package/dist/ui/tools/RetireArionTool/index.js +32 -0
- package/dist/ui/tools/RetireArionTool/index.js.map +1 -0
- package/dist/ui/tools/RgTool/index.js +73 -0
- package/dist/ui/tools/RgTool/index.js.map +1 -0
- package/dist/ui/tools/SearchKnowledgeTool/index.js +43 -0
- package/dist/ui/tools/SearchKnowledgeTool/index.js.map +1 -0
- package/dist/ui/tools/SearchMessagesTool/index.js +43 -0
- package/dist/ui/tools/SearchMessagesTool/index.js.map +1 -0
- package/dist/ui/tools/SelfDiagnoseTool/index.js +61 -0
- package/dist/ui/tools/SelfDiagnoseTool/index.js.map +1 -0
- package/dist/ui/tools/SendMessageTool/index.js +45 -0
- package/dist/ui/tools/SendMessageTool/index.js.map +1 -0
- package/dist/ui/tools/SerenaTool/index.js +124 -0
- package/dist/ui/tools/SerenaTool/index.js.map +1 -0
- package/dist/ui/tools/SessionHistoryTool/index.js +52 -0
- package/dist/ui/tools/SessionHistoryTool/index.js.map +1 -0
- package/dist/ui/tools/SgTool/index.js +80 -0
- package/dist/ui/tools/SgTool/index.js.map +1 -0
- package/dist/ui/tools/SlackReactTool/index.js +41 -0
- package/dist/ui/tools/SlackReactTool/index.js.map +1 -0
- package/dist/ui/tools/SlackReadTool/index.js +48 -0
- package/dist/ui/tools/SlackReadTool/index.js.map +1 -0
- package/dist/ui/tools/SlackSendTool/index.js +45 -0
- package/dist/ui/tools/SlackSendTool/index.js.map +1 -0
- package/dist/ui/tools/SpawnWorkerTool/index.js +33 -0
- package/dist/ui/tools/SpawnWorkerTool/index.js.map +1 -0
- package/dist/ui/tools/StickerRequestTool/index.js +19 -0
- package/dist/ui/tools/StickerRequestTool/index.js.map +1 -0
- package/dist/ui/tools/ThinkTool/index.js +17 -0
- package/dist/ui/tools/ThinkTool/index.js.map +1 -0
- package/dist/ui/tools/UgTool/index.js +108 -0
- package/dist/ui/tools/UgTool/index.js.map +1 -0
- package/dist/ui/tools/UseSkillTool/index.js +22 -0
- package/dist/ui/tools/UseSkillTool/index.js.map +1 -0
- package/dist/ui/tools/WakeArionTool/index.js +32 -0
- package/dist/ui/tools/WakeArionTool/index.js.map +1 -0
- package/dist/ui/tools/WebFetchTool/index.js +56 -0
- package/dist/ui/tools/WebFetchTool/index.js.map +1 -0
- package/dist/ui/tools/WebSearchTool/index.js +44 -0
- package/dist/ui/tools/WebSearchTool/index.js.map +1 -0
- package/dist/ui/tools/lsTool/index.js +58 -0
- package/dist/ui/tools/lsTool/index.js.map +1 -0
- package/dist/ui/tools/registry.js +197 -0
- package/dist/ui/tools/registry.js.map +1 -0
- package/dist/ui/tools/tool-renderer.js +11 -0
- package/dist/ui/tools/tool-renderer.js.map +1 -0
- package/dist/ui/tools/truncation.js +35 -0
- package/dist/ui/tools/truncation.js.map +1 -0
- package/dist/ui/types/anthropic.js +4 -0
- package/dist/ui/types/anthropic.js.map +1 -0
- package/dist/ui/types/index.js +2 -0
- package/dist/ui/types/index.js.map +1 -0
- package/dist/ui/types/message.js +3 -0
- package/dist/ui/types/message.js.map +1 -0
- package/dist/ui/types/tool.js +4 -0
- package/dist/ui/types/tool.js.map +1 -0
- package/dist/ui/utils/array.js +4 -0
- package/dist/ui/utils/array.js.map +1 -0
- package/dist/ui/utils/cursor.js +131 -0
- package/dist/ui/utils/cursor.js.map +1 -0
- package/dist/ui/utils/diff.js +120 -0
- package/dist/ui/utils/diff.js.map +1 -0
- package/dist/ui/utils/format.js +42 -0
- package/dist/ui/utils/format.js.map +1 -0
- package/dist/ui/utils/fuzzy.js +59 -0
- package/dist/ui/utils/fuzzy.js.map +1 -0
- package/dist/ui/utils/index.js +11 -0
- package/dist/ui/utils/index.js.map +1 -0
- package/dist/ui/utils/keys.js +8 -0
- package/dist/ui/utils/keys.js.map +1 -0
- package/dist/ui/utils/patch.js +17 -0
- package/dist/ui/utils/patch.js.map +1 -0
- package/dist/ui/utils/risk.js +114 -0
- package/dist/ui/utils/risk.js.map +1 -0
- package/dist/ui/utils/terminal-image.js +70 -0
- package/dist/ui/utils/terminal-image.js.map +1 -0
- package/dist/ui/utils/validation.js +48 -0
- package/dist/ui/utils/validation.js.map +1 -0
- package/dist/ui/verb-pairs.js +248 -0
- package/dist/ui/verb-pairs.js.map +1 -0
- package/dist/ui.js +131 -0
- package/dist/ui.js.map +1 -0
- package/package.json +73 -14
- package/src/entrypoints/command-mode.ts +5 -0
- package/src/entrypoints/daemon.ts +54 -0
- package/src/entrypoints/headless-stdio.ts +27 -0
- package/src/entrypoints/interactive.ts +112 -0
- package/src/main.ts +72 -0
- package/src/runtime/configure-bun-sqlite.ts +3 -0
- package/src/runtime/crash-handlers.ts +128 -0
- package/src/runtime/interactive-invocation.test.ts +42 -0
- package/src/runtime/interactive-invocation.ts +51 -0
- package/src/runtime/internal-mode.test.ts +19 -0
- package/src/runtime/internal-mode.ts +24 -0
- package/src/runtime/launch-spec.test.ts +26 -0
- package/src/runtime/launch-spec.ts +84 -0
- package/src/runtime/owner-lease.ts +52 -0
- package/src/runtime/public-mode.test.ts +18 -0
- package/src/runtime/public-mode.ts +19 -0
- package/src/runtime/run-internal-mode.ts +19 -0
- package/src/runtime/runtime-kind.test.ts +23 -0
- package/src/runtime/runtime-kind.ts +41 -0
- package/src/runtime/spawn-aria.ts +62 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
|
|
4
|
+
import { getTheme } from "../../theme/index.js";
|
|
5
|
+
import { safeFallbackText } from "../truncation.js";
|
|
6
|
+
export const OutlookReplyToolRenderers = {
|
|
7
|
+
displayName() {
|
|
8
|
+
return "Outlook Reply";
|
|
9
|
+
},
|
|
10
|
+
renderInput(input, { verbose } = {}) {
|
|
11
|
+
const theme = getTheme();
|
|
12
|
+
const messageId = String(input?.messageId ?? input?.message_id ?? "");
|
|
13
|
+
const replyAll = Boolean(input?.replyAll ?? input?.reply_all ?? false);
|
|
14
|
+
// Truncate messageId if too long
|
|
15
|
+
const displayId = messageId.length > 20 ? messageId.substring(0, 20) + "..." : messageId;
|
|
16
|
+
return (_jsx(Box, { flexDirection: "row", children: _jsxs(Text, { children: [displayId, replyAll && _jsx(Text, { color: theme.colors.textMuted, children: " [reply-all]" })] }) }));
|
|
17
|
+
},
|
|
18
|
+
renderRejection() {
|
|
19
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
20
|
+
},
|
|
21
|
+
renderOutput(output, { verbose } = {}) {
|
|
22
|
+
const theme = getTheme();
|
|
23
|
+
if (output == null) {
|
|
24
|
+
return (_jsx(Box, { flexDirection: "column", children: _jsx(Text, { color: theme.colors.error, children: "Failed to send reply" }) }));
|
|
25
|
+
}
|
|
26
|
+
const obj = output;
|
|
27
|
+
// Handle error case: { success: false, message: "..." }
|
|
28
|
+
if (obj.success === false) {
|
|
29
|
+
return (_jsx(Box, { flexDirection: "column", children: _jsx(Text, { color: theme.colors.error, children: String(obj.message ?? "Failed to send reply") }) }));
|
|
30
|
+
}
|
|
31
|
+
// Handle success case: { success: true, message: "Reply sent" }
|
|
32
|
+
if (obj.success === true) {
|
|
33
|
+
const message = String(obj.message ?? "Reply sent");
|
|
34
|
+
return (_jsx(Box, { flexDirection: "column", children: _jsx(Text, { color: theme.colors.success, children: message }) }));
|
|
35
|
+
}
|
|
36
|
+
// String output (likely success message or error)
|
|
37
|
+
if (typeof output === "string") {
|
|
38
|
+
if (output.toLowerCase().includes("sent") ||
|
|
39
|
+
output.toLowerCase().includes("success") ||
|
|
40
|
+
output.toLowerCase().includes("reply")) {
|
|
41
|
+
return (_jsx(Box, { flexDirection: "column", children: _jsx(Text, { color: theme.colors.success, children: output }) }));
|
|
42
|
+
}
|
|
43
|
+
return (_jsx(Box, { flexDirection: "column", children: _jsx(Text, { color: theme.colors.error, children: output }) }));
|
|
44
|
+
}
|
|
45
|
+
// Fallback for unexpected shapes
|
|
46
|
+
return (_jsx(Box, { flexDirection: "column", children: _jsx(Text, { children: safeFallbackText(output) }) }));
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/OutlookReplyTool/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,CAAC,MAAM,yBAAyB,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,GACnC,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
|
|
4
|
+
import { getTheme } from "../../theme/index.js";
|
|
5
|
+
import { safeFallbackText } from "../truncation.js";
|
|
6
|
+
export const OutlookSendToolRenderers = {
|
|
7
|
+
displayName() {
|
|
8
|
+
return "Outlook Send";
|
|
9
|
+
},
|
|
10
|
+
renderInput(input, { verbose } = {}) {
|
|
11
|
+
const theme = getTheme();
|
|
12
|
+
const to = String(input?.to ?? "");
|
|
13
|
+
let subject = String(input?.subject ?? "");
|
|
14
|
+
// Truncate subject to 40 chars
|
|
15
|
+
if (subject.length > 40) {
|
|
16
|
+
subject = subject.substring(0, 40) + "...";
|
|
17
|
+
}
|
|
18
|
+
return (_jsx(Box, { flexDirection: "row", children: _jsxs(Text, { children: ["to: ", to, subject && ` — "${subject}"`] }) }));
|
|
19
|
+
},
|
|
20
|
+
renderRejection() {
|
|
21
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
22
|
+
},
|
|
23
|
+
renderOutput(output, { verbose } = {}) {
|
|
24
|
+
const theme = getTheme();
|
|
25
|
+
if (output == null) {
|
|
26
|
+
return (_jsx(Box, { flexDirection: "column", children: _jsx(Text, { color: theme.colors.error, children: "Failed to send email" }) }));
|
|
27
|
+
}
|
|
28
|
+
const obj = output;
|
|
29
|
+
// Handle error case: { success: false, message: "..." }
|
|
30
|
+
if (obj.success === false) {
|
|
31
|
+
return (_jsx(Box, { flexDirection: "column", children: _jsx(Text, { color: theme.colors.error, children: String(obj.message ?? "Failed to send email") }) }));
|
|
32
|
+
}
|
|
33
|
+
// Handle success case: { success: true, message: "Sent to ..." }
|
|
34
|
+
if (obj.success === true) {
|
|
35
|
+
const message = String(obj.message ?? "Email sent");
|
|
36
|
+
return (_jsx(Box, { flexDirection: "column", children: _jsx(Text, { color: theme.colors.success, children: message }) }));
|
|
37
|
+
}
|
|
38
|
+
// String output (likely success message or error)
|
|
39
|
+
if (typeof output === "string") {
|
|
40
|
+
if (output.toLowerCase().includes("sent") || output.toLowerCase().includes("success")) {
|
|
41
|
+
return (_jsx(Box, { flexDirection: "column", children: _jsx(Text, { color: theme.colors.success, children: output }) }));
|
|
42
|
+
}
|
|
43
|
+
return (_jsx(Box, { flexDirection: "column", children: _jsx(Text, { color: theme.colors.error, children: output }) }));
|
|
44
|
+
}
|
|
45
|
+
// Fallback for unexpected shapes
|
|
46
|
+
return (_jsx(Box, { flexDirection: "column", children: _jsx(Text, { children: safeFallbackText(output) }) }));
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/OutlookSendTool/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,CAAC,MAAM,wBAAwB,GAAiB;IACpD,WAAW;QACT,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,WAAW,CAAC,KAA8B,EAAE,EAAE,OAAO,KAA4B,EAAE;QACjF,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;QACzB,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QACnC,IAAI,OAAO,GAAG,MAAM,CAAC,KAAK,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC;QAE3C,+BAA+B;QAC/B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AAC,OAAO,YAAG,OAAO,GAAQ,GAC/C,CACP,CAAC;QACJ,CAAC;QAED,kDAAkD;QAClD,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;gBACtF,OAAO,CACL,KAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,YACzB,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,YAAG,MAAM,GAAQ,GAC9C,CACP,CAAC;YACJ,CAAC;YACD,OAAO,CACL,KAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,YACzB,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,YAAG,MAAM,GAAQ,GAC5C,CACP,CAAC;QACJ,CAAC;QAED,iCAAiC;QACjC,OAAO,CACL,KAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,YACzB,KAAC,IAAI,cAAE,gBAAgB,CAAC,MAAM,CAAC,GAAQ,GACnC,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
|
|
4
|
+
import { getTheme } from "../../theme/index.js";
|
|
5
|
+
import { safeFallbackText } from "../truncation.js";
|
|
6
|
+
export const PauseDelegationToolRenderers = {
|
|
7
|
+
displayName() {
|
|
8
|
+
return "Pause";
|
|
9
|
+
},
|
|
10
|
+
renderInput(input, _opts = {}) {
|
|
11
|
+
if (input.id) {
|
|
12
|
+
return input.id;
|
|
13
|
+
}
|
|
14
|
+
return Object.entries(input)
|
|
15
|
+
.map(([key, value]) => `${key}: ${JSON.stringify(value)}`)
|
|
16
|
+
.join(", ");
|
|
17
|
+
},
|
|
18
|
+
renderRejection() {
|
|
19
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
20
|
+
},
|
|
21
|
+
renderOutput(output, _opts = {}) {
|
|
22
|
+
const theme = getTheme();
|
|
23
|
+
if (!output) {
|
|
24
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.textMuted, children: "(No content)" }) }) }));
|
|
25
|
+
}
|
|
26
|
+
if (typeof output === "string") {
|
|
27
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: safeFallbackText(output) }) }) }));
|
|
28
|
+
}
|
|
29
|
+
if (output.error) {
|
|
30
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.error, children: output.error }) }) }));
|
|
31
|
+
}
|
|
32
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.success, children: "Paused" }) }) }));
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/PauseDelegationTool/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAapD,MAAM,CAAC,MAAM,4BAA4B,GAAiB;IACx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,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,YACjE,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,YACtB,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,YAAG,MAAM,CAAC,KAAK,GAAQ,GAClD,GACF,CACP,CAAC;QACJ,CAAC;QAED,OAAO,CACL,KAAC,GAAG,IAAC,cAAc,EAAC,eAAe,EAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,YACjE,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,YACtB,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,uBAAe,GAC5C,GACF,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import { relative } from "path";
|
|
4
|
+
import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
|
|
5
|
+
import { getTheme } from "../../theme/index.js";
|
|
6
|
+
/** Map symbol kind to unicode icon */
|
|
7
|
+
function getSymbolIcon(kind) {
|
|
8
|
+
if (!kind)
|
|
9
|
+
return "•";
|
|
10
|
+
const k = kind.toLowerCase();
|
|
11
|
+
if (k.includes("function") || k === "fn")
|
|
12
|
+
return "𝑓";
|
|
13
|
+
if (k.includes("class"))
|
|
14
|
+
return "𝐶";
|
|
15
|
+
if (k.includes("method"))
|
|
16
|
+
return "𝑚";
|
|
17
|
+
if (k.includes("type") || k === "interface" || k === "enum")
|
|
18
|
+
return "𝑇";
|
|
19
|
+
if (k.includes("const") || k === "variable" || k === "var")
|
|
20
|
+
return "𝑐";
|
|
21
|
+
return "•";
|
|
22
|
+
}
|
|
23
|
+
/** Format input for display */
|
|
24
|
+
function formatInput(input) {
|
|
25
|
+
const { command, query, files, language, max_results, exact, reranker, path, ...rest } = input;
|
|
26
|
+
const parts = [];
|
|
27
|
+
if (command) {
|
|
28
|
+
parts.push(`${command}`);
|
|
29
|
+
}
|
|
30
|
+
if (query) {
|
|
31
|
+
parts.push(`"${query}"`);
|
|
32
|
+
}
|
|
33
|
+
if (files) {
|
|
34
|
+
const filesList = Array.isArray(files) ? files.join(", ") : files;
|
|
35
|
+
parts.push(filesList);
|
|
36
|
+
}
|
|
37
|
+
if (language) {
|
|
38
|
+
parts.push(`lang: ${language}`);
|
|
39
|
+
}
|
|
40
|
+
if (max_results) {
|
|
41
|
+
parts.push(`max: ${max_results}`);
|
|
42
|
+
}
|
|
43
|
+
if (exact) {
|
|
44
|
+
parts.push(`exact`);
|
|
45
|
+
}
|
|
46
|
+
return parts.join(" ");
|
|
47
|
+
}
|
|
48
|
+
export const ProbeToolRenderers = {
|
|
49
|
+
displayName() {
|
|
50
|
+
return "Probe";
|
|
51
|
+
},
|
|
52
|
+
renderInput(input, { verbose }) {
|
|
53
|
+
return formatInput(input);
|
|
54
|
+
},
|
|
55
|
+
renderRejection() {
|
|
56
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
57
|
+
},
|
|
58
|
+
renderOutput(output, { verbose } = {}, input) {
|
|
59
|
+
const theme = getTheme();
|
|
60
|
+
if (!output) {
|
|
61
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.textMuted, children: "No results" }) }) }));
|
|
62
|
+
}
|
|
63
|
+
// Handle raw string output
|
|
64
|
+
if (typeof output === "string") {
|
|
65
|
+
const lines = output.split("\n").slice(0, 3);
|
|
66
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsxs(Box, { flexDirection: "column", children: [lines.map((line, i) => (_jsx(Text, { color: theme.colors.textMuted, children: line.length > 80 ? line.slice(0, 77) + "…" : line }, i))), output.split("\n").length > 3 && (_jsxs(Text, { color: theme.colors.textMuted, children: ["... (+", output.split("\n").length - 3, " lines)"] }))] }) }));
|
|
67
|
+
}
|
|
68
|
+
// Handle object output
|
|
69
|
+
if (typeof output !== "object" || output === null) {
|
|
70
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.textMuted, children: "No results" }) }) }));
|
|
71
|
+
}
|
|
72
|
+
const obj = output;
|
|
73
|
+
// Handle raw field (string within object)
|
|
74
|
+
if (typeof obj.raw === "string") {
|
|
75
|
+
const lines = obj.raw.split("\n").slice(0, 3);
|
|
76
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsxs(Box, { flexDirection: "column", children: [lines.map((line, i) => (_jsx(Text, { color: theme.colors.textMuted, children: line.length > 80 ? line.slice(0, 77) + "…" : line }, i))), obj.raw.split("\n").length > 3 && (_jsxs(Text, { color: theme.colors.textMuted, children: ["... (+", obj.raw.split("\n").length - 3, " lines)"] }))] }) }));
|
|
77
|
+
}
|
|
78
|
+
// Handle symbols output
|
|
79
|
+
if (Array.isArray(obj.symbols) && obj.symbols.length > 0) {
|
|
80
|
+
const symbols = obj.symbols.filter((s) => s != null && typeof s === "object");
|
|
81
|
+
const maxSymbols = 5;
|
|
82
|
+
const displaySymbols = symbols.slice(0, maxSymbols);
|
|
83
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { children: "Found " }), _jsxs(Text, { bold: true, children: [symbols.length, " "] }), _jsx(Text, { children: symbols.length === 1 ? "symbol" : "symbols" })] }), displaySymbols.map((sym, i) => (_jsxs(Box, { flexDirection: "row", paddingLeft: 2, children: [_jsxs(Text, { children: [getSymbolIcon(sym.kind), " "] }), _jsx(Text, { bold: true, children: sym.name || "(unnamed)" }), sym.line !== undefined && _jsxs(Text, { color: theme.colors.textMuted, children: [" :", sym.line] })] }, i))), symbols.length > maxSymbols && (_jsx(Box, { flexDirection: "row", paddingLeft: 2, children: _jsxs(Text, { color: theme.colors.textMuted, children: ["+", symbols.length - maxSymbols, " more"] }) }))] }));
|
|
84
|
+
}
|
|
85
|
+
// Handle results array (search/extract output)
|
|
86
|
+
if (Array.isArray(obj.results) && obj.results.length > 0) {
|
|
87
|
+
const results = obj.results.filter((r) => r != null && typeof r === "object");
|
|
88
|
+
const maxResults = 3;
|
|
89
|
+
const displayResults = results.slice(0, maxResults);
|
|
90
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { children: "Found " }), _jsxs(Text, { bold: true, children: [results.length, " "] }), _jsx(Text, { children: results.length === 1 ? "result" : "results" })] }), displayResults.map((result, i) => (_jsxs(Box, { flexDirection: "column", paddingLeft: 2, children: [_jsx(Box, { flexDirection: "row", children: _jsxs(Text, { bold: true, children: [relative(process.cwd(), result.file || ""), result.line !== undefined ? `:${result.line}` : ""] }) }), result.code && (_jsx(Text, { color: theme.colors.textMuted, children: result.code.length > 60 ? result.code.slice(0, 60) + "…" : result.code }))] }, i))), results.length > maxResults && (_jsx(Box, { flexDirection: "row", paddingLeft: 2, children: _jsxs(Text, { color: theme.colors.textMuted, children: ["+", results.length - maxResults, " more"] }) }))] }));
|
|
91
|
+
}
|
|
92
|
+
// Handle array of objects (could be results or symbols)
|
|
93
|
+
if (Array.isArray(output)) {
|
|
94
|
+
const items = output.filter((item) => item != null && typeof item === "object");
|
|
95
|
+
if (items.length === 0) {
|
|
96
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.textMuted, children: "No results" }) }) }));
|
|
97
|
+
}
|
|
98
|
+
// Check if it looks like symbols (has 'kind' or 'name' fields typical of symbols)
|
|
99
|
+
const firstItem = items[0];
|
|
100
|
+
if (firstItem.kind !== undefined || (firstItem.name && !firstItem.file)) {
|
|
101
|
+
// Treat as symbols
|
|
102
|
+
const maxSymbols = 5;
|
|
103
|
+
const displaySymbols = items.slice(0, maxSymbols);
|
|
104
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { children: "Found " }), _jsxs(Text, { bold: true, children: [items.length, " "] }), _jsx(Text, { children: items.length === 1 ? "symbol" : "symbols" })] }), displaySymbols.map((sym, i) => (_jsxs(Box, { flexDirection: "row", paddingLeft: 2, children: [_jsxs(Text, { children: [getSymbolIcon(sym.kind), " "] }), _jsx(Text, { bold: true, children: sym.name || "(unnamed)" }), sym.line !== undefined && (_jsxs(Text, { color: theme.colors.textMuted, children: [":", sym.line] }))] }, i))), items.length > maxSymbols && (_jsx(Box, { flexDirection: "row", paddingLeft: 2, children: _jsxs(Text, { color: theme.colors.textMuted, children: ["+", items.length - maxSymbols, " more"] }) }))] }));
|
|
105
|
+
}
|
|
106
|
+
// Treat as results
|
|
107
|
+
const maxResults = 3;
|
|
108
|
+
const displayResults = items.slice(0, maxResults);
|
|
109
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { children: "Found " }), _jsxs(Text, { bold: true, children: [items.length, " "] }), _jsx(Text, { children: items.length === 1 ? "result" : "results" })] }), displayResults.map((result, i) => (_jsxs(Box, { flexDirection: "column", paddingLeft: 2, children: [_jsx(Box, { flexDirection: "row", children: _jsxs(Text, { bold: true, children: [relative(process.cwd(), (result.file ||
|
|
110
|
+
result.path ||
|
|
111
|
+
"")), result.line !== undefined
|
|
112
|
+
? `:${result.line}`
|
|
113
|
+
: ""] }) }), typeof result.code === "string" && (_jsx(Text, { color: theme.colors.textMuted, children: result.code.length > 60
|
|
114
|
+
? result.code.slice(0, 60) + "…"
|
|
115
|
+
: result.code }))] }, i))), items.length > maxResults && (_jsx(Box, { flexDirection: "row", paddingLeft: 2, children: _jsxs(Text, { color: theme.colors.textMuted, children: ["+", items.length - maxResults, " more"] }) }))] }));
|
|
116
|
+
}
|
|
117
|
+
// Fallback for unhandled object shapes
|
|
118
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.textMuted, children: "No results" }) }) }));
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/ProbeTool/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAuChD,sCAAsC;AACtC,SAAS,aAAa,CAAC,IAAa;IAClC,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC;IACtB,MAAM,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IAC7B,IAAI,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACtD,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IACrC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,OAAO,IAAI,CAAC;IACtC,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,WAAW,IAAI,CAAC,KAAK,MAAM;QAAE,OAAO,IAAI,CAAC;IACzE,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,KAAK;QAAE,OAAO,IAAI,CAAC;IACxE,OAAO,GAAG,CAAC;AACb,CAAC;AAED,+BAA+B;AAC/B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AC/D,CAAC,CAAG,MAAkC,CAAC,IAAe,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG;oCACzE,CAAC,CAAG,MAAkC,CAAC,IAAe,GACnD,CACR,KApBO,CAAC,CAqBL,CACP,CAAC,EACD,KAAK,CAAC,MAAM,GAAG,UAAU,IAAI,CAC5B,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,EAAC,WAAW,EAAE,CAAC,YACrC,MAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,kBAAI,KAAK,CAAC,MAAM,GAAG,UAAU,aAAa,GACzE,CACP,IACG,CACP,CAAC;QACJ,CAAC;QAED,uCAAuC;QACvC,OAAO,CACL,KAAC,GAAG,IAAC,cAAc,EAAC,eAAe,EAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,YACjE,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,YACtB,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,2BAAmB,GAClD,GACF,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
|
|
4
|
+
import { getTheme } from "../../theme/index.js";
|
|
5
|
+
import { capLine, safeFallbackText } from "../truncation.js";
|
|
6
|
+
function formatProcessAction(input) {
|
|
7
|
+
const action = input.action || "unknown";
|
|
8
|
+
switch (action) {
|
|
9
|
+
case "spawn":
|
|
10
|
+
return input.command ? `spawn: ${input.command}` : "spawn";
|
|
11
|
+
case "read":
|
|
12
|
+
return input.pid != null ? `read pid ${input.pid}` : "read";
|
|
13
|
+
case "write":
|
|
14
|
+
return input.pid != null ? `write to pid ${input.pid}` : "write";
|
|
15
|
+
case "kill":
|
|
16
|
+
return input.pid != null ? `kill pid ${input.pid}` : "kill";
|
|
17
|
+
case "list":
|
|
18
|
+
return "list processes";
|
|
19
|
+
default:
|
|
20
|
+
return action;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export const ProcessToolRenderers = {
|
|
24
|
+
displayName() {
|
|
25
|
+
return "Process";
|
|
26
|
+
},
|
|
27
|
+
renderInput(input, _opts) {
|
|
28
|
+
return formatProcessAction(input);
|
|
29
|
+
},
|
|
30
|
+
renderRejection() {
|
|
31
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
32
|
+
},
|
|
33
|
+
renderOutput(output, _opts) {
|
|
34
|
+
const theme = getTheme();
|
|
35
|
+
if (!output) {
|
|
36
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.textMuted, children: "(No content)" }) }) }));
|
|
37
|
+
}
|
|
38
|
+
if (typeof output === "string") {
|
|
39
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: safeFallbackText(output) }) }) }));
|
|
40
|
+
}
|
|
41
|
+
// Spawn result: show pid
|
|
42
|
+
if (output.action === "spawn" || (output.pid != null && !output.output && !output.sessions)) {
|
|
43
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { children: "Spawned process " }), _jsx(Text, { bold: true, children: output.pid })] }) }));
|
|
44
|
+
}
|
|
45
|
+
// Read result: show output
|
|
46
|
+
if (output.action === "read" || output.output != null) {
|
|
47
|
+
const lines = (output.output || "").split("\n");
|
|
48
|
+
const preview = lines.length > 3
|
|
49
|
+
? lines.slice(0, 3).map(capLine).join("\n") + `\n... +${lines.length - 3} more lines`
|
|
50
|
+
: (output.output || "").split("\n").map(capLine).join("\n");
|
|
51
|
+
return (_jsx(Box, { flexDirection: "column", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: preview }) }) }));
|
|
52
|
+
}
|
|
53
|
+
// List result: show sessions table
|
|
54
|
+
if (output.action === "list" || output.sessions) {
|
|
55
|
+
const sessions = output.sessions || [];
|
|
56
|
+
if (sessions.length === 0) {
|
|
57
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.textMuted, children: "No active processes" }) }) }));
|
|
58
|
+
}
|
|
59
|
+
const MAX_SESSIONS = 2; // 1 header + 2 items = 3 lines
|
|
60
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [_jsxs(Text, { bold: true, children: [sessions.length, " "] }), _jsx(Text, { children: sessions.length === 1 ? "process" : "processes" })] }), sessions.slice(0, MAX_SESSIONS).map((s, i) => (_jsxs(Box, { flexDirection: "row", paddingLeft: 4, children: [_jsxs(Text, { bold: true, children: [s.pid, " "] }), _jsxs(Text, { children: [s.command || "", " "] }), _jsx(Text, { color: s.status === "running" ? theme.colors.success : theme.colors.textMuted, children: s.status || "" })] }, i))), sessions.length > MAX_SESSIONS && (_jsxs(Text, { color: theme.colors.textMuted, children: ["... (+", sessions.length - MAX_SESSIONS, " more)"] }))] }));
|
|
61
|
+
}
|
|
62
|
+
// Fallback
|
|
63
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: safeFallbackText(output) }) }) }));
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/ProcessTool/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,8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UseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
|
|
4
|
+
import { getTheme } from "../../theme/index.js";
|
|
5
|
+
function statusColor(status) {
|
|
6
|
+
const theme = getTheme();
|
|
7
|
+
switch (status) {
|
|
8
|
+
case "active":
|
|
9
|
+
case "in_progress":
|
|
10
|
+
return theme.colors.success;
|
|
11
|
+
case "blocked":
|
|
12
|
+
return theme.colors.warning;
|
|
13
|
+
case "done":
|
|
14
|
+
case "closed":
|
|
15
|
+
return theme.colors.textMuted;
|
|
16
|
+
default:
|
|
17
|
+
return theme.colors.text;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export const QuestListToolRenderers = {
|
|
21
|
+
displayName() {
|
|
22
|
+
return "Quest List";
|
|
23
|
+
},
|
|
24
|
+
renderInput(input) {
|
|
25
|
+
if (input.status) {
|
|
26
|
+
return `status: ${input.status}`;
|
|
27
|
+
}
|
|
28
|
+
return "all quests";
|
|
29
|
+
},
|
|
30
|
+
renderRejection() {
|
|
31
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
32
|
+
},
|
|
33
|
+
renderOutput(output, { verbose }) {
|
|
34
|
+
const quests = output?.quests ?? [];
|
|
35
|
+
const n = output?.count ?? quests.length;
|
|
36
|
+
if (!verbose) {
|
|
37
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsxs(Text, { children: [n, " quest", n !== 1 ? "s" : ""] }) }) }));
|
|
38
|
+
}
|
|
39
|
+
// Verbose: show table of quests
|
|
40
|
+
if (quests.length === 0) {
|
|
41
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: "0 quests" }) }) }));
|
|
42
|
+
}
|
|
43
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { children: _jsxs(Text, { children: [n, " quest", n !== 1 ? "s" : ""] }) }), quests.map((q) => (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsxs(Text, { color: statusColor(q.status), children: ["P", q.priority, " [", q.status, "] ", q.id, " ", q.title] }) }, q.id)))] }));
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/QuestListTool/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAiBhD,SAAS,WAAW,CAAC,MAAc;IACjC,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,QAAQ,CAAC;QACd,KAAK,aAAa;YAChB,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;QAC9B,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;QAC9B,KAAK,MAAM,CAAC;QACZ,KAAK,QAAQ;YACX,OAAO,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;QAChC;YACE,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;IAC7B,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAiB;IAClD,WAAW;QACT,OAAO,YAAY,CAAC;IACtB,CAAC;IACD,WAAW,CAAC,KAA0B;QACpC,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YACjB,OAAO,WAAW,KAAK,CAAC,MAAM,EAAE,CAAC;QACnC,CAAC;QACD,OAAO,YAAY,CAAC;IACtB,CAAC;IACD,eAAe;QACb,OAAO,KAAC,8BAA8B,KAAG,CAAC;IAC5C,CAAC;IACD,YAAY,CAAC,MAAuB,EAAE,EAAE,OA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C,CAAC,EAAE,CAIR,CACP,CAAC,IACE,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
|
|
4
|
+
import { getTheme } from "../../theme/index.js";
|
|
5
|
+
import { safeFallbackText } from "../truncation.js";
|
|
6
|
+
export const QuestReportToolRenderers = {
|
|
7
|
+
displayName() {
|
|
8
|
+
return "Quest Report";
|
|
9
|
+
},
|
|
10
|
+
renderInput(input, _opts = {}) {
|
|
11
|
+
if (input.quest_id) {
|
|
12
|
+
return input.quest_id;
|
|
13
|
+
}
|
|
14
|
+
return Object.entries(input)
|
|
15
|
+
.map(([key, value]) => `${key}: ${JSON.stringify(value)}`)
|
|
16
|
+
.join(", ");
|
|
17
|
+
},
|
|
18
|
+
renderRejection() {
|
|
19
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
20
|
+
},
|
|
21
|
+
renderOutput(output, _opts = {}) {
|
|
22
|
+
const theme = getTheme();
|
|
23
|
+
if (!output) {
|
|
24
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.textMuted, children: "(No content)" }) }) }));
|
|
25
|
+
}
|
|
26
|
+
if (typeof output === "string") {
|
|
27
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: safeFallbackText(output) }) }) }));
|
|
28
|
+
}
|
|
29
|
+
if (output.error) {
|
|
30
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.error, children: output.error }) }) }));
|
|
31
|
+
}
|
|
32
|
+
if (output.data) {
|
|
33
|
+
const { commits, filesChanged, cost } = output.data;
|
|
34
|
+
const parts = [];
|
|
35
|
+
if (commits !== undefined) {
|
|
36
|
+
parts.push(`${commits} commit${commits !== 1 ? "s" : ""}`);
|
|
37
|
+
}
|
|
38
|
+
if (filesChanged !== undefined) {
|
|
39
|
+
parts.push(`${filesChanged} file${filesChanged !== 1 ? "s" : ""} changed`);
|
|
40
|
+
}
|
|
41
|
+
return (_jsxs(Box, { flexDirection: "column", children: [parts.length > 0 && (_jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: parts.join(", ") }) })), cost !== undefined && (_jsx(Box, { flexDirection: "row", children: _jsxs(Text, { color: theme.colors.textMuted, children: ["Cost: ", cost] }) }))] }));
|
|
42
|
+
}
|
|
43
|
+
if (output.message) {
|
|
44
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: output.message }) }) }));
|
|
45
|
+
}
|
|
46
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.textMuted, children: "(No data)" }) }) }));
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/QuestReportTool/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAqBpD,MAAM,CAAC,MAAM,wBAAwB,GAAiB;IACpD,WAAW;QACT,OAAO,cAAc,CAAC;IACxB,CAAC;IACD,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,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,YACjE,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,YACtB,KAAC,IAAI,cAAE,MAAM,CAAC,OAAO,GAAQ,GACzB,GACF,CACP,CAAC;QACJ,CAAC;QAED,OAAO,CACL,KAAC,GAAG,IAAC,cAAc,EAAC,eAAe,EAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,YACjE,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,YACtB,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,0BAAkB,GACjD,GACF,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
|
|
4
|
+
import { getTheme } from "../../theme/index.js";
|
|
5
|
+
function actionColor(action) {
|
|
6
|
+
const theme = getTheme();
|
|
7
|
+
switch (action) {
|
|
8
|
+
case "created":
|
|
9
|
+
return theme.colors.success;
|
|
10
|
+
case "updated":
|
|
11
|
+
return theme.colors.info;
|
|
12
|
+
case "failed":
|
|
13
|
+
return theme.colors.error;
|
|
14
|
+
default:
|
|
15
|
+
return theme.colors.text;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export const QuestUpdateToolRenderers = {
|
|
19
|
+
displayName() {
|
|
20
|
+
return "Quest Update";
|
|
21
|
+
},
|
|
22
|
+
renderInput(input) {
|
|
23
|
+
// Handle both flat fields and quests array input
|
|
24
|
+
if (input.quests && Array.isArray(input.quests)) {
|
|
25
|
+
const n = input.quests.length;
|
|
26
|
+
return `${n} quest${n !== 1 ? "s" : ""}`;
|
|
27
|
+
}
|
|
28
|
+
const parts = [];
|
|
29
|
+
if (input.action)
|
|
30
|
+
parts.push(input.action);
|
|
31
|
+
if (input.title)
|
|
32
|
+
parts.push(input.title);
|
|
33
|
+
if (input.id)
|
|
34
|
+
parts.push(input.id);
|
|
35
|
+
return parts.join(" ") || "quest update";
|
|
36
|
+
},
|
|
37
|
+
renderRejection() {
|
|
38
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
39
|
+
},
|
|
40
|
+
renderOutput(output, { verbose }) {
|
|
41
|
+
// Handle both { quests: [...] } and direct output shapes
|
|
42
|
+
let quests = [];
|
|
43
|
+
if (output != null && typeof output === "object") {
|
|
44
|
+
const obj = output;
|
|
45
|
+
if (Array.isArray(obj.quests)) {
|
|
46
|
+
quests = obj.quests;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const created = quests.filter((q) => q.action === "created").length;
|
|
50
|
+
const updated = quests.filter((q) => q.action === "updated").length;
|
|
51
|
+
const failed = quests.filter((q) => q.action === "failed").length;
|
|
52
|
+
const theme = getTheme();
|
|
53
|
+
const summaryParts = [];
|
|
54
|
+
if (created > 0)
|
|
55
|
+
summaryParts.push(`${created} created`);
|
|
56
|
+
if (updated > 0)
|
|
57
|
+
summaryParts.push(`${updated} updated`);
|
|
58
|
+
if (failed > 0)
|
|
59
|
+
summaryParts.push(`${failed} failed`);
|
|
60
|
+
if (summaryParts.length === 0)
|
|
61
|
+
summaryParts.push("0 changes");
|
|
62
|
+
if (!verbose) {
|
|
63
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: summaryParts.map((part, i) => {
|
|
64
|
+
const color = part.includes("created")
|
|
65
|
+
? theme.colors.success
|
|
66
|
+
: part.includes("updated")
|
|
67
|
+
? theme.colors.info
|
|
68
|
+
: part.includes("failed")
|
|
69
|
+
? theme.colors.error
|
|
70
|
+
: theme.colors.text;
|
|
71
|
+
return (_jsxs(Text, { children: [i > 0 ? ", " : "", _jsx(Text, { color: color, children: part })] }, i));
|
|
72
|
+
}) }) }));
|
|
73
|
+
}
|
|
74
|
+
// Verbose: show per-quest details
|
|
75
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { children: summaryParts.map((part, i) => {
|
|
76
|
+
const color = part.includes("created")
|
|
77
|
+
? theme.colors.success
|
|
78
|
+
: part.includes("updated")
|
|
79
|
+
? theme.colors.info
|
|
80
|
+
: part.includes("failed")
|
|
81
|
+
? theme.colors.error
|
|
82
|
+
: theme.colors.text;
|
|
83
|
+
return (_jsxs(Text, { children: [i > 0 ? ", " : "", _jsx(Text, { color: color, children: part })] }, i));
|
|
84
|
+
}) }), quests.map((q) => (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsxs(Text, { color: actionColor(q.action), children: ["[", q.action, "] ", q.id, " ", q.title, q.error ? ` -- ${q.error}` : ""] }) }, q.id)))] }));
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/QuestUpdateTool/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAchD,SAAS,WAAW,CAAC,MAAc;IACjC,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;QAC9B,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;QAC3B,KAAK,QAAQ;YACX,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;QAC5B;YACE,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;IAC7B,CAAC;AACH,CAAC;AAED,MA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