soma-core 2.2.5 → 2.2.7

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 (283) hide show
  1. package/README.md +5 -6
  2. package/bin/soma.cjs +2 -2
  3. package/core/build/compiler/flat-page.ts +16 -0
  4. package/core/build/compiler/full-manifest-builder.ts +0 -3
  5. package/core/build/compiler/page-assets.ts +0 -1
  6. package/core/build/compiler/page-closure.ts +245 -0
  7. package/core/build/compiler/page-declaration-compiler.ts +2 -5
  8. package/core/build/compiler/soma-precompile.js +1972 -3312
  9. package/core/build/compiler/soma-precompile.ts +4 -7
  10. package/core/build/component-tree/artifact-codec.ts +4 -8
  11. package/core/build/lsp/soma-declaration.cjs +1 -1
  12. package/core/build/lsp/std-completion.generated.json +3 -3
  13. package/core/client/a11y/a11y-config.ts +2 -1
  14. package/core/client/a11y/dom-id.ts +1 -1
  15. package/core/client/base/SomaHttpClient.ts +11 -3
  16. package/core/client/base/SomaPageRootBase.ts +6 -0
  17. package/core/client/base/defineSomaView.ts +178 -0
  18. package/core/client/base/index.ts +13 -0
  19. package/core/client/base/view-context.ts +328 -0
  20. package/core/client/behavior/adapter-collection.ts +2 -2
  21. package/core/client/compiler/manifest-compiler.ts +5 -36
  22. package/core/client/component/component-definition.types.ts +2 -1
  23. package/core/client/component/component-manager.ts +110 -20
  24. package/core/client/component/structure-adapter.ts +3 -7
  25. package/core/client/container/IContainerAdapter.ts +4 -0
  26. package/core/client/container/SomaContainerAdapter.ts +52 -3
  27. package/core/client/data/data-object-resolver.ts +523 -184
  28. package/core/client/data/data-write-actions.ts +79 -15
  29. package/core/client/data/format-config.ts +3 -1
  30. package/core/client/data/region-scope-port.ts +11 -0
  31. package/core/client/engine/asset-resolver.ts +2 -5
  32. package/core/client/engine/dom-renderer.ts +7 -40
  33. package/core/client/engine/event-engine.ts +29 -108
  34. package/core/client/engine/property-watcher.ts +1 -1
  35. package/core/client/engine/reactive-proxy.ts +78 -17
  36. package/core/client/engine/runtime-builder.ts +0 -14
  37. package/core/client/engine/scope-resolver.ts +18 -0
  38. package/core/client/engine/soma-bootstrap.ts +387 -99
  39. package/core/client/engine/style-binder.ts +49 -106
  40. package/core/client/engine/timer-engine.ts +11 -1
  41. package/core/client/host-bridge/load-host-domain-class.ts +2 -1
  42. package/core/client/infra/http/SomaHttpService.ts +15 -4
  43. package/core/client/infra/i18n/pack-locales.ts +2 -2
  44. package/core/client/infra/notify/DefaultNotifyService.ts +2 -2
  45. package/core/client/mount/domain-rule.ts +7 -3
  46. package/core/client/mount/mount-page.ts +38 -5
  47. package/core/client/mount/types.ts +2 -0
  48. package/core/client/parser/confirm-spec.ts +100 -7
  49. package/core/client/parser/data-config-parser.ts +28 -211
  50. package/core/client/parser/pipeline-parser.ts +16 -60
  51. package/core/client/parser/style-config-parser.ts +101 -95
  52. package/core/client/parser/timer-parser.ts +21 -0
  53. package/core/client/parser/ui-config-parser.ts +64 -12
  54. package/core/client/registry/declaration-renderer.ts +1 -1
  55. package/core/client/render-ports/hide-transition.ts +9 -0
  56. package/core/client/render-ports/index.ts +4 -0
  57. package/core/client/render-ports/notify-renderer.ts +2 -1
  58. package/core/client/runtime/SomaRuntimeServices.ts +2 -1
  59. package/core/client/runtime/SomaSnapshotStore.ts +5 -0
  60. package/core/client/security/url-guard.ts +71 -11
  61. package/core/client/validation/async-check-registry.ts +2 -1
  62. package/core/client/validation/contract-validator.ts +2 -6
  63. package/core/client/validation/field-rules.ts +3 -13
  64. package/core/client/validation/object-rules.ts +2 -10
  65. package/core/index.ts +17 -39
  66. package/core/inspect/check-product.ts +5 -5
  67. package/core/inspect/runtime.ts +2 -1
  68. package/core/server/api/dispatch-service-api.ts +35 -36
  69. package/core/server/api/load-host-service.ts +8 -4
  70. package/core/server/api/paged-list.ts +259 -0
  71. package/core/server/compile-port.ts +1 -1
  72. package/core/server/host/app-config-composer.ts +2 -1
  73. package/core/server/host/empty-host-bootstrap.mjs +3 -0
  74. package/core/server/host/host-assembly-entry.ts +1 -0
  75. package/core/server/host/host-assembly.ts +50 -3
  76. package/core/server/host/host-caller.ts +2 -1
  77. package/core/server/host/host-dir.ts +9 -0
  78. package/core/server/host/host-response-headers.ts +2 -1
  79. package/core/server/host/invoke-host-request-hook.ts +28 -4
  80. package/core/server/host/published-page-assets.ts +2 -1
  81. package/core/server/host/resolve-host-request-hook.ts +25 -7
  82. package/core/server/host/server-page-assets.ts +4 -4
  83. package/core/server/host/source-aliases.cjs +345 -0
  84. package/core/server/host/source-aliases.ts +32 -0
  85. package/core/server/host/source-packages.cjs +1 -0
  86. package/core/server/host/virtual-pages.ts +3 -2
  87. package/core/server/infra/cache/ServerFileCache.ts +83 -10
  88. package/core/server/node.ts +10 -0
  89. package/core/server/registry/api-registry-store.ts +3 -1
  90. package/core/server/registry/declaration-precompiler.ts +0 -2
  91. package/core/server/registry/page-registry-repository.ts +2 -1
  92. package/core/server/registry/page-registry-store.ts +2 -1
  93. package/core/server/registry/registry-error.ts +6 -1
  94. package/core/server/registry/registry-file-lock.ts +296 -23
  95. package/core/server/registry/request-body-limit.ts +3 -2
  96. package/core/server/registry/validation/declaration-safety-scan.ts +151 -27
  97. package/core/server/runtime-space/access-gate.ts +21 -7
  98. package/core/server/runtime-space/bindings.ts +3 -6
  99. package/core/server/runtime-space/dynamic-pages.ts +181 -49
  100. package/core/server/runtime-space/errors.ts +3 -0
  101. package/core/server/runtime-space/inject.ts +78 -16
  102. package/core/server/runtime-space/page-grants.ts +7 -1
  103. package/core/server/runtime-space/resolve.ts +66 -19
  104. package/core/server/runtime-space/store.ts +32 -3
  105. package/core/server/runtime-space/submit-steps.ts +2 -1
  106. package/core/server/runtime-space/types.ts +3 -1
  107. package/core/shared/component-tree-errors.ts +2 -1
  108. package/core/shared/contract-a11y.ts +1 -1
  109. package/core/shared/contract-sections.ts +2 -2
  110. package/core/shared/core-diagnostic-codes.ts +14 -0
  111. package/core/shared/data-declaration-checks.ts +29 -3
  112. package/core/shared/declaration-keys.ts +1 -1
  113. package/core/shared/engines/engine-error.ts +2 -1
  114. package/core/shared/generation-error.ts +2 -1
  115. package/core/shared/page-envelope.ts +1 -1
  116. package/core/shared/pure-binding.ts +88 -0
  117. package/core/shared/registry-generated/diagnostic-registry-index.ts +21 -19
  118. package/core/shared/registry-generated/diagnostic-registry.ts +170 -177
  119. package/core/shared/registry-generated/limits.ts +65 -13
  120. package/core/shared/registry-generated/std-grammar-completion.ts +0 -4
  121. package/core/shared/registry-generated/std-grammar-views.ts +40 -10
  122. package/core/shared/registry-generated/std-grammar.ts +43 -21
  123. package/core/shared/soma-error.ts +36 -0
  124. package/core/shared/types/compile-port.types.ts +1 -1
  125. package/core/shared/types/data-config.types.ts +20 -18
  126. package/core/shared/types/engine.types.ts +0 -3
  127. package/core/shared/types/event.types.ts +10 -11
  128. package/core/shared/types/generation-error.types.ts +5 -1
  129. package/core/shared/types/host-assembly.types.ts +7 -1
  130. package/core/shared/types/manifest.types.ts +0 -3
  131. package/core/shared/types/region-scope.types.ts +5 -1
  132. package/core/shared/types/scope-manifest.types.ts +0 -2
  133. package/core/shared/types/style-config.types.ts +21 -21
  134. package/core/shared/types/ui-config.types.ts +4 -5
  135. package/core/shared/types/watcher.types.ts +1 -1
  136. package/dist/browser/runtime-bundle.manifest.json +11 -13
  137. package/dist/browser/soma-runtime.js +2733 -2712
  138. package/dist/core/index.cjs +5665 -5534
  139. package/dist/host-native/aot-builder.cjs +330 -1
  140. package/dist/host-native/native-server.cjs +5434 -4726
  141. package/dist/lsp/component-tree.cjs +5868 -7040
  142. package/dist/types/build/compiler/full-manifest-builder.d.ts +0 -2
  143. package/dist/types/build/compiler/page-closure.d.ts +21 -0
  144. package/dist/types/build/compiler/page-declaration-compiler.d.ts +2 -4
  145. package/dist/types/build/compiler/soma-precompile.d.ts +1 -3
  146. package/dist/types/build/component-tree/artifact-codec.d.ts +0 -2
  147. package/dist/types/client/a11y/a11y-config.d.ts +2 -1
  148. package/dist/types/client/base/SomaHttpClient.d.ts +1 -1
  149. package/dist/types/client/base/SomaPageRootBase.d.ts +5 -0
  150. package/dist/types/client/base/defineSomaView.d.ts +46 -0
  151. package/dist/types/client/base/index.d.ts +2 -0
  152. package/dist/types/client/base/view-context.d.ts +136 -0
  153. package/dist/types/client/behavior/adapter-collection.d.ts +1 -1
  154. package/dist/types/client/compiler/manifest-compiler.d.ts +0 -3
  155. package/dist/types/client/component/component-definition.types.d.ts +2 -1
  156. package/dist/types/client/component/component-manager.d.ts +29 -0
  157. package/dist/types/client/container/IContainerAdapter.d.ts +3 -0
  158. package/dist/types/client/container/SomaContainerAdapter.d.ts +5 -0
  159. package/dist/types/client/data/data-object-resolver.d.ts +93 -31
  160. package/dist/types/client/data/format-config.d.ts +2 -1
  161. package/dist/types/client/engine/dom-renderer.d.ts +1 -2
  162. package/dist/types/client/engine/event-engine.d.ts +0 -7
  163. package/dist/types/client/engine/reactive-proxy.d.ts +11 -4
  164. package/dist/types/client/engine/runtime-builder.d.ts +0 -4
  165. package/dist/types/client/engine/soma-bootstrap.d.ts +44 -6
  166. package/dist/types/client/engine/style-binder.d.ts +8 -4
  167. package/dist/types/client/host-bridge/load-host-domain-class.d.ts +2 -1
  168. package/dist/types/client/mount/domain-rule.d.ts +2 -0
  169. package/dist/types/client/mount/mount-page.d.ts +2 -1
  170. package/dist/types/client/mount/types.d.ts +2 -0
  171. package/dist/types/client/parser/confirm-spec.d.ts +27 -3
  172. package/dist/types/client/parser/data-config-parser.d.ts +6 -5
  173. package/dist/types/client/parser/style-config-parser.d.ts +7 -3
  174. package/dist/types/client/parser/timer-parser.d.ts +5 -0
  175. package/dist/types/client/parser/ui-config-parser.d.ts +6 -2
  176. package/dist/types/client/render-ports/hide-transition.d.ts +9 -0
  177. package/dist/types/client/render-ports/index.d.ts +4 -0
  178. package/dist/types/client/render-ports/notify-renderer.d.ts +2 -1
  179. package/dist/types/client/runtime/SomaSnapshotStore.d.ts +2 -0
  180. package/dist/types/client/security/url-guard.d.ts +14 -0
  181. package/dist/types/client/validation/async-check-registry.d.ts +2 -1
  182. package/dist/types/client/validation/object-rules.d.ts +0 -5
  183. package/dist/types/index.d.ts +6 -11
  184. package/dist/types/inspect/runtime.d.ts +2 -1
  185. package/dist/types/server/api/dispatch-service-api.d.ts +5 -0
  186. package/dist/types/server/api/load-host-service.d.ts +1 -1
  187. package/dist/types/server/api/paged-list.d.ts +101 -0
  188. package/dist/types/server/compile-port.d.ts +1 -1
  189. package/dist/types/server/host/host-assembly-entry.d.ts +1 -1
  190. package/dist/types/server/host/host-assembly.d.ts +2 -0
  191. package/dist/types/server/host/host-dir.d.ts +2 -0
  192. package/dist/types/server/host/invoke-host-request-hook.d.ts +10 -3
  193. package/dist/types/server/host/published-page-assets.d.ts +2 -1
  194. package/dist/types/server/host/resolve-host-request-hook.d.ts +18 -5
  195. package/dist/types/server/host/server-page-assets.d.ts +2 -1
  196. package/dist/types/server/host/source-aliases.d.cts +53 -0
  197. package/dist/types/server/host/source-aliases.d.ts +30 -0
  198. package/dist/types/server/host/source-packages.d.cts +2 -0
  199. package/dist/types/server/infra/cache/ServerFileCache.d.ts +8 -0
  200. package/dist/types/server/node.d.ts +1 -0
  201. package/dist/types/server/registry/declaration-precompiler.d.ts +0 -1
  202. package/dist/types/server/registry/registry-error.d.ts +5 -1
  203. package/dist/types/server/registry/registry-file-lock.d.ts +30 -0
  204. package/dist/types/server/registry/request-body-limit.d.ts +3 -2
  205. package/dist/types/server/registry/validation/declaration-safety-scan.d.ts +3 -0
  206. package/dist/types/server/runtime-space/access-gate.d.ts +7 -0
  207. package/dist/types/server/runtime-space/bindings.d.ts +3 -2
  208. package/dist/types/server/runtime-space/dynamic-pages.d.ts +6 -1
  209. package/dist/types/server/runtime-space/errors.d.ts +1 -1
  210. package/dist/types/server/runtime-space/resolve.d.ts +2 -0
  211. package/dist/types/server/runtime-space/store.d.ts +8 -1
  212. package/dist/types/server/runtime-space/submit-steps.d.ts +2 -1
  213. package/dist/types/server/runtime-space/types.d.ts +3 -1
  214. package/dist/types/shared/component-tree-errors.d.ts +2 -1
  215. package/dist/types/shared/core-diagnostic-codes.d.ts +1 -1
  216. package/dist/types/shared/declaration-keys.d.ts +1 -1
  217. package/dist/types/shared/engines/engine-error.d.ts +2 -1
  218. package/dist/types/shared/generation-error.d.ts +2 -1
  219. package/dist/types/shared/pure-binding.d.ts +48 -0
  220. package/dist/types/shared/registry-generated/diagnostic-registry.d.ts +149 -158
  221. package/dist/types/shared/registry-generated/limits.d.ts +54 -10
  222. package/dist/types/shared/registry-generated/std-grammar-completion.d.ts +0 -30
  223. package/dist/types/shared/registry-generated/std-grammar-views.d.ts +97 -23
  224. package/dist/types/shared/registry-generated/std-grammar.d.ts +110 -242
  225. package/dist/types/shared/soma-error.d.ts +15 -0
  226. package/dist/types/shared/types/data-config.types.d.ts +17 -17
  227. package/dist/types/shared/types/engine.types.d.ts +0 -3
  228. package/dist/types/shared/types/event.types.d.ts +9 -7
  229. package/dist/types/shared/types/generation-error.types.d.ts +1 -1
  230. package/dist/types/shared/types/host-assembly.types.d.ts +2 -0
  231. package/dist/types/shared/types/manifest.types.d.ts +0 -3
  232. package/dist/types/shared/types/region-scope.types.d.ts +4 -1
  233. package/dist/types/shared/types/scope-manifest.types.d.ts +0 -2
  234. package/dist/types/shared/types/style-config.types.d.ts +17 -19
  235. package/dist/types/shared/types/ui-config.types.d.ts +4 -5
  236. package/host-native/bin/host-native.cjs +22 -1
  237. package/host-native/client/browser-entry.ts +21 -172
  238. package/host-native/src/aot-builder.ts +75 -0
  239. package/host-native/src/host-prepare.ts +39 -5
  240. package/host-native/src/manifest-http.ts +2 -3
  241. package/host-native/src/native-server.ts +812 -174
  242. package/host-native/src/page-http.ts +3 -3
  243. package/host-native/src/public-packages.cjs +0 -1
  244. package/host-native/src/registry-handler.ts +12 -5
  245. package/host-native/src/static-file.ts +203 -53
  246. package/host-native/styles/globals.css +30 -28
  247. package/package.json +14 -2
  248. package/core/client/engine/step-runner.ts +0 -212
  249. package/core/client/engine/trigger-engine.ts +0 -55
  250. package/core/client/format/zoned.ts +0 -10
  251. package/core/client/parser/step-parser.ts +0 -359
  252. package/core/client/parser/trigger-parser.ts +0 -90
  253. package/core/client/parser/value-lang.ts +0 -340
  254. package/core/client/time/instant.ts +0 -2
  255. package/core/shared/calc/coerce.ts +0 -2
  256. package/core/shared/calc/errors.ts +0 -40
  257. package/core/shared/calc/evaluator.ts +0 -113
  258. package/core/shared/calc/index.ts +0 -11
  259. package/core/shared/calc/lexer.ts +0 -189
  260. package/core/shared/calc/parser.ts +0 -193
  261. package/core/shared/calc/typer.ts +0 -171
  262. package/core/shared/date-parts.ts +0 -2
  263. package/core/shared/show-when.ts +0 -77
  264. package/core/shared/types/step.types.ts +0 -91
  265. package/core/shared/types/trigger.types.ts +0 -14
  266. package/dist/types/client/engine/step-runner.d.ts +0 -42
  267. package/dist/types/client/engine/trigger-engine.d.ts +0 -16
  268. package/dist/types/client/format/zoned.d.ts +0 -1
  269. package/dist/types/client/parser/step-parser.d.ts +0 -23
  270. package/dist/types/client/parser/trigger-parser.d.ts +0 -13
  271. package/dist/types/client/parser/value-lang.d.ts +0 -63
  272. package/dist/types/client/time/instant.d.ts +0 -1
  273. package/dist/types/shared/calc/coerce.d.ts +0 -1
  274. package/dist/types/shared/calc/errors.d.ts +0 -14
  275. package/dist/types/shared/calc/evaluator.d.ts +0 -2
  276. package/dist/types/shared/calc/index.d.ts +0 -6
  277. package/dist/types/shared/calc/lexer.d.ts +0 -19
  278. package/dist/types/shared/calc/parser.d.ts +0 -43
  279. package/dist/types/shared/calc/typer.d.ts +0 -11
  280. package/dist/types/shared/date-parts.d.ts +0 -1
  281. package/dist/types/shared/show-when.d.ts +0 -21
  282. package/dist/types/shared/types/step.types.d.ts +0 -76
  283. package/dist/types/shared/types/trigger.types.d.ts +0 -12
