openxiangda-skill-kit 2.0.0-alpha.136 → 2.0.0-alpha.138
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-skill-kit",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.138",
|
|
4
4
|
"description": "Validation and deterministic packaging for OpenXiangda 2.0 AI skills.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"README.md"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"openxiangda-devkit-core": "2.0.0-alpha.
|
|
20
|
+
"openxiangda-devkit-core": "2.0.0-alpha.113"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"tsx": "4.23.12",
|
package/skills/manifest.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{
|
|
5
5
|
"name": "openxiangda-v2",
|
|
6
6
|
"description": "Use when researching, designing, building, testing, or delivering an OpenXiangda 2.0 application, including anonymous public forms and other no-account external-user pages.",
|
|
7
|
-
"sha256": "
|
|
7
|
+
"sha256": "f84c530b0b34766de941ca513961099a4a1f14444c3ecf6586b982dfd99d7bf7"
|
|
8
8
|
}
|
|
9
9
|
]
|
|
10
10
|
}
|
|
@@ -32,6 +32,7 @@ Use this order:
|
|
|
32
32
|
7. Read [Frontend](references/frontend.md) for pages or fields and [Backend actions](references/backend.md) only for a real business action.
|
|
33
33
|
When the request customizes the application Todo center or the common PC/mobile frame around standard user pages, use only `standardUserSurfaces` from that reference. The platform must keep ownership of the Router, `RuntimeBoundary`, current user, Notification Hub and Workflow controllers.
|
|
34
34
|
8. When the application explicitly enables standard approval, application events or notifications, read [Workflow, Events and Notification Hub](references/workflow-events.md). Keep them optional and out of ordinary CRUD.
|
|
35
|
+
Before changing a deployed workflow, inspect effective administrator parameters with `pnpm openxiangda admin workflow <workflowCode> --json`; current tasks stay frozen and subsequent node entries adopt current runtime settings. Never assume local defaults are the effective approvers.
|
|
35
36
|
9. Run the connected loop with `pnpm openxiangda dev`, then follow [Testing](references/testing.md) and `pnpm openxiangda check`; check performs the target platform's read-only Native compatibility preflight before application checks or builds.
|
|
36
37
|
10. Follow [Delivery](references/delivery.md): deploy preproduction first, inspect status/logs, then promote the exact successful version to production.
|
|
37
38
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Command | Risk | Purpose |
|
|
6
6
|
| --- | --- | --- |
|
|
7
|
+
| `pnpm openxiangda admin` | read | 只读查看应用管理能力和流程节点运行配置 |
|
|
7
8
|
| `pnpm openxiangda create` | deploy | 创建、绑定并初始化应用 |
|
|
8
9
|
| `pnpm openxiangda dev` | write-local | 连接平台测试数据启动本地 Web,按需启动 Nest |
|
|
9
10
|
| `pnpm openxiangda check` | write-local | 生成契约并在目标平台预检后执行检查、测试和构建 |
|
|
@@ -17,6 +17,21 @@ Use these optional modules only when the application has a real standard approva
|
|
|
17
17
|
|
|
18
18
|
## Workflow declaration
|
|
19
19
|
|
|
20
|
+
Before changing an already deployed workflow, run `pnpm openxiangda admin workflow <workflowCode> --json`
|
|
21
|
+
to read code defaults, administrator overrides, effective node parameters and revision history.
|
|
22
|
+
The default is the test environment; read production explicitly with `--environment production`.
|
|
23
|
+
`pnpm openxiangda admin context --json` reports the application's available management capabilities.
|
|
24
|
+
Both commands use the logged-in developer and current workspace and are read-only.
|
|
25
|
+
An unavailable response is not proof that no overrides exist.
|
|
26
|
+
|
|
27
|
+
The platform owns runtime overrides for node title/description and fixed-user or role selection.
|
|
28
|
+
New instances and future node entries in existing instances use the latest configuration;
|
|
29
|
+
current tasks retain their frozen participants and binding, including assignment retries.
|
|
30
|
+
Do not copy overrides back into a definition or mutate topology through management APIs.
|
|
31
|
+
Publication retains compatible overrides and rejects removed/reused nodes, changed providers,
|
|
32
|
+
or removed selected roles. Resolve the reported configuration in the application management
|
|
33
|
+
console before retrying an incompatible publication or rollback. Test and production overrides are isolated.
|
|
34
|
+
|
|
20
35
|
Declare workflow topology and bindings once in `openxiangda.config.ts`. Use only approval, condition and end nodes for the standard module. Every definition `inputSchema` is a closed root object (`type: 'object'`, `additionalProperties: false`). Keep business data in Data API/App API and pass the exact `{ resourceCode, id }` `dataRef`, a separate positive `dataRevision`, and bounded schema-valid facts into prepare/start. Undeclared facts and answers fail closed.
|
|
21
36
|
|
|
22
37
|
`workflows.activations` is the complete desired set for the deployed version,
|
|
@@ -53,6 +53,8 @@ revisions and draft CAS; successful submission consumes the draft atomically.
|
|
|
53
53
|
|
|
54
54
|
## Optional application backend
|
|
55
55
|
|
|
56
|
+
For an already deployed standard workflow, first inspect `pnpm openxiangda admin workflow <workflowCode> --json` (add `--environment production` only for production inspection). The platform owns administrator node parameters; local definitions own topology. Do not overwrite runtime overrides during code authoring. Existing tasks retain their frozen parameters and future node entries use the latest configuration.
|
|
57
|
+
|
|
56
58
|
The default scaffold contains Web and shared contracts only. Declare
|
|
57
59
|
`backend: { enabled: true }` or application server capabilities, then use the
|
|
58
60
|
existing `pnpm openxiangda check` / `pnpm dev` loop. The tool initializes Nest
|