@khorsheed/dsh-client-session-title-edit 0.2.5 → 0.2.6

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
@@ -1,5 +1,9 @@
1
1
  # 变更记录
2
2
 
3
+ ## 0.2.6(2026-10-22)
4
+
5
+ 无功能变更。适配宿主 0.2.1 线:verifiedHost 前移至 0.2.1-rc.1,`@deepseek-ai/dsh-*` peer 区间加宽覆盖 0.2.1 并声明 `engines.dsh`(`>=0.1.2-rc.1 <0.3.0-0`);退役 load 期 invariant 伴生探针(空仪式,无行为变化)。
6
+
3
7
  ## 0.2.5(2026-09-30)
4
8
 
5
9
  无功能变更。加宽 `@deepseek-ai/dsh-*` peer 区间以覆盖宿主 0.2.0(0.2.0 的兼容闸会禁用 peer 区间不覆盖宿主版本的已装插件)。
package/README.en.md CHANGED
@@ -34,7 +34,7 @@ dsh plugin --profile web remove @khorsheed/dsh-client-session-title-edit
34
34
 
35
35
  - npm release line (host `0.1.7-rc.2`, next release `0.2.4`): ✅ full — the rename rides the official `session.rename`, and **in-place editing works on both the 0.1.5 and 0.1.7 host lines** (one text-based probe covers the 0.1.5/0.1.6 disabled crumb button and the plain-text crumb that replaced it in 0.1.7-alpha.1), proven by the dual-line suite and on both host lines in a live instance; the minHost floor stays at `0.1.2-rc.1`.
36
36
  - Published `0.2.3` and earlier: on hosts from 0.1.7-alpha.1 the current crumb is no longer a disabled button, so in-place editing falls back to the inline editor in the actions row (**renaming itself keeps working**, it just no longer overlays the title); `0.2.4` restores it.
37
- - source line (deepseek-harness master, `0.1.7-rc.2`): ✅ (verifiedHost: `0.1.7-rc.2`)
37
+ - source line (deepseek-harness master): ✅ (verifiedHost: `0.2.1-rc.1`) — host-021 wave: full build+test green against the 0.2.1-rc.1 tree; no other surface changes.
38
38
 
39
39
  **Version line mapping**: 0.2.0 and up support host `0.1.2-rc.1` and later; hosts on `0.1.0-rc.6` ~ `0.1.1-rc.2` stay on the 0.1.x release line (last release `0.1.0`).
40
40
 
package/README.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # last confirmed-consistent state. Both languages carry equal authority; after
3
3
  # editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/session-title-edit/README.en.md
5
- packages/session-title-edit/README.en.md: 0a8cc7956e7b923a32640451eb6bf8b4c95d1f7b
6
- packages/session-title-edit/README.md: fce91b839aedaea17db2646de9090f6e2f49dda1
5
+ packages/session-title-edit/README.en.md: 637db734f67d45bb28461dd8a6e37928b9c78d52
6
+ packages/session-title-edit/README.md: 8d87ed93d739d2a499cfa2e35867160894d20bde
package/README.md CHANGED
@@ -34,7 +34,7 @@ dsh plugin --profile web remove @khorsheed/dsh-client-session-title-edit
34
34
 
35
35
  - npm 发布线(宿主 `0.1.7-rc.2`,下一版 `0.2.4`):✅ 完整——改名走官方 `session.rename`;**就地覆盖在 0.1.5 与 0.1.7 两条宿主线上都可用**(同一套文本定位同时覆盖 0.1.5/0.1.6 的 disabled crumb 按钮与 0.1.7-alpha.1 起的纯文本 crumb),双线单测 + 两条宿主线实机验收通过;minHost 地板保持 `0.1.2-rc.1` 不动。
36
36
  - 已发布版本 `0.2.3` 及更早:在 0.1.7-alpha.1 起的宿主上,标题 crumb 不再是 disabled 按钮,就地覆盖会退回 actions 行内编辑器(**改名本身仍可用**,只是不再盖在标题上);升到 `0.2.4` 即恢复。
