@bushizhanghan/dsh-publish-gate 0.1.0 → 0.1.2
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 +12 -1
- package/lib/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
# dsh-publish-gate —
|
|
1
|
+
# dsh-publish-gate — 帮你发布 DSH 插件的一键三连门禁
|
|
2
2
|
|
|
3
|
+
> **这个插件是给插件作者用的**:你写完一个 DSH 插件,想发 GitHub + npm + 插件市场,它帮你把发布前该查的全部查一遍,再给你照抄的命令清单。
|
|
4
|
+
>
|
|
3
5
|
> 发布一个 DSH 插件有七步,每一步都有一个**直到你付出代价才说话的坑**:`files` 忘了 `lib/` 于是发出去一个空包、PowerShell 写下的 BOM 让 `JSON.parse` 报一个不提 BOM 的错、patch 的 insert 行缩进错了于是插件装上了但**永远不加载**、裸包名让 granular token 收到一个既不说 token 也不说 scope 的 403。这个插件把整条链路的每个静默坑变成一条确定性检查。
|
|
4
6
|
|
|
5
7
|
六个 agent 工具:全量门禁、patch 专项、市场条目校验、版本推进、多插件体检、发布命令清单。
|
|
6
8
|
|
|
9
|
+
## 典型用法(写完插件后)
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
我写好了一个新插件 X,帮我发出去
|
|
13
|
+
→ agent 先调 publish_gate(X) 查所有静默坑
|
|
14
|
+
→ 有 blocker 就修,修完再跑
|
|
15
|
+
→ 全绿后调 publish_gate_commands(X, {version}) 拿 GitHub/npm/市场三步的命令,照抄执行
|
|
16
|
+
```
|
|
17
|
+
|
|
7
18
|
## 安装
|
|
8
19
|
|
|
9
20
|
```sh
|
package/lib/index.js
CHANGED
|
@@ -294,7 +294,7 @@ export function apply(ctx, config = {}) {
|
|
|
294
294
|
output: { schema: OUTPUT_SCHEMA, render: outRender },
|
|
295
295
|
timeoutMs: 120_000,
|
|
296
296
|
isConcurrencySafe: () => false,
|
|
297
|
-
presentCall: (args) => ({ card: 'generic', title: t.name, kind: '
|
|
297
|
+
presentCall: (args) => ({ card: 'generic', title: t.name, kind: 'read', rawInput: args }),
|
|
298
298
|
execute: t.execute,
|
|
299
299
|
})
|
|
300
300
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bushizhanghan/dsh-publish-gate",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Helps DSH plugin AUTHORS publish their plugins: a one-command gate that turns every silent failure in the publish path into a deterministic check — package.json completeness, BOM, YAML/JSON parseability, junction and patch insert correctness, npm scope permissions, GitHub repo and token state, market entry format, LICENSE/README, test suite. 帮助插件作者一键发布:写完插件后跑一遍门禁,把发布链路上的每个静默坑变成确定性检查,然后 GitHub + npm + 市场一键三连。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|