@plures/praxis 1.0.2 → 1.1.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 (518) hide show
  1. package/FRAMEWORK.md +55 -5
  2. package/LICENSE +21 -21
  3. package/README.md +162 -375
  4. package/core/codegen/docs-generator.ts +5 -2
  5. package/core/codegen/index.ts +1 -1
  6. package/core/codegen/ts-generator.ts +15 -15
  7. package/core/db-adapter/index.ts +2 -2
  8. package/core/db-adapter/sync-engine.ts +17 -6
  9. package/core/logic-engine/engine.ts +1 -1
  10. package/core/logic-engine/index.ts +2 -2
  11. package/core/logic-engine/protocol.ts +1 -1
  12. package/core/logic-engine/psf-adapter.ts +8 -4
  13. package/core/logic-engine/rules.ts +1 -1
  14. package/core/schema-engine/compiler.ts +53 -11
  15. package/core/schema-engine/generator.ts +17 -7
  16. package/core/schema-engine/index.ts +2 -2
  17. package/core/schema-engine/psf.ts +12 -3
  18. package/core/schema-engine/types.ts +3 -11
  19. package/core/schema-engine/validator.ts +112 -22
  20. package/dist/browser/engine-BjdqxeXG.d.ts +333 -0
  21. package/dist/browser/index.d.ts +3004 -0
  22. package/dist/browser/index.js +2892 -0
  23. package/dist/{src → browser}/integrations/svelte.d.ts +19 -17
  24. package/dist/browser/integrations/svelte.js +298 -0
  25. package/dist/node/auth-STARLY7I.js +207 -0
  26. package/dist/node/build-Y7OT5VBF.js +144 -0
  27. package/dist/node/canvas-UERZHJYW.js +362 -0
  28. package/dist/node/chunk-DSDC2JWZ.js +256 -0
  29. package/dist/node/chunk-FXQZXAWF.js +175 -0
  30. package/dist/node/chunk-N5Y37EUV.js +202 -0
  31. package/dist/node/chunk-QGM4M3NI.js +37 -0
  32. package/dist/node/chunk-RJMWCNHR.js +175 -0
  33. package/dist/node/chunk-SRM3OPPM.js +404 -0
  34. package/dist/node/chunk-UATVJBNV.js +175 -0
  35. package/dist/node/chunk-UY7YEBE2.js +159 -0
  36. package/dist/node/chunk-XCY2VIFX.js +143 -0
  37. package/dist/node/chunk-YXH4Y7ZZ.js +349 -0
  38. package/dist/node/cli/index.cjs +217418 -0
  39. package/dist/node/cli/index.d.cts +1 -0
  40. package/dist/node/cli/index.d.ts +1 -0
  41. package/dist/node/cli/index.js +690 -0
  42. package/dist/node/cloud/index.cjs +1043 -0
  43. package/dist/node/cloud/index.d.cts +864 -0
  44. package/dist/node/cloud/index.d.ts +864 -0
  45. package/dist/node/cloud/index.js +456 -0
  46. package/dist/node/cloud-AXOK4PSN.js +212 -0
  47. package/dist/node/component.cjs +374 -0
  48. package/dist/node/component.d.cts +125 -0
  49. package/dist/{src/core/component/generator.d.ts → node/component.d.ts} +11 -8
  50. package/dist/node/component.js +9 -0
  51. package/dist/node/components/index.cjs +216 -0
  52. package/dist/node/components/index.d.cts +43 -0
  53. package/dist/{src → node}/components/index.d.ts +8 -8
  54. package/dist/node/components/index.js +7 -0
  55. package/dist/node/create-TRLSVCNQ.js +584 -0
  56. package/dist/node/dev-PMJZUYGE.js +65 -0
  57. package/dist/node/engine-1iqLe6_P.d.ts +214 -0
  58. package/dist/node/engine-CVJobhHm.d.cts +214 -0
  59. package/dist/node/index.cjs +3247 -0
  60. package/dist/node/index.d.cts +2579 -0
  61. package/dist/node/index.d.ts +2579 -0
  62. package/dist/node/index.js +2098 -0
  63. package/dist/node/integrations/svelte.cjs +330 -0
  64. package/dist/node/integrations/svelte.d.cts +309 -0
  65. package/dist/node/integrations/svelte.d.ts +309 -0
  66. package/dist/node/integrations/svelte.js +300 -0
  67. package/dist/node/orchestrate-737TCL5H.js +127 -0
  68. package/dist/{src/core/protocol.d.ts → node/protocol-Qek7ebBl.d.cts} +11 -10
  69. package/dist/node/protocol-Qek7ebBl.d.ts +122 -0
  70. package/dist/node/schema.cjs +200 -0
  71. package/dist/{src/core/schema/types.d.ts → node/schema.d.cts} +30 -29
  72. package/dist/node/schema.d.ts +371 -0
  73. package/dist/node/schema.js +9 -0
  74. package/dist/{src/runtime/terminal-adapter.d.ts → node/terminal-adapter-07HGftGQ.d.ts} +86 -11
  75. package/dist/node/terminal-adapter-XLtCjjb_.d.cts +231 -0
  76. package/dist/node/verify-YBZ7W24H.js +213239 -0
  77. package/docs/MONETIZATION.md +21 -16
  78. package/docs/REACTIVE_REDESIGN.md +132 -0
  79. package/docs/README.md +47 -36
  80. package/docs/SVELTE_INTEGRATION_STRATEGY.md +68 -0
  81. package/docs/TERMINAL_NODE.md +27 -24
  82. package/docs/core/building-extensions.md +58 -61
  83. package/docs/core/cli-usage.md +59 -59
  84. package/docs/core/code-canvas-sync.md +28 -16
  85. package/docs/core/logic-engine.md +77 -82
  86. package/docs/core/pluresdb-integration.md +29 -39
  87. package/docs/core/schema-model.md +66 -52
  88. package/docs/core/ui-generation.md +57 -49
  89. package/docs/core/what-is-praxis.md +32 -15
  90. package/docs/guides/canvas.md +21 -5
  91. package/docs/guides/getting-started.md +13 -7
  92. package/docs/guides/history-state-pattern.md +65 -51
  93. package/docs/guides/orchestration.md +46 -32
  94. package/docs/guides/parallel-state-pattern.md +56 -72
  95. package/docs/guides/svelte-integration.md +45 -53
  96. package/docs/tutorials/README.md +16 -0
  97. package/docs/tutorials/ecommerce-cart.md +177 -95
  98. package/docs/tutorials/first-app.md +26 -41
  99. package/docs/tutorials/form-builder.md +191 -138
  100. package/docs/tutorials/todo-pluresdb.md +71 -69
  101. package/package.json +132 -96
  102. package/src/__tests__/actors.test.ts +68 -68
  103. package/src/__tests__/billing.test.ts +32 -32
  104. package/src/__tests__/canvas-components.test.ts +94 -73
  105. package/src/__tests__/cli-create.test.ts +28 -28
  106. package/src/__tests__/cloud.test.ts +36 -36
  107. package/src/__tests__/code-canvas-integration.test.ts +132 -141
  108. package/src/__tests__/docs-generator.test.ts +3 -9
  109. package/src/__tests__/dsl.test.ts +58 -64
  110. package/src/__tests__/edge-cases.test.ts +106 -108
  111. package/src/__tests__/engine.test.ts +51 -25
  112. package/src/__tests__/generators.test.ts +42 -44
  113. package/src/__tests__/introspection.test.ts +104 -114
  114. package/src/__tests__/pluresdb.test.ts +189 -187
  115. package/src/__tests__/protocol.test.ts +15 -15
  116. package/src/__tests__/provisioning.test.ts +61 -61
  117. package/src/__tests__/schema.test.ts +7 -11
  118. package/src/__tests__/state-docs-integration.test.ts +162 -145
  119. package/src/__tests__/svelte-integration.test.ts +16 -19
  120. package/src/__tests__/tauri-integration.test.ts +149 -147
  121. package/src/__tests__/terminal-node.test.ts +12 -7
  122. package/src/__tests__/unum-integration.test.ts +68 -68
  123. package/src/adapters/cli.ts +21 -15
  124. package/src/cli/commands/auth.ts +82 -78
  125. package/src/cli/commands/build.ts +29 -27
  126. package/src/cli/commands/canvas.ts +338 -127
  127. package/src/cli/commands/cloud.ts +47 -47
  128. package/src/cli/commands/create.ts +59 -47
  129. package/src/cli/commands/dev.ts +12 -12
  130. package/src/cli/commands/generate.ts +29 -40
  131. package/src/cli/commands/orchestrate.ts +24 -24
  132. package/src/cli/commands/verify.ts +49 -0
  133. package/src/cli/index.ts +21 -2
  134. package/src/cloud/README.md +28 -15
  135. package/src/cloud/auth.ts +55 -70
  136. package/src/cloud/billing.ts +59 -58
  137. package/src/cloud/client.ts +29 -35
  138. package/src/cloud/index.ts +19 -40
  139. package/src/cloud/marketplace.ts +69 -78
  140. package/src/cloud/provisioning.ts +42 -51
  141. package/src/cloud/relay/endpoints.ts +30 -34
  142. package/src/cloud/relay/health/index.ts +1 -1
  143. package/src/cloud/relay/stats/index.ts +1 -1
  144. package/src/cloud/relay/sync/index.ts +1 -1
  145. package/src/cloud/relay/usage/index.ts +1 -1
  146. package/src/cloud/sponsors.ts +31 -34
  147. package/src/cloud/types.ts +4 -4
  148. package/src/components/README.md +1 -0
  149. package/src/components/TerminalNode.svelte +457 -457
  150. package/src/components/index.ts +3 -4
  151. package/src/core/actors.ts +7 -7
  152. package/src/core/component/generator.ts +10 -28
  153. package/src/core/engine.ts +51 -24
  154. package/src/core/introspection.ts +37 -35
  155. package/src/core/logic/generator.ts +62 -62
  156. package/src/core/pluresdb/adapter.ts +8 -8
  157. package/src/core/pluresdb/generator.ts +39 -35
  158. package/src/core/pluresdb/index.ts +9 -12
  159. package/src/core/pluresdb/schema-registry.ts +22 -25
  160. package/src/core/pluresdb/store.ts +57 -57
  161. package/src/core/protocol.ts +14 -14
  162. package/src/core/reactive-engine.svelte.ts +65 -0
  163. package/src/core/reactive-engine.ts +67 -0
  164. package/src/core/rules.ts +4 -4
  165. package/src/core/schema/loader.common.ts +150 -0
  166. package/src/core/schema/loader.ts +19 -149
  167. package/src/core/schema/normalize.ts +34 -51
  168. package/src/core/schema/types.ts +47 -11
  169. package/src/dsl/index.ts +8 -8
  170. package/src/dsl.ts +11 -17
  171. package/src/examples/advanced-todo/App.svelte +506 -506
  172. package/src/examples/advanced-todo/README.md +58 -40
  173. package/src/examples/advanced-todo/index.ts +3 -3
  174. package/src/examples/auth-basic/index.ts +30 -30
  175. package/src/examples/cart/index.ts +50 -50
  176. package/src/examples/hero-ecommerce/index.ts +130 -157
  177. package/src/examples/svelte-counter/index.ts +22 -26
  178. package/src/flows.ts +6 -17
  179. package/src/index.browser.ts +204 -0
  180. package/src/index.ts +37 -42
  181. package/src/integrations/code-canvas.ts +237 -193
  182. package/src/integrations/pluresdb.ts +55 -35
  183. package/src/integrations/state-docs.ts +104 -104
  184. package/src/integrations/svelte.ts +35 -35
  185. package/src/integrations/tauri.ts +75 -73
  186. package/src/integrations/unum.ts +68 -61
  187. package/src/registry.ts +7 -14
  188. package/src/runtime/terminal-adapter.ts +31 -26
  189. package/src/step.ts +10 -16
  190. package/src/types.ts +1 -1
  191. package/templates/basic-app/README.md +6 -9
  192. package/templates/fullstack-app/README.md +10 -0
  193. package/dist/core/codegen/docs-generator.d.ts +0 -123
  194. package/dist/core/codegen/docs-generator.d.ts.map +0 -1
  195. package/dist/core/codegen/docs-generator.js +0 -674
  196. package/dist/core/codegen/docs-generator.js.map +0 -1
  197. package/dist/core/codegen/index.d.ts +0 -11
  198. package/dist/core/codegen/index.d.ts.map +0 -1
  199. package/dist/core/codegen/index.js +0 -13
  200. package/dist/core/codegen/index.js.map +0 -1
  201. package/dist/core/codegen/ts-generator.d.ts +0 -8
  202. package/dist/core/codegen/ts-generator.d.ts.map +0 -1
  203. package/dist/core/codegen/ts-generator.js +0 -8
  204. package/dist/core/codegen/ts-generator.js.map +0 -1
  205. package/dist/core/db-adapter/index.d.ts +0 -18
  206. package/dist/core/db-adapter/index.d.ts.map +0 -1
  207. package/dist/core/db-adapter/index.js +0 -23
  208. package/dist/core/db-adapter/index.js.map +0 -1
  209. package/dist/core/db-adapter/sync-engine.d.ts +0 -180
  210. package/dist/core/db-adapter/sync-engine.d.ts.map +0 -1
  211. package/dist/core/db-adapter/sync-engine.js +0 -342
  212. package/dist/core/db-adapter/sync-engine.js.map +0 -1
  213. package/dist/core/logic-engine/engine.d.ts +0 -8
  214. package/dist/core/logic-engine/engine.d.ts.map +0 -1
  215. package/dist/core/logic-engine/engine.js +0 -8
  216. package/dist/core/logic-engine/engine.js.map +0 -1
  217. package/dist/core/logic-engine/index.d.ts +0 -16
  218. package/dist/core/logic-engine/index.d.ts.map +0 -1
  219. package/dist/core/logic-engine/index.js +0 -16
  220. package/dist/core/logic-engine/index.js.map +0 -1
  221. package/dist/core/logic-engine/protocol.d.ts +0 -7
  222. package/dist/core/logic-engine/protocol.d.ts.map +0 -1
  223. package/dist/core/logic-engine/protocol.js +0 -7
  224. package/dist/core/logic-engine/protocol.js.map +0 -1
  225. package/dist/core/logic-engine/psf-adapter.d.ts +0 -88
  226. package/dist/core/logic-engine/psf-adapter.d.ts.map +0 -1
  227. package/dist/core/logic-engine/psf-adapter.js +0 -207
  228. package/dist/core/logic-engine/psf-adapter.js.map +0 -1
  229. package/dist/core/logic-engine/rules.d.ts +0 -7
  230. package/dist/core/logic-engine/rules.d.ts.map +0 -1
  231. package/dist/core/logic-engine/rules.js +0 -7
  232. package/dist/core/logic-engine/rules.js.map +0 -1
  233. package/dist/core/schema-engine/compiler.d.ts +0 -198
  234. package/dist/core/schema-engine/compiler.d.ts.map +0 -1
  235. package/dist/core/schema-engine/compiler.js +0 -262
  236. package/dist/core/schema-engine/compiler.js.map +0 -1
  237. package/dist/core/schema-engine/generator.d.ts +0 -115
  238. package/dist/core/schema-engine/generator.d.ts.map +0 -1
  239. package/dist/core/schema-engine/generator.js +0 -506
  240. package/dist/core/schema-engine/generator.js.map +0 -1
  241. package/dist/core/schema-engine/index.d.ts +0 -18
  242. package/dist/core/schema-engine/index.d.ts.map +0 -1
  243. package/dist/core/schema-engine/index.js +0 -18
  244. package/dist/core/schema-engine/index.js.map +0 -1
  245. package/dist/core/schema-engine/psf.d.ts +0 -612
  246. package/dist/core/schema-engine/psf.d.ts.map +0 -1
  247. package/dist/core/schema-engine/psf.js +0 -45
  248. package/dist/core/schema-engine/psf.js.map +0 -1
  249. package/dist/core/schema-engine/types.d.ts +0 -10
  250. package/dist/core/schema-engine/types.d.ts.map +0 -1
  251. package/dist/core/schema-engine/types.js +0 -7
  252. package/dist/core/schema-engine/types.js.map +0 -1
  253. package/dist/core/schema-engine/validator.d.ts +0 -140
  254. package/dist/core/schema-engine/validator.d.ts.map +0 -1
  255. package/dist/core/schema-engine/validator.js +0 -407
  256. package/dist/core/schema-engine/validator.js.map +0 -1
  257. package/dist/src/adapters/cli.d.ts +0 -43
  258. package/dist/src/adapters/cli.d.ts.map +0 -1
  259. package/dist/src/adapters/cli.js +0 -126
  260. package/dist/src/adapters/cli.js.map +0 -1
  261. package/dist/src/cli/commands/auth.d.ts +0 -26
  262. package/dist/src/cli/commands/auth.d.ts.map +0 -1
  263. package/dist/src/cli/commands/auth.js +0 -233
  264. package/dist/src/cli/commands/auth.js.map +0 -1
  265. package/dist/src/cli/commands/build.d.ts +0 -23
  266. package/dist/src/cli/commands/build.d.ts.map +0 -1
  267. package/dist/src/cli/commands/build.js +0 -162
  268. package/dist/src/cli/commands/build.js.map +0 -1
  269. package/dist/src/cli/commands/canvas.d.ts +0 -23
  270. package/dist/src/cli/commands/canvas.d.ts.map +0 -1
  271. package/dist/src/cli/commands/canvas.js +0 -215
  272. package/dist/src/cli/commands/canvas.js.map +0 -1
  273. package/dist/src/cli/commands/cloud.d.ts +0 -27
  274. package/dist/src/cli/commands/cloud.d.ts.map +0 -1
  275. package/dist/src/cli/commands/cloud.js +0 -232
  276. package/dist/src/cli/commands/cloud.js.map +0 -1
  277. package/dist/src/cli/commands/create.d.ts +0 -21
  278. package/dist/src/cli/commands/create.d.ts.map +0 -1
  279. package/dist/src/cli/commands/create.js +0 -621
  280. package/dist/src/cli/commands/create.js.map +0 -1
  281. package/dist/src/cli/commands/dev.d.ts +0 -21
  282. package/dist/src/cli/commands/dev.d.ts.map +0 -1
  283. package/dist/src/cli/commands/dev.js +0 -71
  284. package/dist/src/cli/commands/dev.js.map +0 -1
  285. package/dist/src/cli/commands/generate.d.ts +0 -25
  286. package/dist/src/cli/commands/generate.d.ts.map +0 -1
  287. package/dist/src/cli/commands/generate.js +0 -168
  288. package/dist/src/cli/commands/generate.js.map +0 -1
  289. package/dist/src/cli/commands/orchestrate.d.ts +0 -44
  290. package/dist/src/cli/commands/orchestrate.d.ts.map +0 -1
  291. package/dist/src/cli/commands/orchestrate.js +0 -150
  292. package/dist/src/cli/commands/orchestrate.js.map +0 -1
  293. package/dist/src/cli/index.d.ts +0 -8
  294. package/dist/src/cli/index.d.ts.map +0 -1
  295. package/dist/src/cli/index.js +0 -211
  296. package/dist/src/cli/index.js.map +0 -1
  297. package/dist/src/cloud/auth.d.ts +0 -51
  298. package/dist/src/cloud/auth.d.ts.map +0 -1
  299. package/dist/src/cloud/auth.js +0 -194
  300. package/dist/src/cloud/auth.js.map +0 -1
  301. package/dist/src/cloud/billing.d.ts +0 -184
  302. package/dist/src/cloud/billing.d.ts.map +0 -1
  303. package/dist/src/cloud/billing.js +0 -179
  304. package/dist/src/cloud/billing.js.map +0 -1
  305. package/dist/src/cloud/client.d.ts +0 -39
  306. package/dist/src/cloud/client.d.ts.map +0 -1
  307. package/dist/src/cloud/client.js +0 -176
  308. package/dist/src/cloud/client.js.map +0 -1
  309. package/dist/src/cloud/index.d.ts +0 -44
  310. package/dist/src/cloud/index.d.ts.map +0 -1
  311. package/dist/src/cloud/index.js +0 -44
  312. package/dist/src/cloud/index.js.map +0 -1
  313. package/dist/src/cloud/marketplace.d.ts +0 -166
  314. package/dist/src/cloud/marketplace.d.ts.map +0 -1
  315. package/dist/src/cloud/marketplace.js +0 -159
  316. package/dist/src/cloud/marketplace.js.map +0 -1
  317. package/dist/src/cloud/provisioning.d.ts +0 -110
  318. package/dist/src/cloud/provisioning.d.ts.map +0 -1
  319. package/dist/src/cloud/provisioning.js +0 -148
  320. package/dist/src/cloud/provisioning.js.map +0 -1
  321. package/dist/src/cloud/relay/endpoints.d.ts +0 -62
  322. package/dist/src/cloud/relay/endpoints.d.ts.map +0 -1
  323. package/dist/src/cloud/relay/endpoints.js +0 -217
  324. package/dist/src/cloud/relay/endpoints.js.map +0 -1
  325. package/dist/src/cloud/relay/health/index.d.ts +0 -5
  326. package/dist/src/cloud/relay/health/index.d.ts.map +0 -1
  327. package/dist/src/cloud/relay/health/index.js +0 -9
  328. package/dist/src/cloud/relay/health/index.js.map +0 -1
  329. package/dist/src/cloud/relay/stats/index.d.ts +0 -5
  330. package/dist/src/cloud/relay/stats/index.d.ts.map +0 -1
  331. package/dist/src/cloud/relay/stats/index.js +0 -9
  332. package/dist/src/cloud/relay/stats/index.js.map +0 -1
  333. package/dist/src/cloud/relay/sync/index.d.ts +0 -5
  334. package/dist/src/cloud/relay/sync/index.d.ts.map +0 -1
  335. package/dist/src/cloud/relay/sync/index.js +0 -9
  336. package/dist/src/cloud/relay/sync/index.js.map +0 -1
  337. package/dist/src/cloud/relay/usage/index.d.ts +0 -5
  338. package/dist/src/cloud/relay/usage/index.d.ts.map +0 -1
  339. package/dist/src/cloud/relay/usage/index.js +0 -9
  340. package/dist/src/cloud/relay/usage/index.js.map +0 -1
  341. package/dist/src/cloud/sponsors.d.ts +0 -81
  342. package/dist/src/cloud/sponsors.d.ts.map +0 -1
  343. package/dist/src/cloud/sponsors.js +0 -130
  344. package/dist/src/cloud/sponsors.js.map +0 -1
  345. package/dist/src/cloud/types.d.ts +0 -169
  346. package/dist/src/cloud/types.d.ts.map +0 -1
  347. package/dist/src/cloud/types.js +0 -7
  348. package/dist/src/cloud/types.js.map +0 -1
  349. package/dist/src/components/index.d.ts.map +0 -1
  350. package/dist/src/components/index.js +0 -17
  351. package/dist/src/components/index.js.map +0 -1
  352. package/dist/src/core/actors.d.ts +0 -95
  353. package/dist/src/core/actors.d.ts.map +0 -1
  354. package/dist/src/core/actors.js +0 -158
  355. package/dist/src/core/actors.js.map +0 -1
  356. package/dist/src/core/component/generator.d.ts.map +0 -1
  357. package/dist/src/core/component/generator.js +0 -349
  358. package/dist/src/core/component/generator.js.map +0 -1
  359. package/dist/src/core/engine.d.ts +0 -92
  360. package/dist/src/core/engine.d.ts.map +0 -1
  361. package/dist/src/core/engine.js +0 -199
  362. package/dist/src/core/engine.js.map +0 -1
  363. package/dist/src/core/introspection.d.ts +0 -141
  364. package/dist/src/core/introspection.d.ts.map +0 -1
  365. package/dist/src/core/introspection.js +0 -208
  366. package/dist/src/core/introspection.js.map +0 -1
  367. package/dist/src/core/logic/generator.d.ts +0 -76
  368. package/dist/src/core/logic/generator.d.ts.map +0 -1
  369. package/dist/src/core/logic/generator.js +0 -370
  370. package/dist/src/core/logic/generator.js.map +0 -1
  371. package/dist/src/core/pluresdb/adapter.d.ts +0 -72
  372. package/dist/src/core/pluresdb/adapter.d.ts.map +0 -1
  373. package/dist/src/core/pluresdb/adapter.js +0 -73
  374. package/dist/src/core/pluresdb/adapter.js.map +0 -1
  375. package/dist/src/core/pluresdb/generator.d.ts +0 -58
  376. package/dist/src/core/pluresdb/generator.d.ts.map +0 -1
  377. package/dist/src/core/pluresdb/generator.js +0 -191
  378. package/dist/src/core/pluresdb/generator.js.map +0 -1
  379. package/dist/src/core/pluresdb/index.d.ts +0 -15
  380. package/dist/src/core/pluresdb/index.d.ts.map +0 -1
  381. package/dist/src/core/pluresdb/index.js +0 -11
  382. package/dist/src/core/pluresdb/index.js.map +0 -1
  383. package/dist/src/core/pluresdb/schema-registry.d.ts +0 -104
  384. package/dist/src/core/pluresdb/schema-registry.d.ts.map +0 -1
  385. package/dist/src/core/pluresdb/schema-registry.js +0 -130
  386. package/dist/src/core/pluresdb/schema-registry.js.map +0 -1
  387. package/dist/src/core/pluresdb/store.d.ts +0 -199
  388. package/dist/src/core/pluresdb/store.d.ts.map +0 -1
  389. package/dist/src/core/pluresdb/store.js +0 -344
  390. package/dist/src/core/pluresdb/store.js.map +0 -1
  391. package/dist/src/core/protocol.d.ts.map +0 -1
  392. package/dist/src/core/protocol.js +0 -46
  393. package/dist/src/core/protocol.js.map +0 -1
  394. package/dist/src/core/rules.d.ts +0 -120
  395. package/dist/src/core/rules.d.ts.map +0 -1
  396. package/dist/src/core/rules.js +0 -81
  397. package/dist/src/core/rules.js.map +0 -1
  398. package/dist/src/core/schema/loader.d.ts +0 -47
  399. package/dist/src/core/schema/loader.d.ts.map +0 -1
  400. package/dist/src/core/schema/loader.js +0 -189
  401. package/dist/src/core/schema/loader.js.map +0 -1
  402. package/dist/src/core/schema/normalize.d.ts +0 -72
  403. package/dist/src/core/schema/normalize.d.ts.map +0 -1
  404. package/dist/src/core/schema/normalize.js +0 -190
  405. package/dist/src/core/schema/normalize.js.map +0 -1
  406. package/dist/src/core/schema/types.d.ts.map +0 -1
  407. package/dist/src/core/schema/types.js +0 -161
  408. package/dist/src/core/schema/types.js.map +0 -1
  409. package/dist/src/dsl/index.d.ts +0 -152
  410. package/dist/src/dsl/index.d.ts.map +0 -1
  411. package/dist/src/dsl/index.js +0 -132
  412. package/dist/src/dsl/index.js.map +0 -1
  413. package/dist/src/dsl.d.ts +0 -124
  414. package/dist/src/dsl.d.ts.map +0 -1
  415. package/dist/src/dsl.js +0 -130
  416. package/dist/src/dsl.js.map +0 -1
  417. package/dist/src/examples/advanced-todo/index.d.ts +0 -55
  418. package/dist/src/examples/advanced-todo/index.d.ts.map +0 -1
  419. package/dist/src/examples/advanced-todo/index.js +0 -222
  420. package/dist/src/examples/advanced-todo/index.js.map +0 -1
  421. package/dist/src/examples/auth-basic/index.d.ts +0 -17
  422. package/dist/src/examples/auth-basic/index.d.ts.map +0 -1
  423. package/dist/src/examples/auth-basic/index.js +0 -122
  424. package/dist/src/examples/auth-basic/index.js.map +0 -1
  425. package/dist/src/examples/cart/index.d.ts +0 -19
  426. package/dist/src/examples/cart/index.d.ts.map +0 -1
  427. package/dist/src/examples/cart/index.js +0 -202
  428. package/dist/src/examples/cart/index.js.map +0 -1
  429. package/dist/src/examples/hero-ecommerce/index.d.ts +0 -39
  430. package/dist/src/examples/hero-ecommerce/index.d.ts.map +0 -1
  431. package/dist/src/examples/hero-ecommerce/index.js +0 -506
  432. package/dist/src/examples/hero-ecommerce/index.js.map +0 -1
  433. package/dist/src/examples/svelte-counter/index.d.ts +0 -31
  434. package/dist/src/examples/svelte-counter/index.d.ts.map +0 -1
  435. package/dist/src/examples/svelte-counter/index.js +0 -123
  436. package/dist/src/examples/svelte-counter/index.js.map +0 -1
  437. package/dist/src/flows.d.ts +0 -125
  438. package/dist/src/flows.d.ts.map +0 -1
  439. package/dist/src/flows.js +0 -160
  440. package/dist/src/flows.js.map +0 -1
  441. package/dist/src/index.d.ts +0 -77
  442. package/dist/src/index.d.ts.map +0 -1
  443. package/dist/src/index.js +0 -64
  444. package/dist/src/index.js.map +0 -1
  445. package/dist/src/integrations/code-canvas.d.ts +0 -265
  446. package/dist/src/integrations/code-canvas.d.ts.map +0 -1
  447. package/dist/src/integrations/code-canvas.js +0 -451
  448. package/dist/src/integrations/code-canvas.js.map +0 -1
  449. package/dist/src/integrations/pluresdb.d.ts +0 -117
  450. package/dist/src/integrations/pluresdb.d.ts.map +0 -1
  451. package/dist/src/integrations/pluresdb.js +0 -117
  452. package/dist/src/integrations/pluresdb.js.map +0 -1
  453. package/dist/src/integrations/state-docs.d.ts +0 -191
  454. package/dist/src/integrations/state-docs.d.ts.map +0 -1
  455. package/dist/src/integrations/state-docs.js +0 -515
  456. package/dist/src/integrations/state-docs.js.map +0 -1
  457. package/dist/src/integrations/svelte.d.ts.map +0 -1
  458. package/dist/src/integrations/svelte.js +0 -447
  459. package/dist/src/integrations/svelte.js.map +0 -1
  460. package/dist/src/integrations/tauri.d.ts +0 -360
  461. package/dist/src/integrations/tauri.d.ts.map +0 -1
  462. package/dist/src/integrations/tauri.js +0 -278
  463. package/dist/src/integrations/tauri.js.map +0 -1
  464. package/dist/src/integrations/unum.d.ts +0 -159
  465. package/dist/src/integrations/unum.d.ts.map +0 -1
  466. package/dist/src/integrations/unum.js +0 -240
  467. package/dist/src/integrations/unum.js.map +0 -1
  468. package/dist/src/registry.d.ts +0 -94
  469. package/dist/src/registry.d.ts.map +0 -1
  470. package/dist/src/registry.js +0 -181
  471. package/dist/src/registry.js.map +0 -1
  472. package/dist/src/runtime/terminal-adapter.d.ts.map +0 -1
  473. package/dist/src/runtime/terminal-adapter.js +0 -239
  474. package/dist/src/runtime/terminal-adapter.js.map +0 -1
  475. package/dist/src/step.d.ts +0 -34
  476. package/dist/src/step.d.ts.map +0 -1
  477. package/dist/src/step.js +0 -111
  478. package/dist/src/step.js.map +0 -1
  479. package/dist/src/types.d.ts +0 -63
  480. package/dist/src/types.d.ts.map +0 -1
  481. package/dist/src/types.js +0 -6
  482. package/dist/src/types.js.map +0 -1
  483. package/dist/tools/cli/commands/index.d.ts +0 -7
  484. package/dist/tools/cli/commands/index.d.ts.map +0 -1
  485. package/dist/tools/cli/commands/index.js +0 -7
  486. package/dist/tools/cli/commands/index.js.map +0 -1
  487. package/dist/tools/cli/index.d.ts +0 -8
  488. package/dist/tools/cli/index.d.ts.map +0 -1
  489. package/dist/tools/cli/index.js +0 -9
  490. package/dist/tools/cli/index.js.map +0 -1
  491. package/dist/tools/watcher/index.d.ts +0 -105
  492. package/dist/tools/watcher/index.d.ts.map +0 -1
  493. package/dist/tools/watcher/index.js +0 -213
  494. package/dist/tools/watcher/index.js.map +0 -1
  495. package/dist/ui/canvas/canvas-projection.d.ts +0 -78
  496. package/dist/ui/canvas/canvas-projection.d.ts.map +0 -1
  497. package/dist/ui/canvas/canvas-projection.js +0 -416
  498. package/dist/ui/canvas/canvas-projection.js.map +0 -1
  499. package/dist/ui/canvas/canvas-state.d.ts +0 -200
  500. package/dist/ui/canvas/canvas-state.d.ts.map +0 -1
  501. package/dist/ui/canvas/canvas-state.js +0 -464
  502. package/dist/ui/canvas/canvas-state.js.map +0 -1
  503. package/dist/ui/canvas/components/index.d.ts +0 -95
  504. package/dist/ui/canvas/components/index.d.ts.map +0 -1
  505. package/dist/ui/canvas/components/index.js +0 -19
  506. package/dist/ui/canvas/components/index.js.map +0 -1
  507. package/dist/ui/canvas/index.d.ts +0 -32
  508. package/dist/ui/canvas/index.d.ts.map +0 -1
  509. package/dist/ui/canvas/index.js +0 -32
  510. package/dist/ui/canvas/index.js.map +0 -1
  511. package/dist/ui/svelte-generator/index.d.ts +0 -9
  512. package/dist/ui/svelte-generator/index.d.ts.map +0 -1
  513. package/dist/ui/svelte-generator/index.js +0 -11
  514. package/dist/ui/svelte-generator/index.js.map +0 -1
  515. package/dist/ui/svelte-generator/psf-generator.d.ts +0 -128
  516. package/dist/ui/svelte-generator/psf-generator.d.ts.map +0 -1
  517. package/dist/ui/svelte-generator/psf-generator.js +0 -506
  518. package/dist/ui/svelte-generator/psf-generator.js.map +0 -1
