@agentlang/agentmanager 0.0.3 → 0.0.4

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 (815) hide show
  1. package/dist/apps/monolith/apps/agentcraft/src/agentcraft-core.module.d.ts +4 -0
  2. package/dist/apps/monolith/apps/agentcraft/src/agentcraft-core.module.js +49 -0
  3. package/dist/apps/monolith/apps/agentcraft/src/agentcraft-core.module.js.map +1 -0
  4. package/dist/apps/monolith/apps/agentcraft/src/architect/architect.controller.d.ts +17 -0
  5. package/dist/apps/monolith/apps/agentcraft/src/architect/architect.controller.js +87 -0
  6. package/dist/apps/monolith/apps/agentcraft/src/architect/architect.controller.js.map +1 -0
  7. package/dist/apps/monolith/apps/agentcraft/src/architect/architect.module.d.ts +2 -0
  8. package/dist/apps/monolith/apps/agentcraft/src/architect/architect.module.js +24 -0
  9. package/dist/apps/monolith/apps/agentcraft/src/architect/architect.module.js.map +1 -0
  10. package/dist/apps/monolith/apps/agentcraft/src/architect/architect.service.d.ts +34 -0
  11. package/dist/apps/monolith/apps/agentcraft/src/architect/architect.service.js +170 -0
  12. package/dist/apps/monolith/apps/agentcraft/src/architect/architect.service.js.map +1 -0
  13. package/dist/apps/monolith/apps/agentcraft/src/architect/architect.store.d.ts +25 -0
  14. package/dist/apps/monolith/apps/agentcraft/src/architect/architect.store.js +50 -0
  15. package/dist/apps/monolith/apps/agentcraft/src/architect/architect.store.js.map +1 -0
  16. package/dist/apps/monolith/apps/agentcraft/src/architect/dto/ingest-signal.dto.d.ts +40 -0
  17. package/dist/apps/monolith/apps/agentcraft/src/architect/dto/ingest-signal.dto.js +24 -0
  18. package/dist/apps/monolith/apps/agentcraft/src/architect/dto/ingest-signal.dto.js.map +1 -0
  19. package/dist/apps/monolith/apps/agentcraft/src/architect/interfaces/architect.interfaces.d.ts +21 -0
  20. package/dist/apps/monolith/apps/agentcraft/src/architect/interfaces/architect.interfaces.js +3 -0
  21. package/dist/apps/monolith/apps/agentcraft/src/architect/interfaces/architect.interfaces.js.map +1 -0
  22. package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.controller.d.ts +17 -0
  23. package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.controller.js +117 -0
  24. package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.controller.js.map +1 -0
  25. package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.module.d.ts +2 -0
  26. package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.module.js +22 -0
  27. package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.module.js.map +1 -0
  28. package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.service.d.ts +48 -0
  29. package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.service.js +121 -0
  30. package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.service.js.map +1 -0
  31. package/dist/apps/monolith/apps/agentcraft/src/autonomous/dto/run-autonomous.dto.d.ts +26 -0
  32. package/dist/apps/monolith/apps/agentcraft/src/autonomous/dto/run-autonomous.dto.js +20 -0
  33. package/dist/apps/monolith/apps/agentcraft/src/autonomous/dto/run-autonomous.dto.js.map +1 -0
  34. package/dist/apps/monolith/apps/agentcraft/src/autonomous/dto/watch-kb.dto.d.ts +18 -0
  35. package/dist/apps/monolith/apps/agentcraft/src/autonomous/dto/watch-kb.dto.js +20 -0
  36. package/dist/apps/monolith/apps/agentcraft/src/autonomous/dto/watch-kb.dto.js.map +1 -0
  37. package/dist/apps/monolith/apps/agentcraft/src/health/health.controller.d.ts +7 -0
  38. package/dist/apps/monolith/apps/agentcraft/src/health/health.controller.js +41 -0
  39. package/dist/apps/monolith/apps/agentcraft/src/health/health.controller.js.map +1 -0
  40. package/dist/apps/monolith/apps/agentcraft/src/health/health.module.d.ts +2 -0
  41. package/dist/apps/monolith/apps/agentcraft/src/health/health.module.js +22 -0
  42. package/dist/apps/monolith/apps/agentcraft/src/health/health.module.js.map +1 -0
  43. package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/create-resolver.dto.d.ts +22 -0
  44. package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/create-resolver.dto.js +18 -0
  45. package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/create-resolver.dto.js.map +1 -0
  46. package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/install-registry.dto.d.ts +14 -0
  47. package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/install-registry.dto.js +14 -0
  48. package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/install-registry.dto.js.map +1 -0
  49. package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/search-registry-query.dto.d.ts +10 -0
  50. package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/search-registry-query.dto.js +12 -0
  51. package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/search-registry-query.dto.js.map +1 -0
  52. package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/submit-action.dto.d.ts +1 -0
  53. package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/submit-action.dto.js +7 -0
  54. package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/submit-action.dto.js.map +1 -0
  55. package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver-session.store.d.ts +19 -0
  56. package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver-session.store.js +39 -0
  57. package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver-session.store.js.map +1 -0
  58. package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.controller.d.ts +36 -0
  59. package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.controller.js +121 -0
  60. package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.controller.js.map +1 -0
  61. package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.module.d.ts +2 -0
  62. package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.module.js +23 -0
  63. package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.module.js.map +1 -0
  64. package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.service.d.ts +42 -0
  65. package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.service.js +101 -0
  66. package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.service.js.map +1 -0
  67. package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/create-session.dto.d.ts +18 -0
  68. package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/create-session.dto.js +16 -0
  69. package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/create-session.dto.js.map +1 -0
  70. package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/submit-action.dto.d.ts +1 -0
  71. package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/submit-action.dto.js +7 -0
  72. package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/submit-action.dto.js.map +1 -0
  73. package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/submit-idea.dto.d.ts +10 -0
  74. package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/submit-idea.dto.js +12 -0
  75. package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/submit-idea.dto.js.map +1 -0
  76. package/dist/apps/monolith/apps/agentcraft/src/sessions/session.store.d.ts +19 -0
  77. package/dist/apps/monolith/apps/agentcraft/src/sessions/session.store.js +39 -0
  78. package/dist/apps/monolith/apps/agentcraft/src/sessions/session.store.js.map +1 -0
  79. package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.controller.d.ts +47 -0
  80. package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.controller.js +139 -0
  81. package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.controller.js.map +1 -0
  82. package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.module.d.ts +2 -0
  83. package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.module.js +23 -0
  84. package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.module.js.map +1 -0
  85. package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.service.d.ts +60 -0
  86. package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.service.js +203 -0
  87. package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.service.js.map +1 -0
  88. package/dist/apps/monolith/apps/agentmanager/src/agentmanager-core.module.d.ts +4 -0
  89. package/dist/apps/monolith/apps/agentmanager/src/agentmanager-core.module.js +54 -0
  90. package/dist/apps/monolith/apps/agentmanager/src/agentmanager-core.module.js.map +1 -0
  91. package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.controller.d.ts +9 -0
  92. package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.controller.js +50 -0
  93. package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.controller.js.map +1 -0
  94. package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.module.d.ts +2 -0
  95. package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.module.js +23 -0
  96. package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.module.js.map +1 -0
  97. package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.service.d.ts +17 -0
  98. package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.service.js +169 -0
  99. package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.service.js.map +1 -0
  100. package/dist/apps/monolith/apps/agentmanager/src/deployments/errors/deployment.errors.d.ts +7 -0
  101. package/dist/apps/monolith/apps/agentmanager/src/deployments/errors/deployment.errors.js +17 -0
  102. package/dist/apps/monolith/apps/agentmanager/src/deployments/errors/deployment.errors.js.map +1 -0
  103. package/dist/apps/monolith/apps/agentmanager/src/deployments/interfaces/deployment.interfaces.d.ts +22 -0
  104. package/dist/apps/monolith/apps/agentmanager/src/deployments/interfaces/deployment.interfaces.js +3 -0
  105. package/dist/apps/monolith/apps/agentmanager/src/deployments/interfaces/deployment.interfaces.js.map +1 -0
  106. package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.controller.d.ts +7 -0
  107. package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.controller.js +41 -0
  108. package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.controller.js.map +1 -0
  109. package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.module.d.ts +2 -0
  110. package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.module.js +41 -0
  111. package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.module.js.map +1 -0
  112. package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.service.d.ts +17 -0
  113. package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.service.js +160 -0
  114. package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.service.js.map +1 -0
  115. package/dist/apps/monolith/apps/agentmanager/src/discovery/dto/discover.dto.d.ts +10 -0
  116. package/dist/apps/monolith/apps/agentmanager/src/discovery/dto/discover.dto.js +12 -0
  117. package/dist/apps/monolith/apps/agentmanager/src/discovery/dto/discover.dto.js.map +1 -0
  118. package/dist/apps/monolith/apps/agentmanager/src/discovery/interfaces/discovery.interfaces.d.ts +21 -0
  119. package/dist/apps/monolith/apps/agentmanager/src/discovery/interfaces/discovery.interfaces.js +3 -0
  120. package/dist/apps/monolith/apps/agentmanager/src/discovery/interfaces/discovery.interfaces.js.map +1 -0
  121. package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/anthropic-llm.service.d.ts +8 -0
  122. package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/anthropic-llm.service.js +67 -0
  123. package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/anthropic-llm.service.js.map +1 -0
  124. package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/llm-provider.interface.d.ts +14 -0
  125. package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/llm-provider.interface.js +5 -0
  126. package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/llm-provider.interface.js.map +1 -0
  127. package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/llm.errors.d.ts +4 -0
  128. package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/llm.errors.js +11 -0
  129. package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/llm.errors.js.map +1 -0
  130. package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/openai-llm.service.d.ts +8 -0
  131. package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/openai-llm.service.js +69 -0
  132. package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/openai-llm.service.js.map +1 -0
  133. package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-config.dto.d.ts +10 -0
  134. package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-config.dto.js +12 -0
  135. package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-config.dto.js.map +1 -0
  136. package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-module.dto.d.ts +10 -0
  137. package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-module.dto.js +12 -0
  138. package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-module.dto.js.map +1 -0
  139. package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-package.dto.d.ts +16 -0
  140. package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-package.dto.js +17 -0
  141. package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-package.dto.js.map +1 -0
  142. package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.controller.d.ts +20 -0
  143. package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.controller.js +130 -0
  144. package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.controller.js.map +1 -0
  145. package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.module.d.ts +2 -0
  146. package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.module.js +23 -0
  147. package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.module.js.map +1 -0
  148. package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.service.d.ts +13 -0
  149. package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.service.js +54 -0
  150. package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.service.js.map +1 -0
  151. package/dist/apps/monolith/apps/agentmanager/src/employees/dto/register-employee.dto.d.ts +12 -0
  152. package/dist/apps/monolith/apps/agentmanager/src/employees/dto/register-employee.dto.js +13 -0
  153. package/dist/apps/monolith/apps/agentmanager/src/employees/dto/register-employee.dto.js.map +1 -0
  154. package/dist/apps/monolith/apps/agentmanager/src/employees/employees.controller.d.ts +12 -0
  155. package/dist/apps/monolith/apps/agentmanager/src/employees/employees.controller.js +76 -0
  156. package/dist/apps/monolith/apps/agentmanager/src/employees/employees.controller.js.map +1 -0
  157. package/dist/apps/monolith/apps/agentmanager/src/employees/employees.module.d.ts +2 -0
  158. package/dist/apps/monolith/apps/agentmanager/src/employees/employees.module.js +23 -0
  159. package/dist/apps/monolith/apps/agentmanager/src/employees/employees.module.js.map +1 -0
  160. package/dist/apps/monolith/apps/agentmanager/src/employees/employees.service.d.ts +9 -0
  161. package/dist/apps/monolith/apps/agentmanager/src/employees/employees.service.js +42 -0
  162. package/dist/apps/monolith/apps/agentmanager/src/employees/employees.service.js.map +1 -0
  163. package/dist/apps/monolith/apps/agentmanager/src/health/health.controller.d.ts +7 -0
  164. package/dist/apps/monolith/apps/agentmanager/src/health/health.controller.js +41 -0
  165. package/dist/apps/monolith/apps/agentmanager/src/health/health.controller.js.map +1 -0
  166. package/dist/apps/monolith/apps/agentmanager/src/health/health.module.d.ts +2 -0
  167. package/dist/apps/monolith/apps/agentmanager/src/health/health.module.js +22 -0
  168. package/dist/apps/monolith/apps/agentmanager/src/health/health.module.js.map +1 -0
  169. package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/list-messages-query.dto.d.ts +30 -0
  170. package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/list-messages-query.dto.js +14 -0
  171. package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/list-messages-query.dto.js.map +1 -0
  172. package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/push-message.dto.d.ts +80 -0
  173. package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/push-message.dto.js +49 -0
  174. package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/push-message.dto.js.map +1 -0
  175. package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/respond-message.dto.d.ts +12 -0
  176. package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/respond-message.dto.js +13 -0
  177. package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/respond-message.dto.js.map +1 -0
  178. package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.controller.d.ts +15 -0
  179. package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.controller.js +103 -0
  180. package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.controller.js.map +1 -0
  181. package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.module.d.ts +2 -0
  182. package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.module.js +23 -0
  183. package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.module.js.map +1 -0
  184. package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.service.d.ts +16 -0
  185. package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.service.js +173 -0
  186. package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.service.js.map +1 -0
  187. package/dist/apps/monolith/apps/agentmanager/src/projects/dto/create-project.dto.d.ts +14 -0
  188. package/dist/apps/monolith/apps/agentmanager/src/projects/dto/create-project.dto.js +14 -0
  189. package/dist/apps/monolith/apps/agentmanager/src/projects/dto/create-project.dto.js.map +1 -0
  190. package/dist/apps/monolith/apps/agentmanager/src/projects/projects.controller.d.ts +17 -0
  191. package/dist/apps/monolith/apps/agentmanager/src/projects/projects.controller.js +73 -0
  192. package/dist/apps/monolith/apps/agentmanager/src/projects/projects.controller.js.map +1 -0
  193. package/dist/apps/monolith/apps/agentmanager/src/projects/projects.module.d.ts +2 -0
  194. package/dist/apps/monolith/apps/agentmanager/src/projects/projects.module.js +23 -0
  195. package/dist/apps/monolith/apps/agentmanager/src/projects/projects.module.js.map +1 -0
  196. package/dist/apps/monolith/apps/agentmanager/src/projects/projects.service.d.ts +11 -0
  197. package/dist/apps/monolith/apps/agentmanager/src/projects/projects.service.js +39 -0
  198. package/dist/apps/monolith/apps/agentmanager/src/projects/projects.service.js.map +1 -0
  199. package/dist/apps/monolith/apps/fabric/src/ai-agent/ai-agent.module.d.ts +2 -0
  200. package/dist/apps/monolith/apps/fabric/src/ai-agent/ai-agent.module.js +82 -0
  201. package/dist/apps/monolith/apps/fabric/src/ai-agent/ai-agent.module.js.map +1 -0
  202. package/dist/apps/monolith/apps/fabric/src/ai-agent/ai-agent.service.d.ts +63 -0
  203. package/dist/apps/monolith/apps/fabric/src/ai-agent/ai-agent.service.js +295 -0
  204. package/dist/apps/monolith/apps/fabric/src/ai-agent/ai-agent.service.js.map +1 -0
  205. package/dist/apps/monolith/apps/fabric/src/ai-agent/probe-investigation.types.d.ts +19 -0
  206. package/dist/apps/monolith/apps/fabric/src/ai-agent/probe-investigation.types.js +3 -0
  207. package/dist/apps/monolith/apps/fabric/src/ai-agent/probe-investigation.types.js.map +1 -0
  208. package/dist/apps/monolith/apps/fabric/src/auth/current-user.decorator.d.ts +2 -0
  209. package/dist/apps/monolith/apps/fabric/src/auth/current-user.decorator.js +11 -0
  210. package/dist/apps/monolith/apps/fabric/src/auth/current-user.decorator.js.map +1 -0
  211. package/dist/apps/monolith/apps/fabric/src/auth/request-user.d.ts +4 -0
  212. package/dist/apps/monolith/apps/fabric/src/auth/request-user.js +3 -0
  213. package/dist/apps/monolith/apps/fabric/src/auth/request-user.js.map +1 -0
  214. package/dist/apps/monolith/apps/fabric/src/config/configuration.d.ts +57 -0
  215. package/dist/apps/monolith/apps/fabric/src/config/configuration.js +185 -0
  216. package/dist/apps/monolith/apps/fabric/src/config/configuration.js.map +1 -0
  217. package/dist/apps/monolith/apps/fabric/src/database/entities/deployment-event.entity.d.ts +11 -0
  218. package/dist/apps/monolith/apps/fabric/src/database/entities/deployment-event.entity.js +67 -0
  219. package/dist/apps/monolith/apps/fabric/src/database/entities/deployment-event.entity.js.map +1 -0
  220. package/dist/apps/monolith/apps/fabric/src/database/entities/environment.entity.d.ts +9 -0
  221. package/dist/apps/monolith/apps/fabric/src/database/entities/environment.entity.js +55 -0
  222. package/dist/apps/monolith/apps/fabric/src/database/entities/environment.entity.js.map +1 -0
  223. package/dist/apps/monolith/apps/fabric/src/database/entities/index.d.ts +8 -0
  224. package/dist/apps/monolith/apps/fabric/src/database/entities/index.js +24 -0
  225. package/dist/apps/monolith/apps/fabric/src/database/entities/index.js.map +1 -0
  226. package/dist/apps/monolith/apps/fabric/src/database/entities/project.entity.d.ts +9 -0
  227. package/dist/apps/monolith/apps/fabric/src/database/entities/project.entity.js +55 -0
  228. package/dist/apps/monolith/apps/fabric/src/database/entities/project.entity.js.map +1 -0
  229. package/dist/apps/monolith/apps/fabric/src/database/entities/runtime.entity.d.ts +19 -0
  230. package/dist/apps/monolith/apps/fabric/src/database/entities/runtime.entity.js +105 -0
  231. package/dist/apps/monolith/apps/fabric/src/database/entities/runtime.entity.js.map +1 -0
  232. package/dist/apps/monolith/apps/fabric/src/database/entities/user-config.entity.d.ts +8 -0
  233. package/dist/apps/monolith/apps/fabric/src/database/entities/user-config.entity.js +50 -0
  234. package/dist/apps/monolith/apps/fabric/src/database/entities/user-config.entity.js.map +1 -0
  235. package/dist/apps/monolith/apps/fabric/src/database/entities/version.entity.d.ts +8 -0
  236. package/dist/apps/monolith/apps/fabric/src/database/entities/version.entity.js +50 -0
  237. package/dist/apps/monolith/apps/fabric/src/database/entities/version.entity.js.map +1 -0
  238. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.controller.d.ts +8 -0
  239. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.controller.js +49 -0
  240. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.controller.js.map +1 -0
  241. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.module.d.ts +2 -0
  242. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.module.js +24 -0
  243. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.module.js.map +1 -0
  244. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.service.d.ts +25 -0
  245. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.service.js +50 -0
  246. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.service.js.map +1 -0
  247. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.store.d.ts +28 -0
  248. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.store.js +132 -0
  249. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.store.js.map +1 -0
  250. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.types.d.ts +12 -0
  251. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.types.js +3 -0
  252. package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.types.js.map +1 -0
  253. package/dist/apps/monolith/apps/fabric/src/employees/dto/deploy.dto.d.ts +124 -0
  254. package/dist/apps/monolith/apps/fabric/src/employees/dto/deploy.dto.js +62 -0
  255. package/dist/apps/monolith/apps/fabric/src/employees/dto/deploy.dto.js.map +1 -0
  256. package/dist/apps/monolith/apps/fabric/src/employees/employees.controller.d.ts +38 -0
  257. package/dist/apps/monolith/apps/fabric/src/employees/employees.controller.js +222 -0
  258. package/dist/apps/monolith/apps/fabric/src/employees/employees.controller.js.map +1 -0
  259. package/dist/apps/monolith/apps/fabric/src/employees/employees.module.d.ts +2 -0
  260. package/dist/apps/monolith/apps/fabric/src/employees/employees.module.js +45 -0
  261. package/dist/apps/monolith/apps/fabric/src/employees/employees.module.js.map +1 -0
  262. package/dist/apps/monolith/apps/fabric/src/employees/employees.service.d.ts +81 -0
  263. package/dist/apps/monolith/apps/fabric/src/employees/employees.service.js +952 -0
  264. package/dist/apps/monolith/apps/fabric/src/employees/employees.service.js.map +1 -0
  265. package/dist/apps/monolith/apps/fabric/src/employees/employees.types.d.ts +43 -0
  266. package/dist/apps/monolith/apps/fabric/src/employees/employees.types.js +12 -0
  267. package/dist/apps/monolith/apps/fabric/src/employees/employees.types.js.map +1 -0
  268. package/dist/apps/monolith/apps/fabric/src/employees/errors/employee-deployment.errors.d.ts +25 -0
  269. package/dist/apps/monolith/apps/fabric/src/employees/errors/employee-deployment.errors.js +54 -0
  270. package/dist/apps/monolith/apps/fabric/src/employees/errors/employee-deployment.errors.js.map +1 -0
  271. package/dist/apps/monolith/apps/fabric/src/employees/runtime.store.d.ts +52 -0
  272. package/dist/apps/monolith/apps/fabric/src/employees/runtime.store.js +222 -0
  273. package/dist/apps/monolith/apps/fabric/src/employees/runtime.store.js.map +1 -0
  274. package/dist/apps/monolith/apps/fabric/src/environments/dto/environment.dto.d.ts +48 -0
  275. package/dist/apps/monolith/apps/fabric/src/environments/dto/environment.dto.js +25 -0
  276. package/dist/apps/monolith/apps/fabric/src/environments/dto/environment.dto.js.map +1 -0
  277. package/dist/apps/monolith/apps/fabric/src/environments/environments.controller.d.ts +13 -0
  278. package/dist/apps/monolith/apps/fabric/src/environments/environments.controller.js +82 -0
  279. package/dist/apps/monolith/apps/fabric/src/environments/environments.controller.js.map +1 -0
  280. package/dist/apps/monolith/apps/fabric/src/environments/environments.module.d.ts +2 -0
  281. package/dist/apps/monolith/apps/fabric/src/environments/environments.module.js +24 -0
  282. package/dist/apps/monolith/apps/fabric/src/environments/environments.module.js.map +1 -0
  283. package/dist/apps/monolith/apps/fabric/src/environments/environments.service.d.ts +24 -0
  284. package/dist/apps/monolith/apps/fabric/src/environments/environments.service.js +82 -0
  285. package/dist/apps/monolith/apps/fabric/src/environments/environments.service.js.map +1 -0
  286. package/dist/apps/monolith/apps/fabric/src/environments/environments.store.d.ts +22 -0
  287. package/dist/apps/monolith/apps/fabric/src/environments/environments.store.js +131 -0
  288. package/dist/apps/monolith/apps/fabric/src/environments/environments.store.js.map +1 -0
  289. package/dist/apps/monolith/apps/fabric/src/environments/environments.types.d.ts +10 -0
  290. package/dist/apps/monolith/apps/fabric/src/environments/environments.types.js +3 -0
  291. package/dist/apps/monolith/apps/fabric/src/environments/environments.types.js.map +1 -0
  292. package/dist/apps/monolith/apps/fabric/src/environments/errors/environment.errors.d.ts +7 -0
  293. package/dist/apps/monolith/apps/fabric/src/environments/errors/environment.errors.js +18 -0
  294. package/dist/apps/monolith/apps/fabric/src/environments/errors/environment.errors.js.map +1 -0
  295. package/dist/apps/monolith/apps/fabric/src/fabric-core.module.d.ts +4 -0
  296. package/dist/apps/monolith/apps/fabric/src/fabric-core.module.js +57 -0
  297. package/dist/apps/monolith/apps/fabric/src/fabric-core.module.js.map +1 -0
  298. package/dist/apps/monolith/apps/fabric/src/health/health.controller.d.ts +8 -0
  299. package/dist/apps/monolith/apps/fabric/src/health/health.controller.js +42 -0
  300. package/dist/apps/monolith/apps/fabric/src/health/health.controller.js.map +1 -0
  301. package/dist/apps/monolith/apps/fabric/src/health/health.module.d.ts +2 -0
  302. package/dist/apps/monolith/apps/fabric/src/health/health.module.js +25 -0
  303. package/dist/apps/monolith/apps/fabric/src/health/health.module.js.map +1 -0
  304. package/dist/apps/monolith/apps/fabric/src/health/provider-health.indicator.d.ts +7 -0
  305. package/dist/apps/monolith/apps/fabric/src/health/provider-health.indicator.js +42 -0
  306. package/dist/apps/monolith/apps/fabric/src/health/provider-health.indicator.js.map +1 -0
  307. package/dist/apps/monolith/apps/fabric/src/healthcheck/healthcheck.module.d.ts +2 -0
  308. package/dist/apps/monolith/apps/fabric/src/healthcheck/healthcheck.module.js +37 -0
  309. package/dist/apps/monolith/apps/fabric/src/healthcheck/healthcheck.module.js.map +1 -0
  310. package/dist/apps/monolith/apps/fabric/src/healthcheck/healthcheck.service.d.ts +40 -0
  311. package/dist/apps/monolith/apps/fabric/src/healthcheck/healthcheck.service.js +392 -0
  312. package/dist/apps/monolith/apps/fabric/src/healthcheck/healthcheck.service.js.map +1 -0
  313. package/dist/apps/monolith/apps/fabric/src/logs/logs.module.d.ts +2 -0
  314. package/dist/apps/monolith/apps/fabric/src/logs/logs.module.js +23 -0
  315. package/dist/apps/monolith/apps/fabric/src/logs/logs.module.js.map +1 -0
  316. package/dist/apps/monolith/apps/fabric/src/logs/logs.service.d.ts +22 -0
  317. package/dist/apps/monolith/apps/fabric/src/logs/logs.service.js +167 -0
  318. package/dist/apps/monolith/apps/fabric/src/logs/logs.service.js.map +1 -0
  319. package/dist/apps/monolith/apps/fabric/src/notifications/notifications.module.d.ts +2 -0
  320. package/dist/apps/monolith/apps/fabric/src/notifications/notifications.module.js +70 -0
  321. package/dist/apps/monolith/apps/fabric/src/notifications/notifications.module.js.map +1 -0
  322. package/dist/apps/monolith/apps/fabric/src/notifications/notifications.service.d.ts +35 -0
  323. package/dist/apps/monolith/apps/fabric/src/notifications/notifications.service.js +122 -0
  324. package/dist/apps/monolith/apps/fabric/src/notifications/notifications.service.js.map +1 -0
  325. package/dist/apps/monolith/apps/fabric/src/project-source/errors/project-source.errors.d.ts +4 -0
  326. package/dist/apps/monolith/apps/fabric/src/project-source/errors/project-source.errors.js +12 -0
  327. package/dist/apps/monolith/apps/fabric/src/project-source/errors/project-source.errors.js.map +1 -0
  328. package/dist/apps/monolith/apps/fabric/src/project-source/project-source.module.d.ts +2 -0
  329. package/dist/apps/monolith/apps/fabric/src/project-source/project-source.module.js +21 -0
  330. package/dist/apps/monolith/apps/fabric/src/project-source/project-source.module.js.map +1 -0
  331. package/dist/apps/monolith/apps/fabric/src/project-source/project-source.service.d.ts +12 -0
  332. package/dist/apps/monolith/apps/fabric/src/project-source/project-source.service.js +79 -0
  333. package/dist/apps/monolith/apps/fabric/src/project-source/project-source.service.js.map +1 -0
  334. package/dist/apps/monolith/apps/fabric/src/project-source/project-source.types.d.ts +10 -0
  335. package/dist/apps/monolith/apps/fabric/src/project-source/project-source.types.js +3 -0
  336. package/dist/apps/monolith/apps/fabric/src/project-source/project-source.types.js.map +1 -0
  337. package/dist/apps/monolith/apps/fabric/src/projects/dto/project.dto.d.ts +40 -0
  338. package/dist/apps/monolith/apps/fabric/src/projects/dto/project.dto.js +28 -0
  339. package/dist/apps/monolith/apps/fabric/src/projects/dto/project.dto.js.map +1 -0
  340. package/dist/apps/monolith/apps/fabric/src/projects/errors/project.errors.d.ts +7 -0
  341. package/dist/apps/monolith/apps/fabric/src/projects/errors/project.errors.js +18 -0
  342. package/dist/apps/monolith/apps/fabric/src/projects/errors/project.errors.js.map +1 -0
  343. package/dist/apps/monolith/apps/fabric/src/projects/projects-data.service.d.ts +11 -0
  344. package/dist/apps/monolith/apps/fabric/src/projects/projects-data.service.js +73 -0
  345. package/dist/apps/monolith/apps/fabric/src/projects/projects-data.service.js.map +1 -0
  346. package/dist/apps/monolith/apps/fabric/src/projects/projects.controller.d.ts +23 -0
  347. package/dist/apps/monolith/apps/fabric/src/projects/projects.controller.js +130 -0
  348. package/dist/apps/monolith/apps/fabric/src/projects/projects.controller.js.map +1 -0
  349. package/dist/apps/monolith/apps/fabric/src/projects/projects.module.d.ts +2 -0
  350. package/dist/apps/monolith/apps/fabric/src/projects/projects.module.js +33 -0
  351. package/dist/apps/monolith/apps/fabric/src/projects/projects.module.js.map +1 -0
  352. package/dist/apps/monolith/apps/fabric/src/projects/projects.service.d.ts +39 -0
  353. package/dist/apps/monolith/apps/fabric/src/projects/projects.service.js +245 -0
  354. package/dist/apps/monolith/apps/fabric/src/projects/projects.service.js.map +1 -0
  355. package/dist/apps/monolith/apps/fabric/src/projects/projects.store.d.ts +22 -0
  356. package/dist/apps/monolith/apps/fabric/src/projects/projects.store.js +130 -0
  357. package/dist/apps/monolith/apps/fabric/src/projects/projects.store.js.map +1 -0
  358. package/dist/apps/monolith/apps/fabric/src/projects/projects.types.d.ts +9 -0
  359. package/dist/apps/monolith/apps/fabric/src/projects/projects.types.js +3 -0
  360. package/dist/apps/monolith/apps/fabric/src/projects/projects.types.js.map +1 -0
  361. package/dist/apps/monolith/apps/fabric/src/providers/docker-provider.d.ts +17 -0
  362. package/dist/apps/monolith/apps/fabric/src/providers/docker-provider.js +128 -0
  363. package/dist/apps/monolith/apps/fabric/src/providers/docker-provider.js.map +1 -0
  364. package/dist/apps/monolith/apps/fabric/src/providers/eks-provider.d.ts +24 -0
  365. package/dist/apps/monolith/apps/fabric/src/providers/eks-provider.js +236 -0
  366. package/dist/apps/monolith/apps/fabric/src/providers/eks-provider.js.map +1 -0
  367. package/dist/apps/monolith/apps/fabric/src/providers/pm2-provider.d.ts +22 -0
  368. package/dist/apps/monolith/apps/fabric/src/providers/pm2-provider.js +177 -0
  369. package/dist/apps/monolith/apps/fabric/src/providers/pm2-provider.js.map +1 -0
  370. package/dist/apps/monolith/apps/fabric/src/providers/port-allocator.d.ts +9 -0
  371. package/dist/apps/monolith/apps/fabric/src/providers/port-allocator.js +62 -0
  372. package/dist/apps/monolith/apps/fabric/src/providers/port-allocator.js.map +1 -0
  373. package/dist/apps/monolith/apps/fabric/src/providers/provider-factory.d.ts +10 -0
  374. package/dist/apps/monolith/apps/fabric/src/providers/provider-factory.js +42 -0
  375. package/dist/apps/monolith/apps/fabric/src/providers/provider-factory.js.map +1 -0
  376. package/dist/apps/monolith/apps/fabric/src/providers/provider.interface.d.ts +28 -0
  377. package/dist/apps/monolith/apps/fabric/src/providers/provider.interface.js +5 -0
  378. package/dist/apps/monolith/apps/fabric/src/providers/provider.interface.js.map +1 -0
  379. package/dist/apps/monolith/apps/fabric/src/providers/providers.module.d.ts +2 -0
  380. package/dist/apps/monolith/apps/fabric/src/providers/providers.module.js +35 -0
  381. package/dist/apps/monolith/apps/fabric/src/providers/providers.module.js.map +1 -0
  382. package/dist/apps/monolith/apps/fabric/src/provisioners/cognito-provisioner.service.d.ts +33 -0
  383. package/dist/apps/monolith/apps/fabric/src/provisioners/cognito-provisioner.service.js +129 -0
  384. package/dist/apps/monolith/apps/fabric/src/provisioners/cognito-provisioner.service.js.map +1 -0
  385. package/dist/apps/monolith/apps/fabric/src/provisioners/postgres-provisioner.service.d.ts +36 -0
  386. package/dist/apps/monolith/apps/fabric/src/provisioners/postgres-provisioner.service.js +107 -0
  387. package/dist/apps/monolith/apps/fabric/src/provisioners/postgres-provisioner.service.js.map +1 -0
  388. package/dist/apps/monolith/apps/fabric/src/provisioners/provisioners.module.d.ts +2 -0
  389. package/dist/apps/monolith/apps/fabric/src/provisioners/provisioners.module.js +82 -0
  390. package/dist/apps/monolith/apps/fabric/src/provisioners/provisioners.module.js.map +1 -0
  391. package/dist/apps/monolith/apps/fabric/src/user-config/user-config.module.d.ts +2 -0
  392. package/dist/apps/monolith/apps/fabric/src/user-config/user-config.module.js +22 -0
  393. package/dist/apps/monolith/apps/fabric/src/user-config/user-config.module.js.map +1 -0
  394. package/dist/apps/monolith/apps/fabric/src/user-config/user-config.service.d.ts +17 -0
  395. package/dist/apps/monolith/apps/fabric/src/user-config/user-config.service.js +57 -0
  396. package/dist/apps/monolith/apps/fabric/src/user-config/user-config.service.js.map +1 -0
  397. package/dist/apps/monolith/apps/fabric/src/user-config/user-config.store.d.ts +19 -0
  398. package/dist/apps/monolith/apps/fabric/src/user-config/user-config.store.js +115 -0
  399. package/dist/apps/monolith/apps/fabric/src/user-config/user-config.store.js.map +1 -0
  400. package/dist/apps/monolith/apps/fabric/src/user-config/user-config.types.d.ts +10 -0
  401. package/dist/apps/monolith/apps/fabric/src/user-config/user-config.types.js +6 -0
  402. package/dist/apps/monolith/apps/fabric/src/user-config/user-config.types.js.map +1 -0
  403. package/dist/apps/monolith/apps/fabric/src/versions/versions.controller.d.ts +9 -0
  404. package/dist/apps/monolith/apps/fabric/src/versions/versions.controller.js +52 -0
  405. package/dist/apps/monolith/apps/fabric/src/versions/versions.controller.js.map +1 -0
  406. package/dist/apps/monolith/apps/fabric/src/versions/versions.module.d.ts +2 -0
  407. package/dist/apps/monolith/apps/fabric/src/versions/versions.module.js +24 -0
  408. package/dist/apps/monolith/apps/fabric/src/versions/versions.module.js.map +1 -0
  409. package/dist/apps/monolith/apps/fabric/src/versions/versions.service.d.ts +12 -0
  410. package/dist/apps/monolith/apps/fabric/src/versions/versions.service.js +62 -0
  411. package/dist/apps/monolith/apps/fabric/src/versions/versions.service.js.map +1 -0
  412. package/dist/apps/monolith/apps/fabric/src/versions/versions.store.d.ts +24 -0
  413. package/dist/apps/monolith/apps/fabric/src/versions/versions.store.js +133 -0
  414. package/dist/apps/monolith/apps/fabric/src/versions/versions.store.js.map +1 -0
  415. package/dist/apps/monolith/apps/fabric/src/versions/versions.types.d.ts +11 -0
  416. package/dist/apps/monolith/apps/fabric/src/versions/versions.types.js +3 -0
  417. package/dist/apps/monolith/apps/fabric/src/versions/versions.types.js.map +1 -0
  418. package/dist/apps/monolith/apps/fabric/src/watcher/deployment-watcher.module.d.ts +2 -0
  419. package/dist/apps/monolith/apps/fabric/src/watcher/deployment-watcher.module.js +35 -0
  420. package/dist/apps/monolith/apps/fabric/src/watcher/deployment-watcher.module.js.map +1 -0
  421. package/dist/apps/monolith/apps/fabric/src/watcher/deployment-watcher.service.d.ts +18 -0
  422. package/dist/apps/monolith/apps/fabric/src/watcher/deployment-watcher.service.js +84 -0
  423. package/dist/apps/monolith/apps/fabric/src/watcher/deployment-watcher.service.js.map +1 -0
  424. package/dist/apps/monolith/apps/fabric/src/watcher/pod-probe.service.d.ts +28 -0
  425. package/dist/apps/monolith/apps/fabric/src/watcher/pod-probe.service.js +211 -0
  426. package/dist/apps/monolith/apps/fabric/src/watcher/pod-probe.service.js.map +1 -0
  427. package/dist/apps/monolith/apps/integrations/src/config/configuration.d.ts +27 -0
  428. package/dist/apps/monolith/apps/integrations/src/config/configuration.js +85 -0
  429. package/dist/apps/monolith/apps/integrations/src/config/configuration.js.map +1 -0
  430. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/client.d.ts +9 -0
  431. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/client.js +46 -0
  432. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/client.js.map +1 -0
  433. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/commonInputTypes.d.ts +246 -0
  434. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/commonInputTypes.js +3 -0
  435. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/commonInputTypes.js.map +1 -0
  436. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/enums.d.ts +1 -0
  437. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/enums.js +3 -0
  438. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/enums.js.map +1 -0
  439. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/internal/class.d.ts +35 -0
  440. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/internal/class.js +75 -0
  441. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/internal/class.js.map +1 -0
  442. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/internal/prismaNamespace.d.ts +374 -0
  443. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/internal/prismaNamespace.js +103 -0
  444. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/internal/prismaNamespace.js.map +1 -0
  445. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/models/IntegrationEntity.d.ts +521 -0
  446. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/models/IntegrationEntity.js +3 -0
  447. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/models/IntegrationEntity.js.map +1 -0
  448. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/models.d.ts +2 -0
  449. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/models.js +3 -0
  450. package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/models.js.map +1 -0
  451. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/client.d.ts +9 -0
  452. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/client.js +46 -0
  453. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/client.js.map +1 -0
  454. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/commonInputTypes.d.ts +227 -0
  455. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/commonInputTypes.js +3 -0
  456. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/commonInputTypes.js.map +1 -0
  457. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/enums.d.ts +1 -0
  458. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/enums.js +3 -0
  459. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/enums.js.map +1 -0
  460. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/internal/class.d.ts +35 -0
  461. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/internal/class.js +75 -0
  462. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/internal/class.js.map +1 -0
  463. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/internal/prismaNamespace.d.ts +368 -0
  464. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/internal/prismaNamespace.js +100 -0
  465. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/internal/prismaNamespace.js.map +1 -0
  466. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/models/IntegrationEntity.d.ts +519 -0
  467. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/models/IntegrationEntity.js +3 -0
  468. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/models/IntegrationEntity.js.map +1 -0
  469. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/models.d.ts +2 -0
  470. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/models.js +3 -0
  471. package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/models.js.map +1 -0
  472. package/dist/apps/monolith/apps/integrations/src/integrations-core.module.d.ts +4 -0
  473. package/dist/apps/monolith/apps/integrations/src/integrations-core.module.js +61 -0
  474. package/dist/apps/monolith/apps/integrations/src/integrations-core.module.js.map +1 -0
  475. package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/auth-flow.module.d.ts +2 -0
  476. package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/auth-flow.module.js +34 -0
  477. package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/auth-flow.module.js.map +1 -0
  478. package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/auth-flow.service.d.ts +52 -0
  479. package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/auth-flow.service.js +185 -0
  480. package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/auth-flow.service.js.map +1 -0
  481. package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/scheduler.service.d.ts +14 -0
  482. package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/scheduler.service.js +69 -0
  483. package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/scheduler.service.js.map +1 -0
  484. package/dist/apps/monolith/apps/integrations/src/modules/connections/connections.module.d.ts +2 -0
  485. package/dist/apps/monolith/apps/integrations/src/modules/connections/connections.module.js +24 -0
  486. package/dist/apps/monolith/apps/integrations/src/modules/connections/connections.module.js.map +1 -0
  487. package/dist/apps/monolith/apps/integrations/src/modules/connections/connections.service.d.ts +31 -0
  488. package/dist/apps/monolith/apps/integrations/src/modules/connections/connections.service.js +91 -0
  489. package/dist/apps/monolith/apps/integrations/src/modules/connections/connections.service.js.map +1 -0
  490. package/dist/apps/monolith/apps/integrations/src/modules/credentials/credentials.module.d.ts +2 -0
  491. package/dist/apps/monolith/apps/integrations/src/modules/credentials/credentials.module.js +24 -0
  492. package/dist/apps/monolith/apps/integrations/src/modules/credentials/credentials.module.js.map +1 -0
  493. package/dist/apps/monolith/apps/integrations/src/modules/credentials/encryption.service.d.ts +14 -0
  494. package/dist/apps/monolith/apps/integrations/src/modules/credentials/encryption.service.js +62 -0
  495. package/dist/apps/monolith/apps/integrations/src/modules/credentials/encryption.service.js.map +1 -0
  496. package/dist/apps/monolith/apps/integrations/src/modules/credentials/token-store.service.d.ts +12 -0
  497. package/dist/apps/monolith/apps/integrations/src/modules/credentials/token-store.service.js +70 -0
  498. package/dist/apps/monolith/apps/integrations/src/modules/credentials/token-store.service.js.map +1 -0
  499. package/dist/apps/monolith/apps/integrations/src/modules/discovery/discovery.module.d.ts +2 -0
  500. package/dist/apps/monolith/apps/integrations/src/modules/discovery/discovery.module.js +21 -0
  501. package/dist/apps/monolith/apps/integrations/src/modules/discovery/discovery.module.js.map +1 -0
  502. package/dist/apps/monolith/apps/integrations/src/modules/discovery/oidc-discovery.service.d.ts +25 -0
  503. package/dist/apps/monolith/apps/integrations/src/modules/discovery/oidc-discovery.service.js +83 -0
  504. package/dist/apps/monolith/apps/integrations/src/modules/discovery/oidc-discovery.service.js.map +1 -0
  505. package/dist/apps/monolith/apps/integrations/src/modules/platform/metadata-store.service.d.ts +31 -0
  506. package/dist/apps/monolith/apps/integrations/src/modules/platform/metadata-store.service.js +278 -0
  507. package/dist/apps/monolith/apps/integrations/src/modules/platform/metadata-store.service.js.map +1 -0
  508. package/dist/apps/monolith/apps/integrations/src/modules/platform/platform.module.d.ts +2 -0
  509. package/dist/apps/monolith/apps/integrations/src/modules/platform/platform.module.js +21 -0
  510. package/dist/apps/monolith/apps/integrations/src/modules/platform/platform.module.js.map +1 -0
  511. package/dist/apps/monolith/apps/integrations/src/modules/platform/platform.types.d.ts +9 -0
  512. package/dist/apps/monolith/apps/integrations/src/modules/platform/platform.types.js +3 -0
  513. package/dist/apps/monolith/apps/integrations/src/modules/platform/platform.types.js.map +1 -0
  514. package/dist/apps/monolith/apps/integrations/src/modules/platform/resilient-fetch.d.ts +6 -0
  515. package/dist/apps/monolith/apps/integrations/src/modules/platform/resilient-fetch.js +38 -0
  516. package/dist/apps/monolith/apps/integrations/src/modules/platform/resilient-fetch.js.map +1 -0
  517. package/dist/apps/monolith/apps/integrations/src/modules/providers/base/api-key.provider.d.ts +9 -0
  518. package/dist/apps/monolith/apps/integrations/src/modules/providers/base/api-key.provider.js +34 -0
  519. package/dist/apps/monolith/apps/integrations/src/modules/providers/base/api-key.provider.js.map +1 -0
  520. package/dist/apps/monolith/apps/integrations/src/modules/providers/base/basic-auth.provider.d.ts +9 -0
  521. package/dist/apps/monolith/apps/integrations/src/modules/providers/base/basic-auth.provider.js +35 -0
  522. package/dist/apps/monolith/apps/integrations/src/modules/providers/base/basic-auth.provider.js.map +1 -0
  523. package/dist/apps/monolith/apps/integrations/src/modules/providers/base/oauth2.provider.d.ts +13 -0
  524. package/dist/apps/monolith/apps/integrations/src/modules/providers/base/oauth2.provider.js +162 -0
  525. package/dist/apps/monolith/apps/integrations/src/modules/providers/base/oauth2.provider.js.map +1 -0
  526. package/dist/apps/monolith/apps/integrations/src/modules/providers/base/oidc.provider.d.ts +14 -0
  527. package/dist/apps/monolith/apps/integrations/src/modules/providers/base/oidc.provider.js +55 -0
  528. package/dist/apps/monolith/apps/integrations/src/modules/providers/base/oidc.provider.js.map +1 -0
  529. package/dist/apps/monolith/apps/integrations/src/modules/providers/builtin/google-drive.provider.d.ts +3 -0
  530. package/dist/apps/monolith/apps/integrations/src/modules/providers/builtin/google-drive.provider.js +39 -0
  531. package/dist/apps/monolith/apps/integrations/src/modules/providers/builtin/google-drive.provider.js.map +1 -0
  532. package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.factory.d.ts +11 -0
  533. package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.factory.js +70 -0
  534. package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.factory.js.map +1 -0
  535. package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.registry.d.ts +20 -0
  536. package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.registry.js +114 -0
  537. package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.registry.js.map +1 -0
  538. package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.types.d.ts +160 -0
  539. package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.types.js +20 -0
  540. package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.types.js.map +1 -0
  541. package/dist/apps/monolith/apps/integrations/src/modules/providers/providers.module.d.ts +2 -0
  542. package/dist/apps/monolith/apps/integrations/src/modules/providers/providers.module.js +46 -0
  543. package/dist/apps/monolith/apps/integrations/src/modules/providers/providers.module.js.map +1 -0
  544. package/dist/apps/monolith/apps/integrations/src/modules/tenant-config/tenant-config.module.d.ts +2 -0
  545. package/dist/apps/monolith/apps/integrations/src/modules/tenant-config/tenant-config.module.js +24 -0
  546. package/dist/apps/monolith/apps/integrations/src/modules/tenant-config/tenant-config.module.js.map +1 -0
  547. package/dist/apps/monolith/apps/integrations/src/modules/tenant-config/tenant-config.service.d.ts +48 -0
  548. package/dist/apps/monolith/apps/integrations/src/modules/tenant-config/tenant-config.service.js +136 -0
  549. package/dist/apps/monolith/apps/integrations/src/modules/tenant-config/tenant-config.service.js.map +1 -0
  550. package/dist/apps/monolith/apps/monolith/src/app.module.d.ts +2 -0
  551. package/dist/apps/monolith/apps/monolith/src/app.module.js +73 -0
  552. package/dist/apps/monolith/apps/monolith/src/app.module.js.map +1 -0
  553. package/dist/apps/monolith/apps/monolith/src/config/configuration.d.ts +26 -0
  554. package/dist/apps/monolith/apps/monolith/src/config/configuration.js +82 -0
  555. package/dist/apps/monolith/apps/monolith/src/config/configuration.js.map +1 -0
  556. package/dist/apps/monolith/apps/monolith/src/health/health.controller.d.ts +7 -0
  557. package/dist/apps/monolith/apps/monolith/src/health/health.controller.js +41 -0
  558. package/dist/apps/monolith/apps/monolith/src/health/health.controller.js.map +1 -0
  559. package/dist/apps/monolith/apps/monolith/src/health/health.module.d.ts +2 -0
  560. package/dist/apps/monolith/apps/monolith/src/health/health.module.js +22 -0
  561. package/dist/apps/monolith/apps/monolith/src/health/health.module.js.map +1 -0
  562. package/dist/apps/monolith/apps/monolith/src/main.d.ts +1 -0
  563. package/dist/apps/monolith/apps/monolith/src/main.js +46 -0
  564. package/dist/apps/monolith/apps/monolith/src/main.js.map +1 -0
  565. package/dist/apps/monolith/libs/agentcraft/src/agentcraft.module.d.ts +13 -0
  566. package/dist/apps/monolith/libs/agentcraft/src/agentcraft.module.js +137 -0
  567. package/dist/apps/monolith/libs/agentcraft/src/agentcraft.module.js.map +1 -0
  568. package/dist/apps/monolith/libs/agentcraft/src/constants.d.ts +2 -0
  569. package/dist/apps/monolith/libs/agentcraft/src/constants.js +6 -0
  570. package/dist/apps/monolith/libs/agentcraft/src/constants.js.map +1 -0
  571. package/dist/apps/monolith/libs/agentcraft/src/dto/submit-action.dto.d.ts +32 -0
  572. package/dist/apps/monolith/libs/agentcraft/src/dto/submit-action.dto.js +23 -0
  573. package/dist/apps/monolith/libs/agentcraft/src/dto/submit-action.dto.js.map +1 -0
  574. package/dist/apps/monolith/libs/agentcraft/src/errors/domain.error.d.ts +8 -0
  575. package/dist/apps/monolith/libs/agentcraft/src/errors/domain.error.js +19 -0
  576. package/dist/apps/monolith/libs/agentcraft/src/errors/domain.error.js.map +1 -0
  577. package/dist/apps/monolith/libs/agentcraft/src/errors/llm.errors.d.ts +10 -0
  578. package/dist/apps/monolith/libs/agentcraft/src/errors/llm.errors.js +23 -0
  579. package/dist/apps/monolith/libs/agentcraft/src/errors/llm.errors.js.map +1 -0
  580. package/dist/apps/monolith/libs/agentcraft/src/index.d.ts +44 -0
  581. package/dist/apps/monolith/libs/agentcraft/src/index.js +91 -0
  582. package/dist/apps/monolith/libs/agentcraft/src/index.js.map +1 -0
  583. package/dist/apps/monolith/libs/agentcraft/src/instructions/step6-data-model.d.ts +1 -0
  584. package/dist/apps/monolith/libs/agentcraft/src/instructions/step6-data-model.js +185 -0
  585. package/dist/apps/monolith/libs/agentcraft/src/instructions/step6-data-model.js.map +1 -0
  586. package/dist/apps/monolith/libs/agentcraft/src/instructions/step7-workflows.d.ts +1 -0
  587. package/dist/apps/monolith/libs/agentcraft/src/instructions/step7-workflows.js +548 -0
  588. package/dist/apps/monolith/libs/agentcraft/src/instructions/step7-workflows.js.map +1 -0
  589. package/dist/apps/monolith/libs/agentcraft/src/instructions/step8-agents.d.ts +1 -0
  590. package/dist/apps/monolith/libs/agentcraft/src/instructions/step8-agents.js +118 -0
  591. package/dist/apps/monolith/libs/agentcraft/src/instructions/step8-agents.js.map +1 -0
  592. package/dist/apps/monolith/libs/agentcraft/src/interfaces/llm-provider.interface.d.ts +8 -0
  593. package/dist/apps/monolith/libs/agentcraft/src/interfaces/llm-provider.interface.js +3 -0
  594. package/dist/apps/monolith/libs/agentcraft/src/interfaces/llm-provider.interface.js.map +1 -0
  595. package/dist/apps/monolith/libs/agentcraft/src/prompts/assembly.prompt.d.ts +1 -0
  596. package/dist/apps/monolith/libs/agentcraft/src/prompts/assembly.prompt.js +103 -0
  597. package/dist/apps/monolith/libs/agentcraft/src/prompts/assembly.prompt.js.map +1 -0
  598. package/dist/apps/monolith/libs/agentcraft/src/prompts/codegen.prompt.d.ts +2 -0
  599. package/dist/apps/monolith/libs/agentcraft/src/prompts/codegen.prompt.js +80 -0
  600. package/dist/apps/monolith/libs/agentcraft/src/prompts/codegen.prompt.js.map +1 -0
  601. package/dist/apps/monolith/libs/agentcraft/src/prompts/decomposition.prompt.d.ts +1 -0
  602. package/dist/apps/monolith/libs/agentcraft/src/prompts/decomposition.prompt.js +36 -0
  603. package/dist/apps/monolith/libs/agentcraft/src/prompts/decomposition.prompt.js.map +1 -0
  604. package/dist/apps/monolith/libs/agentcraft/src/prompts/examples-provider.d.ts +6 -0
  605. package/dist/apps/monolith/libs/agentcraft/src/prompts/examples-provider.js +50 -0
  606. package/dist/apps/monolith/libs/agentcraft/src/prompts/examples-provider.js.map +1 -0
  607. package/dist/apps/monolith/libs/agentcraft/src/prompts/planning.prompt.d.ts +1 -0
  608. package/dist/apps/monolith/libs/agentcraft/src/prompts/planning.prompt.js +56 -0
  609. package/dist/apps/monolith/libs/agentcraft/src/prompts/planning.prompt.js.map +1 -0
  610. package/dist/apps/monolith/libs/agentcraft/src/prompts/resolver.prompt.d.ts +9 -0
  611. package/dist/apps/monolith/libs/agentcraft/src/prompts/resolver.prompt.js +320 -0
  612. package/dist/apps/monolith/libs/agentcraft/src/prompts/resolver.prompt.js.map +1 -0
  613. package/dist/apps/monolith/libs/agentcraft/src/prompts/semantics-guide.d.ts +1 -0
  614. package/dist/apps/monolith/libs/agentcraft/src/prompts/semantics-guide.js +130 -0
  615. package/dist/apps/monolith/libs/agentcraft/src/prompts/semantics-guide.js.map +1 -0
  616. package/dist/apps/monolith/libs/agentcraft/src/services/anthropic-craft-llm.service.d.ts +13 -0
  617. package/dist/apps/monolith/libs/agentcraft/src/services/anthropic-craft-llm.service.js +167 -0
  618. package/dist/apps/monolith/libs/agentcraft/src/services/anthropic-craft-llm.service.js.map +1 -0
  619. package/dist/apps/monolith/libs/agentcraft/src/services/anthropic-llm.service.d.ts +9 -0
  620. package/dist/apps/monolith/libs/agentcraft/src/services/anthropic-llm.service.js +67 -0
  621. package/dist/apps/monolith/libs/agentcraft/src/services/anthropic-llm.service.js.map +1 -0
  622. package/dist/apps/monolith/libs/agentcraft/src/services/api-adapter.service.d.ts +43 -0
  623. package/dist/apps/monolith/libs/agentcraft/src/services/api-adapter.service.js +154 -0
  624. package/dist/apps/monolith/libs/agentcraft/src/services/api-adapter.service.js.map +1 -0
  625. package/dist/apps/monolith/libs/agentcraft/src/services/architect-loop.service.d.ts +36 -0
  626. package/dist/apps/monolith/libs/agentcraft/src/services/architect-loop.service.js +282 -0
  627. package/dist/apps/monolith/libs/agentcraft/src/services/architect-loop.service.js.map +1 -0
  628. package/dist/apps/monolith/libs/agentcraft/src/services/autonomous-runner.service.d.ts +16 -0
  629. package/dist/apps/monolith/libs/agentcraft/src/services/autonomous-runner.service.js +135 -0
  630. package/dist/apps/monolith/libs/agentcraft/src/services/autonomous-runner.service.js.map +1 -0
  631. package/dist/apps/monolith/libs/agentcraft/src/services/craft-config.service.d.ts +11 -0
  632. package/dist/apps/monolith/libs/agentcraft/src/services/craft-config.service.js +91 -0
  633. package/dist/apps/monolith/libs/agentcraft/src/services/craft-config.service.js.map +1 -0
  634. package/dist/apps/monolith/libs/agentcraft/src/services/craft-llm-adapter.service.d.ts +9 -0
  635. package/dist/apps/monolith/libs/agentcraft/src/services/craft-llm-adapter.service.js +57 -0
  636. package/dist/apps/monolith/libs/agentcraft/src/services/craft-llm-adapter.service.js.map +1 -0
  637. package/dist/apps/monolith/libs/agentcraft/src/services/decomposer.service.d.ts +9 -0
  638. package/dist/apps/monolith/libs/agentcraft/src/services/decomposer.service.js +100 -0
  639. package/dist/apps/monolith/libs/agentcraft/src/services/decomposer.service.js.map +1 -0
  640. package/dist/apps/monolith/libs/agentcraft/src/services/design-generator.service.d.ts +14 -0
  641. package/dist/apps/monolith/libs/agentcraft/src/services/design-generator.service.js +544 -0
  642. package/dist/apps/monolith/libs/agentcraft/src/services/design-generator.service.js.map +1 -0
  643. package/dist/apps/monolith/libs/agentcraft/src/services/executor.service.d.ts +17 -0
  644. package/dist/apps/monolith/libs/agentcraft/src/services/executor.service.js +347 -0
  645. package/dist/apps/monolith/libs/agentcraft/src/services/executor.service.js.map +1 -0
  646. package/dist/apps/monolith/libs/agentcraft/src/services/kb-watcher.service.d.ts +12 -0
  647. package/dist/apps/monolith/libs/agentcraft/src/services/kb-watcher.service.js +141 -0
  648. package/dist/apps/monolith/libs/agentcraft/src/services/kb-watcher.service.js.map +1 -0
  649. package/dist/apps/monolith/libs/agentcraft/src/services/openai-llm.service.d.ts +9 -0
  650. package/dist/apps/monolith/libs/agentcraft/src/services/openai-llm.service.js +69 -0
  651. package/dist/apps/monolith/libs/agentcraft/src/services/openai-llm.service.js.map +1 -0
  652. package/dist/apps/monolith/libs/agentcraft/src/services/output-parser.service.d.ts +9 -0
  653. package/dist/apps/monolith/libs/agentcraft/src/services/output-parser.service.js +68 -0
  654. package/dist/apps/monolith/libs/agentcraft/src/services/output-parser.service.js.map +1 -0
  655. package/dist/apps/monolith/libs/agentcraft/src/services/pipeline-state.service.d.ts +15 -0
  656. package/dist/apps/monolith/libs/agentcraft/src/services/pipeline-state.service.js +106 -0
  657. package/dist/apps/monolith/libs/agentcraft/src/services/pipeline-state.service.js.map +1 -0
  658. package/dist/apps/monolith/libs/agentcraft/src/services/pipeline-steps.service.d.ts +10 -0
  659. package/dist/apps/monolith/libs/agentcraft/src/services/pipeline-steps.service.js +134 -0
  660. package/dist/apps/monolith/libs/agentcraft/src/services/pipeline-steps.service.js.map +1 -0
  661. package/dist/apps/monolith/libs/agentcraft/src/services/planner.service.d.ts +13 -0
  662. package/dist/apps/monolith/libs/agentcraft/src/services/planner.service.js +165 -0
  663. package/dist/apps/monolith/libs/agentcraft/src/services/planner.service.js.map +1 -0
  664. package/dist/apps/monolith/libs/agentcraft/src/services/readme-generator.service.d.ts +10 -0
  665. package/dist/apps/monolith/libs/agentcraft/src/services/readme-generator.service.js +195 -0
  666. package/dist/apps/monolith/libs/agentcraft/src/services/readme-generator.service.js.map +1 -0
  667. package/dist/apps/monolith/libs/agentcraft/src/services/registry-client.service.d.ts +14 -0
  668. package/dist/apps/monolith/libs/agentcraft/src/services/registry-client.service.js +130 -0
  669. package/dist/apps/monolith/libs/agentcraft/src/services/registry-client.service.js.map +1 -0
  670. package/dist/apps/monolith/libs/agentcraft/src/services/requirements-generator.service.d.ts +12 -0
  671. package/dist/apps/monolith/libs/agentcraft/src/services/requirements-generator.service.js +198 -0
  672. package/dist/apps/monolith/libs/agentcraft/src/services/requirements-generator.service.js.map +1 -0
  673. package/dist/apps/monolith/libs/agentcraft/src/services/spec-fetcher.service.d.ts +3 -0
  674. package/dist/apps/monolith/libs/agentcraft/src/services/spec-fetcher.service.js +30 -0
  675. package/dist/apps/monolith/libs/agentcraft/src/services/spec-fetcher.service.js.map +1 -0
  676. package/dist/apps/monolith/libs/agentcraft/src/services/ui-blueprint-generator.service.d.ts +14 -0
  677. package/dist/apps/monolith/libs/agentcraft/src/services/ui-blueprint-generator.service.js +346 -0
  678. package/dist/apps/monolith/libs/agentcraft/src/services/ui-blueprint-generator.service.js.map +1 -0
  679. package/dist/apps/monolith/libs/agentcraft/src/types/architect.types.d.ts +122 -0
  680. package/dist/apps/monolith/libs/agentcraft/src/types/architect.types.js +3 -0
  681. package/dist/apps/monolith/libs/agentcraft/src/types/architect.types.js.map +1 -0
  682. package/dist/apps/monolith/libs/agentcraft/src/types/autonomous.types.d.ts +56 -0
  683. package/dist/apps/monolith/libs/agentcraft/src/types/autonomous.types.js +3 -0
  684. package/dist/apps/monolith/libs/agentcraft/src/types/autonomous.types.js.map +1 -0
  685. package/dist/apps/monolith/libs/agentcraft/src/types/llm.types.d.ts +55 -0
  686. package/dist/apps/monolith/libs/agentcraft/src/types/llm.types.js +3 -0
  687. package/dist/apps/monolith/libs/agentcraft/src/types/llm.types.js.map +1 -0
  688. package/dist/apps/monolith/libs/agentcraft/src/types/pipeline.types.d.ts +55 -0
  689. package/dist/apps/monolith/libs/agentcraft/src/types/pipeline.types.js +34 -0
  690. package/dist/apps/monolith/libs/agentcraft/src/types/pipeline.types.js.map +1 -0
  691. package/dist/apps/monolith/libs/agentcraft/src/types/resolver.types.d.ts +27 -0
  692. package/dist/apps/monolith/libs/agentcraft/src/types/resolver.types.js +3 -0
  693. package/dist/apps/monolith/libs/agentcraft/src/types/resolver.types.js.map +1 -0
  694. package/dist/apps/monolith/libs/agentcraft/src/types/signal.types.d.ts +11 -0
  695. package/dist/apps/monolith/libs/agentcraft/src/types/signal.types.js +3 -0
  696. package/dist/apps/monolith/libs/agentcraft/src/types/signal.types.js.map +1 -0
  697. package/dist/apps/monolith/libs/agentcraft/src/utils/kb-loader.d.ts +1 -0
  698. package/dist/apps/monolith/libs/agentcraft/src/utils/kb-loader.js +61 -0
  699. package/dist/apps/monolith/libs/agentcraft/src/utils/kb-loader.js.map +1 -0
  700. package/dist/apps/monolith/libs/agentcraft/src/utils/output-writer.d.ts +6 -0
  701. package/dist/apps/monolith/libs/agentcraft/src/utils/output-writer.js +57 -0
  702. package/dist/apps/monolith/libs/agentcraft/src/utils/output-writer.js.map +1 -0
  703. package/dist/apps/monolith/libs/agentcraft/src/utils/spec-fetcher.d.ts +1 -0
  704. package/dist/apps/monolith/libs/agentcraft/src/utils/spec-fetcher.js +20 -0
  705. package/dist/apps/monolith/libs/agentcraft/src/utils/spec-fetcher.js.map +1 -0
  706. package/dist/apps/monolith/libs/agentcraft/src/utils/spec-trimmer.d.ts +9 -0
  707. package/dist/apps/monolith/libs/agentcraft/src/utils/spec-trimmer.js +235 -0
  708. package/dist/apps/monolith/libs/agentcraft/src/utils/spec-trimmer.js.map +1 -0
  709. package/dist/apps/monolith/libs/agentcraft/src/utils/text-utils.d.ts +5 -0
  710. package/dist/apps/monolith/libs/agentcraft/src/utils/text-utils.js +36 -0
  711. package/dist/apps/monolith/libs/agentcraft/src/utils/text-utils.js.map +1 -0
  712. package/dist/apps/monolith/libs/agentcraft/src/utils/validator.d.ts +8 -0
  713. package/dist/apps/monolith/libs/agentcraft/src/utils/validator.js +187 -0
  714. package/dist/apps/monolith/libs/agentcraft/src/utils/validator.js.map +1 -0
  715. package/dist/apps/monolith/libs/common/src/database/data-source.service.d.ts +15 -0
  716. package/dist/apps/monolith/libs/common/src/database/data-source.service.js +77 -0
  717. package/dist/apps/monolith/libs/common/src/database/data-source.service.js.map +1 -0
  718. package/dist/apps/monolith/libs/common/src/database/database-connection.holder.d.ts +15 -0
  719. package/dist/apps/monolith/libs/common/src/database/database-connection.holder.js +47 -0
  720. package/dist/apps/monolith/libs/common/src/database/database-connection.holder.js.map +1 -0
  721. package/dist/apps/monolith/libs/common/src/database/database.config.d.ts +13 -0
  722. package/dist/apps/monolith/libs/common/src/database/database.config.js +5 -0
  723. package/dist/apps/monolith/libs/common/src/database/database.config.js.map +1 -0
  724. package/dist/apps/monolith/libs/common/src/database/database.module.d.ts +9 -0
  725. package/dist/apps/monolith/libs/common/src/database/database.module.js +48 -0
  726. package/dist/apps/monolith/libs/common/src/database/database.module.js.map +1 -0
  727. package/dist/apps/monolith/libs/common/src/database/embedded-database.service.d.ts +12 -0
  728. package/dist/apps/monolith/libs/common/src/database/embedded-database.service.js +108 -0
  729. package/dist/apps/monolith/libs/common/src/database/embedded-database.service.js.map +1 -0
  730. package/dist/apps/monolith/libs/common/src/database/file-store.d.ts +10 -0
  731. package/dist/apps/monolith/libs/common/src/database/file-store.factory.d.ts +8 -0
  732. package/dist/apps/monolith/libs/common/src/database/file-store.factory.js +37 -0
  733. package/dist/apps/monolith/libs/common/src/database/file-store.factory.js.map +1 -0
  734. package/dist/apps/monolith/libs/common/src/database/file-store.js +52 -0
  735. package/dist/apps/monolith/libs/common/src/database/file-store.js.map +1 -0
  736. package/dist/apps/monolith/libs/common/src/errors/domain.error.d.ts +4 -0
  737. package/dist/apps/monolith/libs/common/src/errors/domain.error.js +12 -0
  738. package/dist/apps/monolith/libs/common/src/errors/domain.error.js.map +1 -0
  739. package/dist/apps/monolith/libs/common/src/filters/domain-exception.filter.d.ts +8 -0
  740. package/dist/apps/monolith/libs/common/src/filters/domain-exception.filter.js +46 -0
  741. package/dist/apps/monolith/libs/common/src/filters/domain-exception.filter.js.map +1 -0
  742. package/dist/apps/monolith/libs/common/src/index.d.ts +13 -0
  743. package/dist/apps/monolith/libs/common/src/index.js +24 -0
  744. package/dist/apps/monolith/libs/common/src/index.js.map +1 -0
  745. package/dist/apps/monolith/libs/common/src/interceptors/logging.interceptor.d.ts +6 -0
  746. package/dist/apps/monolith/libs/common/src/interceptors/logging.interceptor.js +56 -0
  747. package/dist/apps/monolith/libs/common/src/interceptors/logging.interceptor.js.map +1 -0
  748. package/dist/apps/monolith/libs/project-provider/src/constants.d.ts +7 -0
  749. package/dist/apps/monolith/libs/project-provider/src/constants.js +11 -0
  750. package/dist/apps/monolith/libs/project-provider/src/constants.js.map +1 -0
  751. package/dist/apps/monolith/libs/project-provider/src/errors/domain.error.d.ts +1 -0
  752. package/dist/apps/monolith/libs/project-provider/src/errors/domain.error.js +6 -0
  753. package/dist/apps/monolith/libs/project-provider/src/errors/domain.error.js.map +1 -0
  754. package/dist/apps/monolith/libs/project-provider/src/errors/employee-code.errors.d.ts +13 -0
  755. package/dist/apps/monolith/libs/project-provider/src/errors/employee-code.errors.js +29 -0
  756. package/dist/apps/monolith/libs/project-provider/src/errors/employee-code.errors.js.map +1 -0
  757. package/dist/apps/monolith/libs/project-provider/src/errors/inbox.errors.d.ts +13 -0
  758. package/dist/apps/monolith/libs/project-provider/src/errors/inbox.errors.js +29 -0
  759. package/dist/apps/monolith/libs/project-provider/src/errors/inbox.errors.js.map +1 -0
  760. package/dist/apps/monolith/libs/project-provider/src/errors/registry.errors.d.ts +16 -0
  761. package/dist/apps/monolith/libs/project-provider/src/errors/registry.errors.js +35 -0
  762. package/dist/apps/monolith/libs/project-provider/src/errors/registry.errors.js.map +1 -0
  763. package/dist/apps/monolith/libs/project-provider/src/index.d.ts +23 -0
  764. package/dist/apps/monolith/libs/project-provider/src/index.js +50 -0
  765. package/dist/apps/monolith/libs/project-provider/src/index.js.map +1 -0
  766. package/dist/apps/monolith/libs/project-provider/src/interfaces/employee-code-provider.interface.d.ts +11 -0
  767. package/dist/apps/monolith/libs/project-provider/src/interfaces/employee-code-provider.interface.js +3 -0
  768. package/dist/apps/monolith/libs/project-provider/src/interfaces/employee-code-provider.interface.js.map +1 -0
  769. package/dist/apps/monolith/libs/project-provider/src/interfaces/inbox-client.interface.d.ts +3 -0
  770. package/dist/apps/monolith/libs/project-provider/src/interfaces/inbox-client.interface.js +3 -0
  771. package/dist/apps/monolith/libs/project-provider/src/interfaces/inbox-client.interface.js.map +1 -0
  772. package/dist/apps/monolith/libs/project-provider/src/interfaces/inbox-handler.interface.d.ts +5 -0
  773. package/dist/apps/monolith/libs/project-provider/src/interfaces/inbox-handler.interface.js +5 -0
  774. package/dist/apps/monolith/libs/project-provider/src/interfaces/inbox-handler.interface.js.map +1 -0
  775. package/dist/apps/monolith/libs/project-provider/src/interfaces/knowledge-base.interface.d.ts +5 -0
  776. package/dist/apps/monolith/libs/project-provider/src/interfaces/knowledge-base.interface.js +3 -0
  777. package/dist/apps/monolith/libs/project-provider/src/interfaces/knowledge-base.interface.js.map +1 -0
  778. package/dist/apps/monolith/libs/project-provider/src/interfaces/registry-provider.interface.d.ts +18 -0
  779. package/dist/apps/monolith/libs/project-provider/src/interfaces/registry-provider.interface.js +3 -0
  780. package/dist/apps/monolith/libs/project-provider/src/interfaces/registry-provider.interface.js.map +1 -0
  781. package/dist/apps/monolith/libs/project-provider/src/project-provider.module.d.ts +10 -0
  782. package/dist/apps/monolith/libs/project-provider/src/project-provider.module.js +115 -0
  783. package/dist/apps/monolith/libs/project-provider/src/project-provider.module.js.map +1 -0
  784. package/dist/apps/monolith/libs/project-provider/src/services/al-parser.service.d.ts +6 -0
  785. package/dist/apps/monolith/libs/project-provider/src/services/al-parser.service.js +94 -0
  786. package/dist/apps/monolith/libs/project-provider/src/services/al-parser.service.js.map +1 -0
  787. package/dist/apps/monolith/libs/project-provider/src/services/direct-inbox-client.service.d.ts +8 -0
  788. package/dist/apps/monolith/libs/project-provider/src/services/direct-inbox-client.service.js +42 -0
  789. package/dist/apps/monolith/libs/project-provider/src/services/direct-inbox-client.service.js.map +1 -0
  790. package/dist/apps/monolith/libs/project-provider/src/services/file-knowledge-base.service.d.ts +8 -0
  791. package/dist/apps/monolith/libs/project-provider/src/services/file-knowledge-base.service.js +126 -0
  792. package/dist/apps/monolith/libs/project-provider/src/services/file-knowledge-base.service.js.map +1 -0
  793. package/dist/apps/monolith/libs/project-provider/src/services/filesystem-employee-code.service.d.ts +24 -0
  794. package/dist/apps/monolith/libs/project-provider/src/services/filesystem-employee-code.service.js +163 -0
  795. package/dist/apps/monolith/libs/project-provider/src/services/filesystem-employee-code.service.js.map +1 -0
  796. package/dist/apps/monolith/libs/project-provider/src/services/filesystem-registry.service.d.ts +27 -0
  797. package/dist/apps/monolith/libs/project-provider/src/services/filesystem-registry.service.js +223 -0
  798. package/dist/apps/monolith/libs/project-provider/src/services/filesystem-registry.service.js.map +1 -0
  799. package/dist/apps/monolith/libs/project-provider/src/services/http-inbox-client.service.d.ts +7 -0
  800. package/dist/apps/monolith/libs/project-provider/src/services/http-inbox-client.service.js +46 -0
  801. package/dist/apps/monolith/libs/project-provider/src/services/http-inbox-client.service.js.map +1 -0
  802. package/dist/apps/monolith/libs/project-provider/src/services/noop-inbox-client.service.d.ts +4 -0
  803. package/dist/apps/monolith/libs/project-provider/src/services/noop-inbox-client.service.js +19 -0
  804. package/dist/apps/monolith/libs/project-provider/src/services/noop-inbox-client.service.js.map +1 -0
  805. package/dist/apps/monolith/libs/project-provider/src/types/messaging.types.d.ts +45 -0
  806. package/dist/apps/monolith/libs/project-provider/src/types/messaging.types.js +11 -0
  807. package/dist/apps/monolith/libs/project-provider/src/types/messaging.types.js.map +1 -0
  808. package/dist/apps/monolith/libs/project-provider/src/types/project.types.d.ts +47 -0
  809. package/dist/apps/monolith/libs/project-provider/src/types/project.types.js +3 -0
  810. package/dist/apps/monolith/libs/project-provider/src/types/project.types.js.map +1 -0
  811. package/dist/apps/monolith/tsconfig.app.tsbuildinfo +1 -0
  812. package/package.json +3 -1
  813. package/scripts/agentmanager.mjs +22 -2
  814. package/scripts/monolith-daemon-run.mjs +3 -1
  815. package/scripts/monolith-daemon-run.sh +1 -1
