autohand-cli 0.6.2 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/agents-EHLYBJLK.cjs +10 -0
- package/dist/{agents-7GZ2VBYU.js → agents-OJWYZN6X.js} +1 -0
- package/dist/agents-new-7VPASCBV.cjs +10 -0
- package/dist/{agents-new-VALZG4B5.js → agents-new-WQLJOXSS.js} +1 -0
- package/dist/chunk-27JNK5TE.cjs +252 -0
- package/dist/{chunk-JUDX6E53.js → chunk-3Y6G5DUX.cjs} +21 -21
- package/dist/{chunk-QE5RKNVN.js → chunk-4AMTDSQ3.cjs} +9 -9
- package/dist/{chunk-KERHTHMK.js → chunk-6MCXWSR3.js} +10 -8
- package/dist/chunk-7RRX7H2X.cjs +104 -0
- package/dist/chunk-AD4O67ZA.cjs +93 -0
- package/dist/chunk-AL4Z4WKG.cjs +59 -0
- package/dist/chunk-BEIG7V7Q.cjs +51 -0
- package/dist/{chunk-2DEJU7WQ.js → chunk-C3IFF3EH.cjs} +33 -33
- package/dist/chunk-DD2YPHP5.cjs +133 -0
- package/dist/chunk-FFA4LDAO.cjs +55 -0
- package/dist/{chunk-UNS4S6J3.js → chunk-G7SYGATA.cjs} +38 -38
- package/dist/chunk-IHJDYAYJ.cjs +77 -0
- package/dist/chunk-JBKP2CLA.cjs +364 -0
- package/dist/chunk-JSBRDJBE.js +30 -0
- package/dist/chunk-KNLBEUAV.cjs +57 -0
- package/dist/chunk-KT55HW6V.js +168 -0
- package/dist/{chunk-7WBK33MM.js → chunk-KZ2UXXLH.js} +4 -2
- package/dist/chunk-M4LKQQHU.cjs +168 -0
- package/dist/chunk-M7RVTUWE.cjs +145 -0
- package/dist/chunk-MFK6HE47.cjs +33 -0
- package/dist/{chunk-RUQVXU6K.js → chunk-MRQV5HMC.js} +4 -2
- package/dist/chunk-N254NRHT.cjs +30 -0
- package/dist/chunk-NWXYG5PQ.js +93 -0
- package/dist/chunk-QCMC2WOC.cjs +1135 -0
- package/dist/chunk-RDEROLKA.cjs +79 -0
- package/dist/chunk-RYY5I7QN.cjs +49 -0
- package/dist/chunk-UBGEAEKS.js +1135 -0
- package/dist/chunk-V5MTBGM4.cjs +20 -0
- package/dist/chunk-VMMGT42E.cjs +60 -0
- package/dist/chunk-WBDPILKI.cjs +19 -0
- package/dist/chunk-XT4OSHSB.cjs +20 -0
- package/dist/{chunk-TVWTD63Y.js → chunk-Z3Q2AFDS.js} +1 -0
- package/dist/chunk-Z4J4W6YQ.cjs +339 -0
- package/dist/chunk-Z6SGIQWH.cjs +191 -0
- package/dist/{chunk-GX24PC3L.js → chunk-ZTA2ASFW.cjs} +64 -48
- package/dist/completion-AMEZDTFT.cjs +11 -0
- package/dist/{completion-Y42FKDT3.js → completion-HR3ZT55J.js} +1 -0
- package/dist/{export-WJ5P6E5Z.js → export-MYBJZD3H.js} +1 -0
- package/dist/export-ULYYSO5V.cjs +9 -0
- package/dist/{feedback-RJNBUBDQ.js → feedback-3THCLEBE.js} +1 -0
- package/dist/feedback-PATTKRH5.cjs +10 -0
- package/dist/{formatters-UG6VZJJ5.js → formatters-3POW3KMP.js} +1 -0
- package/dist/formatters-UMUJYWV5.cjs +9 -0
- package/dist/help-2PR7P4UJ.cjs +11 -0
- package/dist/{help-CNOV6OXY.js → help-AW4QPGIW.js} +2 -1
- package/dist/index.cjs +12594 -9303
- package/dist/index.js +9726 -2878
- package/dist/{init-DML7AOII.js → init-HAQKREMF.js} +1 -0
- package/dist/init-OLSCW7ZC.cjs +9 -0
- package/dist/lint-D5UOJWIK.cjs +9 -0
- package/dist/{lint-TA2ZHVLM.js → lint-NJPZWVN2.js} +1 -0
- package/dist/login-QJROML5I.js +12 -0
- package/dist/login-X66DSV75.cjs +12 -0
- package/dist/logout-3Z7R3F7J.cjs +12 -0
- package/dist/logout-RJ5OAXRI.js +12 -0
- package/dist/memory-77SWEZYB.cjs +9 -0
- package/dist/{memory-4GSP7NKV.js → memory-F3V5FW6W.js} +1 -0
- package/dist/model-B2PE6XFS.cjs +9 -0
- package/dist/{model-HKEFSH5E.js → model-JC53RT7A.js} +1 -0
- package/dist/{new-EEZC4XXV.js → new-356ITOM7.js} +1 -0
- package/dist/new-J3ABPMW4.cjs +9 -0
- package/dist/{permissions-XJKYKDBG.js → permissions-CYW62ZK3.js} +1 -0
- package/dist/permissions-NOC5DMOH.cjs +9 -0
- package/dist/{quit-RSYIERO5.js → quit-2QWJ75GZ.js} +1 -0
- package/dist/quit-DQ57J67A.cjs +9 -0
- package/dist/resume-43XMN4CL.cjs +9 -0
- package/dist/{resume-2NERFSTD.js → resume-GA7YZJSO.js} +1 -0
- package/dist/session-BSU2L5UI.cjs +9 -0
- package/dist/{session-H5QWKE5E.js → session-SZMRN5KG.js} +1 -0
- package/dist/sessions-CVOZGTKR.cjs +9 -0
- package/dist/{sessions-4KXIT76T.js → sessions-OJ4DRK3P.js} +1 -0
- package/dist/{skills-POKNCIQV.js → skills-HF4SAF5O.js} +1 -0
- package/dist/skills-U6J6DFLK.cjs +11 -0
- package/dist/{skills-new-5VCNKQDP.js → skills-new-QDTNEG3R.js} +1 -0
- package/dist/skills-new-UPVBHIF2.cjs +10 -0
- package/dist/status-GR73LEEN.cjs +9 -0
- package/dist/{status-DCVSUWZG.js → status-SLYYTKXD.js} +2 -1
- package/dist/theme-THMQ5AIN.js +13 -0
- package/dist/theme-YDANJLZR.cjs +13 -0
- package/dist/{undo-7QJBXARS.js → undo-3Q44LSVS.js} +1 -0
- package/dist/undo-WF5HB5VU.cjs +9 -0
- package/package.json +10 -8
- package/dist/agents-32JB7KMB.js +0 -9
- package/dist/agents-3K6PHXQ6.js +0 -9
- package/dist/agents-A7AUMVQD.js +0 -8
- package/dist/agents-AHFECO5Q.js +0 -9
- package/dist/agents-DQFYBMJG.js +0 -8
- package/dist/agents-GX6L7BXZ.js +0 -9
- package/dist/agents-IWJJ7YJM.js +0 -8
- package/dist/agents-J2QLDVOP.js +0 -9
- package/dist/agents-OWTSY74S.js +0 -9
- package/dist/agents-RB34F4XE.js +0 -9
- package/dist/agents-XL27P67O.js +0 -9
- package/dist/agents-new-5I3B2W2I.js +0 -9
- package/dist/agents-new-CHV2AV34.js +0 -9
- package/dist/agents-new-F6F2VMDB.js +0 -9
- package/dist/agents-new-FDMUH7NL.js +0 -9
- package/dist/agents-new-GBF6JJIA.js +0 -9
- package/dist/agents-new-GCZEY4TE.js +0 -8
- package/dist/agents-new-OCIB72NU.js +0 -9
- package/dist/agents-new-PQGD47BZ.js +0 -9
- package/dist/agents-new-V6BNVJAB.js +0 -9
- package/dist/agents-new-WQUEZ2XH.js +0 -8
- package/dist/chunk-2EPIFDFM.js +0 -68
- package/dist/chunk-2FUWKZFN.js +0 -68
- package/dist/chunk-2HIILNYH.js +0 -197
- package/dist/chunk-2QAL3HH4.js +0 -79
- package/dist/chunk-3FRM7HJY.js +0 -57
- package/dist/chunk-3OD5MR23.js +0 -384
- package/dist/chunk-4LDR3Y3A.js +0 -79
- package/dist/chunk-4LLTISFP.js +0 -288
- package/dist/chunk-4UISIRMD.js +0 -288
- package/dist/chunk-4VWPX2X3.js +0 -131
- package/dist/chunk-7FMMKTRG.js +0 -64
- package/dist/chunk-7MFSCH7E.js +0 -382
- package/dist/chunk-7TV5KURP.js +0 -79
- package/dist/chunk-7XN6PAKV.js +0 -79
- package/dist/chunk-A7HRTONQ.js +0 -382
- package/dist/chunk-ALMJANSA.js +0 -197
- package/dist/chunk-CD7GNBIE.js +0 -288
- package/dist/chunk-CV3LEQRD.js +0 -57
- package/dist/chunk-CYY7D5TQ.js +0 -57
- package/dist/chunk-DAHMHLM6.js +0 -102
- package/dist/chunk-DAMLAWGE.js +0 -68
- package/dist/chunk-F4YPGOQJ.js +0 -105
- package/dist/chunk-FQDXFNOI.js +0 -57
- package/dist/chunk-FQI7EJY2.js +0 -105
- package/dist/chunk-GAJCZDZ5.js +0 -286
- package/dist/chunk-GEOP77H3.js +0 -79
- package/dist/chunk-GRX3IQHC.js +0 -131
- package/dist/chunk-H53NQAC2.js +0 -131
- package/dist/chunk-HJYISR7Y.js +0 -382
- package/dist/chunk-HLSI4HQM.js +0 -105
- package/dist/chunk-IAOMCEYU.js +0 -68
- package/dist/chunk-J7RENRJG.js +0 -382
- package/dist/chunk-JZQKOM7X.js +0 -382
- package/dist/chunk-K75NWR5V.js +0 -108
- package/dist/chunk-KCMWJB53.js +0 -288
- package/dist/chunk-KJ4M6KAK.js +0 -57
- package/dist/chunk-L3JXU574.js +0 -77
- package/dist/chunk-LR2XPUPT.js +0 -236
- package/dist/chunk-MCWNGAZG.js +0 -198
- package/dist/chunk-MQTBFYEG.js +0 -288
- package/dist/chunk-NCUJWSGP.js +0 -287
- package/dist/chunk-NWEUBPSG.js +0 -79
- package/dist/chunk-OJ5EBWOQ.js +0 -232
- package/dist/chunk-PKQZWNS2.js +0 -131
- package/dist/chunk-PQJIQBQ5.js +0 -57
- package/dist/chunk-PX5AGAEX.js +0 -105
- package/dist/chunk-Q7HX4VZD.js +0 -197
- package/dist/chunk-QLVXFPE3.js +0 -145
- package/dist/chunk-QUC577LO.js +0 -79
- package/dist/chunk-RAL2W5UX.js +0 -55
- package/dist/chunk-RANNBYFJ.js +0 -105
- package/dist/chunk-RCSSFUGL.js +0 -131
- package/dist/chunk-RZ7TASUI.js +0 -57
- package/dist/chunk-SN7D2PJO.js +0 -68
- package/dist/chunk-T4WQUJAE.js +0 -79
- package/dist/chunk-U2Z5BABG.js +0 -57
- package/dist/chunk-UHC4DIK5.js +0 -105
- package/dist/chunk-UW2LYWIM.js +0 -131
- package/dist/chunk-VRCQBFSX.js +0 -102
- package/dist/chunk-W76N6IZV.js +0 -197
- package/dist/chunk-WMC556GK.js +0 -131
- package/dist/chunk-WTEZYXD2.js +0 -67
- package/dist/chunk-X7EWON4T.js +0 -105
- package/dist/chunk-XARAKKJ4.js +0 -197
- package/dist/chunk-Y6JDGDEE.js +0 -197
- package/dist/chunk-Y7FSNXMR.js +0 -382
- package/dist/chunk-YPZMUIB5.js +0 -50
- package/dist/chunk-ZMDUVLR4.js +0 -148
- package/dist/chunk-ZRFAICDG.js +0 -382
- package/dist/export-HEFUNSR4.js +0 -8
- package/dist/feedback-3U2WYQK6.js +0 -9
- package/dist/feedback-5IIX372K.js +0 -9
- package/dist/feedback-6S6DWGIU.js +0 -9
- package/dist/feedback-7DEOY2AP.js +0 -9
- package/dist/feedback-BBQT42R6.js +0 -9
- package/dist/feedback-CGCSAWQT.js +0 -9
- package/dist/feedback-NEDFOKMA.js +0 -9
- package/dist/feedback-OXGGJVNA.js +0 -9
- package/dist/feedback-ZJECE2FS.js +0 -8
- package/dist/help-NQUZ7TNJ.js +0 -10
- package/dist/login-D53NQ7UY.js +0 -10
- package/dist/login-GPXDNB2F.js +0 -10
- package/dist/login-HDF4GSTP.js +0 -10
- package/dist/login-HXQ3FDA7.js +0 -10
- package/dist/login-SDAZTJAK.js +0 -10
- package/dist/login-SM6LEDDA.js +0 -10
- package/dist/login-TDI7HBRZ.js +0 -10
- package/dist/login-Y7XXSNOZ.js +0 -10
- package/dist/logout-32RNT7G2.js +0 -10
- package/dist/logout-43W7N6JU.js +0 -10
- package/dist/logout-6KCD4WA3.js +0 -10
- package/dist/logout-BMHTSXIY.js +0 -10
- package/dist/logout-JNNJJYYL.js +0 -10
- package/dist/logout-LW42QASH.js +0 -10
- package/dist/logout-QLWM6P26.js +0 -10
- package/dist/logout-TL7GLGWU.js +0 -10
- package/dist/memory-GVYG653L.js +0 -8
- package/dist/new-MCN36AOD.js +0 -8
- package/dist/status-F6TQOCON.js +0 -8
- package/dist/status-IT5CYW37.js +0 -8
- package/dist/status-MRJOSVE3.js +0 -8
- package/dist/status-MWFV2DZG.js +0 -8
- package/dist/status-N3PMJRSB.js +0 -8
- package/dist/status-NK7YSBXZ.js +0 -8
- package/dist/status-QLQ5ZKJ3.js +0 -8
- package/dist/status-SQEFMII5.js +0 -8
- package/dist/status-U33PEUBO.js +0 -8
- package/dist/status-XAJH67SE.js +0 -8
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
// src/commands/status.ts
|
|
2
|
-
|
|
3
|
-
|
|
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; }// src/commands/status.ts
|
|
2
|
+
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
3
|
+
var _readline = require('readline'); var _readline2 = _interopRequireDefault(_readline);
|
|
4
4
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "autohand-cli",
|
|
8
|
-
version: "0.
|
|
8
|
+
version: "0.6.4",
|
|
9
|
+
licenses: "SEE LICENSE IN LICENSE",
|
|
9
10
|
description: "Autohand interactive coding agent CLI powered by LLMs.",
|
|
10
11
|
type: "module",
|
|
11
12
|
bin: {
|
|
@@ -17,17 +18,17 @@ var package_default = {
|
|
|
17
18
|
],
|
|
18
19
|
scripts: {
|
|
19
20
|
go: 'bun run build && ./install-local.sh && echo "COMPLETED"',
|
|
20
|
-
build: "tsup
|
|
21
|
-
dev: "
|
|
21
|
+
build: "tsup",
|
|
22
|
+
dev: "bun src/index.ts",
|
|
22
23
|
typecheck: "tsc --noEmit",
|
|
23
24
|
lint: "eslint .",
|
|
24
25
|
test: "vitest run",
|
|
25
26
|
start: "node dist/index.js",
|
|
26
|
-
"compile:macos-arm64": "bun build ./src/index.ts --compile --target=bun-darwin-arm64 --outfile ./binaries/autohand-macos-arm64",
|
|
27
|
-
"compile:macos-x64": "bun build ./src/index.ts --compile --target=bun-darwin-x64 --outfile ./binaries/autohand-macos-x64",
|
|
28
|
-
"compile:linux-x64": "bun build ./src/index.ts --compile --target=bun-linux-x64 --outfile ./binaries/autohand-linux-x64",
|
|
29
|
-
"compile:linux-arm64": "bun build ./src/index.ts --compile --target=bun-linux-arm64 --outfile ./binaries/autohand-linux-arm64",
|
|
30
|
-
"compile:windows-x64": "bun build ./src/index.ts --compile --target=bun-windows-x64 --outfile ./binaries/autohand-windows-x64.exe",
|
|
27
|
+
"compile:macos-arm64": "bun build ./src/index.ts --compile --target=bun-darwin-arm64 --external react-devtools-core --outfile ./binaries/autohand-macos-arm64",
|
|
28
|
+
"compile:macos-x64": "bun build ./src/index.ts --compile --target=bun-darwin-x64 --external react-devtools-core --outfile ./binaries/autohand-macos-x64",
|
|
29
|
+
"compile:linux-x64": "bun build ./src/index.ts --compile --target=bun-linux-x64 --external react-devtools-core --outfile ./binaries/autohand-linux-x64",
|
|
30
|
+
"compile:linux-arm64": "bun build ./src/index.ts --compile --target=bun-linux-arm64 --external react-devtools-core --outfile ./binaries/autohand-linux-arm64",
|
|
31
|
+
"compile:windows-x64": "bun build ./src/index.ts --compile --target=bun-windows-x64 --external react-devtools-core --outfile ./binaries/autohand-windows-x64.exe",
|
|
31
32
|
"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",
|
|
32
33
|
link: "bun link"
|
|
33
34
|
},
|
|
@@ -49,6 +50,7 @@ var package_default = {
|
|
|
49
50
|
"fs-extra": "^11.3.2",
|
|
50
51
|
ignore: "^5.3.1",
|
|
51
52
|
ink: "^4.4.1",
|
|
53
|
+
"ink-spinner": "^5.0.0",
|
|
52
54
|
open: "^10.1.0",
|
|
53
55
|
ora: "^9.0.0",
|
|
54
56
|
react: "^18.2.0",
|
|
@@ -65,11 +67,25 @@ var package_default = {
|
|
|
65
67
|
"@typescript-eslint/eslint-plugin": "^8.48.1",
|
|
66
68
|
"@typescript-eslint/parser": "^8.48.1",
|
|
67
69
|
eslint: "^9.39.1",
|
|
68
|
-
"react-devtools-core": "^7.0.1",
|
|
69
70
|
tsup: "^8.5.1",
|
|
70
71
|
tsx: "^4.20.6",
|
|
71
72
|
typescript: "^5.9.3",
|
|
72
73
|
vitest: "^1.6.0"
|
|
74
|
+
},
|
|
75
|
+
overrides: {
|
|
76
|
+
ink: {
|
|
77
|
+
"slice-ansi": {
|
|
78
|
+
"ansi-styles": "^6.2.1"
|
|
79
|
+
},
|
|
80
|
+
"wrap-ansi": {
|
|
81
|
+
"ansi-styles": "^6.2.1"
|
|
82
|
+
},
|
|
83
|
+
"cli-truncate": {
|
|
84
|
+
"slice-ansi": {
|
|
85
|
+
"ansi-styles": "^6.2.1"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
73
89
|
}
|
|
74
90
|
};
|
|
75
91
|
|
|
@@ -90,19 +106,19 @@ async function gatherStatusData(ctx) {
|
|
|
90
106
|
let apiConnected = false;
|
|
91
107
|
try {
|
|
92
108
|
apiConnected = await ctx.llm.isAvailable();
|
|
93
|
-
} catch {
|
|
109
|
+
} catch (e) {
|
|
94
110
|
apiConnected = false;
|
|
95
111
|
}
|
|
96
112
|
return {
|
|
97
113
|
version: package_default.version,
|
|
98
|
-
sessionId: currentSession
|
|
114
|
+
sessionId: _nullishCoalesce(_optionalChain([currentSession, 'optionalAccess', _ => _.metadata, 'access', _2 => _2.sessionId]), () => ( null)),
|
|
99
115
|
cwd: ctx.workspaceRoot,
|
|
100
|
-
provider: ctx.provider
|
|
116
|
+
provider: _nullishCoalesce(ctx.provider, () => ( "openrouter")),
|
|
101
117
|
model: ctx.model,
|
|
102
118
|
apiConnected,
|
|
103
119
|
sessionsCount: allSessions.length,
|
|
104
|
-
contextPercentLeft: ctx.getContextPercentLeft
|
|
105
|
-
totalTokensUsed: ctx.getTotalTokensUsed
|
|
120
|
+
contextPercentLeft: _nullishCoalesce(_optionalChain([ctx, 'access', _3 => _3.getContextPercentLeft, 'optionalCall', _4 => _4()]), () => ( 100)),
|
|
121
|
+
totalTokensUsed: _nullishCoalesce(_optionalChain([ctx, 'access', _5 => _5.getTotalTokensUsed, 'optionalCall', _6 => _6()]), () => ( 0)),
|
|
106
122
|
config: ctx.config
|
|
107
123
|
};
|
|
108
124
|
}
|
|
@@ -118,7 +134,7 @@ function renderStatusUI(data) {
|
|
|
118
134
|
input.resume();
|
|
119
135
|
}
|
|
120
136
|
if (isTTY) {
|
|
121
|
-
|
|
137
|
+
_readline2.default.emitKeypressEvents(input);
|
|
122
138
|
if (!wasRaw && typeof input.setRawMode === "function") {
|
|
123
139
|
input.setRawMode(true);
|
|
124
140
|
}
|
|
@@ -130,7 +146,7 @@ function renderStatusUI(data) {
|
|
|
130
146
|
process.stdout.write("\x1B[2J\x1B[H");
|
|
131
147
|
renderTabHeader(tabs, currentTab);
|
|
132
148
|
renderTabContent(tabs[currentTab], data);
|
|
133
|
-
console.log(
|
|
149
|
+
console.log(_chalk2.default.gray("\nEsc to exit"));
|
|
134
150
|
};
|
|
135
151
|
let buffer = "";
|
|
136
152
|
const handler = (chunk) => {
|
|
@@ -204,9 +220,9 @@ function renderStatusUI(data) {
|
|
|
204
220
|
}
|
|
205
221
|
function renderTabHeader(tabs, currentIndex) {
|
|
206
222
|
const header = tabs.map((tab, i) => {
|
|
207
|
-
return i === currentIndex ?
|
|
223
|
+
return i === currentIndex ? _chalk2.default.bgWhite.black(` ${tab} `) : _chalk2.default.gray(` ${tab} `);
|
|
208
224
|
}).join(" ");
|
|
209
|
-
console.log(`Settings: ${header} ${
|
|
225
|
+
console.log(`Settings: ${header} ${_chalk2.default.gray("(tab to cycle)")}
|
|
210
226
|
`);
|
|
211
227
|
}
|
|
212
228
|
function renderTabContent(tab, data) {
|
|
@@ -223,48 +239,48 @@ function renderTabContent(tab, data) {
|
|
|
223
239
|
}
|
|
224
240
|
}
|
|
225
241
|
function renderStatusTab(data) {
|
|
226
|
-
console.log(
|
|
227
|
-
console.log(
|
|
228
|
-
console.log(
|
|
229
|
-
console.log(
|
|
230
|
-
console.log(
|
|
242
|
+
console.log(_chalk2.default.bold("Version:"), data.version);
|
|
243
|
+
console.log(_chalk2.default.bold("Session ID:"), _nullishCoalesce(data.sessionId, () => ( _chalk2.default.gray("none"))));
|
|
244
|
+
console.log(_chalk2.default.bold("cwd:"), data.cwd);
|
|
245
|
+
console.log(_chalk2.default.bold("Provider:"), data.provider);
|
|
246
|
+
console.log(_chalk2.default.bold("Model:"), data.model);
|
|
231
247
|
console.log();
|
|
232
248
|
console.log(
|
|
233
|
-
|
|
234
|
-
data.apiConnected ?
|
|
249
|
+
_chalk2.default.bold("API Status:"),
|
|
250
|
+
data.apiConnected ? _chalk2.default.green("Connected") : _chalk2.default.red("Disconnected")
|
|
235
251
|
);
|
|
236
|
-
console.log(
|
|
237
|
-
console.log(
|
|
252
|
+
console.log(_chalk2.default.bold("Sessions:"), `${data.sessionsCount} total`);
|
|
253
|
+
console.log(_chalk2.default.bold("Memory:"), "user (~/.autohand/memory/), project (.autohand/memory/)");
|
|
238
254
|
}
|
|
239
255
|
function renderConfigTab(data) {
|
|
240
256
|
const config = data.config;
|
|
241
|
-
console.log(
|
|
257
|
+
console.log(_chalk2.default.bold("Autohand preferences\n"));
|
|
242
258
|
const settings = [
|
|
243
|
-
["Theme", config
|
|
244
|
-
["Auto-confirm", config
|
|
245
|
-
["Show thinking", config
|
|
246
|
-
["Show completion notification", config
|
|
247
|
-
["Permission mode", config
|
|
248
|
-
["Telemetry", config
|
|
249
|
-
["Network retries", String(config
|
|
250
|
-
["Network timeout", `${config
|
|
259
|
+
["Theme", _nullishCoalesce(_optionalChain([config, 'optionalAccess', _7 => _7.ui, 'optionalAccess', _8 => _8.theme]), () => ( "dark"))],
|
|
260
|
+
["Auto-confirm", _optionalChain([config, 'optionalAccess', _9 => _9.ui, 'optionalAccess', _10 => _10.autoConfirm]) ? "true" : "false"],
|
|
261
|
+
["Show thinking", _optionalChain([config, 'optionalAccess', _11 => _11.ui, 'optionalAccess', _12 => _12.showThinking]) !== false ? "true" : "false"],
|
|
262
|
+
["Show completion notification", _optionalChain([config, 'optionalAccess', _13 => _13.ui, 'optionalAccess', _14 => _14.showCompletionNotification]) !== false ? "true" : "false"],
|
|
263
|
+
["Permission mode", _nullishCoalesce(_optionalChain([config, 'optionalAccess', _15 => _15.permissions, 'optionalAccess', _16 => _16.mode]), () => ( "interactive"))],
|
|
264
|
+
["Telemetry", _optionalChain([config, 'optionalAccess', _17 => _17.telemetry, 'optionalAccess', _18 => _18.enabled]) !== false ? "true" : "false"],
|
|
265
|
+
["Network retries", String(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _19 => _19.network, 'optionalAccess', _20 => _20.maxRetries]), () => ( 3)))],
|
|
266
|
+
["Network timeout", `${_nullishCoalesce(_optionalChain([config, 'optionalAccess', _21 => _21.network, 'optionalAccess', _22 => _22.timeout]), () => ( 3e4))}ms`]
|
|
251
267
|
];
|
|
252
268
|
for (const [name, value] of settings) {
|
|
253
|
-
console.log(` ${
|
|
269
|
+
console.log(` ${_chalk2.default.cyan(name.padEnd(30))} ${value}`);
|
|
254
270
|
}
|
|
255
271
|
}
|
|
256
272
|
function renderUsageTab(data) {
|
|
257
273
|
const contextUsed = 100 - data.contextPercentLeft;
|
|
258
|
-
console.log(
|
|
274
|
+
console.log(_chalk2.default.bold("Current session\n"));
|
|
259
275
|
renderProgressBar("Context used", contextUsed, 100);
|
|
260
276
|
console.log();
|
|
261
|
-
console.log(
|
|
277
|
+
console.log(_chalk2.default.bold("Tokens used:"), formatTokens(data.totalTokensUsed));
|
|
262
278
|
}
|
|
263
279
|
function renderProgressBar(label, value, max) {
|
|
264
280
|
const width = 30;
|
|
265
281
|
const filled = Math.round(value / max * width);
|
|
266
282
|
const empty = width - filled;
|
|
267
|
-
const bar =
|
|
283
|
+
const bar = _chalk2.default.cyan("\u2588".repeat(filled)) + _chalk2.default.gray("\u2591".repeat(empty));
|
|
268
284
|
const percent = Math.round(value / max * 100);
|
|
269
285
|
console.log(label);
|
|
270
286
|
console.log(`${bar} ${percent}% used`);
|
|
@@ -276,11 +292,11 @@ function formatTokens(tokens) {
|
|
|
276
292
|
return `${tokens} tokens`;
|
|
277
293
|
}
|
|
278
294
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
exports.package_default = package_default; exports.metadata = metadata; exports.status = status;
|
|
284
300
|
/**
|
|
285
301
|
* @license
|
|
286
302
|
* Copyright 2025 Autohand AI LLC
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkJBKP2CLAcjs = require('./chunk-JBKP2CLA.cjs');
|
|
6
|
+
require('./chunk-N254NRHT.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.execute = _chunkJBKP2CLAcjs.execute; exports.metadata = _chunkJBKP2CLAcjs.metadata; exports.runCompletionCommand = _chunkJBKP2CLAcjs.runCompletionCommand;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkC3IFF3EHcjs = require('./chunk-C3IFF3EH.cjs');
|
|
5
|
+
require('./chunk-N254NRHT.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.execute = _chunkC3IFF3EHcjs.execute; exports.metadata = _chunkC3IFF3EHcjs.metadata;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkRDEROLKAcjs = require('./chunk-RDEROLKA.cjs');
|
|
5
|
+
require('./chunk-IHJDYAYJ.cjs');
|
|
6
|
+
require('./chunk-N254NRHT.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.feedback = _chunkRDEROLKAcjs.feedback; exports.metadata = _chunkRDEROLKAcjs.metadata;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkZ4J4W6YQcjs = require('./chunk-Z4J4W6YQ.cjs');
|
|
5
|
+
require('./chunk-N254NRHT.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.execute = _chunkZ4J4W6YQcjs.execute; exports.metadata = _chunkZ4J4W6YQcjs.metadata;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkBEIG7V7Qcjs = require('./chunk-BEIG7V7Q.cjs');
|
|
6
|
+
require('./chunk-N254NRHT.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.aliasMetadata = _chunkBEIG7V7Qcjs.aliasMetadata; exports.help = _chunkBEIG7V7Qcjs.help; exports.metadata = _chunkBEIG7V7Qcjs.metadata;
|