dsh-chubby-whale 1.0.0 → 1.0.1
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
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# 更新日志
|
|
2
|
+
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
- 补 `CHANGELOG.md`,README 顶部加 npm / 许可证徽章
|
|
6
|
+
- 仓库内新增发布工具(不进 npm 包体积的运行时路径):
|
|
7
|
+
- `tools/version-check.mjs`:比对 本地 / Gitee / GitHub / npm 四处版本,`--deep` 再比对包内 `dist/client.js`
|
|
8
|
+
- `tools/gh-sync.mjs`:本机连不上 github.com 时,走 `api.github.com` 只传差异,幂等可重复跑
|
|
9
|
+
- `package.json` 新增 `npm run version:check`、`npm run sync:github`
|
|
10
|
+
- 新增 `docs/发布流程.md`:发版四步与常见坑(2FA、`0.0.0-stage` 占位、中文路径、包体积)
|
|
11
|
+
|
|
12
|
+
## 1.0.0
|
|
13
|
+
|
|
14
|
+
首发到 npm / GitHub / Gitee 三处。
|
|
15
|
+
|
|
16
|
+
- 网页桌宠:右下角常驻、拖拽带惯性、眨眼、气泡
|
|
17
|
+
- 语音对话:麦克风判停 → 硅基流动 Qwen3-ASR → DeepSeek 回复 → edge-tts 朗读
|
|
18
|
+
- 念诗 / 说书:本地诗词库与 17 本说书,连播、语速可调
|
|
19
|
+
- 记忆与成长:对话记忆、亲密度、成长经验、鱼粮统计
|
|
20
|
+
- 提醒:饭点提醒、到点主动开口
|
|
21
|
+
- 人设动作描写(`*甩甩尾巴*`)只在气泡里显示,不进语音通道
|
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# dsh-chubby-whale(肥鲸)
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/dsh-chubby-whale)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://gitee.com/adengou/dsh-chubby-whale)
|
|
6
|
+
|
|
3
7
|
DSH 网页版桌面宠物:蓝发女仆鲸鱼娘,常驻 harness 页面右下角。可拖拽(带惯性、位置记忆)、会眨眼、能说话、能说书念诗弹琴,也能听懂你说话。
|
|
4
8
|
|
|
5
9
|
| 渠道 | 地址 |
|
|
@@ -7,8 +11,10 @@ DSH 网页版桌面宠物:蓝发女仆鲸鱼娘,常驻 harness 页面右下
|
|
|
7
11
|
| 主仓库(GitHub) | <https://github.com/adengou/dsh-chubby-whale> |
|
|
8
12
|
| 镜像(Gitee) | <https://gitee.com/adengou/dsh-chubby-whale> |
|
|
9
13
|
| npm | <https://www.npmjs.com/package/dsh-chubby-whale> |
|
|
14
|
+
| 更新日志 | [CHANGELOG.md](CHANGELOG.md) |
|
|
10
15
|
|
|
11
16
|
> 语音待命的信号处理设计与调参:见 [docs/耳朵算法.md](docs/耳朵算法.md)
|
|
17
|
+
> 发版与三仓库对齐流程:见 [docs/发布流程.md](docs/发布流程.md)
|
|
12
18
|
|
|
13
19
|
## 安装(三种来源任选)
|
|
14
20
|
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# 发布流程(Gitee / GitHub / npm 三处保持一致)
|
|
2
|
+
|
|
3
|
+
> 唯一真源:本地 `package.json` 的 `version`。
|
|
4
|
+
> 三个渠道只是“读”它,谁不一致就用下面两步对齐。
|
|
5
|
+
|
|
6
|
+
## 一、发版前的自检
|
|
7
|
+
|
|
8
|
+
```powershell
|
|
9
|
+
cd C:\Users\eric8\.dsh\plugins\dsh-chubby-whale
|
|
10
|
+
npm test # 文字体检 + 39 项单测
|
|
11
|
+
npm run version:check # 本地 / Gitee / GitHub / npm 四处版本 + npm 包内 dist/client.js
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
输出示例(全 ✓ 才继续):
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
✓ 本地 (package.json) 1.0.0
|
|
18
|
+
✓ Gitee main 1.0.0
|
|
19
|
+
✓ GitHub main 1.0.0
|
|
20
|
+
✓ npm latest 1.0.0
|
|
21
|
+
✓ npm 包内 dist/client.js 与本地一致
|
|
22
|
+
✅ 三处版本一致
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## 二、升版本并发布
|
|
26
|
+
|
|
27
|
+
```powershell
|
|
28
|
+
npm version patch # 或 minor / major;会自动改 package.json 并建一次提交
|
|
29
|
+
npm run build # 重新打前端包
|
|
30
|
+
git push origin main # ① Gitee
|
|
31
|
+
npm run sync:github # ② GitHub(本机连不上 github.com,走 API 只传差异)
|
|
32
|
+
npm publish --registry=https://registry.npmjs.org # ③ npm
|
|
33
|
+
npm run version:check # 再验一次:四处应全部等于新版本
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## 三、各渠道的特别注意
|
|
37
|
+
|
|
38
|
+
| 渠道 | 方式 | 注意 |
|
|
39
|
+
| --- | --- | --- |
|
|
40
|
+
| Gitee | `git push origin main` | 正常推送;历史曾被重写过一次(清密钥),老克隆要重新拉 |
|
|
41
|
+
| GitHub | `npm run sync:github` | 本机 `github.com` 被墙,脚本走 `api.github.com`;凭据取自 git 凭据管理器 |
|
|
42
|
+
| npm | `npm publish --registry=https://registry.npmjs.org` | 必须显式指定官方源(本机默认源是 npmmirror 镜像);token 需带 Bypass 2FA |
|
|
43
|
+
|
|
44
|
+
## 四、npm token 的存放
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
~/.npmrc → //registry.npmjs.org/:_authToken=***
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
细粒度 token,建议只授权 `dsh-chubby-whale` 这一个包,并定期轮换。
|
|
51
|
+
|
|
52
|
+
## 五、常见坑
|
|
53
|
+
|
|
54
|
+
1. **npm publish 报 403 要求 2FA**:token 没勾 Bypass 2FA;或账号是 auth-and-writes 模式,需加 `--otp=6位`。
|
|
55
|
+
2. **npm 上出现 0.0.0-stage**:那是 npm 的“暂存发布”占位版本,正式版本通过验证后会覆盖 latest;占位版已在 npm 上标记 deprecated。
|
|
56
|
+
3. **GitHub 上传失败(中文文件名)**:`git ls-files` 默认转义路径,脚本里已用 `-c core.quotePath=false` + `-z` 处理。
|
|
57
|
+
4. **npm 包体积 9 MB**:主要来自 `data/story` 17 本说书(30 MB 源文件压缩后 9 MB)。若嫌大,可把说书拆成可选数据包(未做)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-chubby-whale",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "DSH 网页版桌面宠物「肥鲸」——蓝发鲸鱼娘,固定在 harness 页面右下角:会眨眼、能拖拽、点击可聊天,支持语音对话、念诗说书、饭点提醒。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"assets",
|
|
30
30
|
"README.md",
|
|
31
31
|
"LICENSE",
|
|
32
|
+
"CHANGELOG.md",
|
|
32
33
|
"config.example.json",
|
|
33
34
|
"docs"
|
|
34
35
|
],
|
|
@@ -61,7 +62,9 @@
|
|
|
61
62
|
"scripts": {
|
|
62
63
|
"build": "node scripts/check-bom.mjs && tsc -p tsconfig.json && esbuild src/client.ts --bundle --format=iife --external:react --outfile=dist/client.js",
|
|
63
64
|
"prepublishOnly": "npm run build",
|
|
64
|
-
"test": "node scripts/check-imports.mjs && node scripts/check-text.mjs && node scripts/test.mjs"
|
|
65
|
+
"test": "node scripts/check-imports.mjs && node scripts/check-text.mjs && node scripts/test.mjs",
|
|
66
|
+
"version:check": "node tools/version-check.mjs --deep",
|
|
67
|
+
"sync:github": "node tools/gh-sync.mjs"
|
|
65
68
|
},
|
|
66
69
|
"repository": {
|
|
67
70
|
"type": "git",
|