@boboddy/sdk 0.0.7-alpha → 0.0.8-alpha

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 (215) hide show
  1. package/dist/apps/api/src/app.d.ts +1371 -575
  2. package/dist/apps/api/src/http/routes/step-definition-templates.d.ts +477 -0
  3. package/dist/apps/api/src/http/routes/step-executions.d.ts +1 -0
  4. package/dist/packages/core/src/access/authorization/application/authorization-service.d.ts +12 -0
  5. package/dist/packages/core/src/access/authorization/infra/project-authorization-service.d.ts +7 -0
  6. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/ai-container-launcher.d.ts +21 -0
  7. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/create-project-runtime-session.d.ts +13 -0
  8. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/devcontainer-launcher.d.ts +21 -0
  9. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/get-project-runtime-session.d.ts +11 -0
  10. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/git-clone-service.d.ts +11 -0
  11. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/list-project-runtime-sessions.d.ts +11 -0
  12. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-contract-mapper.d.ts +3 -0
  13. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-execution-target.d.ts +3 -0
  14. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-network-metadata.d.ts +15 -0
  15. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-repo.d.ts +10 -0
  16. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/runtime-session-network-manager.d.ts +14 -0
  17. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/stop-project-runtime-session.d.ts +29 -0
  18. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/workspace-manager.d.ts +10 -0
  19. package/dist/packages/core/src/agent-sessions/project-runtime-session/contracts/project-runtime-session-contracts.d.ts +62 -0
  20. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity-helpers.d.ts +12 -0
  21. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity.d.ts +99 -0
  22. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-execution-target.d.ts +16 -0
  23. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/devcontainer-cli-launcher.d.ts +6 -0
  24. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/docker-ai-container-launcher.d.ts +8 -0
  25. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/drizzle-project-runtime-session-repo.d.ts +11 -0
  26. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/git-cli-clone-service.d.ts +4 -0
  27. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-jsonc.d.ts +4 -0
  28. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager-support.d.ts +42 -0
  29. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager.d.ts +24 -0
  30. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-working-directory.d.ts +5 -0
  31. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-docker-runtime-session-network-manager.d.ts +17 -0
  32. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-workspace-manager.d.ts +11 -0
  33. package/dist/packages/core/src/agent-sessions/runtime-command/application/complete-claimed-runtime-command.d.ts +11 -0
  34. package/dist/packages/core/src/agent-sessions/runtime-command/application/create-runtime-command.d.ts +17 -0
  35. package/dist/packages/core/src/agent-sessions/runtime-command/application/fail-claimed-runtime-command.d.ts +11 -0
  36. package/dist/packages/core/src/agent-sessions/runtime-command/application/interrupt-claimed-runtime-command.d.ts +11 -0
  37. package/dist/packages/core/src/agent-sessions/runtime-command/application/run-runtime-command-locally.d.ts +26 -0
  38. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-claim-helpers.d.ts +1 -0
  39. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-contract-mapper.d.ts +3 -0
  40. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-output-summary.d.ts +4 -0
  41. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-repo.d.ts +20 -0
  42. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-runner.d.ts +25 -0
  43. package/dist/packages/core/src/agent-sessions/runtime-command/contracts/runtime-command-contracts.d.ts +194 -0
  44. package/dist/packages/core/src/agent-sessions/runtime-command/domain/runtime-command-entity.d.ts +111 -0
  45. package/dist/packages/core/src/agent-sessions/runtime-command/infra/drizzle-runtime-command-repo.d.ts +20 -0
  46. package/dist/packages/core/src/agent-sessions/runtime-command/infra/local-runtime-command-runner.d.ts +25 -0
  47. package/dist/packages/core/src/agent-sessions/runtime-environment/domain/runtime-environment.d.ts +12 -0
  48. package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-publisher.d.ts +24 -0
  49. package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-repo.d.ts +17 -0
  50. package/dist/packages/core/src/agent-sessions/runtime-operation-event/domain/runtime-operation-event.d.ts +35 -0
  51. package/dist/packages/core/src/agent-sessions/runtime-operation-event/infra/file-runtime-operation-event-repo.d.ts +25 -0
  52. package/dist/packages/core/src/agent-sessions/runtime-service/application/create-runtime-service.d.ts +17 -0
  53. package/dist/packages/core/src/agent-sessions/runtime-service/application/get-runtime-service.d.ts +11 -0
  54. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-contract-mapper.d.ts +3 -0
  55. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-output-summary.d.ts +10 -0
  56. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-repo.d.ts +9 -0
  57. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-runner.d.ts +23 -0
  58. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-session-service-exposure-provider.d.ts +19 -0
  59. package/dist/packages/core/src/agent-sessions/runtime-service/application/start-runtime-service-locally.d.ts +21 -0
  60. package/dist/packages/core/src/agent-sessions/runtime-service/application/stop-runtime-service.d.ts +32 -0
  61. package/dist/packages/core/src/agent-sessions/runtime-service/contracts/runtime-service-contracts.d.ts +140 -0
  62. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-access-point.d.ts +12 -0
  63. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-entity.d.ts +76 -0
  64. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-healthcheck.d.ts +20 -0
  65. package/dist/packages/core/src/agent-sessions/runtime-service/infra/drizzle-runtime-service-repo.d.ts +9 -0
  66. package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-readiness-probe.d.ts +42 -0
  67. package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-runner.d.ts +32 -0
  68. package/dist/packages/core/src/common/contracts/json.d.ts +9 -0
  69. package/dist/packages/core/src/common/contracts/opencode-mcp.d.ts +73 -0
  70. package/dist/packages/core/src/common/contracts/uuid-v7.d.ts +8 -0
  71. package/dist/packages/core/src/lib/db/db-executor.d.ts +4 -0
  72. package/dist/packages/core/src/lib/db/index.d.ts +7 -0
  73. package/dist/packages/core/src/lib/db/schema.d.ts +4950 -0
  74. package/dist/packages/core/src/lib/di.d.ts +112 -0
  75. package/dist/packages/core/src/lib/domain-events/domain-event.d.ts +12 -0
  76. package/dist/packages/core/src/lib/domain-events/in-memory-domain-event-dispatcher.d.ts +7 -0
  77. package/dist/packages/core/src/lib/errors.d.ts +36 -0
  78. package/dist/packages/core/src/lib/logger.d.ts +7 -0
  79. package/dist/packages/core/src/lib/time-provider.d.ts +5 -0
  80. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/add-linear-pipeline-step-definition.d.ts +9 -0
  81. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/archive-linear-pipeline-definition.d.ts +9 -0
  82. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/create-linear-pipeline-definition.d.ts +9 -0
  83. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/get-linear-pipeline-definition.d.ts +7 -0
  84. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-contract-mapper.d.ts +3 -0
  85. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo.d.ts +9 -0
  86. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/list-linear-pipeline-definitions.d.ts +7 -0
  87. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/remove-linear-pipeline-step-definition.d.ts +9 -0
  88. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/set-linear-pipeline-step-advancement-policy-definition.d.ts +9 -0
  89. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-definition.d.ts +9 -0
  90. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-step-definition.d.ts +9 -0
  91. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/contracts/linear-pipeline-definition-contracts.d.ts +357 -0
  92. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/domain/linear-pipeline-definition-entity.d.ts +36 -0
  93. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-advancement-policy-definition-entity.d.ts +42 -0
  94. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-definition-entity.d.ts +42 -0
  95. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/infra/drizzle-linear-pipeline-definition-repo.d.ts +11 -0
  96. package/dist/packages/core/src/pipeline-definitions/step-definition/application/archive-step-definition.d.ts +9 -0
  97. package/dist/packages/core/src/pipeline-definitions/step-definition/application/create-step-definition.d.ts +9 -0
  98. package/dist/packages/core/src/pipeline-definitions/step-definition/application/get-step-definition.d.ts +7 -0
  99. package/dist/packages/core/src/pipeline-definitions/step-definition/application/list-step-definitions.d.ts +7 -0
  100. package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-contract-mapper.d.ts +3 -0
  101. package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-repo.d.ts +9 -0
  102. package/dist/packages/core/src/pipeline-definitions/step-definition/application/update-step-definition.d.ts +9 -0
  103. package/dist/packages/core/src/pipeline-definitions/step-definition/contracts/step-definition-contracts.d.ts +281 -0
  104. package/dist/packages/core/src/pipeline-definitions/step-definition/domain/step-definition-entity.d.ts +53 -0
  105. package/dist/packages/core/src/pipeline-definitions/step-definition/entities/computed-signal-definition-entity.d.ts +31 -0
  106. package/dist/packages/core/src/pipeline-definitions/step-definition/entities/signal-extractor-definition-entity.d.ts +30 -0
  107. package/dist/packages/core/src/pipeline-definitions/step-definition/infra/drizzle-step-definition-repo.d.ts +11 -0
  108. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/get-step-definition-template.d.ts +6 -0
  109. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/instantiate-step-definition-template.d.ts +11 -0
  110. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/list-step-definition-templates.d.ts +5 -0
  111. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/step-definition-template-repo.d.ts +7 -0
  112. package/dist/packages/core/src/pipeline-definitions/step-definition-template/contracts/step-definition-template-contracts.d.ts +98 -0
  113. package/dist/packages/core/src/pipeline-definitions/step-definition-template/domain/step-definition-template-entity.d.ts +37 -0
  114. package/dist/packages/core/src/pipeline-definitions/step-definition-template/infra/drizzle-step-definition-template-repo.d.ts +9 -0
  115. package/dist/packages/core/src/pipeline-executions/feedback-request/application/create-feedback-requests-on-step-signal-created.d.ts +9 -0
  116. package/dist/packages/core/src/pipeline-executions/feedback-request/application/decline-feedback-request.d.ts +14 -0
  117. package/dist/packages/core/src/pipeline-executions/feedback-request/application/feedback-request-repo.d.ts +8 -0
  118. package/dist/packages/core/src/pipeline-executions/feedback-request/application/list-feedback-requests-by-step-signal.d.ts +15 -0
  119. package/dist/packages/core/src/pipeline-executions/feedback-request/contracts/feedback-request-contracts.d.ts +21 -0
  120. package/dist/packages/core/src/pipeline-executions/feedback-request/domain/feedback-request-entity.d.ts +29 -0
  121. package/dist/packages/core/src/pipeline-executions/feedback-request/infra/drizzle-feedback-request-repo.d.ts +10 -0
  122. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/accept-linear-pipeline-step-run.d.ts +15 -0
  123. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/apply-linear-pipeline-step-result-and-advance.d.ts +17 -0
  124. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/cancel-linear-pipeline-execution.d.ts +11 -0
  125. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-execution.d.ts +11 -0
  126. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-step-run-attempt.d.ts +13 -0
  127. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/get-linear-pipeline-execution.d.ts +11 -0
  128. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-contract-mapper.d.ts +3 -0
  129. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-helpers.d.ts +52 -0
  130. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-repo.d.ts +15 -0
  131. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-step-input-resolution.d.ts +5 -0
  132. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions-by-definition.d.ts +11 -0
  133. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions.d.ts +11 -0
  134. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/mark-linear-pipeline-step-run-attempt-running.d.ts +11 -0
  135. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/project-linear-pipeline-executions.d.ts +10 -0
  136. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/queue-first-linear-pipeline-step-run.d.ts +15 -0
  137. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/retrigger-linear-pipeline-step-run.d.ts +13 -0
  138. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/start-linear-pipeline-execution.d.ts +15 -0
  139. package/dist/packages/core/src/pipeline-executions/pipeline-execution/contracts/linear-pipeline-execution-contracts.d.ts +330 -0
  140. package/dist/packages/core/src/pipeline-executions/pipeline-execution/domain/linear-pipeline-execution-entity.d.ts +43 -0
  141. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-execution-event-entity.d.ts +25 -0
  142. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-evaluation-entity.d.ts +45 -0
  143. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-attempt-entity.d.ts +24 -0
  144. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-entity.d.ts +63 -0
  145. package/dist/packages/core/src/pipeline-executions/pipeline-execution/infra/drizzle-linear-pipeline-execution-repo.d.ts +19 -0
  146. package/dist/packages/core/src/pipeline-executions/step-execution/application/add-step-execution-result.d.ts +9 -0
  147. package/dist/packages/core/src/pipeline-executions/step-execution/application/claim-step-executions.d.ts +17 -0
  148. package/dist/packages/core/src/pipeline-executions/step-execution/application/complete-claimed-step-execution.d.ts +35 -0
  149. package/dist/packages/core/src/pipeline-executions/step-execution/application/create-step-execution.d.ts +9 -0
  150. package/dist/packages/core/src/pipeline-executions/step-execution/application/extract-step-execution-signals.d.ts +13 -0
  151. package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution-worker-context.d.ts +13 -0
  152. package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution.d.ts +9 -0
  153. package/dist/packages/core/src/pipeline-executions/step-execution/application/heartbeat-step-execution-claim.d.ts +17 -0
  154. package/dist/packages/core/src/pipeline-executions/step-execution/application/list-step-executions-by-project.d.ts +9 -0
  155. package/dist/packages/core/src/pipeline-executions/step-execution/application/load-status-adjusted-step-executions.d.ts +31 -0
  156. package/dist/packages/core/src/pipeline-executions/step-execution/application/mark-step-execution-running.d.ts +9 -0
  157. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-claim-helpers.d.ts +13 -0
  158. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-contract-mapper.d.ts +7 -0
  159. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-repo.d.ts +29 -0
  160. package/dist/packages/core/src/pipeline-executions/step-execution/contracts/step-execution-contracts.d.ts +325 -0
  161. package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-execution-entity.d.ts +61 -0
  162. package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-signal-created.domain-event.d.ts +18 -0
  163. package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-execution-result-entity.d.ts +32 -0
  164. package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-signal-entity.d.ts +36 -0
  165. package/dist/packages/core/src/pipeline-executions/step-execution/infra/drizzle-step-execution-repo.d.ts +31 -0
  166. package/dist/packages/core/src/projects/project/application/create-project.d.ts +13 -0
  167. package/dist/packages/core/src/projects/project/application/default-pipelines/default-create-failing-test-step-definition.d.ts +4 -0
  168. package/dist/packages/core/src/projects/project/application/default-pipelines/default-description-quality-step-definition.d.ts +4 -0
  169. package/dist/packages/core/src/projects/project/application/default-pipelines/default-fix-failing-test-step-definition.d.ts +4 -0
  170. package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-conventions.d.ts +9 -0
  171. package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-definitions.d.ts +7 -0
  172. package/dist/packages/core/src/projects/project/application/default-pipelines/default-step-definitions.d.ts +8 -0
  173. package/dist/packages/core/src/projects/project/application/default-pipelines/default-web-repro-playwright-step-definition.d.ts +4 -0
  174. package/dist/packages/core/src/projects/project/application/get-project.d.ts +9 -0
  175. package/dist/packages/core/src/projects/project/application/list-projects.d.ts +9 -0
  176. package/dist/packages/core/src/projects/project/application/project-authorization.d.ts +4 -0
  177. package/dist/packages/core/src/projects/project/application/project-contract-mapper.d.ts +3 -0
  178. package/dist/packages/core/src/projects/project/application/project-repo.d.ts +9 -0
  179. package/dist/packages/core/src/projects/project/application/seed-default-pipelines-on-project-created.d.ts +12 -0
  180. package/dist/packages/core/src/projects/project/application/update-project-membership.d.ts +11 -0
  181. package/dist/packages/core/src/projects/project/contracts/project-contracts.d.ts +37 -0
  182. package/dist/packages/core/src/projects/project/domain/project-created.domain-event.d.ts +13 -0
  183. package/dist/packages/core/src/projects/project/domain/project-entity.d.ts +31 -0
  184. package/dist/packages/core/src/projects/project/domain/project-git-url.d.ts +7 -0
  185. package/dist/packages/core/src/projects/project/domain/project-membership.d.ts +21 -0
  186. package/dist/packages/core/src/projects/project/domain/project-permission.d.ts +7 -0
  187. package/dist/packages/core/src/projects/project/infra/drizzle-project-repo.d.ts +11 -0
  188. package/dist/packages/core/src/projects/project-context/application/create-project-context-entry.d.ts +13 -0
  189. package/dist/packages/core/src/projects/project-context/application/delete-project-context-entry.d.ts +10 -0
  190. package/dist/packages/core/src/projects/project-context/application/list-project-context-entries.d.ts +13 -0
  191. package/dist/packages/core/src/projects/project-context/application/project-context-entry-repo.d.ts +8 -0
  192. package/dist/packages/core/src/projects/project-context/contracts/project-context-entry-contracts.d.ts +46 -0
  193. package/dist/packages/core/src/projects/project-context/domain/project-context-entry-entity.d.ts +27 -0
  194. package/dist/packages/core/src/projects/project-context/infra/drizzle-project-context-entry-repo.d.ts +10 -0
  195. package/dist/packages/core/src/projects/project-opencode-config/application/project-opencode-runtime-metadata.d.ts +17 -0
  196. package/dist/packages/core/src/work-items/work-item/application/create-work-item.d.ts +16 -0
  197. package/dist/packages/core/src/work-items/work-item/application/delete-work-items.d.ts +14 -0
  198. package/dist/packages/core/src/work-items/work-item/application/get-work-items.d.ts +14 -0
  199. package/dist/packages/core/src/work-items/work-item/application/list-work-items-by-project.d.ts +11 -0
  200. package/dist/packages/core/src/work-items/work-item/application/upsert-work-item.d.ts +16 -0
  201. package/dist/packages/core/src/work-items/work-item/application/work-item-contract-mapper.d.ts +4 -0
  202. package/dist/packages/core/src/work-items/work-item/application/work-item-repo.d.ts +27 -0
  203. package/dist/packages/core/src/work-items/work-item/contracts/work-item-contracts.d.ts +119 -0
  204. package/dist/packages/core/src/work-items/work-item/domain/date-utils.d.ts +1 -0
  205. package/dist/packages/core/src/work-items/work-item/domain/work-item-entity.d.ts +58 -0
  206. package/dist/packages/core/src/work-items/work-item/domain/work-item-field-value.d.ts +3 -0
  207. package/dist/packages/core/src/work-items/work-item/domain/work-item-id.d.ts +6 -0
  208. package/dist/packages/core/src/work-items/work-item/domain/work-item-platform.d.ts +2 -0
  209. package/dist/packages/core/src/work-items/work-item/domain/work-item-projection-fingerprint-entity.d.ts +18 -0
  210. package/dist/packages/core/src/work-items/work-item/infra/drizzle-work-item-repo.d.ts +25 -0
  211. package/dist/packages/sdks/js/src/define-step.d.ts +72 -0
  212. package/dist/packages/sdks/js/src/step-definitions-client.d.ts +202 -0
  213. package/dist/packages/sdks/js/src/step-execution-plane-client.d.ts +1 -0
  214. package/dist/packages/sdks/js/test/define-step.test.d.ts +1 -0
  215. package/package.json +17 -2