37
- - 源码线(deepseek-harness master,`0.1.7-rc.2`):✅(verifiedHost: `0.1.7-rc.2`)
37
+ - 源码线(deepseek-harness master):✅(verifiedHost: `0.2.1-rc.1`)——host-021 波对 0.2.1-rc.1 树全量 build+test 绿,无其它表面变化。
38
38
 
39
39
  **版本线对照**:0.2.0 起支持宿主 `0.1.2-rc.1` 及以后;宿主 `0.1.0-rc.6` ~ `0.1.1-rc.2` 的用户请停留在 0.1.x 发布线(末版 `0.1.0`)。
40
40
 
package/lib/client.js CHANGED
@@ -123,14 +123,14 @@ window.__ModuleLoader__.load({
123
123
  }
124
124
  var TitleEditAction_module_css_default = {
125
125
  "inPlaceHint": "okd51a_inPlaceHint",
126
+ "editorInput": "okd51a_editorInput",
127
+ "inPlaceError": "okd51a_inPlaceError",
126
128
  "renameButton": "okd51a_renameButton",
127
129
  "inPlaceMirror": "okd51a_inPlaceMirror",
128
- "inPlaceError": "okd51a_inPlaceError",
129
- "editorInput": "okd51a_editorInput",
130
- "editorError": "okd51a_editorError",
130
+ "inPlaceInput": "okd51a_inPlaceInput",
131
131
  "editor": "okd51a_editor",
132
132
  "editorHint": "okd51a_editorHint",
133
- "inPlaceInput": "okd51a_inPlaceInput"
133
+ "editorError": "okd51a_editorError"
134
134
  };
135
135
  //#endregion
136
136
  //#region src/client/TitleEditAction.tsx
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "session",
9
9
  "title"
10
10
  ],
11
- "version": "0.2.5",
11
+ "version": "0.2.6",
12
12
  "type": "module",
13
13
  "main": "lib/index.js",
14
14
  "types": "lib/types/index.d.ts",
@@ -17,10 +17,6 @@
17
17
  "types": "./lib/types/index.d.ts",
18
18
  "default": "./lib/index.js"
19
19
  },
20
- "./invariant": {
21
- "types": "./lib/types/invariant.d.ts",
22
- "default": "./lib/invariant.js"
23
- },
24
20
  "./client": {
25
21
  "types": "./lib/types/client/index.d.ts",
26
22
  "default": "./lib/client.js"
@@ -43,18 +39,20 @@
43
39
  },
44
40
  "compat": {
45
41
  "minHost": "0.1.2-rc.1",
46
- "verifiedHost": "0.1.7-rc.2",
42
+ "verifiedHost": "0.2.1-rc.1",
47
43
  "notes": "就地编辑是 DOM 层过渡方案(官方 header 无标题槽位),定位按「crumbs nav 最后一段里文本等于当前 displayTitle 的叶子节点」做:0.1.5/0.1.6 的当前 crumb 是 disabled 按钮,0.1.7-alpha.1 起(上游 92101e1a5b,让标题进入窗口拖拽条)是纯文本 span.crumbCurrent,两条宿主线因此共用一套定位;标题尚未投影或官方 DOM 再次变化时按设计退回 actions 行的行内编辑器(改名始终走官方 session.rename,不受影响)。已发布的 0.2.3 及更早版本在 0.1.7-alpha.1 起的宿主上只会走退回臂。"
48
44
  }
49
45
  },
50
46
  "license": "MIT",