@@ -6,7 +6,7 @@
6
6
  /**
7
7
  * Base schema definition
8
8
  */
9
- export interface PraxisSchema {
9
+ interface PraxisSchema {
10
10
  /** Schema version (semver) */
11
11
  version: string;
12
12
  /** Schema name/identifier */
@@ -27,7 +27,7 @@ export interface PraxisSchema {
27
27
  /**
28
28
  * Model definition for data structures
29
29
  */
30
- export interface ModelDefinition {
30
+ interface ModelDefinition {
31
31
  /** Model name */
32
32
  name: string;
33
33
  /** Model description */
@@ -44,7 +44,7 @@ export interface ModelDefinition {
44
44
  /**
45
45
  * Field definition within a model
46
46
  */
47
- export interface FieldDefinition {
47
+ interface FieldDefinition {
48
48
  /** Field name */
49
49
  name: string;
50
50
  /** Field type */
@@ -61,7 +61,7 @@ export interface FieldDefinition {
61
61
  /**
62
62
  * Supported field types
63
63
  */
64
- export type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object' | 'reference' | {
64
+ type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object' | 'reference' | {
65
65
  array: FieldType;
66
66
  } | {
67
67
  object: Record<string, FieldDefinition>;
@@ -71,7 +71,7 @@ export type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'array' | 'ob
71
71
  /**
72
72
  * Validation rule for a field
73
73
  */
74
- export interface ValidationRule {
74
+ interface ValidationRule {
75
75
  /** Validation type */
76
76
  type: 'required' | 'min' | 'max' | 'pattern' | 'custom';
77
77
  /** Validation value */
@@ -82,7 +82,7 @@ export interface ValidationRule {
82
82
  /**
83
83
  * Constraint definition for models
84
84
  */
85
- export interface ConstraintDefinition {
85
+ interface ConstraintDefinition {
86
86
  /** Constraint identifier */
87
87
  id: string;
88
88
  /** Constraint description */
@@ -97,7 +97,7 @@ export interface ConstraintDefinition {
97
97
  /**
98
98
  * Index definition for queries
99
99
  */
100
- export interface IndexDefinition {
100
+ interface IndexDefinition {
101
101
  /** Index name */
102
102
  name: string;
103
103
  /** Indexed fields */
@@ -110,7 +110,7 @@ export interface IndexDefinition {
110
110
  /**
111
111
  * Relationship definition between models
112
112
  */
113
- export interface RelationshipDefinition {
113
+ interface RelationshipDefinition {
114
114
  /** Relationship name */
115
115
  name: string;
116
116
  /** Relationship type */
@@ -125,7 +125,7 @@ export interface RelationshipDefinition {
125
125
  /**
126
126
  * Component definition for UI
127
127
  */
128
- export interface ComponentDefinition {
128
+ interface ComponentDefinition {
129
129
  /** Component name */
130
130
  name: string;
131
131
  /** Component type */
@@ -146,7 +146,7 @@ export interface ComponentDefinition {
146
146
  /**
147
147
  * Component property definition
148
148
  */
149
- export interface ComponentProp {
149
+ interface ComponentProp {
150
150
  /** Property name */
151
151
  name: string;
152
152
  /** Property type */
@@ -161,7 +161,7 @@ export interface ComponentProp {
161
161
  /**
162
162
  * Component event definition
163
163
  */
164
- export interface ComponentEvent {
164
+ interface ComponentEvent {
165
165
  /** Event name */
166
166
  name: string;
167
167
  /** Event payload type */
@@ -172,7 +172,7 @@ export interface ComponentEvent {
172
172
  /**
173
173
  * Layout definition for components
174
174
  */
175
- export interface LayoutDefinition {
175
+ interface LayoutDefinition {
176
176
  /** Layout type */
177
177
  type: 'stack' | 'grid' | 'flex' | 'absolute';
178
178
  /** Layout direction */
@@ -187,7 +187,7 @@ export interface LayoutDefinition {
187
187
  /**
188
188
  * Styling definition for components
189
189
  */
190
- export interface StylingDefinition {
190
+ interface StylingDefinition {
191
191
  /** CSS classes */
192
192
  classes?: string[];
193
193
  /** Inline styles */
@@ -198,7 +198,7 @@ export interface StylingDefinition {
198
198
  /**
199
199
  * Logic definition for business rules
200
200
  */
201
- export interface LogicDefinition {
201
+ interface LogicDefinition {
202
202
  /** Logic identifier */
203
203
  id: string;
204
204
  /** Logic description */
@@ -215,7 +215,7 @@ export interface LogicDefinition {
215
215
  /**
216
216
  * Fact definition
217
217
  */
218
- export interface FactDefinition {
218
+ interface FactDefinition {
219
219
  /** Fact tag */
220
220
  tag: string;
221
221
  /** Fact payload type */
@@ -226,7 +226,7 @@ export interface FactDefinition {
226
226
  /**
227
227
  * Event definition
228
228
  */
229
- export interface EventDefinition {
229
+ interface EventDefinition {
230
230
  /** Event tag */
231
231
  tag: string;
232
232
  /** Event payload type */
@@ -237,7 +237,7 @@ export interface EventDefinition {
237
237
  /**
238
238
  * Rule definition
239
239
  */
240
- export interface RuleDefinition {
240
+ interface RuleDefinition {
241
241
  /** Rule identifier */
242
242
  id: string;
243
243
  /** Rule description */
@@ -254,7 +254,7 @@ export interface RuleDefinition {
254
254
  /**
255
255
  * Logic constraint definition
256
256
  */
257
- export interface LogicConstraint {
257
+ interface LogicConstraint {
258
258
  /** Constraint identifier */
259
259
  id: string;
260
260
  /** Constraint description */
@@ -267,7 +267,7 @@ export interface LogicConstraint {
267
267
  /**
268
268
  * Orchestration definition
269
269
  */
270
- export interface OrchestrationDefinition {
270
+ interface OrchestrationDefinition {
271
271
  /** Orchestration type */
272
272
  type: 'dsc' | 'mcp' | 'custom';
273
273
  /** Node configurations */
@@ -280,7 +280,7 @@ export interface OrchestrationDefinition {
280
280
  /**
281
281
  * Node definition for orchestration
282
282
  */
283
- export interface NodeDefinition {
283
+ interface NodeDefinition {
284
284
  /** Node identifier */
285
285
  id: string;
286
286
  /** Node type */
@@ -298,7 +298,7 @@ export interface NodeDefinition {
298
298
  /**
299
299
  * Node bindings for pluresdb path connections
300
300
  */
301
- export interface NodeBindings {
301
+ interface NodeBindings {
302
302
  /** Output binding to pluresdb path */
303
303
  output?: string;
304
304
  /** Input binding to pluresdb path */
@@ -309,7 +309,7 @@ export interface NodeBindings {
309
309
  /**
310
310
  * Terminal node specific configuration
311
311
  */
312
- export interface TerminalNodeProps {
312
+ interface TerminalNodeProps {
313
313
  /** Input mode: text input or widget-based */
314
314
  inputMode: 'text' | 'widget';
315
315
  /** Command history */
@@ -320,7 +320,7 @@ export interface TerminalNodeProps {
320
320
  /**
321
321
  * Sync definition for state synchronization
322
322
  */
323
- export interface SyncDefinition {
323
+ interface SyncDefinition {
324
324
  /** Sync interval in ms */
325
325
  interval: number;
326
326
  /** Conflict resolution strategy */
@@ -331,7 +331,7 @@ export interface SyncDefinition {
331
331
  /**
332
332
  * Health check definition
333
333
  */
334
- export interface HealthDefinition {
334
+ interface HealthDefinition {
335
335
  /** Check interval in ms */
336
336
  interval: number;
337
337
  /** Health check endpoints */
@@ -342,7 +342,7 @@ export interface HealthDefinition {
342
342
  /**
343
343
  * Schema validation result
344
344
  */
345
- export interface ValidationResult {
345
+ interface ValidationResult {
346
346
  /** Validation success */
347
347
  valid: boolean;
348
348
  /** Validation errors */
@@ -351,7 +351,7 @@ export interface ValidationResult {
351
351
  /**
352
352
  * Validation error
353
353
  */
354
- export interface ValidationError {
354
+ interface ValidationError {
355
355
  /** Error path in schema */
356
356
  path: string;
357
357
  /** Error message */
@@ -362,9 +362,10 @@ export interface ValidationError {
362
362
  /**
363
363
  * Validate a Praxis schema
364
364
  */
365
- export declare function validateSchema(schema: PraxisSchema): ValidationResult;
365
+ declare function validateSchema(schema: PraxisSchema): ValidationResult;
366
366
  /**
367
367
  * Create a basic schema template
368
368
  */
369
- export declare function createSchemaTemplate(name: string): PraxisSchema;
370
- //# sourceMappingURL=types.d.ts.map
369
+ declare function createSchemaTemplate(name: string): PraxisSchema;
370
+
371
+ export { type ComponentDefinition, type ComponentEvent, type ComponentProp, type ConstraintDefinition, type EventDefinition, type FactDefinition, type FieldDefinition, type FieldType, type HealthDefinition, type IndexDefinition, type LayoutDefinition, type LogicConstraint, type LogicDefinition, type ModelDefinition, type NodeBindings, type NodeDefinition, type OrchestrationDefinition, type PraxisSchema, type RelationshipDefinition, type RuleDefinition, type StylingDefinition, type SyncDefinition, type TerminalNodeProps, type ValidationError, type ValidationResult, type ValidationRule, createSchemaTemplate, validateSchema };
@@ -0,0 +1,371 @@
1
+ /**
2
+ * Praxis Schema System
3
+ *
4
+ * Declarative schema definitions for generating models, components, logic, and documentation.
5
+ */
6
+ /**
7
+ * Base schema definition
8
+ */
9
+ interface PraxisSchema {
10
+ /** Schema version (semver) */
11
+ version: string;
12
+ /** Schema name/identifier */
13
+ name: string;
14
+ /** Human-readable description */
15
+ description?: string;
16
+ /** Data models */
17
+ models?: ModelDefinition[];
18
+ /** UI components */
19
+ components?: ComponentDefinition[];
20
+ /** Logic definitions */
21
+ logic?: LogicDefinition[];
22
+ /** Orchestration configuration */
23
+ orchestration?: OrchestrationDefinition;
24
+ /** Additional metadata */
25
+ metadata?: Record<string, unknown>;
26
+ }
27
+ /**
28
+ * Model definition for data structures
29
+ */
30
+ interface ModelDefinition {
31
+ /** Model name */
32
+ name: string;
33
+ /** Model description */
34
+ description?: string;
35
+ /** Model fields */
36
+ fields: FieldDefinition[];
37
+ /** Validation constraints */
38
+ constraints?: ConstraintDefinition[];
39
+ /** Indexes for queries */
40
+ indexes?: IndexDefinition[];
41
+ /** Relationships to other models */
42
+ relationships?: RelationshipDefinition[];
43
+ }
44
+ /**
45
+ * Field definition within a model
46
+ */
47
+ interface FieldDefinition {
48
+ /** Field name */
49
+ name: string;
50
+ /** Field type */
51
+ type: FieldType;
52
+ /** Optional field */
53
+ optional?: boolean;
54
+ /** Default value */
55
+ default?: unknown;
56
+ /** Field description */
57
+ description?: string;
58
+ /** Validation rules */
59
+ validation?: ValidationRule[];
60
+ }
61
+ /**
62
+ * Supported field types
63
+ */
64
+ type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object' | 'reference' | {
65
+ array: FieldType;
66
+ } | {
67
+ object: Record<string, FieldDefinition>;
68
+ } | {
69
+ reference: string;
70
+ };
71
+ /**
72
+ * Validation rule for a field
73
+ */
74
+ interface ValidationRule {
75
+ /** Validation type */
76
+ type: 'required' | 'min' | 'max' | 'pattern' | 'custom';
77
+ /** Validation value */
78
+ value?: unknown;
79
+ /** Error message */
80
+ message?: string;
81
+ }
82
+ /**
83
+ * Constraint definition for models
84
+ */
85
+ interface ConstraintDefinition {
86
+ /** Constraint identifier */
87
+ id: string;
88
+ /** Constraint description */
89
+ description: string;
90
+ /** Constraint type */
91
+ type: 'unique' | 'check' | 'foreign_key';
92
+ /** Constraint fields */
93
+ fields: string[];
94
+ /** Additional constraint options */
95
+ options?: Record<string, unknown>;
96
+ }
97
+ /**
98
+ * Index definition for queries
99
+ */
100
+ interface IndexDefinition {
101
+ /** Index name */
102
+ name: string;
103
+ /** Indexed fields */
104
+ fields: string[];
105
+ /** Unique index */
106
+ unique?: boolean;
107
+ /** Index type */
108
+ type?: 'btree' | 'hash' | 'fulltext';
109
+ }
110
+ /**
111
+ * Relationship definition between models
112
+ */
113
+ interface RelationshipDefinition {
114
+ /** Relationship name */
115
+ name: string;
116
+ /** Relationship type */
117
+ type: 'one-to-one' | 'one-to-many' | 'many-to-many';
118
+ /** Target model */
119
+ target: string;
120
+ /** Foreign key field */
121
+ foreignKey?: string;
122
+ /** Cascade delete */
123
+ cascadeDelete?: boolean;
124
+ }
125
+ /**
126
+ * Component definition for UI
127
+ */
128
+ interface ComponentDefinition {
129
+ /** Component name */
130
+ name: string;
131
+ /** Component type */
132
+ type: 'form' | 'display' | 'list' | 'navigation' | 'custom';
133
+ /** Component description */
134
+ description?: string;
135
+ /** Model binding */
136
+ model?: string;
137
+ /** Component properties */
138
+ props?: ComponentProp[];
139
+ /** Component events */
140
+ events?: ComponentEvent[];
141
+ /** Component layout */
142
+ layout?: LayoutDefinition;
143
+ /** Component styling */
144
+ styling?: StylingDefinition;
145
+ }
146
+ /**
147
+ * Component property definition
148
+ */
149
+ interface ComponentProp {
150
+ /** Property name */
151
+ name: string;
152
+ /** Property type */
153
+ type: string;
154
+ /** Required property */
155
+ required?: boolean;
156
+ /** Default value */
157
+ default?: unknown;
158
+ /** Property description */
159
+ description?: string;
160
+ }
161
+ /**
162
+ * Component event definition
163
+ */
164
+ interface ComponentEvent {
165
+ /** Event name */
166
+ name: string;
167
+ /** Event payload type */
168
+ payload?: string;
169
+ /** Event description */
170
+ description?: string;
171
+ }
172
+ /**
173
+ * Layout definition for components
174
+ */
175
+ interface LayoutDefinition {
176
+ /** Layout type */
177
+ type: 'stack' | 'grid' | 'flex' | 'absolute';
178
+ /** Layout direction */
179
+ direction?: 'horizontal' | 'vertical';
180
+ /** Layout gap */
181
+ gap?: number;
182
+ /** Layout padding */
183
+ padding?: number;
184
+ /** Layout alignment */
185
+ alignment?: string;
186
+ }
187
+ /**
188
+ * Styling definition for components
189
+ */
190
+ interface StylingDefinition {
191
+ /** CSS classes */
192
+ classes?: string[];
193
+ /** Inline styles */
194
+ styles?: Record<string, string>;
195
+ /** Theme tokens */
196
+ theme?: Record<string, string>;
197
+ }
198
+ /**
199
+ * Logic definition for business rules
200
+ */
201
+ interface LogicDefinition {
202
+ /** Logic identifier */
203
+ id: string;
204
+ /** Logic description */
205
+ description: string;
206
+ /** Facts definitions */
207
+ facts?: FactDefinition[];
208
+ /** Events definitions */
209
+ events?: EventDefinition[];
210
+ /** Rules definitions */
211
+ rules?: RuleDefinition[];
212
+ /** Constraints definitions */
213
+ constraints?: LogicConstraint[];
214
+ }
215
+ /**
216
+ * Fact definition
217
+ */
218
+ interface FactDefinition {
219
+ /** Fact tag */
220
+ tag: string;
221
+ /** Fact payload type */
222
+ payload: Record<string, string>;
223
+ /** Fact description */
224
+ description?: string;
225
+ }
226
+ /**
227
+ * Event definition
228
+ */
229
+ interface EventDefinition {
230
+ /** Event tag */
231
+ tag: string;
232
+ /** Event payload type */
233
+ payload: Record<string, string>;
234
+ /** Event description */
235
+ description?: string;
236
+ }
237
+ /**
238
+ * Rule definition
239
+ */
240
+ interface RuleDefinition {
241
+ /** Rule identifier */
242
+ id: string;
243
+ /** Rule description */
244
+ description: string;
245
+ /** Input events */
246
+ on?: string[];
247
+ /** Rule condition */
248
+ when?: string;
249
+ /** Rule action */
250
+ then: string;
251
+ /** Rule priority */
252
+ priority?: number;
253
+ }
254
+ /**
255
+ * Logic constraint definition
256
+ */
257
+ interface LogicConstraint {
258
+ /** Constraint identifier */
259
+ id: string;
260
+ /** Constraint description */
261
+ description: string;
262
+ /** Constraint check */
263
+ check: string;
264
+ /** Error message */
265
+ message: string;
266
+ }
267
+ /**
268
+ * Orchestration definition
269
+ */
270
+ interface OrchestrationDefinition {
271
+ /** Orchestration type */
272
+ type: 'dsc' | 'mcp' | 'custom';
273
+ /** Node configurations */
274
+ nodes?: NodeDefinition[];
275
+ /** State synchronization */
276
+ sync?: SyncDefinition;
277
+ /** Health checks */
278
+ health?: HealthDefinition;
279
+ }
280
+ /**
281
+ * Node definition for orchestration
282
+ */
283
+ interface NodeDefinition {
284
+ /** Node identifier */
285
+ id: string;
286
+ /** Node type */
287
+ type: string;
288
+ /** Node configuration */
289
+ config: Record<string, unknown>;
290
+ /** Node position (x, y coordinates for canvas) */
291
+ x?: number;
292
+ y?: number;
293
+ /** Node props (type-specific properties) */
294
+ props?: Record<string, unknown>;
295
+ /** Node bindings (connections to pluresdb paths) */
296
+ bindings?: NodeBindings;
297
+ }
298
+ /**
299
+ * Node bindings for pluresdb path connections
300
+ */
301
+ interface NodeBindings {
302
+ /** Output binding to pluresdb path */
303
+ output?: string;
304
+ /** Input binding to pluresdb path */
305
+ input?: string;
306
+ /** Additional custom bindings */
307
+ [key: string]: string | undefined;
308
+ }
309
+ /**
310
+ * Terminal node specific configuration
311
+ */
312
+ interface TerminalNodeProps {
313
+ /** Input mode: text input or widget-based */
314
+ inputMode: 'text' | 'widget';
315
+ /** Command history */
316
+ history: string[];
317
+ /** Last command output */
318
+ lastOutput: string | null;
319
+ }
320
+ /**
321
+ * Sync definition for state synchronization
322
+ */
323
+ interface SyncDefinition {
324
+ /** Sync interval in ms */
325
+ interval: number;
326
+ /** Conflict resolution strategy */
327
+ conflictResolution: 'last-write-wins' | 'merge' | 'custom';
328
+ /** Sync targets */
329
+ targets: string[];
330
+ }
331
+ /**
332
+ * Health check definition
333
+ */
334
+ interface HealthDefinition {
335
+ /** Check interval in ms */
336
+ interval: number;
337
+ /** Health check endpoints */
338
+ endpoints: string[];
339
+ /** Timeout in ms */
340
+ timeout: number;
341
+ }
342
+ /**
343
+ * Schema validation result
344
+ */
345
+ interface ValidationResult {
346
+ /** Validation success */
347
+ valid: boolean;
348
+ /** Validation errors */
349
+ errors: ValidationError[];
350
+ }
351
+ /**
352
+ * Validation error
353
+ */
354
+ interface ValidationError {
355
+ /** Error path in schema */
356
+ path: string;
357
+ /** Error message */
358
+ message: string;
359
+ /** Error code */
360
+ code?: string;
361
+ }
362
+ /**
363
+ * Validate a Praxis schema
364
+ */
365
+ declare function validateSchema(schema: PraxisSchema): ValidationResult;
366
+ /**
367
+ * Create a basic schema template
368
+ */
369
+ declare function createSchemaTemplate(name: string): PraxisSchema;
370
+
371
+ export { type ComponentDefinition, type ComponentEvent, type ComponentProp, type ConstraintDefinition, type EventDefinition, type FactDefinition, type FieldDefinition, type FieldType, type HealthDefinition, type IndexDefinition, type LayoutDefinition, type LogicConstraint, type LogicDefinition, type ModelDefinition, type NodeBindings, type NodeDefinition, type OrchestrationDefinition, type PraxisSchema, type RelationshipDefinition, type RuleDefinition, type StylingDefinition, type SyncDefinition, type TerminalNodeProps, type ValidationError, type ValidationResult, type ValidationRule, createSchemaTemplate, validateSchema };
@@ -0,0 +1,9 @@
1
+ import {
2
+ createSchemaTemplate,
3
+ validateSchema
4
+ } from "./chunk-UATVJBNV.js";
5
+ import "./chunk-QGM4M3NI.js";
6
+ export {
7
+ createSchemaTemplate,
8
+ validateSchema
9
+ };