@cjhyy/code-shell 0.6.0-rc.16 → 0.6.0-rc.18

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/CHANGELOG.md CHANGED
@@ -6,29 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and while the project is pre-1.0 we treat any 0.x → 0.(x+1) bump as potentially
7
7
  breaking.
8
8
 
9
- ## [0.6.0-rc.14]
10
-
11
- ### Fixed
12
-
13
- - **Cross-session message misdelivery**: a message typed in one session could be
14
- delivered to another if you sent it while switching sessions. Sends now pin the
15
- source session's bucket at submit time; the queued-input steer path also
16
- resolves the engine session from the active bucket instead of the last-started
17
- run.
18
- - **Historical `view_image` by number**: image-bearing tool results are now
19
- persisted to the transcript and restored on resume, so retrieving a past image
20
- by number returns the correct image instead of a missing/misnumbered one.
21
- - **File tree auto-scroll**: the files panel no longer snaps back to the selected
22
- file on every refresh — it scrolls into view only when a file becomes selected.
23
- - Mobile approval card / composer layout hardening.
9
+ ## [Unreleased]
24
10
 
25
11
  ### Added
26
12
 
27
- - The update settings row now shows the current app version.
13
+ #### Unified input attachments
28
14
 
29
- ## [Unreleased]
30
-
31
- ### Added
15
+ - The desktop composer now uses one attachment pipeline for paste, drag/drop,
16
+ file and directory mentions, and local image inputs, so files and screenshots
17
+ reach the agent consistently across entry points.
18
+ - Local image attachments can flow through the same request path as other
19
+ inputs for vision-capable model runs.
32
20
 
33
21
  #### Reusable sub-agent roles (`.code-shell/agents`)
34
22
 
@@ -43,7 +31,7 @@ breaking.
43
31
  synchronous sub-agents have a wall-clock timeout (default 5 minutes).
44
32
  - Sub-agent spawns emit `subagent_start` / `subagent_finish` / `subagent_error`
45
33
  lifecycle events through the existing `notification` hook.
46
- - Ships sample roles under `examples/agents/`: `researcher` and `explorer`
34
+ - Ships sample roles under `packages/desktop/resources/agents/`: `researcher` and `explorer`
47
35
  (read-only), `planner` (read-only planning), and `general-purpose` (full
48
36
  tools). Their `model` is left unset so they reuse the parent model — set
49
37
  `model:` in the frontmatter to route a role to a specific pool key.
@@ -54,7 +42,7 @@ breaking.
54
42
  vendor, parameters declared in the catalog drive both the UI controls and the
55
43
  tool description). Built-in entries ship in core; user entries live in
56
44
  `~/.code-shell/model-catalog.user.json`. The connections page supports
57
- multiple instances and credential reuse (`apiKeyRef`) with a per-tag default.
45
+ multiple instances and credential reuse (`credentialId`) with a per-tag default.
58
46
  - New `EditModelCatalog` builtin tool lets the agent add/update a user catalog
