@ashx-j/lunr 0.2.11 → 0.2.13
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 +13 -0
- package/README.md +211 -236
- package/dist/builtin-extensions/ashxj-tui.d.ts +3 -0
- package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.js +28 -11
- package/dist/builtin-extensions/ashxj-tui.js.map +1 -1
- package/dist/builtin-extensions/index.d.ts.map +1 -1
- package/dist/builtin-extensions/index.js +0 -2
- package/dist/builtin-extensions/index.js.map +1 -1
- package/dist/builtin-extensions/lunr-cron.d.ts +1 -1
- package/dist/builtin-extensions/lunr-cron.d.ts.map +1 -1
- package/dist/builtin-extensions/lunr-cron.js +1 -1
- package/dist/builtin-extensions/lunr-cron.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/chain-validation.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/chain-validation.js +3 -3
- package/dist/builtin-extensions/pi-subagents/src/extension/chain-validation.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/doctor.d.ts +0 -2
- package/dist/builtin-extensions/pi-subagents/src/extension/doctor.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/doctor.js +1 -23
- package/dist/builtin-extensions/pi-subagents/src/extension/doctor.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.js +6 -7
- package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js +7 -14
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts +12 -9
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js +38 -34
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts +3 -3
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js +32 -47
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.d.ts +2 -2
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts +7 -10
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js +90 -109
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.d.ts +3 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.js +37 -50
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/run-status.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/run-status.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/run-status.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/scheduled-runs.d.ts +4 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/scheduled-runs.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/scheduled-runs.js +5 -5
- package/dist/builtin-extensions/pi-subagents/src/runs/background/scheduled-runs.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js +31 -13
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-clarify.d.ts +2 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-clarify.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-clarify.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts +4 -3
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js +48 -20
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.d.ts +2 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js +90 -64
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts +6 -8
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js +262 -161
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.d.ts +2 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.js +24 -33
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts +25 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js +51 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/dynamic-fanout.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/dynamic-fanout.js +20 -3
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/dynamic-fanout.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts +4 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts +5 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js +9 -3
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js +2 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.d.ts +2 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.js +20 -17
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.d.ts +70 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js +153 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/settings.d.ts +13 -8
- package/dist/builtin-extensions/pi-subagents/src/shared/settings.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/settings.js +20 -51
- package/dist/builtin-extensions/pi-subagents/src/shared/settings.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts +80 -20
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.js +10 -2
- package/dist/builtin-extensions/pi-subagents/src/shared/types.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.d.ts +2 -2
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.js +20 -32
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts +2 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js +23 -449
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +2 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js +13 -11
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/runtime.d.ts +2 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/runtime.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/runtime.js +18 -17
- package/dist/builtin-extensions/pi-subagents/src/watchdog/runtime.js.map +1 -1
- package/dist/builtin-extensions/simple-pi-memory.d.ts +2 -2
- package/dist/builtin-extensions/simple-pi-memory.d.ts.map +1 -1
- package/dist/builtin-extensions/simple-pi-memory.js +41 -17
- package/dist/builtin-extensions/simple-pi-memory.js.map +1 -1
- package/dist/catalog/models.json +1 -1
- package/dist/catalog/providers/amazon-bedrock.json +1 -1
- package/dist/catalog/providers/azure-openai-responses.json +1 -1
- package/dist/catalog/providers/cloudflare-ai-gateway.json +1 -1
- package/dist/catalog/providers/cloudflare-workers-ai.json +1 -1
- package/dist/catalog/providers/fireworks.json +1 -1
- package/dist/catalog/providers/github-copilot.json +1 -1
- package/dist/catalog/providers/huggingface.json +1 -1
- package/dist/catalog/providers/minimax-cn.json +1 -1
- package/dist/catalog/providers/minimax.json +1 -1
- package/dist/catalog/providers/mistral.json +1 -1
- package/dist/catalog/providers/nvidia.json +1 -1
- package/dist/catalog/providers/openai.json +1 -1
- package/dist/catalog/providers/opencode-go.json +1 -1
- package/dist/catalog/providers/opencode.json +1 -1
- package/dist/catalog/providers/openrouter.json +1 -1
- package/dist/catalog/providers/qwen-cloud-cn.json +1 -1
- package/dist/catalog/providers/qwen-cloud.json +1 -1
- package/dist/catalog/providers/qwen-token-plan-cn.json +1 -1
- package/dist/catalog/providers/qwen-token-plan.json +1 -1
- package/dist/catalog/providers/together.json +1 -1
- package/dist/catalog/providers/vercel-ai-gateway.json +1 -1
- package/dist/catalog/providers/zai-coding-cn.json +1 -1
- package/dist/catalog/providers/zai.json +1 -1
- package/dist/catalog/publication.json +3 -3
- package/dist/core/agent-session.d.ts +7 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +34 -4
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/context-breakdown.d.ts +3 -1
- package/dist/core/context-breakdown.d.ts.map +1 -1
- package/dist/core/context-breakdown.js +5 -2
- package/dist/core/context-breakdown.js.map +1 -1
- package/dist/core/customize.d.ts +2 -0
- package/dist/core/customize.d.ts.map +1 -1
- package/dist/core/customize.js +6 -0
- package/dist/core/customize.js.map +1 -1
- package/dist/core/memory-cap.d.ts +4 -8
- package/dist/core/memory-cap.d.ts.map +1 -1
- package/dist/core/memory-cap.js +8 -8
- package/dist/core/memory-cap.js.map +1 -1
- package/dist/core/permissions.d.ts +2 -0
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +30 -14
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/plan-mode.d.ts.map +1 -1
- package/dist/core/plan-mode.js +1 -9
- package/dist/core/plan-mode.js.map +1 -1
- package/dist/core/rollback.d.ts.map +1 -1
- package/dist/core/rollback.js +1 -1
- package/dist/core/rollback.js.map +1 -1
- package/dist/core/settings-manager.d.ts +16 -5
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +37 -10
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +1 -5
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/subagent-permission-inherit.d.ts +34 -22
- package/dist/core/subagent-permission-inherit.d.ts.map +1 -1
- package/dist/core/subagent-permission-inherit.js +37 -80
- package/dist/core/subagent-permission-inherit.js.map +1 -1
- package/dist/core/swarm.d.ts.map +1 -1
- package/dist/core/swarm.js +13 -7
- package/dist/core/swarm.js.map +1 -1
- package/dist/core/system-prompt.d.ts +6 -4
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +38 -48
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/usage-adapters/openai-codex.d.ts +1 -1
- package/dist/core/usage-adapters/openai-codex.d.ts.map +1 -1
- package/dist/core/usage-adapters/openai-codex.js +22 -17
- package/dist/core/usage-adapters/openai-codex.js.map +1 -1
- package/dist/core/usage-service.d.ts +10 -1
- package/dist/core/usage-service.d.ts.map +1 -1
- package/dist/core/usage-service.js +17 -6
- package/dist/core/usage-service.js.map +1 -1
- package/dist/gateway/agent-bridge.d.ts.map +1 -1
- package/dist/gateway/agent-bridge.js +1 -4
- package/dist/gateway/agent-bridge.js.map +1 -1
- package/dist/gateway/cron.d.ts.map +1 -1
- package/dist/gateway/cron.js +1 -4
- package/dist/gateway/cron.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +0 -5
- package/dist/main.js.map +1 -1
- package/dist/migrations.d.ts +2 -0
- package/dist/migrations.d.ts.map +1 -1
- package/dist/migrations.js +21 -0
- package/dist/migrations.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +7 -4
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +122 -162
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/usage-view.d.ts +1 -1
- package/dist/modes/interactive/components/usage-view.d.ts.map +1 -1
- package/dist/modes/interactive/components/usage-view.js +7 -4
- package/dist/modes/interactive/components/usage-view.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +1 -2
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +55 -96
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/skill-tag-autocomplete.d.ts +13 -0
- package/dist/modes/interactive/skill-tag-autocomplete.d.ts.map +1 -0
- package/dist/modes/interactive/skill-tag-autocomplete.js +72 -0
- package/dist/modes/interactive/skill-tag-autocomplete.js.map +1 -0
- package/docs/compaction.md +23 -23
- package/docs/containerization.md +24 -24
- package/docs/custom-provider.md +18 -18
- package/docs/development.md +16 -15
- package/docs/docs.json +6 -2
- package/docs/extensions.md +82 -80
- package/docs/features.md +102 -0
- package/docs/index.md +25 -19
- package/docs/json.md +7 -7
- package/docs/keybindings.md +4 -4
- package/docs/models.md +2 -2
- package/docs/packages.md +38 -42
- package/docs/prompt-templates.md +4 -4
- package/docs/providers.md +22 -10
- package/docs/quickstart.md +81 -46
- package/docs/rpc.md +7 -13
- package/docs/sdk.md +43 -41
- package/docs/security.md +18 -18
- package/docs/session-format.md +9 -9
- package/docs/sessions.md +13 -12
- package/docs/settings.md +63 -24
- package/docs/shell-aliases.md +2 -2
- package/docs/skills.md +21 -11
- package/docs/terminal-setup.md +5 -5
- package/docs/termux.md +7 -7
- package/docs/themes.md +12 -14
- package/docs/tmux.md +4 -4
- package/docs/tui.md +23 -23
- package/docs/usage.md +112 -87
- package/docs/windows.md +10 -2
- package/examples/README.md +3 -1
- package/examples/extensions/README.md +6 -6
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/doom-overlay/README.md +2 -2
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/plan-mode/README.md +3 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/subagent/README.md +13 -11
- package/examples/extensions/todo.ts +2 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/examples/sdk/README.md +9 -5
- package/package.json +6 -7
- package/dist/builtin-extensions/lunr-behavior.d.ts +0 -44
- package/dist/builtin-extensions/lunr-behavior.d.ts.map +0 -1
- package/dist/builtin-extensions/lunr-behavior.js +0 -213
- package/dist/builtin-extensions/lunr-behavior.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/agents/context-builder.md +0 -46
- package/dist/builtin-extensions/pi-subagents/agents/deep-researcher.md +0 -36
- package/dist/builtin-extensions/pi-subagents/agents/delegate.md +0 -12
- package/dist/builtin-extensions/pi-subagents/agents/oracle.md +0 -73
- package/dist/builtin-extensions/pi-subagents/agents/planner.md +0 -55
- package/dist/builtin-extensions/pi-subagents/agents/research-writer.md +0 -37
- package/dist/builtin-extensions/pi-subagents/agents/researcher.md +0 -52
- package/dist/builtin-extensions/pi-subagents/agents/reviewer.md +0 -79
- package/dist/builtin-extensions/pi-subagents/agents/scout.md +0 -50
- package/dist/builtin-extensions/pi-subagents/agents/worker.md +0 -55
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-management.d.ts +0 -20
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-management.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-management.js +0 -1273
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-management.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-memory.d.ts +0 -49
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-memory.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-memory.js +0 -252
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-memory.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-scope.d.ts +0 -3
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-scope.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-scope.js +0 -6
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-scope.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-selection.d.ts +0 -3
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-selection.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-selection.js +0 -23
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-selection.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-serializer.d.ts +0 -8
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-serializer.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-serializer.js +0 -143
- package/dist/builtin-extensions/pi-subagents/src/agents/agent-serializer.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agents.d.ts +0 -176
- package/dist/builtin-extensions/pi-subagents/src/agents/agents.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/agents.js +0 -1326
- package/dist/builtin-extensions/pi-subagents/src/agents/agents.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/chain-serializer.d.ts +0 -7
- package/dist/builtin-extensions/pi-subagents/src/agents/chain-serializer.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/chain-serializer.js +0 -307
- package/dist/builtin-extensions/pi-subagents/src/agents/chain-serializer.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/identity.d.ts +0 -8
- package/dist/builtin-extensions/pi-subagents/src/agents/identity.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/identity.js +0 -30
- package/dist/builtin-extensions/pi-subagents/src/agents/identity.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/proactive-skills.d.ts +0 -35
- package/dist/builtin-extensions/pi-subagents/src/agents/proactive-skills.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/agents/proactive-skills.js +0 -151
- package/dist/builtin-extensions/pi-subagents/src/agents/proactive-skills.js.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/profiles/profiles.d.ts +0 -131
- package/dist/builtin-extensions/pi-subagents/src/profiles/profiles.d.ts.map +0 -1
- package/dist/builtin-extensions/pi-subagents/src/profiles/profiles.js +0 -491
- package/dist/builtin-extensions/pi-subagents/src/profiles/profiles.js.map +0 -1
- package/dist/core/behavior-preset.d.ts +0 -60
- package/dist/core/behavior-preset.d.ts.map +0 -1
- package/dist/core/behavior-preset.js +0 -257
- package/dist/core/behavior-preset.js.map +0 -1
|
@@ -7,13 +7,12 @@ import * as fs from "node:fs";
|
|
|
7
7
|
import * as os from "node:os";
|
|
8
8
|
import * as path from "node:path";
|
|
9
9
|
import { getSupportedThinkingLevels, } from "@ashx-j/lunr-ai/compat";
|
|
10
|
-
import {
|
|
10
|
+
import { CombinedAutocompleteProvider, Container, collectImageMarkerIds, formatImageMarker, fuzzyFilter, isFocusable, Markdown, matchesKey, ProcessTerminal, Spacer, setKeybindings, Text, TruncatedText, TUI, visibleWidth, } from "@ashx-j/lunr-tui";
|
|
11
11
|
import chalk from "chalk";
|
|
12
12
|
import { spawn, spawnSync } from "child_process";
|
|
13
13
|
import { APP_NAME, APP_TITLE, appendDebugLog, CONFIG_DIR_NAME, getAgentDir, getAuthPath, getDebugLogPath, getDocsPath, getShareViewerUrl, VERSION, } from "../../config.js";
|
|
14
14
|
import { parseSkillBlock } from "../../core/agent-session.js";
|
|
15
15
|
import { SessionImportFileNotFoundError } from "../../core/agent-session-runtime.js";
|
|
16
|
-
import { applyBehaviorPreset, reconcileBehaviorPreset } from "../../core/behavior-preset.js";
|
|
17
16
|
import { CACHE_TTL_MS, collectCacheMisses, computeCacheWaste, detectCacheMiss, } from "../../core/cache-stats.js";
|
|
18
17
|
import { formatCatalogRefreshSummary } from "../../core/catalog-merge.js";
|
|
19
18
|
import { computeContextBreakdown } from "../../core/context-breakdown.js";
|
|
@@ -28,8 +27,6 @@ import { isValidProviderBaseUrl, parseModelIds, slugifyProviderId, upsertCustomP
|
|
|
28
27
|
import { defaultModelPerProvider, findExactModelReferenceMatch, resolveModelScope } from "../../core/model-resolver.js";
|
|
29
28
|
import { refreshModelCandidatesForInit } from "../../core/model-runtime.js";
|
|
30
29
|
import { getModelTiersBridge } from "../../core/model-tiers.js";
|
|
31
|
-
import { checkForUpdate, markUpdateNotified } from "../../core/update-check.js";
|
|
32
|
-
import { getUsageServiceBridge } from "../../core/usage-service.js";
|
|
33
30
|
import { registerPermissionModeBridge } from "../../core/permission-mode.js";
|
|
34
31
|
import { nextModeForGoal, registerPermissionModeControlBridge } from "../../core/permission-mode-control.js";
|
|
35
32
|
import { AUTO_MODE_ADDENDUM, getPermissionMode, nextPermissionMode, registerApprovalHandler, resetPermissions, restorePermissionModeAfterPlan, setPermissionMode, } from "../../core/permissions.js";
|
|
@@ -44,7 +41,8 @@ import { BUILTIN_SLASH_COMMANDS } from "../../core/slash-commands.js";
|
|
|
44
41
|
import { buildSwarmPrompt } from "../../core/swarm.js";
|
|
45
42
|
import { time } from "../../core/timings.js";
|
|
46
43
|
import { hasTrustRequiringProjectResources, ProjectTrustStore } from "../../core/trust-manager.js";
|
|
47
|
-
import {
|
|
44
|
+
import { checkForUpdate, markUpdateNotified } from "../../core/update-check.js";
|
|
45
|
+
import { getAllPlanUsageResults, getUsageServiceBridge } from "../../core/usage-service.js";
|
|
48
46
|
import { modelToUserEntry } from "../../core/user-models.js";
|
|
49
47
|
import { copyToClipboard, readClipboardText } from "../../utils/clipboard.js";
|
|
50
48
|
import { extensionForImageMimeType, readClipboardImage } from "../../utils/clipboard-image.js";
|
|
@@ -91,6 +89,7 @@ import { renderUsageBox } from "./components/usage-view.js";
|
|
|
91
89
|
import { UserMessageComponent } from "./components/user-message.js";
|
|
92
90
|
import { UserMessageSelectorComponent } from "./components/user-message-selector.js";
|
|
93
91
|
import { getModelSearchText } from "./model-search.js";
|
|
92
|
+
import { wrapSkillTagAutocomplete } from "./skill-tag-autocomplete.js";
|
|
94
93
|
import { computeSmoothRevealStep, countGraphemesBeforeToolCall, countMessageGraphemes, sliceMessageContent, } from "./smooth-streaming.js";
|
|
95
94
|
import { getAvailableThemes, getAvailableThemesWithPaths, getEditorTheme, getMarkdownTheme, getThemeByName, getThemeName, onThemeChange, setRegisteredThemes, stopThemeWatcher, Theme, theme, } from "./theme/theme.js";
|
|
96
95
|
import { InteractiveThemeController } from "./theme/theme-controller.js";
|
|
@@ -134,21 +133,6 @@ const INIT_EXISTING_FILE_INSTRUCTIONS = {
|
|
|
134
133
|
overwrite: "An AGENTS.md already exists — replace it entirely with the new content.",
|
|
135
134
|
append: "An AGENTS.md already exists — keep the existing content and only add missing sections; do not rewrite what is already there.",
|
|
136
135
|
};
|
|
137
|
-
function buildResearchPrompt(question, depth, breadth) {
|
|
138
|
-
return `[DEEP RESEARCH] Question: ${question}
|
|
139
|
-
Procedure: 1) Write a 3-line research brief decomposing this into ${breadth}
|
|
140
|
-
subtopics. 2) Launch ${breadth} deep-researcher subagents in ONE parallel call, one
|
|
141
|
-
per subtopic. 3) Reflect: list what's unanswered or conflicting. If gaps remain and
|
|
142
|
-
this is not round ${depth}, launch one more parallel round targeting the gaps.
|
|
143
|
-
4) Launch ONE research-writer subagent (chain after the last round) with all
|
|
144
|
-
findings; its output is the final report. 5) Save the report to
|
|
145
|
-
research-<yyyymmdd>-<slug>.md in the cwd and reply with the file path + the
|
|
146
|
-
5-line summary. Hard caps: ≤3 parallel rounds, ≤8 researchers per round, cite or
|
|
147
|
-
delete every claim. Failure rule: if web_search errors because no search provider
|
|
148
|
-
is configured, stop immediately and tell the user to configure a search provider
|
|
149
|
-
key (Brave/Tavily/Exa/OpenAI etc. in ~/.lunr settings or env vars) instead of
|
|
150
|
-
writing a half-researched report.`;
|
|
151
|
-
}
|
|
152
136
|
function isAnthropicSubscriptionAuthKey(apiKey) {
|
|
153
137
|
return typeof apiKey === "string" && apiKey.startsWith("sk-ant-oat");
|
|
154
138
|
}
|
|
@@ -284,8 +268,6 @@ export class InteractiveMode {
|
|
|
284
268
|
isBashMode = false;
|
|
285
269
|
// Track whether a /swarm orchestration turn is in flight (footer status)
|
|
286
270
|
swarmMode = false;
|
|
287
|
-
// Track whether a /research deep-research turn is in flight (footer status)
|
|
288
|
-
researchMode = false;
|
|
289
271
|
// lunr: mode in effect before the current plan stretch. Used by approve / `/plan off`
|
|
290
272
|
// / `/plan <text>` to leave plan. Shift+Tab and `/mode` pick the destination themselves.
|
|
291
273
|
previousPermissionMode;
|
|
@@ -530,11 +512,17 @@ export class InteractiveMode {
|
|
|
530
512
|
});
|
|
531
513
|
}
|
|
532
514
|
}
|
|
533
|
-
return new CombinedAutocompleteProvider([...slashCommands, ...templateCommands, ...extensionCommands, ...skillCommandList], this.sessionManager.getCwd(), this.fdPath)
|
|
515
|
+
return wrapSkillTagAutocomplete(new CombinedAutocompleteProvider([...slashCommands, ...templateCommands, ...extensionCommands, ...skillCommandList], this.sessionManager.getCwd(), this.fdPath), {
|
|
516
|
+
character: this.settingsManager.getSkillTagCharacter(),
|
|
517
|
+
skills: this.session.resourceLoader.getSkills().skills.map((skill) => ({
|
|
518
|
+
name: skill.name,
|
|
519
|
+
description: this.prefixAutocompleteDescription(skill.description, skill.sourceInfo),
|
|
520
|
+
})),
|
|
521
|
+
});
|
|
534
522
|
}
|
|
535
523
|
setupAutocompleteProvider() {
|
|
536
524
|
let provider = this.createBaseAutocompleteProvider();
|
|
537
|
-
const triggerCharacters = [];
|
|
525
|
+
const triggerCharacters = [...(provider.triggerCharacters ?? [])];
|
|
538
526
|
for (const wrapProvider of this.autocompleteProviderWrappers) {
|
|
539
527
|
provider = wrapProvider(provider);
|
|
540
528
|
triggerCharacters.push(...(provider.triggerCharacters ?? []));
|
|
@@ -2390,6 +2378,11 @@ export class InteractiveMode {
|
|
|
2390
2378
|
await this.handleUsageCommand();
|
|
2391
2379
|
return;
|
|
2392
2380
|
}
|
|
2381
|
+
if (text === "/fast" || text.startsWith("/fast ")) {
|
|
2382
|
+
this.editor.setText("");
|
|
2383
|
+
this.handleFastCommand(text === "/fast" ? "" : text.slice(6).trim());
|
|
2384
|
+
return;
|
|
2385
|
+
}
|
|
2393
2386
|
if (text === "/context") {
|
|
2394
2387
|
this.editor.setText("");
|
|
2395
2388
|
this.handleContextCommand();
|
|
@@ -2500,12 +2493,6 @@ export class InteractiveMode {
|
|
|
2500
2493
|
await this.handleSwarmCommand(task);
|
|
2501
2494
|
return;
|
|
2502
2495
|
}
|
|
2503
|
-
if (text === "/research" || text.startsWith("/research ")) {
|
|
2504
|
-
const args = text.startsWith("/research ") ? text.slice(10).trim() : "";
|
|
2505
|
-
this.editor.setText("");
|
|
2506
|
-
await this.handleResearchCommand(args);
|
|
2507
|
-
return;
|
|
2508
|
-
}
|
|
2509
2496
|
if (text === "/debug") {
|
|
2510
2497
|
this.handleDebugCommand();
|
|
2511
2498
|
this.editor.setText("");
|
|
@@ -2906,10 +2893,6 @@ export class InteractiveMode {
|
|
|
2906
2893
|
this.swarmMode = false;
|
|
2907
2894
|
this.setExtensionStatus("swarm", undefined);
|
|
2908
2895
|
}
|
|
2909
|
-
if (this.researchMode) {
|
|
2910
|
-
this.researchMode = false;
|
|
2911
|
-
this.setExtensionStatus("research", undefined);
|
|
2912
|
-
}
|
|
2913
2896
|
this.maybeAutoNameSession();
|
|
2914
2897
|
// lunr: capture tree-scope changes at turn boundary (bash side-effects).
|
|
2915
2898
|
captureTreeChanges(this.sessionManager.getCwd(), this.sessionManager.getSessionId());
|
|
@@ -3915,6 +3898,7 @@ export class InteractiveMode {
|
|
|
3915
3898
|
autoResizeImages: this.settingsManager.getImageAutoResize(),
|
|
3916
3899
|
blockImages: this.settingsManager.getBlockImages(),
|
|
3917
3900
|
enableSkillCommands: this.settingsManager.getEnableSkillCommands(),
|
|
3901
|
+
skillTagCharacter: this.settingsManager.getSkillTagCharacter(),
|
|
3918
3902
|
steeringMode: this.session.steeringMode,
|
|
3919
3903
|
followUpMode: this.session.followUpMode,
|
|
3920
3904
|
transport: this.settingsManager.getTransport(),
|
|
@@ -3941,8 +3925,8 @@ export class InteractiveMode {
|
|
|
3941
3925
|
clearOnShrink: this.settingsManager.getClearOnShrink(),
|
|
3942
3926
|
showTerminalProgress: this.settingsManager.getShowTerminalProgress(),
|
|
3943
3927
|
modelTiers: this.settingsManager.getModelTiers(),
|
|
3928
|
+
memoryEnabled: this.settingsManager.getMemoryEnabled(),
|
|
3944
3929
|
memoryCharCap: this.settingsManager.getMemoryCharCap(),
|
|
3945
|
-
behaviorPreset: reconcileBehaviorPreset(this.settingsManager),
|
|
3946
3930
|
searchCurator: getSearchCuratorSetting(),
|
|
3947
3931
|
// lunr: TUI customize settings
|
|
3948
3932
|
gutterRail: this.settingsManager.getGutterRail(),
|
|
@@ -3951,6 +3935,7 @@ export class InteractiveMode {
|
|
|
3951
3935
|
footerLsp: this.settingsManager.getFooterLsp(),
|
|
3952
3936
|
footerContext: this.settingsManager.getFooterContext(),
|
|
3953
3937
|
footerTokens: this.settingsManager.getFooterTokens(),
|
|
3938
|
+
footerCacheHitRate: this.settingsManager.getFooterCacheHitRate(),
|
|
3954
3939
|
footerTps: this.settingsManager.getFooterTps(),
|
|
3955
3940
|
footerStatuses: this.settingsManager.getFooterStatuses(),
|
|
3956
3941
|
footerGit: this.settingsManager.getFooterGit(),
|
|
@@ -3996,6 +3981,10 @@ export class InteractiveMode {
|
|
|
3996
3981
|
this.settingsManager.setEnableSkillCommands(enabled);
|
|
3997
3982
|
this.setupAutocompleteProvider();
|
|
3998
3983
|
},
|
|
3984
|
+
onSkillTagCharacterChange: (character) => {
|
|
3985
|
+
this.settingsManager.setSkillTagCharacter(character);
|
|
3986
|
+
this.setupAutocompleteProvider();
|
|
3987
|
+
},
|
|
3999
3988
|
onSteeringModeChange: (mode) => {
|
|
4000
3989
|
this.session.setSteeringMode(mode);
|
|
4001
3990
|
},
|
|
@@ -4132,15 +4121,10 @@ export class InteractiveMode {
|
|
|
4132
4121
|
onMemoryCharCapChange: (cap) => {
|
|
4133
4122
|
this.settingsManager.setMemoryCharCap(cap);
|
|
4134
4123
|
},
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
});
|
|
4139
|
-
if (result.ok) {
|
|
4140
|
-
this.showStatus(preset === "custom"
|
|
4141
|
-
? "Behavior preset: custom (file is source of truth)"
|
|
4142
|
-
: `Behavior preset: ${preset}`);
|
|
4143
|
-
}
|
|
4124
|
+
onMemoryEnabledChange: (enabled) => {
|
|
4125
|
+
this.settingsManager.setMemoryEnabled(enabled);
|
|
4126
|
+
this.session.refreshToolRegistry();
|
|
4127
|
+
this.showStatus(`Agent memory: ${enabled ? "on" : "off"}`);
|
|
4144
4128
|
},
|
|
4145
4129
|
onSearchCuratorChange: (setting) => {
|
|
4146
4130
|
if (!setSearchCuratorSetting(setting)) {
|
|
@@ -4166,6 +4150,9 @@ export class InteractiveMode {
|
|
|
4166
4150
|
onFooterTokensChange: (enabled) => {
|
|
4167
4151
|
this.settingsManager.setFooterTokens(enabled);
|
|
4168
4152
|
},
|
|
4153
|
+
onFooterCacheHitRateChange: (enabled) => {
|
|
4154
|
+
this.settingsManager.setFooterCacheHitRate(enabled);
|
|
4155
|
+
},
|
|
4169
4156
|
onFooterTpsChange: (enabled) => {
|
|
4170
4157
|
this.settingsManager.setFooterTps(enabled);
|
|
4171
4158
|
},
|
|
@@ -5609,54 +5596,6 @@ export class InteractiveMode {
|
|
|
5609
5596
|
this.setExtensionStatus("swarm", "swarm");
|
|
5610
5597
|
await this.sendUserMessageAfterDeferredBuiltins(buildSwarmPrompt(task));
|
|
5611
5598
|
}
|
|
5612
|
-
async handleResearchCommand(args) {
|
|
5613
|
-
const usage = "Usage: /research [--depth N] [--breadth N] <question> — deep research with cited sources. depth: reflection rounds (1-4, default 2); breadth: subtopics per round (1-8, default 4).";
|
|
5614
|
-
let depth = 2;
|
|
5615
|
-
let breadth = 4;
|
|
5616
|
-
const questionParts = [];
|
|
5617
|
-
const tokens = args.split(/\s+/).filter((t) => t.length > 0);
|
|
5618
|
-
for (let i = 0; i < tokens.length; i++) {
|
|
5619
|
-
const token = tokens[i];
|
|
5620
|
-
if (token === "--depth" || token === "--breadth") {
|
|
5621
|
-
const value = tokens[i + 1];
|
|
5622
|
-
if (value === undefined || !/^\d+$/.test(value)) {
|
|
5623
|
-
this.showStatus(usage);
|
|
5624
|
-
return;
|
|
5625
|
-
}
|
|
5626
|
-
if (token === "--depth") {
|
|
5627
|
-
depth = Math.min(4, Math.max(1, Number.parseInt(value, 10)));
|
|
5628
|
-
}
|
|
5629
|
-
else {
|
|
5630
|
-
breadth = Math.min(8, Math.max(1, Number.parseInt(value, 10)));
|
|
5631
|
-
}
|
|
5632
|
-
i++;
|
|
5633
|
-
}
|
|
5634
|
-
else if (token.startsWith("--")) {
|
|
5635
|
-
this.showStatus(usage);
|
|
5636
|
-
return;
|
|
5637
|
-
}
|
|
5638
|
-
else {
|
|
5639
|
-
questionParts.push(token);
|
|
5640
|
-
}
|
|
5641
|
-
}
|
|
5642
|
-
const question = questionParts.join(" ").trim();
|
|
5643
|
-
if (question.length === 0) {
|
|
5644
|
-
if (this.researchMode) {
|
|
5645
|
-
this.showStatus("Deep research is active — findings stream in as subagents report.");
|
|
5646
|
-
}
|
|
5647
|
-
else {
|
|
5648
|
-
this.showStatus(usage);
|
|
5649
|
-
}
|
|
5650
|
-
return;
|
|
5651
|
-
}
|
|
5652
|
-
if (this.session.isStreaming) {
|
|
5653
|
-
this.showWarning("Wait for the current response to finish before running /research.");
|
|
5654
|
-
return;
|
|
5655
|
-
}
|
|
5656
|
-
this.researchMode = true;
|
|
5657
|
-
this.setExtensionStatus("research", "research ● active");
|
|
5658
|
-
await this.sendUserMessageAfterDeferredBuiltins(buildResearchPrompt(question, depth, breadth));
|
|
5659
|
-
}
|
|
5660
5599
|
// lunr: /undo and /edit rewind the same session via navigateTree (no fork).
|
|
5661
5600
|
// /undo leaves the editor alone; /edit pastes the undone user text. /redo
|
|
5662
5601
|
// pops the previous leaf and navigates back.
|
|
@@ -6196,8 +6135,28 @@ export class InteractiveMode {
|
|
|
6196
6135
|
tools,
|
|
6197
6136
|
messages: this.session.messages,
|
|
6198
6137
|
contextWindow,
|
|
6138
|
+
globalAgentsPath: path.join(getAgentDir(), "AGENTS.md"),
|
|
6199
6139
|
});
|
|
6200
6140
|
}
|
|
6141
|
+
handleFastCommand(arg) {
|
|
6142
|
+
if (this.session.model?.provider !== "openai-codex") {
|
|
6143
|
+
this.showStatus("Fast mode is for OpenAI Codex subscriptions.");
|
|
6144
|
+
return;
|
|
6145
|
+
}
|
|
6146
|
+
const normalized = arg.toLowerCase();
|
|
6147
|
+
if (normalized === "status") {
|
|
6148
|
+
this.showStatus(`Fast mode is ${this.session.openaiFastMode ? "on" : "off"}.`);
|
|
6149
|
+
return;
|
|
6150
|
+
}
|
|
6151
|
+
if (normalized !== "" && normalized !== "on" && normalized !== "off") {
|
|
6152
|
+
this.showStatus("Usage: /fast [on|off|status]");
|
|
6153
|
+
return;
|
|
6154
|
+
}
|
|
6155
|
+
const enabled = normalized === "on" || (normalized === "" && !this.session.openaiFastMode);
|
|
6156
|
+
this.session.setOpenAIFastMode(enabled);
|
|
6157
|
+
this.showStatus(`Fast mode ${enabled ? "enabled" : "disabled"}.`);
|
|
6158
|
+
this.ui.requestRender();
|
|
6159
|
+
}
|
|
6201
6160
|
// lunr: /usage — current session only: token totals, live context split,
|
|
6202
6161
|
// context-window bar, and subscription plan usage.
|
|
6203
6162
|
async handleUsageCommand() {
|
|
@@ -6213,13 +6172,13 @@ export class InteractiveMode {
|
|
|
6213
6172
|
: undefined;
|
|
6214
6173
|
const context = this.session.getContextUsage();
|
|
6215
6174
|
const provider = this.session.model?.provider;
|
|
6216
|
-
const planResult =
|
|
6175
|
+
const planResult = await getAllPlanUsageResults(provider, this.session.modelRuntime);
|
|
6217
6176
|
const breakdown = this.collectUsageBreakdown();
|
|
6218
|
-
const lines = renderUsageBox({ sessionTotals, context, plan: planResult.
|
|
6177
|
+
const lines = renderUsageBox({ sessionTotals, context, plan: planResult.usages, breakdown }, this.ui.terminal.columns);
|
|
6219
6178
|
this.chatContainer.addChild(new Spacer(1));
|
|
6220
6179
|
this.chatContainer.addChild(new Text(lines.join("\n"), 1, 0));
|
|
6221
|
-
if (planResult.
|
|
6222
|
-
this.showStatus(planResult.
|
|
6180
|
+
if (planResult.errors.length > 0)
|
|
6181
|
+
this.showStatus(planResult.errors.join("\n"));
|
|
6223
6182
|
this.ui.requestRender();
|
|
6224
6183
|
}
|
|
6225
6184
|
// lunr: /context — estimated breakdown of what consumes the context window
|