@fased/fased 0.1.47 → 0.1.48
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/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/bash-tools.shared.js +2 -2
- package/dist/agents/cli-credentials.js +4 -4
- package/dist/agents/current-model-catalog.js +21 -3
- 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/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/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/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/post-compaction-audit.js +3 -3
- package/dist/auto-reply/reply/post-compaction-context.js +3 -3
- package/dist/auto-reply/reply/session.js +3 -3
- package/dist/auto-reply/skill-commands.js +3 -3
- package/dist/auto-reply/status.js +6 -6
- package/dist/brand.js +1 -1
- package/dist/browser/chrome.executables.js +3 -3
- package/dist/browser/chrome.js +3 -3
- package/dist/browser/chrome.profile-decoration.js +6 -6
- 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-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/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/secrets-cli.js +3 -3
- package/dist/cli/windows-argv.js +2 -2
- package/dist/commands/dashboard-link.js +3 -3
- 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/managed-up.js +2 -2
- package/dist/commands/onboard-auth.credentials.js +3 -3
- package/dist/commands/onboarding/plugin-install.js +2 -2
- 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/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/thread-bindings.state.js +2 -2
- package/dist/extensions/sat-mining/src/protocol-contract.js +63 -0
- package/dist/extensions/sat-mining/src/sat-bond-layout.js +9 -9
- package/dist/extensions/sat-mining/src/solana-submit.js +3 -52
- 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 +9 -9
- package/dist/gateway/hooks-mapping.js +4 -4
- package/dist/gateway/server-discovery.js +2 -2
- package/dist/gateway/server-http.js +4 -4
- package/dist/gateway/server-methods/chat.js +6 -6
- package/dist/gateway/server-methods/sessions.js +6 -6
- package/dist/gateway/server-methods/usage.js +2 -2
- 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/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/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 +25 -4
- package/dist/memory/manager-sync-ops.js +7 -7
- package/dist/memory/repair-executor.js +17 -17
- package/dist/mining/mainnet-sync.js +70 -26
- 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-DzLdrOVC.js → accounts-DI5226U8.js} +1 -1
- package/dist/plugin-sdk/{actions-PhofTgnO.js → actions-CEj4gOU2.js} +2 -2
- package/dist/plugin-sdk/{active-listener-C8a74qPO.js → active-listener-Ss4UKXZb.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-CARAVcz-.js → audio-preflight-Cu4alGjb.js} +26 -26
- package/dist/plugin-sdk/{audit-ByK45Q1d.js → audit-BTskqjJ_.js} +1 -1
- package/dist/plugin-sdk/{channel-access-BEin0yA4.js → channel-access-B1KciKmw.js} +1 -1
- package/dist/plugin-sdk/{channel-access-configure-Di_DoR-Q.js → channel-access-configure-Y91FLOJc.js} +1 -1
- package/dist/plugin-sdk/channel-plugin-common.d.ts +2 -2
- package/dist/plugin-sdk/channel-plugin-common.js +4 -4
- package/dist/plugin-sdk/{chunk-CwN3c1Fq.js → chunk-CSUjIQSx.js} +1 -1
- package/dist/plugin-sdk/{chunk-items-DH7ooQBZ.js → chunk-items-Q8HhMuSe.js} +1 -1
- package/dist/plugin-sdk/command-status.js +26 -26
- package/dist/plugin-sdk/{commands-registry-Bea-V_lR.js → commands-registry-DJ0pfCcY.js} +2 -2
- package/dist/plugin-sdk/{common-BJPuBxmx.js → common-Cjm8psuW.js} +1 -1
- package/dist/plugin-sdk/{config-BxOWD3gF.js → config-DutIeFge.js} +21 -3
- package/dist/plugin-sdk/{config-schema-ChJcPn7x.js → config-schema-Cg6PYSHR.js} +85 -64
- package/dist/plugin-sdk/device-pair.d.ts +1 -1
- package/dist/plugin-sdk/discord.d.ts +4 -4
- package/dist/plugin-sdk/discord.js +19 -19
- package/dist/plugin-sdk/{handle-action-Bk-L2J84.js → handle-action-Dp2741iu.js} +13 -13
- package/dist/plugin-sdk/{helpers-0E444CR0.js → helpers-BCZ9d3fl.js} +1 -1
- package/dist/plugin-sdk/{image-ops-BYc-Ol7C.js → image-ops-B-QR_M9Z.js} +1 -1
- package/dist/plugin-sdk/index.d.ts +20 -20
- package/dist/plugin-sdk/index.js +28 -28
- package/dist/plugin-sdk/json-store.js +6 -6
- package/dist/plugin-sdk/{login-B_At7IVI.js → login-BFvQxf9o.js} +3 -3
- package/dist/plugin-sdk/{login-qr-BlSQ8QJF.js → login-qr-CERTe_nD.js} +3 -3
- package/dist/plugin-sdk/{manager-VNI6sxbG.js → manager-Dhq3SXpO.js} +2 -2
- package/dist/plugin-sdk/{markdown-tables-CpNefu6e.js → markdown-tables-B1Tx7c77.js} +1 -1
- package/dist/plugin-sdk/{media-QBCmvhBQ.js → media-BwsqooWC.js} +2 -2
- package/dist/plugin-sdk/{monitor-C9UczH5N.js → monitor-BYzN5Qr4.js} +31 -31
- package/dist/plugin-sdk/{monitor-BhHlerHI.js → monitor-CJiacqtR.js} +30 -30
- package/dist/plugin-sdk/{openresponses-http-CtuFHD5w.js → openresponses-http-VLSSqCZZ.js} +26 -26
- package/dist/plugin-sdk/{optional-runtime-dependency-BaVO1F3i.js → optional-runtime-dependency-BEBP4VFJ.js} +1 -1
- package/dist/plugin-sdk/{outbound-CWrcAWpE.js → outbound-BqWgaC5M.js} +6 -6
- package/dist/plugin-sdk/{outbound-attachment-Dhi2Q-_f.js → outbound-attachment-L1q40kiu.js} +2 -2
- package/dist/plugin-sdk/{pairing-message-D01_6FkJ.js → pairing-message-CZBahREg.js} +1 -1
- package/dist/plugin-sdk/{pairing-message-6XVXW554.d.ts → pairing-message-DWXHX-jt.d.ts} +1 -1
- package/dist/plugin-sdk/{pairing-store-DADXOv-J.js → pairing-store-D7I1Qmiw.js} +2 -2
- package/dist/plugin-sdk/{pi-model-discovery-D9-CQFS2.js → pi-model-discovery-C5klknQZ.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-runtime-DhNNXQgq.js → pi-model-discovery-runtime-DIEMhCZ5.js} +2 -2
- package/dist/plugin-sdk/provider-web-search-config-contract.d.ts +1 -1
- package/dist/plugin-sdk/{pw-ai-CQG7vp-Y.js → pw-ai-Bv-q25gY.js} +3 -3
- package/dist/plugin-sdk/{replies-C_FeIOF4.js → replies-Bd9ktEkq.js} +2 -2
- package/dist/plugin-sdk/{resolve-outbound-target-DD8edEdz.js → resolve-outbound-target-CCIyBb5H.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-BPkfG5Pg.js → resolve-route-B7vZ3nKp.js} +1 -1
- package/dist/plugin-sdk/{retry-policy-C0YsRX_6.js → retry-policy-ChC3G4lv.js} +1 -1
- package/dist/plugin-sdk/{runtime-CyTWeylK.js → runtime-BLknHFGz.js} +3 -3
- package/dist/plugin-sdk/{runtime-dependency-D6tYtvtU.js → runtime-dependency-C5rJfC0u.js} +2 -2
- package/dist/plugin-sdk/sat-runtime.d.ts +3 -2
- package/dist/plugin-sdk/sat-runtime.js +5 -5
- package/dist/plugin-sdk/{send-CNxLDNQ9.js → send-Bd3Z-jAd.js} +6 -6
- package/dist/plugin-sdk/{send-Qckp3h4k.js → send-Bmtz9ICm.js} +8 -8
- package/dist/plugin-sdk/{send-BedQ8ekw.js → send-CMoWt-EX.js} +7 -7
- package/dist/plugin-sdk/{send-FcEJfLTd.js → send-CUGEhiUa.js} +6 -6
- package/dist/plugin-sdk/{send-BtFuV6zU.js → send-mkyZzhCO.js} +5 -5
- package/dist/plugin-sdk/{session-C3Ul4abD.js → session-D2zmelOL.js} +2 -2
- package/dist/plugin-sdk/{skill-commands-C2CnUTPX.js → skill-commands-BybEjJ1_.js} +2 -2
- package/dist/plugin-sdk/{slack-bSeSOI9d.js → slack-DogXvGG3.js} +38 -38
- package/dist/plugin-sdk/{slack-actions-CLyEd8FK.js → slack-actions-uXb55QWW.js} +11 -11
- package/dist/plugin-sdk/slack.d.ts +4 -4
- package/dist/plugin-sdk/slack.js +9 -9
- package/dist/plugin-sdk/{sticker-cache-DBnS3hHh.js → sticker-cache-BuPw7fTf.js} +3 -3
- package/dist/plugin-sdk/{tables-L5mXZ5y_.js → tables-CVDOT5dX.js} +1 -1
- package/dist/plugin-sdk/{targets-eG595pY0.js → targets-DskkhJAp.js} +1 -1
- package/dist/plugin-sdk/{telegram-actions-D0Kyqy_e.js → telegram-actions-_KQPbjpI.js} +29 -29
- package/dist/plugin-sdk/telegram.d.ts +4 -4
- package/dist/plugin-sdk/telegram.js +8 -8
- package/dist/plugin-sdk/{thread-bindings.lifecycle-C_5BEWmL.js → thread-bindings.lifecycle-CrhQXYEU.js} +3 -3
- package/dist/plugin-sdk/{thread-bindings.state-DRZAbcUu.js → thread-bindings.state-ssxdG7xV.js} +2 -2
- package/dist/plugin-sdk/{tmp-fased-dir-BpMLNd4L.d.ts → tmp-fased-dir-Be1wBhVz.d.ts} +1 -1
- package/dist/plugin-sdk/{types-0CsXVmg8.d.ts → types-CJGVZX6j.d.ts} +1 -1
- package/dist/plugin-sdk/{types-DMLEeE52.d.ts → types-CXLEOrJX.d.ts} +1 -1
- package/dist/plugin-sdk/{wallet-status-2yrXvqSS.js → wallet-status-CQI89c_6.js} +70 -28
- package/dist/plugin-sdk/{web-CSRe4zy2.js → web-C8DwA0eO.js} +31 -31
- package/dist/plugin-sdk/{whatsapp-actions-CkLkpg8M.js → whatsapp-actions-DfvM-mlZ.js} +13 -13
- package/dist/plugin-sdk/{whatsapp-heartbeat-DuAE9_88.js → whatsapp-heartbeat-DyJasLDB.js} +2 -2
- package/dist/plugin-sdk/whatsapp.d.ts +13 -13
- package/dist/plugin-sdk/whatsapp.js +12 -12
- package/dist/plugin-sdk/{wsl-CXVwPntb.js → wsl-JwmI6Zu8.js} +3 -3
- package/dist/plugin-sdk/{zod-schema.providers-core-FaYR6KdD.d.ts → zod-schema.providers-core-BE_5DNhj.d.ts} +80 -80
- 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/status-cache.js +9 -9
- package/dist/plugins/update.js +3 -3
- package/dist/plugins/web-search-install-catalog.js +3 -3
- 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/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/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 +7 -7
- 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 +6 -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 +6 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +6 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/sat-mining/index.ts +1 -1
- package/extensions/sat-mining/package.json +1 -1
- package/extensions/sat-mining/src/protocol-contract.ts +64 -0
- package/extensions/sat-mining/src/round-watcher.ts +6 -4
- package/extensions/sat-mining/src/solana-submit.ts +7 -53
- 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 +6 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +6 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +6 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +6 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { An as GATEWAY_CLIENT_IDS, B as INPUT_PROVENANCE_KIND_VALUES, Bn as CLI_DEFAULT_OPERATOR_SCOPES, Hn as resolveLeastPrivilegeOperatorScopesForMethod, Mn as GATEWAY_CLIENT_NAMES, jn as GATEWAY_CLIENT_MODES } from "./runtime-
|
|
1
|
+
import { An as GATEWAY_CLIENT_IDS, B as INPUT_PROVENANCE_KIND_VALUES, Bn as CLI_DEFAULT_OPERATOR_SCOPES, Hn as resolveLeastPrivilegeOperatorScopesForMethod, Mn as GATEWAY_CLIENT_NAMES, jn as GATEWAY_CLIENT_MODES } from "./runtime-BLknHFGz.js";
|
|
2
2
|
import { i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir } from "./paths-BEmvSyOV.js";
|
|
3
3
|
import { _ as shortenHomeInString, a as ensureDir$1, h as resolveUserPath, t as CONFIG_DIR } from "./utils-CYk9EKoq.js";
|
|
4
|
-
import { Gn as isPrivateNetworkBaseUrl, Kt as normalizeProviderId$1, Mn as resolveFasedAgentAgentDir, ir as DEFAULT_CONTEXT_TOKENS, n as loadConfig, qn as assertSecretInputResolved, sr as VERSION } from "./config-
|
|
4
|
+
import { Gn as isPrivateNetworkBaseUrl, Kt as normalizeProviderId$1, Mn as resolveFasedAgentAgentDir, ir as DEFAULT_CONTEXT_TOKENS, n as loadConfig, qn as assertSecretInputResolved, sr as VERSION } from "./config-DutIeFge.js";
|
|
5
5
|
import { l as resolveAgentIdFromSessionKey } from "./session-key-HSJ2KQTc.js";
|
|
6
6
|
import { n as logError, t as logDebug } from "./logger-BbFvCoKk.js";
|
|
7
7
|
import { n as redactSensitiveText } from "./redact-Bm8vu_ju.js";
|
|
8
8
|
import { n as redactSensitiveUrlLikeString } from "./redact-sensitive-url-dPvnFFsK.js";
|
|
9
9
|
import { a as normalizeDeviceAuthRole, n as clearDevicePairing, o as normalizeDeviceAuthScopes } from "./device-pairing-D2Yq-_U6.js";
|
|
10
|
-
import { i as discoverModels, r as discoverAuthStorage } from "./pi-model-discovery-
|
|
10
|
+
import { i as discoverModels, r as discoverAuthStorage } from "./pi-model-discovery-C5klknQZ.js";
|
|
11
11
|
import { i as isSecureWebSocketUrl, t as rawDataToString } from "./ws-CocpWGhl.js";
|
|
12
12
|
import { createRequire } from "node:module";
|
|
13
13
|
import path from "node:path";
|
|
@@ -4689,17 +4689,39 @@ function randomIdempotencyKey() {
|
|
|
4689
4689
|
//#region src/mining/mainnet-sync.ts
|
|
4690
4690
|
const DEFAULT_MANIFEST_URL = "https://satcoin.app/.well-known/sat-mainnet-addresses.json";
|
|
4691
4691
|
const DEFAULT_TIMEOUT_MS = 12e3;
|
|
4692
|
-
const EMBEDDED_TRUSTED_KEYS = [
|
|
4692
|
+
const EMBEDDED_TRUSTED_KEYS = [{
|
|
4693
|
+
id: "sat-mainnet-2026-01",
|
|
4694
|
+
publicKeyBase64Url: "F-Kv6SBcZHvs1LQ0LNHwYQ6VuKidpkv1nkgRqggn1kk",
|
|
4695
|
+
fingerprintSha256: "7fc6f335e13fbba3cee2f833e4ab656a19fd8c0715b9d9097a3e196f0e3a0ebd"
|
|
4696
|
+
}];
|
|
4697
|
+
for (const key of EMBEDDED_TRUSTED_KEYS) {
|
|
4698
|
+
const publicKeyBytes = Buffer.from(key.publicKeyBase64Url, "base64url");
|
|
4699
|
+
const fingerprint = createHash("sha256").update(publicKeyBytes).digest("hex");
|
|
4700
|
+
if (publicKeyBytes.length !== 32 || fingerprint !== key.fingerprintSha256) throw new Error(`Invalid embedded SAT mainnet manifest key: ${key.id}`);
|
|
4701
|
+
}
|
|
4693
4702
|
function trustedKeysFromEnv(env) {
|
|
4694
4703
|
const raw = String(env.FASED_SAT_MAINNET_MANIFEST_PUBLIC_KEY ?? "").trim();
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
id:
|
|
4698
|
-
publicKeyBase64Url
|
|
4699
|
-
|
|
4704
|
+
const id = String(env.FASED_SAT_MAINNET_MANIFEST_PUBLIC_KEY_ID ?? "env").trim() || "env";
|
|
4705
|
+
const rotated = String(env.FASED_SAT_MAINNET_MANIFEST_PUBLIC_KEYS ?? "").split(",").map((entry) => entry.trim()).filter(Boolean).map((publicKeyBase64Url, index) => ({
|
|
4706
|
+
id: `${id}-${index + 1}`,
|
|
4707
|
+
publicKeyBase64Url,
|
|
4708
|
+
source: "environment"
|
|
4709
|
+
}));
|
|
4710
|
+
return [...raw ? [{
|
|
4711
|
+
id,
|
|
4712
|
+
publicKeyBase64Url: raw,
|
|
4713
|
+
source: "environment"
|
|
4714
|
+
}] : [], ...rotated];
|
|
4700
4715
|
}
|
|
4701
4716
|
function resolveTrustedKeys(env) {
|
|
4702
|
-
return [...EMBEDDED_TRUSTED_KEYS
|
|
4717
|
+
return [...EMBEDDED_TRUSTED_KEYS.map((key) => ({
|
|
4718
|
+
...key,
|
|
4719
|
+
source: "embedded"
|
|
4720
|
+
})), ...trustedKeysFromEnv(env)];
|
|
4721
|
+
}
|
|
4722
|
+
function resolveConfiguredTrustKeySource(env) {
|
|
4723
|
+
if (EMBEDDED_TRUSTED_KEYS.length > 0) return "embedded";
|
|
4724
|
+
return trustedKeysFromEnv(env).length > 0 ? "environment" : "missing";
|
|
4703
4725
|
}
|
|
4704
4726
|
function resolveManifestUrl(env) {
|
|
4705
4727
|
return String(env.FASED_SAT_MAINNET_MANIFEST_URL ?? "").trim() || DEFAULT_MANIFEST_URL;
|
|
@@ -4758,37 +4780,54 @@ function verifyDetachedEd25519Signature(params) {
|
|
|
4758
4780
|
x: normalizeBase64Url(trustedKey.publicKeyBase64Url)
|
|
4759
4781
|
}
|
|
4760
4782
|
});
|
|
4761
|
-
if (verify(null, Buffer.from(params.payload), publicKey, signature)) return
|
|
4783
|
+
if (verify(null, Buffer.from(params.payload), publicKey, signature)) return trustedKey;
|
|
4762
4784
|
} catch {}
|
|
4763
|
-
return
|
|
4785
|
+
return null;
|
|
4764
4786
|
}
|
|
4765
4787
|
async function verifyLiveManifest(params) {
|
|
4788
|
+
const configuredTrustKeySource = resolveConfiguredTrustKeySource(params.env);
|
|
4766
4789
|
const expectedHash = parseSha256(await fetchText(`${params.manifestUrl}.sha256`, { required: false }).catch(() => null));
|
|
4767
4790
|
if (!expectedHash) return {
|
|
4768
|
-
|
|
4769
|
-
|
|
4791
|
+
verification: {
|
|
4792
|
+
hash: "missing",
|
|
4793
|
+
signature: "missing"
|
|
4794
|
+
},
|
|
4795
|
+
trustKeySource: configuredTrustKeySource
|
|
4770
4796
|
};
|
|
4771
4797
|
if (sha256Hex$1(params.raw) !== expectedHash) return {
|
|
4772
|
-
|
|
4773
|
-
|
|
4798
|
+
verification: {
|
|
4799
|
+
hash: "invalid",
|
|
4800
|
+
signature: "missing"
|
|
4801
|
+
},
|
|
4802
|
+
trustKeySource: configuredTrustKeySource
|
|
4774
4803
|
};
|
|
4775
4804
|
const signature = await fetchText(`${params.manifestUrl}.sig`, { required: false }).catch(() => null);
|
|
4776
4805
|
if (!signature?.trim()) return {
|
|
4777
|
-
|
|
4778
|
-
|
|
4806
|
+
verification: {
|
|
4807
|
+
hash: "valid",
|
|
4808
|
+
signature: "missing"
|
|
4809
|
+
},
|
|
4810
|
+
trustKeySource: configuredTrustKeySource
|
|
4779
4811
|
};
|
|
4780
4812
|
const trustedKeys = resolveTrustedKeys(params.env);
|
|
4781
|
-
|
|
4813
|
+
const verifiedKey = verifyDetachedEd25519Signature({
|
|
4782
4814
|
payload: params.raw,
|
|
4783
4815
|
signatureBase64: signature.trim(),
|
|
4784
4816
|
trustedKeys
|
|
4785
|
-
})
|
|
4786
|
-
|
|
4787
|
-
|
|
4817
|
+
});
|
|
4818
|
+
if (!verifiedKey) return {
|
|
4819
|
+
verification: {
|
|
4820
|
+
hash: "valid",
|
|
4821
|
+
signature: "invalid"
|
|
4822
|
+
},
|
|
4823
|
+
trustKeySource: configuredTrustKeySource
|
|
4788
4824
|
};
|
|
4789
4825
|
return {
|
|
4790
|
-
|
|
4791
|
-
|
|
4826
|
+
verification: {
|
|
4827
|
+
hash: "valid",
|
|
4828
|
+
signature: "valid"
|
|
4829
|
+
},
|
|
4830
|
+
trustKeySource: verifiedKey.source
|
|
4792
4831
|
};
|
|
4793
4832
|
}
|
|
4794
4833
|
function readLocalIds(env) {
|
|
@@ -4845,11 +4884,12 @@ async function getSatMainnetSyncStatus(opts) {
|
|
|
4845
4884
|
verification: {
|
|
4846
4885
|
hash: "not_required",
|
|
4847
4886
|
signature: "not_required"
|
|
4848
|
-
}
|
|
4887
|
+
},
|
|
4888
|
+
trustKeySource: "not_required"
|
|
4849
4889
|
};
|
|
4850
4890
|
const officialIds = readOfficialIds(manifest);
|
|
4851
4891
|
if (!officialIds) throw new Error("live manifest is missing the complete SAT runtime id tuple");
|
|
4852
|
-
const verification = await verifyLiveManifest({
|
|
4892
|
+
const { verification, trustKeySource } = await verifyLiveManifest({
|
|
4853
4893
|
manifestUrl,
|
|
4854
4894
|
raw,
|
|
4855
4895
|
env
|
|
@@ -4868,7 +4908,8 @@ async function getSatMainnetSyncStatus(opts) {
|
|
|
4868
4908
|
officialIds,
|
|
4869
4909
|
needsSync: false,
|
|
4870
4910
|
verification,
|
|
4871
|
-
|
|
4911
|
+
trustKeySource,
|
|
4912
|
+
error: trustKeySource === "missing" ? "This Fased release has no trusted SAT mainnet manifest key. Update Fased before syncing or mining." : "Signed manifest verification failed."
|
|
4872
4913
|
};
|
|
4873
4914
|
const synced = idsEqual(localIds, officialIds);
|
|
4874
4915
|
return {
|
|
@@ -4884,7 +4925,8 @@ async function getSatMainnetSyncStatus(opts) {
|
|
|
4884
4925
|
officialIds,
|
|
4885
4926
|
needsSync: !synced,
|
|
4886
4927
|
runtimeFile: resolveWritableSatRuntimeDefaultsFile(env),
|
|
4887
|
-
verification
|
|
4928
|
+
verification,
|
|
4929
|
+
trustKeySource
|
|
4888
4930
|
};
|
|
4889
4931
|
} catch (error) {
|
|
4890
4932
|
return {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Bt as formatDurationPrecise, Ht as enqueueSystemEvent, J as sleepWithAbort, K as buildPairingReply, L as resolveMentionGating, Mr as readStoreAllowFromForDmPolicy, Nr as resolveDmGroupAccessWithCommandGate, Ot as normalizeGroupActivation, Pr as resolveDmGroupAccessWithLists, X as buildHistoryContextFromEntries, Y as DEFAULT_GROUP_HISTORY_LIMIT, Zt as registerUnhandledRejectionHandler, dt as resolveInboundDebounceMs, fn as buildMentionRegexes, ft as formatInboundEnvelope, kt as parseActivationCommand, ln as hasControlCommand, mn as normalizeMentionText, mt as resolveEnvelopeFormatOptions, nt as recordPendingHistoryEntryIfEnabled, or as createDedupeCache, ot as shouldAckReactionForWhatsApp, q as computeBackoff, st as dispatchReplyWithBufferedBlockDispatcher, un as shouldComputeCommandAuthorized, ut as createInboundDebouncer, vt as getReplyFromConfig } from "./config-schema-
|
|
2
|
-
import { C as recordSessionMetaFromInbound, S as readSessionUpdatedAt, _n as resolveChannelGroupRequireMention, bn as resolveGroupSessionKey, gn as resolveChannelGroupPolicy, w as updateLastRoute, x as loadSessionStore } from "./runtime-
|
|
1
|
+
import { Bt as formatDurationPrecise, Ht as enqueueSystemEvent, J as sleepWithAbort, K as buildPairingReply, L as resolveMentionGating, Mr as readStoreAllowFromForDmPolicy, Nr as resolveDmGroupAccessWithCommandGate, Ot as normalizeGroupActivation, Pr as resolveDmGroupAccessWithLists, X as buildHistoryContextFromEntries, Y as DEFAULT_GROUP_HISTORY_LIMIT, Zt as registerUnhandledRejectionHandler, dt as resolveInboundDebounceMs, fn as buildMentionRegexes, ft as formatInboundEnvelope, kt as parseActivationCommand, ln as hasControlCommand, mn as normalizeMentionText, mt as resolveEnvelopeFormatOptions, nt as recordPendingHistoryEntryIfEnabled, or as createDedupeCache, ot as shouldAckReactionForWhatsApp, q as computeBackoff, st as dispatchReplyWithBufferedBlockDispatcher, un as shouldComputeCommandAuthorized, ut as createInboundDebouncer, vt as getReplyFromConfig } from "./config-schema-Cg6PYSHR.js";
|
|
2
|
+
import { C as recordSessionMetaFromInbound, S as readSessionUpdatedAt, _n as resolveChannelGroupRequireMention, bn as resolveGroupSessionKey, gn as resolveChannelGroupPolicy, w as updateLastRoute, x as loadSessionStore } from "./runtime-BLknHFGz.js";
|
|
3
3
|
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-DBPNbQDQ.js";
|
|
4
4
|
import { i as logVerbose, p as getChildLogger, s as shouldLogVerbose } from "./globals-B_jjtAje.js";
|
|
5
5
|
import "./paths-BEmvSyOV.js";
|
|
6
6
|
import { d as normalizeE164, l as isSelfChatMode, m as resolveJidToE164, n as clamp, u as jidToE164, x as toWhatsappJid, y as sleep } from "./utils-CYk9EKoq.js";
|
|
7
|
-
import { Cr as formatCliCommand, n as loadConfig } from "./config-
|
|
7
|
+
import { Cr as formatCliCommand, n as loadConfig } from "./config-DutIeFge.js";
|
|
8
8
|
import "./agent-scope-BbgPlhtw.js";
|
|
9
9
|
import { a as buildGroupHistoryKey, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey, s as normalizeAgentId } from "./session-key-HSJ2KQTc.js";
|
|
10
10
|
import "./accounts-RHZyaB73.js";
|
|
11
11
|
import "./accounts-CuqIKU8X.js";
|
|
12
12
|
import "./logger-BbFvCoKk.js";
|
|
13
13
|
import "./exec-DQ8j4Fm3.js";
|
|
14
|
-
import { _ as webAuthExists, c as logWebSelfId, d as pickWebChannel, i as resolveWhatsAppAccount, o as WA_WEB_AUTH_DIR, p as readWebSelfId, s as getWebAuthAgeMs } from "./accounts-
|
|
14
|
+
import { _ as webAuthExists, c as logWebSelfId, d as pickWebChannel, i as resolveWhatsAppAccount, o as WA_WEB_AUTH_DIR, p as readWebSelfId, s as getWebAuthAgeMs } from "./accounts-DI5226U8.js";
|
|
15
15
|
import "./allow-list-BYeKk0Sy.js";
|
|
16
16
|
import "./redact-Bm8vu_ju.js";
|
|
17
17
|
import "./github-copilot-token-CUK__1s1.js";
|
|
@@ -21,11 +21,11 @@ import "./ip-C70a-YlD.js";
|
|
|
21
21
|
import "./ssrf-BZG8Ztod.js";
|
|
22
22
|
import "./fetch-guard-BuYrl6q2.js";
|
|
23
23
|
import { n as redactSensitiveUrlLikeString } from "./redact-sensitive-url-dPvnFFsK.js";
|
|
24
|
-
import "./send-
|
|
25
|
-
import { A as resolveDefaultGroupPolicy, M as warnMissingProviderGroupPolicyFallbackOnce, j as resolveOpenProviderRuntimeGroupPolicy } from "./helpers-
|
|
26
|
-
import { D as formatLocationText, O as toLocationContext } from "./wsl-
|
|
27
|
-
import { a as upsertChannelPairingRequest } from "./pairing-store-
|
|
28
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-
|
|
24
|
+
import "./send-CUGEhiUa.js";
|
|
25
|
+
import { A as resolveDefaultGroupPolicy, M as warnMissingProviderGroupPolicyFallbackOnce, j as resolveOpenProviderRuntimeGroupPolicy } from "./helpers-BCZ9d3fl.js";
|
|
26
|
+
import { D as formatLocationText, O as toLocationContext } from "./wsl-JwmI6Zu8.js";
|
|
27
|
+
import { a as upsertChannelPairingRequest } from "./pairing-store-D7I1Qmiw.js";
|
|
28
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-CSUjIQSx.js";
|
|
29
29
|
import "./tailscale-status-ClsquRGs.js";
|
|
30
30
|
import { l as resolveIdentityNamePrefix, n as createReplyPrefixOptions, u as resolveMessagePrefix } from "./reply-prefix-Bqzm6DC1.js";
|
|
31
31
|
import "./tokens-BvtlOzVP.js";
|
|
@@ -34,40 +34,40 @@ import "./pairing-token-N_6Jbt1L.js";
|
|
|
34
34
|
import "./diagnostic-Dfn1iERm.js";
|
|
35
35
|
import "./diagnostic-session-state-HO94DMou.js";
|
|
36
36
|
import { t as redactIdentifier } from "./redact-identifier-Q3tkvxhm.js";
|
|
37
|
-
import "./optional-runtime-dependency-
|
|
38
|
-
import "./image-ops-
|
|
39
|
-
import "./wallet-status-
|
|
40
|
-
import "./pi-model-discovery-
|
|
41
|
-
import "./runtime-dependency-
|
|
37
|
+
import "./optional-runtime-dependency-BEBP4VFJ.js";
|
|
38
|
+
import "./image-ops-B-QR_M9Z.js";
|
|
39
|
+
import "./wallet-status-CQI89c_6.js";
|
|
40
|
+
import "./pi-model-discovery-C5klknQZ.js";
|
|
41
|
+
import "./runtime-dependency-C5rJfC0u.js";
|
|
42
42
|
import "./ws-CocpWGhl.js";
|
|
43
43
|
import "./path-alias-guards-Dg3gU-MA.js";
|
|
44
44
|
import "./fs-safe-BG-VzVkL.js";
|
|
45
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
46
|
-
import { n as loadWebMedia, u as getAgentScopedMediaLocalRoots } from "./media-
|
|
47
|
-
import "./send-
|
|
48
|
-
import { a as saveMediaBuffer } from "./outbound-attachment-
|
|
45
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-B1Tx7c77.js";
|
|
46
|
+
import { n as loadWebMedia, u as getAgentScopedMediaLocalRoots } from "./media-BwsqooWC.js";
|
|
47
|
+
import "./send-Bd3Z-jAd.js";
|
|
48
|
+
import { a as saveMediaBuffer } from "./outbound-attachment-L1q40kiu.js";
|
|
49
49
|
import "./fetch-Cu-ahkie.js";
|
|
50
|
-
import "./thread-bindings.state-
|
|
50
|
+
import "./thread-bindings.state-ssxdG7xV.js";
|
|
51
51
|
import "./memory-search-C3C0bD2H.js";
|
|
52
|
-
import "./manager-
|
|
52
|
+
import "./manager-Dhq3SXpO.js";
|
|
53
53
|
import "./query-expansion-Zr9qQixm.js";
|
|
54
|
-
import "./common-
|
|
55
|
-
import "./commands-registry-
|
|
56
|
-
import "./skill-commands-
|
|
54
|
+
import "./common-Cjm8psuW.js";
|
|
55
|
+
import "./commands-registry-DJ0pfCcY.js";
|
|
56
|
+
import "./skill-commands-BybEjJ1_.js";
|
|
57
57
|
import { t as finalizeInboundContext } from "./inbound-context-BFnIdcqI.js";
|
|
58
58
|
import "./directory-live-DatqU-eS.js";
|
|
59
|
-
import "./targets-
|
|
59
|
+
import "./targets-DskkhJAp.js";
|
|
60
60
|
import "./sandbox-paths-lj7_EVuA.js";
|
|
61
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
61
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-B7vZ3nKp.js";
|
|
62
62
|
import "./render-Bwu_WxwA.js";
|
|
63
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
63
|
+
import { t as convertMarkdownTables } from "./tables-CVDOT5dX.js";
|
|
64
64
|
import { n as recordChannelActivity } from "./channel-activity-Cg1xRoc2.js";
|
|
65
|
-
import { r as setActiveWebListener } from "./active-listener-
|
|
65
|
+
import { r as setActiveWebListener } from "./active-listener-Ss4UKXZb.js";
|
|
66
66
|
import "./shared-clhhbWN3.js";
|
|
67
|
-
import "./whatsapp-heartbeat-
|
|
68
|
-
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-
|
|
69
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
70
|
-
import { t as loginWeb } from "./login-
|
|
67
|
+
import "./whatsapp-heartbeat-DyJasLDB.js";
|
|
68
|
+
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-BqWgaC5M.js";
|
|
69
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-D2zmelOL.js";
|
|
70
|
+
import { t as loginWeb } from "./login-BFvQxf9o.js";
|
|
71
71
|
import { randomUUID } from "node:crypto";
|
|
72
72
|
import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
|
|
73
73
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./runtime-
|
|
1
|
+
import "./runtime-BLknHFGz.js";
|
|
2
2
|
import "./subsystem-DBPNbQDQ.js";
|
|
3
3
|
import "./globals-B_jjtAje.js";
|
|
4
4
|
import "./paths-BEmvSyOV.js";
|
|
5
5
|
import "./utils-CYk9EKoq.js";
|
|
6
|
-
import "./config-
|
|
6
|
+
import "./config-DutIeFge.js";
|
|
7
7
|
import "./agent-scope-BbgPlhtw.js";
|
|
8
8
|
import "./accounts-RHZyaB73.js";
|
|
9
9
|
import "./accounts-CuqIKU8X.js";
|
|
10
10
|
import "./logger-BbFvCoKk.js";
|
|
11
11
|
import "./exec-DQ8j4Fm3.js";
|
|
12
|
-
import { i as resolveWhatsAppAccount } from "./accounts-
|
|
12
|
+
import { i as resolveWhatsAppAccount } from "./accounts-DI5226U8.js";
|
|
13
13
|
import "./redact-Bm8vu_ju.js";
|
|
14
14
|
import "./github-copilot-token-CUK__1s1.js";
|
|
15
15
|
import "./retry-DstNBhDW.js";
|
|
@@ -17,19 +17,19 @@ import "./paths-CTZ2RS_E.js";
|
|
|
17
17
|
import "./ip-C70a-YlD.js";
|
|
18
18
|
import "./ssrf-BZG8Ztod.js";
|
|
19
19
|
import "./fetch-guard-BuYrl6q2.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./optional-runtime-dependency-
|
|
22
|
-
import "./image-ops-
|
|
20
|
+
import "./chunk-CSUjIQSx.js";
|
|
21
|
+
import "./optional-runtime-dependency-BEBP4VFJ.js";
|
|
22
|
+
import "./image-ops-B-QR_M9Z.js";
|
|
23
23
|
import "./path-alias-guards-Dg3gU-MA.js";
|
|
24
24
|
import "./fs-safe-BG-VzVkL.js";
|
|
25
|
-
import "./markdown-tables-
|
|
26
|
-
import "./media-
|
|
27
|
-
import { a as jsonResult, c as readReactionParams, d as readStringParam, n as createActionGate, t as ToolAuthorizationError } from "./common-
|
|
25
|
+
import "./markdown-tables-B1Tx7c77.js";
|
|
26
|
+
import "./media-BwsqooWC.js";
|
|
27
|
+
import { a as jsonResult, c as readReactionParams, d as readStringParam, n as createActionGate, t as ToolAuthorizationError } from "./common-Cjm8psuW.js";
|
|
28
28
|
import "./render-Bwu_WxwA.js";
|
|
29
|
-
import "./tables-
|
|
30
|
-
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-
|
|
31
|
-
import { r as sendReactionWhatsApp } from "./outbound-
|
|
32
|
-
import "./session-
|
|
29
|
+
import "./tables-CVDOT5dX.js";
|
|
30
|
+
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-CCIyBb5H.js";
|
|
31
|
+
import { r as sendReactionWhatsApp } from "./outbound-BqWgaC5M.js";
|
|
32
|
+
import "./session-D2zmelOL.js";
|
|
33
33
|
|
|
34
34
|
//#region src/agents/tools/whatsapp-target-auth.ts
|
|
35
35
|
function resolveAuthorizedWhatsAppOutboundTarget(params) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { x as loadSessionStore } from "./runtime-
|
|
1
|
+
import { x as loadSessionStore } from "./runtime-BLknHFGz.js";
|
|
2
2
|
import { f as normalizeChatChannelId } from "./subsystem-DBPNbQDQ.js";
|
|
3
3
|
import { d as normalizeE164 } from "./utils-CYk9EKoq.js";
|
|
4
4
|
import { f as DEFAULT_ACCOUNT_ID } from "./session-key-HSJ2KQTc.js";
|
|
5
5
|
import { l as resolveStorePath } from "./paths-CTZ2RS_E.js";
|
|
6
|
-
import { r as readChannelAllowFromStoreSync } from "./pairing-store-
|
|
6
|
+
import { r as readChannelAllowFromStoreSync } from "./pairing-store-D7I1Qmiw.js";
|
|
7
7
|
|
|
8
8
|
//#region src/channels/plugins/whatsapp-heartbeat.ts
|
|
9
9
|
function getSessionRecipients(cfg) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as DEFAULT_ACCOUNT_ID, r as normalizeAccountId } from "./session-key--_1zVBRB.js";
|
|
2
2
|
import { At as FasedAgentConfig, Cn as DmPolicy, F as ChannelAccountSnapshot, J as ChannelMessageActionAdapter, Wt as WhatsAppAccountConfig, it as ChannelStatusIssue, n as ChannelPlugin, r as ChannelOnboardingAdapter, u as ChannelMessageActionName, ut as getChatChannelMeta, wn as GroupPolicy } from "./types.plugin-CvUiB3Kh.js";
|
|
3
|
-
import { Bt as resolveDefaultGroupPolicy, Cn as readStringParam, Gt as listSlackDirectoryGroupsFromConfig, Jt as listTelegramDirectoryPeersFromConfig, Kt as listSlackDirectoryPeersFromConfig, Ut as listDiscordDirectoryGroupsFromConfig, Vt as resolveOpenProviderRuntimeGroupPolicy, Wt as listDiscordDirectoryPeersFromConfig, Xt as listWhatsAppDirectoryPeersFromConfig, Yt as listWhatsAppDirectoryGroupsFromConfig, _ as FasedAgentPluginApi, qt as listTelegramDirectoryGroupsFromConfig, t as PluginRuntime, yn as createActionGate, zt as resolveAllowlistProviderRuntimeGroupPolicy } from "./types-
|
|
4
|
-
import { D as normalizeE164 } from "./types-
|
|
5
|
-
import { a as buildChannelConfigSchema, c as emptyPluginConfigSchema, i as setAccountEnabledInConfigSection, n as formatPairingApproveHint, o as applyAccountNameToChannelSection, r as deleteAccountFromConfigSection, s as migrateBaseNameToDefaultAccount, t as PAIRING_APPROVED_MESSAGE } from "./pairing-message-
|
|
3
|
+
import { Bt as resolveDefaultGroupPolicy, Cn as readStringParam, Gt as listSlackDirectoryGroupsFromConfig, Jt as listTelegramDirectoryPeersFromConfig, Kt as listSlackDirectoryPeersFromConfig, Ut as listDiscordDirectoryGroupsFromConfig, Vt as resolveOpenProviderRuntimeGroupPolicy, Wt as listDiscordDirectoryPeersFromConfig, Xt as listWhatsAppDirectoryPeersFromConfig, Yt as listWhatsAppDirectoryGroupsFromConfig, _ as FasedAgentPluginApi, qt as listTelegramDirectoryGroupsFromConfig, t as PluginRuntime, yn as createActionGate, zt as resolveAllowlistProviderRuntimeGroupPolicy } from "./types-CXLEOrJX.js";
|
|
4
|
+
import { D as normalizeE164 } from "./types-CJGVZX6j.js";
|
|
5
|
+
import { a as buildChannelConfigSchema, c as emptyPluginConfigSchema, i as setAccountEnabledInConfigSection, n as formatPairingApproveHint, o as applyAccountNameToChannelSection, r as deleteAccountFromConfigSection, s as migrateBaseNameToDefaultAccount, t as PAIRING_APPROVED_MESSAGE } from "./pairing-message-DWXHX-jt.js";
|
|
6
6
|
import { _ as buildTokenChannelStatusSummary, m as resolveWhatsAppGroupToolPolicy, p as resolveWhatsAppGroupRequireMention } from "./group-mentions-DLOOve8d.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
@@ -12,9 +12,9 @@ declare const WhatsAppConfigSchema: z.ZodObject<{
|
|
|
12
12
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
13
|
markdown: z.ZodOptional<z.ZodObject<{
|
|
14
14
|
tables: z.ZodOptional<z.ZodEnum<{
|
|
15
|
+
code: "code";
|
|
15
16
|
off: "off";
|
|
16
17
|
bullets: "bullets";
|
|
17
|
-
code: "code";
|
|
18
18
|
}>>;
|
|
19
19
|
}, z.core.$strict>>;
|
|
20
20
|
configWrites: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -22,19 +22,19 @@ declare const WhatsAppConfigSchema: z.ZodObject<{
|
|
|
22
22
|
messagePrefix: z.ZodOptional<z.ZodString>;
|
|
23
23
|
responsePrefix: z.ZodOptional<z.ZodString>;
|
|
24
24
|
dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
25
|
-
|
|
25
|
+
disabled: "disabled";
|
|
26
26
|
allowlist: "allowlist";
|
|
27
27
|
open: "open";
|
|
28
|
-
|
|
28
|
+
pairing: "pairing";
|
|
29
29
|
}>>>;
|
|
30
30
|
selfChatMode: z.ZodOptional<z.ZodBoolean>;
|
|
31
31
|
allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
32
|
defaultTo: z.ZodOptional<z.ZodString>;
|
|
33
33
|
groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
34
|
groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
disabled: "disabled";
|
|
35
36
|
allowlist: "allowlist";
|
|
36
37
|
open: "open";
|
|
37
|
-
disabled: "disabled";
|
|
38
38
|
}>>>;
|
|
39
39
|
historyLimit: z.ZodOptional<z.ZodNumber>;
|
|
40
40
|
dmHistoryLimit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -69,8 +69,8 @@ declare const WhatsAppConfigSchema: z.ZodObject<{
|
|
|
69
69
|
emoji: z.ZodOptional<z.ZodString>;
|
|
70
70
|
direct: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
71
71
|
group: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
72
|
-
never: "never";
|
|
73
72
|
always: "always";
|
|
73
|
+
never: "never";
|
|
74
74
|
mentions: "mentions";
|
|
75
75
|
}>>>;
|
|
76
76
|
}, z.core.$strict>>;
|
|
@@ -84,9 +84,9 @@ declare const WhatsAppConfigSchema: z.ZodObject<{
|
|
|
84
84
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
85
85
|
markdown: z.ZodOptional<z.ZodObject<{
|
|
86
86
|
tables: z.ZodOptional<z.ZodEnum<{
|
|
87
|
+
code: "code";
|
|
87
88
|
off: "off";
|
|
88
89
|
bullets: "bullets";
|
|
89
|
-
code: "code";
|
|
90
90
|
}>>;
|
|
91
91
|
}, z.core.$strict>>;
|
|
92
92
|
configWrites: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -94,19 +94,19 @@ declare const WhatsAppConfigSchema: z.ZodObject<{
|
|
|
94
94
|
messagePrefix: z.ZodOptional<z.ZodString>;
|
|
95
95
|
responsePrefix: z.ZodOptional<z.ZodString>;
|
|
96
96
|
dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
97
|
-
|
|
97
|
+
disabled: "disabled";
|
|
98
98
|
allowlist: "allowlist";
|
|
99
99
|
open: "open";
|
|
100
|
-
|
|
100
|
+
pairing: "pairing";
|
|
101
101
|
}>>>;
|
|
102
102
|
selfChatMode: z.ZodOptional<z.ZodBoolean>;
|
|
103
103
|
allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
104
104
|
defaultTo: z.ZodOptional<z.ZodString>;
|
|
105
105
|
groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
106
106
|
groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
107
|
+
disabled: "disabled";
|
|
107
108
|
allowlist: "allowlist";
|
|
108
109
|
open: "open";
|
|
109
|
-
disabled: "disabled";
|
|
110
110
|
}>>>;
|
|
111
111
|
historyLimit: z.ZodOptional<z.ZodNumber>;
|
|
112
112
|
dmHistoryLimit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -141,8 +141,8 @@ declare const WhatsAppConfigSchema: z.ZodObject<{
|
|
|
141
141
|
emoji: z.ZodOptional<z.ZodString>;
|
|
142
142
|
direct: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
143
143
|
group: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
144
|
-
never: "never";
|
|
145
144
|
always: "always";
|
|
145
|
+
never: "never";
|
|
146
146
|
mentions: "mentions";
|
|
147
147
|
}>>>;
|
|
148
148
|
}, z.core.$strict>>;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { $t as resolveWhatsAppGroupToolPolicy, At as resolveWhatsAppMentionStripPatterns, Mt as normalizeWhatsAppAllowFromEntries, Nn as getChatChannelMeta, Nt as normalizeWhatsAppMessagingTarget, Qt as resolveWhatsAppGroupRequireMention, _t as listWhatsAppDirectoryPeersFromConfig, dt as listDiscordDirectoryPeersFromConfig, ft as listSlackDirectoryGroupsFromConfig, gt as listWhatsAppDirectoryGroupsFromConfig, ht as listTelegramDirectoryPeersFromConfig, jt as looksLikeWhatsAppTargetId, kt as resolveWhatsAppGroupIntroHint, mt as listTelegramDirectoryGroupsFromConfig, pt as listSlackDirectoryPeersFromConfig, ut as listDiscordDirectoryGroupsFromConfig } from "./runtime-
|
|
1
|
+
import { $t as resolveWhatsAppGroupToolPolicy, At as resolveWhatsAppMentionStripPatterns, Mt as normalizeWhatsAppAllowFromEntries, Nn as getChatChannelMeta, Nt as normalizeWhatsAppMessagingTarget, Qt as resolveWhatsAppGroupRequireMention, _t as listWhatsAppDirectoryPeersFromConfig, dt as listDiscordDirectoryPeersFromConfig, ft as listSlackDirectoryGroupsFromConfig, gt as listWhatsAppDirectoryGroupsFromConfig, ht as listTelegramDirectoryPeersFromConfig, jt as looksLikeWhatsAppTargetId, kt as resolveWhatsAppGroupIntroHint, mt as listTelegramDirectoryGroupsFromConfig, pt as listSlackDirectoryPeersFromConfig, ut as listDiscordDirectoryGroupsFromConfig } from "./runtime-BLknHFGz.js";
|
|
2
2
|
import "./subsystem-DBPNbQDQ.js";
|
|
3
3
|
import "./globals-B_jjtAje.js";
|
|
4
4
|
import "./paths-BEmvSyOV.js";
|
|
5
5
|
import { c as isRecord, d as normalizeE164, f as pathExists } from "./utils-CYk9EKoq.js";
|
|
6
|
-
import { Cr as formatCliCommand, l as WhatsAppConfigSchema } from "./config-
|
|
6
|
+
import { Cr as formatCliCommand, l as WhatsAppConfigSchema } from "./config-DutIeFge.js";
|
|
7
7
|
import "./agent-scope-BbgPlhtw.js";
|
|
8
8
|
import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId } from "./session-key-HSJ2KQTc.js";
|
|
9
9
|
import "./accounts-RHZyaB73.js";
|
|
10
10
|
import "./accounts-CuqIKU8X.js";
|
|
11
11
|
import "./logger-BbFvCoKk.js";
|
|
12
12
|
import "./exec-DQ8j4Fm3.js";
|
|
13
|
-
import { a as resolveWhatsAppAuthDir, i as resolveWhatsAppAccount, n as listWhatsAppAccountIds, r as resolveDefaultWhatsAppAccountId } from "./accounts-
|
|
13
|
+
import { a as resolveWhatsAppAuthDir, i as resolveWhatsAppAccount, n as listWhatsAppAccountIds, r as resolveDefaultWhatsAppAccountId } from "./accounts-DI5226U8.js";
|
|
14
14
|
import "./redact-Bm8vu_ju.js";
|
|
15
15
|
import "./github-copilot-token-CUK__1s1.js";
|
|
16
16
|
import "./retry-DstNBhDW.js";
|
|
17
17
|
import "./paths-CTZ2RS_E.js";
|
|
18
|
-
import { a as deleteAccountFromConfigSection, c as formatPairingApproveHint, n as applyAccountNameToChannelSection, o as setAccountEnabledInConfigSection, r as migrateBaseNameToDefaultAccount, s as buildChannelConfigSchema, t as PAIRING_APPROVED_MESSAGE, u as emptyPluginConfigSchema } from "./pairing-message-
|
|
19
|
-
import { A as resolveDefaultGroupPolicy, D as formatDocsLink, g as resolveOnboardingAccountId, h as resolveAccountIdForConfigure, i as normalizeAllowFromEntries, j as resolveOpenProviderRuntimeGroupPolicy, k as resolveAllowlistProviderRuntimeGroupPolicy, w as buildTokenChannelStatusSummary, x as splitOnboardingEntries } from "./helpers-
|
|
20
|
-
import "./pairing-store-
|
|
21
|
-
import "./optional-runtime-dependency-
|
|
22
|
-
import "./image-ops-
|
|
23
|
-
import { d as readStringParam, n as createActionGate } from "./common-
|
|
18
|
+
import { a as deleteAccountFromConfigSection, c as formatPairingApproveHint, n as applyAccountNameToChannelSection, o as setAccountEnabledInConfigSection, r as migrateBaseNameToDefaultAccount, s as buildChannelConfigSchema, t as PAIRING_APPROVED_MESSAGE, u as emptyPluginConfigSchema } from "./pairing-message-CZBahREg.js";
|
|
19
|
+
import { A as resolveDefaultGroupPolicy, D as formatDocsLink, g as resolveOnboardingAccountId, h as resolveAccountIdForConfigure, i as normalizeAllowFromEntries, j as resolveOpenProviderRuntimeGroupPolicy, k as resolveAllowlistProviderRuntimeGroupPolicy, w as buildTokenChannelStatusSummary, x as splitOnboardingEntries } from "./helpers-BCZ9d3fl.js";
|
|
20
|
+
import "./pairing-store-D7I1Qmiw.js";
|
|
21
|
+
import "./optional-runtime-dependency-BEBP4VFJ.js";
|
|
22
|
+
import "./image-ops-B-QR_M9Z.js";
|
|
23
|
+
import { d as readStringParam, n as createActionGate } from "./common-Cjm8psuW.js";
|
|
24
24
|
import { n as asString, r as collectIssuesForEnabledAccounts } from "./shared-clhhbWN3.js";
|
|
25
25
|
import "./channel-core-BOkyXXLa.js";
|
|
26
|
-
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-
|
|
27
|
-
import { t as resolveWhatsAppHeartbeatRecipients } from "./whatsapp-heartbeat-
|
|
26
|
+
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-CCIyBb5H.js";
|
|
27
|
+
import { t as resolveWhatsAppHeartbeatRecipients } from "./whatsapp-heartbeat-DyJasLDB.js";
|
|
28
28
|
import path from "node:path";
|
|
29
29
|
|
|
30
30
|
//#region src/config/merge-config.ts
|
|
@@ -293,7 +293,7 @@ const whatsappOnboardingAdapter = {
|
|
|
293
293
|
message: linked ? "WhatsApp already linked. Re-link now?" : "Link WhatsApp now (QR)?",
|
|
294
294
|
initialValue: !linked
|
|
295
295
|
})) try {
|
|
296
|
-
const { loginWeb } = await import("./login-
|
|
296
|
+
const { loginWeb } = await import("./login-BFvQxf9o.js").then((n) => n.n);
|
|
297
297
|
await loginWeb(false, void 0, runtime, accountId);
|
|
298
298
|
} catch (err) {
|
|
299
299
|
runtime.error(`WhatsApp login failed: ${String(err)}`);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-DBPNbQDQ.js";
|
|
2
2
|
import { c as expandHomePrefix } from "./paths-BEmvSyOV.js";
|
|
3
3
|
import { t as CONFIG_DIR } from "./utils-CYk9EKoq.js";
|
|
4
|
-
import { Ft as resolveTelegramPreviewStreamMode } from "./config-
|
|
4
|
+
import { Ft as resolveTelegramPreviewStreamMode } from "./config-DutIeFge.js";
|
|
5
5
|
import { p as normalizeAccountId } from "./session-key-HSJ2KQTc.js";
|
|
6
|
-
import { n as readChannelAllowFromStore } from "./pairing-store-
|
|
7
|
-
import { h as normalizeMimeType, u as getFileExtension } from "./image-ops-
|
|
6
|
+
import { n as readChannelAllowFromStore } from "./pairing-store-D7I1Qmiw.js";
|
|
7
|
+
import { h as normalizeMimeType, u as getFileExtension } from "./image-ops-B-QR_M9Z.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import fs, { readFileSync } from "node:fs";
|
|
10
10
|
import JSON5 from "json5";
|