@@ -3,7 +3,7 @@
3
3
 
4
4
  export const SOMA_PIPELINE_LIMITS = {
5
5
  "id": "limits",
6
- "title": "管线限值表:体积预算、数据规模上限、data-kit 的筛选防抖与树视图预算(dataKit;规则树嵌套深度读 window.maxFilterDepth,与数据窗口声明期闸门同一口径)、各呈现族的项数上限、写入面守卫与约束布局规模、编译深度、解释输出、注册中心体积、缓存容量、乐观并发重试轮数、写锁时限、写入限流默认、session / subscribe / window.filter 解析上限、执行计划(execution plan)的节点 / 依赖 / 并发 / 重试 / 路径 / 输入深度上限、embed 路径长度、Host 注入缺省(hostDefaults:数据窗口 block 缺省与宿主模块分片加载重试退避步长,core 不留数字、由 Host 装配传入)、Server Mock 的生成参数(mock)、soma-ai 的字节 / 条数 / 限流 / 保留上限(ai)、soma-ai 的时延 / 重试 / 并发缺省(aiRuntime)(web 编译管线 / 组件运行时的上限,不是设计语言)",
6
+ "title": "管线限值表:体积预算、数据规模上限、data-kit 的筛选防抖与树视图预算(dataKit;规则树嵌套深度读 window.maxFilterDepth,与数据窗口声明期闸门同一口径)、各呈现族的项数上限、写入面守卫与约束布局规模、编译深度、解释输出、注册中心体积、缓存容量、乐观并发重试轮数、写锁时限、写入限流默认、session / subscribe / window.filter 解析上限(含 matches 谓词的正则模式 / 被测文本长度上限,暂定,待裁决)、运行期页面注入口的单页载荷字节上限(inject,暂定,待裁决)、执行计划(execution plan)的节点 / 依赖 / 并发 / 重试 / 路径 / 输入深度上限、embed 路径长度、Host 注入缺省(hostDefaults:数据窗口 block 缺省、宿主模块分片加载重试退避步长与 HTTP 请求缺省超时;HTTP 默认标量经 foundation/values 轻量投影供 core 与 kit 共用)、Server Mock 的生成参数(mock)、soma-ai 的字节 / 条数 / 限流 / 保留上限(ai)、soma-ai 的时延 / 重试 / 并发缺省(aiRuntime)(web 编译管线 / 组件运行时的上限,不是设计语言)",
7
7
  "readBy": [
8
8
  {
9
9
  "module": "soma-ui",
@@ -130,6 +130,11 @@ export const SOMA_PIPELINE_LIMITS = {
130
130
  "file": "core/server/registry/registry-file-lock.ts",
131
131
  "symbol": "SOMA_PIPELINE_LIMITS"
132
132
  },
133
+ {
134
+ "module": "soma-core",
135
+ "file": "core/server/api/paged-list.ts",
136
+ "symbol": "SOMA_PIPELINE_LIMITS"
137
+ },
133
138
  {
134
139
  "module": "soma-core",
135
140
  "file": "core/server/registry/registry-write-pipeline.ts",
@@ -145,6 +150,11 @@ export const SOMA_PIPELINE_LIMITS = {
145
150
  "file": "core/server/registry/source/version-store.ts",
146
151
  "symbol": "SOMA_PIPELINE_LIMITS"
147
152
  },
153
+ {
154
+ "module": "soma-core",
155
+ "file": "core/server/runtime-space/inject.ts",
156
+ "symbol": "SOMA_PIPELINE_LIMITS"
157
+ },
148
158
  {
149
159
  "module": "soma-ui",
150
160
  "file": "src/compiler/bdl/registry/archive.ts",
@@ -170,6 +180,36 @@ export const SOMA_PIPELINE_LIMITS = {
170
180
  "file": "core/server/runtime-space/static-source.ts",
171
181
  "symbol": "SOMA_PIPELINE_LIMITS"
172
182
  },
183
+ {
184
+ "module": "soma-core",
185
+ "file": "core/server/runtime-space/dynamic-pages.ts",
186
+ "symbol": "SOMA_PIPELINE_LIMITS"
187
+ },
188
+ {
189
+ "module": "soma-core",
190
+ "file": "core/server/infra/cache/ServerFileCache.ts",
191
+ "symbol": "SOMA_PIPELINE_LIMITS"
192
+ },
193
+ {
194
+ "module": "soma-foundation",
195
+ "file": "src/predicates/predicates.ts",
196
+ "symbol": "SOMA_PIPELINE_LIMITS_FOUNDATION"
197
+ },
198
+ {
199
+ "module": "soma-core",
200
+ "file": "core/client/base/SomaHttpClient.ts",
201
+ "symbol": "SOMA_PIPELINE_HOST_HTTP_REQUEST_TIMEOUT_MS"
202
+ },
203
+ {
204
+ "module": "soma-core",
205
+ "file": "core/client/infra/http/SomaHttpService.ts",
206
+ "symbol": "SOMA_PIPELINE_HOST_HTTP_REQUEST_TIMEOUT_MS"
207
+ },
208
+ {
209
+ "module": "soma-core",
210
+ "file": "core/client/runtime/SomaRuntimeServices.ts",
211
+ "symbol": "SOMA_PIPELINE_HOST_HTTP_REQUEST_TIMEOUT_MS"
212
+ },
173
213
  {
174
214
  "module": "soma-foundation",
175
215
  "file": "src/layout/flow-editor-geometry.ts",
@@ -285,6 +325,16 @@ export const SOMA_PIPELINE_LIMITS = {
285
325
  "file": "src/layout/host-defaults.ts",
286
326
  "symbol": "SOMA_PIPELINE_LIMITS_FOUNDATION"
287
327
  },
328
+ {
329
+ "module": "soma-foundation",
330
+ "file": "src/values/index.ts",
331
+ "symbol": "SOMA_PIPELINE_HOST_HTTP_REQUEST_TIMEOUT_MS"
332
+ },
333
+ {
334
+ "module": "soma-kit",
335
+ "file": "src/app/define-kit-actions.ts",
336
+ "symbol": "SOMA_PIPELINE_HOST_HTTP_REQUEST_TIMEOUT_MS"
337
+ },
288
338
  {
289
339
  "module": "soma-foundation",
290
340
  "file": "src/style/audit-state-distinct.ts",
@@ -310,11 +360,6 @@ export const SOMA_PIPELINE_LIMITS = {
310
360
  "file": "src/theme/palette.ts",
311
361
  "symbol": "SOMA_PIPELINE_LIMITS_FOUNDATION"
312
362
  },
313
- {
314
- "module": "soma-lite",
315
- "file": "src/theme/lite-limits.ts",
316
- "symbol": "SOMA_PIPELINE_LIMITS_LITE"
317
- },
318
363
  {
319
364
  "module": "soma-testkit",
320
365
  "file": "src/mock/node/cli.mjs",
@@ -435,11 +480,6 @@ export const SOMA_PIPELINE_LIMITS = {
435
480
  "file": "src/app/submit.ts",
436
481
  "symbol": "SOMA_PIPELINE_LIMITS"
437
482
  },
438
- {
439
- "module": "soma-lite",
440
- "file": "src/app/server/provenance-limit.ts",
441
- "symbol": "SOMA_PIPELINE_LIMITS"
442
- },
443
483
  {
444
484
  "module": "soma-robot",
445
485
  "file": "src/common/limits.ts",
@@ -459,7 +499,12 @@ export const SOMA_PIPELINE_LIMITS = {
459
499
  "apiRecordCapacity": 512,
460
500
  "pageDeclarationCapacity": 64,
461
501
  "sourceAssetCapacity": 64,
462
- "publishedArtifactCapacity": 64
502
+ "publishedArtifactCapacity": 64,
503
+ "watchFailLimit": 2,
504
+ "serverFileMaxEntries": 512,
505
+ "serverFileMaxBytes": 33554432,
506
+ "serverDirMaxEntries": 256,
507
+ "sourceRootAliasCapacity": 64
463
508
  },
464
509
  "runtimeCache": {
465
510
  "basis": "runtime 空间 L1 内存 LRU 的条目容量(编译结果与标准格式产物各一条目)与静态页地址清单的开发态复核间隔;容量不小于发布页产物缓存容量(cache.publishedArtifactCapacity),因为 L1 要容得下已发布页加上运行期按 URL 注入的页;复核间隔让新增静态页最迟这个毫秒数后进入写入期冲突判定(生产态不过期)。迁入前是 soma-core store.ts 的 SOMA_RUNTIME_CACHE_ENTRIES_DEFAULT 与 static-source.ts 的 DEV_TTL_MS",
@@ -477,6 +522,10 @@ export const SOMA_PIPELINE_LIMITS = {
477
522
  "maxWaitMs": 5000,
478
523
  "waitSliceMs": 15
479
524
  },
525
+ "pagedList": {
526
+ "pageSizeDefault": 10,
527
+ "pageSizeMax": 500
528
+ },
480
529
  "writeRate": {
481
530
  "limit": 120,
482
531
  "windowMs": 60000
@@ -486,6 +535,10 @@ export const SOMA_PIPELINE_LIMITS = {
486
535
  "maxDebounceMs": 10000,
487
536
  "defaultDebounceMs": 300
488
537
  },
538
+ "inject": {
539
+ "pageMaxBytes": 4194304,
540
+ "batchFailureMessageMaxChars": 2000
541
+ },
489
542
  "execution": {
490
543
  "maxNodes": 128,
491
544
  "maxDeps": 128,
@@ -545,7 +598,6 @@ export const SOMA_PIPELINE_LIMITS = {
545
598
  "soma-core/core/index.ts": 524288,
546
599
  "soma-core/core/client/runtime-entry.ts": 524288,
547
600
  "soma-ui/src/app/index.ts": 524288,
548
- "soma-lite/src/index.ts": 524288,
549
601
  "soma-kit/src/app/index.ts": 327680
550
602
  }
551
603
  },
@@ -27,10 +27,8 @@ export const SOMA_STD_COMPLETION_SCHEMA = {
27
27
  "scopes": [{ "host": "page-file", "path": ["data", "*"] }],
28
28
  "keys": [
29
29
  { "key": "from", "value": { "kind": "list", "of": "shape" }, "summary": "集合读取", "status": "implemented" },
30
- { "key": "transform", "value": { "kind": "map", "of": "string" }, "summary": "取数后派生", "status": "implemented" },
31
30
  { "key": "fields", "value": { "kind": "map", "of": "shape", "context": "field" }, "summary": "字段字典", "status": "implemented" },
32
31
  { "key": "write", "value": { "kind": "shape", "context": "write" }, "summary": "写通道", "status": "implemented" },
33
- { "key": "predicates", "value": { "kind": "map", "of": "shape" }, "summary": "具名条件", "status": "implemented" },
34
32
  { "key": "name", "value": { "kind": "string" }, "summary": "显示名", "status": "implemented" },
35
33
  { "key": "poll", "value": { "kind": "shape", "context": "poll" }, "summary": "自动重取", "status": "implemented" }
36
34
  ]
@@ -80,7 +78,6 @@ export const SOMA_STD_COMPLETION_SCHEMA = {
80
78
  { "key": "type", "value": { "kind": "enum", "domain": "field-types", "values": ["text", "int", "float", "money", "bool", "enum", "date", "datetime", "image", "url", "richtext", "percent", "progress", "tags", "file", "tree", "cascade", "embed", "code", "secret", "time_of_day", "timezone", "schedule", "exceptions", "window", "limits", "duration", "filesize", "colour", "path", "measure", "signature"] }, "summary": "类型(二十六种)", "status": "implemented" },
81
79
  { "key": "rules", "value": { "kind": "list", "of": "shape", "context": "field.rule" }, "summary": "校验", "status": "implemented" },
82
80
  { "key": "options", "value": { "kind": "list", "of": "shape", "context": "field.option" }, "summary": "枚举候选", "status": "implemented" },
83
- { "key": "calc", "value": { "kind": "string" }, "summary": "派生", "status": "implemented" },
84
81
  { "key": "default", "value": { "kind": "any" }, "summary": "新建初值", "status": "implemented" }
85
82
  ]
86
83
  },
@@ -107,7 +104,6 @@ export const SOMA_STD_COMPLETION_SCHEMA = {
107
104
  { "key": "max", "value": { "kind": "number" }, "summary": "最大值", "status": "implemented" },
108
105
  { "key": "step", "value": { "kind": "number", "exclusiveMin": 0 }, "summary": "步长(取值格点)", "status": "implemented" },
109
106
  { "key": "message", "value": { "kind": "string" }, "summary": "校验失败提示", "status": "implemented" },
110
- { "key": "when", "value": { "kind": "shape" }, "summary": "条件规则(谓词成立才参与)", "status": "implemented" },
111
107
  { "key": "async", "value": { "kind": "any" }, "summary": "异步校验 检查器名 | { check, on_error: pass | block }", "status": "implemented" },
112
108
  { "key": "severity", "value": { "kind": "enum", "domain": "validation-severities", "values": ["hard", "soft-once", "hint", "discourage"] }, "summary": "校验强度(hard / soft-once / hint / discourage)", "status": "implemented" }
113
109
  ]
@@ -5,13 +5,13 @@
5
5
  // ── 键集 / 词表视图(名字、类型、键序与手写常量逐字相同;reconcilesWith 登记它替换谁) ──
6
6
 
7
7
  /** 视图:取代手写常量 soma-core/core/client/parser/data-config-parser.ts#SOMA_DATA_OBJECT_KEYS(迁移时已用 HEAD 源码逐值逐序对账相等)。 */
8
- export const SOMA_DATA_OBJECT_KEYS: readonly string[] = ['from', 'transform', 'fields', 'write', 'predicates', 'name', 'poll'];
8
+ export const SOMA_DATA_OBJECT_KEYS: readonly string[] = ['from', 'fields', 'write', 'name', 'poll'];
9
9
 
10
10
  /** 视图:取代手写常量 soma-core/core/client/parser/data-config-parser.ts#SOMA_DATA_FIELD_KEYS(迁移时已用 HEAD 源码逐值逐序对账相等)。 */
11
- export const SOMA_DATA_FIELD_KEYS: readonly string[] = ['name', 'type', 'rules', 'options', 'calc', 'default'];
11
+ export const SOMA_DATA_FIELD_KEYS: readonly string[] = ['name', 'type', 'rules', 'options', 'default'];
12
12
 
13
13
  /** 视图:取代手写常量 soma-core/core/client/parser/data-config-parser.ts#SOMA_DATA_RULE_KEYS(迁移时已用 HEAD 源码逐值逐序对账相等)。 */
14
- export const SOMA_DATA_RULE_KEYS = ['required', 'max_len', 'min_len', 'pattern', 'min', 'max', 'step', 'message', 'when', 'async', 'severity'] as const;
14
+ export const SOMA_DATA_RULE_KEYS = ['required', 'max_len', 'min_len', 'pattern', 'min', 'max', 'step', 'message', 'async', 'severity'] as const;
15
15
 
16
16
  /** 视图:取代手写常量 soma-core/core/client/parser/data-config-parser.ts#SOMA_DATA_WRITE_KEYS(迁移时已用 HEAD 源码逐值逐序对账相等)。 */
17
17
  export const SOMA_DATA_WRITE_KEYS = ['create', 'update', 'version', 'map', 'only', 'reload', 'delete', 'validate_on', 'failWhen', 'messagePath', 'timeoutMs'] as const;
@@ -57,9 +57,6 @@ export const SOMA_STD_DOMAIN_COMMAND_METHODS = ['POST', 'PUT', 'PATCH'] as const
57
57
  /** 取值域 validate-triggers(对应 SOMA_VALIDATE_TRIGGERS):写通道 validate_on 的校验时机:非空无重复列表 */
58
58
  export const SOMA_STD_DOMAIN_VALIDATE_TRIGGERS = ['change', 'blur', 'submit'] as const;
59
59
 
60
- /** 取值域 show-when-presence-ops(对应 SOMA_SHOW_WHEN_PRESENCE_OPS):Show when 对象形 { field, op, value? } 在谓词算子(predicate-ops)之外多出的有无值算子,不带 value:present = 非 null / undefined / 空白串 / 空数组(0 与 false 算有值,与动作 available_when.requires 同口径);blank = 相反。谓词里的 empty / not_empty 把 false 当空,口径不同 */
61
- export const SOMA_STD_DOMAIN_SHOW_WHEN_PRESENCE_OPS = ['present', 'blank'] as const;
62
-
63
60
  /** 取值域 url-schemes(对应 SOMA_URL_FIELD_SCHEMES):url / image 字段 schemes 的协议闭集(S8);缺省只放行 http / https */
64
61
  export const SOMA_STD_DOMAIN_URL_SCHEMES = ['http', 'https', 'mailto', 'tel', 'sms', 'ftp'] as const;
65
62
 
@@ -110,20 +107,17 @@ export const SOMA_STD_KEY_LIMITS = {
110
107
  export const SOMA_STD_CARRY_TABLE = [
111
108
  { "context": "object", "key": "from", "prop": "from", "carry": { "transform": "ObjectFrom" } },
112
109
  { "context": "field", "key": "name", "prop": "name", "carry": "passthrough" },
113
- { "context": "object", "key": "transform", "prop": "transform", "carry": { "transform": "ObjectTransform" } },
114
110
  { "context": "field", "key": "type", "prop": "type", "carry": { "transform": "FieldType" } },
115
111
  { "context": "object", "key": "fields", "prop": "fields", "carry": { "transform": "ObjectFields" } },
116
112
  { "context": "field", "key": "rules", "prop": "rules", "carry": { "transform": "FieldRules" } },
117
113
  { "context": "object", "key": "write", "prop": "write", "carry": { "transform": "ObjectWrite" } },
118
114
  { "context": "field", "key": "options", "prop": "options", "carry": { "transform": "FieldOptions" } },
119
- { "context": "object", "key": "predicates", "prop": "predicates", "carry": { "transform": "ObjectPredicates" } },
120
115
  { "context": "object", "key": "name", "prop": "displayName", "carry": { "transform": "ObjectName" } },
121
116
  { "context": "object", "key": "poll", "prop": "poll", "carry": { "transform": "ObjectPoll" } },
122
- { "context": "field", "key": "calc", "prop": "calc", "carry": "passthrough" },
123
117
  { "context": "field", "key": "default", "prop": "default", "carry": { "transform": "FieldDefault" } }
124
118
  ] as const;
125
119
 
126
- export const SOMA_STD_TRANSFORM_HOOKS = ['ObjectFrom', 'ObjectTransform', 'FieldType', 'ObjectFields', 'FieldRules', 'ObjectWrite', 'FieldOptions', 'ObjectPredicates', 'ObjectName', 'ObjectPoll', 'FieldDefault'] as const;
120
+ export const SOMA_STD_TRANSFORM_HOOKS = ['ObjectFrom', 'FieldType', 'ObjectFields', 'FieldRules', 'ObjectWrite', 'FieldOptions', 'ObjectName', 'ObjectPoll', 'FieldDefault'] as const;
127
121
  export type SomaStdTransformHookName = (typeof SOMA_STD_TRANSFORM_HOOKS)[number];
128
122
 
129
123
  // ── 授权扫描表:值是「会被调用的接口」的键(授权闸门 / 接口白名单 / 跨库校验 / 底稿接口 共用一份) ──
@@ -137,3 +131,39 @@ export const SOMA_STD_AUTH_SCAN = {
137
131
  ],
138
132
  "containers": []
139
133
  } as const;
134
+
135
+ // ── 视觉页面禁逻辑语法与纯绑定真源(std-grammar.json#pageForbiddenLogicKeys) ──
136
+
137
+ export const SOMA_STD_PAGE_FORBIDDEN_LOGIC_KEYS = {
138
+ "title": "视觉页面不含逻辑语法:页面语法里禁止出现的逻辑键(三层分工:业务逻辑归业务对象,交互逻辑归展示对象,页面只做纯视觉翻译;见 knowledge/SOMA领域建模与组件编写准则.md §1.0)",
139
+ "decidedAt": "2026-11-09",
140
+ "keys": [
141
+ { "key": "calc", "was": "core 字段计算" },
142
+ { "key": "derive", "was": "foundation 字段级派生(K19)/ kit derive 模板" },
143
+ { "key": "derived", "was": "页面声明里的派生写法" },
144
+ { "key": "showWhen", "was": "条件显示" },
145
+ { "key": "hiddenWhen", "was": "条件隐藏" },
146
+ { "key": "disabledWhen", "was": "条件禁用" },
147
+ { "key": "requiredWhen", "was": "条件必填" },
148
+ { "key": "when", "was": "动作 when 条件 / show when 对象谓词 { field, op, value } / rules[].when 条件规则(纯路径字符串形 when 是纯绑定,放行)", "forbiddenShape": "object" },
149
+ { "key": "predicates", "scope": "standard", "was": "data.<对象>.predicates 具名谓词" },
150
+ { "key": "transform", "scope": "standard", "was": "data.<对象>.transform 取数后派生字段" },
151
+ { "key": "steps", "scope": "standard", "was": "_event 事件编排(when / switch / for_each / goto)" },
152
+ { "key": "triggers", "scope": "standard", "was": "_event triggers 条件触发器(condition + value)" },
153
+ { "key": "switch", "scope": "standard", "was": "_event steps 内 switch 条件分支" },
154
+ { "key": "for_each", "scope": "standard", "was": "_event steps 内 for_each 循环" },
155
+ { "key": "parallel", "scope": "standard", "was": "_event steps 内 parallel 并行编排" }
156
+ ],
157
+ "pureBinding": {
158
+ "title": "展示对象的值对页面只读:页面只做纯路径读取,不在页面里取反、比较、映射;需要判断的地方由展示对象直接给最终值(2026-11-10 裁决)",
159
+ "negatedPath": { "code": "CORE-PAGE-NEGATE-FORBIDDEN", "prefix": "!", "positions": ["show.when", "show.class 值", "show.props 值", "嵌套绑定 when"], "pathPattern": "^!\\s*[A-Za-z_$][\\w$]*(?:\\.[A-Za-z_$][\\w$]*)+\\s*$", "was": "`!path` 取反前缀(when / class 条件路径 / 组件 props 值)", "remedy": "由展示对象另给相反的成员(如 remarkHidden),页面绑定它" },
160
+ "styleComparison": { "code": "CORE-STYLE-COMPARE-FORBIDDEN", "keys": ["condition", "value"], "positions": ["_style states 条目", "_style transitions.active_state"], "was": "_style states 的 `condition: 路径` + `value` 比较 + `apply`,以及 transitions.active_state 的 condition + value", "remedy": "改写成类名档位绑定:`bind: page.成员` + `tiers: { 档位名: 类名 }`,成员的值就是档位名" },
161
+ "styleTier": { "keys": ["bind", "tiers"], "tierNamePattern": "^[a-z][a-z0-9_-]*$", "maxTiers": 8, "positions": ["_style states.<锚点>", "_style transitions.<锚点>(trigger: active_state)"], "note": "bind 是纯路径(点分标识符,无取反 / 管道 / 运算符);tiers 是 档位名 到 类名串 的闭集映射,成员值不在档位内时不加任何类;档位名闭集 pattern 与个数上限读本节,页面不写比较" },
162
+ "roleBy": { "code": "CORE-PAGE-ROLE-BY-INVALID", "pathPattern": "^[A-Za-z_$][\\w$]*(?:\\.[A-Za-z_$][\\w$]*)*$", "positions": ["bind.role_by"], "was": "bind.role_by 写了表达式 / 取反 / 管道 / 映射", "remedy": "role_by 只许纯路径:行字段的值直接作为模板名,匹配 data-soma-role=\"item:取值\";行数据自带模板名" }
163
+ },
164
+ "exemptContexts": ["diagnostics", "diagnosticExamples", "rejected", "title", "basis", "was", "summary", "docSummary"],
165
+ "exampleRoots": ["soma-kit-demo/pages", "soma-kit/examples", "soma-ui/tests/fixtures/hosts", "soma-core-demo/ui", "soma-core-demo/pages"],
166
+ "exampleFilePatterns": ["_ui.yaml", ".kit.yaml", "_style.yaml"],
167
+ "exampleSkipDirs": ["node_modules", "negative", "__negative__"],
168
+ "note": "forbiddenShape: 'object' = 只禁对象 / 列表形,值为字符串(纯路径绑定)放行;scope: 'standard' = 只在 core 标准格式(四件套 / 注入口)判定,不进 G83 的跨方言语法源与示例页扫描(方言同名键含义不同,如 steps 页面模式)"
169
+ } as const;