abtars 0.3.4-alpha.7 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/{_registry.generated-WGR4WOPT.js → _registry.generated-AVR7DK2A.js} +17 -14
- package/bundle/{_registry.generated-WGR4WOPT.js.map → _registry.generated-AVR7DK2A.js.map} +1 -1
- package/bundle/{abmind-lazy-7Z44NODV.js → abmind-lazy-E3YCFKQ5.js} +15 -5
- package/bundle/abtars-browser.js +4 -4
- package/bundle/abtars-cli.js +23 -13
- package/bundle/abtars-cli.js.map +2 -2
- package/bundle/abtars-restart.js +3 -3
- package/bundle/abtars-task.js +3 -3
- package/bundle/abtars-task.js.map +2 -2
- package/bundle/abtars.js +610 -455
- package/bundle/abtars.js.map +4 -4
- package/bundle/{acp-raw-client-E6FM45NC.js → acp-raw-client-UCNK3OTU.js} +2 -2
- package/bundle/{action-gate-G2V47NHW.js → action-gate-V4FCBHFB.js} +2 -2
- package/bundle/{agent-api-adapter-YAHKQMMZ.js → agent-api-adapter-7HEPYSIN.js} +3 -3
- package/bundle/{agent-api-rate-limit-WCFXJMGY.js → agent-api-rate-limit-RZSAM3SW.js} +4 -4
- package/bundle/{agent-registry-GI6CLT3Z.js → agent-registry-46A2R5KP.js} +7 -7
- package/bundle/{bootstrap-X2QYIZIJ.js → bootstrap-MIHJJSWU.js} +2 -2
- package/bundle/{bridge-lock-transport-4ZH7QTJP.js → bridge-lock-transport-7RSN7OLJ.js} +4 -4
- package/bundle/{browser-DMARZJIN.js → browser-F6BCWJWW.js} +6 -6
- package/bundle/{budget-45QOBDWA.js → budget-WUM3SPKW.js} +3 -3
- package/bundle/{capability-JFWX3IQF.js → capability-QVRKGRFC.js} +5 -5
- package/bundle/{chunk-YSKCQH6E.js → chunk-2IYJ4I66.js} +2 -2
- package/bundle/{chunk-KTYGKPYM.js → chunk-2NLUT5S2.js} +6 -6
- package/bundle/chunk-3BG3AIDP.js +191 -0
- package/bundle/chunk-3BG3AIDP.js.map +7 -0
- package/bundle/{chunk-OKAQICWY.js → chunk-3GQX34S2.js} +3 -3
- package/bundle/{chunk-QROWBWLL.js → chunk-3XZ773BS.js} +2 -2
- package/bundle/{chunk-DYBW4XXL.js → chunk-467SRLLR.js} +2 -2
- package/bundle/{chunk-LGP6TYFI.js → chunk-4AILRHUI.js} +97 -8
- package/bundle/chunk-4AILRHUI.js.map +7 -0
- package/bundle/{chunk-GPZNXY2U.js → chunk-4S3H4OK7.js} +4 -4
- package/bundle/{chunk-NDCRWEEJ.js → chunk-4Y5MJQRE.js} +6 -6
- package/bundle/{chunk-FRKW6LWB.js → chunk-55UWKI5C.js} +3 -3
- package/bundle/{chunk-4UL3KINB.js → chunk-5PNJFDSW.js} +8 -8
- package/bundle/{chunk-LUNA6PM5.js → chunk-5RVOEFGT.js} +4 -2
- package/bundle/{chunk-LUNA6PM5.js.map → chunk-5RVOEFGT.js.map} +2 -2
- package/bundle/{chunk-OXTSWQCX.js → chunk-5Y3FJ2Y7.js} +2 -2
- package/bundle/{chunk-TMUYFERL.js → chunk-6B5ZFUPD.js} +2 -2
- package/bundle/{chunk-65VCEC32.js → chunk-6PA5JBUU.js} +2 -2
- package/bundle/chunk-BNXV7SZI.js +195 -0
- package/bundle/chunk-BNXV7SZI.js.map +7 -0
- package/bundle/{chunk-AFREM7FX.js → chunk-CK7YTA2F.js} +2 -2
- package/bundle/{chunk-NRUSRJXR.js → chunk-DZJ5QZFD.js} +2 -2
- package/bundle/{chunk-YRSMGJFP.js → chunk-E67KESEG.js} +2 -2
- package/bundle/{chunk-ZV4IWKDJ.js → chunk-E7XD5UGB.js} +3 -3
- package/bundle/{chunk-GXL7HJPT.js → chunk-EAX5ZZUL.js} +63 -39
- package/bundle/chunk-EAX5ZZUL.js.map +7 -0
- package/bundle/{chunk-PEDX56EL.js → chunk-EFGBM555.js} +2 -2
- package/bundle/{chunk-EQSG2CRM.js → chunk-FGYDIX54.js} +22 -15
- package/bundle/chunk-FGYDIX54.js.map +7 -0
- package/bundle/{chunk-XWRADSXO.js → chunk-GF6NVNA7.js} +15 -5
- package/bundle/chunk-GF6NVNA7.js.map +7 -0
- package/bundle/{chunk-SIFPBTI4.js → chunk-HGSHCQ5F.js} +113 -73
- package/bundle/chunk-HGSHCQ5F.js.map +7 -0
- package/bundle/{chunk-YRU2K3O6.js → chunk-IMIGG5EO.js} +39 -39
- package/bundle/chunk-IMIGG5EO.js.map +7 -0
- package/bundle/{chunk-W4EA4GCA.js → chunk-ITOFPJAV.js} +43 -31
- package/bundle/chunk-ITOFPJAV.js.map +7 -0
- package/bundle/{chunk-UPRZDU6T.js → chunk-IY6UKLPS.js} +3 -3
- package/bundle/{chunk-EUZDKV3C.js → chunk-J4RUFAPK.js} +3 -3
- package/bundle/{chunk-HZDLFLRP.js → chunk-J7DRPVMU.js} +35 -5
- package/bundle/chunk-J7DRPVMU.js.map +7 -0
- package/bundle/{chunk-EGL6UMAO.js → chunk-JG4BKXBN.js} +7 -1
- package/bundle/chunk-JG4BKXBN.js.map +7 -0
- package/bundle/{chunk-5B5B6EHL.js → chunk-JLWYPGWI.js} +5 -5
- package/bundle/{chunk-5QUTMUIK.js → chunk-JXYWDAHD.js} +12 -12
- package/bundle/{chunk-GRVWZO4C.js → chunk-KOSFXW2S.js} +24 -3
- package/bundle/{chunk-GRVWZO4C.js.map → chunk-KOSFXW2S.js.map} +1 -1
- package/bundle/{chunk-ONBF5DDU.js → chunk-L72RIPEC.js} +248 -182
- package/bundle/chunk-L72RIPEC.js.map +7 -0
- package/bundle/{chunk-TEFZ4JA4.js → chunk-NHPLD3C7.js} +2 -2
- package/bundle/{chunk-2KC5G3EA.js → chunk-OWUO5RS3.js} +5 -5
- package/bundle/{chunk-4MULJ5SS.js → chunk-OY4Q6AMY.js} +71 -49
- package/bundle/chunk-OY4Q6AMY.js.map +7 -0
- package/bundle/{chunk-WBTJ2E62.js → chunk-P3NODAHF.js} +2 -5
- package/bundle/{chunk-WBTJ2E62.js.map → chunk-P3NODAHF.js.map} +2 -2
- package/bundle/{chunk-BROFMHC2.js → chunk-PB5GF4FG.js} +334 -237
- package/bundle/chunk-PB5GF4FG.js.map +7 -0
- package/bundle/{chunk-WYHGNI56.js → chunk-PMD5BLFS.js} +6 -6
- package/bundle/{chunk-URQPDCK5.js → chunk-Q66LQMMZ.js} +3 -3
- package/bundle/{chunk-HKRSMUXJ.js → chunk-SC2Y5NR2.js} +71 -132
- package/bundle/chunk-SC2Y5NR2.js.map +7 -0
- package/bundle/chunk-SFL4EPCZ.js +555 -0
- package/bundle/chunk-SFL4EPCZ.js.map +7 -0
- package/bundle/{chunk-LDUOOKQY.js → chunk-SJPUNDZ3.js} +5 -5
- package/bundle/{chunk-LDUOOKQY.js.map → chunk-SJPUNDZ3.js.map} +1 -1
- package/bundle/{chunk-JQDJPUHM.js → chunk-TWB2ZGVH.js} +2 -2
- package/bundle/{chunk-IJT4KWXT.js → chunk-U4U47YE7.js} +2 -2
- package/bundle/{chunk-2FAZIA37.js → chunk-W546CU3A.js} +3 -3
- package/bundle/chunk-WC5O5KOE.js +211 -0
- package/bundle/chunk-WC5O5KOE.js.map +7 -0
- package/bundle/{chunk-JNIHEDKF.js → chunk-XPWYDNWL.js} +2 -2
- package/bundle/{chunk-GWILHZPT.js → chunk-XRTXYN66.js} +10 -7
- package/bundle/{chunk-GWILHZPT.js.map → chunk-XRTXYN66.js.map} +2 -2
- package/bundle/{chunk-EFJVUJBE.js → chunk-Y5FEFKGM.js} +6 -6
- package/bundle/chunk-YJZE4OK3.js +169 -0
- package/bundle/chunk-YJZE4OK3.js.map +7 -0
- package/bundle/{chunk-GVM5YU5I.js → chunk-Z4FZPB42.js} +2 -2
- package/bundle/{chunk-7BSQ5UQO.js → chunk-ZSIDQ66D.js} +3 -3
- package/bundle/{chunk-XX6BGTPO.js → chunk-ZZZCJJEO.js} +4 -4
- package/bundle/{commands-XYEGVUZF.js → commands-2ZW6CMLC.js} +17 -16
- package/bundle/{config-M3P5IOAI.js → config-YMY5YHKN.js} +6 -6
- package/bundle/{context-2RJHC2LE.js → context-CL2RSLII.js} +7 -5
- package/bundle/context-CL2RSLII.js.map +7 -0
- package/bundle/{daemon-TB23FFWY.js → daemon-D7SU63OY.js} +3 -3
- package/bundle/{delegation-tools-QKNYQGTQ.js → delegation-tools-WS7Z56KZ.js} +12 -12
- package/bundle/{deploy-EPDWNHJU.js → deploy-AMTVKIMU.js} +2 -2
- package/bundle/{deps-WVK553KF.js → deps-T63AVJKJ.js} +3 -3
- package/bundle/{direct-api-transport-E3LNDBJT.js → direct-api-transport-QNNY2WWP.js} +56 -33
- package/bundle/direct-api-transport-QNNY2WWP.js.map +7 -0
- package/bundle/{discord-adapter-IT3KP3VB.js → discord-adapter-ABAD56Y2.js} +21 -20
- package/bundle/{discord-adapter-IT3KP3VB.js.map → discord-adapter-ABAD56Y2.js.map} +1 -1
- package/bundle/{dns-wakeup-IDOJIXBX.js → dns-wakeup-V3LEFXPE.js} +9 -33
- package/bundle/dns-wakeup-V3LEFXPE.js.map +7 -0
- package/bundle/{doctor-probes-B54JFIW3.js → doctor-probes-O6YI6XSZ.js} +6 -2
- package/bundle/{env-schema-4JXQUOH4.js → env-schema-B5RB32DC.js} +3 -3
- package/bundle/{gossip-3C3BSNPN.js → gossip-SKRCPOBS.js} +9 -5
- package/bundle/{guardrails-DL7ZSWVN.js → guardrails-64GQ5Y5K.js} +4 -4
- package/bundle/{heartbeat-system-MVTRS4GP.js → heartbeat-system-X4MUTKJD.js} +6 -6
- package/bundle/{heartbeat-tier3-ABWL3P7M.js → heartbeat-tier3-2PTPWEQQ.js} +53 -76
- package/bundle/heartbeat-tier3-2PTPWEQQ.js.map +7 -0
- package/bundle/{hook-system-M3POLUIB.js → hook-system-YB635OC4.js} +3 -3
- package/bundle/{hotskills-FWX4QI7V.js → hotskills-Q75D2DK3.js} +5 -5
- package/bundle/{install-OS3CU7NF.js → install-RFKKFSGS.js} +17 -30
- package/bundle/install-RFKKFSGS.js.map +7 -0
- package/bundle/{install-manifest-5PPWMD2W.js → install-manifest-J7ICPCJN.js} +2 -2
- package/bundle/{irc-adapter-PTTZD32W.js → irc-adapter-TVEV4R6H.js} +3 -3
- package/bundle/{irc-config-CP7ZMUOX.js → irc-config-M676FOFI.js} +4 -4
- package/bundle/{kanban-board-M326B2XJ.js → kanban-board-DLEJUCNN.js} +9 -7
- package/bundle/{kanban-channel-IJ52OMNA.js → kanban-channel-XOLUHJZJ.js} +6 -6
- package/bundle/kanban-delivery-C4QPBNPX.js +45 -0
- package/bundle/kanban-delivery-C4QPBNPX.js.map +7 -0
- package/bundle/{lazy-require-KCRVT4SI.js → lazy-require-JKQSALXN.js} +3 -3
- package/bundle/{logger-OWCSNYCA.js → logger-3EGHBD4R.js} +2 -2
- package/bundle/{main-chat-ZNUZCTNS.js → main-chat-3H63REKK.js} +4 -4
- package/bundle/{master-user-HSKM4ZFN.js → master-user-MUBUP3KD.js} +5 -5
- package/bundle/{media-utils-3ZYOD7SK.js → media-utils-HUUIALAJ.js} +3 -3
- package/bundle/{message-pipeline-P5GAQU4Z.js → message-pipeline-GRDRWONR.js} +17 -16
- package/bundle/meta.json +3699 -3138
- package/bundle/{metrics-collector-L3VPEHII.js → metrics-collector-YMUGY3PI.js} +31 -2
- package/bundle/metrics-collector-YMUGY3PI.js.map +7 -0
- package/bundle/{model-health-registry-MLEIZSTV.js → model-health-registry-QADMFQFQ.js} +2 -2
- package/bundle/{nerve-IGSXBKZZ.js → nerve-QPAEBRKX.js} +3 -3
- package/bundle/{notification-BFSIEECG.js → notification-3JICGXWU.js} +6 -6
- package/bundle/{openrouter-credits-NTVZDRYM.js → openrouter-credits-7NEIPYJN.js} +3 -3
- package/bundle/{orc-tools-4CHEFWSN.js → orc-tools-UZVPONKY.js} +5 -3
- package/bundle/{peer-auth-QC4EF2PM.js → peer-auth-RI43DKJE.js} +24 -15
- package/bundle/{peer-client-RGEU5HOK.js → peer-client-UITTMWJ2.js} +34 -29
- package/bundle/peer-client-UITTMWJ2.js.map +7 -0
- package/bundle/{peer-config-TN55LFDC.js → peer-config-URM7DCW6.js} +9 -4
- package/bundle/{peer-transport-I6JPLFZ2.js → peer-transport-SI7I72DB.js} +12 -10
- package/bundle/{phase-transport-PGKU2KD4.js → phase-transport-ESWWACZI.js} +17 -17
- package/bundle/{reconcile-CTFCLQRN.js → reconcile-GFDQYNBD.js} +3 -3
- package/bundle/{reconciler-EBKH3JNU.js → reconciler-IEUJXJN2.js} +12 -12
- package/bundle/{restore-IFHPI7I7.js → restore-FARTGLQQ.js} +3 -3
- package/bundle/{rollback-ANRI3T5Z.js → rollback-GEWPZABG.js} +2 -2
- package/bundle/{sandbox-runtime-QROWHDCS.js → sandbox-runtime-DV6E25J6.js} +2 -2
- package/bundle/{self-healer-utils-IFAYOQO2.js → self-healer-utils-P4SKNNEM.js} +3 -3
- package/bundle/{sha-tracker-ZWBP6CIJ.js → sha-tracker-77SHLYNY.js} +3 -3
- package/bundle/{skill-session-BMSRQSHV.js → skill-session-5HSMXY54.js} +3 -3
- package/bundle/{skill-stats-JORH5DGM.js → skill-stats-MI3RSWWL.js} +4 -4
- package/bundle/{skill-watcher-E4MGLKLS.js → skill-watcher-5L7JE6TN.js} +4 -4
- package/bundle/{sleep-36XS6MHJ.js → sleep-I4JFASCY.js} +11 -8
- package/bundle/{soul-bundle-VWAVHCZ6.js → soul-bundle-522C3IRH.js} +9 -8
- package/bundle/{spin-TI3TSVVT.js → spin-VHNGNWTD.js} +11 -11
- package/bundle/{spin-notifications-SE2HVZI7.js → spin-notifications-7NC5XZEM.js} +5 -5
- package/bundle/{spin-types-BLPYAETA.js → spin-types-C5KOQOPD.js} +7 -3
- package/bundle/{sse-parser-anthropic-A6R4Z2TB.js → sse-parser-anthropic-MMTVWHLI.js} +3 -3
- package/bundle/{sse-parser-responses-HSZY3QGJ.js → sse-parser-responses-3AOFN64C.js} +3 -3
- package/bundle/{ssrf-guard-O6SHIK6Q.js → ssrf-guard-U2JA72TC.js} +3 -3
- package/bundle/{start-7QZIWO3S.js → start-H5IUFAWF.js} +4 -2
- package/bundle/{start-7QZIWO3S.js.map → start-H5IUFAWF.js.map} +2 -2
- package/bundle/{stt-LGVPXMVR.js → stt-PSOPPBV4.js} +4 -4
- package/bundle/{system-status-JZU5FO7B.js → system-status-4LYGOFNO.js} +38 -24
- package/bundle/system-status-4LYGOFNO.js.map +7 -0
- package/bundle/{task-store-W5BFIAIH.js → task-store-MNCW42BW.js} +4 -4
- package/bundle/{telegram-adapter-H6PMFPMB.js → telegram-adapter-O6KIZDY6.js} +69 -46
- package/bundle/telegram-adapter-O6KIZDY6.js.map +7 -0
- package/bundle/{tool-registry-IZX2IOBM.js → tool-registry-JJMWCQKZ.js} +26 -24
- package/bundle/{tool-sandbox-4UC6GAKA.js → tool-sandbox-CNL6V6IH.js} +4 -4
- package/bundle/{transport-config-KBF5W2DP.js → transport-config-6MB2K2XC.js} +7 -7
- package/bundle/tribe-GDTFYJTK.js +111 -0
- package/bundle/tribe-GDTFYJTK.js.map +7 -0
- package/bundle/{update-MESYO4LO.js → update-HGQAOC5L.js} +3 -3
- package/bundle/{usage-tracker-NXD364VX.js → usage-tracker-SR4BI6ZT.js} +2 -2
- package/bundle/{user-registry-35BW4XKM.js → user-registry-4PACZJIJ.js} +4 -4
- package/bundle/wire-platform-KKPWNNNQ.js +88 -0
- package/bundle/wire-platform-KKPWNNNQ.js.map +7 -0
- package/bundle/ws-peer-client-U3NNPOK7.js +370 -0
- package/bundle/ws-peer-client-U3NNPOK7.js.map +7 -0
- package/package.json +1 -1
- package/scripts/abtars-watchdog.service +2 -1
- package/scripts/abtars-watchdog.sh +1 -5
- package/scripts/emergency-deploy.sh +2 -2
- package/scripts/emergency-update.sh +88 -41
- package/bundle/chunk-3AAENI2K.js +0 -210
- package/bundle/chunk-3AAENI2K.js.map +0 -7
- package/bundle/chunk-4MULJ5SS.js.map +0 -7
- package/bundle/chunk-4S554KLW.js +0 -105
- package/bundle/chunk-4S554KLW.js.map +0 -7
- package/bundle/chunk-5GCLBUBS.js +0 -257
- package/bundle/chunk-5GCLBUBS.js.map +0 -7
- package/bundle/chunk-BROFMHC2.js.map +0 -7
- package/bundle/chunk-EGL6UMAO.js.map +0 -7
- package/bundle/chunk-EQSG2CRM.js.map +0 -7
- package/bundle/chunk-GXL7HJPT.js.map +0 -7
- package/bundle/chunk-HKRSMUXJ.js.map +0 -7
- package/bundle/chunk-HT2BPTZY.js +0 -241
- package/bundle/chunk-HT2BPTZY.js.map +0 -7
- package/bundle/chunk-HZDLFLRP.js.map +0 -7
- package/bundle/chunk-IKUZPMVA.js +0 -82
- package/bundle/chunk-IKUZPMVA.js.map +0 -7
- package/bundle/chunk-LGP6TYFI.js.map +0 -7
- package/bundle/chunk-ONBF5DDU.js.map +0 -7
- package/bundle/chunk-RWRRGE4U.js +0 -72
- package/bundle/chunk-RWRRGE4U.js.map +0 -7
- package/bundle/chunk-SIFPBTI4.js.map +0 -7
- package/bundle/chunk-VUIX5AGB.js +0 -65
- package/bundle/chunk-VUIX5AGB.js.map +0 -7
- package/bundle/chunk-W4EA4GCA.js.map +0 -7
- package/bundle/chunk-XWRADSXO.js.map +0 -7
- package/bundle/chunk-Y76VUJSF.js +0 -75
- package/bundle/chunk-Y76VUJSF.js.map +0 -7
- package/bundle/chunk-YRU2K3O6.js.map +0 -7
- package/bundle/context-2RJHC2LE.js.map +0 -7
- package/bundle/direct-api-transport-E3LNDBJT.js.map +0 -7
- package/bundle/dns-wakeup-IDOJIXBX.js.map +0 -7
- package/bundle/heartbeat-tier3-ABWL3P7M.js.map +0 -7
- package/bundle/install-OS3CU7NF.js.map +0 -7
- package/bundle/metrics-collector-L3VPEHII.js.map +0 -7
- package/bundle/peer-client-RGEU5HOK.js.map +0 -7
- package/bundle/peer-jwt-NCCPXJRX.js +0 -18
- package/bundle/public/css/dashboard.css +0 -542
- package/bundle/public/index.html +0 -180
- package/bundle/public/js/app.js +0 -437
- package/bundle/public/memory-universe.js +0 -384
- package/bundle/stream-single-RFJNUTL6.js +0 -34
- package/bundle/stream-single-RFJNUTL6.js.map +0 -7
- package/bundle/subagent-runtime-5QUVES3W.js +0 -14
- package/bundle/system-status-JZU5FO7B.js.map +0 -7
- package/bundle/telegram-adapter-H6PMFPMB.js.map +0 -7
- package/bundle/usage-tracker-NXD364VX.js.map +0 -7
- package/bundle/user-registry-35BW4XKM.js.map +0 -7
- package/bundle/ws-peer-client-AIXCXF7V.js +0 -173
- package/bundle/ws-peer-client-AIXCXF7V.js.map +0 -7
- /package/bundle/{abmind-lazy-7Z44NODV.js.map → abmind-lazy-E3YCFKQ5.js.map} +0 -0
- /package/bundle/{acp-raw-client-E6FM45NC.js.map → acp-raw-client-UCNK3OTU.js.map} +0 -0
- /package/bundle/{action-gate-G2V47NHW.js.map → action-gate-V4FCBHFB.js.map} +0 -0
- /package/bundle/{agent-api-adapter-YAHKQMMZ.js.map → agent-api-adapter-7HEPYSIN.js.map} +0 -0
- /package/bundle/{agent-api-rate-limit-WCFXJMGY.js.map → agent-api-rate-limit-RZSAM3SW.js.map} +0 -0
- /package/bundle/{agent-registry-GI6CLT3Z.js.map → agent-registry-46A2R5KP.js.map} +0 -0
- /package/bundle/{bootstrap-X2QYIZIJ.js.map → bootstrap-MIHJJSWU.js.map} +0 -0
- /package/bundle/{bridge-lock-transport-4ZH7QTJP.js.map → bridge-lock-transport-7RSN7OLJ.js.map} +0 -0
- /package/bundle/{browser-DMARZJIN.js.map → browser-F6BCWJWW.js.map} +0 -0
- /package/bundle/{budget-45QOBDWA.js.map → budget-WUM3SPKW.js.map} +0 -0
- /package/bundle/{capability-JFWX3IQF.js.map → capability-QVRKGRFC.js.map} +0 -0
- /package/bundle/{chunk-YSKCQH6E.js.map → chunk-2IYJ4I66.js.map} +0 -0
- /package/bundle/{chunk-KTYGKPYM.js.map → chunk-2NLUT5S2.js.map} +0 -0
- /package/bundle/{chunk-OKAQICWY.js.map → chunk-3GQX34S2.js.map} +0 -0
- /package/bundle/{chunk-QROWBWLL.js.map → chunk-3XZ773BS.js.map} +0 -0
- /package/bundle/{chunk-DYBW4XXL.js.map → chunk-467SRLLR.js.map} +0 -0
- /package/bundle/{chunk-GPZNXY2U.js.map → chunk-4S3H4OK7.js.map} +0 -0
- /package/bundle/{chunk-NDCRWEEJ.js.map → chunk-4Y5MJQRE.js.map} +0 -0
- /package/bundle/{chunk-FRKW6LWB.js.map → chunk-55UWKI5C.js.map} +0 -0
- /package/bundle/{chunk-4UL3KINB.js.map → chunk-5PNJFDSW.js.map} +0 -0
- /package/bundle/{chunk-OXTSWQCX.js.map → chunk-5Y3FJ2Y7.js.map} +0 -0
- /package/bundle/{chunk-TMUYFERL.js.map → chunk-6B5ZFUPD.js.map} +0 -0
- /package/bundle/{chunk-65VCEC32.js.map → chunk-6PA5JBUU.js.map} +0 -0
- /package/bundle/{chunk-AFREM7FX.js.map → chunk-CK7YTA2F.js.map} +0 -0
- /package/bundle/{chunk-NRUSRJXR.js.map → chunk-DZJ5QZFD.js.map} +0 -0
- /package/bundle/{chunk-YRSMGJFP.js.map → chunk-E67KESEG.js.map} +0 -0
- /package/bundle/{chunk-ZV4IWKDJ.js.map → chunk-E7XD5UGB.js.map} +0 -0
- /package/bundle/{chunk-PEDX56EL.js.map → chunk-EFGBM555.js.map} +0 -0
- /package/bundle/{chunk-UPRZDU6T.js.map → chunk-IY6UKLPS.js.map} +0 -0
- /package/bundle/{chunk-EUZDKV3C.js.map → chunk-J4RUFAPK.js.map} +0 -0
- /package/bundle/{chunk-5B5B6EHL.js.map → chunk-JLWYPGWI.js.map} +0 -0
- /package/bundle/{chunk-5QUTMUIK.js.map → chunk-JXYWDAHD.js.map} +0 -0
- /package/bundle/{chunk-TEFZ4JA4.js.map → chunk-NHPLD3C7.js.map} +0 -0
- /package/bundle/{chunk-2KC5G3EA.js.map → chunk-OWUO5RS3.js.map} +0 -0
- /package/bundle/{chunk-WYHGNI56.js.map → chunk-PMD5BLFS.js.map} +0 -0
- /package/bundle/{chunk-URQPDCK5.js.map → chunk-Q66LQMMZ.js.map} +0 -0
- /package/bundle/{chunk-JQDJPUHM.js.map → chunk-TWB2ZGVH.js.map} +0 -0
- /package/bundle/{chunk-IJT4KWXT.js.map → chunk-U4U47YE7.js.map} +0 -0
- /package/bundle/{chunk-2FAZIA37.js.map → chunk-W546CU3A.js.map} +0 -0
- /package/bundle/{chunk-JNIHEDKF.js.map → chunk-XPWYDNWL.js.map} +0 -0
- /package/bundle/{chunk-EFJVUJBE.js.map → chunk-Y5FEFKGM.js.map} +0 -0
- /package/bundle/{chunk-GVM5YU5I.js.map → chunk-Z4FZPB42.js.map} +0 -0
- /package/bundle/{chunk-7BSQ5UQO.js.map → chunk-ZSIDQ66D.js.map} +0 -0
- /package/bundle/{chunk-XX6BGTPO.js.map → chunk-ZZZCJJEO.js.map} +0 -0
- /package/bundle/{commands-XYEGVUZF.js.map → commands-2ZW6CMLC.js.map} +0 -0
- /package/bundle/{config-M3P5IOAI.js.map → config-YMY5YHKN.js.map} +0 -0
- /package/bundle/{daemon-TB23FFWY.js.map → daemon-D7SU63OY.js.map} +0 -0
- /package/bundle/{delegation-tools-QKNYQGTQ.js.map → delegation-tools-WS7Z56KZ.js.map} +0 -0
- /package/bundle/{deploy-EPDWNHJU.js.map → deploy-AMTVKIMU.js.map} +0 -0
- /package/bundle/{deps-WVK553KF.js.map → deps-T63AVJKJ.js.map} +0 -0
- /package/bundle/{doctor-probes-B54JFIW3.js.map → doctor-probes-O6YI6XSZ.js.map} +0 -0
- /package/bundle/{env-schema-4JXQUOH4.js.map → env-schema-B5RB32DC.js.map} +0 -0
- /package/bundle/{gossip-3C3BSNPN.js.map → gossip-SKRCPOBS.js.map} +0 -0
- /package/bundle/{guardrails-DL7ZSWVN.js.map → guardrails-64GQ5Y5K.js.map} +0 -0
- /package/bundle/{heartbeat-system-MVTRS4GP.js.map → heartbeat-system-X4MUTKJD.js.map} +0 -0
- /package/bundle/{hook-system-M3POLUIB.js.map → hook-system-YB635OC4.js.map} +0 -0
- /package/bundle/{hotskills-FWX4QI7V.js.map → hotskills-Q75D2DK3.js.map} +0 -0
- /package/bundle/{install-manifest-5PPWMD2W.js.map → install-manifest-J7ICPCJN.js.map} +0 -0
- /package/bundle/{irc-adapter-PTTZD32W.js.map → irc-adapter-TVEV4R6H.js.map} +0 -0
- /package/bundle/{irc-config-CP7ZMUOX.js.map → irc-config-M676FOFI.js.map} +0 -0
- /package/bundle/{kanban-board-M326B2XJ.js.map → kanban-board-DLEJUCNN.js.map} +0 -0
- /package/bundle/{kanban-channel-IJ52OMNA.js.map → kanban-channel-XOLUHJZJ.js.map} +0 -0
- /package/bundle/{lazy-require-KCRVT4SI.js.map → lazy-require-JKQSALXN.js.map} +0 -0
- /package/bundle/{logger-OWCSNYCA.js.map → logger-3EGHBD4R.js.map} +0 -0
- /package/bundle/{main-chat-ZNUZCTNS.js.map → main-chat-3H63REKK.js.map} +0 -0
- /package/bundle/{master-user-HSKM4ZFN.js.map → master-user-MUBUP3KD.js.map} +0 -0
- /package/bundle/{media-utils-3ZYOD7SK.js.map → media-utils-HUUIALAJ.js.map} +0 -0
- /package/bundle/{message-pipeline-P5GAQU4Z.js.map → message-pipeline-GRDRWONR.js.map} +0 -0
- /package/bundle/{model-health-registry-MLEIZSTV.js.map → model-health-registry-QADMFQFQ.js.map} +0 -0
- /package/bundle/{nerve-IGSXBKZZ.js.map → nerve-QPAEBRKX.js.map} +0 -0
- /package/bundle/{notification-BFSIEECG.js.map → notification-3JICGXWU.js.map} +0 -0
- /package/bundle/{openrouter-credits-NTVZDRYM.js.map → openrouter-credits-7NEIPYJN.js.map} +0 -0
- /package/bundle/{orc-tools-4CHEFWSN.js.map → orc-tools-UZVPONKY.js.map} +0 -0
- /package/bundle/{peer-auth-QC4EF2PM.js.map → peer-auth-RI43DKJE.js.map} +0 -0
- /package/bundle/{peer-config-TN55LFDC.js.map → peer-config-URM7DCW6.js.map} +0 -0
- /package/bundle/{peer-jwt-NCCPXJRX.js.map → peer-transport-SI7I72DB.js.map} +0 -0
- /package/bundle/{peer-transport-I6JPLFZ2.js.map → phase-transport-ESWWACZI.js.map} +0 -0
- /package/bundle/{phase-transport-PGKU2KD4.js.map → reconcile-GFDQYNBD.js.map} +0 -0
- /package/bundle/{reconciler-EBKH3JNU.js.map → reconciler-IEUJXJN2.js.map} +0 -0
- /package/bundle/{restore-IFHPI7I7.js.map → restore-FARTGLQQ.js.map} +0 -0
- /package/bundle/{reconcile-CTFCLQRN.js.map → rollback-GEWPZABG.js.map} +0 -0
- /package/bundle/{sandbox-runtime-QROWHDCS.js.map → sandbox-runtime-DV6E25J6.js.map} +0 -0
- /package/bundle/{self-healer-utils-IFAYOQO2.js.map → self-healer-utils-P4SKNNEM.js.map} +0 -0
- /package/bundle/{rollback-ANRI3T5Z.js.map → sha-tracker-77SHLYNY.js.map} +0 -0
- /package/bundle/{skill-session-BMSRQSHV.js.map → skill-session-5HSMXY54.js.map} +0 -0
- /package/bundle/{sha-tracker-ZWBP6CIJ.js.map → skill-stats-MI3RSWWL.js.map} +0 -0
- /package/bundle/{skill-stats-JORH5DGM.js.map → skill-watcher-5L7JE6TN.js.map} +0 -0
- /package/bundle/{skill-watcher-E4MGLKLS.js.map → sleep-I4JFASCY.js.map} +0 -0
- /package/bundle/{sleep-36XS6MHJ.js.map → soul-bundle-522C3IRH.js.map} +0 -0
- /package/bundle/{soul-bundle-VWAVHCZ6.js.map → spin-VHNGNWTD.js.map} +0 -0
- /package/bundle/{spin-notifications-SE2HVZI7.js.map → spin-notifications-7NC5XZEM.js.map} +0 -0
- /package/bundle/{spin-TI3TSVVT.js.map → spin-types-C5KOQOPD.js.map} +0 -0
- /package/bundle/{sse-parser-anthropic-A6R4Z2TB.js.map → sse-parser-anthropic-MMTVWHLI.js.map} +0 -0
- /package/bundle/{sse-parser-responses-HSZY3QGJ.js.map → sse-parser-responses-3AOFN64C.js.map} +0 -0
- /package/bundle/{ssrf-guard-O6SHIK6Q.js.map → ssrf-guard-U2JA72TC.js.map} +0 -0
- /package/bundle/{spin-types-BLPYAETA.js.map → stt-PSOPPBV4.js.map} +0 -0
- /package/bundle/{stt-LGVPXMVR.js.map → task-store-MNCW42BW.js.map} +0 -0
- /package/bundle/{subagent-runtime-5QUVES3W.js.map → tool-registry-JJMWCQKZ.js.map} +0 -0
- /package/bundle/{task-store-W5BFIAIH.js.map → tool-sandbox-CNL6V6IH.js.map} +0 -0
- /package/bundle/{tool-registry-IZX2IOBM.js.map → transport-config-6MB2K2XC.js.map} +0 -0
- /package/bundle/{tool-sandbox-4UC6GAKA.js.map → update-HGQAOC5L.js.map} +0 -0
- /package/bundle/{transport-config-KBF5W2DP.js.map → usage-tracker-SR4BI6ZT.js.map} +0 -0
- /package/bundle/{update-MESYO4LO.js.map → user-registry-4PACZJIJ.js.map} +0 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __bundleCreateRequire } from 'node:module'; import { fileURLToPath as __bundleFileURLToPath } from 'node:url'; import { dirname as __bundleDirname } from 'node:path'; const require = __bundleCreateRequire(import.meta.url); const __chunk_filename = __bundleFileURLToPath(import.meta.url); const __chunk_dirname = __bundleDirname(__chunk_filename);
|
|
3
|
+
import {
|
|
4
|
+
init_logger,
|
|
5
|
+
logError,
|
|
6
|
+
logInfo,
|
|
7
|
+
logWarn
|
|
8
|
+
} from "./chunk-XRTXYN66.js";
|
|
9
|
+
import {
|
|
10
|
+
__require
|
|
11
|
+
} from "./chunk-7K2YZTLD.js";
|
|
12
|
+
|
|
13
|
+
// src/utils/abmind-lazy.ts
|
|
14
|
+
init_logger();
|
|
15
|
+
import { createRequire } from "node:module";
|
|
16
|
+
import { readFileSync, existsSync } from "node:fs";
|
|
17
|
+
import { join, dirname } from "node:path";
|
|
18
|
+
import { homedir } from "node:os";
|
|
19
|
+
import { pathToFileURL } from "node:url";
|
|
20
|
+
var ABMIND_MIN = [0, 3, 0];
|
|
21
|
+
var _mod = null;
|
|
22
|
+
var _loaded = false;
|
|
23
|
+
function resetAbmindCache() {
|
|
24
|
+
_mod = null;
|
|
25
|
+
_loaded = false;
|
|
26
|
+
}
|
|
27
|
+
function parseSemver(v) {
|
|
28
|
+
const m = /^(\d+)\.(\d+)\.(\d+)/.exec(v);
|
|
29
|
+
return m ? [Number(m[1]), Number(m[2]), Number(m[3])] : null;
|
|
30
|
+
}
|
|
31
|
+
function lt(a, b) {
|
|
32
|
+
return a[0] !== b[0] ? a[0] < b[0] : a[1] !== b[1] ? a[1] < b[1] : a[2] < b[2];
|
|
33
|
+
}
|
|
34
|
+
function isSupportedVersion(version) {
|
|
35
|
+
const p = parseSemver(version);
|
|
36
|
+
return !!p && !lt(p, ABMIND_MIN);
|
|
37
|
+
}
|
|
38
|
+
function npmRootG() {
|
|
39
|
+
try {
|
|
40
|
+
const { execSync } = __require("node:child_process");
|
|
41
|
+
const result = execSync("npm root -g", { encoding: "utf-8", timeout: 3e3 }).trim();
|
|
42
|
+
return result || null;
|
|
43
|
+
} catch {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function readVersion(pkgPath) {
|
|
48
|
+
try {
|
|
49
|
+
const raw = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
50
|
+
return typeof raw["version"] === "string" ? raw["version"] : null;
|
|
51
|
+
} catch {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function dirOfPkg(pkgJsonPath) {
|
|
56
|
+
return dirname(pkgJsonPath);
|
|
57
|
+
}
|
|
58
|
+
function resolveEntry(dir, pkgPath) {
|
|
59
|
+
try {
|
|
60
|
+
const raw = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
61
|
+
const main = typeof raw["main"] === "string" ? raw["main"] : null;
|
|
62
|
+
if (main) return join(dir, main);
|
|
63
|
+
} catch {
|
|
64
|
+
}
|
|
65
|
+
return join(dir, "dist", "src", "index.js");
|
|
66
|
+
}
|
|
67
|
+
function abmindStrategies() {
|
|
68
|
+
const req = createRequire(import.meta.url);
|
|
69
|
+
return [
|
|
70
|
+
{
|
|
71
|
+
// 1. Explicit override — escape hatch for custom installs and tests.
|
|
72
|
+
name: "ABMIND_PATH",
|
|
73
|
+
resolve() {
|
|
74
|
+
return process.env["ABMIND_PATH"]?.trim() || null;
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
// 2. Ancestor-walk from the bundle — covers KP/WSL dev `file:../abmind` link.
|
|
79
|
+
// This is the only strategy that uses Node's passive resolution.
|
|
80
|
+
name: "createRequire",
|
|
81
|
+
resolve() {
|
|
82
|
+
try {
|
|
83
|
+
return dirOfPkg(req.resolve("abmind/package.json"));
|
|
84
|
+
} catch {
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
// 3. Canonical global npm install (#1243). The real location on every
|
|
91
|
+
// production host; `npm root -g` is platform-correct regardless of
|
|
92
|
+
// whether global prefix is ~/.npm-global, /opt/homebrew, or elsewhere.
|
|
93
|
+
name: "npm-root-g",
|
|
94
|
+
resolve() {
|
|
95
|
+
const root = npmRootG();
|
|
96
|
+
return root ? join(root, "abmind") : null;
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
// 4. Dev source checkout owned by abmind (#1308) at ~/.abmind/src/abmind.
|
|
101
|
+
// Populated by `abmind update --dev` (no dir). Also the npm-absent fallback.
|
|
102
|
+
name: "releases-src",
|
|
103
|
+
resolve() {
|
|
104
|
+
return join(homedir(), ".abmind", "src", "abmind");
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
// 5. Legacy install location — for hosts that installed before the npm-global
|
|
109
|
+
// convention was adopted. Not present on current Molty/KP but kept for
|
|
110
|
+
// back-compat with older setups.
|
|
111
|
+
name: "legacy-local",
|
|
112
|
+
resolve() {
|
|
113
|
+
return join(homedir(), ".local", "lib", "node_modules", "abmind");
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
];
|
|
117
|
+
}
|
|
118
|
+
async function loadAbmind() {
|
|
119
|
+
if (_loaded) return _mod;
|
|
120
|
+
_loaded = true;
|
|
121
|
+
for (const strategy of abmindStrategies()) {
|
|
122
|
+
const dir = strategy.resolve();
|
|
123
|
+
if (!dir) continue;
|
|
124
|
+
const pkgPath = join(dir, "package.json");
|
|
125
|
+
if (!existsSync(pkgPath)) continue;
|
|
126
|
+
const ver = readVersion(pkgPath);
|
|
127
|
+
if (!ver || !isSupportedVersion(ver)) {
|
|
128
|
+
logError(
|
|
129
|
+
"boot",
|
|
130
|
+
`abmind@${ver ?? "?"} at ${dir} is below the supported floor ${ABMIND_MIN.join(".")} (strategy=${strategy.name}) \u2014 memory disabled to avoid a silent contract break. Upgrade: npm install -g abmind@latest`
|
|
131
|
+
);
|
|
132
|
+
_mod = null;
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
135
|
+
const entry = resolveEntry(dir, pkgPath);
|
|
136
|
+
try {
|
|
137
|
+
const mod = await import(pathToFileURL(entry).href);
|
|
138
|
+
logInfo("boot", `memory: enabled via abmind@${ver} (via ${strategy.name})`);
|
|
139
|
+
_mod = mod;
|
|
140
|
+
return _mod;
|
|
141
|
+
} catch (err) {
|
|
142
|
+
logWarn(
|
|
143
|
+
"boot",
|
|
144
|
+
`abmind@${ver} found at ${dir} (strategy=${strategy.name}) but failed to import: ${err instanceof Error ? err.message : String(err)} \u2014 trying next`
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
logWarn("boot", "abmind not found via any discovery strategy \u2014 running without persistent memory");
|
|
149
|
+
_mod = null;
|
|
150
|
+
return null;
|
|
151
|
+
}
|
|
152
|
+
function abmind() {
|
|
153
|
+
return _mod;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export {
|
|
157
|
+
ABMIND_MIN,
|
|
158
|
+
resetAbmindCache,
|
|
159
|
+
parseSemver,
|
|
160
|
+
isSupportedVersion,
|
|
161
|
+
npmRootG,
|
|
162
|
+
readVersion,
|
|
163
|
+
dirOfPkg,
|
|
164
|
+
resolveEntry,
|
|
165
|
+
abmindStrategies,
|
|
166
|
+
loadAbmind,
|
|
167
|
+
abmind
|
|
168
|
+
};
|
|
169
|
+
//# sourceMappingURL=chunk-YJZE4OK3.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/utils/abmind-lazy.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Lazy abmind loader \u2014 pre-loaded once at boot, then available synchronously.\n * ALL runtime access to abmind goes through here.\n *\n * If abmind is not installed, or is below the supported contract version\n * (#1243), abmind() returns null and the bridge runs without persistent\n * memory (nullMemory). A below-floor abmind is rejected loudly \u2014 never a\n * silent contract break that would quietly drop memory mid-session.\n *\n * #1286: resolution uses active, ordered discovery \u2014 NOT passive ancestor-walk\n * from the bundle path (which never finds the global install). The class of\n * \"ambient/heisenbug\" failures is killed by probing real known locations:\n * 1. ABMIND_PATH env override \u2014 escape hatch + test hook\n * 2. createRequire (ancestor-walk) \u2014 KP/WSL dev file: link\n * 3. npm root -g \u2192 <root>/abmind \u2014 canonical global install (#1243)\n * 4. ~/.abmind/src/abmind \u2014 dev source checkout (`abmind update --dev`)\n * 5. ~/.local/lib/node_modules/abmind \u2014 legacy install location\n * First valid, version-floor-passing candidate wins.\n */\nimport { createRequire } from \"node:module\";\nimport { readFileSync, existsSync } from \"node:fs\";\nimport { join, dirname } from \"node:path\";\nimport { homedir } from \"node:os\";\nimport { pathToFileURL } from \"node:url\";\nimport { logInfo, logError, logWarn } from \"../components/logger.js\";\n\ntype AbmindModule = typeof import(\"abmind\");\n\n/**\n * Minimum abmind version that provides the supported contract surface\n * (abmind SUPPORTED-SURFACE.md, #1243). Below this \u2192 memory disabled loudly.\n * Bump only when abtars starts relying on newer surface.\n */\nexport const ABMIND_MIN: readonly [number, number, number] = [0, 3, 0];\n\nlet _mod: AbmindModule | null = null;\nlet _loaded = false;\n\n/** Reset cache \u2014 called on in-process restart. */\nexport function resetAbmindCache(): void {\n _mod = null;\n _loaded = false;\n}\n\n/** Parse the leading major.minor.patch from a semver string (ignores pre-release/build). */\nexport function parseSemver(v: string): [number, number, number] | null {\n const m = /^(\\d+)\\.(\\d+)\\.(\\d+)/.exec(v);\n return m ? [Number(m[1]), Number(m[2]), Number(m[3])] : null;\n}\n\nfunction lt(a: readonly [number, number, number], b: readonly [number, number, number]): boolean {\n return a[0] !== b[0] ? a[0] < b[0] : a[1] !== b[1] ? a[1] < b[1] : a[2] < b[2];\n}\n\n/** True iff `version` is at least ABMIND_MIN (the supported contract floor). */\nexport function isSupportedVersion(version: string): boolean {\n const p = parseSemver(version);\n return !!p && !lt(p, ABMIND_MIN);\n}\n\n// \u2500\u2500 Discovery helpers \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n/** Run `npm root -g` and return the trimmed path, or null if npm is absent / errors. */\nexport function npmRootG(): string | null {\n try {\n const { execSync } = require(\"node:child_process\") as typeof import(\"node:child_process\");\n const result = execSync(\"npm root -g\", { encoding: \"utf-8\", timeout: 3000 }).trim();\n return result || null;\n } catch {\n return null;\n }\n}\n\n/** Read the `version` field from a package.json file, or null if missing/unparseable. */\nexport function readVersion(pkgPath: string): string | null {\n try {\n const raw = JSON.parse(readFileSync(pkgPath, \"utf-8\")) as Record<string, unknown>;\n return typeof raw[\"version\"] === \"string\" ? raw[\"version\"] : null;\n } catch {\n return null;\n }\n}\n\n/** Dirname of a resolved package.json path (strips the filename). */\nexport function dirOfPkg(pkgJsonPath: string): string {\n return dirname(pkgJsonPath);\n}\n\n/**\n * Resolve the absolute entry-point path for an abmind package directory.\n * Reads `main` from package.json (relative to dir); falls back to\n * `dist/src/index.js` which is the known built output location.\n */\nexport function resolveEntry(dir: string, pkgPath: string): string {\n try {\n const raw = JSON.parse(readFileSync(pkgPath, \"utf-8\")) as Record<string, unknown>;\n const main = typeof raw[\"main\"] === \"string\" ? raw[\"main\"] : null;\n if (main) return join(dir, main);\n } catch { /* fall through */ }\n return join(dir, \"dist\", \"src\", \"index.js\");\n}\n\n/** A named discovery strategy: returns a candidate abmind package directory or null. */\ninterface Strategy {\n readonly name: string;\n resolve(): string | null;\n}\n\n/**\n * Ordered discovery strategies (#1286). First valid, version-floor-passing\n * candidate wins. Pure/lazy \u2014 each resolve() is only called until one succeeds.\n *\n * Exported so tests can exercise individual strategies directly.\n */\nexport function abmindStrategies(): Strategy[] {\n const req = createRequire(import.meta.url);\n return [\n {\n // 1. Explicit override \u2014 escape hatch for custom installs and tests.\n name: \"ABMIND_PATH\",\n resolve(): string | null {\n return process.env[\"ABMIND_PATH\"]?.trim() || null;\n },\n },\n {\n // 2. Ancestor-walk from the bundle \u2014 covers KP/WSL dev `file:../abmind` link.\n // This is the only strategy that uses Node's passive resolution.\n name: \"createRequire\",\n resolve(): string | null {\n try {\n return dirOfPkg(req.resolve(\"abmind/package.json\"));\n } catch {\n return null;\n }\n },\n },\n {\n // 3. Canonical global npm install (#1243). The real location on every\n // production host; `npm root -g` is platform-correct regardless of\n // whether global prefix is ~/.npm-global, /opt/homebrew, or elsewhere.\n name: \"npm-root-g\",\n resolve(): string | null {\n const root = npmRootG();\n return root ? join(root, \"abmind\") : null;\n },\n },\n {\n // 4. Dev source checkout owned by abmind (#1308) at ~/.abmind/src/abmind.\n // Populated by `abmind update --dev` (no dir). Also the npm-absent fallback.\n name: \"releases-src\",\n resolve(): string | null {\n return join(homedir(), \".abmind\", \"src\", \"abmind\");\n },\n },\n {\n // 5. Legacy install location \u2014 for hosts that installed before the npm-global\n // convention was adopted. Not present on current Molty/KP but kept for\n // back-compat with older setups.\n name: \"legacy-local\",\n resolve(): string | null {\n return join(homedir(), \".local\", \"lib\", \"node_modules\", \"abmind\");\n },\n },\n ];\n}\n\n// \u2500\u2500 Loader \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n/**\n * Call once at boot (phase-memory). Caches the module.\n * Returns null if abmind is unavailable or below the supported version floor.\n *\n * Resolution strategy (#1286): ordered active discovery \u2014 zero dependence on\n * NODE_PATH, cwd, or launch method. See module-level comment for the strategy list.\n */\nexport async function loadAbmind(): Promise<AbmindModule | null> {\n if (_loaded) return _mod;\n _loaded = true;\n\n for (const strategy of abmindStrategies()) {\n const dir = strategy.resolve();\n if (!dir) continue;\n\n const pkgPath = join(dir, \"package.json\");\n if (!existsSync(pkgPath)) continue;\n\n const ver = readVersion(pkgPath);\n\n // Below-floor: loud error + stop. Do NOT silently fall through to an older\n // copy from a lower-priority location \u2014 that hides a real misconfig.\n if (!ver || !isSupportedVersion(ver)) {\n logError(\n \"boot\",\n `abmind@${ver ?? \"?\"} at ${dir} is below the supported floor ` +\n `${ABMIND_MIN.join(\".\")} (strategy=${strategy.name}) \u2014 memory disabled to ` +\n `avoid a silent contract break. Upgrade: npm install -g abmind@latest`,\n );\n _mod = null;\n return null;\n }\n\n const entry = resolveEntry(dir, pkgPath);\n try {\n const mod = await import(pathToFileURL(entry).href) as AbmindModule;\n logInfo(\"boot\", `memory: enabled via abmind@${ver} (via ${strategy.name})`);\n _mod = mod;\n return _mod;\n } catch (err) {\n // Import failed for this candidate (e.g. native module ABI mismatch, corrupt\n // dist). Log and try the next strategy \u2014 don't give up the whole boot.\n logWarn(\n \"boot\",\n `abmind@${ver} found at ${dir} (strategy=${strategy.name}) but failed to ` +\n `import: ${err instanceof Error ? err.message : String(err)} \u2014 trying next`,\n );\n }\n }\n\n logWarn(\"boot\", \"abmind not found via any discovery strategy \u2014 running without persistent memory\");\n _mod = null;\n return null;\n}\n\n/** Synchronous access after loadAbmind() has been called. Returns null if unavailable. */\nexport function abmind(): AbmindModule | null {\n return _mod;\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
init_logger,
|
|
5
5
|
logInfo,
|
|
6
6
|
logWarn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XRTXYN66.js";
|
|
8
8
|
import {
|
|
9
9
|
__esm,
|
|
10
10
|
__require
|
|
@@ -89,4 +89,4 @@ export {
|
|
|
89
89
|
resolveNativeDep,
|
|
90
90
|
init_lazy_require
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=chunk-
|
|
92
|
+
//# sourceMappingURL=chunk-Z4FZPB42.js.map
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { createRequire as __bundleCreateRequire } from 'node:module'; import { fileURLToPath as __bundleFileURLToPath } from 'node:url'; import { dirname as __bundleDirname } from 'node:path'; const require = __bundleCreateRequire(import.meta.url); const __chunk_filename = __bundleFileURLToPath(import.meta.url); const __chunk_dirname = __bundleDirname(__chunk_filename);
|
|
3
3
|
import {
|
|
4
4
|
sendToMainChat
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-55UWKI5C.js";
|
|
6
6
|
import {
|
|
7
7
|
init_log_and_swallow,
|
|
8
8
|
logAndSwallow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2IYJ4I66.js";
|
|
10
10
|
|
|
11
11
|
// src/components/notification.ts
|
|
12
12
|
init_log_and_swallow();
|
|
@@ -21,4 +21,4 @@ function sendNotification(ctx, msg) {
|
|
|
21
21
|
export {
|
|
22
22
|
sendNotification
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-ZSIDQ66D.js.map
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
import {
|
|
4
4
|
getEnv,
|
|
5
5
|
init_env_schema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6PA5JBUU.js";
|
|
7
7
|
import {
|
|
8
8
|
init_log_and_swallow,
|
|
9
9
|
logAndSwallow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2IYJ4I66.js";
|
|
11
11
|
import {
|
|
12
12
|
init_logger,
|
|
13
13
|
logError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XRTXYN66.js";
|
|
15
15
|
|
|
16
16
|
// src/capabilities/capability.ts
|
|
17
17
|
init_env_schema();
|
|
@@ -86,4 +86,4 @@ export {
|
|
|
86
86
|
createCapabilityApi,
|
|
87
87
|
discoverCapabilities
|
|
88
88
|
};
|
|
89
|
-
//# sourceMappingURL=chunk-
|
|
89
|
+
//# sourceMappingURL=chunk-ZZZCJJEO.js.map
|
|
@@ -6,25 +6,26 @@ import {
|
|
|
6
6
|
registerCommand,
|
|
7
7
|
triggerNewSession,
|
|
8
8
|
triggerResetSession
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PB5GF4FG.js";
|
|
10
10
|
import "./chunk-63A7ZRIH.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-3GQX34S2.js";
|
|
12
|
+
import "./chunk-JXYWDAHD.js";
|
|
13
|
+
import "./chunk-DZJ5QZFD.js";
|
|
14
|
+
import "./chunk-BNXV7SZI.js";
|
|
14
15
|
import "./chunk-YWZPKBO6.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-Y76VUJSF.js";
|
|
19
|
-
import "./chunk-4S554KLW.js";
|
|
20
|
-
import "./chunk-LUNA6PM5.js";
|
|
16
|
+
import "./chunk-YJZE4OK3.js";
|
|
17
|
+
import "./chunk-Y5FEFKGM.js";
|
|
18
|
+
import "./chunk-E7XD5UGB.js";
|
|
21
19
|
import "./chunk-R76K6L6H.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-KOSFXW2S.js";
|
|
21
|
+
import "./chunk-3BG3AIDP.js";
|
|
22
|
+
import "./chunk-5RVOEFGT.js";
|
|
23
|
+
import "./chunk-WC5O5KOE.js";
|
|
24
|
+
import "./chunk-EFGBM555.js";
|
|
24
25
|
import "./chunk-N5KN3LGD.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-6PA5JBUU.js";
|
|
27
|
+
import "./chunk-2IYJ4I66.js";
|
|
28
|
+
import "./chunk-XRTXYN66.js";
|
|
28
29
|
import "./chunk-GALQBVKO.js";
|
|
29
30
|
import "./chunk-O7KQG6ME.js";
|
|
30
31
|
import "./chunk-7K2YZTLD.js";
|
|
@@ -35,4 +36,4 @@ export {
|
|
|
35
36
|
triggerNewSession,
|
|
36
37
|
triggerResetSession
|
|
37
38
|
};
|
|
38
|
-
//# sourceMappingURL=commands-
|
|
39
|
+
//# sourceMappingURL=commands-2ZW6CMLC.js.map
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import {
|
|
4
4
|
isValidSnowflake,
|
|
5
5
|
loadAndValidateConfig
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-4Y5MJQRE.js";
|
|
7
|
+
import "./chunk-E67KESEG.js";
|
|
8
|
+
import "./chunk-E7XD5UGB.js";
|
|
9
|
+
import "./chunk-6PA5JBUU.js";
|
|
10
|
+
import "./chunk-XRTXYN66.js";
|
|
11
11
|
import {
|
|
12
12
|
abtarsHome
|
|
13
13
|
} from "./chunk-GALQBVKO.js";
|
|
@@ -18,4 +18,4 @@ export {
|
|
|
18
18
|
isValidSnowflake,
|
|
19
19
|
loadAndValidateConfig
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=config-
|
|
21
|
+
//# sourceMappingURL=config-YMY5YHKN.js.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { createRequire as __bundleCreateRequire } from 'node:module'; import { fileURLToPath as __bundleFileURLToPath } from 'node:url'; import { dirname as __bundleDirname } from 'node:path'; const require = __bundleCreateRequire(import.meta.url); const __chunk_filename = __bundleFileURLToPath(import.meta.url); const __chunk_dirname = __bundleDirname(__chunk_filename);
|
|
3
3
|
import {
|
|
4
4
|
abmind
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-YJZE4OK3.js";
|
|
6
|
+
import "./chunk-XRTXYN66.js";
|
|
7
7
|
import "./chunk-GALQBVKO.js";
|
|
8
8
|
import "./chunk-O7KQG6ME.js";
|
|
9
9
|
import "./chunk-7K2YZTLD.js";
|
|
@@ -61,16 +61,18 @@ ${TEMPLATE.replace("{budget}", String(budget))}`;
|
|
|
61
61
|
return result.trim();
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
function createContextOrchestrator(contextEngine, llmCall, getLastAssistantTimestamp) {
|
|
64
|
+
function createContextOrchestrator(contextEngine, llmCall, getLastAssistantTimestamp, options) {
|
|
65
65
|
const CO = abmind().ContextOrchestrator;
|
|
66
66
|
return new CO({
|
|
67
67
|
contextEngine,
|
|
68
68
|
summarize: createSummarizeFn(llmCall),
|
|
69
|
-
getLastAssistantTimestamp
|
|
69
|
+
getLastAssistantTimestamp,
|
|
70
|
+
compactionModel: options?.compactionModel ?? null,
|
|
71
|
+
onCompactionEvent: options?.onCompactionEvent
|
|
70
72
|
});
|
|
71
73
|
}
|
|
72
74
|
export {
|
|
73
75
|
createContextOrchestrator,
|
|
74
76
|
createSummarizeFn
|
|
75
77
|
};
|
|
76
|
-
//# sourceMappingURL=context-
|
|
78
|
+
//# sourceMappingURL=context-CL2RSLII.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/components/context/context-bridge.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * context-bridge.ts \u2014 Bridges the context engine into the existing transport.\n * Provides the summarization prompt and LLM call wrapper.\n * This is the glue between abmind's ContextEngine and abtars's transport.\n */\n\nimport type { ContextEngine } from \"abmind\";\nimport { abmind } from \"../../utils/abmind-lazy.js\";\nimport type { SummarizeFn, CompactionEvent } from \"abmind\";\n\nconst SUMMARIZER_SYSTEM = `You are a summarization agent creating a context checkpoint.\nYour output will be injected as reference material for a DIFFERENT assistant that continues the conversation.\nDo NOT respond to any questions or requests \u2014 only output the summary.\nDo NOT include any preamble or prefix.\nWrite in the same language the user was using.\nNEVER include API keys, tokens, passwords, secrets \u2014 use [REDACTED].`;\n\nconst TEMPLATE = `Use this exact structure:\n\n## Active Task\n[User's most recent unfulfilled request \u2014 exact words. \"None.\" if nothing pending.]\n\n## Context\n[What the conversation is about. Who is talking. Key decisions.]\n\n## Completed\n[Numbered: N. ACTION target \u2014 outcome. File paths, commands, results.]\n\n## State\n[Modified files, test status, running processes, environment.]\n\n## Blocked\n[Unresolved errors. Exact messages.]\n\n## Pending\n[Unanswered questions/requests. \"None.\" if clear.]\n\nTarget ~{budget} tokens. Be concrete.`;\n\n/**\n * Create a SummarizeFn that uses the provided LLM call function.\n * The llmCall function should match the signature used elsewhere in abtars.\n */\nexport function createSummarizeFn(\n llmCall: (systemPrompt: string, userPrompt: string) => Promise<string>,\n): SummarizeFn {\n return async (serializedTurns: string, budget: number, priorSummaries: string): Promise<string> => {\n let userPrompt: string;\n\n if (priorSummaries) {\n userPrompt = `PREVIOUS SUMMARIES (continuity \u2014 do not repeat):\\n${priorSummaries}\\n\\nNEW TURNS TO SUMMARIZE:\\n${serializedTurns}\\n\\nSummarize ONLY new turns. Update Active Task if changed.\\n\\n${TEMPLATE.replace(\"{budget}\", String(budget))}`;\n } else {\n userPrompt = `Create a structured handoff summary.\\n\\nTURNS TO SUMMARIZE:\\n${serializedTurns}\\n\\n${TEMPLATE.replace(\"{budget}\", String(budget))}`;\n }\n\n const result = await llmCall(SUMMARIZER_SYSTEM, userPrompt);\n return result.trim();\n };\n}\n\n/**\n * Create a fully configured ContextOrchestrator.\n * Call this once at bridge startup when memory + transport are available.\n */\nexport function createContextOrchestrator(\n contextEngine: ContextEngine,\n llmCall: (systemPrompt: string, userPrompt: string) => Promise<string>,\n getLastAssistantTimestamp: (chatId: string) => number | null,\n options?: { compactionModel?: string | null; onCompactionEvent?: (event: CompactionEvent) => void },\n): any {\n const CO = abmind()!.ContextOrchestrator;\n return new CO({\n contextEngine,\n summarize: createSummarizeFn(llmCall),\n getLastAssistantTimestamp,\n compactionModel: options?.compactionModel ?? null,\n onCompactionEvent: options?.onCompactionEvent,\n });\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;AAUA,IAAM,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAO1B,IAAM,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA0BV,SAAS,kBACd,SACa;AACb,SAAO,OAAO,iBAAyB,QAAgB,mBAA4C;AACjG,QAAI;AAEJ,QAAI,gBAAgB;AAClB,mBAAa;AAAA,EAAqD,cAAc;AAAA;AAAA;AAAA,EAAgC,eAAe;AAAA;AAAA;AAAA;AAAA,EAAmE,SAAS,QAAQ,YAAY,OAAO,MAAM,CAAC,CAAC;AAAA,IAChP,OAAO;AACL,mBAAa;AAAA;AAAA;AAAA,EAAgE,eAAe;AAAA;AAAA,EAAO,SAAS,QAAQ,YAAY,OAAO,MAAM,CAAC,CAAC;AAAA,IACjJ;AAEA,UAAM,SAAS,MAAM,QAAQ,mBAAmB,UAAU;AAC1D,WAAO,OAAO,KAAK;AAAA,EACrB;AACF;AAMO,SAAS,0BACd,eACA,SACA,2BACA,SACK;AACL,QAAM,KAAK,OAAO,EAAG;AACrB,SAAO,IAAI,GAAG;AAAA,IACZ;AAAA,IACA,WAAW,kBAAkB,OAAO;AAAA,IACpC;AAAA,IACA,iBAAiB,SAAS,mBAAmB;AAAA,IAC7C,mBAAmB,SAAS;AAAA,EAC9B,CAAC;AACH;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -7,8 +7,8 @@ import "./chunk-5NY2YULC.js";
|
|
|
7
7
|
import {
|
|
8
8
|
init_log_and_swallow,
|
|
9
9
|
logAndSwallow
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-2IYJ4I66.js";
|
|
11
|
+
import "./chunk-XRTXYN66.js";
|
|
12
12
|
import {
|
|
13
13
|
abtarsHome,
|
|
14
14
|
init_paths
|
|
@@ -296,4 +296,4 @@ Usage: abtars daemon [install|uninstall|start|stop|restart|status]
|
|
|
296
296
|
export {
|
|
297
297
|
daemon
|
|
298
298
|
};
|
|
299
|
-
//# sourceMappingURL=daemon-
|
|
299
|
+
//# sourceMappingURL=daemon-D7SU63OY.js.map
|
|
@@ -9,18 +9,18 @@ import {
|
|
|
9
9
|
setDelegationDeps,
|
|
10
10
|
spawnSessionTool,
|
|
11
11
|
terminateSessionTool
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5PNJFDSW.js";
|
|
13
|
+
import "./chunk-L72RIPEC.js";
|
|
14
|
+
import "./chunk-BNXV7SZI.js";
|
|
13
15
|
import "./chunk-MV6CJFWR.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-YSKCQH6E.js";
|
|
23
|
-
import "./chunk-GWILHZPT.js";
|
|
16
|
+
import "./chunk-CK7YTA2F.js";
|
|
17
|
+
import "./chunk-E7XD5UGB.js";
|
|
18
|
+
import "./chunk-FGYDIX54.js";
|
|
19
|
+
import "./chunk-Z4FZPB42.js";
|
|
20
|
+
import "./chunk-5Y3FJ2Y7.js";
|
|
21
|
+
import "./chunk-6PA5JBUU.js";
|
|
22
|
+
import "./chunk-2IYJ4I66.js";
|
|
23
|
+
import "./chunk-XRTXYN66.js";
|
|
24
24
|
import "./chunk-GALQBVKO.js";
|
|
25
25
|
import "./chunk-O7KQG6ME.js";
|
|
26
26
|
import "./chunk-7K2YZTLD.js";
|
|
@@ -34,4 +34,4 @@ export {
|
|
|
34
34
|
spawnSessionTool,
|
|
35
35
|
terminateSessionTool
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=delegation-tools-
|
|
37
|
+
//# sourceMappingURL=delegation-tools-WS7Z56KZ.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
deploy,
|
|
5
5
|
deployActivationCli,
|
|
6
6
|
syncSrcRepos
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HGSHCQ5F.js";
|
|
8
8
|
import "./chunk-5NY2YULC.js";
|
|
9
9
|
import "./chunk-O7KQG6ME.js";
|
|
10
10
|
import "./chunk-7K2YZTLD.js";
|
|
@@ -13,4 +13,4 @@ export {
|
|
|
13
13
|
deployActivationCli,
|
|
14
14
|
syncSrcRepos
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=deploy-
|
|
16
|
+
//# sourceMappingURL=deploy-AMTVKIMU.js.map
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
init_lazy_require,
|
|
7
7
|
installPackages,
|
|
8
8
|
isInstalled
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Z4FZPB42.js";
|
|
10
10
|
import {
|
|
11
11
|
printBanner
|
|
12
12
|
} from "./chunk-YDY6QVWJ.js";
|
|
13
13
|
import "./chunk-5NY2YULC.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-XRTXYN66.js";
|
|
15
15
|
import "./chunk-GALQBVKO.js";
|
|
16
16
|
import {
|
|
17
17
|
init_paths,
|
|
@@ -164,4 +164,4 @@ Usage: abtars deps [list|install|update|remove]
|
|
|
164
164
|
export {
|
|
165
165
|
deps
|
|
166
166
|
};
|
|
167
|
-
//# sourceMappingURL=deps-
|
|
167
|
+
//# sourceMappingURL=deps-T63AVJKJ.js.map
|