@hncode/hncode 0.6.3 → 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/package.json +37 -37
- package/src/tui.js +13 -13
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@hncode/hncode",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "hncode — A cyan-blue TUI AI coding agent with zero runtime dependencies.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "src/index.js",
|
|
7
|
-
"bin": {
|
|
8
|
-
"hncode": "bin/hncode"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"bin/",
|
|
12
|
-
"src/",
|
|
13
|
-
"LICENSE",
|
|
14
|
-
"README.md",
|
|
15
|
-
"README_CN.md",
|
|
16
|
-
"package.json"
|
|
17
|
-
],
|
|
18
|
-
"scripts": {
|
|
19
|
-
"preinstall": "node bin/preinstall.cjs",
|
|
20
|
-
"install": "node bin/install.cjs",
|
|
21
|
-
"i18n": "node tools/sync-i18n.mjs",
|
|
22
|
-
"i18n:check": "node tools/sync-i18n.mjs --check",
|
|
23
|
-
"test": "node --test \"test/**/*.test.mjs\""
|
|
24
|
-
},
|
|
25
|
-
"engines": {
|
|
26
|
-
"node": ">=20"
|
|
27
|
-
},
|
|
28
|
-
"license": "PolyForm-Noncommercial-1.0.0",
|
|
29
|
-
"author": "NiceHello666",
|
|
30
|
-
"keywords": [
|
|
31
|
-
"cli",
|
|
32
|
-
"agent",
|
|
33
|
-
"coding",
|
|
34
|
-
"ai",
|
|
35
|
-
"tui"
|
|
36
|
-
]
|
|
37
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@hncode/hncode",
|
|
3
|
+
"version": "0.6.4",
|
|
4
|
+
"description": "hncode — A cyan-blue TUI AI coding agent with zero runtime dependencies.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "src/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"hncode": "bin/hncode"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin/",
|
|
12
|
+
"src/",
|
|
13
|
+
"LICENSE",
|
|
14
|
+
"README.md",
|
|
15
|
+
"README_CN.md",
|
|
16
|
+
"package.json"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"preinstall": "node bin/preinstall.cjs",
|
|
20
|
+
"install": "node bin/install.cjs",
|
|
21
|
+
"i18n": "node tools/sync-i18n.mjs",
|
|
22
|
+
"i18n:check": "node tools/sync-i18n.mjs --check",
|
|
23
|
+
"test": "node --test \"test/**/*.test.mjs\""
|
|
24
|
+
},
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=20"
|
|
27
|
+
},
|
|
28
|
+
"license": "PolyForm-Noncommercial-1.0.0",
|
|
29
|
+
"author": "NiceHello666",
|
|
30
|
+
"keywords": [
|
|
31
|
+
"cli",
|
|
32
|
+
"agent",
|
|
33
|
+
"coding",
|
|
34
|
+
"ai",
|
|
35
|
+
"tui"
|
|
36
|
+
]
|
|
37
|
+
}
|
package/src/tui.js
CHANGED
|
@@ -6650,19 +6650,19 @@ const queueH = takeover ? 0 : queuePanelHeight(state);
|
|
|
6650
6650
|
itemRows.push({ boxIdx: box.length, index: j });
|
|
6651
6651
|
box.push(boxRow(fitAnsi(head + desc, innerW - 2)));
|
|
6652
6652
|
});
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6653
|
+
if (qs.editing === 'other' && showHint) {
|
|
6654
|
+
const label = OTHER_LABEL + ': ';
|
|
6655
|
+
const text = String(qs.editingText || '');
|
|
6656
|
+
const ec = Math.max(0, Math.min(text.length, qs.editingCaret == null ? text.length : qs.editingCaret));
|
|
6657
|
+
caretInBox = box.length;
|
|
6658
|
+
caretColInBox = visualCol(label) + visualCol(text.slice(0, ec));
|
|
6659
|
+
box.push(boxRow(col(label, C.gray) + col(text, C.white)));
|
|
6660
|
+
} else if (showHint) {
|
|
6661
|
+
const hint = cur.multiSelect
|
|
6662
|
+
? '↑↓ move · Space toggle · Enter confirm · Esc dismiss'
|
|
6663
|
+
: '↑↓ move · Enter select · Esc dismiss';
|
|
6664
|
+
box.push(boxRow(col(hint, C.gray)));
|
|
6665
|
+
}
|
|
6666
6666
|
}
|
|
6667
6667
|
}
|
|
6668
6668
|
const boxTop = lines.length;
|