@dsh-plugins/dsh-museav-assets 0.1.1 → 0.1.3

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,30 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.3](https://github.com/webkubor/dsh-museav-assets/compare/v0.1.2...v0.1.3) (2026-10-12)
4
+
5
+
6
+ ### 🐛 Bug Fixes
7
+
8
+ * **release:** auto-merge 挂不上时兜底直接合并 ([18446e2](https://github.com/webkubor/dsh-museav-assets/commit/18446e27dd4a231910717a4a63c6a3d5af555e36))
9
+ * **release:** mergeable_state 是异步的,unknown 要等而不是放弃 ([2989941](https://github.com/webkubor/dsh-museav-assets/commit/2989941c7eeee1fd15bb030e4ffa756d24e90718))
10
+ * **release:** 等 check 跑完再挂 auto-merge ([45eb121](https://github.com/webkubor/dsh-museav-assets/commit/45eb12129568ebee6dfed048d450b87f7fb93429))
11
+
12
+
13
+ ### 🛠️ CI / Build
14
+
15
+ * **release:** 接上 release-please,发版从此零人工 ([4e5d335](https://github.com/webkubor/dsh-museav-assets/commit/4e5d335ce20ed0134b55d903421a871a2673c7ef))
16
+
17
+ ## 0.1.2
18
+
19
+ - **修 0.1.1 装不上:`cordis.patch.yml` 的 `id` 缺引号。** 包名迁到 `@dsh-plugins`
20
+ scope 时只给 `name` 加了引号、漏了 `id`,而 `@` 是 YAML 保留起始字符,于是整个
21
+ patch 解析失败、dsh 拒绝安装:
22
+ `Cannot validate installed package …: YAMLException: bad indentation of a mapping entry`。
23
+ 症状是指向配置文件,看着像配置写错,实为包名未引用。**0.1.1 请勿使用。**
24
+ - **补门禁**:`test/cordis-patch.test.mjs` 拦「未加引号的 `@scope` 值」+「id 必须等于包名」。
25
+ 刻意不引 js-yaml(本仓零依赖),改成对源文本做 YAML 标量合法性检查 —— 这类问题是
26
+ YAML 规范层面的硬错误,不存在误报。已反向验证:把 bug 放回去,测试确实 fail。
27
+
3
28
  ## Unreleased
4
29
 
5
30
  - **接入发版门禁** —— 与另外三个 dsh 插件同一套:`scripts/prepublish-gate.mjs` +
@@ -20,7 +45,9 @@
20
45
  ## 0.1.1
21
46
 
22
47
  - **包名迁到 `@dsh-plugins/dsh-museav-assets`**(与另外三个插件同一 scope)。
23
- 无 scope 的 `dsh-museav-assets` 是 0.1.0 的历史名,已 deprecated 指向本名。
48
+ 无 scope 的 `dsh-museav-assets@0.1.0`(06:04 发出)**已于 09:29 撤回**(unpublish)——
49
+ 先发无 scope 再改 scope 是白折腾一轮,而且撤回的名字 24 小时后任何人都能抢。
50
+ 教训已写进 `../README.md` 的命名规则节。
24
51
  四处身份同步改:`package.json` / `export const name` / client 的 `ModuleLoader.id` /
25
52
  `cordis.patch.yml`;路由前缀 `/api/dsh-museav-assets` 保持不变(它与包名无关)。
26
53
 
package/README.en.md CHANGED
@@ -31,7 +31,8 @@ session shell: `dsh-user-mirror`'s Memory tab does the same.
31
31
  ## Install
32
32
 
33
33
  > **Package name: `@dsh-plugins/dsh-museav-assets`** (same scope as the three sibling plugins).
34
- > The unscoped `dsh-museav-assets` was the original 0.1.0 name; it is deprecated and points here.
34
+ > The unscoped `dsh-museav-assets` was a one-off name published by mistake; it was **unpublished**
35
+ > on 2026-10-02. Use the scoped name only.
35
36
 
36
37
  On the desktop app, install it from the app's **plugin manager** (it pulls from npm) — the CLI
37
38
  cannot write to the `desktop` profile
package/README.md CHANGED
@@ -52,7 +52,8 @@ ctx.slots.register({
52
52
  ## 装
53
53
 
54
54
  > **包名 `@dsh-plugins/dsh-museav-assets`**(与另外三个插件同一 scope)。
55
- > `dsh-museav-assets`(无 scope)是最早 0.1.0 的历史名,已 deprecated,指向本名。
55
+ > `dsh-museav-assets`(无 scope)是走错路时发过一版的临时名 —— **已于 2026-10-02 撤回**(unpublish),
56
+ > 请只用本名。教训:新插件一开始就用 scope 名,别先发无 scope 再撤回(撤回的名字 24 小时后任何人都能抢)。
56
57
 
57
58
  桌面端在**应用内的插件管理**里装 —— 它从 npm 拉。命令行装不进 `desktop` profile
58
59
  (`profile "desktop" is managed exclusively by the Electron application`)。
package/cordis.patch.yml CHANGED
@@ -3,8 +3,13 @@
3
3
  # 作为 dsh.bundle.patch 被 dsh 加载器消费。insert 引用本包,加载器从 profile 的
4
4
  # node_modules 解析它并挂成 Cordis 插件。
5
5
  # 不写 config = 用插件 Config 默认值(见 lib/index.js export const Config)。
6
+ # ⚠️ id 与 name 都必须加引号:包名带 scope 后以 `@` 开头,而 `@` 是 YAML 保留
7
+ # 起始字符,不加引号整个文件会解析失败("bad indentation of a mapping entry")。
8
+ # 2026-10-02 0.1.1 实际炸过一次:包名迁 scope 时只给 name 加了引号、漏了 id,
9
+ # 于是 dsh 拒绝安装该包 —— 症状是「装上就报 Cannot validate installed package」,
10
+ # 而报错落在 cordis.patch.yml 的解析上,看着像配置写错,其实是包名没引用。
6
11
  - insert:
7
12
  # 插件只暴露 4 条只读/轻写路由,全部 fail-open:CLI 没装、没登录、出错都回
8
13
  # {ok:false,error},不影响 boot graph。
9
- - id: @dsh-plugins/dsh-museav-assets
14
+ - id: '@dsh-plugins/dsh-museav-assets'
10
15
  name: '@dsh-plugins/dsh-museav-assets'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-plugins/dsh-museav-assets",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "MUSE AV 资产台:在 DSH 主区加一个「资产」tab,按项目(工作区)看素材库与最近出图,点素材复制直链当垫图用。基于本机 museav CLI,不碰任何密钥。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",