@q253595422/dsh-imagegen-video 1.28.0 → 1.29.0

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
@@ -5,6 +5,14 @@ Attribution for third-party code is in [NOTICE](./NOTICE).
5
5
 
6
6
  ## Releases
7
7
 
8
+ ### 1.29.0 — 插件改名「团团TV」
9
+
10
+ - **插件显示名定为「团团TV」**(英文界面 `TuanTuan TV`),包名 `@q253595422/dsh-imagegen-video` 不变——npm 包名不允许中文,改的是用户看到的那一层。声明方式是 `locale/zh.json` 与 `locale/en.json` 的 `meta.title`:宿主插件详情页从这个字段取标题,**此前没有声明,于是回退显示完整包名**,页面上就是 `@q253595422/dsh-imagegen-video`。
11
+ - **三语品牌文案统一**:`entry.label`(侧边栏入口)、`panel.title`(面板标题,原为 `VisioWork`)、`settings.title`(设置卡标题)、`config.disabledTitle`(停用提示)在 zh / en / ru 三语里改成同一个名字。此前三处各写各的,互不一致。
12
+ - **Agent 指导文案与 `/edit_image` 成功提示**同步改用新名;指导文案保留包名以免模型对不上实际安装的模块。
13
+ - **刻意不改**:设置分区名「生图配置 / Image settings / Настройки генерации」。它是位置名不是品牌名,后端 22 处错误提示与 3 条测试断言按它定位,改它得成批同步且不带来品牌收益。
14
+ - 新增 `smoke` 的 **D6** 守卫:两语 `meta.title` 必须存在且非空、中文必须是「团团TV」、英文不得回退成包名、且与界面里的 `panel.title` / `entry.label` 一致。**反向验证过**:删掉 `meta.title` 后 D6 变红。这个字段纯展示、没有运行时代码读它,漏写不会有别的检查报错。
15
+
8
16
  ### 1.28.0 — 插件拆成 13 个可独立装卸的组件;画布整图导出/导入;Agent 读写画布结构
9
17
 
10
18
  - **宿主侧从一个组件拆成 13 个**:1 个共享核心(`imagegen`:设置、渠道、队列、订阅、更新、浏览器工作台)+ 12 个独立 feature 组件(image / video / canvas / gallery / templates / skills / ppt / ecommerce / outfit / prompt / storage / diagnostics)。每个都有自己的 exports 子路径、多语言文件与注册行,可单独 mount 与 unload;路由归属由一处判定函数决定,未知端点留在核心;移除核心连带挂起依赖者。这是生命周期边界不是权限边界——浏览器侧仍是一个共享工作台,已提交的上游任务不会因卸载而取消。老安装需重新加载新版包并重组 bundle 才能看到这 13 行。
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # dsh-imagegen-video
1
+ # 团团TV(TuanTuan TV)
2
2
 
3
- > **图片与视频一体化的 DSH 生图 / 生视频插件。**
3
+ > **图片与视频一体化的 DSH 生图 / 生视频插件。**(包名 `@q253595422/dsh-imagegen-video`)
4
4
  > 生图之外,本仓库提供**完整的生视频链路**,以及**画布视频节点、片段拼接**。
5
5
  > 各版本的改动见 [CHANGELOG.md](./CHANGELOG.md),第三方代码归属见 [NOTICE](./NOTICE)。
6
6
 