59
47
  entry and echoes a structured summary (every param's options/default) so you
60
48
  can verify it against the provider's official docs.
@@ -135,6 +123,10 @@ breaking.
135
123
 
136
124
  ### Fixed
137
125
 
126
+ - Addressed the latest core/desktop architecture review findings around stream
127
+ routing, permission/session scoping, and event coalescing, reducing
128
+ wrong-session routing, duplicated events, and hard-to-cancel operations in
129
+ multi-session desktop use.
138
130
  - **Cookie credentials now target the browser panel's per-session partition.**
139
131
  The credential service was hardcoded to the shared `persist:browser`
140
132
  partition while browser tabs run under per-session `persist:browser:<bucket>`
@@ -180,6 +172,33 @@ breaking.
180
172
  payload whose `messages` is not an array — the history replay guards the
181
173
  shape before mapping.
182
174
 
175
+ ### Changed
176
+
177
+ - Refreshed beta-release documentation and repository hygiene: README badges and
178
+ status copy now reflect the public beta track, obsolete handoff notes are
179
+ archived under `docs/archive/`, and generated build artifacts are covered by
180
+ `.gitignore`.
181
+
182
+ ## [0.6.0-rc.14]
183
+
184
+ ### Fixed
185
+
186
+ - **Cross-session message misdelivery**: a message typed in one session could be
187
+ delivered to another if you sent it while switching sessions. Sends now pin the
188
+ source session's bucket at submit time; the queued-input steer path also
189
+ resolves the engine session from the active bucket instead of the last-started
190
+ run.
191
+ - **Historical `view_image` by number**: image-bearing tool results are now
192
+ persisted to the transcript and restored on resume, so retrieving a past image
193
+ by number returns the correct image instead of a missing/misnumbered one.
194
+ - **File tree auto-scroll**: the files panel no longer snaps back to the selected
195
+ file on every refresh — it scrolls into view only when a file becomes selected.
196
+ - Mobile approval card / composer layout hardening.
197
+
198
+ ### Added
199
+
200
+ - The update settings row now shows the current app version.
201
+
183
202
  ## [0.5.0-rc.0] - 2026-05-23
184
203
 
185
204
  > ⚠️ Breaking. The repo is now a monorepo with three published packages.
package/README.md CHANGED
@@ -12,6 +12,14 @@
12
12
  <strong>A general-purpose AI agent orchestration framework — terminal, headless, and a full desktop app.</strong>
13
13
  </p>
14
14
 
15
+ <p align="center">
16
+ <a href="https://www.npmjs.com/package/%40cjhyy%2Fcode-shell"><img src="https://img.shields.io/npm/v/%40cjhyy%2Fcode-shell" alt="npm version" /></a>
17
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT license" /></a>
18
+ <a href="package.json"><img src="https://img.shields.io/badge/node-%3E%3D20.10-339933" alt="Node.js >=20.10" /></a>
19
+ <a href="tsconfig.json"><img src="https://img.shields.io/badge/TypeScript-5.x-3178C6?logo=typescript&amp;logoColor=white" alt="TypeScript" /></a>
20
+ <a href=".github/workflows/release.yml"><img src="https://img.shields.io/badge/platform-macOS%20%7C%20Windows%20%7C%20Linux-555" alt="macOS, Windows, and Linux" /></a>
21
+ </p>
22
+
15
23
  <p align="center">
16
24
  <img src="assets/codeshell-promo.png" alt="CodeShell desktop AI agent orchestration promotional image" width="860" />
17
25
  </p>
@@ -24,7 +32,7 @@ CodeShell is one orchestration engine wearing three faces:
24
32
 
25
33
  The core is deliberately **domain-agnostic**. The turn loop, context management, permissions, MCP integration, hooks, tasks, cron, sub-agents, sessions, and memory all stay generic; coding behavior is just a *preset* layered on top — not baked into the engine. (See `packages/core/CONTRIBUTING.md`: "core only carries mechanism, not policy.")
26
34
 
27
- > Status: **0.6.0-rc.12**, preparing for beta. The desktop app is the headline product; the CLI and SDK share the same core engine.
35
+ > Status: **0.6.x, entering beta**. The desktop app is the headline product; the CLI and SDK share the same core engine.
28
36
 
29
37
  ---
30
38
 
@@ -119,7 +127,7 @@ Presets select the system prompt, the built-in tool set, and permission defaults
119
127
 
120
128
  ### Built-in tools
121
129
 
122
- The default `general` preset whitelists 47 built-ins. The CLI defaults to
130
+ The default `general` preset whitelists 48 built-ins. The CLI defaults to
123
131
  `terminal-coding`, which adds coding extras. Runtime guards may hide tools that
124
132
  need unavailable providers, credentials, cookies, or an active goal.
125
133
 
@@ -127,7 +135,7 @@ need unavailable providers, credentials, cookies, or an active goal.
127
135
  - **Shell / execution**: `Bash`, `BashOutput`, `KillShell`, `ListShells`, `PowerShell`, `REPL`, `Sleep`
128
136
  - **Web / media / browser**: `browser_observe`, `browser_act`, `browser_navigate`, `WebSearch`, `WebFetch`, `GenerateImage`, `GenerateVideo`
129
137
  - **Planning / orchestration**: `AskUserQuestion`, `EnterPlanMode`, `ExitPlanMode`, `ToolSearch`, `TodoWrite`, `Agent`, `AgentCancel`, `DriveAgent`, `DriveClaudeCode`, `CheckQuota`
130
- - **Automation / integration**: `CronCreate`, `CronDelete`, `CronList`, `Config`, `Skill`, `MCPTool`, `ListMcpResources`, `ReadMcpResource`, `EditModelCatalog`
138
+ - **Automation / integration**: `CronCreate`, `CronDelete`, `CronList`, `Config`, `Skill`, `AddMarketplace`, `MCPTool`, `ListMcpResources`, `ReadMcpResource`, `EditModelCatalog`
131
139
  - **Memory / credentials / goals**: `MemoryList`, `MemoryRead`, `MemorySave`, `MemoryDelete`, `UseCredential`, `InjectCredential`, `complete_goal`, `cancel_goal`
132
140
  - **Terminal-coding preset extras**: `EnterWorktree`, `ExitWorktree`, `NotebookEdit`, `LSP`, `Brief`, `Arena`
133
141
 
package/README.zh-CN.md CHANGED
@@ -12,6 +12,14 @@
12
12
  <strong>一个通用 AI agent 编排框架:覆盖终端、headless 运行和完整桌面应用。</strong>
13
13
  </p>
14
14
 
15
+ <p align="center">
16
+ <a href="https://www.npmjs.com/package/%40cjhyy%2Fcode-shell"><img src="https://img.shields.io/npm/v/%40cjhyy%2Fcode-shell" alt="npm version" /></a>
17
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT license" /></a>
18
+ <a href="package.json"><img src="https://img.shields.io/badge/node-%3E%3D20.10-339933" alt="Node.js >=20.10" /></a>
19
+ <a href="tsconfig.json"><img src="https://img.shields.io/badge/TypeScript-5.x-3178C6?logo=typescript&amp;logoColor=white" alt="TypeScript" /></a>
20
+ <a href=".github/workflows/release.yml"><img src="https://img.shields.io/badge/platform-macOS%20%7C%20Windows%20%7C%20Linux-555" alt="macOS、Windows 和 Linux" /></a>
21
+ </p>
22
+
15
23
  <p align="center">
16
24
  <img src="assets/codeshell-promo.png" alt="CodeShell 桌面端 AI agent 编排宣传图" width="860" />
17
25
  </p>
@@ -24,7 +32,7 @@ CodeShell 是同一个编排引擎的三种形态:
24
32
 
25
33
  核心引擎保持**领域无关**。turn loop、上下文管理、权限、MCP 集成、hooks、tasks、cron、sub-agents、sessions 和 memory 都是通用机制;“写代码助手”只是叠在引擎上的一个 preset,而不是写死在核心里。
26
34
 
27
- > 状态:**0.6.0-rc.12**,正在准备 beta。桌面应用是当前主产品;CLI 和 SDK 共享同一个核心引擎。
35
+ > 状态:**0.6.x,进入 beta 阶段**。桌面应用是当前主产品;CLI 和 SDK 共享同一个核心引擎。
28
36
 
29
37
  ---
30
38
 
@@ -119,7 +127,7 @@ Preset 决定 system prompt、内置工具集和权限默认值。可通过 SDK
119
127
 
120
128
  ### 内置工具
121
129
 
122
- 默认 `general` preset 白名单包含 47 个内置工具。CLI 默认使用
130
+ 默认 `general` preset 白名单包含 48 个内置工具。CLI 默认使用
123
131
  `terminal-coding` preset,并额外加入编码相关工具。运行时 guard 可能隐藏当前不可用的
124
132
  provider、凭证、cookie 或 goal 相关工具。
125
133
 
@@ -127,7 +135,7 @@ provider、凭证、cookie 或 goal 相关工具。
127
135
  - **Shell / execution**:`Bash`, `BashOutput`, `KillShell`, `ListShells`, `PowerShell`, `REPL`, `Sleep`
128
136
  - **Web / media / browser**:`browser_observe`, `browser_act`, `browser_navigate`, `WebSearch`, `WebFetch`, `GenerateImage`, `GenerateVideo`
129
137
  - **Planning / orchestration**:`AskUserQuestion`, `EnterPlanMode`, `ExitPlanMode`, `ToolSearch`, `TodoWrite`, `Agent`, `AgentCancel`, `DriveAgent`, `DriveClaudeCode`, `CheckQuota`
130
- - **Automation / integration**:`CronCreate`, `CronDelete`, `CronList`, `Config`, `Skill`, `MCPTool`, `ListMcpResources`, `ReadMcpResource`, `EditModelCatalog`
138
+ - **Automation / integration**:`CronCreate`, `CronDelete`, `CronList`, `Config`, `Skill`, `AddMarketplace`, `MCPTool`, `ListMcpResources`, `ReadMcpResource`, `EditModelCatalog`
131
139
  - **Memory / credentials / goals**:`MemoryList`, `MemoryRead`, `MemorySave`, `MemoryDelete`, `UseCredential`, `InjectCredential`, `complete_goal`, `cancel_goal`
132
140
  - **Terminal-coding preset extras**:`EnterWorktree`, `ExitWorktree`, `NotebookEdit`, `LSP`, `Brief`, `Arena`
133
141
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cjhyy/code-shell",
3
- "version": "0.6.0-rc.16",
3
+ "version": "0.6.0-rc.18",
4
4
  "description": "Code Shell — meta package. Installs @cjhyy/code-shell-core and @cjhyy/code-shell-tui.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -30,8 +30,8 @@
30
30
  "format": "prettier --write 'packages/**/*.ts'"
31
31
  },
32
32
  "dependencies": {
33
- "@cjhyy/code-shell-core": "0.6.0-rc.12",
34
- "@cjhyy/code-shell-tui": "0.6.0-rc.12"
33
+ "@cjhyy/code-shell-core": "0.6.0-rc.18",
34
+ "@cjhyy/code-shell-tui": "0.6.0-rc.18"
35
35
  },
36
36
  "workspaces": [
37
37
  "packages/*"