@solidxai/core 0.1.22-beta.2 → 0.1.22-beta.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 (472) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/constants/error-messages.d.ts +1 -1
  3. package/dist/constants/error-messages.d.ts.map +1 -1
  4. package/dist/constants/error-messages.js +1 -1
  5. package/dist/constants/error-messages.js.map +1 -1
  6. package/dist/controllers/agent-registry.controller.d.ts +8 -0
  7. package/dist/controllers/agent-registry.controller.d.ts.map +1 -1
  8. package/dist/controllers/agent-registry.controller.js +14 -0
  9. package/dist/controllers/agent-registry.controller.js.map +1 -1
  10. package/dist/controllers/agent-session.controller.d.ts +8 -1
  11. package/dist/controllers/agent-session.controller.d.ts.map +1 -1
  12. package/dist/controllers/agent-session.controller.js +66 -2
  13. package/dist/controllers/agent-session.controller.js.map +1 -1
  14. package/dist/controllers/media-migration-item.controller.d.ts +8 -0
  15. package/dist/controllers/media-migration-item.controller.d.ts.map +1 -0
  16. package/dist/controllers/media-migration-item.controller.js +66 -0
  17. package/dist/controllers/media-migration-item.controller.js.map +1 -0
  18. package/dist/controllers/media-migration-job.controller.d.ts +8 -0
  19. package/dist/controllers/media-migration-job.controller.d.ts.map +1 -0
  20. package/dist/controllers/media-migration-job.controller.js +66 -0
  21. package/dist/controllers/media-migration-job.controller.js.map +1 -0
  22. package/dist/controllers/media-migration.controller.d.ts +321 -0
  23. package/dist/controllers/media-migration.controller.d.ts.map +1 -0
  24. package/dist/controllers/media-migration.controller.js +197 -0
  25. package/dist/controllers/media-migration.controller.js.map +1 -0
  26. package/dist/controllers/media-migration.controller.spec.d.ts +2 -0
  27. package/dist/controllers/media-migration.controller.spec.d.ts.map +1 -0
  28. package/dist/controllers/media-migration.controller.spec.js +72 -0
  29. package/dist/controllers/media-migration.controller.spec.js.map +1 -0
  30. package/dist/controllers/test-data.controller.d.ts +12 -0
  31. package/dist/controllers/test-data.controller.d.ts.map +1 -0
  32. package/dist/controllers/test-data.controller.js +66 -0
  33. package/dist/controllers/test-data.controller.js.map +1 -0
  34. package/dist/controllers/test-data.controller.spec.d.ts +2 -0
  35. package/dist/controllers/test-data.controller.spec.d.ts.map +1 -0
  36. package/dist/controllers/test-data.controller.spec.js +78 -0
  37. package/dist/controllers/test-data.controller.spec.js.map +1 -0
  38. package/dist/dtos/create-agent-job.dto.d.ts +1 -0
  39. package/dist/dtos/create-agent-job.dto.d.ts.map +1 -1
  40. package/dist/dtos/create-agent-job.dto.js +8 -1
  41. package/dist/dtos/create-agent-job.dto.js.map +1 -1
  42. package/dist/dtos/create-agent-process.dto.d.ts +5 -0
  43. package/dist/dtos/create-agent-process.dto.d.ts.map +1 -1
  44. package/dist/dtos/create-agent-process.dto.js +37 -1
  45. package/dist/dtos/create-agent-process.dto.js.map +1 -1
  46. package/dist/dtos/create-agent-registry.dto.d.ts +5 -0
  47. package/dist/dtos/create-agent-registry.dto.d.ts.map +1 -1
  48. package/dist/dtos/create-agent-registry.dto.js +39 -1
  49. package/dist/dtos/create-agent-registry.dto.js.map +1 -1
  50. package/dist/dtos/create-agent-session.dto.js +1 -1
  51. package/dist/dtos/create-agent-session.dto.js.map +1 -1
  52. package/dist/dtos/create-media-migration.dto.d.ts +21 -0
  53. package/dist/dtos/create-media-migration.dto.d.ts.map +1 -0
  54. package/dist/dtos/create-media-migration.dto.js +126 -0
  55. package/dist/dtos/create-media-migration.dto.js.map +1 -0
  56. package/dist/dtos/create-media-storage-provider-metadata.dto.d.ts.map +1 -1
  57. package/dist/dtos/create-media-storage-provider-metadata.dto.js +11 -0
  58. package/dist/dtos/create-media-storage-provider-metadata.dto.js.map +1 -1
  59. package/dist/dtos/create-media-storage-provider-metadata.dto.spec.d.ts +2 -0
  60. package/dist/dtos/create-media-storage-provider-metadata.dto.spec.d.ts.map +1 -0
  61. package/dist/dtos/create-media-storage-provider-metadata.dto.spec.js +29 -0
  62. package/dist/dtos/create-media-storage-provider-metadata.dto.spec.js.map +1 -0
  63. package/dist/dtos/test-run-request.dto.d.ts +1 -0
  64. package/dist/dtos/test-run-request.dto.d.ts.map +1 -1
  65. package/dist/dtos/test-run-request.dto.js +7 -1
  66. package/dist/dtos/test-run-request.dto.js.map +1 -1
  67. package/dist/dtos/update-agent-deployment.dto.d.ts +8 -0
  68. package/dist/dtos/update-agent-deployment.dto.d.ts.map +1 -0
  69. package/dist/dtos/update-agent-deployment.dto.js +60 -0
  70. package/dist/dtos/update-agent-deployment.dto.js.map +1 -0
  71. package/dist/dtos/update-agent-job.dto.d.ts +1 -0
  72. package/dist/dtos/update-agent-job.dto.d.ts.map +1 -1
  73. package/dist/dtos/update-agent-job.dto.js +8 -1
  74. package/dist/dtos/update-agent-job.dto.js.map +1 -1
  75. package/dist/dtos/update-agent-process.dto.d.ts +5 -0
  76. package/dist/dtos/update-agent-process.dto.d.ts.map +1 -1
  77. package/dist/dtos/update-agent-process.dto.js +37 -1
  78. package/dist/dtos/update-agent-process.dto.js.map +1 -1
  79. package/dist/dtos/update-agent-registry.dto.d.ts +5 -0
  80. package/dist/dtos/update-agent-registry.dto.d.ts.map +1 -1
  81. package/dist/dtos/update-agent-registry.dto.js +39 -1
  82. package/dist/dtos/update-agent-registry.dto.js.map +1 -1
  83. package/dist/dtos/update-agent-session.dto.js +1 -1
  84. package/dist/dtos/update-agent-session.dto.js.map +1 -1
  85. package/dist/entities/agent-job.entity.d.ts +1 -0
  86. package/dist/entities/agent-job.entity.d.ts.map +1 -1
  87. package/dist/entities/agent-job.entity.js +7 -2
  88. package/dist/entities/agent-job.entity.js.map +1 -1
  89. package/dist/entities/agent-process.entity.d.ts +8 -0
  90. package/dist/entities/agent-process.entity.d.ts.map +1 -1
  91. package/dist/entities/agent-process.entity.js +38 -1
  92. package/dist/entities/agent-process.entity.js.map +1 -1
  93. package/dist/entities/agent-registry.entity.d.ts +5 -0
  94. package/dist/entities/agent-registry.entity.d.ts.map +1 -1
  95. package/dist/entities/agent-registry.entity.js +22 -1
  96. package/dist/entities/agent-registry.entity.js.map +1 -1
  97. package/dist/entities/agent-session.entity.d.ts.map +1 -1
  98. package/dist/entities/agent-session.entity.js +3 -1
  99. package/dist/entities/agent-session.entity.js.map +1 -1
  100. package/dist/entities/media-migration-item.entity.d.ts +19 -0
  101. package/dist/entities/media-migration-item.entity.d.ts.map +1 -0
  102. package/dist/entities/media-migration-item.entity.js +85 -0
  103. package/dist/entities/media-migration-item.entity.js.map +1 -0
  104. package/dist/entities/media-migration-job.entity.d.ts +30 -0
  105. package/dist/entities/media-migration-job.entity.d.ts.map +1 -0
  106. package/dist/entities/media-migration-job.entity.js +131 -0
  107. package/dist/entities/media-migration-job.entity.js.map +1 -0
  108. package/dist/helpers/agent-config-version-name.d.ts +2 -0
  109. package/dist/helpers/agent-config-version-name.d.ts.map +1 -0
  110. package/dist/helpers/agent-config-version-name.js +17 -0
  111. package/dist/helpers/agent-config-version-name.js.map +1 -0
  112. package/dist/helpers/agent-config-version-name.spec.d.ts +2 -0
  113. package/dist/helpers/agent-config-version-name.spec.d.ts.map +1 -0
  114. package/dist/helpers/agent-config-version-name.spec.js +31 -0
  115. package/dist/helpers/agent-config-version-name.spec.js.map +1 -0
  116. package/dist/helpers/typeorm-db-helper.d.ts.map +1 -1
  117. package/dist/helpers/typeorm-db-helper.js +9 -0
  118. package/dist/helpers/typeorm-db-helper.js.map +1 -1
  119. package/dist/index.d.ts +6 -0
  120. package/dist/index.d.ts.map +1 -1
  121. package/dist/index.js +5 -0
  122. package/dist/index.js.map +1 -1
  123. package/dist/jobs/database/media-migration-publisher-database.service.d.ts +13 -0
  124. package/dist/jobs/database/media-migration-publisher-database.service.d.ts.map +1 -0
  125. package/dist/jobs/database/media-migration-publisher-database.service.js +39 -0
  126. package/dist/jobs/database/media-migration-publisher-database.service.js.map +1 -0
  127. package/dist/jobs/database/media-migration-queue-options-database.d.ts +8 -0
  128. package/dist/jobs/database/media-migration-queue-options-database.d.ts.map +1 -0
  129. package/dist/jobs/database/media-migration-queue-options-database.js +10 -0
  130. package/dist/jobs/database/media-migration-queue-options-database.js.map +1 -0
  131. package/dist/jobs/database/media-migration-subscriber-database.service.d.ts +21 -0
  132. package/dist/jobs/database/media-migration-subscriber-database.service.d.ts.map +1 -0
  133. package/dist/jobs/database/media-migration-subscriber-database.service.js +48 -0
  134. package/dist/jobs/database/media-migration-subscriber-database.service.js.map +1 -0
  135. package/dist/jobs/database/test-run-queue-subscriber-database.service.d.ts.map +1 -1
  136. package/dist/jobs/database/test-run-queue-subscriber-database.service.js +8 -4
  137. package/dist/jobs/database/test-run-queue-subscriber-database.service.js.map +1 -1
  138. package/dist/jobs/media-migration-queues.spec.d.ts +2 -0
  139. package/dist/jobs/media-migration-queues.spec.d.ts.map +1 -0
  140. package/dist/jobs/media-migration-queues.spec.js +49 -0
  141. package/dist/jobs/media-migration-queues.spec.js.map +1 -0
  142. package/dist/jobs/rabbitmq/media-migration-publisher.service.d.ts +13 -0
  143. package/dist/jobs/rabbitmq/media-migration-publisher.service.d.ts.map +1 -0
  144. package/dist/jobs/rabbitmq/media-migration-publisher.service.js +39 -0
  145. package/dist/jobs/rabbitmq/media-migration-publisher.service.js.map +1 -0
  146. package/dist/jobs/rabbitmq/media-migration-queue-options.d.ts +8 -0
  147. package/dist/jobs/rabbitmq/media-migration-queue-options.d.ts.map +1 -0
  148. package/dist/jobs/rabbitmq/media-migration-queue-options.js +10 -0
  149. package/dist/jobs/rabbitmq/media-migration-queue-options.js.map +1 -0
  150. package/dist/jobs/rabbitmq/media-migration-subscriber.service.d.ts +19 -0
  151. package/dist/jobs/rabbitmq/media-migration-subscriber.service.d.ts.map +1 -0
  152. package/dist/jobs/rabbitmq/media-migration-subscriber.service.js +45 -0
  153. package/dist/jobs/rabbitmq/media-migration-subscriber.service.js.map +1 -0
  154. package/dist/jobs/redis/media-migration-publisher-redis.service.d.ts +13 -0
  155. package/dist/jobs/redis/media-migration-publisher-redis.service.d.ts.map +1 -0
  156. package/dist/jobs/redis/media-migration-publisher-redis.service.js +39 -0
  157. package/dist/jobs/redis/media-migration-publisher-redis.service.js.map +1 -0
  158. package/dist/jobs/redis/media-migration-queue-options-redis.d.ts +8 -0
  159. package/dist/jobs/redis/media-migration-queue-options-redis.d.ts.map +1 -0
  160. package/dist/jobs/redis/media-migration-queue-options-redis.js +10 -0
  161. package/dist/jobs/redis/media-migration-queue-options-redis.js.map +1 -0
  162. package/dist/jobs/redis/media-migration-subscriber-redis.service.d.ts +19 -0
  163. package/dist/jobs/redis/media-migration-subscriber-redis.service.d.ts.map +1 -0
  164. package/dist/jobs/redis/media-migration-subscriber-redis.service.js +45 -0
  165. package/dist/jobs/redis/media-migration-subscriber-redis.service.js.map +1 -0
  166. package/dist/repository/media-migration-item.repository.d.ts +12 -0
  167. package/dist/repository/media-migration-item.repository.d.ts.map +1 -0
  168. package/dist/repository/media-migration-item.repository.js +34 -0
  169. package/dist/repository/media-migration-item.repository.js.map +1 -0
  170. package/dist/repository/media-migration-job.repository.d.ts +12 -0
  171. package/dist/repository/media-migration-job.repository.d.ts.map +1 -0
  172. package/dist/repository/media-migration-job.repository.js +34 -0
  173. package/dist/repository/media-migration-job.repository.js.map +1 -0
  174. package/dist/resources/agent-embed/solid-agent-embed.js +244 -4
  175. package/dist/seeders/media-migration-metadata.spec.d.ts +2 -0
  176. package/dist/seeders/media-migration-metadata.spec.d.ts.map +1 -0
  177. package/dist/seeders/media-migration-metadata.spec.js +119 -0
  178. package/dist/seeders/media-migration-metadata.spec.js.map +1 -0
  179. package/dist/seeders/module-test-data.service.d.ts +19 -0
  180. package/dist/seeders/module-test-data.service.d.ts.map +1 -1
  181. package/dist/seeders/module-test-data.service.js +95 -15
  182. package/dist/seeders/module-test-data.service.js.map +1 -1
  183. package/dist/seeders/module-test-data.service.spec.d.ts +2 -0
  184. package/dist/seeders/module-test-data.service.spec.d.ts.map +1 -0
  185. package/dist/seeders/module-test-data.service.spec.js +158 -0
  186. package/dist/seeders/module-test-data.service.spec.js.map +1 -0
  187. package/dist/seeders/seed-data/solid-core-metadata.json +2565 -1162
  188. package/dist/services/agent-hub-process-manager.service.d.ts +4 -0
  189. package/dist/services/agent-hub-process-manager.service.d.ts.map +1 -1
  190. package/dist/services/agent-hub-process-manager.service.js +19 -3
  191. package/dist/services/agent-hub-process-manager.service.js.map +1 -1
  192. package/dist/services/agent-registry.service.d.ts +8 -0
  193. package/dist/services/agent-registry.service.d.ts.map +1 -1
  194. package/dist/services/agent-registry.service.js +32 -1
  195. package/dist/services/agent-registry.service.js.map +1 -1
  196. package/dist/services/crud.service.d.ts +1 -0
  197. package/dist/services/crud.service.d.ts.map +1 -1
  198. package/dist/services/crud.service.js +26 -2
  199. package/dist/services/crud.service.js.map +1 -1
  200. package/dist/services/file/disk-file.service.d.ts +3 -0
  201. package/dist/services/file/disk-file.service.d.ts.map +1 -1
  202. package/dist/services/file/disk-file.service.js +12 -0
  203. package/dist/services/file/disk-file.service.js.map +1 -1
  204. package/dist/services/file/file-service.interface.d.ts +1 -0
  205. package/dist/services/file/file-service.interface.d.ts.map +1 -1
  206. package/dist/services/file/file-service.interface.js.map +1 -1
  207. package/dist/services/file/multipart-part-size.d.ts +3 -0
  208. package/dist/services/file/multipart-part-size.d.ts.map +1 -0
  209. package/dist/services/file/multipart-part-size.js +16 -0
  210. package/dist/services/file/multipart-part-size.js.map +1 -0
  211. package/dist/services/file/multipart-part-size.spec.d.ts +2 -0
  212. package/dist/services/file/multipart-part-size.spec.d.ts.map +1 -0
  213. package/dist/services/file/multipart-part-size.spec.js +25 -0
  214. package/dist/services/file/multipart-part-size.spec.js.map +1 -0
  215. package/dist/services/file/s3-file.service.d.ts +5 -0
  216. package/dist/services/file/s3-file.service.d.ts.map +1 -1
  217. package/dist/services/file/s3-file.service.js +42 -12
  218. package/dist/services/file/s3-file.service.js.map +1 -1
  219. package/dist/services/file/s3-file.service.spec.d.ts +2 -0
  220. package/dist/services/file/s3-file.service.spec.d.ts.map +1 -0
  221. package/dist/services/file/s3-file.service.spec.js +54 -0
  222. package/dist/services/file/s3-file.service.spec.js.map +1 -0
  223. package/dist/services/media-download-url.service.d.ts +5 -2
  224. package/dist/services/media-download-url.service.d.ts.map +1 -1
  225. package/dist/services/media-download-url.service.js +22 -1
  226. package/dist/services/media-download-url.service.js.map +1 -1
  227. package/dist/services/media-download-url.service.spec.d.ts +2 -0
  228. package/dist/services/media-download-url.service.spec.d.ts.map +1 -0
  229. package/dist/services/media-download-url.service.spec.js +55 -0
  230. package/dist/services/media-download-url.service.spec.js.map +1 -0
  231. package/dist/services/media-file-storage.service.d.ts +17 -0
  232. package/dist/services/media-file-storage.service.d.ts.map +1 -0
  233. package/dist/services/media-file-storage.service.js +73 -0
  234. package/dist/services/media-file-storage.service.js.map +1 -0
  235. package/dist/services/media-file-storage.service.spec.d.ts +2 -0
  236. package/dist/services/media-file-storage.service.spec.d.ts.map +1 -0
  237. package/dist/services/media-file-storage.service.spec.js +46 -0
  238. package/dist/services/media-file-storage.service.spec.js.map +1 -0
  239. package/dist/services/media-migration/media-location.d.ts +20 -0
  240. package/dist/services/media-migration/media-location.d.ts.map +1 -0
  241. package/dist/services/media-migration/media-location.js +140 -0
  242. package/dist/services/media-migration/media-location.js.map +1 -0
  243. package/dist/services/media-migration/media-location.spec.d.ts +2 -0
  244. package/dist/services/media-migration/media-location.spec.d.ts.map +1 -0
  245. package/dist/services/media-migration/media-location.spec.js +148 -0
  246. package/dist/services/media-migration/media-location.spec.js.map +1 -0
  247. package/dist/services/media-migration/media-migration-runner.service.d.ts +44 -0
  248. package/dist/services/media-migration/media-migration-runner.service.d.ts.map +1 -0
  249. package/dist/services/media-migration/media-migration-runner.service.js +434 -0
  250. package/dist/services/media-migration/media-migration-runner.service.js.map +1 -0
  251. package/dist/services/media-migration/media-migration-scope.d.ts +21 -0
  252. package/dist/services/media-migration/media-migration-scope.d.ts.map +1 -0
  253. package/dist/services/media-migration/media-migration-scope.js +128 -0
  254. package/dist/services/media-migration/media-migration-scope.js.map +1 -0
  255. package/dist/services/media-migration/media-migration.integration.spec.d.ts +2 -0
  256. package/dist/services/media-migration/media-migration.integration.spec.d.ts.map +1 -0
  257. package/dist/services/media-migration/media-migration.integration.spec.js +688 -0
  258. package/dist/services/media-migration/media-migration.integration.spec.js.map +1 -0
  259. package/dist/services/media-migration/media-migration.service.d.ts +86 -0
  260. package/dist/services/media-migration/media-migration.service.d.ts.map +1 -0
  261. package/dist/services/media-migration/media-migration.service.js +468 -0
  262. package/dist/services/media-migration/media-migration.service.js.map +1 -0
  263. package/dist/services/media-migration/media-transfer.service.d.ts +26 -0
  264. package/dist/services/media-migration/media-transfer.service.d.ts.map +1 -0
  265. package/dist/services/media-migration/media-transfer.service.js +274 -0
  266. package/dist/services/media-migration/media-transfer.service.js.map +1 -0
  267. package/dist/services/media-migration/media-transfer.service.spec.d.ts +2 -0
  268. package/dist/services/media-migration/media-transfer.service.spec.d.ts.map +1 -0
  269. package/dist/services/media-migration/media-transfer.service.spec.js +266 -0
  270. package/dist/services/media-migration/media-transfer.service.spec.js.map +1 -0
  271. package/dist/services/media-migration/migration-error.d.ts +10 -0
  272. package/dist/services/media-migration/migration-error.d.ts.map +1 -0
  273. package/dist/services/media-migration/migration-error.js +40 -0
  274. package/dist/services/media-migration/migration-error.js.map +1 -0
  275. package/dist/services/media-migration/migration-error.spec.d.ts +2 -0
  276. package/dist/services/media-migration/migration-error.spec.d.ts.map +1 -0
  277. package/dist/services/media-migration/migration-error.spec.js +37 -0
  278. package/dist/services/media-migration/migration-error.spec.js.map +1 -0
  279. package/dist/services/media-migration-item.service.d.ts +12 -0
  280. package/dist/services/media-migration-item.service.d.ts.map +1 -0
  281. package/dist/services/media-migration-item.service.js +38 -0
  282. package/dist/services/media-migration-item.service.js.map +1 -0
  283. package/dist/services/media-migration-job.service.d.ts +12 -0
  284. package/dist/services/media-migration-job.service.d.ts.map +1 -0
  285. package/dist/services/media-migration-job.service.js +38 -0
  286. package/dist/services/media-migration-job.service.js.map +1 -0
  287. package/dist/services/media-storage-provider-changes.d.ts +15 -0
  288. package/dist/services/media-storage-provider-changes.d.ts.map +1 -0
  289. package/dist/services/media-storage-provider-changes.js +39 -0
  290. package/dist/services/media-storage-provider-changes.js.map +1 -0
  291. package/dist/services/media-storage-provider-changes.spec.d.ts +2 -0
  292. package/dist/services/media-storage-provider-changes.spec.d.ts.map +1 -0
  293. package/dist/services/media-storage-provider-changes.spec.js +47 -0
  294. package/dist/services/media-storage-provider-changes.spec.js.map +1 -0
  295. package/dist/services/media-storage-provider-metadata.service.d.ts +6 -1
  296. package/dist/services/media-storage-provider-metadata.service.d.ts.map +1 -1
  297. package/dist/services/media-storage-provider-metadata.service.js +59 -5
  298. package/dist/services/media-storage-provider-metadata.service.js.map +1 -1
  299. package/dist/services/media-storage-provider-metadata.service.spec.d.ts +2 -0
  300. package/dist/services/media-storage-provider-metadata.service.spec.d.ts.map +1 -0
  301. package/dist/services/media-storage-provider-metadata.service.spec.js +88 -0
  302. package/dist/services/media-storage-provider-metadata.service.spec.js.map +1 -0
  303. package/dist/services/media.service.d.ts +3 -1
  304. package/dist/services/media.service.d.ts.map +1 -1
  305. package/dist/services/media.service.js +12 -35
  306. package/dist/services/media.service.js.map +1 -1
  307. package/dist/services/mediaStorageProviders/file-s3-storage-provider.d.ts +4 -1
  308. package/dist/services/mediaStorageProviders/file-s3-storage-provider.d.ts.map +1 -1
  309. package/dist/services/mediaStorageProviders/file-s3-storage-provider.js +33 -23
  310. package/dist/services/mediaStorageProviders/file-s3-storage-provider.js.map +1 -1
  311. package/dist/services/mediaStorageProviders/file-s3-storage-provider.spec.d.ts +2 -0
  312. package/dist/services/mediaStorageProviders/file-s3-storage-provider.spec.d.ts.map +1 -0
  313. package/dist/services/mediaStorageProviders/file-s3-storage-provider.spec.js +63 -0
  314. package/dist/services/mediaStorageProviders/file-s3-storage-provider.spec.js.map +1 -0
  315. package/dist/services/mediaStorageProviders/file-storage-provider.d.ts +3 -1
  316. package/dist/services/mediaStorageProviders/file-storage-provider.d.ts.map +1 -1
  317. package/dist/services/mediaStorageProviders/file-storage-provider.js +8 -9
  318. package/dist/services/mediaStorageProviders/file-storage-provider.js.map +1 -1
  319. package/dist/services/settings/default-settings-provider.service.d.ts +12 -2
  320. package/dist/services/settings/default-settings-provider.service.d.ts.map +1 -1
  321. package/dist/services/settings/default-settings-provider.service.js +7 -1
  322. package/dist/services/settings/default-settings-provider.service.js.map +1 -1
  323. package/dist/solid-core.module.d.ts.map +1 -1
  324. package/dist/solid-core.module.js +41 -0
  325. package/dist/solid-core.module.js.map +1 -1
  326. package/dist/testing/adapters/ui/browser-provisioner.d.ts +11 -0
  327. package/dist/testing/adapters/ui/browser-provisioner.d.ts.map +1 -1
  328. package/dist/testing/adapters/ui/browser-provisioner.js +51 -1
  329. package/dist/testing/adapters/ui/browser-provisioner.js.map +1 -1
  330. package/dist/testing/adapters/ui/browser-provisioner.spec.d.ts +2 -0
  331. package/dist/testing/adapters/ui/browser-provisioner.spec.d.ts.map +1 -0
  332. package/dist/testing/adapters/ui/browser-provisioner.spec.js +137 -0
  333. package/dist/testing/adapters/ui/browser-provisioner.spec.js.map +1 -0
  334. package/dist/testing/adapters/ui/playwright-adapter.d.ts +7 -0
  335. package/dist/testing/adapters/ui/playwright-adapter.d.ts.map +1 -1
  336. package/dist/testing/adapters/ui/playwright-adapter.js +37 -8
  337. package/dist/testing/adapters/ui/playwright-adapter.js.map +1 -1
  338. package/dist/testing/adapters/ui/run-video.d.ts +40 -0
  339. package/dist/testing/adapters/ui/run-video.d.ts.map +1 -0
  340. package/dist/testing/adapters/ui/run-video.js +113 -0
  341. package/dist/testing/adapters/ui/run-video.js.map +1 -0
  342. package/dist/testing/adapters/ui/run-video.spec.d.ts +2 -0
  343. package/dist/testing/adapters/ui/run-video.spec.d.ts.map +1 -0
  344. package/dist/testing/adapters/ui/run-video.spec.js +62 -0
  345. package/dist/testing/adapters/ui/run-video.spec.js.map +1 -0
  346. package/dist/testing/contracts/testing-metadata.types.d.ts +1 -0
  347. package/dist/testing/contracts/testing-metadata.types.d.ts.map +1 -1
  348. package/dist/testing/contracts/testing-metadata.types.js.map +1 -1
  349. package/dist/testing/core/testing-engine.d.ts +1 -1
  350. package/dist/testing/core/testing-engine.d.ts.map +1 -1
  351. package/dist/testing/core/testing-engine.js +22 -4
  352. package/dist/testing/core/testing-engine.js.map +1 -1
  353. package/dist/testing/reporter/lifecycle-events.types.d.ts +1 -1
  354. package/dist/testing/reporter/lifecycle-events.types.d.ts.map +1 -1
  355. package/dist/testing/reporter/lifecycle-events.types.js.map +1 -1
  356. package/dist/testing/reporter/lifecycle-webhook-reporter.d.ts.map +1 -1
  357. package/dist/testing/reporter/lifecycle-webhook-reporter.js +2 -0
  358. package/dist/testing/reporter/lifecycle-webhook-reporter.js.map +1 -1
  359. package/dist/testing/runner/read-scenarios-file.d.ts +1 -0
  360. package/dist/testing/runner/read-scenarios-file.d.ts.map +1 -1
  361. package/dist/testing/runner/read-scenarios-file.js +20 -0
  362. package/dist/testing/runner/read-scenarios-file.js.map +1 -1
  363. package/dist/testing/runner/run-from-metadata.d.ts.map +1 -1
  364. package/dist/testing/runner/run-from-metadata.js +9 -1
  365. package/dist/testing/runner/run-from-metadata.js.map +1 -1
  366. package/dist/testing/runner/run-from-metadata.spec.js +12 -1
  367. package/dist/testing/runner/run-from-metadata.spec.js.map +1 -1
  368. package/dist/transformers/typeorm/bigint-to-number-transformer.d.ts +3 -0
  369. package/dist/transformers/typeorm/bigint-to-number-transformer.d.ts.map +1 -0
  370. package/dist/transformers/typeorm/bigint-to-number-transformer.js +8 -0
  371. package/dist/transformers/typeorm/bigint-to-number-transformer.js.map +1 -0
  372. package/package.json +2 -1
  373. package/postman/media-migration.postman_collection.json +519 -0
  374. package/postman/media-migration.test.postman_collection.json +1013 -0
  375. package/resources/agent-embed/solid-agent-embed.js +244 -4
  376. package/src/constants/error-messages.ts +2 -1
  377. package/src/controllers/agent-registry.controller.ts +8 -1
  378. package/src/controllers/agent-session.controller.ts +37 -2
  379. package/src/controllers/media-migration-item.controller.ts +32 -0
  380. package/src/controllers/media-migration-job.controller.ts +32 -0
  381. package/src/controllers/media-migration.controller.spec.ts +85 -0
  382. package/src/controllers/media-migration.controller.ts +123 -0
  383. package/src/controllers/test-data.controller.spec.ts +94 -0
  384. package/src/controllers/test-data.controller.ts +58 -0
  385. package/src/dtos/create-agent-job.dto.ts +6 -0
  386. package/src/dtos/create-agent-process.dto.ts +32 -1
  387. package/src/dtos/create-agent-registry.dto.ts +34 -1
  388. package/src/dtos/create-agent-session.dto.ts +1 -1
  389. package/src/dtos/create-media-migration.dto.ts +95 -0
  390. package/src/dtos/create-media-storage-provider-metadata.dto.spec.ts +35 -0
  391. package/src/dtos/create-media-storage-provider-metadata.dto.ts +9 -0
  392. package/src/dtos/test-run-request.dto.ts +6 -0
  393. package/src/dtos/update-agent-deployment.dto.ts +37 -0
  394. package/src/dtos/update-agent-job.dto.ts +6 -0
  395. package/src/dtos/update-agent-process.dto.ts +32 -1
  396. package/src/dtos/update-agent-registry.dto.ts +34 -1
  397. package/src/dtos/update-agent-session.dto.ts +1 -1
  398. package/src/entities/agent-job.entity.ts +5 -1
  399. package/src/entities/agent-process.entity.ts +28 -0
  400. package/src/entities/agent-registry.entity.ts +15 -0
  401. package/src/entities/agent-session.entity.ts +3 -0
  402. package/src/entities/media-migration-item.entity.ts +67 -0
  403. package/src/entities/media-migration-job.entity.ts +103 -0
  404. package/src/helpers/agent-config-version-name.spec.ts +35 -0
  405. package/src/helpers/agent-config-version-name.ts +16 -0
  406. package/src/helpers/typeorm-db-helper.ts +12 -0
  407. package/src/index.ts +8 -0
  408. package/src/jobs/database/media-migration-publisher-database.service.ts +24 -0
  409. package/src/jobs/database/media-migration-queue-options-database.ts +9 -0
  410. package/src/jobs/database/media-migration-subscriber-database.service.ts +37 -0
  411. package/src/jobs/database/test-run-queue-subscriber-database.service.ts +10 -6
  412. package/src/jobs/media-migration-queues.spec.ts +53 -0
  413. package/src/jobs/rabbitmq/media-migration-publisher.service.ts +24 -0
  414. package/src/jobs/rabbitmq/media-migration-queue-options.ts +9 -0
  415. package/src/jobs/rabbitmq/media-migration-subscriber.service.ts +31 -0
  416. package/src/jobs/redis/media-migration-publisher-redis.service.ts +24 -0
  417. package/src/jobs/redis/media-migration-queue-options-redis.ts +9 -0
  418. package/src/jobs/redis/media-migration-subscriber-redis.service.ts +31 -0
  419. package/src/repository/media-migration-item.repository.ts +17 -0
  420. package/src/repository/media-migration-job.repository.ts +17 -0
  421. package/src/seeders/media-migration-metadata.spec.ts +97 -0
  422. package/src/seeders/module-test-data.service.spec.ts +184 -0
  423. package/src/seeders/module-test-data.service.ts +136 -20
  424. package/src/seeders/seed-data/solid-core-metadata.json +2565 -1162
  425. package/src/services/agent-hub-process-manager.service.ts +25 -4
  426. package/src/services/agent-registry.service.ts +35 -2
  427. package/src/services/crud.service.ts +30 -2
  428. package/src/services/file/disk-file.service.ts +16 -0
  429. package/src/services/file/file-service.interface.ts +2 -0
  430. package/src/services/file/multipart-part-size.spec.ts +26 -0
  431. package/src/services/file/multipart-part-size.ts +18 -0
  432. package/src/services/file/s3-file.service.spec.ts +65 -0
  433. package/src/services/file/s3-file.service.ts +56 -15
  434. package/src/services/media-download-url.service.spec.ts +62 -0
  435. package/src/services/media-download-url.service.ts +33 -2
  436. package/src/services/media-file-storage.service.spec.ts +51 -0
  437. package/src/services/media-file-storage.service.ts +75 -0
  438. package/src/services/media-migration/media-location.spec.ts +130 -0
  439. package/src/services/media-migration/media-location.ts +149 -0
  440. package/src/services/media-migration/media-migration-runner.service.ts +563 -0
  441. package/src/services/media-migration/media-migration-scope.ts +136 -0
  442. package/src/services/media-migration/media-migration.integration.spec.ts +802 -0
  443. package/src/services/media-migration/media-migration.service.ts +576 -0
  444. package/src/services/media-migration/media-transfer.service.spec.ts +288 -0
  445. package/src/services/media-migration/media-transfer.service.ts +285 -0
  446. package/src/services/media-migration/migration-error.spec.ts +41 -0
  447. package/src/services/media-migration/migration-error.ts +70 -0
  448. package/src/services/media-migration-item.service.ts +20 -0
  449. package/src/services/media-migration-job.service.ts +20 -0
  450. package/src/services/media-storage-provider-changes.spec.ts +55 -0
  451. package/src/services/media-storage-provider-changes.ts +70 -0
  452. package/src/services/media-storage-provider-metadata.service.spec.ts +99 -0
  453. package/src/services/media-storage-provider-metadata.service.ts +71 -4
  454. package/src/services/media.service.ts +10 -50
  455. package/src/services/mediaStorageProviders/file-s3-storage-provider.spec.ts +69 -0
  456. package/src/services/mediaStorageProviders/file-s3-storage-provider.ts +40 -30
  457. package/src/services/mediaStorageProviders/file-storage-provider.ts +8 -9
  458. package/src/services/settings/default-settings-provider.service.ts +11 -1
  459. package/src/solid-core.module.ts +41 -0
  460. package/src/testing/adapters/ui/browser-provisioner.spec.ts +131 -0
  461. package/src/testing/adapters/ui/browser-provisioner.ts +85 -2
  462. package/src/testing/adapters/ui/playwright-adapter.ts +48 -10
  463. package/src/testing/adapters/ui/run-video.spec.ts +72 -0
  464. package/src/testing/adapters/ui/run-video.ts +122 -0
  465. package/src/testing/contracts/testing-metadata.types.ts +5 -0
  466. package/src/testing/core/testing-engine.ts +28 -5
  467. package/src/testing/reporter/lifecycle-events.types.ts +2 -1
  468. package/src/testing/reporter/lifecycle-webhook-reporter.ts +1 -0
  469. package/src/testing/runner/read-scenarios-file.ts +24 -0
  470. package/src/testing/runner/run-from-metadata.spec.ts +15 -1
  471. package/src/testing/runner/run-from-metadata.ts +13 -5
  472. package/src/transformers/typeorm/bigint-to-number-transformer.ts +7 -0
