@boboddy/sdk 0.0.12-alpha → 0.0.16-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 (262) hide show
  1. package/dist/boboddy-config-parser.d.ts +34 -0
  2. package/dist/boboddy-config-parser.js +510 -0
  3. package/dist/client.d.ts +4 -0
  4. package/dist/client.js +1419 -0
  5. package/dist/{packages/sdks/js/src/define-step.d.ts → define-step.d.ts} +21 -1
  6. package/dist/define-step.js +12014 -0
  7. package/dist/generated/client/client.gen.d.ts +2 -0
  8. package/dist/generated/client/index.d.ts +8 -0
  9. package/dist/generated/client/types.gen.d.ts +117 -0
  10. package/dist/generated/client/utils.gen.d.ts +33 -0
  11. package/dist/generated/client.gen.d.ts +12 -0
  12. package/dist/generated/core/auth.gen.d.ts +18 -0
  13. package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
  14. package/dist/generated/core/params.gen.d.ts +43 -0
  15. package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
  16. package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
  17. package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
  18. package/dist/generated/core/types.gen.d.ts +78 -0
  19. package/dist/generated/core/utils.gen.d.ts +19 -0
  20. package/dist/generated/index.d.ts +2 -0
  21. package/dist/generated/sdk.gen.d.ts +162 -0
  22. package/dist/generated/types.gen.d.ts +9193 -0
  23. package/dist/index.d.ts +5 -0
  24. package/dist/index.js +16394 -47
  25. package/dist/jsonc.d.ts +3 -0
  26. package/dist/jsonc.js +133 -0
  27. package/dist/opencode-mcp.js +14326 -0
  28. package/dist/step-definitions-client.d.ts +197 -0
  29. package/dist/step-definitions-client.js +1372 -0
  30. package/dist/step-execution-plane-client.d.ts +190 -0
  31. package/package.json +30 -17
  32. package/dist/apps/api/src/app.d.ts +0 -19731
  33. package/dist/apps/api/src/contracts.d.ts +0 -20
  34. package/dist/apps/api/src/http/error-handler.d.ts +0 -23
  35. package/dist/apps/api/src/http/routes/auth.d.ts +0 -57
  36. package/dist/apps/api/src/http/routes/authenticated.d.ts +0 -79
  37. package/dist/apps/api/src/http/routes/feedback-requests.d.ts +0 -281
  38. package/dist/apps/api/src/http/routes/linear-pipeline-definitions.d.ts +0 -1563
  39. package/dist/apps/api/src/http/routes/linear-pipeline-executions.d.ts +0 -2540
  40. package/dist/apps/api/src/http/routes/project-context-entries.d.ts +0 -387
  41. package/dist/apps/api/src/http/routes/projects.d.ts +0 -1906
  42. package/dist/apps/api/src/http/routes/step-definition-templates.d.ts +0 -479
  43. package/dist/apps/api/src/http/routes/step-definitions.d.ts +0 -917
  44. package/dist/apps/api/src/http/routes/step-execution-route-helpers.d.ts +0 -64
  45. package/dist/apps/api/src/http/routes/step-executions.d.ts +0 -1485
  46. package/dist/apps/api/src/http/routes/work-items.d.ts +0 -966
  47. package/dist/apps/api/src/problem-details.d.ts +0 -9
  48. package/dist/packages/core/src/access/authorization/application/user-authorization-service.d.ts +0 -12
  49. package/dist/packages/core/src/access/authorization/infra/project-authorization-service.d.ts +0 -9
  50. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/ai-container-launcher.d.ts +0 -21
  51. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/create-project-runtime-session.d.ts +0 -15
  52. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/devcontainer-launcher.d.ts +0 -21
  53. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/get-project-runtime-session.d.ts +0 -13
  54. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/git-clone-service.d.ts +0 -11
  55. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/list-project-runtime-sessions.d.ts +0 -13
  56. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-contract-mapper.d.ts +0 -3
  57. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-execution-target.d.ts +0 -3
  58. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-network-metadata.d.ts +0 -15
  59. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-repo.d.ts +0 -10
  60. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/runtime-session-network-manager.d.ts +0 -14
  61. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/stop-project-runtime-session.d.ts +0 -31
  62. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/workspace-manager.d.ts +0 -10
  63. package/dist/packages/core/src/agent-sessions/project-runtime-session/contracts/project-runtime-session-contracts.d.ts +0 -62
  64. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity-helpers.d.ts +0 -12
  65. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity.d.ts +0 -99
  66. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-execution-target.d.ts +0 -16
  67. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/devcontainer-cli-launcher.d.ts +0 -6
  68. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/docker-ai-container-launcher.d.ts +0 -8
  69. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/drizzle-project-runtime-session-repo.d.ts +0 -11
  70. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/git-cli-clone-service.d.ts +0 -4
  71. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-jsonc.d.ts +0 -4
  72. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager-support.d.ts +0 -42
  73. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager.d.ts +0 -24
  74. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-working-directory.d.ts +0 -5
  75. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-docker-runtime-session-network-manager.d.ts +0 -17
  76. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-workspace-manager.d.ts +0 -11
  77. package/dist/packages/core/src/agent-sessions/runtime-command/application/complete-claimed-runtime-command.d.ts +0 -13
  78. package/dist/packages/core/src/agent-sessions/runtime-command/application/create-runtime-command.d.ts +0 -19
  79. package/dist/packages/core/src/agent-sessions/runtime-command/application/fail-claimed-runtime-command.d.ts +0 -13
  80. package/dist/packages/core/src/agent-sessions/runtime-command/application/interrupt-claimed-runtime-command.d.ts +0 -13
  81. package/dist/packages/core/src/agent-sessions/runtime-command/application/run-runtime-command-locally.d.ts +0 -27
  82. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-claim-helpers.d.ts +0 -1
  83. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-contract-mapper.d.ts +0 -3
  84. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-output-summary.d.ts +0 -4
  85. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-repo.d.ts +0 -20
  86. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-runner.d.ts +0 -25
  87. package/dist/packages/core/src/agent-sessions/runtime-command/contracts/runtime-command-contracts.d.ts +0 -194
  88. package/dist/packages/core/src/agent-sessions/runtime-command/domain/runtime-command-entity.d.ts +0 -111
  89. package/dist/packages/core/src/agent-sessions/runtime-command/infra/drizzle-runtime-command-repo.d.ts +0 -20
  90. package/dist/packages/core/src/agent-sessions/runtime-command/infra/local-runtime-command-runner.d.ts +0 -25
  91. package/dist/packages/core/src/agent-sessions/runtime-environment/domain/runtime-environment.d.ts +0 -12
  92. package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-publisher.d.ts +0 -24
  93. package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-repo.d.ts +0 -17
  94. package/dist/packages/core/src/agent-sessions/runtime-operation-event/domain/runtime-operation-event.d.ts +0 -35
  95. package/dist/packages/core/src/agent-sessions/runtime-operation-event/infra/file-runtime-operation-event-repo.d.ts +0 -25
  96. package/dist/packages/core/src/agent-sessions/runtime-service/application/create-runtime-service.d.ts +0 -19
  97. package/dist/packages/core/src/agent-sessions/runtime-service/application/get-runtime-service.d.ts +0 -13
  98. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-contract-mapper.d.ts +0 -3
  99. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-output-summary.d.ts +0 -10
  100. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-repo.d.ts +0 -9
  101. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-runner.d.ts +0 -23
  102. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-session-service-exposure-provider.d.ts +0 -19
  103. package/dist/packages/core/src/agent-sessions/runtime-service/application/start-runtime-service-locally.d.ts +0 -23
  104. package/dist/packages/core/src/agent-sessions/runtime-service/application/stop-runtime-service.d.ts +0 -34
  105. package/dist/packages/core/src/agent-sessions/runtime-service/contracts/runtime-service-contracts.d.ts +0 -140
  106. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-access-point.d.ts +0 -12
  107. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-entity.d.ts +0 -76
  108. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-healthcheck.d.ts +0 -20
  109. package/dist/packages/core/src/agent-sessions/runtime-service/infra/drizzle-runtime-service-repo.d.ts +0 -9
  110. package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-readiness-probe.d.ts +0 -42
  111. package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-runner.d.ts +0 -32
  112. package/dist/packages/core/src/common/contracts/json.d.ts +0 -9
  113. package/dist/packages/core/src/common/contracts/uuid-v7.d.ts +0 -8
  114. package/dist/packages/core/src/lib/db/db-executor.d.ts +0 -4
  115. package/dist/packages/core/src/lib/db/index.d.ts +0 -7
  116. package/dist/packages/core/src/lib/db/schema.d.ts +0 -4950
  117. package/dist/packages/core/src/lib/di.d.ts +0 -113
  118. package/dist/packages/core/src/lib/domain-events/domain-event.d.ts +0 -12
  119. package/dist/packages/core/src/lib/domain-events/in-memory-domain-event-dispatcher.d.ts +0 -7
  120. package/dist/packages/core/src/lib/errors.d.ts +0 -37
  121. package/dist/packages/core/src/lib/logger.d.ts +0 -7
  122. package/dist/packages/core/src/lib/result.d.ts +0 -15
  123. package/dist/packages/core/src/lib/time-provider.d.ts +0 -5
  124. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/add-linear-pipeline-step-definition.d.ts +0 -13
  125. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/archive-linear-pipeline-definition.d.ts +0 -13
  126. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/create-linear-pipeline-definition.d.ts +0 -11
  127. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/get-linear-pipeline-definition.d.ts +0 -11
  128. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-contract-mapper.d.ts +0 -3
  129. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo.d.ts +0 -9
  130. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/list-linear-pipeline-definitions.d.ts +0 -9
  131. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/remove-linear-pipeline-step-definition.d.ts +0 -13
  132. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/set-linear-pipeline-step-advancement-policy-definition.d.ts +0 -13
  133. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-definition.d.ts +0 -13
  134. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-step-definition.d.ts +0 -13
  135. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/contracts/linear-pipeline-definition-contracts.d.ts +0 -357
  136. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/domain/linear-pipeline-definition-entity.d.ts +0 -36
  137. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-advancement-policy-definition-entity.d.ts +0 -42
  138. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-definition-entity.d.ts +0 -42
  139. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/infra/drizzle-linear-pipeline-definition-repo.d.ts +0 -11
  140. package/dist/packages/core/src/pipeline-definitions/step-definition/application/archive-step-definition.d.ts +0 -13
  141. package/dist/packages/core/src/pipeline-definitions/step-definition/application/create-step-definition.d.ts +0 -11
  142. package/dist/packages/core/src/pipeline-definitions/step-definition/application/get-step-definition.d.ts +0 -11
  143. package/dist/packages/core/src/pipeline-definitions/step-definition/application/list-step-definitions.d.ts +0 -9
  144. package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-contract-mapper.d.ts +0 -3
  145. package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-repo.d.ts +0 -9
  146. package/dist/packages/core/src/pipeline-definitions/step-definition/application/update-step-definition.d.ts +0 -13
  147. package/dist/packages/core/src/pipeline-definitions/step-definition/contracts/step-definition-contracts.d.ts +0 -281
  148. package/dist/packages/core/src/pipeline-definitions/step-definition/domain/step-definition-entity.d.ts +0 -53
  149. package/dist/packages/core/src/pipeline-definitions/step-definition/entities/computed-signal-definition-entity.d.ts +0 -31
  150. package/dist/packages/core/src/pipeline-definitions/step-definition/entities/signal-extractor-definition-entity.d.ts +0 -30
  151. package/dist/packages/core/src/pipeline-definitions/step-definition/infra/drizzle-step-definition-repo.d.ts +0 -11
  152. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/get-step-definition-template.d.ts +0 -8
  153. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/instantiate-step-definition-template.d.ts +0 -15
  154. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/list-step-definition-templates.d.ts +0 -5
  155. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/step-definition-template-repo.d.ts +0 -7
  156. package/dist/packages/core/src/pipeline-definitions/step-definition-template/contracts/step-definition-template-contracts.d.ts +0 -98
  157. package/dist/packages/core/src/pipeline-definitions/step-definition-template/domain/step-definition-template-entity.d.ts +0 -37
  158. package/dist/packages/core/src/pipeline-definitions/step-definition-template/infra/drizzle-step-definition-template-repo.d.ts +0 -9
  159. package/dist/packages/core/src/pipeline-executions/feedback-request/application/create-feedback-requests-on-step-signal-created.d.ts +0 -9
  160. package/dist/packages/core/src/pipeline-executions/feedback-request/application/decline-feedback-request.d.ts +0 -13
  161. package/dist/packages/core/src/pipeline-executions/feedback-request/application/feedback-request-repo.d.ts +0 -8
  162. package/dist/packages/core/src/pipeline-executions/feedback-request/application/list-feedback-requests-by-step-signal.d.ts +0 -14
  163. package/dist/packages/core/src/pipeline-executions/feedback-request/contracts/feedback-request-contracts.d.ts +0 -21
  164. package/dist/packages/core/src/pipeline-executions/feedback-request/domain/feedback-request-entity.d.ts +0 -29
  165. package/dist/packages/core/src/pipeline-executions/feedback-request/infra/drizzle-feedback-request-repo.d.ts +0 -10
  166. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/accept-linear-pipeline-step-run.d.ts +0 -19
  167. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/apply-linear-pipeline-step-result-and-advance.d.ts +0 -21
  168. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/cancel-linear-pipeline-execution.d.ts +0 -15
  169. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-execution.d.ts +0 -15
  170. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-step-run-attempt.d.ts +0 -17
  171. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/get-linear-pipeline-execution.d.ts +0 -15
  172. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-contract-mapper.d.ts +0 -3
  173. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-helpers.d.ts +0 -52
  174. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-repo.d.ts +0 -15
  175. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-step-input-resolution.d.ts +0 -5
  176. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions-by-definition.d.ts +0 -15
  177. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions.d.ts +0 -13
  178. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/mark-linear-pipeline-step-run-attempt-running.d.ts +0 -15
  179. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/project-linear-pipeline-executions.d.ts +0 -10
  180. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/queue-first-linear-pipeline-step-run.d.ts +0 -19
  181. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/retrigger-linear-pipeline-step-run.d.ts +0 -17
  182. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/start-linear-pipeline-execution.d.ts +0 -19
  183. package/dist/packages/core/src/pipeline-executions/pipeline-execution/contracts/linear-pipeline-execution-contracts.d.ts +0 -330
  184. package/dist/packages/core/src/pipeline-executions/pipeline-execution/domain/linear-pipeline-execution-entity.d.ts +0 -43
  185. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-execution-event-entity.d.ts +0 -25
  186. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-evaluation-entity.d.ts +0 -45
  187. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-attempt-entity.d.ts +0 -24
  188. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-entity.d.ts +0 -63
  189. package/dist/packages/core/src/pipeline-executions/pipeline-execution/infra/drizzle-linear-pipeline-execution-repo.d.ts +0 -19
  190. package/dist/packages/core/src/pipeline-executions/step-execution/application/add-step-execution-result.d.ts +0 -13
  191. package/dist/packages/core/src/pipeline-executions/step-execution/application/claim-step-executions.d.ts +0 -19
  192. package/dist/packages/core/src/pipeline-executions/step-execution/application/complete-claimed-step-execution.d.ts +0 -39
  193. package/dist/packages/core/src/pipeline-executions/step-execution/application/create-step-execution.d.ts +0 -11
  194. package/dist/packages/core/src/pipeline-executions/step-execution/application/extract-step-execution-signals.d.ts +0 -17
  195. package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution-worker-context.d.ts +0 -17
  196. package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution.d.ts +0 -13
  197. package/dist/packages/core/src/pipeline-executions/step-execution/application/heartbeat-step-execution-claim.d.ts +0 -21
  198. package/dist/packages/core/src/pipeline-executions/step-execution/application/list-step-executions-by-project.d.ts +0 -11
  199. package/dist/packages/core/src/pipeline-executions/step-execution/application/load-status-adjusted-step-executions.d.ts +0 -31
  200. package/dist/packages/core/src/pipeline-executions/step-execution/application/mark-step-execution-running.d.ts +0 -13
  201. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-claim-helpers.d.ts +0 -13
  202. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-contract-mapper.d.ts +0 -7
  203. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-repo.d.ts +0 -29
  204. package/dist/packages/core/src/pipeline-executions/step-execution/contracts/step-execution-contracts.d.ts +0 -325
  205. package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-execution-entity.d.ts +0 -61
  206. package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-signal-created.domain-event.d.ts +0 -18
  207. package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-execution-result-entity.d.ts +0 -32
  208. package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-signal-entity.d.ts +0 -36
  209. package/dist/packages/core/src/pipeline-executions/step-execution/infra/drizzle-step-execution-repo.d.ts +0 -31
  210. package/dist/packages/core/src/projects/project/application/create-project.d.ts +0 -13
  211. package/dist/packages/core/src/projects/project/application/default-pipelines/default-create-failing-test-step-definition.d.ts +0 -4
  212. package/dist/packages/core/src/projects/project/application/default-pipelines/default-description-quality-step-definition.d.ts +0 -4
  213. package/dist/packages/core/src/projects/project/application/default-pipelines/default-fix-failing-test-step-definition.d.ts +0 -4
  214. package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-conventions.d.ts +0 -9
  215. package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-definitions.d.ts +0 -7
  216. package/dist/packages/core/src/projects/project/application/default-pipelines/default-step-definitions.d.ts +0 -8
  217. package/dist/packages/core/src/projects/project/application/default-pipelines/default-web-repro-playwright-step-definition.d.ts +0 -4
  218. package/dist/packages/core/src/projects/project/application/get-project.d.ts +0 -11
  219. package/dist/packages/core/src/projects/project/application/list-projects.d.ts +0 -9
  220. package/dist/packages/core/src/projects/project/application/project-authorization.d.ts +0 -4
  221. package/dist/packages/core/src/projects/project/application/project-contract-mapper.d.ts +0 -3
  222. package/dist/packages/core/src/projects/project/application/project-repo.d.ts +0 -9
  223. package/dist/packages/core/src/projects/project/application/seed-default-pipelines-on-project-created.d.ts +0 -12
  224. package/dist/packages/core/src/projects/project/application/update-project-membership.d.ts +0 -13
  225. package/dist/packages/core/src/projects/project/contracts/project-contracts.d.ts +0 -37
  226. package/dist/packages/core/src/projects/project/domain/project-created.domain-event.d.ts +0 -13
  227. package/dist/packages/core/src/projects/project/domain/project-entity.d.ts +0 -31
  228. package/dist/packages/core/src/projects/project/domain/project-git-url.d.ts +0 -7
  229. package/dist/packages/core/src/projects/project/domain/project-membership.d.ts +0 -21
  230. package/dist/packages/core/src/projects/project/domain/project-permission.d.ts +0 -7
  231. package/dist/packages/core/src/projects/project/infra/drizzle-project-repo.d.ts +0 -11
  232. package/dist/packages/core/src/projects/project-context/application/create-project-context-entry.d.ts +0 -11
  233. package/dist/packages/core/src/projects/project-context/application/delete-project-context-entry.d.ts +0 -11
  234. package/dist/packages/core/src/projects/project-context/application/list-project-context-entries.d.ts +0 -12
  235. package/dist/packages/core/src/projects/project-context/application/project-context-entry-repo.d.ts +0 -8
  236. package/dist/packages/core/src/projects/project-context/contracts/project-context-entry-contracts.d.ts +0 -46
  237. package/dist/packages/core/src/projects/project-context/domain/project-context-entry-entity.d.ts +0 -27
  238. package/dist/packages/core/src/projects/project-context/infra/drizzle-project-context-entry-repo.d.ts +0 -10
  239. package/dist/packages/core/src/projects/project-opencode-config/application/project-opencode-runtime-metadata.d.ts +0 -17
  240. package/dist/packages/core/src/work-items/work-item/application/create-work-item.d.ts +0 -16
  241. package/dist/packages/core/src/work-items/work-item/application/delete-work-items.d.ts +0 -14
  242. package/dist/packages/core/src/work-items/work-item/application/get-work-items.d.ts +0 -14
  243. package/dist/packages/core/src/work-items/work-item/application/list-work-items-by-project.d.ts +0 -13
  244. package/dist/packages/core/src/work-items/work-item/application/upsert-work-item.d.ts +0 -14
  245. package/dist/packages/core/src/work-items/work-item/application/work-item-contract-mapper.d.ts +0 -4
  246. package/dist/packages/core/src/work-items/work-item/application/work-item-repo.d.ts +0 -27
  247. package/dist/packages/core/src/work-items/work-item/contracts/work-item-contracts.d.ts +0 -119
  248. package/dist/packages/core/src/work-items/work-item/domain/date-utils.d.ts +0 -1
  249. package/dist/packages/core/src/work-items/work-item/domain/work-item-entity.d.ts +0 -58
  250. package/dist/packages/core/src/work-items/work-item/domain/work-item-field-value.d.ts +0 -3
  251. package/dist/packages/core/src/work-items/work-item/domain/work-item-id.d.ts +0 -6
  252. package/dist/packages/core/src/work-items/work-item/domain/work-item-platform.d.ts +0 -2
  253. package/dist/packages/core/src/work-items/work-item/domain/work-item-projection-fingerprint-entity.d.ts +0 -18
  254. package/dist/packages/core/src/work-items/work-item/infra/drizzle-work-item-repo.d.ts +0 -25
  255. package/dist/packages/sdks/js/script/build.d.ts +0 -1
  256. package/dist/packages/sdks/js/src/client.d.ts +0 -2
  257. package/dist/packages/sdks/js/src/index.d.ts +0 -1
  258. package/dist/packages/sdks/js/src/step-definitions-client.d.ts +0 -202
  259. package/dist/packages/sdks/js/src/step-execution-plane-client.d.ts +0 -370
  260. package/dist/packages/sdks/js/src/treaty.d.ts +0 -13
  261. package/dist/packages/sdks/js/test/define-step.test.d.ts +0 -1
  262. /package/dist/{packages/core/src/common/contracts/opencode-mcp.d.ts → opencode-mcp.d.ts} +0 -0