@@ -0,0 +1,477 @@
1
+ import { Elysia } from "elysia";
2
+ import type { AppContext } from "@boboddy/core/lib/di";
3
+ export declare const createStepDefinitionTemplateRoutes: (appContext: AppContext) => Elysia<"", {
4
+ decorator: {};
5
+ store: {};
6
+ derive: {};
7
+ resolve: {};
8
+ }, {
9
+ typebox: {};
10
+ error: {};
11
+ }, {
12
+ schema: {};
13
+ standaloneSchema: {};
14
+ macro: {};
15
+ macroFn: {};
16
+ parser: {};
17
+ response: {};
18
+ }, {
19
+ "step-definition-templates": {
20
+ get: {
21
+ body: unknown;
22
+ params: {};
23
+ query: unknown;
24
+ headers: unknown;
25
+ response: {
26
+ 422: {
27
+ type: "validation";
28
+ on: string;
29
+ summary?: string;
30
+ message?: string;
31
+ found?: unknown;
32
+ property?: string;
33
+ expected?: string;
34
+ };
35
+ 500: {
36
+ type: string;
37
+ title: string;
38
+ status: number;
39
+ detail?: string | undefined;
40
+ instance?: string | undefined;
41
+ code?: string | undefined;
42
+ errors?: {
43
+ path: string;
44
+ message: string;
45
+ summary?: string | undefined;
46
+ }[] | undefined;
47
+ };
48
+ 200: {
49
+ id: string & {
50
+ readonly __brand: "uuidv7";
51
+ };
52
+ key: string;
53
+ name: string;
54
+ description: string | null;
55
+ promptTemplate: string | null;
56
+ inputSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
57
+ resultSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
58
+ opencodeMcpJson: Record<string, {
59
+ type: "local";
60
+ command: string[];
61
+ environment?: Record<string, string> | undefined;
62
+ enabled?: boolean | undefined;
63
+ timeout?: number | undefined;
64
+ } | {
65
+ type: "remote";
66
+ url: string;
67
+ enabled?: boolean | undefined;
68
+ headers?: Record<string, string> | undefined;
69
+ oauth?: false | {
70
+ clientId?: string | undefined;
71
+ clientSecret?: string | undefined;
72
+ scope?: string | undefined;
73
+ redirectUri?: string | undefined;
74
+ } | undefined;
75
+ timeout?: number | undefined;
76
+ } | {
77
+ enabled: boolean;
78
+ }> | null;
79
+ signalExtractorDefinitions: {
80
+ key: string;
81
+ sourcePath: string;
82
+ type: "string" | "number" | "boolean" | "object" | "array";
83
+ required: boolean;
84
+ availableWhenResultStatusIn: string[] | null;
85
+ }[];
86
+ parameters: {
87
+ key: string;
88
+ label: string;
89
+ type: "text" | "textarea";
90
+ required: boolean;
91
+ description?: string | null | undefined;
92
+ placeholder?: string | null | undefined;
93
+ }[];
94
+ status: "active" | "archived";
95
+ createdAt: string;
96
+ updatedAt: string;
97
+ }[];
98
+ 401: {
99
+ type: string;
100
+ title: string;
101
+ status: number;
102
+ detail?: string | undefined;
103
+ instance?: string | undefined;
104
+ code?: string | undefined;
105
+ errors?: {
106
+ path: string;
107
+ message: string;
108
+ summary?: string | undefined;
109
+ }[] | undefined;
110
+ };
111
+ };
112
+ };
113
+ };
114
+ } & {
115
+ "step-definition-templates": {
116
+ ":stepDefinitionTemplateId": {
117
+ get: {
118
+ body: unknown;
119
+ params: {
120
+ stepDefinitionTemplateId: string & {
121
+ readonly __brand: "uuidv7";
122
+ };
123
+ };
124
+ query: unknown;
125
+ headers: unknown;
126
+ response: {
127
+ 422: {
128
+ type: string;
129
+ title: string;
130
+ status: number;
131
+ detail?: string | undefined;
132
+ instance?: string | undefined;
133
+ code?: string | undefined;
134
+ errors?: {
135
+ path: string;
136
+ message: string;
137
+ summary?: string | undefined;
138
+ }[] | undefined;
139
+ };
140
+ 404: {
141
+ type: string;
142
+ title: string;
143
+ status: number;
144
+ detail?: string | undefined;
145
+ instance?: string | undefined;
146
+ code?: string | undefined;
147
+ errors?: {
148
+ path: string;
149
+ message: string;
150
+ summary?: string | undefined;
151
+ }[] | undefined;
152
+ };
153
+ 500: {
154
+ type: string;
155
+ title: string;
156
+ status: number;
157
+ detail?: string | undefined;
158
+ instance?: string | undefined;
159
+ code?: string | undefined;
160
+ errors?: {
161
+ path: string;
162
+ message: string;
163
+ summary?: string | undefined;
164
+ }[] | undefined;
165
+ };
166
+ 200: {
167
+ id: string & {
168
+ readonly __brand: "uuidv7";
169
+ };
170
+ key: string;
171
+ name: string;
172
+ description: string | null;
173
+ promptTemplate: string | null;
174
+ inputSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
175
+ resultSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
176
+ opencodeMcpJson: Record<string, {
177
+ type: "local";
178
+ command: string[];
179
+ environment?: Record<string, string> | undefined;
180
+ enabled?: boolean | undefined;
181
+ timeout?: number | undefined;
182
+ } | {
183
+ type: "remote";
184
+ url: string;
185
+ enabled?: boolean | undefined;
186
+ headers?: Record<string, string> | undefined;
187
+ oauth?: false | {
188
+ clientId?: string | undefined;
189
+ clientSecret?: string | undefined;
190
+ scope?: string | undefined;
191
+ redirectUri?: string | undefined;
192
+ } | undefined;
193
+ timeout?: number | undefined;
194
+ } | {
195
+ enabled: boolean;
196
+ }> | null;
197
+ signalExtractorDefinitions: {
198
+ key: string;
199
+ sourcePath: string;
200
+ type: "string" | "number" | "boolean" | "object" | "array";
201
+ required: boolean;
202
+ availableWhenResultStatusIn: string[] | null;
203
+ }[];
204
+ parameters: {
205
+ key: string;
206
+ label: string;
207
+ type: "text" | "textarea";
208
+ required: boolean;
209
+ description?: string | null | undefined;
210
+ placeholder?: string | null | undefined;
211
+ }[];
212
+ status: "active" | "archived";
213
+ createdAt: string;
214
+ updatedAt: string;
215
+ };
216
+ 401: {
217
+ type: string;
218
+ title: string;
219
+ status: number;
220
+ detail?: string | undefined;
221
+ instance?: string | undefined;
222
+ code?: string | undefined;
223
+ errors?: {
224
+ path: string;
225
+ message: string;
226
+ summary?: string | undefined;
227
+ }[] | undefined;
228
+ };
229
+ };
230
+ };
231
+ };
232
+ };
233
+ } & {
234
+ "step-definition-templates": {
235
+ ":stepDefinitionTemplateId": {
236
+ instantiate: {
237
+ post: {
238
+ body: {
239
+ projectId: string & {
240
+ readonly __brand: "uuidv7";
241
+ };
242
+ name: string;
243
+ parameterValues: Record<string, string>;
244
+ };
245
+ params: {
246
+ stepDefinitionTemplateId: string & {
247
+ readonly __brand: "uuidv7";
248
+ };
249
+ };
250
+ query: unknown;
251
+ headers: unknown;
252
+ response: {
253
+ 422: {
254
+ type: string;
255
+ title: string;
256
+ status: number;
257
+ detail?: string | undefined;
258
+ instance?: string | undefined;
259
+ code?: string | undefined;
260
+ errors?: {
261
+ path: string;
262
+ message: string;
263
+ summary?: string | undefined;
264
+ }[] | undefined;
265
+ };
266
+ 404: {
267
+ type: string;
268
+ title: string;
269
+ status: number;
270
+ detail?: string | undefined;
271
+ instance?: string | undefined;
272
+ code?: string | undefined;
273
+ errors?: {
274
+ path: string;
275
+ message: string;
276
+ summary?: string | undefined;
277
+ }[] | undefined;
278
+ };
279
+ 409: {
280
+ type: string;
281
+ title: string;
282
+ status: number;
283
+ detail?: string | undefined;
284
+ instance?: string | undefined;
285
+ code?: string | undefined;
286
+ errors?: {
287
+ path: string;
288
+ message: string;
289
+ summary?: string | undefined;
290
+ }[] | undefined;
291
+ };
292
+ 500: {
293
+ type: string;
294
+ title: string;
295
+ status: number;
296
+ detail?: string | undefined;
297
+ instance?: string | undefined;
298
+ code?: string | undefined;
299
+ errors?: {
300
+ path: string;
301
+ message: string;
302
+ summary?: string | undefined;
303
+ }[] | undefined;
304
+ };
305
+ 200: {
306
+ id: string & {
307
+ readonly __brand: "uuidv7";
308
+ };
309
+ projectId: string & {
310
+ readonly __brand: "uuidv7";
311
+ };
312
+ key: string;
313
+ name: string;
314
+ description: string | null;
315
+ prompt: string | null;
316
+ version: number;
317
+ kind: "built_in" | "user_defined";
318
+ inputSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
319
+ resultSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
320
+ opencodeMcpJson: Record<string, {
321
+ type: "local";
322
+ command: string[];
323
+ environment?: Record<string, string> | undefined;
324
+ enabled?: boolean | undefined;
325
+ timeout?: number | undefined;
326
+ } | {
327
+ type: "remote";
328
+ url: string;
329
+ enabled?: boolean | undefined;
330
+ headers?: Record<string, string> | undefined;
331
+ oauth?: false | {
332
+ clientId?: string | undefined;
333
+ clientSecret?: string | undefined;
334
+ scope?: string | undefined;
335
+ redirectUri?: string | undefined;
336
+ } | undefined;
337
+ timeout?: number | undefined;
338
+ } | {
339
+ enabled: boolean;
340
+ }> | null;
341
+ status: "draft" | "active" | "archived";
342
+ signalExtractorDefinitions: {
343
+ id: string & {
344
+ readonly __brand: "uuidv7";
345
+ };
346
+ key: string;
347
+ sourcePath: string;
348
+ type: "string" | "number" | "boolean" | "object" | "array";
349
+ required: boolean;
350
+ availableWhenResultStatusIn: string[] | null;
351
+ createdAt: string;
352
+ updatedAt: string;
353
+ }[];
354
+ computedSignalDefinitions: {
355
+ id: string & {
356
+ readonly __brand: "uuidv7";
357
+ };
358
+ key: string;
359
+ type: "custom" | "average" | "weighted_average" | "sum" | "min" | "max";
360
+ inputSignalKeys: string[];
361
+ configJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
362
+ availableWhenResultStatusIn: string[] | null;
363
+ createdAt: string;
364
+ updatedAt: string;
365
+ }[];
366
+ createdAt: string;
367
+ updatedAt: string;
368
+ };
369
+ 403: {
370
+ type: string;
371
+ title: string;
372
+ status: number;
373
+ detail?: string | undefined;
374
+ instance?: string | undefined;
375
+ code?: string | undefined;
376
+ errors?: {
377
+ path: string;
378
+ message: string;
379
+ summary?: string | undefined;
380
+ }[] | undefined;
381
+ };
382
+ 400: {
383
+ type: string;
384
+ title: string;
385
+ status: number;
386
+ detail?: string | undefined;
387
+ instance?: string | undefined;
388
+ code?: string | undefined;
389
+ errors?: {
390
+ path: string;
391
+ message: string;
392
+ summary?: string | undefined;
393
+ }[] | undefined;
394
+ };
395
+ 401: {
396
+ type: string;
397
+ title: string;
398
+ status: number;
399
+ detail?: string | undefined;
400
+ instance?: string | undefined;
401
+ code?: string | undefined;
402
+ errors?: {
403
+ path: string;
404
+ message: string;
405
+ summary?: string | undefined;
406
+ }[] | undefined;
407
+ };
408
+ };
409
+ };
410
+ };
411
+ };
412
+ };
413
+ }, {
414
+ derive: {};
415
+ resolve: {};
416
+ schema: {};
417
+ standaloneSchema: {};
418
+ response: {};
419
+ }, {
420
+ derive: {};
421
+ resolve: {};
422
+ schema: {};
423
+ standaloneSchema: {};
424
+ response: {};
425
+ } & {
426
+ derive: {
427
+ readonly auth: {
428
+ readonly userId: import("@boboddy/core/common/contracts/uuid-v7").UuidV7;
429
+ readonly user: {
430
+ id: string;
431
+ createdAt: Date;
432
+ updatedAt: Date;
433
+ email: string;
434
+ emailVerified: boolean;
435
+ name: string;
436
+ image?: string | null | undefined | undefined;
437
+ };
438
+ readonly session: {
439
+ id: string;
440
+ createdAt: Date;
441
+ updatedAt: Date;
442
+ userId: string;
443
+ expiresAt: Date;
444
+ token: string;
445
+ ipAddress?: string | null | undefined | undefined;
446
+ userAgent?: string | null | undefined | undefined;
447
+ };
448
+ };
449
+ };
450
+ resolve: {};
451
+ schema: {};
452
+ standaloneSchema: {};
453
+ response: import("elysia").ExtractErrorFromHandle<{
454
+ readonly auth: {
455
+ readonly userId: import("@boboddy/core/common/contracts/uuid-v7").UuidV7;
456
+ readonly user: {
457
+ id: string;
458
+ createdAt: Date;
459
+ updatedAt: Date;
460
+ email: string;
461
+ emailVerified: boolean;
462
+ name: string;
463
+ image?: string | null | undefined | undefined;
464
+ };
465
+ readonly session: {
466
+ id: string;
467
+ createdAt: Date;
468
+ updatedAt: Date;
469
+ userId: string;
470
+ expiresAt: Date;
471
+ token: string;
472
+ ipAddress?: string | null | undefined | undefined;
473
+ userAgent?: string | null | undefined | undefined;
474
+ };
475
+ };
476
+ }>;
477
+ }>;
@@ -26,6 +26,7 @@ export declare const createStepExecutionsRoutes: (appContext: AppContext) => Ely
26
26
  workerId: string;