@@ -24,7 +24,7 @@ const update_agent_job_dto_1 = require("./update-agent-job.dto");
24
24
  const update_agent_hub_tag_dto_1 = require("./update-agent-hub-tag.dto");
25
25
  class UpdateAgentRegistryDto {
26
26
  static _OPENAPI_METADATA_FACTORY() {
27
- return { id: { required: true, type: () => Number }, name: { required: true, type: () => String }, title: { required: true, type: () => String }, description: { required: false, type: () => String }, iconName: { required: false, type: () => String }, systemPrompt: { required: true, type: () => String }, requiredInputs: { required: true, type: () => String }, reasoningModelKey: { required: true, type: () => String }, fastModelKey: { required: true, type: () => String }, status: { required: true, type: () => String }, stepLimit: { required: true, type: () => Number }, turnStepLimit: { required: true, type: () => Number }, costLimit: { required: true, type: () => Number }, configVersion: { required: false, type: () => Number }, moduleId: { required: true, type: () => Number }, moduleUserKey: { required: true, type: () => String }, tags: { required: true, type: () => [require("./update-agent-hub-tag.dto").UpdateAgentHubTagDto] }, tagsIds: { required: true, type: () => [Number] }, tagsCommand: { required: true, type: () => String }, agentTools: { required: true, type: () => [require("./update-agent-tool.dto").UpdateAgentToolDto] }, agentToolsIds: { required: true, type: () => [Number] }, agentToolsCommand: { required: true, type: () => String }, agentSkills: { required: true, type: () => [require("./update-agent-skill.dto").UpdateAgentSkillDto] }, agentSkillsIds: { required: true, type: () => [Number] }, agentSkillsCommand: { required: true, type: () => String }, agentRoles: { required: true, type: () => [require("./update-agent-role.dto").UpdateAgentRoleDto] }, agentRolesIds: { required: true, type: () => [Number] }, agentRolesCommand: { required: true, type: () => String }, agentSecrets: { required: true, type: () => [require("./update-agent-secret.dto").UpdateAgentSecretDto] }, agentSecretsIds: { required: true, type: () => [Number] }, agentSecretsCommand: { required: true, type: () => String }, agentProcesses: { required: true, type: () => [require("./update-agent-process.dto").UpdateAgentProcessDto] }, agentProcessesIds: { required: true, type: () => [Number] }, agentProcessesCommand: { required: true, type: () => String }, agentSessions: { required: true, type: () => [require("./update-agent-session.dto").UpdateAgentSessionDto] }, agentSessionsIds: { required: true, type: () => [Number] }, agentSessionsCommand: { required: true, type: () => String }, agentJobs: { required: true, type: () => [require("./update-agent-job.dto").UpdateAgentJobDto] }, agentJobsIds: { required: true, type: () => [Number] }, agentJobsCommand: { required: true, type: () => String } };
27
+ return { id: { required: true, type: () => Number }, name: { required: true, type: () => String }, title: { required: true, type: () => String }, description: { required: false, type: () => String }, iconName: { required: false, type: () => String }, systemPrompt: { required: true, type: () => String }, requiredInputs: { required: true, type: () => String }, reasoningModelKey: { required: true, type: () => String }, fastModelKey: { required: true, type: () => String }, status: { required: true, type: () => String }, stepLimit: { required: true, type: () => Number }, turnStepLimit: { required: true, type: () => Number }, costLimit: { required: true, type: () => Number }, configVersion: { required: false, type: () => Number }, runner: { required: false, type: () => String, nullable: true }, minProcesses: { required: false, type: () => Number, minimum: 0 }, maxProcesses: { required: false, type: () => Number, nullable: true, minimum: 1 }, processCpu: { required: false, type: () => Number, nullable: true, minimum: 1 }, processMemory: { required: false, type: () => Number, nullable: true, minimum: 1 }, moduleId: { required: true, type: () => Number }, moduleUserKey: { required: true, type: () => String }, tags: { required: true, type: () => [require("./update-agent-hub-tag.dto").UpdateAgentHubTagDto] }, tagsIds: { required: true, type: () => [Number] }, tagsCommand: { required: true, type: () => String }, agentTools: { required: true, type: () => [require("./update-agent-tool.dto").UpdateAgentToolDto] }, agentToolsIds: { required: true, type: () => [Number] }, agentToolsCommand: { required: true, type: () => String }, agentSkills: { required: true, type: () => [require("./update-agent-skill.dto").UpdateAgentSkillDto] }, agentSkillsIds: { required: true, type: () => [Number] }, agentSkillsCommand: { required: true, type: () => String }, agentRoles: { required: true, type: () => [require("./update-agent-role.dto").UpdateAgentRoleDto] }, agentRolesIds: { required: true, type: () => [Number] }, agentRolesCommand: { required: true, type: () => String }, agentSecrets: { required: true, type: () => [require("./update-agent-secret.dto").UpdateAgentSecretDto] }, agentSecretsIds: { required: true, type: () => [Number] }, agentSecretsCommand: { required: true, type: () => String }, agentProcesses: { required: true, type: () => [require("./update-agent-process.dto").UpdateAgentProcessDto] }, agentProcessesIds: { required: true, type: () => [Number] }, agentProcessesCommand: { required: true, type: () => String }, agentSessions: { required: true, type: () => [require("./update-agent-session.dto").UpdateAgentSessionDto] }, agentSessionsIds: { required: true, type: () => [Number] }, agentSessionsCommand: { required: true, type: () => String }, agentJobs: { required: true, type: () => [require("./update-agent-job.dto").UpdateAgentJobDto] }, agentJobsIds: { required: true, type: () => [Number] }, agentJobsCommand: { required: true, type: () => String } };
28
28
  }
29
29
  }