@@ -0,0 +1,27 @@
1
+ # v1.29.0 — 插件改名「团团TV」
2
+
3
+ 本版只做一件事:**把插件在界面上显示的名字定为「团团TV」**。包名 `@q253595422/dsh-imagegen-video` 不变(npm 的包名不允许中文,也不该为了改显示名去动它),改的是用户看到的那一层。
4
+
5
+ ## 为什么要改
6
+
7
+ 插件详情页此前显示的标题是**完整的包名**:`@q253595422/dsh-imagegen-video`。
8
+
9
+ 原因不在包名写错了,而在插件详情页的标题来源:宿主从插件包的 `locale/<语言>.json` 里读 `meta.title`,**没有声明这个字段时回退到 manifest 的 `name`**,也就是完整包名。本仓库的 `locale/zh.json` 与 `locale/en.json` 当时只声明了 `meta.description`,于是标题就一路回退成了包名——面板里、侧边栏里、设置里的名字也都各写各的(`AI 生图`、`VisioWork`、`Image settings`),三者并不一致。
10
+
11
+ ## 改了什么
12
+
13
+ - **声明插件显示名**:`locale/zh.json` 的 `meta.title` 为「团团TV」,`locale/en.json` 为「TuanTuan TV」。宿主按当前界面语言取对应值,两者都不再回退到包名。
14
+ - **界面内三语品牌文案统一**:`entry.label`(侧边栏入口)、`panel.title`(工作台面板标题,原为 `VisioWork`)、`settings.title`(设置卡标题)、`config.disabledTitle`(插件停用提示)在 zh / en / ru 三种语言里都换成同一个名字。
15
+ - **Agent 指导文案**:`IMAGEGEN_GUIDANCE` 里「本机已安装 dsh-imagegen 插件(DSH AI 生图)」改为「本机已安装团团TV(TuanTuan TV,包名 dsh-imagegen)」,保留包名是为了让模型仍能对上实际安装的模块。
16
+ - **`/edit_image` 成功提示**:由「可在 AI 生图面板查看结果」改为「可在团团TV 面板查看结果」。
17
+ - **README 标题**改为「团团TV(TuanTuan TV)」,正文标注实际包名。
18
+
19
+ **没有改的**:设置里的分区名「生图配置 / Image settings / Настройки генерации」。它是**位置名而不是品牌名**——后端有 22 处错误提示写着「请打开设置 → 生图配置」,改它就得分批同步那些提示与三条测试断言,而它本身并不承担品牌职责。
20
+
21
+ ## 测试
22
+
23
+ 新增 `smoke` 的 **D6**:断言 `locale/zh.json` 与 `locale/en.json` 都声明了非空的 `meta.title`、中文标题确实是「团团TV」、英文标题不是包名、并且与界面里的 `panel.title` / `entry.label` 一致。**反向验证过**:删掉 `meta.title` 后 D6 变红(`zh.json declares meta.title`),还原后转绿。这条守卫存在的意义是 `meta.title` 是纯展示字段,没有任何运行时代码读它,漏写不会有别的检查报错——只会在用户眼前悄悄变回一串包名。
24
+
25
+ `pnpm run typecheck`、`pnpm build`、`node scripts/smoke.mjs`、`node scripts/verify-tracked.mjs`、`node scripts/verify-pack.mjs` 全部通过;打出的 tgz 内 `package/locale/zh.json` 与 `package/locale/en.json` 已确认带上新的 `meta.title`。
26
+
27
+ **未验证**:真实宿主插件详情页的渲染结果——那需要重启 DSH 桌面应用后由用户目视确认。
package/icon.png ADDED
Binary file
package/index.js ADDED
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Package root entry point -- what the Cordis loader imports for `id: imagegen`.
3
+ *
4
+ * WHY this file exists instead of pointing `main` at `lib/index.js` directly:
5
+ * `lib/` is build output and is gitignored, so a source-only tree (a fresh
6
+ * clone before `pnpm build`, or anything that inspects the repository without
7
+ * building it) has no file for the manifest to point at. Third-party
8
+ * registries read the manifest and check that the declared runtime entry
9
+ * actually exports `apply(ctx)`; with `main` aimed at a file that is not in
10
+ * the repository, that check cannot be satisfied no matter what the source
11
+ * says, and the plugin is recorded as having no runtime at all.
12
+ *
13
+ * So the committed entry is this two-line re-export, `main`/`exports["."]`
14
+ * point at it, and `files` ships it next to `lib/`. The archive therefore has
15
+ * BOTH -- the stable committed declaration and the built code behind it -- and
16
+ * `scripts/verify-pack.mjs` checks that whatever the manifest declares is
17
+ * really inside the tarball.
18
+ *
19
+ * Keep the explicit `apply` line: the star export alone re-exports it, but a
20
+ * named export makes the plugin contract (`apply` / `name` / `inject`) visible
21
+ * from the file a reader or a tool actually opens.
22
+ */
23
+ export * from './lib/index.js'
24
+ export { apply } from './lib/index.js'