autohand-cli 0.7.13 → 0.8.0
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/assets/icon.png +0 -0
- package/dist/AgentRegistry-7LDL5HJH.js +10 -0
- package/dist/AgentRegistry-NQCLWABO.cjs +10 -0
- package/dist/{AutomodeManager-NGRAO2MH.js → AutomodeManager-MWLKGPZK.js} +2 -0
- package/dist/{AutomodeManager-ZKQMBM4T.cjs → AutomodeManager-NYIZNODK.cjs} +3 -1
- package/dist/CommunitySkillsCache-6QPRMTJO.js +8 -0
- package/dist/CommunitySkillsCache-GTQMOCCO.cjs +8 -0
- package/dist/{GitHubRegistryFetcher-US2JJID4.js → GitHubRegistryFetcher-6JQ5JEDZ.js} +1 -0
- package/dist/{GitHubRegistryFetcher-K744NNAJ.cjs → GitHubRegistryFetcher-S7QFUEKV.cjs} +1 -0
- package/dist/HookManager-Q2KYMCP4.cjs +7 -0
- package/dist/HookManager-TTP4Y6DC.js +7 -0
- package/dist/ImportWizard-IWVPRKFF.cjs +466 -0
- package/dist/ImportWizard-KASGQPUY.js +466 -0
- package/dist/McpClientManager-7RM6YT35.js +8 -0
- package/dist/McpClientManager-RKD7C6OY.cjs +8 -0
- package/dist/MemoryManager-GUNLRP5S.js +8 -0
- package/dist/MemoryManager-TNSGKDKX.cjs +8 -0
- package/dist/PermissionManager-2GO5PQ6M.cjs +11 -0
- package/dist/{PermissionManager-U5OMGR3L.js → PermissionManager-K7UWSNB6.js} +4 -3
- package/dist/ProjectProfiler-UMJJSOCE.js +194 -0
- package/dist/ProjectProfiler-ZDWR2ODG.cjs +194 -0
- package/dist/ProviderFactory-EFFQBRQ6.cjs +9 -0
- package/dist/ProviderFactory-S3LWTQQC.js +9 -0
- package/dist/SessionManager-FEUAU3ZJ.cjs +10 -0
- package/dist/SessionManager-IKWAK2PI.js +10 -0
- package/dist/SkillsRegistry-GDEGFP6O.cjs +9 -0
- package/dist/SkillsRegistry-SI5RUHQ4.js +9 -0
- package/dist/SubAgent-I75HELJG.js +11 -0
- package/dist/SubAgent-K3QP6WHC.cjs +11 -0
- package/dist/{SyncApiClient-AYXYSOJM.js → SyncApiClient-LVIO4C2S.js} +1 -0
- package/dist/{SyncApiClient-ID3KXEMA.cjs → SyncApiClient-ZNYMT36M.cjs} +1 -0
- package/dist/about-B2AGTV6N.js +12 -0
- package/dist/about-V2HWEZZO.cjs +12 -0
- package/dist/actionExecutor-6XCVL2SJ.js +19 -0
- package/dist/actionExecutor-YRUJNB5G.cjs +19 -0
- package/dist/add-dir-7FBQ5IFV.js +10 -0
- package/dist/add-dir-ALBSYRV3.cjs +10 -0
- package/dist/agents/builtin/code-cleaner.md +14 -0
- package/dist/agents/builtin/docs-writer.md +14 -0
- package/dist/agents/builtin/researcher.md +14 -0
- package/dist/agents/builtin/reviewer.md +15 -0
- package/dist/agents/builtin/tester.md +15 -0
- package/dist/agents/builtin/todo-resolver.md +15 -0
- package/dist/agents-FCGEWTA3.cjs +12 -0
- package/dist/agents-FENGUSJD.js +12 -0
- package/dist/agents-new-FU3O55CO.js +14 -0
- package/dist/agents-new-SAFTJ7TK.cjs +14 -0
- package/dist/assets/icon.png +0 -0
- package/dist/automode-CYLGXQ4A.cjs +10 -0
- package/dist/automode-O7G3DUYN.js +10 -0
- package/dist/{cc-UTTLESTY.js → cc-7LEIJ3KF.js} +1 -0
- package/dist/{cc-2W6M7J45.cjs → cc-Q5MM4AWC.cjs} +1 -0
- package/dist/{chunk-N4ZSG6JJ.cjs → chunk-22D2CNTP.cjs} +2 -2
- package/dist/chunk-24QIWILL.js +51 -0
- package/dist/{chunk-MYNHJHDZ.js → chunk-2AA5MFES.js} +1 -1
- package/dist/{chunk-2JMWWYMZ.js → chunk-2ELK5DMH.js} +44 -10
- package/dist/chunk-2JYIR3EC.cjs +1176 -0
- package/dist/{chunk-RRZFJIIB.js → chunk-2RIAPTET.js} +90 -66
- package/dist/{chunk-TSY7JHIV.cjs → chunk-33A755XB.cjs} +2 -2
- package/dist/chunk-3OEDGIFW.js +42 -0
- package/dist/{chunk-P5VDZ6PV.js → chunk-3PDTTAKJ.js} +1 -1
- package/dist/{chunk-ULMPJUJW.cjs → chunk-3WCOFXQS.cjs} +23 -23
- package/dist/{chunk-ONAY5SD2.cjs → chunk-4HKTYHNL.cjs} +22 -16
- package/dist/{chunk-Z4J4W6YQ.cjs → chunk-4JNNTOGF.cjs} +2 -48
- package/dist/chunk-55B6SBHK.js +260 -0
- package/dist/chunk-5DDDUUBM.cjs +29 -0
- package/dist/{chunk-TQB222ZB.js → chunk-5EIEWVYX.js} +2 -2
- package/dist/{chunk-SMHY3Q7B.cjs → chunk-5GGX6WNY.cjs} +54 -22
- package/dist/{chunk-3S4DEIJP.cjs → chunk-5IXII4HX.cjs} +2 -2
- package/dist/{chunk-3KBBARKO.js → chunk-5OBNULPU.js} +85 -28
- package/dist/{chunk-VVBBEYTH.cjs → chunk-5YJG6H6P.cjs} +10 -10
- package/dist/{chunk-PKOAXQKW.cjs → chunk-63WXWFDI.cjs} +11 -11
- package/dist/{chunk-DSKVMFRM.cjs → chunk-643VRA5S.cjs} +12 -4
- package/dist/{chunk-L5ZFPWHY.js → chunk-6OYHF6MF.js} +12 -4
- package/dist/chunk-7GDVDSNI.js +1176 -0
- package/dist/chunk-7QEE6SW6.cjs +260 -0
- package/dist/chunk-7UOUW76C.js +603 -0
- package/dist/{chunk-SZP4ULM5.cjs → chunk-AFN7LH5N.cjs} +17 -17
- package/dist/chunk-AHD5JJ6F.cjs +78 -0
- package/dist/{chunk-WLTVF77A.js → chunk-ALYU6VTM.js} +1 -1
- package/dist/{chunk-BRXIEKJ3.cjs → chunk-AMT2UZBI.cjs} +5 -5
- package/dist/{chunk-SFNT5DYE.cjs → chunk-BT35E7NE.cjs} +4 -4
- package/dist/{chunk-NUHYCFHW.cjs → chunk-BVKXEQVG.cjs} +54 -65
- package/dist/chunk-CDMGQR4L.cjs +4470 -0
- package/dist/chunk-CNBKZEX5.cjs +109 -0
- package/dist/{chunk-GD4AFYJ3.js → chunk-CVVEYUFR.js} +1 -1
- package/dist/chunk-CWALFEGU.js +58 -0
- package/dist/{chunk-MTALRU7R.cjs → chunk-D3YCFT5O.cjs} +3 -3
- package/dist/{chunk-METF3I6W.cjs → chunk-D6VG7B5X.cjs} +10 -4
- package/dist/{chunk-TOTDRAWG.js → chunk-DH7DKCUL.js} +1 -1
- package/dist/{chunk-RFNCTE4V.cjs → chunk-DLG43ZJ7.cjs} +2 -2
- package/dist/chunk-DN573ME7.cjs +1675 -0
- package/dist/{chunk-63BXZQZW.js → chunk-E23CMMNJ.js} +20 -4
- package/dist/{chunk-4HA7IHLJ.cjs → chunk-EEGK5DYE.cjs} +32 -16
- package/dist/{chunk-DTFR3WD6.js → chunk-EF4LKUQY.js} +1 -1
- package/dist/{chunk-PWLLLJHU.js → chunk-EGFT4PGW.js} +3 -1
- package/dist/{chunk-S47TCZDL.js → chunk-EIU7K7CM.js} +7 -7
- package/dist/{chunk-BISFR6ZL.js → chunk-EPNYD4NV.js} +1 -1
- package/dist/chunk-EZMINVLU.js +123 -0
- package/dist/{chunk-LYMTYC67.js → chunk-F23EVNJU.js} +2 -2
- package/dist/chunk-FHK7UDOJ.cjs +42 -0
- package/dist/chunk-FMB3TSWP.cjs +218 -0
- package/dist/{chunk-XBUMKEFN.cjs → chunk-FPAE6ORV.cjs} +91 -34
- package/dist/{chunk-DEAEO7RI.js → chunk-FYZ67R4R.js} +1 -1
- package/dist/{chunk-6SHHB2VD.js → chunk-G7SZIOHF.js} +2 -2
- package/dist/{chunk-FB6JWNJS.js → chunk-GBHDROGL.js} +54 -65
- package/dist/chunk-GCHELXLO.js +131 -0
- package/dist/{chunk-7YX3OD4B.js → chunk-GHSBZ3YB.js} +2 -2
- package/dist/chunk-GLBAF54O.js +218 -0
- package/dist/chunk-GO3N7LRW.cjs +131 -0
- package/dist/{chunk-KW4SQWBU.cjs → chunk-H6ZGZEBG.cjs} +57 -23
- package/dist/{chunk-CTJILRNQ.cjs → chunk-HA7OAVOB.cjs} +15 -15
- package/dist/{chunk-NMWEDN4Z.js → chunk-HFMLWH7B.js} +108 -0
- package/dist/{chunk-D2XFTCRP.js → chunk-HQ7YZKXE.js} +1 -1
- package/dist/{chunk-L42HTMMR.cjs → chunk-HTLINWX6.cjs} +2 -2
- package/dist/chunk-IETRBBMP.cjs +603 -0
- package/dist/chunk-IQ5RXU6O.js +1675 -0
- package/dist/{chunk-B5HIJJ4B.js → chunk-ITB3FS72.js} +11 -5
- package/dist/{chunk-B6EBHCK2.cjs → chunk-IUMJYXBX.cjs} +6 -6
- package/dist/{chunk-ZBIBLOZL.js → chunk-IVM5F2AE.js} +500 -317
- package/dist/{chunk-GRSVQ5YZ.js → chunk-IWVQ2EW3.js} +44 -12
- package/dist/chunk-JJWCQLOU.cjs +59 -0
- package/dist/{chunk-KXAAEROY.js → chunk-JMFDD7IZ.js} +2 -2
- package/dist/chunk-JSBRDJBE.js +30 -0
- package/dist/chunk-LJFUXC56.cjs +123 -0
- package/dist/chunk-LL3PQ2U6.js +4470 -0
- package/dist/chunk-LQ4LQQG6.cjs +27 -0
- package/dist/chunk-LQGVEP3E.js +109 -0
- package/dist/{chunk-425MT6Y5.cjs → chunk-LVE6Z5SL.cjs} +9 -9
- package/dist/{chunk-XL77XYI2.cjs → chunk-LXDOQTXQ.cjs} +4 -4
- package/dist/{chunk-BG4OQUKP.js → chunk-MBBY4ZIK.js} +1 -1
- package/dist/{chunk-XQLWN4Y3.cjs → chunk-MGMXR67S.cjs} +9 -9
- package/dist/{chunk-FHUNAB2K.cjs → chunk-MHLE6AVN.cjs} +33 -6
- package/dist/chunk-MHSDHPC4.cjs +58 -0
- package/dist/chunk-MUBW5UDH.cjs +55 -0
- package/dist/{chunk-R3H25HQZ.cjs → chunk-MVWOQBCC.cjs} +11 -11
- package/dist/chunk-N254NRHT.cjs +30 -0
- package/dist/{chunk-SRLY7K6J.js → chunk-OBLIITWJ.js} +2 -2
- package/dist/{chunk-SIGWDEPS.cjs → chunk-OI7OIGNB.cjs} +10 -10
- package/dist/{chunk-V7YTCNMN.cjs → chunk-OPR34VHL.cjs} +5 -5
- package/dist/chunk-OUHQZFN4.js +78 -0
- package/dist/{chunk-HMRDNRTH.js → chunk-PEC45WYS.js} +2 -2
- package/dist/{chunk-OSUWEUZE.js → chunk-PUOE5BCN.js} +1 -1
- package/dist/chunk-Q2VYSHWU.js +59 -0
- package/dist/chunk-Q3MJ6CYS.cjs +193 -0
- package/dist/{chunk-B2K7JZRW.js → chunk-Q5RN7RXC.js} +2 -2
- package/dist/{chunk-43XS26AQ.cjs → chunk-Q5RX3XGB.cjs} +4 -4
- package/dist/chunk-QCLYBIMM.cjs +51 -0
- package/dist/chunk-QMAKTSZB.cjs +48 -0
- package/dist/chunk-QT2VZNFA.js +29 -0
- package/dist/{chunk-3AWZFG5G.js → chunk-QUFAULH7.js} +10 -4
- package/dist/{chunk-RJP3SZ7Q.cjs → chunk-RD5XAJR2.cjs} +492 -309
- package/dist/chunk-RGR6ME5J.cjs +844 -0
- package/dist/{chunk-EOGKE5GD.cjs → chunk-RKJTGGMU.cjs} +221 -126
- package/dist/{chunk-NMGF2KUN.js → chunk-RO46YAPI.js} +1 -1
- package/dist/{chunk-2U5HFVRO.cjs → chunk-RVUQKMXX.cjs} +108 -0
- package/dist/chunk-S52YW5ZQ.js +844 -0
- package/dist/{chunk-ZLOTP56B.cjs → chunk-S6BDWWUG.cjs} +5 -5
- package/dist/{chunk-6DWXHBAY.js → chunk-SAHBLB3E.js} +222 -127
- package/dist/chunk-SALLHB2I.js +27 -0
- package/dist/{chunk-GIZL57FE.cjs → chunk-SEKD5FH3.cjs} +3 -1
- package/dist/{chunk-DZHR34H6.cjs → chunk-SHFA46CS.cjs} +8 -8
- package/dist/{chunk-MILZEEUV.js → chunk-SIHRD34Z.js} +2 -2
- package/dist/{chunk-BPTBKO7D.js → chunk-SO3QQJAZ.js} +216 -36
- package/dist/{chunk-HSPWX4Z2.cjs → chunk-SRQW3B6J.cjs} +223 -43
- package/dist/{chunk-MY3TZER2.js → chunk-T63AMO6H.js} +1 -1
- package/dist/{chunk-X765A7J5.js → chunk-TERCG25S.js} +1 -1
- package/dist/{chunk-WOGJXDBU.cjs → chunk-TFSRRZWP.cjs} +3 -3
- package/dist/{chunk-RRZS5A53.js → chunk-TQHOVHRS.js} +1 -1
- package/dist/{chunk-JHOQABEF.js → chunk-TWEKBHUO.js} +5 -5
- package/dist/chunk-U3WDY42C.cjs +42 -0
- package/dist/{chunk-CKN2BLHK.cjs → chunk-UBS46QL3.cjs} +2 -2
- package/dist/{chunk-H3GBSPK5.js → chunk-UGTFKUW4.js} +14 -6
- package/dist/chunk-UJTCTTUF.cjs +271 -0
- package/dist/{chunk-RUZB43HU.cjs → chunk-UTI6ZQEY.cjs} +22 -14
- package/dist/{chunk-OLG7LZBD.js → chunk-VG34MG2U.js} +1 -1
- package/dist/{chunk-ZKZRFH37.cjs → chunk-VJYPP6PP.cjs} +6 -6
- package/dist/{chunk-YHGTBPEC.js → chunk-VNQ5GL34.js} +1 -1
- package/dist/{chunk-XDVG3NM4.js → chunk-W3X6PAC7.js} +2 -48
- package/dist/{chunk-FK2DVRPJ.js → chunk-WFUUXADU.js} +2 -2
- package/dist/{chunk-R5OO7MEB.cjs → chunk-WGTJOIB7.cjs} +22 -22
- package/dist/{chunk-VHBUKGRG.js → chunk-WJDPVW7T.js} +4 -4
- package/dist/chunk-WNUVPKBW.js +42 -0
- package/dist/{chunk-EV53SLSB.cjs → chunk-WPVWQSL7.cjs} +4 -4
- package/dist/chunk-WQ3VJXZB.js +118 -0
- package/dist/chunk-WTNBX2JO.js +271 -0
- package/dist/chunk-XAV24VYN.js +48 -0
- package/dist/chunk-XDLH4EDL.cjs +118 -0
- package/dist/{chunk-U7CZFKPL.cjs → chunk-XMNHZRUB.cjs} +2 -2
- package/dist/chunk-XUDSXGGV.cjs +1822 -0
- package/dist/{chunk-YESQ7XR3.js → chunk-XWASJ2QL.js} +4 -4
- package/dist/chunk-Y2SXUCNJ.js +55 -0
- package/dist/{chunk-AIH6GUGB.cjs → chunk-YDCDGTK6.cjs} +5 -5
- package/dist/chunk-YFXTE422.cjs +92 -0
- package/dist/chunk-YKS55CMT.js +1822 -0
- package/dist/{chunk-KC5FPUOF.cjs → chunk-YRLYSQEQ.cjs} +2 -2
- package/dist/{chunk-JWPI6O5Z.js → chunk-YS34SVY5.js} +31 -4
- package/dist/{chunk-FEVHH525.cjs → chunk-YYB42DCU.cjs} +4 -4
- package/dist/chunk-ZK6HOR62.js +92 -0
- package/dist/{chunk-BHV7CBNT.js → chunk-ZSE42BRE.js} +1 -1
- package/dist/clear-ES5WCZRF.cjs +12 -0
- package/dist/clear-J7XS6T5W.js +12 -0
- package/dist/completion-XQTDTJLK.cjs +14 -0
- package/dist/completion-XR6ZONJQ.js +14 -0
- package/dist/config-2TB3A55J.js +18 -0
- package/dist/config-RDMVIV26.cjs +18 -0
- package/dist/constants-6CPCJ3DY.cjs +21 -0
- package/dist/{constants-V6J54N3X.js → constants-UFM5B232.js} +2 -1
- package/dist/{defaultHooks-WLMRQUXG.cjs → defaultHooks-RCXPHF4M.cjs} +3 -1
- package/dist/{defaultHooks-R56VYG7I.js → defaultHooks-RDRMER3Z.js} +2 -0
- package/dist/export-EWAYH353.cjs +12 -0
- package/dist/export-ZWA6XGVS.js +12 -0
- package/dist/extractSessionMemories-SDW2MVBQ.cjs +7 -0
- package/dist/extractSessionMemories-V7K42ZHW.js +7 -0
- package/dist/feedback-5RV6ODW4.js +15 -0
- package/dist/feedback-ZPITHFJR.cjs +15 -0
- package/dist/filesystem-3SGCW2BF.js +10 -0
- package/dist/filesystem-MCFXJQ6R.cjs +10 -0
- package/dist/formatters-6K7QVWQL.cjs +10 -0
- package/dist/formatters-DQHO5I36.js +10 -0
- package/dist/{help-RU24K66K.js → help-I5GRCA3S.js} +3 -2
- package/dist/help-X52PZM24.cjs +12 -0
- package/dist/history-4WIOZ4TW.cjs +14 -0
- package/dist/{history-AV4XBFRK.js → history-OCHJBJW7.js} +3 -2
- package/dist/hooks-IAVTXUAI.cjs +13 -0
- package/dist/hooks-YF6HL23E.js +13 -0
- package/dist/{i18n-BSAPXM56.js → i18n-KHBXUALK.js} +2 -1
- package/dist/i18n-MVQIAZWS.cjs +33 -0
- package/dist/ide-4R3BEBIS.js +12 -0
- package/dist/ide-C7WSPQTR.cjs +12 -0
- package/dist/import-2ICSKDL7.cjs +10 -0
- package/dist/import-EAAX5HJR.js +170 -0
- package/dist/import-KRVVYJCZ.js +10 -0
- package/dist/import-PQJPNXA4.cjs +170 -0
- package/dist/index.cjs +8671 -12373
- package/dist/index.js +8739 -12441
- package/dist/init-6K3NRDOM.js +10 -0
- package/dist/init-AOUGGITS.cjs +10 -0
- package/dist/language-Q7YFDVSR.cjs +18 -0
- package/dist/language-Y6ZC7LET.js +18 -0
- package/dist/{lint-44UQJ673.cjs → lint-D5UOJWIK.cjs} +1 -0
- package/dist/{lint-TA2ZHVLM.js → lint-NJPZWVN2.js} +1 -0
- package/dist/{localProjectPermissions-WQYMGI42.js → localProjectPermissions-N77HA3XK.js} +3 -2
- package/dist/localProjectPermissions-UFSMNTBJ.cjs +18 -0
- package/dist/login-6OAH2NEH.cjs +20 -0
- package/dist/login-DL3377MD.js +20 -0
- package/dist/logout-ELQBUMTU.cjs +18 -0
- package/dist/logout-TLYA5W45.js +18 -0
- package/dist/mcp-BHOIBYUB.js +18 -0
- package/dist/mcp-TNUEXR5T.cjs +18 -0
- package/dist/{mcp-install-2KVKRAMQ.cjs → mcp-install-GROTZHAW.cjs} +26 -14
- package/dist/{mcp-install-77UXRN6R.js → mcp-install-KSADVDBE.js} +21 -9
- package/dist/memory-6DRFA43C.js +10 -0
- package/dist/memory-IORZE6WF.cjs +10 -0
- package/dist/message-JUBOK2VU.js +9 -0
- package/dist/message-ZJ5AYAMT.cjs +9 -0
- package/dist/model-CJPSPGIC.cjs +10 -0
- package/dist/model-MQXC56ES.js +10 -0
- package/dist/new-7D2B7IWM.cjs +12 -0
- package/dist/new-7VYM36RC.js +12 -0
- package/dist/{patch-BAAQIYSW.js → patch-5F6VBIT3.js} +2 -0
- package/dist/{patch-J32X2QQP.cjs → patch-MOD7QC3D.cjs} +3 -1
- package/dist/permissions-MM77OSFO.js +13 -0
- package/dist/permissions-W2F62DJ6.cjs +13 -0
- package/dist/{plan-JFGNRL2S.js → plan-G5CEKJI4.js} +1 -0
- package/dist/{plan-B3CW5DXJ.cjs → plan-QKOHE3LH.cjs} +1 -0
- package/dist/quit-7D2RDGTD.cjs +10 -0
- package/dist/quit-PKBSEJOL.js +10 -0
- package/dist/registry-A5XLMQVC.cjs +1828 -0
- package/dist/registry-WQLWHOLY.js +1828 -0
- package/dist/resume-FBKXSDOA.js +13 -0
- package/dist/resume-KLPDYPWQ.cjs +13 -0
- package/dist/search-7RNYTCNO.js +17 -0
- package/dist/search-UESMQZC3.cjs +17 -0
- package/dist/{session-T3TAZ5ZU.cjs → session-BSU2L5UI.cjs} +1 -0
- package/dist/{session-H5QWKE5E.js → session-SZMRN5KG.js} +1 -0
- package/dist/sessions-TSSUFWIJ.cjs +10 -0
- package/dist/sessions-WAXBUQTU.js +10 -0
- package/dist/settings-D6JXX5RG.js +30 -0
- package/dist/settings-RKYGXKDG.cjs +30 -0
- package/dist/share-GLX4YHS4.cjs +14 -0
- package/dist/share-U2M2KBFJ.js +14 -0
- package/dist/skills-63QLZMUO.cjs +14 -0
- package/dist/{skills-LJZA6PVJ.js → skills-BAMMXP3Q.js} +3 -2
- package/dist/{skills-install-MQINL3EC.js → skills-install-QNQWC2MV.js} +99 -28
- package/dist/{skills-install-IKJZN4G2.cjs → skills-install-UMK5H3SO.cjs} +107 -36
- package/dist/skills-new-NYKNHJHV.cjs +15 -0
- package/dist/skills-new-NZFGFKML.js +15 -0
- package/dist/slashCommands-EJ23C3Z4.cjs +69 -0
- package/dist/slashCommands-JQIL4EWX.js +69 -0
- package/dist/status-BKC7GBNQ.js +11 -0
- package/dist/status-FU3CPJWQ.cjs +11 -0
- package/dist/sync-3IEIHXIP.cjs +18 -0
- package/dist/sync-7JMZVEQD.cjs +40 -0
- package/dist/{sync-EXYX7HXW.js → sync-KWX67OUN.js} +3 -2
- package/dist/sync-YVPFT7SL.js +18 -0
- package/dist/tasks-5FPBIFLC.js +9 -0
- package/dist/tasks-TXGKGNH6.cjs +9 -0
- package/dist/team-GVK5L73L.cjs +9 -0
- package/dist/team-RWIKCLTG.js +9 -0
- package/dist/teammate-3C4MLRGH.js +139 -0
- package/dist/teammate-7C3UDQSH.cjs +139 -0
- package/dist/theme-A2CEHI7W.js +18 -0
- package/dist/theme-LNOQOVR4.cjs +18 -0
- package/dist/ui/questionModal.cjs +7 -25
- package/dist/ui/questionModal.js +6 -24
- package/dist/undo-F2IZJQUV.js +10 -0
- package/dist/undo-QEV42XLU.cjs +10 -0
- package/dist/update-TVAJMMBC.js +82 -0
- package/dist/update-Z6BIIQDC.cjs +82 -0
- package/package.json +10 -4
- package/dist/CommunitySkillsCache-ILWHWE5P.js +0 -7
- package/dist/CommunitySkillsCache-KHC6RUJW.cjs +0 -7
- package/dist/HookManager-X47HCM5G.cjs +0 -6
- package/dist/HookManager-ZXKHCD7U.js +0 -6
- package/dist/MemoryManager-6ZT7IDO5.cjs +0 -7
- package/dist/MemoryManager-AJGS5AKB.js +0 -7
- package/dist/PermissionManager-HG6W2DGU.cjs +0 -10
- package/dist/SessionManager-BJ2G6VV4.cjs +0 -9
- package/dist/SessionManager-ENPGYK5J.js +0 -9
- package/dist/SkillsRegistry-6ZFOCT25.cjs +0 -8
- package/dist/SkillsRegistry-C2SHOZ5D.js +0 -8
- package/dist/about-BIZH6I2U.cjs +0 -11
- package/dist/about-PPIVMAPA.js +0 -11
- package/dist/add-dir-7FD4DMDA.cjs +0 -9
- package/dist/add-dir-LOYJ4YB5.js +0 -9
- package/dist/agents-2Y6ASV7C.js +0 -10
- package/dist/agents-UOSPKLQL.cjs +0 -10
- package/dist/agents-new-23NSGAM5.js +0 -13
- package/dist/agents-new-WI2EL7IJ.cjs +0 -13
- package/dist/automode-LGWTY3UX.js +0 -9
- package/dist/automode-WLBQ7MN7.cjs +0 -9
- package/dist/chunk-5UBW2BGC.js +0 -33
- package/dist/chunk-AXP53LTU.cjs +0 -169
- package/dist/chunk-IZBCMJHJ.cjs +0 -33
- package/dist/completion-7WGMHKOR.cjs +0 -13
- package/dist/completion-KH33NSGP.js +0 -13
- package/dist/constants-RBQTR32A.cjs +0 -20
- package/dist/export-3QN3IH7A.js +0 -11
- package/dist/export-BI54X3MP.cjs +0 -11
- package/dist/feedback-TBF2CUJR.js +0 -14
- package/dist/feedback-XXHPSUUO.cjs +0 -14
- package/dist/formatters-N5IJKYZY.cjs +0 -8
- package/dist/formatters-UG6VZJJ5.js +0 -8
- package/dist/help-4VSLIMP4.cjs +0 -11
- package/dist/history-73VBEMSI.cjs +0 -13
- package/dist/hooks-62UDQBGH.cjs +0 -12
- package/dist/hooks-XORDJD5X.js +0 -12
- package/dist/i18n-X2IU2EZD.cjs +0 -32
- package/dist/ide-RPKZALQV.js +0 -11
- package/dist/ide-YMNXJB6A.cjs +0 -11
- package/dist/init-J5HR4R7U.js +0 -9
- package/dist/init-JCC7RVMC.cjs +0 -9
- package/dist/language-AZISJCEZ.js +0 -16
- package/dist/language-F65RA6FZ.cjs +0 -16
- package/dist/localProjectPermissions-2EATUDZM.cjs +0 -17
- package/dist/login-5HLPMECE.js +0 -18
- package/dist/login-ISWYYBXP.cjs +0 -18
- package/dist/logout-3EKZM5J3.cjs +0 -16
- package/dist/logout-GE7TSZ24.js +0 -16
- package/dist/mcp-EW64QRFA.cjs +0 -15
- package/dist/mcp-VHS7AMF2.js +0 -15
- package/dist/memory-2I473RU3.js +0 -9
- package/dist/memory-JZ6NPSP3.cjs +0 -9
- package/dist/model-GXZLARPT.js +0 -9
- package/dist/model-Y274DBDO.cjs +0 -9
- package/dist/new-BG5VIGZ7.cjs +0 -9
- package/dist/new-YXFDQOA7.js +0 -9
- package/dist/permissions-QILEAGBP.cjs +0 -12
- package/dist/permissions-WVEOVMWO.js +0 -12
- package/dist/quit-NC32OEJG.cjs +0 -9
- package/dist/quit-WRRIGU33.js +0 -9
- package/dist/resume-GJIKIDPR.cjs +0 -12
- package/dist/resume-RMJNCAOK.js +0 -12
- package/dist/search-UIWIXB73.js +0 -14
- package/dist/search-WQNXDA2E.cjs +0 -14
- package/dist/sessions-HPFX2GDD.js +0 -9
- package/dist/sessions-SAQU6MFA.cjs +0 -9
- package/dist/share-IE6UTPKF.cjs +0 -13
- package/dist/share-NQXIMFSQ.js +0 -13
- package/dist/skills-YTYGART7.cjs +0 -13
- package/dist/skills-new-3WCU3CWB.js +0 -14
- package/dist/skills-new-O5LFVFZU.cjs +0 -14
- package/dist/slashCommands-3FFAL4SL.js +0 -55
- package/dist/slashCommands-JASFW3E4.cjs +0 -55
- package/dist/status-4NDGXPIM.js +0 -10
- package/dist/status-RHJIBHP2.cjs +0 -10
- package/dist/sync-3GFSEIAZ.js +0 -16
- package/dist/sync-6M3WRKMH.cjs +0 -39
- package/dist/sync-CQNQDNTJ.cjs +0 -16
- package/dist/theme-EMJGULMI.cjs +0 -16
- package/dist/theme-FGDSXNU3.js +0 -16
- package/dist/undo-CTXQYE7C.cjs +0 -9
- package/dist/undo-HX2ZMECP.js +0 -9
package/assets/icon.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkBVKXEQVGcjs = require('./chunk-BVKXEQVG.cjs');
|
|
5
|
+
require('./chunk-SEKD5FH3.cjs');
|
|
6
|
+
require('./chunk-N254NRHT.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.AgentConfigSchema = _chunkBVKXEQVGcjs.AgentConfigSchema; exports.AgentRegistry = _chunkBVKXEQVGcjs.AgentRegistry;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('./chunk-N254NRHT.cjs');
|
|
2
|
+
|
|
3
|
+
// src/core/AutomodeManager.ts
|
|
2
4
|
var _events = require('events');
|
|
3
5
|
var _child_process = require('child_process');
|
|
4
6
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk22D2CNTPcjs = require('./chunk-22D2CNTP.cjs');
|
|
4
|
+
require('./chunk-SEKD5FH3.cjs');
|
|
5
|
+
require('./chunk-N254NRHT.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.CommunitySkillsCache = _chunk22D2CNTPcjs.CommunitySkillsCache;
|
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkDN573ME7cjs = require('./chunk-DN573ME7.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkFPAE6ORVcjs = require('./chunk-FPAE6ORV.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkYDCDGTK6cjs = require('./chunk-YDCDGTK6.cjs');
|
|
10
|
+
require('./chunk-RVUQKMXX.cjs');
|
|
11
|
+
require('./chunk-N254NRHT.cjs');
|
|
12
|
+
|
|
13
|
+
// src/import/ui/ImportWizard.tsx
|
|
14
|
+
var _react = require('react');
|
|
15
|
+
var _ink = require('ink');
|
|
16
|
+
|
|
17
|
+
// src/import/ui/CategorySelector.tsx
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
21
|
+
var CATEGORY_LABELS = {
|
|
22
|
+
sessions: "Sessions",
|
|
23
|
+
settings: "Settings",
|
|
24
|
+
skills: "Skills",
|
|
25
|
+
memory: "Memory",
|
|
26
|
+
mcp: "MCP Servers",
|
|
27
|
+
hooks: "Hooks"
|
|
28
|
+
};
|
|
29
|
+
function CategoryList({ entries, cursor, checked }) {
|
|
30
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Box, { flexDirection: "column", paddingX: 1, children: [
|
|
31
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ink.Text, { color: "cyan", children: "Select categories to import:" }),
|
|
32
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ink.Text, { color: "gray", children: " (space to toggle, a to toggle all, enter to confirm, esc to cancel)" }),
|
|
33
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ink.Text, { children: "" }),
|
|
34
|
+
entries.map(([cat, info], index) => {
|
|
35
|
+
const isActive = index === cursor;
|
|
36
|
+
const isChecked = checked.has(cat);
|
|
37
|
+
const label = _nullishCoalesce(CATEGORY_LABELS[cat], () => ( cat));
|
|
38
|
+
const checkbox = isChecked ? "[x]" : "[ ]";
|
|
39
|
+
const prefix = isActive ? "> " : " ";
|
|
40
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { color: isActive ? "cyan" : void 0, children: [
|
|
41
|
+
prefix,
|
|
42
|
+
checkbox,
|
|
43
|
+
" ",
|
|
44
|
+
label.padEnd(12),
|
|
45
|
+
" (",
|
|
46
|
+
info.description,
|
|
47
|
+
")"
|
|
48
|
+
] }, cat);
|
|
49
|
+
})
|
|
50
|
+
] });
|
|
51
|
+
}
|
|
52
|
+
function CategorySelector({ categories, onSelect, onCancel }) {
|
|
53
|
+
const entries = _react.useMemo.call(void 0, () => Array.from(categories.entries()), [categories]);
|
|
54
|
+
const [cursor, setCursor] = _react.useState.call(void 0, 0);
|
|
55
|
+
const [checked, setChecked] = _react.useState.call(void 0, () => {
|
|
56
|
+
return new Set(entries.map(([cat]) => cat));
|
|
57
|
+
});
|
|
58
|
+
const toggle = _react.useCallback.call(void 0, (cat) => {
|
|
59
|
+
setChecked((prev) => {
|
|
60
|
+
const next = new Set(prev);
|
|
61
|
+
if (next.has(cat)) {
|
|
62
|
+
next.delete(cat);
|
|
63
|
+
} else {
|
|
64
|
+
next.add(cat);
|
|
65
|
+
}
|
|
66
|
+
return next;
|
|
67
|
+
});
|
|
68
|
+
}, []);
|
|
69
|
+
const toggleAll = _react.useCallback.call(void 0, () => {
|
|
70
|
+
setChecked((prev) => {
|
|
71
|
+
const allKeys = entries.map(([cat]) => cat);
|
|
72
|
+
if (prev.size === allKeys.length) {
|
|
73
|
+
return /* @__PURE__ */ new Set();
|
|
74
|
+
}
|
|
75
|
+
return new Set(allKeys);
|
|
76
|
+
});
|
|
77
|
+
}, [entries]);
|
|
78
|
+
_ink.useInput.call(void 0, (char, key) => {
|
|
79
|
+
if (key.escape) {
|
|
80
|
+
onCancel();
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (key.return) {
|
|
84
|
+
onSelect(Array.from(checked));
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (key.upArrow) {
|
|
88
|
+
setCursor((prev) => prev > 0 ? prev - 1 : entries.length - 1);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
if (key.downArrow) {
|
|
92
|
+
setCursor((prev) => prev < entries.length - 1 ? prev + 1 : 0);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
if (char === " " && entries.length > 0) {
|
|
96
|
+
const [cat] = entries[cursor];
|
|
97
|
+
toggle(cat);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if (char === "a") {
|
|
101
|
+
toggleAll();
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryList, { entries, cursor, checked });
|
|
106
|
+
}
|
|
107
|
+
function unmountAndResolve(instance, value, resolve) {
|
|
108
|
+
instance.unmount();
|
|
109
|
+
process.nextTick(() => resolve(value));
|
|
110
|
+
}
|
|
111
|
+
async function showCategorySelector(categories) {
|
|
112
|
+
if (!process.stdout.isTTY) {
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
return new Promise((resolve) => {
|
|
116
|
+
let completed = false;
|
|
117
|
+
const instance = _ink.render.call(void 0,
|
|
118
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYDCDGTK6cjs.I18nProvider, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
119
|
+
CategorySelector,
|
|
120
|
+
{
|
|
121
|
+
categories,
|
|
122
|
+
onSelect: (selected) => {
|
|
123
|
+
if (completed) return;
|
|
124
|
+
completed = true;
|
|
125
|
+
unmountAndResolve(instance, selected, resolve);
|
|
126
|
+
},
|
|
127
|
+
onCancel: () => {
|
|
128
|
+
if (completed) return;
|
|
129
|
+
completed = true;
|
|
130
|
+
unmountAndResolve(instance, null, resolve);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
) }),
|
|
134
|
+
{ exitOnCtrlC: false }
|
|
135
|
+
);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// src/import/ui/ImportProgress.tsx
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
var FILLED = "\u2588";
|
|
143
|
+
var EMPTY = "\u2591";
|
|
144
|
+
function renderProgressBar(current, total, width = 20) {
|
|
145
|
+
if (total <= 0) {
|
|
146
|
+
return `[${EMPTY.repeat(width)}]`;
|
|
147
|
+
}
|
|
148
|
+
const ratio = Math.min(current / total, 1);
|
|
149
|
+
const filled = Math.round(ratio * width);
|
|
150
|
+
const empty = width - filled;
|
|
151
|
+
return `[${FILLED.repeat(filled)}${EMPTY.repeat(empty)}]`;
|
|
152
|
+
}
|
|
153
|
+
function StatusIcon({ status }) {
|
|
154
|
+
switch (status) {
|
|
155
|
+
case "done":
|
|
156
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { color: "green", children: [
|
|
157
|
+
"\u2713",
|
|
158
|
+
" "
|
|
159
|
+
] });
|
|
160
|
+
case "failed":
|
|
161
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { color: "red", children: [
|
|
162
|
+
"\u2717",
|
|
163
|
+
" "
|
|
164
|
+
] });
|
|
165
|
+
case "retrying":
|
|
166
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { color: "yellow", children: [
|
|
167
|
+
"\u21BB",
|
|
168
|
+
" "
|
|
169
|
+
] });
|
|
170
|
+
case "importing":
|
|
171
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { color: "cyan", children: [
|
|
172
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDN573ME7cjs.build_default, { type: "dots" }),
|
|
173
|
+
" "
|
|
174
|
+
] });
|
|
175
|
+
case "skipped":
|
|
176
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ink.Text, { color: "gray", children: "- " });
|
|
177
|
+
default:
|
|
178
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ink.Text, { children: " " });
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
function StatusSuffix({ entry }) {
|
|
182
|
+
switch (entry.status) {
|
|
183
|
+
case "retrying":
|
|
184
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { color: "yellow", children: [
|
|
185
|
+
" retrying ",
|
|
186
|
+
entry.item,
|
|
187
|
+
"..."
|
|
188
|
+
] });
|
|
189
|
+
case "importing":
|
|
190
|
+
return entry.item ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { color: "gray", children: [
|
|
191
|
+
" ",
|
|
192
|
+
entry.item,
|
|
193
|
+
"..."
|
|
194
|
+
] }) : null;
|
|
195
|
+
case "failed":
|
|
196
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { color: "red", children: [
|
|
197
|
+
" failed",
|
|
198
|
+
entry.item ? `: ${entry.item}` : ""
|
|
199
|
+
] });
|
|
200
|
+
case "skipped":
|
|
201
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ink.Text, { color: "gray", children: " skipped" });
|
|
202
|
+
default:
|
|
203
|
+
return null;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
function ImportProgressView({ progress, errors }) {
|
|
207
|
+
const entries = Array.from(progress.entries());
|
|
208
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Box, { flexDirection: "column", paddingX: 1, children: [
|
|
209
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ink.Text, { color: "cyan", children: "Importing..." }),
|
|
210
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ink.Text, { children: "" }),
|
|
211
|
+
entries.map(([cat, entry]) => {
|
|
212
|
+
const label = (_nullishCoalesce(CATEGORY_LABELS[cat], () => ( cat))).padEnd(12);
|
|
213
|
+
const bar = renderProgressBar(entry.current, entry.total);
|
|
214
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Box, { children: [
|
|
215
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, StatusIcon, { status: entry.status }),
|
|
216
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { children: [
|
|
217
|
+
label,
|
|
218
|
+
" "
|
|
219
|
+
] }),
|
|
220
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ink.Text, { color: entry.status === "done" ? "green" : void 0, children: bar }),
|
|
221
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { children: [
|
|
222
|
+
" ",
|
|
223
|
+
entry.current,
|
|
224
|
+
"/",
|
|
225
|
+
entry.total
|
|
226
|
+
] }),
|
|
227
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, StatusSuffix, { entry })
|
|
228
|
+
] }, cat);
|
|
229
|
+
}),
|
|
230
|
+
errors.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
231
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ink.Text, { children: "" }),
|
|
232
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { color: "red", children: [
|
|
233
|
+
" ",
|
|
234
|
+
errors.length,
|
|
235
|
+
" error",
|
|
236
|
+
errors.length !== 1 ? "s" : "",
|
|
237
|
+
" occurred (use --retry-failed to retry)"
|
|
238
|
+
] })
|
|
239
|
+
] })
|
|
240
|
+
] });
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// src/import/ui/ImportWizard.tsx
|
|
244
|
+
|
|
245
|
+
function unmountAndResolve2(instance, value, resolve) {
|
|
246
|
+
instance.unmount();
|
|
247
|
+
process.nextTick(() => resolve(value));
|
|
248
|
+
}
|
|
249
|
+
function ScanningSpinner({ source }) {
|
|
250
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Box, { paddingX: 1, children: [
|
|
251
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ink.Text, { color: "cyan", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDN573ME7cjs.build_default, { type: "dots" }) }),
|
|
252
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { children: [
|
|
253
|
+
" Scanning ",
|
|
254
|
+
source,
|
|
255
|
+
"..."
|
|
256
|
+
] })
|
|
257
|
+
] });
|
|
258
|
+
}
|
|
259
|
+
function ImportSummary({ source, result }) {
|
|
260
|
+
const entries = Array.from(result.imported.entries());
|
|
261
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Box, { flexDirection: "column", paddingX: 1, children: [
|
|
262
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { color: "green", children: [
|
|
263
|
+
"\u2713",
|
|
264
|
+
" Import complete from ",
|
|
265
|
+
source
|
|
266
|
+
] }),
|
|
267
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ink.Text, { children: "" }),
|
|
268
|
+
entries.map(([cat, stats]) => {
|
|
269
|
+
const label = (_nullishCoalesce(CATEGORY_LABELS[cat], () => ( cat))).padEnd(12);
|
|
270
|
+
const parts = [];
|
|
271
|
+
if (stats.success > 0) parts.push(`${stats.success} imported`);
|
|
272
|
+
if (stats.failed > 0) parts.push(`${stats.failed} failed`);
|
|
273
|
+
if (stats.skipped > 0) parts.push(`${stats.skipped} skipped`);
|
|
274
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { children: [
|
|
275
|
+
" ",
|
|
276
|
+
label,
|
|
277
|
+
": ",
|
|
278
|
+
parts.join(", ") || "none"
|
|
279
|
+
] }, cat);
|
|
280
|
+
}),
|
|
281
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ink.Text, { children: "" }),
|
|
282
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ink.Text, { color: "cyan", children: "Next steps:" }),
|
|
283
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { children: [
|
|
284
|
+
" /sessions ",
|
|
285
|
+
"\u2014",
|
|
286
|
+
" Browse your imported sessions"
|
|
287
|
+
] }),
|
|
288
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _ink.Text, { children: [
|
|
289
|
+
" /resume ",
|
|
290
|
+
"\u2014",
|
|
291
|
+
" Resume an imported session"
|
|
292
|
+
] })
|
|
293
|
+
] });
|
|
294
|
+
}
|
|
295
|
+
function LiveProgress({ importer, categories, onComplete }) {
|
|
296
|
+
const [progress, setProgress] = _react.useState.call(void 0,
|
|
297
|
+
() => {
|
|
298
|
+
const initial = /* @__PURE__ */ new Map();
|
|
299
|
+
for (const cat of categories) {
|
|
300
|
+
initial.set(cat, { current: 0, total: 0, item: "", status: "importing" });
|
|
301
|
+
}
|
|
302
|
+
return initial;
|
|
303
|
+
}
|
|
304
|
+
);
|
|
305
|
+
const [errors, setErrors] = _react.useState.call(void 0, []);
|
|
306
|
+
const handleProgress = _react.useCallback.call(void 0, (p) => {
|
|
307
|
+
setProgress((prev) => {
|
|
308
|
+
const next = new Map(prev);
|
|
309
|
+
next.set(p.category, {
|
|
310
|
+
current: p.current,
|
|
311
|
+
total: p.total,
|
|
312
|
+
item: p.item,
|
|
313
|
+
status: p.status
|
|
314
|
+
});
|
|
315
|
+
return next;
|
|
316
|
+
});
|
|
317
|
+
}, []);
|
|
318
|
+
_react.useEffect.call(void 0, () => {
|
|
319
|
+
let mounted = true;
|
|
320
|
+
importer.import(categories, handleProgress).then((result) => {
|
|
321
|
+
if (!mounted) return;
|
|
322
|
+
setErrors(result.errors);
|
|
323
|
+
const finalProgress = /* @__PURE__ */ new Map();
|
|
324
|
+
for (const [cat, stats] of result.imported.entries()) {
|
|
325
|
+
const status = stats.failed > 0 ? "failed" : "done";
|
|
326
|
+
finalProgress.set(cat, {
|
|
327
|
+
current: stats.success + stats.skipped,
|
|
328
|
+
total: stats.success + stats.failed + stats.skipped,
|
|
329
|
+
item: "",
|
|
330
|
+
status
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
setProgress(finalProgress);
|
|
334
|
+
setTimeout(() => {
|
|
335
|
+
if (mounted) onComplete(result);
|
|
336
|
+
}, 500);
|
|
337
|
+
});
|
|
338
|
+
return () => {
|
|
339
|
+
mounted = false;
|
|
340
|
+
};
|
|
341
|
+
}, [importer, categories, handleProgress, onComplete]);
|
|
342
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ImportProgressView, { progress, errors });
|
|
343
|
+
}
|
|
344
|
+
async function showImportWizard(registry, options) {
|
|
345
|
+
const available = await registry.detectAvailable();
|
|
346
|
+
if (available.length === 0) {
|
|
347
|
+
console.log("\nNo supported agent data found on this machine.\n");
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
let importer;
|
|
351
|
+
if (options.source) {
|
|
352
|
+
importer = registry.get(options.source);
|
|
353
|
+
if (!importer) {
|
|
354
|
+
console.log(`
|
|
355
|
+
Unknown import source: ${options.source}
|
|
356
|
+
`);
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
const exists = await importer.detect();
|
|
360
|
+
if (!exists) {
|
|
361
|
+
console.log(`
|
|
362
|
+
${importer.displayName} data not found at ${importer.homePath}
|
|
363
|
+
`);
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
} else if (available.length === 1) {
|
|
367
|
+
importer = available[0];
|
|
368
|
+
} else {
|
|
369
|
+
const modalOptions = available.map((imp) => ({
|
|
370
|
+
label: imp.displayName,
|
|
371
|
+
value: imp.name
|
|
372
|
+
}));
|
|
373
|
+
const selected = await _chunkFPAE6ORVcjs.showModal.call(void 0, {
|
|
374
|
+
title: "Select a source to import from:",
|
|
375
|
+
options: modalOptions
|
|
376
|
+
});
|
|
377
|
+
if (!selected) return;
|
|
378
|
+
importer = registry.get(selected.value);
|
|
379
|
+
if (!importer) return;
|
|
380
|
+
}
|
|
381
|
+
let scanResult;
|
|
382
|
+
if (process.stdout.isTTY) {
|
|
383
|
+
scanResult = await new Promise((resolve) => {
|
|
384
|
+
const inst = _ink.render.call(void 0,
|
|
385
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYDCDGTK6cjs.I18nProvider, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScanningSpinner, { source: importer.displayName }) }),
|
|
386
|
+
{ exitOnCtrlC: false }
|
|
387
|
+
);
|
|
388
|
+
importer.scan().then((result2) => {
|
|
389
|
+
inst.unmount();
|
|
390
|
+
process.nextTick(() => resolve(result2));
|
|
391
|
+
});
|
|
392
|
+
});
|
|
393
|
+
} else {
|
|
394
|
+
scanResult = await importer.scan();
|
|
395
|
+
}
|
|
396
|
+
if (scanResult.available.size === 0) {
|
|
397
|
+
console.log(`
|
|
398
|
+
No importable data found in ${importer.displayName}.
|
|
399
|
+
`);
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
let selectedCategories;
|
|
403
|
+
if (options.all || options.categories) {
|
|
404
|
+
selectedCategories = _nullishCoalesce(options.categories, () => ( Array.from(scanResult.available.keys())));
|
|
405
|
+
} else {
|
|
406
|
+
const picked = await showCategorySelector(scanResult.available);
|
|
407
|
+
if (!picked || picked.length === 0) return;
|
|
408
|
+
selectedCategories = picked;
|
|
409
|
+
}
|
|
410
|
+
if (options.dryRun) {
|
|
411
|
+
console.log("\nDry run \u2014 would import the following categories:");
|
|
412
|
+
for (const cat of selectedCategories) {
|
|
413
|
+
const info = scanResult.available.get(cat);
|
|
414
|
+
const label = _nullishCoalesce(CATEGORY_LABELS[cat], () => ( cat));
|
|
415
|
+
console.log(` ${label}: ${_nullishCoalesce(_optionalChain([info, 'optionalAccess', _ => _.description]), () => ( "unknown"))}`);
|
|
416
|
+
}
|
|
417
|
+
console.log("");
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
const result = await new Promise((resolve) => {
|
|
421
|
+
if (!process.stdout.isTTY) {
|
|
422
|
+
importer.import(selectedCategories).then(resolve);
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
let completed = false;
|
|
426
|
+
const inst = _ink.render.call(void 0,
|
|
427
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYDCDGTK6cjs.I18nProvider, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
428
|
+
LiveProgress,
|
|
429
|
+
{
|
|
430
|
+
importer,
|
|
431
|
+
categories: selectedCategories,
|
|
432
|
+
onComplete: (res) => {
|
|
433
|
+
if (completed) return;
|
|
434
|
+
completed = true;
|
|
435
|
+
unmountAndResolve2(inst, res, resolve);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
) }),
|
|
439
|
+
{ exitOnCtrlC: false }
|
|
440
|
+
);
|
|
441
|
+
});
|
|
442
|
+
if (process.stdout.isTTY) {
|
|
443
|
+
const summaryInst = _ink.render.call(void 0,
|
|
444
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYDCDGTK6cjs.I18nProvider, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ImportSummary, { source: importer.displayName, result }) }),
|
|
445
|
+
{ exitOnCtrlC: false }
|
|
446
|
+
);
|
|
447
|
+
await new Promise((r) => setTimeout(r, 100));
|
|
448
|
+
summaryInst.unmount();
|
|
449
|
+
} else {
|
|
450
|
+
console.log(`
|
|
451
|
+
Import complete from ${importer.displayName}`);
|
|
452
|
+
for (const [cat, stats] of result.imported.entries()) {
|
|
453
|
+
const label = _nullishCoalesce(CATEGORY_LABELS[cat], () => ( cat));
|
|
454
|
+
console.log(` ${label}: ${stats.success} imported, ${stats.failed} failed`);
|
|
455
|
+
}
|
|
456
|
+
console.log("");
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
exports.showImportWizard = showImportWizard;
|
|
462
|
+
/**
|
|
463
|
+
* @license
|
|
464
|
+
* Copyright 2025 Autohand AI LLC
|
|
465
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
466
|
+
*/
|