@fased/fased 0.1.62 → 0.1.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/README.md +38 -30
- package/config/dependency-ownership.json +1 -1
- package/config/signer-policies/README.md +49 -0
- package/config/signer-policies/agent.json.template +32 -0
- package/config/signer-policies/mining.json.template +69 -0
- package/config/signer-policies/network.json.template +5 -0
- package/config/signer-policies/vault.json.template +70 -0
- package/config/signer-protocol-v2.json +76 -0
- package/config/typescript-noemit-baseline.json +680 -0
- package/dist/agents/auth-profiles/store.js +267 -31
- package/dist/agents/bash-tools.exec.js +10 -4
- package/dist/agents/current-model-catalog.js +3 -3
- package/dist/agents/memory-search.js +7 -1
- package/dist/agents/model-catalog-access.js +1 -2
- package/dist/agents/model-catalog-snapshot.js +1 -1
- package/dist/agents/model-catalog-source.js +1 -1
- package/dist/agents/model-metadata.js +1 -1
- package/dist/agents/model-selection.js +2 -28
- package/dist/agents/models-config.providers.js +6 -6
- package/dist/agents/pi-embedded-runner/compact.js +15 -7
- package/dist/agents/pi-embedded-runner/model.js +1 -1
- package/dist/agents/pi-embedded-runner/run/attempt.js +24 -13
- package/dist/agents/pi-embedded-runner/run.js +2 -0
- package/dist/agents/pi-embedded-runner/tool-split.js +40 -2
- package/dist/agents/pi-tool-definition-adapter.js +16 -1
- package/dist/agents/pi-tools.js +2 -1
- package/dist/agents/sandbox/config.js +1 -1
- package/dist/agents/sandbox/context.js +27 -2
- package/dist/agents/skills/env-overrides.js +38 -28
- package/dist/agents/skills/trust.js +93 -0
- package/dist/agents/skills/workspace.js +128 -0
- package/dist/agents/skills-clawhub.js +36 -11
- package/dist/agents/skills-marketplace-scan.js +49 -0
- package/dist/agents/tools/marketplace-offer-draft-tool.js +1 -1
- package/dist/agents/tools/mining-tool.js +1 -1
- package/dist/agents/tools/session-status-tool.js +1 -1
- package/dist/agents/tools/wallet-action-tool.js +172 -36
- package/dist/agents/tools/wallet-skill-policy.js +65 -23
- package/dist/agents/tools/wallet-tool.js +7 -11
- package/dist/auto-reply/reply/directive-handling.fast-lane.js +2 -1
- package/dist/auto-reply/reply/directive-handling.impl.js +2 -1
- package/dist/auto-reply/reply/directive-handling.model.js +2 -1
- package/dist/auto-reply/reply/directive-handling.persist.js +2 -2
- package/dist/auto-reply/reply/get-reply-directives-apply.js +2 -0
- package/dist/auto-reply/reply/get-reply-inline-actions.js +25 -1
- package/dist/auto-reply/reply/model-selection.js +7 -4
- package/dist/auto-reply/reply/session-reset-model.js +4 -4
- package/dist/brand.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/channel-web.js +2 -2
- package/dist/cli/gateway-cli/run.js +8 -0
- package/dist/cli/program/command-registry.js +1 -1
- package/dist/cli/program/register.onboard.js +2 -3
- package/dist/cli/program/register.wallet.js +16 -123
- package/dist/cli/providers-cli.js +1 -1
- package/dist/cli/sat-cli.js +129 -2
- package/dist/cli/update-cli/update-command.js +260 -11
- package/dist/commands/auth-choice.apply.api-providers.js +3 -3
- package/dist/commands/doctor-config-flow.js +1 -1
- package/dist/commands/doctor-legacy-config.js +2 -13
- package/dist/commands/model-picker.js +6 -6
- package/dist/commands/models/auth.js +1 -1
- package/dist/commands/onboard-auth.config-gateways.js +1 -1
- package/dist/commands/onboard-auth.credentials.js +32 -8
- package/dist/commands/onboard-non-interactive/local/wallet-config.js +28 -27
- package/dist/commands/onboard-non-interactive/local.js +5 -1
- package/dist/commands/wallet.js +568 -1911
- package/dist/config/config.js +2 -2
- package/dist/config/io.js +64 -2
- package/dist/config/schema.help.js +8 -7
- package/dist/config/schema.labels.js +5 -4
- package/dist/config/zod-schema.agent-runtime.js +1 -0
- package/dist/config/zod-schema.js +5 -0
- package/dist/control-ui/assets/{app-DLil9VO1.js → app-bR-fO5ty.js} +1511 -1555
- package/dist/control-ui/assets/{config-CU5Zi8Dh.js → config-LeImukCW.js} +10 -10
- package/dist/control-ui/assets/{federation-D10Q4eP_.js → federation-DgA9e-Pn.js} +364 -422
- package/dist/control-ui/assets/{index-DdE_NIXo.js → index-ckCxHwjy.js} +3 -3
- package/dist/control-ui/assets/{mining-BdhMn18r.js → mining-BgHFh0ei.js} +134 -114
- package/dist/control-ui/assets/mining-commit-DFpB_4JN.js +2 -0
- package/dist/control-ui/assets/{open-external-url-DwSiwMPl.js → open-external-url-ulF1B-sA.js} +3 -3
- package/dist/control-ui/assets/{providers-QMn4w2_f.js → providers-CIx9fxc6.js} +2 -2
- package/dist/control-ui/assets/{wallet-C2g294QT.js → wallet-DvStR_AT.js} +259 -377
- package/dist/control-ui/index.html +1 -1
- package/dist/control-ui/version.json +1 -1
- package/dist/daemon/systemd-system.js +56 -50
- package/dist/extensions/sat-mining/src/protocol-contract.js +43 -3
- package/dist/extensions/sat-mining/src/rpc-read.js +235 -67
- package/dist/extensions/sat-mining/src/sat-bond-layout.js +5 -2
- package/dist/extensions/sat-mining/src/signer-codec-manifest.js +406 -0
- package/dist/extensions/sat-mining/src/solana-submit.js +1038 -397
- package/dist/extensions/sat-mining/src/submission-ledger.js +349 -0
- package/dist/federation/auto-connect.js +98 -8
- package/dist/federation/marketplace-capability-adapter.js +33 -7
- package/dist/federation/marketplace-delivery-outbox.js +196 -0
- package/dist/federation/marketplace-delivery.js +351 -215
- package/dist/federation/marketplace-direct-payment.js +272 -141
- package/dist/federation/marketplace-escrow.js +607 -249
- package/dist/federation/marketplace-settlement-ledger.js +352 -0
- package/dist/federation/offers.js +9 -7
- package/dist/federation/peer-auth-v2.js +529 -0
- package/dist/gateway/a2a-http.js +425 -96
- package/dist/gateway/a2a-settlement.js +259 -153
- package/dist/gateway/a2a-task-store.js +524 -0
- package/dist/gateway/auth.js +38 -2
- package/dist/gateway/config-reload.js +46 -33
- package/dist/gateway/durable-capacity.js +31 -0
- package/dist/gateway/federation-http.js +540 -135
- package/dist/gateway/federation-marketplace-run-store.js +397 -0
- package/dist/gateway/federation-marketplace.js +535 -230
- package/dist/gateway/mutating-admin-rpc-rate-limit.js +5 -0
- package/dist/gateway/security-path.js +1 -1
- package/dist/gateway/server-http.js +1084 -1205
- package/dist/gateway/server-methods/models.js +1 -1
- package/dist/gateway/server-methods/secrets.js +40 -0
- package/dist/gateway/server-methods.js +1 -2
- package/dist/gateway/server-reload-handlers.js +196 -66
- package/dist/gateway/server-runtime-config.js +1 -1
- package/dist/gateway/server-secrets-runtime.js +288 -0
- package/dist/gateway/server.impl.js +73 -42
- package/dist/gateway/sessions-patch.js +3 -5
- package/dist/index.js +4 -2
- package/dist/infra/fasedhub.js +64 -1
- package/dist/infra/local-source-paired-update.js +538 -0
- package/dist/infra/restart.js +41 -10
- package/dist/infra/update-runner.js +96 -0
- package/dist/light-update-status.js +11 -11
- package/dist/memory/backend-config.js +2 -1
- package/dist/memory/session-files.js +16 -2
- package/dist/plugin-sdk/{accounts-DxblobYM.js → accounts-Brn3-uWN.js} +1 -1
- package/dist/plugin-sdk/{actions-D4UNimWa.js → actions-DRu135h0.js} +2 -2
- package/dist/plugin-sdk/{active-listener-CFuy106s.js → active-listener-B_NMtgPL.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-Bwi2Oq03.js → audio-preflight-BYxAt775.js} +27 -27
- package/dist/plugin-sdk/{audit-Cs0K7LBp.js → audit-C5d2z5U1.js} +1 -1
- package/dist/plugin-sdk/{channel-access-D5aHoTY8.js → channel-access-CcFRdRPO.js} +1 -1
- package/dist/plugin-sdk/{channel-access-configure-Dvch9mMQ.js → channel-access-configure-DaI5wevh.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-B0FUGc5A.js → chunk-CyoyqpbG.js} +1 -1
- package/dist/plugin-sdk/{chunk-items-DzT4L4Ty.js → chunk-items-DIRHG2gJ.js} +1 -1
- package/dist/plugin-sdk/command-status.d.ts +2 -2
- package/dist/plugin-sdk/command-status.js +27 -27
- package/dist/plugin-sdk/{commands-registry-DmDRhRAU.js → commands-registry-BfqdEWdF.js} +2 -2
- package/dist/plugin-sdk/{common-CfUOowOp.js → common-HCcXU-NR.js} +1 -1
- package/dist/plugin-sdk/{config-mxULv0fQ.js → config-DlWVeLFB.js} +7113 -6877
- package/dist/plugin-sdk/{config-schema-BrkmtFxB.js → config-schema-BOT7kHb6.js} +6779 -3696
- package/dist/plugin-sdk/device-pair.d.ts +1 -1
- package/dist/plugin-sdk/discord.d.ts +6 -6
- package/dist/plugin-sdk/discord.js +19 -19
- package/dist/plugin-sdk/file-lock.js +35 -4
- package/dist/plugin-sdk/{filesystem-manager-ZoHU8oA7.js → filesystem-manager-DoI8IBNF.js} +1 -1
- package/dist/plugin-sdk/{group-mentions-BHRff6j8.d.ts → group-mentions-q3hUTCt7.d.ts} +1 -1
- package/dist/plugin-sdk/{handle-action-DbVCF9HZ.js → handle-action-hvwapMKg.js} +13 -13
- package/dist/plugin-sdk/{helpers-BXbdgs5H.js → helpers-DMBU4oTo.js} +1 -1
- package/dist/plugin-sdk/{image-ops-D7jPxaph.js → image-ops-DQi0n_Tt.js} +1 -1
- package/dist/plugin-sdk/index.d.ts +21 -39
- package/dist/plugin-sdk/index.js +29 -29
- package/dist/plugin-sdk/{login-BRxww6nv.js → login-Ca583Okc.js} +3 -3
- package/dist/plugin-sdk/{login-qr-DJXsk9XH.js → login-qr-CGciBSNP.js} +3 -3
- package/dist/plugin-sdk/{manager-Y2S_5IlI.js → manager-BegWxNYX.js} +4 -4
- package/dist/plugin-sdk/{markdown-tables-DHLFQqaF.js → markdown-tables-DCOXEUfZ.js} +1 -1
- package/dist/plugin-sdk/{media-Czo4carg.js → media-CAdQF5TG.js} +47 -47
- package/dist/plugin-sdk/{memory-search-DTjIMw8J.js → memory-search-CrFPOeTH.js} +4 -1
- package/dist/plugin-sdk/{monitor-M_ta2lMc.js → monitor-BCFDaqJ-.js} +31 -31
- package/dist/plugin-sdk/{monitor-wYVncM9w.js → monitor-BgbjRiPM.js} +32 -32
- package/dist/plugin-sdk/{openresponses-http-B2GmeSt4.js → openresponses-http-DFf87SMM.js} +27 -27
- package/dist/plugin-sdk/{optional-runtime-dependency-DdMbxS24.js → optional-runtime-dependency-0dznm3ZO.js} +1 -1
- package/dist/plugin-sdk/{outbound-Db8mRN6P.js → outbound-BgVDdHxx.js} +6 -6
- package/dist/plugin-sdk/{outbound-attachment-BqFjcypb.js → outbound-attachment-QqTnIhZL.js} +2 -2
- package/dist/plugin-sdk/{pairing-message-B3bHYGaw.d.ts → pairing-message-CS-9BHug.d.ts} +2 -2
- package/dist/plugin-sdk/{pairing-message-B3GC_7CD.js → pairing-message-D0CoLHRJ.js} +1 -1
- package/dist/plugin-sdk/{pairing-store-CQikgIbw.js → pairing-store-BChahgI2.js} +2 -2
- package/dist/plugin-sdk/{pi-model-discovery-CY3m5zJP.js → pi-model-discovery-BX_JLcEJ.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-runtime-DSh1T2pn.js → pi-model-discovery-runtime-DxTMz_XF.js} +2 -2
- package/dist/plugin-sdk/provider-web-search-config-contract.d.ts +2 -2
- package/dist/plugin-sdk/{pw-ai-AFUqn-tQ.js → pw-ai-natjh3rm.js} +3 -3
- package/dist/plugin-sdk/{qmd-manager-DSyx77KY.js → qmd-manager-CgRaTxUq.js} +1 -1
- package/dist/plugin-sdk/{query-expansion-CAI2kKLQ.js → query-expansion-BG3FgzF7.js} +14 -3
- package/dist/plugin-sdk/{replies-Fzh9PhXl.js → replies-ChYo5ZQM.js} +2 -2
- package/dist/plugin-sdk/{resolve-outbound-target-KpF3co6T.js → resolve-outbound-target-D-KGgHJZ.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-CDl74O19.js → resolve-route-C8tvQm8Z.js} +1 -1
- package/dist/plugin-sdk/{retry-policy-D4uiqUOG.js → retry-policy-C6SjKjQA.js} +1 -1
- package/dist/plugin-sdk/{runtime-Bb6KRnCC.js → runtime-2B9_WKoI.js} +8 -3
- package/dist/plugin-sdk/{runtime-dependency-DLDmB94f.js → runtime-dependency-DczkvPxn.js} +2 -2
- package/dist/plugin-sdk/sat-runtime.d.ts +549 -309
- package/dist/plugin-sdk/sat-runtime.js +29 -29
- package/dist/plugin-sdk/{send-C4k4JuJN.js → send-B6KkGKZD.js} +6 -6
- package/dist/plugin-sdk/{send-D-uDKGIq.js → send-CFzGKJXo.js} +6 -6
- package/dist/plugin-sdk/{send-Du8ykP1k.js → send-DCO441U7.js} +8 -8
- package/dist/plugin-sdk/{send-5nFktR1n.js → send-gDoGA-7e.js} +5 -5
- package/dist/plugin-sdk/{send-Bfzf11VY.js → send-q9HXrSwK.js} +7 -7
- package/dist/plugin-sdk/{session-CS-Td9EM.js → session-DHD4ZKyG.js} +2 -2
- package/dist/plugin-sdk/{skill-commands-CFAlXWHk.js → skill-commands-FKEPLS7T.js} +201 -26
- package/dist/plugin-sdk/{slack-CxE1mfzj.js → slack-BUTt8cxK.js} +39 -39
- package/dist/plugin-sdk/{slack-actions-BcMkNv1Z.js → slack-actions-DhbMcp8M.js} +11 -11
- package/dist/plugin-sdk/slack.d.ts +6 -6
- package/dist/plugin-sdk/slack.js +9 -9
- package/dist/plugin-sdk/{sticker-cache-CGzGWu00.js → sticker-cache-D0wHVqjt.js} +3 -3
- package/dist/plugin-sdk/{tables-bFXyRpkx.js → tables-B3jr0Pvq.js} +1 -1
- package/dist/plugin-sdk/{targets-DH7a9lKB.js → targets-CtSbTxYX.js} +1 -1
- package/dist/plugin-sdk/{telegram-actions-DaEcYQ8r.js → telegram-actions-CC_qN4v0.js} +30 -30
- package/dist/plugin-sdk/telegram.d.ts +6 -6
- package/dist/plugin-sdk/telegram.js +8 -8
- package/dist/plugin-sdk/{thread-bindings.lifecycle-CgOvvdw8.js → thread-bindings.lifecycle-QbkNl-m6.js} +3 -3
- package/dist/plugin-sdk/{thread-bindings.state-CQpk44Hq.js → thread-bindings.state-D9hg_M1c.js} +2 -2
- package/dist/plugin-sdk/tmp-fased-dir-xOTGlzBE.d.ts +486 -0
- package/dist/plugin-sdk/{types-vcJrC_uv.d.ts → types-C3avNytw.d.ts} +3 -4
- package/dist/plugin-sdk/{types-DyhXnYUr.d.ts → types-D0kDG8l0.d.ts} +3 -2
- package/dist/plugin-sdk/{types-DFAW-n1J.d.ts → types-DWfbSAaM.d.ts} +2 -2
- package/dist/plugin-sdk/{types.plugin-_fbu40Re.d.ts → types.plugin-BcSBq42x.d.ts} +8 -3
- package/dist/plugin-sdk/{web-CInY-lCv.js → web-BXsJ1vqe.js} +32 -32
- package/dist/plugin-sdk/{whatsapp-actions-BtSc2CBv.js → whatsapp-actions-Bj_rOncr.js} +13 -13
- package/dist/plugin-sdk/{whatsapp-heartbeat-Bg9TuYzl.js → whatsapp-heartbeat-B1WHkJIg.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-C4DGFkOd.js → wsl-J-HscWxS.js} +3 -3
- package/dist/plugin-sdk/{zod-schema.providers-core-BEbNizPe.d.ts → zod-schema.providers-core-CIzCjXH9.d.ts} +61 -61
- package/dist/providers/refresh.js +1 -1
- package/dist/providers/registry.js +1 -1
- package/dist/secrets/apply.js +1 -1
- package/dist/secrets/runtime.js +1 -1
- package/dist/wallet/external-submission-ledger.js +376 -0
- package/dist/wallet/legacy-embedded-keystore.js +40 -0
- package/dist/wallet/local-socket-signer-archive.js +30 -0
- package/dist/wallet/local-socket-signer-lifecycle.js +97 -0
- package/dist/wallet/local-socket-signer-policy.js +166 -0
- package/dist/wallet/local-socket-signer-protocol.js +561 -118
- package/dist/wallet/native-signer-wallet-id.js +25 -0
- package/dist/wallet/providers/alchemy-adapter.js +3 -0
- package/dist/wallet/providers/local-socket-signer-adapter.js +380 -105
- package/dist/wallet/providers/turnkey-adapter.js +292 -34
- package/dist/wallet/providers/wallet-standard-adapter.js +100 -0
- package/dist/wallet/signer-network-admin.js +184 -0
- package/dist/wallet/signer-protocol-v2.generated.js +90 -0
- package/dist/wallet/solana-bond-signing.js +157 -69
- package/dist/wallet/solana-reviewed-transaction.js +375 -0
- package/dist/wallet/solana-swap.js +520 -64
- package/dist/wallet/solana-transaction-inspection.js +106 -4
- package/dist/wallet/solana-trigger.js +658 -320
- package/dist/wallet/turnkey-reviewed-state.js +370 -0
- package/dist/wallet/wallet-approval-auth.js +17 -28
- package/dist/wallet/wallet-atomic-state.js +53 -0
- package/dist/wallet/wallet-canary.js +0 -1
- package/dist/wallet/wallet-inbound-events.js +16 -11
- package/dist/wallet/wallet-policy-simulation.js +1 -1
- package/dist/wallet/wallet-policy.js +90 -36
- package/dist/wallet/wallet-provider-capabilities.js +28 -4
- package/dist/wallet/wallet-provider-registry.js +57 -44
- package/dist/wallet/wallet-provider-resolver.js +62 -63
- package/dist/wallet/wallet-runtime-config.js +28 -41
- package/dist/wallet/wallet-secrets-store.js +22 -0
- package/dist/wallet/wallet-send-approvals.js +1891 -589
- package/dist/wallet/wallet-send-execution-ledger.js +292 -0
- package/dist/wallet/wallet-settlement-links.js +14 -13
- package/dist/wallet/wallet-standard-review.js +353 -0
- package/dist/wallet/wallet-status.js +0 -9
- package/dist/wallet/wallet-task-ledger.js +16 -2
- package/dist/web/auto-reply/heartbeat-runner.js +1 -1
- package/dist/web/auto-reply/monitor.js +2 -2
- package/dist/wizard/host-security-capability.js +14 -23
- package/dist/wizard/onboarding.finalize.js +63 -184
- package/dist/wizard/onboarding.host-security.js +117 -1367
- package/dist/wizard/onboarding.js +172 -217
- package/dist/wizard/onboarding.wallet.js +232 -785
- 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/index.ts +498 -153
- package/extensions/sat-mining/package.json +1 -1
- package/extensions/sat-mining/signer-codec-schema.v1.json +374 -0
- package/extensions/sat-mining/src/audit-store.ts +50 -5
- package/extensions/sat-mining/src/claim-service.ts +85 -14
- package/extensions/sat-mining/src/config.ts +9 -0
- package/extensions/sat-mining/src/cycle-progress.ts +16 -8
- package/extensions/sat-mining/src/epoch-service.ts +9 -5
- package/extensions/sat-mining/src/gateway-runner.ts +21 -1
- package/extensions/sat-mining/src/protocol-contract.ts +45 -1
- package/extensions/sat-mining/src/recovery-service.ts +312 -0
- package/extensions/sat-mining/src/round-watcher.ts +391 -81
- package/extensions/sat-mining/src/rpc-read.ts +330 -89
- package/extensions/sat-mining/src/runtime.ts +14 -0
- package/extensions/sat-mining/src/sat-bond-layout.ts +6 -0
- package/extensions/sat-mining/src/signer-codec-manifest.ts +429 -0
- package/extensions/sat-mining/src/solana-submit.ts +1199 -428
- package/extensions/sat-mining/src/submission-ledger.ts +433 -0
- 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/install.sh +4955 -0
- package/package.json +23 -5
- package/scripts/fased-host-updater.mjs +1421 -0
- package/scripts/fased-host-updaterctl.mjs +186 -0
- package/scripts/fased-managed-service.sh +36 -0
- package/scripts/fased-managed-updater.mjs +3065 -156
- package/scripts/fased-signer-enroll-hosting.sh +275 -0
- package/scripts/fased-signer-network-hosting.sh +143 -0
- package/scripts/fased-signer-owner-policy.mjs +1430 -0
- package/scripts/fased-signer-policy-hosting.sh +50 -0
- package/scripts/fased-signer-policy-local.sh +26 -0
- package/scripts/hosted-release-manifest.mjs +185 -0
- package/scripts/install-fased-signerd.sh +183 -108
- package/scripts/install-managed-runtime.mjs +212 -10
- package/scripts/managed-runtime-layout.mjs +75 -3
- package/scripts/migrate-hosted-signer-v2.mjs +58 -0
- package/scripts/start-managed.sh +169 -360
- package/dist/control-ui/assets/mining-commit-R-6nu87p.js +0 -2
- package/dist/plugin-sdk/tmp-fased-dir-CS6zsYEE.d.ts +0 -77
- package/dist/wallet/local-socket-signer-broker.js +0 -224
- package/dist/wallet/local-socket-signer-custody.js +0 -42
- package/dist/wallet/providers/embedded-keystore-adapter.js +0 -402
- package/dist/wallet/providers/privy-adapter.js +0 -80
- package/dist/wallet/wallet-custody.js +0 -1836
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as FasedAgentPluginApi } from "./types-
|
|
1
|
+
import { _ as FasedAgentPluginApi } from "./types-DWfbSAaM.js";
|
|
2
2
|
import { a as listDevicePairing, i as approveDevicePairing, n as resolveTailnetHostWithRunner, r as resolveGatewayBindUrl, t as runPluginCommandWithTimeout } from "./run-command-i_W6EFb1.js";
|
|
3
3
|
export { type FasedAgentPluginApi, approveDevicePairing, listDevicePairing, resolveGatewayBindUrl, resolveTailnetHostWithRunner, runPluginCommandWithTimeout };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as DEFAULT_ACCOUNT_ID, r as normalizeAccountId } from "./session-key--_1zVBRB.js";
|
|
2
|
-
import { At as FasedAgentConfig, F as ChannelAccountSnapshot, J as ChannelMessageActionAdapter, it as ChannelStatusIssue, n as ChannelPlugin, on as DiscordAccountConfig, r as ChannelOnboardingAdapter, u as ChannelMessageActionName, ut as getChatChannelMeta } from "./types.plugin-
|
|
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, Zt as collectDiscordAuditChannelIds, _ 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-
|
|
6
|
-
import { _ as buildTokenChannelStatusSummary, i as resolveDiscordGroupToolPolicy, r as resolveDiscordGroupRequireMention } from "./group-mentions-
|
|
7
|
-
import { t as DiscordConfigSchema } from "./zod-schema.providers-core-
|
|
2
|
+
import { At as FasedAgentConfig, F as ChannelAccountSnapshot, J as ChannelMessageActionAdapter, it as ChannelStatusIssue, n as ChannelPlugin, on as DiscordAccountConfig, r as ChannelOnboardingAdapter, u as ChannelMessageActionName, ut as getChatChannelMeta } from "./types.plugin-BcSBq42x.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, Zt as collectDiscordAuditChannelIds, _ as FasedAgentPluginApi, qt as listTelegramDirectoryGroupsFromConfig, t as PluginRuntime, yn as createActionGate, zt as resolveAllowlistProviderRuntimeGroupPolicy } from "./types-DWfbSAaM.js";
|
|
4
|
+
import { D as normalizeE164 } from "./types-C3avNytw.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-CS-9BHug.js";
|
|
6
|
+
import { _ as buildTokenChannelStatusSummary, i as resolveDiscordGroupToolPolicy, r as resolveDiscordGroupRequireMention } from "./group-mentions-q3hUTCt7.js";
|
|
7
|
+
import { t as DiscordConfigSchema } from "./zod-schema.providers-core-CIzCjXH9.js";
|
|
8
8
|
|
|
9
9
|
//#region src/discord/accounts.d.ts
|
|
10
10
|
type ResolvedDiscordAccount = {
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { Ht as resolveDiscordGroupRequireMention, Nn as getChatChannelMeta, Ut as resolveDiscordGroupToolPolicy, _t as listWhatsAppDirectoryPeersFromConfig, dt as listDiscordDirectoryPeersFromConfig, ft as listSlackDirectoryGroupsFromConfig, gt as listWhatsAppDirectoryGroupsFromConfig, ht as listTelegramDirectoryPeersFromConfig, mt as listTelegramDirectoryGroupsFromConfig, pt as listSlackDirectoryPeersFromConfig, ut as listDiscordDirectoryGroupsFromConfig } from "./runtime-
|
|
1
|
+
import { Ht as resolveDiscordGroupRequireMention, Nn as getChatChannelMeta, Ut as resolveDiscordGroupToolPolicy, _t as listWhatsAppDirectoryPeersFromConfig, dt as listDiscordDirectoryPeersFromConfig, ft as listSlackDirectoryGroupsFromConfig, gt as listWhatsAppDirectoryGroupsFromConfig, ht as listTelegramDirectoryPeersFromConfig, mt as listTelegramDirectoryGroupsFromConfig, pt as listSlackDirectoryPeersFromConfig, ut as listDiscordDirectoryGroupsFromConfig } from "./runtime-2B9_WKoI.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 } from "./utils-CYk9EKoq.js";
|
|
6
|
-
import {
|
|
6
|
+
import { d as DiscordConfigSchema } from "./config-DlWVeLFB.js";
|
|
7
7
|
import "./agent-scope-CCjfjKoO.js";
|
|
8
8
|
import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId } from "./session-key-HSJ2KQTc.js";
|
|
9
9
|
import { a as resolveDiscordAccount, i as resolveDefaultDiscordAccountId, n as listDiscordAccountIds } from "./accounts-RHZyaB73.js";
|
|
10
10
|
import "./accounts-CuqIKU8X.js";
|
|
11
11
|
import "./logger-BbFvCoKk.js";
|
|
12
12
|
import "./exec-DQ8j4Fm3.js";
|
|
13
|
-
import "./accounts-
|
|
13
|
+
import "./accounts-Brn3-uWN.js";
|
|
14
14
|
import { i as normalizeDiscordSlug } from "./allow-list-DyAxs4yw.js";
|
|
15
15
|
import "./redact-Bm8vu_ju.js";
|
|
16
16
|
import "./github-copilot-token-CUK__1s1.js";
|
|
17
17
|
import "./retry-DstNBhDW.js";
|
|
18
18
|
import "./paths-CTZ2RS_E.js";
|
|
19
|
-
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 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-D0CoLHRJ.js";
|
|
20
20
|
import "./ssrf-fG4UHKBw.js";
|
|
21
21
|
import "./fetch-guard-CeG6u6ld.js";
|
|
22
|
-
import { A as resolveDefaultGroupPolicy, D as formatDocsLink, _ as setAccountGroupPolicyForChannel, a as noteChannelLookupFailure, b as setOnboardingChannelEnabled, d as promptLegacyChannelAllowFrom, g as resolveOnboardingAccountId, h as resolveAccountIdForConfigure, j as resolveOpenProviderRuntimeGroupPolicy, k as resolveAllowlistProviderRuntimeGroupPolicy, l as patchChannelConfigForAccount, m as promptSingleChannelToken, n as applySingleTokenPromptResult, o as noteChannelLookupSummary, s as parseMentionOrPrefixedId, w as buildTokenChannelStatusSummary, y as setLegacyChannelDmPolicyWithAllowFrom } from "./helpers-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./optional-runtime-dependency-
|
|
25
|
-
import "./image-ops-
|
|
26
|
-
import { d as readStringParam, n as createActionGate } from "./common-
|
|
22
|
+
import { A as resolveDefaultGroupPolicy, D as formatDocsLink, _ as setAccountGroupPolicyForChannel, a as noteChannelLookupFailure, b as setOnboardingChannelEnabled, d as promptLegacyChannelAllowFrom, g as resolveOnboardingAccountId, h as resolveAccountIdForConfigure, j as resolveOpenProviderRuntimeGroupPolicy, k as resolveAllowlistProviderRuntimeGroupPolicy, l as patchChannelConfigForAccount, m as promptSingleChannelToken, n as applySingleTokenPromptResult, o as noteChannelLookupSummary, s as parseMentionOrPrefixedId, w as buildTokenChannelStatusSummary, y as setLegacyChannelDmPolicyWithAllowFrom } from "./helpers-DMBU4oTo.js";
|
|
23
|
+
import "./chunk-CyoyqpbG.js";
|
|
24
|
+
import "./optional-runtime-dependency-0dznm3ZO.js";
|
|
25
|
+
import "./image-ops-DQi0n_Tt.js";
|
|
26
|
+
import { d as readStringParam, n as createActionGate } from "./common-HCcXU-NR.js";
|
|
27
27
|
import "./path-alias-guards-DjgDArrp.js";
|
|
28
28
|
import "./fs-safe-g4g7GT02.js";
|
|
29
|
-
import "./
|
|
30
|
-
import "./
|
|
29
|
+
import "./media-CAdQF5TG.js";
|
|
30
|
+
import "./markdown-tables-DCOXEUfZ.js";
|
|
31
31
|
import "./fetch-BtmoPIlf.js";
|
|
32
|
-
import "./thread-bindings.state-
|
|
32
|
+
import "./thread-bindings.state-D9hg_M1c.js";
|
|
33
33
|
import "./directory-live-CSuYxdwk.js";
|
|
34
|
-
import { t as parseDiscordTarget } from "./targets-
|
|
34
|
+
import { t as parseDiscordTarget } from "./targets-CtSbTxYX.js";
|
|
35
35
|
import "./render-e7fENCYH.js";
|
|
36
|
-
import "./tables-
|
|
36
|
+
import "./tables-B3jr0Pvq.js";
|
|
37
37
|
import { i as resolveEnabledConfiguredAccountId, n as asString, t as appendMatchMetadata } from "./shared-CBgp_GBw.js";
|
|
38
38
|
import "./channel-core-CFRs8LPy.js";
|
|
39
|
-
import "./send-
|
|
40
|
-
import "./retry-policy-
|
|
41
|
-
import { n as collectDiscordAuditChannelIds } from "./audit-
|
|
42
|
-
import { t as configureChannelAccessWithAllowlist } from "./channel-access-configure-
|
|
43
|
-
import { a as unbindThreadBindingsBySessionKey, n as listThreadBindingsBySessionKey, t as autoBindSpawnedDiscordSubagent } from "./thread-bindings.lifecycle-
|
|
39
|
+
import "./send-DCO441U7.js";
|
|
40
|
+
import "./retry-policy-C6SjKjQA.js";
|
|
41
|
+
import { n as collectDiscordAuditChannelIds } from "./audit-C5d2z5U1.js";
|
|
42
|
+
import { t as configureChannelAccessWithAllowlist } from "./channel-access-configure-DaI5wevh.js";
|
|
43
|
+
import { a as unbindThreadBindingsBySessionKey, n as listThreadBindingsBySessionKey, t as autoBindSpawnedDiscordSubagent } from "./thread-bindings.lifecycle-QbkNl-m6.js";
|
|
44
44
|
|
|
45
45
|
//#region src/channels/plugins/normalize/discord.ts
|
|
46
46
|
function normalizeDiscordMessagingTarget(raw) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isPidAlive } from "../shared/pid-alive.js";
|
|
2
2
|
import { resolveProcessScopedMap } from "../shared/process-scoped-map.js";
|
|
3
|
+
import syncFs from "node:fs";
|
|
3
4
|
import path from "node:path";
|
|
4
5
|
import fs from "node:fs/promises";
|
|
5
6
|
|
|
@@ -18,14 +19,33 @@ async function readLockPayload(lockPath) {
|
|
|
18
19
|
if (typeof parsed.pid !== "number" || typeof parsed.createdAt !== "string") {
|
|
19
20
|
return null;
|
|
20
21
|
}
|
|
22
|
+
const startTime = typeof parsed.startTime === "number" && Number.isSafeInteger(parsed.startTime) ? parsed.startTime : undefined;
|
|
21
23
|
return {
|
|
22
24
|
pid: parsed.pid,
|
|
23
|
-
createdAt: parsed.createdAt
|
|
25
|
+
createdAt: parsed.createdAt,
|
|
26
|
+
startTime
|
|
24
27
|
};
|
|
25
28
|
} catch {
|
|
26
29
|
return null;
|
|
27
30
|
}
|
|
28
31
|
}
|
|
32
|
+
function readLinuxProcessStartTime(pid) {
|
|
33
|
+
if (process.platform !== "linux") {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
try {
|
|
37
|
+
const raw = syncFs.readFileSync(`/proc/${pid}/stat`, "utf8").trim();
|
|
38
|
+
const closeParen = raw.lastIndexOf(")");
|
|
39
|
+
if (closeParen < 0) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
const fields = raw.slice(closeParen + 1).trim().split(/\s+/u);
|
|
43
|
+
const startTime = Number.parseInt(fields[19] ?? "", 10);
|
|
44
|
+
return Number.isSafeInteger(startTime) ? startTime : null;
|
|
45
|
+
} catch {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
29
49
|
async function resolveNormalizedFilePath(filePath) {
|
|
30
50
|
const resolved = path.resolve(filePath);
|
|
31
51
|
const dir = path.dirname(resolved);
|
|
@@ -39,8 +59,17 @@ async function resolveNormalizedFilePath(filePath) {
|
|
|
39
59
|
}
|
|
40
60
|
async function isStaleLock(lockPath, staleMs) {
|
|
41
61
|
const payload = await readLockPayload(lockPath);
|
|
42
|
-
if (payload?.pid
|
|
43
|
-
|
|
62
|
+
if (payload?.pid) {
|
|
63
|
+
if (!isPidAlive(payload.pid)) {
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
if (payload.startTime !== undefined) {
|
|
67
|
+
const currentStartTime = readLinuxProcessStartTime(payload.pid);
|
|
68
|
+
if (currentStartTime !== null) {
|
|
69
|
+
return currentStartTime !== payload.startTime;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return false;
|
|
44
73
|
}
|
|
45
74
|
if (payload?.createdAt) {
|
|
46
75
|
const createdAt = Date.parse(payload.createdAt);
|
|
@@ -83,9 +112,11 @@ async function acquireFileLock(filePath, options) {
|
|
|
83
112
|
for (let attempt = 0; attempt < attempts; attempt += 1) {
|
|
84
113
|
try {
|
|
85
114
|
const handle = await fs.open(lockPath, "wx");
|
|
115
|
+
const startTime = readLinuxProcessStartTime(process.pid);
|
|
86
116
|
await handle.writeFile(JSON.stringify({
|
|
87
117
|
pid: process.pid,
|
|
88
|
-
createdAt: new Date().toISOString()
|
|
118
|
+
createdAt: new Date().toISOString(),
|
|
119
|
+
...startTime !== null ? { startTime } : {}
|
|
89
120
|
}, null, 2), "utf8");
|
|
90
121
|
HELD_LOCKS.set(normalizedFile, {
|
|
91
122
|
count: 1,
|
|
@@ -5,7 +5,7 @@ import "./utils-CYk9EKoq.js";
|
|
|
5
5
|
import { l as resolveAgentWorkspaceDir } from "./agent-scope-CCjfjKoO.js";
|
|
6
6
|
import "./logger-BbFvCoKk.js";
|
|
7
7
|
import "./exec-DQ8j4Fm3.js";
|
|
8
|
-
import { t as resolveMemorySearchConfig } from "./memory-search-
|
|
8
|
+
import { t as resolveMemorySearchConfig } from "./memory-search-CrFPOeTH.js";
|
|
9
9
|
import { c as normalizeExtraMemoryPaths, l as normalizeRelPath, n as chunkMarkdown, o as isMemoryPath, s as listMemoryFiles, t as buildFileEntry } from "./internal-CG_nHo-2.js";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import fs from "node:fs/promises";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as ChannelGroupContext, it as ChannelStatusIssue, xn as GroupToolPolicyConfig } from "./types.plugin-
|
|
1
|
+
import { U as ChannelGroupContext, it as ChannelStatusIssue, xn as GroupToolPolicyConfig } from "./types.plugin-BcSBq42x.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin-sdk/status-helpers.d.ts
|
|
4
4
|
type RuntimeLifecycleSnapshot = {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./runtime-
|
|
1
|
+
import "./runtime-2B9_WKoI.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-DlWVeLFB.js";
|
|
7
7
|
import "./agent-scope-CCjfjKoO.js";
|
|
8
8
|
import { t as createDiscordActionGate } from "./accounts-RHZyaB73.js";
|
|
9
9
|
import "./accounts-CuqIKU8X.js";
|
|
10
10
|
import "./logger-BbFvCoKk.js";
|
|
11
11
|
import "./exec-DQ8j4Fm3.js";
|
|
12
|
-
import "./accounts-
|
|
12
|
+
import "./accounts-Brn3-uWN.js";
|
|
13
13
|
import "./allow-list-DyAxs4yw.js";
|
|
14
14
|
import "./redact-Bm8vu_ju.js";
|
|
15
15
|
import "./github-copilot-token-CUK__1s1.js";
|
|
@@ -17,23 +17,23 @@ import "./retry-DstNBhDW.js";
|
|
|
17
17
|
import "./paths-CTZ2RS_E.js";
|
|
18
18
|
import "./ssrf-fG4UHKBw.js";
|
|
19
19
|
import "./fetch-guard-CeG6u6ld.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./optional-runtime-dependency-
|
|
22
|
-
import "./image-ops-
|
|
23
|
-
import { a as jsonResult, c as readReactionParams, d as readStringParam, l as readStringArrayParam, o as parseAvailableTags, s as readNumberParam } from "./common-
|
|
20
|
+
import "./chunk-CyoyqpbG.js";
|
|
21
|
+
import "./optional-runtime-dependency-0dznm3ZO.js";
|
|
22
|
+
import "./image-ops-DQi0n_Tt.js";
|
|
23
|
+
import { a as jsonResult, c as readReactionParams, d as readStringParam, l as readStringArrayParam, o as parseAvailableTags, s as readNumberParam } from "./common-HCcXU-NR.js";
|
|
24
24
|
import "./path-alias-guards-DjgDArrp.js";
|
|
25
25
|
import "./fs-safe-g4g7GT02.js";
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
26
|
+
import "./media-CAdQF5TG.js";
|
|
27
|
+
import "./markdown-tables-DCOXEUfZ.js";
|
|
28
28
|
import "./fetch-BtmoPIlf.js";
|
|
29
29
|
import { t as assertMediaNotDataUrl } from "./sandbox-paths-Dx2lUqCu.js";
|
|
30
30
|
import { i as withNormalizedTimestamp } from "./date-time-uUevHscU.js";
|
|
31
31
|
import "./directory-live-CSuYxdwk.js";
|
|
32
|
-
import { n as resolveDiscordChannelId } from "./targets-
|
|
32
|
+
import { n as resolveDiscordChannelId } from "./targets-CtSbTxYX.js";
|
|
33
33
|
import "./render-e7fENCYH.js";
|
|
34
|
-
import "./tables-
|
|
35
|
-
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, D as pinMessageDiscord, E as listThreadsDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, P as fetchChannelInfoDiscord, R as kickMemberDiscord, S as deleteMessageDiscord, T as listPinsDiscord, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, a as removeReactionDiscord, et as hasAnyGuildPermissionDiscord, g as sendMessageDiscord, i as removeOwnReactionsDiscord, j as addRoleDiscord, k as searchMessagesDiscord, n as fetchReactionsDiscord, o as sendDiscordComponentMessage, p as readDiscordComponentSpec, q as deleteChannelDiscord, r as reactMessageDiscord, v as sendStickerDiscord, w as fetchMessageDiscord, x as createThreadDiscord, y as sendVoiceMessageDiscord, z as listGuildChannelsDiscord } from "./send-
|
|
36
|
-
import "./retry-policy-
|
|
34
|
+
import "./tables-B3jr0Pvq.js";
|
|
35
|
+
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, D as pinMessageDiscord, E as listThreadsDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, P as fetchChannelInfoDiscord, R as kickMemberDiscord, S as deleteMessageDiscord, T as listPinsDiscord, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, a as removeReactionDiscord, et as hasAnyGuildPermissionDiscord, g as sendMessageDiscord, i as removeOwnReactionsDiscord, j as addRoleDiscord, k as searchMessagesDiscord, n as fetchReactionsDiscord, o as sendDiscordComponentMessage, p as readDiscordComponentSpec, q as deleteChannelDiscord, r as reactMessageDiscord, v as sendStickerDiscord, w as fetchMessageDiscord, x as createThreadDiscord, y as sendVoiceMessageDiscord, z as listGuildChannelsDiscord } from "./send-DCO441U7.js";
|
|
36
|
+
import "./retry-policy-C6SjKjQA.js";
|
|
37
37
|
import { i as getPresence, t as getGateway } from "./gateway-registry-DZDsqicG.js";
|
|
38
38
|
import { PermissionFlagsBits } from "discord-api-types/v10";
|
|
39
39
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as formatTerminalLink } from "./utils-CYk9EKoq.js";
|
|
2
2
|
import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId } from "./session-key-HSJ2KQTc.js";
|
|
3
|
-
import { i as moveSingleAccountChannelSectionToDefaultAccount } from "./pairing-message-
|
|
3
|
+
import { i as moveSingleAccountChannelSectionToDefaultAccount } from "./pairing-message-D0CoLHRJ.js";
|
|
4
4
|
|
|
5
5
|
//#region src/config/runtime-group-policy.ts
|
|
6
6
|
function resolveRuntimeGroupPolicy(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as runExec } from "./exec-DQ8j4Fm3.js";
|
|
2
|
-
import { t as importOptionalRuntimeDependency } from "./optional-runtime-dependency-
|
|
2
|
+
import { t as importOptionalRuntimeDependency } from "./optional-runtime-dependency-0dznm3ZO.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as ChatType } from "./chat-type-CK5stkc4.js";
|
|
2
2
|
import { n as DEFAULT_ACCOUNT_ID, r as normalizeAccountId, t as resolveThreadSessionKeys } from "./session-key--_1zVBRB.js";
|
|
3
|
-
import { $ as ChannelPollContext, $t as MSTeamsReplyStyle, A as ChannelSecurityAdapter, An as SafeBinProfileFixture, At as FasedAgentConfig, B as ChannelCapabilities, C as ChannelLogoutResult, Cn as BlockStreamingCoalesceConfig, Ct as RuntimeEnv, D as ChannelResolveKind, Dn as MarkdownConfig, Dt as resolveIMessageAccount, E as ChannelPairingAdapter, Et as resolveDefaultIMessageAccountId, F as ChannelAccountSnapshot, G as ChannelId, H as ChannelDirectoryEntryKind, I as ChannelAccountState, J as ChannelMessageActionAdapter, K as ChannelLogSink, M as ChannelStatusAdapter, Mn as ReplyPayload, N as BaseProbeResult, Nn as CHANNEL_MESSAGE_ACTION_NAMES, O as ChannelResolveResult, On as MarkdownTableMode, P as BaseTokenResolution, Pt as ModelProviderConfig, Q as ChannelOutboundTargetMode, Qt as MSTeamsConfig, R as ChannelAgentTool, S as ChannelLogoutContext, T as ChannelOutboundContext, Tn as GroupPolicy, Tt as listIMessageAccountIds, U as ChannelGroupContext, V as ChannelDirectoryEntry, W as ChannelHeartbeatDeps, X as ChannelMessagingAdapter, Xt as SignalAccountConfig, Y as ChannelMessageActionContext, Z as ChannelMeta, Zt as MSTeamsChannelConfig, _ as ChannelGatewayContext, a as PromptAccountId, an as GoogleChatGroupConfig, at as ChannelStreamingAdapter, b as ChannelLoginWithQrStartResult, bn as GroupToolPolicyBySenderConfig, ct as ChannelThreadingToolContext, d as ChannelAuthAdapter, dt as OutboundDeliveryResult, en as MSTeamsTeamConfig, et as ChannelPollResult, f as ChannelCommandAdapter, g as ChannelGatewayAdapter, h as ChannelElevatedAdapter, i as ChannelOnboardingDmPolicy, in as GoogleChatDmConfig, it as ChannelStatusIssue, j as ChannelSetupAdapter, jn as GetReplyOptions, k as ChannelResolverAdapter, ln as ChunkMode, lt as ChannelToolSend, m as ChannelDirectoryAdapter, n as ChannelPlugin, nn as GoogleChatActionConfig, nt as ChannelSecurityDmPolicy, o as WizardPrompter, ot as ChannelThreadingAdapter, p as ChannelConfigAdapter, q as ChannelMentionAdapter, r as ChannelOnboardingAdapter, rn as GoogleChatConfig, rt as ChannelSetupInput, s as loadConfig, sn as DmConfig, st as ChannelThreadingContext, t as ChannelConfigSchema, tn as GoogleChatAccountConfig, tt as ChannelSecurityContext, u as ChannelMessageActionName, ut as getChatChannelMeta, v as ChannelGroupAdapter, w as ChannelOutboundAdapter, wn as DmPolicy, wt as ResolvedIMessageAccount, x as ChannelLoginWithQrWaitResult, xn as GroupToolPolicyConfig, y as ChannelHeartbeatAdapter, yn as PollInput, z as ChannelAgentToolFactory } from "./types.plugin-
|
|
4
|
-
import { $ as RealtimeVoiceBridge, $t as extensionForMime, A as ProviderPlugin, At as LineAccountConfig, B as GeneratedVideoAsset, Bt as resolveDefaultGroupPolicy, C as ProviderAuthContext, Cn as readStringParam, Ct as ImageGenerationSourceImage, D as ProviderCatalogContext, Dn as SessionEntry, Dt as normalizeAccountId$1, E as ProviderAuthResult, En as SessionAcpMeta, Et as listLineAccountIds, F as RealtimeTranscriptionProviderPlugin, Ft as formatLocationText, G as VideoGenerationProviderCapabilities, H as VideoGenerationMode, Ht as warnMissingProviderGroupPolicyFallbackOnce, I as RealtimeVoiceProviderPlugin, It as toLocationContext, J as VideoGenerationResolution, K as VideoGenerationProviderConfiguredContext, L as VideoGenerationProviderPlugin, M as ProviderPluginWizard, Mt as LineConfig, N as ProviderPluginWizardModelPicker, Nt as ResolvedLineAccount, O as ProviderCatalogOrder, On as SessionSystemPromptReport, Ot as resolveDefaultLineAccountId, P as ProviderPluginWizardSetup, Pt as NormalizedLocation, Qt as detectMime, Rt as GROUP_POLICY_BLOCKED_LABEL, S as PluginLogger, Sn as readReactionParams, St as ImageGenerationResult, T as ProviderAuthMethod, Tn as SessionAcpIdentity, Tt as ChannelDock, U as VideoGenerationModeCapabilities, V as VideoGenerationIgnoredOverride, Vt as resolveOpenProviderRuntimeGroupPolicy, W as VideoGenerationProvider, X as VideoGenerationSourceAsset, Y as VideoGenerationResult, Z as VideoGenerationTransformCapabilities, _ as FasedAgentPluginApi, _n as createTypingCallbacks, _t as GeneratedImageAsset, a as PluginRuntimeSessionGetParams, an as resolveControlCommandGate, at as RealtimeVoiceProviderId, b as FasedAgentPluginServiceContext, bn as jsonResult, bt as ImageGenerationRequest, c as PluginRuntimeSessionListResult, cn as AckReactionScope, ct as RealtimeVoiceTool, d as PluginRuntimeAdminRpcAuditSink, dn as shouldAckReaction, dt as RealtimeTranscriptionProviderConfiguredContext, en as getFileExtension, et as RealtimeVoiceBridgeCallbacks, f as PluginRuntimeAdminRpcCallContext, fn as shouldAckReactionForWhatsApp, ft as RealtimeTranscriptionProviderId, g as PluginRegistry, gn as ResponsePrefixContext, gt as RealtimeTranscriptionSessionCreateRequest, h as PluginRuntimeAdminRpcInvoker, hn as resolveAckReaction, ht as RealtimeTranscriptionSessionCallbacks, i as PluginRuntimeSessionAuditSink, in as formatInboundFromLabel, it as RealtimeVoiceProviderConfiguredContext, j as ProviderPluginCatalog, jt as LineChannelData, k as ProviderCatalogResult, kt as resolveLineAccount, l as PluginRuntimeSessionStatus, ln as WhatsAppAckReactionMode, lt as RealtimeVoiceToolCallEvent, m as PluginRuntimeAdminRpcInvocation, mn as RoutePeerKind, mt as RealtimeTranscriptionSession, n as RuntimeLogger, nn as loadWebMedia, nt as RealtimeVoiceCloseReason, o as PluginRuntimeSessionHelpers, on as resolveToolsBySender, ot as RealtimeVoiceProviderResolveConfigContext, p as PluginRuntimeAdminRpcHelpers, pn as extractOriginalFilename, pt as RealtimeTranscriptionProviderResolveConfigContext, q as VideoGenerationRequest, r as PluginRuntimeSessionAuditEvent, rn as recordInboundSession, rt as RealtimeVoiceProviderConfig, s as PluginRuntimeSessionListParams, sn as AckReactionGateParams, st as RealtimeVoiceRole, t as PluginRuntime, tn as WebMediaResult, tt as RealtimeVoiceBridgeCreateRequest, u as PluginRuntimeAdminRpcAuditEvent, un as removeAckReactionAfterReply, ut as RealtimeTranscriptionProviderConfig, v as FasedAgentPluginConfigSchema, vn as AnyAgentTool, vt as ImageGenerationProvider, w as ProviderAuthKind, wn as AcpSessionRuntimeOptions, wt as HookEntry, x as ImageGenerationProviderPlugin, xn as readNumberParam, xt as ImageGenerationResolution, y as FasedAgentPluginService, yn as createActionGate, yt as ImageGenerationProviderConfiguredContext, zt as resolveAllowlistProviderRuntimeGroupPolicy } from "./types-
|
|
5
|
-
import { B as ExecTarget, D as normalizeE164, E as escapeRegExp, F as isBlockedHostname, I as isBlockedHostnameOrIp, L as isPrivateIpAddress, M as LookupFn, N as SsrFBlockedError, O as safeParseJson, P as SsrFPolicy, R as ExecAsk, T as clamp, _ as PushTestParams, a as GatewayClient, c as GatewayRequestHandlerOptions, d as GatewayStartupTraceSnapshot, f as ModelCatalogEntry, g as ErrorShape, h as CommandsListResult, k as sleep, l as GatewayRequestHandlers, o as GatewayRequestContext, p as ModelFeature, s as GatewayRequestHandler, u as RespondFn, z as ExecSecurity } from "./types-
|
|
6
|
-
import { a as VerboseLevel, i as ThinkLevel, n as SkillSnapshot, r as ReasoningLevel } from "./types-
|
|
7
|
-
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 { $ as ChannelPollContext, $t as MSTeamsReplyStyle, A as ChannelSecurityAdapter, An as SafeBinProfileFixture, At as FasedAgentConfig, B as ChannelCapabilities, C as ChannelLogoutResult, Cn as BlockStreamingCoalesceConfig, Ct as RuntimeEnv, D as ChannelResolveKind, Dn as MarkdownConfig, Dt as resolveIMessageAccount, E as ChannelPairingAdapter, Et as resolveDefaultIMessageAccountId, F as ChannelAccountSnapshot, G as ChannelId, H as ChannelDirectoryEntryKind, I as ChannelAccountState, J as ChannelMessageActionAdapter, K as ChannelLogSink, M as ChannelStatusAdapter, Mn as ReplyPayload, N as BaseProbeResult, Nn as CHANNEL_MESSAGE_ACTION_NAMES, O as ChannelResolveResult, On as MarkdownTableMode, P as BaseTokenResolution, Pt as ModelProviderConfig, Q as ChannelOutboundTargetMode, Qt as MSTeamsConfig, R as ChannelAgentTool, S as ChannelLogoutContext, T as ChannelOutboundContext, Tn as GroupPolicy, Tt as listIMessageAccountIds, U as ChannelGroupContext, V as ChannelDirectoryEntry, W as ChannelHeartbeatDeps, X as ChannelMessagingAdapter, Xt as SignalAccountConfig, Y as ChannelMessageActionContext, Z as ChannelMeta, Zt as MSTeamsChannelConfig, _ as ChannelGatewayContext, a as PromptAccountId, an as GoogleChatGroupConfig, at as ChannelStreamingAdapter, b as ChannelLoginWithQrStartResult, bn as GroupToolPolicyBySenderConfig, ct as ChannelThreadingToolContext, d as ChannelAuthAdapter, dt as OutboundDeliveryResult, en as MSTeamsTeamConfig, et as ChannelPollResult, f as ChannelCommandAdapter, g as ChannelGatewayAdapter, h as ChannelElevatedAdapter, i as ChannelOnboardingDmPolicy, in as GoogleChatDmConfig, it as ChannelStatusIssue, j as ChannelSetupAdapter, jn as GetReplyOptions, k as ChannelResolverAdapter, ln as ChunkMode, lt as ChannelToolSend, m as ChannelDirectoryAdapter, n as ChannelPlugin, nn as GoogleChatActionConfig, nt as ChannelSecurityDmPolicy, o as WizardPrompter, ot as ChannelThreadingAdapter, p as ChannelConfigAdapter, q as ChannelMentionAdapter, r as ChannelOnboardingAdapter, rn as GoogleChatConfig, rt as ChannelSetupInput, s as loadConfig, sn as DmConfig, st as ChannelThreadingContext, t as ChannelConfigSchema, tn as GoogleChatAccountConfig, tt as ChannelSecurityContext, u as ChannelMessageActionName, ut as getChatChannelMeta, v as ChannelGroupAdapter, w as ChannelOutboundAdapter, wn as DmPolicy, wt as ResolvedIMessageAccount, x as ChannelLoginWithQrWaitResult, xn as GroupToolPolicyConfig, y as ChannelHeartbeatAdapter, yn as PollInput, z as ChannelAgentToolFactory } from "./types.plugin-BcSBq42x.js";
|
|
4
|
+
import { $ as RealtimeVoiceBridge, $t as extensionForMime, A as ProviderPlugin, At as LineAccountConfig, B as GeneratedVideoAsset, Bt as resolveDefaultGroupPolicy, C as ProviderAuthContext, Cn as readStringParam, Ct as ImageGenerationSourceImage, D as ProviderCatalogContext, Dn as SessionEntry, Dt as normalizeAccountId$1, E as ProviderAuthResult, En as SessionAcpMeta, Et as listLineAccountIds, F as RealtimeTranscriptionProviderPlugin, Ft as formatLocationText, G as VideoGenerationProviderCapabilities, H as VideoGenerationMode, Ht as warnMissingProviderGroupPolicyFallbackOnce, I as RealtimeVoiceProviderPlugin, It as toLocationContext, J as VideoGenerationResolution, K as VideoGenerationProviderConfiguredContext, L as VideoGenerationProviderPlugin, M as ProviderPluginWizard, Mt as LineConfig, N as ProviderPluginWizardModelPicker, Nt as ResolvedLineAccount, O as ProviderCatalogOrder, On as SessionSystemPromptReport, Ot as resolveDefaultLineAccountId, P as ProviderPluginWizardSetup, Pt as NormalizedLocation, Qt as detectMime, Rt as GROUP_POLICY_BLOCKED_LABEL, S as PluginLogger, Sn as readReactionParams, St as ImageGenerationResult, T as ProviderAuthMethod, Tn as SessionAcpIdentity, Tt as ChannelDock, U as VideoGenerationModeCapabilities, V as VideoGenerationIgnoredOverride, Vt as resolveOpenProviderRuntimeGroupPolicy, W as VideoGenerationProvider, X as VideoGenerationSourceAsset, Y as VideoGenerationResult, Z as VideoGenerationTransformCapabilities, _ as FasedAgentPluginApi, _n as createTypingCallbacks, _t as GeneratedImageAsset, a as PluginRuntimeSessionGetParams, an as resolveControlCommandGate, at as RealtimeVoiceProviderId, b as FasedAgentPluginServiceContext, bn as jsonResult, bt as ImageGenerationRequest, c as PluginRuntimeSessionListResult, cn as AckReactionScope, ct as RealtimeVoiceTool, d as PluginRuntimeAdminRpcAuditSink, dn as shouldAckReaction, dt as RealtimeTranscriptionProviderConfiguredContext, en as getFileExtension, et as RealtimeVoiceBridgeCallbacks, f as PluginRuntimeAdminRpcCallContext, fn as shouldAckReactionForWhatsApp, ft as RealtimeTranscriptionProviderId, g as PluginRegistry, gn as ResponsePrefixContext, gt as RealtimeTranscriptionSessionCreateRequest, h as PluginRuntimeAdminRpcInvoker, hn as resolveAckReaction, ht as RealtimeTranscriptionSessionCallbacks, i as PluginRuntimeSessionAuditSink, in as formatInboundFromLabel, it as RealtimeVoiceProviderConfiguredContext, j as ProviderPluginCatalog, jt as LineChannelData, k as ProviderCatalogResult, kt as resolveLineAccount, l as PluginRuntimeSessionStatus, ln as WhatsAppAckReactionMode, lt as RealtimeVoiceToolCallEvent, m as PluginRuntimeAdminRpcInvocation, mn as RoutePeerKind, mt as RealtimeTranscriptionSession, n as RuntimeLogger, nn as loadWebMedia, nt as RealtimeVoiceCloseReason, o as PluginRuntimeSessionHelpers, on as resolveToolsBySender, ot as RealtimeVoiceProviderResolveConfigContext, p as PluginRuntimeAdminRpcHelpers, pn as extractOriginalFilename, pt as RealtimeTranscriptionProviderResolveConfigContext, q as VideoGenerationRequest, r as PluginRuntimeSessionAuditEvent, rn as recordInboundSession, rt as RealtimeVoiceProviderConfig, s as PluginRuntimeSessionListParams, sn as AckReactionGateParams, st as RealtimeVoiceRole, t as PluginRuntime, tn as WebMediaResult, tt as RealtimeVoiceBridgeCreateRequest, u as PluginRuntimeAdminRpcAuditEvent, un as removeAckReactionAfterReply, ut as RealtimeTranscriptionProviderConfig, v as FasedAgentPluginConfigSchema, vn as AnyAgentTool, vt as ImageGenerationProvider, w as ProviderAuthKind, wn as AcpSessionRuntimeOptions, wt as HookEntry, x as ImageGenerationProviderPlugin, xn as readNumberParam, xt as ImageGenerationResolution, y as FasedAgentPluginService, yn as createActionGate, yt as ImageGenerationProviderConfiguredContext, zt as resolveAllowlistProviderRuntimeGroupPolicy } from "./types-DWfbSAaM.js";
|
|
5
|
+
import { B as ExecTarget, D as normalizeE164, E as escapeRegExp, F as isBlockedHostname, I as isBlockedHostnameOrIp, L as isPrivateIpAddress, M as LookupFn, N as SsrFBlockedError, O as safeParseJson, P as SsrFPolicy, R as ExecAsk, T as clamp, _ as PushTestParams, a as GatewayClient, c as GatewayRequestHandlerOptions, d as GatewayStartupTraceSnapshot, f as ModelCatalogEntry, g as ErrorShape, h as CommandsListResult, k as sleep, l as GatewayRequestHandlers, o as GatewayRequestContext, p as ModelFeature, s as GatewayRequestHandler, u as RespondFn, z as ExecSecurity } from "./types-C3avNytw.js";
|
|
6
|
+
import { a as VerboseLevel, i as ThinkLevel, n as SkillSnapshot, r as ReasoningLevel } from "./types-D0kDG8l0.js";
|
|
7
|
+
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-CS-9BHug.js";
|
|
8
8
|
import { a as listDevicePairing, i as approveDevicePairing, n as resolveTailnetHostWithRunner, o as rejectDevicePairing, r as resolveGatewayBindUrl, t as runPluginCommandWithTimeout } from "./run-command-i_W6EFb1.js";
|
|
9
|
-
import { _ as buildTokenChannelStatusSummary, a as resolveGoogleChatGroupRequireMention, c as resolveIMessageGroupToolPolicy, g as buildBaseChannelStatusSummary, h as buildBaseAccountStatusSnapshot, n as resolveBlueBubblesGroupToolPolicy, o as resolveGoogleChatGroupToolPolicy, s as resolveIMessageGroupRequireMention, t as resolveBlueBubblesGroupRequireMention, v as collectStatusIssuesFromLastError, y as createDefaultChannelRuntimeState } from "./group-mentions-
|
|
10
|
-
import { a as SignalConfigSchema, i as MSTeamsConfigSchema, n as GoogleChatConfigSchema, r as IMessageConfigSchema } from "./zod-schema.providers-core-
|
|
11
|
-
import { n as fetchWithSsrFGuard, r as listAgentIds, s as resolveDefaultAgentId, t as resolvePreferredFasedAgentTmpDir } from "./tmp-fased-dir-
|
|
9
|
+
import { _ as buildTokenChannelStatusSummary, a as resolveGoogleChatGroupRequireMention, c as resolveIMessageGroupToolPolicy, g as buildBaseChannelStatusSummary, h as buildBaseAccountStatusSnapshot, n as resolveBlueBubblesGroupToolPolicy, o as resolveGoogleChatGroupToolPolicy, s as resolveIMessageGroupRequireMention, t as resolveBlueBubblesGroupRequireMention, v as collectStatusIssuesFromLastError, y as createDefaultChannelRuntimeState } from "./group-mentions-q3hUTCt7.js";
|
|
10
|
+
import { a as SignalConfigSchema, i as MSTeamsConfigSchema, n as GoogleChatConfigSchema, r as IMessageConfigSchema } from "./zod-schema.providers-core-CIzCjXH9.js";
|
|
11
|
+
import { d as FileLockHandle, f as FileLockOptions, m as withFileLock, n as fetchWithSsrFGuard, p as acquireFileLock, r as listAgentIds, s as resolveDefaultAgentId, t as resolvePreferredFasedAgentTmpDir } from "./tmp-fased-dir-xOTGlzBE.js";
|
|
12
12
|
import { ImageContent } from "@mariozechner/pi-ai";
|
|
13
13
|
import { AgentMessage } from "@mariozechner/pi-agent-core";
|
|
14
14
|
import * as _sinclair_typebox0 from "@sinclair/typebox";
|
|
@@ -221,7 +221,7 @@ declare const BLUEBUBBLES_ACTIONS: {
|
|
|
221
221
|
};
|
|
222
222
|
};
|
|
223
223
|
declare const BLUEBUBBLES_ACTION_NAMES: (keyof typeof BLUEBUBBLES_ACTIONS)[];
|
|
224
|
-
declare const BLUEBUBBLES_GROUP_ACTIONS: Set<"
|
|
224
|
+
declare const BLUEBUBBLES_GROUP_ACTIONS: Set<"search" | "reactions" | "sticker" | "permissions" | "edit" | "unsend" | "reply" | "sendWithEffect" | "renameGroup" | "setGroupIcon" | "addParticipant" | "removeParticipant" | "leaveGroup" | "sendAttachment" | "send" | "broadcast" | "poll" | "react" | "read" | "delete" | "pin" | "unpin" | "list-pins" | "thread-create" | "thread-list" | "thread-reply" | "sticker-search" | "member-info" | "role-info" | "emoji-list" | "emoji-upload" | "sticker-upload" | "role-add" | "role-remove" | "channel-info" | "channel-list" | "channel-create" | "channel-edit" | "channel-delete" | "channel-move" | "category-create" | "category-edit" | "category-delete" | "topic-create" | "voice-status" | "event-list" | "event-create" | "timeout" | "kick" | "ban" | "set-presence">;
|
|
225
225
|
//#endregion
|
|
226
226
|
//#region src/plugins/http-path.d.ts
|
|
227
227
|
declare function normalizePluginHttpPath(path?: string | null, fallback?: string | null): string | null;
|
|
@@ -239,24 +239,6 @@ declare function registerPluginHttpRoute(params: {
|
|
|
239
239
|
registry?: PluginRegistry;
|
|
240
240
|
}): () => void;
|
|
241
241
|
//#endregion
|
|
242
|
-
//#region src/plugin-sdk/file-lock.d.ts
|
|
243
|
-
type FileLockOptions = {
|
|
244
|
-
retries: {
|
|
245
|
-
retries: number;
|
|
246
|
-
factor: number;
|
|
247
|
-
minTimeout: number;
|
|
248
|
-
maxTimeout: number;
|
|
249
|
-
randomize?: boolean;
|
|
250
|
-
};
|
|
251
|
-
stale: number;
|
|
252
|
-
};
|
|
253
|
-
type FileLockHandle = {
|
|
254
|
-
lockPath: string;
|
|
255
|
-
release: () => Promise<void>;
|
|
256
|
-
};
|
|
257
|
-
declare function acquireFileLock(filePath: string, options: FileLockOptions): Promise<FileLockHandle>;
|
|
258
|
-
declare function withFileLock<T>(filePath: string, options: FileLockOptions, fn: () => Promise<T>): Promise<T>;
|
|
259
|
-
//#endregion
|
|
260
242
|
//#region src/video-generation/dashscope-compatible.d.ts
|
|
261
243
|
declare const DEFAULT_VIDEO_GENERATION_DURATION_SECONDS = 5;
|
|
262
244
|
declare const DEFAULT_VIDEO_GENERATION_TIMEOUT_MS = 120000;
|
|
@@ -320,14 +302,14 @@ declare const DmConfigSchema: z.ZodObject<{
|
|
|
320
302
|
historyLimit: z.ZodOptional<z.ZodNumber>;
|
|
321
303
|
}, z.core.$strict>;
|
|
322
304
|
declare const GroupPolicySchema: z.ZodEnum<{
|
|
305
|
+
open: "open";
|
|
323
306
|
disabled: "disabled";
|
|
324
307
|
allowlist: "allowlist";
|
|
325
|
-
open: "open";
|
|
326
308
|
}>;
|
|
327
309
|
declare const DmPolicySchema: z.ZodEnum<{
|
|
310
|
+
open: "open";
|
|
328
311
|
disabled: "disabled";
|
|
329
312
|
allowlist: "allowlist";
|
|
330
|
-
open: "open";
|
|
331
313
|
pairing: "pairing";
|
|
332
314
|
}>;
|
|
333
315
|
declare const BlockStreamingCoalesceSchema: z.ZodObject<{
|
|
@@ -356,20 +338,20 @@ declare const ReplyRuntimeConfigSchemaShape: {
|
|
|
356
338
|
mediaMaxMb: z.ZodOptional<z.ZodNumber>;
|
|
357
339
|
};
|
|
358
340
|
declare const MarkdownTableModeSchema: z.ZodEnum<{
|
|
359
|
-
code: "code";
|
|
360
341
|
off: "off";
|
|
361
342
|
bullets: "bullets";
|
|
343
|
+
code: "code";
|
|
362
344
|
}>;
|
|
363
345
|
declare const MarkdownConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
364
346
|
tables: z.ZodOptional<z.ZodEnum<{
|
|
365
|
-
code: "code";
|
|
366
347
|
off: "off";
|
|
367
348
|
bullets: "bullets";
|
|
349
|
+
code: "code";
|
|
368
350
|
}>>;
|
|
369
351
|
}, z.core.$strict>>;
|
|
370
352
|
declare const TtsProviderSchema: z.ZodEnum<{
|
|
371
|
-
openai: "openai";
|
|
372
353
|
elevenlabs: "elevenlabs";
|
|
354
|
+
openai: "openai";
|
|
373
355
|
edge: "edge";
|
|
374
356
|
}>;
|
|
375
357
|
declare const TtsModeSchema: z.ZodEnum<{
|
|
@@ -395,8 +377,8 @@ declare const TtsConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
395
377
|
final: "final";
|
|
396
378
|
}>>;
|
|
397
379
|
provider: z.ZodOptional<z.ZodEnum<{
|
|
398
|
-
openai: "openai";
|
|
399
380
|
elevenlabs: "elevenlabs";
|
|
381
|
+
openai: "openai";
|
|
400
382
|
edge: "edge";
|
|
401
383
|
}>>;
|
|
402
384
|
summaryModel: z.ZodOptional<z.ZodString>;
|
|
@@ -418,8 +400,8 @@ declare const TtsConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
418
400
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
419
401
|
applyTextNormalization: z.ZodOptional<z.ZodEnum<{
|
|
420
402
|
off: "off";
|
|
421
|
-
on: "on";
|
|
422
403
|
auto: "auto";
|
|
404
|
+
on: "on";
|
|
423
405
|
}>>;
|
|
424
406
|
languageCode: z.ZodOptional<z.ZodString>;
|
|
425
407
|
voiceSettings: z.ZodOptional<z.ZodObject<{
|
|
@@ -1023,7 +1005,7 @@ declare function startFederationAutoConnect(opts?: {
|
|
|
1023
1005
|
} | null;
|
|
1024
1006
|
//#endregion
|
|
1025
1007
|
//#region src/gateway/mutating-admin-rpc-rate-limit.d.ts
|
|
1026
|
-
type MutatingAdminRpcRateLimitMethod = "chat.inject" | "doctor.memory.repair.execute" | "push.test" | "web.login.start" | "web.login.wait";
|
|
1008
|
+
type MutatingAdminRpcRateLimitMethod = "chat.inject" | "doctor.memory.repair.execute" | "push.test" | "secrets.reload" | "web.login.start" | "web.login.wait";
|
|
1027
1009
|
//#endregion
|
|
1028
1010
|
//#region src/acp/acpx-mutating-wrapper-policy.d.ts
|
|
1029
1011
|
type AcpxMutatingWrapperGate = "operator-scope" | "operator-confirmation" | "plugin-admin-rpc-grant" | "plugin-source-allowlist" | "audit" | "rate-limit" | "gateway-token" | "explicit-wrapper-enable";
|
|
@@ -2431,15 +2413,15 @@ declare const LineConfigSchema: z.ZodObject<{
|
|
|
2431
2413
|
allowFrom: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
2432
2414
|
groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
2433
2415
|
dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
2416
|
+
open: "open";
|
|
2434
2417
|
disabled: "disabled";
|
|
2435
2418
|
allowlist: "allowlist";
|
|
2436
|
-
open: "open";
|
|
2437
2419
|
pairing: "pairing";
|
|
2438
2420
|
}>>>;
|
|
2439
2421
|
groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
2422
|
+
open: "open";
|
|
2440
2423
|
disabled: "disabled";
|
|
2441
2424
|
allowlist: "allowlist";
|
|
2442
|
-
open: "open";
|
|
2443
2425
|
}>>>;
|
|
2444
2426
|
responsePrefix: z.ZodOptional<z.ZodString>;
|
|
2445
2427
|
mediaMaxMb: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2454,15 +2436,15 @@ declare const LineConfigSchema: z.ZodObject<{
|
|
|
2454
2436
|
allowFrom: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
2455
2437
|
groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
2456
2438
|
dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
2439
|
+
open: "open";
|
|
2457
2440
|
disabled: "disabled";
|
|
2458
2441
|
allowlist: "allowlist";
|
|
2459
|
-
open: "open";
|
|
2460
2442
|
pairing: "pairing";
|
|
2461
2443
|
}>>>;
|
|
2462
2444
|
groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
2445
|
+
open: "open";
|
|
2463
2446
|
disabled: "disabled";
|
|
2464
2447
|
allowlist: "allowlist";
|
|
2465
|
-
open: "open";
|
|
2466
2448
|
}>>>;
|
|
2467
2449
|
responsePrefix: z.ZodOptional<z.ZodString>;
|
|
2468
2450
|
mediaMaxMb: z.ZodOptional<z.ZodNumber>;
|
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { $r as
|
|
2
|
-
import { Bt as resolveBlueBubblesGroupRequireMention, Gt as resolveGoogleChatGroupToolPolicy, Kt as resolveIMessageGroupRequireMention, Nn as getChatChannelMeta, Rt as looksLikeSignalTargetId, Vt as resolveBlueBubblesGroupToolPolicy, Wt as resolveGoogleChatGroupRequireMention, Xn as normalizePluginHttpPath, dn as resolveDefaultSignalAccountId, fn as resolveSignalAccount, hn as resolveIMessageAccount, mn as resolveDefaultIMessageAccountId, pn as listIMessageAccountIds, qt as resolveIMessageGroupToolPolicy, un as listSignalAccountIds, yn as resolveToolsBySender, zt as normalizeSignalMessagingTarget } from "./runtime-
|
|
1
|
+
import { $n as resolveFederationHandle, $r as resolveSingleWebhookTargetAsync, Ai as normalizeRealtimeVoiceProviderId, B as logAckFailure, Bi as downloadDashscopeGeneratedVideos, Bn as requestBodyErrorToText, Br as createImageCard, C as resolveEffectiveToolInventory, Ci as resolveEffectiveAllowFromLists, D as runEmbeddedPiAgent, Di as canonicalizeRealtimeVoiceProviderId, E as ACPX_PUSH_TEST_WRAPPER_ID, Ei as evaluateSenderGroupAccess, En as AcpRuntimeError, F as resolveMentionGatingWithBypass, Fi as DEFAULT_VIDEO_GENERATION_DURATION_SECONDS, Fn as RequestBodyLimitError, Fr as hasMarkdownToConvert, Gi as formatAllowlistMatchMeta, Gr as waitForAbortSignal, H as logTypingFailure, Hi as pollDashscopeVideoTaskUntilComplete, Hn as resolveChannelMediaMaxBytes, Hr as createListCard, I as listLineAccountIds, Ii as DEFAULT_VIDEO_GENERATION_TIMEOUT_MS, In as installRequestBodyLimitGuard, Ir as processLineMessage, J as shouldAckReaction, Ji as BLUEBUBBLES_ACTION_NAMES, Jr as createDedupeCache, K as recordInboundSession, Ki as resolveAllowlistMatchSimple, Kr as createLoggerBackedRuntime, L as normalizeAccountId$1, Li as DEFAULT_VIDEO_RESOLUTION_TO_SIZE, Ln as isRequestBodyLimitError, Lr as stripMarkdown, M as issuePairingChallenge, Mi as getRealtimeTranscriptionProvider, N as createTypingCallbacks, Ni as listRealtimeTranscriptionProviders, Nn as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, Oi as getRealtimeVoiceProvider, P as resolveMentionGating, Pi as normalizeRealtimeTranscriptionProviderId, Pn as DEFAULT_WEBHOOK_MAX_BODY_BYTES, Qn as resolveFederationBaseUrl, Qr as resolveSingleWebhookTarget, R as resolveDefaultLineAccountId, Ri as buildDashscopeVideoGenerationInput, Rn as readJsonBodyWithLimit, Rr as createReceiptCard, S as getPublicGatewayIdentity, Si as resolveDmGroupAccessWithLists, T as ACPX_PUSH_TEST_METHOD, Ti as resolveControlCommandGate, Tn as unregisterAcpRuntimeBackend, Ui as resolveVideoGenerationReferenceUrls, Un as runFederationAutoConnectOnce, V as logInboundDrop, Vi as extractDashscopeVideoUrls, Vr as createInfoCard, Wi as registerPluginHttpRoute, Wn as startFederationAutoConnect, Xi as CHANNEL_MESSAGE_ACTION_NAMES, Xn as normalizeHandle, Xr as registerWebhookTarget, Y as shouldAckReactionForWhatsApp, Yi as BLUEBUBBLES_GROUP_ACTIONS, Yn as DEFAULT_FEDERATION_BASE_URL, Zn as resolveAgentPublicOrigin, Zr as rejectNonPostWebhookRequest, _ as getGatewayUpdateStatus, _i as resolveChannelAccountConfigBasePath, a as normalizeIMessageMessagingTarget, ai as buildHostnameAllowlistPolicyFromSuffixAllowlist, b as getStatusSummary, bi as readStoreAllowFromForDmPolicy, ci as createNormalizedOutboundDeliverer, cn as DEFAULT_GROUP_HISTORY_LIMIT, d as mergeAllowlist, di as sendMediaWithLeadingCaption, dn as clearHistoryEntries, ei as resolveWebhookTargets, fi as buildOauthProviderAuthResult, fn as clearHistoryEntriesIfEnabled, g as buildCommandsListResult, gi as chunkTextForOutbound, h as getAcpStatusSnapshot, hi as buildAgentMediaPayload, hn as recordPendingHistoryEntryIfEnabled, i as looksLikeIMessageTargetId, ii as withTempDownloadPath, in as stringEnum, ji as canonicalizeRealtimeTranscriptionProviderId, ki as listRealtimeVoiceProviders, li as formatTextWithAttachmentLinks, m as pushHandlers, mi as fetchWithBearerAuthScopeFallback, mn as recordPendingHistoryEntry, n as collectBlueBubblesStatusIssues, ni as resolveWebhookPath, nt as formatInboundFromLabel, o as imessageOnboardingAdapter, oi as isHttpsUrlAllowedByHostnameSuffixAllowlist, p as summarizeMapping, pi as createScopedPairingAccess, pn as evictOldHistoryKeys, q as removeAckReactionAfterReply, qi as BLUEBUBBLES_ACTIONS, qr as createPersistentDedupe, r as signalOnboardingAdapter, ri as extractToolSend, rn as optionalStringEnum, s as buildMediaPayload, si as normalizeHostnameSuffixAllowlist, t as LineConfigSchema, ti as normalizeWebhookPath, ui as resolveOutboundMediaUrls, un as buildPendingHistoryContextFromMap, v as buildModelCatalogStatus, vi as resolveSenderCommandAuthorization, w as executeAcpxPushTestRequest, wn as registerAcpRuntimeBackend, x as isDangerousNameMatchingEnabled, xi as resolveDmGroupAccessWithCommandGate, y as loadGatewayModelCatalog, yi as DM_GROUP_ACCESS_REASON, z as resolveLineAccount, zi as buildDashscopeVideoGenerationParameters, zn as readRequestBodyWithLimit, zr as createActionCard } from "./config-schema-BOT7kHb6.js";
|
|
2
|
+
import { Bt as resolveBlueBubblesGroupRequireMention, Gt as resolveGoogleChatGroupToolPolicy, Kt as resolveIMessageGroupRequireMention, Nn as getChatChannelMeta, Rt as looksLikeSignalTargetId, Vt as resolveBlueBubblesGroupToolPolicy, Wt as resolveGoogleChatGroupRequireMention, Xn as normalizePluginHttpPath, dn as resolveDefaultSignalAccountId, fn as resolveSignalAccount, hn as resolveIMessageAccount, mn as resolveDefaultIMessageAccountId, pn as listIMessageAccountIds, qt as resolveIMessageGroupToolPolicy, un as listSignalAccountIds, yn as resolveToolsBySender, zt as normalizeSignalMessagingTarget } from "./runtime-2B9_WKoI.js";
|
|
3
3
|
import { n as stripAnsi } from "./subsystem-DBPNbQDQ.js";
|
|
4
4
|
import { g as registerLogTransport, w as resolvePreferredFasedAgentTmpDir } from "./globals-B_jjtAje.js";
|
|
5
5
|
import "./paths-BEmvSyOV.js";
|
|
6
6
|
import { d as normalizeE164, g as safeParseJson, n as clamp, o as escapeRegExp, y as sleep } from "./utils-CYk9EKoq.js";
|
|
7
|
-
import { A as
|
|
7
|
+
import { A as DmPolicySchema, B as requireOpenAllowFrom, D as ToolPolicySchema, F as TtsAutoSchema, I as TtsConfigSchema, L as TtsModeSchema, M as MarkdownConfigSchema, N as MarkdownTableModeSchema, O as BlockStreamingCoalesceSchema, P as ReplyRuntimeConfigSchemaShape, R as TtsProviderSchema, f as GoogleChatConfigSchema, h as SignalConfigSchema, j as GroupPolicySchema, k as DmConfigSchema, m as MSTeamsConfigSchema, ma as withFileLock, p as IMessageConfigSchema, pa as acquireFileLock, sa as formatErrorMessage, wa as isTruthyEnvValue, z as normalizeAllowFrom } from "./config-DlWVeLFB.js";
|
|
8
8
|
import { r as listAgentIds, u as resolveDefaultAgentId } from "./agent-scope-CCjfjKoO.js";
|
|
9
9
|
import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId, u as resolveThreadSessionKeys } 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 "./accounts-
|
|
14
|
+
import "./accounts-Brn3-uWN.js";
|
|
15
15
|
import { C as resolveNestedAllowlistDecision, S as resolveChannelEntryMatchWithFallback, b as normalizeChannelSlug, x as resolveChannelEntryMatch, y as buildChannelKeyCandidates } from "./allow-list-DyAxs4yw.js";
|
|
16
16
|
import { n as redactSensitiveText } from "./redact-Bm8vu_ju.js";
|
|
17
17
|
import "./github-copilot-token-CUK__1s1.js";
|
|
18
18
|
import "./retry-DstNBhDW.js";
|
|
19
19
|
import "./paths-CTZ2RS_E.js";
|
|
20
|
-
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-
|
|
20
|
+
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-D0CoLHRJ.js";
|
|
21
21
|
import { a as isBlockedHostnameOrIp, i as isBlockedHostname, o as isPrivateIpAddress, t as SsrFBlockedError } from "./ssrf-fG4UHKBw.js";
|
|
22
22
|
import { t as fetchWithSsrFGuard } from "./fetch-guard-CeG6u6ld.js";
|
|
23
23
|
import { n as redactSensitiveUrlLikeString, t as redactSensitiveUrl } from "./redact-sensitive-url-g-ukZjwA.js";
|
|
24
|
-
import { d as parseChatTargetPrefixesOrThrow, f as resolveServicePrefixedAllowTarget, g as isNormalizedSenderAllowed, h as isAllowedParsedChatSender, m as formatAllowFromLowercase, p as resolveServicePrefixedTarget, u as parseChatAllowTargetPrefixes } from "./send-
|
|
25
|
-
import { A as resolveDefaultGroupPolicy, C as buildBaseChannelStatusSummary, D as formatDocsLink, E as createDefaultChannelRuntimeState, M as warnMissingProviderGroupPolicyFallbackOnce, O as GROUP_POLICY_BLOCKED_LABEL, S as buildBaseAccountStatusSnapshot, T as collectStatusIssuesFromLastError, j as resolveOpenProviderRuntimeGroupPolicy, k as resolveAllowlistProviderRuntimeGroupPolicy, r as mergeAllowFromEntries, t as addWildcardAllowFrom, u as promptAccountId, w as buildTokenChannelStatusSummary } from "./helpers-
|
|
26
|
-
import { A as formatLocationText, j as toLocationContext, n as isWSLEnv, r as isWSLSync, t as isWSL2Sync } from "./wsl-
|
|
27
|
-
import { o as readJsonFileWithFallback, s as writeJsonFileAtomically } from "./pairing-store-
|
|
28
|
-
import "./chunk-
|
|
24
|
+
import { d as parseChatTargetPrefixesOrThrow, f as resolveServicePrefixedAllowTarget, g as isNormalizedSenderAllowed, h as isAllowedParsedChatSender, m as formatAllowFromLowercase, p as resolveServicePrefixedTarget, u as parseChatAllowTargetPrefixes } from "./send-CFzGKJXo.js";
|
|
25
|
+
import { A as resolveDefaultGroupPolicy, C as buildBaseChannelStatusSummary, D as formatDocsLink, E as createDefaultChannelRuntimeState, M as warnMissingProviderGroupPolicyFallbackOnce, O as GROUP_POLICY_BLOCKED_LABEL, S as buildBaseAccountStatusSnapshot, T as collectStatusIssuesFromLastError, j as resolveOpenProviderRuntimeGroupPolicy, k as resolveAllowlistProviderRuntimeGroupPolicy, r as mergeAllowFromEntries, t as addWildcardAllowFrom, u as promptAccountId, w as buildTokenChannelStatusSummary } from "./helpers-DMBU4oTo.js";
|
|
26
|
+
import { A as formatLocationText, j as toLocationContext, n as isWSLEnv, r as isWSLSync, t as isWSL2Sync } from "./wsl-J-HscWxS.js";
|
|
27
|
+
import { o as readJsonFileWithFallback, s as writeJsonFileAtomically } from "./pairing-store-BChahgI2.js";
|
|
28
|
+
import "./chunk-CyoyqpbG.js";
|
|
29
29
|
import { a as listDevicePairing, l as runPluginCommandWithTimeout, n as resolveGatewayBindUrl, o as rejectDevicePairing, r as approveDevicePairing, t as resolveTailnetHostWithRunner } from "./tailscale-status-DwpNdO3Z.js";
|
|
30
30
|
import { a as resolveAckReaction, n as createReplyPrefixOptions, t as createReplyPrefixContext } from "./reply-prefix-CeVw7Mn2.js";
|
|
31
31
|
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-BbnqfVuu.js";
|
|
32
32
|
import "./pairing-token-Cs3BRKc0.js";
|
|
33
33
|
import { h as onDiagnosticEvent, m as isDiagnosticsEnabled, p as emitDiagnosticEvent } from "./diagnostic-DLL_zekv.js";
|
|
34
34
|
import "./diagnostic-session-state-DqgfGYqZ.js";
|
|
35
|
-
import "./optional-runtime-dependency-
|
|
36
|
-
import { c as detectMime, l as extensionForMime, u as getFileExtension } from "./image-ops-
|
|
37
|
-
import "./memory-search-
|
|
38
|
-
import "./manager-
|
|
39
|
-
import "./query-expansion-
|
|
40
|
-
import { a as jsonResult, c as readReactionParams, d as readStringParam, n as createActionGate, s as readNumberParam } from "./common-
|
|
41
|
-
import "./commands-registry-
|
|
42
|
-
import { X as rawDataToString } from "./runtime-dependency-
|
|
35
|
+
import "./optional-runtime-dependency-0dznm3ZO.js";
|
|
36
|
+
import { c as detectMime, l as extensionForMime, u as getFileExtension } from "./image-ops-DQi0n_Tt.js";
|
|
37
|
+
import "./memory-search-CrFPOeTH.js";
|
|
38
|
+
import "./manager-BegWxNYX.js";
|
|
39
|
+
import "./query-expansion-BG3FgzF7.js";
|
|
40
|
+
import { a as jsonResult, c as readReactionParams, d as readStringParam, n as createActionGate, s as readNumberParam } from "./common-HCcXU-NR.js";
|
|
41
|
+
import "./commands-registry-BfqdEWdF.js";
|
|
42
|
+
import { X as rawDataToString } from "./runtime-dependency-DczkvPxn.js";
|
|
43
43
|
import "./path-alias-guards-DjgDArrp.js";
|
|
44
44
|
import "./fs-safe-g4g7GT02.js";
|
|
45
|
-
import "./
|
|
46
|
-
import
|
|
47
|
-
import "./send-
|
|
48
|
-
import { r as extractOriginalFilename } from "./outbound-attachment-
|
|
45
|
+
import { n as loadWebMedia } from "./media-CAdQF5TG.js";
|
|
46
|
+
import "./markdown-tables-DCOXEUfZ.js";
|
|
47
|
+
import "./send-B6KkGKZD.js";
|
|
48
|
+
import { r as extractOriginalFilename } from "./outbound-attachment-QqTnIhZL.js";
|
|
49
49
|
import "./fetch-BtmoPIlf.js";
|
|
50
|
-
import "./thread-bindings.state-
|
|
51
|
-
import "./skill-commands-
|
|
50
|
+
import "./thread-bindings.state-D9hg_M1c.js";
|
|
51
|
+
import "./skill-commands-FKEPLS7T.js";
|
|
52
52
|
import "./sandbox-paths-Dx2lUqCu.js";
|
|
53
53
|
import "./directory-live-CSuYxdwk.js";
|
|
54
|
-
import "./targets-
|
|
54
|
+
import "./targets-CtSbTxYX.js";
|
|
55
55
|
import { n as missingTargetError } from "./target-errors-Ckufe179.js";
|
|
56
|
-
import "./pi-model-discovery-
|
|
57
|
-
import "./resolve-route-
|
|
56
|
+
import "./pi-model-discovery-BX_JLcEJ.js";
|
|
57
|
+
import "./resolve-route-C8tvQm8Z.js";
|
|
58
58
|
import "./render-e7fENCYH.js";
|
|
59
|
-
import "./tables-
|
|
60
|
-
import { t as promptChannelAccessConfig } from "./channel-access-
|
|
59
|
+
import "./tables-B3jr0Pvq.js";
|
|
60
|
+
import { t as promptChannelAccessConfig } from "./channel-access-CcFRdRPO.js";
|
|
61
61
|
import "./shared-CBgp_GBw.js";
|
|
62
62
|
|
|
63
63
|
export { ACPX_PUSH_TEST_METHOD, ACPX_PUSH_TEST_WRAPPER_ID, AcpRuntimeError, BLUEBUBBLES_ACTIONS, BLUEBUBBLES_ACTION_NAMES, BLUEBUBBLES_GROUP_ACTIONS, BlockStreamingCoalesceSchema, CHANNEL_MESSAGE_ACTION_NAMES, DEFAULT_ACCOUNT_ID, DEFAULT_FEDERATION_BASE_URL, DEFAULT_GROUP_HISTORY_LIMIT, DEFAULT_VIDEO_GENERATION_DURATION_SECONDS, DEFAULT_VIDEO_GENERATION_TIMEOUT_MS, DEFAULT_VIDEO_RESOLUTION_TO_SIZE, DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, DEFAULT_WEBHOOK_MAX_BODY_BYTES, DM_GROUP_ACCESS_REASON, DmConfigSchema, DmPolicySchema, GROUP_POLICY_BLOCKED_LABEL, GoogleChatConfigSchema, GroupPolicySchema, IMessageConfigSchema, LineConfigSchema, MSTeamsConfigSchema, MarkdownConfigSchema, MarkdownTableModeSchema, PAIRING_APPROVED_MESSAGE, ReplyRuntimeConfigSchemaShape, RequestBodyLimitError, SILENT_REPLY_TOKEN, SignalConfigSchema, SsrFBlockedError, ToolPolicySchema, TtsAutoSchema, TtsConfigSchema, TtsModeSchema, TtsProviderSchema, acquireFileLock, addWildcardAllowFrom, applyAccountNameToChannelSection, approveDevicePairing, buildAgentMediaPayload, buildBaseAccountStatusSnapshot, buildBaseChannelStatusSummary, buildChannelConfigSchema, buildChannelKeyCandidates, buildCommandsListResult, buildDashscopeVideoGenerationInput, buildDashscopeVideoGenerationParameters, buildHostnameAllowlistPolicyFromSuffixAllowlist, buildMediaPayload, buildModelCatalogStatus, buildOauthProviderAuthResult, buildPendingHistoryContextFromMap, buildTokenChannelStatusSummary, canonicalizeRealtimeTranscriptionProviderId, canonicalizeRealtimeVoiceProviderId, chunkTextForOutbound, clamp, clearHistoryEntries, clearHistoryEntriesIfEnabled, collectBlueBubblesStatusIssues, collectStatusIssuesFromLastError, createActionCard, createActionGate, createDedupeCache, createDefaultChannelRuntimeState, createImageCard, createInfoCard, createListCard, createLoggerBackedRuntime, createNormalizedOutboundDeliverer, createPersistentDedupe, createReceiptCard, createReplyPrefixContext, createReplyPrefixOptions, createScopedPairingAccess, createTypingCallbacks, deleteAccountFromConfigSection, detectMime, downloadDashscopeGeneratedVideos, emitDiagnosticEvent, emptyPluginConfigSchema, escapeRegExp, evaluateSenderGroupAccess, evictOldHistoryKeys, executeAcpxPushTestRequest, extensionForMime, extractDashscopeVideoUrls, extractOriginalFilename, extractToolSend, fetchWithBearerAuthScopeFallback, fetchWithSsrFGuard, formatAllowFromLowercase, formatAllowlistMatchMeta, formatDocsLink, formatErrorMessage, formatInboundFromLabel, formatLocationText, formatPairingApproveHint, formatTextWithAttachmentLinks, getAcpStatusSnapshot, getChatChannelMeta, getFileExtension, getGatewayUpdateStatus, getPublicGatewayIdentity, getRealtimeTranscriptionProvider, getRealtimeVoiceProvider, getStatusSummary, hasMarkdownToConvert, imessageOnboardingAdapter, installRequestBodyLimitGuard, isAllowedParsedChatSender, isBlockedHostname, isBlockedHostnameOrIp, isDangerousNameMatchingEnabled, isDiagnosticsEnabled, isHttpsUrlAllowedByHostnameSuffixAllowlist, isNormalizedSenderAllowed, isPrivateIpAddress, isRequestBodyLimitError, isSilentReplyText, isTruthyEnvValue, isWSL2Sync, isWSLEnv, isWSLSync, issuePairingChallenge, jsonResult, listAgentIds, listDevicePairing, listIMessageAccountIds, listLineAccountIds, listRealtimeTranscriptionProviders, listRealtimeVoiceProviders, listSignalAccountIds, loadGatewayModelCatalog, loadWebMedia, logAckFailure, logInboundDrop, logTypingFailure, looksLikeIMessageTargetId, looksLikeSignalTargetId, mergeAllowFromEntries, mergeAllowlist, migrateBaseNameToDefaultAccount, missingTargetError, normalizeAccountId, normalizeAllowFrom, normalizeChannelSlug, normalizeE164, normalizeHandle, normalizeHostnameSuffixAllowlist, normalizeIMessageMessagingTarget, normalizeAccountId$1 as normalizeLineAccountId, normalizePluginHttpPath, normalizeRealtimeTranscriptionProviderId, normalizeRealtimeVoiceProviderId, normalizeSignalMessagingTarget, normalizeWebhookPath, onDiagnosticEvent, optionalStringEnum, parseChatAllowTargetPrefixes, parseChatTargetPrefixesOrThrow, pollDashscopeVideoTaskUntilComplete, processLineMessage, promptAccountId, promptChannelAccessConfig, pushHandlers, rawDataToString, readJsonBodyWithLimit, readJsonFileWithFallback, readNumberParam, readReactionParams, readRequestBodyWithLimit, readStoreAllowFromForDmPolicy, readStringParam, recordInboundSession, recordPendingHistoryEntry, recordPendingHistoryEntryIfEnabled, redactSensitiveText, redactSensitiveUrl, redactSensitiveUrlLikeString, registerAcpRuntimeBackend, registerLogTransport, registerPluginHttpRoute, registerWebhookTarget, rejectDevicePairing, rejectNonPostWebhookRequest, removeAckReactionAfterReply, requestBodyErrorToText, requireOpenAllowFrom, resolveAckReaction, resolveAgentPublicOrigin, resolveAllowlistMatchSimple, resolveAllowlistProviderRuntimeGroupPolicy, resolveBlueBubblesGroupRequireMention, resolveBlueBubblesGroupToolPolicy, resolveChannelAccountConfigBasePath, resolveChannelEntryMatch, resolveChannelEntryMatchWithFallback, resolveChannelMediaMaxBytes, resolveControlCommandGate, resolveDefaultAgentId, resolveDefaultGroupPolicy, resolveDefaultIMessageAccountId, resolveDefaultLineAccountId, resolveDefaultSignalAccountId, resolveDmGroupAccessWithCommandGate, resolveDmGroupAccessWithLists, resolveEffectiveAllowFromLists, resolveEffectiveToolInventory, resolveFederationBaseUrl, resolveFederationHandle, resolveGatewayBindUrl, resolveGoogleChatGroupRequireMention, resolveGoogleChatGroupToolPolicy, resolveIMessageAccount, resolveIMessageGroupRequireMention, resolveIMessageGroupToolPolicy, resolveLineAccount, resolveMentionGating, resolveMentionGatingWithBypass, resolveNestedAllowlistDecision, resolveOpenProviderRuntimeGroupPolicy, resolveOutboundMediaUrls, resolvePreferredFasedAgentTmpDir, resolveSenderCommandAuthorization, resolveServicePrefixedAllowTarget, resolveServicePrefixedTarget, resolveSignalAccount, resolveSingleWebhookTarget, resolveSingleWebhookTargetAsync, resolveTailnetHostWithRunner, resolveThreadSessionKeys, resolveToolsBySender, resolveVideoGenerationReferenceUrls, resolveWebhookPath, resolveWebhookTargets, runEmbeddedPiAgent, runFederationAutoConnectOnce, runPluginCommandWithTimeout, safeParseJson, sendMediaWithLeadingCaption, setAccountEnabledInConfigSection, shouldAckReaction, shouldAckReactionForWhatsApp, signalOnboardingAdapter, sleep, startFederationAutoConnect, stringEnum, stripAnsi, stripMarkdown, summarizeMapping, toLocationContext, unregisterAcpRuntimeBackend, waitForAbortSignal, warnMissingProviderGroupPolicyFallbackOnce, withFileLock, withTempDownloadPath, writeJsonFileAtomically };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { i as defaultRuntime } from "./subsystem-DBPNbQDQ.js";
|
|
3
3
|
import { c as success, n as info, t as danger } from "./globals-B_jjtAje.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Sa as formatCliCommand, r as loadConfig } from "./config-DlWVeLFB.js";
|
|
5
5
|
import { r as logInfo } from "./logger-BbFvCoKk.js";
|
|
6
|
-
import { i as resolveWhatsAppAccount, l as logoutWeb } from "./accounts-
|
|
7
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
6
|
+
import { i as resolveWhatsAppAccount, l as logoutWeb } from "./accounts-Brn3-uWN.js";
|
|
7
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-DHD4ZKyG.js";
|
|
8
8
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
9
9
|
|
|
10
10
|
//#region src/web/login.ts
|