openxiangda 1.0.230 → 1.0.232
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 -2
- package/lib/cli.js +453 -68
- package/lib/delivery-v2-cli.js +216 -0
- package/lib/delivery-v2-executor.js +955 -0
- package/lib/delivery-v2-package.js +681 -0
- package/lib/policy.js +4 -0
- package/lib/workspace-bootstrap.js +1 -0
- package/lib/workspace-init.js +4 -20
- package/openxiangda-skills/SKILL.md +21 -1
- package/openxiangda-skills/skills/openxiangda-core/SKILL.md +17 -0
- package/package.json +4 -2
- package/packages/sdk/dist/build/index.cjs.map +1 -1
- package/packages/sdk/dist/build/index.d.mts +1 -0
- package/packages/sdk/dist/build/index.d.ts +1 -0
- package/packages/sdk/dist/build/index.mjs.map +1 -1
- package/policy/openxiangda-policy.json +8 -1
- package/templates/openxiangda-react-spa/.cursor/rules/openxiangda.mdc +6 -5
- package/templates/openxiangda-react-spa/.qoder/rules/openxiangda.md +6 -6
- package/templates/openxiangda-react-spa/AGENTS.md +5 -1
- package/templates/openxiangda-react-spa/DELIVERY.md +33 -0
- package/templates/openxiangda-react-spa/app-workspace.config.ts +3 -3
- package/templates/sy-lowcode-app-workspace/.cursor/rules/openxiangda.mdc +4 -1
- package/templates/sy-lowcode-app-workspace/.qoder/rules/openxiangda.md +4 -1
- package/templates/sy-lowcode-app-workspace/AGENTS.md +7 -4
- package/templates/sy-lowcode-app-workspace/DELIVERY.md +33 -0
- package/templates/sy-lowcode-app-workspace/app-workspace.config.ts +3 -3
- package/templates/sy-lowcode-app-workspace/src/types/app-workspace.types.ts +1 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- OpenXiangda-Policy-Version:
|
|
1
|
+
<!-- OpenXiangda-Policy-Version: 5 -->
|
|
2
2
|
# OpenXiangda
|
|
3
3
|
|
|
4
4
|
OpenXiangda is a lightweight CLI and skill package for private low-code platforms.
|
|
@@ -7,6 +7,30 @@ Normal OpenXiangda app development uses platform-user login tokens through `/ope
|
|
|
7
7
|
|
|
8
8
|
Private platform routing is fixed: backend APIs are under `/service`, platform management is under `/platform`, and app runtime access is under `/view`. Passing a root domain such as `https://yida.wisejob.cn/` to the CLI is supported; OpenXiangda stores the API base as `https://yida.wisejob.cn/service`.
|
|
9
9
|
|
|
10
|
+
## Delivery V2
|
|
11
|
+
|
|
12
|
+
New workspaces declare `deliveryVersion: 2`. The release flow is intentionally
|
|
13
|
+
small and deterministic:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
openxiangda check --environment preproduction
|
|
17
|
+
openxiangda deploy preproduction --json
|
|
18
|
+
openxiangda deploy production --package <packageDigest> --json
|
|
19
|
+
openxiangda status <runId> --json
|
|
20
|
+
openxiangda retry <runId> --json
|
|
21
|
+
openxiangda rollback production --to <appReleaseId> --json
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
The preproduction deploy compiles one content-addressed App Package containing
|
|
25
|
+
source, form, configuration, backend, workflow, and Runtime layers. Production
|
|
26
|
+
downloads that exact package and does not rebuild it. ReleaseRun state and
|
|
27
|
+
checkpoints live on the platform, so a CLI/AI interruption does not discard
|
|
28
|
+
completed work. V2 does not require SDD, a clean/pushed Git mainline,
|
|
29
|
+
`--change`, `--only`, or candidate/ship orchestration.
|
|
30
|
+
|
|
31
|
+
The lower-level commands later in this README remain available for V1
|
|
32
|
+
compatibility and diagnostics; do not use them to assemble a normal V2 release.
|
|
33
|
+
|
|
10
34
|
```bash
|
|
11
35
|
npm install -g openxiangda@latest --registry=https://registry.npmjs.org
|
|
12
36
|
openxiangda update check
|
|
@@ -22,7 +46,8 @@ openxiangda env
|
|
|
22
46
|
openxiangda workspace init ./my-app-workspace --profile dev --app-name "示例应用"
|
|
23
47
|
cd ./my-app-workspace
|
|
24
48
|
pnpm install
|
|
25
|
-
openxiangda
|
|
49
|
+
openxiangda check --environment preproduction
|
|
50
|
+
openxiangda deploy preproduction --json
|
|
26
51
|
openxiangda menu list --profile dev
|
|
27
52
|
openxiangda workflow list --profile dev
|
|
28
53
|
openxiangda automation list --profile dev
|