@angriff36/manifest 2.18.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 (995) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +476 -0
  3. package/dist/manifest/agent-sdk/agent-runtime.d.ts +30 -0
  4. package/dist/manifest/agent-sdk/agent-runtime.d.ts.map +1 -0
  5. package/dist/manifest/agent-sdk/agent-runtime.js +232 -0
  6. package/dist/manifest/agent-sdk/agent-runtime.js.map +1 -0
  7. package/dist/manifest/agent-sdk/index.d.ts +17 -0
  8. package/dist/manifest/agent-sdk/index.d.ts.map +1 -0
  9. package/dist/manifest/agent-sdk/index.js +21 -0
  10. package/dist/manifest/agent-sdk/index.js.map +1 -0
  11. package/dist/manifest/agent-sdk/intent-mapper.d.ts +17 -0
  12. package/dist/manifest/agent-sdk/intent-mapper.d.ts.map +1 -0
  13. package/dist/manifest/agent-sdk/intent-mapper.js +115 -0
  14. package/dist/manifest/agent-sdk/intent-mapper.js.map +1 -0
  15. package/dist/manifest/agent-sdk/introspect.d.ts +42 -0
  16. package/dist/manifest/agent-sdk/introspect.d.ts.map +1 -0
  17. package/dist/manifest/agent-sdk/introspect.js +284 -0
  18. package/dist/manifest/agent-sdk/introspect.js.map +1 -0
  19. package/dist/manifest/agent-sdk/json-schema.d.ts +29 -0
  20. package/dist/manifest/agent-sdk/json-schema.d.ts.map +1 -0
  21. package/dist/manifest/agent-sdk/json-schema.js +132 -0
  22. package/dist/manifest/agent-sdk/json-schema.js.map +1 -0
  23. package/dist/manifest/agent-sdk/tool-definitions.d.ts +41 -0
  24. package/dist/manifest/agent-sdk/tool-definitions.d.ts.map +1 -0
  25. package/dist/manifest/agent-sdk/tool-definitions.js +288 -0
  26. package/dist/manifest/agent-sdk/tool-definitions.js.map +1 -0
  27. package/dist/manifest/agent-sdk/types.d.ts +293 -0
  28. package/dist/manifest/agent-sdk/types.d.ts.map +1 -0
  29. package/dist/manifest/agent-sdk/types.js +6 -0
  30. package/dist/manifest/agent-sdk/types.js.map +1 -0
  31. package/dist/manifest/api-diagnostics.d.ts +41 -0
  32. package/dist/manifest/api-diagnostics.d.ts.map +1 -0
  33. package/dist/manifest/api-diagnostics.js +105 -0
  34. package/dist/manifest/api-diagnostics.js.map +1 -0
  35. package/dist/manifest/approval/approval-store.d.ts +52 -0
  36. package/dist/manifest/approval/approval-store.d.ts.map +1 -0
  37. package/dist/manifest/approval/approval-store.js +25 -0
  38. package/dist/manifest/approval/approval-store.js.map +1 -0
  39. package/dist/manifest/approval/stores/memory.d.ts +33 -0
  40. package/dist/manifest/approval/stores/memory.d.ts.map +1 -0
  41. package/dist/manifest/approval/stores/memory.js +56 -0
  42. package/dist/manifest/approval/stores/memory.js.map +1 -0
  43. package/dist/manifest/approval/stores/postgres.d.ts +41 -0
  44. package/dist/manifest/approval/stores/postgres.d.ts.map +1 -0
  45. package/dist/manifest/approval/stores/postgres.js +124 -0
  46. package/dist/manifest/approval/stores/postgres.js.map +1 -0
  47. package/dist/manifest/audit/audit-sink.d.ts +53 -0
  48. package/dist/manifest/audit/audit-sink.d.ts.map +1 -0
  49. package/dist/manifest/audit/audit-sink.js +15 -0
  50. package/dist/manifest/audit/audit-sink.js.map +1 -0
  51. package/dist/manifest/audit/sinks/memory.d.ts +50 -0
  52. package/dist/manifest/audit/sinks/memory.d.ts.map +1 -0
  53. package/dist/manifest/audit/sinks/memory.js +66 -0
  54. package/dist/manifest/audit/sinks/memory.js.map +1 -0
  55. package/dist/manifest/audit/sinks/postgres.d.ts +31 -0
  56. package/dist/manifest/audit/sinks/postgres.d.ts.map +1 -0
  57. package/dist/manifest/audit/sinks/postgres.js +67 -0
  58. package/dist/manifest/audit/sinks/postgres.js.map +1 -0
  59. package/dist/manifest/binary-ir.d.ts +76 -0
  60. package/dist/manifest/binary-ir.d.ts.map +1 -0
  61. package/dist/manifest/binary-ir.js +124 -0
  62. package/dist/manifest/binary-ir.js.map +1 -0
  63. package/dist/manifest/breaking-change.d.ts +75 -0
  64. package/dist/manifest/breaking-change.d.ts.map +1 -0
  65. package/dist/manifest/breaking-change.js +704 -0
  66. package/dist/manifest/breaking-change.js.map +1 -0
  67. package/dist/manifest/compiler.d.ts +12 -0
  68. package/dist/manifest/compiler.d.ts.map +1 -0
  69. package/dist/manifest/compiler.js +23 -0
  70. package/dist/manifest/compiler.js.map +1 -0
  71. package/dist/manifest/config.d.ts +171 -0
  72. package/dist/manifest/config.d.ts.map +1 -0
  73. package/dist/manifest/config.js +65 -0
  74. package/dist/manifest/config.js.map +1 -0
  75. package/dist/manifest/constraint-analysis.d.ts +122 -0
  76. package/dist/manifest/constraint-analysis.d.ts.map +1 -0
  77. package/dist/manifest/constraint-analysis.js +340 -0
  78. package/dist/manifest/constraint-analysis.js.map +1 -0
  79. package/dist/manifest/date-time.d.ts +13 -0
  80. package/dist/manifest/date-time.d.ts.map +1 -0
  81. package/dist/manifest/date-time.js +60 -0
  82. package/dist/manifest/date-time.js.map +1 -0
  83. package/dist/manifest/debug/command-trace.d.ts +37 -0
  84. package/dist/manifest/debug/command-trace.d.ts.map +1 -0
  85. package/dist/manifest/debug/command-trace.js +51 -0
  86. package/dist/manifest/debug/command-trace.js.map +1 -0
  87. package/dist/manifest/debug/index.d.ts +3 -0
  88. package/dist/manifest/debug/index.d.ts.map +1 -0
  89. package/dist/manifest/debug/index.js +2 -0
  90. package/dist/manifest/debug/index.js.map +1 -0
  91. package/dist/manifest/domain-completeness.d.ts +13 -0
  92. package/dist/manifest/domain-completeness.d.ts.map +1 -0
  93. package/dist/manifest/domain-completeness.js +245 -0
  94. package/dist/manifest/domain-completeness.js.map +1 -0
  95. package/dist/manifest/entity-composition.d.ts +24 -0
  96. package/dist/manifest/entity-composition.d.ts.map +1 -0
  97. package/dist/manifest/entity-composition.js +157 -0
  98. package/dist/manifest/entity-composition.js.map +1 -0
  99. package/dist/manifest/examples.d.ts +6 -0
  100. package/dist/manifest/examples.d.ts.map +1 -0
  101. package/dist/manifest/examples.js +443 -0
  102. package/dist/manifest/examples.js.map +1 -0
  103. package/dist/manifest/federation/client.d.ts +52 -0
  104. package/dist/manifest/federation/client.d.ts.map +1 -0
  105. package/dist/manifest/federation/client.js +152 -0
  106. package/dist/manifest/federation/client.js.map +1 -0
  107. package/dist/manifest/federation/descriptor.d.ts +25 -0
  108. package/dist/manifest/federation/descriptor.d.ts.map +1 -0
  109. package/dist/manifest/federation/descriptor.js +97 -0
  110. package/dist/manifest/federation/descriptor.js.map +1 -0
  111. package/dist/manifest/federation/http-adapter.d.ts +26 -0
  112. package/dist/manifest/federation/http-adapter.d.ts.map +1 -0
  113. package/dist/manifest/federation/http-adapter.js +209 -0
  114. package/dist/manifest/federation/http-adapter.js.map +1 -0
  115. package/dist/manifest/federation/index.d.ts +51 -0
  116. package/dist/manifest/federation/index.d.ts.map +1 -0
  117. package/dist/manifest/federation/index.js +49 -0
  118. package/dist/manifest/federation/index.js.map +1 -0
  119. package/dist/manifest/federation/policy-bridge.d.ts +51 -0
  120. package/dist/manifest/federation/policy-bridge.d.ts.map +1 -0
  121. package/dist/manifest/federation/policy-bridge.js +122 -0
  122. package/dist/manifest/federation/policy-bridge.js.map +1 -0
  123. package/dist/manifest/federation/registry.d.ts +88 -0
  124. package/dist/manifest/federation/registry.d.ts.map +1 -0
  125. package/dist/manifest/federation/registry.js +165 -0
  126. package/dist/manifest/federation/registry.js.map +1 -0
  127. package/dist/manifest/federation/types.d.ts +209 -0
  128. package/dist/manifest/federation/types.d.ts.map +1 -0
  129. package/dist/manifest/federation/types.js +13 -0
  130. package/dist/manifest/federation/types.js.map +1 -0
  131. package/dist/manifest/generator.d.ts +44 -0
  132. package/dist/manifest/generator.d.ts.map +1 -0
  133. package/dist/manifest/generator.js +899 -0
  134. package/dist/manifest/generator.js.map +1 -0
  135. package/dist/manifest/ir-cache.d.ts +48 -0
  136. package/dist/manifest/ir-cache.d.ts.map +1 -0
  137. package/dist/manifest/ir-cache.js +91 -0
  138. package/dist/manifest/ir-cache.js.map +1 -0
  139. package/dist/manifest/ir-compiler.d.ts +135 -0
  140. package/dist/manifest/ir-compiler.d.ts.map +1 -0
  141. package/dist/manifest/ir-compiler.js +1477 -0
  142. package/dist/manifest/ir-compiler.js.map +1 -0
  143. package/dist/manifest/ir-diff.d.ts +266 -0
  144. package/dist/manifest/ir-diff.d.ts.map +1 -0
  145. package/dist/manifest/ir-diff.js +731 -0
  146. package/dist/manifest/ir-diff.js.map +1 -0
  147. package/dist/manifest/ir-version-store.d.ts +109 -0
  148. package/dist/manifest/ir-version-store.d.ts.map +1 -0
  149. package/dist/manifest/ir-version-store.js +162 -0
  150. package/dist/manifest/ir-version-store.js.map +1 -0
  151. package/dist/manifest/ir.d.ts +616 -0
  152. package/dist/manifest/ir.d.ts.map +1 -0
  153. package/dist/manifest/ir.js +2 -0
  154. package/dist/manifest/ir.js.map +1 -0
  155. package/dist/manifest/lexer.d.ts +37 -0
  156. package/dist/manifest/lexer.d.ts.map +1 -0
  157. package/dist/manifest/lexer.js +224 -0
  158. package/dist/manifest/lexer.js.map +1 -0
  159. package/dist/manifest/masking.d.ts +11 -0
  160. package/dist/manifest/masking.d.ts.map +1 -0
  161. package/dist/manifest/masking.js +34 -0
  162. package/dist/manifest/masking.js.map +1 -0
  163. package/dist/manifest/module-resolver.d.ts +42 -0
  164. package/dist/manifest/module-resolver.d.ts.map +1 -0
  165. package/dist/manifest/module-resolver.js +162 -0
  166. package/dist/manifest/module-resolver.js.map +1 -0
  167. package/dist/manifest/multi-compiler.d.ts +40 -0
  168. package/dist/manifest/multi-compiler.d.ts.map +1 -0
  169. package/dist/manifest/multi-compiler.js +324 -0
  170. package/dist/manifest/multi-compiler.js.map +1 -0
  171. package/dist/manifest/outbox/outbox-store.d.ts +56 -0
  172. package/dist/manifest/outbox/outbox-store.d.ts.map +1 -0
  173. package/dist/manifest/outbox/outbox-store.js +13 -0
  174. package/dist/manifest/outbox/outbox-store.js.map +1 -0
  175. package/dist/manifest/outbox/stores/dynamodb.d.ts +100 -0
  176. package/dist/manifest/outbox/stores/dynamodb.d.ts.map +1 -0
  177. package/dist/manifest/outbox/stores/dynamodb.js +239 -0
  178. package/dist/manifest/outbox/stores/dynamodb.js.map +1 -0
  179. package/dist/manifest/outbox/stores/memory.d.ts +54 -0
  180. package/dist/manifest/outbox/stores/memory.d.ts.map +1 -0
  181. package/dist/manifest/outbox/stores/memory.js +131 -0
  182. package/dist/manifest/outbox/stores/memory.js.map +1 -0
  183. package/dist/manifest/outbox/stores/mongodb.d.ts +58 -0
  184. package/dist/manifest/outbox/stores/mongodb.d.ts.map +1 -0
  185. package/dist/manifest/outbox/stores/mongodb.js +151 -0
  186. package/dist/manifest/outbox/stores/mongodb.js.map +1 -0
  187. package/dist/manifest/outbox/stores/postgres.d.ts +81 -0
  188. package/dist/manifest/outbox/stores/postgres.d.ts.map +1 -0
  189. package/dist/manifest/outbox/stores/postgres.js +182 -0
  190. package/dist/manifest/outbox/stores/postgres.js.map +1 -0
  191. package/dist/manifest/outbox/stores/redis.d.ts +95 -0
  192. package/dist/manifest/outbox/stores/redis.d.ts.map +1 -0
  193. package/dist/manifest/outbox/stores/redis.js +248 -0
  194. package/dist/manifest/outbox/stores/redis.js.map +1 -0
  195. package/dist/manifest/parser.d.ts +148 -0
  196. package/dist/manifest/parser.d.ts.map +1 -0
  197. package/dist/manifest/parser.js +2243 -0
  198. package/dist/manifest/parser.js.map +1 -0
  199. package/dist/manifest/plugin-api.d.ts +202 -0
  200. package/dist/manifest/plugin-api.d.ts.map +1 -0
  201. package/dist/manifest/plugin-api.js +101 -0
  202. package/dist/manifest/plugin-api.js.map +1 -0
  203. package/dist/manifest/plugin-loader.d.ts +101 -0
  204. package/dist/manifest/plugin-loader.d.ts.map +1 -0
  205. package/dist/manifest/plugin-loader.js +332 -0
  206. package/dist/manifest/plugin-loader.js.map +1 -0
  207. package/dist/manifest/profiling.d.ts +183 -0
  208. package/dist/manifest/profiling.d.ts.map +1 -0
  209. package/dist/manifest/profiling.js +186 -0
  210. package/dist/manifest/profiling.js.map +1 -0
  211. package/dist/manifest/projections/analytics/generator.d.ts +27 -0
  212. package/dist/manifest/projections/analytics/generator.d.ts.map +1 -0
  213. package/dist/manifest/projections/analytics/generator.js +686 -0
  214. package/dist/manifest/projections/analytics/generator.js.map +1 -0
  215. package/dist/manifest/projections/analytics/types.d.ts +46 -0
  216. package/dist/manifest/projections/analytics/types.d.ts.map +1 -0
  217. package/dist/manifest/projections/analytics/types.js +8 -0
  218. package/dist/manifest/projections/analytics/types.js.map +1 -0
  219. package/dist/manifest/projections/builtins.d.ts +29 -0
  220. package/dist/manifest/projections/builtins.d.ts.map +1 -0
  221. package/dist/manifest/projections/builtins.js +143 -0
  222. package/dist/manifest/projections/builtins.js.map +1 -0
  223. package/dist/manifest/projections/convex/expression.d.ts +52 -0
  224. package/dist/manifest/projections/convex/expression.d.ts.map +1 -0
  225. package/dist/manifest/projections/convex/expression.js +166 -0
  226. package/dist/manifest/projections/convex/expression.js.map +1 -0
  227. package/dist/manifest/projections/convex/functions.d.ts +22 -0
  228. package/dist/manifest/projections/convex/functions.d.ts.map +1 -0
  229. package/dist/manifest/projections/convex/functions.js +786 -0
  230. package/dist/manifest/projections/convex/functions.js.map +1 -0
  231. package/dist/manifest/projections/convex/generator.d.ts +79 -0
  232. package/dist/manifest/projections/convex/generator.d.ts.map +1 -0
  233. package/dist/manifest/projections/convex/generator.js +406 -0
  234. package/dist/manifest/projections/convex/generator.js.map +1 -0
  235. package/dist/manifest/projections/convex/index.d.ts +10 -0
  236. package/dist/manifest/projections/convex/index.d.ts.map +1 -0
  237. package/dist/manifest/projections/convex/index.js +10 -0
  238. package/dist/manifest/projections/convex/index.js.map +1 -0
  239. package/dist/manifest/projections/convex/options.d.ts +153 -0
  240. package/dist/manifest/projections/convex/options.d.ts.map +1 -0
  241. package/dist/manifest/projections/convex/options.js +60 -0
  242. package/dist/manifest/projections/convex/options.js.map +1 -0
  243. package/dist/manifest/projections/convex/orchestration.d.ts +23 -0
  244. package/dist/manifest/projections/convex/orchestration.d.ts.map +1 -0
  245. package/dist/manifest/projections/convex/orchestration.js +150 -0
  246. package/dist/manifest/projections/convex/orchestration.js.map +1 -0
  247. package/dist/manifest/projections/convex/type-mapping.d.ts +40 -0
  248. package/dist/manifest/projections/convex/type-mapping.d.ts.map +1 -0
  249. package/dist/manifest/projections/convex/type-mapping.js +71 -0
  250. package/dist/manifest/projections/convex/type-mapping.js.map +1 -0
  251. package/dist/manifest/projections/dart/generator.d.ts +33 -0
  252. package/dist/manifest/projections/dart/generator.d.ts.map +1 -0
  253. package/dist/manifest/projections/dart/generator.js +981 -0
  254. package/dist/manifest/projections/dart/generator.js.map +1 -0
  255. package/dist/manifest/projections/dart/types.d.ts +29 -0
  256. package/dist/manifest/projections/dart/types.d.ts.map +1 -0
  257. package/dist/manifest/projections/dart/types.js +5 -0
  258. package/dist/manifest/projections/dart/types.js.map +1 -0
  259. package/dist/manifest/projections/drizzle/generator.d.ts +27 -0
  260. package/dist/manifest/projections/drizzle/generator.d.ts.map +1 -0
  261. package/dist/manifest/projections/drizzle/generator.js +654 -0
  262. package/dist/manifest/projections/drizzle/generator.js.map +1 -0
  263. package/dist/manifest/projections/drizzle/index.d.ts +12 -0
  264. package/dist/manifest/projections/drizzle/index.d.ts.map +1 -0
  265. package/dist/manifest/projections/drizzle/index.js +12 -0
  266. package/dist/manifest/projections/drizzle/index.js.map +1 -0
  267. package/dist/manifest/projections/drizzle/options.d.ts +94 -0
  268. package/dist/manifest/projections/drizzle/options.d.ts.map +1 -0
  269. package/dist/manifest/projections/drizzle/options.js +31 -0
  270. package/dist/manifest/projections/drizzle/options.js.map +1 -0
  271. package/dist/manifest/projections/drizzle/type-mapping.d.ts +74 -0
  272. package/dist/manifest/projections/drizzle/type-mapping.d.ts.map +1 -0
  273. package/dist/manifest/projections/drizzle/type-mapping.js +101 -0
  274. package/dist/manifest/projections/drizzle/type-mapping.js.map +1 -0
  275. package/dist/manifest/projections/dynamodb/generator.d.ts +48 -0
  276. package/dist/manifest/projections/dynamodb/generator.d.ts.map +1 -0
  277. package/dist/manifest/projections/dynamodb/generator.js +341 -0
  278. package/dist/manifest/projections/dynamodb/generator.js.map +1 -0
  279. package/dist/manifest/projections/elasticsearch/generator.d.ts +44 -0
  280. package/dist/manifest/projections/elasticsearch/generator.d.ts.map +1 -0
  281. package/dist/manifest/projections/elasticsearch/generator.js +613 -0
  282. package/dist/manifest/projections/elasticsearch/generator.js.map +1 -0
  283. package/dist/manifest/projections/elasticsearch/options.d.ts +56 -0
  284. package/dist/manifest/projections/elasticsearch/options.d.ts.map +1 -0
  285. package/dist/manifest/projections/elasticsearch/options.js +37 -0
  286. package/dist/manifest/projections/elasticsearch/options.js.map +1 -0
  287. package/dist/manifest/projections/elasticsearch/type-mapping.d.ts +30 -0
  288. package/dist/manifest/projections/elasticsearch/type-mapping.d.ts.map +1 -0
  289. package/dist/manifest/projections/elasticsearch/type-mapping.js +34 -0
  290. package/dist/manifest/projections/elasticsearch/type-mapping.js.map +1 -0
  291. package/dist/manifest/projections/elasticsearch/types.d.ts +81 -0
  292. package/dist/manifest/projections/elasticsearch/types.d.ts.map +1 -0
  293. package/dist/manifest/projections/elasticsearch/types.js +10 -0
  294. package/dist/manifest/projections/elasticsearch/types.js.map +1 -0
  295. package/dist/manifest/projections/express/generator.d.ts +38 -0
  296. package/dist/manifest/projections/express/generator.d.ts.map +1 -0
  297. package/dist/manifest/projections/express/generator.js +620 -0
  298. package/dist/manifest/projections/express/generator.js.map +1 -0
  299. package/dist/manifest/projections/express/index.d.ts +8 -0
  300. package/dist/manifest/projections/express/index.d.ts.map +1 -0
  301. package/dist/manifest/projections/express/index.js +7 -0
  302. package/dist/manifest/projections/express/index.js.map +1 -0
  303. package/dist/manifest/projections/express/types.d.ts +92 -0
  304. package/dist/manifest/projections/express/types.d.ts.map +1 -0
  305. package/dist/manifest/projections/express/types.js +9 -0
  306. package/dist/manifest/projections/express/types.js.map +1 -0
  307. package/dist/manifest/projections/graphql/generator.d.ts +43 -0
  308. package/dist/manifest/projections/graphql/generator.d.ts.map +1 -0
  309. package/dist/manifest/projections/graphql/generator.js +662 -0
  310. package/dist/manifest/projections/graphql/generator.js.map +1 -0
  311. package/dist/manifest/projections/graphql/index.d.ts +11 -0
  312. package/dist/manifest/projections/graphql/index.d.ts.map +1 -0
  313. package/dist/manifest/projections/graphql/index.js +10 -0
  314. package/dist/manifest/projections/graphql/index.js.map +1 -0
  315. package/dist/manifest/projections/graphql/types.d.ts +69 -0
  316. package/dist/manifest/projections/graphql/types.d.ts.map +1 -0
  317. package/dist/manifest/projections/graphql/types.js +9 -0
  318. package/dist/manifest/projections/graphql/types.js.map +1 -0
  319. package/dist/manifest/projections/health/generator.d.ts +36 -0
  320. package/dist/manifest/projections/health/generator.d.ts.map +1 -0
  321. package/dist/manifest/projections/health/generator.js +355 -0
  322. package/dist/manifest/projections/health/generator.js.map +1 -0
  323. package/dist/manifest/projections/health/types.d.ts +67 -0
  324. package/dist/manifest/projections/health/types.d.ts.map +1 -0
  325. package/dist/manifest/projections/health/types.js +28 -0
  326. package/dist/manifest/projections/health/types.js.map +1 -0
  327. package/dist/manifest/projections/hono/generator.d.ts +36 -0
  328. package/dist/manifest/projections/hono/generator.d.ts.map +1 -0
  329. package/dist/manifest/projections/hono/generator.js +578 -0
  330. package/dist/manifest/projections/hono/generator.js.map +1 -0
  331. package/dist/manifest/projections/hono/types.d.ts +86 -0
  332. package/dist/manifest/projections/hono/types.d.ts.map +1 -0
  333. package/dist/manifest/projections/hono/types.js +10 -0
  334. package/dist/manifest/projections/hono/types.js.map +1 -0
  335. package/dist/manifest/projections/index.d.ts +58 -0
  336. package/dist/manifest/projections/index.d.ts.map +1 -0
  337. package/dist/manifest/projections/index.js +41 -0
  338. package/dist/manifest/projections/index.js.map +1 -0
  339. package/dist/manifest/projections/interface.d.ts +285 -0
  340. package/dist/manifest/projections/interface.d.ts.map +1 -0
  341. package/dist/manifest/projections/interface.js +8 -0
  342. package/dist/manifest/projections/interface.js.map +1 -0
  343. package/dist/manifest/projections/jsonschema/generator.d.ts +35 -0
  344. package/dist/manifest/projections/jsonschema/generator.d.ts.map +1 -0
  345. package/dist/manifest/projections/jsonschema/generator.js +347 -0
  346. package/dist/manifest/projections/jsonschema/generator.js.map +1 -0
  347. package/dist/manifest/projections/jsonschema/index.d.ts +3 -0
  348. package/dist/manifest/projections/jsonschema/index.d.ts.map +1 -0
  349. package/dist/manifest/projections/jsonschema/index.js +2 -0
  350. package/dist/manifest/projections/jsonschema/index.js.map +1 -0
  351. package/dist/manifest/projections/jsonschema/types.d.ts +31 -0
  352. package/dist/manifest/projections/jsonschema/types.d.ts.map +1 -0
  353. package/dist/manifest/projections/jsonschema/types.js +2 -0
  354. package/dist/manifest/projections/jsonschema/types.js.map +1 -0
  355. package/dist/manifest/projections/kysely/generator.d.ts +36 -0
  356. package/dist/manifest/projections/kysely/generator.d.ts.map +1 -0
  357. package/dist/manifest/projections/kysely/generator.js +325 -0
  358. package/dist/manifest/projections/kysely/generator.js.map +1 -0
  359. package/dist/manifest/projections/kysely/index.d.ts +4 -0
  360. package/dist/manifest/projections/kysely/index.d.ts.map +1 -0
  361. package/dist/manifest/projections/kysely/index.js +2 -0
  362. package/dist/manifest/projections/kysely/index.js.map +1 -0
  363. package/dist/manifest/projections/kysely/options.d.ts +61 -0
  364. package/dist/manifest/projections/kysely/options.d.ts.map +1 -0
  365. package/dist/manifest/projections/kysely/options.js +31 -0
  366. package/dist/manifest/projections/kysely/options.js.map +1 -0
  367. package/dist/manifest/projections/kysely/type-mapping.d.ts +61 -0
  368. package/dist/manifest/projections/kysely/type-mapping.d.ts.map +1 -0
  369. package/dist/manifest/projections/kysely/type-mapping.js +84 -0
  370. package/dist/manifest/projections/kysely/type-mapping.js.map +1 -0
  371. package/dist/manifest/projections/llm-context/generator.d.ts +24 -0
  372. package/dist/manifest/projections/llm-context/generator.d.ts.map +1 -0
  373. package/dist/manifest/projections/llm-context/generator.js +371 -0
  374. package/dist/manifest/projections/llm-context/generator.js.map +1 -0
  375. package/dist/manifest/projections/llm-context/types.d.ts +205 -0
  376. package/dist/manifest/projections/llm-context/types.d.ts.map +1 -0
  377. package/dist/manifest/projections/llm-context/types.js +9 -0
  378. package/dist/manifest/projections/llm-context/types.js.map +1 -0
  379. package/dist/manifest/projections/materialized-views/expression-to-sql.d.ts +29 -0
  380. package/dist/manifest/projections/materialized-views/expression-to-sql.d.ts.map +1 -0
  381. package/dist/manifest/projections/materialized-views/expression-to-sql.js +211 -0
  382. package/dist/manifest/projections/materialized-views/expression-to-sql.js.map +1 -0
  383. package/dist/manifest/projections/materialized-views/generator.d.ts +29 -0
  384. package/dist/manifest/projections/materialized-views/generator.d.ts.map +1 -0
  385. package/dist/manifest/projections/materialized-views/generator.js +263 -0
  386. package/dist/manifest/projections/materialized-views/generator.js.map +1 -0
  387. package/dist/manifest/projections/materialized-views/options.d.ts +59 -0
  388. package/dist/manifest/projections/materialized-views/options.d.ts.map +1 -0
  389. package/dist/manifest/projections/materialized-views/options.js +34 -0
  390. package/dist/manifest/projections/materialized-views/options.js.map +1 -0
  391. package/dist/manifest/projections/materialized-views/types.d.ts +100 -0
  392. package/dist/manifest/projections/materialized-views/types.d.ts.map +1 -0
  393. package/dist/manifest/projections/materialized-views/types.js +11 -0
  394. package/dist/manifest/projections/materialized-views/types.js.map +1 -0
  395. package/dist/manifest/projections/mermaid/generator.d.ts +46 -0
  396. package/dist/manifest/projections/mermaid/generator.d.ts.map +1 -0
  397. package/dist/manifest/projections/mermaid/generator.js +436 -0
  398. package/dist/manifest/projections/mermaid/generator.js.map +1 -0
  399. package/dist/manifest/projections/mongoose/options.d.ts +30 -0
  400. package/dist/manifest/projections/mongoose/options.d.ts.map +1 -0
  401. package/dist/manifest/projections/mongoose/options.js +18 -0
  402. package/dist/manifest/projections/mongoose/options.js.map +1 -0
  403. package/dist/manifest/projections/mongoose/type-mapping.d.ts +42 -0
  404. package/dist/manifest/projections/mongoose/type-mapping.d.ts.map +1 -0
  405. package/dist/manifest/projections/mongoose/type-mapping.js +64 -0
  406. package/dist/manifest/projections/mongoose/type-mapping.js.map +1 -0
  407. package/dist/manifest/projections/nextjs/defaults.d.ts +161 -0
  408. package/dist/manifest/projections/nextjs/defaults.d.ts.map +1 -0
  409. package/dist/manifest/projections/nextjs/defaults.js +157 -0
  410. package/dist/manifest/projections/nextjs/defaults.js.map +1 -0
  411. package/dist/manifest/projections/nextjs/generator.d.ts +78 -0
  412. package/dist/manifest/projections/nextjs/generator.d.ts.map +1 -0
  413. package/dist/manifest/projections/nextjs/generator.js +1339 -0
  414. package/dist/manifest/projections/nextjs/generator.js.map +1 -0
  415. package/dist/manifest/projections/nextjs/schedule-generator.d.ts +10 -0
  416. package/dist/manifest/projections/nextjs/schedule-generator.d.ts.map +1 -0
  417. package/dist/manifest/projections/nextjs/schedule-generator.js +54 -0
  418. package/dist/manifest/projections/nextjs/schedule-generator.js.map +1 -0
  419. package/dist/manifest/projections/openapi/generator.d.ts +37 -0
  420. package/dist/manifest/projections/openapi/generator.d.ts.map +1 -0
  421. package/dist/manifest/projections/openapi/generator.js +690 -0
  422. package/dist/manifest/projections/openapi/generator.js.map +1 -0
  423. package/dist/manifest/projections/openapi/index.d.ts +11 -0
  424. package/dist/manifest/projections/openapi/index.d.ts.map +1 -0
  425. package/dist/manifest/projections/openapi/index.js +10 -0
  426. package/dist/manifest/projections/openapi/index.js.map +1 -0
  427. package/dist/manifest/projections/openapi/types.d.ts +75 -0
  428. package/dist/manifest/projections/openapi/types.d.ts.map +1 -0
  429. package/dist/manifest/projections/openapi/types.js +9 -0
  430. package/dist/manifest/projections/openapi/types.js.map +1 -0
  431. package/dist/manifest/projections/prisma/generator.d.ts +32 -0
  432. package/dist/manifest/projections/prisma/generator.d.ts.map +1 -0
  433. package/dist/manifest/projections/prisma/generator.js +861 -0
  434. package/dist/manifest/projections/prisma/generator.js.map +1 -0
  435. package/dist/manifest/projections/prisma/index.d.ts +12 -0
  436. package/dist/manifest/projections/prisma/index.d.ts.map +1 -0
  437. package/dist/manifest/projections/prisma/index.js +12 -0
  438. package/dist/manifest/projections/prisma/index.js.map +1 -0
  439. package/dist/manifest/projections/prisma/options.d.ts +243 -0
  440. package/dist/manifest/projections/prisma/options.d.ts.map +1 -0
  441. package/dist/manifest/projections/prisma/options.js +59 -0
  442. package/dist/manifest/projections/prisma/options.js.map +1 -0
  443. package/dist/manifest/projections/prisma/type-mapping.d.ts +60 -0
  444. package/dist/manifest/projections/prisma/type-mapping.d.ts.map +1 -0
  445. package/dist/manifest/projections/prisma/type-mapping.js +95 -0
  446. package/dist/manifest/projections/prisma/type-mapping.js.map +1 -0
  447. package/dist/manifest/projections/prisma-store/generator.d.ts +12 -0
  448. package/dist/manifest/projections/prisma-store/generator.d.ts.map +1 -0
  449. package/dist/manifest/projections/prisma-store/generator.js +52 -0
  450. package/dist/manifest/projections/prisma-store/generator.js.map +1 -0
  451. package/dist/manifest/projections/prisma-store/metadata-builder.d.ts +11 -0
  452. package/dist/manifest/projections/prisma-store/metadata-builder.d.ts.map +1 -0
  453. package/dist/manifest/projections/prisma-store/metadata-builder.js +183 -0
  454. package/dist/manifest/projections/prisma-store/metadata-builder.js.map +1 -0
  455. package/dist/manifest/projections/prisma-store/options.d.ts +31 -0
  456. package/dist/manifest/projections/prisma-store/options.d.ts.map +1 -0
  457. package/dist/manifest/projections/prisma-store/options.js +21 -0
  458. package/dist/manifest/projections/prisma-store/options.js.map +1 -0
  459. package/dist/manifest/projections/prisma-store/persistence.d.ts +4 -0
  460. package/dist/manifest/projections/prisma-store/persistence.d.ts.map +1 -0
  461. package/dist/manifest/projections/prisma-store/persistence.js +24 -0
  462. package/dist/manifest/projections/prisma-store/persistence.js.map +1 -0
  463. package/dist/manifest/projections/pydantic/generator.d.ts +27 -0
  464. package/dist/manifest/projections/pydantic/generator.d.ts.map +1 -0
  465. package/dist/manifest/projections/pydantic/generator.js +798 -0
  466. package/dist/manifest/projections/pydantic/generator.js.map +1 -0
  467. package/dist/manifest/projections/pydantic/types.d.ts +32 -0
  468. package/dist/manifest/projections/pydantic/types.d.ts.map +1 -0
  469. package/dist/manifest/projections/pydantic/types.js +5 -0
  470. package/dist/manifest/projections/pydantic/types.js.map +1 -0
  471. package/dist/manifest/projections/react-query/generator.d.ts +87 -0
  472. package/dist/manifest/projections/react-query/generator.d.ts.map +1 -0
  473. package/dist/manifest/projections/react-query/generator.js +413 -0
  474. package/dist/manifest/projections/react-query/generator.js.map +1 -0
  475. package/dist/manifest/projections/registry.d.ts +59 -0
  476. package/dist/manifest/projections/registry.d.ts.map +1 -0
  477. package/dist/manifest/projections/registry.js +110 -0
  478. package/dist/manifest/projections/registry.js.map +1 -0
  479. package/dist/manifest/projections/remix/generator.d.ts +58 -0
  480. package/dist/manifest/projections/remix/generator.d.ts.map +1 -0
  481. package/dist/manifest/projections/remix/generator.js +788 -0
  482. package/dist/manifest/projections/remix/generator.js.map +1 -0
  483. package/dist/manifest/projections/routes/generator.d.ts +32 -0
  484. package/dist/manifest/projections/routes/generator.d.ts.map +1 -0
  485. package/dist/manifest/projections/routes/generator.js +401 -0
  486. package/dist/manifest/projections/routes/generator.js.map +1 -0
  487. package/dist/manifest/projections/routes/types.d.ts +104 -0
  488. package/dist/manifest/projections/routes/types.d.ts.map +1 -0
  489. package/dist/manifest/projections/routes/types.js +11 -0
  490. package/dist/manifest/projections/routes/types.js.map +1 -0
  491. package/dist/manifest/projections/shared/naming.d.ts +64 -0
  492. package/dist/manifest/projections/shared/naming.d.ts.map +1 -0
  493. package/dist/manifest/projections/shared/naming.js +138 -0
  494. package/dist/manifest/projections/shared/naming.js.map +1 -0
  495. package/dist/manifest/projections/storybook/generator.d.ts +38 -0
  496. package/dist/manifest/projections/storybook/generator.d.ts.map +1 -0
  497. package/dist/manifest/projections/storybook/generator.js +462 -0
  498. package/dist/manifest/projections/storybook/generator.js.map +1 -0
  499. package/dist/manifest/projections/sveltekit/generator.d.ts +64 -0
  500. package/dist/manifest/projections/sveltekit/generator.d.ts.map +1 -0
  501. package/dist/manifest/projections/sveltekit/generator.js +1043 -0
  502. package/dist/manifest/projections/sveltekit/generator.js.map +1 -0
  503. package/dist/manifest/projections/sveltekit/index.d.ts +11 -0
  504. package/dist/manifest/projections/sveltekit/index.d.ts.map +1 -0
  505. package/dist/manifest/projections/sveltekit/index.js +10 -0
  506. package/dist/manifest/projections/sveltekit/index.js.map +1 -0
  507. package/dist/manifest/projections/sveltekit/types.d.ts +122 -0
  508. package/dist/manifest/projections/sveltekit/types.d.ts.map +1 -0
  509. package/dist/manifest/projections/sveltekit/types.js +10 -0
  510. package/dist/manifest/projections/sveltekit/types.js.map +1 -0
  511. package/dist/manifest/projections/terraform/generator.d.ts +29 -0
  512. package/dist/manifest/projections/terraform/generator.d.ts.map +1 -0
  513. package/dist/manifest/projections/terraform/generator.js +722 -0
  514. package/dist/manifest/projections/terraform/generator.js.map +1 -0
  515. package/dist/manifest/projections/terraform/index.d.ts +7 -0
  516. package/dist/manifest/projections/terraform/index.d.ts.map +1 -0
  517. package/dist/manifest/projections/terraform/index.js +7 -0
  518. package/dist/manifest/projections/terraform/index.js.map +1 -0
  519. package/dist/manifest/projections/terraform/options.d.ts +92 -0
  520. package/dist/manifest/projections/terraform/options.d.ts.map +1 -0
  521. package/dist/manifest/projections/terraform/options.js +37 -0
  522. package/dist/manifest/projections/terraform/options.js.map +1 -0
  523. package/dist/manifest/projections/terraform/types.d.ts +55 -0
  524. package/dist/manifest/projections/terraform/types.d.ts.map +1 -0
  525. package/dist/manifest/projections/terraform/types.js +38 -0
  526. package/dist/manifest/projections/terraform/types.js.map +1 -0
  527. package/dist/manifest/projections/zod/generator.d.ts +27 -0
  528. package/dist/manifest/projections/zod/generator.d.ts.map +1 -0
  529. package/dist/manifest/projections/zod/generator.js +367 -0
  530. package/dist/manifest/projections/zod/generator.js.map +1 -0
  531. package/dist/manifest/projections/zod/index.d.ts +8 -0
  532. package/dist/manifest/projections/zod/index.d.ts.map +1 -0
  533. package/dist/manifest/projections/zod/index.js +7 -0
  534. package/dist/manifest/projections/zod/index.js.map +1 -0
  535. package/dist/manifest/projections/zod/types.d.ts +14 -0
  536. package/dist/manifest/projections/zod/types.d.ts.map +1 -0
  537. package/dist/manifest/projections/zod/types.js +5 -0
  538. package/dist/manifest/projections/zod/types.js.map +1 -0
  539. package/dist/manifest/reaction-completeness-checks.d.ts +11 -0
  540. package/dist/manifest/reaction-completeness-checks.d.ts.map +1 -0
  541. package/dist/manifest/reaction-completeness-checks.js +106 -0
  542. package/dist/manifest/reaction-completeness-checks.js.map +1 -0
  543. package/dist/manifest/reaction-completeness.d.ts +9 -0
  544. package/dist/manifest/reaction-completeness.d.ts.map +1 -0
  545. package/dist/manifest/reaction-completeness.js +35 -0
  546. package/dist/manifest/reaction-completeness.js.map +1 -0
  547. package/dist/manifest/registry/emit.d.ts +53 -0
  548. package/dist/manifest/registry/emit.d.ts.map +1 -0
  549. package/dist/manifest/registry/emit.js +96 -0
  550. package/dist/manifest/registry/emit.js.map +1 -0
  551. package/dist/manifest/runtime-command-extensions.d.ts +21 -0
  552. package/dist/manifest/runtime-command-extensions.d.ts.map +1 -0
  553. package/dist/manifest/runtime-command-extensions.js +136 -0
  554. package/dist/manifest/runtime-command-extensions.js.map +1 -0
  555. package/dist/manifest/runtime-engine.d.ts +1019 -0
  556. package/dist/manifest/runtime-engine.d.ts.map +1 -0
  557. package/dist/manifest/runtime-engine.js +3872 -0
  558. package/dist/manifest/runtime-engine.js.map +1 -0
  559. package/dist/manifest/runtime-profiling-bridge.d.ts +22 -0
  560. package/dist/manifest/runtime-profiling-bridge.d.ts.map +1 -0
  561. package/dist/manifest/runtime-profiling-bridge.js +69 -0
  562. package/dist/manifest/runtime-profiling-bridge.js.map +1 -0
  563. package/dist/manifest/runtime-rate-limit.d.ts +52 -0
  564. package/dist/manifest/runtime-rate-limit.d.ts.map +1 -0
  565. package/dist/manifest/runtime-rate-limit.js +70 -0
  566. package/dist/manifest/runtime-rate-limit.js.map +1 -0
  567. package/dist/manifest/runtime-retry.d.ts +68 -0
  568. package/dist/manifest/runtime-retry.d.ts.map +1 -0
  569. package/dist/manifest/runtime-retry.js +93 -0
  570. package/dist/manifest/runtime-retry.js.map +1 -0
  571. package/dist/manifest/runtime-schedule.d.ts +47 -0
  572. package/dist/manifest/runtime-schedule.d.ts.map +1 -0
  573. package/dist/manifest/runtime-schedule.js +95 -0
  574. package/dist/manifest/runtime-schedule.js.map +1 -0
  575. package/dist/manifest/schedule-utils.d.ts +15 -0
  576. package/dist/manifest/schedule-utils.d.ts.map +1 -0
  577. package/dist/manifest/schedule-utils.js +82 -0
  578. package/dist/manifest/schedule-utils.js.map +1 -0
  579. package/dist/manifest/standalone-generator.d.ts +32 -0
  580. package/dist/manifest/standalone-generator.d.ts.map +1 -0
  581. package/dist/manifest/standalone-generator.js +596 -0
  582. package/dist/manifest/standalone-generator.js.map +1 -0
  583. package/dist/manifest/stores/prisma-generic/coercion.d.ts +17 -0
  584. package/dist/manifest/stores/prisma-generic/coercion.d.ts.map +1 -0
  585. package/dist/manifest/stores/prisma-generic/coercion.js +83 -0
  586. package/dist/manifest/stores/prisma-generic/coercion.js.map +1 -0
  587. package/dist/manifest/stores/prisma-generic/index.d.ts +3 -0
  588. package/dist/manifest/stores/prisma-generic/index.d.ts.map +1 -0
  589. package/dist/manifest/stores/prisma-generic/index.js +2 -0
  590. package/dist/manifest/stores/prisma-generic/index.js.map +1 -0
  591. package/dist/manifest/stores/prisma-generic/store.d.ts +35 -0
  592. package/dist/manifest/stores/prisma-generic/store.d.ts.map +1 -0
  593. package/dist/manifest/stores/prisma-generic/store.js +216 -0
  594. package/dist/manifest/stores/prisma-generic/store.js.map +1 -0
  595. package/dist/manifest/stores/prisma-generic/types.d.ts +46 -0
  596. package/dist/manifest/stores/prisma-generic/types.d.ts.map +1 -0
  597. package/dist/manifest/stores/prisma-generic/types.js +6 -0
  598. package/dist/manifest/stores/prisma-generic/types.js.map +1 -0
  599. package/dist/manifest/stores.node.d.ts +248 -0
  600. package/dist/manifest/stores.node.d.ts.map +1 -0
  601. package/dist/manifest/stores.node.js +718 -0
  602. package/dist/manifest/stores.node.js.map +1 -0
  603. package/dist/manifest/test/postgres-live-env.d.ts +9 -0
  604. package/dist/manifest/test/postgres-live-env.d.ts.map +1 -0
  605. package/dist/manifest/test/postgres-live-env.js +14 -0
  606. package/dist/manifest/test/postgres-live-env.js.map +1 -0
  607. package/dist/manifest/types.d.ts +570 -0
  608. package/dist/manifest/types.d.ts.map +1 -0
  609. package/dist/manifest/types.js +2 -0
  610. package/dist/manifest/types.js.map +1 -0
  611. package/dist/manifest/version.d.ts +15 -0
  612. package/dist/manifest/version.d.ts.map +1 -0
  613. package/dist/manifest/version.js +15 -0
  614. package/dist/manifest/version.js.map +1 -0
  615. package/dist/manifest/wasm/index.d.ts +15 -0
  616. package/dist/manifest/wasm/index.d.ts.map +1 -0
  617. package/dist/manifest/wasm/index.js +15 -0
  618. package/dist/manifest/wasm/index.js.map +1 -0
  619. package/dist/manifest/wasm/wasm-evaluator.d.ts +93 -0
  620. package/dist/manifest/wasm/wasm-evaluator.d.ts.map +1 -0
  621. package/dist/manifest/wasm/wasm-evaluator.js +242 -0
  622. package/dist/manifest/wasm/wasm-evaluator.js.map +1 -0
  623. package/dist/manifest/wasm/wasm-loader.d.ts +56 -0
  624. package/dist/manifest/wasm/wasm-loader.d.ts.map +1 -0
  625. package/dist/manifest/wasm/wasm-loader.js +132 -0
  626. package/dist/manifest/wasm/wasm-loader.js.map +1 -0
  627. package/docs/spec/config/manifest.config.schema.json +737 -0
  628. package/docs/spec/config/prisma-projection.schema.json +173 -0
  629. package/docs/spec/ir/ir-v1.schema.json +2033 -0
  630. package/docs/spec/plugins/plugin.schema.json +104 -0
  631. package/docs/spec/registry/bypasses.schema.json +87 -0
  632. package/docs/spec/registry/commands.schema.json +61 -0
  633. package/docs/spec/registry/entities.schema.json +52 -0
  634. package/docs/spec/semantics.md +630 -0
  635. package/package.json +356 -0
  636. package/packages/cli/dist/audit/bypass-violations.d.ts +16 -0
  637. package/packages/cli/dist/audit/bypass-violations.d.ts.map +1 -0
  638. package/packages/cli/dist/audit/bypass-violations.js +98 -0
  639. package/packages/cli/dist/audit/bypass-violations.js.map +1 -0
  640. package/packages/cli/dist/audit/direct-writes.d.ts +15 -0
  641. package/packages/cli/dist/audit/direct-writes.d.ts.map +1 -0
  642. package/packages/cli/dist/audit/direct-writes.js +86 -0
  643. package/packages/cli/dist/audit/direct-writes.js.map +1 -0
  644. package/packages/cli/dist/audit/event-fabrication.d.ts +17 -0
  645. package/packages/cli/dist/audit/event-fabrication.d.ts.map +1 -0
  646. package/packages/cli/dist/audit/event-fabrication.js +101 -0
  647. package/packages/cli/dist/audit/event-fabrication.js.map +1 -0
  648. package/packages/cli/dist/audit/existing-command-available.d.ts +20 -0
  649. package/packages/cli/dist/audit/existing-command-available.d.ts.map +1 -0
  650. package/packages/cli/dist/audit/existing-command-available.js +158 -0
  651. package/packages/cli/dist/audit/existing-command-available.js.map +1 -0
  652. package/packages/cli/dist/audit/missing-tests.d.ts +17 -0
  653. package/packages/cli/dist/audit/missing-tests.d.ts.map +1 -0
  654. package/packages/cli/dist/audit/missing-tests.js +108 -0
  655. package/packages/cli/dist/audit/missing-tests.js.map +1 -0
  656. package/packages/cli/dist/audit/route-drift.d.ts +16 -0
  657. package/packages/cli/dist/audit/route-drift.d.ts.map +1 -0
  658. package/packages/cli/dist/audit/route-drift.js +86 -0
  659. package/packages/cli/dist/audit/route-drift.js.map +1 -0
  660. package/packages/cli/dist/audit/types.d.ts +63 -0
  661. package/packages/cli/dist/audit/types.d.ts.map +1 -0
  662. package/packages/cli/dist/audit/types.js +10 -0
  663. package/packages/cli/dist/audit/types.js.map +1 -0
  664. package/packages/cli/dist/audit/unregistered-command-call.d.ts +25 -0
  665. package/packages/cli/dist/audit/unregistered-command-call.d.ts.map +1 -0
  666. package/packages/cli/dist/audit/unregistered-command-call.js +196 -0
  667. package/packages/cli/dist/audit/unregistered-command-call.js.map +1 -0
  668. package/packages/cli/dist/audit/unregistered-entity-write.d.ts +16 -0
  669. package/packages/cli/dist/audit/unregistered-entity-write.d.ts.map +1 -0
  670. package/packages/cli/dist/audit/unregistered-entity-write.js +96 -0
  671. package/packages/cli/dist/audit/unregistered-entity-write.js.map +1 -0
  672. package/packages/cli/dist/audit/write-receiver.d.ts +23 -0
  673. package/packages/cli/dist/audit/write-receiver.d.ts.map +1 -0
  674. package/packages/cli/dist/audit/write-receiver.js +32 -0
  675. package/packages/cli/dist/audit/write-receiver.js.map +1 -0
  676. package/packages/cli/dist/checks/dispatcher-presence.d.ts +37 -0
  677. package/packages/cli/dist/checks/dispatcher-presence.d.ts.map +1 -0
  678. package/packages/cli/dist/checks/dispatcher-presence.js +57 -0
  679. package/packages/cli/dist/checks/dispatcher-presence.js.map +1 -0
  680. package/packages/cli/dist/checks/package-shape.d.ts +81 -0
  681. package/packages/cli/dist/checks/package-shape.d.ts.map +1 -0
  682. package/packages/cli/dist/checks/package-shape.js +359 -0
  683. package/packages/cli/dist/checks/package-shape.js.map +1 -0
  684. package/packages/cli/dist/checks/runtime-smoke.d.ts +42 -0
  685. package/packages/cli/dist/checks/runtime-smoke.d.ts.map +1 -0
  686. package/packages/cli/dist/checks/runtime-smoke.js +167 -0
  687. package/packages/cli/dist/checks/runtime-smoke.js.map +1 -0
  688. package/packages/cli/dist/commands/analyze.d.ts +97 -0
  689. package/packages/cli/dist/commands/analyze.d.ts.map +1 -0
  690. package/packages/cli/dist/commands/analyze.js +411 -0
  691. package/packages/cli/dist/commands/analyze.js.map +1 -0
  692. package/packages/cli/dist/commands/audit-bypasses.d.ts +31 -0
  693. package/packages/cli/dist/commands/audit-bypasses.d.ts.map +1 -0
  694. package/packages/cli/dist/commands/audit-bypasses.js +152 -0
  695. package/packages/cli/dist/commands/audit-bypasses.js.map +1 -0
  696. package/packages/cli/dist/commands/audit-constitution.d.ts +20 -0
  697. package/packages/cli/dist/commands/audit-constitution.d.ts.map +1 -0
  698. package/packages/cli/dist/commands/audit-constitution.js +18 -0
  699. package/packages/cli/dist/commands/audit-constitution.js.map +1 -0
  700. package/packages/cli/dist/commands/audit-governance.d.ts +37 -0
  701. package/packages/cli/dist/commands/audit-governance.d.ts.map +1 -0
  702. package/packages/cli/dist/commands/audit-governance.js +78 -0
  703. package/packages/cli/dist/commands/audit-governance.js.map +1 -0
  704. package/packages/cli/dist/commands/audit-routes.d.ts +135 -0
  705. package/packages/cli/dist/commands/audit-routes.d.ts.map +1 -0
  706. package/packages/cli/dist/commands/audit-routes.js +514 -0
  707. package/packages/cli/dist/commands/audit-routes.js.map +1 -0
  708. package/packages/cli/dist/commands/breaking-change.d.ts +15 -0
  709. package/packages/cli/dist/commands/breaking-change.d.ts.map +1 -0
  710. package/packages/cli/dist/commands/breaking-change.js +150 -0
  711. package/packages/cli/dist/commands/breaking-change.js.map +1 -0
  712. package/packages/cli/dist/commands/build.d.ts +26 -0
  713. package/packages/cli/dist/commands/build.d.ts.map +1 -0
  714. package/packages/cli/dist/commands/build.js +58 -0
  715. package/packages/cli/dist/commands/build.js.map +1 -0
  716. package/packages/cli/dist/commands/changelog.d.ts +26 -0
  717. package/packages/cli/dist/commands/changelog.d.ts.map +1 -0
  718. package/packages/cli/dist/commands/changelog.js +365 -0
  719. package/packages/cli/dist/commands/changelog.js.map +1 -0
  720. package/packages/cli/dist/commands/check.d.ts +21 -0
  721. package/packages/cli/dist/commands/check.d.ts.map +1 -0
  722. package/packages/cli/dist/commands/check.js +31 -0
  723. package/packages/cli/dist/commands/check.js.map +1 -0
  724. package/packages/cli/dist/commands/compile.d.ts +19 -0
  725. package/packages/cli/dist/commands/compile.d.ts.map +1 -0
  726. package/packages/cli/dist/commands/compile.js +325 -0
  727. package/packages/cli/dist/commands/compile.js.map +1 -0
  728. package/packages/cli/dist/commands/config.d.ts +23 -0
  729. package/packages/cli/dist/commands/config.d.ts.map +1 -0
  730. package/packages/cli/dist/commands/config.js +172 -0
  731. package/packages/cli/dist/commands/config.js.map +1 -0
  732. package/packages/cli/dist/commands/coverage.d.ts +55 -0
  733. package/packages/cli/dist/commands/coverage.d.ts.map +1 -0
  734. package/packages/cli/dist/commands/coverage.js +343 -0
  735. package/packages/cli/dist/commands/coverage.js.map +1 -0
  736. package/packages/cli/dist/commands/diagram.d.ts +22 -0
  737. package/packages/cli/dist/commands/diagram.d.ts.map +1 -0
  738. package/packages/cli/dist/commands/diagram.js +176 -0
  739. package/packages/cli/dist/commands/diagram.js.map +1 -0
  740. package/packages/cli/dist/commands/docs.d.ts +18 -0
  741. package/packages/cli/dist/commands/docs.d.ts.map +1 -0
  742. package/packages/cli/dist/commands/docs.js +722 -0
  743. package/packages/cli/dist/commands/docs.js.map +1 -0
  744. package/packages/cli/dist/commands/doctor-lib.d.ts +147 -0
  745. package/packages/cli/dist/commands/doctor-lib.d.ts.map +1 -0
  746. package/packages/cli/dist/commands/doctor-lib.js +491 -0
  747. package/packages/cli/dist/commands/doctor-lib.js.map +1 -0
  748. package/packages/cli/dist/commands/doctor.d.ts +31 -0
  749. package/packages/cli/dist/commands/doctor.d.ts.map +1 -0
  750. package/packages/cli/dist/commands/doctor.js +628 -0
  751. package/packages/cli/dist/commands/doctor.js.map +1 -0
  752. package/packages/cli/dist/commands/emit-registries.d.ts +33 -0
  753. package/packages/cli/dist/commands/emit-registries.d.ts.map +1 -0
  754. package/packages/cli/dist/commands/emit-registries.js +109 -0
  755. package/packages/cli/dist/commands/emit-registries.js.map +1 -0
  756. package/packages/cli/dist/commands/enforce-surface.d.ts +62 -0
  757. package/packages/cli/dist/commands/enforce-surface.d.ts.map +1 -0
  758. package/packages/cli/dist/commands/enforce-surface.js +172 -0
  759. package/packages/cli/dist/commands/enforce-surface.js.map +1 -0
  760. package/packages/cli/dist/commands/fmt.d.ts +17 -0
  761. package/packages/cli/dist/commands/fmt.d.ts.map +1 -0
  762. package/packages/cli/dist/commands/fmt.js +129 -0
  763. package/packages/cli/dist/commands/fmt.js.map +1 -0
  764. package/packages/cli/dist/commands/gen-tests.d.ts +41 -0
  765. package/packages/cli/dist/commands/gen-tests.d.ts.map +1 -0
  766. package/packages/cli/dist/commands/gen-tests.js +370 -0
  767. package/packages/cli/dist/commands/gen-tests.js.map +1 -0
  768. package/packages/cli/dist/commands/generate-from-prompt.d.ts +34 -0
  769. package/packages/cli/dist/commands/generate-from-prompt.d.ts.map +1 -0
  770. package/packages/cli/dist/commands/generate-from-prompt.js +990 -0
  771. package/packages/cli/dist/commands/generate-from-prompt.js.map +1 -0
  772. package/packages/cli/dist/commands/generate.d.ts +36 -0
  773. package/packages/cli/dist/commands/generate.d.ts.map +1 -0
  774. package/packages/cli/dist/commands/generate.js +371 -0
  775. package/packages/cli/dist/commands/generate.js.map +1 -0
  776. package/packages/cli/dist/commands/harness.d.ts +13 -0
  777. package/packages/cli/dist/commands/harness.d.ts.map +1 -0
  778. package/packages/cli/dist/commands/harness.js +276 -0
  779. package/packages/cli/dist/commands/harness.js.map +1 -0
  780. package/packages/cli/dist/commands/init-ci.d.ts +19 -0
  781. package/packages/cli/dist/commands/init-ci.d.ts.map +1 -0
  782. package/packages/cli/dist/commands/init-ci.js +148 -0
  783. package/packages/cli/dist/commands/init-ci.js.map +1 -0
  784. package/packages/cli/dist/commands/init.d.ts +33 -0
  785. package/packages/cli/dist/commands/init.d.ts.map +1 -0
  786. package/packages/cli/dist/commands/init.js +157 -0
  787. package/packages/cli/dist/commands/init.js.map +1 -0
  788. package/packages/cli/dist/commands/install-hooks.d.ts +29 -0
  789. package/packages/cli/dist/commands/install-hooks.d.ts.map +1 -0
  790. package/packages/cli/dist/commands/install-hooks.js +139 -0
  791. package/packages/cli/dist/commands/install-hooks.js.map +1 -0
  792. package/packages/cli/dist/commands/integration-check.d.ts +62 -0
  793. package/packages/cli/dist/commands/integration-check.d.ts.map +1 -0
  794. package/packages/cli/dist/commands/integration-check.js +298 -0
  795. package/packages/cli/dist/commands/integration-check.js.map +1 -0
  796. package/packages/cli/dist/commands/ir-diff.d.ts +8 -0
  797. package/packages/cli/dist/commands/ir-diff.d.ts.map +1 -0
  798. package/packages/cli/dist/commands/ir-diff.js +199 -0
  799. package/packages/cli/dist/commands/ir-diff.js.map +1 -0
  800. package/packages/cli/dist/commands/lint-routes.d.ts +56 -0
  801. package/packages/cli/dist/commands/lint-routes.d.ts.map +1 -0
  802. package/packages/cli/dist/commands/lint-routes.js +228 -0
  803. package/packages/cli/dist/commands/lint-routes.js.map +1 -0
  804. package/packages/cli/dist/commands/load-test.d.ts +61 -0
  805. package/packages/cli/dist/commands/load-test.d.ts.map +1 -0
  806. package/packages/cli/dist/commands/load-test.js +675 -0
  807. package/packages/cli/dist/commands/load-test.js.map +1 -0
  808. package/packages/cli/dist/commands/migrate.d.ts +21 -0
  809. package/packages/cli/dist/commands/migrate.d.ts.map +1 -0
  810. package/packages/cli/dist/commands/migrate.js +264 -0
  811. package/packages/cli/dist/commands/migrate.js.map +1 -0
  812. package/packages/cli/dist/commands/mock.d.ts +79 -0
  813. package/packages/cli/dist/commands/mock.d.ts.map +1 -0
  814. package/packages/cli/dist/commands/mock.js +324 -0
  815. package/packages/cli/dist/commands/mock.js.map +1 -0
  816. package/packages/cli/dist/commands/pack-unpack.d.ts +30 -0
  817. package/packages/cli/dist/commands/pack-unpack.d.ts.map +1 -0
  818. package/packages/cli/dist/commands/pack-unpack.js +108 -0
  819. package/packages/cli/dist/commands/pack-unpack.js.map +1 -0
  820. package/packages/cli/dist/commands/preflight.d.ts +31 -0
  821. package/packages/cli/dist/commands/preflight.d.ts.map +1 -0
  822. package/packages/cli/dist/commands/preflight.js +246 -0
  823. package/packages/cli/dist/commands/preflight.js.map +1 -0
  824. package/packages/cli/dist/commands/profile.d.ts +30 -0
  825. package/packages/cli/dist/commands/profile.d.ts.map +1 -0
  826. package/packages/cli/dist/commands/profile.js +201 -0
  827. package/packages/cli/dist/commands/profile.js.map +1 -0
  828. package/packages/cli/dist/commands/repl.d.ts +16 -0
  829. package/packages/cli/dist/commands/repl.d.ts.map +1 -0
  830. package/packages/cli/dist/commands/repl.js +772 -0
  831. package/packages/cli/dist/commands/repl.js.map +1 -0
  832. package/packages/cli/dist/commands/routes.d.ts +24 -0
  833. package/packages/cli/dist/commands/routes.d.ts.map +1 -0
  834. package/packages/cli/dist/commands/routes.js +144 -0
  835. package/packages/cli/dist/commands/routes.js.map +1 -0
  836. package/packages/cli/dist/commands/scan.d.ts +23 -0
  837. package/packages/cli/dist/commands/scan.d.ts.map +1 -0
  838. package/packages/cli/dist/commands/scan.js +722 -0
  839. package/packages/cli/dist/commands/scan.js.map +1 -0
  840. package/packages/cli/dist/commands/seed.d.ts +35 -0
  841. package/packages/cli/dist/commands/seed.d.ts.map +1 -0
  842. package/packages/cli/dist/commands/seed.js +503 -0
  843. package/packages/cli/dist/commands/seed.js.map +1 -0
  844. package/packages/cli/dist/commands/validate-ai-ajv.d.ts +4 -0
  845. package/packages/cli/dist/commands/validate-ai-ajv.d.ts.map +1 -0
  846. package/packages/cli/dist/commands/validate-ai-ajv.js +78 -0
  847. package/packages/cli/dist/commands/validate-ai-ajv.js.map +1 -0
  848. package/packages/cli/dist/commands/validate-ai-compiler.d.ts +5 -0
  849. package/packages/cli/dist/commands/validate-ai-compiler.d.ts.map +1 -0
  850. package/packages/cli/dist/commands/validate-ai-compiler.js +8 -0
  851. package/packages/cli/dist/commands/validate-ai-compiler.js.map +1 -0
  852. package/packages/cli/dist/commands/validate-ai-report.d.ts +5 -0
  853. package/packages/cli/dist/commands/validate-ai-report.d.ts.map +1 -0
  854. package/packages/cli/dist/commands/validate-ai-report.js +80 -0
  855. package/packages/cli/dist/commands/validate-ai-report.js.map +1 -0
  856. package/packages/cli/dist/commands/validate-ai-resolve-inputs.d.ts +6 -0
  857. package/packages/cli/dist/commands/validate-ai-resolve-inputs.d.ts.map +1 -0
  858. package/packages/cli/dist/commands/validate-ai-resolve-inputs.js +54 -0
  859. package/packages/cli/dist/commands/validate-ai-resolve-inputs.js.map +1 -0
  860. package/packages/cli/dist/commands/validate-ai-semantic-checks.d.ts +4 -0
  861. package/packages/cli/dist/commands/validate-ai-semantic-checks.d.ts.map +1 -0
  862. package/packages/cli/dist/commands/validate-ai-semantic-checks.js +218 -0
  863. package/packages/cli/dist/commands/validate-ai-semantic-checks.js.map +1 -0
  864. package/packages/cli/dist/commands/validate-ai-types.d.ts +41 -0
  865. package/packages/cli/dist/commands/validate-ai-types.d.ts.map +1 -0
  866. package/packages/cli/dist/commands/validate-ai-types.js +2 -0
  867. package/packages/cli/dist/commands/validate-ai-types.js.map +1 -0
  868. package/packages/cli/dist/commands/validate-ai-validate-file.d.ts +5 -0
  869. package/packages/cli/dist/commands/validate-ai-validate-file.d.ts.map +1 -0
  870. package/packages/cli/dist/commands/validate-ai-validate-file.js +126 -0
  871. package/packages/cli/dist/commands/validate-ai-validate-file.js.map +1 -0
  872. package/packages/cli/dist/commands/validate-ai.d.ts +15 -0
  873. package/packages/cli/dist/commands/validate-ai.d.ts.map +1 -0
  874. package/packages/cli/dist/commands/validate-ai.js +124 -0
  875. package/packages/cli/dist/commands/validate-ai.js.map +1 -0
  876. package/packages/cli/dist/commands/validate.d.ts +15 -0
  877. package/packages/cli/dist/commands/validate.d.ts.map +1 -0
  878. package/packages/cli/dist/commands/validate.js +205 -0
  879. package/packages/cli/dist/commands/validate.js.map +1 -0
  880. package/packages/cli/dist/commands/versions.d.ts +56 -0
  881. package/packages/cli/dist/commands/versions.d.ts.map +1 -0
  882. package/packages/cli/dist/commands/versions.js +427 -0
  883. package/packages/cli/dist/commands/versions.js.map +1 -0
  884. package/packages/cli/dist/commands/watch.d.ts +34 -0
  885. package/packages/cli/dist/commands/watch.d.ts.map +1 -0
  886. package/packages/cli/dist/commands/watch.js +253 -0
  887. package/packages/cli/dist/commands/watch.js.map +1 -0
  888. package/packages/cli/dist/index.d.ts +14 -0
  889. package/packages/cli/dist/index.d.ts.map +1 -0
  890. package/packages/cli/dist/index.js +1159 -0
  891. package/packages/cli/dist/index.js.map +1 -0
  892. package/packages/cli/dist/utils/config-validate.d.ts +48 -0
  893. package/packages/cli/dist/utils/config-validate.d.ts.map +1 -0
  894. package/packages/cli/dist/utils/config-validate.js +116 -0
  895. package/packages/cli/dist/utils/config-validate.js.map +1 -0
  896. package/packages/cli/dist/utils/config.d.ts +360 -0
  897. package/packages/cli/dist/utils/config.d.ts.map +1 -0
  898. package/packages/cli/dist/utils/config.js +567 -0
  899. package/packages/cli/dist/utils/config.js.map +1 -0
  900. package/packages/cli/dist/utils/schema.d.ts +8 -0
  901. package/packages/cli/dist/utils/schema.d.ts.map +1 -0
  902. package/packages/cli/dist/utils/schema.js +13 -0
  903. package/packages/cli/dist/utils/schema.js.map +1 -0
  904. package/packages/lsp-server/bin/manifest-lsp.js +3 -0
  905. package/packages/lsp-server/dist/compiler-bridge.d.ts +24 -0
  906. package/packages/lsp-server/dist/compiler-bridge.d.ts.map +1 -0
  907. package/packages/lsp-server/dist/compiler-bridge.js +32 -0
  908. package/packages/lsp-server/dist/compiler-bridge.js.map +1 -0
  909. package/packages/lsp-server/dist/document-store.d.ts +23 -0
  910. package/packages/lsp-server/dist/document-store.d.ts.map +1 -0
  911. package/packages/lsp-server/dist/document-store.js +40 -0
  912. package/packages/lsp-server/dist/document-store.js.map +1 -0
  913. package/packages/lsp-server/dist/features/completion.d.ts +23 -0
  914. package/packages/lsp-server/dist/features/completion.d.ts.map +1 -0
  915. package/packages/lsp-server/dist/features/completion.js +293 -0
  916. package/packages/lsp-server/dist/features/completion.js.map +1 -0
  917. package/packages/lsp-server/dist/features/definition.d.ts +9 -0
  918. package/packages/lsp-server/dist/features/definition.d.ts.map +1 -0
  919. package/packages/lsp-server/dist/features/definition.js +24 -0
  920. package/packages/lsp-server/dist/features/definition.js.map +1 -0
  921. package/packages/lsp-server/dist/features/diagnostics.d.ts +8 -0
  922. package/packages/lsp-server/dist/features/diagnostics.d.ts.map +1 -0
  923. package/packages/lsp-server/dist/features/diagnostics.js +40 -0
  924. package/packages/lsp-server/dist/features/diagnostics.js.map +1 -0
  925. package/packages/lsp-server/dist/features/document-symbols.d.ts +8 -0
  926. package/packages/lsp-server/dist/features/document-symbols.d.ts.map +1 -0
  927. package/packages/lsp-server/dist/features/document-symbols.js +164 -0
  928. package/packages/lsp-server/dist/features/document-symbols.js.map +1 -0
  929. package/packages/lsp-server/dist/features/hover.d.ts +9 -0
  930. package/packages/lsp-server/dist/features/hover.d.ts.map +1 -0
  931. package/packages/lsp-server/dist/features/hover.js +100 -0
  932. package/packages/lsp-server/dist/features/hover.js.map +1 -0
  933. package/packages/lsp-server/dist/index.d.ts +6 -0
  934. package/packages/lsp-server/dist/index.d.ts.map +1 -0
  935. package/packages/lsp-server/dist/index.js +11 -0
  936. package/packages/lsp-server/dist/index.js.map +1 -0
  937. package/packages/lsp-server/dist/position-utils.d.ts +25 -0
  938. package/packages/lsp-server/dist/position-utils.d.ts.map +1 -0
  939. package/packages/lsp-server/dist/position-utils.js +39 -0
  940. package/packages/lsp-server/dist/position-utils.js.map +1 -0
  941. package/packages/lsp-server/dist/server.d.ts +14 -0
  942. package/packages/lsp-server/dist/server.d.ts.map +1 -0
  943. package/packages/lsp-server/dist/server.js +96 -0
  944. package/packages/lsp-server/dist/server.js.map +1 -0
  945. package/packages/lsp-server/dist/symbols/builtin-docs.d.ts +34 -0
  946. package/packages/lsp-server/dist/symbols/builtin-docs.d.ts.map +1 -0
  947. package/packages/lsp-server/dist/symbols/builtin-docs.js +193 -0
  948. package/packages/lsp-server/dist/symbols/builtin-docs.js.map +1 -0
  949. package/packages/lsp-server/dist/symbols/symbol-index.d.ts +18 -0
  950. package/packages/lsp-server/dist/symbols/symbol-index.d.ts.map +1 -0
  951. package/packages/lsp-server/dist/symbols/symbol-index.js +107 -0
  952. package/packages/lsp-server/dist/symbols/symbol-index.js.map +1 -0
  953. package/packages/mcp-server/bin/manifest-mcp.js +27 -0
  954. package/packages/mcp-server/dist/index.d.ts +24 -0
  955. package/packages/mcp-server/dist/index.d.ts.map +1 -0
  956. package/packages/mcp-server/dist/index.js +36 -0
  957. package/packages/mcp-server/dist/index.js.map +1 -0
  958. package/packages/mcp-server/dist/resources/ir-cache.d.ts +9 -0
  959. package/packages/mcp-server/dist/resources/ir-cache.d.ts.map +1 -0
  960. package/packages/mcp-server/dist/resources/ir-cache.js +47 -0
  961. package/packages/mcp-server/dist/resources/ir-cache.js.map +1 -0
  962. package/packages/mcp-server/dist/resources/ir-schema.d.ts +8 -0
  963. package/packages/mcp-server/dist/resources/ir-schema.d.ts.map +1 -0
  964. package/packages/mcp-server/dist/resources/ir-schema.js +39 -0
  965. package/packages/mcp-server/dist/resources/ir-schema.js.map +1 -0
  966. package/packages/mcp-server/dist/resources/semantics.d.ts +8 -0
  967. package/packages/mcp-server/dist/resources/semantics.d.ts.map +1 -0
  968. package/packages/mcp-server/dist/resources/semantics.js +38 -0
  969. package/packages/mcp-server/dist/resources/semantics.js.map +1 -0
  970. package/packages/mcp-server/dist/server.d.ts +7 -0
  971. package/packages/mcp-server/dist/server.d.ts.map +1 -0
  972. package/packages/mcp-server/dist/server.js +22 -0
  973. package/packages/mcp-server/dist/server.js.map +1 -0
  974. package/packages/mcp-server/dist/state/session-store.d.ts +39 -0
  975. package/packages/mcp-server/dist/state/session-store.d.ts.map +1 -0
  976. package/packages/mcp-server/dist/state/session-store.js +58 -0
  977. package/packages/mcp-server/dist/state/session-store.js.map +1 -0
  978. package/packages/mcp-server/dist/tools/compile.d.ts +30 -0
  979. package/packages/mcp-server/dist/tools/compile.d.ts.map +1 -0
  980. package/packages/mcp-server/dist/tools/compile.js +54 -0
  981. package/packages/mcp-server/dist/tools/compile.js.map +1 -0
  982. package/packages/mcp-server/dist/tools/execute.d.ts +112 -0
  983. package/packages/mcp-server/dist/tools/execute.d.ts.map +1 -0
  984. package/packages/mcp-server/dist/tools/execute.js +103 -0
  985. package/packages/mcp-server/dist/tools/execute.js.map +1 -0
  986. package/packages/mcp-server/dist/tools/explain.d.ts +25 -0
  987. package/packages/mcp-server/dist/tools/explain.d.ts.map +1 -0
  988. package/packages/mcp-server/dist/tools/explain.js +254 -0
  989. package/packages/mcp-server/dist/tools/explain.js.map +1 -0
  990. package/packages/mcp-server/dist/tools/validate.d.ts +23 -0
  991. package/packages/mcp-server/dist/tools/validate.d.ts.map +1 -0
  992. package/packages/mcp-server/dist/tools/validate.js +38 -0
  993. package/packages/mcp-server/dist/tools/validate.js.map +1 -0
  994. package/src/manifest/audit/sinks/postgres.sql +51 -0
  995. package/src/manifest/outbox/stores/postgres.sql +61 -0
