chainlesschain 0.166.163 → 0.166.164
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 +20 -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/lib/settings-loader.cjs +9 -2
- package/src/repl/agent-repl.js +387 -241
- package/src/repl/permission-prompt.js +62 -5
- package/src/repl/terminal-window.js +355 -0
- package/src/runtime/headless-stream.js +18 -2
package/README.md
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
# chainlesschain CLI
|
|
2
2
|
|
|
3
|
-
## CLI 0.166.
|
|
3
|
+
## CLI 0.166.164 candidate
|
|
4
4
|
|
|
5
|
-
The candidate
|
|
5
|
+
The candidate adds a fullscreen Agent composer, live slash commands, a `/model` picker and automatic routine tool approvals for new interactive sessions. The planned pairing is Open VSX **0.37.199** and JetBrains **0.4.214**. The current public install command is below.
|
|
6
|
+
|
|
7
|
+
## Public CLI 0.166.163
|
|
8
|
+
|
|
9
|
+
CLI **0.166.163** is available on npm from source `b06b3bfe0f1bf91d40617f3a0c83d918795d4fe6`. GitHub Actions published it through OIDC after CLI CI and Strict Sandbox passed on Linux, Windows, and macOS, then verified the public archive and signed provenance. Install `npm i -g chainlesschain@0.166.163 --registry https://registry.npmjs.org`, restart the CLI and IDE hosts, and run `cc --version` and `cc doctor`. [npm publication](https://github.com/longfa/chainlesschain/actions/runs/45535193598)
|
|
10
|
+
|
|
11
|
+
This release improves file-search diagnostics, retries a timed-out Windows credential read once, and asks coding agents to verify workspace changes before reporting delivery. File reads recover when the requested page reaches the model. Canonical compaction can shorten a local handoff while retaining file read positions. Chat Completions stream errors fail the turn, and interrupting a turn closes its pending approvals.
|
|
12
|
+
|
|
13
|
+
Open VSX **0.37.198** is public and recommends CLI `0.166.163`. JetBrains **0.4.213** pairs with the same CLI and its publication workflow is in progress. [Open VSX](https://open-vsx.org/extension/chainlesschain/chainlesschain-ide) · [JetBrains workflow](https://github.com/longfa/chainlesschain/actions/runs/45537935036)
|
|
14
|
+
|
|
15
|
+
The release limits are `NOT_PAID_READY` for paid readiness, `NOT_ADMITTED` for native admission, and `HOLD` for automatic promotion.
|
|
6
16
|
|
|
7
17
|
## Public CLI 0.166.162 and IDE pairing
|
|
8
18
|
|
|
@@ -325,6 +335,14 @@ Exact source `dfa158e36171e347a40e23356c2ed7bd04e0c061` passed complete Linux, W
|
|
|
325
335
|
|
|
326
336
|
The current [Agent reference](https://docs.chainlesschain.com/chainlesschain/cli-agent.html) covers optional delivery review and Goal recovery. [IDE configuration](https://docs.chainlesschain.com/chainlesschain/ide-plugin.html) documents conversation model overrides and unreadable configuration. [MCP Tool Search](https://docs.chainlesschain.com/chainlesschain/cli-tool-search.html), [Skills](https://docs.chainlesschain.com/chainlesschain/cli-skill.html), and [Memory](https://docs.chainlesschain.com/chainlesschain/cli-memory.html) describe discovery, defaults and query limits. Published behavior follows its frozen release source. Post-release main d9f2511b95 adds explicit review forwarding to evaluation drivers; its campaign is PREPARED_NOT_DISPATCHED and adds no independent acceptance.
|
|
327
337
|
|
|
338
|
+
### Interactive Agent in this checkout
|
|
339
|
+
|
|
340
|
+
Run `cc agent` in a terminal to open the conversation window with a fixed input area. Type `/` to filter commands, use the arrow keys to select one, and press Enter to run it or Tab to complete its name. During a turn, Enter queues follow-up messages. Press Up in an empty input area to retrieve the latest queued message for editing. `/status`, `/cost`, `/help` and `/btw <question>` respond while the turn runs. Esc or `/interrupt` interrupts the active model turn. Use Alt+Enter for a newline, Page Up and Page Down for earlier output, and `/tui default` for terminal scrollback.
|
|
341
|
+
|
|
342
|
+
New interactive CLI, VS Code and JetBrains Agent sessions use automatic routine tool approvals. Managed permission settings, explicit permission rules, and approved plan restrictions still apply. Choose `/permissions strict` in the CLI or `/normal` in either IDE to require normal approvals.
|
|
343
|
+
|
|
344
|
+
Use `/model` to pick a model for the current provider. Type to filter the list, use the arrow keys to select, and press Enter to apply. You can also enter an exact ID with `/model <model-id>`. A selection made during a turn applies to the next turn.
|
|
345
|
+
|
|
328
346
|
## CLI 0.166.127 — optional self-evolution (2026-10-27)
|
|
329
347
|
|
|
330
348
|
完整中文说明见[CLI 与 IDE 自进化开关配置](../../docs/cli/SELF_EVOLUTION_CONFIGURATION.md),包括默认行为、配置优先级、界面入口与生效时机。
|
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.164",
|
|
7
|
+
"cliVersions": ["0.166.164"],
|
|
8
|
+
"date": "2026-11-26",
|
|
9
|
+
"title": "",
|
|
10
|
+
"sections": [
|
|
11
|
+
{
|
|
12
|
+
"heading": "Added - cc CLI 0.166.164 and IDE pairing (candidate, 2026-11-26)",
|
|
13
|
+
"body": "- Open interactive Agent sessions in a terminal window with a fixed composer, searchable slash commands, and queued follow-ups.\n- Switch models with a searchable `/model` picker or an exact model ID. Selections made during a turn apply to the next turn.\n- Use automatic routine tool approvals in new CLI, VS Code and JetBrains interactive sessions while honoring managed permission policies, explicit rules, and approved plans.\n- Pair CLI 0.166.164 with Open VSX 0.37.199 and JetBrains 0.4.214."
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
4
17
|
{
|
|
5
18
|
"productVersion": null,
|
|
6
19
|
"cliVersion": "0.166.163",
|
|
@@ -238,11 +238,17 @@ function applyManagedPermissionPolicy(baseRules, managed, sources = {}) {
|
|
|
238
238
|
return rules;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
+
function defaultInteractivePermissionMode(managed) {
|
|
242
|
+
return managed?.disableBypassPermissionsMode === true ||
|
|
243
|
+
managed?.disableBypassPermissionsMode === "disable"
|
|
244
|
+
? "default"
|
|
245
|
+
: "bypassPermissions";
|
|
246
|
+
}
|
|
247
|
+
|
|
241
248
|
function assertManagedPermissionMode(mode, managed) {
|
|
242
249
|
if (
|
|
243
250
|
mode === "bypassPermissions" &&
|
|
244
|
-
(managed
|
|
245
|
-
managed?.disableBypassPermissionsMode === "disable")
|
|
251
|
+
defaultInteractivePermissionMode(managed) === "default"
|
|
246
252
|
) {
|
|
247
253
|
throw new Error(
|
|
248
254
|
'permission mode "bypassPermissions" is disabled by managed settings',
|
|
@@ -752,6 +758,7 @@ module.exports = {
|
|
|
752
758
|
loadManagedSettings,
|
|
753
759
|
applyManagedPermissionPolicy,
|
|
754
760
|
assertManagedPermissionMode,
|
|
761
|
+
defaultInteractivePermissionMode,
|
|
755
762
|
parseEnvList,
|
|
756
763
|
mergeSandboxSettings,
|
|
757
764
|
ruleSource,
|