orient-cli 0.3.0 → 0.3.2
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/dist/integrations/notebooklm/notebooklm-extension.js +3 -8
- package/dist/integrations/notebooklm/notebooklm-extension.js.map +1 -1
- package/dist/integrations/playwright/playwright-extension.js +4 -14
- package/dist/integrations/playwright/playwright-extension.js.map +1 -1
- package/dist/integrations/web-search/bridge.js +12 -23
- package/dist/integrations/web-search/bridge.js.map +1 -1
- package/dist/integrations/web-search/web-search-extension.js +0 -3
- package/dist/integrations/web-search/web-search-extension.js.map +1 -1
- package/dist/orient/orient-extension.js +6 -14
- package/dist/orient/orient-extension.js.map +1 -1
- package/package.json +3 -10
- package/scripts/postinstall.mjs +40 -1
- package/vendor/@orient-cli/coding-agent/dist/bun/cli.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/bun/cli.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/bun/register-bedrock.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/cli/args.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/cli/args.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/cli/config-selector.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/cli/config-selector.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/cli/file-processor.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/cli/file-processor.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/cli/initial-message.d.ts +18 -0
- package/vendor/@orient-cli/coding-agent/dist/cli/initial-message.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/cli/initial-message.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/cli/list-models.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/cli/list-models.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/cli/session-picker.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/cli/session-picker.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/cli.d.ts.map +1 -0
- package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli.js +0 -0
- package/vendor/@orient-cli/coding-agent/dist/cli.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/config.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/config.js +251 -0
- package/vendor/@orient-cli/coding-agent/dist/config.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/agent-session-runtime.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/agent-session-runtime.js +231 -0
- package/vendor/@orient-cli/coding-agent/dist/core/agent-session-runtime.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/agent-session-services.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/agent-session-services.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/agent-session.d.ts +617 -0
- package/vendor/@orient-cli/coding-agent/dist/core/agent-session.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/agent-session.js +2477 -0
- package/vendor/@orient-cli/coding-agent/dist/core/agent-session.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/auth-storage.d.ts +136 -0
- package/vendor/@orient-cli/coding-agent/dist/core/auth-storage.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/auth-storage.js +418 -0
- package/vendor/@orient-cli/coding-agent/dist/core/auth-storage.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/bash-executor.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/bash-executor.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/compaction/branch-summarization.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/compaction/branch-summarization.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/compaction/compaction.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/compaction/compaction.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/compaction/index.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/compaction/utils.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/compaction/utils.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/defaults.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/diagnostics.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/event-bus.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/event-bus.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/exec.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/exec.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/export-html/ansi-to-html.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/export-html/index.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/export-html/index.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/export-html/tool-renderer.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/export-html/tool-renderer.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/extensions/index.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/extensions/loader.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/extensions/loader.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/extensions/runner.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/extensions/runner.js +695 -0
- package/vendor/@orient-cli/coding-agent/dist/core/extensions/runner.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/extensions/types.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/extensions/types.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/extensions/wrapper.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/extensions/wrapper.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/footer-data-provider.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/footer-data-provider.js +313 -0
- package/vendor/@orient-cli/coding-agent/dist/core/footer-data-provider.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/index.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/keybindings.d.ts +293 -0
- package/vendor/@orient-cli/coding-agent/dist/core/keybindings.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/keybindings.js +247 -0
- package/vendor/@orient-cli/coding-agent/dist/core/keybindings.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/messages.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/messages.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/model-registry.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/model-registry.js +612 -0
- package/vendor/@orient-cli/coding-agent/dist/core/model-registry.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/model-resolver.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/model-resolver.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/output-guard.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/output-guard.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/package-manager.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/package-manager.js +1823 -0
- package/vendor/@orient-cli/coding-agent/dist/core/package-manager.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/prompt-templates.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/prompt-templates.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/resolve-config-value.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/resolve-config-value.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/resource-loader.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/resource-loader.js +681 -0
- package/vendor/@orient-cli/coding-agent/dist/core/resource-loader.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/sdk.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/sdk.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/session-cwd.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/session-cwd.js +37 -0
- package/vendor/@orient-cli/coding-agent/dist/core/session-cwd.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/session-manager.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/session-manager.js +1101 -0
- package/vendor/@orient-cli/coding-agent/dist/core/session-manager.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/settings-manager.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/settings-manager.js +699 -0
- package/vendor/@orient-cli/coding-agent/dist/core/settings-manager.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/skills.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/skills.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/slash-commands.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/source-info.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/source-info.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/system-prompt.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/system-prompt.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/timings.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/timings.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/bash.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/bash.js +355 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/bash.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/edit-diff.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/edit-diff.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/edit.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/edit.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/file-mutation-queue.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/file-mutation-queue.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/find.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/find.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/grep.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/grep.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/index.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/index.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/ls.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/ls.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/path-utils.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/path-utils.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/read.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/read.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/render-utils.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/render-utils.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/tool-definition-wrapper.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/truncate.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/truncate.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/write.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/write.js +215 -0
- package/vendor/@orient-cli/coding-agent/dist/core/tools/write.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/index.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/main.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/main.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/migrations.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/migrations.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/index.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/assistant-message.js +102 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/assistant-message.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/bash-execution.js +170 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/bash-execution.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/bordered-loader.js +48 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/bordered-loader.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/branch-summary-message.js +42 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/compaction-summary-message.js +43 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/config-selector.js +470 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/config-selector.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/countdown-timer.js +28 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/countdown-timer.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/custom-editor.js +63 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/custom-editor.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/custom-message.js +74 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/custom-message.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/diff.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/diff.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/dynamic-border.js +20 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/dynamic-border.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-editor.js +106 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-editor.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-input.js +55 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-input.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.js +71 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/footer.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/footer.js +199 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/footer.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/index.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/index.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.js +139 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.js +263 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/oauth-selector.js +92 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/oauth-selector.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/orient-banner.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/orient-banner.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/scoped-models-selector.js +271 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector-search.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector.js +823 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/settings-selector.js +299 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/settings-selector.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/show-images-selector.js +38 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/show-images-selector.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/skill-invocation-message.js +45 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/theme-selector.js +48 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/theme-selector.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/thinking-selector.js +50 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/thinking-selector.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/tool-execution.js +261 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/tool-execution.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/tree-selector.js +1070 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/tree-selector.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/user-message-selector.js +110 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/user-message-selector.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/user-message.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/user-message.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/visual-truncate.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.d.ts +359 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.js +4081 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/theme/theme.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/theme/theme.js +973 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/interactive/theme/theme.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/print-mode.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/print-mode.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/rpc/jsonl.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/rpc/jsonl.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/rpc/rpc-client.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/rpc/rpc-client.js +401 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/rpc/rpc-client.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/rpc/rpc-mode.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/modes/rpc/rpc-types.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/package-manager-cli.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/package-manager-cli.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/changelog.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/changelog.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/child-process.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/child-process.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/clipboard-image.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/clipboard-image.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/clipboard-native.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/clipboard-native.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/clipboard.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/clipboard.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/exif-orientation.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/exif-orientation.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/frontmatter.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/frontmatter.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/git.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/git.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/image-convert.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/image-convert.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/image-resize.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/image-resize.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/mime.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/mime.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/paths.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/paths.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/photon.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/photon.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/shell.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/shell.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/sleep.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/sleep.js.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/tools-manager.d.ts.map +1 -0
- package/vendor/@orient-cli/coding-agent/dist/utils/tools-manager.js.map +1 -0
- package/node_modules/@orient-cli/agent-core/README.md +0 -456
- package/node_modules/@orient-cli/ai/README.md +0 -1315
- package/node_modules/@orient-cli/coding-agent/README.md +0 -618
- package/node_modules/@orient-cli/coding-agent/dist/bun/cli.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/bun/cli.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/bun/register-bedrock.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/cli/args.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/cli/args.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/cli/config-selector.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/cli/config-selector.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/cli/file-processor.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/cli/file-processor.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/cli/initial-message.d.ts +0 -18
- package/node_modules/@orient-cli/coding-agent/dist/cli/initial-message.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/cli/initial-message.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/cli/list-models.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/cli/list-models.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/cli/session-picker.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/cli/session-picker.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/cli.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/cli.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/config.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/config.js +0 -229
- package/node_modules/@orient-cli/coding-agent/dist/config.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/agent-session-runtime.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/agent-session-runtime.js +0 -236
- package/node_modules/@orient-cli/coding-agent/dist/core/agent-session-runtime.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/agent-session-services.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/agent-session-services.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/agent-session.d.ts +0 -585
- package/node_modules/@orient-cli/coding-agent/dist/core/agent-session.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/agent-session.js +0 -2497
- package/node_modules/@orient-cli/coding-agent/dist/core/agent-session.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/auth-storage.d.ts +0 -132
- package/node_modules/@orient-cli/coding-agent/dist/core/auth-storage.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/auth-storage.js +0 -422
- package/node_modules/@orient-cli/coding-agent/dist/core/auth-storage.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/bash-executor.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/bash-executor.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/compaction/branch-summarization.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/compaction/branch-summarization.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/compaction/compaction.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/compaction/compaction.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/compaction/index.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/compaction/utils.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/compaction/utils.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/defaults.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/diagnostics.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/event-bus.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/event-bus.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/exec.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/exec.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/export-html/ansi-to-html.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/export-html/ansi-to-html.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/export-html/index.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/export-html/index.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/export-html/template.css +0 -1001
- package/node_modules/@orient-cli/coding-agent/dist/core/export-html/template.html +0 -55
- package/node_modules/@orient-cli/coding-agent/dist/core/export-html/template.js +0 -1690
- package/node_modules/@orient-cli/coding-agent/dist/core/export-html/tool-renderer.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/export-html/tool-renderer.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/export-html/vendor/highlight.min.js +0 -1213
- package/node_modules/@orient-cli/coding-agent/dist/core/export-html/vendor/marked.min.js +0 -6
- package/node_modules/@orient-cli/coding-agent/dist/core/extensions/index.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/extensions/loader.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/extensions/loader.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/extensions/runner.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/extensions/runner.js +0 -701
- package/node_modules/@orient-cli/coding-agent/dist/core/extensions/runner.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/extensions/types.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/extensions/types.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/extensions/wrapper.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/extensions/wrapper.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/footer-data-provider.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/footer-data-provider.js +0 -314
- package/node_modules/@orient-cli/coding-agent/dist/core/footer-data-provider.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/index.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/keybindings.d.ts +0 -293
- package/node_modules/@orient-cli/coding-agent/dist/core/keybindings.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/keybindings.js +0 -248
- package/node_modules/@orient-cli/coding-agent/dist/core/keybindings.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/messages.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/messages.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/model-registry.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/model-registry.js +0 -612
- package/node_modules/@orient-cli/coding-agent/dist/core/model-registry.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/model-resolver.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/model-resolver.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/output-guard.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/output-guard.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/package-manager.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/package-manager.js +0 -1829
- package/node_modules/@orient-cli/coding-agent/dist/core/package-manager.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/prompt-templates.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/prompt-templates.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/resolve-config-value.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/resolve-config-value.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/resource-loader.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/resource-loader.js +0 -720
- package/node_modules/@orient-cli/coding-agent/dist/core/resource-loader.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/sdk.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/sdk.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/session-cwd.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/session-cwd.js +0 -38
- package/node_modules/@orient-cli/coding-agent/dist/core/session-cwd.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/session-manager.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/session-manager.js +0 -1105
- package/node_modules/@orient-cli/coding-agent/dist/core/session-manager.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/settings-manager.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/settings-manager.js +0 -708
- package/node_modules/@orient-cli/coding-agent/dist/core/settings-manager.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/skills.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/skills.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/slash-commands.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/source-info.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/source-info.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/system-prompt.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/system-prompt.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/timings.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/timings.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/bash.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/bash.js +0 -352
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/bash.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/edit-diff.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/edit-diff.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/edit.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/edit.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/file-mutation-queue.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/file-mutation-queue.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/find.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/find.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/grep.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/grep.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/index.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/index.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/ls.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/ls.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/path-utils.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/path-utils.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/read.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/read.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/render-utils.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/render-utils.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/tool-definition-wrapper.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/tool-definition-wrapper.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/truncate.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/truncate.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/write.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/write.js +0 -216
- package/node_modules/@orient-cli/coding-agent/dist/core/tools/write.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/index.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/main.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/main.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/migrations.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/migrations.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/index.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/assistant-message.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/assistant-message.js +0 -107
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/assistant-message.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/bash-execution.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/bash-execution.js +0 -175
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/bash-execution.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/bordered-loader.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/bordered-loader.js +0 -51
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/bordered-loader.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/branch-summary-message.js +0 -44
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/branch-summary-message.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/compaction-summary-message.js +0 -45
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/compaction-summary-message.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/config-selector.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/config-selector.js +0 -479
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/config-selector.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/countdown-timer.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/countdown-timer.js +0 -33
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/countdown-timer.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/custom-editor.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/custom-editor.js +0 -70
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/custom-editor.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/custom-message.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/custom-message.js +0 -79
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/custom-message.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/diff.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/diff.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/dynamic-border.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/dynamic-border.js +0 -21
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/dynamic-border.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-editor.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-editor.js +0 -111
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-editor.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-input.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-input.js +0 -61
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-input.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.js +0 -78
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/footer.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/footer.js +0 -201
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/footer.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/index.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/index.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/keybinding-hints.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.js +0 -145
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.js +0 -275
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/oauth-selector.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/oauth-selector.js +0 -97
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/oauth-selector.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/orient-banner.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/orient-banner.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/scoped-models-selector.js +0 -275
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/scoped-models-selector.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector-search.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector-search.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector.js +0 -848
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/settings-selector.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/settings-selector.js +0 -301
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/settings-selector.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/show-images-selector.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/show-images-selector.js +0 -39
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/show-images-selector.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/skill-invocation-message.js +0 -47
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/skill-invocation-message.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/theme-selector.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/theme-selector.js +0 -50
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/theme-selector.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/thinking-selector.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/thinking-selector.js +0 -51
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/thinking-selector.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/tool-execution.js +0 -274
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/tool-execution.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/tree-selector.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/tree-selector.js +0 -1084
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/tree-selector.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/user-message-selector.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/user-message-selector.js +0 -113
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/user-message-selector.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/user-message.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/user-message.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/visual-truncate.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/visual-truncate.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.d.ts +0 -345
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.js +0 -4106
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/theme/dark.json +0 -85
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/theme/light.json +0 -84
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/theme/theme-schema.json +0 -335
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/theme/theme.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/theme/theme.js +0 -979
- package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/theme/theme.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/print-mode.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/print-mode.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/jsonl.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/jsonl.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/rpc-client.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/rpc-client.js +0 -402
- package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/rpc-client.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/rpc-mode.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/rpc-mode.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/rpc-types.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/package-manager-cli.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/package-manager-cli.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/changelog.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/changelog.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/child-process.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/child-process.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/clipboard-image.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/clipboard-image.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/clipboard-native.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/clipboard-native.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/clipboard.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/clipboard.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/exif-orientation.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/exif-orientation.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/frontmatter.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/frontmatter.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/git.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/git.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/image-convert.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/image-convert.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/image-resize.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/image-resize.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/mime.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/mime.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/paths.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/paths.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/photon.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/photon.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/shell.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/shell.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/sleep.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/sleep.js.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/tools-manager.d.ts.map +0 -1
- package/node_modules/@orient-cli/coding-agent/dist/utils/tools-manager.js.map +0 -1
- package/node_modules/@orient-cli/tui/README.md +0 -767
- package/node_modules/mime-db/HISTORY.md +0 -541
- package/node_modules/mime-db/LICENSE +0 -23
- package/node_modules/mime-db/README.md +0 -109
- package/node_modules/mime-db/db.json +0 -9342
- package/node_modules/mime-db/index.js +0 -12
- package/node_modules/mime-db/package.json +0 -56
- package/node_modules/mime-types/HISTORY.md +0 -428
- package/node_modules/mime-types/LICENSE +0 -23
- package/node_modules/mime-types/README.md +0 -126
- package/node_modules/mime-types/index.js +0 -211
- package/node_modules/mime-types/mimeScore.js +0 -57
- package/node_modules/mime-types/package.json +0 -49
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent-loop.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent-loop.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent-loop.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent-loop.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/index.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/index.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/index.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/index.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/proxy.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/proxy.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/proxy.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/proxy.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/types.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/types.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/types.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/dist/types.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/agent-core/package.json +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/api-registry.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/api-registry.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/api-registry.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/api-registry.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/bedrock-provider.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/bedrock-provider.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/bedrock-provider.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/bedrock-provider.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/cli.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/cli.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/cli.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/cli.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/env-api-keys.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/env-api-keys.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/env-api-keys.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/env-api-keys.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/index.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/index.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/index.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/index.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/models.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/models.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/models.generated.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/models.generated.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/models.generated.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/models.generated.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/models.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/models.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/oauth.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/oauth.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/oauth.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/oauth.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/amazon-bedrock.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/amazon-bedrock.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/amazon-bedrock.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/amazon-bedrock.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/anthropic.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/anthropic.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/anthropic.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/anthropic.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/azure-openai-responses.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/azure-openai-responses.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/azure-openai-responses.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/azure-openai-responses.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/faux.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/faux.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/faux.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/faux.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/github-copilot-headers.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/github-copilot-headers.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/github-copilot-headers.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/github-copilot-headers.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-gemini-cli.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-gemini-cli.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-gemini-cli.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-gemini-cli.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-shared.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-shared.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-shared.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-shared.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-vertex.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-vertex.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-vertex.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-vertex.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/mistral.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/mistral.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/mistral.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/mistral.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-codex-responses.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-codex-responses.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-codex-responses.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-codex-responses.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-completions.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-completions.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-completions.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-completions.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses-shared.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses-shared.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses-shared.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses-shared.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/register-builtins.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/register-builtins.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/register-builtins.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/register-builtins.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/simple-options.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/simple-options.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/simple-options.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/simple-options.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/transform-messages.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/transform-messages.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/transform-messages.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/transform-messages.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/stream.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/stream.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/stream.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/stream.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/types.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/types.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/types.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/types.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/event-stream.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/event-stream.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/event-stream.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/event-stream.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/hash.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/hash.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/hash.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/hash.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/json-parse.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/json-parse.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/json-parse.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/json-parse.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/anthropic.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/anthropic.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/anthropic.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/anthropic.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/github-copilot.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/github-copilot.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/github-copilot.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/github-copilot.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-antigravity.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-antigravity.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-antigravity.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-antigravity.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-gemini-cli.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-gemini-cli.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-gemini-cli.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-gemini-cli.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/index.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/index.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/index.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/index.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/oauth-page.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/oauth-page.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/oauth-page.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/oauth-page.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/openai-codex.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/openai-codex.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/openai-codex.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/openai-codex.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/pkce.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/pkce.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/pkce.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/pkce.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/types.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/types.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/types.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/types.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/overflow.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/overflow.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/overflow.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/overflow.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/sanitize-unicode.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/sanitize-unicode.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/sanitize-unicode.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/sanitize-unicode.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/typebox-helpers.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/typebox-helpers.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/typebox-helpers.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/typebox-helpers.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/validation.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/validation.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/validation.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/validation.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/ai/package.json +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/bun/cli.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/bun/cli.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/bun/register-bedrock.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/bun/register-bedrock.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/bun/register-bedrock.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/args.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/args.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/config-selector.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/config-selector.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/file-processor.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/file-processor.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/initial-message.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/list-models.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/list-models.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/session-picker.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/session-picker.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/config.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/agent-session-runtime.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/agent-session-services.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/agent-session-services.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/bash-executor.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/bash-executor.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/branch-summarization.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/branch-summarization.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/compaction.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/compaction.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/index.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/index.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/index.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/utils.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/utils.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/defaults.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/defaults.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/defaults.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/diagnostics.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/diagnostics.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/diagnostics.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/event-bus.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/event-bus.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/exec.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/exec.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/export-html/ansi-to-html.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/export-html/ansi-to-html.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/export-html/index.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/export-html/index.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/export-html/tool-renderer.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/export-html/tool-renderer.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/index.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/index.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/index.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/loader.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/loader.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/runner.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/types.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/types.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/wrapper.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/wrapper.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/footer-data-provider.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/index.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/index.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/index.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/messages.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/messages.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/model-registry.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/model-resolver.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/model-resolver.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/output-guard.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/output-guard.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/package-manager.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/prompt-templates.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/prompt-templates.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/resolve-config-value.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/resolve-config-value.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/resource-loader.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/sdk.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/sdk.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/session-cwd.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/session-manager.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/settings-manager.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/skills.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/skills.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/slash-commands.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/slash-commands.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/slash-commands.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/source-info.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/source-info.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/system-prompt.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/system-prompt.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/timings.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/timings.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/bash.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/edit-diff.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/edit-diff.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/edit.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/edit.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/file-mutation-queue.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/file-mutation-queue.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/find.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/find.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/grep.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/grep.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/index.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/index.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/ls.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/ls.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/path-utils.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/path-utils.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/read.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/read.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/render-utils.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/render-utils.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/tool-definition-wrapper.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/tool-definition-wrapper.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/truncate.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/truncate.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/write.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/index.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/index.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/index.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/main.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/main.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/migrations.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/migrations.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/index.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/index.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/index.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/assistant-message.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/bash-execution.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/bordered-loader.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/config-selector.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/countdown-timer.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/custom-editor.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/custom-message.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/diff.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/diff.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/dynamic-border.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/extension-editor.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/extension-input.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/footer.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/index.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/index.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/keybinding-hints.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/oauth-selector.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/orient-banner.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/orient-banner.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector-search.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector-search.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/settings-selector.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/show-images-selector.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/theme-selector.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/thinking-selector.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/tool-execution.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/tree-selector.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/user-message-selector.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/user-message.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/user-message.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/visual-truncate.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/visual-truncate.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/theme/theme.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/print-mode.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/print-mode.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/jsonl.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/jsonl.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/rpc-client.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/rpc-mode.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/rpc-mode.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/rpc-types.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/rpc-types.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/rpc-types.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/package-manager-cli.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/package-manager-cli.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/changelog.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/changelog.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/child-process.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/child-process.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/clipboard-image.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/clipboard-image.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/clipboard-native.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/clipboard-native.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/clipboard.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/clipboard.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/exif-orientation.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/exif-orientation.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/frontmatter.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/frontmatter.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/git.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/git.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/image-convert.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/image-convert.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/image-resize.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/image-resize.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/mime.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/mime.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/paths.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/paths.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/photon.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/photon.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/shell.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/shell.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/sleep.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/sleep.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/tools-manager.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/tools-manager.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/coding-agent/package.json +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/autocomplete.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/autocomplete.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/autocomplete.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/autocomplete.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/box.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/box.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/box.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/box.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/cancellable-loader.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/cancellable-loader.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/cancellable-loader.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/cancellable-loader.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/editor.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/editor.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/editor.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/editor.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/image.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/image.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/image.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/image.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/input.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/input.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/input.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/input.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/loader.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/loader.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/loader.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/loader.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/markdown.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/markdown.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/markdown.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/markdown.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/select-list.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/select-list.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/select-list.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/select-list.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/settings-list.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/settings-list.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/settings-list.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/settings-list.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/spacer.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/spacer.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/spacer.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/spacer.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/text.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/text.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/text.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/text.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/truncated-text.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/truncated-text.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/truncated-text.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/components/truncated-text.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/editor-component.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/editor-component.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/editor-component.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/editor-component.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/fuzzy.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/fuzzy.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/fuzzy.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/fuzzy.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/index.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/index.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/index.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/index.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/keybindings.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/keybindings.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/keybindings.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/keybindings.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/keys.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/keys.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/keys.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/keys.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/kill-ring.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/kill-ring.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/kill-ring.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/kill-ring.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/stdin-buffer.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/stdin-buffer.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/stdin-buffer.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/stdin-buffer.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal-image.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal-image.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal-image.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal-image.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/tui.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/tui.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/tui.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/tui.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/undo-stack.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/undo-stack.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/undo-stack.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/undo-stack.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/utils.d.ts +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/utils.d.ts.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/utils.js +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/dist/utils.js.map +0 -0
- /package/{node_modules → vendor}/@orient-cli/tui/package.json +0 -0
package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generic selector component for extensions.
|
|
3
|
+
* Displays a list of string options with keyboard navigation.
|
|
4
|
+
*/
|
|
5
|
+
import { Container, getKeybindings, Spacer, Text } from "@orient-cli/tui";
|
|
6
|
+
import { theme } from "../theme/theme.js";
|
|
7
|
+
import { CountdownTimer } from "./countdown-timer.js";
|
|
8
|
+
import { DynamicBorder } from "./dynamic-border.js";
|
|
9
|
+
import { keyHint, rawKeyHint } from "./keybinding-hints.js";
|
|
10
|
+
export class ExtensionSelectorComponent extends Container {
|
|
11
|
+
constructor(title, options, onSelect, onCancel, opts) {
|
|
12
|
+
super();
|
|
13
|
+
this.selectedIndex = 0;
|
|
14
|
+
this.options = options;
|
|
15
|
+
this.onSelectCallback = onSelect;
|
|
16
|
+
this.onCancelCallback = onCancel;
|
|
17
|
+
this.baseTitle = title;
|
|
18
|
+
this.addChild(new DynamicBorder());
|
|
19
|
+
this.addChild(new Spacer(1));
|
|
20
|
+
this.titleText = new Text(theme.fg("accent", title), 1, 0);
|
|
21
|
+
this.addChild(this.titleText);
|
|
22
|
+
this.addChild(new Spacer(1));
|
|
23
|
+
if (opts?.timeout && opts.timeout > 0 && opts.tui) {
|
|
24
|
+
this.countdown = new CountdownTimer(opts.timeout, opts.tui, (s) => this.titleText.setText(theme.fg("accent", `${this.baseTitle} (${s}s)`)), () => this.onCancelCallback());
|
|
25
|
+
}
|
|
26
|
+
this.listContainer = new Container();
|
|
27
|
+
this.addChild(this.listContainer);
|
|
28
|
+
this.addChild(new Spacer(1));
|
|
29
|
+
this.addChild(new Text(rawKeyHint("↑↓", "navigate") +
|
|
30
|
+
" " +
|
|
31
|
+
keyHint("tui.select.confirm", "select") +
|
|
32
|
+
" " +
|
|
33
|
+
keyHint("tui.select.cancel", "cancel"), 1, 0));
|
|
34
|
+
this.addChild(new Spacer(1));
|
|
35
|
+
this.addChild(new DynamicBorder());
|
|
36
|
+
this.updateList();
|
|
37
|
+
}
|
|
38
|
+
updateList() {
|
|
39
|
+
this.listContainer.clear();
|
|
40
|
+
for (let i = 0; i < this.options.length; i++) {
|
|
41
|
+
const isSelected = i === this.selectedIndex;
|
|
42
|
+
const text = isSelected
|
|
43
|
+
? theme.fg("accent", "→ ") + theme.fg("accent", this.options[i])
|
|
44
|
+
: ` ${theme.fg("text", this.options[i])}`;
|
|
45
|
+
this.listContainer.addChild(new Text(text, 1, 0));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
handleInput(keyData) {
|
|
49
|
+
const kb = getKeybindings();
|
|
50
|
+
if (kb.matches(keyData, "tui.select.up") || keyData === "k") {
|
|
51
|
+
this.selectedIndex = Math.max(0, this.selectedIndex - 1);
|
|
52
|
+
this.updateList();
|
|
53
|
+
}
|
|
54
|
+
else if (kb.matches(keyData, "tui.select.down") || keyData === "j") {
|
|
55
|
+
this.selectedIndex = Math.min(this.options.length - 1, this.selectedIndex + 1);
|
|
56
|
+
this.updateList();
|
|
57
|
+
}
|
|
58
|
+
else if (kb.matches(keyData, "tui.select.confirm") || keyData === "\n") {
|
|
59
|
+
const selected = this.options[this.selectedIndex];
|
|
60
|
+
if (selected)
|
|
61
|
+
this.onSelectCallback(selected);
|
|
62
|
+
}
|
|
63
|
+
else if (kb.matches(keyData, "tui.select.cancel")) {
|
|
64
|
+
this.onCancelCallback();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
dispose() {
|
|
68
|
+
this.countdown?.dispose();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=extension-selector.js.map
|
package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension-selector.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/extension-selector.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,EAAY,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAO5D,MAAM,OAAO,0BAA2B,SAAQ,SAAS;IAUxD,YACC,KAAa,EACb,OAAiB,EACjB,QAAkC,EAClC,QAAoB,EACpB,IAA+B;QAE/B,KAAK,EAAE,CAAC;QAfD,kBAAa,GAAG,CAAC,CAAC;QAiBzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,gBAAgB,GAAG,QAAQ,CAAC;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G,CAAC,CAAC,CAAC;YACzD,IAAI,CAAC,UAAU,EAAE,CAAC;QACnB,CAAC;aAAM,IAAI,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,IAAI,OAAO,KAAK,GAAG,EAAE,CAAC;YACtE,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,CAAC;YAC/E,IAAI,CAAC,UAAU,EAAE,CAAC;QACnB,CAAC;aAAM,IAAI,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,oBAAoB,CAAC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;YAC1E,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAClD,IAAI,QAAQ;gBAAE,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAC/C,CAAC;aAAM,IAAI,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,mBAAmB,CAAC,EAAE,CAAC;YACrD,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACzB,CAAC;IACF,CAAC;IAED,OAAO;QACN,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,CAAC;IAC3B,CAAC;CACD","sourcesContent":["/**\n * Generic selector component for extensions.\n * Displays a list of string options with keyboard navigation.\n */\n\nimport { Container, getKeybindings, Spacer, Text, type TUI } from \"@orient-cli/tui\";\nimport { theme } from \"../theme/theme.js\";\nimport { CountdownTimer } from \"./countdown-timer.js\";\nimport { DynamicBorder } from \"./dynamic-border.js\";\nimport { keyHint, rawKeyHint } from \"./keybinding-hints.js\";\n\nexport interface ExtensionSelectorOptions {\n\ttui?: TUI;\n\ttimeout?: number;\n}\n\nexport class ExtensionSelectorComponent extends Container {\n\tprivate options: string[];\n\tprivate selectedIndex = 0;\n\tprivate listContainer: Container;\n\tprivate onSelectCallback: (option: string) => void;\n\tprivate onCancelCallback: () => void;\n\tprivate titleText: Text;\n\tprivate baseTitle: string;\n\tprivate countdown: CountdownTimer | undefined;\n\n\tconstructor(\n\t\ttitle: string,\n\t\toptions: string[],\n\t\tonSelect: (option: string) => void,\n\t\tonCancel: () => void,\n\t\topts?: ExtensionSelectorOptions,\n\t) {\n\t\tsuper();\n\n\t\tthis.options = options;\n\t\tthis.onSelectCallback = onSelect;\n\t\tthis.onCancelCallback = onCancel;\n\t\tthis.baseTitle = title;\n\n\t\tthis.addChild(new DynamicBorder());\n\t\tthis.addChild(new Spacer(1));\n\n\t\tthis.titleText = new Text(theme.fg(\"accent\", title), 1, 0);\n\t\tthis.addChild(this.titleText);\n\t\tthis.addChild(new Spacer(1));\n\n\t\tif (opts?.timeout && opts.timeout > 0 && opts.tui) {\n\t\t\tthis.countdown = new CountdownTimer(\n\t\t\t\topts.timeout,\n\t\t\t\topts.tui,\n\t\t\t\t(s) => this.titleText.setText(theme.fg(\"accent\", `${this.baseTitle} (${s}s)`)),\n\t\t\t\t() => this.onCancelCallback(),\n\t\t\t);\n\t\t}\n\n\t\tthis.listContainer = new Container();\n\t\tthis.addChild(this.listContainer);\n\t\tthis.addChild(new Spacer(1));\n\t\tthis.addChild(\n\t\t\tnew Text(\n\t\t\t\trawKeyHint(\"↑↓\", \"navigate\") +\n\t\t\t\t\t\" \" +\n\t\t\t\t\tkeyHint(\"tui.select.confirm\", \"select\") +\n\t\t\t\t\t\" \" +\n\t\t\t\t\tkeyHint(\"tui.select.cancel\", \"cancel\"),\n\t\t\t\t1,\n\t\t\t\t0,\n\t\t\t),\n\t\t);\n\t\tthis.addChild(new Spacer(1));\n\t\tthis.addChild(new DynamicBorder());\n\n\t\tthis.updateList();\n\t}\n\n\tprivate updateList(): void {\n\t\tthis.listContainer.clear();\n\t\tfor (let i = 0; i < this.options.length; i++) {\n\t\t\tconst isSelected = i === this.selectedIndex;\n\t\t\tconst text = isSelected\n\t\t\t\t? theme.fg(\"accent\", \"→ \") + theme.fg(\"accent\", this.options[i])\n\t\t\t\t: ` ${theme.fg(\"text\", this.options[i])}`;\n\t\t\tthis.listContainer.addChild(new Text(text, 1, 0));\n\t\t}\n\t}\n\n\thandleInput(keyData: string): void {\n\t\tconst kb = getKeybindings();\n\t\tif (kb.matches(keyData, \"tui.select.up\") || keyData === \"k\") {\n\t\t\tthis.selectedIndex = Math.max(0, this.selectedIndex - 1);\n\t\t\tthis.updateList();\n\t\t} else if (kb.matches(keyData, \"tui.select.down\") || keyData === \"j\") {\n\t\t\tthis.selectedIndex = Math.min(this.options.length - 1, this.selectedIndex + 1);\n\t\t\tthis.updateList();\n\t\t} else if (kb.matches(keyData, \"tui.select.confirm\") || keyData === \"\\n\") {\n\t\t\tconst selected = this.options[this.selectedIndex];\n\t\t\tif (selected) this.onSelectCallback(selected);\n\t\t} else if (kb.matches(keyData, \"tui.select.cancel\")) {\n\t\t\tthis.onCancelCallback();\n\t\t}\n\t}\n\n\tdispose(): void {\n\t\tthis.countdown?.dispose();\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../../../src/modes/interactive/components/footer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAiC,MAAM,iBAAiB,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AA0BxF;;;GAGG;AACH,qBAAa,eAAgB,YAAW,SAAS;IAI/C,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,UAAU;IAJnB,OAAO,CAAC,kBAAkB,CAAQ;gBAGzB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,0BAA0B;IAG/C,UAAU,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAIvC,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAI7C;;;OAGG;IACH,UAAU,IAAI,IAAI;IAIlB;;;OAGG;IACH,OAAO,IAAI,IAAI;IAIf,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;CA2J/B"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { truncateToWidth, visibleWidth } from "@orient-cli/tui";
|
|
2
|
+
import { theme } from "../theme/theme.js";
|
|
3
|
+
/**
|
|
4
|
+
* Sanitize text for display in a single-line status.
|
|
5
|
+
* Removes newlines, tabs, carriage returns, and other control characters.
|
|
6
|
+
*/
|
|
7
|
+
function sanitizeStatusText(text) {
|
|
8
|
+
// Replace newlines, tabs, carriage returns with space, then collapse multiple spaces
|
|
9
|
+
return text
|
|
10
|
+
.replace(/[\r\n\t]/g, " ")
|
|
11
|
+
.replace(/ +/g, " ")
|
|
12
|
+
.trim();
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Format token counts (similar to web-ui)
|
|
16
|
+
*/
|
|
17
|
+
function formatTokens(count) {
|
|
18
|
+
if (count < 1000)
|
|
19
|
+
return count.toString();
|
|
20
|
+
if (count < 10000)
|
|
21
|
+
return `${(count / 1000).toFixed(1)}k`;
|
|
22
|
+
if (count < 1000000)
|
|
23
|
+
return `${Math.round(count / 1000)}k`;
|
|
24
|
+
if (count < 10000000)
|
|
25
|
+
return `${(count / 1000000).toFixed(1)}M`;
|
|
26
|
+
return `${Math.round(count / 1000000)}M`;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Footer component that shows pwd, token stats, and context usage.
|
|
30
|
+
* Computes token/context stats from session, gets git branch and extension statuses from provider.
|
|
31
|
+
*/
|
|
32
|
+
export class FooterComponent {
|
|
33
|
+
constructor(session, footerData) {
|
|
34
|
+
this.session = session;
|
|
35
|
+
this.footerData = footerData;
|
|
36
|
+
this.autoCompactEnabled = true;
|
|
37
|
+
}
|
|
38
|
+
setSession(session) {
|
|
39
|
+
this.session = session;
|
|
40
|
+
}
|
|
41
|
+
setAutoCompactEnabled(enabled) {
|
|
42
|
+
this.autoCompactEnabled = enabled;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* No-op: git branch caching now handled by provider.
|
|
46
|
+
* Kept for compatibility with existing call sites in interactive-mode.
|
|
47
|
+
*/
|
|
48
|
+
invalidate() {
|
|
49
|
+
// No-op: git branch is cached/invalidated by provider
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Clean up resources.
|
|
53
|
+
* Git watcher cleanup now handled by provider.
|
|
54
|
+
*/
|
|
55
|
+
dispose() {
|
|
56
|
+
// Git watcher cleanup handled by provider
|
|
57
|
+
}
|
|
58
|
+
render(width) {
|
|
59
|
+
const state = this.session.state;
|
|
60
|
+
// Calculate cumulative usage from ALL session entries (not just post-compaction messages)
|
|
61
|
+
let totalInput = 0;
|
|
62
|
+
let totalOutput = 0;
|
|
63
|
+
let totalCacheRead = 0;
|
|
64
|
+
let totalCacheWrite = 0;
|
|
65
|
+
let totalCost = 0;
|
|
66
|
+
for (const entry of this.session.sessionManager.getEntries()) {
|
|
67
|
+
if (entry.type === "message" && entry.message.role === "assistant") {
|
|
68
|
+
totalInput += entry.message.usage.input;
|
|
69
|
+
totalOutput += entry.message.usage.output;
|
|
70
|
+
totalCacheRead += entry.message.usage.cacheRead;
|
|
71
|
+
totalCacheWrite += entry.message.usage.cacheWrite;
|
|
72
|
+
totalCost += entry.message.usage.cost.total;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
// Calculate context usage from session (handles compaction correctly).
|
|
76
|
+
// After compaction, tokens are unknown until the next LLM response.
|
|
77
|
+
const contextUsage = this.session.getContextUsage();
|
|
78
|
+
const contextWindow = contextUsage?.contextWindow ?? state.model?.contextWindow ?? 0;
|
|
79
|
+
const contextPercentValue = contextUsage?.percent ?? 0;
|
|
80
|
+
const contextPercent = contextUsage?.percent !== null ? contextPercentValue.toFixed(1) : "?";
|
|
81
|
+
// Replace home directory with ~
|
|
82
|
+
let pwd = this.session.sessionManager.getCwd();
|
|
83
|
+
const home = process.env.HOME || process.env.USERPROFILE;
|
|
84
|
+
if (home && pwd.startsWith(home)) {
|
|
85
|
+
pwd = `~${pwd.slice(home.length)}`;
|
|
86
|
+
}
|
|
87
|
+
// Add git branch if available
|
|
88
|
+
const branch = this.footerData.getGitBranch();
|
|
89
|
+
if (branch) {
|
|
90
|
+
pwd = `${pwd} (${branch})`;
|
|
91
|
+
}
|
|
92
|
+
// Add session name if set
|
|
93
|
+
const sessionName = this.session.sessionManager.getSessionName();
|
|
94
|
+
if (sessionName) {
|
|
95
|
+
pwd = `${pwd} • ${sessionName}`;
|
|
96
|
+
}
|
|
97
|
+
// Build stats line
|
|
98
|
+
const statsParts = [];
|
|
99
|
+
if (totalInput)
|
|
100
|
+
statsParts.push(`↑${formatTokens(totalInput)}`);
|
|
101
|
+
if (totalOutput)
|
|
102
|
+
statsParts.push(`↓${formatTokens(totalOutput)}`);
|
|
103
|
+
if (totalCacheRead)
|
|
104
|
+
statsParts.push(`R${formatTokens(totalCacheRead)}`);
|
|
105
|
+
if (totalCacheWrite)
|
|
106
|
+
statsParts.push(`W${formatTokens(totalCacheWrite)}`);
|
|
107
|
+
// Show cost with "(sub)" indicator if using OAuth subscription
|
|
108
|
+
const usingSubscription = state.model ? this.session.modelRegistry.isUsingOAuth(state.model) : false;
|
|
109
|
+
if (totalCost || usingSubscription) {
|
|
110
|
+
const costStr = `$${totalCost.toFixed(3)}${usingSubscription ? " (sub)" : ""}`;
|
|
111
|
+
statsParts.push(costStr);
|
|
112
|
+
}
|
|
113
|
+
// Colorize context percentage based on usage
|
|
114
|
+
let contextPercentStr;
|
|
115
|
+
const autoIndicator = this.autoCompactEnabled ? " (auto)" : "";
|
|
116
|
+
const contextPercentDisplay = contextPercent === "?"
|
|
117
|
+
? `?/${formatTokens(contextWindow)}${autoIndicator}`
|
|
118
|
+
: `${contextPercent}%/${formatTokens(contextWindow)}${autoIndicator}`;
|
|
119
|
+
if (contextPercentValue > 90) {
|
|
120
|
+
contextPercentStr = theme.fg("error", contextPercentDisplay);
|
|
121
|
+
}
|
|
122
|
+
else if (contextPercentValue > 70) {
|
|
123
|
+
contextPercentStr = theme.fg("warning", contextPercentDisplay);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
contextPercentStr = contextPercentDisplay;
|
|
127
|
+
}
|
|
128
|
+
statsParts.push(contextPercentStr);
|
|
129
|
+
let statsLeft = statsParts.join(" ");
|
|
130
|
+
// Add model name on the right side, plus thinking level if model supports it
|
|
131
|
+
const modelName = state.model?.id || "no-model";
|
|
132
|
+
let statsLeftWidth = visibleWidth(statsLeft);
|
|
133
|
+
// If statsLeft is too wide, truncate it
|
|
134
|
+
if (statsLeftWidth > width) {
|
|
135
|
+
statsLeft = truncateToWidth(statsLeft, width, "...");
|
|
136
|
+
statsLeftWidth = visibleWidth(statsLeft);
|
|
137
|
+
}
|
|
138
|
+
// Calculate available space for padding (minimum 2 spaces between stats and model)
|
|
139
|
+
const minPadding = 2;
|
|
140
|
+
// Add thinking level indicator if model supports reasoning
|
|
141
|
+
let rightSideWithoutProvider = modelName;
|
|
142
|
+
if (state.model?.reasoning) {
|
|
143
|
+
const thinkingLevel = state.thinkingLevel || "off";
|
|
144
|
+
rightSideWithoutProvider =
|
|
145
|
+
thinkingLevel === "off" ? `${modelName} • thinking off` : `${modelName} • ${thinkingLevel}`;
|
|
146
|
+
}
|
|
147
|
+
// Prepend the provider in parentheses if there are multiple providers and there's enough room
|
|
148
|
+
let rightSide = rightSideWithoutProvider;
|
|
149
|
+
if (this.footerData.getAvailableProviderCount() > 1 && state.model) {
|
|
150
|
+
rightSide = `(${state.model.provider}) ${rightSideWithoutProvider}`;
|
|
151
|
+
if (statsLeftWidth + minPadding + visibleWidth(rightSide) > width) {
|
|
152
|
+
// Too wide, fall back
|
|
153
|
+
rightSide = rightSideWithoutProvider;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
const rightSideWidth = visibleWidth(rightSide);
|
|
157
|
+
const totalNeeded = statsLeftWidth + minPadding + rightSideWidth;
|
|
158
|
+
let statsLine;
|
|
159
|
+
if (totalNeeded <= width) {
|
|
160
|
+
// Both fit - add padding to right-align model
|
|
161
|
+
const padding = " ".repeat(width - statsLeftWidth - rightSideWidth);
|
|
162
|
+
statsLine = statsLeft + padding + rightSide;
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
// Need to truncate right side
|
|
166
|
+
const availableForRight = width - statsLeftWidth - minPadding;
|
|
167
|
+
if (availableForRight > 0) {
|
|
168
|
+
const truncatedRight = truncateToWidth(rightSide, availableForRight, "");
|
|
169
|
+
const truncatedRightWidth = visibleWidth(truncatedRight);
|
|
170
|
+
const padding = " ".repeat(Math.max(0, width - statsLeftWidth - truncatedRightWidth));
|
|
171
|
+
statsLine = statsLeft + padding + truncatedRight;
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
// Not enough space for right side at all
|
|
175
|
+
statsLine = statsLeft;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
// Apply dim to each part separately. statsLeft may contain color codes (for context %)
|
|
179
|
+
// that end with a reset, which would clear an outer dim wrapper. So we dim the parts
|
|
180
|
+
// before and after the colored section independently.
|
|
181
|
+
const dimStatsLeft = theme.fg("dim", statsLeft);
|
|
182
|
+
const remainder = statsLine.slice(statsLeft.length); // padding + rightSide
|
|
183
|
+
const dimRemainder = theme.fg("dim", remainder);
|
|
184
|
+
const pwdLine = truncateToWidth(theme.fg("dim", pwd), width, theme.fg("dim", "..."));
|
|
185
|
+
const lines = [pwdLine, dimStatsLeft + dimRemainder];
|
|
186
|
+
// Add extension statuses on a single line, sorted by key alphabetically
|
|
187
|
+
const extensionStatuses = this.footerData.getExtensionStatuses();
|
|
188
|
+
if (extensionStatuses.size > 0) {
|
|
189
|
+
const sortedStatuses = Array.from(extensionStatuses.entries())
|
|
190
|
+
.sort(([a], [b]) => a.localeCompare(b))
|
|
191
|
+
.map(([, text]) => sanitizeStatusText(text));
|
|
192
|
+
const statusLine = sortedStatuses.join(" ");
|
|
193
|
+
// Truncate to terminal width with dim ellipsis for consistency with footer style
|
|
194
|
+
lines.push(truncateToWidth(statusLine, width, theme.fg("dim", "...")));
|
|
195
|
+
}
|
|
196
|
+
return lines;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
//# sourceMappingURL=footer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/footer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,eAAe,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGhF,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C;;;GAGG;AACH,SAAS,kBAAkB,CAAC,IAAY;IACvC,qFAAqF;IACrF,OAAO,IAAI;SACT,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC;SACzB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;SACnB,IAAI,EAAE,CAAC;AACV,CAAC;AAED;;GAEG;AACH,SAAS,YAAY,CAAC,KAAa;IAClC,IAAI,KAAK,GAAG,IAAI;QAAE,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC1C,IAAI,KAAK,GAAG,KAAK;QAAE,OAAO,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;IAC1D,IAAI,KAAK,GAAG,OAAO;QAAE,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC;IAC3D,IAAI,KAAK,GAAG,QAAQ;QAAE,OAAO,GAAG,CAAC,KAAK,GAAG,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;IAChE,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC;AAC1C,CAAC;AAED;;;GAGG;AACH,M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C,CAAC;QAChD,MAAM,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,sBAAsB;QAC3E,MAAM,YAAY,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QAEhD,MAAM,OAAO,GAAG,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;QACrF,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,YAAY,GAAG,YAAY,CAAC,CAAC;QAErD,wEAAwE;QACxE,MAAM,iBAAiB,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC;QACjE,IAAI,iBAAiB,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;YAChC,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,CAAC;iBAC5D,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;iBACtC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC;YAC9C,MAAM,UAAU,GAAG,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC5C,iFAAiF;YACjF,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;QACxE,CAAC;QAED,OAAO,KAAK,CAAC;IACd,CAAC;CACD","sourcesContent":["import { type Component, truncateToWidth, visibleWidth } from \"@orient-cli/tui\";\nimport type { AgentSession } from \"../../../core/agent-session.js\";\nimport type { ReadonlyFooterDataProvider } from \"../../../core/footer-data-provider.js\";\nimport { theme } from \"../theme/theme.js\";\n\n/**\n * Sanitize text for display in a single-line status.\n * Removes newlines, tabs, carriage returns, and other control characters.\n */\nfunction sanitizeStatusText(text: string): string {\n\t// Replace newlines, tabs, carriage returns with space, then collapse multiple spaces\n\treturn text\n\t\t.replace(/[\\r\\n\\t]/g, \" \")\n\t\t.replace(/ +/g, \" \")\n\t\t.trim();\n}\n\n/**\n * Format token counts (similar to web-ui)\n */\nfunction formatTokens(count: number): string {\n\tif (count < 1000) return count.toString();\n\tif (count < 10000) return `${(count / 1000).toFixed(1)}k`;\n\tif (count < 1000000) return `${Math.round(count / 1000)}k`;\n\tif (count < 10000000) return `${(count / 1000000).toFixed(1)}M`;\n\treturn `${Math.round(count / 1000000)}M`;\n}\n\n/**\n * Footer component that shows pwd, token stats, and context usage.\n * Computes token/context stats from session, gets git branch and extension statuses from provider.\n */\nexport class FooterComponent implements Component {\n\tprivate autoCompactEnabled = true;\n\n\tconstructor(\n\t\tprivate session: AgentSession,\n\t\tprivate footerData: ReadonlyFooterDataProvider,\n\t) {}\n\n\tsetSession(session: AgentSession): void {\n\t\tthis.session = session;\n\t}\n\n\tsetAutoCompactEnabled(enabled: boolean): void {\n\t\tthis.autoCompactEnabled = enabled;\n\t}\n\n\t/**\n\t * No-op: git branch caching now handled by provider.\n\t * Kept for compatibility with existing call sites in interactive-mode.\n\t */\n\tinvalidate(): void {\n\t\t// No-op: git branch is cached/invalidated by provider\n\t}\n\n\t/**\n\t * Clean up resources.\n\t * Git watcher cleanup now handled by provider.\n\t */\n\tdispose(): void {\n\t\t// Git watcher cleanup handled by provider\n\t}\n\n\trender(width: number): string[] {\n\t\tconst state = this.session.state;\n\n\t\t// Calculate cumulative usage from ALL session entries (not just post-compaction messages)\n\t\tlet totalInput = 0;\n\t\tlet totalOutput = 0;\n\t\tlet totalCacheRead = 0;\n\t\tlet totalCacheWrite = 0;\n\t\tlet totalCost = 0;\n\n\t\tfor (const entry of this.session.sessionManager.getEntries()) {\n\t\t\tif (entry.type === \"message\" && entry.message.role === \"assistant\") {\n\t\t\t\ttotalInput += entry.message.usage.input;\n\t\t\t\ttotalOutput += entry.message.usage.output;\n\t\t\t\ttotalCacheRead += entry.message.usage.cacheRead;\n\t\t\t\ttotalCacheWrite += entry.message.usage.cacheWrite;\n\t\t\t\ttotalCost += entry.message.usage.cost.total;\n\t\t\t}\n\t\t}\n\n\t\t// Calculate context usage from session (handles compaction correctly).\n\t\t// After compaction, tokens are unknown until the next LLM response.\n\t\tconst contextUsage = this.session.getContextUsage();\n\t\tconst contextWindow = contextUsage?.contextWindow ?? state.model?.contextWindow ?? 0;\n\t\tconst contextPercentValue = contextUsage?.percent ?? 0;\n\t\tconst contextPercent = contextUsage?.percent !== null ? contextPercentValue.toFixed(1) : \"?\";\n\n\t\t// Replace home directory with ~\n\t\tlet pwd = this.session.sessionManager.getCwd();\n\t\tconst home = process.env.HOME || process.env.USERPROFILE;\n\t\tif (home && pwd.startsWith(home)) {\n\t\t\tpwd = `~${pwd.slice(home.length)}`;\n\t\t}\n\n\t\t// Add git branch if available\n\t\tconst branch = this.footerData.getGitBranch();\n\t\tif (branch) {\n\t\t\tpwd = `${pwd} (${branch})`;\n\t\t}\n\n\t\t// Add session name if set\n\t\tconst sessionName = this.session.sessionManager.getSessionName();\n\t\tif (sessionName) {\n\t\t\tpwd = `${pwd} • ${sessionName}`;\n\t\t}\n\n\t\t// Build stats line\n\t\tconst statsParts = [];\n\t\tif (totalInput) statsParts.push(`↑${formatTokens(totalInput)}`);\n\t\tif (totalOutput) statsParts.push(`↓${formatTokens(totalOutput)}`);\n\t\tif (totalCacheRead) statsParts.push(`R${formatTokens(totalCacheRead)}`);\n\t\tif (totalCacheWrite) statsParts.push(`W${formatTokens(totalCacheWrite)}`);\n\n\t\t// Show cost with \"(sub)\" indicator if using OAuth subscription\n\t\tconst usingSubscription = state.model ? this.session.modelRegistry.isUsingOAuth(state.model) : false;\n\t\tif (totalCost || usingSubscription) {\n\t\t\tconst costStr = `$${totalCost.toFixed(3)}${usingSubscription ? \" (sub)\" : \"\"}`;\n\t\t\tstatsParts.push(costStr);\n\t\t}\n\n\t\t// Colorize context percentage based on usage\n\t\tlet contextPercentStr: string;\n\t\tconst autoIndicator = this.autoCompactEnabled ? \" (auto)\" : \"\";\n\t\tconst contextPercentDisplay =\n\t\t\tcontextPercent === \"?\"\n\t\t\t\t? `?/${formatTokens(contextWindow)}${autoIndicator}`\n\t\t\t\t: `${contextPercent}%/${formatTokens(contextWindow)}${autoIndicator}`;\n\t\tif (contextPercentValue > 90) {\n\t\t\tcontextPercentStr = theme.fg(\"error\", contextPercentDisplay);\n\t\t} else if (contextPercentValue > 70) {\n\t\t\tcontextPercentStr = theme.fg(\"warning\", contextPercentDisplay);\n\t\t} else {\n\t\t\tcontextPercentStr = contextPercentDisplay;\n\t\t}\n\t\tstatsParts.push(contextPercentStr);\n\n\t\tlet statsLeft = statsParts.join(\" \");\n\n\t\t// Add model name on the right side, plus thinking level if model supports it\n\t\tconst modelName = state.model?.id || \"no-model\";\n\n\t\tlet statsLeftWidth = visibleWidth(statsLeft);\n\n\t\t// If statsLeft is too wide, truncate it\n\t\tif (statsLeftWidth > width) {\n\t\t\tstatsLeft = truncateToWidth(statsLeft, width, \"...\");\n\t\t\tstatsLeftWidth = visibleWidth(statsLeft);\n\t\t}\n\n\t\t// Calculate available space for padding (minimum 2 spaces between stats and model)\n\t\tconst minPadding = 2;\n\n\t\t// Add thinking level indicator if model supports reasoning\n\t\tlet rightSideWithoutProvider = modelName;\n\t\tif (state.model?.reasoning) {\n\t\t\tconst thinkingLevel = state.thinkingLevel || \"off\";\n\t\t\trightSideWithoutProvider =\n\t\t\t\tthinkingLevel === \"off\" ? `${modelName} • thinking off` : `${modelName} • ${thinkingLevel}`;\n\t\t}\n\n\t\t// Prepend the provider in parentheses if there are multiple providers and there's enough room\n\t\tlet rightSide = rightSideWithoutProvider;\n\t\tif (this.footerData.getAvailableProviderCount() > 1 && state.model) {\n\t\t\trightSide = `(${state.model!.provider}) ${rightSideWithoutProvider}`;\n\t\t\tif (statsLeftWidth + minPadding + visibleWidth(rightSide) > width) {\n\t\t\t\t// Too wide, fall back\n\t\t\t\trightSide = rightSideWithoutProvider;\n\t\t\t}\n\t\t}\n\n\t\tconst rightSideWidth = visibleWidth(rightSide);\n\t\tconst totalNeeded = statsLeftWidth + minPadding + rightSideWidth;\n\n\t\tlet statsLine: string;\n\t\tif (totalNeeded <= width) {\n\t\t\t// Both fit - add padding to right-align model\n\t\t\tconst padding = \" \".repeat(width - statsLeftWidth - rightSideWidth);\n\t\t\tstatsLine = statsLeft + padding + rightSide;\n\t\t} else {\n\t\t\t// Need to truncate right side\n\t\t\tconst availableForRight = width - statsLeftWidth - minPadding;\n\t\t\tif (availableForRight > 0) {\n\t\t\t\tconst truncatedRight = truncateToWidth(rightSide, availableForRight, \"\");\n\t\t\t\tconst truncatedRightWidth = visibleWidth(truncatedRight);\n\t\t\t\tconst padding = \" \".repeat(Math.max(0, width - statsLeftWidth - truncatedRightWidth));\n\t\t\t\tstatsLine = statsLeft + padding + truncatedRight;\n\t\t\t} else {\n\t\t\t\t// Not enough space for right side at all\n\t\t\t\tstatsLine = statsLeft;\n\t\t\t}\n\t\t}\n\n\t\t// Apply dim to each part separately. statsLeft may contain color codes (for context %)\n\t\t// that end with a reset, which would clear an outer dim wrapper. So we dim the parts\n\t\t// before and after the colored section independently.\n\t\tconst dimStatsLeft = theme.fg(\"dim\", statsLeft);\n\t\tconst remainder = statsLine.slice(statsLeft.length); // padding + rightSide\n\t\tconst dimRemainder = theme.fg(\"dim\", remainder);\n\n\t\tconst pwdLine = truncateToWidth(theme.fg(\"dim\", pwd), width, theme.fg(\"dim\", \"...\"));\n\t\tconst lines = [pwdLine, dimStatsLeft + dimRemainder];\n\n\t\t// Add extension statuses on a single line, sorted by key alphabetically\n\t\tconst extensionStatuses = this.footerData.getExtensionStatuses();\n\t\tif (extensionStatuses.size > 0) {\n\t\t\tconst sortedStatuses = Array.from(extensionStatuses.entries())\n\t\t\t\t.sort(([a], [b]) => a.localeCompare(b))\n\t\t\t\t.map(([, text]) => sanitizeStatusText(text));\n\t\t\tconst statusLine = sortedStatuses.join(\" \");\n\t\t\t// Truncate to terminal width with dim ellipsis for consistency with footer style\n\t\t\tlines.push(truncateToWidth(statusLine, width, theme.fg(\"dim\", \"...\")));\n\t\t}\n\n\t\treturn lines;\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modes/interactive/components/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAE,iCAAiC,EAAE,MAAM,iCAAiC,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,KAAK,iBAAiB,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,C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qB,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAA6B,MAAM,sBAAsB,CAAC","sourcesContent":["// UI Components for extensions\n// Note: ArminComponent, DaxnutsComponent, EarendilAnnouncementComponent\n// removed in the ORIENT rebrand. See MIGRATION.md §3.\nexport { AssistantMessageComponent } from \"./assistant-message.js\";\nexport { BashExecutionComponent } from \"./bash-execution.js\";\nexport { BorderedLoader } from \"./bordered-loader.js\";\nexport { BranchSummaryMessageComponent } from \"./branch-summary-message.js\";\nexport { CompactionSummaryMessageComponent } from \"./compaction-summary-message.js\";\nexport { CustomEditor } from \"./custom-editor.js\";\nexport { CustomMessageComponent } from \"./custom-message.js\";\nexport { type RenderDiffOptions, renderDiff } from \"./diff.js\";\nexport { DynamicBorder } from \"./dynamic-border.js\";\nexport { ExtensionEditorComponent } from \"./extension-editor.js\";\nexport { ExtensionInputComponent } from \"./extension-input.js\";\nexport { ExtensionSelectorComponent } from \"./extension-selector.js\";\nexport { FooterComponent } from \"./footer.js\";\nexport { keyHint, keyText, rawKeyHint } from \"./keybinding-hints.js\";\nexport { LoginDialogComponent } from \"./login-dialog.js\";\nexport { ModelSelectorComponent } from \"./model-selector.js\";\nexport { OAuthSelectorComponent } from \"./oauth-selector.js\";\nexport { OrientBannerComponent } from \"./orient-banner.js\";\nexport { type ModelsCallbacks, type ModelsConfig, ScopedModelsSelectorComponent } from \"./scoped-models-selector.js\";\nexport { SessionSelectorComponent } from \"./session-selector.js\";\nexport { type SettingsCallbacks, type SettingsConfig, SettingsSelectorComponent } from \"./settings-selector.js\";\nexport { ShowImagesSelectorComponent } from \"./show-images-selector.js\";\nexport { SkillInvocationMessageComponent } from \"./skill-invocation-message.js\";\nexport { ThemeSelectorComponent } from \"./theme-selector.js\";\nexport { ThinkingSelectorComponent } from \"./thinking-selector.js\";\nexport { ToolExecutionComponent, type ToolExecutionOptions } from \"./tool-execution.js\";\nexport { TreeSelectorComponent } from \"./tree-selector.js\";\nexport { UserMessageComponent } from \"./user-message.js\";\nexport { UserMessageSelectorComponent } from \"./user-message-selector.js\";\nexport { truncateToVisualLines, type VisualTruncateResult } from \"./visual-truncate.js\";\n"]}
|
package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keybinding-hints.d.ts","sourceRoot":"","sources":["../../../../src/modes/interactive/components/keybinding-hints.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAkB,KAAK,UAAU,EAAc,MAAM,iBAAiB,CAAC;AAS9E,wBAAgB,OAAO,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAEtD;AAED,wBAAgB,OAAO,CAAC,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAE3E;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAEnE"}
|
package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/keybinding-hints.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keybinding-hints.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/keybinding-hints.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAA+B,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,SAAS,UAAU,CAAC,IAAa;IAChC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACjC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC,CAAC,CAAE,CAAC;IACvC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACvB,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,UAAsB;IAC7C,OAAO,UAAU,CAAC,cAAc,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,UAAsB,EAAE,WAAmB;IAClE,OAAO,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,WAAW,EAAE,CAAC,CAAC;AACpF,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,GAAW,EAAE,WAAmB;IAC1D,OAAO,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,WAAW,EAAE,CAAC,CAAC;AACpE,CAAC","sourcesContent":["/**\n * Utilities for formatting keybinding hints in the UI.\n */\n\nimport { getKeybindings, type Keybinding, type KeyId } from \"@orient-cli/tui\";\nimport { theme } from \"../theme/theme.js\";\n\nfunction formatKeys(keys: KeyId[]): string {\n\tif (keys.length === 0) return \"\";\n\tif (keys.length === 1) return keys[0]!;\n\treturn keys.join(\"/\");\n}\n\nexport function keyText(keybinding: Keybinding): string {\n\treturn formatKeys(getKeybindings().getKeys(keybinding));\n}\n\nexport function keyHint(keybinding: Keybinding, description: string): string {\n\treturn theme.fg(\"dim\", keyText(keybinding)) + theme.fg(\"muted\", ` ${description}`);\n}\n\nexport function rawKeyHint(key: string, description: string): string {\n\treturn theme.fg(\"dim\", key) + theme.fg(\"muted\", ` ${description}`);\n}\n"]}
|
package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login-dialog.d.ts","sourceRoot":"","sources":["../../../../src/modes/interactive/components/login-dialog.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auth";
|
|
2
|
+
import { Container, getKeybindings, Input, Spacer, Text } from "@orient-cli/tui";
|
|
3
|
+
import { exec } from "child_process";
|
|
4
|
+
import { theme } from "../theme/theme.js";
|
|
5
|
+
import { DynamicBorder } from "./dynamic-border.js";
|
|
6
|
+
import { keyHint } from "./keybinding-hints.js";
|
|
7
|
+
/**
|
|
8
|
+
* Login dialog component - replaces editor during OAuth login flow
|
|
9
|
+
*/
|
|
10
|
+
export class LoginDialogComponent extends Container {
|
|
11
|
+
get focused() {
|
|
12
|
+
return this._focused;
|
|
13
|
+
}
|
|
14
|
+
set focused(value) {
|
|
15
|
+
this._focused = value;
|
|
16
|
+
this.input.focused = value;
|
|
17
|
+
}
|
|
18
|
+
constructor(tui, providerId, onComplete) {
|
|
19
|
+
super();
|
|
20
|
+
this.onComplete = onComplete;
|
|
21
|
+
this.abortController = new AbortController();
|
|
22
|
+
// Focusable implementation - propagate to input for IME cursor positioning
|
|
23
|
+
this._focused = false;
|
|
24
|
+
this.tui = tui;
|
|
25
|
+
const providerInfo = getOAuthProviders().find((p) => p.id === providerId);
|
|
26
|
+
const providerName = providerInfo?.name || providerId;
|
|
27
|
+
// Top border
|
|
28
|
+
this.addChild(new DynamicBorder());
|
|
29
|
+
// Title
|
|
30
|
+
this.addChild(new Text(theme.fg("warning", `Login to ${providerName}`), 1, 0));
|
|
31
|
+
// Dynamic content area
|
|
32
|
+
this.contentContainer = new Container();
|
|
33
|
+
this.addChild(this.contentContainer);
|
|
34
|
+
// Input (always present, used when needed)
|
|
35
|
+
this.input = new Input();
|
|
36
|
+
this.input.onSubmit = () => {
|
|
37
|
+
if (this.inputResolver) {
|
|
38
|
+
this.inputResolver(this.input.getValue());
|
|
39
|
+
this.inputResolver = undefined;
|
|
40
|
+
this.inputRejecter = undefined;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
this.input.onEscape = () => {
|
|
44
|
+
this.cancel();
|
|
45
|
+
};
|
|
46
|
+
// Bottom border
|
|
47
|
+
this.addChild(new DynamicBorder());
|
|
48
|
+
}
|
|
49
|
+
get signal() {
|
|
50
|
+
return this.abortController.signal;
|
|
51
|
+
}
|
|
52
|
+
cancel() {
|
|
53
|
+
this.abortController.abort();
|
|
54
|
+
if (this.inputRejecter) {
|
|
55
|
+
this.inputRejecter(new Error("Login cancelled"));
|
|
56
|
+
this.inputResolver = undefined;
|
|
57
|
+
this.inputRejecter = undefined;
|
|
58
|
+
}
|
|
59
|
+
this.onComplete(false, "Login cancelled");
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Called by onAuth callback - show URL and optional instructions
|
|
63
|
+
*/
|
|
64
|
+
showAuth(url, instructions) {
|
|
65
|
+
this.contentContainer.clear();
|
|
66
|
+
this.contentContainer.addChild(new Spacer(1));
|
|
67
|
+
this.contentContainer.addChild(new Text(theme.fg("accent", url), 1, 0));
|
|
68
|
+
const clickHint = process.platform === "darwin" ? "Cmd+click to open" : "Ctrl+click to open";
|
|
69
|
+
const hyperlink = `\x1b]8;;${url}\x07${clickHint}\x1b]8;;\x07`;
|
|
70
|
+
this.contentContainer.addChild(new Text(theme.fg("dim", hyperlink), 1, 0));
|
|
71
|
+
if (instructions) {
|
|
72
|
+
this.contentContainer.addChild(new Spacer(1));
|
|
73
|
+
this.contentContainer.addChild(new Text(theme.fg("warning", instructions), 1, 0));
|
|
74
|
+
}
|
|
75
|
+
// Try to open browser
|
|
76
|
+
const openCmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
77
|
+
exec(`${openCmd} "${url}"`);
|
|
78
|
+
this.tui.requestRender();
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Show input for manual code/URL entry (for callback server providers)
|
|
82
|
+
*/
|
|
83
|
+
showManualInput(prompt) {
|
|
84
|
+
this.contentContainer.addChild(new Spacer(1));
|
|
85
|
+
this.contentContainer.addChild(new Text(theme.fg("dim", prompt), 1, 0));
|
|
86
|
+
this.contentContainer.addChild(this.input);
|
|
87
|
+
this.contentContainer.addChild(new Text(`(${keyHint("tui.select.cancel", "to cancel")})`, 1, 0));
|
|
88
|
+
this.tui.requestRender();
|
|
89
|
+
return new Promise((resolve, reject) => {
|
|
90
|
+
this.inputResolver = resolve;
|
|
91
|
+
this.inputRejecter = reject;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Called by onPrompt callback - show prompt and wait for input
|
|
96
|
+
* Note: Does NOT clear content, appends to existing (preserves URL from showAuth)
|
|
97
|
+
*/
|
|
98
|
+
showPrompt(message, placeholder) {
|
|
99
|
+
this.contentContainer.addChild(new Spacer(1));
|
|
100
|
+
this.contentContainer.addChild(new Text(theme.fg("text", message), 1, 0));
|
|
101
|
+
if (placeholder) {
|
|
102
|
+
this.contentContainer.addChild(new Text(theme.fg("dim", `e.g., ${placeholder}`), 1, 0));
|
|
103
|
+
}
|
|
104
|
+
this.contentContainer.addChild(this.input);
|
|
105
|
+
this.contentContainer.addChild(new Text(`(${keyHint("tui.select.cancel", "to cancel,")} ${keyHint("tui.select.confirm", "to submit")})`, 1, 0));
|
|
106
|
+
this.input.setValue("");
|
|
107
|
+
this.tui.requestRender();
|
|
108
|
+
return new Promise((resolve, reject) => {
|
|
109
|
+
this.inputResolver = resolve;
|
|
110
|
+
this.inputRejecter = reject;
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Show waiting message (for polling flows like GitHub Copilot)
|
|
115
|
+
*/
|
|
116
|
+
showWaiting(message) {
|
|
117
|
+
this.contentContainer.addChild(new Spacer(1));
|
|
118
|
+
this.contentContainer.addChild(new Text(theme.fg("dim", message), 1, 0));
|
|
119
|
+
this.contentContainer.addChild(new Text(`(${keyHint("tui.select.cancel", "to cancel")})`, 1, 0));
|
|
120
|
+
this.tui.requestRender();
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Called by onProgress callback
|
|
124
|
+
*/
|
|
125
|
+
showProgress(message) {
|
|
126
|
+
this.contentContainer.addChild(new Text(theme.fg("dim", message), 1, 0));
|
|
127
|
+
this.tui.requestRender();
|
|
128
|
+
}
|
|
129
|
+
handleInput(data) {
|
|
130
|
+
const kb = getKeybindings();
|
|
131
|
+
if (kb.matches(data, "tui.select.cancel")) {
|
|
132
|
+
this.cancel();
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
// Pass to input
|
|
136
|
+
this.input.handleInput(data);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=login-dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login-dialog.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/login-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAkB,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAY,MAAM,iBAAiB,CAAC;AAC3G,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD;;GAEG;AACH,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IAUlD,IAAI,OAAO;QACV,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IACD,IAAI,OAAO,CAAC,KAAc;QACzB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;IAC5B,CAAC;IAED,YACC,GAAQ,EACR,UAAkB,EACV,UAAwD;QAEhE,KAAK,EAAE,CAAC;QAFA,eAAU,GAAV,UAAU,CAA8C;QAjBzD,oBAAe,GAAG,IAAI,eAAe,EAAE,CAAC;QAIhD,2EAA2E;QACnE,a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AAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACzE,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,IAAI,OAAO,CAAC,mBAAmB,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACjG,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,OAAe;QAC3B,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACzE,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC;IAED,WAAW,CAAC,IAAY;QACvB,MAAM,EAAE,GAAG,cAAc,EAAE,CAAC;QAE5B,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,mBAAmB,CAAC,EAAE,CAAC;YAC3C,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,OAAO;QACR,CAAC;QAED,gBAAgB;QAChB,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACD","sourcesContent":["import { getOAuthProviders } from \"@orient-cli/ai/oauth\";\nimport { Container, type Focusable, getKeybindings, Input, Spacer, Text, type TUI } from \"@orient-cli/tui\";\nimport { exec } from \"child_process\";\nimport { theme } from \"../theme/theme.js\";\nimport { DynamicBorder } from \"./dynamic-border.js\";\nimport { keyHint } from \"./keybinding-hints.js\";\n\n/**\n * Login dialog component - replaces editor during OAuth login flow\n */\nexport class LoginDialogComponent extends Container implements Focusable {\n\tprivate contentContainer: Container;\n\tprivate input: Input;\n\tprivate tui: TUI;\n\tprivate abortController = new AbortController();\n\tprivate inputResolver?: (value: string) => void;\n\tprivate inputRejecter?: (error: Error) => void;\n\n\t// Focusable implementation - propagate to input for IME cursor positioning\n\tprivate _focused = false;\n\tget focused(): boolean {\n\t\treturn this._focused;\n\t}\n\tset focused(value: boolean) {\n\t\tthis._focused = value;\n\t\tthis.input.focused = value;\n\t}\n\n\tconstructor(\n\t\ttui: TUI,\n\t\tproviderId: string,\n\t\tprivate onComplete: (success: boolean, message?: string) => void,\n\t) {\n\t\tsuper();\n\t\tthis.tui = tui;\n\n\t\tconst providerInfo = getOAuthProviders().find((p) => p.id === providerId);\n\t\tconst providerName = providerInfo?.name || providerId;\n\n\t\t// Top border\n\t\tthis.addChild(new DynamicBorder());\n\n\t\t// Title\n\t\tthis.addChild(new Text(theme.fg(\"warning\", `Login to ${providerName}`), 1, 0));\n\n\t\t// Dynamic content area\n\t\tthis.contentContainer = new Container();\n\t\tthis.addChild(this.contentContainer);\n\n\t\t// Input (always present, used when needed)\n\t\tthis.input = new Input();\n\t\tthis.input.onSubmit = () => {\n\t\t\tif (this.inputResolver) {\n\t\t\t\tthis.inputResolver(this.input.getValue());\n\t\t\t\tthis.inputResolver = undefined;\n\t\t\t\tthis.inputRejecter = undefined;\n\t\t\t}\n\t\t};\n\t\tthis.input.onEscape = () => {\n\t\t\tthis.cancel();\n\t\t};\n\n\t\t// Bottom border\n\t\tthis.addChild(new DynamicBorder());\n\t}\n\n\tget signal(): AbortSignal {\n\t\treturn this.abortController.signal;\n\t}\n\n\tprivate cancel(): void {\n\t\tthis.abortController.abort();\n\t\tif (this.inputRejecter) {\n\t\t\tthis.inputRejecter(new Error(\"Login cancelled\"));\n\t\t\tthis.inputResolver = undefined;\n\t\t\tthis.inputRejecter = undefined;\n\t\t}\n\t\tthis.onComplete(false, \"Login cancelled\");\n\t}\n\n\t/**\n\t * Called by onAuth callback - show URL and optional instructions\n\t */\n\tshowAuth(url: string, instructions?: string): void {\n\t\tthis.contentContainer.clear();\n\t\tthis.contentContainer.addChild(new Spacer(1));\n\t\tthis.contentContainer.addChild(new Text(theme.fg(\"accent\", url), 1, 0));\n\n\t\tconst clickHint = process.platform === \"darwin\" ? \"Cmd+click to open\" : \"Ctrl+click to open\";\n\t\tconst hyperlink = `\\x1b]8;;${url}\\x07${clickHint}\\x1b]8;;\\x07`;\n\t\tthis.contentContainer.addChild(new Text(theme.fg(\"dim\", hyperlink), 1, 0));\n\n\t\tif (instructions) {\n\t\t\tthis.contentContainer.addChild(new Spacer(1));\n\t\t\tthis.contentContainer.addChild(new Text(theme.fg(\"warning\", instructions), 1, 0));\n\t\t}\n\n\t\t// Try to open browser\n\t\tconst openCmd = process.platform === \"darwin\" ? \"open\" : process.platform === \"win32\" ? \"start\" : \"xdg-open\";\n\t\texec(`${openCmd} \"${url}\"`);\n\n\t\tthis.tui.requestRender();\n\t}\n\n\t/**\n\t * Show input for manual code/URL entry (for callback server providers)\n\t */\n\tshowManualInput(prompt: string): Promise<string> {\n\t\tthis.contentContainer.addChild(new Spacer(1));\n\t\tthis.contentContainer.addChild(new Text(theme.fg(\"dim\", prompt), 1, 0));\n\t\tthis.contentContainer.addChild(this.input);\n\t\tthis.contentContainer.addChild(new Text(`(${keyHint(\"tui.select.cancel\", \"to cancel\")})`, 1, 0));\n\t\tthis.tui.requestRender();\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.inputResolver = resolve;\n\t\t\tthis.inputRejecter = reject;\n\t\t});\n\t}\n\n\t/**\n\t * Called by onPrompt callback - show prompt and wait for input\n\t * Note: Does NOT clear content, appends to existing (preserves URL from showAuth)\n\t */\n\tshowPrompt(message: string, placeholder?: string): Promise<string> {\n\t\tthis.contentContainer.addChild(new Spacer(1));\n\t\tthis.contentContainer.addChild(new Text(theme.fg(\"text\", message), 1, 0));\n\t\tif (placeholder) {\n\t\t\tthis.contentContainer.addChild(new Text(theme.fg(\"dim\", `e.g., ${placeholder}`), 1, 0));\n\t\t}\n\t\tthis.contentContainer.addChild(this.input);\n\t\tthis.contentContainer.addChild(\n\t\t\tnew Text(\n\t\t\t\t`(${keyHint(\"tui.select.cancel\", \"to cancel,\")} ${keyHint(\"tui.select.confirm\", \"to submit\")})`,\n\t\t\t\t1,\n\t\t\t\t0,\n\t\t\t),\n\t\t);\n\n\t\tthis.input.setValue(\"\");\n\t\tthis.tui.requestRender();\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.inputResolver = resolve;\n\t\t\tthis.inputRejecter = reject;\n\t\t});\n\t}\n\n\t/**\n\t * Show waiting message (for polling flows like GitHub Copilot)\n\t */\n\tshowWaiting(message: string): void {\n\t\tthis.contentContainer.addChild(new Spacer(1));\n\t\tthis.contentContainer.addChild(new Text(theme.fg(\"dim\", message), 1, 0));\n\t\tthis.contentContainer.addChild(new Text(`(${keyHint(\"tui.select.cancel\", \"to cancel\")})`, 1, 0));\n\t\tthis.tui.requestRender();\n\t}\n\n\t/**\n\t * Called by onProgress callback\n\t */\n\tshowProgress(message: string): void {\n\t\tthis.contentContainer.addChild(new Text(theme.fg(\"dim\", message), 1, 0));\n\t\tthis.tui.requestRender();\n\t}\n\n\thandleInput(data: string): void {\n\t\tconst kb = getKeybindings();\n\n\t\tif (kb.matches(data, \"tui.select.cancel\")) {\n\t\t\tthis.cancel();\n\t\t\treturn;\n\t\t}\n\n\t\t// Pass to input\n\t\tthis.input.handleInput(data);\n\t}\n}\n"]}
|
package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-selector.d.ts","sourceRoot":"","sources":["../../../../src/modes/interactive/components/model-selector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAkB,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAA+B,KAAK,EAAgB,KAAK,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACxH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,e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