jeopi-cli 16.2.14 → 16.2.15
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/CHANGELOG.md +10 -0
- package/dist/cli.js +1463 -1463
- package/dist/types/advisor/__tests__/advisor.test.d.ts +1 -0
- package/dist/types/advisor/__tests__/config.test.d.ts +1 -0
- package/dist/types/advisor/__tests__/emission-guard.test.d.ts +1 -0
- package/dist/types/advisor/advise-tool.d.ts +106 -0
- package/dist/types/advisor/config.d.ts +90 -0
- package/dist/types/advisor/emission-guard.d.ts +73 -0
- package/dist/types/advisor/index.d.ts +6 -0
- package/dist/types/advisor/runtime.d.ts +76 -0
- package/dist/types/advisor/transcript-recorder.d.ts +63 -0
- package/dist/types/advisor/watchdog.d.ts +38 -0
- package/dist/types/async/index.d.ts +1 -0
- package/dist/types/async/job-manager.d.ts +121 -0
- package/dist/types/auto-thinking/classifier.d.ts +37 -0
- package/dist/types/autolearn/controller.d.ts +25 -0
- package/dist/types/autolearn/managed-skills.d.ts +45 -0
- package/dist/types/autoresearch/dashboard.d.ts +4 -0
- package/dist/types/autoresearch/git.d.ts +36 -0
- package/dist/types/autoresearch/helpers.d.ts +24 -0
- package/dist/types/autoresearch/index.d.ts +2 -0
- package/dist/types/autoresearch/state.d.ts +17 -0
- package/dist/types/autoresearch/storage.d.ts +142 -0
- package/dist/types/autoresearch/tools/init-experiment.d.ts +27 -0
- package/dist/types/autoresearch/tools/log-experiment.d.ts +21 -0
- package/dist/types/autoresearch/tools/run-experiment.d.ts +7 -0
- package/dist/types/autoresearch/tools/update-notes.d.ts +11 -0
- package/dist/types/autoresearch/types.d.ts +154 -0
- package/dist/types/capability/context-file.d.ts +17 -0
- package/dist/types/capability/extension-module.d.ts +15 -0
- package/dist/types/capability/extension.d.ts +28 -0
- package/dist/types/capability/fs.d.ts +20 -0
- package/dist/types/capability/hook.d.ts +19 -0
- package/dist/types/capability/index.d.ts +80 -0
- package/dist/types/capability/instruction.d.ts +17 -0
- package/dist/types/capability/mcp.d.ts +47 -0
- package/dist/types/capability/prompt.d.ts +15 -0
- package/dist/types/capability/rule-buckets.d.ts +30 -0
- package/dist/types/capability/rule.d.ts +73 -0
- package/dist/types/capability/settings.d.ts +15 -0
- package/dist/types/capability/skill.d.ts +43 -0
- package/dist/types/capability/slash-command.d.ts +17 -0
- package/dist/types/capability/ssh.d.ts +23 -0
- package/dist/types/capability/system-prompt.d.ts +15 -0
- package/dist/types/capability/tool.d.ts +19 -0
- package/dist/types/capability/types.d.ts +154 -0
- package/dist/types/cli/agents-cli.d.ts +12 -0
- package/dist/types/cli/args.d.ts +80 -0
- package/dist/types/cli/auth-broker-cli.d.ts +25 -0
- package/dist/types/cli/auth-gateway-cli.d.ts +26 -0
- package/dist/types/cli/bench-cli.d.ts +85 -0
- package/dist/types/cli/classify-install-target.d.ts +12 -0
- package/dist/types/cli/claude-trace-cli.d.ts +54 -0
- package/dist/types/cli/commands/init-xdg.d.ts +1 -0
- package/dist/types/cli/commands/migrate-legacy.d.ts +1 -0
- package/dist/types/cli/completion-gen.d.ts +80 -0
- package/dist/types/cli/config-cli.d.ts +22 -0
- package/dist/types/cli/dry-balance-cli.d.ts +113 -0
- package/dist/types/cli/extension-flags.d.ts +36 -0
- package/dist/types/cli/file-processor.d.ts +11 -0
- package/dist/types/cli/flag-tables.d.ts +144 -0
- package/dist/types/cli/gallery-cli.d.ts +49 -0
- package/dist/types/cli/gallery-fixtures/agentic.d.ts +2 -0
- package/dist/types/cli/gallery-fixtures/codeintel.d.ts +3 -0
- package/dist/types/cli/gallery-fixtures/edit.d.ts +3 -0
- package/dist/types/cli/gallery-fixtures/fs.d.ts +2 -0
- package/dist/types/cli/gallery-fixtures/index.d.ts +4 -0
- package/dist/types/cli/gallery-fixtures/interaction.d.ts +3 -0
- package/dist/types/cli/gallery-fixtures/memory.d.ts +2 -0
- package/dist/types/cli/gallery-fixtures/misc.d.ts +3 -0
- package/dist/types/cli/gallery-fixtures/search.d.ts +3 -0
- package/dist/types/cli/gallery-fixtures/shell.d.ts +3 -0
- package/dist/types/cli/gallery-fixtures/types.d.ts +55 -0
- package/dist/types/cli/gallery-fixtures/web.d.ts +2 -0
- package/dist/types/cli/gallery-screenshot.d.ts +35 -0
- package/dist/types/cli/gc-cli.d.ts +58 -0
- package/dist/types/cli/grep-cli.d.ts +17 -0
- package/dist/types/cli/grievances-cli.d.ts +37 -0
- package/dist/types/cli/initial-message.d.ts +17 -0
- package/dist/types/cli/models-cli.d.ts +62 -0
- package/dist/types/cli/plugin-cli.d.ts +32 -0
- package/dist/types/cli/profile-alias.d.ts +29 -0
- package/dist/types/cli/profile-bootstrap.d.ts +55 -0
- package/dist/types/cli/read-cli.d.ts +11 -0
- package/dist/types/cli/session-picker.d.ts +11 -0
- package/dist/types/cli/setup-cli.d.ts +24 -0
- package/dist/types/cli/setup-model-picker.d.ts +14 -0
- package/dist/types/cli/shell-cli.d.ts +8 -0
- package/dist/types/cli/ssh-cli.d.ts +21 -0
- package/dist/types/cli/startup-cwd.d.ts +2 -0
- package/dist/types/cli/stats-cli.d.ts +17 -0
- package/dist/types/cli/tiny-models-cli.d.ts +11 -0
- package/dist/types/cli/ttsr-cli.d.ts +39 -0
- package/dist/types/cli/update-cli.d.ts +105 -0
- package/dist/types/cli/usage-cli.d.ts +95 -0
- package/dist/types/cli/web-search-cli.d.ts +20 -0
- package/dist/types/cli/worktree-cli.d.ts +26 -0
- package/dist/types/cli-commands.d.ts +33 -0
- package/dist/types/cli.d.ts +3 -0
- package/dist/types/collab/crypto.d.ts +7 -0
- package/dist/types/collab/display-name.d.ts +3 -0
- package/dist/types/collab/guest.d.ts +52 -0
- package/dist/types/collab/host.d.ts +43 -0
- package/dist/types/collab/protocol.d.ts +143 -0
- package/dist/types/collab/relay-client.d.ts +22 -0
- package/dist/types/collab/replication-shrink.d.ts +39 -0
- package/dist/types/commands/acp.d.ts +12 -0
- package/dist/types/commands/agents.d.ts +31 -0
- package/dist/types/commands/auth-broker.d.ts +51 -0
- package/dist/types/commands/auth-gateway.d.ts +32 -0
- package/dist/types/commands/bench.d.ts +37 -0
- package/dist/types/commands/commit.d.ts +27 -0
- package/dist/types/commands/complete.d.ts +6 -0
- package/dist/types/commands/completions.d.ts +13 -0
- package/dist/types/commands/config.d.ts +30 -0
- package/dist/types/commands/dry-balance.d.ts +31 -0
- package/dist/types/commands/gallery.d.ts +47 -0
- package/dist/types/commands/gc.d.ts +37 -0
- package/dist/types/commands/grep.d.ts +42 -0
- package/dist/types/commands/grievances.d.ts +40 -0
- package/dist/types/commands/install.d.ts +51 -0
- package/dist/types/commands/join.d.ts +12 -0
- package/dist/types/commands/launch.d.ts +148 -0
- package/dist/types/commands/models.d.ts +33 -0
- package/dist/types/commands/plugin.d.ts +52 -0
- package/dist/types/commands/read.d.ts +15 -0
- package/dist/types/commands/say.d.ts +24 -0
- package/dist/types/commands/setup.d.ts +31 -0
- package/dist/types/commands/shell.d.ts +21 -0
- package/dist/types/commands/ssh.d.ts +48 -0
- package/dist/types/commands/stats.d.ts +25 -0
- package/dist/types/commands/tiny-models.d.ts +22 -0
- package/dist/types/commands/token.d.ts +34 -0
- package/dist/types/commands/ttsr.d.ts +57 -0
- package/dist/types/commands/update.d.ts +20 -0
- package/dist/types/commands/usage.d.ts +34 -0
- package/dist/types/commands/web-search.d.ts +33 -0
- package/dist/types/commands/worktree.d.ts +31 -0
- package/dist/types/commit/agentic/agent.d.ts +31 -0
- package/dist/types/commit/agentic/fallback.d.ts +5 -0
- package/dist/types/commit/agentic/index.d.ts +2 -0
- package/dist/types/commit/agentic/state.d.ts +58 -0
- package/dist/types/commit/agentic/tools/analyze-file.d.ts +18 -0
- package/dist/types/commit/agentic/tools/git-file-diff.d.ts +9 -0
- package/dist/types/commit/agentic/tools/git-hunk.d.ts +8 -0
- package/dist/types/commit/agentic/tools/git-overview.d.ts +8 -0
- package/dist/types/commit/agentic/tools/index.d.ts +16 -0
- package/dist/types/commit/agentic/tools/propose-changelog.d.ts +27 -0
- package/dist/types/commit/agentic/tools/propose-commit.d.ts +15 -0
- package/dist/types/commit/agentic/tools/recent-commits.d.ts +6 -0
- package/dist/types/commit/agentic/tools/schemas.d.ts +6 -0
- package/dist/types/commit/agentic/tools/split-commit.d.ts +32 -0
- package/dist/types/commit/agentic/topo-sort.d.ts +4 -0
- package/dist/types/commit/agentic/trivial.d.ts +7 -0
- package/dist/types/commit/agentic/validation.d.ts +20 -0
- package/dist/types/commit/analysis/conventional.d.ts +22 -0
- package/dist/types/commit/analysis/index.d.ts +4 -0
- package/dist/types/commit/analysis/scope.d.ts +6 -0
- package/dist/types/commit/analysis/summary.d.ts +19 -0
- package/dist/types/commit/analysis/validation.d.ts +8 -0
- package/dist/types/commit/changelog/detect.d.ts +2 -0
- package/dist/types/commit/changelog/generate.d.ts +29 -0
- package/dist/types/commit/changelog/index.d.ts +30 -0
- package/dist/types/commit/changelog/parse.d.ts +2 -0
- package/dist/types/commit/cli.d.ts +3 -0
- package/dist/types/commit/git/diff.d.ts +5 -0
- package/dist/types/commit/index.d.ts +4 -0
- package/dist/types/commit/map-reduce/index.d.ts +28 -0
- package/dist/types/commit/map-reduce/map-phase.d.ts +17 -0
- package/dist/types/commit/map-reduce/reduce-phase.d.ts +13 -0
- package/dist/types/commit/map-reduce/utils.d.ts +2 -0
- package/dist/types/commit/message.d.ts +2 -0
- package/dist/types/commit/model-selection.d.ts +26 -0
- package/dist/types/commit/pipeline.d.ts +5 -0
- package/dist/types/commit/shared-llm.d.ts +27 -0
- package/dist/types/commit/types.d.ts +78 -0
- package/dist/types/commit/utils/exclusions.d.ts +4 -0
- package/dist/types/commit/utils.d.ts +20 -0
- package/dist/types/config/api-key-resolver.d.ts +43 -0
- package/dist/types/config/append-only-context-mode.d.ts +9 -0
- package/dist/types/config/config-file.d.ts +62 -0
- package/dist/types/config/file-lock.d.ts +29 -0
- package/dist/types/config/inline-tool-descriptors-mode.d.ts +12 -0
- package/dist/types/config/keybindings.d.ts +362 -0
- package/dist/types/config/model-discovery.d.ts +68 -0
- package/dist/types/config/model-registry.d.ts +251 -0
- package/dist/types/config/model-resolver.d.ts +300 -0
- package/dist/types/config/model-roles.d.ts +29 -0
- package/dist/types/config/models-config-schema.d.ts +697 -0
- package/dist/types/config/models-config.d.ts +436 -0
- package/dist/types/config/prompt-templates.d.ts +32 -0
- package/dist/types/config/provider-globals.d.ts +7 -0
- package/dist/types/config/resolve-config-value.d.ts +17 -0
- package/dist/types/config/service-tier.d.ts +49 -0
- package/dist/types/config/settings-schema.d.ts +5658 -0
- package/dist/types/config/settings.d.ts +181 -0
- package/dist/types/config.d.ts +92 -0
- package/dist/types/cursor.d.ts +22 -0
- package/dist/types/dap/client.d.ts +38 -0
- package/dist/types/dap/config.d.ts +19 -0
- package/dist/types/dap/index.d.ts +4 -0
- package/dist/types/dap/session.d.ts +108 -0
- package/dist/types/dap/types.d.ts +534 -0
- package/dist/types/debug/index.d.ts +15 -0
- package/dist/types/debug/log-formatting.d.ts +4 -0
- package/dist/types/debug/log-viewer.d.ts +69 -0
- package/dist/types/debug/profiler.d.ts +24 -0
- package/dist/types/debug/protocol-probe.d.ts +38 -0
- package/dist/types/debug/raw-sse-buffer.d.ts +44 -0
- package/dist/types/debug/raw-sse.d.ts +19 -0
- package/dist/types/debug/remote-debugger.d.ts +45 -0
- package/dist/types/debug/report-bundle.d.ts +58 -0
- package/dist/types/debug/system-info.d.ts +26 -0
- package/dist/types/debug/terminal-info.d.ts +33 -0
- package/dist/types/discovery/agents-md.d.ts +1 -0
- package/dist/types/discovery/agents.d.ts +12 -0
- package/dist/types/discovery/at-imports.d.ts +15 -0
- package/dist/types/discovery/builtin-defaults.d.ts +1 -0
- package/dist/types/discovery/builtin-rules/index.d.ts +7 -0
- package/dist/types/discovery/builtin.d.ts +1 -0
- package/dist/types/discovery/claude-plugins.d.ts +1 -0
- package/dist/types/discovery/claude.d.ts +1 -0
- package/dist/types/discovery/cline.d.ts +1 -0
- package/dist/types/discovery/codex.d.ts +1 -0
- package/dist/types/discovery/cursor.d.ts +16 -0
- package/dist/types/discovery/gemini.d.ts +1 -0
- package/dist/types/discovery/github.d.ts +1 -0
- package/dist/types/discovery/helpers.d.ts +276 -0
- package/dist/types/discovery/index.d.ts +53 -0
- package/dist/types/discovery/mcp-json.d.ts +1 -0
- package/dist/types/discovery/omp-extension-roots.d.ts +43 -0
- package/dist/types/discovery/omp-plugins.d.ts +1 -0
- package/dist/types/discovery/opencode.d.ts +1 -0
- package/dist/types/discovery/plugin-dir-roots.d.ts +15 -0
- package/dist/types/discovery/ssh.d.ts +1 -0
- package/dist/types/discovery/substitute-plugin-root.d.ts +1 -0
- package/dist/types/discovery/vscode.d.ts +1 -0
- package/dist/types/discovery/windsurf.d.ts +13 -0
- package/dist/types/edit/apply-patch/index.d.ts +35 -0
- package/dist/types/edit/apply-patch/parser.d.ts +34 -0
- package/dist/types/edit/diff.d.ts +60 -0
- package/dist/types/edit/file-snapshot-store.d.ts +64 -0
- package/dist/types/edit/hashline/block-resolver.d.ts +9 -0
- package/dist/types/edit/hashline/diff.d.ts +29 -0
- package/dist/types/edit/hashline/execute.d.ts +28 -0
- package/dist/types/edit/hashline/filesystem.d.ts +43 -0
- package/dist/types/edit/hashline/index.d.ts +5 -0
- package/dist/types/edit/hashline/noop-loop-guard.d.ts +72 -0
- package/dist/types/edit/hashline/params.d.ts +7 -0
- package/dist/types/edit/index.d.ts +83 -0
- package/dist/types/edit/modes/apply-patch.d.ts +23 -0
- package/dist/types/edit/modes/patch.d.ts +101 -0
- package/dist/types/edit/modes/replace.d.ts +141 -0
- package/dist/types/edit/normalize.d.ts +31 -0
- package/dist/types/edit/notebook.d.ts +23 -0
- package/dist/types/edit/read-file.d.ts +2 -0
- package/dist/types/edit/renderer.d.ts +118 -0
- package/dist/types/edit/snapshot-details.d.ts +33 -0
- package/dist/types/edit/streaming.d.ts +105 -0
- package/dist/types/eval/__tests__/agent-bridge.test.d.ts +1 -0
- package/dist/types/eval/__tests__/bridge-timeout.test.d.ts +1 -0
- package/dist/types/eval/__tests__/budget-bridge.test.d.ts +1 -0
- package/dist/types/eval/__tests__/completion-bridge.test.d.ts +1 -0
- package/dist/types/eval/__tests__/helpers-local-roots.test.d.ts +1 -0
- package/dist/types/eval/__tests__/idle-timeout.test.d.ts +1 -0
- package/dist/types/eval/__tests__/js-context-manager.test.d.ts +1 -0
- package/dist/types/eval/__tests__/julia-prelude.test.d.ts +1 -0
- package/dist/types/eval/__tests__/kernel-spawn.test.d.ts +1 -0
- package/dist/types/eval/__tests__/prelude-agent.test.d.ts +1 -0
- package/dist/types/eval/agent-bridge.d.ts +48 -0
- package/dist/types/eval/backend-helpers.d.ts +23 -0
- package/dist/types/eval/backend.d.ts +60 -0
- package/dist/types/eval/bridge-timeout.d.ts +27 -0
- package/dist/types/eval/budget-bridge.d.ts +29 -0
- package/dist/types/eval/completion-bridge.d.ts +38 -0
- package/dist/types/eval/concurrency-bridge.d.ts +26 -0
- package/dist/types/eval/executor-base.d.ts +118 -0
- package/dist/types/eval/idle-timeout.d.ts +26 -0
- package/dist/types/eval/index.d.ts +6 -0
- package/dist/types/eval/jl/executor.d.ts +44 -0
- package/dist/types/eval/jl/index.d.ts +11 -0
- package/dist/types/eval/jl/kernel.d.ts +28 -0
- package/dist/types/eval/jl/prelude.d.ts +1 -0
- package/dist/types/eval/jl/runtime.d.ts +22 -0
- package/dist/types/eval/js/context-manager.d.ts +40 -0
- package/dist/types/eval/js/executor.d.ts +38 -0
- package/dist/types/eval/js/index.d.ts +11 -0
- package/dist/types/eval/js/shared/helpers.d.ts +32 -0
- package/dist/types/eval/js/shared/indirect-eval.d.ts +14 -0
- package/dist/types/eval/js/shared/local-module-loader.d.ts +16 -0
- package/dist/types/eval/js/shared/prelude.d.ts +1 -0
- package/dist/types/eval/js/shared/rewrite-imports.d.ts +25 -0
- package/dist/types/eval/js/shared/runtime.d.ts +59 -0
- package/dist/types/eval/js/shared/types.d.ts +24 -0
- package/dist/types/eval/js/tool-bridge.d.ts +20 -0
- package/dist/types/eval/js/worker-core.d.ts +6 -0
- package/dist/types/eval/js/worker-entry.d.ts +1 -0
- package/dist/types/eval/js/worker-protocol.d.ts +83 -0
- package/dist/types/eval/kernel-base.d.ts +105 -0
- package/dist/types/eval/py/__tests__/prelude.test.d.ts +1 -0
- package/dist/types/eval/py/__tests__/runner-shell-output.test.d.ts +1 -0
- package/dist/types/eval/py/display.d.ts +25 -0
- package/dist/types/eval/py/executor.d.ts +107 -0
- package/dist/types/eval/py/index.d.ts +11 -0
- package/dist/types/eval/py/kernel.d.ts +17 -0
- package/dist/types/eval/py/prelude.d.ts +1 -0
- package/dist/types/eval/py/runtime.d.ts +40 -0
- package/dist/types/eval/py/spawn-options.d.ts +58 -0
- package/dist/types/eval/py/tool-bridge.d.ts +16 -0
- package/dist/types/eval/rb/executor.d.ts +77 -0
- package/dist/types/eval/rb/index.d.ts +11 -0
- package/dist/types/eval/rb/kernel.d.ts +31 -0
- package/dist/types/eval/rb/prelude.d.ts +1 -0
- package/dist/types/eval/rb/runtime.d.ts +23 -0
- package/dist/types/eval/runtime-env.d.ts +24 -0
- package/dist/types/eval/session-id.d.ts +3 -0
- package/dist/types/eval/types.d.ts +52 -0
- package/dist/types/exa/index.d.ts +2 -0
- package/dist/types/exa/mcp-client.d.ts +53 -0
- package/dist/types/exa/types.d.ts +72 -0
- package/dist/types/exec/bash-cwd-sync.d.ts +16 -0
- package/dist/types/exec/bash-executor.d.ts +45 -0
- package/dist/types/exec/exec.d.ts +25 -0
- package/dist/types/exec/non-interactive-env.d.ts +3 -0
- package/dist/types/export/custom-share.d.ts +19 -0
- package/dist/types/export/html/index.d.ts +78 -0
- package/dist/types/export/html/web-palette.d.ts +117 -0
- package/dist/types/export/share.d.ts +55 -0
- package/dist/types/export/ttsr.d.ts +67 -0
- package/dist/types/extensibility/custom-commands/bundled/ci-green/index.d.ts +9 -0
- package/dist/types/extensibility/custom-commands/bundled/review/index.d.ts +10 -0
- package/dist/types/extensibility/custom-commands/index.d.ts +2 -0
- package/dist/types/extensibility/custom-commands/loader.d.ts +29 -0
- package/dist/types/extensibility/custom-commands/types.d.ts +112 -0
- package/dist/types/extensibility/custom-tools/index.d.ts +6 -0
- package/dist/types/extensibility/custom-tools/loader.d.ts +89 -0
- package/dist/types/extensibility/custom-tools/types.d.ts +242 -0
- package/dist/types/extensibility/custom-tools/wrapper.d.ts +23 -0
- package/dist/types/extensibility/extensions/compact-handler.d.ts +26 -0
- package/dist/types/extensibility/extensions/get-commands-handler.d.ts +29 -0
- package/dist/types/extensibility/extensions/index.d.ts +8 -0
- package/dist/types/extensibility/extensions/loader.d.ts +59 -0
- package/dist/types/extensibility/extensions/model-api.d.ts +17 -0
- package/dist/types/extensibility/extensions/runner.d.ts +161 -0
- package/dist/types/extensibility/extensions/types.d.ts +962 -0
- package/dist/types/extensibility/extensions/wrapper.d.ts +54 -0
- package/dist/types/extensibility/hooks/index.d.ts +6 -0
- package/dist/types/extensibility/hooks/loader.d.ts +65 -0
- package/dist/types/extensibility/hooks/runner.d.ts +126 -0
- package/dist/types/extensibility/hooks/tool-wrapper.d.ts +25 -0
- package/dist/types/extensibility/hooks/types.d.ts +442 -0
- package/dist/types/extensibility/legacy-pi-ai-shim.d.ts +35 -0
- package/dist/types/extensibility/legacy-pi-coding-agent-shim.d.ts +115 -0
- package/dist/types/extensibility/plugins/doctor.d.ts +3 -0
- package/dist/types/extensibility/plugins/git-url.d.ts +44 -0
- package/dist/types/extensibility/plugins/index.d.ts +7 -0
- package/dist/types/extensibility/plugins/installer.d.ts +5 -0
- package/dist/types/extensibility/plugins/legacy-pi-bundled-keys.d.ts +10 -0
- package/dist/types/extensibility/plugins/legacy-pi-bundled-registry.d.ts +10 -0
- package/dist/types/extensibility/plugins/legacy-pi-compat.d.ts +79 -0
- package/dist/types/extensibility/plugins/loader.d.ts +59 -0
- package/dist/types/extensibility/plugins/manager.d.ts +76 -0
- package/dist/types/extensibility/plugins/marketplace/cache.d.ts +41 -0
- package/dist/types/extensibility/plugins/marketplace/fetcher.d.ts +48 -0
- package/dist/types/extensibility/plugins/marketplace/index.d.ts +6 -0
- package/dist/types/extensibility/plugins/marketplace/manager.d.ts +57 -0
- package/dist/types/extensibility/plugins/marketplace/registry.d.ts +34 -0
- package/dist/types/extensibility/plugins/marketplace/source-resolver.d.ts +28 -0
- package/dist/types/extensibility/plugins/marketplace/types.d.ts +131 -0
- package/dist/types/extensibility/plugins/marketplace-auto-update.d.ts +8 -0
- package/dist/types/extensibility/plugins/parser.d.ts +52 -0
- package/dist/types/extensibility/plugins/runtime-config.d.ts +3 -0
- package/dist/types/extensibility/plugins/types.d.ts +159 -0
- package/dist/types/extensibility/session-handler-types.d.ts +23 -0
- package/dist/types/extensibility/shared-events.d.ts +301 -0
- package/dist/types/extensibility/skills.d.ts +97 -0
- package/dist/types/extensibility/slash-commands.d.ts +38 -0
- package/dist/types/extensibility/tool-event-input.d.ts +9 -0
- package/dist/types/extensibility/tool-proxy.d.ts +4 -0
- package/dist/types/extensibility/typebox.d.ts +177 -0
- package/dist/types/extensibility/utils.d.ts +24 -0
- package/dist/types/goals/guided-setup.d.ts +18 -0
- package/dist/types/goals/index.d.ts +3 -0
- package/dist/types/goals/runtime.d.ts +69 -0
- package/dist/types/goals/state.d.ts +35 -0
- package/dist/types/goals/tools/goal-tool.d.ts +53 -0
- package/dist/types/hindsight/backend.d.ts +13 -0
- package/dist/types/hindsight/bank.d.ts +63 -0
- package/dist/types/hindsight/client.d.ts +224 -0
- package/dist/types/hindsight/config.d.ts +51 -0
- package/dist/types/hindsight/content.d.ts +69 -0
- package/dist/types/hindsight/index.d.ts +8 -0
- package/dist/types/hindsight/mental-models.d.ts +134 -0
- package/dist/types/hindsight/state.d.ts +105 -0
- package/dist/types/hindsight/transcript.d.ts +28 -0
- package/dist/types/index.d.ts +43 -0
- package/dist/types/internal-urls/__tests__/ssh-protocol.test.d.ts +1 -0
- package/dist/types/internal-urls/agent-protocol.d.ts +13 -0
- package/dist/types/internal-urls/artifact-protocol.d.ts +7 -0
- package/dist/types/internal-urls/docs-index.d.ts +19 -0
- package/dist/types/internal-urls/filesystem-resource.d.ts +9 -0
- package/dist/types/internal-urls/history-protocol.d.ts +14 -0
- package/dist/types/internal-urls/index.d.ts +25 -0
- package/dist/types/internal-urls/issue-pr-protocol.d.ts +17 -0
- package/dist/types/internal-urls/json-query.d.ts +30 -0
- package/dist/types/internal-urls/local-protocol.d.ts +79 -0
- package/dist/types/internal-urls/mcp-protocol.d.ts +12 -0
- package/dist/types/internal-urls/memory-protocol.d.ts +24 -0
- package/dist/types/internal-urls/omp-protocol.d.ts +13 -0
- package/dist/types/internal-urls/parse.d.ts +19 -0
- package/dist/types/internal-urls/registry-helpers.d.ts +12 -0
- package/dist/types/internal-urls/router.d.ts +21 -0
- package/dist/types/internal-urls/rule-protocol.d.ts +7 -0
- package/dist/types/internal-urls/skill-protocol.d.ts +14 -0
- package/dist/types/internal-urls/ssh-protocol.d.ts +10 -0
- package/dist/types/internal-urls/types.d.ts +165 -0
- package/dist/types/internal-urls/vault-protocol.d.ts +93 -0
- package/dist/types/irc/bus.d.ts +85 -0
- package/dist/types/jsonrpc/message-framing.d.ts +35 -0
- package/dist/types/lib/xai-http.d.ts +40 -0
- package/dist/types/lsp/client.d.ts +84 -0
- package/dist/types/lsp/clients/biome-client.d.ts +16 -0
- package/dist/types/lsp/clients/index.d.ts +19 -0
- package/dist/types/lsp/clients/lsp-linter-client.d.ts +16 -0
- package/dist/types/lsp/clients/swiftlint-client.d.ts +20 -0
- package/dist/types/lsp/config.d.ts +65 -0
- package/dist/types/lsp/diagnostics-ledger.d.ts +10 -0
- package/dist/types/lsp/edits.d.ts +32 -0
- package/dist/types/lsp/format-options.d.ts +32 -0
- package/dist/types/lsp/index.d.ts +120 -0
- package/dist/types/lsp/lspmux.d.ts +58 -0
- package/dist/types/lsp/render.d.ts +32 -0
- package/dist/types/lsp/startup-events.d.ts +11 -0
- package/dist/types/lsp/types.d.ts +300 -0
- package/dist/types/lsp/utils.d.ts +116 -0
- package/dist/types/main.d.ts +70 -0
- package/dist/types/markit/converters/docx.d.ts +6 -0
- package/dist/types/markit/converters/epub.d.ts +15 -0
- package/dist/types/markit/converters/pdf/columns.d.ts +35 -0
- package/dist/types/markit/converters/pdf/extract.d.ts +10 -0
- package/dist/types/markit/converters/pdf/grid.d.ts +25 -0
- package/dist/types/markit/converters/pdf/headers.d.ts +24 -0
- package/dist/types/markit/converters/pdf/index.d.ts +6 -0
- package/dist/types/markit/converters/pdf/render.d.ts +24 -0
- package/dist/types/markit/converters/pdf/types.d.ts +75 -0
- package/dist/types/markit/converters/pptx.d.ts +57 -0
- package/dist/types/markit/converters/xlsx.d.ts +25 -0
- package/dist/types/markit/index.d.ts +2 -0
- package/dist/types/markit/registry.d.ts +16 -0
- package/dist/types/markit/types.d.ts +30 -0
- package/dist/types/mcp/client.d.ts +83 -0
- package/dist/types/mcp/config-writer.d.ts +101 -0
- package/dist/types/mcp/config.d.ts +75 -0
- package/dist/types/mcp/index.d.ts +18 -0
- package/dist/types/mcp/json-rpc.d.ts +32 -0
- package/dist/types/mcp/loader.d.ts +44 -0
- package/dist/types/mcp/manager.d.ts +215 -0
- package/dist/types/mcp/oauth-credentials.d.ts +17 -0
- package/dist/types/mcp/oauth-discovery.d.ts +35 -0
- package/dist/types/mcp/oauth-flow.d.ts +145 -0
- package/dist/types/mcp/render.d.ts +25 -0
- package/dist/types/mcp/smithery-auth.d.ts +16 -0
- package/dist/types/mcp/smithery-connect.d.ts +38 -0
- package/dist/types/mcp/smithery-registry.d.ts +51 -0
- package/dist/types/mcp/startup-events.d.ts +28 -0
- package/dist/types/mcp/timeout.d.ts +9 -0
- package/dist/types/mcp/tool-bridge.d.ts +95 -0
- package/dist/types/mcp/tool-cache.d.ts +8 -0
- package/dist/types/mcp/transports/http.d.ts +45 -0
- package/dist/types/mcp/transports/index.d.ts +6 -0
- package/dist/types/mcp/transports/sse.d.ts +20 -0
- package/dist/types/mcp/transports/stdio.d.ts +108 -0
- package/dist/types/mcp/transports/stdio.test.d.ts +1 -0
- package/dist/types/mcp/types.d.ts +340 -0
- package/dist/types/memories/index.d.ts +54 -0
- package/dist/types/memories/okf.d.ts +36 -0
- package/dist/types/memories/storage.d.ts +110 -0
- package/dist/types/memory-backend/index.d.ts +7 -0
- package/dist/types/memory-backend/local-backend.d.ts +10 -0
- package/dist/types/memory-backend/off-backend.d.ts +7 -0
- package/dist/types/memory-backend/resolve.d.ts +16 -0
- package/dist/types/memory-backend/runtime.d.ts +4 -0
- package/dist/types/memory-backend/types.d.ts +132 -0
- package/dist/types/mnemopi/backend.d.ts +4 -0
- package/dist/types/mnemopi/config.d.ts +60 -0
- package/dist/types/mnemopi/embed-client.d.ts +53 -0
- package/dist/types/mnemopi/embed-protocol.d.ts +52 -0
- package/dist/types/mnemopi/embed-worker.d.ts +12 -0
- package/dist/types/mnemopi/index.d.ts +3 -0
- package/dist/types/mnemopi/state.d.ts +130 -0
- package/dist/types/modes/acp/acp-agent.d.ts +60 -0
- package/dist/types/modes/acp/acp-client-bridge.d.ts +9 -0
- package/dist/types/modes/acp/acp-event-mapper.d.ts +33 -0
- package/dist/types/modes/acp/acp-mode.d.ts +5 -0
- package/dist/types/modes/acp/index.d.ts +2 -0
- package/dist/types/modes/acp/terminal-auth.d.ts +6 -0
- package/dist/types/modes/components/__tests__/assistant-agent-label.test.d.ts +1 -0
- package/dist/types/modes/components/__tests__/move-overlay.test.d.ts +1 -0
- package/dist/types/modes/components/__tests__/skill-message.test.d.ts +1 -0
- package/dist/types/modes/components/advisor-config.d.ts +59 -0
- package/dist/types/modes/components/advisor-message.d.ts +9 -0
- package/dist/types/modes/components/agent-dashboard.d.ts +22 -0
- package/dist/types/modes/components/agent-hub.d.ts +77 -0
- package/dist/types/modes/components/agent-transcript-viewer.d.ts +40 -0
- package/dist/types/modes/components/assistant-message.d.ts +57 -0
- package/dist/types/modes/components/background-tan-message.d.ts +9 -0
- package/dist/types/modes/components/bash-execution.d.ts +29 -0
- package/dist/types/modes/components/bordered-loader.d.ts +11 -0
- package/dist/types/modes/components/btw-panel.d.ts +19 -0
- package/dist/types/modes/components/cache-invalidation-marker.d.ts +52 -0
- package/dist/types/modes/components/chat-block.d.ts +64 -0
- package/dist/types/modes/components/chat-transcript-builder.d.ts +45 -0
- package/dist/types/modes/components/collab-prompt-message.d.ts +10 -0
- package/dist/types/modes/components/compaction-summary-message.d.ts +46 -0
- package/dist/types/modes/components/copy-selector.d.ts +22 -0
- package/dist/types/modes/components/countdown-timer.d.ts +14 -0
- package/dist/types/modes/components/custom-editor.d.ts +163 -0
- package/dist/types/modes/components/custom-editor.test.d.ts +1 -0
- package/dist/types/modes/components/custom-message.d.ts +15 -0
- package/dist/types/modes/components/diff.d.ts +11 -0
- package/dist/types/modes/components/dynamic-border.d.ts +14 -0
- package/dist/types/modes/components/error-banner.d.ts +11 -0
- package/dist/types/modes/components/eval-execution.d.ts +23 -0
- package/dist/types/modes/components/execution-shared.d.ts +46 -0
- package/dist/types/modes/components/extensions/extension-dashboard.d.ts +43 -0
- package/dist/types/modes/components/extensions/extension-list.d.ts +52 -0
- package/dist/types/modes/components/extensions/index.d.ts +8 -0
- package/dist/types/modes/components/extensions/inspector-panel.d.ts +8 -0
- package/dist/types/modes/components/extensions/state-manager.d.ts +50 -0
- package/dist/types/modes/components/extensions/types.d.ts +147 -0
- package/dist/types/modes/components/footer.d.ts +30 -0
- package/dist/types/modes/components/history-search.d.ts +7 -0
- package/dist/types/modes/components/hook-editor.d.ts +24 -0
- package/dist/types/modes/components/hook-input.d.ts +19 -0
- package/dist/types/modes/components/hook-message.d.ts +15 -0
- package/dist/types/modes/components/hook-selector.d.ts +68 -0
- package/dist/types/modes/components/index.d.ts +38 -0
- package/dist/types/modes/components/keybinding-hints.d.ts +40 -0
- package/dist/types/modes/components/late-diagnostics-message.d.ts +20 -0
- package/dist/types/modes/components/login-dialog.d.ts +32 -0
- package/dist/types/modes/components/logout-account-selector.d.ts +8 -0
- package/dist/types/modes/components/mcp-add-wizard.d.ts +38 -0
- package/dist/types/modes/components/message-frame.d.ts +44 -0
- package/dist/types/modes/components/model-selector.d.ts +36 -0
- package/dist/types/modes/components/move-overlay.d.ts +23 -0
- package/dist/types/modes/components/oauth-selector.d.ts +23 -0
- package/dist/types/modes/components/omfg-panel.d.ts +19 -0
- package/dist/types/modes/components/overlay-box.d.ts +17 -0
- package/dist/types/modes/components/plan-review-overlay.d.ts +61 -0
- package/dist/types/modes/components/plan-toc.d.ts +41 -0
- package/dist/types/modes/components/plugin-selector.d.ts +27 -0
- package/dist/types/modes/components/plugin-settings.d.ts +103 -0
- package/dist/types/modes/components/queue-mode-selector.d.ts +10 -0
- package/dist/types/modes/components/read-tool-group.d.ts +38 -0
- package/dist/types/modes/components/reset-usage-selector.d.ts +12 -0
- package/dist/types/modes/components/segment-track.d.ts +27 -0
- package/dist/types/modes/components/select-list-mouse-routing.d.ts +2 -0
- package/dist/types/modes/components/selector-helpers.d.ts +53 -0
- package/dist/types/modes/components/session-selector.d.ts +94 -0
- package/dist/types/modes/components/settings-defs.d.ts +60 -0
- package/dist/types/modes/components/settings-selector.d.ts +70 -0
- package/dist/types/modes/components/show-images-selector.d.ts +10 -0
- package/dist/types/modes/components/skill-message.d.ts +9 -0
- package/dist/types/modes/components/snapcompact-shape-preview.d.ts +31 -0
- package/dist/types/modes/components/status-line/component.d.ts +94 -0
- package/dist/types/modes/components/status-line/component.test.d.ts +1 -0
- package/dist/types/modes/components/status-line/context-thresholds.d.ts +10 -0
- package/dist/types/modes/components/status-line/git-utils.d.ts +22 -0
- package/dist/types/modes/components/status-line/index.d.ts +5 -0
- package/dist/types/modes/components/status-line/presets.d.ts +3 -0
- package/dist/types/modes/components/status-line/segments.d.ts +5 -0
- package/dist/types/modes/components/status-line/separators.d.ts +3 -0
- package/dist/types/modes/components/status-line/token-rate.d.ts +10 -0
- package/dist/types/modes/components/status-line/types.d.ts +150 -0
- package/dist/types/modes/components/theme-selector.d.ts +11 -0
- package/dist/types/modes/components/thinking-selector.d.ts +11 -0
- package/dist/types/modes/components/tiny-title-download-progress.d.ts +11 -0
- package/dist/types/modes/components/todo-reminder.d.ts +15 -0
- package/dist/types/modes/components/tool-execution.d.ts +124 -0
- package/dist/types/modes/components/transcript-container.d.ts +88 -0
- package/dist/types/modes/components/tree-selector.d.ts +31 -0
- package/dist/types/modes/components/ttsr-notification.d.ts +17 -0
- package/dist/types/modes/components/usage-row.d.ts +3 -0
- package/dist/types/modes/components/user-message-selector.d.ts +28 -0
- package/dist/types/modes/components/user-message.d.ts +9 -0
- package/dist/types/modes/components/visual-truncate.d.ts +19 -0
- package/dist/types/modes/components/welcome.d.ts +76 -0
- package/dist/types/modes/controllers/btw-controller.d.ts +14 -0
- package/dist/types/modes/controllers/command-controller-shared.d.ts +47 -0
- package/dist/types/modes/controllers/command-controller.d.ts +55 -0
- package/dist/types/modes/controllers/event-controller.d.ts +28 -0
- package/dist/types/modes/controllers/extension-ui-controller.d.ts +88 -0
- package/dist/types/modes/controllers/input-controller.d.ts +71 -0
- package/dist/types/modes/controllers/mcp-command-controller.d.ts +27 -0
- package/dist/types/modes/controllers/omfg-controller.d.ts +10 -0
- package/dist/types/modes/controllers/omfg-rule.d.ts +26 -0
- package/dist/types/modes/controllers/selector-controller.d.ts +61 -0
- package/dist/types/modes/controllers/session-focus-controller.d.ts +31 -0
- package/dist/types/modes/controllers/ssh-command-controller.d.ts +10 -0
- package/dist/types/modes/controllers/streaming-reveal.d.ts +45 -0
- package/dist/types/modes/controllers/tan-command-controller.d.ts +6 -0
- package/dist/types/modes/controllers/todo-command-controller.d.ts +7 -0
- package/dist/types/modes/controllers/tool-args-reveal.d.ts +77 -0
- package/dist/types/modes/emoji-autocomplete.d.ts +16 -0
- package/dist/types/modes/gradient-highlight.d.ts +32 -0
- package/dist/types/modes/image-references.d.ts +28 -0
- package/dist/types/modes/index.d.ts +10 -0
- package/dist/types/modes/interactive-mode.d.ts +399 -0
- package/dist/types/modes/internal-url-autocomplete.d.ts +43 -0
- package/dist/types/modes/loop-limit.d.ts +35 -0
- package/dist/types/modes/magic-keywords.d.ts +26 -0
- package/dist/types/modes/markdown-prose.d.ts +27 -0
- package/dist/types/modes/oauth-manual-input.d.ts +15 -0
- package/dist/types/modes/orchestrate.d.ts +15 -0
- package/dist/types/modes/print-mode.d.ts +29 -0
- package/dist/types/modes/prompt-action-autocomplete.d.ts +46 -0
- package/dist/types/modes/rpc/host-tools.d.ts +16 -0
- package/dist/types/modes/rpc/host-uris.d.ts +38 -0
- package/dist/types/modes/rpc/rpc-client.d.ts +300 -0
- package/dist/types/modes/rpc/rpc-mode.d.ts +145 -0
- package/dist/types/modes/rpc/rpc-subagents.d.ts +24 -0
- package/dist/types/modes/rpc/rpc-types.d.ts +699 -0
- package/dist/types/modes/running-subagent-badge.d.ts +6 -0
- package/dist/types/modes/runtime-init.d.ts +25 -0
- package/dist/types/modes/session-observer-registry.d.ts +35 -0
- package/dist/types/modes/session-teardown.d.ts +63 -0
- package/dist/types/modes/session-teardown.test.d.ts +1 -0
- package/dist/types/modes/setup-version.d.ts +11 -0
- package/dist/types/modes/setup-wizard/index.d.ts +22 -0
- package/dist/types/modes/setup-wizard/lazy.d.ts +2 -0
- package/dist/types/modes/setup-wizard/scenes/glyph.d.ts +2 -0
- package/dist/types/modes/setup-wizard/scenes/outro.d.ts +2 -0
- package/dist/types/modes/setup-wizard/scenes/providers.d.ts +2 -0
- package/dist/types/modes/setup-wizard/scenes/sign-in.d.ts +22 -0
- package/dist/types/modes/setup-wizard/scenes/splash.d.ts +11 -0
- package/dist/types/modes/setup-wizard/scenes/theme.d.ts +2 -0
- package/dist/types/modes/setup-wizard/scenes/types.d.ts +52 -0
- package/dist/types/modes/setup-wizard/scenes/web-search.d.ts +23 -0
- package/dist/types/modes/setup-wizard/startup-splash.d.ts +7 -0
- package/dist/types/modes/setup-wizard/wizard-overlay.d.ts +15 -0
- package/dist/types/modes/shared.d.ts +15 -0
- package/dist/types/modes/skill-command.d.ts +32 -0
- package/dist/types/modes/theme/defaults/index.d.ts +9436 -0
- package/dist/types/modes/theme/mermaid-cache.d.ts +26 -0
- package/dist/types/modes/theme/mermaid-rendering.test.d.ts +1 -0
- package/dist/types/modes/theme/shimmer.d.ts +40 -0
- package/dist/types/modes/theme/theme.d.ts +360 -0
- package/dist/types/modes/turn-budget.d.ts +18 -0
- package/dist/types/modes/types.d.ts +399 -0
- package/dist/types/modes/ultrathink.d.ts +15 -0
- package/dist/types/modes/utils/context-usage.d.ts +64 -0
- package/dist/types/modes/utils/copy-targets.d.ts +75 -0
- package/dist/types/modes/utils/hotkeys-markdown.d.ts +5 -0
- package/dist/types/modes/utils/interactive-context-helpers.d.ts +14 -0
- package/dist/types/modes/utils/keybinding-matchers.d.ts +32 -0
- package/dist/types/modes/utils/tools-markdown.d.ts +5 -0
- package/dist/types/modes/utils/transcript-render-helpers.d.ts +54 -0
- package/dist/types/modes/utils/ui-helpers.d.ts +55 -0
- package/dist/types/modes/workflow.d.ts +15 -0
- package/dist/types/plan-mode/approved-plan-prompt.test.d.ts +1 -0
- package/dist/types/plan-mode/approved-plan.d.ts +68 -0
- package/dist/types/plan-mode/plan-handoff.d.ts +20 -0
- package/dist/types/plan-mode/plan-protection.d.ts +12 -0
- package/dist/types/plan-mode/state.d.ts +6 -0
- package/dist/types/registry/agent-lifecycle.d.ts +66 -0
- package/dist/types/registry/agent-registry.d.ts +97 -0
- package/dist/types/sdk.d.ts +370 -0
- package/dist/types/secrets/index.d.ts +9 -0
- package/dist/types/secrets/obfuscator.d.ts +63 -0
- package/dist/types/secrets/regex.d.ts +2 -0
- package/dist/types/session/agent-session.d.ts +1420 -0
- package/dist/types/session/agent-storage.d.ts +97 -0
- package/dist/types/session/artifacts.d.ts +61 -0
- package/dist/types/session/auth-broker-config.d.ts +45 -0
- package/dist/types/session/auth-storage.d.ts +7 -0
- package/dist/types/session/blob-store.d.ts +68 -0
- package/dist/types/session/client-bridge.d.ts +88 -0
- package/dist/types/session/codex-auto-reset.d.ts +111 -0
- package/dist/types/session/compact-modes.d.ts +60 -0
- package/dist/types/session/exit-diagnostics.d.ts +48 -0
- package/dist/types/session/history-storage.d.ts +30 -0
- package/dist/types/session/indexed-session-storage.d.ts +65 -0
- package/dist/types/session/messages.d.ts +220 -0
- package/dist/types/session/messages.test.d.ts +1 -0
- package/dist/types/session/provider-image-budget.d.ts +3 -0
- package/dist/types/session/redis-session-storage.d.ts +51 -0
- package/dist/types/session/session-context.d.ts +44 -0
- package/dist/types/session/session-dump-format.d.ts +30 -0
- package/dist/types/session/session-entries.d.ts +197 -0
- package/dist/types/session/session-history-format.d.ts +49 -0
- package/dist/types/session/session-listing.d.ts +78 -0
- package/dist/types/session/session-loader.d.ts +29 -0
- package/dist/types/session/session-manager.d.ts +306 -0
- package/dist/types/session/session-migrations.d.ts +12 -0
- package/dist/types/session/session-paths.d.ts +25 -0
- package/dist/types/session/session-persistence.d.ts +12 -0
- package/dist/types/session/session-storage.d.ts +101 -0
- package/dist/types/session/session-title-slot.d.ts +19 -0
- package/dist/types/session/settings-stream-fn.d.ts +21 -0
- package/dist/types/session/shake-types.d.ts +24 -0
- package/dist/types/session/snapcompact-inline.d.ts +145 -0
- package/dist/types/session/snapcompact-savings-journal.d.ts +46 -0
- package/dist/types/session/sql-session-storage.d.ts +72 -0
- package/dist/types/session/streaming-output.d.ts +229 -0
- package/dist/types/session/tool-choice-queue.d.ts +94 -0
- package/dist/types/session/turn-persistence.d.ts +88 -0
- package/dist/types/session/unexpected-stop-classifier.d.ts +13 -0
- package/dist/types/session/yield-queue.d.ts +37 -0
- package/dist/types/slash-commands/acp-builtins.d.ts +34 -0
- package/dist/types/slash-commands/available-commands.d.ts +34 -0
- package/dist/types/slash-commands/builtin-registry.d.ts +36 -0
- package/dist/types/slash-commands/helpers/active-oauth-account.d.ts +14 -0
- package/dist/types/slash-commands/helpers/collab-qrcode.d.ts +13 -0
- package/dist/types/slash-commands/helpers/context-report.d.ts +7 -0
- package/dist/types/slash-commands/helpers/format.d.ts +10 -0
- package/dist/types/slash-commands/helpers/logout.d.ts +15 -0
- package/dist/types/slash-commands/helpers/marketplace-manager.d.ts +8 -0
- package/dist/types/slash-commands/helpers/mcp.d.ts +3 -0
- package/dist/types/slash-commands/helpers/parse.d.ts +33 -0
- package/dist/types/slash-commands/helpers/reset-usage.d.ts +27 -0
- package/dist/types/slash-commands/helpers/ssh.d.ts +3 -0
- package/dist/types/slash-commands/helpers/stats-dashboard.d.ts +13 -0
- package/dist/types/slash-commands/helpers/todo.d.ts +3 -0
- package/dist/types/slash-commands/helpers/usage-report.d.ts +7 -0
- package/dist/types/slash-commands/marketplace-install-parser.d.ts +33 -0
- package/dist/types/slash-commands/types.d.ts +127 -0
- package/dist/types/ssh/__tests__/connection-manager-args.test.d.ts +1 -0
- package/dist/types/ssh/__tests__/file-transfer-posix-guard.test.d.ts +1 -0
- package/dist/types/ssh/config-writer.d.ts +49 -0
- package/dist/types/ssh/connection-manager.d.ts +90 -0
- package/dist/types/ssh/file-transfer.d.ts +79 -0
- package/dist/types/ssh/ssh-executor.d.ts +37 -0
- package/dist/types/ssh/sshfs-mount.d.ts +6 -0
- package/dist/types/ssh/utils.d.ts +24 -0
- package/dist/types/startup-splash.d.ts +12 -0
- package/dist/types/stt/asr-client.d.ts +68 -0
- package/dist/types/stt/asr-protocol.d.ts +97 -0
- package/dist/types/stt/asr-worker.d.ts +2 -0
- package/dist/types/stt/downloader.d.ts +47 -0
- package/dist/types/stt/endpointer.d.ts +59 -0
- package/dist/types/stt/index.d.ts +8 -0
- package/dist/types/stt/models.d.ts +120 -0
- package/dist/types/stt/recorder.d.ts +30 -0
- package/dist/types/stt/stt-controller.d.ts +24 -0
- package/dist/types/stt/submit-trigger.d.ts +30 -0
- package/dist/types/stt/transcriber.d.ts +14 -0
- package/dist/types/stt/wav.d.ts +29 -0
- package/dist/types/subprocess/worker-client.d.ts +149 -0
- package/dist/types/subprocess/worker-runtime.d.ts +107 -0
- package/dist/types/system-prompt.d.ts +128 -0
- package/dist/types/system-prompt.test.d.ts +1 -0
- package/dist/types/task/agents.d.ts +28 -0
- package/dist/types/task/commands.d.ts +35 -0
- package/dist/types/task/critic-gate.d.ts +76 -0
- package/dist/types/task/critic-gate.test.d.ts +1 -0
- package/dist/types/task/discovery.d.ts +17 -0
- package/dist/types/task/executor.d.ts +214 -0
- package/dist/types/task/index.d.ts +79 -0
- package/dist/types/task/isolation-runner.d.ts +128 -0
- package/dist/types/task/name-generator.d.ts +16 -0
- package/dist/types/task/omp-command.d.ts +7 -0
- package/dist/types/task/output-manager.d.ts +20 -0
- package/dist/types/task/parallel.d.ts +55 -0
- package/dist/types/task/persisted-revive.d.ts +36 -0
- package/dist/types/task/provider-concurrency.d.ts +40 -0
- package/dist/types/task/render.d.ts +34 -0
- package/dist/types/task/render.test.d.ts +1 -0
- package/dist/types/task/renderer.d.ts +13 -0
- package/dist/types/task/repair-args.d.ts +53 -0
- package/dist/types/task/spawn-policy.d.ts +17 -0
- package/dist/types/task/spawn-policy.test.d.ts +1 -0
- package/dist/types/task/subprocess-tool-registry.d.ts +72 -0
- package/dist/types/task/types.d.ts +384 -0
- package/dist/types/task/worktree.d.ts +135 -0
- package/dist/types/task/yield-assembly.d.ts +28 -0
- package/dist/types/telemetry-export.d.ts +43 -0
- package/dist/types/thinking.d.ts +96 -0
- package/dist/types/tiny/device.d.ts +78 -0
- package/dist/types/tiny/dtype.d.ts +85 -0
- package/dist/types/tiny/models.d.ts +230 -0
- package/dist/types/tiny/text.d.ts +44 -0
- package/dist/types/tiny/title-client.d.ts +68 -0
- package/dist/types/tiny/title-protocol.d.ts +78 -0
- package/dist/types/tiny/worker.d.ts +2 -0
- package/dist/types/tool-discovery/mode.d.ts +8 -0
- package/dist/types/tool-discovery/tool-index.d.ts +57 -0
- package/dist/types/tools/__tests__/eval-description.test.d.ts +1 -0
- package/dist/types/tools/__tests__/json-tree.test.d.ts +1 -0
- package/dist/types/tools/acp-bridge.d.ts +29 -0
- package/dist/types/tools/approval.d.ts +46 -0
- package/dist/types/tools/ask.d.ts +119 -0
- package/dist/types/tools/ast-edit.d.ts +84 -0
- package/dist/types/tools/ast-grep.d.ts +74 -0
- package/dist/types/tools/auto-generated-guard.d.ts +17 -0
- package/dist/types/tools/bash-command-fixup.d.ts +11 -0
- package/dist/types/tools/bash-interactive.d.ts +16 -0
- package/dist/types/tools/bash-interceptor.d.ts +24 -0
- package/dist/types/tools/bash-pty-selection.d.ts +7 -0
- package/dist/types/tools/bash-skill-urls.d.ts +31 -0
- package/dist/types/tools/bash.d.ts +148 -0
- package/dist/types/tools/browser/aria/aria-snapshot.d.ts +39 -0
- package/dist/types/tools/browser/attach.d.ts +34 -0
- package/dist/types/tools/browser/cmux/cmux-tab.d.ts +212 -0
- package/dist/types/tools/browser/cmux/rpc.d.ts +70 -0
- package/dist/types/tools/browser/cmux/socket-client.d.ts +19 -0
- package/dist/types/tools/browser/launch.d.ts +67 -0
- package/dist/types/tools/browser/readable.d.ts +17 -0
- package/dist/types/tools/browser/registry.d.ts +58 -0
- package/dist/types/tools/browser/render.d.ts +52 -0
- package/dist/types/tools/browser/run-cancellation.d.ts +4 -0
- package/dist/types/tools/browser/tab-protocol.d.ts +146 -0
- package/dist/types/tools/browser/tab-supervisor.d.ts +104 -0
- package/dist/types/tools/browser/tab-worker-entry.d.ts +1 -0
- package/dist/types/tools/browser/tab-worker.d.ts +56 -0
- package/dist/types/tools/browser.d.ts +96 -0
- package/dist/types/tools/builtin-names.d.ts +6 -0
- package/dist/types/tools/checkpoint.d.ts +72 -0
- package/dist/types/tools/conflict-detect.d.ts +221 -0
- package/dist/types/tools/context.d.ts +19 -0
- package/dist/types/tools/debug.d.ts +156 -0
- package/dist/types/tools/eval-backends.d.ts +15 -0
- package/dist/types/tools/eval-render.d.ts +58 -0
- package/dist/types/tools/eval.d.ts +66 -0
- package/dist/types/tools/fetch.d.ts +99 -0
- package/dist/types/tools/file-recorder.d.ts +13 -0
- package/dist/types/tools/fs-cache-invalidation.d.ts +15 -0
- package/dist/types/tools/gh-cache-invalidation.d.ts +6 -0
- package/dist/types/tools/gh-format.d.ts +6 -0
- package/dist/types/tools/gh-renderer.d.ts +25 -0
- package/dist/types/tools/gh.d.ts +331 -0
- package/dist/types/tools/github-cache.d.ts +123 -0
- package/dist/types/tools/glob.d.ts +94 -0
- package/dist/types/tools/grep.d.ts +98 -0
- package/dist/types/tools/grouped-file-output.d.ts +70 -0
- package/dist/types/tools/image-gen.d.ts +66 -0
- package/dist/types/tools/index.d.ts +373 -0
- package/dist/types/tools/inspect-image-renderer.d.ts +26 -0
- package/dist/types/tools/inspect-image.d.ts +32 -0
- package/dist/types/tools/irc.d.ts +112 -0
- package/dist/types/tools/job.d.ts +73 -0
- package/dist/types/tools/json-tree.d.ts +23 -0
- package/dist/types/tools/jtd-to-json-schema.d.ts +29 -0
- package/dist/types/tools/jtd-to-typescript.d.ts +26 -0
- package/dist/types/tools/jtd-utils.d.ts +42 -0
- package/dist/types/tools/learn.d.ts +44 -0
- package/dist/types/tools/list-limit.d.ts +12 -0
- package/dist/types/tools/manage-skill.d.ts +31 -0
- package/dist/types/tools/match-line-format.d.ts +11 -0
- package/dist/types/tools/memory-edit.d.ts +31 -0
- package/dist/types/tools/memory-recall.d.ts +23 -0
- package/dist/types/tools/memory-reflect.d.ts +25 -0
- package/dist/types/tools/memory-render.d.ts +63 -0
- package/dist/types/tools/memory-retain.d.ts +29 -0
- package/dist/types/tools/output-meta.d.ts +211 -0
- package/dist/types/tools/output-schema-validator.d.ts +77 -0
- package/dist/types/tools/path-utils.d.ts +260 -0
- package/dist/types/tools/plan-mode-guard.d.ts +41 -0
- package/dist/types/tools/read.d.ts +87 -0
- package/dist/types/tools/render-utils.d.ts +218 -0
- package/dist/types/tools/renderers.d.ts +45 -0
- package/dist/types/tools/report-tool-issue.d.ts +127 -0
- package/dist/types/tools/resolve.d.ts +94 -0
- package/dist/types/tools/review.d.ts +59 -0
- package/dist/types/tools/search-tool-bm25.d.ts +65 -0
- package/dist/types/tools/sqlite-reader.d.ts +114 -0
- package/dist/types/tools/ssh.d.ts +73 -0
- package/dist/types/tools/todo.d.ts +126 -0
- package/dist/types/tools/tool-errors.d.ts +33 -0
- package/dist/types/tools/tool-result.d.ts +34 -0
- package/dist/types/tools/tool-timeouts.d.ts +51 -0
- package/dist/types/tools/tts.d.ts +42 -0
- package/dist/types/tools/write.d.ts +66 -0
- package/dist/types/tools/yield.d.ts +39 -0
- package/dist/types/tts/downloader.d.ts +20 -0
- package/dist/types/tts/index.d.ts +8 -0
- package/dist/types/tts/models.d.ts +82 -0
- package/dist/types/tts/player.d.ts +32 -0
- package/dist/types/tts/runtime.d.ts +6 -0
- package/dist/types/tts/streaming-player.d.ts +41 -0
- package/dist/types/tts/tts-client.d.ts +68 -0
- package/dist/types/tts/tts-protocol.d.ts +95 -0
- package/dist/types/tts/tts-worker.d.ts +2 -0
- package/dist/types/tts/vocalizer.d.ts +41 -0
- package/dist/types/tts/wav.d.ts +8 -0
- package/dist/types/tui/code-cell.d.ts +47 -0
- package/dist/types/tui/file-list.d.ts +22 -0
- package/dist/types/tui/hyperlink.d.ts +61 -0
- package/dist/types/tui/index.d.ts +12 -0
- package/dist/types/tui/output-block.d.ts +59 -0
- package/dist/types/tui/status-line.d.ts +21 -0
- package/dist/types/tui/tree-list.d.ts +20 -0
- package/dist/types/tui/types.d.ts +13 -0
- package/dist/types/tui/utils.d.ts +36 -0
- package/dist/types/tui/width-aware-text.d.ts +23 -0
- package/dist/types/utils/active-repo-context.d.ts +8 -0
- package/dist/types/utils/block-context.d.ts +35 -0
- package/dist/types/utils/changelog.d.ts +33 -0
- package/dist/types/utils/clipboard.d.ts +37 -0
- package/dist/types/utils/command-args.d.ts +9 -0
- package/dist/types/utils/commit-message-generator.d.ts +7 -0
- package/dist/types/utils/edit-mode.d.ts +13 -0
- package/dist/types/utils/enhanced-paste.d.ts +20 -0
- package/dist/types/utils/event-bus.d.ts +6 -0
- package/dist/types/utils/external-editor.d.ts +27 -0
- package/dist/types/utils/file-display-mode.d.ts +27 -0
- package/dist/types/utils/file-mentions.d.ts +13 -0
- package/dist/types/utils/git.d.ts +453 -0
- package/dist/types/utils/image-loading.d.ts +67 -0
- package/dist/types/utils/image-resize.d.ts +42 -0
- package/dist/types/utils/image-vision-fallback.d.ts +28 -0
- package/dist/types/utils/ipc.d.ts +22 -0
- package/dist/types/utils/jj.d.ts +74 -0
- package/dist/types/utils/lang-from-path.d.ts +8 -0
- package/dist/types/utils/markit-cache.d.ts +23 -0
- package/dist/types/utils/markit.d.ts +20 -0
- package/dist/types/utils/mupdf-wasm-embed.d.ts +1 -0
- package/dist/types/utils/open.d.ts +2 -0
- package/dist/types/utils/prompt-path.d.ts +1 -0
- package/dist/types/utils/qrcode.d.ts +48 -0
- package/dist/types/utils/session-color.d.ts +27 -0
- package/dist/types/utils/shell-snapshot.d.ts +15 -0
- package/dist/types/utils/sixel.d.ts +21 -0
- package/dist/types/utils/thinking-display.d.ts +7 -0
- package/dist/types/utils/title-generator.d.ts +33 -0
- package/dist/types/utils/tool-choice.d.ts +15 -0
- package/dist/types/utils/tools-manager.d.ts +12 -0
- package/dist/types/utils/turndown.d.ts +15 -0
- package/dist/types/utils/zip.d.ts +119 -0
- package/dist/types/web/kagi.d.ts +99 -0
- package/dist/types/web/parallel.d.ts +67 -0
- package/dist/types/web/scrapers/artifacthub.d.ts +6 -0
- package/dist/types/web/scrapers/arxiv.d.ts +5 -0
- package/dist/types/web/scrapers/aur.d.ts +5 -0
- package/dist/types/web/scrapers/biorxiv.d.ts +5 -0
- package/dist/types/web/scrapers/bluesky.d.ts +5 -0
- package/dist/types/web/scrapers/brew.d.ts +5 -0
- package/dist/types/web/scrapers/cheatsh.d.ts +8 -0
- package/dist/types/web/scrapers/chocolatey.d.ts +5 -0
- package/dist/types/web/scrapers/choosealicense.d.ts +2 -0
- package/dist/types/web/scrapers/cisa-kev.d.ts +5 -0
- package/dist/types/web/scrapers/clojars.d.ts +5 -0
- package/dist/types/web/scrapers/coingecko.d.ts +5 -0
- package/dist/types/web/scrapers/crates-io.d.ts +5 -0
- package/dist/types/web/scrapers/crossref.d.ts +2 -0
- package/dist/types/web/scrapers/devto.d.ts +5 -0
- package/dist/types/web/scrapers/discogs.d.ts +8 -0
- package/dist/types/web/scrapers/discourse.d.ts +5 -0
- package/dist/types/web/scrapers/dockerhub.d.ts +5 -0
- package/dist/types/web/scrapers/docs-rs.d.ts +2 -0
- package/dist/types/web/scrapers/fdroid.d.ts +5 -0
- package/dist/types/web/scrapers/firefox-addons.d.ts +2 -0
- package/dist/types/web/scrapers/flathub.d.ts +2 -0
- package/dist/types/web/scrapers/github-gist.d.ts +5 -0
- package/dist/types/web/scrapers/github.d.ts +34 -0
- package/dist/types/web/scrapers/gitlab.d.ts +5 -0
- package/dist/types/web/scrapers/go-pkg.d.ts +5 -0
- package/dist/types/web/scrapers/hackage.d.ts +5 -0
- package/dist/types/web/scrapers/hackernews.d.ts +2 -0
- package/dist/types/web/scrapers/hex.d.ts +5 -0
- package/dist/types/web/scrapers/huggingface.d.ts +2 -0
- package/dist/types/web/scrapers/iacr.d.ts +5 -0
- package/dist/types/web/scrapers/index.d.ts +84 -0
- package/dist/types/web/scrapers/jetbrains-marketplace.d.ts +2 -0
- package/dist/types/web/scrapers/lemmy.d.ts +2 -0
- package/dist/types/web/scrapers/lobsters.d.ts +5 -0
- package/dist/types/web/scrapers/mastodon.d.ts +5 -0
- package/dist/types/web/scrapers/maven.d.ts +6 -0
- package/dist/types/web/scrapers/mdn.d.ts +2 -0
- package/dist/types/web/scrapers/metacpan.d.ts +5 -0
- package/dist/types/web/scrapers/musicbrainz.d.ts +5 -0
- package/dist/types/web/scrapers/npm.d.ts +5 -0
- package/dist/types/web/scrapers/nuget.d.ts +5 -0
- package/dist/types/web/scrapers/nvd.d.ts +5 -0
- package/dist/types/web/scrapers/ollama.d.ts +2 -0
- package/dist/types/web/scrapers/open-vsx.d.ts +5 -0
- package/dist/types/web/scrapers/opencorporates.d.ts +5 -0
- package/dist/types/web/scrapers/openlibrary.d.ts +5 -0
- package/dist/types/web/scrapers/orcid.d.ts +5 -0
- package/dist/types/web/scrapers/osv.d.ts +5 -0
- package/dist/types/web/scrapers/packagist.d.ts +5 -0
- package/dist/types/web/scrapers/pub-dev.d.ts +5 -0
- package/dist/types/web/scrapers/pubmed.d.ts +5 -0
- package/dist/types/web/scrapers/pypi.d.ts +5 -0
- package/dist/types/web/scrapers/rawg.d.ts +2 -0
- package/dist/types/web/scrapers/readthedocs.d.ts +5 -0
- package/dist/types/web/scrapers/reddit.d.ts +5 -0
- package/dist/types/web/scrapers/repology.d.ts +5 -0
- package/dist/types/web/scrapers/rfc.d.ts +5 -0
- package/dist/types/web/scrapers/rubygems.d.ts +5 -0
- package/dist/types/web/scrapers/searchcode.d.ts +2 -0
- package/dist/types/web/scrapers/sec-edgar.d.ts +5 -0
- package/dist/types/web/scrapers/semantic-scholar.d.ts +2 -0
- package/dist/types/web/scrapers/snapcraft.d.ts +2 -0
- package/dist/types/web/scrapers/sourcegraph.d.ts +2 -0
- package/dist/types/web/scrapers/spdx.d.ts +5 -0
- package/dist/types/web/scrapers/spotify.d.ts +8 -0
- package/dist/types/web/scrapers/stackoverflow.d.ts +6 -0
- package/dist/types/web/scrapers/terraform.d.ts +5 -0
- package/dist/types/web/scrapers/tldr.d.ts +7 -0
- package/dist/types/web/scrapers/twitter.d.ts +5 -0
- package/dist/types/web/scrapers/types.d.ts +90 -0
- package/dist/types/web/scrapers/utils.d.ts +26 -0
- package/dist/types/web/scrapers/vimeo.d.ts +5 -0
- package/dist/types/web/scrapers/vscode-marketplace.d.ts +5 -0
- package/dist/types/web/scrapers/w3c.d.ts +2 -0
- package/dist/types/web/scrapers/wikidata.d.ts +5 -0
- package/dist/types/web/scrapers/wikipedia.d.ts +5 -0
- package/dist/types/web/scrapers/youtube.d.ts +5 -0
- package/dist/types/web/search/index.d.ts +74 -0
- package/dist/types/web/search/provider.d.ts +30 -0
- package/dist/types/web/search/providers/anthropic.d.ts +33 -0
- package/dist/types/web/search/providers/base.d.ts +83 -0
- package/dist/types/web/search/providers/brave.d.ts +28 -0
- package/dist/types/web/search/providers/codex.d.ts +36 -0
- package/dist/types/web/search/providers/duckduckgo.d.ts +14 -0
- package/dist/types/web/search/providers/exa.d.ts +70 -0
- package/dist/types/web/search/providers/firecrawl.d.ts +28 -0
- package/dist/types/web/search/providers/gemini.d.ts +62 -0
- package/dist/types/web/search/providers/jina.d.ts +31 -0
- package/dist/types/web/search/providers/kagi.d.ts +30 -0
- package/dist/types/web/search/providers/kimi.d.ts +32 -0
- package/dist/types/web/search/providers/parallel.d.ts +16 -0
- package/dist/types/web/search/providers/perplexity-auth.d.ts +37 -0
- package/dist/types/web/search/providers/perplexity.d.ts +58 -0
- package/dist/types/web/search/providers/searxng.d.ts +45 -0
- package/dist/types/web/search/providers/synthetic.d.ts +25 -0
- package/dist/types/web/search/providers/tavily.d.ts +30 -0
- package/dist/types/web/search/providers/tinyfish.d.ts +29 -0
- package/dist/types/web/search/providers/utils.d.ts +52 -0
- package/dist/types/web/search/providers/xai.d.ts +13 -0
- package/dist/types/web/search/providers/zai.d.ts +29 -0
- package/dist/types/web/search/render.d.ts +34 -0
- package/dist/types/web/search/types.d.ts +431 -0
- package/dist/types/web/search/utils.d.ts +4 -0
- package/dist/types/workspace-tree.d.ts +42 -0
- package/package.json +39 -39
- package/src/autolearn/managed-skills.ts +1 -1
- package/src/autoresearch/storage.ts +1 -1
- package/src/capability/types.ts +2 -2
- package/src/cli/args.ts +1 -1
- package/src/cli/auth-broker-cli.ts +4 -4
- package/src/cli/auth-gateway-cli.ts +4 -4
- package/src/cli/claude-trace-cli.ts +1 -1
- package/src/cli/flag-tables.ts +1 -1
- package/src/cli/gallery-fixtures/misc.ts +7 -7
- package/src/cli/gallery-screenshot.ts +2 -2
- package/src/cli/grievances-cli.ts +1 -1
- package/src/cli/plugin-cli.ts +2 -2
- package/src/cli/profile-alias.ts +8 -8
- package/src/cli/read-cli.ts +1 -1
- package/src/cli/update-cli.ts +27 -27
- package/src/cli.ts +5 -5
- package/src/commands/auth-broker.ts +1 -1
- package/src/commands/dry-balance.ts +6 -6
- package/src/commands/launch.ts +1 -1
- package/src/commands/say.ts +1 -1
- package/src/commands/token.ts +5 -5
- package/src/commit/agentic/prompts/system.md +1 -1
- package/src/commit/cli.ts +1 -1
- package/src/commit/index.ts +1 -1
- package/src/commit/pipeline.ts +1 -1
- package/src/commit/types.ts +1 -1
- package/src/config/mcp-schema.json +5 -5
- package/src/config/models-config-schema.ts +1 -1
- package/src/config/settings-schema.ts +6 -6
- package/src/config/settings.ts +1 -1
- package/src/dap/session.ts +2 -2
- package/src/debug/protocol-probe.ts +1 -1
- package/src/debug/raw-sse-buffer.ts +3 -3
- package/src/debug/raw-sse.ts +2 -2
- package/src/discovery/helpers.ts +2 -2
- package/src/discovery/substitute-plugin-root.ts +3 -3
- package/src/eval/rb/runner.rb +6 -6
- package/src/extensibility/extensions/loader.ts +2 -2
- package/src/extensibility/plugins/loader.ts +13 -7
- package/src/extensibility/plugins/manager.ts +10 -9
- package/src/extensibility/plugins/types.ts +14 -3
- package/src/mcp/client.ts +1 -1
- package/src/mcp/manager.ts +1 -1
- package/src/mcp/oauth-flow.ts +1 -1
- package/src/mcp/timeout.ts +2 -2
- package/src/mcp/transports/http.ts +1 -1
- package/src/modes/controllers/mcp-command-controller.ts +2 -2
- package/src/modes/setup-wizard/index.ts +1 -1
- package/src/sdk.ts +1 -1
- package/src/session/agent-session.ts +1 -1
- package/src/session/auth-broker-config.ts +4 -4
- package/src/system-prompt.test.ts +14 -14
- package/src/tools/browser/tab-protocol.ts +1 -1
- package/src/tools/grep.ts +2 -2
- package/src/tools/read.ts +1 -1
- package/src/utils/image-loading.ts +4 -4
- package/src/utils/image-resize.ts +5 -5
- package/src/web/search/index.ts +1 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IrcBus - Process-global mailbox bus for agent-to-agent messaging.
|
|
3
|
+
*
|
|
4
|
+
* Replaces the old auto-reply model: a `send` never blocks on the recipient
|
|
5
|
+
* generating anything. Delivery resolves the recipient via the global
|
|
6
|
+
* AgentRegistry — parked agents are revived through the
|
|
7
|
+
* AgentLifecycleManager, idle agents are woken with a real turn, and busy
|
|
8
|
+
* agents receive the message as a non-interrupting aside at the next step
|
|
9
|
+
* boundary (see AgentSession.deliverIrcMessage). Replies are real turns by
|
|
10
|
+
* the recipient, observed via `wait` — with one exception: when the sender
|
|
11
|
+
* awaits a reply and the recipient is mid-turn with async execution
|
|
12
|
+
* disabled, the recipient session generates an ephemeral side-channel
|
|
13
|
+
* auto-reply (it may be blocked in a synchronous task spawn whose batch
|
|
14
|
+
* includes the sender, so a real turn could never happen in time).
|
|
15
|
+
*/
|
|
16
|
+
import { AgentLifecycleManager } from "../registry/agent-lifecycle";
|
|
17
|
+
import { AgentRegistry } from "../registry/agent-registry";
|
|
18
|
+
export interface IrcMessage {
|
|
19
|
+
id: string;
|
|
20
|
+
/** Sender agent id. */
|
|
21
|
+
from: string;
|
|
22
|
+
/** Recipient agent id (resolved; "all" is expanded by the tool, not stored). */
|
|
23
|
+
to: string;
|
|
24
|
+
body: string;
|
|
25
|
+
ts: number;
|
|
26
|
+
/** Message id being answered. */
|
|
27
|
+
replyTo?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface IrcDeliveryReceipt {
|
|
30
|
+
to: string;
|
|
31
|
+
outcome: "injected" | "woken" | "revived" | "failed";
|
|
32
|
+
error?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare class IrcBus {
|
|
35
|
+
#private;
|
|
36
|
+
static global(): IrcBus;
|
|
37
|
+
/** Reset the global bus. Test-only. */
|
|
38
|
+
static resetGlobalForTests(): void;
|
|
39
|
+
constructor(registry?: AgentRegistry, lifecycle?: AgentLifecycleManager);
|
|
40
|
+
/**
|
|
41
|
+
* Fire-and-forget delivery. Never blocks on the recipient generating
|
|
42
|
+
* anything: the receipt reports how the message reached the recipient
|
|
43
|
+
* (waiter/aside = "injected", idle wake = "woken", park revival =
|
|
44
|
+
* "revived"), not what they did with it.
|
|
45
|
+
*
|
|
46
|
+
* Mailbox semantics: a successfully delivered message never lingers in
|
|
47
|
+
* the recipient's mailbox — injection/wake puts the full body into their
|
|
48
|
+
* context, so buffering it too would double-deliver via a later
|
|
49
|
+
* `wait`/`inbox` and inflate unread counts. Only a failed live hand-off
|
|
50
|
+
* is buffered for the recipient to drain later.
|
|
51
|
+
*
|
|
52
|
+
* `opts.expectsReply` marks sends whose caller is blocked on an answer
|
|
53
|
+
* (`send await:true`). It is forwarded to the recipient session so a
|
|
54
|
+
* mid-turn recipient that cannot reach a step boundary (async execution
|
|
55
|
+
* disabled — e.g. blocked in a synchronous task spawn awaiting the
|
|
56
|
+
* sender's own batch) can generate an ephemeral side-channel auto-reply
|
|
57
|
+
* instead of stranding the sender until timeout.
|
|
58
|
+
*
|
|
59
|
+
* `opts.suppressRelay` skips the display-only main-UI relay for this leg.
|
|
60
|
+
* Set by broadcast fan-out when the same broadcast also targets the main
|
|
61
|
+
* agent directly: the main agent then already sees the body as its own
|
|
62
|
+
* incoming card, so relaying the sibling legs would duplicate it.
|
|
63
|
+
*/
|
|
64
|
+
send(msg: Omit<IrcMessage, "id" | "ts">, opts?: {
|
|
65
|
+
expectsReply?: boolean;
|
|
66
|
+
suppressRelay?: boolean;
|
|
67
|
+
}): Promise<IrcDeliveryReceipt>;
|
|
68
|
+
/**
|
|
69
|
+
* Block until a message for `agentId` (optionally from `filter.from`)
|
|
70
|
+
* arrives; consume + return it. Null on timeout (`timeoutMs <= 0` waits
|
|
71
|
+
* forever). Rejects when `signal` aborts. By default, already-buffered
|
|
72
|
+
* mail satisfies the wait before parking a future waiter; callers that
|
|
73
|
+
* need a strictly future reply can disable that drain.
|
|
74
|
+
*/
|
|
75
|
+
wait(agentId: string, filter: {
|
|
76
|
+
from?: string;
|
|
77
|
+
}, timeoutMs: number, signal?: AbortSignal, options?: {
|
|
78
|
+
drainPending?: boolean;
|
|
79
|
+
}): Promise<IrcMessage | null>;
|
|
80
|
+
/** Drain (or peek) pending messages for `agentId`. */
|
|
81
|
+
inbox(agentId: string, opts?: {
|
|
82
|
+
peek?: boolean;
|
|
83
|
+
}): IrcMessage[];
|
|
84
|
+
unreadCount(agentId: string): number;
|
|
85
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Content-Length message framing for the JSON byte streams spoken by the
|
|
3
|
+
* LSP and DAP stdio clients. Both protocols use the same base-protocol framing:
|
|
4
|
+
* each message is a `Content-Length: <n>\r\n\r\n` header block followed by `<n>`
|
|
5
|
+
* bytes of UTF-8 JSON. This module owns the incremental decode so the two
|
|
6
|
+
* clients don't each reimplement chunk accumulation, header scanning, and the
|
|
7
|
+
* mid-message remainder handoff.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Incremental Content-Length frame decoder for a JSON message byte stream.
|
|
11
|
+
*
|
|
12
|
+
* Incoming bytes are buffered as a list of chunks and only joined when a full
|
|
13
|
+
* message is framed — concatenating the accumulator on every read is O(n^2) for
|
|
14
|
+
* messages that span many reads (e.g. a large initial diagnostics burst). Feed
|
|
15
|
+
* raw chunks with {@link push}, pull every complete message with {@link drain},
|
|
16
|
+
* and persist {@link remainder} when the reader stops so a restarted reader
|
|
17
|
+
* resumes mid-message.
|
|
18
|
+
*/
|
|
19
|
+
export declare class MessageFramer {
|
|
20
|
+
#private;
|
|
21
|
+
/** Seed the buffer with any unparsed remainder left by a previous reader. */
|
|
22
|
+
constructor(seed: Buffer);
|
|
23
|
+
/** Append a freshly read chunk to the pending buffer. */
|
|
24
|
+
push(chunk: Buffer): void;
|
|
25
|
+
/**
|
|
26
|
+
* Yield the JSON text of every complete message currently buffered. A header
|
|
27
|
+
* block without a `Content-Length` is non-protocol noise (e.g. a server
|
|
28
|
+
* printing to stdout); `onResync` is invoked with the offending header text
|
|
29
|
+
* and the framer drops past the bogus terminator to recover instead of
|
|
30
|
+
* stalling on the same junk header forever.
|
|
31
|
+
*/
|
|
32
|
+
drain(onResync: (headerText: string) => void): Generator<string>;
|
|
33
|
+
/** The unparsed remainder, to persist when the reader stops. */
|
|
34
|
+
remainder(): Buffer;
|
|
35
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ModelRegistry } from "../config/model-registry";
|
|
2
|
+
interface XAICredentials {
|
|
3
|
+
provider: "xai-oauth" | "xai";
|
|
4
|
+
apiKey: string;
|
|
5
|
+
baseURL: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function ohMyPiXAIUserAgent(): string;
|
|
8
|
+
/**
|
|
9
|
+
* Resolve xAI credentials for HTTP tool calls.
|
|
10
|
+
*
|
|
11
|
+
* Credential priority:
|
|
12
|
+
* 1. xai-oauth — only when a *dedicated* xai-oauth source exists. Composed
|
|
13
|
+
* of two checks against the registry layer:
|
|
14
|
+
* a. `authStorage.hasNonEnvCredential("xai-oauth")` covers stored
|
|
15
|
+
* credentials (OAuth or api_key), runtime overrides (CLI
|
|
16
|
+
* `--api-key` for xai-oauth), config overrides (models.yml
|
|
17
|
+
* `providers.xai-oauth.apiKey`), and fallback resolvers.
|
|
18
|
+
* b. `$env.XAI_OAUTH_TOKEN` covers the xai-oauth-specific env var.
|
|
19
|
+
* `XAI_API_KEY` is intentionally NOT a signal here, even though the
|
|
20
|
+
* env-fallback map (`stream.ts: "xai-oauth"`) lets xai-oauth borrow it
|
|
21
|
+
* as a back-compat convenience: the borrow lets API-key-only setups
|
|
22
|
+
* satisfy the xai-oauth branch and then resolve baseUrl under
|
|
23
|
+
* xai-oauth instead of xai, silently bypassing `providers.xai.baseUrl`
|
|
24
|
+
* overrides for image/TTS traffic. The gate routes the borrow case to
|
|
25
|
+
* step 2 while preserving every dedicated xai-oauth path.
|
|
26
|
+
* 2. xai (plain API key). Delegates to ModelRegistry.getApiKeyForProvider
|
|
27
|
+
* which runs AuthStorage.getApiKey's full cascade: runtime override →
|
|
28
|
+
* models.yml config override → stored api_key credential → OAuth
|
|
29
|
+
* resolution → XAI_API_KEY env var → custom fallback resolver.
|
|
30
|
+
*
|
|
31
|
+
* baseURL: see `resolveXAIBaseURL` above. Resolved AFTER the credential
|
|
32
|
+
* decision so the scoped (provider, id) lookup is unambiguous. `modelId`
|
|
33
|
+
* is optional; probes / tool-availability checks pass `undefined` and fall
|
|
34
|
+
* through to env/default.
|
|
35
|
+
*
|
|
36
|
+
* Returns null when neither credential is available. Caller is responsible
|
|
37
|
+
* for surfacing an actionable error message in that case.
|
|
38
|
+
*/
|
|
39
|
+
export declare function resolveXAIHttpCredentials(modelRegistry: ModelRegistry, modelId?: string): Promise<XAICredentials | null>;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { LspClient, ServerConfig } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Configure the idle timeout for LSP clients.
|
|
4
|
+
* @param ms - Timeout in milliseconds, or null/undefined to disable
|
|
5
|
+
*/
|
|
6
|
+
export declare function setIdleTimeout(ms: number | null | undefined): void;
|
|
7
|
+
/** Timeout for warmup initialize requests (5 seconds) */
|
|
8
|
+
export declare const WARMUP_TIMEOUT_MS = 5000;
|
|
9
|
+
/**
|
|
10
|
+
* Get or create an LSP client for the given server configuration and working directory.
|
|
11
|
+
* @param config - Server configuration
|
|
12
|
+
* @param cwd - Working directory
|
|
13
|
+
* @param initTimeoutMs - Optional hard deadline for the initialize handshake (warmup / other
|
|
14
|
+
* short-lived callers). When set it takes precedence over `signal` inside `sendRequest`.
|
|
15
|
+
* @param signal - Optional caller abort signal. Threaded into the initialize `sendRequest`
|
|
16
|
+
* and the `initialized` notification so a wedged server surfaces the caller's
|
|
17
|
+
* timeout/cancel instead of falling back to the internal 30s default.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getOrCreateClient(config: ServerConfig, cwd: string, initTimeoutMs?: number, signal?: AbortSignal): Promise<LspClient>;
|
|
20
|
+
/**
|
|
21
|
+
* Ensure a file is opened in the LSP client.
|
|
22
|
+
* Sends didOpen notification if the file is not already tracked.
|
|
23
|
+
*/
|
|
24
|
+
export declare function ensureFileOpen(client: LspClient, filePath: string, signal?: AbortSignal): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Wait for the server's initial project loading to complete.
|
|
27
|
+
* Races the server's $/progress tracking against the abort signal.
|
|
28
|
+
* Returns immediately if loading already completed or timed out.
|
|
29
|
+
*/
|
|
30
|
+
export declare function waitForProjectLoaded(client: LspClient, signal?: AbortSignal): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Sync in-memory content to the LSP client without reading from disk.
|
|
33
|
+
* Use this to provide instant feedback during edits before the file is saved.
|
|
34
|
+
*/
|
|
35
|
+
export declare function syncContent(client: LspClient, filePath: string, content: string, signal?: AbortSignal): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Notify LSP that a file was saved.
|
|
38
|
+
* Assumes content was already synced via syncContent - just sends didSave.
|
|
39
|
+
*/
|
|
40
|
+
export declare function notifySaved(client: LspClient, filePath: string, signal?: AbortSignal): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Refresh a file in the LSP client.
|
|
43
|
+
* Increments version, sends didChange and didSave notifications.
|
|
44
|
+
*/
|
|
45
|
+
export declare function refreshFile(client: LspClient, filePath: string, signal?: AbortSignal): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Shutdown a specific client by key.
|
|
48
|
+
*/
|
|
49
|
+
export declare function shutdownClient(key: string): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* Send an LSP request and wait for response.
|
|
52
|
+
*
|
|
53
|
+
* Timeout policy:
|
|
54
|
+
* - If `timeoutMs` is explicitly provided, that value is used.
|
|
55
|
+
* - Else, if `signal` is provided, no internal timer is installed (the caller
|
|
56
|
+
* owns the deadline via the signal — typically a wall-clock `AbortSignal.timeout`
|
|
57
|
+
* from the LSP tool). Installing a second hard-coded 30s timer here used to
|
|
58
|
+
* cause "timed out after 30000ms" errors even when the caller had requested
|
|
59
|
+
* `timeout: 60`.
|
|
60
|
+
* - Else (no signal, no explicit timeout), fall back to `DEFAULT_REQUEST_TIMEOUT_MS`
|
|
61
|
+
* to avoid leaking pending requests forever.
|
|
62
|
+
*/
|
|
63
|
+
export declare function sendRequest(client: LspClient, method: string, params: unknown, signal?: AbortSignal, timeoutMs?: number): Promise<unknown>;
|
|
64
|
+
/**
|
|
65
|
+
* Send an LSP notification (no response expected).
|
|
66
|
+
* `signal` bounds the underlying `sink.flush()` — without it a server that
|
|
67
|
+
* stops draining stdin blocks every future write on the client's write queue.
|
|
68
|
+
*/
|
|
69
|
+
export declare function sendNotification(client: LspClient, method: string, params: unknown, signal?: AbortSignal): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Shutdown all LSP clients.
|
|
72
|
+
*/
|
|
73
|
+
export declare function shutdownAll(): Promise<void>;
|
|
74
|
+
/** Status of an LSP server */
|
|
75
|
+
export interface LspServerStatus {
|
|
76
|
+
name: string;
|
|
77
|
+
status: "connecting" | "ready" | "error";
|
|
78
|
+
fileTypes: string[];
|
|
79
|
+
error?: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get status of all active LSP clients.
|
|
83
|
+
*/
|
|
84
|
+
export declare function getActiveClients(): LspServerStatus[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Diagnostic, LinterClient, ServerConfig } from "../../lsp/types";
|
|
2
|
+
/**
|
|
3
|
+
* Biome CLI-based linter client.
|
|
4
|
+
* Parses Biome's --reporter=json output into LSP Diagnostic format.
|
|
5
|
+
*/
|
|
6
|
+
export declare class BiomeClient implements LinterClient {
|
|
7
|
+
#private;
|
|
8
|
+
private readonly config;
|
|
9
|
+
private readonly cwd;
|
|
10
|
+
/** Factory method for creating BiomeClient instances */
|
|
11
|
+
static create(config: ServerConfig, cwd: string): LinterClient;
|
|
12
|
+
constructor(config: ServerConfig, cwd: string);
|
|
13
|
+
format(filePath: string, content: string): Promise<string>;
|
|
14
|
+
lint(filePath: string): Promise<Diagnostic[]>;
|
|
15
|
+
dispose(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { LinterClient, ServerConfig } from "../../lsp/types";
|
|
2
|
+
/**
|
|
3
|
+
* Linter client implementations.
|
|
4
|
+
*
|
|
5
|
+
* The LinterClient interface provides a common API for formatters and linters.
|
|
6
|
+
* Different implementations can use LSP protocol, CLI tools, or other mechanisms.
|
|
7
|
+
*/
|
|
8
|
+
export { BiomeClient } from "./biome-client";
|
|
9
|
+
export { LspLinterClient } from "./lsp-linter-client";
|
|
10
|
+
export { SwiftLintClient } from "./swiftlint-client";
|
|
11
|
+
/**
|
|
12
|
+
* Get or create a linter client for a server configuration.
|
|
13
|
+
* Uses the server's custom factory if provided, otherwise falls back to LSP.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getLinterClient(serverName: string, config: ServerConfig, cwd: string): LinterClient;
|
|
16
|
+
/**
|
|
17
|
+
* Clear all cached linter clients.
|
|
18
|
+
*/
|
|
19
|
+
export declare function clearLinterClientCache(): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Diagnostic, LinterClient, ServerConfig } from "../../lsp/types";
|
|
2
|
+
/**
|
|
3
|
+
* LSP-based linter client implementation.
|
|
4
|
+
* Wraps the existing LSP client infrastructure.
|
|
5
|
+
*/
|
|
6
|
+
export declare class LspLinterClient implements LinterClient {
|
|
7
|
+
#private;
|
|
8
|
+
private readonly config;
|
|
9
|
+
private readonly cwd;
|
|
10
|
+
/** Factory method for creating LspLinterClient instances */
|
|
11
|
+
static create(config: ServerConfig, cwd: string): LinterClient;
|
|
12
|
+
constructor(config: ServerConfig, cwd: string);
|
|
13
|
+
format(filePath: string, content: string): Promise<string>;
|
|
14
|
+
lint(filePath: string): Promise<Diagnostic[]>;
|
|
15
|
+
dispose(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SwiftLint CLI-based linter client.
|
|
3
|
+
* Parses SwiftLint's JSON reporter output into LSP Diagnostic format.
|
|
4
|
+
*/
|
|
5
|
+
import type { Diagnostic, LinterClient, ServerConfig } from "../../lsp/types";
|
|
6
|
+
/**
|
|
7
|
+
* SwiftLint CLI-based linter client.
|
|
8
|
+
* Runs `swiftlint lint --reporter json` and converts violations to LSP diagnostics.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SwiftLintClient implements LinterClient {
|
|
11
|
+
#private;
|
|
12
|
+
private readonly config;
|
|
13
|
+
private readonly cwd;
|
|
14
|
+
/** Factory method for creating SwiftLintClient instances */
|
|
15
|
+
static create(config: ServerConfig, cwd: string): LinterClient;
|
|
16
|
+
constructor(config: ServerConfig, cwd: string);
|
|
17
|
+
format(_filePath: string, content: string): Promise<string>;
|
|
18
|
+
lint(filePath: string): Promise<Diagnostic[]>;
|
|
19
|
+
dispose(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { ServerConfig } from "./types";
|
|
2
|
+
export interface LspConfig {
|
|
3
|
+
servers: Record<string, ServerConfig>;
|
|
4
|
+
/** Idle timeout in milliseconds. If set, LSP clients will be shutdown after this period of inactivity. Disabled by default. */
|
|
5
|
+
idleTimeoutMs?: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Check if any root marker file exists in the directory
|
|
9
|
+
*/
|
|
10
|
+
export declare function hasRootMarkers(cwd: string, markers: string[]): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Resolve a command to an executable path.
|
|
13
|
+
* Checks project-local bin directories first, then falls back to $PATH.
|
|
14
|
+
*
|
|
15
|
+
* @param command - The command name (e.g., "typescript-language-server")
|
|
16
|
+
* @param cwd - Working directory to search from
|
|
17
|
+
* @returns Absolute path to the executable, or null if not found
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveCommand(command: string, cwd: string): string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Load LSP configuration.
|
|
22
|
+
*
|
|
23
|
+
* Priority (highest to lowest):
|
|
24
|
+
* 1. Project root: lsp.json/.lsp.json/lsp.yml/.lsp.yml/lsp.yaml/.lsp.yaml
|
|
25
|
+
* 2. Project config dirs: .jeopi/lsp.*, .pi/lsp.*, .claude/lsp.* (+ hidden variants)
|
|
26
|
+
* 3. User config dirs: ~/.jeopi/agent/lsp.*, ~/.pi/agent/lsp.*, ~/.claude/lsp.* (+ hidden variants)
|
|
27
|
+
* 4. User home root: ~/lsp.*, ~/.lsp.*
|
|
28
|
+
* 5. Auto-detect from project markers + available binaries
|
|
29
|
+
*
|
|
30
|
+
* Config files are merged from lowest to highest priority; later files override earlier settings.
|
|
31
|
+
*
|
|
32
|
+
* Config file format (JSON or YAML):
|
|
33
|
+
* ```json
|
|
34
|
+
* {
|
|
35
|
+
* "servers": {
|
|
36
|
+
* "typescript-language-server": {
|
|
37
|
+
* "command": "typescript-language-server",
|
|
38
|
+
* "args": ["--stdio", "--log-level", "4"],
|
|
39
|
+
* "disabled": false
|
|
40
|
+
* },
|
|
41
|
+
* "my-custom-server": {
|
|
42
|
+
* "command": "/path/to/server",
|
|
43
|
+
* "args": ["--stdio"],
|
|
44
|
+
* "fileTypes": [".xyz"],
|
|
45
|
+
* "rootMarkers": [".xyz-project"]
|
|
46
|
+
* }
|
|
47
|
+
* }
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function loadConfig(cwd: string): LspConfig;
|
|
52
|
+
/**
|
|
53
|
+
* Find all servers that can handle a file based on extension.
|
|
54
|
+
* Returns servers sorted with primary (non-linter) servers first.
|
|
55
|
+
*/
|
|
56
|
+
export declare function getServersForFile(config: LspConfig, filePath: string): Array<[string, ServerConfig]>;
|
|
57
|
+
/**
|
|
58
|
+
* Find the primary server for a file (prefers type-checkers over linters).
|
|
59
|
+
* Used for operations like definition, hover, references that need type intelligence.
|
|
60
|
+
*/
|
|
61
|
+
export declare function getServerForFile(config: LspConfig, filePath: string): [string, ServerConfig] | null;
|
|
62
|
+
/**
|
|
63
|
+
* Check if a server has a specific capability
|
|
64
|
+
*/
|
|
65
|
+
export declare function hasCapability(config: ServerConfig, capability: keyof NonNullable<ServerConfig["capabilities"]>): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FileDiagnosticsResult } from "./index";
|
|
2
|
+
export declare function diagnosticIdentity(message: string): string;
|
|
3
|
+
export declare class DiagnosticsLedger {
|
|
4
|
+
#private;
|
|
5
|
+
reduce(absPath: string, result: FileDiagnosticsResult): FileDiagnosticsResult;
|
|
6
|
+
}
|
|
7
|
+
export interface DiagnosticsLedgerOwner {
|
|
8
|
+
diagnosticsLedger?: DiagnosticsLedger;
|
|
9
|
+
}
|
|
10
|
+
export declare function getDiagnosticsLedger(owner: DiagnosticsLedgerOwner): DiagnosticsLedger;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Range, TextEdit, WorkspaceEdit } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Apply text edits to a string in-memory.
|
|
4
|
+
* Edits are applied in reverse order (bottom-to-top) to preserve line/character indices.
|
|
5
|
+
*/
|
|
6
|
+
export declare function applyTextEditsToString(content: string, edits: TextEdit[]): string;
|
|
7
|
+
/** True when two ranges overlap (share any position other than a touching boundary). */
|
|
8
|
+
export declare function rangesOverlap(a: Range, b: Range): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Sort edits bottom-to-top for in-place application and reject overlaps.
|
|
11
|
+
* Equal start positions tiebreak by original array index descending so that,
|
|
12
|
+
* applied bottom-up, inserts at the same position land in array order
|
|
13
|
+
* (LSP spec: the order of edits in the array defines the order in the result).
|
|
14
|
+
*/
|
|
15
|
+
export declare function sortAndValidateTextEdits(edits: TextEdit[]): TextEdit[];
|
|
16
|
+
/**
|
|
17
|
+
* Flatten a WorkspaceEdit's text edits into a Map<uri, TextEdit[]>.
|
|
18
|
+
* Resource operations (create/rename/delete) are ignored — callers handle them separately.
|
|
19
|
+
*/
|
|
20
|
+
export declare function flattenWorkspaceTextEdits(edit: WorkspaceEdit): Map<string, TextEdit[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Apply text edits to a file.
|
|
23
|
+
* Edits are applied in reverse order (bottom-to-top) to preserve line/character indices.
|
|
24
|
+
*/
|
|
25
|
+
export declare function applyTextEdits(filePath: string, edits: TextEdit[]): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Apply a workspace edit (collection of file changes).
|
|
28
|
+
* All text-edit batches are overlap-validated before anything is written so a
|
|
29
|
+
* conflict throws without leaving the workspace half-applied.
|
|
30
|
+
* Returns array of applied change descriptions.
|
|
31
|
+
*/
|
|
32
|
+
export declare function applyWorkspaceEdit(edit: WorkspaceEdit, cwd: string): Promise<string[]>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** Subset of the LSP `FormattingOptions` we send. */
|
|
2
|
+
export interface LspFormattingOptions {
|
|
3
|
+
tabSize: number;
|
|
4
|
+
insertSpaces: boolean;
|
|
5
|
+
trimTrailingWhitespace: boolean;
|
|
6
|
+
insertFinalNewline: boolean;
|
|
7
|
+
trimFinalNewlines: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface DetectedIndent {
|
|
10
|
+
tabSize?: number;
|
|
11
|
+
insertSpaces?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Sniff `insertSpaces` and the indent unit from `content`.
|
|
15
|
+
*
|
|
16
|
+
* Walks the buffer once: the first indented line decides spaces vs tabs; for
|
|
17
|
+
* space indents, the GCD of all space-indent widths gives the stride (so a
|
|
18
|
+
* 2/4/6 file reports `2`, a 4/8 file reports `4`). Returns `undefined` for any
|
|
19
|
+
* field the content does not pin so a higher-precedence override (editorconfig)
|
|
20
|
+
* can win without being overwritten by sniffing noise.
|
|
21
|
+
*/
|
|
22
|
+
export declare function detectIndentFromContent(content: string): DetectedIndent;
|
|
23
|
+
/**
|
|
24
|
+
* Resolve the `FormattingOptions` payload for a `textDocument/formatting` request
|
|
25
|
+
* targeting `filePath` with `content`.
|
|
26
|
+
*
|
|
27
|
+
* The two fields that actually affect on-disk bytes (`tabSize`, `insertSpaces`)
|
|
28
|
+
* are layered: editorconfig wins, then content sniffing, then the fallback.
|
|
29
|
+
* Trim/final-newline flags are static.
|
|
30
|
+
*/
|
|
31
|
+
export declare function resolveFormatOptions(filePath: string, content: string): LspFormattingOptions;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { BunFile } from "bun";
|
|
2
|
+
import type { AgentTool, AgentToolContext, AgentToolResult, AgentToolUpdateCallback, ToolApprovalDecision } from "jeopi-agent-core";
|
|
3
|
+
import { type Theme } from "../modes/theme/theme";
|
|
4
|
+
import type { ToolSession } from "../tools";
|
|
5
|
+
import { type LspServerStatus } from "./client";
|
|
6
|
+
import { type LspParams, type LspToolDetails, lspSchema } from "./types";
|
|
7
|
+
export type { LspServerStatus } from "./client";
|
|
8
|
+
export type { LspToolDetails } from "./types";
|
|
9
|
+
/**
|
|
10
|
+
* LSP actions that do not mutate the workspace or language-server state.
|
|
11
|
+
* Anything not in this set (rename, code_actions with apply, rename_file,
|
|
12
|
+
* reload, raw request, etc.) is classified as write-tier.
|
|
13
|
+
*/
|
|
14
|
+
export declare const LSP_READONLY_ACTIONS: ReadonlySet<string>;
|
|
15
|
+
export interface LspStartupServerInfo {
|
|
16
|
+
name: string;
|
|
17
|
+
status: "connecting" | "ready" | "error" | "available";
|
|
18
|
+
fileTypes: string[];
|
|
19
|
+
error?: string;
|
|
20
|
+
}
|
|
21
|
+
/** Result from warming up LSP servers */
|
|
22
|
+
export interface LspWarmupResult {
|
|
23
|
+
servers: Array<LspStartupServerInfo & {
|
|
24
|
+
status: "ready" | "error";
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
27
|
+
/** Options for warming up LSP servers */
|
|
28
|
+
export interface LspWarmupOptions {
|
|
29
|
+
/** Called when starting to connect to servers */
|
|
30
|
+
onConnecting?: (serverNames: string[]) => void;
|
|
31
|
+
}
|
|
32
|
+
export declare function discoverStartupLspServers(cwd: string, status?: LspStartupServerInfo["status"]): LspStartupServerInfo[];
|
|
33
|
+
/**
|
|
34
|
+
* Warm up LSP servers for a directory by connecting to all detected servers.
|
|
35
|
+
* This should be called at startup to avoid cold-start delays.
|
|
36
|
+
*
|
|
37
|
+
* @param cwd - Working directory to detect and start servers for
|
|
38
|
+
* @param options - Optional callbacks for progress reporting
|
|
39
|
+
* @returns Status of each server that was started
|
|
40
|
+
*/
|
|
41
|
+
export declare function warmupLspServers(cwd: string, options?: LspWarmupOptions): Promise<LspWarmupResult>;
|
|
42
|
+
/**
|
|
43
|
+
* Get status of currently active LSP servers.
|
|
44
|
+
*/
|
|
45
|
+
export declare function getLspStatus(): LspServerStatus[];
|
|
46
|
+
/** Result from getDiagnosticsForFile */
|
|
47
|
+
export interface FileDiagnosticsResult {
|
|
48
|
+
/** Name of the LSP server used (if available) */
|
|
49
|
+
server?: string;
|
|
50
|
+
/** Formatted diagnostic messages */
|
|
51
|
+
messages: string[];
|
|
52
|
+
/** Summary string (e.g., "2 error(s), 1 warning(s)") */
|
|
53
|
+
summary: string;
|
|
54
|
+
/** Whether there are any errors (severity 1) */
|
|
55
|
+
errored: boolean;
|
|
56
|
+
/** Whether the file was formatted */
|
|
57
|
+
formatter?: FileFormatResult;
|
|
58
|
+
}
|
|
59
|
+
export declare enum FileFormatResult {
|
|
60
|
+
UNCHANGED = "unchanged",
|
|
61
|
+
FORMATTED = "formatted"
|
|
62
|
+
}
|
|
63
|
+
/** Options for creating the LSP writethrough callback */
|
|
64
|
+
export interface WritethroughOptions {
|
|
65
|
+
/** Whether to format the file using LSP after writing */
|
|
66
|
+
enableFormat?: boolean;
|
|
67
|
+
/** Whether to get LSP diagnostics after writing */
|
|
68
|
+
enableDiagnostics?: boolean;
|
|
69
|
+
/** Called when diagnostics arrive after the main timeout. */
|
|
70
|
+
onDeferredDiagnostics?: (diagnostics: FileDiagnosticsResult) => void;
|
|
71
|
+
/** Signal to cancel a pending deferred diagnostics fetch. */
|
|
72
|
+
deferredSignal?: AbortSignal;
|
|
73
|
+
/** Transform diagnostics before surfacing them after a successful fetch. */
|
|
74
|
+
transformDiagnostics?: (absPath: string, result: FileDiagnosticsResult) => FileDiagnosticsResult;
|
|
75
|
+
}
|
|
76
|
+
/** Per-file deferred LSP diagnostics wiring for {@link WritethroughCallback}. */
|
|
77
|
+
export type WritethroughDeferredHandle = {
|
|
78
|
+
onDeferredDiagnostics: (diagnostics: FileDiagnosticsResult) => void;
|
|
79
|
+
signal: AbortSignal;
|
|
80
|
+
finalize: (diagnostics: FileDiagnosticsResult | undefined) => void;
|
|
81
|
+
};
|
|
82
|
+
/** Callback type for the LSP writethrough */
|
|
83
|
+
export type WritethroughCallback = (dst: string, content: string, signal?: AbortSignal, file?: BunFile, batch?: LspWritethroughBatchRequest, getDeferred?: (dst: string) => WritethroughDeferredHandle | undefined) => Promise<FileDiagnosticsResult | undefined>;
|
|
84
|
+
/** No-op writethrough callback */
|
|
85
|
+
export declare function writethroughNoop(dst: string, content: string, _signal?: AbortSignal, file?: BunFile, _batch?: LspWritethroughBatchRequest, _getDeferred?: (dst: string) => WritethroughDeferredHandle | undefined): Promise<FileDiagnosticsResult | undefined>;
|
|
86
|
+
interface LspWritethroughBatchRequest {
|
|
87
|
+
id: string;
|
|
88
|
+
flush: boolean;
|
|
89
|
+
}
|
|
90
|
+
export declare function flushLspWritethroughBatch(id: string, cwd: string, signal?: AbortSignal): Promise<FileDiagnosticsResult | undefined>;
|
|
91
|
+
/** Create a writethrough callback for LSP aware write operations */
|
|
92
|
+
export declare function createLspWritethrough(cwd: string, options?: WritethroughOptions): WritethroughCallback;
|
|
93
|
+
/**
|
|
94
|
+
* LSP tool for language server protocol operations.
|
|
95
|
+
*/
|
|
96
|
+
export declare class LspTool implements AgentTool<typeof lspSchema, LspToolDetails, Theme> {
|
|
97
|
+
private readonly session;
|
|
98
|
+
readonly name = "lsp";
|
|
99
|
+
readonly approval: (args: unknown) => ToolApprovalDecision;
|
|
100
|
+
readonly formatApprovalDetails: (args: unknown) => string[];
|
|
101
|
+
readonly label = "LSP";
|
|
102
|
+
readonly loadMode = "discoverable";
|
|
103
|
+
readonly summary = "Query LSP (language server) for diagnostics, hover info, and references";
|
|
104
|
+
readonly description: string;
|
|
105
|
+
readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
106
|
+
action: "capabilities" | "code_actions" | "definition" | "diagnostics" | "hover" | "implementation" | "references" | "reload" | "rename" | "rename_file" | "request" | "status" | "symbols" | "type_definition";
|
|
107
|
+
file?: string | undefined;
|
|
108
|
+
line?: number | undefined;
|
|
109
|
+
symbol?: string | undefined;
|
|
110
|
+
query?: string | undefined;
|
|
111
|
+
new_name?: string | undefined;
|
|
112
|
+
apply?: boolean | undefined;
|
|
113
|
+
timeout?: number | undefined;
|
|
114
|
+
payload?: string | undefined;
|
|
115
|
+
}, {}>;
|
|
116
|
+
readonly strict = true;
|
|
117
|
+
constructor(session: ToolSession);
|
|
118
|
+
static createIf(session: ToolSession): LspTool | null;
|
|
119
|
+
execute(_toolCallId: string, params: LspParams, signal?: AbortSignal, _onUpdate?: AgentToolUpdateCallback<LspToolDetails>, _context?: AgentToolContext): Promise<AgentToolResult<LspToolDetails>>;
|
|
120
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lspmux integration for LSP server multiplexing.
|
|
3
|
+
*
|
|
4
|
+
* When lspmux is available and running, this module wraps supported LSP server
|
|
5
|
+
* commands to use lspmux client mode, enabling server instance sharing across
|
|
6
|
+
* multiple editor windows.
|
|
7
|
+
*
|
|
8
|
+
* Integration is transparent: if lspmux is unavailable, falls back to direct spawning.
|
|
9
|
+
*/
|
|
10
|
+
interface LspmuxConfig {
|
|
11
|
+
instance_timeout?: number;
|
|
12
|
+
gc_interval?: number;
|
|
13
|
+
listen?: [string, number] | string;
|
|
14
|
+
connect?: [string, number] | string;
|
|
15
|
+
log_filters?: string;
|
|
16
|
+
pass_environment?: string[];
|
|
17
|
+
}
|
|
18
|
+
interface LspmuxState {
|
|
19
|
+
available: boolean;
|
|
20
|
+
running: boolean;
|
|
21
|
+
binaryPath: string | null;
|
|
22
|
+
config: LspmuxConfig | null;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Detect lspmux availability and state.
|
|
26
|
+
* Results are cached for STATE_CACHE_TTL_MS.
|
|
27
|
+
*
|
|
28
|
+
* Set PI_DISABLE_LSPMUX=1 to disable.
|
|
29
|
+
*/
|
|
30
|
+
export declare function detectLspmux(): Promise<LspmuxState>;
|
|
31
|
+
/**
|
|
32
|
+
* Check if a server command is supported by lspmux.
|
|
33
|
+
*/
|
|
34
|
+
export declare function isLspmuxSupported(command: string): boolean;
|
|
35
|
+
export interface LspmuxWrappedCommand {
|
|
36
|
+
command: string;
|
|
37
|
+
args: string[];
|
|
38
|
+
env?: Record<string, string>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Wrap a server command to use lspmux client mode.
|
|
42
|
+
*
|
|
43
|
+
* @param originalCommand - The original LSP server command (e.g., "rust-analyzer")
|
|
44
|
+
* @param originalArgs - Original command arguments
|
|
45
|
+
* @param state - lspmux state from detectLspmux()
|
|
46
|
+
* @returns Wrapped command, args, and env vars; or original if lspmux unavailable
|
|
47
|
+
*/
|
|
48
|
+
export declare function wrapWithLspmux(originalCommand: string, originalArgs: string[] | undefined, state: LspmuxState): LspmuxWrappedCommand;
|
|
49
|
+
/**
|
|
50
|
+
* Get lspmux-wrapped command if available, otherwise return original.
|
|
51
|
+
* This is the main entry point for config.ts integration.
|
|
52
|
+
*
|
|
53
|
+
* @param command - Original LSP server command
|
|
54
|
+
* @param args - Original command arguments
|
|
55
|
+
* @returns Command and args to use (possibly wrapped with lspmux)
|
|
56
|
+
*/
|
|
57
|
+
export declare function getLspmuxCommand(command: string, args?: string[]): Promise<LspmuxWrappedCommand>;
|
|
58
|
+
export {};
|