@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,29 @@
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 { AiContainerLauncher } from "./ai-container-launcher";
6
+ import type { DevcontainerLauncher } from "./devcontainer-launcher";
7
+ import type { ProjectRuntimeSessionRepo } from "./project-runtime-session-repo";
8
+ import type { RuntimeSessionNetworkManager } from "./runtime-session-network-manager";
9
+ import type { WorkspaceManager } from "./workspace-manager";
10
+ import type { RuntimeOperationEventPublisher } from "../../runtime-operation-event/application/runtime-operation-event-publisher";
11
+ import type { RuntimeServiceRepo } from "../../runtime-service/application/runtime-service-repo";
12
+ import type { RuntimeSessionServiceExposureProvider } from "../../runtime-service/application/runtime-session-service-exposure-provider";
13
+ import type { RuntimeServiceRunner } from "../../runtime-service/application/runtime-service-runner";
14
+ import { type ProjectRuntimeSessionContract, type StopProjectRuntimeSessionInput } from "../contracts/project-runtime-session-contracts";
15
+ export declare const stopProjectRuntimeSession: (input: StopProjectRuntimeSessionInput, { userId, projectRepo, projectRuntimeSessionRepo, devcontainerLauncher, aiContainerLauncher, runtimeSessionNetworkManager, runtimeSessionServiceExposureProvider, runtimeServiceRepo, runtimeServiceRunner, runtimeOperationEventPublisher, workspaceManager, timeProvider, dbExecutor, }: {
16
+ userId: UuidV7;
17
+ projectRepo: ProjectRepo;
18
+ projectRuntimeSessionRepo: ProjectRuntimeSessionRepo;
19
+ devcontainerLauncher: DevcontainerLauncher;
20
+ aiContainerLauncher: AiContainerLauncher;
21
+ runtimeSessionNetworkManager: RuntimeSessionNetworkManager;
22
+ runtimeSessionServiceExposureProvider: RuntimeSessionServiceExposureProvider;
23
+ runtimeServiceRepo: RuntimeServiceRepo;
24
+ runtimeServiceRunner: RuntimeServiceRunner;
25
+ runtimeOperationEventPublisher: RuntimeOperationEventPublisher;
26
+ workspaceManager: WorkspaceManager;
27
+ timeProvider: TimeProvider;
28
+ dbExecutor?: DbExecutor | undefined;
29
+ }) => Promise<ProjectRuntimeSessionContract>;
@@ -0,0 +1,10 @@
1
+ import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
2
+ export type ProvisionedWorkspace = {
3
+ workspacePath: string;
4
+ };
5
+ export type WorkspaceManager = {
6
+ createWorkspace(input: {
7
+ sessionId: UuidV7;
8
+ }): Promise<ProvisionedWorkspace>;
9
+ removeWorkspace(workspacePath: string): Promise<void>;
10
+ };
@@ -0,0 +1,62 @@
1
+ import { z } from "zod";
2
+ export declare const projectRuntimeSessionStatusSchema: z.ZodEnum<{
3
+ queued: "queued";
4
+ running: "running";
5
+ failed: "failed";
6
+ cloning: "cloning";
7
+ validating_spec: "validating_spec";
8
+ launching: "launching";
9
+ stopped: "stopped";
10
+ }>;
11
+ export declare const projectRuntimeSessionSchema: z.ZodObject<{
12
+ id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
13
+ projectId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
14
+ requestedByUserId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
15
+ gitUrl: z.ZodString;
16
+ requestedBranch: z.ZodNullable<z.ZodString>;
17
+ resolvedBranch: z.ZodNullable<z.ZodString>;
18
+ projectEnvironmentRef: z.ZodNullable<z.ZodString>;
19
+ agentEnvironmentRef: z.ZodNullable<z.ZodString>;
20
+ runnerAssignment: z.ZodNullable<z.ZodString>;
21
+ workspacePath: z.ZodNullable<z.ZodString>;
22
+ devcontainerId: z.ZodNullable<z.ZodString>;
23
+ aiContainerId: z.ZodNullable<z.ZodString>;
24
+ aiBaseUrl: z.ZodNullable<z.ZodString>;
25
+ aiImage: z.ZodNullable<z.ZodString>;
26
+ devcontainerConfigPath: z.ZodNullable<z.ZodString>;
27
+ projectEnvironmentReadyAt: z.ZodNullable<z.ZodISODateTime>;
28
+ agentEnvironmentReadyAt: z.ZodNullable<z.ZodISODateTime>;
29
+ status: z.ZodEnum<{
30
+ queued: "queued";
31
+ running: "running";
32
+ failed: "failed";
33
+ cloning: "cloning";
34
+ validating_spec: "validating_spec";
35
+ launching: "launching";
36
+ stopped: "stopped";
37
+ }>;
38
+ failureReason: z.ZodNullable<z.ZodString>;
39
+ metadata: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>;
40
+ createdAt: z.ZodISODateTime;
41
+ updatedAt: z.ZodISODateTime;
42
+ }, z.core.$strip>;
43
+ export declare const createProjectRuntimeSessionInputSchema: z.ZodObject<{
44
+ projectId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
45
+ requestedBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ }, z.core.$strip>;
47
+ export declare const getProjectRuntimeSessionInputSchema: z.ZodObject<{
48
+ projectId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
49
+ runtimeSessionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
50
+ }, z.core.$strip>;
51
+ export declare const listProjectRuntimeSessionsInputSchema: z.ZodObject<{
52
+ projectId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
53
+ }, z.core.$strip>;
54
+ export declare const stopProjectRuntimeSessionInputSchema: z.ZodObject<{
55
+ projectId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
56
+ runtimeSessionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
57
+ }, z.core.$strip>;
58
+ export type ProjectRuntimeSessionContract = z.infer<typeof projectRuntimeSessionSchema>;
59
+ export type CreateProjectRuntimeSessionInput = z.input<typeof createProjectRuntimeSessionInputSchema>;
60
+ export type GetProjectRuntimeSessionInput = z.input<typeof getProjectRuntimeSessionInputSchema>;
61
+ export type ListProjectRuntimeSessionsInput = z.input<typeof listProjectRuntimeSessionsInputSchema>;
62
+ export type StopProjectRuntimeSessionInput = z.input<typeof stopProjectRuntimeSessionInputSchema>;
@@ -0,0 +1,12 @@
1
+ import type { RuntimeEnvironmentRef, RuntimeRunnerAssignment } from "@boboddy/core/agent-sessions/runtime-environment/domain/runtime-environment";
2
+ import type { ProjectRuntimeSessionStatus } from "./project-runtime-session-entity";
3
+ type RunningProjectRuntimeSessionProps = {
4
+ resolvedBranch: string | null;
5
+ runnerAssignment: RuntimeRunnerAssignment | null;
6
+ projectEnvironmentRef: RuntimeEnvironmentRef | null;
7
+ agentEnvironmentRef: RuntimeEnvironmentRef | null;
8
+ projectEnvironmentReadyAt: Date | null | undefined;
9
+ agentEnvironmentReadyAt: Date | null | undefined;
10
+ };
11
+ export declare function assertRunningSessionProps(status: ProjectRuntimeSessionStatus, props: RunningProjectRuntimeSessionProps): void;
12
+ export {};
@@ -0,0 +1,99 @@
1
+ import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
2
+ import type { AnyJsonObject } from "@boboddy/core/common/contracts/json";
3
+ import { type RuntimeEnvironmentRef, type RuntimeRunnerAssignment } from "@boboddy/core/agent-sessions/runtime-environment/domain/runtime-environment";
4
+ import { type ProjectRuntimeSessionExecutionEnvironment, type ProjectRuntimeSessionExecutionTarget } from "./project-runtime-session-execution-target";
5
+ export declare const PROJECT_RUNTIME_SESSION_STATUSES: readonly ["queued", "cloning", "validating_spec", "launching", "running", "failed", "stopped"];
6
+ export type ProjectRuntimeSessionStatus = (typeof PROJECT_RUNTIME_SESSION_STATUSES)[number];
7
+ export type ProjectRuntimeSessionProps = {
8
+ id: UuidV7;
9
+ projectId: UuidV7;
10
+ requestedByUserId: UuidV7;
11
+ gitUrl: string;
12
+ requestedBranch?: string | null | undefined;
13
+ resolvedBranch?: string | null | undefined;
14
+ projectEnvironmentRef?: string | null | undefined;
15
+ agentEnvironmentRef?: string | null | undefined;
16
+ runnerAssignment?: string | null | undefined;
17
+ workspacePath?: string | null | undefined;
18
+ devcontainerId?: string | null | undefined;
19
+ aiContainerId?: string | null | undefined;
20
+ aiBaseUrl?: string | null | undefined;
21
+ aiImage?: string | null | undefined;
22
+ devcontainerConfigPath?: string | null | undefined;
23
+ projectEnvironmentReadyAt?: Date | string | null | undefined;
24
+ agentEnvironmentReadyAt?: Date | string | null | undefined;
25
+ status: ProjectRuntimeSessionStatus;
26
+ failureReason?: string | null | undefined;
27
+ metadata?: AnyJsonObject | null | undefined;
28
+ createdAt?: Date | string | null | undefined;
29
+ updatedAt?: Date | string | null | undefined;
30
+ };
31
+ export type CreateProjectRuntimeSessionProps = Omit<ProjectRuntimeSessionProps, "id"> & {
32
+ id?: UuidV7;
33
+ };
34
+ export declare class ProjectRuntimeSessionEntity {
35
+ readonly id: UuidV7;
36
+ readonly projectId: UuidV7;
37
+ readonly requestedByUserId: UuidV7;
38
+ readonly gitUrl: string;
39
+ readonly requestedBranch: string | null;
40
+ readonly resolvedBranch: string | null;
41
+ readonly projectEnvironmentRef: RuntimeEnvironmentRef | null;
42
+ readonly agentEnvironmentRef: RuntimeEnvironmentRef | null;
43
+ readonly runnerAssignment: RuntimeRunnerAssignment | null;
44
+ readonly workspacePath: string | null;
45
+ readonly devcontainerId: string | null;
46
+ readonly aiContainerId: string | null;
47
+ readonly aiBaseUrl: string | null;
48
+ readonly aiImage: string | null;
49
+ readonly devcontainerConfigPath: string | null;
50
+ readonly projectEnvironmentReadyAt: Date | null | undefined;
51
+ readonly agentEnvironmentReadyAt: Date | null | undefined;
52
+ readonly status: ProjectRuntimeSessionStatus;
53
+ readonly failureReason: string | null;
54
+ readonly metadata: AnyJsonObject;
55
+ readonly createdAt: Date | null | undefined;
56
+ readonly updatedAt: Date | null | undefined;
57
+ private constructor();
58
+ get isActive(): boolean;
59
+ static createQueued(props: Omit<CreateProjectRuntimeSessionProps, "status" | "resolvedBranch" | "projectEnvironmentRef" | "agentEnvironmentRef" | "runnerAssignment" | "workspacePath" | "devcontainerId" | "aiContainerId" | "aiBaseUrl" | "aiImage" | "devcontainerConfigPath" | "projectEnvironmentReadyAt" | "agentEnvironmentReadyAt" | "failureReason" | "metadata">): ProjectRuntimeSessionEntity;
60
+ static rehydrate(props: ProjectRuntimeSessionProps): ProjectRuntimeSessionEntity;
61
+ markCloning(updatedAt: Date): ProjectRuntimeSessionEntity;
62
+ markValidatingSpec(input: {
63
+ updatedAt: Date;
64
+ workspacePath: string;
65
+ resolvedBranch: string;
66
+ }): ProjectRuntimeSessionEntity;
67
+ markLaunching(input: {
68
+ updatedAt: Date;
69
+ workspacePath: string;
70
+ resolvedBranch: string;
71
+ devcontainerConfigPath: string;
72
+ }): ProjectRuntimeSessionEntity;
73
+ markRunning(input: {
74
+ updatedAt: Date;
75
+ workspacePath?: string | null | undefined;
76
+ resolvedBranch: string;
77
+ projectEnvironmentRef?: string | null | undefined;
78
+ agentEnvironmentRef?: string | null | undefined;
79
+ runnerAssignment?: string | null | undefined;
80
+ devcontainerConfigPath?: string | null | undefined;
81
+ devcontainerId?: string | null | undefined;
82
+ aiContainerId?: string | null | undefined;
83
+ aiBaseUrl?: string | null | undefined;
84
+ aiImage?: string | null | undefined;
85
+ projectEnvironmentReadyAt?: Date | null | undefined;
86
+ agentEnvironmentReadyAt?: Date | null | undefined;
87
+ metadata?: AnyJsonObject | undefined;
88
+ }): ProjectRuntimeSessionEntity;
89
+ markFailed(input: {
90
+ updatedAt: Date;
91
+ reason: string;
92
+ metadata?: AnyJsonObject | undefined;
93
+ }): ProjectRuntimeSessionEntity;
94
+ stop(updatedAt: Date): ProjectRuntimeSessionEntity;
95
+ toJSON(): ProjectRuntimeSessionProps;
96
+ getExecutionTarget(environmentRole: ProjectRuntimeSessionExecutionEnvironment): ProjectRuntimeSessionExecutionTarget;
97
+ private assertMutable;
98
+ private copy;
99
+ }
@@ -0,0 +1,16 @@
1
+ import type { AnyJsonObject } from "@boboddy/core/common/contracts/json";
2
+ import { type RuntimeEnvironmentRef, type RuntimeEnvironmentRole, type RuntimeRunnerAssignment } from "@boboddy/core/agent-sessions/runtime-environment/domain/runtime-environment";
3
+ export declare const PROJECT_RUNTIME_SESSION_EXECUTION_ENVIRONMENTS: readonly ["project", "agent"];
4
+ export type ProjectRuntimeSessionExecutionEnvironment = RuntimeEnvironmentRole;
5
+ export type ProjectRuntimeSessionExecutionTarget = {
6
+ environmentRole: ProjectRuntimeSessionExecutionEnvironment;
7
+ runnerAssignment: RuntimeRunnerAssignment;
8
+ environmentRef: RuntimeEnvironmentRef;
9
+ metadata: AnyJsonObject;
10
+ };
11
+ export declare const createProjectRuntimeSessionExecutionTarget: (input: {
12
+ environmentRole: ProjectRuntimeSessionExecutionEnvironment;
13
+ runnerAssignment: RuntimeRunnerAssignment | string;
14
+ environmentRef: RuntimeEnvironmentRef | string;
15
+ metadata?: AnyJsonObject | null | undefined;
16
+ }) => ProjectRuntimeSessionExecutionTarget;
@@ -0,0 +1,6 @@
1
+ import type { DevcontainerLauncher, LaunchDevcontainerInput, LaunchDevcontainerResult, ResolveDevcontainerConfigInput } from "../application/devcontainer-launcher";
2
+ export declare class DevcontainerCliLauncher implements DevcontainerLauncher {
3
+ resolveConfigPath(input: ResolveDevcontainerConfigInput): Promise<string>;
4
+ launch(input: LaunchDevcontainerInput): Promise<LaunchDevcontainerResult>;
5
+ stop(containerId: string): Promise<void>;
6
+ }
@@ -0,0 +1,8 @@
1
+ import type { AiContainerLauncher, LaunchAiContainerInput, LaunchAiContainerResult } from "../application/ai-container-launcher";
2
+ export declare function getSessionOpencodeLogDirectory(workspacePath: string): string;
3
+ export declare function getSessionHomePath(workspacePath: string): string;
4
+ export declare function ensureBoboddyRuntimeWorkspaceRoot(workspacePath: string): Promise<void>;
5
+ export declare class DockerAiContainerLauncher implements AiContainerLauncher {
6
+ launch(input: LaunchAiContainerInput): Promise<LaunchAiContainerResult>;
7
+ stop(containerId: string): Promise<void>;
8
+ }
@@ -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 { ProjectRuntimeSessionRepo } from "../application/project-runtime-session-repo";
4
+ import { ProjectRuntimeSessionEntity } from "../domain/project-runtime-session-entity";
5
+ export declare class DrizzleProjectRuntimeSessionRepo implements ProjectRuntimeSessionRepo {
6
+ load(id: UuidV7, dbExecutor?: DbExecutor): Promise<ProjectRuntimeSessionEntity | null>;
7
+ listByProjectId(projectId: UuidV7, dbExecutor?: DbExecutor): Promise<ProjectRuntimeSessionEntity[]>;
8
+ loadQueued(limit: number, dbExecutor?: DbExecutor): Promise<ProjectRuntimeSessionEntity[]>;
9
+ create(session: ProjectRuntimeSessionEntity, dbExecutor?: DbExecutor): Promise<ProjectRuntimeSessionEntity>;
10
+ save(session: ProjectRuntimeSessionEntity, dbExecutor?: DbExecutor): Promise<ProjectRuntimeSessionEntity>;
11
+ }
@@ -0,0 +1,4 @@
1
+ import type { CloneRepositoryInput, CloneRepositoryResult, GitCloneService } from "../application/git-clone-service";
2
+ export declare class GitCliCloneService implements GitCloneService {
3
+ cloneRepository(input: CloneRepositoryInput): Promise<CloneRepositoryResult>;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { AnyJsonValue } from "@boboddy/core/common/contracts/json";
2
+ export declare const parseDevcontainerConfigContent: (content: string) => AnyJsonValue;
3
+ export declare const parseDevcontainerForwardPortsFromContent: (content: string) => number[];
4
+ export declare const parseDevcontainerWorkspaceFolderFromContent: (content: string, workspacePath: string) => string | null;
@@ -0,0 +1,42 @@
1
+ import type { AnyJsonValue } from "@boboddy/core/common/contracts/json";
2
+ import type { ProjectRuntimeSessionExecutionTarget } from "../domain/project-runtime-session-execution-target";
3
+ export declare const PROXY_DIRECTORY_PATH = "/tmp/boboddy-runtime-proxy";
4
+ export declare const PROXY_BINARY_PATH = "/tmp/boboddy-runtime-proxy/boboddy-runtime-proxy";
5
+ export declare const PROXY_CONFIG_PATH = "/tmp/boboddy-runtime-proxy/config.json";
6
+ export declare const PROXY_LOG_PATH = "/tmp/boboddy-runtime-proxy/proxy.log";
7
+ export declare const PROXY_PID_PATH = "/tmp/boboddy-runtime-proxy/proxy.pid";
8
+ export declare const PROXY_BOOT_WAIT_MS = 500;
9
+ export declare const AGENT_PROXY_DIRECTORY_PATH = "/tmp/boboddy-agent-proxy";
10
+ export declare const AGENT_PROXY_BINARY_PATH = "/tmp/boboddy-agent-proxy/boboddy-agent-proxy";
11
+ export declare const AGENT_PROXY_CONFIG_PATH = "/tmp/boboddy-agent-proxy/config.json";
12
+ export declare const AGENT_PROXY_LOG_PATH = "/tmp/boboddy-agent-proxy/proxy.log";
13
+ export declare const AGENT_PROXY_PID_PATH = "/tmp/boboddy-agent-proxy/proxy.pid";
14
+ export declare const PROXY_PORT_SEARCH_START = 39000;
15
+ export declare const PROXY_PORT_SEARCH_END = 65535;
16
+ export type RuntimeProxyBinaryArchitecture = "x64" | "arm64";
17
+ export type RuntimeProxyMapping = {
18
+ listenPort: number;
19
+ targetHost: string;
20
+ targetPort: number;
21
+ protocol: "tcp";
22
+ };
23
+ export type RuntimeProxyConfig = {
24
+ mappings: readonly RuntimeProxyMapping[];
25
+ };
26
+ export declare const readRuntimeProxyMappings: (value: object | null | undefined) => RuntimeProxyMapping[];
27
+ export declare const parseRuntimeProxyMappingsContent: (content: string) => RuntimeProxyMapping[];
28
+ export declare const resolveRepoRootFromModuleUrl: (moduleUrl: string) => string;
29
+ export declare const readLocalExecutionMetadata: (executionTarget: ProjectRuntimeSessionExecutionTarget) => {
30
+ containerId: string;
31
+ workspacePath: string | null;
32
+ devcontainerConfigPath: string | null;
33
+ agentContainerId: string | null;
34
+ };
35
+ export declare const toRuntimeProxyBinaryArchitecture: (architecture: string) => RuntimeProxyBinaryArchitecture;
36
+ export declare const normalizeForwardPortValue: (value: number | string | undefined) => number | null;
37
+ export declare const delay: (milliseconds: number) => Promise<void>;
38
+ export declare const parseDevcontainerForwardPorts: (value: AnyJsonValue) => number[];
39
+ export declare const resolveRuntimeProxyMappings: ({ existingMappings, targetPorts, }: {
40
+ existingMappings: readonly RuntimeProxyMapping[];
41
+ targetPorts: readonly number[];
42
+ }) => RuntimeProxyMapping[];
@@ -0,0 +1,24 @@
1
+ import type { EnsureDefaultRuntimeServiceAccessPointsInput, EnsureRuntimeServiceAccessPointInput, RuntimeSessionServiceExposureProvider } from "@boboddy/core/agent-sessions/runtime-service/application/runtime-session-service-exposure-provider";
2
+ import { type RuntimeServiceAccessPoint } from "@boboddy/core/agent-sessions/runtime-service/domain/runtime-service-access-point";
3
+ import type { ProjectRuntimeSessionExecutionTarget } from "../domain/project-runtime-session-execution-target";
4
+ export declare class LocalDevcontainerPortForwardManager implements RuntimeSessionServiceExposureProvider {
5
+ private readonly repoRoot;
6
+ ensureDefaultAccessPoints(input: EnsureDefaultRuntimeServiceAccessPointsInput): Promise<(RuntimeServiceAccessPoint & {
7
+ targetPort: number;
8
+ })[]>;
9
+ ensureAccessPoint(input: EnsureRuntimeServiceAccessPointInput): Promise<RuntimeServiceAccessPoint & {
10
+ targetPort: number;
11
+ }>;
12
+ stop(executionTarget: ProjectRuntimeSessionExecutionTarget): Promise<void>;
13
+ private ensureProxy;
14
+ private ensureAgentProxy;
15
+ private resolveMappings;
16
+ private readExistingMappings;
17
+ private readProxyStartupLog;
18
+ private copyConfigIntoContainer;
19
+ private copyAgentConfigIntoContainer;
20
+ private ensureLocalBinary;
21
+ private ensureRuntimeProxyBuilt;
22
+ private readContainerArchitecture;
23
+ private readForwardPorts;
24
+ }
@@ -0,0 +1,5 @@
1
+ export declare const resolveDevcontainerWorkingDirectory: (input: {
2
+ workspacePath: string;
3
+ devcontainerConfigPath: string;
4
+ cwd: string | null;
5
+ }) => Promise<string | null>;
@@ -0,0 +1,17 @@
1
+ import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
2
+ import type { AttachRuntimeSessionContainerInput, CreateRuntimeSessionNetworkResult, RuntimeSessionNetworkManager } from "../application/runtime-session-network-manager";
3
+ export declare const RUNTIME_SESSION_NETWORK_NAME_PREFIX = "boboddy-project-runtime-session";
4
+ export declare class LocalDockerRuntimeSessionNetworkManager implements RuntimeSessionNetworkManager {
5
+ private readonly deps;
6
+ constructor(deps?: {
7
+ execFileAsync(file: string, args: string[]): Promise<{
8
+ stdout: string;
9
+ stderr: string;
10
+ }>;
11
+ });
12
+ private inspectNetwork;
13
+ private recreateEmptyExistingNetwork;
14
+ createNetwork(sessionId: UuidV7): Promise<CreateRuntimeSessionNetworkResult>;
15
+ attachContainer({ networkName, containerId, alias, }: AttachRuntimeSessionContainerInput): Promise<void>;
16
+ removeNetwork(networkName: string): Promise<void>;
17
+ }
@@ -0,0 +1,11 @@
1
+ import type { WorkspaceManager } from "../application/workspace-manager";
2
+ export declare class LocalWorkspaceManager implements WorkspaceManager {
3
+ private readonly rootDir;
4
+ constructor(rootDir?: string);
5
+ createWorkspace(input: {
6
+ sessionId: string;
7
+ }): Promise<{
8
+ workspacePath: string;
9
+ }>;
10
+ removeWorkspace(workspacePath: string): Promise<void>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
3
+ import { type Logger } from "@boboddy/core/lib/logger";
4
+ import { type CompleteClaimedRuntimeCommandInput, type GetRuntimeCommandInput, type RuntimeCommandContract } from "../contracts/runtime-command-contracts";
5
+ import type { RuntimeCommandRepo } from "./runtime-command-repo";
6
+ export declare const completeClaimedRuntimeCommand: (runtimeCommandIdInput: GetRuntimeCommandInput, input: CompleteClaimedRuntimeCommandInput, { runtimeCommandRepo, timeProvider, dbExecutor, logger, }: {
7
+ runtimeCommandRepo: RuntimeCommandRepo;
8
+ timeProvider: TimeProvider;
9
+ dbExecutor?: DbExecutor | undefined;
10
+ logger?: Logger | undefined;
11
+ }) => Promise<RuntimeCommandContract>;
@@ -0,0 +1,17 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
3
+ import { type Logger } from "@boboddy/core/lib/logger";
4
+ import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
5
+ import type { ProjectRepo } from "@boboddy/core/projects/project/application/project-repo";
6
+ import type { ProjectRuntimeSessionRepo } from "@boboddy/core/agent-sessions/project-runtime-session/application/project-runtime-session-repo";
7
+ import type { RuntimeCommandRepo } from "./runtime-command-repo";
8
+ import { type CreateRuntimeCommandInput, type RuntimeCommandContract } from "../contracts/runtime-command-contracts";
9
+ export declare const createRuntimeCommand: (input: CreateRuntimeCommandInput, { userId, projectRepo, projectRuntimeSessionRepo, runtimeCommandRepo, timeProvider, dbExecutor, logger, }: {
10
+ userId: UuidV7;
11
+ projectRepo: ProjectRepo;
12
+ projectRuntimeSessionRepo: ProjectRuntimeSessionRepo;
13
+ runtimeCommandRepo: RuntimeCommandRepo;
14
+ timeProvider: TimeProvider;
15
+ dbExecutor?: DbExecutor | undefined;
16
+ logger?: Logger | undefined;
17
+ }) => Promise<RuntimeCommandContract>;
@@ -0,0 +1,11 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
3
+ import { type Logger } from "@boboddy/core/lib/logger";
4
+ import { type FailClaimedRuntimeCommandInput, type GetRuntimeCommandInput, type RuntimeCommandContract } from "../contracts/runtime-command-contracts";
5
+ import type { RuntimeCommandRepo } from "./runtime-command-repo";
6
+ export declare const failClaimedRuntimeCommand: (runtimeCommandIdInput: GetRuntimeCommandInput, input: FailClaimedRuntimeCommandInput, { runtimeCommandRepo, timeProvider, dbExecutor, logger, }: {
7
+ runtimeCommandRepo: RuntimeCommandRepo;
8
+ timeProvider: TimeProvider;
9
+ dbExecutor?: DbExecutor | undefined;
10
+ logger?: Logger | undefined;
11
+ }) => Promise<RuntimeCommandContract>;
@@ -0,0 +1,11 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
3
+ import { type Logger } from "@boboddy/core/lib/logger";
4
+ import { type GetRuntimeCommandInput, type InterruptClaimedRuntimeCommandInput, type RuntimeCommandContract } from "../contracts/runtime-command-contracts";
5
+ import type { RuntimeCommandRepo } from "./runtime-command-repo";
6
+ export declare const interruptClaimedRuntimeCommand: (runtimeCommandIdInput: GetRuntimeCommandInput, input: InterruptClaimedRuntimeCommandInput, { runtimeCommandRepo, timeProvider, dbExecutor, logger, }: {
7
+ runtimeCommandRepo: RuntimeCommandRepo;
8
+ timeProvider: TimeProvider;
9
+ dbExecutor?: DbExecutor | undefined;
10
+ logger?: Logger | undefined;
11
+ }) => Promise<RuntimeCommandContract>;
@@ -0,0 +1,26 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
3
+ import { type Logger } from "@boboddy/core/lib/logger";
4
+ import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
5
+ import type { AuthorizationService } from "@boboddy/core/access/authorization/application/authorization-service";
6
+ import type { ProjectRuntimeSessionRepo } from "@boboddy/core/agent-sessions/project-runtime-session/application/project-runtime-session-repo";
7
+ import type { RuntimeCommandRepo } from "./runtime-command-repo";
8
+ import type { RuntimeCommandRunner } from "./runtime-command-runner";
9
+ import type { RuntimeOperationEventPublisher } from "../../runtime-operation-event/application/runtime-operation-event-publisher";
10
+ import type { RuntimeCommandContract } from "../contracts/runtime-command-contracts";
11
+ type RunRuntimeCommandLocallyDeps = {
12
+ userId: UuidV7;
13
+ projectId: UuidV7;
14
+ projectRuntimeSessionId: UuidV7;
15
+ authz: AuthorizationService;
16
+ workerId: string;
17
+ runtimeCommandRepo: RuntimeCommandRepo;
18
+ projectRuntimeSessionRepo: ProjectRuntimeSessionRepo;
19
+ runtimeCommandRunner: RuntimeCommandRunner;
20
+ runtimeOperationEventPublisher: RuntimeOperationEventPublisher;
21
+ timeProvider: TimeProvider;
22
+ dbExecutor?: DbExecutor | undefined;
23
+ logger?: Logger | undefined;
24
+ };
25
+ export declare const runRuntimeCommandLocally: (runtimeCommandId: UuidV7, deps: RunRuntimeCommandLocallyDeps) => Promise<RuntimeCommandContract>;
26
+ export {};
@@ -0,0 +1 @@
1
+ export declare const buildLeaseExpiresAt: (now: Date, leaseDurationSeconds: number) => Date;
@@ -0,0 +1,3 @@
1
+ import { type RuntimeCommandContract } from "../contracts/runtime-command-contracts";
2
+ import type { RuntimeCommandEntity } from "../domain/runtime-command-entity";
3
+ export declare const runtimeCommandEntityToContract: (runtimeCommand: RuntimeCommandEntity) => RuntimeCommandContract;
@@ -0,0 +1,4 @@
1
+ import type { RuntimeCommandExecutionOutputTransport } from "./runtime-command-runner";
2
+ import type { RuntimeCommandExecutionResult } from "../domain/runtime-command-entity";
3
+ export declare const RUNTIME_COMMAND_OUTPUT_PREVIEW_LIMIT = 4000;
4
+ export declare const summarizeRuntimeCommandOutput: (output: RuntimeCommandExecutionOutputTransport) => RuntimeCommandExecutionResult["output"];
@@ -0,0 +1,20 @@
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 { RuntimeCommandEntity, RuntimeCommandEnvironmentRole } from "../domain/runtime-command-entity";
4
+ export type RuntimeCommandRepo = {
5
+ load(id: UuidV7, dbExecutor?: DbExecutor): Promise<RuntimeCommandEntity | null>;
6
+ listByProjectRuntimeSessionId(projectRuntimeSessionId: UuidV7, dbExecutor?: DbExecutor): Promise<RuntimeCommandEntity[]>;
7
+ loadClaimableByProjectRuntimeSessionId(projectRuntimeSessionId: UuidV7, environmentRole: RuntimeCommandEnvironmentRole, limit: number, now: Date, dbExecutor?: DbExecutor): Promise<RuntimeCommandEntity[]>;
8
+ create(runtimeCommand: RuntimeCommandEntity, dbExecutor?: DbExecutor): Promise<RuntimeCommandEntity>;
9
+ claim(runtimeCommandId: UuidV7, claim: {
10
+ workerId: string;
11
+ claimToken: string;
12
+ claimedAt: Date;
13
+ leaseExpiresAt: Date;
14
+ }, dbExecutor?: DbExecutor): Promise<RuntimeCommandEntity | null>;
15
+ heartbeat(runtimeCommandId: UuidV7, claimToken: string, heartbeat: {
16
+ lastHeartbeatAt: Date;
17
+ leaseExpiresAt: Date;
18
+ }, dbExecutor?: DbExecutor): Promise<RuntimeCommandEntity | null>;
19
+ save(runtimeCommand: RuntimeCommandEntity, dbExecutor?: DbExecutor): Promise<RuntimeCommandEntity>;
20
+ };
@@ -0,0 +1,25 @@
1
+ import type { AnyJsonObject } from "@boboddy/core/common/contracts/json";
2
+ import type { ProjectRuntimeSessionExecutionTarget } from "@boboddy/core/agent-sessions/project-runtime-session/domain/project-runtime-session-execution-target";
3
+ export type RuntimeCommandExecutionOutputTransport = {
4
+ stdout: string;
5
+ stderr: string;
6
+ logRef?: string | null | undefined;
7
+ };
8
+ export type RuntimeCommandExecutionOutcome = {
9
+ exitCode: number | null;
10
+ signal: string | null;
11
+ output: RuntimeCommandExecutionOutputTransport;
12
+ metadata?: AnyJsonObject | undefined;
13
+ };
14
+ export type RuntimeCommandRunner = {
15
+ executeOneShot(input: {
16
+ command: string;
17
+ executionTarget: ProjectRuntimeSessionExecutionTarget;
18
+ metadata?: AnyJsonObject | undefined;
19
+ onOutput?: ((output: {
20
+ stream: "stdout" | "stderr";
21
+ chunk: string;
22
+ }) => Promise<void> | void) | undefined;
23
+ signal?: AbortSignal | undefined;
24
+ }): Promise<RuntimeCommandExecutionOutcome>;
25
+ };