@noxsoft/anima 2.0.3 → 2.0.4
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 +1260 -28
- package/dist/{accounts-CP1IAWeM.js → accounts-D8CPKNkN.js} +3 -3
- package/dist/{acp-cli-0JY_DUDb.js → acp-cli-ByK6lS6c.js} +14 -14
- package/dist/{acp-cli-BUGHeckb.js → acp-cli-CaQCjIw4.js} +1 -1
- package/dist/{agent-eLix7YLB.js → agent-BgIkqd3F.js} +3 -3
- package/dist/{agent-DwTJ59DW.js → agent-N5BDcge4.js} +17 -17
- package/dist/{agent-events-COLRhRBH.js → agent-events-COH7NDW2.js} +2 -2
- package/dist/{agent-scope-OZi7lb8S.js → agent-scope-DZgptr9J.js} +4 -4
- package/dist/{agent-scope-CcE0DhlL.js → agent-scope-cj2QCT6R.js} +3 -3
- package/dist/{agents-D57WX9dn.js → agents-NEudYMdg.js} +16 -16
- package/dist/{agents.config-Dvo2ULxs.js → agents.config-Bujs-NIy.js} +2 -2
- package/dist/{audit-BvPmfYxY.js → audit-C-UJhfdv.js} +5 -5
- package/dist/{audit-CmL_VKW9.js → audit-CeCO7SK5.js} +21 -21
- package/dist/{auth-lZ26wsbN.js → auth-DMPZWzEa.js} +3 -3
- package/dist/{auth-choice-DbU0S_0Q.js → auth-choice-5VnaGMD-.js} +4 -4
- package/dist/{auth-choice-8JX4OqDS.js → auth-choice-DA2k4vs8.js} +9 -9
- package/dist/{auth-health-CeDOBbt0.js → auth-health-B7FqA26_.js} +1 -1
- package/dist/{auth-profiles-BVZBTuls.js → auth-profiles-BDrNYX_n.js} +12 -12
- package/dist/{auth-profiles-CC3TFfvS.js → auth-profiles-CxSHydjn.js} +4 -4
- package/dist/{banner-DDcACdvK.js → banner-BtDZPRzi.js} +1 -1
- package/dist/{browser-cli-BZ38kv8Y.js → browser-cli-8yQMpxb8.js} +3 -3
- package/dist/{browser-cli-CYOmCXxE.js → browser-cli-Czg3JtDH.js} +18 -18
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +15 -15
- package/dist/bundled/bootstrap-extra-files/handler.js +4 -4
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +5 -5
- package/dist/{call-CTMQygkz.js → call-BIzCaKZb.js} +6 -6
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{catalog-BAayBt1L.js → catalog-DMfEg-oK.js} +2 -2
- package/dist/{channel-options-M44Z9-3q.js → channel-options-BrtCtyrT.js} +3 -3
- package/dist/{channel-selection-DfGpCyh2.js → channel-selection-Bbm1lq3P.js} +2 -2
- package/dist/{channel-web-Q-STsf5N.js → channel-web-DrsT6OAE.js} +4 -4
- package/dist/{channels-cli-zIOBobe6.js → channels-cli-Juyh1S6n.js} +74 -74
- package/dist/{channels-cli-SPO9rJnF.js → channels-cli-zNvi1m5c.js} +20 -20
- package/dist/{channels-status-issues-DBc1pU_R.js → channels-status-issues-CqzqshW4.js} +1 -1
- package/dist/{chrome-DlcCwfo_.js → chrome-C4dOMO8z.js} +3 -3
- package/dist/{chrome-mUDT-mA5.js → chrome-DdcDzAtH.js} +11 -11
- package/dist/{chunk-mxPVo000.js → chunk-D2nLsrEW.js} +3 -3
- package/dist/{clack-prompter-B0kl7shw.js → clack-prompter-BI3RDW5w.js} +4 -4
- package/dist/{clack-prompter-Ct2BYIXW.js → clack-prompter-Dwr1m_IZ.js} +3 -3
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-C3cpDaz8.js +99 -0
- package/dist/{cli-AYZaZSSx.js → cli-CjWUGdGC.js} +7 -7
- package/dist/{cli-session-CqlE2JFo.js → cli-session-BVjY_XrW.js} +1 -1
- package/dist/{cli-session-C70q07GT.js → cli-session-gtuYN2Iq.js} +23 -23
- package/dist/{client-C1avc0vD.js → client-Dswwze5_.js} +4 -4
- package/dist/{clipboard-BbGnZskJ.js → clipboard-BZKS9O1u.js} +1 -1
- package/dist/{command-registry-CSbw6FZC.js → command-registry-BBvNvysr.js} +13 -13
- package/dist/{commands-D7CbOdcS.js → commands-AZ3n8Y2c.js} +6 -6
- package/dist/{commands-D5PGoVW4.js → commands-BMnD_QRY.js} +6 -6
- package/dist/{commands-registry-sLFieXCB.js → commands-registry-cFqZ6Ib4.js} +2 -2
- package/dist/{common-D6bu0zHC.js → common-DJbnT8ws.js} +2 -2
- package/dist/{completion-cli-_SwCoFq6.js → completion-cli-BADRBcIl.js} +4 -4
- package/dist/{completion-cli-BFdiNmVD.js → completion-cli-DMQgiObF.js} +1 -1
- package/dist/{config-BeuAT94o.js → config-CU-Axg8P.js} +5 -5
- package/dist/{config-cli-DhdAhW1h.js → config-cli-BPlbwiuA.js} +9 -9
- package/dist/{config-cli-NqEQjCzV.js → config-cli-DXgZJkPU.js} +1 -1
- package/dist/{config-guard-B1rmR88x.js → config-guard-Ba49JNds.js} +4 -4
- package/dist/{config-guard-BCUt7Re8.js → config-guard-Cu0qMKZJ.js} +4 -4
- package/dist/{config-C96685Kz.js → config-kVVm5EYV.js} +34 -34
- package/dist/{config-sync-CoIIbEOe.js → config-sync-CzLnLTXt.js} +2 -2
- package/dist/{config-sync-DvAttep0.js → config-sync-DuydxPWx.js} +2 -2
- package/dist/{configure-B2vlJbd2.js → configure-CHgacLyi.js} +14 -14
- package/dist/{configure-FENKo5hf.js → configure-DfHXDa1L.js} +21 -21
- package/dist/{context-ChaAWbwZ.js → context-DzgXOckU.js} +3 -3
- package/dist/{control-service-DXYImShH.js → control-service-8_wKHwBa.js} +4 -4
- package/dist/{control-service-X_1FRl7x.js → control-service-BtL1Jto_.js} +2 -2
- package/dist/{cron-cli-ByPSA5ZE.js → cron-cli-BCzSR2c0.js} +19 -19
- package/dist/{cron-cli-B6jMeNqC.js → cron-cli-CCWNkykU.js} +1 -1
- package/dist/{daemon-cli-CKOoYhs-.js → daemon-cli-Bjkbu9Vy.js} +21 -21
- package/dist/{daemon-cli-Bf0Q00vC.js → daemon-cli-CmlHcC1J.js} +9 -9
- package/dist/{daemon-runtime-cglglYsH.js → daemon-runtime-rUTqCVwJ.js} +4 -4
- package/dist/{deliver-DujkDzqg.js → deliver-CePITOl8.js} +15 -15
- package/dist/{deliver-DiIOZFml.js → deliver-DFnVaetP.js} +8 -8
- package/dist/{deps-Bim542L5.js → deps-CeEKhrp7.js} +1 -1
- package/dist/{devices-cli-BbUrME_U.js → devices-cli-DQrDMrZH.js} +1 -1
- package/dist/{devices-cli-qvEFBnyH.js → devices-cli-Oe-A1Dv0.js} +12 -12
- package/dist/{diagnostics-DlIw6fqD.js → diagnostics-DxMFrBLO.js} +1 -1
- package/dist/{diagnostics-BCxobJaf.js → diagnostics-m79ZlMmZ.js} +1 -1
- package/dist/{directory-cli-VreWAdNS.js → directory-cli-BL6h8cGF.js} +2 -2
- package/dist/{directory-cli-BjnpktnO.js → directory-cli-Cjgmi_sj.js} +14 -14
- package/dist/{dispatcher-DbDPyVIX.js → dispatcher-DAFbQM-c.js} +1 -1
- package/dist/{dispatcher-CoqsaA3f.js → dispatcher-DNd40gUn.js} +2 -2
- package/dist/dist-CqDI82ei.js +929 -0
- package/dist/dist-DnHRxR5U.js +929 -0
- package/dist/{dns-cli-B-lWrEam.js → dns-cli-CFtV3BXK.js} +2 -2
- package/dist/{dns-cli-CRKIrBD6.js → dns-cli-NyIHvQ5S.js} +10 -10
- package/dist/{dock-Dmxj3en_.js → dock-BdXLb5oY.js} +4 -4
- package/dist/{docs-cli-Bn-mDvE1.js → docs-cli-D_cmJDSr.js} +7 -7
- package/dist/{doctor-DdOw46pE.js → doctor-BpGxKrBl.js} +23 -23
- package/dist/{doctor-CeIWEOAK.js → doctor-D12wNQPU.js} +41 -41
- package/dist/{doctor-completion-CBANZ9T9.js → doctor-completion-DeOfofek.js} +4 -4
- package/dist/{doctor-completion-aDHxGApN.js → doctor-completion-DwjqdEcK.js} +2 -2
- package/dist/{doctor-config-flow-Dxjx2igu.js → doctor-config-flow-BI3mpkbd.js} +9 -9
- package/dist/{doctor-config-flow-Bb8TQwYh.js → doctor-config-flow-wMHheFkC.js} +2 -2
- package/dist/{engine-B9avUJL5.js → engine-BCtL-AMw.js} +5 -5
- package/dist/{engine-BiUQ25D4.js → engine-Bk_UT413.js} +5 -5
- package/dist/entry.js +1 -1
- package/dist/{exec-tTxVr8zb.js → exec-B7sUS164.js} +17 -17
- package/dist/{exec-approvals-CdLmKX2R.js → exec-approvals-CroGJRUg.js} +2 -2
- package/dist/{exec-approvals-cli-5-h9moQI.js → exec-approvals-cli-BTxF_RsH.js} +6 -6
- package/dist/{exec-approvals-cli-Cne9mMrK.js → exec-approvals-cli-n1gyGwH2.js} +19 -19
- package/dist/{frontmatter-YijVi0FQ.js → frontmatter-BmHq0vRD.js} +2 -2
- package/dist/{gateway-cli-DboOVUi8.js → gateway-cli-DDBadlrS.js} +128 -128
- package/dist/{gateway-cli-BZpKEMGi.js → gateway-cli-IZNkOMBe.js} +62 -62
- package/dist/{gateway-rpc-C3eniXwh.js → gateway-rpc-L2PVSqGj.js} +3 -3
- package/dist/{github-copilot-auth-AdaPw_fF.js → github-copilot-auth-DKyqDaGU.js} +2 -2
- package/dist/{github-copilot-auth-C2cJr55I.js → github-copilot-auth-DXpOMSd3.js} +3 -3
- package/dist/{gmail-setup-utils-BPo_LkKI.js → gmail-setup-utils-BKNczIJ9.js} +3 -3
- package/dist/{health-CdHDOLo6.js → health-Bm8ZTvC3.js} +4 -4
- package/dist/{health-WvhhwAnn.js → health-DUf1gt4E.js} +17 -17
- package/dist/{health-format-CdP99j3Y.js → health-format-uzh1xYLD.js} +2 -2
- package/dist/{heartbeat-visibility-B4oqf1qY.js → heartbeat-visibility-1TJb1Zao.js} +1 -1
- package/dist/{heartbeat-visibility-ClqnPSqo.js → heartbeat-visibility-CwodtdcX.js} +1 -1
- package/dist/{helpers-ZKNRexvX.js → helpers-N-uSFKOn.js} +1 -1
- package/dist/{hooks-cli-DfR8cmrL.js → hooks-cli-1POsXqOl.js} +11 -11
- package/dist/{hooks-cli-DTMS4Ly9.js → hooks-cli-BGjILbze.js} +58 -58
- package/dist/{hooks-status-LVJDILL8.js → hooks-status-DE07n5RC.js} +1 -1
- package/dist/{hooks-status-B-e96dZj.js → hooks-status-Du-d1jde.js} +4 -4
- package/dist/{image-ops-Dlt3T7th.js → image-ops-Bp0C6Mvr.js} +1 -1
- package/dist/index.js +12 -12
- package/dist/{init-Bm04RagW.js → init-9A0s7bWG.js} +2 -2
- package/dist/{init-CaJBf4p1.js → init-DoyCHJDC.js} +3 -3
- package/dist/{installs-D-cPGdCw.js → installs-D1C9wHAq.js} +5 -5
- package/dist/{installs-DCTtAJP8.js → installs-Dh4dHayM.js} +2 -2
- package/dist/{ipv4-loTbB6OD.js → ipv4-DCItfaJo.js} +15 -15
- package/dist/{ipv4-CoPxliya.js → ipv4-DSOUVx0i.js} +8 -8
- package/dist/{lifecycle-core-Cu_h9gos.js → lifecycle-core-BY4WIf9g.js} +5 -5
- package/dist/{lifecycle-core-BZo7U2jW.js → lifecycle-core-TQKyXO-6.js} +8 -8
- package/dist/{links-BfjHVTB_.js → links-CNu_8RZl.js} +1 -1
- package/dist/llm-slug-generator.js +4 -4
- package/dist/{logging-DB6BQmhi.js → logging-C7lb3Vjc.js} +1 -1
- package/dist/{login-CnNpZKOD.js → login-DXWKewA2.js} +3 -3
- package/dist/{login-D4n2DJtf.js → login-pPs3UO38.js} +5 -5
- package/dist/{login-qr-CaB_Oi7G.js → login-qr-GF2JMIy-.js} +9 -9
- package/dist/{login-qr-D3xv0VnI.js → login-qr-ZYYKD6Yt.js} +7 -7
- package/dist/{logs-cli-CFX-tr6f.js → logs-cli-CzXbX8HZ.js} +14 -14
- package/dist/{logs-cli-NXQfed5q.js → logs-cli-D9ngH9PF.js} +2 -2
- package/dist/{manager-D_engjHC.js → manager-BD5rA3w0.js} +9 -9
- package/dist/{manager-iFc0bAWS.js → manager-DRWMWM--.js} +7 -7
- package/dist/{manifest-registry-D4lM2RdV.js → manifest-registry-DbvPaBXY.js} +1 -1
- package/dist/{markdown-tables-Bhes7rr4.js → markdown-tables-CqwihY2m.js} +2 -2
- package/dist/{media-Bu2L8c_7.js → media-lUqN-0O9.js} +6 -6
- package/dist/{memory-cli-CvrdGRvA.js → memory-cli-BLXSpgnN.js} +13 -13
- package/dist/{memory-cli-D6v61Mts.js → memory-cli-BcGVkkRJ.js} +1 -1
- package/dist/{migrate-BR6iAIjO.js → migrate-BpVOar4L.js} +3 -3
- package/dist/{migrate-D0EcMs0f.js → migrate-CkgGDkWy.js} +2 -2
- package/dist/{models-D11W7O93.js → models-CExsNQPH.js} +22 -22
- package/dist/{models-cli-ClFZ55qZ.js → models-cli-Ba3Jmwev.js} +18 -18
- package/dist/{models-cli-BfBH9dWH.js → models-cli-iDAlsbL2.js} +64 -64
- package/dist/{net-B5lXhYLV.js → net-0A_zcaQD.js} +1 -1
- package/dist/{node-cli-kxhgdSNi.js → node-cli-ATmwCXIk.js} +33 -33
- package/dist/{node-cli-Cgn2mwSW.js → node-cli-DYFR_V25.js} +12 -12
- package/dist/{node-service-BFxHJsno.js → node-service-CN4LqR1A.js} +2 -2
- package/dist/{node-service-BL8qVG1X.js → node-service-CWt3MdSC.js} +1 -1
- package/dist/{nodes-cli-deMLu7ch.js → nodes-cli-BeVmhTz3.js} +18 -18
- package/dist/{nodes-cli-De6Ta7GH.js → nodes-cli-QeJIfa18.js} +2 -2
- package/dist/{nodes-screen-BST4qOFR.js → nodes-screen-DHyWAlla.js} +1 -1
- package/dist/{note-BtE8fGoO.js → note-CSlg2BnB.js} +1 -1
- package/dist/{note-uiuPxhyX.js → note-Ctvglhp1.js} +1 -1
- package/dist/{npm-registry-spec-za3itb5Y.js → npm-registry-spec-PxisIMts.js} +1 -1
- package/dist/{onboard-DPEqxVx4.js → onboard-DeruD10m.js} +13 -13
- package/dist/{onboard-BGv6xY1s.js → onboard-SAcu5N6N.js} +18 -18
- package/dist/{onboard-channels-DEfpenNa.js → onboard-channels-C4iSfFXR.js} +4 -4
- package/dist/{onboard-channels-BsTwWmEt.js → onboard-channels-oVTVgoyg.js} +10 -10
- package/dist/{onboard-helpers-CwcaOee8.js → onboard-helpers-B8roRwLP.js} +11 -11
- package/dist/{onboard-helpers-Cz42ASwv.js → onboard-helpers-Dgh26hgP.js} +2 -2
- package/dist/{onboarding-BxYOAHWD.js → onboarding-Bi-ac8we.js} +16 -16
- package/dist/{onboarding-DvitiaRS.js → onboarding-C2gjB2u8.js} +23 -23
- package/dist/{orchestrator-BKzmyBWy.js → orchestrator-DlbAYMQP.js} +4 -4
- package/dist/{orchestrator-BN3QCz2s.js → orchestrator-DlwVRVDA.js} +4 -4
- package/dist/{outbound-Csw4yAYo.js → outbound-CkKgc6iR.js} +5 -5
- package/dist/{outbound-L1IT5jN_.js → outbound-Vfm5yDh3.js} +4 -4
- package/dist/{outbound-send-deps-CmzQCbSX.js → outbound-send-deps-DDjiMfEL.js} +6 -6
- package/dist/{pairing-cli-CSRakAu-.js → pairing-cli-CJYeuEik.js} +13 -13
- package/dist/{pairing-cli-BmPkji_u.js → pairing-cli-mqopHI8s.js} +1 -1
- package/dist/{pairing-store-uUh4DCdc.js → pairing-store-DoNj00-X.js} +3 -3
- package/dist/{path-env-Bu6k0jDQ.js → path-env-C_xpiG8l.js} +1 -1
- package/dist/{paths-Ba-yiqjy.js → paths-B1vRVCad.js} +2 -2
- package/dist/{paths-C1R4gjRm.js → paths-DA9WYabg.js} +5 -5
- package/dist/{paths-CxRf2rBG.js → paths-DfQGx0_k.js} +1 -1
- package/dist/{pi-auth-json-C2miwJYp.js → pi-auth-json-DOPW3e4X.js} +4 -4
- package/dist/{pi-auth-json-I3iYPRAb.js → pi-auth-json-lae_wwwo.js} +5 -5
- package/dist/{pi-model-discovery-eIc-PHaM.js → pi-model-discovery-7q0GxMrp.js} +1 -1
- package/dist/{pi-tools.policy-DhmYCpdW.js → pi-tools.policy-xYdDLEv9.js} +5 -5
- package/dist/{plugin-auto-enable-DVD5Kls3.js → plugin-auto-enable-CViVVWgg.js} +4 -4
- package/dist/{plugin-registry-NbbyJq_D.js → plugin-registry-B4Aw2hzq.js} +2 -2
- package/dist/{plugins-DdzdfeTc.js → plugins-DtghNRtM.js} +1 -1
- package/dist/{plugins-cli-Cs_jfROZ.js → plugins-cli-4vWTmOAb.js} +13 -13
- package/dist/{plugins-cli-D0jU5_VE.js → plugins-cli-CdTMbP0X.js} +59 -59
- package/dist/{ports-Co1kd5qX.js → ports-BtZx-JKD.js} +2 -2
- package/dist/{ports-B3Vuo92o.js → ports-vd93M_Pt.js} +3 -3
- package/dist/{program-Db2-b8Np.js → program-CX3aUVeb.js} +64 -64
- package/dist/{program-context-DR1cx29i.js → program-context-BPos0ivo.js} +38 -38
- package/dist/{pw-ai-MrkdzeIJ.js → pw-ai-4QbK5YFe.js} +3 -3
- package/dist/{pw-ai-DM3CIGyg.js → pw-ai-C83HBue2.js} +6 -6
- package/dist/{qmd-manager-Dgo23O3Q.js → qmd-manager-CPypGJ0P.js} +6 -6
- package/dist/{qmd-manager-Cur_Ekn0.js → qmd-manager-CRrSkfia.js} +7 -7
- package/dist/{register.agent-E1qzojq2.js → register.agent-DDY8KJhn.js} +76 -76
- package/dist/{register.agent-B4CGE-cp.js → register.agent-DKawm-9d.js} +26 -26
- package/dist/{register.anima-BETuBtyq.js → register.anima-CEWUo29k.js} +17 -17
- package/dist/{register.anima-C2coCJM_.js → register.anima-DBWz2rk_.js} +17 -17
- package/dist/{register.configure-DqYNhIQj.js → register.configure-BX67qV8k.js} +30 -30
- package/dist/register.configure-CWsySuiq.js +101 -0
- package/dist/{register.maintenance-DC9IhZ2x.js → register.maintenance-0k-ZNhDg.js} +31 -31
- package/dist/{register.maintenance-RuiaMHu7.js → register.maintenance-BIwx1fzX.js} +82 -82
- package/dist/{register.message-BRP5Y8SN.js → register.message-CXPsoakA.js} +59 -59
- package/dist/{register.message-CL5mFcq-.js → register.message-DA3jvfgI.js} +11 -11
- package/dist/{register.onboard-DFjl0E_x.js → register.onboard-C4HG7Hqv.js} +36 -36
- package/dist/{register.onboard-CdvtyeLg.js → register.onboard-GOpdif-j.js} +86 -86
- package/dist/{register.setup-CuNhw63j.js → register.setup-B17vZT7C.js} +87 -87
- package/dist/{register.setup-CVhekh_d.js → register.setup-GJyUDCqh.js} +37 -37
- package/dist/{register.status-health-sessions-BdyiNJFD.js → register.status-health-sessions-D5876dGx.js} +24 -24
- package/dist/{register.status-health-sessions-l7qnXORD.js → register.status-health-sessions-lOewVIZR.js} +73 -73
- package/dist/{register.subclis-Bj3GU0St.js → register.subclis-Dwnujj5C.js} +29 -29
- package/dist/{reply-C9A7Npep.js → reply-CR5T_oQJ.js} +10 -10
- package/dist/{reply-prefix-m-Nj9VGi.js → reply-prefix-BcrS4Umd.js} +1 -1
- package/dist/{reply-prefix-XqRfG1QY.js → reply-prefix-Btb5o2NH.js} +2 -2
- package/dist/{reply-Brlv-JC-.js → reply-r089HuRA.js} +69 -69
- package/dist/{routes-CooYoUCb.js → routes-B4czFzIb.js} +1 -1
- package/dist/{routes-C5ylAnNV.js → routes-ucJWAk5O.js} +8 -8
- package/dist/{rpc-BoNfgecI.js → rpc-BnKxnQ0v.js} +4 -4
- package/dist/{run-main-DKNJvJ7W.js → run-main-B74kv84C.js} +79 -79
- package/dist/{sandbox-D8pgNhTE.js → sandbox-CJTS3er6.js} +6 -6
- package/dist/{sandbox-cli-BlWdpX1h.js → sandbox-cli-CrkjyU5M.js} +3 -3
- package/dist/{sandbox-cli-BeOQ8G6W.js → sandbox-cli-D1r5y6Sz.js} +29 -29
- package/dist/{security-cli-CcYc8gKu.js → security-cli-BZUdnkhn.js} +34 -34
- package/dist/{security-cli-CRSXFNRa.js → security-cli-DS09ebvA.js} +5 -5
- package/dist/{server-context-Du3Gdqy1.js → server-context-C0xZbYhg.js} +3 -3
- package/dist/{server-context-Cu88BsgT.js → server-context-DVh2z7om.js} +9 -9
- package/dist/{server-node-events-DCY3mm-A.js → server-node-events-bu9lpkMH.js} +4 -4
- package/dist/{server-node-events-0Una3QLI.js → server-node-events-i1Rrww31.js} +28 -28
- package/dist/{service-BNVpYcQe.js → service-CJJwLEor.js} +2 -2
- package/dist/{service-CpG4hCVW.js → service-DxLxBhaU.js} +1 -1
- package/dist/{service-audit-DP4USmzf.js → service-audit-DB4Y3Ekp.js} +4 -4
- package/dist/{service-audit-B3atdWsy.js → service-audit-M8y4TXVb.js} +3 -3
- package/dist/{session-B6T_f3RF.js → session-CGxOLFs2.js} +9 -9
- package/dist/{session-cost-usage-BwiTZuKl.js → session-cost-usage-qdfsGU2a.js} +3 -3
- package/dist/{session-xQxk_AyT.js → session-yOhWcsD2.js} +4 -4
- package/dist/{sessions-BQUf6xj_.js → sessions-BgLN4KFr.js} +6 -6
- package/dist/{sessions-B9VnNnIk.js → sessions-CnRjwdVr.js} +8 -8
- package/dist/{sessions-G7nfpjc6.js → sessions-wRKla1Qh.js} +25 -25
- package/dist/{shared-uOwPcrN5.js → shared-DS3UaJSP.js} +1 -1
- package/dist/{shared-BcqU-KU2.js → shared-Qpt4hUDi.js} +3 -3
- package/dist/{shared-CkGP1Gie.js → shared-kzrojZ1B.js} +5 -5
- package/dist/{skill-scanner-CkaVLABv.js → skill-scanner-DLJji5Ye.js} +1 -1
- package/dist/{skills-B5LQx4lT.js → skills-BWFIEp4j.js} +3 -3
- package/dist/{skills-cli-CBFbV14l.js → skills-cli-BY53ILm2.js} +5 -5
- package/dist/{skills-cli-gGWq4bgb.js → skills-cli-CO3gxl8A.js} +13 -13
- package/dist/{skills-status-DaLLXtp7.js → skills-status-DX5pcqY3.js} +1 -1
- package/dist/{skills-status-JQluhU-P.js → skills-status-zhcKzGkp.js} +3 -3
- package/dist/{sqlite-BukcjdJa.js → sqlite-B6MojU1I.js} +2 -2
- package/dist/{sqlite-BiXgPbCK.js → sqlite-CuprTGR7.js} +4 -4
- package/dist/{start-DaXwIgOn.js → start-Cu3aLoSf.js} +10 -10
- package/dist/{start-Fy8lVmlo.js → start-Dz7tMAl8.js} +10 -10
- package/dist/{status-XzLCn872.js → status-CaSxhxfV.js} +16 -16
- package/dist/{status-DbxQqh2e.js → status-D2C0JCX3.js} +33 -33
- package/dist/{status-iUSfyst3.js → status-DlFMsQzh.js} +3 -3
- package/dist/{status-C7YN9z1q.js → status-G0CITnKR.js} +1 -1
- package/dist/{status.update-ZVrSK04Z.js → status.update-CHjhVxJY.js} +4 -4
- package/dist/{status.update-DEtEANLh.js → status.update-DVFelehi.js} +1 -1
- package/dist/{subagent-registry-DKRVOkTv.js → subagent-registry-3Xb4el-8.js} +11 -11
- package/dist/{subagent-registry-BJzLJ6FY.js → subagent-registry-DNDhbHWi.js} +12 -12
- package/dist/{system-cli-CYypNnD9.js → system-cli-B5mt0FWa.js} +1 -1
- package/dist/{system-cli-VMfIEGoj.js → system-cli-Dg3UQ3Zz.js} +12 -12
- package/dist/{systemd-BSrHDyeU.js → systemd-RpPE0XGg.js} +2 -2
- package/dist/{systemd-hints-J3cHYZVZ.js → systemd-hints-vRInKcz9.js} +1 -1
- package/dist/{systemd-linger-CmyqQkeC.js → systemd-linger-Dzyxqsod.js} +2 -2
- package/dist/{systemd-linger-B4wBMvpg.js → systemd-linger-EujbmI5A.js} +2 -2
- package/dist/{table-DoiRPsn0.js → table-DhXHfRX2.js} +1 -1
- package/dist/{timeout-CswI_K-U.js → timeout-Ddn-5kAO.js} +2 -2
- package/dist/{tokens-C-X7wDKj.js → tokens-BaM53PEx.js} +1 -1
- package/dist/{trash-BJLK1vMn.js → trash-Bmxs1Rnm.js} +1 -1
- package/dist/{tui-cli-DN5WL85n.js → tui-cli-B9Sq5-cC.js} +1 -1
- package/dist/{tui-cli-BcsdagN8.js → tui-cli-Dw7v4JoJ.js} +18 -18
- package/dist/{tui-BfPtiXD1.js → tui-mUwDwqvd.js} +12 -12
- package/dist/{update-TxptCqk7.js → update-DF0GHG0j.js} +3 -3
- package/dist/{update-DhOF8e0Q.js → update-DoZLVjva.js} +1 -1
- package/dist/{update-check-DmODY9MR.js → update-check-D5qAKes7.js} +3 -3
- package/dist/{update-cli-DXAbudd9.js → update-cli-BNu2Oi7H.js} +39 -39
- package/dist/{update-cli-BVeg9il9.js → update-cli-D36AmALA.js} +91 -91
- package/dist/{update-runner-B2bjvdxa.js → update-runner-CNQQaTwA.js} +5 -5
- package/dist/{update-runner-CTCGT1OS.js → update-runner-CvxZmbu-.js} +3 -3
- package/dist/{usage-kVpWUUrn.js → usage-BGCwNnjk.js} +25 -25
- package/dist/{web-BGf92cSU.js → web-B5QG839O.js} +100 -100
- package/dist/{web-C4FxauVQ.js → web-Cmnvk9v0.js} +60 -60
- package/dist/{web-B1OjU-Gf.js → web-Cv2KnTnL.js} +9 -9
- package/dist/{webhooks-cli-bEG0ADkY.js → webhooks-cli-B6y89Pj_.js} +1 -1
- package/dist/{webhooks-cli-l0yqYtZW.js → webhooks-cli-BDzHON4w.js} +10 -10
- package/dist/{whatsapp-actions-CvnLgxjq.js → whatsapp-actions-C_5MwVxM.js} +10 -10
- package/dist/{whatsapp-actions-CwSwIOO3.js → whatsapp-actions-zTiVOoOV.js} +16 -16
- package/dist/{widearea-dns-NsEUNYwz.js → widearea-dns-CF1gxpJ-.js} +1 -1
- package/dist/{workspace-BTjqqJY-.js → workspace-DLna1IxR.js} +5 -5
- package/dist/{ws-log-N8R5MvGE.js → ws-log-Q4wO1Ztb.js} +2 -2
- package/package.json +1 -2
- package/dist/cli-XuLBXSur.js +0 -99
- package/dist/register.configure-D5huhRa3.js +0 -101
- /package/dist/{agents.config-DWZdxlQw.js → agents.config-jp7OLssr.js} +0 -0
- /package/dist/{auth-health-CP4Id2rW.js → auth-health-VO_MPqVX.js} +0 -0
- /package/dist/{auto-update-CUeF99gI.js → auto-update-CpF0fycd.js} +0 -0
- /package/dist/{auto-update-cgkp9ZTJ.js → auto-update-DNWdO7uF.js} +0 -0
- /package/dist/{brew-CVZkr0GU.js → brew-nqf_MiE4.js} +0 -0
- /package/dist/{budget-DxYQSekw.js → budget-CPedI-qW.js} +0 -0
- /package/dist/{budget-BWBp8Res.js → budget-CRpvqDRX.js} +0 -0
- /package/dist/{channels-status-issues-DwHRoeWL.js → channels-status-issues-DdJdO866.js} +0 -0
- /package/dist/{cli-utils-DtAxdCte.js → cli-utils-C1YHVD4o.js} +0 -0
- /package/dist/{clipboard-SCV-0V39.js → clipboard-DES8b1AM.js} +0 -0
- /package/dist/{command-format-DAaqLG8J.js → command-format-G6N2zghg.js} +0 -0
- /package/dist/{command-options-CSbuuqHr.js → command-options-BbponVnw.js} +0 -0
- /package/dist/{command-options-Cp1tf96a.js → command-options-s0gnvXnS.js} +0 -0
- /package/dist/{constants-O8yBqCBv.js → constants-Dhb6zSIV.js} +0 -0
- /package/dist/{daemon-runtime-C9KTe-Gn.js → daemon-runtime-C0tz7VAC.js} +0 -0
- /package/dist/{dangerous-tools-5ObDWy1N.js → dangerous-tools-DGTtJ_JR.js} +0 -0
- /package/dist/{dangerous-tools-Jwr7jqNw.js → dangerous-tools-DxrfTOfT.js} +0 -0
- /package/dist/{delivery-queue-B6IHz4Ry.js → delivery-queue-Bxm0nzw7.js} +0 -0
- /package/dist/{display-BDOsXu8F.js → display-Jy3UdGzA.js} +0 -0
- /package/dist/{docs-cli-B02Wm6DH.js → docs-cli-CrOaIK_H.js} +0 -0
- /package/dist/{errors-CHow2wtt.js → errors-CKaCqKga.js} +0 -0
- /package/dist/{exec-BizYYQgP.js → exec-DDmuVVNq.js} +0 -0
- /package/dist/{format-Mq6iU0_5.js → format-ByEjgyTF.js} +0 -0
- /package/dist/{format-duration-DhWzz_5b.js → format-duration-Aaj5tjJd.js} +0 -0
- /package/dist/{format-relative-C6kUHuOj.js → format-relative-79_Y1n2Y.js} +0 -0
- /package/dist/{gateway-rpc-QOe014D_.js → gateway-rpc-Dtx8HN-n.js} +0 -0
- /package/dist/{gmail-setup-utils-Bn8x7djJ.js → gmail-setup-utils-co0ppccC.js} +0 -0
- /package/dist/{health-format-DteBvzWP.js → health-format-BksT6F68.js} +0 -0
- /package/dist/{help-format-DUBI91Ti.js → help-format-BMKzarov.js} +0 -0
- /package/dist/{help-format-C4eJQd8a.js → help-format-C6cv_aZp.js} +0 -0
- /package/dist/{helpers-eJFa4K6r.js → helpers-DpEB9Mh0.js} +0 -0
- /package/dist/{helpers-DLgbkcEn.js → helpers-FMld9sBT.js} +0 -0
- /package/dist/{input-provenance-DJBdpeKk.js → input-provenance-Cy_KnBlP.js} +0 -0
- /package/dist/{is-main-Dt9DTcH1.js → is-main-yjaVwMtJ.js} +0 -0
- /package/dist/{loader-l2OBdJ8x.js → loader-Br7Vr0zn.js} +0 -0
- /package/dist/{loader-BoYxRfcW.js → loader-CkmOrXcC.js} +0 -0
- /package/dist/{logging-BuRtGUH1.js → logging-BIeRw0WR.js} +0 -0
- /package/dist/{logging-BdnOSVPD.js → logging-CY-Q5cwf.js} +0 -0
- /package/dist/{login-qr-Cc2QmLhD.js → login-qr-CevLD8cV.js} +0 -0
- /package/dist/{message-channel-w4F2b2F6.js → message-channel-dua8OOGJ.js} +0 -0
- /package/dist/{mime-B1ZoR53M.js → mime-CBg4KybI.js} +0 -0
- /package/dist/{model-param-b-DPwyNGn8.js → model-param-b-DW9f0NN8.js} +0 -0
- /package/dist/{node-match-8XZnaid6.js → node-match-BV8bTBd4.js} +0 -0
- /package/dist/{normalize-GDK8JTNW.js → normalize-_lmlBOW9.js} +0 -0
- /package/dist/{npm-registry-spec-DvJxezSJ.js → npm-registry-spec-DQd4M22q.js} +0 -0
- /package/dist/{openclaw-root-C85WMnVV.js → openclaw-root-JPvmPTf7.js} +0 -0
- /package/dist/{outbound-send-deps-ANnAhImn.js → outbound-send-deps-BfUvuWGa.js} +0 -0
- /package/dist/{parse-6-2MDhdT.js → parse-CZRwKocn.js} +0 -0
- /package/dist/{parse-log-line-Bqh1SSzC.js → parse-log-line-CvrZEK6A.js} +0 -0
- /package/dist/{parse-log-line-DUZCjXbl.js → parse-log-line-mLdat0AH.js} +0 -0
- /package/dist/{parse-port-BKB9Exlg.js → parse-port-BSOOdo7I.js} +0 -0
- /package/dist/{parse-port-DrfvwwiL.js → parse-port-Y0NK62x1.js} +0 -0
- /package/dist/{parse-timeout-Di_tcEmi.js → parse-timeout-DVPQ3n9j.js} +0 -0
- /package/dist/{paths-DcVEkYX5.js → paths-DHjlJ6cn.js} +0 -0
- /package/dist/{pi-auth-json-B1M8W1pO.js → pi-auth-json-MruLmI_X.js} +0 -0
- /package/dist/{pi-model-discovery-DsRqYJLy.js → pi-model-discovery-DzEIEgHL.js} +0 -0
- /package/dist/{plugin-auto-enable-d9eDmGOX.js → plugin-auto-enable-CjZ238UI.js} +0 -0
- /package/dist/{plugins-CDJw924T.js → plugins-D6PBOdkn.js} +0 -0
- /package/dist/{program-context-Bvn8046-.js → program-context-Q1hkT73c.js} +0 -0
- /package/dist/{progress-CbZ2D53A.js → progress-C9Ha1NJh.js} +0 -0
- /package/dist/{prompt-style-D6u56SjJ.js → prompt-style-Cm4wOtKm.js} +0 -0
- /package/dist/{prompt-style-DKy6qQxR.js → prompt-style-DQi8j03a.js} +0 -0
- /package/dist/{prompts-BI__va99.js → prompts-BEHxUC3w.js} +0 -0
- /package/dist/{prompts-_dDWkCAz.js → prompts-CSOhuiqe.js} +0 -0
- /package/dist/{pw-ai-CbEgFH-G.js → pw-ai-BWz3Cxt7.js} +0 -0
- /package/dist/{qmd-manager-DPslO6i9.js → qmd-manager-BcMeZiGD.js} +0 -0
- /package/dist/{queue-D_u34pbL.js → queue-BJGo7kAB.js} +0 -0
- /package/dist/{queue-PG591iID.js → queue-DYgUbdoq.js} +0 -0
- /package/dist/{redact-ClVwO7Nn.js → redact-CyKvdFrg.js} +0 -0
- /package/dist/{registry-Bs_DJK9E.js → registry-C5MAYD4V.js} +0 -0
- /package/dist/{registry-D_zlP1U-.js → registry-CRrXXVs0.js} +0 -0
- /package/dist/{requirements-BzZxj2Wu.js → requirements-CGkxTCu4.js} +0 -0
- /package/dist/{requirements-DIW1svgA.js → requirements-CIDaOcbO.js} +0 -0
- /package/dist/{rpc-aBUUQWC3.js → rpc-DgE-xnyx.js} +0 -0
- /package/dist/{runtime-guard-DeOXA_86.js → runtime-guard-nL3Lp8T-.js} +0 -0
- /package/dist/{secret-equal-Dghy3xsA.js → secret-equal-DJpmLXlG.js} +0 -0
- /package/dist/{send-BhAfdGII.js → send-CTcxgDDU.js} +0 -0
- /package/dist/{send-ga9udK1_.js → send-DPezUR3-.js} +0 -0
- /package/dist/{send-C2t9xpXI.js → send-DZQTaG7-.js} +0 -0
- /package/dist/{send-DigO-i9j.js → send-VDff2gra.js} +0 -0
- /package/dist/{send-Dz2BDHll.js → send-bgQNV8d1.js} +0 -0
- /package/dist/{session-key-BGiG_JcT.js → session-key-CQT-NR6w.js} +0 -0
- /package/dist/{shared-DwguvoZP.js → shared-DxNHzky3.js} +0 -0
- /package/dist/{shell-argv-CAq1mLa2.js → shell-argv-n9IueeJQ.js} +0 -0
- /package/dist/{skill-scanner-Coo4QoCd.js → skill-scanner-o6NgVMD9.js} +0 -0
- /package/dist/{status-CMnlcBVc.js → status-C53kTIXF.js} +0 -0
- /package/dist/{status-tDZPwewW.js → status-CZDDA_Sy.js} +0 -0
- /package/dist/{system-run-command-X9lDJIy0.js → system-run-command-BCjUffN9.js} +0 -0
- /package/dist/{system-run-command-DGk7dwQP.js → system-run-command-CqAqKL9K.js} +0 -0
- /package/dist/{systemd-BVVNFIBH.js → systemd-B43AvOGx.js} +0 -0
- /package/dist/{systemd-hints-Mpt5QteE.js → systemd-hints-DMJT-Bbc.js} +0 -0
- /package/dist/{table-B_wVcaLO.js → table-bWCLW-3P.js} +0 -0
- /package/dist/{tailnet-CuiNECdL.js → tailnet-Ciwjv243.js} +0 -0
- /package/dist/{templates-CeYJjVzw.js → templates-37RKpACb.js} +0 -0
- /package/dist/{templates-I3Z0xplD.js → templates-DPalk30o.js} +0 -0
- /package/dist/{thinking-BXEswx1X.js → thinking-2hxwmvTl.js} +0 -0
- /package/dist/{transcript-events-C1hdue6u.js → transcript-events-Bp7fGnwv.js} +0 -0
- /package/dist/{transcript-tools-DuyYOkUq.js → transcript-tools-D4Lbxlka.js} +0 -0
- /package/dist/{tui-r0_5VL_h.js → tui-BHgBWhHE.js} +0 -0
- /package/dist/{update-check-DlDloai0.js → update-check-Bt1dVPVN.js} +0 -0
- /package/dist/{usage-format-BAirWUSO.js → usage-format-6Uar63S0.js} +0 -0
- /package/dist/{utils-C9sj30YY.js → utils-DT8uXjFS.js} +0 -0
- /package/dist/{whatsapp-actions-DsoA_Bad.js → whatsapp-actions-hgYA12To.js} +0 -0
- /package/dist/{widearea-dns-1txrPZ0I.js → widearea-dns-BeIdnISJ.js} +0 -0
- /package/dist/{ws-log-BffL5dN_.js → ws-log-xF0kxDzp.js} +0 -0
- /package/dist/{wsl-CqyuRvtM.js → wsl-CrPvx2kZ.js} +0 -0
- /package/dist/{wsl-ymJYvc9Q.js → wsl-UvJ5dHah.js} +0 -0
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { a as resolveOAuthDir, i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-
|
|
2
|
-
import { A as isAcpSessionKey, C as normalizeAccountId$1, D as resolveThreadSessionKeys, E as resolveAgentIdFromSessionKey, M as parseAgentSessionKey, N as resolveThreadParentSessionKey, O as sanitizeAgentId, T as normalizeMainKey, _ as DEFAULT_AGENT_ID, a as DEFAULT_IDENTITY_FILENAME, b as buildAgentPeerSessionKey, c as DEFAULT_USER_FILENAME, g as DEFAULT_ACCOUNT_ID, i as DEFAULT_HEARTBEAT_FILENAME, j as isSubagentSessionKey, k as getSubagentDepth, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME, v as DEFAULT_MAIN_KEY, w as normalizeAgentId, x as buildGroupHistoryKey, y as buildAgentMainSessionKey } from "./workspace-
|
|
3
|
-
import { $ as colorize, A as formatTerminalLink, B as safeParseJson, C as setActivePluginRegistry, E as clampInt, F as normalizeE164, G as toWhatsappJid, H as shortenHomePath, K as truncateUtf16Safe, L as resolveConfigDir, M as isRecord, N as isSelfChatMode, O as ensureDir$3, P as jidToE164, R as resolveJidToE164, T as clamp, U as sleep, V as shortenHomeInString, W as sliceUtf16Safe, X as setVerbose, Y as logVerbose, Z as shouldLogVerbose, a as logDebug, at as resolvePreferredAnimaTmpDir, c as logWarn, d as clearActiveProgressLine, et as isRich, f as registerActiveProgressLine, h as CHAT_CHANNEL_ORDER, i as spawnWithFallback, it as normalizeLogLevel, j as isPlainObject, k as escapeRegExp, l as createSubsystemLogger, m as CHANNEL_IDS, n as runExec, nt as getChildLogger, o as logError, p as unregisterActiveProgressLine, r as formatSpawnError, s as logInfo, t as runCommandWithTimeout, tt as theme, u as defaultRuntime, v as normalizeAnyChannelId, w as CONFIG_DIR, x as getActivePluginRegistry, y as normalizeChannelId, z as resolveUserPath } from "./exec-
|
|
4
|
-
import { c as resolveDefaultAgentId, i as resolveAgentModelFallbacksOverride, l as resolveSessionAgentId, n as resolveAgentConfig, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentIds } from "./agent-scope-
|
|
1
|
+
import { a as resolveOAuthDir, i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-DA9WYabg.js";
|
|
2
|
+
import { A as isAcpSessionKey, C as normalizeAccountId$1, D as resolveThreadSessionKeys, E as resolveAgentIdFromSessionKey, M as parseAgentSessionKey, N as resolveThreadParentSessionKey, O as sanitizeAgentId, T as normalizeMainKey, _ as DEFAULT_AGENT_ID, a as DEFAULT_IDENTITY_FILENAME, b as buildAgentPeerSessionKey, c as DEFAULT_USER_FILENAME, g as DEFAULT_ACCOUNT_ID, i as DEFAULT_HEARTBEAT_FILENAME, j as isSubagentSessionKey, k as getSubagentDepth, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME, v as DEFAULT_MAIN_KEY, w as normalizeAgentId, x as buildGroupHistoryKey, y as buildAgentMainSessionKey } from "./workspace-DLna1IxR.js";
|
|
3
|
+
import { $ as colorize, A as formatTerminalLink, B as safeParseJson, C as setActivePluginRegistry, E as clampInt, F as normalizeE164, G as toWhatsappJid, H as shortenHomePath, K as truncateUtf16Safe, L as resolveConfigDir, M as isRecord, N as isSelfChatMode, O as ensureDir$3, P as jidToE164, R as resolveJidToE164, T as clamp, U as sleep, V as shortenHomeInString, W as sliceUtf16Safe, X as setVerbose, Y as logVerbose, Z as shouldLogVerbose, a as logDebug, at as resolvePreferredAnimaTmpDir, c as logWarn, d as clearActiveProgressLine, et as isRich, f as registerActiveProgressLine, h as CHAT_CHANNEL_ORDER, i as spawnWithFallback, it as normalizeLogLevel, j as isPlainObject, k as escapeRegExp, l as createSubsystemLogger, m as CHANNEL_IDS, n as runExec, nt as getChildLogger, o as logError, p as unregisterActiveProgressLine, r as formatSpawnError, s as logInfo, t as runCommandWithTimeout, tt as theme, u as defaultRuntime, v as normalizeAnyChannelId, w as CONFIG_DIR, x as getActivePluginRegistry, y as normalizeChannelId, z as resolveUserPath } from "./exec-B7sUS164.js";
|
|
4
|
+
import { c as resolveDefaultAgentId, i as resolveAgentModelFallbacksOverride, l as resolveSessionAgentId, n as resolveAgentConfig, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentIds } from "./agent-scope-cj2QCT6R.js";
|
|
5
5
|
import { a as queueEmbeddedPiMessage, c as waitForEmbeddedPiRunEnd, i as isEmbeddedPiRunStreaming, n as compactEmbeddedPiSession, o as resolveEmbeddedSessionLane, r as isEmbeddedPiRunActive, s as runEmbeddedPiAgent, t as abortEmbeddedPiRun } from "./pi-embedded-C1Nl7L89.js";
|
|
6
6
|
import { n as resolveCliName, t as formatCliCommand } from "./command-format-CP1YTNCl.js";
|
|
7
|
-
import { C as unsetConfigValueAtPath, D as getWebAuthAgeMs, E as WA_WEB_AUTH_DIR, I as webAuthExists, M as readWebSelfId, O as logWebSelfId, S as setConfigValueAtPath, T as resolveWhatsAppAccount, _ as resetConfigOverrides, a as writeConfigFile, b as getConfigValueAtPath, c as parseDurationMs, d as discoverAnimaPlugins, f as applyTestPluginDefaults, g as getConfigOverrides, h as resolveMemorySlotDecision, i as resolveConfigSnapshotHash, j as pickWebChannel, k as logoutWeb, l as validateJsonSchemaValue, m as resolveEnableState, n as loadConfig, o as validateConfigObjectWithPlugins, p as normalizePluginsConfig, r as readConfigFileSnapshot, t as createConfigIO, u as loadPluginManifestRegistry, v as setConfigOverride, w as VERSION, x as parseConfigPath, y as unsetConfigOverride } from "./config-
|
|
8
|
-
import { A as listChannelDocks, B as HEARTBEAT_TOKEN, C as resolveFreshSessionTotalTokens, D as resolveMainSessionKey, F as resolveChannelGroupRequireMention, H as isSilentReplyText, I as resolveChannelGroupToolsPolicy, L as resolveConversationLabel, M as resolveSignalAccount, N as resolveIMessageAccount, O as deriveSessionMetaPatch, P as resolveChannelGroupPolicy, R as normalizeChatType, S as DEFAULT_RESET_TRIGGERS, T as resolveAgentMainSessionKey, V as SILENT_REPLY_TOKEN, _ as evaluateSessionFreshness, a as readSessionUpdatedAt, b as resolveSessionResetType, c as updateSessionStore, d as deliveryContextKey, f as mergeDeliveryContext, g as resolveSessionKey$1, i as loadSessionStore, j as listEnabledSignalAccounts, k as getChannelDock, l as updateSessionStoreEntry, m as normalizeSessionDeliveryFields, n as appendAssistantMessageToSessionTranscript, o as recordSessionMetaFromInbound, p as normalizeDeliveryContext, s as updateLastRoute, t as extractDeliveryInfo, u as deliveryContextFromSession, v as resolveChannelResetConfig, w as canonicalizeMainSessionAlias, x as resolveThreadFlag, y as resolveSessionResetPolicy, z as resolveGroupSessionKey } from "./sessions-
|
|
9
|
-
import { A as normalizeSecretInput, B as resolveAuthProfileDisplayLabel, C as resolveThinkingDefault, D as resolveApiKeyForProvider, E as requireApiKey, L as DEFAULT_CONTEXT_TOKENS, N as resolveShellEnvFallbackTimeoutMs, O as resolveEnvApiKey, R as DEFAULT_MODEL, S as resolveModelRefFromString, T as getCustomProviderApiKey, a as listProfilesForProvider, b as resolveConfiguredModelRef, d as withFileLock$1, f as buildAllowedModelSet, g as modelKey, h as isCliProvider, i as resolveApiKeyForProfile, j as getShellPathFromLoginShell, k as resolveModelAuthMode, l as loadJsonFile, m as buildModelAliasIndex, n as resolveAuthProfileOrder, o as ensureAuthProfileStore, r as isProfileInCooldown, s as resolveAuthStorePathForDisplay, u as saveJsonFile, v as normalizeProviderId, w as getApiKeyForModel, x as resolveDefaultModelForAgent, z as DEFAULT_PROVIDER } from "./auth-profiles-
|
|
7
|
+
import { C as unsetConfigValueAtPath, D as getWebAuthAgeMs, E as WA_WEB_AUTH_DIR, I as webAuthExists, M as readWebSelfId, O as logWebSelfId, S as setConfigValueAtPath, T as resolveWhatsAppAccount, _ as resetConfigOverrides, a as writeConfigFile, b as getConfigValueAtPath, c as parseDurationMs, d as discoverAnimaPlugins, f as applyTestPluginDefaults, g as getConfigOverrides, h as resolveMemorySlotDecision, i as resolveConfigSnapshotHash, j as pickWebChannel, k as logoutWeb, l as validateJsonSchemaValue, m as resolveEnableState, n as loadConfig, o as validateConfigObjectWithPlugins, p as normalizePluginsConfig, r as readConfigFileSnapshot, t as createConfigIO, u as loadPluginManifestRegistry, v as setConfigOverride, w as VERSION, x as parseConfigPath, y as unsetConfigOverride } from "./config-kVVm5EYV.js";
|
|
8
|
+
import { A as listChannelDocks, B as HEARTBEAT_TOKEN, C as resolveFreshSessionTotalTokens, D as resolveMainSessionKey, F as resolveChannelGroupRequireMention, H as isSilentReplyText, I as resolveChannelGroupToolsPolicy, L as resolveConversationLabel, M as resolveSignalAccount, N as resolveIMessageAccount, O as deriveSessionMetaPatch, P as resolveChannelGroupPolicy, R as normalizeChatType, S as DEFAULT_RESET_TRIGGERS, T as resolveAgentMainSessionKey, V as SILENT_REPLY_TOKEN, _ as evaluateSessionFreshness, a as readSessionUpdatedAt, b as resolveSessionResetType, c as updateSessionStore, d as deliveryContextKey, f as mergeDeliveryContext, g as resolveSessionKey$1, i as loadSessionStore, j as listEnabledSignalAccounts, k as getChannelDock, l as updateSessionStoreEntry, m as normalizeSessionDeliveryFields, n as appendAssistantMessageToSessionTranscript, o as recordSessionMetaFromInbound, p as normalizeDeliveryContext, s as updateLastRoute, t as extractDeliveryInfo, u as deliveryContextFromSession, v as resolveChannelResetConfig, w as canonicalizeMainSessionAlias, x as resolveThreadFlag, y as resolveSessionResetPolicy, z as resolveGroupSessionKey } from "./sessions-wRKla1Qh.js";
|
|
9
|
+
import { A as normalizeSecretInput, B as resolveAuthProfileDisplayLabel, C as resolveThinkingDefault, D as resolveApiKeyForProvider, E as requireApiKey, L as DEFAULT_CONTEXT_TOKENS, N as resolveShellEnvFallbackTimeoutMs, O as resolveEnvApiKey, R as DEFAULT_MODEL, S as resolveModelRefFromString, T as getCustomProviderApiKey, a as listProfilesForProvider, b as resolveConfiguredModelRef, d as withFileLock$1, f as buildAllowedModelSet, g as modelKey, h as isCliProvider, i as resolveApiKeyForProfile, j as getShellPathFromLoginShell, k as resolveModelAuthMode, l as loadJsonFile, m as buildModelAliasIndex, n as resolveAuthProfileOrder, o as ensureAuthProfileStore, r as isProfileInCooldown, s as resolveAuthStorePathForDisplay, u as saveJsonFile, v as normalizeProviderId, w as getApiKeyForModel, x as resolveDefaultModelForAgent, z as DEFAULT_PROVIDER } from "./auth-profiles-BDrNYX_n.js";
|
|
10
10
|
import { t as parseBooleanValue } from "./boolean-Ce2-qkSB.js";
|
|
11
|
-
import { C as GATEWAY_CLIENT_NAMES, S as GATEWAY_CLIENT_MODES, _ as listDeliverableMessageChannels, a as normalizeWhatsAppTarget, b as resolveMessageChannel, c as resolveSlackAccount, d as resolveDiscordAccount, f as INTERNAL_MESSAGE_CHANNEL, g as isMarkdownCapableMessageChannel, h as isInternalMessageChannel, i as isWhatsAppGroupJid, n as listChannelPlugins, o as listEnabledTelegramAccounts, p as isDeliverableMessageChannel, r as normalizeChannelId$1, s as resolveTelegramAccount, t as getChannelPlugin, u as listEnabledDiscordAccounts, v as normalizeMessageChannel, x as GATEWAY_CLIENT_IDS, y as resolveGatewayMessageChannel } from "./plugins-
|
|
12
|
-
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath } from "./paths-
|
|
13
|
-
import { $ as getTtsProvider, A as assertSandboxPath, B as runCliAgent, C as supportsXHighThinking, D as buildWorkspaceSkillSnapshot, E as buildWorkspaceSkillCommandSpecs, F as loadModelCatalog, G as resolveUserTimezone, H as buildSystemPromptParams, I as modelSupportsVision, J as killProcessTree, K as withNormalizedTimestamp, L as ensureAnimaModelsJson, M as runWithImageModelFallback, N as runWithModelFallback, O as syncSkillsToWorkspace, P as findModelInCatalog, Q as getTtsMaxLength, R as getCliSessionId, S as resolveResponseUsageMode, T as getSkillsSnapshotVersion, U as formatUserTime, V as buildAgentSystemPrompt, W as resolveUserTimeFormat, X as buildTtsSystemPromptHint, Y as sanitizeBinaryOutput, Z as getLastTtsAttempt, _ as normalizeElevatedLevel, _t as resolveBootstrapContextForRun, a as lookupContextTokens, at as resolveTtsApiKey, b as normalizeUsageDisplay, c as ambiguousTargetError, ct as resolveTtsPrefsPath, d as applyModelOverrideToSessionEntry, dt as setTtsEnabled, et as isSummarizationEnabled, f as applyVerboseOverride, ft as setTtsMaxLength, g as listThinkingLevels, gt as isVoiceCompatibleAudio, h as formatXHighModelHint, ht as textToSpeechTelephony, i as normalizeUsage, it as normalizeTtsAutoMode, j as resolveSandboxedMediaSource, k as assertMediaNotDataUrl, l as unknownTargetError, lt as setLastTtsAttempt, m as formatThinkingLevels, mt as textToSpeech, n as deriveSessionTotalTokens, nt as isTtsProviderConfigured, o as resolveOutboundTarget, ot as resolveTtsAutoMode, p as getRemoteSkillEligibility, pt as setTtsProvider, q as getShellConfig, r as hasNonzeroUsage, rt as maybeApplyTtsToPayload, s as resolveSessionDeliveryTarget, st as resolveTtsConfig, t as derivePromptTokens, tt as isTtsEnabled, u as resolveSendPolicy, ut as setSummarizationEnabled, v as normalizeReasoningLevel, vt as clearSessionAuthProfileOverride, w as ensureSkillsWatcher, x as normalizeVerboseLevel, y as normalizeThinkLevel, yt as resolveSessionAuthProfileOverride, z as setCliSessionId } from "./usage-
|
|
14
|
-
import { a as resolveAgentTimeoutMs, c as CommandLane, i as registerAgentRunContext, n as emitAgentEvent, o as AGENT_LANE_NESTED, r as onAgentEvent, s as AGENT_LANE_SUBAGENT, u as stripHeartbeatToken } from "./agent-events-
|
|
11
|
+
import { C as GATEWAY_CLIENT_NAMES, S as GATEWAY_CLIENT_MODES, _ as listDeliverableMessageChannels, a as normalizeWhatsAppTarget, b as resolveMessageChannel, c as resolveSlackAccount, d as resolveDiscordAccount, f as INTERNAL_MESSAGE_CHANNEL, g as isMarkdownCapableMessageChannel, h as isInternalMessageChannel, i as isWhatsAppGroupJid, n as listChannelPlugins, o as listEnabledTelegramAccounts, p as isDeliverableMessageChannel, r as normalizeChannelId$1, s as resolveTelegramAccount, t as getChannelPlugin, u as listEnabledDiscordAccounts, v as normalizeMessageChannel, x as GATEWAY_CLIENT_IDS, y as resolveGatewayMessageChannel } from "./plugins-DtghNRtM.js";
|
|
12
|
+
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath } from "./paths-B1vRVCad.js";
|
|
13
|
+
import { $ as getTtsProvider, A as assertSandboxPath, B as runCliAgent, C as supportsXHighThinking, D as buildWorkspaceSkillSnapshot, E as buildWorkspaceSkillCommandSpecs, F as loadModelCatalog, G as resolveUserTimezone, H as buildSystemPromptParams, I as modelSupportsVision, J as killProcessTree, K as withNormalizedTimestamp, L as ensureAnimaModelsJson, M as runWithImageModelFallback, N as runWithModelFallback, O as syncSkillsToWorkspace, P as findModelInCatalog, Q as getTtsMaxLength, R as getCliSessionId, S as resolveResponseUsageMode, T as getSkillsSnapshotVersion, U as formatUserTime, V as buildAgentSystemPrompt, W as resolveUserTimeFormat, X as buildTtsSystemPromptHint, Y as sanitizeBinaryOutput, Z as getLastTtsAttempt, _ as normalizeElevatedLevel, _t as resolveBootstrapContextForRun, a as lookupContextTokens, at as resolveTtsApiKey, b as normalizeUsageDisplay, c as ambiguousTargetError, ct as resolveTtsPrefsPath, d as applyModelOverrideToSessionEntry, dt as setTtsEnabled, et as isSummarizationEnabled, f as applyVerboseOverride, ft as setTtsMaxLength, g as listThinkingLevels, gt as isVoiceCompatibleAudio, h as formatXHighModelHint, ht as textToSpeechTelephony, i as normalizeUsage, it as normalizeTtsAutoMode, j as resolveSandboxedMediaSource, k as assertMediaNotDataUrl, l as unknownTargetError, lt as setLastTtsAttempt, m as formatThinkingLevels, mt as textToSpeech, n as deriveSessionTotalTokens, nt as isTtsProviderConfigured, o as resolveOutboundTarget, ot as resolveTtsAutoMode, p as getRemoteSkillEligibility, pt as setTtsProvider, q as getShellConfig, r as hasNonzeroUsage, rt as maybeApplyTtsToPayload, s as resolveSessionDeliveryTarget, st as resolveTtsConfig, t as derivePromptTokens, tt as isTtsEnabled, u as resolveSendPolicy, ut as setSummarizationEnabled, v as normalizeReasoningLevel, vt as clearSessionAuthProfileOverride, w as ensureSkillsWatcher, x as normalizeVerboseLevel, y as normalizeThinkLevel, yt as resolveSessionAuthProfileOverride, z as setCliSessionId } from "./usage-BGCwNnjk.js";
|
|
14
|
+
import { a as resolveAgentTimeoutMs, c as CommandLane, i as registerAgentRunContext, n as emitAgentEvent, o as AGENT_LANE_NESTED, r as onAgentEvent, s as AGENT_LANE_SUBAGENT, u as stripHeartbeatToken } from "./agent-events-COH7NDW2.js";
|
|
15
15
|
import { i as triggerInternalHook, r as registerInternalHook, t as createInternalHookEvent } from "./internal-hooks-DFTIurVM.js";
|
|
16
16
|
import { a as isAudioFileName, i as imageMimeFromFormat, l as mediaKindFromMime, n as extensionForMime, o as kindFromMime, r as getFileExtension, t as detectMime } from "./mime-Bm1xTtpY.js";
|
|
17
|
-
import "./frontmatter-
|
|
18
|
-
import { a as chunkMarkdownTextWithMode, c as resolveChunkMode, i as chunkMarkdownText, l as resolveTextChunkLimit, n as chunkByNewline, o as chunkText, s as chunkTextWithMode, t as resolveMarkdownTableMode } from "./markdown-tables-
|
|
19
|
-
import { _ as parseReplyDirectives, b as initializeGlobalHookRunner, c as applyReplyThreading, d as shouldSuppressMessagingToolReplies, f as createReplyToModeFilterForChannel, g as normalizeTargetForProvider, h as normalizeChannelTargetInput, l as filterMessagingToolDuplicates, m as buildTargetResolverSignature, o as normalizeReplyPayloadsForDelivery, p as resolveReplyToMode, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as isRenderablePayload, v as throwIfAborted, y as getGlobalHookRunner } from "./deliver-
|
|
17
|
+
import "./frontmatter-BmHq0vRD.js";
|
|
18
|
+
import { a as chunkMarkdownTextWithMode, c as resolveChunkMode, i as chunkMarkdownText, l as resolveTextChunkLimit, n as chunkByNewline, o as chunkText, s as chunkTextWithMode, t as resolveMarkdownTableMode } from "./markdown-tables-CqwihY2m.js";
|
|
19
|
+
import { _ as parseReplyDirectives, b as initializeGlobalHookRunner, c as applyReplyThreading, d as shouldSuppressMessagingToolReplies, f as createReplyToModeFilterForChannel, g as normalizeTargetForProvider, h as normalizeChannelTargetInput, l as filterMessagingToolDuplicates, m as buildTargetResolverSignature, o as normalizeReplyPayloadsForDelivery, p as resolveReplyToMode, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as isRenderablePayload, v as throwIfAborted, y as getGlobalHookRunner } from "./deliver-CePITOl8.js";
|
|
20
20
|
import { t as sendMessageSignal } from "./send-BTA6qupx.js";
|
|
21
21
|
import { t as INPUT_PROVENANCE_KIND_VALUES } from "./input-provenance-BgwBljRz.js";
|
|
22
22
|
import { a as pickPrimaryTailnetIPv4, i as rawDataToString, n as isLoopbackHost, r as pickPrimaryLanIPv4 } from "./net-CDi_lJMH.js";
|
|
23
|
-
import { _ as setActiveWebListener, a as loadWebMedia, b as convertMarkdownTables, c as MediaFetchError, d as fetchWithSsrFGuard, f as SsrFBlockedError, g as getActiveWebListener, h as bindAbortRelay, i as getDefaultLocalRoots, l as fetchRemoteMedia, m as isPrivateIpAddress, n as sendMessageWhatsApp, o as getImageMetadata, p as isBlockedHostname, r as sendReactionWhatsApp, s as resizeToJpeg, u as readResponseWithLimit, v as normalizePollInput, y as markdownToWhatsApp } from "./outbound-
|
|
23
|
+
import { _ as setActiveWebListener, a as loadWebMedia, b as convertMarkdownTables, c as MediaFetchError, d as fetchWithSsrFGuard, f as SsrFBlockedError, g as getActiveWebListener, h as bindAbortRelay, i as getDefaultLocalRoots, l as fetchRemoteMedia, m as isPrivateIpAddress, n as sendMessageWhatsApp, o as getImageMetadata, p as isBlockedHostname, r as sendReactionWhatsApp, s as resizeToJpeg, u as readResponseWithLimit, v as normalizePollInput, y as markdownToWhatsApp } from "./outbound-CkKgc6iR.js";
|
|
24
24
|
import { n as formatErrorMessage, t as extractErrorCode } from "./errors-A_GqUU6B.js";
|
|
25
|
-
import { C as getHeadersWithAuth, E as stopChromeExtensionRelayServer, T as ensureChromeExtensionRelayServer, _ as createTargetViaCdp, a as resolveAnimaUserDataDir, b as snapshotAria, c as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, d as DEFAULT_ANIMA_BROWSER_ENABLED, f as DEFAULT_ANIMA_BROWSER_PROFILE_NAME, g as captureScreenshot, h as resolveBrowserExecutableForPlatform, i as launchAnimaChrome, l as DEFAULT_AI_SNAPSHOT_MAX_CHARS, m as DEFAULT_BROWSER_EVALUATE_ENABLED, n as isChromeCdpReady, o as stopAnimaChrome, p as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, r as isChromeReachable, s as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, u as DEFAULT_ANIMA_BROWSER_COLOR, x as appendCdpPath, y as normalizeCdpWsUrl } from "./chrome-
|
|
26
|
-
import { n as resolveMemorySearchConfig } from "./manager-
|
|
27
|
-
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths } from "./sqlite-
|
|
25
|
+
import { C as getHeadersWithAuth, E as stopChromeExtensionRelayServer, T as ensureChromeExtensionRelayServer, _ as createTargetViaCdp, a as resolveAnimaUserDataDir, b as snapshotAria, c as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, d as DEFAULT_ANIMA_BROWSER_ENABLED, f as DEFAULT_ANIMA_BROWSER_PROFILE_NAME, g as captureScreenshot, h as resolveBrowserExecutableForPlatform, i as launchAnimaChrome, l as DEFAULT_AI_SNAPSHOT_MAX_CHARS, m as DEFAULT_BROWSER_EVALUATE_ENABLED, n as isChromeCdpReady, o as stopAnimaChrome, p as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, r as isChromeReachable, s as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, u as DEFAULT_ANIMA_BROWSER_COLOR, x as appendCdpPath, y as normalizeCdpWsUrl } from "./chrome-DdcDzAtH.js";
|
|
26
|
+
import { n as resolveMemorySearchConfig } from "./manager-BD5rA3w0.js";
|
|
27
|
+
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths } from "./sqlite-CuprTGR7.js";
|
|
28
28
|
import { a as sendPollDiscord, i as sendMessageDiscord, n as fetchChannelPermissionsDiscord, r as kickMemberDiscord, s as timeoutMemberDiscord, t as banMemberDiscord } from "./send-DVW0CcHX.js";
|
|
29
29
|
import { a as sendStickerTelegram, i as sendPollTelegram, n as editMessageTelegram, r as sendMessageTelegram, t as deleteMessageTelegram } from "./send-CP74DxzJ.js";
|
|
30
30
|
import { t as sendMessageIMessage } from "./send-DqMLjD9Z.js";
|
|
31
31
|
import { t as sendMessageSlack } from "./send-C6ccOW_U.js";
|
|
32
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
33
|
-
import { t as loginWeb } from "./login-
|
|
32
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-CGxOLFs2.js";
|
|
33
|
+
import { t as loginWeb } from "./login-DXWKewA2.js";
|
|
34
34
|
import { createRequire } from "node:module";
|
|
35
|
-
import * as fs$
|
|
35
|
+
import * as fs$1 from "node:fs/promises";
|
|
36
36
|
import fs from "node:fs/promises";
|
|
37
37
|
import * as os$1 from "node:os";
|
|
38
38
|
import os, { homedir } from "node:os";
|
|
39
39
|
import * as path$1 from "node:path";
|
|
40
40
|
import path from "node:path";
|
|
41
|
-
import
|
|
41
|
+
import fsSync, { constants, existsSync, statSync } from "node:fs";
|
|
42
42
|
import JSON5 from "json5";
|
|
43
43
|
import { execFile, spawn, spawnSync } from "node:child_process";
|
|
44
44
|
import { promisify } from "node:util";
|
|
@@ -82,7 +82,7 @@ function resolveDefaultIdentityPath() {
|
|
|
82
82
|
return path.join(resolveStateDir(), "identity", "device.json");
|
|
83
83
|
}
|
|
84
84
|
function ensureDir$2(filePath) {
|
|
85
|
-
|
|
85
|
+
fsSync.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
86
86
|
}
|
|
87
87
|
const ED25519_SPKI_PREFIX = Buffer.from("302a300506032b6570032100", "hex");
|
|
88
88
|
function base64UrlEncode(buf) {
|
|
@@ -118,8 +118,8 @@ function generateIdentity() {
|
|
|
118
118
|
}
|
|
119
119
|
function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
120
120
|
try {
|
|
121
|
-
if (
|
|
122
|
-
const raw =
|
|
121
|
+
if (fsSync.existsSync(filePath)) {
|
|
122
|
+
const raw = fsSync.readFileSync(filePath, "utf8");
|
|
123
123
|
const parsed = JSON.parse(raw);
|
|
124
124
|
if (parsed?.version === 1 && typeof parsed.deviceId === "string" && typeof parsed.publicKeyPem === "string" && typeof parsed.privateKeyPem === "string") {
|
|
125
125
|
const derivedId = fingerprintPublicKey(parsed.publicKeyPem);
|
|
@@ -128,9 +128,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
|
128
128
|
...parsed,
|
|
129
129
|
deviceId: derivedId
|
|
130
130
|
};
|
|
131
|
-
|
|
131
|
+
fsSync.writeFileSync(filePath, `${JSON.stringify(updated, null, 2)}\n`, { mode: 384 });
|
|
132
132
|
try {
|
|
133
|
-
|
|
133
|
+
fsSync.chmodSync(filePath, 384);
|
|
134
134
|
} catch {}
|
|
135
135
|
return {
|
|
136
136
|
deviceId: derivedId,
|
|
@@ -155,9 +155,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
|
155
155
|
privateKeyPem: identity.privateKeyPem,
|
|
156
156
|
createdAtMs: Date.now()
|
|
157
157
|
};
|
|
158
|
-
|
|
158
|
+
fsSync.writeFileSync(filePath, `${JSON.stringify(stored, null, 2)}\n`, { mode: 384 });
|
|
159
159
|
try {
|
|
160
|
-
|
|
160
|
+
fsSync.chmodSync(filePath, 384);
|
|
161
161
|
} catch {}
|
|
162
162
|
return identity;
|
|
163
163
|
}
|
|
@@ -307,8 +307,8 @@ function resolveDeviceAuthPath(env = process.env) {
|
|
|
307
307
|
}
|
|
308
308
|
function readStore(filePath) {
|
|
309
309
|
try {
|
|
310
|
-
if (!
|
|
311
|
-
const raw =
|
|
310
|
+
if (!fsSync.existsSync(filePath)) return null;
|
|
311
|
+
const raw = fsSync.readFileSync(filePath, "utf8");
|
|
312
312
|
const parsed = JSON.parse(raw);
|
|
313
313
|
if (parsed?.version !== 1 || typeof parsed.deviceId !== "string") return null;
|
|
314
314
|
if (!parsed.tokens || typeof parsed.tokens !== "object") return null;
|
|
@@ -318,10 +318,10 @@ function readStore(filePath) {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
function writeStore(filePath, store) {
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
fsSync.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
322
|
+
fsSync.writeFileSync(filePath, `${JSON.stringify(store, null, 2)}\n`, { mode: 384 });
|
|
323
323
|
try {
|
|
324
|
-
|
|
324
|
+
fsSync.chmodSync(filePath, 384);
|
|
325
325
|
} catch {}
|
|
326
326
|
}
|
|
327
327
|
function loadDeviceAuthToken(params) {
|
|
@@ -3019,7 +3019,7 @@ async function routeReply(params) {
|
|
|
3019
3019
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
3020
3020
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
3021
3021
|
try {
|
|
3022
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
3022
|
+
const { deliverOutboundPayloads } = await import("./deliver-CePITOl8.js").then((n) => n.n);
|
|
3023
3023
|
return {
|
|
3024
3024
|
ok: true,
|
|
3025
3025
|
messageId: (await deliverOutboundPayloads({
|
|
@@ -3253,7 +3253,7 @@ function normalizeSessionKey(value) {
|
|
|
3253
3253
|
}
|
|
3254
3254
|
function readSessionStore(storePath) {
|
|
3255
3255
|
try {
|
|
3256
|
-
const raw =
|
|
3256
|
+
const raw = fsSync.readFileSync(storePath, "utf-8");
|
|
3257
3257
|
const parsed = JSON5.parse(raw);
|
|
3258
3258
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
|
|
3259
3259
|
} catch {}
|
|
@@ -3836,7 +3836,7 @@ async function runSubagentAnnounceFlow(params) {
|
|
|
3836
3836
|
if (!outcome) outcome = { status: "unknown" };
|
|
3837
3837
|
let activeChildDescendantRuns = 0;
|
|
3838
3838
|
try {
|
|
3839
|
-
const { countActiveDescendantRuns } = await import("./subagent-registry-
|
|
3839
|
+
const { countActiveDescendantRuns } = await import("./subagent-registry-3Xb4el-8.js");
|
|
3840
3840
|
activeChildDescendantRuns = Math.max(0, countActiveDescendantRuns(params.childSessionKey));
|
|
3841
3841
|
} catch {}
|
|
3842
3842
|
if (activeChildDescendantRuns > 0) {
|
|
@@ -3852,7 +3852,7 @@ async function runSubagentAnnounceFlow(params) {
|
|
|
3852
3852
|
let requesterDepth = getSubagentDepthFromSessionStore(targetRequesterSessionKey);
|
|
3853
3853
|
let requesterIsSubagent = requesterDepth >= 1;
|
|
3854
3854
|
if (requesterIsSubagent) {
|
|
3855
|
-
const { isSubagentSessionRunActive, resolveRequesterForChildSession } = await import("./subagent-registry-
|
|
3855
|
+
const { isSubagentSessionRunActive, resolveRequesterForChildSession } = await import("./subagent-registry-3Xb4el-8.js");
|
|
3856
3856
|
if (!isSubagentSessionRunActive(targetRequesterSessionKey)) {
|
|
3857
3857
|
const fallback = resolveRequesterForChildSession(targetRequesterSessionKey);
|
|
3858
3858
|
if (!fallback?.requesterSessionKey) {
|
|
@@ -3867,7 +3867,7 @@ async function runSubagentAnnounceFlow(params) {
|
|
|
3867
3867
|
}
|
|
3868
3868
|
let remainingActiveSubagentRuns = 0;
|
|
3869
3869
|
try {
|
|
3870
|
-
const { countActiveDescendantRuns } = await import("./subagent-registry-
|
|
3870
|
+
const { countActiveDescendantRuns } = await import("./subagent-registry-3Xb4el-8.js");
|
|
3871
3871
|
remainingActiveSubagentRuns = Math.max(0, countActiveDescendantRuns(targetRequesterSessionKey));
|
|
3872
3872
|
} catch {}
|
|
3873
3873
|
const replyInstruction = buildAnnounceReplyInstruction({
|
|
@@ -8021,7 +8021,7 @@ function isModuleNotFoundError(err) {
|
|
|
8021
8021
|
}
|
|
8022
8022
|
async function loadPwAiModule(mode) {
|
|
8023
8023
|
try {
|
|
8024
|
-
return await import("./pw-ai-
|
|
8024
|
+
return await import("./pw-ai-4QbK5YFe.js");
|
|
8025
8025
|
} catch (err) {
|
|
8026
8026
|
if (mode === "soft") return null;
|
|
8027
8027
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -9736,11 +9736,11 @@ async function movePathToTrash(targetPath) {
|
|
|
9736
9736
|
return targetPath;
|
|
9737
9737
|
} catch {
|
|
9738
9738
|
const trashDir = path.join(os.homedir(), ".Trash");
|
|
9739
|
-
|
|
9739
|
+
fsSync.mkdirSync(trashDir, { recursive: true });
|
|
9740
9740
|
const base = path.basename(targetPath);
|
|
9741
9741
|
let dest = path.join(trashDir, `${base}-${Date.now()}`);
|
|
9742
|
-
if (
|
|
9743
|
-
|
|
9742
|
+
if (fsSync.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${Math.random()}`);
|
|
9743
|
+
fsSync.renameSync(targetPath, dest);
|
|
9744
9744
|
return dest;
|
|
9745
9745
|
}
|
|
9746
9746
|
}
|
|
@@ -9818,7 +9818,7 @@ function createBrowserProfilesService(ctx) {
|
|
|
9818
9818
|
} catch {}
|
|
9819
9819
|
const userDataDir = resolveAnimaUserDataDir(name);
|
|
9820
9820
|
const profileDir = path.dirname(userDataDir);
|
|
9821
|
-
if (
|
|
9821
|
+
if (fsSync.existsSync(profileDir)) {
|
|
9822
9822
|
await movePathToTrash(profileDir);
|
|
9823
9823
|
deleted = true;
|
|
9824
9824
|
}
|
|
@@ -10479,13 +10479,13 @@ function createProfileContext(opts, profile) {
|
|
|
10479
10479
|
const userDataDir = resolveAnimaUserDataDir(profile.name);
|
|
10480
10480
|
const profileState = getProfileState();
|
|
10481
10481
|
if (await isHttpReachable(300) && !profileState.running) try {
|
|
10482
|
-
await (await import("./pw-ai-
|
|
10482
|
+
await (await import("./pw-ai-4QbK5YFe.js")).closePlaywrightBrowserConnection();
|
|
10483
10483
|
} catch {}
|
|
10484
10484
|
if (profileState.running) await stopRunningBrowser();
|
|
10485
10485
|
try {
|
|
10486
|
-
await (await import("./pw-ai-
|
|
10486
|
+
await (await import("./pw-ai-4QbK5YFe.js")).closePlaywrightBrowserConnection();
|
|
10487
10487
|
} catch {}
|
|
10488
|
-
if (!
|
|
10488
|
+
if (!fsSync.existsSync(userDataDir)) return {
|
|
10489
10489
|
moved: false,
|
|
10490
10490
|
from: userDataDir
|
|
10491
10491
|
};
|
|
@@ -11385,7 +11385,7 @@ async function createModelSelectionState(params) {
|
|
|
11385
11385
|
}
|
|
11386
11386
|
}
|
|
11387
11387
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
11388
|
-
const { ensureAuthProfileStore } = await import("./auth-profiles-
|
|
11388
|
+
const { ensureAuthProfileStore } = await import("./auth-profiles-BDrNYX_n.js").then((n) => n.t);
|
|
11389
11389
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
11390
11390
|
const providerKey = normalizeProviderId(provider);
|
|
11391
11391
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -13198,8 +13198,8 @@ function listSkillCommandsForAgents(params) {
|
|
|
13198
13198
|
const visitedDirs = /* @__PURE__ */ new Set();
|
|
13199
13199
|
for (const agentId of agentIds) {
|
|
13200
13200
|
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
|
|
13201
|
-
if (!
|
|
13202
|
-
const canonicalDir =
|
|
13201
|
+
if (!fsSync.existsSync(workspaceDir)) continue;
|
|
13202
|
+
const canonicalDir = fsSync.realpathSync(workspaceDir);
|
|
13203
13203
|
if (visitedDirs.has(canonicalDir)) continue;
|
|
13204
13204
|
visitedDirs.add(canonicalDir);
|
|
13205
13205
|
const commands = buildWorkspaceSkillCommandSpecs(workspaceDir, {
|
|
@@ -13416,7 +13416,7 @@ function resolveAllowFromPath(channel, env = process.env) {
|
|
|
13416
13416
|
}
|
|
13417
13417
|
async function readJsonFile(filePath, fallback) {
|
|
13418
13418
|
try {
|
|
13419
|
-
const parsed = safeParseJson(await
|
|
13419
|
+
const parsed = safeParseJson(await fsSync.promises.readFile(filePath, "utf-8"));
|
|
13420
13420
|
if (parsed == null) return {
|
|
13421
13421
|
value: fallback,
|
|
13422
13422
|
exists: true
|
|
@@ -13438,18 +13438,18 @@ async function readJsonFile(filePath, fallback) {
|
|
|
13438
13438
|
}
|
|
13439
13439
|
async function writeJsonFile(filePath, value) {
|
|
13440
13440
|
const dir = path.dirname(filePath);
|
|
13441
|
-
await
|
|
13441
|
+
await fsSync.promises.mkdir(dir, {
|
|
13442
13442
|
recursive: true,
|
|
13443
13443
|
mode: 448
|
|
13444
13444
|
});
|
|
13445
13445
|
const tmp = path.join(dir, `${path.basename(filePath)}.${crypto.randomUUID()}.tmp`);
|
|
13446
|
-
await
|
|
13447
|
-
await
|
|
13448
|
-
await
|
|
13446
|
+
await fsSync.promises.writeFile(tmp, `${JSON.stringify(value, null, 2)}\n`, { encoding: "utf-8" });
|
|
13447
|
+
await fsSync.promises.chmod(tmp, 384);
|
|
13448
|
+
await fsSync.promises.rename(tmp, filePath);
|
|
13449
13449
|
}
|
|
13450
13450
|
async function ensureJsonFile(filePath, fallback) {
|
|
13451
13451
|
try {
|
|
13452
|
-
await
|
|
13452
|
+
await fsSync.promises.access(filePath);
|
|
13453
13453
|
} catch {
|
|
13454
13454
|
await writeJsonFile(filePath, fallback);
|
|
13455
13455
|
}
|
|
@@ -14719,8 +14719,8 @@ function expandHome$1(value) {
|
|
|
14719
14719
|
}
|
|
14720
14720
|
function isExecutableFile(filePath) {
|
|
14721
14721
|
try {
|
|
14722
|
-
if (!
|
|
14723
|
-
if (process.platform !== "win32")
|
|
14722
|
+
if (!fsSync.statSync(filePath).isFile()) return false;
|
|
14723
|
+
if (process.platform !== "win32") fsSync.accessSync(filePath, fsSync.constants.X_OK);
|
|
14724
14724
|
return true;
|
|
14725
14725
|
} catch {
|
|
14726
14726
|
return false;
|
|
@@ -14758,7 +14758,7 @@ function normalizeMatchTarget(value) {
|
|
|
14758
14758
|
}
|
|
14759
14759
|
function tryRealpath(value) {
|
|
14760
14760
|
try {
|
|
14761
|
-
return
|
|
14761
|
+
return fsSync.realpathSync(value);
|
|
14762
14762
|
} catch {
|
|
14763
14763
|
return null;
|
|
14764
14764
|
}
|
|
@@ -15396,7 +15396,7 @@ function isPathLikeToken(value) {
|
|
|
15396
15396
|
}
|
|
15397
15397
|
function defaultFileExists(filePath) {
|
|
15398
15398
|
try {
|
|
15399
|
-
return
|
|
15399
|
+
return fsSync.existsSync(filePath);
|
|
15400
15400
|
} catch {
|
|
15401
15401
|
return false;
|
|
15402
15402
|
}
|
|
@@ -15640,7 +15640,7 @@ function mergeLegacyAgent(current, legacy) {
|
|
|
15640
15640
|
}
|
|
15641
15641
|
function ensureDir$1(filePath) {
|
|
15642
15642
|
const dir = path.dirname(filePath);
|
|
15643
|
-
|
|
15643
|
+
fsSync.mkdirSync(dir, { recursive: true });
|
|
15644
15644
|
}
|
|
15645
15645
|
function coerceAllowlistEntries(allowlist) {
|
|
15646
15646
|
if (!Array.isArray(allowlist) || allowlist.length === 0) return Array.isArray(allowlist) ? allowlist : void 0;
|
|
@@ -15710,11 +15710,11 @@ function generateToken() {
|
|
|
15710
15710
|
function loadExecApprovals() {
|
|
15711
15711
|
const filePath = resolveExecApprovalsPath();
|
|
15712
15712
|
try {
|
|
15713
|
-
if (!
|
|
15713
|
+
if (!fsSync.existsSync(filePath)) return normalizeExecApprovals({
|
|
15714
15714
|
version: 1,
|
|
15715
15715
|
agents: {}
|
|
15716
15716
|
});
|
|
15717
|
-
const raw =
|
|
15717
|
+
const raw = fsSync.readFileSync(filePath, "utf8");
|
|
15718
15718
|
const parsed = JSON.parse(raw);
|
|
15719
15719
|
if (parsed?.version !== 1) return normalizeExecApprovals({
|
|
15720
15720
|
version: 1,
|
|
@@ -15731,9 +15731,9 @@ function loadExecApprovals() {
|
|
|
15731
15731
|
function saveExecApprovals(file) {
|
|
15732
15732
|
const filePath = resolveExecApprovalsPath();
|
|
15733
15733
|
ensureDir$1(filePath);
|
|
15734
|
-
|
|
15734
|
+
fsSync.writeFileSync(filePath, `${JSON.stringify(file, null, 2)}\n`, { mode: 384 });
|
|
15735
15735
|
try {
|
|
15736
|
-
|
|
15736
|
+
fsSync.chmodSync(filePath, 384);
|
|
15737
15737
|
} catch {}
|
|
15738
15738
|
}
|
|
15739
15739
|
function ensureExecApprovals() {
|
|
@@ -18295,10 +18295,10 @@ const resolveGitHead = (startDir) => {
|
|
|
18295
18295
|
for (let i = 0; i < 12; i += 1) {
|
|
18296
18296
|
const gitPath = path.join(current, ".git");
|
|
18297
18297
|
try {
|
|
18298
|
-
const stat =
|
|
18298
|
+
const stat = fsSync.statSync(gitPath);
|
|
18299
18299
|
if (stat.isDirectory()) return path.join(gitPath, "HEAD");
|
|
18300
18300
|
if (stat.isFile()) {
|
|
18301
|
-
const match =
|
|
18301
|
+
const match = fsSync.readFileSync(gitPath, "utf-8").match(/gitdir:\s*(.+)/i);
|
|
18302
18302
|
if (match?.[1]) {
|
|
18303
18303
|
const resolved = path.resolve(current, match[1].trim());
|
|
18304
18304
|
return path.join(resolved, "HEAD");
|
|
@@ -18356,7 +18356,7 @@ const resolveCommitHash = (options = {}) => {
|
|
|
18356
18356
|
cachedCommit = null;
|
|
18357
18357
|
return cachedCommit;
|
|
18358
18358
|
}
|
|
18359
|
-
const head =
|
|
18359
|
+
const head = fsSync.readFileSync(headPath, "utf-8").trim();
|
|
18360
18360
|
if (!head) {
|
|
18361
18361
|
cachedCommit = null;
|
|
18362
18362
|
return cachedCommit;
|
|
@@ -18364,7 +18364,7 @@ const resolveCommitHash = (options = {}) => {
|
|
|
18364
18364
|
if (head.startsWith("ref:")) {
|
|
18365
18365
|
const ref = head.replace(/^ref:\s*/i, "").trim();
|
|
18366
18366
|
const refPath = path.resolve(path.dirname(headPath), ref);
|
|
18367
|
-
cachedCommit = formatCommit(
|
|
18367
|
+
cachedCommit = formatCommit(fsSync.readFileSync(refPath, "utf-8").trim());
|
|
18368
18368
|
return cachedCommit;
|
|
18369
18369
|
}
|
|
18370
18370
|
cachedCommit = formatCommit(head);
|
|
@@ -18649,9 +18649,9 @@ const readUsageFromSessionLog = (sessionId, sessionEntry, agentId, sessionKey, s
|
|
|
18649
18649
|
} catch {
|
|
18650
18650
|
return;
|
|
18651
18651
|
}
|
|
18652
|
-
if (!
|
|
18652
|
+
if (!fsSync.existsSync(logPath)) return;
|
|
18653
18653
|
try {
|
|
18654
|
-
const lines =
|
|
18654
|
+
const lines = fsSync.readFileSync(logPath, "utf-8").split(/\n+/);
|
|
18655
18655
|
let input = 0;
|
|
18656
18656
|
let output = 0;
|
|
18657
18657
|
let promptTokens = 0;
|
|
@@ -20210,7 +20210,7 @@ async function getMemorySearchManager(params) {
|
|
|
20210
20210
|
if (cached) return { manager: cached };
|
|
20211
20211
|
}
|
|
20212
20212
|
try {
|
|
20213
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
20213
|
+
const { QmdMemoryManager } = await import("./qmd-manager-CPypGJ0P.js");
|
|
20214
20214
|
const primary = await QmdMemoryManager.create({
|
|
20215
20215
|
cfg: params.cfg,
|
|
20216
20216
|
agentId: params.agentId,
|
|
@@ -20222,7 +20222,7 @@ async function getMemorySearchManager(params) {
|
|
|
20222
20222
|
const wrapper = new FallbackMemoryManager({
|
|
20223
20223
|
primary,
|
|
20224
20224
|
fallbackFactory: async () => {
|
|
20225
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
20225
|
+
const { MemoryIndexManager } = await import("./manager-BD5rA3w0.js").then((n) => n.t);
|
|
20226
20226
|
return await MemoryIndexManager.get(params);
|
|
20227
20227
|
}
|
|
20228
20228
|
}, () => QMD_MANAGER_CACHE.delete(cacheKey));
|
|
@@ -20235,7 +20235,7 @@ async function getMemorySearchManager(params) {
|
|
|
20235
20235
|
}
|
|
20236
20236
|
}
|
|
20237
20237
|
try {
|
|
20238
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
20238
|
+
const { MemoryIndexManager } = await import("./manager-BD5rA3w0.js").then((n) => n.t);
|
|
20239
20239
|
return { manager: await MemoryIndexManager.get(params) };
|
|
20240
20240
|
} catch (err) {
|
|
20241
20241
|
return {
|
|
@@ -23716,7 +23716,7 @@ function createWhatsAppLoginTool() {
|
|
|
23716
23716
|
force: Type.Optional(Type.Boolean())
|
|
23717
23717
|
}),
|
|
23718
23718
|
execute: async (_toolCallId, args) => {
|
|
23719
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
23719
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-ZYYKD6Yt.js");
|
|
23720
23720
|
if ((args?.action ?? "start") === "wait") {
|
|
23721
23721
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
23722
23722
|
return {
|
|
@@ -23968,7 +23968,7 @@ function formatExtraPaths(workspaceDir, extraPaths) {
|
|
|
23968
23968
|
}
|
|
23969
23969
|
async function checkReadableFile(pathname) {
|
|
23970
23970
|
try {
|
|
23971
|
-
await fs.access(pathname,
|
|
23971
|
+
await fs.access(pathname, fsSync.constants.R_OK);
|
|
23972
23972
|
return { exists: true };
|
|
23973
23973
|
} catch (err) {
|
|
23974
23974
|
const code = err.code;
|
|
@@ -24027,7 +24027,7 @@ async function scanMemoryFiles(workspaceDir, extraPaths = []) {
|
|
|
24027
24027
|
}
|
|
24028
24028
|
let dirReadable = null;
|
|
24029
24029
|
try {
|
|
24030
|
-
await fs.access(memoryDir,
|
|
24030
|
+
await fs.access(memoryDir, fsSync.constants.R_OK);
|
|
24031
24031
|
dirReadable = true;
|
|
24032
24032
|
} catch (err) {
|
|
24033
24033
|
const code = err.code;
|
|
@@ -24948,23 +24948,23 @@ let webLoginQrPromise = null;
|
|
|
24948
24948
|
let webChannelPromise = null;
|
|
24949
24949
|
let whatsappActionsPromise = null;
|
|
24950
24950
|
function loadWebOutbound() {
|
|
24951
|
-
webOutboundPromise ??= import("./outbound-
|
|
24951
|
+
webOutboundPromise ??= import("./outbound-CkKgc6iR.js").then((n) => n.t);
|
|
24952
24952
|
return webOutboundPromise;
|
|
24953
24953
|
}
|
|
24954
24954
|
function loadWebLogin() {
|
|
24955
|
-
webLoginPromise ??= import("./login-
|
|
24955
|
+
webLoginPromise ??= import("./login-DXWKewA2.js").then((n) => n.n);
|
|
24956
24956
|
return webLoginPromise;
|
|
24957
24957
|
}
|
|
24958
24958
|
function loadWebLoginQr() {
|
|
24959
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
24959
|
+
webLoginQrPromise ??= import("./login-qr-ZYYKD6Yt.js");
|
|
24960
24960
|
return webLoginQrPromise;
|
|
24961
24961
|
}
|
|
24962
24962
|
function loadWebChannel() {
|
|
24963
|
-
webChannelPromise ??= import("./web-
|
|
24963
|
+
webChannelPromise ??= import("./web-B5QG839O.js");
|
|
24964
24964
|
return webChannelPromise;
|
|
24965
24965
|
}
|
|
24966
24966
|
function loadWhatsAppActions() {
|
|
24967
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
24967
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-C_5MwVxM.js");
|
|
24968
24968
|
return whatsappActionsPromise;
|
|
24969
24969
|
}
|
|
24970
24970
|
function createPluginRuntime() {
|
|
@@ -25167,7 +25167,7 @@ const resolvePluginSdkAliasFile = (params) => {
|
|
|
25167
25167
|
const srcCandidate = path.join(cursor, "src", "plugin-sdk", params.srcFile);
|
|
25168
25168
|
const distCandidate = path.join(cursor, "dist", "plugin-sdk", params.distFile);
|
|
25169
25169
|
const orderedCandidates = isTest ? [distCandidate, srcCandidate] : [distCandidate];
|
|
25170
|
-
for (const candidate of orderedCandidates) if (
|
|
25170
|
+
for (const candidate of orderedCandidates) if (fsSync.existsSync(candidate)) return candidate;
|
|
25171
25171
|
const parent = path.dirname(cursor);
|
|
25172
25172
|
if (parent === cursor) break;
|
|
25173
25173
|
cursor = parent;
|
|
@@ -27658,7 +27658,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
27658
27658
|
if (typeof contentLength === "number" && Number.isFinite(contentLength) && contentLength > MAX_CAMERA_URL_DOWNLOAD_BYTES) throw new Error(`writeUrlToFile: content-length ${contentLength} exceeds max ${MAX_CAMERA_URL_DOWNLOAD_BYTES}`);
|
|
27659
27659
|
const body = res.body;
|
|
27660
27660
|
if (!body) throw new Error(`failed to download ${url}: empty response body`);
|
|
27661
|
-
const fileHandle = await fs$
|
|
27661
|
+
const fileHandle = await fs$1.open(filePath, "w");
|
|
27662
27662
|
let bytes = 0;
|
|
27663
27663
|
let thrown;
|
|
27664
27664
|
try {
|
|
@@ -27677,7 +27677,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
27677
27677
|
await fileHandle.close();
|
|
27678
27678
|
}
|
|
27679
27679
|
if (thrown) {
|
|
27680
|
-
await fs$
|
|
27680
|
+
await fs$1.unlink(filePath).catch(() => {});
|
|
27681
27681
|
throw thrown;
|
|
27682
27682
|
}
|
|
27683
27683
|
return {
|
|
@@ -27687,7 +27687,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
27687
27687
|
}
|
|
27688
27688
|
async function writeBase64ToFile(filePath, base64) {
|
|
27689
27689
|
const buf = Buffer.from(base64, "base64");
|
|
27690
|
-
await fs$
|
|
27690
|
+
await fs$1.writeFile(filePath, buf);
|
|
27691
27691
|
return {
|
|
27692
27692
|
path: filePath,
|
|
27693
27693
|
bytes: buf.length
|
|
@@ -32589,7 +32589,7 @@ function resolveSessionTranscriptCandidates(sessionId, storePath, sessionFile, a
|
|
|
32589
32589
|
}
|
|
32590
32590
|
function archiveFileOnDisk(filePath, reason) {
|
|
32591
32591
|
const archived = `${filePath}.${reason}.${(/* @__PURE__ */ new Date()).toISOString().replaceAll(":", "-")}`;
|
|
32592
|
-
|
|
32592
|
+
fsSync.renameSync(filePath, archived);
|
|
32593
32593
|
return archived;
|
|
32594
32594
|
}
|
|
32595
32595
|
/**
|
|
@@ -32599,7 +32599,7 @@ function archiveFileOnDisk(filePath, reason) {
|
|
|
32599
32599
|
function archiveSessionTranscripts(opts) {
|
|
32600
32600
|
const archived = [];
|
|
32601
32601
|
for (const candidate of resolveSessionTranscriptCandidates(opts.sessionId, opts.storePath, opts.sessionFile, opts.agentId)) {
|
|
32602
|
-
if (!
|
|
32602
|
+
if (!fsSync.existsSync(candidate)) continue;
|
|
32603
32603
|
try {
|
|
32604
32604
|
archived.push(archiveFileOnDisk(candidate, opts.reason));
|
|
32605
32605
|
} catch {}
|
|
@@ -32646,7 +32646,7 @@ function listExistingAgentIdsFromDisk() {
|
|
|
32646
32646
|
const root = resolveStateDir();
|
|
32647
32647
|
const agentsDir = path.join(root, "agents");
|
|
32648
32648
|
try {
|
|
32649
|
-
return
|
|
32649
|
+
return fsSync.readdirSync(agentsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => normalizeAgentId(entry.name)).filter(Boolean);
|
|
32650
32650
|
} catch {
|
|
32651
32651
|
return [];
|
|
32652
32652
|
}
|
|
@@ -32891,8 +32891,8 @@ function resolveZaiApiKey() {
|
|
|
32891
32891
|
}
|
|
32892
32892
|
try {
|
|
32893
32893
|
const authPath = path.join(os.homedir(), ".pi", "agent", "auth.json");
|
|
32894
|
-
if (!
|
|
32895
|
-
const data = JSON.parse(
|
|
32894
|
+
if (!fsSync.existsSync(authPath)) return;
|
|
32895
|
+
const data = JSON.parse(fsSync.readFileSync(authPath, "utf-8"));
|
|
32896
32896
|
return data["z-ai"]?.access || data.zai?.access;
|
|
32897
32897
|
} catch {
|
|
32898
32898
|
return;
|
|
@@ -39181,7 +39181,7 @@ const applyCostTotal = (totals, costTotal) => {
|
|
|
39181
39181
|
totals.totalCost += costTotal;
|
|
39182
39182
|
};
|
|
39183
39183
|
async function scanTranscriptFile(params) {
|
|
39184
|
-
const fileStream =
|
|
39184
|
+
const fileStream = fsSync.createReadStream(params.filePath, { encoding: "utf-8" });
|
|
39185
39185
|
const rl = readline.createInterface({
|
|
39186
39186
|
input: fileStream,
|
|
39187
39187
|
crlfDelay: Infinity
|
|
@@ -39241,10 +39241,10 @@ async function loadCostUsageSummary(params) {
|
|
|
39241
39241
|
const dailyMap = /* @__PURE__ */ new Map();
|
|
39242
39242
|
const totals = emptyTotals();
|
|
39243
39243
|
const sessionsDir = resolveSessionTranscriptsDirForAgent(params?.agentId);
|
|
39244
|
-
const entries = await
|
|
39244
|
+
const entries = await fsSync.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
|
|
39245
39245
|
const files = (await Promise.all(entries.filter((entry) => entry.isFile() && entry.name.endsWith(".jsonl")).map(async (entry) => {
|
|
39246
39246
|
const filePath = path.join(sessionsDir, entry.name);
|
|
39247
|
-
const stats = await
|
|
39247
|
+
const stats = await fsSync.promises.stat(filePath).catch(() => null);
|
|
39248
39248
|
if (!stats) return null;
|
|
39249
39249
|
if (stats.mtimeMs < sinceTime) return null;
|
|
39250
39250
|
return filePath;
|
|
@@ -39277,7 +39277,7 @@ async function loadCostUsageSummary(params) {
|
|
|
39277
39277
|
}
|
|
39278
39278
|
async function loadSessionCostSummary(params) {
|
|
39279
39279
|
const sessionFile = params.sessionFile ?? (params.sessionId ? resolveSessionFilePath(params.sessionId, params.sessionEntry, { agentId: params.agentId }) : void 0);
|
|
39280
|
-
if (!sessionFile || !
|
|
39280
|
+
if (!sessionFile || !fsSync.existsSync(sessionFile)) return null;
|
|
39281
39281
|
const totals = emptyTotals();
|
|
39282
39282
|
let firstActivity;
|
|
39283
39283
|
let lastActivity;
|
|
@@ -42247,7 +42247,7 @@ async function runAgentTurnWithFallback(params) {
|
|
|
42247
42247
|
if (corruptedSessionId) {
|
|
42248
42248
|
const transcriptPath = resolveSessionTranscriptPath(corruptedSessionId);
|
|
42249
42249
|
try {
|
|
42250
|
-
|
|
42250
|
+
fsSync.unlinkSync(transcriptPath);
|
|
42251
42251
|
} catch {}
|
|
42252
42252
|
}
|
|
42253
42253
|
delete params.activeSessionStore[sessionKey];
|
|
@@ -43048,7 +43048,7 @@ async function runReplyAgent(params) {
|
|
|
43048
43048
|
if (resolved) transcriptCandidates.add(resolved);
|
|
43049
43049
|
transcriptCandidates.add(resolveSessionTranscriptPath(prevSessionId, agentId));
|
|
43050
43050
|
for (const candidate of transcriptCandidates) try {
|
|
43051
|
-
|
|
43051
|
+
fsSync.unlinkSync(candidate);
|
|
43052
43052
|
} catch {}
|
|
43053
43053
|
}
|
|
43054
43054
|
return true;
|
|
@@ -43814,7 +43814,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
43814
43814
|
return;
|
|
43815
43815
|
}
|
|
43816
43816
|
try {
|
|
43817
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
43817
|
+
const { deliverOutboundPayloads } = await import("./deliver-CePITOl8.js").then((n) => n.n);
|
|
43818
43818
|
await deliverOutboundPayloads({
|
|
43819
43819
|
cfg: params.cfg,
|
|
43820
43820
|
channel,
|
|
@@ -43836,7 +43836,7 @@ function forkSessionFromParent(params) {
|
|
|
43836
43836
|
agentId: params.agentId,
|
|
43837
43837
|
sessionsDir: params.sessionsDir
|
|
43838
43838
|
});
|
|
43839
|
-
if (!parentSessionFile || !
|
|
43839
|
+
if (!parentSessionFile || !fsSync.existsSync(parentSessionFile)) return null;
|
|
43840
43840
|
try {
|
|
43841
43841
|
const manager = SessionManager.open(parentSessionFile);
|
|
43842
43842
|
const leafId = manager.getLeafId();
|
|
@@ -43860,7 +43860,7 @@ function forkSessionFromParent(params) {
|
|
|
43860
43860
|
cwd: manager.getCwd(),
|
|
43861
43861
|
parentSession: parentSessionFile
|
|
43862
43862
|
};
|
|
43863
|
-
|
|
43863
|
+
fsSync.writeFileSync(sessionFile, `${JSON.stringify(header)}\n`, "utf-8");
|
|
43864
43864
|
return {
|
|
43865
43865
|
sessionId,
|
|
43866
43866
|
sessionFile
|