@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
@@ -2716,6 +2716,7 @@ export declare const createApp: (appContext: CoreAppContext) => Elysia<"/api", {
2716
2716
  workerId: string;
2717
2717
  batchSize: number;
2718
2718
  leaseDurationSeconds: number;
2719
+ workItemId?: string | undefined;
2719
2720
  };
2720
2721
  params: {};
2721
2722
  query: unknown;
@@ -9433,188 +9434,9 @@ export declare const createApp: (appContext: CoreAppContext) => Elysia<"/api", {
9433
9434
  };
9434
9435
  };
9435
9436
  };
9436
- }, {
9437
- derive: {};
9438
- resolve: {};
9439
- schema: {};
9440
- standaloneSchema: {};
9441
- response: {};
9442
- }, {
9443
- derive: {};
9444
- resolve: {};
9445
- schema: {};
9446
- standaloneSchema: {};
9447
- response: {
9448
- 200: {
9449
- type: string;
9450
- title: string;
9451
- status: number;
9452
- detail?: string | undefined;
9453
- instance?: string | undefined;
9454
- code?: string | undefined;
9455
- errors?: {
9456
- path: string;
9457
- message: string;
9458
- summary?: string | undefined;
9459
- }[] | undefined;
9460
- };
9461
- };
9462
- } & {
9463
- derive: {};
9464
- resolve: {};
9465
- schema: {};
9466
- standaloneSchema: {};
9467
- response: {};
9468
- }>;
9469
- export declare const app: Elysia<"/api", {
9470
- decorator: {};
9471
- store: {};
9472
- derive: {};
9473
- resolve: {};
9474
- }, {
9475
- typebox: {};
9476
- error: {};
9477
- }, {
9478
- schema: {};
9479
- standaloneSchema: {};
9480
- macro: {};
9481
- macroFn: {};
9482
- parser: {};
9483
- response: {};
9484
- }, {
9485
- api: {
9486
- api: {
9487
- auth: {
9488
- "*": {
9489
- [x: string]: {
9490
- body: unknown;
9491
- params: {
9492
- "*": string;
9493
- } & {};
9494
- query: unknown;
9495
- headers: unknown;
9496
- response: {
9497
- 422: {
9498
- type: "validation";
9499
- on: string;
9500
- summary?: string;
9501
- message?: string;
9502
- found?: unknown;
9503
- property?: string;
9504
- expected?: string;
9505
- };
9506
- 200: Response;
9507
- 405: "Method Not Allowed";
9508
- };
9509
- };
9510
- };
9511
- };
9512
- };
9513
- };
9514
9437
  } & {
9515
9438
  api: {
9516
- projects: {
9517
- post: {
9518
- body: {
9519
- name: string;
9520
- description: string | null;
9521
- gitUrl: string;
9522
- };
9523
- params: {};
9524
- query: unknown;
9525
- headers: unknown;
9526
- response: {
9527
- 422: {
9528
- type: string;
9529
- title: string;
9530
- status: number;
9531
- detail?: string | undefined;
9532
- instance?: string | undefined;
9533
- code?: string | undefined;
9534
- errors?: {
9535
- path: string;
9536
- message: string;
9537
- summary?: string | undefined;
9538
- }[] | undefined;
9539
- };
9540
- 500: {
9541
- type: string;
9542
- title: string;
9543
- status: number;
9544
- detail?: string | undefined;
9545
- instance?: string | undefined;
9546
- code?: string | undefined;
9547
- errors?: {
9548
- path: string;
9549
- message: string;
9550
- summary?: string | undefined;
9551
- }[] | undefined;
9552
- };
9553
- 200: {
9554
- id: string & {
9555
- readonly __brand: "uuidv7";
9556
- };
9557
- name: string;
9558
- description: string | null;
9559
- gitUrl: string;
9560
- createdByUserId: string & {
9561
- readonly __brand: "uuidv7";
9562
- };
9563
- memberships: {
9564
- userId: string & {
9565
- readonly __brand: "uuidv7";
9566
- };
9567
- permissions: string[];
9568
- createdAt: string;
9569
- updatedAt: string;
9570
- }[];
9571
- createdAt: string;
9572
- updatedAt: string;
9573
- };
9574
- 403: {
9575
- type: string;
9576
- title: string;
9577
- status: number;
9578
- detail?: string | undefined;
9579
- instance?: string | undefined;
9580
- code?: string | undefined;
9581
- errors?: {
9582
- path: string;
9583
- message: string;
9584
- summary?: string | undefined;
9585
- }[] | undefined;
9586
- };
9587
- 400: {
9588
- type: string;
9589
- title: string;
9590
- status: number;
9591
- detail?: string | undefined;
9592
- instance?: string | undefined;
9593
- code?: string | undefined;
9594
- errors?: {
9595
- path: string;
9596
- message: string;
9597
- summary?: string | undefined;
9598
- }[] | undefined;
9599
- };
9600
- 401: {
9601
- type: string;
9602
- title: string;
9603
- status: number;
9604
- detail?: string | undefined;
9605
- instance?: string | undefined;
9606
- code?: string | undefined;
9607
- errors?: {
9608
- path: string;
9609
- message: string;
9610
- summary?: string | undefined;
9611
- }[] | undefined;
9612
- };
9613
- };
9614
- };
9615
- };
9616
- } & {
9617
- projects: {
9439
+ "step-definition-templates": {
9618
9440
  get: {
9619
9441
  body: unknown;
9620
9442
  params: {};
@@ -9647,20 +9469,49 @@ export declare const app: Elysia<"/api", {
9647
9469
  id: string & {
9648
9470
  readonly __brand: "uuidv7";
9649
9471
  };
9472
+ key: string;
9650
9473
  name: string;
9651
9474
  description: string | null;
9652
- gitUrl: string;
9653
- createdByUserId: string & {
9654
- readonly __brand: "uuidv7";
9655
- };
9656
- memberships: {
9657
- userId: string & {
9658
- readonly __brand: "uuidv7";
9659
- };
9660
- permissions: string[];
9661
- createdAt: string;
9662
- updatedAt: string;
9475
+ promptTemplate: string | null;
9476
+ inputSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
9477
+ resultSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
9478
+ opencodeMcpJson: Record<string, {
9479
+ type: "local";
9480
+ command: string[];
9481
+ environment?: Record<string, string> | undefined;
9482
+ enabled?: boolean | undefined;
9483
+ timeout?: number | undefined;
9484
+ } | {
9485
+ type: "remote";
9486
+ url: string;
9487
+ enabled?: boolean | undefined;
9488
+ headers?: Record<string, string> | undefined;
9489
+ oauth?: false | {
9490
+ clientId?: string | undefined;
9491
+ clientSecret?: string | undefined;
9492
+ scope?: string | undefined;
9493
+ redirectUri?: string | undefined;
9494
+ } | undefined;
9495
+ timeout?: number | undefined;
9496
+ } | {
9497
+ enabled: boolean;
9498
+ }> | null;
9499
+ signalExtractorDefinitions: {
9500
+ key: string;
9501
+ sourcePath: string;
9502
+ type: "string" | "number" | "boolean" | "object" | "array";
9503
+ required: boolean;
9504
+ availableWhenResultStatusIn: string[] | null;
9505
+ }[];
9506
+ parameters: {
9507
+ key: string;
9508
+ label: string;
9509
+ type: "text" | "textarea";
9510
+ required: boolean;
9511
+ description?: string | null | undefined;
9512
+ placeholder?: string | null | undefined;
9663
9513
  }[];
9514
+ status: "active" | "archived";
9664
9515
  createdAt: string;
9665
9516
  updatedAt: string;
9666
9517
  }[];
@@ -9681,35 +9532,147 @@ export declare const app: Elysia<"/api", {
9681
9532
  };
9682
9533
  };
9683
9534
  } & {
9684
- projects: {
9685
- ":projectId": {
9686
- "work-items": {
9687
- get: {
9688
- body: unknown;
9689
- params: {
9690
- projectId: string & {
9691
- readonly __brand: "uuidv7";
9692
- };
9535
+ "step-definition-templates": {
9536
+ ":stepDefinitionTemplateId": {
9537
+ get: {
9538
+ body: unknown;
9539
+ params: {
9540
+ stepDefinitionTemplateId: string & {
9541
+ readonly __brand: "uuidv7";
9693
9542
  };
9694
- query: unknown;
9695
- headers: unknown;
9696
- response: {
9697
- 422: {
9698
- type: string;
9699
- title: string;
9700
- status: number;
9701
- detail?: string | undefined;
9702
- instance?: string | undefined;
9703
- code?: string | undefined;
9704
- errors?: {
9705
- path: string;
9706
- message: string;
9707
- summary?: string | undefined;
9708
- }[] | undefined;
9709
- };
9710
- 404: {
9711
- type: string;
9712
- title: string;
9543
+ };
9544
+ query: unknown;
9545
+ headers: unknown;
9546
+ response: {
9547
+ 422: {
9548
+ type: string;
9549
+ title: string;
9550
+ status: number;
9551
+ detail?: string | undefined;
9552
+ instance?: string | undefined;
9553
+ code?: string | undefined;
9554
+ errors?: {
9555
+ path: string;
9556
+ message: string;
9557
+ summary?: string | undefined;
9558
+ }[] | undefined;
9559
+ };
9560
+ 404: {
9561
+ type: string;
9562
+ title: string;
9563
+ status: number;
9564
+ detail?: string | undefined;
9565
+ instance?: string | undefined;
9566
+ code?: string | undefined;
9567
+ errors?: {
9568
+ path: string;
9569
+ message: string;
9570
+ summary?: string | undefined;
9571
+ }[] | undefined;
9572
+ };
9573
+ 500: {
9574
+ type: string;
9575
+ title: string;
9576
+ status: number;
9577
+ detail?: string | undefined;
9578
+ instance?: string | undefined;
9579
+ code?: string | undefined;
9580
+ errors?: {
9581
+ path: string;
9582
+ message: string;
9583
+ summary?: string | undefined;
9584
+ }[] | undefined;
9585
+ };
9586
+ 200: {
9587
+ id: string & {
9588
+ readonly __brand: "uuidv7";
9589
+ };
9590
+ key: string;
9591
+ name: string;
9592
+ description: string | null;
9593
+ promptTemplate: string | null;
9594
+ inputSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
9595
+ resultSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
9596
+ opencodeMcpJson: Record<string, {
9597
+ type: "local";
9598
+ command: string[];
9599
+ environment?: Record<string, string> | undefined;
9600
+ enabled?: boolean | undefined;
9601
+ timeout?: number | undefined;
9602
+ } | {
9603
+ type: "remote";
9604
+ url: string;
9605
+ enabled?: boolean | undefined;
9606
+ headers?: Record<string, string> | undefined;
9607
+ oauth?: false | {
9608
+ clientId?: string | undefined;
9609
+ clientSecret?: string | undefined;
9610
+ scope?: string | undefined;
9611
+ redirectUri?: string | undefined;
9612
+ } | undefined;
9613
+ timeout?: number | undefined;
9614
+ } | {
9615
+ enabled: boolean;
9616
+ }> | null;
9617
+ signalExtractorDefinitions: {
9618
+ key: string;
9619
+ sourcePath: string;
9620
+ type: "string" | "number" | "boolean" | "object" | "array";
9621
+ required: boolean;
9622
+ availableWhenResultStatusIn: string[] | null;
9623
+ }[];
9624
+ parameters: {
9625
+ key: string;
9626
+ label: string;
9627
+ type: "text" | "textarea";
9628
+ required: boolean;
9629
+ description?: string | null | undefined;
9630
+ placeholder?: string | null | undefined;
9631
+ }[];
9632
+ status: "active" | "archived";
9633
+ createdAt: string;
9634
+ updatedAt: string;
9635
+ };
9636
+ 401: {
9637
+ type: string;
9638
+ title: string;
9639
+ status: number;
9640
+ detail?: string | undefined;
9641
+ instance?: string | undefined;
9642
+ code?: string | undefined;
9643
+ errors?: {
9644
+ path: string;
9645
+ message: string;
9646
+ summary?: string | undefined;
9647
+ }[] | undefined;
9648
+ };
9649
+ };
9650
+ };
9651
+ };
9652
+ };
9653
+ } & {
9654
+ "step-definition-templates": {
9655
+ ":stepDefinitionTemplateId": {
9656
+ instantiate: {
9657
+ post: {
9658
+ body: {
9659
+ projectId: string & {
9660
+ readonly __brand: "uuidv7";
9661
+ };
9662
+ name: string;
9663
+ parameterValues: Record<string, string>;
9664
+ };
9665
+ params: {
9666
+ stepDefinitionTemplateId: string & {
9667
+ readonly __brand: "uuidv7";
9668
+ };
9669
+ };
9670
+ query: unknown;
9671
+ headers: unknown;
9672
+ response: {
9673
+ 422: {
9674
+ type: string;
9675
+ title: string;
9713
9676
  status: number;
9714
9677
  detail?: string | undefined;
9715
9678
  instance?: string | undefined;
@@ -9720,7 +9683,7 @@ export declare const app: Elysia<"/api", {
9720
9683
  summary?: string | undefined;
9721
9684
  }[] | undefined;
9722
9685
  };
9723
- 500: {
9686
+ 404: {
9724
9687
  type: string;
9725
9688
  title: string;
9726
9689
  status: number;
@@ -9733,26 +9696,7 @@ export declare const app: Elysia<"/api", {
9733
9696
  summary?: string | undefined;
9734
9697
  }[] | undefined;
9735
9698
  };
9736
- 200: {
9737
- id: string & {
9738
- readonly __brand: "uuidv7";
9739
- };
9740
- projectId: string & {
9741
- readonly __brand: "uuidv7";
9742
- };
9743
- platform: "jira" | "github" | "linear" | "boboddy" | "custom";
9744
- platformKey: string;
9745
- title: string;
9746
- description: string;
9747
- sourceCreatedAt: string | null;
9748
- sourceUpdatedAt: string | null;
9749
- fields: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
9750
- createdAt: string;
9751
- updatedAt: string;
9752
- platformId?: string | null | undefined;
9753
- url?: string | null | undefined;
9754
- }[];
9755
- 403: {
9699
+ 409: {
9756
9700
  type: string;
9757
9701
  title: string;
9758
9702
  status: number;
@@ -9765,7 +9709,7 @@ export declare const app: Elysia<"/api", {
9765
9709
  summary?: string | undefined;
9766
9710
  }[] | undefined;
9767
9711
  };
9768
- 401: {
9712
+ 500: {
9769
9713
  type: string;
9770
9714
  title: string;
9771
9715
  status: number;
@@ -9778,28 +9722,71 @@ export declare const app: Elysia<"/api", {
9778
9722
  summary?: string | undefined;
9779
9723
  }[] | undefined;
9780
9724
  };
9781
- };
9782
- };
9783
- };
9784
- };
9785
- };
9786
- } & {
9787
- projects: {
9788
- ":projectId": {
9789
- "runtime-sessions": {
9790
- post: {
9791
- body: {
9792
- requestedBranch?: string | null | undefined;
9793
- };
9794
- params: {
9795
- projectId: string & {
9796
- readonly __brand: "uuidv7";
9725
+ 200: {
9726
+ id: string & {
9727
+ readonly __brand: "uuidv7";
9728
+ };
9729
+ projectId: string & {
9730
+ readonly __brand: "uuidv7";
9731
+ };
9732
+ key: string;
9733
+ name: string;
9734
+ description: string | null;
9735
+ prompt: string | null;
9736
+ version: number;
9737
+ kind: "built_in" | "user_defined";
9738
+ inputSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
9739
+ resultSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
9740
+ opencodeMcpJson: Record<string, {
9741
+ type: "local";
9742
+ command: string[];
9743
+ environment?: Record<string, string> | undefined;
9744
+ enabled?: boolean | undefined;
9745
+ timeout?: number | undefined;
9746
+ } | {
9747
+ type: "remote";
9748
+ url: string;
9749
+ enabled?: boolean | undefined;
9750
+ headers?: Record<string, string> | undefined;
9751
+ oauth?: false | {
9752
+ clientId?: string | undefined;
9753
+ clientSecret?: string | undefined;
9754
+ scope?: string | undefined;
9755
+ redirectUri?: string | undefined;
9756
+ } | undefined;
9757
+ timeout?: number | undefined;
9758
+ } | {
9759
+ enabled: boolean;
9760
+ }> | null;
9761
+ status: "draft" | "active" | "archived";
9762
+ signalExtractorDefinitions: {
9763
+ id: string & {
9764
+ readonly __brand: "uuidv7";
9765
+ };
9766
+ key: string;
9767
+ sourcePath: string;
9768
+ type: "string" | "number" | "boolean" | "object" | "array";
9769
+ required: boolean;
9770
+ availableWhenResultStatusIn: string[] | null;
9771
+ createdAt: string;
9772
+ updatedAt: string;
9773
+ }[];
9774
+ computedSignalDefinitions: {
9775
+ id: string & {
9776
+ readonly __brand: "uuidv7";
9777
+ };
9778
+ key: string;
9779
+ type: "custom" | "average" | "weighted_average" | "sum" | "min" | "max";
9780
+ inputSignalKeys: string[];
9781
+ configJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
9782
+ availableWhenResultStatusIn: string[] | null;
9783
+ createdAt: string;
9784
+ updatedAt: string;
9785
+ }[];
9786
+ createdAt: string;
9787
+ updatedAt: string;
9797
9788
  };
9798
- };
9799
- query: unknown;
9800
- headers: unknown;
9801
- response: {
9802
- 422: {
9789
+ 403: {
9803
9790
  type: string;
9804
9791
  title: string;
9805
9792
  status: number;
@@ -9812,7 +9799,7 @@ export declare const app: Elysia<"/api", {
9812
9799
  summary?: string | undefined;
9813
9800
  }[] | undefined;
9814
9801
  };
9815
- 404: {
9802
+ 400: {
9816
9803
  type: string;
9817
9804
  title: string;
9818
9805
  status: number;
@@ -9825,63 +9812,7 @@ export declare const app: Elysia<"/api", {
9825
9812
  summary?: string | undefined;
9826
9813
  }[] | undefined;
9827
9814
  };
9828
- 500: {
9829
- type: string;
9830
- title: string;
9831
- status: number;
9832
- detail?: string | undefined;
9833
- instance?: string | undefined;
9834
- code?: string | undefined;
9835
- errors?: {
9836
- path: string;
9837
- message: string;
9838
- summary?: string | undefined;
9839
- }[] | undefined;
9840
- };
9841
- 200: {
9842
- id: string & {
9843
- readonly __brand: "uuidv7";
9844
- };
9845
- projectId: string & {
9846
- readonly __brand: "uuidv7";
9847
- };
9848
- requestedByUserId: string & {
9849
- readonly __brand: "uuidv7";
9850
- };
9851
- gitUrl: string;
9852
- requestedBranch: string | null;
9853
- resolvedBranch: string | null;
9854
- projectEnvironmentRef: string | null;
9855
- agentEnvironmentRef: string | null;
9856
- runnerAssignment: string | null;
9857
- workspacePath: string | null;
9858
- devcontainerId: string | null;
9859
- aiContainerId: string | null;
9860
- aiBaseUrl: string | null;
9861
- aiImage: string | null;
9862
- devcontainerConfigPath: string | null;
9863
- projectEnvironmentReadyAt: string | null;
9864
- agentEnvironmentReadyAt: string | null;
9865
- status: "queued" | "running" | "failed" | "cloning" | "validating_spec" | "launching" | "stopped";
9866
- failureReason: string | null;
9867
- metadata: import("@boboddy/core/common/contracts/json").AnyJsonObject;
9868
- createdAt: string;
9869
- updatedAt: string;
9870
- };
9871
- 403: {
9872
- type: string;
9873
- title: string;
9874
- status: number;
9875
- detail?: string | undefined;
9876
- instance?: string | undefined;
9877
- code?: string | undefined;
9878
- errors?: {
9879
- path: string;
9880
- message: string;
9881
- summary?: string | undefined;
9882
- }[] | undefined;
9883
- };
9884
- 401: {
9815
+ 401: {
9885
9816
  type: string;
9886
9817
  title: string;
9887
9818
  status: number;
@@ -9899,171 +9830,638 @@ export declare const app: Elysia<"/api", {
9899
9830
  };
9900
9831
  };
9901
9832
  };
9902
- } & {
9903
- projects: {
9904
- ":projectId": {
9905
- "runtime-sessions": {
9906
- get: {
9833
+ };
9834
+ }, {
9835
+ derive: {};
9836
+ resolve: {};
9837
+ schema: {};
9838
+ standaloneSchema: {};
9839
+ response: {};
9840
+ }, {
9841
+ derive: {};
9842
+ resolve: {};
9843
+ schema: {};
9844
+ standaloneSchema: {};
9845
+ response: {
9846
+ 200: {
9847
+ type: string;
9848
+ title: string;
9849
+ status: number;
9850
+ detail?: string | undefined;
9851
+ instance?: string | undefined;
9852
+ code?: string | undefined;
9853
+ errors?: {
9854
+ path: string;
9855
+ message: string;
9856
+ summary?: string | undefined;
9857
+ }[] | undefined;
9858
+ };
9859
+ };
9860
+ } & {
9861
+ derive: {};
9862
+ resolve: {};
9863
+ schema: {};
9864
+ standaloneSchema: {};
9865
+ response: {};
9866
+ }>;
9867
+ export declare const app: Elysia<"/api", {
9868
+ decorator: {};
9869
+ store: {};
9870
+ derive: {};
9871
+ resolve: {};
9872
+ }, {
9873
+ typebox: {};
9874
+ error: {};
9875
+ }, {
9876
+ schema: {};
9877
+ standaloneSchema: {};
9878
+ macro: {};
9879
+ macroFn: {};
9880
+ parser: {};
9881
+ response: {};
9882
+ }, {
9883
+ api: {
9884
+ api: {
9885
+ auth: {
9886
+ "*": {
9887
+ [x: string]: {
9907
9888
  body: unknown;
9908
9889
  params: {
9909
- projectId: string & {
9910
- readonly __brand: "uuidv7";
9911
- };
9912
- };
9890
+ "*": string;
9891
+ } & {};
9913
9892
  query: unknown;
9914
9893
  headers: unknown;
9915
9894
  response: {
9916
9895
  422: {
9917
- type: string;
9918
- title: string;
9919
- status: number;
9920
- detail?: string | undefined;
9921
- instance?: string | undefined;
9922
- code?: string | undefined;
9923
- errors?: {
9924
- path: string;
9925
- message: string;
9926
- summary?: string | undefined;
9927
- }[] | undefined;
9928
- };
9929
- 404: {
9930
- type: string;
9931
- title: string;
9932
- status: number;
9933
- detail?: string | undefined;
9934
- instance?: string | undefined;
9935
- code?: string | undefined;
9936
- errors?: {
9937
- path: string;
9938
- message: string;
9939
- summary?: string | undefined;
9940
- }[] | undefined;
9941
- };
9942
- 500: {
9943
- type: string;
9944
- title: string;
9945
- status: number;
9946
- detail?: string | undefined;
9947
- instance?: string | undefined;
9948
- code?: string | undefined;
9949
- errors?: {
9950
- path: string;
9951
- message: string;
9952
- summary?: string | undefined;
9953
- }[] | undefined;
9954
- };
9955
- 200: {
9956
- id: string & {
9957
- readonly __brand: "uuidv7";
9958
- };
9959
- projectId: string & {
9960
- readonly __brand: "uuidv7";
9961
- };
9962
- requestedByUserId: string & {
9963
- readonly __brand: "uuidv7";
9964
- };
9965
- gitUrl: string;
9966
- requestedBranch: string | null;
9967
- resolvedBranch: string | null;
9968
- projectEnvironmentRef: string | null;
9969
- agentEnvironmentRef: string | null;
9970
- runnerAssignment: string | null;
9971
- workspacePath: string | null;
9972
- devcontainerId: string | null;
9973
- aiContainerId: string | null;
9974
- aiBaseUrl: string | null;
9975
- aiImage: string | null;
9976
- devcontainerConfigPath: string | null;
9977
- projectEnvironmentReadyAt: string | null;
9978
- agentEnvironmentReadyAt: string | null;
9979
- status: "queued" | "running" | "failed" | "cloning" | "validating_spec" | "launching" | "stopped";
9980
- failureReason: string | null;
9981
- metadata: import("@boboddy/core/common/contracts/json").AnyJsonObject;
9982
- createdAt: string;
9983
- updatedAt: string;
9984
- }[];
9985
- 403: {
9986
- type: string;
9987
- title: string;
9988
- status: number;
9989
- detail?: string | undefined;
9990
- instance?: string | undefined;
9991
- code?: string | undefined;
9992
- errors?: {
9993
- path: string;
9994
- message: string;
9995
- summary?: string | undefined;
9996
- }[] | undefined;
9997
- };
9998
- 401: {
9999
- type: string;
10000
- title: string;
10001
- status: number;
10002
- detail?: string | undefined;
10003
- instance?: string | undefined;
10004
- code?: string | undefined;
10005
- errors?: {
10006
- path: string;
10007
- message: string;
10008
- summary?: string | undefined;
10009
- }[] | undefined;
9896
+ type: "validation";
9897
+ on: string;
9898
+ summary?: string;
9899
+ message?: string;
9900
+ found?: unknown;
9901
+ property?: string;
9902
+ expected?: string;
10010
9903
  };
9904
+ 200: Response;
9905
+ 405: "Method Not Allowed";
10011
9906
  };
10012
9907
  };
10013
9908
  };
10014
9909
  };
10015
9910
  };
10016
- } & {
9911
+ };
9912
+ } & {
9913
+ api: {
10017
9914
  projects: {
10018
- ":projectId": {
10019
- "runtime-sessions": {
10020
- ":runtimeSessionId": {
10021
- get: {
10022
- body: unknown;
10023
- params: {
10024
- projectId: string & {
10025
- readonly __brand: "uuidv7";
10026
- };
10027
- runtimeSessionId: string & {
10028
- readonly __brand: "uuidv7";
10029
- };
10030
- };
10031
- query: unknown;
10032
- headers: unknown;
10033
- response: {
10034
- 422: {
10035
- type: string;
10036
- title: string;
10037
- status: number;
10038
- detail?: string | undefined;
10039
- instance?: string | undefined;
10040
- code?: string | undefined;
10041
- errors?: {
10042
- path: string;
10043
- message: string;
10044
- summary?: string | undefined;
10045
- }[] | undefined;
10046
- };
10047
- 404: {
10048
- type: string;
10049
- title: string;
10050
- status: number;
10051
- detail?: string | undefined;
10052
- instance?: string | undefined;
10053
- code?: string | undefined;
10054
- errors?: {
10055
- path: string;
10056
- message: string;
10057
- summary?: string | undefined;
10058
- }[] | undefined;
10059
- };
10060
- 500: {
10061
- type: string;
10062
- title: string;
10063
- status: number;
10064
- detail?: string | undefined;
10065
- instance?: string | undefined;
10066
- code?: string | undefined;
9915
+ post: {
9916
+ body: {
9917
+ name: string;
9918
+ description: string | null;
9919
+ gitUrl: string;
9920
+ };
9921
+ params: {};
9922
+ query: unknown;
9923
+ headers: unknown;
9924
+ response: {
9925
+ 422: {
9926
+ type: string;
9927
+ title: string;
9928
+ status: number;
9929
+ detail?: string | undefined;
9930
+ instance?: string | undefined;
9931
+ code?: string | undefined;
9932
+ errors?: {
9933
+ path: string;
9934
+ message: string;
9935
+ summary?: string | undefined;
9936
+ }[] | undefined;
9937
+ };
9938
+ 500: {
9939
+ type: string;
9940
+ title: string;
9941
+ status: number;
9942
+ detail?: string | undefined;
9943
+ instance?: string | undefined;
9944
+ code?: string | undefined;
9945
+ errors?: {
9946
+ path: string;
9947
+ message: string;
9948
+ summary?: string | undefined;
9949
+ }[] | undefined;
9950
+ };
9951
+ 200: {
9952
+ id: string & {
9953
+ readonly __brand: "uuidv7";
9954
+ };
9955
+ name: string;
9956
+ description: string | null;
9957
+ gitUrl: string;
9958
+ createdByUserId: string & {
9959
+ readonly __brand: "uuidv7";
9960
+ };
9961
+ memberships: {
9962
+ userId: string & {
9963
+ readonly __brand: "uuidv7";
9964
+ };
9965
+ permissions: string[];
9966
+ createdAt: string;
9967
+ updatedAt: string;
9968
+ }[];
9969
+ createdAt: string;
9970
+ updatedAt: string;
9971
+ };
9972
+ 403: {
9973
+ type: string;
9974
+ title: string;
9975
+ status: number;
9976
+ detail?: string | undefined;
9977
+ instance?: string | undefined;
9978
+ code?: string | undefined;
9979
+ errors?: {
9980
+ path: string;
9981
+ message: string;
9982
+ summary?: string | undefined;
9983
+ }[] | undefined;
9984
+ };
9985
+ 400: {
9986
+ type: string;
9987
+ title: string;
9988
+ status: number;
9989
+ detail?: string | undefined;
9990
+ instance?: string | undefined;
9991
+ code?: string | undefined;
9992
+ errors?: {
9993
+ path: string;
9994
+ message: string;
9995
+ summary?: string | undefined;
9996
+ }[] | undefined;
9997
+ };
9998
+ 401: {
9999
+ type: string;
10000
+ title: string;
10001
+ status: number;
10002
+ detail?: string | undefined;
10003
+ instance?: string | undefined;
10004
+ code?: string | undefined;
10005
+ errors?: {
10006
+ path: string;
10007
+ message: string;
10008
+ summary?: string | undefined;
10009
+ }[] | undefined;
10010
+ };
10011
+ };
10012
+ };
10013
+ };
10014
+ } & {
10015
+ projects: {
10016
+ get: {
10017
+ body: unknown;
10018
+ params: {};
10019
+ query: unknown;
10020
+ headers: unknown;
10021
+ response: {
10022
+ 422: {
10023
+ type: "validation";
10024
+ on: string;
10025
+ summary?: string;
10026
+ message?: string;
10027
+ found?: unknown;
10028
+ property?: string;
10029
+ expected?: string;
10030
+ };
10031
+ 500: {
10032
+ type: string;
10033
+ title: string;
10034
+ status: number;
10035
+ detail?: string | undefined;
10036
+ instance?: string | undefined;
10037
+ code?: string | undefined;
10038
+ errors?: {
10039
+ path: string;
10040
+ message: string;
10041
+ summary?: string | undefined;
10042
+ }[] | undefined;
10043
+ };
10044
+ 200: {
10045
+ id: string & {
10046
+ readonly __brand: "uuidv7";
10047
+ };
10048
+ name: string;
10049
+ description: string | null;
10050
+ gitUrl: string;
10051
+ createdByUserId: string & {
10052
+ readonly __brand: "uuidv7";
10053
+ };
10054
+ memberships: {
10055
+ userId: string & {
10056
+ readonly __brand: "uuidv7";
10057
+ };
10058
+ permissions: string[];
10059
+ createdAt: string;
10060
+ updatedAt: string;
10061
+ }[];
10062
+ createdAt: string;
10063
+ updatedAt: string;
10064
+ }[];
10065
+ 401: {
10066
+ type: string;
10067
+ title: string;
10068
+ status: number;
10069
+ detail?: string | undefined;
10070
+ instance?: string | undefined;
10071
+ code?: string | undefined;
10072
+ errors?: {
10073
+ path: string;
10074
+ message: string;
10075
+ summary?: string | undefined;
10076
+ }[] | undefined;
10077
+ };
10078
+ };
10079
+ };
10080
+ };
10081
+ } & {
10082
+ projects: {
10083
+ ":projectId": {
10084
+ "work-items": {
10085
+ get: {
10086
+ body: unknown;
10087
+ params: {
10088
+ projectId: string & {
10089
+ readonly __brand: "uuidv7";
10090
+ };
10091
+ };
10092
+ query: unknown;
10093
+ headers: unknown;
10094
+ response: {
10095
+ 422: {
10096
+ type: string;
10097
+ title: string;
10098
+ status: number;
10099
+ detail?: string | undefined;
10100
+ instance?: string | undefined;
10101
+ code?: string | undefined;
10102
+ errors?: {
10103
+ path: string;
10104
+ message: string;
10105
+ summary?: string | undefined;
10106
+ }[] | undefined;
10107
+ };
10108
+ 404: {
10109
+ type: string;
10110
+ title: string;
10111
+ status: number;
10112
+ detail?: string | undefined;
10113
+ instance?: string | undefined;
10114
+ code?: string | undefined;
10115
+ errors?: {
10116
+ path: string;
10117
+ message: string;
10118
+ summary?: string | undefined;
10119
+ }[] | undefined;
10120
+ };
10121
+ 500: {
10122
+ type: string;
10123
+ title: string;
10124
+ status: number;
10125
+ detail?: string | undefined;
10126
+ instance?: string | undefined;
10127
+ code?: string | undefined;
10128
+ errors?: {
10129
+ path: string;
10130
+ message: string;
10131
+ summary?: string | undefined;
10132
+ }[] | undefined;
10133
+ };
10134
+ 200: {
10135
+ id: string & {
10136
+ readonly __brand: "uuidv7";
10137
+ };
10138
+ projectId: string & {
10139
+ readonly __brand: "uuidv7";
10140
+ };
10141
+ platform: "jira" | "github" | "linear" | "boboddy" | "custom";
10142
+ platformKey: string;
10143
+ title: string;
10144
+ description: string;
10145
+ sourceCreatedAt: string | null;
10146
+ sourceUpdatedAt: string | null;
10147
+ fields: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
10148
+ createdAt: string;
10149
+ updatedAt: string;
10150
+ platformId?: string | null | undefined;
10151
+ url?: string | null | undefined;
10152
+ }[];
10153
+ 403: {
10154
+ type: string;
10155
+ title: string;
10156
+ status: number;
10157
+ detail?: string | undefined;
10158
+ instance?: string | undefined;
10159
+ code?: string | undefined;
10160
+ errors?: {
10161
+ path: string;
10162
+ message: string;
10163
+ summary?: string | undefined;
10164
+ }[] | undefined;
10165
+ };
10166
+ 401: {
10167
+ type: string;
10168
+ title: string;
10169
+ status: number;
10170
+ detail?: string | undefined;
10171
+ instance?: string | undefined;
10172
+ code?: string | undefined;
10173
+ errors?: {
10174
+ path: string;
10175
+ message: string;
10176
+ summary?: string | undefined;
10177
+ }[] | undefined;
10178
+ };
10179
+ };
10180
+ };
10181
+ };
10182
+ };
10183
+ };
10184
+ } & {
10185
+ projects: {
10186
+ ":projectId": {
10187
+ "runtime-sessions": {
10188
+ post: {
10189
+ body: {
10190
+ requestedBranch?: string | null | undefined;
10191
+ };
10192
+ params: {
10193
+ projectId: string & {
10194
+ readonly __brand: "uuidv7";
10195
+ };
10196
+ };
10197
+ query: unknown;
10198
+ headers: unknown;
10199
+ response: {
10200
+ 422: {
10201
+ type: string;
10202
+ title: string;
10203
+ status: number;
10204
+ detail?: string | undefined;
10205
+ instance?: string | undefined;
10206
+ code?: string | undefined;
10207
+ errors?: {
10208
+ path: string;
10209
+ message: string;
10210
+ summary?: string | undefined;
10211
+ }[] | undefined;
10212
+ };
10213
+ 404: {
10214
+ type: string;
10215
+ title: string;
10216
+ status: number;
10217
+ detail?: string | undefined;
10218
+ instance?: string | undefined;
10219
+ code?: string | undefined;
10220
+ errors?: {
10221
+ path: string;
10222
+ message: string;
10223
+ summary?: string | undefined;
10224
+ }[] | undefined;
10225
+ };
10226
+ 500: {
10227
+ type: string;
10228
+ title: string;
10229
+ status: number;
10230
+ detail?: string | undefined;
10231
+ instance?: string | undefined;
10232
+ code?: string | undefined;
10233
+ errors?: {
10234
+ path: string;
10235
+ message: string;
10236
+ summary?: string | undefined;
10237
+ }[] | undefined;
10238
+ };
10239
+ 200: {
10240
+ id: string & {
10241
+ readonly __brand: "uuidv7";
10242
+ };
10243
+ projectId: string & {
10244
+ readonly __brand: "uuidv7";
10245
+ };
10246
+ requestedByUserId: string & {
10247
+ readonly __brand: "uuidv7";
10248
+ };
10249
+ gitUrl: string;
10250
+ requestedBranch: string | null;
10251
+ resolvedBranch: string | null;
10252
+ projectEnvironmentRef: string | null;
10253
+ agentEnvironmentRef: string | null;
10254
+ runnerAssignment: string | null;
10255
+ workspacePath: string | null;
10256
+ devcontainerId: string | null;
10257
+ aiContainerId: string | null;
10258
+ aiBaseUrl: string | null;
10259
+ aiImage: string | null;
10260
+ devcontainerConfigPath: string | null;
10261
+ projectEnvironmentReadyAt: string | null;
10262
+ agentEnvironmentReadyAt: string | null;
10263
+ status: "queued" | "running" | "failed" | "cloning" | "validating_spec" | "launching" | "stopped";
10264
+ failureReason: string | null;
10265
+ metadata: import("@boboddy/core/common/contracts/json").AnyJsonObject;
10266
+ createdAt: string;
10267
+ updatedAt: string;
10268
+ };
10269
+ 403: {
10270
+ type: string;
10271
+ title: string;
10272
+ status: number;
10273
+ detail?: string | undefined;
10274
+ instance?: string | undefined;
10275
+ code?: string | undefined;
10276
+ errors?: {
10277
+ path: string;
10278
+ message: string;
10279
+ summary?: string | undefined;
10280
+ }[] | undefined;
10281
+ };
10282
+ 401: {
10283
+ type: string;
10284
+ title: string;
10285
+ status: number;
10286
+ detail?: string | undefined;
10287
+ instance?: string | undefined;
10288
+ code?: string | undefined;
10289
+ errors?: {
10290
+ path: string;
10291
+ message: string;
10292
+ summary?: string | undefined;
10293
+ }[] | undefined;
10294
+ };
10295
+ };
10296
+ };
10297
+ };
10298
+ };
10299
+ };
10300
+ } & {
10301
+ projects: {
10302
+ ":projectId": {
10303
+ "runtime-sessions": {
10304
+ get: {
10305
+ body: unknown;
10306
+ params: {
10307
+ projectId: string & {
10308
+ readonly __brand: "uuidv7";
10309
+ };
10310
+ };
10311
+ query: unknown;
10312
+ headers: unknown;
10313
+ response: {
10314
+ 422: {
10315
+ type: string;
10316
+ title: string;
10317
+ status: number;
10318
+ detail?: string | undefined;
10319
+ instance?: string | undefined;
10320
+ code?: string | undefined;
10321
+ errors?: {
10322
+ path: string;
10323
+ message: string;
10324
+ summary?: string | undefined;
10325
+ }[] | undefined;
10326
+ };
10327
+ 404: {
10328
+ type: string;
10329
+ title: string;
10330
+ status: number;
10331
+ detail?: string | undefined;
10332
+ instance?: string | undefined;
10333
+ code?: string | undefined;
10334
+ errors?: {
10335
+ path: string;
10336
+ message: string;
10337
+ summary?: string | undefined;
10338
+ }[] | undefined;
10339
+ };
10340
+ 500: {
10341
+ type: string;
10342
+ title: string;
10343
+ status: number;
10344
+ detail?: string | undefined;
10345
+ instance?: string | undefined;
10346
+ code?: string | undefined;
10347
+ errors?: {
10348
+ path: string;
10349
+ message: string;
10350
+ summary?: string | undefined;
10351
+ }[] | undefined;
10352
+ };
10353
+ 200: {
10354
+ id: string & {
10355
+ readonly __brand: "uuidv7";
10356
+ };
10357
+ projectId: string & {
10358
+ readonly __brand: "uuidv7";
10359
+ };
10360
+ requestedByUserId: string & {
10361
+ readonly __brand: "uuidv7";
10362
+ };
10363
+ gitUrl: string;
10364
+ requestedBranch: string | null;
10365
+ resolvedBranch: string | null;
10366
+ projectEnvironmentRef: string | null;
10367
+ agentEnvironmentRef: string | null;
10368
+ runnerAssignment: string | null;
10369
+ workspacePath: string | null;
10370
+ devcontainerId: string | null;
10371
+ aiContainerId: string | null;
10372
+ aiBaseUrl: string | null;
10373
+ aiImage: string | null;
10374
+ devcontainerConfigPath: string | null;
10375
+ projectEnvironmentReadyAt: string | null;
10376
+ agentEnvironmentReadyAt: string | null;
10377
+ status: "queued" | "running" | "failed" | "cloning" | "validating_spec" | "launching" | "stopped";
10378
+ failureReason: string | null;
10379
+ metadata: import("@boboddy/core/common/contracts/json").AnyJsonObject;
10380
+ createdAt: string;
10381
+ updatedAt: string;
10382
+ }[];
10383
+ 403: {
10384
+ type: string;
10385
+ title: string;
10386
+ status: number;
10387
+ detail?: string | undefined;
10388
+ instance?: string | undefined;
10389
+ code?: string | undefined;
10390
+ errors?: {
10391
+ path: string;
10392
+ message: string;
10393
+ summary?: string | undefined;
10394
+ }[] | undefined;
10395
+ };
10396
+ 401: {
10397
+ type: string;
10398
+ title: string;
10399
+ status: number;
10400
+ detail?: string | undefined;
10401
+ instance?: string | undefined;
10402
+ code?: string | undefined;
10403
+ errors?: {
10404
+ path: string;
10405
+ message: string;
10406
+ summary?: string | undefined;
10407
+ }[] | undefined;
10408
+ };
10409
+ };
10410
+ };
10411
+ };
10412
+ };
10413
+ };
10414
+ } & {
10415
+ projects: {
10416
+ ":projectId": {
10417
+ "runtime-sessions": {
10418
+ ":runtimeSessionId": {
10419
+ get: {
10420
+ body: unknown;
10421
+ params: {
10422
+ projectId: string & {
10423
+ readonly __brand: "uuidv7";
10424
+ };
10425
+ runtimeSessionId: string & {
10426
+ readonly __brand: "uuidv7";
10427
+ };
10428
+ };
10429
+ query: unknown;
10430
+ headers: unknown;
10431
+ response: {
10432
+ 422: {
10433
+ type: string;
10434
+ title: string;
10435
+ status: number;
10436
+ detail?: string | undefined;
10437
+ instance?: string | undefined;
10438
+ code?: string | undefined;
10439
+ errors?: {
10440
+ path: string;
10441
+ message: string;
10442
+ summary?: string | undefined;
10443
+ }[] | undefined;
10444
+ };
10445
+ 404: {
10446
+ type: string;
10447
+ title: string;
10448
+ status: number;
10449
+ detail?: string | undefined;
10450
+ instance?: string | undefined;
10451
+ code?: string | undefined;
10452
+ errors?: {
10453
+ path: string;
10454
+ message: string;
10455
+ summary?: string | undefined;
10456
+ }[] | undefined;
10457
+ };
10458
+ 500: {
10459
+ type: string;
10460
+ title: string;
10461
+ status: number;
10462
+ detail?: string | undefined;
10463
+ instance?: string | undefined;
10464
+ code?: string | undefined;
10067
10465
  errors?: {
10068
10466
  path: string;
10069
10467
  message: string;
@@ -12182,6 +12580,7 @@ export declare const app: Elysia<"/api", {
12182
12580
  workerId: string;
12183
12581
  batchSize: number;
12184
12582
  leaseDurationSeconds: number;
12583
+ workItemId?: string | undefined;
12185
12584
  };
12186
12585
  params: {};
12187
12586
  query: unknown;
@@ -18699,21 +19098,126 @@ export declare const app: Elysia<"/api", {
18699
19098
  };
18700
19099
  };
18701
19100
  };
18702
- };
18703
- } & {
18704
- api: {
19101
+ };
19102
+ } & {
19103
+ api: {
19104
+ projects: {
19105
+ ":projectId": {
19106
+ "step-signals": {
19107
+ ":stepSignalId": {
19108
+ "feedback-requests": {
19109
+ get: {
19110
+ body: unknown;
19111
+ params: {
19112
+ projectId: string & {
19113
+ readonly __brand: "uuidv7";
19114
+ };
19115
+ stepSignalId: string & {
19116
+ readonly __brand: "uuidv7";
19117
+ };
19118
+ };
19119
+ query: unknown;
19120
+ headers: unknown;
19121
+ response: {
19122
+ 422: {
19123
+ type: string;
19124
+ title: string;
19125
+ status: number;
19126
+ detail?: string | undefined;
19127
+ instance?: string | undefined;
19128
+ code?: string | undefined;
19129
+ errors?: {
19130
+ path: string;
19131
+ message: string;
19132
+ summary?: string | undefined;
19133
+ }[] | undefined;
19134
+ };
19135
+ 404: {
19136
+ type: string;
19137
+ title: string;
19138
+ status: number;
19139
+ detail?: string | undefined;
19140
+ instance?: string | undefined;
19141
+ code?: string | undefined;
19142
+ errors?: {
19143
+ path: string;
19144
+ message: string;
19145
+ summary?: string | undefined;
19146
+ }[] | undefined;
19147
+ };
19148
+ 500: {
19149
+ type: string;
19150
+ title: string;
19151
+ status: number;
19152
+ detail?: string | undefined;
19153
+ instance?: string | undefined;
19154
+ code?: string | undefined;
19155
+ errors?: {
19156
+ path: string;
19157
+ message: string;
19158
+ summary?: string | undefined;
19159
+ }[] | undefined;
19160
+ };
19161
+ 200: {
19162
+ id: string & {
19163
+ readonly __brand: "uuidv7";
19164
+ };
19165
+ stepSignalId: string & {
19166
+ readonly __brand: "uuidv7";
19167
+ };
19168
+ question: string;
19169
+ category: string;
19170
+ suggestedKey: string | null;
19171
+ status: "pending" | "answered" | "declined";
19172
+ createdAt: string;
19173
+ updatedAt: string;
19174
+ }[];
19175
+ 403: {
19176
+ type: string;
19177
+ title: string;
19178
+ status: number;
19179
+ detail?: string | undefined;
19180
+ instance?: string | undefined;
19181
+ code?: string | undefined;
19182
+ errors?: {
19183
+ path: string;
19184
+ message: string;
19185
+ summary?: string | undefined;
19186
+ }[] | undefined;
19187
+ };
19188
+ 401: {
19189
+ type: string;
19190
+ title: string;
19191
+ status: number;
19192
+ detail?: string | undefined;
19193
+ instance?: string | undefined;
19194
+ code?: string | undefined;
19195
+ errors?: {
19196
+ path: string;
19197
+ message: string;
19198
+ summary?: string | undefined;
19199
+ }[] | undefined;
19200
+ };
19201
+ };
19202
+ };
19203
+ };
19204
+ };
19205
+ };
19206
+ };
19207
+ };
19208
+ } & {
18705
19209
  projects: {
18706
19210
  ":projectId": {
18707
- "step-signals": {
18708
- ":stepSignalId": {
18709
- "feedback-requests": {
18710
- get: {
19211
+ "feedback-requests": {
19212
+ ":feedbackRequestId": {
19213
+ decline: {
19214
+ post: {
18711
19215
  body: unknown;
18712
19216
  params: {
18713
19217
  projectId: string & {
18714
19218
  readonly __brand: "uuidv7";
18715
19219
  };
18716
- stepSignalId: string & {
19220
+ feedbackRequestId: string & {
18717
19221
  readonly __brand: "uuidv7";
18718
19222
  };
18719
19223
  };
@@ -18759,20 +19263,7 @@ export declare const app: Elysia<"/api", {
18759
19263
  summary?: string | undefined;
18760
19264
  }[] | undefined;
18761
19265
  };
18762
- 200: {
18763
- id: string & {
18764
- readonly __brand: "uuidv7";
18765
- };
18766
- stepSignalId: string & {
18767
- readonly __brand: "uuidv7";
18768
- };
18769
- question: string;
18770
- category: string;
18771
- suggestedKey: string | null;
18772
- status: "pending" | "answered" | "declined";
18773
- createdAt: string;
18774
- updatedAt: string;
18775
- }[];
19266
+ 200: null;
18776
19267
  403: {
18777
19268
  type: string;
18778
19269
  title: string;
@@ -18806,92 +19297,397 @@ export declare const app: Elysia<"/api", {
18806
19297
  };
18807
19298
  };
18808
19299
  };
19300
+ };
19301
+ } & {
19302
+ api: {
19303
+ "step-definition-templates": {
19304
+ get: {
19305
+ body: unknown;
19306
+ params: {};
19307
+ query: unknown;
19308
+ headers: unknown;
19309
+ response: {
19310
+ 422: {
19311
+ type: "validation";
19312
+ on: string;
19313
+ summary?: string;
19314
+ message?: string;
19315
+ found?: unknown;
19316
+ property?: string;
19317
+ expected?: string;
19318
+ };
19319
+ 500: {
19320
+ type: string;
19321
+ title: string;
19322
+ status: number;
19323
+ detail?: string | undefined;
19324
+ instance?: string | undefined;
19325
+ code?: string | undefined;
19326
+ errors?: {
19327
+ path: string;
19328
+ message: string;
19329
+ summary?: string | undefined;
19330
+ }[] | undefined;
19331
+ };
19332
+ 200: {
19333
+ id: string & {
19334
+ readonly __brand: "uuidv7";
19335
+ };
19336
+ key: string;
19337
+ name: string;
19338
+ description: string | null;
19339
+ promptTemplate: string | null;
19340
+ inputSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
19341
+ resultSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
19342
+ opencodeMcpJson: Record<string, {
19343
+ type: "local";
19344
+ command: string[];
19345
+ environment?: Record<string, string> | undefined;
19346
+ enabled?: boolean | undefined;
19347
+ timeout?: number | undefined;
19348
+ } | {
19349
+ type: "remote";
19350
+ url: string;
19351
+ enabled?: boolean | undefined;
19352
+ headers?: Record<string, string> | undefined;
19353
+ oauth?: false | {
19354
+ clientId?: string | undefined;
19355
+ clientSecret?: string | undefined;
19356
+ scope?: string | undefined;
19357
+ redirectUri?: string | undefined;
19358
+ } | undefined;
19359
+ timeout?: number | undefined;
19360
+ } | {
19361
+ enabled: boolean;
19362
+ }> | null;
19363
+ signalExtractorDefinitions: {
19364
+ key: string;
19365
+ sourcePath: string;
19366
+ type: "string" | "number" | "boolean" | "object" | "array";
19367
+ required: boolean;
19368
+ availableWhenResultStatusIn: string[] | null;
19369
+ }[];
19370
+ parameters: {
19371
+ key: string;
19372
+ label: string;
19373
+ type: "text" | "textarea";
19374
+ required: boolean;
19375
+ description?: string | null | undefined;
19376
+ placeholder?: string | null | undefined;
19377
+ }[];
19378
+ status: "active" | "archived";
19379
+ createdAt: string;
19380
+ updatedAt: string;
19381
+ }[];
19382
+ 401: {
19383
+ type: string;
19384
+ title: string;
19385
+ status: number;
19386
+ detail?: string | undefined;
19387
+ instance?: string | undefined;
19388
+ code?: string | undefined;
19389
+ errors?: {
19390
+ path: string;
19391
+ message: string;
19392
+ summary?: string | undefined;
19393
+ }[] | undefined;
19394
+ };
19395
+ };
19396
+ };
19397
+ };
19398
+ } & {
19399
+ "step-definition-templates": {
19400
+ ":stepDefinitionTemplateId": {
19401
+ get: {
19402
+ body: unknown;
19403
+ params: {
19404
+ stepDefinitionTemplateId: string & {
19405
+ readonly __brand: "uuidv7";
19406
+ };
19407
+ };
19408
+ query: unknown;
19409
+ headers: unknown;
19410
+ response: {
19411
+ 422: {
19412
+ type: string;
19413
+ title: string;
19414
+ status: number;
19415
+ detail?: string | undefined;
19416
+ instance?: string | undefined;
19417
+ code?: string | undefined;
19418
+ errors?: {
19419
+ path: string;
19420
+ message: string;
19421
+ summary?: string | undefined;
19422
+ }[] | undefined;
19423
+ };
19424
+ 404: {
19425
+ type: string;
19426
+ title: string;
19427
+ status: number;
19428
+ detail?: string | undefined;
19429
+ instance?: string | undefined;
19430
+ code?: string | undefined;
19431
+ errors?: {
19432
+ path: string;
19433
+ message: string;
19434
+ summary?: string | undefined;
19435
+ }[] | undefined;
19436
+ };
19437
+ 500: {
19438
+ type: string;
19439
+ title: string;
19440
+ status: number;
19441
+ detail?: string | undefined;
19442
+ instance?: string | undefined;
19443
+ code?: string | undefined;
19444
+ errors?: {
19445
+ path: string;
19446
+ message: string;
19447
+ summary?: string | undefined;
19448
+ }[] | undefined;
19449
+ };
19450
+ 200: {
19451
+ id: string & {
19452
+ readonly __brand: "uuidv7";
19453
+ };
19454
+ key: string;
19455
+ name: string;
19456
+ description: string | null;
19457
+ promptTemplate: string | null;
19458
+ inputSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
19459
+ resultSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
19460
+ opencodeMcpJson: Record<string, {
19461
+ type: "local";
19462
+ command: string[];
19463
+ environment?: Record<string, string> | undefined;
19464
+ enabled?: boolean | undefined;
19465
+ timeout?: number | undefined;
19466
+ } | {
19467
+ type: "remote";
19468
+ url: string;
19469
+ enabled?: boolean | undefined;
19470
+ headers?: Record<string, string> | undefined;
19471
+ oauth?: false | {
19472
+ clientId?: string | undefined;
19473
+ clientSecret?: string | undefined;
19474
+ scope?: string | undefined;
19475
+ redirectUri?: string | undefined;
19476
+ } | undefined;
19477
+ timeout?: number | undefined;
19478
+ } | {
19479
+ enabled: boolean;
19480
+ }> | null;
19481
+ signalExtractorDefinitions: {
19482
+ key: string;
19483
+ sourcePath: string;
19484
+ type: "string" | "number" | "boolean" | "object" | "array";
19485
+ required: boolean;
19486
+ availableWhenResultStatusIn: string[] | null;
19487
+ }[];
19488
+ parameters: {
19489
+ key: string;
19490
+ label: string;
19491
+ type: "text" | "textarea";
19492
+ required: boolean;
19493
+ description?: string | null | undefined;
19494
+ placeholder?: string | null | undefined;
19495
+ }[];
19496
+ status: "active" | "archived";
19497
+ createdAt: string;
19498
+ updatedAt: string;
19499
+ };
19500
+ 401: {
19501
+ type: string;
19502
+ title: string;
19503
+ status: number;
19504
+ detail?: string | undefined;
19505
+ instance?: string | undefined;
19506
+ code?: string | undefined;
19507
+ errors?: {
19508
+ path: string;
19509
+ message: string;
19510
+ summary?: string | undefined;
19511
+ }[] | undefined;
19512
+ };
19513
+ };
19514
+ };
19515
+ };
19516
+ };
18809
19517
  } & {
18810
- projects: {
18811
- ":projectId": {
18812
- "feedback-requests": {
18813
- ":feedbackRequestId": {
18814
- decline: {
18815
- post: {
18816
- body: unknown;
18817
- params: {
18818
- projectId: string & {
19518
+ "step-definition-templates": {
19519
+ ":stepDefinitionTemplateId": {
19520
+ instantiate: {
19521
+ post: {
19522
+ body: {
19523
+ projectId: string & {
19524
+ readonly __brand: "uuidv7";
19525
+ };
19526
+ name: string;
19527
+ parameterValues: Record<string, string>;
19528
+ };
19529
+ params: {
19530
+ stepDefinitionTemplateId: string & {
19531
+ readonly __brand: "uuidv7";
19532
+ };
19533
+ };
19534
+ query: unknown;
19535
+ headers: unknown;
19536
+ response: {
19537
+ 422: {
19538
+ type: string;
19539
+ title: string;
19540
+ status: number;
19541
+ detail?: string | undefined;
19542
+ instance?: string | undefined;
19543
+ code?: string | undefined;
19544
+ errors?: {
19545
+ path: string;
19546
+ message: string;
19547
+ summary?: string | undefined;
19548
+ }[] | undefined;
19549
+ };
19550
+ 404: {
19551
+ type: string;
19552
+ title: string;
19553
+ status: number;
19554
+ detail?: string | undefined;
19555
+ instance?: string | undefined;
19556
+ code?: string | undefined;
19557
+ errors?: {
19558
+ path: string;
19559
+ message: string;
19560
+ summary?: string | undefined;
19561
+ }[] | undefined;
19562
+ };
19563
+ 409: {
19564
+ type: string;
19565
+ title: string;
19566
+ status: number;
19567
+ detail?: string | undefined;
19568
+ instance?: string | undefined;
19569
+ code?: string | undefined;
19570
+ errors?: {
19571
+ path: string;
19572
+ message: string;
19573
+ summary?: string | undefined;
19574
+ }[] | undefined;
19575
+ };
19576
+ 500: {
19577
+ type: string;
19578
+ title: string;
19579
+ status: number;
19580
+ detail?: string | undefined;
19581
+ instance?: string | undefined;
19582
+ code?: string | undefined;
19583
+ errors?: {
19584
+ path: string;
19585
+ message: string;
19586
+ summary?: string | undefined;
19587
+ }[] | undefined;
19588
+ };
19589
+ 200: {
19590
+ id: string & {
19591
+ readonly __brand: "uuidv7";
19592
+ };
19593
+ projectId: string & {
19594
+ readonly __brand: "uuidv7";
19595
+ };
19596
+ key: string;
19597
+ name: string;
19598
+ description: string | null;
19599
+ prompt: string | null;
19600
+ version: number;
19601
+ kind: "built_in" | "user_defined";
19602
+ inputSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
19603
+ resultSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
19604
+ opencodeMcpJson: Record<string, {
19605
+ type: "local";
19606
+ command: string[];
19607
+ environment?: Record<string, string> | undefined;
19608
+ enabled?: boolean | undefined;
19609
+ timeout?: number | undefined;
19610
+ } | {
19611
+ type: "remote";
19612
+ url: string;
19613
+ enabled?: boolean | undefined;
19614
+ headers?: Record<string, string> | undefined;
19615
+ oauth?: false | {
19616
+ clientId?: string | undefined;
19617
+ clientSecret?: string | undefined;
19618
+ scope?: string | undefined;
19619
+ redirectUri?: string | undefined;
19620
+ } | undefined;
19621
+ timeout?: number | undefined;
19622
+ } | {
19623
+ enabled: boolean;
19624
+ }> | null;
19625
+ status: "draft" | "active" | "archived";
19626
+ signalExtractorDefinitions: {
19627
+ id: string & {
18819
19628
  readonly __brand: "uuidv7";
18820
19629
  };
18821
- feedbackRequestId: string & {
19630
+ key: string;
19631
+ sourcePath: string;
19632
+ type: "string" | "number" | "boolean" | "object" | "array";
19633
+ required: boolean;
19634
+ availableWhenResultStatusIn: string[] | null;
19635
+ createdAt: string;
19636
+ updatedAt: string;
19637
+ }[];
19638
+ computedSignalDefinitions: {
19639
+ id: string & {
18822
19640
  readonly __brand: "uuidv7";
18823
19641
  };
18824
- };
18825
- query: unknown;
18826
- headers: unknown;
18827
- response: {
18828
- 422: {
18829
- type: string;
18830
- title: string;
18831
- status: number;
18832
- detail?: string | undefined;
18833
- instance?: string | undefined;
18834
- code?: string | undefined;
18835
- errors?: {
18836
- path: string;
18837
- message: string;
18838
- summary?: string | undefined;
18839
- }[] | undefined;
18840
- };
18841
- 404: {
18842
- type: string;
18843
- title: string;
18844
- status: number;
18845
- detail?: string | undefined;
18846
- instance?: string | undefined;
18847
- code?: string | undefined;
18848
- errors?: {
18849
- path: string;
18850
- message: string;
18851
- summary?: string | undefined;
18852
- }[] | undefined;
18853
- };
18854
- 500: {
18855
- type: string;
18856
- title: string;
18857
- status: number;
18858
- detail?: string | undefined;
18859
- instance?: string | undefined;
18860
- code?: string | undefined;
18861
- errors?: {
18862
- path: string;
18863
- message: string;
18864
- summary?: string | undefined;
18865
- }[] | undefined;
18866
- };
18867
- 200: null;
18868
- 403: {
18869
- type: string;
18870
- title: string;
18871
- status: number;
18872
- detail?: string | undefined;
18873
- instance?: string | undefined;
18874
- code?: string | undefined;
18875
- errors?: {
18876
- path: string;
18877
- message: string;
18878
- summary?: string | undefined;
18879
- }[] | undefined;
18880
- };
18881
- 401: {
18882
- type: string;
18883
- title: string;
18884
- status: number;
18885
- detail?: string | undefined;
18886
- instance?: string | undefined;
18887
- code?: string | undefined;
18888
- errors?: {
18889
- path: string;
18890
- message: string;
18891
- summary?: string | undefined;
18892
- }[] | undefined;
18893
- };
18894
- };
19642
+ key: string;
19643
+ type: "custom" | "average" | "weighted_average" | "sum" | "min" | "max";
19644
+ inputSignalKeys: string[];
19645
+ configJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
19646
+ availableWhenResultStatusIn: string[] | null;
19647
+ createdAt: string;
19648
+ updatedAt: string;
19649
+ }[];
19650
+ createdAt: string;
19651
+ updatedAt: string;
19652
+ };
19653
+ 403: {
19654
+ type: string;
19655
+ title: string;
19656
+ status: number;
19657
+ detail?: string | undefined;
19658
+ instance?: string | undefined;
19659
+ code?: string | undefined;
19660
+ errors?: {
19661
+ path: string;
19662
+ message: string;
19663
+ summary?: string | undefined;
19664
+ }[] | undefined;
19665
+ };
19666
+ 400: {
19667
+ type: string;
19668
+ title: string;
19669
+ status: number;
19670
+ detail?: string | undefined;
19671
+ instance?: string | undefined;
19672
+ code?: string | undefined;
19673
+ errors?: {
19674
+ path: string;
19675
+ message: string;
19676
+ summary?: string | undefined;
19677
+ }[] | undefined;
19678
+ };
19679
+ 401: {
19680
+ type: string;
19681
+ title: string;
19682
+ status: number;
19683
+ detail?: string | undefined;
19684
+ instance?: string | undefined;
19685
+ code?: string | undefined;
19686
+ errors?: {
19687
+ path: string;
19688
+ message: string;
19689
+ summary?: string | undefined;
19690
+ }[] | undefined;
18895
19691
  };
18896
19692
  };
18897
19693
  };