@66rpg/cgmaker 0.1.22 → 0.1.24
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 +27 -25
- package/dist/index.js +40 -46
- package/dist/validate.js +1 -1
- package/package.json +2 -2
- package/share/run-logic.mjs +1 -1
- package/skill/cgmaker/SKILL.md +120 -121
- package/skill/cgmaker-identity/SKILL.md +44 -45
- package/skill/cgmaker-identity/references/branches.md +123 -162
- package/skill/cgmaker-identity/references/fields.md +64 -59
- package/skill/cgmaker-template-spec/SKILL.md +12 -11
- package/skill/cgmaker-template-spec/references/layout.md +30 -22
package/README.md
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
# @66rpg/cgmaker
|
|
2
|
-
|
|
3
|
-
作者工程里的平台工具。Node.js 20
|
|
4
|
-
|
|
5
|
-
`validate-template`
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx cgmaker validate-template
|
|
9
|
-
npx cgmaker
|
|
10
|
-
npx cgmaker
|
|
11
|
-
npx cgmaker publish
|
|
12
|
-
npx cgmaker publish
|
|
13
|
-
npx cgmaker publish-template
|
|
14
|
-
npx cgmaker publish-template --
|
|
15
|
-
npx cgmaker publish-template
|
|
16
|
-
npx cgmaker publish-template-data
|
|
17
|
-
npx cgmaker publish-project
|
|
18
|
-
npx cgmaker skill --platform cursor
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
# @66rpg/cgmaker
|
|
2
|
+
|
|
3
|
+
作者工程里的平台工具。Node.js 20+。不要全局安装。原生命令 **目前仅 Windows x64**。
|
|
4
|
+
|
|
5
|
+
`validate-template` 检查工程是否符合模板规范。`validate` 转调工程里必有的 `npm run validate`(有独立试玩数据时同一条命令检查两份,不要 `validate:demo`)。`login` / `publish` 等走平台。
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx cgmaker validate-template
|
|
9
|
+
npx cgmaker validate
|
|
10
|
+
npx cgmaker login
|
|
11
|
+
npx cgmaker publish
|
|
12
|
+
npx cgmaker publish --demo
|
|
13
|
+
npx cgmaker publish-template
|
|
14
|
+
npx cgmaker publish-template --with-assets
|
|
15
|
+
npx cgmaker publish-template --data-summary "..."
|
|
16
|
+
npx cgmaker publish-template-data
|
|
17
|
+
npx cgmaker publish-project
|
|
18
|
+
npx cgmaker skill --platform cursor
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
人在终端走交互;编辑器里跑命令会自动补齐缺的信息。终端若检测到新版本会询问是否更新。`npx cgmaker publish` 上传前会列出基本信息并确认;不想询问时可加 `--no-interactive`。
|
|
22
|
+
|
|
23
|
+
试玩是独立作品。开工程第一位置用网页给的 `用户名/slug`(可 `@版本`),或模板 id / 版本 id。不要用平台展示名去开工程。开工程下载素材用 `--with-assets <数据包ID>`。
|
|
24
|
+
|
|
25
|
+
`publish-template` 首发必须有合法 `package.json.name`(不能含 `/` `@`)。空了会问你并写回;如果这个字段已经带 `@`,不要改它,发布时会再问展示名。模板 `package.json.version` 须 1–16 位,仅小写字母、数字、`.`、`-`;须以字母或数字开头和结尾,不能有连续符号。还没发布过时第一版不能绑数据包。再发一版默认不带数据包;该 `data_ver` 尚无包且本地有 `assets/` 则自动上传。再带包用 `--with-assets`(开关)。素材说明可用 `--data-summary`。素材目录固定工程 `assets/`。只改资源、不发新代码版本用 `publish-template-data`。派生用 `--fork <版本ID>`;要带本地包加 `--with-assets`。发版不传更新说明,请到网页改。
|
|
26
|
+
|
|
27
|
+
流程给人看:仓库 `docs/users.md`、`docs/play-sdk.md`。给 Agent:本包 `skill/cgmaker/SKILL.md`(怎么发)、`skill/cgmaker-identity/SKILL.md`(参数与配置指南)、`skill/cgmaker-play-sdk/SKILL.md`(宿主 SDK)。
|