47
+ "engines": {
48
+ "dsh": ">=0.1.2-rc.1 <0.3.0-0"
49
+ },
51
50
  "peerDependencies": {
52
51
  "@deepseek-ai/cordis": "^4.0.1",
53
- "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.6 || ^0.2.0-rc.1",
54
- "@deepseek-ai/dsh-client-ui-conversation": "^0.1.0-rc.6 || ^0.2.0-rc.1",
55
- "@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.6 || ^0.2.0-rc.1",
56
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.6 || ^0.2.0-rc.1",
57
- "@deepseek-ai/dsh-invariants": "^0.1.0-rc.6 || ^0.2.0-rc.1",
52
+ "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.6 || ^0.2.0-rc.1 || ^0.2.1-rc.1",
53
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.0-rc.6 || ^0.2.0-rc.1 || ^0.2.1-rc.1",
54
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.6 || ^0.2.0-rc.1 || ^0.2.1-rc.1",
55
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.6 || ^0.2.0-rc.1 || ^0.2.1-rc.1",
58
56
  "react": "^18.2.0"
59
57
  },
60
58
  "files": [
package/lib/invariant.js DELETED
@@ -1,26 +0,0 @@
1
- //#region lib/types/invariant.js
2
- /**
3
- * Package-owned invariant companion for `@khorsheed/dsh-client-session-title-edit`.
4
- * @module @khorsheed/dsh-client-session-title-edit/invariant
5
- */
6
- const PACKAGE_NAME = "@khorsheed/dsh-client-session-title-edit";
7
- /** Cordis companion plugin name. */
8
- const name = "client-session-title-edit-invariant";
9
- /** Service required before the companion can reserve package ownership. */
10
- const inject = ["invariants"];
11
- /**
12
- * No runtime invariant: every accepted rename is appended through the official
13
- * session service, whose session-title invariant companion audits the
14
- * `session/title` source relationship (a user rename must carry no message
15
- * citations), and the plugin's one header-slot entry proves disposal through
16
- * the browser-plugin spec. No second authority exists to check at runtime.
17
- */
18
- const install = () => {};
19
- /**
20
- * Register this package's invariant companion.
21
- * @param ctx - Cordis context carrying the invariant service.
22
- * @returns the installed registration's disposer after setup succeeds.
23
- */
24
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
25
- //#endregion
26
- export { apply, inject, name };
@@ -1,16 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@khorsheed/dsh-client-session-title-edit`.
3
- * @module @khorsheed/dsh-client-session-title-edit/invariant
4
- */
5
- import type { Context } from '@deepseek-ai/cordis';
6
- /** Cordis companion plugin name. */
7
- export declare const name = "client-session-title-edit-invariant";
8
- /** Service required before the companion can reserve package ownership. */
9
- export declare const inject: string[];
10
- /**
11
- * Register this package's invariant companion.
12
- * @param ctx - Cordis context carrying the invariant service.
13
- * @returns the installed registration's disposer after setup succeeds.
14
- */
15
- export declare const apply: (ctx: Context) => Promise<() => void>;
16
- //# sourceMappingURL=invariant.d.ts.map
@@ -1,24 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@khorsheed/dsh-client-session-title-edit`.
3
- * @module @khorsheed/dsh-client-session-title-edit/invariant
4
- */
5
- const PACKAGE_NAME = '@khorsheed/dsh-client-session-title-edit';
6
- /** Cordis companion plugin name. */
7
- export const name = 'client-session-title-edit-invariant';
8
- /** Service required before the companion can reserve package ownership. */
9
- export const inject = ['invariants'];
10
- /**
11
- * No runtime invariant: every accepted rename is appended through the official
12
- * session service, whose session-title invariant companion audits the
13
- * `session/title` source relationship (a user rename must carry no message
14
- * citations), and the plugin's one header-slot entry proves disposal through
15
- * the browser-plugin spec. No second authority exists to check at runtime.
16
- */
17
- const install = () => { };
18
- /**
19
- * Register this package's invariant companion.
20
- * @param ctx - Cordis context carrying the invariant service.
21
- * @returns the installed registration's disposer after setup succeeds.
22
- */
23
- export const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
24
- /* jscpd:ignore-end */