@stalfh233/omc-cli 0.7.0 → 0.8.0
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/coverage/m1-coverage-manifest-v1.json +88 -2
- package/dist/capability-overview.js +16 -4
- package/dist/cli.js +12 -5
- package/dist/contract-resources.js +2 -0
- package/dist/coverage-registry.js +4 -0
- package/dist/coverage.js +16 -2
- package/dist/endpoints.js +65 -0
- package/dist/environment-policy.js +15 -1
- package/dist/field-change.js +9 -2
- package/dist/field-families.js +27 -6
- package/dist/governed-execution.js +18 -12
- package/dist/human-summary.js +8 -0
- package/dist/intent/capabilities/field.js +6 -0
- package/dist/lanes/environment.js +3 -0
- package/dist/lanes/field-contract.js +117 -6
- package/dist/lanes/file-contract.js +69 -0
- package/dist/lanes/file-coverage.js +16 -0
- package/dist/lanes/file.js +257 -0
- package/dist/lanes/lane-ids.js +1 -0
- package/dist/lanes/list-view-contract.js +3 -3
- package/dist/lanes/list-view-shapes.js +56 -0
- package/dist/lanes/list-view.js +40 -5
- package/dist/lanes/meta.js +4 -3
- package/dist/lanes/model.js +8 -4
- package/dist/lanes/org-query-contract.js +62 -0
- package/dist/lanes/org-query-coverage.js +27 -0
- package/dist/lanes/org-query.js +610 -0
- package/dist/lanes/organization.js +44 -11
- package/dist/lanes/runtime-data.js +228 -59
- package/dist/lanes/workflow-contract.js +100 -1
- package/dist/lanes/workflow-coverage.js +13 -0
- package/dist/lanes/workflow.js +599 -13
- package/dist/package.js +3 -1
- package/dist/read-shapes.js +3 -3
- package/dist/recipes/runtime-data.js +8 -6
- package/dist/refusal-guidance.js +1 -1
- package/dist/rule-support.js +15 -17
- package/dist/session.js +16 -1
- package/dist/tool-types.js +15 -1
- package/dist/tools.js +7 -0
- package/dist/version-family-gaps.js +8 -1
- package/dist/version-partition.js +633 -0
- package/dist/wire.js +8 -2
- package/dist/write.js +11 -2
- package/package.json +1 -1
- package/skills/omc-capabilities.md +8 -1
|
@@ -453,6 +453,42 @@
|
|
|
453
453
|
"workflow participant resolution"
|
|
454
454
|
]
|
|
455
455
|
},
|
|
456
|
+
{
|
|
457
|
+
"capability": "organization lightweight queries (search/visible/tree/users)",
|
|
458
|
+
"status": "executable",
|
|
459
|
+
"scope": "Read-only organization directory faces on the session controller API (the openapi v3 twins require an OAuth2 client id the CLI does not have): POST /api/api/organization/user/searchDepartments {wd} -> DepartmentModel[] (name contains, unpaged), GET /api/api/organization/department/search_dept_detail?deptId= -> data.scopeModel (selection visibility scope; 8.6 stores deptVisibleScope/staffVisibleScope as JSON strings, 2.1.5 adds specialStaffVisibleRules), GET /api/api/organization/department/tree?deptIds= -> direct children only (roots when empty), POST /api/api/organization/user/searchCondiction {userName,deptIds,roleIds,userIds,page,size} -> pageable ignored server-side (UserService.listUsersByIdsAndName drops the Pageable; empty conditions short-circuit to empty). Used to resolve a name / department / mobile into platform-known unit and user ids before building a participant, owner or department scope; pagination is enforced by the CLI (local slicing) so a large tenant never inlines an unbounded list.",
|
|
460
|
+
"version_family": "8.6",
|
|
461
|
+
"anchor_version": "8.6.26",
|
|
462
|
+
"evidence": [
|
|
463
|
+
{
|
|
464
|
+
"path": "packages/omc-cli/src/lanes/org-query.ts",
|
|
465
|
+
"anchor": "org.searchUnits / org.department.search / org.visibleDepartments / org.departmentTree / org.users"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"path": "packages/omc-cli/src/lanes/org-query-contract.ts",
|
|
469
|
+
"anchor": "session endpoints; openapi v3 rejected (OpenapiPermissionAspect clientId gate)"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"path": "packages/omc-cli/test/org-query.test.ts",
|
|
473
|
+
"anchor": "fake-harness coverage: paging boundaries, error passthrough, mobile fallback"
|
|
474
|
+
}
|
|
475
|
+
],
|
|
476
|
+
"lane": "W7-S29-greenfield",
|
|
477
|
+
"tools": [
|
|
478
|
+
"org.searchUnits",
|
|
479
|
+
"org.department.search",
|
|
480
|
+
"org.visibleDepartments",
|
|
481
|
+
"org.departmentTree",
|
|
482
|
+
"org.users"
|
|
483
|
+
],
|
|
484
|
+
"scopes": [
|
|
485
|
+
"org directory read: search users and departments by name",
|
|
486
|
+
"org directory read: search departments by name (paged)",
|
|
487
|
+
"org directory read: department selection visibility scope",
|
|
488
|
+
"org directory read: direct child departments of a parent",
|
|
489
|
+
"org directory read: in-service user paging (simple/detailed projection)"
|
|
490
|
+
]
|
|
491
|
+
},
|
|
456
492
|
{
|
|
457
493
|
"capability": "W7 S29 residual workflow OQs",
|
|
458
494
|
"status": "partial",
|
|
@@ -1573,12 +1609,28 @@
|
|
|
1573
1609
|
"tools": [
|
|
1574
1610
|
"workflow.transfer",
|
|
1575
1611
|
"workflow.activate",
|
|
1576
|
-
"workflow.finish"
|
|
1612
|
+
"workflow.finish",
|
|
1613
|
+
"workflow.reject",
|
|
1614
|
+
"workflow.forward",
|
|
1615
|
+
"workflow.adjust",
|
|
1616
|
+
"workflow.assist",
|
|
1617
|
+
"workflow.circulate",
|
|
1618
|
+
"workflow.revoke",
|
|
1619
|
+
"workflow.abort",
|
|
1620
|
+
"workflow.rejectActivities"
|
|
1577
1621
|
],
|
|
1578
1622
|
"scopes": [
|
|
1579
1623
|
"runtime workflow admin adjust participant",
|
|
1580
1624
|
"runtime workflow admin activate activity",
|
|
1581
|
-
"runtime workflow admin finish instance"
|
|
1625
|
+
"runtime workflow admin finish instance",
|
|
1626
|
+
"runtime workflow approval action reject",
|
|
1627
|
+
"runtime workflow approval action forward",
|
|
1628
|
+
"runtime workflow approval action add-sign",
|
|
1629
|
+
"runtime workflow approval action assist",
|
|
1630
|
+
"runtime workflow approval action circulate",
|
|
1631
|
+
"runtime workflow approval action revoke",
|
|
1632
|
+
"runtime workflow approval action abort instance",
|
|
1633
|
+
"runtime workflow approval action reject-target lookup"
|
|
1582
1634
|
],
|
|
1583
1635
|
"revision_note": "r64(2026-11-14)新增:用户需求的流程运维三件套,真机全链实证(workflow_operation approval 对象形状 / adjust_workItem=加签面 / finish=正常完结语义)。定位=测试提速:运维过的实例不能用于真实流程/权限验证。"
|
|
1584
1636
|
},
|
|
@@ -1609,6 +1661,40 @@
|
|
|
1609
1661
|
"scopes": [
|
|
1610
1662
|
"draft published face semantic diff (workflow|form)"
|
|
1611
1663
|
]
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
"capability": "Runtime file transfer (multipart upload refId ↔ local path download)",
|
|
1667
|
+
"status": "executable",
|
|
1668
|
+
"scope": "Upload a local file through the platform multipart `upload_file` face (plain-string refId) and download it back by refId into a local path (attachment channel or the raw storage-key channel used by upload_file), returning path/size/sha256 without inlining binary bytes. Writable gate + confirmProduction apply to upload; download is a read. RefId is potentially one-shot (consuming delete=true flows remove the refId→filename cache).",
|
|
1669
|
+
"version_family": "8.6",
|
|
1670
|
+
"anchor_version": "8.6.26",
|
|
1671
|
+
"evidence": [
|
|
1672
|
+
{
|
|
1673
|
+
"path": "cp-sources/backend/decompiled-full/launcher-8.6.26/.../QueryRuntimeController.java",
|
|
1674
|
+
"anchor": "2415-2428,2868-2890"
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"path": "cp-sources/backend/decompiled-full/launcher-8.6.26/.../FileServerController.java",
|
|
1678
|
+
"anchor": "78-113"
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
"path": "packages/omc-cli/src/lanes/file.ts",
|
|
1682
|
+
"anchor": "file.upload/file.download registration"
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
"path": "packages/omc-cli/test/file-transfer.test.ts",
|
|
1686
|
+
"anchor": "file transfer upload/download/one-shot/governance"
|
|
1687
|
+
}
|
|
1688
|
+
],
|
|
1689
|
+
"lane": "file-transfer",
|
|
1690
|
+
"tools": [
|
|
1691
|
+
"file.upload",
|
|
1692
|
+
"file.download"
|
|
1693
|
+
],
|
|
1694
|
+
"scopes": [
|
|
1695
|
+
"file upload (multipart → refId)",
|
|
1696
|
+
"file download (refId → local path)"
|
|
1697
|
+
]
|
|
1612
1698
|
}
|
|
1613
1699
|
]
|
|
1614
1700
|
}
|
|
@@ -141,11 +141,11 @@ const SURFACES = [
|
|
|
141
141
|
id: "workflow",
|
|
142
142
|
title: "流程模板 + 组织与权限",
|
|
143
143
|
lane: LANES.workflow,
|
|
144
|
-
description: "流程模板生命周期:workflow.list(应用内流程清单)、get_draft/get_published、create、update、publish、bindRule/unbindRule(绑定与解绑)、delete、workitem.list;**症状排查先 config.diff**(草稿↔发布双面差异:活动/连线/三类绑定,domain 另支持 form
|
|
145
|
-
operations: ["diff", "list", "create", "update", "publish", "bindRule", "unbindRule", "delete"],
|
|
144
|
+
description: "流程模板生命周期:workflow.list(应用内流程清单)、get_draft/get_published、create、update、publish、bindRule/unbindRule(绑定与解绑)、delete、workitem.list;**症状排查先 config.diff**(草稿↔发布双面差异:活动/连线/三类绑定,domain 另支持 form 表单布局双面)。**审批动作**(平台内置 MCP 同源面):workflow.reject(驳回)/forward(转办)/adjust(加签)/assist(协办)/circulate(传阅)/revoke(撤回)/abort(作废)+ 只读 workflow.rejectActivities(可驳回节点)。**含组织/部门/角色/权限范围(org.* 工具)**:部门树、角色组/角色、用户搜索、成员与管理范围(userScope)——流程参与人/可见性的候选来源。",
|
|
145
|
+
operations: ["diff", "list", "create", "update", "publish", "bindRule", "unbindRule", "delete", "reject", "forward", "adjust", "assist", "circulate", "revoke", "abort"],
|
|
146
146
|
requires: ["model"],
|
|
147
|
-
intent: { level: "partial", note: "声明式支持 workflow.create/update/publish 与 bindRules(事件处理器规则绑定,merge/ensure-present);runtime workitem
|
|
148
|
-
notes: "greenfield 首版;publish/bindRule 不得在 ValidateMessage[] 拒绝时报告成功。组织读写(org.*)挂在本能力下,别名 org/organization/organisation。r64 起含**流程运维三件套**(workflow.transfer
|
|
147
|
+
intent: { level: "partial", note: "声明式支持 workflow.create/update/publish 与 bindRules(事件处理器规则绑定,merge/ensure-present);runtime workitem(提交/审批/驳回/转办等审批动作)仍走 escape hatch。" },
|
|
148
|
+
notes: "greenfield 首版;publish/bindRule 不得在 ValidateMessage[] 拒绝时报告成功。组织读写(org.*)挂在本能力下,别名 org/organization/organisation。r64 起含**流程运维三件套**(workflow.transfer 替换节点参与者 / workflow.activate 跳转节点 / workflow.finish 手动结束·end 规则照常触发)——测试提速定位:运维过的实例权限语义已变,不能用于真实流程/权限验证。t17 起含 **OpenAPI v2 审批动作七件套**(reject/forward/adjust/assist/circulate/revoke/abort):走 `/api/openapi/v2/runtime/workflow/*`(单层 /api,userId 头认人),平台对失败也回 errcode 0 + data:false(工具按 data 判成败);forward 只认第一个接收人,rejectActivities 只回实例走过的节点。",
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
id: "onlinejs",
|
|
@@ -195,6 +195,14 @@ const SURFACES = [
|
|
|
195
195
|
requires: ["field"],
|
|
196
196
|
intent: { level: "none", note: "未覆盖;用 omc call data.*。" },
|
|
197
197
|
},
|
|
198
|
+
{
|
|
199
|
+
id: "file",
|
|
200
|
+
title: "文件传输",
|
|
201
|
+
lane: LANES.file,
|
|
202
|
+
description: "本地文件上传取平台 refId;按 refId 下载到本地路径(表单附件通道或 upload_file 临时对象通道),回执 path/size/sha256。",
|
|
203
|
+
operations: ["upload", "download"],
|
|
204
|
+
intent: { level: "none", note: "运行期工具,未进 intent 声明式面;用 omc call file.*。" },
|
|
205
|
+
},
|
|
198
206
|
];
|
|
199
207
|
const COVERAGE_RANK = { executable: 4, partial: 3, "static-only": 2, blocked: 1, unsupported: 0 };
|
|
200
208
|
const CAPABILITY_ALIASES = Object.freeze({
|
|
@@ -218,6 +226,7 @@ const CAPABILITY_ALIASES = Object.freeze({
|
|
|
218
226
|
bizservice: ["bizservices", "B2-registration"],
|
|
219
227
|
report: ["reports", "R1-report"],
|
|
220
228
|
data: ["runtime-data", "M2-runtime-data"],
|
|
229
|
+
file: ["file-transfer", "files", "文件传输"],
|
|
221
230
|
});
|
|
222
231
|
/**
|
|
223
232
|
* r59 Step 1 — scenario phrases for `commands --filter` ONLY.
|
|
@@ -251,6 +260,7 @@ export const CAPABILITY_SCENARIOS = Object.freeze({
|
|
|
251
260
|
"连数据库取数", "配SQL数据源", "把数据推送到别的系统", "同步到另一个系统", "同步到别的系统",
|
|
252
261
|
"回调", "外部系统回调我们"],
|
|
253
262
|
data: ["造数据", "录数据"],
|
|
263
|
+
file: ["上传文件", "下载文件", "文件传输", "把文件传上去", "取回附件"],
|
|
254
264
|
});
|
|
255
265
|
/**
|
|
256
266
|
* Requirement cues per capability (round 3): the Chinese phrases a requirement
|
|
@@ -318,6 +328,7 @@ export const CAPABILITY_CUES = Object.freeze({
|
|
|
318
328
|
// 此前只命中 listview 的「列表」→ 路由给视图配置面(用户想查数据却拿到视图读写工具)。
|
|
319
329
|
// 复合词(不裸配「列表/数据」)避免抢「列表视图/视图列」;评分按 cue 长度,长词胜出。
|
|
320
330
|
data: ["运行数据", "提交数据", "保存记录", "查记录", "造数据", "测试数据", "测试单据", "造单据", "造单", "录数据", "填数据", "模拟数据", "业务数据", "造几条", "造两张", "造几张", "验数据", "批量导入", "批量写入", "批量删除", "导入数据", "列表数据", "数据列表", "查数据", "数据查询", "拉数据", "拉一份数据", "看看数据", "查一下数据", "数据明细", "取数据", "数据的列表", "数据列表页", "数据记录"],
|
|
331
|
+
file: ["上传文件", "文件上传", "下载文件", "文件下载", "附件下载", "文件传输", "refId"],
|
|
321
332
|
// r18 (2026-10-26): "造数据 / 造测试单据 / 录数据" is the RUN-DATA capability, but
|
|
322
333
|
// the goal usually also says 子表/明细 (field cues) — without these compound
|
|
323
334
|
// cues the router sent the probe to `field` in read mode (write:false), so it
|
|
@@ -411,6 +422,7 @@ const CAPABILITY_TOPICS = Object.freeze({
|
|
|
411
422
|
bizservice: ["omc-business-configuration", "omc-write-hazards"],
|
|
412
423
|
report: ["omc-business-configuration", "omc-write-hazards"],
|
|
413
424
|
data: ["omc-business-configuration", "omc-refusals"],
|
|
425
|
+
file: ["omc-write-hazards", "omc-refusals"],
|
|
414
426
|
});
|
|
415
427
|
/** Strongest coverage status across the lane's manifest items. */
|
|
416
428
|
function coverageOf(manifest, lane) {
|
package/dist/cli.js
CHANGED
|
@@ -192,8 +192,9 @@ async function cmdDoctor(store, environment, serviceCode) {
|
|
|
192
192
|
const manifest = loadCoverageManifest();
|
|
193
193
|
const steps = [];
|
|
194
194
|
let ok = true;
|
|
195
|
-
// 版本族缺口(§三.3-9):没有版本证据时也要照实说「无证据 →
|
|
196
|
-
//
|
|
195
|
+
// 版本族缺口(§三.3-9):没有版本证据时也要照实说「无证据 → 按兼容模式放行、
|
|
196
|
+
// 平台是最终门」(2026-11-24 口径;不再是 fail closed),所以用 undefined
|
|
197
|
+
// 而不是拼一个默认值。
|
|
197
198
|
let detectedVersion;
|
|
198
199
|
// r45 Windows 实测:PowerShell 管道按 GBK(936) 解码 CLI 的 UTF-8 输出 → 全屏乱码,
|
|
199
200
|
// 且用户常误判为「OMC 输出坏了」。doctor 是入口体检,顺手检测活动代码页。
|
|
@@ -244,7 +245,7 @@ async function cmdDoctor(store, environment, serviceCode) {
|
|
|
244
245
|
const version = session.detectedVersion();
|
|
245
246
|
detectedVersion = version;
|
|
246
247
|
if (!version) {
|
|
247
|
-
steps.push(`版本 WARN
|
|
248
|
+
steps.push(`版本 WARN 无版本证据;写入按兼容模式放行(versionEvidence=absent),平台是最终门`);
|
|
248
249
|
}
|
|
249
250
|
else {
|
|
250
251
|
const notice = versionFamilyNotice(manifest, version);
|
|
@@ -1017,8 +1018,14 @@ function resolvedDefaultEnvironment(store) {
|
|
|
1017
1018
|
* template re-read three times is 81 KB of the session.
|
|
1018
1019
|
*/
|
|
1019
1020
|
const ARTIFACT_INLINE_CEILING_BYTES = 8192;
|
|
1020
|
-
/**
|
|
1021
|
-
|
|
1021
|
+
/**
|
|
1022
|
+
* commands --json 的上下文预算。2026-11-24(审批动作 / MCP 对齐批):32KiB →
|
|
1023
|
+
* 40KiB——裸目录已到 32.8KB(workflow 审批动作七件套 + 可驳回节点查询 8 行),
|
|
1024
|
+
* 越过旧 32KiB 门会让 `commands --json` 外置成 artifact 指针(artifactId 随机,
|
|
1025
|
+
* golden master 当场漂移),而目录本身仍应内联可读。文本门与本体门同批抬到
|
|
1026
|
+
* 40,000/340,000(见 test/context-cost-budgets.test.ts)。
|
|
1027
|
+
*/
|
|
1028
|
+
const COMMANDS_JSON_INLINE_CEILING_BYTES = 40 * 1024;
|
|
1022
1029
|
/** 超过这个体积就提醒走更窄的面(不改变返回值)。 */
|
|
1023
1030
|
const COMMANDS_JSON_HINT_BYTES = 16 * 1024;
|
|
1024
1031
|
/**
|
|
@@ -17,6 +17,7 @@ import { RULE_LIFECYCLE_LANE_CONTRACT } from "./lanes/rule-lifecycle-contract.js
|
|
|
17
17
|
import { REPORT_LANE_CONTRACT } from "./lanes/report-contract.js";
|
|
18
18
|
import { RUNTIME_DATA_LANE_CONTRACT } from "./lanes/runtime-data-contract.js";
|
|
19
19
|
import { WORKFLOW_LANE_CONTRACT } from "./lanes/workflow-contract.js";
|
|
20
|
+
import { FILE_LANE_CONTRACT } from "./lanes/file-contract.js";
|
|
20
21
|
export const LANE_CONTRACTS = Object.freeze([
|
|
21
22
|
APP_LANE_CONTRACT,
|
|
22
23
|
B2_LANE_CONTRACT,
|
|
@@ -37,6 +38,7 @@ export const LANE_CONTRACTS = Object.freeze([
|
|
|
37
38
|
REPORT_LANE_CONTRACT,
|
|
38
39
|
RUNTIME_DATA_LANE_CONTRACT,
|
|
39
40
|
WORKFLOW_LANE_CONTRACT,
|
|
41
|
+
FILE_LANE_CONTRACT,
|
|
40
42
|
]);
|
|
41
43
|
export function contractMarkdown(contract) {
|
|
42
44
|
const tools = Object.entries(contract.tools).map(([name, tool]) => `- ${name} — ${tool.scope}\n ${tool.description}`).join("\n");
|
|
@@ -14,8 +14,10 @@ import { PROGRAMMING_COVERAGE } from "./lanes/programming-coverage.js";
|
|
|
14
14
|
import { RULE_LIFECYCLE_COVERAGE } from "./lanes/rule-lifecycle-coverage.js";
|
|
15
15
|
import { RUNTIME_DATA_COVERAGE } from "./lanes/runtime-data-coverage.js";
|
|
16
16
|
import { WORKFLOW_COVERAGE } from "./lanes/workflow-coverage.js";
|
|
17
|
+
import { ORG_QUERY_COVERAGE } from "./lanes/org-query-coverage.js";
|
|
17
18
|
import { REPORT_COVERAGE } from "./lanes/report-coverage.js";
|
|
18
19
|
import { PERM_COVERAGE } from "./lanes/perm-coverage.js";
|
|
20
|
+
import { FILE_COVERAGE } from "./lanes/file-coverage.js";
|
|
19
21
|
/**
|
|
20
22
|
* Every lane's structured capability declaration, gathered in one frozen
|
|
21
23
|
* registry. This is the source the runtime coverage gate consults, and the
|
|
@@ -34,12 +36,14 @@ const DECLARATIONS = Object.freeze([
|
|
|
34
36
|
...RULE_LIFECYCLE_COVERAGE,
|
|
35
37
|
...RUNTIME_DATA_COVERAGE,
|
|
36
38
|
...WORKFLOW_COVERAGE,
|
|
39
|
+
...ORG_QUERY_COVERAGE,
|
|
37
40
|
...ONLINE_JS_COVERAGE,
|
|
38
41
|
...PROGRAMMING_COVERAGE,
|
|
39
42
|
...B2_COVERAGE,
|
|
40
43
|
...LIST_VIEW_COVERAGE,
|
|
41
44
|
...REPORT_COVERAGE,
|
|
42
45
|
...PERM_COVERAGE,
|
|
46
|
+
...FILE_COVERAGE,
|
|
43
47
|
]);
|
|
44
48
|
export function laneCoverageDeclarations() {
|
|
45
49
|
return DECLARATIONS;
|
package/dist/coverage.js
CHANGED
|
@@ -118,8 +118,9 @@ function citationFor(item, requestedScope) {
|
|
|
118
118
|
* outside the anchored family is ACCEPTED and this returns the notice to surface
|
|
119
119
|
* (omc is built on 8.6; other products/versions run in compatibility mode and
|
|
120
120
|
* some faces may not apply). Returns undefined when the version is inside the
|
|
121
|
-
* family
|
|
122
|
-
*
|
|
121
|
+
* family. Missing evidence is NOT a refusal any more (see
|
|
122
|
+
* `versionEvidenceAbsentNotice`): callers still need a notice for that case,
|
|
123
|
+
* so they call the other function instead of relying on this one's undefined.
|
|
123
124
|
*/
|
|
124
125
|
export function versionFamilyNotice(manifest, detectedVersion) {
|
|
125
126
|
if (detectedVersion.startsWith(manifest.version_family + "."))
|
|
@@ -128,4 +129,17 @@ export function versionFamilyNotice(manifest, detectedVersion) {
|
|
|
128
129
|
`(锚点 ${manifest.anchor_version})。OMC 基于 8.6 构建,非 8.6 环境按兼容支持,部分能力面可能不适用。` +
|
|
129
130
|
`取证口径:以本环境真机实测为准,8.6 文档与反编译结论仅作参考。`);
|
|
130
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* 无版本证据时的兼容提示(2026-11-24 产品口径)。
|
|
134
|
+
*
|
|
135
|
+
* 版本串探测不到**不再关闭写面**:它挡的从来不是「版本不同」,而是「没有任何
|
|
136
|
+
* 证据」;多版本兼容优先,平台才是最终门。放行的同时必须把这个事实显式带到
|
|
137
|
+
* 回执上(`versionEvidence:"absent"` + 本提示),否则调用方会把它当「已验证
|
|
138
|
+
* 8.6 语义」而误判形状差异。
|
|
139
|
+
*/
|
|
140
|
+
export function versionEvidenceAbsentNotice(manifest) {
|
|
141
|
+
return (`未探测到平台版本(versionEvidence=absent):按兼容模式放行,平台是最终门——` +
|
|
142
|
+
`写入若不被本环境接受,平台错误照实回传。OMC 基于 ${manifest.version_family} 构建(锚点 ${manifest.anchor_version}),` +
|
|
143
|
+
`未取证的版本差异不在此预判;需要版本证据时跑 omc doctor / discover_environment(必要时 refresh 刷登录缓存)。`);
|
|
144
|
+
}
|
|
131
145
|
//# sourceMappingURL=coverage.js.map
|
package/dist/endpoints.js
CHANGED
|
@@ -315,6 +315,71 @@ export const ENDPOINTS = {
|
|
|
315
315
|
// end 规则照常触发);abort_instance 才是终止(规则不一定跑)。
|
|
316
316
|
workflowOperation: "/api/api/runtime/workflow/workflow_operation",
|
|
317
317
|
workflowFinishInstance: "/api/api/runtime/workflow/finish_instance_by_post",
|
|
318
|
+
/**
|
|
319
|
+
* The OpenAPI v2 审批动作 face — **可选通道**(`channel:"openapi"`),默认通道
|
|
320
|
+
* 是上面的会话面。OpenApiWorkflowController,
|
|
321
|
+
* `@RequestMapping("/openapi/v2/runtime/workflow")` — 8.6.26 :133 /
|
|
322
|
+
* AI-Platform 2.1.5 :129, verbatim identical. 这 8 个动作在 OpenAPI v2 面都有
|
|
323
|
+
* (reject_workitem/forward_workitem/adjust_workitem/assist_workitem/
|
|
324
|
+
* circulate_workitem/revoke_workitem/list_reject_activities/abort_instance),
|
|
325
|
+
* 但 `/openapi/**` 在 launcher 的 ResourceConfig 里是
|
|
326
|
+
* `hasAuthority("openapi")`,只有开放接口客户端(base_security_client
|
|
327
|
+
* .authorities=openapi,如种子客户端 xclient / client_credentials)满足;
|
|
328
|
+
* 门户登录 token 只有 AUTH_SYSTEM_MANAGE,USER ⇒ 401。
|
|
329
|
+
*
|
|
330
|
+
* PREFIX: the deployment's servlet context-path is `/api`
|
|
331
|
+
* (cp-sources/raw/v87/.../launcher/application-prod.yml:4 `context-path: /api`),
|
|
332
|
+
* so a controller mapping of `/openapi/...` lands on `/api/openapi/...`
|
|
333
|
+
* (SINGLE layer) — unlike the engine controllers whose own mapping already
|
|
334
|
+
* starts with `/api` (`/api/runtime/workflow` → `/api/api/runtime/workflow`).
|
|
335
|
+
* Actions carry the caller's id in the `userId` HEADER (8.6.26
|
|
336
|
+
* `@RequestHeader String userId`), which `wireCall` supplies.
|
|
337
|
+
*/
|
|
338
|
+
openApiWorkflowReject: "/api/openapi/v2/runtime/workflow/reject_workitem",
|
|
339
|
+
openApiWorkflowForward: "/api/openapi/v2/runtime/workflow/forward_workitem",
|
|
340
|
+
openApiWorkflowAdjust: "/api/openapi/v2/runtime/workflow/adjust_workitem",
|
|
341
|
+
openApiWorkflowAssist: "/api/openapi/v2/runtime/workflow/assist_workitem",
|
|
342
|
+
openApiWorkflowCirculate: "/api/openapi/v2/runtime/workflow/circulate_workitem",
|
|
343
|
+
openApiWorkflowRevoke: "/api/openapi/v2/runtime/workflow/revoke_workitem",
|
|
344
|
+
openApiWorkflowRejectActivities: "/api/openapi/v2/runtime/workflow/list_reject_activities",
|
|
345
|
+
openApiWorkflowAbort: "/api/openapi/v2/runtime/workflow/abort_instance",
|
|
346
|
+
/**
|
|
347
|
+
* 审批动作的**默认(会话)通道** — WorkflowInstanceController
|
|
348
|
+
* (`@RequestMapping("/api/runtime/workflow")`, 8.6.26 :341 / 2.1.5 :252)
|
|
349
|
+
* + 部署 context-path `/api` ⇒ 双层 `/api/api/runtime/workflow/*`。
|
|
350
|
+
*
|
|
351
|
+
* 门户 UI 自己就走这一族(登录 token 的 authorities = AUTH_SYSTEM_MANAGE,USER,
|
|
352
|
+
* user-8.6.34 UserDetailsServiceImpl.java:104),所以**会话 token 直接可用**;
|
|
353
|
+
* OpenAPI v2 面(下面的 openApiWorkflow*)要求 OAuth 客户端带 `openapi`
|
|
354
|
+
* authority(launcher ResourceConfig:`/openapi/** → hasAuthority("openapi")`),
|
|
355
|
+
* 用户 token 没有 → AccessDeniedHandlerImpl 回 HTTP 401
|
|
356
|
+
* (真机 2026-11-24:`{"errcode":401,"errmsg":"权限不够,请联系管理员"}`)。
|
|
357
|
+
*
|
|
358
|
+
* 端点形状(两版逐字一致):
|
|
359
|
+
* - POST /reject_workItem WorkItemRejectVO(rejectToActivityCode+workItemId 必填)
|
|
360
|
+
* - POST /forward_workItem WorkItemSendToVO(workflowInstanceId 必填:WorkflowAspect.addUserFavoriteAspect)
|
|
361
|
+
* - POST /adjust_workItem_participators 加签(countersign,原审批人待办保留)
|
|
362
|
+
* - POST /assist_workItem / circulate_workItem 协办 / 传阅
|
|
363
|
+
* - GET /revoke_workitem query workflowInstanceId+activityCode(+workItemId)
|
|
364
|
+
* - GET /abort_instance query workflowInstanceId(+workItemId&version)
|
|
365
|
+
* - GET /list_reject_activities query workflowInstanceId+activityCode
|
|
366
|
+
*/
|
|
367
|
+
workflowReject: "/api/api/runtime/workflow/reject_workItem",
|
|
368
|
+
workflowForward: "/api/api/runtime/workflow/forward_workItem",
|
|
369
|
+
workflowAdjustWorkItemParticipators: "/api/api/runtime/workflow/adjust_workItem_participators",
|
|
370
|
+
workflowAssist: "/api/api/runtime/workflow/assist_workItem",
|
|
371
|
+
workflowCirculate: "/api/api/runtime/workflow/circulate_workItem",
|
|
372
|
+
workflowRevoke: "/api/api/runtime/workflow/revoke_workitem",
|
|
373
|
+
workflowListRejectActivities: "/api/api/runtime/workflow/list_reject_activities",
|
|
374
|
+
/**
|
|
375
|
+
* 作废实例(`/api/runtime/workflow/abort_instance`,GET,
|
|
376
|
+
* params workflowInstanceId/workItemId?/version? — WorkflowInstanceController
|
|
377
|
+
* :867 in 8.6.26 / :639 in 2.1.5; same handleCancelWorkflowInstance target as
|
|
378
|
+
* the OpenAPI face). 会话通道的默认形态;POST `/abort_instance_by_post`
|
|
379
|
+
* (:886 / :651)接受 comment/resources,门户表单详情的「作废」用它。
|
|
380
|
+
*/
|
|
381
|
+
workflowAbortInstance: "/api/api/runtime/workflow/abort_instance",
|
|
382
|
+
workflowAbortInstanceByPost: "/api/api/runtime/workflow/abort_instance_by_post",
|
|
318
383
|
workflowListFinishedWorkItems: "/api/api/runtime/workflow/list_finished_workitems",
|
|
319
384
|
workflowGetInstanceBaseInfo: "/api/api/runtime/workflow/get_instance_baseinfo",
|
|
320
385
|
organizationRoleList: "/api/api/organization/role/list",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { partitionVersion } from "./version-partition.js";
|
|
1
2
|
/** The environment's write permission: the single machine-side write gate. */
|
|
2
3
|
export function environmentWritable(profile) {
|
|
3
4
|
return profile.writable === true;
|
|
@@ -23,6 +24,10 @@ export function environmentNotice(profile) {
|
|
|
23
24
|
? "当前是测试环境;已允许写入,仅应使用测试数据。"
|
|
24
25
|
: "当前是测试环境;当前设置为只读,写入会被拒绝。";
|
|
25
26
|
}
|
|
27
|
+
function partitionEvidence(version) {
|
|
28
|
+
const partition = partitionVersion(version);
|
|
29
|
+
return { family: partition.family, confidence: partition.confidence, matched: partition.matched };
|
|
30
|
+
}
|
|
26
31
|
export function versionEvidenceOf(input) {
|
|
27
32
|
const detected = input.detectedVersion;
|
|
28
33
|
if (detected === undefined || detected.length === 0) {
|
|
@@ -32,14 +37,23 @@ export function versionEvidenceOf(input) {
|
|
|
32
37
|
versionSource: null,
|
|
33
38
|
anchorVersion: input.anchorVersion,
|
|
34
39
|
versionFamily: input.versionFamily,
|
|
40
|
+
partition: partitionEvidence(undefined),
|
|
35
41
|
};
|
|
36
42
|
}
|
|
43
|
+
const partition = partitionVersion(detected);
|
|
37
44
|
return {
|
|
38
45
|
detectedVersion: detected,
|
|
39
|
-
|
|
46
|
+
// manifest 的锚点族是权威;今天就是 8.6。分区命中 anchor 或命中 manifest
|
|
47
|
+
// 前缀都算锚点族(后者保留给未来 manifest 改锚点的情形)。
|
|
48
|
+
inAnchorFamily: partition.family === "anchor-8.6" || detected.startsWith(`${input.versionFamily}.`),
|
|
40
49
|
versionSource: input.versionSource ?? "system-config",
|
|
41
50
|
anchorVersion: input.anchorVersion,
|
|
42
51
|
versionFamily: input.versionFamily,
|
|
52
|
+
partition: {
|
|
53
|
+
family: partition.family,
|
|
54
|
+
confidence: partition.confidence,
|
|
55
|
+
matched: partition.matched,
|
|
56
|
+
},
|
|
43
57
|
...(input.versionNotice ? { versionNotice: input.versionNotice } : {}),
|
|
44
58
|
};
|
|
45
59
|
}
|
package/dist/field-change.js
CHANGED
|
@@ -73,7 +73,12 @@ export function prepareFieldChange(input) {
|
|
|
73
73
|
});
|
|
74
74
|
assertRelationTargetPresent(propertyType, raw, input.relativeCode, input.code);
|
|
75
75
|
// Gates run here so every entry point (direct, orchestrator, intent) shares them.
|
|
76
|
-
|
|
76
|
+
// DATE format whitelist is family-specific: the lane passes the session's
|
|
77
|
+
// detected version; no evidence keeps the 8.6 19-item set (fail closed).
|
|
78
|
+
assertFieldOptionsAllowed(propertyType, raw, input.schemaCode, {
|
|
79
|
+
...(input.targetVersion ? { targetVersion: input.targetVersion } : {}),
|
|
80
|
+
...(input.deferDateFormatFamily ? { deferDateFormatFamily: true } : {}),
|
|
81
|
+
});
|
|
77
82
|
assertNumericalScale(propertyType, raw);
|
|
78
83
|
assertFormConditions(raw);
|
|
79
84
|
const options = ensureRelationDisplayFieldOptions(propertyType, raw);
|
|
@@ -228,7 +233,9 @@ export function prepareFieldUpdate(input) {
|
|
|
228
233
|
// backfill schemaCode from relativeCode (top-level or already stored) so
|
|
229
234
|
// field.publish cannot later 300010 on this field.
|
|
230
235
|
assertRelationTargetPresent(recordType, nextOptions, input.relativeCode ?? (typeof input.base.relativeCode === "string" ? input.base.relativeCode : undefined), input.code);
|
|
231
|
-
assertFieldOptionsAllowed(recordType, nextOptions, input.schemaCode
|
|
236
|
+
assertFieldOptionsAllowed(recordType, nextOptions, input.schemaCode, {
|
|
237
|
+
...(input.targetVersion ? { targetVersion: input.targetVersion } : {}),
|
|
238
|
+
});
|
|
232
239
|
if (effectiveOptions !== undefined || input.choices !== undefined)
|
|
233
240
|
assertNumericalScale(recordType, nextOptions);
|
|
234
241
|
if (effectiveOptions !== undefined)
|
package/dist/field-families.js
CHANGED
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
import { closestMatch } from "./closest-match.js";
|
|
5
5
|
import { ToolRefusalError } from "./tool-types.js";
|
|
6
6
|
import { decodeJsonObjectColumn } from "./json-column.js";
|
|
7
|
-
import { FIELD_CONTROL_CODES, FIELD_DATE_DEFAULT_OPTIONS,
|
|
7
|
+
import { FIELD_CONTROL_CODES, FIELD_DATE_DEFAULT_OPTIONS, FIELD_DATE_FORMATS_EVIDENCED, FIELD_FAMILY_LIST } from "./lanes/field-contract.js";
|
|
8
8
|
import { formConditionOptionsError } from "./lanes/datarule-protocol.js";
|
|
9
9
|
import { CAPABILITY_CONTROL_TYPES, capabilityShapeError, deriveControlOptions, deriveFieldOptions } from "./capability-shape.js";
|
|
10
10
|
export { FIELD_FAMILY_LIST, FIELD_CONTROL_CODES };
|
|
@@ -1064,7 +1064,10 @@ export function assertFieldFamilyAllowed(args) {
|
|
|
1064
1064
|
buildChildTableSubSchema(args);
|
|
1065
1065
|
return;
|
|
1066
1066
|
}
|
|
1067
|
-
|
|
1067
|
+
// Version evidence is not available in this pure-argument gate (it runs
|
|
1068
|
+
// before the session exists), so validate DATE formats against the union of
|
|
1069
|
+
// every evidenced family and let the session-aware seam decide the family.
|
|
1070
|
+
assertFieldOptionsAllowed(normalized, options, undefined, { deferDateFormatFamily: true });
|
|
1068
1071
|
// r13 (2026-10-24): NUMERICAL's scale requirement lived ONLY in the execute
|
|
1069
1072
|
// path, so `field.create --dry-run` said "fine" and the real write refused —
|
|
1070
1073
|
// two verdicts for the same payload. `model-scaffold` preflights every field
|
|
@@ -1327,7 +1330,25 @@ function choiceOptionsError(type, options) {
|
|
|
1327
1330
|
}
|
|
1328
1331
|
return null;
|
|
1329
1332
|
}
|
|
1330
|
-
|
|
1333
|
+
/**
|
|
1334
|
+
* DATE(3) `options.format` gate — version-agnostic by policy.
|
|
1335
|
+
*
|
|
1336
|
+
* Every version is validated against `FIELD_DATE_FORMATS_EVIDENCED`, the union
|
|
1337
|
+
* of every evidenced family (55 items; 8.6's 19 are a strict subset of the
|
|
1338
|
+
* AI-Platform 2.1.5 / 8.7 / 8.8 set). This is a deliberate multi-version
|
|
1339
|
+
* compatibility trade-off: OMC no longer adjudicates the platform version. A
|
|
1340
|
+
* known 8.6 server that receives a 55-only value reports 50000 on the first
|
|
1341
|
+
* runtime save, and OMC surfaces that error as-is — 平台是最终门. Only values
|
|
1342
|
+
* NO evidenced platform accepts (e.g. the Java-style `yyyy-MM-dd`) are refused
|
|
1343
|
+
* up front.
|
|
1344
|
+
*/
|
|
1345
|
+
function assertDateFormatAllowed(format) {
|
|
1346
|
+
const value = String(format);
|
|
1347
|
+
if (FIELD_DATE_FORMATS_EVIDENCED.includes(value))
|
|
1348
|
+
return;
|
|
1349
|
+
refuseFieldOptions(`不支持的日期格式:${JSON.stringify(value)}(已取证平台支持 55 种,见 options.format 枚举)`, `rejected: DATE(3) options.format 必须是已取证平台的枚举值(区分大小写的大写写法,共 55 项,见 FIELD_DATE_FORMATS_EVIDENCED)。Java 写法 yyyy-MM-dd 不在任何族——平台会判为 不支持的format,字段能创建但**首次运行时 save 报 50000**(2026-09-30 R5 实测)。这是有意的多版本兼容取舍:OMC 不按版本提前拒绝,平台是最终门,错误照实返回`);
|
|
1350
|
+
}
|
|
1351
|
+
export function assertFieldOptionsAllowed(type, options, schemaCode, _scope = {}) {
|
|
1331
1352
|
if (options) {
|
|
1332
1353
|
const shapeError = capabilityShapeError(type, "field", options);
|
|
1333
1354
|
if (shapeError)
|
|
@@ -1337,10 +1358,10 @@ export function assertFieldOptionsAllowed(type, options, schemaCode) {
|
|
|
1337
1358
|
// UPPERCASE enum (DateBizField.contentFromClient → `不支持的format:<v>`).
|
|
1338
1359
|
// The shape check above only requires the key to be present, so a Java-style
|
|
1339
1360
|
// `yyyy-MM-dd` passes create and then 50000s on the FIRST runtime save
|
|
1340
|
-
// (2026-09-30 R5 live). Refuse
|
|
1361
|
+
// (2026-09-30 R5 live). Refuse only values outside the evidenced union —
|
|
1362
|
+
// version selection is left to the platform.
|
|
1341
1363
|
if (type === FIELD_PROPERTY_TYPES.DATE && options && options.format !== undefined) {
|
|
1342
|
-
|
|
1343
|
-
refuseFieldOptions(`DATE options.format ${JSON.stringify(options.format)} 不是平台支持的格式`, `rejected: DATE(3) options.format 必须是平台枚举(区分大小写的大写写法):${FIELD_DATE_FORMATS.join("、")}。Java 写法 yyyy-MM-dd 不在其中——平台 DateBizField 会判为 不支持的format,字段能创建但**首次运行时 save 报 50000**(2026-09-30 R5 实测)`);
|
|
1364
|
+
assertDateFormatAllowed(options.format);
|
|
1344
1365
|
}
|
|
1345
1366
|
if (type === FIELD_PROPERTY_TYPES.FORMULA) {
|
|
1346
1367
|
if (options && (options.resultType !== undefined || options.expression !== undefined))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertWithinCoverage, versionFamilyNotice } from "./coverage.js";
|
|
1
|
+
import { assertWithinCoverage, versionEvidenceAbsentNotice, versionFamilyNotice } from "./coverage.js";
|
|
2
2
|
import { planFingerprint } from "./plan.js";
|
|
3
3
|
import { environmentNotice, environmentWritable, requiresProductionConfirmation } from "./environment-policy.js";
|
|
4
4
|
import { refusalFromCoverage } from "./support.js";
|
|
@@ -44,14 +44,18 @@ export async function admitGovernedWrite(ctx, request) {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
const version = session.detectedVersion();
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
//
|
|
54
|
-
//
|
|
47
|
+
// 2026-11-24 产品口径:**版本证据缺失不再关闭写面**。
|
|
48
|
+
//
|
|
49
|
+
// 原实现(`refused / version-family-evidence-missing`)挡的不是「版本不同」,
|
|
50
|
+
// 而是「探测不到版本」——而探测失败常常是环境侧的面缺失(例如 2.1.x 不挂
|
|
51
|
+
// license/info、某些部署 public/system/config 也不回版本串),按它锁死整个写面
|
|
52
|
+
// 属于把「诊断缺一条证据」升级成「不能工作」。多版本兼容优先:放行,把证据质量
|
|
53
|
+
// 显式写进 plan/回执(`versionEvidence:"absent"`),平台是最终门。
|
|
54
|
+
// blocker 名 `version-family-evidence-missing` 仅保留在 refusal-guidance 的诊断
|
|
55
|
+
// 枚举里,不再有代码路径产生它。
|
|
56
|
+
const versionEvidence = version ? undefined : "absent";
|
|
57
|
+
// P2-5:只读放行的证明在这里之后跑——它与版本无关;顺序只是让「先读版本证据、
|
|
58
|
+
// 再放行额外读回」的既有可观测顺序不变(现在缺证据也不再中断)。
|
|
55
59
|
let readOnlyEscape;
|
|
56
60
|
if (escapeRequested && request.readOnlyEscape !== undefined) {
|
|
57
61
|
let verdict;
|
|
@@ -70,10 +74,11 @@ export async function admitGovernedWrite(ctx, request) {
|
|
|
70
74
|
return settled({ ...verdict.refusal, environment: resolved.name });
|
|
71
75
|
readOnlyEscape = verdict.note;
|
|
72
76
|
}
|
|
73
|
-
// Version family is advisory
|
|
77
|
+
// Version family is advisory: OMC is built on 8.6, but a deployment on a
|
|
74
78
|
// different version (or product line, e.g. AI-Platform) is accepted in
|
|
75
|
-
// compatibility mode. Missing evidence
|
|
76
|
-
|
|
79
|
+
// compatibility mode. Missing evidence is accepted too — with an explicit
|
|
80
|
+
// `versionEvidence:"absent"` marker instead of a refusal.
|
|
81
|
+
const versionNotice = version ? versionFamilyNotice(ctx.manifest, version) : versionEvidenceAbsentNotice(ctx.manifest);
|
|
77
82
|
// Bind the plan to THIS environment (fingerprint + notice) so the preview and
|
|
78
83
|
// every downstream artifact agree.
|
|
79
84
|
const plan = {
|
|
@@ -82,6 +87,7 @@ export async function admitGovernedWrite(ctx, request) {
|
|
|
82
87
|
environmentFingerprint: session.environmentFingerprint(),
|
|
83
88
|
environmentNotice: environmentNotice(resolved.profile),
|
|
84
89
|
...(versionNotice ? { versionNotice } : {}),
|
|
90
|
+
...(versionEvidence ? { versionEvidence } : {}),
|
|
85
91
|
};
|
|
86
92
|
if (request.dryRun === true)
|
|
87
93
|
return settled((await request.dryRunResult?.(plan, session)) ?? { status: "dry-run", wouldChange: true, plan, planFingerprint: planFingerprint(plan) });
|
package/dist/human-summary.js
CHANGED
|
@@ -95,6 +95,14 @@ function noChange(outcome) {
|
|
|
95
95
|
* 无变更 instead of pretending something changed.
|
|
96
96
|
*/
|
|
97
97
|
export function writeSummary(tool, args, outcome, phase = "done") {
|
|
98
|
+
// 2026-11-24: 批量删除的运行时兜底失败(平台回成功、回读行仍在)不得读成
|
|
99
|
+
// 「已删除…」。leading verb 必须是否定,并列出仍在的 id。
|
|
100
|
+
if (phase === "done" && tool === "data.delete" && outcome?.readback?.batchDeleteIneffective) {
|
|
101
|
+
const ineffective = outcome.readback.batchDeleteIneffective;
|
|
102
|
+
const ids = Array.isArray(ineffective.undeletedIds) ? ineffective.undeletedIds.map(String) : [];
|
|
103
|
+
const schema = stringArg(args, "schemaCode");
|
|
104
|
+
return `未删除(batch-delete-ineffective)${ids.length} 条回读仍在${schema ? `(${schema})` : ""}:${ids.join("、")};改用单条 data.delete 重试`;
|
|
105
|
+
}
|
|
98
106
|
// r28b F11: data.delete already-absent must NOT read as「已删除…」— humans/CI
|
|
99
107
|
// that skim stderr treat the leading verb as the outcome. Say「未删除」first.
|
|
100
108
|
if (phase === "done" && tool === "data.delete" && outcome?.performed?.skipped === "already-absent") {
|
|
@@ -61,6 +61,12 @@ function expectedFieldOptions(schemaCode, field) {
|
|
|
61
61
|
propertyType: field.type,
|
|
62
62
|
...(field.choices ? { choices: field.choices } : {}),
|
|
63
63
|
...(field.options ? { options: field.options } : {}),
|
|
64
|
+
// This is the READBACK projection, not a write: the session-aware seam
|
|
65
|
+
// already applied the version-family DATE gate, and `compare()` has no
|
|
66
|
+
// version in scope. Without deferring, an AI-Platform 2.1.5/8.8 DATE
|
|
67
|
+
// format (MMM D, YYYY, HH:mm:ss, …) would make the projection throw and
|
|
68
|
+
// report `field-option-unwritable` for a field the apply just wrote.
|
|
69
|
+
deferDateFormatFamily: true,
|
|
64
70
|
}).options;
|
|
65
71
|
}
|
|
66
72
|
catch {
|
|
@@ -165,6 +165,7 @@ export function registerEnvironmentLane(tools) {
|
|
|
165
165
|
versionSource: versionEvidence.versionSource,
|
|
166
166
|
versionFamily: versionEvidence.versionFamily,
|
|
167
167
|
anchorVersion: versionEvidence.anchorVersion,
|
|
168
|
+
partition: versionEvidence.partition,
|
|
168
169
|
...(versionEvidence.versionNotice ? { versionNotice: versionEvidence.versionNotice } : {}),
|
|
169
170
|
// 额外键:不替代冷路径键,只标注缓存来源。
|
|
170
171
|
generatedAt: cached.generatedAt,
|
|
@@ -347,6 +348,7 @@ export function registerEnvironmentLane(tools) {
|
|
|
347
348
|
versionSource: versionEvidence.versionSource,
|
|
348
349
|
versionFamily: versionEvidence.versionFamily,
|
|
349
350
|
anchorVersion: versionEvidence.anchorVersion,
|
|
351
|
+
partition: versionEvidence.partition,
|
|
350
352
|
...(versionEvidence.versionNotice ? { versionNotice: versionEvidence.versionNotice } : {}),
|
|
351
353
|
};
|
|
352
354
|
}, {
|
|
@@ -418,6 +420,7 @@ export function registerEnvironmentLane(tools) {
|
|
|
418
420
|
versionSource: versionEvidence.versionSource,
|
|
419
421
|
versionFamily: versionEvidence.versionFamily,
|
|
420
422
|
anchorVersion: versionEvidence.anchorVersion,
|
|
423
|
+
partition: versionEvidence.partition,
|
|
421
424
|
...(versionEvidence.versionNotice ? { versionNotice: versionEvidence.versionNotice } : {}),
|
|
422
425
|
};
|
|
423
426
|
}),
|