@fased/fased 0.1.54 → 0.1.56
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/config/capability-catalog.json +12 -0
- package/dist/acp/client.js +2 -2
- package/dist/acp/secret-file.js +2 -2
- package/dist/agents/agent-scope.js +2 -2
- package/dist/agents/apply-patch.js +8 -8
- package/dist/agents/auth-profiles/paths.js +2 -2
- package/dist/agents/auth-profiles/store.js +2 -2
- package/dist/agents/authenticated-model-catalog.js +28 -0
- package/dist/agents/bash-tools.exec-host-node.js +1 -1
- package/dist/agents/bash-tools.exec.js +1 -1
- package/dist/agents/bash-tools.shared.js +2 -2
- package/dist/agents/cli-credentials.js +4 -4
- package/dist/agents/copilot-dynamic-headers.js +37 -0
- package/dist/agents/current-model-catalog.js +9 -13
- package/dist/agents/docs-path.js +3 -3
- package/dist/agents/embedded-pi-mcp.js +4 -4
- package/dist/agents/identity-avatar.js +3 -3
- package/dist/agents/identity-file.js +2 -2
- package/dist/agents/model-catalog-normalized.js +1 -0
- package/dist/agents/model-catalog-source.js +2 -2
- package/dist/agents/model-catalog.js +1 -1
- package/dist/agents/model-metadata.js +58 -9
- package/dist/agents/openai-codex-app-server.js +499 -0
- package/dist/agents/pi-embedded-runner/compact.js +3 -3
- package/dist/agents/pi-embedded-runner/extra-params.js +168 -79
- package/dist/agents/pi-embedded-runner/model.js +62 -1
- package/dist/agents/pi-embedded-runner/moonshot-stream-wrappers.js +46 -0
- package/dist/agents/pi-embedded-runner/openai-stream-wrappers.js +221 -0
- package/dist/agents/pi-embedded-runner/run/attempt.js +6 -4
- package/dist/agents/pi-embedded-runner/run.js +5 -2
- package/dist/agents/pi-embedded-runner/utils.js +1 -1
- package/dist/agents/pi-embedded-runner.js +1 -1
- package/dist/agents/pi-embedded-subscribe.raw-stream.js +3 -3
- package/dist/agents/pi-extensions/compaction-safeguard.js +3 -3
- package/dist/agents/pi-model-discovery.js +6 -6
- package/dist/agents/pi-project-settings.js +3 -3
- package/dist/agents/pi-tools.js +2 -2
- package/dist/agents/sandbox/fs-bridge.js +2 -2
- package/dist/agents/session-dirs.js +4 -4
- package/dist/agents/session-write-lock.js +13 -13
- package/dist/agents/shell-utils.js +5 -5
- package/dist/agents/skills/bundled-dir.js +4 -4
- package/dist/agents/skills/local-loader.js +6 -6
- package/dist/agents/skills/plugin-skills.js +2 -2
- package/dist/agents/skills/workspace.js +13 -13
- package/dist/agents/skills-install-download.js +7 -7
- package/dist/agents/skills-install-plan.js +2 -2
- package/dist/agents/skills-install.js +2 -2
- package/dist/agents/skills-status.js +2 -2
- package/dist/agents/subagent-depth.js +2 -2
- package/dist/agents/system-prompt-params.js +2 -2
- package/dist/agents/tools/discord-actions-messaging.js +1 -1
- package/dist/agents/tools/message-tool.js +1 -1
- package/dist/agents/tools/session-status-tool.js +3 -3
- package/dist/agents/tools/slack-actions.js +1 -1
- package/dist/agents/tools/tts-tool.js +1 -1
- package/dist/agents/workspace.js +22 -22
- package/dist/auto-reply/reply/agent-runner-execution.js +2 -2
- package/dist/auto-reply/reply/agent-runner.js +2 -2
- package/dist/auto-reply/reply/commands-export-session.js +7 -7
- package/dist/auto-reply/reply/commands-models.js +1 -1
- package/dist/auto-reply/reply/directive-handling.impl.js +4 -1
- package/dist/auto-reply/reply/dispatch-acp.js +1 -1
- package/dist/auto-reply/reply/dispatch-from-config.js +1 -1
- package/dist/auto-reply/reply/get-reply-run.js +20 -2
- package/dist/auto-reply/reply/model-selection.js +1 -1
- package/dist/auto-reply/reply/post-compaction-audit.js +3 -3
- package/dist/auto-reply/reply/post-compaction-context.js +3 -3
- package/dist/auto-reply/reply/session-reset-model.js +1 -1
- package/dist/auto-reply/reply/session.js +3 -3
- package/dist/auto-reply/skill-commands.js +3 -3
- package/dist/auto-reply/status.js +7 -7
- package/dist/auto-reply/thinking.js +1 -1
- package/dist/brand.js +1 -1
- package/dist/browser/cdp.helpers.js +2 -2
- package/dist/browser/chrome.executables.js +3 -3
- package/dist/browser/chrome.js +5 -5
- package/dist/browser/chrome.profile-decoration.js +6 -6
- package/dist/browser/extension-relay.js +7 -7
- package/dist/browser/profiles-service.js +2 -2
- package/dist/browser/server-context.js +2 -2
- package/dist/browser/trash.js +4 -4
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/canvas-host/server.js +4 -4
- package/dist/capabilities/catalog.js +3 -3
- package/dist/channels/plugins/catalog.js +3 -3
- package/dist/cli/browser-cli-extension.js +6 -6
- package/dist/cli/command-format.js +2 -2
- package/dist/cli/cron-cli/register.cron-add.js +1 -1
- package/dist/cli/cron-cli/register.cron-simple.js +2 -2
- package/dist/cli/dns-cli.js +9 -9
- package/dist/cli/gateway-cli/dev.js +5 -5
- package/dist/cli/gateway-cli/run.js +2 -2
- package/dist/cli/hooks-cli.js +5 -5
- package/dist/cli/lightweight/gateway-runtime-probe.js +2 -2
- package/dist/cli/memory-cli.js +7 -7
- package/dist/cli/nodes-media-utils.js +2 -2
- package/dist/cli/plugins-cli.js +2 -2
- package/dist/cli/program/register.agent.js +1 -1
- package/dist/cli/providers-cli.js +3 -2
- package/dist/cli/secrets-cli.js +3 -3
- package/dist/cli/windows-argv.js +2 -2
- package/dist/commands/agent.js +22 -3
- package/dist/commands/auth-choice.apply.api-providers.js +3 -8
- package/dist/commands/auth-choice.apply.openai.js +13 -7
- package/dist/commands/auth-choice.model-check.js +1 -2
- package/dist/commands/configure.gateway-auth.js +14 -16
- package/dist/commands/dashboard-link.js +3 -3
- package/dist/commands/doctor-config-flow.js +1 -1
- package/dist/commands/doctor-install.js +5 -5
- package/dist/commands/doctor-memory-search.js +2 -2
- package/dist/commands/doctor-platform-notes.js +2 -2
- package/dist/commands/doctor-sandbox.js +2 -2
- package/dist/commands/doctor-state-integrity.js +23 -23
- package/dist/commands/doctor-workspace.js +3 -3
- package/dist/commands/doctor.js +3 -3
- package/dist/commands/hosted-dashboard-probe.js +3 -3
- package/dist/commands/managed-up.js +2 -2
- package/dist/commands/model-picker.js +27 -8
- package/dist/commands/models/list.probe.js +1 -1
- package/dist/commands/models/list.registry.js +13 -17
- package/dist/commands/models/list.status-command.js +2 -2
- package/dist/commands/onboard-auth.config-core.js +1 -1
- package/dist/commands/onboard-auth.config-litellm.js +21 -21
- package/dist/commands/onboard-auth.credentials.js +3 -4
- package/dist/commands/onboard-auth.js +0 -1
- package/dist/commands/onboarding/plugin-install.js +2 -2
- package/dist/commands/openai-codex-model-default.js +28 -5
- package/dist/commands/sessions-cleanup.js +2 -2
- package/dist/commands/signal-install.js +6 -6
- package/dist/commands/status-all/channels.js +2 -2
- package/dist/commands/wallet.js +47 -47
- package/dist/config/cache-utils.js +2 -2
- package/dist/config/includes.js +5 -5
- package/dist/config/io.js +2 -2
- package/dist/config/paths.js +3 -3
- package/dist/config/sat-runtime-ids.js +3 -3
- package/dist/config/sessions/disk-budget.js +6 -6
- package/dist/config/sessions/paths.js +2 -2
- package/dist/config/sessions/store.js +17 -17
- package/dist/config/sessions/transcript.js +4 -4
- package/dist/config/talk.js +2 -2
- package/dist/config/zod-schema.agent-defaults.js +6 -2
- package/dist/config/zod-schema.agent-runtime.js +6 -2
- package/dist/config/zod-schema.core.js +6 -2
- package/dist/control-ui/assets/{app-BKlu6OKz.js → app-D7TXyNRi.js} +1548 -1540
- package/dist/control-ui/assets/chat-model-ref-Djkv93yn.js +2 -0
- package/dist/control-ui/assets/{index-nrFcGMv-.js → index-BmSBom-w.js} +3 -3
- package/dist/control-ui/assets/{providers-BQFrRqym.js → providers-Cc89iMdx.js} +5 -5
- package/dist/control-ui/index.html +1 -1
- package/dist/control-ui/version.json +1 -0
- package/dist/cron/isolated-agent/run.js +6 -2
- package/dist/cron/service/jobs.js +11 -1
- package/dist/cron/service/store.js +2 -2
- package/dist/cron/store.js +6 -6
- package/dist/daemon/systemd-system.js +5 -5
- package/dist/discord/monitor/gateway-plugin.js +2 -2
- package/dist/discord/monitor/thread-bindings.state.js +2 -2
- package/dist/discord/voice/manager.js +1 -1
- package/dist/extensions/sat-mining/src/sat-bond-layout.js +9 -9
- package/dist/gateway/client.js +4 -4
- package/dist/gateway/control-ui-boot-check.js +6 -6
- package/dist/gateway/control-ui-login.js +7 -7
- package/dist/gateway/control-ui.js +11 -9
- package/dist/gateway/hooks-mapping.js +4 -4
- package/dist/gateway/protocol/schema/agents-models-skills.js +66 -4
- package/dist/gateway/server-discovery.js +2 -2
- package/dist/gateway/server-http.js +4 -4
- package/dist/gateway/server-methods/chat.js +3 -3
- package/dist/gateway/server-methods/models.js +8 -8
- package/dist/gateway/server-methods/sessions.js +8 -8
- package/dist/gateway/server-methods/tts.js +2 -2
- package/dist/gateway/server-methods/usage.js +2 -2
- package/dist/gateway/server-model-catalog.js +3 -0
- package/dist/gateway/server.impl.js +3 -3
- package/dist/gateway/session-compaction-checkpoints.js +4 -4
- package/dist/gateway/session-utils.fs.js +24 -24
- package/dist/gateway/session-utils.js +6 -6
- package/dist/gateway/sessions-patch.js +27 -24
- package/dist/hooks/bundled-dir.js +4 -4
- package/dist/hooks/gmail-setup-utils.js +6 -6
- package/dist/hooks/import-url.js +2 -2
- package/dist/hooks/loader.js +4 -4
- package/dist/hooks/workspace.js +7 -7
- package/dist/infra/archive.js +17 -17
- package/dist/infra/boundary-file-read.js +2 -2
- package/dist/infra/boundary-path.js +15 -15
- package/dist/infra/brew.js +2 -2
- package/dist/infra/control-ui-assets.js +14 -14
- package/dist/infra/device-auth-store.js +8 -8
- package/dist/infra/device-identity.js +8 -8
- package/dist/infra/dotenv.js +2 -2
- package/dist/infra/exec-approvals.js +8 -8
- package/dist/infra/exec-command-resolution.js +4 -4
- package/dist/infra/exec-safe-bin-trust.js +2 -2
- package/dist/infra/fased-root.js +5 -5
- package/dist/infra/fs-safe.js +14 -14
- package/dist/infra/gateway-lock.js +11 -11
- package/dist/infra/git-commit.js +5 -5
- package/dist/infra/git-root.js +4 -4
- package/dist/infra/hosted-runtime-artifact.js +3 -3
- package/dist/infra/is-main.js +2 -2
- package/dist/infra/json-file.js +7 -7
- package/dist/infra/outbound/delivery-queue.js +16 -16
- package/dist/infra/path-env.js +3 -3
- package/dist/infra/ports-lsof.js +4 -4
- package/dist/infra/provider-usage.auth.js +3 -3
- package/dist/infra/safe-open-sync.js +2 -2
- package/dist/infra/session-cost-usage.js +9 -9
- package/dist/infra/shell-env.js +2 -2
- package/dist/infra/state-migrations.fs.js +6 -6
- package/dist/infra/state-migrations.js +23 -23
- package/dist/infra/tmp-fased-dir.js +6 -6
- package/dist/infra/update-runner.js +31 -3
- package/dist/infra/widearea-dns.js +3 -3
- package/dist/infra/wsl.js +2 -2
- package/dist/light-update-status.js +1 -1
- package/dist/line/accounts.js +2 -2
- package/dist/line/download.js +2 -2
- package/dist/logging/config.js +3 -3
- package/dist/logging/logger.js +7 -7
- package/dist/managed/federation.js +3 -3
- package/dist/managed/tunnel.js +3 -3
- package/dist/media/store.js +13 -13
- package/dist/media-understanding/runner.js +3 -3
- package/dist/memory/embeddings.js +2 -2
- package/dist/memory/internal.js +10 -10
- package/dist/memory/inventory.js +19 -2
- package/dist/memory/manager-sync-ops.js +7 -7
- package/dist/memory/repair-executor.js +17 -17
- package/dist/node-host/invoke-system-run-plan.js +8 -8
- package/dist/node-host/invoke.js +2 -2
- package/dist/node-host/runner.js +3 -3
- package/dist/pairing/pairing-store.js +3 -3
- package/dist/plugin-sdk/{accounts-DW9OS5Ll.js → accounts-DzWlKv1U.js} +1 -1
- package/dist/plugin-sdk/{actions-DQUXohRr.js → actions-BplQVLL6.js} +4 -4
- package/dist/plugin-sdk/{active-listener-BZQWZPF7.js → active-listener-x4MLhYUw.js} +1 -1
- package/dist/plugin-sdk/{allow-list-BYeKk0Sy.js → allow-list-DyAxs4yw.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-t4mmHsI2.js → audio-preflight-G8h3Sn8_.js} +43 -47
- package/dist/plugin-sdk/{audit-BZk_6Buw.js → audit-CWknklvI.js} +1 -1
- package/dist/plugin-sdk/{channel-access-CN5HiWdb.js → channel-access-a9Dnfw7-.js} +1 -1
- package/dist/plugin-sdk/{channel-access-configure-B7Kkvx9K.js → channel-access-configure-CD4QDN5E.js} +1 -1
- package/dist/plugin-sdk/{channel-adapters.discord-IOZP8Cv5.js → channel-adapters.discord-BS4S4Svh.js} +1 -1
- package/dist/plugin-sdk/channel-plugin-common.d.ts +3 -3
- package/dist/plugin-sdk/channel-plugin-common.js +4 -4
- package/dist/plugin-sdk/{chunk-B2ffJ-LR.js → chunk-B8EZkwiT.js} +1 -1
- package/dist/plugin-sdk/{chunk-items-jOdkyP53.js → chunk-items-CEPklxGe.js} +1 -1
- package/dist/plugin-sdk/command-status.d.ts +2 -2
- package/dist/plugin-sdk/command-status.js +43 -47
- package/dist/plugin-sdk/{commands-registry-BWb4NcfW.js → commands-registry-BfEa4tFA.js} +2 -2
- package/dist/plugin-sdk/{common-C4XrB73N.js → common-CbfckC19.js} +1 -1
- package/dist/plugin-sdk/{config-rySyVtKs.js → config-Bt5GhnA-.js} +105 -73
- package/dist/plugin-sdk/{config-schema-BaybPPrJ.js → config-schema-B9DKr6J5.js} +96239 -81587
- package/dist/plugin-sdk/device-pair.d.ts +1 -1
- package/dist/plugin-sdk/device-pair.js +2 -3
- package/dist/plugin-sdk/{diagnostic-Dfn1iERm.js → diagnostic-DLL_zekv.js} +3 -3
- package/dist/plugin-sdk/{directory-live-DatqU-eS.js → directory-live-CSuYxdwk.js} +1 -1
- package/dist/plugin-sdk/{directory-live-ClwN5KKq.js → directory-live-Dw7ZgC9_.js} +1 -1
- package/dist/plugin-sdk/discord.d.ts +5 -5
- package/dist/plugin-sdk/discord.js +31 -32
- package/dist/plugin-sdk/{draft-stream-controls-D4Tb_iS_.js → draft-stream-controls-BqchW1vi.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-BuYrl6q2.js → fetch-guard-CeG6u6ld.js} +1 -1
- package/dist/plugin-sdk/{filesystem-manager-B9DDPgfU.js → filesystem-manager-BGGGrkiN.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-BG-VzVkL.js → fs-safe-xBqok6yR.js} +1 -1
- package/dist/plugin-sdk/{group-mentions-DLOOve8d.d.ts → group-mentions-BHRff6j8.d.ts} +1 -1
- package/dist/plugin-sdk/{guilds-BeT3iHHJ.js → guilds-CDhRIX57.js} +1 -1
- package/dist/plugin-sdk/{handle-action-CGF-Qnp0.js → handle-action-DbzZFYnG.js} +24 -25
- package/dist/plugin-sdk/{helpers-DgRMfCnT.js → helpers-CluGKuIV.js} +1 -1
- package/dist/plugin-sdk/{image-ops-CcBfoMLW.js → image-ops-CUaLtIFj.js} +1 -1
- package/dist/plugin-sdk/index.d.ts +8 -8
- package/dist/plugin-sdk/index.js +47 -51
- package/dist/plugin-sdk/json-store.js +6 -6
- package/dist/plugin-sdk/{login-DpDQyM7r.js → login-DJuHYDiK.js} +3 -3
- package/dist/plugin-sdk/{login-qr-COaSAPY5.js → login-qr-CbHL5ayf.js} +3 -3
- package/dist/plugin-sdk/{manager-Cqz30lA3.js → manager-oHAvZCT3.js} +7 -7
- package/dist/plugin-sdk/{markdown-tables-BOG5sSQQ.js → markdown-tables-Mkx7k92Y.js} +1 -1
- package/dist/plugin-sdk/{media-Bu-nJpPs.js → media-CA8sTmVE.js} +4 -4
- package/dist/plugin-sdk/{monitor-II_NIq3G.js → monitor-CZrN9pev.js} +51 -55
- package/dist/plugin-sdk/{monitor-DL6oEVo8.js → monitor-CmwGqNyV.js} +61 -65
- package/dist/plugin-sdk/{openresponses-http-vkHBBpGY.js → openresponses-http-CWOd4war.js} +43 -47
- package/dist/plugin-sdk/{optional-runtime-dependency-DEojVNfv.js → optional-runtime-dependency-DKmk9PZa.js} +1 -1
- package/dist/plugin-sdk/{outbound-mf2y6KuY.js → outbound-0oN9IfNw.js} +9 -9
- package/dist/plugin-sdk/{outbound-attachment-ivAHpWnn.js → outbound-attachment-DdVkqUzE.js} +2 -2
- package/dist/plugin-sdk/{pairing-message-CvJ6Qa1Q.d.ts → pairing-message-BMkkS038.d.ts} +2 -2
- package/dist/plugin-sdk/{pairing-message-CqYG12t-.js → pairing-message-ClqhfCUk.js} +1 -1
- package/dist/plugin-sdk/{pairing-store-D-21Sphe.js → pairing-store-B01mCSct.js} +2 -2
- package/dist/plugin-sdk/{pi-model-discovery-B6gD1clF.js → pi-model-discovery-Buz0JC1Y.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-runtime-3yDxS3ro.js → pi-model-discovery-runtime-DuwuoteY.js} +2 -2
- package/dist/plugin-sdk/{probe-Cyb-DGA3.js → probe--7xtfzMm.js} +3 -3
- package/dist/plugin-sdk/{probe-Dlk0Jxpw.js → probe-BFroeK3g.js} +1 -1
- package/dist/plugin-sdk/{probe-D8JAILir.js → probe-l_whvGLY.js} +1 -1
- package/dist/plugin-sdk/{resolve-channels-zEnvugag.js → probe-xY3Ky0Tx.js} +3 -4
- package/dist/plugin-sdk/provider-web-search-config-contract.d.ts +2 -2
- package/dist/plugin-sdk/{pw-ai-CMplwiwf.js → pw-ai-B0domrii.js} +6 -8
- package/dist/plugin-sdk/{qmd-manager-DCUE21Kj.js → qmd-manager-CFFeM4Fl.js} +3 -3
- package/dist/plugin-sdk/{query-expansion-Zr9qQixm.js → query-expansion-CAI2kKLQ.js} +1 -1
- package/dist/plugin-sdk/{replies-wiI4veI7.js → replies-1macZ1mZ.js} +4 -4
- package/dist/plugin-sdk/{resolve-channels-ChWKWtA9.js → resolve-channels-87LZrFk_.js} +2 -2
- package/dist/plugin-sdk/resolve-channels-CwB2_019.js +4 -0
- package/dist/plugin-sdk/{resolve-outbound-target-bm9RUK5q.js → resolve-outbound-target-BdH6LUoW.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-ekGNc6os.js → resolve-route-CkNIKKEW.js} +1 -1
- package/dist/plugin-sdk/{resolve-users-BTvjQuui.js → resolve-users-Cxb5wpAQ.js} +1 -1
- package/dist/plugin-sdk/{resolve-users-CTzoruIZ.js → resolve-users-V6dHh_2B.js} +2 -2
- package/dist/plugin-sdk/{retry-policy-BvlC2SPh.js → retry-policy-9ybIh4Fq.js} +1 -1
- package/dist/plugin-sdk/{runtime-ClSakPxR.js → runtime-Dy420wBu.js} +3 -3
- package/dist/plugin-sdk/{runtime-dependency-yAWxH4El.js → runtime-dependency-CIw9t7-k.js} +123 -15
- package/dist/plugin-sdk/{sandbox-paths-lj7_EVuA.js → sandbox-paths-w64tYl0v.js} +1 -1
- package/dist/plugin-sdk/sat-runtime.d.ts +3 -3
- package/dist/plugin-sdk/sat-runtime.js +44 -10
- package/dist/plugin-sdk/{send-D264hFVb.js → send-2VcOMTN5.js} +9 -9
- package/dist/plugin-sdk/{send-CgyS75Av.js → send-BQUtCJFW.js} +10 -10
- package/dist/plugin-sdk/{send-D58yEeH4.js → send-DPJIIYAs.js} +6 -6
- package/dist/plugin-sdk/{send-C7x6gzSl.js → send-Dqes9tdU.js} +13 -13
- package/dist/plugin-sdk/{send-DrAtUGLM.js → send-J4JWKP62.js} +8 -8
- package/dist/plugin-sdk/{session-DyMtb5YQ.js → session-C_n2S5ub.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-Q80wCyry.js → skill-commands-B7wx9ax8.js} +102 -102
- package/dist/plugin-sdk/{slack-C-I6q3NB.js → slack-BouRQG-W.js} +64 -68
- package/dist/plugin-sdk/{slack-actions-dGE_t_Un.js → slack-actions-CasHVtiq.js} +20 -21
- package/dist/plugin-sdk/slack.d.ts +5 -5
- package/dist/plugin-sdk/slack.js +13 -13
- package/dist/plugin-sdk/{ssrf-BZG8Ztod.js → ssrf-fG4UHKBw.js} +180 -2
- package/dist/plugin-sdk/{sticker-cache-DCrDTYIi.js → sticker-cache-BvGEUas3.js} +3 -3
- package/dist/plugin-sdk/{tables-0mhUOh5v.js → tables-CjlQJV4r.js} +2 -2
- package/dist/plugin-sdk/{device-pairing-D2Yq-_U6.js → tailscale-status-DwpNdO3Z.js} +104 -2
- package/dist/plugin-sdk/{targets-znKHngSk.js → targets-QfP164Dh.js} +2 -2
- package/dist/plugin-sdk/{telegram-actions-GBYY8-x9.js → telegram-actions-CwYjV6Db.js} +48 -52
- package/dist/plugin-sdk/telegram.d.ts +5 -5
- package/dist/plugin-sdk/telegram.js +11 -11
- package/dist/plugin-sdk/{thread-bindings.lifecycle-ClzPBK70.js → thread-bindings.lifecycle-DU4iX_Jr.js} +3 -3
- package/dist/plugin-sdk/{thread-bindings.state-Ha01nmrq.js → thread-bindings.state-BgYWFjNF.js} +2 -2
- package/dist/plugin-sdk/{tmp-fased-dir-C_xfeEN9.d.ts → tmp-fased-dir-BdFQvrvw.d.ts} +2 -2
- package/dist/plugin-sdk/{types-DV5TNhMK.d.ts → types-BYDL6dQj.d.ts} +2 -2
- package/dist/plugin-sdk/{types-BI2njxWJ.d.ts → types-CLIvQaVg.d.ts} +39 -5
- package/dist/plugin-sdk/{types-CBCtqtMn.d.ts → types-DyhXnYUr.d.ts} +1 -1
- package/dist/plugin-sdk/{types.plugin-CvUiB3Kh.d.ts → types.plugin-_fbu40Re.d.ts} +8 -5
- package/dist/plugin-sdk/{web-CJMfhGFY.js → web-D0yENDve.js} +52 -56
- package/dist/plugin-sdk/{whatsapp-actions-0ZbGo5ZV.js → whatsapp-actions-BT2nPLyo.js} +18 -19
- package/dist/plugin-sdk/{whatsapp-heartbeat-DGTsuvQ8.js → whatsapp-heartbeat-CiABSZ6G.js} +2 -2
- package/dist/plugin-sdk/whatsapp.d.ts +5 -5
- package/dist/plugin-sdk/whatsapp.js +14 -14
- package/dist/plugin-sdk/{wsl-D5jDUlms.js → wsl-B_ojyEtC.js} +53 -53
- package/dist/plugins/bundled-dir.js +3 -3
- package/dist/plugins/discovery.js +11 -11
- package/dist/plugins/loader.js +13 -13
- package/dist/plugins/manifest-registry.js +2 -2
- package/dist/plugins/manifest.js +4 -4
- package/dist/plugins/path-safety.js +3 -3
- package/dist/plugins/runtime/index.js +1 -1
- package/dist/plugins/status-cache.js +9 -9
- package/dist/plugins/update.js +3 -3
- package/dist/plugins/web-search-install-catalog.js +3 -3
- package/dist/providers/github-copilot-model-discovery.js +51 -0
- package/dist/providers/litellm-models.js +1 -1
- package/dist/providers/openai-codex-model-discovery.js +166 -0
- package/dist/providers/refresh.js +311 -67
- package/dist/providers/registry.js +16 -6
- package/dist/providers/runtime-model-catalog.js +250 -0
- package/dist/secrets/apply.js +16 -16
- package/dist/secrets/audit.js +11 -11
- package/dist/secrets/shared.js +9 -9
- package/dist/security/scan-paths.js +2 -2
- package/dist/shared/config-eval.js +2 -2
- package/dist/shared/model-thinking.js +54 -4
- package/dist/shared/pid-alive.js +2 -2
- package/dist/tasks/standing-orders.js +5 -5
- package/dist/tasks/task-flow-registry.js +5 -5
- package/dist/tasks/task-registry.js +5 -5
- package/dist/tasks/workflow-definitions.js +6 -6
- package/dist/telegram/bot-message-context.js +1 -1
- package/dist/telegram/token.js +5 -5
- package/dist/utils.js +5 -5
- package/dist/wallet/local-socket-signer-broker.js +16 -16
- package/dist/wallet/providers/embedded-keystore-adapter.js +5 -5
- package/dist/wallet/providers/local-socket-signer-adapter.js +2 -2
- package/dist/wallet/wallet-approval-auth.js +5 -5
- package/dist/wallet/wallet-audit-log.js +5 -5
- package/dist/wallet/wallet-custody.js +21 -21
- package/dist/wallet/wallet-inbound-events.js +5 -5
- package/dist/wallet/wallet-observability.js +5 -5
- package/dist/wallet/wallet-policy.js +9 -9
- package/dist/wallet/wallet-provider-registry.js +7 -7
- package/dist/wallet/wallet-runtime-config.js +3 -3
- package/dist/wallet/wallet-secrets-store.js +22 -22
- package/dist/wallet/wallet-send-approvals.js +5 -5
- package/dist/wallet/wallet-settlement-links.js +5 -5
- package/dist/web/accounts.js +3 -3
- package/dist/web/auth-store.js +18 -18
- package/dist/web/session.js +4 -4
- package/dist/wizard/host-security-capability.js +2 -2
- package/dist/wizard/onboarding.host-security.js +7 -7
- package/dist/wizard/onboarding.js +31 -13
- package/dist/wizard/onboarding.wallet.js +44 -44
- package/extensions/acpx/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/fased-federation/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +12 -0
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +2 -2
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +12 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +12 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/sat-mining/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +12 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +12 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +12 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +12 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +2 -1
- package/dist/control-ui/assets/chat-model-ref-B9sWop67.js +0 -2
- package/dist/plugin-sdk/ip-C70a-YlD.js +0 -181
- package/dist/plugin-sdk/tailscale-status-ClsquRGs.js +0 -104
- package/dist/plugin-sdk/wallet-status-CyovJojz.js +0 -11944
- package/dist/plugin-sdk/ws-CocpWGhl.js +0 -114
- /package/dist/plugin-sdk/{blocks-input-Dcitfh7h.js → blocks-input-Bg-8S2pl.js} +0 -0
- /package/dist/plugin-sdk/{channel-activity-Cg1xRoc2.js → channel-activity-DBDMQ3yI.js} +0 -0
- /package/dist/plugin-sdk/{channel-core-BOkyXXLa.js → channel-core-CFRs8LPy.js} +0 -0
- /package/dist/plugin-sdk/{client-D2N7hqVu.js → client-pI228AVT.js} +0 -0
- /package/dist/plugin-sdk/{command-poll-backoff-NAePk3eL.js → command-poll-backoff-yJU83wEq.js} +0 -0
- /package/dist/plugin-sdk/{date-time-CE3Uer3C.js → date-time-uUevHscU.js} +0 -0
- /package/dist/plugin-sdk/{diagnostic-session-state-HO94DMou.js → diagnostic-session-state-DqgfGYqZ.js} +0 -0
- /package/dist/plugin-sdk/{draft-stream-loop-CKyHn8IX.js → draft-stream-loop-CrOPfV3F.js} +0 -0
- /package/dist/plugin-sdk/{fetch-Cu-ahkie.js → fetch-BtmoPIlf.js} +0 -0
- /package/dist/plugin-sdk/{gateway-registry-DFsoY6C0.js → gateway-registry-DZDsqicG.js} +0 -0
- /package/dist/plugin-sdk/{inbound-context-BFnIdcqI.js → inbound-context-DrAcXE0y.js} +0 -0
- /package/dist/plugin-sdk/{internal-qo16nNU1.js → internal-CG_nHo-2.js} +0 -0
- /package/dist/plugin-sdk/{memory-search-C3C0bD2H.js → memory-search-VFll-AIb.js} +0 -0
- /package/dist/plugin-sdk/{pairing-token-N_6Jbt1L.js → pairing-token-Cs3BRKc0.js} +0 -0
- /package/dist/plugin-sdk/{path-alias-guards-Dg3gU-MA.js → path-alias-guards-BJZD5JMJ.js} +0 -0
- /package/dist/plugin-sdk/{polls-DQrR-qT3.js → polls-DKQXVfJp.js} +0 -0
- /package/dist/plugin-sdk/{proxy-7xs_rsnV.js → proxy-DWpYcsvR.js} +0 -0
- /package/dist/plugin-sdk/{qmd-scope-D1sSG_Rx.js → qmd-scope-CdX34VCV.js} +0 -0
- /package/dist/plugin-sdk/{redact-identifier-Q3tkvxhm.js → redact-identifier-Lt7t3l7S.js} +0 -0
- /package/dist/plugin-sdk/{redact-sensitive-url-dPvnFFsK.js → redact-sensitive-url-g-ukZjwA.js} +0 -0
- /package/dist/plugin-sdk/{render-Bwu_WxwA.js → render-e7fENCYH.js} +0 -0
- /package/dist/plugin-sdk/{reply-prefix-Bqzm6DC1.js → reply-prefix-ClpxvL_w.js} +0 -0
- /package/dist/plugin-sdk/{reply-reference-BkbK_DWT.js → reply-reference-Bqk-7HXE.js} +0 -0
- /package/dist/plugin-sdk/{secure-random-Bl-AVLVb.js → secure-random-BIkG-k4s.js} +0 -0
- /package/dist/plugin-sdk/{shared-clhhbWN3.js → shared-CBgp_GBw.js} +0 -0
- /package/dist/plugin-sdk/{target-errors-C_SVKoEv.js → target-errors-Ckufe179.js} +0 -0
- /package/dist/plugin-sdk/{targets-BDvvnlph.js → targets-CoMJ1ry1.js} +0 -0
- /package/dist/plugin-sdk/{tokens-BvtlOzVP.js → tokens-BbnqfVuu.js} +0 -0
- /package/dist/plugin-sdk/{tool-loop-detection-CWphm1k_.js → tool-loop-detection-Bp8bPJLs.js} +0 -0
- /package/dist/plugin-sdk/{ui-e020ouhJ.js → ui-Be8cLHIS.js} +0 -0
- /package/dist/plugin-sdk/{with-timeout-BYrRAYFV.js → with-timeout-ckWB8rTo.js} +0 -0
|
@@ -2,15 +2,15 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-DBPNbQDQ.js";
|
|
3
3
|
import { p as getChildLogger } from "./globals-B_jjtAje.js";
|
|
4
4
|
import { o as escapeRegExp, x as toWhatsappJid } from "./utils-CYk9EKoq.js";
|
|
5
|
-
import { n as loadConfig } from "./config-
|
|
6
|
-
import { n as generateSecureUuid } from "./secure-random-
|
|
7
|
-
import { t as redactIdentifier } from "./redact-identifier-
|
|
8
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
9
|
-
import { n as loadWebMedia } from "./media-
|
|
10
|
-
import { n as normalizePollInput } from "./polls-
|
|
11
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
12
|
-
import { n as requireActiveWebListener } from "./active-listener-
|
|
13
|
-
import { n as formatError } from "./session-
|
|
5
|
+
import { n as loadConfig } from "./config-Bt5GhnA-.js";
|
|
6
|
+
import { n as generateSecureUuid } from "./secure-random-BIkG-k4s.js";
|
|
7
|
+
import { t as redactIdentifier } from "./redact-identifier-Lt7t3l7S.js";
|
|
8
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-Mkx7k92Y.js";
|
|
9
|
+
import { n as loadWebMedia } from "./media-CA8sTmVE.js";
|
|
10
|
+
import { n as normalizePollInput } from "./polls-DKQXVfJp.js";
|
|
11
|
+
import { t as convertMarkdownTables } from "./tables-CjlQJV4r.js";
|
|
12
|
+
import { n as requireActiveWebListener } from "./active-listener-x4MLhYUw.js";
|
|
13
|
+
import { n as formatError } from "./session-C_n2S5ub.js";
|
|
14
14
|
|
|
15
15
|
//#region src/markdown/whatsapp.ts
|
|
16
16
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as resolveConfigDir } from "./utils-CYk9EKoq.js";
|
|
2
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
3
|
-
import { n as loadWebMedia } from "./media-
|
|
2
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-CUaLtIFj.js";
|
|
3
|
+
import { n as loadWebMedia } from "./media-CA8sTmVE.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { createWriteStream } from "node:fs";
|
|
6
6
|
import fs$1 from "node:fs/promises";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { At as FasedAgentConfig, t as ChannelConfigSchema } from "./types.plugin-
|
|
2
|
-
import { v as FasedAgentPluginConfigSchema } from "./types-
|
|
1
|
+
import { At as FasedAgentConfig, t as ChannelConfigSchema } from "./types.plugin-_fbu40Re.js";
|
|
2
|
+
import { v as FasedAgentPluginConfigSchema } from "./types-BYDL6dQj.js";
|
|
3
3
|
import { ZodTypeAny } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/config-schema.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ct as listChannelPlugins, st as getChannelPlugin } from "./runtime-
|
|
1
|
+
import { ct as listChannelPlugins, st as getChannelPlugin } from "./runtime-Dy420wBu.js";
|
|
2
2
|
import { a as resolveOAuthDir, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-BEmvSyOV.js";
|
|
3
3
|
import { g as safeParseJson } from "./utils-CYk9EKoq.js";
|
|
4
|
-
import { In as withFileLock$1 } from "./config-
|
|
4
|
+
import { In as withFileLock$1 } from "./config-Bt5GhnA-.js";
|
|
5
5
|
import { f as DEFAULT_ACCOUNT_ID } from "./session-key-HSJ2KQTc.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Kt as normalizeProviderId, jn as ensureAuthProfileStore } from "./config-
|
|
2
|
+
import { Kt as normalizeProviderId, jn as ensureAuthProfileStore } from "./config-Bt5GhnA-.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|
|
@@ -2,13 +2,13 @@ import "./subsystem-DBPNbQDQ.js";
|
|
|
2
2
|
import "./globals-B_jjtAje.js";
|
|
3
3
|
import "./paths-BEmvSyOV.js";
|
|
4
4
|
import "./utils-CYk9EKoq.js";
|
|
5
|
-
import "./config-
|
|
5
|
+
import "./config-Bt5GhnA-.js";
|
|
6
6
|
import "./agent-scope-BbgPlhtw.js";
|
|
7
7
|
import "./logger-BbFvCoKk.js";
|
|
8
8
|
import "./exec-DQ8j4Fm3.js";
|
|
9
9
|
import "./redact-Bm8vu_ju.js";
|
|
10
10
|
import "./github-copilot-token-CUK__1s1.js";
|
|
11
11
|
import "./retry-DstNBhDW.js";
|
|
12
|
-
import { i as discoverModels, n as PiModelRegistryClass, r as discoverAuthStorage, t as PiAuthStorageClass } from "./pi-model-discovery-
|
|
12
|
+
import { i as discoverModels, n as PiModelRegistryClass, r as discoverAuthStorage, t as PiAuthStorageClass } from "./pi-model-discovery-Buz0JC1Y.js";
|
|
13
13
|
|
|
14
14
|
export { discoverAuthStorage, discoverModels };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as withTimeout } from "./with-timeout-
|
|
2
|
-
import { n as createSlackWebClient } from "./client-
|
|
1
|
+
import { t as withTimeout } from "./with-timeout-ckWB8rTo.js";
|
|
2
|
+
import { n as createSlackWebClient } from "./client-pI228AVT.js";
|
|
3
3
|
|
|
4
4
|
//#region src/slack/probe.ts
|
|
5
5
|
async function probeSlack(token, timeoutMs = 2500) {
|
|
@@ -38,4 +38,4 @@ async function probeSlack(token, timeoutMs = 2500) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
//#endregion
|
|
41
|
-
export { probeSlack };
|
|
41
|
+
export { probeSlack as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { t as normalizeDiscordToken } from "./token-D4-H0ByG.js";
|
|
3
3
|
import { n as fetchWithTimeout } from "./fetch-timeout-l_6RdoMw.js";
|
|
4
|
-
import { t as resolveFetch } from "./fetch-
|
|
4
|
+
import { t as resolveFetch } from "./fetch-BtmoPIlf.js";
|
|
5
5
|
|
|
6
6
|
//#region src/discord/probe.ts
|
|
7
7
|
var probe_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as fetchWithTimeout } from "./fetch-timeout-l_6RdoMw.js";
|
|
2
|
-
import { t as makeProxyFetch } from "./proxy-
|
|
2
|
+
import { t as makeProxyFetch } from "./proxy-DWpYcsvR.js";
|
|
3
3
|
|
|
4
4
|
//#region src/telegram/probe.ts
|
|
5
5
|
const TELEGRAM_API_BASE = "https://api.telegram.org";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as createSlackWebClient } from "./client-pI228AVT.js";
|
|
2
|
+
import { t as probeSlack } from "./probe--7xtfzMm.js";
|
|
3
3
|
|
|
4
4
|
//#region src/slack/resolve-channels.ts
|
|
5
|
-
var resolve_channels_exports = /* @__PURE__ */ __exportAll({ resolveSlackChannelAllowlist: () => resolveSlackChannelAllowlist });
|
|
6
5
|
function parseSlackChannelMention(raw) {
|
|
7
6
|
const trimmed = raw.trim();
|
|
8
7
|
if (!trimmed) return {};
|
|
@@ -87,4 +86,4 @@ async function resolveSlackChannelAllowlist(params) {
|
|
|
87
86
|
}
|
|
88
87
|
|
|
89
88
|
//#endregion
|
|
90
|
-
export {
|
|
89
|
+
export { probeSlack, resolveSlackChannelAllowlist as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { At as FasedAgentConfig } from "./types.plugin-
|
|
2
|
-
import { Q as RuntimeWebSearchMetadata, R as WebSearchProviderPlugin, z as WebSearchProviderToolDefinition } from "./types-
|
|
1
|
+
import { At as FasedAgentConfig } from "./types.plugin-_fbu40Re.js";
|
|
2
|
+
import { Q as RuntimeWebSearchMetadata, R as WebSearchProviderPlugin, z as WebSearchProviderToolDefinition } from "./types-BYDL6dQj.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin-sdk/provider-web-search-config-contract.d.ts
|
|
5
5
|
type WebSearchCredentialResolutionSource = "config" | "env" | "none";
|
|
@@ -2,20 +2,18 @@ import "./subsystem-DBPNbQDQ.js";
|
|
|
2
2
|
import { w as resolvePreferredFasedAgentTmpDir } from "./globals-B_jjtAje.js";
|
|
3
3
|
import "./paths-BEmvSyOV.js";
|
|
4
4
|
import "./utils-CYk9EKoq.js";
|
|
5
|
-
import {
|
|
5
|
+
import { _a as formatCliCommand, oa as formatErrorMessage } from "./config-Bt5GhnA-.js";
|
|
6
6
|
import "./agent-scope-BbgPlhtw.js";
|
|
7
7
|
import "./logger-BbFvCoKk.js";
|
|
8
8
|
import "./exec-DQ8j4Fm3.js";
|
|
9
9
|
import "./redact-Bm8vu_ju.js";
|
|
10
10
|
import "./github-copilot-token-CUK__1s1.js";
|
|
11
11
|
import "./retry-DstNBhDW.js";
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
14
|
-
import "./
|
|
15
|
-
import
|
|
16
|
-
import "./
|
|
17
|
-
import "./path-alias-guards-Dg3gU-MA.js";
|
|
18
|
-
import "./fs-safe-BG-VzVkL.js";
|
|
12
|
+
import "./ssrf-fG4UHKBw.js";
|
|
13
|
+
import "./optional-runtime-dependency-DKmk9PZa.js";
|
|
14
|
+
import { A as fetchJson, C as normalizeCdpWsUrl, D as assertBrowserNavigationResultAllowed, E as assertBrowserNavigationAllowed, M as getHeadersWithAuth, N as withCdpSocket, O as withBrowserNavigationPolicy, S as formatAriaSnapshot, c as resolveStrictExistingPathsWithinRoot, f as getChromeWebSocketUrl, k as appendCdpPath, n as loadPlaywrightCore, o as DEFAULT_UPLOAD_DIR, u as DEFAULT_FILL_FIELD_TYPE } from "./runtime-dependency-CIw9t7-k.js";
|
|
15
|
+
import "./path-alias-guards-BJZD5JMJ.js";
|
|
16
|
+
import "./fs-safe-xBqok6yR.js";
|
|
19
17
|
import path from "node:path";
|
|
20
18
|
import fs from "node:fs/promises";
|
|
21
19
|
import crypto from "node:crypto";
|
|
@@ -7,9 +7,9 @@ import "./logger-BbFvCoKk.js";
|
|
|
7
7
|
import "./exec-DQ8j4Fm3.js";
|
|
8
8
|
import "./redact-Bm8vu_ju.js";
|
|
9
9
|
import "./paths-CTZ2RS_E.js";
|
|
10
|
-
import { m as statRegularFile, p as isFileMissingError } from "./internal-
|
|
11
|
-
import { i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords } from "./query-expansion-
|
|
12
|
-
import { n as deriveQmdScopeChatType, r as isQmdScopeAllowed, t as deriveQmdScopeChannel } from "./qmd-scope-
|
|
10
|
+
import { m as statRegularFile, p as isFileMissingError } from "./internal-CG_nHo-2.js";
|
|
11
|
+
import { i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords } from "./query-expansion-CAI2kKLQ.js";
|
|
12
|
+
import { n as deriveQmdScopeChatType, r as isQmdScopeAllowed, t as deriveQmdScopeChannel } from "./qmd-scope-CdX34VCV.js";
|
|
13
13
|
import path from "node:path";
|
|
14
14
|
import os from "node:os";
|
|
15
15
|
import fs from "node:fs/promises";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-DBPNbQDQ.js";
|
|
2
2
|
import { n as redactSensitiveText } from "./redact-Bm8vu_ju.js";
|
|
3
3
|
import { c as resolveSessionTranscriptsDirForAgent } from "./paths-CTZ2RS_E.js";
|
|
4
|
-
import { a as hashText } from "./internal-
|
|
4
|
+
import { a as hashText } from "./internal-CG_nHo-2.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { i as chunkMarkdownTextWithMode } from "./chunk-
|
|
3
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
4
|
-
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-
|
|
5
|
-
import { t as createReplyReferencePlanner } from "./reply-reference-
|
|
2
|
+
import { i as chunkMarkdownTextWithMode } from "./chunk-B8EZkwiT.js";
|
|
3
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-BbnqfVuu.js";
|
|
4
|
+
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-2VcOMTN5.js";
|
|
5
|
+
import { t as createReplyReferencePlanner } from "./reply-reference-Bqk-7HXE.js";
|
|
6
6
|
|
|
7
7
|
//#region src/slack/monitor/replies.ts
|
|
8
8
|
var replies_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { t as normalizeDiscordToken } from "./token-D4-H0ByG.js";
|
|
3
|
-
import { _ as fetchDiscord, i as normalizeDiscordSlug } from "./allow-list-
|
|
4
|
-
import { t as listGuilds } from "./guilds-
|
|
3
|
+
import { _ as fetchDiscord, i as normalizeDiscordSlug } from "./allow-list-DyAxs4yw.js";
|
|
4
|
+
import { t as listGuilds } from "./guilds-CDhRIX57.js";
|
|
5
5
|
|
|
6
6
|
//#region src/discord/resolve-channels.ts
|
|
7
7
|
var resolve_channels_exports = /* @__PURE__ */ __exportAll({ resolveDiscordChannelAllowlist: () => resolveDiscordChannelAllowlist });
|
package/dist/plugin-sdk/{resolve-outbound-target-bm9RUK5q.js → resolve-outbound-target-BdH6LUoW.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { It as isWhatsAppGroupJid, Lt as normalizeWhatsAppTarget } from "./runtime-
|
|
2
|
-
import { n as missingTargetError } from "./target-errors-
|
|
1
|
+
import { It as isWhatsAppGroupJid, Lt as normalizeWhatsAppTarget } from "./runtime-Dy420wBu.js";
|
|
2
|
+
import { n as missingTargetError } from "./target-errors-Ckufe179.js";
|
|
3
3
|
|
|
4
4
|
//#region src/whatsapp/resolve-outbound-target.ts
|
|
5
5
|
function resolveWhatsAppOutboundTarget(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { sn as listBindings } from "./runtime-
|
|
2
|
+
import { sn as listBindings } from "./runtime-Dy420wBu.js";
|
|
3
3
|
import { s as shouldLogVerbose } from "./globals-B_jjtAje.js";
|
|
4
4
|
import { u as resolveDefaultAgentId } from "./agent-scope-BbgPlhtw.js";
|
|
5
5
|
import { t as normalizeChatType } from "./chat-type-C0osVllE.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { n as createSlackWebClient } from "./client-
|
|
2
|
+
import { n as createSlackWebClient } from "./client-pI228AVT.js";
|
|
3
3
|
|
|
4
4
|
//#region src/slack/resolve-users.ts
|
|
5
5
|
var resolve_users_exports = /* @__PURE__ */ __exportAll({ resolveSlackUserAllowlist: () => resolveSlackUserAllowlist });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { t as normalizeDiscordToken } from "./token-D4-H0ByG.js";
|
|
3
|
-
import { _ as fetchDiscord, i as normalizeDiscordSlug } from "./allow-list-
|
|
4
|
-
import { t as listGuilds } from "./guilds-
|
|
3
|
+
import { _ as fetchDiscord, i as normalizeDiscordSlug } from "./allow-list-DyAxs4yw.js";
|
|
4
|
+
import { t as listGuilds } from "./guilds-CDhRIX57.js";
|
|
5
5
|
|
|
6
6
|
//#region src/discord/resolve-users.ts
|
|
7
7
|
var resolve_users_exports = /* @__PURE__ */ __exportAll({ resolveDiscordUserAllowlist: () => resolveDiscordUserAllowlist });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-DBPNbQDQ.js";
|
|
2
|
-
import {
|
|
2
|
+
import { oa as formatErrorMessage } from "./config-Bt5GhnA-.js";
|
|
3
3
|
import { n as retryAsync, t as resolveRetryConfig } from "./retry-DstNBhDW.js";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/retry-policy.ts
|
|
@@ -3,7 +3,7 @@ import { c as CHANNEL_IDS, d as normalizeChannelKey, f as normalizeChatChannelId
|
|
|
3
3
|
import { i as logVerbose } from "./globals-B_jjtAje.js";
|
|
4
4
|
import { s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-BEmvSyOV.js";
|
|
5
5
|
import { c as isRecord$1, d as normalizeE164, h as resolveUserPath, o as escapeRegExp } from "./utils-CYk9EKoq.js";
|
|
6
|
-
import {
|
|
6
|
+
import { $i as DEFAULT_MODEL, Ca as normalizePluginsConfig, Ea as resolvePluginAdminRpcActionGrant, G as isAvatarDataUrl, H as parseDurationMs, Ht as inferUniqueProviderFromConfiguredModels, Jt as resolveConfiguredModelRef, K as isAvatarHttpUrl, Kt as normalizeProviderId, Ln as resolveProcessScopedMap, Pn as resolveFasedAgentDir, Qi as DEFAULT_CONTEXT_TOKENS, Rn as isPidAlive, Sa as isPluginRuntimeSessionReadAllowed, U as parseByteSize, W as AVATAR_MAX_BYTES, X as resolveAvatarMime, Xt as resolveExplicitConfiguredModelRef, Y as isWorkspaceRelativeAvatarPath, Yt as resolveDefaultModelForAgent, ea as DEFAULT_PROVIDER, in as resolveImplicitProviders, n as loadConfig, nn as normalizeProviders, q as isPathWithinRoot, qt as parseModelRef, rn as resolveImplicitCopilotProvider, ya as isTruthyEnvValue } from "./config-Bt5GhnA-.js";
|
|
7
7
|
import { A as openBoundaryFileSync, G as normalizeHyphenSlug, W as normalizeAtHashSlug, l as resolveAgentWorkspaceDir, u as resolveDefaultAgentId } from "./agent-scope-BbgPlhtw.js";
|
|
8
8
|
import { t as normalizeChatType } from "./chat-type-C0osVllE.js";
|
|
9
9
|
import { n as resolveConversationLabel } from "./conversation-label-BoVqak2R.js";
|
|
@@ -11,7 +11,7 @@ import { n as resolveAccountEntry, t as createAccountListHelpers } from "./accou
|
|
|
11
11
|
import { S as parseAgentSessionKey, c as normalizeMainKey, f as DEFAULT_ACCOUNT_ID, l as resolveAgentIdFromSessionKey, m as normalizeOptionalAccountId, p as normalizeAccountId$1, r as buildAgentMainSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID, y as isCronRunSessionKey } from "./session-key-HSJ2KQTc.js";
|
|
12
12
|
import { a as resolveDiscordAccount, o as createAccountActionGate } from "./accounts-RHZyaB73.js";
|
|
13
13
|
import { a as resolveSlackReplyToMode, i as resolveSlackAccount } from "./accounts-CuqIKU8X.js";
|
|
14
|
-
import { i as resolveWhatsAppAccount } from "./accounts-
|
|
14
|
+
import { i as resolveWhatsAppAccount } from "./accounts-DzWlKv1U.js";
|
|
15
15
|
import { a as resolveSessionTranscriptPath, c as resolveSessionTranscriptsDirForAgent, i as resolveSessionFilePathOptions, l as resolveStorePath, n as resolveDefaultSessionStorePath, o as resolveSessionTranscriptPathInDir, r as resolveSessionFilePath, s as resolveSessionTranscriptsDir, t as SAFE_SESSION_ID_RE, u as validateSessionId } from "./paths-CTZ2RS_E.js";
|
|
16
16
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-BJQWUdmU.js";
|
|
17
17
|
import path from "node:path";
|
|
@@ -5411,7 +5411,7 @@ async function loadContextCache() {
|
|
|
5411
5411
|
await ensureFasedModelsJson(cfg);
|
|
5412
5412
|
} catch {}
|
|
5413
5413
|
try {
|
|
5414
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-runtime-
|
|
5414
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-runtime-DuwuoteY.js");
|
|
5415
5415
|
const agentDir = resolveFasedAgentDir();
|
|
5416
5416
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
5417
5417
|
applyDiscoveredContextWindows({
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-DBPNbQDQ.js";
|
|
2
2
|
import { w as resolvePreferredFasedAgentTmpDir } from "./globals-B_jjtAje.js";
|
|
3
3
|
import { t as CONFIG_DIR } from "./utils-CYk9EKoq.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ca as isErrno, n as loadConfig } from "./config-Bt5GhnA-.js";
|
|
5
5
|
import { F as isNotFoundPathError, I as isPathInside } from "./agent-scope-BbgPlhtw.js";
|
|
6
|
-
import { s as resolvePinnedHostnameWithPolicy } from "./ssrf-
|
|
7
|
-
import { t as importOptionalRuntimeDependency } from "./optional-runtime-dependency-
|
|
8
|
-
import { n as
|
|
9
|
-
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-BG-VzVkL.js";
|
|
6
|
+
import { d as normalizeIpAddress, l as isIpInCidr, s as resolvePinnedHostnameWithPolicy, u as isLoopbackIpAddress } from "./ssrf-fG4UHKBw.js";
|
|
7
|
+
import { t as importOptionalRuntimeDependency } from "./optional-runtime-dependency-DKmk9PZa.js";
|
|
8
|
+
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-xBqok6yR.js";
|
|
10
9
|
import path from "node:path";
|
|
11
10
|
import fs from "node:fs";
|
|
12
11
|
import os from "node:os";
|
|
@@ -14,9 +13,118 @@ import fs$1 from "node:fs/promises";
|
|
|
14
13
|
import { execFileSync, spawn } from "node:child_process";
|
|
15
14
|
import { createHmac } from "node:crypto";
|
|
16
15
|
import { createServer } from "node:http";
|
|
16
|
+
import WebSocket$1, { WebSocketServer } from "ws";
|
|
17
|
+
import { Buffer as Buffer$1 } from "node:buffer";
|
|
17
18
|
import net from "node:net";
|
|
18
|
-
import WebSocket, { WebSocketServer } from "ws";
|
|
19
19
|
|
|
20
|
+
//#region src/infra/ws.ts
|
|
21
|
+
function rawDataToString(data, encoding = "utf8") {
|
|
22
|
+
if (typeof data === "string") return data;
|
|
23
|
+
if (Buffer$1.isBuffer(data)) return data.toString(encoding);
|
|
24
|
+
if (Array.isArray(data)) return Buffer$1.concat(data).toString(encoding);
|
|
25
|
+
if (data instanceof ArrayBuffer) return Buffer$1.from(data).toString(encoding);
|
|
26
|
+
return Buffer$1.from(String(data)).toString(encoding);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/gateway/net.ts
|
|
31
|
+
function isLoopbackAddress(ip) {
|
|
32
|
+
return isLoopbackIpAddress(ip);
|
|
33
|
+
}
|
|
34
|
+
function normalizeIp(ip) {
|
|
35
|
+
return normalizeIpAddress(ip);
|
|
36
|
+
}
|
|
37
|
+
function stripOptionalPort(ip) {
|
|
38
|
+
if (ip.startsWith("[")) {
|
|
39
|
+
const end = ip.indexOf("]");
|
|
40
|
+
if (end !== -1) return ip.slice(1, end);
|
|
41
|
+
}
|
|
42
|
+
if (net.isIP(ip)) return ip;
|
|
43
|
+
const lastColon = ip.lastIndexOf(":");
|
|
44
|
+
if (lastColon > -1 && ip.includes(".") && ip.indexOf(":") === lastColon) {
|
|
45
|
+
const candidate = ip.slice(0, lastColon);
|
|
46
|
+
if (net.isIP(candidate) === 4) return candidate;
|
|
47
|
+
}
|
|
48
|
+
return ip;
|
|
49
|
+
}
|
|
50
|
+
function parseIpLiteral(raw) {
|
|
51
|
+
const trimmed = raw?.trim();
|
|
52
|
+
if (!trimmed) return;
|
|
53
|
+
const normalized = normalizeIp(stripOptionalPort(trimmed));
|
|
54
|
+
if (!normalized || net.isIP(normalized) === 0) return;
|
|
55
|
+
return normalized;
|
|
56
|
+
}
|
|
57
|
+
function parseRealIp(realIp) {
|
|
58
|
+
return parseIpLiteral(realIp);
|
|
59
|
+
}
|
|
60
|
+
function resolveForwardedClientIp(params) {
|
|
61
|
+
const { forwardedFor, trustedProxies } = params;
|
|
62
|
+
if (!trustedProxies?.length) return;
|
|
63
|
+
const forwardedChain = [];
|
|
64
|
+
for (const entry of forwardedFor?.split(",") ?? []) {
|
|
65
|
+
const normalized = parseIpLiteral(entry);
|
|
66
|
+
if (normalized) forwardedChain.push(normalized);
|
|
67
|
+
}
|
|
68
|
+
if (forwardedChain.length === 0) return;
|
|
69
|
+
for (let index = forwardedChain.length - 1; index >= 0; index -= 1) {
|
|
70
|
+
const hop = forwardedChain[index];
|
|
71
|
+
if (!isTrustedProxyAddress(hop, trustedProxies)) return hop;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function isTrustedProxyAddress(ip, trustedProxies) {
|
|
75
|
+
const normalized = normalizeIp(ip);
|
|
76
|
+
if (!normalized || !trustedProxies || trustedProxies.length === 0) return false;
|
|
77
|
+
return trustedProxies.some((proxy) => {
|
|
78
|
+
const candidate = proxy.trim();
|
|
79
|
+
if (!candidate) return false;
|
|
80
|
+
return isIpInCidr(normalized, candidate);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function resolveClientIp(params) {
|
|
84
|
+
const remote = normalizeIp(params.remoteAddr);
|
|
85
|
+
if (!remote) return;
|
|
86
|
+
if (!isTrustedProxyAddress(remote, params.trustedProxies)) return remote;
|
|
87
|
+
const forwardedIp = resolveForwardedClientIp({
|
|
88
|
+
forwardedFor: params.forwardedFor,
|
|
89
|
+
trustedProxies: params.trustedProxies
|
|
90
|
+
});
|
|
91
|
+
if (forwardedIp) return forwardedIp;
|
|
92
|
+
if (params.allowRealIpFallback) return parseRealIp(params.realIp);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Check if a hostname or IP refers to the local machine.
|
|
96
|
+
* Handles: localhost, 127.x.x.x, ::1, [::1], ::ffff:127.x.x.x
|
|
97
|
+
* Note: 0.0.0.0 and :: are NOT loopback - they bind to all interfaces.
|
|
98
|
+
*/
|
|
99
|
+
function isLoopbackHost(host) {
|
|
100
|
+
if (!host) return false;
|
|
101
|
+
const h = host.trim().toLowerCase();
|
|
102
|
+
if (h === "localhost") return true;
|
|
103
|
+
return isLoopbackAddress(h.startsWith("[") && h.endsWith("]") ? h.slice(1, -1) : h);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Security check for WebSocket URLs (CWE-319: Cleartext Transmission of Sensitive Information).
|
|
107
|
+
*
|
|
108
|
+
* Returns true if the URL is secure for transmitting data:
|
|
109
|
+
* - wss:// (TLS) is always secure
|
|
110
|
+
* - ws:// is only secure for loopback addresses (localhost, 127.x.x.x, ::1)
|
|
111
|
+
*
|
|
112
|
+
* All other ws:// URLs are considered insecure because both credentials
|
|
113
|
+
* AND chat/conversation data would be exposed to network interception.
|
|
114
|
+
*/
|
|
115
|
+
function isSecureWebSocketUrl(url) {
|
|
116
|
+
let parsed;
|
|
117
|
+
try {
|
|
118
|
+
parsed = new URL(url);
|
|
119
|
+
} catch {
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
if (parsed.protocol === "wss:") return true;
|
|
123
|
+
if (parsed.protocol !== "ws:") return false;
|
|
124
|
+
return isLoopbackHost(parsed.hostname);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
//#endregion
|
|
20
128
|
//#region src/browser/constants.ts
|
|
21
129
|
const DEFAULT_FASED_BROWSER_ENABLED = true;
|
|
22
130
|
const DEFAULT_BROWSER_EVALUATE_ENABLED = true;
|
|
@@ -167,7 +275,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
167
275
|
let extensionWs = null;
|
|
168
276
|
const cdpClients = /* @__PURE__ */ new Set();
|
|
169
277
|
const connectedTargets = /* @__PURE__ */ new Map();
|
|
170
|
-
const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
|
|
278
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket$1.OPEN;
|
|
171
279
|
let extensionDisconnectCleanupTimer = null;
|
|
172
280
|
const extensionReconnectWaiters = /* @__PURE__ */ new Set();
|
|
173
281
|
const flushExtensionReconnectWaiters = (connected) => {
|
|
@@ -218,7 +326,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
218
326
|
let nextExtensionId = 1;
|
|
219
327
|
const sendToExtension = async (payload) => {
|
|
220
328
|
const ws = extensionWs;
|
|
221
|
-
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
329
|
+
if (!ws || ws.readyState !== WebSocket$1.OPEN) throw new Error("Chrome extension not connected");
|
|
222
330
|
ws.send(JSON.stringify(payload));
|
|
223
331
|
return await new Promise((resolve, reject) => {
|
|
224
332
|
const timer = setTimeout(() => {
|
|
@@ -235,12 +343,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
235
343
|
const broadcastToCdpClients = (evt) => {
|
|
236
344
|
const msg = JSON.stringify(evt);
|
|
237
345
|
for (const ws of cdpClients) {
|
|
238
|
-
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
346
|
+
if (ws.readyState !== WebSocket$1.OPEN) continue;
|
|
239
347
|
ws.send(msg);
|
|
240
348
|
}
|
|
241
349
|
};
|
|
242
350
|
const sendResponseToCdp = (ws, res) => {
|
|
243
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
351
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
244
352
|
ws.send(JSON.stringify(res));
|
|
245
353
|
};
|
|
246
354
|
const ensureTargetEventsForClient = (ws, mode) => {
|
|
@@ -450,7 +558,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
450
558
|
rejectUpgrade(socket, 401, "Unauthorized");
|
|
451
559
|
return;
|
|
452
560
|
}
|
|
453
|
-
if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
|
|
561
|
+
if (extensionWs && extensionWs.readyState !== WebSocket$1.OPEN) {
|
|
454
562
|
try {
|
|
455
563
|
extensionWs.terminate();
|
|
456
564
|
} catch {}
|
|
@@ -487,7 +595,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
487
595
|
clearExtensionDisconnectCleanupTimer();
|
|
488
596
|
flushExtensionReconnectWaiters(true);
|
|
489
597
|
const ping = setInterval(() => {
|
|
490
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
598
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
491
599
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
492
600
|
}, 5e3);
|
|
493
601
|
ws.on("message", (data) => {
|
|
@@ -829,7 +937,7 @@ async function fetchOk(url, timeoutMs = 1500, init) {
|
|
|
829
937
|
}
|
|
830
938
|
async function withCdpSocket(wsUrl, fn, opts) {
|
|
831
939
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
832
|
-
const ws = new WebSocket(wsUrl, {
|
|
940
|
+
const ws = new WebSocket$1(wsUrl, {
|
|
833
941
|
handshakeTimeout: typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : 5e3,
|
|
834
942
|
...Object.keys(headers).length ? { headers } : {}
|
|
835
943
|
});
|
|
@@ -1755,7 +1863,7 @@ async function getChromeWebSocketUrl(cdpUrl, timeoutMs = 500) {
|
|
|
1755
1863
|
async function canOpenWebSocket(wsUrl, timeoutMs = 800) {
|
|
1756
1864
|
return await new Promise((resolve) => {
|
|
1757
1865
|
const headers = getHeadersWithAuth(wsUrl);
|
|
1758
|
-
const ws = new WebSocket(wsUrl, {
|
|
1866
|
+
const ws = new WebSocket$1(wsUrl, {
|
|
1759
1867
|
handshakeTimeout: timeoutMs,
|
|
1760
1868
|
...Object.keys(headers).length ? { headers } : {}
|
|
1761
1869
|
});
|
|
@@ -2107,4 +2215,4 @@ async function loadLinkedom() {
|
|
|
2107
2215
|
}
|
|
2108
2216
|
|
|
2109
2217
|
//#endregion
|
|
2110
|
-
export { fetchJson as A, DEFAULT_BROWSER_EVALUATE_ENABLED as B, normalizeCdpWsUrl as C, assertBrowserNavigationResultAllowed as D, assertBrowserNavigationAllowed as E, stopChromeExtensionRelayServer as F, DEFAULT_FASED_BROWSER_ENABLED as H, DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH as I, DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS as L, getHeadersWithAuth as M, withCdpSocket as N, withBrowserNavigationPolicy as O, ensureChromeExtensionRelayServer as P, DEFAULT_AI_SNAPSHOT_MAX_CHARS as R, formatAriaSnapshot as S, InvalidBrowserNavigationUrlError as T, DEFAULT_FASED_BROWSER_PROFILE_NAME as U, DEFAULT_FASED_BROWSER_COLOR as V, stopFasedAgentChrome as _, DEFAULT_TRACE_DIR as a, captureScreenshot as b, resolveStrictExistingPathsWithinRoot as c, normalizeBrowserFormField as d, getChromeWebSocketUrl as f, resolveFasedAgentUserDataDir as g, launchFasedAgentChrome as h, DEFAULT_DOWNLOAD_DIR as i, fetchOk as j, appendCdpPath as k, resolveWritablePathWithinRoot as l, isChromeReachable as m, loadPlaywrightCore as n, DEFAULT_UPLOAD_DIR as o, isChromeCdpReady as p, loadReadability as r, resolveExistingPathsWithinRoot as s, loadLinkedom as t, DEFAULT_FILL_FIELD_TYPE as u, resolveBrowserExecutableForPlatform as v, snapshotAria as w, createTargetViaCdp as x, resolveLsofCommandSync as y, DEFAULT_BROWSER_DEFAULT_PROFILE_NAME as z };
|
|
2218
|
+
export { fetchJson as A, DEFAULT_BROWSER_EVALUATE_ENABLED as B, normalizeCdpWsUrl as C, assertBrowserNavigationResultAllowed as D, assertBrowserNavigationAllowed as E, stopChromeExtensionRelayServer as F, isLoopbackHost as G, DEFAULT_FASED_BROWSER_ENABLED as H, DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH as I, resolveClientIp as J, isSecureWebSocketUrl as K, DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS as L, getHeadersWithAuth as M, withCdpSocket as N, withBrowserNavigationPolicy as O, ensureChromeExtensionRelayServer as P, DEFAULT_AI_SNAPSHOT_MAX_CHARS as R, formatAriaSnapshot as S, InvalidBrowserNavigationUrlError as T, DEFAULT_FASED_BROWSER_PROFILE_NAME as U, DEFAULT_FASED_BROWSER_COLOR as V, isLoopbackAddress as W, rawDataToString as X, resolveForwardedClientIp as Y, stopFasedAgentChrome as _, DEFAULT_TRACE_DIR as a, captureScreenshot as b, resolveStrictExistingPathsWithinRoot as c, normalizeBrowserFormField as d, getChromeWebSocketUrl as f, resolveFasedAgentUserDataDir as g, launchFasedAgentChrome as h, DEFAULT_DOWNLOAD_DIR as i, fetchOk as j, appendCdpPath as k, resolveWritablePathWithinRoot as l, isChromeReachable as m, loadPlaywrightCore as n, DEFAULT_UPLOAD_DIR as o, isChromeCdpReady as p, isTrustedProxyAddress as q, loadReadability as r, resolveExistingPathsWithinRoot as s, loadLinkedom as t, DEFAULT_FILL_FIELD_TYPE as u, resolveBrowserExecutableForPlatform as v, snapshotAria as w, createTargetViaCdp as x, resolveLsofCommandSync as y, DEFAULT_BROWSER_DEFAULT_PROFILE_NAME as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { w as resolvePreferredFasedAgentTmpDir } from "./globals-B_jjtAje.js";
|
|
2
2
|
import { I as isPathInside } from "./agent-scope-BbgPlhtw.js";
|
|
3
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
3
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-BJZD5JMJ.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import { URL, fileURLToPath } from "node:url";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { At as FasedAgentConfig, Bt as
|
|
2
|
-
import { A as createSubsystemLogger, V as resolveGatewayPort, g as ErrorShape, i as OperatorScope, n as AuthProfileStore, u as RespondFn } from "./types-
|
|
3
|
-
import { a as resolveAgentDir, i as resolveAgentConfig, n as fetchWithSsrFGuard$1, o as resolveAgentEffectiveModelPrimary, s as resolveDefaultAgentId, t as resolvePreferredFasedAgentTmpDir } from "./tmp-fased-dir-
|
|
1
|
+
import { At as FasedAgentConfig, Bt as WalletProviderId, Ht as WalletRuntimeMode, Lt as WalletAuthMode, Rt as WalletChain, Ut as WalletToolAccessMode, Vt as WalletRuntimeKind, _n as GatewayClientMode, s as loadConfig, vn as GatewayClientName, zt as WalletExecutionMode } from "./types.plugin-_fbu40Re.js";
|
|
2
|
+
import { A as createSubsystemLogger, V as resolveGatewayPort, g as ErrorShape, i as OperatorScope, n as AuthProfileStore, u as RespondFn } from "./types-CLIvQaVg.js";
|
|
3
|
+
import { a as resolveAgentDir, i as resolveAgentConfig, n as fetchWithSsrFGuard$1, o as resolveAgentEffectiveModelPrimary, s as resolveDefaultAgentId, t as resolvePreferredFasedAgentTmpDir } from "./tmp-fased-dir-BdFQvrvw.js";
|
|
4
4
|
import { Api, Model } from "@mariozechner/pi-ai";
|
|
5
5
|
import { AuthStorage, ModelRegistry } from "@mariozechner/pi-coding-agent";
|
|
6
6
|
import * as _sinclair_typebox0 from "@sinclair/typebox";
|