@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.
- package/dist/apps/api/src/app.d.ts +1371 -575
- package/dist/apps/api/src/http/routes/step-definition-templates.d.ts +477 -0
- package/dist/apps/api/src/http/routes/step-executions.d.ts +1 -0
- package/dist/packages/core/src/access/authorization/application/authorization-service.d.ts +12 -0
- package/dist/packages/core/src/access/authorization/infra/project-authorization-service.d.ts +7 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/ai-container-launcher.d.ts +21 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/create-project-runtime-session.d.ts +13 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/devcontainer-launcher.d.ts +21 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/get-project-runtime-session.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/git-clone-service.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/list-project-runtime-sessions.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-contract-mapper.d.ts +3 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-execution-target.d.ts +3 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-network-metadata.d.ts +15 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-repo.d.ts +10 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/runtime-session-network-manager.d.ts +14 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/stop-project-runtime-session.d.ts +29 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/workspace-manager.d.ts +10 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/contracts/project-runtime-session-contracts.d.ts +62 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity-helpers.d.ts +12 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity.d.ts +99 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-execution-target.d.ts +16 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/devcontainer-cli-launcher.d.ts +6 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/docker-ai-container-launcher.d.ts +8 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/drizzle-project-runtime-session-repo.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/git-cli-clone-service.d.ts +4 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-jsonc.d.ts +4 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager-support.d.ts +42 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager.d.ts +24 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-working-directory.d.ts +5 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-docker-runtime-session-network-manager.d.ts +17 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-workspace-manager.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/complete-claimed-runtime-command.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/create-runtime-command.d.ts +17 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/fail-claimed-runtime-command.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/interrupt-claimed-runtime-command.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/run-runtime-command-locally.d.ts +26 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-claim-helpers.d.ts +1 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-contract-mapper.d.ts +3 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-output-summary.d.ts +4 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-repo.d.ts +20 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-runner.d.ts +25 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/contracts/runtime-command-contracts.d.ts +194 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/domain/runtime-command-entity.d.ts +111 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/infra/drizzle-runtime-command-repo.d.ts +20 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/infra/local-runtime-command-runner.d.ts +25 -0
- package/dist/packages/core/src/agent-sessions/runtime-environment/domain/runtime-environment.d.ts +12 -0
- package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-publisher.d.ts +24 -0
- package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-repo.d.ts +17 -0
- package/dist/packages/core/src/agent-sessions/runtime-operation-event/domain/runtime-operation-event.d.ts +35 -0
- package/dist/packages/core/src/agent-sessions/runtime-operation-event/infra/file-runtime-operation-event-repo.d.ts +25 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/create-runtime-service.d.ts +17 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/get-runtime-service.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-contract-mapper.d.ts +3 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-output-summary.d.ts +10 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-repo.d.ts +9 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-runner.d.ts +23 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-session-service-exposure-provider.d.ts +19 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/start-runtime-service-locally.d.ts +21 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/stop-runtime-service.d.ts +32 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/contracts/runtime-service-contracts.d.ts +140 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-access-point.d.ts +12 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-entity.d.ts +76 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-healthcheck.d.ts +20 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/infra/drizzle-runtime-service-repo.d.ts +9 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-readiness-probe.d.ts +42 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-runner.d.ts +32 -0
- package/dist/packages/core/src/common/contracts/json.d.ts +9 -0
- package/dist/packages/core/src/common/contracts/opencode-mcp.d.ts +73 -0
- package/dist/packages/core/src/common/contracts/uuid-v7.d.ts +8 -0
- package/dist/packages/core/src/lib/db/db-executor.d.ts +4 -0
- package/dist/packages/core/src/lib/db/index.d.ts +7 -0
- package/dist/packages/core/src/lib/db/schema.d.ts +4950 -0
- package/dist/packages/core/src/lib/di.d.ts +112 -0
- package/dist/packages/core/src/lib/domain-events/domain-event.d.ts +12 -0
- package/dist/packages/core/src/lib/domain-events/in-memory-domain-event-dispatcher.d.ts +7 -0
- package/dist/packages/core/src/lib/errors.d.ts +36 -0
- package/dist/packages/core/src/lib/logger.d.ts +7 -0
- package/dist/packages/core/src/lib/time-provider.d.ts +5 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/add-linear-pipeline-step-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/archive-linear-pipeline-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/create-linear-pipeline-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/get-linear-pipeline-definition.d.ts +7 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-contract-mapper.d.ts +3 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/list-linear-pipeline-definitions.d.ts +7 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/remove-linear-pipeline-step-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/set-linear-pipeline-step-advancement-policy-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-step-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/contracts/linear-pipeline-definition-contracts.d.ts +357 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/domain/linear-pipeline-definition-entity.d.ts +36 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-advancement-policy-definition-entity.d.ts +42 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-definition-entity.d.ts +42 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/infra/drizzle-linear-pipeline-definition-repo.d.ts +11 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/archive-step-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/create-step-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/get-step-definition.d.ts +7 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/list-step-definitions.d.ts +7 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-contract-mapper.d.ts +3 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-repo.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/update-step-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/contracts/step-definition-contracts.d.ts +281 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/domain/step-definition-entity.d.ts +53 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/entities/computed-signal-definition-entity.d.ts +31 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/entities/signal-extractor-definition-entity.d.ts +30 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/infra/drizzle-step-definition-repo.d.ts +11 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/get-step-definition-template.d.ts +6 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/instantiate-step-definition-template.d.ts +11 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/list-step-definition-templates.d.ts +5 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/step-definition-template-repo.d.ts +7 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/contracts/step-definition-template-contracts.d.ts +98 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/domain/step-definition-template-entity.d.ts +37 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/infra/drizzle-step-definition-template-repo.d.ts +9 -0
- package/dist/packages/core/src/pipeline-executions/feedback-request/application/create-feedback-requests-on-step-signal-created.d.ts +9 -0
- package/dist/packages/core/src/pipeline-executions/feedback-request/application/decline-feedback-request.d.ts +14 -0
- package/dist/packages/core/src/pipeline-executions/feedback-request/application/feedback-request-repo.d.ts +8 -0
- package/dist/packages/core/src/pipeline-executions/feedback-request/application/list-feedback-requests-by-step-signal.d.ts +15 -0
- package/dist/packages/core/src/pipeline-executions/feedback-request/contracts/feedback-request-contracts.d.ts +21 -0
- package/dist/packages/core/src/pipeline-executions/feedback-request/domain/feedback-request-entity.d.ts +29 -0
- package/dist/packages/core/src/pipeline-executions/feedback-request/infra/drizzle-feedback-request-repo.d.ts +10 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/accept-linear-pipeline-step-run.d.ts +15 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/apply-linear-pipeline-step-result-and-advance.d.ts +17 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/cancel-linear-pipeline-execution.d.ts +11 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-execution.d.ts +11 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-step-run-attempt.d.ts +13 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/get-linear-pipeline-execution.d.ts +11 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-contract-mapper.d.ts +3 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-helpers.d.ts +52 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-repo.d.ts +15 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-step-input-resolution.d.ts +5 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions-by-definition.d.ts +11 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions.d.ts +11 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/mark-linear-pipeline-step-run-attempt-running.d.ts +11 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/project-linear-pipeline-executions.d.ts +10 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/queue-first-linear-pipeline-step-run.d.ts +15 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/retrigger-linear-pipeline-step-run.d.ts +13 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/start-linear-pipeline-execution.d.ts +15 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/contracts/linear-pipeline-execution-contracts.d.ts +330 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/domain/linear-pipeline-execution-entity.d.ts +43 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-execution-event-entity.d.ts +25 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-evaluation-entity.d.ts +45 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-attempt-entity.d.ts +24 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-entity.d.ts +63 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/infra/drizzle-linear-pipeline-execution-repo.d.ts +19 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/add-step-execution-result.d.ts +9 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/claim-step-executions.d.ts +17 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/complete-claimed-step-execution.d.ts +35 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/create-step-execution.d.ts +9 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/extract-step-execution-signals.d.ts +13 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution-worker-context.d.ts +13 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution.d.ts +9 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/heartbeat-step-execution-claim.d.ts +17 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/list-step-executions-by-project.d.ts +9 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/load-status-adjusted-step-executions.d.ts +31 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/mark-step-execution-running.d.ts +9 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-claim-helpers.d.ts +13 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-contract-mapper.d.ts +7 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-repo.d.ts +29 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/contracts/step-execution-contracts.d.ts +325 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-execution-entity.d.ts +61 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-signal-created.domain-event.d.ts +18 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-execution-result-entity.d.ts +32 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-signal-entity.d.ts +36 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/infra/drizzle-step-execution-repo.d.ts +31 -0
- package/dist/packages/core/src/projects/project/application/create-project.d.ts +13 -0
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-create-failing-test-step-definition.d.ts +4 -0
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-description-quality-step-definition.d.ts +4 -0
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-fix-failing-test-step-definition.d.ts +4 -0
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-conventions.d.ts +9 -0
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-definitions.d.ts +7 -0
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-step-definitions.d.ts +8 -0
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-web-repro-playwright-step-definition.d.ts +4 -0
- package/dist/packages/core/src/projects/project/application/get-project.d.ts +9 -0
- package/dist/packages/core/src/projects/project/application/list-projects.d.ts +9 -0
- package/dist/packages/core/src/projects/project/application/project-authorization.d.ts +4 -0
- package/dist/packages/core/src/projects/project/application/project-contract-mapper.d.ts +3 -0
- package/dist/packages/core/src/projects/project/application/project-repo.d.ts +9 -0
- package/dist/packages/core/src/projects/project/application/seed-default-pipelines-on-project-created.d.ts +12 -0
- package/dist/packages/core/src/projects/project/application/update-project-membership.d.ts +11 -0
- package/dist/packages/core/src/projects/project/contracts/project-contracts.d.ts +37 -0
- package/dist/packages/core/src/projects/project/domain/project-created.domain-event.d.ts +13 -0
- package/dist/packages/core/src/projects/project/domain/project-entity.d.ts +31 -0
- package/dist/packages/core/src/projects/project/domain/project-git-url.d.ts +7 -0
- package/dist/packages/core/src/projects/project/domain/project-membership.d.ts +21 -0
- package/dist/packages/core/src/projects/project/domain/project-permission.d.ts +7 -0
- package/dist/packages/core/src/projects/project/infra/drizzle-project-repo.d.ts +11 -0
- package/dist/packages/core/src/projects/project-context/application/create-project-context-entry.d.ts +13 -0
- package/dist/packages/core/src/projects/project-context/application/delete-project-context-entry.d.ts +10 -0
- package/dist/packages/core/src/projects/project-context/application/list-project-context-entries.d.ts +13 -0
- package/dist/packages/core/src/projects/project-context/application/project-context-entry-repo.d.ts +8 -0
- package/dist/packages/core/src/projects/project-context/contracts/project-context-entry-contracts.d.ts +46 -0
- package/dist/packages/core/src/projects/project-context/domain/project-context-entry-entity.d.ts +27 -0
- package/dist/packages/core/src/projects/project-context/infra/drizzle-project-context-entry-repo.d.ts +10 -0
- package/dist/packages/core/src/projects/project-opencode-config/application/project-opencode-runtime-metadata.d.ts +17 -0
- package/dist/packages/core/src/work-items/work-item/application/create-work-item.d.ts +16 -0
- package/dist/packages/core/src/work-items/work-item/application/delete-work-items.d.ts +14 -0
- package/dist/packages/core/src/work-items/work-item/application/get-work-items.d.ts +14 -0
- package/dist/packages/core/src/work-items/work-item/application/list-work-items-by-project.d.ts +11 -0
- package/dist/packages/core/src/work-items/work-item/application/upsert-work-item.d.ts +16 -0
- package/dist/packages/core/src/work-items/work-item/application/work-item-contract-mapper.d.ts +4 -0
- package/dist/packages/core/src/work-items/work-item/application/work-item-repo.d.ts +27 -0
- package/dist/packages/core/src/work-items/work-item/contracts/work-item-contracts.d.ts +119 -0
- package/dist/packages/core/src/work-items/work-item/domain/date-utils.d.ts +1 -0
- package/dist/packages/core/src/work-items/work-item/domain/work-item-entity.d.ts +58 -0
- package/dist/packages/core/src/work-items/work-item/domain/work-item-field-value.d.ts +3 -0
- package/dist/packages/core/src/work-items/work-item/domain/work-item-id.d.ts +6 -0
- package/dist/packages/core/src/work-items/work-item/domain/work-item-platform.d.ts +2 -0
- package/dist/packages/core/src/work-items/work-item/domain/work-item-projection-fingerprint-entity.d.ts +18 -0
- package/dist/packages/core/src/work-items/work-item/infra/drizzle-work-item-repo.d.ts +25 -0
- package/dist/packages/sdks/js/src/define-step.d.ts +72 -0
- package/dist/packages/sdks/js/src/step-definitions-client.d.ts +202 -0
- package/dist/packages/sdks/js/src/step-execution-plane-client.d.ts +1 -0
- package/dist/packages/sdks/js/test/define-step.test.d.ts +1 -0
- package/package.json +17 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
|
|
2
|
+
import type { AuthorizationService } from "@boboddy/core/access/authorization/application/authorization-service";
|
|
3
|
+
import type { FeedbackRequestContract } from "../contracts/feedback-request-contracts";
|
|
4
|
+
import type { FeedbackRequestRepo } from "./feedback-request-repo";
|
|
5
|
+
type ListFeedbackRequestsByStepSignalInput = {
|
|
6
|
+
projectId: UuidV7;
|
|
7
|
+
stepSignalId: UuidV7;
|
|
8
|
+
};
|
|
9
|
+
type ListFeedbackRequestsByStepSignalDeps = {
|
|
10
|
+
userId: UuidV7;
|
|
11
|
+
authz: AuthorizationService;
|
|
12
|
+
feedbackRequestRepo: FeedbackRequestRepo;
|
|
13
|
+
};
|
|
14
|
+
export declare const listFeedbackRequestsByStepSignal: (input: ListFeedbackRequestsByStepSignalInput, deps: ListFeedbackRequestsByStepSignalDeps) => Promise<FeedbackRequestContract[]>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const feedbackRequestStatusSchema: z.ZodEnum<{
|
|
3
|
+
pending: "pending";
|
|
4
|
+
answered: "answered";
|
|
5
|
+
declined: "declined";
|
|
6
|
+
}>;
|
|
7
|
+
export declare const feedbackRequestSchema: z.ZodObject<{
|
|
8
|
+
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>>;
|
|
9
|
+
stepSignalId: 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>>;
|
|
10
|
+
question: z.ZodString;
|
|
11
|
+
category: z.ZodString;
|
|
12
|
+
suggestedKey: z.ZodNullable<z.ZodString>;
|
|
13
|
+
status: z.ZodEnum<{
|
|
14
|
+
pending: "pending";
|
|
15
|
+
answered: "answered";
|
|
16
|
+
declined: "declined";
|
|
17
|
+
}>;
|
|
18
|
+
createdAt: z.ZodISODateTime;
|
|
19
|
+
updatedAt: z.ZodISODateTime;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type FeedbackRequestContract = z.infer<typeof feedbackRequestSchema>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
|
|
2
|
+
export type FeedbackRequestStatus = "pending" | "answered" | "declined";
|
|
3
|
+
export type FeedbackRequestEntityProps = {
|
|
4
|
+
id: UuidV7;
|
|
5
|
+
stepSignalId: UuidV7;
|
|
6
|
+
question: string;
|
|
7
|
+
category: string;
|
|
8
|
+
suggestedKey: string | null;
|
|
9
|
+
status: FeedbackRequestStatus;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
};
|
|
13
|
+
export type CreateFeedbackRequestEntityProps = Omit<FeedbackRequestEntityProps, "id"> & {
|
|
14
|
+
id?: UuidV7;
|
|
15
|
+
};
|
|
16
|
+
export declare class FeedbackRequestEntity {
|
|
17
|
+
readonly id: UuidV7;
|
|
18
|
+
readonly stepSignalId: UuidV7;
|
|
19
|
+
readonly question: string;
|
|
20
|
+
readonly category: string;
|
|
21
|
+
readonly suggestedKey: string | null;
|
|
22
|
+
readonly status: FeedbackRequestStatus;
|
|
23
|
+
readonly createdAt: Date;
|
|
24
|
+
readonly updatedAt: Date;
|
|
25
|
+
private constructor();
|
|
26
|
+
static create(props: CreateFeedbackRequestEntityProps): FeedbackRequestEntity;
|
|
27
|
+
static rehydrate(props: FeedbackRequestEntityProps): FeedbackRequestEntity;
|
|
28
|
+
toJSON(): FeedbackRequestEntityProps;
|
|
29
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
|
|
3
|
+
import type { FeedbackRequestRepo } from "../application/feedback-request-repo";
|
|
4
|
+
import { FeedbackRequestEntity, type FeedbackRequestStatus } from "../domain/feedback-request-entity";
|
|
5
|
+
export declare class DrizzleFeedbackRequestRepo implements FeedbackRequestRepo {
|
|
6
|
+
private toEntity;
|
|
7
|
+
create(entity: FeedbackRequestEntity, dbExecutor?: DbExecutor): Promise<FeedbackRequestEntity>;
|
|
8
|
+
listByStepSignalId(stepSignalId: UuidV7, dbExecutor?: DbExecutor): Promise<FeedbackRequestEntity[]>;
|
|
9
|
+
updateStatus(id: UuidV7, status: FeedbackRequestStatus, dbExecutor?: DbExecutor): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
|
|
4
|
+
import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
|
|
5
|
+
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
6
|
+
import { type AcceptLinearPipelineStepRunInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
7
|
+
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
8
|
+
export declare const acceptLinearPipelineStepRun: (input: AcceptLinearPipelineStepRunInput, { linearPipelineDefinitionRepo, linearPipelineExecutionRepo, stepDefinitionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
9
|
+
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
10
|
+
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
11
|
+
stepDefinitionRepo: StepDefinitionRepo;
|
|
12
|
+
stepExecutionRepo: StepExecutionRepo;
|
|
13
|
+
timeProvider: TimeProvider;
|
|
14
|
+
dbExecutor?: DbExecutor | undefined;
|
|
15
|
+
}) => Promise<LinearPipelineExecutionContract>;
|
|
@@ -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 { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
|
|
6
|
+
import { type ApplyLinearPipelineStepResultInput, type GetLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
7
|
+
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
8
|
+
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
9
|
+
export declare const applyLinearPipelineStepResultAndAdvance: (linearPipelineExecutionIdInput: GetLinearPipelineExecutionInput, linearPipelineStepRunIdInput: GetLinearPipelineExecutionInput, linearPipelineStepRunAttemptIdInput: GetLinearPipelineExecutionInput, input: ApplyLinearPipelineStepResultInput, { linearPipelineDefinitionRepo, linearPipelineExecutionRepo, stepDefinitionRepo, stepExecutionRepo, timeProvider, domainEventDispatcher, dbExecutor, }: {
|
|
10
|
+
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
11
|
+
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
12
|
+
stepDefinitionRepo: StepDefinitionRepo;
|
|
13
|
+
stepExecutionRepo: StepExecutionRepo;
|
|
14
|
+
timeProvider: TimeProvider;
|
|
15
|
+
domainEventDispatcher?: InMemoryDomainEventDispatcher;
|
|
16
|
+
dbExecutor?: DbExecutor | undefined;
|
|
17
|
+
}) => Promise<LinearPipelineExecutionContract>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
4
|
+
import { type GetLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
5
|
+
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
6
|
+
export declare const cancelLinearPipelineExecution: (input: GetLinearPipelineExecutionInput, { linearPipelineExecutionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
7
|
+
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
8
|
+
stepExecutionRepo: StepExecutionRepo;
|
|
9
|
+
timeProvider: TimeProvider;
|
|
10
|
+
dbExecutor?: DbExecutor | undefined;
|
|
11
|
+
}) => Promise<LinearPipelineExecutionContract>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import { type CreateLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
4
|
+
import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
|
|
5
|
+
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
6
|
+
export declare const createLinearPipelineExecution: (input: CreateLinearPipelineExecutionInput, { linearPipelineDefinitionRepo, linearPipelineExecutionRepo, timeProvider, dbExecutor, }: {
|
|
7
|
+
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
8
|
+
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
9
|
+
timeProvider: TimeProvider;
|
|
10
|
+
dbExecutor?: DbExecutor | undefined;
|
|
11
|
+
}) => Promise<LinearPipelineExecutionContract>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
|
|
4
|
+
import { type GetLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
5
|
+
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
6
|
+
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
7
|
+
export declare const createLinearPipelineStepRunAttempt: (linearPipelineExecutionIdInput: GetLinearPipelineExecutionInput, linearPipelineStepRunIdInput: GetLinearPipelineExecutionInput, { linearPipelineDefinitionRepo, linearPipelineExecutionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
8
|
+
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
9
|
+
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
10
|
+
stepExecutionRepo: StepExecutionRepo;
|
|
11
|
+
timeProvider: TimeProvider;
|
|
12
|
+
dbExecutor?: DbExecutor | undefined;
|
|
13
|
+
}) => Promise<LinearPipelineExecutionContract>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
4
|
+
import { type GetLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
5
|
+
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
6
|
+
export declare const getLinearPipelineExecution: (input: GetLinearPipelineExecutionInput, { linearPipelineExecutionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
7
|
+
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
8
|
+
stepExecutionRepo: StepExecutionRepo;
|
|
9
|
+
timeProvider: TimeProvider;
|
|
10
|
+
dbExecutor?: DbExecutor | undefined;
|
|
11
|
+
}) => Promise<LinearPipelineExecutionContract>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
2
|
+
import type { LinearPipelineExecutionEntity } from "../domain/linear-pipeline-execution-entity";
|
|
3
|
+
export declare const linearPipelineExecutionEntityToContract: (entity: LinearPipelineExecutionEntity) => LinearPipelineExecutionContract;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { AnyJsonObject, AnyJsonValue } from "@boboddy/core/common/contracts/json";
|
|
2
|
+
import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
|
|
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 { LinearPipelineDefinitionEntity } from "@boboddy/core/pipeline-definitions/pipeline-definition/domain/linear-pipeline-definition-entity";
|
|
6
|
+
import type { LinearPipelineStepDefinitionEntity } from "@boboddy/core/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-definition-entity";
|
|
7
|
+
import type { LinearPipelineExecutionEntity } from "../domain/linear-pipeline-execution-entity";
|
|
8
|
+
import { LinearPipelineExecutionEventEntity } from "../entities/linear-pipeline-execution-event-entity";
|
|
9
|
+
import { LinearPipelineStepEvaluationEntity, type LinearPipelineStepEvaluationFinalStatus } from "../entities/linear-pipeline-step-evaluation-entity";
|
|
10
|
+
import { LinearPipelineStepRunAttemptEntity } from "../entities/linear-pipeline-step-run-attempt-entity";
|
|
11
|
+
import { LinearPipelineStepRunEntity } from "../entities/linear-pipeline-step-run-entity";
|
|
12
|
+
import { StepExecutionEntity } from "@boboddy/core/pipeline-executions/step-execution/domain/step-execution-entity";
|
|
13
|
+
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
14
|
+
export declare const toJsonValue: (value: Record<string, unknown>) => AnyJsonValue;
|
|
15
|
+
export declare const toFinalStatus: (action: LinearPipelineStepEvaluationEntity["finalAction"]) => LinearPipelineStepEvaluationFinalStatus;
|
|
16
|
+
export declare const appendExecutionEvent: (execution: LinearPipelineExecutionEntity, type: LinearPipelineExecutionEventEntity["type"], now: Date, payloadJson?: AnyJsonObject | null) => import("../entities/linear-pipeline-execution-event-entity").LinearPipelineExecutionEventEntityProps;
|
|
17
|
+
export declare const getStepRunOrThrow: (execution: LinearPipelineExecutionEntity, stepRunId: UuidV7) => LinearPipelineStepRunEntity;
|
|
18
|
+
export declare const getStepRunAttemptOrThrow: (stepRun: LinearPipelineExecutionEntity["stepRuns"][number], stepRunAttemptId: UuidV7) => LinearPipelineStepRunAttemptEntity;
|
|
19
|
+
export declare const getLinearPipelineStepDefinitionOrThrow: (definition: LinearPipelineDefinitionEntity, linearPipelineStepDefinitionId: UuidV7) => LinearPipelineStepDefinitionEntity;
|
|
20
|
+
export declare const getNextLinearPipelineStepDefinition: (definition: LinearPipelineDefinitionEntity, position: number) => LinearPipelineStepDefinitionEntity | null;
|
|
21
|
+
export declare const createQueuedStepExecution: (projectId: UuidV7, stepDefinitionId: UuidV7, stepDefinitionVersion: number, inputJson: AnyJsonValue | null, executionTimeoutSeconds: number | null, stepExecutionRepo: StepExecutionRepo, timeProvider: TimeProvider) => Promise<StepExecutionEntity>;
|
|
22
|
+
export declare const createQueuedStepRun: (execution: LinearPipelineExecutionEntity, linearPipelineStepDefinition: LinearPipelineStepDefinitionEntity, stepDefinitionRepo: StepDefinitionRepo, stepExecutionRepo: StepExecutionRepo, timeProvider: TimeProvider) => Promise<{
|
|
23
|
+
stepRun: LinearPipelineStepRunEntity;
|
|
24
|
+
attempt: LinearPipelineStepRunAttemptEntity;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const buildFactsSnapshot: (execution: LinearPipelineExecutionEntity, stepRun: LinearPipelineExecutionEntity["stepRuns"][number], attempt: LinearPipelineExecutionEntity["stepRuns"][number]["attempts"][number], stepExecutionId: UuidV7, stepExecutionResultId: UuidV7, signals: Record<string, AnyJsonValue>) => {
|
|
27
|
+
signals: Record<string, AnyJsonValue>;
|
|
28
|
+
context: {
|
|
29
|
+
projectId: UuidV7;
|
|
30
|
+
stepDefinitionId: UuidV7;
|
|
31
|
+
stepExecutionId: UuidV7;
|
|
32
|
+
stepExecutionResultId: UuidV7;
|
|
33
|
+
linearPipelineDefinitionId: UuidV7;
|
|
34
|
+
linearPipelineExecutionId: UuidV7;
|
|
35
|
+
linearPipelineStepDefinitionId: UuidV7;
|
|
36
|
+
linearPipelineStepRunId: UuidV7;
|
|
37
|
+
linearPipelineStepRunAttemptId: UuidV7;
|
|
38
|
+
currentStepKey: string;
|
|
39
|
+
currentPosition: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare const evaluateStepRunAgainstPolicy: ({ execution, stepRun, attempt, stepExecutionId, stepExecutionResultId, signals, policyDefinition, now, }: {
|
|
43
|
+
execution: LinearPipelineExecutionEntity;
|
|
44
|
+
stepRun: LinearPipelineExecutionEntity["stepRuns"][number];
|
|
45
|
+
attempt: LinearPipelineExecutionEntity["stepRuns"][number]["attempts"][number];
|
|
46
|
+
stepExecutionId: UuidV7;
|
|
47
|
+
stepExecutionResultId: UuidV7;
|
|
48
|
+
signals: Record<string, AnyJsonValue>;
|
|
49
|
+
policyDefinition: NonNullable<LinearPipelineStepDefinitionEntity["advancementPolicyDefinition"]>;
|
|
50
|
+
now: Date;
|
|
51
|
+
}) => Promise<LinearPipelineStepEvaluationEntity>;
|
|
52
|
+
export declare const ensurePolicyDefinition: (stepDefinition: LinearPipelineStepDefinitionEntity) => import("../../../pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyDefinitionEntity;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { LinearPipelineExecutionEntity } from "../domain/linear-pipeline-execution-entity";
|
|
4
|
+
export type LinearPipelineExecutionRepo = {
|
|
5
|
+
loadStepExecutionLink(stepExecutionId: UuidV7, dbExecutor?: DbExecutor): Promise<{
|
|
6
|
+
linearPipelineExecutionId: UuidV7;
|
|
7
|
+
linearPipelineStepRunId: UuidV7;
|
|
8
|
+
linearPipelineStepRunAttemptId: UuidV7;
|
|
9
|
+
} | null>;
|
|
10
|
+
load(id: UuidV7, dbExecutor?: DbExecutor): Promise<LinearPipelineExecutionEntity | null>;
|
|
11
|
+
listByProjectId(projectId: UuidV7, dbExecutor?: DbExecutor): Promise<LinearPipelineExecutionEntity[]>;
|
|
12
|
+
listByDefinitionId(linearPipelineDefinitionId: UuidV7, dbExecutor?: DbExecutor): Promise<LinearPipelineExecutionEntity[]>;
|
|
13
|
+
create(linearPipelineExecution: LinearPipelineExecutionEntity, dbExecutor?: DbExecutor): Promise<LinearPipelineExecutionEntity>;
|
|
14
|
+
save(linearPipelineExecution: LinearPipelineExecutionEntity, dbExecutor?: DbExecutor): Promise<LinearPipelineExecutionEntity>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AnyJsonObject, AnyJsonValue } from "@boboddy/core/common/contracts/json";
|
|
2
|
+
import type { LinearPipelineStepDefinitionEntity } from "@boboddy/core/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-definition-entity";
|
|
3
|
+
import type { LinearPipelineExecutionEntity } from "../domain/linear-pipeline-execution-entity";
|
|
4
|
+
export declare const resolveLinearPipelineStepInput: (linearPipelineStepDefinition: LinearPipelineStepDefinitionEntity, execution: LinearPipelineExecutionEntity) => AnyJsonValue | null;
|
|
5
|
+
export declare const validateStepExecutionInput: (inputJson: AnyJsonValue | null, inputSchemaJson: AnyJsonObject | null) => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
4
|
+
import { type LinearPipelineExecutionContract, type ListLinearPipelineExecutionsByDefinitionIdInput } from "../contracts/linear-pipeline-execution-contracts";
|
|
5
|
+
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
6
|
+
export declare const listLinearPipelineExecutionsByDefinitionId: (input: ListLinearPipelineExecutionsByDefinitionIdInput, { linearPipelineExecutionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
7
|
+
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
8
|
+
stepExecutionRepo: StepExecutionRepo;
|
|
9
|
+
timeProvider: TimeProvider;
|
|
10
|
+
dbExecutor?: DbExecutor | undefined;
|
|
11
|
+
}) => Promise<LinearPipelineExecutionContract[]>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
4
|
+
import { type LinearPipelineExecutionContract, type ListLinearPipelineExecutionsByProjectIdInput } from "../contracts/linear-pipeline-execution-contracts";
|
|
5
|
+
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
6
|
+
export declare const listLinearPipelineExecutionsByProjectId: (input: ListLinearPipelineExecutionsByProjectIdInput, { linearPipelineExecutionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
7
|
+
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
8
|
+
stepExecutionRepo: StepExecutionRepo;
|
|
9
|
+
timeProvider: TimeProvider;
|
|
10
|
+
dbExecutor?: DbExecutor | undefined;
|
|
11
|
+
}) => Promise<LinearPipelineExecutionContract[]>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import { type GetLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
4
|
+
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
5
|
+
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
6
|
+
export declare const markLinearPipelineStepRunAttemptRunning: (linearPipelineExecutionIdInput: GetLinearPipelineExecutionInput, linearPipelineStepRunIdInput: GetLinearPipelineExecutionInput, linearPipelineStepRunAttemptIdInput: GetLinearPipelineExecutionInput, { linearPipelineExecutionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
7
|
+
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
8
|
+
stepExecutionRepo: StepExecutionRepo;
|
|
9
|
+
timeProvider: TimeProvider;
|
|
10
|
+
dbExecutor?: DbExecutor | undefined;
|
|
11
|
+
}) => Promise<LinearPipelineExecutionContract>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
4
|
+
import type { LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
5
|
+
import type { LinearPipelineExecutionEntity } from "../domain/linear-pipeline-execution-entity";
|
|
6
|
+
export declare const projectLinearPipelineExecutionsToContracts: (executions: LinearPipelineExecutionEntity[], { stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
7
|
+
stepExecutionRepo: StepExecutionRepo;
|
|
8
|
+
timeProvider: TimeProvider;
|
|
9
|
+
dbExecutor?: DbExecutor | undefined;
|
|
10
|
+
}) => Promise<LinearPipelineExecutionContract[]>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
|
|
4
|
+
import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
|
|
5
|
+
import { type GetLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
6
|
+
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
7
|
+
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
8
|
+
export declare const queueFirstLinearPipelineStepRun: (input: GetLinearPipelineExecutionInput, { linearPipelineDefinitionRepo, linearPipelineExecutionRepo, stepDefinitionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
9
|
+
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
10
|
+
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
11
|
+
stepDefinitionRepo: StepDefinitionRepo;
|
|
12
|
+
stepExecutionRepo: StepExecutionRepo;
|
|
13
|
+
timeProvider: TimeProvider;
|
|
14
|
+
dbExecutor?: DbExecutor | undefined;
|
|
15
|
+
}) => Promise<LinearPipelineExecutionContract>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
|
|
4
|
+
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
5
|
+
import { type LinearPipelineExecutionContract, type RetriggerLinearPipelineStepRunInput } from "../contracts/linear-pipeline-execution-contracts";
|
|
6
|
+
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
7
|
+
export declare const retriggerLinearPipelineStepRun: (input: RetriggerLinearPipelineStepRunInput, { linearPipelineDefinitionRepo, linearPipelineExecutionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
8
|
+
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
9
|
+
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
10
|
+
stepExecutionRepo: StepExecutionRepo;
|
|
11
|
+
timeProvider: TimeProvider;
|
|
12
|
+
dbExecutor?: DbExecutor | undefined;
|
|
13
|
+
}) => Promise<LinearPipelineExecutionContract>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
|
|
4
|
+
import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
|
|
5
|
+
import { type GetLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
6
|
+
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
7
|
+
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
8
|
+
export declare const startLinearPipelineExecution: (input: GetLinearPipelineExecutionInput, { linearPipelineDefinitionRepo, linearPipelineExecutionRepo, stepDefinitionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
9
|
+
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
10
|
+
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
11
|
+
stepDefinitionRepo: StepDefinitionRepo;
|
|
12
|
+
stepExecutionRepo: StepExecutionRepo;
|
|
13
|
+
timeProvider: TimeProvider;
|
|
14
|
+
dbExecutor?: DbExecutor | undefined;
|
|
15
|
+
}) => Promise<LinearPipelineExecutionContract>;
|