mxrb 0.1.5 → 0.1.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 (949) hide show
  1. checksums.yaml +4 -4
  2. data/README.de-DE.md +4 -1
  3. data/README.md +11 -3
  4. data/README.pt-BR.md +5 -2
  5. data/bin/mxrb +509 -358
  6. data/docker/java-actions/Dockerfile +44 -0
  7. data/docker/java-actions/src/com/mendix/core/Core.java +491 -0
  8. data/docker/java-actions/src/com/mendix/core/CoreException.java +11 -0
  9. data/docker/java-actions/src/com/mendix/core/CoreRuntimeException.java +10 -0
  10. data/docker/java-actions/src/com/mendix/core/actionmanagement/MicroflowCallBuilder.java +19 -0
  11. data/docker/java-actions/src/com/mendix/core/conf/Configuration.java +60 -0
  12. data/docker/java-actions/src/com/mendix/core/conf/RuntimeVersion.java +38 -0
  13. data/docker/java-actions/src/com/mendix/core/internal/ICore.java +5 -0
  14. data/docker/java-actions/src/com/mendix/core/objectmanagement/member/MendixAutoNumber.java +10 -0
  15. data/docker/java-actions/src/com/mendix/core/objectmanagement/member/MendixBinary.java +48 -0
  16. data/docker/java-actions/src/com/mendix/core/objectmanagement/member/MendixBoolean.java +10 -0
  17. data/docker/java-actions/src/com/mendix/core/objectmanagement/member/MendixDateTime.java +15 -0
  18. data/docker/java-actions/src/com/mendix/core/objectmanagement/member/MendixDecimal.java +10 -0
  19. data/docker/java-actions/src/com/mendix/core/objectmanagement/member/MendixEnum.java +18 -0
  20. data/docker/java-actions/src/com/mendix/core/objectmanagement/member/MendixHashString.java +10 -0
  21. data/docker/java-actions/src/com/mendix/core/objectmanagement/member/MendixInteger.java +10 -0
  22. data/docker/java-actions/src/com/mendix/core/objectmanagement/member/MendixLong.java +10 -0
  23. data/docker/java-actions/src/com/mendix/core/objectmanagement/member/MendixObjectMember.java +73 -0
  24. data/docker/java-actions/src/com/mendix/core/objectmanagement/member/MendixObjectReference.java +20 -0
  25. data/docker/java-actions/src/com/mendix/core/objectmanagement/member/MendixObjectReferenceSet.java +22 -0
  26. data/docker/java-actions/src/com/mendix/core/objectmanagement/member/MendixString.java +10 -0
  27. data/docker/java-actions/src/com/mendix/datastorage/DataStorage.java +5 -0
  28. data/docker/java-actions/src/com/mendix/datastorage/XPathBasicQuery.java +29 -0
  29. data/docker/java-actions/src/com/mendix/datastorage/XPathQuery.java +41 -0
  30. data/docker/java-actions/src/com/mendix/externalinterface/connector/RequestHandler.java +38 -0
  31. data/docker/java-actions/src/com/mendix/http/Http.java +5 -0
  32. data/docker/java-actions/src/com/mendix/integration/Integration.java +5 -0
  33. data/docker/java-actions/src/com/mendix/integration/WebserviceException.java +24 -0
  34. data/docker/java-actions/src/com/mendix/logging/ILogNode.java +35 -0
  35. data/docker/java-actions/src/com/mendix/logging/LogLevel.java +4 -0
  36. data/docker/java-actions/src/com/mendix/logging/LogMessage.java +18 -0
  37. data/docker/java-actions/src/com/mendix/logging/LogSubscriber.java +22 -0
  38. data/docker/java-actions/src/com/mendix/m2ee/api/IMxRuntimeRequest.java +20 -0
  39. data/docker/java-actions/src/com/mendix/m2ee/api/IMxRuntimeResponse.java +50 -0
  40. data/docker/java-actions/src/com/mendix/metrics/Counter.java +7 -0
  41. data/docker/java-actions/src/com/mendix/metrics/Gauge.java +7 -0
  42. data/docker/java-actions/src/com/mendix/metrics/Metric.java +17 -0
  43. data/docker/java-actions/src/com/mendix/metrics/Metrics.java +75 -0
  44. data/docker/java-actions/src/com/mendix/metrics/Timer.java +10 -0
  45. data/docker/java-actions/src/com/mendix/systemwideinterfaces/MendixException.java +9 -0
  46. data/docker/java-actions/src/com/mendix/systemwideinterfaces/MendixRuntimeException.java +9 -0
  47. data/docker/java-actions/src/com/mendix/systemwideinterfaces/connectionbus/data/IDataColumnSchema.java +7 -0
  48. data/docker/java-actions/src/com/mendix/systemwideinterfaces/connectionbus/data/IDataRow.java +14 -0
  49. data/docker/java-actions/src/com/mendix/systemwideinterfaces/connectionbus/data/IDataTable.java +11 -0
  50. data/docker/java-actions/src/com/mendix/systemwideinterfaces/connectionbus/data/IDataTableSchema.java +13 -0
  51. data/docker/java-actions/src/com/mendix/systemwideinterfaces/connectionbus/requests/IParameterMap.java +9 -0
  52. data/docker/java-actions/src/com/mendix/systemwideinterfaces/connectionbus/requests/IRetrievalSchema.java +9 -0
  53. data/docker/java-actions/src/com/mendix/systemwideinterfaces/connectionbus/requests/ISortExpression.java +7 -0
  54. data/docker/java-actions/src/com/mendix/systemwideinterfaces/connectionbus/requests/types/IGetRequest.java +9 -0
  55. data/docker/java-actions/src/com/mendix/systemwideinterfaces/connectionbus/requests/types/IOQLTextGetRequest.java +5 -0
  56. data/docker/java-actions/src/com/mendix/systemwideinterfaces/connectionbus/requests/types/ITextGetRequest.java +12 -0
  57. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/IContext.java +28 -0
  58. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/IDataType.java +20 -0
  59. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/IEntityProxy.java +27 -0
  60. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/IFeedback.java +10 -0
  61. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/ILanguage.java +11 -0
  62. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/IMendixIdentifier.java +8 -0
  63. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/IMendixObject.java +65 -0
  64. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/IMendixObjectMember.java +20 -0
  65. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/ISession.java +16 -0
  66. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/IUser.java +11 -0
  67. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/UserAction.java +25 -0
  68. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/meta/IMetaAssociation.java +15 -0
  69. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/meta/IMetaEnumValue.java +9 -0
  70. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/meta/IMetaEnumeration.java +9 -0
  71. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/meta/IMetaObject.java +39 -0
  72. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/meta/IMetaObjectMember.java +6 -0
  73. data/docker/java-actions/src/com/mendix/systemwideinterfaces/core/meta/IMetaPrimitive.java +19 -0
  74. data/docker/java-actions/src/com/mendix/thirdparty/org/json/JSONArray.java +249 -0
  75. data/docker/java-actions/src/com/mendix/thirdparty/org/json/JSONException.java +14 -0
  76. data/docker/java-actions/src/com/mendix/thirdparty/org/json/JSONObject.java +279 -0
  77. data/docker/java-actions/src/com/mendix/thirdparty/org/json/JSONValues.java +273 -0
  78. data/docker/java-actions/src/com/mendix/utils/ListUtils.java +27 -0
  79. data/docker/java-actions/src/com/mendix/webui/CustomJavaAction.java +11 -0
  80. data/docker/java-actions/src/com/mendix/webui/FeedbackHelper.java +30 -0
  81. data/docker/java-actions/src/javax/servlet/http/Cookie.java +69 -0
  82. data/docker/java-actions/src/javax/servlet/http/HttpServletRequest.java +21 -0
  83. data/docker/java-actions/src/javax/servlet/http/HttpServletResponse.java +27 -0
  84. data/docker/java-actions/src/mxrb/sidecar/Aggregate.java +70 -0
  85. data/docker/java-actions/src/mxrb/sidecar/Background.java +84 -0
  86. data/docker/java-actions/src/mxrb/sidecar/Bridge.java +306 -0
  87. data/docker/java-actions/src/mxrb/sidecar/Build.java +131 -0
  88. data/docker/java-actions/src/mxrb/sidecar/Captions.java +52 -0
  89. data/docker/java-actions/src/mxrb/sidecar/Handlers.java +27 -0
  90. data/docker/java-actions/src/mxrb/sidecar/Invoker.java +110 -0
  91. data/docker/java-actions/src/mxrb/sidecar/Json.java +234 -0
  92. data/docker/java-actions/src/mxrb/sidecar/Metadata.java +119 -0
  93. data/docker/java-actions/src/mxrb/sidecar/MxContext.java +100 -0
  94. data/docker/java-actions/src/mxrb/sidecar/MxDataTable.java +172 -0
  95. data/docker/java-actions/src/mxrb/sidecar/MxDataType.java +100 -0
  96. data/docker/java-actions/src/mxrb/sidecar/MxIdentifier.java +47 -0
  97. data/docker/java-actions/src/mxrb/sidecar/MxLogNode.java +50 -0
  98. data/docker/java-actions/src/mxrb/sidecar/MxMetaAssociation.java +62 -0
  99. data/docker/java-actions/src/mxrb/sidecar/MxMetaEnumeration.java +64 -0
  100. data/docker/java-actions/src/mxrb/sidecar/MxMetaObject.java +234 -0
  101. data/docker/java-actions/src/mxrb/sidecar/MxMetaPrimitive.java +88 -0
  102. data/docker/java-actions/src/mxrb/sidecar/MxMicroflowCall.java +36 -0
  103. data/docker/java-actions/src/mxrb/sidecar/MxObject.java +258 -0
  104. data/docker/java-actions/src/mxrb/sidecar/MxOqlRequest.java +101 -0
  105. data/docker/java-actions/src/mxrb/sidecar/MxRuntimeRequest.java +182 -0
  106. data/docker/java-actions/src/mxrb/sidecar/MxRuntimeResponse.java +122 -0
  107. data/docker/java-actions/src/mxrb/sidecar/MxSession.java +91 -0
  108. data/docker/java-actions/src/mxrb/sidecar/MxXPathQuery.java +127 -0
  109. data/docker/java-actions/src/mxrb/sidecar/RubyException.java +17 -0
  110. data/docker/java-actions/src/mxrb/sidecar/Server.java +56 -0
  111. data/docs/agent-relay/20260901-083127.md +15 -0
  112. data/docs/agent-relay/20260901-091655.md +16 -0
  113. data/docs/agent-relay/20260901-094201.md +16 -0
  114. data/docs/agent-relay/20260901-140415.md +28 -0
  115. data/docs/de-DE/README.md +2 -0
  116. data/docs/de-DE/architectural-standard.md +19 -0
  117. data/docs/de-DE/certificacao-ruby-typescript.md +40 -0
  118. data/docs/de-DE/cobertura-ruby-nativa.md +265 -0
  119. data/docs/de-DE/compiler.md +22 -7
  120. data/docs/de-DE/demanda-projeto-ruby-typescript-convencional.md +37 -0
  121. data/docs/de-DE/design-system.md +59 -2
  122. data/docs/de-DE/entity-dsl.md +12 -0
  123. data/docs/de-DE/method-oriented-flows.md +66 -0
  124. data/docs/de-DE/portabilidade-ruby-typescript.md +1050 -0
  125. data/docs/de-DE/project-structure.md +34 -10
  126. data/docs/de-DE/ruby-first-roadmap.md +286 -0
  127. data/docs/de-DE/runtime-ruby.md +329 -6
  128. data/docs/de-DE/scaffolds.md +8 -4
  129. data/docs/de-DE/studio-backend.md +352 -0
  130. data/docs/de-DE/validation-matrix.md +235 -19
  131. data/docs/de-DE/vetclinic-acceptance.md +4 -3
  132. data/docs/de-DE/windows-studio-pro.md +88 -0
  133. data/docs/de-DE/writing.md +3 -1
  134. data/docs/en-US/README.md +2 -0
  135. data/docs/en-US/architectural-patterns.md +2 -3
  136. data/docs/en-US/architectural-standard.md +21 -1
  137. data/docs/en-US/certificacao-ruby-typescript.md +40 -0
  138. data/docs/en-US/cobertura-ruby-nativa.md +381 -0
  139. data/docs/en-US/compiler.md +33 -6
  140. data/docs/en-US/conventions.md +1 -2
  141. data/docs/en-US/demanda-projeto-ruby-typescript-convencional.md +36 -0
  142. data/docs/en-US/design-system.md +55 -1
  143. data/docs/en-US/entity-dsl.md +12 -0
  144. data/docs/en-US/method-oriented-flows.md +62 -0
  145. data/docs/en-US/portabilidade-ruby-typescript.md +1050 -0
  146. data/docs/en-US/project-structure.md +31 -8
  147. data/docs/en-US/ruby-first-roadmap.md +271 -2
  148. data/docs/en-US/runtime-ruby.md +313 -7
  149. data/docs/en-US/scaffolds.md +7 -4
  150. data/docs/en-US/studio-backend.md +342 -0
  151. data/docs/en-US/validation-matrix.md +173 -48
  152. data/docs/en-US/vetclinic-acceptance.md +4 -2
  153. data/docs/en-US/windows-studio-pro.md +84 -0
  154. data/docs/en-US/writing.md +8 -3
  155. data/docs/guides/benchmark-budget.pt-BR.md +99 -0
  156. data/docs/guides/certificacao-edicoes.pt-BR.md +116 -0
  157. data/docs/guides/teste-manual-vetclinic-ruby.pt-BR.md +480 -0
  158. data/docs/planning/backlog.pt-BR.md +101 -0
  159. data/docs/planning/ruby-editability.pt-BR.md +277 -0
  160. data/docs/pt-BR/README.md +4 -0
  161. data/docs/pt-BR/architectural-standard.md +21 -1
  162. data/docs/pt-BR/certificacao-ruby-typescript.md +116 -0
  163. data/docs/pt-BR/cobertura-ruby-nativa.md +408 -0
  164. data/docs/pt-BR/compiler.md +38 -7
  165. data/docs/pt-BR/demanda-projeto-ruby-typescript-convencional.md +41 -0
  166. data/docs/pt-BR/design-system.md +58 -2
  167. data/docs/pt-BR/entity-dsl.md +12 -0
  168. data/docs/pt-BR/method-oriented-flows.md +158 -0
  169. data/docs/pt-BR/oql-sql.md +11 -1
  170. data/docs/pt-BR/portabilidade-ruby-typescript.md +1311 -0
  171. data/docs/pt-BR/project-structure.md +46 -8
  172. data/docs/pt-BR/ruby-first-roadmap.md +390 -2
  173. data/docs/pt-BR/runtime-ruby.md +321 -11
  174. data/docs/pt-BR/scaffolds.md +17 -4
  175. data/docs/pt-BR/studio-backend.md +363 -0
  176. data/docs/pt-BR/validation-matrix.md +211 -21
  177. data/docs/pt-BR/vetclinic-acceptance.md +4 -5
  178. data/docs/pt-BR/windows-studio-pro.md +85 -0
  179. data/docs/pt-BR/writing.md +4 -0
  180. data/docs/reviews/ruby-code-review-2026-09-05.pt-BR.md +385 -0
  181. data/examples/modbus_application.rb +105 -0
  182. data/examples/modbus_tcp_simulator.rb +137 -0
  183. data/examples/sudoku_evaluation.rb +5 -5
  184. data/examples/sudoku_functional_test.rb +12 -12
  185. data/lib/mxrb/architecture/graph.rb +2 -2
  186. data/lib/mxrb/architecture/validator.rb +5 -3
  187. data/lib/mxrb/benchmark_fixture.rb +19 -0
  188. data/lib/mxrb/caption.rb +107 -0
  189. data/lib/mxrb/cli/help.rb +47 -8
  190. data/lib/mxrb/compare.rb +236 -74
  191. data/lib/mxrb/compiler/activity_caption.rb +168 -0
  192. data/lib/mxrb/compiler/artifact_document_compiler.rb +2 -1
  193. data/lib/mxrb/compiler/attribute_type_index.rb +57 -0
  194. data/lib/mxrb/compiler/client_model_materializer.rb +3 -4
  195. data/lib/mxrb/compiler/code_action_document_compiler.rb +4 -1
  196. data/lib/mxrb/compiler/compatibility_analyzer.rb +53 -0
  197. data/lib/mxrb/compiler/constants_materializer.rb +7 -1
  198. data/lib/mxrb/compiler/data_grid_bundle_compiler.rb +14 -12
  199. data/lib/mxrb/compiler/database_connector_action_compiler.rb +2 -2
  200. data/lib/mxrb/compiler/deployment_materializer.rb +3 -2
  201. data/lib/mxrb/compiler/deployment_metadata.rb +7 -1
  202. data/lib/mxrb/compiler/domain_document_compiler.rb +26 -2
  203. data/lib/mxrb/compiler/domain_model_materializer.rb +30 -6
  204. data/lib/mxrb/compiler/domain_security_compiler.rb +9 -12
  205. data/lib/mxrb/compiler/java_proxy_generator.rb +34 -2
  206. data/lib/mxrb/compiler/languages.rb +30 -0
  207. data/lib/mxrb/compiler/legacy_data_grid_compiler.rb +19 -3
  208. data/lib/mxrb/compiler/legacy_page_builder.rb +96 -20
  209. data/lib/mxrb/compiler/mapping_materializer.rb +94 -0
  210. data/lib/mxrb/compiler/microflow_document_compiler.rb +5 -19
  211. data/lib/mxrb/compiler/microflow_materializer.rb +12 -1
  212. data/lib/mxrb/compiler/microflow_node_compiler.rb +257 -20
  213. data/lib/mxrb/compiler/model_values.rb +26 -0
  214. data/lib/mxrb/compiler/navigation_document_compiler.rb +73 -66
  215. data/lib/mxrb/compiler/navigation_grid_compiler.rb +112 -0
  216. data/lib/mxrb/compiler/page_bundle_builder.rb +17 -1
  217. data/lib/mxrb/compiler/page_bundle_compiler.rb +783 -147
  218. data/lib/mxrb/compiler/page_document_compiler.rb +17 -23
  219. data/lib/mxrb/compiler/published_rest_materializer.rb +117 -0
  220. data/lib/mxrb/compiler/published_rest_open_api.rb +131 -0
  221. data/lib/mxrb/compiler/runtime_nodes.rb +68 -0
  222. data/lib/mxrb/compiler/schemas/forms-11.12.1.json +19781 -0
  223. data/lib/mxrb/compiler/schemas/languages-10.24.0.73019.json +658 -0
  224. data/lib/mxrb/compiler/schemas/languages-11.12.1.json +670 -0
  225. data/lib/mxrb/compiler/schemas/runtime-10.24.0.73019.json +442 -0
  226. data/lib/mxrb/compiler/schemas/runtime-11.json +176 -0
  227. data/lib/mxrb/compiler/security_materializer.rb +13 -6
  228. data/lib/mxrb/compiler/settings_document_compiler.rb +14 -2
  229. data/lib/mxrb/compiler/settings_materializer.rb +2 -1
  230. data/lib/mxrb/compiler/source_model.rb +8 -10
  231. data/lib/mxrb/compiler/synchronized_entities.rb +76 -0
  232. data/lib/mxrb/compiler/url_segment_compiler.rb +82 -0
  233. data/lib/mxrb/compiler/user_role_resolver.rb +33 -0
  234. data/lib/mxrb/compiler/web_list_data_source.rb +6 -2
  235. data/lib/mxrb/compiler/web_shell_materializer.rb +14 -0
  236. data/lib/mxrb/compiler/web_widget_inventory.rb +72 -0
  237. data/lib/mxrb/converter.rb +125 -0
  238. data/lib/mxrb/dsl/artifact_documents.rb +56 -0
  239. data/lib/mxrb/dsl/asset_documents.rb +94 -0
  240. data/lib/mxrb/dsl/builder.rb +102 -1630
  241. data/lib/mxrb/dsl/code_actions.rb +201 -0
  242. data/lib/mxrb/dsl/data_view_builder.rb +162 -0
  243. data/lib/mxrb/dsl/document_builders.rb +185 -0
  244. data/lib/mxrb/dsl/entity_builder.rb +188 -0
  245. data/lib/mxrb/dsl/flow_body_dsl.rb +538 -0
  246. data/lib/mxrb/dsl/flow_builders.rb +362 -0
  247. data/lib/mxrb/dsl/flow_page_builder.rb +58 -0
  248. data/lib/mxrb/dsl/flow_program.rb +101 -0
  249. data/lib/mxrb/dsl/flow_rest_builder.rb +40 -0
  250. data/lib/mxrb/dsl/flow_text_builder.rb +55 -0
  251. data/lib/mxrb/dsl/integration_documents.rb +1634 -0
  252. data/lib/mxrb/dsl/layout_builders.rb +373 -0
  253. data/lib/mxrb/dsl/module_builder.rb +408 -0
  254. data/lib/mxrb/dsl/navigation_builders.rb +264 -0
  255. data/lib/mxrb/dsl/page_builder.rb +219 -0
  256. data/lib/mxrb/dsl/presentation_documents.rb +161 -0
  257. data/lib/mxrb/dsl/project_documents.rb +60 -0
  258. data/lib/mxrb/dsl/security_builder.rb +215 -0
  259. data/lib/mxrb/dsl/widget_builders.rb +251 -0
  260. data/lib/mxrb/dsl/widget_design.rb +61 -0
  261. data/lib/mxrb/dsl/widget_dsl.rb +553 -0
  262. data/lib/mxrb/dsl/widget_event_arguments.rb +52 -0
  263. data/lib/mxrb/dsl/workflows.rb +520 -0
  264. data/lib/mxrb/errors.rb +3 -0
  265. data/lib/mxrb/evaluation.rb +9 -8
  266. data/lib/mxrb/exporter/code_action_declarations.rb +133 -0
  267. data/lib/mxrb/exporter/data_sources.rb +144 -0
  268. data/lib/mxrb/exporter/domain_document_declarations.rb +222 -0
  269. data/lib/mxrb/exporter/flow_action_sources.rb +545 -0
  270. data/lib/mxrb/exporter/flow_linearization.rb +649 -0
  271. data/lib/mxrb/exporter/integration_declarations.rb +763 -0
  272. data/lib/mxrb/exporter/method_flow_source.rb +208 -0
  273. data/lib/mxrb/exporter/model_sources.rb +381 -0
  274. data/lib/mxrb/exporter/page_sources.rb +756 -0
  275. data/lib/mxrb/exporter/presentation_declarations.rb +161 -0
  276. data/lib/mxrb/exporter/project_sources.rb +306 -0
  277. data/lib/mxrb/exporter/rest_declarations.rb +509 -0
  278. data/lib/mxrb/exporter/workflow_declarations.rb +652 -0
  279. data/lib/mxrb/exporter.rb +677 -1491
  280. data/lib/mxrb/forms/catalog.rb +175 -0
  281. data/lib/mxrb/forms/certification.rb +115 -0
  282. data/lib/mxrb/forms/coverage.rb +130 -0
  283. data/lib/mxrb/forms/input_presentation.rb +55 -0
  284. data/lib/mxrb/forms/mpr_codec.rb +821 -0
  285. data/lib/mxrb/forms/node.rb +213 -0
  286. data/lib/mxrb/forms/source_emitter.rb +296 -0
  287. data/lib/mxrb/forms/storage_naming.rb +120 -0
  288. data/lib/mxrb/forms/values.rb +226 -0
  289. data/lib/mxrb/frontend/migrator.rb +2 -0
  290. data/lib/mxrb/functional.rb +47 -43
  291. data/lib/mxrb/github/annotator.rb +31 -27
  292. data/lib/mxrb/http/server.rb +10 -2
  293. data/lib/mxrb/integrity/validator.rb +70 -22
  294. data/lib/mxrb/io/bson_codec.rb +61 -35
  295. data/lib/mxrb/io/mpr_file.rb +638 -105
  296. data/lib/mxrb/io/mxunit_codec.rb +3 -3
  297. data/lib/mxrb/marketplace.rb +77 -73
  298. data/lib/mxrb/modbus/client.rb +162 -0
  299. data/lib/mxrb/modbus/rtu_transport.rb +150 -0
  300. data/lib/mxrb/modbus/stream_io.rb +43 -0
  301. data/lib/mxrb/modbus/tcp_transport.rb +47 -0
  302. data/lib/mxrb/modbus.rb +32 -0
  303. data/lib/mxrb/model/association.rb +28 -28
  304. data/lib/mxrb/model/attribute.rb +51 -35
  305. data/lib/mxrb/model/domain_model.rb +33 -16
  306. data/lib/mxrb/model/entity.rb +80 -70
  307. data/lib/mxrb/model/menu.rb +54 -13
  308. data/lib/mxrb/model/microflow.rb +48 -46
  309. data/lib/mxrb/model/module.rb +85 -42
  310. data/lib/mxrb/model/navigation.rb +232 -9
  311. data/lib/mxrb/model/page.rb +1137 -247
  312. data/lib/mxrb/model/project.rb +61 -15
  313. data/lib/mxrb/model/unit.rb +10 -9
  314. data/lib/mxrb/native_fragment_store.rb +184 -0
  315. data/lib/mxrb/official_marketplace/content_api.rb +13 -1
  316. data/lib/mxrb/official_marketplace/dependency_resolver.rb +6 -1
  317. data/lib/mxrb/official_marketplace/widget_package_installer.rb +2 -1
  318. data/lib/mxrb/oql/server.rb +8 -8
  319. data/lib/mxrb/pluggable/catalog.rb +179 -0
  320. data/lib/mxrb/pluggable/mpr_codec.rb +765 -0
  321. data/lib/mxrb/pluggable/node.rb +347 -0
  322. data/lib/mxrb/pluggable/schema_dsl.rb +179 -0
  323. data/lib/mxrb/pluggable/schema_source_emitter.rb +134 -0
  324. data/lib/mxrb/project_lifecycle.rb +5 -2
  325. data/lib/mxrb/protocols/entry.rb +29 -0
  326. data/lib/mxrb/protocols/registry.rb +59 -0
  327. data/lib/mxrb/protocols.rb +84 -70
  328. data/lib/mxrb/public_source_audit.rb +201 -0
  329. data/lib/mxrb/ruby_app/access_rule_builder.rb +27 -0
  330. data/lib/mxrb/ruby_app/application/offline_synchronization.rb +138 -0
  331. data/lib/mxrb/ruby_app/application/record_access.rb +402 -0
  332. data/lib/mxrb/ruby_app/application/request_handlers.rb +45 -0
  333. data/lib/mxrb/ruby_app/application/schema_security.rb +193 -0
  334. data/lib/mxrb/ruby_app/application/service_invocation.rb +261 -0
  335. data/lib/mxrb/ruby_app/application/session_access.rb +97 -0
  336. data/lib/mxrb/ruby_app/application/value_serialization.rb +148 -0
  337. data/lib/mxrb/ruby_app/application.rb +201 -0
  338. data/lib/mxrb/ruby_app/async_invocations.rb +97 -0
  339. data/lib/mxrb/ruby_app/compilation.rb +64 -0
  340. data/lib/mxrb/ruby_app/constant.rb +99 -0
  341. data/lib/mxrb/ruby_app/controller.rb +112 -0
  342. data/lib/mxrb/ruby_app/dataset.rb +87 -0
  343. data/lib/mxrb/ruby_app/design_classes.rb +177 -0
  344. data/lib/mxrb/ruby_app/design_declarations.rb +193 -0
  345. data/lib/mxrb/ruby_app/domain_rule_builders.rb +123 -0
  346. data/lib/mxrb/ruby_app/enumeration.rb +91 -0
  347. data/lib/mxrb/ruby_app/exporter/data_widget_sources.rb +614 -0
  348. data/lib/mxrb/ruby_app/exporter/document_exports.rb +216 -0
  349. data/lib/mxrb/ruby_app/exporter/domain_behaviors.rb +67 -0
  350. data/lib/mxrb/ruby_app/exporter/domain_manifests.rb +283 -0
  351. data/lib/mxrb/ruby_app/exporter/frontend_pages.rb +161 -0
  352. data/lib/mxrb/ruby_app/exporter/frontend_types.rb +500 -0
  353. data/lib/mxrb/ruby_app/exporter/model_sources.rb +376 -0
  354. data/lib/mxrb/ruby_app/exporter/module_exports.rb +211 -0
  355. data/lib/mxrb/ruby_app/exporter/nanoflow_typescript.rb +590 -0
  356. data/lib/mxrb/ruby_app/exporter/project_files.rb +398 -0
  357. data/lib/mxrb/ruby_app/exporter/support_files.rb +357 -0
  358. data/lib/mxrb/ruby_app/exporter/widget_manifests.rb +134 -0
  359. data/lib/mxrb/ruby_app/exporter/widget_sources.rb +510 -0
  360. data/lib/mxrb/ruby_app/exporter.rb +398 -2320
  361. data/lib/mxrb/ruby_app/file_content.rb +133 -0
  362. data/lib/mxrb/ruby_app/flow_metadata.rb +72 -0
  363. data/lib/mxrb/ruby_app/frontend_package.rb +54 -0
  364. data/lib/mxrb/ruby_app/frontend_template/package-lock.json +4790 -0
  365. data/lib/mxrb/ruby_app/frontend_template/src/app/App.tsx +5 -0
  366. data/lib/mxrb/ruby_app/frontend_template/src/app/router.tsx +18 -0
  367. data/lib/mxrb/ruby_app/frontend_template/src/components/auth/LoginForm.test.tsx +18 -0
  368. data/lib/mxrb/ruby_app/frontend_template/src/components/auth/LoginForm.tsx +80 -0
  369. data/lib/mxrb/ruby_app/frontend_template/src/components/feedback/AppFeedback.tsx +31 -0
  370. data/lib/mxrb/ruby_app/frontend_template/src/components/navigation/AppNavigation.tsx +45 -0
  371. data/lib/mxrb/ruby_app/frontend_template/src/core/errors.ts +3 -0
  372. data/lib/mxrb/ruby_app/frontend_template/src/features/README.md +4 -0
  373. data/lib/mxrb/ruby_app/frontend_template/src/features/routes.tsx +9 -0
  374. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/ApplicationRuntime.test.tsx +174 -0
  375. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/ApplicationRuntime.tsx +959 -0
  376. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/AsyncInvocation.test.ts +61 -0
  377. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/AsyncInvocation.ts +47 -0
  378. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/ClientActions.test.tsx +234 -0
  379. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/ClientEvents.test.tsx +174 -0
  380. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/CreateActions.test.tsx +114 -0
  381. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/OfflineStartup.test.tsx +154 -0
  382. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/PageDataSource.ts +26 -0
  383. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/PageEdits.test.ts +85 -0
  384. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/PageEdits.ts +132 -0
  385. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/PageVariables.test.tsx +107 -0
  386. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/PageVariables.tsx +272 -0
  387. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/PopupRuntime.test.tsx +226 -0
  388. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/StartupAuthentication.test.tsx +101 -0
  389. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/api.ts +35 -0
  390. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/calendar.test.ts +93 -0
  391. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/calendar.ts +134 -0
  392. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/captions.test.tsx +201 -0
  393. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/captions.ts +235 -0
  394. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/clientFunctions.test.ts +195 -0
  395. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/clientFunctions.ts +182 -0
  396. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/clientServices.ts +24 -0
  397. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/commonsStorage.test.ts +77 -0
  398. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/commonsStorage.ts +44 -0
  399. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/BoundField.test.tsx +339 -0
  400. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/BoundField.tsx +442 -0
  401. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/CoreWidgets.test.tsx +306 -0
  402. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/DataGrid.test.tsx +417 -0
  403. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/DataGrid.tsx +944 -0
  404. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/FieldPolicy.test.ts +96 -0
  405. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/FieldPolicy.tsx +106 -0
  406. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/FileWidget.tsx +152 -0
  407. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/GridIcon.tsx +92 -0
  408. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/LanguageSelector.test.tsx +109 -0
  409. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/LanguageSelector.tsx +130 -0
  410. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceChart.test.tsx +580 -0
  411. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceChart.tsx +576 -0
  412. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceControls.test.tsx +192 -0
  413. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceControls.tsx +193 -0
  414. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceDataWidgets.test.tsx +194 -0
  415. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceGridFilter.test.tsx +213 -0
  416. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceGridFilter.tsx +95 -0
  417. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceInteractive.test.tsx +202 -0
  418. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceInteractive.tsx +246 -0
  419. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceLegacy.test.tsx +171 -0
  420. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceLegacy.tsx +189 -0
  421. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceMenus.tsx +114 -0
  422. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplacePlotly.test.tsx +96 -0
  423. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplacePlotly.tsx +162 -0
  424. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceSelection.test.tsx +170 -0
  425. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceSelection.tsx +204 -0
  426. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceTimeline.tsx +116 -0
  427. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/MarketplaceTreeNode.tsx +91 -0
  428. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/NativeDataGrid.tsx +336 -0
  429. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/NativeDataWidgets.test.tsx +233 -0
  430. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/NativeDataWidgets.tsx +288 -0
  431. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/NativeLayout.test.tsx +100 -0
  432. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/NativeLayout.tsx +111 -0
  433. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/NativeScrollContainer.tsx +206 -0
  434. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/NativeSignature.tsx +104 -0
  435. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/NativeWidgets.test.tsx +855 -0
  436. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/NativeWidgets.tsx +1142 -0
  437. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/PageOutlet.test.tsx +74 -0
  438. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/PageOutlet.tsx +63 -0
  439. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/PageTitleContext.ts +7 -0
  440. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/Popup.tsx +181 -0
  441. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/PresentationWidgets.test.tsx +490 -0
  442. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/PresentationWidgets.tsx +566 -0
  443. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/ReferenceSetCombobox.tsx +183 -0
  444. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/SelectionScope.tsx +28 -0
  445. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/TabControl.tsx +88 -0
  446. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/VariableScope.ts +8 -0
  447. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/WidgetRenderer.test.tsx +574 -0
  448. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/WidgetRenderer.tsx +1076 -0
  449. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/autofocus.test.ts +79 -0
  450. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/autofocus.ts +58 -0
  451. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/components/marketplaceData.ts +126 -0
  452. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/contracts.ts +53 -0
  453. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/dateFormatting.ts +297 -0
  454. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/dateParsing.test.ts +189 -0
  455. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/decimal.test.ts +75 -0
  456. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/decimal.ts +132 -0
  457. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/decimalParsing.test.ts +44 -0
  458. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/decimalParsing.ts +123 -0
  459. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/expression.test.ts +139 -0
  460. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/expression.ts +391 -0
  461. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/expressionClient.test.ts +163 -0
  462. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/feedbackCapture.test.ts +75 -0
  463. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/feedbackCapture.ts +51 -0
  464. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/feedbackCaptureWidget.test.tsx +136 -0
  465. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/feedbackCaptureWidget.tsx +79 -0
  466. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/feedbackFiles.test.ts +92 -0
  467. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/feedbackFiles.ts +84 -0
  468. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/feedbackMetadata.test.ts +142 -0
  469. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/feedbackMetadata.ts +49 -0
  470. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/feedbackStorage.test.ts +110 -0
  471. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/feedbackStorage.ts +93 -0
  472. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/legacy/LegacyWidgetHost.tsx +218 -0
  473. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/legacy/amd.ts +104 -0
  474. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/legacy/dojo.ts +474 -0
  475. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/legacy/legacy.test.tsx +518 -0
  476. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/legacy/mx.ts +722 -0
  477. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/legacy/mxGlobal.ts +13 -0
  478. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/legacy/nativeUnavailable.ts +20 -0
  479. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/legacy/session.ts +26 -0
  480. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/listSource.test.tsx +299 -0
  481. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/listSource.ts +177 -0
  482. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/marketplace.tsx +326 -0
  483. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/marketplaceWidgets.json +203 -0
  484. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/marketplaceWidgets.test.tsx +38 -0
  485. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/mendixFilters.test.ts +66 -0
  486. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/mendixFilters.ts +101 -0
  487. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/nanoflow.ts +594 -0
  488. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/nanoflowCommons.test.ts +89 -0
  489. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/nanoflowCommons.ts +57 -0
  490. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/nanoflowData.test.ts +199 -0
  491. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/nanoflowLists.test.ts +34 -0
  492. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/nanoflowOffline.test.ts +130 -0
  493. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/nativeMobileActions.test.ts +310 -0
  494. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/nativeMobileActions.ts +493 -0
  495. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/nativeOnlyJavaScriptActions.test.ts +12 -0
  496. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/objectRestore.test.ts +164 -0
  497. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/objectRestore.ts +123 -0
  498. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/objectStorage.test.ts +179 -0
  499. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/objectStorage.ts +94 -0
  500. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/offlineStore.test.ts +147 -0
  501. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/offlineStore.ts +226 -0
  502. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/plotly.test.ts +55 -0
  503. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/plotly.ts +94 -0
  504. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/pluggableHost.test.tsx +231 -0
  505. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/pluggableHost.tsx +461 -0
  506. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/projectJavaScriptActions.test.ts +158 -0
  507. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/projectJavaScriptActions.ts +91 -0
  508. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/qrCode.test.ts +79 -0
  509. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/qrCode.ts +309 -0
  510. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/schemaLookup.ts +46 -0
  511. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/sort.test.ts +114 -0
  512. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/synchronize.test.ts +167 -0
  513. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/synchronize.ts +156 -0
  514. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/useActionExecution.tsx +100 -0
  515. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/useWidgetEvent.ts +132 -0
  516. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/value.test.ts +89 -0
  517. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/value.ts +319 -0
  518. data/lib/mxrb/ruby_app/frontend_template/src/generated/bridge/widgetContract.test.ts +32 -0
  519. data/lib/mxrb/ruby_app/frontend_template/src/layouts/AppLayout.tsx +19 -0
  520. data/lib/mxrb/ruby_app/frontend_template/src/main.tsx +16 -0
  521. data/lib/mxrb/ruby_app/frontend_template/src/plotly.d.ts +4 -0
  522. data/lib/mxrb/ruby_app/frontend_template/src/styles/index.css +1281 -0
  523. data/lib/mxrb/ruby_app/frontend_template/src/test/setup.ts +1 -0
  524. data/lib/mxrb/ruby_app/frontend_template/tsconfig.json +23 -0
  525. data/lib/mxrb/ruby_app/frontend_template/vitest.config.ts +10 -0
  526. data/lib/mxrb/ruby_app/java_actions_package.rb +118 -0
  527. data/lib/mxrb/ruby_app/known_community_commons_actions.rb +316 -0
  528. data/lib/mxrb/ruby_app/known_encryption_actions.rb +162 -0
  529. data/lib/mxrb/ruby_app/known_feedback_widget.rb +43 -0
  530. data/lib/mxrb/ruby_app/known_java_actions.rb +66 -0
  531. data/lib/mxrb/ruby_app/known_javascript_actions.rb +173 -0
  532. data/lib/mxrb/ruby_app/known_mx_model_reflection_actions.rb +353 -0
  533. data/lib/mxrb/ruby_app/known_oql_actions.rb +43 -0
  534. data/lib/mxrb/ruby_app/known_oql_module_actions.rb +101 -0
  535. data/lib/mxrb/ruby_app/known_startup_actions.rb +115 -0
  536. data/lib/mxrb/ruby_app/legacy_service_source_migration.rb +142 -0
  537. data/lib/mxrb/ruby_app/legacy_widget_source_migration.rb +64 -0
  538. data/lib/mxrb/ruby_app/manifest.rb +41 -0
  539. data/lib/mxrb/ruby_app/member_identity.rb +135 -0
  540. data/lib/mxrb/ruby_app/metamodel.rb +197 -0
  541. data/lib/mxrb/ruby_app/module_security.rb +51 -0
  542. data/lib/mxrb/ruby_app/native_bridge.rb +96 -0
  543. data/lib/mxrb/ruby_app/native_edit_patch.rb +69 -0
  544. data/lib/mxrb/ruby_app/page.rb +321 -0
  545. data/lib/mxrb/ruby_app/page_data_sources.rb +184 -0
  546. data/lib/mxrb/ruby_app/page_design_identity.rb +182 -0
  547. data/lib/mxrb/ruby_app/page_edit_bindings.rb +168 -0
  548. data/lib/mxrb/ruby_app/page_edit_contracts.rb +144 -0
  549. data/lib/mxrb/ruby_app/page_edit_properties.rb +93 -0
  550. data/lib/mxrb/ruby_app/page_edit_texts.rb +104 -0
  551. data/lib/mxrb/ruby_app/page_edit_translations.rb +67 -0
  552. data/lib/mxrb/ruby_app/page_edits.rb +662 -0
  553. data/lib/mxrb/ruby_app/page_widget_renames.rb +40 -0
  554. data/lib/mxrb/ruby_app/pluggable_context.rb +149 -0
  555. data/lib/mxrb/ruby_app/pluggable_properties.rb +715 -0
  556. data/lib/mxrb/ruby_app/pluggable_schemas.rb +28 -0
  557. data/lib/mxrb/ruby_app/portability_report.rb +127 -0
  558. data/lib/mxrb/ruby_app/presentation.rb +137 -0
  559. data/lib/mxrb/ruby_app/presentation_contracts.rb +132 -0
  560. data/lib/mxrb/ruby_app/presentation_edits.rb +179 -0
  561. data/lib/mxrb/ruby_app/presentation_exporter.rb +201 -0
  562. data/lib/mxrb/ruby_app/presentation_projection.rb +62 -0
  563. data/lib/mxrb/ruby_app/presentation_references.rb +53 -0
  564. data/lib/mxrb/ruby_app/preset.rb +37 -1
  565. data/lib/mxrb/ruby_app/project_javascript_actions.rb +78 -0
  566. data/lib/mxrb/ruby_app/project_security.rb +200 -0
  567. data/lib/mxrb/ruby_app/project_widget_bundle.rb +74 -0
  568. data/lib/mxrb/ruby_app/rack_adapter.rb +73 -0
  569. data/lib/mxrb/ruby_app/record.rb +388 -0
  570. data/lib/mxrb/ruby_app/record_identity.rb +209 -0
  571. data/lib/mxrb/ruby_app/record_inheritance.rb +65 -0
  572. data/lib/mxrb/ruby_app/record_validation.rb +175 -0
  573. data/lib/mxrb/ruby_app/registry.rb +149 -0
  574. data/lib/mxrb/ruby_app/regular_expression.rb +58 -0
  575. data/lib/mxrb/ruby_app/runtime_catalog.rb +106 -0
  576. data/lib/mxrb/ruby_app/runtime_project.rb +163 -0
  577. data/lib/mxrb/ruby_app/schedule_builder.rb +134 -0
  578. data/lib/mxrb/ruby_app/scheduled_event.rb +59 -0
  579. data/lib/mxrb/ruby_app/security_builders.rb +97 -0
  580. data/lib/mxrb/ruby_app/security_identity.rb +182 -0
  581. data/lib/mxrb/ruby_app/server.rb +436 -0
  582. data/lib/mxrb/ruby_app/service.rb +114 -0
  583. data/lib/mxrb/ruby_app/session_manager.rb +79 -16
  584. data/lib/mxrb/ruby_app/sidecar_services.rb +92 -0
  585. data/lib/mxrb/ruby_app/source_identity.rb +401 -0
  586. data/lib/mxrb/ruby_app/source_reloader.rb +38 -0
  587. data/lib/mxrb/ruby_app/supervisor.rb +139 -0
  588. data/lib/mxrb/ruby_app/synchronizer/document_synchronization.rb +281 -0
  589. data/lib/mxrb/ruby_app/synchronizer/entity_synchronization.rb +239 -0
  590. data/lib/mxrb/ruby_app/synchronizer.rb +127 -0
  591. data/lib/mxrb/ruby_app/thumbnail.rb +54 -0
  592. data/lib/mxrb/ruby_app/widget_styles.rb +73 -0
  593. data/lib/mxrb/ruby_app/widget_support.rb +76 -0
  594. data/lib/mxrb/ruby_app.rb +101 -1307
  595. data/lib/mxrb/runtime/access_control.rb +54 -101
  596. data/lib/mxrb/runtime/calendar_functions.rb +142 -0
  597. data/lib/mxrb/runtime/calendar_ranges.rb +93 -0
  598. data/lib/mxrb/runtime/client_drafts.rb +167 -0
  599. data/lib/mxrb/runtime/clipboard.rb +9 -2
  600. data/lib/mxrb/runtime/constants.rb +66 -0
  601. data/lib/mxrb/runtime/database_workspace.rb +282 -43
  602. data/lib/mxrb/runtime/date_formatting.rb +120 -0
  603. data/lib/mxrb/runtime/date_parse_fields.rb +144 -0
  604. data/lib/mxrb/runtime/date_parse_matchers.rb +39 -0
  605. data/lib/mxrb/runtime/date_parsing.rb +102 -0
  606. data/lib/mxrb/runtime/decimal_formatting.rb +56 -0
  607. data/lib/mxrb/runtime/decimal_parsing.rb +134 -0
  608. data/lib/mxrb/runtime/decimal_values.rb +121 -0
  609. data/lib/mxrb/runtime/docker_executor.rb +15 -14
  610. data/lib/mxrb/runtime/docker_workspace.rb +8 -8
  611. data/lib/mxrb/runtime/enumerations.rb +135 -0
  612. data/lib/mxrb/runtime/executor.rb +25 -25
  613. data/lib/mxrb/runtime/expression_functions.rb +83 -0
  614. data/lib/mxrb/runtime/import_mapping.rb +191 -0
  615. data/lib/mxrb/runtime/java_action_context.rb +224 -0
  616. data/lib/mxrb/runtime/java_http_exchange.rb +33 -0
  617. data/lib/mxrb/runtime/java_regex.rb +244 -0
  618. data/lib/mxrb/runtime/java_sidecar.rb +449 -0
  619. data/lib/mxrb/runtime/languages.rb +85 -0
  620. data/lib/mxrb/runtime/lifecycle.rb +21 -0
  621. data/lib/mxrb/runtime/native.rb +977 -155
  622. data/lib/mxrb/runtime/oql_case_grammar.rb +56 -0
  623. data/lib/mxrb/runtime/oql_datasets.rb +96 -0
  624. data/lib/mxrb/runtime/oql_expression_grammar.rb +128 -0
  625. data/lib/mxrb/runtime/oql_function_grammar.rb +114 -0
  626. data/lib/mxrb/runtime/oql_join_sources.rb +125 -0
  627. data/lib/mxrb/runtime/oql_membership.rb +35 -0
  628. data/lib/mxrb/runtime/oql_module_query.rb +88 -0
  629. data/lib/mxrb/runtime/oql_nesting.rb +51 -0
  630. data/lib/mxrb/runtime/oql_parameters.rb +40 -0
  631. data/lib/mxrb/runtime/oql_predicate.rb +322 -0
  632. data/lib/mxrb/runtime/oql_projection_view.rb +90 -0
  633. data/lib/mxrb/runtime/oql_query_shape.rb +34 -0
  634. data/lib/mxrb/runtime/oql_relational_query.rb +137 -0
  635. data/lib/mxrb/runtime/oql_relational_view.rb +100 -0
  636. data/lib/mxrb/runtime/oql_relations.rb +185 -0
  637. data/lib/mxrb/runtime/oql_scalar.rb +121 -0
  638. data/lib/mxrb/runtime/oql_selection.rb +127 -0
  639. data/lib/mxrb/runtime/oql_selection_terms.rb +50 -0
  640. data/lib/mxrb/runtime/oql_subquery.rb +40 -0
  641. data/lib/mxrb/runtime/oql_subquery_grammar.rb +68 -0
  642. data/lib/mxrb/runtime/oql_table.rb +117 -0
  643. data/lib/mxrb/runtime/oql_table_query.rb +116 -0
  644. data/lib/mxrb/runtime/oql_union.rb +31 -0
  645. data/lib/mxrb/runtime/oql_view_query.rb +62 -0
  646. data/lib/mxrb/runtime/oql_views.rb +107 -0
  647. data/lib/mxrb/runtime/password_policy.rb +59 -0
  648. data/lib/mxrb/runtime/scheduler.rb +61 -10
  649. data/lib/mxrb/runtime/schema_migrator.rb +133 -19
  650. data/lib/mxrb/runtime/sort_order.rb +51 -0
  651. data/lib/mxrb/runtime/sort_path.rb +44 -0
  652. data/lib/mxrb/runtime/sqlite_store.rb +352 -39
  653. data/lib/mxrb/runtime/string_functions.rb +42 -0
  654. data/lib/mxrb/runtime/system_domain.rb +140 -0
  655. data/lib/mxrb/runtime/system_metamodel.rb +48 -0
  656. data/lib/mxrb/runtime/system_metamodel_10.24.0.json +5111 -0
  657. data/lib/mxrb/runtime/system_metamodel_11.12.1.json +5790 -0
  658. data/lib/mxrb/runtime/system_sign_in.rb +53 -0
  659. data/lib/mxrb/runtime/time_zones.rb +85 -0
  660. data/lib/mxrb/runtime/toolchain.rb +16 -16
  661. data/lib/mxrb/runtime/xpath.rb +414 -0
  662. data/lib/mxrb/runtime/xpath_dates.rb +101 -0
  663. data/lib/mxrb/runtime/xpath_functions.rb +82 -0
  664. data/lib/mxrb/scaffold/cli.rb +14 -13
  665. data/lib/mxrb/scaffold/generator.rb +29 -7
  666. data/lib/mxrb/scaffold/help.rb +4 -0
  667. data/lib/mxrb/scaffold/recipes.rb +43 -4
  668. data/lib/mxrb/scaffold/templates.rb +101 -19
  669. data/lib/mxrb/schema/tables.rb +13 -13
  670. data/lib/mxrb/semantic/analyzer.rb +11 -10
  671. data/lib/mxrb/semantic/batch_plan.rb +8 -8
  672. data/lib/mxrb/semantic/domain_mutator.rb +149 -85
  673. data/lib/mxrb/semantic/extractor.rb +74 -75
  674. data/lib/mxrb/semantic/index.rb +86 -88
  675. data/lib/mxrb/semantic/inliner.rb +60 -60
  676. data/lib/mxrb/semantic/mover.rb +7 -7
  677. data/lib/mxrb/semantic/remover.rb +1 -1
  678. data/lib/mxrb/semantic/renamer.rb +23 -22
  679. data/lib/mxrb/settings/model.rb +330 -0
  680. data/lib/mxrb/settings/mpr_codec.rb +157 -0
  681. data/lib/mxrb/settings/source_emitter.rb +105 -0
  682. data/lib/mxrb/settings/value_contracts.rb +141 -0
  683. data/lib/mxrb/stored_fields.rb +86 -0
  684. data/lib/mxrb/studio/artifacts.rb +67 -0
  685. data/lib/mxrb/studio/backend.rb +36 -0
  686. data/lib/mxrb/studio/catalog.rb +249 -0
  687. data/lib/mxrb/studio/data_connections.rb +77 -0
  688. data/lib/mxrb/studio/data_explorer.rb +288 -0
  689. data/lib/mxrb/studio/documents.rb +260 -0
  690. data/lib/mxrb/studio/files.rb +321 -0
  691. data/lib/mxrb/studio/history.rb +181 -0
  692. data/lib/mxrb/studio/isolated.rb +123 -0
  693. data/lib/mxrb/studio/model_operations.rb +304 -0
  694. data/lib/mxrb/studio/parity.json +1019 -0
  695. data/lib/mxrb/studio/parity.rb +75 -0
  696. data/lib/mxrb/studio/preview_comparison.rb +106 -0
  697. data/lib/mxrb/studio/preview_sandbox.rb +142 -0
  698. data/lib/mxrb/studio/preview_sources.rb +80 -0
  699. data/lib/mxrb/studio/preview_worker.rb +23 -0
  700. data/lib/mxrb/studio/protocol.rb +116 -0
  701. data/lib/mxrb/studio/request_context.rb +141 -0
  702. data/lib/mxrb/studio/ruby_document.rb +252 -0
  703. data/lib/mxrb/studio/ruby_document_aggregates.rb +167 -0
  704. data/lib/mxrb/studio/ruby_project.rb +214 -0
  705. data/lib/mxrb/studio/server.rb +145 -0
  706. data/lib/mxrb/studio/service.rb +525 -0
  707. data/lib/mxrb/studio/snapshot.rb +163 -0
  708. data/lib/mxrb/studio/structure.rb +381 -0
  709. data/lib/mxrb/studio/sync.rb +1070 -0
  710. data/lib/mxrb/studio/sync_preview.rb +108 -0
  711. data/lib/mxrb/studio/task_configurations.rb +118 -0
  712. data/lib/mxrb/studio/text_merge.rb +185 -0
  713. data/lib/mxrb/studio/write_lock.rb +87 -0
  714. data/lib/mxrb/studio.rb +4 -0
  715. data/lib/mxrb/studio_compatibility/loss_audit.rb +136 -0
  716. data/lib/mxrb/studio_compatibility.rb +401 -0
  717. data/lib/mxrb/studio_schema_catalog.rb +375 -0
  718. data/lib/mxrb/system_texts.rb +322 -0
  719. data/lib/mxrb/version.rb +1 -1
  720. data/lib/mxrb/web_ui/assets/chunk-2GNONHZU.js +1 -0
  721. data/lib/mxrb/web_ui/assets/chunk-2P46CC5S.js +1 -0
  722. data/lib/mxrb/web_ui/assets/chunk-2SHOE7BM.js +200 -0
  723. data/lib/mxrb/web_ui/assets/chunk-32QEQT5X.js +1 -0
  724. data/lib/mxrb/web_ui/assets/{chunk-5VM5RSS4-ZNzvKenW.js → chunk-34FZNJLO.js} +2 -2
  725. data/lib/mxrb/web_ui/assets/chunk-35N2E2ST.js +88 -0
  726. data/lib/mxrb/web_ui/assets/chunk-3EBRCLBH.js +1 -0
  727. data/lib/mxrb/web_ui/assets/chunk-3F3S4FN6.js +1 -0
  728. data/lib/mxrb/web_ui/assets/chunk-3PZDNKEG.js +1 -0
  729. data/lib/mxrb/web_ui/assets/chunk-3UGOMMAO.js +3 -0
  730. data/lib/mxrb/web_ui/assets/chunk-4NYRXXLN.js +106 -0
  731. data/lib/mxrb/web_ui/assets/chunk-4R2TVXEB.js +1 -0
  732. data/lib/mxrb/web_ui/assets/chunk-4SGPCOHB.js +1 -0
  733. data/lib/mxrb/web_ui/assets/chunk-5BHXSKDK.js +292 -0
  734. data/lib/mxrb/web_ui/assets/chunk-5EVG4O6T.js +1 -0
  735. data/lib/mxrb/web_ui/assets/chunk-5G5NQYC6.js +34 -0
  736. data/lib/mxrb/web_ui/assets/chunk-5HFJOAW4.js +1 -0
  737. data/lib/mxrb/web_ui/assets/chunk-5TNNO4YZ.js +1 -0
  738. data/lib/mxrb/web_ui/assets/chunk-63IIJIEV.js +1 -0
  739. data/lib/mxrb/web_ui/assets/chunk-66OX7QNZ.js +1 -0
  740. data/lib/mxrb/web_ui/assets/chunk-6B4DUFPC.js +1 -0
  741. data/lib/mxrb/web_ui/assets/chunk-6HSV3Q4G.js +1 -0
  742. data/lib/mxrb/web_ui/assets/chunk-6KV64GIT.js +98 -0
  743. data/lib/mxrb/web_ui/assets/chunk-6ZPGWQKV.js +1 -0
  744. data/lib/mxrb/web_ui/assets/chunk-72H3YDZV.js +1 -0
  745. data/lib/mxrb/web_ui/assets/chunk-77A6STIF.js +66 -0
  746. data/lib/mxrb/web_ui/assets/chunk-7B4ZTT6G.js +1 -0
  747. data/lib/mxrb/web_ui/assets/chunk-7E4ON25K.js +7 -0
  748. data/lib/mxrb/web_ui/assets/chunk-7GXBVQXL.js +1 -0
  749. data/lib/mxrb/web_ui/assets/chunk-7ONEZDBB.js +291 -0
  750. data/lib/mxrb/web_ui/assets/chunk-7UWVQTN5.js +1 -0
  751. data/lib/mxrb/web_ui/assets/chunk-AFDXKSZJ.js +2 -0
  752. data/lib/mxrb/web_ui/assets/chunk-BUBLNEPX.js +1 -0
  753. data/lib/mxrb/web_ui/assets/chunk-CBAMBU3T.js +30 -0
  754. data/lib/mxrb/web_ui/assets/chunk-CYCQ4VLZ.js +1 -0
  755. data/lib/mxrb/web_ui/assets/chunk-CYUZI6LQ.js +213 -0
  756. data/lib/mxrb/web_ui/assets/chunk-D246GO7Q.js +1 -0
  757. data/lib/mxrb/web_ui/assets/chunk-DHQUYWHD.js +1 -0
  758. data/lib/mxrb/web_ui/assets/chunk-E2RCGYXT.js +1 -0
  759. data/lib/mxrb/web_ui/assets/chunk-E5A22KZX.js +70 -0
  760. data/lib/mxrb/web_ui/assets/chunk-E64VJRVG.js +1 -0
  761. data/lib/mxrb/web_ui/assets/chunk-EBM2OVIK.js +120 -0
  762. data/lib/mxrb/web_ui/assets/chunk-ELCFKSFF.js +41 -0
  763. data/lib/mxrb/web_ui/assets/chunk-EQTVJ2VI.js +36 -0
  764. data/lib/mxrb/web_ui/assets/chunk-FAGUL7T6.js +1 -0
  765. data/lib/mxrb/web_ui/assets/chunk-FHZHQJRK.js +38 -0
  766. data/lib/mxrb/web_ui/assets/chunk-FUKAUTTF.js +1 -0
  767. data/lib/mxrb/web_ui/assets/chunk-GMUATS3X.js +1 -0
  768. data/lib/mxrb/web_ui/assets/chunk-GVPVJSW7.js +1 -0
  769. data/lib/mxrb/web_ui/assets/chunk-H3FJWUNC.js +1 -0
  770. data/lib/mxrb/web_ui/assets/chunk-H4QZ3SLG.js +257 -0
  771. data/lib/mxrb/web_ui/assets/chunk-H57W7YI5.js +62 -0
  772. data/lib/mxrb/web_ui/assets/chunk-H6EH3XA3.js +1 -0
  773. data/lib/mxrb/web_ui/assets/chunk-HB5VHJFM.js +1 -0
  774. data/lib/mxrb/web_ui/assets/chunk-HCKYS7KE.js +139 -0
  775. data/lib/mxrb/web_ui/assets/chunk-HQBVNVYC.js +39 -0
  776. data/lib/mxrb/web_ui/assets/chunk-HSA6P35M.js +1 -0
  777. data/lib/mxrb/web_ui/assets/chunk-HUYRUGAK.js +135 -0
  778. data/lib/mxrb/web_ui/assets/chunk-I5PKQWBH.js +140 -0
  779. data/lib/mxrb/web_ui/assets/chunk-ID2OERHW.js +1 -0
  780. data/lib/mxrb/web_ui/assets/chunk-IDAIL53S.js +1 -0
  781. data/lib/mxrb/web_ui/assets/chunk-IWZI7GPK.js +1 -0
  782. data/lib/mxrb/web_ui/assets/chunk-IXXNJOS3.js +24 -0
  783. data/lib/mxrb/web_ui/assets/chunk-K5MIAU7K.js +1 -0
  784. data/lib/mxrb/web_ui/assets/chunk-K6CUQC6N.js +136 -0
  785. data/lib/mxrb/web_ui/assets/chunk-KE3NT6QN.js +0 -0
  786. data/lib/mxrb/web_ui/assets/chunk-KI74YC4J.js +72 -0
  787. data/lib/mxrb/web_ui/assets/chunk-KOJL4E5L.js +370 -0
  788. data/lib/mxrb/web_ui/assets/chunk-KPUKEWCZ.js +169 -0
  789. data/lib/mxrb/web_ui/assets/chunk-LEZ2D244.js +2 -0
  790. data/lib/mxrb/web_ui/assets/chunk-LJWZZILO.js +8 -0
  791. data/lib/mxrb/web_ui/assets/chunk-LOYCYQTD.js +24 -0
  792. data/lib/mxrb/web_ui/assets/chunk-M2T56PG5.js +1 -0
  793. data/lib/mxrb/web_ui/assets/chunk-NI5QL3P3.js +2 -0
  794. data/lib/mxrb/web_ui/assets/chunk-NM5LBQV6.js +1 -0
  795. data/lib/mxrb/web_ui/assets/chunk-NNFAPT7B.js +1 -0
  796. data/lib/mxrb/web_ui/assets/chunk-NTAWMNDE.js +7 -0
  797. data/lib/mxrb/web_ui/assets/chunk-NUGW2EXC.js +27 -0
  798. data/lib/mxrb/web_ui/assets/chunk-OKEQR3I2.js +99 -0
  799. data/lib/mxrb/web_ui/assets/chunk-OUPEVUDM.js +1 -0
  800. data/lib/mxrb/web_ui/assets/chunk-OZ3S3DQH.js +1 -0
  801. data/lib/mxrb/web_ui/assets/chunk-PBU4ZVTM.js +1 -0
  802. data/lib/mxrb/web_ui/assets/chunk-PQQBOQJI.js +217 -0
  803. data/lib/mxrb/web_ui/assets/chunk-Q63GKT34.js +1 -0
  804. data/lib/mxrb/web_ui/assets/chunk-QJHVSIW7.js +1 -0
  805. data/lib/mxrb/web_ui/assets/chunk-QMUNJBVF.js +2 -0
  806. data/lib/mxrb/web_ui/assets/chunk-RKTVQ6NQ.js +1 -0
  807. data/lib/mxrb/web_ui/assets/chunk-RQ6DNNSS.js +1 -0
  808. data/lib/mxrb/web_ui/assets/chunk-RVFML3W7.js +1 -0
  809. data/lib/mxrb/web_ui/assets/chunk-S5TKGUWG.js +3 -0
  810. data/lib/mxrb/web_ui/assets/chunk-SBICTFKY.js +2 -0
  811. data/lib/mxrb/web_ui/assets/chunk-SOO7HOBB.js +89 -0
  812. data/lib/mxrb/web_ui/assets/chunk-SQ2BDVUY.js +1 -0
  813. data/lib/mxrb/web_ui/assets/chunk-T5KDILTJ.js +1 -0
  814. data/lib/mxrb/web_ui/assets/chunk-TJ2A3WRV.js +14 -0
  815. data/lib/mxrb/web_ui/assets/chunk-UITAI6UC.js +78 -0
  816. data/lib/mxrb/web_ui/assets/chunk-UL26XZ4V.js +10 -0
  817. data/lib/mxrb/web_ui/assets/chunk-URTGGQPX.js +1 -0
  818. data/lib/mxrb/web_ui/assets/chunk-UZTYCEEY.js +1 -0
  819. data/lib/mxrb/web_ui/assets/chunk-VFXGN725.js +1 -0
  820. data/lib/mxrb/web_ui/assets/chunk-VJRJYCFG.js +84 -0
  821. data/lib/mxrb/web_ui/assets/chunk-W6DARM7I.js +1 -0
  822. data/lib/mxrb/web_ui/assets/chunk-WLRR7NCQ.js +40 -0
  823. data/lib/mxrb/web_ui/assets/chunk-XIMEPMUW.js +32 -0
  824. data/lib/mxrb/web_ui/assets/chunk-XRM2LTMZ.js +4 -0
  825. data/lib/mxrb/web_ui/assets/chunk-Y5TK5PAP.js +62 -0
  826. data/lib/mxrb/web_ui/assets/chunk-ZH3OWPCF.js +339 -0
  827. data/lib/mxrb/web_ui/assets/chunk-ZIHGYIEK.js +1 -0
  828. data/lib/mxrb/web_ui/assets/domain-STH3BZOK.js +1 -0
  829. data/lib/mxrb/web_ui/assets/domain-VYBHNQGI.css +1 -0
  830. data/lib/mxrb/web_ui/assets/modeler-S2X4PVYN.js +1 -0
  831. data/lib/mxrb/web_ui/assets/modeler-SWHOK6BD.css +1 -0
  832. data/lib/mxrb/web_ui/assets/studio/studio-3F773TXK.css +1 -0
  833. data/lib/mxrb/web_ui/assets/studio/studio-DSAUONWT.js +68 -0
  834. data/lib/mxrb/web_ui/assets/uml-6G73GOJ4.css +1 -0
  835. data/lib/mxrb/web_ui/assets/uml-ENRAUICA.js +18 -0
  836. data/lib/mxrb/web_ui/domain.html +1 -3
  837. data/lib/mxrb/web_ui/modeler.html +1 -4
  838. data/lib/mxrb/web_ui/studio.html +5 -0
  839. data/lib/mxrb/web_ui/uml.html +1 -19
  840. data/lib/mxrb/widget_certification.rb +1 -8
  841. data/lib/mxrb/widget_development.rb +57 -0
  842. data/lib/mxrb/widget_package.rb +18 -12
  843. data/lib/mxrb/writer/data_sources.rb +149 -0
  844. data/lib/mxrb/writer/page_overlay.rb +542 -0
  845. data/lib/mxrb/writer.rb +6143 -1598
  846. data/lib/mxrb.rb +198 -158
  847. data/marketplace/modules/shared-kernel/module.rb +1 -1
  848. metadata +729 -108
  849. data/lib/mxrb/web_ui/assets/abnfDiagram-N423BO3Z-C4JD3cEC.js +0 -1
  850. data/lib/mxrb/web_ui/assets/arc-3Z53kgFp.js +0 -1
  851. data/lib/mxrb/web_ui/assets/architecture-TIHT7OUA-BStBTLea.js +0 -1
  852. data/lib/mxrb/web_ui/assets/architectureDiagram-T3A2C74G-DBwqnM4J.js +0 -36
  853. data/lib/mxrb/web_ui/assets/array-BifhSqXX.js +0 -1
  854. data/lib/mxrb/web_ui/assets/blockDiagram-VBNYF7ZC-DLtuHt-j.js +0 -132
  855. data/lib/mxrb/web_ui/assets/c4Diagram-5PPSVZJV-ConSk_pe.js +0 -10
  856. data/lib/mxrb/web_ui/assets/channel-BhPvD7Dt.js +0 -1
  857. data/lib/mxrb/web_ui/assets/chunk-2GRJ4B5K-D2HpWsf_.js +0 -1
  858. data/lib/mxrb/web_ui/assets/chunk-2Q5K7J3B-C1jixKkw.js +0 -1
  859. data/lib/mxrb/web_ui/assets/chunk-4I5QYGJK-CiIdNwaF.js +0 -1
  860. data/lib/mxrb/web_ui/assets/chunk-5RXB4S5H-Bu_AaEkE.js +0 -231
  861. data/lib/mxrb/web_ui/assets/chunk-6Q2QTUOP-wQkNmt_X.js +0 -88
  862. data/lib/mxrb/web_ui/assets/chunk-7BUUIJ7U-Bb538aSH.js +0 -1
  863. data/lib/mxrb/web_ui/assets/chunk-GF5L2VYU-G8MmiBzU.js +0 -206
  864. data/lib/mxrb/web_ui/assets/chunk-I66GZJ75-CulcrLPh.js +0 -127
  865. data/lib/mxrb/web_ui/assets/chunk-JQJVKLGR-ukjzcdlL.js +0 -156
  866. data/lib/mxrb/web_ui/assets/chunk-JWPE2WC7-DVXcaiue.js +0 -1
  867. data/lib/mxrb/web_ui/assets/chunk-KBJHAD2P-Wm35lYov.js +0 -1
  868. data/lib/mxrb/web_ui/assets/chunk-KEIR6QF5-BICK3FdT.js +0 -161
  869. data/lib/mxrb/web_ui/assets/chunk-NSK5VX7P-D2nYrCY4.js +0 -2
  870. data/lib/mxrb/web_ui/assets/chunk-QR6OTTB3-BrdIzg4Q.js +0 -62
  871. data/lib/mxrb/web_ui/assets/chunk-RYQCIY6F-CCfZMcW6.js +0 -1
  872. data/lib/mxrb/web_ui/assets/chunk-UBXNYLIW-BPEVYsFK.js +0 -1
  873. data/lib/mxrb/web_ui/assets/chunk-W5SLKNZC-2E6OPhA4.js +0 -1
  874. data/lib/mxrb/web_ui/assets/chunk-WRU74C26-CBIvOyWp.js +0 -70
  875. data/lib/mxrb/web_ui/assets/chunk-XXDRQBXY-pH58XAyl.js +0 -1
  876. data/lib/mxrb/web_ui/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +0 -1
  877. data/lib/mxrb/web_ui/assets/classDiagram-JCYQIIEL-xiqo4D89.js +0 -1
  878. data/lib/mxrb/web_ui/assets/classDiagram-v2-OCEON4UE-xiqo4D89.js +0 -1
  879. data/lib/mxrb/web_ui/assets/cose-bilkent-JH36ORCC-t_flPpii.js +0 -1
  880. data/lib/mxrb/web_ui/assets/cynefin-VYW2F7L2-BIqktTEv.js +0 -1
  881. data/lib/mxrb/web_ui/assets/cynefinDiagram-MW4NZA55-C2d--lut.js +0 -62
  882. data/lib/mxrb/web_ui/assets/cytoscape.esm-B-NFISlW.js +0 -321
  883. data/lib/mxrb/web_ui/assets/dagre-Buvkdvvj.js +0 -1
  884. data/lib/mxrb/web_ui/assets/dagre-VZM6K2ZE-CSz2_tb5.js +0 -4
  885. data/lib/mxrb/web_ui/assets/defaultLocale-BFoDCU3G.js +0 -1
  886. data/lib/mxrb/web_ui/assets/diagram-7IWD3JNH-DCt7u7V_.js +0 -30
  887. data/lib/mxrb/web_ui/assets/diagram-B4RE2ZJO-DqZBqkMu.js +0 -3
  888. data/lib/mxrb/web_ui/assets/diagram-LBJQPF4R-ClIYbIsI.js +0 -24
  889. data/lib/mxrb/web_ui/assets/diagram-Q27KOJAE-DFxhvthJ.js +0 -24
  890. data/lib/mxrb/web_ui/assets/diagram-UB23O5K3-BSUTXptv.js +0 -41
  891. data/lib/mxrb/web_ui/assets/dist-D2qOEbeJ.js +0 -1
  892. data/lib/mxrb/web_ui/assets/domain-mGOZ1KCG.css +0 -1
  893. data/lib/mxrb/web_ui/assets/domain-qsjXhy4v.js +0 -1
  894. data/lib/mxrb/web_ui/assets/ebnfDiagram-BXEA7PRR-B5reICEi.js +0 -1
  895. data/lib/mxrb/web_ui/assets/erDiagram-JOGREHBK-Co5Mxn2p.js +0 -85
  896. data/lib/mxrb/web_ui/assets/eventmodeling-45OFAUF4-C1ylhSks.js +0 -1
  897. data/lib/mxrb/web_ui/assets/flowDiagram-UKHOOZJN-CHXaJIaS.js +0 -1
  898. data/lib/mxrb/web_ui/assets/ganttDiagram-PKOTCBZU-DPPPaWaz.js +0 -292
  899. data/lib/mxrb/web_ui/assets/gitGraph-TEB2WS4Q-qS77ywA9.js +0 -1
  900. data/lib/mxrb/web_ui/assets/gitGraphDiagram-DS77QQ5N-DpAv6-BT.js +0 -106
  901. data/lib/mxrb/web_ui/assets/graphlib-DS17s2tU.js +0 -1
  902. data/lib/mxrb/web_ui/assets/info-DKCQHKI2-C9VD1Y4e.js +0 -1
  903. data/lib/mxrb/web_ui/assets/infoDiagram-6WML65LV-Bk1kbcCy.js +0 -2
  904. data/lib/mxrb/web_ui/assets/init-C-OQMol4.js +0 -1
  905. data/lib/mxrb/web_ui/assets/ishikawaDiagram-WSZJBQD7-0gcISBFR.js +0 -70
  906. data/lib/mxrb/web_ui/assets/journeyDiagram-NVQOT4AX-Dt0RQnlh.js +0 -139
  907. data/lib/mxrb/web_ui/assets/jsx-runtime-DV0a5kSb.js +0 -9
  908. data/lib/mxrb/web_ui/assets/kanban-definition-27J2QSJJ-DIPQM7w9.js +0 -89
  909. data/lib/mxrb/web_ui/assets/katex-CXMH3UgJ.js +0 -257
  910. data/lib/mxrb/web_ui/assets/line-C0rYD-tL.js +0 -1
  911. data/lib/mxrb/web_ui/assets/linear-BPPxWorj.js +0 -1
  912. data/lib/mxrb/web_ui/assets/map-BaFkSB1l.js +0 -1
  913. data/lib/mxrb/web_ui/assets/mermaid-parser.core-B_UPzTxa.js +0 -7
  914. data/lib/mxrb/web_ui/assets/mindmap-definition-FAOFIHXS-CdJRSMuk.js +0 -96
  915. data/lib/mxrb/web_ui/assets/modeler-BNqHthwk.css +0 -1
  916. data/lib/mxrb/web_ui/assets/modeler-CQmqflbg.js +0 -1
  917. data/lib/mxrb/web_ui/assets/ordinal-BDEzSJ7C.js +0 -1
  918. data/lib/mxrb/web_ui/assets/packet-7NZHBO7P-CwQ4NSBs.js +0 -1
  919. data/lib/mxrb/web_ui/assets/path-fybaL0A-.js +0 -1
  920. data/lib/mxrb/web_ui/assets/pegDiagram-VL7TDLO6-D40S7ppx.js +0 -1
  921. data/lib/mxrb/web_ui/assets/pie-RZYD4A2V-CJroHMKh.js +0 -1
  922. data/lib/mxrb/web_ui/assets/pieDiagram-7S7Q4E2Y-QB54__BV.js +0 -39
  923. data/lib/mxrb/web_ui/assets/quadrantDiagram-CIZ2JOQS-DBhDS6ag.js +0 -7
  924. data/lib/mxrb/web_ui/assets/radar-I7S5WNFK-DdIUwd2d.js +0 -1
  925. data/lib/mxrb/web_ui/assets/railroad-3IZDKUUU-B1Lw6Xyq.js +0 -1
  926. data/lib/mxrb/web_ui/assets/railroad-abnf-AHOZXSZD-CQgQoeak.js +0 -1
  927. data/lib/mxrb/web_ui/assets/railroad-ebnf-EBAXGLYW-D7qEQ2x8.js +0 -1
  928. data/lib/mxrb/web_ui/assets/railroad-peg-LSFZ7HO6-C005Vxbb.js +0 -1
  929. data/lib/mxrb/web_ui/assets/railroadDiagram-AXF67PYL-BBP2qk7M.js +0 -1
  930. data/lib/mxrb/web_ui/assets/requirementDiagram-LRYGKXZP-D2cLsAoI.js +0 -84
  931. data/lib/mxrb/web_ui/assets/rough.esm-Dy-Kn_BL.js +0 -1
  932. data/lib/mxrb/web_ui/assets/sankeyDiagram-W5VNT64P-Bpi3FiP2.js +0 -40
  933. data/lib/mxrb/web_ui/assets/sequenceDiagram-SI44F4Z6-DCRcDlVe.js +0 -162
  934. data/lib/mxrb/web_ui/assets/sizeCapture-X5ZJPWSS-B0uUizjq.js +0 -1
  935. data/lib/mxrb/web_ui/assets/src-CvxfUak2.js +0 -1
  936. data/lib/mxrb/web_ui/assets/stateDiagram-OKZ733FA-C2GCEoxl.js +0 -1
  937. data/lib/mxrb/web_ui/assets/stateDiagram-v2-UEYNNEHI-D2gWgedh.js +0 -1
  938. data/lib/mxrb/web_ui/assets/swimlanes-SLNWSIFB-CRI9irEW.js +0 -2
  939. data/lib/mxrb/web_ui/assets/swimlanesDiagram-ULZ7WXOC-C5Wb_-hZ.js +0 -8
  940. data/lib/mxrb/web_ui/assets/theme-_mxc7BdY.css +0 -1
  941. data/lib/mxrb/web_ui/assets/timeline-definition-Z64GVDOM-B1-mNg-h.js +0 -120
  942. data/lib/mxrb/web_ui/assets/treeView-QDETBFTQ-7CTvIwKq.js +0 -1
  943. data/lib/mxrb/web_ui/assets/treemap-6X3UGDF4-CtL22pq5.js +0 -1
  944. data/lib/mxrb/web_ui/assets/uml-C3KAFGTq.js +0 -51
  945. data/lib/mxrb/web_ui/assets/uml-Dn-qd01X.css +0 -1
  946. data/lib/mxrb/web_ui/assets/vennDiagram-T6HMQDX7-BzVnUEAy.js +0 -34
  947. data/lib/mxrb/web_ui/assets/wardley-OPB4EBWU-JNi-QNag.js +0 -1
  948. data/lib/mxrb/web_ui/assets/wardleyDiagram-T6FBY63Y-BUwmAQ-B.js +0 -78
  949. data/lib/mxrb/web_ui/assets/xychartDiagram-ELKLHX3M-DEQS8sKp.js +0 -7
