@oh-my-pi/pi-coding-agent 16.3.6 → 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 +60 -0
- package/dist/cli.js +3052 -3037
- 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/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 -15
- 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 +12 -12
- 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 +4 -4
- 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 +2 -2
- package/dist/types/modes/components/background-tan-message.d.ts +2 -2
- package/dist/types/modes/components/bash-execution.d.ts +1 -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 +1 -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 +1 -1
- 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 +10 -2
- 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 +56 -42
- 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 -4
- 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 +4 -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 -3
- 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 -2
- 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 -5
- 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 +7 -7
- 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/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 -30
- 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/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/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/chat-transcript-builder.ts +7 -3
- package/src/modes/components/copy-selector.ts +16 -4
- 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 +8 -3
- package/src/modes/controllers/command-controller.ts +10 -0
- package/src/modes/controllers/event-controller.ts +4 -3
- package/src/modes/controllers/extension-ui-controller.test.ts +58 -0
- package/src/modes/controllers/extension-ui-controller.ts +12 -6
- package/src/modes/controllers/input-controller.ts +8 -0
- 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 +54 -28
- 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 +14 -0
- package/src/modes/utils/ui-helpers.ts +5 -1
- 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 +112 -12
- package/src/session/agent-session.ts +203 -61
- package/src/session/messages.ts +102 -2
- package/src/session/session-context.ts +60 -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 -13
- package/src/tools/browser/render.ts +6 -4
- 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 +13 -8
- package/src/tools/render-utils.ts +4 -1
- package/src/tools/write.ts +9 -7
- 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,8 +1,8 @@
|
|
|
1
1
|
import type { AgentMessage } from "@oh-my-pi/pi-agent-core";
|
|
2
2
|
import type { AssistantMessage, ImageContent, Message } from "@oh-my-pi/pi-ai";
|
|
3
3
|
import { type Component } from "@oh-my-pi/pi-tui";
|
|
4
|
-
import type { InteractiveModeContext } from "../../modes/types";
|
|
5
|
-
import type { SessionContext } from "../../session/session-context";
|
|
4
|
+
import type { InteractiveModeContext } from "../../modes/types.js";
|
|
5
|
+
import type { SessionContext } from "../../session/session-context.js";
|
|
6
6
|
interface RenderInitialMessagesOptions {
|
|
7
7
|
preserveExistingChat?: boolean;
|
|
8
8
|
clearTerminalHistory?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type KeywordHighlighter } from "./gradient-highlight";
|
|
1
|
+
import { type KeywordHighlighter } from "./gradient-highlight.js";
|
|
2
2
|
/** Hidden system notice appended after a user message that mentions "workflowz". */
|
|
3
3
|
export declare const WORKFLOW_NOTICE: string;
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type LocalProtocolOptions } from "../internal-urls";
|
|
1
|
+
import { type LocalProtocolOptions } from "../internal-urls/index.js";
|
|
2
2
|
/** The session's active plan, resolved for handoff into a subagent's context. */
|
|
3
3
|
export interface OverallPlanReference {
|
|
4
4
|
/** The `local://` reference path (e.g. `local://my-feature.md`), kept for display. */
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* {@link AgentLifecycleManager.ensureLive}. Only this manager flips
|
|
10
10
|
* `parked` ↔ `idle`.
|
|
11
11
|
*/
|
|
12
|
-
import type { AgentSession } from "../session/agent-session";
|
|
13
|
-
import { type AgentRef, AgentRegistry } from "./agent-registry";
|
|
12
|
+
import type { AgentSession } from "../session/agent-session.js";
|
|
13
|
+
import { type AgentRef, AgentRegistry } from "./agent-registry.js";
|
|
14
14
|
export type AgentReviver = () => Promise<AgentSession>;
|
|
15
15
|
/**
|
|
16
16
|
* Builds a reviver for a `parked` ref restored from disk (Agent Hub scan,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* `idle` (live) or `parked` (session disposed, ref + sessionFile retained for
|
|
9
9
|
* revival) and are only removed on explicit release/teardown.
|
|
10
10
|
*/
|
|
11
|
-
import type { AgentSession } from "../session/agent-session";
|
|
11
|
+
import type { AgentSession } from "../session/agent-session.js";
|
|
12
12
|
export declare const MAIN_AGENT_ID = "Main";
|
|
13
13
|
/**
|
|
14
14
|
* - `running`: a turn is in flight.
|
package/dist/types/sdk.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { type AgentTelemetryConfig, type ThinkingLevel } from "@oh-my-pi/pi-agent-core";
|
|
2
2
|
import type { Model } from "@oh-my-pi/pi-ai";
|
|
3
3
|
import type { Dialect } from "@oh-my-pi/pi-ai/dialect";
|
|
4
|
-
import { type Rule } from "./capability/rule";
|
|
5
|
-
import { ModelRegistry } from "./config/model-registry";
|
|
6
|
-
import { type PromptTemplate } from "./config/prompt-templates";
|
|
7
|
-
import { Settings, type SkillsSettings } from "./config/settings";
|
|
8
|
-
import "./discovery";
|
|
9
|
-
import { type CustomCommandsLoadResult } from "./extensibility/custom-commands";
|
|
10
|
-
import { type ToolPathWithSource } from "./extensibility/custom-tools";
|
|
11
|
-
import type { CustomTool } from "./extensibility/custom-tools/types";
|
|
12
|
-
import { type ExtensionFactory, type ExtensionUIContext, type LoadExtensionsResult, type ToolDefinition } from "./extensibility/extensions";
|
|
13
|
-
import { type Skill, type SkillWarning } from "./extensibility/skills";
|
|
14
|
-
import { type FileSlashCommand } from "./extensibility/slash-commands";
|
|
15
|
-
import type { HindsightSessionState } from "./hindsight/state";
|
|
16
|
-
import { type LocalProtocolOptions } from "./internal-urls";
|
|
17
|
-
import { MCPManager, type MCPToolsLoadResult } from "./mcp";
|
|
18
|
-
import type { MnemopiSessionState } from "./mnemopi/state";
|
|
19
|
-
import { AgentRegistry } from "./registry/agent-registry";
|
|
20
|
-
import { AgentSession } from "./session/agent-session";
|
|
21
|
-
import type { AuthStorage } from "./session/auth-storage";
|
|
22
|
-
import { SessionManager } from "./session/session-manager";
|
|
23
|
-
import { type BuildSystemPromptResult } from "./system-prompt";
|
|
24
|
-
import { type ConfiguredThinkingLevel } from "./thinking";
|
|
25
|
-
import { BashTool, BUILTIN_TOOLS, createTools, EditTool, EvalTool, GlobTool, GrepTool, HIDDEN_TOOLS, type LspStartupServerInfo, loadSshTool, ReadTool, ResolveTool, type Tool, type ToolSession, WebSearchTool, WriteTool } from "./tools";
|
|
26
|
-
import { EventBus } from "./utils/event-bus";
|
|
27
|
-
import { type WorkspaceTree } from "./workspace-tree";
|
|
4
|
+
import { type Rule } from "./capability/rule.js";
|
|
5
|
+
import { ModelRegistry } from "./config/model-registry.js";
|
|
6
|
+
import { type PromptTemplate } from "./config/prompt-templates.js";
|
|
7
|
+
import { Settings, type SkillsSettings } from "./config/settings.js";
|
|
8
|
+
import "./discovery/index.js";
|
|
9
|
+
import { type CustomCommandsLoadResult } from "./extensibility/custom-commands/index.js";
|
|
10
|
+
import { type ToolPathWithSource } from "./extensibility/custom-tools/index.js";
|
|
11
|
+
import type { CustomTool } from "./extensibility/custom-tools/types.js";
|
|
12
|
+
import { type ExtensionFactory, type ExtensionUIContext, type LoadExtensionsResult, type ToolDefinition } from "./extensibility/extensions/index.js";
|
|
13
|
+
import { type Skill, type SkillWarning } from "./extensibility/skills.js";
|
|
14
|
+
import { type FileSlashCommand } from "./extensibility/slash-commands.js";
|
|
15
|
+
import type { HindsightSessionState } from "./hindsight/state.js";
|
|
16
|
+
import { type LocalProtocolOptions } from "./internal-urls/index.js";
|
|
17
|
+
import { MCPManager, type MCPToolsLoadResult } from "./mcp/index.js";
|
|
18
|
+
import type { MnemopiSessionState } from "./mnemopi/state.js";
|
|
19
|
+
import { AgentRegistry } from "./registry/agent-registry.js";
|
|
20
|
+
import { AgentSession } from "./session/agent-session.js";
|
|
21
|
+
import type { AuthStorage } from "./session/auth-storage.js";
|
|
22
|
+
import { SessionManager } from "./session/session-manager.js";
|
|
23
|
+
import { type BuildSystemPromptResult } from "./system-prompt.js";
|
|
24
|
+
import { type ConfiguredThinkingLevel } from "./thinking.js";
|
|
25
|
+
import { BashTool, BUILTIN_TOOLS, createTools, EditTool, EvalTool, GlobTool, GrepTool, HIDDEN_TOOLS, type LspStartupServerInfo, loadSshTool, ReadTool, ResolveTool, type Tool, type ToolSession, WebSearchTool, WriteTool } from "./tools/index.js";
|
|
26
|
+
import { EventBus } from "./utils/event-bus.js";
|
|
27
|
+
import { type WorkspaceTree } from "./workspace-tree.js";
|
|
28
28
|
export interface CreateAgentSessionOptions {
|
|
29
29
|
/** Working directory for project-local discovery. Default: getProjectDir() */
|
|
30
30
|
cwd?: string;
|
|
@@ -38,9 +38,13 @@ export interface CreateAgentSessionOptions {
|
|
|
38
38
|
modelRegistry?: ModelRegistry;
|
|
39
39
|
/** Model to use. Default: from settings, else first available */
|
|
40
40
|
model?: Model;
|
|
41
|
-
/** Raw model pattern
|
|
41
|
+
/** Raw model pattern(s) (e.g. from --model CLI flag) to resolve after extensions load.
|
|
42
42
|
* Used when model lookup is deferred because extension-provided models aren't registered yet. */
|
|
43
|
-
modelPattern?: string;
|
|
43
|
+
modelPattern?: string | string[];
|
|
44
|
+
/** Authenticated fallback selector for deferred subagent model patterns. */
|
|
45
|
+
modelPatternAuthFallback?: string;
|
|
46
|
+
/** Role name used to install retry fallbacks after deferred subagent patterns resolve. */
|
|
47
|
+
modelPatternFallbackRole?: string;
|
|
44
48
|
/** Thinking selector. Default: from settings, else unset */
|
|
45
49
|
thinkingLevel?: ConfiguredThinkingLevel;
|
|
46
50
|
/** Models available for cycling (Ctrl+P in interactive mode) */
|
|
@@ -223,16 +227,16 @@ export interface CreateAgentSessionResult {
|
|
|
223
227
|
}
|
|
224
228
|
export type DialectFormat = "auto" | "native" | Dialect;
|
|
225
229
|
export declare function resolveDialect(format: DialectFormat, model: (Pick<Model, "supportsTools"> & Partial<Pick<Model, "id">>) | undefined): Dialect | undefined;
|
|
226
|
-
export type { PromptTemplate } from "./config/prompt-templates";
|
|
227
|
-
export { Settings, type SkillsSettings } from "./config/settings";
|
|
228
|
-
export type { CustomCommand, CustomCommandFactory } from "./extensibility/custom-commands/types";
|
|
229
|
-
export type { CustomTool, CustomToolFactory } from "./extensibility/custom-tools/types";
|
|
230
|
-
export type * from "./extensibility/extensions";
|
|
231
|
-
export type { Skill } from "./extensibility/skills";
|
|
232
|
-
export type { FileSlashCommand } from "./extensibility/slash-commands";
|
|
233
|
-
export type { MCPManager, MCPServerConfig, MCPServerConnection, MCPToolsLoadResult } from "./mcp";
|
|
234
|
-
export type { Tool } from "./tools";
|
|
235
|
-
export { buildDirectoryTree, buildWorkspaceTree, type DirectoryTree, type WorkspaceTree } from "./workspace-tree";
|
|
230
|
+
export type { PromptTemplate } from "./config/prompt-templates.js";
|
|
231
|
+
export { Settings, type SkillsSettings } from "./config/settings.js";
|
|
232
|
+
export type { CustomCommand, CustomCommandFactory } from "./extensibility/custom-commands/types.js";
|
|
233
|
+
export type { CustomTool, CustomToolFactory } from "./extensibility/custom-tools/types.js";
|
|
234
|
+
export type * from "./extensibility/extensions/index.js";
|
|
235
|
+
export type { Skill } from "./extensibility/skills.js";
|
|
236
|
+
export type { FileSlashCommand } from "./extensibility/slash-commands.js";
|
|
237
|
+
export type { MCPManager, MCPServerConfig, MCPServerConnection, MCPToolsLoadResult } from "./mcp/index.js";
|
|
238
|
+
export type { Tool } from "./tools/index.js";
|
|
239
|
+
export { buildDirectoryTree, buildWorkspaceTree, type DirectoryTree, type WorkspaceTree } from "./workspace-tree.js";
|
|
236
240
|
export { BashTool, BUILTIN_TOOLS, createTools, EditTool, EvalTool, GlobTool, GrepTool, HIDDEN_TOOLS, loadSshTool, ReadTool, ResolveTool, type ToolSession, WebSearchTool, WriteTool, };
|
|
237
241
|
/**
|
|
238
242
|
* Create an AuthStorage instance.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SecretEntry } from "./obfuscator";
|
|
2
|
-
export { deobfuscateSessionContext, deobfuscateToolArguments, obfuscateMessages, obfuscateProviderContext, type SecretEntry, SecretObfuscator, } from "./obfuscator";
|
|
1
|
+
import type { SecretEntry } from "./obfuscator.js";
|
|
2
|
+
export { deobfuscateSessionContext, deobfuscateToolArguments, obfuscateMessages, obfuscateProviderContext, type SecretEntry, SecretObfuscator, } from "./obfuscator.js";
|
|
3
3
|
/**
|
|
4
4
|
* Load secrets from project-local and global secrets.yml files.
|
|
5
5
|
* Project-local entries override global entries with matching content.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AgentMessage } from "@oh-my-pi/pi-agent-core";
|
|
2
2
|
import type { AssistantMessage, Context, Message } from "@oh-my-pi/pi-ai";
|
|
3
|
-
import type { SessionContext } from "../session/session-context";
|
|
3
|
+
import type { SessionContext } from "../session/session-context.js";
|
|
4
4
|
export interface SecretEntry {
|
|
5
5
|
type: "plain" | "regex";
|
|
6
6
|
content: string;
|
|
@@ -18,43 +18,43 @@ import { type CompactionResult, type ShakeConfig } from "@oh-my-pi/pi-agent-core
|
|
|
18
18
|
import type { AssistantMessage, Context, ImageContent, Message, MessageAttribution, Model, ProviderSessionState, ResetCreditAccountStatus, ResetCreditRedeemOutcome, ResetCreditTarget, ServiceTier, ServiceTierByFamily, ServiceTierFamily, SimpleStreamOptions, TextContent, ToolChoice, UsageReport } from "@oh-my-pi/pi-ai";
|
|
19
19
|
import { Effort } from "@oh-my-pi/pi-ai";
|
|
20
20
|
import { postmortem } from "@oh-my-pi/pi-utils";
|
|
21
|
-
import { type AdvisorConfig } from "../advisor";
|
|
22
|
-
import { type AsyncJob, type AsyncJobDeliveryState, AsyncJobManager } from "../async";
|
|
23
|
-
import type { Rule } from "../capability/rule";
|
|
24
|
-
import type { ModelRegistry } from "../config/model-registry";
|
|
25
|
-
import { type ResolvedModelRoleValue } from "../config/model-resolver";
|
|
26
|
-
import { type PromptTemplate } from "../config/prompt-templates";
|
|
27
|
-
import type { Settings, SkillsSettings } from "../config/settings";
|
|
28
|
-
import { RawSseDebugBuffer } from "../debug/raw-sse-buffer";
|
|
29
|
-
import { type PythonResult } from "../eval/py/executor";
|
|
30
|
-
import { type BashResult } from "../exec/bash-executor";
|
|
31
|
-
import type { TtsrManager } from "../export/ttsr";
|
|
32
|
-
import type { LoadedCustomCommand } from "../extensibility/custom-commands";
|
|
33
|
-
import type { CustomTool } from "../extensibility/custom-tools/types";
|
|
34
|
-
import type { ExtensionRunner } from "../extensibility/extensions";
|
|
35
|
-
import type { CompactOptions, ContextUsage } from "../extensibility/extensions/types";
|
|
36
|
-
import type { RecoveredRetryError } from "../extensibility/shared-events";
|
|
37
|
-
import type { Skill, SkillWarning } from "../extensibility/skills";
|
|
38
|
-
import { type FileSlashCommand } from "../extensibility/slash-commands";
|
|
39
|
-
import { GoalRuntime } from "../goals/runtime";
|
|
40
|
-
import type { Goal, GoalModeState } from "../goals/state";
|
|
41
|
-
import type { HindsightSessionState } from "../hindsight/state";
|
|
42
|
-
import { type IrcMessage } from "../irc/bus";
|
|
43
|
-
import { type MnemopiSessionState } from "../mnemopi/state";
|
|
44
|
-
import type { PlanModeState } from "../plan-mode/state";
|
|
45
|
-
import { type SecretObfuscator } from "../secrets/obfuscator";
|
|
46
|
-
import { type ConfiguredThinkingLevel } from "../thinking";
|
|
47
|
-
import { type DiscoverableTool, type DiscoverableToolSearchIndex } from "../tool-discovery/tool-index";
|
|
48
|
-
import type { CheckpointState, CompletedRewindState } from "../tools/checkpoint";
|
|
49
|
-
import { type TodoItem, type TodoPhase } from "../tools/todo";
|
|
50
|
-
import type { ClientBridge } from "./client-bridge";
|
|
51
|
-
import { type CustomMessage } from "./messages";
|
|
52
|
-
import type { BuildSessionContextOptions, SessionContext } from "./session-context";
|
|
53
|
-
import type { BranchSummaryEntry, NewSessionOptions } from "./session-entries";
|
|
54
|
-
import { type SessionManager } from "./session-manager";
|
|
55
|
-
import type { ShakeMode, ShakeResult } from "./shake-types";
|
|
56
|
-
import { ToolChoiceQueue } from "./tool-choice-queue";
|
|
57
|
-
import { YieldQueue } from "./yield-queue";
|
|
21
|
+
import { type AdvisorConfig } from "../advisor/index.js";
|
|
22
|
+
import { type AsyncJob, type AsyncJobDeliveryState, AsyncJobManager } from "../async/index.js";
|
|
23
|
+
import type { Rule } from "../capability/rule.js";
|
|
24
|
+
import type { ModelRegistry } from "../config/model-registry.js";
|
|
25
|
+
import { type ResolvedModelRoleValue } from "../config/model-resolver.js";
|
|
26
|
+
import { type PromptTemplate } from "../config/prompt-templates.js";
|
|
27
|
+
import type { Settings, SkillsSettings } from "../config/settings.js";
|
|
28
|
+
import { RawSseDebugBuffer } from "../debug/raw-sse-buffer.js";
|
|
29
|
+
import { type PythonResult } from "../eval/py/executor.js";
|
|
30
|
+
import { type BashResult } from "../exec/bash-executor.js";
|
|
31
|
+
import type { TtsrManager } from "../export/ttsr.js";
|
|
32
|
+
import type { LoadedCustomCommand } from "../extensibility/custom-commands/index.js";
|
|
33
|
+
import type { CustomTool } from "../extensibility/custom-tools/types.js";
|
|
34
|
+
import type { ExtensionRunner } from "../extensibility/extensions/index.js";
|
|
35
|
+
import type { CompactOptions, ContextUsage } from "../extensibility/extensions/types.js";
|
|
36
|
+
import type { RecoveredRetryError } from "../extensibility/shared-events.js";
|
|
37
|
+
import type { Skill, SkillWarning } from "../extensibility/skills.js";
|
|
38
|
+
import { type FileSlashCommand } from "../extensibility/slash-commands.js";
|
|
39
|
+
import { GoalRuntime } from "../goals/runtime.js";
|
|
40
|
+
import type { Goal, GoalModeState } from "../goals/state.js";
|
|
41
|
+
import type { HindsightSessionState } from "../hindsight/state.js";
|
|
42
|
+
import { type IrcMessage } from "../irc/bus.js";
|
|
43
|
+
import { type MnemopiSessionState } from "../mnemopi/state.js";
|
|
44
|
+
import type { PlanModeState } from "../plan-mode/state.js";
|
|
45
|
+
import { type SecretObfuscator } from "../secrets/obfuscator.js";
|
|
46
|
+
import { type ConfiguredThinkingLevel } from "../thinking.js";
|
|
47
|
+
import { type DiscoverableTool, type DiscoverableToolSearchIndex } from "../tool-discovery/tool-index.js";
|
|
48
|
+
import type { CheckpointState, CompletedRewindState } from "../tools/checkpoint.js";
|
|
49
|
+
import { type TodoItem, type TodoPhase } from "../tools/todo.js";
|
|
50
|
+
import type { ClientBridge } from "./client-bridge.js";
|
|
51
|
+
import { type CustomMessage, type CustomMessagePayload } from "./messages.js";
|
|
52
|
+
import type { BuildSessionContextOptions, SessionContext } from "./session-context.js";
|
|
53
|
+
import type { BranchSummaryEntry, NewSessionOptions } from "./session-entries.js";
|
|
54
|
+
import { type SessionManager } from "./session-manager.js";
|
|
55
|
+
import type { ShakeMode, ShakeResult } from "./shake-types.js";
|
|
56
|
+
import { ToolChoiceQueue } from "./tool-choice-queue.js";
|
|
57
|
+
import { YieldQueue } from "./yield-queue.js";
|
|
58
58
|
/** Session-specific events that extend the core AgentEvent */
|
|
59
59
|
export type AgentSessionEvent = AgentEvent | {
|
|
60
60
|
type: "auto_compaction_start";
|
|
@@ -349,6 +349,15 @@ export interface PromptOptions {
|
|
|
349
349
|
/** Skip pre-send compaction checks for this prompt (internal use for maintenance flows). */
|
|
350
350
|
skipCompactionCheck?: boolean;
|
|
351
351
|
}
|
|
352
|
+
/** Options for AgentSession.followUp() */
|
|
353
|
+
export interface FollowUpOptions {
|
|
354
|
+
/** Enqueue as a hidden developer message (agent-attributed by default) instead of a user follow-up. */
|
|
355
|
+
synthetic?: boolean;
|
|
356
|
+
/** Whether to expand file-based prompt templates (default: true). */
|
|
357
|
+
expandPromptTemplates?: boolean;
|
|
358
|
+
/** Explicit billing/initiator attribution. Defaults to `agent` for synthetic follow-ups. */
|
|
359
|
+
attribution?: MessageAttribution;
|
|
360
|
+
}
|
|
352
361
|
/** Result from a handoff operation. */
|
|
353
362
|
export interface HandoffResult {
|
|
354
363
|
document: string;
|
|
@@ -772,8 +781,12 @@ export declare class AgentSession {
|
|
|
772
781
|
steer(text: string, images?: ImageContent[]): Promise<void>;
|
|
773
782
|
/**
|
|
774
783
|
* Queue a follow-up message to process after the agent would otherwise stop.
|
|
784
|
+
* Set `options.synthetic` to enqueue a hidden developer message (agent-attributed
|
|
785
|
+
* by default) instead of a user-attributed follow-up; the plan-approval flow
|
|
786
|
+
* uses this to land its execution directive behind a queued user turn without
|
|
787
|
+
* flipping advisor auto-resume.
|
|
775
788
|
*/
|
|
776
|
-
followUp(text: string, images?: ImageContent[]): Promise<void>;
|
|
789
|
+
followUp(text: string, images?: ImageContent[], options?: FollowUpOptions): Promise<void>;
|
|
777
790
|
queueDeferredMessage(message: CustomMessage): void;
|
|
778
791
|
/**
|
|
779
792
|
* Send a custom message to the session. Creates a CustomMessageEntry.
|
|
@@ -789,7 +802,7 @@ export declare class AgentSession {
|
|
|
789
802
|
* agent-initiated turns. Callers that must mirror the resulting `agent_end`
|
|
790
803
|
* use this to avoid acting on a turn that never ran.
|
|
791
804
|
*/
|
|
792
|
-
sendCustomMessage<T = unknown>(message:
|
|
805
|
+
sendCustomMessage<T = unknown>(message: CustomMessagePayload<T>, options?: {
|
|
793
806
|
triggerTurn?: boolean;
|
|
794
807
|
deliverAs?: "steer" | "followUp" | "nextTurn";
|
|
795
808
|
queueChipText?: string;
|
|
@@ -976,10 +989,11 @@ export declare class AgentSession {
|
|
|
976
989
|
setServiceTierFamily(family: ServiceTierFamily, tier: ServiceTier | undefined): void;
|
|
977
990
|
/**
|
|
978
991
|
* `/fast on|off` targets the family of the currently selected model: it sets
|
|
979
|
-
* (or clears) that family's `priority` tier.
|
|
980
|
-
*
|
|
992
|
+
* (or clears) that family's `priority` tier. Returns `false` when the model
|
|
993
|
+
* has no service-tier family, so callers can report that fast mode is
|
|
994
|
+
* unavailable instead of claiming success.
|
|
981
995
|
*/
|
|
982
|
-
setFastMode(enabled: boolean):
|
|
996
|
+
setFastMode(enabled: boolean): boolean;
|
|
983
997
|
toggleFastMode(): boolean;
|
|
984
998
|
/**
|
|
985
999
|
* Get available thinking levels for current model.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AuthCredential, type AuthCredentialStore, type StoredAuthCredential } from "@oh-my-pi/pi-ai";
|
|
2
|
-
import type { RawSettings as Settings } from "../config/settings";
|
|
2
|
+
import type { RawSettings as Settings } from "../config/settings.js";
|
|
3
3
|
/**
|
|
4
4
|
* Unified SQLite storage for agent settings, model usage, and auth credentials.
|
|
5
5
|
* Delegates auth credential operations to AuthCredentialStore from @oh-my-pi/pi-ai.
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* boot without forcing a startup reorder.
|
|
22
22
|
*/
|
|
23
23
|
import { type AuthBrokerClientConfig, type DiscoverAuthStorageOptions, getAuthBrokerTokenFilePath } from "@oh-my-pi/pi-ai/auth-broker/discover";
|
|
24
|
-
import type { AuthStorage } from "./auth-storage";
|
|
24
|
+
import type { AuthStorage } from "./auth-storage.js";
|
|
25
25
|
export { type AuthBrokerClientConfig, getAuthBrokerTokenFilePath };
|
|
26
26
|
/**
|
|
27
27
|
* Read broker configuration. Returns null when the URL is missing
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
* read-only views are passed in so the predicate itself stays deterministic.
|
|
39
39
|
*/
|
|
40
40
|
import type { OAuthAccountIdentity, ResetCreditTarget, UsageReport } from "@oh-my-pi/pi-ai";
|
|
41
|
-
import type { CodexAutoRedeemMode } from "../config/settings-schema";
|
|
41
|
+
import type { CodexAutoRedeemMode } from "../config/settings-schema.js";
|
|
42
42
|
/** Weekly window counts as exhausted at `usedFraction >= 0.999` (used_percent >= 99.9). */
|
|
43
43
|
export declare const WEEKLY_EXHAUSTED_MIN_FRACTION = 0.999;
|
|
44
44
|
/** A weekly reset can never be more than one window length (7d) away; +1h slack for skew. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SessionStorage, SessionStorageStat, SessionStorageWriter, WriteTextAtomicOptions } from "./session-storage";
|
|
2
|
-
import { type SessionTitleUpdate } from "./session-title-slot";
|
|
1
|
+
import type { SessionStorage, SessionStorageStat, SessionStorageWriter, WriteTextAtomicOptions } from "./session-storage.js";
|
|
2
|
+
import { type SessionTitleUpdate } from "./session-title-slot.js";
|
|
3
3
|
export interface SessionStorageIndexEntry {
|
|
4
4
|
path: string;
|
|
5
5
|
size: number;
|
|
@@ -8,10 +8,18 @@ import type { AgentMessage } from "@oh-my-pi/pi-agent-core";
|
|
|
8
8
|
import { type BranchSummaryMessage, type CompactionSummaryMessage } from "@oh-my-pi/pi-agent-core/compaction/messages";
|
|
9
9
|
import type { AssistantMessage, ImageContent, Message, MessageAttribution, TextContent } from "@oh-my-pi/pi-ai";
|
|
10
10
|
export { type BranchSummaryMessage, type CompactionSummaryMessage, createBranchSummaryMessage, createCompactionSummaryMessage, createCustomMessage, } from "@oh-my-pi/pi-agent-core/compaction/messages";
|
|
11
|
-
import type { OutputMeta } from "../tools/output-meta";
|
|
11
|
+
import type { OutputMeta } from "../tools/output-meta.js";
|
|
12
12
|
export declare const SKILL_PROMPT_MESSAGE_TYPE = "skill-prompt";
|
|
13
13
|
export declare const LSP_LATE_DIAGNOSTIC_MESSAGE_TYPE = "lsp-late-diagnostic";
|
|
14
14
|
export declare const BACKGROUND_TAN_DISPATCH_MESSAGE_TYPE = "background-tan-dispatch";
|
|
15
|
+
/** Fallback type for extension-injected messages that omit a custom type. */
|
|
16
|
+
export declare const DEFAULT_CUSTOM_MESSAGE_TYPE = "custom-message";
|
|
17
|
+
/** Content shape accepted for extension-injected messages. */
|
|
18
|
+
export type CustomMessageContent = string | (TextContent | ImageContent)[];
|
|
19
|
+
/** Public input accepted by `pi.sendMessage` and `AgentSession.sendCustomMessage`. */
|
|
20
|
+
export type CustomMessagePayload<T = unknown> = string | Partial<Pick<CustomMessage<T>, "customType" | "content" | "display" | "details" | "attribution">>;
|
|
21
|
+
/** Custom message payload after applying runtime defaults. */
|
|
22
|
+
export type NormalizedCustomMessagePayload<T = unknown> = Pick<CustomMessage<T>, "customType" | "content" | "display" | "details" | "attribution">;
|
|
15
23
|
/** Custom message type for hidden interrupted-thinking continuity context. */
|
|
16
24
|
export declare const INTERRUPTED_THINKING_MESSAGE_TYPE = "interrupted-thinking";
|
|
17
25
|
/** Metadata persisted with a hidden interrupted-thinking continuity message. */
|
|
@@ -80,6 +88,13 @@ export declare function isSilentAbort(message: Pick<AssistantMessage, "errorId"
|
|
|
80
88
|
export declare const USER_INTERRUPT_LABEL = "Interrupted by user";
|
|
81
89
|
export declare function isUserInterruptAbort(message: Pick<AssistantMessage, "errorId" | "errorMessage">): boolean;
|
|
82
90
|
export declare function shouldRenderAbortReason(message: Pick<AssistantMessage, "errorId" | "errorMessage">): boolean;
|
|
91
|
+
/** A provider-rejection turn carrying nothing but the error flag: stopReason
|
|
92
|
+
* "error" with no text, thinking, or tool calls — e.g. a request the provider
|
|
93
|
+
* rejected before any output (an oversized 413 payload). Persisting it writes an
|
|
94
|
+
* empty assistant turn that replays on reload and re-sends the rejected context;
|
|
95
|
+
* the error is surfaced live (pinned) instead. A turn that streamed partial text,
|
|
96
|
+
* reasoning, or tool calls is NOT empty and stays in history. */
|
|
97
|
+
export declare function isEmptyErrorTurn(message: Pick<AssistantMessage, "stopReason" | "content">): boolean;
|
|
83
98
|
/** Sentinel `errorMessage` the agent stamps on any abort that carried no custom
|
|
84
99
|
* reason (bare `abort()`). Renderers treat it as "no specific reason given". */
|
|
85
100
|
export declare const GENERIC_ABORT_SENTINEL = "Request was aborted";
|
|
@@ -104,6 +119,10 @@ export declare const INTERNAL_DETAILS_FIELDS: readonly ["__queueChipText"];
|
|
|
104
119
|
* (null/non-object, or no listed fields present) so callers don't pay a
|
|
105
120
|
* clone cost on the common path. */
|
|
106
121
|
export declare function stripInternalDetailsFields<T>(details: T | undefined): T | undefined;
|
|
122
|
+
/** True when a persisted or extension-supplied value can be sent as custom-message content. */
|
|
123
|
+
export declare function isCustomMessageContent(content: unknown): content is CustomMessageContent;
|
|
124
|
+
/** Normalizes extension-provided custom message input before it reaches session state or disk. */
|
|
125
|
+
export declare function normalizeCustomMessagePayload<T = unknown>(payload: CustomMessagePayload<T> | unknown): NormalizedCustomMessagePayload<T>;
|
|
107
126
|
export declare function wrapSteeringForModel(messages: AgentMessage[]): AgentMessage[];
|
|
108
127
|
/**
|
|
109
128
|
* Strip image content blocks from `message` in place. Returns the count of
|
|
@@ -152,7 +171,7 @@ export interface PythonExecutionMessage {
|
|
|
152
171
|
export interface CustomMessage<T = unknown> {
|
|
153
172
|
role: "custom";
|
|
154
173
|
customType: string;
|
|
155
|
-
content:
|
|
174
|
+
content: CustomMessageContent;
|
|
156
175
|
display: boolean;
|
|
157
176
|
details?: T;
|
|
158
177
|
/** Who initiated this message for billing/attribution semantics. */
|
|
@@ -165,7 +184,7 @@ export interface CustomMessage<T = unknown> {
|
|
|
165
184
|
export interface HookMessage<T = unknown> {
|
|
166
185
|
role: "hookMessage";
|
|
167
186
|
customType: string;
|
|
168
|
-
content:
|
|
187
|
+
content: CustomMessageContent;
|
|
169
188
|
display: boolean;
|
|
170
189
|
details?: T;
|
|
171
190
|
/** Who initiated this message for billing/attribution semantics. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IndexedSessionStorage } from "./indexed-session-storage";
|
|
1
|
+
import { IndexedSessionStorage } from "./indexed-session-storage.js";
|
|
2
2
|
/**
|
|
3
3
|
* Minimal subset of the `bun:redis` `RedisClient` surface used by
|
|
4
4
|
* {@link RedisSessionStorage}. Keeping the contract narrow (and accepting any
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AgentMessage } from "@oh-my-pi/pi-agent-core";
|
|
2
2
|
import { type ServiceTierByFamily } from "@oh-my-pi/pi-ai";
|
|
3
|
-
import { type CompactionEntry, type SessionEntry } from "./session-entries";
|
|
3
|
+
import { type CompactionEntry, type SessionEntry } from "./session-entries.js";
|
|
4
4
|
export interface SessionContext {
|
|
5
5
|
messages: AgentMessage[];
|
|
6
6
|
thinkingLevel?: string;
|
|
@@ -192,6 +192,10 @@ export interface UsageStatistics {
|
|
|
192
192
|
output: number;
|
|
193
193
|
cacheRead: number;
|
|
194
194
|
cacheWrite: number;
|
|
195
|
+
totalTokens: number;
|
|
196
|
+
orchestrationInput: number;
|
|
197
|
+
orchestrationOutput: number;
|
|
198
|
+
orchestrationCacheRead: number;
|
|
195
199
|
premiumRequests: number;
|
|
196
200
|
cost: number;
|
|
197
201
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AgentMessage } from "@oh-my-pi/pi-agent-core";
|
|
2
|
-
import { BlobStore } from "./blob-store";
|
|
3
|
-
import { type FileEntry, type SessionTitleSlotEntry } from "./session-entries";
|
|
4
|
-
import { type SessionStorage } from "./session-storage";
|
|
5
|
-
import { type SessionTitleUpdate } from "./session-title-slot";
|
|
2
|
+
import { BlobStore } from "./blob-store.js";
|
|
3
|
+
import { type FileEntry, type SessionTitleSlotEntry } from "./session-entries.js";
|
|
4
|
+
import { type SessionStorage } from "./session-storage.js";
|
|
5
|
+
import { type SessionTitleUpdate } from "./session-title-slot.js";
|
|
6
6
|
/** Parse session JSONL while stripping and folding the optional fixed title slot. */
|
|
7
7
|
export declare function parseSessionContent(content: string): {
|
|
8
8
|
entries: FileEntry[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ImageContent, Message, MessageAttribution, ServiceTierByFamily, TextContent } from "@oh-my-pi/pi-ai";
|
|
2
|
-
import { ArtifactManager } from "./artifacts";
|
|
3
|
-
import { type BlobPutOptions, type BlobPutResult } from "./blob-store";
|
|
4
|
-
import { type BashExecutionMessage, type CustomMessage, type FileMentionMessage, type HookMessage, type PythonExecutionMessage } from "./messages";
|
|
5
|
-
import { type BuildSessionContextOptions, type SessionContext } from "./session-context";
|
|
6
|
-
import { type NewSessionOptions, type SessionEntry, type SessionHeader, type SessionTitleSource, type SessionTreeNode, type UsageStatistics } from "./session-entries";
|
|
7
|
-
import { type SessionInfo } from "./session-listing";
|
|
8
|
-
import { type SessionStorage } from "./session-storage";
|
|
2
|
+
import { ArtifactManager } from "./artifacts.js";
|
|
3
|
+
import { type BlobPutOptions, type BlobPutResult } from "./blob-store.js";
|
|
4
|
+
import { type BashExecutionMessage, type CustomMessage, type FileMentionMessage, type HookMessage, type PythonExecutionMessage } from "./messages.js";
|
|
5
|
+
import { type BuildSessionContextOptions, type SessionContext } from "./session-context.js";
|
|
6
|
+
import { type NewSessionOptions, type SessionEntry, type SessionHeader, type SessionTitleSource, type SessionTreeNode, type UsageStatistics } from "./session-entries.js";
|
|
7
|
+
import { type SessionInfo } from "./session-listing.js";
|
|
8
|
+
import { type SessionStorage } from "./session-storage.js";
|
|
9
9
|
export type ReadonlySessionManager = Pick<SessionManager, "getCwd" | "getSessionDir" | "getSessionId" | "getSessionFile" | "getSessionName" | "getArtifactsDir" | "getArtifactManager" | "allocateArtifactPath" | "saveArtifact" | "getArtifactPath" | "getLeafId" | "getLeafEntry" | "getEntry" | "getLabel" | "getBranch" | "getHeader" | "getEntries" | "getTree" | "getUsageStatistics" | "putBlob" | "putBlobSync">;
|
|
10
10
|
interface SessionManagerStateSnapshot {
|
|
11
11
|
cwd: string;
|
|
@@ -18,6 +18,7 @@ interface SessionManagerStateSnapshot {
|
|
|
18
18
|
hasTitleSlot: boolean;
|
|
19
19
|
onDisk: boolean;
|
|
20
20
|
needsRewrite: boolean;
|
|
21
|
+
draftOnlySessionCleanupArmed: boolean;
|
|
21
22
|
header: SessionHeader;
|
|
22
23
|
entries: SessionEntry[];
|
|
23
24
|
}
|
|
@@ -172,7 +173,7 @@ export declare class SessionManager {
|
|
|
172
173
|
* @param details Optional extension-specific metadata (not sent to LLM)
|
|
173
174
|
* @param attribution Who initiated this message for billing/attribution semantics
|
|
174
175
|
*/
|
|
175
|
-
appendCustomMessageEntry<T = unknown>(customType: string, content: string | (TextContent | ImageContent)[], display: boolean, details?: T, attribution?: MessageAttribution): string;
|
|
176
|
+
appendCustomMessageEntry<T = unknown>(customType: string | undefined, content: string | (TextContent | ImageContent)[] | undefined, display: boolean | undefined, details?: T, attribution?: MessageAttribution | undefined): string;
|
|
176
177
|
/**
|
|
177
178
|
* Append an MCP tool selection entry recording the discovery-selected MCP tools.
|
|
178
179
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SessionStorage } from "./session-storage";
|
|
1
|
+
import type { SessionStorage } from "./session-storage.js";
|
|
2
2
|
export declare function resolveManagedSessionRoot(sessionDir: string, cwd: string): string | undefined;
|
|
3
3
|
/**
|
|
4
4
|
* Compute the default session directory for a cwd.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BlobStore } from "./blob-store";
|
|
2
|
-
import type { FileEntry } from "./session-entries";
|
|
1
|
+
import { type BlobStore } from "./blob-store.js";
|
|
2
|
+
import type { FileEntry } from "./session-entries.js";
|
|
3
3
|
export declare function isImageBlock(value: unknown): value is {
|
|
4
4
|
type: "image";
|
|
5
5
|
data: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SessionTitleSlotEntry, type SessionTitleSource } from "./session-entries";
|
|
1
|
+
import { type SessionTitleSlotEntry, type SessionTitleSource } from "./session-entries.js";
|
|
2
2
|
/** Semantic title update persisted by session storage backends. */
|
|
3
3
|
export interface SessionTitleUpdate {
|
|
4
4
|
title?: string;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* and OpenRouter response-cache hits across advisor calls.
|
|
12
12
|
*/
|
|
13
13
|
import type { StreamFn } from "@oh-my-pi/pi-agent-core";
|
|
14
|
-
import { type Settings } from "../config/settings";
|
|
14
|
+
import { type Settings } from "../config/settings.js";
|
|
15
15
|
/**
|
|
16
16
|
* Build a {@link StreamFn} that reads provider routing/guard settings from
|
|
17
17
|
* `settings` per call and forwards to `base` (defaults to `streamSimple`).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IndexedSessionStorage, type SessionStorageBackend } from "./indexed-session-storage";
|
|
1
|
+
import { IndexedSessionStorage, type SessionStorageBackend } from "./indexed-session-storage.js";
|
|
2
2
|
/**
|
|
3
3
|
* Supported `bun:sql` adapter dialects. `Bun.SQL` reports this string on
|
|
4
4
|
* `client.options.adapter`; we detect it once at construction and pick the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type AssistantMessage } from "@oh-my-pi/pi-ai";
|
|
2
|
-
import type { ModelRegistry } from "../config/model-registry";
|
|
3
|
-
import type { Settings } from "../config/settings";
|
|
2
|
+
import type { ModelRegistry } from "../config/model-registry.js";
|
|
3
|
+
import type { Settings } from "../config/settings.js";
|
|
4
4
|
export interface ClassifyUnexpectedStopDeps {
|
|
5
5
|
settings: Settings;
|
|
6
6
|
registry: ModelRegistry;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AvailableCommand } from "@agentclientprotocol/sdk";
|
|
2
|
-
import type { AcpBuiltinSlashCommandResult, SlashCommandRuntime } from "./types";
|
|
3
|
-
export type { AcpBuiltinSlashCommandResult } from "./types";
|
|
2
|
+
import type { AcpBuiltinSlashCommandResult, SlashCommandRuntime } from "./types.js";
|
|
3
|
+
export type { AcpBuiltinSlashCommandResult } from "./types.js";
|
|
4
4
|
/**
|
|
5
5
|
* All names (primary + aliases) that are reserved by ACP builtins. Used to
|
|
6
6
|
* filter out extension commands that would shadow a builtin or its alias at
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { AvailableCommand } from "@agentclientprotocol/sdk";
|
|
2
|
-
import type { SkillsSettings } from "../config/settings";
|
|
3
|
-
import type { LoadedCustomCommand } from "../extensibility/custom-commands";
|
|
4
|
-
import type { ExtensionRunner } from "../extensibility/extensions";
|
|
5
|
-
import { type Skill } from "../extensibility/skills";
|
|
6
|
-
import { type FileSlashCommand } from "../extensibility/slash-commands";
|
|
2
|
+
import type { SkillsSettings } from "../config/settings.js";
|
|
3
|
+
import type { LoadedCustomCommand } from "../extensibility/custom-commands/index.js";
|
|
4
|
+
import type { ExtensionRunner } from "../extensibility/extensions/index.js";
|
|
5
|
+
import { type Skill } from "../extensibility/skills.js";
|
|
6
|
+
import { type FileSlashCommand } from "../extensibility/slash-commands.js";
|
|
7
7
|
export type AvailableSlashCommandSource = "builtin" | "skill" | "extension" | "custom" | "mcp_prompt" | "file";
|
|
8
8
|
export interface InternalAvailableSlashCommand {
|
|
9
9
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type AutocompleteItem } from "@oh-my-pi/pi-tui";
|
|
2
|
-
import type { BuiltinSlashCommand, ParsedSlashCommand, SlashCommandResult, SlashCommandRuntime, SlashCommandSpec, TuiSlashCommandRuntime } from "./types";
|
|
3
|
-
export type { BuiltinSlashCommand, SubcommandDef } from "./types";
|
|
2
|
+
import type { BuiltinSlashCommand, ParsedSlashCommand, SlashCommandResult, SlashCommandRuntime, SlashCommandSpec, TuiSlashCommandRuntime } from "./types.js";
|
|
3
|
+
export type { BuiltinSlashCommand, SubcommandDef } from "./types.js";
|
|
4
4
|
/** TUI-specific runtime accepted by `executeBuiltinSlashCommand`. */
|
|
5
5
|
export type BuiltinSlashCommandRuntime = TuiSlashCommandRuntime;
|
|
6
6
|
export interface TuiBuiltinSlashCommand extends BuiltinSlashCommand {
|