@@ -0,0 +1,2033 @@
1
+ {
2
+ "$id": "https://manifest.lang/spec/ir-v1.schema.json",
3
+ "title": "Manifest IR v1",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "version",
8
+ "provenance",
9
+ "modules",
10
+ "values",
11
+ "entities",
12
+ "enums",
13
+ "stores",
14
+ "events",
15
+ "commands",
16
+ "policies"
17
+ ],
18
+ "properties": {
19
+ "version": {
20
+ "const": "1.0"
21
+ },
22
+ "provenance": {
23
+ "$ref": "#/definitions/IRProvenance"
24
+ },
25
+ "modules": {
26
+ "type": "array",
27
+ "items": {
28
+ "$ref": "#/definitions/IRModule"
29
+ }
30
+ },
31
+ "entities": {
32
+ "type": "array",
33
+ "items": {
34
+ "$ref": "#/definitions/IREntity"
35
+ }
36
+ },
37
+ "stores": {
38
+ "type": "array",
39
+ "items": {
40
+ "$ref": "#/definitions/IRStore"
41
+ }
42
+ },
43
+ "events": {
44
+ "type": "array",
45
+ "items": {
46
+ "$ref": "#/definitions/IREvent"
47
+ }
48
+ },
49
+ "commands": {
50
+ "type": "array",
51
+ "items": {
52
+ "$ref": "#/definitions/IRCommand"
53
+ }
54
+ },
55
+ "policies": {
56
+ "type": "array",
57
+ "items": {
58
+ "$ref": "#/definitions/IRPolicy"
59
+ }
60
+ },
61
+ "enums": {
62
+ "type": "array",
63
+ "items": {
64
+ "$ref": "#/definitions/IREnum"
65
+ }
66
+ },
67
+ "tenant": {
68
+ "$ref": "#/definitions/IRTenant",
69
+ "description": "Multi-tenancy isolation configuration. When present, persistent entities are tenant-scoped."
70
+ },
71
+ "values": {
72
+ "type": "array",
73
+ "items": {
74
+ "$ref": "#/definitions/IRValueObject"
75
+ },
76
+ "description": "Reusable composite value types (embedded, no separate table). Immutable by design."
77
+ },
78
+ "reactions": {
79
+ "type": "array",
80
+ "items": {
81
+ "$ref": "#/definitions/IRReactionRule"
82
+ },
83
+ "description": "Declarative event-reaction rules. When a matching event is emitted, the runtime dispatches the target command."
84
+ },
85
+ "sagas": {
86
+ "type": "array",
87
+ "items": {
88
+ "$ref": "#/definitions/IRSaga"
89
+ },
90
+ "description": "Saga orchestration definitions sequencing commands with compensation."
91
+ },
92
+ "roles": {
93
+ "type": "array",
94
+ "items": {
95
+ "$ref": "#/definitions/IRRole"
96
+ },
97
+ "description": "Role hierarchy with permission inheritance. effectivePermissions is the deny-resolved flattened set."
98
+ },
99
+ "webhooks": {
100
+ "type": "array",
101
+ "items": {
102
+ "$ref": "#/definitions/IRWebhook"
103
+ },
104
+ "description": "Webhook declarations mapping inbound HTTP payloads to Manifest command invocations."
105
+ },
106
+ "schedules": {
107
+ "type": "array",
108
+ "items": {
109
+ "$ref": "#/definitions/IRSchedule"
110
+ },
111
+ "description": "Scheduled command declarations with triggers and parameter bindings."
112
+ }
113
+ },
114
+ "definitions": {
115
+ "IRProvenance": {
116
+ "type": "object",
117
+ "additionalProperties": false,
118
+ "required": [
119
+ "contentHash",
120
+ "compilerVersion",
121
+ "schemaVersion",
122
+ "compiledAt"
123
+ ],
124
+ "properties": {
125
+ "contentHash": {
126
+ "type": "string",
127
+ "description": "SHA-256 hash of the source manifest"
128
+ },
129
+ "irHash": {
130
+ "type": "string",
131
+ "description": "SHA-256 hash of the IR itself for runtime integrity verification"
132
+ },
133
+ "compilerVersion": {
134
+ "type": "string",
135
+ "description": "Version of the compiler that generated this IR"
136
+ },
137
+ "schemaVersion": {
138
+ "type": "string",
139
+ "description": "IR schema version"
140
+ },
141
+ "compiledAt": {
142
+ "type": "string",
143
+ "description": "ISO 8601 timestamp of compilation"
144
+ },
145
+ "sources": {
146
+ "type": "array",
147
+ "description": "Source files contributing to this IR. Present only for multi-file compilation.",
148
+ "items": {
149
+ "$ref": "#/definitions/IRProvenanceSource"
150
+ }
151
+ }
152
+ }
153
+ },
154
+ "IRProvenanceSource": {
155
+ "type": "object",
156
+ "additionalProperties": false,
157
+ "required": ["path", "contentHash"],
158
+ "properties": {
159
+ "path": {
160
+ "type": "string",
161
+ "description": "Relative path from project root"
162
+ },
163
+ "contentHash": {
164
+ "type": "string",
165
+ "description": "SHA-256 content hash of this source file"
166
+ }
167
+ }
168
+ },
169
+ "IRModule": {
170
+ "type": "object",
171
+ "additionalProperties": false,
172
+ "required": [
173
+ "name",
174
+ "entities",
175
+ "commands",
176
+ "stores",
177
+ "events",
178
+ "policies"
179
+ ],
180
+ "properties": {
181
+ "name": {
182
+ "type": "string"
183
+ },
184
+ "entities": {
185
+ "type": "array",
186
+ "items": {
187
+ "type": "string"
188
+ }
189
+ },
190
+ "commands": {
191
+ "type": "array",
192
+ "items": {
193
+ "type": "string"
194
+ }
195
+ },
196
+ "stores": {
197
+ "type": "array",
198
+ "items": {
199
+ "type": "string"
200
+ }
201
+ },
202
+ "events": {
203
+ "type": "array",
204
+ "items": {
205
+ "type": "string"
206
+ }
207
+ },
208
+ "policies": {
209
+ "type": "array",
210
+ "items": {
211
+ "type": "string"
212
+ }
213
+ },
214
+ "enums": {
215
+ "type": "array",
216
+ "items": {
217
+ "type": "string"
218
+ }
219
+ },
220
+ "reactions": {
221
+ "type": "array",
222
+ "items": {
223
+ "type": "string"
224
+ },
225
+ "description": "Reaction rule names declared in this module"
226
+ },
227
+ "sagas": {
228
+ "type": "array",
229
+ "items": {
230
+ "type": "string"
231
+ },
232
+ "description": "Saga names declared in this module"
233
+ },
234
+ "roles": {
235
+ "type": "array",
236
+ "items": {
237
+ "type": "string"
238
+ },
239
+ "description": "Role names declared in this module"
240
+ },
241
+ "webhooks": {
242
+ "type": "array",
243
+ "items": {
244
+ "type": "string"
245
+ },
246
+ "description": "Webhook names declared in this module"
247
+ },
248
+ "schedules": {
249
+ "type": "array",
250
+ "items": {
251
+ "type": "string"
252
+ },
253
+ "description": "Schedule names declared in this module"
254
+ }
255
+ }
256
+ },
257
+ "IREnum": {
258
+ "type": "object",
259
+ "additionalProperties": false,
260
+ "required": [
261
+ "name",
262
+ "values"
263
+ ],
264
+ "properties": {
265
+ "name": {
266
+ "type": "string",
267
+ "description": "Enum type name"
268
+ },
269
+ "module": {
270
+ "type": "string",
271
+ "description": "Module name if defined in a module"
272
+ },
273
+ "values": {
274
+ "type": "array",
275
+ "items": {
276
+ "$ref": "#/definitions/IREnumValue"
277
+ },
278
+ "description": "Enum member values"
279
+ }
280
+ }
281
+ },
282
+ "IREnumValue": {
283
+ "type": "object",
284
+ "additionalProperties": false,
285
+ "required": [
286
+ "name"
287
+ ],
288
+ "properties": {
289
+ "name": {
290
+ "type": "string",
291
+ "description": "Enum member name (identifier)"
292
+ },
293
+ "label": {
294
+ "type": "string",
295
+ "description": "Display label for UI"
296
+ },
297
+ "ordinal": {
298
+ "type": "number",
299
+ "description": "Optional ordinal value for sorting/database mapping"
300
+ }
301
+ }
302
+ },
303
+ "IREntity": {
304
+ "type": "object",
305
+ "additionalProperties": false,
306
+ "required": [
307
+ "name",
308
+ "properties",
309
+ "computedProperties",
310
+ "relationships",
311
+ "commands",
312
+ "constraints",
313
+ "policies"
314
+ ],
315
+ "properties": {
316
+ "name": {
317
+ "type": "string"
318
+ },
319
+ "module": {
320
+ "type": "string"
321
+ },
322
+ "parent": {
323
+ "type": "string",
324
+ "description": "Parent entity name for inheritance (from `extends` keyword)"
325
+ },
326
+ "mixins": {
327
+ "type": "array",
328
+ "items": {
329
+ "type": "string"
330
+ },
331
+ "description": "Mixin entity names for composition (from `mixin` keyword)"
332
+ },
333
+ "properties": {
334
+ "type": "array",
335
+ "items": {
336
+ "$ref": "#/definitions/IRProperty"
337
+ }
338
+ },
339
+ "computedProperties": {
340
+ "type": "array",
341
+ "items": {
342
+ "$ref": "#/definitions/IRComputedProperty"
343
+ }
344
+ },
345
+ "relationships": {
346
+ "type": "array",
347
+ "items": {
348
+ "$ref": "#/definitions/IRRelationship"
349
+ }
350
+ },
351
+ "commands": {
352
+ "type": "array",
353
+ "items": {
354
+ "type": "string"
355
+ }
356
+ },
357
+ "constraints": {
358
+ "type": "array",
359
+ "items": {
360
+ "$ref": "#/definitions/IRConstraint"
361
+ }
362
+ },
363
+ "policies": {
364
+ "type": "array",
365
+ "items": {
366
+ "type": "string"
367
+ }
368
+ },
369
+ "defaultPolicies": {
370
+ "type": "array",
371
+ "items": {
372
+ "type": "string"
373
+ },
374
+ "description": "Policy names inherited by all commands unless overridden (vNext)"
375
+ },
376
+ "key": {
377
+ "type": "array",
378
+ "items": {
379
+ "type": "string"
380
+ },
381
+ "description": "Composite primary key column names, e.g. [\"tenantId\", \"id\"]"
382
+ },
383
+ "alternateKeys": {
384
+ "type": "array",
385
+ "items": {
386
+ "type": "array",
387
+ "items": {
388
+ "type": "string"
389
+ }
390
+ },
391
+ "description": "Alternate unique constraints for non-PK FK reference targets"
392
+ },
393
+ "versionProperty": {
394
+ "type": "string",
395
+ "description": "Name of version field for optimistic concurrency control"
396
+ },
397
+ "versionAtProperty": {
398
+ "type": "string",
399
+ "description": "Name of timestamp field for version tracking"
400
+ },
401
+ "timestamps": {
402
+ "type": "boolean",
403
+ "description": "When true, createdAt/updatedAt are auto-injected and populated at runtime"
404
+ },
405
+ "realtime": {
406
+ "type": "boolean",
407
+ "description": "Projection hint: generate SSE subscription surfaces for this entity. No runtime execution semantics."
408
+ },
409
+ "external": {
410
+ "type": "boolean",
411
+ "description": "When true, the entity is a reference to one owned by another system/file (from the `external entity` modifier). Persistence projections skip it."
412
+ },
413
+ "transitions": {
414
+ "type": "array",
415
+ "items": {
416
+ "$ref": "#/definitions/IRTransition"
417
+ },
418
+ "description": "Optional allowed state transitions for validation"
419
+ },
420
+ "approvals": {
421
+ "type": "array",
422
+ "items": {
423
+ "$ref": "#/definitions/IRApproval"
424
+ },
425
+ "description": "Approval workflow declarations gating command execution"
426
+ }
427
+ }
428
+ },
429
+ "IRTransition": {
430
+ "type": "object",
431
+ "additionalProperties": false,
432
+ "required": [
433
+ "property",
434
+ "from",
435
+ "to"
436
+ ],
437
+ "properties": {
438
+ "property": {
439
+ "type": "string",
440
+ "description": "Property name that holds state"
441
+ },
442
+ "from": {
443
+ "type": "string",
444
+ "description": "Value the property transitions FROM"
445
+ },
446
+ "to": {
447
+ "type": "array",
448
+ "items": {
449
+ "type": "string"
450
+ },
451
+ "description": "Allowed values the property can transition TO"
452
+ }
453
+ }
454
+ },
455
+ "IRApprovalStage": {
456
+ "type": "object",
457
+ "additionalProperties": false,
458
+ "required": [
459
+ "name",
460
+ "policy",
461
+ "required"
462
+ ],
463
+ "properties": {
464
+ "name": {
465
+ "type": "string",
466
+ "description": "Stage name (unique within the approval)"
467
+ },
468
+ "policy": {
469
+ "$ref": "#/definitions/IRExpression",
470
+ "description": "Boolean expression authorizing an approver for this stage"
471
+ },
472
+ "required": {
473
+ "type": "number",
474
+ "description": "Number of approvals required to satisfy this stage"
475
+ },
476
+ "when": {
477
+ "$ref": "#/definitions/IRExpression",
478
+ "description": "Optional condition gating whether this stage applies"
479
+ }
480
+ }
481
+ },
482
+ "IRApproval": {
483
+ "type": "object",
484
+ "additionalProperties": false,
485
+ "required": [
486
+ "name",
487
+ "command",
488
+ "stages",
489
+ "emits"
490
+ ],
491
+ "properties": {
492
+ "name": {
493
+ "type": "string",
494
+ "description": "Approval workflow name"
495
+ },
496
+ "command": {
497
+ "type": "string",
498
+ "description": "Command name this approval gates"
499
+ },
500
+ "stages": {
501
+ "type": "array",
502
+ "items": {
503
+ "$ref": "#/definitions/IRApprovalStage"
504
+ },
505
+ "description": "Ordered approval stages"
506
+ },
507
+ "timeout": {
508
+ "type": "number",
509
+ "description": "Timeout in hours for pending approval"
510
+ },
511
+ "onTimeout": {
512
+ "type": "string",
513
+ "enum": ["cancel", "escalate"],
514
+ "description": "Behavior when approval times out"
515
+ },
516
+ "emits": {
517
+ "type": "array",
518
+ "items": {
519
+ "type": "string"
520
+ },
521
+ "description": "Lifecycle events emitted during the approval workflow"
522
+ }
523
+ }
524
+ },
525
+ "IRProperty": {
526
+ "type": "object",
527
+ "additionalProperties": false,
528
+ "required": [
529
+ "name",
530
+ "type",
531
+ "modifiers"
532
+ ],
533
+ "properties": {
534
+ "name": {
535
+ "type": "string"
536
+ },
537
+ "type": {
538
+ "$ref": "#/definitions/IRType"
539
+ },
540
+ "defaultValue": {
541
+ "$ref": "#/definitions/IRValue"
542
+ },
543
+ "autoNow": {
544
+ "type": "boolean",
545
+ "description": "Property default is a current-time call (= now()/= today()); runtime stamps current time on create."
546
+ },
547
+ "modifiers": {
548
+ "type": "array",
549
+ "items": {
550
+ "enum": [
551
+ "required",
552
+ "unique",
553
+ "indexed",
554
+ "private",
555
+ "readonly",
556
+ "optional",
557
+ "searchable",
558
+ "encrypted",
559
+ "masked"
560
+ ]
561
+ }
562
+ },
563
+ "maskStrategy": {
564
+ "$ref": "#/definitions/IRMaskStrategy"
565
+ }
566
+ }
567
+ },
568
+ "IRMaskStrategy": {
569
+ "type": "object",
570
+ "additionalProperties": false,
571
+ "required": [
572
+ "type"
573
+ ],
574
+ "properties": {
575
+ "type": {
576
+ "enum": [
577
+ "redact",
578
+ "partial",
579
+ "email",
580
+ "phone",
581
+ "last4"
582
+ ]
583
+ },
584
+ "params": {
585
+ "type": "array",
586
+ "items": {
587
+ "type": "number"
588
+ }
589
+ },
590
+ "unmaskWhen": {
591
+ "$ref": "#/definitions/IRExpression"
592
+ }
593
+ }
594
+ },
595
+ "IRComputedPropertyCache": {
596
+ "type": "object",
597
+ "additionalProperties": false,
598
+ "required": ["strategy"],
599
+ "properties": {
600
+ "strategy": {
601
+ "type": "string",
602
+ "enum": ["request", "session", "ttl"]
603
+ },
604
+ "ttlSeconds": {
605
+ "type": "number"
606
+ }
607
+ }
608
+ },
609
+ "IRComputedProperty": {
610
+ "type": "object",
611
+ "additionalProperties": false,
612
+ "required": [
613
+ "name",
614
+ "type",
615
+ "expression",
616
+ "dependencies"
617
+ ],
618
+ "properties": {
619
+ "name": {
620
+ "type": "string"
621
+ },
622
+ "type": {
623
+ "$ref": "#/definitions/IRType"
624
+ },
625
+ "expression": {
626
+ "$ref": "#/definitions/IRExpression"
627
+ },
628
+ "dependencies": {
629
+ "type": "array",
630
+ "items": {
631
+ "type": "string"
632
+ }
633
+ },
634
+ "cache": {
635
+ "$ref": "#/definitions/IRComputedPropertyCache"
636
+ }
637
+ }
638
+ },
639
+ "IRForeignKey": {
640
+ "type": "object",
641
+ "additionalProperties": false,
642
+ "required": [
643
+ "fields"
644
+ ],
645
+ "properties": {
646
+ "fields": {
647
+ "type": "array",
648
+ "items": {
649
+ "type": "string"
650
+ },
651
+ "description": "Local FK column names"
652
+ },
653
+ "references": {
654
+ "type": "array",
655
+ "items": {
656
+ "type": "string"
657
+ },
658
+ "description": "Remote/referenced column names. Absent means projection defaults to [\"id\"]"
659
+ }
660
+ }
661
+ },
662
+ "IRRelationship": {
663
+ "type": "object",
664
+ "additionalProperties": false,
665
+ "required": [
666
+ "name",
667
+ "kind",
668
+ "target"
669
+ ],
670
+ "properties": {
671
+ "name": {
672
+ "type": "string"
673
+ },
674
+ "kind": {
675
+ "enum": [
676
+ "hasMany",
677
+ "hasOne",
678
+ "belongsTo",
679
+ "ref"
680
+ ]
681
+ },
682
+ "target": {
683
+ "type": "string"
684
+ },
685
+ "foreignKey": {
686
+ "$ref": "#/definitions/IRForeignKey"
687
+ },
688
+ "through": {
689
+ "type": "string"
690
+ },
691
+ "onDelete": {
692
+ "type": "string",
693
+ "enum": [
694
+ "cascade",
695
+ "restrict",
696
+ "setNull",
697
+ "setDefault",
698
+ "noAction"
699
+ ],
700
+ "description": "Referential action on parent delete. Absent = let projection/DB default."
701
+ },
702
+ "onUpdate": {
703
+ "type": "string",
704
+ "enum": [
705
+ "cascade",
706
+ "restrict",
707
+ "setNull",
708
+ "setDefault",
709
+ "noAction"
710
+ ],
711
+ "description": "Referential action on parent update. Absent = let projection/DB default."
712
+ }
713
+ }
714
+ },
715
+ "IRConstraint": {
716
+ "type": "object",
717
+ "additionalProperties": false,
718
+ "required": [
719
+ "name",
720
+ "code",
721
+ "expression"
722
+ ],
723
+ "properties": {
724
+ "name": {
725
+ "type": "string"
726
+ },
727
+ "code": {
728
+ "type": "string",
729
+ "description": "Stable identifier for overrides/auditing (defaults to name)"
730
+ },
731
+ "expression": {
732
+ "$ref": "#/definitions/IRExpression"
733
+ },
734
+ "message": {
735
+ "type": "string"
736
+ },
737
+ "severity": {
738
+ "type": "string",
739
+ "enum": [
740
+ "ok",
741
+ "warn",
742
+ "block"
743
+ ],
744
+ "description": "Constraint severity level (default: block)"
745
+ },
746
+ "messageTemplate": {
747
+ "type": "string",
748
+ "description": "Template for error messages with interpolation"
749
+ },
750
+ "detailsMapping": {
751
+ "type": "object",
752
+ "additionalProperties": {
753
+ "$ref": "#/definitions/IRExpression"
754
+ },
755
+ "description": "Structured details for UI (key-value pairs with expression values)"
756
+ },
757
+ "overrideable": {
758
+ "type": "boolean",
759
+ "description": "Can this constraint be overridden?"
760
+ },
761
+ "overridePolicyRef": {
762
+ "type": "string",
763
+ "description": "Policy that authorizes overrides"
764
+ }
765
+ }
766
+ },
767
+ "IRStore": {
768
+ "type": "object",
769
+ "additionalProperties": false,
770
+ "required": [
771
+ "entity",
772
+ "target",
773
+ "config"
774
+ ],
775
+ "properties": {
776
+ "entity": {
777
+ "type": "string"
778
+ },
779
+ "target": {
780
+ "type": "string",
781
+ "description": "Built-in targets: memory, localStorage, postgres, supabase, durable. Custom adapter schemes (e.g. redis, dynamodb) are valid when a matching StoreAdapterPlugin is registered."
782
+ },
783
+ "config": {
784
+ "type": "object",
785
+ "additionalProperties": {
786
+ "$ref": "#/definitions/IRValue"
787
+ }
788
+ }
789
+ }
790
+ },
791
+ "IREvent": {
792
+ "type": "object",
793
+ "additionalProperties": false,
794
+ "required": [
795
+ "name",
796
+ "channel",
797
+ "payload"
798
+ ],
799
+ "properties": {
800
+ "name": {
801
+ "type": "string"
802
+ },
803
+ "channel": {
804
+ "type": "string"
805
+ },
806
+ "payload": {
807
+ "oneOf": [
808
+ {
809
+ "$ref": "#/definitions/IRType"
810
+ },
811
+ {
812
+ "type": "array",
813
+ "items": {
814
+ "$ref": "#/definitions/IREventField"
815
+ }
816
+ }
817
+ ]
818
+ }
819
+ }
820
+ },
821
+ "IREventField": {
822
+ "type": "object",
823
+ "additionalProperties": false,
824
+ "required": [
825
+ "name",
826
+ "type",
827
+ "required"
828
+ ],
829
+ "properties": {
830
+ "name": {
831
+ "type": "string"
832
+ },
833
+ "type": {
834
+ "$ref": "#/definitions/IRType"
835
+ },
836
+ "required": {
837
+ "type": "boolean"
838
+ }
839
+ }
840
+ },
841
+ "IRCommand": {
842
+ "type": "object",
843
+ "additionalProperties": false,
844
+ "required": [
845
+ "name",
846
+ "parameters",
847
+ "guards",
848
+ "actions",
849
+ "emits"
850
+ ],
851
+ "properties": {
852
+ "name": {
853
+ "type": "string"
854
+ },
855
+ "module": {
856
+ "type": "string"
857
+ },
858
+ "entity": {
859
+ "type": "string"
860
+ },
861
+ "parameters": {
862
+ "type": "array",
863
+ "items": {
864
+ "$ref": "#/definitions/IRParameter"
865
+ }
866
+ },
867
+ "guards": {
868
+ "type": "array",
869
+ "items": {
870
+ "$ref": "#/definitions/IRExpression"
871
+ }
872
+ },
873
+ "constraints": {
874
+ "type": "array",
875
+ "items": {
876
+ "$ref": "#/definitions/IRConstraint"
877
+ },
878
+ "description": "Command-level constraints (pre-execution validation)"
879
+ },
880
+ "policies": {
881
+ "type": "array",
882
+ "items": {
883
+ "type": "string"
884
+ },
885
+ "description": "Policy names for authorization (explicit or inherited from entity defaults)"
886
+ },
887
+ "retry": {
888
+ "$ref": "#/definitions/IRRetry",
889
+ "description": "Retry policy for resilient execution"
890
+ },
891
+ "rateLimit": {
892
+ "$ref": "#/definitions/IRRateLimit",
893
+ "description": "Rate limit policy for this command"
894
+ },
895
+ "actions": {
896
+ "type": "array",
897
+ "items": {
898
+ "$ref": "#/definitions/IRAction"
899
+ }
900
+ },
901
+ "emits": {
902
+ "type": "array",
903
+ "items": {
904
+ "type": "string"
905
+ }
906
+ },
907
+ "emitPayloads": {
908
+ "type": "array",
909
+ "description": "Explicit event payload field expressions from `emit Event { field: expr }`.",
910
+ "items": {
911
+ "$ref": "#/definitions/IREmitPayload"
912
+ }
913
+ },
914
+ "returns": {
915
+ "$ref": "#/definitions/IRType"
916
+ },
917
+ "async": {
918
+ "type": "boolean",
919
+ "description": "When true, defers action execution to a background worker queue. The command returns a JobId immediately after policies/guards pass."
920
+ },
921
+ "completionEvent": {
922
+ "type": "string",
923
+ "description": "Auto-derived completion event name, synthesized when async is true. Format: {commandName}Completed."
924
+ },
925
+ "failureEvent": {
926
+ "type": "string",
927
+ "description": "Auto-derived failure event name, synthesized when async is true. Format: {commandName}Failed."
928
+ }
929
+ }
930
+ },
931
+ "IREmitPayload": {
932
+ "type": "object",
933
+ "additionalProperties": false,
934
+ "required": [
935
+ "eventName",
936
+ "fields"
937
+ ],
938
+ "properties": {
939
+ "eventName": {
940
+ "type": "string"
941
+ },
942
+ "fields": {
943
+ "type": "array",
944
+ "items": {
945
+ "$ref": "#/definitions/IREmitPayloadField"
946
+ }
947
+ }
948
+ }
949
+ },
950
+ "IREmitPayloadField": {
951
+ "type": "object",
952
+ "additionalProperties": false,
953
+ "required": [
954
+ "name",
955
+ "expression"
956
+ ],
957
+ "properties": {
958
+ "name": {
959
+ "type": "string"
960
+ },
961
+ "expression": {
962
+ "$ref": "#/definitions/IRExpression"
963
+ }
964
+ }
965
+ },
966
+ "IRParameter": {
967
+ "type": "object",
968
+ "additionalProperties": false,
969
+ "required": [
970
+ "name",
971
+ "type",
972
+ "required"
973
+ ],
974
+ "properties": {
975
+ "name": {
976
+ "type": "string"
977
+ },
978
+ "type": {
979
+ "$ref": "#/definitions/IRType"
980
+ },
981
+ "required": {
982
+ "type": "boolean"
983
+ },
984
+ "defaultValue": {
985
+ "$ref": "#/definitions/IRValue"
986
+ }
987
+ }
988
+ },
989
+ "IRAction": {
990
+ "oneOf": [
991
+ {
992
+ "type": "object",
993
+ "additionalProperties": false,
994
+ "required": [
995
+ "kind",
996
+ "target",
997
+ "expression"
998
+ ],
999
+ "properties": {
1000
+ "kind": {
1001
+ "const": "mutate"
1002
+ },
1003
+ "target": {
1004
+ "type": "string"
1005
+ },
1006
+ "expression": {
1007
+ "$ref": "#/definitions/IRExpression"
1008
+ }
1009
+ }
1010
+ },
1011
+ {
1012
+ "type": "object",
1013
+ "additionalProperties": false,
1014
+ "required": [
1015
+ "kind",
1016
+ "expression"
1017
+ ],
1018
+ "properties": {
1019
+ "kind": {
1020
+ "enum": [
1021
+ "emit",
1022
+ "compute",
1023
+ "effect",
1024
+ "publish",
1025
+ "persist"
1026
+ ]
1027
+ },
1028
+ "target": {
1029
+ "type": "string"
1030
+ },
1031
+ "expression": {
1032
+ "$ref": "#/definitions/IRExpression"
1033
+ }
1034
+ }
1035
+ }
1036
+ ]
1037
+ },
1038
+ "IRPolicy": {
1039
+ "type": "object",
1040
+ "additionalProperties": false,
1041
+ "required": [
1042
+ "name",
1043
+ "action",
1044
+ "expression"
1045
+ ],
1046
+ "properties": {
1047
+ "name": {
1048
+ "type": "string"
1049
+ },
1050
+ "module": {
1051
+ "type": "string"
1052
+ },
1053
+ "entity": {
1054
+ "type": "string"
1055
+ },
1056
+ "action": {
1057
+ "enum": [
1058
+ "read",
1059
+ "write",
1060
+ "delete",
1061
+ "execute",
1062
+ "all",
1063
+ "override"
1064
+ ]
1065
+ },
1066
+ "expression": {
1067
+ "$ref": "#/definitions/IRExpression"
1068
+ },
1069
+ "rateLimit": {
1070
+ "$ref": "#/definitions/IRRateLimit",
1071
+ "description": "Rate limit policy for this policy"
1072
+ },
1073
+ "message": {
1074
+ "type": "string"
1075
+ }
1076
+ }
1077
+ },
1078
+ "IRType": {
1079
+ "type": "object",
1080
+ "additionalProperties": false,
1081
+ "required": [
1082
+ "name",
1083
+ "nullable"
1084
+ ],
1085
+ "properties": {
1086
+ "name": {
1087
+ "type": "string"
1088
+ },
1089
+ "generic": {
1090
+ "$ref": "#/definitions/IRType"
1091
+ },
1092
+ "nullable": {
1093
+ "type": "boolean"
1094
+ },
1095
+ "params": {
1096
+ "type": "object",
1097
+ "additionalProperties": false,
1098
+ "description": "Type parameters such as precision/scale for decimal types",
1099
+ "properties": {
1100
+ "precision": {
1101
+ "type": "number",
1102
+ "description": "Total number of significant digits (for decimal/money types)"
1103
+ },
1104
+ "scale": {
1105
+ "type": "number",
1106
+ "description": "Number of digits after decimal point (for decimal/money types)"
1107
+ }
1108
+ }
1109
+ }
1110
+ }
1111
+ },
1112
+ "IRValue": {
1113
+ "oneOf": [
1114
+ {
1115
+ "type": "object",
1116
+ "additionalProperties": false,
1117
+ "required": [
1118
+ "kind",
1119
+ "value"
1120
+ ],
1121
+ "properties": {
1122
+ "kind": {
1123
+ "const": "string"
1124
+ },
1125
+ "value": {
1126
+ "type": "string"
1127
+ }
1128
+ }
1129
+ },
1130
+ {
1131
+ "type": "object",
1132
+ "additionalProperties": false,
1133
+ "required": [
1134
+ "kind",
1135
+ "value"
1136
+ ],
1137
+ "properties": {
1138
+ "kind": {
1139
+ "const": "number"
1140
+ },
1141
+ "value": {
1142
+ "type": "number"
1143
+ }
1144
+ }
1145
+ },
1146
+ {
1147
+ "type": "object",
1148
+ "additionalProperties": false,
1149
+ "required": [
1150
+ "kind",
1151
+ "value"
1152
+ ],
1153
+ "properties": {
1154
+ "kind": {
1155
+ "const": "boolean"
1156
+ },
1157
+ "value": {
1158
+ "type": "boolean"
1159
+ }
1160
+ }
1161
+ },
1162
+ {
1163
+ "type": "object",
1164
+ "additionalProperties": false,
1165
+ "required": [
1166
+ "kind"
1167
+ ],
1168
+ "properties": {
1169
+ "kind": {
1170
+ "const": "null"
1171
+ }
1172
+ }
1173
+ },
1174
+ {
1175
+ "type": "object",
1176
+ "additionalProperties": false,
1177
+ "required": [
1178
+ "kind",
1179
+ "elements"
1180
+ ],
1181
+ "properties": {
1182
+ "kind": {
1183
+ "const": "array"
1184
+ },
1185
+ "elements": {
1186
+ "type": "array",
1187
+ "items": {
1188
+ "$ref": "#/definitions/IRValue"
1189
+ }
1190
+ }
1191
+ }
1192
+ },
1193
+ {
1194
+ "type": "object",
1195
+ "additionalProperties": false,
1196
+ "required": [
1197
+ "kind",
1198
+ "properties"
1199
+ ],
1200
+ "properties": {
1201
+ "kind": {
1202
+ "const": "object"
1203
+ },
1204
+ "properties": {
1205
+ "type": "object",
1206
+ "additionalProperties": {
1207
+ "$ref": "#/definitions/IRValue"
1208
+ }
1209
+ }
1210
+ }
1211
+ }
1212
+ ]
1213
+ },
1214
+ "IRExpression": {
1215
+ "oneOf": [
1216
+ {
1217
+ "type": "object",
1218
+ "additionalProperties": false,
1219
+ "required": [
1220
+ "kind",
1221
+ "value"
1222
+ ],
1223
+ "properties": {
1224
+ "kind": {
1225
+ "const": "literal"
1226
+ },
1227
+ "value": {
1228
+ "$ref": "#/definitions/IRValue"
1229
+ }
1230
+ }
1231
+ },
1232
+ {
1233
+ "type": "object",
1234
+ "additionalProperties": false,
1235
+ "required": [
1236
+ "kind",
1237
+ "name"
1238
+ ],
1239
+ "properties": {
1240
+ "kind": {
1241
+ "const": "identifier"
1242
+ },
1243
+ "name": {
1244
+ "type": "string"
1245
+ }
1246
+ }
1247
+ },
1248
+ {
1249
+ "type": "object",
1250
+ "additionalProperties": false,
1251
+ "required": [
1252
+ "kind",
1253
+ "object",
1254
+ "property"
1255
+ ],
1256
+ "properties": {
1257
+ "kind": {
1258
+ "const": "member"
1259
+ },
1260
+ "object": {
1261
+ "$ref": "#/definitions/IRExpression"
1262
+ },
1263
+ "property": {
1264
+ "type": "string"
1265
+ }
1266
+ }
1267
+ },
1268
+ {
1269
+ "type": "object",
1270
+ "additionalProperties": false,
1271
+ "required": [
1272
+ "kind",
1273
+ "operator",
1274
+ "left",
1275
+ "right"
1276
+ ],
1277
+ "properties": {
1278
+ "kind": {
1279
+ "const": "binary"
1280
+ },
1281
+ "operator": {
1282
+ "type": "string"
1283
+ },
1284
+ "left": {
1285
+ "$ref": "#/definitions/IRExpression"
1286
+ },
1287
+ "right": {
1288
+ "$ref": "#/definitions/IRExpression"
1289
+ }
1290
+ }
1291
+ },
1292
+ {
1293
+ "type": "object",
1294
+ "additionalProperties": false,
1295
+ "required": [
1296
+ "kind",
1297
+ "operator",
1298
+ "operand"
1299
+ ],
1300
+ "properties": {
1301
+ "kind": {
1302
+ "const": "unary"
1303
+ },
1304
+ "operator": {
1305
+ "type": "string"
1306
+ },
1307
+ "operand": {
1308
+ "$ref": "#/definitions/IRExpression"
1309
+ }
1310
+ }
1311
+ },
1312
+ {
1313
+ "type": "object",
1314
+ "additionalProperties": false,
1315
+ "required": [
1316
+ "kind",
1317
+ "callee",
1318
+ "args"
1319
+ ],
1320
+ "properties": {
1321
+ "kind": {
1322
+ "const": "call"
1323
+ },
1324
+ "callee": {
1325
+ "$ref": "#/definitions/IRExpression"
1326
+ },
1327
+ "args": {
1328
+ "type": "array",
1329
+ "items": {
1330
+ "$ref": "#/definitions/IRExpression"
1331
+ }
1332
+ }
1333
+ }
1334
+ },
1335
+ {
1336
+ "type": "object",
1337
+ "additionalProperties": false,
1338
+ "required": [
1339
+ "kind",
1340
+ "condition",
1341
+ "consequent",
1342
+ "alternate"
1343
+ ],
1344
+ "properties": {
1345
+ "kind": {
1346
+ "const": "conditional"
1347
+ },
1348
+ "condition": {
1349
+ "$ref": "#/definitions/IRExpression"
1350
+ },
1351
+ "consequent": {
1352
+ "$ref": "#/definitions/IRExpression"
1353
+ },
1354
+ "alternate": {
1355
+ "$ref": "#/definitions/IRExpression"
1356
+ }
1357
+ }
1358
+ },
1359
+ {
1360
+ "type": "object",
1361
+ "additionalProperties": false,
1362
+ "required": [
1363
+ "kind",
1364
+ "elements"
1365
+ ],
1366
+ "properties": {
1367
+ "kind": {
1368
+ "const": "array"
1369
+ },
1370
+ "elements": {
1371
+ "type": "array",
1372
+ "items": {
1373
+ "$ref": "#/definitions/IRExpression"
1374
+ }
1375
+ }
1376
+ }
1377
+ },
1378
+ {
1379
+ "type": "object",
1380
+ "additionalProperties": false,
1381
+ "required": [
1382
+ "kind",
1383
+ "properties"
1384
+ ],
1385
+ "properties": {
1386
+ "kind": {
1387
+ "const": "object"
1388
+ },
1389
+ "properties": {
1390
+ "type": "array",
1391
+ "items": {
1392
+ "type": "object",
1393
+ "additionalProperties": false,
1394
+ "required": [
1395
+ "key",
1396
+ "value"
1397
+ ],
1398
+ "properties": {
1399
+ "key": {
1400
+ "type": "string"
1401
+ },
1402
+ "value": {
1403
+ "$ref": "#/definitions/IRExpression"
1404
+ }
1405
+ }
1406
+ }
1407
+ }
1408
+ }
1409
+ },
1410
+ {
1411
+ "type": "object",
1412
+ "additionalProperties": false,
1413
+ "required": [
1414
+ "kind",
1415
+ "params",
1416
+ "body"
1417
+ ],
1418
+ "properties": {
1419
+ "kind": {
1420
+ "const": "lambda"
1421
+ },
1422
+ "params": {
1423
+ "type": "array",
1424
+ "items": {
1425
+ "type": "string"
1426
+ }
1427
+ },
1428
+ "body": {
1429
+ "$ref": "#/definitions/IRExpression"
1430
+ }
1431
+ }
1432
+ },
1433
+ {
1434
+ "type": "object",
1435
+ "additionalProperties": false,
1436
+ "required": [
1437
+ "kind",
1438
+ "op",
1439
+ "entity",
1440
+ "predicates"
1441
+ ],
1442
+ "properties": {
1443
+ "kind": {
1444
+ "const": "aggregate"
1445
+ },
1446
+ "op": {
1447
+ "const": "count"
1448
+ },
1449
+ "entity": {
1450
+ "type": "string",
1451
+ "description": "Entity whose rows are counted."
1452
+ },
1453
+ "predicates": {
1454
+ "type": "array",
1455
+ "description": "ANDed equality predicates: counted row.<field> == <value>. At least one (the foreign-key match) is expected.",
1456
+ "items": {
1457
+ "type": "object",
1458
+ "additionalProperties": false,
1459
+ "required": ["field", "value"],
1460
+ "properties": {
1461
+ "field": {
1462
+ "type": "string",
1463
+ "description": "Property on the counted entity."
1464
+ },
1465
+ "value": {
1466
+ "$ref": "#/definitions/IRExpression",
1467
+ "description": "Expression evaluated in the surrounding context (reaction params: the event payload)."
1468
+ }
1469
+ }
1470
+ }
1471
+ }
1472
+ }
1473
+ }
1474
+ ]
1475
+ },
1476
+ "ConstraintOutcome": {
1477
+ "type": "object",
1478
+ "additionalProperties": false,
1479
+ "required": [
1480
+ "code",
1481
+ "constraintName",
1482
+ "severity",
1483
+ "formatted",
1484
+ "passed"
1485
+ ],
1486
+ "properties": {
1487
+ "code": {
1488
+ "type": "string",
1489
+ "description": "Stable constraint identifier"
1490
+ },
1491
+ "constraintName": {
1492
+ "type": "string",
1493
+ "description": "Constraint name for reference"
1494
+ },
1495
+ "severity": {
1496
+ "type": "string",
1497
+ "enum": [
1498
+ "ok",
1499
+ "warn",
1500
+ "block"
1501
+ ],
1502
+ "description": "Severity level of the constraint"
1503
+ },
1504
+ "formatted": {
1505
+ "type": "string",
1506
+ "description": "Formatted expression string"
1507
+ },
1508
+ "message": {
1509
+ "type": "string",
1510
+ "description": "Optional message from constraint"
1511
+ },
1512
+ "details": {
1513
+ "type": "object",
1514
+ "additionalProperties": true,
1515
+ "description": "Structured details for UI (resolved values)"
1516
+ },
1517
+ "passed": {
1518
+ "type": "boolean",
1519
+ "description": "Whether the constraint passed"
1520
+ },
1521
+ "overridden": {
1522
+ "type": "boolean",
1523
+ "description": "Whether the constraint was overridden"
1524
+ },
1525
+ "overriddenBy": {
1526
+ "type": "string",
1527
+ "description": "User who authorized the override"
1528
+ },
1529
+ "resolved": {
1530
+ "type": "array",
1531
+ "items": {
1532
+ "type": "object",
1533
+ "required": [
1534
+ "expression",
1535
+ "value"
1536
+ ],
1537
+ "properties": {
1538
+ "expression": {
1539
+ "type": "string"
1540
+ },
1541
+ "value": true
1542
+ }
1543
+ },
1544
+ "description": "Resolved expression values for debugging"
1545
+ }
1546
+ }
1547
+ },
1548
+ "OverrideRequest": {
1549
+ "type": "object",
1550
+ "additionalProperties": false,
1551
+ "required": [
1552
+ "constraintCode",
1553
+ "reason",
1554
+ "authorizedBy",
1555
+ "timestamp"
1556
+ ],
1557
+ "properties": {
1558
+ "constraintCode": {
1559
+ "type": "string",
1560
+ "description": "Constraint code to override"
1561
+ },
1562
+ "reason": {
1563
+ "type": "string",
1564
+ "description": "Reason for the override"
1565
+ },
1566
+ "authorizedBy": {
1567
+ "type": "string",
1568
+ "description": "User authorizing the override"
1569
+ },
1570
+ "timestamp": {
1571
+ "type": "number",
1572
+ "description": "Timestamp of override request"
1573
+ }
1574
+ }
1575
+ },
1576
+ "ConcurrencyConflict": {
1577
+ "type": "object",
1578
+ "additionalProperties": false,
1579
+ "required": [
1580
+ "entityType",
1581
+ "entityId",
1582
+ "expectedVersion",
1583
+ "actualVersion",
1584
+ "conflictCode"
1585
+ ],
1586
+ "properties": {
1587
+ "entityType": {
1588
+ "type": "string",
1589
+ "description": "Type of entity that conflicted"
1590
+ },
1591
+ "entityId": {
1592
+ "type": "string",
1593
+ "description": "ID of the entity instance"
1594
+ },
1595
+ "expectedVersion": {
1596
+ "type": "number",
1597
+ "description": "Expected version number"
1598
+ },
1599
+ "actualVersion": {
1600
+ "type": "number",
1601
+ "description": "Actual version in storage"
1602
+ },
1603
+ "conflictCode": {
1604
+ "type": "string",
1605
+ "description": "Conflict code for categorization"
1606
+ }
1607
+ }
1608
+ },
1609
+ "IRValueObject": {
1610
+ "type": "object",
1611
+ "additionalProperties": false,
1612
+ "required": [
1613
+ "name",
1614
+ "properties"
1615
+ ],
1616
+ "properties": {
1617
+ "name": {
1618
+ "type": "string"
1619
+ },
1620
+ "properties": {
1621
+ "type": "array",
1622
+ "items": {
1623
+ "$ref": "#/definitions/IRProperty"
1624
+ },
1625
+ "description": "Value object properties (immutable, embedded inline in entity properties)"
1626
+ }
1627
+ }
1628
+ },
1629
+ "IRTenant": {
1630
+ "type": "object",
1631
+ "additionalProperties": false,
1632
+ "required": [
1633
+ "property",
1634
+ "type",
1635
+ "contextPath"
1636
+ ],
1637
+ "properties": {
1638
+ "property": {
1639
+ "type": "string",
1640
+ "description": "Property name injected into tenant-scoped entities"
1641
+ },
1642
+ "type": {
1643
+ "$ref": "#/definitions/IRType"
1644
+ },
1645
+ "contextPath": {
1646
+ "type": "string",
1647
+ "description": "Context path to extract tenant value at runtime"
1648
+ }
1649
+ }
1650
+ },
1651
+ "IRReactionRule": {
1652
+ "type": "object",
1653
+ "additionalProperties": false,
1654
+ "required": [
1655
+ "event",
1656
+ "targetEntity",
1657
+ "targetCommand"
1658
+ ],
1659
+ "properties": {
1660
+ "event": {
1661
+ "type": "string",
1662
+ "description": "Name of the triggering event (must match a declared event)"
1663
+ },
1664
+ "targetEntity": {
1665
+ "type": "string",
1666
+ "description": "Entity type on which to invoke the command"
1667
+ },
1668
+ "targetCommand": {
1669
+ "type": "string",
1670
+ "description": "Command name to execute on the target entity"
1671
+ },
1672
+ "resolve": {
1673
+ "$ref": "#/definitions/IRExpression",
1674
+ "description": "Expression evaluated against event payload to resolve the target instance ID. Absent for fanOut reactions (the collection match replaces single-target resolution)."
1675
+ },
1676
+ "fanOut": {
1677
+ "type": "object",
1678
+ "additionalProperties": false,
1679
+ "required": ["matchField", "matchSource"],
1680
+ "properties": {
1681
+ "matchField": {
1682
+ "type": "string",
1683
+ "description": "Field on the target entity to match against matchSource"
1684
+ },
1685
+ "matchSource": {
1686
+ "$ref": "#/definitions/IRExpression",
1687
+ "description": "Expression evaluated against the event payload; the command runs on every target row where row.<matchField> == matchSource"
1688
+ }
1689
+ },
1690
+ "description": "When present, dispatch targetCommand on every targetEntity row matching matchField == matchSource (a 1:N cascade), instead of one resolved target."
1691
+ },
1692
+ "params": {
1693
+ "type": "array",
1694
+ "items": {
1695
+ "$ref": "#/definitions/IRReactionParam"
1696
+ },
1697
+ "description": "Parameter mappings from event payload to command input"
1698
+ },
1699
+ "module": {
1700
+ "type": "string",
1701
+ "description": "Module that declares this reaction"
1702
+ },
1703
+ "entity": {
1704
+ "type": "string",
1705
+ "description": "Entity that declares this reaction (if entity-scoped)"
1706
+ }
1707
+ }
1708
+ },
1709
+ "IRReactionParam": {
1710
+ "type": "object",
1711
+ "additionalProperties": false,
1712
+ "required": [
1713
+ "name",
1714
+ "expression"
1715
+ ],
1716
+ "properties": {
1717
+ "name": {
1718
+ "type": "string",
1719
+ "description": "Target command parameter name"
1720
+ },
1721
+ "expression": {
1722
+ "$ref": "#/definitions/IRExpression",
1723
+ "description": "Expression evaluated against event payload to produce the parameter value"
1724
+ }
1725
+ }
1726
+ },
1727
+ "IRSaga": {
1728
+ "type": "object",
1729
+ "additionalProperties": false,
1730
+ "required": ["name", "steps", "onFailure", "emits"],
1731
+ "properties": {
1732
+ "name": {
1733
+ "type": "string",
1734
+ "description": "Saga name (unique within program)"
1735
+ },
1736
+ "module": {
1737
+ "type": "string",
1738
+ "description": "Module name if defined in a module"
1739
+ },
1740
+ "steps": {
1741
+ "type": "array",
1742
+ "items": {
1743
+ "$ref": "#/definitions/IRSagaStep"
1744
+ },
1745
+ "description": "Ordered saga steps"
1746
+ },
1747
+ "onFailure": {
1748
+ "type": "string",
1749
+ "enum": ["compensate", "abort"],
1750
+ "description": "Failure strategy: compensate runs completed steps in reverse, abort halts without compensation"
1751
+ },
1752
+ "emits": {
1753
+ "type": "array",
1754
+ "items": {
1755
+ "type": "string"
1756
+ },
1757
+ "description": "Lifecycle events emitted by the saga orchestrator"
1758
+ }
1759
+ }
1760
+ },
1761
+ "IRSagaStep": {
1762
+ "type": "object",
1763
+ "additionalProperties": false,
1764
+ "required": ["name", "commandEntity", "command"],
1765
+ "properties": {
1766
+ "name": {
1767
+ "type": "string",
1768
+ "description": "Step identifier (unique within saga)"
1769
+ },
1770
+ "commandEntity": {
1771
+ "type": "string",
1772
+ "description": "Entity on which the forward command is invoked"
1773
+ },
1774
+ "command": {
1775
+ "type": "string",
1776
+ "description": "Forward command name"
1777
+ },
1778
+ "compensateEntity": {
1779
+ "type": "string",
1780
+ "description": "Entity for the compensating command (present only when compensate is declared)"
1781
+ },
1782
+ "compensate": {
1783
+ "type": "string",
1784
+ "description": "Compensating command name (absent = no compensation for this step)"
1785
+ }
1786
+ }
1787
+ },
1788
+ "IRRolePermission": {
1789
+ "type": "object",
1790
+ "additionalProperties": false,
1791
+ "required": [
1792
+ "action"
1793
+ ],
1794
+ "properties": {
1795
+ "action": {
1796
+ "type": "string",
1797
+ "minLength": 1,
1798
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
1799
+ "description": "Permission action. `all` is the wildcard and `read`/`write`/`delete`/`execute` are the conventional actions with built-in semantics (command-execution RBAC checks `execute`/`all`). Any other identifier is a custom, capability-style permission token, opaque to the engine and matched exactly (e.g. `salesAccess`)."
1800
+ },
1801
+ "target": {
1802
+ "type": "string",
1803
+ "description": "Optional command/entity name to narrow the permission scope"
1804
+ }
1805
+ }
1806
+ },
1807
+ "IRRole": {
1808
+ "type": "object",
1809
+ "additionalProperties": false,
1810
+ "required": [
1811
+ "name",
1812
+ "allow",
1813
+ "deny",
1814
+ "effectivePermissions"
1815
+ ],
1816
+ "properties": {
1817
+ "name": {
1818
+ "type": "string",
1819
+ "description": "Role name (unique within program)"
1820
+ },
1821
+ "module": {
1822
+ "type": "string",
1823
+ "description": "Module name if defined in a module"
1824
+ },
1825
+ "parent": {
1826
+ "type": "string",
1827
+ "description": "Parent role name for inheritance (single parent)"
1828
+ },
1829
+ "allow": {
1830
+ "type": "array",
1831
+ "items": {
1832
+ "$ref": "#/definitions/IRRolePermission"
1833
+ },
1834
+ "description": "Declared allow permissions (sorted)"
1835
+ },
1836
+ "deny": {
1837
+ "type": "array",
1838
+ "items": {
1839
+ "$ref": "#/definitions/IRRolePermission"
1840
+ },
1841
+ "description": "Declared deny permissions (sorted). Deny is absolute and overrides inherited allows."
1842
+ },
1843
+ "effectivePermissions": {
1844
+ "type": "array",
1845
+ "items": {
1846
+ "$ref": "#/definitions/IRRolePermission"
1847
+ },
1848
+ "description": "Compiler-computed flattened permission set after inheritance + deny resolution. Deterministic, sorted."
1849
+ }
1850
+ }
1851
+ },
1852
+ "IRWebhookSignature": {
1853
+ "type": "object",
1854
+ "required": ["algorithm", "header", "secret"],
1855
+ "additionalProperties": false,
1856
+ "properties": {
1857
+ "algorithm": {
1858
+ "type": "string",
1859
+ "enum": ["hmac-sha256", "hmac-sha512"],
1860
+ "description": "HMAC signature algorithm for payload verification"
1861
+ },
1862
+ "header": {
1863
+ "type": "string",
1864
+ "description": "HTTP header containing the signature value (e.g. \"X-Hub-Signature-256\")"
1865
+ },
1866
+ "secret": {
1867
+ "type": "string",
1868
+ "description": "Context path to extract the shared secret at runtime (e.g. \"context.webhookSecret\")"
1869
+ }
1870
+ }
1871
+ },
1872
+ "IRWebhookParam": {
1873
+ "type": "object",
1874
+ "required": ["name", "expression"],
1875
+ "additionalProperties": false,
1876
+ "properties": {
1877
+ "name": { "type": "string" },
1878
+ "expression": { "$ref": "#/definitions/IRExpression" }
1879
+ }
1880
+ },
1881
+ "IRWebhook": {
1882
+ "type": "object",
1883
+ "required": ["name", "path", "command"],
1884
+ "additionalProperties": false,
1885
+ "properties": {
1886
+ "name": { "type": "string" },
1887
+ "module": { "type": "string" },
1888
+ "path": {
1889
+ "type": "string",
1890
+ "description": "HTTP path pattern for this webhook route (e.g. \"/webhooks/stripe\")"
1891
+ },
1892
+ "method": {
1893
+ "type": "string",
1894
+ "description": "HTTP method to match. Defaults to POST at runtime."
1895
+ },
1896
+ "command": { "type": "string" },
1897
+ "entity": { "type": "string", "description": "Optional entity context for entity-scoped commands" },
1898
+ "signature": { "$ref": "#/definitions/IRWebhookSignature" },
1899
+ "idempotencyHeader": {
1900
+ "type": "string",
1901
+ "description": "HTTP header name from which to extract the idempotency key for deduplication"
1902
+ },
1903
+ "transform": {
1904
+ "type": "array",
1905
+ "items": { "$ref": "#/definitions/IRWebhookParam" },
1906
+ "description": "Payload transformation expressions: maps command parameter names to payload field expressions"
1907
+ }
1908
+ }
1909
+ },
1910
+ "IRRetry": {
1911
+ "type": "object",
1912
+ "required": ["maxAttempts", "backoff", "delayMs"],
1913
+ "additionalProperties": false,
1914
+ "properties": {
1915
+ "maxAttempts": {
1916
+ "type": "number",
1917
+ "description": "Maximum number of retry attempts"
1918
+ },
1919
+ "backoff": {
1920
+ "type": "string",
1921
+ "enum": ["fixed", "linear", "exponential"],
1922
+ "description": "Backoff strategy for retry delays"
1923
+ },
1924
+ "delayMs": {
1925
+ "type": "number",
1926
+ "description": "Base delay in milliseconds"
1927
+ },
1928
+ "jitter": {
1929
+ "type": "boolean",
1930
+ "description": "Whether to apply jitter to retry delays"
1931
+ },
1932
+ "retryOn": {
1933
+ "type": "array",
1934
+ "items": { "type": "string" },
1935
+ "description": "Error codes that trigger a retry (e.g. CONCURRENCY_CONFLICT, TIMEOUT)"
1936
+ }
1937
+ }
1938
+ },
1939
+ "IRRateLimit": {
1940
+ "type": "object",
1941
+ "required": ["maxRequests", "windowMs", "scope"],
1942
+ "additionalProperties": false,
1943
+ "properties": {
1944
+ "maxRequests": {
1945
+ "type": "number",
1946
+ "description": "Maximum number of requests per window"
1947
+ },
1948
+ "windowMs": {
1949
+ "type": "number",
1950
+ "description": "Time window in milliseconds"
1951
+ },
1952
+ "scope": {
1953
+ "type": "string",
1954
+ "enum": ["user", "tenant", "global"],
1955
+ "description": "Scope of rate limiting: user, tenant, or global"
1956
+ },
1957
+ "burstAllowance": {
1958
+ "type": "number",
1959
+ "description": "Burst allowance: additive requests above maxRequests"
1960
+ }
1961
+ }
1962
+ },
1963
+ "IRTrigger": {
1964
+ "type": "object",
1965
+ "required": ["kind"],
1966
+ "additionalProperties": false,
1967
+ "properties": {
1968
+ "kind": {
1969
+ "type": "string",
1970
+ "enum": ["cron", "interval", "every"],
1971
+ "description": "Trigger type: cron (expression-based), interval (milliseconds), or every (duration)"
1972
+ },
1973
+ "cron": {
1974
+ "type": "string",
1975
+ "description": "Cron expression (5 fields: minute hour day month dayOfWeek) when kind='cron'"
1976
+ },
1977
+ "durationMs": {
1978
+ "type": "number",
1979
+ "description": "Duration in milliseconds for interval or every triggers"
1980
+ }
1981
+ }
1982
+ },
1983
+ "IRScheduleParam": {
1984
+ "type": "object",
1985
+ "required": ["name", "value"],
1986
+ "additionalProperties": false,
1987
+ "properties": {
1988
+ "name": {
1989
+ "type": "string",
1990
+ "description": "Parameter name"
1991
+ },
1992
+ "value": {
1993
+ "$ref": "#/definitions/IRValue",
1994
+ "description": "Parameter value"
1995
+ }
1996
+ }
1997
+ },
1998
+ "IRSchedule": {
1999
+ "type": "object",
2000
+ "required": ["name", "commandName", "trigger"],
2001
+ "additionalProperties": false,
2002
+ "properties": {
2003
+ "name": {
2004
+ "type": "string",
2005
+ "description": "Schedule name (unique within program)"
2006
+ },
2007
+ "module": {
2008
+ "type": "string",
2009
+ "description": "Module name if defined in a module"
2010
+ },
2011
+ "entityName": {
2012
+ "type": "string",
2013
+ "description": "Entity on which the command is invoked (absent for global commands)"
2014
+ },
2015
+ "commandName": {
2016
+ "type": "string",
2017
+ "description": "Command name to invoke"
2018
+ },
2019
+ "trigger": {
2020
+ "$ref": "#/definitions/IRTrigger",
2021
+ "description": "Trigger configuration (cron, interval, or every)"
2022
+ },
2023
+ "params": {
2024
+ "type": "array",
2025
+ "items": {
2026
+ "$ref": "#/definitions/IRScheduleParam"
2027
+ },
2028
+ "description": "Parameters bound to the scheduled command"
2029
+ }
2030
+ }
2031
+ }
2032
+ }
2033
+ }