@stalfh233/omc-cli 0.6.57 → 0.6.58
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/discovery.js +4 -0
- package/dist/execution-metadata.js +2 -1
- package/dist/goal-routes.js +26 -0
- package/dist/lanes/report.js +12 -3
- package/dist/path-projection.js +5 -2
- package/dist/read-shapes.js +41 -0
- package/dist/recipes/report.js +114 -0
- package/dist/search-index.js +6 -0
- package/package.json +3 -3
- package/skills/omc-business-configuration.md +6 -0
package/dist/discovery.js
CHANGED
|
@@ -544,6 +544,10 @@ export function describeTool(registry, name) {
|
|
|
544
544
|
// High-frequency read faces: declare the RESULT keys so `--jq` does not
|
|
545
545
|
// have to learn them from a pathMiss. Zero bytes when undeclared.
|
|
546
546
|
...(returnsFace(tool.name) ?? {}),
|
|
547
|
+
// r66 ① readbackKeys(c-F2):没有 authored read-shape 的工具也别说「键名无处
|
|
548
|
+
// 可查」——裸 --jq(不带路径)就是键清单(与 artifact get --keys 同语义)。
|
|
549
|
+
// 只在无 returns 声明时出现,避免与 returns.keys 重复。
|
|
550
|
+
...(readShapeFor(tool.name) === undefined ? { returnsHint: "回执键清单:omc call 本工具 --jq(裸,不带路径)= 顶层键一览" } : {}),
|
|
547
551
|
// r32 F1(真机):探针并发发两条 app.create,第二条回 write-lock-held。
|
|
548
552
|
// 撞上之前没有任何发现面说过"写是环境级串行"——describe 的 params 里没有 wait
|
|
549
553
|
// (它是 omc call 的 CLI 开关,不在工具 schema),capability notes 是空的。
|
|
@@ -13,7 +13,8 @@ import { B2_METADATA } from "./recipes/b2-registration.js";
|
|
|
13
13
|
import { ONLINEJS_METADATA } from "./recipes/online-js.js";
|
|
14
14
|
import { LISTVIEW_METADATA } from "./recipes/list-view.js";
|
|
15
15
|
import { DICTIONARY_METADATA } from "./recipes/dictionary.js";
|
|
16
|
-
|
|
16
|
+
import { REPORT_METADATA } from "./recipes/report.js";
|
|
17
|
+
const SOURCES = [MODEL_METADATA, FORM_METADATA, FIELD_METADATA, DATARULE_METADATA, BUSINESSRULE_METADATA, WORKFLOW_METADATA, RUNTIME_DATA_METADATA, B2_METADATA, ONLINEJS_METADATA, LISTVIEW_METADATA, DICTIONARY_METADATA, REPORT_METADATA];
|
|
17
18
|
const merged = {};
|
|
18
19
|
for (const source of SOURCES) {
|
|
19
20
|
for (const [tool, metadata] of Object.entries(source)) {
|
package/dist/goal-routes.js
CHANGED
|
@@ -1181,6 +1181,8 @@ function goalRouteInner(registry, goal) {
|
|
|
1181
1181
|
capability: id,
|
|
1182
1182
|
lane: capability.lane,
|
|
1183
1183
|
tools: stepTools(registry, capability.lane),
|
|
1184
|
+
// r66 ②(c-F4):有依赖顺序的能力(report)在阶梯步骤里也带 order。
|
|
1185
|
+
...(capabilityOrder(id) ?? {}),
|
|
1184
1186
|
// r65 a-F6:多能力阶梯不内联 notes(字节),给一步指针。
|
|
1185
1187
|
notesCommand: `omc capability ${id} --executable`,
|
|
1186
1188
|
...(recipe
|
|
@@ -1313,6 +1315,9 @@ function goalRouteInner(registry, goal) {
|
|
|
1313
1315
|
? { primary: "intent" }
|
|
1314
1316
|
: { primary: "atomic", note: "该能力无声明式面(intent.level=none),走原子工具" }) : {}),
|
|
1315
1317
|
...(readish ? { readTools: readToolsInLane(registry, route.lane) } : { tools: route.tools }),
|
|
1318
|
+
// r66 ②(c-F4):有依赖顺序的能力(report)显式给 order,修掉 tools 键序
|
|
1319
|
+
// (注册序 link<create)对步骤顺序的误导。
|
|
1320
|
+
...(readish ? {} : (capabilityOrder(capabilityId) ?? {})),
|
|
1316
1321
|
// r65 a-F6(探针复现):定位语(workflow 的「测试提速三件套/运维过的实例权限
|
|
1317
1322
|
// 语义已变」)只活在 capability notes 里,next 不带——探针靠 ladder 回包顺带
|
|
1318
1323
|
// 瞥见才知道有这条路。单能力路由把 notes 直接内联(各能力 notes ≤ ~400B)。
|
|
@@ -1338,6 +1343,27 @@ function goalRouteInner(registry, goal) {
|
|
|
1338
1343
|
: { firstAnswer: { state: "needs-input", question: "要操作哪个对象?给我 schemaCode(或模型业务名,我列清单核对)", action: LIST_MODELS_ACTION, why: "未命中配方:需要目标对象 code 才能给出一步可跑的写命令" } }),
|
|
1339
1344
|
};
|
|
1340
1345
|
}
|
|
1346
|
+
/**
|
|
1347
|
+
* r66 ②(c-F4 真机复现):`next` 报表链回执的 `tools` 对象按 lane 注册序排列——
|
|
1348
|
+
* `report.datasource.link` 排在 `report.create` 前,探针照键序先 link 被拒
|
|
1349
|
+
* (dashboard 不存在)。tools map 是注册投影,键序不该被读成语义;有依赖顺序的
|
|
1350
|
+
* 能力在此声明 `order`,路由原样透出。未列的能力不输出(零字节)。
|
|
1351
|
+
*/
|
|
1352
|
+
const CAPABILITY_ORDERS = Object.freeze({
|
|
1353
|
+
report: ["report.create", "report.datasource.link", "report.configure", "report.update", "report.delete"],
|
|
1354
|
+
});
|
|
1355
|
+
/** 取能力的执行序(含 chartdata 取数边界注记),未声明返回 undefined。 */
|
|
1356
|
+
function capabilityOrder(capabilityId) {
|
|
1357
|
+
const order = CAPABILITY_ORDERS[capabilityId];
|
|
1358
|
+
if (order === undefined)
|
|
1359
|
+
return undefined;
|
|
1360
|
+
// chartdata 是取数一跳(环境边界:reporter 版本族须对齐主应用,8.6 环境见
|
|
1361
|
+
// r63 教学信封)——单列注记而不是塞进 order(它不是配置链的一环)。
|
|
1362
|
+
if (capabilityId === "report") {
|
|
1363
|
+
return { order, orderNote: "执行顺序见 order(tools 的键序是注册序,勿按它排步骤);chartdata 是取数一跳:需 reporter 版本族对齐主应用,环境边界,换参数/重试无用" };
|
|
1364
|
+
}
|
|
1365
|
+
return { order };
|
|
1366
|
+
}
|
|
1341
1367
|
/**
|
|
1342
1368
|
* `next` 的对外入口:原有路由结果原样返回,只在「引用/影响面」类提问上追加
|
|
1343
1369
|
* `graphHint`(不改 route、不改 confident、不改 firstAnswer)。理由见
|
package/dist/lanes/report.js
CHANGED
|
@@ -213,7 +213,10 @@ function summarizeChartEntry(entry) {
|
|
|
213
213
|
if (entry !== null && typeof entry === "object") {
|
|
214
214
|
const row = entry;
|
|
215
215
|
const field = row.field ?? row.name ?? row.code ?? row.alias ?? row.caption ?? row.id;
|
|
216
|
-
|
|
216
|
+
// r66 ②:真机报文(reporter 日志 @AfterThrowing args,2026-11-14 01:48)实证聚合键是
|
|
217
|
+
// `agg`(小写):{"field":"name","alias":"合同数","agg":"count"}。枚举来自 reporter
|
|
218
|
+
// AggregateTypeEnum:sum/avg/count/max/min/countDistinct/…(报文小写)。
|
|
219
|
+
const agg = row.agg ?? row.aggregation ?? row.aggFunc ?? row.aggregate ?? row.type;
|
|
217
220
|
return agg !== undefined ? `${String(field)}(${String(agg)})` : String(field);
|
|
218
221
|
}
|
|
219
222
|
return String(entry);
|
|
@@ -222,6 +225,12 @@ function summarizeChartEntry(entry) {
|
|
|
222
225
|
* r65 c-F8(探针复现):readback 只投影 uuid/title/type/dataSourceId/mainTable/position,
|
|
223
226
|
* 「按什么汇总」全在 data 里却不投影——回执只能证「图行存在」不能证「图配对」。
|
|
224
227
|
* 维度/度量做最佳努力摘要;解析不出结构时至少回 dataKeys 让调用方知道下一步取什么。
|
|
228
|
+
*
|
|
229
|
+
* r66 ② 纠偏(真机取证):data 内键是**单数** dimension/metric/filter/sort——r65 写的
|
|
230
|
+
* 复数 dimensions/measures 在真机形状下永远解析不出(fake 当时 dataAbsent 未暴露)。
|
|
231
|
+
* 真机报文:{"dimension":[],"metric":[{"field":"name","alias":"合同数","agg":"count"}],
|
|
232
|
+
* "filter":[],"sort":[],"limit":{"value":10,"showOthers":false},"options":{}}
|
|
233
|
+
* (reporter 日志 2026-11-14 01:48,r63_probe_chart;枚举=AggregateTypeEnum)。
|
|
225
234
|
*/
|
|
226
235
|
function chartDataSummary(raw) {
|
|
227
236
|
const data = parseJsonText(raw);
|
|
@@ -230,9 +239,9 @@ function chartDataSummary(raw) {
|
|
|
230
239
|
if (typeof data !== "object" || Array.isArray(data))
|
|
231
240
|
return { dataPresent: true };
|
|
232
241
|
const out = {};
|
|
233
|
-
for (const key of ["dimensions", "measures", "filters", "rows", "columns"]) {
|
|
242
|
+
for (const key of ["dimension", "metric", "filter", "sort", "dimensions", "measures", "filters", "rows", "columns"]) {
|
|
234
243
|
const value = data[key];
|
|
235
|
-
if (Array.isArray(value) && value.length > 0)
|
|
244
|
+
if (Array.isArray(value) && value.length > 0 && out[key] === undefined)
|
|
236
245
|
out[key] = value.slice(0, 6).map(summarizeChartEntry);
|
|
237
246
|
}
|
|
238
247
|
return Object.keys(out).length > 0 ? out : { dataKeys: Object.keys(data).slice(0, 10) };
|
package/dist/path-projection.js
CHANGED
|
@@ -192,13 +192,16 @@ export const JQ_PATH_TOPIC = "omc-refusals";
|
|
|
192
192
|
export const JQ_PATH_SECTION = "10. 投影路径(--jq / --extract)";
|
|
193
193
|
export const JQ_PATH_HELP_POINTER = `语法详解:omc help ${JQ_PATH_TOPIC} --section 10(投影路径)。`;
|
|
194
194
|
/** Shared wording for every projection miss, so every face teaches the same syntax. */
|
|
195
|
-
|
|
195
|
+
// r66 ① readbackKeys(c-F2):R65 探针 3 次投影 miss 全靠 available 救回——键名
|
|
196
|
+
// 无处可查。裸 --jq(不带路径)= 键清单这个姿势一直在(cli.ts extractKeys 分支),
|
|
197
|
+
// 但没有任何一面教过它。miss 正是教学时机:撞过一次的人最听得进「先看全键再投影」。
|
|
198
|
+
export const PATH_MISS_HINT = `路径未命中(这一层没有该段)。${RESULT_RELATIVE_PATH_NOTE}${JQ_PATH_SYNTAX}available 是该层真实存在的键。想一次拿全部顶层键:--jq 不带路径重跑。${JQ_PATH_RULES}${JQ_PATH_HELP_POINTER}`;
|
|
196
199
|
/**
|
|
197
200
|
* `artifact get` 面:产物内容的投影。区别只在开头——它已经把 miss 落在哪一段
|
|
198
201
|
* (`missedAt`)和可用的键/范围一并返回,所以不必重复「这一层没有该段」。
|
|
199
202
|
*/
|
|
200
203
|
export function artifactPathMissHint(at) {
|
|
201
|
-
return `路径未命中${at !== undefined ? `段 "${at}"` : "(这一层没有该段)"}——available 是该层真实存在的键/范围;方括号下标(a[0])与点式(a.0
|
|
204
|
+
return `路径未命中${at !== undefined ? `段 "${at}"` : "(这一层没有该段)"}——available 是该层真实存在的键/范围;方括号下标(a[0])与点式(a.0)等价;想一次拿全部顶层键:--keys(或裸 --jq)。${JQ_PATH_SYNTAX}${JQ_PATH_RULES}${JQ_PATH_HELP_POINTER}`;
|
|
202
205
|
}
|
|
203
206
|
/** 逗号多路径里只有部分 miss:给出定位方式 + 同一套语法。 */
|
|
204
207
|
export function partialPathMissHint() {
|
package/dist/read-shapes.js
CHANGED
|
@@ -161,6 +161,47 @@ const READ_SHAPES = {
|
|
|
161
161
|
keys: ["roleId", "userId", "count", "scopes:array<{id,deptId,name,type,deptPath,includeChildren,source}>", "actor?", "readback"],
|
|
162
162
|
notes: ["不是枚举档位:scopes 是部门节点列表;roleId 与 roleCode 二者其一;includeChildren 平台不返回(unknown);source:configured;空结果是合法空集"],
|
|
163
163
|
},
|
|
164
|
+
// r66 ① readbackKeys(c-F2):R65 探针 3 次投影 miss(items→applications 类)靠 pathMiss
|
|
165
|
+
// 救回;报表面当时整族零声明。以下 9 条全部从 fake 真实回执采样生成
|
|
166
|
+
// (node --import tsx 采样脚本:create→link→configure→get/chartdata 全链),非手写。
|
|
167
|
+
// 写面条目列 readback 内层键(回执壳 performed/deliveryState/summary/detailFile 等
|
|
168
|
+
// 是所有写工具共同结构,见 --full);returnsFace 只取 notes[0]。
|
|
169
|
+
"report.tree": {
|
|
170
|
+
keys: ["status", "appCode", "reportCount", "reports:array<{code,name,treeNodeId,parentId,path,charts}>", "chartTreeCount", "note"],
|
|
171
|
+
notes: ["列表键是 reports[](不是 items/folders);行内 charts 是图表计数"],
|
|
172
|
+
},
|
|
173
|
+
"report.datasource.list": {
|
|
174
|
+
keys: ["status", "kind", "parentObjectId?", "count", "modelCount", "datasources:array<{dataSourceId,displayName,nodeType,useType,objectId,corpId,linkObjectId?}>", "note", "nextCommand"],
|
|
175
|
+
notes: ["行名是 displayName(不是 name);模型行 nodeType:1 的 objectId 才是 link 用的 id(dataSourceId 恒 null);顶层无模型行时按 nextCommand 传 parentObjectId 下钻"],
|
|
176
|
+
},
|
|
177
|
+
"report.get": {
|
|
178
|
+
keys: ["status", "report:{id,code,name,appCode,parentId,path,...}", "bi:{present,corpId,chartCount,charts,globalPresent,attributesPresent}", "global", "attributes", "charts:array<{uuid,chartCode,chartName,chartType,dimensions,measures}>", "environmentFingerprint"],
|
|
179
|
+
notes: ["入参叫 code(不是 reportCode);bi.charts[].uuid 是 configure/chartdata 的图表标识"],
|
|
180
|
+
},
|
|
181
|
+
"report.chartdata": {
|
|
182
|
+
keys: ["status", "data:{series,total,metricFields}", "environmentFingerprint"],
|
|
183
|
+
notes: ["入参 reportCode + chart:{uuid}(对象非字符串);数据由 reporter 服务出,环境缺 reporter 时回教学信封"],
|
|
184
|
+
},
|
|
185
|
+
"report.create": {
|
|
186
|
+
keys: ["status", "readback:{present,report,biInitialized,treeNodeId,actualParentId,actualPath}", "rollback"],
|
|
187
|
+
notes: ["parentId 必须是目录 treeNodeId(非目录拒并给 folderCandidates);建完要 datasource.link + configure 才有内容"],
|
|
188
|
+
},
|
|
189
|
+
"report.update": {
|
|
190
|
+
keys: ["status", "readback:{present,report}", "rollback"],
|
|
191
|
+
notes: ["入参只认 code(reportCode/appCode 是未知键,会被拒)"],
|
|
192
|
+
},
|
|
193
|
+
"report.configure": {
|
|
194
|
+
keys: ["status", "readback:{chartCount,charts:array<{uuid,title,type,dataSourceId,mainTable,position,dataSummary}>,globalPresent,attributesPresent}", "rollback"],
|
|
195
|
+
notes: ["charts[].uuid 必带(既有图表=更新,新图表自带 uuid),缺 uuid 整批拒;先 datasource.link 否则图表无数据源"],
|
|
196
|
+
},
|
|
197
|
+
"report.datasource.link": {
|
|
198
|
+
keys: ["status", "readback:{linkedCount,models:array<{dataSourceId,displayName,tableName}>}", "rollback"],
|
|
199
|
+
notes: ["dataSourceInfos[].dataSourceId 用模型行 objectId(datasource.list 下钻 nodeType:1 行);应用级 id 会被拒"],
|
|
200
|
+
},
|
|
201
|
+
"report.delete": {
|
|
202
|
+
keys: ["status", "readback:{absent,remainingInTree,biRemoved,platformRemoved}", "rollback"],
|
|
203
|
+
notes: ["三面删除确认(dashboard/bi/platform);remainingInTree:false 才是真删净"],
|
|
204
|
+
},
|
|
164
205
|
};
|
|
165
206
|
/** Lookup the authored return shape for a tool, if any. */
|
|
166
207
|
export function readShapeFor(toolName) {
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { environment, commonRecovery } from "./shared.js";
|
|
2
|
+
const reportChartSumRecipe = Object.freeze({
|
|
3
|
+
id: "report-chart-sum",
|
|
4
|
+
title: "报表配图:按维度汇总度量(如按供应商汇总金额 SUM / 按状态计数)",
|
|
5
|
+
aliases: ["汇总图", "统计图", "柱状图", "饼图", "分组统计", "按维度汇总", "配图"],
|
|
6
|
+
status: "offline-valid",
|
|
7
|
+
tool: "report.configure",
|
|
8
|
+
args: {
|
|
9
|
+
environment,
|
|
10
|
+
reportCode: "vendor_cost_report",
|
|
11
|
+
appCode: "<appCode>",
|
|
12
|
+
charts: [
|
|
13
|
+
{
|
|
14
|
+
uuid: "chart-vendor-amount-sum",
|
|
15
|
+
title: "各供应商费用金额汇总",
|
|
16
|
+
type: "bar",
|
|
17
|
+
dataSourceId: "<模型行 objectId:report.datasource.list 下钻 nodeType:1 行的 objectId>",
|
|
18
|
+
mainTable: "<模型物理表名:t_ 前缀,如 t_ia38g_crm_contract>",
|
|
19
|
+
position: { x: 0, y: 0, w: 8, h: 6 },
|
|
20
|
+
data: {
|
|
21
|
+
dimension: [{ field: "vendor", alias: "供应商" }],
|
|
22
|
+
metric: [{ field: "amount", alias: "金额合计", agg: "sum" }],
|
|
23
|
+
filter: [],
|
|
24
|
+
sort: [],
|
|
25
|
+
limit: { value: 20, showOthers: false },
|
|
26
|
+
options: {},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
preconditions: [
|
|
32
|
+
"报表页已创建(report.create)且 BI dashboard present(report.get bi.present=true)",
|
|
33
|
+
"数据源已连接(report.datasource.link 用模型行 objectId)",
|
|
34
|
+
],
|
|
35
|
+
conditionalRequirements: [
|
|
36
|
+
"charts[].uuid 必带且自造(如 chart-<业务名>)——既有 uuid=更新,新 uuid=新增,缺 uuid 整批拒",
|
|
37
|
+
"data.dimension=维度(分组键,条目 {field,alias?});data.metric=度量(条目 {field,alias?,agg})——键是**单数** dimension/metric",
|
|
38
|
+
"agg 枚举(reporter AggregateTypeEnum,报文小写):sum/avg/count/max/min/countDistinct/groupConcat",
|
|
39
|
+
"dataSourceId 用**模型行 objectId**(datasource.list 下钻 nodeType:1 行);应用级 id 会被拒",
|
|
40
|
+
"data/position 对象或 JSON 字符串都可(工具层统一序列化)",
|
|
41
|
+
"type 常见:bar(柱)/ card(指标卡)/ pie(饼)/ table(明细)",
|
|
42
|
+
],
|
|
43
|
+
priorToolReferences: [
|
|
44
|
+
{ tool: "report.create", args: { environment, code: "vendor_cost_report", name: "供应商费用", appCode: "<appCode>", parentId: "<目录 treeNodeId>" }, purpose: "建报表页(parentId 必须是应用树 type=Folder 目录 id)" },
|
|
45
|
+
{ tool: "report.datasource.list", args: { environment, reportCode: "vendor_cost_report", appCode: "<appCode>", parentObjectId: "<顶层行的 objectId>" }, purpose: "下钻找 nodeType:1 模型行,取 objectId 当 dataSourceId" },
|
|
46
|
+
{ tool: "report.datasource.link", args: { environment, reportCode: "vendor_cost_report", appCode: "<appCode>", dataSourceInfos: [{ dataSourceId: "<模型行 objectId>", useType: 1 }] }, purpose: "连数据源(不连则图表无数据)" },
|
|
47
|
+
],
|
|
48
|
+
dryRun: { supported: true, command: `omc call report.configure --env ${environment} --dry-run --args '<recipe.args>'`, notes: "dry-run 走 schema/语义/治理预检,不写 BI" },
|
|
49
|
+
expectedReadback: {
|
|
50
|
+
readback: {
|
|
51
|
+
chartCount: 1,
|
|
52
|
+
charts: [{ uuid: "chart-vendor-amount-sum", dataSummary: { dimension: ["vendor(供应商)"], metric: ["amount(sum)"] } }],
|
|
53
|
+
},
|
|
54
|
+
next: ["report.get(读回全量 charts 维度/度量)", "report.chartdata(取数:需 reporter 版本族对齐主应用,环境边界)"],
|
|
55
|
+
},
|
|
56
|
+
refusalRecovery: [
|
|
57
|
+
{ code: "report-chart-uuid-required", action: "每个 charts[] 条目补自造 uuid(chart-<业务名>)" },
|
|
58
|
+
{ code: "report-dashboard-absent", action: "先 report.create 初始化 BI dashboard,再 configure" },
|
|
59
|
+
{ code: "report-datasource-link-not-synced", action: "dataSourceId 用模型行 objectId(datasource.list 下钻 nodeType:1),不是应用级 id" },
|
|
60
|
+
...commonRecovery,
|
|
61
|
+
],
|
|
62
|
+
requiresEnvironmentDerivedIds: true,
|
|
63
|
+
prerequisiteData: { source: "report.datasource.list", fields: ["objectId(模型行)"] },
|
|
64
|
+
});
|
|
65
|
+
const reportBarChartExample = Object.freeze({
|
|
66
|
+
id: "report-bar-chart",
|
|
67
|
+
title: "charts[] 已知键速查(真机报文取证的字段清单)",
|
|
68
|
+
status: "offline-valid",
|
|
69
|
+
tool: "report.configure",
|
|
70
|
+
args: {
|
|
71
|
+
environment,
|
|
72
|
+
reportCode: "<reportCode>",
|
|
73
|
+
appCode: "<appCode>",
|
|
74
|
+
charts: [
|
|
75
|
+
{
|
|
76
|
+
uuid: "<必带,自造>",
|
|
77
|
+
title: "图表标题",
|
|
78
|
+
type: "bar",
|
|
79
|
+
content: " ",
|
|
80
|
+
dataSourceId: "<模型行 objectId>",
|
|
81
|
+
mainTable: "<t_ 前缀物理表名>",
|
|
82
|
+
position: { x: 0, y: 0, w: 4, h: 4 },
|
|
83
|
+
styles: null,
|
|
84
|
+
useType: 1,
|
|
85
|
+
authorization: null,
|
|
86
|
+
data: { dimension: [], metric: [{ field: "name", alias: "合同数", agg: "count" }], filter: [], sort: [], limit: { value: 10, showOthers: false }, options: {} },
|
|
87
|
+
mobileOptions: null,
|
|
88
|
+
customSort: null,
|
|
89
|
+
deleteStatus: 0,
|
|
90
|
+
jumpingRules: null,
|
|
91
|
+
relations: null,
|
|
92
|
+
parentId: null,
|
|
93
|
+
formulas: null,
|
|
94
|
+
conditionFormats: null,
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
removeUnlistedCharts: false,
|
|
98
|
+
corpId: "<corpId,默认 a>",
|
|
99
|
+
},
|
|
100
|
+
preconditions: ["同 report-chart-sum(先 create + link)"],
|
|
101
|
+
conditionalRequirements: [
|
|
102
|
+
"本例是 BI 前端保存图表的**完整字段清单**(真机 addChart 报文逐字段);常规配图只填 uuid/title/type/dataSourceId/mainTable/data,其余保持默认",
|
|
103
|
+
"data 内键:dimension/metric/filter/sort/limit/options(全单数);limit 是 {value,showOthers} 对象",
|
|
104
|
+
],
|
|
105
|
+
priorToolReferences: [],
|
|
106
|
+
dryRun: { supported: true, command: `omc call report.configure --env ${environment} --dry-run --args '<recipe.args>'`, notes: "dry-run 预检" },
|
|
107
|
+
expectedReadback: { readback: { charts: [{ dataSummary: { metric: ["name(count)"] } }] } },
|
|
108
|
+
refusalRecovery: [...commonRecovery],
|
|
109
|
+
requiresEnvironmentDerivedIds: true,
|
|
110
|
+
});
|
|
111
|
+
export const REPORT_METADATA = Object.freeze({
|
|
112
|
+
"report.configure": Object.freeze({ recipes: [reportChartSumRecipe, reportBarChartExample], relatedTools: ["report.create", "report.datasource.list", "report.datasource.link", "report.get", "report.chartdata"] }),
|
|
113
|
+
});
|
|
114
|
+
//# sourceMappingURL=report.js.map
|
package/dist/search-index.js
CHANGED
|
@@ -31,6 +31,12 @@ const KEY_RULES = Object.freeze({
|
|
|
31
31
|
serviceCode: { cls: "registry", source: "service.list → serviceCode" },
|
|
32
32
|
methodCode: { cls: "registry", source: "method.get / service.get → methodCode" },
|
|
33
33
|
serviceCategoryId: { cls: "registry", source: "service.category.list → id(「全部」空 id 不可用)" },
|
|
34
|
+
// r66 ②:report.configure 两配方(report-chart-sum / report-bar-chart)的参数面
|
|
35
|
+
reportCode: { cls: "registry", source: "report.tree → reports[].code(已存在报表)" },
|
|
36
|
+
appCode: { cls: "registry", source: "discover_environment → applications[].code" },
|
|
37
|
+
charts: { cls: "user", source: "配图清单(维度/度量/聚合)是需求本体", user: "utterance" },
|
|
38
|
+
removeUnlistedCharts: { cls: "auto", source: "步骤开关(默认 false=只增改不删)" },
|
|
39
|
+
corpId: { cls: "auto", source: "BI 租户 id(默认 a;report.get bi.corpId 可核对)" },
|
|
34
40
|
fieldCodes: {
|
|
35
41
|
cls: "user",
|
|
36
42
|
source: "列的候选由 field.list 提供,但「列表要显示哪几列」是业务选择",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stalfh233/omc-cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.58",
|
|
4
4
|
"description": "CloudPivot 8.6 configuration capability CLI — governed, fail-closed, coverage-manifest bounded.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"commander": "14.0.3",
|
|
59
|
-
"omc-core": "0.6.
|
|
59
|
+
"omc-core": "0.6.58",
|
|
60
60
|
"proper-lockfile": "4.1.2",
|
|
61
61
|
"write-file-atomic": "6.0.0",
|
|
62
62
|
"zod": "^3.23.8",
|
|
@@ -74,6 +74,6 @@
|
|
|
74
74
|
"directory": "packages/omc-cli"
|
|
75
75
|
},
|
|
76
76
|
"optionalDependencies": {
|
|
77
|
-
"@stalfh233/omc-fake-platform": "0.6.
|
|
77
|
+
"@stalfh233/omc-fake-platform": "0.6.58"
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -150,6 +150,12 @@ rules:
|
|
|
150
150
|
- 筛选条件默认显示:`conditions[].visible` 不传也应为 true。
|
|
151
151
|
- 配置默认视图后即可用 `data.list`;否则部分 8.6.26 读面业务列可能为 null,单行用 `data.load` 核对。
|
|
152
152
|
- 读回视图用 `listview.get`(默认回列/排序/条件/动作紧凑清单)与 `listview.list`。
|
|
153
|
+
- **model.create 不自动发布表单页**(r65 真机):模型建好 ≠ 门户有页面——直接打开会回「form is unpublished」。要 `form.publish` + `listview.configure`(默认视图)后门户才有页面可看。
|
|
154
|
+
- **门户页面 URL 模式**(r65 真机取证,验收/取证用):
|
|
155
|
+
- 表单详情页 `/form/detail?schemaCode=<模型code>&objectId=<数据id>`
|
|
156
|
+
- 列表页 `/application/<appCode>/application-list/<schemaCode>`
|
|
157
|
+
- 应用列表 `/app-list/applications`
|
|
158
|
+
- 渲染取证必须打开真实页面看(存储回读 ≠ 门户认,如百分比 `ratio.*` 格式族)。
|
|
153
159
|
|
|
154
160
|
## 流程
|
|
155
161
|
|