abtars 0.2.1-alpha.8 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +98 -42
- package/bundle/{_registry.generated-ADOYFJJ4.js → _registry.generated-FNJOX7VV.js} +19 -16
- package/bundle/{_registry.generated-ADOYFJJ4.js.map → _registry.generated-FNJOX7VV.js.map} +1 -1
- package/bundle/abtars-browser.js +5 -6
- package/bundle/abtars-browser.js.map +2 -2
- package/bundle/abtars-cli.js +339 -271
- package/bundle/abtars-cli.js.map +4 -4
- package/bundle/abtars-restart.js +4 -4
- package/bundle/abtars-rss.js +25 -81
- package/bundle/abtars-rss.js.map +2 -2
- package/bundle/abtars-task.js +4 -5
- package/bundle/abtars-task.js.map +2 -2
- package/bundle/abtars-todo.js +133 -0
- package/bundle/abtars-todo.js.map +7 -0
- package/bundle/abtars.js +239 -155
- package/bundle/abtars.js.map +3 -3
- package/bundle/action-gate-DYV2XQBP.js +191 -0
- package/bundle/action-gate-DYV2XQBP.js.map +7 -0
- package/bundle/{agent-api-rate-limit-C25WGSFF.js → agent-api-rate-limit-R2OFAQ3N.js} +4 -4
- package/bundle/{agent-registry-SYUFNSVB.js → agent-registry-S2MNHQYQ.js} +8 -8
- package/bundle/{bridge-lock-transport-HO545SBK.js → bridge-lock-transport-N6OGDOSE.js} +5 -5
- package/bundle/{browse-delivery-VTLEAVYA.js → browse-delivery-DXGMDMXA.js} +8 -7
- package/bundle/{browser-REIXOJ6S.js → browser-QMYGSP5W.js} +11 -10
- package/bundle/{capability-ILW3D5HS.js → capability-733TLH4W.js} +6 -6
- package/bundle/{chunk-ZVDVNSXK.js → chunk-2SWKJX64.js} +7 -7
- package/bundle/{chunk-PZE3J7ER.js → chunk-3OXQWII3.js} +2 -2
- package/bundle/{chunk-R36WIOYX.js → chunk-3X6VGRL6.js} +33 -6
- package/bundle/chunk-3X6VGRL6.js.map +7 -0
- package/bundle/{chunk-4KJ76TTE.js → chunk-4XW7YA3K.js} +3 -3
- package/bundle/{chunk-Q62SXS73.js → chunk-BBDKU4EH.js} +9 -9
- package/bundle/{chunk-EX2SRTUE.js → chunk-CYSGXNBY.js} +2 -2
- package/bundle/{chunk-LYEAHE5V.js → chunk-DCY7DGMT.js} +2 -2
- package/bundle/chunk-DGS7J4P6.js +13 -0
- package/bundle/chunk-DGS7J4P6.js.map +7 -0
- package/bundle/{chunk-LDKSCXGL.js → chunk-DHPFI7OF.js} +8 -6
- package/bundle/{chunk-LDKSCXGL.js.map → chunk-DHPFI7OF.js.map} +1 -1
- package/bundle/{chunk-G6IXMYIO.js → chunk-DO4INSXE.js} +2 -2
- package/bundle/{chunk-VA5WKN3Z.js → chunk-EGA6JQVV.js} +4 -4
- package/bundle/chunk-EKHNWFEQ.js +85 -0
- package/bundle/chunk-EKHNWFEQ.js.map +7 -0
- package/bundle/{chunk-URAQLQ2U.js → chunk-F3HMZFIL.js} +4 -4
- package/bundle/{chunk-OOKLEC6V.js → chunk-FY3QUO2L.js} +7 -7
- package/bundle/{chunk-2BY6I4P5.js → chunk-GUTRAMK3.js} +2 -2
- package/bundle/{chunk-GPL57SRN.js → chunk-H7RX7UCR.js} +3 -3
- package/bundle/{chunk-BYDUMHXT.js → chunk-HAF2AFBW.js} +2 -2
- package/bundle/{chunk-A5OJYQNU.js → chunk-HCYENZAB.js} +49 -22
- package/bundle/chunk-HCYENZAB.js.map +7 -0
- package/bundle/{chunk-OZ4IZFV4.js → chunk-HJQZP5CK.js} +9 -9
- package/bundle/{chunk-OZ4IZFV4.js.map → chunk-HJQZP5CK.js.map} +2 -2
- package/bundle/{chunk-HEHD3GG5.js → chunk-ITB2K6LI.js} +6 -13
- package/bundle/{chunk-HEHD3GG5.js.map → chunk-ITB2K6LI.js.map} +3 -3
- package/bundle/{chunk-KSEIWT4T.js → chunk-JFKOPNKL.js} +10 -10
- package/bundle/chunk-JFKOPNKL.js.map +7 -0
- package/bundle/{chunk-4BUOO6WI.js → chunk-KL5QRHHK.js} +31 -11
- package/bundle/chunk-KL5QRHHK.js.map +7 -0
- package/bundle/{chunk-KFENC7BM.js → chunk-L33WNMCP.js} +2 -2
- package/bundle/{chunk-JRG4EFMP.js → chunk-LBMETTUP.js} +3 -3
- package/bundle/{chunk-TYVI3ZWA.js → chunk-LJAG2URA.js} +10 -7
- package/bundle/chunk-LJAG2URA.js.map +7 -0
- package/bundle/{chunk-RV54J75Q.js → chunk-MHK4UPM6.js} +13 -12
- package/bundle/chunk-MHK4UPM6.js.map +7 -0
- package/bundle/chunk-NIYVCGBC.js +330 -0
- package/bundle/chunk-NIYVCGBC.js.map +7 -0
- package/bundle/{chunk-P2BZSLJJ.js → chunk-OGZXYN6E.js} +392 -125
- package/bundle/chunk-OGZXYN6E.js.map +7 -0
- package/bundle/{chunk-TOUZC6NR.js → chunk-OKMN6J4Z.js} +3 -3
- package/bundle/{chunk-CELR236Q.js → chunk-Q7CH5DA3.js} +2 -2
- package/bundle/{chunk-XZSYMCLF.js → chunk-QIAFGDRL.js} +7 -7
- package/bundle/chunk-RITEGAW6.js +138 -0
- package/bundle/chunk-RITEGAW6.js.map +7 -0
- package/bundle/{chunk-UDZIZB5F.js → chunk-RTL7HO3N.js} +3 -3
- package/bundle/{chunk-ITG6XGBS.js → chunk-SA44ITVX.js} +10 -10
- package/bundle/{chunk-3MO2MDXJ.js → chunk-SA6YEFNG.js} +3 -3
- package/bundle/{chunk-GBBTK6H2.js → chunk-SRFEIZQT.js} +4 -4
- package/bundle/{chunk-ELRAH7VL.js → chunk-VXUVKC66.js} +3 -3
- package/bundle/{chunk-X5FBUA53.js → chunk-WLAVZSVZ.js} +69 -30
- package/bundle/chunk-WLAVZSVZ.js.map +7 -0
- package/bundle/{chunk-RSWUPUNA.js → chunk-WMWI3SJ7.js} +30 -6
- package/bundle/chunk-WMWI3SJ7.js.map +7 -0
- package/bundle/{chunk-MJ6PHMOK.js → chunk-WW5F2DCO.js} +11 -2
- package/bundle/chunk-WW5F2DCO.js.map +7 -0
- package/bundle/chunk-YWZPKBO6.js +22 -0
- package/bundle/chunk-YWZPKBO6.js.map +7 -0
- package/bundle/{chunk-KWBGYWDO.js → chunk-Z4SWEFIY.js} +12 -14
- package/bundle/chunk-Z4SWEFIY.js.map +7 -0
- package/bundle/chunk-ZAA7B5BN.js +22 -0
- package/bundle/chunk-ZAA7B5BN.js.map +7 -0
- package/bundle/{commands-WUGPBPHI.js → commands-AXW7L2MZ.js} +15 -14
- package/bundle/{config-DQIGDX4W.js → config-NDEYF4AQ.js} +7 -7
- package/bundle/{daemon-NPKYZ3CJ.js → daemon-WOQXCKNL.js} +4 -4
- package/bundle/{delegation-tools-6FICZQ5G.js → delegation-tools-Z5OM3TXS.js} +5 -5
- package/bundle/{deploy-lib-import-SBKXDD3F.js → deploy-lib-import-6VJTYXEG.js} +2 -2
- package/bundle/{deps-HN6CEXA4.js → deps-65V7XXG4.js} +4 -4
- package/bundle/{direct-api-transport-TRV45NO6.js → direct-api-transport-LSAUIP5S.js} +27 -15
- package/bundle/direct-api-transport-LSAUIP5S.js.map +7 -0
- package/bundle/{discord-adapter-WA2MFRK3.js → discord-adapter-LNWTIOUK.js} +27 -24
- package/bundle/discord-adapter-LNWTIOUK.js.map +7 -0
- package/bundle/{dns-wakeup-RYOCQ6GR.js → dns-wakeup-N46RPU5E.js} +3 -3
- package/bundle/{doctor-R54GZPKL.js → doctor-PIPSGI3H.js} +18 -7
- package/bundle/{doctor-R54GZPKL.js.map → doctor-PIPSGI3H.js.map} +2 -2
- package/bundle/{ensure-invariants-BJIEOSJ2.js → ensure-invariants-3NOBCYWS.js} +4 -4
- package/bundle/{env-schema-XCPAJ6IZ.js → env-schema-T43X43BU.js} +4 -4
- package/bundle/{hook-system-POI5VRIX.js → hook-system-ZCVOFFRD.js} +4 -4
- package/bundle/hotskills-DTROJY6G.js +17 -0
- package/bundle/{install-GEXWJYJC.js → install-FZT43PTH.js} +3 -3
- package/bundle/{install-manifest-QRWID3KZ.js → install-manifest-KBYD7SAY.js} +3 -3
- package/bundle/{irc-adapter-AIEP6OX6.js → irc-adapter-HXO5D4SW.js} +3 -3
- package/bundle/{irc-config-6VY67UPQ.js → irc-config-XN5VW2V4.js} +5 -5
- package/bundle/{lazy-require-UFYFFX2R.js → lazy-require-R3JYCV5M.js} +4 -4
- package/bundle/{media-utils-MOE36VWY.js → media-utils-W7XW3SVV.js} +4 -4
- package/bundle/{message-pipeline-2MBT44FO.js → message-pipeline-QX272U5X.js} +17 -14
- package/bundle/meta.json +2965 -2294
- package/bundle/{notification-U6F5ZBSG.js → notification-ULESRDHB.js} +7 -6
- package/bundle/{openrouter-credits-7XXO6QGQ.js → openrouter-credits-PLIKRY5D.js} +4 -4
- package/bundle/{paths-ZJYIDND2.js → paths-QQM74XYT.js} +4 -2
- package/bundle/{peer-client-T44VI7NB.js → peer-client-D2F5QWRV.js} +8 -8
- package/bundle/{peer-config-D5A4454H.js → peer-config-5SUIBJLG.js} +5 -5
- package/bundle/{phase-transport-FEZ4SIJJ.js → phase-transport-BSGROTHY.js} +10 -10
- package/bundle/restore-Z6MF54HS.js +151 -0
- package/bundle/restore-Z6MF54HS.js.map +7 -0
- package/bundle/{install-SH4UVUXQ.js → rollback-5RXXLUD6.js} +5 -7
- package/bundle/{self-healer-utils-7NFH22VJ.js → self-healer-utils-WPKOVXJD.js} +4 -4
- package/bundle/{skill-stats-IPVKMWN3.js → skill-stats-NHNH47QW.js} +5 -5
- package/bundle/{sleep-BPWX3FCN.js → sleep-K7EXAFGW.js} +8 -8
- package/bundle/{soul-bundle-BRIUDEQ2.js → soul-bundle-QTPWDJB2.js} +7 -7
- package/bundle/{soul-loader-GBXJ7EBH.js → soul-loader-LCPTN4PK.js} +8 -8
- package/bundle/{sse-parser-anthropic-H42TTLBD.js → sse-parser-anthropic-PYDJM3UC.js} +4 -4
- package/bundle/{sse-parser-responses-WG2LY2ML.js → sse-parser-responses-FYT7A5WT.js} +4 -4
- package/bundle/{ssrf-guard-E2KBBC5E.js → ssrf-guard-R4P5OCTO.js} +4 -4
- package/bundle/{start-CBVKNEAT.js → start-4DNURGIY.js} +1 -1
- package/bundle/{stt-CF3CPFDC.js → stt-YN77NND6.js} +5 -5
- package/bundle/{subagent-runtime-4MTYUBIZ.js → subagent-runtime-FQAT3564.js} +5 -5
- package/bundle/system-event-buffer-OEPPNUGK.js +17 -0
- package/bundle/system-event-buffer-OEPPNUGK.js.map +7 -0
- package/bundle/{system-message-TALP6GP2.js → system-message-BRU267FW.js} +3 -3
- package/bundle/{system-status-GLYXXDE3.js → system-status-7K2QTH3J.js} +58 -51
- package/bundle/system-status-7K2QTH3J.js.map +7 -0
- package/bundle/{hotskills-6ECHLXTJ.js → task-failure-buffer-DPM5MWZ5.js} +8 -7
- package/bundle/{task-store-LC7ZMS72.js → task-store-VCBHAB43.js} +5 -5
- package/bundle/{telegram-adapter-BJJYXN7J.js → telegram-adapter-LXLSG4SK.js} +51 -33
- package/bundle/telegram-adapter-LXLSG4SK.js.map +7 -0
- package/bundle/{tool-registry-T7XLTI2Q.js → tool-registry-5PXNSYOI.js} +12 -9
- package/bundle/{tool-sandbox-OZMXJZLQ.js → tool-sandbox-TLAL55QP.js} +5 -5
- package/bundle/{transport-config-G5NKQXPJ.js → transport-config-JIKHB7GT.js} +8 -8
- package/bundle/update-check-AJMIBQGQ.js +81 -0
- package/bundle/update-check-AJMIBQGQ.js.map +7 -0
- package/bundle/{user-registry-NUVNEHJU.js → user-registry-PEFDZ5AV.js} +5 -5
- package/core/skills/tools/rss/SKILL.md +51 -0
- package/install-manifest.json +4 -2
- package/package.json +4 -4
- package/scripts/build-and-deploy.sh +28 -0
- package/scripts/daily-backup.sh +1 -79
- package/scripts/doctor.sh +38 -0
- package/scripts/emergency-deploy.sh +95 -0
- package/scripts/watchdog.sh +51 -5
- package/bundle/chunk-4BUOO6WI.js.map +0 -7
- package/bundle/chunk-A5OJYQNU.js.map +0 -7
- package/bundle/chunk-JX3ZZU3O.js +0 -82
- package/bundle/chunk-JX3ZZU3O.js.map +0 -7
- package/bundle/chunk-KJOCXWJ5.js +0 -131
- package/bundle/chunk-KJOCXWJ5.js.map +0 -7
- package/bundle/chunk-KSEIWT4T.js.map +0 -7
- package/bundle/chunk-KWBGYWDO.js.map +0 -7
- package/bundle/chunk-MJ6PHMOK.js.map +0 -7
- package/bundle/chunk-P2BZSLJJ.js.map +0 -7
- package/bundle/chunk-R36WIOYX.js.map +0 -7
- package/bundle/chunk-RE3F3CFW.js +0 -300
- package/bundle/chunk-RE3F3CFW.js.map +0 -7
- package/bundle/chunk-RJJWPMUZ.js +0 -411
- package/bundle/chunk-RJJWPMUZ.js.map +0 -7
- package/bundle/chunk-RSWUPUNA.js.map +0 -7
- package/bundle/chunk-RV54J75Q.js.map +0 -7
- package/bundle/chunk-RVERPUHT.js +0 -289
- package/bundle/chunk-RVERPUHT.js.map +0 -7
- package/bundle/chunk-TYVI3ZWA.js.map +0 -7
- package/bundle/chunk-X5FBUA53.js.map +0 -7
- package/bundle/deploy-lib-import-HCMZCKZD.js +0 -50
- package/bundle/direct-api-transport-TRV45NO6.js.map +0 -7
- package/bundle/discord-adapter-WA2MFRK3.js.map +0 -7
- package/bundle/restore-ROJF22R2.js +0 -47
- package/bundle/restore-ROJF22R2.js.map +0 -7
- package/bundle/system-status-GLYXXDE3.js.map +0 -7
- package/bundle/telegram-adapter-BJJYXN7J.js.map +0 -7
- package/bundle/update-check-O5MS6B3L.js +0 -13
- package/bundle/user-registry-NUVNEHJU.js.map +0 -7
- /package/bundle/{agent-api-rate-limit-C25WGSFF.js.map → agent-api-rate-limit-R2OFAQ3N.js.map} +0 -0
- /package/bundle/{agent-registry-SYUFNSVB.js.map → agent-registry-S2MNHQYQ.js.map} +0 -0
- /package/bundle/{bridge-lock-transport-HO545SBK.js.map → bridge-lock-transport-N6OGDOSE.js.map} +0 -0
- /package/bundle/{browse-delivery-VTLEAVYA.js.map → browse-delivery-DXGMDMXA.js.map} +0 -0
- /package/bundle/{browser-REIXOJ6S.js.map → browser-QMYGSP5W.js.map} +0 -0
- /package/bundle/{capability-ILW3D5HS.js.map → capability-733TLH4W.js.map} +0 -0
- /package/bundle/{chunk-ZVDVNSXK.js.map → chunk-2SWKJX64.js.map} +0 -0
- /package/bundle/{chunk-PZE3J7ER.js.map → chunk-3OXQWII3.js.map} +0 -0
- /package/bundle/{chunk-4KJ76TTE.js.map → chunk-4XW7YA3K.js.map} +0 -0
- /package/bundle/{chunk-Q62SXS73.js.map → chunk-BBDKU4EH.js.map} +0 -0
- /package/bundle/{chunk-EX2SRTUE.js.map → chunk-CYSGXNBY.js.map} +0 -0
- /package/bundle/{chunk-LYEAHE5V.js.map → chunk-DCY7DGMT.js.map} +0 -0
- /package/bundle/{chunk-G6IXMYIO.js.map → chunk-DO4INSXE.js.map} +0 -0
- /package/bundle/{chunk-VA5WKN3Z.js.map → chunk-EGA6JQVV.js.map} +0 -0
- /package/bundle/{chunk-URAQLQ2U.js.map → chunk-F3HMZFIL.js.map} +0 -0
- /package/bundle/{chunk-OOKLEC6V.js.map → chunk-FY3QUO2L.js.map} +0 -0
- /package/bundle/{chunk-2BY6I4P5.js.map → chunk-GUTRAMK3.js.map} +0 -0
- /package/bundle/{chunk-GPL57SRN.js.map → chunk-H7RX7UCR.js.map} +0 -0
- /package/bundle/{chunk-BYDUMHXT.js.map → chunk-HAF2AFBW.js.map} +0 -0
- /package/bundle/{chunk-KFENC7BM.js.map → chunk-L33WNMCP.js.map} +0 -0
- /package/bundle/{chunk-JRG4EFMP.js.map → chunk-LBMETTUP.js.map} +0 -0
- /package/bundle/{chunk-TOUZC6NR.js.map → chunk-OKMN6J4Z.js.map} +0 -0
- /package/bundle/{chunk-CELR236Q.js.map → chunk-Q7CH5DA3.js.map} +0 -0
- /package/bundle/{chunk-XZSYMCLF.js.map → chunk-QIAFGDRL.js.map} +0 -0
- /package/bundle/{chunk-UDZIZB5F.js.map → chunk-RTL7HO3N.js.map} +0 -0
- /package/bundle/{chunk-ITG6XGBS.js.map → chunk-SA44ITVX.js.map} +0 -0
- /package/bundle/{chunk-3MO2MDXJ.js.map → chunk-SA6YEFNG.js.map} +0 -0
- /package/bundle/{chunk-GBBTK6H2.js.map → chunk-SRFEIZQT.js.map} +0 -0
- /package/bundle/{chunk-ELRAH7VL.js.map → chunk-VXUVKC66.js.map} +0 -0
- /package/bundle/{commands-WUGPBPHI.js.map → commands-AXW7L2MZ.js.map} +0 -0
- /package/bundle/{config-DQIGDX4W.js.map → config-NDEYF4AQ.js.map} +0 -0
- /package/bundle/{daemon-NPKYZ3CJ.js.map → daemon-WOQXCKNL.js.map} +0 -0
- /package/bundle/{delegation-tools-6FICZQ5G.js.map → delegation-tools-Z5OM3TXS.js.map} +0 -0
- /package/bundle/{deploy-lib-import-HCMZCKZD.js.map → deploy-lib-import-6VJTYXEG.js.map} +0 -0
- /package/bundle/{deps-HN6CEXA4.js.map → deps-65V7XXG4.js.map} +0 -0
- /package/bundle/{dns-wakeup-RYOCQ6GR.js.map → dns-wakeup-N46RPU5E.js.map} +0 -0
- /package/bundle/{ensure-invariants-BJIEOSJ2.js.map → ensure-invariants-3NOBCYWS.js.map} +0 -0
- /package/bundle/{deploy-lib-import-SBKXDD3F.js.map → env-schema-T43X43BU.js.map} +0 -0
- /package/bundle/{env-schema-XCPAJ6IZ.js.map → hook-system-ZCVOFFRD.js.map} +0 -0
- /package/bundle/{hook-system-POI5VRIX.js.map → hotskills-DTROJY6G.js.map} +0 -0
- /package/bundle/{hotskills-6ECHLXTJ.js.map → install-FZT43PTH.js.map} +0 -0
- /package/bundle/{install-manifest-QRWID3KZ.js.map → install-manifest-KBYD7SAY.js.map} +0 -0
- /package/bundle/{irc-adapter-AIEP6OX6.js.map → irc-adapter-HXO5D4SW.js.map} +0 -0
- /package/bundle/{irc-config-6VY67UPQ.js.map → irc-config-XN5VW2V4.js.map} +0 -0
- /package/bundle/{install-GEXWJYJC.js.map → lazy-require-R3JYCV5M.js.map} +0 -0
- /package/bundle/{media-utils-MOE36VWY.js.map → media-utils-W7XW3SVV.js.map} +0 -0
- /package/bundle/{install-SH4UVUXQ.js.map → message-pipeline-QX272U5X.js.map} +0 -0
- /package/bundle/{lazy-require-UFYFFX2R.js.map → notification-ULESRDHB.js.map} +0 -0
- /package/bundle/{openrouter-credits-7XXO6QGQ.js.map → openrouter-credits-PLIKRY5D.js.map} +0 -0
- /package/bundle/{message-pipeline-2MBT44FO.js.map → paths-QQM74XYT.js.map} +0 -0
- /package/bundle/{peer-client-T44VI7NB.js.map → peer-client-D2F5QWRV.js.map} +0 -0
- /package/bundle/{notification-U6F5ZBSG.js.map → peer-config-5SUIBJLG.js.map} +0 -0
- /package/bundle/{paths-ZJYIDND2.js.map → phase-transport-BSGROTHY.js.map} +0 -0
- /package/bundle/{peer-config-D5A4454H.js.map → rollback-5RXXLUD6.js.map} +0 -0
- /package/bundle/{self-healer-utils-7NFH22VJ.js.map → self-healer-utils-WPKOVXJD.js.map} +0 -0
- /package/bundle/{phase-transport-FEZ4SIJJ.js.map → skill-stats-NHNH47QW.js.map} +0 -0
- /package/bundle/{skill-stats-IPVKMWN3.js.map → sleep-K7EXAFGW.js.map} +0 -0
- /package/bundle/{sleep-BPWX3FCN.js.map → soul-bundle-QTPWDJB2.js.map} +0 -0
- /package/bundle/{soul-bundle-BRIUDEQ2.js.map → soul-loader-LCPTN4PK.js.map} +0 -0
- /package/bundle/{sse-parser-anthropic-H42TTLBD.js.map → sse-parser-anthropic-PYDJM3UC.js.map} +0 -0
- /package/bundle/{sse-parser-responses-WG2LY2ML.js.map → sse-parser-responses-FYT7A5WT.js.map} +0 -0
- /package/bundle/{ssrf-guard-E2KBBC5E.js.map → ssrf-guard-R4P5OCTO.js.map} +0 -0
- /package/bundle/{start-CBVKNEAT.js.map → start-4DNURGIY.js.map} +0 -0
- /package/bundle/{soul-loader-GBXJ7EBH.js.map → stt-YN77NND6.js.map} +0 -0
- /package/bundle/{stt-CF3CPFDC.js.map → subagent-runtime-FQAT3564.js.map} +0 -0
- /package/bundle/{system-message-TALP6GP2.js.map → system-message-BRU267FW.js.map} +0 -0
- /package/bundle/{subagent-runtime-4MTYUBIZ.js.map → task-failure-buffer-DPM5MWZ5.js.map} +0 -0
- /package/bundle/{task-store-LC7ZMS72.js.map → task-store-VCBHAB43.js.map} +0 -0
- /package/bundle/{tool-registry-T7XLTI2Q.js.map → tool-registry-5PXNSYOI.js.map} +0 -0
- /package/bundle/{tool-sandbox-OZMXJZLQ.js.map → tool-sandbox-TLAL55QP.js.map} +0 -0
- /package/bundle/{transport-config-G5NKQXPJ.js.map → transport-config-JIKHB7GT.js.map} +0 -0
- /package/bundle/{update-check-O5MS6B3L.js.map → user-registry-PEFDZ5AV.js.map} +0 -0
|
@@ -2,13 +2,14 @@
|
|
|
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
|
sendNotification
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-LJAG2URA.js";
|
|
6
|
+
import "./chunk-YWZPKBO6.js";
|
|
7
|
+
import "./chunk-3OXQWII3.js";
|
|
8
|
+
import "./chunk-CYSGXNBY.js";
|
|
9
|
+
import "./chunk-GUTRAMK3.js";
|
|
10
|
+
import "./chunk-WW5F2DCO.js";
|
|
10
11
|
import "./chunk-7K2YZTLD.js";
|
|
11
12
|
export {
|
|
12
13
|
sendNotification
|
|
13
14
|
};
|
|
14
|
-
//# sourceMappingURL=notification-
|
|
15
|
+
//# sourceMappingURL=notification-ULESRDHB.js.map
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import {
|
|
4
4
|
getEnv,
|
|
5
5
|
init_env_schema
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-3OXQWII3.js";
|
|
7
|
+
import "./chunk-GUTRAMK3.js";
|
|
8
|
+
import "./chunk-WW5F2DCO.js";
|
|
9
9
|
import "./chunk-7K2YZTLD.js";
|
|
10
10
|
|
|
11
11
|
// src/components/openrouter-credits.ts
|
|
@@ -30,4 +30,4 @@ async function fetchOpenRouterCredits() {
|
|
|
30
30
|
export {
|
|
31
31
|
fetchOpenRouterCredits
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=openrouter-credits-
|
|
33
|
+
//# sourceMappingURL=openrouter-credits-PLIKRY5D.js.map
|
|
@@ -3,16 +3,18 @@
|
|
|
3
3
|
import {
|
|
4
4
|
abtarsHome,
|
|
5
5
|
ensureDir,
|
|
6
|
+
getDeployedVersion,
|
|
6
7
|
init_paths,
|
|
7
8
|
reportsDir,
|
|
8
9
|
setLazyRoots
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WW5F2DCO.js";
|
|
10
11
|
import "./chunk-7K2YZTLD.js";
|
|
11
12
|
init_paths();
|
|
12
13
|
export {
|
|
13
14
|
abtarsHome,
|
|
14
15
|
ensureDir,
|
|
16
|
+
getDeployedVersion,
|
|
15
17
|
reportsDir,
|
|
16
18
|
setLazyRoots
|
|
17
19
|
};
|
|
18
|
-
//# sourceMappingURL=paths-
|
|
20
|
+
//# sourceMappingURL=paths-QQM74XYT.js.map
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
import {
|
|
4
4
|
init_peer_jwt,
|
|
5
5
|
peer_jwt_exports
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Q7CH5DA3.js";
|
|
7
7
|
import {
|
|
8
8
|
init_peer_config,
|
|
9
9
|
loadPeerConfig
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-EGA6JQVV.js";
|
|
11
|
+
import "./chunk-DCY7DGMT.js";
|
|
12
|
+
import "./chunk-CYSGXNBY.js";
|
|
13
13
|
import {
|
|
14
14
|
init_logger,
|
|
15
15
|
logInfo
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-GUTRAMK3.js";
|
|
17
|
+
import "./chunk-WW5F2DCO.js";
|
|
18
18
|
import {
|
|
19
19
|
__require,
|
|
20
20
|
__toCommonJS
|
|
@@ -62,7 +62,7 @@ async function callPeer(peerName, prompt, hops, opts) {
|
|
|
62
62
|
if (err instanceof PeerCallError && (err.code === "unreachable" || err.code === "timeout") && peer.udpPort && !opts?.skipWakeup) {
|
|
63
63
|
logInfo(TAG, `Direct call failed (${err.code}) \u2014 UDP callback request \u2192 ${peerKey}`);
|
|
64
64
|
const { registerPending, rejectPending } = await import("./pending-callback-6KLBSHLX.js");
|
|
65
|
-
const { sendWakeup } = await import("./dns-wakeup-
|
|
65
|
+
const { sendWakeup } = await import("./dns-wakeup-N46RPU5E.js");
|
|
66
66
|
const resultPromise = registerPending(peerKey, signedPrompt);
|
|
67
67
|
sendWakeup(peerKey, peer.host, peer.udpPort, peer.token);
|
|
68
68
|
const timeout = setTimeout(() => rejectPending(peerKey, "callback timeout (60s)"), 6e4);
|
|
@@ -154,4 +154,4 @@ export {
|
|
|
154
154
|
getCurrentPeerHops,
|
|
155
155
|
setCurrentPeerHops
|
|
156
156
|
};
|
|
157
|
-
//# sourceMappingURL=peer-client-
|
|
157
|
+
//# sourceMappingURL=peer-client-D2F5QWRV.js.map
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
clearPeerConfigCache,
|
|
5
5
|
init_peer_config,
|
|
6
6
|
loadPeerConfig
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-EGA6JQVV.js";
|
|
8
|
+
import "./chunk-DCY7DGMT.js";
|
|
9
|
+
import "./chunk-GUTRAMK3.js";
|
|
10
|
+
import "./chunk-WW5F2DCO.js";
|
|
11
11
|
import "./chunk-7K2YZTLD.js";
|
|
12
12
|
init_peer_config();
|
|
13
13
|
export {
|
|
14
14
|
clearPeerConfigCache,
|
|
15
15
|
loadPeerConfig
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=peer-config-
|
|
17
|
+
//# sourceMappingURL=peer-config-5SUIBJLG.js.map
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
buildTransport,
|
|
5
5
|
phaseTransport,
|
|
6
6
|
rebuildTransport
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-HCYENZAB.js";
|
|
8
|
+
import "./chunk-2SWKJX64.js";
|
|
9
|
+
import "./chunk-MHK4UPM6.js";
|
|
10
|
+
import "./chunk-RTL7HO3N.js";
|
|
11
|
+
import "./chunk-SRFEIZQT.js";
|
|
12
12
|
import "./chunk-MZWMYN4O.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-3OXQWII3.js";
|
|
14
|
+
import "./chunk-CYSGXNBY.js";
|
|
15
|
+
import "./chunk-GUTRAMK3.js";
|
|
16
|
+
import "./chunk-WW5F2DCO.js";
|
|
17
17
|
import "./chunk-7K2YZTLD.js";
|
|
18
18
|
export {
|
|
19
19
|
buildTransport,
|
|
20
20
|
phaseTransport,
|
|
21
21
|
rebuildTransport
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=phase-transport-
|
|
23
|
+
//# sourceMappingURL=phase-transport-BSGROTHY.js.map
|
|
@@ -0,0 +1,151 @@
|
|
|
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
|
+
abtarsHome,
|
|
5
|
+
init_paths
|
|
6
|
+
} from "./chunk-WW5F2DCO.js";
|
|
7
|
+
import "./chunk-7K2YZTLD.js";
|
|
8
|
+
|
|
9
|
+
// src/cli/commands/restore.ts
|
|
10
|
+
init_paths();
|
|
11
|
+
import { existsSync, readdirSync, readFileSync, unlinkSync, writeFileSync } from "node:fs";
|
|
12
|
+
import { join, dirname, basename } from "node:path";
|
|
13
|
+
import { spawnSync } from "node:child_process";
|
|
14
|
+
import { createDecipheriv, hkdfSync } from "node:crypto";
|
|
15
|
+
async function restore(archivePath, opts = {}) {
|
|
16
|
+
if (!archivePath) {
|
|
17
|
+
process.stderr.write("Usage: abtars restore <file.zip|.7z|.abm|.enc> [--config] [--passphrase <p>]\n");
|
|
18
|
+
return 1;
|
|
19
|
+
}
|
|
20
|
+
if (!existsSync(archivePath)) {
|
|
21
|
+
process.stderr.write(`File not found: ${archivePath}
|
|
22
|
+
`);
|
|
23
|
+
return 1;
|
|
24
|
+
}
|
|
25
|
+
if (archivePath.endsWith(".abm")) {
|
|
26
|
+
return restoreAbmind(archivePath, opts.passphrase);
|
|
27
|
+
}
|
|
28
|
+
if (archivePath.endsWith(".enc")) {
|
|
29
|
+
const date = extractDate(archivePath);
|
|
30
|
+
const dir = dirname(archivePath);
|
|
31
|
+
const sibling = findSiblingAbm(dir, date);
|
|
32
|
+
if (!opts.config && sibling) {
|
|
33
|
+
const rc2 = restoreAbmind(sibling, opts.passphrase);
|
|
34
|
+
if (rc2 !== 0) return rc2;
|
|
35
|
+
}
|
|
36
|
+
const abmindHome = process.env["ABMIND_HOME"] ?? join(dirname(abtarsHome()), ".abmind");
|
|
37
|
+
const keyPath = join(abmindHome, "secret", "abmind.key");
|
|
38
|
+
if (!existsSync(keyPath)) {
|
|
39
|
+
process.stderr.write("Error: abmind.key not found \u2014 run `abmind restore <file.abm>` first to recreate it, then retry.\n");
|
|
40
|
+
return 1;
|
|
41
|
+
}
|
|
42
|
+
const tmpZip = join(process.env["TMPDIR"] ?? "/tmp", `abtars-restore-${Date.now()}.zip`);
|
|
43
|
+
const ok = decryptFile(archivePath, tmpZip, keyPath);
|
|
44
|
+
if (!ok) return 1;
|
|
45
|
+
process.stdout.write("\u2713 decrypted\n");
|
|
46
|
+
const rc = extractZip(tmpZip, abtarsHome());
|
|
47
|
+
try {
|
|
48
|
+
unlinkSync(tmpZip);
|
|
49
|
+
} catch {
|
|
50
|
+
}
|
|
51
|
+
return rc;
|
|
52
|
+
}
|
|
53
|
+
if (!opts.config) {
|
|
54
|
+
const date = extractDate(archivePath);
|
|
55
|
+
const dir = dirname(archivePath);
|
|
56
|
+
const sibling = findSiblingAbm(dir, date);
|
|
57
|
+
if (sibling) {
|
|
58
|
+
const rc = restoreAbmind(sibling, opts.passphrase);
|
|
59
|
+
if (rc !== 0) return rc;
|
|
60
|
+
} else {
|
|
61
|
+
process.stdout.write("\u2139 no sibling .abm found \u2014 memory not restored\n");
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return extractZip(archivePath, abtarsHome());
|
|
65
|
+
}
|
|
66
|
+
function restoreAbmind(abmPath, passphrase) {
|
|
67
|
+
const args = ["restore", "--input", abmPath, "--mode", "merge"];
|
|
68
|
+
if (passphrase) args.push("--passphrase", passphrase);
|
|
69
|
+
const envPassphrase = process.env["ABMIND_BACKUP_PASSPHRASE"];
|
|
70
|
+
const env = { ...process.env };
|
|
71
|
+
if (!passphrase && envPassphrase) {
|
|
72
|
+
env["ABMIND_BACKUP_PASSPHRASE"] = envPassphrase;
|
|
73
|
+
}
|
|
74
|
+
const result = spawnSync("abmind", args, { encoding: "utf-8", stdio: "inherit", env });
|
|
75
|
+
if (result.status !== 0) {
|
|
76
|
+
process.stderr.write("abmind restore failed\n");
|
|
77
|
+
return 1;
|
|
78
|
+
}
|
|
79
|
+
process.stdout.write("\u2713 abmind memory restored\n");
|
|
80
|
+
return 0;
|
|
81
|
+
}
|
|
82
|
+
function extractZip(archivePath, destDir) {
|
|
83
|
+
const is7z = archivePath.endsWith(".7z");
|
|
84
|
+
const listCmd = is7z ? spawnSync("7z", ["l", archivePath], { encoding: "utf-8" }) : spawnSync("unzip", ["-l", archivePath], { encoding: "utf-8" });
|
|
85
|
+
if (!listCmd.stdout?.includes("config/")) {
|
|
86
|
+
process.stderr.write("Error: archive does not contain config/ \u2014 not a valid abtars backup\n");
|
|
87
|
+
return 1;
|
|
88
|
+
}
|
|
89
|
+
let result;
|
|
90
|
+
if (is7z) {
|
|
91
|
+
result = spawnSync(
|
|
92
|
+
"7z",
|
|
93
|
+
["x", `-o${destDir}`, "-aoa", "-xr!releases", "-xr!current", "-xr!bin", "-xr!manifest.json", archivePath],
|
|
94
|
+
{ encoding: "utf-8", stdio: "inherit" }
|
|
95
|
+
);
|
|
96
|
+
} else {
|
|
97
|
+
result = spawnSync(
|
|
98
|
+
"unzip",
|
|
99
|
+
["-o", archivePath, "-d", destDir, "-x", "releases/*", "current/*", "bin/*", "manifest.json"],
|
|
100
|
+
{ encoding: "utf-8", stdio: "inherit" }
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
if (result.status !== 0) {
|
|
104
|
+
process.stderr.write("Restore extract failed\n");
|
|
105
|
+
return 1;
|
|
106
|
+
}
|
|
107
|
+
process.stdout.write(`\u2713 Restored to ${destDir}
|
|
108
|
+
`);
|
|
109
|
+
return 0;
|
|
110
|
+
}
|
|
111
|
+
function extractDate(filePath) {
|
|
112
|
+
const name = basename(filePath);
|
|
113
|
+
const match = name.match(/(\d{4}-\d{2}-\d{2})/);
|
|
114
|
+
return match?.[1] ?? null;
|
|
115
|
+
}
|
|
116
|
+
function findSiblingAbm(dir, date) {
|
|
117
|
+
if (!existsSync(dir)) return null;
|
|
118
|
+
const files = readdirSync(dir).filter((f) => f.endsWith(".abm"));
|
|
119
|
+
if (date) {
|
|
120
|
+
const exact = files.find((f) => f.includes(date));
|
|
121
|
+
if (exact) return join(dir, exact);
|
|
122
|
+
}
|
|
123
|
+
const sorted = files.sort().reverse();
|
|
124
|
+
return sorted[0] ? join(dir, sorted[0]) : null;
|
|
125
|
+
}
|
|
126
|
+
function decryptFile(inputPath, outputPath, keyPath) {
|
|
127
|
+
const master = Buffer.from(readFileSync(keyPath, "utf-8").trim(), "hex");
|
|
128
|
+
const key = Buffer.from(hkdfSync("sha256", master, "", "abtars-backup-v1", 32));
|
|
129
|
+
const buf = readFileSync(inputPath);
|
|
130
|
+
if (buf.length < 28) {
|
|
131
|
+
process.stderr.write("Error: encrypted file too small\n");
|
|
132
|
+
return false;
|
|
133
|
+
}
|
|
134
|
+
const iv = buf.subarray(0, 12);
|
|
135
|
+
const tag = buf.subarray(buf.length - 16);
|
|
136
|
+
const ciphertext = buf.subarray(12, buf.length - 16);
|
|
137
|
+
try {
|
|
138
|
+
const decipher = createDecipheriv("aes-256-gcm", key, iv);
|
|
139
|
+
decipher.setAuthTag(tag);
|
|
140
|
+
const decrypted = Buffer.concat([decipher.update(ciphertext), decipher.final()]);
|
|
141
|
+
writeFileSync(outputPath, decrypted);
|
|
142
|
+
return true;
|
|
143
|
+
} catch {
|
|
144
|
+
process.stderr.write("Error: decryption failed \u2014 wrong key or corrupted file\n");
|
|
145
|
+
return false;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
export {
|
|
149
|
+
restore
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=restore-Z6MF54HS.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/cli/commands/restore.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * `abtars restore` \u2014 restore from backup archive, auto-detect type.\n *\n * .abm \u2192 delegate to abmind restore\n * .zip/.7z \u2192 extract to ~/.abtars/ + find sibling .abm \u2192 restore both\n * .enc \u2192 find sibling .abm first (restore \u2192 key exists) \u2192 decrypt \u2192 extract\n * --config \u2192 zip only, skip abmind\n * --passphrase \u2192 passed through to abmind restore\n */\n\nimport { existsSync, readdirSync, readFileSync, unlinkSync, writeFileSync } from \"node:fs\";\nimport { join, dirname, basename } from \"node:path\";\nimport { spawnSync } from \"node:child_process\";\nimport { createDecipheriv, hkdfSync } from \"node:crypto\";\nimport { abtarsHome } from \"../../paths.js\";\n\nexport interface RestoreOpts {\n config?: boolean;\n passphrase?: string;\n}\n\nexport async function restore(archivePath: string, opts: RestoreOpts = {}): Promise<number> {\n if (!archivePath) {\n process.stderr.write(\"Usage: abtars restore <file.zip|.7z|.abm|.enc> [--config] [--passphrase <p>]\\n\");\n return 1;\n }\n if (!existsSync(archivePath)) {\n process.stderr.write(`File not found: ${archivePath}\\n`);\n return 1;\n }\n\n // Direct .abm \u2192 delegate entirely to abmind restore\n if (archivePath.endsWith(\".abm\")) {\n return restoreAbmind(archivePath, opts.passphrase);\n }\n\n // .enc \u2192 restore sibling .abm first (ensures key exists), then decrypt\n if (archivePath.endsWith(\".enc\")) {\n // Find sibling .abm\n const date = extractDate(archivePath);\n const dir = dirname(archivePath);\n const sibling = findSiblingAbm(dir, date);\n\n if (!opts.config && sibling) {\n const rc = restoreAbmind(sibling, opts.passphrase);\n if (rc !== 0) return rc;\n }\n\n // Decrypt .enc \u2192 temp zip\n const abmindHome = process.env[\"ABMIND_HOME\"] ?? join(dirname(abtarsHome()), \".abmind\");\n const keyPath = join(abmindHome, \"secret\", \"abmind.key\");\n if (!existsSync(keyPath)) {\n process.stderr.write(\"Error: abmind.key not found \u2014 run `abmind restore <file.abm>` first to recreate it, then retry.\\n\");\n return 1;\n }\n\n const tmpZip = join(process.env[\"TMPDIR\"] ?? \"/tmp\", `abtars-restore-${Date.now()}.zip`);\n const ok = decryptFile(archivePath, tmpZip, keyPath);\n if (!ok) return 1;\n process.stdout.write(\"\u2713 decrypted\\n\");\n\n // Extract the decrypted zip\n const rc = extractZip(tmpZip, abtarsHome());\n try { unlinkSync(tmpZip); } catch { /* ignore */ }\n return rc;\n }\n\n // .zip/.7z\n if (!opts.config) {\n // Restore sibling .abm first\n const date = extractDate(archivePath);\n const dir = dirname(archivePath);\n const sibling = findSiblingAbm(dir, date);\n if (sibling) {\n const rc = restoreAbmind(sibling, opts.passphrase);\n if (rc !== 0) return rc;\n } else {\n process.stdout.write(\"\u2139 no sibling .abm found \u2014 memory not restored\\n\");\n }\n }\n\n // Extract zip to ~/.abtars/\n return extractZip(archivePath, abtarsHome());\n}\n\nfunction restoreAbmind(abmPath: string, passphrase?: string): number {\n const args = [\"restore\", \"--input\", abmPath, \"--mode\", \"merge\"];\n if (passphrase) args.push(\"--passphrase\", passphrase);\n\n const envPassphrase = process.env[\"ABMIND_BACKUP_PASSPHRASE\"];\n const env = { ...process.env };\n if (!passphrase && envPassphrase) {\n env[\"ABMIND_BACKUP_PASSPHRASE\"] = envPassphrase;\n }\n\n const result = spawnSync(\"abmind\", args, { encoding: \"utf-8\", stdio: \"inherit\", env });\n if (result.status !== 0) {\n process.stderr.write(\"abmind restore failed\\n\");\n return 1;\n }\n process.stdout.write(\"\u2713 abmind memory restored\\n\");\n return 0;\n}\n\nfunction extractZip(archivePath: string, destDir: string): number {\n const is7z = archivePath.endsWith(\".7z\");\n\n // Sanity check\n const listCmd = is7z\n ? spawnSync(\"7z\", [\"l\", archivePath], { encoding: \"utf-8\" })\n : spawnSync(\"unzip\", [\"-l\", archivePath], { encoding: \"utf-8\" });\n if (!listCmd.stdout?.includes(\"config/\")) {\n process.stderr.write(\"Error: archive does not contain config/ \u2014 not a valid abtars backup\\n\");\n return 1;\n }\n\n // Extract, excluding binary dirs + manifest (install state, not user data)\n let result;\n if (is7z) {\n result = spawnSync(\"7z\", [\"x\", `-o${destDir}`, \"-aoa\", \"-xr!releases\", \"-xr!current\", \"-xr!bin\", \"-xr!manifest.json\", archivePath],\n { encoding: \"utf-8\", stdio: \"inherit\" });\n } else {\n result = spawnSync(\"unzip\", [\"-o\", archivePath, \"-d\", destDir, \"-x\", \"releases/*\", \"current/*\", \"bin/*\", \"manifest.json\"],\n { encoding: \"utf-8\", stdio: \"inherit\" });\n }\n\n if (result.status !== 0) {\n process.stderr.write(\"Restore extract failed\\n\");\n return 1;\n }\n\n process.stdout.write(`\u2713 Restored to ${destDir}\\n`);\n return 0;\n}\n\nfunction extractDate(filePath: string): string | null {\n const name = basename(filePath);\n const match = name.match(/(\\d{4}-\\d{2}-\\d{2})/);\n return match?.[1] ?? null;\n}\n\nfunction findSiblingAbm(dir: string, date: string | null): string | null {\n if (!existsSync(dir)) return null;\n const files = readdirSync(dir).filter(f => f.endsWith(\".abm\"));\n if (date) {\n const exact = files.find(f => f.includes(date));\n if (exact) return join(dir, exact);\n }\n // Fallback: latest .abm in the dir\n const sorted = files.sort().reverse();\n return sorted[0] ? join(dir, sorted[0]) : null;\n}\n\nfunction decryptFile(inputPath: string, outputPath: string, keyPath: string): boolean {\n const master = Buffer.from(readFileSync(keyPath, \"utf-8\").trim(), \"hex\");\n const key = Buffer.from(hkdfSync(\"sha256\", master, \"\", \"abtars-backup-v1\", 32));\n\n const buf = readFileSync(inputPath);\n if (buf.length < 28) { // 12 iv + 16 tag minimum\n process.stderr.write(\"Error: encrypted file too small\\n\");\n return false;\n }\n\n const iv = buf.subarray(0, 12);\n const tag = buf.subarray(buf.length - 16);\n const ciphertext = buf.subarray(12, buf.length - 16);\n\n try {\n const decipher = createDecipheriv(\"aes-256-gcm\", key, iv);\n decipher.setAuthTag(tag);\n const decrypted = Buffer.concat([decipher.update(ciphertext), decipher.final()]);\n writeFileSync(outputPath, decrypted);\n return true;\n } catch {\n process.stderr.write(\"Error: decryption failed \u2014 wrong key or corrupted file\\n\");\n return false;\n }\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["rc"]
|
|
7
|
+
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import "./chunk-RSWUPUNA.js";
|
|
4
|
+
rollback
|
|
5
|
+
} from "./chunk-EKHNWFEQ.js";
|
|
6
|
+
import "./chunk-WMWI3SJ7.js";
|
|
8
7
|
import "./chunk-7K2YZTLD.js";
|
|
9
8
|
export {
|
|
10
|
-
|
|
11
|
-
writeWrapper
|
|
9
|
+
rollback
|
|
12
10
|
};
|
|
13
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=rollback-5RXXLUD6.js.map
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import {
|
|
4
4
|
init_log_and_swallow,
|
|
5
5
|
logAndSwallow
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CYSGXNBY.js";
|
|
7
7
|
import {
|
|
8
8
|
init_logger,
|
|
9
9
|
logInfo
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-GUTRAMK3.js";
|
|
11
|
+
import "./chunk-WW5F2DCO.js";
|
|
12
12
|
import "./chunk-7K2YZTLD.js";
|
|
13
13
|
|
|
14
14
|
// src/components/self-healer-utils.ts
|
|
@@ -41,4 +41,4 @@ function healPort(port) {
|
|
|
41
41
|
export {
|
|
42
42
|
healPort
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=self-healer-utils-
|
|
44
|
+
//# sourceMappingURL=self-healer-utils-WPKOVXJD.js.map
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
flush,
|
|
8
8
|
init,
|
|
9
9
|
setProvenance
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-VXUVKC66.js";
|
|
11
|
+
import "./chunk-CYSGXNBY.js";
|
|
12
|
+
import "./chunk-GUTRAMK3.js";
|
|
13
|
+
import "./chunk-WW5F2DCO.js";
|
|
14
14
|
import "./chunk-7K2YZTLD.js";
|
|
15
15
|
export {
|
|
16
16
|
_getStats,
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
init,
|
|
21
21
|
setProvenance
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=skill-stats-
|
|
23
|
+
//# sourceMappingURL=skill-stats-NHNH47QW.js.map
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
import {
|
|
4
4
|
createSleepHandle,
|
|
5
5
|
register
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Z4SWEFIY.js";
|
|
7
7
|
import "./chunk-JAJ3DUQ2.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-HAF2AFBW.js";
|
|
9
|
+
import "./chunk-RTL7HO3N.js";
|
|
10
10
|
import "./chunk-MZWMYN4O.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-3OXQWII3.js";
|
|
12
|
+
import "./chunk-CYSGXNBY.js";
|
|
13
|
+
import "./chunk-GUTRAMK3.js";
|
|
14
|
+
import "./chunk-WW5F2DCO.js";
|
|
15
15
|
import "./chunk-7K2YZTLD.js";
|
|
16
16
|
export {
|
|
17
17
|
createSleepHandle,
|
|
18
18
|
register
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=sleep-
|
|
20
|
+
//# sourceMappingURL=sleep-K7EXAFGW.js.map
|
|
@@ -2,14 +2,14 @@
|
|
|
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
|
buildSoulBundle
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-HJQZP5CK.js";
|
|
6
|
+
import "./chunk-SRFEIZQT.js";
|
|
7
|
+
import "./chunk-3OXQWII3.js";
|
|
8
|
+
import "./chunk-CYSGXNBY.js";
|
|
9
|
+
import "./chunk-GUTRAMK3.js";
|
|
10
|
+
import "./chunk-WW5F2DCO.js";
|
|
11
11
|
import "./chunk-7K2YZTLD.js";
|
|
12
12
|
export {
|
|
13
13
|
buildSoulBundle
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=soul-bundle-
|
|
15
|
+
//# sourceMappingURL=soul-bundle-QTPWDJB2.js.map
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import {
|
|
4
4
|
loadMinimalSoul,
|
|
5
5
|
loadSoulBundle
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-L33WNMCP.js";
|
|
7
|
+
import "./chunk-HJQZP5CK.js";
|
|
8
|
+
import "./chunk-SRFEIZQT.js";
|
|
9
|
+
import "./chunk-3OXQWII3.js";
|
|
10
|
+
import "./chunk-CYSGXNBY.js";
|
|
11
|
+
import "./chunk-GUTRAMK3.js";
|
|
12
|
+
import "./chunk-WW5F2DCO.js";
|
|
13
13
|
import "./chunk-7K2YZTLD.js";
|
|
14
14
|
export {
|
|
15
15
|
loadMinimalSoul,
|
|
16
16
|
loadSoulBundle
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=soul-loader-
|
|
18
|
+
//# sourceMappingURL=soul-loader-LCPTN4PK.js.map
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import {
|
|
4
4
|
init_log_and_swallow,
|
|
5
5
|
logAndSwallow
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-CYSGXNBY.js";
|
|
7
|
+
import "./chunk-GUTRAMK3.js";
|
|
8
|
+
import "./chunk-WW5F2DCO.js";
|
|
9
9
|
import "./chunk-7K2YZTLD.js";
|
|
10
10
|
|
|
11
11
|
// src/components/transport/sse-parser-anthropic.ts
|
|
@@ -70,4 +70,4 @@ async function* parseAnthropicSSE(response, signal) {
|
|
|
70
70
|
export {
|
|
71
71
|
parseAnthropicSSE
|
|
72
72
|
};
|
|
73
|
-
//# sourceMappingURL=sse-parser-anthropic-
|
|
73
|
+
//# sourceMappingURL=sse-parser-anthropic-PYDJM3UC.js.map
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import {
|
|
4
4
|
init_log_and_swallow,
|
|
5
5
|
logAndSwallow
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-CYSGXNBY.js";
|
|
7
|
+
import "./chunk-GUTRAMK3.js";
|
|
8
|
+
import "./chunk-WW5F2DCO.js";
|
|
9
9
|
import "./chunk-7K2YZTLD.js";
|
|
10
10
|
|
|
11
11
|
// src/components/transport/sse-parser-responses.ts
|
|
@@ -61,4 +61,4 @@ async function* parseResponsesSSE(response, signal) {
|
|
|
61
61
|
export {
|
|
62
62
|
parseResponsesSSE
|
|
63
63
|
};
|
|
64
|
-
//# sourceMappingURL=sse-parser-responses-
|
|
64
|
+
//# sourceMappingURL=sse-parser-responses-FYT7A5WT.js.map
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import {
|
|
4
4
|
init_log_and_swallow,
|
|
5
5
|
logAndSwallow
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-CYSGXNBY.js";
|
|
7
|
+
import "./chunk-GUTRAMK3.js";
|
|
8
|
+
import "./chunk-WW5F2DCO.js";
|
|
9
9
|
import "./chunk-7K2YZTLD.js";
|
|
10
10
|
|
|
11
11
|
// src/capabilities/browser/ssrf-guard.ts
|
|
@@ -62,4 +62,4 @@ async function isPrivateHost(hostname) {
|
|
|
62
62
|
export {
|
|
63
63
|
isPrivateHost
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=ssrf-guard-
|
|
65
|
+
//# sourceMappingURL=ssrf-guard-R4P5OCTO.js.map
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import {
|
|
4
4
|
LANGUAGE_HINT_PROMPT,
|
|
5
5
|
transcribeAudio
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-SA6YEFNG.js";
|
|
7
|
+
import "./chunk-CYSGXNBY.js";
|
|
8
|
+
import "./chunk-GUTRAMK3.js";
|
|
9
|
+
import "./chunk-WW5F2DCO.js";
|
|
10
10
|
import "./chunk-7K2YZTLD.js";
|
|
11
11
|
export {
|
|
12
12
|
LANGUAGE_HINT_PROMPT,
|
|
13
13
|
transcribeAudio
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=stt-
|
|
15
|
+
//# sourceMappingURL=stt-YN77NND6.js.map
|
|
@@ -2,12 +2,12 @@
|
|
|
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
|
SubagentRuntime
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-QIAFGDRL.js";
|
|
6
|
+
import "./chunk-CYSGXNBY.js";
|
|
7
|
+
import "./chunk-GUTRAMK3.js";
|
|
8
|
+
import "./chunk-WW5F2DCO.js";
|
|
9
9
|
import "./chunk-7K2YZTLD.js";
|
|
10
10
|
export {
|
|
11
11
|
SubagentRuntime
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=subagent-runtime-
|
|
13
|
+
//# sourceMappingURL=subagent-runtime-FQAT3564.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
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 "./chunk-7K2YZTLD.js";
|
|
4
|
+
|
|
5
|
+
// src/components/system-event-buffer.ts
|
|
6
|
+
var buffer = [];
|
|
7
|
+
function bufferSystemEvent(message) {
|
|
8
|
+
buffer.push(message);
|
|
9
|
+
}
|
|
10
|
+
function drainSystemEvents() {
|
|
11
|
+
return buffer.splice(0);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
bufferSystemEvent,
|
|
15
|
+
drainSystemEvents
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=system-event-buffer-OEPPNUGK.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/components/system-event-buffer.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * system-event-buffer.ts \u2014 Buffers silent system events for injection (#844).\n * Drained before each prompt in the message pipeline.\n */\n\nconst buffer: string[] = [];\n\nexport function bufferSystemEvent(message: string): void {\n buffer.push(message);\n}\n\nexport function drainSystemEvents(): string[] {\n return buffer.splice(0);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AAKA,IAAM,SAAmB,CAAC;AAEnB,SAAS,kBAAkB,SAAuB;AACvD,SAAO,KAAK,OAAO;AACrB;AAEO,SAAS,oBAA8B;AAC5C,SAAO,OAAO,OAAO,CAAC;AACxB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
init_logger,
|
|
5
5
|
logInfo,
|
|
6
6
|
logWarn
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-GUTRAMK3.js";
|
|
8
|
+
import "./chunk-WW5F2DCO.js";
|
|
9
9
|
import "./chunk-7K2YZTLD.js";
|
|
10
10
|
|
|
11
11
|
// src/components/system-message.ts
|
|
@@ -28,4 +28,4 @@ export {
|
|
|
28
28
|
initSystemMessage,
|
|
29
29
|
sendSystemMessage
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=system-message-
|
|
31
|
+
//# sourceMappingURL=system-message-BRU267FW.js.map
|