@boboddy/sdk 0.0.7-alpha → 0.0.8-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/dist/apps/api/src/app.d.ts +1371 -575
  2. package/dist/apps/api/src/http/routes/step-definition-templates.d.ts +477 -0
  3. package/dist/apps/api/src/http/routes/step-executions.d.ts +1 -0
  4. package/dist/packages/core/src/access/authorization/application/authorization-service.d.ts +12 -0
  5. package/dist/packages/core/src/access/authorization/infra/project-authorization-service.d.ts +7 -0
  6. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/ai-container-launcher.d.ts +21 -0
  7. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/create-project-runtime-session.d.ts +13 -0
  8. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/devcontainer-launcher.d.ts +21 -0
  9. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/get-project-runtime-session.d.ts +11 -0
  10. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/git-clone-service.d.ts +11 -0
  11. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/list-project-runtime-sessions.d.ts +11 -0
  12. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-contract-mapper.d.ts +3 -0
  13. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-execution-target.d.ts +3 -0
  14. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-network-metadata.d.ts +15 -0
  15. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-repo.d.ts +10 -0
  16. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/runtime-session-network-manager.d.ts +14 -0
  17. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/stop-project-runtime-session.d.ts +29 -0
  18. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/workspace-manager.d.ts +10 -0
  19. package/dist/packages/core/src/agent-sessions/project-runtime-session/contracts/project-runtime-session-contracts.d.ts +62 -0
  20. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity-helpers.d.ts +12 -0
  21. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity.d.ts +99 -0
  22. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-execution-target.d.ts +16 -0
  23. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/devcontainer-cli-launcher.d.ts +6 -0
  24. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/docker-ai-container-launcher.d.ts +8 -0
  25. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/drizzle-project-runtime-session-repo.d.ts +11 -0
  26. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/git-cli-clone-service.d.ts +4 -0
  27. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-jsonc.d.ts +4 -0
  28. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager-support.d.ts +42 -0
  29. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager.d.ts +24 -0
  30. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-working-directory.d.ts +5 -0
  31. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-docker-runtime-session-network-manager.d.ts +17 -0
  32. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-workspace-manager.d.ts +11 -0
  33. package/dist/packages/core/src/agent-sessions/runtime-command/application/complete-claimed-runtime-command.d.ts +11 -0
  34. package/dist/packages/core/src/agent-sessions/runtime-command/application/create-runtime-command.d.ts +17 -0
  35. package/dist/packages/core/src/agent-sessions/runtime-command/application/fail-claimed-runtime-command.d.ts +11 -0
  36. package/dist/packages/core/src/agent-sessions/runtime-command/application/interrupt-claimed-runtime-command.d.ts +11 -0
  37. package/dist/packages/core/src/agent-sessions/runtime-command/application/run-runtime-command-locally.d.ts +26 -0
  38. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-claim-helpers.d.ts +1 -0
  39. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-contract-mapper.d.ts +3 -0
  40. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-output-summary.d.ts +4 -0
  41. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-repo.d.ts +20 -0
  42. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-runner.d.ts +25 -0
  43. package/dist/packages/core/src/agent-sessions/runtime-command/contracts/runtime-command-contracts.d.ts +194 -0
  44. package/dist/packages/core/src/agent-sessions/runtime-command/domain/runtime-command-entity.d.ts +111 -0
  45. package/dist/packages/core/src/agent-sessions/runtime-command/infra/drizzle-runtime-command-repo.d.ts +20 -0
  46. package/dist/packages/core/src/agent-sessions/runtime-command/infra/local-runtime-command-runner.d.ts +25 -0
  47. package/dist/packages/core/src/agent-sessions/runtime-environment/domain/runtime-environment.d.ts +12 -0
  48. package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-publisher.d.ts +24 -0
  49. package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-repo.d.ts +17 -0
  50. package/dist/packages/core/src/agent-sessions/runtime-operation-event/domain/runtime-operation-event.d.ts +35 -0
  51. package/dist/packages/core/src/agent-sessions/runtime-operation-event/infra/file-runtime-operation-event-repo.d.ts +25 -0
  52. package/dist/packages/core/src/agent-sessions/runtime-service/application/create-runtime-service.d.ts +17 -0
  53. package/dist/packages/core/src/agent-sessions/runtime-service/application/get-runtime-service.d.ts +11 -0
  54. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-contract-mapper.d.ts +3 -0
  55. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-output-summary.d.ts +10 -0
  56. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-repo.d.ts +9 -0
  57. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-runner.d.ts +23 -0
  58. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-session-service-exposure-provider.d.ts +19 -0
  59. package/dist/packages/core/src/agent-sessions/runtime-service/application/start-runtime-service-locally.d.ts +21 -0
  60. package/dist/packages/core/src/agent-sessions/runtime-service/application/stop-runtime-service.d.ts +32 -0
  61. package/dist/packages/core/src/agent-sessions/runtime-service/contracts/runtime-service-contracts.d.ts +140 -0
  62. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-access-point.d.ts +12 -0
  63. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-entity.d.ts +76 -0
  64. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-healthcheck.d.ts +20 -0
  65. package/dist/packages/core/src/agent-sessions/runtime-service/infra/drizzle-runtime-service-repo.d.ts +9 -0
  66. package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-readiness-probe.d.ts +42 -0
  67. package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-runner.d.ts +32 -0
  68. package/dist/packages/core/src/common/contracts/json.d.ts +9 -0
  69. package/dist/packages/core/src/common/contracts/opencode-mcp.d.ts +73 -0
  70. package/dist/packages/core/src/common/contracts/uuid-v7.d.ts +8 -0
  71. package/dist/packages/core/src/lib/db/db-executor.d.ts +4 -0
  72. package/dist/packages/core/src/lib/db/index.d.ts +7 -0
  73. package/dist/packages/core/src/lib/db/schema.d.ts +4950 -0
  74. package/dist/packages/core/src/lib/di.d.ts +112 -0
  75. package/dist/packages/core/src/lib/domain-events/domain-event.d.ts +12 -0
  76. package/dist/packages/core/src/lib/domain-events/in-memory-domain-event-dispatcher.d.ts +7 -0
  77. package/dist/packages/core/src/lib/errors.d.ts +36 -0
  78. package/dist/packages/core/src/lib/logger.d.ts +7 -0
  79. package/dist/packages/core/src/lib/time-provider.d.ts +5 -0
  80. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/add-linear-pipeline-step-definition.d.ts +9 -0
  81. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/archive-linear-pipeline-definition.d.ts +9 -0
  82. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/create-linear-pipeline-definition.d.ts +9 -0
  83. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/get-linear-pipeline-definition.d.ts +7 -0
  84. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-contract-mapper.d.ts +3 -0
  85. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo.d.ts +9 -0
  86. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/list-linear-pipeline-definitions.d.ts +7 -0
  87. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/remove-linear-pipeline-step-definition.d.ts +9 -0
  88. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/set-linear-pipeline-step-advancement-policy-definition.d.ts +9 -0
  89. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-definition.d.ts +9 -0
  90. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-step-definition.d.ts +9 -0
  91. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/contracts/linear-pipeline-definition-contracts.d.ts +357 -0
  92. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/domain/linear-pipeline-definition-entity.d.ts +36 -0
  93. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-advancement-policy-definition-entity.d.ts +42 -0
  94. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-definition-entity.d.ts +42 -0
  95. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/infra/drizzle-linear-pipeline-definition-repo.d.ts +11 -0
  96. package/dist/packages/core/src/pipeline-definitions/step-definition/application/archive-step-definition.d.ts +9 -0
  97. package/dist/packages/core/src/pipeline-definitions/step-definition/application/create-step-definition.d.ts +9 -0
  98. package/dist/packages/core/src/pipeline-definitions/step-definition/application/get-step-definition.d.ts +7 -0
  99. package/dist/packages/core/src/pipeline-definitions/step-definition/application/list-step-definitions.d.ts +7 -0
  100. package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-contract-mapper.d.ts +3 -0
  101. package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-repo.d.ts +9 -0
  102. package/dist/packages/core/src/pipeline-definitions/step-definition/application/update-step-definition.d.ts +9 -0
  103. package/dist/packages/core/src/pipeline-definitions/step-definition/contracts/step-definition-contracts.d.ts +281 -0
  104. package/dist/packages/core/src/pipeline-definitions/step-definition/domain/step-definition-entity.d.ts +53 -0
  105. package/dist/packages/core/src/pipeline-definitions/step-definition/entities/computed-signal-definition-entity.d.ts +31 -0
  106. package/dist/packages/core/src/pipeline-definitions/step-definition/entities/signal-extractor-definition-entity.d.ts +30 -0
  107. package/dist/packages/core/src/pipeline-definitions/step-definition/infra/drizzle-step-definition-repo.d.ts +11 -0
  108. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/get-step-definition-template.d.ts +6 -0
  109. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/instantiate-step-definition-template.d.ts +11 -0
  110. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/list-step-definition-templates.d.ts +5 -0
  111. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/step-definition-template-repo.d.ts +7 -0
  112. package/dist/packages/core/src/pipeline-definitions/step-definition-template/contracts/step-definition-template-contracts.d.ts +98 -0
  113. package/dist/packages/core/src/pipeline-definitions/step-definition-template/domain/step-definition-template-entity.d.ts +37 -0
  114. package/dist/packages/core/src/pipeline-definitions/step-definition-template/infra/drizzle-step-definition-template-repo.d.ts +9 -0
  115. package/dist/packages/core/src/pipeline-executions/feedback-request/application/create-feedback-requests-on-step-signal-created.d.ts +9 -0
  116. package/dist/packages/core/src/pipeline-executions/feedback-request/application/decline-feedback-request.d.ts +14 -0
  117. package/dist/packages/core/src/pipeline-executions/feedback-request/application/feedback-request-repo.d.ts +8 -0
  118. package/dist/packages/core/src/pipeline-executions/feedback-request/application/list-feedback-requests-by-step-signal.d.ts +15 -0
  119. package/dist/packages/core/src/pipeline-executions/feedback-request/contracts/feedback-request-contracts.d.ts +21 -0
  120. package/dist/packages/core/src/pipeline-executions/feedback-request/domain/feedback-request-entity.d.ts +29 -0
  121. package/dist/packages/core/src/pipeline-executions/feedback-request/infra/drizzle-feedback-request-repo.d.ts +10 -0
  122. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/accept-linear-pipeline-step-run.d.ts +15 -0
  123. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/apply-linear-pipeline-step-result-and-advance.d.ts +17 -0
  124. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/cancel-linear-pipeline-execution.d.ts +11 -0
  125. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-execution.d.ts +11 -0
  126. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-step-run-attempt.d.ts +13 -0
  127. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/get-linear-pipeline-execution.d.ts +11 -0
  128. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-contract-mapper.d.ts +3 -0
  129. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-helpers.d.ts +52 -0
  130. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-repo.d.ts +15 -0
  131. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-step-input-resolution.d.ts +5 -0
  132. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions-by-definition.d.ts +11 -0
  133. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions.d.ts +11 -0
  134. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/mark-linear-pipeline-step-run-attempt-running.d.ts +11 -0
  135. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/project-linear-pipeline-executions.d.ts +10 -0
  136. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/queue-first-linear-pipeline-step-run.d.ts +15 -0
  137. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/retrigger-linear-pipeline-step-run.d.ts +13 -0
  138. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/start-linear-pipeline-execution.d.ts +15 -0
  139. package/dist/packages/core/src/pipeline-executions/pipeline-execution/contracts/linear-pipeline-execution-contracts.d.ts +330 -0
  140. package/dist/packages/core/src/pipeline-executions/pipeline-execution/domain/linear-pipeline-execution-entity.d.ts +43 -0
  141. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-execution-event-entity.d.ts +25 -0
  142. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-evaluation-entity.d.ts +45 -0
  143. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-attempt-entity.d.ts +24 -0
  144. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-entity.d.ts +63 -0
  145. package/dist/packages/core/src/pipeline-executions/pipeline-execution/infra/drizzle-linear-pipeline-execution-repo.d.ts +19 -0
  146. package/dist/packages/core/src/pipeline-executions/step-execution/application/add-step-execution-result.d.ts +9 -0
  147. package/dist/packages/core/src/pipeline-executions/step-execution/application/claim-step-executions.d.ts +17 -0
  148. package/dist/packages/core/src/pipeline-executions/step-execution/application/complete-claimed-step-execution.d.ts +35 -0
  149. package/dist/packages/core/src/pipeline-executions/step-execution/application/create-step-execution.d.ts +9 -0
  150. package/dist/packages/core/src/pipeline-executions/step-execution/application/extract-step-execution-signals.d.ts +13 -0
  151. package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution-worker-context.d.ts +13 -0
  152. package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution.d.ts +9 -0
  153. package/dist/packages/core/src/pipeline-executions/step-execution/application/heartbeat-step-execution-claim.d.ts +17 -0
  154. package/dist/packages/core/src/pipeline-executions/step-execution/application/list-step-executions-by-project.d.ts +9 -0
  155. package/dist/packages/core/src/pipeline-executions/step-execution/application/load-status-adjusted-step-executions.d.ts +31 -0
  156. package/dist/packages/core/src/pipeline-executions/step-execution/application/mark-step-execution-running.d.ts +9 -0
  157. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-claim-helpers.d.ts +13 -0
  158. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-contract-mapper.d.ts +7 -0
  159. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-repo.d.ts +29 -0
  160. package/dist/packages/core/src/pipeline-executions/step-execution/contracts/step-execution-contracts.d.ts +325 -0
  161. package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-execution-entity.d.ts +61 -0
  162. package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-signal-created.domain-event.d.ts +18 -0
  163. package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-execution-result-entity.d.ts +32 -0
  164. package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-signal-entity.d.ts +36 -0
  165. package/dist/packages/core/src/pipeline-executions/step-execution/infra/drizzle-step-execution-repo.d.ts +31 -0
  166. package/dist/packages/core/src/projects/project/application/create-project.d.ts +13 -0
  167. package/dist/packages/core/src/projects/project/application/default-pipelines/default-create-failing-test-step-definition.d.ts +4 -0
  168. package/dist/packages/core/src/projects/project/application/default-pipelines/default-description-quality-step-definition.d.ts +4 -0
  169. package/dist/packages/core/src/projects/project/application/default-pipelines/default-fix-failing-test-step-definition.d.ts +4 -0
  170. package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-conventions.d.ts +9 -0
  171. package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-definitions.d.ts +7 -0
  172. package/dist/packages/core/src/projects/project/application/default-pipelines/default-step-definitions.d.ts +8 -0
  173. package/dist/packages/core/src/projects/project/application/default-pipelines/default-web-repro-playwright-step-definition.d.ts +4 -0
  174. package/dist/packages/core/src/projects/project/application/get-project.d.ts +9 -0
  175. package/dist/packages/core/src/projects/project/application/list-projects.d.ts +9 -0
  176. package/dist/packages/core/src/projects/project/application/project-authorization.d.ts +4 -0
  177. package/dist/packages/core/src/projects/project/application/project-contract-mapper.d.ts +3 -0
  178. package/dist/packages/core/src/projects/project/application/project-repo.d.ts +9 -0
  179. package/dist/packages/core/src/projects/project/application/seed-default-pipelines-on-project-created.d.ts +12 -0
  180. package/dist/packages/core/src/projects/project/application/update-project-membership.d.ts +11 -0
  181. package/dist/packages/core/src/projects/project/contracts/project-contracts.d.ts +37 -0
  182. package/dist/packages/core/src/projects/project/domain/project-created.domain-event.d.ts +13 -0
  183. package/dist/packages/core/src/projects/project/domain/project-entity.d.ts +31 -0
  184. package/dist/packages/core/src/projects/project/domain/project-git-url.d.ts +7 -0
  185. package/dist/packages/core/src/projects/project/domain/project-membership.d.ts +21 -0
  186. package/dist/packages/core/src/projects/project/domain/project-permission.d.ts +7 -0
  187. package/dist/packages/core/src/projects/project/infra/drizzle-project-repo.d.ts +11 -0
  188. package/dist/packages/core/src/projects/project-context/application/create-project-context-entry.d.ts +13 -0
  189. package/dist/packages/core/src/projects/project-context/application/delete-project-context-entry.d.ts +10 -0
  190. package/dist/packages/core/src/projects/project-context/application/list-project-context-entries.d.ts +13 -0
  191. package/dist/packages/core/src/projects/project-context/application/project-context-entry-repo.d.ts +8 -0
  192. package/dist/packages/core/src/projects/project-context/contracts/project-context-entry-contracts.d.ts +46 -0
  193. package/dist/packages/core/src/projects/project-context/domain/project-context-entry-entity.d.ts +27 -0
  194. package/dist/packages/core/src/projects/project-context/infra/drizzle-project-context-entry-repo.d.ts +10 -0
  195. package/dist/packages/core/src/projects/project-opencode-config/application/project-opencode-runtime-metadata.d.ts +17 -0
  196. package/dist/packages/core/src/work-items/work-item/application/create-work-item.d.ts +16 -0
  197. package/dist/packages/core/src/work-items/work-item/application/delete-work-items.d.ts +14 -0
  198. package/dist/packages/core/src/work-items/work-item/application/get-work-items.d.ts +14 -0
  199. package/dist/packages/core/src/work-items/work-item/application/list-work-items-by-project.d.ts +11 -0
  200. package/dist/packages/core/src/work-items/work-item/application/upsert-work-item.d.ts +16 -0
  201. package/dist/packages/core/src/work-items/work-item/application/work-item-contract-mapper.d.ts +4 -0
  202. package/dist/packages/core/src/work-items/work-item/application/work-item-repo.d.ts +27 -0
  203. package/dist/packages/core/src/work-items/work-item/contracts/work-item-contracts.d.ts +119 -0
  204. package/dist/packages/core/src/work-items/work-item/domain/date-utils.d.ts +1 -0
  205. package/dist/packages/core/src/work-items/work-item/domain/work-item-entity.d.ts +58 -0
  206. package/dist/packages/core/src/work-items/work-item/domain/work-item-field-value.d.ts +3 -0
  207. package/dist/packages/core/src/work-items/work-item/domain/work-item-id.d.ts +6 -0
  208. package/dist/packages/core/src/work-items/work-item/domain/work-item-platform.d.ts +2 -0
  209. package/dist/packages/core/src/work-items/work-item/domain/work-item-projection-fingerprint-entity.d.ts +18 -0
  210. package/dist/packages/core/src/work-items/work-item/infra/drizzle-work-item-repo.d.ts +25 -0
  211. package/dist/packages/sdks/js/src/define-step.d.ts +72 -0
  212. package/dist/packages/sdks/js/src/step-definitions-client.d.ts +202 -0
  213. package/dist/packages/sdks/js/src/step-execution-plane-client.d.ts +1 -0
  214. package/dist/packages/sdks/js/test/define-step.test.d.ts +1 -0
  215. package/package.json +17 -2
@@ -0,0 +1,140 @@
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>;
@@ -0,0 +1,12 @@
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;
@@ -0,0 +1,76 @@
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
+ }
@@ -0,0 +1,20 @@
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;
@@ -0,0 +1,9 @@
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
+ }
@@ -0,0 +1,42 @@
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>;
@@ -0,0 +1,32 @@
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
+ }
@@ -0,0 +1,9 @@
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>;
@@ -0,0 +1,73 @@
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>;
@@ -0,0 +1,8 @@
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>>;
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,7 @@
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>;