dsh-edit-turn 0.5.3 → 0.5.4

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 CHANGED
@@ -278,10 +278,11 @@ ln -s /path/to/dsh-install/node_modules ./node_modules
278
278
 
279
279
  ### 更新日志
280
280
 
281
- **(工作区)** —— 会话 id 校验放宽 + 空会话按空状态处理。
281
+ **0.5.4** —— 设置卡导出给组合包(dsh-as-aistudio);会话 id 校验放宽,空会话按空状态处理。
282
282
 
283
283
  - **会话 id 不再只认 UUID**:命名会话(例如 `bili-whale`,`~/.dsh/storages/<profile>/sessions/bili-whale.json`)是完全合法的会话,但这里的校验只接受 UUID 形式,于是对它的每个请求都被 400 拒掉 —— 面板上就是「状态加载失败,稍后重试。」。现在按 DSH 自己的语法(宿主侧 schema 就是 `z.string().min(1)`)放宽为 `/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/`,仍然挡住 `/`、`\`、`..`、空白与控制字符。
284
284
  - **查不到会话按空状态处理**:没有日志的会话(刚建的命名会话)返回空状态而不是 404 —— 面板正常加载、显示"没有可操作的内容",日志一出现下一次刷新就接上。
285
+ - **设置卡导出**:`exports.ConfigCard`(就是 `EditorStyleOption` 那个组件)现在对外导出,于是聚合包 dsh-as-aistudio 能在自己的插件页上渲染**这同一张卡**,而不是照着重画一份。同一份设置、同一份存储键,两个入口不会漂移;单独装本插件时那张卡仍在本插件自己的行上。
285
286
 
286
287
 
287
288
  **0.5.3** —— 编辑框随内容长高;隐藏兜底不再吞掉第三方插件的按钮。
package/lib/client.js CHANGED
@@ -45,7 +45,7 @@ window.__ModuleLoader__.load({
45
45
  const RERUN_PREFIX = '/dsh-rerun-turn'
46
46
 
47
47
  /** Keep in sync with package.json and lib/index.js. */
48
- const PLUGIN_VERSION = '0.5.3'
48
+ const PLUGIN_VERSION = '0.5.4'
49
49
 
50
50
  // --- copy -----------------------------------------------------------------
51
51
 
@@ -5040,6 +5040,10 @@ window.__ModuleLoader__.load({
5040
5040
  }
5041
5041
 
5042
5042
  exports.apply = apply
5043
+ // The settings card, exported so a composing bundle (dsh-as-aistudio) can
5044
+ // render THE SAME component on its own page instead of re-implementing it:
5045
+ // one source of truth for 编辑与重跑 settings.
5046
+ exports.ConfigCard = EditorStyleOption
5043
5047
  exports.inject = ['slots', 'locale']
5044
5048
  exports.PLUGIN_VERSION = PLUGIN_VERSION
5045
5049
  return module.exports
package/lib/index.js CHANGED
@@ -80,7 +80,7 @@ export const PLUGIN_ID = 'dsh-edit-turn'
80
80
  export const name = PLUGIN_ID
81
81
 
82
82
  /** Keep in sync with package.json and lib/client.js. */
83
- export const PLUGIN_VERSION = '0.5.3'
83
+ export const PLUGIN_VERSION = '0.5.4'
84
84
 
85
85
  // A ring of the last few requests, answering "did the browser half even ask, and
86
86
  // what did it get?" without needing its console. Read-only diagnostics: the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-edit-turn",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Edit any message in DeepSeek Harness in place: a prompt is replaced where it stands; a model reply block (answer text or reasoning) is patched through a plugin record and a message projection, so the turn stays where it is, later turns are untouched and the log grows by one small record. Falls back to the replay splice on hosts without the projection API. The append-only session log is never rewritten.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",