@fased/fased 0.1.25 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{active-listener-Dmc7Xtuo.js → active-listener-Bw8DT1EX.js} +1 -1
- package/dist/{agent-scope-BYecP9O5.js → agent-scope-Bx0XQq3s.js} +124 -124
- package/dist/{agents-BAwdPmuP.js → agents-PLOoSFBh.js} +8 -8
- package/dist/{attachment-normalize-CpACpkVc.js → attachment-normalize-BIZB4CND.js} +1 -1
- package/dist/{attachment-normalize-DBieJPUX.js → attachment-normalize-ChuwwIS8.js} +1 -1
- package/dist/{audio-preflight-DJxu384V.js → audio-preflight-Ca5VMwBa.js} +31 -31
- package/dist/{audio-preflight-BPNsxAHd.js → audio-preflight-CauBE2g_.js} +2 -2
- package/dist/{audio-preflight-Dbx-8KZg.js → audio-preflight-DCByMRyo.js} +2 -2
- package/dist/{audio-preflight-rjcK40Jv.js → audio-preflight-DS-zoM7T.js} +1 -1
- package/dist/{audio-preflight-Byz-gKIm.js → audio-preflight-w8nKC_zF.js} +2 -2
- package/dist/{audit-BUGD0Cea.js → audit--Uj8Mv8B.js} +1 -1
- package/dist/{audit-gfuM1Vjh.js → audit-CBKvcMiw.js} +1 -1
- package/dist/{auth--jgGatQn.js → auth-BM6Ysl_r.js} +5 -5
- package/dist/{auth-choice-DATCdxSX.js → auth-choice-B6TwaDrq.js} +1 -1
- package/dist/{auth-choice-BsniBn1I.js → auth-choice-Bjt7dFoE.js} +1 -1
- package/dist/{auth-choice-prompt-BUcd2a1l.js → auth-choice-prompt-0CJxkm9g.js} +1 -1
- package/dist/{auth-choice-prompt-B05dvMk9.js → auth-choice-prompt-B-MUEZKO.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-D69hLBEQ.js → channel-activity-BvC4RbBO.js} +1 -1
- package/dist/{channel-web-8dcQFhXh.js → channel-web-B9RMCX6L.js} +1 -1
- package/dist/{channel-web-CQ1aSzyo.js → channel-web-d-gVS8PK.js} +1 -1
- package/dist/{channels-BfClMnuw.js → channels-COP0GMYS.js} +6 -6
- package/dist/{channels-CNc-krZu.js → channels-Dwz-DRz2.js} +6 -6
- package/dist/{channels-cli-BqH2jgIa.js → channels-cli-CN_1e7BH.js} +5 -5
- package/dist/{channels-cli-BXUaofwP.js → channels-cli-D7Z_4VdM.js} +5 -5
- package/dist/{chunk-KatG8h1H.js → chunk-CiQeXMLG.js} +1 -1
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-Ba8r_4jU.js → cli-BbyRRGp-.js} +2 -2
- package/dist/{cli-BA8YqOFJ.js → cli-CkL6EZ2f.js} +2 -2
- package/dist/{command-registry-IzzD5Oqm.js → command-registry-DdDH0kwR.js} +14 -9
- package/dist/{commands-registry-CG-_VuYC.js → commands-registry-t0hu8c_Z.js} +1 -1
- package/dist/{completion-cli-Bv9Ff04z.js → completion-cli-CGaMvenV.js} +1 -1
- package/dist/{completion-cli-BXZJxxud.js → completion-cli-D2VoNwGt.js} +2 -2
- package/dist/{config-cli-COXUekDY.js → config-cli-BGg7Pf90.js} +1 -1
- package/dist/{config-cli-jFjxfNYT.js → config-cli-Cvli_FYY.js} +1 -1
- package/dist/{config-eval-DxNYxraZ.js → config-eval-CLXDBlCw.js} +3 -3
- package/dist/{configure-B0707nNG.js → configure-BOk0QyDm.js} +12 -12
- package/dist/{configure-ovQf9MOe.js → configure-DEmZM_YG.js} +12 -12
- package/dist/control-ui/assets/app-DXYMrRJ9.js.map +1 -1
- package/dist/{cron-cli-CF3_6bI6.js → cron-cli-DCnD8EW6.js} +2 -2
- package/dist/{cron-cli-CTZmC1gM.js → cron-cli-DOljEleF.js} +2 -2
- package/dist/{daemon-cli-1EQ0XjhO.js → daemon-cli-BNr159ZN.js} +1 -1
- package/dist/{daemon-cli-BA9GK6KG.js → daemon-cli-CZb48IA1.js} +1 -1
- package/dist/daemon-cli.js +1 -1
- package/dist/{deps-DTRFlXee.js → deps-CUgTrfT_.js} +1 -1
- package/dist/{deps-zXDp-6zo.js → deps-GpT8ZL7k.js} +1 -1
- package/dist/{diagnostic-BYQE13k1.js → diagnostic-C6MSQFZF.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +2 -2
- package/dist/{fetch-CYWabNXm.js → fetch-BwkjkjT6.js} +1 -1
- package/dist/{fetch-guard-CNlKZ01R.js → fetch-guard-DdMratk8.js} +1 -1
- package/dist/{filesystem-manager-CWbYjhcQ.js → filesystem-manager-B8V6mEya.js} +4 -4
- package/dist/{fs-safe-T802CTm-.js → fs-safe-CrX7hR24.js} +2 -2
- package/dist/{gateway-cli-CcmpNNBK.js → gateway-cli-BP-_F4-K.js} +27 -27
- package/dist/{gateway-cli-fvAvFvWF.js → gateway-cli-DajIhoiB.js} +27 -27
- package/dist/{github-copilot-token-eyrRGmGp.js → github-copilot-token-DYrFvncE.js} +8 -8
- package/dist/{health-DMIr-aMm.js → health-DYfR2tAL.js} +2 -2
- package/dist/{health-D5Kn_r2-.js → health-DZI1Wr4L.js} +2 -2
- package/dist/{heartbeat-runner-CHgoAEgX.js → heartbeat-runner-BZRpdbzQ.js} +1 -1
- package/dist/{heartbeat-runner-BDAtmWBo.js → heartbeat-runner-ChGSttk8.js} +1 -1
- package/dist/{hooks-cli-4Tn-Pz3X.js → hooks-cli-C6Z69pLM.js} +3 -3
- package/dist/{hooks-cli-COzZu-3x.js → hooks-cli-DUc3nSFU.js} +3 -3
- package/dist/index.js +7 -7
- package/dist/{internal-CGfrGFGR.js → internal-QlbJb-4V.js} +3 -3
- package/dist/{ipv4-edmz3h2d.js → ipv4-Blh2hgTQ.js} +2 -2
- package/dist/{ipv4-BBllYItM.js → ipv4-Br8CDyh3.js} +2 -2
- package/dist/{lifecycle-DkSP20z0.js → lifecycle-CioP0p09.js} +1 -1
- package/dist/{lifecycle-BJVHVcLH.js → lifecycle-J7GLbdbo.js} +1 -1
- package/dist/{list.auth-overview-CwN3mjic.js → list.auth-overview-CfC_nfJI.js} +1 -1
- package/dist/{list.auth-overview-B3oGhYM2.js → list.auth-overview-CyhYp6EQ.js} +1 -1
- package/dist/llm-slug-generator.js +31 -31
- package/dist/{login-H3-M4-wp.js → login-BGt2KP5c.js} +2 -2
- package/dist/{login-qr-DIly-pBD.js → login-qr-CDDF5Ark.js} +3 -3
- package/dist/{manager-ZRPdFyMZ.js → manager-BfodMNDG.js} +8 -8
- package/dist/{markdown-tables-KcZiNfqg.js → markdown-tables-C-HEtwaC.js} +1 -1
- package/dist/{media-93Hw7QIY.js → media-CInvDVc0.js} +5 -5
- package/dist/{memory-search-CueDEO0U.js → memory-search-BZt8FFLW.js} +2 -2
- package/dist/{model-catalog-CxobTZWm.js → model-catalog-CMQwKS9K.js} +6 -6
- package/dist/{models-cli-CQD7x1XE.js → models-cli-BRSRv8OR.js} +4 -4
- package/dist/{models-cli-CTdsSpCg.js → models-cli-D280hUIX.js} +5 -5
- package/dist/{models-CNvk0YfH.js → models-lNc4x6We.js} +4 -4
- package/dist/{node-cli-CcoukRRK.js → node-cli-CS_VyUoo.js} +2 -2
- package/dist/{node-cli-BzeNv-ds.js → node-cli-nyS7caUG.js} +2 -2
- package/dist/{onboard-DmCN4Q_x.js → onboard-0OuxwPZt.js} +6 -6
- package/dist/{onboard-CwEkiFRs.js → onboard-DrDXqfYu.js} +6 -6
- package/dist/{onboard-channels-2XljJaTm.js → onboard-channels-B8E0CT6W.js} +2 -2
- package/dist/{onboard-channels-Bvr3jRpN.js → onboard-channels-ZLgokMu8.js} +2 -2
- package/dist/{onboard-search-D5JJdo7K.js → onboard-search-BS4tAvvO.js} +5 -5
- package/dist/{onboard-search-2gtSY5tA.js → onboard-search-Ba2ytDqC.js} +5 -5
- package/dist/{onboarding-CnZhc95F.js → onboarding-0-tN3rpU.js} +7 -7
- package/dist/{onboarding-DlW7GJUw.js → onboarding-DMNX3BK-.js} +7 -7
- package/dist/{openresponses-http-C5aAcbCi.js → openresponses-http-8dFSInBJ.js} +31 -31
- package/dist/{openresponses-http-Dc05ZH8z.js → openresponses-http-BIkAOTxf.js} +2 -2
- package/dist/{openresponses-http-T8LdDnc0.js → openresponses-http-BmZeLRVZ.js} +2 -2
- package/dist/{openresponses-http-CzDY8cIu.js → openresponses-http-Bo9vSaZm.js} +2 -2
- package/dist/{openresponses-http-BBoCusHR.js → openresponses-http-DnQfIUr0.js} +1 -1
- package/dist/{outbound-C7mwBvhN.js → outbound-CfdOHhpP.js} +6 -6
- package/dist/{outbound-attachment-DILp822M.js → outbound-attachment-BL6wK70V.js} +2 -2
- package/dist/{parent-default-help-ChW2Tmkd.js → parent-default-help-BUGE3N5M.js} +1 -1
- package/dist/{parent-default-help-BY-sASgm.js → parent-default-help-Bw0TQqao.js} +1 -1
- package/dist/{path-alias-guards-DyTCSx8q.js → path-alias-guards-Dalcwl5X.js} +1 -1
- package/dist/{paths-DGN5lNb7.js → paths-6Y-iET7k.js} +9 -9
- package/dist/{paths-WC-EEiZe.js → paths-zdeD1PNp.js} +22 -22
- package/dist/{pi-embedded-DycFlBFt.js → pi-embedded-B4QplhHK.js} +239 -239
- package/dist/{pi-embedded-D3f_0OCA.js → pi-embedded-CqBy4Ow1.js} +14 -14
- package/dist/{pi-model-discovery--TE7j7VE.js → pi-model-discovery-C1CAe7eM.js} +7 -7
- package/dist/pi-model-discovery-runtime-C34IWfDn.js +5 -0
- package/dist/{plugin-registry-BMZnqd6J.js → plugin-registry-B-5zsRCJ.js} +1 -1
- package/dist/{plugin-registry-CACG2gQJ.js → plugin-registry-CwdlIibL.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-DdECkXig.js → audio-preflight-B9XwrK8E.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-D0z1vCIJ.js → audio-preflight-BzkkPOSy.js} +1 -1
- package/dist/plugin-sdk/{channel-web-DutD9MUD.js → channel-web-edStGPJ_.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-CuN1K6Vh.js → openresponses-http-CaUbvHEV.js} +1 -1
- package/dist/plugin-sdk/{openresponses-http-DA-svGJM.js → openresponses-http-DROo9RHP.js} +1 -1
- package/dist/plugin-sdk/{reply-Dq06AFcQ.js → reply-c8Rhs5lm.js} +5 -5
- package/dist/plugin-sdk/src/brand.d.ts +2 -2
- package/dist/plugin-sdk/{status-C-jdc3gP.js → status-DvtcKSTx.js} +5 -5
- package/dist/plugin-sdk/{web-t_9R4EaO.js → web-CL-Tw8In.js} +1 -1
- package/dist/plugin-sdk/{web-DWgwLtKx.js → web-p3U1neKt.js} +2 -2
- package/dist/{plugins-cli-htV4dn9W.js → plugins-cli-3QWys_6K.js} +5 -5
- package/dist/{plugins-cli-Chr8meTS.js → plugins-cli-BZkTm6sr.js} +5 -5
- package/dist/{program-Dy2K4J-j.js → program-DvjNk69F.js} +7 -7
- package/dist/{program-context-DOdc189g.js → program-context-BWy3h2ha.js} +29 -24
- package/dist/{prompt-select-styled-DvVmQxRr.js → prompt-select-styled-AIok8h9p.js} +4 -4
- package/dist/{prompt-select-styled-ClKxw3vg.js → prompt-select-styled-BlI2vulE.js} +4 -4
- package/dist/{pw-ai-DSqNyWzX.js → pw-ai-5b6U6vNE.js} +5 -5
- package/dist/{pw-ai-BaQ88hEN.js → pw-ai-DuNzIjgi.js} +1 -1
- package/dist/{qmd-manager-DA3v0Y-t.js → qmd-manager-CVbI17-v.js} +5 -5
- package/dist/{qmd-scope-Byk5KlGv.js → qmd-scope-CL7VCB5M.js} +1 -1
- package/dist/{query-expansion-CGVFZR8O.js → query-expansion-DrMLz38Q.js} +2 -2
- package/dist/{register.agent-CVb1aNGb.js → register.agent-B0v5EFb9.js} +8 -8
- package/dist/{register.agent-BjHgBnNH.js → register.agent-CM6ChCCM.js} +9 -9
- package/dist/{register.configure-BD16oSkx.js → register.configure-4lAnV0h2.js} +12 -12
- package/dist/{register.configure-AOtkbBDm.js → register.configure-BrS9fnGg.js} +12 -12
- package/dist/{register.maintenance-DEQXCbIv.js → register.maintenance-BZJ_FgeN.js} +9 -9
- package/dist/{register.maintenance-OpyHgY1P.js → register.maintenance-DWWFG05E.js} +8 -8
- package/dist/{register.message-C_CKu8Ag.js → register.message-BvoFyPQe.js} +3 -3
- package/dist/{register.message-CVdvEAer.js → register.message-DpHNpm_f.js} +3 -3
- package/dist/{register.onboard-mhI_mVYC.js → register.onboard-BKkNiA3f.js} +14 -14
- package/dist/{register.onboard-CmhmBmV_.js → register.onboard-BZBSH7lT.js} +14 -14
- package/dist/{register.setup-D43x_lF6.js → register.setup-CxUzflwM.js} +14 -14
- package/dist/{register.setup-cH9cY5j8.js → register.setup-e257emro.js} +14 -14
- package/dist/{register.status-health-sessions-DbKBs-Dv.js → register.status-health-sessions-CaiPI_3z.js} +6 -6
- package/dist/{register.status-health-sessions-Cl2GXoH9.js → register.status-health-sessions-kiaOc9lw.js} +6 -6
- package/dist/{register.subclis-UR8yy2V1.js → register.subclis-BDKJfKQC.js} +16 -16
- package/dist/{replies-oXYe4wxf.js → replies-DEtI8EHM.js} +2 -2
- package/dist/{reply-DKXEMGJk.js → reply-DE8Gag1_.js} +6 -6
- package/dist/{reply-prefix-DZjj9KHV.js → reply-prefix-DVyUjzCQ.js} +1 -1
- package/dist/{resolve-route-D3-NnOVE.js → resolve-route-Dc1L-NXd.js} +1 -1
- package/dist/{run-main-BtUNggd0.js → run-main-BudffsJB.js} +14 -14
- package/dist/{runtime-helper-grants-BpaENEYs.js → runtime-helper-grants-BDKhdCvl.js} +1 -1
- package/dist/{runtime-helper-grants-DjqO3lSD.js → runtime-helper-grants-DtHN6AEs.js} +1 -1
- package/dist/{sandbox-cli-BQQRfV1D.js → sandbox-cli-BLhIlpbj.js} +2 -2
- package/dist/{sandbox-cli-D6YMMRKQ.js → sandbox-cli-Bsy4jDbW.js} +2 -2
- package/dist/{security-cli-XsVnHqBc.js → security-cli-BMWm4Crb.js} +3 -3
- package/dist/{security-cli-DsI4axES.js → security-cli-DSBudhYJ.js} +3 -3
- package/dist/{send-BqgaWpoE.js → send-BohOQw4n.js} +4 -4
- package/dist/{send-B-sa1Rzn.js → send-CqQ88clX.js} +18 -18
- package/dist/{send-DQ3s5E33.js → send-D2IXnEJl.js} +7 -7
- package/dist/{send-C1YtjPQb.js → send-D8eFKkkd.js} +5 -5
- package/dist/{send-Bhj3bXKi.js → send-Ps08x526.js} +5 -5
- package/dist/{server-CeyfL8Eb.js → server-BT5F2Q5J.js} +2 -2
- package/dist/{server-C6Wn6fOt.js → server-DHQlbvr9.js} +2 -2
- package/dist/{server-cron-ex-l7CR-.js → server-cron-B2xgEgPD.js} +2 -2
- package/dist/{server-cron-CyeAOE82.js → server-cron-CSHTxY52.js} +2 -2
- package/dist/{server-node-events-DbVCcE6h.js → server-node-events-BWteIuKj.js} +3 -3
- package/dist/{server-node-events-DatXdFKC.js → server-node-events-DE9bSSlP.js} +3 -3
- package/dist/{session-CYgXtJQQ.js → session-Cz9lOeBe.js} +5 -5
- package/dist/{skill-commands-HOHDwVYx.js → skill-commands-LW0SeGsB.js} +24 -24
- package/dist/{status-txacjkAa.js → status-C5Q3Dpz_.js} +1 -1
- package/dist/{status-CLX642xS.js → status-Chve8nMF.js} +4 -4
- package/dist/{status-BjLWRmSp.js → status-Di79Ffwx.js} +1 -1
- package/dist/{status-o9xsW6v2.js → status-VUMxenOh.js} +4 -4
- package/dist/{tables-BQMYTcw_.js → tables-CjmIs23-.js} +1 -1
- package/dist/{target-errors-iZTI1Fwr.js → target-errors-C3MQ1_UT.js} +2 -2
- package/dist/{tool-loop-detection-CqQip5ev.js → tool-loop-detection-CSfX9pJE.js} +2 -2
- package/dist/{tui-DNmu5lsr.js → tui-BKEzJV51.js} +4 -4
- package/dist/{tui-tzrWlTV9.js → tui-DRyWzqYP.js} +4 -4
- package/dist/{tui-cli-8TP0FYqo.js → tui-cli-BSDU_mov.js} +3 -3
- package/dist/{tui-cli-_1T1BD7G.js → tui-cli-TYJG1L7w.js} +3 -3
- package/dist/{update-cli-CtbxZUYD.js → update-cli-1PEl-Fyn.js} +9 -9
- package/dist/{update-cli-XURvJSvU.js → update-cli-C03GytAg.js} +10 -10
- package/dist/{update-runner-DYIUXOam.js → update-runner-CnItFRwI.js} +1 -1
- package/dist/{update-runner-YiEn47LP.js → update-runner-DtjYE_ge.js} +1 -1
- package/dist/{web-C5tVzWqH.js → web-BgaF3FE-.js} +3 -3
- package/dist/{web-D-wuvT-R.js → web-CAKCDdZw.js} +35 -35
- package/dist/{web-Dpm1R6Am.js → web-CCTKMh_4.js} +1 -1
- package/dist/{web-C7pvp10g.js → web-DSormx61.js} +2 -2
- package/dist/{web-DsJ3Gv2k.js → web-Dn2r7XXj.js} +3 -3
- package/dist/{web-search-providers.runtime-DtAIUb4W.js → web-search-providers.runtime-CiHKVMIP.js} +1 -1
- package/dist/{web-search-providers.runtime-B-isE-ww.js → web-search-providers.runtime-DHTq36lb.js} +1 -1
- package/dist/{whatsapp-actions-CrVrn3wF.js → whatsapp-actions-oa93ddRw.js} +12 -12
- 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 +2 -1
- package/shared/sat-hash-v1.json +15 -0
- package/src/brand.ts +1 -1
- package/src/canvas-host/a2ui/.bundle.hash +1 -1
- package/src/cli/program/command-registry.ts +5 -0
- package/src/tui/components/filterable-select-list.ts +3 -3
- package/src/tui/components/searchable-select-list.ts +3 -3
- package/dist/pi-model-discovery-runtime-DD55ZBCk.js +0 -5
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Fs as resolvePreferredFasedAgentTmpDir, Gi as isPathInside, Gt as loadConfig, Ni as isErrno, Wi as isNotFoundPathError, es as CONFIG_DIR, k as createSubsystemLogger } from "./agent-scope-
|
|
1
|
+
import { Fs as resolvePreferredFasedAgentTmpDir, Gi as isPathInside, Gt as loadConfig, Ni as isErrno, Wi as isNotFoundPathError, es as CONFIG_DIR, k as createSubsystemLogger } from "./agent-scope-Bx0XQq3s.js";
|
|
2
2
|
import { a as resolvePinnedHostnameWithPolicy, c as isLoopbackIpAddress, l as normalizeIpAddress, s as isIpInCidr } from "./ssrf-DYsl9qoS.js";
|
|
3
|
-
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
3
|
+
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-CrX7hR24.js";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import fs$1 from "node:fs";
|
|
8
8
|
import { createHmac } from "node:crypto";
|
|
9
9
|
import { execFileSync, spawn } from "node:child_process";
|
|
10
10
|
import { createServer } from "node:http";
|
|
11
11
|
import net from "node:net";
|
|
12
|
-
import WebSocket
|
|
12
|
+
import WebSocket, { WebSocketServer } from "ws";
|
|
13
13
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
14
14
|
|
|
15
15
|
//#region src/browser/constants.ts
|
|
@@ -270,7 +270,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
270
270
|
let extensionWs = null;
|
|
271
271
|
const cdpClients = /* @__PURE__ */ new Set();
|
|
272
272
|
const connectedTargets = /* @__PURE__ */ new Map();
|
|
273
|
-
const extensionConnected = () => extensionWs?.readyState === WebSocket
|
|
273
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
|
|
274
274
|
let extensionDisconnectCleanupTimer = null;
|
|
275
275
|
const extensionReconnectWaiters = /* @__PURE__ */ new Set();
|
|
276
276
|
const flushExtensionReconnectWaiters = (connected) => {
|
|
@@ -321,7 +321,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
321
321
|
let nextExtensionId = 1;
|
|
322
322
|
const sendToExtension = async (payload) => {
|
|
323
323
|
const ws = extensionWs;
|
|
324
|
-
if (!ws || ws.readyState !== WebSocket
|
|
324
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
325
325
|
ws.send(JSON.stringify(payload));
|
|
326
326
|
return await new Promise((resolve, reject) => {
|
|
327
327
|
const timer = setTimeout(() => {
|
|
@@ -338,12 +338,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
338
338
|
const broadcastToCdpClients = (evt) => {
|
|
339
339
|
const msg = JSON.stringify(evt);
|
|
340
340
|
for (const ws of cdpClients) {
|
|
341
|
-
if (ws.readyState !== WebSocket
|
|
341
|
+
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
342
342
|
ws.send(msg);
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
const sendResponseToCdp = (ws, res) => {
|
|
346
|
-
if (ws.readyState !== WebSocket
|
|
346
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
347
347
|
ws.send(JSON.stringify(res));
|
|
348
348
|
};
|
|
349
349
|
const ensureTargetEventsForClient = (ws, mode) => {
|
|
@@ -553,7 +553,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
553
553
|
rejectUpgrade(socket, 401, "Unauthorized");
|
|
554
554
|
return;
|
|
555
555
|
}
|
|
556
|
-
if (extensionWs && extensionWs.readyState !== WebSocket
|
|
556
|
+
if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
|
|
557
557
|
try {
|
|
558
558
|
extensionWs.terminate();
|
|
559
559
|
} catch {}
|
|
@@ -590,7 +590,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
590
590
|
clearExtensionDisconnectCleanupTimer();
|
|
591
591
|
flushExtensionReconnectWaiters(true);
|
|
592
592
|
const ping = setInterval(() => {
|
|
593
|
-
if (ws.readyState !== WebSocket
|
|
593
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
594
594
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
595
595
|
}, 5e3);
|
|
596
596
|
ws.on("message", (data) => {
|
|
@@ -932,7 +932,7 @@ async function fetchOk(url, timeoutMs = 1500, init) {
|
|
|
932
932
|
}
|
|
933
933
|
async function withCdpSocket(wsUrl, fn, opts) {
|
|
934
934
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
935
|
-
const ws = new WebSocket
|
|
935
|
+
const ws = new WebSocket(wsUrl, {
|
|
936
936
|
handshakeTimeout: typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : 5e3,
|
|
937
937
|
...Object.keys(headers).length ? { headers } : {}
|
|
938
938
|
});
|
|
@@ -1140,7 +1140,7 @@ async function snapshotAria(opts) {
|
|
|
1140
1140
|
const LSOF_CANDIDATES = process.platform === "darwin" ? ["/usr/sbin/lsof", "/usr/bin/lsof"] : ["/usr/bin/lsof", "/usr/sbin/lsof"];
|
|
1141
1141
|
function resolveLsofCommandSync() {
|
|
1142
1142
|
for (const candidate of LSOF_CANDIDATES) try {
|
|
1143
|
-
|
|
1143
|
+
fs$1.accessSync(candidate, fs$1.constants.X_OK);
|
|
1144
1144
|
return candidate;
|
|
1145
1145
|
} catch {}
|
|
1146
1146
|
return "lsof";
|
|
@@ -1255,7 +1255,7 @@ const CHROMIUM_EXE_NAMES = new Set([
|
|
|
1255
1255
|
]);
|
|
1256
1256
|
function exists$1(filePath) {
|
|
1257
1257
|
try {
|
|
1258
|
-
return
|
|
1258
|
+
return fs$1.existsSync(filePath);
|
|
1259
1259
|
} catch {
|
|
1260
1260
|
return false;
|
|
1261
1261
|
}
|
|
@@ -1398,7 +1398,7 @@ function findDesktopFilePath(desktopId) {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
function readDesktopExecLine(desktopPath) {
|
|
1400
1400
|
try {
|
|
1401
|
-
const lines =
|
|
1401
|
+
const lines = fs$1.readFileSync(desktopPath, "utf8").split(/\r?\n/);
|
|
1402
1402
|
for (const line of lines) if (line.startsWith("Exec=")) return line.slice(5).trim();
|
|
1403
1403
|
} catch {}
|
|
1404
1404
|
return null;
|
|
@@ -1658,8 +1658,8 @@ function decoratedMarkerPath(userDataDir) {
|
|
|
1658
1658
|
}
|
|
1659
1659
|
function safeReadJson(filePath) {
|
|
1660
1660
|
try {
|
|
1661
|
-
if (!
|
|
1662
|
-
const raw =
|
|
1661
|
+
if (!fs$1.existsSync(filePath)) return null;
|
|
1662
|
+
const raw = fs$1.readFileSync(filePath, "utf-8");
|
|
1663
1663
|
const parsed = JSON.parse(raw);
|
|
1664
1664
|
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return null;
|
|
1665
1665
|
return parsed;
|
|
@@ -1668,8 +1668,8 @@ function safeReadJson(filePath) {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
|
1670
1670
|
function safeWriteJson(filePath, data) {
|
|
1671
|
-
|
|
1672
|
-
|
|
1671
|
+
fs$1.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
1672
|
+
fs$1.writeFileSync(filePath, JSON.stringify(data, null, 2));
|
|
1673
1673
|
}
|
|
1674
1674
|
function setDeep(obj, keys, value) {
|
|
1675
1675
|
let node = obj;
|
|
@@ -1796,7 +1796,7 @@ function decorateFasedAgentProfile(userDataDir, opts) {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
safeWriteJson(preferencesPath, prefs);
|
|
1798
1798
|
try {
|
|
1799
|
-
|
|
1799
|
+
fs$1.writeFileSync(decoratedMarkerPath(userDataDir), `${Date.now()}\n`, "utf-8");
|
|
1800
1800
|
} catch {}
|
|
1801
1801
|
}
|
|
1802
1802
|
function ensureProfileCleanExit(userDataDir) {
|
|
@@ -1812,7 +1812,7 @@ function ensureProfileCleanExit(userDataDir) {
|
|
|
1812
1812
|
const log = createSubsystemLogger("browser").child("chrome");
|
|
1813
1813
|
function exists(filePath) {
|
|
1814
1814
|
try {
|
|
1815
|
-
return
|
|
1815
|
+
return fs$1.existsSync(filePath);
|
|
1816
1816
|
} catch {
|
|
1817
1817
|
return false;
|
|
1818
1818
|
}
|
|
@@ -1858,7 +1858,7 @@ async function getChromeWebSocketUrl(cdpUrl, timeoutMs = 500) {
|
|
|
1858
1858
|
async function canOpenWebSocket(wsUrl, timeoutMs = 800) {
|
|
1859
1859
|
return await new Promise((resolve) => {
|
|
1860
1860
|
const headers = getHeadersWithAuth(wsUrl);
|
|
1861
|
-
const ws = new WebSocket
|
|
1861
|
+
const ws = new WebSocket(wsUrl, {
|
|
1862
1862
|
handshakeTimeout: timeoutMs,
|
|
1863
1863
|
...Object.keys(headers).length ? { headers } : {}
|
|
1864
1864
|
});
|
|
@@ -1892,7 +1892,7 @@ async function launchFasedAgentChrome(resolved, profile) {
|
|
|
1892
1892
|
const exe = resolveBrowserExecutable(resolved);
|
|
1893
1893
|
if (!exe) throw new Error("No supported browser found (Chrome/Brave/Edge/Chromium on macOS, Linux, or Windows).");
|
|
1894
1894
|
const userDataDir = resolveFasedAgentUserDataDir(profile.name);
|
|
1895
|
-
|
|
1895
|
+
fs$1.mkdirSync(userDataDir, { recursive: true });
|
|
1896
1896
|
const needsDecorate = !isProfileDecorated(userDataDir, profile.name, (profile.color ?? DEFAULT_FASED_BROWSER_COLOR).toUpperCase());
|
|
1897
1897
|
const spawnOnce = () => {
|
|
1898
1898
|
const args = [
|