@jingyi0605/codingns4dsh 0.1.7-rc.2 → 0.1.7-rc.3

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.en.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  [简体中文](README.md) · **English**
12
12
 
13
- **Current release `@jingyi0605/codingns4dsh@0.1.7-rc.2`** · DSH **`>=0.1.5-rc.3 <=0.1.7-rc.2`** (validated `0.1.5-rc.3`, `0.1.6-alpha.2`, `0.1.7-rc.2`) · Node **`>= 22.19`** · macOS / Linux / Windows
13
+ **Current release `@jingyi0605/codingns4dsh@0.1.7-rc.3`** · DSH **`>=0.1.5-rc.3 <=0.1.7-rc.2`** (validated `0.1.5-rc.3`, `0.1.6-alpha.2`, `0.1.7-rc.2`) · Node **`>= 22.19`** · macOS / Linux / Windows
14
14
 
15
15
  **[GitHub](https://github.com/jingyi0605/Codingns4DSH)** · **[npm](https://www.npmjs.com/package/@jingyi0605/codingns4dsh)** · **QQ group 1092985965**
16
16
 
@@ -203,7 +203,7 @@ The “access” line tells you whether you entered DSH Web locally, over the LA
203
203
  DSH automatically initializes the `web` profile on first use. You do not need to create a config file or run `--dump-config`:
204
204
 
205
205
  ```bash
206
- dsh plugin --profile web add @jingyi0605/codingns4dsh@0.1.7-rc.2
206
+ dsh plugin --profile web add @jingyi0605/codingns4dsh@0.1.7-rc.3
207
207
  dsh web
208
208
  ```
209
209
 
@@ -213,7 +213,7 @@ If you do not want to modify the built-in `web` profile, create a separate profi
213
213
 
214
214
  ```bash
215
215
  dsh codingns --from-default-profile web --dump-config
216
- dsh plugin --profile codingns add @jingyi0605/codingns4dsh@0.1.7-rc.2
216
+ dsh plugin --profile codingns add @jingyi0605/codingns4dsh@0.1.7-rc.3
217
217
  dsh codingns
218
218
  ```
219
219
 
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  **简体中文** · [English](README.en.md)
12
12
 
13
- **当前版本 `@jingyi0605/codingns4dsh@0.1.7-rc.2`** · DSH **`>=0.1.5-rc.3 <=0.1.7-rc.2`**(已验证 `0.1.5-rc.3`、`0.1.6-alpha.2`、`0.1.7-rc.2`)· Node **`>= 22.19`** · macOS / Linux / Windows
13
+ **当前版本 `@jingyi0605/codingns4dsh@0.1.7-rc.3`** · DSH **`>=0.1.5-rc.3 <=0.1.7-rc.2`**(已验证 `0.1.5-rc.3`、`0.1.6-alpha.2`、`0.1.7-rc.2`)· Node **`>= 22.19`** · macOS / Linux / Windows
14
14
 
15
15
  **[GitHub](https://github.com/jingyi0605/Codingns4DSH)** · **[npm](https://www.npmjs.com/package/@jingyi0605/codingns4dsh)** · **QQ 群 1092985965**
16
16
 
@@ -217,7 +217,7 @@ DSH 设置按钮旁的账户入口会显示登录状态、访问路径与延迟
217
217
  DSH 的 `web` Profile 会在首次使用时自动初始化,不需要手动创建配置文件,也不需要执行 `--dump-config`:
218
218
 
219
219
  ```bash
220
- dsh plugin --profile web add @jingyi0605/codingns4dsh@0.1.7-rc.2
220
+ dsh plugin --profile web add @jingyi0605/codingns4dsh@0.1.7-rc.3
221
221
  dsh web
222
222
  ```
223
223
 
@@ -227,7 +227,7 @@ dsh web
227
227
 
228
228
  ```bash
229
229
  dsh codingns --from-default-profile web --dump-config
230
- dsh plugin --profile codingns add @jingyi0605/codingns4dsh@0.1.7-rc.2
230
+ dsh plugin --profile codingns add @jingyi0605/codingns4dsh@0.1.7-rc.3
231
231
  dsh codingns
232
232
  ```
233
233
 
@@ -1135,7 +1135,7 @@ window.__ModuleLoader__.load({
1135
1135
  return /^0\.1\.5(?:-|$)/u.test(version);
1136
1136
  }
1137
1137
  /** Codingns4DSH 插件自身的 npm 版本。 */
1138
- const CODINGNS_VERSION = "0.1.7-rc.2";
1138
+ const CODINGNS_VERSION = "0.1.7-rc.3";
1139
1139
  /** 判断宿主版本是否落在当前插件声明的 DSH 兼容范围内。 */
1140
1140
  function isDshVersionCompatible(version) {
1141
1141
  const match = /^>=([^ ]+) <=([^ ]+)$/u.exec(DSH_COMPATIBILITY);
@@ -245,11 +245,15 @@ export function createCodingNsNativeSessionBridge(ctx, dshVersion) {
245
245
  model: event.model?.trim() || 'external-agent',
246
246
  });
247
247
  // DSH 前端的 compaction 节点由紧随 summary 的 checkpoint 替换事件生成。
248
+ // DSH 0.1.7 起会话格式只接受生产者自持的 source.kind,旧的 plugin 包装
249
+ // 会让整轮持久化失败;0.1.6 及更早仍由 dsh-compaction 的 plugin 标记识别。
248
250
  session.append('user/message', {
249
251
  id: `codingns-compaction-${state.compactionId}`,
250
252
  role: 'user',
251
253
  content: [{ type: 'text', text: summary }],
252
- source: { kind: 'plugin', plugin: 'compact' },
254
+ source: modernInjectedSource
255
+ ? { kind: 'compact-checkpoint', compactionId: state.compactionId }
256
+ : { kind: 'plugin', plugin: 'compact' },
253
257
  }, {
254
258
  surfaceOp: { op: 'replace', startSeq: range.start, endSeq: range.end },
255
259
  sourceEventSeqs: range.seqs,
@@ -11,7 +11,7 @@ export declare const CODINGNS_DSH_VERSION_GLOBAL: "__CODINGNS_DSH_VERSION__";
11
11
  /** 识别没有 alpha2 Sidebar 扩展 API 的 DSH 旧版运行时。 */
12
12
  export declare function isLegacyDshVersion(version: string): boolean;
13
13
  /** Codingns4DSH 插件自身的 npm 版本。 */
14
- export declare const CODINGNS_VERSION: "0.1.7-rc.2";
14
+ export declare const CODINGNS_VERSION: "0.1.7-rc.3";
15
15
  /** 判断宿主版本是否落在当前插件声明的 DSH 兼容范围内。 */
16
16
  export declare function isDshVersionCompatible(version: string): boolean;
17
17
  /** 判断 DSH 版本是否达到某个功能模块要求的最低版本。 */
@@ -13,7 +13,7 @@ export function isLegacyDshVersion(version) {
13
13
  return /^0\.1\.5(?:-|$)/u.test(version);
14
14
  }
15
15
  /** Codingns4DSH 插件自身的 npm 版本。 */
16
- export const CODINGNS_VERSION = '0.1.7-rc.2';
16
+ export const CODINGNS_VERSION = '0.1.7-rc.3';
17
17
  /** 判断宿主版本是否落在当前插件声明的 DSH 兼容范围内。 */
18
18
  export function isDshVersionCompatible(version) {
19
19
  const match = /^>=([^ ]+) <=([^ ]+)$/u.exec(DSH_COMPATIBILITY);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jingyi0605/codingns4dsh",
3
- "version": "0.1.7-rc.2",
3
+ "version": "0.1.7-rc.3",
4
4
  "description": "Codingns4DSH 插件骨架与连接契约",
5
5
  "repository": {
6
6
  "type": "git",
package/profile/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Codingns4DSH Profile
2
2
 
3
- 这是独立的 Codingns4DSH Profile,插件版本为 `0.1.7-rc.2`,兼容 DSH `>=0.1.5-rc.3 <=0.1.7-rc.2`,当前测试版本为 `0.1.6-alpha.2`。
3
+ 这是独立的 Codingns4DSH Profile,插件版本为 `0.1.7-rc.3`,兼容 DSH `>=0.1.5-rc.3 <=0.1.7-rc.2`,当前测试版本为 `0.1.6-alpha.2`。
4
4
 
5
5
  Profile 只选择 `codingns4dsh` Bundle。`cordis.patch.yml` 保持 `[]`,因为启动期
6
6
  Transport 必须由外部 pre-Cordis 启动胶水在 DSH Client/Cordis 创建前登记,不能由
@@ -9,7 +9,7 @@ Transport 必须由外部 pre-Cordis 启动胶水在 DSH Client/Cordis 创建前
9
9
  发布后,在 DSH 的 Profile 中安装精确版本的插件 Bundle:
10
10
 
11
11
  ```bash
12
- dsh plugin --profile codingns4dsh add @jingyi0605/codingns4dsh@0.1.7-rc.2
12
+ dsh plugin --profile codingns4dsh add @jingyi0605/codingns4dsh@0.1.7-rc.3
13
13
  ```
14
14
 
15
15
  Profile 安装完成后,使用 DSH 官方启动器启动:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codingns4dsh-profile",
3
- "version": "0.1.7-rc.2",
3
+ "version": "0.1.7-rc.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "engines": {
@@ -10,7 +10,7 @@
10
10
  "preinstall": "node scripts/check-dsh-install.mjs"
11
11
  },
12
12
  "dependencies": {
13
- "@jingyi0605/codingns4dsh": "0.1.7-rc.2"
13
+ "@jingyi0605/codingns4dsh": "0.1.7-rc.3"
14
14
  },
15
15
  "dsh": {
16
16
  "profile": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "pluginVersion": "0.1.7-rc.2",
2
+ "pluginVersion": "0.1.7-rc.3",
3
3
  "dshCompatibility": ">=0.1.5-rc.3 <=0.1.7-rc.2",
4
4
  "dshTestedVersion": "0.1.6-alpha.2"
5
5
  }
package/version.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "pluginVersion": "0.1.7-rc.2",
2
+ "pluginVersion": "0.1.7-rc.3",
3
3
  "dshCompatibility": ">=0.1.5-rc.3 <=0.1.7-rc.2",
4
4
  "dshTestedVersion": "0.1.6-alpha.2",
5
5
  "dshProtocolVersion": 1