30
30
  exports.UpdateAgentRegistryDto = UpdateAgentRegistryDto;
@@ -121,6 +121,44 @@ __decorate([
121
121
  (0, swagger_1.ApiProperty)({ required: false }),
122
122
  __metadata("design:type", Number)
123
123
  ], UpdateAgentRegistryDto.prototype, "configVersion", void 0);
124
+ __decorate([
125
+ (0, class_validator_1.IsOptional)(),
126
+ (0, class_validator_1.IsString)(),
127
+ (0, class_validator_1.IsNotEmpty)(),
128
+ (0, swagger_1.ApiProperty)({ required: false, nullable: true, type: String }),
129
+ __metadata("design:type", String)
130
+ ], UpdateAgentRegistryDto.prototype, "runner", void 0);
131
+ __decorate([
132
+ (0, class_validator_1.ValidateIf)((_object, value) => value !== undefined),
133
+ (0, class_validator_1.IsInt)(),
134
+ (0, class_validator_1.Min)(0),
135
+ (0, swagger_1.ApiProperty)({ required: false, minimum: 0 }),
136
+ __metadata("design:type", Number)
137
+ ], UpdateAgentRegistryDto.prototype, "minProcesses", void 0);
138
+ __decorate([
139
+ (0, class_validator_1.IsOptional)(),
140
+ (0, class_transformer_1.Type)(() => Number),
141
+ (0, class_validator_1.IsInt)(),
142
+ (0, class_validator_1.Min)(1),
143
+ (0, swagger_1.ApiProperty)({ required: false, nullable: true, type: Number, minimum: 1 }),
144
+ __metadata("design:type", Number)
145
+ ], UpdateAgentRegistryDto.prototype, "maxProcesses", void 0);
146
+ __decorate([
147
+ (0, class_validator_1.IsOptional)(),
148
+ (0, class_transformer_1.Type)(() => Number),
149
+ (0, class_validator_1.IsInt)(),
150
+ (0, class_validator_1.Min)(1),
151
+ (0, swagger_1.ApiProperty)({ required: false, nullable: true, type: Number, minimum: 1 }),
152
+ __metadata("design:type", Number)
153
+ ], UpdateAgentRegistryDto.prototype, "processCpu", void 0);
154
+ __decorate([
155
+ (0, class_validator_1.IsOptional)(),
156
+ (0, class_transformer_1.Type)(() => Number),
157
+ (0, class_validator_1.IsInt)(),
158
+ (0, class_validator_1.Min)(1),
159
+ (0, swagger_1.ApiProperty)({ required: false, nullable: true, type: Number, minimum: 1 }),
160
+ __metadata("design:type", Number)
161
+ ], UpdateAgentRegistryDto.prototype, "processMemory", void 0);
124
162
  __decorate([
125
163
  (0, class_validator_1.IsOptional)(),
126
164
  (0, class_validator_1.IsInt)(),
@@ -1 +1 @@
1
- {"version":3,"file":"update-agent-registry.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-registry.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAoH;AACpH,6CAA8C;AAC9C,yDAAyC;AACzC,mEAA6D;AAC7D,qEAA+D;AAC/D,mEAA6D;AAC7D,uEAAiE;AACjE,yEAAmE;AACnE,yEAAmE;AACnE,iEAA2D;AAC3D,yEAAkE;AAElE,MAAa,sBAAsB;;;;CAmOlC;AAnOD,wDAmOC;AAhOG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;kDACG;AAMX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACD;AAMb;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;qDACA;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2DACZ;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;wDACf;AAMlB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACO;AAMrB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,G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AA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gDAAqB,CAAC;;6DACK;AAKvC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;gEACa;AAK3B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;oEACe;AAO7B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wCAAiB,CAAC;;yDACC;AAK/B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;4DACS;AAKvB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;gEACW","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, IsNumber, ValidateNested, IsArray } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentToolDto } from './update-agent-tool.dto';\nimport { UpdateAgentSkillDto } from './update-agent-skill.dto';\nimport { UpdateAgentRoleDto } from './update-agent-role.dto';\nimport { UpdateAgentSecretDto } from './update-agent-secret.dto';\nimport { UpdateAgentProcessDto } from './update-agent-process.dto';\nimport { UpdateAgentSessionDto } from './update-agent-session.dto';\nimport { UpdateAgentJobDto } from './update-agent-job.dto';\nimport { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';\n\nexport class UpdateAgentRegistryDto {\n @IsOptional()\n @IsInt()\n id: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n name: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n title: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n description?: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n iconName?: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n systemPrompt: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n requiredInputs: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n reasoningModelKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n fastModelKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n stepLimit: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n turnStepLimit: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsNumber()\n @ApiProperty()\n costLimit: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty({ required: false })\n configVersion?: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty({ required: false })\n moduleId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty({ required: false })\n moduleUserKey: string;\n\n @IsOptional()\n @ApiProperty({ required: false })\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentHubTagDto)\n tags: UpdateAgentHubTagDto[];\n\n @IsOptional()\n @IsArray()\n @Type(() => Number)\n @IsInt({ each: true })\n @ApiProperty({ required: false })\n tagsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty({ required: false })\n tagsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentToolDto)\n agentTools: UpdateAgentToolDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentToolsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentToolsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSkillDto)\n agentSkills: UpdateAgentSkillDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSkillsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSkillsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentRoleDto)\n agentRoles: UpdateAgentRoleDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentRolesIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentRolesCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSecretDto)\n agentSecrets: UpdateAgentSecretDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSecretsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSecretsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentProcessDto)\n agentProcesses: UpdateAgentProcessDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentProcessesIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentProcessesCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSessionDto)\n agentSessions: UpdateAgentSessionDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSessionsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSessionsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentJobDto)\n agentJobs: UpdateAgentJobDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentJobsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentJobsCommand: string;\n}\n"]}
1
+ {"version":3,"file":"update-agent-registry.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-registry.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAqI;AACrI,6CAA8C;AAC9C,yDAAyC;AACzC,mEAA6D;AAC7D,qEAA+D;AAC/D,mEAA6D;AAC7D,uEAAiE;AACjE,yEAAmE;AACnE,yEAAmE;AACnE,iEAA2D;AAC3D,yEAAkE;AAElE,MAAa,sBAAsB;;;;CAoQlC;AApQD,wDAoQC;AAjQG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;kDACG;AAMX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACD;AAMb;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;qDACA;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2DACZ;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;wDACf;AAMlB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACO;AAMrB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;8DACS;AAMvB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,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AAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gDAAqB,CAAC;;6DACK;AAKvC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;gEACa;AAK3B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;oEACe;AAO7B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wCAAiB,CAAC;;yDACC;AAK/B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;4DACS;AAKvB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;gEACW","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, IsNumber, ValidateNested, IsArray, Min, ValidateIf } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentToolDto } from './update-agent-tool.dto';\nimport { UpdateAgentSkillDto } from './update-agent-skill.dto';\nimport { UpdateAgentRoleDto } from './update-agent-role.dto';\nimport { UpdateAgentSecretDto } from './update-agent-secret.dto';\nimport { UpdateAgentProcessDto } from './update-agent-process.dto';\nimport { UpdateAgentSessionDto } from './update-agent-session.dto';\nimport { UpdateAgentJobDto } from './update-agent-job.dto';\nimport { UpdateAgentHubTagDto } from './update-agent-hub-tag.dto';\n\nexport class UpdateAgentRegistryDto {\n @IsOptional()\n @IsInt()\n id: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n name: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n title: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n description?: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false })\n iconName?: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n systemPrompt: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n requiredInputs: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n reasoningModelKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n fastModelKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n stepLimit: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n turnStepLimit: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsNumber()\n @ApiProperty()\n costLimit: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty({ required: false })\n configVersion?: number;\n\n @IsOptional()\n @IsString()\n @IsNotEmpty()\n @ApiProperty({ required: false, nullable: true, type: String })\n runner?: string | null;\n\n @ValidateIf((_object, value) => value !== undefined)\n @IsInt()\n @Min(0)\n @ApiProperty({ required: false, minimum: 0 })\n minProcesses?: number;\n\n @IsOptional()\n @Type(() => Number)\n @IsInt()\n @Min(1)\n @ApiProperty({ required: false, nullable: true, type: Number, minimum: 1 })\n maxProcesses?: number | null;\n\n @IsOptional()\n @Type(() => Number)\n @IsInt()\n @Min(1)\n @ApiProperty({ required: false, nullable: true, type: Number, minimum: 1 })\n processCpu?: number | null;\n\n @IsOptional()\n @Type(() => Number)\n @IsInt()\n @Min(1)\n @ApiProperty({ required: false, nullable: true, type: Number, minimum: 1 })\n processMemory?: number | null;\n\n @IsOptional()\n @IsInt()\n @ApiProperty({ required: false })\n moduleId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty({ required: false })\n moduleUserKey: string;\n\n @IsOptional()\n @ApiProperty({ required: false })\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentHubTagDto)\n tags: UpdateAgentHubTagDto[];\n\n @IsOptional()\n @IsArray()\n @Type(() => Number)\n @IsInt({ each: true })\n @ApiProperty({ required: false })\n tagsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty({ required: false })\n tagsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentToolDto)\n agentTools: UpdateAgentToolDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentToolsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentToolsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSkillDto)\n agentSkills: UpdateAgentSkillDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSkillsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSkillsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentRoleDto)\n agentRoles: UpdateAgentRoleDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentRolesIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentRolesCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSecretDto)\n agentSecrets: UpdateAgentSecretDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSecretsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSecretsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentProcessDto)\n agentProcesses: UpdateAgentProcessDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentProcessesIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentProcessesCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSessionDto)\n agentSessions: UpdateAgentSessionDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSessionsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSessionsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentJobDto)\n agentJobs: UpdateAgentJobDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentJobsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentJobsCommand: string;\n}\n"]}
@@ -57,7 +57,7 @@ __decorate([
57
57
  (0, class_validator_1.IsNotEmpty)(),
58
58
  (0, class_validator_1.IsOptional)(),
59
59
  (0, class_validator_1.IsString)(),
60
- (0, swagger_1.ApiProperty)(),
60
+ (0, swagger_1.ApiProperty)({ description: "Original session entry point. Use api or webhook for the background jobs inbox." }),
61
61
  __metadata("design:type", String)
62
62
  ], UpdateAgentSessionDto.prototype, "trigger", void 0);
