@ashx-j/lunr 0.2.26 → 0.2.28
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 +25 -1
- package/LICENSE +22 -0
- package/dist/builtin-extensions/ashxj-thinking.d.ts +1 -1
- package/dist/builtin-extensions/ashxj-thinking.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-thinking.js +1 -1
- package/dist/builtin-extensions/ashxj-thinking.js.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.d.ts +11 -1
- package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.js +6 -10
- package/dist/builtin-extensions/ashxj-tui.js.map +1 -1
- package/dist/builtin-extensions/lunr-cron.d.ts +4 -5
- package/dist/builtin-extensions/lunr-cron.d.ts.map +1 -1
- package/dist/builtin-extensions/lunr-cron.js +94 -108
- package/dist/builtin-extensions/lunr-cron.js.map +1 -1
- package/dist/builtin-extensions/lunr-local-providers/local-servers.d.ts.map +1 -1
- package/dist/builtin-extensions/lunr-local-providers/local-servers.js +3 -1
- package/dist/builtin-extensions/lunr-local-providers/local-servers.js.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/accounting.d.ts.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/accounting.js +5 -2
- package/dist/builtin-extensions/narumiruna-pi-goal/src/accounting.js.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/commands.d.ts.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/commands.js +2 -2
- package/dist/builtin-extensions/narumiruna-pi-goal/src/commands.js.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.d.ts.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.js +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.js.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/runtime.d.ts.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/runtime.js +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/runtime.js.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.js +2 -2
- package/dist/builtin-extensions/pi-intercom/index.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/bemol-extension/index.d.ts +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/bemol-extension/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/bemol-extension/index.js +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/bemol-extension/index.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/index.js +1 -15
- package/dist/builtin-extensions/pi-lsp-extension/src/index.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-client.d.ts +6 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-client.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-client.js +187 -132
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-client.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-manager.d.ts +8 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-manager.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-manager.js +142 -112
- package/dist/builtin-extensions/pi-lsp-extension/src/lsp-manager.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/tools/code-rewrite.d.ts +12 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/tools/code-rewrite.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/tools/code-rewrite.js +14 -7
- package/dist/builtin-extensions/pi-lsp-extension/src/tools/code-rewrite.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/rewrite-engine.d.ts +11 -3
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/rewrite-engine.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/rewrite-engine.js +67 -41
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/rewrite-engine.js.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/search-engine.d.ts +4 -2
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/search-engine.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/search-engine.js +3 -0
- package/dist/builtin-extensions/pi-lsp-extension/src/tree-sitter/search-engine.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/commands.d.ts +2 -1
- package/dist/builtin-extensions/pi-mcp-adapter/commands.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/commands.js +6 -6
- package/dist/builtin-extensions/pi-mcp-adapter/commands.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/config.d.ts +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/config.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/config.js +11 -5
- package/dist/builtin-extensions/pi-mcp-adapter/config.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.js +2 -2
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tool-executor.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/host-html-template.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/host-html-template.js +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/host-html-template.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/index.js +48 -40
- package/dist/builtin-extensions/pi-mcp-adapter/index.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.js +3 -1
- package/dist/builtin-extensions/pi-mcp-adapter/init.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-auth-flow.d.ts +12 -40
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-auth-flow.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-auth-flow.js +166 -235
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-auth-flow.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-callback-server.d.ts +5 -0
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-callback-server.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-callback-server.js +43 -13
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-callback-server.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-oauth-provider.d.ts +14 -3
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-oauth-provider.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-oauth-provider.js +73 -21
- package/dist/builtin-extensions/pi-mcp-adapter/mcp-oauth-provider.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/proxy-modes.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/proxy-modes.js +4 -4
- package/dist/builtin-extensions/pi-mcp-adapter/proxy-modes.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.js +2 -2
- package/dist/builtin-extensions/pi-mcp-adapter/server-manager.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/state.d.ts +2 -0
- package/dist/builtin-extensions/pi-mcp-adapter/state.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/state.js.map +1 -1
- package/dist/builtin-extensions/pi-ollama-cloud/index.d.ts +1 -1
- package/dist/builtin-extensions/pi-ollama-cloud/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-ollama-cloud/index.js +1 -1
- package/dist/builtin-extensions/pi-ollama-cloud/index.js.map +1 -1
- package/dist/builtin-extensions/pi-ollama-cloud/models.d.ts +11 -5
- package/dist/builtin-extensions/pi-ollama-cloud/models.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-ollama-cloud/models.js +12 -32
- package/dist/builtin-extensions/pi-ollama-cloud/models.js.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/index.js +5 -3
- package/dist/builtin-extensions/pi-prompt-template-model/index.js.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.d.ts +2 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.js +21 -12
- package/dist/builtin-extensions/pi-prompt-template-model/prompt-loader.js.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.js +7 -24
- package/dist/builtin-extensions/pi-prompt-template-model/tool-manager.js.map +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 +39 -77
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/chain-root-attachment.d.ts +4 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/chain-root-attachment.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/chain-root-attachment.js +2 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/chain-root-attachment.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.d.ts +6 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.js +17 -31
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.js +7 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts +5 -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 +78 -42
- 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-execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js +8 -1
- 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 +0 -3
- 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 +134 -28
- 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.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js +26 -5
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts +7 -8
- 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 +60 -32
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/session-tokens.d.ts +7 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/session-tokens.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/session-tokens.js +70 -38
- package/dist/builtin-extensions/pi-subagents/src/shared/session-tokens.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts +9 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/utils.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/utils.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/utils.js +15 -5
- package/dist/builtin-extensions/pi-subagents/src/shared/utils.js.map +1 -1
- 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 +4 -3
- 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.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js +13 -62
- 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 +1 -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 +18 -9
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.js +3 -3
- package/dist/builtin-extensions/pi-subagents/src/watchdog/review.js.map +1 -1
- package/dist/builtin-extensions/pi-tps.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-tps.js +28 -17
- package/dist/builtin-extensions/pi-tps.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/activity.d.ts +1 -0
- package/dist/builtin-extensions/pi-web-access/activity.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/activity.js +27 -5
- package/dist/builtin-extensions/pi-web-access/activity.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/bounded-body.d.ts +3 -0
- package/dist/builtin-extensions/pi-web-access/bounded-body.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-web-access/bounded-body.js +43 -0
- package/dist/builtin-extensions/pi-web-access/bounded-body.js.map +1 -0
- package/dist/builtin-extensions/pi-web-access/content-page.d.ts +24 -0
- package/dist/builtin-extensions/pi-web-access/content-page.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-web-access/content-page.js +57 -0
- package/dist/builtin-extensions/pi-web-access/content-page.js.map +1 -0
- package/dist/builtin-extensions/pi-web-access/extract.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/extract.js +7 -2
- package/dist/builtin-extensions/pi-web-access/extract.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/github-extract.d.ts +0 -1
- package/dist/builtin-extensions/pi-web-access/github-extract.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/github-extract.js +147 -36
- package/dist/builtin-extensions/pi-web-access/github-extract.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/index.js +48 -73
- package/dist/builtin-extensions/pi-web-access/index.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/session-cleanup.d.ts +12 -4
- package/dist/builtin-extensions/pi-web-access/session-cleanup.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/session-cleanup.js +35 -12
- package/dist/builtin-extensions/pi-web-access/session-cleanup.js.map +1 -1
- package/dist/builtin-extensions/pi-web-access/storage.d.ts +9 -6
- package/dist/builtin-extensions/pi-web-access/storage.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/storage.js +36 -24
- package/dist/builtin-extensions/pi-web-access/storage.js.map +1 -1
- package/dist/builtin-extensions/simple-pi-memory.d.ts +1 -1
- package/dist/builtin-extensions/simple-pi-memory.d.ts.map +1 -1
- package/dist/builtin-extensions/simple-pi-memory.js +1 -1
- package/dist/builtin-extensions/simple-pi-memory.js.map +1 -1
- package/dist/catalog/models.json +1 -1
- package/dist/catalog/providers/google-vertex.json +1 -1
- package/dist/catalog/providers/google.json +1 -1
- package/dist/catalog/publication.json +3 -3
- package/dist/cli/install-cli.d.ts.map +1 -1
- package/dist/cli/install-cli.js +38 -30
- package/dist/cli/install-cli.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +13 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +75 -11
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts +1 -0
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +1 -0
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +46 -21
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +344 -126
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/browser/runtime.d.ts +2 -0
- package/dist/core/browser/runtime.d.ts.map +1 -1
- package/dist/core/browser/runtime.js +80 -45
- package/dist/core/browser/runtime.js.map +1 -1
- package/dist/core/browser/setup.d.ts.map +1 -1
- package/dist/core/browser/setup.js +12 -1
- package/dist/core/browser/setup.js.map +1 -1
- package/dist/core/cache-stats.d.ts +1 -1
- package/dist/core/cache-stats.d.ts.map +1 -1
- package/dist/core/cache-stats.js +1 -1
- package/dist/core/cache-stats.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts +2 -1
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +1 -0
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +5 -11
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +38 -92
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/computer-use/adapter.d.ts.map +1 -1
- package/dist/core/computer-use/adapter.js +7 -2
- package/dist/core/computer-use/adapter.js.map +1 -1
- package/dist/core/computer-use/image.d.ts.map +1 -1
- package/dist/core/computer-use/image.js +17 -5
- package/dist/core/computer-use/image.js.map +1 -1
- package/dist/core/computer-use/schemas.d.ts.map +1 -1
- package/dist/core/computer-use/schemas.js +23 -6
- package/dist/core/computer-use/schemas.js.map +1 -1
- package/dist/core/computer-use/workflow.d.ts.map +1 -1
- package/dist/core/computer-use/workflow.js +459 -119
- package/dist/core/computer-use/workflow.js.map +1 -1
- package/dist/core/context-breakdown.d.ts +2 -2
- package/dist/core/context-breakdown.d.ts.map +1 -1
- package/dist/core/context-breakdown.js +22 -20
- package/dist/core/context-breakdown.js.map +1 -1
- package/dist/core/cron/jobs.d.ts +26 -8
- package/dist/core/cron/jobs.d.ts.map +1 -1
- package/dist/core/cron/jobs.js +357 -232
- package/dist/core/cron/jobs.js.map +1 -1
- package/dist/core/cron/origin-context.d.ts +1 -0
- package/dist/core/cron/origin-context.d.ts.map +1 -1
- package/dist/core/cron/origin-context.js.map +1 -1
- package/dist/core/cron/scheduler.d.ts +22 -17
- package/dist/core/cron/scheduler.d.ts.map +1 -1
- package/dist/core/cron/scheduler.js +153 -73
- package/dist/core/cron/scheduler.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +1 -0
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +8 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +11 -1
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/footer-data-provider.d.ts +4 -0
- package/dist/core/footer-data-provider.d.ts.map +1 -1
- package/dist/core/footer-data-provider.js +22 -1
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/large-subagent-launch.d.ts +1 -1
- package/dist/core/large-subagent-launch.d.ts.map +1 -1
- package/dist/core/large-subagent-launch.js +7 -7
- package/dist/core/large-subagent-launch.js.map +1 -1
- package/dist/core/model-registry.d.ts +2 -0
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +5 -0
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-runtime.d.ts +4 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +40 -4
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/permissions.d.ts +3 -3
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +11 -35
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/plan-mode.d.ts +5 -13
- package/dist/core/plan-mode.d.ts.map +1 -1
- package/dist/core/plan-mode.js +126 -116
- package/dist/core/plan-mode.js.map +1 -1
- package/dist/core/project-trust.d.ts.map +1 -1
- package/dist/core/project-trust.js +1 -1
- package/dist/core/project-trust.js.map +1 -1
- package/dist/core/prompt-resource-bridge.d.ts +12 -0
- package/dist/core/prompt-resource-bridge.d.ts.map +1 -0
- package/dist/core/prompt-resource-bridge.js +9 -0
- package/dist/core/prompt-resource-bridge.js.map +1 -0
- package/dist/core/protected-targets.d.ts +6 -0
- package/dist/core/protected-targets.d.ts.map +1 -0
- package/dist/core/protected-targets.js +45 -0
- package/dist/core/protected-targets.js.map +1 -0
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +7 -0
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/rollback.d.ts +19 -3
- package/dist/core/rollback.d.ts.map +1 -1
- package/dist/core/rollback.js +172 -56
- package/dist/core/rollback.js.map +1 -1
- package/dist/core/runtime-credentials.d.ts +3 -0
- package/dist/core/runtime-credentials.d.ts.map +1 -1
- package/dist/core/runtime-credentials.js +14 -1
- package/dist/core/runtime-credentials.js.map +1 -1
- package/dist/core/sdk.d.ts +3 -0
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +1 -0
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager.d.ts +11 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +111 -33
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/session-ownership.d.ts.map +1 -1
- package/dist/core/session-ownership.js +8 -3
- package/dist/core/session-ownership.js.map +1 -1
- package/dist/core/session-retention.d.ts.map +1 -1
- package/dist/core/session-retention.js +18 -7
- package/dist/core/session-retention.js.map +1 -1
- package/dist/core/session-startup-settings.d.ts +10 -0
- package/dist/core/session-startup-settings.d.ts.map +1 -0
- package/dist/core/session-startup-settings.js +70 -0
- package/dist/core/session-startup-settings.js.map +1 -0
- package/dist/core/subscriptions.d.ts +16 -7
- package/dist/core/subscriptions.d.ts.map +1 -1
- package/dist/core/subscriptions.js +96 -55
- package/dist/core/subscriptions.js.map +1 -1
- package/dist/core/trust-manager.d.ts +2 -1
- package/dist/core/trust-manager.d.ts.map +1 -1
- package/dist/core/trust-manager.js +6 -1
- package/dist/core/trust-manager.js.map +1 -1
- package/dist/core/update-check.d.ts.map +1 -1
- package/dist/core/update-check.js.map +1 -1
- package/dist/core/usage-accounting.d.ts +47 -0
- package/dist/core/usage-accounting.d.ts.map +1 -0
- package/dist/core/usage-accounting.js +205 -0
- package/dist/core/usage-accounting.js.map +1 -0
- package/dist/core/usage-adapters/kimi-coding.d.ts +2 -2
- package/dist/core/usage-adapters/kimi-coding.d.ts.map +1 -1
- package/dist/core/usage-adapters/kimi-coding.js +2 -2
- package/dist/core/usage-adapters/kimi-coding.js.map +1 -1
- package/dist/core/usage-adapters/openai-codex.d.ts +3 -2
- package/dist/core/usage-adapters/openai-codex.d.ts.map +1 -1
- package/dist/core/usage-adapters/openai-codex.js +3 -3
- package/dist/core/usage-adapters/openai-codex.js.map +1 -1
- package/dist/core/usage-adapters/xai.d.ts +2 -2
- package/dist/core/usage-adapters/xai.d.ts.map +1 -1
- package/dist/core/usage-adapters/xai.js +3 -3
- package/dist/core/usage-adapters/xai.js.map +1 -1
- package/dist/core/usage-adapters/zai.d.ts +2 -2
- package/dist/core/usage-adapters/zai.d.ts.map +1 -1
- package/dist/core/usage-adapters/zai.js +2 -2
- package/dist/core/usage-adapters/zai.js.map +1 -1
- package/dist/core/usage-history.d.ts +1 -18
- package/dist/core/usage-history.d.ts.map +1 -1
- package/dist/core/usage-history.js +46 -114
- package/dist/core/usage-history.js.map +1 -1
- package/dist/core/usage-service.d.ts +9 -2
- package/dist/core/usage-service.d.ts.map +1 -1
- package/dist/core/usage-service.js +95 -50
- package/dist/core/usage-service.js.map +1 -1
- package/dist/gateway/agent-bridge.d.ts +9 -1
- package/dist/gateway/agent-bridge.d.ts.map +1 -1
- package/dist/gateway/agent-bridge.js +91 -37
- package/dist/gateway/agent-bridge.js.map +1 -1
- package/dist/gateway/buttons.d.ts +8 -1
- package/dist/gateway/buttons.d.ts.map +1 -1
- package/dist/gateway/buttons.js +76 -18
- package/dist/gateway/buttons.js.map +1 -1
- package/dist/gateway/commands.d.ts +1 -0
- package/dist/gateway/commands.d.ts.map +1 -1
- package/dist/gateway/commands.js +10 -4
- package/dist/gateway/commands.js.map +1 -1
- package/dist/gateway/cron.d.ts +12 -11
- package/dist/gateway/cron.d.ts.map +1 -1
- package/dist/gateway/cron.js +65 -56
- package/dist/gateway/cron.js.map +1 -1
- package/dist/gateway/index.d.ts.map +1 -1
- package/dist/gateway/index.js +2 -1
- package/dist/gateway/index.js.map +1 -1
- package/dist/gateway/mobile-commands.d.ts +1 -0
- package/dist/gateway/mobile-commands.d.ts.map +1 -1
- package/dist/gateway/mobile-commands.js +69 -15
- package/dist/gateway/mobile-commands.js.map +1 -1
- package/dist/gateway/presenter.d.ts +12 -2
- package/dist/gateway/presenter.d.ts.map +1 -1
- package/dist/gateway/presenter.js +73 -38
- package/dist/gateway/presenter.js.map +1 -1
- package/dist/gateway/router.d.ts +2 -2
- package/dist/gateway/router.d.ts.map +1 -1
- package/dist/gateway/router.js +17 -2
- package/dist/gateway/router.js.map +1 -1
- package/dist/gateway/service.d.ts +2 -0
- package/dist/gateway/service.d.ts.map +1 -1
- package/dist/gateway/service.js +153 -0
- package/dist/gateway/service.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +86 -33
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +6 -4
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/context-view.d.ts.map +1 -1
- package/dist/modes/interactive/components/context-view.js +2 -2
- package/dist/modes/interactive/components/context-view.js.map +1 -1
- package/dist/modes/interactive/components/copyable-text.d.ts.map +1 -1
- package/dist/modes/interactive/components/copyable-text.js +3 -2
- package/dist/modes/interactive/components/copyable-text.js.map +1 -1
- package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/extension-editor.js +1 -1
- package/dist/modes/interactive/components/extension-editor.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +8 -12
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/usage-view.d.ts +5 -0
- package/dist/modes/interactive/components/usage-view.d.ts.map +1 -1
- package/dist/modes/interactive/components/usage-view.js +21 -6
- package/dist/modes/interactive/components/usage-view.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +3 -7
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +151 -131
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/smooth-streaming.d.ts.map +1 -1
- package/dist/modes/interactive/smooth-streaming.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +2 -1
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/node-runtime/{adapter-VFG7WNPX.js → adapter-247RTYLS.js} +4 -5
- package/dist/node-runtime/agent-session-services-RTUGP3XR.js +54 -0
- package/dist/node-runtime/{brave-UWDA3I22.js → brave-2AFFAXNN.js} +1 -1
- package/dist/node-runtime/{builtin-extensions-I2HIFEMY.js → builtin-extensions-N4EUD6SB.js} +8 -7
- package/dist/node-runtime/{chunk-QH6YL7VK.js → chunk-252ZVPPF.js} +3 -3
- package/dist/node-runtime/{chunk-PCEW76PM.js → chunk-2OIPYKLZ.js} +6 -6
- package/dist/node-runtime/{chunk-XBWPBZBN.js → chunk-2SWW7KMW.js} +1 -1
- package/dist/node-runtime/{chunk-UQUCFAJ3.js → chunk-2VIW3IMF.js} +40 -7
- package/dist/node-runtime/{chunk-UOEDI7RP.js → chunk-4KNKQGHM.js} +2 -2
- package/dist/node-runtime/chunk-4QRUZ64T.js +1203 -0
- package/dist/node-runtime/{chunk-FQMM2EZ2.js → chunk-64XTQNLA.js} +29 -7
- package/dist/node-runtime/{chunk-SPVDBUOS.js → chunk-6O3IW3IA.js} +2 -2
- package/dist/node-runtime/{chunk-5ZQXRPMC.js → chunk-6ZZHGUSA.js} +2 -2
- package/dist/node-runtime/{chunk-WIF24I7G.js → chunk-APVM5NEU.js} +149 -144
- package/dist/node-runtime/{chunk-LWYIVUGV.js → chunk-B2IBAXNX.js} +48 -31
- package/dist/node-runtime/{chunk-M3LZLQW2.js → chunk-BDRGN3L2.js} +1 -0
- package/dist/node-runtime/{chunk-LJTIVM7I.js → chunk-BMRXLQWQ.js} +464 -160
- package/dist/node-runtime/{chunk-GJ2RDBRL.js → chunk-BYC6RKCN.js} +4 -2
- package/dist/node-runtime/{chunk-T4DA4XE7.js → chunk-DFMPRAQQ.js} +162 -82
- package/dist/node-runtime/{chunk-SN2KSMPQ.js → chunk-DQSCFU7R.js} +13 -7
- package/dist/node-runtime/{chunk-UVWCDQYF.js → chunk-E5DQGNJI.js} +455 -278
- package/dist/node-runtime/{chunk-4SBQAI4T.js → chunk-EBLAZVSA.js} +2058 -73
- package/dist/node-runtime/{chunk-CSFI6YXL.js → chunk-ES6PBSIE.js} +1 -1
- package/dist/node-runtime/{chunk-IF24A3FH.js → chunk-EVM653DD.js} +4 -4
- package/dist/node-runtime/{chunk-HTFRRDSF.js → chunk-F2SMQ6ES.js} +3 -2
- package/dist/node-runtime/chunk-F2V2F4ZG.js +114 -0
- package/dist/node-runtime/{chunk-IKU6Y7DL.js → chunk-FE3WZI7F.js} +9 -6
- package/dist/node-runtime/{chunk-6VYZ5UFP.js → chunk-FLGEEH27.js} +1 -1
- package/dist/node-runtime/{chunk-5EFIU3OM.js → chunk-FTKEZL27.js} +1 -1
- package/dist/node-runtime/{chunk-RGQAEOM5.js → chunk-FYIFPFXE.js} +23 -6
- package/dist/node-runtime/{chunk-HMBGROQK.js → chunk-GLDXBBL6.js} +3 -3
- package/dist/node-runtime/{chunk-KWA4OC2J.js → chunk-H6YBCWKG.js} +1 -1
- package/dist/node-runtime/{chunk-2MI5OPMN.js → chunk-HNNHHJAB.js} +68 -50
- package/dist/node-runtime/{chunk-I74LN5JG.js → chunk-HUD2RFJW.js} +2 -2
- package/dist/node-runtime/{chunk-XHIRAZ26.js → chunk-IAZSK7KK.js} +1 -1
- package/dist/node-runtime/{chunk-GYIXXQAO.js → chunk-ICKGAKWX.js} +23 -59
- package/dist/node-runtime/{chunk-X3PGBLQ7.js → chunk-IHHTWSXN.js} +9 -9
- package/dist/node-runtime/{chunk-DAPBPCBP.js → chunk-IPP5BIV5.js} +25 -3
- package/dist/node-runtime/{chunk-QFWG2RVL.js → chunk-IXG6F4NT.js} +11 -0
- package/dist/node-runtime/{chunk-L24TPBS4.js → chunk-JEK35V2M.js} +45 -31
- package/dist/node-runtime/{chunk-RDDAZOMU.js → chunk-JL4HYQXK.js} +1 -1
- package/dist/node-runtime/{chunk-2HMIRK7W.js → chunk-LHV3V67B.js} +5 -5
- package/dist/node-runtime/{chunk-UAEOTO52.js → chunk-MNQXDFPV.js} +6 -2
- package/dist/node-runtime/{chunk-MPKSOJBT.js → chunk-NHATCSOI.js} +4 -7
- package/dist/node-runtime/{chunk-RMQZU2YU.js → chunk-NNNR3QIY.js} +1 -1
- package/dist/node-runtime/{chunk-2KIPT4HJ.js → chunk-PWHTSQC4.js} +83 -21
- package/dist/node-runtime/{chunk-RWTKOC3B.js → chunk-QBTJG3UM.js} +1 -1
- package/dist/node-runtime/{chunk-RCR3XAQY.js → chunk-QT3F6UEV.js} +233 -169
- package/dist/node-runtime/{chunk-GS42T6MX.js → chunk-QW3AAHWN.js} +1 -1
- package/dist/node-runtime/{chunk-DVQSHCVP.js → chunk-R4WSB2MQ.js} +5 -5
- package/dist/node-runtime/{chunk-B4HP6ZWM.js → chunk-RHCGYWO7.js} +1 -1
- package/dist/node-runtime/{chunk-2CFDTH5B.js → chunk-RLGY2QIL.js} +45 -59
- package/dist/node-runtime/{chunk-CDVHZOOK.js → chunk-RY3FJ6WI.js} +29 -27
- package/dist/node-runtime/{chunk-KKUTQQV7.js → chunk-RYRGL7P4.js} +1 -1
- package/dist/node-runtime/{chunk-I54LGHWM.js → chunk-STMX7W5I.js} +3 -3
- package/dist/node-runtime/chunk-SWWHZ2RI.js +158 -0
- package/dist/node-runtime/{chunk-5Q4A37RB.js → chunk-TCT6PCUR.js} +32 -11
- package/dist/node-runtime/{chunk-P7XBVXGT.js → chunk-U3YVZ6UC.js} +18 -14
- package/dist/node-runtime/{chunk-D5UCKPBQ.js → chunk-UBWW2PID.js} +1 -1
- package/dist/node-runtime/{chunk-E75WFZ33.js → chunk-UNUZICC4.js} +3 -3
- package/dist/node-runtime/{chunk-RAK2QA2B.js → chunk-UYRKUKFE.js} +4 -4
- package/dist/node-runtime/{chunk-LWJXTA6Z.js → chunk-VSUEAI7O.js} +1377 -45
- package/dist/node-runtime/{chunk-NAY6UUQZ.js → chunk-WDIVLMOH.js} +1 -1
- package/dist/node-runtime/{chunk-E24EO34J.js → chunk-WPXUR3HE.js} +1 -1
- package/dist/node-runtime/{chunk-SLVOAQOY.js → chunk-WXYNALHD.js} +113 -1
- package/dist/node-runtime/{chunk-KJ6DWS3K.js → chunk-XEOCUEUJ.js} +121 -60
- package/dist/node-runtime/chunk-YD3IZAZ7.js +47 -0
- package/dist/node-runtime/chunk-YSB6URMT.js +41 -0
- package/dist/node-runtime/{chunk-YWOJIGFY.js → chunk-ZEVFBFNF.js} +95 -142
- package/dist/node-runtime/{chunk-5B6VKFEV.js → chunk-ZIQUS5QO.js} +1 -1
- package/dist/node-runtime/cli-runtime.js +4 -4
- package/dist/node-runtime/{command-FSBU2EVZ.js → command-YRT7I2BW.js} +5 -5
- package/dist/node-runtime/{commands-NAAL7KNT.js → commands-2ETOWWRA.js} +16 -16
- package/dist/node-runtime/{commands-EMBQQVVT.js → commands-D6A6H4TS.js} +11 -18
- package/dist/node-runtime/{config-QDD5PUE2.js → config-CU7M7BTK.js} +1 -1
- package/dist/node-runtime/{config-D4QUPAHX.js → config-DS7XLMEM.js} +2 -2
- package/dist/node-runtime/{direct-tool-executor-4D7UXYU4.js → direct-tool-executor-2QJXVQD2.js} +6 -11
- package/dist/node-runtime/{exa-LL64QZR2.js → exa-6VBZNPGE.js} +1 -1
- package/dist/node-runtime/{export-html-VM4J2MNR.js → export-html-DBQRRMAY.js} +4 -4
- package/dist/node-runtime/{extension-input-E7BJZ35H.js → extension-input-VBBMX7YV.js} +5 -5
- package/dist/node-runtime/{extension-selector-WU42XDTU.js → extension-selector-T5AOG5XB.js} +5 -5
- package/dist/node-runtime/{extract-EQJE7FZZ.js → extract-BFX2N35A.js} +3 -3
- package/dist/node-runtime/{gateway-DQM333YV.js → gateway-V6K2CDWN.js} +51 -42
- package/dist/node-runtime/{gemini-search-35OCRFLN.js → gemini-search-C66QHDT6.js} +2 -2
- package/dist/node-runtime/{gemini-url-context-UQY3PHHW.js → gemini-url-context-T7DEK73R.js} +3 -3
- package/dist/node-runtime/{github-extract-F64RZOEA.js → github-extract-HOGE3D6F.js} +107 -38
- package/dist/node-runtime/{goal-NJEE5CTU.js → goal-J7TYMOBK.js} +14 -8
- package/dist/node-runtime/index.js +51 -48
- package/dist/node-runtime/{init-P5AUV77I.js → init-JBQJIPYI.js} +3 -6
- package/dist/node-runtime/{install-cli-NN4YAU44.js → install-cli-INGHIVBY.js} +30 -25
- package/dist/node-runtime/interactive-mode-ASZ7APYP.js +75 -0
- package/dist/node-runtime/{interactive-view-NGFAMHPW.js → interactive-view-K33PM4OS.js} +8 -8
- package/dist/node-runtime/{lsp-manager-3ASUSO4T.js → lsp-manager-S554V5HR.js} +240 -155
- package/dist/node-runtime/{lunr-browser-IR7TL3J7.js → lunr-browser-H4FDOR3C.js} +7 -7
- package/dist/node-runtime/{lunr-computer-use-Y23CCDIJ.js → lunr-computer-use-VDP2QNRQ.js} +9 -9
- package/dist/node-runtime/{lunr-cron-USHC4LXH.js → lunr-cron-WD3YH4CR.js} +93 -80
- package/dist/node-runtime/main.js +43 -41
- package/dist/node-runtime/{mobile-commands-O5LCHL32.js → mobile-commands-ICUXFW5V.js} +12 -12
- package/dist/node-runtime/{model-runtime-OO5HFLWE.js → model-runtime-MZ2JMDV4.js} +4 -4
- package/dist/node-runtime/{openai-search-B3MSNCQA.js → openai-search-K72LJDYN.js} +1 -1
- package/dist/node-runtime/{package-manager-cli-Q7BL6KZO.js → package-manager-cli-CYM262SI.js} +20 -20
- package/dist/node-runtime/{parallel-AI2MNSCU.js → parallel-X724NCNU.js} +1 -1
- package/dist/node-runtime/{perplexity-QVJW3I35.js → perplexity-RDHQHVMK.js} +2 -2
- package/dist/node-runtime/{pi-intercom-QM53RLTS.js → pi-intercom-NHHEPBMI.js} +2 -2
- package/dist/node-runtime/{pi-mcp-adapter-3PHF4KZ4.js → pi-mcp-adapter-PP3GQJQ2.js} +98 -94
- package/dist/node-runtime/{pi-ollama-cloud-2F3Y2QNM.js → pi-ollama-cloud-4MNWIMFN.js} +11 -24
- package/dist/node-runtime/{pi-prompt-template-model-QWTCGLJU.js → pi-prompt-template-model-FTGELLS5.js} +32 -36
- package/dist/node-runtime/{pi-subagents-7IBSSGEW.js → pi-subagents-QPU3OXE4.js} +114 -167
- package/dist/node-runtime/{pi-web-access-WTGMNZ32.js → pi-web-access-Z3LP246C.js} +144 -108
- package/dist/node-runtime/{print-mode-XQ76CYMT.js → print-mode-2XHN5SUA.js} +3 -3
- package/dist/node-runtime/{process-registry-4FAKZQOL.js → process-registry-Q4QWIU33.js} +3 -3
- package/dist/node-runtime/{proxy-modes-5FAPSZEZ.js → proxy-modes-VEGC6QG5.js} +8 -15
- package/dist/node-runtime/rpc-entry.js +43 -41
- package/dist/node-runtime/{rpc-mode-O3XV4SID.js → rpc-mode-32DHJPEJ.js} +4 -4
- package/dist/node-runtime/{runtime-4VA6JKNF.js → runtime-EDUUGAQD.js} +56 -46
- package/dist/node-runtime/{runtime-EFPPD2UW.js → runtime-UGXM4NPQ.js} +2 -2
- package/dist/node-runtime/{runtime-bridges-7WVCLI76.js → runtime-bridges-DNKMNJCF.js} +7 -7
- package/dist/node-runtime/{service-MDQIPQ26.js → service-IHLGFLBT.js} +6 -4
- package/dist/node-runtime/{session-handoff-GWARVEWT.js → session-handoff-LYH53ESV.js} +4 -4
- package/dist/node-runtime/{session-manager-JB5J6XBN.js → session-manager-ZJ3N5Q74.js} +3 -3
- package/dist/node-runtime/{session-selector-GIM4DHQ2.js → session-selector-I73U3EIO.js} +7 -7
- package/dist/node-runtime/{settings-manager-DJDM5AHM.js → settings-manager-P2TKGYTR.js} +5 -5
- package/dist/node-runtime/{setup-JBKOLJ6F.js → setup-H7CCELIL.js} +15 -1
- package/dist/node-runtime/{setup-PFBWRNUI.js → setup-OLQ4GXWS.js} +17 -17
- package/dist/node-runtime/{src-IVPNZ2BX.js → src-6RV4PXKJ.js} +64 -36
- package/dist/node-runtime/{subagent-executor-LPZ4BHWE.js → subagent-executor-UI6SHG3X.js} +412 -288
- package/dist/node-runtime/{tavily-WEZFVFP7.js → tavily-KZBFYQB6.js} +1 -1
- package/dist/node-runtime/{theme-UOO5RVFN.js → theme-YLVZKKZD.js} +2 -2
- package/dist/node-runtime/{trust-manager-MMISNCYO.js → trust-manager-ZCU76D23.js} +2 -2
- package/dist/node-runtime/{update-cli-HNMOTNGX.js → update-cli-F3XXJANQ.js} +6 -6
- package/dist/node-runtime/{usage-service-LFB2SWYV.js → usage-service-CPAGBED5.js} +1 -1
- package/dist/node-runtime/{video-extract-OOZHR7SU.js → video-extract-UPKYIBW3.js} +3 -3
- package/dist/node-runtime/{workflow-OHPBEFO4.js → workflow-ICDI4N3J.js} +208 -78
- package/dist/node-runtime/{youtube-extract-FNPAUNHU.js → youtube-extract-77NT7FWH.js} +4 -4
- package/dist/utils/clipboard-image.d.ts.map +1 -1
- package/dist/utils/clipboard-image.js.map +1 -1
- package/dist/utils/exif-orientation.d.ts.map +1 -1
- package/dist/utils/exif-orientation.js +25 -10
- package/dist/utils/exif-orientation.js.map +1 -1
- package/dist/utils/image-resize-core.d.ts.map +1 -1
- package/dist/utils/image-resize-core.js +2 -0
- package/dist/utils/image-resize-core.js.map +1 -1
- package/dist/utils/paths.d.ts +4 -0
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +33 -2
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/sanitize-terminal-text.d.ts +7 -0
- package/dist/utils/sanitize-terminal-text.d.ts.map +1 -0
- package/dist/utils/sanitize-terminal-text.js +67 -0
- package/dist/utils/sanitize-terminal-text.js.map +1 -0
- package/docs/browser.md +1 -1
- package/docs/custom-provider.md +3 -3
- package/docs/extensions.md +8 -4
- package/docs/features.md +25 -7
- package/docs/keybindings.md +1 -1
- package/docs/models.md +5 -5
- package/docs/packages.md +1 -1
- package/docs/providers.md +2 -2
- package/docs/rpc.md +7 -7
- package/docs/security.md +10 -5
- package/docs/sessions.md +2 -2
- package/docs/skills.md +1 -1
- package/docs/terminal-setup.md +7 -7
- package/docs/themes.md +1 -1
- package/docs/usage.md +1 -1
- package/examples/extensions/auto-commit-on-exit.ts +1 -1
- package/examples/extensions/bash-spawn-hook.ts +1 -1
- package/examples/extensions/built-in-tool-renderer.ts +1 -1
- package/examples/extensions/claude-rules.ts +1 -1
- package/examples/extensions/commands.ts +1 -1
- package/examples/extensions/custom-compaction.ts +1 -1
- package/examples/extensions/custom-provider-anthropic/index.ts +3 -3
- 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/index.ts +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/doom-overlay/index.ts +1 -1
- package/examples/extensions/git-merge-and-resolve.ts +2 -2
- package/examples/extensions/gondolin/index.ts +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/hidden-thinking-label.ts +1 -1
- package/examples/extensions/inline-bash.ts +2 -2
- package/examples/extensions/input-transform-streaming.ts +2 -2
- package/examples/extensions/input-transform.ts +2 -2
- package/examples/extensions/interactive-shell.ts +1 -1
- package/examples/extensions/kimi-deferred-tools.ts +1 -1
- package/examples/extensions/mac-system-theme.ts +1 -1
- package/examples/extensions/minimal-mode.ts +1 -1
- package/examples/extensions/modal-editor.ts +1 -1
- package/examples/extensions/model-status.ts +1 -1
- package/examples/extensions/notify.ts +3 -3
- package/examples/extensions/overlay-qa-tests.ts +1 -1
- package/examples/extensions/overlay-test.ts +1 -1
- package/examples/extensions/pirate.ts +1 -1
- package/examples/extensions/preset.ts +3 -3
- package/examples/extensions/project-trust.ts +4 -4
- package/examples/extensions/prompt-customizer.ts +1 -1
- package/examples/extensions/rainbow-editor.ts +1 -1
- package/examples/extensions/rpc-demo.ts +1 -1
- package/examples/extensions/sandbox/index.ts +7 -7
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/shutdown-command.ts +5 -5
- package/examples/extensions/ssh.ts +2 -2
- package/examples/extensions/subagent/README.md +3 -3
- package/examples/extensions/subagent/index.ts +2 -2
- package/examples/extensions/titlebar-spinner.ts +1 -1
- package/examples/extensions/tool-override.ts +1 -1
- package/examples/extensions/tools.ts +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/examples/extensions/working-indicator.ts +1 -1
- package/examples/extensions/working-message-test.ts +1 -1
- package/examples/sdk/01-minimal.ts +1 -1
- package/examples/sdk/03-custom-prompt.ts +1 -1
- package/examples/sdk/04-skills.ts +1 -1
- package/examples/sdk/06-extensions.ts +2 -2
- package/examples/sdk/08-prompt-templates.ts +1 -1
- package/install-lock/package-lock.json +24 -24
- package/install-lock/package.json +2 -2
- package/npm-shrinkwrap.json +60 -24
- package/package.json +9 -9
- package/dist/modes/interactive/components/exit-card.d.ts +0 -22
- package/dist/modes/interactive/components/exit-card.d.ts.map +0 -1
- package/dist/modes/interactive/components/exit-card.js +0 -69
- package/dist/modes/interactive/components/exit-card.js.map +0 -1
- package/dist/node-runtime/agent-session-services-5YXS2PLF.js +0 -51
- package/dist/node-runtime/chunk-2IDTZAG5.js +0 -1415
- package/dist/node-runtime/chunk-3MISGG4S.js +0 -769
- package/dist/node-runtime/chunk-4HXHDDCF.js +0 -16
- package/dist/node-runtime/chunk-5B5QN3ZQ.js +0 -356
- package/dist/node-runtime/chunk-7IQGBKBJ.js +0 -2033
- package/dist/node-runtime/chunk-AUXVGBO4.js +0 -19
- package/dist/node-runtime/chunk-PTFBPO3C.js +0 -50
- package/dist/node-runtime/interactive-mode-YOHZVMKX.js +0 -74
- package/dist/node-runtime/mcp-auth-flow-QVLFVLEO.js +0 -33
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
theme
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JL4HYQXK.js";
|
|
5
5
|
|
|
6
6
|
// packages/coding-agent/dist/modes/interactive/components/keybinding-hints.js
|
|
7
7
|
import { getKeybindings } from "@ashx-j/lunr-tui";
|
|
@@ -2,18 +2,18 @@ import { createRequire as __lunrRequire } from "node:module"; const require = __
|
|
|
2
2
|
import {
|
|
3
3
|
showStartupInput,
|
|
4
4
|
showStartupSelector
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IHHTWSXN.js";
|
|
6
6
|
import {
|
|
7
7
|
getProjectTrustOptions,
|
|
8
8
|
hasTrustRequiringProjectResources
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-F2SMQ6ES.js";
|
|
10
10
|
import {
|
|
11
11
|
emitProjectTrustEvent
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BYC6RKCN.js";
|
|
13
13
|
import {
|
|
14
14
|
APP_NAME,
|
|
15
15
|
CONFIG_DIR_NAME
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-64XTQNLA.js";
|
|
17
17
|
|
|
18
18
|
// packages/coding-agent/dist/cli/project-trust.js
|
|
19
19
|
import chalk from "chalk";
|
|
@@ -51,7 +51,7 @@ function formatProjectTrustPrompt(cwd) {
|
|
|
51
51
|
return `Trust project folder?
|
|
52
52
|
${cwd}
|
|
53
53
|
|
|
54
|
-
This allows ${APP_NAME} to load ${CONFIG_DIR_NAME} settings and resources, install missing project packages, and
|
|
54
|
+
This allows ${APP_NAME} to load ${CONFIG_DIR_NAME} settings and resources, install missing project packages, execute project extensions, and start project MCP or language servers.`;
|
|
55
55
|
}
|
|
56
56
|
async function selectProjectTrustOption(cwd, ctx) {
|
|
57
57
|
let options = getProjectTrustOptions(cwd, { includeSessionOnly: !0 }), selected = await ctx.ui.select(formatProjectTrustPrompt(cwd), options.map((option) => option.label));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getAgentDir
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-64XTQNLA.js";
|
|
5
5
|
|
|
6
6
|
// packages/coding-agent/dist/gateway/config.js
|
|
7
7
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
@@ -6,14 +6,12 @@ import {
|
|
|
6
6
|
} from "./chunk-OAR4TYZE.js";
|
|
7
7
|
import {
|
|
8
8
|
READ_ONLY_WRITE_SPAWN_ERROR,
|
|
9
|
+
createReadOnlyTools,
|
|
9
10
|
resolveChildPermissions
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
createReadOnlyTools
|
|
13
|
-
} from "./chunk-YWOJIGFY.js";
|
|
11
|
+
} from "./chunk-ZEVFBFNF.js";
|
|
14
12
|
import {
|
|
15
13
|
subagentCommunicationEnabled
|
|
16
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HUD2RFJW.js";
|
|
17
15
|
import {
|
|
18
16
|
COMPUTER_TOOLS
|
|
19
17
|
} from "./chunk-FY4A63RK.js";
|
|
@@ -193,15 +191,21 @@ function isParallelGroup(step) {
|
|
|
193
191
|
function isDynamicRunnerGroup(step) {
|
|
194
192
|
return "expand" in step && "collect" in step && "parallel" in step && !Array.isArray(step.parallel);
|
|
195
193
|
}
|
|
196
|
-
var DEFAULT_GLOBAL_CONCURRENCY_LIMIT = Number.MAX_SAFE_INTEGER,
|
|
194
|
+
var DEFAULT_GLOBAL_CONCURRENCY_LIMIT = Number.MAX_SAFE_INTEGER, PARALLEL_COLD_START_ALLOWANCE_MS = 1e3, Semaphore = class {
|
|
197
195
|
available;
|
|
198
196
|
queue = [];
|
|
199
197
|
constructor(limit) {
|
|
200
198
|
this.available = Math.max(1, Math.floor(limit) || 1);
|
|
201
199
|
}
|
|
202
|
-
acquire() {
|
|
203
|
-
return this.available > 0 ? (this.available--, Promise.resolve()) : new Promise((resolve11) => {
|
|
204
|
-
|
|
200
|
+
acquire(signal) {
|
|
201
|
+
return signal?.throwIfAborted(), this.available > 0 ? (this.available--, Promise.resolve()) : new Promise((resolve11, reject) => {
|
|
202
|
+
let grant = () => {
|
|
203
|
+
signal?.removeEventListener("abort", abort), resolve11();
|
|
204
|
+
}, abort = () => {
|
|
205
|
+
let index = this.queue.indexOf(grant);
|
|
206
|
+
index !== -1 && this.queue.splice(index, 1), reject(signal?.reason);
|
|
207
|
+
};
|
|
208
|
+
this.queue.push(grant), signal?.addEventListener("abort", abort, { once: !0 });
|
|
205
209
|
});
|
|
206
210
|
}
|
|
207
211
|
release() {
|
|
@@ -209,25 +213,37 @@ var DEFAULT_GLOBAL_CONCURRENCY_LIMIT = Number.MAX_SAFE_INTEGER, PARALLEL_COLD_ST
|
|
|
209
213
|
next ? next() : this.available++;
|
|
210
214
|
}
|
|
211
215
|
};
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
216
|
+
function waitForLaunch(delayMs, signal) {
|
|
217
|
+
return signal?.throwIfAborted(), delayMs <= 0 ? Promise.resolve() : new Promise((resolve11, reject) => {
|
|
218
|
+
let timer = setTimeout(() => {
|
|
219
|
+
signal?.removeEventListener("abort", abort), resolve11();
|
|
220
|
+
}, delayMs), abort = () => {
|
|
221
|
+
clearTimeout(timer), reject(signal?.reason);
|
|
222
|
+
};
|
|
223
|
+
signal?.addEventListener("abort", abort, { once: !0 });
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
async function mapConcurrent(items, limit, fn, globalSemaphore, cancellation) {
|
|
227
|
+
let safeLimit = Math.max(1, Math.floor(limit) || 1), results = new Array(items.length), launchDeadline = Date.now() + (safeLimit > 1 ? PARALLEL_COLD_START_ALLOWANCE_MS : 0), signal = cancellation?.signal, launchReady, next = 0;
|
|
228
|
+
async function worker() {
|
|
215
229
|
for (; next < items.length; ) {
|
|
216
|
-
let i = next
|
|
217
|
-
|
|
218
|
-
setTimeout(resolve11, PARALLEL_COLD_START_STAGGER_MS * i);
|
|
219
|
-
}), globalSemaphore) {
|
|
220
|
-
await globalSemaphore.acquire();
|
|
230
|
+
let i = next++, acquired = !1;
|
|
231
|
+
try {
|
|
221
232
|
try {
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
|
|
233
|
+
await (i === 0 ? waitForLaunch(0, signal) : launchReady ??= waitForLaunch(launchDeadline - Date.now(), signal)), globalSemaphore && (await globalSemaphore.acquire(signal), acquired = !0), signal?.throwIfAborted();
|
|
234
|
+
} catch (error) {
|
|
235
|
+
if (!signal?.aborted || !cancellation)
|
|
236
|
+
throw error;
|
|
237
|
+
results[i] = cancellation.onAbort(items[i], i);
|
|
238
|
+
continue;
|
|
225
239
|
}
|
|
226
|
-
} else
|
|
227
240
|
results[i] = await fn(items[i], i);
|
|
241
|
+
} finally {
|
|
242
|
+
acquired && globalSemaphore.release();
|
|
243
|
+
}
|
|
228
244
|
}
|
|
229
245
|
}
|
|
230
|
-
return await Promise.all(Array.from({ length: Math.min(safeLimit, items.length) }, (
|
|
246
|
+
return await Promise.all(Array.from({ length: Math.min(safeLimit, items.length) }, () => worker())), results;
|
|
231
247
|
}
|
|
232
248
|
function aggregateParallelOutputs(results, headerFormat = (i, agent) => `=== Parallel Task ${i + 1} (${agent}) ===`) {
|
|
233
249
|
return results.map((r, i) => {
|
|
@@ -566,20 +582,20 @@ function readStatus(asyncDir) {
|
|
|
566
582
|
stat = fs3.statSync(statusPath);
|
|
567
583
|
} catch (error) {
|
|
568
584
|
if (isNotFoundError(error))
|
|
569
|
-
return null;
|
|
585
|
+
return statusCache.delete(statusPath), null;
|
|
570
586
|
throw new Error(`Failed to inspect async status file '${statusPath}': ${getErrorMessage(error)}`, {
|
|
571
587
|
cause: error instanceof Error ? error : void 0
|
|
572
588
|
});
|
|
573
589
|
}
|
|
574
590
|
let cached = statusCache.get(statusPath);
|
|
575
|
-
if (cached && cached.
|
|
591
|
+
if (cached && cached.stat.dev === stat.dev && cached.stat.ino === stat.ino && cached.stat.mtimeMs === stat.mtimeMs && cached.stat.ctimeMs === stat.ctimeMs && cached.stat.size === stat.size)
|
|
576
592
|
return cached.status;
|
|
577
593
|
let content;
|
|
578
594
|
try {
|
|
579
595
|
content = fs3.readFileSync(statusPath, "utf-8");
|
|
580
596
|
} catch (error) {
|
|
581
597
|
if (isNotFoundError(error))
|
|
582
|
-
return null;
|
|
598
|
+
return statusCache.delete(statusPath), null;
|
|
583
599
|
throw new Error(`Failed to read async status file '${statusPath}': ${getErrorMessage(error)}`, {
|
|
584
600
|
cause: error instanceof Error ? error : void 0
|
|
585
601
|
});
|
|
@@ -592,7 +608,7 @@ function readStatus(asyncDir) {
|
|
|
592
608
|
cause: error instanceof Error ? error : void 0
|
|
593
609
|
});
|
|
594
610
|
}
|
|
595
|
-
if (statusCache.set(statusPath, {
|
|
611
|
+
if (statusCache.set(statusPath, { stat, status }), statusCache.size > 50) {
|
|
596
612
|
let firstKey = statusCache.keys().next().value;
|
|
597
613
|
firstKey && statusCache.delete(firstKey);
|
|
598
614
|
}
|
|
@@ -2540,34 +2556,6 @@ function formatNestedRunStatusLines(children, options = {}) {
|
|
|
2540
2556
|
});
|
|
2541
2557
|
}
|
|
2542
2558
|
|
|
2543
|
-
// packages/coding-agent/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.js
|
|
2544
|
-
var LAUNCH_COMPATIBLE_ACTIONS = /* @__PURE__ */ new Set(["schedule", "append-step", "resume", "steer"]);
|
|
2545
|
-
function omitExecutionModeActionAlias(params) {
|
|
2546
|
-
let action = params.action?.toLowerCase();
|
|
2547
|
-
if (action === "single" && params.task !== void 0) {
|
|
2548
|
-
let rest = { ...params };
|
|
2549
|
-
return delete rest.action, rest;
|
|
2550
|
-
}
|
|
2551
|
-
if ((action === "parallel" || action === "tasks") && (params.tasks?.length ?? 0) > 0) {
|
|
2552
|
-
let rest = { ...params };
|
|
2553
|
-
return delete rest.action, rest;
|
|
2554
|
-
}
|
|
2555
|
-
return params;
|
|
2556
|
-
}
|
|
2557
|
-
function hasLaunchFields(params) {
|
|
2558
|
-
return params.task !== void 0 || Array.isArray(params.tasks) && params.tasks.length > 0 || Array.isArray(params.chain) && params.chain.length > 0;
|
|
2559
|
-
}
|
|
2560
|
-
function omitConflictingControlAction(params) {
|
|
2561
|
-
let action = params.action?.toLowerCase();
|
|
2562
|
-
if (!action || LAUNCH_COMPATIBLE_ACTIONS.has(action) || !hasLaunchFields(params))
|
|
2563
|
-
return params;
|
|
2564
|
-
let rest = { ...params };
|
|
2565
|
-
return delete rest.action, typeof rest.task == "string" && rest.task.length > 0 && (delete rest.tasks, delete rest.chain), rest;
|
|
2566
|
-
}
|
|
2567
|
-
function resolveSubagentRequestParams(params) {
|
|
2568
|
-
return omitConflictingControlAction(omitExecutionModeActionAlias(params));
|
|
2569
|
-
}
|
|
2570
|
-
|
|
2571
2559
|
// packages/coding-agent/dist/builtin-extensions/pi-subagents/src/runs/shared/nested-events.js
|
|
2572
2560
|
import { randomUUID } from "node:crypto";
|
|
2573
2561
|
import * as fs11 from "node:fs";
|
|
@@ -6707,7 +6695,7 @@ async function resolveWatchdogReviewModel(ctx, config, options = {}) {
|
|
|
6707
6695
|
}
|
|
6708
6696
|
let currentModel = ctx.model;
|
|
6709
6697
|
if (!currentModel)
|
|
6710
|
-
throw new Error("Main watchdog review cannot run because the current
|
|
6698
|
+
throw new Error("Main watchdog review cannot run because the current lunR session model is unavailable and subagents.watchdog.main.model is not configured.");
|
|
6711
6699
|
return {
|
|
6712
6700
|
model: currentModel,
|
|
6713
6701
|
thinkingLevel: resolveReviewThinking({
|
|
@@ -6763,7 +6751,7 @@ function createWatchdogWarnTool(request) {
|
|
|
6763
6751
|
}
|
|
6764
6752
|
function buildWatchdogSystemPrompt(ctx) {
|
|
6765
6753
|
return [
|
|
6766
|
-
"You are the main-session subagent watchdog for
|
|
6754
|
+
"You are the main-session subagent watchdog for lunR.",
|
|
6767
6755
|
`Working directory: ${ctx.cwd}`,
|
|
6768
6756
|
"Review only the supplied parent turn delta. Inspect repository files only when needed to verify a concrete concern.",
|
|
6769
6757
|
"You are read-only. You may use read, grep, find, and ls. Do not edit files, run shell commands, spawn agents, or mutate state.",
|
|
@@ -6804,7 +6792,7 @@ function createMainWatchdogReview(provider, options = {}) {
|
|
|
6804
6792
|
return async (request) => {
|
|
6805
6793
|
let ctx = resolveContext(provider);
|
|
6806
6794
|
if (!ctx)
|
|
6807
|
-
throw new Error("Main watchdog review cannot run without an active
|
|
6795
|
+
throw new Error("Main watchdog review cannot run without an active lunR extension context.");
|
|
6808
6796
|
if (ctx.signal?.aborted || request.signal?.aborted)
|
|
6809
6797
|
return { stopReason: "aborted" };
|
|
6810
6798
|
let selection = await resolveWatchdogReviewModel(ctx, request.config, {
|
|
@@ -8453,7 +8441,6 @@ export {
|
|
|
8453
8441
|
legacySupervisorBody,
|
|
8454
8442
|
SUBAGENT_CHILD_ENV,
|
|
8455
8443
|
SUBAGENT_FANOUT_CHILD_ENV,
|
|
8456
|
-
SUBAGENT_PARENT_SESSION_ENV,
|
|
8457
8444
|
applyThinkingSuffix,
|
|
8458
8445
|
buildPiArgs,
|
|
8459
8446
|
cleanupTempDir,
|
|
@@ -8474,7 +8461,6 @@ export {
|
|
|
8474
8461
|
formatAgentRunningLabel,
|
|
8475
8462
|
formatNestedAggregate,
|
|
8476
8463
|
formatNestedRunStatusLines,
|
|
8477
|
-
resolveSubagentRequestParams,
|
|
8478
8464
|
writeAtomicJson,
|
|
8479
8465
|
writePrivateAtomicJson,
|
|
8480
8466
|
createNestedRoute,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
estimateTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ICKGAKWX.js";
|
|
5
5
|
|
|
6
6
|
// packages/coding-agent/dist/core/context-breakdown.js
|
|
7
|
-
|
|
7
|
+
import { estimateTextTokens } from "@ashx-j/lunr-ai/compat";
|
|
8
|
+
var PROJECT_CONTEXT_RE = /<project_context>[\s\S]*?<\/project_context>/, PROJECT_INSTRUCTIONS_RE = /<project_instructions(?:\s+path="([^"]*)")?>([\s\S]*?)<\/project_instructions>/g, SKILLS_BLOCK_RE = /\n\nThe following skills provide specialized instructions for specific tasks\.[\s\S]*<\/available_skills>/;
|
|
8
9
|
function estimateChars(text) {
|
|
9
|
-
return
|
|
10
|
+
return estimateTextTokens(text);
|
|
10
11
|
}
|
|
11
12
|
function contextFileLabel(filePath, globalAgentsPath, modelAgentsPath) {
|
|
12
13
|
if (!filePath)
|
|
@@ -35,16 +36,16 @@ function splitSystemPromptSections(systemPrompt) {
|
|
|
35
36
|
return skillsMatch && (skills = skillsMatch[0], remaining = remaining.replace(skills, "")), { base: remaining, contextFiles, skills };
|
|
36
37
|
}
|
|
37
38
|
function estimateToolDefinitionTokens(tools) {
|
|
38
|
-
let
|
|
39
|
+
let text = "";
|
|
39
40
|
for (let tool of tools) {
|
|
40
|
-
|
|
41
|
+
text += tool.name + tool.description;
|
|
41
42
|
try {
|
|
42
43
|
let schema = JSON.stringify(tool.parameters);
|
|
43
|
-
schema && (
|
|
44
|
+
schema && (text += schema);
|
|
44
45
|
} catch {
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
return
|
|
48
|
+
return estimateTextTokens(text);
|
|
48
49
|
}
|
|
49
50
|
function computeContextBreakdown(input) {
|
|
50
51
|
let sections = splitSystemPromptSections(input.systemPrompt), systemPrompt = estimateChars(sections.base), contextFiles = sections.contextFiles.map((file) => ({
|
|
@@ -60,27 +61,28 @@ function computeContextBreakdown(input) {
|
|
|
60
61
|
summaries: 0
|
|
61
62
|
};
|
|
62
63
|
for (let message of input.messages)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
if (!(message.role === "bashExecution" && message.excludeFromContext))
|
|
65
|
+
switch (message.role) {
|
|
66
|
+
case "assistant": {
|
|
67
|
+
let text = "", thinkingText = "", toolCallText = "";
|
|
68
|
+
for (let block of message.content)
|
|
69
|
+
block.type === "text" ? text += block.text : block.type === "thinking" ? thinkingText += block.thinking : block.type === "toolCall" && (toolCallText += block.name + JSON.stringify(block.arguments));
|
|
70
|
+
assistantText += estimateTextTokens(text), thinking += estimateTextTokens(thinkingText), toolCalls += estimateTextTokens(toolCallText), text.length > 0 && counts.assistantText++, thinkingText.length > 0 && counts.thinking++, toolCallText.length > 0 && counts.toolCalls++;
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
case "user":
|
|
74
|
+
case "custom":
|
|
75
|
+
user += estimateTokens(message), counts.user++;
|
|
76
|
+
break;
|
|
77
|
+
case "toolResult":
|
|
78
|
+
case "bashExecution":
|
|
79
|
+
toolResults += estimateTokens(message), counts.toolResults++;
|
|
80
|
+
break;
|
|
81
|
+
case "branchSummary":
|
|
82
|
+
case "compactionSummary":
|
|
83
|
+
summaries += estimateTokens(message), counts.summaries++;
|
|
84
|
+
break;
|
|
70
85
|
}
|
|
71
|
-
case "user":
|
|
72
|
-
case "custom":
|
|
73
|
-
user += estimateTokens(message), counts.user++;
|
|
74
|
-
break;
|
|
75
|
-
case "toolResult":
|
|
76
|
-
case "bashExecution":
|
|
77
|
-
toolResults += estimateTokens(message), counts.toolResults++;
|
|
78
|
-
break;
|
|
79
|
-
case "branchSummary":
|
|
80
|
-
case "compactionSummary":
|
|
81
|
-
summaries += estimateTokens(message), counts.summaries++;
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
86
|
let contextFileTokens = contextFiles.reduce((sum, file) => sum + file.tokens, 0), total = systemPrompt + contextFileTokens + skills + toolDefinitions + user + assistantText + thinking + toolCalls + toolResults + summaries;
|
|
85
87
|
return {
|
|
86
88
|
systemPrompt,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __lunrRequire } from "node:module"; const require = __
|
|
|
2
2
|
import {
|
|
3
3
|
getShellConfig,
|
|
4
4
|
killProcessTree
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ES6PBSIE.js";
|
|
6
6
|
|
|
7
7
|
// packages/coding-agent/dist/core/process-registry.js
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
SessionManager
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PWHTSQC4.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionOwnership,
|
|
7
7
|
canonicalSessionPath,
|
|
8
8
|
isSessionOwnerDead,
|
|
9
9
|
readSessionOwner,
|
|
10
10
|
writeSessionJson
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MNQXDFPV.js";
|
|
12
12
|
import {
|
|
13
13
|
getAgentDir
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-64XTQNLA.js";
|
|
15
15
|
|
|
16
16
|
// packages/coding-agent/dist/core/session-handoff.js
|
|
17
17
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/coding-agent/dist/core/usage-accounting.js
|
|
4
|
+
var REQUEST_USAGE_TYPE = "request-usage";
|
|
5
|
+
function emptyUsageTotals() {
|
|
6
|
+
return {
|
|
7
|
+
requests: 0,
|
|
8
|
+
input: 0,
|
|
9
|
+
output: 0,
|
|
10
|
+
cacheRead: 0,
|
|
11
|
+
cacheWrite: 0,
|
|
12
|
+
total: 0,
|
|
13
|
+
cost: 0,
|
|
14
|
+
unknownRequests: 0,
|
|
15
|
+
partialRequests: 0,
|
|
16
|
+
unknownCosts: 0
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function usageTokens(usage) {
|
|
20
|
+
return usage.input + usage.output + usage.cacheRead + usage.cacheWrite;
|
|
21
|
+
}
|
|
22
|
+
function collectUsageRequests(entries) {
|
|
23
|
+
let requests = /* @__PURE__ */ new Map();
|
|
24
|
+
for (let entry of entries) {
|
|
25
|
+
if (entry.inherited)
|
|
26
|
+
continue;
|
|
27
|
+
let request;
|
|
28
|
+
if (entry.type === "message" && entry.message.role === "assistant") {
|
|
29
|
+
let message = entry.message;
|
|
30
|
+
if (!validUsage(message.usage))
|
|
31
|
+
continue;
|
|
32
|
+
request = {
|
|
33
|
+
id: message.usage.requestId ?? `${entry.id}:${entry.timestamp}:${message.provider}/${message.model}`,
|
|
34
|
+
purpose: "conversation",
|
|
35
|
+
provider: message.provider,
|
|
36
|
+
model: message.responseModel ?? message.model,
|
|
37
|
+
timestamp: Number.isFinite(Date.parse(entry.timestamp)) ? Date.parse(entry.timestamp) : message.timestamp,
|
|
38
|
+
usage: message.usage,
|
|
39
|
+
stopReason: message.stopReason
|
|
40
|
+
};
|
|
41
|
+
} else if (entry.type === "custom" && entry.customType === REQUEST_USAGE_TYPE) {
|
|
42
|
+
let data = entry.data;
|
|
43
|
+
validRequest(data) && (request = data);
|
|
44
|
+
}
|
|
45
|
+
request && validRequest(request) && requests.set(request.id, request);
|
|
46
|
+
}
|
|
47
|
+
return [...requests.values()];
|
|
48
|
+
}
|
|
49
|
+
function totalRequestUsage(requests) {
|
|
50
|
+
let total = emptyUsageTotals();
|
|
51
|
+
total.requests = requests.length;
|
|
52
|
+
for (let { usage } of requests)
|
|
53
|
+
total.input += usage.input, total.output += usage.output, total.cacheRead += usage.cacheRead, total.cacheWrite += usage.cacheWrite, total.total += usageTokens(usage), total.cost += usage.cost.total, total.unknownRequests += +(usage.measurement === "unknown"), total.partialRequests += +(usage.measurement === "partial"), total.unknownCosts += +(usage.costSource === "unknown");
|
|
54
|
+
return total;
|
|
55
|
+
}
|
|
56
|
+
function record(value) {
|
|
57
|
+
return value !== null && typeof value == "object" ? value : void 0;
|
|
58
|
+
}
|
|
59
|
+
function amount(value) {
|
|
60
|
+
return typeof value == "number" && Number.isFinite(value) && value >= 0 ? value : 0;
|
|
61
|
+
}
|
|
62
|
+
function validUsage(value) {
|
|
63
|
+
let usage = record(value), cost = record(usage?.cost);
|
|
64
|
+
return !!(usage && cost && [usage.input, usage.output, usage.cacheRead, usage.cacheWrite, cost.total].every((amount2) => typeof amount2 == "number" && Number.isFinite(amount2) && amount2 >= 0));
|
|
65
|
+
}
|
|
66
|
+
function validRequest(value) {
|
|
67
|
+
let request = record(value);
|
|
68
|
+
return !!(request && typeof request.id == "string" && request.id && validUsage(request.usage) && typeof request.timestamp == "number" && Number.isFinite(request.timestamp));
|
|
69
|
+
}
|
|
70
|
+
function collectChildUsage(entries) {
|
|
71
|
+
let children = /* @__PURE__ */ new Map(), inherited = /* @__PURE__ */ new Map(), requestGroups = /* @__PURE__ */ new Map(), inheritedRequestIds = /* @__PURE__ */ new Set(), requestOwners = /* @__PURE__ */ new Map();
|
|
72
|
+
for (let entry of entries) {
|
|
73
|
+
let details = entry.type === "custom_message" && ["subagent-notify", "subagent-slash-result"].includes(entry.customType) ? record(entry.details) : entry.type === "message" && entry.message.role === "toolResult" && entry.message.toolName?.startsWith("subagent") ? record(entry.message.details) : void 0;
|
|
74
|
+
if (!details)
|
|
75
|
+
continue;
|
|
76
|
+
let slash = record(record(details.result)?.details), candidates = details.children ?? slash?.results ?? details.results;
|
|
77
|
+
if (Array.isArray(candidates))
|
|
78
|
+
for (let candidate of candidates) {
|
|
79
|
+
let child = record(candidate), usage = record(child?.usage);
|
|
80
|
+
if (!child || !usage)
|
|
81
|
+
continue;
|
|
82
|
+
let identity = child.sessionFile ?? child.childId ?? child.id;
|
|
83
|
+
if (typeof identity != "string" || !identity)
|
|
84
|
+
continue;
|
|
85
|
+
let snapshot = {
|
|
86
|
+
id: identity,
|
|
87
|
+
label: String(child.description ?? child.agent ?? "child"),
|
|
88
|
+
sessionFile: typeof child.sessionFile == "string" ? child.sessionFile : void 0,
|
|
89
|
+
input: amount(usage.input),
|
|
90
|
+
output: amount(usage.output),
|
|
91
|
+
cacheRead: amount(usage.cacheRead),
|
|
92
|
+
cacheWrite: amount(usage.cacheWrite),
|
|
93
|
+
cost: amount(usage.cost),
|
|
94
|
+
turns: amount(usage.turns),
|
|
95
|
+
unknownRequests: amount(usage.unknownRequests),
|
|
96
|
+
partialRequests: amount(usage.partialRequests),
|
|
97
|
+
unknownCosts: amount(usage.unknownCosts)
|
|
98
|
+
};
|
|
99
|
+
if (Array.isArray(child.usageRequests)) {
|
|
100
|
+
let requests = requestGroups.get(identity) ?? /* @__PURE__ */ new Map();
|
|
101
|
+
requestGroups.set(identity, requests);
|
|
102
|
+
for (let request of child.usageRequests)
|
|
103
|
+
validRequest(request) && (entry.inherited ? inheritedRequestIds.add(request.id) : (!requestOwners.has(request.id) || requestOwners.get(request.id) === identity) && (requestOwners.set(request.id, identity), requests.set(request.id, request)));
|
|
104
|
+
}
|
|
105
|
+
let target = entry.inherited ? inherited : children, previous = target.get(identity);
|
|
106
|
+
(!previous || usageTokens(snapshot) >= usageTokens(previous)) && target.set(identity, snapshot);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return [...children.values()].map((child) => {
|
|
110
|
+
let requests = requestGroups.get(child.id);
|
|
111
|
+
if (requests) {
|
|
112
|
+
let ownRequests = [...requests.values()].filter((request) => !inheritedRequestIds.has(request.id)), total = totalRequestUsage(ownRequests);
|
|
113
|
+
return {
|
|
114
|
+
...child,
|
|
115
|
+
input: total.input,
|
|
116
|
+
output: total.output,
|
|
117
|
+
cacheRead: total.cacheRead,
|
|
118
|
+
cacheWrite: total.cacheWrite,
|
|
119
|
+
cost: total.cost,
|
|
120
|
+
turns: ownRequests.length,
|
|
121
|
+
unknownRequests: total.unknownRequests,
|
|
122
|
+
partialRequests: total.partialRequests,
|
|
123
|
+
unknownCosts: total.unknownCosts
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
let baseline = inherited.get(child.id);
|
|
127
|
+
if (!baseline)
|
|
128
|
+
return child;
|
|
129
|
+
let own = { ...child };
|
|
130
|
+
for (let key of [
|
|
131
|
+
"input",
|
|
132
|
+
"output",
|
|
133
|
+
"cacheRead",
|
|
134
|
+
"cacheWrite",
|
|
135
|
+
"cost",
|
|
136
|
+
"turns",
|
|
137
|
+
"unknownRequests",
|
|
138
|
+
"partialRequests",
|
|
139
|
+
"unknownCosts"
|
|
140
|
+
])
|
|
141
|
+
own[key] = Math.max(0, child[key] - baseline[key]);
|
|
142
|
+
return own;
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function totalChildUsage(children) {
|
|
146
|
+
let totals = emptyUsageTotals();
|
|
147
|
+
for (let child of children)
|
|
148
|
+
totals.requests += child.turns, totals.input += child.input, totals.output += child.output, totals.cacheRead += child.cacheRead, totals.cacheWrite += child.cacheWrite, totals.total += usageTokens(child), totals.cost += child.cost, totals.unknownRequests += child.unknownRequests, totals.partialRequests += child.partialRequests, totals.unknownCosts += child.unknownCosts;
|
|
149
|
+
return totals;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export {
|
|
153
|
+
usageTokens,
|
|
154
|
+
collectUsageRequests,
|
|
155
|
+
totalRequestUsage,
|
|
156
|
+
collectChildUsage,
|
|
157
|
+
totalChildUsage
|
|
158
|
+
};
|
|
@@ -13,7 +13,13 @@ import { createHash } from "node:crypto";
|
|
|
13
13
|
function readOrientationFromTiff(bytes, tiffStart) {
|
|
14
14
|
if (tiffStart + 8 > bytes.length)
|
|
15
15
|
return 1;
|
|
16
|
-
let
|
|
16
|
+
let byteOrder = bytes[tiffStart] << 8 | bytes[tiffStart + 1];
|
|
17
|
+
if (byteOrder !== 18761 && byteOrder !== 19789)
|
|
18
|
+
return 1;
|
|
19
|
+
let le = byteOrder === 18761, read16 = (pos) => le ? bytes[pos] | bytes[pos + 1] << 8 : bytes[pos] << 8 | bytes[pos + 1], ifdOffset = ((pos) => le ? (bytes[pos] | bytes[pos + 1] << 8 | bytes[pos + 2] << 16 | bytes[pos + 3] << 24) >>> 0 : (bytes[pos] << 24 | bytes[pos + 1] << 16 | bytes[pos + 2] << 8 | bytes[pos + 3]) >>> 0)(tiffStart + 4);
|
|
20
|
+
if (ifdOffset < 8)
|
|
21
|
+
return 1;
|
|
22
|
+
let ifdStart = tiffStart + ifdOffset;
|
|
17
23
|
if (ifdStart + 2 > bytes.length)
|
|
18
24
|
return 1;
|
|
19
25
|
let entryCount = read16(ifdStart);
|
|
@@ -51,22 +57,37 @@ function findJpegTiffOffset(bytes) {
|
|
|
51
57
|
}
|
|
52
58
|
return -1;
|
|
53
59
|
}
|
|
54
|
-
function
|
|
55
|
-
let
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
offset = dataStart + chunkSize + chunkSize % 2;
|
|
60
|
+
function findWebpTiff(bytes) {
|
|
61
|
+
let view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength), riffSize = view.getUint32(4, !0);
|
|
62
|
+
if (riffSize < 4 || riffSize > bytes.length - 8)
|
|
63
|
+
return;
|
|
64
|
+
let end = 8 + riffSize, offset = 12;
|
|
65
|
+
for (; end - offset >= 8; ) {
|
|
66
|
+
let chunkId = String.fromCharCode(bytes[offset], bytes[offset + 1], bytes[offset + 2], bytes[offset + 3]), chunkSize = view.getUint32(offset + 4, !0), dataStart = offset + 8, paddedSize = chunkSize + chunkSize % 2;
|
|
67
|
+
if (paddedSize > end - dataStart)
|
|
68
|
+
return;
|
|
69
|
+
let nextOffset = dataStart + paddedSize;
|
|
70
|
+
if (nextOffset <= offset || nextOffset > end)
|
|
71
|
+
return;
|
|
72
|
+
if (chunkId === "EXIF") {
|
|
73
|
+
let tiffStart = chunkSize >= 6 && hasExifHeader(bytes, dataStart) ? dataStart + 6 : dataStart;
|
|
74
|
+
return bytes.subarray(tiffStart, dataStart + chunkSize);
|
|
75
|
+
}
|
|
76
|
+
offset = nextOffset;
|
|
61
77
|
}
|
|
62
|
-
return -1;
|
|
63
78
|
}
|
|
64
79
|
function hasExifHeader(bytes, offset) {
|
|
65
80
|
return bytes[offset] === 69 && bytes[offset + 1] === 120 && bytes[offset + 2] === 105 && bytes[offset + 3] === 102 && bytes[offset + 4] === 0 && bytes[offset + 5] === 0;
|
|
66
81
|
}
|
|
67
82
|
function getExifOrientation(bytes) {
|
|
68
83
|
let tiffOffset = -1;
|
|
69
|
-
|
|
84
|
+
if (bytes.length >= 2 && bytes[0] === 255 && bytes[1] === 216)
|
|
85
|
+
tiffOffset = findJpegTiffOffset(bytes);
|
|
86
|
+
else if (bytes.length >= 12 && bytes[0] === 82 && bytes[1] === 73 && bytes[2] === 70 && bytes[3] === 70 && bytes[8] === 87 && bytes[9] === 69 && bytes[10] === 66 && bytes[11] === 80) {
|
|
87
|
+
let tiff = findWebpTiff(bytes);
|
|
88
|
+
return tiff ? readOrientationFromTiff(tiff, 0) : 1;
|
|
89
|
+
}
|
|
90
|
+
return tiffOffset === -1 ? 1 : readOrientationFromTiff(bytes, tiffOffset);
|
|
70
91
|
}
|
|
71
92
|
function rotate90(photon, image, dstIndex) {
|
|
72
93
|
let w = image.get_width(), h = image.get_height(), src = image.get_raw_pixels(), dst = new Uint8Array(src.length);
|
|
@@ -152,7 +173,7 @@ async function resizeImageInProcess(inputBytes, mimeType, options) {
|
|
|
152
173
|
...fingerprint ? { fingerprint } : {}
|
|
153
174
|
};
|
|
154
175
|
let targetWidth = originalWidth, targetHeight = originalHeight;
|
|
155
|
-
targetWidth > opts.maxWidth && (targetHeight = Math.round(targetHeight * opts.maxWidth / targetWidth), targetWidth = opts.maxWidth), targetHeight > opts.maxHeight && (targetWidth = Math.round(targetWidth * opts.maxHeight / targetHeight), targetHeight = opts.maxHeight);
|
|
176
|
+
targetWidth > opts.maxWidth && (targetHeight = Math.round(targetHeight * opts.maxWidth / targetWidth), targetWidth = opts.maxWidth), targetHeight > opts.maxHeight && (targetWidth = Math.round(targetWidth * opts.maxHeight / targetHeight), targetHeight = opts.maxHeight), targetWidth = Math.max(1, targetWidth), targetHeight = Math.max(1, targetHeight);
|
|
156
177
|
let qualitySteps = Array.from(/* @__PURE__ */ new Set([opts.jpegQuality, 85, 70, 55, 40])), currentWidth = targetWidth, currentHeight = targetHeight;
|
|
157
178
|
for (; ; ) {
|
|
158
179
|
let candidates = tryEncodings(currentWidth, currentHeight, qualitySteps);
|