openxiangda-skill-kit 2.3.27 → 2.3.28
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.3.
|
|
3
|
+
"version": "2.3.28",
|
|
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.33.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"tsx": "4.23.12",
|
|
@@ -248,6 +248,7 @@ operations: [{
|
|
|
248
248
|
`read` 等价于 `method: 'GET'`,DELETE 方法只能是 `destructive` 或 `external`;`resources`
|
|
249
249
|
引用 1–16 个已声明资源;`sideEffects` 最多 20 条——只读必须为零,写操作至少一条具体副作用;
|
|
250
250
|
`concurrency` 可选 `none | revision`,`timeoutMs` 限 100–30000。
|
|
251
|
+
普通 `write` 操作可显式声明 `confirmation: 'none'`:用户明确要求办理、输入齐全且无歧义时,平台 Agent 可直接调用并返回真实回执,不生成统一预览。省略时仍为 `required`;`destructive` 和 `external` 必须为 `required`,只读必须为 `none`。免二次确认不取消当前用户授权、AppVersion 绑定、输入校验、幂等键及应用业务校验。需要用户补齐字段、消除歧义或应用业务规则要求确认时,Agent 仍应先询问。
|
|
251
252
|
|
|
252
253
|
### 面向普通用户的 Agent 任务
|
|
253
254
|
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
| 规则 | 正确片段 |
|
|
55
55
|
| --- | --- |
|
|
56
56
|
| 写操作的 `ai.sideEffects` 至少一条具体副作用 | `ai: { name: '受理派单', ..., risk: 'write', sideEffects: ['更新报修单状态为处理中', '写入一条派工记录'] }` |
|
|
57
|
+
| 普通写任务允许按应用规则免二次确认;破坏性及外部动作仍须确认 | `ai: { ..., risk: 'write', confirmation: 'none' }`;省略时为 `required`,平台仍强制幂等和权限校验 |
|
|
57
58
|
| GET 操作的 `ai.risk` 只能是 `read`;写操作不能是 `read` | `risk: 'read'` ↔ `method: 'GET'` |
|
|
58
59
|
| 面向普通用户的 Agent 只发现显式声明的业务任务;底层 CRUD 不会自动成为任务 | `ai.agent: { visibility: 'task', examples: ['帮我发起报修'], aliases: ['提交报修'] }` |
|
|
59
60
|
| 任务输入需要地点、人员等业务选择时,绑定同应用的只读辅助操作,用户不填内部编码 | `agent: { visibility: 'task', supportOperations: ['repair.locations'], inputLookups: { location: 'repair.locations' } }`;被引用的 GET 操作须有 `agent: { visibility: 'support' }`,`location` 须是请求 Schema 字段 |
|