openclaw-cortex 3.0.1 → 3.0.3
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/{accounts-B3MIBUxY.js → accounts-6btx_LVr.js} +14 -14
- package/dist/{accounts-X5YWm9b7.js → accounts-BOYxuJ9C.js} +1 -1
- package/dist/{accounts-Doecg-Pe.js → accounts-Cg6z7lKw.js} +1 -1
- package/dist/{active-listener-DI-5r3l7.js → active-listener-BhL5jMd9.js} +1 -1
- package/dist/{agent-scope-DgSbJ6PA.js → agent-scope-BLYwrEEA.js} +3 -3
- package/dist/{audio-preflight-CketII1D.js → audio-preflight-CJMYPxgz.js} +4 -4
- package/dist/{audio-preflight-EwgV_X7F.js → audio-preflight-DrLN-6C1.js} +30 -30
- package/dist/{bindings-ZzFXeSUF.js → bindings-DWtXcdc8.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +53 -53
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +53 -53
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-By7mU0Ld.js → channel-activity-LT3oBvO7.js} +1 -1
- package/dist/{chrome-BwkFC1Kp.js → chrome-DBmAGMTR.js} +20 -20
- package/dist/{chrome-7PNldBIY.js → chrome-jiKls1lm.js} +7 -7
- package/dist/{chunk-DoTNWpve.js → chunk-TRVny4T1.js} +1 -1
- package/dist/{command-format--87BbJbN.js → command-format-D1Crrvey.js} +1 -1
- package/dist/{command-registry-CKl3i1dn.js → command-registry-D82LWaRr.js} +4 -4
- package/dist/{commands-registry-C1TEcrP2.js → commands-registry-B6FYKIxi.js} +3 -3
- package/dist/{plugin-sdk/common-CJo4CK5_.js → common-y9ALHdVZ.js} +2 -2
- package/dist/{completion-cli-D9M167hh.js → completion-cli-C1r90Nrk.js} +1 -1
- package/dist/{completion-cli-DWbOrNO2.js → completion-cli-DPioCNYq.js} +2 -2
- package/dist/{config-DnorUs_i.js → config-qfEsodS7.js} +12 -12
- package/dist/control-ui/_app/immutable/chunks/{Dj6tWyD-.js → -WaG6-Wa.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{B8HoIBa6.js → 5eXlR5OL.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{OqlKjpfM.js → B8DrosHE.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BocS-uwo.js → BBXALFLP.js} +3 -3
- package/dist/control-ui/_app/immutable/chunks/{X-E-wRlP.js → BEwWGCvZ.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BhtVncI_.js → BLtDog0v.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{DVEflJCB.js → BQJCZmRh.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{vBxFu2GM.js → BSVakDDW.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/BZPuz03W.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/{8sVJ3pgr.js → Ba7JwTQm.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CgeCLzn1.js → Bae3KkPP.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{-b0Q_QBa.js → Bh6lEBNv.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BdTFhrHG.js → BhXAsS8g.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{Cy9J7_9T.js → BrxfYBSP.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{UR4DV3hi.js → BsUBloFL.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{Bqq0fCUn.js → BsZ_uYnn.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{9SZhwvK0.js → C--qzJ6W.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{D4282KIs.js → C-JVM0la.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{Duq46cRv.js → C7KVOWgV.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BH-jV9iA.js → C7m1KhrR.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CtBXH4Dd.js → C8PuvvjP.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{giHw3ym1.js → C9VLzrYr.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CduS0XRA.js → CHTlfT2F.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{DgYPOa8E.js → CLY1rHgs.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{B17J7L81.js → CPgEtRZT.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BqJ-mFLn.js → CVAw3cDG.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{B9SC_jjC.js → CVZCvD9s.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{LmLbPTz2.js → C_LuOpHS.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/CbL4AD8o.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/{BCj3dr9H.js → CgWI5Oik.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{tMgN0hpT.js → CiyAy8dp.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BXILuhuG.js → CkF797NI.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{Dg6LpIYP.js → CrremO5S.js} +4 -4
- package/dist/control-ui/_app/immutable/chunks/{YYSXb5XV.js → CseiHJK5.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BQThDSlf.js → CxBb1Xul.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{D374cbd4.js → DCXXFcx5.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{D5RXhj7J.js → DJjlYUoC.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{eejBr3e5.js → DMY-Nl0I.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{D_9uFAU4.js → DRZM4rH8.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{kg_bi-Xy.js → DVy-_nYK.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{Ae3Dp1ab.js → DZsBL6ln.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BD82r6qT.js → DnRi7lHs.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CB9985Nn.js → Dt5mMewg.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CGR62pw0.js → DtDnO4qq.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{C1MwqfJi.js → Du2cKiDo.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{C_e8KYob.js → DwPRscxf.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{tr5b7CMr.js → SHB02qEx.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CyMYiLoa.js → Tfaq1PK1.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/TuMlQKbB.js +5 -0
- package/dist/control-ui/_app/immutable/chunks/{Cm1fG3bI.js → aXQqHONi.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{By8LBh45.js → dQY-7VfC.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CGz_QUNI.js → kbQmmJpo.js} +1 -1
- package/dist/control-ui/_app/immutable/entry/{app.gjdkTR50.js → app.Cyu356mA.js} +2 -2
- package/dist/control-ui/_app/immutable/entry/start.CjGQB-0l.js +1 -0
- package/dist/control-ui/_app/immutable/nodes/{0.DZBLEJTo.js → 0.EBH6_Ud6.js} +7 -7
- package/dist/control-ui/_app/immutable/nodes/{1.El_L1H2f.js → 1.CrXLLMV6.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{10.BuHCBw2C.js → 10.CFP8x2TH.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{11.DaM8Z72M.js → 11.Sd6L6Nq2.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{12.DctBvrnI.js → 12.tVVXkjFh.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{13.CFlpuIKq.js → 13.D93_LX58.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{14.ApTZ29I1.js → 14.DLNHet27.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{15.Bv1kE6xT.js → 15.CIr4ejir.js} +5 -5
- package/dist/control-ui/_app/immutable/nodes/{16.CPH_dMUA.js → 16.QX2ielYQ.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{17.Gpl84s2Y.js → 17.6qOW3iFE.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/2.BTwPpsUd.js +1 -0
- package/dist/control-ui/_app/immutable/nodes/{3.om6ap7s5.js → 3.CJTqvGaW.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{4.C7I3arj2.js → 4.Dz3JH-PB.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{5.PRkSVQb-.js → 5._XvLegf_.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{6.DXFMFV_g.js → 6.B2G6IFSu.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{7.pxR8f42V.js → 7.C7FQ9bAP.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{8.BjB_sfx0.js → 8.B5aVfCJN.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{9.M8OWsIew.js → 9.DFhiU3G3.js} +1 -1
- package/dist/control-ui/_app/version.json +1 -1
- package/dist/control-ui/index.html +6 -6
- package/dist/control-ui/sw.js +28 -30
- package/dist/{deliver-CFSxoz2_.js → deliver-DXKF_Nu0.js} +1 -1
- package/dist/{deliver-DotE8uPe.js → deliver-miQ_b14_.js} +20 -20
- package/dist/{diagnostic-D8zLma7p.js → diagnostic-CoT2YQH4.js} +1 -1
- package/dist/{doctor-completion-C45zyyLh.js → doctor-completion-DhpniKWm.js} +1 -1
- package/dist/{doctor-completion-B18Bypvd.js → doctor-completion-fRx0enfv.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{frontmatter-D07uaEbx.js → frontmatter-BT4H5SZG.js} +2 -2
- package/dist/{fs-safe-DD7nl1O-.js → fs-safe-B8-WkEXM.js} +1 -1
- package/dist/{gateway-cli-C9P1VKyA.js → gateway-cli-0_ycakyp.js} +6 -8
- package/dist/{gateway-cli-Cy10TRa_.js → gateway-cli-CJohs14T.js} +6 -8
- package/dist/{gemini-auth-prEOLMZr.js → gemini-auth-B32PFjFy.js} +1 -1
- package/dist/{github-copilot-token-Bu5FPDAY.js → github-copilot-token-BQ98eazZ.js} +7 -7
- package/dist/{image-D-wXbQEl.js → image-Bnzq6Ut_.js} +4 -4
- package/dist/{image-DafeVSso.js → image-DChVqMFC.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{ir-D4AIeS28.js → ir-CRTCIHIG.js} +4 -4
- package/dist/llm-slug-generator.js +53 -53
- package/dist/{local-roots-B9HIz81e.js → local-roots-tMzVEQD2.js} +5 -5
- package/dist/{login-CHBdSags.js → login-DGwFcNWz.js} +7 -7
- package/dist/{login-qr-Ch834jRc.js → login-qr-IWLbGrDP.js} +12 -12
- package/dist/{manager-B8MDZuUH.js → manager-KxfmY55A.js} +13 -13
- package/dist/{manifest-registry-CpMEl7vN.js → manifest-registry-Dovhiqzt.js} +19 -19
- package/dist/{markdown-tables-1wSxjPR8.js → markdown-tables-DO9qAEKa.js} +1 -1
- package/dist/{message-channel-CW_Jr8qx.js → message-channel-BDlvrUZF.js} +1 -1
- package/dist/{model-auth-BlsavKKY.js → model-auth-Dm1uOof6.js} +9 -9
- package/dist/{normalize-DsdAOxp0.js → normalize-D5KCCgTX.js} +9 -9
- package/dist/{onboard-BO-10joL.js → onboard-5rjiYkS9.js} +1 -1
- package/dist/{onboard-CoGGGg5K.js → onboard-CqSt7u8D.js} +1 -1
- package/dist/{onboarding-CiOMo5_c.js → onboarding-CIYktbwg.js} +1 -1
- package/dist/{onboarding-EMqX1DQj.js → onboarding-WJQtWazg.js} +1 -1
- package/dist/{onboarding.finalize-BkqY37UR.js → onboarding.finalize-DC7D8bBE.js} +4 -4
- package/dist/{onboarding.finalize-D-8iuvnX.js → onboarding.finalize-Z7sroef4.js} +3 -3
- package/dist/{outbound-BI27cc0j.js → outbound-CthSjSDV.js} +7 -7
- package/dist/{outbound-attachment-Ba6Ea-zP.js → outbound-attachment-BChLBLPg.js} +2 -2
- package/dist/{paths-CkkDESQ2.js → paths-CyR9Pa1R.js} +5 -5
- package/dist/{paths-B4zRLe0K.js → paths-gnW-md4M.js} +1 -1
- package/dist/{pi-auth-json-gQa8k4FW.js → pi-auth-json-mTixxeol.js} +8 -8
- package/dist/{pi-embedded-DzV18Sl5.js → pi-embedded-D0HD9Cfc.js} +158 -158
- package/dist/{pi-embedded-Ig1YOX5t.js → pi-embedded-DPsT4Vb4.js} +16 -16
- package/dist/{pi-embedded-helpers-C-3FQnQz.js → pi-embedded-helpers--8pQ_5Ix.js} +4 -4
- package/dist/{pi-embedded-helpers-B4V6-8TA.js → pi-embedded-helpers-f1wpGfIT.js} +52 -52
- package/dist/plugin-sdk/{accounts-vV5Gfd26.js → accounts-CRs7kbLB.js} +1 -1
- package/dist/plugin-sdk/{accounts-iN-dbgw4.js → accounts-b1Cok6r_.js} +3 -3
- package/dist/plugin-sdk/{accounts-LxMkgia0.js → accounts-uAqOguyH.js} +1 -1
- package/dist/plugin-sdk/{active-listener-Bh0LXjEI.js → active-listener-BdVTYHTN.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-BS_vck4W.js → agent-scope-OWMdRegz.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-LkecAWT_.js → api-key-rotation-DedcgBOR.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-Bs1SkEb1.js → audio-preflight-EYVIo5wC.js} +25 -25
- package/dist/plugin-sdk/{bindings-CTCkMENc.js → bindings-LROfNV1W.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-PV3vhwo2.js → channel-activity-DHI8R5Xg.js} +1 -1
- package/dist/plugin-sdk/{channel-web-C1Hsjdgf.js → channel-web-CGp1_ZH4.js} +22 -22
- package/dist/plugin-sdk/{chrome-cWvSiZw3.js → chrome-BS8LYp6z.js} +3 -3
- package/dist/plugin-sdk/{chunk-CyOBR4uk.js → chunk-C9J4kyVw.js} +1 -1
- package/dist/plugin-sdk/{command-format-C5kdEGEu.js → command-format-BTciq6Gg.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-Bvksrm0n.js → commands-registry-pHxVP_Zd.js} +3 -3
- package/dist/{common-B7QyEEac.js → plugin-sdk/common-CCPGi5xr.js} +2 -2
- package/dist/plugin-sdk/{config-B8Nc1zrG.js → config-DemNgb7Z.js} +9 -9
- package/dist/plugin-sdk/{deliver-Dut_1pt2.js → deliver-BCvqh6o3.js} +10 -10
- package/dist/plugin-sdk/{diagnostic-DFXnVf2I.js → diagnostic-oBxO5N68.js} +1 -1
- package/dist/plugin-sdk/{fs-safe-CdpuSWry.js → fs-safe-CGcLaY9D.js} +1 -1
- package/dist/plugin-sdk/{image-B3tSrFDE.js → image-BHSeZfna.js} +4 -4
- package/dist/plugin-sdk/index.js +52 -52
- package/dist/plugin-sdk/{ir-05vuco_v.js → ir-JSGKj1e6.js} +4 -4
- package/dist/plugin-sdk/{local-roots-DlmKIABh.js → local-roots-jpNoUngc.js} +3 -3
- package/dist/plugin-sdk/{login-_t6d0RBi.js → login-Ckh0Yz4j.js} +7 -7
- package/dist/plugin-sdk/{login-qr-Czq6nBnB.js → login-qr-DRY27T-V.js} +9 -9
- package/dist/plugin-sdk/{manager-DEOMAxd_.js → manager-B9XMF8DU.js} +8 -8
- package/dist/plugin-sdk/{manifest-registry-BgkX6ON4.js → manifest-registry-Lzj-fZNH.js} +1 -1
- package/dist/plugin-sdk/{markdown-tables-FF81O4MP.js → markdown-tables-CgnPuqk-.js} +1 -1
- package/dist/plugin-sdk/{message-channel-DxNExIdv.js → message-channel-C3OrO29D.js} +1 -1
- package/dist/plugin-sdk/{model-selection-Bj-E4zbc.js → model-selection-BQiSfqzh.js} +4 -4
- package/dist/plugin-sdk/{normalize-DWmWs1Oq.js → normalize-raRH8X3d.js} +4 -4
- package/dist/plugin-sdk/{outbound-D2-05wUl.js → outbound-CtRrsxZT.js} +7 -7
- package/dist/plugin-sdk/{outbound-attachment-DmbQx_Vk.js → outbound-attachment-BD9q-xgD.js} +2 -2
- package/dist/plugin-sdk/{pi-auth-json-D-qvsSpX.js → pi-auth-json-BlIDGSl5.js} +5 -5
- package/dist/plugin-sdk/{pi-embedded-helpers-C1u6XyK5.js → pi-embedded-helpers-0qu1zxwF.js} +17 -17
- package/dist/plugin-sdk/{plugins-0PB0IWJL.js → plugins-BJciHbYr.js} +3 -3
- package/dist/plugin-sdk/{pw-ai-BIyeKPJF.js → pw-ai-DkUDisr8.js} +8 -8
- package/dist/plugin-sdk/{qmd-manager-DeQxerRp.js → qmd-manager-kPD4Wyie.js} +4 -4
- package/dist/plugin-sdk/{registry-BECEtj9n.js → registry-C8pj8ctW.js} +2 -2
- package/dist/plugin-sdk/{replies-DnGHvUeV.js → replies-0BFlZXJ5.js} +3 -3
- package/dist/plugin-sdk/{reply-Due6Dl-a.js → reply-BUzGHOJ7.js} +78 -78
- package/dist/plugin-sdk/{reply-prefix-UgReuQSG.js → reply-prefix-YUOHz1rF.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-BaFHJbum.js → resolve-route-DudlMKs4.js} +3 -3
- package/dist/plugin-sdk/{retry-Bkj1k1me.js → retry-B8Oq5mgi.js} +1 -1
- package/dist/plugin-sdk/{runner-Bq1wBell.js → runner-BkD3LLSl.js} +9 -9
- package/dist/plugin-sdk/{send-MrY4gJ_w.js → send-9i1KJYhJ.js} +7 -7
- package/dist/plugin-sdk/{send-D4HKCCvV.js → send-A_uouj00.js} +7 -7
- package/dist/plugin-sdk/{send-By-dm-fT.js → send-CpfmIaxP.js} +11 -11
- package/dist/plugin-sdk/{send-NUKqMNZh.js → send-DREpPboJ.js} +6 -6
- package/dist/plugin-sdk/{send-M99nJHP9.js → send-Di1hHvf2.js} +11 -11
- package/dist/plugin-sdk/{session-DGLRioDC.js → session-CpS-Mhnp.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-Cw-IRPUz.js → skill-commands-CTB7AZXn.js} +5 -5
- package/dist/plugin-sdk/{skills-D0-IpJne.js → skills-BCD1hFBZ.js} +7 -7
- package/dist/plugin-sdk/{sqlite-DtIiUWZr.js → sqlite-Yn48izJ_.js} +1 -1
- package/dist/plugin-sdk/{store-BcTI1iBS.js → store-BJRhX9Bi.js} +2 -2
- package/dist/plugin-sdk/{subsystem-Ck27y_6W.js → subsystem-BfLMZ8kW.js} +1 -1
- package/dist/plugin-sdk/{tables-B6ajREI6.js → tables-D5aPNTF6.js} +1 -1
- package/dist/plugin-sdk/{thinking-D81fexfE.js → thinking-BACprzA0.js} +5 -5
- package/dist/plugin-sdk/{tokens-B6GWdF_0.js → tokens-D1LxPszt.js} +1 -1
- package/dist/plugin-sdk/{tool-loop-detection-CbPwu1_R.js → tool-loop-detection-CYSptBsl.js} +2 -2
- package/dist/plugin-sdk/web-DNugKZLo.js +65 -0
- package/dist/plugin-sdk/{whatsapp-actions-B8IYO5sc.js → whatsapp-actions-CGuheX42.js} +20 -20
- package/dist/{plugins-CLJ0iOl0.js → plugins-CJYXNO4s.js} +1 -1
- package/dist/{program-DWc2vj5U.js → program-DShibMGY.js} +2 -2
- package/dist/{program-context-g9Bf7H9y.js → program-context-D9asDBqu.js} +6 -6
- package/dist/{prompt-select-styled-dUrAqGxZ.js → prompt-select-styled-DCNKc8Jv.js} +1 -1
- package/dist/{prompt-select-styled-Dq1G221I.js → prompt-select-styled-ca2X5yAy.js} +1 -1
- package/dist/{pw-ai-Db7y7La-.js → pw-ai-BJE3mkCf.js} +11 -11
- package/dist/{pw-ai-CNp2t_EO.js → pw-ai-D6PxL0UG.js} +1 -1
- package/dist/{qmd-manager-3KfZrilm.js → qmd-manager-4-VYqNeC.js} +7 -7
- package/dist/{register.maintenance-BQlKe9JQ.js → register.maintenance-5rJ9wTWH.js} +4 -4
- package/dist/{register.maintenance-BXCIyC2q.js → register.maintenance-za-PEn5C.js} +5 -5
- package/dist/{register.onboard-BjMshgZ4.js → register.onboard-C9qYHx42.js} +2 -2
- package/dist/{register.onboard-XjRFAaX-.js → register.onboard-D54Cc4KC.js} +2 -2
- package/dist/{register.setup-C3aOJ-9J.js → register.setup-D5P7KrfP.js} +2 -2
- package/dist/{register.setup-D9k8Eyg7.js → register.setup-v5rR-FiC.js} +2 -2
- package/dist/{register.subclis-DpCWe0ca.js → register.subclis-CMThmpuD.js} +3 -3
- package/dist/{registry-CXBAJGac.js → registry-BmY4gNy6.js} +17 -17
- package/dist/{replies-C3QP8Fs6.js → replies-BJH3pQXJ.js} +3 -3
- package/dist/{reply-prefix-DhPco1Lk.js → reply-prefix-BaCBHwi7.js} +1 -1
- package/dist/{resolve-route-BQouUsWd.js → resolve-route-ClURVRZM.js} +4 -4
- package/dist/{retry-BwVcNQB0.js → retry-BxB_D6Pn.js} +1 -1
- package/dist/{run-main-BRe5c6iW.js → run-main-Bzchv5w8.js} +3 -3
- package/dist/{runner-cxIcSp2C.js → runner-BmfMAciA.js} +9 -9
- package/dist/{runner-BN1T_Ne4.js → runner-CRUcM4a1.js} +1 -1
- package/dist/{send-DNUVC_tJ.js → send-B6BrpfcR.js} +7 -7
- package/dist/{send-ByKJYHWg.js → send-BNdapfcg.js} +19 -19
- package/dist/{send-CPUILfmc.js → send-C1F31aYA.js} +6 -6
- package/dist/{send-3ea6pkzH.js → send-D6tzL2Tv.js} +10 -10
- package/dist/{send-2sCLgOVr.js → send-DvBDdcQr.js} +6 -6
- package/dist/{session-C0_85REJ.js → session-BH5NTora.js} +8 -8
- package/dist/{skill-commands-IxgOIsIT.js → skill-commands-DVss6_wi.js} +9 -9
- package/dist/{skills-CwAZv64I.js → skills-Ci_2Mah4.js} +21 -21
- package/dist/{sqlite-BY19hYgD.js → sqlite-DJh2xLr6.js} +4 -4
- package/dist/{store-CDqpQLub.js → store-Be0QxLPZ.js} +2 -2
- package/dist/{subsystem-BFaeHXzD.js → subsystem-B5g771Td.js} +1 -1
- package/dist/{tables-z72GfOJY.js → tables-xDr7OSBa.js} +1 -1
- package/dist/{thinking-BzWAkN2b.js → thinking-wiChP3LK.js} +5 -5
- package/dist/{tokens-CC-Nd7t2.js → tokens-BRx7o_ZS.js} +1 -1
- package/dist/{tool-loop-detection-DDnbw1kC.js → tool-loop-detection-BjQsVGUc.js} +3 -3
- package/dist/{update-cli-Cnm99-Cj.js → update-cli-BT2KxdtU.js} +5 -5
- package/dist/{update-cli-3URF877J.js → update-cli-miNRN0fB.js} +4 -4
- package/dist/{web-CXDGlE3A.js → web-C0-NYLoG.js} +57 -57
- package/dist/{web-ComVBhjb.js → web-QGqe0Uj4.js} +6 -6
- package/dist/{whatsapp-actions-CLGSXEPl.js → whatsapp-actions-CgowK4CW.js} +23 -23
- package/dist/{workspace-CGgFZdqw.js → workspace-D9IzNnST.js} +6 -6
- package/package.json +1 -1
- package/dist/control-ui/_app/immutable/chunks/BXjfcUYQ.js +0 -1
- package/dist/control-ui/_app/immutable/chunks/C3MEsV6-.js +0 -1
- package/dist/control-ui/_app/immutable/chunks/jyaC7jQ0.js +0 -5
- package/dist/control-ui/_app/immutable/entry/start.B5atPhn7.js +0 -1
- package/dist/control-ui/_app/immutable/nodes/2.Zm6j08A_.js +0 -1
- package/dist/plugin-sdk/web-BfmMxgKj.js +0 -65
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { I as resolveUserPath, S as CONFIG_DIR } from "./registry-
|
|
2
|
-
import { f as normalizeSkillFilter } from "./agent-scope-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { h as resolveOpenClawPackageRootSync } from "./workspace-
|
|
5
|
-
import { c as resolveMemorySlotDecision, o as normalizePluginsConfig, s as resolveEnableState, t as loadPluginManifestRegistry } from "./manifest-registry-
|
|
6
|
-
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, p as resolveRuntimePlatform, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeRequires } from "./frontmatter-
|
|
1
|
+
import { I as resolveUserPath, S as CONFIG_DIR } from "./registry-BmY4gNy6.js";
|
|
2
|
+
import { f as normalizeSkillFilter } from "./agent-scope-BLYwrEEA.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-B5g771Td.js";
|
|
4
|
+
import { h as resolveOpenClawPackageRootSync } from "./workspace-D9IzNnST.js";
|
|
5
|
+
import { c as resolveMemorySlotDecision, o as normalizePluginsConfig, s as resolveEnableState, t as loadPluginManifestRegistry } from "./manifest-registry-Dovhiqzt.js";
|
|
6
|
+
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, p as resolveRuntimePlatform, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeRequires } from "./frontmatter-BT4H5SZG.js";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fs$1 from "node:fs";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
12
12
|
import { formatSkillsForPrompt, loadSkillsFromDir } from "@mariozechner/pi-coding-agent";
|
|
13
13
|
|
|
@@ -419,13 +419,13 @@ function shortPath(value) {
|
|
|
419
419
|
//#region src/agents/skills/bundled-dir.ts
|
|
420
420
|
function looksLikeSkillsDir(dir) {
|
|
421
421
|
try {
|
|
422
|
-
const entries =
|
|
422
|
+
const entries = fs$1.readdirSync(dir, { withFileTypes: true });
|
|
423
423
|
for (const entry of entries) {
|
|
424
424
|
if (entry.name.startsWith(".")) continue;
|
|
425
425
|
const fullPath = path.join(dir, entry.name);
|
|
426
426
|
if (entry.isFile() && entry.name.endsWith(".md")) return true;
|
|
427
427
|
if (entry.isDirectory()) {
|
|
428
|
-
if (
|
|
428
|
+
if (fs$1.existsSync(path.join(fullPath, "SKILL.md"))) return true;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
} catch {
|
|
@@ -440,7 +440,7 @@ function resolveBundledSkillsDir(opts = {}) {
|
|
|
440
440
|
const execPath = opts.execPath ?? process.execPath;
|
|
441
441
|
const execDir = path.dirname(execPath);
|
|
442
442
|
const sibling = path.join(execDir, "skills");
|
|
443
|
-
if (
|
|
443
|
+
if (fs$1.existsSync(sibling)) return sibling;
|
|
444
444
|
} catch {}
|
|
445
445
|
try {
|
|
446
446
|
const moduleUrl = opts.moduleUrl ?? import.meta.url;
|
|
@@ -496,7 +496,7 @@ function resolvePluginSkillDirs(params) {
|
|
|
496
496
|
const trimmed = raw.trim();
|
|
497
497
|
if (!trimmed) continue;
|
|
498
498
|
const candidate = path.resolve(record.rootDir, trimmed);
|
|
499
|
-
if (!
|
|
499
|
+
if (!fs$1.existsSync(candidate)) {
|
|
500
500
|
log.warn(`plugin skill path not found (${record.id}): ${candidate}`);
|
|
501
501
|
continue;
|
|
502
502
|
}
|
|
@@ -523,7 +523,7 @@ async function serializeByKey(key, task) {
|
|
|
523
523
|
|
|
524
524
|
//#endregion
|
|
525
525
|
//#region src/agents/skills/workspace.ts
|
|
526
|
-
const fsp =
|
|
526
|
+
const fsp = fs$1.promises;
|
|
527
527
|
const skillsLogger = createSubsystemLogger("skills");
|
|
528
528
|
const skillCommandDebugOnce = /* @__PURE__ */ new Set();
|
|
529
529
|
/**
|
|
@@ -600,7 +600,7 @@ function resolveSkillsLimits(config) {
|
|
|
600
600
|
}
|
|
601
601
|
function listChildDirectories(dir) {
|
|
602
602
|
try {
|
|
603
|
-
const entries =
|
|
603
|
+
const entries = fs$1.readdirSync(dir, { withFileTypes: true });
|
|
604
604
|
const dirs = [];
|
|
605
605
|
for (const entry of entries) {
|
|
606
606
|
if (entry.name.startsWith(".")) continue;
|
|
@@ -611,7 +611,7 @@ function listChildDirectories(dir) {
|
|
|
611
611
|
continue;
|
|
612
612
|
}
|
|
613
613
|
if (entry.isSymbolicLink()) try {
|
|
614
|
-
if (
|
|
614
|
+
if (fs$1.statSync(fullPath).isDirectory()) dirs.push(entry.name);
|
|
615
615
|
} catch {}
|
|
616
616
|
}
|
|
617
617
|
return dirs;
|
|
@@ -622,7 +622,7 @@ function listChildDirectories(dir) {
|
|
|
622
622
|
function resolveNestedSkillsRoot(dir, opts) {
|
|
623
623
|
const nested = path.join(dir, "skills");
|
|
624
624
|
try {
|
|
625
|
-
if (!
|
|
625
|
+
if (!fs$1.existsSync(nested) || !fs$1.statSync(nested).isDirectory()) return { baseDir: dir };
|
|
626
626
|
} catch {
|
|
627
627
|
return { baseDir: dir };
|
|
628
628
|
}
|
|
@@ -631,7 +631,7 @@ function resolveNestedSkillsRoot(dir, opts) {
|
|
|
631
631
|
const toScan = scanLimit === 0 ? [] : nestedDirs.slice(0, Math.min(nestedDirs.length, scanLimit));
|
|
632
632
|
for (const name of toScan) {
|
|
633
633
|
const skillMd = path.join(nested, name, "SKILL.md");
|
|
634
|
-
if (
|
|
634
|
+
if (fs$1.existsSync(skillMd)) return {
|
|
635
635
|
baseDir: nested,
|
|
636
636
|
note: `Detected nested skills root at ${nested}`
|
|
637
637
|
};
|
|
@@ -651,9 +651,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
651
651
|
const loadSkills = (params) => {
|
|
652
652
|
const baseDir = resolveNestedSkillsRoot(params.dir, { maxEntriesToScan: limits.maxCandidatesPerRoot }).baseDir;
|
|
653
653
|
const rootSkillMd = path.join(baseDir, "SKILL.md");
|
|
654
|
-
if (
|
|
654
|
+
if (fs$1.existsSync(rootSkillMd)) {
|
|
655
655
|
try {
|
|
656
|
-
const size =
|
|
656
|
+
const size = fs$1.statSync(rootSkillMd).size;
|
|
657
657
|
if (size > limits.maxSkillFileBytes) {
|
|
658
658
|
skillsLogger.warn("Skipping skills root due to oversized SKILL.md.", {
|
|
659
659
|
dir: baseDir,
|
|
@@ -692,9 +692,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
692
692
|
for (const name of limitedChildren) {
|
|
693
693
|
const skillDir = path.join(baseDir, name);
|
|
694
694
|
const skillMd = path.join(skillDir, "SKILL.md");
|
|
695
|
-
if (!
|
|
695
|
+
if (!fs$1.existsSync(skillMd)) continue;
|
|
696
696
|
try {
|
|
697
|
-
const size =
|
|
697
|
+
const size = fs$1.statSync(skillMd).size;
|
|
698
698
|
if (size > limits.maxSkillFileBytes) {
|
|
699
699
|
skillsLogger.warn("Skipping skill due to oversized SKILL.md.", {
|
|
700
700
|
skill: name,
|
|
@@ -762,7 +762,7 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
762
762
|
return Array.from(merged.values()).map((skill) => {
|
|
763
763
|
let frontmatter = {};
|
|
764
764
|
try {
|
|
765
|
-
frontmatter = parseFrontmatter(
|
|
765
|
+
frontmatter = parseFrontmatter(fs$1.readFileSync(skill.filePath, "utf-8"));
|
|
766
766
|
} catch {}
|
|
767
767
|
return {
|
|
768
768
|
skill,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-B5g771Td.js";
|
|
2
2
|
import { t as redactSensitiveText } from "./redact-BBbIZgau.js";
|
|
3
|
-
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
3
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-gnW-md4M.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import fs$1 from "node:fs";
|
|
8
8
|
import crypto from "node:crypto";
|
|
9
9
|
|
|
10
10
|
//#region src/memory/fs-utils.ts
|
|
@@ -71,7 +71,7 @@ async function runTasksWithConcurrency(params) {
|
|
|
71
71
|
//#region src/memory/internal.ts
|
|
72
72
|
function ensureDir(dir) {
|
|
73
73
|
try {
|
|
74
|
-
|
|
74
|
+
fs$1.mkdirSync(dir, { recursive: true });
|
|
75
75
|
} catch {}
|
|
76
76
|
return dir;
|
|
77
77
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as resolveConfigDir } from "./registry-
|
|
2
|
-
import { d as detectMime, f as extensionForMime } from "./fs-safe-
|
|
1
|
+
import { P as resolveConfigDir } from "./registry-BmY4gNy6.js";
|
|
2
|
+
import { d as detectMime, f as extensionForMime } from "./fs-safe-B8-WkEXM.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import crypto from "node:crypto";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as isFileLogLevelEnabled, ct as levelToMinLevel, lt as normalizeLogLevel, n as CHAT_CHANNEL_ORDER, q as isVerbose, rt as getChildLogger, st as loggingState, ut as readLoggingConfig } from "./registry-
|
|
1
|
+
import { at as isFileLogLevelEnabled, ct as levelToMinLevel, lt as normalizeLogLevel, n as CHAT_CHANNEL_ORDER, q as isVerbose, rt as getChildLogger, st as loggingState, ut as readLoggingConfig } from "./registry-BmY4gNy6.js";
|
|
2
2
|
import { Chalk } from "chalk";
|
|
3
3
|
|
|
4
4
|
//#region src/terminal/progress-line.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as normalizeAccountId } from "./session-key-CgcjHuX_.js";
|
|
2
|
-
import { D as escapeRegExp, M as normalizeE164, i as getChatChannelMeta, l as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER } from "./registry-
|
|
3
|
-
import { c as resolveSlackAccount, l as resolveSlackReplyToMode, m as resolveDiscordAccount, n as normalizeWhatsAppTarget, o as resolveTelegramAccount } from "./normalize-
|
|
4
|
-
import { t as resolveWhatsAppAccount } from "./accounts-
|
|
5
|
-
import { n as resolveSignalAccount } from "./accounts-
|
|
6
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
2
|
+
import { D as escapeRegExp, M as normalizeE164, i as getChatChannelMeta, l as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER } from "./registry-BmY4gNy6.js";
|
|
3
|
+
import { c as resolveSlackAccount, l as resolveSlackReplyToMode, m as resolveDiscordAccount, n as normalizeWhatsAppTarget, o as resolveTelegramAccount } from "./normalize-D5KCCgTX.js";
|
|
4
|
+
import { t as resolveWhatsAppAccount } from "./accounts-6btx_LVr.js";
|
|
5
|
+
import { n as resolveSignalAccount } from "./accounts-Cg6z7lKw.js";
|
|
6
|
+
import { t as resolveIMessageAccount } from "./accounts-BOYxuJ9C.js";
|
|
7
7
|
|
|
8
8
|
//#region src/shared/string-normalization.ts
|
|
9
9
|
function normalizeStringEntries(list) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import { W as isPlainObject } from "./registry-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import "./paths-CyR9Pa1R.js";
|
|
2
|
+
import { W as isPlainObject } from "./registry-BmY4gNy6.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-B5g771Td.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
|
|
6
6
|
//#region src/agents/tool-loop-detection.ts
|
|
@@ -110,10 +110,10 @@ import "./npm-registry-spec-Dx1jSlNK.js";
|
|
|
110
110
|
import "./skill-scanner-BlmeBzA8.js";
|
|
111
111
|
import "./installs-Bfs-7l-S.js";
|
|
112
112
|
import "./channels-status-issues-DgVhydeW.js";
|
|
113
|
-
import "./register.subclis-
|
|
114
|
-
import "./command-registry-
|
|
113
|
+
import "./register.subclis-CMThmpuD.js";
|
|
114
|
+
import "./command-registry-D82LWaRr.js";
|
|
115
115
|
import "./program-context--isQKnLs.js";
|
|
116
|
-
import { r as installCompletion } from "./completion-cli-
|
|
116
|
+
import { r as installCompletion } from "./completion-cli-DPioCNYq.js";
|
|
117
117
|
import "./daemon-runtime-JIaTm7m1.js";
|
|
118
118
|
import { r as parseSemver } from "./runtime-guard-DcwOrtgH.js";
|
|
119
119
|
import "./systemd-BeKZd5oD.js";
|
|
@@ -134,8 +134,8 @@ import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from
|
|
|
134
134
|
import "./doctor-config-flow-CAskzyjf.js";
|
|
135
135
|
import "./systemd-linger-CgYzp_8H.js";
|
|
136
136
|
import "./health-format-DkjSgkDx.js";
|
|
137
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
138
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
137
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-DCNKc8Jv.js";
|
|
138
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-fRx0enfv.js";
|
|
139
139
|
import { spawn, spawnSync } from "node:child_process";
|
|
140
140
|
import os from "node:os";
|
|
141
141
|
import path from "node:path";
|
|
@@ -105,7 +105,7 @@ import "./stagger-B6VQyn1F.js";
|
|
|
105
105
|
import { c as resolveGatewayLaunchAgentLabel, d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName } from "./constants-CEbQvI8z.js";
|
|
106
106
|
import "./channel-selection-DuDSoVSC.js";
|
|
107
107
|
import { r as parseSemver } from "./runtime-guard-DlT3NecY.js";
|
|
108
|
-
import "./program-context-
|
|
108
|
+
import "./program-context-D9asDBqu.js";
|
|
109
109
|
import "./catalog-CgtgPHMj.js";
|
|
110
110
|
import "./skills-status-kQ1GipOi.js";
|
|
111
111
|
import { n as inheritOptionFromParent } from "./command-options-ByE5SNIE.js";
|
|
@@ -116,7 +116,7 @@ import "./npm-registry-spec-pAPjxG47.js";
|
|
|
116
116
|
import "./skill-scanner-D56xvwQF.js";
|
|
117
117
|
import "./installs-BNOz2SvJ.js";
|
|
118
118
|
import "./channels-status-issues-ClkP4ZUC.js";
|
|
119
|
-
import { r as installCompletion } from "./completion-cli-
|
|
119
|
+
import { r as installCompletion } from "./completion-cli-C1r90Nrk.js";
|
|
120
120
|
import "./daemon-runtime-CxEC09i-.js";
|
|
121
121
|
import "./systemd-B6S4ND7H.js";
|
|
122
122
|
import { t as resolveGatewayService } from "./service-Bw9h81em.js";
|
|
@@ -136,8 +136,8 @@ import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from
|
|
|
136
136
|
import "./doctor-config-flow-QDe1npDU.js";
|
|
137
137
|
import "./systemd-linger-C3Tnphf9.js";
|
|
138
138
|
import "./health-format-DQNr1Hum.js";
|
|
139
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
140
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
139
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-ca2X5yAy.js";
|
|
140
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-DhpniKWm.js";
|
|
141
141
|
import os from "node:os";
|
|
142
142
|
import path from "node:path";
|
|
143
143
|
import fs from "node:fs/promises";
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import "./paths-
|
|
1
|
+
import "./paths-CyR9Pa1R.js";
|
|
2
2
|
import { i as buildAgentMainSessionKey, l as normalizeAgentId, o as buildGroupHistoryKey, r as DEFAULT_MAIN_KEY } from "./session-key-CgcjHuX_.js";
|
|
3
|
-
import { A as isSelfChatMode, B as sleep, C as clamp, F as resolveJidToE164, H as toWhatsappJid, J as logVerbose, M as normalizeE164, Z as shouldLogVerbose, j as jidToE164, rt as getChildLogger } from "./registry-
|
|
4
|
-
import "./agent-scope-
|
|
5
|
-
import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import "./workspace-
|
|
7
|
-
import "./tokens-
|
|
8
|
-
import { C as resolveEnvelopeFormatOptions, D as normalizeMentionText, E as buildMentionRegexes, S as formatInboundEnvelope, T as shouldComputeCommandAuthorized, _ as parseActivationCommand, b as createInboundDebouncer, c as DEFAULT_GROUP_HISTORY_LIMIT, d as shouldAckReactionForWhatsApp, f as dispatchReplyWithBufferedBlockDispatcher, g as normalizeGroupActivation, h as getReplyFromConfig, l as buildHistoryContextFromEntries, m as createDedupeCache, n as computeBackoff, o as buildPairingReply, r as sleepWithAbort, s as resolveMentionGating, u as recordPendingHistoryEntryIfEnabled, v as formatDurationPrecise, w as hasControlCommand, x as resolveInboundDebounceMs, y as enqueueSystemEvent } from "./pi-embedded-
|
|
9
|
-
import "./normalize-
|
|
10
|
-
import { i as logWebSelfId, l as readWebSelfId, n as WA_WEB_AUTH_DIR, p as webAuthExists, r as getWebAuthAgeMs, s as pickWebChannel, t as resolveWhatsAppAccount } from "./accounts-
|
|
3
|
+
import { A as isSelfChatMode, B as sleep, C as clamp, F as resolveJidToE164, H as toWhatsappJid, J as logVerbose, M as normalizeE164, Z as shouldLogVerbose, j as jidToE164, rt as getChildLogger } from "./registry-BmY4gNy6.js";
|
|
4
|
+
import "./agent-scope-BLYwrEEA.js";
|
|
5
|
+
import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-B5g771Td.js";
|
|
6
|
+
import "./workspace-D9IzNnST.js";
|
|
7
|
+
import "./tokens-BRx7o_ZS.js";
|
|
8
|
+
import { C as resolveEnvelopeFormatOptions, D as normalizeMentionText, E as buildMentionRegexes, S as formatInboundEnvelope, T as shouldComputeCommandAuthorized, _ as parseActivationCommand, b as createInboundDebouncer, c as DEFAULT_GROUP_HISTORY_LIMIT, d as shouldAckReactionForWhatsApp, f as dispatchReplyWithBufferedBlockDispatcher, g as normalizeGroupActivation, h as getReplyFromConfig, l as buildHistoryContextFromEntries, m as createDedupeCache, n as computeBackoff, o as buildPairingReply, r as sleepWithAbort, s as resolveMentionGating, u as recordPendingHistoryEntryIfEnabled, v as formatDurationPrecise, w as hasControlCommand, x as resolveInboundDebounceMs, y as enqueueSystemEvent } from "./pi-embedded-D0HD9Cfc.js";
|
|
9
|
+
import "./normalize-D5KCCgTX.js";
|
|
10
|
+
import { i as logWebSelfId, l as readWebSelfId, n as WA_WEB_AUTH_DIR, p as webAuthExists, r as getWebAuthAgeMs, s as pickWebChannel, t as resolveWhatsAppAccount } from "./accounts-6btx_LVr.js";
|
|
11
11
|
import "./boolean-B8-BqKGQ.js";
|
|
12
|
-
import { t as formatCliCommand } from "./command-format
|
|
13
|
-
import "./bindings-
|
|
14
|
-
import "./send-
|
|
15
|
-
import "./plugins-
|
|
16
|
-
import "./send-
|
|
17
|
-
import "./deliver-
|
|
18
|
-
import "./diagnostic-
|
|
12
|
+
import { t as formatCliCommand } from "./command-format-D1Crrvey.js";
|
|
13
|
+
import "./bindings-DWtXcdc8.js";
|
|
14
|
+
import "./send-C1F31aYA.js";
|
|
15
|
+
import "./plugins-CJYXNO4s.js";
|
|
16
|
+
import "./send-D6tzL2Tv.js";
|
|
17
|
+
import "./deliver-miQ_b14_.js";
|
|
18
|
+
import "./diagnostic-CoT2YQH4.js";
|
|
19
19
|
import "./diagnostic-session-state-DmrztgHU.js";
|
|
20
|
-
import "./accounts-
|
|
21
|
-
import { G as formatLocationText, J as readChannelAllowFromStore, K as toLocationContext, X as upsertChannelPairingRequest } from "./send-
|
|
22
|
-
import "./fs-safe-
|
|
23
|
-
import "./model-auth-
|
|
24
|
-
import "./github-copilot-token-
|
|
20
|
+
import "./accounts-Cg6z7lKw.js";
|
|
21
|
+
import { G as formatLocationText, J as readChannelAllowFromStore, K as toLocationContext, X as upsertChannelPairingRequest } from "./send-BNdapfcg.js";
|
|
22
|
+
import "./fs-safe-B8-WkEXM.js";
|
|
23
|
+
import "./model-auth-Dm1uOof6.js";
|
|
24
|
+
import "./github-copilot-token-BQ98eazZ.js";
|
|
25
25
|
import "./pi-model-discovery-C-yOXpma.js";
|
|
26
|
-
import "./message-channel-
|
|
27
|
-
import { B as loadSessionStore, H as recordSessionMetaFromInbound, U as updateLastRoute, V as readSessionUpdatedAt, xt as resolveGroupSessionKey } from "./pi-embedded-helpers-
|
|
28
|
-
import { n as loadConfig } from "./config-
|
|
29
|
-
import "./manifest-registry-
|
|
30
|
-
import "./common-
|
|
31
|
-
import "./chrome-
|
|
32
|
-
import "./frontmatter-
|
|
33
|
-
import "./skills-
|
|
26
|
+
import "./message-channel-BDlvrUZF.js";
|
|
27
|
+
import { B as loadSessionStore, H as recordSessionMetaFromInbound, U as updateLastRoute, V as readSessionUpdatedAt, xt as resolveGroupSessionKey } from "./pi-embedded-helpers-f1wpGfIT.js";
|
|
28
|
+
import { n as loadConfig } from "./config-qfEsodS7.js";
|
|
29
|
+
import "./manifest-registry-Dovhiqzt.js";
|
|
30
|
+
import "./common-y9ALHdVZ.js";
|
|
31
|
+
import "./chrome-DBmAGMTR.js";
|
|
32
|
+
import "./frontmatter-BT4H5SZG.js";
|
|
33
|
+
import "./skills-Ci_2Mah4.js";
|
|
34
34
|
import "./redact-BBbIZgau.js";
|
|
35
35
|
import "./errors-3KjSwJLH.js";
|
|
36
36
|
import "./ssrf-B8OrDkCk.js";
|
|
37
|
-
import { r as saveMediaBuffer } from "./store-
|
|
38
|
-
import { h as resolveChannelGroupRequireMention, m as resolveChannelGroupPolicy } from "./thinking-
|
|
39
|
-
import "./accounts-
|
|
40
|
-
import { s as resolveStorePath } from "./paths-
|
|
41
|
-
import "./image-
|
|
42
|
-
import { c as resolveMessagePrefix, s as resolveIdentityNamePrefix, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
43
|
-
import "./manager-
|
|
44
|
-
import "./gemini-auth-
|
|
45
|
-
import "./sqlite-
|
|
46
|
-
import "./retry-
|
|
47
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-
|
|
48
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
49
|
-
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
50
|
-
import { a as loadWebMedia } from "./ir-
|
|
37
|
+
import { r as saveMediaBuffer } from "./store-Be0QxLPZ.js";
|
|
38
|
+
import { h as resolveChannelGroupRequireMention, m as resolveChannelGroupPolicy } from "./thinking-wiChP3LK.js";
|
|
39
|
+
import "./accounts-BOYxuJ9C.js";
|
|
40
|
+
import { s as resolveStorePath } from "./paths-gnW-md4M.js";
|
|
41
|
+
import "./image-Bnzq6Ut_.js";
|
|
42
|
+
import { c as resolveMessagePrefix, s as resolveIdentityNamePrefix, t as createReplyPrefixOptions } from "./reply-prefix-BaCBHwi7.js";
|
|
43
|
+
import "./manager-KxfmY55A.js";
|
|
44
|
+
import "./gemini-auth-B32PFjFy.js";
|
|
45
|
+
import "./sqlite-DJh2xLr6.js";
|
|
46
|
+
import "./retry-BxB_D6Pn.js";
|
|
47
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-TRVny4T1.js";
|
|
48
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DO9qAEKa.js";
|
|
49
|
+
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-tMzVEQD2.js";
|
|
50
|
+
import { a as loadWebMedia } from "./ir-CRTCIHIG.js";
|
|
51
51
|
import "./render-CDCvpfhh.js";
|
|
52
|
-
import "./commands-registry-
|
|
53
|
-
import "./skill-commands-
|
|
52
|
+
import "./commands-registry-B6FYKIxi.js";
|
|
53
|
+
import "./skill-commands-DVss6_wi.js";
|
|
54
54
|
import { t as finalizeInboundContext } from "./inbound-context-CzKsDFGL.js";
|
|
55
|
-
import { p as registerUnhandledRejectionHandler } from "./runner-
|
|
55
|
+
import { p as registerUnhandledRejectionHandler } from "./runner-BmfMAciA.js";
|
|
56
56
|
import "./fetch-DtI0mtzx.js";
|
|
57
|
-
import "./send-
|
|
58
|
-
import "./outbound-attachment-
|
|
59
|
-
import "./send-
|
|
60
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
61
|
-
import { n as recordChannelActivity } from "./channel-activity-
|
|
62
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
57
|
+
import "./send-DvBDdcQr.js";
|
|
58
|
+
import "./outbound-attachment-BChLBLPg.js";
|
|
59
|
+
import "./send-B6BrpfcR.js";
|
|
60
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-ClURVRZM.js";
|
|
61
|
+
import { n as recordChannelActivity } from "./channel-activity-LT3oBvO7.js";
|
|
62
|
+
import { t as convertMarkdownTables } from "./tables-xDr7OSBa.js";
|
|
63
63
|
import "./proxy-CBJ1upuz.js";
|
|
64
|
-
import "./replies-
|
|
65
|
-
import { r as setActiveWebListener } from "./active-listener-
|
|
66
|
-
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-
|
|
67
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
68
|
-
import { t as loginWeb } from "./login-
|
|
64
|
+
import "./replies-BJH3pQXJ.js";
|
|
65
|
+
import { r as setActiveWebListener } from "./active-listener-BhL5jMd9.js";
|
|
66
|
+
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-CthSjSDV.js";
|
|
67
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-BH5NTora.js";
|
|
68
|
+
import { t as loginWeb } from "./login-DGwFcNWz.js";
|
|
69
69
|
import { randomUUID } from "node:crypto";
|
|
70
70
|
import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
|
|
71
71
|
|
|
@@ -8,14 +8,14 @@ import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, t as createR
|
|
|
8
8
|
import "./github-copilot-token-ttqQRqMA.js";
|
|
9
9
|
import { r as formatCliCommand } from "./env-DgmT4mUn.js";
|
|
10
10
|
import "./tokens-B8d2DiXw.js";
|
|
11
|
-
import { C as shouldComputeCommandAuthorized, S as hasControlCommand, T as normalizeMentionText, _ as enqueueSystemEvent, a as resolveMentionGating, b as formatInboundEnvelope, c as recordPendingHistoryEntryIfEnabled, f as createDedupeCache, g as formatDurationPrecise, h as parseActivationCommand, i as buildPairingReply, l as shouldAckReactionForWhatsApp, m as normalizeGroupActivation, n as computeBackoff, o as DEFAULT_GROUP_HISTORY_LIMIT, p as getReplyFromConfig, r as sleepWithAbort, s as buildHistoryContextFromEntries, u as dispatchReplyWithBufferedBlockDispatcher, v as createInboundDebouncer, w as buildMentionRegexes, x as resolveEnvelopeFormatOptions, y as resolveInboundDebounceMs } from "./pi-embedded-
|
|
11
|
+
import { C as shouldComputeCommandAuthorized, S as hasControlCommand, T as normalizeMentionText, _ as enqueueSystemEvent, a as resolveMentionGating, b as formatInboundEnvelope, c as recordPendingHistoryEntryIfEnabled, f as createDedupeCache, g as formatDurationPrecise, h as parseActivationCommand, i as buildPairingReply, l as shouldAckReactionForWhatsApp, m as normalizeGroupActivation, n as computeBackoff, o as DEFAULT_GROUP_HISTORY_LIMIT, p as getReplyFromConfig, r as sleepWithAbort, s as buildHistoryContextFromEntries, u as dispatchReplyWithBufferedBlockDispatcher, v as createInboundDebouncer, w as buildMentionRegexes, x as resolveEnvelopeFormatOptions, y as resolveInboundDebounceMs } from "./pi-embedded-DPsT4Vb4.js";
|
|
12
12
|
import "./normalize-ShYYjzjU.js";
|
|
13
13
|
import { i as logWebSelfId, l as readWebSelfId, n as WA_WEB_AUTH_DIR, p as webAuthExists, r as getWebAuthAgeMs, s as pickWebChannel, t as resolveWhatsAppAccount } from "./accounts-DAComajo.js";
|
|
14
14
|
import "./bindings-Du1RGVFM.js";
|
|
15
15
|
import "./send-CWMOAb1p.js";
|
|
16
16
|
import "./plugins-C2vFjSxX.js";
|
|
17
17
|
import "./send-QkIrcXE6.js";
|
|
18
|
-
import "./deliver-
|
|
18
|
+
import "./deliver-DXKF_Nu0.js";
|
|
19
19
|
import "./diagnostic-BPqN_C5K.js";
|
|
20
20
|
import "./diagnostic-session-state-Bu3E4Enn.js";
|
|
21
21
|
import "./accounts-4VxR4Yrw.js";
|
|
@@ -23,11 +23,11 @@ import { G as formatLocationText, J as readChannelAllowFromStore, K as toLocatio
|
|
|
23
23
|
import "./fs-safe-GrTh3Ydq.js";
|
|
24
24
|
import "./pi-model-discovery-DaNAekda.js";
|
|
25
25
|
import "./message-channel-BxsLQyfw.js";
|
|
26
|
-
import { B as loadSessionStore, H as recordSessionMetaFromInbound, V as readSessionUpdatedAt, W as updateLastRoute, xt as resolveGroupSessionKey } from "./pi-embedded-helpers
|
|
26
|
+
import { B as loadSessionStore, H as recordSessionMetaFromInbound, V as readSessionUpdatedAt, W as updateLastRoute, xt as resolveGroupSessionKey } from "./pi-embedded-helpers--8pQ_5Ix.js";
|
|
27
27
|
import { n as loadConfig } from "./config-C-FsU8K2.js";
|
|
28
28
|
import "./manifest-registry-DmjapxrQ.js";
|
|
29
29
|
import "./common-BLbt_nyn.js";
|
|
30
|
-
import "./chrome-
|
|
30
|
+
import "./chrome-jiKls1lm.js";
|
|
31
31
|
import "./skills-D0U6i6zO.js";
|
|
32
32
|
import "./redact-DAKoy-tb.js";
|
|
33
33
|
import "./errors-BxR4oB-s.js";
|
|
@@ -36,7 +36,7 @@ import { r as saveMediaBuffer } from "./store-D4zsSWrO.js";
|
|
|
36
36
|
import { h as resolveChannelGroupRequireMention, m as resolveChannelGroupPolicy } from "./thinking-DNrVhgpB.js";
|
|
37
37
|
import "./accounts-Dh62JQhz.js";
|
|
38
38
|
import { s as resolveStorePath } from "./paths-COn9vdws.js";
|
|
39
|
-
import "./image-
|
|
39
|
+
import "./image-DChVqMFC.js";
|
|
40
40
|
import "./manager-8YM4OuaA.js";
|
|
41
41
|
import "./gemini-auth-DnVjaskb.js";
|
|
42
42
|
import "./sqlite-CNpRo6JS.js";
|
|
@@ -49,7 +49,7 @@ import "./render-B1VqYyvo.js";
|
|
|
49
49
|
import "./commands-registry-DstTsjwe.js";
|
|
50
50
|
import "./skill-commands-ByybLoXv.js";
|
|
51
51
|
import { t as finalizeInboundContext } from "./inbound-context-C5ohLdkB.js";
|
|
52
|
-
import { p as registerUnhandledRejectionHandler } from "./runner-
|
|
52
|
+
import { p as registerUnhandledRejectionHandler } from "./runner-CRUcM4a1.js";
|
|
53
53
|
import "./fetch-BMa0enEg.js";
|
|
54
54
|
import "./send-DXvthxtM.js";
|
|
55
55
|
import "./outbound-attachment-BYcoEf4w.js";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import "./registry-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import "./normalize-
|
|
7
|
-
import "./accounts-
|
|
1
|
+
import "./paths-CyR9Pa1R.js";
|
|
2
|
+
import "./registry-BmY4gNy6.js";
|
|
3
|
+
import "./agent-scope-BLYwrEEA.js";
|
|
4
|
+
import "./subsystem-B5g771Td.js";
|
|
5
|
+
import "./workspace-D9IzNnST.js";
|
|
6
|
+
import "./normalize-D5KCCgTX.js";
|
|
7
|
+
import "./accounts-6btx_LVr.js";
|
|
8
8
|
import "./boolean-B8-BqKGQ.js";
|
|
9
|
-
import "./command-format
|
|
10
|
-
import "./bindings-
|
|
11
|
-
import "./plugins-
|
|
12
|
-
import "./fs-safe-
|
|
13
|
-
import "./model-auth-
|
|
14
|
-
import "./github-copilot-token-
|
|
15
|
-
import "./message-channel-
|
|
16
|
-
import "./config-
|
|
17
|
-
import "./manifest-registry-
|
|
18
|
-
import { i as jsonResult, s as readReactionParams, t as createActionGate, u as readStringParam } from "./common-
|
|
9
|
+
import "./command-format-D1Crrvey.js";
|
|
10
|
+
import "./bindings-DWtXcdc8.js";
|
|
11
|
+
import "./plugins-CJYXNO4s.js";
|
|
12
|
+
import "./fs-safe-B8-WkEXM.js";
|
|
13
|
+
import "./model-auth-Dm1uOof6.js";
|
|
14
|
+
import "./github-copilot-token-BQ98eazZ.js";
|
|
15
|
+
import "./message-channel-BDlvrUZF.js";
|
|
16
|
+
import "./config-qfEsodS7.js";
|
|
17
|
+
import "./manifest-registry-Dovhiqzt.js";
|
|
18
|
+
import { i as jsonResult, s as readReactionParams, t as createActionGate, u as readStringParam } from "./common-y9ALHdVZ.js";
|
|
19
19
|
import "./ssrf-B8OrDkCk.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./markdown-tables-
|
|
22
|
-
import "./local-roots-
|
|
23
|
-
import "./ir-
|
|
20
|
+
import "./chunk-TRVny4T1.js";
|
|
21
|
+
import "./markdown-tables-DO9qAEKa.js";
|
|
22
|
+
import "./local-roots-tMzVEQD2.js";
|
|
23
|
+
import "./ir-CRTCIHIG.js";
|
|
24
24
|
import "./render-CDCvpfhh.js";
|
|
25
|
-
import "./tables-
|
|
26
|
-
import { r as sendReactionWhatsApp } from "./outbound-
|
|
25
|
+
import "./tables-xDr7OSBa.js";
|
|
26
|
+
import { r as sendReactionWhatsApp } from "./outbound-CthSjSDV.js";
|
|
27
27
|
|
|
28
28
|
//#region src/agents/tools/whatsapp-actions.ts
|
|
29
29
|
async function handleWhatsAppAction(params, cfg) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { u as resolveRequiredHomeDir } from "./paths-
|
|
1
|
+
import { u as resolveRequiredHomeDir } from "./paths-CyR9Pa1R.js";
|
|
2
2
|
import { _ as isSubagentSessionKey, g as isCronSessionKey } from "./session-key-CgcjHuX_.js";
|
|
3
|
-
import { $ as warn, G as danger, I as resolveUserPath, K as info, N as pathExists, Y as logVerboseConsole, Z as shouldLogVerbose, it as getLogger } from "./registry-
|
|
4
|
-
import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
3
|
+
import { $ as warn, G as danger, I as resolveUserPath, K as info, N as pathExists, Y as logVerboseConsole, Z as shouldLogVerbose, it as getLogger } from "./registry-BmY4gNy6.js";
|
|
4
|
+
import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-B5g771Td.js";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import fs$1 from "node:fs";
|
|
9
9
|
import { execFile, spawn } from "node:child_process";
|
|
10
10
|
import { promisify } from "node:util";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
@@ -289,7 +289,7 @@ async function readPackageName(dir) {
|
|
|
289
289
|
}
|
|
290
290
|
function readPackageNameSync(dir) {
|
|
291
291
|
try {
|
|
292
|
-
const raw =
|
|
292
|
+
const raw = fs$1.readFileSync(path.join(dir, "package.json"), "utf-8");
|
|
293
293
|
const parsed = JSON.parse(raw);
|
|
294
294
|
return typeof parsed.name === "string" ? parsed.name : null;
|
|
295
295
|
} catch {
|
|
@@ -323,7 +323,7 @@ function candidateDirsFromArgv1(argv1) {
|
|
|
323
323
|
const normalized = path.resolve(argv1);
|
|
324
324
|
const candidates = [path.dirname(normalized)];
|
|
325
325
|
try {
|
|
326
|
-
const resolved =
|
|
326
|
+
const resolved = fs$1.realpathSync(normalized);
|
|
327
327
|
if (resolved !== normalized) candidates.push(path.dirname(resolved));
|
|
328
328
|
} catch {}
|
|
329
329
|
const parts = normalized.split(path.sep);
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as r}from"./Bqq0fCUn.js";var e=4;function a(o){return r(o,e)}export{a as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as a,C as n}from"./Dg6LpIYP.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{d as at,b as i,f as v,s as b,a as U,t as ot}from"./B2A7gHtL.js";import{p as st,u as z,d as l,g as r,q as V,t as g,c as ct,s as A,h as x,f as d,r as _,i as it,n as lt,j as dt}from"./qR_TM3YX.js";import{i as u}from"./DpBBTLWw.js";import{g as ut,s as j,b as vt}from"./BhtVncI_.js";import{g as ft}from"./Be_uRYmX.js";var pt=v("<span></span>"),gt=v('<span class="text-text-muted"> <!>)</span>'),xt=v('<span class="text-text-muted"> </span>'),_t=v('<span class="text-text-muted font-mono text-xs"> </span>'),mt=v('<span class="text-accent-green text-xs"> </span>'),bt=v('<!> <!> <!> <button class="ml-2 p-1 rounded hover:bg-bg-hover text-text-muted hover:text-accent-red transition-colors" title="Disconnect"><svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>',1),ht=v('<span class="text-red-400 truncate max-w-48"> </span>'),yt=v(`<button class="ml-2 px-2 py-1 text-xs rounded border border-border-default hover:border-accent-cyan
|
|
2
|
-
text-text-muted hover:text-accent-cyan transition-colors" title="Retry connection">Retry</button>`),$t=v('<div><div class="relative flex items-center"><span></span> <!></div> <span> </span> <!> <!> <!> <!></div>');function Mt(F,G){st(G,!0);const e=ut(),h=ft(),q={disconnected:{color:"bg-red-500",pulse:!1,label:"Disconnected"},connecting:{color:"bg-amber-500",pulse:!0,label:"Connecting..."},authenticating:{color:"bg-amber-500",pulse:!0,label:"Authenticating..."},connected:{color:"bg-accent-green",pulse:!1,label:"Connected"},error:{color:"bg-red-500",pulse:!0,label:"Error"}};let k=it(()=>q[e.state.status]??q.disconnected),o=A(0),m=A(0),f=null,I=A(""),D=A(0);z(()=>{const t=e.state.status;t==="connected"?(l(o,0),l(m,0),l(D,Date.now(),!0),f&&(clearInterval(f),f=null),r(o)>0&&h.success("Reconnected","Connection restored successfully")):t==="connecting"&&r(o)>0?H(5):t==="error"?(V(o),e.state.error&&h.error("Connection Error",e.state.error)):t==="disconnected"&&r(o)===0&&(h.warning("Disconnected","Connection lost, attempting to reconnect..."),l(o,1))}),z(()=>{if(e.state.status==="connected"&&r(D)>0){const t=setInterval(()=>{const n=Date.now()-r(D);l(I,J(n),!0)},1e3);return()=>clearInterval(t)}});function H(t){l(m,t,!0),f&&clearInterval(f),f=setInterval(()=>{V(m,-1),r(m)<=0&&(clearInterval(f),f=null)},1e3)}function J(t){const n=Math.floor(t/1e3);if(n<60)return`${n}s`;const a=Math.floor(n/60);if(a<60)return`${a}m`;const p=Math.floor(a/60);return p<24?`${p}h ${a%60}m`:`${Math.floor(p/24)}d ${p%24}h`}function K(){e.url&&e.token&&(V(o),e.connect(e.url,e.token),h.info("Retrying","Attempting to reconnect..."))}function N(){e.disconnect(),l(o,0),l(m,0),l(I,""),l(D,0),h.info("Disconnected","Manually disconnected from gateway")}var M=$t(),E=x(M),B=x(E),O=d(B,2);{var P=t=>{var n=pt();g(()=>j(n,1,`absolute block w-2 h-2 rounded-full ${r(k).color??""} animate-ping opacity-75`)),i(t,n)};u(O,t=>{r(k).pulse&&t(P)})}_(E);var R=d(E,2),Q=x(R,!0);_(R);var L=d(R,2);{var W=t=>{var n=gt(),a=x(n),p=d(a);{var y=$=>{var w=ot();g(()=>b(w,`, retry in ${r(m)??""}s`)),i($,w)};u(p,$=>{r(m)>0&&$(y)})}lt(),_(n),g(()=>b(a,`(#${r(o)??""}`)),i(t,n)};u(L,t=>{r(o)>0&&e.state.status!=="connected"&&t(W)})}var S=d(L,2);{var X=t=>{var n=bt(),a=dt(n);{var p=s=>{var c=xt(),C=x(c);_(c),g(()=>b(C,`v${e.state.serverVersion??""}`)),i(s,c)};u(a,s=>{e.state.serverVersion&&s(p)})}var y=d(a,2);{var $=s=>{var c=_t(),C=x(c,!0);_(c),g(rt=>b(C,rt),[()=>e.state.connId.substring(0,8)]),i(s,c)};u(y,s=>{e.state.connId&&s($)})}var w=d(y,2);{var et=s=>{var c=mt(),C=x(c);_(c),g(()=>b(C,`↑${r(I)??""}`)),i(s,c)};u(w,s=>{r(I)&&s(et)})}var nt=d(w,2);U("click",nt,N),i(t,n)};u(S,t=>{e.state.status==="connected"&&t(X)})}var T=d(S,2);{var Y=t=>{var n=ht(),a=x(n,!0);_(n),g(()=>{vt(n,"title",e.state.error),b(a,e.state.error)}),i(t,n)};u(T,t=>{e.state.status==="error"&&e.state.error&&t(Y)})}var Z=d(T,2);{var tt=t=>{var n=yt();U("click",n,K),i(t,n)};u(Z,t=>{(e.state.status==="error"||e.state.status==="disconnected")&&r(o)>0&&t(tt)})}_(M),g(()=>{j(M,1,`flex items-center gap-2 px-3 py-1.5 rounded-lg glass text-xs transition-all duration-300
|
|
3
|
-
${e.state.status==="connected"?"gradient-bg glow-green":""}`),j(B,1,`block w-2 h-2 rounded-full ${r(k).color??""} transition-colors duration-300
|
|
4
|
-
${e.state.status==="connected"?"glow-green":""}`),j(R,1,`text-text-secondary transition-colors duration-300
|
|
5
|
-
${e.state.status==="connected"?"text-accent-green":""}`),b(Q,r(k).label)}),i(F,M),ct()}at(["click"]);export{Mt as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/CB9985Nn.js";export{o as load_css,r as start};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as m}from"../chunks/BocS-uwo.js";export{m as component};
|