@noxsoft/anima 2.0.2 → 2.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-Cc5E4IDO.js → accounts-Bth3PpPD.js} +4 -4
- package/dist/{accounts-CcVrwKqv.js → accounts-CP1IAWeM.js} +1 -1
- package/dist/{acp-cli-DvphOKuh.js → acp-cli-0JY_DUDb.js} +5 -5
- package/dist/{acp-cli-p28pQ65a.js → acp-cli-BUGHeckb.js} +17 -17
- package/dist/{agent-Cj7uDJaZ.js → agent-DwTJ59DW.js} +8 -8
- package/dist/{agent-Cuj9-2sT.js → agent-eLix7YLB.js} +14 -14
- package/dist/{agent-events-BEBQsyE5.js → agent-events-COLRhRBH.js} +2 -2
- package/dist/{agent-scope-V1bi9OYL.js → agent-scope-CPphqq-U.js} +3 -3
- package/dist/{agent-scope-BVf4aSwY.js → agent-scope-CcE0DhlL.js} +3 -3
- package/dist/{agents-BUWqn_Ui.js → agents-D57WX9dn.js} +6 -6
- package/dist/{agents.config-d6H0_3oj.js → agents.config-DWZdxlQw.js} +1 -1
- package/dist/{argv-DqUHKf0o.js → argv-BMZMiW7v.js} +1 -1
- package/dist/{audit-VWjIdwC7.js → audit-BvPmfYxY.js} +16 -16
- package/dist/{audit-C6okOOSh.js → audit-CmL_VKW9.js} +7 -7
- package/dist/{auth-91o2YM96.js → auth-BNZsOHGF.js} +2 -2
- package/dist/{auth-choice-p3SeHPj2.js → auth-choice-8JX4OqDS.js} +6 -6
- package/dist/{auth-choice-CAmACV13.js → auth-choice-DbU0S_0Q.js} +8 -8
- package/dist/{auth-health-DCicUKYR.js → auth-health-CP4Id2rW.js} +1 -1
- package/dist/{auth-health-B_jXrWe6.js → auth-health-CeDOBbt0.js} +1 -1
- package/dist/{auth-profiles-CCDD56dU.js → auth-profiles-BVZBTuls.js} +5 -5
- package/dist/{auth-profiles-DxI8L7bs.js → auth-profiles-CC3TFfvS.js} +1 -1
- package/dist/{banner-Cohn04J6.js → banner-DDcACdvK.js} +6 -6
- package/dist/{browser-cli-WjsVH741.js → browser-cli-BZ38kv8Y.js} +65 -65
- package/dist/{browser-cli-DANzjztE.js → browser-cli-CYOmCXxE.js} +50 -50
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +15 -15
- package/dist/bundled/bootstrap-extra-files/handler.js +3 -3
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +4 -4
- package/dist/{call-Ct7EGP_L.js → call-BYDpTVCZ.js} +5 -5
- package/dist/{call-BAHvlu2G.js → call-CTMQygkz.js} +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{catalog-BNsf97BM.js → catalog-CqKiUgu6.js} +2 -2
- package/dist/{channel-options-Dx9nPlX8.js → channel-options-CO21Gl8p.js} +5 -5
- package/dist/{channel-options-ZdvXrTGs.js → channel-options-M44Z9-3q.js} +1 -1
- package/dist/{channel-selection-CujyiWGM.js → channel-selection-CqcX7Ocw.js} +2 -2
- package/dist/{channel-web-CC0hkgkR.js → channel-web-Q-STsf5N.js} +18 -18
- package/dist/{channels-cli-DUPG8WDv.js → channels-cli-SPO9rJnF.js} +63 -63
- package/dist/{channels-cli-D7lNBpIb.js → channels-cli-zIOBobe6.js} +31 -31
- package/dist/{channels-status-issues-DjO9MHIG.js → channels-status-issues-DwHRoeWL.js} +1 -1
- package/dist/{chrome-Bi6iZ5sG.js → chrome-DlcCwfo_.js} +3 -3
- package/dist/{chrome-DScZx4Lk.js → chrome-U3DRzjJD.js} +5 -5
- package/dist/{chrome-DNSv7Cpy.js → chrome-mUDT-mA5.js} +3 -3
- package/dist/{clack-prompter-B1YxZdRy.js → clack-prompter-Ct2BYIXW.js} +4 -4
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-AYZaZSSx.js +101 -0
- package/dist/{cli-ClMrIh6l.js → cli-XuLBXSur.js} +25 -25
- package/dist/{cli-session-Dd8DKb5a.js → cli-session-C70q07GT.js} +6 -6
- package/dist/{cli-session-BkPTd9Pk.js → cli-session-CqlE2JFo.js} +17 -17
- package/dist/{client-CC94YZrT.js → client-LRKFjo4A.js} +3 -3
- package/dist/{clipboard-B2fBy8tG.js → clipboard-SCV-0V39.js} +1 -1
- package/dist/{command-format-SkzzRqR1.js → command-format-CP1YTNCl.js} +4 -4
- package/dist/{command-format-DELazozB.js → command-format-CVL4K5cj.js} +4 -4
- package/dist/{command-format-Clp46jkj.js → command-format-DAaqLG8J.js} +4 -4
- package/dist/{command-registry-DZ4hkmA0.js → command-registry-CSbw6FZC.js} +12 -12
- package/dist/{commands-DtYZJSPn.js → commands-D5PGoVW4.js} +166 -8
- package/dist/{commands-Dujk1JmY.js → commands-D7CbOdcS.js} +165 -7
- package/dist/{commands-registry-DYfRSVF3.js → commands-registry-q13H7ng5.js} +2 -2
- package/dist/{commands-registry-Bd0xbvwG.js → commands-registry-sLFieXCB.js} +1 -1
- package/dist/{common-zW9Y2P1B.js → common-CX5458fH.js} +2 -2
- package/dist/{completion-cli-tSe7Pmqm.js → completion-cli-BFdiNmVD.js} +13 -13
- package/dist/{completion-cli-vn4IScs5.js → completion-cli-_SwCoFq6.js} +11 -11
- package/dist/{config-C8rUDJXY.js → config-BeuAT94o.js} +1 -1
- package/dist/{config-CLZ_XGVw.js → config-C96685Kz.js} +6 -6
- package/dist/{config-SY8M0kM_.js → config-DaqbUdkI.js} +6 -6
- package/dist/{config-cli-CjWEC81L.js → config-cli-DhdAhW1h.js} +6 -6
- package/dist/{config-cli-1V7D2Wsw.js → config-cli-NqEQjCzV.js} +14 -14
- package/dist/{config-guard-BvxuzHpo.js → config-guard-B1rmR88x.js} +4 -4
- package/dist/{config-guard-BW2gpKj_.js → config-guard-BCUt7Re8.js} +23 -23
- package/dist/{configure-DRM-7zFf.js → configure-B2vlJbd2.js} +22 -22
- package/dist/{configure-Bf0oupCE.js → configure-FENKo5hf.js} +9 -9
- package/dist/{context-D5iEFzv9.js → context-ChaAWbwZ.js} +2 -2
- package/dist/{control-service-DKotCWCg.js → control-service-DXYImShH.js} +4 -4
- package/dist/{control-service-C8m8F9pr.js → control-service-X_1FRl7x.js} +5 -5
- package/dist/{cron-cli-bxm5lrrO.js → cron-cli-B6jMeNqC.js} +18 -18
- package/dist/{cron-cli-DB_FLYHD.js → cron-cli-ByPSA5ZE.js} +6 -6
- package/dist/{daemon-cli-1LsOnICv.js → daemon-cli-Bf0Q00vC.js} +25 -25
- package/dist/{daemon-cli-CC2NrJ7a.js → daemon-cli-CKOoYhs-.js} +16 -16
- package/dist/daemon-cli.js +16 -16
- package/dist/{daemon-runtime-BXZhtBL9.js → daemon-runtime-C9KTe-Gn.js} +3 -3
- package/dist/{daemon-runtime-DW4USC7r.js → daemon-runtime-cglglYsH.js} +2 -2
- package/dist/{deliver-xrmk7xjh.js → deliver-BBggsviM.js} +7 -7
- package/dist/{deliver-LiY5oL52.js → deliver-DiIOZFml.js} +2 -2
- package/dist/{deliver-B4HuPwJA.js → deliver-DujkDzqg.js} +6 -6
- package/dist/{delivery-queue-TnQykYsg.js → delivery-queue-BJQK3oh5.js} +1 -1
- package/dist/{deps-CMMOiOsF.js → deps-Bim542L5.js} +1 -1
- package/dist/{devices-cli-z6ecoFe9.js → devices-cli-BbUrME_U.js} +14 -14
- package/dist/{devices-cli-Be5he2SA.js → devices-cli-qvEFBnyH.js} +3 -3
- package/dist/{diagnostics-Dj75aEHN.js → diagnostics-BCxobJaf.js} +1 -1
- package/dist/{directory-cli-CEy-0nxj.js → directory-cli-BjnpktnO.js} +4 -4
- package/dist/{directory-cli-DpzKcigr.js → directory-cli-VreWAdNS.js} +16 -16
- package/dist/{dispatcher-10Shiuz3.js → dispatcher-CoqsaA3f.js} +1 -1
- package/dist/{dispatcher-3Jae6AiW.js → dispatcher-DbDPyVIX.js} +2 -2
- package/dist/{dns-cli-Bat1pkc-.js → dns-cli-B-lWrEam.js} +16 -16
- package/dist/{dns-cli-NohNyEo0.js → dns-cli-CRKIrBD6.js} +6 -6
- package/dist/{dock-DbxBBv30.js → dock-Dmxj3en_.js} +1 -1
- package/dist/{dock-cPBY4qGl.js → dock-jYICmNcI.js} +3 -3
- package/dist/{docs-cli-BWp6p-Tq.js → docs-cli-B02Wm6DH.js} +9 -9
- package/dist/{docs-cli-x22FnZfL.js → docs-cli-Bn-mDvE1.js} +2 -2
- package/dist/{doctor-Pp2HVnjM.js → doctor-CeIWEOAK.js} +20 -20
- package/dist/{doctor-BrT5m_on.js → doctor-DdOw46pE.js} +39 -39
- package/dist/{doctor-completion-DNTimX9o.js → doctor-completion-CBANZ9T9.js} +2 -2
- package/dist/{doctor-completion-ylN9QAJ6.js → doctor-completion-aDHxGApN.js} +3 -3
- package/dist/{doctor-config-flow-Dq50iE1R.js → doctor-config-flow-Bb8TQwYh.js} +8 -8
- package/dist/{doctor-config-flow-D1w3700T.js → doctor-config-flow-Dxjx2igu.js} +4 -4
- package/dist/entry.js +5 -5
- package/dist/{env-0lJfCPsw.js → env-v6411I8h.js} +1 -1
- package/dist/{exec-approvals-cli-J2cZs10o.js → exec-approvals-cli-5-h9moQI.js} +22 -22
- package/dist/{exec-approvals-cli-DXfV6G8H.js → exec-approvals-cli-Cne9mMrK.js} +8 -8
- package/dist/{exec-Bv3pyjeM.js → exec-mhSykkaa.js} +1 -1
- package/dist/{exec-BenD3A5l.js → exec-tTxVr8zb.js} +1 -1
- package/dist/extensionAPI.js +3 -3
- package/dist/{gateway-cli-DOAbA0pc.js → gateway-cli-BZpKEMGi.js} +108 -108
- package/dist/{gateway-cli-QpWtBhQy.js → gateway-cli-DboOVUi8.js} +62 -62
- package/dist/{gateway-rpc-DJKBil9s.js → gateway-rpc-C3eniXwh.js} +1 -1
- package/dist/{gateway-rpc-DVterpLP.js → gateway-rpc-QOe014D_.js} +3 -3
- package/dist/{github-copilot-auth-C9E0IROs.js → github-copilot-auth-AdaPw_fF.js} +3 -3
- package/dist/{github-copilot-auth-4IUFp669.js → github-copilot-auth-C2cJr55I.js} +2 -2
- package/dist/{gmail-setup-utils-D3Yqgor7.js → gmail-setup-utils-Bn8x7djJ.js} +4 -4
- package/dist/{health-Cn2OoVWZ.js → health-CdHDOLo6.js} +16 -16
- package/dist/{health-BeZnqp6m.js → health-WvhhwAnn.js} +8 -8
- package/dist/{health-format-JEChH08S.js → health-format-DteBvzWP.js} +2 -2
- package/dist/{heartbeat-visibility-CQ9QimI7.js → heartbeat-visibility-B4oqf1qY.js} +1 -1
- package/dist/{heartbeat-visibility-BL3WAchI.js → heartbeat-visibility-ClqnPSqo.js} +1 -1
- package/dist/{help-format-Dl4bsrLI.js → help-format-C4eJQd8a.js} +1 -1
- package/dist/{hooks-cli-D99hXt7K.js → hooks-cli-DTMS4Ly9.js} +30 -30
- package/dist/{hooks-cli-DMB8RiEO.js → hooks-cli-DfR8cmrL.js} +58 -58
- package/dist/{hooks-status-C_9sE0ox.js → hooks-status-LVJDILL8.js} +3 -3
- package/dist/{image-ops-omlvdfah.js → image-ops-B_AYV3tp.js} +1 -1
- package/dist/index.js +82 -82
- package/dist/{installs-C2iMRBVz.js → installs-DCTtAJP8.js} +4 -4
- package/dist/{ipv4-wWNs8IH_.js → ipv4-CoPxliya.js} +13 -13
- package/dist/{ipv4-Bf7NS3QU.js → ipv4-loTbB6OD.js} +7 -7
- package/dist/{lanes-CNxj3tit.js → lanes-BvSnHq2h.js} +2 -2
- package/dist/{lifecycle-core-By83PVAK.js → lifecycle-core-BZo7U2jW.js} +4 -4
- package/dist/{lifecycle-core-B_7XRcvF.js → lifecycle-core-Cu_h9gos.js} +8 -8
- package/dist/{links-DPGe0OHw.js → links-D2tt2ouh.js} +1 -1
- package/dist/llm-slug-generator.js +4 -4
- package/dist/{logging-mcb66J0p.js → logging-BuRtGUH1.js} +2 -2
- package/dist/{login-BDfnbjnZ.js → login-CnNpZKOD.js} +4 -4
- package/dist/{login-BqH1itcg.js → login-D4n2DJtf.js} +4 -4
- package/dist/{login-BDCg6D0N.js → login-Fhh4uWmf.js} +6 -6
- package/dist/{login-qr-D8ECtb72.js → login-qr-CaB_Oi7G.js} +4 -4
- package/dist/{login-qr-RnR7e4Bw.js → login-qr-Cc2QmLhD.js} +11 -11
- package/dist/{login-qr-CyOw3R4r.js → login-qr-D3xv0VnI.js} +7 -7
- package/dist/{logs-cli-DpEMg_Gq.js → logs-cli-CFX-tr6f.js} +8 -8
- package/dist/{logs-cli--j89L74J.js → logs-cli-NXQfed5q.js} +19 -19
- package/dist/{manager-Cqc1CeH7.js → manager-BDPgBQSH.js} +8 -8
- package/dist/{manager-DUyQPFvj.js → manager-D_engjHC.js} +6 -6
- package/dist/{manager-B4OyvcxT.js → manager-iFc0bAWS.js} +1 -1
- package/dist/{manifest-registry-CW1zCyRF.js → manifest-registry-kHX_MFa1.js} +1 -1
- package/dist/{markdown-tables-BT1X6jqH.js → markdown-tables-Bhes7rr4.js} +2 -2
- package/dist/{markdown-tables-DHgOK2vI.js → markdown-tables-DJV7eAJZ.js} +2 -2
- package/dist/{media-THyainiE.js → media-Bu2L8c_7.js} +1 -1
- package/dist/{memory-cli-BKocCWXM.js → memory-cli-CvrdGRvA.js} +4 -4
- package/dist/{memory-cli-Jmma-xI_.js → memory-cli-D6v61Mts.js} +13 -13
- package/dist/{message-channel-dSTVVCyX.js → message-channel-D_jIO87f.js} +1 -1
- package/dist/{model-selection-YcSr9CgC.js → model-selection-Cqt6aJ0G.js} +6 -6
- package/dist/{models-1vUQBVfw.js → models-D11W7O93.js} +10 -10
- package/dist/{models-cli-DECrM8oA.js → models-cli-BfBH9dWH.js} +31 -31
- package/dist/{models-cli-BK3BwUhL.js → models-cli-ClFZ55qZ.js} +61 -61
- package/dist/{node-cli-fO7Y132S.js → node-cli-Cgn2mwSW.js} +33 -33
- package/dist/{node-cli-cLHUNpPD.js → node-cli-kxhgdSNi.js} +15 -15
- package/dist/{node-service-DUnan4uK.js → node-service-BL8qVG1X.js} +1 -1
- package/dist/{nodes-cli-BCq35E6N.js → nodes-cli-De6Ta7GH.js} +19 -19
- package/dist/{nodes-cli-vD7MwAKP.js → nodes-cli-deMLu7ch.js} +7 -7
- package/dist/{nodes-screen-DZeD8hE5.js → nodes-screen-BST4qOFR.js} +2 -2
- package/dist/{nodes-screen-1YiLkqr5.js → nodes-screen-qs3jRBPk.js} +2 -2
- package/dist/{note-Bi8Wb8DV.js → note-BtE8fGoO.js} +2 -2
- package/dist/{npm-registry-spec-B-XIShkB.js → npm-registry-spec-DvJxezSJ.js} +1 -1
- package/dist/{onboard-Ds6w_sWo.js → onboard-BGv6xY1s.js} +10 -10
- package/dist/{onboard-SAVx3bp4.js → onboard-DPEqxVx4.js} +19 -19
- package/dist/{onboard-channels-D7NbA55V.js → onboard-channels-BsTwWmEt.js} +3 -3
- package/dist/{onboard-channels-Cg_EkBa4.js → onboard-channels-DEfpenNa.js} +9 -9
- package/dist/{onboard-helpers-DO_hgZb9.js → onboard-helpers-CwcaOee8.js} +3 -3
- package/dist/{onboard-helpers-_XgJgeqh.js → onboard-helpers-Cz42ASwv.js} +10 -10
- package/dist/{onboarding-3hLmDd0r.js → onboarding-BxYOAHWD.js} +24 -24
- package/dist/{onboarding-B4LKLsbU.js → onboarding-DvitiaRS.js} +12 -12
- package/dist/{outbound-BgA9hNlP.js → outbound-Csw4yAYo.js} +6 -6
- package/dist/{outbound-DOGe6qb2.js → outbound-L1IT5jN_.js} +2 -2
- package/dist/{outbound-CjdvVhUI.js → outbound-bs_VK51X.js} +5 -5
- package/dist/{outbound-send-deps-Du5aBpd7.js → outbound-send-deps-CmzQCbSX.js} +1 -1
- package/dist/{pairing-cli-BH1KQtNV.js → pairing-cli-BmPkji_u.js} +18 -18
- package/dist/{pairing-cli-2vnyg_Nd.js → pairing-cli-CSRakAu-.js} +8 -8
- package/dist/{pairing-store-DJz_9Gv0.js → pairing-store-BsXzUDPv.js} +4 -4
- package/dist/{pairing-store-DmOzxcuk.js → pairing-store-uUh4DCdc.js} +1 -1
- package/dist/{path-env-C0zQSjw8.js → path-env-DSSMHu5A.js} +1 -1
- package/dist/{paths-C6VCWKo3.js → paths-BMuHNFxg.js} +3 -3
- package/dist/{paths-hcX1Gqg5.js → paths-BXQQzXGQ.js} +1 -1
- package/dist/{paths-BTc4nk-6.js → paths-Ba-yiqjy.js} +2 -2
- package/dist/{paths-BgUi2Z2G.js → paths-Buw_geoe.js} +1 -1
- package/dist/{paths-CCxa0o9c.js → paths-C1R4gjRm.js} +3 -3
- package/dist/{pi-auth-json-B68R7q7_.js → pi-auth-json-B1M8W1pO.js} +7 -7
- package/dist/{pi-auth-json-CR0jXAgq.js → pi-auth-json-C2miwJYp.js} +1 -1
- package/dist/{pi-auth-json-ZYzi3nxs.js → pi-auth-json-I3iYPRAb.js} +5 -5
- package/dist/{pi-model-discovery-Cxs4pvC2.js → pi-model-discovery-eIc-PHaM.js} +1 -1
- package/dist/{pi-tools.policy-D81U5xy0.js → pi-tools.policy-Csmla32P.js} +4 -4
- package/dist/{pi-tools.policy-DSHkkb5b.js → pi-tools.policy-DhmYCpdW.js} +2 -2
- package/dist/{plugin-auto-enable-CxF4bpDN.js → plugin-auto-enable-DVD5Kls3.js} +2 -2
- package/dist/{plugin-auto-enable-jNaAeyEh.js → plugin-auto-enable-d9eDmGOX.js} +5 -5
- package/dist/{plugin-registry-C7XWotZG.js → plugin-registry-DW81arxW.js} +3 -3
- package/dist/{plugin-registry-DcUCbGax.js → plugin-registry-NbbyJq_D.js} +1 -1
- package/dist/plugin-sdk/cli/cli-name.d.ts +1 -1
- package/dist/plugin-sdk/config/paths.d.ts +2 -2
- package/dist/plugin-sdk/index.js +7 -7
- package/dist/{plugins-B362e77G.js → plugins-DdzdfeTc.js} +1 -1
- package/dist/{plugins-CmSUIUNi.js → plugins-DhcGAPDB.js} +1 -1
- package/dist/{plugins-cli-QSIsMUG7.js → plugins-cli-Cs_jfROZ.js} +57 -57
- package/dist/{plugins-cli-BsCEnoQ7.js → plugins-cli-D0jU5_VE.js} +28 -28
- package/dist/{polls-CItfB1H8.js → polls-D6eCdatA.js} +6 -6
- package/dist/{ports-CqLSlU6Z.js → ports-B3Vuo92o.js} +1 -1
- package/dist/{ports-BVLMN1Sr.js → ports-C8bKN8s0.js} +2 -2
- package/dist/{ports-D_NHthOz.js → ports-Co1kd5qX.js} +1 -1
- package/dist/{ports-D94CwCrv.js → ports-DHiKnPRX.js} +3 -3
- package/dist/{program-DkJHjI0R.js → program-Db2-b8Np.js} +44 -44
- package/dist/{program-context-DnyGM2SC.js → program-context-DR1cx29i.js} +41 -41
- package/dist/{progress-Bek_GyWS.js → progress-oiAjiiNi.js} +1 -1
- package/dist/{prompt-style-lu0clOOE.js → prompt-style-D6u56SjJ.js} +1 -1
- package/dist/{pw-ai-dzf-ptcn.js → pw-ai-CbEgFH-G.js} +7 -7
- package/dist/{pw-ai-BLVMuSLv.js → pw-ai-DM3CIGyg.js} +3 -3
- package/dist/{pw-ai-DZJWEF_f.js → pw-ai-MrkdzeIJ.js} +4 -4
- package/dist/{qmd-manager-DNAUuwjK.js → qmd-manager-DPslO6i9.js} +7 -7
- package/dist/{qmd-manager-DepEoASu.js → qmd-manager-Dgo23O3Q.js} +6 -6
- package/dist/{register.agent-UeH2NXmH.js → register.agent-B4CGE-cp.js} +79 -79
- package/dist/{register.agent-CSWvzOkR.js → register.agent-E1qzojq2.js} +46 -46
- package/dist/{register.anima-HHDWsz6r.js → register.anima-BETuBtyq.js} +2 -2
- package/dist/{register.anima-DOdee0dh.js → register.anima-C2coCJM_.js} +2 -2
- package/dist/{register.configure-D84Fvcz4.js → register.configure-D5huhRa3.js} +36 -36
- package/dist/register.configure-DqYNhIQj.js +103 -0
- package/dist/{register.maintenance-B3pvNbZb.js → register.maintenance-DC9IhZ2x.js} +80 -80
- package/dist/{register.maintenance-BKVOwkw6.js → register.maintenance-RuiaMHu7.js} +44 -44
- package/dist/{register.message-BAO6CPl2.js → register.message-BRP5Y8SN.js} +32 -32
- package/dist/{register.message-OXoOKE_6.js → register.message-CL5mFcq-.js} +59 -59
- package/dist/{register.onboard-BK_ixVmD.js → register.onboard-CdvtyeLg.js} +42 -42
- package/dist/{register.onboard-cfCaPx6j.js → register.onboard-DFjl0E_x.js} +80 -80
- package/dist/register.setup-CVhekh_d.js +175 -0
- package/dist/{register.setup-Y-Q74M-0.js → register.setup-CuNhw63j.js} +42 -42
- package/dist/{register.status-health-sessions-TfZMzAUn.js → register.status-health-sessions-BdyiNJFD.js} +78 -78
- package/dist/{register.status-health-sessions-CT14eitH.js → register.status-health-sessions-l7qnXORD.js} +45 -45
- package/dist/{register.subclis-BZwdlNHC.js → register.subclis-Bj3GU0St.js} +28 -28
- package/dist/{reply-mlsExaZm.js → reply-Brlv-JC-.js} +33 -33
- package/dist/{reply-qalRISe_.js → reply-C9A7Npep.js} +51 -51
- package/dist/{reply-prefix-w4a39ybC.js → reply-prefix-XqRfG1QY.js} +2 -2
- package/dist/{reply-prefix-B0CfR4bM.js → reply-prefix-m-Nj9VGi.js} +2 -2
- package/dist/{routes-DO0HqW2e.js → routes-C5ylAnNV.js} +3 -3
- package/dist/{routes-CENsHJyg.js → routes-CooYoUCb.js} +7 -7
- package/dist/{rpc-DZ44PIXE.js → rpc-BoNfgecI.js} +1 -1
- package/dist/{rpc-C0pjNhBi.js → rpc-aBUUQWC3.js} +3 -3
- package/dist/{run-main-BMpKw8Mp.js → run-main-DKNJvJ7W.js} +44 -44
- package/dist/{runtime-guard-BSUFiAQV.js → runtime-guard-CKFdts2L.js} +1 -1
- package/dist/{sandbox-BIGfMYEI.js → sandbox-D8pgNhTE.js} +2 -2
- package/dist/{sandbox-DxP3IpUP.js → sandbox-DBSiVHt_.js} +7 -7
- package/dist/{sandbox-cli-_Tg7lfJ_.js → sandbox-cli-BeOQ8G6W.js} +30 -30
- package/dist/{sandbox-cli-DtLGH8sL.js → sandbox-cli-BlWdpX1h.js} +47 -47
- package/dist/{security-cli-D3bSuyZt.js → security-cli-CRSXFNRa.js} +36 -36
- package/dist/{security-cli-BRwgbedo.js → security-cli-CcYc8gKu.js} +19 -19
- package/dist/{server-context-49XFFxFg.js → server-context-Cu88BsgT.js} +5 -5
- package/dist/{server-context-LrlgrZzS.js → server-context-Du3Gdqy1.js} +8 -8
- package/dist/{server-node-events-Dm52i7NW.js → server-node-events-0Una3QLI.js} +10 -10
- package/dist/{server-node-events-QX523UyF.js → server-node-events-DCY3mm-A.js} +25 -25
- package/dist/{service-D56aMXUB.js → service-CpG4hCVW.js} +1 -1
- package/dist/{service-audit-qmf6XMmP.js → service-audit-B3atdWsy.js} +3 -3
- package/dist/{service-audit-D0X_XAB2.js → service-audit-DP4USmzf.js} +1 -1
- package/dist/{session-CrQQLLhx.js → session-B6T_f3RF.js} +3 -3
- package/dist/{session-Vlce2BAT.js → session-DTTbdKb0.js} +5 -5
- package/dist/{session-cost-usage-DT9YNXTJ.js → session-cost-usage-FcdJl9c3.js} +1 -1
- package/dist/{session-LocsOOWJ.js → session-xQxk_AyT.js} +3 -3
- package/dist/{sessions-BfV53TbG.js → sessions-B-Cu7JZq.js} +7 -7
- package/dist/{sessions-DcXpzig0.js → sessions-B9VnNnIk.js} +2 -2
- package/dist/{sessions-BimpX_km.js → sessions-BQUf6xj_.js} +4 -4
- package/dist/{sessions-Wd18dukK.js → sessions-G7nfpjc6.js} +5 -5
- package/dist/{shared-Cgly1vPb.js → shared-BcqU-KU2.js} +5 -5
- package/dist/{shared-f7dvQsi7.js → shared-CkGP1Gie.js} +3 -3
- package/dist/{shared-Bsr69u_7.js → shared-DwguvoZP.js} +4 -4
- package/dist/{shared-JOo05hST.js → shared-uOwPcrN5.js} +7 -7
- package/dist/{skills-B-G7UHOa.js → skills-DV4zKdCx.js} +3 -3
- package/dist/{skills-cli-DtOk0bvK.js → skills-cli-CBFbV14l.js} +19 -19
- package/dist/{skills-cli-DUGe2ZWW.js → skills-cli-gGWq4bgb.js} +6 -6
- package/dist/{skills-status-Clq9ZnYu.js → skills-status-DaLLXtp7.js} +3 -3
- package/dist/{sqlite-Ck6f9KWc.js → sqlite-BiXgPbCK.js} +2 -2
- package/dist/{sqlite-CGcOZZ0C.js → sqlite-dzD-jMjs.js} +2 -2
- package/dist/{start--xmSFepB.js → start-DaXwIgOn.js} +17 -92
- package/dist/{start-BdlZbqrr.js → start-Fy8lVmlo.js} +16 -91
- package/dist/{status-RA_uNmK0.js → status-C7YN9z1q.js} +4 -4
- package/dist/{status-BgoeFm6g.js → status-DbxQqh2e.js} +15 -15
- package/dist/{status-Ct0DgOZ-.js → status-XzLCn872.js} +28 -28
- package/dist/{status-BjjDrUq7.js → status-iUSfyst3.js} +2 -2
- package/dist/{status.update-DLU1qBf0.js → status.update-DEtEANLh.js} +3 -3
- package/dist/{status.update-BjOH3GlS.js → status.update-ZVrSK04Z.js} +3 -3
- package/dist/{subagent-registry-Byuex3zp.js → subagent-registry-BJzLJ6FY.js} +5 -5
- package/dist/{subagent-registry-9RLdKxES.js → subagent-registry-CdSjz14I.js} +13 -13
- package/dist/{subagent-registry-DOBunBYS.js → subagent-registry-DKRVOkTv.js} +11 -11
- package/dist/{subsystem-Dowf8fSU.js → subsystem-DfKstnEK.js} +1 -1
- package/dist/{system-cli-DXNKD_Id.js → system-cli-CYypNnD9.js} +16 -16
- package/dist/{system-cli-C5oBpzni.js → system-cli-VMfIEGoj.js} +5 -5
- package/dist/{systemd-By5xdSB4.js → systemd-BVVNFIBH.js} +2 -2
- package/dist/{systemd-hints-sJmr6cjb.js → systemd-hints-J3cHYZVZ.js} +1 -1
- package/dist/{systemd-hints-BtjL_5Rh.js → systemd-hints-Mpt5QteE.js} +1 -1
- package/dist/{systemd-linger-CTmV2Gci.js → systemd-linger-B4wBMvpg.js} +2 -2
- package/dist/{table-BL0lJzsm.js → table-B_wVcaLO.js} +2 -2
- package/dist/{tokens-DkvqA72p.js → tokens-3psI_Qk2.js} +1 -1
- package/dist/{trash-_x5UZ94k.js → trash-C39a6hKA.js} +1 -1
- package/dist/{tui-BHjxDFZC.js → tui-BfPtiXD1.js} +3 -3
- package/dist/{tui-cli-5ANH8dE5.js → tui-cli-BcsdagN8.js} +8 -8
- package/dist/{tui-cli-BQ4P-JW_.js → tui-cli-DN5WL85n.js} +18 -18
- package/dist/{tui-CgOocwN8.js → tui-r0_5VL_h.js} +8 -8
- package/dist/{update-LFgxHHPd.js → update-DhOF8e0Q.js} +3 -3
- package/dist/{update-check-CWc7YXmc.js → update-check-DlDloai0.js} +3 -3
- package/dist/{update-check-IhlWaui6.js → update-check-DmODY9MR.js} +1 -1
- package/dist/{update-cli-PtXU62w7.js → update-cli-BVeg9il9.js} +73 -73
- package/dist/{update-cli-Va0EtETG.js → update-cli-DXAbudd9.js} +114 -114
- package/dist/{update-runner-BLeKFkiB.js → update-runner-B2bjvdxa.js} +2 -2
- package/dist/{update-runner-Iuzpc-_y.js → update-runner-CTCGT1OS.js} +5 -5
- package/dist/{usage-ApGvBLVg.js → usage-kVpWUUrn.js} +12 -12
- package/dist/{utils-Bsw__U-F.js → utils-DZ8pnOD5.js} +2 -2
- package/dist/web-B1OjU-Gf.js +63 -0
- package/dist/{web-EZLQEWXY.js → web-BGf92cSU.js} +41 -41
- package/dist/{web-pec8YJUX.js → web-C4FxauVQ.js} +30 -30
- package/dist/{webhooks-cli-BYQKTHTp.js → webhooks-cli-bEG0ADkY.js} +16 -16
- package/dist/{webhooks-cli-C2_xtsUQ.js → webhooks-cli-l0yqYtZW.js} +6 -6
- package/dist/{whatsapp-actions-Ck9Uv0Nw.js → whatsapp-actions-CvnLgxjq.js} +10 -10
- package/dist/{whatsapp-actions-C72VCq8f.js → whatsapp-actions-CwSwIOO3.js} +5 -5
- package/dist/{whatsapp-actions-D0reTj2k.js → whatsapp-actions-DsoA_Bad.js} +17 -17
- package/dist/{widearea-dns-B6ocX23x.js → widearea-dns-1txrPZ0I.js} +1 -1
- package/dist/{workspace-Dcfoy5JJ.js → workspace-BTjqqJY-.js} +2 -2
- package/dist/{ws-log-gwFxPxj5.js → ws-log-BffL5dN_.js} +1 -1
- package/package.json +1 -1
- package/dist/cli-CfHUkOD0.js +0 -101
- package/dist/register.configure-CSJFxdz9.js +0 -103
- package/dist/register.setup-BGfDnzph.js +0 -175
- package/dist/web-B6_Ky60G.js +0 -63
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import { o as createSubsystemLogger } from "./entry.js";
|
|
2
|
-
import "./auth-profiles-
|
|
2
|
+
import "./auth-profiles-CC3TFfvS.js";
|
|
3
3
|
import "./utils-C9sj30YY.js";
|
|
4
4
|
import "./exec-BizYYQgP.js";
|
|
5
5
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-OZi7lb8S.js";
|
|
6
6
|
import "./pi-model-discovery-DsRqYJLy.js";
|
|
7
7
|
import "./skills-B5LQx4lT.js";
|
|
8
8
|
import "./manifest-registry-D4lM2RdV.js";
|
|
9
|
-
import { i as loadConfig } from "./config-
|
|
9
|
+
import { i as loadConfig } from "./config-BeuAT94o.js";
|
|
10
10
|
import "./client-C1avc0vD.js";
|
|
11
|
-
import "./call-
|
|
11
|
+
import "./call-CTMQygkz.js";
|
|
12
12
|
import "./message-channel-w4F2b2F6.js";
|
|
13
13
|
import "./timeout-CswI_K-U.js";
|
|
14
|
-
import "./sessions-
|
|
15
|
-
import "./subagent-registry-
|
|
14
|
+
import "./sessions-B9VnNnIk.js";
|
|
15
|
+
import "./subagent-registry-BJzLJ6FY.js";
|
|
16
16
|
import "./logging-BdnOSVPD.js";
|
|
17
|
-
import "./accounts-
|
|
18
|
-
import { Q as loadAnimaPlugins } from "./reply-
|
|
17
|
+
import "./accounts-CP1IAWeM.js";
|
|
18
|
+
import { Q as loadAnimaPlugins } from "./reply-Brlv-JC-.js";
|
|
19
19
|
import "./plugins-CDJw924T.js";
|
|
20
20
|
import "./tokens-C-X7wDKj.js";
|
|
21
|
-
import "./dock-
|
|
21
|
+
import "./dock-Dmxj3en_.js";
|
|
22
22
|
import "./paths-CxRf2rBG.js";
|
|
23
23
|
import "./chunk-mxPVo000.js";
|
|
24
|
-
import "./media-
|
|
24
|
+
import "./media-Bu2L8c_7.js";
|
|
25
25
|
import "./mime-B1ZoR53M.js";
|
|
26
26
|
import "./image-ops-Dlt3T7th.js";
|
|
27
27
|
import "./common-D6bu0zHC.js";
|
|
28
|
-
import "./server-context-
|
|
29
|
-
import "./chrome-
|
|
28
|
+
import "./server-context-Cu88BsgT.js";
|
|
29
|
+
import "./chrome-DlcCwfo_.js";
|
|
30
30
|
import "./auth-lZ26wsbN.js";
|
|
31
|
-
import "./ports-
|
|
31
|
+
import "./ports-B3Vuo92o.js";
|
|
32
32
|
import "./trash-BJLK1vMn.js";
|
|
33
|
-
import "./control-service-
|
|
34
|
-
import "./cli-session-
|
|
33
|
+
import "./control-service-DXYImShH.js";
|
|
34
|
+
import "./cli-session-C70q07GT.js";
|
|
35
35
|
import "./thinking-BXEswx1X.js";
|
|
36
|
-
import "./context-
|
|
37
|
-
import "./sandbox-
|
|
38
|
-
import "./routes-
|
|
36
|
+
import "./context-ChaAWbwZ.js";
|
|
37
|
+
import "./sandbox-D8pgNhTE.js";
|
|
38
|
+
import "./routes-C5ylAnNV.js";
|
|
39
39
|
import "./paths-DcVEkYX5.js";
|
|
40
|
-
import "./commands-registry-
|
|
41
|
-
import "./deliver-
|
|
42
|
-
import "./pairing-store-
|
|
43
|
-
import "./nodes-screen-
|
|
44
|
-
import "./memory-cli-
|
|
45
|
-
import "./manager-
|
|
40
|
+
import "./commands-registry-sLFieXCB.js";
|
|
41
|
+
import "./deliver-DiIOZFml.js";
|
|
42
|
+
import "./pairing-store-uUh4DCdc.js";
|
|
43
|
+
import "./nodes-screen-BST4qOFR.js";
|
|
44
|
+
import "./memory-cli-CvrdGRvA.js";
|
|
45
|
+
import "./manager-iFc0bAWS.js";
|
|
46
46
|
import "./sqlite-BukcjdJa.js";
|
|
47
47
|
import "./redact-ClVwO7Nn.js";
|
|
48
48
|
import "./links-BfjHVTB_.js";
|
|
49
49
|
import "./progress-CbZ2D53A.js";
|
|
50
|
-
import "./dispatcher-
|
|
50
|
+
import "./dispatcher-CoqsaA3f.js";
|
|
51
51
|
import "./channel-selection-DfGpCyh2.js";
|
|
52
52
|
import "./delivery-queue-B6IHz4Ry.js";
|
|
53
|
-
import "./pi-tools.policy-
|
|
53
|
+
import "./pi-tools.policy-DhmYCpdW.js";
|
|
54
54
|
import "./session-cost-usage-BwiTZuKl.js";
|
|
55
55
|
|
|
56
56
|
//#region src/plugins/cli.ts
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { $ as resolveStateDir, D as shouldLogVerbose, Dt as resolveRequiredHomeDir, n as isTruthyEnvValue, o as createSubsystemLogger, w as logVerbose } from "./entry.js";
|
|
2
|
-
import { A as normalizeModelRef, Dt as DEFAULT_PROVIDER, E as buildModelAliasIndex, Et as DEFAULT_MODEL, F as resolveConfiguredModelRef, I as resolveDefaultModelForAgent, R as resolveModelRefFromString, T as buildConfiguredAllowlistKeys, Tt as DEFAULT_CONTEXT_TOKENS, b as resolveAnimaAgentDir, h as ensureAuthProfileStore, it as requireApiKey, j as normalizeProviderId, k as modelKey, n as resolveAuthProfileOrder, nt as getApiKeyForModel, r as isProfileInCooldown } from "./auth-profiles-
|
|
3
|
-
import { t as formatCliCommand } from "./command-format-
|
|
2
|
+
import { A as normalizeModelRef, Dt as DEFAULT_PROVIDER, E as buildModelAliasIndex, Et as DEFAULT_MODEL, F as resolveConfiguredModelRef, I as resolveDefaultModelForAgent, R as resolveModelRefFromString, T as buildConfiguredAllowlistKeys, Tt as DEFAULT_CONTEXT_TOKENS, b as resolveAnimaAgentDir, h as ensureAuthProfileStore, it as requireApiKey, j as normalizeProviderId, k as modelKey, n as resolveAuthProfileOrder, nt as getApiKeyForModel, r as isProfileInCooldown } from "./auth-profiles-CC3TFfvS.js";
|
|
3
|
+
import { t as formatCliCommand } from "./command-format-DAaqLG8J.js";
|
|
4
4
|
import { c as normalizeAccountId, d as resolveAgentIdFromSessionKey, l as normalizeAgentId, n as DEFAULT_AGENT_ID, s as classifySessionKeyShape, u as normalizeMainKey, v as isCronRunSessionKey, x as parseAgentSessionKey } from "./session-key-BGiG_JcT.js";
|
|
5
5
|
import { c as escapeRegExp, d as isRecord, t as CONFIG_DIR, y as resolveUserPath } from "./utils-C9sj30YY.js";
|
|
6
6
|
import { n as runExec, t as runCommandWithTimeout } from "./exec-BizYYQgP.js";
|
|
7
7
|
import { t as resolveAnimaPackageRoot } from "./openclaw-root-C85WMnVV.js";
|
|
8
8
|
import { C as loadWorkspaceBootstrapFiles, S as filterBootstrapFilesForSession, c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir, u as resolveSessionAgentIds } from "./agent-scope-OZi7lb8S.js";
|
|
9
9
|
import { i as loadWorkspaceSkillEntries, o as resolvePluginSkillDirs } from "./skills-B5LQx4lT.js";
|
|
10
|
-
import { i as loadConfig } from "./config-
|
|
10
|
+
import { i as loadConfig } from "./config-BeuAT94o.js";
|
|
11
11
|
import { c as listDeliverableMessageChannels, l as normalizeMessageChannel, n as isDeliverableMessageChannel, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-w4F2b2F6.js";
|
|
12
12
|
import { n as hasInterSessionUserProvenance } from "./input-provenance-DJBdpeKk.js";
|
|
13
13
|
import { s as resolveHeartbeatPrompt } from "./timeout-CswI_K-U.js";
|
|
14
|
-
import { A as deliveryContextFromSession, D as normalizeChatType, O as buildGroupDisplayName, P as normalizeSessionDeliveryFields, S as resolveMainSessionKey, b as resolveAgentMainSessionKey, i as loadSessionStore, l as updateSessionStore, v as resolveFreshSessionTotalTokens, y as canonicalizeMainSessionAlias } from "./sessions-
|
|
14
|
+
import { A as deliveryContextFromSession, D as normalizeChatType, O as buildGroupDisplayName, P as normalizeSessionDeliveryFields, S as resolveMainSessionKey, b as resolveAgentMainSessionKey, i as loadSessionStore, l as updateSessionStore, v as resolveFreshSessionTotalTokens, y as canonicalizeMainSessionAlias } from "./sessions-B9VnNnIk.js";
|
|
15
15
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CDJw924T.js";
|
|
16
16
|
import { n as SILENT_REPLY_TOKEN } from "./tokens-C-X7wDKj.js";
|
|
17
17
|
import { a as resolveSessionTranscriptPathInDir, c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath } from "./paths-CxRf2rBG.js";
|
|
18
18
|
import { r as getFileExtension, s as normalizeMimeType } from "./mime-B1ZoR53M.js";
|
|
19
19
|
import { t as safeEqualSecret } from "./secret-equal-Dghy3xsA.js";
|
|
20
20
|
import { l as normalizeVerboseLevel } from "./thinking-BXEswx1X.js";
|
|
21
|
-
import { n as ensureAnimaModelsJson, t as lookupContextTokens } from "./context-
|
|
21
|
+
import { n as ensureAnimaModelsJson, t as lookupContextTokens } from "./context-ChaAWbwZ.js";
|
|
22
22
|
import { n as extractToolCallNames, r as hasToolCall } from "./transcript-tools-DuyYOkUq.js";
|
|
23
23
|
import { execSync, spawn } from "node:child_process";
|
|
24
24
|
import os, { tmpdir } from "node:os";
|
|
@@ -168,7 +168,7 @@ async function loadModelCatalog(params) {
|
|
|
168
168
|
});
|
|
169
169
|
try {
|
|
170
170
|
await ensureAnimaModelsJson(params?.config ?? loadConfig());
|
|
171
|
-
await (await import("./pi-auth-json-
|
|
171
|
+
await (await import("./pi-auth-json-C2miwJYp.js")).ensurePiAuthJsonFromAuthProfiles(resolveAnimaAgentDir());
|
|
172
172
|
const piSdk = await importPiSdk();
|
|
173
173
|
const agentDir = resolveAnimaAgentDir();
|
|
174
174
|
const { join } = await import("node:path");
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { g as resolveStateDir, y as resolveRequiredHomeDir } from "./paths-
|
|
2
|
-
import { F as shouldLogVerbose, M as logVerbose, t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { b as resolveUserPath, f as isRecord, l as escapeRegExp, t as CONFIG_DIR } from "./utils-
|
|
1
|
+
import { g as resolveStateDir, y as resolveRequiredHomeDir } from "./paths-BMuHNFxg.js";
|
|
2
|
+
import { F as shouldLogVerbose, M as logVerbose, t as createSubsystemLogger } from "./subsystem-DfKstnEK.js";
|
|
3
|
+
import { b as resolveUserPath, f as isRecord, l as escapeRegExp, t as CONFIG_DIR } from "./utils-DZ8pnOD5.js";
|
|
4
4
|
import { l as normalizeVerboseLevel } from "./thinking-BLU0jXR8.js";
|
|
5
5
|
import { c as normalizeAccountId, d as resolveAgentIdFromSessionKey, l as normalizeAgentId, n as DEFAULT_AGENT_ID, s as classifySessionKeyShape, u as normalizeMainKey, v as isCronRunSessionKey, x as parseAgentSessionKey } from "./session-key-DxcgHezu.js";
|
|
6
|
-
import { n as runExec, t as runCommandWithTimeout } from "./exec-
|
|
6
|
+
import { n as runExec, t as runCommandWithTimeout } from "./exec-mhSykkaa.js";
|
|
7
7
|
import { t as resolveAnimaPackageRoot } from "./openclaw-root-0yHXtO35.js";
|
|
8
|
-
import { C as loadWorkspaceBootstrapFiles, S as filterBootstrapFilesForSession, c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir, u as resolveSessionAgentIds } from "./agent-scope-
|
|
9
|
-
import { At as DEFAULT_PROVIDER, F as requireApiKey, N as getApiKeyForModel, Ot as DEFAULT_CONTEXT_TOKENS, c as normalizeProviderId, f as resolveConfiguredModelRef, h as resolveModelRefFromString, kt as DEFAULT_MODEL, mt as ensureAuthProfileStore, n as buildConfiguredAllowlistKeys, nt as isProfileInCooldown, o as modelKey, p as resolveDefaultModelForAgent, r as buildModelAliasIndex, s as normalizeModelRef, tt as resolveAuthProfileOrder, yt as resolveAnimaAgentDir } from "./model-selection-
|
|
10
|
-
import { t as formatCliCommand } from "./command-format-
|
|
11
|
-
import { t as isTruthyEnvValue } from "./env-
|
|
12
|
-
import { d as resolveHeartbeatPrompt } from "./lanes-
|
|
13
|
-
import { i as loadConfig } from "./config-
|
|
14
|
-
import { D as resolveAgentMainSessionKey, E as canonicalizeMainSessionAlias, I as normalizeChatType, N as buildGroupDisplayName, T as resolveFreshSessionTotalTokens, d as deliveryContextFromSession, h as normalizeSessionDeliveryFields, i as loadSessionStore, k as resolveMainSessionKey, l as updateSessionStore } from "./sessions-
|
|
8
|
+
import { C as loadWorkspaceBootstrapFiles, S as filterBootstrapFilesForSession, c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir, u as resolveSessionAgentIds } from "./agent-scope-CPphqq-U.js";
|
|
9
|
+
import { At as DEFAULT_PROVIDER, F as requireApiKey, N as getApiKeyForModel, Ot as DEFAULT_CONTEXT_TOKENS, c as normalizeProviderId, f as resolveConfiguredModelRef, h as resolveModelRefFromString, kt as DEFAULT_MODEL, mt as ensureAuthProfileStore, n as buildConfiguredAllowlistKeys, nt as isProfileInCooldown, o as modelKey, p as resolveDefaultModelForAgent, r as buildModelAliasIndex, s as normalizeModelRef, tt as resolveAuthProfileOrder, yt as resolveAnimaAgentDir } from "./model-selection-Cqt6aJ0G.js";
|
|
10
|
+
import { t as formatCliCommand } from "./command-format-CVL4K5cj.js";
|
|
11
|
+
import { t as isTruthyEnvValue } from "./env-v6411I8h.js";
|
|
12
|
+
import { d as resolveHeartbeatPrompt } from "./lanes-BvSnHq2h.js";
|
|
13
|
+
import { i as loadConfig } from "./config-DaqbUdkI.js";
|
|
14
|
+
import { D as resolveAgentMainSessionKey, E as canonicalizeMainSessionAlias, I as normalizeChatType, N as buildGroupDisplayName, T as resolveFreshSessionTotalTokens, d as deliveryContextFromSession, h as normalizeSessionDeliveryFields, i as loadSessionStore, k as resolveMainSessionKey, l as updateSessionStore } from "./sessions-B-Cu7JZq.js";
|
|
15
15
|
import { r as getFileExtension, s as normalizeMimeType } from "./mime-C1RlpUSs.js";
|
|
16
|
-
import { n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
16
|
+
import { n as SILENT_REPLY_TOKEN } from "./tokens-3psI_Qk2.js";
|
|
17
17
|
import { t as safeEqualSecret } from "./secret-equal-B268kALC.js";
|
|
18
|
-
import { i as loadWorkspaceSkillEntries, o as resolvePluginSkillDirs } from "./skills-
|
|
19
|
-
import { c as listDeliverableMessageChannels, l as normalizeMessageChannel, n as isDeliverableMessageChannel, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-
|
|
20
|
-
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
21
|
-
import { a as resolveSessionTranscriptPathInDir, c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath } from "./paths-
|
|
18
|
+
import { i as loadWorkspaceSkillEntries, o as resolvePluginSkillDirs } from "./skills-DV4zKdCx.js";
|
|
19
|
+
import { c as listDeliverableMessageChannels, l as normalizeMessageChannel, n as isDeliverableMessageChannel, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-D_jIO87f.js";
|
|
20
|
+
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-DhcGAPDB.js";
|
|
21
|
+
import { a as resolveSessionTranscriptPathInDir, c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath } from "./paths-BXQQzXGQ.js";
|
|
22
22
|
import { n as hasInterSessionUserProvenance } from "./input-provenance-iu26y0GH.js";
|
|
23
23
|
import { n as extractToolCallNames, r as hasToolCall } from "./transcript-tools-DtE5di1q.js";
|
|
24
24
|
import fs, { existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -95,7 +95,7 @@ async function loadModelCatalog(params) {
|
|
|
95
95
|
});
|
|
96
96
|
try {
|
|
97
97
|
await ensureAnimaModelsJson(params?.config ?? loadConfig());
|
|
98
|
-
await (await import("./pi-auth-json-
|
|
98
|
+
await (await import("./pi-auth-json-B1M8W1pO.js")).ensurePiAuthJsonFromAuthProfiles(resolveAnimaAgentDir());
|
|
99
99
|
const piSdk = await importPiSdk();
|
|
100
100
|
const agentDir = resolveAnimaAgentDir();
|
|
101
101
|
const { join } = await import("node:path");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as resolveStateDir } from "./paths-
|
|
2
|
-
import { a as logDebug, o as logError } from "./exec-
|
|
1
|
+
import { g as resolveStateDir } from "./paths-BMuHNFxg.js";
|
|
2
|
+
import { a as logDebug, o as logError } from "./exec-mhSykkaa.js";
|
|
3
3
|
import { t as rawDataToString } from "./ws-COSqlEPx.js";
|
|
4
|
-
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES, p as GATEWAY_CLIENT_IDS } from "./message-channel-
|
|
4
|
+
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES, p as GATEWAY_CLIENT_IDS } from "./message-channel-D_jIO87f.js";
|
|
5
5
|
import { t as INPUT_PROVENANCE_KIND_VALUES } from "./input-provenance-iu26y0GH.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
|
|
3
3
|
//#region src/cli/cli-name.ts
|
|
4
|
-
const DEFAULT_CLI_NAME = "
|
|
5
|
-
const KNOWN_CLI_NAMES = new Set([DEFAULT_CLI_NAME]);
|
|
6
|
-
const CLI_PREFIX_RE$1 = /^(?:((?:pnpm|npm|bunx|npx)\s+))?(openclaw)\b/;
|
|
4
|
+
const DEFAULT_CLI_NAME = "anima";
|
|
5
|
+
const KNOWN_CLI_NAMES = new Set([DEFAULT_CLI_NAME, "openclaw"]);
|
|
6
|
+
const CLI_PREFIX_RE$1 = /^(?:((?:pnpm|npm|bunx|npx)\s+))?(anima|openclaw)\b/;
|
|
7
7
|
function resolveCliName(argv = process.argv) {
|
|
8
8
|
const argv1 = argv[1];
|
|
9
9
|
if (!argv1) return DEFAULT_CLI_NAME;
|
|
@@ -36,7 +36,7 @@ function normalizeProfileName(raw) {
|
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/cli/command-format.ts
|
|
39
|
-
const CLI_PREFIX_RE = /^(?:pnpm|npm|bunx|npx)\s+openclaw\b|^openclaw\b/;
|
|
39
|
+
const CLI_PREFIX_RE = /^(?:pnpm|npm|bunx|npx)\s+(?:anima|openclaw)\b|^(?:anima|openclaw)\b/;
|
|
40
40
|
const PROFILE_FLAG_RE = /(?:^|\s)--profile(?:\s|=|$)/;
|
|
41
41
|
const DEV_FLAG_RE = /(?:^|\s)--dev(?:\s|$)/;
|
|
42
42
|
function formatCliCommand(command, env = process.env) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
|
|
3
3
|
//#region src/cli/cli-name.ts
|
|
4
|
-
const DEFAULT_CLI_NAME = "
|
|
5
|
-
const KNOWN_CLI_NAMES = new Set([DEFAULT_CLI_NAME]);
|
|
6
|
-
const CLI_PREFIX_RE$1 = /^(?:((?:pnpm|npm|bunx|npx)\s+))?(openclaw)\b/;
|
|
4
|
+
const DEFAULT_CLI_NAME = "anima";
|
|
5
|
+
const KNOWN_CLI_NAMES = new Set([DEFAULT_CLI_NAME, "openclaw"]);
|
|
6
|
+
const CLI_PREFIX_RE$1 = /^(?:((?:pnpm|npm|bunx|npx)\s+))?(anima|openclaw)\b/;
|
|
7
7
|
function resolveCliName(argv = process.argv) {
|
|
8
8
|
const argv1 = argv[1];
|
|
9
9
|
if (!argv1) return DEFAULT_CLI_NAME;
|
|
@@ -36,7 +36,7 @@ function normalizeProfileName(raw) {
|
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/cli/command-format.ts
|
|
39
|
-
const CLI_PREFIX_RE = /^(?:pnpm|npm|bunx|npx)\s+openclaw\b|^openclaw\b/;
|
|
39
|
+
const CLI_PREFIX_RE = /^(?:pnpm|npm|bunx|npx)\s+(?:anima|openclaw)\b|^(?:anima|openclaw)\b/;
|
|
40
40
|
const PROFILE_FLAG_RE = /(?:^|\s)--profile(?:\s|=|$)/;
|
|
41
41
|
const DEV_FLAG_RE = /(?:^|\s)--dev(?:\s|$)/;
|
|
42
42
|
function formatCliCommand(command, env = process.env) {
|
|
@@ -2,9 +2,9 @@ import { wt as normalizeProfileName } from "./entry.js";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/cli-name.ts
|
|
5
|
-
const DEFAULT_CLI_NAME = "
|
|
6
|
-
const KNOWN_CLI_NAMES = new Set([DEFAULT_CLI_NAME]);
|
|
7
|
-
const CLI_PREFIX_RE$1 = /^(?:((?:pnpm|npm|bunx|npx)\s+))?(openclaw)\b/;
|
|
5
|
+
const DEFAULT_CLI_NAME = "anima";
|
|
6
|
+
const KNOWN_CLI_NAMES = new Set([DEFAULT_CLI_NAME, "openclaw"]);
|
|
7
|
+
const CLI_PREFIX_RE$1 = /^(?:((?:pnpm|npm|bunx|npx)\s+))?(anima|openclaw)\b/;
|
|
8
8
|
function resolveCliName(argv = process.argv) {
|
|
9
9
|
const argv1 = argv[1];
|
|
10
10
|
if (!argv1) return DEFAULT_CLI_NAME;
|
|
@@ -22,7 +22,7 @@ function replaceCliName(command, cliName = resolveCliName()) {
|
|
|
22
22
|
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/cli/command-format.ts
|
|
25
|
-
const CLI_PREFIX_RE = /^(?:pnpm|npm|bunx|npx)\s+openclaw\b|^openclaw\b/;
|
|
25
|
+
const CLI_PREFIX_RE = /^(?:pnpm|npm|bunx|npx)\s+(?:anima|openclaw)\b|^(?:anima|openclaw)\b/;
|
|
26
26
|
const PROFILE_FLAG_RE = /(?:^|\s)--profile(?:\s|=|$)/;
|
|
27
27
|
const DEV_FLAG_RE = /(?:^|\s)--dev(?:\s|$)/;
|
|
28
28
|
function formatCliCommand(command, env = process.env) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { St as hasHelpOrVersion, ht as buildParseArgv, yt as getPrimaryCommand } from "./entry.js";
|
|
3
3
|
import { r as resolveActionArgs } from "./helpers-DLgbkcEn.js";
|
|
4
|
-
import { r as registerSubCliCommands } from "./register.subclis-
|
|
4
|
+
import { r as registerSubCliCommands } from "./register.subclis-Bj3GU0St.js";
|
|
5
5
|
|
|
6
6
|
//#region src/cli/program/command-registry.ts
|
|
7
7
|
var command_registry_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -21,7 +21,7 @@ const coreEntries = [
|
|
|
21
21
|
description: "Setup helpers"
|
|
22
22
|
}],
|
|
23
23
|
register: async ({ program }) => {
|
|
24
|
-
(await import("./register.setup-
|
|
24
|
+
(await import("./register.setup-CuNhw63j.js")).registerSetupCommand(program);
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -30,7 +30,7 @@ const coreEntries = [
|
|
|
30
30
|
description: "Onboarding helpers"
|
|
31
31
|
}],
|
|
32
32
|
register: async ({ program }) => {
|
|
33
|
-
(await import("./register.onboard-
|
|
33
|
+
(await import("./register.onboard-CdvtyeLg.js")).registerOnboardCommand(program);
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
{
|
|
@@ -39,7 +39,7 @@ const coreEntries = [
|
|
|
39
39
|
description: "Configure wizard"
|
|
40
40
|
}],
|
|
41
41
|
register: async ({ program }) => {
|
|
42
|
-
(await import("./register.configure-
|
|
42
|
+
(await import("./register.configure-D5huhRa3.js")).registerConfigureCommand(program);
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
{
|
|
@@ -48,7 +48,7 @@ const coreEntries = [
|
|
|
48
48
|
description: "Config helpers"
|
|
49
49
|
}],
|
|
50
50
|
register: async ({ program }) => {
|
|
51
|
-
(await import("./config-cli-
|
|
51
|
+
(await import("./config-cli-DhdAhW1h.js")).registerConfigCli(program);
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
{
|
|
@@ -71,7 +71,7 @@ const coreEntries = [
|
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
73
|
register: async ({ program }) => {
|
|
74
|
-
(await import("./register.maintenance-
|
|
74
|
+
(await import("./register.maintenance-RuiaMHu7.js")).registerMaintenanceCommands(program);
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
{
|
|
@@ -80,7 +80,7 @@ const coreEntries = [
|
|
|
80
80
|
description: "Send, read, and manage messages"
|
|
81
81
|
}],
|
|
82
82
|
register: async ({ program, ctx }) => {
|
|
83
|
-
(await import("./register.message-
|
|
83
|
+
(await import("./register.message-BRP5Y8SN.js")).registerMessageCommands(program, ctx);
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
{
|
|
@@ -89,7 +89,7 @@ const coreEntries = [
|
|
|
89
89
|
description: "Memory commands"
|
|
90
90
|
}],
|
|
91
91
|
register: async ({ program }) => {
|
|
92
|
-
(await import("./memory-cli-
|
|
92
|
+
(await import("./memory-cli-CvrdGRvA.js").then((n) => n.t)).registerMemoryCli(program);
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
{
|
|
@@ -101,7 +101,7 @@ const coreEntries = [
|
|
|
101
101
|
description: "Manage isolated agents"
|
|
102
102
|
}],
|
|
103
103
|
register: async ({ program, ctx }) => {
|
|
104
|
-
(await import("./register.agent-
|
|
104
|
+
(await import("./register.agent-E1qzojq2.js")).registerAgentCommands(program, { agentChannelOptions: ctx.agentChannelOptions });
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
{
|
|
@@ -120,7 +120,7 @@ const coreEntries = [
|
|
|
120
120
|
}
|
|
121
121
|
],
|
|
122
122
|
register: async ({ program }) => {
|
|
123
|
-
(await import("./register.status-health-sessions-
|
|
123
|
+
(await import("./register.status-health-sessions-l7qnXORD.js")).registerStatusHealthSessionsCommands(program);
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
{
|
|
@@ -129,7 +129,7 @@ const coreEntries = [
|
|
|
129
129
|
description: "Browser tools"
|
|
130
130
|
}],
|
|
131
131
|
register: async ({ program }) => {
|
|
132
|
-
(await import("./browser-cli-
|
|
132
|
+
(await import("./browser-cli-CYOmCXxE.js")).registerBrowserCli(program);
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
{
|
|
@@ -168,7 +168,7 @@ const coreEntries = [
|
|
|
168
168
|
}
|
|
169
169
|
],
|
|
170
170
|
register: async ({ program }) => {
|
|
171
|
-
(await import("./register.anima-
|
|
171
|
+
(await import("./register.anima-BETuBtyq.js")).registerAnimaCommands(program);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { g as resolveStateDir } from "./paths-
|
|
2
|
+
import { g as resolveStateDir } from "./paths-BMuHNFxg.js";
|
|
3
3
|
import { a as formatDuration, d as statusPanel, i as colors, l as formatSuccess, o as formatError, r as budgetBar, s as formatInfo, u as queuePanel } from "./display-BDOsXu8F.js";
|
|
4
4
|
import { n as loadIdentity, t as IDENTITY_COMPONENTS } from "./loader-l2OBdJ8x.js";
|
|
5
5
|
import { t as COMPONENT_DESCRIPTIONS } from "./templates-I3Z0xplD.js";
|
|
@@ -8,14 +8,151 @@ import { existsSync } from "node:fs";
|
|
|
8
8
|
import { homedir } from "node:os";
|
|
9
9
|
import { dirname, join } from "node:path";
|
|
10
10
|
import { mkdir, readFile, readdir, writeFile } from "node:fs/promises";
|
|
11
|
-
import { resolveConfig } from "@noxsoft/svrn-node";
|
|
12
11
|
|
|
12
|
+
//#region src/svrn/node.ts
|
|
13
|
+
const DEFAULT_SVRN_CONFIG = {
|
|
14
|
+
enabled: false,
|
|
15
|
+
resources: {
|
|
16
|
+
maxCpuPercent: 10,
|
|
17
|
+
maxRamMB: 256,
|
|
18
|
+
maxBandwidthMbps: 5
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
let _svrnModule;
|
|
22
|
+
async function loadSVRNModule() {
|
|
23
|
+
if (_svrnModule !== void 0) return _svrnModule;
|
|
24
|
+
try {
|
|
25
|
+
_svrnModule = await import("@noxsoft/svrn-node");
|
|
26
|
+
return _svrnModule;
|
|
27
|
+
} catch {
|
|
28
|
+
_svrnModule = null;
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/** Check whether @noxsoft/svrn-node is available (loadable). */
|
|
33
|
+
async function isSVRNAvailable() {
|
|
34
|
+
return await loadSVRNModule() != null;
|
|
35
|
+
}
|
|
36
|
+
/** Adapter providing the API shape ANIMA's repl expects. */
|
|
37
|
+
var SVRNNode = class {
|
|
38
|
+
constructor(config) {
|
|
39
|
+
this.inner = null;
|
|
40
|
+
this._available = false;
|
|
41
|
+
this.config = config;
|
|
42
|
+
}
|
|
43
|
+
/** Must be called after construction to attempt loading the module. */
|
|
44
|
+
async init() {
|
|
45
|
+
const mod = await loadSVRNModule();
|
|
46
|
+
if (mod) {
|
|
47
|
+
this.inner = new mod.SVRNNode(this.config);
|
|
48
|
+
this._available = true;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
/** Whether the underlying svrn-node module was loaded. */
|
|
54
|
+
isAvailable() {
|
|
55
|
+
return this._available;
|
|
56
|
+
}
|
|
57
|
+
async start() {
|
|
58
|
+
if (!this.inner) return;
|
|
59
|
+
await this.inner.start();
|
|
60
|
+
}
|
|
61
|
+
async stop() {
|
|
62
|
+
if (!this.inner) return;
|
|
63
|
+
await this.inner.stop();
|
|
64
|
+
}
|
|
65
|
+
getNodeId() {
|
|
66
|
+
if (!this.inner) return "unavailable";
|
|
67
|
+
return this.inner.getNodeId();
|
|
68
|
+
}
|
|
69
|
+
isEnabled() {
|
|
70
|
+
return this.config.enabled;
|
|
71
|
+
}
|
|
72
|
+
/** Stats shape expected by ANIMA repl commands. */
|
|
73
|
+
getStats() {
|
|
74
|
+
if (!this.inner) return {
|
|
75
|
+
nodeId: "unavailable",
|
|
76
|
+
running: false,
|
|
77
|
+
paused: false,
|
|
78
|
+
uptimeMs: 0,
|
|
79
|
+
tasksCompleted: 0,
|
|
80
|
+
tasksFailed: 0,
|
|
81
|
+
balance: 0,
|
|
82
|
+
sessionEarnings: 0
|
|
83
|
+
};
|
|
84
|
+
const status = this.inner.getStatus();
|
|
85
|
+
const earnings = this.inner.getEarnings();
|
|
86
|
+
const wallet = this.inner.getWallet();
|
|
87
|
+
return {
|
|
88
|
+
nodeId: status.nodeId,
|
|
89
|
+
running: status.state === "running",
|
|
90
|
+
paused: false,
|
|
91
|
+
uptimeMs: status.uptime * 1e3,
|
|
92
|
+
tasksCompleted: earnings.tasksThisSession,
|
|
93
|
+
tasksFailed: 0,
|
|
94
|
+
balance: wallet.balance,
|
|
95
|
+
sessionEarnings: earnings.session
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/** Earnings adapter with method-based API for repl commands. */
|
|
99
|
+
getEarnings() {
|
|
100
|
+
if (!this.inner) return {
|
|
101
|
+
getTodayEarnings: () => null,
|
|
102
|
+
getBalanceValueUSD: () => 0,
|
|
103
|
+
getAllTimeEarned: () => 0,
|
|
104
|
+
getBalance: () => 0
|
|
105
|
+
};
|
|
106
|
+
const summary = this.inner.getEarnings();
|
|
107
|
+
const wallet = this.inner.getWallet();
|
|
108
|
+
return {
|
|
109
|
+
getTodayEarnings: () => summary.tasksToday > 0 ? {
|
|
110
|
+
total: summary.today,
|
|
111
|
+
taskCount: summary.tasksToday
|
|
112
|
+
} : null,
|
|
113
|
+
getBalanceValueUSD: () => wallet.balance * .001,
|
|
114
|
+
getAllTimeEarned: () => summary.allTime,
|
|
115
|
+
getBalance: () => wallet.balance
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/** Monitor adapter with method-based API for repl commands. */
|
|
119
|
+
getMonitor() {
|
|
120
|
+
if (!this.inner) return {
|
|
121
|
+
getLatest: () => null,
|
|
122
|
+
getLimits: () => ({
|
|
123
|
+
maxCpuPercent: this.config.resources.maxCpuPercent,
|
|
124
|
+
maxRamMB: this.config.resources.maxRamMB,
|
|
125
|
+
maxBandwidthMbps: this.config.resources.maxBandwidthMbps
|
|
126
|
+
})
|
|
127
|
+
};
|
|
128
|
+
const resources = this.inner.getResources();
|
|
129
|
+
return {
|
|
130
|
+
getLatest: () => ({
|
|
131
|
+
cpuPercent: resources.cpuPercent,
|
|
132
|
+
ramUsedMB: resources.ramMB
|
|
133
|
+
}),
|
|
134
|
+
getLimits: () => ({
|
|
135
|
+
maxCpuPercent: this.config.resources.maxCpuPercent,
|
|
136
|
+
maxRamMB: this.config.resources.maxRamMB,
|
|
137
|
+
maxBandwidthMbps: this.config.resources.maxBandwidthMbps
|
|
138
|
+
})
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
/** Update resource limits at runtime. */
|
|
142
|
+
updateLimits(limits) {
|
|
143
|
+
if (limits.maxCpuPercent !== void 0) this.config.resources.maxCpuPercent = limits.maxCpuPercent;
|
|
144
|
+
if (limits.maxRamMB !== void 0) this.config.resources.maxRamMB = limits.maxRamMB;
|
|
145
|
+
if (limits.maxBandwidthMbps !== void 0) this.config.resources.maxBandwidthMbps = limits.maxBandwidthMbps;
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
//#endregion
|
|
13
150
|
//#region src/svrn/config.ts
|
|
14
151
|
/**
|
|
15
152
|
* ANIMA-specific SVRN config management.
|
|
16
153
|
*
|
|
17
154
|
* Reads/writes SVRN configuration within the ANIMA config file (~/.anima/anima.json).
|
|
18
|
-
* The underlying SVRNNode comes from @noxsoft/svrn-node.
|
|
155
|
+
* The underlying SVRNNode comes from @noxsoft/svrn-node (optional dependency).
|
|
19
156
|
*/
|
|
20
157
|
const CONFIG_FILENAME = "anima.json";
|
|
21
158
|
async function readAnimaConfig() {
|
|
@@ -42,15 +179,36 @@ async function writeAnimaConfig(config, configPath) {
|
|
|
42
179
|
await writeFile(configPath, JSON.stringify(config, null, 2), "utf-8");
|
|
43
180
|
}
|
|
44
181
|
/**
|
|
182
|
+
* Try to dynamically load resolveConfig from @noxsoft/svrn-node.
|
|
183
|
+
* Returns null if the package is not installed.
|
|
184
|
+
*/
|
|
185
|
+
async function loadResolveConfig() {
|
|
186
|
+
try {
|
|
187
|
+
return (await import("@noxsoft/svrn-node")).resolveConfig;
|
|
188
|
+
} catch {
|
|
189
|
+
return null;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
45
193
|
* Load SVRN config from ANIMA config file, merging with defaults.
|
|
46
194
|
*/
|
|
47
195
|
async function loadSVRNConfig() {
|
|
48
196
|
const { config } = await readAnimaConfig();
|
|
49
197
|
const stateDir = resolveStateDir();
|
|
50
|
-
|
|
198
|
+
const partial = {
|
|
51
199
|
...config.svrn,
|
|
52
200
|
dataDir: config.svrn?.dataDir ?? join(stateDir, "svrn")
|
|
53
|
-
}
|
|
201
|
+
};
|
|
202
|
+
const resolveConfig = await loadResolveConfig();
|
|
203
|
+
if (resolveConfig) return resolveConfig(partial);
|
|
204
|
+
return {
|
|
205
|
+
...DEFAULT_SVRN_CONFIG,
|
|
206
|
+
...partial,
|
|
207
|
+
resources: {
|
|
208
|
+
...DEFAULT_SVRN_CONFIG.resources,
|
|
209
|
+
...partial.resources
|
|
210
|
+
}
|
|
211
|
+
};
|
|
54
212
|
}
|
|
55
213
|
/**
|
|
56
214
|
* Enable the SVRN node and persist to config.
|
|
@@ -82,8 +240,8 @@ async function updateSVRNLimits(limits) {
|
|
|
82
240
|
config.svrn = {
|
|
83
241
|
...config.svrn,
|
|
84
242
|
resources: {
|
|
85
|
-
...config.svrn?.resources
|
|
86
|
-
...limits.resources
|
|
243
|
+
...config.svrn?.resources,
|
|
244
|
+
...limits.resources
|
|
87
245
|
}
|
|
88
246
|
};
|
|
89
247
|
await writeAnimaConfig(config, path);
|
|
@@ -565,4 +723,4 @@ function findCommand(name) {
|
|
|
565
723
|
}
|
|
566
724
|
|
|
567
725
|
//#endregion
|
|
568
|
-
export { findCommand as n, loadSVRNConfig as r, commands_exports as t };
|
|
726
|
+
export { isSVRNAvailable as a, SVRNNode as i, findCommand as n, loadSVRNConfig as r, commands_exports as t };
|