@boboddy/sdk 0.0.11-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,39 +0,0 @@
1
- import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
- import { ResourceNotFoundError } from "@boboddy/core/lib/errors";
3
- import { Result } from "@boboddy/core/lib/result";
4
- import type { InMemoryDomainEventDispatcher } from "@boboddy/core/lib/domain-events/in-memory-domain-event-dispatcher";
5
- import type { TimeProvider } from "@boboddy/core/lib/time-provider";
6
- import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
7
- import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
8
- import type { LinearPipelineExecutionRepo } from "@boboddy/core/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-repo";
9
- import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
10
- import { type CompleteClaimedStepExecutionInput, type GetStepExecutionInput, type StepExecutionContract } from "../contracts/step-execution-contracts";
11
- import type { StepExecutionRepo } from "./step-execution-repo";
12
- export declare const completeClaimedStepExecution: (stepExecutionIdInput: GetStepExecutionInput, input: CompleteClaimedStepExecutionInput, { userAuthz, stepExecutionRepo, stepDefinitionRepo, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, timeProvider, domainEventDispatcher, dbExecutor, }: {
13
- userAuthz: UserAuthorizationService;
14
- stepExecutionRepo: StepExecutionRepo;
15
- stepDefinitionRepo: StepDefinitionRepo;
16
- linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
17
- linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
18
- timeProvider: TimeProvider;
19
- domainEventDispatcher?: InMemoryDomainEventDispatcher;
20
- dbExecutor?: DbExecutor | undefined;
21
- }) => Promise<Result<StepExecutionContract, ResourceNotFoundError>>;
22
- export declare const failTimedOutStepExecution: (stepExecutionIdInput: GetStepExecutionInput, { stepExecutionRepo, stepDefinitionRepo, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, timeProvider, domainEventDispatcher, dbExecutor, }: {
23
- stepExecutionRepo: StepExecutionRepo;
24
- stepDefinitionRepo: StepDefinitionRepo;
25
- linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
26
- linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
27
- timeProvider: TimeProvider;
28
- domainEventDispatcher?: InMemoryDomainEventDispatcher;
29
- dbExecutor?: DbExecutor | undefined;
30
- }) => Promise<Result<StepExecutionContract, ResourceNotFoundError>>;
31
- export declare const failAbandonedStepExecution: (stepExecutionIdInput: GetStepExecutionInput, { stepExecutionRepo, stepDefinitionRepo, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, timeProvider, domainEventDispatcher, dbExecutor, }: {
32
- stepExecutionRepo: StepExecutionRepo;
33
- stepDefinitionRepo: StepDefinitionRepo;
34
- linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
35
- linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
36
- timeProvider: TimeProvider;
37
- domainEventDispatcher?: InMemoryDomainEventDispatcher;
38
- dbExecutor?: DbExecutor | undefined;
39
- }) => Promise<Result<StepExecutionContract, ResourceNotFoundError>>;
@@ -1,11 +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 { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
4
- import { type CreateStepExecutionInput, type StepExecutionContract } from "../contracts/step-execution-contracts";
5
- import type { StepExecutionRepo } from "./step-execution-repo";
6
- export declare const createStepExecution: (input: CreateStepExecutionInput, { userAuthz, stepExecutionRepo, timeProvider, dbExecutor, }: {
7
- userAuthz: UserAuthorizationService;
8
- stepExecutionRepo: StepExecutionRepo;
9
- timeProvider: TimeProvider;
10
- dbExecutor?: DbExecutor | undefined;
11
- }) => Promise<StepExecutionContract>;
@@ -1,17 +0,0 @@
1
- import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
- import { CoreValidationError, ResourceNotFoundError } from "@boboddy/core/lib/errors";
3
- import { Result } from "@boboddy/core/lib/result";
4
- import type { InMemoryDomainEventDispatcher } from "@boboddy/core/lib/domain-events/in-memory-domain-event-dispatcher";
5
- import type { TimeProvider } from "@boboddy/core/lib/time-provider";
6
- import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
7
- import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
8
- import { type GetStepExecutionResultInput, type StepSignalContract } from "../contracts/step-execution-contracts";
9
- import type { StepExecutionRepo } from "./step-execution-repo";
10
- export declare const extractStepExecutionSignals: (input: GetStepExecutionResultInput, { userAuthz, stepDefinitionRepo, stepExecutionRepo, timeProvider, domainEventDispatcher, dbExecutor, }: {
11
- userAuthz?: UserAuthorizationService;
12
- stepDefinitionRepo: StepDefinitionRepo;
13
- stepExecutionRepo: StepExecutionRepo;
14
- timeProvider: TimeProvider;
15
- domainEventDispatcher?: InMemoryDomainEventDispatcher;
16
- dbExecutor?: DbExecutor | undefined;
17
- }) => Promise<Result<StepSignalContract[], ResourceNotFoundError | CoreValidationError>>;
@@ -1,17 +0,0 @@
1
- import { ResourceNotFoundError } from "@boboddy/core/lib/errors";
2
- import type { TimeProvider } from "@boboddy/core/lib/time-provider";
3
- import { Result } from "@boboddy/core/lib/result";
4
- import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
5
- import type { ProjectRepo } from "@boboddy/core/projects/project/application/project-repo";
6
- import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
7
- import type { ProjectContextEntryRepo } from "@boboddy/core/projects/project-context/application/project-context-entry-repo";
8
- import { type GetStepExecutionInput, type GetStepExecutionWorkerContextInput, type StepExecutionWorkerContextContract } from "../contracts/step-execution-contracts";
9
- import type { StepExecutionRepo } from "./step-execution-repo";
10
- export declare const getStepExecutionWorkerContext: (stepExecutionIdInput: GetStepExecutionInput, input: GetStepExecutionWorkerContextInput, { userAuthz, projectRepo, stepExecutionRepo, stepDefinitionRepo, projectContextEntryRepo, timeProvider, }: {
11
- userAuthz: UserAuthorizationService;
12
- projectRepo: ProjectRepo;
13
- stepExecutionRepo: StepExecutionRepo;
14
- stepDefinitionRepo: StepDefinitionRepo;
15
- projectContextEntryRepo: ProjectContextEntryRepo;
16
- timeProvider: TimeProvider;
17
- }) => Promise<Result<StepExecutionWorkerContextContract, ResourceNotFoundError>>;
@@ -1,13 +0,0 @@
1
- import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
- import { ResourceNotFoundError } from "@boboddy/core/lib/errors";
3
- import { Result } from "@boboddy/core/lib/result";
4
- import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
5
- import { type GetStepExecutionInput, type StepExecutionContract } from "../contracts/step-execution-contracts";
6
- import type { StepExecutionRepo } from "./step-execution-repo";
7
- import type { TimeProvider } from "@boboddy/core/lib/time-provider";
8
- export declare const getStepExecution: (input: GetStepExecutionInput, { userAuthz, stepExecutionRepo, timeProvider, dbExecutor, }: {
9
- userAuthz: UserAuthorizationService;
10
- stepExecutionRepo: StepExecutionRepo;
11
- timeProvider: TimeProvider;
12
- dbExecutor?: DbExecutor | undefined;
13
- }) => Promise<Result<StepExecutionContract, ResourceNotFoundError>>;
@@ -1,21 +0,0 @@
1
- import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
- import { ResourceNotFoundError } from "@boboddy/core/lib/errors";
3
- import { Result } from "@boboddy/core/lib/result";
4
- import type { InMemoryDomainEventDispatcher } from "@boboddy/core/lib/domain-events/in-memory-domain-event-dispatcher";
5
- import type { TimeProvider } from "@boboddy/core/lib/time-provider";
6
- import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
7
- import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
8
- import type { LinearPipelineExecutionRepo } from "@boboddy/core/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-repo";
9
- import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
10
- import { type GetStepExecutionInput, type StepExecutionClaimCommandInput, type StepExecutionContract } from "../contracts/step-execution-contracts";
11
- import type { StepExecutionRepo } from "./step-execution-repo";
12
- export declare const heartbeatStepExecutionClaim: (stepExecutionIdInput: GetStepExecutionInput, input: StepExecutionClaimCommandInput, { userAuthz, stepExecutionRepo, stepDefinitionRepo, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, timeProvider, domainEventDispatcher, dbExecutor, }: {
13
- userAuthz: UserAuthorizationService;
14
- stepExecutionRepo: StepExecutionRepo;
15
- stepDefinitionRepo: StepDefinitionRepo;
16
- linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
17
- linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
18
- timeProvider: TimeProvider;
19
- domainEventDispatcher?: InMemoryDomainEventDispatcher;
20
- dbExecutor?: DbExecutor | undefined;
21
- }) => Promise<Result<StepExecutionContract, ResourceNotFoundError>>;
@@ -1,11 +0,0 @@
1
- import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
- import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
3
- import { type ListStepExecutionsByProjectIdInput, type StepExecutionContract } from "../contracts/step-execution-contracts";
4
- import type { StepExecutionRepo } from "./step-execution-repo";
5
- import type { TimeProvider } from "@boboddy/core/lib/time-provider";
6
- export declare const listStepExecutionsByProjectId: (input: ListStepExecutionsByProjectIdInput, { userAuthz, stepExecutionRepo, timeProvider, dbExecutor, }: {
7
- userAuthz: UserAuthorizationService;
8
- stepExecutionRepo: StepExecutionRepo;
9
- timeProvider: TimeProvider;
10
- dbExecutor?: DbExecutor | undefined;
11
- }) => Promise<StepExecutionContract[]>;
@@ -1,31 +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 { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
4
- import type { StepExecutionEntity } from "../domain/step-execution-entity";
5
- import type { StepExecutionRepo } from "./step-execution-repo";
6
- export declare const loadStatusAdjustedStepExecution: (stepExecutionId: UuidV7, { stepExecutionRepo, timeProvider, dbExecutor, }: {
7
- stepExecutionRepo: StepExecutionRepo;
8
- timeProvider: TimeProvider;
9
- dbExecutor?: DbExecutor | undefined;
10
- }) => Promise<StepExecutionEntity | null>;
11
- export declare const loadStatusAdjustedStepExecutionsByIds: (stepExecutionIds: UuidV7[], { stepExecutionRepo, timeProvider, dbExecutor, }: {
12
- stepExecutionRepo: StepExecutionRepo;
13
- timeProvider: TimeProvider;
14
- dbExecutor?: DbExecutor | undefined;
15
- }) => Promise<(StepExecutionEntity | null)[]>;
16
- export declare const loadStatusAdjustedStepExecutionByResultId: (stepExecutionResultId: UuidV7, { stepExecutionRepo, timeProvider, dbExecutor, }: {
17
- stepExecutionRepo: StepExecutionRepo;
18
- timeProvider: TimeProvider;
19
- dbExecutor?: DbExecutor | undefined;
20
- }) => Promise<StepExecutionEntity | null>;
21
- export declare const listStatusAdjustedStepExecutionsByProjectId: (projectId: UuidV7, { stepExecutionRepo, timeProvider, dbExecutor, }: {
22
- stepExecutionRepo: StepExecutionRepo;
23
- timeProvider: TimeProvider;
24
- dbExecutor?: DbExecutor | undefined;
25
- }) => Promise<StepExecutionEntity[]>;
26
- export declare const loadStatusAdjustedClaimableStepExecutionsByProjectId: (projectId: UuidV7, limit: number, now: Date, { stepExecutionRepo, timeProvider, dbExecutor, workItemId, }: {
27
- stepExecutionRepo: StepExecutionRepo;
28
- timeProvider: TimeProvider;
29
- dbExecutor?: DbExecutor | undefined;
30
- workItemId?: string | undefined;
31
- }) => Promise<StepExecutionEntity[]>;
@@ -1,13 +0,0 @@
1
- import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
- import { ResourceNotFoundError } from "@boboddy/core/lib/errors";
3
- import type { TimeProvider } from "@boboddy/core/lib/time-provider";
4
- import { Result } from "@boboddy/core/lib/result";
5
- import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
6
- import { type GetStepExecutionInput, type StepExecutionContract } from "../contracts/step-execution-contracts";
7
- import type { StepExecutionRepo } from "./step-execution-repo";
8
- export declare const markStepExecutionRunning: (input: GetStepExecutionInput, { userAuthz, stepExecutionRepo, timeProvider, dbExecutor, }: {
9
- userAuthz: UserAuthorizationService;
10
- stepExecutionRepo: StepExecutionRepo;
11
- timeProvider: TimeProvider;
12
- dbExecutor?: DbExecutor | undefined;
13
- }) => Promise<Result<StepExecutionContract, ResourceNotFoundError>>;
@@ -1,13 +0,0 @@
1
- import type { AnyJsonValue } from "@boboddy/core/common/contracts/json";
2
- import type { StepExecutionEntity } from "../domain/step-execution-entity";
3
- export declare const buildLeaseExpiresAt: (now: Date, leaseDurationSeconds: number) => Date;
4
- export declare const buildExecutionDeadlineAt: (stepExecution: StepExecutionEntity, now: Date) => Date | null;
5
- export declare const buildTimedOutStepExecutionResult: (stepExecution: StepExecutionEntity, now: Date) => {
6
- resultJson: AnyJsonValue;
7
- errorJson: AnyJsonValue;
8
- };
9
- export declare const buildAbandonedStepExecutionResult: (stepExecution: StepExecutionEntity, now: Date) => {
10
- resultJson: AnyJsonValue;
11
- errorJson: AnyJsonValue;
12
- };
13
- export declare const assertClaimOwnership: (stepExecution: StepExecutionEntity, claimToken: string, now: Date) => void;
@@ -1,7 +0,0 @@
1
- import type { StepExecutionContract, StepExecutionResultContract, StepSignalContract } from "../contracts/step-execution-contracts";
2
- import type { StepExecutionEntity } from "../domain/step-execution-entity";
3
- import type { StepExecutionResultEntity } from "../entities/step-execution-result-entity";
4
- import type { StepSignalEntity } from "../entities/step-signal-entity";
5
- export declare const stepSignalEntityToContract: (signal: StepSignalEntity) => StepSignalContract;
6
- export declare const stepExecutionResultEntityToContract: (result: StepExecutionResultEntity) => StepExecutionResultContract;
7
- export declare const stepExecutionEntityToContract: (stepExecution: StepExecutionEntity) => StepExecutionContract;
@@ -1,29 +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 { StepExecutionEntity } from "../domain/step-execution-entity";
4
- import type { StepExecutionResultEntity } from "../entities/step-execution-result-entity";
5
- import type { StepSignalEntity } from "../entities/step-signal-entity";
6
- export type StepExecutionRepo = {
7
- load(id: UuidV7, dbExecutor?: DbExecutor): Promise<StepExecutionEntity | null>;
8
- loadMany(ids: UuidV7[], dbExecutor?: DbExecutor): Promise<(StepExecutionEntity | null)[]>;
9
- loadByResultId(stepExecutionResultId: UuidV7, dbExecutor?: DbExecutor): Promise<StepExecutionEntity | null>;
10
- listByProjectId(projectId: UuidV7, dbExecutor?: DbExecutor): Promise<StepExecutionEntity[]>;
11
- loadClaimableByProjectId(projectId: UuidV7, limit: number, now: Date, dbExecutor?: DbExecutor, workItemId?: string): Promise<StepExecutionEntity[]>;
12
- create(stepExecution: StepExecutionEntity, dbExecutor?: DbExecutor): Promise<StepExecutionEntity>;
13
- claim(stepExecutionId: UuidV7, claim: {
14
- workerId: string;
15
- claimToken: string;
16
- claimedAt: Date;
17
- startedAt: Date;
18
- leaseExpiresAt: Date;
19
- executionDeadlineAt?: Date | null | undefined;
20
- }, dbExecutor?: DbExecutor): Promise<StepExecutionEntity | null>;
21
- heartbeat(stepExecutionId: UuidV7, claimToken: string, heartbeat: {
22
- lastHeartbeatAt: Date;
23
- leaseExpiresAt: Date;
24
- }, dbExecutor?: DbExecutor): Promise<StepExecutionEntity | null>;
25
- save(stepExecution: StepExecutionEntity, dbExecutor?: DbExecutor): Promise<StepExecutionEntity>;
26
- saveMany(stepExecutions: StepExecutionEntity[], dbExecutor?: DbExecutor): Promise<StepExecutionEntity[]>;
27
- addResult(stepExecutionResult: StepExecutionResultEntity, dbExecutor?: DbExecutor): Promise<StepExecutionResultEntity>;
28
- replaceSignals(stepExecutionResultId: UuidV7, signals: StepSignalEntity[], dbExecutor?: DbExecutor): Promise<StepSignalEntity[]>;
29
- };
@@ -1,325 +0,0 @@
1
- import { z } from "zod";
2
- export declare const stepSignalSchema: z.ZodObject<{
3
- 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>>;
4
- stepExecutionResultId: 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>>;
5
- key: z.ZodString;
6
- type: z.ZodEnum<{
7
- string: "string";
8
- number: "number";
9
- boolean: "boolean";
10
- object: "object";
11
- array: "array";
12
- }>;
13
- source: z.ZodEnum<{
14
- extracted: "extracted";
15
- computed: "computed";
16
- }>;
17
- valueJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
18
- sourcePath: z.ZodNullable<z.ZodString>;
19
- computedFromSignalKeys: z.ZodNullable<z.ZodArray<z.ZodString>>;
20
- createdAt: z.ZodISODateTime;
21
- }, z.core.$strip>;
22
- export declare const stepExecutionResultSchema: z.ZodObject<{
23
- 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>>;
24
- stepExecutionId: 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>>;
25
- attempt: z.ZodNumber;
26
- status: z.ZodEnum<{
27
- succeeded: "succeeded";
28
- failed: "failed";
29
- }>;
30
- resultJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
31
- errorJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>;
32
- signals: z.ZodArray<z.ZodObject<{
33
- 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>>;
34
- stepExecutionResultId: 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>>;
35
- key: z.ZodString;
36
- type: z.ZodEnum<{
37
- string: "string";
38
- number: "number";
39
- boolean: "boolean";
40
- object: "object";
41
- array: "array";
42
- }>;
43
- source: z.ZodEnum<{
44
- extracted: "extracted";
45
- computed: "computed";
46
- }>;
47
- valueJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
48
- sourcePath: z.ZodNullable<z.ZodString>;
49
- computedFromSignalKeys: z.ZodNullable<z.ZodArray<z.ZodString>>;
50
- createdAt: z.ZodISODateTime;
51
- }, z.core.$strip>>;
52
- createdAt: z.ZodISODateTime;
53
- }, z.core.$strip>;
54
- export declare const stepExecutionSchema: 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
- stepDefinitionId: 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
- stepDefinitionVersion: z.ZodNumber;
59
- status: z.ZodEnum<{
60
- queued: "queued";
61
- running: "running";
62
- succeeded: "succeeded";
63
- failed: "failed";
64
- cancelled: "cancelled";
65
- skipped: "skipped";
66
- timeout: "timeout";
67
- abandoned: "abandoned";
68
- }>;
69
- inputJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>;
70
- claimedBy: z.ZodNullable<z.ZodString>;
71
- claimedAt: z.ZodNullable<z.ZodISODateTime>;
72
- lastHeartbeatAt: z.ZodNullable<z.ZodISODateTime>;
73
- leaseExpiresAt: z.ZodNullable<z.ZodISODateTime>;
74
- executionTimeoutSeconds: z.ZodNullable<z.ZodNumber>;
75
- executionDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
76
- startedAt: z.ZodNullable<z.ZodISODateTime>;
77
- completedAt: z.ZodNullable<z.ZodISODateTime>;
78
- results: z.ZodArray<z.ZodObject<{
79
- 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>>;
80
- stepExecutionId: 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>>;
81
- attempt: z.ZodNumber;
82
- status: z.ZodEnum<{
83
- succeeded: "succeeded";
84
- failed: "failed";
85
- }>;
86
- resultJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
87
- errorJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>;
88
- signals: z.ZodArray<z.ZodObject<{
89
- 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>>;
90
- stepExecutionResultId: 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>>;
91
- key: z.ZodString;
92
- type: z.ZodEnum<{
93
- string: "string";
94
- number: "number";
95
- boolean: "boolean";
96
- object: "object";
97
- array: "array";
98
- }>;
99
- source: z.ZodEnum<{
100
- extracted: "extracted";
101
- computed: "computed";
102
- }>;
103
- valueJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
104
- sourcePath: z.ZodNullable<z.ZodString>;
105
- computedFromSignalKeys: z.ZodNullable<z.ZodArray<z.ZodString>>;
106
- createdAt: z.ZodISODateTime;
107
- }, z.core.$strip>>;
108
- createdAt: z.ZodISODateTime;
109
- }, z.core.$strip>>;
110
- createdAt: z.ZodISODateTime;
111
- updatedAt: z.ZodISODateTime;
112
- }, z.core.$strip>;
113
- export declare const createStepExecutionInputSchema: z.ZodObject<{
114
- 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>>;
115
- stepDefinitionId: 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>>;
116
- stepDefinitionVersion: z.ZodNumber;
117
- inputJson: z.ZodOptional<z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>>;
118
- status: z.ZodOptional<z.ZodEnum<{
119
- queued: "queued";
120
- running: "running";
121
- succeeded: "succeeded";
122
- failed: "failed";
123
- cancelled: "cancelled";
124
- skipped: "skipped";
125
- timeout: "timeout";
126
- abandoned: "abandoned";
127
- }>>;
128
- executionTimeoutSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
129
- }, z.core.$strip>;
130
- export declare const stepExecutionClaimSchema: z.ZodObject<{
131
- stepExecution: z.ZodObject<{
132
- 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>>;
133
- 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>>;
134
- stepDefinitionId: 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
- stepDefinitionVersion: z.ZodNumber;
136
- status: z.ZodEnum<{
137
- queued: "queued";
138
- running: "running";
139
- succeeded: "succeeded";
140
- failed: "failed";
141
- cancelled: "cancelled";
142
- skipped: "skipped";
143
- timeout: "timeout";
144
- abandoned: "abandoned";
145
- }>;
146
- inputJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>;
147
- claimedBy: z.ZodNullable<z.ZodString>;
148
- claimedAt: z.ZodNullable<z.ZodISODateTime>;
149
- lastHeartbeatAt: z.ZodNullable<z.ZodISODateTime>;
150
- leaseExpiresAt: z.ZodNullable<z.ZodISODateTime>;
151
- executionTimeoutSeconds: z.ZodNullable<z.ZodNumber>;
152
- executionDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
153
- startedAt: z.ZodNullable<z.ZodISODateTime>;
154
- completedAt: z.ZodNullable<z.ZodISODateTime>;
155
- results: z.ZodArray<z.ZodObject<{
156
- 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>>;
157
- stepExecutionId: 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>>;
158
- attempt: z.ZodNumber;
159
- status: z.ZodEnum<{
160
- succeeded: "succeeded";
161
- failed: "failed";
162
- }>;
163
- resultJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
164
- errorJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>;
165
- signals: z.ZodArray<z.ZodObject<{
166
- 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>>;
167
- stepExecutionResultId: 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>>;
168
- key: z.ZodString;
169
- type: z.ZodEnum<{
170
- string: "string";
171
- number: "number";
172
- boolean: "boolean";
173
- object: "object";
174
- array: "array";
175
- }>;
176
- source: z.ZodEnum<{
177
- extracted: "extracted";
178
- computed: "computed";
179
- }>;
180
- valueJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
181
- sourcePath: z.ZodNullable<z.ZodString>;
182
- computedFromSignalKeys: z.ZodNullable<z.ZodArray<z.ZodString>>;
183
- createdAt: z.ZodISODateTime;
184
- }, z.core.$strip>>;
185
- createdAt: z.ZodISODateTime;
186
- }, z.core.$strip>>;
187
- createdAt: z.ZodISODateTime;
188
- updatedAt: z.ZodISODateTime;
189
- }, z.core.$strip>;
190
- claimToken: z.ZodString;
191
- }, z.core.$strip>;
192
- export declare const claimStepExecutionsInputSchema: z.ZodObject<{
193
- 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>>;
194
- workerId: z.ZodString;
195
- batchSize: z.ZodDefault<z.ZodNumber>;
196
- leaseDurationSeconds: z.ZodDefault<z.ZodNumber>;
197
- workItemId: z.ZodOptional<z.ZodString>;
198
- }, z.core.$strip>;
199
- export declare const stepExecutionClaimCommandInputSchema: z.ZodObject<{
200
- claimToken: z.ZodString;
201
- leaseDurationSeconds: z.ZodDefault<z.ZodNumber>;
202
- }, z.core.$strip>;
203
- export declare const getStepExecutionWorkerContextInputSchema: z.ZodObject<{
204
- claimToken: z.ZodString;
205
- }, z.core.$strip>;
206
- export declare const stepExecutionWorkerContextSchema: z.ZodObject<{
207
- 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>>;
208
- gitUrl: z.ZodString;
209
- requestedBranch: z.ZodNullable<z.ZodString>;
210
- projectOpencodeConfig: z.ZodObject<{
211
- relativePath: z.ZodString;
212
- present: z.ZodBoolean;
213
- commands: z.ZodArray<z.ZodObject<{
214
- name: z.ZodString;
215
- description: z.ZodString;
216
- run: z.ZodString;
217
- cwd: z.ZodNullable<z.ZodString>;
218
- }, z.core.$strip>>;
219
- services: z.ZodArray<z.ZodObject<{
220
- name: z.ZodString;
221
- description: z.ZodString;
222
- run: z.ZodString;
223
- cwd: z.ZodNullable<z.ZodString>;
224
- dependsOn: z.ZodArray<z.ZodString>;
225
- expose: z.ZodObject<{
226
- targetPort: z.ZodNumber;
227
- protocol: z.ZodEnum<{
228
- tcp: "tcp";
229
- http: "http";
230
- }>;
231
- }, z.core.$strip>;
232
- healthcheck: z.ZodObject<{
233
- protocol: z.ZodEnum<{
234
- tcp: "tcp";
235
- http: "http";
236
- }>;
237
- path: z.ZodNullable<z.ZodString>;
238
- expectedStatus: z.ZodNullable<z.ZodNumber>;
239
- }, z.core.$strip>;
240
- }, z.core.$strip>>;
241
- }, z.core.$strip>;
242
- stepExecution: z.ZodObject<{
243
- 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>>;
244
- status: z.ZodEnum<{
245
- queued: "queued";
246
- running: "running";
247
- succeeded: "succeeded";
248
- failed: "failed";
249
- cancelled: "cancelled";
250
- skipped: "skipped";
251
- timeout: "timeout";
252
- abandoned: "abandoned";
253
- }>;
254
- inputJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>;
255
- executionTimeoutSeconds: z.ZodNullable<z.ZodNumber>;
256
- }, z.core.$strip>;
257
- stepDefinition: z.ZodObject<{
258
- 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>>;
259
- key: z.ZodString;
260
- name: z.ZodString;
261
- prompt: z.ZodString;
262
- resultSchemaJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
263
- opencodeMcpJson: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
264
- type: z.ZodLiteral<"local">;
265
- command: z.ZodArray<z.ZodString>;
266
- environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
267
- enabled: z.ZodOptional<z.ZodBoolean>;
268
- timeout: z.ZodOptional<z.ZodInt>;
269
- }, z.core.$strict>, z.ZodObject<{
270
- type: z.ZodLiteral<"remote">;
271
- url: z.ZodString;
272
- enabled: z.ZodOptional<z.ZodBoolean>;
273
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
274
- oauth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
275
- clientId: z.ZodOptional<z.ZodString>;
276
- clientSecret: z.ZodOptional<z.ZodString>;
277
- scope: z.ZodOptional<z.ZodString>;
278
- redirectUri: z.ZodOptional<z.ZodString>;
279
- }, z.core.$strict>, z.ZodLiteral<false>]>>;
280
- timeout: z.ZodOptional<z.ZodInt>;
281
- }, z.core.$strict>, z.ZodObject<{
282
- enabled: z.ZodBoolean;
283
- }, z.core.$strict>]>>>;
284
- }, z.core.$strip>;
285
- agentPrompt: z.ZodObject<{
286
- sessionTitle: z.ZodString;
287
- promptText: z.ZodString;
288
- }, z.core.$strip>;
289
- }, z.core.$strip>;
290
- export declare const completeClaimedStepExecutionInputSchema: z.ZodObject<{
291
- claimToken: z.ZodString;
292
- status: z.ZodEnum<{
293
- succeeded: "succeeded";
294
- failed: "failed";
295
- }>;
296
- resultJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
297
- errorJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>;
298
- }, z.core.$strip>;
299
- export declare const addStepExecutionResultInputSchema: z.ZodObject<{
300
- status: z.ZodEnum<{
301
- succeeded: "succeeded";
302
- failed: "failed";
303
- }>;
304
- stepExecutionId: 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>>;
305
- attempt: z.ZodNumber;
306
- resultJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
307
- errorJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>;
308
- }, z.core.$strip>;
309
- export declare const getStepExecutionInputSchema: 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>>;
310
- export declare const getStepExecutionResultInputSchema: 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>>;
311
- export declare const listStepExecutionsByProjectIdInputSchema: 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>>;
312
- export type StepSignalContract = z.infer<typeof stepSignalSchema>;
313
- export type StepExecutionResultContract = z.infer<typeof stepExecutionResultSchema>;
314
- export type StepExecutionContract = z.infer<typeof stepExecutionSchema>;
315
- export type StepExecutionClaimContract = z.infer<typeof stepExecutionClaimSchema>;
316
- export type CreateStepExecutionInput = z.input<typeof createStepExecutionInputSchema>;
317
- export type AddStepExecutionResultInput = z.input<typeof addStepExecutionResultInputSchema>;
318
- export type ClaimStepExecutionsInput = z.input<typeof claimStepExecutionsInputSchema>;
319
- export type StepExecutionClaimCommandInput = z.input<typeof stepExecutionClaimCommandInputSchema>;
320
- export type GetStepExecutionWorkerContextInput = z.input<typeof getStepExecutionWorkerContextInputSchema>;
321
- export type CompleteClaimedStepExecutionInput = z.input<typeof completeClaimedStepExecutionInputSchema>;
322
- export type GetStepExecutionInput = z.input<typeof getStepExecutionInputSchema>;
323
- export type GetStepExecutionResultInput = z.input<typeof getStepExecutionResultInputSchema>;
324
- export type ListStepExecutionsByProjectIdInput = z.input<typeof listStepExecutionsByProjectIdInputSchema>;
325
- export type StepExecutionWorkerContextContract = z.infer<typeof stepExecutionWorkerContextSchema>;