autohand-cli 0.7.12 → 0.7.13
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/dist/about-BIZH6I2U.cjs +11 -0
- package/dist/{about-YO7NGBX6.js → about-PPIVMAPA.js} +3 -3
- package/dist/add-dir-7FD4DMDA.cjs +9 -0
- package/dist/{add-dir-UBYMJTDI.js → add-dir-LOYJ4YB5.js} +2 -2
- package/dist/{agents-5MAHZPHB.js → agents-2Y6ASV7C.js} +2 -2
- package/dist/agents-UOSPKLQL.cjs +10 -0
- package/dist/agents-new-23NSGAM5.js +13 -0
- package/dist/agents-new-WI2EL7IJ.cjs +13 -0
- package/dist/{automode-6IYDTXMU.js → automode-LGWTY3UX.js} +2 -2
- package/dist/automode-WLBQ7MN7.cjs +9 -0
- package/dist/{chunk-D445SWSH.js → chunk-2JMWWYMZ.js} +3 -3
- package/dist/{chunk-4BVRSVS2.cjs → chunk-2U5HFVRO.cjs} +38 -72
- package/dist/{chunk-VMCBJ73M.js → chunk-3AWZFG5G.js} +1 -2
- package/dist/{chunk-UWJCELGB.js → chunk-3KBBARKO.js} +1 -1
- package/dist/{chunk-R6MSNNMX.cjs → chunk-425MT6Y5.cjs} +7 -7
- package/dist/{chunk-73EJJCTX.cjs → chunk-43XS26AQ.cjs} +2 -2
- package/dist/{chunk-4V2FH5QE.cjs → chunk-4HA7IHLJ.cjs} +14 -14
- package/dist/{chunk-VZZROEUZ.js → chunk-5UBW2BGC.js} +1 -1
- package/dist/{chunk-UK47BNOH.js → chunk-63BXZQZW.js} +2 -2
- package/dist/{chunk-U2HNW3BE.js → chunk-6DWXHBAY.js} +1 -1
- package/dist/{chunk-TXK5P6FF.js → chunk-6SHHB2VD.js} +2 -2
- package/dist/{chunk-XIRRRQQC.js → chunk-7YX3OD4B.js} +2 -2
- package/dist/{chunk-EFBQFSY6.cjs → chunk-AIH6GUGB.cjs} +5 -5
- package/dist/chunk-AXP53LTU.cjs +169 -0
- package/dist/chunk-B2K7JZRW.js +51 -0
- package/dist/{chunk-XCQ6CVQV.js → chunk-B5HIJJ4B.js} +3 -3
- package/dist/{chunk-GRFEUDX5.cjs → chunk-B6EBHCK2.cjs} +6 -6
- package/dist/{chunk-XW4QQW5E.js → chunk-BHV7CBNT.js} +1 -1
- package/dist/{chunk-HTRSDNPI.js → chunk-BISFR6ZL.js} +1 -1
- package/dist/{chunk-WDB4H2K3.js → chunk-BPTBKO7D.js} +2 -2
- package/dist/{chunk-7QLGK2XE.cjs → chunk-BRXIEKJ3.cjs} +5 -5
- package/dist/{chunk-25K6ONCQ.cjs → chunk-CKN2BLHK.cjs} +2 -2
- package/dist/{chunk-SJLUPGYS.cjs → chunk-CTJILRNQ.cjs} +12 -12
- package/dist/{chunk-YWRSRYIR.js → chunk-DTFR3WD6.js} +1 -1
- package/dist/{chunk-LEXRXG3R.cjs → chunk-DZHR34H6.cjs} +3 -3
- package/dist/{chunk-5E2XJK3O.cjs → chunk-EOGKE5GD.cjs} +4 -4
- package/dist/{chunk-C4KK7YQM.js → chunk-FB6JWNJS.js} +1 -1
- package/dist/{chunk-JEWRDSNA.cjs → chunk-FEVHH525.cjs} +3 -3
- package/dist/{chunk-RONDHULN.cjs → chunk-FHUNAB2K.cjs} +3 -3
- package/dist/{chunk-2VVKAYOY.js → chunk-FK2DVRPJ.js} +2 -2
- package/dist/{chunk-MKNKMPLY.js → chunk-GRSVQ5YZ.js} +2 -2
- package/dist/{chunk-2XPQS4OZ.js → chunk-H3GBSPK5.js} +2 -2
- package/dist/{chunk-RPE3TUKR.js → chunk-HMRDNRTH.js} +1 -1
- package/dist/{chunk-G6YDQTR2.cjs → chunk-HSPWX4Z2.cjs} +9 -9
- package/dist/{chunk-U6HBUXUW.cjs → chunk-IZBCMJHJ.cjs} +2 -2
- package/dist/{chunk-IO2BKMPU.js → chunk-JHOQABEF.js} +2 -2
- package/dist/{chunk-BKWJQUGG.js → chunk-JWPI6O5Z.js} +1 -1
- package/dist/{chunk-XE7T6YJV.cjs → chunk-KW4SQWBU.cjs} +9 -9
- package/dist/{chunk-QBRO3XMP.js → chunk-KXAAEROY.js} +2 -2
- package/dist/{chunk-SIQC4V4N.js → chunk-LYMTYC67.js} +1 -1
- package/dist/{chunk-KEAWYW5Y.cjs → chunk-METF3I6W.cjs} +1 -2
- package/dist/{chunk-ESU7N6NJ.js → chunk-MILZEEUV.js} +1 -1
- package/dist/{chunk-RXOLZ3BF.cjs → chunk-MTALRU7R.cjs} +3 -3
- package/dist/{chunk-A3G2BNQN.js → chunk-MY3TZER2.js} +1 -1
- package/dist/{chunk-6M3J6LR3.js → chunk-NMGF2KUN.js} +1 -1
- package/dist/{chunk-D7DIMN2J.js → chunk-NMWEDN4Z.js} +35 -69
- package/dist/{chunk-3CNRH36G.cjs → chunk-NUHYCFHW.cjs} +4 -4
- package/dist/{chunk-UY7S6R4Y.cjs → chunk-ONAY5SD2.cjs} +14 -14
- package/dist/{chunk-MNTAIFXA.js → chunk-OSUWEUZE.js} +1 -1
- package/dist/{chunk-ALU2PTZB.cjs → chunk-PKOAXQKW.cjs} +11 -11
- package/dist/{chunk-VR35C7QS.cjs → chunk-R3H25HQZ.cjs} +11 -11
- package/dist/{chunk-RSRVPJQC.cjs → chunk-R5OO7MEB.cjs} +8 -8
- package/dist/{chunk-IN74JKZ2.cjs → chunk-RFNCTE4V.cjs} +2 -2
- package/dist/chunk-RRZFJIIB.js +169 -0
- package/dist/{chunk-5LJ6R7VO.js → chunk-RRZS5A53.js} +1 -1
- package/dist/{chunk-TVFQ3N5M.cjs → chunk-RUZB43HU.cjs} +9 -9
- package/dist/{chunk-PCM3OSSV.js → chunk-S47TCZDL.js} +2 -2
- package/dist/{chunk-GV3JV6GI.cjs → chunk-SFNT5DYE.cjs} +4 -4
- package/dist/{chunk-R43FOIQH.cjs → chunk-SIGWDEPS.cjs} +10 -10
- package/dist/{chunk-BGKEM66R.cjs → chunk-SMHY3Q7B.cjs} +9 -9
- package/dist/{chunk-ZV5TZBBS.js → chunk-SRLY7K6J.js} +1 -1
- package/dist/{chunk-NRDP3C3B.cjs → chunk-SZP4ULM5.cjs} +17 -17
- package/dist/{chunk-LWG6LJHL.js → chunk-TOTDRAWG.js} +1 -1
- package/dist/{chunk-2ZV5EMF2.js → chunk-TQB222ZB.js} +2 -2
- package/dist/{chunk-VIGSERLH.cjs → chunk-U7CZFKPL.cjs} +2 -2
- package/dist/{chunk-MVCB7ZQE.cjs → chunk-ULMPJUJW.cjs} +21 -21
- package/dist/{chunk-H2MWZF6E.cjs → chunk-V7YTCNMN.cjs} +5 -5
- package/dist/{chunk-FO3UXH53.js → chunk-VHBUKGRG.js} +2 -2
- package/dist/{chunk-PDWOUNO7.cjs → chunk-VVBBEYTH.cjs} +6 -6
- package/dist/{chunk-HZXG63KE.js → chunk-X765A7J5.js} +1 -1
- package/dist/{chunk-BOU24HF2.cjs → chunk-XBUMKEFN.cjs} +6 -6
- package/dist/chunk-XQLWN4Y3.cjs +51 -0
- package/dist/{chunk-D7NR5BGM.js → chunk-YESQ7XR3.js} +3 -3
- package/dist/{chunk-4YUFXZ36.js → chunk-YHGTBPEC.js} +1 -1
- package/dist/{chunk-CNDQ3TW6.cjs → chunk-ZKZRFH37.cjs} +6 -6
- package/dist/{chunk-TYTHI5MC.cjs → chunk-ZLOTP56B.cjs} +5 -5
- package/dist/completion-7WGMHKOR.cjs +13 -0
- package/dist/completion-KH33NSGP.js +13 -0
- package/dist/export-3QN3IH7A.js +11 -0
- package/dist/export-BI54X3MP.cjs +11 -0
- package/dist/feedback-TBF2CUJR.js +14 -0
- package/dist/feedback-XXHPSUUO.cjs +14 -0
- package/dist/help-4VSLIMP4.cjs +11 -0
- package/dist/help-RU24K66K.js +11 -0
- package/dist/history-73VBEMSI.cjs +13 -0
- package/dist/{history-7LZTGEJM.js → history-AV4XBFRK.js} +2 -2
- package/dist/hooks-62UDQBGH.cjs +12 -0
- package/dist/hooks-XORDJD5X.js +12 -0
- package/dist/{i18n-MB4NNCVM.js → i18n-BSAPXM56.js} +1 -1
- package/dist/i18n-X2IU2EZD.cjs +32 -0
- package/dist/ide-RPKZALQV.js +11 -0
- package/dist/ide-YMNXJB6A.cjs +11 -0
- package/dist/index.cjs +168 -167
- package/dist/index.js +86 -85
- package/dist/init-J5HR4R7U.js +9 -0
- package/dist/init-JCC7RVMC.cjs +9 -0
- package/dist/{language-JKJIQBKY.js → language-AZISJCEZ.js} +4 -4
- package/dist/language-F65RA6FZ.cjs +16 -0
- package/dist/{login-QEZ5UF3J.js → login-5HLPMECE.js} +5 -5
- package/dist/{login-HZMQBI4Z.cjs → login-ISWYYBXP.cjs} +6 -6
- package/dist/logout-3EKZM5J3.cjs +16 -0
- package/dist/{logout-VSS7BRVP.js → logout-GE7TSZ24.js} +5 -5
- package/dist/mcp-EW64QRFA.cjs +15 -0
- package/dist/{mcp-5WFAF24K.js → mcp-VHS7AMF2.js} +3 -3
- package/dist/{mcp-install-X5T4BC7H.cjs → mcp-install-2KVKRAMQ.cjs} +7 -7
- package/dist/{mcp-install-2G7ZLMLV.js → mcp-install-77UXRN6R.js} +4 -4
- package/dist/{memory-IVMJ2BNL.js → memory-2I473RU3.js} +2 -2
- package/dist/memory-JZ6NPSP3.cjs +9 -0
- package/dist/{model-FOWUUVAH.js → model-GXZLARPT.js} +2 -2
- package/dist/model-Y274DBDO.cjs +9 -0
- package/dist/new-BG5VIGZ7.cjs +9 -0
- package/dist/{new-ISJVB4VD.js → new-YXFDQOA7.js} +2 -2
- package/dist/permissions-QILEAGBP.cjs +12 -0
- package/dist/permissions-WVEOVMWO.js +12 -0
- package/dist/quit-NC32OEJG.cjs +9 -0
- package/dist/quit-WRRIGU33.js +9 -0
- package/dist/resume-GJIKIDPR.cjs +12 -0
- package/dist/resume-RMJNCAOK.js +12 -0
- package/dist/{search-XPU6AIXA.js → search-UIWIXB73.js} +4 -4
- package/dist/search-WQNXDA2E.cjs +14 -0
- package/dist/{sessions-VLDM5PF4.js → sessions-HPFX2GDD.js} +2 -2
- package/dist/sessions-SAQU6MFA.cjs +9 -0
- package/dist/share-IE6UTPKF.cjs +13 -0
- package/dist/share-NQXIMFSQ.js +13 -0
- package/dist/{skills-YLFZTOEQ.js → skills-LJZA6PVJ.js} +2 -2
- package/dist/skills-YTYGART7.cjs +13 -0
- package/dist/{skills-install-IFUCRLZK.cjs → skills-install-IKJZN4G2.cjs} +7 -7
- package/dist/{skills-install-OA45O5ZK.js → skills-install-MQINL3EC.js} +4 -4
- package/dist/skills-new-3WCU3CWB.js +14 -0
- package/dist/skills-new-O5LFVFZU.cjs +14 -0
- package/dist/slashCommands-3FFAL4SL.js +55 -0
- package/dist/slashCommands-JASFW3E4.cjs +55 -0
- package/dist/status-4NDGXPIM.js +10 -0
- package/dist/status-RHJIBHP2.cjs +10 -0
- package/dist/{sync-3M3C3T6D.js → sync-3GFSEIAZ.js} +2 -2
- package/dist/sync-CQNQDNTJ.cjs +16 -0
- package/dist/theme-EMJGULMI.cjs +16 -0
- package/dist/{theme-7XFCNDB4.js → theme-FGDSXNU3.js} +4 -4
- package/dist/ui/questionModal.cjs +4 -4
- package/dist/ui/questionModal.js +3 -3
- package/dist/undo-CTXQYE7C.cjs +9 -0
- package/dist/undo-HX2ZMECP.js +9 -0
- package/package.json +1 -2
- package/dist/about-7VIDF3B7.cjs +0 -11
- package/dist/add-dir-7QE2YJ7H.cjs +0 -9
- package/dist/agents-UDXO2SOD.cjs +0 -10
- package/dist/agents-new-I72C5JID.js +0 -13
- package/dist/agents-new-VPAU4JNV.cjs +0 -13
- package/dist/automode-VVP2XR6T.cjs +0 -9
- package/dist/chunk-FONQG5OC.cjs +0 -209
- package/dist/chunk-U5DIIPRG.js +0 -209
- package/dist/completion-2OFOKRBS.js +0 -13
- package/dist/completion-KFMUWCMT.cjs +0 -13
- package/dist/export-OTVX3ZPY.js +0 -11
- package/dist/export-X3PO3CLZ.cjs +0 -11
- package/dist/feedback-CTF5YWG5.js +0 -14
- package/dist/feedback-O3644S7L.cjs +0 -14
- package/dist/help-EHLYG6BD.js +0 -58
- package/dist/help-JHVMHO7M.cjs +0 -58
- package/dist/history-DCWHRTO5.cjs +0 -13
- package/dist/hooks-DIKRBMGT.js +0 -12
- package/dist/hooks-UE4W6JED.cjs +0 -12
- package/dist/i18n-5ANEIZNF.cjs +0 -32
- package/dist/ide-ELI5WKC5.cjs +0 -11
- package/dist/ide-IGOTWN43.js +0 -11
- package/dist/init-5IESXIGG.cjs +0 -9
- package/dist/init-VPDGIJKT.js +0 -9
- package/dist/language-NN6KLKZ4.cjs +0 -16
- package/dist/logout-FKYZ5Z2L.cjs +0 -16
- package/dist/mcp-F7MAPBDQ.cjs +0 -15
- package/dist/memory-YD5Y6RJG.cjs +0 -9
- package/dist/model-2IBHIA4J.cjs +0 -9
- package/dist/new-UC5O66BW.cjs +0 -9
- package/dist/permissions-V2BSHU5V.js +0 -12
- package/dist/permissions-WDZMVJAZ.cjs +0 -12
- package/dist/quit-47THY4BD.cjs +0 -9
- package/dist/quit-FCYYB2AN.js +0 -9
- package/dist/resume-4ED5MHL3.cjs +0 -12
- package/dist/resume-J64OIPHB.js +0 -12
- package/dist/search-RIGXYKSK.cjs +0 -14
- package/dist/sessions-7P5DWTIT.cjs +0 -9
- package/dist/share-DR2FDJLT.cjs +0 -13
- package/dist/share-JEF3735D.js +0 -13
- package/dist/skills-B7AKVGOU.cjs +0 -13
- package/dist/skills-new-3G7YDTLP.js +0 -14
- package/dist/skills-new-Q5QWAI4L.cjs +0 -14
- package/dist/status-F2NCXE34.js +0 -10
- package/dist/status-Y6SL5ZLZ.cjs +0 -10
- package/dist/sync-LJNEHT7Y.cjs +0 -16
- package/dist/theme-MKTWPNTN.cjs +0 -16
- package/dist/undo-NKBO3KWB.js +0 -9
- package/dist/undo-T3KL6SKD.cjs +0 -9
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict"; function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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; }
|
|
3
3
|
|
|
4
|
+
var _chunkXL77XYI2cjs = require('./chunk-XL77XYI2.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
4
7
|
var _chunkL42HTMMRcjs = require('./chunk-L42HTMMR.cjs');
|
|
5
8
|
|
|
6
9
|
|
|
@@ -13,64 +16,62 @@ var _chunkWOGJXDBUcjs = require('./chunk-WOGJXDBU.cjs');
|
|
|
13
16
|
var _chunkDSKVMFRMcjs = require('./chunk-DSKVMFRM.cjs');
|
|
14
17
|
|
|
15
18
|
|
|
16
|
-
var
|
|
17
|
-
require('./chunk-KC5FPUOF.cjs');
|
|
18
|
-
|
|
19
|
+
var _chunkAXP53LTUcjs = require('./chunk-AXP53LTU.cjs');
|
|
19
20
|
|
|
20
|
-
var _chunkFONQG5OCcjs = require('./chunk-FONQG5OC.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
27
|
-
require('./chunk-
|
|
28
|
-
require('./chunk-
|
|
29
|
-
require('./chunk-
|
|
30
|
-
require('./chunk-
|
|
31
|
-
require('./chunk-
|
|
23
|
+
var _chunkZLOTP56Bcjs = require('./chunk-ZLOTP56B.cjs');
|
|
24
|
+
require('./chunk-ULMPJUJW.cjs');
|
|
25
|
+
require('./chunk-ONAY5SD2.cjs');
|
|
26
|
+
require('./chunk-SZP4ULM5.cjs');
|
|
27
|
+
require('./chunk-ZKZRFH37.cjs');
|
|
28
|
+
require('./chunk-HSPWX4Z2.cjs');
|
|
29
|
+
require('./chunk-KC5FPUOF.cjs');
|
|
30
|
+
require('./chunk-V7YTCNMN.cjs');
|
|
31
|
+
require('./chunk-425MT6Y5.cjs');
|
|
32
32
|
require('./chunk-JHGIWNHL.cjs');
|
|
33
|
-
require('./chunk-
|
|
34
|
-
require('./chunk-
|
|
35
|
-
require('./chunk-
|
|
36
|
-
require('./chunk-
|
|
37
|
-
require('./chunk-
|
|
38
|
-
require('./chunk-
|
|
33
|
+
require('./chunk-SMHY3Q7B.cjs');
|
|
34
|
+
require('./chunk-FEVHH525.cjs');
|
|
35
|
+
require('./chunk-CTJILRNQ.cjs');
|
|
36
|
+
require('./chunk-DZHR34H6.cjs');
|
|
37
|
+
require('./chunk-R3H25HQZ.cjs');
|
|
38
|
+
require('./chunk-R5OO7MEB.cjs');
|
|
39
39
|
require('./chunk-3S4DEIJP.cjs');
|
|
40
40
|
require('./chunk-FPHU2ES6.cjs');
|
|
41
|
-
require('./chunk-
|
|
41
|
+
require('./chunk-VVBBEYTH.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
var _chunkTSY7JHIVcjs = require('./chunk-TSY7JHIV.cjs');
|
|
45
|
-
require('./chunk-
|
|
46
|
-
require('./chunk-
|
|
47
|
-
require('./chunk-
|
|
48
|
-
require('./chunk-
|
|
49
|
-
require('./chunk-
|
|
50
|
-
require('./chunk-
|
|
45
|
+
require('./chunk-PKOAXQKW.cjs');
|
|
46
|
+
require('./chunk-4HA7IHLJ.cjs');
|
|
47
|
+
require('./chunk-43XS26AQ.cjs');
|
|
48
|
+
require('./chunk-SFNT5DYE.cjs');
|
|
49
|
+
require('./chunk-IZBCMJHJ.cjs');
|
|
50
|
+
require('./chunk-B6EBHCK2.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
var _chunkZ4J4W6YQcjs = require('./chunk-Z4J4W6YQ.cjs');
|
|
54
54
|
require('./chunk-M7RVTUWE.cjs');
|
|
55
|
-
require('./chunk-
|
|
56
|
-
require('./chunk-
|
|
57
|
-
require('./chunk-
|
|
58
|
-
require('./chunk-
|
|
59
|
-
require('./chunk-
|
|
60
|
-
require('./chunk-
|
|
55
|
+
require('./chunk-FHUNAB2K.cjs');
|
|
56
|
+
require('./chunk-SIGWDEPS.cjs');
|
|
57
|
+
require('./chunk-CKN2BLHK.cjs');
|
|
58
|
+
require('./chunk-U7CZFKPL.cjs');
|
|
59
|
+
require('./chunk-XQLWN4Y3.cjs');
|
|
60
|
+
require('./chunk-RUZB43HU.cjs');
|
|
61
|
+
require('./chunk-MTALRU7R.cjs');
|
|
61
62
|
require('./chunk-MFK6HE47.cjs');
|
|
62
63
|
|
|
63
64
|
|
|
64
|
-
var
|
|
65
|
-
require('./chunk-
|
|
65
|
+
var _chunkNUHYCFHWcjs = require('./chunk-NUHYCFHW.cjs');
|
|
66
|
+
require('./chunk-KW4SQWBU.cjs');
|
|
66
67
|
|
|
67
68
|
|
|
68
|
-
var
|
|
69
|
-
require('./chunk-
|
|
69
|
+
var _chunkMETF3I6Wcjs = require('./chunk-METF3I6W.cjs');
|
|
70
|
+
require('./chunk-BRXIEKJ3.cjs');
|
|
70
71
|
|
|
71
72
|
|
|
72
73
|
var _chunkULQ6MDSJcjs = require('./chunk-ULQ6MDSJ.cjs');
|
|
73
|
-
require('./chunk-
|
|
74
|
+
require('./chunk-RFNCTE4V.cjs');
|
|
74
75
|
require('./chunk-VXCMGBXY.cjs');
|
|
75
76
|
|
|
76
77
|
|
|
@@ -79,7 +80,7 @@ require('./chunk-VXCMGBXY.cjs');
|
|
|
79
80
|
|
|
80
81
|
|
|
81
82
|
|
|
82
|
-
var
|
|
83
|
+
var _chunkEOGKE5GDcjs = require('./chunk-EOGKE5GD.cjs');
|
|
83
84
|
|
|
84
85
|
|
|
85
86
|
|
|
@@ -96,8 +97,8 @@ var _chunkPGRH5Q77cjs = require('./chunk-PGRH5Q77.cjs');
|
|
|
96
97
|
|
|
97
98
|
|
|
98
99
|
|
|
99
|
-
var
|
|
100
|
-
require('./chunk-
|
|
100
|
+
var _chunkXBUMKEFNcjs = require('./chunk-XBUMKEFN.cjs');
|
|
101
|
+
require('./chunk-AIH6GUGB.cjs');
|
|
101
102
|
|
|
102
103
|
|
|
103
104
|
|
|
@@ -110,7 +111,7 @@ var _chunkGIZL57FEcjs = require('./chunk-GIZL57FE.cjs');
|
|
|
110
111
|
|
|
111
112
|
|
|
112
113
|
|
|
113
|
-
var
|
|
114
|
+
var _chunk2U5HFVROcjs = require('./chunk-2U5HFVRO.cjs');
|
|
114
115
|
|
|
115
116
|
// src/index.ts
|
|
116
117
|
require('dotenv/config');
|
|
@@ -884,7 +885,7 @@ var TelemetryManager = class {
|
|
|
884
885
|
*/
|
|
885
886
|
getSystemInfo() {
|
|
886
887
|
return {
|
|
887
|
-
cliVersion:
|
|
888
|
+
cliVersion: _chunkMETF3I6Wcjs.package_default.version,
|
|
888
889
|
platform: process.platform,
|
|
889
890
|
osVersion: _os2.default.release(),
|
|
890
891
|
nodeVersion: process.version,
|
|
@@ -9684,7 +9685,7 @@ ${result.removed.map((p) => ` - ${p}`).join("\n")}`;
|
|
|
9684
9685
|
{ label: "Edit - modify the message", value: "e" },
|
|
9685
9686
|
{ label: "No - cancel commit", value: "n" }
|
|
9686
9687
|
];
|
|
9687
|
-
const modalResult = await
|
|
9688
|
+
const modalResult = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
9688
9689
|
title: "Commit with this message?",
|
|
9689
9690
|
options
|
|
9690
9691
|
});
|
|
@@ -9693,7 +9694,7 @@ ${result.removed.map((p) => ` - ${p}`).join("\n")}`;
|
|
|
9693
9694
|
return "Commit cancelled by user";
|
|
9694
9695
|
}
|
|
9695
9696
|
if (modalResult.value === "e") {
|
|
9696
|
-
const editedMessage = await
|
|
9697
|
+
const editedMessage = await _chunkXBUMKEFNcjs.showInput.call(void 0, {
|
|
9697
9698
|
title: "Enter commit message:",
|
|
9698
9699
|
defaultValue: commitMessage
|
|
9699
9700
|
});
|
|
@@ -9934,11 +9935,11 @@ ${result.removed.map((p) => ` - ${p}`).join("\n")}`;
|
|
|
9934
9935
|
}
|
|
9935
9936
|
console.log(_chalk2.default.cyan(`
|
|
9936
9937
|
\u{1F50D} Searching web: "${action.query}"...`));
|
|
9937
|
-
const results = await
|
|
9938
|
+
const results = await _chunkEOGKE5GDcjs.webSearch.call(void 0, action.query, {
|
|
9938
9939
|
maxResults: action.max_results,
|
|
9939
9940
|
searchType: action.search_type
|
|
9940
9941
|
});
|
|
9941
|
-
const formatted =
|
|
9942
|
+
const formatted = _chunkEOGKE5GDcjs.formatSearchResults.call(void 0, results);
|
|
9942
9943
|
console.log(_chalk2.default.gray(formatted.split("\n").slice(0, 10).join("\n")));
|
|
9943
9944
|
if (results.length > 3) {
|
|
9944
9945
|
console.log(_chalk2.default.gray(" ..."));
|
|
@@ -9951,7 +9952,7 @@ ${result.removed.map((p) => ` - ${p}`).join("\n")}`;
|
|
|
9951
9952
|
}
|
|
9952
9953
|
console.log(_chalk2.default.cyan(`
|
|
9953
9954
|
\u{1F310} Fetching: ${action.url}...`));
|
|
9954
|
-
const content = await
|
|
9955
|
+
const content = await _chunkEOGKE5GDcjs.fetchUrl.call(void 0, action.url, {
|
|
9955
9956
|
maxLength: action.max_length
|
|
9956
9957
|
});
|
|
9957
9958
|
const preview = content.slice(0, 500);
|
|
@@ -9965,11 +9966,11 @@ ${result.removed.map((p) => ` - ${p}`).join("\n")}`;
|
|
|
9965
9966
|
const registryLabel = action.registry ? ` (${action.registry})` : "";
|
|
9966
9967
|
console.log(_chalk2.default.cyan(`
|
|
9967
9968
|
\u{1F4E6} Getting package info: ${action.package_name}${action.version ? `@${action.version}` : ""}${registryLabel}...`));
|
|
9968
|
-
const info = await
|
|
9969
|
+
const info = await _chunkEOGKE5GDcjs.getPackageInfo.call(void 0, action.package_name, {
|
|
9969
9970
|
registry: action.registry,
|
|
9970
9971
|
version: action.version
|
|
9971
9972
|
});
|
|
9972
|
-
const formatted =
|
|
9973
|
+
const formatted = _chunkEOGKE5GDcjs.formatPackageInfo.call(void 0, info);
|
|
9973
9974
|
console.log(_chalk2.default.gray(formatted));
|
|
9974
9975
|
return formatted;
|
|
9975
9976
|
}
|
|
@@ -10022,7 +10023,7 @@ ${result.removed.map((p) => ` - ${p}`).join("\n")}`;
|
|
|
10022
10023
|
label: `${options.length + 1}. Other (type your own answer)`,
|
|
10023
10024
|
value: "__other__"
|
|
10024
10025
|
});
|
|
10025
|
-
const result = await
|
|
10026
|
+
const result = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
10026
10027
|
title: "Select an answer:",
|
|
10027
10028
|
options
|
|
10028
10029
|
});
|
|
@@ -10032,7 +10033,7 @@ ${result.removed.map((p) => ` - ${p}`).join("\n")}`;
|
|
|
10032
10033
|
return "<answer>No answer provided</answer>";
|
|
10033
10034
|
}
|
|
10034
10035
|
if (selected === "__other__") {
|
|
10035
|
-
const answer = await
|
|
10036
|
+
const answer = await _chunkXBUMKEFNcjs.showInput.call(void 0, {
|
|
10036
10037
|
title: "Your answer:"
|
|
10037
10038
|
});
|
|
10038
10039
|
if (!answer) {
|
|
@@ -10049,7 +10050,7 @@ ${result.removed.map((p) => ` - ${p}`).join("\n")}`;
|
|
|
10049
10050
|
`));
|
|
10050
10051
|
return `<answer>${selected}</answer>`;
|
|
10051
10052
|
} else {
|
|
10052
|
-
const answer = await
|
|
10053
|
+
const answer = await _chunkXBUMKEFNcjs.showInput.call(void 0, {
|
|
10053
10054
|
title: "Your answer:"
|
|
10054
10055
|
});
|
|
10055
10056
|
const finalAnswer = answer || "No answer provided";
|
|
@@ -10610,7 +10611,7 @@ var SlashCommandHandler = class {
|
|
|
10610
10611
|
try {
|
|
10611
10612
|
switch (command) {
|
|
10612
10613
|
case "/model": {
|
|
10613
|
-
const { model } = await Promise.resolve().then(() => _interopRequireWildcard(require("./model-
|
|
10614
|
+
const { model } = await Promise.resolve().then(() => _interopRequireWildcard(require("./model-Y274DBDO.cjs")));
|
|
10614
10615
|
return model(this.ctx);
|
|
10615
10616
|
}
|
|
10616
10617
|
case "/cc": {
|
|
@@ -10618,28 +10619,28 @@ var SlashCommandHandler = class {
|
|
|
10618
10619
|
return cc(this.ctx);
|
|
10619
10620
|
}
|
|
10620
10621
|
case "/search": {
|
|
10621
|
-
const { search } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
10622
|
+
const { search } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-WQNXDA2E.cjs")));
|
|
10622
10623
|
return search(this.ctx);
|
|
10623
10624
|
}
|
|
10624
10625
|
case "/init": {
|
|
10625
|
-
const { init } = await Promise.resolve().then(() => _interopRequireWildcard(require("./init-
|
|
10626
|
+
const { init } = await Promise.resolve().then(() => _interopRequireWildcard(require("./init-JCC7RVMC.cjs")));
|
|
10626
10627
|
return init(this.ctx);
|
|
10627
10628
|
}
|
|
10628
10629
|
case "/quit": {
|
|
10629
|
-
const { quit } = await Promise.resolve().then(() => _interopRequireWildcard(require("./quit-
|
|
10630
|
+
const { quit } = await Promise.resolve().then(() => _interopRequireWildcard(require("./quit-NC32OEJG.cjs")));
|
|
10630
10631
|
return quit();
|
|
10631
10632
|
}
|
|
10632
10633
|
case "/help":
|
|
10633
10634
|
case "/?": {
|
|
10634
|
-
const { help } = await Promise.resolve().then(() => _interopRequireWildcard(require("./help-
|
|
10635
|
+
const { help } = await Promise.resolve().then(() => _interopRequireWildcard(require("./help-4VSLIMP4.cjs")));
|
|
10635
10636
|
return help();
|
|
10636
10637
|
}
|
|
10637
10638
|
case "/about": {
|
|
10638
|
-
const { about } = await Promise.resolve().then(() => _interopRequireWildcard(require("./about-
|
|
10639
|
+
const { about } = await Promise.resolve().then(() => _interopRequireWildcard(require("./about-BIZH6I2U.cjs")));
|
|
10639
10640
|
return about();
|
|
10640
10641
|
}
|
|
10641
10642
|
case "/agents": {
|
|
10642
|
-
const { handler } = await Promise.resolve().then(() => _interopRequireWildcard(require("./agents-
|
|
10643
|
+
const { handler } = await Promise.resolve().then(() => _interopRequireWildcard(require("./agents-UOSPKLQL.cjs")));
|
|
10643
10644
|
const output = await handler();
|
|
10644
10645
|
if (output) {
|
|
10645
10646
|
console.log(output);
|
|
@@ -10648,19 +10649,19 @@ var SlashCommandHandler = class {
|
|
|
10648
10649
|
}
|
|
10649
10650
|
case "/agents new":
|
|
10650
10651
|
case "/agents-new": {
|
|
10651
|
-
const { createAgent } = await Promise.resolve().then(() => _interopRequireWildcard(require("./agents-new-
|
|
10652
|
+
const { createAgent } = await Promise.resolve().then(() => _interopRequireWildcard(require("./agents-new-WI2EL7IJ.cjs")));
|
|
10652
10653
|
return createAgent(this.ctx);
|
|
10653
10654
|
}
|
|
10654
10655
|
case "/feedback": {
|
|
10655
|
-
const { feedback } = await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
10656
|
+
const { feedback } = await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-XXHPSUUO.cjs")));
|
|
10656
10657
|
return feedback(this.ctx);
|
|
10657
10658
|
}
|
|
10658
10659
|
case "/resume": {
|
|
10659
|
-
const { resume } = await Promise.resolve().then(() => _interopRequireWildcard(require("./resume-
|
|
10660
|
+
const { resume } = await Promise.resolve().then(() => _interopRequireWildcard(require("./resume-GJIKIDPR.cjs")));
|
|
10660
10661
|
return resume({ sessionManager: this.ctx.sessionManager, args });
|
|
10661
10662
|
}
|
|
10662
10663
|
case "/sessions": {
|
|
10663
|
-
const { sessions } = await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
10664
|
+
const { sessions } = await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-SAQU6MFA.cjs")));
|
|
10664
10665
|
return sessions({ sessionManager: this.ctx.sessionManager, args });
|
|
10665
10666
|
}
|
|
10666
10667
|
case "/session": {
|
|
@@ -10668,7 +10669,7 @@ var SlashCommandHandler = class {
|
|
|
10668
10669
|
return session({ sessionManager: this.ctx.sessionManager });
|
|
10669
10670
|
}
|
|
10670
10671
|
case "/undo": {
|
|
10671
|
-
const { undo } = await Promise.resolve().then(() => _interopRequireWildcard(require("./undo-
|
|
10672
|
+
const { undo } = await Promise.resolve().then(() => _interopRequireWildcard(require("./undo-CTXQYE7C.cjs")));
|
|
10672
10673
|
return undo({
|
|
10673
10674
|
workspaceRoot: this.ctx.workspaceRoot,
|
|
10674
10675
|
undoFileMutation: _nullishCoalesce(this.ctx.undoFileMutation, () => ( (async () => {
|
|
@@ -10678,7 +10679,7 @@ var SlashCommandHandler = class {
|
|
|
10678
10679
|
});
|
|
10679
10680
|
}
|
|
10680
10681
|
case "/new": {
|
|
10681
|
-
const { newConversation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./new-
|
|
10682
|
+
const { newConversation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./new-BG5VIGZ7.cjs")));
|
|
10682
10683
|
return newConversation({
|
|
10683
10684
|
resetConversation: this.ctx.resetConversation,
|
|
10684
10685
|
sessionManager: this.ctx.sessionManager,
|
|
@@ -10687,7 +10688,7 @@ var SlashCommandHandler = class {
|
|
|
10687
10688
|
});
|
|
10688
10689
|
}
|
|
10689
10690
|
case "/memory": {
|
|
10690
|
-
const { memory } = await Promise.resolve().then(() => _interopRequireWildcard(require("./memory-
|
|
10691
|
+
const { memory } = await Promise.resolve().then(() => _interopRequireWildcard(require("./memory-JZ6NPSP3.cjs")));
|
|
10691
10692
|
return memory({ memoryManager: this.ctx.memoryManager });
|
|
10692
10693
|
}
|
|
10693
10694
|
case "/formatters": {
|
|
@@ -10701,12 +10702,12 @@ var SlashCommandHandler = class {
|
|
|
10701
10702
|
return null;
|
|
10702
10703
|
}
|
|
10703
10704
|
case "/completion": {
|
|
10704
|
-
const { execute } = await Promise.resolve().then(() => _interopRequireWildcard(require("./completion-
|
|
10705
|
+
const { execute } = await Promise.resolve().then(() => _interopRequireWildcard(require("./completion-7WGMHKOR.cjs")));
|
|
10705
10706
|
await execute(args.join(" "));
|
|
10706
10707
|
return null;
|
|
10707
10708
|
}
|
|
10708
10709
|
case "/export": {
|
|
10709
|
-
const { execute } = await Promise.resolve().then(() => _interopRequireWildcard(require("./export-
|
|
10710
|
+
const { execute } = await Promise.resolve().then(() => _interopRequireWildcard(require("./export-BI54X3MP.cjs")));
|
|
10710
10711
|
await execute(args.join(" "), {
|
|
10711
10712
|
sessionManager: this.ctx.sessionManager,
|
|
10712
10713
|
currentSession: this.ctx.currentSession,
|
|
@@ -10715,7 +10716,7 @@ var SlashCommandHandler = class {
|
|
|
10715
10716
|
return null;
|
|
10716
10717
|
}
|
|
10717
10718
|
case "/share": {
|
|
10718
|
-
const { execute } = await Promise.resolve().then(() => _interopRequireWildcard(require("./share-
|
|
10719
|
+
const { execute } = await Promise.resolve().then(() => _interopRequireWildcard(require("./share-IE6UTPKF.cjs")));
|
|
10719
10720
|
await execute(args.join(" "), {
|
|
10720
10721
|
sessionManager: this.ctx.sessionManager,
|
|
10721
10722
|
currentSession: this.ctx.currentSession,
|
|
@@ -10728,30 +10729,30 @@ var SlashCommandHandler = class {
|
|
|
10728
10729
|
return null;
|
|
10729
10730
|
}
|
|
10730
10731
|
case "/status": {
|
|
10731
|
-
const { status } = await Promise.resolve().then(() => _interopRequireWildcard(require("./status-
|
|
10732
|
+
const { status } = await Promise.resolve().then(() => _interopRequireWildcard(require("./status-RHJIBHP2.cjs")));
|
|
10732
10733
|
return status(this.ctx);
|
|
10733
10734
|
}
|
|
10734
10735
|
case "/login": {
|
|
10735
|
-
const { login } = await Promise.resolve().then(() => _interopRequireWildcard(require("./login-
|
|
10736
|
+
const { login } = await Promise.resolve().then(() => _interopRequireWildcard(require("./login-ISWYYBXP.cjs")));
|
|
10736
10737
|
return login({ config: this.ctx.config });
|
|
10737
10738
|
}
|
|
10738
10739
|
case "/logout": {
|
|
10739
|
-
const { logout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./logout-
|
|
10740
|
+
const { logout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./logout-3EKZM5J3.cjs")));
|
|
10740
10741
|
return logout({ config: this.ctx.config });
|
|
10741
10742
|
}
|
|
10742
10743
|
case "/permissions": {
|
|
10743
|
-
const { permissions } = await Promise.resolve().then(() => _interopRequireWildcard(require("./permissions-
|
|
10744
|
+
const { permissions } = await Promise.resolve().then(() => _interopRequireWildcard(require("./permissions-QILEAGBP.cjs")));
|
|
10744
10745
|
return permissions({ permissionManager: this.ctx.permissionManager });
|
|
10745
10746
|
}
|
|
10746
10747
|
case "/hooks": {
|
|
10747
|
-
const { hooks } = await Promise.resolve().then(() => _interopRequireWildcard(require("./hooks-
|
|
10748
|
+
const { hooks } = await Promise.resolve().then(() => _interopRequireWildcard(require("./hooks-62UDQBGH.cjs")));
|
|
10748
10749
|
if (!this.ctx.hookManager) {
|
|
10749
10750
|
return "Hook manager not available.";
|
|
10750
10751
|
}
|
|
10751
10752
|
return hooks({ hookManager: this.ctx.hookManager });
|
|
10752
10753
|
}
|
|
10753
10754
|
case "/skills": {
|
|
10754
|
-
const { skills } = await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
10755
|
+
const { skills } = await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-YTYGART7.cjs")));
|
|
10755
10756
|
if (!this.ctx.skillsRegistry) {
|
|
10756
10757
|
return "Skills registry not available.";
|
|
10757
10758
|
}
|
|
@@ -10761,7 +10762,7 @@ var SlashCommandHandler = class {
|
|
|
10761
10762
|
}, args);
|
|
10762
10763
|
}
|
|
10763
10764
|
case "/skills install": {
|
|
10764
|
-
const { skillsInstall } = await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-install-
|
|
10765
|
+
const { skillsInstall } = await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-install-IKJZN4G2.cjs")));
|
|
10765
10766
|
if (!this.ctx.skillsRegistry) {
|
|
10766
10767
|
return "Skills registry not available.";
|
|
10767
10768
|
}
|
|
@@ -10773,7 +10774,7 @@ var SlashCommandHandler = class {
|
|
|
10773
10774
|
}
|
|
10774
10775
|
case "/skills new":
|
|
10775
10776
|
case "/skills-new": {
|
|
10776
|
-
const { createSkill } = await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-new-
|
|
10777
|
+
const { createSkill } = await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-new-O5LFVFZU.cjs")));
|
|
10777
10778
|
if (!this.ctx.skillsRegistry) {
|
|
10778
10779
|
return "Skills registry not available.";
|
|
10779
10780
|
}
|
|
@@ -10784,7 +10785,7 @@ var SlashCommandHandler = class {
|
|
|
10784
10785
|
});
|
|
10785
10786
|
}
|
|
10786
10787
|
case "/theme": {
|
|
10787
|
-
const { theme } = await Promise.resolve().then(() => _interopRequireWildcard(require("./theme-
|
|
10788
|
+
const { theme } = await Promise.resolve().then(() => _interopRequireWildcard(require("./theme-EMJGULMI.cjs")));
|
|
10788
10789
|
if (!this.ctx.config) {
|
|
10789
10790
|
console.log(_chalk2.default.yellow("Config not available for theme selection."));
|
|
10790
10791
|
return null;
|
|
@@ -10792,18 +10793,18 @@ var SlashCommandHandler = class {
|
|
|
10792
10793
|
return theme({ config: this.ctx.config });
|
|
10793
10794
|
}
|
|
10794
10795
|
case "/automode": {
|
|
10795
|
-
const { automode } = await Promise.resolve().then(() => _interopRequireWildcard(require("./automode-
|
|
10796
|
+
const { automode } = await Promise.resolve().then(() => _interopRequireWildcard(require("./automode-WLBQ7MN7.cjs")));
|
|
10796
10797
|
return automode({
|
|
10797
10798
|
automodeManager: this.ctx.automodeManager,
|
|
10798
10799
|
workspaceRoot: this.ctx.workspaceRoot
|
|
10799
10800
|
}, args);
|
|
10800
10801
|
}
|
|
10801
10802
|
case "/sync": {
|
|
10802
|
-
const { sync } = await Promise.resolve().then(() => _interopRequireWildcard(require("./sync-
|
|
10803
|
+
const { sync } = await Promise.resolve().then(() => _interopRequireWildcard(require("./sync-CQNQDNTJ.cjs")));
|
|
10803
10804
|
return sync(this.ctx);
|
|
10804
10805
|
}
|
|
10805
10806
|
case "/add-dir": {
|
|
10806
|
-
const { addDir } = await Promise.resolve().then(() => _interopRequireWildcard(require("./add-dir-
|
|
10807
|
+
const { addDir } = await Promise.resolve().then(() => _interopRequireWildcard(require("./add-dir-7FD4DMDA.cjs")));
|
|
10807
10808
|
if (!this.ctx.fileManager || !this.ctx.addAdditionalDir) {
|
|
10808
10809
|
console.log(_chalk2.default.yellow("File manager not available for /add-dir command."));
|
|
10809
10810
|
return null;
|
|
@@ -10816,7 +10817,7 @@ var SlashCommandHandler = class {
|
|
|
10816
10817
|
}, args);
|
|
10817
10818
|
}
|
|
10818
10819
|
case "/language": {
|
|
10819
|
-
const { language } = await Promise.resolve().then(() => _interopRequireWildcard(require("./language-
|
|
10820
|
+
const { language } = await Promise.resolve().then(() => _interopRequireWildcard(require("./language-F65RA6FZ.cjs")));
|
|
10820
10821
|
if (!this.ctx.config) {
|
|
10821
10822
|
console.log(_chalk2.default.yellow("Config not available for language selection."));
|
|
10822
10823
|
return null;
|
|
@@ -10828,29 +10829,29 @@ var SlashCommandHandler = class {
|
|
|
10828
10829
|
return plan(this.ctx, args.join(" "));
|
|
10829
10830
|
}
|
|
10830
10831
|
case "/ide": {
|
|
10831
|
-
const { ide } = await Promise.resolve().then(() => _interopRequireWildcard(require("./ide-
|
|
10832
|
+
const { ide } = await Promise.resolve().then(() => _interopRequireWildcard(require("./ide-YMNXJB6A.cjs")));
|
|
10832
10833
|
return ide({ workspaceRoot: this.ctx.workspaceRoot });
|
|
10833
10834
|
}
|
|
10834
10835
|
case "/history": {
|
|
10835
|
-
const { history } = await Promise.resolve().then(() => _interopRequireWildcard(require("./history-
|
|
10836
|
+
const { history } = await Promise.resolve().then(() => _interopRequireWildcard(require("./history-73VBEMSI.cjs")));
|
|
10836
10837
|
return history({ ...this.ctx, args });
|
|
10837
10838
|
}
|
|
10838
10839
|
case "/mcp": {
|
|
10839
|
-
const { mcp } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-
|
|
10840
|
+
const { mcp } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-EW64QRFA.cjs")));
|
|
10840
10841
|
return mcp({
|
|
10841
10842
|
mcpManager: this.ctx.mcpManager,
|
|
10842
10843
|
config: this.ctx.config
|
|
10843
10844
|
}, args);
|
|
10844
10845
|
}
|
|
10845
10846
|
case "/mcp install": {
|
|
10846
|
-
const { mcpInstall } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-install-
|
|
10847
|
+
const { mcpInstall } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-install-2KVKRAMQ.cjs")));
|
|
10847
10848
|
return mcpInstall({
|
|
10848
10849
|
mcpManager: this.ctx.mcpManager,
|
|
10849
10850
|
config: this.ctx.config
|
|
10850
10851
|
}, args.join(" ").trim() || void 0);
|
|
10851
10852
|
}
|
|
10852
10853
|
case "/skills use": {
|
|
10853
|
-
const { skills } = await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
10854
|
+
const { skills } = await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-YTYGART7.cjs")));
|
|
10854
10855
|
if (!this.ctx.skillsRegistry) {
|
|
10855
10856
|
return "Skills registry not available.";
|
|
10856
10857
|
}
|
|
@@ -11320,7 +11321,7 @@ var AgentDelegator = class {
|
|
|
11320
11321
|
this.llm = llm;
|
|
11321
11322
|
this.actionExecutor = actionExecutor;
|
|
11322
11323
|
this.subagentCounter = 0;
|
|
11323
|
-
this.registry =
|
|
11324
|
+
this.registry = _chunkNUHYCFHWcjs.AgentRegistry.getInstance();
|
|
11324
11325
|
this.clientContext = _nullishCoalesce(options.clientContext, () => ( "cli"));
|
|
11325
11326
|
this.currentDepth = _nullishCoalesce(options.currentDepth, () => ( 0));
|
|
11326
11327
|
this.maxDepth = _nullishCoalesce(options.maxDepth, () => ( DEFAULT_MAX_DEPTH));
|
|
@@ -11533,7 +11534,7 @@ var DEFAULT_CONFIG = {
|
|
|
11533
11534
|
timeout: 5e3,
|
|
11534
11535
|
maxRetries: 3,
|
|
11535
11536
|
offlineQueue: true,
|
|
11536
|
-
cliVersion:
|
|
11537
|
+
cliVersion: _chunkMETF3I6Wcjs.package_default.version
|
|
11537
11538
|
};
|
|
11538
11539
|
var FeedbackApiClient = class {
|
|
11539
11540
|
constructor(configOverrides) {
|
|
@@ -11935,7 +11936,7 @@ var FeedbackManager = class {
|
|
|
11935
11936
|
{ label: `${_chalk2.default.red("1")} - Very Poor`, value: "1" },
|
|
11936
11937
|
{ label: `${_chalk2.default.gray("s")} - Skip`, value: "skip" }
|
|
11937
11938
|
];
|
|
11938
|
-
const ratingResult = await
|
|
11939
|
+
const ratingResult = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
11939
11940
|
title: "How would you rate your experience?",
|
|
11940
11941
|
options: ratingOptions
|
|
11941
11942
|
});
|
|
@@ -11955,18 +11956,18 @@ var FeedbackManager = class {
|
|
|
11955
11956
|
let improvement;
|
|
11956
11957
|
let recommend;
|
|
11957
11958
|
if (npsScore >= 4) {
|
|
11958
|
-
const reasonAnswer = await
|
|
11959
|
+
const reasonAnswer = await _chunkXBUMKEFNcjs.showInput.call(void 0, {
|
|
11959
11960
|
title: "What do you like most about Autohand? (optional, press Enter to skip)"
|
|
11960
11961
|
});
|
|
11961
11962
|
reason = reasonAnswer || void 0;
|
|
11962
11963
|
if (reasonAnswer !== null) {
|
|
11963
|
-
recommend = await
|
|
11964
|
+
recommend = await _chunkXBUMKEFNcjs.showConfirm.call(void 0, {
|
|
11964
11965
|
title: "Would you recommend Autohand to a colleague?",
|
|
11965
11966
|
defaultValue: true
|
|
11966
11967
|
});
|
|
11967
11968
|
}
|
|
11968
11969
|
} else {
|
|
11969
|
-
const improvementAnswer = await
|
|
11970
|
+
const improvementAnswer = await _chunkXBUMKEFNcjs.showInput.call(void 0, {
|
|
11970
11971
|
title: "What could we do better? (optional, press Enter to skip)"
|
|
11971
11972
|
});
|
|
11972
11973
|
improvement = improvementAnswer || void 0;
|
|
@@ -13573,7 +13574,7 @@ async function confirm(message, context) {
|
|
|
13573
13574
|
{ label: "No", value: "no" },
|
|
13574
13575
|
{ label: "Enter alternative...", value: "alternative" }
|
|
13575
13576
|
];
|
|
13576
|
-
const result = await
|
|
13577
|
+
const result = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
13577
13578
|
title: message,
|
|
13578
13579
|
options,
|
|
13579
13580
|
initialIndex: 0
|
|
@@ -13585,7 +13586,7 @@ async function confirm(message, context) {
|
|
|
13585
13586
|
return true;
|
|
13586
13587
|
}
|
|
13587
13588
|
if (result.value === "alternative") {
|
|
13588
|
-
const altAnswer = await
|
|
13589
|
+
const altAnswer = await _chunkXBUMKEFNcjs.showInput.call(void 0, {
|
|
13589
13590
|
title: "Enter alternative action (or empty to cancel)"
|
|
13590
13591
|
});
|
|
13591
13592
|
if (_optionalChain([altAnswer, 'optionalAccess', _310 => _310.trim, 'call', _311 => _311()])) {
|
|
@@ -15247,7 +15248,7 @@ var ProviderConfigManager = class {
|
|
|
15247
15248
|
value: name
|
|
15248
15249
|
};
|
|
15249
15250
|
});
|
|
15250
|
-
const result = await
|
|
15251
|
+
const result = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
15251
15252
|
title: "Choose an LLM provider",
|
|
15252
15253
|
options: providerChoices
|
|
15253
15254
|
});
|
|
@@ -15311,14 +15312,14 @@ ${selectedProvider} is not configured yet. Let's set it up!
|
|
|
15311
15312
|
try {
|
|
15312
15313
|
console.log(_chalk2.default.cyan("OpenRouter Configuration"));
|
|
15313
15314
|
console.log(_chalk2.default.gray("Get your API key at: https://openrouter.ai/keys\n"));
|
|
15314
|
-
const apiKey = await
|
|
15315
|
+
const apiKey = await _chunkXBUMKEFNcjs.showPassword.call(void 0, {
|
|
15315
15316
|
title: "Enter your OpenRouter API key"
|
|
15316
15317
|
});
|
|
15317
15318
|
if (!apiKey) {
|
|
15318
15319
|
console.log(_chalk2.default.gray("\nConfiguration cancelled."));
|
|
15319
15320
|
return;
|
|
15320
15321
|
}
|
|
15321
|
-
const model = await
|
|
15322
|
+
const model = await _chunkXBUMKEFNcjs.showInput.call(void 0, {
|
|
15322
15323
|
title: "Enter the model ID",
|
|
15323
15324
|
defaultValue: "anthropic/claude-3.5-sonnet"
|
|
15324
15325
|
});
|
|
@@ -15366,13 +15367,13 @@ ${selectedProvider} is not configured yet. Let's set it up!
|
|
|
15366
15367
|
label: name,
|
|
15367
15368
|
value: name
|
|
15368
15369
|
}));
|
|
15369
|
-
const result = await
|
|
15370
|
+
const result = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
15370
15371
|
title: "Select a model",
|
|
15371
15372
|
options
|
|
15372
15373
|
});
|
|
15373
15374
|
model = _optionalChain([result, 'optionalAccess', _337 => _337.value]);
|
|
15374
15375
|
} else {
|
|
15375
|
-
model = await
|
|
15376
|
+
model = await _chunkXBUMKEFNcjs.showInput.call(void 0, {
|
|
15376
15377
|
title: "Enter the model name (e.g., llama3.2:latest)",
|
|
15377
15378
|
defaultValue: "llama3.2:latest"
|
|
15378
15379
|
});
|
|
@@ -15405,7 +15406,7 @@ ${selectedProvider} is not configured yet. Let's set it up!
|
|
|
15405
15406
|
try {
|
|
15406
15407
|
console.log(_chalk2.default.cyan("llama.cpp Configuration"));
|
|
15407
15408
|
console.log(_chalk2.default.gray("Make sure llama.cpp server is running: ./server -m model.gguf\n"));
|
|
15408
|
-
const port = await
|
|
15409
|
+
const port = await _chunkXBUMKEFNcjs.showInput.call(void 0, {
|
|
15409
15410
|
title: "Server port",
|
|
15410
15411
|
defaultValue: "8080"
|
|
15411
15412
|
});
|
|
@@ -15413,7 +15414,7 @@ ${selectedProvider} is not configured yet. Let's set it up!
|
|
|
15413
15414
|
console.log(_chalk2.default.gray("\nConfiguration cancelled."));
|
|
15414
15415
|
return;
|
|
15415
15416
|
}
|
|
15416
|
-
const model = await
|
|
15417
|
+
const model = await _chunkXBUMKEFNcjs.showInput.call(void 0, {
|
|
15417
15418
|
title: "Model name/description",
|
|
15418
15419
|
defaultValue: "llama-model"
|
|
15419
15420
|
});
|
|
@@ -15442,7 +15443,7 @@ ${selectedProvider} is not configured yet. Let's set it up!
|
|
|
15442
15443
|
try {
|
|
15443
15444
|
console.log(_chalk2.default.cyan("OpenAI Configuration"));
|
|
15444
15445
|
console.log(_chalk2.default.gray("Get your API key at: https://platform.openai.com/api-keys\n"));
|
|
15445
|
-
const apiKey = await
|
|
15446
|
+
const apiKey = await _chunkXBUMKEFNcjs.showPassword.call(void 0, {
|
|
15446
15447
|
title: "Enter your OpenAI API key"
|
|
15447
15448
|
});
|
|
15448
15449
|
if (!apiKey) {
|
|
@@ -15456,7 +15457,7 @@ ${selectedProvider} is not configured yet. Let's set it up!
|
|
|
15456
15457
|
{ label: "gpt-4", value: "gpt-4" },
|
|
15457
15458
|
{ label: "gpt-3.5-turbo", value: "gpt-3.5-turbo" }
|
|
15458
15459
|
];
|
|
15459
|
-
const result = await
|
|
15460
|
+
const result = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
15460
15461
|
title: "Select a model",
|
|
15461
15462
|
options: modelChoices
|
|
15462
15463
|
});
|
|
@@ -15504,13 +15505,13 @@ ${selectedProvider} is not configured yet. Let's set it up!
|
|
|
15504
15505
|
label: name,
|
|
15505
15506
|
value: name
|
|
15506
15507
|
}));
|
|
15507
|
-
const result = await
|
|
15508
|
+
const result = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
15508
15509
|
title: "Select a model",
|
|
15509
15510
|
options
|
|
15510
15511
|
});
|
|
15511
15512
|
model = _optionalChain([result, 'optionalAccess', _344 => _344.value]);
|
|
15512
15513
|
} else {
|
|
15513
|
-
model = await
|
|
15514
|
+
model = await _chunkXBUMKEFNcjs.showInput.call(void 0, {
|
|
15514
15515
|
title: "Enter model name (e.g., mlx-community/Llama-3.2-3B-Instruct-4bit)",
|
|
15515
15516
|
defaultValue: "mlx-community/Llama-3.2-3B-Instruct-4bit"
|
|
15516
15517
|
});
|
|
@@ -15539,7 +15540,7 @@ ${selectedProvider} is not configured yet. Let's set it up!
|
|
|
15539
15540
|
try {
|
|
15540
15541
|
console.log(_chalk2.default.cyan("LLM Gateway Configuration"));
|
|
15541
15542
|
console.log(_chalk2.default.gray("Get your API key at: https://llmgateway.io/dashboard\n"));
|
|
15542
|
-
const apiKey = await
|
|
15543
|
+
const apiKey = await _chunkXBUMKEFNcjs.showPassword.call(void 0, {
|
|
15543
15544
|
title: "Enter your LLM Gateway API key"
|
|
15544
15545
|
});
|
|
15545
15546
|
if (!apiKey) {
|
|
@@ -15554,7 +15555,7 @@ ${selectedProvider} is not configured yet. Let's set it up!
|
|
|
15554
15555
|
{ label: "gemini-1.5-pro", value: "gemini-1.5-pro" },
|
|
15555
15556
|
{ label: "gemini-1.5-flash", value: "gemini-1.5-flash" }
|
|
15556
15557
|
];
|
|
15557
|
-
const result = await
|
|
15558
|
+
const result = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
15558
15559
|
title: "Select a model",
|
|
15559
15560
|
options: modelChoices
|
|
15560
15561
|
});
|
|
@@ -15600,7 +15601,7 @@ ${selectedProvider} is not configured yet. Let's set it up!
|
|
|
15600
15601
|
value: name
|
|
15601
15602
|
}));
|
|
15602
15603
|
const currentIndex = models.indexOf(currentModel);
|
|
15603
|
-
const result = await
|
|
15604
|
+
const result = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
15604
15605
|
title: "Select a model",
|
|
15605
15606
|
options,
|
|
15606
15607
|
initialIndex: currentIndex >= 0 ? currentIndex : 0
|
|
@@ -15616,7 +15617,7 @@ ${selectedProvider} is not configured yet. Let's set it up!
|
|
|
15616
15617
|
} catch (e91) {
|
|
15617
15618
|
}
|
|
15618
15619
|
}
|
|
15619
|
-
const model = await
|
|
15620
|
+
const model = await _chunkXBUMKEFNcjs.showInput.call(void 0, {
|
|
15620
15621
|
title: "Enter the model ID to use",
|
|
15621
15622
|
defaultValue: currentModel
|
|
15622
15623
|
});
|
|
@@ -15650,7 +15651,7 @@ ${providerName} Settings`));
|
|
|
15650
15651
|
{ label: "Change API key only", value: "apiKey" },
|
|
15651
15652
|
{ label: "Change both model and API key", value: "both" }
|
|
15652
15653
|
];
|
|
15653
|
-
const actionResult = await
|
|
15654
|
+
const actionResult = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
15654
15655
|
title: "What would you like to change?",
|
|
15655
15656
|
options: actionOptions
|
|
15656
15657
|
});
|
|
@@ -15671,7 +15672,7 @@ ${providerName} Settings`));
|
|
|
15671
15672
|
console.log(_chalk2.default.gray(`
|
|
15672
15673
|
Get your API key at: ${keyUrl}
|
|
15673
15674
|
`));
|
|
15674
|
-
const apiKey = await
|
|
15675
|
+
const apiKey = await _chunkXBUMKEFNcjs.showPassword.call(void 0, {
|
|
15675
15676
|
title: `Enter your ${providerName} API key`,
|
|
15676
15677
|
validate: (val) => {
|
|
15677
15678
|
if (!_optionalChain([val, 'optionalAccess', _352 => _352.trim, 'call', _353 => _353()])) return "API key is required";
|
|
@@ -15702,7 +15703,7 @@ Get your API key at: ${keyUrl}
|
|
|
15702
15703
|
value: name
|
|
15703
15704
|
}));
|
|
15704
15705
|
const currentIndex = Math.max(0, models.indexOf(currentModel));
|
|
15705
|
-
const result = await
|
|
15706
|
+
const result = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
15706
15707
|
title: "Select a model",
|
|
15707
15708
|
options: modelOptions,
|
|
15708
15709
|
initialIndex: currentIndex
|
|
@@ -15719,7 +15720,7 @@ Get your API key at: ${keyUrl}
|
|
|
15719
15720
|
value: name
|
|
15720
15721
|
}));
|
|
15721
15722
|
const currentIndex = Math.max(0, models.indexOf(currentModel));
|
|
15722
|
-
const result = await
|
|
15723
|
+
const result = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
15723
15724
|
title: "Select a model",
|
|
15724
15725
|
options: modelOptions,
|
|
15725
15726
|
initialIndex: currentIndex
|
|
@@ -15730,7 +15731,7 @@ Get your API key at: ${keyUrl}
|
|
|
15730
15731
|
}
|
|
15731
15732
|
newModel = result.value;
|
|
15732
15733
|
} else {
|
|
15733
|
-
const model = await
|
|
15734
|
+
const model = await _chunkXBUMKEFNcjs.showInput.call(void 0, {
|
|
15734
15735
|
title: "Enter the model ID",
|
|
15735
15736
|
defaultValue: currentModel || "anthropic/claude-sonnet-4-20250514"
|
|
15736
15737
|
});
|
|
@@ -16045,10 +16046,10 @@ var AutohandAgent = class {
|
|
|
16045
16046
|
});
|
|
16046
16047
|
}
|
|
16047
16048
|
});
|
|
16048
|
-
this.errorLogger = new ErrorLogger(
|
|
16049
|
+
this.errorLogger = new ErrorLogger(_chunkMETF3I6Wcjs.package_default.version);
|
|
16049
16050
|
this.feedbackManager = new FeedbackManager({
|
|
16050
16051
|
apiBaseUrl: _optionalChain([runtime, 'access', _368 => _368.config, 'access', _369 => _369.api, 'optionalAccess', _370 => _370.baseUrl]) || "https://api.autohand.ai",
|
|
16051
|
-
cliVersion:
|
|
16052
|
+
cliVersion: _chunkMETF3I6Wcjs.package_default.version
|
|
16052
16053
|
});
|
|
16053
16054
|
this.skillsRegistry = new (0, _chunkWOGJXDBUcjs.SkillsRegistry)(_chunkGIZL57FEcjs.AUTOHAND_PATHS.skills);
|
|
16054
16055
|
this.telemetryManager = new TelemetryManager({
|
|
@@ -16284,7 +16285,7 @@ var AutohandAgent = class {
|
|
|
16284
16285
|
// Non-interactive mode (RPC/ACP) — guards interactive commands
|
|
16285
16286
|
isNonInteractive: runtime.isRpcMode === true
|
|
16286
16287
|
};
|
|
16287
|
-
this.slashHandler = new SlashCommandHandler(slashContext,
|
|
16288
|
+
this.slashHandler = new SlashCommandHandler(slashContext, _chunkAXP53LTUcjs.SLASH_COMMANDS);
|
|
16288
16289
|
}
|
|
16289
16290
|
/**
|
|
16290
16291
|
* Register discovered MCP tools with the tool manager so the LLM can use them.
|
|
@@ -16706,7 +16707,7 @@ Fatal: "${errorMessage}" repeated ${this.consecutiveErrorCount} times. Exiting.`
|
|
|
16706
16707
|
const statusLine = this.formatStatusLine();
|
|
16707
16708
|
const input = await readInstruction(
|
|
16708
16709
|
workspaceFiles,
|
|
16709
|
-
|
|
16710
|
+
_chunkAXP53LTUcjs.SLASH_COMMANDS,
|
|
16710
16711
|
statusLine,
|
|
16711
16712
|
{},
|
|
16712
16713
|
// default IO
|
|
@@ -16773,7 +16774,7 @@ Fatal: "${errorMessage}" repeated ${this.consecutiveErrorCount} times. Exiting.`
|
|
|
16773
16774
|
{ label: "Project level (.autohand/memory/) - specific to this project", value: "project" },
|
|
16774
16775
|
{ label: "User level (~/.autohand/memory/) - available in all projects", value: "user" }
|
|
16775
16776
|
];
|
|
16776
|
-
const levelResult = await
|
|
16777
|
+
const levelResult = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
16777
16778
|
title: "Where should this memory be stored?",
|
|
16778
16779
|
options: levelOptions
|
|
16779
16780
|
});
|
|
@@ -16786,7 +16787,7 @@ Fatal: "${errorMessage}" repeated ${this.consecutiveErrorCount} times. Exiting.`
|
|
|
16786
16787
|
console.log();
|
|
16787
16788
|
console.log(_chalk2.default.yellow("Found similar existing memory:"));
|
|
16788
16789
|
console.log(_chalk2.default.gray(` "${similar.entry.content}"`));
|
|
16789
|
-
const shouldUpdate = await
|
|
16790
|
+
const shouldUpdate = await _chunkXBUMKEFNcjs.showConfirm.call(void 0, {
|
|
16790
16791
|
title: "Update the existing memory instead of creating a new one?"
|
|
16791
16792
|
});
|
|
16792
16793
|
if (shouldUpdate) {
|
|
@@ -16837,7 +16838,7 @@ Fatal: "${errorMessage}" repeated ${this.consecutiveErrorCount} times. Exiting.`
|
|
|
16837
16838
|
{ label: "Require approval before risky actions", value: "confirm" },
|
|
16838
16839
|
{ label: "Auto-confirm actions (dangerous)", value: "prompt" }
|
|
16839
16840
|
];
|
|
16840
|
-
const result = await
|
|
16841
|
+
const result = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
16841
16842
|
title: "Choose confirmation mode",
|
|
16842
16843
|
options,
|
|
16843
16844
|
initialIndex: this.runtime.options.yes ? 1 : 0
|
|
@@ -18021,7 +18022,7 @@ ${toolSignatures}
|
|
|
18021
18022
|
}
|
|
18022
18023
|
}
|
|
18023
18024
|
let basePrompt = parts.join("\n");
|
|
18024
|
-
basePrompt =
|
|
18025
|
+
basePrompt = _chunk2U5HFVROcjs.injectLocaleIntoPrompt.call(void 0, basePrompt, _chunk2U5HFVROcjs.getCurrentLocale.call(void 0, ));
|
|
18025
18026
|
if (this.runtime.options.appendSysPrompt) {
|
|
18026
18027
|
try {
|
|
18027
18028
|
const appendContent = await resolvePromptValue(this.runtime.options.appendSysPrompt, {
|
|
@@ -18965,7 +18966,7 @@ ${_chalk2.default.gray("\u203A")} ${inputPreview}${_chalk2.default.gray("\u258B"
|
|
|
18965
18966
|
const queueStatus = queueCount > 0 ? ` \xB7 ${queueCount} queued` : "";
|
|
18966
18967
|
const planModeManager = _chunkULQ6MDSJcjs.getPlanModeManager.call(void 0, );
|
|
18967
18968
|
const planIndicator = planModeManager.isEnabled() ? _chalk2.default.bgCyan.black.bold(" PLAN ") + " " : "";
|
|
18968
|
-
return `${planIndicator}${percent}% context left \xB7 ${
|
|
18969
|
+
return `${planIndicator}${percent}% context left \xB7 ${_chunk2U5HFVROcjs.t.call(void 0, "ui.commandHint")}${queueStatus}`;
|
|
18969
18970
|
}
|
|
18970
18971
|
async resetConversationContext() {
|
|
18971
18972
|
const systemPrompt = await this.buildSystemPrompt();
|
|
@@ -21454,7 +21455,7 @@ async function runRpcMode(options) {
|
|
|
21454
21455
|
if (!stats.isDirectory()) {
|
|
21455
21456
|
throw new Error(`Additional path is not a directory: ${dir}`);
|
|
21456
21457
|
}
|
|
21457
|
-
const addDirSafetyCheck =
|
|
21458
|
+
const addDirSafetyCheck = _chunkZLOTP56Bcjs.checkWorkspaceSafety.call(void 0, resolvedDir);
|
|
21458
21459
|
if (!addDirSafetyCheck.safe) {
|
|
21459
21460
|
throw new Error(`Unsafe additional directory: ${dir} - ${addDirSafetyCheck.reason}`);
|
|
21460
21461
|
}
|
|
@@ -22147,7 +22148,7 @@ var AutohandAcpAdapter = class {
|
|
|
22147
22148
|
agentInfo: {
|
|
22148
22149
|
name: "autohand-cli",
|
|
22149
22150
|
title: "Autohand CLI",
|
|
22150
|
-
version:
|
|
22151
|
+
version: _chunkMETF3I6Wcjs.package_default.version
|
|
22151
22152
|
}
|
|
22152
22153
|
};
|
|
22153
22154
|
}
|
|
@@ -22692,7 +22693,7 @@ var SetupWizard = class {
|
|
|
22692
22693
|
if (hasValidExistingProvider) {
|
|
22693
22694
|
initialIndex = providers.indexOf(this.existingConfig.provider);
|
|
22694
22695
|
}
|
|
22695
|
-
const result = await
|
|
22696
|
+
const result = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
22696
22697
|
title: "Which LLM provider would you like to use?",
|
|
22697
22698
|
options,
|
|
22698
22699
|
initialIndex: initialIndex >= 0 ? initialIndex : 0
|
|
@@ -22723,7 +22724,7 @@ var SetupWizard = class {
|
|
|
22723
22724
|
this.state.currentStep = "apiKey";
|
|
22724
22725
|
const existingKey = this.getExistingApiKey(provider);
|
|
22725
22726
|
if (existingKey && existingKey !== "replace-me") {
|
|
22726
|
-
const useExisting = await
|
|
22727
|
+
const useExisting = await _chunkXBUMKEFNcjs.showConfirm.call(void 0, {
|
|
22727
22728
|
title: `Use existing ${this.getProviderDisplayName(provider)} API key? (ends with ...${existingKey.slice(-4)})`,
|
|
22728
22729
|
defaultValue: true
|
|
22729
22730
|
});
|
|
@@ -22735,7 +22736,7 @@ var SetupWizard = class {
|
|
|
22735
22736
|
console.log(_chalk2.default.gray(`
|
|
22736
22737
|
Get your API key at: ${this.getApiKeyUrl(provider)}
|
|
22737
22738
|
`));
|
|
22738
|
-
const apiKey = await
|
|
22739
|
+
const apiKey = await _chunkXBUMKEFNcjs.showPassword.call(void 0, {
|
|
22739
22740
|
title: `Enter your ${this.getProviderDisplayName(provider)} API key`,
|
|
22740
22741
|
validate: (val) => {
|
|
22741
22742
|
if (!_optionalChain([val, 'optionalAccess', _762 => _762.trim, 'call', _763 => _763()])) return "API key is required";
|
|
@@ -22755,7 +22756,7 @@ var SetupWizard = class {
|
|
|
22755
22756
|
async promptModel(provider) {
|
|
22756
22757
|
this.state.currentStep = "model";
|
|
22757
22758
|
const defaultModel = this.getDefaultModel(provider);
|
|
22758
|
-
const model = await
|
|
22759
|
+
const model = await _chunkXBUMKEFNcjs.showInput.call(void 0, {
|
|
22759
22760
|
title: "Enter model ID",
|
|
22760
22761
|
defaultValue: defaultModel,
|
|
22761
22762
|
validate: (val) => {
|
|
@@ -22791,7 +22792,7 @@ var SetupWizard = class {
|
|
|
22791
22792
|
console.log(_chalk2.default.gray(" - API keys or credentials"));
|
|
22792
22793
|
console.log(_chalk2.default.gray(" - Personal information"));
|
|
22793
22794
|
console.log();
|
|
22794
|
-
const telemetryEnabled = await
|
|
22795
|
+
const telemetryEnabled = await _chunkXBUMKEFNcjs.showConfirm.call(void 0, {
|
|
22795
22796
|
title: "Share anonymous usage data to help improve Autohand?",
|
|
22796
22797
|
defaultValue: true
|
|
22797
22798
|
});
|
|
@@ -22807,7 +22808,7 @@ var SetupWizard = class {
|
|
|
22807
22808
|
*/
|
|
22808
22809
|
async promptPreferences() {
|
|
22809
22810
|
this.state.currentStep = "preferences";
|
|
22810
|
-
const configurePrefs = await
|
|
22811
|
+
const configurePrefs = await _chunkXBUMKEFNcjs.showConfirm.call(void 0, {
|
|
22811
22812
|
title: "Would you like to configure additional preferences? (theme, auto-confirm)",
|
|
22812
22813
|
defaultValue: false
|
|
22813
22814
|
});
|
|
@@ -22828,16 +22829,16 @@ var SetupWizard = class {
|
|
|
22828
22829
|
value: t2,
|
|
22829
22830
|
description: themeDescriptions[t2]
|
|
22830
22831
|
}));
|
|
22831
|
-
const themeResult = await
|
|
22832
|
+
const themeResult = await _chunkXBUMKEFNcjs.showModal.call(void 0, {
|
|
22832
22833
|
title: "Select a theme",
|
|
22833
22834
|
options: themeOptions
|
|
22834
22835
|
});
|
|
22835
22836
|
const theme = _optionalChain([themeResult, 'optionalAccess', _766 => _766.value]) || "dark";
|
|
22836
|
-
const autoConfirm = await
|
|
22837
|
+
const autoConfirm = await _chunkXBUMKEFNcjs.showConfirm.call(void 0, {
|
|
22837
22838
|
title: "Auto-confirm non-destructive actions?",
|
|
22838
22839
|
defaultValue: false
|
|
22839
22840
|
});
|
|
22840
|
-
const checkForUpdates2 = await
|
|
22841
|
+
const checkForUpdates2 = await _chunkXBUMKEFNcjs.showConfirm.call(void 0, {
|
|
22841
22842
|
title: "Check for updates on startup?",
|
|
22842
22843
|
defaultValue: true
|
|
22843
22844
|
});
|
|
@@ -22851,7 +22852,7 @@ var SetupWizard = class {
|
|
|
22851
22852
|
const agentsPath = _path.join.call(void 0, this.workspaceRoot, "AGENTS.md");
|
|
22852
22853
|
const exists = await _fsextra.pathExists.call(void 0, agentsPath);
|
|
22853
22854
|
if (exists) {
|
|
22854
|
-
const overwrite = await
|
|
22855
|
+
const overwrite = await _chunkXBUMKEFNcjs.showConfirm.call(void 0, {
|
|
22855
22856
|
title: "AGENTS.md already exists. Would you like to regenerate it?",
|
|
22856
22857
|
defaultValue: false
|
|
22857
22858
|
});
|
|
@@ -22869,7 +22870,7 @@ var SetupWizard = class {
|
|
|
22869
22870
|
console.log(_chalk2.default.gray(" AGENTS.md helps Autohand understand your project better."));
|
|
22870
22871
|
console.log(_chalk2.default.gray(" It contains instructions specific to your codebase."));
|
|
22871
22872
|
console.log();
|
|
22872
|
-
const createAgents = await
|
|
22873
|
+
const createAgents = await _chunkXBUMKEFNcjs.showConfirm.call(void 0, {
|
|
22873
22874
|
title: "Generate AGENTS.md based on your project?",
|
|
22874
22875
|
defaultValue: true
|
|
22875
22876
|
});
|
|
@@ -23061,7 +23062,7 @@ var SetupWizard = class {
|
|
|
23061
23062
|
process.title = "autohand";
|
|
23062
23063
|
function getGitCommit() {
|
|
23063
23064
|
if (true) {
|
|
23064
|
-
return "
|
|
23065
|
+
return "b38d518";
|
|
23065
23066
|
}
|
|
23066
23067
|
try {
|
|
23067
23068
|
return _child_process.execSync.call(void 0, "git rev-parse --short HEAD", { encoding: "utf8", stdio: ["pipe", "pipe", "ignore"] }).trim();
|
|
@@ -23071,7 +23072,7 @@ function getGitCommit() {
|
|
|
23071
23072
|
}
|
|
23072
23073
|
function getVersionString() {
|
|
23073
23074
|
const commit = getGitCommit();
|
|
23074
|
-
return `${
|
|
23075
|
+
return `${_chunkMETF3I6Wcjs.package_default.version} (${commit})`;
|
|
23075
23076
|
}
|
|
23076
23077
|
async function validateAuthOnStartup(config) {
|
|
23077
23078
|
if (!_optionalChain([config, 'access', _774 => _774.auth, 'optionalAccess', _775 => _775.token])) {
|
|
@@ -23140,20 +23141,20 @@ program.name("autohand").description("Autonomous LLM-powered coding agent CLI").
|
|
|
23140
23141
|
return;
|
|
23141
23142
|
}
|
|
23142
23143
|
if (opts.login) {
|
|
23143
|
-
const { login } = await Promise.resolve().then(() => _interopRequireWildcard(require("./login-
|
|
23144
|
+
const { login } = await Promise.resolve().then(() => _interopRequireWildcard(require("./login-ISWYYBXP.cjs")));
|
|
23144
23145
|
const config = await _chunkRJP3SZ7Qcjs.loadConfig.call(void 0, opts.config);
|
|
23145
23146
|
await login({ config });
|
|
23146
23147
|
process.exit(0);
|
|
23147
23148
|
}
|
|
23148
23149
|
if (opts.logout) {
|
|
23149
|
-
const { logout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./logout-
|
|
23150
|
+
const { logout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./logout-3EKZM5J3.cjs")));
|
|
23150
23151
|
const config = await _chunkRJP3SZ7Qcjs.loadConfig.call(void 0, opts.config);
|
|
23151
23152
|
await logout({ config });
|
|
23152
23153
|
process.exit(0);
|
|
23153
23154
|
}
|
|
23154
23155
|
if (opts.about) {
|
|
23155
|
-
const { initI18n: initI18n2, detectLocale: detectLocale2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./i18n-
|
|
23156
|
-
const { about } = await Promise.resolve().then(() => _interopRequireWildcard(require("./about-
|
|
23156
|
+
const { initI18n: initI18n2, detectLocale: detectLocale2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./i18n-X2IU2EZD.cjs")));
|
|
23157
|
+
const { about } = await Promise.resolve().then(() => _interopRequireWildcard(require("./about-BIZH6I2U.cjs")));
|
|
23157
23158
|
const { locale } = detectLocale2();
|
|
23158
23159
|
await initI18n2(locale);
|
|
23159
23160
|
await about();
|
|
@@ -23210,13 +23211,13 @@ program.command("resume <sessionId>").description("Resume a previous session").o
|
|
|
23210
23211
|
await runCLI({ ...opts, resumeSessionId: sessionId });
|
|
23211
23212
|
});
|
|
23212
23213
|
program.command("login").description("Sign in to your Autohand account").action(async () => {
|
|
23213
|
-
const { login } = await Promise.resolve().then(() => _interopRequireWildcard(require("./login-
|
|
23214
|
+
const { login } = await Promise.resolve().then(() => _interopRequireWildcard(require("./login-ISWYYBXP.cjs")));
|
|
23214
23215
|
const config = await _chunkRJP3SZ7Qcjs.loadConfig.call(void 0, );
|
|
23215
23216
|
await login({ config });
|
|
23216
23217
|
process.exit(0);
|
|
23217
23218
|
});
|
|
23218
23219
|
program.command("logout").description("Sign out of your Autohand account").action(async () => {
|
|
23219
|
-
const { logout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./logout-
|
|
23220
|
+
const { logout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./logout-3EKZM5J3.cjs")));
|
|
23220
23221
|
const config = await _chunkRJP3SZ7Qcjs.loadConfig.call(void 0, );
|
|
23221
23222
|
await logout({ config });
|
|
23222
23223
|
process.exit(0);
|
|
@@ -23225,11 +23226,11 @@ async function runCLI(options) {
|
|
|
23225
23226
|
try {
|
|
23226
23227
|
let config = await _chunkRJP3SZ7Qcjs.loadConfig.call(void 0, options.config);
|
|
23227
23228
|
const workspaceRoot = _chunkRJP3SZ7Qcjs.resolveWorkspaceRoot.call(void 0, config, options.path);
|
|
23228
|
-
const { locale: detectedLocale } =
|
|
23229
|
+
const { locale: detectedLocale } = _chunk2U5HFVROcjs.detectLocale.call(void 0, {
|
|
23229
23230
|
cliOverride: options.displayLanguage,
|
|
23230
23231
|
configLocale: _optionalChain([config, 'access', _780 => _780.ui, 'optionalAccess', _781 => _781.locale])
|
|
23231
23232
|
});
|
|
23232
|
-
await
|
|
23233
|
+
await _chunk2U5HFVROcjs.initI18n.call(void 0, detectedLocale);
|
|
23233
23234
|
const providerName = _nullishCoalesce(config.provider, () => ( "openrouter"));
|
|
23234
23235
|
const providerConfig = _chunkRJP3SZ7Qcjs.getProviderConfig.call(void 0, config, providerName);
|
|
23235
23236
|
if (!providerConfig) {
|
|
@@ -23245,9 +23246,9 @@ async function runCLI(options) {
|
|
|
23245
23246
|
console.log();
|
|
23246
23247
|
}
|
|
23247
23248
|
}
|
|
23248
|
-
const safetyCheck =
|
|
23249
|
+
const safetyCheck = _chunkZLOTP56Bcjs.checkWorkspaceSafety.call(void 0, workspaceRoot);
|
|
23249
23250
|
if (!safetyCheck.safe) {
|
|
23250
|
-
|
|
23251
|
+
_chunkZLOTP56Bcjs.printDangerousWorkspaceWarning.call(void 0, workspaceRoot, safetyCheck);
|
|
23251
23252
|
process.exit(1);
|
|
23252
23253
|
}
|
|
23253
23254
|
const additionalDirs = [];
|
|
@@ -23263,7 +23264,7 @@ async function runCLI(options) {
|
|
|
23263
23264
|
console.error(_chalk2.default.red(`Error: Additional path is not a directory: ${dir}`));
|
|
23264
23265
|
process.exit(1);
|
|
23265
23266
|
}
|
|
23266
|
-
const addDirSafetyCheck =
|
|
23267
|
+
const addDirSafetyCheck = _chunkZLOTP56Bcjs.checkWorkspaceSafety.call(void 0, resolvedDir);
|
|
23267
23268
|
if (!addDirSafetyCheck.safe) {
|
|
23268
23269
|
console.error(_chalk2.default.red(`Error: Unsafe additional directory: ${dir}`));
|
|
23269
23270
|
console.error(_chalk2.default.yellow(` ${addDirSafetyCheck.reason}`));
|
|
@@ -23280,7 +23281,7 @@ async function runCLI(options) {
|
|
|
23280
23281
|
};
|
|
23281
23282
|
printBanner();
|
|
23282
23283
|
initPingService({
|
|
23283
|
-
cliVersion:
|
|
23284
|
+
cliVersion: _chunkMETF3I6Wcjs.package_default.version,
|
|
23284
23285
|
clientType: "cli"
|
|
23285
23286
|
});
|
|
23286
23287
|
startPingService();
|
|
@@ -23291,7 +23292,7 @@ async function runCLI(options) {
|
|
|
23291
23292
|
printWelcome(runtime, void 0, null);
|
|
23292
23293
|
(async () => {
|
|
23293
23294
|
try {
|
|
23294
|
-
const versionCheckPromise = _optionalChain([config, 'access', _782 => _782.ui, 'optionalAccess', _783 => _783.checkForUpdates]) !== false ? checkForUpdates(
|
|
23295
|
+
const versionCheckPromise = _optionalChain([config, 'access', _782 => _782.ui, 'optionalAccess', _783 => _783.checkForUpdates]) !== false ? checkForUpdates(_chunkMETF3I6Wcjs.package_default.version, {
|
|
23295
23296
|
checkIntervalHours: _nullishCoalesce(_optionalChain([config, 'access', _784 => _784.ui, 'optionalAccess', _785 => _785.updateCheckInterval]), () => ( 24))
|
|
23296
23297
|
}) : Promise.resolve(null);
|
|
23297
23298
|
const [authUser, , checkResults] = await Promise.all([
|
|
@@ -23308,7 +23309,7 @@ async function runCLI(options) {
|
|
|
23308
23309
|
if (syncEnabled) {
|
|
23309
23310
|
try {
|
|
23310
23311
|
const { createSyncService, DEFAULT_SYNC_CONFIG } = await Promise.resolve().then(() => _interopRequireWildcard(require("./sync-6M3WRKMH.cjs")));
|
|
23311
|
-
const { setSyncService } = await Promise.resolve().then(() => _interopRequireWildcard(require("./sync-
|
|
23312
|
+
const { setSyncService } = await Promise.resolve().then(() => _interopRequireWildcard(require("./sync-CQNQDNTJ.cjs")));
|
|
23312
23313
|
const syncService = createSyncService({
|
|
23313
23314
|
authToken: config.auth.token,
|
|
23314
23315
|
userId: authUser.id,
|
|
@@ -23363,7 +23364,7 @@ async function runCLI(options) {
|
|
|
23363
23364
|
return;
|
|
23364
23365
|
}
|
|
23365
23366
|
const searchConfig = _nullishCoalesce(config.search, () => ( {}));
|
|
23366
|
-
|
|
23367
|
+
_chunkEOGKE5GDcjs.configureSearch.call(void 0, {
|
|
23367
23368
|
provider: _nullishCoalesce(_nullishCoalesce(options.searchEngine, () => ( searchConfig.provider)), () => ( "duckduckgo")),
|
|
23368
23369
|
braveApiKey: _nullishCoalesce(searchConfig.braveApiKey, () => ( process.env.BRAVE_SEARCH_API_KEY)),
|
|
23369
23370
|
parallelApiKey: _nullishCoalesce(searchConfig.parallelApiKey, () => ( process.env.PARALLEL_API_KEY))
|
|
@@ -23445,14 +23446,14 @@ function printWelcome(runtime, authUser, versionCheck) {
|
|
|
23445
23446
|
async function runSkillInstall(opts) {
|
|
23446
23447
|
const config = await _chunkRJP3SZ7Qcjs.loadConfig.call(void 0, opts.config);
|
|
23447
23448
|
const workspaceRoot = _chunkRJP3SZ7Qcjs.resolveWorkspaceRoot.call(void 0, config, opts.path);
|
|
23448
|
-
const safetyCheck =
|
|
23449
|
+
const safetyCheck = _chunkZLOTP56Bcjs.checkWorkspaceSafety.call(void 0, workspaceRoot);
|
|
23449
23450
|
if (!safetyCheck.safe) {
|
|
23450
|
-
|
|
23451
|
+
_chunkZLOTP56Bcjs.printDangerousWorkspaceWarning.call(void 0, workspaceRoot, safetyCheck);
|
|
23451
23452
|
process.exit(1);
|
|
23452
23453
|
}
|
|
23453
23454
|
const { SkillsRegistry: SkillsRegistry2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./SkillsRegistry-6ZFOCT25.cjs")));
|
|
23454
23455
|
const { AUTOHAND_PATHS: AUTOHAND_PATHS2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./constants-RBQTR32A.cjs")));
|
|
23455
|
-
const { skillsInstall } = await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-install-
|
|
23456
|
+
const { skillsInstall } = await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-install-IKJZN4G2.cjs")));
|
|
23456
23457
|
const skillsRegistry = new SkillsRegistry2(AUTOHAND_PATHS2.skills);
|
|
23457
23458
|
await skillsRegistry.initialize();
|
|
23458
23459
|
await skillsRegistry.setWorkspace(workspaceRoot);
|
|
@@ -23465,9 +23466,9 @@ async function runSkillInstall(opts) {
|
|
|
23465
23466
|
async function displayPermissions(opts) {
|
|
23466
23467
|
const config = await _chunkRJP3SZ7Qcjs.loadConfig.call(void 0, opts.config);
|
|
23467
23468
|
const workspaceRoot = _chunkRJP3SZ7Qcjs.resolveWorkspaceRoot.call(void 0, config, opts.path);
|
|
23468
|
-
const safetyCheck =
|
|
23469
|
+
const safetyCheck = _chunkZLOTP56Bcjs.checkWorkspaceSafety.call(void 0, workspaceRoot);
|
|
23469
23470
|
if (!safetyCheck.safe) {
|
|
23470
|
-
|
|
23471
|
+
_chunkZLOTP56Bcjs.printDangerousWorkspaceWarning.call(void 0, workspaceRoot, safetyCheck);
|
|
23471
23472
|
process.exit(1);
|
|
23472
23473
|
}
|
|
23473
23474
|
const { PermissionManager: PermissionManager2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./PermissionManager-HG6W2DGU.cjs")));
|
|
@@ -23537,9 +23538,9 @@ async function runPatchMode(opts) {
|
|
|
23537
23538
|
const { generateUnifiedPatch, formatChangeSummary } = await Promise.resolve().then(() => _interopRequireWildcard(require("./patch-J32X2QQP.cjs")));
|
|
23538
23539
|
const config = await _chunkRJP3SZ7Qcjs.loadConfig.call(void 0, opts.config);
|
|
23539
23540
|
const workspaceRoot = _chunkRJP3SZ7Qcjs.resolveWorkspaceRoot.call(void 0, config, opts.path);
|
|
23540
|
-
const safetyCheck =
|
|
23541
|
+
const safetyCheck = _chunkZLOTP56Bcjs.checkWorkspaceSafety.call(void 0, workspaceRoot);
|
|
23541
23542
|
if (!safetyCheck.safe) {
|
|
23542
|
-
|
|
23543
|
+
_chunkZLOTP56Bcjs.printDangerousWorkspaceWarning.call(void 0, workspaceRoot, safetyCheck);
|
|
23543
23544
|
process.exit(1);
|
|
23544
23545
|
}
|
|
23545
23546
|
const additionalDirs = [];
|
|
@@ -23555,7 +23556,7 @@ async function runPatchMode(opts) {
|
|
|
23555
23556
|
console.error(_chalk2.default.red(`Error: Additional path is not a directory: ${dir}`));
|
|
23556
23557
|
process.exit(1);
|
|
23557
23558
|
}
|
|
23558
|
-
const addDirSafetyCheck =
|
|
23559
|
+
const addDirSafetyCheck = _chunkZLOTP56Bcjs.checkWorkspaceSafety.call(void 0, resolvedDir);
|
|
23559
23560
|
if (!addDirSafetyCheck.safe) {
|
|
23560
23561
|
console.error(_chalk2.default.red(`Error: Unsafe additional directory: ${dir}`));
|
|
23561
23562
|
console.error(_chalk2.default.yellow(` ${addDirSafetyCheck.reason}`));
|
|
@@ -23589,7 +23590,7 @@ async function runPatchMode(opts) {
|
|
|
23589
23590
|
};
|
|
23590
23591
|
console.error(_chalk2.default.cyan("Patch Mode: Changes will be captured without modifying files\n"));
|
|
23591
23592
|
const searchConfig = _nullishCoalesce(config.search, () => ( {}));
|
|
23592
|
-
|
|
23593
|
+
_chunkEOGKE5GDcjs.configureSearch.call(void 0, {
|
|
23593
23594
|
provider: _nullishCoalesce(searchConfig.provider, () => ( "duckduckgo")),
|
|
23594
23595
|
braveApiKey: _nullishCoalesce(searchConfig.braveApiKey, () => ( process.env.BRAVE_SEARCH_API_KEY)),
|
|
23595
23596
|
parallelApiKey: _nullishCoalesce(searchConfig.parallelApiKey, () => ( process.env.PARALLEL_API_KEY))
|
|
@@ -23629,9 +23630,9 @@ async function runAutoMode(opts) {
|
|
|
23629
23630
|
}
|
|
23630
23631
|
const config = await _chunkRJP3SZ7Qcjs.loadConfig.call(void 0, opts.config);
|
|
23631
23632
|
const originalWorkspaceRoot = _chunkRJP3SZ7Qcjs.resolveWorkspaceRoot.call(void 0, config, opts.path);
|
|
23632
|
-
const safetyCheck =
|
|
23633
|
+
const safetyCheck = _chunkZLOTP56Bcjs.checkWorkspaceSafety.call(void 0, originalWorkspaceRoot);
|
|
23633
23634
|
if (!safetyCheck.safe) {
|
|
23634
|
-
|
|
23635
|
+
_chunkZLOTP56Bcjs.printDangerousWorkspaceWarning.call(void 0, originalWorkspaceRoot, safetyCheck);
|
|
23635
23636
|
process.exit(1);
|
|
23636
23637
|
}
|
|
23637
23638
|
const additionalDirs = [];
|
|
@@ -23647,7 +23648,7 @@ async function runAutoMode(opts) {
|
|
|
23647
23648
|
console.error(_chalk2.default.red(`Error: Additional path is not a directory: ${dir}`));
|
|
23648
23649
|
process.exit(1);
|
|
23649
23650
|
}
|
|
23650
|
-
const addDirSafetyCheck =
|
|
23651
|
+
const addDirSafetyCheck = _chunkZLOTP56Bcjs.checkWorkspaceSafety.call(void 0, resolvedDir);
|
|
23651
23652
|
if (!addDirSafetyCheck.safe) {
|
|
23652
23653
|
console.error(_chalk2.default.red(`Error: Unsafe additional directory: ${dir}`));
|
|
23653
23654
|
console.error(_chalk2.default.yellow(` ${addDirSafetyCheck.reason}`));
|
|
@@ -23742,7 +23743,7 @@ async function runAutoMode(opts) {
|
|
|
23742
23743
|
additionalDirs: additionalDirs.length > 0 ? additionalDirs : void 0
|
|
23743
23744
|
};
|
|
23744
23745
|
const searchConfig = _nullishCoalesce(config.search, () => ( {}));
|
|
23745
|
-
|
|
23746
|
+
_chunkEOGKE5GDcjs.configureSearch.call(void 0, {
|
|
23746
23747
|
provider: _nullishCoalesce(searchConfig.provider, () => ( "duckduckgo")),
|
|
23747
23748
|
braveApiKey: _nullishCoalesce(searchConfig.braveApiKey, () => ( process.env.BRAVE_SEARCH_API_KEY)),
|
|
23748
23749
|
parallelApiKey: _nullishCoalesce(searchConfig.parallelApiKey, () => ( process.env.PARALLEL_API_KEY))
|