@boboddy/sdk 0.0.12-alpha → 0.0.16-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/boboddy-config-parser.d.ts +34 -0
- package/dist/boboddy-config-parser.js +510 -0
- package/dist/client.d.ts +4 -0
- package/dist/client.js +1419 -0
- package/dist/{packages/sdks/js/src/define-step.d.ts → define-step.d.ts} +21 -1
- package/dist/define-step.js +12014 -0
- package/dist/generated/client/client.gen.d.ts +2 -0
- package/dist/generated/client/index.d.ts +8 -0
- package/dist/generated/client/types.gen.d.ts +117 -0
- package/dist/generated/client/utils.gen.d.ts +33 -0
- package/dist/generated/client.gen.d.ts +12 -0
- package/dist/generated/core/auth.gen.d.ts +18 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/core/params.gen.d.ts +43 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/core/types.gen.d.ts +78 -0
- package/dist/generated/core/utils.gen.d.ts +19 -0
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/sdk.gen.d.ts +162 -0
- package/dist/generated/types.gen.d.ts +9193 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +16394 -47
- package/dist/jsonc.d.ts +3 -0
- package/dist/jsonc.js +133 -0
- package/dist/opencode-mcp.js +14326 -0
- package/dist/step-definitions-client.d.ts +197 -0
- package/dist/step-definitions-client.js +1372 -0
- package/dist/step-execution-plane-client.d.ts +190 -0
- package/package.json +30 -17
- 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/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/client.d.ts +0 -2
- package/dist/packages/sdks/js/src/index.d.ts +0 -1
- package/dist/packages/sdks/js/src/step-definitions-client.d.ts +0 -202
- package/dist/packages/sdks/js/src/step-execution-plane-client.d.ts +0 -370
- package/dist/packages/sdks/js/src/treaty.d.ts +0 -13
- package/dist/packages/sdks/js/test/define-step.test.d.ts +0 -1
- /package/dist/{packages/core/src/common/contracts/opencode-mcp.d.ts → opencode-mcp.d.ts} +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const BOBODDY_CONFIG_RELATIVE_PATH = ".boboddy/boboddy.jsonc";
|
|
2
|
+
export type BoboddyCommandDefinition = {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
run: string;
|
|
6
|
+
cwd: string | null;
|
|
7
|
+
};
|
|
8
|
+
export type BoboddyServiceDefinition = {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
run: string;
|
|
12
|
+
cwd: string | null;
|
|
13
|
+
dependsOn: string[];
|
|
14
|
+
expose: {
|
|
15
|
+
targetPort: number;
|
|
16
|
+
protocol: string;
|
|
17
|
+
};
|
|
18
|
+
healthcheck: {
|
|
19
|
+
protocol: string;
|
|
20
|
+
path: string | null;
|
|
21
|
+
expectedStatus: number | null;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type BoboddyConfig = {
|
|
25
|
+
commands: BoboddyCommandDefinition[];
|
|
26
|
+
services: BoboddyServiceDefinition[];
|
|
27
|
+
};
|
|
28
|
+
export type ParseBoboddyConfigResult = {
|
|
29
|
+
found: false;
|
|
30
|
+
} | {
|
|
31
|
+
found: true;
|
|
32
|
+
config: BoboddyConfig;
|
|
33
|
+
};
|
|
34
|
+
export declare function parseBoboddyConfig(workspacePath: string): Promise<ParseBoboddyConfigResult>;
|
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __returnValue = (v) => v;
|
|
3
|
+
function __exportSetter(name, newValue) {
|
|
4
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
+
}
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
set: __exportSetter.bind(all, name)
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
// src/boboddy-config-parser.ts
|
|
17
|
+
var {access, readFile} = (() => ({}));
|
|
18
|
+
|
|
19
|
+
// node:path
|
|
20
|
+
function assertPath(path) {
|
|
21
|
+
if (typeof path !== "string")
|
|
22
|
+
throw TypeError("Path must be a string. Received " + JSON.stringify(path));
|
|
23
|
+
}
|
|
24
|
+
function normalizeStringPosix(path, allowAboveRoot) {
|
|
25
|
+
var res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, code;
|
|
26
|
+
for (var i = 0;i <= path.length; ++i) {
|
|
27
|
+
if (i < path.length)
|
|
28
|
+
code = path.charCodeAt(i);
|
|
29
|
+
else if (code === 47)
|
|
30
|
+
break;
|
|
31
|
+
else
|
|
32
|
+
code = 47;
|
|
33
|
+
if (code === 47) {
|
|
34
|
+
if (lastSlash === i - 1 || dots === 1)
|
|
35
|
+
;
|
|
36
|
+
else if (lastSlash !== i - 1 && dots === 2) {
|
|
37
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 || res.charCodeAt(res.length - 2) !== 46) {
|
|
38
|
+
if (res.length > 2) {
|
|
39
|
+
var lastSlashIndex = res.lastIndexOf("/");
|
|
40
|
+
if (lastSlashIndex !== res.length - 1) {
|
|
41
|
+
if (lastSlashIndex === -1)
|
|
42
|
+
res = "", lastSegmentLength = 0;
|
|
43
|
+
else
|
|
44
|
+
res = res.slice(0, lastSlashIndex), lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
45
|
+
lastSlash = i, dots = 0;
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
} else if (res.length === 2 || res.length === 1) {
|
|
49
|
+
res = "", lastSegmentLength = 0, lastSlash = i, dots = 0;
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
if (allowAboveRoot) {
|
|
54
|
+
if (res.length > 0)
|
|
55
|
+
res += "/..";
|
|
56
|
+
else
|
|
57
|
+
res = "..";
|
|
58
|
+
lastSegmentLength = 2;
|
|
59
|
+
}
|
|
60
|
+
} else {
|
|
61
|
+
if (res.length > 0)
|
|
62
|
+
res += "/" + path.slice(lastSlash + 1, i);
|
|
63
|
+
else
|
|
64
|
+
res = path.slice(lastSlash + 1, i);
|
|
65
|
+
lastSegmentLength = i - lastSlash - 1;
|
|
66
|
+
}
|
|
67
|
+
lastSlash = i, dots = 0;
|
|
68
|
+
} else if (code === 46 && dots !== -1)
|
|
69
|
+
++dots;
|
|
70
|
+
else
|
|
71
|
+
dots = -1;
|
|
72
|
+
}
|
|
73
|
+
return res;
|
|
74
|
+
}
|
|
75
|
+
function _format(sep, pathObject) {
|
|
76
|
+
var dir = pathObject.dir || pathObject.root, base = pathObject.base || (pathObject.name || "") + (pathObject.ext || "");
|
|
77
|
+
if (!dir)
|
|
78
|
+
return base;
|
|
79
|
+
if (dir === pathObject.root)
|
|
80
|
+
return dir + base;
|
|
81
|
+
return dir + sep + base;
|
|
82
|
+
}
|
|
83
|
+
function resolve() {
|
|
84
|
+
var resolvedPath = "", resolvedAbsolute = false, cwd;
|
|
85
|
+
for (var i = arguments.length - 1;i >= -1 && !resolvedAbsolute; i--) {
|
|
86
|
+
var path;
|
|
87
|
+
if (i >= 0)
|
|
88
|
+
path = arguments[i];
|
|
89
|
+
else {
|
|
90
|
+
if (cwd === undefined)
|
|
91
|
+
cwd = process.cwd();
|
|
92
|
+
path = cwd;
|
|
93
|
+
}
|
|
94
|
+
if (assertPath(path), path.length === 0)
|
|
95
|
+
continue;
|
|
96
|
+
resolvedPath = path + "/" + resolvedPath, resolvedAbsolute = path.charCodeAt(0) === 47;
|
|
97
|
+
}
|
|
98
|
+
if (resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute), resolvedAbsolute)
|
|
99
|
+
if (resolvedPath.length > 0)
|
|
100
|
+
return "/" + resolvedPath;
|
|
101
|
+
else
|
|
102
|
+
return "/";
|
|
103
|
+
else if (resolvedPath.length > 0)
|
|
104
|
+
return resolvedPath;
|
|
105
|
+
else
|
|
106
|
+
return ".";
|
|
107
|
+
}
|
|
108
|
+
function normalize(path) {
|
|
109
|
+
if (assertPath(path), path.length === 0)
|
|
110
|
+
return ".";
|
|
111
|
+
var isAbsolute = path.charCodeAt(0) === 47, trailingSeparator = path.charCodeAt(path.length - 1) === 47;
|
|
112
|
+
if (path = normalizeStringPosix(path, !isAbsolute), path.length === 0 && !isAbsolute)
|
|
113
|
+
path = ".";
|
|
114
|
+
if (path.length > 0 && trailingSeparator)
|
|
115
|
+
path += "/";
|
|
116
|
+
if (isAbsolute)
|
|
117
|
+
return "/" + path;
|
|
118
|
+
return path;
|
|
119
|
+
}
|
|
120
|
+
function isAbsolute(path) {
|
|
121
|
+
return assertPath(path), path.length > 0 && path.charCodeAt(0) === 47;
|
|
122
|
+
}
|
|
123
|
+
function join() {
|
|
124
|
+
if (arguments.length === 0)
|
|
125
|
+
return ".";
|
|
126
|
+
var joined;
|
|
127
|
+
for (var i = 0;i < arguments.length; ++i) {
|
|
128
|
+
var arg = arguments[i];
|
|
129
|
+
if (assertPath(arg), arg.length > 0)
|
|
130
|
+
if (joined === undefined)
|
|
131
|
+
joined = arg;
|
|
132
|
+
else
|
|
133
|
+
joined += "/" + arg;
|
|
134
|
+
}
|
|
135
|
+
if (joined === undefined)
|
|
136
|
+
return ".";
|
|
137
|
+
return normalize(joined);
|
|
138
|
+
}
|
|
139
|
+
function relative(from, to) {
|
|
140
|
+
if (assertPath(from), assertPath(to), from === to)
|
|
141
|
+
return "";
|
|
142
|
+
if (from = resolve(from), to = resolve(to), from === to)
|
|
143
|
+
return "";
|
|
144
|
+
var fromStart = 1;
|
|
145
|
+
for (;fromStart < from.length; ++fromStart)
|
|
146
|
+
if (from.charCodeAt(fromStart) !== 47)
|
|
147
|
+
break;
|
|
148
|
+
var fromEnd = from.length, fromLen = fromEnd - fromStart, toStart = 1;
|
|
149
|
+
for (;toStart < to.length; ++toStart)
|
|
150
|
+
if (to.charCodeAt(toStart) !== 47)
|
|
151
|
+
break;
|
|
152
|
+
var toEnd = to.length, toLen = toEnd - toStart, length = fromLen < toLen ? fromLen : toLen, lastCommonSep = -1, i = 0;
|
|
153
|
+
for (;i <= length; ++i) {
|
|
154
|
+
if (i === length) {
|
|
155
|
+
if (toLen > length) {
|
|
156
|
+
if (to.charCodeAt(toStart + i) === 47)
|
|
157
|
+
return to.slice(toStart + i + 1);
|
|
158
|
+
else if (i === 0)
|
|
159
|
+
return to.slice(toStart + i);
|
|
160
|
+
} else if (fromLen > length) {
|
|
161
|
+
if (from.charCodeAt(fromStart + i) === 47)
|
|
162
|
+
lastCommonSep = i;
|
|
163
|
+
else if (i === 0)
|
|
164
|
+
lastCommonSep = 0;
|
|
165
|
+
}
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
var fromCode = from.charCodeAt(fromStart + i), toCode = to.charCodeAt(toStart + i);
|
|
169
|
+
if (fromCode !== toCode)
|
|
170
|
+
break;
|
|
171
|
+
else if (fromCode === 47)
|
|
172
|
+
lastCommonSep = i;
|
|
173
|
+
}
|
|
174
|
+
var out = "";
|
|
175
|
+
for (i = fromStart + lastCommonSep + 1;i <= fromEnd; ++i)
|
|
176
|
+
if (i === fromEnd || from.charCodeAt(i) === 47)
|
|
177
|
+
if (out.length === 0)
|
|
178
|
+
out += "..";
|
|
179
|
+
else
|
|
180
|
+
out += "/..";
|
|
181
|
+
if (out.length > 0)
|
|
182
|
+
return out + to.slice(toStart + lastCommonSep);
|
|
183
|
+
else {
|
|
184
|
+
if (toStart += lastCommonSep, to.charCodeAt(toStart) === 47)
|
|
185
|
+
++toStart;
|
|
186
|
+
return to.slice(toStart);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
function _makeLong(path) {
|
|
190
|
+
return path;
|
|
191
|
+
}
|
|
192
|
+
function dirname(path) {
|
|
193
|
+
if (assertPath(path), path.length === 0)
|
|
194
|
+
return ".";
|
|
195
|
+
var code = path.charCodeAt(0), hasRoot = code === 47, end = -1, matchedSlash = true;
|
|
196
|
+
for (var i = path.length - 1;i >= 1; --i)
|
|
197
|
+
if (code = path.charCodeAt(i), code === 47) {
|
|
198
|
+
if (!matchedSlash) {
|
|
199
|
+
end = i;
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
} else
|
|
203
|
+
matchedSlash = false;
|
|
204
|
+
if (end === -1)
|
|
205
|
+
return hasRoot ? "/" : ".";
|
|
206
|
+
if (hasRoot && end === 1)
|
|
207
|
+
return "//";
|
|
208
|
+
return path.slice(0, end);
|
|
209
|
+
}
|
|
210
|
+
function basename(path, ext) {
|
|
211
|
+
if (ext !== undefined && typeof ext !== "string")
|
|
212
|
+
throw TypeError('"ext" argument must be a string');
|
|
213
|
+
assertPath(path);
|
|
214
|
+
var start = 0, end = -1, matchedSlash = true, i;
|
|
215
|
+
if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {
|
|
216
|
+
if (ext.length === path.length && ext === path)
|
|
217
|
+
return "";
|
|
218
|
+
var extIdx = ext.length - 1, firstNonSlashEnd = -1;
|
|
219
|
+
for (i = path.length - 1;i >= 0; --i) {
|
|
220
|
+
var code = path.charCodeAt(i);
|
|
221
|
+
if (code === 47) {
|
|
222
|
+
if (!matchedSlash) {
|
|
223
|
+
start = i + 1;
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
} else {
|
|
227
|
+
if (firstNonSlashEnd === -1)
|
|
228
|
+
matchedSlash = false, firstNonSlashEnd = i + 1;
|
|
229
|
+
if (extIdx >= 0)
|
|
230
|
+
if (code === ext.charCodeAt(extIdx)) {
|
|
231
|
+
if (--extIdx === -1)
|
|
232
|
+
end = i;
|
|
233
|
+
} else
|
|
234
|
+
extIdx = -1, end = firstNonSlashEnd;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
if (start === end)
|
|
238
|
+
end = firstNonSlashEnd;
|
|
239
|
+
else if (end === -1)
|
|
240
|
+
end = path.length;
|
|
241
|
+
return path.slice(start, end);
|
|
242
|
+
} else {
|
|
243
|
+
for (i = path.length - 1;i >= 0; --i)
|
|
244
|
+
if (path.charCodeAt(i) === 47) {
|
|
245
|
+
if (!matchedSlash) {
|
|
246
|
+
start = i + 1;
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
} else if (end === -1)
|
|
250
|
+
matchedSlash = false, end = i + 1;
|
|
251
|
+
if (end === -1)
|
|
252
|
+
return "";
|
|
253
|
+
return path.slice(start, end);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
function extname(path) {
|
|
257
|
+
assertPath(path);
|
|
258
|
+
var startDot = -1, startPart = 0, end = -1, matchedSlash = true, preDotState = 0;
|
|
259
|
+
for (var i = path.length - 1;i >= 0; --i) {
|
|
260
|
+
var code = path.charCodeAt(i);
|
|
261
|
+
if (code === 47) {
|
|
262
|
+
if (!matchedSlash) {
|
|
263
|
+
startPart = i + 1;
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
if (end === -1)
|
|
269
|
+
matchedSlash = false, end = i + 1;
|
|
270
|
+
if (code === 46) {
|
|
271
|
+
if (startDot === -1)
|
|
272
|
+
startDot = i;
|
|
273
|
+
else if (preDotState !== 1)
|
|
274
|
+
preDotState = 1;
|
|
275
|
+
} else if (startDot !== -1)
|
|
276
|
+
preDotState = -1;
|
|
277
|
+
}
|
|
278
|
+
if (startDot === -1 || end === -1 || preDotState === 0 || preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)
|
|
279
|
+
return "";
|
|
280
|
+
return path.slice(startDot, end);
|
|
281
|
+
}
|
|
282
|
+
function format(pathObject) {
|
|
283
|
+
if (pathObject === null || typeof pathObject !== "object")
|
|
284
|
+
throw TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject);
|
|
285
|
+
return _format("/", pathObject);
|
|
286
|
+
}
|
|
287
|
+
function parse(path) {
|
|
288
|
+
assertPath(path);
|
|
289
|
+
var ret = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
290
|
+
if (path.length === 0)
|
|
291
|
+
return ret;
|
|
292
|
+
var code = path.charCodeAt(0), isAbsolute2 = code === 47, start;
|
|
293
|
+
if (isAbsolute2)
|
|
294
|
+
ret.root = "/", start = 1;
|
|
295
|
+
else
|
|
296
|
+
start = 0;
|
|
297
|
+
var startDot = -1, startPart = 0, end = -1, matchedSlash = true, i = path.length - 1, preDotState = 0;
|
|
298
|
+
for (;i >= start; --i) {
|
|
299
|
+
if (code = path.charCodeAt(i), code === 47) {
|
|
300
|
+
if (!matchedSlash) {
|
|
301
|
+
startPart = i + 1;
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
continue;
|
|
305
|
+
}
|
|
306
|
+
if (end === -1)
|
|
307
|
+
matchedSlash = false, end = i + 1;
|
|
308
|
+
if (code === 46) {
|
|
309
|
+
if (startDot === -1)
|
|
310
|
+
startDot = i;
|
|
311
|
+
else if (preDotState !== 1)
|
|
312
|
+
preDotState = 1;
|
|
313
|
+
} else if (startDot !== -1)
|
|
314
|
+
preDotState = -1;
|
|
315
|
+
}
|
|
316
|
+
if (startDot === -1 || end === -1 || preDotState === 0 || preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
|
317
|
+
if (end !== -1)
|
|
318
|
+
if (startPart === 0 && isAbsolute2)
|
|
319
|
+
ret.base = ret.name = path.slice(1, end);
|
|
320
|
+
else
|
|
321
|
+
ret.base = ret.name = path.slice(startPart, end);
|
|
322
|
+
} else {
|
|
323
|
+
if (startPart === 0 && isAbsolute2)
|
|
324
|
+
ret.name = path.slice(1, startDot), ret.base = path.slice(1, end);
|
|
325
|
+
else
|
|
326
|
+
ret.name = path.slice(startPart, startDot), ret.base = path.slice(startPart, end);
|
|
327
|
+
ret.ext = path.slice(startDot, end);
|
|
328
|
+
}
|
|
329
|
+
if (startPart > 0)
|
|
330
|
+
ret.dir = path.slice(0, startPart - 1);
|
|
331
|
+
else if (isAbsolute2)
|
|
332
|
+
ret.dir = "/";
|
|
333
|
+
return ret;
|
|
334
|
+
}
|
|
335
|
+
var sep = "/";
|
|
336
|
+
var delimiter = ":";
|
|
337
|
+
var posix = ((p) => (p.posix = p, p))({ resolve, normalize, isAbsolute, join, relative, _makeLong, dirname, basename, extname, format, parse, sep, delimiter, win32: null, posix: null });
|
|
338
|
+
var path_default = posix;
|
|
339
|
+
|
|
340
|
+
// src/boboddy-config-parser.ts
|
|
341
|
+
var BOBODDY_CONFIG_RELATIVE_PATH = ".boboddy/boboddy.jsonc";
|
|
342
|
+
var stripJsoncComments = (content) => {
|
|
343
|
+
let result = "";
|
|
344
|
+
let inString = false;
|
|
345
|
+
let escapeNextCharacter = false;
|
|
346
|
+
let lineComment = false;
|
|
347
|
+
let blockComment = false;
|
|
348
|
+
for (let index = 0;index < content.length; index += 1) {
|
|
349
|
+
const character = content.charAt(index);
|
|
350
|
+
const nextCharacter = content.charAt(index + 1);
|
|
351
|
+
if (lineComment) {
|
|
352
|
+
if (character === `
|
|
353
|
+
`) {
|
|
354
|
+
lineComment = false;
|
|
355
|
+
result += character;
|
|
356
|
+
}
|
|
357
|
+
continue;
|
|
358
|
+
}
|
|
359
|
+
if (blockComment) {
|
|
360
|
+
if (character === "*" && nextCharacter === "/") {
|
|
361
|
+
blockComment = false;
|
|
362
|
+
index += 1;
|
|
363
|
+
}
|
|
364
|
+
continue;
|
|
365
|
+
}
|
|
366
|
+
if (inString) {
|
|
367
|
+
result += character;
|
|
368
|
+
if (escapeNextCharacter) {
|
|
369
|
+
escapeNextCharacter = false;
|
|
370
|
+
continue;
|
|
371
|
+
}
|
|
372
|
+
if (character === "\\") {
|
|
373
|
+
escapeNextCharacter = true;
|
|
374
|
+
continue;
|
|
375
|
+
}
|
|
376
|
+
if (character === '"') {
|
|
377
|
+
inString = false;
|
|
378
|
+
}
|
|
379
|
+
continue;
|
|
380
|
+
}
|
|
381
|
+
if (character === '"') {
|
|
382
|
+
inString = true;
|
|
383
|
+
result += character;
|
|
384
|
+
continue;
|
|
385
|
+
}
|
|
386
|
+
if (character === "/" && nextCharacter === "/") {
|
|
387
|
+
lineComment = true;
|
|
388
|
+
index += 1;
|
|
389
|
+
continue;
|
|
390
|
+
}
|
|
391
|
+
if (character === "/" && nextCharacter === "*") {
|
|
392
|
+
blockComment = true;
|
|
393
|
+
index += 1;
|
|
394
|
+
continue;
|
|
395
|
+
}
|
|
396
|
+
result += character;
|
|
397
|
+
}
|
|
398
|
+
return result;
|
|
399
|
+
};
|
|
400
|
+
var stripTrailingCommas = (content) => {
|
|
401
|
+
let result = "";
|
|
402
|
+
let inString = false;
|
|
403
|
+
let escapeNextCharacter = false;
|
|
404
|
+
for (let index = 0;index < content.length; index += 1) {
|
|
405
|
+
const character = content.charAt(index);
|
|
406
|
+
if (inString) {
|
|
407
|
+
result += character;
|
|
408
|
+
if (escapeNextCharacter) {
|
|
409
|
+
escapeNextCharacter = false;
|
|
410
|
+
continue;
|
|
411
|
+
}
|
|
412
|
+
if (character === "\\") {
|
|
413
|
+
escapeNextCharacter = true;
|
|
414
|
+
continue;
|
|
415
|
+
}
|
|
416
|
+
if (character === '"') {
|
|
417
|
+
inString = false;
|
|
418
|
+
}
|
|
419
|
+
continue;
|
|
420
|
+
}
|
|
421
|
+
if (character === '"') {
|
|
422
|
+
inString = true;
|
|
423
|
+
result += character;
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
if (character === ",") {
|
|
427
|
+
let lookaheadIndex = index + 1;
|
|
428
|
+
while (lookaheadIndex < content.length) {
|
|
429
|
+
const lookaheadCharacter2 = content.charAt(lookaheadIndex);
|
|
430
|
+
if (/\s/u.test(lookaheadCharacter2)) {
|
|
431
|
+
lookaheadIndex += 1;
|
|
432
|
+
continue;
|
|
433
|
+
}
|
|
434
|
+
if (lookaheadCharacter2 === "}" || lookaheadCharacter2 === "]") {
|
|
435
|
+
break;
|
|
436
|
+
}
|
|
437
|
+
result += character;
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
if (lookaheadIndex >= content.length) {
|
|
441
|
+
continue;
|
|
442
|
+
}
|
|
443
|
+
const lookaheadCharacter = content.charAt(lookaheadIndex);
|
|
444
|
+
if (lookaheadCharacter === "}" || lookaheadCharacter === "]") {
|
|
445
|
+
continue;
|
|
446
|
+
}
|
|
447
|
+
continue;
|
|
448
|
+
}
|
|
449
|
+
result += character;
|
|
450
|
+
}
|
|
451
|
+
return result;
|
|
452
|
+
};
|
|
453
|
+
var parseJsonc = (content) => JSON.parse(stripTrailingCommas(stripJsoncComments(content)));
|
|
454
|
+
var asString = (value) => typeof value === "string" ? value : null;
|
|
455
|
+
var asNumber = (value) => typeof value === "number" ? value : null;
|
|
456
|
+
var parseCommands = (raw) => {
|
|
457
|
+
if (!raw)
|
|
458
|
+
return [];
|
|
459
|
+
return Object.entries(raw).map(([name, entry]) => ({
|
|
460
|
+
name,
|
|
461
|
+
description: asString(entry.description) ?? "",
|
|
462
|
+
run: asString(entry.run) ?? "",
|
|
463
|
+
cwd: asString(entry.cwd) ?? null
|
|
464
|
+
}));
|
|
465
|
+
};
|
|
466
|
+
var parseServices = (raw) => {
|
|
467
|
+
if (!raw)
|
|
468
|
+
return [];
|
|
469
|
+
return Object.entries(raw).map(([name, entry]) => {
|
|
470
|
+
const expose = entry.expose ?? {};
|
|
471
|
+
const healthcheck = entry.healthcheck ?? {};
|
|
472
|
+
const dependsOn = Array.isArray(entry.dependsOn) ? entry.dependsOn.filter((d) => typeof d === "string") : [];
|
|
473
|
+
return {
|
|
474
|
+
name,
|
|
475
|
+
description: asString(entry.description) ?? "",
|
|
476
|
+
run: asString(entry.run) ?? "",
|
|
477
|
+
cwd: asString(entry.cwd) ?? null,
|
|
478
|
+
dependsOn,
|
|
479
|
+
expose: {
|
|
480
|
+
targetPort: asNumber(expose.targetPort) ?? 0,
|
|
481
|
+
protocol: asString(expose.protocol) ?? "http"
|
|
482
|
+
},
|
|
483
|
+
healthcheck: {
|
|
484
|
+
protocol: asString(healthcheck.protocol) ?? "http",
|
|
485
|
+
path: asString(healthcheck.path) ?? null,
|
|
486
|
+
expectedStatus: asNumber(healthcheck.expectedStatus) ?? null
|
|
487
|
+
}
|
|
488
|
+
};
|
|
489
|
+
});
|
|
490
|
+
};
|
|
491
|
+
async function parseBoboddyConfig(workspacePath) {
|
|
492
|
+
const filePath = path_default.join(workspacePath, BOBODDY_CONFIG_RELATIVE_PATH);
|
|
493
|
+
const exists = await access(filePath).then(() => true).catch(() => false);
|
|
494
|
+
if (!exists) {
|
|
495
|
+
return { found: false };
|
|
496
|
+
}
|
|
497
|
+
const content = await readFile(filePath, "utf8");
|
|
498
|
+
const raw = parseJsonc(content);
|
|
499
|
+
return {
|
|
500
|
+
found: true,
|
|
501
|
+
config: {
|
|
502
|
+
commands: parseCommands(raw.commands),
|
|
503
|
+
services: parseServices(raw.services)
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
export {
|
|
508
|
+
parseBoboddyConfig,
|
|
509
|
+
BOBODDY_CONFIG_RELATIVE_PATH
|
|
510
|
+
};
|
package/dist/client.d.ts
ADDED