dsh-metaphysics 0.13.4 → 0.13.6
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 +12 -0
- package/README.md +13 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
版本按「一组可感知的改动」发,README 与市场条目描述随能力同步。
|
|
4
4
|
|
|
5
|
+
## 0.13.6
|
|
6
|
+
|
|
7
|
+
- 修 `npm run release` 的发布后核对:npm 的发布是异步的(PUT 返回 202,registry 生效实测要 1–4 分钟),脚本原来 30 秒就判定失败
|
|
8
|
+
- 改为对 tarball 轮询 HEAD,最多等 6 分钟;超时只提示「已提交,稍后自查」而不报错
|
|
9
|
+
- 顺手核对 `dist-tags`,`latest` 不指向新版本时给出 `npm dist-tag add` 的建议
|
|
10
|
+
|
|
11
|
+
## 0.13.5
|
|
12
|
+
|
|
13
|
+
- 新增 `npm run release`(`tools/release.mjs`):一条命令走完「测试 → 构建 → 校验产物 → 发 npm」,token 只从环境变量 `NPM_TOKEN` 读,临时 `.npmrc` 用后即删
|
|
14
|
+
- 发布前会拦下三种情况:git 工作区不干净、`client.js` 与源码不同步、registry 上已有同版本
|
|
15
|
+
- `-- --dry-run` 只跑到校验;本机没装 npm CLI 时用 `NPM_CLI=/path/to/npm-cli.js` 指定
|
|
16
|
+
|
|
5
17
|
## 0.13.4
|
|
6
18
|
|
|
7
19
|
- 新增 `npm run build` / `npm run build:html` / `npm test`:`tools/test-all.mjs` 顺序跑完 20 个测试文件并汇总退出码,省掉手敲一长串 `node test/*.mjs`
|
package/README.md
CHANGED
|
@@ -151,11 +151,23 @@ dsh plugin install ./dsh-metaphysics-0.6.0.tgz
|
|
|
151
151
|
npm run build # 生成 client.js(浏览器端产物)
|
|
152
152
|
npm run build:html # 生成独立的 命理排盘.html(可离线双击使用)
|
|
153
153
|
npm test # 顺序跑完 test/ 下全部 *.test.mjs 并汇总
|
|
154
|
+
npm run release # 测试 → 构建 → 校验产物 → 发 npm(token 从 NPM_TOKEN 读)
|
|
154
155
|
```
|
|
155
156
|
|
|
156
|
-
也可以直接调脚本:`node tools/build-client.mjs`、`node tools/build-html.mjs`、`node tools/test-all.mjs`。
|
|
157
|
+
也可以直接调脚本:`node tools/build-client.mjs`、`node tools/build-html.mjs`、`node tools/test-all.mjs`、`node tools/release.mjs`。
|
|
157
158
|
`client.js` 是构建产物,不要手改;改动记录见 [CHANGELOG.md](CHANGELOG.md)。
|
|
158
159
|
|
|
160
|
+
### 发版
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
# 先在 npm 生成 Granular Token:Read and write + 勾 Bypass 2FA
|
|
164
|
+
NPM_TOKEN=npm_xxx npm run release # 正式发布(会先跑测试与构建校验)
|
|
165
|
+
NPM_TOKEN=npm_xxx npm run release -- --dry-run # 只校验不发布
|
|
166
|
+
NPM_CLI=/path/to/npm-cli.js NPM_TOKEN=... npm run release # 本机没有 npm CLI 时
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
脚本会拦下:工作区不干净、`client.js` 未随源码重建、registry 上已有同版本;发布后自动核对新版本与 `dist-tags`,并提示补 `git tag`。
|
|
170
|
+
|
|
159
171
|
### 样式命名约定
|
|
160
172
|
|
|
161
173
|
面板的 CSS 是以 `<style>` 注入到宿主页面的,**没有 shadow DOM 隔离**,所以每个类名都带命名空间前缀,避免和宿主页面的同名元素互相染色:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-metaphysics",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "命理排盘 for DeepSeek Harness: BaZi four pillars (42 shensha, pattern / useful-god / luck scoring), Zi Wei Dou Shu (34 patterns, 大限, 流年四化), LiuYao with real line rendering, MeiHua YiShu, Da Liu Ren (heaven-earth plate, four lessons, three transmissions) and Tarot, Ask(所问之事 + 询问方向)driven interpretation, plus a plain-language 解析与详解 module (five dimensions + hexagram/card sections) — as an agent tool plus a Web panel.",
|
|
6
6
|
"keywords": [
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "node tools/build-client.mjs",
|
|
47
47
|
"build:html": "node tools/build-html.mjs",
|
|
48
|
-
"test": "node tools/test-all.mjs"
|
|
48
|
+
"test": "node tools/test-all.mjs",
|
|
49
|
+
"release": "node tools/release.mjs"
|
|
49
50
|
},
|
|
50
51
|
"exports": {
|
|
51
52
|
".": "./index.js",
|