@@ -0,0 +1,342 @@
1
+ # Studio backend protocol
2
+
3
+ [Português](../pt-BR/studio-backend.md) · **English** · [Deutsch](../de-DE/studio-backend.md)
4
+
5
+ `mxrb studio serve` runs MXRB as the backend of an IDE: a long-lived process
6
+ that speaks JSON-RPC 2.0 on stdin and stdout. Every IDE function that MXRB
7
+ owns (command catalog and tasks, Ruby project files, conversion, document
8
+ properties, typed model operations with undo and redo, Ruby/Mendix
9
+ synchronization, write coordination, ER and database queries) is one method
10
+ of `Mxrb::Studio::Service`. The IDE renders; MXRB decides and persists.
11
+
12
+ ```sh
13
+ mxrb studio serve [--state-root DIR]
14
+ ```
15
+
16
+ State (Ruby project links, synchronization bases, undo journals) lives under
17
+ `$XDG_STATE_HOME/mxrb/studio` unless `--state-root` is given.
18
+
19
+ ## Framing and session
20
+
21
+ - One JSON-RPC message per line (NDJSON). JSON text never contains a raw
22
+ newline, so a line is always a whole message.
23
+ - Requests run concurrently; replies can arrive in any order.
24
+ - The first request is `initialize`. The client states the protocol versions
25
+ it speaks and, optionally, its workspace roots (used to attach file/line
26
+ locations to errors):
27
+
28
+ ```json
29
+ {"jsonrpc":"2.0","id":1,"method":"initialize",
30
+ "params":{"protocol_versions":[2],"roots":["/work/shop-ruby"]}}
31
+ ```
32
+
33
+ The reply names the protocol (`mxrb-studio` 2), the server version, every
34
+ method, the notifications and the capabilities (cancellation, progress, fork
35
+ isolation, undo, sync, locks). A client that speaks no supported version
36
+ receives error `-32015` with `data.supported`.
37
+
38
+ - `shutdown` waits for running requests and then refuses new ones; the `exit`
39
+ notification ends the process. Closing stdin cancels what is still running.
40
+
41
+ ## Methods
42
+
43
+ | Group | Methods |
44
+ |---|---|
45
+ | Catalog and tasks | `catalog/list`, `catalog/arguments`, `tasks/prepare`, `tasks/run`, `tasks/input`, `tasks/configurations`, `tasks/saveConfiguration`, `tasks/deleteConfiguration` |
46
+ | Files | `files/list`, `files/read`, `files/write`, `files/create`, `files/move`, `files/delete`, `files/worktrees`, `files/worktreeAdd`, `files/worktreeRemove` |
47
+ | Ruby | `ruby/syntax`, `ruby/declarations` |
48
+ | Project | `snapshot/create`, `project/status`, `project/convert`, `project/attach` |
49
+ | Documents | `documents/list`, `documents/read`, `documents/patch`, `documents/ruby` |
50
+ | Model | `model/capabilities`, `model/revision`, `model/preview`, `model/apply`, `model/history`, `model/undo`, `model/redo`, `model/catalog`, `model/domainDiagram` |
51
+ | Data | `data/logical`, `data/connections`, `data/physical`, `data/query`, `data/explain` |
52
+ | Parity | `parity/matrix` |
53
+ | Sync | `sync/link`, `sync/unlink`, `sync/status`, `sync/document`, `sync/run`, `sync/preview` |
54
+ | Locks | `locks/acquire`, `locks/release`, `locks/status` |
55
+
56
+ `catalog/list` returns every public CLI command and scaffold with a typed
57
+ argument schema; `tasks/run` executes one as a child process and streams
58
+ `tasks/started` and `tasks/output` notifications. Cancelling the request
59
+ stops the task (`cancelled: true` in the result).
60
+
61
+ `ruby/syntax` parses with Prism and returns diagnostics with line and column;
62
+ `ruby/declarations` lists the Mendix artifacts a file declares (`entity`,
63
+ `page`, `microflow`, ...) with their qualified names. Neither evaluates Ruby.
64
+
65
+ `documents/ruby` takes `source_model`, `unit_id` (native unit UUID), and optional
66
+ `qualified_name`/BSON `type` identity checks. It returns `state: "ready"`, the
67
+ linked `root`, relative `path` and declaration `line`. Native identity, parsed
68
+ Prism declarations and flow identity metadata resolve the source without
69
+ executing Ruby or guessing filenames. The caller cannot supply a different root.
70
+ All exporter document families are supported, including module documents,
71
+ global settings/system texts/security/navigation, and project/module sources.
72
+ Generic `native_document` and `native_unit` declarations match the exact UUID,
73
+ so preserved extension types are not restricted to a named-document whitelist.
74
+ For aggregates with multiple source files, such as DomainModel, the response is
75
+ `state: "choose"`, `root`, and `files: [{path, line, label}]`. Domain entries
76
+ include the loader-verified index and entity/DTO/OQL view declarations; labels
77
+ use qualified entity names such as `Sudoku.Cell`. The host lets the user choose
78
+ before opening the editor. One file returns `ready`; conflicting duplicate
79
+ declarations remain `unavailable/ambiguous_source`.
80
+
81
+ A supported document without a linked Ruby project returns `missing_project`.
82
+ The host may ask the user to convert, save/snapshot the model, call
83
+ `project/convert`, then repeat the lookup and open its central editor. An absent,
84
+ unsupported, stale or ambiguous mapping returns `unavailable` with `reason` and
85
+ `message`. Existing Ruby workspaces are never regenerated by this read operation.
86
+ Infrastructure units preserved only in baseline JSON (Folder, ModuleGuidMapping,
87
+ ModuleSettings, ProjectConversion) do not fabricate a Ruby source file.
88
+
89
+ `files/write` and `documents/patch` take the revision the client last read
90
+ and fail with a conflict when the file or unit changed in between, so both
91
+ versions are kept.
92
+
93
+ ## Panel operations
94
+
95
+ `tasks/configurations`, `tasks/saveConfiguration` and `tasks/deleteConfiguration`
96
+ keep named task configurations per `project` path in the state root. A saved
97
+ configuration stores a catalog command, its field values and extra arguments;
98
+ placeholders such as `{mpr}` stay unresolved. Unknown commands, fields or choices
99
+ are rejected when saving, and names are unique per project.
100
+
101
+ `files/delete` removes a file, or a folder with `recursive: true`; an optional
102
+ `revision` must still match. Git metadata and the workspace root cannot be
103
+ deleted. `files/worktreeAdd` adds a Git worktree at an absolute path outside the
104
+ current worktree, on a new or existing branch; `files/worktreeRemove` never forces
105
+ removal, so a worktree with local changes is kept. `project/attach` links the
106
+ native project to another worktree of the same Ruby project.
107
+
108
+ `data/connections` lists the database connections of a model with their
109
+ environment, host, port, database, user and running state. `data/physical`,
110
+ `data/query` and `data/explain` require an explicit `connection: {id}` and echo
111
+ the connection in every result; a missing or stale choice fails with
112
+ `connection_required` (-32020). Physical tables and foreign keys come only from
113
+ the PostgreSQL catalog; the logical model never confirms them. Query and explain
114
+ results include the executed SQL, so OQL translations are visible.
115
+
116
+ `parity/matrix` returns the parity matrix in both directions: Studio Pro
117
+ capabilities with their MXRB Ruby APIs/DSL from a reviewed inventory, and MXRB
118
+ operations with the IDE surface that reaches them, derived from the command
119
+ catalog and this protocol. Each capability has per-dimension states; nothing is
120
+ aggregated into a completion figure.
121
+
122
+ ## Progress, cancellation and errors
123
+
124
+ - `$/cancelRequest` with `{"id": ...}` cancels a request.
125
+ - Long operations report `$/progress` notifications
126
+ (`token` = request id, `kind` = `begin`/`report`/`end`, `current`, `total`,
127
+ `detail`). Every MXRB operation that reports terminal progress reports here,
128
+ and each report is a cancellation point.
129
+ - Evaluating a Ruby project and exporting a model run in a forked worker: a
130
+ definition that exits, loops or exhausts memory cannot take the server down,
131
+ and cancelling terminates the worker.
132
+
133
+ Errors are JSON-RPC error objects with `data.kind` and, when known,
134
+ `data.locations` (`file`, `line`, `column`):
135
+
136
+ | Code | `kind` | Meaning |
137
+ |---|---|---|
138
+ | -32700 / -32600 / -32601 / -32602 | `parse_error` / `invalid_request` / `method_not_found` / `invalid_params` | JSON-RPC conditions |
139
+ | -32002 | `not_initialized` | a request before `initialize` |
140
+ | -32800 | `cancelled` | the request was cancelled |
141
+ | -32010 | `conflict` | the target changed since it was read; nothing was overwritten |
142
+ | -32011 | `busy` | another writer holds the model; retry |
143
+ | -32012 | `validation` | the model or operation is invalid |
144
+ | -32013 | `toolchain` | a required tool or system call failed |
145
+ | -32014 | `ruby_source` | Ruby does not parse or evaluate; see `locations` |
146
+ | -32015 | `unsupported_protocol` | no common protocol version |
147
+ | -32603 | `internal_error` | anything else |
148
+
149
+ ## Coordinated writes
150
+
151
+ Every MXRB writer of a model or workspace takes an exclusive `flock` on
152
+ `$XDG_STATE_HOME/mxrb/studio/locks/<sha256 of the canonical path>`. An IDE
153
+ that saves the same model takes the same lock, either directly or through
154
+ `locks/acquire` (the server holds the lock for the lease until
155
+ `locks/release` or the end of the connection). `locks/status` reports whether
156
+ someone holds it. MXRB waits up to 30 seconds and then answers `busy`.
157
+
158
+ ## Undo and redo
159
+
160
+ `model/apply`, `documents/patch` and `sync/run` record a journal entry with the
161
+ exact native bytes of every unit they added, removed or changed. `model/undo`
162
+ restores them byte for byte (IDs, references and layout included);
163
+ `model/redo` reapplies them. An entry is only undone while its units still
164
+ hold the state it left; otherwise the request fails with a conflict and
165
+ nothing is written. The journal keeps the last 100 entries.
166
+
167
+ ## Ruby and Mendix synchronization
168
+
169
+ `sync/preview` accepts `source_model` and optional
170
+ `expected_revisions: {"model": "<sha256>", "ruby": "<sha256>"}`. It resolves
171
+ the linked Ruby root, snapshots the saved native model, and compiles a private
172
+ copy of the Ruby tree. It never calls `sync/link`, updates original `.mxrb/`
173
+ metadata, replaces the Ruby binding, or writes the saved model. Temporary files
174
+ are removed on completion, errors and cancellation.
175
+
176
+ The response always includes `applied: false`,
177
+ `comparison: "saved_model_to_generated_ruby"`, and
178
+ `conflicts: {assessed: false, reason: "no_sync_baseline"}`. A completed preview
179
+ returns `state: "ready"`, `root`, `revisions`, `current_revisions`, `units` and
180
+ `validation: {errors, warnings}`. Each unit has its identity, type, name,
181
+ `action` (added/removed/modified), and element/property `changes` with before
182
+ and after values. Presence flags distinguish missing properties from null;
183
+ binary values use byte length and SHA-256. Changed inputs return `stale`;
184
+ an absent valid Ruby representation returns `missing_project`.
185
+ Relinking during generation also returns `stale`, with
186
+ `reason: "linked_project_changed"` and `current_root`; the new binding is preserved.
187
+
188
+ This compares saved inputs and the actual compilation result, not a three-way
189
+ merge or an apply plan. Compilation can normalize defaults without Ruby edits.
190
+ Name/position reconciliation does not guarantee preserved identity for future
191
+ application, and removed Ruby declarations can survive through native baseline
192
+ metadata. These limits are explicit in `limitations`.
193
+
194
+ Linux Bubblewrap isolation is mandatory: runtime, gems and MXRB libraries are
195
+ read-only; only a private worker directory is writable. The native comparison
196
+ snapshot stays outside that directory. The worker has separate process/network
197
+ namespaces, a temporary HOME and a reduced environment, without personal
198
+ credential folders. Failure to start isolation returns
199
+ `unavailable/isolation_unavailable` with no unrestricted fallback. Source
200
+ symlinks are rejected. Initial limits: 25,000 files/512 MiB of sources,
201
+ 120 seconds of generation, 128 KiB of output. Ruby errors include file/line.
202
+
203
+ `sync/link` records the synchronized base of a model and its Ruby project: a
204
+ copy of the model, a copy of the Ruby files, the Ruby export of the model and
205
+ the model generated from the Ruby. `sync/status` is cheap: changed Ruby files
206
+ with their parse diagnostics and declared artifacts, changed Mendix units and
207
+ unresolved conflicts, summarized as `synced`, `pending`, `conversion_error` or
208
+ `conflict`.
209
+
210
+ `sync/run` synchronizes both directions:
211
+
212
+ 1. **Mendix edits** are the units whose meaning differs from the base model.
213
+ Property order, freshly generated IDs and the order of entities do not
214
+ count as changes.
215
+ 2. **Ruby edits** are the units whose generation from the current Ruby differs
216
+ from the generation of the base Ruby. They are expressed as element
217
+ operations (set a property, insert, remove or reorder a child) in the IDs
218
+ of the model, so applying them keeps IDs, references, layout and every
219
+ untouched property. Deleting the Ruby declaration of a document removes the
220
+ document.
221
+ 3. An element both sides changed is a **conflict**. A run with conflicts
222
+ writes nothing and returns each conflict with the base, Mendix and Ruby
223
+ values (`kind` `element`, `unit` or `file`). Running again with
224
+ `resolutions` (`{"<conflict id>": "ruby" | "mendix"}`) applies everything.
225
+ 4. Ruby edits are applied to the model in one journaled transaction, under the
226
+ write lock, only if the model did not change during the run.
227
+ 5. Mendix edits are merged into the Ruby files with a line-based three-way
228
+ merge: comments and Ruby code outside the changed lines stay as they are. A
229
+ change on one side next to an insertion on the other is not a conflict.
230
+ Files that are overwritten are copied to the base's backup folder first.
231
+ 6. `.mxrb/` (the native baseline and asset manifest) is owned by MXRB and
232
+ always mirrors the synchronized model.
233
+
234
+ Ruby that does not parse or evaluate leaves the model untouched; the run fails
235
+ with `ruby_source` and the locations of the error. The last valid model stays
236
+ as it is and the Ruby changes stay pending.
237
+
238
+ `sync/status` also reports `diverged` units: units where the model generated
239
+ from the synchronized Ruby means something different from the model itself.
240
+ They show which parts of a model the Ruby projection does not capture yet;
241
+ their native content is preserved, not converted.
242
+
243
+ ### Coordination with an open IDE
244
+
245
+ - **Revisions.** `sync/status` and every `sync/run` answer `revisions:
246
+ {model, ruby}` (SHA-256 of the units and of the Ruby files). Passing them
247
+ back as `expected_revisions` makes the run refuse (`conflict`) to apply
248
+ anything but the state that was compared, typically by a dry run the user
249
+ reviewed.
250
+ - **Ruby copy.** A run generates from a private copy of the Ruby files taken
251
+ when it starts. Ruby saved while it runs stays pending; it is never folded
252
+ into the new base. Before writing, under the model lock and then the Ruby
253
+ project lock, every Ruby file the Mendix merge rewrites must still hold the
254
+ copied text, otherwise nothing is written (`conflict`). Merged files are
255
+ replaced atomically.
256
+ - **Leases.** An IDE that keeps its own saves out until it has reloaded the
257
+ model takes `locks/acquire` on the model and passes the `lease` to
258
+ `sync/run`, which then writes under that held lock.
259
+ - **Sandbox.** Generation of the Ruby project runs in the same Bubblewrap
260
+ sandbox as `sync/preview`; without isolation the run fails with
261
+ `toolchain`/`isolation_unavailable`. Only the process that starts the
262
+ server can relax this with `MXRB_STUDIO_SYNC_ISOLATION=process` (for
263
+ example, CI without user namespaces).
264
+ - **Conflicts** found by a run, dry runs included, are kept with the
265
+ revisions they were found at; `sync/status` stops reporting them once either
266
+ side changes.
267
+ - **Artifacts.** `sync/status` lists `documents`: one entry per changed native
268
+ unit (a document, or a module's domain model for entities) with what Ruby
269
+ and Mendix did, its files, diagnostics, conflicts and `state`.
270
+ `sync/document` answers the state of one artifact by `unit_id` or Ruby
271
+ `path`.
272
+ - **Conversion.** `project/convert` with `link: true` links the new Ruby
273
+ project at once, so the first edits on either side are synchronized.
274
+
275
+ Measured on the public Sudoku sample (409 units, 355 Ruby files, Ruby 4.0,
276
+ one core per worker): linking 23 s, Ruby to Mendix 21 s (dominated by
277
+ generating the whole project from Ruby), Mendix to Ruby 5 s, `sync/status`
278
+ 0.2 s.
279
+
280
+ ## Single-shot use
281
+
282
+ `Mxrb::Studio::Backend#call` accepts one request object with a version 1
283
+ `action` name (`catalog`, `file_read`, `model_apply`, ...) and reaches the same
284
+ methods, for clients that start one process per request.
285
+
286
+ ## Studio Pro panels
287
+
288
+ The additional `frontend/modeler/studio.html` entry provides the Ruby App Explorer,
289
+ MXRB Tasks, Global ER, Database and Parity panels in React. Build it with `npm run build:studio` from
290
+ `frontend/modeler`; the compiled entry and local assets ship in the gem. Node is
291
+ only a build dependency. This separate build preserves the existing modeler bundles.
292
+
293
+ Panels speak the protocol above through `chrome.webview.postMessage` and its
294
+ `message` event. The desktop host owns the Ruby process, negotiates protocol 2 and
295
+ maps page request IDs to its shared connection. It additionally handles
296
+ `host/context` and `host/contextChanged`: project `root`, `source_model`, optional
297
+ `ruby_root` and `theme` CSS variables named `--studio-*`. These two messages belong
298
+ to the desktop adapter, not `Mxrb::Studio::Service`. Panels cannot shut down the
299
+ shared process. When the context advertises `capabilities.native_dialogs`, panels
300
+ ask the host for Rename/Warning dialogs with `host/dialog`
301
+ (`{kind: "input"|"confirm", title, message, label, value, buttons}` →
302
+ `{button, value}`); otherwise they show an equivalent in-page dialog.
303
+
304
+ Before each task, the panel resolves `project/status` if the host did not supply
305
+ `ruby_root`. A conversion or link made in another dock therefore supplies the
306
+ working directory and `{ruby}` substitution immediately. `{root}` follows that
307
+ working directory; `{mpr}` continues to identify the native model. Without a
308
+ linked representation, native/global commands can use the source directory, but
309
+ Ruby-context commands ask for conversion or linking first. Project changes and
310
+ Stop cancel pending resolution as well as task execution.
311
+
312
+ Run `npm run test:studio` in `frontend/modeler` for the workspace/cancellation
313
+ regressions. `studio_tasks_linked_flow.json` adds a Tasks-only browser scenario:
314
+ its host supplies `panel: "tasks"`, `root` and `source_model` (no `ruby_root`) for
315
+ a synthetic model whose linked Ruby project contains module `Shop`. It runs the
316
+ real `project inspect` command and checks the converted project output.
317
+
318
+ The Explorer supports project link lookup/conversion, lazy folder reads,
319
+ virtualized rows, add file/folder, rename and delete through Studio Pro dialogs
320
+ supplied by the host (`host/dialog`), and Git worktrees. Tasks group the real
321
+ catalog like IntelliJ's Maven window, keep saved tasks per project and show output
322
+ with Stop, Clear and Scroll lock. The Global ER shows the logical model of all
323
+ modules on one canvas; the Database panel shows physical schema, SQL/OQL results
324
+ and plans only for an explicitly chosen connection; the Parity panel shows
325
+ `parity/matrix`. Browser scenarios under
326
+ `spec/fixtures/frontend_browser/studio_*_flow.json` exercise the panels with
327
+ synthetic files, a public sample app and, for `studio_database_live_flow.json`,
328
+ a running MXRB database workspace; they do not establish full IDE parity.
329
+
330
+ The host can publish a numeric `project_revision` in `host/contextChanged` when a
331
+ conversion or link change keeps the same `source_model`. The Explorer then queries
332
+ `project/status` again and drops the previous selection and listing, and Tasks
333
+ cancels the pending operation. The native host uses this revision to invalidate
334
+ the context instead of caching `ruby_root` as a permanent link.
335
+ `studio_project_revision_flow.json` checks that transition and the cancellation of
336
+ late responses against the synthetic host served by
337
+ `node frontend/modeler/test/studio/contextRevisionServer.mjs 4587`. The same server
338
+ answers `/studio.html?fixture=sync` for the `studio_sync_preview*_flow.json`
339
+ scenarios. The synthetic hosts are TypeScript sources in
340
+ `spec/fixtures/frontend_browser`, served with their types stripped.
341
+
342
+ [Back to the documentation index](README.md)
@@ -2,7 +2,7 @@
2
2
 
3
3
  [Português](../pt-BR/validation-matrix.md) · **English** · [Deutsch](../de-DE/validation-matrix.md)
4
4
 
5
- Last updated: 2026-08-11.
5
+ Last updated: 2026-09-28.
6
6
 
7
7
  The matrix exercises this pipeline using only MXRB:
8
8
 
@@ -27,23 +27,62 @@ are never modified.
27
27
  | `mendixlabs/TreeViewAndGridView` (`TreeviewDemo`) | 5.21.4 | v1 | 176 | pass |
28
28
  | `mendixlabs/TreeViewAndGridView` (`GridViewPlayground`) | 6.10.8 | v1 | 122 | pass |
29
29
 
30
- On August 11, `script/validate_matrix` repeated the matrix with **6/6 passes**:
31
- 1,506 units, 1,734 artifacts, and 3,388 references in 16.381 seconds.
30
+ On September 13, `script/validate_matrix` repeated the matrix with **6/6
31
+ passes**: 1,506 units, 1,734 artifacts, and 3,388 references in 19.278 seconds.
32
32
 
33
33
  ## Additional local inventory
34
34
 
35
35
  `script/certify_mprs --cycles 2 --repair-hashes` certified seven additional
36
36
  MPRs through 14 consecutive round trips: **7/7 passes**, 2,799 units, 3,238
37
- artifacts, and 4,819 references. The set covers LearnNow, SLATaskApp,
37
+ artifacts, and 4,819 references in 100.544 seconds. The set covers LearnNow, SLATaskApp,
38
38
  SLATaskAppNative, MyFirstModule, CourseManager, RubyBridgeSandbox, and
39
39
  VetClinic.
40
40
 
41
+ SLATaskAppNative shares `mprcontents/` with SLATaskApp, and the library refuses to
42
+ open it in place. The gate certifies it from a temporary copy whose `mprname`
43
+ names it, and reports the owner as `contents_shared_with`.
44
+
41
45
  SLATaskApp had one stale content hash and RubyBridgeSandbox had two. The gate
42
46
  repaired only `Unit.ContentsHash` in temporary copies, recorded the changed
43
47
  UUIDs, and preserved the original BSON bytes. Source files were not modified.
44
48
  The second round trip also exposed and fixed native-widget types deserialized
45
49
  as strings.
46
50
 
51
+ The September 13 recertification found and fixed two additional losses: the DSL
52
+ added `System.Administrator` to an exact native role list that did not contain
53
+ it, and the Studio 11 settings codec did not yet recognize
54
+ `Settings$ConstantValue`, `Settings$SharedValue`, and `Settings$PrivateValue`.
55
+ Focused regressions cover both cases; private values are not published.
56
+
57
+ On September 25, `script/validate_ruby_app --repair-hashes` certified the full
58
+ 13-project corpus through Ruby-app export, a zero-violation public-source audit,
59
+ compilation with the editable Mendix sidecar detached, MPR validation, and an
60
+ identical semantic comparison: **13/13 passed**. Hash repair remains explicit
61
+ and temporary: one stale hash in SLATaskApp and two in RubyBridgeSandbox were
62
+ repaired in copies, while the other eleven inputs required no repair.
63
+
64
+ This gate also validates SLATaskAppNative from a temporary copy whose `mprname`
65
+ names it, because its `mprcontents/` belongs to SLATaskApp, and reports the owner
66
+ as `contents_shared_with`.
67
+
68
+ Since November 4, the gate rebuilds each project twice and requires an identical
69
+ result both times. The first rebuild removes the Mendix sidecar and starts from
70
+ the runtime copy of the original MPR, so it shows that the public package compiles
71
+ without the sidecar. The second removes that copy and starts from the sidecar, so
72
+ it shows that the sidecar's Ruby and its preserved native units rebuild the model.
73
+ 13/13 projects pass both. Neither involves edits: compiling applies edits to
74
+ `app/pages/*.rb` to the page documents, as
75
+ [portability](portabilidade-ruby-typescript.md#editing-exported-pages) describes.
76
+
77
+ This gate exposed and fixed public Ruby leaks that the structural round-trip did
78
+ not detect. Database Connector mappings now use ordered parameter blocks;
79
+ schema-supported pluggable scalars, actions, XPath sources, and object lists use
80
+ editable semantic builders, while any still-unsupported nested value stays
81
+ losslessly authoritative in the private baseline; and compound design
82
+ properties are emitted as nested semantic declarations with their BSON
83
+ identities restored privately. External UUID-shaped widget configuration is no
84
+ longer misclassified as a Mendix unit identity.
85
+
47
86
  The comparator used for this matrix includes:
48
87
 
49
88
  - project metadata and format;
@@ -52,7 +91,26 @@ The comparator used for this matrix includes:
52
91
  - entities, native attribute metadata, access rules and associations;
53
92
  - pages and their complete deep widget/layout trees, events and data sources;
54
93
  - menus;
55
- - microflow and nanoflow parameters, roles, objects, actions and edges.
94
+ - pages, layouts, page templates, building blocks and snippets, as stored;
95
+ - microflow and nanoflow parameters, roles, objects, actions and edges;
96
+ - every other unit as stored, named by its containers, its name and its type.
97
+
98
+ Stored documents are compared without their element identities, empty or false
99
+ fields, null pointers, and the action or text template a widget value stores when its
100
+ property is not of that kind. Four forms that generators wrote count as what Studio
101
+ Pro stores, because a rebuild writes them that way: a `Class` copying the appearance
102
+ beside it, a sort item without `SortOrder` as ascending whatever its `SortDirection`
103
+ says, because MxBuild ignores that field, a page without the `Autofocus` the schema
104
+ defaults to `Off`, and the default marker on six collections. A change to a page appears
105
+ twice, in its summary and as stored. The navigation document is compared as stored too.
106
+
107
+ A rebuild for the same Mendix version writes only the fields its project stores on
108
+ each element type, under the collection marker the project always uses for that field.
109
+ These are learned from the exported units and the version's Studio Pro template, since
110
+ Studio Pro stores every property a version has. For these versions, stored documents
111
+ are compared with their empty and false fields, so an added or dropped field shows up.
112
+ Mendix 10.24.0 and 11.12.1 are exempt from both: the writer follows their schemas, and
113
+ generators may leave out fields they have.
56
114
 
57
115
  UUIDs and visual canvas coordinates are normalized because regeneration may
58
116
  legitimately assign new identifiers or positions. Mendix names remain canonical
@@ -125,54 +183,76 @@ MxBuild 11.12.1:
125
183
  - current regression MDA: 11,941,148 bytes, SHA-256
126
184
  `fc4fb7a2ea2b4ad7cdb0fcd3296a5dbb5c4d148371aad997ab0032d2c5c0cf33`.
127
185
 
186
+ The `spec/fixtures/navigation_profiles/project.rb` witness covers translated
187
+ login titles, home/not-found targets, role homes, and partial-sync behavior.
188
+ `script/frontend_acceptance` accepted both source and rebuilt projects with
189
+ MxBuild 11.12.1: zero errors, no structural differences, and
190
+ `frontend_ready: true`.
191
+
192
+ The `spec/fixtures/published_rest/project.rb` witness covers published REST
193
+ resources, operations, parameters, and inferred JSON/export mappings. Two
194
+ cycles retained identities and semantics; `script/frontend_acceptance`
195
+ accepted source and rebuilt projects with MxBuild 11.12.1, zero errors, no
196
+ structural differences, and `frontend_ready: true`.
197
+
198
+ The `spec/fixtures/consumed_services/project.rb` witness covers a bodyless REST
199
+ call with parameters, headers, timeout, and HTTP response handling plus a
200
+ consumed OData service with valid CSDL v4 and a constant-based URL. Two cycles
201
+ retained identities and semantics without opaque fallback;
202
+ `script/frontend_acceptance` accepted source and rebuilt projects with MxBuild
203
+ 11.12.1, zero errors, no structural differences, and `frontend_ready: true`.
204
+
205
+ The `spec/fixtures/message_xml/project.rb` witness covers message definitions,
206
+ derived import/export mappings with `XmlPath`, and microflow actions that
207
+ import and export XML. Two cycles retained identities and semantics without
208
+ opaque fallback; `script/frontend_acceptance` accepted source and rebuilt
209
+ projects with MxBuild 11.12.1, zero errors, no structural differences, and
210
+ `frontend_ready: true`.
211
+
212
+ The `spec/fixtures/published_odata/project.rb` witness covers a read-only OData
213
+ 4 service with an allowed role, Basic authentication, an entity type, ID,
214
+ attributes, and a paged entity set. Two cycles retained identities and
215
+ semantics without opaque fallback; `script/frontend_acceptance` accepted source
216
+ and rebuilt projects with MxBuild 11.12.1, zero errors, no structural
217
+ differences, and `frontend_ready: true`.
218
+
128
219
  This validation exposed and drove the fixes listed above. The six-project MXRB
129
220
  matrix was rerun from fresh targets after the fixes and all six v1/v2
130
221
  round-trips passed again.
131
222
 
132
223
  ## Official Mendix 5–9 validation
133
224
 
134
- The other v1 fixtures were also opened by official MxBuild binaries. Original
135
- and rebuilt projects were tested in separate disposable project directories
136
- with identical resources:
225
+ On 2026-11-18, the Windows Legacy MxBuild oracle produced executable packages
226
+ for both original and rebuilt projects in all five legacy fixtures:
137
227
 
138
228
  | Fixture | Official tool | Original vs rebuilt result |
139
229
  |---|---|---|
140
- | FirstMedix App 9.6.1 | MxBuild 9.6.1.29396 | exact diagnostic parity: 884 errors and 12 warnings; both stop on the same missing theme/widget resources |
141
- | QueryApiBlogPost 7.17.0-rc5 | MxBuild 7.17.0 final with `--loose-version-check` | both pass model consistency and reach Java compilation; both report the same 42 missing-dependency errors |
142
- | ConnectorKitDemo 7.5.0 | MxBuild 7.5.0 | both pass model consistency and reach Java compilation; both report the same 100 missing-dependency errors |
143
- | GridViewPlayground 6.10.8 | MxBuild 6.10.8 | **BUILD SUCCEEDED** for both original and rebuilt |
144
- | TreeviewDemo 5.21.4 | MxBuild 6.10.8 with `--loose-version-check` | exact normalized diagnostic parity: 1 error, 6 warnings and 8 deprecations |
145
-
146
- The rebuilt GridView MDA is 1,501,038 bytes with SHA-256
147
- `b92646e2a2ce47f8808b9c0624b7c68b3f11f962fefa5be28c5600f0cb628416`.
148
- MDA archives are not expected to be byte-identical because generated package
149
- metadata can vary between runs.
150
-
151
- This run found one real MXRB regression in the 7.17 fixture: a reference
152
- implementation microflow was exported without its `Excluded=true` metadata,
153
- so the rebuilt project activated it and reported six unresolved
154
- `UserManagement.Account` references. Flow metadata is now first-class Ruby DSL
155
- and the fixed rebuild reaches the same Java compilation failure as the
156
- original.
157
-
158
- The old 6.x/7.x distributions have an optional NLog configuration that is
159
- incompatible with modern Mono reflection. Only that logging section was
160
- disabled in disposable copies; the MxBuild/model/runtime assemblies were not
161
- changed. MxBuild 5.21.4 cannot be model-validated on this Linux host because it
162
- loads WPF `PresentationFramework` plugins before reading the MPR. The same
163
- original and rebuilt 5.21 projects were therefore compared through MxBuild
164
- 6.10.8's official in-memory upgrade. Exact 5.21 validation remains a Windows
165
- Studio Pro/MxBuild check.
230
+ | TreeviewDemo 5.21.4 | Exact MxBuild 5.21.4 on Windows | **BUILD SUCCEEDED** for both |
231
+ | GridViewPlayground 6.10.8 | MxBuild 6.10.8 | **BUILD SUCCEEDED** for both |
232
+ | ConnectorKitDemo 7.5.0 | MxBuild 7.5.0 | **BUILD SUCCEEDED** for both |
233
+ | QueryApiBlogPost 7.17.0-rc5 | MxBuild 7.17.0 final with `--loose-version-check` | **BUILD SUCCEEDED** for both |
234
+ | FirstMedix App 9.6.1 | MxBuild 9.6.1.29396 | **BUILD SUCCEEDED** for both |
235
+
236
+ The workflow pins project revisions and tool checksums, restores the declared
237
+ Java dependencies and missing Atlas/widget resources identically in both
238
+ variants, and uses `--require-build` for every case. An equivalent failure is
239
+ rejected. All eight cases passed, including presentation edits in Mendix 7/9/11.
240
+ [Release evidence](../evidence/release-0.1.6.json) records package sizes, SHA-256
241
+ hashes and the workflow run. Package hashes may differ because generated
242
+ metadata is not deterministic.
243
+
244
+ The exact Mendix 5.21.4 check now runs on Windows with WPF, replacing the prior
245
+ confidence limit based on the 6.10 in-memory converter. The fixture also exposed
246
+ an omitted image-viewer data source in exported Ruby; the exporter now preserves
247
+ it, and both 5.21.4 and 7.17.0 pass full-unit comparisons before native compilation.
166
248
 
167
249
  ## Confidence boundary
168
250
 
169
- A passing matrix demonstrates lossless behavior for the properties inspected by
170
- `mxrb compare` on these fixtures, plus official MxBuild compatibility or
171
- diagnostic parity for Mendix 6, 7, 9 and 11. Mendix 5 has parity through the
172
- official 6.10 in-memory converter, but still needs an exact Windows-side 5.21
173
- run. This is not proof of full compatibility with every Mendix metamodel
174
- version, and unknown `.mxunit` encodings continue to be rejected rather than
175
- guessed.
251
+ A passing matrix demonstrates lossless behavior for the inspected properties and
252
+ native compilation of these fixtures. It does not prove compatibility with every
253
+ Mendix metamodel version or custom widget. Unknown `.mxunit` encodings remain
254
+ rejected. Linux still lacks the WPF components needed to run MxBuild 5.21.4;
255
+ the exact automated check uses Windows.
176
256
 
177
257
  Every native unit retains `.mxrb/native_units.json` as its lossless baseline
178
258
  and is also expanded into editable `native_unit` hashes in
@@ -181,6 +261,22 @@ representation where available.
181
261
 
182
262
  ## Widget certification
183
263
 
264
+ `script/forms_core_project_gate` complements behavioral coverage with a
265
+ property-level structural gate. For Mendix 11.12.1 it materializes all 455
266
+ inherited property occurrences across 41 core widgets, reopens the MPR, exports
267
+ readable Ruby without opaque fragments, recompiles it, and compares every typed
268
+ value after reopening. The current result is 455/455 for `imported` and
269
+ `compiled`, and 455/455 for `studio_validated`.
270
+
271
+ With `--mxbuild` and the official 11.12.1 executable, the gate creates a second
272
+ evidence MPR containing complete widgets in the required layout, template,
273
+ entity, file, and image contexts. MxBuild loaded, checked, and packaged that
274
+ MPR with exit status 0 and no problems. An independent typed inspection proves
275
+ that the same 455 properties are present in the accepted project. The legacy
276
+ `TemplatePlaceholder` remains loadable only in an explicitly excluded template
277
+ because Studio rejects it in deployable templates; the gate records that
278
+ platform limitation instead of claiming it can be published.
279
+
184
280
  `script/certify_widgets --browser-report REPORT.json App.mpr` is the fail-closed
185
281
  gate for native web compiler and Marketplace widgets actually used by a
186
282
  project. It jointly requires page/layout compilation without fallbacks, resolution of every
@@ -235,11 +331,22 @@ pair returned zero semantic changes. A controlled microflow rename in the 7.17
235
331
  fixture was reduced to precise `changed` entries for its name and references,
236
332
  instead of dumping the complete removed and added flow bodies.
237
333
 
334
+ The `ShowHomePageAction` gate authors the final core action in the inventoried
335
+ Mendix 11 schema that previously lacked a Ruby declaration. One Ruby-app and
336
+ two regular cycles retain the unit, activity, and action IDs without opaque
337
+ fallback; the official MxBuild 11.12.1 finishes with **BUILD SUCCEEDED**.
338
+
339
+ The flow-annotation gate covers creation, editing, and removal of captions,
340
+ positions, and sizes with stable IDs. Existing connections remain identical
341
+ when their endpoints survive and are dropped when they would become dangling;
342
+ the fixture containing a valid `AnnotationFlow` finishes with **BUILD
343
+ SUCCEEDED** under MxBuild 11.12.1.
344
+
238
345
  ## Ruby evaluations and coverage gate
239
346
 
240
- The current suite contains 1,337 examples and passes with 100.00% line coverage
241
- (24,082/24,082 executable library lines) and 100.00% branch coverage
242
- (9,883/9,883 branches).
347
+ The current suite contains 2,113 examples and passes with 100.00% line coverage
348
+ (37,742/37,742 executable library lines) and 100.00% branch coverage
349
+ (16,324/16,324 branches).
243
350
  Run the enforced gate with:
244
351
 
245
352
  ```sh
@@ -282,11 +389,29 @@ audited computed CSS.
282
389
 
283
390
  ## Reproducibility and performance
284
391
 
392
+ The real Mendix projects are external certification inputs and are never stored
393
+ in this repository. Set `MXRB_FIXTURES_ROOT` before `script/validate_matrix`,
394
+ `MXRB_BENCHMARK_MPR` before `script/benchmark`, and
395
+ `MXRB_CONNECTOR_FIXTURE` for the optional connector integration specs.
396
+ `MXRB_ACCEPTANCE_MPRS` accepts one or more system-path-separated MPR files for
397
+ the web compatibility gate. The suite loads these four keys from the ignored
398
+ `.env` without overriding variables already supplied by the process. Copy the
399
+ variable names from `.env.example`, but keep workstation-specific values in an
400
+ ignored `.env` or in the shell environment.
401
+
285
402
  `script/validate_matrix` reruns all six disposable round trips and emits JSON
286
- evidence. The current run covered 1,506 units in 14.760 seconds with zero
287
- semantic differences. `script/benchmark` measured the Sudoku pipeline on Ruby
288
- 4.0.5: validation 0.2257 s, semantic indexing 0.7624 s, export 2.5101 s,
289
- generation 2.4659 s and comparison 0.8822 s, totaling 6.8463 s.
403
+ evidence. The current run covered 1,506 units in 19.278 seconds with zero
404
+ semantic differences. After fixing the required `mprcontents` copy for v2
405
+ MPRs, `script/benchmark` ran the Sudoku pipeline three times on Ruby 4.0.5.
406
+ Median total time was 9.6308 s: validation 0.7596 s, cold semantic index
407
+ 0.7839 s, warm index 0.0090 s, read-only index 0.8171 s, export 3.9405 s,
408
+ generation 2.1941 s, and comparison 1.1322 s. Median warm-cache speedup was
409
+ 87.1x. The former 6.8463 s result is not a comparable baseline because it used
410
+ a different step composition and did not record an environment/budget. On
411
+ November 17, the [versioned budget](../guides/benchmark-budget.pt-BR.md)
412
+ (Portuguese guide) was implemented with model/asset/environment identities and
413
+ three samples: local calibration at 25.651754 s and an independent passing
414
+ verification at 27.512983 s. CI collects samples for runner-specific limits.
290
415
 
291
416
  Deterministic fuzz tests additionally round-trip 250 nested BSON documents and
292
417
  50 atomic `.mxunit` files, including binary values, arrays and nested hashes.