@fased/fased 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/dist/{active-listener-B_AAz_Nv.js → active-listener-CILIY2ox.js} +1 -1
- package/dist/{agent-scope-Cb1u7HE7.js → agent-scope-DwKyukUg.js} +124 -124
- package/dist/{agents-BwDWbvDH.js → agents-J1fRpMRy.js} +8 -8
- package/dist/{attachment-normalize-C9F-gS4-.js → attachment-normalize-CJWQWDbC.js} +1 -1
- package/dist/{attachment-normalize-C9w24bkb.js → attachment-normalize-Din9M1Y4.js} +1 -1
- package/dist/{audio-preflight-DGoGnRdo.js → audio-preflight-CiHBO6op.js} +31 -31
- package/dist/{audio-preflight-Dg10mePo.js → audio-preflight-D3I9e121.js} +2 -2
- package/dist/{audio-preflight-QMOvUkXH.js → audio-preflight-Dpmj_mYE.js} +1 -1
- package/dist/{audio-preflight-DnHScDmF.js → audio-preflight-fOBO0I4S.js} +2 -2
- package/dist/{audio-preflight-CTs9Ta27.js → audio-preflight-tHKngO6z.js} +1 -1
- package/dist/{audit-DJOyIBeV.js → audit-BGrhx_IL.js} +1 -1
- package/dist/{audit-DmYUk4AC.js → audit-DQyLAEfl.js} +1 -1
- package/dist/{auth-7Dkf1_CI.js → auth-C4Rs_Ca4.js} +5 -5
- package/dist/{auth-choice-D9LWnNpF.js → auth-choice-BTahePAl.js} +1 -1
- package/dist/{auth-choice-DbTYwdGn.js → auth-choice-ioJ3htvR.js} +1 -1
- package/dist/{auth-choice-prompt-D5YuCYf7.js → auth-choice-prompt-Cigxs_6f.js} +1 -1
- package/dist/{auth-choice-prompt-DFyVEU7J.js → auth-choice-prompt-Db0yW_LH.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +31 -31
- package/dist/bundled/bootstrap-extra-files/handler.js +3 -3
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +31 -31
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-DY_GHJwO.js → channel-activity-D17GYsMz.js} +1 -1
- package/dist/{channel-web-CAJ_OiB2.js → channel-web-CclBHrhb.js} +1 -1
- package/dist/{channel-web-X3OJcLB2.js → channel-web-DIRVjokt.js} +1 -1
- package/dist/{channels-D9Oj681h.js → channels-A880gMB8.js} +6 -6
- package/dist/{channels-BqOjEy1R.js → channels-DWuoO75L.js} +6 -6
- package/dist/{channels-cli-DKRuJbjY.js → channels-cli-54FnZFBp.js} +5 -5
- package/dist/{channels-cli-D5hZAzoE.js → channels-cli-HVr7lRa7.js} +5 -5
- package/dist/{chunk-Cj87uJLo.js → chunk-DfA5CGzI.js} +1 -1
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-ClS8EuDK.js → cli-C8OGL6Ju.js} +2 -2
- package/dist/{cli-Dm0682Gu.js → cli-cnJ-Fwbu.js} +2 -2
- package/dist/{command-registry-C2wqEo64.js → command-registry-BHCwSxmh.js} +9 -9
- package/dist/{commands-registry-Du1VUNqv.js → commands-registry-ShBrc7Zz.js} +1 -1
- package/dist/{completion-cli-B9mW_que.js → completion-cli-BsgojaxZ.js} +2 -2
- package/dist/{completion-cli-DCvm9Xp-.js → completion-cli-DuqDB42S.js} +1 -1
- package/dist/{config-cli-680jTQ3-.js → config-cli-B62owpbq.js} +1 -1
- package/dist/{config-cli-1SYvQdhO.js → config-cli-nRzwa31Y.js} +1 -1
- package/dist/{config-eval-BVvNsPGB.js → config-eval-B5XXAbrm.js} +3 -3
- package/dist/{configure-BfhVLgNf.js → configure-ByLqSsRA.js} +12 -12
- package/dist/{configure-DQLQp2nb.js → configure-CbMYLFUm.js} +12 -12
- package/dist/control-ui/assets/app-DXYMrRJ9.js.map +1 -1
- package/dist/{cron-cli-C4hgRvYJ.js → cron-cli-CLNLFdxi.js} +2 -2
- package/dist/{cron-cli-DQjdHktC.js → cron-cli-CM9CM1GR.js} +2 -2
- package/dist/{daemon-cli-DWhAXx5H.js → daemon-cli-9ids8mMV.js} +1 -1
- package/dist/{daemon-cli-B3OUkSy6.js → daemon-cli-w15TQchq.js} +1 -1
- package/dist/daemon-cli.js +1 -1
- package/dist/{deps-RXAe1X5s.js → deps-BVNeN6gT.js} +1 -1
- package/dist/{deps-DdP-Hmxc.js → deps-Uo5boHSY.js} +1 -1
- package/dist/{diagnostic-D6XQAXl4.js → diagnostic-B4NKiC20.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +1 -1
- package/dist/{fetch-BKzFOgku.js → fetch-BH7uURYM.js} +1 -1
- package/dist/{fetch-guard-B3bzvmt4.js → fetch-guard-DqpQMLwE.js} +1 -1
- package/dist/{filesystem-manager-CrDoOIOx.js → filesystem-manager-DKU5F0fA.js} +4 -4
- package/dist/{fs-safe-DcQcXS6I.js → fs-safe-CwUdejUJ.js} +2 -2
- package/dist/{gateway-cli-Y450jJFF.js → gateway-cli-C9Os2Z5s.js} +27 -27
- package/dist/{gateway-cli-CHukRtBG.js → gateway-cli-CLFeYf4s.js} +27 -27
- package/dist/{github-copilot-token-DYrFvncE.js → github-copilot-token-eyrRGmGp.js} +8 -8
- package/dist/{health-Db548DTY.js → health-CghndVpq.js} +2 -2
- package/dist/{health-C-AsEUPg.js → health-GSYUFoyr.js} +2 -2
- package/dist/{heartbeat-runner-CE9O7xVk.js → heartbeat-runner-1b23y_3_.js} +1 -1
- package/dist/{heartbeat-runner-DAPP5ojq.js → heartbeat-runner-DPtasJ9O.js} +1 -1
- package/dist/{hooks-cli-DpllVSSB.js → hooks-cli-BXZ0yiOV.js} +3 -3
- package/dist/{hooks-cli-ApL31lTH.js → hooks-cli-_VHugcqb.js} +3 -3
- package/dist/index.js +7 -7
- package/dist/{internal-B3yITtDC.js → internal-CU3wrcPl.js} +3 -3
- package/dist/{ipv4-Bh1H98-c.js → ipv4-Cb1Ofo1o.js} +2 -2
- package/dist/{ipv4-D88X6kcK.js → ipv4-h9TrAq_w.js} +2 -2
- package/dist/{lifecycle-D2VlrxY8.js → lifecycle-CBewhyXk.js} +1 -1
- package/dist/{lifecycle-C5O_poBp.js → lifecycle-CV1zHjpj.js} +1 -1
- package/dist/{list.auth-overview-DQUc2B2l.js → list.auth-overview-C8izvpBJ.js} +1 -1
- package/dist/{list.auth-overview-N9tbnvNE.js → list.auth-overview-CvPcpBIP.js} +1 -1
- package/dist/llm-slug-generator.js +31 -31
- package/dist/{login-BPi6GEMh.js → login-DmSOJJZh.js} +2 -2
- package/dist/{login-qr-BaJ9M5z6.js → login-qr-gY230e9k.js} +3 -3
- package/dist/{manager-C05ypUW3.js → manager-Cxjfnksb.js} +8 -8
- package/dist/{markdown-tables-CBLut_ie.js → markdown-tables-DFtTedxN.js} +1 -1
- package/dist/{media-DUBmlR9u.js → media-DZj8v0oe.js} +5 -5
- package/dist/{memory-search-tdsFhtIi.js → memory-search-BxRjHrXP.js} +2 -2
- package/dist/{model-catalog-BQ5G4eK6.js → model-catalog-Iu_LUOVA.js} +6 -6
- package/dist/{models-BObC-MWx.js → models-DqMgO-Ak.js} +4 -4
- package/dist/{models-cli-Bcjaf4CI.js → models-cli-C7WASQac.js} +4 -4
- package/dist/{models-cli-r2llwGBO.js → models-cli-D6H_Kt3i.js} +5 -5
- package/dist/{node-cli-B5TpzQ6U.js → node-cli-B8DI8VK2.js} +2 -2
- package/dist/{node-cli-B8V8ar0H.js → node-cli-CGwktXpe.js} +2 -2
- package/dist/{onboard-C6Z7OaQ8.js → onboard-BR6vBv2I.js} +6 -6
- package/dist/{onboard-D8EOxPOn.js → onboard-C-fjU4uC.js} +6 -6
- package/dist/{onboard-channels-C4gBvkYQ.js → onboard-channels-B3tCPpRS.js} +2 -2
- package/dist/{onboard-channels-CDr6F5Rc.js → onboard-channels-C1UyGFfb.js} +2 -2
- package/dist/{onboard-search-BzpbxIgm.js → onboard-search-CjU6w3Sm.js} +5 -5
- package/dist/{onboard-search-BDLus6nY.js → onboard-search-Ds5KeCF_.js} +5 -5
- package/dist/{onboarding-CIjqOjDq.js → onboarding-BL3becPO.js} +181 -35
- package/dist/{onboarding-DjXH2-ro.js → onboarding-DGAQeYgr.js} +181 -35
- package/dist/{openresponses-http-C9x0SEG6.js → openresponses-http-Bcy1YyQY.js} +2 -2
- package/dist/{openresponses-http-eMouHu_v.js → openresponses-http-DIR_t4i1.js} +31 -31
- package/dist/{openresponses-http-DU9S_V_8.js → openresponses-http-DxsL0uBk.js} +1 -1
- package/dist/{openresponses-http-NFMdHWOs.js → openresponses-http-IVnQ_wz0.js} +2 -2
- package/dist/{openresponses-http-BA2nkk7t.js → openresponses-http-Qb_KOtcX.js} +1 -1
- package/dist/{outbound-BF3W1nJQ.js → outbound-BtgGTj4E.js} +6 -6
- package/dist/{outbound-attachment-CZV6JZkx.js → outbound-attachment-NKTzAe-U.js} +2 -2
- package/dist/{parent-default-help-zu6kW9Un.js → parent-default-help-BJGqN88G.js} +1 -1
- package/dist/{parent-default-help-k4GD2-UF.js → parent-default-help-XXsayZks.js} +1 -1
- package/dist/{path-alias-guards--dquYHnR.js → path-alias-guards-BgsM3Cb3.js} +1 -1
- package/dist/{paths-BGX-IMoI.js → paths-57KGLbK2.js} +22 -22
- package/dist/{pi-embedded-DPElH0OZ.js → pi-embedded-CZAiurHo.js} +5 -5
- package/dist/{pi-embedded-Pkm2p81t.js → pi-embedded-qk5CdQmR.js} +239 -239
- package/dist/{pi-model-discovery-DYwyxntg.js → pi-model-discovery-CfcnLOyX.js} +7 -7
- package/dist/pi-model-discovery-runtime-D85aZCOu.js +5 -0
- package/dist/{plugin-registry-DEewJtHt.js → plugin-registry-Bw0a_OGC.js} +1 -1
- package/dist/{plugin-registry-DfO1RfZv.js → plugin-registry-Dqk6vxYj.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-a_1hr0Eg.js → audio-preflight-BO8XDtTk.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-L8bE2tgB.js → audio-preflight-DK-6iXZY.js} +1 -1
- package/dist/plugin-sdk/channel-plugin-common.js +1 -1
- package/dist/plugin-sdk/{channel-web-BNlpZrWA.js → channel-web-DgXfvJo-.js} +1 -1
- package/dist/plugin-sdk/command-status.js +1 -1
- package/dist/plugin-sdk/index.js +2 -2
- package/dist/plugin-sdk/{openresponses-http-DuRGQn_a.js → openresponses-http-DBFqruTK.js} +1 -1
- package/dist/plugin-sdk/{openresponses-http-BBdkt744.js → openresponses-http-RBdNxv8F.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-runtime-FgSYY3zE.js → pi-model-discovery-runtime-BWcaNxzp.js} +1 -1
- package/dist/plugin-sdk/{registry-DyRgZdL8.js → registry-DXXOSq_V.js} +8 -8
- package/dist/plugin-sdk/{reply-DclM907b.js → reply-Bb9pzXn4.js} +5 -5
- package/dist/plugin-sdk/src/brand.d.ts +2 -2
- package/dist/plugin-sdk/{status-EnvYKAtO.js → status-CHo58oXD.js} +5 -5
- package/dist/plugin-sdk/{web-C0nKlODk.js → web-B-fwFsth.js} +1 -1
- package/dist/plugin-sdk/{web-BrtGwPHN.js → web-BIIifta2.js} +2 -2
- package/dist/{plugins-cli-BU7lm9mm.js → plugins-cli-BKlKaixI.js} +5 -5
- package/dist/{plugins-cli-Be4GLYdI.js → plugins-cli-dvRFoJCC.js} +5 -5
- package/dist/{program-B78oSJVp.js → program-P-9mYfYw.js} +7 -7
- package/dist/{program-context-DpABaPXE.js → program-context-DZ2qDI4u.js} +24 -24
- package/dist/{prompt-select-styled-DI5ODziX.js → prompt-select-styled-CdVuqLJH.js} +4 -4
- package/dist/{prompt-select-styled-DmcQ0_hv.js → prompt-select-styled-DHjjwvXl.js} +4 -4
- package/dist/{pw-ai-42y3optV.js → pw-ai-CmgZwdpF.js} +5 -5
- package/dist/{qmd-manager-BPz-XVY5.js → qmd-manager-B4jAaAzx.js} +5 -5
- package/dist/{qmd-scope-D2okAldm.js → qmd-scope-BdblEj4C.js} +1 -1
- package/dist/{query-expansion-f4DE13gJ.js → query-expansion-JhTilyB1.js} +2 -2
- package/dist/{register.agent-FC9A__Az.js → register.agent-Be3pMMEj.js} +8 -8
- package/dist/{register.agent-DOychJ9q.js → register.agent-rgc26ryI.js} +9 -9
- package/dist/{register.configure-ybGicOMR.js → register.configure-BKYZzj-a.js} +12 -12
- package/dist/{register.configure-i3gbc5Cc.js → register.configure-DUgwZXRG.js} +12 -12
- package/dist/{register.maintenance-CYX_k6x1.js → register.maintenance-CEB2_x4K.js} +8 -8
- package/dist/{register.maintenance-MPPzwTam.js → register.maintenance-OE1jM64G.js} +9 -9
- package/dist/{register.message-D6NFTigk.js → register.message-CUE4ZFjr.js} +3 -3
- package/dist/{register.message-C_Q6o32_.js → register.message-vxrokTGv.js} +3 -3
- package/dist/{register.onboard-DqR_m0_p.js → register.onboard-Cyymwvc3.js} +14 -14
- package/dist/{register.onboard-PbsAD-eY.js → register.onboard-Dg3786vL.js} +14 -14
- package/dist/{register.setup-COidGsw2.js → register.setup-B6uH9Fkv.js} +14 -14
- package/dist/{register.setup-DMqotP6N.js → register.setup-BNk3o4bu.js} +14 -14
- package/dist/{register.status-health-sessions-CeY5Pzgk.js → register.status-health-sessions-DXgm8jTd.js} +6 -6
- package/dist/{register.status-health-sessions-CPBz-3k7.js → register.status-health-sessions-n5YTxXMt.js} +6 -6
- package/dist/{register.subclis-Dxe0Sco3.js → register.subclis-h2rwp41b.js} +16 -16
- package/dist/{replies-Bn06Bh1x.js → replies-afs2sQ1G.js} +2 -2
- package/dist/{reply-701mJB_S.js → reply-C6zXCUnw.js} +6 -6
- package/dist/{reply-prefix-DwrVxkMY.js → reply-prefix-CG0zciBg.js} +1 -1
- package/dist/{resolve-route-B4dOoe-E.js → resolve-route-DZkIcri6.js} +1 -1
- package/dist/{run-main-BvouUOJB.js → run-main-BW1xk67k.js} +14 -14
- package/dist/{runtime-helper-grants-CjDNw01t.js → runtime-helper-grants-BotyKHoQ.js} +1 -1
- package/dist/{runtime-helper-grants-B5q5llgE.js → runtime-helper-grants-DlthXnch.js} +1 -1
- package/dist/{sandbox-cli-MNviI01s.js → sandbox-cli-B74LKmmu.js} +2 -2
- package/dist/{sandbox-cli-DKUHq66f.js → sandbox-cli-DVrOgz6X.js} +2 -2
- package/dist/{security-cli-C4J7sHdd.js → security-cli-B_v3gSPc.js} +3 -3
- package/dist/{security-cli-D2jFeCER.js → security-cli-DUh-3-R1.js} +3 -3
- package/dist/{send-vR6HwT94.js → send-CABrQiXU.js} +4 -4
- package/dist/{send-BQMxv218.js → send-CUYy-rA3.js} +7 -7
- package/dist/{send-kLcLFjb8.js → send-DE1no-h6.js} +5 -5
- package/dist/{send-BsajjIj8.js → send-iIy3frXq.js} +5 -5
- package/dist/{send-Da1hCe1A.js → send-lQXOUIaW.js} +18 -18
- package/dist/{server-CvQUqV31.js → server-BWmtB5RG.js} +2 -2
- package/dist/{server-BRsV4GHd.js → server-CVXoSpqC.js} +2 -2
- package/dist/{server-cron-BV2pPZ-O.js → server-cron-D0oLzDes.js} +2 -2
- package/dist/{server-cron-C-3djfm_.js → server-cron-DBSvrOWz.js} +2 -2
- package/dist/{server-node-events-Ce-RXuis.js → server-node-events-BGkUHSkq.js} +3 -3
- package/dist/{server-node-events-Bi8FQeYu.js → server-node-events-TmYB-LGW.js} +3 -3
- package/dist/{session-ZMAktQw4.js → session-TK9Idt8g.js} +5 -5
- package/dist/{skill-commands-BP6zVlmg.js → skill-commands-CCjZMCdx.js} +24 -24
- package/dist/{status-DoLjTnlQ.js → status-C1qehkux.js} +1 -1
- package/dist/{status-CIb_4gfm.js → status-CGYle9wh.js} +4 -4
- package/dist/{status-D9As1GK-.js → status-DVTZ42Xi.js} +1 -1
- package/dist/{status-BiHSisy7.js → status-hNS_-DU5.js} +4 -4
- package/dist/{tables-DMwrn7NN.js → tables-H4kq3TrS.js} +1 -1
- package/dist/{target-errors-CR_hozUt.js → target-errors-9BsSMzQY.js} +2 -2
- package/dist/{tool-loop-detection-DZ-oTJiQ.js → tool-loop-detection-D4MYRJWP.js} +2 -2
- package/dist/{tui-BpbyDMEE.js → tui-ARPlmctm.js} +1 -1
- package/dist/{tui-D9armVLc.js → tui-D6_aw9hu.js} +1 -1
- package/dist/{tui-cli-lN5CL6pA.js → tui-cli-CDBUp2y3.js} +3 -3
- package/dist/{tui-cli-A_j8l8a3.js → tui-cli-CYkhnUmj.js} +3 -3
- package/dist/{update-cli-DRefGXK8.js → update-cli-CVPEyzw1.js} +10 -10
- package/dist/{update-cli-B8_evObo.js → update-cli-ChNYv3li.js} +9 -9
- package/dist/{update-runner-DnLLf66O.js → update-runner-CMe4a4QF.js} +1 -1
- package/dist/{update-runner-Bd7n68kz.js → update-runner-dCQywbJs.js} +1 -1
- package/dist/{web-D-SMykKz.js → web-BIREWy8I.js} +35 -35
- package/dist/{web-778GrijN.js → web-Bly-ch0b.js} +1 -1
- package/dist/{web-CPKh7bSP.js → web-BvK9MRcp.js} +1 -1
- package/dist/{web-DEuBtNld.js → web-CCLojlog.js} +3 -3
- package/dist/{web-Z5JZl5Nc.js → web-CvJzsQ59.js} +3 -3
- package/dist/{web-search-providers.runtime-AAOfSU2b.js → web-search-providers.runtime-BCjJQLBJ.js} +1 -1
- package/dist/{web-search-providers.runtime-DcgcyEiV.js → web-search-providers.runtime-DCy32Tl0.js} +1 -1
- package/dist/{whatsapp-actions-favixTth.js → whatsapp-actions-C0w9GEJM.js} +12 -12
- package/docs/install/index.md +8 -1
- package/docs/install/installer.md +9 -6
- package/docs/install/vps.md +9 -2
- package/docs/start/wizard.md +9 -2
- 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/discord/package.json +1 -1
- package/extensions/fased-federation/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/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 +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +12 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +12 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/sat-mining/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/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/whatsapp/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +12 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +12 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/pi-model-discovery-runtime-BhaI9PU2.js +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { i as resolveAgentConfig } from "./agent-scope-
|
|
2
|
+
import { i as resolveAgentConfig } from "./agent-scope-DwKyukUg.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agents/identity.ts
|
|
5
5
|
const DEFAULT_ACK_REACTION = "👀";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { $a as DEFAULT_MAIN_KEY, Bi as logDebug, Es as shouldLogVerbose, Ia as listBindings, Qa as DEFAULT_AGENT_ID, co as sanitizeAgentId, eo as buildAgentMainSessionKey, io as normalizeAgentId, lo as DEFAULT_ACCOUNT_ID, to as buildAgentPeerSessionKey, u as resolveDefaultAgentId, uo as normalizeAccountId } from "./agent-scope-
|
|
2
|
+
import { $a as DEFAULT_MAIN_KEY, Bi as logDebug, Es as shouldLogVerbose, Ia as listBindings, Qa as DEFAULT_AGENT_ID, co as sanitizeAgentId, eo as buildAgentMainSessionKey, io as normalizeAgentId, lo as DEFAULT_ACCOUNT_ID, to as buildAgentPeerSessionKey, u as resolveDefaultAgentId, uo as normalizeAccountId } from "./agent-scope-DwKyukUg.js";
|
|
3
3
|
import { r as normalizeChatType } from "./conversation-label-BNq0hhpR.js";
|
|
4
4
|
|
|
5
5
|
//#region src/routing/resolve-route.ts
|
|
@@ -2,7 +2,7 @@ import { Pl as loadDotEnv, Yc as VERSION, hu as enableConsoleCapture, ka as asse
|
|
|
2
2
|
import "./agent-paths-BI1hx-tF.js";
|
|
3
3
|
import "./send-D7X0_iFp.js";
|
|
4
4
|
import "./send-BFEd4vCM.js";
|
|
5
|
-
import { I as emitCliBanner, Tn as installUnhandledRejectionHandler } from "./model-catalog-
|
|
5
|
+
import { I as emitCliBanner, Tn as installUnhandledRejectionHandler } from "./model-catalog-Iu_LUOVA.js";
|
|
6
6
|
import "./github-copilot-token-A9DiaCB0.js";
|
|
7
7
|
import { A as defaultRuntime, At as getVerboseFlag, Dt as getFlagValue, Et as getCommandPath, Mt as hasHelpOrVersion, Ot as getPositiveIntFlagValue, S as formatUncaughtError, jt as hasFlag, kt as getPrimaryCommand, wt as normalizeWindowsArgv } from "./entry.js";
|
|
8
8
|
import "./reply-prefix-TUhpEtvr.js";
|
|
@@ -45,7 +45,7 @@ import "./send-C-su1wPZ.js";
|
|
|
45
45
|
import "./outbound-attachment-Bh4FmcYg.js";
|
|
46
46
|
import "./fetch-BVvWzHT_.js";
|
|
47
47
|
import "./delivery-queue-55Cityuq.js";
|
|
48
|
-
import "./deps-
|
|
48
|
+
import "./deps-Uo5boHSY.js";
|
|
49
49
|
import "./frontmatter-D2UNJikU.js";
|
|
50
50
|
import "./skills-Dis31awJ.js";
|
|
51
51
|
import "./skills-remote-CIAB0AXm.js";
|
|
@@ -75,7 +75,7 @@ import "./replies-FXlmpJVO.js";
|
|
|
75
75
|
import "./prompt-style-Rmj3c-Ir.js";
|
|
76
76
|
import "./pairing-labels-BCM1S2e_.js";
|
|
77
77
|
import { t as ensureFasedAgentCliOnPath } from "./path-env-BeuN3Box.js";
|
|
78
|
-
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
78
|
+
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-Bw0a_OGC.js";
|
|
79
79
|
import "./note-rV2vspIo.js";
|
|
80
80
|
import "./doctor-config-flow-B-I0osH5.js";
|
|
81
81
|
import { n as ensureConfigReady } from "./config-guard-DnCSSIeP.js";
|
|
@@ -91,7 +91,7 @@ const routeHealth = {
|
|
|
91
91
|
const verbose = getVerboseFlag(argv, { includeDebug: true });
|
|
92
92
|
const timeoutMs = getPositiveIntFlagValue(argv, "--timeout");
|
|
93
93
|
if (timeoutMs === null) return false;
|
|
94
|
-
const { healthCommand } = await import("./health-
|
|
94
|
+
const { healthCommand } = await import("./health-CghndVpq.js").then((n) => n.a);
|
|
95
95
|
await healthCommand({
|
|
96
96
|
json,
|
|
97
97
|
timeoutMs,
|
|
@@ -112,7 +112,7 @@ const routeStatus = {
|
|
|
112
112
|
const verbose = getVerboseFlag(argv, { includeDebug: true });
|
|
113
113
|
const timeoutMs = getPositiveIntFlagValue(argv, "--timeout");
|
|
114
114
|
if (timeoutMs === null) return false;
|
|
115
|
-
const { statusCommand } = await import("./status-
|
|
115
|
+
const { statusCommand } = await import("./status-CGYle9wh.js").then((n) => n.t);
|
|
116
116
|
await statusCommand({
|
|
117
117
|
json,
|
|
118
118
|
deep,
|
|
@@ -151,7 +151,7 @@ const routeAgentsList = {
|
|
|
151
151
|
run: async (argv) => {
|
|
152
152
|
const json = hasFlag(argv, "--json");
|
|
153
153
|
const bindings = hasFlag(argv, "--bindings");
|
|
154
|
-
const { agentsListCommand } = await import("./agents-
|
|
154
|
+
const { agentsListCommand } = await import("./agents-J1fRpMRy.js");
|
|
155
155
|
await agentsListCommand({
|
|
156
156
|
json,
|
|
157
157
|
bindings
|
|
@@ -243,7 +243,7 @@ const routes = [
|
|
|
243
243
|
const pathArg = getCommandPositionals(argv)[2];
|
|
244
244
|
if (!pathArg) return false;
|
|
245
245
|
const json = hasFlag(argv, "--json");
|
|
246
|
-
const { runConfigGet } = await import("./config-cli-
|
|
246
|
+
const { runConfigGet } = await import("./config-cli-nRzwa31Y.js");
|
|
247
247
|
await runConfigGet({
|
|
248
248
|
path: pathArg,
|
|
249
249
|
json
|
|
@@ -256,7 +256,7 @@ const routes = [
|
|
|
256
256
|
run: async (argv) => {
|
|
257
257
|
const pathArg = getCommandPositionals(argv)[2];
|
|
258
258
|
if (!pathArg) return false;
|
|
259
|
-
const { runConfigUnset } = await import("./config-cli-
|
|
259
|
+
const { runConfigUnset } = await import("./config-cli-nRzwa31Y.js");
|
|
260
260
|
await runConfigUnset({ path: pathArg });
|
|
261
261
|
return true;
|
|
262
262
|
}
|
|
@@ -270,7 +270,7 @@ const routes = [
|
|
|
270
270
|
const local = hasFlag(argv, "--local");
|
|
271
271
|
const json = hasFlag(argv, "--json");
|
|
272
272
|
const plain = hasFlag(argv, "--plain");
|
|
273
|
-
const { modelsListCommand } = await import("./models-
|
|
273
|
+
const { modelsListCommand } = await import("./models-DqMgO-Ak.js");
|
|
274
274
|
await modelsListCommand({
|
|
275
275
|
all,
|
|
276
276
|
local,
|
|
@@ -301,7 +301,7 @@ const routes = [
|
|
|
301
301
|
const plain = hasFlag(argv, "--plain");
|
|
302
302
|
const check = hasFlag(argv, "--check");
|
|
303
303
|
const probe = hasFlag(argv, "--probe");
|
|
304
|
-
const { modelsStatusCommand } = await import("./models-
|
|
304
|
+
const { modelsStatusCommand } = await import("./models-DqMgO-Ak.js");
|
|
305
305
|
await modelsStatusCommand({
|
|
306
306
|
json,
|
|
307
307
|
plain,
|
|
@@ -384,7 +384,7 @@ async function runCli(argv = process$1.argv) {
|
|
|
384
384
|
assertSupportedRuntime();
|
|
385
385
|
if (await tryRouteCli(normalizedArgv)) return;
|
|
386
386
|
enableConsoleCapture();
|
|
387
|
-
const { buildProgram } = await import("./program-
|
|
387
|
+
const { buildProgram } = await import("./program-P-9mYfYw.js");
|
|
388
388
|
const program = buildProgram();
|
|
389
389
|
installUnhandledRejectionHandler();
|
|
390
390
|
process$1.on("uncaughtException", (error) => {
|
|
@@ -397,10 +397,10 @@ async function runCli(argv = process$1.argv) {
|
|
|
397
397
|
const { getProgramContext } = await import("./program-context-CDFrVtWb.js").then((n) => n.n);
|
|
398
398
|
const ctx = getProgramContext(program);
|
|
399
399
|
if (ctx) {
|
|
400
|
-
const { registerCoreCliByName } = await import("./command-registry-
|
|
400
|
+
const { registerCoreCliByName } = await import("./command-registry-BHCwSxmh.js").then((n) => n.t);
|
|
401
401
|
await registerCoreCliByName(program, ctx, primary, parseArgv);
|
|
402
402
|
}
|
|
403
|
-
const { registerSubCliByName } = await import("./register.subclis-
|
|
403
|
+
const { registerSubCliByName } = await import("./register.subclis-h2rwp41b.js").then((n) => n.a);
|
|
404
404
|
await registerSubCliByName(program, primary);
|
|
405
405
|
}
|
|
406
406
|
if (!shouldSkipPluginCommandRegistration({
|
|
@@ -408,7 +408,7 @@ async function runCli(argv = process$1.argv) {
|
|
|
408
408
|
primary,
|
|
409
409
|
hasBuiltinPrimary: primary !== null && program.commands.some((command) => command.name() === primary)
|
|
410
410
|
})) {
|
|
411
|
-
const { registerPluginCliCommands } = await import("./cli-
|
|
411
|
+
const { registerPluginCliCommands } = await import("./cli-C8OGL6Ju.js");
|
|
412
412
|
const { loadConfig } = await import("./env-C77feXxI.js").then((n) => n.qt);
|
|
413
413
|
registerPluginCliCommands(program, loadConfig());
|
|
414
414
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Af as PLUGIN_ADMIN_RPC_ACTION_METHODS, Lf as resolvePluginAdminRpcActionGrant, Mf as isPluginRuntimeSessionReadAllowed, Oa as loadPluginManifestRegistry, Pf as normalizePluginsConfig, Rf as resolvePluginAdminRpcActionSourceKeys, Xt as loadConfig, ll as validateRegistryNpmSpec } from "./env-C77feXxI.js";
|
|
2
2
|
import { d as listChannelPluginCatalogEntries } from "./dangerous-name-matching-CFRKz8Uq.js";
|
|
3
3
|
import { i as resolveBundledPluginSources } from "./update-D4rhRm3D.js";
|
|
4
|
-
import { n as buildPluginLifecycleReport } from "./lifecycle-
|
|
4
|
+
import { n as buildPluginLifecycleReport } from "./lifecycle-CV1zHjpj.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/marketplace-update-review.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Df as resolvePluginAdminRpcActionGrant, Dn as loadConfig, Of as resolvePluginAdminRpcActionSourceKeys, Sf as isPluginRuntimeSessionReadAllowed, Vl as validateRegistryNpmSpec, ao as loadPluginManifestRegistry, bf as PLUGIN_ADMIN_RPC_ACTION_METHODS, wf as normalizePluginsConfig } from "./agent-scope-DHrLr5OF.js";
|
|
2
2
|
import { c as listChannelPluginCatalogEntries } from "./dangerous-name-matching-CnyEIiOk.js";
|
|
3
3
|
import { i as resolveBundledPluginSources } from "./update-Dew6hqdf.js";
|
|
4
|
-
import { n as buildPluginLifecycleReport } from "./lifecycle-
|
|
4
|
+
import { n as buildPluginLifecycleReport } from "./lifecycle-CBewhyXk.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/marketplace-update-review.ts
|
|
@@ -2,7 +2,7 @@ import { Cu as formatCliCommand, Gt as resolveMainSessionKey, Ru as resolveAgent
|
|
|
2
2
|
import { B as colorize, H as theme, V as isRich } from "./agent-paths-BI1hx-tF.js";
|
|
3
3
|
import "./send-D7X0_iFp.js";
|
|
4
4
|
import "./send-BFEd4vCM.js";
|
|
5
|
-
import { An as listSandboxBrowsers, Eo as resolveSandboxConfigForAgent, Mn as removeSandboxBrowserContainer, Nn as removeSandboxContainer, Oo as resolveSandboxToolPolicyForAgent, jn as listSandboxContainers } from "./model-catalog-
|
|
5
|
+
import { An as listSandboxBrowsers, Eo as resolveSandboxConfigForAgent, Mn as removeSandboxBrowserContainer, Nn as removeSandboxContainer, Oo as resolveSandboxToolPolicyForAgent, jn as listSandboxContainers } from "./model-catalog-Iu_LUOVA.js";
|
|
6
6
|
import "./github-copilot-token-A9DiaCB0.js";
|
|
7
7
|
import { A as defaultRuntime, H as normalizeMainKey, L as buildAgentMainSessionKey, U as resolveAgentIdFromSessionKey, V as normalizeAgentId, it as parseAgentSessionKey, v as resolveStorePath } from "./entry.js";
|
|
8
8
|
import "./reply-prefix-TUhpEtvr.js";
|
|
@@ -45,7 +45,7 @@ import "./send-C-su1wPZ.js";
|
|
|
45
45
|
import "./outbound-attachment-Bh4FmcYg.js";
|
|
46
46
|
import "./fetch-BVvWzHT_.js";
|
|
47
47
|
import "./delivery-queue-55Cityuq.js";
|
|
48
|
-
import "./deps-
|
|
48
|
+
import "./deps-Uo5boHSY.js";
|
|
49
49
|
import "./frontmatter-D2UNJikU.js";
|
|
50
50
|
import "./skills-Dis31awJ.js";
|
|
51
51
|
import "./skills-remote-CIAB0AXm.js";
|
|
@@ -2,7 +2,7 @@ import "./paths-C9FmTW1x.js";
|
|
|
2
2
|
import { H as isRich, U as theme, V as colorize } from "./agent-paths-DmOVZE7g.js";
|
|
3
3
|
import { Dn as loadConfig, Et as loadSessionStore, Sn as resolveMainSessionKey, V as normalizeAnyChannelId, bn as resolveAgentMainSessionKey, dd as formatCliCommand, ef as INTERNAL_MESSAGE_CHANNEL, i as resolveAgentConfig } from "./agent-scope-DHrLr5OF.js";
|
|
4
4
|
import "./commands-registry-BRvZQ1jh.js";
|
|
5
|
-
import { $ as listSandboxContainers, Q as listSandboxBrowsers, et as removeSandboxBrowserContainer, is as resolveSandboxConfigForAgent, os as resolveSandboxToolPolicyForAgent, tt as removeSandboxContainer } from "./reply-
|
|
5
|
+
import { $ as listSandboxContainers, Q as listSandboxBrowsers, et as removeSandboxBrowserContainer, is as resolveSandboxConfigForAgent, os as resolveSandboxToolPolicyForAgent, tt as removeSandboxContainer } from "./reply-C6zXCUnw.js";
|
|
6
6
|
import { c as normalizeMainKey, l as resolveAgentIdFromSessionKey, r as buildAgentMainSessionKey, s as normalizeAgentId, w as parseAgentSessionKey } from "./session-key-LmCHAJTQ.js";
|
|
7
7
|
import { d as defaultRuntime } from "./errors-Dx3S3Nrp.js";
|
|
8
8
|
import "./send-C5_fB8YQ.js";
|
|
@@ -38,7 +38,7 @@ import "./ssrf-Blf4NrHS.js";
|
|
|
38
38
|
import "./outbound-attachment-CsXJwFsg.js";
|
|
39
39
|
import "./fetch-CnCPOuq7.js";
|
|
40
40
|
import "./delivery-queue-DKRjVFlq.js";
|
|
41
|
-
import "./deps-
|
|
41
|
+
import "./deps-BVNeN6gT.js";
|
|
42
42
|
import "./memory-DDpj0IVA.js";
|
|
43
43
|
import "./memory-search-BwYkW6_V.js";
|
|
44
44
|
import "./manager-BmONwMiP.js";
|
|
@@ -2,7 +2,7 @@ import { Cu as formatCliCommand, Gu as resolveDefaultAgentId, Xt as loadConfig,
|
|
|
2
2
|
import { C as shortenHomeInString, H as theme, V as isRich, w as shortenHomePath } from "./agent-paths-BI1hx-tF.js";
|
|
3
3
|
import "./send-D7X0_iFp.js";
|
|
4
4
|
import "./send-BFEd4vCM.js";
|
|
5
|
-
import "./model-catalog-
|
|
5
|
+
import "./model-catalog-Iu_LUOVA.js";
|
|
6
6
|
import "./github-copilot-token-A9DiaCB0.js";
|
|
7
7
|
import { A as defaultRuntime, Ct as resolveStateDir, J as DEFAULT_ACCOUNT_ID, V as normalizeAgentId, ft as resolveConfigPath, xt as resolveOAuthDir } from "./entry.js";
|
|
8
8
|
import "./reply-prefix-TUhpEtvr.js";
|
|
@@ -45,7 +45,7 @@ import "./send-C-su1wPZ.js";
|
|
|
45
45
|
import "./outbound-attachment-Bh4FmcYg.js";
|
|
46
46
|
import "./fetch-BVvWzHT_.js";
|
|
47
47
|
import "./delivery-queue-55Cityuq.js";
|
|
48
|
-
import "./deps-
|
|
48
|
+
import "./deps-Uo5boHSY.js";
|
|
49
49
|
import "./frontmatter-D2UNJikU.js";
|
|
50
50
|
import "./skills-Dis31awJ.js";
|
|
51
51
|
import "./skills-remote-CIAB0AXm.js";
|
|
@@ -74,7 +74,7 @@ import "./progress-DkVYFLij.js";
|
|
|
74
74
|
import "./replies-FXlmpJVO.js";
|
|
75
75
|
import "./prompt-style-Rmj3c-Ir.js";
|
|
76
76
|
import "./pairing-labels-BCM1S2e_.js";
|
|
77
|
-
import { n as collectIncludePathsRecursive, t as runSecurityAudit } from "./audit-
|
|
77
|
+
import { n as collectIncludePathsRecursive, t as runSecurityAudit } from "./audit-BGrhx_IL.js";
|
|
78
78
|
import path from "node:path";
|
|
79
79
|
import fs from "node:fs/promises";
|
|
80
80
|
|
|
@@ -2,7 +2,7 @@ import { _ as resolveStateDir, h as resolveOAuthDir, o as resolveConfigPath } fr
|
|
|
2
2
|
import { H as isRich, T as shortenHomePath, U as theme, w as shortenHomeInString } from "./agent-paths-DmOVZE7g.js";
|
|
3
3
|
import { Dn as loadConfig, En as createConfigIO, Na as createIcaclsResetCommand, Pa as formatIcaclsResetCommand, d as resolveDefaultAgentId, dd as formatCliCommand, eu as runExec } from "./agent-scope-DHrLr5OF.js";
|
|
4
4
|
import "./commands-registry-BRvZQ1jh.js";
|
|
5
|
-
import "./reply-
|
|
5
|
+
import "./reply-C6zXCUnw.js";
|
|
6
6
|
import { m as DEFAULT_ACCOUNT_ID, s as normalizeAgentId } from "./session-key-LmCHAJTQ.js";
|
|
7
7
|
import { d as defaultRuntime } from "./errors-Dx3S3Nrp.js";
|
|
8
8
|
import "./send-C5_fB8YQ.js";
|
|
@@ -38,7 +38,7 @@ import "./ssrf-Blf4NrHS.js";
|
|
|
38
38
|
import "./outbound-attachment-CsXJwFsg.js";
|
|
39
39
|
import "./fetch-CnCPOuq7.js";
|
|
40
40
|
import "./delivery-queue-DKRjVFlq.js";
|
|
41
|
-
import "./deps-
|
|
41
|
+
import "./deps-BVNeN6gT.js";
|
|
42
42
|
import "./memory-DDpj0IVA.js";
|
|
43
43
|
import "./memory-search-BwYkW6_V.js";
|
|
44
44
|
import "./manager-BmONwMiP.js";
|
|
@@ -77,7 +77,7 @@ import "./skills-remote-BghdrdFV.js";
|
|
|
77
77
|
import "./skill-commands-QW8zKXC_.js";
|
|
78
78
|
import "./prompt-style-CWAacuMq.js";
|
|
79
79
|
import "./pairing-labels-D2yOKhoV.js";
|
|
80
|
-
import { n as collectIncludePathsRecursive, t as runSecurityAudit } from "./audit-
|
|
80
|
+
import { n as collectIncludePathsRecursive, t as runSecurityAudit } from "./audit-DQyLAEfl.js";
|
|
81
81
|
import path from "node:path";
|
|
82
82
|
import fs from "node:fs/promises";
|
|
83
83
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Gt as loadConfig, Va as resolveSlackBotToken, as as escapeRegExp, ws as logVerbose, za as resolveSlackAccount } from "./agent-scope-
|
|
2
|
+
import { Gt as loadConfig, Va as resolveSlackBotToken, as as escapeRegExp, ws as logVerbose, za as resolveSlackAccount } from "./agent-scope-DwKyukUg.js";
|
|
3
3
|
import { a as requireTargetKind, i as parseTargetPrefixes, n as ensureTargetId, r as parseTargetMention, t as buildMessagingTarget } from "./targets-B9iqwm4b.js";
|
|
4
|
-
import { d as chunkMarkdownIR, f as markdownToIR, n as loadWebMedia } from "./media-
|
|
5
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-
|
|
6
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
4
|
+
import { d as chunkMarkdownIR, f as markdownToIR, n as loadWebMedia } from "./media-DZj8v0oe.js";
|
|
5
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-DfA5CGzI.js";
|
|
6
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DFtTedxN.js";
|
|
7
7
|
import { t as renderMarkdownWithMarkers } from "./render-BRr7caFG.js";
|
|
8
8
|
import { WebClient } from "@slack/web-api";
|
|
9
9
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Dr as retryAsync, Er as resolveRetryConfig, Fs as resolvePreferredFasedAgentTmpDir, Gt as loadConfig, Ja as normalizeDiscordToken, qa as resolveDiscordAccount } from "./agent-scope-
|
|
2
|
+
import { Dr as retryAsync, Er as resolveRetryConfig, Fs as resolvePreferredFasedAgentTmpDir, Gt as loadConfig, Ja as normalizeDiscordToken, qa as resolveDiscordAccount } from "./agent-scope-DwKyukUg.js";
|
|
3
3
|
import { a as requireTargetKind, i as parseTargetPrefixes, n as ensureTargetId, r as parseTargetMention, t as buildMessagingTarget } from "./targets-B9iqwm4b.js";
|
|
4
|
-
import { T as maxBytesForKind, _ as extensionForMime, n as loadWebMedia, r as loadWebMediaRaw } from "./media-
|
|
5
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode } from "./chunk-
|
|
6
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
7
|
-
import { t as resolveFetch } from "./fetch-
|
|
4
|
+
import { T as maxBytesForKind, _ as extensionForMime, n as loadWebMedia, r as loadWebMediaRaw } from "./media-DZj8v0oe.js";
|
|
5
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode } from "./chunk-DfA5CGzI.js";
|
|
6
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DFtTedxN.js";
|
|
7
|
+
import { t as resolveFetch } from "./fetch-BH7uURYM.js";
|
|
8
8
|
import { n as normalizePollInput, t as normalizePollDurationHours } from "./polls-CYTwXmA1.js";
|
|
9
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-
|
|
10
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
9
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-D17GYsMz.js";
|
|
10
|
+
import { t as convertMarkdownTables } from "./tables-H4kq3TrS.js";
|
|
11
11
|
import fs from "node:fs/promises";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import { promisify } from "node:util";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Gt as loadConfig, Wa as resolveIMessageAccount, ps as resolveUserPath, us as normalizeE164 } from "./agent-scope-
|
|
3
|
-
import { E as mediaKindFromMime } from "./media-
|
|
4
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
5
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
6
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
2
|
+
import { Gt as loadConfig, Wa as resolveIMessageAccount, ps as resolveUserPath, us as normalizeE164 } from "./agent-scope-DwKyukUg.js";
|
|
3
|
+
import { E as mediaKindFromMime } from "./media-DZj8v0oe.js";
|
|
4
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DFtTedxN.js";
|
|
5
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-NKTzAe-U.js";
|
|
6
|
+
import { t as convertMarkdownTables } from "./tables-H4kq3TrS.js";
|
|
7
7
|
import { spawn } from "node:child_process";
|
|
8
8
|
import { createInterface } from "node:readline";
|
|
9
9
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Gt as loadConfig, Ua as resolveSignalAccount } from "./agent-scope-
|
|
2
|
+
import { Gt as loadConfig, Ua as resolveSignalAccount } from "./agent-scope-DwKyukUg.js";
|
|
3
3
|
import { n as generateSecureUuid } from "./secure-random-CSsVRTTy.js";
|
|
4
|
-
import { E as mediaKindFromMime, d as chunkMarkdownIR, f as markdownToIR } from "./media-
|
|
5
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
4
|
+
import { E as mediaKindFromMime, d as chunkMarkdownIR, f as markdownToIR } from "./media-DZj8v0oe.js";
|
|
5
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DFtTedxN.js";
|
|
6
6
|
import { n as fetchWithTimeout } from "./fetch-timeout-ByUoGUeM.js";
|
|
7
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
8
|
-
import { t as resolveFetch } from "./fetch-
|
|
7
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-NKTzAe-U.js";
|
|
8
|
+
import { t as resolveFetch } from "./fetch-BH7uURYM.js";
|
|
9
9
|
|
|
10
10
|
//#region src/signal/format.ts
|
|
11
11
|
function normalizeUrlForComparison(url) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { $n as resolveTelegramPreviewStreamMode, Ai as extractErrorCode, Gt as loadConfig, Jt as readConfigFileSnapshotForWrite, La as isTruthyEnvValue, Mi as formatUncaughtError, Na as resolveTelegramAccount, Pi as redactSensitiveText, Ss as danger, Xt as writeConfigFile, Yr as withFileLock$1, es as CONFIG_DIR, ji as formatErrorMessage, k as createSubsystemLogger, lo as DEFAULT_ACCOUNT_ID, ms as safeParseJson, na as listChannelPlugins, ta as getChannelPlugin, uo as normalizeAccountId, ws as logVerbose } from "./agent-scope-
|
|
3
|
-
import { f as resolveStateDir, h as resolveRequiredHomeDir, p as expandHomePrefix, u as resolveOAuthDir } from "./github-copilot-token-
|
|
4
|
-
import { C as normalizeMimeType, E as mediaKindFromMime, d as chunkMarkdownIR, f as markdownToIR, n as loadWebMedia, v as getFileExtension, x as isGifMedia } from "./media-
|
|
5
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
6
|
-
import { t as resolveFetch } from "./fetch-
|
|
2
|
+
import { $n as resolveTelegramPreviewStreamMode, Ai as extractErrorCode, Gt as loadConfig, Jt as readConfigFileSnapshotForWrite, La as isTruthyEnvValue, Mi as formatUncaughtError, Na as resolveTelegramAccount, Pi as redactSensitiveText, Ss as danger, Xt as writeConfigFile, Yr as withFileLock$1, es as CONFIG_DIR, ji as formatErrorMessage, k as createSubsystemLogger, lo as DEFAULT_ACCOUNT_ID, ms as safeParseJson, na as listChannelPlugins, ta as getChannelPlugin, uo as normalizeAccountId, ws as logVerbose } from "./agent-scope-DwKyukUg.js";
|
|
3
|
+
import { f as resolveStateDir, h as resolveRequiredHomeDir, p as expandHomePrefix, u as resolveOAuthDir } from "./github-copilot-token-eyrRGmGp.js";
|
|
4
|
+
import { C as normalizeMimeType, E as mediaKindFromMime, d as chunkMarkdownIR, f as markdownToIR, n as loadWebMedia, v as getFileExtension, x as isGifMedia } from "./media-DZj8v0oe.js";
|
|
5
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DFtTedxN.js";
|
|
6
|
+
import { t as resolveFetch } from "./fetch-BH7uURYM.js";
|
|
7
7
|
import { t as renderMarkdownWithMarkers } from "./render-BRr7caFG.js";
|
|
8
8
|
import { n as normalizePollInput } from "./polls-CYTwXmA1.js";
|
|
9
|
-
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-
|
|
9
|
+
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-D17GYsMz.js";
|
|
10
10
|
import { t as makeProxyFetch } from "./proxy-DkRPPIHD.js";
|
|
11
11
|
import fs from "node:fs/promises";
|
|
12
12
|
import os from "node:os";
|
|
13
13
|
import path from "node:path";
|
|
14
|
-
import
|
|
14
|
+
import syncFs, { readFileSync } from "node:fs";
|
|
15
15
|
import JSON5 from "json5";
|
|
16
16
|
import crypto from "node:crypto";
|
|
17
17
|
import process$1 from "node:process";
|
|
@@ -150,7 +150,7 @@ function getPairingAdapter(channelId) {
|
|
|
150
150
|
//#region src/plugin-sdk/json-store.ts
|
|
151
151
|
async function readJsonFileWithFallback(filePath, fallback) {
|
|
152
152
|
try {
|
|
153
|
-
const parsed = safeParseJson(await
|
|
153
|
+
const parsed = safeParseJson(await syncFs.promises.readFile(filePath, "utf-8"));
|
|
154
154
|
if (parsed == null) return {
|
|
155
155
|
value: fallback,
|
|
156
156
|
exists: true
|
|
@@ -172,14 +172,14 @@ async function readJsonFileWithFallback(filePath, fallback) {
|
|
|
172
172
|
}
|
|
173
173
|
async function writeJsonFileAtomically(filePath, value) {
|
|
174
174
|
const dir = path.dirname(filePath);
|
|
175
|
-
await
|
|
175
|
+
await syncFs.promises.mkdir(dir, {
|
|
176
176
|
recursive: true,
|
|
177
177
|
mode: 448
|
|
178
178
|
});
|
|
179
179
|
const tmp = path.join(dir, `${path.basename(filePath)}.${crypto.randomUUID()}.tmp`);
|
|
180
|
-
await
|
|
181
|
-
await
|
|
182
|
-
await
|
|
180
|
+
await syncFs.promises.writeFile(tmp, `${JSON.stringify(value, null, 2)}\n`, { encoding: "utf-8" });
|
|
181
|
+
await syncFs.promises.chmod(tmp, 384);
|
|
182
|
+
await syncFs.promises.rename(tmp, filePath);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
//#endregion
|
|
@@ -240,7 +240,7 @@ async function readPairingRequests(filePath) {
|
|
|
240
240
|
}
|
|
241
241
|
async function ensureJsonFile(filePath, fallback) {
|
|
242
242
|
try {
|
|
243
|
-
await
|
|
243
|
+
await syncFs.promises.access(filePath);
|
|
244
244
|
} catch {
|
|
245
245
|
await writeJsonFile(filePath, fallback);
|
|
246
246
|
}
|
|
@@ -533,7 +533,7 @@ function resolveCronStorePath(storePath) {
|
|
|
533
533
|
}
|
|
534
534
|
async function loadCronStore(storePath) {
|
|
535
535
|
try {
|
|
536
|
-
const raw = await
|
|
536
|
+
const raw = await syncFs.promises.readFile(storePath, "utf-8");
|
|
537
537
|
let parsed;
|
|
538
538
|
try {
|
|
539
539
|
parsed = JSON5.parse(raw);
|
|
@@ -557,14 +557,14 @@ async function loadCronStore(storePath) {
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
async function saveCronStore(storePath, store) {
|
|
560
|
-
await
|
|
560
|
+
await syncFs.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
561
561
|
const { randomBytes } = await import("node:crypto");
|
|
562
562
|
const tmp = `${storePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
563
563
|
const json = JSON.stringify(store, null, 2);
|
|
564
|
-
await
|
|
565
|
-
await
|
|
564
|
+
await syncFs.promises.writeFile(tmp, json, "utf-8");
|
|
565
|
+
await syncFs.promises.rename(tmp, storePath);
|
|
566
566
|
try {
|
|
567
|
-
await
|
|
567
|
+
await syncFs.promises.copyFile(storePath, `${storePath}.bak`);
|
|
568
568
|
} catch {}
|
|
569
569
|
}
|
|
570
570
|
|
|
@@ -2,7 +2,7 @@ import { Xt as loadConfig, a as createSubsystemLogger } from "./env-C77feXxI.js"
|
|
|
2
2
|
import "./agent-paths-BI1hx-tF.js";
|
|
3
3
|
import "./send-D7X0_iFp.js";
|
|
4
4
|
import "./send-BFEd4vCM.js";
|
|
5
|
-
import { Fn as installBrowserCommonMiddleware, In as ensureBrowserControlAuth, Ln as resolveBrowserControlAuth, Pn as installBrowserAuthMiddleware, Si as resolveBrowserConfig, bi as stopKnownBrowserProfiles, gi as registerBrowserRoutes, xi as createBrowserRouteContext, yi as ensureExtensionRelayForProfiles } from "./model-catalog-
|
|
5
|
+
import { Fn as installBrowserCommonMiddleware, In as ensureBrowserControlAuth, Ln as resolveBrowserControlAuth, Pn as installBrowserAuthMiddleware, Si as resolveBrowserConfig, bi as stopKnownBrowserProfiles, gi as registerBrowserRoutes, xi as createBrowserRouteContext, yi as ensureExtensionRelayForProfiles } from "./model-catalog-Iu_LUOVA.js";
|
|
6
6
|
import "./github-copilot-token-A9DiaCB0.js";
|
|
7
7
|
import "./reply-prefix-TUhpEtvr.js";
|
|
8
8
|
import "./memory-2keYbXkc.js";
|
|
@@ -44,7 +44,7 @@ import "./send-C-su1wPZ.js";
|
|
|
44
44
|
import "./outbound-attachment-Bh4FmcYg.js";
|
|
45
45
|
import "./fetch-BVvWzHT_.js";
|
|
46
46
|
import "./delivery-queue-55Cityuq.js";
|
|
47
|
-
import "./deps-
|
|
47
|
+
import "./deps-Uo5boHSY.js";
|
|
48
48
|
import "./frontmatter-D2UNJikU.js";
|
|
49
49
|
import "./skills-Dis31awJ.js";
|
|
50
50
|
import "./skills-remote-CIAB0AXm.js";
|
|
@@ -2,7 +2,7 @@ import "./paths-C9FmTW1x.js";
|
|
|
2
2
|
import "./agent-paths-DmOVZE7g.js";
|
|
3
3
|
import { Dn as loadConfig, F as createSubsystemLogger } from "./agent-scope-DHrLr5OF.js";
|
|
4
4
|
import "./commands-registry-BRvZQ1jh.js";
|
|
5
|
-
import { Bi as registerBrowserRoutes, Gi as createBrowserRouteContext, Ki as resolveBrowserConfig, Ui as ensureExtensionRelayForProfiles, Wi as stopKnownBrowserProfiles, at as resolveBrowserControlAuth, it as ensureBrowserControlAuth, nt as installBrowserAuthMiddleware, rt as installBrowserCommonMiddleware } from "./reply-
|
|
5
|
+
import { Bi as registerBrowserRoutes, Gi as createBrowserRouteContext, Ki as resolveBrowserConfig, Ui as ensureExtensionRelayForProfiles, Wi as stopKnownBrowserProfiles, at as resolveBrowserControlAuth, it as ensureBrowserControlAuth, nt as installBrowserAuthMiddleware, rt as installBrowserCommonMiddleware } from "./reply-C6zXCUnw.js";
|
|
6
6
|
import "./errors-Dx3S3Nrp.js";
|
|
7
7
|
import "./send-C5_fB8YQ.js";
|
|
8
8
|
import "./send-jxmRy65D.js";
|
|
@@ -37,7 +37,7 @@ import "./ssrf-Blf4NrHS.js";
|
|
|
37
37
|
import "./outbound-attachment-CsXJwFsg.js";
|
|
38
38
|
import "./fetch-CnCPOuq7.js";
|
|
39
39
|
import "./delivery-queue-DKRjVFlq.js";
|
|
40
|
-
import "./deps-
|
|
40
|
+
import "./deps-BVNeN6gT.js";
|
|
41
41
|
import "./memory-DDpj0IVA.js";
|
|
42
42
|
import "./memory-search-BwYkW6_V.js";
|
|
43
43
|
import "./manager-BmONwMiP.js";
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { Ar as isCliProvider, Bu as resolveAgentEffectiveModelPrimary, Ft as resolveSessionResetPolicy, Gu as resolveDefaultAgentId, Ht as canonicalizeMainSessionAlias, Hu as resolveAgentModelFallbacksOverride, I as lookupContextTokens, Ir as resolveAllowedModelRef, Jc as supportsXHighThinking, Kc as normalizeThinkLevel, Kr as resolveThinkingDefault, Md as matchesSkillFilter, Mu as buildChannelAccountBindings, Nt as evaluateSessionFreshness, Rr as resolveConfiguredModelRef, Ru as resolveAgentConfig, Ut as resolveAgentMainSessionKey, Uu as resolveAgentSkillsFilter, Va as normalizeSecretInput, Vr as resolveHooksGmailModel, Vt as setSessionRuntimeModel, Wu as resolveAgentWorkspaceDir, X as loadSessionStore, Xl as normalizeWhatsAppTarget, Xt as loadConfig, _n as parseDurationMs, _t as cleanupArchivedSessionTranscripts, bd as logWarn, ht as archiveSessionTranscripts, kr as getModelRefStatus, od as ensureAgentWorkspace, rt as updateSessionStore, tu as resolveWhatsAppAccount, xa as withFileLock, zu as resolveAgentDir } from "./env-C77feXxI.js";
|
|
3
3
|
import { O as truncateUtf16Safe, U as getChildLogger } from "./agent-paths-BI1hx-tF.js";
|
|
4
4
|
import { a as SILENT_REPLY_TOKEN } from "./send-D7X0_iFp.js";
|
|
5
|
-
import { $n as runSubagentAnnounceFlow, $r as normalizeOptionalSessionKey, At as enqueueCronTaskRunQueueItem, Bt as startCronTaskRunQueueStep, Ct as CRON_TASK_RUN_QUEUE_SYNTHESIZE_STEP_ID, Dn as createFasedAgentCodingTools, Dr as resolveOutboundSessionRoute, Dt as completeCronTaskRunQueueStep, Ea as deliverOutboundPayloads, Et as clearExpiredCronTaskRunQueueLease, Ft as recoverExpiredCronTaskRunQueueLeases, Gi as resolveSessionDeliveryTarget, Gt as resolveCronRunLogPath, Ht as appendCronRunLog, Ji as getCliSessionId, Jn as spawnSubagentDirect, Jr as normalizeHttpWebhookUrl, Kt as resolveCronRunLogPruneOptions, Lt as retryCronTaskRunQueueExecuteStep, Mt as leaseCronTaskRunQueueExecuteSteps, Nt as readCronTaskRunQueue, Ot as cronTaskRunQueueGraphNodeIdFromStepId, Pt as recoverCronTaskRunQueueItem, Qr as normalizeOptionalAgentId, Rt as retryCronTaskRunQueueItem, St as CRON_TASK_RUN_QUEUE_PLAN_ANALYSIS_STEP_ID, Tt as cancelCronTaskRunQueueItem, Vt as summarizeCronTaskRunQueue, Wi as resolveOutboundTarget, Xi as runCliAgent, Yi as setCliSessionId, Yn as countActiveDescendantRuns, Zn as listDescendantRunsForRequester, Zr as inferLegacyName, _t as resolveTaskModelRole, ai as hasLegacyDeliveryHints, di as getHookType, do as resolveAgentAvatar, dt as resolveCronStyleNow, ei as normalizeOptionalText, er as enqueueSystemEvent, fi as isExternalHookSession, gt as plannerStrategyModelRole, ha as resolveSessionAuthProfileOverride, ii as buildDeliveryFromLegacyPayload, jt as finishCronTaskRunQueueItem, kt as cronTaskRunQueueGraphStepId, la as resolveAgentTimeoutMs, li as buildSafeExternalPrompt, mn as formatWalletCommandReply, na as buildOutboundSessionContext, ni as normalizeRequiredName, oi as stripLegacyDeliveryFields, pr as readLatestAssistantReply, qi as createOutboundSendDeps, ri as migrateLegacyCronPayload, rs as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, sa as registerAgentRunContext, ss as stripHeartbeatToken, t as loadModelCatalog, ti as normalizePayloadToSystemText, ua as runWithModelFallback, ui as detectSuspiciousPatterns, ur as requestHeartbeatNow, vt as taskExplicitModelRef, wt as CRON_TASK_RUN_QUEUE_WORKER_STEP_ID, xn as runEmbeddedPiAgent, xt as CRON_TASK_RUN_QUEUE_COLLECT_STEP_ID, yt as computeNextRunAtMs, zt as retryCronTaskRunQueueStep } from "./model-catalog-
|
|
5
|
+
import { $n as runSubagentAnnounceFlow, $r as normalizeOptionalSessionKey, At as enqueueCronTaskRunQueueItem, Bt as startCronTaskRunQueueStep, Ct as CRON_TASK_RUN_QUEUE_SYNTHESIZE_STEP_ID, Dn as createFasedAgentCodingTools, Dr as resolveOutboundSessionRoute, Dt as completeCronTaskRunQueueStep, Ea as deliverOutboundPayloads, Et as clearExpiredCronTaskRunQueueLease, Ft as recoverExpiredCronTaskRunQueueLeases, Gi as resolveSessionDeliveryTarget, Gt as resolveCronRunLogPath, Ht as appendCronRunLog, Ji as getCliSessionId, Jn as spawnSubagentDirect, Jr as normalizeHttpWebhookUrl, Kt as resolveCronRunLogPruneOptions, Lt as retryCronTaskRunQueueExecuteStep, Mt as leaseCronTaskRunQueueExecuteSteps, Nt as readCronTaskRunQueue, Ot as cronTaskRunQueueGraphNodeIdFromStepId, Pt as recoverCronTaskRunQueueItem, Qr as normalizeOptionalAgentId, Rt as retryCronTaskRunQueueItem, St as CRON_TASK_RUN_QUEUE_PLAN_ANALYSIS_STEP_ID, Tt as cancelCronTaskRunQueueItem, Vt as summarizeCronTaskRunQueue, Wi as resolveOutboundTarget, Xi as runCliAgent, Yi as setCliSessionId, Yn as countActiveDescendantRuns, Zn as listDescendantRunsForRequester, Zr as inferLegacyName, _t as resolveTaskModelRole, ai as hasLegacyDeliveryHints, di as getHookType, do as resolveAgentAvatar, dt as resolveCronStyleNow, ei as normalizeOptionalText, er as enqueueSystemEvent, fi as isExternalHookSession, gt as plannerStrategyModelRole, ha as resolveSessionAuthProfileOverride, ii as buildDeliveryFromLegacyPayload, jt as finishCronTaskRunQueueItem, kt as cronTaskRunQueueGraphStepId, la as resolveAgentTimeoutMs, li as buildSafeExternalPrompt, mn as formatWalletCommandReply, na as buildOutboundSessionContext, ni as normalizeRequiredName, oi as stripLegacyDeliveryFields, pr as readLatestAssistantReply, qi as createOutboundSendDeps, ri as migrateLegacyCronPayload, rs as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, sa as registerAgentRunContext, ss as stripHeartbeatToken, t as loadModelCatalog, ti as normalizePayloadToSystemText, ua as runWithModelFallback, ui as detectSuspiciousPatterns, ur as requestHeartbeatNow, vt as taskExplicitModelRef, wt as CRON_TASK_RUN_QUEUE_WORKER_STEP_ID, xn as runEmbeddedPiAgent, xt as CRON_TASK_RUN_QUEUE_COLLECT_STEP_ID, yt as computeNextRunAtMs, zt as retryCronTaskRunQueueStep } from "./model-catalog-Iu_LUOVA.js";
|
|
6
6
|
import { n as DEFAULT_MODEL, r as DEFAULT_PROVIDER, t as DEFAULT_CONTEXT_TOKENS } from "./defaults-BDW-7D7s.js";
|
|
7
7
|
import { A as defaultRuntime, F as DEFAULT_AGENT_ID, U as resolveAgentIdFromSessionKey, V as normalizeAgentId, Y as normalizeAccountId$1, m as resolveSessionTranscriptPath, q as toAgentStoreSessionKey, tt as isCronRunSessionKey, v as resolveStorePath, x as formatErrorMessage } from "./entry.js";
|
|
8
8
|
import { a as resolveAgentIdentity } from "./reply-prefix-TUhpEtvr.js";
|
|
@@ -16,7 +16,7 @@ import { n as resolveMessageChannelSelection } from "./channel-selection-C-u9buG
|
|
|
16
16
|
import { d as deriveSessionTotalTokens, f as hasNonzeroUsage, l as resolveModelCostConfig, o as estimateUsageCost } from "./session-cost-usage-Dzc2RiRn.js";
|
|
17
17
|
import { D as parseAbsoluteTimeMs, E as resolveDefaultCronStaggerMs, T as resolveCronStaggerMs, a as withTaskCoordinationRequest, c as matchingTrustedSourcesForTask, d as removeTrustedSource, f as setTrustedSourceActive, i as stopSourcePathInPolicy, l as mergeTrustedSources, n as planTaskExecutionPolicy, o as createTrustedSourceForJob, p as upsertTrustedSource, r as sourceRepairNodeIdForTool, s as listTrustedSources, t as applySourceGraphRepairToPolicy, u as recordTrustedSourceOutcome, w as normalizeCronStaggerMs } from "./task-planner-CkWt6WhX.js";
|
|
18
18
|
import { a as readChannelAllowFromStoreSync } from "./pairing-store-BabO0oA_.js";
|
|
19
|
-
import { n as runHeartbeatOnce } from "./heartbeat-runner-
|
|
19
|
+
import { n as runHeartbeatOnce } from "./heartbeat-runner-DPtasJ9O.js";
|
|
20
20
|
import path from "node:path";
|
|
21
21
|
import fs from "node:fs";
|
|
22
22
|
import crypto from "node:crypto";
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { W as getChildLogger, k as truncateUtf16Safe } from "./agent-paths-DmOVZE7g.js";
|
|
3
3
|
import { Ci as resolveThinkingDefault, Dn as loadConfig, E as ensureAgentWorkspace, Et as loadSessionStore, Gt as archiveSessionTranscripts, Jn as parseDurationMs, N as matchesSkillFilter, Nt as updateSessionStore, Qa as withFileLock, Ru as normalizeWhatsAppTarget, Uu as resolveWhatsAppAccount, a as resolveAgentDir, au as logWarn, bd as buildChannelAccountBindings, bn as resolveAgentMainSessionKey, bo as normalizeSecretInput, c as resolveAgentModelFallbacksOverride, d as resolveDefaultAgentId, dp as normalizeThinkLevel, fn as resolveSessionResetPolicy, ft as lookupContextTokens, hi as resolveConfiguredModelRef, i as resolveAgentConfig, l as resolveAgentSkillsFilter, o as resolveAgentEffectiveModelPrimary, oi as getModelRefStatus, pi as resolveAllowedModelRef, pp as supportsXHighThinking, qt as cleanupArchivedSessionTranscripts, si as isCliProvider, u as resolveAgentWorkspaceDir, un as evaluateSessionFreshness, vi as resolveHooksGmailModel, vn as setSessionRuntimeModel, yn as canonicalizeMainSessionAlias } from "./agent-scope-DHrLr5OF.js";
|
|
4
4
|
import { T as normalizeVerboseLevel } from "./commands-registry-BRvZQ1jh.js";
|
|
5
|
-
import { $r as runWithModelFallback, A as retryCronTaskRunQueueItem, Ai as stripLegacyDeliveryFields, C as finishCronTaskRunQueueItem, Ci as normalizeOptionalSessionKey, Ct as runCliAgent, D as recoverExpiredCronTaskRunQueueLeases, Di as migrateLegacyCronPayload, Dr as registerAgentRunContext, E as recoverCronTaskRunQueueItem, Ei as normalizeRequiredName, Et as loadModelCatalog, Fi as getHookType, Fr as readLatestAssistantReply, Ho as resolveAgentAvatar, Ii as isExternalHookSession, Jn as formatWalletCommandReply, L as resolveCronRunLogPath, M as startCronTaskRunQueueStep, N as summarizeCronTaskRunQueue, Ni as buildSafeExternalPrompt, Oi as buildDeliveryFromLegacyPayload, P as appendCronRunLog, Pa as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, Pi as detectSuspiciousPatterns, Qi as buildOutboundSessionContext, R as resolveCronRunLogPruneOptions, Ra as stripHeartbeatToken, S as enqueueCronTaskRunQueueItem, Si as normalizeOptionalAgentId, Sr as runSubagentAnnounceFlow, St as setCliSessionId, T as readCronTaskRunQueue, Ti as normalizePayloadToSystemText, Wa as resolveSessionAuthProfileOverride, Xi as resolveOutboundTarget, Yr as resolveOutboundSessionRoute, Zi as resolveSessionDeliveryTarget, _ as cancelCronTaskRunQueueItem, _r as spawnSubagentDirect, b as cronTaskRunQueueGraphNodeIdFromStepId, br as listDescendantRunsForRequester, bt as createOutboundSendDeps, c as plannerStrategyModelRole, d as computeNextRunAtMs, dr as createFasedAgentCodingTools, ea as enqueueSystemEvent, fs as resolveAgentTimeoutMs, g as CRON_TASK_RUN_QUEUE_WORKER_STEP_ID, h as CRON_TASK_RUN_QUEUE_SYNTHESIZE_STEP_ID, i as resolveCronStyleNow, ia as requestHeartbeatNow, j as retryCronTaskRunQueueStep, k as retryCronTaskRunQueueExecuteStep, ki as hasLegacyDeliveryHints, l as resolveTaskModelRole, m as CRON_TASK_RUN_QUEUE_PLAN_ANALYSIS_STEP_ID, p as CRON_TASK_RUN_QUEUE_COLLECT_STEP_ID, rr as runEmbeddedPiAgent, to as deliverOutboundPayloads, u as taskExplicitModelRef, v as clearExpiredCronTaskRunQueueLease, vi as normalizeHttpWebhookUrl, vr as countActiveDescendantRuns, w as leaseCronTaskRunQueueExecuteSteps, wi as normalizeOptionalText, x as cronTaskRunQueueGraphStepId, xi as inferLegacyName, xt as getCliSessionId, y as completeCronTaskRunQueueStep } from "./reply-
|
|
5
|
+
import { $r as runWithModelFallback, A as retryCronTaskRunQueueItem, Ai as stripLegacyDeliveryFields, C as finishCronTaskRunQueueItem, Ci as normalizeOptionalSessionKey, Ct as runCliAgent, D as recoverExpiredCronTaskRunQueueLeases, Di as migrateLegacyCronPayload, Dr as registerAgentRunContext, E as recoverCronTaskRunQueueItem, Ei as normalizeRequiredName, Et as loadModelCatalog, Fi as getHookType, Fr as readLatestAssistantReply, Ho as resolveAgentAvatar, Ii as isExternalHookSession, Jn as formatWalletCommandReply, L as resolveCronRunLogPath, M as startCronTaskRunQueueStep, N as summarizeCronTaskRunQueue, Ni as buildSafeExternalPrompt, Oi as buildDeliveryFromLegacyPayload, P as appendCronRunLog, Pa as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, Pi as detectSuspiciousPatterns, Qi as buildOutboundSessionContext, R as resolveCronRunLogPruneOptions, Ra as stripHeartbeatToken, S as enqueueCronTaskRunQueueItem, Si as normalizeOptionalAgentId, Sr as runSubagentAnnounceFlow, St as setCliSessionId, T as readCronTaskRunQueue, Ti as normalizePayloadToSystemText, Wa as resolveSessionAuthProfileOverride, Xi as resolveOutboundTarget, Yr as resolveOutboundSessionRoute, Zi as resolveSessionDeliveryTarget, _ as cancelCronTaskRunQueueItem, _r as spawnSubagentDirect, b as cronTaskRunQueueGraphNodeIdFromStepId, br as listDescendantRunsForRequester, bt as createOutboundSendDeps, c as plannerStrategyModelRole, d as computeNextRunAtMs, dr as createFasedAgentCodingTools, ea as enqueueSystemEvent, fs as resolveAgentTimeoutMs, g as CRON_TASK_RUN_QUEUE_WORKER_STEP_ID, h as CRON_TASK_RUN_QUEUE_SYNTHESIZE_STEP_ID, i as resolveCronStyleNow, ia as requestHeartbeatNow, j as retryCronTaskRunQueueStep, k as retryCronTaskRunQueueExecuteStep, ki as hasLegacyDeliveryHints, l as resolveTaskModelRole, m as CRON_TASK_RUN_QUEUE_PLAN_ANALYSIS_STEP_ID, p as CRON_TASK_RUN_QUEUE_COLLECT_STEP_ID, rr as runEmbeddedPiAgent, to as deliverOutboundPayloads, u as taskExplicitModelRef, v as clearExpiredCronTaskRunQueueLease, vi as normalizeHttpWebhookUrl, vr as countActiveDescendantRuns, w as leaseCronTaskRunQueueExecuteSteps, wi as normalizeOptionalText, x as cronTaskRunQueueGraphStepId, xi as inferLegacyName, xt as getCliSessionId, y as completeCronTaskRunQueueStep } from "./reply-C6zXCUnw.js";
|
|
6
6
|
import { h as normalizeAccountId$1, l as resolveAgentIdFromSessionKey, p as toAgentStoreSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID, x as isCronRunSessionKey } from "./session-key-LmCHAJTQ.js";
|
|
7
7
|
import { d as defaultRuntime, n as formatErrorMessage } from "./errors-Dx3S3Nrp.js";
|
|
8
8
|
import { u as SILENT_REPLY_TOKEN } from "./send-C5_fB8YQ.js";
|
|
@@ -18,7 +18,7 @@ import { C as parseAbsoluteTimeMs, S as resolveDefaultCronStaggerMs, a as withTa
|
|
|
18
18
|
import { a as readChannelAllowFromStoreSync } from "./pairing-store-Dx15g_mY.js";
|
|
19
19
|
import { d as deriveSessionTotalTokens, f as hasNonzeroUsage, l as resolveModelCostConfig, o as estimateUsageCost } from "./session-cost-usage-DQSpjhkP.js";
|
|
20
20
|
import { t as getRemoteSkillEligibility, v as getSkillsSnapshotVersion } from "./skills-remote-BghdrdFV.js";
|
|
21
|
-
import { n as runHeartbeatOnce } from "./heartbeat-runner-
|
|
21
|
+
import { n as runHeartbeatOnce } from "./heartbeat-runner-1b23y_3_.js";
|
|
22
22
|
import fs from "node:fs";
|
|
23
23
|
import path from "node:path";
|
|
24
24
|
import crypto from "node:crypto";
|
|
@@ -2,7 +2,7 @@ import { D as pruneLegacyStoreKeys, E as loadSessionEntry, Kl as normalizeChanne
|
|
|
2
2
|
import "./agent-paths-BI1hx-tF.js";
|
|
3
3
|
import "./send-D7X0_iFp.js";
|
|
4
4
|
import "./send-BFEd4vCM.js";
|
|
5
|
-
import { Ea as deliverOutboundPayloads, Li as agentCommand, Wi as resolveOutboundTarget, er as enqueueSystemEvent, na as buildOutboundSessionContext, qi as createOutboundSendDeps, ur as requestHeartbeatNow } from "./model-catalog-
|
|
5
|
+
import { Ea as deliverOutboundPayloads, Li as agentCommand, Wi as resolveOutboundTarget, er as enqueueSystemEvent, na as buildOutboundSessionContext, qi as createOutboundSendDeps, ur as requestHeartbeatNow } from "./model-catalog-Iu_LUOVA.js";
|
|
6
6
|
import "./github-copilot-token-A9DiaCB0.js";
|
|
7
7
|
import { A as defaultRuntime, H as normalizeMainKey } from "./entry.js";
|
|
8
8
|
import "./reply-prefix-TUhpEtvr.js";
|
|
@@ -45,7 +45,7 @@ import "./send-C-su1wPZ.js";
|
|
|
45
45
|
import "./outbound-attachment-Bh4FmcYg.js";
|
|
46
46
|
import "./fetch-BVvWzHT_.js";
|
|
47
47
|
import "./delivery-queue-55Cityuq.js";
|
|
48
|
-
import "./deps-
|
|
48
|
+
import "./deps-Uo5boHSY.js";
|
|
49
49
|
import "./frontmatter-D2UNJikU.js";
|
|
50
50
|
import "./skills-Dis31awJ.js";
|
|
51
51
|
import "./skills-remote-CIAB0AXm.js";
|
|
@@ -75,7 +75,7 @@ import "./progress-DkVYFLij.js";
|
|
|
75
75
|
import "./replies-FXlmpJVO.js";
|
|
76
76
|
import "./prompt-style-Rmj3c-Ir.js";
|
|
77
77
|
import "./pairing-labels-BCM1S2e_.js";
|
|
78
|
-
import { a as registerApnsToken, l as formatForLog, n as parseMessageWithAttachments, t as normalizeRpcAttachmentsToChatAttachments } from "./attachment-normalize-
|
|
78
|
+
import { a as registerApnsToken, l as formatForLog, n as parseMessageWithAttachments, t as normalizeRpcAttachmentsToChatAttachments } from "./attachment-normalize-Din9M1Y4.js";
|
|
79
79
|
import { randomUUID } from "node:crypto";
|
|
80
80
|
|
|
81
81
|
//#region src/gateway/server-node-events.ts
|
|
@@ -2,7 +2,7 @@ import "./paths-C9FmTW1x.js";
|
|
|
2
2
|
import "./agent-paths-DmOVZE7g.js";
|
|
3
3
|
import { Dn as loadConfig, Nt as updateSessionStore, Pu as normalizeChannelId, it as resolveGatewaySessionStoreTarget, nt as loadSessionEntry, rt as pruneLegacyStoreKeys } from "./agent-scope-DHrLr5OF.js";
|
|
4
4
|
import "./commands-registry-BRvZQ1jh.js";
|
|
5
|
-
import { Qi as buildOutboundSessionContext, Xi as resolveOutboundTarget, bt as createOutboundSendDeps, ea as enqueueSystemEvent, ht as agentCommand, ia as requestHeartbeatNow, to as deliverOutboundPayloads } from "./reply-
|
|
5
|
+
import { Qi as buildOutboundSessionContext, Xi as resolveOutboundTarget, bt as createOutboundSendDeps, ea as enqueueSystemEvent, ht as agentCommand, ia as requestHeartbeatNow, to as deliverOutboundPayloads } from "./reply-C6zXCUnw.js";
|
|
6
6
|
import { c as normalizeMainKey } from "./session-key-LmCHAJTQ.js";
|
|
7
7
|
import { d as defaultRuntime } from "./errors-Dx3S3Nrp.js";
|
|
8
8
|
import "./send-C5_fB8YQ.js";
|
|
@@ -39,7 +39,7 @@ import "./ssrf-Blf4NrHS.js";
|
|
|
39
39
|
import "./outbound-attachment-CsXJwFsg.js";
|
|
40
40
|
import "./fetch-CnCPOuq7.js";
|
|
41
41
|
import "./delivery-queue-DKRjVFlq.js";
|
|
42
|
-
import "./deps-
|
|
42
|
+
import "./deps-BVNeN6gT.js";
|
|
43
43
|
import "./memory-DDpj0IVA.js";
|
|
44
44
|
import "./memory-search-BwYkW6_V.js";
|
|
45
45
|
import "./manager-BmONwMiP.js";
|
|
@@ -78,7 +78,7 @@ import "./skills-remote-BghdrdFV.js";
|
|
|
78
78
|
import "./skill-commands-QW8zKXC_.js";
|
|
79
79
|
import "./prompt-style-CWAacuMq.js";
|
|
80
80
|
import "./pairing-labels-D2yOKhoV.js";
|
|
81
|
-
import { a as registerApnsToken, l as formatForLog, n as parseMessageWithAttachments, t as normalizeRpcAttachmentsToChatAttachments } from "./attachment-normalize-
|
|
81
|
+
import { a as registerApnsToken, l as formatForLog, n as parseMessageWithAttachments, t as normalizeRpcAttachmentsToChatAttachments } from "./attachment-normalize-CJWQWDbC.js";
|
|
82
82
|
import { randomUUID } from "node:crypto";
|
|
83
83
|
|
|
84
84
|
//#region src/gateway/server-node-events.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ds as success, Ms as getChildLogger, Ns as toPinoLikeLogger, Oa as formatCliCommand, Pi as redactSensitiveText, Ss as danger, _a as readCredsJsonRaw, ba as resolveWebCredsBackupPath, ha as maybeRestoreCredsFromBackup, is as ensureDir, ps as resolveUserPath, xa as resolveWebCredsPath, xi as VERSION, ya as resolveDefaultWebAuthDir } from "./agent-scope-
|
|
1
|
+
import { Ds as success, Ms as getChildLogger, Ns as toPinoLikeLogger, Oa as formatCliCommand, Pi as redactSensitiveText, Ss as danger, _a as readCredsJsonRaw, ba as resolveWebCredsBackupPath, ha as maybeRestoreCredsFromBackup, is as ensureDir, ps as resolveUserPath, xa as resolveWebCredsPath, xi as VERSION, ya as resolveDefaultWebAuthDir } from "./agent-scope-DwKyukUg.js";
|
|
2
2
|
import { n as redactSensitiveUrlLikeString } from "./redact-sensitive-url-Dp_gOi-q.js";
|
|
3
|
-
import
|
|
3
|
+
import syncFs from "node:fs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
|
|
6
6
|
import qrcode from "qrcode-terminal";
|
|
@@ -19,16 +19,16 @@ async function safeSaveCreds(authDir, saveCreds, logger) {
|
|
|
19
19
|
const raw = readCredsJsonRaw(credsPath);
|
|
20
20
|
if (raw) try {
|
|
21
21
|
JSON.parse(raw);
|
|
22
|
-
|
|
22
|
+
syncFs.copyFileSync(credsPath, backupPath);
|
|
23
23
|
try {
|
|
24
|
-
|
|
24
|
+
syncFs.chmodSync(backupPath, 384);
|
|
25
25
|
} catch {}
|
|
26
26
|
} catch {}
|
|
27
27
|
} catch {}
|
|
28
28
|
try {
|
|
29
29
|
await Promise.resolve(saveCreds());
|
|
30
30
|
try {
|
|
31
|
-
|
|
31
|
+
syncFs.chmodSync(resolveWebCredsPath(authDir), 384);
|
|
32
32
|
} catch {}
|
|
33
33
|
} catch (err) {
|
|
34
34
|
logger.warn({ error: formatError(err) }, "failed saving WhatsApp creds");
|