@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 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/CheckMessagesTool/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,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAWhD,SAAS,WAAW,CAAC,GAAiB;IACpC,iEAAiE;IACjE,MAAM,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC;IACrB,IAAI,CAAC,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,MAAM,IAAI,CAAC;QAAE,OAAO,MAAM,CAAE,CAA6B,CAAC,IAAI,CAAC,CAAC;IAClG,IAAI,OAAO,CAAC,KAAK,QAAQ;QAAE,OAAO,CAAC,CAAC;IACpC,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,GAAG,CAAC,IAAI,CAAC;IAClD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,eAAe,CAAC,EAAE,GAAG,EAAyB;IACrD,MAAM,EAAE,YAAY,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;IAC9B,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,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IACjC,EACP,KAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,SAAS,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,YACrD,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAC1B,KAAC,cAAc,IAAW,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,IAAI,KAAK,IAAxC,GAAG,CAAyC,CAClE,CAAC,GACE,IACF,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
export const CreateQuipToolRenderers = {
|
|
6
|
+
displayName() {
|
|
7
|
+
return "Quip Create";
|
|
8
|
+
},
|
|
9
|
+
renderInput(input, { verbose } = {}) {
|
|
10
|
+
const title = typeof input.title === "string" ? input.title : "";
|
|
11
|
+
return (_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { children: title ? `"${title.slice(0, 50)}"` : "new document" }), verbose && typeof input.folderId === "string" && (_jsxs(Text, { color: getTheme().colors.textMuted, children: [" in ", input.folderId] }))] }));
|
|
12
|
+
},
|
|
13
|
+
renderRejection() {
|
|
14
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
15
|
+
},
|
|
16
|
+
renderOutput(output, { verbose } = {}) {
|
|
17
|
+
const theme = getTheme();
|
|
18
|
+
if (!output || typeof output !== "object") {
|
|
19
|
+
return (_jsx(Text, { color: theme.colors.textMuted, children: typeof output === "string" ? output : "No result" }));
|
|
20
|
+
}
|
|
21
|
+
const obj = output;
|
|
22
|
+
const ok = obj.success !== false;
|
|
23
|
+
const msg = typeof obj.message === "string" ? obj.message : "";
|
|
24
|
+
if (!ok) {
|
|
25
|
+
return _jsx(Text, { color: theme.colors.error, children: msg || "Failed to create document" });
|
|
26
|
+
}
|
|
27
|
+
return (_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { color: theme.colors.success, children: "\u2713 Document created" }), msg && _jsxs(Text, { color: theme.colors.textMuted, children: [" \u2014 ", msg.slice(0, 60)] })] }));
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/CreateQuipTool/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;AAEhD,MAAM,CAAC,MAAM,uBAAuB,GAAiB;IACnD,WAAW;QACT,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,WAAW,CAAC,KAA8B,EAAE,EAAE,OAAO,KAA4B,EAAE;QACjF,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QACjE,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,KAAK,aACtB,KAAC,IAAI,cAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,cAAc,GAAQ,EAChE,OAAO,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ,IAAI,CAChD,MAAC,IAAI,IAAC,KAAK,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,SAAS,qBAAO,KAAK,CAAC,QAAQ,IAAQ,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
+
import { Box, Text } from "ink";
|
|
3
|
+
import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
|
|
4
|
+
export const CreateSkillToolRenderers = {
|
|
5
|
+
displayName() {
|
|
6
|
+
return "Create Skill";
|
|
7
|
+
},
|
|
8
|
+
renderInput(input, _opts) {
|
|
9
|
+
return input.name ?? "skill";
|
|
10
|
+
},
|
|
11
|
+
renderRejection() {
|
|
12
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
13
|
+
},
|
|
14
|
+
renderOutput(output) {
|
|
15
|
+
if (!output || typeof output !== "object") {
|
|
16
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: "(No content)" }) }) }));
|
|
17
|
+
}
|
|
18
|
+
const name = output.name ?? "unknown";
|
|
19
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsxs(Text, { children: ["Created skill ", name] }) }) }));
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/CreateSkillTool/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AAEpG,MAAM,CAAC,MAAM,wBAAwB,GAAiB;IACpD,WAAW;QACT,OAAO,cAAc,CAAC;IACxB,CAAC;IACD,WAAW,CAAC,KAAwB,EAAE,KAA2B;QAC/D,OAAO,KAAK,CAAC,IAAI,IAAI,OAAO,CAAC;IAC/B,CAAC;IACD,eAAe;QACb,OAAO,KAAC,8BAA8B,KAAG,CAAC;IAC5C,CAAC;IACD,YAAY,CAAC,MAA2C;QACtD,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC1C,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,+BAAoB,GACrB,GACF,CACP,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,IAAI,SAAS,CAAC;QACtC,OAAO,CACL,KAAC,GAAG,IAAC,cAAc,EAAC,eAAe,EAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,YACjE,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,YACtB,MAAC,IAAI,iCAAgB,IAAI,IAAQ,GAC7B,GACF,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import { basename } from "path";
|
|
4
|
+
import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
|
|
5
|
+
import { safeFallbackText } from "../truncation.js";
|
|
6
|
+
export const CreateToolToolRenderers = {
|
|
7
|
+
displayName() {
|
|
8
|
+
return "Create Tool";
|
|
9
|
+
},
|
|
10
|
+
renderInput(input, _opts) {
|
|
11
|
+
return input.name ?? "tool";
|
|
12
|
+
},
|
|
13
|
+
renderRejection() {
|
|
14
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
15
|
+
},
|
|
16
|
+
renderOutput(output) {
|
|
17
|
+
// Handle null/undefined -- output may be missing name
|
|
18
|
+
if (output == null) {
|
|
19
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: "Created tool" }) }) }));
|
|
20
|
+
}
|
|
21
|
+
// Handle string
|
|
22
|
+
if (typeof output === "string") {
|
|
23
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: safeFallbackText(output) }) }) }));
|
|
24
|
+
}
|
|
25
|
+
const obj = output;
|
|
26
|
+
const name = obj.name ??
|
|
27
|
+
(typeof obj.scriptPath === "string" ? basename(obj.scriptPath) : "unknown");
|
|
28
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsxs(Text, { children: ["Created tool ", name] }) }) }));
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/CreateToolTool/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAEhC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,CAAC,MAAM,uBAAuB,GAAiB;IACnD,WAAW;QACT,OAAO,aAAa,CAAC;IACvB,CAAC;IACD,WAAW,CAAC,KAAwB,EAAE,KAA2B;QAC/D,OAAO,KAAK,CAAC,IAAI,IAAI,MAAM,CAAC;IAC9B,CAAC;IACD,eAAe;QACb,OAAO,KAAC,8BAA8B,KAAG,CAAC;IAC5C,CAAC;IACD,YAAY,CAAC,MAAe;QAC1B,sDAAsD;QACtD,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;YACnB,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,+BAAoB,GACrB,GACF,CACP,CAAC;QACJ,CAAC;QAED,gBAAgB;QAChB,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,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,cAAE,gBAAgB,CAAC,MAAM,CAAC,GAAQ,GACnC,GACF,CACP,CAAC;QACJ,CAAC;QAED,MAAM,GAAG,GAAG,MAAiC,CAAC;QAC9C,MAAM,IAAI,GACP,GAAG,CAAC,IAAe;YACpB,CAAC,OAAO,GAAG,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QAC9E,OAAO,CACL,KAAC,GAAG,IAAC,cAAc,EAAC,eAAe,EAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,YACjE,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,YACtB,MAAC,IAAI,gCAAe,IAAI,IAAQ,GAC5B,GACF,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, 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 DelegateRemoteToolRenderers = {
|
|
7
|
+
displayName() {
|
|
8
|
+
return "Remote Delegate";
|
|
9
|
+
},
|
|
10
|
+
renderInput(input, _opts = {}) {
|
|
11
|
+
const parts = [];
|
|
12
|
+
if (input.node_id) {
|
|
13
|
+
parts.push(input.node_id);
|
|
14
|
+
}
|
|
15
|
+
if (input.task) {
|
|
16
|
+
const taskPreview = input.task.length > 40 ? `${input.task.slice(0, 40)}...` : input.task;
|
|
17
|
+
parts.push(taskPreview);
|
|
18
|
+
}
|
|
19
|
+
return parts.length > 0
|
|
20
|
+
? parts.join(": ")
|
|
21
|
+
: Object.entries(input)
|
|
22
|
+
.map(([key, value]) => `${key}: ${JSON.stringify(value)}`)
|
|
23
|
+
.join(", ");
|
|
24
|
+
},
|
|
25
|
+
renderRejection() {
|
|
26
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
27
|
+
},
|
|
28
|
+
renderOutput(output, _opts = {}) {
|
|
29
|
+
const theme = getTheme();
|
|
30
|
+
if (!output) {
|
|
31
|
+
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)" }) }) }));
|
|
32
|
+
}
|
|
33
|
+
if (typeof output === "string") {
|
|
34
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: safeFallbackText(output) }) }) }));
|
|
35
|
+
}
|
|
36
|
+
if (output.error) {
|
|
37
|
+
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 }) }) }));
|
|
38
|
+
}
|
|
39
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { color: theme.colors.success, children: "Delegated to node" }), output.quest_id && (_jsxs(_Fragment, { children: [_jsx(Text, { children: " " }), _jsx(Text, { color: theme.colors.textMuted, children: output.quest_id })] }))] }) }));
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
//# sourceM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,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,kCAA0B,EAC1D,MAAM,CAAC,QAAQ,IAAI,CAClB,8BACE,KAAC,IAAI,oBAAS,EACd,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,YAAG,MAAM,CAAC,QAAQ,GAAQ,IAC5D,CACJ,IACG,GACF,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 DeployToolRenderers = {
|
|
7
|
+
displayName() {
|
|
8
|
+
return "Deploy";
|
|
9
|
+
},
|
|
10
|
+
renderInput(input, _opts = {}) {
|
|
11
|
+
const parts = [];
|
|
12
|
+
if (input.target) {
|
|
13
|
+
parts.push(input.target);
|
|
14
|
+
}
|
|
15
|
+
if (input.branch) {
|
|
16
|
+
parts.push(`(${input.branch})`);
|
|
17
|
+
}
|
|
18
|
+
return parts.length > 0
|
|
19
|
+
? parts.join(" ")
|
|
20
|
+
: Object.entries(input)
|
|
21
|
+
.map(([key, value]) => `${key}: ${JSON.stringify(value)}`)
|
|
22
|
+
.join(", ");
|
|
23
|
+
},
|
|
24
|
+
renderRejection() {
|
|
25
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
26
|
+
},
|
|
27
|
+
renderOutput(output, _opts = {}) {
|
|
28
|
+
const theme = getTheme();
|
|
29
|
+
if (!output) {
|
|
30
|
+
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)" }) }) }));
|
|
31
|
+
}
|
|
32
|
+
if (typeof output === "string") {
|
|
33
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: safeFallbackText(output) }) }) }));
|
|
34
|
+
}
|
|
35
|
+
if (output.error) {
|
|
36
|
+
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 }) }) }));
|
|
37
|
+
}
|
|
38
|
+
if (output.host && output.port) {
|
|
39
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { flexDirection: "row", children: _jsxs(Text, { color: theme.colors.success, children: ["Deployed to ", output.host, ":", output.port] }) }), output.fingerprint && (_jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.textMuted, children: output.fingerprint }) }))] }));
|
|
40
|
+
}
|
|
41
|
+
if (output.message) {
|
|
42
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: output.message }) }) }));
|
|
43
|
+
}
|
|
44
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.success, children: "Deployed" }) }) }));
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/DeployTool/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,kBA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C,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,OAAO,yBAAiB,GAC9C,GACF,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
export const FffToolRenderers = {
|
|
7
|
+
displayName() {
|
|
8
|
+
return "Fuzzy Find";
|
|
9
|
+
},
|
|
10
|
+
renderInput(input, { verbose }) {
|
|
11
|
+
const { action, query, patterns, constraints, path } = input;
|
|
12
|
+
if (action === "grep" && query) {
|
|
13
|
+
let msg = `grep "${query}"`;
|
|
14
|
+
if (constraints)
|
|
15
|
+
msg += ` [${constraints}]`;
|
|
16
|
+
if (path && verbose)
|
|
17
|
+
msg += ` in ${path}`;
|
|
18
|
+
return msg;
|
|
19
|
+
}
|
|
20
|
+
if (action === "find_files") {
|
|
21
|
+
let msg = `find_files${query ? ` "${query}"` : ""}`;
|
|
22
|
+
if (constraints)
|
|
23
|
+
msg += ` [${constraints}]`;
|
|
24
|
+
if (path && verbose)
|
|
25
|
+
msg += ` in ${path}`;
|
|
26
|
+
return msg;
|
|
27
|
+
}
|
|
28
|
+
if (action === "multi_grep" && patterns) {
|
|
29
|
+
const patternList = patterns.map((p) => `"${p}"`).join(" ");
|
|
30
|
+
let msg = `multi_grep ${patternList}`;
|
|
31
|
+
if (constraints)
|
|
32
|
+
msg += ` [${constraints}]`;
|
|
33
|
+
if (path && verbose)
|
|
34
|
+
msg += ` in ${path}`;
|
|
35
|
+
return msg;
|
|
36
|
+
}
|
|
37
|
+
return action;
|
|
38
|
+
},
|
|
39
|
+
renderRejection() {
|
|
40
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
41
|
+
},
|
|
42
|
+
renderOutput(output) {
|
|
43
|
+
const theme = getTheme();
|
|
44
|
+
// Handle null/undefined
|
|
45
|
+
if (output == null) {
|
|
46
|
+
return _jsx(Text, { color: theme.colors.textMuted, children: "No results" });
|
|
47
|
+
}
|
|
48
|
+
// Handle string output
|
|
49
|
+
if (typeof output === "string") {
|
|
50
|
+
const lines = output.trim().split("\n");
|
|
51
|
+
return _jsx(Text, { color: theme.colors.textMuted, children: lines[0] });
|
|
52
|
+
}
|
|
53
|
+
// Handle object output
|
|
54
|
+
if (typeof output === "object" && !Array.isArray(output)) {
|
|
55
|
+
const obj = output;
|
|
56
|
+
// grep/multi_grep: { results: [...] }
|
|
57
|
+
if (Array.isArray(obj.results)) {
|
|
58
|
+
const results = obj.results;
|
|
59
|
+
if (results.length === 0) {
|
|
60
|
+
return _jsx(Text, { color: theme.colors.textMuted, children: "No matches" });
|
|
61
|
+
}
|
|
62
|
+
// Count matches per file
|
|
63
|
+
const fileCounts = new Map();
|
|
64
|
+
for (const result of results) {
|
|
65
|
+
const file = typeof result.file === "string" ? result.file : "unknown";
|
|
66
|
+
fileCounts.set(file, (fileCounts.get(file) || 0) + 1);
|
|
67
|
+
}
|
|
68
|
+
const numFiles = fileCounts.size;
|
|
69
|
+
const totalMatches = results.length;
|
|
70
|
+
// Show summary with up to 3 files
|
|
71
|
+
const fileEntries = Array.from(fileCounts.entries()).slice(0, 3);
|
|
72
|
+
const relativePaths = fileEntries.map(([file]) => relative(process.cwd(), file));
|
|
73
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { children: "Found " }), _jsx(Text, { bold: true, children: totalMatches }), _jsxs(Text, { children: [" ", totalMatches === 1 ? "match" : "matches", " in "] }), _jsx(Text, { bold: true, children: numFiles }), _jsxs(Text, { children: [" ", numFiles === 1 ? "file" : "files"] })] }), fileEntries.length > 0 && (_jsxs(Box, { flexDirection: "column", marginLeft: 2, children: [fileEntries.map(([file, count], idx) => (_jsxs(Box, { flexDirection: "row", children: [_jsxs(Text, { color: theme.colors.textMuted, children: [relativePaths[idx], ": "] }), _jsx(Text, { color: theme.colors.textMuted, bold: true, children: count })] }, idx))), numFiles > 3 && (_jsxs(Text, { color: theme.colors.textMuted, children: ["... and ", numFiles - 3, " more"] }))] }))] }));
|
|
74
|
+
}
|
|
75
|
+
// find_files: { files: [...] }
|
|
76
|
+
if (Array.isArray(obj.files)) {
|
|
77
|
+
const files = obj.files;
|
|
78
|
+
if (files.length === 0) {
|
|
79
|
+
return _jsx(Text, { color: theme.colors.textMuted, children: "No files found" });
|
|
80
|
+
}
|
|
81
|
+
const relativePaths = files.slice(0, 5).map((f) => relative(process.cwd(), f));
|
|
82
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { children: "Found " }), _jsx(Text, { bold: true, children: files.length }), _jsxs(Text, { children: [" ", files.length === 1 ? "file" : "files"] })] }), _jsxs(Box, { flexDirection: "column", marginLeft: 2, children: [relativePaths.map((path, idx) => (_jsx(Text, { color: theme.colors.textMuted, children: path }, idx))), files.length > 5 && (_jsxs(Text, { color: theme.colors.textMuted, children: ["... and ", files.length - 5, " more"] }))] })] }));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
// Handle array output (direct file list)
|
|
86
|
+
if (Array.isArray(output)) {
|
|
87
|
+
if (output.length === 0) {
|
|
88
|
+
return _jsx(Text, { color: theme.colors.textMuted, children: "No results" });
|
|
89
|
+
}
|
|
90
|
+
// If array of strings, treat as file list
|
|
91
|
+
if (typeof output[0] === "string") {
|
|
92
|
+
const files = output;
|
|
93
|
+
const relativePaths = files.slice(0, 5).map((f) => relative(process.cwd(), f));
|
|
94
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { children: "Found " }), _jsx(Text, { bold: true, children: files.length }), _jsxs(Text, { children: [" ", files.length === 1 ? "file" : "files"] })] }), _jsxs(Box, { flexDirection: "column", marginLeft: 2, children: [relativePaths.map((path, idx) => (_jsx(Text, { color: theme.colors.textMuted, children: path }, idx))), files.length > 5 && (_jsxs(Text, { color: theme.colors.textMuted, children: ["... and ", files.length - 5, " more"] }))] })] }));
|
|
95
|
+
}
|
|
96
|
+
// Array of objects, treat as results
|
|
97
|
+
return (_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { children: "Found " }), _jsx(Text, { bold: true, children: output.length }), _jsxs(Text, { children: [" ", output.length === 1 ? "result" : "results"] })] }));
|
|
98
|
+
}
|
|
99
|
+
// Fallback
|
|
100
|
+
return _jsx(Text, { color: theme.colors.textMuted, children: "Done" });
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/FffTool/index.tsx"],"names":[],"mappings":";AAMA,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;AAWhD,MAAM,CAAC,MAAM,gBAAgB,GAAiB;IAC5C,WAAW;QACT,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,WAAW,CAAC,KAAe,EAAE,EAAE,OAAO,EAAwB;QAC5D,MAAM,EAAE,M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AAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,CAChC,KAAC,IAAI,IAAW,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,YAC1C,IAAI,IADI,GAAG,CAEP,CACR,CAAC,EACD,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,CACnB,MAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,yBAAW,KAAK,CAAC,MAAM,GAAG,CAAC,aAAa,CAC5E,IACG,IACF,CACP,CAAC;YACJ,CAAC;YAED,qCAAqC;YACrC,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,KAAK,aACtB,KAAC,IAAI,yBAAc,EACnB,KAAC,IAAI,IAAC,IAAI,kBAAE,MAAM,CAAC,MAAM,GAAQ,EACjC,MAAC,IAAI,oBAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,IAAQ,IACtD,CACP,CAAC;QACJ,CAAC;QAED,WAAW;QACX,OAAO,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,qBAAa,CAAC;IAC1D,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
|
|
3
|
+
import { Box, Text } from "ink";
|
|
4
|
+
import { relative } from "path";
|
|
5
|
+
import { FileEditToolUpdatedMessage } from "../../components/FileEditToolUpdatedMessage.js";
|
|
6
|
+
import { safeFallbackText } from "../truncation.js";
|
|
7
|
+
export const FileEditToolRenderers = {
|
|
8
|
+
displayName(input) {
|
|
9
|
+
const oldStr = (input?.old_string ?? input?.oldText ?? "");
|
|
10
|
+
const newStr = (input?.new_string ?? input?.newText ?? "");
|
|
11
|
+
if (oldStr === "")
|
|
12
|
+
return "Create";
|
|
13
|
+
if (newStr === "")
|
|
14
|
+
return "Delete";
|
|
15
|
+
return "Edit";
|
|
16
|
+
},
|
|
17
|
+
renderInput(input, { verbose }) {
|
|
18
|
+
// edit_file / file_edit: { path, oldText, newText }
|
|
19
|
+
const filePath = String(input?.file_path ?? input?.path ?? "");
|
|
20
|
+
if (filePath) {
|
|
21
|
+
return verbose ? filePath : relative(process.cwd(), filePath);
|
|
22
|
+
}
|
|
23
|
+
// apply_patch: { patch, cwd? }
|
|
24
|
+
if (typeof input?.patch === "string") {
|
|
25
|
+
const patch = input.patch;
|
|
26
|
+
// Extract file names from patch header lines like "*** Update path/to/file"
|
|
27
|
+
const files = [...patch.matchAll(/^\*\*\*\s+(?:Update|Add|Delete|Rename)\s+(.+)$/gm)]
|
|
28
|
+
.map((m) => m[1] ?? "")
|
|
29
|
+
.filter(Boolean)
|
|
30
|
+
.slice(0, 3);
|
|
31
|
+
if (files.length > 0) {
|
|
32
|
+
return files.map((f) => (verbose ? f : relative(process.cwd(), f))).join(", ");
|
|
33
|
+
}
|
|
34
|
+
return "patch";
|
|
35
|
+
}
|
|
36
|
+
return "";
|
|
37
|
+
},
|
|
38
|
+
renderOutput(output, { verbose }) {
|
|
39
|
+
if (output == null) {
|
|
40
|
+
return _jsx(Text, { children: "(No content)" });
|
|
41
|
+
}
|
|
42
|
+
// Handle string output (typically error messages) — truncate to avoid flooding
|
|
43
|
+
if (typeof output === "string") {
|
|
44
|
+
return _jsx(Text, { children: safeFallbackText(output, verbose) });
|
|
45
|
+
}
|
|
46
|
+
const obj = output;
|
|
47
|
+
// Structured diff shape: { filePath|path, structuredPatch }
|
|
48
|
+
if (obj.structuredPatch) {
|
|
49
|
+
return (_jsx(FileEditToolUpdatedMessage, { filePath: (obj.filePath ?? obj.path), structuredPatch: obj.structuredPatch, verbose: verbose }));
|
|
50
|
+
}
|
|
51
|
+
// ARIA shape: { path, strategy, matchesFound, replacements, replaceAll, previousHash, currentHash }
|
|
52
|
+
if (obj.path != null) {
|
|
53
|
+
const filePath = verbose ? String(obj.path) : relative(process.cwd(), String(obj.path));
|
|
54
|
+
const replacements = obj.replacements != null ? Number(obj.replacements) : undefined;
|
|
55
|
+
const suffix = replacements != null
|
|
56
|
+
? ` (${replacements} replacement${replacements !== 1 ? "s" : ""})`
|
|
57
|
+
: "";
|
|
58
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsxs(Text, { children: ["Edited ", _jsx(Text, { bold: true, children: filePath }), suffix] }) }) }));
|
|
59
|
+
}
|
|
60
|
+
// Default fallback
|
|
61
|
+
return _jsx(Text, { children: safeFallbackText(output, verbose) });
|
|
62
|
+
},
|
|
63
|
+
renderRejection() {
|
|
64
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/FileEditTool/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AAEpG,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAEhC,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAE5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,CAAC,MAAM,qBAAqB,GAAiB;IACjD,WAAW,CAAC,KAA8B;QACxC,MAAM,MAAM,GAAG,CAAC,KAAK,EAAE,UAAU,IAAI,KAAK,EAAE,OAAO,IAAI,EAAE,CAAW,CAAC;QACrE,MAAM,MAAM,GAAG,CAAC,KAAK,EAAE,UAAU,IAAI,KAAK,EAAE,OAAO,IAAI,EAAE,CAAW,CAAC;QACrE,IAA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S,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,YACjE,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,YACtB,MAAC,IAAI,0BACI,KAAC,IAAI,IAAC,IAAI,kBAAE,QAAQ,GAAQ,EAClC,MAAM,IACF,GACH,GACF,CACP,CAAC;QACJ,CAAC;QAED,mBAAmB;QACnB,OAAO,KAAC,IAAI,cAAE,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,GAAQ,CAAC;IAC1D,CAAC;IACD,eAAe;QACb,OAAO,KAAC,8BAA8B,KAAG,CAAC;IAC5C,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import { extname, relative } from "path";
|
|
4
|
+
import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
|
|
5
|
+
import { HighlightedCode } from "../../components/HighlightedCode.js";
|
|
6
|
+
import { getTheme } from "../../theme/index.js";
|
|
7
|
+
import { capLines, safeFallbackText, MAX_VERBOSE_LINES } from "../truncation.js";
|
|
8
|
+
const MAX_LINES_TO_RENDER = 3;
|
|
9
|
+
export const FileReadToolRenderers = {
|
|
10
|
+
displayName() {
|
|
11
|
+
return "Read";
|
|
12
|
+
},
|
|
13
|
+
renderInput(input, { verbose }) {
|
|
14
|
+
const filePath = String(input?.file_path ?? input?.path ?? "");
|
|
15
|
+
const { file_path: _fp, path: _p, ...rest } = input;
|
|
16
|
+
const entries = [
|
|
17
|
+
["path", verbose ? filePath : relative(process.cwd(), filePath)],
|
|
18
|
+
...Object.entries(rest).filter(([k]) => k !== "file_path" && k !== "path"),
|
|
19
|
+
];
|
|
20
|
+
return entries.map(([key, value]) => `${key}: ${JSON.stringify(value)}`).join(", ");
|
|
21
|
+
},
|
|
22
|
+
renderOutput(output, { verbose }, input) {
|
|
23
|
+
// ARIA's read_file returns a plain string (file content) for text files,
|
|
24
|
+
// or { type: "media", ... } for images. Legacy shape:
|
|
25
|
+
// { type: "text"|"image", file: { filePath, content, numLines } }.
|
|
26
|
+
const inputObj = (input ?? {});
|
|
27
|
+
const inputPath = String(inputObj.file_path ?? inputObj.path ?? "");
|
|
28
|
+
const langFromInput = inputPath ? extname(inputPath).slice(1) : "";
|
|
29
|
+
if (output == null) {
|
|
30
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: "(No content)" }) }) }));
|
|
31
|
+
}
|
|
32
|
+
// ARIA shape: plain string (file content)
|
|
33
|
+
if (typeof output === "string") {
|
|
34
|
+
const contentWithFallback = output || "(No content)";
|
|
35
|
+
const lines = contentWithFallback.split("\n");
|
|
36
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsxs(Box, { flexDirection: "column", children: [_jsx(HighlightedCode, { code: verbose
|
|
37
|
+
? capLines(lines.slice(0, MAX_VERBOSE_LINES).join("\n"))
|
|
38
|
+
: capLines(lines
|
|
39
|
+
.slice(0, MAX_LINES_TO_RENDER)
|
|
40
|
+
.filter((_) => _.trim() !== "")
|
|
41
|
+
.join("\n")), language: langFromInput }), lines.length > (verbose ? MAX_VERBOSE_LINES : MAX_LINES_TO_RENDER) && (_jsxs(Text, { color: getTheme().colors.textMuted, children: ["... (+", lines.length - (verbose ? MAX_VERBOSE_LINES : MAX_LINES_TO_RENDER), " lines)"] }))] }) }) }));
|
|
42
|
+
}
|
|
43
|
+
// Object shapes
|
|
44
|
+
const obj = output;
|
|
45
|
+
// ARIA shape: { type: "media", ... } for images
|
|
46
|
+
if (obj.type === "media" || obj.type === "image") {
|
|
47
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: "Read image" }) }) }));
|
|
48
|
+
}
|
|
49
|
+
// Legacy shape: { type: "text", file: { filePath, content, numLines } }
|
|
50
|
+
if (obj.type === "text" && obj.file) {
|
|
51
|
+
const file = obj.file;
|
|
52
|
+
const contentWithFallback = file.content || "(No content)";
|
|
53
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsxs(Box, { flexDirection: "column", children: [_jsx(HighlightedCode, { code: verbose
|
|
54
|
+
? contentWithFallback
|
|
55
|
+
: capLines(contentWithFallback
|
|
56
|
+
.split("\n")
|
|
57
|
+
.slice(0, MAX_LINES_TO_RENDER)
|
|
58
|
+
.filter((_) => _.trim() !== "")
|
|
59
|
+
.join("\n")), language: extname(file.filePath).slice(1) }), !verbose && file.numLines > MAX_LINES_TO_RENDER && (_jsxs(Text, { color: getTheme().colors.textMuted, children: ["... (+", file.numLines - MAX_LINES_TO_RENDER, " lines)"] }))] }) }) }));
|
|
60
|
+
}
|
|
61
|
+
// Default fallback: JSON.stringify
|
|
62
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: safeFallbackText(output, verbose) }) }) }));
|
|
63
|
+
},
|
|
64
|
+
renderRejection() {
|
|
65
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/FileReadTool/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAEzC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE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C,CAAC,EAAE,mBAAmB,CAAC;yCAC7B,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;yCAC9B,IAAI,CAAC,IAAI,CAAC,CACd,EAEP,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GACzC,EACD,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,GAAG,mBAAmB,IAAI,CAClD,MAAC,IAAI,IAAC,KAAK,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,SAAS,uBAC/B,IAAI,CAAC,QAAQ,GAAG,mBAAmB,eACrC,CACR,IACG,GACF,GACF,CACP,CAAC;QACJ,CAAC;QAED,mCAAmC;QACnC,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,cAAE,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,GAAQ,GAC5C,GACF,CACP,CAAC;IACJ,CAAC;IACD,eAAe;QACb,OAAO,KAAC,8BAA8B,KAAG,CAAC;IAC5C,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
|
|
3
|
+
import { Box, Text } from "ink";
|
|
4
|
+
import { EOL } from "os";
|
|
5
|
+
import { extname, relative } from "path";
|
|
6
|
+
import { FileEditToolUpdatedMessage } from "../../components/FileEditToolUpdatedMessage.js";
|
|
7
|
+
import { HighlightedCode } from "../../components/HighlightedCode.js";
|
|
8
|
+
import { getTheme } from "../../theme/index.js";
|
|
9
|
+
import { capLines, safeFallbackText, MAX_VERBOSE_LINES } from "../truncation.js";
|
|
10
|
+
const MAX_LINES_TO_RENDER = 3;
|
|
11
|
+
export const FileWriteToolRenderers = {
|
|
12
|
+
displayName: () => "Write",
|
|
13
|
+
renderInput(input, { verbose }) {
|
|
14
|
+
const filePath = String(input?.file_path ?? input?.path ?? "");
|
|
15
|
+
if (!filePath)
|
|
16
|
+
return "";
|
|
17
|
+
const display = verbose ? filePath : relative(process.cwd(), filePath);
|
|
18
|
+
const bytes = typeof input?.content === "string" ? ` (${input.content.length} bytes)` : "";
|
|
19
|
+
return display + bytes;
|
|
20
|
+
},
|
|
21
|
+
renderRejection() {
|
|
22
|
+
return _jsx(FallbackToolUseRejectedMessage, {});
|
|
23
|
+
},
|
|
24
|
+
renderOutput(output, { verbose }) {
|
|
25
|
+
if (output == null) {
|
|
26
|
+
return _jsx(Text, { children: "(No content)" });
|
|
27
|
+
}
|
|
28
|
+
// Handle string output
|
|
29
|
+
if (typeof output === "string") {
|
|
30
|
+
return _jsx(Text, { children: safeFallbackText(output, verbose) });
|
|
31
|
+
}
|
|
32
|
+
const obj = output;
|
|
33
|
+
// Structured diff shape: overwrites/appends include structuredPatch from executor
|
|
34
|
+
if (obj.structuredPatch) {
|
|
35
|
+
return (_jsx(FileEditToolUpdatedMessage, { filePath: (obj.filePath ?? obj.path), structuredPatch: obj.structuredPatch, verbose: verbose }));
|
|
36
|
+
}
|
|
37
|
+
// ARIA shape without diff: new files { path, action: "created", bytesWritten }
|
|
38
|
+
if (obj.path != null && obj.action != null) {
|
|
39
|
+
const filePath = verbose ? String(obj.path) : relative(process.cwd(), String(obj.path));
|
|
40
|
+
const bytesWritten = obj.bytesWritten != null ? Number(obj.bytesWritten) : undefined;
|
|
41
|
+
const action = String(obj.action);
|
|
42
|
+
const sizeStr = bytesWritten != null ? `${bytesWritten} bytes to ` : "";
|
|
43
|
+
return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsxs(Text, { children: ["Wrote ", sizeStr, _jsx(Text, { bold: true, children: filePath }), " (", action, ")"] }) }) }));
|
|
44
|
+
}
|
|
45
|
+
if (obj.type === "create" && obj.filePath != null) {
|
|
46
|
+
const content = obj.content || "";
|
|
47
|
+
const contentWithFallback = content || "(No content)";
|
|
48
|
+
const numLines = content.split(EOL).length;
|
|
49
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["Wrote ", numLines, " lines to", " ", _jsx(Text, { bold: true, children: verbose ? obj.filePath : relative(process.cwd(), obj.filePath) })] }), _jsxs(Box, { flexDirection: "column", paddingLeft: 5, children: [_jsx(HighlightedCode, { code: verbose
|
|
50
|
+
? capLines(contentWithFallback.split("\n").slice(0, MAX_VERBOSE_LINES).join("\n"))
|
|
51
|
+
: capLines(contentWithFallback
|
|
52
|
+
.split("\n")
|
|
53
|
+
.slice(0, MAX_LINES_TO_RENDER)
|
|
54
|
+
.filter((_) => _.trim() !== "")
|
|
55
|
+
.join("\n")), language: extname(obj.filePath).slice(1) }), numLines > (verbose ? MAX_VERBOSE_LINES : MAX_LINES_TO_RENDER) && (_jsxs(Text, { color: getTheme().colors.textMuted, children: ["... (+", numLines - (verbose ? MAX_VERBOSE_LINES : MAX_LINES_TO_RENDER), " lines)"] }))] })] }));
|
|
56
|
+
}
|
|
57
|
+
// Default fallback
|
|
58
|
+
return _jsx(Text, { children: safeFallbackText(output, verbose) });
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/FileWriteTool/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AAEpG,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,QAA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