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

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.7(2026-10-26)
4
+
5
+ - 无功能变更:仓内目录随 npm 包名改为 `packages/client-session-title-edit`(包名不变,安装与使用无感),README 里的路径与截图尺寸随之更新。
6
+
3
7
  ## 0.2.6(2026-10-22)
4
8
 
5
9
  无功能变更。适配宿主 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 伴生探针(空仪式,无行为变化)。
package/README.en.md CHANGED
@@ -6,7 +6,7 @@ Rename a session whenever you like: click the little pencil by the title, hit En
6
6
 
7
7
  Auto-generated session titles are often off the mark, and finding a session again two days later is pure luck. This plugin puts a pencil next to the title in the chat header: one click and the title becomes an input in place, prefilled and fully selected. Enter saves, Escape cancels, and a draft that's too long gets a warning instead of silent truncation. Renames go through the official `session.rename` RPC, and the title never enters the model context — the model knows nothing about it.
8
8
 
9
- <img src="https://raw.githubusercontent.com/Khorsheed/dsh-basic/main/docs/screenshots/session-title-edit1.png" width="640" alt="the pencil button beside the title in the chat header, with a rename-session tooltip on hover">
9
+ <img src="https://raw.githubusercontent.com/Khorsheed/dsh-basic/main/docs/screenshots/session-title-edit1.png" width="560" alt="the pencil button beside the title in the chat header, with a rename-session tooltip on hover">
10
10
 
11
11
  ## Features
12
12
 
@@ -16,7 +16,7 @@ Auto-generated session titles are often off the mark, and finding a session agai
16
16
  - **Budget-aware** — drafts past the host's 80-UTF-8-byte title budget are blocked with a warning, never silently truncated.
17
17
  - **Zero footprint** — rides the official `session.rename` RPC; the title never enters model context (no token or KV-cache effect).
18
18
 
19
- <img src="https://raw.githubusercontent.com/Khorsheed/dsh-basic/main/docs/screenshots/session-title-edit2.png" width="640" alt="after clicking the pencil the title becomes an input in place — edit and press Enter to save">
19
+ <img src="https://raw.githubusercontent.com/Khorsheed/dsh-basic/main/docs/screenshots/session-title-edit2.png" width="560" alt="after clicking the pencil the title becomes an input in place — edit and press Enter to save">
20
20
 
21
21
  ## Install
22
22
 
@@ -68,7 +68,7 @@ Nothing changes for the model: the title is a projection-only property, never in
68
68
 
69
69
  ## Development
70
70
 
