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
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
validateAtStartup,
|
|
24
24
|
validateProviderReady,
|
|
25
25
|
writeTransportConfig
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-PMD5BLFS.js";
|
|
27
|
+
import "./chunk-E67KESEG.js";
|
|
28
|
+
import "./chunk-5RVOEFGT.js";
|
|
29
|
+
import "./chunk-6PA5JBUU.js";
|
|
30
|
+
import "./chunk-2IYJ4I66.js";
|
|
31
|
+
import "./chunk-XRTXYN66.js";
|
|
32
32
|
import "./chunk-GALQBVKO.js";
|
|
33
33
|
import "./chunk-O7KQG6ME.js";
|
|
34
34
|
import "./chunk-7K2YZTLD.js";
|
|
@@ -56,4 +56,4 @@ export {
|
|
|
56
56
|
validateProviderReady,
|
|
57
57
|
writeTransportConfig
|
|
58
58
|
};
|
|
59
|
-
//# sourceMappingURL=transport-config-
|
|
59
|
+
//# sourceMappingURL=transport-config-6MB2K2XC.js.map
|
|
@@ -0,0 +1,111 @@
|
|
|
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
|
+
bootstrapIdentity,
|
|
5
|
+
deriveVerifyKey,
|
|
6
|
+
init_peer_config,
|
|
7
|
+
loadPeerConfig
|
|
8
|
+
} from "./chunk-3BG3AIDP.js";
|
|
9
|
+
import "./chunk-5RVOEFGT.js";
|
|
10
|
+
import "./chunk-WC5O5KOE.js";
|
|
11
|
+
import "./chunk-XRTXYN66.js";
|
|
12
|
+
import "./chunk-GALQBVKO.js";
|
|
13
|
+
import "./chunk-O7KQG6ME.js";
|
|
14
|
+
import "./chunk-7K2YZTLD.js";
|
|
15
|
+
|
|
16
|
+
// src/cli/commands/tribe.ts
|
|
17
|
+
init_peer_config();
|
|
18
|
+
async function tribe(args) {
|
|
19
|
+
const subcommand = args[0] ?? "status";
|
|
20
|
+
switch (subcommand) {
|
|
21
|
+
case "join":
|
|
22
|
+
case "invite":
|
|
23
|
+
return await tribeEnroll(args);
|
|
24
|
+
case "status":
|
|
25
|
+
return await tribeStatus();
|
|
26
|
+
default:
|
|
27
|
+
process.stderr.write(`Unknown tribe subcommand: ${subcommand}
|
|
28
|
+
Usage: abtars tribe join --peer <host:port>
|
|
29
|
+
abtars tribe invite --peer <host:port>
|
|
30
|
+
abtars tribe status
|
|
31
|
+
`);
|
|
32
|
+
return 2;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
async function tribeEnroll(args) {
|
|
36
|
+
const peerIdx = args.indexOf("--peer");
|
|
37
|
+
if (peerIdx < 0 || !args[peerIdx + 1]) {
|
|
38
|
+
process.stderr.write("Usage: abtars tribe join --peer <host:port>\n");
|
|
39
|
+
return 1;
|
|
40
|
+
}
|
|
41
|
+
const peerArg = args[peerIdx + 1];
|
|
42
|
+
const colonIdx = peerArg.lastIndexOf(":");
|
|
43
|
+
if (colonIdx < 0) {
|
|
44
|
+
process.stderr.write(`Invalid peer address: ${peerArg} (expected host:port)
|
|
45
|
+
`);
|
|
46
|
+
return 1;
|
|
47
|
+
}
|
|
48
|
+
const host = peerArg.slice(0, colonIdx);
|
|
49
|
+
const port = parseInt(peerArg.slice(colonIdx + 1), 10);
|
|
50
|
+
if (!host || isNaN(port)) {
|
|
51
|
+
process.stderr.write(`Invalid peer address: ${peerArg}
|
|
52
|
+
`);
|
|
53
|
+
return 1;
|
|
54
|
+
}
|
|
55
|
+
bootstrapIdentity();
|
|
56
|
+
const config = loadPeerConfig();
|
|
57
|
+
const selfVerifyKey = deriveVerifyKey(config.self.signingKey);
|
|
58
|
+
process.stdout.write(`Enrolling with ${host}:${port}...
|
|
59
|
+
`);
|
|
60
|
+
const { WsPeerClient } = await import("./ws-peer-client-U3NNPOK7.js");
|
|
61
|
+
const client = new WsPeerClient("__enrolling__", { host, port, verifyKey: "" });
|
|
62
|
+
try {
|
|
63
|
+
await client.enroll(
|
|
64
|
+
config.self.tribeToken,
|
|
65
|
+
config.self.signingKey,
|
|
66
|
+
selfVerifyKey,
|
|
67
|
+
config.self.name
|
|
68
|
+
);
|
|
69
|
+
process.stdout.write(`+ Enrollment successful
|
|
70
|
+
`);
|
|
71
|
+
process.stdout.write(` Own verifyKey: ${selfVerifyKey}
|
|
72
|
+
`);
|
|
73
|
+
process.stdout.write(` Enrolled peer recorded at trust=1.
|
|
74
|
+
`);
|
|
75
|
+
return 0;
|
|
76
|
+
} catch (err) {
|
|
77
|
+
process.stderr.write(`x Enrollment failed: ${err instanceof Error ? err.message : String(err)}
|
|
78
|
+
`);
|
|
79
|
+
return 1;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
async function tribeStatus() {
|
|
83
|
+
bootstrapIdentity();
|
|
84
|
+
const config = loadPeerConfig();
|
|
85
|
+
const verifyKey = deriveVerifyKey(config.self.signingKey);
|
|
86
|
+
process.stdout.write(`Self: ${config.self.name}
|
|
87
|
+
`);
|
|
88
|
+
process.stdout.write(`VerifyKey (share out-of-band for enrollment):
|
|
89
|
+
${verifyKey}
|
|
90
|
+
|
|
91
|
+
`);
|
|
92
|
+
const peers = Object.entries(config.peers);
|
|
93
|
+
if (peers.length === 0) {
|
|
94
|
+
process.stdout.write("No enrolled peers.\n");
|
|
95
|
+
return 0;
|
|
96
|
+
}
|
|
97
|
+
process.stdout.write(`Enrolled peers (${peers.length}):
|
|
98
|
+
`);
|
|
99
|
+
for (const [name, entry] of peers) {
|
|
100
|
+
const trust = entry.trust ?? 0;
|
|
101
|
+
const trustLabel = trust === 0 ? "quarantine" : trust === 1 ? "enrolled" : trust === 2 ? "trusted" : `owner(${trust})`;
|
|
102
|
+
const transport = entry.transport ?? "http";
|
|
103
|
+
process.stdout.write(` ${name.padEnd(20)} ${entry.host}:${entry.port} trust=${trust}(${trustLabel}) transport=${transport}
|
|
104
|
+
`);
|
|
105
|
+
}
|
|
106
|
+
return 0;
|
|
107
|
+
}
|
|
108
|
+
export {
|
|
109
|
+
tribe
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=tribe-GDTFYJTK.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/cli/commands/tribe.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * tribe.ts \u2014 abtars tribe CLI (#1293).\n *\n * Commands:\n * abtars tribe join --peer <host:port> \u2014 enroll with a remote peer (initiator)\n * abtars tribe invite --peer <host:port> \u2014 same (either side can dial; protocol is symmetric)\n * abtars tribe status \u2014 print own verifyKey + list enrolled peers\n */\n\nimport { loadPeerConfig, deriveVerifyKey, bootstrapIdentity } from \"../../components/peer-config.js\";\n\nexport async function tribe(args: string[]): Promise<number> {\n const subcommand = args[0] ?? \"status\";\n\n switch (subcommand) {\n case \"join\":\n case \"invite\":\n return await tribeEnroll(args);\n case \"status\":\n return await tribeStatus();\n default:\n process.stderr.write(`Unknown tribe subcommand: ${subcommand}\\nUsage: abtars tribe join --peer <host:port>\\n abtars tribe invite --peer <host:port>\\n abtars tribe status\\n`);\n return 2;\n }\n}\n\nasync function tribeEnroll(args: string[]): Promise<number> {\n // Parse --peer host:port\n const peerIdx = args.indexOf(\"--peer\");\n if (peerIdx < 0 || !args[peerIdx + 1]) {\n process.stderr.write(\"Usage: abtars tribe join --peer <host:port>\\n\");\n return 1;\n }\n const peerArg = args[peerIdx + 1]!;\n const colonIdx = peerArg.lastIndexOf(\":\");\n if (colonIdx < 0) {\n process.stderr.write(`Invalid peer address: ${peerArg} (expected host:port)\\n`);\n return 1;\n }\n const host = peerArg.slice(0, colonIdx);\n const port = parseInt(peerArg.slice(colonIdx + 1), 10);\n if (!host || isNaN(port)) {\n process.stderr.write(`Invalid peer address: ${peerArg}\\n`);\n return 1;\n }\n\n // Ensure identity exists\n bootstrapIdentity();\n const config = loadPeerConfig();\n const selfVerifyKey = deriveVerifyKey(config.self.signingKey);\n\n process.stdout.write(`Enrolling with ${host}:${port}...\\n`);\n\n const { WsPeerClient } = await import(\"../../components/peer-transport/ws-peer-client.js\");\n const client = new WsPeerClient(\"__enrolling__\", { host, port, verifyKey: \"\" });\n\n try {\n await client.enroll(\n config.self.tribeToken,\n config.self.signingKey,\n selfVerifyKey,\n config.self.name,\n );\n process.stdout.write(`+ Enrollment successful\\n`);\n process.stdout.write(` Own verifyKey: ${selfVerifyKey}\\n`);\n process.stdout.write(` Enrolled peer recorded at trust=1.\\n`);\n return 0;\n } catch (err) {\n process.stderr.write(`x Enrollment failed: ${err instanceof Error ? err.message : String(err)}\\n`);\n return 1;\n }\n}\n\nasync function tribeStatus(): Promise<number> {\n bootstrapIdentity();\n const config = loadPeerConfig();\n const verifyKey = deriveVerifyKey(config.self.signingKey);\n\n process.stdout.write(`Self: ${config.self.name}\\n`);\n process.stdout.write(`VerifyKey (share out-of-band for enrollment):\\n ${verifyKey}\\n\\n`);\n\n const peers = Object.entries(config.peers);\n if (peers.length === 0) {\n process.stdout.write(\"No enrolled peers.\\n\");\n return 0;\n }\n\n process.stdout.write(`Enrolled peers (${peers.length}):\\n`);\n for (const [name, entry] of peers) {\n const trust = entry.trust ?? 0;\n const trustLabel = trust === 0 ? \"quarantine\" : trust === 1 ? \"enrolled\" : trust === 2 ? \"trusted\" : `owner(${trust})`;\n const transport = entry.transport ?? \"http\";\n process.stdout.write(` ${name.padEnd(20)} ${entry.host}:${entry.port} trust=${trust}(${trustLabel}) transport=${transport}\\n`);\n }\n return 0;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;AASA;AAEA,eAAsB,MAAM,MAAiC;AAC3D,QAAM,aAAa,KAAK,CAAC,KAAK;AAE9B,UAAQ,YAAY;AAAA,IAClB,KAAK;AAAA,IACL,KAAK;AACH,aAAO,MAAM,YAAY,IAAI;AAAA,IAC/B,KAAK;AACH,aAAO,MAAM,YAAY;AAAA,IAC3B;AACE,cAAQ,OAAO,MAAM,6BAA6B,UAAU;AAAA;AAAA;AAAA;AAAA,CAA4H;AACxL,aAAO;AAAA,EACX;AACF;AAEA,eAAe,YAAY,MAAiC;AAE1D,QAAM,UAAU,KAAK,QAAQ,QAAQ;AACrC,MAAI,UAAU,KAAK,CAAC,KAAK,UAAU,CAAC,GAAG;AACrC,YAAQ,OAAO,MAAM,+CAA+C;AACpE,WAAO;AAAA,EACT;AACA,QAAM,UAAU,KAAK,UAAU,CAAC;AAChC,QAAM,WAAW,QAAQ,YAAY,GAAG;AACxC,MAAI,WAAW,GAAG;AAChB,YAAQ,OAAO,MAAM,yBAAyB,OAAO;AAAA,CAAyB;AAC9E,WAAO;AAAA,EACT;AACA,QAAM,OAAO,QAAQ,MAAM,GAAG,QAAQ;AACtC,QAAM,OAAO,SAAS,QAAQ,MAAM,WAAW,CAAC,GAAG,EAAE;AACrD,MAAI,CAAC,QAAQ,MAAM,IAAI,GAAG;AACxB,YAAQ,OAAO,MAAM,yBAAyB,OAAO;AAAA,CAAI;AACzD,WAAO;AAAA,EACT;AAGA,oBAAkB;AAClB,QAAM,SAAS,eAAe;AAC9B,QAAM,gBAAgB,gBAAgB,OAAO,KAAK,UAAU;AAE5D,UAAQ,OAAO,MAAM,kBAAkB,IAAI,IAAI,IAAI;AAAA,CAAO;AAE1D,QAAM,EAAE,aAAa,IAAI,MAAM,OAAO,8BAAmD;AACzF,QAAM,SAAS,IAAI,aAAa,iBAAiB,EAAE,MAAM,MAAM,WAAW,GAAG,CAAC;AAE9E,MAAI;AACF,UAAM,OAAO;AAAA,MACX,OAAO,KAAK;AAAA,MACZ,OAAO,KAAK;AAAA,MACZ;AAAA,MACA,OAAO,KAAK;AAAA,IACd;AACA,YAAQ,OAAO,MAAM;AAAA,CAA2B;AAChD,YAAQ,OAAO,MAAM,oBAAoB,aAAa;AAAA,CAAI;AAC1D,YAAQ,OAAO,MAAM;AAAA,CAAwC;AAC7D,WAAO;AAAA,EACT,SAAS,KAAK;AACZ,YAAQ,OAAO,MAAM,wBAAwB,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG,CAAC;AAAA,CAAI;AACjG,WAAO;AAAA,EACT;AACF;AAEA,eAAe,cAA+B;AAC5C,oBAAkB;AAClB,QAAM,SAAS,eAAe;AAC9B,QAAM,YAAY,gBAAgB,OAAO,KAAK,UAAU;AAExD,UAAQ,OAAO,MAAM,SAAS,OAAO,KAAK,IAAI;AAAA,CAAI;AAClD,UAAQ,OAAO,MAAM;AAAA,IAAoD,SAAS;AAAA;AAAA,CAAM;AAExF,QAAM,QAAQ,OAAO,QAAQ,OAAO,KAAK;AACzC,MAAI,MAAM,WAAW,GAAG;AACtB,YAAQ,OAAO,MAAM,sBAAsB;AAC3C,WAAO;AAAA,EACT;AAEA,UAAQ,OAAO,MAAM,mBAAmB,MAAM,MAAM;AAAA,CAAM;AAC1D,aAAW,CAAC,MAAM,KAAK,KAAK,OAAO;AACjC,UAAM,QAAQ,MAAM,SAAS;AAC7B,UAAM,aAAa,UAAU,IAAI,eAAe,UAAU,IAAI,aAAa,UAAU,IAAI,YAAY,SAAS,KAAK;AACnH,UAAM,YAAY,MAAM,aAAa;AACrC,YAAQ,OAAO,MAAM,KAAK,KAAK,OAAO,EAAE,CAAC,IAAI,MAAM,IAAI,IAAI,MAAM,IAAI,WAAW,KAAK,IAAI,UAAU,gBAAgB,SAAS;AAAA,CAAI;AAAA,EAClI;AACA,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -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
|
update
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-IY6UKLPS.js";
|
|
6
|
+
import "./chunk-HGSHCQ5F.js";
|
|
7
7
|
import "./chunk-YDY6QVWJ.js";
|
|
8
8
|
import "./chunk-5NY2YULC.js";
|
|
9
9
|
import "./chunk-O7KQG6ME.js";
|
|
@@ -11,4 +11,4 @@ import "./chunk-7K2YZTLD.js";
|
|
|
11
11
|
export {
|
|
12
12
|
update
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=update-
|
|
14
|
+
//# sourceMappingURL=update-HGQAOC5L.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
readUsage,
|
|
8
8
|
recordUsage,
|
|
9
9
|
resetUsage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6B5ZFUPD.js";
|
|
11
11
|
import "./chunk-7K2YZTLD.js";
|
|
12
12
|
export {
|
|
13
13
|
flushUsage,
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
recordUsage,
|
|
18
18
|
resetUsage
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=usage-tracker-
|
|
20
|
+
//# sourceMappingURL=usage-tracker-SR4BI6ZT.js.map
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
init_user_registry,
|
|
6
6
|
loadUsers,
|
|
7
7
|
setUserRegistryOverride
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-E7XD5UGB.js";
|
|
9
|
+
import "./chunk-6PA5JBUU.js";
|
|
10
|
+
import "./chunk-XRTXYN66.js";
|
|
11
11
|
import "./chunk-GALQBVKO.js";
|
|
12
12
|
import "./chunk-O7KQG6ME.js";
|
|
13
13
|
import "./chunk-7K2YZTLD.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
loadUsers,
|
|
18
18
|
setUserRegistryOverride
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=user-registry-
|
|
20
|
+
//# sourceMappingURL=user-registry-4PACZJIJ.js.map
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
logInfo,
|
|
6
|
+
logWarn
|
|
7
|
+
} from "./chunk-XRTXYN66.js";
|
|
8
|
+
import "./chunk-GALQBVKO.js";
|
|
9
|
+
import "./chunk-O7KQG6ME.js";
|
|
10
|
+
import "./chunk-7K2YZTLD.js";
|
|
11
|
+
|
|
12
|
+
// src/boot/wire-platform.ts
|
|
13
|
+
init_logger();
|
|
14
|
+
var TAG = "boot";
|
|
15
|
+
async function wireTelegram(ctx) {
|
|
16
|
+
const adapter = ctx.telegramAdapter;
|
|
17
|
+
if (!adapter || !ctx.pipelineDeps || !ctx.transport) return;
|
|
18
|
+
adapter.setMessageHandler({
|
|
19
|
+
pipeline: ctx.pipelineDeps,
|
|
20
|
+
conversationBuffer: ctx.conversationBuffer,
|
|
21
|
+
transport: ctx.transport,
|
|
22
|
+
memory: ctx.memory,
|
|
23
|
+
sessionManager: ctx.sessionManager,
|
|
24
|
+
actionGate: ctx.actionGate
|
|
25
|
+
});
|
|
26
|
+
const mainChatId = ctx.config.mainChatId;
|
|
27
|
+
if (mainChatId) {
|
|
28
|
+
const { setSendDocument } = await import("./tool-registry-JJMWCQKZ.js");
|
|
29
|
+
setSendDocument((path, caption) => adapter.sendDocument(String(mainChatId), path, caption));
|
|
30
|
+
if (ctx.actionGate) {
|
|
31
|
+
const api = adapter.api;
|
|
32
|
+
const chatId = String(mainChatId);
|
|
33
|
+
ctx.actionGate.setNotify(async (text, buttons) => {
|
|
34
|
+
const opts = {};
|
|
35
|
+
if (buttons.length > 0) {
|
|
36
|
+
opts["reply_markup"] = { inline_keyboard: [buttons.map((b) => ({ text: b.text, callback_data: b.data }))] };
|
|
37
|
+
}
|
|
38
|
+
await api.sendMessage(chatId, text, opts);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
logInfo(TAG, "Telegram: full pipeline wired");
|
|
43
|
+
}
|
|
44
|
+
async function wireDiscord(ctx) {
|
|
45
|
+
const adapter = ctx.discordAdapter;
|
|
46
|
+
if (!adapter || !ctx.pipelineDeps || !ctx.transport) return;
|
|
47
|
+
adapter.setMessageHandler({
|
|
48
|
+
pipeline: ctx.pipelineDeps,
|
|
49
|
+
transport: ctx.transport,
|
|
50
|
+
memory: ctx.memory,
|
|
51
|
+
conversationBuffer: ctx.conversationBuffer
|
|
52
|
+
});
|
|
53
|
+
logInfo(TAG, "Discord: full pipeline wired");
|
|
54
|
+
}
|
|
55
|
+
async function wireIrc(ctx) {
|
|
56
|
+
const adapter = ctx.platformAdapters.get("irc");
|
|
57
|
+
if (!adapter || !ctx.pipelineDeps) return;
|
|
58
|
+
const pipelineDeps = ctx.pipelineDeps;
|
|
59
|
+
if ("setMessageHandler" in adapter) {
|
|
60
|
+
const { handleInboundMessage } = await import("./message-pipeline-GRDRWONR.js");
|
|
61
|
+
adapter.setMessageHandler((msg) => {
|
|
62
|
+
void handleInboundMessage(msg, adapter, pipelineDeps);
|
|
63
|
+
});
|
|
64
|
+
const { setIrcSend } = await import("./tool-registry-JJMWCQKZ.js");
|
|
65
|
+
setIrcSend((channel, message) => {
|
|
66
|
+
adapter.sendMessage(channel, message);
|
|
67
|
+
});
|
|
68
|
+
logInfo(TAG, "IRC: full pipeline wired");
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
async function drainRecoveryQueue(ctx) {
|
|
72
|
+
const queue = ctx._recoveryQueue;
|
|
73
|
+
if (!queue?.length || !ctx.pipelineDeps) return;
|
|
74
|
+
const pipelineDeps = ctx.pipelineDeps;
|
|
75
|
+
const { handleInboundMessage } = await import("./message-pipeline-GRDRWONR.js");
|
|
76
|
+
logInfo(TAG, `Draining ${queue.length} queued message(s) from recovery handler`);
|
|
77
|
+
for (const { msg, adapter } of queue) {
|
|
78
|
+
handleInboundMessage(msg, adapter, pipelineDeps).catch((err) => logWarn(TAG, `Drain error: ${err}`));
|
|
79
|
+
}
|
|
80
|
+
queue.length = 0;
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
drainRecoveryQueue,
|
|
84
|
+
wireDiscord,
|
|
85
|
+
wireIrc,
|
|
86
|
+
wireTelegram
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=wire-platform-KKPWNNNQ.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/boot/wire-platform.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * wire-platform.ts \u2014 idempotent per-platform pipeline wiring (#1306).\n *\n * Called from two sites:\n * 1. phasePipelineDeps (boot path) \u2014 after ctx.pipelineDeps is set.\n * 2. factory.create() in phasePlatformsConnect (retry path) \u2014 when a new\n * adapter instance is created after phasePipelineDeps already completed.\n *\n * Each function is a no-op when its prerequisite (adapter + pipelineDeps) is\n * absent, so it is safe to call unconditionally from both paths.\n */\n\nimport { logInfo, logWarn } from \"../components/logger.js\";\nimport type { BootCtx } from \"./context.js\";\n\nconst TAG = \"boot\";\n\n/** Wire the full Telegram pipeline onto ctx.telegramAdapter. Idempotent. */\nexport async function wireTelegram(ctx: BootCtx): Promise<void> {\n const adapter = ctx.telegramAdapter;\n if (!adapter || !ctx.pipelineDeps || !ctx.transport) return;\n\n adapter.setMessageHandler({\n pipeline: ctx.pipelineDeps,\n conversationBuffer: ctx.conversationBuffer,\n transport: ctx.transport,\n memory: ctx.memory,\n sessionManager: ctx.sessionManager,\n actionGate: ctx.actionGate,\n });\n\n // Re-bind send_document tool + ActionGate notify to THIS adapter instance.\n // These are stateful globals that must always point to the live instance.\n const mainChatId = ctx.config.mainChatId;\n if (mainChatId) {\n const { setSendDocument } = await import(\"../components/transport/tool-registry.js\");\n setSendDocument((path, caption) => adapter.sendDocument(String(mainChatId), path, caption));\n if (ctx.actionGate) {\n const api = (adapter as unknown as { api: { sendMessage(chatId: string, text: string, opts?: unknown): Promise<unknown> } }).api;\n const chatId = String(mainChatId);\n ctx.actionGate.setNotify(async (text: string, buttons: Array<{ text: string; data: string }>) => {\n const opts: Record<string, unknown> = {};\n if (buttons.length > 0) {\n opts[\"reply_markup\"] = { inline_keyboard: [buttons.map(b => ({ text: b.text, callback_data: b.data }))] };\n }\n await api.sendMessage(chatId, text, opts);\n });\n }\n }\n\n logInfo(TAG, \"Telegram: full pipeline wired\");\n}\n\n/** Wire the full Discord pipeline onto ctx.discordAdapter. Idempotent. */\nexport async function wireDiscord(ctx: BootCtx): Promise<void> {\n const adapter = ctx.discordAdapter;\n if (!adapter || !ctx.pipelineDeps || !ctx.transport) return;\n\n adapter.setMessageHandler({\n pipeline: ctx.pipelineDeps,\n transport: ctx.transport,\n memory: ctx.memory,\n conversationBuffer: ctx.conversationBuffer,\n });\n\n logInfo(TAG, \"Discord: full pipeline wired\");\n}\n\n/** Wire the full IRC pipeline + send tool onto the IRC adapter. Idempotent. */\nexport async function wireIrc(ctx: BootCtx): Promise<void> {\n const adapter = ctx.platformAdapters.get(\"irc\");\n if (!adapter || !ctx.pipelineDeps) return;\n\n const pipelineDeps = ctx.pipelineDeps;\n\n if (\"setMessageHandler\" in adapter) {\n const { handleInboundMessage } = await import(\"../components/message-pipeline.js\");\n (adapter as unknown as { setMessageHandler(cb: (msg: unknown) => void): void })\n .setMessageHandler((msg) => { void handleInboundMessage(msg as never, adapter as never, pipelineDeps); });\n\n const { setIrcSend } = await import(\"../components/transport/tool-registry.js\");\n setIrcSend((channel, message) => { adapter.sendMessage(channel, message); });\n\n logInfo(TAG, \"IRC: full pipeline wired\");\n }\n}\n\n/** Drain messages queued by the recovery handler while the pipeline was down. */\nexport async function drainRecoveryQueue(ctx: BootCtx): Promise<void> {\n const queue = (ctx as unknown as { _recoveryQueue?: Array<{ msg: unknown; adapter: unknown }> })._recoveryQueue;\n if (!queue?.length || !ctx.pipelineDeps) return;\n\n const pipelineDeps = ctx.pipelineDeps;\n const { handleInboundMessage } = await import(\"../components/message-pipeline.js\");\n\n logInfo(TAG, `Draining ${queue.length} queued message(s) from recovery handler`);\n for (const { msg, adapter } of queue) {\n handleInboundMessage(msg as never, adapter as never, pipelineDeps)\n .catch(err => logWarn(TAG, `Drain error: ${err}`));\n }\n queue.length = 0;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAYA;AAGA,IAAM,MAAM;AAGZ,eAAsB,aAAa,KAA6B;AAC9D,QAAM,UAAU,IAAI;AACpB,MAAI,CAAC,WAAW,CAAC,IAAI,gBAAgB,CAAC,IAAI,UAAW;AAErD,UAAQ,kBAAkB;AAAA,IACxB,UAAU,IAAI;AAAA,IACd,oBAAoB,IAAI;AAAA,IACxB,WAAW,IAAI;AAAA,IACf,QAAQ,IAAI;AAAA,IACZ,gBAAgB,IAAI;AAAA,IACpB,YAAY,IAAI;AAAA,EAClB,CAAC;AAID,QAAM,aAAa,IAAI,OAAO;AAC9B,MAAI,YAAY;AACd,UAAM,EAAE,gBAAgB,IAAI,MAAM,OAAO,6BAA0C;AACnF,oBAAgB,CAAC,MAAM,YAAY,QAAQ,aAAa,OAAO,UAAU,GAAG,MAAM,OAAO,CAAC;AAC1F,QAAI,IAAI,YAAY;AAClB,YAAM,MAAO,QAAgH;AAC7H,YAAM,SAAS,OAAO,UAAU;AAChC,UAAI,WAAW,UAAU,OAAO,MAAc,YAAmD;AAC/F,cAAM,OAAgC,CAAC;AACvC,YAAI,QAAQ,SAAS,GAAG;AACtB,eAAK,cAAc,IAAI,EAAE,iBAAiB,CAAC,QAAQ,IAAI,QAAM,EAAE,MAAM,EAAE,MAAM,eAAe,EAAE,KAAK,EAAE,CAAC,EAAE;AAAA,QAC1G;AACA,cAAM,IAAI,YAAY,QAAQ,MAAM,IAAI;AAAA,MAC1C,CAAC;AAAA,IACH;AAAA,EACF;AAEA,UAAQ,KAAK,+BAA+B;AAC9C;AAGA,eAAsB,YAAY,KAA6B;AAC7D,QAAM,UAAU,IAAI;AACpB,MAAI,CAAC,WAAW,CAAC,IAAI,gBAAgB,CAAC,IAAI,UAAW;AAErD,UAAQ,kBAAkB;AAAA,IACxB,UAAU,IAAI;AAAA,IACd,WAAW,IAAI;AAAA,IACf,QAAQ,IAAI;AAAA,IACZ,oBAAoB,IAAI;AAAA,EAC1B,CAAC;AAED,UAAQ,KAAK,8BAA8B;AAC7C;AAGA,eAAsB,QAAQ,KAA6B;AACzD,QAAM,UAAU,IAAI,iBAAiB,IAAI,KAAK;AAC9C,MAAI,CAAC,WAAW,CAAC,IAAI,aAAc;AAEnC,QAAM,eAAe,IAAI;AAEzB,MAAI,uBAAuB,SAAS;AAClC,UAAM,EAAE,qBAAqB,IAAI,MAAM,OAAO,gCAAmC;AACjF,IAAC,QACE,kBAAkB,CAAC,QAAQ;AAAE,WAAK,qBAAqB,KAAc,SAAkB,YAAY;AAAA,IAAG,CAAC;AAE1G,UAAM,EAAE,WAAW,IAAI,MAAM,OAAO,6BAA0C;AAC9E,eAAW,CAAC,SAAS,YAAY;AAAE,cAAQ,YAAY,SAAS,OAAO;AAAA,IAAG,CAAC;AAE3E,YAAQ,KAAK,0BAA0B;AAAA,EACzC;AACF;AAGA,eAAsB,mBAAmB,KAA6B;AACpE,QAAM,QAAS,IAAkF;AACjG,MAAI,CAAC,OAAO,UAAU,CAAC,IAAI,aAAc;AAEzC,QAAM,eAAe,IAAI;AACzB,QAAM,EAAE,qBAAqB,IAAI,MAAM,OAAO,gCAAmC;AAEjF,UAAQ,KAAK,YAAY,MAAM,MAAM,0CAA0C;AAC/E,aAAW,EAAE,KAAK,QAAQ,KAAK,OAAO;AACpC,yBAAqB,KAAc,SAAkB,YAAY,EAC9D,MAAM,SAAO,QAAQ,KAAK,gBAAgB,GAAG,EAAE,CAAC;AAAA,EACrD;AACA,QAAM,SAAS;AACjB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|