63
63
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"update-agent-session.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-session.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAkI;AAClI,6CAA8C;AAC9C,yDAAyC;AACzC,iEAA2D;AAC3D,qEAA+D;AAC/D,+FAAwF;AACxF,qFAA8E;AAE9E,MAAa,qBAAqB;;qXAiCxB,CAAC,QAAQ,EAAE,UAAU,CAAC;;CAqJ/B;AAtLD,sDAsLC;AAnLG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iDACG;AAKX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;I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GAAE;;wEACoB","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, IsNumber, IsDate, ValidateNested, IsArray, IsIn } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentJobDto } from './update-agent-job.dto';\nimport { UpdateAgentEventDto } from './update-agent-event.dto';\nimport { UpdateAgentSessionCheckpointDto } from './update-agent-session-checkpoint.dto';\nimport { UpdateAgentHumanRequestDto } from './update-agent-human-request.dto';\n\nexport class UpdateAgentSessionDto {\n @IsOptional()\n @IsInt()\n id: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n agentId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentUserKey: string;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n processId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n processUserKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n trigger: string;\n\n @IsOptional()\n @IsString()\n @IsIn([\"solidx\", \"agentHub\"])\n @ApiProperty({ enum: [\"solidx\", \"agentHub\"], required: false })\n runtime: \"solidx\" | \"agentHub\";\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n userUserKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty({ description: \"queued: Background session waiting for its first job to be claimed; active: Interactive session open, waiting for the user's next message; running: A turn is executing; awaiting_input: Parked on a request_human_input question; awaiting_approval: Parked on a tool approval; completed, failed, cancelled, expired: Terminal.\" })\n status: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n inputs: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n configVersion: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n turnCount: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalSteps: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalInputTokens: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalOutputTokens: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsNumber()\n @ApiProperty()\n totalCost: number;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n error: string;\n\n @IsOptional()\n @IsDate()\n @ApiProperty()\n endedAt: Date;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n reasoningModelKey: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n fastModelKey: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentJobDto)\n agentJobs: UpdateAgentJobDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentJobsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentJobsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentEventDto)\n agentEvents: UpdateAgentEventDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentEventsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentEventsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSessionCheckpointDto)\n agentSessionCheckpoints: UpdateAgentSessionCheckpointDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSessionCheckpointsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSessionCheckpointsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentHumanRequestDto)\n agentHumanRequests: UpdateAgentHumanRequestDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentHumanRequestsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentHumanRequestsCommand: string;\n}\n"]}
1
+ {"version":3,"file":"update-agent-session.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-session.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAkI;AAClI,6CAA8C;AAC9C,yDAAyC;AACzC,iEAA2D;AAC3D,qEAA+D;AAC/D,+FAAwF;AACxF,qFAA8E;AAE9E,MAAa,qBAAqB;;qXAiCxB,CAAC,QAAQ,EAAE,UAAU,CAAC;;CAqJ/B;AAtLD,sDAsLC;AAnLG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iDACG;AAKX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;sDACE;AAKhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;2DACO;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;wDACI;AAKlB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;6DACS;AAMvB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,iFAAiF,EAAE,CAAC;;sDAChG;AAMhB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,sBAAI,EAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IAC5B,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;sDAChC;AAK/B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;qD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A,qBAAW,GAAE;;yEACuB;AAKrC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;6EACyB;AAOvC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2DAA0B,CAAC;;iEACU;AAKjD;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;oEACkB;AAKhC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;wEACoB","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, IsNumber, IsDate, ValidateNested, IsArray, IsIn } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentJobDto } from './update-agent-job.dto';\nimport { UpdateAgentEventDto } from './update-agent-event.dto';\nimport { UpdateAgentSessionCheckpointDto } from './update-agent-session-checkpoint.dto';\nimport { UpdateAgentHumanRequestDto } from './update-agent-human-request.dto';\n\nexport class UpdateAgentSessionDto {\n @IsOptional()\n @IsInt()\n id: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n agentId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentUserKey: string;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n processId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n processUserKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty({ description: \"Original session entry point. Use api or webhook for the background jobs inbox.\" })\n trigger: string;\n\n @IsOptional()\n @IsString()\n @IsIn([\"solidx\", \"agentHub\"])\n @ApiProperty({ enum: [\"solidx\", \"agentHub\"], required: false })\n runtime: \"solidx\" | \"agentHub\";\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n userUserKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty({ description: \"queued: Background session waiting for its first job to be claimed; active: Interactive session open, waiting for the user's next message; running: A turn is executing; awaiting_input: Parked on a request_human_input question; awaiting_approval: Parked on a tool approval; completed, failed, cancelled, expired: Terminal.\" })\n status: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n inputs: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n configVersion: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n turnCount: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalSteps: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalInputTokens: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalOutputTokens: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsNumber()\n @ApiProperty()\n totalCost: number;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n error: string;\n\n @IsOptional()\n @IsDate()\n @ApiProperty()\n endedAt: Date;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n reasoningModelKey: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n fastModelKey: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentJobDto)\n agentJobs: UpdateAgentJobDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentJobsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentJobsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentEventDto)\n agentEvents: UpdateAgentEventDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentEventsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentEventsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSessionCheckpointDto)\n agentSessionCheckpoints: UpdateAgentSessionCheckpointDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSessionCheckpointsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSessionCheckpointsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentHumanRequestDto)\n agentHumanRequests: UpdateAgentHumanRequestDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentHumanRequestsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentHumanRequestsCommand: string;\n}\n"]}
@@ -20,6 +20,7 @@ export declare class AgentJob extends CommonEntity {
20
20
  result: string;
21
21
  error: string;
22
22
  queuedAt: Date;
23
+ dispatchedAt: Date | null;
23
24
  startedAt: Date;
24
25
  finishedAt: Date;
25
26
  agentHumanRequests: AgentHumanRequest[];
@@ -1 +1 @@
1
- {"version":3,"file":"agent-job.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-job.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGjE,qBACa,QAAS,SAAQ,YAAY;IAGtC,OAAO,EAAE,YAAY,CAAC;IAItB,KAAK,EAAE,aAAa,CAAC;IAGrB,IAAI,EAAE,MAAM,CAAW;IAGvB,KAAK,EAAE,MAAM,CAAC;IAGd,cAAc,EAAE,MAAM,CAAC;IAGvB,MAA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AM,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;IAGf,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,IAAI,CAAc;IAG5B,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAG1B,SAAS,EAAE,IAAI,CAAC;IAGhB,UAAU,EAAE,IAAI,CAAC;IAGjB,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;CAC3C"}
@@ -26,7 +26,7 @@ let AgentJob = class AgentJob extends common_entity_1.CommonEntity {
26
26
  this.queuedAt = new Date();
27
27
  }
28
28
  static _OPENAPI_METADATA_FACTORY() {
29
- return { session: { required: true, type: () => require("./agent-session.entity").AgentSession }, agent: { required: true, type: () => require("./agent-registry.entity").AgentRegistry }, kind: { required: true, type: () => String, default: "start" }, input: { required: true, type: () => String }, callerSnapshot: { required: true, type: () => String }, status: { required: true, type: () => String, default: "queued" }, leaseToken: { required: true, type: () => String }, leaseExpiresAt: { required: true, type: () => Date }, attempts: { required: true, type: () => Number, default: 0 }, idempotencyKey: { required: true, type: () => String }, webhookUrl: { required: true, type: () => String }, webhookSecret: { required: true, type: () => String }, timeoutSeconds: { required: true, type: () => Number }, maxSteps: { required: true, type: () => Number }, result: { required: true, type: () => String }, error: { required: true, type: () => String }, queuedAt: { required: true, type: () => Date, default: new Date() }, startedAt: { required: true, type: () => Date }, finishedAt: { required: true, type: () => Date }, agentHumanRequests: { required: true, type: () => [require("./agent-human-request.entity").AgentHumanRequest] } };
29
+ return { session: { required: true, type: () => require("./agent-session.entity").AgentSession }, agent: { required: true, type: () => require("./agent-registry.entity").AgentRegistry }, kind: { required: true, type: () => String, default: "start" }, input: { required: true, type: () => String }, callerSnapshot: { required: true, type: () => String }, status: { required: true, type: () => String, default: "queued" }, leaseToken: { required: true, type: () => String }, leaseExpiresAt: { required: true, type: () => Date }, attempts: { required: true, type: () => Number, default: 0 }, idempotencyKey: { required: true, type: () => String }, webhookUrl: { required: true, type: () => String }, webhookSecret: { required: true, type: () => String }, timeoutSeconds: { required: true, type: () => Number }, maxSteps: { required: true, type: () => Number }, result: { required: true, type: () => String }, error: { required: true, type: () => String }, queuedAt: { required: true, type: () => Date, default: new Date() }, dispatchedAt: { required: true, type: () => Date, nullable: true }, startedAt: { required: true, type: () => Date }, finishedAt: { required: true, type: () => Date }, agentHumanRequests: { required: true, type: () => [require("./agent-human-request.entity").AgentHumanRequest] } };
30
30
  }
31
31
  };
