@stalfh233/omc-cli 0.6.70 → 0.6.71

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": "@stalfh233/omc-cli",
3
- "version": "0.6.70",
3
+ "version": "0.6.71",
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.70",
59
+ "omc-core": "0.6.71",
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.70"
77
+ "@stalfh233/omc-fake-platform": "0.6.71"
78
78
  }
79
79
  }
@@ -91,7 +91,7 @@ Terminology for the `omc` configuration CLI. Built on CloudPivot 8.6 (anchor
91
91
  name the manifest entry.
92
92
  - `uncertain` + `frozen: true` — transport outcome cannot be established
93
93
  (outage/timeout). Never treated as success; re-discover before retrying.
94
- - `dry-run` — a validated plan is returned with zero environment writes; rerun without dry-run to execute when the environment permits it.
94
+ - `dry-run` — plan + read-only lint, zero environment writes; the receipt's `lintScope` (`full`/`partial`/`plan` + `unchecked`) says which local gates ran — `plan` is not an execution promise.
95
95
  - `production-confirmation-required` — a writable production environment refused a write because the call omitted `confirmProduction:true`.
96
96
 
97
97
  ## Output language (文案语言规则)
@@ -27,7 +27,7 @@ be treated as a second source. Read this, then follow the topics it names.
27
27
  - `scout`(能不能/怎么写/是否支持)→ 先探边界(`omc-capability-scouting`),别直接写。若 `next` 返回 **`boundary`**(`match.kind:"boundary"`,如 `ocr-e-signature`/`release-prod`/`inline-coding`),说明需求**不在覆盖内**(`write:false`):如实报告、用 `omc capabilities` 核对,**不要**用相近能力伪造实现。
28
28
  阶梯步骤已内联工具必填参数(`route.ladder[].tools`/`readTools`)与命中 recipe 的 `describe <tool> --example <id>`;据此直接执行——**不要再逐能力扫**(能力族工具面用 `commands --capability <id>`),也不要先扫 `commands --json`/全部 `contract`/全部 `describe --full`。
29
29
  方法论按 `route.readSections` 逐节读:对每条 `{topic, section}` 执行 `omc help <topic> --section "<section>"`(单节 0.4–3.4KB)。`omc help <topic>` 默认只回节索引(约 1KB,含每节字节数);**不要 `--all` 读整篇**(5–14KB,读一次就留在后续每一轮窗口)。**带着具体问题(错误码/跨能力语义/某个词)直接 `omc help --search "<词>"`**——跨全部 topic 全文检索,命中节的正文随结果内联返回,一次调用就是答案;**严禁自己写 `for t in …; do omc help $t --all | grep …` 循环**(r18 实测 12 调用/176KB,检索一次 8KB 搞定)。
30
- 1b. **改/删/重命名既有对象前先看影响面**:`omc graph pull --env <env>` 建本地索引(增量、带锁与 gap 报告;`--all-applications` 或 `--application-codes a,b` 定覆盖),之后 `graph references <kind> <code>` 离线答「谁引用了它」(一调替代逐模型 `rule.get` 枚举),`impact` 看爆炸半径、`search` 找规则 code、`status` 看新鲜度与覆盖、`indexes` 清点多项目×环境。索引身份=「项目根+环境名」对:references/edges/impact/search/status 与 pull 对称认 `--path`/`--env`;多库不给 `--env` 会拒(`graph indexes` 清点);回执带 projectPath/environmentName/dbId 自证归属。索引含规则条件叶子(rule.condition 边),不含流程绑定,命中后以 `rule.get` 原文为准。MCP:`omc mcp-graph --path <根>[,<另一根>]`,用 `project`+`env` 选库(`omc_graph_projects`)。
30
+ 1b. **改/删/重命名既有对象前先看影响面**:`omc graph pull --env <env>` 建本地索引(增量、带锁与 gap 报告;`--all-applications` 或 `--application-codes a,b` 定覆盖),之后 `graph references <kind> <code>` 离线答「谁引用了它」(一调替代逐模型 `rule.get` 枚举),`impact` 看爆炸半径、`search` 找规则 code、`status` 看新鲜度与覆盖、`indexes` 清点多项目×环境。索引身份=「项目根+环境名」对:references/edges/impact/search/status 与 pull 对称认 `--path`/`--env`;多库不给 `--env` 会拒(`graph indexes` 清点);回执带 projectPath/environmentName/dbId 自证归属。索引含规则条件叶子、表单控件、流程路由条件与字段权限;不含流程绑定与在线 JS,表单只扫默认槽;命中后以原文为准。MCP:`omc mcp-graph --path <根>[,<另一根>]`,用 `project`+`env` 选库(`omc_graph_projects`)。
31
31
 
32
32
  1c. **写后端 Java 源码(在线开发)走工作区而不是一条条 call**:`omc programming pull --env <env> --app <appCode>` 把业务规则源码拉进 `.omc-programming/`(git 可管),改文件后 `omc programming status` → `omc programming apply [--publish]`(逐文件走编程面治理);图形化规则转编码用 `omc programming adopt --schema <s> --rule <r>`;验证用 `omc programming test --schema <s> --rule <r>`(fixture 驱动:compile→publish→触发→断言→清理)。**平台运行时只执行已发布版**:只 save 不 publish 等于没改;publish 内部会编译并把规则切 CODING+enable。包路径/类名不得改。
33
33
  2. 写前只需读 `omc-config-draft-review`(人审门)与 `omc-five-piece-flow`(发现→草稿→权限→执行→回读);`omc-business-configuration` 按命中的能力分节读(见 `next` 的 `readSections`),不要整篇预取。
@@ -177,7 +177,7 @@ omc call field.publish --env local --args '{"schemaCode":"expense"}'
177
177
 
178
178
  ## 固定验收顺序
179
179
 
180
- 执行阶段以 `omc-five-piece-flow` 为准;写面安全只额外强调两点:写前先 `commands/describe/contract` + dry-run 静态校验,写后权威 readback,必要时再用 CLI 触发运行验证。
180
+ 执行阶段以 `omc-five-piece-flow` 为准;写面安全只额外强调两点:写前先 `commands/describe/contract` + dry-run 静态校验(`lintScope: plan` 只给计划,别读成可执行),写后权威 readback,必要时再用 CLI 触发运行验证。
181
181
 
182
182
  ## 审批提交回传子表 = 追加行(真机 2026-10-20)
183
183