@@ -1,10 +0,0 @@
1
- export declare const RUNTIME_SERVICE_OUTPUT_PREVIEW_LIMIT = 4000;
2
- export declare const summarizeRuntimeServiceOutput: (output: {
3
- stdout: string;
4
- stderr: string;
5
- }) => {
6
- stdoutPreview: string;
7
- stderrPreview: string;
8
- stdoutBytes: number;
9
- stderrBytes: number;
10
- };
@@ -1,9 +0,0 @@
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 { RuntimeServiceEntity } from "../domain/runtime-service-entity";
4
- export type RuntimeServiceRepo = {
5
- load(id: UuidV7, dbExecutor?: DbExecutor): Promise<RuntimeServiceEntity | null>;
6
- listByProjectRuntimeSessionId(projectRuntimeSessionId: UuidV7, dbExecutor?: DbExecutor): Promise<RuntimeServiceEntity[]>;
7
- create(runtimeService: RuntimeServiceEntity, dbExecutor?: DbExecutor): Promise<RuntimeServiceEntity>;
8
- save(runtimeService: RuntimeServiceEntity, dbExecutor?: DbExecutor): Promise<RuntimeServiceEntity>;
9
- };
@@ -1,23 +0,0 @@
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
- import type { RuntimeServiceAccessPoint } from "../domain/runtime-service-access-point";
4
- import type { RuntimeServiceEntity } from "../domain/runtime-service-entity";
5
- export type RuntimeServiceOutputEvent = {
6
- stream: "stdout" | "stderr";
7
- chunk: string;
8
- };
9
- export type RuntimeServiceRunner = {
10
- start(input: {
11
- runtimeService: RuntimeServiceEntity;
12
- executionTarget: ProjectRuntimeSessionExecutionTarget;
13
- onOutput?: ((output: RuntimeServiceOutputEvent) => Promise<void> | void) | undefined;
14
- }): Promise<{
15
- accessPoints: RuntimeServiceAccessPoint[];
16
- readyAt: Date;
17
- metadata?: AnyJsonObject | undefined;
18
- }>;
19
- stop(input: {
20
- runtimeService: RuntimeServiceEntity;
21
- executionTarget: ProjectRuntimeSessionExecutionTarget;
22
- }): Promise<void>;
23
- };
@@ -1,19 +0,0 @@
1
- import type { ProjectRuntimeSessionExecutionTarget } from "@boboddy/core/agent-sessions/project-runtime-session/domain/project-runtime-session-execution-target";
2
- import type { RuntimeServiceAccessPoint, RuntimeServiceAccessPointProtocol } from "../domain/runtime-service-access-point";
3
- export type RuntimeSessionServiceAccessPoint = RuntimeServiceAccessPoint & {
4
- targetPort: number;
5
- };
6
- export type EnsureDefaultRuntimeServiceAccessPointsInput = {
7
- executionTarget: ProjectRuntimeSessionExecutionTarget;
8
- workspacePath: string;
9
- devcontainerConfigPath: string;
10
- };
11
- export type EnsureRuntimeServiceAccessPointInput = EnsureDefaultRuntimeServiceAccessPointsInput & {
12
- targetPort: number;
13
- protocol: RuntimeServiceAccessPointProtocol;
14
- };
15
- export type RuntimeSessionServiceExposureProvider = {
16
- ensureDefaultAccessPoints(input: EnsureDefaultRuntimeServiceAccessPointsInput): Promise<RuntimeSessionServiceAccessPoint[]>;
17
- ensureAccessPoint(input: EnsureRuntimeServiceAccessPointInput): Promise<RuntimeSessionServiceAccessPoint>;
18
- stop(executionTarget: ProjectRuntimeSessionExecutionTarget): Promise<void>;
19
- };
@@ -1,23 +0,0 @@
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 { CoreValidationError, ResourceNotFoundError } from "@boboddy/core/lib/errors";
5
- import { Result } from "@boboddy/core/lib/result";
6
- import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
7
- import type { ProjectRepo } from "@boboddy/core/projects/project/application/project-repo";
8
- import type { ProjectRuntimeSessionRepo } from "@boboddy/core/agent-sessions/project-runtime-session/application/project-runtime-session-repo";
9
- import type { RuntimeOperationEventPublisher } from "@boboddy/core/agent-sessions/runtime-operation-event/application/runtime-operation-event-publisher";
10
- import type { RuntimeServiceRepo } from "./runtime-service-repo";
11
- import type { RuntimeServiceRunner } from "./runtime-service-runner";
12
- import { type RuntimeServiceContract, type StartRuntimeServiceInput } from "../contracts/runtime-service-contracts";
13
- export declare const startRuntimeServiceLocally: (input: StartRuntimeServiceInput, { userAuthz, projectRepo, projectRuntimeSessionRepo, runtimeServiceRepo, runtimeServiceRunner, runtimeOperationEventPublisher, timeProvider, dbExecutor, logger, }: {
14
- userAuthz: UserAuthorizationService;
15
- projectRepo: ProjectRepo;
16
- projectRuntimeSessionRepo: ProjectRuntimeSessionRepo;
17
- runtimeServiceRepo: RuntimeServiceRepo;
18
- runtimeServiceRunner: RuntimeServiceRunner;
19
- runtimeOperationEventPublisher: RuntimeOperationEventPublisher;
20
- timeProvider: TimeProvider;
21
- dbExecutor?: DbExecutor | undefined;
22
- logger?: Logger | undefined;
23
- }) => Promise<Result<RuntimeServiceContract, ResourceNotFoundError | CoreValidationError>>;
@@ -1,34 +0,0 @@
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 { CoreValidationError, ResourceNotFoundError } from "@boboddy/core/lib/errors";
5
- import { Result } from "@boboddy/core/lib/result";
6
- import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
7
- import type { ProjectRepo } from "@boboddy/core/projects/project/application/project-repo";
8
- import type { ProjectRuntimeSessionRepo } from "@boboddy/core/agent-sessions/project-runtime-session/application/project-runtime-session-repo";
9
- import { getProjectRuntimeSessionExecutionTarget } from "@boboddy/core/agent-sessions/project-runtime-session/application/project-runtime-session-execution-target";
10
- import type { RuntimeOperationEventPublisher } from "@boboddy/core/agent-sessions/runtime-operation-event/application/runtime-operation-event-publisher";
11
- import type { RuntimeServiceRepo } from "./runtime-service-repo";
12
- import type { RuntimeServiceRunner } from "./runtime-service-runner";
13
- import type { RuntimeServiceEntity } from "../domain/runtime-service-entity";
14
- import { type RuntimeServiceContract, type StopRuntimeServiceInput } from "../contracts/runtime-service-contracts";
15
- export declare const stopOwnedRuntimeService: (runtimeService: RuntimeServiceEntity, { runtimeServiceRepo, runtimeServiceRunner, runtimeOperationEventPublisher, executionTarget, timeProvider, dbExecutor, logger, }: {
16
- runtimeServiceRepo: RuntimeServiceRepo;
17
- runtimeServiceRunner: RuntimeServiceRunner;
18
- runtimeOperationEventPublisher: RuntimeOperationEventPublisher;
19
- executionTarget?: ReturnType<typeof getProjectRuntimeSessionExecutionTarget> | undefined;
20
- timeProvider: TimeProvider;
21
- dbExecutor?: DbExecutor | undefined;
22
- logger?: Logger | undefined;
23
- }) => Promise<Result<RuntimeServiceEntity, CoreValidationError>>;
24
- export declare const stopRuntimeService: (input: StopRuntimeServiceInput, { userAuthz, projectRepo, projectRuntimeSessionRepo, runtimeServiceRepo, runtimeServiceRunner, runtimeOperationEventPublisher, timeProvider, dbExecutor, logger, }: {
25
- userAuthz: UserAuthorizationService;
26
- projectRepo: ProjectRepo;
27
- projectRuntimeSessionRepo: ProjectRuntimeSessionRepo;
28
- runtimeServiceRepo: RuntimeServiceRepo;
29
- runtimeServiceRunner: RuntimeServiceRunner;
30
- runtimeOperationEventPublisher: RuntimeOperationEventPublisher;
31
- timeProvider: TimeProvider;
32
- dbExecutor?: DbExecutor | undefined;
33
- logger?: Logger | undefined;
34
- }) => Promise<Result<RuntimeServiceContract, ResourceNotFoundError | CoreValidationError>>;
@@ -1,140 +0,0 @@
1
- import { z } from "zod";
2
- export declare const runtimeServiceEnvironmentRoleSchema: z.ZodEnum<{
3
- project: "project";
4
- agent: "agent";
5
- }>;
6
- export declare const runtimeServiceStatusSchema: z.ZodEnum<{
7
- queued: "queued";
8
- failed: "failed";
9
- stopped: "stopped";
10
- starting: "starting";
11
- ready: "ready";
12
- stopping: "stopping";
13
- }>;
14
- export declare const runtimeServiceAccessPointProtocolSchema: z.ZodEnum<{
15
- tcp: "tcp";
16
- http: "http";
17
- }>;
18
- export declare const runtimeServiceHealthcheckProtocolKindSchema: z.ZodEnum<{
19
- tcp: "tcp";
20
- http: "http";
21
- }>;
22
- export declare const runtimeServiceAccessPointSchema: z.ZodObject<{
23
- host: z.ZodString;
24
- port: z.ZodNumber;
25
- protocol: z.ZodEnum<{
26
- tcp: "tcp";
27
- http: "http";
28
- }>;
29
- }, z.core.$strip>;
30
- export declare const runtimeServiceHealthcheckSchema: z.ZodObject<{
31
- protocolKind: z.ZodEnum<{
32
- tcp: "tcp";
33
- http: "http";
34
- }>;
35
- targetPort: z.ZodNumber;
36
- path: z.ZodNullable<z.ZodString>;
37
- expectedStatus: z.ZodNullable<z.ZodNumber>;
38
- intervalMs: z.ZodNumber;
39
- timeoutMs: z.ZodNumber;
40
- retries: z.ZodNumber;
41
- }, z.core.$strip>;
42
- export declare const createRuntimeServiceHealthcheckInputSchema: z.ZodObject<{
43
- protocolKind: z.ZodEnum<{
44
- tcp: "tcp";
45
- http: "http";
46
- }>;
47
- targetPort: z.ZodNumber;
48
- path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
- expectedStatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
50
- intervalMs: z.ZodOptional<z.ZodNumber>;
51
- timeoutMs: z.ZodOptional<z.ZodNumber>;
52
- retries: z.ZodOptional<z.ZodNumber>;
53
- }, z.core.$strip>;
54
- export declare const runtimeServiceSchema: z.ZodObject<{
55
- 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>>;
56
- 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>>;
57
- projectRuntimeSessionId: 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>>;
58
- environmentRole: z.ZodEnum<{
59
- project: "project";
60
- agent: "agent";
61
- }>;
62
- command: z.ZodString;
63
- status: z.ZodEnum<{
64
- queued: "queued";
65
- failed: "failed";
66
- stopped: "stopped";
67
- starting: "starting";
68
- ready: "ready";
69
- stopping: "stopping";
70
- }>;
71
- healthcheck: z.ZodObject<{
72
- protocolKind: z.ZodEnum<{
73
- tcp: "tcp";
74
- http: "http";
75
- }>;
76
- targetPort: z.ZodNumber;
77
- path: z.ZodNullable<z.ZodString>;
78
- expectedStatus: z.ZodNullable<z.ZodNumber>;
79
- intervalMs: z.ZodNumber;
80
- timeoutMs: z.ZodNumber;
81
- retries: z.ZodNumber;
82
- }, z.core.$strip>;
83
- accessPoints: z.ZodArray<z.ZodObject<{
84
- host: z.ZodString;
85
- port: z.ZodNumber;
86
- protocol: z.ZodEnum<{
87
- tcp: "tcp";
88
- http: "http";
89
- }>;
90
- }, z.core.$strip>>;
91
- failureReason: z.ZodNullable<z.ZodString>;
92
- metadata: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>;
93
- createdAt: z.ZodISODateTime;
94
- startedAt: z.ZodNullable<z.ZodISODateTime>;
95
- readyAt: z.ZodNullable<z.ZodISODateTime>;
96
- stoppedAt: z.ZodNullable<z.ZodISODateTime>;
97
- updatedAt: z.ZodISODateTime;
98
- }, z.core.$strip>;
99
- export declare const createRuntimeServiceInputSchema: z.ZodObject<{
100
- 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>>;
101
- projectRuntimeSessionId: 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>>;
102
- environmentRole: z.ZodDefault<z.ZodEnum<{
103
- project: "project";
104
- agent: "agent";
105
- }>>;
106
- command: z.ZodString;
107
- healthcheck: z.ZodObject<{
108
- protocolKind: z.ZodEnum<{
109
- tcp: "tcp";
110
- http: "http";
111
- }>;
112
- targetPort: z.ZodNumber;
113
- path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
- expectedStatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
115
- intervalMs: z.ZodOptional<z.ZodNumber>;
116
- timeoutMs: z.ZodOptional<z.ZodNumber>;
117
- retries: z.ZodOptional<z.ZodNumber>;
118
- }, z.core.$strip>;
119
- metadata: z.ZodOptional<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
120
- }, z.core.$strip>;
121
- export declare const getRuntimeServiceInputSchema: z.ZodObject<{
122
- 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>>;
123
- projectRuntimeSessionId: 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>>;
124
- runtimeServiceId: 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>>;
125
- }, z.core.$strip>;
126
- export declare const startRuntimeServiceInputSchema: z.ZodObject<{
127
- 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>>;
128
- projectRuntimeSessionId: 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>>;
129
- runtimeServiceId: 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>>;
130
- }, z.core.$strip>;
131
- export declare const stopRuntimeServiceInputSchema: z.ZodObject<{
132
- 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>>;
133
- projectRuntimeSessionId: 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>>;
134
- runtimeServiceId: 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>>;
135
- }, z.core.$strip>;
136
- export type RuntimeServiceContract = z.infer<typeof runtimeServiceSchema>;
137
- export type CreateRuntimeServiceInput = z.input<typeof createRuntimeServiceInputSchema>;
138
- export type GetRuntimeServiceInput = z.input<typeof getRuntimeServiceInputSchema>;
139
- export type StartRuntimeServiceInput = z.input<typeof startRuntimeServiceInputSchema>;
140
- export type StopRuntimeServiceInput = z.input<typeof stopRuntimeServiceInputSchema>;
@@ -1,12 +0,0 @@
1
- export declare const RUNTIME_SERVICE_ACCESS_POINT_PROTOCOLS: readonly ["tcp", "http"];
2
- export type RuntimeServiceAccessPointProtocol = (typeof RUNTIME_SERVICE_ACCESS_POINT_PROTOCOLS)[number];
3
- export type RuntimeServiceAccessPoint = {
4
- host: string;
5
- port: number;
6
- protocol: RuntimeServiceAccessPointProtocol;
7
- };
8
- export declare const createRuntimeServiceAccessPoint: (input: {
9
- host: string;
10
- port: number;
11
- protocol: string;
12
- }) => RuntimeServiceAccessPoint;
@@ -1,76 +0,0 @@
1
- import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
2
- import type { AnyJsonObject } from "@boboddy/core/common/contracts/json";
3
- import { type RuntimeEnvironmentRole } from "@boboddy/core/agent-sessions/runtime-environment/domain/runtime-environment";
4
- import { type RuntimeServiceAccessPoint } from "./runtime-service-access-point";
5
- import { type RuntimeServiceHealthcheck } from "./runtime-service-healthcheck";
6
- export declare const RUNTIME_SERVICE_ENVIRONMENT_ROLES: readonly ["project", "agent"];
7
- export type RuntimeServiceEnvironmentRole = RuntimeEnvironmentRole;
8
- export declare const RUNTIME_SERVICE_STATUSES: readonly ["queued", "starting", "ready", "stopping", "stopped", "failed"];
9
- export type RuntimeServiceStatus = (typeof RUNTIME_SERVICE_STATUSES)[number];
10
- export type RuntimeServiceEntityProps = {
11
- id: UuidV7;
12
- projectId: UuidV7;
13
- projectRuntimeSessionId: UuidV7;
14
- environmentRole: RuntimeServiceEnvironmentRole;
15
- command: string;
16
- status: RuntimeServiceStatus;
17
- healthcheck: RuntimeServiceHealthcheck;
18
- accessPoints?: RuntimeServiceAccessPoint[] | null | undefined;
19
- failureReason?: string | null | undefined;
20
- metadata?: AnyJsonObject | null | undefined;
21
- createdAt?: Date | string | null | undefined;
22
- startedAt?: Date | string | null | undefined;
23
- readyAt?: Date | string | null | undefined;
24
- stoppedAt?: Date | string | null | undefined;
25
- updatedAt?: Date | string | null | undefined;
26
- };
27
- export type CreateRuntimeServiceEntityProps = Omit<RuntimeServiceEntityProps, "id"> & {
28
- id?: UuidV7 | undefined;
29
- };
30
- export declare class RuntimeServiceEntity {
31
- readonly id: UuidV7;
32
- readonly projectId: UuidV7;
33
- readonly projectRuntimeSessionId: UuidV7;
34
- readonly environmentRole: RuntimeServiceEnvironmentRole;
35
- readonly command: string;
36
- readonly status: RuntimeServiceStatus;
37
- readonly healthcheck: RuntimeServiceHealthcheck;
38
- readonly accessPoints: RuntimeServiceAccessPoint[];
39
- readonly failureReason: string | null;
40
- readonly metadata: AnyJsonObject;
41
- readonly createdAt: Date | null | undefined;
42
- readonly startedAt: Date | null | undefined;
43
- readonly readyAt: Date | null | undefined;
44
- readonly stoppedAt: Date | null | undefined;
45
- readonly updatedAt: Date | null | undefined;
46
- private constructor();
47
- get isTerminal(): boolean;
48
- static createQueued(props: Omit<CreateRuntimeServiceEntityProps, "status" | "accessPoints" | "failureReason" | "startedAt" | "readyAt" | "stoppedAt"> & {
49
- runtimeSessionIsActive: boolean;
50
- }): RuntimeServiceEntity;
51
- static rehydrate(props: RuntimeServiceEntityProps): RuntimeServiceEntity;
52
- markStarting(input: {
53
- startedAt: Date;
54
- metadata?: AnyJsonObject | undefined;
55
- }): RuntimeServiceEntity;
56
- markReady(input: {
57
- readyAt: Date;
58
- accessPoints: RuntimeServiceAccessPoint[];
59
- metadata?: AnyJsonObject | undefined;
60
- }): RuntimeServiceEntity;
61
- markFailed(input: {
62
- failedAt: Date;
63
- reason: string;
64
- metadata?: AnyJsonObject | undefined;
65
- }): RuntimeServiceEntity;
66
- beginStopping(input: {
67
- stoppedAt: Date;
68
- metadata?: AnyJsonObject | undefined;
69
- }): RuntimeServiceEntity;
70
- markStopped(input: {
71
- stoppedAt: Date;
72
- metadata?: AnyJsonObject | undefined;
73
- }): RuntimeServiceEntity;
74
- toJSON(): RuntimeServiceEntityProps;
75
- private copy;
76
- }
@@ -1,20 +0,0 @@
1
- export declare const RUNTIME_SERVICE_HEALTHCHECK_PROTOCOL_KINDS: readonly ["http", "tcp"];
2
- export type RuntimeServiceHealthcheckProtocolKind = (typeof RUNTIME_SERVICE_HEALTHCHECK_PROTOCOL_KINDS)[number];
3
- export type RuntimeServiceHealthcheck = {
4
- protocolKind: RuntimeServiceHealthcheckProtocolKind;
5
- targetPort: number;
6
- path: string | null;
7
- expectedStatus: number | null;
8
- intervalMs: number;
9
- timeoutMs: number;
10
- retries: number;
11
- };
12
- export declare const createRuntimeServiceHealthcheck: (input: {
13
- protocolKind: RuntimeServiceHealthcheckProtocolKind;
14
- targetPort: number;
15
- path?: string | null | undefined;
16
- expectedStatus?: number | null | undefined;
17
- intervalMs?: number | undefined;
18
- timeoutMs?: number | undefined;
19
- retries?: number | undefined;
20
- }) => RuntimeServiceHealthcheck;
@@ -1,9 +0,0 @@
1
- import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
- import type { RuntimeServiceRepo } from "../application/runtime-service-repo";
3
- import { RuntimeServiceEntity, type RuntimeServiceEntityProps } from "../domain/runtime-service-entity";
4
- export declare class DrizzleRuntimeServiceRepo implements RuntimeServiceRepo {
5
- load(id: RuntimeServiceEntityProps["id"], dbExecutor?: DbExecutor): Promise<RuntimeServiceEntity | null>;
6
- listByProjectRuntimeSessionId(projectRuntimeSessionId: RuntimeServiceEntityProps["projectRuntimeSessionId"], dbExecutor?: DbExecutor): Promise<RuntimeServiceEntity[]>;
7
- create(runtimeService: RuntimeServiceEntity, dbExecutor?: DbExecutor): Promise<RuntimeServiceEntity>;
8
- save(runtimeService: RuntimeServiceEntity, dbExecutor?: DbExecutor): Promise<RuntimeServiceEntity>;
9
- }
@@ -1,42 +0,0 @@
1
- import type { RuntimeServiceAccessPoint } from "@boboddy/core/agent-sessions/runtime-service/domain/runtime-service-access-point";
2
- import type { RuntimeServiceHealthcheck } from "@boboddy/core/agent-sessions/runtime-service/domain/runtime-service-healthcheck";
3
- import type { Logger } from "@boboddy/core/lib/logger";
4
- export declare const READY_CHECK_SCRIPT = "const mode = process.argv[1];\nif (mode === \"http\") {\n const [url, timeoutMs, expectedStatus] = process.argv.slice(2);\n const http = require(\"node:http\");\n const { URL } = require(\"node:url\");\n const targetUrl = new URL(url);\n const request = http.request(\n targetUrl,\n {\n method: \"GET\",\n timeout: Number(timeoutMs),\n },\n (response) => {\n response.resume();\n response.on(\"end\", () => {\n if (response.statusCode === Number(expectedStatus)) {\n process.exit(0);\n }\n console.error(\n \"HTTP readiness probe expected status\",\n expectedStatus,\n \"but received\",\n response.statusCode,\n \"for\",\n url,\n );\n process.exit(1);\n });\n },\n );\n request.on(\"timeout\", () => {\n console.error(\"HTTP readiness probe timed out for\", url);\n request.destroy();\n process.exit(1);\n });\n request.on(\"error\", (error) => {\n console.error(\"HTTP readiness probe request failed for\", url, error?.message ?? String(error));\n process.exit(1);\n });\n request.end();\n} else {\n const net = require(\"node:net\");\n const [host, port, timeoutMs] = process.argv.slice(2);\n const socket = net.connect({ host, port: Number(port) });\n socket.setTimeout(Number(timeoutMs));\n socket.on(\"connect\", () => {\n socket.destroy();\n process.exit(0);\n });\n socket.on(\"timeout\", () => {\n console.error(\"TCP readiness probe timed out for\", host + \":\" + port);\n socket.destroy();\n process.exit(1);\n });\n socket.on(\"error\", (error) => {\n console.error(\"TCP readiness probe connection failed for\", host + \":\" + port, error?.message ?? String(error));\n process.exit(1);\n });\n}\n";
5
- export type ReadinessProbeFailure = {
6
- exitCode: number | null;
7
- signal: string | null;
8
- stdout: string;
9
- stderr: string;
10
- reason: string;
11
- };
12
- export declare const buildProbeOutputPreview: (value: string) => string;
13
- export declare const formatReadinessTarget: (input: {
14
- healthcheck: RuntimeServiceHealthcheck;
15
- accessPoint: RuntimeServiceAccessPoint;
16
- checkHost: string;
17
- }) => string;
18
- export declare const summarizeReadinessProbeFailure: (failure: ReadinessProbeFailure) => {
19
- exitCode: number | null;
20
- signal: string | null;
21
- reason: string;
22
- stdoutPreview: string;
23
- stderrPreview: string;
24
- };
25
- export declare function runReadinessProbe(input: {
26
- healthcheck: RuntimeServiceHealthcheck;
27
- accessPoint: RuntimeServiceAccessPoint;
28
- checkContainerId: string;
29
- checkHost: string;
30
- }): Promise<{
31
- succeeded: true;
32
- } | {
33
- succeeded: false;
34
- failure: ReadinessProbeFailure;
35
- }>;
36
- export declare function waitForReady(input: {
37
- healthcheck: RuntimeServiceHealthcheck;
38
- accessPoint: RuntimeServiceAccessPoint;
39
- checkContainerId: string;
40
- checkHost: string;
41
- log: Logger;
42
- }): Promise<void>;
@@ -1,32 +0,0 @@
1
- import type { AnyJsonObject } from "@boboddy/core/common/contracts/json";
2
- import { type Logger } from "@boboddy/core/lib/logger";
3
- import type { RuntimeSessionServiceExposureProvider } from "@boboddy/core/agent-sessions/runtime-service/application/runtime-session-service-exposure-provider";
4
- import type { RuntimeServiceRunner } from "@boboddy/core/agent-sessions/runtime-service/application/runtime-service-runner";
5
- import type { RuntimeServiceAccessPoint } from "@boboddy/core/agent-sessions/runtime-service/domain/runtime-service-access-point";
6
- import type { RuntimeServiceEntity } from "@boboddy/core/agent-sessions/runtime-service/domain/runtime-service-entity";
7
- import type { ProjectRuntimeSessionExecutionTarget } from "@boboddy/core/agent-sessions/project-runtime-session/domain/project-runtime-session-execution-target";
8
- export declare class LocalRuntimeServiceRunner implements RuntimeServiceRunner {
9
- private readonly runtimeSessionServiceExposureProvider;
10
- private readonly logger;
11
- private readonly runningServices;
12
- constructor(runtimeSessionServiceExposureProvider: RuntimeSessionServiceExposureProvider, logger?: Logger);
13
- start({ runtimeService, executionTarget, onOutput, }: {
14
- runtimeService: RuntimeServiceEntity;
15
- executionTarget: ProjectRuntimeSessionExecutionTarget;
16
- onOutput?: ((output: {
17
- stream: "stdout" | "stderr";
18
- chunk: string;
19
- }) => Promise<void> | void) | undefined;
20
- }): Promise<{
21
- accessPoints: RuntimeServiceAccessPoint[];
22
- readyAt: Date;
23
- metadata?: AnyJsonObject | undefined;
24
- }>;
25
- stop({ runtimeService, executionTarget, }: {
26
- runtimeService: RuntimeServiceEntity;
27
- executionTarget: ProjectRuntimeSessionExecutionTarget;
28
- }): Promise<void>;
29
- private copyCommandScript;
30
- private readServiceOutputSummary;
31
- private readServiceStreamOutput;
32
- }
@@ -1,9 +0,0 @@
1
- import z from "zod";
2
- export type AnyJsonPrimitive = string | number | boolean | null;
3
- export type AnyJsonValue = AnyJsonPrimitive | AnyJsonObject | AnyJsonArray;
4
- export interface AnyJsonObject {
5
- [key: string]: AnyJsonValue;
6
- }
7
- export type AnyJsonArray = AnyJsonValue[];
8
- export declare const anyJsonValueSchema: z.ZodType<AnyJsonValue>;
9
- export declare const anyJsonObjectSchema: z.ZodType<AnyJsonObject>;
@@ -1,8 +0,0 @@
1
- import z from "zod";
2
- export type UuidV7 = string & {
3
- readonly __brand: "uuidv7";
4
- };
5
- export declare const isUuidV7: (value: string) => value is UuidV7;
6
- export declare const parseUuidV7: (value: string) => UuidV7;
7
- export declare const createUuidV7: () => UuidV7;
8
- export declare const uuidV7Schema: z.ZodString & z.ZodType<UuidV7, string, z.core.$ZodTypeInternals<UuidV7, string>>;
@@ -1,4 +0,0 @@
1
- import { type getDb } from "./index";
2
- export type DbClient = ReturnType<typeof getDb>;
3
- export type DbTransaction = Parameters<Parameters<DbClient["transaction"]>[0]>[0];
4
- export type DbExecutor = DbClient | DbTransaction;
@@ -1,7 +0,0 @@
1
- import postgres from "postgres";
2
- import * as schema from "./schema";
3
- export declare const getDb: () => import("drizzle-orm/postgres-js").PostgresJsDatabase<typeof schema> & {
4
- $client: postgres.Sql<{}>;
5
- };
6
- export declare const closeDb: () => Promise<void>;
7
- export declare const resetDbForTests: () => Promise<void>;