@ashx-j/lunr 0.2.21 → 0.2.23
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 +4 -2
- package/README.md +23 -5
- package/dist/builtin-extensions/index.d.ts.map +1 -1
- package/dist/builtin-extensions/index.js +1 -0
- package/dist/builtin-extensions/index.js.map +1 -1
- package/dist/builtin-extensions/lunr-browser.d.ts +9 -0
- package/dist/builtin-extensions/lunr-browser.d.ts.map +1 -0
- package/dist/builtin-extensions/lunr-browser.js +169 -0
- package/dist/builtin-extensions/lunr-browser.js.map +1 -0
- package/dist/builtin-extensions/lunr-todos.d.ts.map +1 -1
- package/dist/builtin-extensions/lunr-todos.js +15 -0
- package/dist/builtin-extensions/lunr-todos.js.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.js +3 -0
- package/dist/builtin-extensions/pi-intercom/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.js +5 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts +2 -2
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js +18 -5
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts +4 -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 +3 -0
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/communication.d.ts +17 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/communication.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/communication.js +45 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/communication.js.map +1 -0
- 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 +4 -11
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.d.ts +4 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js +160 -51
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.js +5 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.d.ts +2 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.js +3 -2
- package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.js +2 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.d.ts +3 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.js +11 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js +41 -3
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.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 +4 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
- 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 +3 -0
- 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-control.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.js +3 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.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 +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts +1 -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/tui/communication.d.ts +18 -0
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.js +48 -0
- package/dist/builtin-extensions/pi-subagents/src/tui/communication.js.map +1 -0
- package/dist/builtin-extensions/pi-web-access/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-web-access/index.js +11 -7
- package/dist/builtin-extensions/pi-web-access/index.js.map +1 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +2 -1
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/install-cli.d.ts.map +1 -1
- package/dist/cli/install-cli.js +15 -45
- package/dist/cli/install-cli.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +9 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +126 -29
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session.d.ts +22 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +250 -105
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/browser/network.d.ts +9 -0
- package/dist/core/browser/network.d.ts.map +1 -0
- package/dist/core/browser/network.js +146 -0
- package/dist/core/browser/network.js.map +1 -0
- package/dist/core/browser/runtime.d.ts +24 -0
- package/dist/core/browser/runtime.d.ts.map +1 -0
- package/dist/core/browser/runtime.js +289 -0
- package/dist/core/browser/runtime.js.map +1 -0
- package/dist/core/browser/schema.d.ts +16 -0
- package/dist/core/browser/schema.d.ts.map +1 -0
- package/dist/core/browser/schema.js +36 -0
- package/dist/core/browser/schema.js.map +1 -0
- package/dist/core/browser/settings.d.ts +8 -0
- package/dist/core/browser/settings.d.ts.map +1 -0
- package/dist/core/browser/settings.js +30 -0
- package/dist/core/browser/settings.js.map +1 -0
- package/dist/core/browser/setup.d.ts +2 -0
- package/dist/core/browser/setup.d.ts.map +1 -0
- package/dist/core/browser/setup.js +16 -0
- package/dist/core/browser/setup.js.map +1 -0
- package/dist/core/customize.d.ts.map +1 -1
- package/dist/core/customize.js +15 -14
- package/dist/core/customize.js.map +1 -1
- package/dist/core/export-html/index.d.ts.map +1 -1
- package/dist/core/export-html/index.js +1 -1
- package/dist/core/export-html/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 +1 -1
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +1 -1
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/install-features.d.ts.map +1 -1
- package/dist/core/install-features.js +10 -8
- package/dist/core/install-features.js.map +1 -1
- package/dist/core/memory-cap.d.ts.map +1 -1
- package/dist/core/memory-cap.js +5 -3
- package/dist/core/memory-cap.js.map +1 -1
- package/dist/core/model-tiers.d.ts.map +1 -1
- package/dist/core/model-tiers.js +9 -6
- package/dist/core/model-tiers.js.map +1 -1
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +9 -0
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/plan-mode.d.ts.map +1 -1
- package/dist/core/plan-mode.js +3 -0
- package/dist/core/plan-mode.js.map +1 -1
- package/dist/core/process-registry.d.ts.map +1 -1
- package/dist/core/process-registry.js +6 -4
- package/dist/core/process-registry.js.map +1 -1
- package/dist/core/runtime-scope.d.ts +11 -0
- package/dist/core/runtime-scope.d.ts.map +1 -0
- package/dist/core/runtime-scope.js +3 -0
- package/dist/core/runtime-scope.js.map +1 -0
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +13 -0
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-handoff.d.ts +35 -0
- package/dist/core/session-handoff.d.ts.map +1 -0
- package/dist/core/session-handoff.js +214 -0
- package/dist/core/session-handoff.js.map +1 -0
- package/dist/core/session-manager.d.ts +20 -0
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +184 -22
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/session-ownership.d.ts +28 -0
- package/dist/core/session-ownership.d.ts.map +1 -0
- package/dist/core/session-ownership.js +138 -0
- package/dist/core/session-ownership.js.map +1 -0
- package/dist/core/session-retention.d.ts.map +1 -1
- package/dist/core/session-retention.js +11 -2
- package/dist/core/session-retention.js.map +1 -1
- package/dist/core/settings-manager.d.ts +11 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +27 -0
- 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 +2 -0
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/subagent-wait-interruption.d.ts +11 -0
- package/dist/core/subagent-wait-interruption.d.ts.map +1 -0
- package/dist/core/subagent-wait-interruption.js +19 -0
- package/dist/core/subagent-wait-interruption.js.map +1 -0
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +7 -2
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/todo-settings.d.ts +5 -0
- package/dist/core/todo-settings.d.ts.map +1 -0
- package/dist/core/todo-settings.js +7 -0
- package/dist/core/todo-settings.js.map +1 -0
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +4 -4
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +5 -3
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/find.d.ts.map +1 -1
- package/dist/core/tools/find.js +4 -4
- package/dist/core/tools/find.js.map +1 -1
- package/dist/core/tools/grep.d.ts.map +1 -1
- package/dist/core/tools/grep.js +4 -4
- package/dist/core/tools/grep.js.map +1 -1
- package/dist/core/tools/ls.d.ts.map +1 -1
- package/dist/core/tools/ls.js +4 -4
- package/dist/core/tools/ls.js.map +1 -1
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +4 -4
- package/dist/core/tools/read.js.map +1 -1
- package/dist/core/tools/render-utils.d.ts +14 -5
- package/dist/core/tools/render-utils.d.ts.map +1 -1
- package/dist/core/tools/render-utils.js +34 -7
- package/dist/core/tools/render-utils.js.map +1 -1
- package/dist/core/tools/write.d.ts.map +1 -1
- package/dist/core/tools/write.js +4 -4
- package/dist/core/tools/write.js.map +1 -1
- package/dist/core/usage-service.d.ts.map +1 -1
- package/dist/core/usage-service.js +5 -3
- package/dist/core/usage-service.js.map +1 -1
- package/dist/gateway/adapters/discord.d.ts +12 -1
- package/dist/gateway/adapters/discord.d.ts.map +1 -1
- package/dist/gateway/adapters/discord.js +112 -17
- package/dist/gateway/adapters/discord.js.map +1 -1
- package/dist/gateway/adapters/telegram.d.ts +4 -2
- package/dist/gateway/adapters/telegram.d.ts.map +1 -1
- package/dist/gateway/adapters/telegram.js +34 -11
- package/dist/gateway/adapters/telegram.js.map +1 -1
- package/dist/gateway/agent-bridge.d.ts +14 -3
- package/dist/gateway/agent-bridge.d.ts.map +1 -1
- package/dist/gateway/agent-bridge.js +252 -60
- package/dist/gateway/agent-bridge.js.map +1 -1
- package/dist/gateway/approval.d.ts +1 -0
- package/dist/gateway/approval.d.ts.map +1 -1
- package/dist/gateway/approval.js +60 -18
- package/dist/gateway/approval.js.map +1 -1
- package/dist/gateway/authz.d.ts +2 -0
- package/dist/gateway/authz.d.ts.map +1 -1
- package/dist/gateway/authz.js +13 -0
- package/dist/gateway/authz.js.map +1 -1
- package/dist/gateway/buttons.d.ts +3 -1
- package/dist/gateway/buttons.d.ts.map +1 -1
- package/dist/gateway/buttons.js +18 -3
- package/dist/gateway/buttons.js.map +1 -1
- package/dist/gateway/command.d.ts.map +1 -1
- package/dist/gateway/command.js +49 -4
- package/dist/gateway/command.js.map +1 -1
- package/dist/gateway/commands.d.ts.map +1 -1
- package/dist/gateway/commands.js +18 -3
- package/dist/gateway/commands.js.map +1 -1
- package/dist/gateway/config.d.ts +5 -0
- package/dist/gateway/config.d.ts.map +1 -1
- package/dist/gateway/config.js +5 -0
- package/dist/gateway/config.js.map +1 -1
- package/dist/gateway/conversations.d.ts +14 -0
- package/dist/gateway/conversations.d.ts.map +1 -0
- package/dist/gateway/conversations.js +30 -0
- package/dist/gateway/conversations.js.map +1 -0
- package/dist/gateway/download.d.ts +2 -0
- package/dist/gateway/download.d.ts.map +1 -0
- package/dist/gateway/download.js +36 -0
- package/dist/gateway/download.js.map +1 -0
- package/dist/gateway/index.d.ts.map +1 -1
- package/dist/gateway/index.js +85 -26
- package/dist/gateway/index.js.map +1 -1
- package/dist/gateway/mobile-commands.d.ts +24 -0
- package/dist/gateway/mobile-commands.d.ts.map +1 -0
- package/dist/gateway/mobile-commands.js +422 -0
- package/dist/gateway/mobile-commands.js.map +1 -0
- package/dist/gateway/presenter.d.ts +16 -0
- package/dist/gateway/presenter.d.ts.map +1 -0
- package/dist/gateway/presenter.js +210 -0
- package/dist/gateway/presenter.js.map +1 -0
- package/dist/gateway/router.d.ts +1 -0
- package/dist/gateway/router.d.ts.map +1 -1
- package/dist/gateway/router.js +32 -3
- package/dist/gateway/router.js.map +1 -1
- package/dist/gateway/service.d.ts +46 -0
- package/dist/gateway/service.d.ts.map +1 -0
- package/dist/gateway/service.js +395 -0
- package/dist/gateway/service.js.map +1 -0
- package/dist/gateway/setup.d.ts +4 -0
- package/dist/gateway/setup.d.ts.map +1 -0
- package/dist/gateway/setup.js +146 -0
- package/dist/gateway/setup.js.map +1 -0
- package/dist/gateway/types.d.ts +4 -2
- package/dist/gateway/types.d.ts.map +1 -1
- package/dist/gateway/types.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +2 -1
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/assistant-message.d.ts +19 -2
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +78 -17
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/copyable-text.d.ts +27 -0
- package/dist/modes/interactive/components/copyable-text.d.ts.map +1 -0
- package/dist/modes/interactive/components/copyable-text.js +156 -0
- package/dist/modes/interactive/components/copyable-text.js.map +1 -0
- package/dist/modes/interactive/components/custom-entry.d.ts +1 -0
- package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-entry.js +8 -0
- package/dist/modes/interactive/components/custom-entry.js.map +1 -1
- package/dist/modes/interactive/components/custom-message.d.ts +1 -0
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-message.js +8 -0
- package/dist/modes/interactive/components/custom-message.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +16 -0
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +8 -1
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +51 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/thinking-tail.d.ts +9 -2
- package/dist/modes/interactive/components/thinking-tail.d.ts.map +1 -1
- package/dist/modes/interactive/components/thinking-tail.js +43 -1
- package/dist/modes/interactive/components/thinking-tail.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +4 -3
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +34 -45
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +9 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +267 -44
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/theme.d.ts +1 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +23 -0
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/node-runtime/agent-session-services-GZVSOGYR.js +49 -0
- package/dist/node-runtime/{builtin-extensions-JCOPAAB5.js → builtin-extensions-QVCXNQT4.js} +6 -5
- package/dist/node-runtime/{chunk-LTYWTR3V.js → chunk-2MI5OPMN.js} +17 -2
- package/dist/node-runtime/{chunk-W3CVH5RX.js → chunk-2TKODGBZ.js} +11 -6
- package/dist/node-runtime/chunk-4EULYYR4.js +62 -0
- package/dist/node-runtime/{chunk-6N22HULO.js → chunk-5D7LC2ZQ.js} +7 -2
- package/dist/node-runtime/{chunk-KBKMCJDU.js → chunk-5ZQXRPMC.js} +19 -4
- package/dist/node-runtime/{chunk-BOHIDQT4.js → chunk-6VYZ5UFP.js} +1 -1
- package/dist/node-runtime/chunk-AZJHNQKQ.js +205 -0
- package/dist/node-runtime/{chunk-A3KMVBZV.js → chunk-BBUVIEZB.js} +1 -10
- package/dist/node-runtime/{chunk-IRPJXI6U.js → chunk-BX2RB477.js} +1 -1
- package/dist/node-runtime/chunk-CCCN2UCX.js +14 -0
- package/dist/node-runtime/{chunk-25I2BHAA.js → chunk-CSUZVNYE.js} +1 -1
- package/dist/node-runtime/chunk-DD5YWFSJ.js +708 -0
- package/dist/node-runtime/chunk-DQMGU675.js +3409 -0
- package/dist/node-runtime/{chunk-QZMODZQ2.js → chunk-E24EO34J.js} +2 -1
- package/dist/node-runtime/chunk-EKVFP6YF.js +355 -0
- package/dist/node-runtime/chunk-GJ2RDBRL.js +672 -0
- package/dist/node-runtime/{chunk-W3SILANP.js → chunk-GMHJCCEN.js} +8 -8
- package/dist/node-runtime/{chunk-DDWHZ633.js → chunk-GS42T6MX.js} +1 -1
- package/dist/node-runtime/chunk-GS66LV4M.js +2830 -0
- package/dist/node-runtime/chunk-H4K3JDRB.js +47 -0
- package/dist/node-runtime/{chunk-2SJB2AWP.js → chunk-HMBGROQK.js} +3 -3
- package/dist/node-runtime/{chunk-GB2MGFLI.js → chunk-HPUP7E4T.js} +216 -201
- package/dist/node-runtime/{chunk-YMEAYRBE.js → chunk-HTFRRDSF.js} +2 -7
- package/dist/node-runtime/{chunk-OPEK5RRY.js → chunk-IF24A3FH.js} +1 -1
- package/dist/node-runtime/chunk-IMLCWLPI.js +9 -0
- package/dist/node-runtime/chunk-KKUTQQV7.js +144 -0
- package/dist/node-runtime/chunk-LFZDVKSP.js +521 -0
- package/dist/node-runtime/{chunk-2BUAYZ7K.js → chunk-LLUIPGDR.js} +581 -197
- package/dist/node-runtime/{chunk-7NBZ5P7I.js → chunk-NAY6UUQZ.js} +1 -1
- package/dist/node-runtime/chunk-OAR4TYZE.js +146 -0
- package/dist/node-runtime/{chunk-STERBGUB.js → chunk-OFKSVRV7.js} +2 -2
- package/dist/node-runtime/{chunk-JZQ7F36T.js → chunk-PCEW76PM.js} +19 -3
- package/dist/node-runtime/{chunk-WLLDXJRT.js → chunk-QAZOULTU.js} +29 -1014
- package/dist/node-runtime/{chunk-6KDIOJL3.js → chunk-QH6YL7VK.js} +3 -3
- package/dist/node-runtime/chunk-R3K2F5GI.js +122 -0
- package/dist/node-runtime/{chunk-RNBHABBA.js → chunk-RDDAZOMU.js} +23 -0
- package/dist/node-runtime/{chunk-SY2TFMLO.js → chunk-RIR5EDDJ.js} +46 -151
- package/dist/node-runtime/chunk-RMQZU2YU.js +117 -0
- package/dist/node-runtime/{chunk-6BEIBLQ3.js → chunk-RWTKOC3B.js} +1 -1
- package/dist/node-runtime/{chunk-G6LRAP36.js → chunk-TQGPP4SC.js} +1 -1
- package/dist/node-runtime/{chunk-Y5KOEMBH.js → chunk-TVJUOJZJ.js} +9 -674
- package/dist/node-runtime/chunk-UAEOTO52.js +119 -0
- package/dist/node-runtime/{chunk-AY6CAJSL.js → chunk-UJOCPOMX.js} +6 -3
- package/dist/node-runtime/chunk-UP2XBVH5.js +40 -0
- package/dist/node-runtime/{chunk-WJVFOIB5.js → chunk-UQUCFAJ3.js} +1 -1
- package/dist/node-runtime/chunk-URD2SLIT.js +1019 -0
- package/dist/node-runtime/chunk-US544NN6.js +13 -0
- package/dist/node-runtime/chunk-UWPJL22I.js +341 -0
- package/dist/node-runtime/{chunk-4I23VTC4.js → chunk-VWCE2HSZ.js} +21 -124
- package/dist/node-runtime/{chunk-VZR3NCM7.js → chunk-W64JC4E7.js} +18 -14
- package/dist/node-runtime/{chunk-AWVD5IEY.js → chunk-X3URCYCU.js} +23 -12
- package/dist/node-runtime/{chunk-GKLEQ3I4.js → chunk-XLTL257W.js} +126 -27
- package/dist/node-runtime/{chunk-WKDK4C5P.js → chunk-YDO2F2IA.js} +38 -164
- package/dist/node-runtime/{chunk-PDNXVXMD.js → chunk-YHQ3NBB3.js} +58 -48
- package/dist/node-runtime/chunk-YPHAIRZT.js +10 -0
- package/dist/node-runtime/cli-runtime.js +2 -2
- package/dist/node-runtime/command-PDVTBRWA.js +45 -0
- package/dist/node-runtime/{commands-MV5KOZ64.js → commands-KAMO2T6P.js} +10 -10
- package/dist/node-runtime/commands-XDCFGIGW.js +36 -0
- package/dist/node-runtime/config-RORQUQFG.js +20 -0
- package/dist/node-runtime/{customize-LF5VST47.js → customize-VFJV3U6A.js} +2 -1
- package/dist/node-runtime/{direct-tool-executor-BK7CLEBX.js → direct-tool-executor-YAVOLDFY.js} +8 -8
- package/dist/node-runtime/{export-html-TEXVV5RP.js → export-html-KSOIMVPI.js} +4 -3
- package/dist/node-runtime/{extension-input-O4HSAEM4.js → extension-input-E7BJZ35H.js} +4 -4
- package/dist/node-runtime/{extension-selector-X5FCX43D.js → extension-selector-WU42XDTU.js} +4 -4
- package/dist/node-runtime/{extract-XLQSJN4V.js → extract-EQJE7FZZ.js} +2 -2
- package/dist/node-runtime/{gateway-BM6NLOH4.js → gateway-AYWM5DIO.js} +275 -994
- package/dist/node-runtime/{gemini-search-U7SUMPQA.js → gemini-search-35OCRFLN.js} +1 -1
- package/dist/node-runtime/{gemini-url-context-PXWCBQHK.js → gemini-url-context-UQY3PHHW.js} +2 -2
- package/dist/node-runtime/index.js +104 -65
- package/dist/node-runtime/{init-3C7Z24OI.js → init-X2LIUB2H.js} +3 -3
- package/dist/node-runtime/{install-cli-EXMJQESX.js → install-cli-3BO4MMQ6.js} +21 -82
- package/dist/node-runtime/interactive-mode-4MFRKAHG.js +72 -0
- package/dist/node-runtime/{interactive-view-ILS6TAN5.js → interactive-view-TUZHCQM3.js} +8 -8
- package/dist/node-runtime/lunr-browser-RYFIIVJN.js +174 -0
- package/dist/node-runtime/{lunr-cron-4VHP4E4B.js → lunr-cron-YWXEPZMQ.js} +19 -5
- package/dist/node-runtime/main.js +44 -31
- package/dist/node-runtime/{memory-cap-3S4XRLNP.js → memory-cap-EL3KL4JJ.js} +2 -1
- package/dist/node-runtime/mobile-commands-LVHDAUDP.js +32 -0
- package/dist/node-runtime/model-runtime-PLQKAG4B.js +16 -0
- package/dist/node-runtime/{model-tiers-NJLHUEGK.js → model-tiers-OU3U5CZG.js} +2 -1
- package/dist/node-runtime/{package-manager-cli-N37546V5.js → package-manager-cli-6GT3Z3CK.js} +22 -15
- package/dist/node-runtime/{pi-intercom-NV2LW6X7.js → pi-intercom-HBPK5HSJ.js} +4 -1
- package/dist/node-runtime/{pi-mcp-adapter-GUFZWW54.js → pi-mcp-adapter-E6WULBKF.js} +4 -4
- package/dist/node-runtime/{pi-subagents-6MUIFNDM.js → pi-subagents-CDWK2AKY.js} +236 -79
- package/dist/node-runtime/{pi-web-access-2CQGFLT2.js → pi-web-access-WTGMNZ32.js} +15 -15
- package/dist/node-runtime/process-registry-4FAKZQOL.js +31 -0
- package/dist/node-runtime/{proxy-modes-V6YVFH3C.js → proxy-modes-OSQCWRBI.js} +9 -9
- package/dist/node-runtime/rpc-entry.js +44 -31
- package/dist/node-runtime/{rpc-mode-W5ZTLTMZ.js → rpc-mode-O3XV4SID.js} +2 -2
- package/dist/node-runtime/runtime-4VA6JKNF.js +373 -0
- package/dist/node-runtime/{runtime-bridges-2VQTLPOZ.js → runtime-bridges-3XUQ46XW.js} +6 -5
- package/dist/node-runtime/service-ISSP6VHE.js +36 -0
- package/dist/node-runtime/session-handoff-HC7R5E24.js +33 -0
- package/dist/node-runtime/{session-manager-E7AREDTV.js → session-manager-CFN4UFM2.js} +2 -1
- package/dist/node-runtime/{session-selector-FJ7M2AIX.js → session-selector-GIM4DHQ2.js} +5 -4
- package/dist/node-runtime/{settings-manager-CUGAZWAB.js → settings-manager-6VEMXRDL.js} +7 -2
- package/dist/node-runtime/setup-5SR2J35A.js +155 -0
- package/dist/node-runtime/setup-JBKOLJ6F.js +18 -0
- package/dist/node-runtime/{subagent-executor-MH4A7CCF.js → subagent-executor-M5VWB3D3.js} +26 -18
- package/dist/node-runtime/theme-UOO5RVFN.js +68 -0
- package/dist/node-runtime/trust-manager-MMISNCYO.js +17 -0
- package/dist/node-runtime/{update-cli-XTZMZGOL.js → update-cli-UVKJWRRJ.js} +7 -2
- package/dist/node-runtime/usage-service-LFB2SWYV.js +37 -0
- package/dist/node-runtime/{video-extract-OYT5WKS5.js → video-extract-OOZHR7SU.js} +2 -2
- package/dist/node-runtime/{youtube-extract-TQYKGFGS.js → youtube-extract-FNPAUNHU.js} +6 -6
- package/docs/browser.md +86 -0
- package/docs/extensions.md +2 -0
- package/docs/features.md +96 -16
- package/docs/interactive-startup.md +2 -1
- package/docs/sessions.md +10 -0
- package/docs/settings.md +2 -0
- package/docs/tui.md +2 -0
- package/docs/usage.md +16 -0
- 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/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +7 -4
- package/scripts/install-browser.mjs +20 -0
- package/dist/node-runtime/agent-session-services-C743TYQE.js +0 -37
- package/dist/node-runtime/chunk-VGYZ3APQ.js +0 -59
- package/dist/node-runtime/chunk-XI77KVKA.js +0 -6009
- package/dist/node-runtime/command-P4NYCJ2M.js +0 -13
- package/dist/node-runtime/interactive-mode-EVVBA64D.js +0 -59
- package/dist/node-runtime/{chunk-UWQYRSYQ.js → chunk-YJMMG7C6.js} +25 -25
- package/dist/node-runtime/{mcp-panel-IIGMXQGP.js → mcp-panel-KTTFXJZ4.js} +3 -3
- package/dist/node-runtime/{src-BPQFJR76.js → src-IVPNZ2BX.js} +9 -9
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
atomicJson,
|
|
4
|
+
claimGateway,
|
|
5
|
+
configureStartup,
|
|
6
|
+
gatewayIsRunning,
|
|
7
|
+
gatewayLogPath,
|
|
8
|
+
loadServiceSettings,
|
|
9
|
+
processExists,
|
|
10
|
+
readGatewayLog,
|
|
11
|
+
readGatewayStatus,
|
|
12
|
+
serviceDirectory,
|
|
13
|
+
serviceStatusText,
|
|
14
|
+
startGatewayService,
|
|
15
|
+
startupSpec,
|
|
16
|
+
stopGatewayService
|
|
17
|
+
} from "./chunk-UWPJL22I.js";
|
|
18
|
+
import "./chunk-FQMM2EZ2.js";
|
|
19
|
+
import "./chunk-Q4Q6D4IY.js";
|
|
20
|
+
import "./chunk-BRJX2PRC.js";
|
|
21
|
+
export {
|
|
22
|
+
atomicJson,
|
|
23
|
+
claimGateway,
|
|
24
|
+
configureStartup,
|
|
25
|
+
gatewayIsRunning,
|
|
26
|
+
gatewayLogPath,
|
|
27
|
+
loadServiceSettings,
|
|
28
|
+
processExists,
|
|
29
|
+
readGatewayLog,
|
|
30
|
+
readGatewayStatus,
|
|
31
|
+
serviceDirectory,
|
|
32
|
+
serviceStatusText,
|
|
33
|
+
startGatewayService,
|
|
34
|
+
startupSpec,
|
|
35
|
+
stopGatewayService
|
|
36
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
HANDOFF_DURATION_MS,
|
|
4
|
+
SessionTransferError,
|
|
5
|
+
cancelSessionHandoff,
|
|
6
|
+
latestTuiSession,
|
|
7
|
+
listHandoffCandidates,
|
|
8
|
+
listRegisteredSessionPaths,
|
|
9
|
+
listRegisteredSessions,
|
|
10
|
+
markSessionHandoff,
|
|
11
|
+
recordTuiActivity,
|
|
12
|
+
registerTransferHandler,
|
|
13
|
+
requestSessionTransfer
|
|
14
|
+
} from "./chunk-AZJHNQKQ.js";
|
|
15
|
+
import "./chunk-XLTL257W.js";
|
|
16
|
+
import "./chunk-FVDOXRUD.js";
|
|
17
|
+
import "./chunk-UAEOTO52.js";
|
|
18
|
+
import "./chunk-FQMM2EZ2.js";
|
|
19
|
+
import "./chunk-Q4Q6D4IY.js";
|
|
20
|
+
import "./chunk-BRJX2PRC.js";
|
|
21
|
+
export {
|
|
22
|
+
HANDOFF_DURATION_MS,
|
|
23
|
+
SessionTransferError,
|
|
24
|
+
cancelSessionHandoff,
|
|
25
|
+
latestTuiSession,
|
|
26
|
+
listHandoffCandidates,
|
|
27
|
+
listRegisteredSessionPaths,
|
|
28
|
+
listRegisteredSessions,
|
|
29
|
+
markSessionHandoff,
|
|
30
|
+
recordTuiActivity,
|
|
31
|
+
registerTransferHandler,
|
|
32
|
+
requestSessionTransfer
|
|
33
|
+
};
|
|
@@ -12,8 +12,9 @@ import {
|
|
|
12
12
|
migrateSessionEntries,
|
|
13
13
|
parseSessionEntries,
|
|
14
14
|
sessionEntryToContextMessages
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XLTL257W.js";
|
|
16
16
|
import "./chunk-FVDOXRUD.js";
|
|
17
|
+
import "./chunk-UAEOTO52.js";
|
|
17
18
|
import "./chunk-FQMM2EZ2.js";
|
|
18
19
|
import "./chunk-Q4Q6D4IY.js";
|
|
19
20
|
import "./chunk-BRJX2PRC.js";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
SessionSelectorComponent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PCEW76PM.js";
|
|
5
|
+
import "./chunk-UAEOTO52.js";
|
|
5
6
|
import "./chunk-5EFIU3OM.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-6VYZ5UFP.js";
|
|
8
|
+
import "./chunk-GS42T6MX.js";
|
|
9
|
+
import "./chunk-RDDAZOMU.js";
|
|
9
10
|
import "./chunk-FQMM2EZ2.js";
|
|
10
11
|
import "./chunk-Q4Q6D4IY.js";
|
|
11
12
|
import "./chunk-BRJX2PRC.js";
|
|
@@ -6,9 +6,14 @@ import {
|
|
|
6
6
|
SKILL_TAG_CHARACTERS,
|
|
7
7
|
SettingsManager,
|
|
8
8
|
parseSkillTagCharacter
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QAZOULTU.js";
|
|
10
|
+
import "./chunk-UP2XBVH5.js";
|
|
11
|
+
import "./chunk-VWCE2HSZ.js";
|
|
10
12
|
import "./chunk-LISUTZS3.js";
|
|
11
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-URD2SLIT.js";
|
|
14
|
+
import "./chunk-UJOCPOMX.js";
|
|
15
|
+
import "./chunk-IMLCWLPI.js";
|
|
16
|
+
import "./chunk-R3K2F5GI.js";
|
|
12
17
|
import "./chunk-FQMM2EZ2.js";
|
|
13
18
|
import "./chunk-Q4Q6D4IY.js";
|
|
14
19
|
import "./chunk-BRJX2PRC.js";
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
readSecret
|
|
4
|
+
} from "./chunk-H4K3JDRB.js";
|
|
5
|
+
import {
|
|
6
|
+
createPairingStore
|
|
7
|
+
} from "./chunk-RMQZU2YU.js";
|
|
8
|
+
import {
|
|
9
|
+
configureStartup,
|
|
10
|
+
loadServiceSettings,
|
|
11
|
+
startGatewayService
|
|
12
|
+
} from "./chunk-UWPJL22I.js";
|
|
13
|
+
import {
|
|
14
|
+
loadInstallFeatures,
|
|
15
|
+
saveInstallFeatures
|
|
16
|
+
} from "./chunk-VWCE2HSZ.js";
|
|
17
|
+
import {
|
|
18
|
+
loadGatewayConfig,
|
|
19
|
+
saveGatewayConfig
|
|
20
|
+
} from "./chunk-R3K2F5GI.js";
|
|
21
|
+
import "./chunk-FQMM2EZ2.js";
|
|
22
|
+
import "./chunk-Q4Q6D4IY.js";
|
|
23
|
+
import "./chunk-BRJX2PRC.js";
|
|
24
|
+
|
|
25
|
+
// packages/coding-agent/dist/gateway/setup.js
|
|
26
|
+
import { existsSync, realpathSync, statSync } from "node:fs";
|
|
27
|
+
import { resolve } from "node:path";
|
|
28
|
+
import { createInterface } from "node:readline/promises";
|
|
29
|
+
async function validateBotToken(platform, token) {
|
|
30
|
+
let url = platform === "telegram" ? `https://api.telegram.org/bot${token}/getMe` : "https://discord.com/api/v10/users/@me", response;
|
|
31
|
+
try {
|
|
32
|
+
response = await fetch(url, {
|
|
33
|
+
headers: platform === "discord" ? { Authorization: `Bot ${token}` } : {},
|
|
34
|
+
signal: AbortSignal.timeout(15e3)
|
|
35
|
+
});
|
|
36
|
+
} catch {
|
|
37
|
+
throw new Error(`${platform}: could not reach the bot API. Check your connection and try again.`);
|
|
38
|
+
}
|
|
39
|
+
if (!response.ok)
|
|
40
|
+
throw new Error(`${platform}: token check failed with HTTP ${response.status}. Check the token and bot permissions.`);
|
|
41
|
+
let value = await response.json();
|
|
42
|
+
if (!value || typeof value != "object")
|
|
43
|
+
throw new Error(`${platform}: unexpected bot API response.`);
|
|
44
|
+
let user = platform === "telegram" && "result" in value ? value.result : value;
|
|
45
|
+
if (!user || typeof user != "object" || !("id" in user))
|
|
46
|
+
throw new Error(`${platform}: bot identity was missing.`);
|
|
47
|
+
return "username" in user && typeof user.username == "string" ? user.username : String(user.id);
|
|
48
|
+
}
|
|
49
|
+
async function setupGateway() {
|
|
50
|
+
if (!process.stdin.isTTY || !process.stdout.isTTY)
|
|
51
|
+
throw new Error("Run lunr gateway setup in a terminal. Bot tokens are entered privately, not as command arguments.");
|
|
52
|
+
let rl = createInterface({ input: process.stdin, output: process.stdout }), ask = async (question, fallback = "") => (await rl.question(`${question}${fallback ? ` [${fallback}]` : ""}: `)).trim() || fallback, cfg = loadGatewayConfig();
|
|
53
|
+
try {
|
|
54
|
+
console.log(`Set up lunR on your phone
|
|
55
|
+
Your computer must stay awake and connected to the internet. Press Ctrl+C to cancel.
|
|
56
|
+
`);
|
|
57
|
+
let choice = (await ask("Connect telegram, discord, or both", cfg.discord.enabled ? cfg.telegram.enabled ? "both" : "discord" : "telegram")).toLowerCase();
|
|
58
|
+
if (!["telegram", "discord", "both"].includes(choice))
|
|
59
|
+
throw new Error("Choose telegram, discord, or both.");
|
|
60
|
+
for (let platform of ["telegram", "discord"]) {
|
|
61
|
+
if (choice !== platform && choice !== "both")
|
|
62
|
+
continue;
|
|
63
|
+
console.log(platform === "telegram" ? `
|
|
64
|
+
Telegram
|
|
65
|
+
1. Open https://t.me/BotFather and send /newbot.
|
|
66
|
+
2. Follow its prompts and copy the bot token.
|
|
67
|
+
3. Open your new bot and send /whoami. After startup it will show your user ID and pairing code.
|
|
68
|
+
Guide: https://core.telegram.org/bots/tutorial` : `
|
|
69
|
+
Discord
|
|
70
|
+
1. Open https://discord.com/developers/applications and create an application.
|
|
71
|
+
2. Open Bot, create or reset its token, and enable Message Content Intent for ordinary chat.
|
|
72
|
+
3. Under Installation, add bot and applications.commands scopes. Grant View Channels, Send Messages, Read Message History, Attach Files, and thread permissions if needed.
|
|
73
|
+
4. Use the install link to add your bot. In Discord, enable Developer Mode and copy your user ID.
|
|
74
|
+
Guide: https://docs.discord.com/developers/quick-start/getting-started`);
|
|
75
|
+
let token = cfg[platform].token;
|
|
76
|
+
if (!token || await ask("Replace the saved token? yes/no", "no") === "yes") {
|
|
77
|
+
rl.close();
|
|
78
|
+
try {
|
|
79
|
+
token = (await readSecret(`${platform} bot token`))?.trim();
|
|
80
|
+
} finally {
|
|
81
|
+
rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if (!token)
|
|
85
|
+
throw new Error("No token entered. Existing configuration was not changed.");
|
|
86
|
+
console.log(`Connected bot: ${await validateBotToken(platform, token)}`), cfg[platform].token = token, cfg[platform].enabled = !0, cfg.owners ??= { telegram: [], discord: [] };
|
|
87
|
+
let owner = await ask(`Your ${platform} user ID, or leave empty to pair after startup`, cfg.owners[platform][0] ?? "");
|
|
88
|
+
if (owner && !/^\d+$/.test(owner))
|
|
89
|
+
throw new Error("User IDs contain digits only.");
|
|
90
|
+
owner && (cfg.owners[platform] = [.../* @__PURE__ */ new Set([...cfg.owners[platform], owner])], cfg[platform].allowedUsers = [.../* @__PURE__ */ new Set([...cfg[platform].allowedUsers, owner])]);
|
|
91
|
+
}
|
|
92
|
+
let root = await ask("Project folder you want to browse from your phone", cfg.projectRoots?.[0] ?? process.cwd()), path = resolve(root);
|
|
93
|
+
if (!existsSync(path) || !statSync(path).isDirectory())
|
|
94
|
+
throw new Error("That project folder does not exist.");
|
|
95
|
+
cfg.projectRoots = [.../* @__PURE__ */ new Set([...cfg.projectRoots ?? [], realpathSync(path)])];
|
|
96
|
+
let startup = await ask("Automatic startup: off, login, or boot", "off");
|
|
97
|
+
if (!["off", "login", "boot"].includes(startup))
|
|
98
|
+
throw new Error("Choose off, login, or boot.");
|
|
99
|
+
startup === "boot" && console.log("Boot startup may require administrator permission or OS-managed account credentials. lunR does not save your account password.");
|
|
100
|
+
let [{ ModelRuntime }, { SettingsManager }] = await Promise.all([
|
|
101
|
+
import("./model-runtime-PLQKAG4B.js"),
|
|
102
|
+
import("./settings-manager-6VEMXRDL.js")
|
|
103
|
+
]), models = await (await ModelRuntime.create({ allowModelNetwork: !1 })).getAvailable();
|
|
104
|
+
if (!models.length)
|
|
105
|
+
throw new Error("No saved model credentials found. Open lunr locally and use /login, then rerun gateway setup. Nothing saved.");
|
|
106
|
+
let settings = SettingsManager.create(process.cwd()), providers = [...new Set(models.map((model2) => model2.provider))];
|
|
107
|
+
console.log(`Saved providers: ${providers.join(", ")}`);
|
|
108
|
+
let provider = await ask("Model provider", settings.getDefaultProvider() ?? providers[0]), choices = models.filter((model2) => model2.provider === provider);
|
|
109
|
+
if (!choices.length)
|
|
110
|
+
throw new Error("Choose one of the saved providers. Nothing saved.");
|
|
111
|
+
console.log(choices.map((model2, index) => `${index + 1}. ${model2.id}`).join(`
|
|
112
|
+
`));
|
|
113
|
+
let selected = await ask("Model number or ID", choices.find((model2) => model2.id === settings.getDefaultModel())?.id ?? choices[0].id), model = choices.find((model2) => model2.id === selected) ?? choices[Number(selected) - 1];
|
|
114
|
+
if (!model)
|
|
115
|
+
throw new Error("Choose a model from the list. Nothing saved.");
|
|
116
|
+
if (await ask("Save these settings? yes/no", "yes") !== "yes") {
|
|
117
|
+
console.log("Cancelled. Nothing saved.");
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
saveGatewayConfig(cfg), settings.setDefaultModelAndProvider(model.provider, model.id);
|
|
121
|
+
let features = loadInstallFeatures();
|
|
122
|
+
features.features["chat-platforms"] = {
|
|
123
|
+
enabled: !0,
|
|
124
|
+
options: {
|
|
125
|
+
...features.features["chat-platforms"]?.options,
|
|
126
|
+
autostart: loadServiceSettings().startup !== "off"
|
|
127
|
+
}
|
|
128
|
+
}, saveInstallFeatures(features);
|
|
129
|
+
try {
|
|
130
|
+
await configureStartup(startup);
|
|
131
|
+
} finally {
|
|
132
|
+
features.features["chat-platforms"].options.autostart = loadServiceSettings().startup !== "off", saveInstallFeatures(features);
|
|
133
|
+
}
|
|
134
|
+
await ask("Start the gateway now? yes/no", "yes") === "yes" && console.log(await startGatewayService()), console.log(`
|
|
135
|
+
Send /whoami to your bot. To approve your own pairing code with access to projects and TUI sessions, run:
|
|
136
|
+
lunr gateway pair approve <telegram|discord> <code> --owner
|
|
137
|
+
Then use /project, /sessions, or /continue on your phone.`);
|
|
138
|
+
} finally {
|
|
139
|
+
rl.close();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function approveGatewayOwner(platform, code) {
|
|
143
|
+
if (platform !== "telegram" && platform !== "discord")
|
|
144
|
+
throw new Error("Choose telegram or discord.");
|
|
145
|
+
let user = createPairingStore().approve(platform, code);
|
|
146
|
+
if (!user)
|
|
147
|
+
throw new Error("Pairing code is invalid or expired.");
|
|
148
|
+
let cfg = loadGatewayConfig();
|
|
149
|
+
return cfg.owners ??= { telegram: [], discord: [] }, cfg.owners[platform] = [.../* @__PURE__ */ new Set([...cfg.owners[platform], user])], cfg[platform].allowedUsers = [.../* @__PURE__ */ new Set([...cfg[platform].allowedUsers, user])], saveGatewayConfig(cfg), `Approved ${platform} owner ${user}. Owner access includes local projects and TUI session history.`;
|
|
150
|
+
}
|
|
151
|
+
export {
|
|
152
|
+
approveGatewayOwner,
|
|
153
|
+
setupGateway,
|
|
154
|
+
validateBotToken
|
|
155
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import "./chunk-BRJX2PRC.js";
|
|
3
|
+
|
|
4
|
+
// packages/coding-agent/dist/core/browser/setup.js
|
|
5
|
+
import { spawn } from "node:child_process";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
|
+
async function installBrowser(explicit = !0) {
|
|
8
|
+
let script = fileURLToPath(new URL("../../../scripts/install-browser.mjs", new URL("../core/browser/setup.js", import.meta.url).href));
|
|
9
|
+
await new Promise((resolve, reject) => {
|
|
10
|
+
let child = spawn(process.execPath, [script, ...explicit ? ["--explicit"] : []], { stdio: "inherit", windowsHide: !0 });
|
|
11
|
+
child.once("error", reject), child.once("exit", (code) => {
|
|
12
|
+
code === 0 ? resolve() : reject(new Error(`Chromium setup failed (${code}). Retry lunr browser install when online.`));
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
installBrowser
|
|
18
|
+
};
|
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
ASYNC_DIR,
|
|
4
4
|
CHAIN_RUNS_DIR,
|
|
5
5
|
DEFAULT_ARTIFACT_CONFIG,
|
|
6
|
-
DEFAULT_CONTROL_CONFIG,
|
|
7
6
|
DEFAULT_FORK_PREAMBLE,
|
|
8
7
|
DEFAULT_GLOBAL_CONCURRENCY_LIMIT,
|
|
9
8
|
DEFAULT_MAX_OUTPUT,
|
|
@@ -34,7 +33,6 @@ import {
|
|
|
34
33
|
attachRootChildrenToSteps,
|
|
35
34
|
buildChainInstructions,
|
|
36
35
|
buildChainSummary,
|
|
37
|
-
buildControlEvent,
|
|
38
36
|
buildModelCandidates,
|
|
39
37
|
buildPiArgs,
|
|
40
38
|
buildRevivedAsyncTask,
|
|
@@ -46,7 +44,6 @@ import {
|
|
|
46
44
|
checkSubagentDepth,
|
|
47
45
|
childRowLabel,
|
|
48
46
|
childWatchdogIsActive,
|
|
49
|
-
claimControlNotification,
|
|
50
47
|
cleanupTempDir,
|
|
51
48
|
clearPendingForegroundControlNotices,
|
|
52
49
|
compactForegroundDetails,
|
|
@@ -59,7 +56,6 @@ import {
|
|
|
59
56
|
deliverStopRequest,
|
|
60
57
|
deliverSubagentIntercomMessageEvent,
|
|
61
58
|
deliverSubagentResultIntercomEvent,
|
|
62
|
-
deriveActivityState,
|
|
63
59
|
detectSubagentError,
|
|
64
60
|
diagnoseIntercomBridge,
|
|
65
61
|
discoverAvailableSkills,
|
|
@@ -79,8 +75,6 @@ import {
|
|
|
79
75
|
formatAsyncRunOutputPath,
|
|
80
76
|
formatAsyncRunProgressLabel,
|
|
81
77
|
formatAsyncRunTranscript,
|
|
82
|
-
formatControlIntercomMessage,
|
|
83
|
-
formatControlNoticeMessage,
|
|
84
78
|
formatModelAttemptNote,
|
|
85
79
|
formatModelSelection,
|
|
86
80
|
formatNestedRunStatusLines,
|
|
@@ -130,7 +124,6 @@ import {
|
|
|
130
124
|
resolveChildExcludeTools,
|
|
131
125
|
resolveChildMaxSubagentDepth,
|
|
132
126
|
resolveChildWatchdogConfig,
|
|
133
|
-
resolveControlConfig,
|
|
134
127
|
resolveCurrentMaxSubagentDepth,
|
|
135
128
|
resolveCurrentSessionId,
|
|
136
129
|
resolveEffectiveAcceptance,
|
|
@@ -158,7 +151,6 @@ import {
|
|
|
158
151
|
resolveWatchdogModelInput,
|
|
159
152
|
restorePersistedAcceptance,
|
|
160
153
|
shouldAbortForTurnBudget,
|
|
161
|
-
shouldNotifyControlEvent,
|
|
162
154
|
splitKnownThinkingSuffix,
|
|
163
155
|
splitThinkingSuffix,
|
|
164
156
|
stripAcceptanceReport,
|
|
@@ -187,26 +179,38 @@ import {
|
|
|
187
179
|
writeNestedControlRequest,
|
|
188
180
|
writeNestedEvent,
|
|
189
181
|
writePrivateAtomicJson
|
|
190
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-RIR5EDDJ.js";
|
|
183
|
+
import {
|
|
184
|
+
DEFAULT_CONTROL_CONFIG,
|
|
185
|
+
buildControlEvent,
|
|
186
|
+
claimControlNotification,
|
|
187
|
+
deriveActivityState,
|
|
188
|
+
formatControlIntercomMessage,
|
|
189
|
+
formatControlNoticeMessage,
|
|
190
|
+
resolveControlConfig,
|
|
191
|
+
shouldNotifyControlEvent
|
|
192
|
+
} from "./chunk-OAR4TYZE.js";
|
|
191
193
|
import {
|
|
192
194
|
PLAN_MODE_WRITE_SPAWN_ERROR,
|
|
193
195
|
resolveChildPermissions,
|
|
194
196
|
snapshotParentPermissionMode
|
|
195
|
-
} from "./chunk-
|
|
196
|
-
import "./chunk-
|
|
197
|
+
} from "./chunk-CSUZVNYE.js";
|
|
198
|
+
import "./chunk-YDO2F2IA.js";
|
|
197
199
|
import "./chunk-53YJI7JU.js";
|
|
198
|
-
import "./chunk-
|
|
200
|
+
import "./chunk-5ZQXRPMC.js";
|
|
201
|
+
import "./chunk-AD6VXAO7.js";
|
|
202
|
+
import "./chunk-5D7LC2ZQ.js";
|
|
203
|
+
import "./chunk-M3LZLQW2.js";
|
|
204
|
+
import "./chunk-KKUTQQV7.js";
|
|
199
205
|
import "./chunk-CSFI6YXL.js";
|
|
200
206
|
import {
|
|
201
207
|
SessionManager
|
|
202
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-XLTL257W.js";
|
|
203
209
|
import "./chunk-FVDOXRUD.js";
|
|
204
|
-
import "./chunk-
|
|
205
|
-
import "./chunk-6N22HULO.js";
|
|
206
|
-
import "./chunk-M3LZLQW2.js";
|
|
210
|
+
import "./chunk-UAEOTO52.js";
|
|
207
211
|
import "./chunk-RQ2Q5IYR.js";
|
|
208
|
-
import "./chunk-
|
|
209
|
-
import "./chunk-
|
|
212
|
+
import "./chunk-GS42T6MX.js";
|
|
213
|
+
import "./chunk-RDDAZOMU.js";
|
|
210
214
|
import "./chunk-FQMM2EZ2.js";
|
|
211
215
|
import "./chunk-Q4Q6D4IY.js";
|
|
212
216
|
import "./chunk-BRJX2PRC.js";
|
|
@@ -7105,7 +7109,9 @@ function runAsyncPath(data, deps) {
|
|
|
7105
7109
|
description: task.description,
|
|
7106
7110
|
permissions: task.permissions,
|
|
7107
7111
|
cwd: task.cwd,
|
|
7112
|
+
model: task.model,
|
|
7108
7113
|
tier: task.tier,
|
|
7114
|
+
thinking: task.thinking,
|
|
7109
7115
|
...skillOverrides[index] !== void 0 ? { skill: skillOverrides[index] } : {},
|
|
7110
7116
|
...task.output !== void 0 && task.output !== !0 ? { output: task.output } : {},
|
|
7111
7117
|
...task.outputMode !== void 0 ? { outputMode: task.outputMode } : {},
|
|
@@ -7588,7 +7594,9 @@ async function runParallelPath(data, deps) {
|
|
|
7588
7594
|
description: t.description,
|
|
7589
7595
|
permissions: t.permissions,
|
|
7590
7596
|
cwd: t.cwd,
|
|
7597
|
+
model: t.model,
|
|
7591
7598
|
tier: t.tier,
|
|
7599
|
+
thinking: t.thinking,
|
|
7592
7600
|
...skillOverrides[i] !== void 0 ? { skill: skillOverrides[i] } : {},
|
|
7593
7601
|
...behaviorOverrides[i]?.output !== void 0 ? { output: behaviorOverrides[i].output } : {},
|
|
7594
7602
|
...behaviorOverrides[i]?.outputMode !== void 0 ? { outputMode: behaviorOverrides[i].outputMode } : {},
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
DEFAULT_THEME_GLYPHS,
|
|
4
|
+
Theme,
|
|
5
|
+
detectTerminalBackgroundFromEnv,
|
|
6
|
+
detectTerminalBackgroundTheme,
|
|
7
|
+
detectTerminalThemeForAuto,
|
|
8
|
+
getAvailableThemes,
|
|
9
|
+
getAvailableThemesWithPaths,
|
|
10
|
+
getDefaultTheme,
|
|
11
|
+
getEditorTheme,
|
|
12
|
+
getLanguageFromPath,
|
|
13
|
+
getMarkdownTheme,
|
|
14
|
+
getResolvedThemeColors,
|
|
15
|
+
getSelectListTheme,
|
|
16
|
+
getSettingsListTheme,
|
|
17
|
+
getThemeByName,
|
|
18
|
+
getThemeExportColors,
|
|
19
|
+
getThemeForRgbColor,
|
|
20
|
+
getThemeName,
|
|
21
|
+
highlightCode,
|
|
22
|
+
initTheme,
|
|
23
|
+
isLightTheme,
|
|
24
|
+
loadThemeFromPath,
|
|
25
|
+
onThemeChange,
|
|
26
|
+
parseAutoThemeSetting,
|
|
27
|
+
resolveThemeSetting,
|
|
28
|
+
setRegisteredThemes,
|
|
29
|
+
setTheme,
|
|
30
|
+
setThemeInstance,
|
|
31
|
+
stopThemeWatcher,
|
|
32
|
+
theme
|
|
33
|
+
} from "./chunk-RDDAZOMU.js";
|
|
34
|
+
import "./chunk-FQMM2EZ2.js";
|
|
35
|
+
import "./chunk-Q4Q6D4IY.js";
|
|
36
|
+
import "./chunk-BRJX2PRC.js";
|
|
37
|
+
export {
|
|
38
|
+
DEFAULT_THEME_GLYPHS,
|
|
39
|
+
Theme,
|
|
40
|
+
detectTerminalBackgroundFromEnv,
|
|
41
|
+
detectTerminalBackgroundTheme,
|
|
42
|
+
detectTerminalThemeForAuto,
|
|
43
|
+
getAvailableThemes,
|
|
44
|
+
getAvailableThemesWithPaths,
|
|
45
|
+
getDefaultTheme,
|
|
46
|
+
getEditorTheme,
|
|
47
|
+
getLanguageFromPath,
|
|
48
|
+
getMarkdownTheme,
|
|
49
|
+
getResolvedThemeColors,
|
|
50
|
+
getSelectListTheme,
|
|
51
|
+
getSettingsListTheme,
|
|
52
|
+
getThemeByName,
|
|
53
|
+
getThemeExportColors,
|
|
54
|
+
getThemeForRgbColor,
|
|
55
|
+
getThemeName,
|
|
56
|
+
highlightCode,
|
|
57
|
+
initTheme,
|
|
58
|
+
isLightTheme,
|
|
59
|
+
loadThemeFromPath,
|
|
60
|
+
onThemeChange,
|
|
61
|
+
parseAutoThemeSetting,
|
|
62
|
+
resolveThemeSetting,
|
|
63
|
+
setRegisteredThemes,
|
|
64
|
+
setTheme,
|
|
65
|
+
setThemeInstance,
|
|
66
|
+
stopThemeWatcher,
|
|
67
|
+
theme
|
|
68
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
ProjectTrustStore,
|
|
4
|
+
getProjectTrustOptions,
|
|
5
|
+
getProjectTrustParentPath,
|
|
6
|
+
hasTrustRequiringProjectResources
|
|
7
|
+
} from "./chunk-HTFRRDSF.js";
|
|
8
|
+
import "./chunk-URD2SLIT.js";
|
|
9
|
+
import "./chunk-FQMM2EZ2.js";
|
|
10
|
+
import "./chunk-Q4Q6D4IY.js";
|
|
11
|
+
import "./chunk-BRJX2PRC.js";
|
|
12
|
+
export {
|
|
13
|
+
ProjectTrustStore,
|
|
14
|
+
getProjectTrustOptions,
|
|
15
|
+
getProjectTrustParentPath,
|
|
16
|
+
hasTrustRequiringProjectResources
|
|
17
|
+
};
|
|
@@ -6,9 +6,14 @@ import {
|
|
|
6
6
|
import "./chunk-DVGWF6A2.js";
|
|
7
7
|
import {
|
|
8
8
|
SettingsManager
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QAZOULTU.js";
|
|
10
|
+
import "./chunk-UP2XBVH5.js";
|
|
11
|
+
import "./chunk-VWCE2HSZ.js";
|
|
10
12
|
import "./chunk-LISUTZS3.js";
|
|
11
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-URD2SLIT.js";
|
|
14
|
+
import "./chunk-UJOCPOMX.js";
|
|
15
|
+
import "./chunk-IMLCWLPI.js";
|
|
16
|
+
import "./chunk-R3K2F5GI.js";
|
|
12
17
|
import {
|
|
13
18
|
APP_NAME,
|
|
14
19
|
NPM_CLI_PACKAGE,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
PLAN_USAGE_CACHE_TTL_MS,
|
|
4
|
+
USAGE_SERVICE_BRIDGE_SYMBOL,
|
|
5
|
+
clearPlanUsageCache,
|
|
6
|
+
footerPlanLabel,
|
|
7
|
+
getAllPlanUsageResults,
|
|
8
|
+
getPlanUsage,
|
|
9
|
+
getPlanUsageResult,
|
|
10
|
+
getUsageServiceBridge,
|
|
11
|
+
hasPlanUsageAdapter,
|
|
12
|
+
isFiveHourPlanWindow,
|
|
13
|
+
isWeeklyPlanWindow,
|
|
14
|
+
peekPlanUsage,
|
|
15
|
+
pickPlanWindow,
|
|
16
|
+
planUsageAuthError,
|
|
17
|
+
registerUsageServiceBridge
|
|
18
|
+
} from "./chunk-2MI5OPMN.js";
|
|
19
|
+
import "./chunk-IMLCWLPI.js";
|
|
20
|
+
import "./chunk-BRJX2PRC.js";
|
|
21
|
+
export {
|
|
22
|
+
PLAN_USAGE_CACHE_TTL_MS,
|
|
23
|
+
USAGE_SERVICE_BRIDGE_SYMBOL,
|
|
24
|
+
clearPlanUsageCache,
|
|
25
|
+
footerPlanLabel,
|
|
26
|
+
getAllPlanUsageResults,
|
|
27
|
+
getPlanUsage,
|
|
28
|
+
getPlanUsageResult,
|
|
29
|
+
getUsageServiceBridge,
|
|
30
|
+
hasPlanUsageAdapter,
|
|
31
|
+
isFiveHourPlanWindow,
|
|
32
|
+
isWeeklyPlanWindow,
|
|
33
|
+
peekPlanUsage,
|
|
34
|
+
pickPlanWindow,
|
|
35
|
+
planUsageAuthError,
|
|
36
|
+
registerUsageServiceBridge
|
|
37
|
+
};
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
} from "./chunk-3WFAEVKS.js";
|
|
12
12
|
import {
|
|
13
13
|
extractHeadingTitle
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-UQUCFAJ3.js";
|
|
15
|
+
import "./chunk-NAY6UUQZ.js";
|
|
16
16
|
import {
|
|
17
17
|
activityMonitor
|
|
18
18
|
} from "./chunk-DAPBPCBP.js";
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
isPerplexityAvailable,
|
|
4
|
+
searchWithPerplexity
|
|
5
|
+
} from "./chunk-XBWPBZBN.js";
|
|
2
6
|
import {
|
|
3
7
|
isGeminiWebAvailable,
|
|
4
8
|
queryWithCookies
|
|
@@ -8,14 +12,10 @@ import {
|
|
|
8
12
|
isGeminiApiAvailable,
|
|
9
13
|
queryGeminiApiWithVideo
|
|
10
14
|
} from "./chunk-3WFAEVKS.js";
|
|
11
|
-
import {
|
|
12
|
-
isPerplexityAvailable,
|
|
13
|
-
searchWithPerplexity
|
|
14
|
-
} from "./chunk-XBWPBZBN.js";
|
|
15
15
|
import {
|
|
16
16
|
extractHeadingTitle
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-UQUCFAJ3.js";
|
|
18
|
+
import "./chunk-NAY6UUQZ.js";
|
|
19
19
|
import {
|
|
20
20
|
activityMonitor
|
|
21
21
|
} from "./chunk-DAPBPCBP.js";
|