@yss123/create-cage-app 0.3.0 → 0.3.2

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 (2) hide show
  1. package/README.md +6 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  从 Cage 模板创建 TypeScript + React 中后台项目。生成领域声明、契约、API、worker、业务 Web 与部署配置,由同版本 `@yss123/cage-*` 包提供框架能力。本包是 `cage create` 的简短命令入口,无需全局安装,也没有供业务导入的运行时 API。
4
4
 
5
- 产物自带 `AGENTS.md`、`docs/ai` 业务开发指南、采购标准范例与 `docs/errors` 错误码册。使用 Codex 等编程工具时,让它先读项目根目录 `AGENTS.md`,按 `docs/ai/recipes.md` 开发客户业务,无需克隆 Cage 框架仓库。
5
+ 产物自带 `AGENTS.md`、`CLAUDE.md`、`.agents/skills/cage-development`、`docs/development` 业务开发指南、采购标准范例与 `docs/errors` 错误码册。使用编程 agent 时,从这些入口读取项目内的 Cage Skill;需求或文档不明确时,提出疑点、可行选项与推荐,由用户选择业务规则,再按框架实现和验收,无需克隆 Cage 框架仓库。
6
+
7
+ 这些资料随新项目一起创建。已有项目的 `cage sync` 只更新 AGENTS 托管区,不会自动刷新教材或 Skill;升级时需从同版本模板审查并合入资料,保留项目自己的业务约定。
6
8
 
7
9
  ## 使用
8
10
 
@@ -14,7 +16,7 @@ pnpm create @yss123/cage-app my-app
14
16
 
15
17
  | 模板 | 内容 |
16
18
  | --- | --- |
17
- | 空白业务项目 `blank` | 登录、用户/部门/角色、权限、系统管理和 AI 教材;采购源码仅存于 docs 供参考 |
19
+ | 空白业务项目 `blank` | 登录、用户/部门/角色、权限、系统管理和 框架教材;采购源码仅存于 docs 供参考 |
18
20
  | 采购示例项目 `purchase` | 完整采购、库存锁、审批、fake ERP 及业务页面 |
19
21
 
20
22
  脚本或 CI 可跳过选择,必须明确指定目录和模板:
@@ -66,13 +68,13 @@ pnpm dev
66
68
  | `apps/web/src/modules` | 按业务模块组织页面与交互 |
67
69
  | `apps/web/src/shared` | 无具体业务归属的共用组件和工具 |
68
70
  | `db/migrations` | 审查后的数据库迁移,已执行版本不改写 |
69
- | `docs/ai`、`docs/errors` | 本地学习资料和错误排查 |
71
+ | `docs/development`、`docs/errors` | 本地学习资料和错误排查 |
70
72
 
71
73
  新增对象后运行 `pnpm exec cage check`、`pnpm gen`,审查迁移,并由管理员配置新能力与数据范围。
72
74
 
73
75
  空白模板中的采购源码仅位于 `docs/examples/purchase-admin`,不参与运行或建表;采购模板的 ERP 默认 fake 不等于真实联调通过,AI 能力也需模型配置、权限和迁移才能实际使用。
74
76
 
75
- - [完整使用说明](https://github.com/shunshunyue/cage/blob/main/docs/使用说明.md)
77
+ - [完整使用说明](https://github.com/shunshunyue/cage/blob/main/docs/manual/使用说明.md)
76
78
  - [框架源码与范例](https://github.com/shunshunyue/cage)
77
79
  - [问题反馈](https://github.com/shunshunyue/cage/issues)
78
80
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yss123/create-cage-app",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "description": "从 Cage 薄壳模板创建中后台项目",
6
6
  "bin": {
@@ -10,7 +10,7 @@
10
10
  "bin"
11
11
  ],
12
12
  "dependencies": {
13
- "@yss123/cage-cli": "0.3.0"
13
+ "@yss123/cage-cli": "0.3.2"
14
14
  },
15
15
  "license": "MIT",
16
16
  "repository": {