@boboddy/sdk 0.0.7-alpha → 0.0.9-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,35 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { InMemoryDomainEventDispatcher } from "@boboddy/core/lib/domain-events/in-memory-domain-event-dispatcher";
3
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
4
+ import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
5
+ import type { LinearPipelineExecutionRepo } from "@boboddy/core/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-repo";
6
+ import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
7
+ import { type CompleteClaimedStepExecutionInput, type GetStepExecutionInput, type StepExecutionContract } from "../contracts/step-execution-contracts";
8
+ import type { StepExecutionRepo } from "./step-execution-repo";
9
+ export declare const completeClaimedStepExecution: (stepExecutionIdInput: GetStepExecutionInput, input: CompleteClaimedStepExecutionInput, { stepExecutionRepo, stepDefinitionRepo, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, timeProvider, domainEventDispatcher, dbExecutor, }: {
10
+ stepExecutionRepo: StepExecutionRepo;
11
+ stepDefinitionRepo: StepDefinitionRepo;
12
+ linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
13
+ linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
14
+ timeProvider: TimeProvider;
15
+ domainEventDispatcher?: InMemoryDomainEventDispatcher;
16
+ dbExecutor?: DbExecutor | undefined;
17
+ }) => Promise<StepExecutionContract>;
18
+ export declare const failTimedOutStepExecution: (stepExecutionIdInput: GetStepExecutionInput, { stepExecutionRepo, stepDefinitionRepo, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, timeProvider, domainEventDispatcher, dbExecutor, }: {
19
+ stepExecutionRepo: StepExecutionRepo;
20
+ stepDefinitionRepo: StepDefinitionRepo;
21
+ linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
22
+ linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
23
+ timeProvider: TimeProvider;
24
+ domainEventDispatcher?: InMemoryDomainEventDispatcher;
25
+ dbExecutor?: DbExecutor | undefined;
26
+ }) => Promise<StepExecutionContract>;
27
+ export declare const failAbandonedStepExecution: (stepExecutionIdInput: GetStepExecutionInput, { stepExecutionRepo, stepDefinitionRepo, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, timeProvider, domainEventDispatcher, dbExecutor, }: {
28
+ stepExecutionRepo: StepExecutionRepo;
29
+ stepDefinitionRepo: StepDefinitionRepo;
30
+ linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
31
+ linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
32
+ timeProvider: TimeProvider;
33
+ domainEventDispatcher?: InMemoryDomainEventDispatcher;
34
+ dbExecutor?: DbExecutor | undefined;
35
+ }) => Promise<StepExecutionContract>;
@@ -0,0 +1,9 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
3
+ import { type CreateStepExecutionInput, type StepExecutionContract } from "../contracts/step-execution-contracts";
4
+ import type { StepExecutionRepo } from "./step-execution-repo";
5
+ export declare const createStepExecution: (input: CreateStepExecutionInput, { stepExecutionRepo, timeProvider, dbExecutor, }: {
6
+ stepExecutionRepo: StepExecutionRepo;
7
+ timeProvider: TimeProvider;
8
+ dbExecutor?: DbExecutor | undefined;
9
+ }) => Promise<StepExecutionContract>;
@@ -0,0 +1,13 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { InMemoryDomainEventDispatcher } from "@boboddy/core/lib/domain-events/in-memory-domain-event-dispatcher";
3
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
4
+ import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
5
+ import { type GetStepExecutionResultInput, type StepSignalContract } from "../contracts/step-execution-contracts";
6
+ import type { StepExecutionRepo } from "./step-execution-repo";
7
+ export declare const extractStepExecutionSignals: (input: GetStepExecutionResultInput, { stepDefinitionRepo, stepExecutionRepo, timeProvider, domainEventDispatcher, dbExecutor, }: {
8
+ stepDefinitionRepo: StepDefinitionRepo;
9
+ stepExecutionRepo: StepExecutionRepo;
10
+ timeProvider: TimeProvider;
11
+ domainEventDispatcher?: InMemoryDomainEventDispatcher;
12
+ dbExecutor?: DbExecutor | undefined;
13
+ }) => Promise<StepSignalContract[]>;
@@ -0,0 +1,13 @@
1
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
2
+ import type { ProjectRepo } from "@boboddy/core/projects/project/application/project-repo";
3
+ import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
4
+ import type { ProjectContextEntryRepo } from "@boboddy/core/projects/project-context/application/project-context-entry-repo";
5
+ import { type GetStepExecutionInput, type GetStepExecutionWorkerContextInput, type StepExecutionWorkerContextContract } from "../contracts/step-execution-contracts";
6
+ import type { StepExecutionRepo } from "./step-execution-repo";
7
+ export declare const getStepExecutionWorkerContext: (stepExecutionIdInput: GetStepExecutionInput, input: GetStepExecutionWorkerContextInput, { projectRepo, stepExecutionRepo, stepDefinitionRepo, projectContextEntryRepo, timeProvider, }: {
8
+ projectRepo: ProjectRepo;
9
+ stepExecutionRepo: StepExecutionRepo;
10
+ stepDefinitionRepo: StepDefinitionRepo;
11
+ projectContextEntryRepo: ProjectContextEntryRepo;
12
+ timeProvider: TimeProvider;
13
+ }) => Promise<StepExecutionWorkerContextContract>;
@@ -0,0 +1,9 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import { type GetStepExecutionInput, type StepExecutionContract } from "../contracts/step-execution-contracts";
3
+ import type { StepExecutionRepo } from "./step-execution-repo";
4
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
5
+ export declare const getStepExecution: (input: GetStepExecutionInput, { stepExecutionRepo, timeProvider, dbExecutor, }: {
6
+ stepExecutionRepo: StepExecutionRepo;
7
+ timeProvider: TimeProvider;
8
+ dbExecutor?: DbExecutor | undefined;
9
+ }) => Promise<StepExecutionContract>;
@@ -0,0 +1,17 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { InMemoryDomainEventDispatcher } from "@boboddy/core/lib/domain-events/in-memory-domain-event-dispatcher";
3
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
4
+ import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
5
+ import type { LinearPipelineExecutionRepo } from "@boboddy/core/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-repo";
6
+ import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
7
+ import { type GetStepExecutionInput, type StepExecutionClaimCommandInput, type StepExecutionContract } from "../contracts/step-execution-contracts";
8
+ import type { StepExecutionRepo } from "./step-execution-repo";
9
+ export declare const heartbeatStepExecutionClaim: (stepExecutionIdInput: GetStepExecutionInput, input: StepExecutionClaimCommandInput, { stepExecutionRepo, stepDefinitionRepo, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, timeProvider, domainEventDispatcher, dbExecutor, }: {
10
+ stepExecutionRepo: StepExecutionRepo;
11
+ stepDefinitionRepo: StepDefinitionRepo;
12
+ linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
13
+ linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
14
+ timeProvider: TimeProvider;
15
+ domainEventDispatcher?: InMemoryDomainEventDispatcher;
16
+ dbExecutor?: DbExecutor | undefined;
17
+ }) => Promise<StepExecutionContract>;
@@ -0,0 +1,9 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import { type ListStepExecutionsByProjectIdInput, type StepExecutionContract } from "../contracts/step-execution-contracts";
3
+ import type { StepExecutionRepo } from "./step-execution-repo";
4
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
5
+ export declare const listStepExecutionsByProjectId: (input: ListStepExecutionsByProjectIdInput, { stepExecutionRepo, timeProvider, dbExecutor, }: {
6
+ stepExecutionRepo: StepExecutionRepo;
7
+ timeProvider: TimeProvider;
8
+ dbExecutor?: DbExecutor | undefined;
9
+ }) => Promise<StepExecutionContract[]>;
@@ -0,0 +1,31 @@
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[]>;
@@ -0,0 +1,9 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
3
+ import { type GetStepExecutionInput, type StepExecutionContract } from "../contracts/step-execution-contracts";
4
+ import type { StepExecutionRepo } from "./step-execution-repo";
5
+ export declare const markStepExecutionRunning: (input: GetStepExecutionInput, { stepExecutionRepo, timeProvider, dbExecutor, }: {
6
+ stepExecutionRepo: StepExecutionRepo;
7
+ timeProvider: TimeProvider;
8
+ dbExecutor?: DbExecutor | undefined;
9
+ }) => Promise<StepExecutionContract>;
@@ -0,0 +1,13 @@
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;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,29 @@
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
+ };
@@ -0,0 +1,325 @@
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>;
@@ -0,0 +1,61 @@
1
+ import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
2
+ import { StepExecutionResultEntity, type StepExecutionResultEntityProps } from "../entities/step-execution-result-entity";
3
+ import type { AnyJsonValue } from "@boboddy/core/common/contracts/json";
4
+ export declare const stepExecutionStatusValues: readonly ["queued", "running", "succeeded", "failed", "timeout", "abandoned", "cancelled", "skipped"];
5
+ export type StepExecutionStatus = (typeof stepExecutionStatusValues)[number];
6
+ export type StepExecutionEntityProps = {
7
+ id: UuidV7;
8
+ projectId: UuidV7;
9
+ stepDefinitionId: UuidV7;
10
+ stepDefinitionVersion: number;
11
+ status: StepExecutionStatus;
12
+ inputJson?: AnyJsonValue | null | undefined;
13
+ claimedBy?: string | null | undefined;
14
+ claimToken?: string | null | undefined;
15
+ claimedAt?: Date | string | null | undefined;
16
+ lastHeartbeatAt?: Date | string | null | undefined;
17
+ leaseExpiresAt?: Date | string | null | undefined;
18
+ executionTimeoutSeconds?: number | null | undefined;
19
+ executionDeadlineAt?: Date | string | null | undefined;
20
+ startedAt?: Date | string | null | undefined;
21
+ completedAt?: Date | string | null | undefined;
22
+ results?: readonly StepExecutionResultEntityProps[] | undefined;
23
+ createdAt?: Date | string | null | undefined;
24
+ updatedAt?: Date | string | null | undefined;
25
+ };
26
+ export type CreateStepExecutionEntityProps = Omit<StepExecutionEntityProps, "id"> & {
27
+ id?: UuidV7 | undefined;
28
+ };
29
+ export declare class StepExecutionEntity {
30
+ readonly id: UuidV7;
31
+ readonly projectId: UuidV7;
32
+ readonly stepDefinitionId: UuidV7;
33
+ readonly stepDefinitionVersion: number;
34
+ readonly status: StepExecutionStatus;
35
+ readonly inputJson: AnyJsonValue | null;
36
+ readonly claimedBy: string | null;
37
+ readonly claimToken: string | null;
38
+ readonly claimedAt: Date | null | undefined;
39
+ readonly lastHeartbeatAt: Date | null | undefined;
40
+ readonly leaseExpiresAt: Date | null | undefined;
41
+ readonly executionTimeoutSeconds: number | null;
42
+ readonly executionDeadlineAt: Date | null | undefined;
43
+ readonly startedAt: Date | null | undefined;
44
+ readonly completedAt: Date | null | undefined;
45
+ readonly results: StepExecutionResultEntity[];
46
+ readonly createdAt: Date | null | undefined;
47
+ readonly updatedAt: Date | null | undefined;
48
+ private constructor();
49
+ static create(props: CreateStepExecutionEntityProps): StepExecutionEntity;
50
+ static rehydrate(props: StepExecutionEntityProps): StepExecutionEntity;
51
+ markRunning(now: Date): StepExecutionEntity;
52
+ isLeaseExpired(now: Date): boolean;
53
+ isTimedOut(now: Date): boolean;
54
+ reconcileLiveness(now: Date): StepExecutionEntity;
55
+ withStatus(status: StepExecutionStatus, now: Date, overrides?: {
56
+ startedAt?: Date | null | undefined;
57
+ completedAt?: Date | null | undefined;
58
+ clearClaim?: boolean | undefined;
59
+ }): StepExecutionEntity;
60
+ toJSON(): StepExecutionEntityProps;
61
+ }
@@ -0,0 +1,18 @@
1
+ import type { AnyJsonValue } from "@boboddy/core/common/contracts/json";
2
+ import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
3
+ import type { DomainEvent } from "@boboddy/core/lib/domain-events/domain-event";
4
+ import type { StepSignalType } from "../entities/step-signal-entity";
5
+ export declare const STEP_SIGNAL_CREATED_DOMAIN_EVENT_TYPE = "step_signal.created";
6
+ export type StepSignalCreatedPayload = {
7
+ stepSignalId: UuidV7;
8
+ stepExecutionResultId: UuidV7;
9
+ key: string;
10
+ type: StepSignalType;
11
+ valueJson: AnyJsonValue;
12
+ };
13
+ export declare class StepSignalCreatedDomainEvent implements DomainEvent<typeof STEP_SIGNAL_CREATED_DOMAIN_EVENT_TYPE, StepSignalCreatedPayload> {
14
+ readonly payload: StepSignalCreatedPayload;
15
+ readonly type = "step_signal.created";
16
+ readonly occurredAt: Date;
17
+ constructor(payload: StepSignalCreatedPayload, occurredAt?: Date);
18
+ }