@boboddy/sdk 0.0.12-alpha → 0.0.13-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 (239) hide show
  1. package/dist/client.js +62 -0
  2. package/dist/define-step.js +1018 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +1016 -0
  5. package/dist/step-definitions-client.js +47 -0
  6. package/dist/treaty.js +34 -0
  7. package/package.json +1 -1
  8. package/dist/apps/api/src/app.d.ts +0 -19731
  9. package/dist/apps/api/src/contracts.d.ts +0 -20
  10. package/dist/apps/api/src/http/error-handler.d.ts +0 -23
  11. package/dist/apps/api/src/http/routes/auth.d.ts +0 -57
  12. package/dist/apps/api/src/http/routes/authenticated.d.ts +0 -79
  13. package/dist/apps/api/src/http/routes/feedback-requests.d.ts +0 -281
  14. package/dist/apps/api/src/http/routes/linear-pipeline-definitions.d.ts +0 -1563
  15. package/dist/apps/api/src/http/routes/linear-pipeline-executions.d.ts +0 -2540
  16. package/dist/apps/api/src/http/routes/project-context-entries.d.ts +0 -387
  17. package/dist/apps/api/src/http/routes/projects.d.ts +0 -1906
  18. package/dist/apps/api/src/http/routes/step-definition-templates.d.ts +0 -479
  19. package/dist/apps/api/src/http/routes/step-definitions.d.ts +0 -917
  20. package/dist/apps/api/src/http/routes/step-execution-route-helpers.d.ts +0 -64
  21. package/dist/apps/api/src/http/routes/step-executions.d.ts +0 -1485
  22. package/dist/apps/api/src/http/routes/work-items.d.ts +0 -966
  23. package/dist/apps/api/src/problem-details.d.ts +0 -9
  24. package/dist/packages/core/src/access/authorization/application/user-authorization-service.d.ts +0 -12
  25. package/dist/packages/core/src/access/authorization/infra/project-authorization-service.d.ts +0 -9
  26. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/ai-container-launcher.d.ts +0 -21
  27. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/create-project-runtime-session.d.ts +0 -15
  28. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/devcontainer-launcher.d.ts +0 -21
  29. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/get-project-runtime-session.d.ts +0 -13
  30. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/git-clone-service.d.ts +0 -11
  31. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/list-project-runtime-sessions.d.ts +0 -13
  32. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-contract-mapper.d.ts +0 -3
  33. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-execution-target.d.ts +0 -3
  34. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-network-metadata.d.ts +0 -15
  35. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-repo.d.ts +0 -10
  36. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/runtime-session-network-manager.d.ts +0 -14
  37. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/stop-project-runtime-session.d.ts +0 -31
  38. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/workspace-manager.d.ts +0 -10
  39. package/dist/packages/core/src/agent-sessions/project-runtime-session/contracts/project-runtime-session-contracts.d.ts +0 -62
  40. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity-helpers.d.ts +0 -12
  41. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity.d.ts +0 -99
  42. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-execution-target.d.ts +0 -16
  43. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/devcontainer-cli-launcher.d.ts +0 -6
  44. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/docker-ai-container-launcher.d.ts +0 -8
  45. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/drizzle-project-runtime-session-repo.d.ts +0 -11
  46. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/git-cli-clone-service.d.ts +0 -4
  47. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-jsonc.d.ts +0 -4
  48. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager-support.d.ts +0 -42
  49. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager.d.ts +0 -24
  50. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-working-directory.d.ts +0 -5
  51. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-docker-runtime-session-network-manager.d.ts +0 -17
  52. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-workspace-manager.d.ts +0 -11
  53. package/dist/packages/core/src/agent-sessions/runtime-command/application/complete-claimed-runtime-command.d.ts +0 -13
  54. package/dist/packages/core/src/agent-sessions/runtime-command/application/create-runtime-command.d.ts +0 -19
  55. package/dist/packages/core/src/agent-sessions/runtime-command/application/fail-claimed-runtime-command.d.ts +0 -13
  56. package/dist/packages/core/src/agent-sessions/runtime-command/application/interrupt-claimed-runtime-command.d.ts +0 -13
  57. package/dist/packages/core/src/agent-sessions/runtime-command/application/run-runtime-command-locally.d.ts +0 -27
  58. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-claim-helpers.d.ts +0 -1
  59. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-contract-mapper.d.ts +0 -3
  60. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-output-summary.d.ts +0 -4
  61. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-repo.d.ts +0 -20
  62. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-runner.d.ts +0 -25
  63. package/dist/packages/core/src/agent-sessions/runtime-command/contracts/runtime-command-contracts.d.ts +0 -194
  64. package/dist/packages/core/src/agent-sessions/runtime-command/domain/runtime-command-entity.d.ts +0 -111
  65. package/dist/packages/core/src/agent-sessions/runtime-command/infra/drizzle-runtime-command-repo.d.ts +0 -20
  66. package/dist/packages/core/src/agent-sessions/runtime-command/infra/local-runtime-command-runner.d.ts +0 -25
  67. package/dist/packages/core/src/agent-sessions/runtime-environment/domain/runtime-environment.d.ts +0 -12
  68. package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-publisher.d.ts +0 -24
  69. package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-repo.d.ts +0 -17
  70. package/dist/packages/core/src/agent-sessions/runtime-operation-event/domain/runtime-operation-event.d.ts +0 -35
  71. package/dist/packages/core/src/agent-sessions/runtime-operation-event/infra/file-runtime-operation-event-repo.d.ts +0 -25
  72. package/dist/packages/core/src/agent-sessions/runtime-service/application/create-runtime-service.d.ts +0 -19
  73. package/dist/packages/core/src/agent-sessions/runtime-service/application/get-runtime-service.d.ts +0 -13
  74. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-contract-mapper.d.ts +0 -3
  75. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-output-summary.d.ts +0 -10
  76. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-repo.d.ts +0 -9
  77. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-runner.d.ts +0 -23
  78. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-session-service-exposure-provider.d.ts +0 -19
  79. package/dist/packages/core/src/agent-sessions/runtime-service/application/start-runtime-service-locally.d.ts +0 -23
  80. package/dist/packages/core/src/agent-sessions/runtime-service/application/stop-runtime-service.d.ts +0 -34
  81. package/dist/packages/core/src/agent-sessions/runtime-service/contracts/runtime-service-contracts.d.ts +0 -140
  82. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-access-point.d.ts +0 -12
  83. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-entity.d.ts +0 -76
  84. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-healthcheck.d.ts +0 -20
  85. package/dist/packages/core/src/agent-sessions/runtime-service/infra/drizzle-runtime-service-repo.d.ts +0 -9
  86. package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-readiness-probe.d.ts +0 -42
  87. package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-runner.d.ts +0 -32
  88. package/dist/packages/core/src/common/contracts/json.d.ts +0 -9
  89. package/dist/packages/core/src/common/contracts/opencode-mcp.d.ts +0 -73
  90. package/dist/packages/core/src/common/contracts/uuid-v7.d.ts +0 -8
  91. package/dist/packages/core/src/lib/db/db-executor.d.ts +0 -4
  92. package/dist/packages/core/src/lib/db/index.d.ts +0 -7
  93. package/dist/packages/core/src/lib/db/schema.d.ts +0 -4950
  94. package/dist/packages/core/src/lib/di.d.ts +0 -113
  95. package/dist/packages/core/src/lib/domain-events/domain-event.d.ts +0 -12
  96. package/dist/packages/core/src/lib/domain-events/in-memory-domain-event-dispatcher.d.ts +0 -7
  97. package/dist/packages/core/src/lib/errors.d.ts +0 -37
  98. package/dist/packages/core/src/lib/logger.d.ts +0 -7
  99. package/dist/packages/core/src/lib/result.d.ts +0 -15
  100. package/dist/packages/core/src/lib/time-provider.d.ts +0 -5
  101. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/add-linear-pipeline-step-definition.d.ts +0 -13
  102. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/archive-linear-pipeline-definition.d.ts +0 -13
  103. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/create-linear-pipeline-definition.d.ts +0 -11
  104. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/get-linear-pipeline-definition.d.ts +0 -11
  105. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-contract-mapper.d.ts +0 -3
  106. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo.d.ts +0 -9
  107. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/list-linear-pipeline-definitions.d.ts +0 -9
  108. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/remove-linear-pipeline-step-definition.d.ts +0 -13
  109. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/set-linear-pipeline-step-advancement-policy-definition.d.ts +0 -13
  110. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-definition.d.ts +0 -13
  111. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-step-definition.d.ts +0 -13
  112. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/contracts/linear-pipeline-definition-contracts.d.ts +0 -357
  113. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/domain/linear-pipeline-definition-entity.d.ts +0 -36
  114. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-advancement-policy-definition-entity.d.ts +0 -42
  115. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-definition-entity.d.ts +0 -42
  116. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/infra/drizzle-linear-pipeline-definition-repo.d.ts +0 -11
  117. package/dist/packages/core/src/pipeline-definitions/step-definition/application/archive-step-definition.d.ts +0 -13
  118. package/dist/packages/core/src/pipeline-definitions/step-definition/application/create-step-definition.d.ts +0 -11
  119. package/dist/packages/core/src/pipeline-definitions/step-definition/application/get-step-definition.d.ts +0 -11
  120. package/dist/packages/core/src/pipeline-definitions/step-definition/application/list-step-definitions.d.ts +0 -9
  121. package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-contract-mapper.d.ts +0 -3
  122. package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-repo.d.ts +0 -9
  123. package/dist/packages/core/src/pipeline-definitions/step-definition/application/update-step-definition.d.ts +0 -13
  124. package/dist/packages/core/src/pipeline-definitions/step-definition/contracts/step-definition-contracts.d.ts +0 -281
  125. package/dist/packages/core/src/pipeline-definitions/step-definition/domain/step-definition-entity.d.ts +0 -53
  126. package/dist/packages/core/src/pipeline-definitions/step-definition/entities/computed-signal-definition-entity.d.ts +0 -31
  127. package/dist/packages/core/src/pipeline-definitions/step-definition/entities/signal-extractor-definition-entity.d.ts +0 -30
  128. package/dist/packages/core/src/pipeline-definitions/step-definition/infra/drizzle-step-definition-repo.d.ts +0 -11
  129. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/get-step-definition-template.d.ts +0 -8
  130. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/instantiate-step-definition-template.d.ts +0 -15
  131. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/list-step-definition-templates.d.ts +0 -5
  132. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/step-definition-template-repo.d.ts +0 -7
  133. package/dist/packages/core/src/pipeline-definitions/step-definition-template/contracts/step-definition-template-contracts.d.ts +0 -98
  134. package/dist/packages/core/src/pipeline-definitions/step-definition-template/domain/step-definition-template-entity.d.ts +0 -37
  135. package/dist/packages/core/src/pipeline-definitions/step-definition-template/infra/drizzle-step-definition-template-repo.d.ts +0 -9
  136. package/dist/packages/core/src/pipeline-executions/feedback-request/application/create-feedback-requests-on-step-signal-created.d.ts +0 -9
  137. package/dist/packages/core/src/pipeline-executions/feedback-request/application/decline-feedback-request.d.ts +0 -13
  138. package/dist/packages/core/src/pipeline-executions/feedback-request/application/feedback-request-repo.d.ts +0 -8
  139. package/dist/packages/core/src/pipeline-executions/feedback-request/application/list-feedback-requests-by-step-signal.d.ts +0 -14
  140. package/dist/packages/core/src/pipeline-executions/feedback-request/contracts/feedback-request-contracts.d.ts +0 -21
  141. package/dist/packages/core/src/pipeline-executions/feedback-request/domain/feedback-request-entity.d.ts +0 -29
  142. package/dist/packages/core/src/pipeline-executions/feedback-request/infra/drizzle-feedback-request-repo.d.ts +0 -10
  143. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/accept-linear-pipeline-step-run.d.ts +0 -19
  144. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/apply-linear-pipeline-step-result-and-advance.d.ts +0 -21
  145. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/cancel-linear-pipeline-execution.d.ts +0 -15
  146. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-execution.d.ts +0 -15
  147. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-step-run-attempt.d.ts +0 -17
  148. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/get-linear-pipeline-execution.d.ts +0 -15
  149. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-contract-mapper.d.ts +0 -3
  150. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-helpers.d.ts +0 -52
  151. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-repo.d.ts +0 -15
  152. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-step-input-resolution.d.ts +0 -5
  153. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions-by-definition.d.ts +0 -15
  154. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions.d.ts +0 -13
  155. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/mark-linear-pipeline-step-run-attempt-running.d.ts +0 -15
  156. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/project-linear-pipeline-executions.d.ts +0 -10
  157. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/queue-first-linear-pipeline-step-run.d.ts +0 -19
  158. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/retrigger-linear-pipeline-step-run.d.ts +0 -17
  159. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/start-linear-pipeline-execution.d.ts +0 -19
  160. package/dist/packages/core/src/pipeline-executions/pipeline-execution/contracts/linear-pipeline-execution-contracts.d.ts +0 -330
  161. package/dist/packages/core/src/pipeline-executions/pipeline-execution/domain/linear-pipeline-execution-entity.d.ts +0 -43
  162. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-execution-event-entity.d.ts +0 -25
  163. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-evaluation-entity.d.ts +0 -45
  164. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-attempt-entity.d.ts +0 -24
  165. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-entity.d.ts +0 -63
  166. package/dist/packages/core/src/pipeline-executions/pipeline-execution/infra/drizzle-linear-pipeline-execution-repo.d.ts +0 -19
  167. package/dist/packages/core/src/pipeline-executions/step-execution/application/add-step-execution-result.d.ts +0 -13
  168. package/dist/packages/core/src/pipeline-executions/step-execution/application/claim-step-executions.d.ts +0 -19
  169. package/dist/packages/core/src/pipeline-executions/step-execution/application/complete-claimed-step-execution.d.ts +0 -39
  170. package/dist/packages/core/src/pipeline-executions/step-execution/application/create-step-execution.d.ts +0 -11
  171. package/dist/packages/core/src/pipeline-executions/step-execution/application/extract-step-execution-signals.d.ts +0 -17
  172. package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution-worker-context.d.ts +0 -17
  173. package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution.d.ts +0 -13
  174. package/dist/packages/core/src/pipeline-executions/step-execution/application/heartbeat-step-execution-claim.d.ts +0 -21
  175. package/dist/packages/core/src/pipeline-executions/step-execution/application/list-step-executions-by-project.d.ts +0 -11
  176. package/dist/packages/core/src/pipeline-executions/step-execution/application/load-status-adjusted-step-executions.d.ts +0 -31
  177. package/dist/packages/core/src/pipeline-executions/step-execution/application/mark-step-execution-running.d.ts +0 -13
  178. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-claim-helpers.d.ts +0 -13
  179. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-contract-mapper.d.ts +0 -7
  180. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-repo.d.ts +0 -29
  181. package/dist/packages/core/src/pipeline-executions/step-execution/contracts/step-execution-contracts.d.ts +0 -325
  182. package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-execution-entity.d.ts +0 -61
  183. package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-signal-created.domain-event.d.ts +0 -18
  184. package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-execution-result-entity.d.ts +0 -32
  185. package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-signal-entity.d.ts +0 -36
  186. package/dist/packages/core/src/pipeline-executions/step-execution/infra/drizzle-step-execution-repo.d.ts +0 -31
  187. package/dist/packages/core/src/projects/project/application/create-project.d.ts +0 -13
  188. package/dist/packages/core/src/projects/project/application/default-pipelines/default-create-failing-test-step-definition.d.ts +0 -4
  189. package/dist/packages/core/src/projects/project/application/default-pipelines/default-description-quality-step-definition.d.ts +0 -4
  190. package/dist/packages/core/src/projects/project/application/default-pipelines/default-fix-failing-test-step-definition.d.ts +0 -4
  191. package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-conventions.d.ts +0 -9
  192. package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-definitions.d.ts +0 -7
  193. package/dist/packages/core/src/projects/project/application/default-pipelines/default-step-definitions.d.ts +0 -8
  194. package/dist/packages/core/src/projects/project/application/default-pipelines/default-web-repro-playwright-step-definition.d.ts +0 -4
  195. package/dist/packages/core/src/projects/project/application/get-project.d.ts +0 -11
  196. package/dist/packages/core/src/projects/project/application/list-projects.d.ts +0 -9
  197. package/dist/packages/core/src/projects/project/application/project-authorization.d.ts +0 -4
  198. package/dist/packages/core/src/projects/project/application/project-contract-mapper.d.ts +0 -3
  199. package/dist/packages/core/src/projects/project/application/project-repo.d.ts +0 -9
  200. package/dist/packages/core/src/projects/project/application/seed-default-pipelines-on-project-created.d.ts +0 -12
  201. package/dist/packages/core/src/projects/project/application/update-project-membership.d.ts +0 -13
  202. package/dist/packages/core/src/projects/project/contracts/project-contracts.d.ts +0 -37
  203. package/dist/packages/core/src/projects/project/domain/project-created.domain-event.d.ts +0 -13
  204. package/dist/packages/core/src/projects/project/domain/project-entity.d.ts +0 -31
  205. package/dist/packages/core/src/projects/project/domain/project-git-url.d.ts +0 -7
  206. package/dist/packages/core/src/projects/project/domain/project-membership.d.ts +0 -21
  207. package/dist/packages/core/src/projects/project/domain/project-permission.d.ts +0 -7
  208. package/dist/packages/core/src/projects/project/infra/drizzle-project-repo.d.ts +0 -11
  209. package/dist/packages/core/src/projects/project-context/application/create-project-context-entry.d.ts +0 -11
  210. package/dist/packages/core/src/projects/project-context/application/delete-project-context-entry.d.ts +0 -11
  211. package/dist/packages/core/src/projects/project-context/application/list-project-context-entries.d.ts +0 -12
  212. package/dist/packages/core/src/projects/project-context/application/project-context-entry-repo.d.ts +0 -8
  213. package/dist/packages/core/src/projects/project-context/contracts/project-context-entry-contracts.d.ts +0 -46
  214. package/dist/packages/core/src/projects/project-context/domain/project-context-entry-entity.d.ts +0 -27
  215. package/dist/packages/core/src/projects/project-context/infra/drizzle-project-context-entry-repo.d.ts +0 -10
  216. package/dist/packages/core/src/projects/project-opencode-config/application/project-opencode-runtime-metadata.d.ts +0 -17
  217. package/dist/packages/core/src/work-items/work-item/application/create-work-item.d.ts +0 -16
  218. package/dist/packages/core/src/work-items/work-item/application/delete-work-items.d.ts +0 -14
  219. package/dist/packages/core/src/work-items/work-item/application/get-work-items.d.ts +0 -14
  220. package/dist/packages/core/src/work-items/work-item/application/list-work-items-by-project.d.ts +0 -13
  221. package/dist/packages/core/src/work-items/work-item/application/upsert-work-item.d.ts +0 -14
  222. package/dist/packages/core/src/work-items/work-item/application/work-item-contract-mapper.d.ts +0 -4
  223. package/dist/packages/core/src/work-items/work-item/application/work-item-repo.d.ts +0 -27
  224. package/dist/packages/core/src/work-items/work-item/contracts/work-item-contracts.d.ts +0 -119
  225. package/dist/packages/core/src/work-items/work-item/domain/date-utils.d.ts +0 -1
  226. package/dist/packages/core/src/work-items/work-item/domain/work-item-entity.d.ts +0 -58
  227. package/dist/packages/core/src/work-items/work-item/domain/work-item-field-value.d.ts +0 -3
  228. package/dist/packages/core/src/work-items/work-item/domain/work-item-id.d.ts +0 -6
  229. package/dist/packages/core/src/work-items/work-item/domain/work-item-platform.d.ts +0 -2
  230. package/dist/packages/core/src/work-items/work-item/domain/work-item-projection-fingerprint-entity.d.ts +0 -18
  231. package/dist/packages/core/src/work-items/work-item/infra/drizzle-work-item-repo.d.ts +0 -25
  232. package/dist/packages/sdks/js/script/build.d.ts +0 -1
  233. package/dist/packages/sdks/js/src/index.d.ts +0 -1
  234. package/dist/packages/sdks/js/test/define-step.test.d.ts +0 -1
  235. /package/dist/{packages/sdks/js/src/client.d.ts → client.d.ts} +0 -0
  236. /package/dist/{packages/sdks/js/src/define-step.d.ts → define-step.d.ts} +0 -0
  237. /package/dist/{packages/sdks/js/src/step-definitions-client.d.ts → step-definitions-client.d.ts} +0 -0
  238. /package/dist/{packages/sdks/js/src/step-execution-plane-client.d.ts → step-execution-plane-client.d.ts} +0 -0
  239. /package/dist/{packages/sdks/js/src/treaty.d.ts → treaty.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,73 +0,0 @@
1
- import { z } from "zod";
2
- export declare const openCodeMcpLocalConfigSchema: z.ZodObject<{
3
- type: z.ZodLiteral<"local">;
4
- command: z.ZodArray<z.ZodString>;
5
- environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6
- enabled: z.ZodOptional<z.ZodBoolean>;
7
- timeout: z.ZodOptional<z.ZodInt>;
8
- }, z.core.$strict>;
9
- export declare const openCodeMcpOAuthConfigSchema: z.ZodObject<{
10
- clientId: z.ZodOptional<z.ZodString>;
11
- clientSecret: z.ZodOptional<z.ZodString>;
12
- scope: z.ZodOptional<z.ZodString>;
13
- redirectUri: z.ZodOptional<z.ZodString>;
14
- }, z.core.$strict>;
15
- export declare const openCodeMcpRemoteConfigSchema: z.ZodObject<{
16
- type: z.ZodLiteral<"remote">;
17
- url: z.ZodString;
18
- enabled: z.ZodOptional<z.ZodBoolean>;
19
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20
- oauth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
21
- clientId: z.ZodOptional<z.ZodString>;
22
- clientSecret: z.ZodOptional<z.ZodString>;
23
- scope: z.ZodOptional<z.ZodString>;
24
- redirectUri: z.ZodOptional<z.ZodString>;
25
- }, z.core.$strict>, z.ZodLiteral<false>]>>;
26
- timeout: z.ZodOptional<z.ZodInt>;
27
- }, z.core.$strict>;
28
- export declare const openCodeMcpEnabledOverrideSchema: z.ZodObject<{
29
- enabled: z.ZodBoolean;
30
- }, z.core.$strict>;
31
- export declare const openCodeMcpServerConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
32
- type: z.ZodLiteral<"local">;
33
- command: z.ZodArray<z.ZodString>;
34
- environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
35
- enabled: z.ZodOptional<z.ZodBoolean>;
36
- timeout: z.ZodOptional<z.ZodInt>;
37
- }, z.core.$strict>, z.ZodObject<{
38
- type: z.ZodLiteral<"remote">;
39
- url: z.ZodString;
40
- enabled: z.ZodOptional<z.ZodBoolean>;
41
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
42
- oauth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
43
- clientId: z.ZodOptional<z.ZodString>;
44
- clientSecret: z.ZodOptional<z.ZodString>;
45
- scope: z.ZodOptional<z.ZodString>;
46
- redirectUri: z.ZodOptional<z.ZodString>;
47
- }, z.core.$strict>, z.ZodLiteral<false>]>>;
48
- timeout: z.ZodOptional<z.ZodInt>;
49
- }, z.core.$strict>, z.ZodObject<{
50
- enabled: z.ZodBoolean;
51
- }, z.core.$strict>]>;
52
- export declare const openCodeMcpServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
53
- type: z.ZodLiteral<"local">;
54
- command: z.ZodArray<z.ZodString>;
55
- environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
56
- enabled: z.ZodOptional<z.ZodBoolean>;
57
- timeout: z.ZodOptional<z.ZodInt>;
58
- }, z.core.$strict>, z.ZodObject<{
59
- type: z.ZodLiteral<"remote">;
60
- url: z.ZodString;
61
- enabled: z.ZodOptional<z.ZodBoolean>;
62
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
63
- oauth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
64
- clientId: z.ZodOptional<z.ZodString>;
65
- clientSecret: z.ZodOptional<z.ZodString>;
66
- scope: z.ZodOptional<z.ZodString>;
67
- redirectUri: z.ZodOptional<z.ZodString>;
68
- }, z.core.$strict>, z.ZodLiteral<false>]>>;
69
- timeout: z.ZodOptional<z.ZodInt>;
70
- }, z.core.$strict>, z.ZodObject<{
71
- enabled: z.ZodBoolean;
72
- }, z.core.$strict>]>>;
73
- export type OpenCodeMcpServers = z.infer<typeof openCodeMcpServersSchema>;
@@ -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>;