@antelopejs/dms 0.19.6 → 0.20.0

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 (1235) hide show
  1. package/CHANGELOG.md +196 -1
  2. package/README.md +11 -9
  3. package/bin/control/backend-mode.test.mjs +72 -0
  4. package/bin/control/backend.mjs +41 -24
  5. package/bin/control/backend.test.mjs +18 -0
  6. package/bin/control/build-cache.mjs +18 -6
  7. package/bin/control/build-key.mjs +10 -7
  8. package/bin/control/build-key.test.mjs +25 -1
  9. package/bin/control/build-layout.test.mjs +53 -11
  10. package/bin/control/commands-stack.mjs +1 -0
  11. package/bin/control/forwarder.test.mjs +119 -1
  12. package/bin/control/helpers/ephemeral-range.mjs +18 -0
  13. package/bin/control/helpers/fake-run.mjs +75 -5
  14. package/bin/control/helpers/key-fixture.mjs +9 -6
  15. package/bin/control/helpers/narrow-range.mjs +35 -0
  16. package/bin/control/journey-load.mjs +49 -0
  17. package/bin/control/journey.mjs +6 -41
  18. package/bin/control/journey.test.mjs +68 -9
  19. package/bin/control/mail.mjs +8 -2
  20. package/bin/control/module-root.mjs +7 -3
  21. package/bin/control/module-root.test.mjs +7 -5
  22. package/bin/control/options.mjs +1 -0
  23. package/bin/control/processes.mjs +59 -0
  24. package/bin/control/run-ports.test.mjs +126 -0
  25. package/bin/control/run-state.mjs +9 -3
  26. package/bin/control/stack.mjs +77 -11
  27. package/bin/control/verify/map.mjs +1 -1
  28. package/bin/control/verify/verdict.mjs +1 -1
  29. package/bin/dms-control.mjs +7 -3
  30. package/data/mockup-example/spec.json +209 -0
  31. package/data/mockup-spec.schema.json +10955 -0
  32. package/dist/attachments/read.js +2 -1
  33. package/dist/attachments/read.js.map +1 -1
  34. package/dist/attachments/save.js +2 -1
  35. package/dist/attachments/save.js.map +1 -1
  36. package/dist/attachments/stored-claims.d.ts +2 -0
  37. package/dist/attachments/stored-claims.js +21 -0
  38. package/dist/attachments/stored-claims.js.map +1 -0
  39. package/dist/branding/index.d.ts +2 -0
  40. package/dist/branding/index.js +19 -0
  41. package/dist/branding/index.js.map +1 -0
  42. package/dist/branding/page.d.ts +10 -0
  43. package/dist/branding/page.js +22 -0
  44. package/dist/branding/page.js.map +1 -0
  45. package/dist/branding/register.d.ts +1 -0
  46. package/dist/branding/register.js +10 -0
  47. package/dist/branding/register.js.map +1 -0
  48. package/dist/branding/routes.d.ts +18 -0
  49. package/dist/branding/routes.js +78 -0
  50. package/dist/branding/routes.js.map +1 -0
  51. package/dist/branding/theme-schemas.d.ts +484 -0
  52. package/dist/branding/theme-schemas.js +52 -0
  53. package/dist/branding/theme-schemas.js.map +1 -0
  54. package/dist/builder.d.ts +2 -0
  55. package/dist/builder.js +63 -0
  56. package/dist/builder.js.map +1 -0
  57. package/dist/config/internal/state.d.ts +20 -0
  58. package/dist/config/internal/state.js +12 -0
  59. package/dist/config/internal/state.js.map +1 -1
  60. package/dist/db/guard-row.d.ts +2 -2
  61. package/dist/db/guard-row.js +1 -1
  62. package/dist/db/guard-row.js.map +1 -1
  63. package/dist/db/index.d.ts +1 -0
  64. package/dist/db/index.js +1 -0
  65. package/dist/db/index.js.map +1 -1
  66. package/dist/db/models/attachments.model.d.ts +3 -3
  67. package/dist/db/models/setupToken.model.d.ts +3 -3
  68. package/dist/db/models/signInAttempts.model.d.ts +3 -3
  69. package/dist/db/models/systemState.model.d.ts +3 -3
  70. package/dist/db/models/userEmailChanges.model.d.ts +3 -3
  71. package/dist/db/models/userKnownDevices.model.d.ts +3 -3
  72. package/dist/db/models/userNotificationPreferences.model.d.ts +3 -3
  73. package/dist/db/models/userNotificationPreferences.model.js +2 -1
  74. package/dist/db/models/userNotificationPreferences.model.js.map +1 -1
  75. package/dist/db/models/userNotifications.model.d.ts +3 -3
  76. package/dist/db/row-id.d.ts +4 -0
  77. package/dist/db/row-id.js +10 -0
  78. package/dist/db/row-id.js.map +1 -0
  79. package/dist/implementations/dms/connection-access.d.ts +8 -0
  80. package/dist/implementations/dms/connection-access.js +23 -0
  81. package/dist/implementations/dms/connection-access.js.map +1 -0
  82. package/dist/implementations/dms/page/access.d.ts +8 -0
  83. package/dist/implementations/dms/page/access.js +15 -3
  84. package/dist/implementations/dms/page/access.js.map +1 -1
  85. package/dist/implementations/dms/page/controller.d.ts +5 -5
  86. package/dist/implementations/dms/page/controller.js +9 -6
  87. package/dist/implementations/dms/page/controller.js.map +1 -1
  88. package/dist/implementations/dms/page/preview-menu.js +1 -1
  89. package/dist/implementations/dms/page/preview-menu.js.map +1 -1
  90. package/dist/implementations/dms/page/preview-models.d.ts +10 -10
  91. package/dist/implementations/dms/page/registry.js +2 -2
  92. package/dist/implementations/dms/page/registry.js.map +1 -1
  93. package/dist/implementations/dms/page/types.d.ts +1 -1
  94. package/dist/implementations/dms/page.d.ts +2 -1
  95. package/dist/implementations/dms/page.js +2 -1
  96. package/dist/implementations/dms/page.js.map +1 -1
  97. package/dist/implementations/dms-auth/index.js +21 -60
  98. package/dist/implementations/dms-auth/index.js.map +1 -1
  99. package/dist/implementations/dms-auth/session-handoff.d.ts +1 -1
  100. package/dist/implementations/dms-auth/session-handoff.js +7 -22
  101. package/dist/implementations/dms-auth/session-handoff.js.map +1 -1
  102. package/dist/implementations/dms-auth/token-secret.d.ts +7 -1
  103. package/dist/implementations/dms-auth/token-secret.js +59 -4
  104. package/dist/implementations/dms-auth/token-secret.js.map +1 -1
  105. package/dist/implementations/dms-auth/token-session.js +1 -5
  106. package/dist/implementations/dms-auth/token-session.js.map +1 -1
  107. package/dist/implementations/dms-base/bulk-selection.js +5 -2
  108. package/dist/implementations/dms-base/bulk-selection.js.map +1 -1
  109. package/dist/implementations/dms-base/export-jobs.d.ts +1 -4
  110. package/dist/implementations/dms-base/export-jobs.js +8 -12
  111. package/dist/implementations/dms-base/export-jobs.js.map +1 -1
  112. package/dist/implementations/dms-base/footer-summary.d.ts +2 -1
  113. package/dist/implementations/dms-base/footer-summary.js +1 -1
  114. package/dist/implementations/dms-base/footer-summary.js.map +1 -1
  115. package/dist/implementations/dms-base/search-route.d.ts +3 -3
  116. package/dist/implementations/dms-base/search-route.js +6 -3
  117. package/dist/implementations/dms-base/search-route.js.map +1 -1
  118. package/dist/implementations/dms-base/table-view.d.ts +2 -2
  119. package/dist/implementations/dms-base/table-view.js +21 -12
  120. package/dist/implementations/dms-base/table-view.js.map +1 -1
  121. package/dist/implementations/dms-builder/database.d.ts +13 -0
  122. package/dist/implementations/dms-builder/database.js +126 -0
  123. package/dist/implementations/dms-builder/database.js.map +1 -0
  124. package/dist/implementations/dms-builder/engine/access-grant.d.ts +2 -0
  125. package/dist/implementations/dms-builder/engine/access-grant.js +275 -0
  126. package/dist/implementations/dms-builder/engine/access-grant.js.map +1 -0
  127. package/dist/implementations/dms-builder/engine/access-mongodb.d.ts +20 -0
  128. package/dist/implementations/dms-builder/engine/access-mongodb.js +30 -0
  129. package/dist/implementations/dms-builder/engine/access-mongodb.js.map +1 -0
  130. package/dist/implementations/dms-builder/engine/access-mysql.d.ts +8 -0
  131. package/dist/implementations/dms-builder/engine/access-mysql.js +11 -0
  132. package/dist/implementations/dms-builder/engine/access-mysql.js.map +1 -0
  133. package/dist/implementations/dms-builder/engine/access-postgres.d.ts +8 -0
  134. package/dist/implementations/dms-builder/engine/access-postgres.js +11 -0
  135. package/dist/implementations/dms-builder/engine/access-postgres.js.map +1 -0
  136. package/dist/implementations/dms-builder/engine/analysis-fields.d.ts +25 -0
  137. package/dist/implementations/dms-builder/engine/analysis-fields.js +272 -0
  138. package/dist/implementations/dms-builder/engine/analysis-fields.js.map +1 -0
  139. package/dist/implementations/dms-builder/engine/analysis-input.d.ts +28 -0
  140. package/dist/implementations/dms-builder/engine/analysis-input.js +38 -0
  141. package/dist/implementations/dms-builder/engine/analysis-input.js.map +1 -0
  142. package/dist/implementations/dms-builder/engine/analysis-job.d.ts +4 -0
  143. package/dist/implementations/dms-builder/engine/analysis-job.js +195 -0
  144. package/dist/implementations/dms-builder/engine/analysis-job.js.map +1 -0
  145. package/dist/implementations/dms-builder/engine/analysis-names.d.ts +14 -0
  146. package/dist/implementations/dms-builder/engine/analysis-names.js +94 -0
  147. package/dist/implementations/dms-builder/engine/analysis-names.js.map +1 -0
  148. package/dist/implementations/dms-builder/engine/analysis-relations.d.ts +19 -0
  149. package/dist/implementations/dms-builder/engine/analysis-relations.js +145 -0
  150. package/dist/implementations/dms-builder/engine/analysis-relations.js.map +1 -0
  151. package/dist/implementations/dms-builder/engine/analysis.d.ts +5 -0
  152. package/dist/implementations/dms-builder/engine/analysis.js +185 -0
  153. package/dist/implementations/dms-builder/engine/analysis.js.map +1 -0
  154. package/dist/implementations/dms-builder/engine/block-target.d.ts +23 -0
  155. package/dist/implementations/dms-builder/engine/block-target.js +80 -0
  156. package/dist/implementations/dms-builder/engine/block-target.js.map +1 -0
  157. package/dist/implementations/dms-builder/engine/block-tree.d.ts +3 -0
  158. package/dist/implementations/dms-builder/engine/block-tree.js +130 -0
  159. package/dist/implementations/dms-builder/engine/block-tree.js.map +1 -0
  160. package/dist/implementations/dms-builder/engine/catalog-connection.d.ts +5 -0
  161. package/dist/implementations/dms-builder/engine/catalog-connection.js +73 -0
  162. package/dist/implementations/dms-builder/engine/catalog-connection.js.map +1 -0
  163. package/dist/implementations/dms-builder/engine/catalog-inference.d.ts +4 -0
  164. package/dist/implementations/dms-builder/engine/catalog-inference.js +387 -0
  165. package/dist/implementations/dms-builder/engine/catalog-inference.js.map +1 -0
  166. package/dist/implementations/dms-builder/engine/catalog.d.ts +6 -0
  167. package/dist/implementations/dms-builder/engine/catalog.js +128 -0
  168. package/dist/implementations/dms-builder/engine/catalog.js.map +1 -0
  169. package/dist/implementations/dms-builder/engine/chain.d.ts +21 -0
  170. package/dist/implementations/dms-builder/engine/chain.js +98 -0
  171. package/dist/implementations/dms-builder/engine/chain.js.map +1 -0
  172. package/dist/implementations/dms-builder/engine/column-display.d.ts +41 -0
  173. package/dist/implementations/dms-builder/engine/column-display.js +267 -0
  174. package/dist/implementations/dms-builder/engine/column-display.js.map +1 -0
  175. package/dist/implementations/dms-builder/engine/column-label.d.ts +5 -0
  176. package/dist/implementations/dms-builder/engine/column-label.js +21 -0
  177. package/dist/implementations/dms-builder/engine/column-label.js.map +1 -0
  178. package/dist/implementations/dms-builder/engine/compose-page.d.ts +3 -0
  179. package/dist/implementations/dms-builder/engine/compose-page.js +346 -0
  180. package/dist/implementations/dms-builder/engine/compose-page.js.map +1 -0
  181. package/dist/implementations/dms-builder/engine/config-literal.d.ts +30 -0
  182. package/dist/implementations/dms-builder/engine/config-literal.js +401 -0
  183. package/dist/implementations/dms-builder/engine/config-literal.js.map +1 -0
  184. package/dist/implementations/dms-builder/engine/connection-access-config.d.ts +11 -0
  185. package/dist/implementations/dms-builder/engine/connection-access-config.js +266 -0
  186. package/dist/implementations/dms-builder/engine/connection-access-config.js.map +1 -0
  187. package/dist/implementations/dms-builder/engine/connection-access.d.ts +9 -0
  188. package/dist/implementations/dms-builder/engine/connection-access.js +207 -0
  189. package/dist/implementations/dms-builder/engine/connection-access.js.map +1 -0
  190. package/dist/implementations/dms-builder/engine/database-access.d.ts +21 -0
  191. package/dist/implementations/dms-builder/engine/database-access.js +98 -0
  192. package/dist/implementations/dms-builder/engine/database-access.js.map +1 -0
  193. package/dist/implementations/dms-builder/engine/database-check-input.d.ts +22 -0
  194. package/dist/implementations/dms-builder/engine/database-check-input.js +42 -0
  195. package/dist/implementations/dms-builder/engine/database-check-input.js.map +1 -0
  196. package/dist/implementations/dms-builder/engine/database-check.d.ts +4 -0
  197. package/dist/implementations/dms-builder/engine/database-check.js +37 -0
  198. package/dist/implementations/dms-builder/engine/database-check.js.map +1 -0
  199. package/dist/implementations/dms-builder/engine/database-connection-remove.d.ts +5 -0
  200. package/dist/implementations/dms-builder/engine/database-connection-remove.js +167 -0
  201. package/dist/implementations/dms-builder/engine/database-connection-remove.js.map +1 -0
  202. package/dist/implementations/dms-builder/engine/database-connection.d.ts +7 -0
  203. package/dist/implementations/dms-builder/engine/database-connection.js +310 -0
  204. package/dist/implementations/dms-builder/engine/database-connection.js.map +1 -0
  205. package/dist/implementations/dms-builder/engine/database-host.d.ts +2 -0
  206. package/dist/implementations/dms-builder/engine/database-host.js +37 -0
  207. package/dist/implementations/dms-builder/engine/database-host.js.map +1 -0
  208. package/dist/implementations/dms-builder/engine/database-pin.d.ts +12 -0
  209. package/dist/implementations/dms-builder/engine/database-pin.js +157 -0
  210. package/dist/implementations/dms-builder/engine/database-pin.js.map +1 -0
  211. package/dist/implementations/dms-builder/engine/database-repair.d.ts +5 -0
  212. package/dist/implementations/dms-builder/engine/database-repair.js +91 -0
  213. package/dist/implementations/dms-builder/engine/database-repair.js.map +1 -0
  214. package/dist/implementations/dms-builder/engine/describe-value.d.ts +2 -0
  215. package/dist/implementations/dms-builder/engine/describe-value.js +16 -0
  216. package/dist/implementations/dms-builder/engine/describe-value.js.map +1 -0
  217. package/dist/implementations/dms-builder/engine/display-defaults.d.ts +15 -0
  218. package/dist/implementations/dms-builder/engine/display-defaults.js +96 -0
  219. package/dist/implementations/dms-builder/engine/display-defaults.js.map +1 -0
  220. package/dist/implementations/dms-builder/engine/dms-database.d.ts +3 -0
  221. package/dist/implementations/dms-builder/engine/dms-database.js +70 -0
  222. package/dist/implementations/dms-builder/engine/dms-database.js.map +1 -0
  223. package/dist/implementations/dms-builder/engine/driver-packages.d.ts +3 -0
  224. package/dist/implementations/dms-builder/engine/driver-packages.js +84 -0
  225. package/dist/implementations/dms-builder/engine/driver-packages.js.map +1 -0
  226. package/dist/implementations/dms-builder/engine/emit.d.ts +12 -0
  227. package/dist/implementations/dms-builder/engine/emit.js +157 -0
  228. package/dist/implementations/dms-builder/engine/emit.js.map +1 -0
  229. package/dist/implementations/dms-builder/engine/entry-connections.d.ts +2 -0
  230. package/dist/implementations/dms-builder/engine/entry-connections.js +123 -0
  231. package/dist/implementations/dms-builder/engine/entry-connections.js.map +1 -0
  232. package/dist/implementations/dms-builder/engine/env-lines.d.ts +5 -0
  233. package/dist/implementations/dms-builder/engine/env-lines.js +66 -0
  234. package/dist/implementations/dms-builder/engine/env-lines.js.map +1 -0
  235. package/dist/implementations/dms-builder/engine/expression.d.ts +6 -0
  236. package/dist/implementations/dms-builder/engine/expression.js +90 -0
  237. package/dist/implementations/dms-builder/engine/expression.js.map +1 -0
  238. package/dist/implementations/dms-builder/engine/file-batch.d.ts +17 -0
  239. package/dist/implementations/dms-builder/engine/file-batch.js +154 -0
  240. package/dist/implementations/dms-builder/engine/file-batch.js.map +1 -0
  241. package/dist/implementations/dms-builder/engine/guards.d.ts +8 -0
  242. package/dist/implementations/dms-builder/engine/guards.js +27 -0
  243. package/dist/implementations/dms-builder/engine/guards.js.map +1 -0
  244. package/dist/implementations/dms-builder/engine/held-value.d.ts +2 -0
  245. package/dist/implementations/dms-builder/engine/held-value.js +37 -0
  246. package/dist/implementations/dms-builder/engine/held-value.js.map +1 -0
  247. package/dist/implementations/dms-builder/engine/index.d.ts +63 -0
  248. package/dist/implementations/dms-builder/engine/index.js +82 -0
  249. package/dist/implementations/dms-builder/engine/index.js.map +1 -0
  250. package/dist/implementations/dms-builder/engine/indexed-project.d.ts +7 -0
  251. package/dist/implementations/dms-builder/engine/indexed-project.js +18 -0
  252. package/dist/implementations/dms-builder/engine/indexed-project.js.map +1 -0
  253. package/dist/implementations/dms-builder/engine/interface-capabilities.d.ts +1 -0
  254. package/dist/implementations/dms-builder/engine/interface-capabilities.js +28 -0
  255. package/dist/implementations/dms-builder/engine/interface-capabilities.js.map +1 -0
  256. package/dist/implementations/dms-builder/engine/interface-ids.d.ts +2 -0
  257. package/dist/implementations/dms-builder/engine/interface-ids.js +6 -0
  258. package/dist/implementations/dms-builder/engine/interface-ids.js.map +1 -0
  259. package/dist/implementations/dms-builder/engine/literal-overrides.d.ts +7 -0
  260. package/dist/implementations/dms-builder/engine/literal-overrides.js +54 -0
  261. package/dist/implementations/dms-builder/engine/literal-overrides.js.map +1 -0
  262. package/dist/implementations/dms-builder/engine/literals.d.ts +9 -0
  263. package/dist/implementations/dms-builder/engine/literals.js +68 -0
  264. package/dist/implementations/dms-builder/engine/literals.js.map +1 -0
  265. package/dist/implementations/dms-builder/engine/local-bindings.d.ts +4 -0
  266. package/dist/implementations/dms-builder/engine/local-bindings.js +165 -0
  267. package/dist/implementations/dms-builder/engine/local-bindings.js.map +1 -0
  268. package/dist/implementations/dms-builder/engine/map-resources-batch.d.ts +5 -0
  269. package/dist/implementations/dms-builder/engine/map-resources-batch.js +142 -0
  270. package/dist/implementations/dms-builder/engine/map-resources-batch.js.map +1 -0
  271. package/dist/implementations/dms-builder/engine/map-resources-pages.d.ts +12 -0
  272. package/dist/implementations/dms-builder/engine/map-resources-pages.js +242 -0
  273. package/dist/implementations/dms-builder/engine/map-resources-pages.js.map +1 -0
  274. package/dist/implementations/dms-builder/engine/map-resources-plan.d.ts +54 -0
  275. package/dist/implementations/dms-builder/engine/map-resources-plan.js +269 -0
  276. package/dist/implementations/dms-builder/engine/map-resources-plan.js.map +1 -0
  277. package/dist/implementations/dms-builder/engine/map-resources-references.d.ts +4 -0
  278. package/dist/implementations/dms-builder/engine/map-resources-references.js +74 -0
  279. package/dist/implementations/dms-builder/engine/map-resources-references.js.map +1 -0
  280. package/dist/implementations/dms-builder/engine/map-resources-repairs.d.ts +18 -0
  281. package/dist/implementations/dms-builder/engine/map-resources-repairs.js +105 -0
  282. package/dist/implementations/dms-builder/engine/map-resources-repairs.js.map +1 -0
  283. package/dist/implementations/dms-builder/engine/map-resources.d.ts +6 -0
  284. package/dist/implementations/dms-builder/engine/map-resources.js +347 -0
  285. package/dist/implementations/dms-builder/engine/map-resources.js.map +1 -0
  286. package/dist/implementations/dms-builder/engine/mapped-choices.d.ts +2 -0
  287. package/dist/implementations/dms-builder/engine/mapped-choices.js +153 -0
  288. package/dist/implementations/dms-builder/engine/mapped-choices.js.map +1 -0
  289. package/dist/implementations/dms-builder/engine/mapped-displays.d.ts +11 -0
  290. package/dist/implementations/dms-builder/engine/mapped-displays.js +56 -0
  291. package/dist/implementations/dms-builder/engine/mapped-displays.js.map +1 -0
  292. package/dist/implementations/dms-builder/engine/mapped-modules.d.ts +10 -0
  293. package/dist/implementations/dms-builder/engine/mapped-modules.js +120 -0
  294. package/dist/implementations/dms-builder/engine/mapped-modules.js.map +1 -0
  295. package/dist/implementations/dms-builder/engine/mapped-routes.d.ts +2 -0
  296. package/dist/implementations/dms-builder/engine/mapped-routes.js +11 -0
  297. package/dist/implementations/dms-builder/engine/mapped-routes.js.map +1 -0
  298. package/dist/implementations/dms-builder/engine/mapping-refusal.d.ts +3 -0
  299. package/dist/implementations/dms-builder/engine/mapping-refusal.js +11 -0
  300. package/dist/implementations/dms-builder/engine/mapping-refusal.js.map +1 -0
  301. package/dist/implementations/dms-builder/engine/mixed-types.d.ts +2 -0
  302. package/dist/implementations/dms-builder/engine/mixed-types.js +32 -0
  303. package/dist/implementations/dms-builder/engine/mixed-types.js.map +1 -0
  304. package/dist/implementations/dms-builder/engine/model-methods-keep.d.ts +3 -0
  305. package/dist/implementations/dms-builder/engine/model-methods-keep.js +25 -0
  306. package/dist/implementations/dms-builder/engine/model-methods-keep.js.map +1 -0
  307. package/dist/implementations/dms-builder/engine/module-loader.d.ts +5 -0
  308. package/dist/implementations/dms-builder/engine/module-loader.js +30 -0
  309. package/dist/implementations/dms-builder/engine/module-loader.js.map +1 -0
  310. package/dist/implementations/dms-builder/engine/module-reload.d.ts +21 -0
  311. package/dist/implementations/dms-builder/engine/module-reload.js +90 -0
  312. package/dist/implementations/dms-builder/engine/module-reload.js.map +1 -0
  313. package/dist/implementations/dms-builder/engine/modules.d.ts +17 -0
  314. package/dist/implementations/dms-builder/engine/modules.js +195 -0
  315. package/dist/implementations/dms-builder/engine/modules.js.map +1 -0
  316. package/dist/implementations/dms-builder/engine/name-words.d.ts +3 -0
  317. package/dist/implementations/dms-builder/engine/name-words.js +26 -0
  318. package/dist/implementations/dms-builder/engine/name-words.js.map +1 -0
  319. package/dist/implementations/dms-builder/engine/native-kind.d.ts +1 -0
  320. package/dist/implementations/dms-builder/engine/native-kind.js +41 -0
  321. package/dist/implementations/dms-builder/engine/native-kind.js.map +1 -0
  322. package/dist/implementations/dms-builder/engine/ops-blocks.d.ts +25 -0
  323. package/dist/implementations/dms-builder/engine/ops-blocks.js +334 -0
  324. package/dist/implementations/dms-builder/engine/ops-blocks.js.map +1 -0
  325. package/dist/implementations/dms-builder/engine/ops-categories.d.ts +6 -0
  326. package/dist/implementations/dms-builder/engine/ops-categories.js +178 -0
  327. package/dist/implementations/dms-builder/engine/ops-categories.js.map +1 -0
  328. package/dist/implementations/dms-builder/engine/ops.d.ts +40 -0
  329. package/dist/implementations/dms-builder/engine/ops.js +383 -0
  330. package/dist/implementations/dms-builder/engine/ops.js.map +1 -0
  331. package/dist/implementations/dms-builder/engine/options-patch.d.ts +9 -0
  332. package/dist/implementations/dms-builder/engine/options-patch.js +58 -0
  333. package/dist/implementations/dms-builder/engine/options-patch.js.map +1 -0
  334. package/dist/implementations/dms-builder/engine/own-connections.d.ts +4 -0
  335. package/dist/implementations/dms-builder/engine/own-connections.js +21 -0
  336. package/dist/implementations/dms-builder/engine/own-connections.js.map +1 -0
  337. package/dist/implementations/dms-builder/engine/page-access.d.ts +31 -0
  338. package/dist/implementations/dms-builder/engine/page-access.js +159 -0
  339. package/dist/implementations/dms-builder/engine/page-access.js.map +1 -0
  340. package/dist/implementations/dms-builder/engine/page-category-move.d.ts +16 -0
  341. package/dist/implementations/dms-builder/engine/page-category-move.js +121 -0
  342. package/dist/implementations/dms-builder/engine/page-category-move.js.map +1 -0
  343. package/dist/implementations/dms-builder/engine/page-delete.d.ts +2 -0
  344. package/dist/implementations/dms-builder/engine/page-delete.js +53 -0
  345. package/dist/implementations/dms-builder/engine/page-delete.js.map +1 -0
  346. package/dist/implementations/dms-builder/engine/page-draft-validation.d.ts +2 -0
  347. package/dist/implementations/dms-builder/engine/page-draft-validation.js +200 -0
  348. package/dist/implementations/dms-builder/engine/page-draft-validation.js.map +1 -0
  349. package/dist/implementations/dms-builder/engine/page-draft.d.ts +4 -0
  350. package/dist/implementations/dms-builder/engine/page-draft.js +336 -0
  351. package/dist/implementations/dms-builder/engine/page-draft.js.map +1 -0
  352. package/dist/implementations/dms-builder/engine/page-structure.d.ts +5 -0
  353. package/dist/implementations/dms-builder/engine/page-structure.js +48 -0
  354. package/dist/implementations/dms-builder/engine/page-structure.js.map +1 -0
  355. package/dist/implementations/dms-builder/engine/paths.d.ts +7 -0
  356. package/dist/implementations/dms-builder/engine/paths.js +31 -0
  357. package/dist/implementations/dms-builder/engine/paths.js.map +1 -0
  358. package/dist/implementations/dms-builder/engine/permissions.d.ts +9 -0
  359. package/dist/implementations/dms-builder/engine/permissions.js +43 -0
  360. package/dist/implementations/dms-builder/engine/permissions.js.map +1 -0
  361. package/dist/implementations/dms-builder/engine/placement.d.ts +6 -0
  362. package/dist/implementations/dms-builder/engine/placement.js +54 -0
  363. package/dist/implementations/dms-builder/engine/placement.js.map +1 -0
  364. package/dist/implementations/dms-builder/engine/planned-page.d.ts +9 -0
  365. package/dist/implementations/dms-builder/engine/planned-page.js +14 -0
  366. package/dist/implementations/dms-builder/engine/planned-page.js.map +1 -0
  367. package/dist/implementations/dms-builder/engine/preview.d.ts +2 -0
  368. package/dist/implementations/dms-builder/engine/preview.js +346 -0
  369. package/dist/implementations/dms-builder/engine/preview.js.map +1 -0
  370. package/dist/implementations/dms-builder/engine/price-currency.d.ts +5 -0
  371. package/dist/implementations/dms-builder/engine/price-currency.js +53 -0
  372. package/dist/implementations/dms-builder/engine/price-currency.js.map +1 -0
  373. package/dist/implementations/dms-builder/engine/probe-client.d.ts +15 -0
  374. package/dist/implementations/dms-builder/engine/probe-client.js +41 -0
  375. package/dist/implementations/dms-builder/engine/probe-client.js.map +1 -0
  376. package/dist/implementations/dms-builder/engine/probe-connections.d.ts +10 -0
  377. package/dist/implementations/dms-builder/engine/probe-connections.js +43 -0
  378. package/dist/implementations/dms-builder/engine/probe-connections.js.map +1 -0
  379. package/dist/implementations/dms-builder/engine/probe-mongodb.d.ts +2 -0
  380. package/dist/implementations/dms-builder/engine/probe-mongodb.js +92 -0
  381. package/dist/implementations/dms-builder/engine/probe-mongodb.js.map +1 -0
  382. package/dist/implementations/dms-builder/engine/probe-mysql.d.ts +2 -0
  383. package/dist/implementations/dms-builder/engine/probe-mysql.js +136 -0
  384. package/dist/implementations/dms-builder/engine/probe-mysql.js.map +1 -0
  385. package/dist/implementations/dms-builder/engine/probe-postgres.d.ts +2 -0
  386. package/dist/implementations/dms-builder/engine/probe-postgres.js +80 -0
  387. package/dist/implementations/dms-builder/engine/probe-postgres.js.map +1 -0
  388. package/dist/implementations/dms-builder/engine/probe-rethinkdb.d.ts +2 -0
  389. package/dist/implementations/dms-builder/engine/probe-rethinkdb.js +92 -0
  390. package/dist/implementations/dms-builder/engine/probe-rethinkdb.js.map +1 -0
  391. package/dist/implementations/dms-builder/engine/project-config-entry.d.ts +5 -0
  392. package/dist/implementations/dms-builder/engine/project-config-entry.js +164 -0
  393. package/dist/implementations/dms-builder/engine/project-config-entry.js.map +1 -0
  394. package/dist/implementations/dms-builder/engine/project-config-ops.d.ts +2 -0
  395. package/dist/implementations/dms-builder/engine/project-config-ops.js +183 -0
  396. package/dist/implementations/dms-builder/engine/project-config-ops.js.map +1 -0
  397. package/dist/implementations/dms-builder/engine/project-config-readers.d.ts +15 -0
  398. package/dist/implementations/dms-builder/engine/project-config-readers.js +125 -0
  399. package/dist/implementations/dms-builder/engine/project-config-readers.js.map +1 -0
  400. package/dist/implementations/dms-builder/engine/project-config-remove.d.ts +4 -0
  401. package/dist/implementations/dms-builder/engine/project-config-remove.js +104 -0
  402. package/dist/implementations/dms-builder/engine/project-config-remove.js.map +1 -0
  403. package/dist/implementations/dms-builder/engine/project-config-steps.d.ts +3 -0
  404. package/dist/implementations/dms-builder/engine/project-config-steps.js +30 -0
  405. package/dist/implementations/dms-builder/engine/project-config-steps.js.map +1 -0
  406. package/dist/implementations/dms-builder/engine/project-config-text.d.ts +3 -0
  407. package/dist/implementations/dms-builder/engine/project-config-text.js +36 -0
  408. package/dist/implementations/dms-builder/engine/project-config-text.js.map +1 -0
  409. package/dist/implementations/dms-builder/engine/project-config.d.ts +34 -0
  410. package/dist/implementations/dms-builder/engine/project-config.js +236 -0
  411. package/dist/implementations/dms-builder/engine/project-config.js.map +1 -0
  412. package/dist/implementations/dms-builder/engine/project-env-loading.d.ts +4 -0
  413. package/dist/implementations/dms-builder/engine/project-env-loading.js +175 -0
  414. package/dist/implementations/dms-builder/engine/project-env-loading.js.map +1 -0
  415. package/dist/implementations/dms-builder/engine/project-env.d.ts +16 -0
  416. package/dist/implementations/dms-builder/engine/project-env.js +194 -0
  417. package/dist/implementations/dms-builder/engine/project-env.js.map +1 -0
  418. package/dist/implementations/dms-builder/engine/project-scaffold.d.ts +31 -0
  419. package/dist/implementations/dms-builder/engine/project-scaffold.js +199 -0
  420. package/dist/implementations/dms-builder/engine/project-scaffold.js.map +1 -0
  421. package/dist/implementations/dms-builder/engine/project.d.ts +24 -0
  422. package/dist/implementations/dms-builder/engine/project.js +281 -0
  423. package/dist/implementations/dms-builder/engine/project.js.map +1 -0
  424. package/dist/implementations/dms-builder/engine/query-chain-series.d.ts +11 -0
  425. package/dist/implementations/dms-builder/engine/query-chain-series.js +288 -0
  426. package/dist/implementations/dms-builder/engine/query-chain-series.js.map +1 -0
  427. package/dist/implementations/dms-builder/engine/query-chain.d.ts +40 -0
  428. package/dist/implementations/dms-builder/engine/query-chain.js +181 -0
  429. package/dist/implementations/dms-builder/engine/query-chain.js.map +1 -0
  430. package/dist/implementations/dms-builder/engine/query-emit.d.ts +42 -0
  431. package/dist/implementations/dms-builder/engine/query-emit.js +200 -0
  432. package/dist/implementations/dms-builder/engine/query-emit.js.map +1 -0
  433. package/dist/implementations/dms-builder/engine/query-ops-emit.d.ts +11 -0
  434. package/dist/implementations/dms-builder/engine/query-ops-emit.js +284 -0
  435. package/dist/implementations/dms-builder/engine/query-ops-emit.js.map +1 -0
  436. package/dist/implementations/dms-builder/engine/query-ops.d.ts +32 -0
  437. package/dist/implementations/dms-builder/engine/query-ops.js +216 -0
  438. package/dist/implementations/dms-builder/engine/query-ops.js.map +1 -0
  439. package/dist/implementations/dms-builder/engine/query-plan-execute.d.ts +51 -0
  440. package/dist/implementations/dms-builder/engine/query-plan-execute.js +129 -0
  441. package/dist/implementations/dms-builder/engine/query-plan-execute.js.map +1 -0
  442. package/dist/implementations/dms-builder/engine/query-plan.d.ts +39 -0
  443. package/dist/implementations/dms-builder/engine/query-plan.js +235 -0
  444. package/dist/implementations/dms-builder/engine/query-plan.js.map +1 -0
  445. package/dist/implementations/dms-builder/engine/query-preview.d.ts +11 -0
  446. package/dist/implementations/dms-builder/engine/query-preview.js +184 -0
  447. package/dist/implementations/dms-builder/engine/query-preview.js.map +1 -0
  448. package/dist/implementations/dms-builder/engine/query-route-response.d.ts +9 -0
  449. package/dist/implementations/dms-builder/engine/query-route-response.js +90 -0
  450. package/dist/implementations/dms-builder/engine/query-route-response.js.map +1 -0
  451. package/dist/implementations/dms-builder/engine/query-structure.d.ts +35 -0
  452. package/dist/implementations/dms-builder/engine/query-structure.js +330 -0
  453. package/dist/implementations/dms-builder/engine/query-structure.js.map +1 -0
  454. package/dist/implementations/dms-builder/engine/query-sync.d.ts +12 -0
  455. package/dist/implementations/dms-builder/engine/query-sync.js +153 -0
  456. package/dist/implementations/dms-builder/engine/query-sync.js.map +1 -0
  457. package/dist/implementations/dms-builder/engine/query-template-emit.d.ts +1 -0
  458. package/dist/implementations/dms-builder/engine/query-template-emit.js +103 -0
  459. package/dist/implementations/dms-builder/engine/query-template-emit.js.map +1 -0
  460. package/dist/implementations/dms-builder/engine/query-template-series.d.ts +2 -0
  461. package/dist/implementations/dms-builder/engine/query-template-series.js +206 -0
  462. package/dist/implementations/dms-builder/engine/query-template-series.js.map +1 -0
  463. package/dist/implementations/dms-builder/engine/query-template.d.ts +53 -0
  464. package/dist/implementations/dms-builder/engine/query-template.js +211 -0
  465. package/dist/implementations/dms-builder/engine/query-template.js.map +1 -0
  466. package/dist/implementations/dms-builder/engine/query-where.d.ts +3 -0
  467. package/dist/implementations/dms-builder/engine/query-where.js +73 -0
  468. package/dist/implementations/dms-builder/engine/query-where.js.map +1 -0
  469. package/dist/implementations/dms-builder/engine/relabel-columns.d.ts +6 -0
  470. package/dist/implementations/dms-builder/engine/relabel-columns.js +79 -0
  471. package/dist/implementations/dms-builder/engine/relabel-columns.js.map +1 -0
  472. package/dist/implementations/dms-builder/engine/reserved-names.d.ts +1 -0
  473. package/dist/implementations/dms-builder/engine/reserved-names.js +20 -0
  474. package/dist/implementations/dms-builder/engine/reserved-names.js.map +1 -0
  475. package/dist/implementations/dms-builder/engine/resource-data.d.ts +1 -0
  476. package/dist/implementations/dms-builder/engine/resource-data.js +18 -0
  477. package/dist/implementations/dms-builder/engine/resource-data.js.map +1 -0
  478. package/dist/implementations/dms-builder/engine/resource-emit-types.d.ts +42 -0
  479. package/dist/implementations/dms-builder/engine/resource-emit-types.js +383 -0
  480. package/dist/implementations/dms-builder/engine/resource-emit-types.js.map +1 -0
  481. package/dist/implementations/dms-builder/engine/resource-emit.d.ts +64 -0
  482. package/dist/implementations/dms-builder/engine/resource-emit.js +242 -0
  483. package/dist/implementations/dms-builder/engine/resource-emit.js.map +1 -0
  484. package/dist/implementations/dms-builder/engine/resource-index.d.ts +30 -0
  485. package/dist/implementations/dms-builder/engine/resource-index.js +259 -0
  486. package/dist/implementations/dms-builder/engine/resource-index.js.map +1 -0
  487. package/dist/implementations/dms-builder/engine/resource-ops-delete.d.ts +10 -0
  488. package/dist/implementations/dms-builder/engine/resource-ops-delete.js +379 -0
  489. package/dist/implementations/dms-builder/engine/resource-ops-delete.js.map +1 -0
  490. package/dist/implementations/dms-builder/engine/resource-ops.d.ts +23 -0
  491. package/dist/implementations/dms-builder/engine/resource-ops.js +210 -0
  492. package/dist/implementations/dms-builder/engine/resource-ops.js.map +1 -0
  493. package/dist/implementations/dms-builder/engine/resource-schema.d.ts +3 -0
  494. package/dist/implementations/dms-builder/engine/resource-schema.js +20 -0
  495. package/dist/implementations/dms-builder/engine/resource-schema.js.map +1 -0
  496. package/dist/implementations/dms-builder/engine/resource-structure.d.ts +18 -0
  497. package/dist/implementations/dms-builder/engine/resource-structure.js +299 -0
  498. package/dist/implementations/dms-builder/engine/resource-structure.js.map +1 -0
  499. package/dist/implementations/dms-builder/engine/resource-summary-route.d.ts +2 -0
  500. package/dist/implementations/dms-builder/engine/resource-summary-route.js +49 -0
  501. package/dist/implementations/dms-builder/engine/resource-summary-route.js.map +1 -0
  502. package/dist/implementations/dms-builder/engine/rethinkdb-client.d.ts +34 -0
  503. package/dist/implementations/dms-builder/engine/rethinkdb-client.js +3 -0
  504. package/dist/implementations/dms-builder/engine/rethinkdb-client.js.map +1 -0
  505. package/dist/implementations/dms-builder/engine/scalar-guards.d.ts +6 -0
  506. package/dist/implementations/dms-builder/engine/scalar-guards.js +23 -0
  507. package/dist/implementations/dms-builder/engine/scalar-guards.js.map +1 -0
  508. package/dist/implementations/dms-builder/engine/scan.d.ts +37 -0
  509. package/dist/implementations/dms-builder/engine/scan.js +249 -0
  510. package/dist/implementations/dms-builder/engine/scan.js.map +1 -0
  511. package/dist/implementations/dms-builder/engine/source-index.d.ts +9 -0
  512. package/dist/implementations/dms-builder/engine/source-index.js +66 -0
  513. package/dist/implementations/dms-builder/engine/source-index.js.map +1 -0
  514. package/dist/implementations/dms-builder/engine/source-options.d.ts +7 -0
  515. package/dist/implementations/dms-builder/engine/source-options.js +65 -0
  516. package/dist/implementations/dms-builder/engine/source-options.js.map +1 -0
  517. package/dist/implementations/dms-builder/engine/table-readers.d.ts +17 -0
  518. package/dist/implementations/dms-builder/engine/table-readers.js +141 -0
  519. package/dist/implementations/dms-builder/engine/table-readers.js.map +1 -0
  520. package/dist/implementations/dms-builder/engine/table-view-checks.d.ts +30 -0
  521. package/dist/implementations/dms-builder/engine/table-view-checks.js +146 -0
  522. package/dist/implementations/dms-builder/engine/table-view-checks.js.map +1 -0
  523. package/dist/implementations/dms-builder/engine/table-view-settings.d.ts +4 -0
  524. package/dist/implementations/dms-builder/engine/table-view-settings.js +298 -0
  525. package/dist/implementations/dms-builder/engine/table-view-settings.js.map +1 -0
  526. package/dist/implementations/dms-builder/engine/theme-app-config.d.ts +17 -0
  527. package/dist/implementations/dms-builder/engine/theme-app-config.js +243 -0
  528. package/dist/implementations/dms-builder/engine/theme-app-config.js.map +1 -0
  529. package/dist/implementations/dms-builder/engine/theme-assets.d.ts +18 -0
  530. package/dist/implementations/dms-builder/engine/theme-assets.js +160 -0
  531. package/dist/implementations/dms-builder/engine/theme-assets.js.map +1 -0
  532. package/dist/implementations/dms-builder/engine/theme-config-imports.d.ts +7 -0
  533. package/dist/implementations/dms-builder/engine/theme-config-imports.js +80 -0
  534. package/dist/implementations/dms-builder/engine/theme-config-imports.js.map +1 -0
  535. package/dist/implementations/dms-builder/engine/theme-draft.d.ts +2 -0
  536. package/dist/implementations/dms-builder/engine/theme-draft.js +35 -0
  537. package/dist/implementations/dms-builder/engine/theme-draft.js.map +1 -0
  538. package/dist/implementations/dms-builder/engine/theme-entry.d.ts +6 -0
  539. package/dist/implementations/dms-builder/engine/theme-entry.js +41 -0
  540. package/dist/implementations/dms-builder/engine/theme-entry.js.map +1 -0
  541. package/dist/implementations/dms-builder/engine/theme-font-catalog.d.ts +15 -0
  542. package/dist/implementations/dms-builder/engine/theme-font-catalog.js +82 -0
  543. package/dist/implementations/dms-builder/engine/theme-font-catalog.js.map +1 -0
  544. package/dist/implementations/dms-builder/engine/theme-fonts.d.ts +12 -0
  545. package/dist/implementations/dms-builder/engine/theme-fonts.js +154 -0
  546. package/dist/implementations/dms-builder/engine/theme-fonts.js.map +1 -0
  547. package/dist/implementations/dms-builder/engine/theme-layer.d.ts +11 -0
  548. package/dist/implementations/dms-builder/engine/theme-layer.js +99 -0
  549. package/dist/implementations/dms-builder/engine/theme-layer.js.map +1 -0
  550. package/dist/implementations/dms-builder/engine/theme-literals.d.ts +9 -0
  551. package/dist/implementations/dms-builder/engine/theme-literals.js +108 -0
  552. package/dist/implementations/dms-builder/engine/theme-literals.js.map +1 -0
  553. package/dist/implementations/dms-builder/engine/theme-scaffold.d.ts +3 -0
  554. package/dist/implementations/dms-builder/engine/theme-scaffold.js +248 -0
  555. package/dist/implementations/dms-builder/engine/theme-scaffold.js.map +1 -0
  556. package/dist/implementations/dms-builder/engine/theme-stylesheet.d.ts +14 -0
  557. package/dist/implementations/dms-builder/engine/theme-stylesheet.js +167 -0
  558. package/dist/implementations/dms-builder/engine/theme-stylesheet.js.map +1 -0
  559. package/dist/implementations/dms-builder/engine/theme-svg.d.ts +6 -0
  560. package/dist/implementations/dms-builder/engine/theme-svg.js +182 -0
  561. package/dist/implementations/dms-builder/engine/theme-svg.js.map +1 -0
  562. package/dist/implementations/dms-builder/engine/theme.d.ts +5 -0
  563. package/dist/implementations/dms-builder/engine/theme.js +275 -0
  564. package/dist/implementations/dms-builder/engine/theme.js.map +1 -0
  565. package/dist/implementations/dms-builder/engine/value.d.ts +35 -0
  566. package/dist/implementations/dms-builder/engine/value.js +152 -0
  567. package/dist/implementations/dms-builder/engine/value.js.map +1 -0
  568. package/dist/implementations/dms-builder/engine/writable.d.ts +28 -0
  569. package/dist/implementations/dms-builder/engine/writable.js +310 -0
  570. package/dist/implementations/dms-builder/engine/writable.js.map +1 -0
  571. package/dist/implementations/dms-builder/index.d.ts +129 -0
  572. package/dist/implementations/dms-builder/index.js +293 -0
  573. package/dist/implementations/dms-builder/index.js.map +1 -0
  574. package/dist/implementations/dms-notifications/index.d.ts +0 -1
  575. package/dist/implementations/dms-notifications/index.js +0 -4
  576. package/dist/implementations/dms-notifications/index.js.map +1 -1
  577. package/dist/index.d.ts +0 -1
  578. package/dist/index.js +12 -3
  579. package/dist/index.js.map +1 -1
  580. package/dist/mcp/access.d.ts +4 -0
  581. package/dist/mcp/access.js +11 -0
  582. package/dist/mcp/access.js.map +1 -0
  583. package/dist/mcp/backend-url.d.ts +8 -0
  584. package/dist/mcp/backend-url.js +39 -0
  585. package/dist/mcp/backend-url.js.map +1 -0
  586. package/dist/mcp/bridge.d.ts +8 -0
  587. package/dist/mcp/bridge.js +169 -0
  588. package/dist/mcp/bridge.js.map +1 -0
  589. package/dist/mcp/confirmation-gate.d.ts +13 -0
  590. package/dist/mcp/confirmation-gate.js +79 -0
  591. package/dist/mcp/confirmation-gate.js.map +1 -0
  592. package/dist/mcp/index.d.ts +1 -0
  593. package/dist/mcp/index.js +73 -0
  594. package/dist/mcp/index.js.map +1 -0
  595. package/dist/mcp/json.d.ts +5 -0
  596. package/dist/mcp/json.js +14 -0
  597. package/dist/mcp/json.js.map +1 -0
  598. package/dist/mcp/log-buffer.d.ts +14 -0
  599. package/dist/mcp/log-buffer.js +65 -0
  600. package/dist/mcp/log-buffer.js.map +1 -0
  601. package/dist/mcp/page-verify/accounts.d.ts +35 -0
  602. package/dist/mcp/page-verify/accounts.js +106 -0
  603. package/dist/mcp/page-verify/accounts.js.map +1 -0
  604. package/dist/mcp/page-verify/browser.d.ts +2 -0
  605. package/dist/mcp/page-verify/browser.js +58 -0
  606. package/dist/mcp/page-verify/browser.js.map +1 -0
  607. package/dist/mcp/page-verify/controls.d.ts +13 -0
  608. package/dist/mcp/page-verify/controls.js +48 -0
  609. package/dist/mcp/page-verify/controls.js.map +1 -0
  610. package/dist/mcp/page-verify/failures.d.ts +2 -0
  611. package/dist/mcp/page-verify/failures.js +52 -0
  612. package/dist/mcp/page-verify/failures.js.map +1 -0
  613. package/dist/mcp/page-verify/forms.d.ts +12 -0
  614. package/dist/mcp/page-verify/forms.js +257 -0
  615. package/dist/mcp/page-verify/forms.js.map +1 -0
  616. package/dist/mcp/page-verify/index.d.ts +20 -0
  617. package/dist/mcp/page-verify/index.js +283 -0
  618. package/dist/mcp/page-verify/index.js.map +1 -0
  619. package/dist/mcp/page-verify/interactions.d.ts +8 -0
  620. package/dist/mcp/page-verify/interactions.js +191 -0
  621. package/dist/mcp/page-verify/interactions.js.map +1 -0
  622. package/dist/mcp/page-verify/mockup.d.ts +13 -0
  623. package/dist/mcp/page-verify/mockup.js +132 -0
  624. package/dist/mcp/page-verify/mockup.js.map +1 -0
  625. package/dist/mcp/page-verify/page-probe.d.ts +191 -0
  626. package/dist/mcp/page-verify/page-probe.js +107 -0
  627. package/dist/mcp/page-verify/page-probe.js.map +1 -0
  628. package/dist/mcp/page-verify/playwright.d.ts +147 -0
  629. package/dist/mcp/page-verify/playwright.js +15 -0
  630. package/dist/mcp/page-verify/playwright.js.map +1 -0
  631. package/dist/mcp/page-verify/render.d.ts +41 -0
  632. package/dist/mcp/page-verify/render.js +293 -0
  633. package/dist/mcp/page-verify/render.js.map +1 -0
  634. package/dist/mcp/page-verify/report.d.ts +116 -0
  635. package/dist/mcp/page-verify/report.js +8 -0
  636. package/dist/mcp/page-verify/report.js.map +1 -0
  637. package/dist/mcp/page-verify/targets.d.ts +8 -0
  638. package/dist/mcp/page-verify/targets.js +39 -0
  639. package/dist/mcp/page-verify/targets.js.map +1 -0
  640. package/dist/mcp/project-files.d.ts +20 -0
  641. package/dist/mcp/project-files.js +181 -0
  642. package/dist/mcp/project-files.js.map +1 -0
  643. package/dist/mcp/protocol.d.ts +9 -0
  644. package/dist/mcp/protocol.js +129 -0
  645. package/dist/mcp/protocol.js.map +1 -0
  646. package/dist/mcp/route.d.ts +9 -0
  647. package/dist/mcp/route.js +109 -0
  648. package/dist/mcp/route.js.map +1 -0
  649. package/dist/mcp/server.d.ts +8 -0
  650. package/dist/mcp/server.js +27 -0
  651. package/dist/mcp/server.js.map +1 -0
  652. package/dist/mcp/tool.d.ts +39 -0
  653. package/dist/mcp/tool.js +50 -0
  654. package/dist/mcp/tool.js.map +1 -0
  655. package/dist/mcp/tools/builder-catalog.d.ts +1 -0
  656. package/dist/mcp/tools/builder-catalog.js +73 -0
  657. package/dist/mcp/tools/builder-catalog.js.map +1 -0
  658. package/dist/mcp/tools/builder-compose.d.ts +1 -0
  659. package/dist/mcp/tools/builder-compose.js +95 -0
  660. package/dist/mcp/tools/builder-compose.js.map +1 -0
  661. package/dist/mcp/tools/builder-pages.d.ts +1 -0
  662. package/dist/mcp/tools/builder-pages.js +185 -0
  663. package/dist/mcp/tools/builder-pages.js.map +1 -0
  664. package/dist/mcp/tools/builder-project.d.ts +1 -0
  665. package/dist/mcp/tools/builder-project.js +304 -0
  666. package/dist/mcp/tools/builder-project.js.map +1 -0
  667. package/dist/mcp/tools/builder-queries.d.ts +12 -0
  668. package/dist/mcp/tools/builder-queries.js +110 -0
  669. package/dist/mcp/tools/builder-queries.js.map +1 -0
  670. package/dist/mcp/tools/builder-resources.d.ts +1 -0
  671. package/dist/mcp/tools/builder-resources.js +154 -0
  672. package/dist/mcp/tools/builder-resources.js.map +1 -0
  673. package/dist/mcp/tools/builder-shared.d.ts +14 -0
  674. package/dist/mcp/tools/builder-shared.js +44 -0
  675. package/dist/mcp/tools/builder-shared.js.map +1 -0
  676. package/dist/mcp/tools/builder-table-view.d.ts +246 -0
  677. package/dist/mcp/tools/builder-table-view.js +145 -0
  678. package/dist/mcp/tools/builder-table-view.js.map +1 -0
  679. package/dist/mcp/tools/builder-theme.d.ts +1 -0
  680. package/dist/mcp/tools/builder-theme.js +39 -0
  681. package/dist/mcp/tools/builder-theme.js.map +1 -0
  682. package/dist/mcp/tools/database.d.ts +1 -0
  683. package/dist/mcp/tools/database.js +114 -0
  684. package/dist/mcp/tools/database.js.map +1 -0
  685. package/dist/mcp/tools/index.d.ts +2 -0
  686. package/dist/mcp/tools/index.js +36 -0
  687. package/dist/mcp/tools/index.js.map +1 -0
  688. package/dist/mcp/tools/json-patch.d.ts +82 -0
  689. package/dist/mcp/tools/json-patch.js +144 -0
  690. package/dist/mcp/tools/json-patch.js.map +1 -0
  691. package/dist/mcp/tools/mockup-annotations.d.ts +1 -0
  692. package/dist/mcp/tools/mockup-annotations.js +32 -0
  693. package/dist/mcp/tools/mockup-annotations.js.map +1 -0
  694. package/dist/mcp/tools/mockup-apply-to-page.d.ts +1 -0
  695. package/dist/mcp/tools/mockup-apply-to-page.js +32 -0
  696. package/dist/mcp/tools/mockup-apply-to-page.js.map +1 -0
  697. package/dist/mcp/tools/mockup-from-page.d.ts +1 -0
  698. package/dist/mcp/tools/mockup-from-page.js +29 -0
  699. package/dist/mcp/tools/mockup-from-page.js.map +1 -0
  700. package/dist/mcp/tools/mockup-patch-spec.d.ts +1 -0
  701. package/dist/mcp/tools/mockup-patch-spec.js +67 -0
  702. package/dist/mcp/tools/mockup-patch-spec.js.map +1 -0
  703. package/dist/mcp/tools/mockup-resolve-annotation.d.ts +1 -0
  704. package/dist/mcp/tools/mockup-resolve-annotation.js +28 -0
  705. package/dist/mcp/tools/mockup-resolve-annotation.js.map +1 -0
  706. package/dist/mcp/tools/mockup-support.d.ts +9 -0
  707. package/dist/mcp/tools/mockup-support.js +45 -0
  708. package/dist/mcp/tools/mockup-support.js.map +1 -0
  709. package/dist/mcp/tools/mockup-write-spec.d.ts +1 -0
  710. package/dist/mcp/tools/mockup-write-spec.js +16 -0
  711. package/dist/mcp/tools/mockup-write-spec.js.map +1 -0
  712. package/dist/mcp/tools/mockup.d.ts +2 -0
  713. package/dist/mcp/tools/mockup.js +18 -0
  714. package/dist/mcp/tools/mockup.js.map +1 -0
  715. package/dist/mcp/tools/page-verify.d.ts +1 -0
  716. package/dist/mcp/tools/page-verify.js +116 -0
  717. package/dist/mcp/tools/page-verify.js.map +1 -0
  718. package/dist/mcp/tools/pages.d.ts +3 -0
  719. package/dist/mcp/tools/pages.js +77 -0
  720. package/dist/mcp/tools/pages.js.map +1 -0
  721. package/dist/mcp/tools/preview-blocks.d.ts +1 -0
  722. package/dist/mcp/tools/preview-blocks.js +268 -0
  723. package/dist/mcp/tools/preview-blocks.js.map +1 -0
  724. package/dist/mcp/tools/query-logs.d.ts +1 -0
  725. package/dist/mcp/tools/query-logs.js +25 -0
  726. package/dist/mcp/tools/query-logs.js.map +1 -0
  727. package/dist/mcp/tools/typecheck.d.ts +1 -0
  728. package/dist/mcp/tools/typecheck.js +113 -0
  729. package/dist/mcp/tools/typecheck.js.map +1 -0
  730. package/dist/mockup/anchor.d.ts +43 -0
  731. package/dist/mockup/anchor.js +193 -0
  732. package/dist/mockup/anchor.js.map +1 -0
  733. package/dist/mockup/annotations.d.ts +88 -0
  734. package/dist/mockup/annotations.js +169 -0
  735. package/dist/mockup/annotations.js.map +1 -0
  736. package/dist/mockup/apply-fate.d.ts +52 -0
  737. package/dist/mockup/apply-fate.js +148 -0
  738. package/dist/mockup/apply-fate.js.map +1 -0
  739. package/dist/mockup/apply-match.d.ts +39 -0
  740. package/dist/mockup/apply-match.js +129 -0
  741. package/dist/mockup/apply-match.js.map +1 -0
  742. package/dist/mockup/apply-names.d.ts +4 -0
  743. package/dist/mockup/apply-names.js +52 -0
  744. package/dist/mockup/apply-names.js.map +1 -0
  745. package/dist/mockup/apply-notes.d.ts +9 -0
  746. package/dist/mockup/apply-notes.js +16 -0
  747. package/dist/mockup/apply-notes.js.map +1 -0
  748. package/dist/mockup/apply-options.d.ts +18 -0
  749. package/dist/mockup/apply-options.js +117 -0
  750. package/dist/mockup/apply-options.js.map +1 -0
  751. package/dist/mockup/apply-plan.d.ts +23 -0
  752. package/dist/mockup/apply-plan.js +237 -0
  753. package/dist/mockup/apply-plan.js.map +1 -0
  754. package/dist/mockup/apply-to-page.d.ts +35 -0
  755. package/dist/mockup/apply-to-page.js +145 -0
  756. package/dist/mockup/apply-to-page.js.map +1 -0
  757. package/dist/mockup/built-sync.d.ts +16 -0
  758. package/dist/mockup/built-sync.js +53 -0
  759. package/dist/mockup/built-sync.js.map +1 -0
  760. package/dist/mockup/compile.d.ts +24 -0
  761. package/dist/mockup/compile.js +264 -0
  762. package/dist/mockup/compile.js.map +1 -0
  763. package/dist/mockup/controller-blocks.d.ts +35 -0
  764. package/dist/mockup/controller-blocks.js +204 -0
  765. package/dist/mockup/controller-blocks.js.map +1 -0
  766. package/dist/mockup/files.d.ts +18 -0
  767. package/dist/mockup/files.js +36 -0
  768. package/dist/mockup/files.js.map +1 -0
  769. package/dist/mockup/fixtures.d.ts +45 -0
  770. package/dist/mockup/fixtures.js +139 -0
  771. package/dist/mockup/fixtures.js.map +1 -0
  772. package/dist/mockup/form-fields.d.ts +3 -0
  773. package/dist/mockup/form-fields.js +75 -0
  774. package/dist/mockup/form-fields.js.map +1 -0
  775. package/dist/mockup/from-page-routes.d.ts +13 -0
  776. package/dist/mockup/from-page-routes.js +75 -0
  777. package/dist/mockup/from-page-routes.js.map +1 -0
  778. package/dist/mockup/from-page-sketch.d.ts +8 -0
  779. package/dist/mockup/from-page-sketch.js +53 -0
  780. package/dist/mockup/from-page-sketch.js.map +1 -0
  781. package/dist/mockup/from-page.d.ts +19 -0
  782. package/dist/mockup/from-page.js +296 -0
  783. package/dist/mockup/from-page.js.map +1 -0
  784. package/dist/mockup/index.d.ts +19 -0
  785. package/dist/mockup/index.js +59 -0
  786. package/dist/mockup/index.js.map +1 -0
  787. package/dist/mockup/json-schema.d.ts +3 -0
  788. package/dist/mockup/json-schema.js +253 -0
  789. package/dist/mockup/json-schema.js.map +1 -0
  790. package/dist/mockup/live-page.d.ts +45 -0
  791. package/dist/mockup/live-page.js +188 -0
  792. package/dist/mockup/live-page.js.map +1 -0
  793. package/dist/mockup/model.d.ts +372 -0
  794. package/dist/mockup/model.js +125 -0
  795. package/dist/mockup/model.js.map +1 -0
  796. package/dist/mockup/owner-controller.d.ts +12 -0
  797. package/dist/mockup/owner-controller.js +41 -0
  798. package/dist/mockup/owner-controller.js.map +1 -0
  799. package/dist/mockup/page.d.ts +19 -0
  800. package/dist/mockup/page.js +83 -0
  801. package/dist/mockup/page.js.map +1 -0
  802. package/dist/mockup/queue.d.ts +1 -0
  803. package/dist/mockup/queue.js +17 -0
  804. package/dist/mockup/queue.js.map +1 -0
  805. package/dist/mockup/routes.d.ts +30 -0
  806. package/dist/mockup/routes.js +274 -0
  807. package/dist/mockup/routes.js.map +1 -0
  808. package/dist/mockup/sample-rows.d.ts +7 -0
  809. package/dist/mockup/sample-rows.js +30 -0
  810. package/dist/mockup/sample-rows.js.map +1 -0
  811. package/dist/mockup/sketch.d.ts +8 -0
  812. package/dist/mockup/sketch.js +150 -0
  813. package/dist/mockup/sketch.js.map +1 -0
  814. package/dist/mockup/source-routes.d.ts +24 -0
  815. package/dist/mockup/source-routes.js +105 -0
  816. package/dist/mockup/source-routes.js.map +1 -0
  817. package/dist/mockup/source.d.ts +29 -0
  818. package/dist/mockup/source.js +131 -0
  819. package/dist/mockup/source.js.map +1 -0
  820. package/dist/mockup/store.d.ts +63 -0
  821. package/dist/mockup/store.js +296 -0
  822. package/dist/mockup/store.js.map +1 -0
  823. package/dist/mockup/validate.d.ts +9 -0
  824. package/dist/mockup/validate.js +172 -0
  825. package/dist/mockup/validate.js.map +1 -0
  826. package/dist/pages/public/preview/index.d.ts +4 -0
  827. package/dist/pages/public/preview/index.js +3 -3
  828. package/dist/pages/public/preview/index.js.map +1 -1
  829. package/dist/pages/settings/users/invite-extension-routes.js.map +1 -1
  830. package/dist/pages/settings/users/notifications.d.ts +3 -4
  831. package/dist/pages/settings/users/notifications.js +8 -24
  832. package/dist/pages/settings/users/notifications.js.map +1 -1
  833. package/dist/pages/settings/users/permission-tree-nodes.d.ts +3 -3
  834. package/dist/pages/settings/users/permission-tree-nodes.js.map +1 -1
  835. package/dist/pages/settings/users/permission-warnings.js.map +1 -1
  836. package/dist/pages/settings/users/role-editor-store.d.ts +1 -0
  837. package/dist/pages/settings/users/role-editor-store.js +27 -7
  838. package/dist/pages/settings/users/role-editor-store.js.map +1 -1
  839. package/dist/pages/settings/users/role-preview.js +1 -1
  840. package/dist/pages/settings/users/role-preview.js.map +1 -1
  841. package/dist/pages/settings/users/roles.js +14 -0
  842. package/dist/pages/settings/users/roles.js.map +1 -1
  843. package/dist/pages/settings/users/two-factor-operations.d.ts +0 -1
  844. package/dist/pages/settings/users/two-factor-operations.js +0 -1
  845. package/dist/pages/settings/users/two-factor-operations.js.map +1 -1
  846. package/dist/realtime/sessions.d.ts +9 -0
  847. package/dist/realtime/sessions.js +6 -0
  848. package/dist/realtime/sessions.js.map +1 -1
  849. package/dist/routes/auth/two-factor-throttle.js +5 -1
  850. package/dist/routes/auth/two-factor-throttle.js.map +1 -1
  851. package/dist/routes/files.d.ts +2 -2
  852. package/dist/routes/files.js +2 -2
  853. package/dist/routes/files.js.map +1 -1
  854. package/dist/routes/onboarding.js +4 -6
  855. package/dist/routes/onboarding.js.map +1 -1
  856. package/dist/routes/realtime.d.ts +3 -3
  857. package/dist/routes/realtime.js +22 -18
  858. package/dist/routes/realtime.js.map +1 -1
  859. package/dist/routes/system-state.d.ts +6 -6
  860. package/dist/routes/system-state.js +1 -1
  861. package/dist/routes/system-state.js.map +1 -1
  862. package/dist/store/catalog.d.ts +2 -2
  863. package/dist/store/declarations.d.ts +0 -3
  864. package/dist/store/declarations.js +5 -74
  865. package/dist/store/declarations.js.map +1 -1
  866. package/dist/store/internal/frontend/frontend-ready.d.ts +2 -2
  867. package/dist/store/runtime.d.ts +2 -2
  868. package/dist/utils/export-jobs-run.d.ts +6 -6
  869. package/dist/utils/export-jobs-run.js +3 -7
  870. package/dist/utils/export-jobs-run.js.map +1 -1
  871. package/dist/utils/export-jobs.js +20 -1
  872. package/dist/utils/export-jobs.js.map +1 -1
  873. package/dist/utils/index.d.ts +1 -0
  874. package/dist/utils/index.js +1 -0
  875. package/dist/utils/index.js.map +1 -1
  876. package/dist/utils/page-access.d.ts +4 -0
  877. package/dist/utils/page-access.js +10 -3
  878. package/dist/utils/page-access.js.map +1 -1
  879. package/dist/utils/query-text.d.ts +2 -0
  880. package/dist/utils/query-text.js +7 -0
  881. package/dist/utils/query-text.js.map +1 -0
  882. package/dist/utils/row-action-rule-evaluator.d.ts +2 -2
  883. package/dist/utils/tenant-instances.js +3 -3
  884. package/dist/utils/tenant-instances.js.map +1 -1
  885. package/dist/validation/auth.schema.d.ts +6 -6
  886. package/dist/validation/regional-preferences.schema.d.ts +4 -4
  887. package/dist/validation/user-notification-preferences.schema.d.ts +0 -1
  888. package/dist/validation/user-notification-preferences.schema.js +6 -3
  889. package/dist/validation/user-notification-preferences.schema.js.map +1 -1
  890. package/frontend-vue/deferred-plugins.ts +2 -0
  891. package/frontend-vue/dms.frontend.ts +34 -1
  892. package/frontend-vue/dms.server.ts +3 -1
  893. package/frontend-vue/eslint-globals.generated.mjs +7 -1
  894. package/frontend-vue/layers/dms-auth/app/components/OAuthButtons.vue +1 -1
  895. package/frontend-vue/layers/dms-auth/app/middleware/auth.ts +8 -3
  896. package/frontend-vue/layers/dms-auth/server/accounts.ts +2 -8
  897. package/frontend-vue/layers/dms-auth/server/actions.ts +83 -60
  898. package/frontend-vue/layers/dms-auth/server/backend-answers.ts +95 -0
  899. package/frontend-vue/layers/dms-auth/server/oauth.ts +26 -29
  900. package/frontend-vue/layers/dms-auth/server/session.ts +62 -27
  901. package/frontend-vue/layers/dms-core/app/build/composables/auth/usePermissionPreview.ts +20 -9
  902. package/frontend-vue/layers/dms-core/app/build/composables/user/tablePreferences.ts +9 -7
  903. package/frontend-vue/layers/dms-core/app/build/utils/permission-preview.ts +4 -4
  904. package/frontend-vue/layers/dms-core/app/build/utils/sharedRealtimeConnection.ts +10 -0
  905. package/frontend-vue/layers/dms-core/app/composables/realtime/useUserRealtime.ts +2 -0
  906. package/frontend-vue/layers/dms-core/app/composables/useApiErrorPresenter.ts +1 -1
  907. package/frontend-vue/layers/dms-core/app/composables/user/usePreferences.ts +0 -16
  908. package/frontend-vue/layers/dms-core/app/composables/watch/useWatch.ts +4 -0
  909. package/frontend-vue/layers/dms-core/app/types/menu.ts +5 -0
  910. package/frontend-vue/layers/dms-core/app/types/page.ts +4 -6
  911. package/frontend-vue/layers/dms-core/app/utils/regional.ts +1 -2
  912. package/frontend-vue/layers/dms-layout/app/assets/css/main.css +28 -32
  913. package/frontend-vue/layers/dms-layout/app/assets/css/status.css +137 -0
  914. package/frontend-vue/layers/dms-layout/app/build/branding/BrandingColorPair.vue +77 -0
  915. package/frontend-vue/layers/dms-layout/app/build/branding/BrandingDeveloperPanel.vue +266 -0
  916. package/frontend-vue/layers/dms-layout/app/build/branding/BrandingEditor.vue +316 -0
  917. package/frontend-vue/layers/dms-layout/app/build/branding/BrandingLogoTile.vue +67 -0
  918. package/frontend-vue/layers/dms-layout/app/build/branding/BrandingPaletteSwatches.vue +63 -0
  919. package/frontend-vue/layers/dms-layout/app/build/branding/BrandingPreview.vue +138 -0
  920. package/frontend-vue/layers/dms-layout/app/build/branding/BrandingSimplePanel.vue +171 -0
  921. package/frontend-vue/layers/dms-layout/app/build/branding/BrandingValueInput.vue +36 -0
  922. package/frontend-vue/layers/dms-layout/app/build/branding/api.ts +55 -0
  923. package/frontend-vue/layers/dms-layout/app/build/branding/catalog.ts +209 -0
  924. package/frontend-vue/layers/dms-layout/app/build/branding/color-input.ts +35 -0
  925. package/frontend-vue/layers/dms-layout/app/build/branding/device-draft.ts +290 -0
  926. package/frontend-vue/layers/dms-layout/app/build/branding/errors.ts +23 -0
  927. package/frontend-vue/layers/dms-layout/app/build/branding/fonts.ts +106 -0
  928. package/frontend-vue/layers/dms-layout/app/build/branding/header-action.ts +19 -0
  929. package/frontend-vue/layers/dms-layout/app/build/branding/logo-tiles.ts +73 -0
  930. package/frontend-vue/layers/dms-layout/app/build/branding/logos.ts +180 -0
  931. package/frontend-vue/layers/dms-layout/app/build/branding/model.ts +391 -0
  932. package/frontend-vue/layers/dms-layout/app/build/branding/preview-style.ts +182 -0
  933. package/frontend-vue/layers/dms-layout/app/build/branding/raster.ts +97 -0
  934. package/frontend-vue/layers/dms-layout/app/build/branding/theme-types.ts +105 -0
  935. package/frontend-vue/layers/dms-layout/app/build/branding/useBrandingEditor.ts +256 -0
  936. package/frontend-vue/layers/dms-layout/app/build/branding/values.ts +103 -0
  937. package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardFrame.vue +1 -1
  938. package/frontend-vue/layers/dms-layout/app/build/components/layout/PageHeaderActionsOutlet.vue +50 -32
  939. package/frontend-vue/layers/dms-layout/app/build/components/layout/PreviewSidebar.vue +62 -0
  940. package/frontend-vue/layers/dms-layout/app/build/components/layout/StageCard.vue +5 -5
  941. package/frontend-vue/layers/dms-layout/app/build/components/notification/NotificationCard.vue +1 -1
  942. package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleCatalogTile.vue +1 -1
  943. package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleStoreBanners.vue +4 -4
  944. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationInboxDisplay.vue +3 -3
  945. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationPreferencesForm.vue +2 -2
  946. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/profile/ProfilePersonalInfo.vue +2 -2
  947. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/region/RegionFormatPreview.vue +3 -3
  948. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RoleEditor.vue +5 -5
  949. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RoleOwnerPanel.vue +3 -3
  950. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolePermissionArea.vue +1 -1
  951. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolePermissionLeaf.vue +1 -1
  952. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolesList.vue +5 -5
  953. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolesListItem.vue +1 -1
  954. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/role-permissions.ts +34 -0
  955. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/role-types.ts +1 -1
  956. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/useRoleEditor.ts +13 -10
  957. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityBackupCodesModal.vue +1 -1
  958. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityDialogFrame.vue +1 -1
  959. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityEmail.vue +6 -6
  960. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityPassword.vue +2 -2
  961. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecuritySessions.vue +2 -2
  962. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityTwoFactor.vue +2 -2
  963. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/AppearanceAccessibility.vue +2 -2
  964. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/CssVariablesList.vue +15 -7
  965. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/ScalePreview.vue +1 -0
  966. package/frontend-vue/layers/dms-layout/app/build/composables/general/useGithubStarPrompt.ts +7 -3
  967. package/frontend-vue/layers/dms-layout/app/build/composables/notification/useNotificationGroupsOpen.ts +7 -3
  968. package/frontend-vue/layers/dms-layout/app/build/composables/settings/security/useSecurityOverview.ts +0 -1
  969. package/frontend-vue/layers/dms-layout/app/build/mockup/header-action.ts +125 -0
  970. package/frontend-vue/layers/dms-layout/app/build/mockups/header-action.ts +19 -0
  971. package/frontend-vue/layers/dms-layout/app/build/utils/module-store-catalog.ts +5 -7
  972. package/frontend-vue/layers/dms-layout/app/build/utils/modules-catalog.ts +1 -6
  973. package/frontend-vue/layers/dms-layout/app/components/AppWidgetsDock.vue +36 -2
  974. package/frontend-vue/layers/dms-layout/app/components/layout/HStack.vue +2 -0
  975. package/frontend-vue/layers/dms-layout/app/components/layout/VStack.vue +2 -0
  976. package/frontend-vue/layers/dms-layout/app/components/navigation/CollapsedMenuItem.vue +20 -12
  977. package/frontend-vue/layers/dms-layout/app/components/navigation/NavigationMenu.vue +63 -2
  978. package/frontend-vue/layers/dms-layout/app/composables/layout/useServedHeaderActions.ts +10 -3
  979. package/frontend-vue/layers/dms-layout/app/composables/profile/useUserLanguage.ts +5 -0
  980. package/frontend-vue/layers/dms-layout/app/composables/useAppWidgets.ts +12 -0
  981. package/frontend-vue/layers/dms-layout/app/composables/useMenuLocks.ts +48 -0
  982. package/frontend-vue/layers/dms-layout/app/custom-layouts/EmptyLayout.vue +1 -1
  983. package/frontend-vue/layers/dms-layout/app/custom-layouts/PreviewLayout.vue +47 -5
  984. package/frontend-vue/layers/dms-layout/app/custom-pages/modules-store.vue +11 -8
  985. package/frontend-vue/layers/dms-layout/app/custom-pages/modules.vue +10 -10
  986. package/frontend-vue/layers/dms-layout/app/custom-pages/settings/shortcuts.vue +4 -4
  987. package/frontend-vue/layers/dms-layout/app/entries/branding/BrandingEditor.ts +1 -0
  988. package/frontend-vue/layers/dms-layout/app/entries/branding/header-action.ts +2 -0
  989. package/frontend-vue/layers/dms-layout/app/entries/branding/model.ts +5 -0
  990. package/frontend-vue/layers/dms-layout/app/entries/components/layout/LayoutFooter.ts +2 -0
  991. package/frontend-vue/layers/dms-layout/app/entries/mockup/header-action.ts +2 -0
  992. package/frontend-vue/layers/dms-layout/app/entries/mockups/header-action.ts +2 -0
  993. package/frontend-vue/layers/dms-layout/app/pages/[...slug].vue +4 -0
  994. package/frontend-vue/layers/dms-layout/app/plugins/dms-mcp-navigate.client.ts +13 -0
  995. package/frontend-vue/layers/dms-layout/i18n/locales/layout-en-GB.json +181 -8
  996. package/frontend-vue/layers/dms-layout/i18n/locales/layout-fr-FR.json +181 -8
  997. package/frontend-vue/layers/dms-layout/server/html-render.ts +3 -6
  998. package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/StepMeta.vue +1 -1
  999. package/frontend-vue/layers/dms-onboarding/app/custom-pages/onboarding.vue +3 -3
  1000. package/frontend-vue/layers/dms-onboarding/app/entries/components/onboarding/steps/StepReady.ts +2 -0
  1001. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/BlockPreviewSketch.vue +77 -0
  1002. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupAnnotations.vue +93 -0
  1003. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupBlockCatalog.vue +76 -0
  1004. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupCommentPanel.vue +85 -0
  1005. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupEditOverlay.vue +240 -0
  1006. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupEditPanel.vue +91 -0
  1007. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupIndex.vue +66 -0
  1008. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupInspector.vue +182 -0
  1009. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupInspectorField.vue +172 -0
  1010. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupIssues.vue +32 -0
  1011. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupLayers.vue +44 -0
  1012. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPageInspector.vue +92 -0
  1013. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPagesList.vue +125 -0
  1014. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPromptModal.vue +51 -0
  1015. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTopBar.vue +138 -0
  1016. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkbench.vue +493 -0
  1017. package/frontend-vue/layers/dms-ui/app/build/components/containers/TargetComponentTree.vue +1 -0
  1018. package/frontend-vue/layers/dms-ui/app/build/components/form/FormFieldControl.vue +16 -8
  1019. package/frontend-vue/layers/dms-ui/app/build/components/form/FormSectionNav.vue +2 -2
  1020. package/frontend-vue/layers/dms-ui/app/build/components/form/FormSections.vue +7 -4
  1021. package/frontend-vue/layers/dms-ui/app/build/components/section/context.ts +1 -1
  1022. package/frontend-vue/layers/dms-ui/app/build/components/stat/StatCell.vue +3 -3
  1023. package/frontend-vue/layers/dms-ui/app/build/components/table/FiltersRow.vue +1 -1
  1024. package/frontend-vue/layers/dms-ui/app/build/components/table/MenuColumns.vue +1 -1
  1025. package/frontend-vue/layers/dms-ui/app/build/components/table/MenuDensity.vue +1 -1
  1026. package/frontend-vue/layers/dms-ui/app/build/components/table/MenuFilter.vue +5 -5
  1027. package/frontend-vue/layers/dms-ui/app/build/components/table/MenuImport.vue +6 -6
  1028. package/frontend-vue/layers/dms-ui/app/build/components/table/MenuPage.vue +1 -1
  1029. package/frontend-vue/layers/dms-ui/app/build/components/table/MenuRoot.vue +6 -6
  1030. package/frontend-vue/layers/dms-ui/app/build/components/table/MenuSort.vue +1 -1
  1031. package/frontend-vue/layers/dms-ui/app/build/components/table/MenuViewMode.vue +5 -1
  1032. package/frontend-vue/layers/dms-ui/app/build/components/table/RowSelection.vue +1 -1
  1033. package/frontend-vue/layers/dms-ui/app/build/components/table/Table.types.ts +1 -1
  1034. package/frontend-vue/layers/dms-ui/app/build/components/table/{Actions.vue → TableActions.vue} +22 -22
  1035. package/frontend-vue/layers/dms-ui/app/build/components/table/TableBody.vue +1 -1
  1036. package/frontend-vue/layers/dms-ui/app/build/components/table/{Empty.vue → TableEmpty.vue} +2 -2
  1037. package/frontend-vue/layers/dms-ui/app/build/components/table/{Menu.vue → TableMenu.vue} +1 -0
  1038. package/frontend-vue/layers/dms-ui/app/build/components/table/{Pagination.vue → TablePagination.vue} +1 -1
  1039. package/frontend-vue/layers/dms-ui/app/build/components/table/{Table.vue → TableRoot.vue} +3 -3
  1040. package/frontend-vue/layers/dms-ui/app/build/components/table/{Views.vue → TableViews.vue} +37 -14
  1041. package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardRowActions.vue +2 -2
  1042. package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardsDisplay.vue +9 -5
  1043. package/frontend-vue/layers/dms-ui/app/build/components/table-view/ExpandedRowDetail.vue +4 -3
  1044. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewGeometry.ts +53 -0
  1045. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewNavigation.ts +23 -0
  1046. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockInspector.ts +115 -0
  1047. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockPreviewEmbed.ts +78 -9
  1048. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupCatalog.ts +45 -0
  1049. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupComments.ts +95 -0
  1050. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupEditing.ts +323 -0
  1051. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupHandoff.ts +62 -0
  1052. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSession.ts +115 -0
  1053. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSpec.ts +433 -0
  1054. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewFrame.ts +94 -0
  1055. package/frontend-vue/layers/dms-ui/app/build/composables/data-types/metricCells.ts +1 -1
  1056. package/frontend-vue/layers/dms-ui/app/build/composables/form/fieldComponentProps.ts +113 -0
  1057. package/frontend-vue/layers/dms-ui/app/build/composables/form/formLayout.ts +4 -4
  1058. package/frontend-vue/layers/dms-ui/app/build/composables/form/formState.ts +7 -3
  1059. package/frontend-vue/layers/dms-ui/app/build/composables/form/useFormModel.ts +1 -1
  1060. package/frontend-vue/layers/dms-ui/app/build/composables/live/liveStorage.ts +11 -5
  1061. package/frontend-vue/layers/dms-ui/app/build/composables/page/blockAnchors.ts +65 -0
  1062. package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnActionDescriptors.ts +1 -1
  1063. package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnActionRendering.ts +1 -1
  1064. package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnActionSizing.ts +1 -1
  1065. package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnHeaders.ts +1 -1
  1066. package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnStructure.ts +1 -1
  1067. package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnTypes.ts +1 -1
  1068. package/frontend-vue/layers/dms-ui/app/build/composables/table/useTable.ts +1 -1
  1069. package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableColumns.ts +1 -1
  1070. package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableConfigClipboard.ts +1 -1
  1071. package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableContext.ts +4 -1
  1072. package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableStates.ts +1 -1
  1073. package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/clearTableFilters.ts +1 -1
  1074. package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/filterEditorValue.ts +1 -1
  1075. package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/formatFilterValue.ts +2 -2
  1076. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableRowActionContainers.ts +3 -3
  1077. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewBindings.ts +1 -1
  1078. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewCounts.ts +4 -3
  1079. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewDisplays.ts +1 -1
  1080. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewFilters.ts +1 -1
  1081. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewNavigation.ts +1 -1
  1082. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewQuickFilters.ts +18 -13
  1083. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewViews.ts +2 -2
  1084. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useGroupedRows.ts +4 -4
  1085. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableFooter.ts +1 -1
  1086. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableViews.ts +19 -22
  1087. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/groupedRows.ts +1 -1
  1088. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/quickFilters.ts +1 -1
  1089. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableCounts.ts +5 -1
  1090. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableQuery.ts +1 -1
  1091. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/urlFilters.ts +1 -1
  1092. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/views.ts +48 -3
  1093. package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCards.vue +188 -0
  1094. package/frontend-vue/layers/dms-ui/app/build/mockups/MockupThumbnail.vue +137 -0
  1095. package/frontend-vue/layers/dms-ui/app/build/mockups/resync.ts +56 -0
  1096. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreview.ts +77 -105
  1097. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +362 -0
  1098. package/frontend-vue/layers/dms-ui/app/build/utils/eyebrow.ts +1 -1
  1099. package/frontend-vue/layers/dms-ui/app/build/utils/mockup.ts +436 -0
  1100. package/frontend-vue/layers/dms-ui/app/build/utils/mockupCatalog.ts +437 -0
  1101. package/frontend-vue/layers/dms-ui/app/build/utils/mockupDrop.ts +260 -0
  1102. package/frontend-vue/layers/dms-ui/app/build/utils/mockupEdit.ts +487 -0
  1103. package/frontend-vue/layers/dms-ui/app/build/utils/mockupHandoff.ts +20 -0
  1104. package/frontend-vue/layers/dms-ui/app/build/utils/mockupHistory.ts +80 -0
  1105. package/frontend-vue/layers/dms-ui/app/build/utils/mockupInspector.ts +120 -0
  1106. package/frontend-vue/layers/dms-ui/app/build/utils/mockupOutline.ts +91 -0
  1107. package/frontend-vue/layers/dms-ui/app/build/utils/mockupSpec.ts +219 -0
  1108. package/frontend-vue/layers/dms-ui/app/build/utils/mockupStamp.ts +265 -0
  1109. package/frontend-vue/layers/dms-ui/app/build/utils/mockupStream.ts +98 -0
  1110. package/frontend-vue/layers/dms-ui/app/build/utils/sanitizedNodes.ts +27 -0
  1111. package/frontend-vue/layers/dms-ui/app/build/utils/sketch.ts +158 -0
  1112. package/frontend-vue/layers/dms-ui/app/components/RecursiveComponent.vue +1 -0
  1113. package/frontend-vue/layers/dms-ui/app/components/activity-feed/ActivityFeed.vue +4 -4
  1114. package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +32 -6
  1115. package/frontend-vue/layers/dms-ui/app/components/block-preview/MockupViewer.vue +38 -0
  1116. package/frontend-vue/layers/dms-ui/app/components/blocks/BannerBlock.vue +3 -3
  1117. package/frontend-vue/layers/dms-ui/app/components/blocks/CardBlock.vue +3 -3
  1118. package/frontend-vue/layers/dms-ui/app/components/blocks/KeyValueListBlock.vue +2 -2
  1119. package/frontend-vue/layers/dms-ui/app/components/blocks/LiveToggleBlock.vue +2 -2
  1120. package/frontend-vue/layers/dms-ui/app/components/card/{Card.vue → CardPanel.vue} +2 -2
  1121. package/frontend-vue/layers/dms-ui/app/components/chart/ChartCard.vue +4 -4
  1122. package/frontend-vue/layers/dms-ui/app/components/confirm/ConfirmModal.vue +1 -0
  1123. package/frontend-vue/layers/dms-ui/app/components/flow-canvas/FlowCanvas.vue +1 -1
  1124. package/frontend-vue/layers/dms-ui/app/components/form/{Form.vue → FormBlock.vue} +1 -1
  1125. package/frontend-vue/layers/dms-ui/app/components/form/LocalizedField.vue +34 -25
  1126. package/frontend-vue/layers/dms-ui/app/components/form/components/DatePicker.vue +17 -16
  1127. package/frontend-vue/layers/dms-ui/app/components/form/components/DisplayImage.vue +1 -0
  1128. package/frontend-vue/layers/dms-ui/app/components/form/components/DisplayRichText.vue +12 -4
  1129. package/frontend-vue/layers/dms-ui/app/components/form/components/{Calendar.vue → InputCalendar.vue} +11 -10
  1130. package/frontend-vue/layers/dms-ui/app/components/form/components/{Cascader.vue → InputCascader.vue} +0 -6
  1131. package/frontend-vue/layers/dms-ui/app/components/form/components/{Image.vue → InputImage.vue} +1 -0
  1132. package/frontend-vue/layers/dms-ui/app/components/form/components/{Relation.vue → InputRelation.vue} +14 -11
  1133. package/frontend-vue/layers/dms-ui/app/components/form/components/{Repeater.vue → InputRepeater.vue} +1 -0
  1134. package/frontend-vue/layers/dms-ui/app/components/form/components/{Select.vue → InputSelect.vue} +9 -5
  1135. package/frontend-vue/layers/dms-ui/app/components/form/components/KeyValue.vue +4 -3
  1136. package/frontend-vue/layers/dms-ui/app/components/form/components/SegmentedSelect.vue +2 -2
  1137. package/frontend-vue/layers/dms-ui/app/components/kpi/KpiCard.vue +7 -7
  1138. package/frontend-vue/layers/dms-ui/app/components/meter/MeterBlock.vue +5 -5
  1139. package/frontend-vue/layers/dms-ui/app/components/period/PeriodSelector.vue +1 -1
  1140. package/frontend-vue/layers/dms-ui/app/components/section-header/SectionHeader.vue +2 -2
  1141. package/frontend-vue/layers/dms-ui/app/components/status/StatusSummary.vue +3 -3
  1142. package/frontend-vue/layers/dms-ui/app/components/table-view/ImagePreview.vue +1 -0
  1143. package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanBoard.vue +20 -18
  1144. package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanDisplay.vue +1 -1
  1145. package/frontend-vue/layers/dms-ui/app/components/table-view/TableView.vue +6 -5
  1146. package/frontend-vue/layers/dms-ui/app/components/top-list/TopListCard.vue +2 -2
  1147. package/frontend-vue/layers/dms-ui/app/components/top-list/internal/TopListRow.vue +2 -2
  1148. package/frontend-vue/layers/dms-ui/app/composables/chart/formatValue.ts +1 -1
  1149. package/frontend-vue/layers/dms-ui/app/composables/chart/types.ts +1 -1
  1150. package/frontend-vue/layers/dms-ui/app/composables/confirm/types.ts +1 -1
  1151. package/frontend-vue/layers/dms-ui/app/composables/form/types/props.ts +2 -2
  1152. package/frontend-vue/layers/dms-ui/app/composables/form/useForm.ts +2 -2
  1153. package/frontend-vue/layers/dms-ui/app/composables/tab/useTab.ts +6 -7
  1154. package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/index.ts +1 -1
  1155. package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewDelete.ts +1 -1
  1156. package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewShiftA.ts +1 -1
  1157. package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewShiftN.ts +1 -1
  1158. package/frontend-vue/layers/dms-ui/app/composables/table-view/types/display.ts +1 -1
  1159. package/frontend-vue/layers/dms-ui/app/composables/table-view/useTableViewEmptyState.ts +1 -1
  1160. package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/BlockPreviewSketch.ts +2 -0
  1161. package/frontend-vue/layers/dms-ui/app/entries/components/table/TableActions.ts +2 -0
  1162. package/frontend-vue/layers/dms-ui/app/entries/components/table/TableEmpty.ts +2 -0
  1163. package/frontend-vue/layers/dms-ui/app/entries/components/table/TablePagination.ts +2 -0
  1164. package/frontend-vue/layers/dms-ui/app/entries/components/table/TableRoot.ts +2 -0
  1165. package/frontend-vue/layers/dms-ui/app/entries/components/table/TableViews.ts +2 -0
  1166. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/previewNavigation.ts +1 -0
  1167. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useBlockInspector.ts +1 -0
  1168. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupSpec.ts +1 -0
  1169. package/frontend-vue/layers/dms-ui/app/entries/mockups/MockupCards.ts +1 -0
  1170. package/frontend-vue/layers/dms-ui/app/entries/mockups/MockupThumbnail.ts +1 -0
  1171. package/frontend-vue/layers/dms-ui/app/entries/utils/blockPreview.ts +1 -0
  1172. package/frontend-vue/layers/dms-ui/app/entries/utils/mockup.ts +1 -0
  1173. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupCatalog.ts +1 -0
  1174. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupDrop.ts +1 -0
  1175. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupEdit.ts +1 -0
  1176. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupHistory.ts +1 -0
  1177. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupInspector.ts +1 -0
  1178. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupOutline.ts +1 -0
  1179. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupSpec.ts +1 -0
  1180. package/frontend-vue/layers/dms-ui/app/entries/utils/sketch.ts +1 -0
  1181. package/frontend-vue/layers/dms-ui/app/types/table/base.ts +1 -1
  1182. package/frontend-vue/layers/dms-ui/app/utils/mockupAssistant.ts +59 -0
  1183. package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +122 -1
  1184. package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +122 -1
  1185. package/frontend-vue/package.json +4 -3
  1186. package/frontend-vue/scripts/check-page-invariants.mjs +1 -1
  1187. package/frontend-vue/scripts/probes/frontend-legacy.cjs +22 -22
  1188. package/frontend-vue/server/request-body.ts +21 -0
  1189. package/package.json +61 -20
  1190. package/skills/dms/SKILL.md +7 -6
  1191. package/skills/dms-auth/SKILL.md +4 -3
  1192. package/skills/dms-module/REFERENCE.md +1 -1
  1193. package/skills/dms-module/SKILL.md +1 -1
  1194. package/skills/dms-project/REFERENCE.md +4 -2
  1195. package/skills/dms-project/SKILL.md +1 -1
  1196. package/frontend-vue/layers/dms-layout/app/entries/components/layout/Footer.ts +0 -2
  1197. package/frontend-vue/layers/dms-onboarding/app/entries/components/onboarding/steps/ready.ts +0 -2
  1198. package/frontend-vue/layers/dms-ui/app/build/composables/confirm/actionError.ts +0 -21
  1199. package/frontend-vue/layers/dms-ui/app/entries/components/table/Actions.ts +0 -2
  1200. package/frontend-vue/layers/dms-ui/app/entries/components/table/Empty.ts +0 -2
  1201. package/frontend-vue/layers/dms-ui/app/entries/components/table/Pagination.ts +0 -2
  1202. package/frontend-vue/layers/dms-ui/app/entries/components/table/Table.ts +0 -2
  1203. package/frontend-vue/layers/dms-ui/app/entries/components/table/Views.ts +0 -2
  1204. package/frontend-vue/layers/dms-ui/app/entries/composables/confirm/actionError.ts +0 -1
  1205. package/skills/dms-best-practices/REFERENCE.md +0 -95
  1206. package/skills/dms-best-practices/SKILL.md +0 -81
  1207. package/skills/dms-best-practices/cases.json +0 -82
  1208. package/skills/dms-pages/REFERENCE.md +0 -277
  1209. package/skills/dms-pages/SKILL.md +0 -115
  1210. package/skills/dms-pages/cases.json +0 -96
  1211. /package/frontend-vue/layers/dms-layout/app/build/components/layout/{Container.vue → LayoutContainer.vue} +0 -0
  1212. /package/frontend-vue/layers/dms-layout/app/build/components/layout/{Footer.vue → LayoutFooter.vue} +0 -0
  1213. /package/frontend-vue/layers/dms-layout/app/components/layout/{Spacer.vue → StackSpacer.vue} +0 -0
  1214. /package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/steps/{platform.vue → StepPlatform.vue} +0 -0
  1215. /package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/steps/{ready.vue → StepReady.vue} +0 -0
  1216. /package/frontend-vue/layers/dms-onboarding/app/components/onboarding/steps/{register.vue → StepRegister.vue} +0 -0
  1217. /package/frontend-vue/layers/dms-ui/app/build/components/table/{Tabs.vue → TableTabs.vue} +0 -0
  1218. /package/frontend-vue/layers/dms-ui/app/{types → build/types}/shortcuts-aggregated.d.ts +0 -0
  1219. /package/frontend-vue/layers/dms-ui/app/components/{Placeholder.vue → PlaceholderBlock.vue} +0 -0
  1220. /package/frontend-vue/layers/dms-ui/app/components/banner/{Banner.vue → NoticeBanner.vue} +0 -0
  1221. /package/frontend-vue/layers/dms-ui/app/components/chart/{Chart.vue → ChartBlock.vue} +0 -0
  1222. /package/frontend-vue/layers/dms-ui/app/components/chart/internal/{Sparkline.vue → SparklineChart.vue} +0 -0
  1223. /package/frontend-vue/layers/dms-ui/app/components/form/components/{Display.vue → DisplayValue.vue} +0 -0
  1224. /package/frontend-vue/layers/dms-ui/app/components/form/components/{Checkbox.vue → InputCheckbox.vue} +0 -0
  1225. /package/frontend-vue/layers/dms-ui/app/components/form/components/{File.vue → InputFile.vue} +0 -0
  1226. /package/frontend-vue/layers/dms-ui/app/components/form/components/{Slider.vue → InputSlider.vue} +0 -0
  1227. /package/frontend-vue/layers/dms-ui/app/components/form/components/{Switch.vue → InputSwitch.vue} +0 -0
  1228. /package/frontend-vue/layers/dms-ui/app/components/form/components/{Textarea.vue → InputTextarea.vue} +0 -0
  1229. /package/frontend-vue/layers/dms-ui/app/components/grid/{Grid.vue → GridBlock.vue} +0 -0
  1230. /package/frontend-vue/layers/dms-ui/app/components/guard/{Guard.vue → GuardBlock.vue} +0 -0
  1231. /package/frontend-vue/layers/dms-ui/app/components/meter/{Meter.vue → MeterBar.vue} +0 -0
  1232. /package/frontend-vue/layers/dms-ui/app/components/section/{Section.vue → SectionPanel.vue} +0 -0
  1233. /package/frontend-vue/layers/dms-ui/app/components/section-header/{Eyebrow.vue → EyebrowLabel.vue} +0 -0
  1234. /package/frontend-vue/layers/dms-ui/app/components/segmented/{Segmented.vue → SegmentedControl.vue} +0 -0
  1235. /package/frontend-vue/layers/dms-ui/app/components/tab/{Tab.vue → TabBlock.vue} +0 -0
