@stalfh233/omc-cli 0.8.19 → 0.8.20
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/dist/field-families.js +4 -1
- package/dist/lanes/datarule.js +21 -1
- package/dist/lanes/field.js +44 -2
- package/dist/lanes/form.js +42 -1
- package/dist/lanes/list-view.js +6 -0
- package/dist/lanes/runtime-data.js +12 -2
- package/dist/model-purge.js +11 -1
- package/dist/model-scaffold.js +23 -10
- package/dist/read-shapes.js +3 -3
- package/dist/residue.js +5 -0
- package/package.json +3 -3
package/dist/field-families.js
CHANGED
|
@@ -899,7 +899,10 @@ export function buildFieldOptions(args) {
|
|
|
899
899
|
refuseFieldOptions("selection field options carry no optionsSet source", `rejected: ${choiceError}`);
|
|
900
900
|
}
|
|
901
901
|
normalizeBusinessModelOrderBy(explicit);
|
|
902
|
-
|
|
902
|
+
// `mappingsRaw` 是读面元数据(平台存储原文);读回→写回的 round-trip 不能把它
|
|
903
|
+
// 带上平台(fieldOptionsArg 是 passthrough,不 strip 会被原样上行)。
|
|
904
|
+
const { mappingsRaw: _readOnlyMappingsRaw, ...writeOptions } = explicit;
|
|
905
|
+
return normalizeMappingsOption(writeOptions).options;
|
|
903
906
|
}
|
|
904
907
|
const choices = args.choices;
|
|
905
908
|
if (Array.isArray(choices) && choices.length > 0) {
|
package/dist/lanes/datarule.js
CHANGED
|
@@ -1032,6 +1032,11 @@ export function registerDataRuleLane(tools) {
|
|
|
1032
1032
|
// 提交管线执行,REST 不拦。先告知执行面,省掉「先实测两轮才发现不生效」。
|
|
1033
1033
|
...(args.dataRuleType === 1
|
|
1034
1034
|
? {
|
|
1035
|
+
// 探针 N F7(0.8.20):DELIVERED 只代表配置写成功;执行面给结构键,
|
|
1036
|
+
// 别让调用方从文字推断「已生效」。
|
|
1037
|
+
runtimeScope: args.checkType === 5 ? "server" : args.checkType !== undefined ? "portal-only" : "unknown",
|
|
1038
|
+
// 缺 checkType 时执行面未知:不要假装 enforcedServerSide:false。
|
|
1039
|
+
...(args.checkType !== undefined ? { enforcedServerSide: args.checkType === 5 } : {}),
|
|
1035
1040
|
executionWarning: dataRuleExecutionWarning(args.checkType),
|
|
1036
1041
|
// P1(探针 H F3,复核 2026-11-27):声明 validateHiddenProperties
|
|
1037
1042
|
// 的行**不抑制**提示——该键 2.1.5 独有,8.6.26/8.7 不执行;只按
|
|
@@ -1125,7 +1130,22 @@ export function registerDataRuleLane(tools) {
|
|
|
1125
1130
|
const proof = dataRuleChanges(beforeDecoded, afterDecoded);
|
|
1126
1131
|
return {
|
|
1127
1132
|
performed: { errcode: performed.errcode },
|
|
1128
|
-
readback: {
|
|
1133
|
+
readback: {
|
|
1134
|
+
id, present: true, before: beforeDecoded, after: afterDecoded, changedFields: proof.changedFields, unexpectedChanges: proof.unexpectedChanges, rule: afterDecoded,
|
|
1135
|
+
// 探针 N F7 复核:update 与 create 同一执行面口径(改了 checkType 也能读到)。
|
|
1136
|
+
...(args.dataRuleType === 1
|
|
1137
|
+
? (() => {
|
|
1138
|
+
// 参数缺省时平台保留存量 checkType(fullDataRuleBody),执行面按**生效值**报。
|
|
1139
|
+
const storedCheckType = typeof afterDecoded.checkType === "number" ? afterDecoded.checkType : undefined;
|
|
1140
|
+
const effectiveCheckType = args.checkType ?? storedCheckType;
|
|
1141
|
+
return {
|
|
1142
|
+
runtimeScope: effectiveCheckType === 5 ? "server" : effectiveCheckType !== undefined ? "portal-only" : "unknown",
|
|
1143
|
+
...(effectiveCheckType !== undefined ? { enforcedServerSide: effectiveCheckType === 5 } : {}),
|
|
1144
|
+
executionWarning: dataRuleExecutionWarning(effectiveCheckType),
|
|
1145
|
+
};
|
|
1146
|
+
})()
|
|
1147
|
+
: {}),
|
|
1148
|
+
},
|
|
1129
1149
|
};
|
|
1130
1150
|
},
|
|
1131
1151
|
preflight: (args) => {
|
package/dist/lanes/field.js
CHANGED
|
@@ -367,7 +367,24 @@ function fieldRollbackSpec(toolName) {
|
|
|
367
367
|
}
|
|
368
368
|
/** Parse a raw options JSON string for readback; policy: non-strings and unparseable strings pass through verbatim. */
|
|
369
369
|
function parseFieldOptionsForReadback(options) {
|
|
370
|
-
|
|
370
|
+
const decoded = decodeJsonColumn(options, JSON_COLUMN_PASSTHROUGH);
|
|
371
|
+
if (decoded === null || typeof decoded !== "object" || Array.isArray(decoded))
|
|
372
|
+
return decoded;
|
|
373
|
+
// 探针 N F2(0.8.20):写面收数组、平台存 JSON 字符串;读面把 mappings 解回数组,
|
|
374
|
+
// 否则「写入 == 读回」的深比较会误判。解不开就保留原值(不猜、不丢)。
|
|
375
|
+
const record = decoded;
|
|
376
|
+
const raw = record.mappings;
|
|
377
|
+
if (typeof raw !== "string" || raw.trim() === "")
|
|
378
|
+
return decoded;
|
|
379
|
+
try {
|
|
380
|
+
const parsed = JSON.parse(raw);
|
|
381
|
+
// 数组给「写入同形」,原文留在 mappingsRaw:平台存储形态仍是 JSON 字符串,
|
|
382
|
+
// 读面两者都不丢(探针 N F2;A1 的存储形态断言改读 mappingsRaw)。
|
|
383
|
+
return Array.isArray(parsed) ? { ...record, mappings: parsed, mappingsRaw: raw } : decoded;
|
|
384
|
+
}
|
|
385
|
+
catch {
|
|
386
|
+
return decoded;
|
|
387
|
+
}
|
|
371
388
|
}
|
|
372
389
|
/**
|
|
373
390
|
* 探针 D F9(0.8.9):字段行 `options.mappings` 存在 = 关联填充配置。
|
|
@@ -1863,7 +1880,32 @@ async function runFieldUpdate(session, args) {
|
|
|
1863
1880
|
// options are the form-interaction contract (ADR 0005), so read them back.
|
|
1864
1881
|
const storedOptions = after !== undefined ? parseFieldOptionsForReadback(after.options) : undefined;
|
|
1865
1882
|
if (args.options !== undefined && storedOptions && typeof storedOptions === "object" && !Array.isArray(storedOptions)) {
|
|
1866
|
-
|
|
1883
|
+
// 探针 N F2 复核(P1):读面把 mappings 解成数组,写面归一化后是紧凑 JSON 字符串;
|
|
1884
|
+
// 直接 same() 恒不等,会让「改 name + 原样回传 mappings」被假拒(且写入已发生)。
|
|
1885
|
+
// mappings 两侧都先解成结构化值再比;其它键保持严格等值。
|
|
1886
|
+
const parseMappings = (value) => {
|
|
1887
|
+
if (typeof value !== "string")
|
|
1888
|
+
return value;
|
|
1889
|
+
try {
|
|
1890
|
+
return JSON.parse(value);
|
|
1891
|
+
}
|
|
1892
|
+
catch {
|
|
1893
|
+
return value;
|
|
1894
|
+
}
|
|
1895
|
+
};
|
|
1896
|
+
const storedValueFor = (key) => {
|
|
1897
|
+
const stored = storedOptions[key] ?? null;
|
|
1898
|
+
return key === "mappings" ? parseMappings(stored) : stored;
|
|
1899
|
+
};
|
|
1900
|
+
const writtenValueFor = (key) => {
|
|
1901
|
+
const written = prepared.options[key] ?? null;
|
|
1902
|
+
return key === "mappings" ? parseMappings(written) : written;
|
|
1903
|
+
};
|
|
1904
|
+
// 只读元数据(mappingsRaw)不参与「是否落地」判定:它是读面派生的,写面会剥离,
|
|
1905
|
+
// 否则读回→改→写会被假拒(写已发生却回 field-options-immutable)。
|
|
1906
|
+
const missed = Object.keys(args.options)
|
|
1907
|
+
.filter((key) => key !== "mappingsRaw")
|
|
1908
|
+
.filter((key) => !same(storedValueFor(key), writtenValueFor(key)));
|
|
1867
1909
|
if (missed.length > 0) {
|
|
1868
1910
|
throw new ToolRefusalError({
|
|
1869
1911
|
status: "refused",
|
package/dist/lanes/form.js
CHANGED
|
@@ -81,6 +81,43 @@ export function parseControlCodes(face) {
|
|
|
81
81
|
return [];
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* 探针 N F5(0.8.20):子表列在 attributes 里的位置是**控件顶层 `columns`**,
|
|
86
|
+
* 不是 `options.columns`(平台 BizForm 属性行)。写入用 `childColumns` 参数、
|
|
87
|
+
* 读回却是另一条路径——给一个结构化 locator,省掉三次 jq 探测。
|
|
88
|
+
*/
|
|
89
|
+
function childColumnLocatorOf(face, faceName) {
|
|
90
|
+
if (typeof face !== "string" || face.trim() === "")
|
|
91
|
+
return undefined;
|
|
92
|
+
let parsed;
|
|
93
|
+
try {
|
|
94
|
+
parsed = JSON.parse(face);
|
|
95
|
+
}
|
|
96
|
+
catch {
|
|
97
|
+
return undefined;
|
|
98
|
+
}
|
|
99
|
+
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed))
|
|
100
|
+
return undefined;
|
|
101
|
+
const children = [];
|
|
102
|
+
for (const [code, value] of Object.entries(parsed)) {
|
|
103
|
+
if (value === null || typeof value !== "object" || Array.isArray(value))
|
|
104
|
+
continue;
|
|
105
|
+
// 只认子表控件(BizFormPropertyType.Sheet = 201);容器/Tab(499/500)用 children。
|
|
106
|
+
if (Number(value.type) !== 201)
|
|
107
|
+
continue;
|
|
108
|
+
const columns = value.columns;
|
|
109
|
+
if (!Array.isArray(columns) || columns.length === 0)
|
|
110
|
+
continue;
|
|
111
|
+
const columnCodes = columns
|
|
112
|
+
.map((column) => (column !== null && typeof column === "object" ? String(column.key ?? "") : ""))
|
|
113
|
+
.filter((key) => key.length > 0);
|
|
114
|
+
if (columnCodes.length > 0)
|
|
115
|
+
children.push({ code, columnCodes });
|
|
116
|
+
}
|
|
117
|
+
return children.length > 0
|
|
118
|
+
? { path: `${faceName}[<childCode>].columns(不是 options.columns)`, children: children.slice(0, 10) }
|
|
119
|
+
: undefined;
|
|
120
|
+
}
|
|
84
121
|
/**
|
|
85
122
|
* issue 04:`publishedActionsJson` 是真实的 bizsheet 列(ticket 100),默认面
|
|
86
123
|
* 此前整列不可见 ⇒ 读成「没有表单按钮动作」。默认面只给计数 + 编码(不给正文);
|
|
@@ -189,6 +226,9 @@ export function registerFormLane(tools) {
|
|
|
189
226
|
// B5-2(真机 2.1.5):inSync 必须比**四对**面(view/attributes/html/actions,
|
|
190
227
|
// 平台 AppIntegrationFacadeImpl:2670 同口径);只比 view 时「草稿改了字段标签」
|
|
191
228
|
// 会误判成 published。比较用规范化语义等值,见 compareFormFaces。
|
|
229
|
+
// F5(0.8.20):子表列 locator(发布面优先,草稿面兜底)。
|
|
230
|
+
const childColumnLocator = childColumnLocatorOf(sheet.publishedAttributesJson, "publishedAttributesJson")
|
|
231
|
+
?? childColumnLocatorOf(sheet.draftAttributesJson, "draftAttributesJson");
|
|
192
232
|
const faceSync = compareFormFaces(sheet, { draftPresent, publishedPresent });
|
|
193
233
|
const faceVerdict = resolveEffectiveFormFace({
|
|
194
234
|
draftPresent,
|
|
@@ -215,6 +255,7 @@ export function registerFormLane(tools) {
|
|
|
215
255
|
inSync: faceSync.inSync,
|
|
216
256
|
...(faceSync.inSync === false ? { differingFaces: faceSync.differingFaces } : {}),
|
|
217
257
|
},
|
|
258
|
+
...(childColumnLocator !== undefined ? { childColumnLocator } : {}),
|
|
218
259
|
...(flagMismatch
|
|
219
260
|
? {
|
|
220
261
|
flagMismatch: true,
|
|
@@ -340,7 +381,7 @@ export function registerFormLane(tools) {
|
|
|
340
381
|
compact: (result) => {
|
|
341
382
|
// 探针 L F7:platformFlags 只有两个布尔,compact 若不保留会被压成
|
|
342
383
|
// `platformFlagsCount:2`,平台原文恰好在降载时丢失。
|
|
343
|
-
const KEEP = new Set(["draftControls", "publishedControls", "customButtonJson", "options", "formButtons", "formButtonCodes", "platformFlags"]);
|
|
384
|
+
const KEEP = new Set(["draftControls", "publishedControls", "customButtonJson", "options", "formButtons", "formButtonCodes", "platformFlags", "childColumnLocator"]);
|
|
344
385
|
// r28e F4 暴露的潜在 bug:handler 已经交过 `*Codes`/`*Count`/`*Omitted`
|
|
345
386
|
// 这类**已压缩**的键,若再走数组分支会被二次加后缀
|
|
346
387
|
// (`publishedControlCodes` → `publishedControlCodesCodes`),字段直接消失。
|
package/dist/lanes/list-view.js
CHANGED
|
@@ -1273,6 +1273,12 @@ export function registerListViewLane(tools) {
|
|
|
1273
1273
|
"视图条件的运行时过滤语义未取证:REST `data.list --queryCode <本视图>` 实测不应用固定条件(r35:读回 Gte/5000 正确、返回未过滤 4 条)。别用 queryCode 断言过滤生效;REST 侧过滤用 `data.list` 显式 `filter`。";
|
|
1274
1274
|
if (conditions.length > 0)
|
|
1275
1275
|
readback.viewConditionsAppliedRest = false;
|
|
1276
|
+
// 探针 N F8(0.8.20):配置写成功 ≠ 运行面已验证。结构键与 viewConditionsAppliedRest
|
|
1277
|
+
// 同层(writeTool 只透传 readback),别只埋在 conditionVerification 的文字里。
|
|
1278
|
+
if (conditions.length > 0) {
|
|
1279
|
+
readback.acceptance = "config-only";
|
|
1280
|
+
readback.runtimeVerified = false;
|
|
1281
|
+
}
|
|
1276
1282
|
// F6(0.8.16 探针 J):conditionRuntimeNote 只说「不行」,探针要一个可执行
|
|
1277
1283
|
// 的验收入口。配置面验收 = listview.get 回读 conditions(propertyCode/
|
|
1278
1284
|
// filterType/defaultValue);运行时面没有 REST 验证入口(固定条件只在门户
|
|
@@ -2609,7 +2609,14 @@ export function registerRuntimeDataLane(tools) {
|
|
|
2609
2609
|
// 口径 = 行级证据(items[].unprojected 的跨行并集)。模型目录点名
|
|
2610
2610
|
// (projectionWarning.unprojected)只进 warning.hint,不计入本数——
|
|
2611
2611
|
// 否则人类行会指向该场景里并不存在的 `items[].unprojected`。
|
|
2612
|
-
|
|
2612
|
+
// 探针 N F6(0.8.20):顶层给 rowsProjected + 点名,别让调用方把
|
|
2613
|
+
// data.list 当「全字段」对照(行级 unprojected 是设计行为)。
|
|
2614
|
+
// 只在**小行集**(≤10 行,读门保证内联)加这个旗标:大行集会外置,
|
|
2615
|
+
// `unprojected` 已随 artifact/行级给出;给 25 行的临界载荷再加键会把它
|
|
2616
|
+
// 顶过 2048B 读门,反而让 items 外置(w53 F5 的回归)。
|
|
2617
|
+
...(unprojectedCodes.length > 0 && items.length <= 10
|
|
2618
|
+
? { rowsProjected: true, unprojectedFieldCount: unprojectedCodes.length }
|
|
2619
|
+
: {}),
|
|
2613
2620
|
...(projectionMissAll.length > 0 ? { projectionMiss: projectionMissAll } : {}),
|
|
2614
2621
|
...(columnsNotProjected.length > 0 ? { columnsNotProjected } : {}),
|
|
2615
2622
|
...(columnsOutsideView.length > 0 ? { columnsOutsideView, columnsNarrowingOnly: true, columnsNote: DATA_LIST_COLUMNS_NARROWING_NOTE } : {}),
|
|
@@ -2821,7 +2828,10 @@ export function registerRuntimeDataLane(tools) {
|
|
|
2821
2828
|
...(projectionHintPaged !== undefined ? { projectionHint: projectionHintPaged } : {}),
|
|
2822
2829
|
...(anyNullField ? { nullSemantics: DATA_LIST_NULL_SEMANTICS } : {}),
|
|
2823
2830
|
// 同 all 路径:只数行级证据,模型目录点名留在 warning.hint。
|
|
2824
|
-
|
|
2831
|
+
// 同 all 路径:小行集才加旗标(临界载荷不再多付字节)。
|
|
2832
|
+
...(unprojectedCodes.length > 0 && items.length <= 10
|
|
2833
|
+
? { rowsProjected: true, unprojectedFieldCount: unprojectedCodes.length }
|
|
2834
|
+
: {}),
|
|
2825
2835
|
...(projectionMissPaged.length > 0 ? { projectionMiss: projectionMissPaged } : {}),
|
|
2826
2836
|
...(columnsNotProjected.length > 0 ? { columnsNotProjected } : {}),
|
|
2827
2837
|
...(columnsOutsideView.length > 0 ? { columnsOutsideView, columnsNarrowingOnly: true, columnsNote: DATA_LIST_COLUMNS_NARROWING_NOTE } : {}),
|
package/dist/model-purge.js
CHANGED
|
@@ -634,7 +634,17 @@ export async function executePurge(plan, session, call) {
|
|
|
634
634
|
...(plan.unbindReferences === true
|
|
635
635
|
? { unbindReferences: true }
|
|
636
636
|
: autoUnbindSelfReferences
|
|
637
|
-
? {
|
|
637
|
+
? {
|
|
638
|
+
autoUnbindSelfReferences: true,
|
|
639
|
+
// 探针 N F9(0.8.20):自引用列被删是不可恢复的破坏性动作,回执里要有
|
|
640
|
+
// 结构标记;但解绑中途失败时不得宣称「列已删除」——只在全部步骤成功后给。
|
|
641
|
+
...(unbindOutcome !== undefined && unbindOutcome.failed !== true
|
|
642
|
+
? {
|
|
643
|
+
destructive: true,
|
|
644
|
+
destructiveNote: "自引用子表列已被删除并重新发布(列数据不可恢复)。跨模型引用仍需显式 --unbind-references;自引用为一条命令清场默认自动拆——先跑 dry-run 看 warnings/步骤再用 --apply。",
|
|
645
|
+
}
|
|
646
|
+
: {}),
|
|
647
|
+
}
|
|
638
648
|
: {}),
|
|
639
649
|
...(unbindOutcome !== undefined ? { unboundSteps: unbindOutcome.executed, unbindFailed: unbindOutcome.failed } : {}),
|
|
640
650
|
deletedInstances: steps.filter((step) => step.step.startsWith("workflow.delete_instance:") && step.status === "ok").length,
|
package/dist/model-scaffold.js
CHANGED
|
@@ -51,7 +51,20 @@ export function validateScaffoldFields(fields) {
|
|
|
51
51
|
walk(fields, "fields");
|
|
52
52
|
return problems;
|
|
53
53
|
}
|
|
54
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* 0.8.20(探针 N F1):`publishedFields` 曾放「发布动作次数」(常=1),与字段数
|
|
56
|
+
* 量级不符。现在按名字给**模型当前已发布业务字段数**(发布是模型级一次提交);
|
|
57
|
+
* 动作次数只在 `publishActions`,本次新建并随发布覆盖的字段数在
|
|
58
|
+
* `fieldsPublishedEstimate`。精确清单仍以 `field.list --published` 为准。
|
|
59
|
+
*/
|
|
60
|
+
export function scaffoldPublishCounts(publishActions, fieldCount, createdFieldCount, publishBlocked) {
|
|
61
|
+
// `field.publish` 是**模型级**一次提交:没有被拦时,模型当前业务字段全部在发布面
|
|
62
|
+
// (幂等重跑时本次新建 0 个,但既有字段仍是已发布态 → 不能回 0)。
|
|
63
|
+
const publishedFields = publishBlocked ? 0 : fieldCount;
|
|
64
|
+
const fieldsPublishedEstimate = publishBlocked ? 0 : createdFieldCount;
|
|
65
|
+
return { publishActions, publishedFields, fieldsPublishedEstimate };
|
|
66
|
+
}
|
|
67
|
+
/** The child-table columns of a field (top-level `subFields[]`). */
|
|
55
68
|
export function scaffoldChildrenOf(field) {
|
|
56
69
|
const raw = field.subFields ?? field.childFields;
|
|
57
70
|
return Array.isArray(raw) ? raw : [];
|
|
@@ -367,9 +380,11 @@ export async function cmdModelScaffold(args) {
|
|
|
367
380
|
// 以「本次真的写入」为准,不再把 attach 一起建出的子列记成 skipped。
|
|
368
381
|
const fieldCount = fields.length + childColumnCount;
|
|
369
382
|
const publishActions = publishFieldSteps.filter((step) => step.status === "ok").length;
|
|
370
|
-
// r28g F5:旧键 publishedFields
|
|
371
|
-
// 与 fieldCount
|
|
372
|
-
|
|
383
|
+
// r28g F5:旧键 publishedFields 曾是「发布动作次数/目标 schema 数」(常=1),
|
|
384
|
+
// 与 fieldCount 量级不符。0.8.20(探针 N F1):把 publishedFields 改成**字段数**
|
|
385
|
+
// 语义(=fieldsPublishedEstimate),发布动作次数保留在 publishActions;精确清单
|
|
386
|
+
// 仍以 field.list --published 为准。
|
|
387
|
+
const publishCounts = scaffoldPublishCounts(publishActions, fieldCount, createdFieldCount, publishingBlocked || fieldPublishFailed);
|
|
373
388
|
const result = {
|
|
374
389
|
status,
|
|
375
390
|
model: code,
|
|
@@ -385,12 +400,10 @@ export async function cmdModelScaffold(args) {
|
|
|
385
400
|
created: createdFieldCount,
|
|
386
401
|
skipped: alreadyPresentFieldCount,
|
|
387
402
|
failed: failedFields.length,
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
? `已执行 ${publishActions} 次模型级 field.publish(覆盖本次创建的约 ${fieldsPublishedEstimate}/${fieldCount} 个字段;精确清单用 field.list --published)`
|
|
393
|
-
: "未发布字段(有失败或被跳过);精确状态用 field.list",
|
|
403
|
+
...publishCounts,
|
|
404
|
+
publishNote: publishingBlocked || fieldPublishFailed
|
|
405
|
+
? "未发布字段(有失败或被跳过);精确状态用 field.list"
|
|
406
|
+
: `已执行 ${publishActions} 次模型级 field.publish(本次新建 ${publishCounts.fieldsPublishedEstimate} 个字段随发布覆盖;模型当前业务字段 ${fieldCount} 个都在发布面;精确清单用 field.list --published)`,
|
|
394
407
|
...(failedFields.length > 0 ? { failedFields } : {}),
|
|
395
408
|
...(failedSteps.length > 0 ? { failedSteps } : {}),
|
|
396
409
|
...(lastSummaries.length > 0 ? { summaries: lastSummaries } : {}),
|
package/dist/read-shapes.js
CHANGED
|
@@ -56,7 +56,7 @@ const READ_SHAPES = {
|
|
|
56
56
|
peerTool: "data.load",
|
|
57
57
|
peerColumnKey: "data.<code>",
|
|
58
58
|
},
|
|
59
|
-
keys: ["items:array<{id,fields:{<code>:value}}>", "total", "totalPages", "page", "size"],
|
|
59
|
+
keys: ["items:array<{id,fields:{<code>:value}}>", "total", "totalPages", "page", "size", "rowsProjected?", "unprojectedFields?", "unprojectedFieldCount?"],
|
|
60
60
|
// r28i F4: agents try rows[] / items[].sku first; pin the real shape here too.
|
|
61
61
|
notes: [
|
|
62
62
|
"业务列在 items[].fields.<code>(--jq 用 items[].fields.sku);计数=size:1+filter 只读 total(不拉行);分组=值域×count",
|
|
@@ -126,7 +126,7 @@ const READ_SHAPES = {
|
|
|
126
126
|
},
|
|
127
127
|
"field.list": {
|
|
128
128
|
keys: ["fields:array<{code,name,type,...}>", "modelPresent?"],
|
|
129
|
-
notes: ["字段行键=fields[].code(带 name/type 明细);model.inspect 的 fieldCodes 是同一清单的纯 code 投影——跨面对照别拿错键", "模型不存在时平台可能 refused(300004);存在性判据优先 model.inspect.modelPresent / rule.list.modelPresent"],
|
|
129
|
+
notes: ["字段行键=fields[].code(带 name/type 明细);model.inspect 的 fieldCodes 是同一清单的纯 code 投影——跨面对照别拿错键", "字段选项 options.mappings 读回为数组(写入同形),平台存储原文在 options.mappingsRaw", "模型不存在时平台可能 refused(300004);存在性判据优先 model.inspect.modelPresent / rule.list.modelPresent"],
|
|
130
130
|
},
|
|
131
131
|
"workitem.list": {
|
|
132
132
|
// Flat rows — no fields bag. Wire id is projected as workItemId.
|
|
@@ -221,7 +221,7 @@ const READ_SHAPES = {
|
|
|
221
221
|
// A2 locator:控件清单键 ↔ config.diff 的逐控件差异路径(BizFormModel.java:26-32
|
|
222
222
|
// 六列分面存储,diff 按控件 key 对齐,前缀 view/attributes/html/actions)。
|
|
223
223
|
locator: { controlCodes: "publishedControlCodes|draftControlCodes", diffPath: "changes[].path" },
|
|
224
|
-
keys: ["present", "published", "publishedControlCodes", "draftControlCodes", "formButtonCodes?", "formButtons?", "customButtonJson?(full)", "customButtonJsonShapeWarning?"],
|
|
224
|
+
keys: ["present", "published", "publishedControlCodes", "draftControlCodes", "childColumnLocator?:{path,children[]}", "formButtonCodes?", "formButtons?", "customButtonJson?(full)", "customButtonJsonShapeWarning?"],
|
|
225
225
|
notes: [
|
|
226
226
|
"控件清单键是 publishedControlCodes/draftControlCodes,不是 controls;两面差异的逐控件路径在 config.diff changes[].path(前缀 view/attributes/html/actions,按控件 key 对齐)",
|
|
227
227
|
"表单按钮读 formButtonCodes/formButtons;full:true 另带 customButtonJson 数组原样(库里是字符串脏形时给 customButtonJsonShapeWarning——线上 #38 前端按钮不渲染,重写 buttons 自愈)",
|
package/dist/residue.js
CHANGED
|
@@ -141,6 +141,11 @@ export async function scanResidues(session, prefix, options = {}) {
|
|
|
141
141
|
// 探针 L F9:clean 的覆盖面结论单独出键。clean 语义不变(不改成 false),
|
|
142
142
|
// 但 complete:false 明说「这次扫描没覆盖全部面」,读者不能只看 clean。
|
|
143
143
|
complete,
|
|
144
|
+
// 0.8.20(探针 N F3):一个词回答「到底删净没有」,别让调用方在
|
|
145
|
+
// clean / complete 两个布尔之间推理。clean 语义不变。
|
|
146
|
+
verdict: userResidues === 0 && !pendingCascade
|
|
147
|
+
? complete ? "clean" : "clean-with-unscanned-faces"
|
|
148
|
+
: "residues",
|
|
144
149
|
// r70 探针01-F7:真残留存在时顶层 clean:true 仍误导(coverage 在深处,首屏只看
|
|
145
150
|
// clean)——caveat 常驻顶层,紧贴 clean 键。
|
|
146
151
|
cleanCaveat: "clean 仅指已扫描面(scanned faces only);report 面未扫描(报表资源残留用 report.tree + report.get 判)",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stalfh233/omc-cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.20",
|
|
4
4
|
"description": "CloudPivot 8.6 configuration capability CLI — governed, fail-closed, coverage-manifest bounded.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"commander": "14.0.3",
|
|
61
|
-
"omc-core": "0.8.
|
|
61
|
+
"omc-core": "0.8.20",
|
|
62
62
|
"proper-lockfile": "4.1.2",
|
|
63
63
|
"write-file-atomic": "6.0.0",
|
|
64
64
|
"zod": "^3.23.8",
|
|
@@ -76,6 +76,6 @@
|
|
|
76
76
|
"directory": "packages/omc-cli"
|
|
77
77
|
},
|
|
78
78
|
"optionalDependencies": {
|
|
79
|
-
"@stalfh233/omc-fake-platform": "0.8.
|
|
79
|
+
"@stalfh233/omc-fake-platform": "0.8.20"
|
|
80
80
|
}
|
|
81
81
|
}
|