@xia-sc/dsh-cc-studio 0.3.2 → 0.3.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
@@ -6,6 +6,8 @@
6
6
 
7
7
  # dsh-cc-studio · CCv3 角色卡工坊
8
8
 
9
+ [![npm version](https://img.shields.io/npm/v/@xia-sc/dsh-cc-studio?color=%237c5cff)](https://www.npmjs.com/package/@xia-sc/dsh-cc-studio)
10
+
9
11
  > 从一句话点子到可导入 SillyTavern / Risu 的 `chara_card_v3`。专治「只有点子,世界观薄弱」。
10
12
 
11
13
  DSH(DeepSeek Harness)插件:输入框上方的胶囊 → 全屏融合工坊,配合 `CC 模式` 预设让 LLM 通过 14 个 Tool **先问再填**、与你共创角色卡,最后一键导出 `JSON / PNG / CHARX`。
@@ -13,8 +15,8 @@ DSH(DeepSeek Harness)插件:输入框上方的胶囊 → 全屏融合工
13
15
  | 项目 | 值 |
14
16
  | --- | --- |
15
17
  | 插件包名 | `@xia-sc/dsh-cc-studio` |
16
- | 当前版本 | `0.3.2` |
17
- | 宿主 RPC | `/dsh-cc-studio-rpc`(自带路由,适配 dsh ≥ `0.1.5-rc.1`;已在 `0.1.6-alpha.1` 实测) |
18
+ | 当前版本 | `0.3.4` |
19
+ | 宿主 RPC | `/dsh-cc-studio-rpc`(自带路由,适配 dsh ≥ `0.1.5-rc.1`;已在 `0.1.6-alpha.2` 实测) |
18
20
  | 客户端挂载点 | `conversation.input.dock`(胶囊)+ `shell.overlay`(工坊)+ `settings.section` |
19
21
  | 落盘位置 | `~/.dsh/cc-library/`(角色卡)、`~/.dsh/cc-drafts/`(会话草稿) |
20
22
 
@@ -26,7 +28,7 @@ DSH(DeepSeek Harness)插件:输入框上方的胶囊 → 全屏融合工
26
28
  dsh plugin --profile web add @xia-sc/dsh-cc-studio
27
29
 
28
30
  # 锁定版本
29
- dsh plugin --profile web add @xia-sc/dsh-cc-studio@0.3.2
31
+ dsh plugin --profile web add @xia-sc/dsh-cc-studio@0.3.4
30
32
  ```
31
33
 
32
34
  **或从 GitHub 源安装**:
@@ -243,12 +245,11 @@ dsh-cc-studio/
243
245
  ├── presets/cc/ # CC 模式预设模板(共创 persona + cc-studio-agent)
244
246
  │ ├── preset.yml
245
247
  │ └── agent.cordis.yml
246
- ├── prototypes/ # A/B 融合前的对比原型(H5,浏览器直接打开)
247
- │ ├── index.html
248
- │ ├── prototype-a.html # 轻量浮层
249
- │ └── prototype-b.html # 侧边常驻
250
- ├── tests/
251
- │ └── rpc-channel.test.mjs # host 半 RPC 通道回归(假 ctx + 真实 http,23 项断言)
248
+ ├── tests/ # 4 个测试文件、158 项断言(不随包发布)
249
+ │ ├── rpc-channel.test.mjs # host 半 RPC 通道回归(假 ctx + 真实 http,23 项断言)
250
+ │ ├── preset-install.test.mjs # 预设自动安装决策 + 预设行契约,41 项断言
251
+ │ ├── cc-detection.test.mjs # CC 模式探测的源码级守卫,32 项断言
252
+ │ └── client-greetings.test.mjs # 客户端问候语与 i18n 守卫,62 项断言
252
253
  ├── CHANGELOG.md # 完整版本历史
253
254
  ├── README.md # 中文(默认)
254
255
  └── README_EN.md # English
@@ -259,11 +260,10 @@ dsh-cc-studio/
259
260
  ## 开发与测试
260
261
 
261
262
  ```bash
262
- pnpm test # = node tests/rpc-channel.test.mjs
263
- node tests/rpc-channel.test.mjs # host 半 RPC 通道回归(23 项断言)
263
+ npm test # 4 个文件、158 项断言(四个 node 脚本串联)
264
+ node tests/rpc-channel.test.mjs # 只跑 host 半 RPC 通道回归(23 项断言)
264
265
  ```
265
266
 
266
- - **原型预览**(本地直接打开,无需安装):`prototypes/index.html` 总览 → `prototype-a.html`(轻量浮层)/ `prototype-b.html`(侧边常驻)对比。
267
267
  - **改客户端**:`lib/client.js` 改动刷新页面即可;跑着 dsh 仓库的 `pnpm run dev:web` 时可热更新。
268
268
  - **改宿主**:`lib/index.js` 改动需重启 dsh web(宿主行在启动时组合)。
269
269
 
@@ -280,6 +280,8 @@ node tests/rpc-channel.test.mjs # host 半 RPC 通道回归(23 项
280
280
 
281
281
  完整历史见 [CHANGELOG.md](./CHANGELOG.md)。最近几版:
282
282
 
283
+ - `0.3.4` 适配 dsh `0.1.6-alpha.2` 并补回两处预设漏抄:CC 预设缺 `present` 行(CC 模式下模型没有「登记交付物」的工具,且不报错)、`tool-subagent` 行缺 `modelSelectionSettings: true`(子代理的指定模型入口被静默关掉);顺带补上 alpha.2 新增的 `tool-plugin-manager` 行(`disabled`,与内置 `standard` 对齐到只剩有意的行差)。新增 7 项预设行契约守卫。
284
+ - `0.3.3` 发布流程自动化:打 `v*` tag 即由 GitHub Actions 发布到 npm(OIDC trusted publishing,零密钥)并自动建 GitHub Release;手动触发默认只做安全自检。插件运行时行为未变。
283
285
  - `0.3.2` 包名迁移至 `@xia-sc/dsh-cc-studio`(原 `@dsh-plugins` 不是本项目持有的 npm scope),并首次发布到 npm;新增 `publishConfig.access` / `prepublishOnly` 等发布元数据。
284
286
  - `0.3.1` 适配 dsh `0.1.6-alpha.1`:CC 预设里的 `workflow-worker-thread` 行换成 `workflow-ptc`,否则整份预设被判「加载失败」、CC 模式直接不可选。
285
287
  - `0.3.0` 移除「点子」页:工坊导航改为 4 页(5维世界观 / 角色细化 / 世界书 / 校验导出),`⛶ 大框` 能力改用统一 `fieldHead()` 落到全部长文本 string 字段,侧栏搜索保留。同步修掉该改动引入的数组往返回退(`[]` 会被写成 `[""]`,即凭空多一条空白问候语);并把问候语字段改为**逐条独立编辑**(一条 = 一个编辑框),根除「多段问候语一编辑就被拆成多条」的静默损坏,顺带补上问候语增删与 10 条上限对齐。另修大框「取消」真正回滚、清掉自 67172fd 起就调不通的 `expandIdea` / `expandWorld` 死代码、**完成全量 i18n 接线**(此前词表已建好但大量调用点硬编码中文,切到 English 仍显示中文;现全部 122 条中文字面量接入词表,中文界面逐字未变)、**CC 预设改为自动安装**(此前需手工拷贝),并修掉**首次切到 CC 模式时胶囊不出现**(探测读错了 `projectionValues.agentPreset` 字段,导致必须刷新页面或切换会话才出现)。