cortico-world-onepiece 0.12.1 → 0.12.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +30 -1
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.12.3
4
+
5
+ 没有代码改动,简介末尾加 QQ 交流群 745879632(中英两版)。
6
+
7
+ ## 0.12.2
8
+
9
+ 没有代码改动,补的是「以后怎么发版」。
10
+
11
+ - **CI**:推 `main` 跑八个测试套件;推 `vX.Y.Z` tag 自动发到 npm
12
+ - 发布走 npm **trusted publishing**(OIDC 临时凭证),仓库里不存任何 token;带 `--provenance`,包页上能看到它是从哪个 commit、哪个 workflow 构建的
13
+ - workflow 里先比对 tag 和 `package.json` 的版本,再查该版本发过没有——重跑、手动触发都不会撞 409
14
+ - README 补「发版」一节;安装一节加了 `npm i` 这条更省事的路
15
+
3
16
  ## 0.12.1
4
17
 
5
18
  只改元数据,一行逻辑没动。
package/README.md CHANGED
@@ -29,6 +29,17 @@
29
29
 
30
30
  需要先装好 [Coopanion](https://github.com/Pal-AI-Lab/Coopanion)(它自己是一个 DSH 插件)。
31
31
 
32
+ 两种装法,选一种。
33
+
34
+ **方式一:从 npm 装**(最省事)
35
+
36
+ ```bash
37
+ cd <Coopanion 数据目录>/extensions
38
+ npm i cortico-world-onepiece
39
+ ```
40
+
41
+ **方式二:本地链接**(想改代码就用这个)
42
+
32
43
  把这个仓库克隆到任意位置,然后编辑 Coopanion 数据目录下的 `extensions/package.json`,加一条本地链接依赖:
33
44
 
34
45
  ```json
@@ -41,7 +52,25 @@
41
52
 
42
53
  然后在 Coopanion 里重载扩展(或直接重启应用),到设置里找到「海贼王大冒险」,打开并配置。
43
54
 
44
- Node.js >= 22。不需要 `npm install`——这个包没有运行时依赖。
55
+ Node.js >= 22。包本身没有运行时依赖。
56
+
57
+ ## 发版
58
+
59
+ 改版本号、提交,然后打个 tag 推上去:
60
+
61
+ ```bash
62
+ npm version patch --no-git-tag-version # 或手动改 package.json
63
+ git commit -am "0.12.2"
64
+ git tag v0.12.2
65
+ git push origin main --tags
66
+ ```
67
+
68
+ GitHub Actions 会先跑完测试,再发到 npm(`.github/workflows/publish.yml`)。用的是 npm **trusted publishing**——仓库里不存任何 token,但要先在 npm 上配一次:
69
+
70
+ > npmjs.com → 这个包 → Settings → Trusted publishing → GitHub Actions
71
+ > Organization `liqin1018` · Repository `cortico-world-onepiece` · Workflow `publish.yml`
72
+
73
+ 同一个版本号发过就不能覆盖,所以 workflow 里先查一遍:已经发过就安静跳过,重跑和手动触发都不会报错。
45
74
 
46
75
  ## 关于版权
47
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortico-world-onepiece",
3
- "version": "0.12.1",
3
+ "version": "0.12.3",
4
4
  "description": "给 Coopanion 桌宠的航海剧情世界:119 章连载、三回合 BOSS、同伴与船坞、名刀 / 果实 / 霸气 / 图鉴,四块石碑之后还有隐藏章。整块面板是复古羊皮纸风。",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -71,11 +71,11 @@
71
71
  "locales": {
72
72
  "zh": {
73
73
  "displayName": "海贼王大冒险",
74
- "description": "给桌宠的赏金世界:119 章连载,她一章一章往前打,打不过就自己练级。三回合 BOSS、同伴与船坞、三档名刀、十八颗果实、三种霸气、132 条图鉴,四块石碑凑齐还有一段隐藏章。羊皮纸与木牌的复古航海界面,单机、不联网、不额外调用模型。"
74
+ "description": "给桌宠的赏金世界:119 章连载,她一章一章往前打,打不过就自己练级。三回合 BOSS、同伴与船坞、三档名刀、十八颗果实、三种霸气、132 条图鉴,四块石碑凑齐还有一段隐藏章。羊皮纸与木牌的复古航海界面,单机、不联网、不额外调用模型。有问题或想聊两句:QQ 群 745879632。"
75
75
  },
76
76
  "en": {
77
77
  "displayName": "Bounty Seas",
78
- "description": "A bounty world for your desktop pet: 119 serialized chapters she clears one at a time, three-round bosses, a crew and a six-part ship to build up, three tiers of named blades, 18 fruits, three kinds of aura, a 132-entry codex, four stone tablets and a hidden final chapter. Aged-parchment retro nautical UI. Single-player, offline, no extra model calls."
78
+ "description": "A bounty world for your desktop pet: 119 serialized chapters she clears one at a time, three-round bosses, a crew and a six-part ship to build up, three tiers of named blades, 18 fruits, three kinds of aura, a 132-entry codex, four stone tablets and a hidden final chapter. Aged-parchment retro nautical UI. Single-player, offline, no extra model calls. Questions or just want to chat: QQ group 745879632."
79
79
  }
80
80
  }
81
81
  }