@66rpg/cgmaker 0.1.17 → 0.1.19
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 +1 -1
- package/bin/cgmaker.js +2 -2
- package/dist/index.js +22 -22
- package/dist/validate.js +1 -1
- package/package.json +2 -2
- package/skill/cgmaker/SKILL.md +1 -1
- package/skill/cgmaker-identity/SKILL.md +1 -1
- package/skill/cgmaker-play-sdk/SKILL.md +94 -0
- package/skill/cgmaker-play-sdk/references/api.md +81 -0
- package/skill/cgmaker-template-spec/SKILL.md +1 -1
- package/skill/cgmaker-template-spec/references/dist.md +1 -1
- package/skill/cgmaker-template-spec/references/layout.md +1 -1
package/README.md
CHANGED
|
@@ -22,4 +22,4 @@ Agent 调用请加 `--agent --json`(缺参退出 11、新版本退出 10、未
|
|
|
22
22
|
|
|
23
23
|
试玩是独立游戏。模板引用只要字符串 `template_id`。`publish-template` 的 `--version`(缺省 `package.json.version`)须 1–16 位,仅小写字母、数字、`.`、`-`;须以字母或数字开头和结尾,不能有连续符号。`publish-template` 默认不带数据包;该 `data_ver` 尚无包且本地有 `assets/` 则自动上传。再带包用 `--with-assets`。`--assets` 指定绝对路径(zip 内仍为 `assets/`),在 `publish-template` 上出现即视为要上传。只改资源、不发新代码版本用 `publish-template-data`(须已有 origin;未传 `--data-ver` 则读 `package.json`,不写回)。config 不随包:放到 `~/.cgmaker/config.json`。
|
|
24
24
|
|
|
25
|
-
流程给人看:仓库 `docs/users.md`。给 Agent:本包 `skill/cgmaker/SKILL.md`(怎么发)、`skill/cgmaker-identity/SKILL.md
|
|
25
|
+
流程给人看:仓库 `docs/users.md`、`docs/play-sdk.md`。给 Agent:本包 `skill/cgmaker/SKILL.md`(怎么发)、`skill/cgmaker-identity/SKILL.md`(参数与配置指南)、`skill/cgmaker-play-sdk/SKILL.md`(宿主 SDK)。
|
package/bin/cgmaker.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { run } from "../dist/index.js";
|
|
2
|
+
import { run, userFacingError } from "../dist/index.js";
|
|
3
3
|
|
|
4
4
|
run().catch((err) => {
|
|
5
|
-
console.error(
|
|
5
|
+
console.error(userFacingError(err));
|
|
6
6
|
process.exit(1);
|
|
7
7
|
});
|