71
- Part of the [dsh-plugins](https://github.com/Khorsheed/dsh-plugins) monorepo (`packages/session-title-edit`). Issues and contributions welcome there.
71
+ Part of the [dsh-plugins](https://github.com/Khorsheed/dsh-plugins) monorepo (`packages/client-session-title-edit`). Issues and contributions welcome there.
72
72
 
73
73
  ## Changelog
74
74
 
package/README.i18n.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  # Bilingual-pair consistency record: the git blob hash of each side as of the
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
- # pnpm run verify-translation-pairing --write packages/session-title-edit/README.en.md
5
- packages/session-title-edit/README.en.md: 637db734f67d45bb28461dd8a6e37928b9c78d52
6
- packages/session-title-edit/README.md: 8d87ed93d739d2a499cfa2e35867160894d20bde
4
+ # pnpm run verify-translation-pairing --write packages/client-session-title-edit/README.en.md
5
+ packages/client-session-title-edit/README.en.md: 004736255c6d7eb0c04a8af130d8aec51df44c2e
6
+ packages/client-session-title-edit/README.md: e1dff9453cc766f9a7e4f6b3e0562a3a7458a225
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  自动起的会话标题常常词不达意,过两天想找回某个会话全靠运气。这个插件在聊天区顶部的标题旁放了一支铅笔:点一下,标题就地变成输入框,预填好当前名字并全选;Enter 保存、Escape 取消,名字起得太长会先被警告拦下,绝不悄悄截断。改名走的是官方 `session.rename` 接口,标题永远不会进入模型上下文,模型对此一无所知。
8
8
 
9
- <img src="https://raw.githubusercontent.com/Khorsheed/dsh-basic/main/docs/screenshots/session-title-edit1.png" width="640" alt="聊天区头部标题旁的铅笔按钮,悬停显示「重命名会话」">
9
+ <img src="https://raw.githubusercontent.com/Khorsheed/dsh-basic/main/docs/screenshots/session-title-edit1.png" width="560" alt="聊天区头部标题旁的铅笔按钮,悬停显示「重命名会话」">
10
10
 
11
11
  ## 特性
12
12
 
@@ -16,7 +16,7 @@
16
16
  - **预算把关**——超过宿主 80 UTF-8 字节标题预算的草稿被警告拦下,绝不静默截断。
17
17
  - **零足迹**——走官方 `session.rename` RPC;标题永远不会进入模型上下文(无 token 或 KV 缓存影响)。
18
18
 
19
- <img src="https://raw.githubusercontent.com/Khorsheed/dsh-basic/main/docs/screenshots/session-title-edit2.png" width="640" alt="点击铅笔后标题就地变成输入框,直接修改后回车保存">
19
+ <img src="https://raw.githubusercontent.com/Khorsheed/dsh-basic/main/docs/screenshots/session-title-edit2.png" width="560" alt="点击铅笔后标题就地变成输入框,直接修改后回车保存">
20
20
 
21
21
  ## 安装
22
22
 
@@ -68,7 +68,7 @@ src/client/slots.ts 槽位声明
68
68
 
69
69
  ## 开发
70
70
 
71
- 隶属 [dsh-plugins](https://github.com/Khorsheed/dsh-plugins) monorepo(`packages/session-title-edit`)。问题与贡献请移步该仓库。
71
+ 隶属 [dsh-plugins](https://github.com/Khorsheed/dsh-plugins) monorepo(`packages/client-session-title-edit`)。问题与贡献请移步该仓库。
72
72
 
73
73
  ## 变更记录
74
74
 
package/lib/client.js CHANGED
@@ -112,7 +112,7 @@ window.__ModuleLoader__.load({
112
112
  }
113
113
  //#endregion
114
114
  //#region \0dsh-css:src/client/TitleEditAction.module.css.mjs
115
- const css = ".okd51a_renameButton{width:22px;height:22px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;margin-left:-12px;padding:0;display:inline-flex}.okd51a_renameButton:hover,.okd51a_renameButton:focus-visible{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover)}.okd51a_editor{align-items:center;gap:6px;display:inline-flex}.okd51a_editorInput{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);width:220px;height:28px;color:var(--dsw-alias-label-primary);background:0 0;border-radius:6px;outline:none;padding:3px 8px;font-size:12px;line-height:18px}.okd51a_editorInput:focus{border-color:var(--dsw-alias-brand-primary)}.okd51a_editorInput:disabled{color:var(--dsw-alias-label-dimmed)}.okd51a_editorError{color:var(--dsw-alias-state-error-primary);font-size:12px;line-height:18px}.okd51a_editorHint{color:var(--dsw-alias-state-warn-primary);font-size:12px;line-height:18px}.okd51a_inPlaceInput{box-sizing:border-box;z-index:40;color:var(--dsw-alias-label-primary);background:0 0;border:1px solid #0000;border-radius:12px;outline:none;padding:4px 8px;font-size:14px;font-weight:500;line-height:20px;position:fixed}.okd51a_inPlaceInput:focus{border-color:var(--dsw-alias-brand-primary);background:var(--dsw-alias-bg-base)}.okd51a_inPlaceInput:disabled{color:var(--dsw-alias-label-dimmed)}.okd51a_inPlaceMirror{visibility:hidden;white-space:pre;pointer-events:none;font-family:inherit;font-size:14px;font-weight:500;position:absolute;top:-9999px;left:-9999px}.okd51a_inPlaceError{color:var(--dsw-alias-state-error-primary);margin-left:6px;font-size:12px;line-height:18px}.okd51a_inPlaceHint{color:var(--dsw-alias-state-warn-primary);margin-left:6px;font-size:12px;line-height:18px}header nav [data-ste-inplace]{visibility:hidden!important}";
115
+ const css = ".JYeHca_renameButton{width:22px;height:22px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;margin-left:-12px;padding:0;display:inline-flex}.JYeHca_renameButton:hover,.JYeHca_renameButton:focus-visible{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover)}.JYeHca_editor{align-items:center;gap:6px;display:inline-flex}.JYeHca_editorInput{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);width:220px;height:28px;color:var(--dsw-alias-label-primary);background:0 0;border-radius:6px;outline:none;padding:3px 8px;font-size:12px;line-height:18px}.JYeHca_editorInput:focus{border-color:var(--dsw-alias-brand-primary)}.JYeHca_editorInput:disabled{color:var(--dsw-alias-label-dimmed)}.JYeHca_editorError{color:var(--dsw-alias-state-error-primary);font-size:12px;line-height:18px}.JYeHca_editorHint{color:var(--dsw-alias-state-warn-primary);font-size:12px;line-height:18px}.JYeHca_inPlaceInput{box-sizing:border-box;z-index:40;color:var(--dsw-alias-label-primary);background:0 0;border:1px solid #0000;border-radius:12px;outline:none;padding:4px 8px;font-size:14px;font-weight:500;line-height:20px;position:fixed}.JYeHca_inPlaceInput:focus{border-color:var(--dsw-alias-brand-primary);background:var(--dsw-alias-bg-base)}.JYeHca_inPlaceInput:disabled{color:var(--dsw-alias-label-dimmed)}.JYeHca_inPlaceMirror{visibility:hidden;white-space:pre;pointer-events:none;font-family:inherit;font-size:14px;font-weight:500;position:absolute;top:-9999px;left:-9999px}.JYeHca_inPlaceError{color:var(--dsw-alias-state-error-primary);margin-left:6px;font-size:12px;line-height:18px}.JYeHca_inPlaceHint{color:var(--dsw-alias-state-warn-primary);margin-left:6px;font-size:12px;line-height:18px}header nav [data-ste-inplace]{visibility:hidden!important}";
116
116
  const tagId = "@khorsheed/dsh-client-session-title-edit/TitleEditAction.module.css";
117
117
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
118
118
  const tag = document.createElement("style");
@@ -122,15 +122,15 @@ window.__ModuleLoader__.load({
122
122
  document.head.appendChild(tag);
123
123
  }
124
124
  var TitleEditAction_module_css_default = {
125
- "inPlaceHint": "okd51a_inPlaceHint",
126
- "editorInput": "okd51a_editorInput",
127
- "inPlaceError": "okd51a_inPlaceError",
128
- "renameButton": "okd51a_renameButton",
129
- "inPlaceMirror": "okd51a_inPlaceMirror",
130
- "inPlaceInput": "okd51a_inPlaceInput",
131
- "editor": "okd51a_editor",
132
- "editorHint": "okd51a_editorHint",
133
- "editorError": "okd51a_editorError"
125
+ "editorHint": "JYeHca_editorHint",
126
+ "editorError": "JYeHca_editorError",
127
+ "editorInput": "JYeHca_editorInput",
128
+ "editor": "JYeHca_editor",
129
+ "inPlaceInput": "JYeHca_inPlaceInput",
130
+ "inPlaceMirror": "JYeHca_inPlaceMirror",
131
+ "inPlaceError": "JYeHca_inPlaceError",
132
+ "renameButton": "JYeHca_renameButton",
133
+ "inPlaceHint": "JYeHca_inPlaceHint"
134
134
  };
135
135
  //#endregion
136
136
  //#region src/client/TitleEditAction.tsx
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Generated by scripts/sync-icon-artwork.mts from @deepseek-ai/dsh-client-ui-primitives
3
- * (v0.1.7-rc.1, harness 46a7f68b09) — do not edit by hand. The 0.1.5 and rc.1 host lines
3
+ * (v0.2.1-rc.1, harness 1600d8a1e1) — do not edit by hand. The 0.1.5 and rc.1 host lines
4
4
  * share no icon export name, so the rc.1 artwork is inlined here: pure SVG,
5
5
  * no host runtime identity, identical on every line. Re-run the generator
6
6
  * after adding an icon import or bumping the harness checkout.
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "session",
9
9
  "title"
10
10
  ],
11
- "version": "0.2.6",
11
+ "version": "0.2.7",
12
12
  "type": "module",
13
13
  "main": "lib/index.js",
14
14
  "types": "lib/types/index.d.ts",