@stalfh233/omc-cli 0.4.36 → 0.4.38
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/README.md +2 -2
- package/dist/bench/call-face-eval.js +1 -1
- package/dist/bench/discovery-cost-eval.js +1 -1
- package/dist/bench/driver.js +1 -1
- package/dist/bench/intent-face-eval.js +1 -1
- package/dist/capability-shape.js +2 -153
- package/dist/cli.js +42 -578
- package/dist/contract-consistency.js +5 -1
- package/dist/execution-metadata.js +24 -1160
- package/dist/field-families.js +2 -22
- package/dist/intent/plan-apply.js +587 -0
- package/dist/json-column.js +2 -67
- package/dist/lanes/businessrule-contract.js +4 -3
- package/dist/lanes/list-view-shapes.js +13 -98
- package/dist/lanes/model-contract.js +2 -2
- package/dist/lanes/rule-graph.js +2 -2
- package/dist/lanes/runtime-data-contract.js +6 -83
- package/dist/recipes/b2-registration.js +87 -0
- package/dist/recipes/businessrule.js +269 -0
- package/dist/recipes/datarule.js +215 -0
- package/dist/recipes/dictionary.js +42 -0
- package/dist/recipes/field.js +230 -0
- package/dist/recipes/form.js +19 -0
- package/dist/recipes/list-view.js +31 -0
- package/dist/recipes/model.js +34 -0
- package/dist/recipes/online-js.js +32 -0
- package/dist/recipes/runtime-data.js +113 -0
- package/dist/recipes/shared.js +8 -0
- package/dist/recipes/workflow.js +119 -0
- package/dist/tool-types.js +2 -7
- package/dist/zip.js +2 -155
- package/package.json +3 -2
- package/dist/bench/fake-http-server.js +0 -65
- package/dist/fake/app.js +0 -45
- package/dist/fake/b2-registration.js +0 -620
- package/dist/fake/businessrule.js +0 -242
- package/dist/fake/datarule.js +0 -72
- package/dist/fake/dictionary.js +0 -108
- package/dist/fake/environment.js +0 -30
- package/dist/fake/field.js +0 -167
- package/dist/fake/form.js +0 -101
- package/dist/fake/index.js +0 -121
- package/dist/fake/list-view.js +0 -289
- package/dist/fake/model.js +0 -136
- package/dist/fake/online-js.js +0 -18
- package/dist/fake/report.js +0 -253
- package/dist/fake/routes.js +0 -47
- package/dist/fake/rule-lifecycle.js +0 -37
- package/dist/fake/runtime-data.js +0 -367
- package/dist/fake/state.js +0 -67
- package/dist/fake/workflow.js +0 -364
|
@@ -56,7 +56,11 @@ function assertBindingReference(ref) {
|
|
|
56
56
|
throw new Error(`binding reference ${ref} is not a module symbol reference`);
|
|
57
57
|
const moduleName = target.slice(0, separator);
|
|
58
58
|
const symbol = target.slice(separator + 1);
|
|
59
|
-
|
|
59
|
+
// C1 拆分:wire 事实定义下沉 omc-core 后,绑定引用以 omc-core/<module>.SYMBOL 指向真实定义处(仍要求源内定义存在,强度不变)。
|
|
60
|
+
const isCoreRef = moduleName.startsWith("omc-core/");
|
|
61
|
+
const filePath = isCoreRef
|
|
62
|
+
? join(packageRoot, "..", "omc-core", "src", `${moduleName.slice("omc-core/".length)}.ts`)
|
|
63
|
+
: join(packageRoot, "src", `${moduleName}.ts`);
|
|
60
64
|
if (!existsSync(filePath))
|
|
61
65
|
throw new Error(`binding module ${moduleName} does not exist`);
|
|
62
66
|
const source = readFileSync(filePath, "utf8");
|