jeopi-cli 16.2.14 → 16.2.17
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 +28 -0
- package/dist/cli.js +2562 -2561
- 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 +161 -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 +6 -2
- package/src/extensibility/plugins/installer.ts +2 -2
- package/src/extensibility/plugins/legacy-pi-bundled-keys.ts +3 -0
- package/src/extensibility/plugins/legacy-pi-bundled-registry.ts +11 -0
- package/src/extensibility/plugins/loader.ts +14 -7
- package/src/extensibility/plugins/manager.ts +13 -10
- package/src/extensibility/plugins/types.ts +16 -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 +15 -15
- 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,105 @@
|
|
|
1
|
+
/** Result from running the installed binary and parsing its reported version. */
|
|
2
|
+
export interface InstalledVersionVerification {
|
|
3
|
+
ok: boolean;
|
|
4
|
+
actual?: string;
|
|
5
|
+
path?: string;
|
|
6
|
+
}
|
|
7
|
+
/** Paths and verifier used while replacing a downloaded binary update. */
|
|
8
|
+
export interface BinaryReplacementOptions {
|
|
9
|
+
targetPath: string;
|
|
10
|
+
tempPath: string;
|
|
11
|
+
backupPath: string;
|
|
12
|
+
expectedVersion: string;
|
|
13
|
+
verifyInstalledVersion: (expectedVersion: string) => Promise<InstalledVersionVerification>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Parse update subcommand arguments.
|
|
17
|
+
* Returns undefined if not an update command.
|
|
18
|
+
*/
|
|
19
|
+
export declare function parseUpdateArgs(args: string[]): {
|
|
20
|
+
force: boolean;
|
|
21
|
+
check: boolean;
|
|
22
|
+
} | undefined;
|
|
23
|
+
type UpdateMethod = "brew" | "mise" | "bun" | "binary";
|
|
24
|
+
interface UpdateMethodResolutionOptions {
|
|
25
|
+
homebrewPrefix?: string;
|
|
26
|
+
miseBinDirs?: readonly string[];
|
|
27
|
+
miseDataDir?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function resolveUpdateMethodForTest(jeopiPath: string, bunBinDir: string | undefined, options?: UpdateMethodResolutionOptions): UpdateMethod;
|
|
30
|
+
interface BunInstallCachePruneResult {
|
|
31
|
+
scannedPackages: number;
|
|
32
|
+
removedEntries: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Prune Bun's package cache so each package keeps only its newest cached version.
|
|
36
|
+
*
|
|
37
|
+
* Bun stores package cache entries as both a package marker directory
|
|
38
|
+
* (`react/19.2.6@@@1`) and a materialized package directory
|
|
39
|
+
* (`react@19.2.6@@@1`). Global `jeopi` updates can leave one full copy per
|
|
40
|
+
* release. The marker and materialized entries are removed together so the
|
|
41
|
+
* cache stays internally consistent.
|
|
42
|
+
*/
|
|
43
|
+
export declare function pruneBunInstallCache(cacheDir: string, packageNames?: Set<string>): Promise<BunInstallCachePruneResult>;
|
|
44
|
+
export declare function resolveBunGlobalNodeModulesDirFromLocations(globalBinDir: string | undefined, cacheDir: string | undefined): string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Best-effort removal of binary-update backups left by earlier runs.
|
|
47
|
+
*
|
|
48
|
+
* Each self-update moves the previous executable to `<binary>.<timestamp>.<pid>.bak`
|
|
49
|
+
* before swapping the new one in. On Windows that backup cannot be deleted
|
|
50
|
+
* while the updating process is alive, so it is left for a later run to reclaim
|
|
51
|
+
* once its owning process has exited. Also matches the legacy fixed
|
|
52
|
+
* `<binary>.bak` name produced before backups were timestamped, so users
|
|
53
|
+
* upgrading from a buggy release get the orphaned file cleaned up.
|
|
54
|
+
*/
|
|
55
|
+
export declare function sweepStaleBackups(targetPath: string): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Atomically replace the installed binary and roll back if version verification fails.
|
|
58
|
+
*/
|
|
59
|
+
export declare function replaceBinaryForUpdate(options: BinaryReplacementOptions): Promise<InstalledVersionVerification>;
|
|
60
|
+
/**
|
|
61
|
+
* Build the bun argv used to globally install a specific jeopi version.
|
|
62
|
+
*
|
|
63
|
+
* The version is selected by hitting {@link NPM_REGISTRY} directly in
|
|
64
|
+
* {@link getLatestRelease}, so the install MUST observe the same catalog:
|
|
65
|
+
*
|
|
66
|
+
* - `--registry=${NPM_REGISTRY}` pins the install to the official registry
|
|
67
|
+
* regardless of the user's bunfig/`.npmrc`. A mirror (corporate proxy,
|
|
68
|
+
* Taobao, …) that hasn't yet replicated the release would otherwise reject
|
|
69
|
+
* a version the upstream registry already advertises.
|
|
70
|
+
* - `--no-cache` tells bun to ignore its on-disk manifest snapshot so it
|
|
71
|
+
* re-fetches metadata from that registry on every invocation.
|
|
72
|
+
*
|
|
73
|
+
* Together these two flags make `jeopi update` produce exactly the registry
|
|
74
|
+
* lookup the version check just performed. See #1686.
|
|
75
|
+
*
|
|
76
|
+
* Also pins {@link NATIVES_PACKAGE} and the platform-specific
|
|
77
|
+
* `jeopi-natives-<tag>` leaf to `expectedVersion`. `bun install -g`
|
|
78
|
+
* does not reliably refresh transitive `optionalDependencies` when the
|
|
79
|
+
* top-level package is the only one bumped, so the native addon and its
|
|
80
|
+
* version sentinel can drift out of sync with the freshly installed
|
|
81
|
+
* `jeopi` and the loader aborts at
|
|
82
|
+
* `validateLoadedBindings` on the next launch
|
|
83
|
+
* (`The .node file on disk is from a different release than this loader`).
|
|
84
|
+
* Listing the natives explicitly forces bun to replace them in lock-step.
|
|
85
|
+
* The leaf is added only on tags the release pipeline actually publishes
|
|
86
|
+
* ({@link SUPPORTED_NATIVE_TAGS}) so unsupported platforms still fail with
|
|
87
|
+
* the original "no matching version" message instead of `EBADPLATFORM`.
|
|
88
|
+
* See #1824.
|
|
89
|
+
*/
|
|
90
|
+
export declare function buildBunInstallArgs(expectedVersion: string, nativeTag?: string): string[];
|
|
91
|
+
export declare function buildHomebrewUpdateArgs(force: boolean): string[];
|
|
92
|
+
export declare function buildMiseUpgradeArgs(): string[];
|
|
93
|
+
export declare function buildMiseForceInstallArgs(expectedVersion: string): string[];
|
|
94
|
+
/**
|
|
95
|
+
* Run the update command.
|
|
96
|
+
*/
|
|
97
|
+
export declare function runUpdateCommand(opts: {
|
|
98
|
+
force: boolean;
|
|
99
|
+
check: boolean;
|
|
100
|
+
}): Promise<void>;
|
|
101
|
+
/**
|
|
102
|
+
* Print update command help.
|
|
103
|
+
*/
|
|
104
|
+
export declare function printUpdateHelp(): void;
|
|
105
|
+
export {};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Usage CLI command handler.
|
|
3
|
+
*
|
|
4
|
+
* Handles `jeopi usage` — fetches provider usage reports for every
|
|
5
|
+
* authenticated account and prints a detailed per-account breakdown
|
|
6
|
+
* (limits, windows, reset times, plan metadata). Accounts whose
|
|
7
|
+
* credentials produced no usage report are listed too, so the output
|
|
8
|
+
* always covers the full credential pool.
|
|
9
|
+
*/
|
|
10
|
+
import { type UsageHistoryEntry, type UsageReport } from "jeopi-ai";
|
|
11
|
+
export interface UsageCommandArgs {
|
|
12
|
+
json?: boolean;
|
|
13
|
+
provider?: string;
|
|
14
|
+
redact?: boolean;
|
|
15
|
+
/** Show recorded usage-limit history instead of a live snapshot. */
|
|
16
|
+
history?: boolean;
|
|
17
|
+
/** History window in days (with `history`). */
|
|
18
|
+
days?: number;
|
|
19
|
+
}
|
|
20
|
+
/** Identity slice of a stored credential, for "every account" coverage. */
|
|
21
|
+
export interface UsageAccountIdentity {
|
|
22
|
+
provider: string;
|
|
23
|
+
type: "api_key" | "oauth";
|
|
24
|
+
email?: string;
|
|
25
|
+
accountId?: string;
|
|
26
|
+
projectId?: string;
|
|
27
|
+
enterpriseUrl?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Minimal-reveal masks for identity strings (`--redact`).
|
|
31
|
+
*
|
|
32
|
+
* Every mask shows a two-character anchor. When two identities share the
|
|
33
|
+
* anchor, the mask additionally reveals the shortest "middle-out"
|
|
34
|
+
* differentiator — the shortest substring (closest to the string's middle on
|
|
35
|
+
* ties) that no colliding identity contains — as `an*`, `ca*9*`, `ca*nb*`.
|
|
36
|
+
* Prefix growth is deliberately avoided: it leaks the start of the local
|
|
37
|
+
* part (`can.boluk@*`) when a couple of mid-string characters suffice.
|
|
38
|
+
* Duplicate strings (same account on two providers) share a mask.
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildRedactionMap(values: Iterable<string>): Map<string, string>;
|
|
41
|
+
/**
|
|
42
|
+
* Stored credentials that no usage report could be attributed to.
|
|
43
|
+
*
|
|
44
|
+
* Conservative on purpose: when a provider's reports carry no identity at
|
|
45
|
+
* all (or the credential is an API key alongside existing reports), we
|
|
46
|
+
* can't attribute, so we don't claim the account is missing.
|
|
47
|
+
*/
|
|
48
|
+
export declare function collectUnreportedAccounts(reports: UsageReport[], accounts: UsageAccountIdentity[]): UsageAccountIdentity[];
|
|
49
|
+
/** Per-window capacity stat: how much account quota is burned and left. */
|
|
50
|
+
export interface ProviderWindowStat {
|
|
51
|
+
/** Compact window label, e.g. "5h", "7d". */
|
|
52
|
+
window: string;
|
|
53
|
+
durationMs?: number;
|
|
54
|
+
/** Accounts reporting a limit in this window. */
|
|
55
|
+
accounts: number;
|
|
56
|
+
/** Sum of each account's binding used fraction — accounts' worth of quota burned. */
|
|
57
|
+
usedAccounts: number;
|
|
58
|
+
/** Accounts' worth of quota still available across reporting accounts. */
|
|
59
|
+
remainingAccounts: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Aggregate one provider's reports into per-window quota capacity stats.
|
|
63
|
+
*
|
|
64
|
+
* Limits are bucketed by window duration (5h, 7d, ...). Within a bucket each
|
|
65
|
+
* account contributes its single highest used fraction — when an account has
|
|
66
|
+
* several meters on the same window (tiered/metered limits), the most-burned
|
|
67
|
+
* one is what binds.
|
|
68
|
+
*/
|
|
69
|
+
export declare function computeProviderWindowStats(reports: UsageReport[]): ProviderWindowStat[];
|
|
70
|
+
/**
|
|
71
|
+
* Render the full text breakdown: per provider, per account, every limit
|
|
72
|
+
* with a bar, amounts, and reset times; unattributed credentials trail
|
|
73
|
+
* each provider section as "no usage data" rows.
|
|
74
|
+
*/
|
|
75
|
+
export declare function formatUsageBreakdown(reports: UsageReport[], accounts: UsageAccountIdentity[], nowMs: number, redaction?: Map<string, string>): string;
|
|
76
|
+
/**
|
|
77
|
+
* Render recorded usage-limit history: per provider, per account, one
|
|
78
|
+
* peak-per-bucket sparkline per limit window plus latest/peak percentages.
|
|
79
|
+
*/
|
|
80
|
+
export declare function formatUsageHistory(entries: UsageHistoryEntry[], sinceMs: number, nowMs: number, redaction?: Map<string, string>): string;
|
|
81
|
+
/**
|
|
82
|
+
* Keep only accounts worth a usage row: those whose provider has a usage
|
|
83
|
+
* provider, so a missing report is a real gap rather than the absence of any
|
|
84
|
+
* usage concept. Providers with no usage endpoint (web-search keys, local /
|
|
85
|
+
* keyless servers, inference providers without a usage API) would only ever
|
|
86
|
+
* render as noise, so they are dropped.
|
|
87
|
+
*
|
|
88
|
+
* `hasUsageProvider` is injected (in practice {@link AuthStorage.usageProviderFor})
|
|
89
|
+
* so custom/broker resolvers stay authoritative — no provider list is duplicated
|
|
90
|
+
* here. An explicit `--provider` request bypasses the cull, so
|
|
91
|
+
* `jeopi usage --provider xai` can still confirm the stored credential has no
|
|
92
|
+
* usage endpoint.
|
|
93
|
+
*/
|
|
94
|
+
export declare function selectReportableAccounts(accounts: UsageAccountIdentity[], hasUsageProvider: (provider: string) => boolean, explicitProvider?: string): UsageAccountIdentity[];
|
|
95
|
+
export declare function runUsageCommand(cmd: UsageCommandArgs): Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web search CLI command handlers.
|
|
3
|
+
*
|
|
4
|
+
* Handles `jeopi q`/`jeopi web-search` subcommands for testing web search providers.
|
|
5
|
+
*/
|
|
6
|
+
import type { SearchProviderId } from "../web/search/types";
|
|
7
|
+
export interface SearchCommandArgs {
|
|
8
|
+
query: string;
|
|
9
|
+
provider?: SearchProviderId | "auto";
|
|
10
|
+
recency?: "day" | "week" | "month" | "year";
|
|
11
|
+
limit?: number;
|
|
12
|
+
expanded: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Parse web search subcommand arguments.
|
|
16
|
+
* Returns undefined if not a web search command.
|
|
17
|
+
*/
|
|
18
|
+
export declare function parseSearchArgs(args: string[]): SearchCommandArgs | undefined;
|
|
19
|
+
export declare function runSearchCommand(cmd: SearchCommandArgs): Promise<void>;
|
|
20
|
+
export declare function printSearchHelp(): void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type WorktreeKind = "pr-checkout" | "task-isolation" | "empty" | "stray";
|
|
2
|
+
export interface WorktreeEntry {
|
|
3
|
+
/** Absolute path to the worktree dir (or stray container) under `~/.jeopi/wt/`. */
|
|
4
|
+
path: string;
|
|
5
|
+
/** Classification of what we found on disk. */
|
|
6
|
+
kind: WorktreeKind;
|
|
7
|
+
/** Parent repo root, when this is a registered git worktree. */
|
|
8
|
+
parentRepo?: string;
|
|
9
|
+
/** Branch name extracted from the parent's tracking file, when available. */
|
|
10
|
+
branch?: string;
|
|
11
|
+
/** When set, the entry is unhealthy and `jeopi worktree clear` will remove it. */
|
|
12
|
+
orphanReason?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ListWorktreesOptions {
|
|
15
|
+
json: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface ClearWorktreesOptions {
|
|
18
|
+
/** Remove every entry, including live PR-checkout worktrees. */
|
|
19
|
+
all: boolean;
|
|
20
|
+
/** Print what would be removed without touching the filesystem. */
|
|
21
|
+
dryRun: boolean;
|
|
22
|
+
json: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare function listWorktrees(options: ListWorktreesOptions): Promise<void>;
|
|
25
|
+
export declare function clearWorktrees(options: ClearWorktreesOptions): Promise<void>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Top-level CLI command table.
|
|
3
|
+
*
|
|
4
|
+
* Lives in its own module (importable without side effects) so that tests can
|
|
5
|
+
* inspect the registered subcommands without triggering the side-effectful
|
|
6
|
+
* top-level await in `cli.ts`. Adding a new subcommand here is enough to make
|
|
7
|
+
* `runCli` route to it instead of forwarding the argv as a prompt to
|
|
8
|
+
* `launch` — see #1496 for the original "args silently leak to the LLM"
|
|
9
|
+
* regression that motivated the split.
|
|
10
|
+
*/
|
|
11
|
+
import type { CommandEntry } from "jeopi-utils/cli";
|
|
12
|
+
export declare const commands: CommandEntry[];
|
|
13
|
+
export declare function reservedTopLevelWordMessage(first: string | undefined, argc?: number): string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Return true when `first` matches a registered subcommand name or alias.
|
|
16
|
+
*
|
|
17
|
+
* Flags (`-…`) and `@file` arguments are never subcommands; for those the CLI
|
|
18
|
+
* runner skips ahead to the default `launch` command.
|
|
19
|
+
*/
|
|
20
|
+
export declare function isSubcommand(first: string | undefined): boolean;
|
|
21
|
+
export type ResolvedCliArgv = {
|
|
22
|
+
argv: string[];
|
|
23
|
+
} | {
|
|
24
|
+
error: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Decide what the CLI runner should do with raw argv: reject bare reserved
|
|
28
|
+
* management words, pass help/version through untouched, route a recognized
|
|
29
|
+
* subcommand (even behind leading global flags like `--approval-mode=yolo`) to
|
|
30
|
+
* that command with the flags preserved, and forward everything else to
|
|
31
|
+
* `launch` (#2970).
|
|
32
|
+
*/
|
|
33
|
+
export declare function resolveCliArgv(argv: string[]): ResolvedCliArgv;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CollabFrame } from "./protocol";
|
|
2
|
+
export declare function generateRoomKey(): Uint8Array;
|
|
3
|
+
export declare function generateWriteToken(): Uint8Array;
|
|
4
|
+
export declare function importRoomKey(raw: Uint8Array): Promise<CryptoKey>;
|
|
5
|
+
export declare function seal(key: CryptoKey, frame: CollabFrame): Promise<Uint8Array>;
|
|
6
|
+
/** Inverse of {@link seal}. Throws on auth failure or malformed input. */
|
|
7
|
+
export declare function open(key: CryptoKey, data: Uint8Array): Promise<CollabFrame>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ImageContent } from "jeopi-ai";
|
|
2
|
+
import type { AgentHubRemote } from "../modes/components/agent-hub";
|
|
3
|
+
import type { InteractiveModeContext } from "../modes/types";
|
|
4
|
+
import { AgentRegistry } from "../registry/agent-registry";
|
|
5
|
+
import { type CollabSessionState } from "./protocol";
|
|
6
|
+
/** Commands a guest may run locally; everything else is host-only. */
|
|
7
|
+
export declare const COLLAB_GUEST_ALLOWED_COMMANDS: Record<string, true>;
|
|
8
|
+
/** Minimal context surface the idle-state reconciler mutates. */
|
|
9
|
+
export interface GuestIdleReconcilerCtx {
|
|
10
|
+
statusLine: {
|
|
11
|
+
markActivityEnd: () => void;
|
|
12
|
+
};
|
|
13
|
+
loadingAnimation: {
|
|
14
|
+
stop: () => void;
|
|
15
|
+
} | undefined;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Close the guest UI state held open by an earlier `agent_start` whose
|
|
19
|
+
* matching `agent_end` never reached us — most often because a reconnect
|
|
20
|
+
* dropped the event mid-stream. Triggered from {@link CollabGuestLink}'s
|
|
21
|
+
* `state` reconciler when the host reports `isStreaming === false`:
|
|
22
|
+
* folds the in-flight active-time window into the per-session meter (so
|
|
23
|
+
* `time_spent` stops ticking) and stops the `Working…` loader if one is
|
|
24
|
+
* still animating. No-op when the host is still streaming.
|
|
25
|
+
*
|
|
26
|
+
* Exported for direct unit testing; mutates the loader field on `ctx` so
|
|
27
|
+
* the same loader is not stopped twice on subsequent reconciliations.
|
|
28
|
+
*/
|
|
29
|
+
export declare function reconcileGuestIdleHostState(ctx: GuestIdleReconcilerCtx, isStreaming: boolean): void;
|
|
30
|
+
/** Reconcile a welcome/resync snapshot's host activity state into the guest meter. */
|
|
31
|
+
export interface GuestSnapshotActivityReconcilerCtx extends GuestIdleReconcilerCtx {
|
|
32
|
+
statusLine: GuestIdleReconcilerCtx["statusLine"] & {
|
|
33
|
+
markActivityStart: () => void;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export declare function reconcileGuestSnapshotHostState(ctx: GuestSnapshotActivityReconcilerCtx, isStreaming: boolean): void;
|
|
37
|
+
export declare class CollabGuestLink {
|
|
38
|
+
#private;
|
|
39
|
+
state: CollabSessionState | null;
|
|
40
|
+
/** Local mirror of the host's agent ecosystem (refs carry `session: null`). */
|
|
41
|
+
readonly agentRegistry: AgentRegistry;
|
|
42
|
+
/** Agent Hub actions routed to the host over the wire. */
|
|
43
|
+
get hubRemote(): AgentHubRemote;
|
|
44
|
+
/** True when this guest joined through a read-only (view) link. */
|
|
45
|
+
get readOnly(): boolean;
|
|
46
|
+
constructor(ctx: InteractiveModeContext);
|
|
47
|
+
join(link: string): Promise<void>;
|
|
48
|
+
/** User-initiated leave (or post-disconnect cleanup): restore the previous session. */
|
|
49
|
+
leave(_reason: string): Promise<void>;
|
|
50
|
+
sendPrompt(text: string, images?: ImageContent[]): void;
|
|
51
|
+
sendAbort(): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host side of a collab live session.
|
|
3
|
+
*
|
|
4
|
+
* Taps the host session's event stream and SessionManager append chokepoint,
|
|
5
|
+
* broadcasting entries/events/state to guests through the relay. Guests prompt
|
|
6
|
+
* and abort through us; the host machine runs the agent and tools. The host's
|
|
7
|
+
* subagent ecosystem is mirrored too: task EventBus traffic (observer HUD),
|
|
8
|
+
* agent-registry snapshots (Agent Hub table), hub chat/kill/revive commands,
|
|
9
|
+
* and incremental subagent-transcript reads.
|
|
10
|
+
*/
|
|
11
|
+
import type { CollabUiRequestDraft, CollabUiResponseValue } from "jeopi-wire";
|
|
12
|
+
import type { InteractiveModeContext } from "../modes/types";
|
|
13
|
+
import { type CollabParticipant } from "./protocol";
|
|
14
|
+
/** Max bytes served per fetch-transcript reply (guest re-requests from `newSize`). */
|
|
15
|
+
export declare const TRANSCRIPT_READ_CAP: number;
|
|
16
|
+
/**
|
|
17
|
+
* Outcome of {@link CollabHost.requestGuestUi}. `answered` carries the guest's
|
|
18
|
+
* response (an `undefined` value is a genuine guest cancel); `unavailable`
|
|
19
|
+
* means the collab channel went away (teardown, relay drop) or the request was
|
|
20
|
+
* aborted before any guest answered — callers MUST NOT treat it as a cancel.
|
|
21
|
+
*/
|
|
22
|
+
export type CollabGuestUiResult = {
|
|
23
|
+
kind: "answered";
|
|
24
|
+
value: CollabUiResponseValue;
|
|
25
|
+
} | {
|
|
26
|
+
kind: "unavailable";
|
|
27
|
+
};
|
|
28
|
+
export declare class CollabHost {
|
|
29
|
+
#private;
|
|
30
|
+
constructor(ctx: InteractiveModeContext);
|
|
31
|
+
get link(): string;
|
|
32
|
+
/** Browser deep link for the configured collab web UI. */
|
|
33
|
+
get webLink(): string;
|
|
34
|
+
/** Read-only variant of {@link link}: bare room key, no write token. */
|
|
35
|
+
get viewLink(): string;
|
|
36
|
+
/** Read-only variant of {@link webLink}. */
|
|
37
|
+
get webViewLink(): string;
|
|
38
|
+
get participants(): CollabParticipant[];
|
|
39
|
+
requestGuestUi(request: CollabUiRequestDraft, signal?: AbortSignal): Promise<CollabGuestUiResult> | null;
|
|
40
|
+
start(relayUrl: string, webUrl?: string): Promise<void>;
|
|
41
|
+
/** Broadcast a goodbye, detach all taps, and close the socket. */
|
|
42
|
+
stop(reason: string): Promise<void>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collab live-session wire protocol.
|
|
3
|
+
*
|
|
4
|
+
* Hub topology: the host is authoritative, guests never peer. All session
|
|
5
|
+
* payloads (`CollabFrame`) travel AES-256-GCM sealed; the relay only sees the
|
|
6
|
+
* plaintext envelope (`[4B uint32 BE peerId][sealed payload]`) plus TEXT JSON
|
|
7
|
+
* control messages that carry no session data.
|
|
8
|
+
*/
|
|
9
|
+
import type { ImageContent, Model } from "jeopi-ai";
|
|
10
|
+
import type { BusChannel, CollabUiRequest, GuestFrame, ParsedCollabLink, Participant, SessionState, AgentSnapshot as WireAgentSnapshot } from "jeopi-wire";
|
|
11
|
+
import { DEFAULT_RELAY_URL, ENVELOPE_HEADER_LENGTH, ROOM_ID_BYTES } from "jeopi-wire";
|
|
12
|
+
import type { ContextUsage } from "../extensibility/extensions/types";
|
|
13
|
+
import type { AgentSessionEvent } from "../session/agent-session";
|
|
14
|
+
import type { SessionEntry, SessionHeader } from "../session/session-entries";
|
|
15
|
+
export type { CollabPromptDetails, CollabUiRequest, CollabUiRequestDraft, CollabUiResponseValue, CollabUiSelectItem, ParsedCollabLink, RelayControlMessage, RelayControlToGuest, RelayControlToHost, } from "jeopi-wire";
|
|
16
|
+
export { COLLAB_PROMPT_MESSAGE_TYPE, COLLAB_PROTO } from "jeopi-wire";
|
|
17
|
+
export { DEFAULT_RELAY_URL, ENVELOPE_HEADER_LENGTH, ROOM_ID_BYTES };
|
|
18
|
+
export type CollabParticipant = Participant;
|
|
19
|
+
export type AgentSnapshot = WireAgentSnapshot;
|
|
20
|
+
/** Debounced footer snapshot broadcast by the host. */
|
|
21
|
+
export type CollabSessionState = SessionState & {
|
|
22
|
+
/**
|
|
23
|
+
* Host model (full catalog object). Guests apply it to their replica
|
|
24
|
+
* agent state so model display and context-window math are native.
|
|
25
|
+
*/
|
|
26
|
+
model?: Model;
|
|
27
|
+
/** Host status-line context numbers (guest system prompt/tools differ, so local estimates drift). */
|
|
28
|
+
contextUsage?: ContextUsage;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Encrypted payload frames (inside AES-GCM, JSON). The wire package pins the
|
|
32
|
+
* JSON skeleton (`WireFrame`); host-side frames carry the rich session types
|
|
33
|
+
* that serialize into those shapes.
|
|
34
|
+
*/
|
|
35
|
+
export type CollabFrame = Exclude<GuestFrame, {
|
|
36
|
+
t: "prompt";
|
|
37
|
+
}> | {
|
|
38
|
+
t: "prompt";
|
|
39
|
+
text: string;
|
|
40
|
+
images?: ImageContent[];
|
|
41
|
+
} | {
|
|
42
|
+
t: "welcome";
|
|
43
|
+
proto: number;
|
|
44
|
+
header: SessionHeader;
|
|
45
|
+
state: CollabSessionState;
|
|
46
|
+
agents: AgentSnapshot[];
|
|
47
|
+
/**
|
|
48
|
+
* Total number of `SessionEntry` items the host will deliver in the
|
|
49
|
+
* `snapshot-chunk` frames that follow. The guest stays in the
|
|
50
|
+
* snapshot-loading phase until it has accumulated that many entries
|
|
51
|
+
* (or a chunk arrives with `final: true`).
|
|
52
|
+
*/
|
|
53
|
+
entryCount: number;
|
|
54
|
+
/** True when this peer joined through a read-only (view) link. */
|
|
55
|
+
readOnly?: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Targeted snapshot fragment delivered after `welcome`. Splits a large
|
|
59
|
+
* transcript across many small frames so the guest's per-chunk progress
|
|
60
|
+
* timeout resets each time the relay delivers another batch; without
|
|
61
|
+
* chunking, a multi-MB session has to fit one giant frame inside the
|
|
62
|
+
* 30 s first-welcome budget. The last chunk carries `final: true` so the
|
|
63
|
+
* guest can finalize the replica session.
|
|
64
|
+
*/
|
|
65
|
+
| {
|
|
66
|
+
t: "snapshot-chunk";
|
|
67
|
+
entries: SessionEntry[];
|
|
68
|
+
final: boolean;
|
|
69
|
+
} | {
|
|
70
|
+
t: "entry";
|
|
71
|
+
entry: SessionEntry;
|
|
72
|
+
} | {
|
|
73
|
+
t: "event";
|
|
74
|
+
event: AgentSessionEvent;
|
|
75
|
+
} | {
|
|
76
|
+
t: "state";
|
|
77
|
+
state: CollabSessionState;
|
|
78
|
+
}
|
|
79
|
+
/** Mirrored EventBus traffic (task subagent lifecycle/progress channels only). */
|
|
80
|
+
| {
|
|
81
|
+
t: "bus";
|
|
82
|
+
channel: BusChannel;
|
|
83
|
+
data: unknown;
|
|
84
|
+
}
|
|
85
|
+
/** Full agent-registry snapshot (debounced on registry change). */
|
|
86
|
+
| {
|
|
87
|
+
t: "agents";
|
|
88
|
+
agents: AgentSnapshot[];
|
|
89
|
+
} | {
|
|
90
|
+
t: "ui-request";
|
|
91
|
+
request: CollabUiRequest;
|
|
92
|
+
} | {
|
|
93
|
+
t: "ui-request-end";
|
|
94
|
+
reqId: number;
|
|
95
|
+
}
|
|
96
|
+
/** Targeted reply to fetch-transcript; `error` marks a terminal read failure that guests must surface without hot retrying. */
|
|
97
|
+
| {
|
|
98
|
+
t: "transcript";
|
|
99
|
+
reqId: number;
|
|
100
|
+
text: string;
|
|
101
|
+
newSize: number;
|
|
102
|
+
error?: string;
|
|
103
|
+
} | {
|
|
104
|
+
t: "bye";
|
|
105
|
+
reason: string;
|
|
106
|
+
} | {
|
|
107
|
+
t: "error";
|
|
108
|
+
message: string;
|
|
109
|
+
};
|
|
110
|
+
export declare function packEnvelope(peerId: number, sealed: Uint8Array): Uint8Array;
|
|
111
|
+
export declare function unpackEnvelope(data: Uint8Array): {
|
|
112
|
+
peerId: number;
|
|
113
|
+
payload: Uint8Array;
|
|
114
|
+
} | null;
|
|
115
|
+
/** Rewrite the peerId in place without copying the payload. */
|
|
116
|
+
export declare function rewriteEnvelopePeer(data: Uint8Array, peerId: number): void;
|
|
117
|
+
export declare function generateRoomId(): string;
|
|
118
|
+
/**
|
|
119
|
+
* Render the shareable link. Compact forms: the default relay collapses to
|
|
120
|
+
* `<roomId>.<key>`, other wss relays drop the scheme (`host[:port]/r/…`);
|
|
121
|
+
* only localhost ws:// links keep their full URL so parsing cannot
|
|
122
|
+
* mis-infer wss.
|
|
123
|
+
*
|
|
124
|
+
* The room secret is dot-joined (`<roomId>.<key>`) rather than `#`-joined:
|
|
125
|
+
* RFC 3986 forbids a raw `#` inside a fragment, so strict URL stacks (macOS
|
|
126
|
+
* Foundation behind terminal click-to-open) percent-encode a second `#` to
|
|
127
|
+
* `%23` and break the link. Parsers still accept the legacy `#` form and the
|
|
128
|
+
* mangled `%23` form.
|
|
129
|
+
*
|
|
130
|
+
* Full links append the write token to the key
|
|
131
|
+
* (`base64url(key ∥ writeToken)`); read-only (view) links carry the bare
|
|
132
|
+
* 32-byte key, which is also the pre-token link format.
|
|
133
|
+
*/
|
|
134
|
+
export declare function formatCollabLink(relayUrl: string, roomId: string, key: Uint8Array, writeToken?: Uint8Array): string;
|
|
135
|
+
/**
|
|
136
|
+
* Render the browser deep link. The browser UI may be hosted separately from
|
|
137
|
+
* the relay; the fragment always carries the relay-specific collab link, so
|
|
138
|
+
* room secrets stay out of HTTP path and query bytes.
|
|
139
|
+
*/
|
|
140
|
+
export declare function formatCollabWebLink(relayUrl: string, roomId: string, key: Uint8Array, writeToken?: Uint8Array, webUrl?: string): string;
|
|
141
|
+
export declare function parseCollabLink(link: string): ParsedCollabLink | {
|
|
142
|
+
error: string;
|
|
143
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CollabFrame, RelayControlMessage } from "./protocol";
|
|
2
|
+
export interface CollabSocketOptions {
|
|
3
|
+
/** wss://host[:port]/r/<roomId> — no query string. */
|
|
4
|
+
wsUrl: string;
|
|
5
|
+
role: "host" | "guest";
|
|
6
|
+
key: CryptoKey;
|
|
7
|
+
}
|
|
8
|
+
export declare class CollabSocket {
|
|
9
|
+
#private;
|
|
10
|
+
/** Fires after every successful (re)connect. */
|
|
11
|
+
onOpen?: () => void;
|
|
12
|
+
onFrame?: (frame: CollabFrame, fromPeer: number) => void;
|
|
13
|
+
onControl?: (msg: RelayControlMessage) => void;
|
|
14
|
+
/** Fires once per terminal close (intentional, fatal code, or bad key). willReconnect=true for transient drops that will retry. */
|
|
15
|
+
onClose?: (reason: string, willReconnect: boolean) => void;
|
|
16
|
+
constructor(opts: CollabSocketOptions);
|
|
17
|
+
get isOpen(): boolean;
|
|
18
|
+
connect(): void;
|
|
19
|
+
send(frame: CollabFrame, targetPeer?: number): void;
|
|
20
|
+
/** Intentional close: clears any retry timer, suppresses reconnect. A later connect() starts fresh. */
|
|
21
|
+
close(): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hard-cap helper for host→guest collab frames.
|
|
3
|
+
*
|
|
4
|
+
* The host wraps every {@link CollabFrame} in an AES-GCM envelope and ships it
|
|
5
|
+
* through the relay's WebSocket. WebSocket servers enforce a per-frame
|
|
6
|
+
* `maxPayloadLength` (Bun's default is 16 MB; many proxies cap lower). A
|
|
7
|
+
* single oversized payload — typically a `read`/`bash`/`search` tool result
|
|
8
|
+
* captured as one multi-megabyte string, or a tool result whose `content`
|
|
9
|
+
* array holds thousands of small blocks — would otherwise ship as its own
|
|
10
|
+
* oversized frame and trip that limit, killing the host's WebSocket with
|
|
11
|
+
* `1006 Received too big message`. `CollabSocket` treats 1006 as transient
|
|
12
|
+
* and reconnects, the next guest hello triggers the same oversized send, and
|
|
13
|
+
* the loop never breaks (issue #3739).
|
|
14
|
+
*
|
|
15
|
+
* This helper bounds any JSON-serializable payload below
|
|
16
|
+
* {@link MAX_REPLICATED_PAYLOAD_BYTES}. Already-small payloads pass through
|
|
17
|
+
* untouched; oversized ones are returned as a deep-cloned shadow where long
|
|
18
|
+
* strings are head-truncated AND long arrays are head-clipped, with
|
|
19
|
+
* `[…N chars elided for collab session]` / `[…N items elided for collab
|
|
20
|
+
* session]` markers. Both axes are needed: string truncation alone leaves
|
|
21
|
+
* the cap unenforced for a payload built of many short strings, where no
|
|
22
|
+
* field exceeds the per-string floor.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Per-payload ceiling for host→guest frames. Bun's default WebSocket
|
|
26
|
+
* `maxPayloadLength` is 16 MB; we leave a generous margin so the AES-GCM
|
|
27
|
+
* envelope (+ IV + tag), the 4-byte peer header, and the outer wire wrapper
|
|
28
|
+
* fit comfortably under that on every reasonable relay.
|
|
29
|
+
*/
|
|
30
|
+
export declare const MAX_REPLICATED_PAYLOAD_BYTES: number;
|
|
31
|
+
/**
|
|
32
|
+
* Return `value` unchanged when its JSON serialization already fits
|
|
33
|
+
* {@link MAX_REPLICATED_PAYLOAD_BYTES}; otherwise return a deep-cloned
|
|
34
|
+
* shadow shrunk along both string and array axes until the payload fits.
|
|
35
|
+
* The function is generic over `T` because the wire shape is preserved:
|
|
36
|
+
* only string leaves and array tails change; discriminator fields, ids, and
|
|
37
|
+
* other small metadata pass through untouched.
|
|
38
|
+
*/
|
|
39
|
+
export declare function shrinkForReplication<T>(value: T): T;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run Oh My Pi as an ACP (Agent Client Protocol) server over stdio.
|
|
3
|
+
*
|
|
4
|
+
* Thin wrapper around the launch flow that forces `mode: "acp"` unless the
|
|
5
|
+
* ACP terminal-auth flag asks the same command to open the interactive TUI.
|
|
6
|
+
*/
|
|
7
|
+
import { Command } from "jeopi-utils/cli";
|
|
8
|
+
export default class Acp extends Command {
|
|
9
|
+
static description: string;
|
|
10
|
+
static strict: boolean;
|
|
11
|
+
run(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Command } from "jeopi-utils/cli";
|
|
2
|
+
export default class Agents extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
action: import("jeopi-utils/cli").ArgDescriptor & {
|
|
6
|
+
description: string;
|
|
7
|
+
required: false;
|
|
8
|
+
options: "unpack"[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
static flags: {
|
|
12
|
+
force: import("jeopi-utils/cli").FlagDescriptor<"boolean"> & {
|
|
13
|
+
char: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
json: import("jeopi-utils/cli").FlagDescriptor<"boolean"> & {
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
dir: import("jeopi-utils/cli").FlagDescriptor<"string"> & {
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
user: import("jeopi-utils/cli").FlagDescriptor<"boolean"> & {
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
project: import("jeopi-utils/cli").FlagDescriptor<"boolean"> & {
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
static examples: string[];
|
|
30
|
+
run(): Promise<void>;
|
|
31
|
+
}
|