27
27
  batchSize: number;
28
28
  leaseDurationSeconds: number;
29
+ workItemId?: string | undefined;
29
30
  };
30
31
  params: {};
31
32
  query: unknown;
@@ -0,0 +1,12 @@
1
+ import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
2
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
3
+ import type { ProjectPermission } from "@boboddy/core/projects/project/domain/project-permission";
4
+ export type RequireProjectPermissionInput = {
5
+ actorId: UuidV7;
6
+ projectId: UuidV7;
7
+ permission: ProjectPermission;
8
+ dbExecutor?: DbExecutor | undefined;
9
+ };
10
+ export interface AuthorizationService {
11
+ requireProjectPermission(input: RequireProjectPermissionInput): Promise<void>;
12
+ }
@@ -0,0 +1,7 @@
1
+ import type { ProjectRepo } from "@boboddy/core/projects/project/application/project-repo";
2
+ import type { AuthorizationService, RequireProjectPermissionInput } from "../application/authorization-service";
3
+ export declare class ProjectAuthorizationService implements AuthorizationService {
4
+ private readonly projectRepo;
5
+ constructor(projectRepo: ProjectRepo);
6
+ requireProjectPermission({ actorId, projectId, permission, dbExecutor, }: RequireProjectPermissionInput): Promise<void>;
7
+ }
@@ -0,0 +1,21 @@
1
+ import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
2
+ import type { AnyJsonObject } from "@boboddy/core/common/contracts/json";
3
+ export type LaunchAiContainerInput = {
4
+ sessionId: UuidV7;
5
+ projectId: UuidV7;
6
+ requestedByUserId: UuidV7;
7
+ workspacePath: string;
8
+ extraEnv?: Record<string, string> | undefined;
9
+ additionalNetworks?: string[] | undefined;
10
+ };
11
+ export type LaunchAiContainerResult = {
12
+ containerId: string;
13
+ baseUrl: string;
14
+ image: string;
15
+ opencodeLogDirectory: string;
16
+ metadata?: AnyJsonObject | undefined;
17
+ };
18
+ export type AiContainerLauncher = {
19
+ launch(input: LaunchAiContainerInput): Promise<LaunchAiContainerResult>;
20
+ stop(containerId: string): Promise<void>;
21
+ };
@@ -0,0 +1,13 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
3
+ import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
4
+ import type { ProjectRepo } from "@boboddy/core/projects/project/application/project-repo";
5
+ import type { ProjectRuntimeSessionRepo } from "./project-runtime-session-repo";
6
+ import { type CreateProjectRuntimeSessionInput, type ProjectRuntimeSessionContract } from "../contracts/project-runtime-session-contracts";
7
+ export declare const createProjectRuntimeSession: (input: CreateProjectRuntimeSessionInput, { userId, projectRepo, projectRuntimeSessionRepo, timeProvider, dbExecutor, }: {
8
+ userId: UuidV7;
9
+ projectRepo: ProjectRepo;
10
+ projectRuntimeSessionRepo: ProjectRuntimeSessionRepo;
11
+ timeProvider: TimeProvider;
12
+ dbExecutor?: DbExecutor | undefined;
13
+ }) => Promise<ProjectRuntimeSessionContract>;
@@ -0,0 +1,21 @@
1
+ import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
2
+ import type { AnyJsonObject } from "@boboddy/core/common/contracts/json";
3
+ export type ResolveDevcontainerConfigInput = {
4
+ workspacePath: string;
5
+ };
6
+ export type LaunchDevcontainerInput = {
7
+ sessionId: UuidV7;
8
+ projectId: UuidV7;
9
+ requestedByUserId: UuidV7;
10
+ workspacePath: string;
11
+ devcontainerConfigPath: string;
12
+ };
13
+ export type LaunchDevcontainerResult = {
14
+ containerId: string;
15
+ metadata?: AnyJsonObject | undefined;
16
+ };
17
+ export type DevcontainerLauncher = {
18
+ resolveConfigPath(input: ResolveDevcontainerConfigInput): Promise<string>;
19
+ launch(input: LaunchDevcontainerInput): Promise<LaunchDevcontainerResult>;
20
+ stop(containerId: string): Promise<void>;
21
+ };
@@ -0,0 +1,11 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
3
+ import type { ProjectRepo } from "@boboddy/core/projects/project/application/project-repo";
4
+ import type { ProjectRuntimeSessionRepo } from "./project-runtime-session-repo";
5
+ import { type GetProjectRuntimeSessionInput, type ProjectRuntimeSessionContract } from "../contracts/project-runtime-session-contracts";
6
+ export declare const getProjectRuntimeSession: (input: GetProjectRuntimeSessionInput, { userId, projectRepo, projectRuntimeSessionRepo, dbExecutor, }: {
7
+ userId: UuidV7;
8
+ projectRepo: ProjectRepo;
9
+ projectRuntimeSessionRepo: ProjectRuntimeSessionRepo;
10
+ dbExecutor?: DbExecutor | undefined;
11
+ }) => Promise<ProjectRuntimeSessionContract>;
@@ -0,0 +1,11 @@
1
+ export type CloneRepositoryInput = {
2
+ gitUrl: string;
3
+ workspacePath: string;
4
+ requestedBranch?: string | null | undefined;
5
+ };
6
+ export type CloneRepositoryResult = {
7
+ resolvedBranch: string;
8
+ };
9
+ export type GitCloneService = {
10
+ cloneRepository(input: CloneRepositoryInput): Promise<CloneRepositoryResult>;
11
+ };
@@ -0,0 +1,11 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
3
+ import type { ProjectRepo } from "@boboddy/core/projects/project/application/project-repo";
4
+ import type { ProjectRuntimeSessionRepo } from "./project-runtime-session-repo";
5
+ import { type ListProjectRuntimeSessionsInput, type ProjectRuntimeSessionContract } from "../contracts/project-runtime-session-contracts";
6
+ export declare const listProjectRuntimeSessions: (input: ListProjectRuntimeSessionsInput, { userId, projectRepo, projectRuntimeSessionRepo, dbExecutor, }: {
7
+ userId: UuidV7;
8
+ projectRepo: ProjectRepo;
9
+ projectRuntimeSessionRepo: ProjectRuntimeSessionRepo;
10
+ dbExecutor?: DbExecutor | undefined;
11
+ }) => Promise<ProjectRuntimeSessionContract[]>;
@@ -0,0 +1,3 @@
1
+ import { type ProjectRuntimeSessionContract } from "../contracts/project-runtime-session-contracts";
2
+ import type { ProjectRuntimeSessionEntity } from "../domain/project-runtime-session-entity";
3
+ export declare const projectRuntimeSessionEntityToContract: (session: ProjectRuntimeSessionEntity) => ProjectRuntimeSessionContract;
@@ -0,0 +1,3 @@
1
+ import type { ProjectRuntimeSessionExecutionEnvironment, ProjectRuntimeSessionExecutionTarget } from "../domain/project-runtime-session-execution-target";
2
+ import type { ProjectRuntimeSessionEntity } from "../domain/project-runtime-session-entity";
3
+ export declare const getProjectRuntimeSessionExecutionTarget: (session: ProjectRuntimeSessionEntity, environmentRole: ProjectRuntimeSessionExecutionEnvironment) => ProjectRuntimeSessionExecutionTarget;
@@ -0,0 +1,15 @@
1
+ import type { AnyJsonObject } from "@boboddy/core/common/contracts/json";
2
+ export declare const PROJECT_RUNTIME_SESSION_PROJECT_NETWORK_ALIAS = "devcontainer";
3
+ export declare const PROJECT_RUNTIME_SESSION_AGENT_NETWORK_ALIAS = "agent";
4
+ export type ProjectRuntimeSessionNetworkMetadata = {
5
+ name: string;
6
+ aliases: {
7
+ project: string;
8
+ agent?: string | undefined;
9
+ };
10
+ };
11
+ export declare const getProjectRuntimeSessionNetworkMetadata: (metadata: AnyJsonObject) => ProjectRuntimeSessionNetworkMetadata | null;
12
+ export declare const setProjectRuntimeSessionNetworkMetadata: ({ metadata, network, }: {
13
+ metadata: AnyJsonObject;
14
+ network: ProjectRuntimeSessionNetworkMetadata;
15
+ }) => AnyJsonObject;
@@ -0,0 +1,10 @@
1
+ import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
2
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
3
+ import type { ProjectRuntimeSessionEntity } from "../domain/project-runtime-session-entity";
4
+ export type ProjectRuntimeSessionRepo = {
5
+ load(id: UuidV7, dbExecutor?: DbExecutor): Promise<ProjectRuntimeSessionEntity | null>;
6
+ listByProjectId(projectId: UuidV7, dbExecutor?: DbExecutor): Promise<ProjectRuntimeSessionEntity[]>;
7
+ loadQueued(limit: number, dbExecutor?: DbExecutor): Promise<ProjectRuntimeSessionEntity[]>;
8
+ create(session: ProjectRuntimeSessionEntity, dbExecutor?: DbExecutor): Promise<ProjectRuntimeSessionEntity>;
9
+ save(session: ProjectRuntimeSessionEntity, dbExecutor?: DbExecutor): Promise<ProjectRuntimeSessionEntity>;
10
+ };
@@ -0,0 +1,14 @@
1
+ import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
2
+ export type CreateRuntimeSessionNetworkResult = {
3
+ networkName: string;
4
+ };
5
+ export type AttachRuntimeSessionContainerInput = {
6
+ networkName: string;
7
+ containerId: string;
8
+ alias?: string | undefined;
9
+ };
10
+ export type RuntimeSessionNetworkManager = {
11
+ createNetwork(sessionId: UuidV7): Promise<CreateRuntimeSessionNetworkResult>;
12
+ attachContainer(input: AttachRuntimeSessionContainerInput): Promise<void>;
13
+ removeNetwork(networkName: string): Promise<void>;
14
+ };