32
32
  exports.AgentJob = AgentJob;
@@ -100,6 +100,10 @@ __decorate([
100
100
  (0, typeorm_1.Column)({ ...(0, typeorm_db_helper_1.getColumnType)('datetimeWithTimezone'), default: () => (0, typeorm_db_helper_1.getCurrentTimestampDefault)() }),
101
101
  __metadata("design:type", Date)
102
102
  ], AgentJob.prototype, "queuedAt", void 0);
103
+ __decorate([
104
+ (0, typeorm_1.Column)({ ...(0, typeorm_db_helper_1.getColumnType)('datetimeWithTimezone'), nullable: true }),
105
+ __metadata("design:type", Date)
106
+ ], AgentJob.prototype, "dispatchedAt", void 0);
103
107
  __decorate([
104
108
  (0, typeorm_1.Column)({ ...(0, typeorm_db_helper_1.getColumnType)('datetimeWithTimezone'), nullable: true }),
105
109
  __metadata("design:type", Date)
@@ -113,6 +117,7 @@ __decorate([
113
117
  __metadata("design:type", Array)
114
118
  ], AgentJob.prototype, "agentHumanRequests", void 0);
115
119
  exports.AgentJob = AgentJob = __decorate([
116
- (0, typeorm_1.Entity)('ss_agent_job')
120
+ (0, typeorm_1.Entity)('ss_agent_job'),
121
+ (0, typeorm_1.Index)(['agent', 'status', 'queuedAt'])
117
122
  ], AgentJob);
118
123
  //# sourceMappingURL=agent-job.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-job.entity.js","sourceRoot":"","sources":["../../src/entities/agent-job.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,qCAA2E;AAC3E,iEAAsD;AACtD,mEAAwD;AACxD,6EAAiE;AACjE,oEAA0F;AAGnF,IAAM,QAAQ,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A,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAiB,EAAE,iBAAiB,CAAC,EAAE,CAAC,iBAAiB,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oDAC1D;mBA7D/B,QAAQ;IADpB,IAAA,gBAAM,EAAC,cAAc,CAAC;GACV,QAAQ,CA8DpB","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity';\nimport { Entity, JoinColumn, ManyToOne, Column, OneToMany } from 'typeorm';\nimport { AgentSession } from './agent-session.entity';\nimport { AgentRegistry } from './agent-registry.entity';\nimport { AgentHumanRequest } from './agent-human-request.entity';\nimport { getColumnType, getCurrentTimestampDefault } from 'src/helpers/typeorm-db-helper';\n\n@Entity('ss_agent_job')\nexport class AgentJob extends CommonEntity {\n @ManyToOne(() => AgentSession, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n session: AgentSession;\n\n @ManyToOne(() => AgentRegistry, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n agent: AgentRegistry;\n\n @Column({ type: \"varchar\", default: \"start\" })\n kind: string = \"start\";\n\n @Column({ type: \"text\", nullable: true })\n input: string;\n\n @Column({ type: \"text\" })\n callerSnapshot: string;\n\n @Column({ type: \"varchar\", default: \"queued\" })\n status: string = \"queued\";\n\n @Column({ type: \"varchar\", nullable: true })\n leaseToken: string;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n leaseExpiresAt: Date;\n\n @Column({ type: \"integer\", default: 0 })\n attempts: number = 0;\n\n @Column({ type: \"text\", nullable: true })\n idempotencyKey: string;\n\n @Column({ type: \"text\", nullable: true })\n webhookUrl: string;\n\n @Column({ type: \"text\", nullable: true })\n webhookSecret: string;\n\n @Column({ type: \"integer\", nullable: true })\n timeoutSeconds: number;\n\n @Column({ type: \"integer\", nullable: true })\n maxSteps: number;\n\n @Column({ type: \"text\", nullable: true })\n result: string;\n\n @Column({ type: \"text\", nullable: true })\n error: string;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), default: () => getCurrentTimestampDefault() })\n queuedAt: Date = new Date();\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n startedAt: Date;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n finishedAt: Date;\n\n @OneToMany(() => AgentHumanRequest, agentHumanRequest => agentHumanRequest.job, { cascade: true })\n agentHumanRequests: AgentHumanRequest[];\n}\n"]}
1
+ {"version":3,"file":"agent-job.entity.js","sourceRoot":"","sources":["../../src/entities/agent-job.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,qCAAkF;AAClF,iEAAsD;AACtD,mEAAwD;AACxD,6EAAiE;AACjE,oEAA0F;AAInF,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,4BAAY;IAAnC;;QAUH,SAAI,GAAW,OAAO,CAAC;QASvB,WAAM,GAAW,QAAQ,CAAC;QAS1B,aAAQ,GAAW,CAAC,CAAC;QAwBrB,aAAQ,GAAS,IAAI,IAAI,EAAE,CAAC;KAa/B;;w/BAboB,IAAI,IAAI,EAAE;;CAa9B,CAAA;AAjEY,4BAAQ;AAGjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvE,IAAA,oBAAU,GAAE;8BACJ,mCAAY;yCAAC;AAItB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qCAAa,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxE,IAAA,oBAAU,GAAE;8BACN,qCAAa;uCAAC;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;;sCACvB;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI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;;uCAC3B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,GAAG,IAAA,iCAAa,EAAC,sBAAsB,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAA,8CAA0B,GAAE,EAAE,CAAC;8BACxF,IAAI;0CAAc;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,GAAG,IAAA,iCAAa,EAAC,sBAAsB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACvD,IAAI;8CAAQ;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,GAAG,IAAA,iCAAa,EAAC,sBAAsB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC1D,IAAI;2CAAC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,GAAG,IAAA,iCAAa,EAAC,sBAAsB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACzD,IAAI;4CAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAiB,EAAE,iBAAiB,CAAC,EAAE,CAAC,iBAAiB,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oDAC1D;mBAhE/B,QAAQ;IAFpB,IAAA,gBAAM,EAAC,cAAc,CAAC;IACtB,IAAA,eAAK,EAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;GAC1B,QAAQ,CAiEpB","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity';\nimport { Entity, Index, JoinColumn, ManyToOne, Column, OneToMany } from 'typeorm';\nimport { AgentSession } from './agent-session.entity';\nimport { AgentRegistry } from './agent-registry.entity';\nimport { AgentHumanRequest } from './agent-human-request.entity';\nimport { getColumnType, getCurrentTimestampDefault } from 'src/helpers/typeorm-db-helper';\n\n@Entity('ss_agent_job')\n@Index(['agent', 'status', 'queuedAt'])\nexport class AgentJob extends CommonEntity {\n @ManyToOne(() => AgentSession, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n session: AgentSession;\n\n @ManyToOne(() => AgentRegistry, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n agent: AgentRegistry;\n\n @Column({ type: \"varchar\", default: \"start\" })\n kind: string = \"start\";\n\n @Column({ type: \"text\", nullable: true })\n input: string;\n\n @Column({ type: \"text\" })\n callerSnapshot: string;\n\n @Column({ type: \"varchar\", default: \"queued\" })\n status: string = \"queued\";\n\n @Column({ type: \"varchar\", nullable: true })\n leaseToken: string;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n leaseExpiresAt: Date;\n\n @Column({ type: \"integer\", default: 0 })\n attempts: number = 0;\n\n @Column({ type: \"text\", nullable: true })\n idempotencyKey: string;\n\n @Column({ type: \"text\", nullable: true })\n webhookUrl: string;\n\n @Column({ type: \"text\", nullable: true })\n webhookSecret: string;\n\n @Column({ type: \"integer\", nullable: true })\n timeoutSeconds: number;\n\n @Column({ type: \"integer\", nullable: true })\n maxSteps: number;\n\n @Column({ type: \"text\", nullable: true })\n result: string;\n\n @Column({ type: \"text\", nullable: true })\n error: string;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), default: () => getCurrentTimestampDefault() })\n queuedAt: Date = new Date();\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n dispatchedAt: Date | null;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n startedAt: Date;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n finishedAt: Date;\n\n @OneToMany(() => AgentHumanRequest, agentHumanRequest => agentHumanRequest.job, { cascade: true })\n agentHumanRequests: AgentHumanRequest[];\n}\n"]}
@@ -6,6 +6,14 @@ export declare class AgentProcess extends CommonEntity {
6
6
  host: string;
7
7
  port: number;
8
8
  pid: number;
9
+ runner: string | null;
10
+ runnerRef: string | null;
11
+ internalUrl: string;
12
+ bootstrapTokenHash: string | null;
13
+ bootstrapExpiresAt: Date | null;
14
+ runtimeVersion: string | null;
15
+ cpu: number | null;
16
+ memory: number | null;
9
17
  wsUrl: string;
10
18
  status: string;
11
19
  configVersion: number;
@@ -1 +1 @@
1
- {"version":3,"file":"agent-process.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-process.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAGrD,qBACa,YAAa,SAAQ,YAAY;IAG1C,KAAK,EAAE,aAAa,CAAC;IAGrB,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,MAAM,CAAM;IAGnB,MAAM,EAAE,MAAM,CAAc;IAG5B,aAAa,EAAE,MAAM,CAAK;IAG1B,YAAY,EAAE,MAAM,CAAK;IAGzB,YAAY,EAAE,MAAM,CAAK;IAGzB,WAAW,EAAE,MAAM,CAAM;IAGzB,eAAe,EAAE,MAAM,CAAK;IAG5B,UAAU,EAAE,MAAM,CAAQ;IAG1B,SAAS,EAAE,IAAI,CAAc;IAG7B,WAAW,EAAE,IAAI,CAAC;IAGlB,SAAS,EAAE,IAAI,CAAC;IAIhB,SAAS,EAAE,MAAM,CAAC;IAGlB,aAAa,EAAE,YAAY,EAAE,CAAC;CACjC"}
1
+ {"version":3,"file":"agent-process.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-process.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAGrD,qBACa,YAAa,SAAQ,YAAY;IAG1C,KAAK,EAAE,aAAa,CAAC;IAGrB,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,GAAG,EAAE,MAAM,CAAC;IAGZ,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAIzB,WAAW,EAAE,MAAM,CAAM;IAIzB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAIlC,kBAAkB,EAAE,IAAI,GAAG,IAAI,CAAC;IAGhC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAG9B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAGnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,KAAK,EAAE,MAAM,CAAM;IAGnB,MAAM,EAAE,MAAM,CAAc;IAG5B,aAAa,EAAE,MAAM,CAAK;IAG1B,YAAY,EAAE,MAAM,CAAK;IAGzB,YAAY,EAAE,MAAM,CAAK;IAGzB,WAAW,EAAE,MAAM,CAAM;IAGzB,eAAe,EAAE,MAAM,CAAK;IAG5B,UAAU,EAAE,MAAM,CAAQ;IAG1B,SAAS,EAAE,IAAI,CAAc;IAG7B,WAAW,EAAE,IAAI,CAAC;IAGlB,SAAS,EAAE,IAAI,CAAC;IAIhB,SAAS,EAAE,MAAM,CAAC;IAGlB,aAAa,EAAE,YAAY,EAAE,CAAC;CACjC"}
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AgentProcess = void 0;
13
13
  const openapi = require("@nestjs/swagger");
14
14
  const common_entity_1 = require("./common.entity");
15
+ const class_transformer_1 = require("class-transformer");
15
16
  const typeorm_1 = require("typeorm");
16
17
  const agent_registry_entity_1 = require("./agent-registry.entity");
17
18
  const agent_session_entity_1 = require("./agent-session.entity");
@@ -19,6 +20,7 @@ const typeorm_db_helper_1 = require("../helpers/typeorm-db-helper");
19
20
  let AgentProcess = class AgentProcess extends common_entity_1.CommonEntity {
20
21
  constructor() {
21
22
  super(...arguments);
23
+ this.internalUrl = "";
22
24
  this.wsUrl = "";
23
25
  this.status = "starting";
24
26
  this.configVersion = 0;
@@ -30,7 +32,7 @@ let AgentProcess = class AgentProcess extends common_entity_1.CommonEntity {
30
32
  this.startedAt = new Date();
31
33
  }
32
34
  static _OPENAPI_METADATA_FACTORY() {
33
- return { agent: { required: true, type: () => require("./agent-registry.entity").AgentRegistry }, host: { required: true, type: () => String }, port: { required: true, type: () => Number }, pid: { required: true, type: () => Number }, wsUrl: { required: true, type: () => String, default: "" }, status: { required: true, type: () => String, default: "starting" }, configVersion: { required: true, type: () => Number, default: 0 }, openSessions: { required: true, type: () => Number, default: 0 }, runningTurns: { required: true, type: () => Number, default: 0 }, maxSessions: { required: true, type: () => Number, default: 50 }, maxRunningTurns: { required: true, type: () => Number, default: 8 }, loadReport: { required: true, type: () => String, default: "{}" }, startedAt: { required: true, type: () => Date, default: new Date() }, heartbeatAt: { required: true, type: () => Date }, stoppedAt: { required: true, type: () => Date }, processId: { required: true, type: () => String }, agentSessions: { required: true, type: () => [require("./agent-session.entity").AgentSession] } };
35
+ return { agent: { required: true, type: () => require("./agent-registry.entity").AgentRegistry }, host: { required: true, type: () => String }, port: { required: true, type: () => Number }, pid: { required: true, type: () => Number }, runner: { required: true, type: () => String, nullable: true }, runnerRef: { required: true, type: () => String, nullable: true }, internalUrl: { required: true, type: () => String, default: "" }, bootstrapTokenHash: { required: true, type: () => String, nullable: true }, bootstrapExpiresAt: { required: true, type: () => Date, nullable: true }, runtimeVersion: { required: true, type: () => String, nullable: true }, cpu: { required: true, type: () => Number, nullable: true }, memory: { required: true, type: () => Number, nullable: true }, wsUrl: { required: true, type: () => String, default: "" }, status: { required: true, type: () => String, default: "starting" }, configVersion: { required: true, type: () => Number, default: 0 }, openSessions: { required: true, type: () => Number, default: 0 }, runningTurns: { required: true, type: () => Number, default: 0 }, maxSessions: { required: true, type: () => Number, default: 50 }, maxRunningTurns: { required: true, type: () => Number, default: 8 }, loadReport: { required: true, type: () => String, default: "{}" }, startedAt: { required: true, type: () => Date, default: new Date() }, heartbeatAt: { required: true, type: () => Date }, stoppedAt: { required: true, type: () => Date }, processId: { required: true, type: () => String }, agentSessions: { required: true, type: () => [require("./agent-session.entity").AgentSession] } };
34
36
  }
35
37
  };
36
38
  exports.AgentProcess = AgentProcess;
@@ -51,6 +53,41 @@ __decorate([
51
53
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
52
54
  __metadata("design:type", Number)
53
55
  ], AgentProcess.prototype, "pid", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ type: "varchar", nullable: true }),
58
+ __metadata("design:type", String)
59
+ ], AgentProcess.prototype, "runner", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ type: "varchar", length: 512, nullable: true }),
62
+ __metadata("design:type", String)
63
+ ], AgentProcess.prototype, "runnerRef", void 0);
64
+ __decorate([
65
+ (0, class_transformer_1.Exclude)({ toPlainOnly: true }),
66
+ (0, typeorm_1.Column)({ type: "varchar", default: "", select: false, insert: false, update: false }),
67
+ __metadata("design:type", String)
68
+ ], AgentProcess.prototype, "internalUrl", void 0);
69
+ __decorate([
70
+ (0, class_transformer_1.Exclude)({ toPlainOnly: true }),
71
+ (0, typeorm_1.Column)({ type: "varchar", length: 64, nullable: true, select: false, insert: false, update: false }),
72
+ __metadata("design:type", String)
73
+ ], AgentProcess.prototype, "bootstrapTokenHash", void 0);
74
+ __decorate([
75
+ (0, class_transformer_1.Exclude)({ toPlainOnly: true }),
76
+ (0, typeorm_1.Column)({ ...(0, typeorm_db_helper_1.getColumnType)('datetimeWithTimezone'), nullable: true, select: false, insert: false, update: false }),
77
+ __metadata("design:type", Date)
78
+ ], AgentProcess.prototype, "bootstrapExpiresAt", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.Column)({ type: "varchar", nullable: true }),
81
+ __metadata("design:type", String)
82
+ ], AgentProcess.prototype, "runtimeVersion", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
85
+ __metadata("design:type", Number)
86
+ ], AgentProcess.prototype, "cpu", void 0);
87
+ __decorate([
88
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
89
+ __metadata("design:type", Number)
90
+ ], AgentProcess.prototype, "memory", void 0);
54
91
  __decorate([
55
92
  (0, typeorm_1.Column)({ type: "varchar" }),
56
93
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"agent-process.entity.js","sourceRoot":"","sources":["../../src/entities/agent-process.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,qCAAkF;AAClF,mEAAwD;AACxD,iEAAqD;AACrD,oEAA0F;AAGnF,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAY;IAAvC;;QAeH,UAAK,GAAW,EAAE,CAAC;QAGnB,WAAM,GAAW,UAAU,CAAC;QAG5B,kBAAa,GAAW,CAAC,CAAC;QAG1B,iBAAY,GAAW,CAAC,CAAC;QAGzB,iBAAY,GAAW,CAAC,CAAC;QAGzB,gBAAW,GAAW,EAAE,CAAC;QAGzB,oBAAe,GAAW,CAAC,CAAC;QAG5B,eAAU,GAAW,IAAI,CAAC;QAG1B,cAAS,GAAS,IAAI,IAAI,EAAE,CAAC;KAchC;;6zBAdqB,IAAI,IAAI,EAAE;;CAc/B,CAAA;AArDY,oCAAY;AAGrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qCAAa,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxE,IAAA,oBAAU,GAAE;8BACN,qCAAa;2CAAC;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0CACf;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0CACf;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAChC;AAGZ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;+CAC1B;AAGlB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;mDACzD;uBApDrB,YAAY;IADxB,IAAA,gBAAM,EAAC,kBAAkB,CAAC;GACd,YAAY,CAqDxB","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity';\nimport { Entity, JoinColumn, ManyToOne, Column, Index, OneToMany } from 'typeorm';\nimport { AgentRegistry } from './agent-registry.entity';\nimport { AgentSession } from './agent-session.entity'\nimport { getColumnType, getCurrentTimestampDefault } from 'src/helpers/typeorm-db-helper';\n\n@Entity('ss_agent_process')\nexport class AgentProcess extends CommonEntity {\n @ManyToOne(() => AgentRegistry, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n agent: AgentRegistry;\n\n @Column({ type: \"varchar\" })\n host: string;\n\n @Column({ type: \"integer\" })\n port: number;\n\n @Column({ type: \"integer\", nullable: true })\n pid: number;\n\n @Column({ type: \"varchar\" })\n wsUrl: string = \"\";\n\n @Column({ type: \"varchar\", default: \"starting\" })\n status: string = \"starting\";\n\n @Column({ type: \"integer\" })\n configVersion: number = 0;\n\n @Column({ type: \"integer\" })\n openSessions: number = 0;\n\n @Column({ type: \"integer\" })\n runningTurns: number = 0;\n\n @Column({ type: \"integer\" })\n maxSessions: number = 50;\n\n @Column({ type: \"integer\" })\n maxRunningTurns: number = 8;\n\n @Column({ type: \"text\", default: \"{}\" })\n loadReport: string = \"{}\";\n\n @Column({ ...getColumnType('datetimeWithTimezone'), default: () => getCurrentTimestampDefault() })\n startedAt: Date = new Date();\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n heartbeatAt: Date;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n stoppedAt: Date;\n\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: true })\n processId: string;\n\n @OneToMany(() => AgentSession, agentSession => agentSession.process, { cascade: true })\n agentSessions: AgentSession[];\n}\n"]}
1
+ {"version":3,"file":"agent-process.entity.js","sourceRoot":"","sources":["../../src/entities/agent-process.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,yDAA4C;AAC5C,qCAAkF;AAClF,mEAAwD;AACxD,iEAAqD;AACrD,oEAA0F;AAGnF,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAY;IAAvC;;QAsBH,gBAAW,GAAW,EAAE,CAAC;QAoBzB,UAAK,GAAW,EAAE,CAAC;QAGnB,WAAM,GAAW,UAAU,CAAC;QAG5B,kBAAa,GAAW,CAAC,CAAC;QAG1B,iBAAY,GAAW,CAAC,CAAC;QAGzB,iBAAY,GAAW,CAAC,CAAC;QAGzB,gBAAW,GAAW,EAAE,CAAC;QAGzB,oBAAe,GAAW,CAAC,CAAC;QAG5B,eAAU,GAAW,IAAI,CAAC;QAG1B,cAAS,GAAS,IAAI,IAAI,EAAE,CAAC;KAchC;;61CAdqB,IAAI,IAAI,EAAE;;CAc/B,CAAA;AAhFY,oCAAY;AAGrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qCAAa,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxE,IAAA,oBAAU,GAAE;8BACN,qCAAa;2CAAC;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0CACf;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0CACf;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAChC;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACtB;AAGtB;IADC,IAAA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,EAAE,CAAC,mCAAY,EAAE,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;mDACzD;uBA/ErB,YAAY;IADxB,IAAA,gBAAM,EAAC,kBAAkB,CAAC;GACd,YAAY,CAgFxB","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity';\nimport { Exclude } from 'class-transformer';\nimport { Entity, JoinColumn, ManyToOne, Column, Index, OneToMany } from 'typeorm';\nimport { AgentRegistry } from './agent-registry.entity';\nimport { AgentSession } from './agent-session.entity'\nimport { getColumnType, getCurrentTimestampDefault } from 'src/helpers/typeorm-db-helper';\n\n@Entity('ss_agent_process')\nexport class AgentProcess extends CommonEntity {\n @ManyToOne(() => AgentRegistry, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n agent: AgentRegistry;\n\n @Column({ type: \"varchar\" })\n host: string;\n\n @Column({ type: \"integer\" })\n port: number;\n\n @Column({ type: \"integer\", nullable: true })\n pid: number;\n\n @Column({ type: \"varchar\", nullable: true })\n runner: string | null;\n\n @Column({ type: \"varchar\", length: 512, nullable: true })\n runnerRef: string | null;\n\n @Exclude({ toPlainOnly: true })\n @Column({ type: \"varchar\", default: \"\", select: false, insert: false, update: false })\n internalUrl: string = \"\";\n\n @Exclude({ toPlainOnly: true })\n @Column({ type: \"varchar\", length: 64, nullable: true, select: false, insert: false, update: false })\n bootstrapTokenHash: string | null;\n\n @Exclude({ toPlainOnly: true })\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true, select: false, insert: false, update: false })\n bootstrapExpiresAt: Date | null;\n\n @Column({ type: \"varchar\", nullable: true })\n runtimeVersion: string | null;\n\n @Column({ type: \"integer\", nullable: true })\n cpu: number | null;\n\n @Column({ type: \"integer\", nullable: true })\n memory: number | null;\n\n @Column({ type: \"varchar\" })\n wsUrl: string = \"\";\n\n @Column({ type: \"varchar\", default: \"starting\" })\n status: string = \"starting\";\n\n @Column({ type: \"integer\" })\n configVersion: number = 0;\n\n @Column({ type: \"integer\" })\n openSessions: number = 0;\n\n @Column({ type: \"integer\" })\n runningTurns: number = 0;\n\n @Column({ type: \"integer\" })\n maxSessions: number = 50;\n\n @Column({ type: \"integer\" })\n maxRunningTurns: number = 8;\n\n @Column({ type: \"text\", default: \"{}\" })\n loadReport: string = \"{}\";\n\n @Column({ ...getColumnType('datetimeWithTimezone'), default: () => getCurrentTimestampDefault() })\n startedAt: Date = new Date();\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n heartbeatAt: Date;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n stoppedAt: Date;\n\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: true })\n processId: string;\n\n @OneToMany(() => AgentSession, agentSession => agentSession.process, { cascade: true })\n agentSessions: AgentSession[];\n}\n"]}
@@ -23,6 +23,11 @@ export declare class AgentRegistry extends CommonEntity {
23
23
  turnStepLimit: number;
24
24
  costLimit: number;
25
25
  configVersion?: number;
26
+ runner: string | null;
27
+ minProcesses: number;
28
+ maxProcesses: number | null;
29
+ processCpu: number | null;
30
+ processMemory: number | null;
26
31
  module: ModuleMetadata;
27
32
  tags: AgentHubTag[];
28
33
  agentTools: AgentTool[];
@@ -1 +1 @@
1
- {"version":3,"file":"agent-registry.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-registry.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OA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AAC;IAG1B,UAAU,EAAE,SAAS,EAAE,CAAC;IAGxB,YAAY,EAAE,WAAW,EAAE,CAAC;IAG5B,cAAc,EAAE,YAAY,EAAE,CAAC;IAG/B,aAAa,EAAE,YAAY,EAAE,CAAC;IAG9B,SAAS,EAAE,QAAQ,EAAE,CAAC;IAGtB,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACxC"}
@@ -32,9 +32,10 @@ let AgentRegistry = class AgentRegistry extends common_entity_1.CommonEntity {
32
32
  this.turnStepLimit = 20;
33
33
  this.costLimit = 3;
34
34
  this.configVersion = 1;
35
+ this.minProcesses = 0;
35
36
  }
36
37
  static _OPENAPI_METADATA_FACTORY() {
37
- return { name: { required: true, type: () => String }, title: { required: true, type: () => String }, description: { required: true, type: () => String }, iconName: { required: true, type: () => String }, systemPrompt: { required: true, type: () => String }, requiredInputs: { required: true, type: () => String, default: "[]" }, reasoningModelKey: { required: true, type: () => String }, fastModelKey: { required: true, type: () => String }, status: { required: true, type: () => String, default: "draft" }, stepLimit: { required: true, type: () => Number, default: 100 }, turnStepLimit: { required: true, type: () => Number, default: 20 }, costLimit: { required: true, type: () => Number, default: 3 }, configVersion: { required: false, type: () => Number, default: 1 }, module: { required: true, type: () => require("./module-metadata.entity").ModuleMetadata }, tags: { required: true, type: () => [require("./agent-hub-tag.entity").AgentHubTag] }, agentTools: { required: true, type: () => [require("./agent-tool.entity").AgentTool] }, agentSkills: { required: true, type: () => [require("./agent-skill.entity").AgentSkill] }, agentRoles: { required: true, type: () => [require("./agent-role.entity").AgentRole] }, agentSecrets: { required: true, type: () => [require("./agent-secret.entity").AgentSecret] }, agentProcesses: { required: true, type: () => [require("./agent-process.entity").AgentProcess] }, agentSessions: { required: true, type: () => [require("./agent-session.entity").AgentSession] }, agentJobs: { required: true, type: () => [require("./agent-job.entity").AgentJob] }, configVersions: { required: true, type: () => [require("./agent-config-version.entity").AgentConfigVersion] } };
38
+ return { name: { required: true, type: () => String }, title: { required: true, type: () => String }, description: { required: true, type: () => String }, iconName: { required: true, type: () => String }, systemPrompt: { required: true, type: () => String }, requiredInputs: { required: true, type: () => String, default: "[]" }, reasoningModelKey: { required: true, type: () => String }, fastModelKey: { required: true, type: () => String }, status: { required: true, type: () => String, default: "draft" }, stepLimit: { required: true, type: () => Number, default: 100 }, turnStepLimit: { required: true, type: () => Number, default: 20 }, costLimit: { required: true, type: () => Number, default: 3 }, configVersion: { required: false, type: () => Number, default: 1 }, runner: { required: true, type: () => String, nullable: true }, minProcesses: { required: true, type: () => Number, default: 0 }, maxProcesses: { required: true, type: () => Number, nullable: true }, processCpu: { required: true, type: () => Number, nullable: true }, processMemory: { required: true, type: () => Number, nullable: true }, module: { required: true, type: () => require("./module-metadata.entity").ModuleMetadata }, tags: { required: true, type: () => [require("./agent-hub-tag.entity").AgentHubTag] }, agentTools: { required: true, type: () => [require("./agent-tool.entity").AgentTool] }, agentSkills: { required: true, type: () => [require("./agent-skill.entity").AgentSkill] }, agentRoles: { required: true, type: () => [require("./agent-role.entity").AgentRole] }, agentSecrets: { required: true, type: () => [require("./agent-secret.entity").AgentSecret] }, agentProcesses: { required: true, type: () => [require("./agent-process.entity").AgentProcess] }, agentSessions: { required: true, type: () => [require("./agent-session.entity").AgentSession] }, agentJobs: { required: true, type: () => [require("./agent-job.entity").AgentJob] }, configVersions: { required: true, type: () => [require("./agent-config-version.entity").AgentConfigVersion] } };
38
39
  }
39
40
  };
40
41
  exports.AgentRegistry = AgentRegistry;
@@ -91,6 +92,26 @@ __decorate([
91
92
  (0, typeorm_1.Column)({ type: "integer", nullable: true, default: 1 }),
92
93
  __metadata("design:type", Number)
93
94
  ], AgentRegistry.prototype, "configVersion", void 0);
95
+ __decorate([
96
+ (0, typeorm_1.Column)({ type: "varchar", nullable: true }),
97
+ __metadata("design:type", String)
98
+ ], AgentRegistry.prototype, "runner", void 0);
99
+ __decorate([
100
+ (0, typeorm_1.Column)({ type: "integer", default: 0 }),
101
+ __metadata("design:type", Number)
102
+ ], AgentRegistry.prototype, "minProcesses", void 0);
103
+ __decorate([
104
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
105
+ __metadata("design:type", Number)
106
+ ], AgentRegistry.prototype, "maxProcesses", void 0);
107
+ __decorate([
108
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
109
+ __metadata("design:type", Number)
110
+ ], AgentRegistry.prototype, "processCpu", void 0);
111
+ __decorate([
112
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
113
+ __metadata("design:type", Number)
114
+ ], AgentRegistry.prototype, "processMemory", void 0);
94
115
  __decorate([
95
116
  (0, typeorm_1.Index)(),
96
117
  (0, typeorm_1.ManyToOne)(() => module_metadata_entity_1.ModuleMetadata, { onDelete: "RESTRICT", nullable: false }),
@@ -1 +1 @@
1
- {"version":3,"file":"agent-registry.entity.js","sourceRoot":"","sources":["../../src/entities/agent-registry.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,qCAAyG;AACzG,qEAAqE;AACrE,iEAAqD;AACrD,2DAAgD;AAChD,6DAAkD;AAClD,2DAAgD;AAChD,+DAAoD;AACpD,iEAAsD;AACtD,iEAAsD;AACtD,yDAA6C;AAC7C,+EAAmE;AAG5D,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAY;IAAxC;;QAmBH,mBAAc,GAAW,IAAI,CAAC;QAS9B,WAAM,GAAW,OAAO,CAAC;QAGzB,cAAS,GAAW,GAAG,CAAC;QAGxB,kBAAa,GAAW,EAAE,CAAC;QAG3B,cAAS,GAAW,CAAC,CAAC;QAGtB,kBAAa,GAAY,CAAC,CAAC;KAkC9B;;;;CAAA,CAAA;AA1EY,sCAAa;AAGtB;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2CACf;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EA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E,CAAC,2BAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDACnD;AAGtB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gDAAkB,EAAE,aAAa,CAAC,EAAE,CAAC,aAAa,CAAC,aAAa,CAAC;;qDAC7C;wBAzE5B,aAAa;IADzB,IAAA,gBAAM,EAAC,mBAAmB,CAAC;GACf,aAAa,CA0EzB","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity';\nimport { Entity, Column, Index, JoinColumn, JoinTable, ManyToMany, ManyToOne, OneToMany } from 'typeorm';\nimport { ModuleMetadata } from 'src/entities/module-metadata.entity';\nimport { AgentHubTag } from './agent-hub-tag.entity';\nimport { AgentTool } from './agent-tool.entity';\nimport { AgentSkill } from './agent-skill.entity';\nimport { AgentRole } from './agent-role.entity';\nimport { AgentSecret } from './agent-secret.entity';\nimport { AgentProcess } from './agent-process.entity';\nimport { AgentSession } from './agent-session.entity';\nimport { AgentJob } from './agent-job.entity'\nimport { AgentConfigVersion } from './agent-config-version.entity';\n\n@Entity('ss_agent_registry')\nexport class AgentRegistry extends CommonEntity {\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n name: string;\n\n @Column({ type: \"varchar\" })\n title: string;\n\n @Column({ type: \"text\", nullable: true })\n description: string;\n\n @Column({ type: \"varchar\", nullable: true })\n iconName: string;\n\n @Column({ type: \"text\" })\n systemPrompt: string;\n\n /** JSON array of { name, description, dataType, defaultValue, optional } consumed by AgentHub. */\n @Column({ type: \"text\", default: \"[]\" })\n requiredInputs: string = \"[]\";\n\n @Column({ type: \"varchar\" })\n reasoningModelKey: string;\n\n @Column({ type: \"varchar\" })\n fastModelKey: string;\n\n @Column({ type: \"varchar\", default: \"draft\" })\n status: string = \"draft\";\n\n @Column({ type: \"integer\" })\n stepLimit: number = 100;\n\n @Column({ type: \"integer\" })\n turnStepLimit: number = 20;\n\n @Column({ type: \"decimal\", default: 3 })\n costLimit: number = 3;\n\n @Column({ type: \"integer\", nullable: true, default: 1 })\n configVersion?: number = 1;\n\n @Index()\n @ManyToOne(() => ModuleMetadata, { onDelete: \"RESTRICT\", nullable: false })\n @JoinColumn({ name: 'module_id', referencedColumnName: 'id' })\n module: ModuleMetadata;\n\n @ManyToMany(() => AgentHubTag, tag => tag.agents, { cascade: ['insert', 'update'] })\n @JoinTable()\n tags: AgentHubTag[];\n\n @OneToMany(() => AgentTool, agentTool => agentTool.agentRegistry, { cascade: true })\n agentTools: AgentTool[];\n\n @OneToMany(() => AgentSkill, agentSkill => agentSkill.agentRegistry, { cascade: true })\n agentSkills: AgentSkill[];\n\n @OneToMany(() => AgentRole, agentRole => agentRole.agentRegistry, { cascade: true })\n agentRoles: AgentRole[];\n\n @OneToMany(() => AgentSecret, agentSecret => agentSecret.agentRegistry, { cascade: true })\n agentSecrets: AgentSecret[];\n\n @OneToMany(() => AgentProcess, agentProcess => agentProcess.agent, { cascade: true })\n agentProcesses: AgentProcess[];\n\n @OneToMany(() => AgentSession, agentSession => agentSession.agent, { cascade: true })\n agentSessions: AgentSession[];\n\n @OneToMany(() => AgentJob, agentJob => agentJob.agent, { cascade: true })\n agentJobs: AgentJob[];\n\n @OneToMany(() => AgentConfigVersion, configVersion => configVersion.agentRegistry)\n configVersions: AgentConfigVersion[];\n}\n"]}
1
+ {"version":3,"file":"agent-registry.entity.js","sourceRoot":"","sources":["../../src/entities/agent-registry.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,qCAAyG;AACzG,qEAAqE;AACrE,iEAAqD;AACrD,2DAAgD;AAChD,6DAAkD;AAClD,2DAAgD;AAChD,+DAAoD;AACpD,iEAAsD;AACtD,iEAAsD;AACtD,yDAA6C;AAC7C,+EAAmE;AAG5D,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAY;IAAxC;;QAmBH,mBAAc,GAAW,IAAI,CAAC;QAS9B,WA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esContent":["import { CommonEntity } from 'src/entities/common.entity';\nimport { Entity, Column, Index, JoinColumn, JoinTable, ManyToMany, ManyToOne, OneToMany } from 'typeorm';\nimport { ModuleMetadata } from 'src/entities/module-metadata.entity';\nimport { AgentHubTag } from './agent-hub-tag.entity';\nimport { AgentTool } from './agent-tool.entity';\nimport { AgentSkill } from './agent-skill.entity';\nimport { AgentRole } from './agent-role.entity';\nimport { AgentSecret } from './agent-secret.entity';\nimport { AgentProcess } from './agent-process.entity';\nimport { AgentSession } from './agent-session.entity';\nimport { AgentJob } from './agent-job.entity'\nimport { AgentConfigVersion } from './agent-config-version.entity';\n\n@Entity('ss_agent_registry')\nexport class AgentRegistry extends CommonEntity {\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n name: string;\n\n @Column({ type: \"varchar\" })\n title: string;\n\n @Column({ type: \"text\", nullable: true })\n description: string;\n\n @Column({ type: \"varchar\", nullable: true })\n iconName: string;\n\n @Column({ type: \"text\" })\n systemPrompt: string;\n\n /** JSON array of { name, description, dataType, defaultValue, optional } consumed by AgentHub. */\n @Column({ type: \"text\", default: \"[]\" })\n requiredInputs: string = \"[]\";\n\n @Column({ type: \"varchar\" })\n reasoningModelKey: string;\n\n @Column({ type: \"varchar\" })\n fastModelKey: string;\n\n @Column({ type: \"varchar\", default: \"draft\" })\n status: string = \"draft\";\n\n @Column({ type: \"integer\" })\n stepLimit: number = 100;\n\n @Column({ type: \"integer\" })\n turnStepLimit: number = 20;\n\n @Column({ type: \"decimal\", default: 3 })\n costLimit: number = 3;\n\n @Column({ type: \"integer\", nullable: true, default: 1 })\n configVersion?: number = 1;\n\n @Column({ type: \"varchar\", nullable: true })\n runner: string | null;\n\n @Column({ type: \"integer\", default: 0 })\n minProcesses: number = 0;\n\n @Column({ type: \"integer\", nullable: true })\n maxProcesses: number | null;\n\n @Column({ type: \"integer\", nullable: true })\n processCpu: number | null;\n\n @Column({ type: \"integer\", nullable: true })\n processMemory: number | null;\n\n @Index()\n @ManyToOne(() => ModuleMetadata, { onDelete: \"RESTRICT\", nullable: false })\n @JoinColumn({ name: 'module_id', referencedColumnName: 'id' })\n module: ModuleMetadata;\n\n @ManyToMany(() => AgentHubTag, tag => tag.agents, { cascade: ['insert', 'update'] })\n @JoinTable()\n tags: AgentHubTag[];\n\n @OneToMany(() => AgentTool, agentTool => agentTool.agentRegistry, { cascade: true })\n agentTools: AgentTool[];\n\n @OneToMany(() => AgentSkill, agentSkill => agentSkill.agentRegistry, { cascade: true })\n agentSkills: AgentSkill[];\n\n @OneToMany(() => AgentRole, agentRole => agentRole.agentRegistry, { cascade: true })\n agentRoles: AgentRole[];\n\n @OneToMany(() => AgentSecret, agentSecret => agentSecret.agentRegistry, { cascade: true })\n agentSecrets: AgentSecret[];\n\n @OneToMany(() => AgentProcess, agentProcess => agentProcess.agent, { cascade: true })\n agentProcesses: AgentProcess[];\n\n @OneToMany(() => AgentSession, agentSession => agentSession.agent, { cascade: true })\n agentSessions: AgentSession[];\n\n @OneToMany(() => AgentJob, agentJob => agentJob.agent, { cascade: true })\n agentJobs: AgentJob[];\n\n @OneToMany(() => AgentConfigVersion, configVersion => configVersion.agentRegistry)\n configVersions: AgentConfigVersion[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"agent-session.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-session.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,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AAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGjE,qBAEa,YAAa,SAAQ,YAAY;IAG1C,SAAS,EAAE,MAAM,CAAC;IAIlB,KAAK,EAAE,aAAa,CAAC;IAMrB,OAAO,EAAE,YAAY,CAAC;IAItB,OAAO,EAAE,MAAM,CAAC;IAIhB,OAAO,EAAE,QAAQ,GAAG,UAAU,GAAG,IAAI,CAAC;IAItC,IAAI,EAAE,IAAI,CAAC;IAGX,MAAM,EAAE,MAAM,CAAY;IAG1B,MAAM,EAAE,MAAM,CAAQ;IAGtB,aAAa,EAAE,MAAM,CAAC;IAGtB,SAAS,EAAE,MAAM,CAAK;IAGtB,UAAU,EAAE,MAAM,CAAK;IAGvB,gBAAgB,EAAE,MAAM,CAAK;IAG7B,iBAAiB,EAAE,MAAM,CAAK;IAG9B,SAAS,EAAE,MAAM,CAAK;IAGtB,KAAK,EAAE,MAAM,CAAC;IAGd,SAAS,EAAE,IAAI,CAAc;IAG7B,YAAY,EAAE,IAAI,CAAc;IAGhC,OAAO,EAAE,IAAI,CAAC;IAGd,iBAAiB,EAAE,MAAM,CAAC;IAG1B,YAAY,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,QAAQ,EAAE,CAAC;IAGtB,WAAW,EAAE,UAAU,EAAE,CAAC;IAG1B,uBAAuB,EAAE,sBAAsB,EAAE,CAAC;IAGlD,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;CAE3C"}
@@ -50,6 +50,7 @@ __decorate([
50
50
  __metadata("design:type", agent_registry_entity_1.AgentRegistry)
51
51
  ], AgentSession.prototype, "agent", void 0);
52
52
  __decorate([
53
+ (0, typeorm_1.Index)(),
53
54
  (0, typeorm_1.ManyToOne)(() => agent_process_entity_1.AgentProcess, { onDelete: "SET NULL", nullable: true }),
54
55
  (0, typeorm_1.JoinColumn)(),
55
56
  __metadata("design:type", agent_process_entity_1.AgentProcess)
@@ -140,6 +141,7 @@ __decorate([
140
141
  __metadata("design:type", Array)
141
142
  ], AgentSession.prototype, "agentHumanRequests", void 0);
142
143
  exports.AgentSession = AgentSession = __decorate([
143
- (0, typeorm_1.Entity)('ss_agent_session')
144
+ (0, typeorm_1.Entity)('ss_agent_session'),
145
+ (0, typeorm_1.Index)(['user', 'trigger', 'lastActiveAt'])
144
146
  ], AgentSession);
145
147
  //# sourceMappingURL=agent-session.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-session.entity.js","sourceRoot":"","sources":["../../src/entities/agent-session.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,+CAAgD;AAChD,qCAAkF;AAClF,mEAAwD;AACxD,iEAAsD;AACtD,yDAA8C;AAC9C,6DAAkD;AAClD,uFAA2E;AAC3E,6EAAiE;AACjE,oEAA0F;AAGnF,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAY;IAAvC;;QA0BH,WAAM,GAAW,QAAQ,CAAC;QAG1B,WAAM,GAAW,IAAI,CAAC;QAMtB,cAAS,GAAW,CAAC,CAAC;QAGtB,eAAU,GAAW,CAAC,CAAC;QAGvB,qBAAgB,GAAW,CAAC,CAAC;QAG7B,sBAAiB,GAAW,CAAC,CAAC;QAG9B,cAAS,GAAW,CAAC,CAAC;QAMtB,cAAS,GAAS,IAAI,IAAI,EAAE,CAAC;QAG7B,iBAAY,GAAS,IAAI,IAAI,EAAE,CAAC;KAuBnC;;wgCA1BqB,IAAI,IAAI,EAAE,+DAGP,IAAI,IAAI,EAAE;;CAuBlC,CAAA;AA/EY,oCAAY;AAGrB;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC1B;AAIlB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,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACvD;AAG1B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wDAAsB,EAAE,sBAAsB,CAAC,EAAE,CAAC,sBAAsB,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;6DACnE;AAGlD;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAiB,EAAE,iBAAiB,CAAC,EAAE,CAAC,iBAAiB,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wDAC9D;uBA7E/B,YAAY;IADxB,IAAA,gBAAM,EAAC,kBAAkB,CAAC;GACd,YAAY,CA+ExB","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity';\nimport { User } from 'src/entities/user.entity';\nimport { Entity, Column, Index, JoinColumn, ManyToOne, OneToMany } from 'typeorm';\nimport { AgentRegistry } from './agent-registry.entity';\nimport { AgentProcess } from './agent-process.entity';\nimport { AgentJob } from './agent-job.entity';\nimport { AgentEvent } from './agent-event.entity';\nimport { AgentSessionCheckpoint } from './agent-session-checkpoint.entity';\nimport { AgentHumanRequest } from './agent-human-request.entity';\nimport { getColumnType, getCurrentTimestampDefault } from 'src/helpers/typeorm-db-helper';\n\n@Entity('ss_agent_session')\nexport class AgentSession extends CommonEntity {\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: true })\n sessionId: string;\n\n @ManyToOne(() => AgentRegistry, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n agent: AgentRegistry;\n\n // The most recent process that hosted this session; it remains linked after shutdown.\n @ManyToOne(() => AgentProcess, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n process: AgentProcess;\n\n @Column({ type: \"varchar\" })\n trigger: string;\n\n // Runtime that created/hosted this session; nullable for legacy rows where it is unknown.\n @Column({ type: \"varchar\", nullable: true })\n runtime: \"solidx\" | \"agentHub\" | null;\n\n @ManyToOne(() => User, { onDelete: \"RESTRICT\", nullable: false })\n @JoinColumn()\n user: User;\n\n @Column({ type: \"varchar\", default: \"queued\" })\n status: string = \"queued\";\n\n @Column({ type: \"text\", default: \"{}\" })\n inputs: string = \"{}\";\n\n @Column({ type: \"integer\" })\n configVersion: number;\n\n @Column({ type: \"integer\", default: 0 })\n turnCount: number = 0;\n\n @Column({ type: \"integer\", default: 0 })\n totalSteps: number = 0;\n\n @Column({ type: \"integer\", default: 0 })\n totalInputTokens: number = 0;\n\n @Column({ type: \"integer\", default: 0 })\n totalOutputTokens: number = 0;\n\n @Column({ type: \"decimal\" })\n totalCost: number = 0;\n\n @Column({ type: \"text\", nullable: true })\n error: string;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), default: () => getCurrentTimestampDefault() })\n startedAt: Date = new Date();\n\n @Column({ ...getColumnType('datetimeWithTimezone'), default: () => getCurrentTimestampDefault() })\n lastActiveAt: Date = new Date();\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n endedAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n reasoningModelKey: string;\n\n @Column({ type: \"varchar\", nullable: true })\n fastModelKey: string;\n\n @OneToMany(() => AgentJob, agentJob => agentJob.session, { cascade: true })\n agentJobs: AgentJob[];\n\n @OneToMany(() => AgentEvent, agentEvent => agentEvent.session, { cascade: true })\n agentEvents: AgentEvent[];\n\n @OneToMany(() => AgentSessionCheckpoint, agentSessionCheckpoint => agentSessionCheckpoint.session, { cascade: true })\n agentSessionCheckpoints: AgentSessionCheckpoint[];\n\n @OneToMany(() => AgentHumanRequest, agentHumanRequest => agentHumanRequest.session, { cascade: true })\n agentHumanRequests: AgentHumanRequest[];\n\n}\n"]}
1
+ {"version":3,"file":"agent-session.entity.js","sourceRoot":"","sources":["../../src/entities/agent-session.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,+CAAgD;AAChD,qCAAkF;AAClF,mEAAwD;AACxD,iEAAsD;AACtD,yDAA8C;AAC9C,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iFxB","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity';\nimport { User } from 'src/entities/user.entity';\nimport { Entity, Column, Index, JoinColumn, ManyToOne, OneToMany } from 'typeorm';\nimport { AgentRegistry } from './agent-registry.entity';\nimport { AgentProcess } from './agent-process.entity';\nimport { AgentJob } from './agent-job.entity';\nimport { AgentEvent } from './agent-event.entity';\nimport { AgentSessionCheckpoint } from './agent-session-checkpoint.entity';\nimport { AgentHumanRequest } from './agent-human-request.entity';\nimport { getColumnType, getCurrentTimestampDefault } from 'src/helpers/typeorm-db-helper';\n\n@Entity('ss_agent_session')\n@Index(['user', 'trigger', 'lastActiveAt'])\nexport class AgentSession extends CommonEntity {\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: true })\n sessionId: string;\n\n @ManyToOne(() => AgentRegistry, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n agent: AgentRegistry;\n\n // The most recent process that hosted this session; it remains linked after shutdown.\n @Index()\n @ManyToOne(() => AgentProcess, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n process: AgentProcess;\n\n // The entry point that created the session. A later job or review does not change it.\n @Column({ type: \"varchar\" })\n trigger: string;\n\n // Runtime that created/hosted this session; nullable for legacy rows where it is unknown.\n @Column({ type: \"varchar\", nullable: true })\n runtime: \"solidx\" | \"agentHub\" | null;\n\n @ManyToOne(() => User, { onDelete: \"RESTRICT\", nullable: false })\n @JoinColumn()\n user: User;\n\n @Column({ type: \"varchar\", default: \"queued\" })\n status: string = \"queued\";\n\n @Column({ type: \"text\", default: \"{}\" })\n inputs: string = \"{}\";\n\n @Column({ type: \"integer\" })\n configVersion: number;\n\n @Column({ type: \"integer\", default: 0 })\n turnCount: number = 0;\n\n @Column({ type: \"integer\", default: 0 })\n totalSteps: number = 0;\n\n @Column({ type: \"integer\", default: 0 })\n totalInputTokens: number = 0;\n\n @Column({ type: \"integer\", default: 0 })\n totalOutputTokens: number = 0;\n\n @Column({ type: \"decimal\" })\n totalCost: number = 0;\n\n @Column({ type: \"text\", nullable: true })\n error: string;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), default: () => getCurrentTimestampDefault() })\n startedAt: Date = new Date();\n\n @Column({ ...getColumnType('datetimeWithTimezone'), default: () => getCurrentTimestampDefault() })\n lastActiveAt: Date = new Date();\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n endedAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n reasoningModelKey: string;\n\n @Column({ type: \"varchar\", nullable: true })\n fastModelKey: string;\n\n @OneToMany(() => AgentJob, agentJob => agentJob.session, { cascade: true })\n agentJobs: AgentJob[];\n\n @OneToMany(() => AgentEvent, agentEvent => agentEvent.session, { cascade: true })\n agentEvents: AgentEvent[];\n\n @OneToMany(() => AgentSessionCheckpoint, agentSessionCheckpoint => agentSessionCheckpoint.session, { cascade: true })\n agentSessionCheckpoints: AgentSessionCheckpoint[];\n\n @OneToMany(() => AgentHumanRequest, agentHumanRequest => agentHumanRequest.session, { cascade: true })\n agentHumanRequests: AgentHumanRequest[];\n\n}\n"]}
@@ -0,0 +1,19 @@
1
+ import { CommonEntity } from '../entities/common.entity';
2
+ import { MediaMigrationJob } from '../entities/media-migration-job.entity';
3
+ export declare const MEDIA_MIGRATION_ITEM_STATUSES: readonly ["pending", "completed", "skipped", "failed", "rolled_back", "source_deleted", "target_deleted"];
4
+ export type MediaMigrationItemStatus = typeof MEDIA_MIGRATION_ITEM_STATUSES[number];
5
+ export declare const MEDIA_MIGRATION_KEY_MAX_LENGTH = 450;
6
+ export declare class MediaMigrationItem extends CommonEntity {
7
+ job: MediaMigrationJob;
8
+ sourceKey: string;
9
+ targetKey: string | null;
10
+ mediaIds: number[];
11
+ status: MediaMigrationItemStatus;
12
+ copied: boolean;
13
+ sourceSize: number | null;
14
+ targetSize: number | null;
15
+ errorCode: string | null;
16
+ errorMessage: string | null;
17
+ attempts: number;
18
+ }
19
+ //# sourceMappingURL=media-migration-item.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media-migration-item.entity.d.ts","sourceRoot":"","sources":["../../src/entities/media-migration-item.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAI5E,eAAO,MAAM,6BAA6B,2GAQhC,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,OAAO,6BAA6B,CAAC,MAAM,CAAC,CAAC;AAKpF,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAMlD,qBAEa,kBAAmB,SAAQ,YAAY;IAGlD,GAAG,EAAE,iBAAiB,CAAC;IAGvB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAIzB,QAAQ,EAAE,MAAM,EAAE,CAAC;IAInB,MAAM,EAAE,wBAAwB,CAAC;IAKjC,MAAM,EAAE,OAAO,CAAC;IAGhB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAG1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAG1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAGzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAG5B,QAAQ,EAAE,MAAM,CAAC;CAClB"}