autohand-cli 0.7.10 → 0.7.12
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-7VIDF3B7.cjs +11 -0
- package/dist/{about-VDR3SIHS.js → about-YO7NGBX6.js} +3 -3
- package/dist/add-dir-7QE2YJ7H.cjs +9 -0
- package/dist/{add-dir-RP2BL3JW.js → add-dir-UBYMJTDI.js} +2 -2
- package/dist/{agents-JQ2PHCQB.js → agents-5MAHZPHB.js} +2 -2
- package/dist/agents-UDXO2SOD.cjs +10 -0
- package/dist/agents-new-I72C5JID.js +13 -0
- package/dist/agents-new-VPAU4JNV.cjs +13 -0
- package/dist/{automode-XOF3U3OB.js → automode-6IYDTXMU.js} +2 -2
- package/dist/automode-VVP2XR6T.cjs +9 -0
- package/dist/{chunk-PA2H2263.cjs → chunk-25K6ONCQ.cjs} +2 -2
- package/dist/{chunk-7QNW24ZT.js → chunk-2VVKAYOY.js} +2 -2
- package/dist/{chunk-E7YL3AHT.js → chunk-2XPQS4OZ.js} +2 -2
- package/dist/{chunk-ATR3RORT.js → chunk-2ZV5EMF2.js} +2 -2
- package/dist/{chunk-QM7HZCQW.cjs → chunk-3CNRH36G.cjs} +4 -4
- package/dist/{chunk-LOXOD4IS.cjs → chunk-4BVRSVS2.cjs} +6 -2
- package/dist/{chunk-R7SDL3DJ.cjs → chunk-4V2FH5QE.cjs} +14 -14
- package/dist/{chunk-WD5ZF6HE.js → chunk-4YUFXZ36.js} +1 -1
- package/dist/{chunk-ANUQFV43.cjs → chunk-5E2XJK3O.cjs} +4 -4
- package/dist/{chunk-PYLR4J2D.js → chunk-5LJ6R7VO.js} +1 -1
- package/dist/{chunk-WJ276BIP.js → chunk-6M3J6LR3.js} +1 -1
- package/dist/{chunk-NRORJRD4.cjs → chunk-73EJJCTX.cjs} +2 -2
- package/dist/{chunk-MNCWB5F7.cjs → chunk-7QLGK2XE.cjs} +5 -5
- package/dist/{chunk-GLAE5K5W.js → chunk-A3G2BNQN.js} +1 -1
- package/dist/{chunk-5FZM7KLB.cjs → chunk-ALU2PTZB.cjs} +11 -11
- package/dist/{chunk-S5G7OEN2.cjs → chunk-BGKEM66R.cjs} +9 -9
- package/dist/{chunk-QC6IUDDJ.js → chunk-BKWJQUGG.js} +1 -1
- package/dist/{chunk-QRQ5EX7I.cjs → chunk-BOU24HF2.cjs} +6 -6
- package/dist/{chunk-C5SVIQG3.js → chunk-C4KK7YQM.js} +1 -1
- package/dist/{chunk-U23U52ZN.cjs → chunk-CNDQ3TW6.cjs} +6 -6
- package/dist/{chunk-WYLFLZ42.js → chunk-D445SWSH.js} +3 -3
- package/dist/{chunk-UET7BDX2.js → chunk-D7DIMN2J.js} +6 -2
- package/dist/{chunk-F3EIOVSQ.js → chunk-D7NR5BGM.js} +3 -3
- package/dist/{chunk-Y27LG4BQ.cjs → chunk-EFBQFSY6.cjs} +5 -5
- package/dist/{chunk-6P3K4YUW.js → chunk-ESU7N6NJ.js} +1 -1
- package/dist/{chunk-IPI3JXKP.js → chunk-FO3UXH53.js} +2 -2
- package/dist/chunk-FONQG5OC.cjs +209 -0
- package/dist/{chunk-DMPVI3YK.cjs → chunk-G6YDQTR2.cjs} +9 -9
- package/dist/{chunk-3DQSBW4B.cjs → chunk-GRFEUDX5.cjs} +6 -6
- package/dist/{chunk-BDIZGBDA.cjs → chunk-GV3JV6GI.cjs} +4 -4
- package/dist/{chunk-34OGUMRO.cjs → chunk-H2MWZF6E.cjs} +5 -5
- package/dist/{chunk-NF7RIHJK.js → chunk-HTRSDNPI.js} +1 -1
- package/dist/{chunk-WRJLBHWB.js → chunk-HZXG63KE.js} +1 -1
- package/dist/{chunk-AEYOIPHD.cjs → chunk-IN74JKZ2.cjs} +2 -2
- package/dist/{chunk-YVY27BJT.js → chunk-IO2BKMPU.js} +2 -2
- package/dist/{chunk-OKABWSWA.cjs → chunk-JEWRDSNA.cjs} +3 -3
- package/dist/{chunk-EAOEAQGF.cjs → chunk-KEAWYW5Y.cjs} +9 -9
- package/dist/{chunk-SA4JOV4F.cjs → chunk-LEXRXG3R.cjs} +3 -3
- package/dist/{chunk-OMEH2EVE.js → chunk-LWG6LJHL.js} +1 -1
- package/dist/{chunk-5Q3W4DEU.js → chunk-MKNKMPLY.js} +2 -2
- package/dist/{chunk-YMDLUTF2.js → chunk-MNTAIFXA.js} +1 -1
- package/dist/{chunk-WH5RW7DV.cjs → chunk-MVCB7ZQE.cjs} +21 -21
- package/dist/{chunk-46WX5IO2.cjs → chunk-NRDP3C3B.cjs} +17 -17
- package/dist/{chunk-BODVOW7B.js → chunk-PCM3OSSV.js} +2 -2
- package/dist/{chunk-C2E3GJEE.cjs → chunk-PDWOUNO7.cjs} +6 -6
- package/dist/{chunk-QU64XI5X.js → chunk-QBRO3XMP.js} +2 -2
- package/dist/{chunk-PSED4Z4X.cjs → chunk-R43FOIQH.cjs} +10 -10
- package/dist/{chunk-5BQ57AZC.cjs → chunk-R6MSNNMX.cjs} +7 -7
- package/dist/{chunk-5NZA4UB4.cjs → chunk-RONDHULN.cjs} +3 -3
- package/dist/{chunk-XLI7SHCH.js → chunk-RPE3TUKR.js} +1 -1
- package/dist/{chunk-NGBN2NGH.cjs → chunk-RSRVPJQC.cjs} +8 -8
- package/dist/{chunk-65GTO4QM.cjs → chunk-RXOLZ3BF.cjs} +3 -3
- package/dist/{chunk-B72CC4O6.js → chunk-SIQC4V4N.js} +1 -1
- package/dist/{chunk-3UNX56GC.cjs → chunk-SJLUPGYS.cjs} +12 -12
- package/dist/{chunk-BZ73ZQTE.cjs → chunk-TVFQ3N5M.cjs} +9 -9
- package/dist/{chunk-4ULBAYME.js → chunk-TXK5P6FF.js} +2 -2
- package/dist/{chunk-DUDDZRCS.cjs → chunk-TYTHI5MC.cjs} +5 -5
- package/dist/{chunk-3652ROFD.js → chunk-U2HNW3BE.js} +1 -1
- package/dist/{chunk-Y6OWFIUF.js → chunk-U5DIIPRG.js} +32 -32
- package/dist/{chunk-HDSEJMWI.cjs → chunk-U6HBUXUW.cjs} +2 -2
- package/dist/{chunk-RJXNNIFW.js → chunk-UK47BNOH.js} +2 -2
- package/dist/{chunk-PNSRJT46.js → chunk-UWJCELGB.js} +1 -1
- package/dist/{chunk-SAG6IY5Z.cjs → chunk-UY7S6R4Y.cjs} +14 -14
- package/dist/{chunk-HVOBMOZ2.cjs → chunk-VIGSERLH.cjs} +2 -2
- package/dist/{chunk-CUBYCLNL.js → chunk-VMCBJ73M.js} +9 -9
- package/dist/{chunk-C22G4UE4.cjs → chunk-VR35C7QS.cjs} +11 -11
- package/dist/{chunk-HQQ4NKER.js → chunk-VZZROEUZ.js} +1 -1
- package/dist/{chunk-YKSSNFDZ.js → chunk-WDB4H2K3.js} +2 -2
- package/dist/{chunk-HLFZPN65.js → chunk-XCQ6CVQV.js} +3 -3
- package/dist/{chunk-IXFOH4OC.cjs → chunk-XE7T6YJV.cjs} +9 -9
- package/dist/{chunk-PM62ZYXA.js → chunk-XIRRRQQC.js} +2 -2
- package/dist/{chunk-73XIKTZL.js → chunk-XW4QQW5E.js} +1 -1
- package/dist/{chunk-BBIKQW66.js → chunk-YWRSRYIR.js} +1 -1
- package/dist/{chunk-UM4QEO36.js → chunk-ZV5TZBBS.js} +1 -1
- package/dist/completion-2OFOKRBS.js +13 -0
- package/dist/completion-KFMUWCMT.cjs +13 -0
- package/dist/export-OTVX3ZPY.js +11 -0
- package/dist/export-X3PO3CLZ.cjs +11 -0
- package/dist/feedback-CTF5YWG5.js +14 -0
- package/dist/feedback-O3644S7L.cjs +14 -0
- package/dist/help-EHLYG6BD.js +58 -0
- package/dist/help-JHVMHO7M.cjs +58 -0
- package/dist/{history-RZFT34Q7.js → history-7LZTGEJM.js} +2 -2
- package/dist/history-DCWHRTO5.cjs +13 -0
- package/dist/hooks-DIKRBMGT.js +12 -0
- package/dist/hooks-UE4W6JED.cjs +12 -0
- package/dist/i18n-5ANEIZNF.cjs +32 -0
- package/dist/{i18n-6NKENUIV.js → i18n-MB4NNCVM.js} +1 -1
- package/dist/ide-ELI5WKC5.cjs +11 -0
- package/dist/ide-IGOTWN43.js +11 -0
- package/dist/index.cjs +166 -166
- package/dist/index.js +84 -84
- package/dist/init-5IESXIGG.cjs +9 -0
- package/dist/init-VPDGIJKT.js +9 -0
- package/dist/{language-FXFDGOBF.js → language-JKJIQBKY.js} +4 -4
- package/dist/language-NN6KLKZ4.cjs +16 -0
- package/dist/{login-I65V4TGU.cjs → login-HZMQBI4Z.cjs} +6 -6
- package/dist/{login-AN42IOBK.js → login-QEZ5UF3J.js} +5 -5
- package/dist/logout-FKYZ5Z2L.cjs +16 -0
- package/dist/{logout-KK5UWGNG.js → logout-VSS7BRVP.js} +5 -5
- package/dist/{mcp-4SKTDECJ.js → mcp-5WFAF24K.js} +3 -3
- package/dist/mcp-F7MAPBDQ.cjs +15 -0
- package/dist/{mcp-install-KTV52DQK.js → mcp-install-2G7ZLMLV.js} +4 -4
- package/dist/{mcp-install-3NN2HAYR.cjs → mcp-install-X5T4BC7H.cjs} +7 -7
- package/dist/{memory-LRDK2SYC.js → memory-IVMJ2BNL.js} +2 -2
- package/dist/memory-YD5Y6RJG.cjs +9 -0
- package/dist/model-2IBHIA4J.cjs +9 -0
- package/dist/{model-WBFJIGUN.js → model-FOWUUVAH.js} +2 -2
- package/dist/{new-5A7RQEKI.js → new-ISJVB4VD.js} +2 -2
- package/dist/new-UC5O66BW.cjs +9 -0
- package/dist/permissions-V2BSHU5V.js +12 -0
- package/dist/permissions-WDZMVJAZ.cjs +12 -0
- package/dist/quit-47THY4BD.cjs +9 -0
- package/dist/quit-FCYYB2AN.js +9 -0
- package/dist/resume-4ED5MHL3.cjs +12 -0
- package/dist/resume-J64OIPHB.js +12 -0
- package/dist/search-RIGXYKSK.cjs +14 -0
- package/dist/{search-GOLIE5BA.js → search-XPU6AIXA.js} +4 -4
- package/dist/sessions-7P5DWTIT.cjs +9 -0
- package/dist/{sessions-B5NENDKY.js → sessions-VLDM5PF4.js} +2 -2
- package/dist/share-DR2FDJLT.cjs +13 -0
- package/dist/share-JEF3735D.js +13 -0
- package/dist/skills-B7AKVGOU.cjs +13 -0
- package/dist/{skills-ICEQ2TNC.js → skills-YLFZTOEQ.js} +2 -2
- package/dist/{skills-install-LU6GA2WF.cjs → skills-install-IFUCRLZK.cjs} +7 -7
- package/dist/{skills-install-6RN7FVCP.js → skills-install-OA45O5ZK.js} +4 -4
- package/dist/skills-new-3G7YDTLP.js +14 -0
- package/dist/skills-new-Q5QWAI4L.cjs +14 -0
- package/dist/status-F2NCXE34.js +10 -0
- package/dist/status-Y6SL5ZLZ.cjs +10 -0
- package/dist/{sync-LL6M67CN.js → sync-3M3C3T6D.js} +2 -2
- package/dist/sync-LJNEHT7Y.cjs +16 -0
- package/dist/{theme-U3SKEULY.js → theme-7XFCNDB4.js} +4 -4
- package/dist/theme-MKTWPNTN.cjs +16 -0
- package/dist/ui/questionModal.cjs +4 -4
- package/dist/ui/questionModal.js +3 -3
- package/dist/undo-NKBO3KWB.js +9 -0
- package/dist/undo-T3KL6SKD.cjs +9 -0
- package/package.json +9 -9
- package/dist/about-RGUM5QQ4.cjs +0 -11
- package/dist/add-dir-3BMVJ5H3.cjs +0 -9
- package/dist/agents-RGSZ2BM3.cjs +0 -10
- package/dist/agents-new-LSJN2L2T.cjs +0 -13
- package/dist/agents-new-MZUEVKSK.js +0 -13
- package/dist/automode-DP3BMYJB.cjs +0 -9
- package/dist/chunk-LGGZQTLM.cjs +0 -209
- package/dist/completion-HVSWU5GR.cjs +0 -13
- package/dist/completion-WJ2MVNDH.js +0 -13
- package/dist/export-NN7F5ANA.js +0 -11
- package/dist/export-UPS3AK2P.cjs +0 -11
- package/dist/feedback-ARI7CLVQ.js +0 -14
- package/dist/feedback-OZTPYHKJ.cjs +0 -14
- package/dist/help-4674IV4D.cjs +0 -58
- package/dist/help-ENG5KV2M.js +0 -58
- package/dist/history-2KUM6GN4.cjs +0 -13
- package/dist/hooks-7QSUBHBM.cjs +0 -12
- package/dist/hooks-S4MD4QSR.js +0 -12
- package/dist/i18n-MXQXQOVE.cjs +0 -32
- package/dist/ide-5STDV43A.cjs +0 -11
- package/dist/ide-W2NYXOWQ.js +0 -11
- package/dist/init-FG5KEJCZ.cjs +0 -9
- package/dist/init-TV4MJDYK.js +0 -9
- package/dist/language-52Q7CSAY.cjs +0 -16
- package/dist/logout-VYYNWBHZ.cjs +0 -16
- package/dist/mcp-AGWPTMAX.cjs +0 -15
- package/dist/memory-LG4K6XV6.cjs +0 -9
- package/dist/model-P5D7ATE7.cjs +0 -9
- package/dist/new-EAATWI2G.cjs +0 -9
- package/dist/permissions-5URK6C44.js +0 -12
- package/dist/permissions-CJUDVG63.cjs +0 -12
- package/dist/quit-A33JHDG7.cjs +0 -9
- package/dist/quit-IYBLN3DB.js +0 -9
- package/dist/resume-OPSJTCH7.cjs +0 -12
- package/dist/resume-TOWEEN5D.js +0 -12
- package/dist/search-H42HGUK5.cjs +0 -14
- package/dist/sessions-YHAVEMWY.cjs +0 -9
- package/dist/share-2JD2AKKX.cjs +0 -13
- package/dist/share-MYGDOTQE.js +0 -13
- package/dist/skills-LFVNZOMF.cjs +0 -13
- package/dist/skills-new-5BM5PDFX.cjs +0 -14
- package/dist/skills-new-KWBWOX74.js +0 -14
- package/dist/status-M3XHJELG.cjs +0 -10
- package/dist/status-ZQDUYMKQ.js +0 -10
- package/dist/sync-73D2MP65.cjs +0 -16
- package/dist/theme-IFEI2IBJ.cjs +0 -16
- package/dist/undo-4DS67OAW.cjs +0 -9
- package/dist/undo-YMALVAPN.js +0 -9
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-ZBIBLOZL.js";
|
|
4
4
|
import {
|
|
5
5
|
showModal
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UWJCELGB.js";
|
|
7
7
|
import {
|
|
8
8
|
LANGUAGE_DISPLAY_NAMES,
|
|
9
9
|
SUPPORTED_LOCALES,
|
|
10
10
|
changeLanguage,
|
|
11
11
|
getCurrentLocale,
|
|
12
12
|
t
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D7DIMN2J.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/language.ts
|
|
16
16
|
import chalk from "chalk";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4BVRSVS2cjs = require('./chunk-4BVRSVS2.cjs');
|
|
4
4
|
|
|
5
5
|
// src/commands/automode.ts
|
|
6
6
|
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
7
7
|
var metadata = {
|
|
8
8
|
command: "/automode",
|
|
9
|
-
description:
|
|
9
|
+
description: _chunk4BVRSVS2cjs.t.call(void 0, "commands.automode.description"),
|
|
10
10
|
implemented: true
|
|
11
11
|
};
|
|
12
12
|
function parseArgs(args) {
|
|
@@ -92,7 +92,7 @@ function handleStatus(manager) {
|
|
|
92
92
|
"",
|
|
93
93
|
` Session: ${state.sessionId}`,
|
|
94
94
|
` Status: ${state.status}`,
|
|
95
|
-
` ${
|
|
95
|
+
` ${_chunk4BVRSVS2cjs.t.call(void 0, "commands.automode.iteration", { current: String(state.currentIteration), max: String(state.maxIterations) })}`,
|
|
96
96
|
` Files created: ${state.filesCreated}`,
|
|
97
97
|
` Files modified: ${state.filesModified}`
|
|
98
98
|
];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "autohand-cli",
|
|
4
|
-
version: "0.7.
|
|
4
|
+
version: "0.7.12",
|
|
5
5
|
license: "Apache-2.0",
|
|
6
6
|
description: "Autohand interactive coding agent CLI powered by LLMs.",
|
|
7
7
|
repository: {
|
|
@@ -21,7 +21,7 @@ var package_default = {
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
scripts: {
|
|
24
|
-
postinstall: "node scripts/fix-ansi-styles.js || true",
|
|
24
|
+
postinstall: "node scripts/fix-ansi-styles.js || true && node scripts/fix-ink-devtools.js || true",
|
|
25
25
|
go: 'bun run build && ./install-local.sh && echo "COMPLETED"',
|
|
26
26
|
build: "tsup",
|
|
27
27
|
dev: "bun src/index.ts",
|
|
@@ -29,11 +29,11 @@ var package_default = {
|
|
|
29
29
|
lint: "eslint .",
|
|
30
30
|
test: "vitest run",
|
|
31
31
|
start: "node dist/index.js",
|
|
32
|
-
"compile:macos-arm64": "bun build ./src/index.ts --compile --target=bun-darwin-arm64 --
|
|
33
|
-
"compile:macos-x64": "bun build ./src/index.ts --compile --target=bun-darwin-x64 --
|
|
34
|
-
"compile:linux-x64": "bun build ./src/index.ts --compile --target=bun-linux-x64 --
|
|
35
|
-
"compile:linux-arm64": "bun build ./src/index.ts --compile --target=bun-linux-arm64 --
|
|
36
|
-
"compile:windows-x64": "bun build ./src/index.ts --compile --target=bun-windows-x64 --
|
|
32
|
+
"compile:macos-arm64": "bun build ./src/index.ts --compile --target=bun-darwin-arm64 --outfile ./binaries/autohand-macos-arm64",
|
|
33
|
+
"compile:macos-x64": "bun build ./src/index.ts --compile --target=bun-darwin-x64 --outfile ./binaries/autohand-macos-x64",
|
|
34
|
+
"compile:linux-x64": "bun build ./src/index.ts --compile --target=bun-linux-x64 --outfile ./binaries/autohand-linux-x64",
|
|
35
|
+
"compile:linux-arm64": "bun build ./src/index.ts --compile --target=bun-linux-arm64 --outfile ./binaries/autohand-linux-arm64",
|
|
36
|
+
"compile:windows-x64": "bun build ./src/index.ts --compile --target=bun-windows-x64 --outfile ./binaries/autohand-windows-x64.exe",
|
|
37
37
|
"compile:all": "bun run compile:macos-arm64 && bun run compile:macos-x64 && bun run compile:linux-x64 && bun run compile:linux-arm64 && bun run compile:windows-x64",
|
|
38
38
|
link: "bun link",
|
|
39
39
|
translate: "tsx scripts/generate-translations.ts"
|
|
@@ -54,7 +54,7 @@ var package_default = {
|
|
|
54
54
|
diff: "^8.0.2",
|
|
55
55
|
dotenv: "^17.2.3",
|
|
56
56
|
"fs-extra": "^11.3.2",
|
|
57
|
-
i18next: "
|
|
57
|
+
i18next: "25.7.4",
|
|
58
58
|
ignore: "^5.3.1",
|
|
59
59
|
ink: "^4.4.1",
|
|
60
60
|
"ink-spinner": "^5.0.0",
|
|
@@ -62,13 +62,13 @@ var package_default = {
|
|
|
62
62
|
open: "^10.1.0",
|
|
63
63
|
ora: "^9.0.0",
|
|
64
64
|
react: "^18.2.0",
|
|
65
|
-
"react-devtools-core": "^7.0.1",
|
|
66
65
|
"terminal-link": "^3.0.0",
|
|
67
66
|
yaml: "^2.8.2",
|
|
68
67
|
zod: "^4.1.12"
|
|
69
68
|
},
|
|
70
69
|
devDependencies: {
|
|
71
70
|
"@types/diff": "^8.0.0",
|
|
71
|
+
"react-devtools-core": "^7.0.1",
|
|
72
72
|
"@types/fs-extra": "^11.0.4",
|
|
73
73
|
"@types/minimatch": "^6.0.0",
|
|
74
74
|
"@types/node": "^24.10.1",
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkRJP3SZ7Qcjs = require('./chunk-RJP3SZ7Q.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4BVRSVS2cjs = require('./chunk-4BVRSVS2.cjs');
|
|
8
8
|
|
|
9
9
|
// src/commands/sync.ts
|
|
10
10
|
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
11
11
|
var _readline = require('readline'); var _readline2 = _interopRequireDefault(_readline);
|
|
12
12
|
var metadata = {
|
|
13
13
|
command: "/sync",
|
|
14
|
-
description:
|
|
14
|
+
description: _chunk4BVRSVS2cjs.t.call(void 0, "commands.sync.description"),
|
|
15
15
|
implemented: true
|
|
16
16
|
};
|
|
17
17
|
var globalSyncService = null;
|
|
@@ -137,7 +137,7 @@ function renderSyncUI(data, ctx) {
|
|
|
137
137
|
await _chunkRJP3SZ7Qcjs.saveConfig.call(void 0, config);
|
|
138
138
|
data.enabled = newEnabled;
|
|
139
139
|
console.log(_chalk2.default.cyan(`
|
|
140
|
-
${newEnabled ?
|
|
140
|
+
${newEnabled ? _chunk4BVRSVS2cjs.t.call(void 0, "commands.sync.enabled") : _chunk4BVRSVS2cjs.t.call(void 0, "commands.sync.disabled")}`));
|
|
141
141
|
await sleep(1e3);
|
|
142
142
|
render();
|
|
143
143
|
} catch (err) {
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from "./chunk-JS7IPR7P.js";
|
|
11
11
|
import {
|
|
12
12
|
showModal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UWJCELGB.js";
|
|
14
14
|
import {
|
|
15
15
|
t
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-D7DIMN2J.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/theme.ts
|
|
19
19
|
import chalk from "chalk";
|
|
@@ -3,33 +3,33 @@
|
|
|
3
3
|
var _chunkRJP3SZ7Qcjs = require('./chunk-RJP3SZ7Q.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBOU24HF2cjs = require('./chunk-BOU24HF2.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk4BVRSVS2cjs = require('./chunk-4BVRSVS2.cjs');
|
|
14
14
|
|
|
15
15
|
// src/commands/language.ts
|
|
16
16
|
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
17
17
|
async function language(ctx) {
|
|
18
|
-
const currentLocale =
|
|
19
|
-
const currentDisplayName =
|
|
18
|
+
const currentLocale = _chunk4BVRSVS2cjs.getCurrentLocale.call(void 0, );
|
|
19
|
+
const currentDisplayName = _chunk4BVRSVS2cjs.LANGUAGE_DISPLAY_NAMES[currentLocale];
|
|
20
20
|
console.log(_chalk2.default.cyan(`
|
|
21
|
-
\u{1F310} ${
|
|
21
|
+
\u{1F310} ${_chunk4BVRSVS2cjs.t.call(void 0, "commands.language.title")}
|
|
22
22
|
`));
|
|
23
|
-
console.log(_chalk2.default.gray(`${
|
|
23
|
+
console.log(_chalk2.default.gray(`${_chunk4BVRSVS2cjs.t.call(void 0, "commands.language.currentLanguage", { language: currentDisplayName })}`));
|
|
24
24
|
console.log();
|
|
25
|
-
const options =
|
|
26
|
-
label: locale === currentLocale ? `${
|
|
25
|
+
const options = _chunk4BVRSVS2cjs.SUPPORTED_LOCALES.map((locale) => ({
|
|
26
|
+
label: locale === currentLocale ? `${_chunk4BVRSVS2cjs.LANGUAGE_DISPLAY_NAMES[locale]} (${_chunk4BVRSVS2cjs.t.call(void 0, "common.current")})` : _chunk4BVRSVS2cjs.LANGUAGE_DISPLAY_NAMES[locale],
|
|
27
27
|
value: locale
|
|
28
28
|
}));
|
|
29
|
-
const result = await
|
|
30
|
-
title:
|
|
29
|
+
const result = await _chunkBOU24HF2cjs.showModal.call(void 0, {
|
|
30
|
+
title: _chunk4BVRSVS2cjs.t.call(void 0, "commands.language.selectPrompt"),
|
|
31
31
|
options,
|
|
32
|
-
initialIndex:
|
|
32
|
+
initialIndex: _chunk4BVRSVS2cjs.SUPPORTED_LOCALES.indexOf(currentLocale)
|
|
33
33
|
});
|
|
34
34
|
if (!result) {
|
|
35
35
|
console.log(_chalk2.default.gray("\nLanguage selection cancelled."));
|
|
@@ -38,31 +38,31 @@ async function language(ctx) {
|
|
|
38
38
|
const selected = result.value;
|
|
39
39
|
if (selected === currentLocale) {
|
|
40
40
|
console.log(_chalk2.default.gray(`
|
|
41
|
-
${
|
|
41
|
+
${_chunk4BVRSVS2cjs.t.call(void 0, "commands.language.noChange")}`));
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
|
-
await
|
|
44
|
+
await _chunk4BVRSVS2cjs.changeLanguage.call(void 0, selected);
|
|
45
45
|
ctx.config.ui = { ...ctx.config.ui, locale: selected };
|
|
46
46
|
await _chunkRJP3SZ7Qcjs.saveConfig.call(void 0, ctx.config);
|
|
47
|
-
const newDisplayName =
|
|
47
|
+
const newDisplayName = _chunk4BVRSVS2cjs.LANGUAGE_DISPLAY_NAMES[selected];
|
|
48
48
|
console.log(_chalk2.default.green(`
|
|
49
|
-
\u2713 ${
|
|
49
|
+
\u2713 ${_chunk4BVRSVS2cjs.t.call(void 0, "commands.language.changed", { language: newDisplayName })}`));
|
|
50
50
|
console.log();
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
53
|
async function languageInfo() {
|
|
54
|
-
const currentLocale =
|
|
55
|
-
const currentDisplayName =
|
|
54
|
+
const currentLocale = _chunk4BVRSVS2cjs.getCurrentLocale.call(void 0, );
|
|
55
|
+
const currentDisplayName = _chunk4BVRSVS2cjs.LANGUAGE_DISPLAY_NAMES[currentLocale];
|
|
56
56
|
console.log(_chalk2.default.cyan(`
|
|
57
|
-
\u{1F310} ${
|
|
57
|
+
\u{1F310} ${_chunk4BVRSVS2cjs.t.call(void 0, "commands.language.title")}
|
|
58
58
|
`));
|
|
59
|
-
console.log(_chalk2.default.gray(`${
|
|
59
|
+
console.log(_chalk2.default.gray(`${_chunk4BVRSVS2cjs.t.call(void 0, "commands.language.currentLanguage", { language: currentDisplayName })}`));
|
|
60
60
|
console.log(_chalk2.default.gray(`Locale code: ${_chalk2.default.white(currentLocale)}`));
|
|
61
61
|
console.log();
|
|
62
62
|
console.log(_chalk2.default.gray("Supported languages:"));
|
|
63
|
-
for (const locale of
|
|
63
|
+
for (const locale of _chunk4BVRSVS2cjs.SUPPORTED_LOCALES) {
|
|
64
64
|
const marker = locale === currentLocale ? _chalk2.default.green("\u25CF") : _chalk2.default.gray("\u25CB");
|
|
65
|
-
console.log(` ${marker} ${
|
|
65
|
+
console.log(` ${marker} ${_chunk4BVRSVS2cjs.LANGUAGE_DISPLAY_NAMES[locale]}`);
|
|
66
66
|
}
|
|
67
67
|
console.log();
|
|
68
68
|
return null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBOU24HF2cjs = require('./chunk-BOU24HF2.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4BVRSVS2cjs = require('./chunk-4BVRSVS2.cjs');
|
|
7
7
|
|
|
8
8
|
// src/commands/ide.ts
|
|
9
9
|
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
@@ -398,24 +398,24 @@ function groupByIDE(detected) {
|
|
|
398
398
|
}
|
|
399
399
|
async function ide(ctx) {
|
|
400
400
|
console.log(_chalk2.default.bold.cyan(`
|
|
401
|
-
${
|
|
402
|
-
console.log(_chalk2.default.gray(
|
|
401
|
+
${_chunk4BVRSVS2cjs.t.call(void 0, "commands.ide.title")}`));
|
|
402
|
+
console.log(_chalk2.default.gray(_chunk4BVRSVS2cjs.t.call(void 0, "commands.ide.connectDescription")));
|
|
403
403
|
console.log();
|
|
404
404
|
const detected = await detectRunningIDEs(ctx.workspaceRoot);
|
|
405
405
|
const { matching, nonMatching } = groupByIDE(detected);
|
|
406
406
|
if (detected.length === 0) {
|
|
407
|
-
console.log(_chalk2.default.yellow(
|
|
407
|
+
console.log(_chalk2.default.yellow(_chunk4BVRSVS2cjs.t.call(void 0, "commands.ide.noIdesDetected")));
|
|
408
408
|
console.log();
|
|
409
409
|
printExtensionSuggestions(detected);
|
|
410
410
|
return null;
|
|
411
411
|
}
|
|
412
412
|
if (matching.length === 0) {
|
|
413
|
-
console.log(_chalk2.default.yellow(
|
|
413
|
+
console.log(_chalk2.default.yellow(_chunk4BVRSVS2cjs.t.call(void 0, "commands.ide.noMatchingIdes")));
|
|
414
414
|
console.log();
|
|
415
415
|
if (nonMatching.size > 0) {
|
|
416
416
|
console.log(
|
|
417
417
|
_chalk2.default.gray(
|
|
418
|
-
|
|
418
|
+
_chunk4BVRSVS2cjs.t.call(void 0, "commands.ide.otherNotMatching", { count: String(nonMatching.size) })
|
|
419
419
|
)
|
|
420
420
|
);
|
|
421
421
|
console.log();
|
|
@@ -426,21 +426,21 @@ ${_chunkLOXOD4IScjs.t.call(void 0, "commands.ide.title")}`));
|
|
|
426
426
|
}
|
|
427
427
|
console.log(
|
|
428
428
|
_chalk2.default.green(
|
|
429
|
-
|
|
429
|
+
_chunk4BVRSVS2cjs.t.call(void 0, "commands.ide.foundMatching", { count: String(matching.length) })
|
|
430
430
|
)
|
|
431
431
|
);
|
|
432
432
|
console.log();
|
|
433
433
|
const options = matching.map((ide2) => ({
|
|
434
|
-
label: `${ide2.displayName}: ${_nullishCoalesce(ide2.workspacePath, () => (
|
|
434
|
+
label: `${ide2.displayName}: ${_nullishCoalesce(ide2.workspacePath, () => ( _chunk4BVRSVS2cjs.t.call(void 0, "common.unknown")))}`,
|
|
435
435
|
value: ide2.kind
|
|
436
436
|
}));
|
|
437
|
-
const result = await
|
|
438
|
-
title:
|
|
437
|
+
const result = await _chunkBOU24HF2cjs.showModal.call(void 0, {
|
|
438
|
+
title: _chunk4BVRSVS2cjs.t.call(void 0, "commands.ide.selectPrompt"),
|
|
439
439
|
options
|
|
440
440
|
});
|
|
441
441
|
if (!result) {
|
|
442
442
|
console.log(_chalk2.default.gray(`
|
|
443
|
-
${
|
|
443
|
+
${_chunk4BVRSVS2cjs.t.call(void 0, "common.cancelled")}`));
|
|
444
444
|
return null;
|
|
445
445
|
}
|
|
446
446
|
const selected = matching.find((d) => d.kind === result.value);
|
|
@@ -448,7 +448,7 @@ ${_chunkLOXOD4IScjs.t.call(void 0, "common.cancelled")}`));
|
|
|
448
448
|
console.log(
|
|
449
449
|
_chalk2.default.green(
|
|
450
450
|
`
|
|
451
|
-
\u2713 ${
|
|
451
|
+
\u2713 ${_chunk4BVRSVS2cjs.t.call(void 0, "commands.ide.connected", { ide: selected.displayName })}`
|
|
452
452
|
)
|
|
453
453
|
);
|
|
454
454
|
}
|
|
@@ -456,7 +456,7 @@ ${_chunkLOXOD4IScjs.t.call(void 0, "common.cancelled")}`));
|
|
|
456
456
|
console.log();
|
|
457
457
|
console.log(
|
|
458
458
|
_chalk2.default.gray(
|
|
459
|
-
|
|
459
|
+
_chunk4BVRSVS2cjs.t.call(void 0, "commands.ide.otherNotMatching", { count: String(nonMatching.size) })
|
|
460
460
|
)
|
|
461
461
|
);
|
|
462
462
|
console.log();
|
|
@@ -467,7 +467,7 @@ ${_chunkLOXOD4IScjs.t.call(void 0, "common.cancelled")}`));
|
|
|
467
467
|
}
|
|
468
468
|
function printNonMatchingIDEs(ides) {
|
|
469
469
|
for (const ide2 of ides) {
|
|
470
|
-
const wsPath = _nullishCoalesce(ide2.workspacePath, () => (
|
|
470
|
+
const wsPath = _nullishCoalesce(ide2.workspacePath, () => ( _chunk4BVRSVS2cjs.t.call(void 0, "common.unknown")));
|
|
471
471
|
console.log(_chalk2.default.gray(` \u2022 ${ide2.displayName}: ${wsPath}`));
|
|
472
472
|
}
|
|
473
473
|
console.log();
|
|
@@ -475,7 +475,7 @@ function printNonMatchingIDEs(ides) {
|
|
|
475
475
|
function printExtensionSuggestions(detected) {
|
|
476
476
|
const suggestions = getExtensionSuggestions(detected);
|
|
477
477
|
if (suggestions.length === 0) return;
|
|
478
|
-
console.log(_chalk2.default.dim(`\u{1F4A1} ${
|
|
478
|
+
console.log(_chalk2.default.dim(`\u{1F4A1} ${_chunk4BVRSVS2cjs.t.call(void 0, "commands.ide.extensionHint")}`));
|
|
479
479
|
for (const suggestion of suggestions) {
|
|
480
480
|
const link = _terminallink2.default.call(void 0, suggestion.url, suggestion.url);
|
|
481
481
|
console.log(_chalk2.default.dim(` \u2022 ${suggestion.displayName}: ${link}`));
|
|
@@ -484,7 +484,7 @@ function printExtensionSuggestions(detected) {
|
|
|
484
484
|
}
|
|
485
485
|
var metadata = {
|
|
486
486
|
command: "/ide",
|
|
487
|
-
description:
|
|
487
|
+
description: _chunk4BVRSVS2cjs.t.call(void 0, "commands.ide.description"),
|
|
488
488
|
implemented: true
|
|
489
489
|
};
|
|
490
490
|
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-D2XFTCRP.js";
|
|
8
8
|
import {
|
|
9
9
|
safePrompt
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4YUFXZ36.js";
|
|
11
11
|
import {
|
|
12
12
|
saveConfig
|
|
13
13
|
} from "./chunk-ZBIBLOZL.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-PWLLLJHU.js";
|
|
17
17
|
import {
|
|
18
18
|
t
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-D7DIMN2J.js";
|
|
20
20
|
|
|
21
21
|
// src/commands/login.ts
|
|
22
22
|
import chalk from "chalk";
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
var _chunkTSY7JHIVcjs = require('./chunk-TSY7JHIV.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7QLGK2XEcjs = require('./chunk-7QLGK2XE.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkRJP3SZ7Qcjs = require('./chunk-RJP3SZ7Q.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk4BVRSVS2cjs = require('./chunk-4BVRSVS2.cjs');
|
|
13
13
|
|
|
14
14
|
// src/commands/logout.ts
|
|
15
15
|
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
16
16
|
var metadata = {
|
|
17
17
|
command: "/logout",
|
|
18
|
-
description:
|
|
18
|
+
description: _chunk4BVRSVS2cjs.t.call(void 0, "commands.logout.description"),
|
|
19
19
|
implemented: true
|
|
20
20
|
};
|
|
21
21
|
async function logout(ctx) {
|
|
@@ -26,14 +26,14 @@ async function logout(ctx) {
|
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
28
28
|
const userName = _optionalChain([config, 'access', _3 => _3.auth, 'access', _4 => _4.user, 'optionalAccess', _5 => _5.name]) || _optionalChain([config, 'access', _6 => _6.auth, 'access', _7 => _7.user, 'optionalAccess', _8 => _8.email]) || "user";
|
|
29
|
-
const result = await
|
|
29
|
+
const result = await _chunk7QLGK2XEcjs.safePrompt.call(void 0, {
|
|
30
30
|
type: "confirm",
|
|
31
31
|
name: "confirm",
|
|
32
32
|
message: `Log out from ${_chalk2.default.cyan(userName)}?`,
|
|
33
33
|
initial: true
|
|
34
34
|
});
|
|
35
35
|
if (!result || !result.confirm) {
|
|
36
|
-
console.log(_chalk2.default.gray(
|
|
36
|
+
console.log(_chalk2.default.gray(_chunk4BVRSVS2cjs.t.call(void 0, "commands.logout.cancelled")));
|
|
37
37
|
return null;
|
|
38
38
|
}
|
|
39
39
|
const authClient = _chunkTSY7JHIVcjs.getAuthClient.call(void 0, );
|
|
@@ -47,7 +47,7 @@ async function logout(ctx) {
|
|
|
47
47
|
};
|
|
48
48
|
await _chunkRJP3SZ7Qcjs.saveConfig.call(void 0, updatedConfig);
|
|
49
49
|
console.log();
|
|
50
|
-
console.log(_chalk2.default.green(
|
|
50
|
+
console.log(_chalk2.default.green(_chunk4BVRSVS2cjs.t.call(void 0, "commands.logout.success")));
|
|
51
51
|
console.log(_chalk2.default.gray("Your local session has been cleared."));
|
|
52
52
|
console.log();
|
|
53
53
|
return null;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkBOU24HF2cjs = require('./chunk-BOU24HF2.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk4BVRSVS2cjs = require('./chunk-4BVRSVS2.cjs');
|
|
9
9
|
|
|
10
10
|
// src/commands/export.ts
|
|
11
11
|
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
@@ -245,7 +245,7 @@ function getSuggestedFilename(metadata2, format) {
|
|
|
245
245
|
// src/commands/export.ts
|
|
246
246
|
var metadata = {
|
|
247
247
|
command: "/export",
|
|
248
|
-
description:
|
|
248
|
+
description: _chunk4BVRSVS2cjs.t.call(void 0, "commands.export.description"),
|
|
249
249
|
implemented: true
|
|
250
250
|
};
|
|
251
251
|
async function execute(args, context) {
|
|
@@ -265,7 +265,7 @@ async function execute(args, context) {
|
|
|
265
265
|
label: `${s.projectName} - ${new Date(s.createdAt).toLocaleString()} (${s.messageCount} messages)`,
|
|
266
266
|
value: s.sessionId
|
|
267
267
|
}));
|
|
268
|
-
const sessionResult = await
|
|
268
|
+
const sessionResult = await _chunkBOU24HF2cjs.showModal.call(void 0, {
|
|
269
269
|
title: "Select a session to export:",
|
|
270
270
|
options: sessionOptions
|
|
271
271
|
});
|
|
@@ -286,7 +286,7 @@ async function execute(args, context) {
|
|
|
286
286
|
{ label: "JSON (.json)", value: "json" },
|
|
287
287
|
{ label: "HTML (.html)", value: "html" }
|
|
288
288
|
];
|
|
289
|
-
const formatResult = await
|
|
289
|
+
const formatResult = await _chunkBOU24HF2cjs.showModal.call(void 0, {
|
|
290
290
|
title: "Export format:",
|
|
291
291
|
options: formatOptions
|
|
292
292
|
});
|
|
@@ -297,17 +297,17 @@ async function execute(args, context) {
|
|
|
297
297
|
const format = formatResult.value;
|
|
298
298
|
const options = {};
|
|
299
299
|
if (format === "md" || format === "html") {
|
|
300
|
-
options.includeToolOutputs = await
|
|
300
|
+
options.includeToolOutputs = await _chunkBOU24HF2cjs.showConfirm.call(void 0, {
|
|
301
301
|
title: "Include tool outputs?",
|
|
302
302
|
defaultValue: true
|
|
303
303
|
});
|
|
304
|
-
options.includeToc = await
|
|
304
|
+
options.includeToc = await _chunkBOU24HF2cjs.showConfirm.call(void 0, {
|
|
305
305
|
title: "Include table of contents?",
|
|
306
306
|
defaultValue: false
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
309
|
const suggestedFilename = getSuggestedFilename(metadata2, format);
|
|
310
|
-
const filename = await
|
|
310
|
+
const filename = await _chunkBOU24HF2cjs.showInput.call(void 0, {
|
|
311
311
|
title: "Save as:",
|
|
312
312
|
defaultValue: suggestedFilename
|
|
313
313
|
});
|
|
@@ -331,11 +331,11 @@ async function execute(args, context) {
|
|
|
331
331
|
try {
|
|
332
332
|
await saveExport(content, filePath);
|
|
333
333
|
console.log();
|
|
334
|
-
console.log(_chalk2.default.green(
|
|
334
|
+
console.log(_chalk2.default.green(_chunk4BVRSVS2cjs.t.call(void 0, "commands.export.success", { path: filePath })));
|
|
335
335
|
console.log(_chalk2.default.gray(` ${messages.length} messages, ${(Buffer.byteLength(content, "utf8") / 1024).toFixed(1)} KB`));
|
|
336
336
|
console.log();
|
|
337
337
|
} catch (error) {
|
|
338
|
-
console.log(_chalk2.default.red(
|
|
338
|
+
console.log(_chalk2.default.red(_chunk4BVRSVS2cjs.t.call(void 0, "commands.export.failed", { error: error.message })));
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkJHGIWNHLcjs = require('./chunk-JHGIWNHL.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7QLGK2XEcjs = require('./chunk-7QLGK2XE.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkGIZL57FEcjs = require('./chunk-GIZL57FE.cjs');
|
|
@@ -25,7 +25,7 @@ async function createSkill(ctx) {
|
|
|
25
25
|
console.log(_chalk2.default.red("Skills registry not available."));
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
28
|
-
const answers = await
|
|
28
|
+
const answers = await _chunk7QLGK2XEcjs.safePrompt.call(void 0, [
|
|
29
29
|
{
|
|
30
30
|
type: "input",
|
|
31
31
|
name: "name",
|
|
@@ -65,7 +65,7 @@ async function createSkill(ctx) {
|
|
|
65
65
|
console.log(_chalk2.default.gray("Canceled: no name provided."));
|
|
66
66
|
return null;
|
|
67
67
|
}
|
|
68
|
-
const storageResult = await
|
|
68
|
+
const storageResult = await _chunk7QLGK2XEcjs.safePrompt.call(void 0, {
|
|
69
69
|
type: "select",
|
|
70
70
|
name: "level",
|
|
71
71
|
message: "Where should this skill be saved?",
|
|
@@ -81,7 +81,7 @@ async function createSkill(ctx) {
|
|
|
81
81
|
const storageLevel = storageResult.level;
|
|
82
82
|
if (skillsRegistry.hasSkill(name)) {
|
|
83
83
|
console.log(_chalk2.default.yellow(`A skill named "${name}" already exists.`));
|
|
84
|
-
const result = await
|
|
84
|
+
const result = await _chunk7QLGK2XEcjs.safePrompt.call(void 0, {
|
|
85
85
|
type: "confirm",
|
|
86
86
|
name: "overwrite",
|
|
87
87
|
message: "Do you want to overwrite it?",
|
|
@@ -100,7 +100,7 @@ async function createSkill(ctx) {
|
|
|
100
100
|
console.log(_chalk2.default.gray(` Similarity: ${(match.score * 100).toFixed(0)}%`));
|
|
101
101
|
}
|
|
102
102
|
console.log();
|
|
103
|
-
const result = await
|
|
103
|
+
const result = await _chunk7QLGK2XEcjs.safePrompt.call(void 0, {
|
|
104
104
|
type: "select",
|
|
105
105
|
name: "proceed",
|
|
106
106
|
message: "How would you like to proceed?",
|
|
@@ -150,7 +150,7 @@ Output only the raw markdown content, no code fences.`
|
|
|
150
150
|
console.log(content.length > 800 ? content.slice(0, 800) + "\n...(truncated)" : content);
|
|
151
151
|
console.log(_chalk2.default.gray("\u2500".repeat(50)));
|
|
152
152
|
console.log();
|
|
153
|
-
const confirmResult = await
|
|
153
|
+
const confirmResult = await _chunk7QLGK2XEcjs.safePrompt.call(void 0, {
|
|
154
154
|
type: "confirm",
|
|
155
155
|
name: "confirm",
|
|
156
156
|
message: "Save this skill?",
|
|
@@ -169,7 +169,7 @@ Output only the raw markdown content, no code fences.`
|
|
|
169
169
|
console.log(_chalk2.default.green(`\u2713 Saved new skill to ${skillPath}`));
|
|
170
170
|
const success = await skillsRegistry.saveSkill(name, content);
|
|
171
171
|
if (success) {
|
|
172
|
-
const activateResult = await
|
|
172
|
+
const activateResult = await _chunk7QLGK2XEcjs.safePrompt.call(void 0, {
|
|
173
173
|
type: "confirm",
|
|
174
174
|
name: "activate",
|
|
175
175
|
message: "Activate this skill now?",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBOU24HF2cjs = require('./chunk-BOU24HF2.cjs');
|
|
4
4
|
|
|
5
5
|
// src/commands/completion.ts
|
|
6
6
|
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
@@ -284,7 +284,7 @@ async function execute(args) {
|
|
|
284
284
|
{ label: "Zsh", value: "zsh" },
|
|
285
285
|
{ label: "Fish", value: "fish" }
|
|
286
286
|
];
|
|
287
|
-
const shellResult = await
|
|
287
|
+
const shellResult = await _chunkBOU24HF2cjs.showModal.call(void 0, {
|
|
288
288
|
title: "Select your shell:",
|
|
289
289
|
options: shellOptions,
|
|
290
290
|
initialIndex: shellOptions.findIndex((o) => o.value === (detected || "bash"))
|
|
@@ -300,7 +300,7 @@ async function execute(args) {
|
|
|
300
300
|
{ label: "Install completion to default location", value: "install" },
|
|
301
301
|
{ label: "Show installation instructions", value: "instructions" }
|
|
302
302
|
];
|
|
303
|
-
const actionResult = await
|
|
303
|
+
const actionResult = await _chunkBOU24HF2cjs.showModal.call(void 0, {
|
|
304
304
|
title: "What would you like to do?",
|
|
305
305
|
options: actionOptions
|
|
306
306
|
});
|