openxiangda 1.0.172 → 1.0.173
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 +4 -7
- package/lib/change-baseline.js +117 -18
- package/lib/cli.js +695 -102
- package/lib/form-schema-loader.js +166 -0
- package/lib/git-remote-identity.js +89 -0
- package/lib/release-mainline.js +46 -24
- package/lib/release-plan.js +294 -0
- package/lib/runtime-lineage.js +23 -3
- package/lib/sdd.js +178 -41
- package/openxiangda-skills/SKILL.md +4 -6
- package/openxiangda-skills/references/openxiangda-api.md +6 -6
- package/openxiangda-skills/references/pages/page-sdk.md +1 -1
- package/openxiangda-skills/references/permissions-settings.md +4 -3
- package/openxiangda-skills/skills/openxiangda-core/SKILL.md +4 -6
- package/openxiangda-skills/skills/openxiangda-permission-settings/SKILL.md +5 -4
- package/package.json +2 -1
- package/packages/sdk/dist/runtime/react.d.mts +3 -0
- package/packages/sdk/dist/runtime/react.d.ts +3 -0
- package/templates/openxiangda-react-spa/AGENTS.md +5 -11
- package/templates/openxiangda-react-spa/scripts/deploy.mjs +2 -8
- package/templates/sy-lowcode-app-workspace/AGENTS.md +2 -2
|
@@ -6,15 +6,9 @@ const lines = [
|
|
|
6
6
|
'',
|
|
7
7
|
'请使用一个显式 change 和精确资源 selector:',
|
|
8
8
|
' openxiangda resource plan <type> --only <codes> --profile <name>',
|
|
9
|
-
' openxiangda
|
|
10
|
-
' openxiangda sdd verify <change> --changed --stage prepublish',
|
|
11
|
-
' openxiangda release begin --change <change> --profile <name>',
|
|
12
|
-
' openxiangda resource publish function,automation --only function:<code>,automation:<code> --stage-only --change <change> --profile <name>',
|
|
13
|
-
' openxiangda release app-finalize --staged-resources-json .openxiangda/releases/<change>/staged-resources.json --change <change> --profile <name>',
|
|
9
|
+
' openxiangda release publish --change <change> --profile <name>',
|
|
14
10
|
'',
|
|
15
|
-
'
|
|
16
|
-
' openxiangda release integration-status --profile <name>',
|
|
17
|
-
' openxiangda release end --profile <name>',
|
|
11
|
+
'该命令只接受已经 merge/fast-forward 并 push 的权威主分支,自动暂存并原子激活。',
|
|
18
12
|
'',
|
|
19
13
|
];
|
|
20
14
|
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
- ✅ 架构类需求先 plan gate:`openxiangda doctor --profile <name> --json` + `openxiangda design gates --topic <code> --json`,用户确认后再实现。
|
|
43
43
|
- ✅ L2/L3 保留 context → propose → 用户确认 → approve,但默认 streamlined:approval、coverage 与实际发布范围为硬门禁,未完成的任务/证据/规格文案只告警。需要严格文档门禁时显式配置 `strictDocumentation: true`。
|
|
44
44
|
- ✅ 涉及账号、角色、权限、数据范围、组织账号、RBAC、查询参数授权时,先跑 `openxiangda design gates --topic permissions --json`,选择 `managed-platform-account` / `existing-platform-user-assignment` / `static-role-permission` / `query-param-context`,并输出权限矩阵后再改资源。
|
|
45
|
-
- ✅
|
|
45
|
+
- ✅ 某个应用角色如果要查询组织账号,声明 `app:organization:read`;如需创建、修改账号/部门或重置密码,再声明 `app:organization:manage`。角色设置、页面/表单权限组等能力同样通过 `src/resources/roles/<code>.json` 的 `apiPermissionCodes` 显式授权,例如 `app:role:manage`、`app:page-permission-group:manage`、`app:form-permission-group:manage`。
|
|
46
46
|
- ✅ 单文件改动默认按 change 和逻辑资源增量发布:`workspace plan --profile <name> --change <change> --changed`,再 `workspace publish --profile <name> --change <change> --only pages/a,forms/b --dry-run` → 正式发布。
|
|
47
47
|
- ✅ 用户 token 在 `~/.openxiangda/profiles.json`;项目 state 在 `.openxiangda/state.json`(只存 ID)。
|
|
48
48
|
- ✅ 共享环境(`APP_OSS_*`、反馈机器人等)在 `~/.openxiangda/.env`,项目 `.env` 仅做 per-workspace override。
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
- ✅ 正式多资源开发优先写 `src/resources/**` 后执行 `openxiangda resource validate|plan|publish <type> --only <codes>`;单资源可用 `--code <code>`。直接 CLI 写平台资源时先 `--dry-run`,需要避免漂移就加 `--write-manifest`。
|
|
54
54
|
- ✅ `resource plan` 与 publish dry-run 严格只允许 GET/HEAD;遇到 `READ_ONLY_AUTH_REQUIRED` 时先执行 `openxiangda auth refresh --profile <name>` 或重新登录,不得在 plan 内自动 POST 刷新 token。
|
|
55
55
|
- ✅ Function/Automation 使用 Backend Release v2;正式多资源发布用精确 `--only/--code` 加 `--stage-only` 暂存,同一 child 可混合 create、source-only update 和显式 manifest replacement,再由 Root App finalize 原子激活。整包 manifest 替换必须另加 `--replace-manifest --reason "..."`。
|
|
56
|
-
- ✅ 正式 promotion 先聚合 mainline bundle 并 commit/push,再运行 `release
|
|
56
|
+
- ✅ 正式 promotion 先聚合 mainline bundle 并 commit/push,再运行 `release publish --change <id> --profile <name>`。它只接受与权威远端默认主分支完全一致的 clean HEAD,自动 verify、等待租约、冻结 capture、精确暂存、Root App 原子激活并记录可恢复执行日志;CAS、精确 selector 与禁止越界/delete 仍是硬门禁。
|
|
57
57
|
|
|
58
58
|
## 严禁
|
|
59
59
|
|