@fased/fased 0.1.20 → 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-ChQhgSlb.js → agents-J1fRpMRy.js} +10 -10
- package/dist/{attachment-normalize-Cr8RzfVf.js → attachment-normalize-CJWQWDbC.js} +1 -1
- package/dist/{attachment-normalize-DB19KLbl.js → attachment-normalize-Din9M1Y4.js} +1 -1
- package/dist/{audio-preflight-BLGP3XdB.js → audio-preflight-CiHBO6op.js} +31 -31
- package/dist/{audio-preflight-CHhcmiXJ.js → audio-preflight-D3I9e121.js} +4 -4
- package/dist/{audio-preflight-DAevycUR.js → audio-preflight-Dpmj_mYE.js} +1 -1
- package/dist/{audio-preflight-DVwcDm03.js → audio-preflight-fOBO0I4S.js} +4 -4
- package/dist/{audio-preflight-BmW52Ycp.js → audio-preflight-tHKngO6z.js} +1 -1
- package/dist/{audit-C5YXYuIL.js → audit-BGrhx_IL.js} +1 -1
- package/dist/{audit-DPnCY1UL.js → audit-DQyLAEfl.js} +1 -1
- package/dist/{auth-BbQxXxtt.js → auth-C4Rs_Ca4.js} +5 -5
- package/dist/{auth-choice-DRyuJ7OL.js → auth-choice-BTahePAl.js} +1 -1
- package/dist/{auth-choice-D8Q1fQwa.js → auth-choice-ioJ3htvR.js} +1 -1
- package/dist/{auth-choice-prompt-Bs_OE3ai.js → auth-choice-prompt-Cigxs_6f.js} +1 -1
- package/dist/{auth-choice-prompt-EOHB6Adp.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-Do7PfpgZ.js → channel-web-CclBHrhb.js} +1 -1
- package/dist/{channel-web-BYwefJub.js → channel-web-DIRVjokt.js} +1 -1
- package/dist/{channels-Ca02RvCt.js → channels-A880gMB8.js} +8 -8
- package/dist/{channels-DrEj3b4G.js → channels-DWuoO75L.js} +8 -8
- package/dist/{channels-cli-b6IPejdy.js → channels-cli-54FnZFBp.js} +7 -7
- package/dist/{channels-cli-CCa-scQg.js → channels-cli-HVr7lRa7.js} +7 -7
- package/dist/{chunk-Cj87uJLo.js → chunk-DfA5CGzI.js} +1 -1
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-DXIWIIJj.js → cli-C8OGL6Ju.js} +4 -4
- package/dist/{cli-eje5udQT.js → cli-cnJ-Fwbu.js} +4 -4
- package/dist/{command-registry-Bs12xiCA.js → command-registry-BHCwSxmh.js} +10 -10
- package/dist/{commands-registry-Du1VUNqv.js → commands-registry-ShBrc7Zz.js} +1 -1
- package/dist/{completion-cli-Btcmy2ZS.js → completion-cli-BsgojaxZ.js} +2 -2
- package/dist/{completion-cli-RlpZaXwm.js → completion-cli-DuqDB42S.js} +1 -1
- package/dist/{config-cli-D-FqgnuJ.js → config-cli-B62owpbq.js} +1 -1
- package/dist/{config-cli-CTo8yFw1.js → config-cli-nRzwa31Y.js} +1 -1
- package/dist/{config-eval-BVvNsPGB.js → config-eval-B5XXAbrm.js} +3 -3
- package/dist/{configure-CLTc56jo.js → configure-ByLqSsRA.js} +14 -14
- package/dist/{configure-D0-Sq2kW.js → configure-CbMYLFUm.js} +14 -14
- package/dist/control-ui/assets/app-DXYMrRJ9.js.map +1 -1
- package/dist/{cron-cli-BstCBSyn.js → cron-cli-CLNLFdxi.js} +2 -2
- package/dist/{cron-cli-pA06wiEq.js → cron-cli-CM9CM1GR.js} +2 -2
- package/dist/{daemon-cli-DiuXEPjO.js → daemon-cli-9ids8mMV.js} +1 -1
- package/dist/{daemon-cli-cyqRsnTF.js → daemon-cli-w15TQchq.js} +1 -1
- package/dist/daemon-cli.js +1 -1
- package/dist/{deps-BKAIBkcE.js → deps-BVNeN6gT.js} +1 -1
- package/dist/{deps-BWo3ls9h.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-izDCXWNN.js → gateway-cli-C9Os2Z5s.js} +30 -30
- package/dist/{gateway-cli-BbSS1Nxd.js → gateway-cli-CLFeYf4s.js} +30 -30
- package/dist/{github-copilot-token-DYrFvncE.js → github-copilot-token-eyrRGmGp.js} +8 -8
- package/dist/{health-DW5NMpNI.js → health-CghndVpq.js} +2 -2
- package/dist/{health-kF4U3o3b.js → health-GSYUFoyr.js} +2 -2
- package/dist/{heartbeat-runner-CJP5uO8S.js → heartbeat-runner-1b23y_3_.js} +1 -1
- package/dist/{heartbeat-runner-BnDruNG2.js → heartbeat-runner-DPtasJ9O.js} +1 -1
- package/dist/{hooks-cli-U5qCBqJm.js → hooks-cli-BXZ0yiOV.js} +5 -5
- package/dist/{hooks-cli-CSFuSiA5.js → hooks-cli-_VHugcqb.js} +5 -5
- package/dist/index.js +9 -9
- package/dist/{internal-B3yITtDC.js → internal-CU3wrcPl.js} +3 -3
- package/dist/{ipv4-B42xQEbV.js → ipv4-Cb1Ofo1o.js} +2 -2
- package/dist/{ipv4-DSDJ9Fn2.js → ipv4-h9TrAq_w.js} +2 -2
- package/dist/{lifecycle-Bbry4K-O.js → lifecycle-CBewhyXk.js} +1 -1
- package/dist/{lifecycle-BiNcSCVf.js → lifecycle-CV1zHjpj.js} +1 -1
- package/dist/{list.auth-overview-ByYcn7Ct.js → list.auth-overview-C8izvpBJ.js} +1 -1
- package/dist/{list.auth-overview-Di-jSuQF.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-ex4Cpln_.js → model-catalog-Iu_LUOVA.js} +10 -10
- package/dist/{models-BonzQ9Rv.js → models-DqMgO-Ak.js} +6 -6
- package/dist/{models-cli-Cc0fVKLR.js → models-cli-C7WASQac.js} +6 -6
- package/dist/{models-cli-DZ05AYqI.js → models-cli-D6H_Kt3i.js} +7 -7
- package/dist/{node-cli-CKXvITsL.js → node-cli-B8DI8VK2.js} +4 -4
- package/dist/{node-cli-Dfl7X414.js → node-cli-CGwktXpe.js} +4 -4
- package/dist/{onboard-BDK2o_5B.js → onboard-BR6vBv2I.js} +7 -7
- package/dist/{onboard-CpJeEn67.js → onboard-C-fjU4uC.js} +7 -7
- package/dist/{onboard-channels-ZnUGKi2j.js → onboard-channels-B3tCPpRS.js} +2 -2
- package/dist/{onboard-channels-CDXretWe.js → onboard-channels-C1UyGFfb.js} +2 -2
- package/dist/{onboard-search-BIltnW27.js → onboard-search-CjU6w3Sm.js} +7 -7
- package/dist/{onboard-search-HgNX3hct.js → onboard-search-Ds5KeCF_.js} +7 -7
- package/dist/{onboarding-CBlXOasA.js → onboarding-BL3becPO.js} +184 -38
- package/dist/{onboarding-Bgx1tJnU.js → onboarding-DGAQeYgr.js} +184 -38
- package/dist/{onboarding.wallet--7Yu2hFw.js → onboarding.wallet-B87UVKiT.js} +16 -10
- package/dist/{onboarding.wallet-CQG8MiG_.js → onboarding.wallet-BFJRJg77.js} +16 -10
- package/dist/{openresponses-http-COAxhJal.js → openresponses-http-Bcy1YyQY.js} +4 -4
- package/dist/{openresponses-http-5S3xc2MZ.js → openresponses-http-DIR_t4i1.js} +31 -31
- package/dist/{openresponses-http-BBNbIRzc.js → openresponses-http-DxsL0uBk.js} +1 -1
- package/dist/{openresponses-http-o273A5SH.js → openresponses-http-IVnQ_wz0.js} +4 -4
- package/dist/{openresponses-http-BTpFUwym.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-BwE33-U1.js → parent-default-help-BJGqN88G.js} +1 -1
- package/dist/{parent-default-help-DzWAx_GB.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-CeuBUTjd.js → pi-embedded-CZAiurHo.js} +5 -5
- package/dist/{pi-embedded-Bnuo5tPq.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-DjTXh-9g.js → plugin-registry-Bw0a_OGC.js} +1 -1
- package/dist/{plugin-registry-D2IeEq2N.js → plugin-registry-Dqk6vxYj.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-CVWduuEO.js → audio-preflight-BO8XDtTk.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-CdPkTmJX.js → audio-preflight-DK-6iXZY.js} +1 -1
- package/dist/plugin-sdk/{channel-web-oM8gCehY.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-C_9IfZXZ.js → openresponses-http-DBFqruTK.js} +1 -1
- package/dist/plugin-sdk/{openresponses-http-_SiZJaK2.js → openresponses-http-RBdNxv8F.js} +1 -1
- package/dist/plugin-sdk/{reply-e-9_IdAa.js → reply-Bb9pzXn4.js} +5 -5
- package/dist/plugin-sdk/src/brand.d.ts +2 -2
- package/dist/plugin-sdk/{status-D_fsW8e3.js → status-CHo58oXD.js} +5 -5
- package/dist/plugin-sdk/{web-BL2TuPTi.js → web-B-fwFsth.js} +1 -1
- package/dist/plugin-sdk/{web-CaVSiRWI.js → web-BIIifta2.js} +2 -2
- package/dist/{plugins-cli-BMV70lmj.js → plugins-cli-BKlKaixI.js} +7 -7
- package/dist/{plugins-cli-Bf0I1xYR.js → plugins-cli-dvRFoJCC.js} +7 -7
- package/dist/{program-CZzXG3p4.js → program-P-9mYfYw.js} +9 -9
- package/dist/{program-context-CaLlkx1k.js → program-context-DZ2qDI4u.js} +25 -25
- package/dist/{prompt-select-styled-Cj_SHqRt.js → prompt-select-styled-CdVuqLJH.js} +4 -4
- package/dist/{prompt-select-styled-DVwrrZSb.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-D0ZpgSNd.js → register.agent-Be3pMMEj.js} +10 -10
- package/dist/{register.agent-C-bHdMXU.js → register.agent-rgc26ryI.js} +11 -11
- package/dist/{register.configure-B0PTAyow.js → register.configure-BKYZzj-a.js} +14 -14
- package/dist/{register.configure-B51e7-qt.js → register.configure-DUgwZXRG.js} +14 -14
- package/dist/{register.maintenance-B3cXfhM1.js → register.maintenance-CEB2_x4K.js} +10 -10
- package/dist/{register.maintenance-BrmIl5VW.js → register.maintenance-OE1jM64G.js} +11 -11
- package/dist/{register.message-EKaGgJ9I.js → register.message-CUE4ZFjr.js} +5 -5
- package/dist/{register.message-Dzs1vNKG.js → register.message-vxrokTGv.js} +5 -5
- package/dist/{register.onboard-DmFrOBs4.js → register.onboard-Cyymwvc3.js} +16 -16
- package/dist/{register.onboard-BFPT0Hh1.js → register.onboard-Dg3786vL.js} +16 -16
- package/dist/{register.setup-B0beU4w3.js → register.setup-B6uH9Fkv.js} +16 -16
- package/dist/{register.setup-5M8f6DaB.js → register.setup-BNk3o4bu.js} +16 -16
- package/dist/{register.status-health-sessions-9GJwT82K.js → register.status-health-sessions-DXgm8jTd.js} +8 -8
- package/dist/{register.status-health-sessions-CEIpWahs.js → register.status-health-sessions-n5YTxXMt.js} +8 -8
- package/dist/{register.subclis-C3yGp0vO.js → register.subclis-h2rwp41b.js} +16 -16
- package/dist/{replies-Bn06Bh1x.js → replies-afs2sQ1G.js} +2 -2
- package/dist/{reply-B034LmuD.js → reply-C6zXCUnw.js} +10 -10
- 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-DYdI5qyZ.js → run-main-BW1xk67k.js} +16 -16
- package/dist/{runtime-helper-grants-BB9I81Ny.js → runtime-helper-grants-BotyKHoQ.js} +1 -1
- package/dist/{runtime-helper-grants-9-0EfflU.js → runtime-helper-grants-DlthXnch.js} +1 -1
- package/dist/{sandbox-cli-Bl9Lyv-l.js → sandbox-cli-B74LKmmu.js} +4 -4
- package/dist/{sandbox-cli-CAh9nzL6.js → sandbox-cli-DVrOgz6X.js} +4 -4
- package/dist/{security-cli-lQy0YwCb.js → security-cli-B_v3gSPc.js} +5 -5
- package/dist/{security-cli-Bt7g6fbK.js → security-cli-DUh-3-R1.js} +5 -5
- 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-BKrGeOGh.js → server-BWmtB5RG.js} +4 -4
- package/dist/{server-CES-5PaV.js → server-CVXoSpqC.js} +4 -4
- package/dist/{server-cron-q6O09WWT.js → server-cron-D0oLzDes.js} +2 -2
- package/dist/{server-cron-D3WgivDk.js → server-cron-DBSvrOWz.js} +2 -2
- package/dist/{server-node-events-Df_2uVcT.js → server-node-events-BGkUHSkq.js} +5 -5
- package/dist/{server-node-events-DE5oWSSB.js → server-node-events-TmYB-LGW.js} +5 -5
- 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-CqIzNbBd.js → status-C1qehkux.js} +1 -1
- package/dist/{status-DrXKyHMz.js → status-CGYle9wh.js} +4 -4
- package/dist/{status-CdI_oSZ4.js → status-DVTZ42Xi.js} +1 -1
- package/dist/{status-ne0p_x1W.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-CLXEsHbW.js → tui-ARPlmctm.js} +1 -1
- package/dist/{tui-CF9NTWgo.js → tui-D6_aw9hu.js} +1 -1
- package/dist/{tui-cli-Bo8T0iEO.js → tui-cli-CDBUp2y3.js} +5 -5
- package/dist/{tui-cli-DIHJPDjw.js → tui-cli-CYkhnUmj.js} +5 -5
- package/dist/{update-cli-pAvK-b3V.js → update-cli-CVPEyzw1.js} +12 -12
- package/dist/{update-cli-RA5GdCSl.js → update-cli-ChNYv3li.js} +11 -11
- package/dist/{update-runner-CUbpiOBD.js → update-runner-CMe4a4QF.js} +1 -1
- package/dist/{update-runner-kVl9uX8I.js → update-runner-dCQywbJs.js} +1 -1
- package/dist/{wallet-C95r3fvu.js → wallet-CJdBRqTq.js} +1 -1
- package/dist/{wallet-BguV7zPF.js → wallet-DZA0r3pV.js} +1 -1
- package/dist/{web-D7NnzaWN.js → web-BIREWy8I.js} +35 -35
- package/dist/{web-CFtLg8L6.js → web-Bly-ch0b.js} +1 -1
- package/dist/{web-R6Wrr8ru.js → web-BvK9MRcp.js} +1 -1
- package/dist/{web-CRHqblTb.js → web-CCLojlog.js} +5 -5
- package/dist/{web-BSGV69pb.js → web-CvJzsQ59.js} +5 -5
- package/dist/{web-search-providers.runtime-BQw2Sxko.js → web-search-providers.runtime-BCjJQLBJ.js} +1 -1
- package/dist/{web-search-providers.runtime-E9CDTKMh.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 +18 -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 +18 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +18 -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 +18 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +18 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +18 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +18 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/scripts/start-managed.sh +9 -4
- package/dist/pi-model-discovery-runtime-BhaI9PU2.js +0 -5
|
@@ -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";
|
|
@@ -30,10 +30,10 @@ import "./dangerous-tools-CusV9bcr.js";
|
|
|
30
30
|
import "./chrome-bxkNKPA7.js";
|
|
31
31
|
import "./pairing-token-C2iKEhFc.js";
|
|
32
32
|
import "./ws-DiFJ3zRB.js";
|
|
33
|
-
import "./onboarding.wallet
|
|
33
|
+
import "./onboarding.wallet-B87UVKiT.js";
|
|
34
34
|
import "./wallet-runtime-config-TjiNNY9x.js";
|
|
35
35
|
import "./wallet-provider-registry-CFNtQ2ZR.js";
|
|
36
|
-
import "./wallet-
|
|
36
|
+
import "./wallet-CJdBRqTq.js";
|
|
37
37
|
import "./wallet-approval-auth-BaVTLG5r.js";
|
|
38
38
|
import "./runtime-DXHXAPJA.js";
|
|
39
39
|
import "./device-identity-ZHUQ6a8N.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";
|
|
@@ -14,10 +14,10 @@ import "./chrome-mXtDMFyZ.js";
|
|
|
14
14
|
import "./pairing-token-BFGorDQo.js";
|
|
15
15
|
import "./ip-D_T5zbZS.js";
|
|
16
16
|
import "./ws-cvQhrVP3.js";
|
|
17
|
-
import "./onboarding.wallet-
|
|
17
|
+
import "./onboarding.wallet-BFJRJg77.js";
|
|
18
18
|
import "./wallet-runtime-config-BlRWvEER.js";
|
|
19
19
|
import "./wallet-provider-registry-ax0NJo0F.js";
|
|
20
|
-
import "./wallet-
|
|
20
|
+
import "./wallet-DZA0r3pV.js";
|
|
21
21
|
import "./wallet-approval-auth-DT-vofLs.js";
|
|
22
22
|
import "./reply-prefix-C2EEc3pc.js";
|
|
23
23
|
import "./media-C5BIKO-v.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";
|
|
@@ -31,10 +31,10 @@ import "./dangerous-tools-CusV9bcr.js";
|
|
|
31
31
|
import "./chrome-bxkNKPA7.js";
|
|
32
32
|
import "./pairing-token-C2iKEhFc.js";
|
|
33
33
|
import "./ws-DiFJ3zRB.js";
|
|
34
|
-
import "./onboarding.wallet
|
|
34
|
+
import "./onboarding.wallet-B87UVKiT.js";
|
|
35
35
|
import "./wallet-runtime-config-TjiNNY9x.js";
|
|
36
36
|
import "./wallet-provider-registry-CFNtQ2ZR.js";
|
|
37
|
-
import "./wallet-
|
|
37
|
+
import "./wallet-CJdBRqTq.js";
|
|
38
38
|
import "./wallet-approval-auth-BaVTLG5r.js";
|
|
39
39
|
import "./runtime-DXHXAPJA.js";
|
|
40
40
|
import "./device-identity-ZHUQ6a8N.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";
|
|
@@ -16,10 +16,10 @@ import "./chrome-mXtDMFyZ.js";
|
|
|
16
16
|
import "./pairing-token-BFGorDQo.js";
|
|
17
17
|
import "./ip-D_T5zbZS.js";
|
|
18
18
|
import "./ws-cvQhrVP3.js";
|
|
19
|
-
import "./onboarding.wallet-
|
|
19
|
+
import "./onboarding.wallet-BFJRJg77.js";
|
|
20
20
|
import "./wallet-runtime-config-BlRWvEER.js";
|
|
21
21
|
import "./wallet-provider-registry-ax0NJo0F.js";
|
|
22
|
-
import "./wallet-
|
|
22
|
+
import "./wallet-DZA0r3pV.js";
|
|
23
23
|
import "./wallet-approval-auth-DT-vofLs.js";
|
|
24
24
|
import "./reply-prefix-C2EEc3pc.js";
|
|
25
25
|
import "./media-C5BIKO-v.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");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Bo as resolveEffectiveEnableState, D as resolveEffectiveAgentSkillFilter, Fs as resolvePreferredFasedAgentTmpDir, Gi as isPathInside, Io as normalizeStringEntries, O as normalizeSkillFilter, Qr as loadPluginManifestRegistry, Vo as resolveMemorySlotDecision, Xi as isDangerousHostEnvVarName, es as CONFIG_DIR, k as createSubsystemLogger, l as resolveAgentWorkspaceDir, ps as resolveUserPath, r as listAgentIds, ri as resolveFasedAgentPackageRootSync, zo as normalizePluginsConfig } from "./agent-scope-
|
|
3
|
-
import { f as resolveStateDir } from "./github-copilot-token-
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards
|
|
5
|
-
import { a as listChatCommands } from "./commands-registry-
|
|
6
|
-
import { a as normalizeStringList, c as resolveFasedAgentManifestBlock, d as resolveFasedAgentManifestRequires, f as parseFrontmatterBlock, i as getFrontmatterString, l as resolveFasedAgentManifestInstall, n as hasBinary, o as parseFasedAgentManifestInstallBase, r as isConfigPathTruthyWithDefaults, s as parseFrontmatterBool, t as evaluateRuntimeEligibility, u as resolveFasedAgentManifestOs } from "./config-eval-
|
|
2
|
+
import { Bo as resolveEffectiveEnableState, D as resolveEffectiveAgentSkillFilter, Fs as resolvePreferredFasedAgentTmpDir, Gi as isPathInside, Io as normalizeStringEntries, O as normalizeSkillFilter, Qr as loadPluginManifestRegistry, Vo as resolveMemorySlotDecision, Xi as isDangerousHostEnvVarName, es as CONFIG_DIR, k as createSubsystemLogger, l as resolveAgentWorkspaceDir, ps as resolveUserPath, r as listAgentIds, ri as resolveFasedAgentPackageRootSync, zo as normalizePluginsConfig } from "./agent-scope-DwKyukUg.js";
|
|
3
|
+
import { f as resolveStateDir } from "./github-copilot-token-eyrRGmGp.js";
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-BgsM3Cb3.js";
|
|
5
|
+
import { a as listChatCommands } from "./commands-registry-ShBrc7Zz.js";
|
|
6
|
+
import { a as normalizeStringList, c as resolveFasedAgentManifestBlock, d as resolveFasedAgentManifestRequires, f as parseFrontmatterBlock, i as getFrontmatterString, l as resolveFasedAgentManifestInstall, n as hasBinary, o as parseFasedAgentManifestInstallBase, r as isConfigPathTruthyWithDefaults, s as parseFrontmatterBool, t as evaluateRuntimeEligibility, u as resolveFasedAgentManifestOs } from "./config-eval-B5XXAbrm.js";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import syncFs from "node:fs";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import { URL, fileURLToPath } from "node:url";
|
|
13
13
|
import { formatSkillsForPrompt, loadSkillsFromDir } from "@mariozechner/pi-coding-agent";
|
|
@@ -578,13 +578,13 @@ function applySkillEnvOverridesFromSnapshot(params) {
|
|
|
578
578
|
//#region src/agents/skills/bundled-dir.ts
|
|
579
579
|
function looksLikeSkillsDir(dir) {
|
|
580
580
|
try {
|
|
581
|
-
const entries =
|
|
581
|
+
const entries = syncFs.readdirSync(dir, { withFileTypes: true });
|
|
582
582
|
for (const entry of entries) {
|
|
583
583
|
if (entry.name.startsWith(".")) continue;
|
|
584
584
|
const fullPath = path.join(dir, entry.name);
|
|
585
585
|
if (entry.isFile() && entry.name.endsWith(".md")) return true;
|
|
586
586
|
if (entry.isDirectory()) {
|
|
587
|
-
if (
|
|
587
|
+
if (syncFs.existsSync(path.join(fullPath, "SKILL.md"))) return true;
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
} catch {
|
|
@@ -599,7 +599,7 @@ function resolveBundledSkillsDir(opts = {}) {
|
|
|
599
599
|
const execPath = opts.execPath ?? process.execPath;
|
|
600
600
|
const execDir = path.dirname(execPath);
|
|
601
601
|
const sibling = path.join(execDir, "skills");
|
|
602
|
-
if (
|
|
602
|
+
if (syncFs.existsSync(sibling)) return sibling;
|
|
603
603
|
} catch {}
|
|
604
604
|
try {
|
|
605
605
|
const moduleUrl = opts.moduleUrl ?? import.meta.url;
|
|
@@ -662,7 +662,7 @@ function resolvePluginSkillDirs(params) {
|
|
|
662
662
|
const trimmed = raw.trim();
|
|
663
663
|
if (!trimmed) continue;
|
|
664
664
|
const candidate = path.resolve(record.rootDir, trimmed);
|
|
665
|
-
if (!
|
|
665
|
+
if (!syncFs.existsSync(candidate)) {
|
|
666
666
|
log$2.warn(`plugin skill path not found (${record.id}): ${candidate}`);
|
|
667
667
|
continue;
|
|
668
668
|
}
|
|
@@ -689,7 +689,7 @@ async function serializeByKey(key, task) {
|
|
|
689
689
|
|
|
690
690
|
//#endregion
|
|
691
691
|
//#region src/agents/skills/workspace.ts
|
|
692
|
-
const fsp =
|
|
692
|
+
const fsp = syncFs.promises;
|
|
693
693
|
const skillsLogger = createSubsystemLogger("skills");
|
|
694
694
|
const skillCommandDebugOnce = /* @__PURE__ */ new Set();
|
|
695
695
|
/**
|
|
@@ -735,10 +735,10 @@ function isPathWithinRoot(candidatePath, rootPath) {
|
|
|
735
735
|
let candidate = path.resolve(candidatePath);
|
|
736
736
|
let root = path.resolve(rootPath);
|
|
737
737
|
try {
|
|
738
|
-
candidate =
|
|
738
|
+
candidate = syncFs.realpathSync.native(candidate);
|
|
739
739
|
} catch {}
|
|
740
740
|
try {
|
|
741
|
-
root =
|
|
741
|
+
root = syncFs.realpathSync.native(root);
|
|
742
742
|
} catch {}
|
|
743
743
|
const relative = path.relative(root, candidate);
|
|
744
744
|
return relative === "" || !relative.startsWith("..") && !path.isAbsolute(relative);
|
|
@@ -778,7 +778,7 @@ function resolveSkillsLimits(config) {
|
|
|
778
778
|
}
|
|
779
779
|
function listChildDirectories(dir) {
|
|
780
780
|
try {
|
|
781
|
-
const entries =
|
|
781
|
+
const entries = syncFs.readdirSync(dir, { withFileTypes: true });
|
|
782
782
|
const dirs = [];
|
|
783
783
|
for (const entry of entries) {
|
|
784
784
|
if (entry.name.startsWith(".")) continue;
|
|
@@ -789,7 +789,7 @@ function listChildDirectories(dir) {
|
|
|
789
789
|
continue;
|
|
790
790
|
}
|
|
791
791
|
if (entry.isSymbolicLink()) try {
|
|
792
|
-
if (
|
|
792
|
+
if (syncFs.statSync(fullPath).isDirectory()) dirs.push(entry.name);
|
|
793
793
|
} catch {}
|
|
794
794
|
}
|
|
795
795
|
return dirs;
|
|
@@ -800,7 +800,7 @@ function listChildDirectories(dir) {
|
|
|
800
800
|
function resolveNestedSkillsRoot(dir, opts) {
|
|
801
801
|
const nested = path.join(dir, "skills");
|
|
802
802
|
try {
|
|
803
|
-
if (!
|
|
803
|
+
if (!syncFs.existsSync(nested) || !syncFs.statSync(nested).isDirectory()) return { baseDir: dir };
|
|
804
804
|
} catch {
|
|
805
805
|
return { baseDir: dir };
|
|
806
806
|
}
|
|
@@ -809,7 +809,7 @@ function resolveNestedSkillsRoot(dir, opts) {
|
|
|
809
809
|
const toScan = scanLimit === 0 ? [] : nestedDirs.slice(0, Math.min(nestedDirs.length, scanLimit));
|
|
810
810
|
for (const name of toScan) {
|
|
811
811
|
const skillMd = path.join(nested, name, "SKILL.md");
|
|
812
|
-
if (
|
|
812
|
+
if (syncFs.existsSync(skillMd)) return {
|
|
813
813
|
baseDir: nested,
|
|
814
814
|
note: `Detected nested skills root at ${nested}`
|
|
815
815
|
};
|
|
@@ -829,9 +829,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
829
829
|
const loadSkills = (params) => {
|
|
830
830
|
const baseDir = resolveNestedSkillsRoot(params.dir, { maxEntriesToScan: limits.maxCandidatesPerRoot }).baseDir;
|
|
831
831
|
const rootSkillMd = path.join(baseDir, "SKILL.md");
|
|
832
|
-
if (
|
|
832
|
+
if (syncFs.existsSync(rootSkillMd)) {
|
|
833
833
|
try {
|
|
834
|
-
const size =
|
|
834
|
+
const size = syncFs.statSync(rootSkillMd).size;
|
|
835
835
|
if (size > limits.maxSkillFileBytes) {
|
|
836
836
|
skillsLogger.warn("Skipping skills root due to oversized SKILL.md.", {
|
|
837
837
|
dir: baseDir,
|
|
@@ -870,9 +870,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
870
870
|
for (const name of limitedChildren) {
|
|
871
871
|
const skillDir = path.join(baseDir, name);
|
|
872
872
|
const skillMd = path.join(skillDir, "SKILL.md");
|
|
873
|
-
if (!
|
|
873
|
+
if (!syncFs.existsSync(skillMd)) continue;
|
|
874
874
|
try {
|
|
875
|
-
const size =
|
|
875
|
+
const size = syncFs.statSync(skillMd).size;
|
|
876
876
|
if (size > limits.maxSkillFileBytes) {
|
|
877
877
|
skillsLogger.warn("Skipping skill due to oversized SKILL.md.", {
|
|
878
878
|
skill: name,
|
|
@@ -940,7 +940,7 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
940
940
|
return Array.from(merged.values()).map((skill) => {
|
|
941
941
|
let frontmatter = {};
|
|
942
942
|
try {
|
|
943
|
-
frontmatter = parseFrontmatter(
|
|
943
|
+
frontmatter = parseFrontmatter(syncFs.readFileSync(skill.filePath, "utf-8"));
|
|
944
944
|
} catch {}
|
|
945
945
|
return {
|
|
946
946
|
skill,
|
|
@@ -1395,8 +1395,8 @@ function listSkillCommandsForAgents(params) {
|
|
|
1395
1395
|
const visitedDirs = /* @__PURE__ */ new Set();
|
|
1396
1396
|
for (const agentId of agentIds) {
|
|
1397
1397
|
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
|
|
1398
|
-
if (!
|
|
1399
|
-
const canonicalDir =
|
|
1398
|
+
if (!syncFs.existsSync(workspaceDir)) continue;
|
|
1399
|
+
const canonicalDir = syncFs.realpathSync(workspaceDir);
|
|
1400
1400
|
if (visitedDirs.has(canonicalDir)) continue;
|
|
1401
1401
|
visitedDirs.add(canonicalDir);
|
|
1402
1402
|
const commands = buildWorkspaceSkillCommandSpecs(workspaceDir, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Gu as resolveDefaultAgentId, Wu as resolveAgentWorkspaceDir, Xt as loadConfig, a as createSubsystemLogger, ud as resolveDefaultAgentWorkspaceDir } from "./env-C77feXxI.js";
|
|
2
|
-
import { Oi as createPluginLoaderLogger, c as loadFasedAgentPlugins } from "./model-catalog-
|
|
2
|
+
import { Oi as createPluginLoaderLogger, c as loadFasedAgentPlugins } from "./model-catalog-Iu_LUOVA.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/status.ts
|
|
5
5
|
const log = createSubsystemLogger("plugins");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { A as resolveSessionModelRef, Bt as resolveFreshSessionTotalTokens, C as listAgentsForGateway, Cu as formatCliCommand, Gl as listChannelPlugins, Gt as resolveMainSessionKey, L as resolveContextTokensForModel, Qt as readConfigFileSnapshot, Rr as resolveConfiguredModelRef, Wu as resolveAgentWorkspaceDir, X as loadSessionStore, Xt as loadConfig, Yc as VERSION, fd as resolveFasedAgentPackageRoot, hd as runExec, x as classifySessionKey } from "./env-C77feXxI.js";
|
|
3
3
|
import { H as theme, V as isRich, j as info } from "./agent-paths-BI1hx-tF.js";
|
|
4
|
-
import { E as resolveControlUiLinks, Gr as summarizeRestartSentinel, Jt as buildChannelSummary, Ri as resolveStrictAgenticRuntimeMode, So as getTailnetHostname, Wa as normalizeControlUiBasePath, Wr as readRestartSentinel, Xt as formatChannelAllowFrom, Yt as buildChannelAccountSnapshot, _r as loadProviderUsageSummary, rr as peekSystemEvents, vr as formatUsageReportLines, wo as readTailscaleStatusJson } from "./model-catalog-
|
|
4
|
+
import { E as resolveControlUiLinks, Gr as summarizeRestartSentinel, Jt as buildChannelSummary, Ri as resolveStrictAgenticRuntimeMode, So as getTailnetHostname, Wa as normalizeControlUiBasePath, Wr as readRestartSentinel, Xt as formatChannelAllowFrom, Yt as buildChannelAccountSnapshot, _r as loadProviderUsageSummary, rr as peekSystemEvents, vr as formatUsageReportLines, wo as readTailscaleStatusJson } from "./model-catalog-Iu_LUOVA.js";
|
|
5
5
|
import { n as DEFAULT_MODEL, r as DEFAULT_PROVIDER, t as DEFAULT_CONTEXT_TOKENS } from "./defaults-BDW-7D7s.js";
|
|
6
6
|
import { gt as resolveGatewayPort, it as parseAgentSessionKey, v as resolveStorePath } from "./entry.js";
|
|
7
7
|
import { t as getMemorySearchManager } from "./memory-2keYbXkc.js";
|
|
@@ -18,9 +18,9 @@ import { s as resolveGatewayLogPaths, t as resolveGatewayService } from "./servi
|
|
|
18
18
|
import { t as formatRuntimeStatusWithDetails } from "./runtime-status-Ol8emLbF.js";
|
|
19
19
|
import { t as readLastGatewayErrorLine } from "./diagnostics-CqDqfqR_.js";
|
|
20
20
|
import { t as renderTable } from "./table-C0Mj2A8W.js";
|
|
21
|
-
import { o as probeGateway, r as resolveGatewayProbeAuth$1, t as runSecurityAudit } from "./audit-
|
|
22
|
-
import { t as formatHealthChannelLines, u as getLastGatewayStartupTraceSnapshot } from "./health-
|
|
23
|
-
import { t as resolveHeartbeatSummaryForAgent } from "./heartbeat-runner-
|
|
21
|
+
import { o as probeGateway, r as resolveGatewayProbeAuth$1, t as runSecurityAudit } from "./audit-BGrhx_IL.js";
|
|
22
|
+
import { t as formatHealthChannelLines, u as getLastGatewayStartupTraceSnapshot } from "./health-CghndVpq.js";
|
|
23
|
+
import { t as resolveHeartbeatSummaryForAgent } from "./heartbeat-runner-DPtasJ9O.js";
|
|
24
24
|
import { d as formatUpdateChannelLabel, h as resolveEffectiveUpdateChannel, i as formatGitInstallLabel, m as normalizeUpdateChannel, n as compareSemverStrings, t as checkUpdateStatus } from "./update-check-B8tvVfAm.js";
|
|
25
25
|
import { t as resolveNodeService } from "./node-service-Bst0DpMM.js";
|
|
26
26
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-BSIStb_F.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as resolveDefaultAgentWorkspaceDir, Dn as loadConfig, F as createSubsystemLogger, d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-DHrLr5OF.js";
|
|
2
|
-
import { Nt as loadFasedAgentPlugins, la as createPluginLoaderLogger } from "./reply-
|
|
2
|
+
import { Nt as loadFasedAgentPlugins, la as createPluginLoaderLogger } from "./reply-C6zXCUnw.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/status.ts
|
|
5
5
|
const log = createSubsystemLogger("plugins");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as resolveGatewayPort } from "./paths-C9FmTW1x.js";
|
|
2
2
|
import { H as isRich, M as info, U as theme } from "./agent-paths-DmOVZE7g.js";
|
|
3
3
|
import { $ as listAgentsForGateway, Dn as loadConfig, Et as loadSessionStore, Nu as listChannelPlugins, Sn as resolveMainSessionKey, Z as classifySessionKey, _n as resolveFreshSessionTotalTokens, bl as VERSION, dd as formatCliCommand, eu as runExec, hi as resolveConfiguredModelRef, kn as readConfigFileSnapshot, ot as resolveSessionModelRef, po as resolveFasedAgentPackageRoot, pt as resolveContextTokensForModel, u as resolveAgentWorkspaceDir } from "./agent-scope-DHrLr5OF.js";
|
|
4
|
-
import { $o as getTailnetHostname, B as buildChannelAccountSnapshot, Br as loadProviderUsageSummary, Qt as resolveControlUiLinks, V as formatChannelAllowFrom, Vr as formatUsageReportLines, gt as resolveStrictAgenticRuntimeMode, hi as summarizeRestartSentinel, mi as readRestartSentinel, ra as peekSystemEvents, ts as readTailscaleStatusJson, xo as normalizeControlUiBasePath, z as buildChannelSummary } from "./reply-
|
|
4
|
+
import { $o as getTailnetHostname, B as buildChannelAccountSnapshot, Br as loadProviderUsageSummary, Qt as resolveControlUiLinks, V as formatChannelAllowFrom, Vr as formatUsageReportLines, gt as resolveStrictAgenticRuntimeMode, hi as summarizeRestartSentinel, mi as readRestartSentinel, ra as peekSystemEvents, ts as readTailscaleStatusJson, xo as normalizeControlUiBasePath, z as buildChannelSummary } from "./reply-C6zXCUnw.js";
|
|
5
5
|
import { w as parseAgentSessionKey } from "./session-key-LmCHAJTQ.js";
|
|
6
6
|
import { n as DEFAULT_MODEL, r as DEFAULT_PROVIDER, t as DEFAULT_CONTEXT_TOKENS } from "./defaults-CzImVi0V.js";
|
|
7
7
|
import { g as resolveStorePath } from "./chat-envelope-D_wSv26N.js";
|
|
@@ -19,9 +19,9 @@ import { s as resolveGatewayLogPaths, t as resolveGatewayService } from "./servi
|
|
|
19
19
|
import { t as formatRuntimeStatusWithDetails } from "./runtime-status-S9nJA1dv.js";
|
|
20
20
|
import { t as readLastGatewayErrorLine } from "./diagnostics-BkyuWtqz.js";
|
|
21
21
|
import { t as renderTable } from "./table-DQLeG14F.js";
|
|
22
|
-
import { o as probeGateway, r as resolveGatewayProbeAuth$1, t as runSecurityAudit } from "./audit-
|
|
23
|
-
import { l as getLastGatewayStartupTraceSnapshot, t as formatHealthChannelLines } from "./health-
|
|
24
|
-
import { t as resolveHeartbeatSummaryForAgent } from "./heartbeat-runner-
|
|
22
|
+
import { o as probeGateway, r as resolveGatewayProbeAuth$1, t as runSecurityAudit } from "./audit-DQyLAEfl.js";
|
|
23
|
+
import { l as getLastGatewayStartupTraceSnapshot, t as formatHealthChannelLines } from "./health-GSYUFoyr.js";
|
|
24
|
+
import { t as resolveHeartbeatSummaryForAgent } from "./heartbeat-runner-1b23y_3_.js";
|
|
25
25
|
import { d as formatUpdateChannelLabel, h as resolveEffectiveUpdateChannel, i as formatGitInstallLabel, m as normalizeUpdateChannel, n as compareSemverStrings, t as checkUpdateStatus } from "./update-check-xTT04LKM.js";
|
|
26
26
|
import { t as resolveNodeService } from "./node-service-DhGH8GuH.js";
|
|
27
27
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-DYs3uRFt.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as createSubsystemLogger } from "./agent-scope-
|
|
2
|
-
import { a as buildImageResizeSideGrid, g as detectMime, i as IMAGE_REDUCE_QUALITY_STEPS, o as getImageMetadata, s as resizeToJpeg } from "./media-
|
|
1
|
+
import { k as createSubsystemLogger } from "./agent-scope-DwKyukUg.js";
|
|
2
|
+
import { a as buildImageResizeSideGrid, g as detectMime, i as IMAGE_REDUCE_QUALITY_STEPS, o as getImageMetadata, s as resizeToJpeg } from "./media-DZj8v0oe.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/media/base64.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as createSubsystemLogger, xs as isPlainObject } from "./agent-scope-
|
|
2
|
-
import "./github-copilot-token-
|
|
1
|
+
import { k as createSubsystemLogger, xs as isPlainObject } from "./agent-scope-DwKyukUg.js";
|
|
2
|
+
import "./github-copilot-token-eyrRGmGp.js";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
|
|
5
5
|
//#region src/agents/tool-loop-detection.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cf as GATEWAY_CLIENT_MODES, Gu as resolveDefaultAgentId, Hc as formatThinkingLevels, Su as visibleWidth, Wc as listThinkingLevelLabels, Xt as loadConfig, Yc as VERSION, wf as GATEWAY_CLIENT_NAMES, xf as GATEWAY_CLIENT_CAPS, xu as stripAnsi$1 } from "./env-C77feXxI.js";
|
|
2
|
-
import { Ti as resolveToolDisplay, kn as formatRawAssistantErrorForUi, wi as formatToolDetail } from "./model-catalog-
|
|
2
|
+
import { Ti as resolveToolDisplay, kn as formatRawAssistantErrorForUi, wi as formatToolDetail } from "./model-catalog-Iu_LUOVA.js";
|
|
3
3
|
import { H as normalizeMainKey, L as buildAgentMainSessionKey, V as normalizeAgentId, it as parseAgentSessionKey, o as stripLeadingInboundMetadata } from "./entry.js";
|
|
4
4
|
import { t as redactSensitiveUrl } from "./redact-sensitive-url-BW03TVj8.js";
|
|
5
5
|
import { a as listChatCommands, o as listChatCommandsForConfig, x as resolveResponseUsageMode, y as normalizeUsageDisplay } from "./commands-registry-DFSYQtVC.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dn as loadConfig, bl as VERSION, d as resolveDefaultAgentId, df as GATEWAY_CLIENT_CAPS, ld as stripAnsi$1, lp as listThinkingLevelLabels, mf as GATEWAY_CLIENT_NAMES, pf as GATEWAY_CLIENT_MODES, sp as formatThinkingLevels, ud as visibleWidth } from "./agent-scope-DHrLr5OF.js";
|
|
2
2
|
import { E as resolveResponseUsageMode, a as listChatCommands, o as listChatCommandsForConfig, w as normalizeUsageDisplay } from "./commands-registry-BRvZQ1jh.js";
|
|
3
|
-
import { Z as formatRawAssistantErrorForUi, cr as resolveToolDisplay, sr as formatToolDetail } from "./reply-
|
|
3
|
+
import { Z as formatRawAssistantErrorForUi, cr as resolveToolDisplay, sr as formatToolDetail } from "./reply-C6zXCUnw.js";
|
|
4
4
|
import { c as normalizeMainKey, r as buildAgentMainSessionKey, s as normalizeAgentId, w as parseAgentSessionKey } from "./session-key-LmCHAJTQ.js";
|
|
5
5
|
import { i as stripLeadingInboundMetadata } from "./chat-envelope-D_wSv26N.js";
|
|
6
6
|
import { t as redactSensitiveUrl } from "./redact-sensitive-url-B0RJQqO7.js";
|