openxiangda-skill-kit 2.3.110 → 2.3.111
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.111",
|
|
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.64.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"tsx": "4.23.12",
|
|
@@ -30,6 +30,41 @@ CLI与MCP共用输入Schema、服务和平台错误。成功结果在 `data.resu
|
|
|
30
30
|
配置与恢复在已授权范围内直接执行;health访问外部健康接口并保存元信息。
|
|
31
31
|
操作目录不证明远端接口已部署或当前用户有权,执行结果由平台决定。
|
|
32
32
|
|
|
33
|
+
## 原执行健康 {#execution-health}
|
|
34
|
+
|
|
35
|
+
从 `admin operations` 发现 `diagnostics.execution-health`,输入只提供原 kind 和 UUID:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
printf '%s' '{"kind":"event-delivery","id":"<原投递UUID>"}' | \
|
|
39
|
+
pnpm openxiangda admin execute diagnostics.execution-health --environment test --input - --json
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
kind 为 timer、date-trigger、event-delivery 或 legacy-schedule;legacy-schedule只接受production,V1工作区仍由原V1引擎维护。按当前工作区 appCode 和原登录身份的应用管理权限只读查询,不传tenant、任意URL或恢复动作。
|
|
43
|
+
|
|
44
|
+
`admission`、`due`、`claim` 分别表示当前准入、原周期和claim;暂停可能仍有有效旧claim,未来/夜间周期不是卡住。lease过期或 `needs_review` 先核对原owner、退出证明与效果回执,不重放旧周期。timer当前按原事务行锁调度,预留lease字段不会被解释为executor空闲。缺记录/超时/schema缺失明确为未知,HTTP200只是诊断响应。
|
|
45
|
+
|
|
46
|
+
目标平台需要提供此受管诊断路由;404先核对平台版本,不创建业务shim或替代执行。原requestId/commandId/DeploymentRun/fileId诊断继续用于原操作读回;健康投影不替代业务验收。
|
|
47
|
+
|
|
48
|
+
## TEST 文件语义观察 {#semantic-audit}
|
|
49
|
+
|
|
50
|
+
原平台管理员从目录发现 `diagnostics.semantic-audit`;只接受test。以下input的版本、Head修订、resourceCode均取自当前应用的实际TEST目标:
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"requirementId":"native.file-value.v2-envelope",
|
|
55
|
+
"resourceCode":"records",
|
|
56
|
+
"expectedAppVersionId":"11111111-1111-4111-8111-111111111111",
|
|
57
|
+
"expectedHeadRevision":1,
|
|
58
|
+
"limit":50
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
把input交给 `admin execute diagnostics.semantic-audit --environment test --input <文件> --json`,或通过原MCP `application_operation`。版本/Head变化先刷新目标;不递增修订猜测当前状态。最多100行、32个file/image字段、单行文件值投影16KiB、20个原因样本。分页用原nextCursor传afterRecordId;后续页不冒充同一完整资源快照,工具不自动无限扫描。
|
|
63
|
+
|
|
64
|
+
`satisfied`、`violations`、`incomplete`、`unknown`分别描述本次快照;报告始终 `admission: observe-only`。即使complete且satisfied也不是激活许可;dataLogicalRevisionId是定义版本,dataRevision明确为空。报告没有文件名、正文或原错误正文。signature.file遵循自身Omit协议,不误当file/image数组。
|
|
65
|
+
|
|
66
|
+
此观察不证明文件存在/下载授权或历史权限/流程兼容,不自动转换或删除。需修复时交原repair owner评审精确before-image和目标;生产不在此入口范围。404仍先核对实际平台能力;旧SDK版本不能仅凭本文认定已安装该新操作。
|
|
67
|
+
|
|
33
68
|
## 事件高水位与指定恢复 {#events}
|
|
34
69
|
|
|
35
70
|
遇到 `EVENT_V2_BACKPRESSURE_HIGH_WATER` 先读 `events.status` 的admission:采样新鲜度、
|
|
@@ -139,6 +139,10 @@ MCP `appspec_verify` 读取同一报告与运行事实。`spec verify` 根据当
|
|
|
139
139
|
|
|
140
140
|
## 新任务找回上下文
|
|
141
141
|
|
|
142
|
+
读取时核对 `documentReadback` 的实际文件字节、读取字节、全文/历史索引模式和不可用原因;最多128条,`total`/`unavailable`/`truncated`明确其覆盖范围。单文件上限256KiB,正文上下文上限256KiB,按UTF-8字节计。`contextBudget.requestedContentBytes` 是预算前请求正文总量,`omitted` 每项包含实际字节及 `context-budget` 原因。
|
|
143
|
+
|
|
144
|
+
超限、格式错误、符号链接或读取期间变化表示文件不可用;selector会提示在已成功读取的文档中无法解析,不能据此删除、重建文档或补造确认。真实不存在仍保留原not-found。先按相对路径处理原因,保留稳定ID/确认;相关正文过多时用稳定ID选择或拆分当前总纲,历史索引不是全文。81,602字节的普通资料在当前单文件预算内,不应套用旧64KiB限制。
|
|
145
|
+
|
|
142
146
|
### 架构决定的编号与创建
|
|
143
147
|
|
|
144
148
|
需要长期引用的决定写入 `appspec/decisions/` 下的 Markdown。ADR 的 `id` 格式是 `ADR-` 加**恰好四位数字**,可选 `-` 分隔的大写字母或数字后缀,例如 `ADR-0001`、`ADR-0001-DATA-OWNER`;`ADR-001` 不合法。文件名建议与 ID 一致,引用使用元数据中的 ID。当前没有独立的 ADR 创建命令,可以手工创建,随后用 `spec context <ID>` 和 `spec check` 核对。
|
|
@@ -288,6 +288,117 @@ MCP 使用项目锁定的根包;在客户端配置下列 stdio 启动参数,
|
|
|
288
288
|
{
|
|
289
289
|
"type": "object",
|
|
290
290
|
"oneOf": [
|
|
291
|
+
{
|
|
292
|
+
"type": "object",
|
|
293
|
+
"additionalProperties": false,
|
|
294
|
+
"properties": {
|
|
295
|
+
"operation": {
|
|
296
|
+
"const": "diagnostics.semantic-audit",
|
|
297
|
+
"description": "绑定当前TEST版本和Head的文件值语义审计;仅观察,不修复或授予激活许可"
|
|
298
|
+
},
|
|
299
|
+
"environment": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"enum": [
|
|
302
|
+
"test"
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
"input": {
|
|
306
|
+
"type": "object",
|
|
307
|
+
"additionalProperties": false,
|
|
308
|
+
"properties": {
|
|
309
|
+
"requirementId": {
|
|
310
|
+
"const": "native.file-value.v2-envelope"
|
|
311
|
+
},
|
|
312
|
+
"resourceCode": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"minLength": 1,
|
|
315
|
+
"maxLength": 128,
|
|
316
|
+
"pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
|
|
317
|
+
},
|
|
318
|
+
"expectedAppVersionId": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"minLength": 1,
|
|
321
|
+
"maxLength": 36,
|
|
322
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
323
|
+
},
|
|
324
|
+
"expectedHeadRevision": {
|
|
325
|
+
"type": "integer",
|
|
326
|
+
"minimum": 1,
|
|
327
|
+
"maximum": 9007199254740991
|
|
328
|
+
},
|
|
329
|
+
"afterRecordId": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"minLength": 1,
|
|
332
|
+
"maxLength": 36,
|
|
333
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
334
|
+
},
|
|
335
|
+
"limit": {
|
|
336
|
+
"type": "integer",
|
|
337
|
+
"minimum": 1,
|
|
338
|
+
"maximum": 100
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"required": [
|
|
342
|
+
"requirementId",
|
|
343
|
+
"resourceCode",
|
|
344
|
+
"expectedAppVersionId",
|
|
345
|
+
"expectedHeadRevision"
|
|
346
|
+
]
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"required": [
|
|
350
|
+
"operation",
|
|
351
|
+
"environment",
|
|
352
|
+
"input"
|
|
353
|
+
]
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"type": "object",
|
|
357
|
+
"additionalProperties": false,
|
|
358
|
+
"properties": {
|
|
359
|
+
"operation": {
|
|
360
|
+
"const": "diagnostics.execution-health",
|
|
361
|
+
"description": "按原ID核对未来计划、暂停、claim和租约;不恢复或重放"
|
|
362
|
+
},
|
|
363
|
+
"environment": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"enum": [
|
|
366
|
+
"test",
|
|
367
|
+
"production"
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
"input": {
|
|
371
|
+
"type": "object",
|
|
372
|
+
"additionalProperties": false,
|
|
373
|
+
"properties": {
|
|
374
|
+
"kind": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"enum": [
|
|
377
|
+
"legacy-schedule",
|
|
378
|
+
"timer",
|
|
379
|
+
"date-trigger",
|
|
380
|
+
"event-delivery"
|
|
381
|
+
]
|
|
382
|
+
},
|
|
383
|
+
"id": {
|
|
384
|
+
"type": "string",
|
|
385
|
+
"minLength": 1,
|
|
386
|
+
"maxLength": 36,
|
|
387
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
"required": [
|
|
391
|
+
"kind",
|
|
392
|
+
"id"
|
|
393
|
+
]
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"required": [
|
|
397
|
+
"operation",
|
|
398
|
+
"environment",
|
|
399
|
+
"input"
|
|
400
|
+
]
|
|
401
|
+
},
|
|
291
402
|
{
|
|
292
403
|
"type": "object",
|
|
293
404
|
"additionalProperties": false,
|