@oh-my-pi/pi-coding-agent 16.3.5 → 16.3.7
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 +78 -0
- package/dist/cli.js +3625 -3596
- package/dist/types/advisor/index.d.ts +6 -6
- package/dist/types/advisor/runtime.d.ts +1 -1
- package/dist/types/advisor/watchdog.d.ts +1 -1
- package/dist/types/async/index.d.ts +1 -1
- package/dist/types/auto-thinking/classifier.d.ts +2 -2
- package/dist/types/autolearn/controller.d.ts +2 -2
- package/dist/types/autoresearch/dashboard.d.ts +2 -2
- package/dist/types/autoresearch/git.d.ts +1 -1
- package/dist/types/autoresearch/helpers.d.ts +1 -1
- package/dist/types/autoresearch/index.d.ts +1 -1
- package/dist/types/autoresearch/state.d.ts +3 -3
- package/dist/types/autoresearch/storage.d.ts +1 -1
- package/dist/types/autoresearch/tools/init-experiment.d.ts +2 -2
- package/dist/types/autoresearch/tools/log-experiment.d.ts +2 -2
- package/dist/types/autoresearch/tools/run-experiment.d.ts +2 -2
- package/dist/types/autoresearch/tools/update-notes.d.ts +2 -2
- package/dist/types/autoresearch/types.d.ts +3 -3
- package/dist/types/capability/context-file.d.ts +2 -2
- package/dist/types/capability/extension-module.d.ts +2 -2
- package/dist/types/capability/extension.d.ts +3 -3
- package/dist/types/capability/hook.d.ts +2 -2
- package/dist/types/capability/index.d.ts +3 -3
- package/dist/types/capability/instruction.d.ts +2 -2
- package/dist/types/capability/mcp.d.ts +2 -2
- package/dist/types/capability/prompt.d.ts +2 -2
- package/dist/types/capability/rule-buckets.d.ts +2 -2
- package/dist/types/capability/rule.d.ts +2 -2
- package/dist/types/capability/settings.d.ts +2 -2
- package/dist/types/capability/skill.d.ts +2 -2
- package/dist/types/capability/slash-command.d.ts +2 -2
- package/dist/types/capability/ssh.d.ts +2 -2
- package/dist/types/capability/system-prompt.d.ts +2 -2
- package/dist/types/capability/tool.d.ts +2 -2
- package/dist/types/cli/args.d.ts +1 -1
- package/dist/types/cli/bench-cli.d.ts +2 -2
- package/dist/types/cli/dry-balance-cli.d.ts +1 -1
- package/dist/types/cli/extension-flags.d.ts +1 -1
- package/dist/types/cli/flag-tables.d.ts +2 -2
- package/dist/types/cli/gallery-cli.d.ts +1 -1
- package/dist/types/cli/gallery-fixtures/agentic.d.ts +1 -1
- package/dist/types/cli/gallery-fixtures/codeintel.d.ts +1 -1
- package/dist/types/cli/gallery-fixtures/edit.d.ts +1 -1
- package/dist/types/cli/gallery-fixtures/fs.d.ts +1 -1
- package/dist/types/cli/gallery-fixtures/index.d.ts +2 -2
- package/dist/types/cli/gallery-fixtures/interaction.d.ts +1 -1
- package/dist/types/cli/gallery-fixtures/memory.d.ts +1 -1
- package/dist/types/cli/gallery-fixtures/misc.d.ts +1 -1
- package/dist/types/cli/gallery-fixtures/search.d.ts +1 -1
- package/dist/types/cli/gallery-fixtures/shell.d.ts +1 -1
- package/dist/types/cli/gallery-fixtures/types.d.ts +1 -1
- package/dist/types/cli/gallery-fixtures/web.d.ts +1 -1
- package/dist/types/cli/gallery-screenshot.d.ts +1 -1
- package/dist/types/cli/initial-message.d.ts +1 -1
- package/dist/types/cli/models-cli.d.ts +1 -1
- package/dist/types/cli/plugin-cli.d.ts +1 -1
- package/dist/types/cli/session-picker.d.ts +1 -1
- package/dist/types/cli/startup-cwd.d.ts +1 -1
- package/dist/types/cli/tiny-models-cli.d.ts +1 -1
- package/dist/types/cli/web-search-cli.d.ts +1 -1
- package/dist/types/collab/crypto.d.ts +1 -1
- package/dist/types/collab/display-name.d.ts +1 -1
- package/dist/types/collab/guest.d.ts +4 -4
- package/dist/types/collab/host.d.ts +2 -2
- package/dist/types/collab/protocol.d.ts +3 -3
- package/dist/types/collab/relay-client.d.ts +1 -1
- package/dist/types/commands/auth-broker.d.ts +1 -1
- package/dist/types/commands/auth-gateway.d.ts +1 -1
- package/dist/types/commands/config.d.ts +1 -1
- package/dist/types/commands/plugin.d.ts +1 -1
- package/dist/types/commands/setup.d.ts +2 -2
- package/dist/types/commands/ssh.d.ts +1 -1
- package/dist/types/commands/tiny-models.d.ts +1 -1
- package/dist/types/commands/ttsr.d.ts +2 -2
- package/dist/types/commit/agentic/agent.d.ts +4 -4
- package/dist/types/commit/agentic/fallback.d.ts +2 -2
- package/dist/types/commit/agentic/index.d.ts +1 -1
- package/dist/types/commit/agentic/state.d.ts +1 -1
- package/dist/types/commit/agentic/tools/analyze-file.d.ts +5 -5
- package/dist/types/commit/agentic/tools/git-file-diff.d.ts +2 -2
- package/dist/types/commit/agentic/tools/git-hunk.d.ts +1 -1
- package/dist/types/commit/agentic/tools/git-overview.d.ts +2 -2
- package/dist/types/commit/agentic/tools/index.d.ts +5 -5
- package/dist/types/commit/agentic/tools/propose-changelog.d.ts +2 -2
- package/dist/types/commit/agentic/tools/propose-commit.d.ts +2 -2
- package/dist/types/commit/agentic/tools/recent-commits.d.ts +1 -1
- package/dist/types/commit/agentic/tools/split-commit.d.ts +2 -2
- package/dist/types/commit/agentic/topo-sort.d.ts +1 -1
- package/dist/types/commit/agentic/trivial.d.ts +1 -1
- package/dist/types/commit/agentic/validation.d.ts +1 -1
- package/dist/types/commit/analysis/conventional.d.ts +1 -1
- package/dist/types/commit/analysis/index.d.ts +4 -4
- package/dist/types/commit/analysis/scope.d.ts +1 -1
- package/dist/types/commit/analysis/summary.d.ts +1 -1
- package/dist/types/commit/analysis/validation.d.ts +1 -1
- package/dist/types/commit/changelog/detect.d.ts +1 -1
- package/dist/types/commit/changelog/generate.d.ts +1 -1
- package/dist/types/commit/changelog/parse.d.ts +1 -1
- package/dist/types/commit/cli.d.ts +1 -1
- package/dist/types/commit/git/diff.d.ts +1 -1
- package/dist/types/commit/index.d.ts +1 -1
- package/dist/types/commit/map-reduce/index.d.ts +1 -1
- package/dist/types/commit/map-reduce/map-phase.d.ts +1 -1
- package/dist/types/commit/map-reduce/reduce-phase.d.ts +1 -1
- package/dist/types/commit/message.d.ts +1 -1
- package/dist/types/commit/model-selection.d.ts +3 -3
- package/dist/types/commit/pipeline.d.ts +1 -1
- package/dist/types/commit/shared-llm.d.ts +1 -1
- package/dist/types/commit/utils.d.ts +1 -1
- package/dist/types/config/model-discovery.d.ts +1 -1
- package/dist/types/config/model-registry.d.ts +3 -3
- package/dist/types/config/model-resolver.d.ts +4 -4
- package/dist/types/config/model-roles.d.ts +2 -2
- package/dist/types/config/models-config.d.ts +2 -2
- package/dist/types/config/service-tier.d.ts +1 -1
- package/dist/types/config/settings-schema.d.ts +7 -13
- package/dist/types/config/settings.d.ts +7 -7
- package/dist/types/config.d.ts +1 -1
- package/dist/types/dap/client.d.ts +1 -1
- package/dist/types/dap/config.d.ts +1 -1
- package/dist/types/dap/index.d.ts +4 -4
- package/dist/types/dap/session.d.ts +3 -3
- package/dist/types/debug/index.d.ts +1 -1
- package/dist/types/debug/log-viewer.d.ts +1 -1
- package/dist/types/debug/raw-sse.d.ts +1 -1
- package/dist/types/debug/report-bundle.d.ts +1 -1
- package/dist/types/discovery/agents.d.ts +1 -1
- package/dist/types/discovery/helpers.d.ts +4 -4
- package/dist/types/discovery/index.d.ts +47 -47
- package/dist/types/discovery/omp-extension-roots.d.ts +1 -1
- package/dist/types/edit/apply-patch/index.d.ts +2 -2
- package/dist/types/edit/apply-patch/parser.d.ts +1 -1
- package/dist/types/edit/diff.d.ts +1 -1
- package/dist/types/edit/file-snapshot-store.d.ts +4 -2
- package/dist/types/edit/hashline/execute.d.ts +4 -4
- package/dist/types/edit/hashline/filesystem.d.ts +3 -3
- package/dist/types/edit/hashline/index.d.ts +5 -5
- package/dist/types/edit/index.d.ts +19 -19
- package/dist/types/edit/modes/apply-patch.d.ts +1 -1
- package/dist/types/edit/modes/patch.d.ts +3 -3
- package/dist/types/edit/modes/replace.d.ts +3 -3
- package/dist/types/edit/renderer.d.ts +15 -16
- package/dist/types/edit/snapshot-details.d.ts +1 -1
- package/dist/types/edit/streaming.d.ts +2 -2
- package/dist/types/eval/agent-bridge.d.ts +4 -4
- package/dist/types/eval/backend-helpers.d.ts +3 -3
- package/dist/types/eval/backend.d.ts +2 -2
- package/dist/types/eval/bridge-timeout.d.ts +1 -1
- package/dist/types/eval/budget-bridge.d.ts +2 -2
- package/dist/types/eval/completion-bridge.d.ts +2 -2
- package/dist/types/eval/concurrency-bridge.d.ts +2 -2
- package/dist/types/eval/executor-base.d.ts +3 -3
- package/dist/types/eval/index.d.ts +6 -6
- package/dist/types/eval/jl/executor.d.ts +4 -4
- package/dist/types/eval/jl/index.d.ts +2 -2
- package/dist/types/eval/jl/kernel.d.ts +5 -5
- package/dist/types/eval/js/context-manager.d.ts +4 -4
- package/dist/types/eval/js/executor.d.ts +3 -3
- package/dist/types/eval/js/index.d.ts +2 -2
- package/dist/types/eval/js/shared/helpers.d.ts +1 -1
- package/dist/types/eval/js/shared/runtime.d.ts +2 -2
- package/dist/types/eval/js/tool-bridge.d.ts +5 -5
- package/dist/types/eval/js/worker-core.d.ts +1 -1
- package/dist/types/eval/js/worker-protocol.d.ts +2 -2
- package/dist/types/eval/kernel-base.d.ts +1 -1
- package/dist/types/eval/py/executor.d.ts +3 -3
- package/dist/types/eval/py/index.d.ts +2 -2
- package/dist/types/eval/py/kernel.d.ts +5 -5
- package/dist/types/eval/py/tool-bridge.d.ts +2 -2
- package/dist/types/eval/rb/executor.d.ts +3 -3
- package/dist/types/eval/rb/index.d.ts +2 -2
- package/dist/types/eval/rb/kernel.d.ts +6 -6
- package/dist/types/eval/session-id.d.ts +1 -1
- package/dist/types/eval/types.d.ts +1 -1
- package/dist/types/exa/index.d.ts +2 -2
- package/dist/types/exa/mcp-client.d.ts +3 -3
- package/dist/types/exec/bash-executor.d.ts +1 -1
- package/dist/types/export/html/index.d.ts +2 -2
- package/dist/types/export/share.d.ts +3 -3
- package/dist/types/export/ttsr.d.ts +2 -2
- package/dist/types/extensibility/custom-commands/bundled/ci-green/index.d.ts +2 -2
- package/dist/types/extensibility/custom-commands/bundled/review/index.d.ts +2 -2
- package/dist/types/extensibility/custom-commands/index.d.ts +2 -2
- package/dist/types/extensibility/custom-commands/loader.d.ts +1 -1
- package/dist/types/extensibility/custom-commands/types.d.ts +3 -3
- package/dist/types/extensibility/custom-tools/index.d.ts +3 -3
- package/dist/types/extensibility/custom-tools/loader.d.ts +3 -3
- package/dist/types/extensibility/custom-tools/types.d.ts +13 -11
- package/dist/types/extensibility/custom-tools/wrapper.d.ts +2 -2
- package/dist/types/extensibility/extensions/compact-handler.d.ts +1 -1
- package/dist/types/extensibility/extensions/get-commands-handler.d.ts +5 -5
- package/dist/types/extensibility/extensions/index.d.ts +5 -5
- package/dist/types/extensibility/extensions/loader.d.ts +2 -2
- package/dist/types/extensibility/extensions/model-api.d.ts +3 -3
- package/dist/types/extensibility/extensions/runner.d.ts +6 -6
- package/dist/types/extensibility/extensions/types.d.ts +43 -31
- package/dist/types/extensibility/extensions/wrapper.d.ts +2 -2
- package/dist/types/extensibility/hooks/index.d.ts +6 -6
- package/dist/types/extensibility/hooks/loader.d.ts +4 -4
- package/dist/types/extensibility/hooks/runner.d.ts +5 -5
- package/dist/types/extensibility/hooks/tool-wrapper.d.ts +1 -1
- package/dist/types/extensibility/hooks/types.d.ts +18 -18
- package/dist/types/extensibility/legacy-pi-ai-shim.d.ts +12 -4
- package/dist/types/extensibility/legacy-pi-coding-agent-shim.d.ts +194 -5
- package/dist/types/extensibility/plugins/doctor.d.ts +1 -1
- package/dist/types/extensibility/plugins/index.d.ts +7 -7
- package/dist/types/extensibility/plugins/installer.d.ts +1 -1
- package/dist/types/extensibility/plugins/legacy-pi-compat.d.ts +1 -1
- package/dist/types/extensibility/plugins/loader.d.ts +1 -1
- package/dist/types/extensibility/plugins/manager.d.ts +1 -1
- package/dist/types/extensibility/plugins/marketplace/fetcher.d.ts +1 -1
- package/dist/types/extensibility/plugins/marketplace/index.d.ts +6 -6
- package/dist/types/extensibility/plugins/marketplace/manager.d.ts +1 -1
- package/dist/types/extensibility/plugins/marketplace/registry.d.ts +1 -1
- package/dist/types/extensibility/plugins/marketplace/source-resolver.d.ts +1 -1
- package/dist/types/extensibility/plugins/runtime-config.d.ts +1 -1
- package/dist/types/extensibility/session-handler-types.d.ts +1 -1
- package/dist/types/extensibility/shared-events.d.ts +12 -5
- package/dist/types/extensibility/skills.d.ts +3 -3
- package/dist/types/extensibility/slash-commands.d.ts +1 -1
- package/dist/types/extensibility/typebox.d.ts +1 -1
- package/dist/types/extensibility/utils.d.ts +1 -1
- package/dist/types/goals/guided-setup.d.ts +1 -1
- package/dist/types/goals/index.d.ts +3 -3
- package/dist/types/goals/runtime.d.ts +1 -1
- package/dist/types/goals/state.d.ts +1 -1
- package/dist/types/goals/tools/goal-tool.d.ts +4 -4
- package/dist/types/hindsight/backend.d.ts +2 -2
- package/dist/types/hindsight/bank.d.ts +2 -2
- package/dist/types/hindsight/client.d.ts +1 -1
- package/dist/types/hindsight/config.d.ts +1 -1
- package/dist/types/hindsight/index.d.ts +8 -8
- package/dist/types/hindsight/mental-models.d.ts +3 -3
- package/dist/types/hindsight/state.d.ts +5 -5
- package/dist/types/hindsight/transcript.d.ts +2 -2
- package/dist/types/index.d.ts +38 -38
- package/dist/types/internal-urls/agent-protocol.d.ts +1 -1
- package/dist/types/internal-urls/artifact-protocol.d.ts +1 -1
- package/dist/types/internal-urls/filesystem-resource.d.ts +1 -1
- package/dist/types/internal-urls/history-protocol.d.ts +1 -1
- package/dist/types/internal-urls/index.d.ts +16 -16
- package/dist/types/internal-urls/issue-pr-protocol.d.ts +1 -1
- package/dist/types/internal-urls/local-protocol.d.ts +1 -1
- package/dist/types/internal-urls/mcp-protocol.d.ts +1 -1
- package/dist/types/internal-urls/memory-protocol.d.ts +1 -1
- package/dist/types/internal-urls/omp-protocol.d.ts +1 -1
- package/dist/types/internal-urls/parse.d.ts +1 -1
- package/dist/types/internal-urls/router.d.ts +1 -1
- package/dist/types/internal-urls/rule-protocol.d.ts +1 -1
- package/dist/types/internal-urls/skill-protocol.d.ts +1 -1
- package/dist/types/internal-urls/ssh-protocol.d.ts +1 -1
- package/dist/types/internal-urls/types.d.ts +2 -2
- package/dist/types/internal-urls/vault-protocol.d.ts +1 -1
- package/dist/types/irc/bus.d.ts +2 -2
- package/dist/types/lib/xai-http.d.ts +1 -1
- package/dist/types/lsp/client.d.ts +23 -1
- package/dist/types/lsp/clients/biome-client.d.ts +1 -1
- package/dist/types/lsp/clients/index.d.ts +4 -4
- package/dist/types/lsp/clients/lsp-linter-client.d.ts +1 -1
- package/dist/types/lsp/clients/swiftlint-client.d.ts +1 -1
- package/dist/types/lsp/config.d.ts +1 -1
- package/dist/types/lsp/diagnostics-ledger.d.ts +1 -1
- package/dist/types/lsp/edits.d.ts +1 -1
- package/dist/types/lsp/index.d.ts +6 -6
- package/dist/types/lsp/render.d.ts +2 -2
- package/dist/types/lsp/startup-events.d.ts +1 -1
- package/dist/types/lsp/utils.d.ts +2 -2
- package/dist/types/main.d.ts +12 -12
- package/dist/types/markit/converters/docx.d.ts +1 -1
- package/dist/types/markit/converters/epub.d.ts +1 -1
- package/dist/types/markit/converters/pdf/columns.d.ts +1 -1
- package/dist/types/markit/converters/pdf/extract.d.ts +1 -1
- package/dist/types/markit/converters/pdf/grid.d.ts +1 -1
- package/dist/types/markit/converters/pdf/headers.d.ts +1 -1
- package/dist/types/markit/converters/pdf/index.d.ts +1 -1
- package/dist/types/markit/converters/pdf/render.d.ts +1 -1
- package/dist/types/markit/converters/pptx.d.ts +1 -1
- package/dist/types/markit/converters/xlsx.d.ts +1 -1
- package/dist/types/markit/index.d.ts +2 -2
- package/dist/types/markit/registry.d.ts +1 -1
- package/dist/types/mcp/client.d.ts +1 -1
- package/dist/types/mcp/config-writer.d.ts +1 -1
- package/dist/types/mcp/config.d.ts +2 -2
- package/dist/types/mcp/index.d.ts +12 -12
- package/dist/types/mcp/loader.d.ts +5 -5
- package/dist/types/mcp/manager.d.ts +7 -7
- package/dist/types/mcp/oauth-credentials.d.ts +3 -3
- package/dist/types/mcp/oauth-flow.d.ts +1 -1
- package/dist/types/mcp/render.d.ts +3 -3
- package/dist/types/mcp/smithery-registry.d.ts +1 -1
- package/dist/types/mcp/tool-bridge.d.ts +5 -5
- package/dist/types/mcp/tool-cache.d.ts +2 -2
- package/dist/types/mcp/transports/http.d.ts +1 -1
- package/dist/types/mcp/transports/index.d.ts +3 -3
- package/dist/types/mcp/transports/sse.d.ts +1 -1
- package/dist/types/mcp/transports/stdio.d.ts +1 -1
- package/dist/types/mcp/types.d.ts +1 -1
- package/dist/types/memories/index.d.ts +4 -4
- package/dist/types/memory-backend/index.d.ts +7 -7
- package/dist/types/memory-backend/local-backend.d.ts +1 -1
- package/dist/types/memory-backend/off-backend.d.ts +1 -1
- package/dist/types/memory-backend/resolve.d.ts +2 -2
- package/dist/types/memory-backend/runtime.d.ts +2 -2
- package/dist/types/memory-backend/types.d.ts +5 -5
- package/dist/types/mnemopi/backend.d.ts +2 -2
- package/dist/types/mnemopi/config.d.ts +1 -1
- package/dist/types/mnemopi/embed-client.d.ts +2 -2
- package/dist/types/mnemopi/embed-worker.d.ts +1 -1
- package/dist/types/mnemopi/index.d.ts +3 -3
- package/dist/types/mnemopi/state.d.ts +38 -2
- package/dist/types/modes/acp/acp-agent.d.ts +2 -2
- package/dist/types/modes/acp/acp-client-bridge.d.ts +1 -1
- package/dist/types/modes/acp/acp-event-mapper.d.ts +1 -1
- package/dist/types/modes/acp/acp-mode.d.ts +1 -1
- package/dist/types/modes/acp/index.d.ts +2 -2
- package/dist/types/modes/components/advisor-config.d.ts +3 -3
- package/dist/types/modes/components/advisor-message.d.ts +2 -2
- package/dist/types/modes/components/agent-dashboard.d.ts +2 -2
- package/dist/types/modes/components/agent-hub.d.ts +11 -9
- package/dist/types/modes/components/agent-transcript-viewer.d.ts +6 -6
- package/dist/types/modes/components/assistant-message.d.ts +17 -12
- package/dist/types/modes/components/background-tan-message.d.ts +2 -2
- package/dist/types/modes/components/bash-execution.d.ts +7 -1
- package/dist/types/modes/components/bordered-loader.d.ts +1 -1
- package/dist/types/modes/components/chat-transcript-builder.d.ts +3 -3
- package/dist/types/modes/components/collab-prompt-message.d.ts +2 -2
- package/dist/types/modes/components/compaction-summary-message.d.ts +1 -1
- package/dist/types/modes/components/copy-selector.d.ts +1 -1
- package/dist/types/modes/components/custom-editor.d.ts +1 -1
- package/dist/types/modes/components/custom-message.d.ts +2 -2
- package/dist/types/modes/components/eval-execution.d.ts +7 -1
- package/dist/types/modes/components/execution-shared.d.ts +1 -1
- package/dist/types/modes/components/extensions/extension-dashboard.d.ts +2 -2
- package/dist/types/modes/components/extensions/extension-list.d.ts +1 -1
- package/dist/types/modes/components/extensions/index.d.ts +5 -5
- package/dist/types/modes/components/extensions/inspector-panel.d.ts +1 -1
- package/dist/types/modes/components/extensions/state-manager.d.ts +1 -1
- package/dist/types/modes/components/extensions/types.d.ts +1 -1
- package/dist/types/modes/components/footer.d.ts +1 -1
- package/dist/types/modes/components/history-search.d.ts +1 -1
- package/dist/types/modes/components/hook-message.d.ts +2 -2
- package/dist/types/modes/components/index.d.ts +38 -38
- package/dist/types/modes/components/keybinding-hints.d.ts +1 -1
- package/dist/types/modes/components/logout-account-selector.d.ts +1 -1
- package/dist/types/modes/components/mcp-add-wizard.d.ts +1 -1
- package/dist/types/modes/components/message-frame.d.ts +1 -1
- package/dist/types/modes/components/model-selector.d.ts +3 -3
- package/dist/types/modes/components/oauth-selector.d.ts +1 -1
- package/dist/types/modes/components/plan-review-overlay.d.ts +1 -1
- package/dist/types/modes/components/plugin-settings.d.ts +3 -3
- package/dist/types/modes/components/read-tool-group.d.ts +1 -1
- package/dist/types/modes/components/reset-usage-selector.d.ts +1 -1
- package/dist/types/modes/components/segment-track.d.ts +1 -1
- package/dist/types/modes/components/session-selector.d.ts +1 -1
- package/dist/types/modes/components/settings-defs.d.ts +1 -1
- package/dist/types/modes/components/settings-selector.d.ts +2 -2
- package/dist/types/modes/components/skill-message.d.ts +1 -1
- package/dist/types/modes/components/status-line/component.d.ts +2 -2
- package/dist/types/modes/components/status-line/context-thresholds.d.ts +1 -1
- package/dist/types/modes/components/status-line/index.d.ts +5 -5
- package/dist/types/modes/components/status-line/presets.d.ts +1 -1
- package/dist/types/modes/components/status-line/segments.d.ts +2 -2
- package/dist/types/modes/components/status-line/separators.d.ts +2 -2
- package/dist/types/modes/components/status-line/types.d.ts +8 -4
- package/dist/types/modes/components/tiny-title-download-progress.d.ts +2 -2
- package/dist/types/modes/components/todo-reminder.d.ts +1 -1
- package/dist/types/modes/components/tool-execution.d.ts +4 -14
- package/dist/types/modes/components/transcript-container.d.ts +26 -28
- package/dist/types/modes/components/tree-selector.d.ts +2 -2
- package/dist/types/modes/components/ttsr-notification.d.ts +1 -1
- package/dist/types/modes/controllers/btw-controller.d.ts +1 -1
- package/dist/types/modes/controllers/command-controller-shared.d.ts +2 -2
- package/dist/types/modes/controllers/command-controller.d.ts +7 -7
- package/dist/types/modes/controllers/event-controller.d.ts +3 -3
- package/dist/types/modes/controllers/extension-ui-controller.d.ts +5 -5
- package/dist/types/modes/controllers/extension-ui-controller.test.d.ts +1 -0
- package/dist/types/modes/controllers/input-controller.d.ts +2 -2
- package/dist/types/modes/controllers/mcp-command-controller.d.ts +1 -1
- package/dist/types/modes/controllers/omfg-controller.d.ts +1 -1
- package/dist/types/modes/controllers/omfg-rule.d.ts +1 -1
- package/dist/types/modes/controllers/selector-controller.d.ts +2 -2
- package/dist/types/modes/controllers/session-focus-controller.d.ts +4 -4
- package/dist/types/modes/controllers/ssh-command-controller.d.ts +1 -1
- package/dist/types/modes/controllers/streaming-reveal.d.ts +11 -3
- package/dist/types/modes/controllers/tan-command-controller.d.ts +1 -1
- package/dist/types/modes/controllers/todo-command-controller.d.ts +1 -1
- package/dist/types/modes/controllers/tool-args-reveal.d.ts +6 -2
- package/dist/types/modes/image-references.d.ts +1 -1
- package/dist/types/modes/index.d.ts +3 -3
- package/dist/types/modes/interactive-mode.d.ts +34 -34
- package/dist/types/modes/orchestrate.d.ts +1 -1
- package/dist/types/modes/print-mode.d.ts +1 -1
- package/dist/types/modes/prompt-action-autocomplete.d.ts +1 -1
- package/dist/types/modes/rpc/host-tools.d.ts +1 -1
- package/dist/types/modes/rpc/host-uris.d.ts +3 -3
- package/dist/types/modes/rpc/rpc-client.d.ts +3 -3
- package/dist/types/modes/rpc/rpc-mode.d.ts +6 -6
- package/dist/types/modes/rpc/rpc-subagents.d.ts +3 -3
- package/dist/types/modes/rpc/rpc-types.d.ts +7 -7
- package/dist/types/modes/running-subagent-badge.d.ts +1 -1
- package/dist/types/modes/runtime-init.d.ts +2 -2
- package/dist/types/modes/session-observer-registry.d.ts +2 -2
- package/dist/types/modes/setup-wizard/index.d.ts +6 -6
- package/dist/types/modes/setup-wizard/lazy.d.ts +1 -1
- package/dist/types/modes/setup-wizard/scenes/glyph.d.ts +1 -1
- package/dist/types/modes/setup-wizard/scenes/providers.d.ts +1 -1
- package/dist/types/modes/setup-wizard/scenes/sign-in.d.ts +1 -1
- package/dist/types/modes/setup-wizard/scenes/theme.d.ts +1 -1
- package/dist/types/modes/setup-wizard/scenes/types.d.ts +1 -1
- package/dist/types/modes/setup-wizard/scenes/web-search.d.ts +1 -1
- package/dist/types/modes/setup-wizard/startup-splash.d.ts +1 -1
- package/dist/types/modes/setup-wizard/wizard-overlay.d.ts +2 -2
- package/dist/types/modes/shared.d.ts +1 -1
- package/dist/types/modes/skill-command.d.ts +2 -2
- package/dist/types/modes/theme/shimmer.d.ts +1 -1
- package/dist/types/modes/theme/theme.d.ts +1 -1
- package/dist/types/modes/types.d.ts +31 -31
- package/dist/types/modes/ultrathink.d.ts +1 -1
- package/dist/types/modes/utils/context-usage.d.ts +5 -5
- package/dist/types/modes/utils/hotkeys-markdown.d.ts +1 -1
- package/dist/types/modes/utils/interactive-context-helpers.d.ts +2 -2
- package/dist/types/modes/utils/tools-markdown.d.ts +1 -1
- package/dist/types/modes/utils/transcript-render-helpers.d.ts +25 -8
- package/dist/types/modes/utils/transcript-render-helpers.test.d.ts +1 -0
- package/dist/types/modes/utils/ui-helpers.d.ts +2 -2
- package/dist/types/modes/workflow.d.ts +1 -1
- package/dist/types/plan-mode/plan-handoff.d.ts +1 -1
- package/dist/types/registry/agent-lifecycle.d.ts +2 -2
- package/dist/types/registry/agent-registry.d.ts +1 -1
- package/dist/types/sdk.d.ts +40 -36
- package/dist/types/secrets/index.d.ts +2 -2
- package/dist/types/secrets/obfuscator.d.ts +1 -1
- package/dist/types/session/agent-session.d.ts +57 -41
- package/dist/types/session/agent-storage.d.ts +1 -1
- package/dist/types/session/auth-broker-config.d.ts +1 -1
- package/dist/types/session/codex-auto-reset.d.ts +1 -1
- package/dist/types/session/exit-diagnostics.d.ts +1 -1
- package/dist/types/session/indexed-session-storage.d.ts +2 -2
- package/dist/types/session/messages.d.ts +22 -3
- package/dist/types/session/redis-session-storage.d.ts +1 -1
- package/dist/types/session/session-context.d.ts +1 -1
- package/dist/types/session/session-entries.d.ts +4 -0
- package/dist/types/session/session-listing.d.ts +1 -1
- package/dist/types/session/session-loader.d.ts +4 -4
- package/dist/types/session/session-manager.d.ts +9 -8
- package/dist/types/session/session-migrations.d.ts +1 -1
- package/dist/types/session/session-paths.d.ts +1 -1
- package/dist/types/session/session-persistence.d.ts +2 -2
- package/dist/types/session/session-storage.d.ts +1 -1
- package/dist/types/session/session-title-slot.d.ts +1 -1
- package/dist/types/session/settings-stream-fn.d.ts +1 -1
- package/dist/types/session/sql-session-storage.d.ts +1 -1
- package/dist/types/session/unexpected-stop-classifier.d.ts +2 -2
- package/dist/types/slash-commands/acp-builtins.d.ts +2 -2
- package/dist/types/slash-commands/available-commands.d.ts +5 -5
- package/dist/types/slash-commands/builtin-registry.d.ts +2 -2
- package/dist/types/slash-commands/helpers/active-oauth-account.d.ts +1 -1
- package/dist/types/slash-commands/helpers/context-report.d.ts +1 -1
- package/dist/types/slash-commands/helpers/format.d.ts +1 -1
- package/dist/types/slash-commands/helpers/logout.d.ts +1 -1
- package/dist/types/slash-commands/helpers/marketplace-manager.d.ts +2 -2
- package/dist/types/slash-commands/helpers/mcp.d.ts +1 -1
- package/dist/types/slash-commands/helpers/parse.d.ts +1 -1
- package/dist/types/slash-commands/helpers/reset-usage.d.ts +1 -1
- package/dist/types/slash-commands/helpers/ssh.d.ts +1 -1
- package/dist/types/slash-commands/helpers/todo.d.ts +1 -1
- package/dist/types/slash-commands/helpers/usage-report.d.ts +1 -1
- package/dist/types/slash-commands/types.d.ts +6 -4
- package/dist/types/ssh/file-transfer.d.ts +1 -1
- package/dist/types/ssh/ssh-executor.d.ts +1 -1
- package/dist/types/ssh/sshfs-mount.d.ts +1 -1
- package/dist/types/stt/asr-client.d.ts +3 -3
- package/dist/types/stt/asr-protocol.d.ts +1 -1
- package/dist/types/stt/asr-worker.d.ts +1 -1
- package/dist/types/stt/downloader.d.ts +1 -1
- package/dist/types/stt/index.d.ts +8 -8
- package/dist/types/stt/models.d.ts +1 -1
- package/dist/types/system-prompt.d.ts +4 -4
- package/dist/types/task/agents.d.ts +1 -1
- package/dist/types/task/discovery.d.ts +1 -1
- package/dist/types/task/executor.d.ts +20 -20
- package/dist/types/task/index.d.ts +11 -11
- package/dist/types/task/isolation-runner.d.ts +7 -6
- package/dist/types/task/persisted-revive.d.ts +5 -5
- package/dist/types/task/provider-concurrency.d.ts +2 -2
- package/dist/types/task/render.d.ts +3 -3
- package/dist/types/task/renderer.d.ts +1 -1
- package/dist/types/task/repair-args.d.ts +1 -1
- package/dist/types/task/subprocess-tool-registry.d.ts +1 -1
- package/dist/types/task/types.d.ts +2 -2
- package/dist/types/task/yield-assembly.d.ts +1 -1
- package/dist/types/tiny/title-client.d.ts +2 -2
- package/dist/types/tiny/title-protocol.d.ts +1 -1
- package/dist/types/tiny/worker.d.ts +1 -1
- package/dist/types/tool-discovery/mode.d.ts +2 -2
- package/dist/types/tools/__tests__/glob.test.d.ts +1 -0
- package/dist/types/tools/acp-bridge.d.ts +2 -2
- package/dist/types/tools/ask.d.ts +3 -3
- package/dist/types/tools/ast-edit.d.ts +4 -4
- package/dist/types/tools/ast-grep.d.ts +4 -4
- package/dist/types/tools/bash-command-fixup.d.ts +3 -11
- package/dist/types/tools/bash-interactive.d.ts +1 -1
- package/dist/types/tools/bash-interceptor.d.ts +1 -1
- package/dist/types/tools/bash-skill-urls.d.ts +3 -3
- package/dist/types/tools/bash.d.ts +4 -6
- package/dist/types/tools/browser/cmux/cmux-tab.d.ts +6 -6
- package/dist/types/tools/browser/cmux/rpc.d.ts +1 -1
- package/dist/types/tools/browser/registry.d.ts +3 -3
- package/dist/types/tools/browser/render.d.ts +3 -3
- package/dist/types/tools/browser/tab-supervisor.d.ts +14 -4
- package/dist/types/tools/browser/tab-worker.d.ts +1 -1
- package/dist/types/tools/browser.d.ts +9 -9
- package/dist/types/tools/checkpoint.d.ts +2 -2
- package/dist/types/tools/conflict-detect.d.ts +1 -1
- package/dist/types/tools/context.d.ts +2 -2
- package/dist/types/tools/debug.d.ts +4 -4
- package/dist/types/tools/eval-backends.d.ts +1 -1
- package/dist/types/tools/eval-render.d.ts +3 -5
- package/dist/types/tools/eval.d.ts +3 -3
- package/dist/types/tools/fetch.d.ts +7 -7
- package/dist/types/tools/gh-renderer.d.ts +3 -3
- package/dist/types/tools/gh.d.ts +5 -5
- package/dist/types/tools/github-cache.d.ts +1 -1
- package/dist/types/tools/glob.d.ts +7 -5
- package/dist/types/tools/grep.d.ts +5 -5
- package/dist/types/tools/image-gen.d.ts +2 -2
- package/dist/types/tools/index.d.ts +70 -70
- package/dist/types/tools/inspect-image-renderer.d.ts +2 -2
- package/dist/types/tools/inspect-image.d.ts +2 -2
- package/dist/types/tools/irc.d.ts +5 -5
- package/dist/types/tools/job.d.ts +3 -3
- package/dist/types/tools/json-tree.d.ts +1 -1
- package/dist/types/tools/learn.d.ts +1 -1
- package/dist/types/tools/list-limit.d.ts +1 -1
- package/dist/types/tools/manage-skill.d.ts +1 -1
- package/dist/types/tools/memory-edit.d.ts +1 -1
- package/dist/types/tools/memory-recall.d.ts +1 -1
- package/dist/types/tools/memory-reflect.d.ts +1 -1
- package/dist/types/tools/memory-render.d.ts +2 -2
- package/dist/types/tools/memory-retain.d.ts +1 -1
- package/dist/types/tools/output-meta.d.ts +3 -3
- package/dist/types/tools/path-utils.d.ts +2 -2
- package/dist/types/tools/plan-mode-guard.d.ts +1 -1
- package/dist/types/tools/read.d.ts +7 -7
- package/dist/types/tools/render-utils.d.ts +3 -3
- package/dist/types/tools/renderers.d.ts +2 -22
- package/dist/types/tools/report-tool-issue.d.ts +2 -2
- package/dist/types/tools/resolve.d.ts +3 -3
- package/dist/types/tools/review.d.ts +2 -2
- package/dist/types/tools/search-tool-bm25.d.ts +4 -4
- package/dist/types/tools/ssh.d.ts +5 -7
- package/dist/types/tools/todo.d.ts +4 -4
- package/dist/types/tools/tool-result.d.ts +2 -2
- package/dist/types/tools/tts.d.ts +1 -1
- package/dist/types/tools/write.d.ts +8 -8
- package/dist/types/tools/yield.d.ts +1 -1
- package/dist/types/tts/index.d.ts +10 -10
- package/dist/types/tts/models.d.ts +1 -1
- package/dist/types/tts/speech-enhancer.d.ts +2 -2
- package/dist/types/tts/streaming-player.d.ts +1 -1
- package/dist/types/tts/tts-client.d.ts +2 -2
- package/dist/types/tts/tts-protocol.d.ts +1 -1
- package/dist/types/tts/tts-worker.d.ts +1 -1
- package/dist/types/tts/vocalizer.d.ts +7 -1
- package/dist/types/tui/code-cell.d.ts +1 -1
- package/dist/types/tui/file-list.d.ts +1 -1
- package/dist/types/tui/index.d.ts +9 -9
- package/dist/types/tui/output-block.d.ts +2 -2
- package/dist/types/tui/status-line.d.ts +2 -2
- package/dist/types/tui/tree-list.d.ts +2 -2
- package/dist/types/tui/types.d.ts +1 -1
- package/dist/types/tui/utils.d.ts +2 -2
- package/dist/types/utils/changelog.d.ts +1 -1
- package/dist/types/utils/commit-message-generator.d.ts +2 -2
- package/dist/types/utils/git.d.ts +1 -1
- package/dist/types/utils/image-loading.d.ts +1 -1
- package/dist/types/utils/image-vision-fallback.d.ts +3 -3
- package/dist/types/utils/markit.d.ts +1 -1
- package/dist/types/utils/title-generator.d.ts +2 -2
- package/dist/types/web/parallel.d.ts +1 -1
- package/dist/types/web/scrapers/artifacthub.d.ts +1 -1
- package/dist/types/web/scrapers/arxiv.d.ts +1 -1
- package/dist/types/web/scrapers/aur.d.ts +1 -1
- package/dist/types/web/scrapers/biorxiv.d.ts +1 -1
- package/dist/types/web/scrapers/bluesky.d.ts +1 -1
- package/dist/types/web/scrapers/brew.d.ts +1 -1
- package/dist/types/web/scrapers/cheatsh.d.ts +1 -1
- package/dist/types/web/scrapers/chocolatey.d.ts +1 -1
- package/dist/types/web/scrapers/choosealicense.d.ts +1 -1
- package/dist/types/web/scrapers/cisa-kev.d.ts +1 -1
- package/dist/types/web/scrapers/clojars.d.ts +1 -1
- package/dist/types/web/scrapers/coingecko.d.ts +1 -1
- package/dist/types/web/scrapers/crates-io.d.ts +1 -1
- package/dist/types/web/scrapers/crossref.d.ts +1 -1
- package/dist/types/web/scrapers/devto.d.ts +1 -1
- package/dist/types/web/scrapers/discogs.d.ts +1 -1
- package/dist/types/web/scrapers/discourse.d.ts +1 -1
- package/dist/types/web/scrapers/dockerhub.d.ts +1 -1
- package/dist/types/web/scrapers/docs-rs.d.ts +8 -1
- package/dist/types/web/scrapers/fdroid.d.ts +1 -1
- package/dist/types/web/scrapers/firefox-addons.d.ts +1 -1
- package/dist/types/web/scrapers/flathub.d.ts +1 -1
- package/dist/types/web/scrapers/github-gist.d.ts +1 -1
- package/dist/types/web/scrapers/github.d.ts +1 -1
- package/dist/types/web/scrapers/gitlab.d.ts +1 -1
- package/dist/types/web/scrapers/go-pkg.d.ts +1 -1
- package/dist/types/web/scrapers/hackage.d.ts +1 -1
- package/dist/types/web/scrapers/hackernews.d.ts +1 -1
- package/dist/types/web/scrapers/hex.d.ts +1 -1
- package/dist/types/web/scrapers/huggingface.d.ts +1 -1
- package/dist/types/web/scrapers/iacr.d.ts +1 -1
- package/dist/types/web/scrapers/index.d.ts +77 -77
- package/dist/types/web/scrapers/jetbrains-marketplace.d.ts +1 -1
- package/dist/types/web/scrapers/lemmy.d.ts +1 -1
- package/dist/types/web/scrapers/lobsters.d.ts +1 -1
- package/dist/types/web/scrapers/mastodon.d.ts +1 -1
- package/dist/types/web/scrapers/maven.d.ts +1 -1
- package/dist/types/web/scrapers/mdn.d.ts +1 -1
- package/dist/types/web/scrapers/metacpan.d.ts +1 -1
- package/dist/types/web/scrapers/musicbrainz.d.ts +1 -1
- package/dist/types/web/scrapers/npm.d.ts +1 -1
- package/dist/types/web/scrapers/nuget.d.ts +1 -1
- package/dist/types/web/scrapers/nvd.d.ts +1 -1
- package/dist/types/web/scrapers/ollama.d.ts +1 -1
- package/dist/types/web/scrapers/open-vsx.d.ts +1 -1
- package/dist/types/web/scrapers/opencorporates.d.ts +1 -1
- package/dist/types/web/scrapers/openlibrary.d.ts +1 -1
- package/dist/types/web/scrapers/orcid.d.ts +1 -1
- package/dist/types/web/scrapers/osv.d.ts +1 -1
- package/dist/types/web/scrapers/packagist.d.ts +1 -1
- package/dist/types/web/scrapers/pub-dev.d.ts +1 -1
- package/dist/types/web/scrapers/pubmed.d.ts +1 -1
- package/dist/types/web/scrapers/pypi.d.ts +1 -1
- package/dist/types/web/scrapers/rawg.d.ts +1 -1
- package/dist/types/web/scrapers/readthedocs.d.ts +1 -1
- package/dist/types/web/scrapers/reddit.d.ts +1 -1
- package/dist/types/web/scrapers/repology.d.ts +1 -1
- package/dist/types/web/scrapers/rfc.d.ts +1 -1
- package/dist/types/web/scrapers/rubygems.d.ts +1 -1
- package/dist/types/web/scrapers/searchcode.d.ts +1 -1
- package/dist/types/web/scrapers/sec-edgar.d.ts +1 -1
- package/dist/types/web/scrapers/semantic-scholar.d.ts +1 -1
- package/dist/types/web/scrapers/snapcraft.d.ts +1 -1
- package/dist/types/web/scrapers/sourcegraph.d.ts +1 -1
- package/dist/types/web/scrapers/spdx.d.ts +1 -1
- package/dist/types/web/scrapers/spotify.d.ts +1 -1
- package/dist/types/web/scrapers/stackoverflow.d.ts +1 -1
- package/dist/types/web/scrapers/terraform.d.ts +1 -1
- package/dist/types/web/scrapers/tldr.d.ts +1 -1
- package/dist/types/web/scrapers/twitter.d.ts +1 -1
- package/dist/types/web/scrapers/types.d.ts +1 -1
- package/dist/types/web/scrapers/vimeo.d.ts +1 -1
- package/dist/types/web/scrapers/vscode-marketplace.d.ts +1 -1
- package/dist/types/web/scrapers/w3c.d.ts +1 -1
- package/dist/types/web/scrapers/wikidata.d.ts +1 -1
- package/dist/types/web/scrapers/wikipedia.d.ts +1 -1
- package/dist/types/web/scrapers/youtube.d.ts +1 -1
- package/dist/types/web/search/index.d.ts +7 -7
- package/dist/types/web/search/provider.d.ts +5 -5
- package/dist/types/web/search/providers/anthropic.d.ts +3 -3
- package/dist/types/web/search/providers/base.d.ts +1 -1
- package/dist/types/web/search/providers/brave.d.ts +3 -3
- package/dist/types/web/search/providers/codex.d.ts +3 -3
- package/dist/types/web/search/providers/duckduckgo.d.ts +3 -3
- package/dist/types/web/search/providers/exa.d.ts +3 -3
- package/dist/types/web/search/providers/firecrawl.d.ts +3 -3
- package/dist/types/web/search/providers/gemini.d.ts +3 -3
- package/dist/types/web/search/providers/jina.d.ts +3 -3
- package/dist/types/web/search/providers/kagi.d.ts +3 -3
- package/dist/types/web/search/providers/kimi.d.ts +3 -3
- package/dist/types/web/search/providers/parallel.d.ts +3 -3
- package/dist/types/web/search/providers/perplexity.d.ts +3 -3
- package/dist/types/web/search/providers/searxng.d.ts +3 -3
- package/dist/types/web/search/providers/synthetic.d.ts +3 -3
- package/dist/types/web/search/providers/tavily.d.ts +3 -3
- package/dist/types/web/search/providers/tinyfish.d.ts +3 -3
- package/dist/types/web/search/providers/utils.d.ts +2 -2
- package/dist/types/web/search/providers/xai.d.ts +3 -3
- package/dist/types/web/search/providers/zai.d.ts +3 -3
- package/dist/types/web/search/render.d.ts +3 -3
- package/package.json +12 -12
- package/src/advisor/__tests__/advisor.test.ts +59 -0
- package/src/auto-thinking/classifier.ts +6 -5
- package/src/collab/relay-client.ts +73 -7
- package/src/config/model-registry.ts +43 -2
- package/src/config/model-resolver.ts +1 -1
- package/src/config/settings-schema.ts +5 -12
- package/src/config/settings.ts +25 -5
- package/src/edit/file-snapshot-store.ts +5 -2
- package/src/edit/hashline/filesystem.ts +19 -1
- package/src/edit/modes/patch.ts +9 -1
- package/src/edit/modes/replace.ts +1 -1
- package/src/edit/renderer.ts +42 -35
- package/src/eval/__tests__/agent-bridge.test.ts +19 -0
- package/src/eval/__tests__/budget-bridge.test.ts +12 -1
- package/src/eval/agent-bridge.ts +27 -19
- package/src/eval/js/context-manager.ts +3 -0
- package/src/export/ttsr.ts +10 -0
- package/src/extensibility/custom-tools/types.ts +2 -0
- package/src/extensibility/extensions/loader.ts +2 -2
- package/src/extensibility/extensions/types.ts +16 -4
- package/src/extensibility/hooks/loader.ts +3 -3
- package/src/extensibility/hooks/types.ts +4 -4
- package/src/extensibility/legacy-pi-ai-shim.ts +17 -4
- package/src/extensibility/legacy-pi-coding-agent-shim.ts +554 -2
- package/src/extensibility/plugins/legacy-pi-compat.ts +190 -58
- package/src/extensibility/shared-events.ts +9 -1
- package/src/internal-urls/docs-index.generated.txt +1 -1
- package/src/internal-urls/memory-protocol.ts +105 -3
- package/src/lsp/client.ts +70 -0
- package/src/lsp/index.ts +65 -12
- package/src/main.ts +5 -3
- package/src/markit/converters/pdf/extract.ts +26 -2
- package/src/mnemopi/state.ts +76 -0
- package/src/modes/acp/acp-agent.ts +5 -1
- package/src/modes/components/agent-hub.ts +27 -9
- package/src/modes/components/assistant-message.ts +134 -82
- package/src/modes/components/bash-execution.ts +9 -0
- package/src/modes/components/chat-transcript-builder.ts +15 -7
- package/src/modes/components/copy-selector.ts +16 -4
- package/src/modes/components/eval-execution.ts +9 -0
- package/src/modes/components/model-selector.ts +17 -17
- package/src/modes/components/session-selector.ts +12 -4
- package/src/modes/components/status-line/component.ts +4 -0
- package/src/modes/components/status-line/segments.ts +6 -5
- package/src/modes/components/status-line/types.ts +4 -0
- package/src/modes/components/tool-execution.ts +12 -53
- package/src/modes/components/transcript-container.ts +82 -432
- package/src/modes/components/tree-selector.ts +9 -3
- package/src/modes/controllers/command-controller.ts +10 -3
- package/src/modes/controllers/event-controller.ts +78 -17
- package/src/modes/controllers/extension-ui-controller.test.ts +58 -0
- package/src/modes/controllers/extension-ui-controller.ts +12 -7
- package/src/modes/controllers/input-controller.ts +12 -10
- package/src/modes/controllers/selector-controller.ts +18 -9
- package/src/modes/controllers/streaming-reveal.ts +12 -5
- package/src/modes/controllers/tool-args-reveal.ts +13 -6
- package/src/modes/interactive-mode.ts +66 -36
- package/src/modes/prompt-action-autocomplete.ts +18 -0
- package/src/modes/theme/shimmer.ts +37 -1
- package/src/modes/utils/transcript-render-helpers.test.ts +38 -0
- package/src/modes/utils/transcript-render-helpers.ts +54 -13
- package/src/modes/utils/ui-helpers.ts +17 -8
- package/src/prompts/system/workflow-notice.md +1 -1
- package/src/prompts/tools/bash.md +9 -7
- package/src/prompts/tools/grep.md +1 -1
- package/src/prompts/tools/memory-edit.md +2 -0
- package/src/prompts/tools/recall.md +2 -0
- package/src/sdk.ts +113 -12
- package/src/session/agent-session.ts +350 -61
- package/src/session/messages.ts +102 -2
- package/src/session/session-context.ts +67 -10
- package/src/session/session-entries.ts +4 -0
- package/src/session/session-history-format.ts +12 -0
- package/src/session/session-manager.ts +129 -10
- package/src/session/settings-stream-fn.ts +1 -0
- package/src/session/unexpected-stop-classifier.ts +6 -3
- package/src/slash-commands/builtin-registry.ts +7 -4
- package/src/slash-commands/helpers/usage-report.ts +3 -0
- package/src/slash-commands/types.ts +2 -0
- package/src/task/executor.ts +23 -3
- package/src/task/isolation-runner.ts +38 -9
- package/src/tools/__tests__/glob.test.ts +37 -0
- package/src/tools/acp-bridge.ts +11 -1
- package/src/tools/bash-command-fixup.ts +3 -36
- package/src/tools/bash.ts +4 -17
- package/src/tools/browser/render.ts +6 -4
- package/src/tools/browser/tab-supervisor.ts +47 -3
- package/src/tools/eval-render.ts +0 -20
- package/src/tools/glob.ts +11 -1
- package/src/tools/index.ts +1 -1
- package/src/tools/inspect-image-renderer.ts +5 -4
- package/src/tools/read.ts +76 -28
- package/src/tools/render-utils.ts +4 -1
- package/src/tools/renderers.ts +0 -20
- package/src/tools/ssh.ts +0 -16
- package/src/tools/write.ts +22 -13
- package/src/tts/speech-enhancer.ts +7 -5
- package/src/tts/vocalizer.ts +9 -0
- package/src/utils/commit-message-generator.ts +7 -5
- package/src/utils/shell-snapshot.ts +10 -0
- package/src/utils/title-generator.ts +12 -7
- package/src/web/scrapers/docs-rs.ts +12 -1
- package/src/web/search/providers/xai.ts +43 -47
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type { UsageStatistics } from "../../session/session-entries";
|
|
2
|
-
export type { ReadonlySessionManager } from "../../session/session-manager";
|
|
3
|
-
export * from "./loader";
|
|
4
|
-
export * from "./runner";
|
|
5
|
-
export * from "./tool-wrapper";
|
|
6
|
-
export * from "./types";
|
|
1
|
+
export type { UsageStatistics } from "../../session/session-entries.js";
|
|
2
|
+
export type { ReadonlySessionManager } from "../../session/session-manager.js";
|
|
3
|
+
export * from "./loader.js";
|
|
4
|
+
export * from "./runner.js";
|
|
5
|
+
export * from "./tool-wrapper.js";
|
|
6
|
+
export * from "./types.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { HookMessageRenderer, RegisteredCommand } from "./types";
|
|
1
|
+
import type { CustomMessagePayload } from "../../session/messages.js";
|
|
2
|
+
import type { HookMessageRenderer, RegisteredCommand } from "./types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Generic handler function type.
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ type HandlerFn = (...args: unknown[]) => Promise<unknown>;
|
|
|
7
7
|
/**
|
|
8
8
|
* Send message handler type for pi.sendMessage().
|
|
9
9
|
*/
|
|
10
|
-
export type SendMessageHandler = <T = unknown>(message:
|
|
10
|
+
export type SendMessageHandler = <T = unknown>(message: CustomMessagePayload<T>, options?: {
|
|
11
11
|
triggerTurn?: boolean;
|
|
12
12
|
deliverAs?: "steer" | "followUp";
|
|
13
13
|
}) => void;
|
|
@@ -15,7 +15,7 @@ export type SendMessageHandler = <T = unknown>(message: Pick<HookMessage<T>, "cu
|
|
|
15
15
|
* Append entry handler type for pi.appendEntry().
|
|
16
16
|
*/
|
|
17
17
|
export type AppendEntryHandler = <T = unknown>(customType: string, data?: T) => void;
|
|
18
|
-
export type { BranchHandler, NavigateTreeHandler, NewSessionHandler } from "../session-handler-types";
|
|
18
|
+
export type { BranchHandler, NavigateTreeHandler, NewSessionHandler } from "../session-handler-types.js";
|
|
19
19
|
/**
|
|
20
20
|
* Registered handlers for a loaded hook.
|
|
21
21
|
*/
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { AgentMessage } from "@oh-my-pi/pi-agent-core";
|
|
5
5
|
import type { Model } from "@oh-my-pi/pi-ai";
|
|
6
|
-
import type { ModelRegistry } from "../../config/model-registry";
|
|
7
|
-
import type { SessionManager } from "../../session/session-manager";
|
|
8
|
-
import type { AppendEntryHandler, BranchHandler, LoadedHook, NavigateTreeHandler, NewSessionHandler, SendMessageHandler } from "./loader";
|
|
9
|
-
import type { BeforeAgentStartEventResult, HookCommandContext, HookError, HookEvent, HookMessageRenderer, HookUIContext, RegisteredCommand, SessionBeforeCompactResult, SessionBeforeTreeResult, SessionCompactingResult, ToolCallEvent, ToolCallEventResult, ToolResultEventResult } from "./types";
|
|
6
|
+
import type { ModelRegistry } from "../../config/model-registry.js";
|
|
7
|
+
import type { SessionManager } from "../../session/session-manager.js";
|
|
8
|
+
import type { AppendEntryHandler, BranchHandler, LoadedHook, NavigateTreeHandler, NewSessionHandler, SendMessageHandler } from "./loader.js";
|
|
9
|
+
import type { BeforeAgentStartEventResult, HookCommandContext, HookError, HookEvent, HookMessageRenderer, HookUIContext, RegisteredCommand, SessionBeforeCompactResult, SessionBeforeTreeResult, SessionCompactingResult, ToolCallEvent, ToolCallEventResult, ToolResultEventResult } from "./types.js";
|
|
10
10
|
/**
|
|
11
11
|
* Listener for hook errors.
|
|
12
12
|
*/
|
|
13
13
|
export type HookErrorListener = (error: HookError) => void;
|
|
14
|
-
export { execCommand } from "../../exec/exec";
|
|
14
|
+
export { execCommand } from "../../exec/exec.js";
|
|
15
15
|
/**
|
|
16
16
|
* HookRunner executes hooks and manages event emission.
|
|
17
17
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { AgentTool, AgentToolContext, AgentToolUpdateCallback } from "@oh-my-pi/pi-agent-core";
|
|
5
5
|
import type { Static, TSchema } from "@oh-my-pi/pi-ai";
|
|
6
|
-
import type { HookRunner } from "./runner";
|
|
6
|
+
import type { HookRunner } from "./runner.js";
|
|
7
7
|
/**
|
|
8
8
|
* Wraps an AgentTool with hook callbacks for interception.
|
|
9
9
|
*
|
|
@@ -3,17 +3,17 @@ import type { Component, TUI } from "@oh-my-pi/pi-tui";
|
|
|
3
3
|
import type { logger as PiLogger } from "@oh-my-pi/pi-utils";
|
|
4
4
|
import type { Type } from "arktype";
|
|
5
5
|
import type * as zod from "zod/v4";
|
|
6
|
-
import type { ModelRegistry } from "../../config/model-registry";
|
|
7
|
-
import type { EditToolDetails } from "../../edit";
|
|
8
|
-
import type { ExecOptions, ExecResult } from "../../exec/exec";
|
|
9
|
-
import type * as PiCodingAgent from "../../index";
|
|
10
|
-
import type { Theme } from "../../modes/theme/theme";
|
|
11
|
-
import type { HookMessage } from "../../session/messages";
|
|
12
|
-
import type { ReadonlySessionManager, SessionManager } from "../../session/session-manager";
|
|
13
|
-
import type { BashToolDetails, GlobToolDetails, GrepToolDetails, ReadToolDetails } from "../../tools";
|
|
14
|
-
import type { AgentEndEvent, AgentStartEvent, AutoCompactionEndEvent, AutoCompactionStartEvent, AutoRetryEndEvent, AutoRetryStartEvent, ContextEvent, SessionBeforeBranchEvent, SessionBeforeBranchResult, SessionBeforeCompactEvent, SessionBeforeCompactResult, SessionBeforeSwitchEvent, SessionBeforeSwitchResult, SessionBeforeTreeEvent, SessionBeforeTreeResult, SessionBranchEvent, SessionCompactEvent, SessionCompactingEvent, SessionCompactingResult, SessionEvent, SessionShutdownEvent, SessionStartEvent, SessionSwitchEvent, SessionTreeEvent, TodoReminderEvent, ToolCallEventResult, ToolResultEventResult, TtsrTriggeredEvent, TurnEndEvent, TurnStartEvent } from "../shared-events";
|
|
15
|
-
import type * as TypeBox from "../typebox";
|
|
16
|
-
export type { ExecOptions, ExecResult } from "../../exec/exec";
|
|
6
|
+
import type { ModelRegistry } from "../../config/model-registry.js";
|
|
7
|
+
import type { EditToolDetails } from "../../edit/index.js";
|
|
8
|
+
import type { ExecOptions, ExecResult } from "../../exec/exec.js";
|
|
9
|
+
import type * as PiCodingAgent from "../../index.js";
|
|
10
|
+
import type { Theme } from "../../modes/theme/theme.js";
|
|
11
|
+
import type { CustomMessagePayload, HookMessage } from "../../session/messages.js";
|
|
12
|
+
import type { ReadonlySessionManager, SessionManager } from "../../session/session-manager.js";
|
|
13
|
+
import type { BashToolDetails, GlobToolDetails, GrepToolDetails, ReadToolDetails } from "../../tools/index.js";
|
|
14
|
+
import type { AgentEndEvent, AgentStartEvent, AutoCompactionEndEvent, AutoCompactionStartEvent, AutoRetryEndEvent, AutoRetryStartEvent, ContextEvent, SessionBeforeBranchEvent, SessionBeforeBranchResult, SessionBeforeCompactEvent, SessionBeforeCompactResult, SessionBeforeSwitchEvent, SessionBeforeSwitchResult, SessionBeforeTreeEvent, SessionBeforeTreeResult, SessionBranchEvent, SessionCompactEvent, SessionCompactingEvent, SessionCompactingResult, SessionEvent, SessionShutdownEvent, SessionStartEvent, SessionSwitchEvent, SessionTreeEvent, TodoReminderEvent, ToolCallEventResult, ToolResultEventResult, TtsrTriggeredEvent, TurnEndEvent, TurnStartEvent } from "../shared-events.js";
|
|
15
|
+
import type * as TypeBox from "../typebox.js";
|
|
16
|
+
export type { ExecOptions, ExecResult } from "../../exec/exec.js";
|
|
17
17
|
/**
|
|
18
18
|
* UI context for hooks to request interactive UI from the harness.
|
|
19
19
|
* Each mode (interactive, RPC, print) provides its own implementation.
|
|
@@ -193,7 +193,7 @@ export interface HookCommandContext extends HookContext {
|
|
|
193
193
|
cancelled: boolean;
|
|
194
194
|
}>;
|
|
195
195
|
}
|
|
196
|
-
export type { ContextEvent, SessionBeforeBranchEvent, SessionBeforeCompactEvent, SessionBeforeSwitchEvent, SessionBeforeTreeEvent, SessionBranchEvent, SessionCompactEvent, SessionCompactingEvent, SessionEvent, SessionShutdownEvent, SessionStartEvent, SessionSwitchEvent, SessionTreeEvent, TreePreparation, } from "../shared-events";
|
|
196
|
+
export type { ContextEvent, SessionBeforeBranchEvent, SessionBeforeCompactEvent, SessionBeforeSwitchEvent, SessionBeforeTreeEvent, SessionBranchEvent, SessionCompactEvent, SessionCompactingEvent, SessionEvent, SessionShutdownEvent, SessionStartEvent, SessionSwitchEvent, SessionTreeEvent, TreePreparation, } from "../shared-events.js";
|
|
197
197
|
/**
|
|
198
198
|
* Event data for before_agent_start event.
|
|
199
199
|
* Fired after user submits a prompt but before the agent loop starts.
|
|
@@ -206,7 +206,7 @@ export interface BeforeAgentStartEvent {
|
|
|
206
206
|
/** Any images attached to the prompt */
|
|
207
207
|
images?: ImageContent[];
|
|
208
208
|
}
|
|
209
|
-
export type { AgentEndEvent, AgentStartEvent, AutoCompactionEndEvent, AutoCompactionStartEvent, AutoRetryEndEvent, AutoRetryStartEvent, TodoReminderEvent, TtsrTriggeredEvent, TurnEndEvent, TurnStartEvent, } from "../shared-events";
|
|
209
|
+
export type { AgentEndEvent, AgentStartEvent, AutoCompactionEndEvent, AutoCompactionStartEvent, AutoRetryEndEvent, AutoRetryStartEvent, TodoReminderEvent, TtsrTriggeredEvent, TurnEndEvent, TurnStartEvent, } from "../shared-events.js";
|
|
210
210
|
/**
|
|
211
211
|
* Event data for tool_call event.
|
|
212
212
|
* Fired before a tool is executed. Hooks can block execution.
|
|
@@ -287,16 +287,16 @@ export interface ContextEventResult {
|
|
|
287
287
|
/** Modified messages to send instead of the original */
|
|
288
288
|
messages?: Message[];
|
|
289
289
|
}
|
|
290
|
-
export type { ToolCallEventResult, ToolResultEventResult } from "../shared-events";
|
|
290
|
+
export type { ToolCallEventResult, ToolResultEventResult } from "../shared-events.js";
|
|
291
291
|
/**
|
|
292
292
|
* Return type for before_agent_start event handlers.
|
|
293
293
|
* Allows hooks to inject context before the agent runs.
|
|
294
294
|
*/
|
|
295
295
|
export interface BeforeAgentStartEventResult {
|
|
296
296
|
/** Message to inject into context (persisted to session, visible in TUI) */
|
|
297
|
-
message?:
|
|
297
|
+
message?: CustomMessagePayload;
|
|
298
298
|
}
|
|
299
|
-
export type { SessionBeforeBranchResult, SessionBeforeCompactResult, SessionBeforeSwitchResult, SessionBeforeTreeResult, SessionCompactingResult, } from "../shared-events";
|
|
299
|
+
export type { SessionBeforeBranchResult, SessionBeforeCompactResult, SessionBeforeSwitchResult, SessionBeforeTreeResult, SessionCompactingResult, } from "../shared-events.js";
|
|
300
300
|
/**
|
|
301
301
|
* Handler function type for each event.
|
|
302
302
|
* Handlers can return R, undefined, or void (bare return statements).
|
|
@@ -356,7 +356,7 @@ export interface HookAPI {
|
|
|
356
356
|
* Use this when you want the LLM to see the message content.
|
|
357
357
|
* For hook state that should NOT be sent to the LLM, use appendEntry() instead.
|
|
358
358
|
*
|
|
359
|
-
* @param message - The message to send
|
|
359
|
+
* @param message - The message object to send, or a string shorthand for visible message content
|
|
360
360
|
* @param message.customType - Identifier for your hook (used for filtering on reload)
|
|
361
361
|
* @param message.content - Message content (string or TextContent/ImageContent array)
|
|
362
362
|
* @param message.display - Whether to show in TUI (true = styled display, false = hidden)
|
|
@@ -366,7 +366,7 @@ export interface HookAPI {
|
|
|
366
366
|
* If agent is streaming, message is queued and triggerTurn is ignored.
|
|
367
367
|
* @param options.deliverAs - How to deliver the message: "steer" or "followUp".
|
|
368
368
|
*/
|
|
369
|
-
sendMessage<T = unknown>(message:
|
|
369
|
+
sendMessage<T = unknown>(message: CustomMessagePayload<T>, options?: {
|
|
370
370
|
triggerTurn?: boolean;
|
|
371
371
|
deliverAs?: "steer" | "followUp";
|
|
372
372
|
}): void;
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* `types.ts` via the `export *` below — pi-ai still exports both as types,
|
|
20
20
|
* only the runtime `Type` builder and `StringEnum()` helper were removed.
|
|
21
21
|
*/
|
|
22
|
-
import { getBundledModel, getBundledModels } from "@oh-my-pi/pi-catalog/models";
|
|
23
|
-
import { type TSchema, Type } from "./typebox";
|
|
22
|
+
import { calculateCost, getBundledModel, getBundledModels, getBundledProviders, modelsAreEqual } from "@oh-my-pi/pi-catalog/models";
|
|
23
|
+
import { type TSchema, Type } from "./typebox.js";
|
|
24
24
|
export interface StringEnumOptions<T extends string> {
|
|
25
25
|
description?: string;
|
|
26
26
|
default?: T;
|
|
@@ -29,7 +29,15 @@ export interface StringEnumOptions<T extends string> {
|
|
|
29
29
|
}
|
|
30
30
|
export declare function StringEnum<T extends string | number>(values: readonly T[] | Record<string, T>, options?: StringEnumOptions<any>): TSchema;
|
|
31
31
|
export * from "@oh-my-pi/pi-ai";
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Compatibility re-exports for catalog symbols that pi-ai historically exposed
|
|
34
|
+
* from its own barrel prior to the `refactor(catalog)!: split model catalog
|
|
35
|
+
* from pi-ai` change. Legacy extensions still import these from the pi-ai
|
|
36
|
+
* root, so the shim bridges them through to their new home in
|
|
37
|
+
* `@oh-my-pi/pi-catalog/models`. `getModel`/`getModels` are the historical
|
|
38
|
+
* pi-ai names for `getBundledModel`/`getBundledModels`; the remaining symbols
|
|
39
|
+
* kept their names across the move.
|
|
40
|
+
*/
|
|
41
|
+
export { calculateCost, getBundledModel, getBundledModels, getBundledProviders, modelsAreEqual, Type };
|
|
34
42
|
export declare const getModel: typeof getBundledModel;
|
|
35
43
|
export declare const getModels: typeof getBundledModels;
|
|
@@ -12,8 +12,12 @@
|
|
|
12
12
|
* the same module identity as a direct `@oh-my-pi/pi-coding-agent` import.
|
|
13
13
|
*/
|
|
14
14
|
import type { TSchema } from "@oh-my-pi/pi-ai";
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
15
|
+
import type { PromptTemplate } from "../config/prompt-templates.js";
|
|
16
|
+
import { Settings } from "../config/settings.js";
|
|
17
|
+
import type { CreateAgentSessionOptions, CreateAgentSessionResult, LoadExtensionsResult } from "../sdk.js";
|
|
18
|
+
import { EventBus } from "../utils/event-bus.js";
|
|
19
|
+
import type { ExtensionFactory, ToolDefinition } from "./extensions/types.js";
|
|
20
|
+
import type { Skill } from "./skills.js";
|
|
17
21
|
export interface BashSpawnContext {
|
|
18
22
|
command: string;
|
|
19
23
|
cwd: string;
|
|
@@ -110,6 +114,191 @@ export declare const SettingsManager: {
|
|
|
110
114
|
readonly create: (cwd: string, agentDir?: string) => Promise<Settings>;
|
|
111
115
|
readonly inMemory: () => Settings;
|
|
112
116
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
117
|
+
/**
|
|
118
|
+
* Resource-loader compatibility layer for legacy pi extensions.
|
|
119
|
+
*
|
|
120
|
+
* Upstream `@earendil-works/pi-coding-agent` centralizes extension / skill /
|
|
121
|
+
* prompt / theme / AGENTS.md discovery inside a `DefaultResourceLoader`
|
|
122
|
+
* instance that the caller constructs, `reload()`s, and hands to
|
|
123
|
+
* `createAgentSession({ resourceLoader })`. Every published version of
|
|
124
|
+
* pi-schedule-prompt (≥0.2.0) and other pi extensions that spawn subagents
|
|
125
|
+
* import the class at module scope; a missing export takes the whole
|
|
126
|
+
* extension down at parse time (issue #4567).
|
|
127
|
+
*
|
|
128
|
+
* OMP does the same discovery inline inside `createAgentSession()`, so this
|
|
129
|
+
* shim intentionally does NOT re-implement pi's ResourceLoader plumbing.
|
|
130
|
+
* Instead the loader captures the caller's intent (`no*` flags, `*Override`
|
|
131
|
+
* callbacks, `additional*Paths`, `extensionFactories`, `settingsManager`,
|
|
132
|
+
* `eventBus`) plus the discovery results, and the sibling `createAgentSession`
|
|
133
|
+
* override below translates them into OMP's native session options
|
|
134
|
+
* (`disableExtensionDiscovery`, `preloadedExtensionPaths`, `extensions`,
|
|
135
|
+
* `skills`, `promptTemplates`, `contextFiles`, `settings`, `eventBus`,
|
|
136
|
+
* `systemPrompt`) before delegating to `../sdk`.
|
|
137
|
+
*
|
|
138
|
+
* The pi surface it emulates is the intersection actually used by real
|
|
139
|
+
* extensions in the wild — themes are silently dropped (OMP has no
|
|
140
|
+
* session-level themes surface); `extendResources`, `loadProjectTrustExtensions`,
|
|
141
|
+
* and provider-trust hooks are omitted.
|
|
142
|
+
*/
|
|
143
|
+
export type ResourceDiagnostic = {
|
|
144
|
+
type: "error" | "warning" | "info";
|
|
145
|
+
message: string;
|
|
146
|
+
path?: string;
|
|
147
|
+
};
|
|
148
|
+
export interface AgentsFile {
|
|
149
|
+
path: string;
|
|
150
|
+
content: string;
|
|
151
|
+
}
|
|
152
|
+
/** Marker interface preserved for pi extensions that type against upstream. */
|
|
153
|
+
export interface Theme {
|
|
154
|
+
name: string;
|
|
155
|
+
}
|
|
156
|
+
export interface DefaultResourceLoaderOptions {
|
|
157
|
+
cwd?: string;
|
|
158
|
+
agentDir?: string;
|
|
159
|
+
settingsManager?: Settings | Promise<Settings>;
|
|
160
|
+
eventBus?: EventBus;
|
|
161
|
+
additionalExtensionPaths?: string[];
|
|
162
|
+
additionalSkillPaths?: string[];
|
|
163
|
+
additionalPromptTemplatePaths?: string[];
|
|
164
|
+
additionalThemePaths?: string[];
|
|
165
|
+
extensionFactories?: ExtensionFactory[];
|
|
166
|
+
noExtensions?: boolean;
|
|
167
|
+
noSkills?: boolean;
|
|
168
|
+
noPromptTemplates?: boolean;
|
|
169
|
+
noThemes?: boolean;
|
|
170
|
+
noContextFiles?: boolean;
|
|
171
|
+
systemPrompt?: string;
|
|
172
|
+
appendSystemPrompt?: string | string[];
|
|
173
|
+
extensionsOverride?: (base: LoadExtensionsResult) => LoadExtensionsResult;
|
|
174
|
+
skillsOverride?: (base: {
|
|
175
|
+
skills: Skill[];
|
|
176
|
+
diagnostics: ResourceDiagnostic[];
|
|
177
|
+
}) => {
|
|
178
|
+
skills: Skill[];
|
|
179
|
+
diagnostics: ResourceDiagnostic[];
|
|
180
|
+
};
|
|
181
|
+
promptsOverride?: (base: {
|
|
182
|
+
prompts: PromptTemplate[];
|
|
183
|
+
diagnostics: ResourceDiagnostic[];
|
|
184
|
+
}) => {
|
|
185
|
+
prompts: PromptTemplate[];
|
|
186
|
+
diagnostics: ResourceDiagnostic[];
|
|
187
|
+
};
|
|
188
|
+
themesOverride?: (base: {
|
|
189
|
+
themes: Theme[];
|
|
190
|
+
diagnostics: ResourceDiagnostic[];
|
|
191
|
+
}) => {
|
|
192
|
+
themes: Theme[];
|
|
193
|
+
diagnostics: ResourceDiagnostic[];
|
|
194
|
+
};
|
|
195
|
+
agentsFilesOverride?: (base: {
|
|
196
|
+
agentsFiles: AgentsFile[];
|
|
197
|
+
}) => {
|
|
198
|
+
agentsFiles: AgentsFile[];
|
|
199
|
+
};
|
|
200
|
+
systemPromptOverride?: (base: string | undefined) => string | undefined;
|
|
201
|
+
appendSystemPromptOverride?: (base: string[]) => string[];
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* The subset of {@link DefaultResourceLoader} state consumed by the
|
|
205
|
+
* {@link createAgentSession} adapter. Kept as an explicit interface so tests
|
|
206
|
+
* (and any future third-party ResourceLoader passed to `createAgentSession`)
|
|
207
|
+
* only need to satisfy the read surface — not the reload lifecycle.
|
|
208
|
+
*/
|
|
209
|
+
export interface ResourceLoader {
|
|
210
|
+
getExtensions(): LoadExtensionsResult;
|
|
211
|
+
getSkills(): {
|
|
212
|
+
skills: Skill[];
|
|
213
|
+
diagnostics: ResourceDiagnostic[];
|
|
214
|
+
};
|
|
215
|
+
getPrompts(): {
|
|
216
|
+
prompts: PromptTemplate[];
|
|
217
|
+
diagnostics: ResourceDiagnostic[];
|
|
218
|
+
};
|
|
219
|
+
getThemes(): {
|
|
220
|
+
themes: Theme[];
|
|
221
|
+
diagnostics: ResourceDiagnostic[];
|
|
222
|
+
};
|
|
223
|
+
getAgentsFiles(): {
|
|
224
|
+
agentsFiles: AgentsFile[];
|
|
225
|
+
};
|
|
226
|
+
getSystemPrompt(): string | undefined;
|
|
227
|
+
getAppendSystemPrompt(): string[];
|
|
228
|
+
reload(): Promise<void>;
|
|
229
|
+
/** @internal — used by the shim's createAgentSession to detect its own loaders. */
|
|
230
|
+
readonly __ompLegacyPiLoader?: true;
|
|
231
|
+
}
|
|
232
|
+
export declare class DefaultResourceLoader implements ResourceLoader {
|
|
233
|
+
#private;
|
|
234
|
+
readonly __ompLegacyPiLoader: true;
|
|
235
|
+
constructor(options?: DefaultResourceLoaderOptions);
|
|
236
|
+
getExtensions(): LoadExtensionsResult;
|
|
237
|
+
getSkills(): {
|
|
238
|
+
skills: Skill[];
|
|
239
|
+
diagnostics: ResourceDiagnostic[];
|
|
240
|
+
};
|
|
241
|
+
getPrompts(): {
|
|
242
|
+
prompts: PromptTemplate[];
|
|
243
|
+
diagnostics: ResourceDiagnostic[];
|
|
244
|
+
};
|
|
245
|
+
getThemes(): {
|
|
246
|
+
themes: Theme[];
|
|
247
|
+
diagnostics: ResourceDiagnostic[];
|
|
248
|
+
};
|
|
249
|
+
getAgentsFiles(): {
|
|
250
|
+
agentsFiles: AgentsFile[];
|
|
251
|
+
};
|
|
252
|
+
getSystemPrompt(): string | undefined;
|
|
253
|
+
getAppendSystemPrompt(): string[];
|
|
254
|
+
/**
|
|
255
|
+
* Discovery snapshot used to seed the session. Emulates upstream pi's
|
|
256
|
+
* `reload()` lifecycle: run every enabled discovery arm against the
|
|
257
|
+
* resolved cwd/agentDir, then thread each result through the caller's
|
|
258
|
+
* `*Override` callback. Discovery arms guarded by an `no*` flag start from
|
|
259
|
+
* an empty base — callers that flipped the flag off still get the override
|
|
260
|
+
* hook, so overrides can inject synthetic entries without triggering a
|
|
261
|
+
* filesystem scan they explicitly opted out of.
|
|
262
|
+
*/
|
|
263
|
+
reload(): Promise<void>;
|
|
264
|
+
/** Test seam: whether `reload()` has completed at least once. */
|
|
265
|
+
get loaded(): boolean;
|
|
266
|
+
/** @internal — used by the shim's createAgentSession to translate options. */
|
|
267
|
+
__getResolverState(): {
|
|
268
|
+
cwd: string;
|
|
269
|
+
agentDir: string;
|
|
270
|
+
settingsPromise?: Promise<Settings>;
|
|
271
|
+
eventBus: EventBus;
|
|
272
|
+
extensionsResult: LoadExtensionsResult;
|
|
273
|
+
skills: Skill[];
|
|
274
|
+
prompts: PromptTemplate[];
|
|
275
|
+
agentsFiles: AgentsFile[];
|
|
276
|
+
systemPrompt: string | undefined;
|
|
277
|
+
appendSystemPrompt: string[];
|
|
278
|
+
extensionFactories: ExtensionFactory[];
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Legacy pi extensions call `createAgentSession({ resourceLoader })`. OMP's
|
|
283
|
+
* native option surface has no such field — extension / skill / prompt /
|
|
284
|
+
* context-file discovery are configured directly on the session options — so
|
|
285
|
+
* an untranslated call would silently ignore the loader (including its
|
|
286
|
+
* `noExtensions`/`noSkills` opt-outs), re-run OMP's own discovery, and
|
|
287
|
+
* happily re-load the calling extension into the subagent. That's exactly
|
|
288
|
+
* the recursion the caller passed the loader to prevent.
|
|
289
|
+
*
|
|
290
|
+
* Translate the loader's captured state into OMP's option fields, then
|
|
291
|
+
* delegate to the underlying SDK. Explicit fields on `options` override the
|
|
292
|
+
* loader (matches upstream pi semantics — a caller can partially override a
|
|
293
|
+
* shared loader).
|
|
294
|
+
*
|
|
295
|
+
* `resourceLoader` is not part of {@link CreateAgentSessionOptions}, so it's
|
|
296
|
+
* accepted through a widened alias and stripped before the underlying call.
|
|
297
|
+
*/
|
|
298
|
+
export type LegacyPiCreateAgentSessionOptions = CreateAgentSessionOptions & {
|
|
299
|
+
resourceLoader?: ResourceLoader;
|
|
300
|
+
};
|
|
301
|
+
export declare function createAgentSession(options?: LegacyPiCreateAgentSessionOptions): Promise<CreateAgentSessionResult>;
|
|
302
|
+
export * from "../index.js";
|
|
303
|
+
export { formatBytes as formatSize } from "../tools/render-utils.js";
|
|
304
|
+
export { Type } from "./typebox.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./doctor";
|
|
2
|
-
export * from "./git-url";
|
|
3
|
-
export * from "./loader";
|
|
4
|
-
export * from "./manager";
|
|
5
|
-
export * from "./marketplace";
|
|
6
|
-
export * from "./parser";
|
|
7
|
-
export type * from "./types";
|
|
1
|
+
export * from "./doctor.js";
|
|
2
|
+
export * from "./git-url.js";
|
|
3
|
+
export * from "./loader.js";
|
|
4
|
+
export * from "./manager.js";
|
|
5
|
+
export * from "./marketplace/index.js";
|
|
6
|
+
export * from "./parser.js";
|
|
7
|
+
export type * from "./types.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InstalledPlugin } from "./types";
|
|
1
|
+
import type { InstalledPlugin } from "./types.js";
|
|
2
2
|
export declare function installPlugin(packageName: string): Promise<InstalledPlugin>;
|
|
3
3
|
export declare function uninstallPlugin(name: string): Promise<void>;
|
|
4
4
|
export declare function listPlugins(): Promise<InstalledPlugin[]>;
|
|
@@ -62,7 +62,7 @@ export declare function __validateLegacyPiPackageRootOverrides(candidates: Recor
|
|
|
62
62
|
*/
|
|
63
63
|
export declare function __buildLegacyPiPackageRootOverrides(isCompiled: boolean): Record<string, string>;
|
|
64
64
|
/** Test seam for compiled-binary legacy extension source rewriting. */
|
|
65
|
-
export declare function __rewriteLegacyExtensionSourceForTests(source: string, importerPath: string): Promise<string>;
|
|
65
|
+
export declare function __rewriteLegacyExtensionSourceForTests(source: string, importerPath: string, mtimeTag?: string | null): Promise<string>;
|
|
66
66
|
/**
|
|
67
67
|
* Load a legacy Pi extension module from its real on-disk location.
|
|
68
68
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InstalledPlugin } from "./types";
|
|
1
|
+
import type { InstalledPlugin } from "./types.js";
|
|
2
2
|
/** Installed plugin plus the root scope that supplied its runtime metadata. */
|
|
3
3
|
export interface ScopedInstalledPlugin extends InstalledPlugin {
|
|
4
4
|
scope: "user" | "project";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DoctorCheck, DoctorOptions, InstalledPlugin, InstallOptions, PluginSettingSchema } from "./types";
|
|
1
|
+
import type { DoctorCheck, DoctorOptions, InstalledPlugin, InstallOptions, PluginSettingSchema } from "./types.js";
|
|
2
2
|
export declare class PluginManager {
|
|
3
3
|
#private;
|
|
4
4
|
constructor(cwd?: string);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Classifies a source string, resolves it, and loads the catalog.
|
|
5
5
|
*/
|
|
6
|
-
import type { MarketplaceCatalog, MarketplaceSourceType } from "./types";
|
|
6
|
+
import type { MarketplaceCatalog, MarketplaceSourceType } from "./types.js";
|
|
7
7
|
export interface FetchResult {
|
|
8
8
|
catalog: MarketplaceCatalog;
|
|
9
9
|
/** For git sources: path to the cloned marketplace directory. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./cache";
|
|
2
|
-
export * from "./fetcher";
|
|
3
|
-
export * from "./manager";
|
|
4
|
-
export * from "./registry";
|
|
5
|
-
export * from "./source-resolver";
|
|
6
|
-
export * from "./types";
|
|
1
|
+
export * from "./cache.js";
|
|
2
|
+
export * from "./fetcher.js";
|
|
3
|
+
export * from "./manager.js";
|
|
4
|
+
export * from "./registry.js";
|
|
5
|
+
export * from "./source-resolver.js";
|
|
6
|
+
export * from "./types.js";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The `clearPluginRootsCache` dependency is injected so callers can provide
|
|
6
6
|
* the real `clearClaudePluginRootsCache` while tests supply a counter stub.
|
|
7
7
|
*/
|
|
8
|
-
import type { InstalledPluginEntry, InstalledPluginSummary, MarketplacePluginEntry, MarketplaceRegistryEntry } from "./types";
|
|
8
|
+
import type { InstalledPluginEntry, InstalledPluginSummary, MarketplacePluginEntry, MarketplaceRegistryEntry } from "./types.js";
|
|
9
9
|
export interface MarketplaceManagerOptions {
|
|
10
10
|
marketplacesRegistryPath: string;
|
|
11
11
|
installedRegistryPath: string;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Both use atomic write (tmp + rename). On Windows, rename over existing file
|
|
12
12
|
* can fail with EPERM — fallback: unlink target then rename.
|
|
13
13
|
*/
|
|
14
|
-
import type { InstalledPluginEntry, InstalledPluginsRegistry, MarketplaceRegistryEntry, MarketplacesRegistry } from "./types";
|
|
14
|
+
import type { InstalledPluginEntry, InstalledPluginsRegistry, MarketplaceRegistryEntry, MarketplacesRegistry } from "./types.js";
|
|
15
15
|
export declare function getMarketplacesRegistryPath(): string;
|
|
16
16
|
export declare function getInstalledPluginsRegistryPath(): string;
|
|
17
17
|
export declare function getMarketplacesCacheDir(): string;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* - { source: "git-subdir", url: "...", path: "sub/dir" } → git clone + subdir
|
|
9
9
|
* - { source: "npm", ... } → not yet supported
|
|
10
10
|
*/
|
|
11
|
-
import type { MarketplaceCatalogMetadata, MarketplacePluginEntry } from "./types";
|
|
11
|
+
import type { MarketplaceCatalogMetadata, MarketplacePluginEntry } from "./types.js";
|
|
12
12
|
export interface ResolveContext {
|
|
13
13
|
/** Absolute path to the cloned/local marketplace directory. Required for relative sources. */
|
|
14
14
|
marketplaceClonePath?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { PluginRuntimeConfig } from "./types";
|
|
1
|
+
import type { PluginRuntimeConfig } from "./types.js";
|
|
2
2
|
/** Normalizes persisted plugin runtime config across legacy lockfile shapes. */
|
|
3
3
|
export declare function normalizePluginRuntimeConfig(config: Partial<PluginRuntimeConfig>): PluginRuntimeConfig;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* loader/runner. Both surfaces wire the same new-session / branch / navigate
|
|
4
4
|
* handlers into their command contexts; this is the single source of truth.
|
|
5
5
|
*/
|
|
6
|
-
import type { SessionManager } from "../session/session-manager";
|
|
6
|
+
import type { SessionManager } from "../session/session-manager.js";
|
|
7
7
|
/** Handler for `ctx.newSession()` — creates (and optionally seeds) a session. */
|
|
8
8
|
export type NewSessionHandler = (options?: {
|
|
9
9
|
parentSession?: string;
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import type { AgentMessage } from "@oh-my-pi/pi-agent-core";
|
|
16
16
|
import type { CompactionPreparation, CompactionResult } from "@oh-my-pi/pi-agent-core/compaction";
|
|
17
|
-
import type { ImageContent, TextContent, ToolResultMessage } from "@oh-my-pi/pi-ai";
|
|
18
|
-
import type { Rule } from "../capability/rule";
|
|
19
|
-
import type { Goal, GoalModeState } from "../goals/state";
|
|
20
|
-
import type { BranchSummaryEntry, CompactionEntry, SessionEntry } from "../session/session-entries";
|
|
21
|
-
import type { TodoItem } from "../tools/todo";
|
|
17
|
+
import type { AssistantRetryRecovery, ImageContent, TextContent, ToolResultMessage } from "@oh-my-pi/pi-ai";
|
|
18
|
+
import type { Rule } from "../capability/rule.js";
|
|
19
|
+
import type { Goal, GoalModeState } from "../goals/state.js";
|
|
20
|
+
import type { BranchSummaryEntry, CompactionEntry, SessionEntry } from "../session/session-entries.js";
|
|
21
|
+
import type { TodoItem } from "../tools/todo.js";
|
|
22
22
|
/** Fired on initial session load */
|
|
23
23
|
export interface SessionStartEvent {
|
|
24
24
|
type: "session_start";
|
|
@@ -192,12 +192,19 @@ export interface AutoRetryStartEvent {
|
|
|
192
192
|
errorMessage: string;
|
|
193
193
|
errorId?: number;
|
|
194
194
|
}
|
|
195
|
+
export interface RecoveredRetryError {
|
|
196
|
+
entryId: string;
|
|
197
|
+
persistenceKey?: string;
|
|
198
|
+
note: string;
|
|
199
|
+
retryRecovery: AssistantRetryRecovery;
|
|
200
|
+
}
|
|
195
201
|
/** Fired when auto-retry ends */
|
|
196
202
|
export interface AutoRetryEndEvent {
|
|
197
203
|
type: "auto_retry_end";
|
|
198
204
|
success: boolean;
|
|
199
205
|
attempt: number;
|
|
200
206
|
finalError?: string;
|
|
207
|
+
recoveredErrors?: RecoveredRetryError[];
|
|
201
208
|
}
|
|
202
209
|
/** Fired when TTSR rule matching interrupts generation */
|
|
203
210
|
export interface TtsrTriggeredEvent {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { SourceMeta } from "../capability/types";
|
|
2
|
-
import type { SkillsSettings } from "../config/settings";
|
|
3
|
-
import type { SkillPromptDetails } from "../session/messages";
|
|
1
|
+
import type { SourceMeta } from "../capability/types.js";
|
|
2
|
+
import type { SkillsSettings } from "../config/settings.js";
|
|
3
|
+
import type { SkillPromptDetails } from "../session/messages.js";
|
|
4
4
|
export interface Skill {
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
|
@@ -7,7 +7,7 @@ export interface SlashCommandInfo {
|
|
|
7
7
|
location?: SlashCommandLocation;
|
|
8
8
|
path?: string;
|
|
9
9
|
}
|
|
10
|
-
export type { BuiltinSlashCommand, SubcommandDef } from "../slash-commands/types";
|
|
10
|
+
export type { BuiltinSlashCommand, SubcommandDef } from "../slash-commands/types.js";
|
|
11
11
|
/**
|
|
12
12
|
* Represents a custom slash command loaded from a file
|
|
13
13
|
*/
|
|
@@ -145,7 +145,7 @@ export declare const Type: {
|
|
|
145
145
|
readonly Composite: typeof tComposite;
|
|
146
146
|
};
|
|
147
147
|
export type TypeBuilder = typeof Type;
|
|
148
|
-
/** Default namespace export so `import * as typebox from "./typebox"` still resolves the `Type` key. */
|
|
148
|
+
/** Default namespace export so `import * as typebox from "./typebox.js"` still resolves the `Type` key. */
|
|
149
149
|
declare const _default: {
|
|
150
150
|
Type: {
|
|
151
151
|
readonly String: typeof tString;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./runtime";
|
|
2
|
-
export * from "./state";
|
|
3
|
-
export * from "./tools/goal-tool";
|
|
1
|
+
export * from "./runtime.js";
|
|
2
|
+
export * from "./state.js";
|
|
3
|
+
export * from "./tools/goal-tool.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Goal, GoalBudgetSteering, GoalModeState, GoalRuntimeEvent, GoalTokenUsage } from "./state";
|
|
1
|
+
import type { Goal, GoalBudgetSteering, GoalModeState, GoalRuntimeEvent, GoalTokenUsage } from "./state.js";
|
|
2
2
|
export interface GoalRuntimeHost {
|
|
3
3
|
getState(): GoalModeState | undefined;
|
|
4
4
|
setState(state: GoalModeState | undefined): void;
|