openxiangda-skill-kit 2.0.13 → 2.0.15
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.
|
|
3
|
+
"version": "2.0.15",
|
|
4
4
|
"description": "OpenXiangda 2.0 中文 AI 技能的校验、分发与安装。",
|
|
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.
|
|
20
|
+
"openxiangda-devkit-core": "2.6.0"
|
|
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": "使用 OpenXiangda 2.0 从模糊业务想法、已有资料或具体变更出发,通过对话发现模块、完成详细产品设计,再开发、检查和交付应用。维护 1.x 应用时使用对应的 1.x 技能。",
|
|
7
|
-
"sha256": "
|
|
7
|
+
"sha256": "82852e5d0e0aac4a66d6d5f769e0e26a714b76692a7b148cea0331a073fb9ffe"
|
|
8
8
|
}
|
|
9
9
|
]
|
|
10
10
|
}
|
|
@@ -37,6 +37,21 @@ export const recordsModule = defineApplicationModule({
|
|
|
37
37
|
|
|
38
38
|
不写 `crud` 时仅注册数据模型;`crud: [{ model: records.code }]` 使用标准页面默认字段。列表默认列、表单、详情的字段选择均保持给定顺序。一个模型可以声明多套命名视图,各自配置字段、分组和操作入口,共用同一份数据和权限。
|
|
39
39
|
|
|
40
|
+
列表可通过公开声明关闭本期不提供的导入、导出任务:
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
list: defineResourceList(records, {
|
|
44
|
+
fields: ['title', 'enabled'],
|
|
45
|
+
actions: { import: false, export: false },
|
|
46
|
+
})
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
省略某个开关保持默认行为,`false` 隐藏对应入口。`true` 仍遵循已有权限和写入归属,
|
|
50
|
+
不会授予导入或数据读取权限。默认与命名视图各自声明;PC 原生或流程导入、PC/移动导出
|
|
51
|
+
使用该视图同一设置。直接声明 `data.resources[].list` 时同样支持 `actions`。
|
|
52
|
+
这是页面任务配置,Data API 仍按原权限执行;敏感字段必须使用字段权限控制。
|
|
53
|
+
发布此声明需要平台采用匹配的 contracts 校验版本,无需新增数据库迁移。
|
|
54
|
+
|
|
40
55
|
```ts
|
|
41
56
|
// openxiangda.config.ts
|
|
42
57
|
import { defineOpenXiangdaApp, resourceRoleCapabilities } from 'openxiangda/config';
|
|
@@ -13,7 +13,9 @@ create/update 闭包返回的值。人员和部门保存平台目录真实 ID;
|
|
|
13
13
|
|
|
14
14
|
模型可声明 `audit: { read: false }`,禁止普通用户读取创建人、更新人、创建时间、
|
|
15
15
|
更新时间和变更历史;需要保留管理者查看时,使用
|
|
16
|
-
`audit: { read: ['app:your-app:audit:read'] }`
|
|
16
|
+
`audit: { read: ['app:your-app:audit:read'] }`,先在 `authz.capabilities`
|
|
17
|
+
声明该能力并授予相应角色,也可以直接引用已有的管理权限。审计策略只引用
|
|
18
|
+
能力,不会新建能力或改变其 catalog 所有者;引用缺失会在发布前失败。
|
|
17
19
|
省略沿用原有读取行为,`id` 与 `revision` 始终是协议字段。权限只控制读取,
|
|
18
20
|
不删除平台存储的审计事实。显式查询、筛选、排序、聚合、导出和历史接口同样
|
|
19
21
|
执行权限;标准详情页随受权元数据隐藏或显示变更记录入口。
|