@@ -0,0 +1,288 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readSeriesChain = readSeriesChain;
4
+ const ts_morph_1 = require("ts-morph");
5
+ const literals_1 = require("./literals");
6
+ const query_chain_1 = require("./query-chain");
7
+ const query_plan_1 = require("./query-plan");
8
+ function readHops(outer) {
9
+ const hops = [];
10
+ let node = outer;
11
+ while (node && ts_morph_1.Node.isCallExpression(node)) {
12
+ const name = (0, query_chain_1.propName)(node);
13
+ if (name === undefined) {
14
+ return undefined;
15
+ }
16
+ hops.unshift({ name, call: node });
17
+ node = (0, query_chain_1.receiver)(node);
18
+ }
19
+ return node && (0, query_chain_1.isThisTable)(node) ? hops : undefined;
20
+ }
21
+ function readGroupMapper(node) {
22
+ if (!node || !ts_morph_1.Node.isArrowFunction(node)) {
23
+ return undefined;
24
+ }
25
+ const params = node.getParameters();
26
+ if (params.length !== 2) {
27
+ return undefined;
28
+ }
29
+ const body = node.getBody();
30
+ const object = ts_morph_1.Node.isParenthesizedExpression(body)
31
+ ? body.getExpression()
32
+ : body;
33
+ if (!ts_morph_1.Node.isObjectLiteralExpression(object)) {
34
+ return undefined;
35
+ }
36
+ const properties = object.getProperties();
37
+ if (properties.length !== 2) {
38
+ return undefined;
39
+ }
40
+ const byName = new Map();
41
+ for (const property of properties) {
42
+ if (!ts_morph_1.Node.isPropertyAssignment(property)) {
43
+ return undefined;
44
+ }
45
+ const initializer = property.getInitializer();
46
+ if (!initializer) {
47
+ return undefined;
48
+ }
49
+ byName.set(property.getName(), initializer);
50
+ }
51
+ const x = byName.get("x");
52
+ const y = byName.get("y");
53
+ if (!x || !y) {
54
+ return undefined;
55
+ }
56
+ return {
57
+ streamParam: params[0].getName(),
58
+ groupParam: params[1].getName(),
59
+ x,
60
+ y,
61
+ };
62
+ }
63
+ function readMeasure(node, streamParam) {
64
+ if (!ts_morph_1.Node.isCallExpression(node)) {
65
+ return undefined;
66
+ }
67
+ const name = (0, query_chain_1.propName)(node);
68
+ const target = (0, query_chain_1.receiver)(node);
69
+ if (!name ||
70
+ !target ||
71
+ !ts_morph_1.Node.isIdentifier(target) ||
72
+ target.getText() !== streamParam) {
73
+ return undefined;
74
+ }
75
+ const args = node.getArguments();
76
+ if (name === "count") {
77
+ return args.length === 0 ? { measure: { kind: "count" } } : undefined;
78
+ }
79
+ if (args.length !== 1) {
80
+ return undefined;
81
+ }
82
+ const over = (0, literals_1.stringLiteralValue)(args[0]);
83
+ return over === undefined
84
+ ? undefined
85
+ : { measure: { kind: "aggregate", op: name, field: over }, over };
86
+ }
87
+ function readProjection(node) {
88
+ if (!node || !ts_morph_1.Node.isArrowFunction(node)) {
89
+ return undefined;
90
+ }
91
+ const params = node.getParameters();
92
+ if (params.length !== 1) {
93
+ return undefined;
94
+ }
95
+ const row = params[0].getName();
96
+ const body = node.getBody();
97
+ const object = ts_morph_1.Node.isParenthesizedExpression(body)
98
+ ? body.getExpression()
99
+ : body;
100
+ if (!ts_morph_1.Node.isObjectLiteralExpression(object)) {
101
+ return undefined;
102
+ }
103
+ let periodText;
104
+ let measured;
105
+ for (const property of object.getProperties()) {
106
+ if (!ts_morph_1.Node.isPropertyAssignment(property)) {
107
+ return undefined;
108
+ }
109
+ const initializer = property.getInitializer();
110
+ if (!initializer) {
111
+ return undefined;
112
+ }
113
+ if (property.getName() === "bucket") {
114
+ periodText = initializer.getText();
115
+ continue;
116
+ }
117
+ if (property.getName() !== "value") {
118
+ return undefined;
119
+ }
120
+ measured = readProjectedField(initializer, row);
121
+ if (measured === undefined) {
122
+ return undefined;
123
+ }
124
+ }
125
+ if (periodText === undefined) {
126
+ return undefined;
127
+ }
128
+ const source = readPeriodSource(periodText);
129
+ if (!source) {
130
+ return undefined;
131
+ }
132
+ const bucket = (0, query_plan_1.readBucketExpression)(periodText, row, source.field, source.timezone);
133
+ return bucket ? { ...source, bucket, measured } : undefined;
134
+ }
135
+ function readProjectedField(node, row) {
136
+ if (!ts_morph_1.Node.isCallExpression(node) || (0, query_chain_1.propName)(node) !== "key") {
137
+ return undefined;
138
+ }
139
+ const target = (0, query_chain_1.receiver)(node);
140
+ if (!target || !ts_morph_1.Node.isIdentifier(target) || target.getText() !== row) {
141
+ return undefined;
142
+ }
143
+ return (0, literals_1.stringLiteralValue)(node.getArguments()[0]);
144
+ }
145
+ function readPeriodSource(text) {
146
+ const match = /\.key\(\s*"([^"]+)"\s*\)\s*\.(?:year|month|day)\(([^)]*)\)/.exec(text);
147
+ if (!match) {
148
+ return undefined;
149
+ }
150
+ const zone = match[2].trim();
151
+ if (zone.length === 0) {
152
+ return { field: match[1] };
153
+ }
154
+ const timezone = /^"([^"]*)"$/.exec(zone);
155
+ return timezone ? { field: match[1], timezone: timezone[1] } : undefined;
156
+ }
157
+ function readOrder(call) {
158
+ const args = call.getArguments();
159
+ if (args.length !== 2) {
160
+ return undefined;
161
+ }
162
+ const key = (0, literals_1.stringLiteralValue)(args[0]);
163
+ const direction = (0, literals_1.stringLiteralValue)(args[1]);
164
+ if (direction !== "asc" && direction !== "desc") {
165
+ return undefined;
166
+ }
167
+ if (key !== "x" && key !== "y") {
168
+ return undefined;
169
+ }
170
+ return { by: key === "x" ? "group" : "measure", direction };
171
+ }
172
+ function readLimit(call) {
173
+ const args = call.getArguments();
174
+ if (args.length !== 2) {
175
+ return undefined;
176
+ }
177
+ const [offset, count] = args.map((argument) => ts_morph_1.Node.isNumericLiteral(argument) ? argument.getLiteralValue() : undefined);
178
+ return offset === 0 && count !== undefined ? count : undefined;
179
+ }
180
+ function readGroupHop(hop) {
181
+ if (hop.name !== "group") {
182
+ return undefined;
183
+ }
184
+ const args = hop.call.getArguments();
185
+ const groupKey = (0, literals_1.stringLiteralValue)(args[0]);
186
+ const mapper = readGroupMapper(args[1]);
187
+ if (groupKey === undefined || !mapper) {
188
+ return undefined;
189
+ }
190
+ if (!ts_morph_1.Node.isIdentifier(mapper.x) ||
191
+ mapper.x.getText() !== mapper.groupParam) {
192
+ return undefined;
193
+ }
194
+ const measured = readMeasure(mapper.y, mapper.streamParam);
195
+ return measured ? { groupKey, measured } : undefined;
196
+ }
197
+ function resolveGroup(projection, groupKey, measured) {
198
+ if (!projection) {
199
+ return { group: { field: groupKey }, measure: measured.measure };
200
+ }
201
+ if (groupKey !== "bucket") {
202
+ return undefined;
203
+ }
204
+ if (measured.over !== undefined && measured.over !== "value") {
205
+ return undefined;
206
+ }
207
+ const group = {
208
+ field: projection.field,
209
+ bucket: projection.bucket,
210
+ timezone: projection.timezone,
211
+ };
212
+ if (measured.measure.kind !== "aggregate") {
213
+ return projection.measured === undefined
214
+ ? { group, measure: measured.measure }
215
+ : undefined;
216
+ }
217
+ return projection.measured === undefined
218
+ ? undefined
219
+ : {
220
+ group,
221
+ measure: {
222
+ kind: "aggregate",
223
+ op: measured.measure.op,
224
+ field: projection.measured,
225
+ },
226
+ };
227
+ }
228
+ function readSeriesChain(method) {
229
+ const outer = (0, query_chain_1.returnedCall)(method);
230
+ const hops = outer ? readHops(outer) : undefined;
231
+ if (!hops) {
232
+ return undefined;
233
+ }
234
+ const params = new Set(method.getParameters().map((param) => param.getName()));
235
+ const filters = [];
236
+ let index = 0;
237
+ while (index < hops.length && hops[index].name === "filter") {
238
+ const filter = (0, query_chain_1.readFilter)(hops[index].call.getArguments()[0], params);
239
+ if (!filter) {
240
+ return undefined;
241
+ }
242
+ filters.push(filter);
243
+ index += 1;
244
+ }
245
+ let projection;
246
+ if (hops[index]?.name === "map") {
247
+ projection = readProjection(hops[index].call.getArguments()[0]);
248
+ if (!projection) {
249
+ return undefined;
250
+ }
251
+ index += 1;
252
+ }
253
+ const grouped = hops[index] ? readGroupHop(hops[index]) : undefined;
254
+ if (!grouped) {
255
+ return undefined;
256
+ }
257
+ index += 1;
258
+ const resolved = resolveGroup(projection, grouped.groupKey, grouped.measured);
259
+ if (!resolved) {
260
+ return undefined;
261
+ }
262
+ let order;
263
+ if (hops[index]?.name === "orderBy") {
264
+ order = readOrder(hops[index].call);
265
+ if (!order) {
266
+ return undefined;
267
+ }
268
+ index += 1;
269
+ }
270
+ let limit;
271
+ if (hops[index]?.name === "slice") {
272
+ limit = readLimit(hops[index].call);
273
+ if (limit === undefined) {
274
+ return undefined;
275
+ }
276
+ index += 1;
277
+ }
278
+ return index === hops.length
279
+ ? {
280
+ filters,
281
+ group: resolved.group,
282
+ measure: resolved.measure,
283
+ order,
284
+ limit,
285
+ }
286
+ : undefined;
287
+ }
288
+ //# sourceMappingURL=query-chain-series.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-chain-series.js","sourceRoot":"","sources":["../../../../src/implementations/dms-builder/engine/query-chain-series.ts"],"names":[],"mappings":";;AA4VA,0CAsEC;AAzZD,uCAA6E;AAC7E,yCAAgD;AAChD,+CAOuB;AACvB,6CAMsB;AAoBtB,SAAS,QAAQ,CAAC,KAAqB;IACrC,MAAM,IAAI,GAAU,EAAE,CAAC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S,CAAC;QACnB,CAAC;QACD,KAAK,IAAI,CAAC,CAAC;IACb,CAAC;IAED,IAAI,KAAyB,CAAC;IAC9B,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,KAAK,OAAO,EAAE,CAAC;QAClC,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC;QACpC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,KAAK,IAAI,CAAC,CAAC;IACb,CAAC;IAED,OAAO,KAAK,KAAK,IAAI,CAAC,MAAM;QAC1B,CAAC,CAAC;YACE,OAAO;YACP,KAAK,EAAE,QAAQ,CAAC,KAAK;YACrB,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,KAAK;YACL,KAAK;SACN;QACH,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { FilterOp } from "@antelopejs/interface-dms-builder";
2
+ import { type CallExpression, type MethodDeclaration, Node } from "ts-morph";
3
+ export declare const FILTER_OPS: Set<FilterOp>;
4
+ export declare function filterOpNamed(name: string): FilterOp | undefined;
5
+ type RawValue = {
6
+ kind: "literal";
7
+ value: string | number | boolean | null;
8
+ } | {
9
+ kind: "param";
10
+ name: string;
11
+ };
12
+ export interface RawFilter {
13
+ field: string;
14
+ op: FilterOp;
15
+ value: RawValue;
16
+ }
17
+ interface RawChain {
18
+ filters: RawFilter[];
19
+ terminalName: string;
20
+ terminalArgs: Node[];
21
+ }
22
+ export declare function propName(call: CallExpression): string | undefined;
23
+ export declare function receiver(call: CallExpression): Node | undefined;
24
+ export declare function isThisTable(node: Node): boolean;
25
+ export declare function returnedCall(method: MethodDeclaration): CallExpression | undefined;
26
+ export declare function readFilter(arrow: Node, params: Set<string>): RawFilter | undefined;
27
+ export declare function readChain(method: MethodDeclaration): RawChain | undefined;
28
+ export type ParsedFilter = {
29
+ field: string;
30
+ op: FilterOp;
31
+ value: string | number | boolean | null | {
32
+ $bind: string;
33
+ };
34
+ };
35
+ export type ParsedWhere = {
36
+ where?: ParsedFilter[];
37
+ };
38
+ export declare function whereParams(filters: RawFilter[]): ParsedWhere;
39
+ export declare function canonicalBody(body: string, parameters: string[]): string;
40
+ export {};
@@ -0,0 +1,181 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FILTER_OPS = void 0;
4
+ exports.filterOpNamed = filterOpNamed;
5
+ exports.propName = propName;
6
+ exports.receiver = receiver;
7
+ exports.isThisTable = isThisTable;
8
+ exports.returnedCall = returnedCall;
9
+ exports.readFilter = readFilter;
10
+ exports.readChain = readChain;
11
+ exports.whereParams = whereParams;
12
+ exports.canonicalBody = canonicalBody;
13
+ const ts_morph_1 = require("ts-morph");
14
+ const literals_1 = require("./literals");
15
+ exports.FILTER_OPS = new Set([
16
+ "eq",
17
+ "ne",
18
+ "gt",
19
+ "ge",
20
+ "lt",
21
+ "le",
22
+ ]);
23
+ function filterOpNamed(name) {
24
+ return [...exports.FILTER_OPS].find((op) => op === name);
25
+ }
26
+ function propName(call) {
27
+ const expr = call.getExpression();
28
+ return ts_morph_1.Node.isPropertyAccessExpression(expr) ? expr.getName() : undefined;
29
+ }
30
+ function receiver(call) {
31
+ const expr = call.getExpression();
32
+ return ts_morph_1.Node.isPropertyAccessExpression(expr)
33
+ ? expr.getExpression()
34
+ : undefined;
35
+ }
36
+ function isThisTable(node) {
37
+ return (ts_morph_1.Node.isPropertyAccessExpression(node) &&
38
+ node.getName() === "table" &&
39
+ node.getExpression().getKind() === ts_morph_1.SyntaxKind.ThisKeyword);
40
+ }
41
+ function returnedCall(method) {
42
+ const body = method.getBody();
43
+ if (!body || !ts_morph_1.Node.isBlock(body)) {
44
+ return undefined;
45
+ }
46
+ const statements = body.getStatements();
47
+ if (statements.length !== 1) {
48
+ return undefined;
49
+ }
50
+ const [statement] = statements;
51
+ if (!ts_morph_1.Node.isReturnStatement(statement)) {
52
+ return undefined;
53
+ }
54
+ const expr = statement.getExpression();
55
+ return expr && ts_morph_1.Node.isCallExpression(expr) ? expr : undefined;
56
+ }
57
+ function readValue(node, params) {
58
+ if (ts_morph_1.Node.isIdentifier(node)) {
59
+ return params.has(node.getText())
60
+ ? { kind: "param", name: node.getText() }
61
+ : undefined;
62
+ }
63
+ if (ts_morph_1.Node.isStringLiteral(node) || ts_morph_1.Node.isNumericLiteral(node)) {
64
+ return { kind: "literal", value: node.getLiteralValue() };
65
+ }
66
+ if (ts_morph_1.Node.isTrueLiteral(node)) {
67
+ return { kind: "literal", value: true };
68
+ }
69
+ if (ts_morph_1.Node.isFalseLiteral(node)) {
70
+ return { kind: "literal", value: false };
71
+ }
72
+ if (node.getKind() === ts_morph_1.SyntaxKind.NullKeyword) {
73
+ return { kind: "literal", value: null };
74
+ }
75
+ if (ts_morph_1.Node.isNewExpression(node)) {
76
+ const callee = node.getExpression();
77
+ const inner = node.getArguments()?.[0];
78
+ if (ts_morph_1.Node.isIdentifier(callee) && callee.getText() === "Date" && inner) {
79
+ if (ts_morph_1.Node.isStringLiteral(inner) || ts_morph_1.Node.isNumericLiteral(inner)) {
80
+ return { kind: "literal", value: inner.getLiteralValue() };
81
+ }
82
+ }
83
+ }
84
+ return undefined;
85
+ }
86
+ function readFilter(arrow, params) {
87
+ if (!ts_morph_1.Node.isArrowFunction(arrow)) {
88
+ return undefined;
89
+ }
90
+ const rowParams = arrow.getParameters();
91
+ if (rowParams.length !== 1) {
92
+ return undefined;
93
+ }
94
+ const rowName = rowParams[0].getName();
95
+ const compare = arrow.getBody();
96
+ if (!ts_morph_1.Node.isCallExpression(compare)) {
97
+ return undefined;
98
+ }
99
+ const opName = propName(compare);
100
+ const op = opName === undefined ? undefined : filterOpNamed(opName);
101
+ if (op === undefined) {
102
+ return undefined;
103
+ }
104
+ const compareArgs = compare.getArguments();
105
+ if (compareArgs.length !== 1) {
106
+ return undefined;
107
+ }
108
+ const keyCall = receiver(compare);
109
+ if (!keyCall ||
110
+ !ts_morph_1.Node.isCallExpression(keyCall) ||
111
+ propName(keyCall) !== "key") {
112
+ return undefined;
113
+ }
114
+ const keyReceiver = receiver(keyCall);
115
+ if (!keyReceiver ||
116
+ !ts_morph_1.Node.isIdentifier(keyReceiver) ||
117
+ keyReceiver.getText() !== rowName) {
118
+ return undefined;
119
+ }
120
+ const field = (0, literals_1.stringLiteralValue)(keyCall.getArguments()[0]);
121
+ if (field === undefined) {
122
+ return undefined;
123
+ }
124
+ const value = readValue(compareArgs[0], params);
125
+ if (!value) {
126
+ return undefined;
127
+ }
128
+ return { field, op, value };
129
+ }
130
+ function readChain(method) {
131
+ const outer = returnedCall(method);
132
+ if (!outer) {
133
+ return undefined;
134
+ }
135
+ const terminalName = propName(outer);
136
+ if (terminalName === undefined) {
137
+ return undefined;
138
+ }
139
+ const params = new Set(method.getParameters().map((p) => p.getName()));
140
+ const filters = [];
141
+ let node = receiver(outer);
142
+ while (node && ts_morph_1.Node.isCallExpression(node) && propName(node) === "filter") {
143
+ const filter = readFilter(node.getArguments()[0], params);
144
+ if (!filter) {
145
+ return undefined;
146
+ }
147
+ filters.unshift(filter);
148
+ node = receiver(node);
149
+ }
150
+ if (!node || !isThisTable(node)) {
151
+ return undefined;
152
+ }
153
+ return { filters, terminalName, terminalArgs: outer.getArguments() };
154
+ }
155
+ function whereParams(filters) {
156
+ if (filters.length === 0) {
157
+ return {};
158
+ }
159
+ return {
160
+ where: filters.map((filter) => ({
161
+ field: filter.field,
162
+ op: filter.op,
163
+ value: filter.value.kind === "param"
164
+ ? { $bind: filter.value.name }
165
+ : filter.value.value,
166
+ })),
167
+ };
168
+ }
169
+ function canonicalBody(body, parameters) {
170
+ let text = body
171
+ .replace(/\s+/g, " ")
172
+ .replace(/\s*\.\s*/g, ".")
173
+ .replace(/,(\s*)(?=[)\]}])/g, "$1")
174
+ .trim();
175
+ parameters.forEach((name, index) => {
176
+ const escaped = name.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
177
+ text = text.replace(new RegExp(`(?<![.\\w$])${escaped}\\b`, "g"), `$${index}`);
178
+ });
179
+ return text;
180
+ }
181
+ //# sourceMappingURL=query-chain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-chain.js","sourceRoot":"","sources":["../../../../src/implementations/dms-builder/engine/query-chain.ts"],"names":[],"mappings":";;;AAoBA,sCAEC;AAyBD,4BAGC;AAED,4BAKC;AAED,kCAMC;AAGD,oCAiBC;AAuCD,gCAkDC;AAOD,8BAwBC;AAoBD,kCAcC;AAqBD,sCAcC;AAjRD,uCAKkB;AAClB,yCAAgD;AAGnC,QAAA,UAAU,GAAG,IAAI,GAAG,CAAW;IAC1C,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACL,CAAC,CAAC;AAGH,SAAgB,aAAa,CAAC,IAAY;IACxC,OAAO,CAAC,GAAG,kBAAU,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,CAAC;AACnD,CAAC;AAyBD,SAAgB,QAAQ,CAAC,IAAoB;IAC3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;IAClC,OAAO,eAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5E,CAAC;AAED,SAAgB,QAAQ,CAAC,IAAoB;IAC3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;IAClC,OAAO,eAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC;QAC1C,CAAC,CAAC,IAAI,CAAC,aAAa,EAAE;QACtB,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AAED,SAAgB,WAAW,CAAC,IAAU;IACpC,OAAO,CACL,eAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,OAAO,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AAC,OAAO,CACjB,IAAI,MAAM,CAAC,eAAe,OAAO,KAAK,EAAE,GAAG,CAAC,EAC5C,IAAI,KAAK,EAAE,CACZ,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,42 @@
1
+ import type { SeriesMeasure } from "@antelopejs/interface-dms/base/query-response";
2
+ import type { ImportRef, QueryOutputKind, QueryStructure, ResourceFieldStructure } from "@antelopejs/interface-dms-builder";
3
+ import { type CompiledChain, type QueryParams } from "./query-template";
4
+ import { type PlanBucket } from "./query-plan";
5
+ export interface SeriesNaming {
6
+ measure: SeriesMeasure;
7
+ label: string;
8
+ bucket?: PlanBucket;
9
+ }
10
+ export declare function seriesNaming(params: QueryParams, fields: ResourceFieldStructure[], resource: string, namesBuckets?: boolean): SeriesNaming;
11
+ export declare const RESPONSE_KEYS: Record<QueryOutputKind, string>;
12
+ export declare function outputForResponseKey(key: string): QueryOutputKind | undefined;
13
+ export declare function arrangementForHelper(helper: string): QueryStructure["response"];
14
+ export declare function outputForTemplate(template: string): QueryOutputKind | undefined;
15
+ export interface CompiledQuery {
16
+ name: string;
17
+ endpoint: string;
18
+ template: string;
19
+ params: QueryParams;
20
+ chain: CompiledChain;
21
+ naming: SeriesNaming;
22
+ response?: string;
23
+ compare?: boolean;
24
+ }
25
+ export interface ModelTarget {
26
+ name: string;
27
+ reuse: boolean;
28
+ }
29
+ export declare function defaultEndpoint(name: string): string;
30
+ export declare function queryRef(pageRef: string, name: string): string;
31
+ export declare function parseQueryRef(ref: string): {
32
+ page: string;
33
+ name: string;
34
+ } | undefined;
35
+ export declare function isPerTenantSchema(schema: string): boolean;
36
+ export declare function queryModelMethodText(spec: CompiledQuery, modelMethod: string): string;
37
+ export declare const COMPARISON_PARAMETERS: readonly ["compareFrom", "compareTo"];
38
+ export interface RouteMethodText {
39
+ text: string;
40
+ symbols: ImportRef[];
41
+ }
42
+ export declare function queryRouteMethodText(spec: CompiledQuery, modelName: string, schema: string, modelMethod: string, pageClass: string): RouteMethodText;