openxiangda-cli 2.3.0 → 2.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openxiangda-cli",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "OpenXiangda 2.0 应用生命周期命令、创建器与模板。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@oclif/core": "4.13.3",
|
|
24
|
-
"openxiangda-contracts": "2.
|
|
25
|
-
"openxiangda-devkit-core": "2.
|
|
26
|
-
"openxiangda-mcp": "2.0.
|
|
27
|
-
"openxiangda-skill-kit": "2.0.
|
|
24
|
+
"openxiangda-contracts": "2.11.0",
|
|
25
|
+
"openxiangda-devkit-core": "2.8.0",
|
|
26
|
+
"openxiangda-mcp": "2.0.16",
|
|
27
|
+
"openxiangda-skill-kit": "2.0.20"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"tsx": "4.23.12",
|
package/template/AGENTS.md
CHANGED
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
- 模型、页面、导航和权限由应用声明一次;编译器生成契约。业务代码不改生成结果、不创建 platform/data、不复制平台 Router、字段组件、客户端或权限状态。
|
|
9
9
|
- 当前用户、角色并集、数据授权和部署状态归平台;应用不保存凭据或授权快照。普通 CRUD 走 Data API,真实业务动作才按需启用 Nest。
|
|
10
10
|
- 标准业务字段使用 `openxiangda/field-kit`;PC 补充控件使用 antd,移动使用有作用域的 `openxiangda/mobile` 和 MobileSurface,不引入上游全局重置。
|
|
11
|
+
- 管理后台默认仅 PC:复用平台 Shell,后台自定义报表/工具通过 admin 页面和显式菜单接入,不复制顶栏/侧栏,不自动创建手机后台。独立用户页与移动用户任务按实际需求设计,模板 /home 不替代页面选型。
|
|
12
|
+
- 图表等专业交互先检查现有依赖并评估成熟组件/开源库,报表优先评估 ECharts,按需加载并释放实例;平台数据、权限与聚合仍通过官方能力。详见 docs frontend。
|
|
13
|
+
- 入口与导航验收从平台应用列表开始,检查应用根路径、后台首个有权菜单、登录返回及刷新深链接;不能只验证开发者给出的业务链接。
|
|
11
14
|
- 无账号表单读取 `docs public-access`,使用 frontend.publicAccess 和专用客户端;标准审批、通知和后端均按需启用。
|
|
12
15
|
- 日常使用 dev 和聚焦测试。只验证时使用 check;授权部署时直接 deploy,它已包含检查、测试和构建。生产必须指定成功测试运行并复用同一版本。
|
|
13
16
|
- deploy 默认持续反馈并跟踪平台结果;观察中断用 status <运行ID> --watch 继续,保留原运行,不重新构建。平台部署成功后仍需真实角色业务验收。
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { defineAdminNavigation, defineOpenXiangdaApp } from 'openxiangda/config';
|
|
2
2
|
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Start with business tasks and choose their surface before reusing this starter.
|
|
5
|
+
* /home is a user-page placeholder. PC admin pages belong in the standard Shell:
|
|
6
|
+
* declare admin operations or explicit CRUD and frontend.admin.navigation.
|
|
7
|
+
* Only user tasks with a mobile requirement need a mobile page; admin is PC-only.
|
|
8
|
+
*/
|
|
4
9
|
export default defineOpenXiangdaApp({
|
|
5
10
|
app: { code: 'openxiangda-application', name: 'OpenXiangda 应用' },
|
|
6
11
|
frontend: {
|