@@ -0,0 +1,320 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildResolverSystemPrompt = buildResolverSystemPrompt;
4
+ exports.parseResolverOutput = parseResolverOutput;
5
+ exports.buildResolverMeta = buildResolverMeta;
6
+ const output_writer_1 = require("../utils/output-writer");
7
+ function toResolverAlias(name) {
8
+ const camelCase = name.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
9
+ return camelCase + 'Resolver';
10
+ }
11
+ function buildResolverSystemPrompt(name, description, specContent) {
12
+ const filePrefix = name.replace(/-/g, '_') + '_resolver';
13
+ const jsFileName = filePrefix + '.js';
14
+ const alFileName = filePrefix + '.al';
15
+ const importAlias = toResolverAlias(name);
16
+ return `You are a resolver generator for agentlang applications. Your task is to generate a complete resolver package that allows agentlang entities to interact with an external API.
17
+
18
+ ## Resolver Name
19
+ ${name}
20
+
21
+ ## Description
22
+ ${description}
23
+
24
+ ## API Specification
25
+ <api-spec>
26
+ ${specContent}
27
+ </api-spec>
28
+
29
+ ## Agentlang Resolver Syntax Reference
30
+
31
+ ### Entity Definition (.al file)
32
+ Entities are defined using the \`entity\` keyword inside a \`module\` block. Each entity has typed attributes and a \`resolver\` block that maps CRUD operations to functions imported from a JavaScript file. Each resolver block MUST have a unique name (NOT the entity name itself) and a **paths vector** \`[ModuleName/EntityName]\` that specifies which entity it resolves.
33
+
34
+ Attribute types: \`String\`, \`Int\`, \`Float\`, \`Boolean\`, \`UUID\`, \`DateTime\`, \`Map\`
35
+ Attribute properties: \`@id\` (primary key), \`@unique\`, \`@optional\`, \`@default(value)\`
36
+
37
+ Attributes may also be declared as arrays, e.g String[].
38
+
39
+ **Structures with no attributes MUST be defined with \`{}\`**. For example: \`@public event getAllPets {}\`, \`record EmptyPayload {}\`. Never omit the braces.
40
+
41
+ **IMPORTANT — Resolver binding syntax:**
42
+
43
+ The .al file MUST import the JavaScript file using an \`import\` statement with \`@as\` to create an alias. Resolver methods are then bound using \`alias.functionName\` (dot notation, NO quotes).
44
+
45
+ \`\`\`
46
+ module Resolvers.GitHub
47
+
48
+ import "github_resolver.js" @as githubResolver
49
+
50
+ entity Issue {
51
+ id Int @id,
52
+ title String,
53
+ body String @optional,
54
+ state String @optional,
55
+ number Int @optional,
56
+ repo String,
57
+ owner String
58
+ }
59
+
60
+ resolver IssueResolver [Resolvers.GitHub/Issue] {
61
+ create githubResolver.createIssue,
62
+ query githubResolver.queryIssue,
63
+ update githubResolver.updateIssue,
64
+ delete githubResolver.deleteIssue
65
+ }
66
+ \`\`\`
67
+
68
+ CRITICAL syntax rules:
69
+ - Do NOT use the string-path format like \`"resolver.js/functionName"\`. That is INVALID. Always use \`import "file.js" @as alias\` at the top of the module, then \`alias.functionName\` in resolver blocks.
70
+ - The resolver name MUST be a unique identifier (e.g. \`IssueResolver\`), NOT the entity name itself. \`resolver Issue { ... }\` is WRONG — use \`resolver IssueResolver [GitHub/Issue] { ... }\`.
71
+ - The paths vector \`[ModuleName/EntityName]\` is REQUIRED. It tells agentlang which entity this resolver handles. The ModuleName is the last segment of the module name (e.g. for \`module Resolvers.GitHub\`, use \`GitHub/Issue\`).
72
+ - Resolver method bindings MUST be separated by commas.
73
+
74
+ ### Resolver JS Implementation (${jsFileName})
75
+ The resolver JS file exports functions for each CRUD operation. Each function receives an \`attributes\` object.
76
+
77
+ - Use \`instance.attributes.get("fieldName")\` to read entity attribute values
78
+ - Use \`instance.queryAttributes.get("fieldName")\` to get values to query entity instances
79
+ - Use \`process.env.ENV_VAR_NAME\` to read environment variables (for auth tokens, API keys, etc.). Do NOT import \`getLocalEnv\` or similar abstractions from agentlang.
80
+ - Use the global \`fetch\` API for HTTP calls
81
+ - Return result objects matching the entity shape
82
+ - Throw errors with descriptive messages on failure
83
+
84
+ \`\`\`javascript
85
+ async function createIssue(_, instance) { // the first argument '_' is always required for resolver methods
86
+ const token = process.env.GITHUB_TOKEN;
87
+ const owner = instance.attributes.get("owner");
88
+ const repo = instance.attributes.get("repo");
89
+ const title = instance.attributes.get("title");
90
+ const body = instance.attributes.get("body");
91
+
92
+ const response = await fetch(
93
+ \`https://api.github.com/repos/\${owner}/\${repo}/issues\`,
94
+ {
95
+ method: "POST",
96
+ headers: {
97
+ "Authorization": \`Bearer \${token}\`,
98
+ "Accept": "application/vnd.github+json",
99
+ "Content-Type": "application/json"
100
+ },
101
+ body: JSON.stringify({ title, body })
102
+ }
103
+ );
104
+
105
+ if (!response.ok) {
106
+ const error = await response.text();
107
+ throw new Error(\`GitHub API error: \${response.status} \${error}\`);
108
+ }
109
+
110
+ const issue = await response.json();
111
+ return {
112
+ id: issue.id,
113
+ number: issue.number,
114
+ title: issue.title,
115
+ body: issue.body,
116
+ state: issue.state,
117
+ repo,
118
+ owner
119
+ }
120
+ }
121
+
122
+ async function queryIssue(_, instance) {
123
+ const token = process.env.GITHUB_TOKEN;
124
+ const owner = instance.queryAttributes.get("owner");
125
+ const repo = instance.queryAttributes.get("repo");
126
+
127
+ const response = await fetch(
128
+ \`https://api.github.com/repos/\${owner}/\${repo}/issues\`,
129
+ {
130
+ headers: {
131
+ "Authorization": \`Bearer \${token}\`,
132
+ "Accept": "application/vnd.github+json"
133
+ }
134
+ }
135
+ );
136
+
137
+ if (!response.ok) {
138
+ const error = await response.text();
139
+ throw new Error(\`GitHub API error: \${response.status} \${error}\`);
140
+ }
141
+
142
+ const issues = await response.json();
143
+ return issues.map(issue => ({
144
+ id: issue.id,
145
+ number: issue.number,
146
+ title: issue.title,
147
+ body: issue.body,
148
+ state: issue.state,
149
+ repo,
150
+ owner
151
+ }));
152
+ }
153
+
154
+ async function updateIssue(_, instance) {
155
+ const token = process.env.GITHUB_TOKEN;
156
+ const owner = instance.attributes.get("owner");
157
+ const repo = instance.attributes.get("repo");
158
+ const number = instance.attributes.get("number");
159
+ const title = instance.attributes.get("title");
160
+ const body = instance.attributes.get("body");
161
+ const state = instance.attributes.get("state");
162
+
163
+ const updates = {};
164
+ if (title) updates.title = title;
165
+ if (body) updates.body = body;
166
+ if (state) updates.state = state;
167
+
168
+ const response = await fetch(
169
+ \`https://api.github.com/repos/\${owner}/\${repo}/issues/\${number}\`,
170
+ {
171
+ method: "PATCH",
172
+ headers: {
173
+ "Authorization": \`Bearer \${token}\`,
174
+ "Accept": "application/vnd.github+json",
175
+ "Content-Type": "application/json"
176
+ },
177
+ body: JSON.stringify(updates)
178
+ }
179
+ );
180
+
181
+ if (!response.ok) {
182
+ const error = await response.text();
183
+ throw new Error(\`GitHub API error: \${response.status} \${error}\`);
184
+ }
185
+
186
+ const issue = await response.json();
187
+ return {
188
+ id: issue.id,
189
+ number: issue.number,
190
+ title: issue.title,
191
+ body: issue.body,
192
+ state: issue.state,
193
+ repo,
194
+ owner
195
+ };
196
+ }
197
+
198
+ async function deleteIssue(_, instance) {
199
+ const token = process.env.GITHUB_TOKEN;
200
+ const owner = instance.attributes.get("owner");
201
+ const repo = instance.attributes.get("repo");
202
+ const number = instance.attributes.get("number");
203
+
204
+ // GitHub API doesn't support deleting issues, so we close it instead
205
+ const response = await fetch(
206
+ \`https://api.github.com/repos/\${owner}/\${repo}/issues/\${number}\`,
207
+ {
208
+ method: "PATCH",
209
+ headers: {
210
+ "Authorization": \`Bearer \${token}\`,
211
+ "Accept": "application/vnd.github+json",
212
+ "Content-Type": "application/json"
213
+ },
214
+ body: JSON.stringify({ state: "closed" })
215
+ }
216
+ );
217
+
218
+ if (!response.ok) {
219
+ const error = await response.text();
220
+ throw new Error(\`GitHub API error: \${response.status} \${error}\`);
221
+ }
222
+
223
+ return { id: 0, title: "", repo, owner };
224
+ }
225
+
226
+ export { createIssue, queryIssue, updateIssue, deleteIssue };
227
+ \`\`\`
228
+
229
+ ### package.json
230
+ \`\`\`json
231
+ {
232
+ "name": "${name}-resolver",
233
+ "version": "0.1.0",
234
+ "type": "module"
235
+ }
236
+ \`\`\`
237
+
238
+ ## Output Format
239
+
240
+ Output exactly three files using this delimiter format:
241
+
242
+ \`\`\`
243
+ --- FILE: src/${alFileName} ---
244
+ <module definition with import statement and entities with resolver mappings>
245
+
246
+ --- FILE: src/${jsFileName} ---
247
+ <JavaScript implementation with CRUD functions>
248
+
249
+ --- FILE: package.json ---
250
+ <package.json with name, version, type>
251
+ \`\`\`
252
+
253
+ ## Reserved Words — Do NOT Use as Names
254
+
255
+ Agentlang reserves certain keywords. You MUST NOT use any of the following as entity names or attribute names. If your domain has a concept that matches a reserved word, rename it (e.g. \`Event\` → \`CalendarEvent\`, \`Flow\` → \`AppFlow\`, \`Agent\` → \`AIAgent\`, \`import\` → \`importItem\`, \`delete\` → \`isDeleted\`, \`record\` → \`entry\`).
256
+
257
+ **Definition keywords:** \`module\`, \`import\`, \`entity\`, \`event\`, \`record\`, \`relationship\`, \`workflow\`, \`agent\`, \`resolver\`, \`flow\`, \`decision\`, \`scenario\`, \`directive\`, \`glossaryEntry\`, \`eval\`
258
+
259
+ **Control flow and operators:** \`if\`, \`else\`, \`for\`, \`in\`, \`return\`, \`throw\`, \`await\`, \`delete\`, \`purge\`, \`case\`, \`not\`, \`true\`, \`false\`, \`or\`, \`and\`, \`like\`, \`between\`
260
+
261
+ **CRUD and schema keywords:** \`create\`, \`update\`, \`query\`, \`upsert\`, \`contains\`, \`extends\`, \`where\`, \`roles\`, \`allow\`, \`subscribe\`, \`backoff\`, \`attempts\`
262
+
263
+ ## Guidelines
264
+ - Focus on the described functionality: "${description}"
265
+ - Handle authentication via environment variables using \`process.env\` (e.g. \`process.env.PETSTORE_API_KEY\`). Do NOT import \`getLocalEnv\` or similar abstractions from agentlang.
266
+ - Use the global \`fetch\` API for all HTTP requests
267
+ - Include proper error handling with descriptive error messages
268
+ - Map API responses back to entity attribute shapes
269
+ - Module name should follow the pattern \`Resolvers.<PascalCaseName>\`
270
+ - Each entity needs a matching resolver block with a unique resolver name (e.g. \`PetResolver\`, \`OrderResolver\`) and a paths vector \`[ModuleName/EntityName]\`. Resolver method bindings must be comma-separated
271
+ - Export all resolver functions from ${jsFileName}
272
+ - The .al file MUST start with \`import "${jsFileName}" @as ${importAlias}\` right after the module declaration
273
+ - Resolver methods MUST use \`${importAlias}.functionName\` (dot notation), NEVER \`"file/function"\` string syntax`;
274
+ }
275
+ function parseResolverOutput(rawOutput) {
276
+ const files = (0, output_writer_1.parseAssemblyOutput)(rawOutput);
277
+ let al = '';
278
+ let js = '';
279
+ for (const file of files) {
280
+ if (file.filePath.endsWith('.al')) {
281
+ al = file.content;
282
+ }
283
+ else if (file.filePath.endsWith('.js')) {
284
+ js = file.content;
285
+ }
286
+ }
287
+ if (!al && !js) {
288
+ return null;
289
+ }
290
+ const meta = buildResolverMeta(al);
291
+ return { al, js, meta, rawOutput };
292
+ }
293
+ function buildResolverMeta(alContent) {
294
+ const lines = ['# Resolver Metadata', ''];
295
+ const moduleMatch = alContent.match(/^module\s+(\S+)/m);
296
+ if (moduleMatch) {
297
+ lines.push(`Module: ${moduleMatch[1]}`);
298
+ lines.push('');
299
+ }
300
+ const entityRe = /entity\s+(\w+)\s*\{([^}]*)\}/g;
301
+ let match;
302
+ while ((match = entityRe.exec(alContent)) !== null) {
303
+ const entityName = match[1];
304
+ const body = match[2];
305
+ lines.push(`## Entity: ${entityName}`);
306
+ const attrRe = /(\w+)\s+(String|Int|Float|Boolean|UUID|DateTime|Map|Any|Number|Decimal|Email|Date|Time|URL|Password)(?:\[\])?\s*([^,\n]*)/g;
307
+ let attrMatch;
308
+ const attrs = [];
309
+ while ((attrMatch = attrRe.exec(body)) !== null) {
310
+ attrs.push(`- ${attrMatch[1]}: ${attrMatch[2]}${attrMatch[3].trim() ? ' ' + attrMatch[3].trim() : ''}`);
311
+ }
312
+ if (attrs.length > 0) {
313
+ lines.push('Attributes:');
314
+ lines.push(...attrs);
315
+ }
316
+ lines.push('');
317
+ }
318
+ return lines.join('\n').trim();
319
+ }
320
+ //# sourceMappingURL=resolver.prompt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolver.prompt.js","sourceRoot":"","sources":["../../../../../../../libs/agentcraft/src/prompts/resolver.prompt.ts"],"names":[],"mappings":";;AAgBA,8DA4QC;AAaD,kDAuBC;AAMD,8CAqCC;AA3WD,0DAA6D;AAM7D,SAAS,eAAe,CAAC,IAAY;IACnC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAS,EAAE,EAAE,CAC3D,CAAC,CAAC,WAAW,EAAE,CAChB,CAAC;IACF,OAAO,SAAS,GAAG,UAAU,CAAC;AAChC,CAAC;AAKD,SAAgB,yBAAyB,CACvC,IAAY,EACZ,WAAmB,EACnB,WAAmB;IAEnB,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,GAAG,WAAW,CAAC;IACzD,MAAM,UAAU,GAAG,UAAU,GAAG,KAAK,CAAC;IACtC,MAAM,UAAU,GAAG,UAAU,GAAG,KAAK,CAAC;IACtC,MAAM,WAAW,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAE1C,OAAO;;;EAGP,IAAI;;;EAGJ,WAAW;;;;EAIX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAgDqB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA8J7B,IAAI;;;;;;;;;;;gBAWH,UAAU;;;gBAGV,UAAU;;;;;;;;;;;;;;;;;;2CAkBiB,WAAW;;;;;;;uCAOf,UAAU;2CACN,UAAU,SAAS,WAAW;gCACzC,WAAW,yEAAyE,CAAC;AACrH,CAAC;AAaD,SAAgB,mBAAmB,CACjC,SAAiB;IAEjB,MAAM,KAAK,GAAG,IAAA,mCAAmB,EAAC,SAAS,CAAC,CAAC;IAE7C,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,IAAI,EAAE,GAAG,EAAE,CAAC;IAEZ,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAClC,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QACpB,CAAC;aAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACzC,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QACpB,CAAC;IACH,CAAC;IAED,IAAI,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,IAAI,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAC;IAEnC,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AACrC,CAAC;AAMD,SAAgB,iBAAiB,CAAC,SAAiB;IACjD,MAAM,KAAK,GAAa,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;IAGpD,MAAM,WAAW,GAAG,SAAS,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxD,IAAI,WAAW,EAAE,CAAC;QAChB,KAAK,CAAC,IAAI,CAAC,WAAW,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACxC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IAGD,MAAM,QAAQ,GAAG,+BAA+B,CAAC;IACjD,IAAI,KAAK,CAAC;IACV,OAAO,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;QACnD,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACtB,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,EAAE,CAAC,CAAC;QAGvC,MAAM,MAAM,GACV,4HAA4H,CAAC;QAC/H,IAAI,SAAS,CAAC;QACd,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;YAChD,KAAK,CAAC,IAAI,CACR,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAC5F,CAAC;QACJ,CAAC;QACD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrB,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAC1B,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACvB,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;AACjC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const SEMANTICS_GUIDE = "## Agentlang Semantics Guide\n\nAgentlang is a declarative language for building AI-powered applications. An application is a **module** containing entities, relationships, events, workflows, and agents. Understanding when to use each construct is critical for correct design.\n\n### Entity\n\nAn entity is a **persistent, database-backed domain object**. Every noun in your domain that needs to be stored, queried, or referenced is an entity. Examples: User, Product, Order, Lead, Ticket.\n\nAt design time, define entities with a name and description only \u2014 attributes are added during code generation. Focus on identifying the right set of entities: too few leads to overloaded entities; too many leads to unnecessary complexity.\n\n**When to define an entity:** Any domain concept that has its own identity and lifecycle, needs CRUD operations, or is referenced by other constructs.\n\n**When NOT to define an entity:** Temporary data, computed values, or concepts that only exist within a single workflow step.\n\n**Inheritance:** An entity can extend a record or another entity to inherit its attributes. Use when multiple entities share a common set of fields.\n\n**Entity-level features** (important design decisions \u2014 mark which ones apply to each entity):\n\n- **@meta {\"audit\": true}** \u2014 Enable audit trail. Use when you need to track who changed what and when (e.g., compliance-sensitive entities like Orders, Payments, MedicalRecords).\n- **@meta {\"fullTextSearch\": \"*\"}** \u2014 Enable full-text search. Use when users need to search entity instances by free-text queries (e.g., Tickets, Articles, Products).\n- **@rbac** \u2014 Role-based access control at the entity level. Define which roles can create/read/update/delete, and optional row-level filters (e.g., \"users can only read their own records\"). Use when different user roles need different access levels.\n- **@before/@after triggers** \u2014 Lifecycle hooks that fire before or after create/update/delete operations. Use when an entity change should automatically trigger side effects (e.g., after creating a Ticket, auto-assign it; before updating an Order, validate inventory). Triggers reference events/workflows by name and can be @async.\n- **@with_unique(attr1, attr2)** \u2014 Composite unique constraint across multiple attributes. Use when no single attribute is unique but the combination must be (e.g., unique email per organization, unique document per version).\n- **@actions** \u2014 Bind named actions to events on an entity. Use when an entity needs custom operations beyond standard CRUD.\n- **@expr** \u2014 Computed attributes whose values are automatically derived from other fields. Use when a field's value can always be calculated from other attributes (e.g., totalPrice = quantity * unitPrice). User-provided values override the computed expression.\n\n### Relationship\n\nRelationships connect entities. There are exactly two kinds \u2014 choosing the right one is a critical design decision.\n\n**contains (parent-child ownership):**\n- The parent **owns** the child. The child's identity is scoped within the parent.\n- Deleting the parent cascades to delete all children.\n- The child has no meaning outside its parent.\n- Use for: Orders containing OrderItems, Users containing Posts, Projects containing Tasks.\n\n**between (cross-reference association):**\n- Both entities have **independent lifecycles**. Neither owns the other.\n- Deleting one side does NOT delete the other.\n- Supports cardinality: one_one, one_many (default is many-to-many).\n- Use for: Students enrolled in Courses, Employees assigned to Departments, Tags on Articles.\n\n**Decision framework:** Ask \"If I delete entity A, should entity B also be deleted?\" If yes \u2192 contains. If no \u2192 between.\n\n**Cardinality for between relationships:**\n- one_one: Each A has exactly one B, and vice versa (e.g., User \u2194 Profile).\n- one_many: Each A has many Bs, but each B belongs to one A (e.g., Department \u2192 Employees).\n- many_many (default): Each A can relate to many Bs and vice versa (e.g., Students \u2194 Courses).\n\n**Role aliases (@as):** When a relationship connects an entity to itself (self-referencing), use @as to distinguish the two roles. Example: Employee @as manager \u2194 Employee @as report. Use when modeling hierarchies, mentorship, or any self-referential relationship.\n\n**Relationship schemas:** A relationship can carry its own attributes (e.g., Enrollment between Student and Course might have enrolledOn and grade). Use when the association itself has data beyond just linking two entities.\n\n### Event\n\nAn event is a **command or action** that triggers a workflow. It defines the input data schema for that action.\n\n- @public events expose a REST API endpoint (POST /api/Module/EventName).\n- Events can extend a record or another event to inherit attributes.\n- Events represent user actions (SubmitOrder, ApproveApplication) or system triggers (ProcessPayment, SendNotification).\n- Event names should clearly describe the action being performed.\n\n**When to define an event:** Any action that initiates a process, changes state, or triggers side effects.\n\n### Workflow\n\nA workflow is the **procedural handler** for an event or a lifecycle trigger. It performs CRUD operations on entities, invokes agents, and orchestrates multi-step logic.\n\n**Two forms:**\n\n1. **Event-driven (named):** The workflow name matches the event name. When the event fires, the workflow executes.\n2. **Lifecycle trigger:** Fires automatically before or after an entity's create, update, or delete operation. Use for automatic side effects (e.g., after creating a User, create a default Profile; before deleting an Order, check it's not shipped).\n\n**Access control:** @withRole restricts who can invoke a workflow (e.g., only admins can run an approval workflow).\n\n**What workflows can do:**\n- **CRUD operations** \u2014 Create, query (with ? suffix), update, upsert, delete, and purge entity instances.\n- **Sequential binding** \u2014 Chain operations with @as to bind results to variables for subsequent steps.\n- **Control flow** \u2014 if/else conditionals and for-each loops over collections.\n- **Error handling** \u2014 @catch for not_found and error cases; @empty for handling empty query results with fallback logic.\n- **Side effects** \u2014 @then for post-operation logic (run additional statements after a create/update).\n- **Joins and analytics** \u2014 Query across entities with @join/@left_join/@right_join/@full_join, project results with @into, filter with @where, aggregate with @count/@sum/@avg/@min/@max, group with @groupBy, sort with @orderBy, paginate with @limit/@offset, deduplicate with @distinct.\n- **Upsert** \u2014 @upsert for create-or-update semantics.\n- **Full-text search** \u2014 Query entities using free-text when @meta fullTextSearch is enabled.\n- **Return and throw** \u2014 Return results or throw errors to abort with a message.\n\n**When to define a workflow:** Every event needs a corresponding workflow. Lifecycle triggers are for automatic side effects on entity operations. The workflow describes WHAT happens \u2014 which entities are read, created, updated, or deleted.\n\n### Agent\n\nAn agent is an **AI-powered component** using an LLM. Agents understand natural language, make decisions, classify data, generate content, and interact with entities via tools.\n\n- Tools are the entities, events, and workflows an agent can call.\n- @public agents expose a REST chat endpoint.\n- Each agent should have a focused role \u2014 one agent per domain area.\n\n**When to define an agent:** Any task requiring natural language understanding, classification, content generation, or intelligent decision-making. Agents are NOT needed for simple CRUD \u2014 workflows handle that directly.\n\n**Agent goal:** Each agent should have a clear high-level objective explaining its purpose in the system. The goal answers \"why does this agent exist and what value does it provide?\"\n\n**Key agent capabilities** (design decisions \u2014 note which ones each agent needs):\n\n- **responseSchema** \u2014 Force the agent to return structured output matching a record type. Use when downstream code needs to process the agent's output programmatically (e.g., a classification agent returning a typed result).\n- **documents** \u2014 Attach documents for RAG (retrieval-augmented generation). Use when the agent needs access to reference material (e.g., product manuals, pricing lists, policy documents).\n- **validate** \u2014 Run a validation workflow on the agent's output before accepting it. Use when the agent's output must meet specific business rules.\n- **retry** \u2014 Retry policy for failed agent invocations. Use when the agent's task is critical and transient failures are possible.\n- **stateless** \u2014 If true, the agent has no conversation history. Use for one-shot classification or transformation tasks that don't need context from previous interactions.\n- **scratch** \u2014 Temporary mutable variables available during the agent's execution. Use when the agent needs working memory across tool calls within a single interaction.\n- **compact** \u2014 Number of conversation turns before older messages are summarized and discarded. Use for long-running agents to prevent context overflow.\n\n### Flow (Advanced)\n\nA flow is an **orchestration pipeline** connecting multiple agents and decision points. Use when a complex process requires sequential agent invocations with routing logic.\n\n**When to define a flow:** Multi-step AI processes where one agent's output feeds another, with conditional routing between them. Most applications don't need flows \u2014 they are for complex orchestration scenarios.\n\n### How Constructs Compose\n\nThe typical pattern is:\n1. **Entities** hold the data (the nouns)\n2. **Relationships** define how entities connect\n3. **Events** represent actions users or systems can take (the verbs)\n4. **Workflows** handle events by reading/writing entities\n5. **Agents** add intelligence \u2014 they are invoked by workflows when AI reasoning is needed\n6. **Flows** orchestrate multiple agents for complex multi-step AI processes\n";
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SEMANTICS_GUIDE = void 0;
4
+ exports.SEMANTICS_GUIDE = `## Agentlang Semantics Guide
5
+
6
+ Agentlang is a declarative language for building AI-powered applications. An application is a **module** containing entities, relationships, events, workflows, and agents. Understanding when to use each construct is critical for correct design.
7
+
8
+ ### Entity
9
+
10
+ An entity is a **persistent, database-backed domain object**. Every noun in your domain that needs to be stored, queried, or referenced is an entity. Examples: User, Product, Order, Lead, Ticket.
11
+
12
+ At design time, define entities with a name and description only — attributes are added during code generation. Focus on identifying the right set of entities: too few leads to overloaded entities; too many leads to unnecessary complexity.
13
+
14
+ **When to define an entity:** Any domain concept that has its own identity and lifecycle, needs CRUD operations, or is referenced by other constructs.
15
+
16
+ **When NOT to define an entity:** Temporary data, computed values, or concepts that only exist within a single workflow step.
17
+
18
+ **Inheritance:** An entity can extend a record or another entity to inherit its attributes. Use when multiple entities share a common set of fields.
19
+
20
+ **Entity-level features** (important design decisions — mark which ones apply to each entity):
21
+
22
+ - **@meta {"audit": true}** — Enable audit trail. Use when you need to track who changed what and when (e.g., compliance-sensitive entities like Orders, Payments, MedicalRecords).
23
+ - **@meta {"fullTextSearch": "\*"}** — Enable full-text search. Use when users need to search entity instances by free-text queries (e.g., Tickets, Articles, Products).
24
+ - **@rbac** — Role-based access control at the entity level. Define which roles can create/read/update/delete, and optional row-level filters (e.g., "users can only read their own records"). Use when different user roles need different access levels.
25
+ - **@before/@after triggers** — Lifecycle hooks that fire before or after create/update/delete operations. Use when an entity change should automatically trigger side effects (e.g., after creating a Ticket, auto-assign it; before updating an Order, validate inventory). Triggers reference events/workflows by name and can be @async.
26
+ - **@with_unique(attr1, attr2)** — Composite unique constraint across multiple attributes. Use when no single attribute is unique but the combination must be (e.g., unique email per organization, unique document per version).
27
+ - **@actions** — Bind named actions to events on an entity. Use when an entity needs custom operations beyond standard CRUD.
28
+ - **@expr** — Computed attributes whose values are automatically derived from other fields. Use when a field's value can always be calculated from other attributes (e.g., totalPrice = quantity * unitPrice). User-provided values override the computed expression.
29
+
30
+ ### Relationship
31
+
32
+ Relationships connect entities. There are exactly two kinds — choosing the right one is a critical design decision.
33
+
34
+ **contains (parent-child ownership):**
35
+ - The parent **owns** the child. The child's identity is scoped within the parent.
36
+ - Deleting the parent cascades to delete all children.
37
+ - The child has no meaning outside its parent.
38
+ - Use for: Orders containing OrderItems, Users containing Posts, Projects containing Tasks.
39
+
40
+ **between (cross-reference association):**
41
+ - Both entities have **independent lifecycles**. Neither owns the other.
42
+ - Deleting one side does NOT delete the other.
43
+ - Supports cardinality: one_one, one_many (default is many-to-many).
44
+ - Use for: Students enrolled in Courses, Employees assigned to Departments, Tags on Articles.
45
+
46
+ **Decision framework:** Ask "If I delete entity A, should entity B also be deleted?" If yes → contains. If no → between.
47
+
48
+ **Cardinality for between relationships:**
49
+ - one_one: Each A has exactly one B, and vice versa (e.g., User ↔ Profile).
50
+ - one_many: Each A has many Bs, but each B belongs to one A (e.g., Department → Employees).
51
+ - many_many (default): Each A can relate to many Bs and vice versa (e.g., Students ↔ Courses).
52
+
53
+ **Role aliases (@as):** When a relationship connects an entity to itself (self-referencing), use @as to distinguish the two roles. Example: Employee @as manager ↔ Employee @as report. Use when modeling hierarchies, mentorship, or any self-referential relationship.
54
+
55
+ **Relationship schemas:** A relationship can carry its own attributes (e.g., Enrollment between Student and Course might have enrolledOn and grade). Use when the association itself has data beyond just linking two entities.
56
+
57
+ ### Event
58
+
59
+ An event is a **command or action** that triggers a workflow. It defines the input data schema for that action.
60
+
61
+ - @public events expose a REST API endpoint (POST /api/Module/EventName).
62
+ - Events can extend a record or another event to inherit attributes.
63
+ - Events represent user actions (SubmitOrder, ApproveApplication) or system triggers (ProcessPayment, SendNotification).
64
+ - Event names should clearly describe the action being performed.
65
+
66
+ **When to define an event:** Any action that initiates a process, changes state, or triggers side effects.
67
+
68
+ ### Workflow
69
+
70
+ A workflow is the **procedural handler** for an event or a lifecycle trigger. It performs CRUD operations on entities, invokes agents, and orchestrates multi-step logic.
71
+
72
+ **Two forms:**
73
+
74
+ 1. **Event-driven (named):** The workflow name matches the event name. When the event fires, the workflow executes.
75
+ 2. **Lifecycle trigger:** Fires automatically before or after an entity's create, update, or delete operation. Use for automatic side effects (e.g., after creating a User, create a default Profile; before deleting an Order, check it's not shipped).
76
+
77
+ **Access control:** @withRole restricts who can invoke a workflow (e.g., only admins can run an approval workflow).
78
+
79
+ **What workflows can do:**
80
+ - **CRUD operations** — Create, query (with ? suffix), update, upsert, delete, and purge entity instances.
81
+ - **Sequential binding** — Chain operations with @as to bind results to variables for subsequent steps.
82
+ - **Control flow** — if/else conditionals and for-each loops over collections.
83
+ - **Error handling** — @catch for not_found and error cases; @empty for handling empty query results with fallback logic.
84
+ - **Side effects** — @then for post-operation logic (run additional statements after a create/update).
85
+ - **Joins and analytics** — Query across entities with @join/@left_join/@right_join/@full_join, project results with @into, filter with @where, aggregate with @count/@sum/@avg/@min/@max, group with @groupBy, sort with @orderBy, paginate with @limit/@offset, deduplicate with @distinct.
86
+ - **Upsert** — @upsert for create-or-update semantics.
87
+ - **Full-text search** — Query entities using free-text when @meta fullTextSearch is enabled.
88
+ - **Return and throw** — Return results or throw errors to abort with a message.
89
+
90
+ **When to define a workflow:** Every event needs a corresponding workflow. Lifecycle triggers are for automatic side effects on entity operations. The workflow describes WHAT happens — which entities are read, created, updated, or deleted.
91
+
92
+ ### Agent
93
+
94
+ An agent is an **AI-powered component** using an LLM. Agents understand natural language, make decisions, classify data, generate content, and interact with entities via tools.
95
+
96
+ - Tools are the entities, events, and workflows an agent can call.
97
+ - @public agents expose a REST chat endpoint.
98
+ - Each agent should have a focused role — one agent per domain area.
99
+
100
+ **When to define an agent:** Any task requiring natural language understanding, classification, content generation, or intelligent decision-making. Agents are NOT needed for simple CRUD — workflows handle that directly.
101
+
102
+ **Agent goal:** Each agent should have a clear high-level objective explaining its purpose in the system. The goal answers "why does this agent exist and what value does it provide?"
103
+
104
+ **Key agent capabilities** (design decisions — note which ones each agent needs):
105
+
106
+ - **responseSchema** — Force the agent to return structured output matching a record type. Use when downstream code needs to process the agent's output programmatically (e.g., a classification agent returning a typed result).
107
+ - **documents** — Attach documents for RAG (retrieval-augmented generation). Use when the agent needs access to reference material (e.g., product manuals, pricing lists, policy documents).
108
+ - **validate** — Run a validation workflow on the agent's output before accepting it. Use when the agent's output must meet specific business rules.
109
+ - **retry** — Retry policy for failed agent invocations. Use when the agent's task is critical and transient failures are possible.
110
+ - **stateless** — If true, the agent has no conversation history. Use for one-shot classification or transformation tasks that don't need context from previous interactions.
111
+ - **scratch** — Temporary mutable variables available during the agent's execution. Use when the agent needs working memory across tool calls within a single interaction.
112
+ - **compact** — Number of conversation turns before older messages are summarized and discarded. Use for long-running agents to prevent context overflow.
113
+
114
+ ### Flow (Advanced)
115
+
116
+ A flow is an **orchestration pipeline** connecting multiple agents and decision points. Use when a complex process requires sequential agent invocations with routing logic.
117
+
118
+ **When to define a flow:** Multi-step AI processes where one agent's output feeds another, with conditional routing between them. Most applications don't need flows — they are for complex orchestration scenarios.
119
+
120
+ ### How Constructs Compose
121
+
122
+ The typical pattern is:
123
+ 1. **Entities** hold the data (the nouns)
124
+ 2. **Relationships** define how entities connect
125
+ 3. **Events** represent actions users or systems can take (the verbs)
126
+ 4. **Workflows** handle events by reading/writing entities
127
+ 5. **Agents** add intelligence — they are invoked by workflows when AI reasoning is needed
128
+ 6. **Flows** orchestrate multiple agents for complex multi-step AI processes
129
+ `;
130
+ //# sourceMappingURL=semantics-guide.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"semantics-guide.js","sourceRoot":"","sources":["../../../../../../../libs/agentcraft/src/prompts/semantics-guide.ts"],"names":[],"mappings":";;;AAQa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6H9B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { CraftLlmProvider } from '../interfaces/llm-provider.interface';
2
+ import { ChatRequest, ChatResponse } from '../types/llm.types';
3
+ export declare class AnthropicCraftLlmService implements CraftLlmProvider {
4
+ private client;
5
+ private model;
6
+ private maxRetries;
7
+ private baseDelay;
8
+ constructor(model: string, apiKey: string);
9
+ chat(request: ChatRequest): Promise<ChatResponse>;
10
+ chatStream(request: ChatRequest, onChunk: (text: string) => void): Promise<ChatResponse>;
11
+ private withRetry;
12
+ private isRetryable;
13
+ }
@@ -0,0 +1,167 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AnthropicCraftLlmService = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const sdk_1 = __importDefault(require("@anthropic-ai/sdk"));
18
+ let AnthropicCraftLlmService = class AnthropicCraftLlmService {
19
+ client;
20
+ model;
21
+ maxRetries = 3;
22
+ baseDelay = 1000;
23
+ constructor(model, apiKey) {
24
+ this.client = new sdk_1.default({ apiKey });
25
+ this.model = model;
26
+ }
27
+ async chat(request) {
28
+ return this.withRetry(async () => {
29
+ const useCache = request.cacheControl ?? false;
30
+ const params = {
31
+ model: this.model,
32
+ max_tokens: request.maxTokens ?? 16384,
33
+ system: useCache
34
+ ? [
35
+ {
36
+ type: 'text',
37
+ text: request.system,
38
+ cache_control: { type: 'ephemeral' },
39
+ },
40
+ ]
41
+ : request.system,
42
+ messages: request.messages.map((m) => ({
43
+ role: m.role,
44
+ content: typeof m.content === 'string'
45
+ ? m.content
46
+ : m.content
47
+ .filter((b) => b.type === 'text')
48
+ .map((b) => b.text)
49
+ .join(''),
50
+ })),
51
+ };
52
+ if (request.tools?.length) {
53
+ params.tools = request.tools.map((t, i) => ({
54
+ name: t.name,
55
+ description: t.description ?? '',
56
+ input_schema: t.inputSchema,
57
+ ...(useCache && i === request.tools.length - 1
58
+ ? { cache_control: { type: 'ephemeral' } }
59
+ : {}),
60
+ }));
61
+ }
62
+ if (request.toolChoice) {
63
+ params.tool_choice = {
64
+ type: 'tool',
65
+ name: request.toolChoice.name,
66
+ };
67
+ }
68
+ const stream = this.client.messages.stream(params);
69
+ for await (const event of stream) {
70
+ void event;
71
+ }
72
+ const response = await stream.finalMessage();
73
+ const content = response.content
74
+ .filter((block) => block.type === 'text')
75
+ .map((block) => block.text)
76
+ .join('');
77
+ const toolCalls = response.content
78
+ .filter((block) => block.type === 'tool_use')
79
+ .map((block) => ({
80
+ id: block.id,
81
+ name: block.name,
82
+ input: block.input,
83
+ }));
84
+ return {
85
+ content: [{ type: 'text', text: content }],
86
+ stopReason: response.stop_reason === 'max_tokens' ? 'max_tokens' : 'end_turn',
87
+ toolCalls: toolCalls.length > 0 ? toolCalls : undefined,
88
+ truncated: response.stop_reason === 'max_tokens',
89
+ usage: {
90
+ inputTokens: response.usage.input_tokens,
91
+ outputTokens: response.usage.output_tokens,
92
+ cacheCreationInputTokens: response.usage.cache_creation_input_tokens ?? undefined,
93
+ cacheReadInputTokens: response.usage.cache_read_input_tokens ?? undefined,
94
+ },
95
+ };
96
+ });
97
+ }
98
+ async chatStream(request, onChunk) {
99
+ return this.withRetry(async () => {
100
+ const stream = this.client.messages.stream({
101
+ model: this.model,
102
+ max_tokens: request.maxTokens ?? 16384,
103
+ system: request.system,
104
+ messages: request.messages.map((m) => ({
105
+ role: m.role,
106
+ content: typeof m.content === 'string'
107
+ ? m.content
108
+ : m.content
109
+ .filter((b) => b.type === 'text')
110
+ .map((b) => b.text)
111
+ .join(''),
112
+ })),
113
+ });
114
+ let fullContent = '';
115
+ for await (const event of stream) {
116
+ if (event.type === 'content_block_delta' &&
117
+ event.delta.type === 'text_delta') {
118
+ onChunk(event.delta.text);
119
+ fullContent += event.delta.text;
120
+ }
121
+ }
122
+ const finalMessage = await stream.finalMessage();
123
+ return {
124
+ content: [{ type: 'text', text: fullContent }],
125
+ stopReason: finalMessage.stop_reason === 'max_tokens' ? 'max_tokens' : 'end_turn',
126
+ usage: {
127
+ inputTokens: finalMessage.usage.input_tokens,
128
+ outputTokens: finalMessage.usage.output_tokens,
129
+ },
130
+ };
131
+ });
132
+ }
133
+ async withRetry(fn) {
134
+ let lastError;
135
+ for (let attempt = 0; attempt < this.maxRetries; attempt++) {
136
+ try {
137
+ return await fn();
138
+ }
139
+ catch (err) {
140
+ lastError = err;
141
+ if (!this.isRetryable(lastError) || attempt === this.maxRetries - 1) {
142
+ throw lastError;
143
+ }
144
+ const delay = this.baseDelay * Math.pow(2, attempt);
145
+ await new Promise((resolve) => setTimeout(resolve, delay));
146
+ }
147
+ }
148
+ throw lastError;
149
+ }
150
+ isRetryable(error) {
151
+ const message = error.message.toLowerCase();
152
+ return (message.includes('rate limit') ||
153
+ message.includes('429') ||
154
+ message.includes('500') ||
155
+ message.includes('502') ||
156
+ message.includes('503') ||
157
+ message.includes('network') ||
158
+ message.includes('timeout') ||
159
+ message.includes('econnreset'));
160
+ }
161
+ };
162
+ exports.AnthropicCraftLlmService = AnthropicCraftLlmService;
163
+ exports.AnthropicCraftLlmService = AnthropicCraftLlmService = __decorate([
164
+ (0, common_1.Injectable)(),
165
+ __metadata("design:paramtypes", [String, String])
166
+ ], AnthropicCraftLlmService);
167
+ //# sourceMappingURL=anthropic-craft-llm.service.js.map