abtars 0.3.3 → 0.3.4-alpha.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/bundle/{_registry.generated-7DRCE4V6.js → _registry.generated-ZJBAZMXN.js} +16 -15
- package/bundle/{_registry.generated-7DRCE4V6.js.map → _registry.generated-ZJBAZMXN.js.map} +1 -1
- package/bundle/abtars-browser.js +6 -5
- package/bundle/abtars-browser.js.map +1 -1
- package/bundle/abtars-cli.js +47 -39
- package/bundle/abtars-cli.js.map +2 -2
- package/bundle/abtars-restart.js +7 -7
- package/bundle/abtars-rss.js +2 -1
- package/bundle/abtars-rss.js.map +2 -2
- package/bundle/abtars-task.js +6 -5
- package/bundle/abtars-task.js.map +1 -1
- package/bundle/abtars-todo.js +2 -1
- package/bundle/abtars-todo.js.map +1 -1
- package/bundle/abtars.js +299 -209
- package/bundle/abtars.js.map +4 -4
- package/bundle/{acp-raw-client-AZJCEB6S.js → acp-raw-client-YTBGFN4S.js} +4 -3
- package/bundle/{acp-raw-client-AZJCEB6S.js.map → acp-raw-client-YTBGFN4S.js.map} +1 -1
- package/bundle/{action-gate-QYJL57IX.js → action-gate-YISTP773.js} +4 -3
- package/bundle/{action-gate-QYJL57IX.js.map → action-gate-YISTP773.js.map} +1 -1
- package/bundle/{agent-api-adapter-PYMNQXHE.js → agent-api-adapter-E4HWVJ32.js} +5 -4
- package/bundle/{agent-api-adapter-PYMNQXHE.js.map → agent-api-adapter-E4HWVJ32.js.map} +1 -1
- package/bundle/{agent-api-rate-limit-4GEZ4YN5.js → agent-api-rate-limit-VENFGOAD.js} +6 -5
- package/bundle/{agent-registry-563P4EUJ.js → agent-registry-DL7UT272.js} +9 -8
- package/bundle/bootstrap-V5MROD3X.js +62 -0
- package/bundle/bootstrap-V5MROD3X.js.map +7 -0
- package/bundle/{bridge-lock-transport-LXCF2IVN.js → bridge-lock-transport-BJAMHMXW.js} +6 -5
- package/bundle/{browser-2VZOGOGX.js → browser-PT54UWSW.js} +8 -7
- package/bundle/{budget-PPA7WY3D.js → budget-QNK6IIT6.js} +5 -4
- package/bundle/{budget-PPA7WY3D.js.map → budget-QNK6IIT6.js.map} +1 -1
- package/bundle/{capability-WXEA2WFK.js → capability-EKPGHQIO.js} +7 -6
- package/bundle/{chunk-C3EYYJN3.js → chunk-2BXXQG7P.js} +16 -4
- package/bundle/chunk-2BXXQG7P.js.map +7 -0
- package/bundle/{chunk-4PIVWXUJ.js → chunk-2ZD7VQRW.js} +2 -2
- package/bundle/{chunk-OY2HAK33.js → chunk-36ZEYDKZ.js} +1 -1
- package/bundle/chunk-36ZEYDKZ.js.map +7 -0
- package/bundle/{chunk-3QW2K53E.js → chunk-4IGLXZCC.js} +11 -19
- package/bundle/chunk-4IGLXZCC.js.map +7 -0
- package/bundle/{chunk-T7TAWGBX.js → chunk-52PQM4EZ.js} +2 -2
- package/bundle/{chunk-2RGR3LSV.js → chunk-5P5HF7IJ.js} +2 -2
- package/bundle/{chunk-LE23VPN3.js → chunk-63A7ZRIH.js} +4 -4
- package/bundle/{chunk-LE23VPN3.js.map → chunk-63A7ZRIH.js.map} +1 -1
- package/bundle/chunk-6IB3GVXK.js +77 -0
- package/bundle/chunk-6IB3GVXK.js.map +7 -0
- package/bundle/{chunk-OOKNHOCB.js → chunk-6S3G6GPO.js} +2 -2
- package/bundle/{chunk-E7MV7WFT.js → chunk-6VTHSN4V.js} +6 -6
- package/bundle/{chunk-NGZVJ52F.js → chunk-76YN7O3U.js} +7 -7
- package/bundle/{chunk-43DKPXTP.js → chunk-7LORCJCQ.js} +4 -4
- package/bundle/{chunk-HDOFJVFS.js → chunk-7OI46MH7.js} +3 -3
- package/bundle/{chunk-H2K23MOF.js → chunk-7XXISOHU.js} +21 -5
- package/bundle/chunk-7XXISOHU.js.map +7 -0
- package/bundle/{chunk-CB6S3ZRF.js → chunk-AFFW2LRY.js} +3 -3
- package/bundle/{chunk-TCI6FZTP.js → chunk-AHJDG6OM.js} +9 -9
- package/bundle/{chunk-NP72ZB7P.js → chunk-AMUJEP6L.js} +45 -45
- package/bundle/{chunk-NP72ZB7P.js.map → chunk-AMUJEP6L.js.map} +2 -2
- package/bundle/{chunk-BU7LTI2W.js → chunk-AWCO3DQ3.js} +6 -7
- package/bundle/chunk-AWCO3DQ3.js.map +7 -0
- package/bundle/{chunk-YME7NRGP.js → chunk-B2TIRDZC.js} +2 -2
- package/bundle/{chunk-SSCGWDIC.js → chunk-BWJ37KMW.js} +2 -2
- package/bundle/{chunk-ULO2PX3T.js → chunk-CCZ43JB7.js} +3 -3
- package/bundle/{chunk-FVUL44T4.js → chunk-CNENVY37.js} +2 -2
- package/bundle/{chunk-J5NOL4DB.js → chunk-DJOSXXM2.js} +2 -2
- package/bundle/{chunk-7RAGSHSH.js → chunk-DMDX35YT.js} +12 -10
- package/bundle/chunk-DMDX35YT.js.map +7 -0
- package/bundle/{chunk-DNDYD5SL.js → chunk-E7DZYCSF.js} +3 -3
- package/bundle/{chunk-M6Q3IQ4H.js → chunk-FF2F7ENH.js} +250 -118
- package/bundle/chunk-FF2F7ENH.js.map +7 -0
- package/bundle/{chunk-GCFIK6OB.js → chunk-FSGICOCX.js} +21 -21
- package/bundle/{chunk-IXKQ4JMX.js → chunk-GFAJSPMD.js} +33 -17
- package/bundle/chunk-GFAJSPMD.js.map +7 -0
- package/bundle/{chunk-FJF42RZY.js → chunk-GHRLO2UL.js} +3 -3
- package/bundle/{chunk-3LQOJVTB.js → chunk-HFOCNYEO.js} +1842 -1220
- package/bundle/{chunk-3LQOJVTB.js.map → chunk-HFOCNYEO.js.map} +4 -4
- package/bundle/{chunk-7WHXTCVD.js → chunk-HWFN7JGU.js} +2 -2
- package/bundle/{chunk-KBPVJGD7.js → chunk-IXGDDDAB.js} +3 -3
- package/bundle/chunk-JHLKEUHE.js +37 -0
- package/bundle/chunk-JHLKEUHE.js.map +7 -0
- package/bundle/{chunk-YEOZN5IE.js → chunk-JRGEEGZF.js} +2 -2
- package/bundle/{chunk-56D3Y44D.js → chunk-KLG4SCF7.js} +10 -10
- package/bundle/{chunk-ASYX43OU.js → chunk-LB43Q7G6.js} +26 -26
- package/bundle/{chunk-TVSPVZTX.js → chunk-LN5MNDSA.js} +3 -3
- package/bundle/{chunk-RJX45XIC.js → chunk-LPF2HELD.js} +9 -4
- package/bundle/chunk-LPF2HELD.js.map +7 -0
- package/bundle/{chunk-72T2Q7IG.js → chunk-MJACYH7A.js} +270 -282
- package/bundle/chunk-MJACYH7A.js.map +7 -0
- package/bundle/{chunk-SESM4GBM.js → chunk-MPQ2PJQX.js} +52 -25
- package/bundle/chunk-MPQ2PJQX.js.map +7 -0
- package/bundle/{chunk-FIAVVKGN.js → chunk-MTE32OQH.js} +3 -3
- package/bundle/{chunk-MV5KOWOR.js → chunk-N3Q3TASM.js} +7 -7
- package/bundle/{chunk-IQKADER4.js → chunk-O4YBJS2K.js} +2 -2
- package/bundle/{chunk-VJATH7AN.js → chunk-OOUCUCUW.js} +9 -8
- package/bundle/chunk-OOUCUCUW.js.map +7 -0
- package/bundle/{chunk-5V4VHKEA.js → chunk-OT6HLPEA.js} +3 -3
- package/bundle/{chunk-V6CV3QPH.js → chunk-OWPQIBAO.js} +2 -2
- package/bundle/{chunk-EDZGF6BC.js → chunk-QJPDBJDP.js} +11 -4
- package/bundle/chunk-QJPDBJDP.js.map +7 -0
- package/bundle/{chunk-N5VROZ7A.js → chunk-QMP2KC4W.js} +5 -5
- package/bundle/{chunk-4HNCOQSK.js → chunk-QOGZ7BFL.js} +7 -7
- package/bundle/{chunk-2LKQV2ND.js → chunk-R23FHZRY.js} +3 -3
- package/bundle/{chunk-SXNY6HC4.js → chunk-R4GYWVCR.js} +6 -6
- package/bundle/chunk-R4GYWVCR.js.map +7 -0
- package/bundle/{chunk-S7ZIGIR5.js → chunk-R76K6L6H.js} +27 -27
- package/bundle/{chunk-S7ZIGIR5.js.map → chunk-R76K6L6H.js.map} +1 -1
- package/bundle/{chunk-TY26WMQY.js → chunk-RCWQ34QR.js} +2 -2
- package/bundle/{chunk-MQJG7OJX.js → chunk-RJ2OUNFU.js} +38 -36
- package/bundle/chunk-RJ2OUNFU.js.map +7 -0
- package/bundle/{chunk-S6HEHCCG.js → chunk-RO3TAYBR.js} +83 -46
- package/bundle/chunk-RO3TAYBR.js.map +7 -0
- package/bundle/{chunk-ZOCEBV62.js → chunk-UU3RLJSD.js} +3 -3
- package/bundle/{chunk-P5O6QZDC.js → chunk-V7Y2LFO4.js} +10 -6
- package/bundle/chunk-V7Y2LFO4.js.map +7 -0
- package/bundle/{chunk-WP7FZHMI.js → chunk-W2PSVV2T.js} +2 -2
- package/bundle/{chunk-V2QIAXWZ.js → chunk-WEGFRA6G.js} +3 -3
- package/bundle/{chunk-ZY6DH2S4.js → chunk-WTIGZO3N.js} +80 -70
- package/bundle/chunk-WTIGZO3N.js.map +7 -0
- package/bundle/{chunk-O4GKI3Q3.js → chunk-X7DLKIQM.js} +4 -4
- package/bundle/{chunk-BNBC4T45.js → chunk-XZ4ZBDM5.js} +3 -3
- package/bundle/{chunk-24V4A6RP.js → chunk-YI2KSYB4.js} +4 -4
- package/bundle/{chunk-37EX63K4.js → chunk-YWHJJHJ2.js} +6998 -3621
- package/bundle/chunk-YWHJJHJ2.js.map +7 -0
- package/bundle/{chunk-IK4R3RBZ.js → chunk-YZCOA4DC.js} +3 -3
- package/bundle/{chunk-2FZJDMAF.js → chunk-ZGNSCJWH.js} +10 -10
- package/bundle/{chunk-W726UGI6.js → chunk-ZKMKAO75.js} +3 -3
- package/bundle/{chunk-WGWM4IZM.js → chunk-ZT5ZBGWS.js} +4 -4
- package/bundle/{chunk-WGWM4IZM.js.map → chunk-ZT5ZBGWS.js.map} +1 -1
- package/bundle/{commands-XXFU2ZF7.js → commands-2JQ5YTJX.js} +20 -20
- package/bundle/{config-EWDZ234X.js → config-ZEWIM5Z2.js} +8 -7
- package/bundle/{config-show-6J33O4TE.js → config-show-WBJPQPRD.js} +5 -5
- package/bundle/{context-OCS7HLJP.js → context-V75QNXB5.js} +5 -2
- package/bundle/{context-OCS7HLJP.js.map → context-V75QNXB5.js.map} +1 -1
- package/bundle/{daemon-LTDAXNA2.js → daemon-W7VQOSZC.js} +7 -7
- package/bundle/{delegation-tools-YDTWQMZD.js → delegation-tools-VGTRFQBF.js} +13 -11
- package/bundle/{registry-client-VN2MM2HI.js → deploy-5AGIULM2.js} +10 -6
- package/bundle/{deploy-lib-import-RGZJ3CGC.js → deploy-lib-import-ZBDYORN4.js} +5 -3
- package/bundle/{deps-PHSLIA77.js → deps-VB3S3RLF.js} +21 -19
- package/bundle/deps-VB3S3RLF.js.map +7 -0
- package/bundle/{direct-api-transport-OAKYQBJR.js → direct-api-transport-YSROTC35.js} +30 -28
- package/bundle/direct-api-transport-YSROTC35.js.map +7 -0
- package/bundle/{discord-adapter-WUNYPTDE.js → discord-adapter-LKBSIFLV.js} +26 -26
- package/bundle/{dist-7HEHHQI2.js → dist-KMK7TZGN.js} +376 -348
- package/bundle/dist-KMK7TZGN.js.map +7 -0
- package/bundle/{dns-wakeup-F55ALHXJ.js → dns-wakeup-KIURCCFJ.js} +4 -3
- package/bundle/{dns-wakeup-F55ALHXJ.js.map → dns-wakeup-KIURCCFJ.js.map} +1 -1
- package/bundle/{doctor-probes-3SLIUGKS.js → doctor-probes-46UKIROK.js} +4 -3
- package/bundle/{env-schema-MSDP2YBO.js → env-schema-YGHCKX5B.js} +5 -4
- package/bundle/{gossip-CS3G3447.js → gossip-VSEY2HSE.js} +7 -6
- package/bundle/{guardrails-24XK2COI.js → guardrails-U7M6H2GE.js} +6 -5
- package/bundle/{health-check-FRUNRVNQ.js → health-check-ASRLUJE5.js} +6 -2
- package/bundle/health-check-ASRLUJE5.js.map +7 -0
- package/bundle/{heartbeat-system-G4IFQXT6.js → heartbeat-system-MUXLT4E6.js} +7 -6
- package/bundle/{heartbeat-tier3-3ZO3EVXP.js → heartbeat-tier3-636ZMM4E.js} +45 -44
- package/bundle/heartbeat-tier3-636ZMM4E.js.map +7 -0
- package/bundle/{hook-system-X6INNJGV.js → hook-system-Z4XD6IM5.js} +5 -4
- package/bundle/{hotskills-6FQYTJIO.js → hotskills-AOUWVTQB.js} +7 -6
- package/bundle/{install-ZAHTZ5M5.js → install-3GGZUN22.js} +23 -20
- package/bundle/install-3GGZUN22.js.map +7 -0
- package/bundle/{install-manifest-QX7KVDCA.js → install-manifest-624KOB4S.js} +4 -3
- package/bundle/{install-manifest-QX7KVDCA.js.map → install-manifest-624KOB4S.js.map} +1 -1
- package/bundle/{irc-adapter-IEJQKKJF.js → irc-adapter-SA7GLJGR.js} +5 -4
- package/bundle/{irc-adapter-IEJQKKJF.js.map → irc-adapter-SA7GLJGR.js.map} +1 -1
- package/bundle/{irc-config-TTWNYFLH.js → irc-config-PG4X2I4M.js} +6 -5
- package/bundle/{irc-config-TTWNYFLH.js.map → irc-config-PG4X2I4M.js.map} +1 -1
- package/bundle/{kanban-board-J6RO3ZU7.js → kanban-board-4AI5Z6B5.js} +7 -5
- package/bundle/{kanban-channel-5EIXBFSA.js → kanban-channel-JMBYWGWD.js} +8 -6
- package/bundle/{lazy-require-V6EFUATC.js → lazy-require-GURNBC3C.js} +11 -6
- package/bundle/{logger-Y3VILPRH.js → logger-UQJPZMYV.js} +4 -3
- package/bundle/{logs-YS3GDURO.js → logs-2WTDLMB5.js} +5 -5
- package/bundle/{main-chat-YLZDNQPO.js → main-chat-EID5Y6H2.js} +6 -5
- package/bundle/{master-user-Z4M7KCJE.js → master-user-TKA7M2GL.js} +7 -6
- package/bundle/{media-utils-P6RZ2K3U.js → media-utils-X3UN342B.js} +44 -43
- package/bundle/{media-utils-P6RZ2K3U.js.map → media-utils-X3UN342B.js.map} +2 -2
- package/bundle/{message-pipeline-MHEBDJLH.js → message-pipeline-TAWXNEVS.js} +20 -20
- package/bundle/meta.json +9264 -8575
- package/bundle/{migrate-layout-RJJQLVGR.js → migrate-layout-KEAIIN26.js} +8 -4
- package/bundle/migrate-layout-KEAIIN26.js.map +7 -0
- package/bundle/{nerve-VZNMFDGY.js → nerve-TC34H4EL.js} +5 -4
- package/bundle/{notification-VV2OR6NW.js → notification-JQNVGICN.js} +8 -7
- package/bundle/{openrouter-credits-LXC7P4G6.js → openrouter-credits-5Q3EYWE5.js} +5 -4
- package/bundle/{openrouter-credits-LXC7P4G6.js.map → openrouter-credits-5Q3EYWE5.js.map} +1 -1
- package/bundle/{orc-KC4USP55.js → orc-74Z62W7B.js} +4 -4
- package/bundle/{orc-tools-CHRSXSAS.js → orc-tools-GME3DKIN.js} +5 -4
- package/bundle/{paths-EDK6KWHG.js → paths-BAUNPLNJ.js} +6 -2
- package/bundle/{paths-RZF6WDMG.js → paths-MZC2KU2C.js} +3 -2
- package/bundle/{peer-auth-SRONOLNG.js → peer-auth-VRO3JYL5.js} +9 -8
- package/bundle/{peer-client-VOF77T6C.js → peer-client-WLK5GZQS.js} +9 -8
- package/bundle/{peer-client-VOF77T6C.js.map → peer-client-WLK5GZQS.js.map} +1 -1
- package/bundle/{peer-config-FRWLEYQ5.js → peer-config-24WILLCJ.js} +6 -5
- package/bundle/{peer-jwt-XY3XRIA2.js → peer-jwt-ZR6RF3XM.js} +6 -5
- package/bundle/{peer-transport-UBBXTDRP.js → peer-transport-BK5VHI2M.js} +8 -7
- package/bundle/{phase-transport-4NQHZX75.js → phase-transport-7QJM7J6V.js} +18 -16
- package/bundle/{reconcile-2EUXJ6W5.js → reconcile-7N7OE2GU.js} +5 -4
- package/bundle/{reconciler-FFQGV4DO.js → reconciler-7LOOUK43.js} +13 -11
- package/bundle/{reconciler-FFQGV4DO.js.map → reconciler-7LOOUK43.js.map} +1 -1
- package/bundle/{restore-NFDE2RG6.js → restore-MENZ3I3K.js} +13 -9
- package/bundle/{restore-NFDE2RG6.js.map → restore-MENZ3I3K.js.map} +3 -3
- package/bundle/{rollback-MVZ53XS4.js → rollback-JOHY6KWW.js} +5 -5
- package/bundle/{chunk-SKY6656M.js → sandbox-runtime-T7RF4WJD.js} +11 -28
- package/bundle/{chunk-SKY6656M.js.map → sandbox-runtime-T7RF4WJD.js.map} +1 -1
- package/bundle/{self-healer-utils-KD6LV63S.js → self-healer-utils-OR2N6RLD.js} +5 -4
- package/bundle/{self-healer-utils-KD6LV63S.js.map → self-healer-utils-OR2N6RLD.js.map} +1 -1
- package/bundle/{sha-tracker-2DB4R2TW.js → sha-tracker-BXOLWZJL.js} +5 -4
- package/bundle/{skill-session-BPDVA6ZG.js → skill-session-H6EQ4NGN.js} +5 -4
- package/bundle/{skill-session-BPDVA6ZG.js.map → skill-session-H6EQ4NGN.js.map} +1 -1
- package/bundle/{skill-stats-TPD2NROA.js → skill-stats-7O777ZSZ.js} +6 -5
- package/bundle/{skill-watcher-D7QYYYON.js → skill-watcher-ZGLTDPG5.js} +6 -5
- package/bundle/{sleep-GH6DLBJJ.js → sleep-3LFZH727.js} +10 -9
- package/bundle/{soul-bundle-GXLMDBCC.js → soul-bundle-RQ2YQMJW.js} +10 -9
- package/bundle/{spin-4DBYHS3E.js → spin-76K4R6FK.js} +12 -10
- package/bundle/{spin-notifications-IKYJPER5.js → spin-notifications-LD46B4K5.js} +7 -5
- package/bundle/{spin-notifications-IKYJPER5.js.map → spin-notifications-LD46B4K5.js.map} +1 -1
- package/bundle/{spin-types-PLJH3SIK.js → spin-types-MOKTZXGB.js} +5 -4
- package/bundle/{src-SUFZ27S5.js → src-6BTCMOD3.js} +4 -4
- package/bundle/{sse-parser-anthropic-U7ILHOY5.js → sse-parser-anthropic-NV2CGBIT.js} +5 -4
- package/bundle/{sse-parser-anthropic-U7ILHOY5.js.map → sse-parser-anthropic-NV2CGBIT.js.map} +1 -1
- package/bundle/{sse-parser-responses-OI73R3AH.js → sse-parser-responses-FC3PFHQ5.js} +5 -4
- package/bundle/{sse-parser-responses-OI73R3AH.js.map → sse-parser-responses-FC3PFHQ5.js.map} +1 -1
- package/bundle/{ssrf-guard-6GP4QYVA.js → ssrf-guard-E2YPLW6G.js} +5 -4
- package/bundle/{ssrf-guard-6GP4QYVA.js.map → ssrf-guard-E2YPLW6G.js.map} +1 -1
- package/bundle/{start-JT2BPMSW.js → start-HPO5LYJP.js} +5 -5
- package/bundle/start-HPO5LYJP.js.map +7 -0
- package/bundle/{stt-KD3AABKG.js → stt-UE7EOYD7.js} +6 -5
- package/bundle/{subagent-runtime-LVECAUPV.js → subagent-runtime-4X3UHF4H.js} +6 -5
- package/bundle/system-status-PLPWV4RF.js +346 -0
- package/bundle/system-status-PLPWV4RF.js.map +7 -0
- package/bundle/{task-store-2XRDM3AW.js → task-store-RAFMDQ7N.js} +6 -5
- package/bundle/{telegram-adapter-UJ3RYYV6.js → telegram-adapter-PPXKTGOP.js} +35 -35
- package/bundle/{tool-registry-YU6WBXPA.js → tool-registry-NKIPNJZ5.js} +25 -23
- package/bundle/{tool-sandbox-RNNPDR5M.js → tool-sandbox-DQCP3UTU.js} +6 -5
- package/bundle/{transport-config-OK3MZPJK.js → transport-config-SF6GBV47.js} +9 -8
- package/bundle/{update-ENNPRW7Y.js → update-QOOGMFSJ.js} +6 -6
- package/bundle/{update-check-SJB6GV3A.js → update-check-LPZG3K5P.js} +3 -2
- package/bundle/{update-check-SJB6GV3A.js.map → update-check-LPZG3K5P.js.map} +1 -1
- package/bundle/{usage-tracker-HRSGC7QC.js → usage-tracker-TBDM4KE6.js} +2 -2
- package/bundle/{user-registry-6PUJJ5J2.js → user-registry-OYJVAHDD.js} +6 -5
- package/bundle/{wrapper-WLHLG4MI.js → wrapper-W66YICNZ.js} +3 -3
- package/bundle/{ws-peer-client-WHW3RJTD.js → ws-peer-client-G5QHOF6K.js} +15 -14
- package/bundle/{ws-peer-client-WHW3RJTD.js.map → ws-peer-client-G5QHOF6K.js.map} +2 -2
- package/package.json +3 -7
- package/scripts/emergency-deploy.sh +11 -8
- package/scripts/emergency-update.sh +156 -23
- package/templates/config/.env +1 -1
- package/templates/config/models.json +13 -0
- package/bundle/chunk-37EX63K4.js.map +0 -7
- package/bundle/chunk-3QW2K53E.js.map +0 -7
- package/bundle/chunk-72T2Q7IG.js.map +0 -7
- package/bundle/chunk-7RAGSHSH.js.map +0 -7
- package/bundle/chunk-BU7LTI2W.js.map +0 -7
- package/bundle/chunk-C3EYYJN3.js.map +0 -7
- package/bundle/chunk-CAOIIVFP.js +0 -110
- package/bundle/chunk-CAOIIVFP.js.map +0 -7
- package/bundle/chunk-EDZGF6BC.js.map +0 -7
- package/bundle/chunk-H2K23MOF.js.map +0 -7
- package/bundle/chunk-HAZHNBBY.js +0 -156
- package/bundle/chunk-HAZHNBBY.js.map +0 -7
- package/bundle/chunk-IXKQ4JMX.js.map +0 -7
- package/bundle/chunk-JAJ3DUQ2.js +0 -30
- package/bundle/chunk-JAJ3DUQ2.js.map +0 -7
- package/bundle/chunk-KMFR5AVY.js +0 -45
- package/bundle/chunk-KMFR5AVY.js.map +0 -7
- package/bundle/chunk-M6Q3IQ4H.js.map +0 -7
- package/bundle/chunk-MQJG7OJX.js.map +0 -7
- package/bundle/chunk-OY2HAK33.js.map +0 -7
- package/bundle/chunk-P5O6QZDC.js.map +0 -7
- package/bundle/chunk-RJX45XIC.js.map +0 -7
- package/bundle/chunk-S6HEHCCG.js.map +0 -7
- package/bundle/chunk-SESM4GBM.js.map +0 -7
- package/bundle/chunk-SXNY6HC4.js.map +0 -7
- package/bundle/chunk-VJATH7AN.js.map +0 -7
- package/bundle/chunk-ZY6DH2S4.js.map +0 -7
- package/bundle/deps-PHSLIA77.js.map +0 -7
- package/bundle/direct-api-transport-OAKYQBJR.js.map +0 -7
- package/bundle/dist-7HEHHQI2.js.map +0 -7
- package/bundle/health-check-FRUNRVNQ.js.map +0 -7
- package/bundle/heartbeat-tier3-3ZO3EVXP.js.map +0 -7
- package/bundle/install-ZAHTZ5M5.js.map +0 -7
- package/bundle/migrate-layout-RJJQLVGR.js.map +0 -7
- package/bundle/phase-config-V4XETN5F.js +0 -18
- package/bundle/sandbox-runtime-WHACQLLN.js +0 -22
- package/bundle/start-JT2BPMSW.js.map +0 -7
- package/bundle/system-status-XXJWTVJN.js +0 -243
- package/bundle/system-status-XXJWTVJN.js.map +0 -7
- package/bundle/user-registry-6PUJJ5J2.js.map +0 -7
- package/bundle/wrapper-WLHLG4MI.js.map +0 -7
- /package/bundle/{agent-api-rate-limit-4GEZ4YN5.js.map → agent-api-rate-limit-VENFGOAD.js.map} +0 -0
- /package/bundle/{agent-registry-563P4EUJ.js.map → agent-registry-DL7UT272.js.map} +0 -0
- /package/bundle/{bridge-lock-transport-LXCF2IVN.js.map → bridge-lock-transport-BJAMHMXW.js.map} +0 -0
- /package/bundle/{browser-2VZOGOGX.js.map → browser-PT54UWSW.js.map} +0 -0
- /package/bundle/{capability-WXEA2WFK.js.map → capability-EKPGHQIO.js.map} +0 -0
- /package/bundle/{chunk-4PIVWXUJ.js.map → chunk-2ZD7VQRW.js.map} +0 -0
- /package/bundle/{chunk-T7TAWGBX.js.map → chunk-52PQM4EZ.js.map} +0 -0
- /package/bundle/{chunk-2RGR3LSV.js.map → chunk-5P5HF7IJ.js.map} +0 -0
- /package/bundle/{chunk-OOKNHOCB.js.map → chunk-6S3G6GPO.js.map} +0 -0
- /package/bundle/{chunk-E7MV7WFT.js.map → chunk-6VTHSN4V.js.map} +0 -0
- /package/bundle/{chunk-NGZVJ52F.js.map → chunk-76YN7O3U.js.map} +0 -0
- /package/bundle/{chunk-43DKPXTP.js.map → chunk-7LORCJCQ.js.map} +0 -0
- /package/bundle/{chunk-HDOFJVFS.js.map → chunk-7OI46MH7.js.map} +0 -0
- /package/bundle/{chunk-CB6S3ZRF.js.map → chunk-AFFW2LRY.js.map} +0 -0
- /package/bundle/{chunk-TCI6FZTP.js.map → chunk-AHJDG6OM.js.map} +0 -0
- /package/bundle/{chunk-YME7NRGP.js.map → chunk-B2TIRDZC.js.map} +0 -0
- /package/bundle/{chunk-SSCGWDIC.js.map → chunk-BWJ37KMW.js.map} +0 -0
- /package/bundle/{chunk-ULO2PX3T.js.map → chunk-CCZ43JB7.js.map} +0 -0
- /package/bundle/{chunk-FVUL44T4.js.map → chunk-CNENVY37.js.map} +0 -0
- /package/bundle/{chunk-J5NOL4DB.js.map → chunk-DJOSXXM2.js.map} +0 -0
- /package/bundle/{chunk-DNDYD5SL.js.map → chunk-E7DZYCSF.js.map} +0 -0
- /package/bundle/{chunk-GCFIK6OB.js.map → chunk-FSGICOCX.js.map} +0 -0
- /package/bundle/{chunk-FJF42RZY.js.map → chunk-GHRLO2UL.js.map} +0 -0
- /package/bundle/{chunk-7WHXTCVD.js.map → chunk-HWFN7JGU.js.map} +0 -0
- /package/bundle/{chunk-KBPVJGD7.js.map → chunk-IXGDDDAB.js.map} +0 -0
- /package/bundle/{chunk-YEOZN5IE.js.map → chunk-JRGEEGZF.js.map} +0 -0
- /package/bundle/{chunk-56D3Y44D.js.map → chunk-KLG4SCF7.js.map} +0 -0
- /package/bundle/{chunk-ASYX43OU.js.map → chunk-LB43Q7G6.js.map} +0 -0
- /package/bundle/{chunk-TVSPVZTX.js.map → chunk-LN5MNDSA.js.map} +0 -0
- /package/bundle/{chunk-FIAVVKGN.js.map → chunk-MTE32OQH.js.map} +0 -0
- /package/bundle/{chunk-MV5KOWOR.js.map → chunk-N3Q3TASM.js.map} +0 -0
- /package/bundle/{chunk-IQKADER4.js.map → chunk-O4YBJS2K.js.map} +0 -0
- /package/bundle/{chunk-5V4VHKEA.js.map → chunk-OT6HLPEA.js.map} +0 -0
- /package/bundle/{chunk-V6CV3QPH.js.map → chunk-OWPQIBAO.js.map} +0 -0
- /package/bundle/{chunk-N5VROZ7A.js.map → chunk-QMP2KC4W.js.map} +0 -0
- /package/bundle/{chunk-4HNCOQSK.js.map → chunk-QOGZ7BFL.js.map} +0 -0
- /package/bundle/{chunk-2LKQV2ND.js.map → chunk-R23FHZRY.js.map} +0 -0
- /package/bundle/{chunk-TY26WMQY.js.map → chunk-RCWQ34QR.js.map} +0 -0
- /package/bundle/{chunk-ZOCEBV62.js.map → chunk-UU3RLJSD.js.map} +0 -0
- /package/bundle/{chunk-WP7FZHMI.js.map → chunk-W2PSVV2T.js.map} +0 -0
- /package/bundle/{chunk-V2QIAXWZ.js.map → chunk-WEGFRA6G.js.map} +0 -0
- /package/bundle/{chunk-O4GKI3Q3.js.map → chunk-X7DLKIQM.js.map} +0 -0
- /package/bundle/{chunk-BNBC4T45.js.map → chunk-XZ4ZBDM5.js.map} +0 -0
- /package/bundle/{chunk-24V4A6RP.js.map → chunk-YI2KSYB4.js.map} +0 -0
- /package/bundle/{chunk-IK4R3RBZ.js.map → chunk-YZCOA4DC.js.map} +0 -0
- /package/bundle/{chunk-2FZJDMAF.js.map → chunk-ZGNSCJWH.js.map} +0 -0
- /package/bundle/{chunk-W726UGI6.js.map → chunk-ZKMKAO75.js.map} +0 -0
- /package/bundle/{commands-XXFU2ZF7.js.map → commands-2JQ5YTJX.js.map} +0 -0
- /package/bundle/{config-EWDZ234X.js.map → config-ZEWIM5Z2.js.map} +0 -0
- /package/bundle/{config-show-6J33O4TE.js.map → config-show-WBJPQPRD.js.map} +0 -0
- /package/bundle/{daemon-LTDAXNA2.js.map → daemon-W7VQOSZC.js.map} +0 -0
- /package/bundle/{delegation-tools-YDTWQMZD.js.map → delegation-tools-VGTRFQBF.js.map} +0 -0
- /package/bundle/{deploy-lib-import-RGZJ3CGC.js.map → deploy-5AGIULM2.js.map} +0 -0
- /package/bundle/{doctor-probes-3SLIUGKS.js.map → deploy-lib-import-ZBDYORN4.js.map} +0 -0
- /package/bundle/{discord-adapter-WUNYPTDE.js.map → discord-adapter-LKBSIFLV.js.map} +0 -0
- /package/bundle/{env-schema-MSDP2YBO.js.map → doctor-probes-46UKIROK.js.map} +0 -0
- /package/bundle/{gossip-CS3G3447.js.map → env-schema-YGHCKX5B.js.map} +0 -0
- /package/bundle/{guardrails-24XK2COI.js.map → gossip-VSEY2HSE.js.map} +0 -0
- /package/bundle/{heartbeat-system-G4IFQXT6.js.map → guardrails-U7M6H2GE.js.map} +0 -0
- /package/bundle/{hook-system-X6INNJGV.js.map → heartbeat-system-MUXLT4E6.js.map} +0 -0
- /package/bundle/{hotskills-6FQYTJIO.js.map → hook-system-Z4XD6IM5.js.map} +0 -0
- /package/bundle/{kanban-board-J6RO3ZU7.js.map → hotskills-AOUWVTQB.js.map} +0 -0
- /package/bundle/{kanban-channel-5EIXBFSA.js.map → kanban-board-4AI5Z6B5.js.map} +0 -0
- /package/bundle/{lazy-require-V6EFUATC.js.map → kanban-channel-JMBYWGWD.js.map} +0 -0
- /package/bundle/{logger-Y3VILPRH.js.map → lazy-require-GURNBC3C.js.map} +0 -0
- /package/bundle/{main-chat-YLZDNQPO.js.map → logger-UQJPZMYV.js.map} +0 -0
- /package/bundle/{logs-YS3GDURO.js.map → logs-2WTDLMB5.js.map} +0 -0
- /package/bundle/{master-user-Z4M7KCJE.js.map → main-chat-EID5Y6H2.js.map} +0 -0
- /package/bundle/{message-pipeline-MHEBDJLH.js.map → master-user-TKA7M2GL.js.map} +0 -0
- /package/bundle/{nerve-VZNMFDGY.js.map → message-pipeline-TAWXNEVS.js.map} +0 -0
- /package/bundle/{notification-VV2OR6NW.js.map → nerve-TC34H4EL.js.map} +0 -0
- /package/bundle/{orc-tools-CHRSXSAS.js.map → notification-JQNVGICN.js.map} +0 -0
- /package/bundle/{orc-KC4USP55.js.map → orc-74Z62W7B.js.map} +0 -0
- /package/bundle/{paths-EDK6KWHG.js.map → orc-tools-GME3DKIN.js.map} +0 -0
- /package/bundle/{paths-RZF6WDMG.js.map → paths-BAUNPLNJ.js.map} +0 -0
- /package/bundle/{peer-auth-SRONOLNG.js.map → paths-MZC2KU2C.js.map} +0 -0
- /package/bundle/{peer-config-FRWLEYQ5.js.map → peer-auth-VRO3JYL5.js.map} +0 -0
- /package/bundle/{peer-jwt-XY3XRIA2.js.map → peer-config-24WILLCJ.js.map} +0 -0
- /package/bundle/{peer-transport-UBBXTDRP.js.map → peer-jwt-ZR6RF3XM.js.map} +0 -0
- /package/bundle/{phase-config-V4XETN5F.js.map → peer-transport-BK5VHI2M.js.map} +0 -0
- /package/bundle/{phase-transport-4NQHZX75.js.map → phase-transport-7QJM7J6V.js.map} +0 -0
- /package/bundle/{reconcile-2EUXJ6W5.js.map → reconcile-7N7OE2GU.js.map} +0 -0
- /package/bundle/{registry-client-VN2MM2HI.js.map → rollback-JOHY6KWW.js.map} +0 -0
- /package/bundle/{rollback-MVZ53XS4.js.map → sha-tracker-BXOLWZJL.js.map} +0 -0
- /package/bundle/{sandbox-runtime-WHACQLLN.js.map → skill-stats-7O777ZSZ.js.map} +0 -0
- /package/bundle/{sha-tracker-2DB4R2TW.js.map → skill-watcher-ZGLTDPG5.js.map} +0 -0
- /package/bundle/{skill-stats-TPD2NROA.js.map → sleep-3LFZH727.js.map} +0 -0
- /package/bundle/{skill-watcher-D7QYYYON.js.map → soul-bundle-RQ2YQMJW.js.map} +0 -0
- /package/bundle/{sleep-GH6DLBJJ.js.map → spin-76K4R6FK.js.map} +0 -0
- /package/bundle/{soul-bundle-GXLMDBCC.js.map → spin-types-MOKTZXGB.js.map} +0 -0
- /package/bundle/{spin-4DBYHS3E.js.map → src-6BTCMOD3.js.map} +0 -0
- /package/bundle/{spin-types-PLJH3SIK.js.map → stt-UE7EOYD7.js.map} +0 -0
- /package/bundle/{src-SUFZ27S5.js.map → subagent-runtime-4X3UHF4H.js.map} +0 -0
- /package/bundle/{stt-KD3AABKG.js.map → task-store-RAFMDQ7N.js.map} +0 -0
- /package/bundle/{telegram-adapter-UJ3RYYV6.js.map → telegram-adapter-PPXKTGOP.js.map} +0 -0
- /package/bundle/{subagent-runtime-LVECAUPV.js.map → tool-registry-NKIPNJZ5.js.map} +0 -0
- /package/bundle/{task-store-2XRDM3AW.js.map → tool-sandbox-DQCP3UTU.js.map} +0 -0
- /package/bundle/{tool-registry-YU6WBXPA.js.map → transport-config-SF6GBV47.js.map} +0 -0
- /package/bundle/{tool-sandbox-RNNPDR5M.js.map → update-QOOGMFSJ.js.map} +0 -0
- /package/bundle/{transport-config-OK3MZPJK.js.map → usage-tracker-TBDM4KE6.js.map} +0 -0
- /package/bundle/{update-ENNPRW7Y.js.map → user-registry-OYJVAHDD.js.map} +0 -0
- /package/bundle/{usage-tracker-HRSGC7QC.js.map → wrapper-W66YICNZ.js.map} +0 -0
|
@@ -1,14 +1,18 @@
|
|
|
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
|
+
import {
|
|
4
|
+
init_paths,
|
|
5
|
+
resolveReleasesDir
|
|
6
|
+
} from "./chunk-2BXXQG7P.js";
|
|
3
7
|
import "./chunk-7K2YZTLD.js";
|
|
4
8
|
|
|
5
9
|
// src/cli/deploy-lib/migrate-layout.ts
|
|
10
|
+
init_paths();
|
|
6
11
|
import { existsSync, lstatSync, mkdirSync, renameSync, symlinkSync, writeFileSync, readFileSync, rmSync } from "node:fs";
|
|
7
|
-
import { join
|
|
8
|
-
import { homedir } from "node:os";
|
|
12
|
+
import { join } from "node:path";
|
|
9
13
|
function migrateIfNeeded(home) {
|
|
10
14
|
const appDir = join(home, "app");
|
|
11
|
-
const releasesDir =
|
|
15
|
+
const releasesDir = resolveReleasesDir();
|
|
12
16
|
if (!existsSync(appDir)) return false;
|
|
13
17
|
try {
|
|
14
18
|
if (lstatSync(appDir).isSymbolicLink()) return false;
|
|
@@ -77,4 +81,4 @@ function migrateIfNeeded(home) {
|
|
|
77
81
|
export {
|
|
78
82
|
migrateIfNeeded
|
|
79
83
|
};
|
|
80
|
-
//# sourceMappingURL=migrate-layout-
|
|
84
|
+
//# sourceMappingURL=migrate-layout-KEAIIN26.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/cli/deploy-lib/migrate-layout.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * migrate-layout.ts \u2014 One-time migration from #1085 layout to #1089 releases dir.\n * Detects old layout (app/ is a real dir, not a symlink) and moves to releases.\n */\n\nimport { existsSync, lstatSync, mkdirSync, renameSync, symlinkSync, writeFileSync, readFileSync, rmSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { resolveReleasesDir } from \"./paths.js\";\n\nexport function migrateIfNeeded(home: string): boolean {\n const appDir = join(home, \"app\");\n const releasesDir = resolveReleasesDir();\n\n // Already migrated: app/ is a symlink OR releases/current exists\n if (!existsSync(appDir)) return false;\n try {\n if (lstatSync(appDir).isSymbolicLink()) return false;\n } catch { return false; }\n\n // Old layout detected \u2014 migrate\n process.stdout.write(\"[migrate] Converting from #1085 layout to #1089 releases dir...\\n\");\n mkdirSync(releasesDir, { recursive: true });\n\n // Determine version from manifest\n let version = \"migrated\";\n try {\n const manifest = JSON.parse(readFileSync(join(home, \"manifest.json\"), \"utf-8\"));\n version = manifest.commit ?? manifest.version ?? \"migrated\";\n } catch {}\n\n const targetDir = join(releasesDir, version);\n\n // Move app/ to releases/<version>/\n if (!existsSync(targetDir)) {\n renameSync(appDir, targetDir);\n } else {\n rmSync(appDir, { recursive: true, force: true });\n }\n process.stdout.write(` \u2713 app/ \u2192 releases/${version}\\n`);\n\n // Move app.prev/ if exists\n const prevDir = join(home, \"app.prev\");\n if (existsSync(prevDir) && !lstatSync(prevDir).isSymbolicLink()) {\n let prevVersion = \"prev\";\n try {\n const pkg = JSON.parse(readFileSync(join(prevDir, \"package.json\"), \"utf-8\"));\n prevVersion = pkg.version ?? \"prev\";\n } catch {}\n const prevTarget = join(releasesDir, prevVersion);\n if (!existsSync(prevTarget)) renameSync(prevDir, prevTarget);\n else rmSync(prevDir, { recursive: true, force: true });\n process.stdout.write(` \u2713 app.prev/ \u2192 releases/${prevVersion}\\n`);\n }\n\n // Move src/ if exists\n const srcDir = join(home, \"src\");\n const releasesSrc = join(releasesDir, \"src\");\n if (existsSync(srcDir)) {\n if (!existsSync(releasesSrc)) {\n renameSync(srcDir, releasesSrc);\n process.stdout.write(\" \u2713 src/ \u2192 releases/src/\\n\");\n } else {\n rmSync(srcDir, { recursive: true, force: true });\n process.stdout.write(\" \u2713 src/ removed (already in releases/src/)\\n\");\n }\n }\n\n // Create symlinks\n const currentLink = join(releasesDir, \"current\");\n try { symlinkSync(targetDir, currentLink); } catch {}\n try { symlinkSync(targetDir, appDir); } catch {}\n\n // Write history.json\n const history = [version];\n if (existsSync(join(releasesDir, \"prev\"))) history.push(\"prev\");\n writeFileSync(join(releasesDir, \"history.json\"), JSON.stringify(history) + \"\\n\");\n\n // Remove old dirs that are now dead\n for (const old of [\"app.prev.1\", \"app.prev.2\", \"app.prev.3\", \"app.staging\", \"core\"]) {\n rmSync(join(home, old), { recursive: true, force: true });\n }\n\n process.stdout.write(\"[migrate] Done. Layout upgraded to #1089.\\n\");\n return true;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAOA;AAFA,SAAS,YAAY,WAAW,WAAW,YAAY,aAAa,eAAe,cAAc,cAAc;AAC/G,SAAS,YAAY;AAGd,SAAS,gBAAgB,MAAuB;AACrD,QAAM,SAAS,KAAK,MAAM,KAAK;AAC/B,QAAM,cAAc,mBAAmB;AAGvC,MAAI,CAAC,WAAW,MAAM,EAAG,QAAO;AAChC,MAAI;AACF,QAAI,UAAU,MAAM,EAAE,eAAe,EAAG,QAAO;AAAA,EACjD,QAAQ;AAAE,WAAO;AAAA,EAAO;AAGxB,UAAQ,OAAO,MAAM,mEAAmE;AACxF,YAAU,aAAa,EAAE,WAAW,KAAK,CAAC;AAG1C,MAAI,UAAU;AACd,MAAI;AACF,UAAM,WAAW,KAAK,MAAM,aAAa,KAAK,MAAM,eAAe,GAAG,OAAO,CAAC;AAC9E,cAAU,SAAS,UAAU,SAAS,WAAW;AAAA,EACnD,QAAQ;AAAA,EAAC;AAET,QAAM,YAAY,KAAK,aAAa,OAAO;AAG3C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K,aAAa,MAAM,CAAC,EAAG,SAAQ,KAAK,MAAM;AAC9D,gBAAc,KAAK,aAAa,cAAc,GAAG,KAAK,UAAU,OAAO,IAAI,IAAI;AAG/E,aAAW,OAAO,CAAC,cAAc,cAAc,cAAc,eAAe,MAAM,GAAG;AACnF,WAAO,KAAK,MAAM,GAAG,GAAG,EAAE,WAAW,MAAM,OAAO,KAAK,CAAC;AAAA,EAC1D;AAEA,UAAQ,OAAO,MAAM,6CAA6C;AAClE,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
import {
|
|
4
4
|
init_nerve,
|
|
5
5
|
nerve
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-B2TIRDZC.js";
|
|
7
|
+
import "./chunk-6S3G6GPO.js";
|
|
8
|
+
import "./chunk-7XXISOHU.js";
|
|
9
|
+
import "./chunk-2BXXQG7P.js";
|
|
9
10
|
import "./chunk-7K2YZTLD.js";
|
|
10
11
|
init_nerve();
|
|
11
12
|
export {
|
|
12
13
|
nerve
|
|
13
14
|
};
|
|
14
|
-
//# sourceMappingURL=nerve-
|
|
15
|
+
//# sourceMappingURL=nerve-TC34H4EL.js.map
|
|
@@ -2,15 +2,16 @@
|
|
|
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-
|
|
5
|
+
} from "./chunk-WEGFRA6G.js";
|
|
6
|
+
import "./chunk-R23FHZRY.js";
|
|
7
7
|
import "./chunk-YWZPKBO6.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-BWJ37KMW.js";
|
|
9
|
+
import "./chunk-W2PSVV2T.js";
|
|
10
|
+
import "./chunk-6S3G6GPO.js";
|
|
11
|
+
import "./chunk-7XXISOHU.js";
|
|
12
|
+
import "./chunk-2BXXQG7P.js";
|
|
12
13
|
import "./chunk-7K2YZTLD.js";
|
|
13
14
|
export {
|
|
14
15
|
sendNotification
|
|
15
16
|
};
|
|
16
|
-
//# sourceMappingURL=notification-
|
|
17
|
+
//# sourceMappingURL=notification-JQNVGICN.js.map
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
import {
|
|
4
4
|
getEnv,
|
|
5
5
|
init_env_schema
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-BWJ37KMW.js";
|
|
7
|
+
import "./chunk-6S3G6GPO.js";
|
|
8
|
+
import "./chunk-7XXISOHU.js";
|
|
9
|
+
import "./chunk-2BXXQG7P.js";
|
|
9
10
|
import "./chunk-7K2YZTLD.js";
|
|
10
11
|
|
|
11
12
|
// src/components/openrouter-credits.ts
|
|
@@ -30,4 +31,4 @@ async function fetchOpenRouterCredits() {
|
|
|
30
31
|
export {
|
|
31
32
|
fetchOpenRouterCredits
|
|
32
33
|
};
|
|
33
|
-
//# sourceMappingURL=openrouter-credits-
|
|
34
|
+
//# sourceMappingURL=openrouter-credits-5Q3EYWE5.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/components/openrouter-credits.ts"],
|
|
4
4
|
"sourcesContent": ["/**\n * openrouter-credits.ts \u2014 Fetch OpenRouter account credits via API.\n */\nimport { getEnv } from \"./env-schema.js\";\n\nexport interface OpenRouterCredits {\n purchased: number;\n used: number;\n remaining: number;\n}\n\nexport async function fetchOpenRouterCredits(): Promise<OpenRouterCredits | null> {\n const apiKey = getEnv().getApiKey(\"OPENROUTER_API_KEY\");\n if (!apiKey) return null;\n try {\n const res = await fetch(\"https://openrouter.ai/api/v1/credits\", {\n headers: { Authorization: `Bearer ${apiKey}` },\n signal: AbortSignal.timeout(5000),\n });\n if (!res.ok) return null;\n const data = await res.json() as { data?: { total_credits?: number; total_usage?: number } };\n const purchased = data.data?.total_credits ?? 0;\n const used = data.data?.total_usage ?? 0;\n return { purchased, used, remaining: purchased - used };\n } catch { return null; }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAGA;AAQA,eAAsB,yBAA4D;AAChF,QAAM,SAAS,OAAO,EAAE,UAAU,oBAAoB;AACtD,MAAI,CAAC,OAAQ,QAAO;AACpB,MAAI;AACF,UAAM,MAAM,MAAM,MAAM,wCAAwC;AAAA,MAC9D,SAAS,EAAE,eAAe,UAAU,MAAM,GAAG;AAAA,MAC7C,QAAQ,YAAY,QAAQ,GAAI;AAAA,IAClC,CAAC;AACD,QAAI,CAAC,IAAI,GAAI,QAAO;AACpB,UAAM,OAAO,MAAM,IAAI,KAAK;AAC5B,UAAM,YAAY,KAAK,MAAM,iBAAiB;AAC9C,UAAM,OAAO,KAAK,MAAM,eAAe;AACvC,WAAO,EAAE,WAAW,MAAM,WAAW,YAAY,KAAK;AAAA,EACxD,QAAQ;AAAE,WAAO;AAAA,EAAM;AACzB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
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
|
printBanner
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-LN5MNDSA.js";
|
|
6
|
+
import "./chunk-QJPDBJDP.js";
|
|
7
|
+
import "./chunk-2BXXQG7P.js";
|
|
8
8
|
import "./chunk-7K2YZTLD.js";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/orc.ts
|
|
@@ -74,4 +74,4 @@ async function orc(args) {
|
|
|
74
74
|
export {
|
|
75
75
|
orc
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=orc-
|
|
77
|
+
//# sourceMappingURL=orc-74Z62W7B.js.map
|
|
@@ -5,9 +5,10 @@ import {
|
|
|
5
5
|
getOrcTools,
|
|
6
6
|
init_orc_tools,
|
|
7
7
|
setActiveOrcCard
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-DMDX35YT.js";
|
|
9
|
+
import "./chunk-6S3G6GPO.js";
|
|
10
|
+
import "./chunk-7XXISOHU.js";
|
|
11
|
+
import "./chunk-2BXXQG7P.js";
|
|
11
12
|
import "./chunk-7K2YZTLD.js";
|
|
12
13
|
init_orc_tools();
|
|
13
14
|
export {
|
|
@@ -15,4 +16,4 @@ export {
|
|
|
15
16
|
getOrcTools,
|
|
16
17
|
setActiveOrcCard
|
|
17
18
|
};
|
|
18
|
-
//# sourceMappingURL=orc-tools-
|
|
19
|
+
//# sourceMappingURL=orc-tools-GME3DKIN.js.map
|
|
@@ -1,18 +1,22 @@
|
|
|
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
|
+
init_paths,
|
|
4
5
|
packagePaths,
|
|
5
6
|
resolveAbmindHome,
|
|
6
7
|
resolveAbtarsHome,
|
|
7
8
|
resolvePackageHome,
|
|
9
|
+
resolveReleasesDir,
|
|
8
10
|
resolveUserBinDir
|
|
9
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2BXXQG7P.js";
|
|
10
12
|
import "./chunk-7K2YZTLD.js";
|
|
13
|
+
init_paths();
|
|
11
14
|
export {
|
|
12
15
|
packagePaths,
|
|
13
16
|
resolveAbmindHome,
|
|
14
17
|
resolveAbtarsHome,
|
|
15
18
|
resolvePackageHome,
|
|
19
|
+
resolveReleasesDir,
|
|
16
20
|
resolveUserBinDir
|
|
17
21
|
};
|
|
18
|
-
//# sourceMappingURL=paths-
|
|
22
|
+
//# sourceMappingURL=paths-BAUNPLNJ.js.map
|
|
@@ -8,7 +8,8 @@ import {
|
|
|
8
8
|
getDeployedVersion,
|
|
9
9
|
init_paths,
|
|
10
10
|
setLazyRoots
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7XXISOHU.js";
|
|
12
|
+
import "./chunk-2BXXQG7P.js";
|
|
12
13
|
import "./chunk-7K2YZTLD.js";
|
|
13
14
|
init_paths();
|
|
14
15
|
export {
|
|
@@ -19,4 +20,4 @@ export {
|
|
|
19
20
|
getDeployedVersion,
|
|
20
21
|
setLazyRoots
|
|
21
22
|
};
|
|
22
|
-
//# sourceMappingURL=paths-
|
|
23
|
+
//# sourceMappingURL=paths-MZC2KU2C.js.map
|
|
@@ -5,13 +5,14 @@ import {
|
|
|
5
5
|
mintPeerJwt,
|
|
6
6
|
signBody,
|
|
7
7
|
tlsOptions
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-GHRLO2UL.js";
|
|
9
|
+
import "./chunk-X7DLKIQM.js";
|
|
10
|
+
import "./chunk-2ZD7VQRW.js";
|
|
11
|
+
import "./chunk-O4YBJS2K.js";
|
|
12
|
+
import "./chunk-W2PSVV2T.js";
|
|
13
|
+
import "./chunk-6S3G6GPO.js";
|
|
14
|
+
import "./chunk-7XXISOHU.js";
|
|
15
|
+
import "./chunk-2BXXQG7P.js";
|
|
15
16
|
import "./chunk-7K2YZTLD.js";
|
|
16
17
|
init_peer_auth();
|
|
17
18
|
export {
|
|
@@ -19,4 +20,4 @@ export {
|
|
|
19
20
|
signBody,
|
|
20
21
|
tlsOptions
|
|
21
22
|
};
|
|
22
|
-
//# sourceMappingURL=peer-auth-
|
|
23
|
+
//# sourceMappingURL=peer-auth-VRO3JYL5.js.map
|
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
import {
|
|
4
4
|
init_peer_config,
|
|
5
5
|
loadPeerConfig
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-X7DLKIQM.js";
|
|
7
|
+
import "./chunk-2ZD7VQRW.js";
|
|
8
8
|
import {
|
|
9
9
|
init_peer_jwt,
|
|
10
10
|
peer_jwt_exports
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-O4YBJS2K.js";
|
|
12
|
+
import "./chunk-W2PSVV2T.js";
|
|
13
13
|
import {
|
|
14
14
|
init_logger,
|
|
15
15
|
logInfo
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-6S3G6GPO.js";
|
|
17
|
+
import "./chunk-7XXISOHU.js";
|
|
18
|
+
import "./chunk-2BXXQG7P.js";
|
|
18
19
|
import {
|
|
19
20
|
__esm,
|
|
20
21
|
__require,
|
|
@@ -52,7 +53,7 @@ async function callPeer(peerName, prompt, hops, opts) {
|
|
|
52
53
|
if (err instanceof PeerCallError && (err.code === "unreachable" || err.code === "timeout") && peer.udpPort && !opts?.skipWakeup) {
|
|
53
54
|
logInfo(TAG, `Direct call failed (${err.code}) \u2014 UDP callback request \u2192 ${peerKey}`);
|
|
54
55
|
const { registerPending, rejectPending } = await import("./pending-callback-NHFHL2JC.js");
|
|
55
|
-
const { sendWakeup } = await import("./dns-wakeup-
|
|
56
|
+
const { sendWakeup } = await import("./dns-wakeup-KIURCCFJ.js");
|
|
56
57
|
const resultPromise = registerPending(peerKey, signedPrompt);
|
|
57
58
|
sendWakeup(peerKey, peer.host, peer.udpPort, peer.token);
|
|
58
59
|
const timeout = setTimeout(() => rejectPending(peerKey, "callback timeout (60s)"), 6e4);
|
|
@@ -161,4 +162,4 @@ export {
|
|
|
161
162
|
getCurrentPeerHops,
|
|
162
163
|
setCurrentPeerHops
|
|
163
164
|
};
|
|
164
|
-
//# sourceMappingURL=peer-client-
|
|
165
|
+
//# sourceMappingURL=peer-client-WLK5GZQS.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/components/peer-client.ts"],
|
|
4
4
|
"sourcesContent": ["/**\n * peer-client.ts \u2014 HTTP client for peer_session tool (#392).\n * POST /v1/chat/completions with bearer + X-Peer-Hops.\n */\n\nimport { request as httpsRequest } from \"node:https\";\nimport { loadPeerConfig, type PeerEntry } from \"./peer-config.js\";\nimport { logInfo } from \"./logger.js\";\n\nconst TAG = \"peer-client\";\n\nexport type PeerError = \"timeout\" | \"unreachable\" | \"hop_exceeded\" | \"auth_failed\" | \"peer_error\" | \"unknown_peer\";\n\n/**\n * Module-level hop budget for the current request. Set by agent-api-server\n * before dispatching a prompt that came with X-Peer-Hops. Read by peer_session\n * tool to know what hops value to forward. Safe in single-threaded Node\n * because agent-api-server processes one prompt at a time per session.\n */\nlet _currentHops: number | null = null;\nexport function setCurrentPeerHops(hops: number | null): void { _currentHops = hops; }\nexport function getCurrentPeerHops(): number | null { return _currentHops; }\n\nexport class PeerCallError extends Error {\n constructor(public readonly code: PeerError, message: string) {\n super(message);\n this.name = \"PeerCallError\";\n }\n}\n\n/**\n * Call a peer's /v1/chat/completions endpoint.\n * @param peerName \u2014 key in peers.json\n * @param prompt \u2014 user message to send\n * @param hops \u2014 remaining hop budget (decremented before sending)\n */\nexport async function callPeer(peerName: string, prompt: string, hops: number, opts?: { skipWakeup?: boolean }): Promise<string> {\n const config = loadPeerConfig();\n const peerKey = Object.keys(config.peers).find(k => k.toLowerCase() === peerName.toLowerCase());\n const peer = peerKey ? config.peers[peerKey] : undefined;\n if (!peer) {\n const available = Object.keys(config.peers).join(\", \") || \"(none)\";\n throw new PeerCallError(\"unknown_peer\", `Unknown peer '${peerName}'. Available: ${available}`);\n }\n\n // Sign outgoing message if we have a signing key (#416)\n let signedPrompt = prompt;\n if (config.self.signingKey) {\n const { signMessage } = await import(\"./digital-signature.js\");\n const { tag } = signMessage(config.self.signingKey, config.self.name, peerName, prompt);\n signedPrompt = `${prompt} ${tag}`;\n }\n\n const start = Date.now();\n try {\n const response = await postCompletion(peer, peerName, signedPrompt, hops, config.timeoutMs, config.self.name);\n logInfo(TAG, `PEER_CALL ${peerName} \u2014 ${prompt.length}ch \u2192 ${response.length}ch (${Date.now() - start}ms, hops=${hops})`);\n return response;\n } catch (err) {\n if (err instanceof PeerCallError && (err.code === \"unreachable\" || err.code === \"timeout\") && peer.udpPort && !opts?.skipWakeup) {\n logInfo(TAG, `Direct call failed (${err.code}) \u2014 UDP callback request \u2192 ${peerKey}`);\n const { registerPending, rejectPending } = await import(\"./pending-callback.js\");\n const { sendWakeup } = await import(\"./dns-wakeup.js\");\n const resultPromise = registerPending(peerKey!, signedPrompt);\n sendWakeup(peerKey!, peer.host, peer.udpPort, peer.token);\n // Wait up to 60s for the peer to call back with the answer\n const timeout = setTimeout(() => rejectPending(peerKey!, \"callback timeout (60s)\"), 60000);\n try {\n const answer = await resultPromise;\n clearTimeout(timeout);\n logInfo(TAG, `PEER_CALL ${peerName} (via callback) \u2014 ${prompt.length}ch \u2192 ${answer.length}ch (${Date.now() - start}ms)`);\n return answer;\n } catch (cbErr) {\n clearTimeout(timeout);\n throw new PeerCallError(\"timeout\", `Callback failed: ${cbErr instanceof Error ? cbErr.message : String(cbErr)}`);\n }\n }\n throw err;\n }\n}\n\nfunction postCompletion(peer: PeerEntry, peerName: string, prompt: string, hops: number, timeoutMs: number, selfName: string): Promise<string> {\n const { signJwt } = require(\"./peer-jwt.js\") as typeof import(\"./peer-jwt.js\");\n const now = Math.floor(Date.now() / 1000);\n const jwt = signJwt({ iss: selfName, aud: peerName, iat: now, exp: now + 60 }, peer.token);\n\n const body = JSON.stringify({\n model: \"default\",\n messages: [{ role: \"user\", content: prompt }],\n });\n\n return new Promise((resolve, reject) => {\n const useTls = !!(peer.certFingerprint || peer.certPem);\n const requestFn = useTls ? httpsRequest : require(\"node:http\").request;\n\n const tlsOpts = useTls ? {\n minVersion: \"TLSv1.3\" as const,\n rejectUnauthorized: true,\n ...(peer.certPem ? { ca: [peer.certPem] } : {}),\n checkServerIdentity: (_hostname: string, cert: { fingerprint256?: string }) => {\n if (peer.certFingerprint && cert.fingerprint256 !== peer.certFingerprint) {\n return new Error(`Cert fingerprint mismatch: expected ${peer.certFingerprint}, got ${cert.fingerprint256}`);\n }\n return undefined;\n },\n } : {};\n\n const req = requestFn({\n hostname: peer.host,\n port: peer.port,\n path: \"/v1/chat/completions\",\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Content-Length\": Buffer.byteLength(body),\n \"Authorization\": `Bearer ${jwt}`,\n \"X-Peer-Hops\": String(hops),\n },\n timeout: timeoutMs,\n ...tlsOpts,\n } as any, (res: any) => {\n let data = \"\";\n res.on(\"data\", (c: any) => data += c);\n res.on(\"end\", () => {\n if (res.statusCode === 401 || res.statusCode === 403) {\n reject(new PeerCallError(\"auth_failed\", `Peer rejected auth (${res.statusCode})`));\n return;\n }\n if (res.statusCode === 429 || res.statusCode === 508) {\n reject(new PeerCallError(\"hop_exceeded\", `Peer refused \u2014 hop limit reached`));\n return;\n }\n if (res.statusCode && res.statusCode >= 400) {\n reject(new PeerCallError(\"peer_error\", `Peer returned ${res.statusCode}: ${data.slice(0, 200)}`));\n return;\n }\n try {\n const parsed = JSON.parse(data);\n const content = parsed?.choices?.[0]?.message?.content ?? \"\";\n resolve(content);\n } catch {\n reject(new PeerCallError(\"peer_error\", `Peer returned non-JSON: ${data.slice(0, 100)}`));\n }\n });\n });\n req.on(\"timeout\", () => { req.destroy(); reject(new PeerCallError(\"timeout\", `Peer '${peer.host}:${peer.port}' timed out (${timeoutMs}ms)`)); });\n req.on(\"error\", (err: Error) => reject(new PeerCallError(\"unreachable\", `Peer unreachable: ${err.message}`)));\n req.write(body);\n req.end();\n });\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAKA,SAAS,WAAW,oBAAoB;AAejC,SAAS,mBAAmB,MAA2B;AAAE,iBAAe;AAAM;AAC9E,SAAS,qBAAoC;AAAE,SAAO;AAAc;AAe3E,eAAsB,SAAS,UAAkB,QAAgB,MAAc,MAAkD;AAC/H,QAAM,SAAS,eAAe;AAC9B,QAAM,UAAU,OAAO,KAAK,OAAO,KAAK,EAAE,KAAK,OAAK,EAAE,YAAY,MAAM,SAAS,YAAY,CAAC;AAC9F,QAAM,OAAO,UAAU,OAAO,MAAM,OAAO,IAAI;AAC/C,MAAI,CAAC,MAAM;AACT,UAAM,YAAY,OAAO,KAAK,OAAO,KAAK,EAAE,KAAK,IAAI,KAAK;AAC1D,UAAM,IAAI,cAAc,gBAAgB,iBAAiB,QAAQ,iBAAiB,SAAS,EAAE;AAAA,EAC/F;AAGA,MAAI,eAAe;AACnB,MAAI,OAAO,KAAK,YAAY;AAC1B,UAAM,EAAE,YAAY,IAAI,MAAM,OAAO,iCAAwB;AAC7D,UAAM,EAAE,IAAI,IAAI,YAAY,OAAO,KAAK,YAAY,OAAO,KAAK,MAAM,UAAU,MAAM;AACtF,mBAAe,GAAG,MAAM,IAAI,GAAG;AAAA,EACjC;AAEA,QAAM,QAAQ,KAAK,IAAI;AACvB,M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|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-X7DLKIQM.js";
|
|
8
|
+
import "./chunk-2ZD7VQRW.js";
|
|
9
|
+
import "./chunk-6S3G6GPO.js";
|
|
10
|
+
import "./chunk-7XXISOHU.js";
|
|
11
|
+
import "./chunk-2BXXQG7P.js";
|
|
11
12
|
import "./chunk-7K2YZTLD.js";
|
|
12
13
|
init_peer_config();
|
|
13
14
|
export {
|
|
14
15
|
clearPeerConfigCache,
|
|
15
16
|
loadPeerConfig
|
|
16
17
|
};
|
|
17
|
-
//# sourceMappingURL=peer-config-
|
|
18
|
+
//# sourceMappingURL=peer-config-24WILLCJ.js.map
|
|
@@ -4,14 +4,15 @@ import {
|
|
|
4
4
|
init_peer_jwt,
|
|
5
5
|
signJwt,
|
|
6
6
|
verifyJwt
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-O4YBJS2K.js";
|
|
8
|
+
import "./chunk-W2PSVV2T.js";
|
|
9
|
+
import "./chunk-6S3G6GPO.js";
|
|
10
|
+
import "./chunk-7XXISOHU.js";
|
|
11
|
+
import "./chunk-2BXXQG7P.js";
|
|
11
12
|
import "./chunk-7K2YZTLD.js";
|
|
12
13
|
init_peer_jwt();
|
|
13
14
|
export {
|
|
14
15
|
signJwt,
|
|
15
16
|
verifyJwt
|
|
16
17
|
};
|
|
17
|
-
//# sourceMappingURL=peer-jwt-
|
|
18
|
+
//# sourceMappingURL=peer-jwt-ZR6RF3XM.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getPeerTransport,
|
|
6
6
|
initPeerTransport,
|
|
7
7
|
init_peer_transport
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4IGLXZCC.js";
|
|
9
9
|
import {
|
|
10
10
|
getAlivePeers,
|
|
11
11
|
getPeerTable,
|
|
@@ -13,11 +13,12 @@ import {
|
|
|
13
13
|
setGossipInterval,
|
|
14
14
|
startGossipListener,
|
|
15
15
|
stopGossipListener
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-XZ4ZBDM5.js";
|
|
17
|
+
import "./chunk-X7DLKIQM.js";
|
|
18
|
+
import "./chunk-2ZD7VQRW.js";
|
|
19
|
+
import "./chunk-6S3G6GPO.js";
|
|
20
|
+
import "./chunk-7XXISOHU.js";
|
|
21
|
+
import "./chunk-2BXXQG7P.js";
|
|
21
22
|
import "./chunk-7K2YZTLD.js";
|
|
22
23
|
init_peer_transport();
|
|
23
24
|
export {
|
|
@@ -31,4 +32,4 @@ export {
|
|
|
31
32
|
startGossipListener,
|
|
32
33
|
stopGossipListener
|
|
33
34
|
};
|
|
34
|
-
//# sourceMappingURL=peer-transport-
|
|
35
|
+
//# sourceMappingURL=peer-transport-BK5VHI2M.js.map
|
|
@@ -4,26 +4,28 @@ 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-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-LB43Q7G6.js";
|
|
8
|
+
import "./chunk-DJOSXXM2.js";
|
|
9
|
+
import "./chunk-76YN7O3U.js";
|
|
10
|
+
import "./chunk-YWHJJHJ2.js";
|
|
11
|
+
import "./chunk-FSGICOCX.js";
|
|
12
|
+
import "./chunk-RCWQ34QR.js";
|
|
13
|
+
import "./chunk-7LORCJCQ.js";
|
|
14
|
+
import "./chunk-52PQM4EZ.js";
|
|
15
|
+
import "./chunk-ZKMKAO75.js";
|
|
16
|
+
import "./chunk-RO3TAYBR.js";
|
|
17
|
+
import "./chunk-GFAJSPMD.js";
|
|
18
|
+
import "./chunk-B2TIRDZC.js";
|
|
18
19
|
import "./chunk-N5KN3LGD.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-BWJ37KMW.js";
|
|
21
|
+
import "./chunk-W2PSVV2T.js";
|
|
22
|
+
import "./chunk-6S3G6GPO.js";
|
|
23
|
+
import "./chunk-7XXISOHU.js";
|
|
24
|
+
import "./chunk-2BXXQG7P.js";
|
|
23
25
|
import "./chunk-7K2YZTLD.js";
|
|
24
26
|
export {
|
|
25
27
|
buildTransport,
|
|
26
28
|
phaseTransport,
|
|
27
29
|
rebuildTransport
|
|
28
30
|
};
|
|
29
|
-
//# sourceMappingURL=phase-transport-
|
|
31
|
+
//# sourceMappingURL=phase-transport-7QJM7J6V.js.map
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
import {
|
|
4
4
|
migrate,
|
|
5
5
|
reconcile
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-V7Y2LFO4.js";
|
|
7
|
+
import "./chunk-6S3G6GPO.js";
|
|
8
|
+
import "./chunk-7XXISOHU.js";
|
|
9
|
+
import "./chunk-2BXXQG7P.js";
|
|
9
10
|
import "./chunk-7K2YZTLD.js";
|
|
10
11
|
export {
|
|
11
12
|
migrate,
|
|
12
13
|
reconcile
|
|
13
14
|
};
|
|
14
|
-
//# sourceMappingURL=reconcile-
|
|
15
|
+
//# sourceMappingURL=reconcile-7N7OE2GU.js.map
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
import {
|
|
4
4
|
init_spin,
|
|
5
5
|
spin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FSGICOCX.js";
|
|
7
7
|
import {
|
|
8
8
|
init_kanban_channel,
|
|
9
9
|
kanban_channel_exports
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-MPQ2PJQX.js";
|
|
11
|
+
import "./chunk-RCWQ34QR.js";
|
|
12
|
+
import "./chunk-7LORCJCQ.js";
|
|
13
|
+
import "./chunk-52PQM4EZ.js";
|
|
12
14
|
import {
|
|
13
15
|
cascadeFail,
|
|
14
16
|
init_kanban_board,
|
|
@@ -19,20 +21,20 @@ import {
|
|
|
19
21
|
kanbanGetChildren,
|
|
20
22
|
kanbanList,
|
|
21
23
|
kanbanUpdate
|
|
22
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-RO3TAYBR.js";
|
|
25
|
+
import "./chunk-GFAJSPMD.js";
|
|
23
26
|
import {
|
|
24
27
|
init_nerve,
|
|
25
28
|
nerve
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-43DKPXTP.js";
|
|
29
|
-
import "./chunk-SSCGWDIC.js";
|
|
29
|
+
} from "./chunk-B2TIRDZC.js";
|
|
30
|
+
import "./chunk-BWJ37KMW.js";
|
|
30
31
|
import {
|
|
31
32
|
init_logger,
|
|
32
33
|
logInfo,
|
|
33
34
|
logWarn
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-6S3G6GPO.js";
|
|
36
|
+
import "./chunk-7XXISOHU.js";
|
|
37
|
+
import "./chunk-2BXXQG7P.js";
|
|
36
38
|
import {
|
|
37
39
|
__toCommonJS
|
|
38
40
|
} from "./chunk-7K2YZTLD.js";
|
|
@@ -137,4 +139,4 @@ function isStale(card) {
|
|
|
137
139
|
export {
|
|
138
140
|
startReconciler
|
|
139
141
|
};
|
|
140
|
-
//# sourceMappingURL=reconciler-
|
|
142
|
+
//# sourceMappingURL=reconciler-7LOOUK43.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/components/reconciler.ts"],
|
|
4
4
|
"sourcesContent": ["/**\n * reconciler.ts \u2014 K8s-inspired reconciliation loop for the Orc.\n *\n * Subscribes to Nerve events. On every state change, checks active projects\n * and fixes drift: dispatch queued, retry failed, kill stale, abort on limits.\n */\n\nimport { nerve } from \"./nerve.js\";\nimport { spin } from \"./spin.js\";\nimport {\n kanbanList, kanbanFail, kanbanComplete, kanbanUpdate,\n kanbanGetCard, kanbanGetChildren, isUnblocked, cascadeFail, type KanbanCard,\n} from \"./tasks/kanban-board.js\";\nimport { logInfo, logWarn } from \"./logger.js\";\n\nconst TAG = \"reconciler\";\nconst MAX_RETRIES = 3;\nconst MAX_WORKERS = 10;\nconst MAX_WALL_CLOCK_MS = 30 * 60 * 1000;\nconst STALE_MS = 5 * 60 * 1000;\nconst REMOTE_STALE_MS = 10 * 60 * 1000;\nconst REMOTE_WARN_MS = 7 * 60 * 1000;\n\nexport function startReconciler(): void {\n nerve.on(\"card:done\", reconcile);\n nerve.on(\"card:failed\", reconcile);\n nerve.on(\"card:queued\", reconcile);\n logInfo(TAG, \"Reconciler started\");\n}\n\nfunction reconcile(): void {\n const projects = kanbanList(\"running\", \"status\")\n .filter(c => c.type === \"O\");\n\n for (const project of projects) {\n reconcileProject(project.id);\n }\n}\n\nfunction reconcileProject(projectId: number): void {\n const children = kanbanGetChildren(projectId);\n if (children.length === 0) return;\n\n const project = kanbanGetCard(projectId);\n if (!project) return;\n\n const now = Date.now();\n const projectStart = new Date(project.created_at + \"Z\").getTime();\n\n // Circuit breaker: wall-clock\n if (now - projectStart > MAX_WALL_CLOCK_MS) {\n abortProject(projectId, children, \"wall-clock exceeded (30min)\");\n return;\n }\n\n // Circuit breaker: token budget\n if (project.max_tokens && (project.tokens_used ?? 0) >= project.max_tokens) {\n abortProject(projectId, children, `budget exceeded (${project.tokens_used}/${project.max_tokens} tokens)`);\n return;\n }\n\n // Circuit breaker: too many workers\n if (children.length > MAX_WORKERS) {\n abortProject(projectId, children, `too many workers (${children.length})`);\n return;\n }\n\n let totalRetries = 0;\n\n for (const card of children) {\n const retries = card.delivery_attempts ?? 0; // reuse delivery_attempts as retry_count\n totalRetries += retries;\n\n if (card.status === \"queued\") {\n if (!isUnblocked(card)) continue;\n spin.dispatch({ type: \"W\", goal: card.notes || card.title, source: \"agent\", cardId: card.id, parentCardId: projectId });\n }\n\n if (card.status === \"failed\" && retries < MAX_RETRIES) {\n logInfo(TAG, `Retrying card ${card.id} (attempt ${retries + 1}/${MAX_RETRIES})`);\n kanbanUpdate(card.id, { status: \"queued\" });\n spin.dispatch({ type: \"W\", goal: card.notes || card.title, source: \"agent\", cardId: card.id, parentCardId: projectId });\n } else if (card.status === \"failed\" && retries >= MAX_RETRIES) {\n // Permanent failure \u2014 cascade to downstream cards\n cascadeFail(card.id, children);\n }\n\n if (card.status === \"running\" && card.type !== \"remote\" && isStale(card)) {\n logWarn(TAG, `Card ${card.id} stale (${STALE_MS / 1000}s no activity) \u2014 marking failed`);\n kanbanFail(card.id, \"stale \u2014 no activity\");\n }\n\n // #949: Remote cards get longer timeout (10min) + channel warning before failure\n if (card.status === \"running\" && card.type === \"remote\" && card.source_peer) {\n const age = Date.now() - new Date(card.updated_at + \"Z\").getTime();\n if (age > REMOTE_STALE_MS) {\n logWarn(TAG, `Remote card ${card.id} stale (${REMOTE_STALE_MS / 1000}s) \u2014 marking failed`);\n kanbanFail(card.id, \"remote worker unresponsive\");\n } else if (age > REMOTE_WARN_MS && !card.labels?.includes(\"stale-warned\")) {\n const { channelPost } = require(\"./tasks/kanban-channel.js\") as typeof import(\"./tasks/kanban-channel.js\");\n channelPost(card.id, \"SYSTEM\", \"ALL\", \"Remote worker unresponsive \u2014 consider cancelling\");\n kanbanUpdate(card.id, { labels: [card.labels, \"stale-warned\"].filter(Boolean).join(\",\") });\n }\n }\n }\n\n // Circuit breaker: total retries\n if (totalRetries > MAX_RETRIES * 3) {\n abortProject(projectId, children, `too many total retries (${totalRetries})`);\n return;\n }\n\n // All done?\n if (children.every(c => c.status === \"done\" || c.status === \"delivered\")) {\n logInfo(TAG, `Project ${projectId}: all children done`);\n const summaries = children.map(c => c.result_summary).filter(Boolean).join(\"\\n\");\n kanbanComplete(projectId, null, summaries.slice(0, 500));\n }\n}\n\nfunction abortProject(projectId: number, children: KanbanCard[], reason: string): void {\n logWarn(TAG, `ABORT project ${projectId}: ${reason}`);\n for (const card of children) {\n if (card.status === \"running\" || card.status === \"queued\") {\n kanbanFail(card.id, `project aborted: ${reason}`);\n }\n }\n kanbanFail(projectId, reason);\n}\n\nfunction isStale(card: KanbanCard): boolean {\n const lastActivity = new Date(card.updated_at + \"Z\").getTime();\n return Date.now() - lastActivity > STALE_MS;\n}\n\n// Remote card polling moved to spin.tick() (#980)\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA;AACA;AACA;AAIA;AAEA,IAAM,MAAM;AACZ,IAAM,cAAc;AACpB,IAAM,cAAc;AACpB,IAAM,oBAAoB,KAAK,KAAK;AACpC,IAAM,WAAW,IAAI,KAAK;AAC1B,IAAM,kBAAkB,KAAK,KAAK;AAClC,IAAM,iBAAiB,IAAI,KAAK;AAEzB,SAAS,kBAAwB;AACtC,QAAM,GAAG,aAAa,SAAS;AAC/B,QAAM,GAAG,eAAe,SAAS;AACjC,QAAM,GAAG,eAAe,SAAS;AACjC,UAAQ,KAAK,oBAAoB;AACnC;AAEA,SAAS,YAAkB;AACzB,QAAM,WAAW,WAAW,WAAW,QAAQ,EAC5C,OAAO,OAAK,EAAE,SAAS,GAAG;AAE7B,aAAW,WAAW,UAAU;AAC9B,qBAAiB,QAAQ,EAAE;AAAA,EAC7B;AACF;AAEA,SAAS,iBAAiB,WAAyB;AACjD,QAAM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AAK,WAAW,UAAU;AACzD,iBAAW,KAAK,IAAI,oBAAoB,MAAM,EAAE;AAAA,IAClD;AAAA,EACF;AACA,aAAW,WAAW,MAAM;AAC9B;AAEA,SAAS,QAAQ,MAA2B;AAC1C,QAAM,gBAAe,oBAAI,KAAK,KAAK,aAAa,GAAG,GAAE,QAAQ;AAC7D,SAAO,KAAK,IAAI,IAAI,eAAe;AACrC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,18 +2,21 @@
|
|
|
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
|
reconcile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-V7Y2LFO4.js";
|
|
6
6
|
import {
|
|
7
7
|
printBanner
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-OOKNHOCB.js";
|
|
8
|
+
} from "./chunk-LN5MNDSA.js";
|
|
9
|
+
import "./chunk-QJPDBJDP.js";
|
|
10
|
+
import "./chunk-6S3G6GPO.js";
|
|
12
11
|
import {
|
|
13
12
|
abmindHome,
|
|
14
13
|
abtarsHome,
|
|
15
|
-
init_paths
|
|
16
|
-
} from "./chunk-
|
|
14
|
+
init_paths as init_paths2
|
|
15
|
+
} from "./chunk-7XXISOHU.js";
|
|
16
|
+
import {
|
|
17
|
+
init_paths,
|
|
18
|
+
resolveReleasesDir
|
|
19
|
+
} from "./chunk-2BXXQG7P.js";
|
|
17
20
|
import "./chunk-7K2YZTLD.js";
|
|
18
21
|
|
|
19
22
|
// src/cli/commands/restore.ts
|
|
@@ -22,6 +25,7 @@ import { join, dirname, basename } from "node:path";
|
|
|
22
25
|
import { homedir } from "node:os";
|
|
23
26
|
import { spawnSync } from "node:child_process";
|
|
24
27
|
import { createDecipheriv, hkdfSync } from "node:crypto";
|
|
28
|
+
init_paths2();
|
|
25
29
|
init_paths();
|
|
26
30
|
async function restore(archivePath, opts = {}) {
|
|
27
31
|
await printBanner("restore");
|
|
@@ -151,7 +155,7 @@ function extractZip(archivePath, destDir) {
|
|
|
151
155
|
process.stderr.write("Restore extract failed\n");
|
|
152
156
|
return 1;
|
|
153
157
|
}
|
|
154
|
-
const templatesSrc = join(
|
|
158
|
+
const templatesSrc = join(resolveReleasesDir(), "src", "abtars", "templates");
|
|
155
159
|
reconcile(templatesSrc, destDir);
|
|
156
160
|
process.stdout.write(`\u2713 Restored to ${destDir}
|
|
157
161
|
`);
|
|
@@ -197,4 +201,4 @@ function decryptFile(inputPath, outputPath, keyPath) {
|
|
|
197
201
|
export {
|
|
198
202
|
restore
|
|
199
203
|
};
|
|
200
|
-
//# sourceMappingURL=restore-
|
|
204
|
+
//# sourceMappingURL=restore-MENZ3I3K.js.map
|