@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.
Files changed (51) hide show
  1. package/README.md +2 -2
  2. package/dist/bench/call-face-eval.js +1 -1
  3. package/dist/bench/discovery-cost-eval.js +1 -1
  4. package/dist/bench/driver.js +1 -1
  5. package/dist/bench/intent-face-eval.js +1 -1
  6. package/dist/capability-shape.js +2 -153
  7. package/dist/cli.js +42 -578
  8. package/dist/contract-consistency.js +5 -1
  9. package/dist/execution-metadata.js +24 -1160
  10. package/dist/field-families.js +2 -22
  11. package/dist/intent/plan-apply.js +587 -0
  12. package/dist/json-column.js +2 -67
  13. package/dist/lanes/businessrule-contract.js +4 -3
  14. package/dist/lanes/list-view-shapes.js +13 -98
  15. package/dist/lanes/model-contract.js +2 -2
  16. package/dist/lanes/rule-graph.js +2 -2
  17. package/dist/lanes/runtime-data-contract.js +6 -83
  18. package/dist/recipes/b2-registration.js +87 -0
  19. package/dist/recipes/businessrule.js +269 -0
  20. package/dist/recipes/datarule.js +215 -0
  21. package/dist/recipes/dictionary.js +42 -0
  22. package/dist/recipes/field.js +230 -0
  23. package/dist/recipes/form.js +19 -0
  24. package/dist/recipes/list-view.js +31 -0
  25. package/dist/recipes/model.js +34 -0
  26. package/dist/recipes/online-js.js +32 -0
  27. package/dist/recipes/runtime-data.js +113 -0
  28. package/dist/recipes/shared.js +8 -0
  29. package/dist/recipes/workflow.js +119 -0
  30. package/dist/tool-types.js +2 -7
  31. package/dist/zip.js +2 -155
  32. package/package.json +3 -2
  33. package/dist/bench/fake-http-server.js +0 -65
  34. package/dist/fake/app.js +0 -45
  35. package/dist/fake/b2-registration.js +0 -620
  36. package/dist/fake/businessrule.js +0 -242
  37. package/dist/fake/datarule.js +0 -72
  38. package/dist/fake/dictionary.js +0 -108
  39. package/dist/fake/environment.js +0 -30
  40. package/dist/fake/field.js +0 -167
  41. package/dist/fake/form.js +0 -101
  42. package/dist/fake/index.js +0 -121
  43. package/dist/fake/list-view.js +0 -289
  44. package/dist/fake/model.js +0 -136
  45. package/dist/fake/online-js.js +0 -18
  46. package/dist/fake/report.js +0 -253
  47. package/dist/fake/routes.js +0 -47
  48. package/dist/fake/rule-lifecycle.js +0 -37
  49. package/dist/fake/runtime-data.js +0 -367
  50. package/dist/fake/state.js +0 -67
  51. 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
- const filePath = join(packageRoot, "src", `${moduleName}.ts`);
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");