@boboddy/sdk 0.0.11-alpha → 0.0.13-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +62 -0
- package/dist/define-step.js +1018 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1016 -0
- package/dist/step-definitions-client.js +47 -0
- package/dist/treaty.js +34 -0
- package/package.json +1 -1
- package/dist/apps/api/src/app.d.ts +0 -19731
- package/dist/apps/api/src/contracts.d.ts +0 -20
- package/dist/apps/api/src/http/error-handler.d.ts +0 -23
- package/dist/apps/api/src/http/routes/auth.d.ts +0 -57
- package/dist/apps/api/src/http/routes/authenticated.d.ts +0 -79
- package/dist/apps/api/src/http/routes/feedback-requests.d.ts +0 -281
- package/dist/apps/api/src/http/routes/linear-pipeline-definitions.d.ts +0 -1563
- package/dist/apps/api/src/http/routes/linear-pipeline-executions.d.ts +0 -2540
- package/dist/apps/api/src/http/routes/project-context-entries.d.ts +0 -387
- package/dist/apps/api/src/http/routes/projects.d.ts +0 -1906
- package/dist/apps/api/src/http/routes/step-definition-templates.d.ts +0 -479
- package/dist/apps/api/src/http/routes/step-definitions.d.ts +0 -917
- package/dist/apps/api/src/http/routes/step-execution-route-helpers.d.ts +0 -64
- package/dist/apps/api/src/http/routes/step-executions.d.ts +0 -1485
- package/dist/apps/api/src/http/routes/work-items.d.ts +0 -966
- package/dist/apps/api/src/problem-details.d.ts +0 -9
- package/dist/packages/core/src/access/authorization/application/user-authorization-service.d.ts +0 -12
- package/dist/packages/core/src/access/authorization/infra/project-authorization-service.d.ts +0 -9
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/ai-container-launcher.d.ts +0 -21
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/create-project-runtime-session.d.ts +0 -15
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/devcontainer-launcher.d.ts +0 -21
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/get-project-runtime-session.d.ts +0 -13
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/git-clone-service.d.ts +0 -11
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/list-project-runtime-sessions.d.ts +0 -13
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-contract-mapper.d.ts +0 -3
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-execution-target.d.ts +0 -3
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-network-metadata.d.ts +0 -15
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-repo.d.ts +0 -10
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/runtime-session-network-manager.d.ts +0 -14
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/stop-project-runtime-session.d.ts +0 -31
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/workspace-manager.d.ts +0 -10
- package/dist/packages/core/src/agent-sessions/project-runtime-session/contracts/project-runtime-session-contracts.d.ts +0 -62
- package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity-helpers.d.ts +0 -12
- package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity.d.ts +0 -99
- package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-execution-target.d.ts +0 -16
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/devcontainer-cli-launcher.d.ts +0 -6
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/docker-ai-container-launcher.d.ts +0 -8
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/drizzle-project-runtime-session-repo.d.ts +0 -11
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/git-cli-clone-service.d.ts +0 -4
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-jsonc.d.ts +0 -4
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager-support.d.ts +0 -42
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager.d.ts +0 -24
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-working-directory.d.ts +0 -5
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-docker-runtime-session-network-manager.d.ts +0 -17
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-workspace-manager.d.ts +0 -11
- package/dist/packages/core/src/agent-sessions/runtime-command/application/complete-claimed-runtime-command.d.ts +0 -13
- package/dist/packages/core/src/agent-sessions/runtime-command/application/create-runtime-command.d.ts +0 -19
- package/dist/packages/core/src/agent-sessions/runtime-command/application/fail-claimed-runtime-command.d.ts +0 -13
- package/dist/packages/core/src/agent-sessions/runtime-command/application/interrupt-claimed-runtime-command.d.ts +0 -13
- package/dist/packages/core/src/agent-sessions/runtime-command/application/run-runtime-command-locally.d.ts +0 -27
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-claim-helpers.d.ts +0 -1
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-contract-mapper.d.ts +0 -3
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-output-summary.d.ts +0 -4
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-repo.d.ts +0 -20
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-runner.d.ts +0 -25
- package/dist/packages/core/src/agent-sessions/runtime-command/contracts/runtime-command-contracts.d.ts +0 -194
- package/dist/packages/core/src/agent-sessions/runtime-command/domain/runtime-command-entity.d.ts +0 -111
- package/dist/packages/core/src/agent-sessions/runtime-command/infra/drizzle-runtime-command-repo.d.ts +0 -20
- package/dist/packages/core/src/agent-sessions/runtime-command/infra/local-runtime-command-runner.d.ts +0 -25
- package/dist/packages/core/src/agent-sessions/runtime-environment/domain/runtime-environment.d.ts +0 -12
- package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-publisher.d.ts +0 -24
- package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-repo.d.ts +0 -17
- package/dist/packages/core/src/agent-sessions/runtime-operation-event/domain/runtime-operation-event.d.ts +0 -35
- package/dist/packages/core/src/agent-sessions/runtime-operation-event/infra/file-runtime-operation-event-repo.d.ts +0 -25
- package/dist/packages/core/src/agent-sessions/runtime-service/application/create-runtime-service.d.ts +0 -19
- package/dist/packages/core/src/agent-sessions/runtime-service/application/get-runtime-service.d.ts +0 -13
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-contract-mapper.d.ts +0 -3
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-output-summary.d.ts +0 -10
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-repo.d.ts +0 -9
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-runner.d.ts +0 -23
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-session-service-exposure-provider.d.ts +0 -19
- package/dist/packages/core/src/agent-sessions/runtime-service/application/start-runtime-service-locally.d.ts +0 -23
- package/dist/packages/core/src/agent-sessions/runtime-service/application/stop-runtime-service.d.ts +0 -34
- package/dist/packages/core/src/agent-sessions/runtime-service/contracts/runtime-service-contracts.d.ts +0 -140
- package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-access-point.d.ts +0 -12
- package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-entity.d.ts +0 -76
- package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-healthcheck.d.ts +0 -20
- package/dist/packages/core/src/agent-sessions/runtime-service/infra/drizzle-runtime-service-repo.d.ts +0 -9
- package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-readiness-probe.d.ts +0 -42
- package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-runner.d.ts +0 -32
- package/dist/packages/core/src/common/contracts/json.d.ts +0 -9
- package/dist/packages/core/src/common/contracts/opencode-mcp.d.ts +0 -73
- package/dist/packages/core/src/common/contracts/uuid-v7.d.ts +0 -8
- package/dist/packages/core/src/lib/db/db-executor.d.ts +0 -4
- package/dist/packages/core/src/lib/db/index.d.ts +0 -7
- package/dist/packages/core/src/lib/db/schema.d.ts +0 -4950
- package/dist/packages/core/src/lib/di.d.ts +0 -113
- package/dist/packages/core/src/lib/domain-events/domain-event.d.ts +0 -12
- package/dist/packages/core/src/lib/domain-events/in-memory-domain-event-dispatcher.d.ts +0 -7
- package/dist/packages/core/src/lib/errors.d.ts +0 -37
- package/dist/packages/core/src/lib/logger.d.ts +0 -7
- package/dist/packages/core/src/lib/result.d.ts +0 -15
- package/dist/packages/core/src/lib/time-provider.d.ts +0 -5
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/add-linear-pipeline-step-definition.d.ts +0 -13
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/archive-linear-pipeline-definition.d.ts +0 -13
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/create-linear-pipeline-definition.d.ts +0 -11
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/get-linear-pipeline-definition.d.ts +0 -11
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-contract-mapper.d.ts +0 -3
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo.d.ts +0 -9
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/list-linear-pipeline-definitions.d.ts +0 -9
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/remove-linear-pipeline-step-definition.d.ts +0 -13
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/set-linear-pipeline-step-advancement-policy-definition.d.ts +0 -13
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-definition.d.ts +0 -13
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-step-definition.d.ts +0 -13
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/contracts/linear-pipeline-definition-contracts.d.ts +0 -357
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/domain/linear-pipeline-definition-entity.d.ts +0 -36
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-advancement-policy-definition-entity.d.ts +0 -42
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-definition-entity.d.ts +0 -42
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/infra/drizzle-linear-pipeline-definition-repo.d.ts +0 -11
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/archive-step-definition.d.ts +0 -13
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/create-step-definition.d.ts +0 -11
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/get-step-definition.d.ts +0 -11
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/list-step-definitions.d.ts +0 -9
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-contract-mapper.d.ts +0 -3
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-repo.d.ts +0 -9
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/update-step-definition.d.ts +0 -13
- package/dist/packages/core/src/pipeline-definitions/step-definition/contracts/step-definition-contracts.d.ts +0 -281
- package/dist/packages/core/src/pipeline-definitions/step-definition/domain/step-definition-entity.d.ts +0 -53
- package/dist/packages/core/src/pipeline-definitions/step-definition/entities/computed-signal-definition-entity.d.ts +0 -31
- package/dist/packages/core/src/pipeline-definitions/step-definition/entities/signal-extractor-definition-entity.d.ts +0 -30
- package/dist/packages/core/src/pipeline-definitions/step-definition/infra/drizzle-step-definition-repo.d.ts +0 -11
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/get-step-definition-template.d.ts +0 -8
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/instantiate-step-definition-template.d.ts +0 -15
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/list-step-definition-templates.d.ts +0 -5
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/step-definition-template-repo.d.ts +0 -7
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/contracts/step-definition-template-contracts.d.ts +0 -98
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/domain/step-definition-template-entity.d.ts +0 -37
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/infra/drizzle-step-definition-template-repo.d.ts +0 -9
- package/dist/packages/core/src/pipeline-executions/feedback-request/application/create-feedback-requests-on-step-signal-created.d.ts +0 -9
- package/dist/packages/core/src/pipeline-executions/feedback-request/application/decline-feedback-request.d.ts +0 -13
- package/dist/packages/core/src/pipeline-executions/feedback-request/application/feedback-request-repo.d.ts +0 -8
- package/dist/packages/core/src/pipeline-executions/feedback-request/application/list-feedback-requests-by-step-signal.d.ts +0 -14
- package/dist/packages/core/src/pipeline-executions/feedback-request/contracts/feedback-request-contracts.d.ts +0 -21
- package/dist/packages/core/src/pipeline-executions/feedback-request/domain/feedback-request-entity.d.ts +0 -29
- package/dist/packages/core/src/pipeline-executions/feedback-request/infra/drizzle-feedback-request-repo.d.ts +0 -10
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/accept-linear-pipeline-step-run.d.ts +0 -19
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/apply-linear-pipeline-step-result-and-advance.d.ts +0 -21
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/cancel-linear-pipeline-execution.d.ts +0 -15
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-execution.d.ts +0 -15
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-step-run-attempt.d.ts +0 -17
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/get-linear-pipeline-execution.d.ts +0 -15
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-contract-mapper.d.ts +0 -3
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-helpers.d.ts +0 -52
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-repo.d.ts +0 -15
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-step-input-resolution.d.ts +0 -5
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions-by-definition.d.ts +0 -15
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions.d.ts +0 -13
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/mark-linear-pipeline-step-run-attempt-running.d.ts +0 -15
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/project-linear-pipeline-executions.d.ts +0 -10
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/queue-first-linear-pipeline-step-run.d.ts +0 -19
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/retrigger-linear-pipeline-step-run.d.ts +0 -17
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/start-linear-pipeline-execution.d.ts +0 -19
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/contracts/linear-pipeline-execution-contracts.d.ts +0 -330
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/domain/linear-pipeline-execution-entity.d.ts +0 -43
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-execution-event-entity.d.ts +0 -25
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-evaluation-entity.d.ts +0 -45
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-attempt-entity.d.ts +0 -24
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-entity.d.ts +0 -63
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/infra/drizzle-linear-pipeline-execution-repo.d.ts +0 -19
- package/dist/packages/core/src/pipeline-executions/step-execution/application/add-step-execution-result.d.ts +0 -13
- package/dist/packages/core/src/pipeline-executions/step-execution/application/claim-step-executions.d.ts +0 -19
- package/dist/packages/core/src/pipeline-executions/step-execution/application/complete-claimed-step-execution.d.ts +0 -39
- package/dist/packages/core/src/pipeline-executions/step-execution/application/create-step-execution.d.ts +0 -11
- package/dist/packages/core/src/pipeline-executions/step-execution/application/extract-step-execution-signals.d.ts +0 -17
- package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution-worker-context.d.ts +0 -17
- package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution.d.ts +0 -13
- package/dist/packages/core/src/pipeline-executions/step-execution/application/heartbeat-step-execution-claim.d.ts +0 -21
- package/dist/packages/core/src/pipeline-executions/step-execution/application/list-step-executions-by-project.d.ts +0 -11
- package/dist/packages/core/src/pipeline-executions/step-execution/application/load-status-adjusted-step-executions.d.ts +0 -31
- package/dist/packages/core/src/pipeline-executions/step-execution/application/mark-step-execution-running.d.ts +0 -13
- package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-claim-helpers.d.ts +0 -13
- package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-contract-mapper.d.ts +0 -7
- package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-repo.d.ts +0 -29
- package/dist/packages/core/src/pipeline-executions/step-execution/contracts/step-execution-contracts.d.ts +0 -325
- package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-execution-entity.d.ts +0 -61
- package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-signal-created.domain-event.d.ts +0 -18
- package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-execution-result-entity.d.ts +0 -32
- package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-signal-entity.d.ts +0 -36
- package/dist/packages/core/src/pipeline-executions/step-execution/infra/drizzle-step-execution-repo.d.ts +0 -31
- package/dist/packages/core/src/projects/project/application/create-project.d.ts +0 -13
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-create-failing-test-step-definition.d.ts +0 -4
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-description-quality-step-definition.d.ts +0 -4
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-fix-failing-test-step-definition.d.ts +0 -4
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-conventions.d.ts +0 -9
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-definitions.d.ts +0 -7
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-step-definitions.d.ts +0 -8
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-web-repro-playwright-step-definition.d.ts +0 -4
- package/dist/packages/core/src/projects/project/application/get-project.d.ts +0 -11
- package/dist/packages/core/src/projects/project/application/list-projects.d.ts +0 -9
- package/dist/packages/core/src/projects/project/application/project-authorization.d.ts +0 -4
- package/dist/packages/core/src/projects/project/application/project-contract-mapper.d.ts +0 -3
- package/dist/packages/core/src/projects/project/application/project-repo.d.ts +0 -9
- package/dist/packages/core/src/projects/project/application/seed-default-pipelines-on-project-created.d.ts +0 -12
- package/dist/packages/core/src/projects/project/application/update-project-membership.d.ts +0 -13
- package/dist/packages/core/src/projects/project/contracts/project-contracts.d.ts +0 -37
- package/dist/packages/core/src/projects/project/domain/project-created.domain-event.d.ts +0 -13
- package/dist/packages/core/src/projects/project/domain/project-entity.d.ts +0 -31
- package/dist/packages/core/src/projects/project/domain/project-git-url.d.ts +0 -7
- package/dist/packages/core/src/projects/project/domain/project-membership.d.ts +0 -21
- package/dist/packages/core/src/projects/project/domain/project-permission.d.ts +0 -7
- package/dist/packages/core/src/projects/project/infra/drizzle-project-repo.d.ts +0 -11
- package/dist/packages/core/src/projects/project-context/application/create-project-context-entry.d.ts +0 -11
- package/dist/packages/core/src/projects/project-context/application/delete-project-context-entry.d.ts +0 -11
- package/dist/packages/core/src/projects/project-context/application/list-project-context-entries.d.ts +0 -12
- package/dist/packages/core/src/projects/project-context/application/project-context-entry-repo.d.ts +0 -8
- package/dist/packages/core/src/projects/project-context/contracts/project-context-entry-contracts.d.ts +0 -46
- package/dist/packages/core/src/projects/project-context/domain/project-context-entry-entity.d.ts +0 -27
- package/dist/packages/core/src/projects/project-context/infra/drizzle-project-context-entry-repo.d.ts +0 -10
- package/dist/packages/core/src/projects/project-opencode-config/application/project-opencode-runtime-metadata.d.ts +0 -17
- package/dist/packages/core/src/work-items/work-item/application/create-work-item.d.ts +0 -16
- package/dist/packages/core/src/work-items/work-item/application/delete-work-items.d.ts +0 -14
- package/dist/packages/core/src/work-items/work-item/application/get-work-items.d.ts +0 -14
- package/dist/packages/core/src/work-items/work-item/application/list-work-items-by-project.d.ts +0 -13
- package/dist/packages/core/src/work-items/work-item/application/upsert-work-item.d.ts +0 -14
- package/dist/packages/core/src/work-items/work-item/application/work-item-contract-mapper.d.ts +0 -4
- package/dist/packages/core/src/work-items/work-item/application/work-item-repo.d.ts +0 -27
- package/dist/packages/core/src/work-items/work-item/contracts/work-item-contracts.d.ts +0 -119
- package/dist/packages/core/src/work-items/work-item/domain/date-utils.d.ts +0 -1
- package/dist/packages/core/src/work-items/work-item/domain/work-item-entity.d.ts +0 -58
- package/dist/packages/core/src/work-items/work-item/domain/work-item-field-value.d.ts +0 -3
- package/dist/packages/core/src/work-items/work-item/domain/work-item-id.d.ts +0 -6
- package/dist/packages/core/src/work-items/work-item/domain/work-item-platform.d.ts +0 -2
- package/dist/packages/core/src/work-items/work-item/domain/work-item-projection-fingerprint-entity.d.ts +0 -18
- package/dist/packages/core/src/work-items/work-item/infra/drizzle-work-item-repo.d.ts +0 -25
- package/dist/packages/sdks/js/script/build.d.ts +0 -1
- package/dist/packages/sdks/js/src/index.d.ts +0 -1
- package/dist/packages/sdks/js/test/define-step.test.d.ts +0 -1
- /package/dist/{packages/sdks/js/src/client.d.ts → client.d.ts} +0 -0
- /package/dist/{packages/sdks/js/src/define-step.d.ts → define-step.d.ts} +0 -0
- /package/dist/{packages/sdks/js/src/step-definitions-client.d.ts → step-definitions-client.d.ts} +0 -0
- /package/dist/{packages/sdks/js/src/step-execution-plane-client.d.ts → step-execution-plane-client.d.ts} +0 -0
- /package/dist/{packages/sdks/js/src/treaty.d.ts → treaty.d.ts} +0 -0
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
|
|
2
|
-
import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-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
|
-
userAuthz: UserAuthorizationService;
|
|
11
|
-
feedbackRequestRepo: FeedbackRequestRepo;
|
|
12
|
-
};
|
|
13
|
-
export declare const listFeedbackRequestsByStepSignal: (input: ListFeedbackRequestsByStepSignalInput, deps: ListFeedbackRequestsByStepSignalDeps) => Promise<FeedbackRequestContract[]>;
|
|
14
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
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>;
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
-
import { CoreValidationError, ResourceNotFoundError } from "@boboddy/core/lib/errors";
|
|
3
|
-
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
4
|
-
import { Result } from "@boboddy/core/lib/result";
|
|
5
|
-
import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
|
|
6
|
-
import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
|
|
7
|
-
import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
|
|
8
|
-
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
9
|
-
import { type AcceptLinearPipelineStepRunInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
10
|
-
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
11
|
-
export declare const acceptLinearPipelineStepRun: (input: AcceptLinearPipelineStepRunInput, { userAuthz, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, stepDefinitionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
12
|
-
userAuthz: UserAuthorizationService;
|
|
13
|
-
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
14
|
-
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
15
|
-
stepDefinitionRepo: StepDefinitionRepo;
|
|
16
|
-
stepExecutionRepo: StepExecutionRepo;
|
|
17
|
-
timeProvider: TimeProvider;
|
|
18
|
-
dbExecutor?: DbExecutor | undefined;
|
|
19
|
-
}) => Promise<Result<LinearPipelineExecutionContract, ResourceNotFoundError | CoreValidationError>>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
-
import { ResourceNotFoundError } from "@boboddy/core/lib/errors";
|
|
3
|
-
import { Result } from "@boboddy/core/lib/result";
|
|
4
|
-
import type { InMemoryDomainEventDispatcher } from "@boboddy/core/lib/domain-events/in-memory-domain-event-dispatcher";
|
|
5
|
-
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
6
|
-
import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
|
|
7
|
-
import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
|
|
8
|
-
import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
|
|
9
|
-
import { type ApplyLinearPipelineStepResultInput, type GetLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
10
|
-
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
11
|
-
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
12
|
-
export declare const applyLinearPipelineStepResultAndAdvance: (linearPipelineExecutionIdInput: GetLinearPipelineExecutionInput, linearPipelineStepRunIdInput: GetLinearPipelineExecutionInput, linearPipelineStepRunAttemptIdInput: GetLinearPipelineExecutionInput, input: ApplyLinearPipelineStepResultInput, { userAuthz, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, stepDefinitionRepo, stepExecutionRepo, timeProvider, domainEventDispatcher, dbExecutor, }: {
|
|
13
|
-
userAuthz?: UserAuthorizationService;
|
|
14
|
-
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
15
|
-
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
16
|
-
stepDefinitionRepo: StepDefinitionRepo;
|
|
17
|
-
stepExecutionRepo: StepExecutionRepo;
|
|
18
|
-
timeProvider: TimeProvider;
|
|
19
|
-
domainEventDispatcher?: InMemoryDomainEventDispatcher;
|
|
20
|
-
dbExecutor?: DbExecutor | undefined;
|
|
21
|
-
}) => Promise<Result<LinearPipelineExecutionContract, ResourceNotFoundError>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
-
import { ResourceNotFoundError } from "@boboddy/core/lib/errors";
|
|
3
|
-
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
4
|
-
import { Result } from "@boboddy/core/lib/result";
|
|
5
|
-
import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
|
|
6
|
-
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
7
|
-
import { type GetLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
8
|
-
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
9
|
-
export declare const cancelLinearPipelineExecution: (input: GetLinearPipelineExecutionInput, { userAuthz, linearPipelineExecutionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
10
|
-
userAuthz: UserAuthorizationService;
|
|
11
|
-
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
12
|
-
stepExecutionRepo: StepExecutionRepo;
|
|
13
|
-
timeProvider: TimeProvider;
|
|
14
|
-
dbExecutor?: DbExecutor | undefined;
|
|
15
|
-
}) => Promise<Result<LinearPipelineExecutionContract, ResourceNotFoundError>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
-
import { CoreValidationError, ResourceNotFoundError } from "@boboddy/core/lib/errors";
|
|
3
|
-
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
4
|
-
import { Result } from "@boboddy/core/lib/result";
|
|
5
|
-
import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
|
|
6
|
-
import { type CreateLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
7
|
-
import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
|
|
8
|
-
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
9
|
-
export declare const createLinearPipelineExecution: (input: CreateLinearPipelineExecutionInput, { userAuthz, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, timeProvider, dbExecutor, }: {
|
|
10
|
-
userAuthz: UserAuthorizationService;
|
|
11
|
-
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
12
|
-
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
13
|
-
timeProvider: TimeProvider;
|
|
14
|
-
dbExecutor?: DbExecutor | undefined;
|
|
15
|
-
}) => Promise<Result<LinearPipelineExecutionContract, ResourceNotFoundError | CoreValidationError>>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
-
import { ResourceNotFoundError } from "@boboddy/core/lib/errors";
|
|
3
|
-
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
4
|
-
import { Result } from "@boboddy/core/lib/result";
|
|
5
|
-
import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
|
|
6
|
-
import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
|
|
7
|
-
import { type GetLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
8
|
-
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
9
|
-
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
10
|
-
export declare const createLinearPipelineStepRunAttempt: (linearPipelineExecutionIdInput: GetLinearPipelineExecutionInput, linearPipelineStepRunIdInput: GetLinearPipelineExecutionInput, { userAuthz, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
11
|
-
userAuthz: UserAuthorizationService;
|
|
12
|
-
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
13
|
-
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
14
|
-
stepExecutionRepo: StepExecutionRepo;
|
|
15
|
-
timeProvider: TimeProvider;
|
|
16
|
-
dbExecutor?: DbExecutor | undefined;
|
|
17
|
-
}) => Promise<Result<LinearPipelineExecutionContract, ResourceNotFoundError>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
-
import { ResourceNotFoundError } from "@boboddy/core/lib/errors";
|
|
3
|
-
import { Result } from "@boboddy/core/lib/result";
|
|
4
|
-
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
5
|
-
import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
|
|
6
|
-
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
7
|
-
import { type GetLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
8
|
-
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
9
|
-
export declare const getLinearPipelineExecution: (input: GetLinearPipelineExecutionInput, { userAuthz, linearPipelineExecutionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
10
|
-
userAuthz: UserAuthorizationService;
|
|
11
|
-
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
12
|
-
stepExecutionRepo: StepExecutionRepo;
|
|
13
|
-
timeProvider: TimeProvider;
|
|
14
|
-
dbExecutor?: DbExecutor | undefined;
|
|
15
|
-
}) => Promise<Result<LinearPipelineExecutionContract, ResourceNotFoundError>>;
|
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
|
@@ -1,52 +0,0 @@
|
|
|
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;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
|
|
2
|
-
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
3
|
-
import type { 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
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
-
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
-
import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
|
|
4
|
-
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
5
|
-
import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
|
|
6
|
-
import { type LinearPipelineExecutionContract, type ListLinearPipelineExecutionsByDefinitionIdInput } from "../contracts/linear-pipeline-execution-contracts";
|
|
7
|
-
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
8
|
-
export declare const listLinearPipelineExecutionsByDefinitionId: (input: ListLinearPipelineExecutionsByDefinitionIdInput, { userAuthz, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
9
|
-
userAuthz: UserAuthorizationService;
|
|
10
|
-
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
11
|
-
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
12
|
-
stepExecutionRepo: StepExecutionRepo;
|
|
13
|
-
timeProvider: TimeProvider;
|
|
14
|
-
dbExecutor?: DbExecutor | undefined;
|
|
15
|
-
}) => Promise<LinearPipelineExecutionContract[]>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
-
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
-
import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
|
|
4
|
-
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
5
|
-
import { type LinearPipelineExecutionContract, type ListLinearPipelineExecutionsByProjectIdInput } from "../contracts/linear-pipeline-execution-contracts";
|
|
6
|
-
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
7
|
-
export declare const listLinearPipelineExecutionsByProjectId: (input: ListLinearPipelineExecutionsByProjectIdInput, { userAuthz, linearPipelineExecutionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
8
|
-
userAuthz: UserAuthorizationService;
|
|
9
|
-
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
10
|
-
stepExecutionRepo: StepExecutionRepo;
|
|
11
|
-
timeProvider: TimeProvider;
|
|
12
|
-
dbExecutor?: DbExecutor | undefined;
|
|
13
|
-
}) => Promise<LinearPipelineExecutionContract[]>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
-
import { ResourceNotFoundError } from "@boboddy/core/lib/errors";
|
|
3
|
-
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
4
|
-
import { Result } from "@boboddy/core/lib/result";
|
|
5
|
-
import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
|
|
6
|
-
import { type 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 markLinearPipelineStepRunAttemptRunning: (linearPipelineExecutionIdInput: GetLinearPipelineExecutionInput, linearPipelineStepRunIdInput: GetLinearPipelineExecutionInput, linearPipelineStepRunAttemptIdInput: GetLinearPipelineExecutionInput, { userAuthz, linearPipelineExecutionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
10
|
-
userAuthz?: UserAuthorizationService;
|
|
11
|
-
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
12
|
-
stepExecutionRepo: StepExecutionRepo;
|
|
13
|
-
timeProvider: TimeProvider;
|
|
14
|
-
dbExecutor?: DbExecutor | undefined;
|
|
15
|
-
}) => Promise<Result<LinearPipelineExecutionContract, ResourceNotFoundError>>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
-
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
-
import type { 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[]>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
-
import { CoreValidationError, ResourceNotFoundError } from "@boboddy/core/lib/errors";
|
|
3
|
-
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
4
|
-
import { Result } from "@boboddy/core/lib/result";
|
|
5
|
-
import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
|
|
6
|
-
import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
|
|
7
|
-
import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
|
|
8
|
-
import { type GetLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
9
|
-
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
10
|
-
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
11
|
-
export declare const queueFirstLinearPipelineStepRun: (input: GetLinearPipelineExecutionInput, { userAuthz, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, stepDefinitionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
12
|
-
userAuthz: UserAuthorizationService;
|
|
13
|
-
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
14
|
-
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
15
|
-
stepDefinitionRepo: StepDefinitionRepo;
|
|
16
|
-
stepExecutionRepo: StepExecutionRepo;
|
|
17
|
-
timeProvider: TimeProvider;
|
|
18
|
-
dbExecutor?: DbExecutor | undefined;
|
|
19
|
-
}) => Promise<Result<LinearPipelineExecutionContract, ResourceNotFoundError | CoreValidationError>>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
-
import { CoreValidationError, ResourceNotFoundError } from "@boboddy/core/lib/errors";
|
|
3
|
-
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
4
|
-
import { Result } from "@boboddy/core/lib/result";
|
|
5
|
-
import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
|
|
6
|
-
import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
|
|
7
|
-
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
8
|
-
import { type LinearPipelineExecutionContract, type RetriggerLinearPipelineStepRunInput } from "../contracts/linear-pipeline-execution-contracts";
|
|
9
|
-
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
10
|
-
export declare const retriggerLinearPipelineStepRun: (input: RetriggerLinearPipelineStepRunInput, { userAuthz, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
11
|
-
userAuthz: UserAuthorizationService;
|
|
12
|
-
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
13
|
-
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
14
|
-
stepExecutionRepo: StepExecutionRepo;
|
|
15
|
-
timeProvider: TimeProvider;
|
|
16
|
-
dbExecutor?: DbExecutor | undefined;
|
|
17
|
-
}) => Promise<Result<LinearPipelineExecutionContract, ResourceNotFoundError | CoreValidationError>>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
-
import { CoreValidationError, ResourceNotFoundError } from "@boboddy/core/lib/errors";
|
|
3
|
-
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
4
|
-
import { Result } from "@boboddy/core/lib/result";
|
|
5
|
-
import type { UserAuthorizationService } from "@boboddy/core/access/authorization/application/user-authorization-service";
|
|
6
|
-
import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
|
|
7
|
-
import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
|
|
8
|
-
import { type GetLinearPipelineExecutionInput, type LinearPipelineExecutionContract } from "../contracts/linear-pipeline-execution-contracts";
|
|
9
|
-
import type { LinearPipelineExecutionRepo } from "./linear-pipeline-execution-repo";
|
|
10
|
-
import type { StepExecutionRepo } from "@boboddy/core/pipeline-executions/step-execution/application/step-execution-repo";
|
|
11
|
-
export declare const startLinearPipelineExecution: (input: GetLinearPipelineExecutionInput, { userAuthz, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, stepDefinitionRepo, stepExecutionRepo, timeProvider, dbExecutor, }: {
|
|
12
|
-
userAuthz: UserAuthorizationService;
|
|
13
|
-
linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
|
|
14
|
-
linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
|
|
15
|
-
stepDefinitionRepo: StepDefinitionRepo;
|
|
16
|
-
stepExecutionRepo: StepExecutionRepo;
|
|
17
|
-
timeProvider: TimeProvider;
|
|
18
|
-
dbExecutor?: DbExecutor | undefined;
|
|
19
|
-
}) => Promise<Result<LinearPipelineExecutionContract, ResourceNotFoundError | CoreValidationError>>;
|