chainlesschain 0.166.164 → 0.166.165
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 +10 -2
- package/package.json +1 -1
- package/src/assets/linux-subreaper/linux-arm64/manifest.json +1 -1
- package/src/assets/linux-subreaper/linux-x64/manifest.json +1 -1
- package/src/data/changelog.json +13 -0
- package/src/repl/agent-repl.js +6 -8
- package/src/repl/terminal-window.js +11 -3
package/README.md
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
# chainlesschain CLI
|
|
2
2
|
|
|
3
|
-
## CLI 0.166.
|
|
3
|
+
## CLI 0.166.165 candidate
|
|
4
4
|
|
|
5
|
-
The candidate
|
|
5
|
+
The candidate restores the standalone Esc key for closing the model picker and interrupting a running turn. The planned pairing is Open VSX **0.37.200** and JetBrains **0.4.215**.
|
|
6
|
+
|
|
7
|
+
## Public CLI 0.166.164
|
|
8
|
+
|
|
9
|
+
CLI **0.166.164** is publicly available from source `80de4089bbc05773a37ff62737b85e39ab8927d3`. GitHub Actions verified CLI CI and Strict Sandbox on Linux, Windows, and macOS and published the npm archive through OIDC. Install `npm i -g chainlesschain@0.166.164 --registry https://registry.npmjs.org`, then run `cc --version` and `cc doctor`. [npm publication](https://github.com/longfa/chainlesschain/actions/runs/45781019483)
|
|
10
|
+
|
|
11
|
+
The fullscreen Agent adds a fixed input area, live slash commands, queued follow-ups, and a searchable `/model` picker. New interactive sessions automatically approve routine tool use subject to managed policy and explicit rules. This CLI pairs with Open VSX **0.37.199** and JetBrains **0.4.214**. [Open VSX publication](https://github.com/longfa/chainlesschain/actions/runs/45783391508) · [JetBrains publication](https://github.com/longfa/chainlesschain/actions/runs/45783392448)
|
|
12
|
+
|
|
13
|
+
Release limits are `NOT_PAID_READY`, `NOT_ADMITTED`, and `HOLD` for paid readiness, native admission, and automatic promotion.
|
|
6
14
|
|
|
7
15
|
## Public CLI 0.166.163
|
|
8
16
|
|
package/package.json
CHANGED
package/src/data/changelog.json
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"source": "CHANGELOG.md",
|
|
3
3
|
"releases": [
|
|
4
|
+
{
|
|
5
|
+
"productVersion": null,
|
|
6
|
+
"cliVersion": "0.166.165",
|
|
7
|
+
"cliVersions": ["0.166.165"],
|
|
8
|
+
"date": "2026-11-26",
|
|
9
|
+
"title": "",
|
|
10
|
+
"sections": [
|
|
11
|
+
{
|
|
12
|
+
"heading": "Fixed - cc CLI 0.166.165 and IDE pairing (candidate, 2026-11-26)",
|
|
13
|
+
"body": "- Close the model picker and interrupt a running turn with a standalone Esc reported by Node readline.\n- Pair CLI 0.166.165 with Open VSX 0.37.200 and JetBrains 0.4.215."
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
4
17
|
{
|
|
5
18
|
"productVersion": null,
|
|
6
19
|
"cliVersion": "0.166.164",
|
package/src/repl/agent-repl.js
CHANGED
|
@@ -5431,7 +5431,8 @@ async function startAgentReplInWorkspaceOwned(
|
|
|
5431
5431
|
},
|
|
5432
5432
|
});
|
|
5433
5433
|
|
|
5434
|
-
const { createTerminalWindow } =
|
|
5434
|
+
const { createTerminalWindow, isStandaloneEscape } =
|
|
5435
|
+
await import("./terminal-window.js");
|
|
5435
5436
|
const liveSlashCommands = new Set([
|
|
5436
5437
|
"/cost",
|
|
5437
5438
|
"/help",
|
|
@@ -5724,16 +5725,13 @@ async function startAgentReplInWorkspaceOwned(
|
|
|
5724
5725
|
if (process.stdin.isTTY) {
|
|
5725
5726
|
_replKeypressHandler = async (_str, key) => {
|
|
5726
5727
|
const k = key || {};
|
|
5728
|
+
const escape = isStandaloneEscape(k);
|
|
5727
5729
|
if (terminalWindow?.handlePickerKey(_str, k)) {
|
|
5728
5730
|
_consumeReadlineKeypress(key);
|
|
5729
5731
|
return;
|
|
5730
5732
|
}
|
|
5731
5733
|
// 1) Turn abort always wins, regardless of vim mode.
|
|
5732
|
-
if (
|
|
5733
|
-
k.name === "escape" &&
|
|
5734
|
-
!k.meta &&
|
|
5735
|
-
(_turnAbort || _replQuestions.isActive())
|
|
5736
|
-
) {
|
|
5734
|
+
if (escape && (_turnAbort || _replQuestions.isActive())) {
|
|
5737
5735
|
_consumeReadlineKeypress(key);
|
|
5738
5736
|
if (!interruptTurn()) _replQuestions.cancelActive();
|
|
5739
5737
|
return;
|
|
@@ -5855,7 +5853,7 @@ async function startAgentReplInWorkspaceOwned(
|
|
|
5855
5853
|
if (_vimEnabled && !_turnAbort) {
|
|
5856
5854
|
if (!_vim) {
|
|
5857
5855
|
// INSERT mode — readline owns the keys; Esc switches to NORMAL.
|
|
5858
|
-
if (
|
|
5856
|
+
if (escape) {
|
|
5859
5857
|
_consumeReadlineKeypress(key);
|
|
5860
5858
|
_vimEnterNormal();
|
|
5861
5859
|
}
|
|
@@ -5883,7 +5881,7 @@ async function startAgentReplInWorkspaceOwned(
|
|
|
5883
5881
|
}
|
|
5884
5882
|
|
|
5885
5883
|
// 3) Non-vim: double-Esc while idle → rewind picker shortcut.
|
|
5886
|
-
if (
|
|
5884
|
+
if (!escape) return;
|
|
5887
5885
|
_consumeReadlineKeypress(key);
|
|
5888
5886
|
const nowTs = Date.now();
|
|
5889
5887
|
if (nowTs - _lastIdleEscAt < 600) {
|
|
@@ -13,6 +13,11 @@ const MAX_LINE_LENGTH = 16000;
|
|
|
13
13
|
const FRAME_INTERVAL_MS = 24;
|
|
14
14
|
const graphemes = new Intl.Segmenter(undefined, { granularity: "grapheme" });
|
|
15
15
|
|
|
16
|
+
export function isStandaloneEscape(key) {
|
|
17
|
+
// Node readline sets meta for a lone Esc after the escape-sequence timeout.
|
|
18
|
+
return key.name === "escape" && (!key.meta || key.sequence === "\x1b");
|
|
19
|
+
}
|
|
20
|
+
|
|
16
21
|
function terminalText(value) {
|
|
17
22
|
return stripVTControlCharacters(value)
|
|
18
23
|
.replace(/\r\n?/g, "\n")
|
|
@@ -283,11 +288,14 @@ export function createTerminalWindow({
|
|
|
283
288
|
handlePickerKey(text, key) {
|
|
284
289
|
if (!active || !picker || isQuestionActive()) return false;
|
|
285
290
|
if (key.ctrl && key.name === "c") return false;
|
|
291
|
+
if (isStandaloneEscape(key)) {
|
|
292
|
+
picker = null;
|
|
293
|
+
schedule();
|
|
294
|
+
return true;
|
|
295
|
+
}
|
|
286
296
|
if (key.ctrl || key.meta) return true;
|
|
287
297
|
const matches = pickerMatches();
|
|
288
|
-
if (key.name === "
|
|
289
|
-
picker = null;
|
|
290
|
-
} else if (key.name === "up" || key.name === "down") {
|
|
298
|
+
if (key.name === "up" || key.name === "down") {
|
|
291
299
|
const delta = key.name === "up" ? -1 : 1;
|
|
292
300
|
if (matches.length)
|
|
293
301
|
picker.index =
|