p-dev-harness 0.3.0
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/LICENSE +21 -0
- package/README.md +53 -0
- package/bin/p-dev.js +2 -0
- package/dist/agents/cursor-provider.d.ts +3 -0
- package/dist/agents/cursor-provider.d.ts.map +1 -0
- package/dist/agents/cursor-provider.js +60 -0
- package/dist/agents/cursor-provider.js.map +1 -0
- package/dist/agents/index.d.ts +12 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +24 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/provider.d.ts +4 -0
- package/dist/agents/provider.d.ts.map +1 -0
- package/dist/agents/provider.js +5 -0
- package/dist/agents/provider.js.map +1 -0
- package/dist/agents/types.d.ts +59 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/types.js +2 -0
- package/dist/agents/types.js.map +1 -0
- package/dist/artifacts/events.d.ts +8 -0
- package/dist/artifacts/events.d.ts.map +1 -0
- package/dist/artifacts/events.js +23 -0
- package/dist/artifacts/events.js.map +1 -0
- package/dist/artifacts/manifest-fields.d.ts +8 -0
- package/dist/artifacts/manifest-fields.d.ts.map +1 -0
- package/dist/artifacts/manifest-fields.js +10 -0
- package/dist/artifacts/manifest-fields.js.map +1 -0
- package/dist/artifacts/manifest.d.ts +4 -0
- package/dist/artifacts/manifest.d.ts.map +1 -0
- package/dist/artifacts/manifest.js +11 -0
- package/dist/artifacts/manifest.js.map +1 -0
- package/dist/artifacts/paths.d.ts +36 -0
- package/dist/artifacts/paths.d.ts.map +1 -0
- package/dist/artifacts/paths.js +107 -0
- package/dist/artifacts/paths.js.map +1 -0
- package/dist/artifacts/redact.d.ts +3 -0
- package/dist/artifacts/redact.d.ts.map +1 -0
- package/dist/artifacts/redact.js +45 -0
- package/dist/artifacts/redact.js.map +1 -0
- package/dist/artifacts/run-id.d.ts +2 -0
- package/dist/artifacts/run-id.d.ts.map +1 -0
- package/dist/artifacts/run-id.js +5 -0
- package/dist/artifacts/run-id.js.map +1 -0
- package/dist/artifacts/snapshot.d.ts +3 -0
- package/dist/artifacts/snapshot.d.ts.map +1 -0
- package/dist/artifacts/snapshot.js +9 -0
- package/dist/artifacts/snapshot.js.map +1 -0
- package/dist/artifacts/summary.d.ts +9 -0
- package/dist/artifacts/summary.d.ts.map +1 -0
- package/dist/artifacts/summary.js +68 -0
- package/dist/artifacts/summary.js.map +1 -0
- package/dist/cli/commands/diagnose-vercel-bridge.d.ts +5 -0
- package/dist/cli/commands/diagnose-vercel-bridge.d.ts.map +1 -0
- package/dist/cli/commands/diagnose-vercel-bridge.js +20 -0
- package/dist/cli/commands/diagnose-vercel-bridge.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +6 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/doctor.js +190 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/inspect.d.ts +5 -0
- package/dist/cli/commands/inspect.d.ts.map +1 -0
- package/dist/cli/commands/inspect.js +39 -0
- package/dist/cli/commands/inspect.js.map +1 -0
- package/dist/cli/commands/operator-init.d.ts +5 -0
- package/dist/cli/commands/operator-init.d.ts.map +1 -0
- package/dist/cli/commands/operator-init.js +30 -0
- package/dist/cli/commands/operator-init.js.map +1 -0
- package/dist/cli/commands/redact-output.d.ts +2 -0
- package/dist/cli/commands/redact-output.d.ts.map +1 -0
- package/dist/cli/commands/redact-output.js +18 -0
- package/dist/cli/commands/redact-output.js.map +1 -0
- package/dist/cli/commands/resolve-route.d.ts +10 -0
- package/dist/cli/commands/resolve-route.d.ts.map +1 -0
- package/dist/cli/commands/resolve-route.js +67 -0
- package/dist/cli/commands/resolve-route.js.map +1 -0
- package/dist/cli/commands/run.d.ts +12 -0
- package/dist/cli/commands/run.d.ts.map +1 -0
- package/dist/cli/commands/run.js +36 -0
- package/dist/cli/commands/run.js.map +1 -0
- package/dist/cli/commands/sync-production.d.ts +25 -0
- package/dist/cli/commands/sync-production.d.ts.map +1 -0
- package/dist/cli/commands/sync-production.js +147 -0
- package/dist/cli/commands/sync-production.js.map +1 -0
- package/dist/cli/commands/validate-issue.d.ts +9 -0
- package/dist/cli/commands/validate-issue.d.ts.map +1 -0
- package/dist/cli/commands/validate-issue.js +53 -0
- package/dist/cli/commands/validate-issue.js.map +1 -0
- package/dist/cli/exit-codes.d.ts +5 -0
- package/dist/cli/exit-codes.d.ts.map +1 -0
- package/dist/cli/exit-codes.js +5 -0
- package/dist/cli/exit-codes.js.map +1 -0
- package/dist/cli/finalize-exit.d.ts +6 -0
- package/dist/cli/finalize-exit.d.ts.map +1 -0
- package/dist/cli/finalize-exit.js +9 -0
- package/dist/cli/finalize-exit.js.map +1 -0
- package/dist/cli/program.d.ts +3 -0
- package/dist/cli/program.d.ts.map +1 -0
- package/dist/cli/program.js +150 -0
- package/dist/cli/program.js.map +1 -0
- package/dist/config/defaults.d.ts +31 -0
- package/dist/config/defaults.d.ts.map +1 -0
- package/dist/config/defaults.js +34 -0
- package/dist/config/defaults.js.map +1 -0
- package/dist/config/load-config.d.ts +17 -0
- package/dist/config/load-config.d.ts.map +1 -0
- package/dist/config/load-config.js +57 -0
- package/dist/config/load-config.js.map +1 -0
- package/dist/config/load-dotenv.d.ts +2 -0
- package/dist/config/load-dotenv.d.ts.map +1 -0
- package/dist/config/load-dotenv.js +11 -0
- package/dist/config/load-dotenv.js.map +1 -0
- package/dist/config/resolve-config.d.ts +12 -0
- package/dist/config/resolve-config.d.ts.map +1 -0
- package/dist/config/resolve-config.js +98 -0
- package/dist/config/resolve-config.js.map +1 -0
- package/dist/config/schema.d.ts +505 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +110 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config/status-names.d.ts +25 -0
- package/dist/config/status-names.d.ts.map +1 -0
- package/dist/config/status-names.js +41 -0
- package/dist/config/status-names.js.map +1 -0
- package/dist/config/types.d.ts +2 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/config/types.js +2 -0
- package/dist/config/types.js.map +1 -0
- package/dist/cursor/agent-factory.d.ts +24 -0
- package/dist/cursor/agent-factory.d.ts.map +1 -0
- package/dist/cursor/agent-factory.js +91 -0
- package/dist/cursor/agent-factory.js.map +1 -0
- package/dist/cursor/errors.d.ts +4 -0
- package/dist/cursor/errors.d.ts.map +1 -0
- package/dist/cursor/errors.js +14 -0
- package/dist/cursor/errors.js.map +1 -0
- package/dist/cursor/git-result.d.ts +8 -0
- package/dist/cursor/git-result.d.ts.map +1 -0
- package/dist/cursor/git-result.js +43 -0
- package/dist/cursor/git-result.js.map +1 -0
- package/dist/cursor/model.d.ts +31 -0
- package/dist/cursor/model.d.ts.map +1 -0
- package/dist/cursor/model.js +41 -0
- package/dist/cursor/model.js.map +1 -0
- package/dist/cursor/revision-git-result.d.ts +4 -0
- package/dist/cursor/revision-git-result.d.ts.map +1 -0
- package/dist/cursor/revision-git-result.js +43 -0
- package/dist/cursor/revision-git-result.js.map +1 -0
- package/dist/cursor/run-cleanup.d.ts +6 -0
- package/dist/cursor/run-cleanup.d.ts.map +1 -0
- package/dist/cursor/run-cleanup.js +22 -0
- package/dist/cursor/run-cleanup.js.map +1 -0
- package/dist/cursor/run-observer.d.ts +45 -0
- package/dist/cursor/run-observer.d.ts.map +1 -0
- package/dist/cursor/run-observer.js +228 -0
- package/dist/cursor/run-observer.js.map +1 -0
- package/dist/cursor/urls.d.ts +3 -0
- package/dist/cursor/urls.d.ts.map +1 -0
- package/dist/cursor/urls.js +12 -0
- package/dist/cursor/urls.js.map +1 -0
- package/dist/fixture/frontmatter.d.ts +11 -0
- package/dist/fixture/frontmatter.d.ts.map +1 -0
- package/dist/fixture/frontmatter.js +45 -0
- package/dist/fixture/frontmatter.js.map +1 -0
- package/dist/github/actions-url.d.ts +3 -0
- package/dist/github/actions-url.d.ts.map +1 -0
- package/dist/github/actions-url.js +13 -0
- package/dist/github/actions-url.js.map +1 -0
- package/dist/github/base-branch.d.ts +25 -0
- package/dist/github/base-branch.d.ts.map +1 -0
- package/dist/github/base-branch.js +73 -0
- package/dist/github/base-branch.js.map +1 -0
- package/dist/github/check-policy.d.ts +12 -0
- package/dist/github/check-policy.d.ts.map +1 -0
- package/dist/github/check-policy.js +71 -0
- package/dist/github/check-policy.js.map +1 -0
- package/dist/github/client.d.ts +227 -0
- package/dist/github/client.d.ts.map +1 -0
- package/dist/github/client.js +244 -0
- package/dist/github/client.js.map +1 -0
- package/dist/github/commit-reachability.d.ts +34 -0
- package/dist/github/commit-reachability.d.ts.map +1 -0
- package/dist/github/commit-reachability.js +85 -0
- package/dist/github/commit-reachability.js.map +1 -0
- package/dist/github/links.d.ts +5 -0
- package/dist/github/links.d.ts.map +1 -0
- package/dist/github/links.js +17 -0
- package/dist/github/links.js.map +1 -0
- package/dist/github/merge-result.d.ts +8 -0
- package/dist/github/merge-result.d.ts.map +1 -0
- package/dist/github/merge-result.js +22 -0
- package/dist/github/merge-result.js.map +1 -0
- package/dist/github/pr-discovery.d.ts +12 -0
- package/dist/github/pr-discovery.d.ts.map +1 -0
- package/dist/github/pr-discovery.js +33 -0
- package/dist/github/pr-discovery.js.map +1 -0
- package/dist/github/pr-inspector.d.ts +48 -0
- package/dist/github/pr-inspector.d.ts.map +1 -0
- package/dist/github/pr-inspector.js +190 -0
- package/dist/github/pr-inspector.js.map +1 -0
- package/dist/github/pr-url.d.ts +8 -0
- package/dist/github/pr-url.d.ts.map +1 -0
- package/dist/github/pr-url.js +15 -0
- package/dist/github/pr-url.js.map +1 -0
- package/dist/gui/configure-health.d.ts +15 -0
- package/dist/gui/configure-health.d.ts.map +1 -0
- package/dist/gui/configure-health.js +124 -0
- package/dist/gui/configure-health.js.map +1 -0
- package/dist/gui/dev-server-process.d.ts +25 -0
- package/dist/gui/dev-server-process.d.ts.map +1 -0
- package/dist/gui/dev-server-process.js +165 -0
- package/dist/gui/dev-server-process.js.map +1 -0
- package/dist/gui/port.d.ts +17 -0
- package/dist/gui/port.d.ts.map +1 -0
- package/dist/gui/port.js +50 -0
- package/dist/gui/port.js.map +1 -0
- package/dist/gui/repo-root.d.ts +4 -0
- package/dist/gui/repo-root.d.ts.map +1 -0
- package/dist/gui/repo-root.js +49 -0
- package/dist/gui/repo-root.js.map +1 -0
- package/dist/gui/start-configure-stable.d.ts +3 -0
- package/dist/gui/start-configure-stable.d.ts.map +1 -0
- package/dist/gui/start-configure-stable.js +92 -0
- package/dist/gui/start-configure-stable.js.map +1 -0
- package/dist/gui/start-gui.d.ts +3 -0
- package/dist/gui/start-gui.d.ts.map +1 -0
- package/dist/gui/start-gui.js +90 -0
- package/dist/gui/start-gui.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/linear/client.d.ts +14 -0
- package/dist/linear/client.d.ts.map +1 -0
- package/dist/linear/client.js +30 -0
- package/dist/linear/client.js.map +1 -0
- package/dist/linear/comment-card.d.ts +24 -0
- package/dist/linear/comment-card.d.ts.map +1 -0
- package/dist/linear/comment-card.js +45 -0
- package/dist/linear/comment-card.js.map +1 -0
- package/dist/linear/comments.d.ts +179 -0
- package/dist/linear/comments.d.ts.map +1 -0
- package/dist/linear/comments.js +551 -0
- package/dist/linear/comments.js.map +1 -0
- package/dist/linear/handoff-comment.d.ts +3 -0
- package/dist/linear/handoff-comment.d.ts.map +1 -0
- package/dist/linear/handoff-comment.js +11 -0
- package/dist/linear/handoff-comment.js.map +1 -0
- package/dist/linear/implementation-comment.d.ts +3 -0
- package/dist/linear/implementation-comment.d.ts.map +1 -0
- package/dist/linear/implementation-comment.js +11 -0
- package/dist/linear/implementation-comment.js.map +1 -0
- package/dist/linear/issue-query.d.ts +14 -0
- package/dist/linear/issue-query.d.ts.map +1 -0
- package/dist/linear/issue-query.js +47 -0
- package/dist/linear/issue-query.js.map +1 -0
- package/dist/linear/markers.d.ts +46 -0
- package/dist/linear/markers.d.ts.map +1 -0
- package/dist/linear/markers.js +179 -0
- package/dist/linear/markers.js.map +1 -0
- package/dist/linear/merge-source-comment.d.ts +10 -0
- package/dist/linear/merge-source-comment.d.ts.map +1 -0
- package/dist/linear/merge-source-comment.js +29 -0
- package/dist/linear/merge-source-comment.js.map +1 -0
- package/dist/linear/parser.d.ts +4 -0
- package/dist/linear/parser.d.ts.map +1 -0
- package/dist/linear/parser.js +86 -0
- package/dist/linear/parser.js.map +1 -0
- package/dist/linear/phase-labels.d.ts +8 -0
- package/dist/linear/phase-labels.d.ts.map +1 -0
- package/dist/linear/phase-labels.js +38 -0
- package/dist/linear/phase-labels.js.map +1 -0
- package/dist/linear/planning-comment.d.ts +3 -0
- package/dist/linear/planning-comment.d.ts.map +1 -0
- package/dist/linear/planning-comment.js +11 -0
- package/dist/linear/planning-comment.js.map +1 -0
- package/dist/linear/pm-feedback-comment.d.ts +3 -0
- package/dist/linear/pm-feedback-comment.d.ts.map +1 -0
- package/dist/linear/pm-feedback-comment.js +29 -0
- package/dist/linear/pm-feedback-comment.js.map +1 -0
- package/dist/linear/revision-comment.d.ts +3 -0
- package/dist/linear/revision-comment.d.ts.map +1 -0
- package/dist/linear/revision-comment.js +11 -0
- package/dist/linear/revision-comment.js.map +1 -0
- package/dist/linear/states.d.ts +3 -0
- package/dist/linear/states.d.ts.map +1 -0
- package/dist/linear/states.js +13 -0
- package/dist/linear/states.js.map +1 -0
- package/dist/linear/writer.d.ts +36 -0
- package/dist/linear/writer.d.ts.map +1 -0
- package/dist/linear/writer.js +105 -0
- package/dist/linear/writer.js.map +1 -0
- package/dist/p-dev/browser.d.ts +9 -0
- package/dist/p-dev/browser.d.ts.map +1 -0
- package/dist/p-dev/browser.js +15 -0
- package/dist/p-dev/browser.js.map +1 -0
- package/dist/p-dev/cli.d.ts +10 -0
- package/dist/p-dev/cli.d.ts.map +1 -0
- package/dist/p-dev/cli.js +73 -0
- package/dist/p-dev/cli.js.map +1 -0
- package/dist/p-dev/launch.d.ts +20 -0
- package/dist/p-dev/launch.d.ts.map +1 -0
- package/dist/p-dev/launch.js +107 -0
- package/dist/p-dev/launch.js.map +1 -0
- package/dist/p-dev/main.d.ts +3 -0
- package/dist/p-dev/main.d.ts.map +1 -0
- package/dist/p-dev/main.js +10 -0
- package/dist/p-dev/main.js.map +1 -0
- package/dist/p-dev/next-bin.d.ts +2 -0
- package/dist/p-dev/next-bin.d.ts.map +1 -0
- package/dist/p-dev/next-bin.js +8 -0
- package/dist/p-dev/next-bin.js.map +1 -0
- package/dist/p-dev/node-version.d.ts +9 -0
- package/dist/p-dev/node-version.d.ts.map +1 -0
- package/dist/p-dev/node-version.js +31 -0
- package/dist/p-dev/node-version.js.map +1 -0
- package/dist/p-dev/package-paths.d.ts +5 -0
- package/dist/p-dev/package-paths.d.ts.map +1 -0
- package/dist/p-dev/package-paths.js +34 -0
- package/dist/p-dev/package-paths.js.map +1 -0
- package/dist/p-dev/package-version.d.ts +6 -0
- package/dist/p-dev/package-version.d.ts.map +1 -0
- package/dist/p-dev/package-version.js +40 -0
- package/dist/p-dev/package-version.js.map +1 -0
- package/dist/p-dev/runtime-mode.d.ts +6 -0
- package/dist/p-dev/runtime-mode.d.ts.map +1 -0
- package/dist/p-dev/runtime-mode.js +18 -0
- package/dist/p-dev/runtime-mode.js.map +1 -0
- package/dist/p-dev/shutdown.d.ts +7 -0
- package/dist/p-dev/shutdown.d.ts.map +1 -0
- package/dist/p-dev/shutdown.js +55 -0
- package/dist/p-dev/shutdown.js.map +1 -0
- package/dist/p-dev/workspace.d.ts +22 -0
- package/dist/p-dev/workspace.d.ts.map +1 -0
- package/dist/p-dev/workspace.js +74 -0
- package/dist/p-dev/workspace.js.map +1 -0
- package/dist/preview/production-from-merge.d.ts +34 -0
- package/dist/preview/production-from-merge.d.ts.map +1 -0
- package/dist/preview/production-from-merge.js +94 -0
- package/dist/preview/production-from-merge.js.map +1 -0
- package/dist/preview/urls.d.ts +16 -0
- package/dist/preview/urls.d.ts.map +1 -0
- package/dist/preview/urls.js +13 -0
- package/dist/preview/urls.js.map +1 -0
- package/dist/preview/vercel-from-pr.d.ts +19 -0
- package/dist/preview/vercel-from-pr.d.ts.map +1 -0
- package/dist/preview/vercel-from-pr.js +91 -0
- package/dist/preview/vercel-from-pr.js.map +1 -0
- package/dist/prompts/branch-name.d.ts +3 -0
- package/dist/prompts/branch-name.d.ts.map +1 -0
- package/dist/prompts/branch-name.js +15 -0
- package/dist/prompts/branch-name.js.map +1 -0
- package/dist/prompts/builder.d.ts +21 -0
- package/dist/prompts/builder.d.ts.map +1 -0
- package/dist/prompts/builder.js +51 -0
- package/dist/prompts/builder.js.map +1 -0
- package/dist/prompts/integration-repair-builder.d.ts +20 -0
- package/dist/prompts/integration-repair-builder.d.ts.map +1 -0
- package/dist/prompts/integration-repair-builder.js +37 -0
- package/dist/prompts/integration-repair-builder.js.map +1 -0
- package/dist/prompts/revision-builder.d.ts +19 -0
- package/dist/prompts/revision-builder.d.ts.map +1 -0
- package/dist/prompts/revision-builder.js +34 -0
- package/dist/prompts/revision-builder.js.map +1 -0
- package/dist/resolver/allowed-repos.d.ts +3 -0
- package/dist/resolver/allowed-repos.d.ts.map +1 -0
- package/dist/resolver/allowed-repos.js +10 -0
- package/dist/resolver/allowed-repos.js.map +1 -0
- package/dist/resolver/errors.d.ts +6 -0
- package/dist/resolver/errors.d.ts.map +1 -0
- package/dist/resolver/errors.js +9 -0
- package/dist/resolver/errors.js.map +1 -0
- package/dist/resolver/normalize-repo.d.ts +4 -0
- package/dist/resolver/normalize-repo.d.ts.map +1 -0
- package/dist/resolver/normalize-repo.js +25 -0
- package/dist/resolver/normalize-repo.js.map +1 -0
- package/dist/resolver/target-repo.d.ts +20 -0
- package/dist/resolver/target-repo.d.ts.map +1 -0
- package/dist/resolver/target-repo.js +73 -0
- package/dist/resolver/target-repo.js.map +1 -0
- package/dist/runner/building-recovery.d.ts +5 -0
- package/dist/runner/building-recovery.d.ts.map +1 -0
- package/dist/runner/building-recovery.js +18 -0
- package/dist/runner/building-recovery.js.map +1 -0
- package/dist/runner/dry-run.d.ts +13 -0
- package/dist/runner/dry-run.d.ts.map +1 -0
- package/dist/runner/dry-run.js +108 -0
- package/dist/runner/dry-run.js.map +1 -0
- package/dist/runner/errors.d.ts +22 -0
- package/dist/runner/errors.d.ts.map +1 -0
- package/dist/runner/errors.js +41 -0
- package/dist/runner/errors.js.map +1 -0
- package/dist/runner/execution-environment.d.ts +25 -0
- package/dist/runner/execution-environment.d.ts.map +1 -0
- package/dist/runner/execution-environment.js +122 -0
- package/dist/runner/execution-environment.js.map +1 -0
- package/dist/runner/fixture.d.ts +4 -0
- package/dist/runner/fixture.d.ts.map +1 -0
- package/dist/runner/fixture.js +18 -0
- package/dist/runner/fixture.js.map +1 -0
- package/dist/runner/idempotency.d.ts +29 -0
- package/dist/runner/idempotency.d.ts.map +1 -0
- package/dist/runner/idempotency.js +295 -0
- package/dist/runner/idempotency.js.map +1 -0
- package/dist/runner/orchestrator.d.ts +19 -0
- package/dist/runner/orchestrator.d.ts.map +1 -0
- package/dist/runner/orchestrator.js +149 -0
- package/dist/runner/orchestrator.js.map +1 -0
- package/dist/runner/phase-args.d.ts +11 -0
- package/dist/runner/phase-args.d.ts.map +1 -0
- package/dist/runner/phase-args.js +35 -0
- package/dist/runner/phase-args.js.map +1 -0
- package/dist/runner/phase-infer.d.ts +7 -0
- package/dist/runner/phase-infer.d.ts.map +1 -0
- package/dist/runner/phase-infer.js +45 -0
- package/dist/runner/phase-infer.js.map +1 -0
- package/dist/runner/phases/handoff.d.ts +13 -0
- package/dist/runner/phases/handoff.d.ts.map +1 -0
- package/dist/runner/phases/handoff.js +422 -0
- package/dist/runner/phases/handoff.js.map +1 -0
- package/dist/runner/phases/implementation.d.ts +13 -0
- package/dist/runner/phases/implementation.d.ts.map +1 -0
- package/dist/runner/phases/implementation.js +435 -0
- package/dist/runner/phases/implementation.js.map +1 -0
- package/dist/runner/phases/integration-repair.d.ts +31 -0
- package/dist/runner/phases/integration-repair.d.ts.map +1 -0
- package/dist/runner/phases/integration-repair.js +379 -0
- package/dist/runner/phases/integration-repair.js.map +1 -0
- package/dist/runner/phases/merge.d.ts +13 -0
- package/dist/runner/phases/merge.d.ts.map +1 -0
- package/dist/runner/phases/merge.js +816 -0
- package/dist/runner/phases/merge.js.map +1 -0
- package/dist/runner/phases/planning.d.ts +13 -0
- package/dist/runner/phases/planning.d.ts.map +1 -0
- package/dist/runner/phases/planning.js +306 -0
- package/dist/runner/phases/planning.js.map +1 -0
- package/dist/runner/phases/production-sync.d.ts +16 -0
- package/dist/runner/phases/production-sync.d.ts.map +1 -0
- package/dist/runner/phases/production-sync.js +215 -0
- package/dist/runner/phases/production-sync.js.map +1 -0
- package/dist/runner/phases/revision.d.ts +13 -0
- package/dist/runner/phases/revision.d.ts.map +1 -0
- package/dist/runner/phases/revision.js +565 -0
- package/dist/runner/phases/revision.js.map +1 -0
- package/dist/runner/preflight.d.ts +45 -0
- package/dist/runner/preflight.d.ts.map +1 -0
- package/dist/runner/preflight.js +148 -0
- package/dist/runner/preflight.js.map +1 -0
- package/dist/runner/resolve-route.d.ts +25 -0
- package/dist/runner/resolve-route.d.ts.map +1 -0
- package/dist/runner/resolve-route.js +81 -0
- package/dist/runner/resolve-route.js.map +1 -0
- package/dist/setup/config-builder.d.ts +7 -0
- package/dist/setup/config-builder.d.ts.map +1 -0
- package/dist/setup/config-builder.js +109 -0
- package/dist/setup/config-builder.js.map +1 -0
- package/dist/setup/config-local-editor.d.ts +37 -0
- package/dist/setup/config-local-editor.d.ts.map +1 -0
- package/dist/setup/config-local-editor.js +187 -0
- package/dist/setup/config-local-editor.js.map +1 -0
- package/dist/setup/config-writer.d.ts +20 -0
- package/dist/setup/config-writer.d.ts.map +1 -0
- package/dist/setup/config-writer.js +132 -0
- package/dist/setup/config-writer.js.map +1 -0
- package/dist/setup/control-plane-readiness-server.d.ts +5 -0
- package/dist/setup/control-plane-readiness-server.d.ts.map +1 -0
- package/dist/setup/control-plane-readiness-server.js +9 -0
- package/dist/setup/control-plane-readiness-server.js.map +1 -0
- package/dist/setup/control-plane-readiness.d.ts +23 -0
- package/dist/setup/control-plane-readiness.d.ts.map +1 -0
- package/dist/setup/control-plane-readiness.js +216 -0
- package/dist/setup/control-plane-readiness.js.map +1 -0
- package/dist/setup/control-plane-setup-state.d.ts +6 -0
- package/dist/setup/control-plane-setup-state.d.ts.map +1 -0
- package/dist/setup/control-plane-setup-state.js +41 -0
- package/dist/setup/control-plane-setup-state.js.map +1 -0
- package/dist/setup/control-plane-types.d.ts +97 -0
- package/dist/setup/control-plane-types.d.ts.map +1 -0
- package/dist/setup/control-plane-types.js +2 -0
- package/dist/setup/control-plane-types.js.map +1 -0
- package/dist/setup/doctor-summary.d.ts +16 -0
- package/dist/setup/doctor-summary.d.ts.map +1 -0
- package/dist/setup/doctor-summary.js +62 -0
- package/dist/setup/doctor-summary.js.map +1 -0
- package/dist/setup/env-merge.d.ts +26 -0
- package/dist/setup/env-merge.d.ts.map +1 -0
- package/dist/setup/env-merge.js +201 -0
- package/dist/setup/env-merge.js.map +1 -0
- package/dist/setup/env-writer.d.ts +17 -0
- package/dist/setup/env-writer.d.ts.map +1 -0
- package/dist/setup/env-writer.js +129 -0
- package/dist/setup/env-writer.js.map +1 -0
- package/dist/setup/first-run-readiness.d.ts +204 -0
- package/dist/setup/first-run-readiness.d.ts.map +1 -0
- package/dist/setup/first-run-readiness.js +911 -0
- package/dist/setup/first-run-readiness.js.map +1 -0
- package/dist/setup/generated-instructions.d.ts +19 -0
- package/dist/setup/generated-instructions.d.ts.map +1 -0
- package/dist/setup/generated-instructions.js +70 -0
- package/dist/setup/generated-instructions.js.map +1 -0
- package/dist/setup/github-dispatch-token.d.ts +12 -0
- package/dist/setup/github-dispatch-token.d.ts.map +1 -0
- package/dist/setup/github-dispatch-token.js +66 -0
- package/dist/setup/github-dispatch-token.js.map +1 -0
- package/dist/setup/github-remote-provider.d.ts +192 -0
- package/dist/setup/github-remote-provider.d.ts.map +1 -0
- package/dist/setup/github-remote-provider.js +302 -0
- package/dist/setup/github-remote-provider.js.map +1 -0
- package/dist/setup/github-remote-setup-live.d.ts +49 -0
- package/dist/setup/github-remote-setup-live.d.ts.map +1 -0
- package/dist/setup/github-remote-setup-live.js +400 -0
- package/dist/setup/github-remote-setup-live.js.map +1 -0
- package/dist/setup/github-repo-slug.d.ts +3 -0
- package/dist/setup/github-repo-slug.d.ts.map +1 -0
- package/dist/setup/github-repo-slug.js +23 -0
- package/dist/setup/github-repo-slug.js.map +1 -0
- package/dist/setup/github-secret-encryption.d.ts +2 -0
- package/dist/setup/github-secret-encryption.d.ts.map +1 -0
- package/dist/setup/github-secret-encryption.js +8 -0
- package/dist/setup/github-secret-encryption.js.map +1 -0
- package/dist/setup/github-workflow-permissions.d.ts +54 -0
- package/dist/setup/github-workflow-permissions.d.ts.map +1 -0
- package/dist/setup/github-workflow-permissions.js +110 -0
- package/dist/setup/github-workflow-permissions.js.map +1 -0
- package/dist/setup/gui-view-model.d.ts +85 -0
- package/dist/setup/gui-view-model.d.ts.map +1 -0
- package/dist/setup/gui-view-model.js +404 -0
- package/dist/setup/gui-view-model.js.map +1 -0
- package/dist/setup/guided-config-form.d.ts +8 -0
- package/dist/setup/guided-config-form.d.ts.map +1 -0
- package/dist/setup/guided-config-form.js +36 -0
- package/dist/setup/guided-config-form.js.map +1 -0
- package/dist/setup/harness-dispatch-repo.d.ts +23 -0
- package/dist/setup/harness-dispatch-repo.d.ts.map +1 -0
- package/dist/setup/harness-dispatch-repo.js +110 -0
- package/dist/setup/harness-dispatch-repo.js.map +1 -0
- package/dist/setup/harness-managed-repo-marker.d.ts +59 -0
- package/dist/setup/harness-managed-repo-marker.d.ts.map +1 -0
- package/dist/setup/harness-managed-repo-marker.js +289 -0
- package/dist/setup/harness-managed-repo-marker.js.map +1 -0
- package/dist/setup/harness-provisioning-context.d.ts +58 -0
- package/dist/setup/harness-provisioning-context.d.ts.map +1 -0
- package/dist/setup/harness-provisioning-context.js +204 -0
- package/dist/setup/harness-provisioning-context.js.map +1 -0
- package/dist/setup/harness-provisioning-pending-state.d.ts +59 -0
- package/dist/setup/harness-provisioning-pending-state.d.ts.map +1 -0
- package/dist/setup/harness-provisioning-pending-state.js +167 -0
- package/dist/setup/harness-provisioning-pending-state.js.map +1 -0
- package/dist/setup/harness-repo-provisioning.d.ts +61 -0
- package/dist/setup/harness-repo-provisioning.d.ts.map +1 -0
- package/dist/setup/harness-repo-provisioning.js +1106 -0
- package/dist/setup/harness-repo-provisioning.js.map +1 -0
- package/dist/setup/harness-secret-fingerprint.d.ts +21 -0
- package/dist/setup/harness-secret-fingerprint.d.ts.map +1 -0
- package/dist/setup/harness-secret-fingerprint.js +25 -0
- package/dist/setup/harness-secret-fingerprint.js.map +1 -0
- package/dist/setup/harness-secret-setup.d.ts +81 -0
- package/dist/setup/harness-secret-setup.d.ts.map +1 -0
- package/dist/setup/harness-secret-setup.js +290 -0
- package/dist/setup/harness-secret-setup.js.map +1 -0
- package/dist/setup/harness-template-identity.d.ts +48 -0
- package/dist/setup/harness-template-identity.d.ts.map +1 -0
- package/dist/setup/harness-template-identity.js +114 -0
- package/dist/setup/harness-template-identity.js.map +1 -0
- package/dist/setup/linear-setup-apply.d.ts +30 -0
- package/dist/setup/linear-setup-apply.d.ts.map +1 -0
- package/dist/setup/linear-setup-apply.js +192 -0
- package/dist/setup/linear-setup-apply.js.map +1 -0
- package/dist/setup/linear-setup-client.d.ts +70 -0
- package/dist/setup/linear-setup-client.d.ts.map +1 -0
- package/dist/setup/linear-setup-client.js +180 -0
- package/dist/setup/linear-setup-client.js.map +1 -0
- package/dist/setup/linear-setup-plan.d.ts +88 -0
- package/dist/setup/linear-setup-plan.d.ts.map +1 -0
- package/dist/setup/linear-setup-plan.js +239 -0
- package/dist/setup/linear-setup-plan.js.map +1 -0
- package/dist/setup/linear-setup-summary.d.ts +12 -0
- package/dist/setup/linear-setup-summary.d.ts.map +1 -0
- package/dist/setup/linear-setup-summary.js +21 -0
- package/dist/setup/linear-setup-summary.js.map +1 -0
- package/dist/setup/linear-status-contract.d.ts +15 -0
- package/dist/setup/linear-status-contract.d.ts.map +1 -0
- package/dist/setup/linear-status-contract.js +79 -0
- package/dist/setup/linear-status-contract.js.map +1 -0
- package/dist/setup/linear-webhook-env-local.d.ts +10 -0
- package/dist/setup/linear-webhook-env-local.d.ts.map +1 -0
- package/dist/setup/linear-webhook-env-local.js +74 -0
- package/dist/setup/linear-webhook-env-local.js.map +1 -0
- package/dist/setup/linear-webhook-secret.d.ts +63 -0
- package/dist/setup/linear-webhook-secret.d.ts.map +1 -0
- package/dist/setup/linear-webhook-secret.js +335 -0
- package/dist/setup/linear-webhook-secret.js.map +1 -0
- package/dist/setup/local-apply-actions.d.ts +85 -0
- package/dist/setup/local-apply-actions.d.ts.map +1 -0
- package/dist/setup/local-apply-actions.js +303 -0
- package/dist/setup/local-apply-actions.js.map +1 -0
- package/dist/setup/local-readiness-checks.d.ts +16 -0
- package/dist/setup/local-readiness-checks.d.ts.map +1 -0
- package/dist/setup/local-readiness-checks.js +164 -0
- package/dist/setup/local-readiness-checks.js.map +1 -0
- package/dist/setup/mock-target-workflow-finalization.d.ts +24 -0
- package/dist/setup/mock-target-workflow-finalization.d.ts.map +1 -0
- package/dist/setup/mock-target-workflow-finalization.js +367 -0
- package/dist/setup/mock-target-workflow-finalization.js.map +1 -0
- package/dist/setup/model-settings.d.ts +17 -0
- package/dist/setup/model-settings.d.ts.map +1 -0
- package/dist/setup/model-settings.js +46 -0
- package/dist/setup/model-settings.js.map +1 -0
- package/dist/setup/permission-model.d.ts +46 -0
- package/dist/setup/permission-model.d.ts.map +1 -0
- package/dist/setup/permission-model.js +56 -0
- package/dist/setup/permission-model.js.map +1 -0
- package/dist/setup/redact-secrets.d.ts +17 -0
- package/dist/setup/redact-secrets.d.ts.map +1 -0
- package/dist/setup/redact-secrets.js +51 -0
- package/dist/setup/redact-secrets.js.map +1 -0
- package/dist/setup/remote-actions.d.ts +136 -0
- package/dist/setup/remote-actions.d.ts.map +1 -0
- package/dist/setup/remote-actions.js +75 -0
- package/dist/setup/remote-actions.js.map +1 -0
- package/dist/setup/remote-apply-actions.d.ts +32 -0
- package/dist/setup/remote-apply-actions.d.ts.map +1 -0
- package/dist/setup/remote-apply-actions.js +242 -0
- package/dist/setup/remote-apply-actions.js.map +1 -0
- package/dist/setup/remote-preview-fingerprint.d.ts +15 -0
- package/dist/setup/remote-preview-fingerprint.d.ts.map +1 -0
- package/dist/setup/remote-preview-fingerprint.js +20 -0
- package/dist/setup/remote-preview-fingerprint.js.map +1 -0
- package/dist/setup/remote-setup-summary.d.ts +28 -0
- package/dist/setup/remote-setup-summary.d.ts.map +1 -0
- package/dist/setup/remote-setup-summary.js +93 -0
- package/dist/setup/remote-setup-summary.js.map +1 -0
- package/dist/setup/secret-change-token.d.ts +2 -0
- package/dist/setup/secret-change-token.d.ts.map +1 -0
- package/dist/setup/secret-change-token.js +14 -0
- package/dist/setup/secret-change-token.js.map +1 -0
- package/dist/setup/service-verification.d.ts +60 -0
- package/dist/setup/service-verification.d.ts.map +1 -0
- package/dist/setup/service-verification.js +419 -0
- package/dist/setup/service-verification.js.map +1 -0
- package/dist/setup/setup-actions.d.ts +126 -0
- package/dist/setup/setup-actions.d.ts.map +1 -0
- package/dist/setup/setup-actions.js +128 -0
- package/dist/setup/setup-actions.js.map +1 -0
- package/dist/setup/setup-github-auth.d.ts +5 -0
- package/dist/setup/setup-github-auth.d.ts.map +1 -0
- package/dist/setup/setup-github-auth.js +12 -0
- package/dist/setup/setup-github-auth.js.map +1 -0
- package/dist/setup/setup-state.d.ts +51 -0
- package/dist/setup/setup-state.d.ts.map +1 -0
- package/dist/setup/setup-state.js +19 -0
- package/dist/setup/setup-state.js.map +1 -0
- package/dist/setup/stale-smoke-repo.d.ts +40 -0
- package/dist/setup/stale-smoke-repo.d.ts.map +1 -0
- package/dist/setup/stale-smoke-repo.js +77 -0
- package/dist/setup/stale-smoke-repo.js.map +1 -0
- package/dist/setup/sync-downstream-summaries.d.ts +22 -0
- package/dist/setup/sync-downstream-summaries.d.ts.map +1 -0
- package/dist/setup/sync-downstream-summaries.js +54 -0
- package/dist/setup/sync-downstream-summaries.js.map +1 -0
- package/dist/setup/target-workflow-finalization-lock.d.ts +17 -0
- package/dist/setup/target-workflow-finalization-lock.d.ts.map +1 -0
- package/dist/setup/target-workflow-finalization-lock.js +72 -0
- package/dist/setup/target-workflow-finalization-lock.js.map +1 -0
- package/dist/setup/target-workflow-finalization-types.d.ts +32 -0
- package/dist/setup/target-workflow-finalization-types.d.ts.map +1 -0
- package/dist/setup/target-workflow-finalization-types.js +4 -0
- package/dist/setup/target-workflow-finalization-types.js.map +1 -0
- package/dist/setup/target-workflow-finalization.d.ts +19 -0
- package/dist/setup/target-workflow-finalization.d.ts.map +1 -0
- package/dist/setup/target-workflow-finalization.js +690 -0
- package/dist/setup/target-workflow-finalization.js.map +1 -0
- package/dist/setup/target-workflow-setup.d.ts +63 -0
- package/dist/setup/target-workflow-setup.d.ts.map +1 -0
- package/dist/setup/target-workflow-setup.js +167 -0
- package/dist/setup/target-workflow-setup.js.map +1 -0
- package/dist/setup/test-only-provisioning-provider.d.ts +11 -0
- package/dist/setup/test-only-provisioning-provider.d.ts.map +1 -0
- package/dist/setup/test-only-provisioning-provider.js +37 -0
- package/dist/setup/test-only-provisioning-provider.js.map +1 -0
- package/dist/setup/test-only-remote-setup-provider.d.ts +11 -0
- package/dist/setup/test-only-remote-setup-provider.d.ts.map +1 -0
- package/dist/setup/test-only-remote-setup-provider.js +37 -0
- package/dist/setup/test-only-remote-setup-provider.js.map +1 -0
- package/dist/setup/vercel-bridge-diagnostics.d.ts +101 -0
- package/dist/setup/vercel-bridge-diagnostics.d.ts.map +1 -0
- package/dist/setup/vercel-bridge-diagnostics.js +353 -0
- package/dist/setup/vercel-bridge-diagnostics.js.map +1 -0
- package/dist/setup/vercel-bridge-options.d.ts +35 -0
- package/dist/setup/vercel-bridge-options.d.ts.map +1 -0
- package/dist/setup/vercel-bridge-options.js +95 -0
- package/dist/setup/vercel-bridge-options.js.map +1 -0
- package/dist/setup/vercel-bridge-readiness.d.ts +38 -0
- package/dist/setup/vercel-bridge-readiness.d.ts.map +1 -0
- package/dist/setup/vercel-bridge-readiness.js +85 -0
- package/dist/setup/vercel-bridge-readiness.js.map +1 -0
- package/dist/setup/vercel-bridge-redeploy-poll.d.ts +46 -0
- package/dist/setup/vercel-bridge-redeploy-poll.d.ts.map +1 -0
- package/dist/setup/vercel-bridge-redeploy-poll.js +571 -0
- package/dist/setup/vercel-bridge-redeploy-poll.js.map +1 -0
- package/dist/setup/vercel-bridge-redeploy-state.d.ts +16 -0
- package/dist/setup/vercel-bridge-redeploy-state.d.ts.map +1 -0
- package/dist/setup/vercel-bridge-redeploy-state.js +27 -0
- package/dist/setup/vercel-bridge-redeploy-state.js.map +1 -0
- package/dist/setup/vercel-bridge-structured-log.d.ts +34 -0
- package/dist/setup/vercel-bridge-structured-log.d.ts.map +1 -0
- package/dist/setup/vercel-bridge-structured-log.js +30 -0
- package/dist/setup/vercel-bridge-structured-log.js.map +1 -0
- package/dist/setup/vercel-bridge-verification.d.ts +22 -0
- package/dist/setup/vercel-bridge-verification.d.ts.map +1 -0
- package/dist/setup/vercel-bridge-verification.js +38 -0
- package/dist/setup/vercel-bridge-verification.js.map +1 -0
- package/dist/setup/vercel-production-redeploy.d.ts +57 -0
- package/dist/setup/vercel-production-redeploy.d.ts.map +1 -0
- package/dist/setup/vercel-production-redeploy.js +180 -0
- package/dist/setup/vercel-production-redeploy.js.map +1 -0
- package/dist/setup/vercel-setup-apply.d.ts +69 -0
- package/dist/setup/vercel-setup-apply.d.ts.map +1 -0
- package/dist/setup/vercel-setup-apply.js +779 -0
- package/dist/setup/vercel-setup-apply.js.map +1 -0
- package/dist/setup/vercel-setup-client.d.ts +134 -0
- package/dist/setup/vercel-setup-client.d.ts.map +1 -0
- package/dist/setup/vercel-setup-client.js +416 -0
- package/dist/setup/vercel-setup-client.js.map +1 -0
- package/dist/setup/vercel-setup-plan.d.ts +132 -0
- package/dist/setup/vercel-setup-plan.d.ts.map +1 -0
- package/dist/setup/vercel-setup-plan.js +452 -0
- package/dist/setup/vercel-setup-plan.js.map +1 -0
- package/dist/setup/vercel-setup-summary.d.ts +11 -0
- package/dist/setup/vercel-setup-summary.d.ts.map +1 -0
- package/dist/setup/vercel-setup-summary.js +29 -0
- package/dist/setup/vercel-setup-summary.js.map +1 -0
- package/dist/setup/vercel-webhook-probe.d.ts +17 -0
- package/dist/setup/vercel-webhook-probe.d.ts.map +1 -0
- package/dist/setup/vercel-webhook-probe.js +125 -0
- package/dist/setup/vercel-webhook-probe.js.map +1 -0
- package/dist/setup/workflow-install-merge-errors.d.ts +12 -0
- package/dist/setup/workflow-install-merge-errors.d.ts.map +1 -0
- package/dist/setup/workflow-install-merge-errors.js +130 -0
- package/dist/setup/workflow-install-merge-errors.js.map +1 -0
- package/dist/types/parsed-issue.d.ts +9 -0
- package/dist/types/parsed-issue.d.ts.map +1 -0
- package/dist/types/parsed-issue.js +2 -0
- package/dist/types/parsed-issue.js.map +1 -0
- package/dist/types/run.d.ts +46 -0
- package/dist/types/run.d.ts.map +1 -0
- package/dist/types/run.js +2 -0
- package/dist/types/run.js.map +1 -0
- package/dist/validate/constants.d.ts +3 -0
- package/dist/validate/constants.d.ts.map +1 -0
- package/dist/validate/constants.js +3 -0
- package/dist/validate/constants.js.map +1 -0
- package/dist/validate/issue.d.ts +15 -0
- package/dist/validate/issue.d.ts.map +1 -0
- package/dist/validate/issue.js +177 -0
- package/dist/validate/issue.js.map +1 -0
- package/dist/validate/report.d.ts +3 -0
- package/dist/validate/report.d.ts.map +1 -0
- package/dist/validate/report.js +62 -0
- package/dist/validate/report.js.map +1 -0
- package/dist/validate/types.d.ts +30 -0
- package/dist/validate/types.d.ts.map +1 -0
- package/dist/validate/types.js +2 -0
- package/dist/validate/types.js.map +1 -0
- package/dist/webhook/dispatch-github.d.ts +6 -0
- package/dist/webhook/dispatch-github.d.ts.map +1 -0
- package/dist/webhook/dispatch-github.js +33 -0
- package/dist/webhook/dispatch-github.js.map +1 -0
- package/dist/webhook/dispatch-statuses.d.ts +8 -0
- package/dist/webhook/dispatch-statuses.d.ts.map +1 -0
- package/dist/webhook/dispatch-statuses.js +19 -0
- package/dist/webhook/dispatch-statuses.js.map +1 -0
- package/dist/webhook/extract-issue-key.d.ts +10 -0
- package/dist/webhook/extract-issue-key.d.ts.map +1 -0
- package/dist/webhook/extract-issue-key.js +33 -0
- package/dist/webhook/extract-issue-key.js.map +1 -0
- package/dist/webhook/filter.d.ts +9 -0
- package/dist/webhook/filter.d.ts.map +1 -0
- package/dist/webhook/filter.js +27 -0
- package/dist/webhook/filter.js.map +1 -0
- package/dist/webhook/handle-linear-webhook.d.ts +20 -0
- package/dist/webhook/handle-linear-webhook.d.ts.map +1 -0
- package/dist/webhook/handle-linear-webhook.js +139 -0
- package/dist/webhook/handle-linear-webhook.js.map +1 -0
- package/dist/webhook/parse-linear-issue-event.d.ts +31 -0
- package/dist/webhook/parse-linear-issue-event.d.ts.map +1 -0
- package/dist/webhook/parse-linear-issue-event.js +60 -0
- package/dist/webhook/parse-linear-issue-event.js.map +1 -0
- package/dist/webhook/redact-log.d.ts +15 -0
- package/dist/webhook/redact-log.d.ts.map +1 -0
- package/dist/webhook/redact-log.js +13 -0
- package/dist/webhook/redact-log.js.map +1 -0
- package/dist/webhook/types.d.ts +61 -0
- package/dist/webhook/types.d.ts.map +1 -0
- package/dist/webhook/types.js +2 -0
- package/dist/webhook/types.js.map +1 -0
- package/dist/webhook/verify.d.ts +16 -0
- package/dist/webhook/verify.d.ts.map +1 -0
- package/dist/webhook/verify.js +36 -0
- package/dist/webhook/verify.js.map +1 -0
- package/dist/webhook/workflow-command.d.ts +3 -0
- package/dist/webhook/workflow-command.d.ts.map +1 -0
- package/dist/webhook/workflow-command.js +7 -0
- package/dist/webhook/workflow-command.js.map +1 -0
- package/dist/workflow/dispatch-metadata.d.ts +4 -0
- package/dist/workflow/dispatch-metadata.d.ts.map +1 -0
- package/dist/workflow/dispatch-metadata.js +50 -0
- package/dist/workflow/dispatch-metadata.js.map +1 -0
- package/dist/workflow/manifest-summary.d.ts +10 -0
- package/dist/workflow/manifest-summary.d.ts.map +1 -0
- package/dist/workflow/manifest-summary.js +47 -0
- package/dist/workflow/manifest-summary.js.map +1 -0
- package/dist/workflow/production-sync-dispatch.d.ts +13 -0
- package/dist/workflow/production-sync-dispatch.d.ts.map +1 -0
- package/dist/workflow/production-sync-dispatch.js +38 -0
- package/dist/workflow/production-sync-dispatch.js.map +1 -0
- package/dist/workflow/summarize-manifest.d.ts +2 -0
- package/dist/workflow/summarize-manifest.d.ts.map +1 -0
- package/dist/workflow/summarize-manifest.js +15 -0
- package/dist/workflow/summarize-manifest.js.map +1 -0
- package/dist/workflow/validate.d.ts +7 -0
- package/dist/workflow/validate.d.ts.map +1 -0
- package/dist/workflow/validate.js +32 -0
- package/dist/workflow/validate.js.map +1 -0
- package/dist/workflow/write-dispatch-metadata.d.ts +2 -0
- package/dist/workflow/write-dispatch-metadata.d.ts.map +1 -0
- package/dist/workflow/write-dispatch-metadata.js +4 -0
- package/dist/workflow/write-dispatch-metadata.js.map +1 -0
- package/gui/.next/BUILD_ID +1 -0
- package/gui/.next/app-build-manifest.json +232 -0
- package/gui/.next/app-path-routes-manifest.json +33 -0
- package/gui/.next/build-manifest.json +33 -0
- package/gui/.next/diagnostics/build-diagnostics.json +6 -0
- package/gui/.next/diagnostics/framework.json +1 -0
- package/gui/.next/export-marker.json +6 -0
- package/gui/.next/images-manifest.json +58 -0
- package/gui/.next/next-minimal-server.js.nft.json +1 -0
- package/gui/.next/next-server.js.nft.json +1 -0
- package/gui/.next/package.json +1 -0
- package/gui/.next/prerender-manifest.json +61 -0
- package/gui/.next/react-loadable-manifest.json +1 -0
- package/gui/.next/required-server-files.json +333 -0
- package/gui/.next/routes-manifest.json +59 -0
- package/gui/.next/server/app/_not-found/page.js +2 -0
- package/gui/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/gui/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/_not-found.html +1 -0
- package/gui/.next/server/app/_not-found.meta +8 -0
- package/gui/.next/server/app/_not-found.rsc +17 -0
- package/gui/.next/server/app/api/setup/apply-connect-services/route.js +1 -0
- package/gui/.next/server/app/api/setup/apply-connect-services/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/apply-connect-services/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/apply-harness-repo-provisioning/route.js +1 -0
- package/gui/.next/server/app/api/setup/apply-harness-repo-provisioning/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/apply-harness-repo-provisioning/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/apply-harness-secrets/route.js +1 -0
- package/gui/.next/server/app/api/setup/apply-harness-secrets/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/apply-harness-secrets/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/apply-linear-setup/route.js +1 -0
- package/gui/.next/server/app/api/setup/apply-linear-setup/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/apply-linear-setup/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/apply-local-files/route.js +1 -0
- package/gui/.next/server/app/api/setup/apply-local-files/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/apply-local-files/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/apply-target-workflow/route.js +1 -0
- package/gui/.next/server/app/api/setup/apply-target-workflow/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/apply-target-workflow/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/apply-vercel-bridge/route.js +1 -0
- package/gui/.next/server/app/api/setup/apply-vercel-bridge/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/apply-vercel-bridge/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/finalize-target-workflow/route.js +1 -0
- package/gui/.next/server/app/api/setup/finalize-target-workflow/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/finalize-target-workflow/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/harness-provisioning-summary/route.js +1 -0
- package/gui/.next/server/app/api/setup/harness-provisioning-summary/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/harness-provisioning-summary/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/linear-options/route.js +1 -0
- package/gui/.next/server/app/api/setup/linear-options/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/linear-options/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/linear-summary/route.js +1 -0
- package/gui/.next/server/app/api/setup/linear-summary/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/linear-summary/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/local-readiness/route.js +1 -0
- package/gui/.next/server/app/api/setup/local-readiness/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/local-readiness/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/manual-harness-secret-values/route.js +1 -0
- package/gui/.next/server/app/api/setup/manual-harness-secret-values/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/manual-harness-secret-values/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/preview-connect-services/route.js +1 -0
- package/gui/.next/server/app/api/setup/preview-connect-services/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/preview-connect-services/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/preview-harness-repo-provisioning/route.js +1 -0
- package/gui/.next/server/app/api/setup/preview-harness-repo-provisioning/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/preview-harness-repo-provisioning/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/preview-harness-secrets/route.js +1 -0
- package/gui/.next/server/app/api/setup/preview-harness-secrets/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/preview-harness-secrets/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/preview-linear-setup/route.js +1 -0
- package/gui/.next/server/app/api/setup/preview-linear-setup/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/preview-linear-setup/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/preview-local-files/route.js +1 -0
- package/gui/.next/server/app/api/setup/preview-local-files/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/preview-local-files/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/preview-target-workflow/route.js +1 -0
- package/gui/.next/server/app/api/setup/preview-target-workflow/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/preview-target-workflow/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/preview-vercel-bridge/route.js +1 -0
- package/gui/.next/server/app/api/setup/preview-vercel-bridge/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/preview-vercel-bridge/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/remote-summary/route.js +1 -0
- package/gui/.next/server/app/api/setup/remote-summary/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/remote-summary/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/summary/route.js +1 -0
- package/gui/.next/server/app/api/setup/summary/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/summary/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/vercel-bridge-options/route.js +1 -0
- package/gui/.next/server/app/api/setup/vercel-bridge-options/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/vercel-bridge-options/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/vercel-bridge-redeploy-status/route.js +1 -0
- package/gui/.next/server/app/api/setup/vercel-bridge-redeploy-status/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/vercel-bridge-redeploy-status/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/vercel-summary/route.js +1 -0
- package/gui/.next/server/app/api/setup/vercel-summary/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/vercel-summary/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/verify-harness-repo/route.js +1 -0
- package/gui/.next/server/app/api/setup/verify-harness-repo/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/verify-harness-repo/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/verify-service/route.js +1 -0
- package/gui/.next/server/app/api/setup/verify-service/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/verify-service/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/verify-target-repo/route.js +1 -0
- package/gui/.next/server/app/api/setup/verify-target-repo/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/verify-target-repo/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/index.html +1 -0
- package/gui/.next/server/app/index.meta +9 -0
- package/gui/.next/server/app/index.rsc +18 -0
- package/gui/.next/server/app/page.js +2 -0
- package/gui/.next/server/app/page.js.nft.json +1 -0
- package/gui/.next/server/app/page_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/settings/configure/page.js +10 -0
- package/gui/.next/server/app/settings/configure/page.js.nft.json +1 -0
- package/gui/.next/server/app/settings/configure/page_client-reference-manifest.js +1 -0
- package/gui/.next/server/app-paths-manifest.json +33 -0
- package/gui/.next/server/chunks/120.js +81 -0
- package/gui/.next/server/chunks/200.js +1 -0
- package/gui/.next/server/chunks/332.js +9 -0
- package/gui/.next/server/chunks/383.js +6 -0
- package/gui/.next/server/chunks/477.js +16 -0
- package/gui/.next/server/chunks/585.js +1 -0
- package/gui/.next/server/chunks/711.js +1 -0
- package/gui/.next/server/chunks/900.js +1 -0
- package/gui/.next/server/chunks/901.js +22 -0
- package/gui/.next/server/functions-config-manifest.json +4 -0
- package/gui/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/gui/.next/server/middleware-build-manifest.js +1 -0
- package/gui/.next/server/middleware-manifest.json +6 -0
- package/gui/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/gui/.next/server/next-font-manifest.js +1 -0
- package/gui/.next/server/next-font-manifest.json +1 -0
- package/gui/.next/server/pages/404.html +1 -0
- package/gui/.next/server/pages/500.html +1 -0
- package/gui/.next/server/pages/_app.js +1 -0
- package/gui/.next/server/pages/_app.js.nft.json +1 -0
- package/gui/.next/server/pages/_document.js +1 -0
- package/gui/.next/server/pages/_document.js.nft.json +1 -0
- package/gui/.next/server/pages/_error.js +19 -0
- package/gui/.next/server/pages/_error.js.nft.json +1 -0
- package/gui/.next/server/pages-manifest.json +6 -0
- package/gui/.next/server/server-reference-manifest.js +1 -0
- package/gui/.next/server/server-reference-manifest.json +1 -0
- package/gui/.next/server/webpack-runtime.js +1 -0
- package/gui/.next/static/7x8X_k4tESvkyqRnNCC9E/_buildManifest.js +1 -0
- package/gui/.next/static/7x8X_k4tESvkyqRnNCC9E/_ssgManifest.js +1 -0
- package/gui/.next/static/chunks/17a9af85-3150126cc8b0fbba.js +1 -0
- package/gui/.next/static/chunks/18-7be73bec2ceaa744.js +1 -0
- package/gui/.next/static/chunks/51af2d27-9a58e6b5db9a3047.js +1 -0
- package/gui/.next/static/chunks/661-5fc9351358e2f084.js +1 -0
- package/gui/.next/static/chunks/87c73c54-24122e7b92478d00.js +1 -0
- package/gui/.next/static/chunks/app/_not-found/page-f15332c94524c284.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-connect-services/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-harness-repo-provisioning/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-harness-secrets/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-linear-setup/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-local-files/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-target-workflow/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-vercel-bridge/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/finalize-target-workflow/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/harness-provisioning-summary/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/linear-options/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/linear-summary/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/local-readiness/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/manual-harness-secret-values/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-connect-services/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-harness-repo-provisioning/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-harness-secrets/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-linear-setup/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-local-files/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-target-workflow/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-vercel-bridge/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/remote-summary/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/summary/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/vercel-bridge-options/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/vercel-bridge-redeploy-status/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/vercel-summary/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/verify-harness-repo/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/verify-service/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/verify-target-repo/route-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/layout-10445a363bff6a38.js +1 -0
- package/gui/.next/static/chunks/app/page-979ec1702bd9938a.js +1 -0
- package/gui/.next/static/chunks/app/settings/configure/page-25b2288ace2949a1.js +1 -0
- package/gui/.next/static/chunks/framework-7318ce553e854ad6.js +1 -0
- package/gui/.next/static/chunks/main-app-732547e2b1a794b6.js +1 -0
- package/gui/.next/static/chunks/main-f7a784f5852cbbd1.js +1 -0
- package/gui/.next/static/chunks/pages/_app-2e239ff05bfdf6d6.js +1 -0
- package/gui/.next/static/chunks/pages/_error-bda15e7831eec981.js +1 -0
- package/gui/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/gui/.next/static/chunks/webpack-1e50074b7e886e1b.js +1 -0
- package/gui/.next/static/css/cc2acc71c03f3b4b.css +3 -0
- package/gui/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
- package/gui/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
- package/gui/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
- package/gui/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
- package/gui/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
- package/gui/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
- package/gui/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
- package/gui/.next/trace +4 -0
- package/gui/.next/types/app/api/setup/apply-connect-services/route.ts +347 -0
- package/gui/.next/types/app/api/setup/apply-harness-repo-provisioning/route.ts +347 -0
- package/gui/.next/types/app/api/setup/apply-harness-secrets/route.ts +347 -0
- package/gui/.next/types/app/api/setup/apply-linear-setup/route.ts +347 -0
- package/gui/.next/types/app/api/setup/apply-local-files/route.ts +347 -0
- package/gui/.next/types/app/api/setup/apply-target-workflow/route.ts +347 -0
- package/gui/.next/types/app/api/setup/apply-vercel-bridge/route.ts +347 -0
- package/gui/.next/types/app/api/setup/finalize-target-workflow/route.ts +347 -0
- package/gui/.next/types/app/api/setup/harness-provisioning-summary/route.ts +347 -0
- package/gui/.next/types/app/api/setup/linear-options/route.ts +347 -0
- package/gui/.next/types/app/api/setup/linear-summary/route.ts +347 -0
- package/gui/.next/types/app/api/setup/local-readiness/route.ts +347 -0
- package/gui/.next/types/app/api/setup/manual-harness-secret-values/route.ts +347 -0
- package/gui/.next/types/app/api/setup/preview-connect-services/route.ts +347 -0
- package/gui/.next/types/app/api/setup/preview-harness-repo-provisioning/route.ts +347 -0
- package/gui/.next/types/app/api/setup/preview-harness-secrets/route.ts +347 -0
- package/gui/.next/types/app/api/setup/preview-linear-setup/route.ts +347 -0
- package/gui/.next/types/app/api/setup/preview-local-files/route.ts +347 -0
- package/gui/.next/types/app/api/setup/preview-target-workflow/route.ts +347 -0
- package/gui/.next/types/app/api/setup/preview-vercel-bridge/route.ts +347 -0
- package/gui/.next/types/app/api/setup/remote-summary/route.ts +347 -0
- package/gui/.next/types/app/api/setup/summary/route.ts +347 -0
- package/gui/.next/types/app/api/setup/vercel-bridge-options/route.ts +347 -0
- package/gui/.next/types/app/api/setup/vercel-bridge-redeploy-status/route.ts +347 -0
- package/gui/.next/types/app/api/setup/vercel-summary/route.ts +347 -0
- package/gui/.next/types/app/api/setup/verify-harness-repo/route.ts +347 -0
- package/gui/.next/types/app/api/setup/verify-service/route.ts +347 -0
- package/gui/.next/types/app/api/setup/verify-target-repo/route.ts +347 -0
- package/gui/.next/types/app/layout.ts +84 -0
- package/gui/.next/types/app/page.ts +84 -0
- package/gui/.next/types/app/settings/configure/page.ts +84 -0
- package/gui/.next/types/cache-life.d.ts +141 -0
- package/gui/.next/types/package.json +1 -0
- package/gui/.next/types/routes.d.ts +101 -0
- package/gui/.next/types/validator.ts +331 -0
- package/gui/next.config.mjs +13 -0
- package/gui/postcss.config.mjs +8 -0
- package/gui/public/setup/github-token/github-pat-generate-classic.png +0 -0
- package/gui/public/setup/github-token/github-pat-generate-new-token.png +0 -0
- package/gui/public/setup/github-token/github-pat-verify-email.png +0 -0
- package/package.json +62 -0
- package/templates/.env.example +37 -0
- package/templates/.harness/config.example.json +83 -0
|
@@ -0,0 +1,690 @@
|
|
|
1
|
+
import { DEFAULT_MERGE_METHOD } from "../config/defaults.js";
|
|
2
|
+
import { loadHarnessConfig } from "../config/load-config.js";
|
|
3
|
+
import { GitHubApiError } from "../github/client.js";
|
|
4
|
+
import { assertPrBaseBranchMatches } from "../github/base-branch.js";
|
|
5
|
+
import { evaluateChecksForMerge } from "../github/check-policy.js";
|
|
6
|
+
import { classifyMergeError, isAlreadyMergedError, } from "../github/merge-result.js";
|
|
7
|
+
import { inspectPullRequestForMerge, } from "../github/pr-inspector.js";
|
|
8
|
+
import { parsePrUrl } from "../github/pr-url.js";
|
|
9
|
+
import { redactSecretsString } from "../artifacts/redact.js";
|
|
10
|
+
import { formatHarnessDispatchRepo, resolveHarnessDispatchRepo, } from "./harness-dispatch-repo.js";
|
|
11
|
+
import { targetRepoSlugFromUrl } from "./harness-secret-setup.js";
|
|
12
|
+
import { TARGET_WORKFLOW_PATH, } from "./remote-actions.js";
|
|
13
|
+
import { buildTargetWorkflowBranchName, buildTargetWorkflowPrTitle, compareTargetWorkflowContent, previewTargetWorkflowSetup, } from "./target-workflow-setup.js";
|
|
14
|
+
import { blockedCategoryMessage, classifyWorkflowInstallMergeRejection, } from "./workflow-install-merge-errors.js";
|
|
15
|
+
import { buildFinalizationLockKey, withTargetWorkflowFinalizationLock, } from "./target-workflow-finalization-lock.js";
|
|
16
|
+
import { WORKFLOW_INSTALL_CHECK_POLL_TIMEOUT_MS, WORKFLOW_INSTALL_VERIFICATION_TIMEOUT_MS, } from "./target-workflow-finalization-types.js";
|
|
17
|
+
const sessions = new Map();
|
|
18
|
+
function sessionKey(targetRepoSlug, repoConfigId) {
|
|
19
|
+
return `${targetRepoSlug}:${repoConfigId}`;
|
|
20
|
+
}
|
|
21
|
+
function blockedResult(input) {
|
|
22
|
+
return {
|
|
23
|
+
repoConfigId: input.repoConfigId,
|
|
24
|
+
targetRepo: input.targetRepo,
|
|
25
|
+
targetRepoSlug: input.targetRepoSlug,
|
|
26
|
+
productionBranch: input.productionBranch,
|
|
27
|
+
branchName: input.branchName,
|
|
28
|
+
lifecycle: "blocked",
|
|
29
|
+
blockedCategory: input.category,
|
|
30
|
+
message: input.customMessage ?? blockedCategoryMessage(input.category),
|
|
31
|
+
prUrl: input.prUrl,
|
|
32
|
+
prNumber: input.prNumber,
|
|
33
|
+
validatedHeadSha: input.validatedHeadSha,
|
|
34
|
+
workflowStatus: input.workflowStatus,
|
|
35
|
+
canRetry: input.category === "verification-failed",
|
|
36
|
+
requiresGitHubIntervention: ![
|
|
37
|
+
"checks-pending",
|
|
38
|
+
"mergeability-pending",
|
|
39
|
+
"branch-behind",
|
|
40
|
+
"verification-failed",
|
|
41
|
+
].includes(input.category),
|
|
42
|
+
advancedThisRequest: input.advancedThisRequest,
|
|
43
|
+
lockContended: input.lockContended,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function progressResult(input) {
|
|
47
|
+
return {
|
|
48
|
+
repoConfigId: input.repoConfigId,
|
|
49
|
+
targetRepo: input.targetRepo,
|
|
50
|
+
targetRepoSlug: input.targetRepoSlug,
|
|
51
|
+
productionBranch: input.productionBranch,
|
|
52
|
+
branchName: input.branchName,
|
|
53
|
+
lifecycle: input.lifecycle,
|
|
54
|
+
blockedCategory: input.blockedCategory,
|
|
55
|
+
message: input.message,
|
|
56
|
+
prUrl: input.prUrl,
|
|
57
|
+
prNumber: input.prNumber,
|
|
58
|
+
validatedHeadSha: input.validatedHeadSha,
|
|
59
|
+
workflowStatus: input.workflowStatus,
|
|
60
|
+
canRetry: input.canRetry ?? false,
|
|
61
|
+
requiresGitHubIntervention: input.requiresGitHubIntervention ?? false,
|
|
62
|
+
advancedThisRequest: input.advancedThisRequest,
|
|
63
|
+
lockContended: input.lockContended,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function completeResult(input) {
|
|
67
|
+
sessions.delete(sessionKey(input.targetRepoSlug, input.repoConfigId));
|
|
68
|
+
return progressResult({
|
|
69
|
+
...input,
|
|
70
|
+
lifecycle: "complete",
|
|
71
|
+
workflowStatus: "present",
|
|
72
|
+
message: "Workflow installed on the production branch.",
|
|
73
|
+
advancedThisRequest: input.advancedThisRequest,
|
|
74
|
+
lockContended: input.lockContended,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
async function readWorkflowAtRef(client, targetRepoSlug, workflowPath, ref) {
|
|
78
|
+
const [owner, repo] = targetRepoSlug.split("/");
|
|
79
|
+
const content = await client.getRepositoryContent(owner, repo, workflowPath, ref);
|
|
80
|
+
return content ? client.decodeRepositoryContent(content) : null;
|
|
81
|
+
}
|
|
82
|
+
async function findOpenInstallPullRequest(client, input) {
|
|
83
|
+
const [owner, repo] = input.targetRepoSlug.split("/");
|
|
84
|
+
const pulls = await client.listPullRequests(owner, repo, {
|
|
85
|
+
state: "open",
|
|
86
|
+
base: input.productionBranch,
|
|
87
|
+
head: `${owner}:${input.branchName}`,
|
|
88
|
+
});
|
|
89
|
+
const first = pulls[0];
|
|
90
|
+
if (!first) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
number: first.number,
|
|
95
|
+
html_url: first.html_url,
|
|
96
|
+
headSha: first.head.sha,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function validatePullRequestFiles(files, workflowPath) {
|
|
100
|
+
if (files.length !== 1) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
return files[0]?.path === workflowPath;
|
|
104
|
+
}
|
|
105
|
+
export async function advanceTargetWorkflowFinalizationStep(options) {
|
|
106
|
+
const { input, provider, client, lockContended = false } = options;
|
|
107
|
+
const targetRepoSlug = targetRepoSlugFromUrl(input.targetRepo);
|
|
108
|
+
if (!targetRepoSlug) {
|
|
109
|
+
return blockedResult({
|
|
110
|
+
repoConfigId: input.repoConfigId,
|
|
111
|
+
targetRepo: input.targetRepo,
|
|
112
|
+
targetRepoSlug: "<invalid>",
|
|
113
|
+
productionBranch: input.productionBranch,
|
|
114
|
+
branchName: buildTargetWorkflowBranchName(input.repoConfigId),
|
|
115
|
+
category: "unexpected-pr-content",
|
|
116
|
+
workflowStatus: "unknown",
|
|
117
|
+
advancedThisRequest: true,
|
|
118
|
+
lockContended,
|
|
119
|
+
customMessage: `Invalid target repo URL: ${input.targetRepo}`,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
const branchName = input.branchName ?? buildTargetWorkflowBranchName(input.repoConfigId);
|
|
123
|
+
const harnessDispatchRepo = await resolveHarnessDispatchRepo({
|
|
124
|
+
cwd: options.cwd,
|
|
125
|
+
manualRepo: input.manualHarnessDispatchRepo,
|
|
126
|
+
});
|
|
127
|
+
const preview = previewTargetWorkflowSetup({
|
|
128
|
+
repoConfigId: input.repoConfigId,
|
|
129
|
+
targetRepo: input.targetRepo,
|
|
130
|
+
productionBranch: input.productionBranch,
|
|
131
|
+
harnessDispatchRepo,
|
|
132
|
+
});
|
|
133
|
+
const intendedWorkflowContent = preview.workflowContent;
|
|
134
|
+
const harnessDispatchRepoSlug = formatHarnessDispatchRepo(harnessDispatchRepo);
|
|
135
|
+
const productionStatus = await provider.checkTargetWorkflowStatus({
|
|
136
|
+
targetRepoSlug,
|
|
137
|
+
workflowPath: TARGET_WORKFLOW_PATH,
|
|
138
|
+
intendedWorkflowContent,
|
|
139
|
+
productionBranch: input.productionBranch,
|
|
140
|
+
});
|
|
141
|
+
if (productionStatus.workflowStatus === "present") {
|
|
142
|
+
return completeResult({
|
|
143
|
+
repoConfigId: input.repoConfigId,
|
|
144
|
+
targetRepo: input.targetRepo,
|
|
145
|
+
targetRepoSlug,
|
|
146
|
+
productionBranch: input.productionBranch,
|
|
147
|
+
branchName,
|
|
148
|
+
advancedThisRequest: true,
|
|
149
|
+
lockContended,
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
const session = sessions.get(sessionKey(targetRepoSlug, input.repoConfigId)) ?? {};
|
|
153
|
+
let prUrl = input.prUrl;
|
|
154
|
+
let prNumber;
|
|
155
|
+
let validatedHeadSha;
|
|
156
|
+
if (prUrl) {
|
|
157
|
+
const parsed = parsePrUrl(prUrl);
|
|
158
|
+
if (parsed) {
|
|
159
|
+
prNumber = parsed.pullNumber;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
if (!prUrl) {
|
|
163
|
+
const discovered = await findOpenInstallPullRequest(client, {
|
|
164
|
+
targetRepoSlug,
|
|
165
|
+
productionBranch: input.productionBranch,
|
|
166
|
+
branchName,
|
|
167
|
+
});
|
|
168
|
+
if (discovered) {
|
|
169
|
+
prUrl = discovered.html_url;
|
|
170
|
+
prNumber = discovered.number;
|
|
171
|
+
validatedHeadSha = discovered.headSha;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
if (!prUrl || !prNumber) {
|
|
175
|
+
return blockedResult({
|
|
176
|
+
repoConfigId: input.repoConfigId,
|
|
177
|
+
targetRepo: input.targetRepo,
|
|
178
|
+
targetRepoSlug,
|
|
179
|
+
productionBranch: input.productionBranch,
|
|
180
|
+
branchName,
|
|
181
|
+
category: "unexpected-pr-content",
|
|
182
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
183
|
+
advancedThisRequest: true,
|
|
184
|
+
lockContended,
|
|
185
|
+
customMessage: "No open workflow install PR was found for the deterministic install branch.",
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
const parsedPr = parsePrUrl(prUrl);
|
|
189
|
+
if (!parsedPr) {
|
|
190
|
+
return blockedResult({
|
|
191
|
+
repoConfigId: input.repoConfigId,
|
|
192
|
+
targetRepo: input.targetRepo,
|
|
193
|
+
targetRepoSlug,
|
|
194
|
+
productionBranch: input.productionBranch,
|
|
195
|
+
branchName,
|
|
196
|
+
category: "unexpected-pr-content",
|
|
197
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
198
|
+
prUrl,
|
|
199
|
+
advancedThisRequest: true,
|
|
200
|
+
lockContended,
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
let inspection = await inspectPullRequestForMerge(client, parsedPr, input.targetRepo);
|
|
204
|
+
if (inspection.merged) {
|
|
205
|
+
const reverified = await provider.checkTargetWorkflowStatus({
|
|
206
|
+
targetRepoSlug,
|
|
207
|
+
workflowPath: TARGET_WORKFLOW_PATH,
|
|
208
|
+
intendedWorkflowContent,
|
|
209
|
+
productionBranch: input.productionBranch,
|
|
210
|
+
});
|
|
211
|
+
if (reverified.workflowStatus === "present") {
|
|
212
|
+
return completeResult({
|
|
213
|
+
repoConfigId: input.repoConfigId,
|
|
214
|
+
targetRepo: input.targetRepo,
|
|
215
|
+
targetRepoSlug,
|
|
216
|
+
productionBranch: input.productionBranch,
|
|
217
|
+
branchName,
|
|
218
|
+
prUrl,
|
|
219
|
+
prNumber,
|
|
220
|
+
advancedThisRequest: true,
|
|
221
|
+
lockContended,
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
session.verificationStartedAt ??= Date.now();
|
|
225
|
+
if (Date.now() - session.verificationStartedAt >
|
|
226
|
+
WORKFLOW_INSTALL_VERIFICATION_TIMEOUT_MS) {
|
|
227
|
+
sessions.set(sessionKey(targetRepoSlug, input.repoConfigId), session);
|
|
228
|
+
return blockedResult({
|
|
229
|
+
repoConfigId: input.repoConfigId,
|
|
230
|
+
targetRepo: input.targetRepo,
|
|
231
|
+
targetRepoSlug,
|
|
232
|
+
productionBranch: input.productionBranch,
|
|
233
|
+
branchName,
|
|
234
|
+
category: "verification-failed",
|
|
235
|
+
workflowStatus: reverified.workflowStatus,
|
|
236
|
+
prUrl,
|
|
237
|
+
prNumber,
|
|
238
|
+
advancedThisRequest: true,
|
|
239
|
+
lockContended,
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
sessions.set(sessionKey(targetRepoSlug, input.repoConfigId), session);
|
|
243
|
+
return progressResult({
|
|
244
|
+
repoConfigId: input.repoConfigId,
|
|
245
|
+
targetRepo: input.targetRepo,
|
|
246
|
+
targetRepoSlug,
|
|
247
|
+
productionBranch: input.productionBranch,
|
|
248
|
+
branchName,
|
|
249
|
+
lifecycle: "verifying",
|
|
250
|
+
workflowStatus: reverified.workflowStatus,
|
|
251
|
+
message: "Verifying workflow on the production branch.",
|
|
252
|
+
prUrl,
|
|
253
|
+
prNumber,
|
|
254
|
+
advancedThisRequest: true,
|
|
255
|
+
lockContended,
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
if (inspection.branch !== branchName) {
|
|
259
|
+
return blockedResult({
|
|
260
|
+
repoConfigId: input.repoConfigId,
|
|
261
|
+
targetRepo: input.targetRepo,
|
|
262
|
+
targetRepoSlug,
|
|
263
|
+
productionBranch: input.productionBranch,
|
|
264
|
+
branchName,
|
|
265
|
+
category: "unexpected-pr-content",
|
|
266
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
267
|
+
prUrl,
|
|
268
|
+
prNumber,
|
|
269
|
+
advancedThisRequest: true,
|
|
270
|
+
lockContended,
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
try {
|
|
274
|
+
assertPrBaseBranchMatches({
|
|
275
|
+
prUrl,
|
|
276
|
+
actualBaseBranch: inspection.baseBranch,
|
|
277
|
+
expectedBaseBranch: input.productionBranch,
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
catch {
|
|
281
|
+
return blockedResult({
|
|
282
|
+
repoConfigId: input.repoConfigId,
|
|
283
|
+
targetRepo: input.targetRepo,
|
|
284
|
+
targetRepoSlug,
|
|
285
|
+
productionBranch: input.productionBranch,
|
|
286
|
+
branchName,
|
|
287
|
+
category: "unexpected-pr-content",
|
|
288
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
289
|
+
prUrl,
|
|
290
|
+
prNumber,
|
|
291
|
+
advancedThisRequest: true,
|
|
292
|
+
lockContended,
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
if (inspection.isDraft) {
|
|
296
|
+
await client.markPullRequestReadyForReview(parsedPr.owner, parsedPr.repo, parsedPr.pullNumber);
|
|
297
|
+
inspection = await inspectPullRequestForMerge(client, parsedPr, input.targetRepo);
|
|
298
|
+
}
|
|
299
|
+
validatedHeadSha = inspection.headSha;
|
|
300
|
+
session.lastValidatedHeadSha = validatedHeadSha;
|
|
301
|
+
if (!validatePullRequestFiles(inspection.changedFiles, TARGET_WORKFLOW_PATH)) {
|
|
302
|
+
return blockedResult({
|
|
303
|
+
repoConfigId: input.repoConfigId,
|
|
304
|
+
targetRepo: input.targetRepo,
|
|
305
|
+
targetRepoSlug,
|
|
306
|
+
productionBranch: input.productionBranch,
|
|
307
|
+
branchName,
|
|
308
|
+
category: "unexpected-pr-content",
|
|
309
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
310
|
+
prUrl,
|
|
311
|
+
prNumber,
|
|
312
|
+
validatedHeadSha,
|
|
313
|
+
advancedThisRequest: true,
|
|
314
|
+
lockContended,
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
const headWorkflowContent = await readWorkflowAtRef(client, targetRepoSlug, TARGET_WORKFLOW_PATH, inspection.headSha);
|
|
318
|
+
if (compareTargetWorkflowContent(headWorkflowContent, intendedWorkflowContent) !==
|
|
319
|
+
"present") {
|
|
320
|
+
return blockedResult({
|
|
321
|
+
repoConfigId: input.repoConfigId,
|
|
322
|
+
targetRepo: input.targetRepo,
|
|
323
|
+
targetRepoSlug,
|
|
324
|
+
productionBranch: input.productionBranch,
|
|
325
|
+
branchName,
|
|
326
|
+
category: "unexpected-pr-content",
|
|
327
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
328
|
+
prUrl,
|
|
329
|
+
prNumber,
|
|
330
|
+
validatedHeadSha,
|
|
331
|
+
advancedThisRequest: true,
|
|
332
|
+
lockContended,
|
|
333
|
+
customMessage: "Workflow install PR content does not match the harness-generated workflow.",
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
if (!intendedWorkflowContent.includes(harnessDispatchRepoSlug) ||
|
|
337
|
+
!intendedWorkflowContent.includes(`--arg repo ${input.repoConfigId}`)) {
|
|
338
|
+
return blockedResult({
|
|
339
|
+
repoConfigId: input.repoConfigId,
|
|
340
|
+
targetRepo: input.targetRepo,
|
|
341
|
+
targetRepoSlug,
|
|
342
|
+
productionBranch: input.productionBranch,
|
|
343
|
+
branchName,
|
|
344
|
+
category: "unexpected-pr-content",
|
|
345
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
346
|
+
prUrl,
|
|
347
|
+
prNumber,
|
|
348
|
+
validatedHeadSha,
|
|
349
|
+
advancedThisRequest: true,
|
|
350
|
+
lockContended,
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
const loadedConfig = await loadHarnessConfig({ baseDir: options.cwd });
|
|
354
|
+
const mergeMethod = loadedConfig.config.merge?.mergeMethod ?? DEFAULT_MERGE_METHOD;
|
|
355
|
+
const checkPolicy = evaluateChecksForMerge(inspection.checks, loadedConfig.config);
|
|
356
|
+
if (checkPolicy.decision === "block") {
|
|
357
|
+
if (checkPolicy.classification === "checks_failing") {
|
|
358
|
+
return blockedResult({
|
|
359
|
+
repoConfigId: input.repoConfigId,
|
|
360
|
+
targetRepo: input.targetRepo,
|
|
361
|
+
targetRepoSlug,
|
|
362
|
+
productionBranch: input.productionBranch,
|
|
363
|
+
branchName,
|
|
364
|
+
category: "checks-failing",
|
|
365
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
366
|
+
prUrl,
|
|
367
|
+
prNumber,
|
|
368
|
+
validatedHeadSha,
|
|
369
|
+
advancedThisRequest: true,
|
|
370
|
+
lockContended,
|
|
371
|
+
customMessage: redactSecretsString(checkPolicy.reason),
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
session.checksPendingSince ??= Date.now();
|
|
375
|
+
if (Date.now() - session.checksPendingSince >
|
|
376
|
+
WORKFLOW_INSTALL_CHECK_POLL_TIMEOUT_MS) {
|
|
377
|
+
sessions.set(sessionKey(targetRepoSlug, input.repoConfigId), session);
|
|
378
|
+
return blockedResult({
|
|
379
|
+
repoConfigId: input.repoConfigId,
|
|
380
|
+
targetRepo: input.targetRepo,
|
|
381
|
+
targetRepoSlug,
|
|
382
|
+
productionBranch: input.productionBranch,
|
|
383
|
+
branchName,
|
|
384
|
+
category: "checks-pending",
|
|
385
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
386
|
+
prUrl,
|
|
387
|
+
prNumber,
|
|
388
|
+
validatedHeadSha,
|
|
389
|
+
advancedThisRequest: true,
|
|
390
|
+
lockContended,
|
|
391
|
+
customMessage: "Timed out waiting for GitHub checks on the workflow install PR.",
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
sessions.set(sessionKey(targetRepoSlug, input.repoConfigId), session);
|
|
395
|
+
return progressResult({
|
|
396
|
+
repoConfigId: input.repoConfigId,
|
|
397
|
+
targetRepo: input.targetRepo,
|
|
398
|
+
targetRepoSlug,
|
|
399
|
+
productionBranch: input.productionBranch,
|
|
400
|
+
branchName,
|
|
401
|
+
lifecycle: "waiting-for-checks",
|
|
402
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
403
|
+
message: "Waiting for GitHub checks on the workflow install PR.",
|
|
404
|
+
prUrl,
|
|
405
|
+
prNumber,
|
|
406
|
+
validatedHeadSha,
|
|
407
|
+
advancedThisRequest: true,
|
|
408
|
+
lockContended,
|
|
409
|
+
blockedCategory: "checks-pending",
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
const mergeableState = inspection.mergeableState?.toLowerCase() ?? null;
|
|
413
|
+
if (mergeableState === "unknown" || inspection.mergeable === null) {
|
|
414
|
+
sessions.set(sessionKey(targetRepoSlug, input.repoConfigId), session);
|
|
415
|
+
return progressResult({
|
|
416
|
+
repoConfigId: input.repoConfigId,
|
|
417
|
+
targetRepo: input.targetRepo,
|
|
418
|
+
targetRepoSlug,
|
|
419
|
+
productionBranch: input.productionBranch,
|
|
420
|
+
branchName,
|
|
421
|
+
lifecycle: "waiting-for-checks",
|
|
422
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
423
|
+
message: "Waiting for GitHub mergeability on the workflow install PR.",
|
|
424
|
+
prUrl,
|
|
425
|
+
prNumber,
|
|
426
|
+
validatedHeadSha,
|
|
427
|
+
advancedThisRequest: true,
|
|
428
|
+
lockContended,
|
|
429
|
+
blockedCategory: "mergeability-pending",
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
if (mergeableState === "behind") {
|
|
433
|
+
if (session.branchUpdateAttemptedForHeadSha !== validatedHeadSha) {
|
|
434
|
+
try {
|
|
435
|
+
await client.updatePullRequestBranch(parsedPr.owner, parsedPr.repo, parsedPr.pullNumber, { expectedHeadSha: validatedHeadSha });
|
|
436
|
+
session.branchUpdateAttemptedForHeadSha = validatedHeadSha;
|
|
437
|
+
sessions.set(sessionKey(targetRepoSlug, input.repoConfigId), session);
|
|
438
|
+
return progressResult({
|
|
439
|
+
repoConfigId: input.repoConfigId,
|
|
440
|
+
targetRepo: input.targetRepo,
|
|
441
|
+
targetRepoSlug,
|
|
442
|
+
productionBranch: input.productionBranch,
|
|
443
|
+
branchName,
|
|
444
|
+
lifecycle: "updating-branch",
|
|
445
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
446
|
+
message: "Updating the workflow install branch.",
|
|
447
|
+
prUrl,
|
|
448
|
+
prNumber,
|
|
449
|
+
validatedHeadSha,
|
|
450
|
+
advancedThisRequest: true,
|
|
451
|
+
lockContended,
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
catch (error) {
|
|
455
|
+
const classified = classifyWorkflowInstallMergeRejection({ error });
|
|
456
|
+
return blockedResult({
|
|
457
|
+
repoConfigId: input.repoConfigId,
|
|
458
|
+
targetRepo: input.targetRepo,
|
|
459
|
+
targetRepoSlug,
|
|
460
|
+
productionBranch: input.productionBranch,
|
|
461
|
+
branchName,
|
|
462
|
+
category: classified.category,
|
|
463
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
464
|
+
prUrl,
|
|
465
|
+
prNumber,
|
|
466
|
+
validatedHeadSha,
|
|
467
|
+
advancedThisRequest: true,
|
|
468
|
+
lockContended,
|
|
469
|
+
customMessage: classified.message,
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
return blockedResult({
|
|
474
|
+
repoConfigId: input.repoConfigId,
|
|
475
|
+
targetRepo: input.targetRepo,
|
|
476
|
+
targetRepoSlug,
|
|
477
|
+
productionBranch: input.productionBranch,
|
|
478
|
+
branchName,
|
|
479
|
+
category: "branch-behind",
|
|
480
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
481
|
+
prUrl,
|
|
482
|
+
prNumber,
|
|
483
|
+
validatedHeadSha,
|
|
484
|
+
advancedThisRequest: true,
|
|
485
|
+
lockContended,
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
if (mergeableState === "dirty" || mergeableState === "blocked") {
|
|
489
|
+
const category = mergeableState === "blocked" ? "review-required" : "merge-conflict";
|
|
490
|
+
return blockedResult({
|
|
491
|
+
repoConfigId: input.repoConfigId,
|
|
492
|
+
targetRepo: input.targetRepo,
|
|
493
|
+
targetRepoSlug,
|
|
494
|
+
productionBranch: input.productionBranch,
|
|
495
|
+
branchName,
|
|
496
|
+
category,
|
|
497
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
498
|
+
prUrl,
|
|
499
|
+
prNumber,
|
|
500
|
+
validatedHeadSha,
|
|
501
|
+
advancedThisRequest: true,
|
|
502
|
+
lockContended,
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
if (inspection.mergeable === false) {
|
|
506
|
+
return blockedResult({
|
|
507
|
+
repoConfigId: input.repoConfigId,
|
|
508
|
+
targetRepo: input.targetRepo,
|
|
509
|
+
targetRepoSlug,
|
|
510
|
+
productionBranch: input.productionBranch,
|
|
511
|
+
branchName,
|
|
512
|
+
category: "merge-conflict",
|
|
513
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
514
|
+
prUrl,
|
|
515
|
+
prNumber,
|
|
516
|
+
validatedHeadSha,
|
|
517
|
+
advancedThisRequest: true,
|
|
518
|
+
lockContended,
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
if (session.mergeAttemptedForHeadSha === validatedHeadSha) {
|
|
522
|
+
sessions.set(sessionKey(targetRepoSlug, input.repoConfigId), session);
|
|
523
|
+
return progressResult({
|
|
524
|
+
repoConfigId: input.repoConfigId,
|
|
525
|
+
targetRepo: input.targetRepo,
|
|
526
|
+
targetRepoSlug,
|
|
527
|
+
productionBranch: input.productionBranch,
|
|
528
|
+
branchName,
|
|
529
|
+
lifecycle: "merging",
|
|
530
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
531
|
+
message: "Waiting for workflow install PR merge to complete.",
|
|
532
|
+
prUrl,
|
|
533
|
+
prNumber,
|
|
534
|
+
validatedHeadSha,
|
|
535
|
+
advancedThisRequest: false,
|
|
536
|
+
lockContended,
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
try {
|
|
540
|
+
await client.mergePullRequest(parsedPr.owner, parsedPr.repo, parsedPr.pullNumber, {
|
|
541
|
+
mergeMethod: mergeMethod,
|
|
542
|
+
commitTitle: buildTargetWorkflowPrTitle(),
|
|
543
|
+
expectedHeadSha: validatedHeadSha,
|
|
544
|
+
});
|
|
545
|
+
session.mergeAttemptedForHeadSha = validatedHeadSha;
|
|
546
|
+
session.verificationStartedAt = Date.now();
|
|
547
|
+
sessions.set(sessionKey(targetRepoSlug, input.repoConfigId), session);
|
|
548
|
+
}
|
|
549
|
+
catch (error) {
|
|
550
|
+
if (isAlreadyMergedError(error)) {
|
|
551
|
+
session.verificationStartedAt ??= Date.now();
|
|
552
|
+
sessions.set(sessionKey(targetRepoSlug, input.repoConfigId), session);
|
|
553
|
+
}
|
|
554
|
+
else {
|
|
555
|
+
const classified = classifyWorkflowInstallMergeRejection({
|
|
556
|
+
error,
|
|
557
|
+
mergeableState: inspection.mergeableState,
|
|
558
|
+
message: error instanceof Error ? error.message : String(error),
|
|
559
|
+
});
|
|
560
|
+
if (classified.waiting) {
|
|
561
|
+
sessions.set(sessionKey(targetRepoSlug, input.repoConfigId), session);
|
|
562
|
+
return progressResult({
|
|
563
|
+
repoConfigId: input.repoConfigId,
|
|
564
|
+
targetRepo: input.targetRepo,
|
|
565
|
+
targetRepoSlug,
|
|
566
|
+
productionBranch: input.productionBranch,
|
|
567
|
+
branchName,
|
|
568
|
+
lifecycle: classified.category === "checks-pending"
|
|
569
|
+
? "waiting-for-checks"
|
|
570
|
+
: "merging",
|
|
571
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
572
|
+
message: classified.message,
|
|
573
|
+
prUrl,
|
|
574
|
+
prNumber,
|
|
575
|
+
validatedHeadSha,
|
|
576
|
+
advancedThisRequest: true,
|
|
577
|
+
lockContended,
|
|
578
|
+
blockedCategory: classified.category,
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
if (error instanceof GitHubApiError && classifyMergeError(error) === "github_auth_failure") {
|
|
582
|
+
return blockedResult({
|
|
583
|
+
repoConfigId: input.repoConfigId,
|
|
584
|
+
targetRepo: input.targetRepo,
|
|
585
|
+
targetRepoSlug,
|
|
586
|
+
productionBranch: input.productionBranch,
|
|
587
|
+
branchName,
|
|
588
|
+
category: "permission-denied",
|
|
589
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
590
|
+
prUrl,
|
|
591
|
+
prNumber,
|
|
592
|
+
validatedHeadSha,
|
|
593
|
+
advancedThisRequest: true,
|
|
594
|
+
lockContended,
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
return blockedResult({
|
|
598
|
+
repoConfigId: input.repoConfigId,
|
|
599
|
+
targetRepo: input.targetRepo,
|
|
600
|
+
targetRepoSlug,
|
|
601
|
+
productionBranch: input.productionBranch,
|
|
602
|
+
branchName,
|
|
603
|
+
category: classified.category,
|
|
604
|
+
workflowStatus: productionStatus.workflowStatus,
|
|
605
|
+
prUrl,
|
|
606
|
+
prNumber,
|
|
607
|
+
validatedHeadSha,
|
|
608
|
+
advancedThisRequest: true,
|
|
609
|
+
lockContended,
|
|
610
|
+
customMessage: classified.message,
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
const postMergeStatus = await provider.checkTargetWorkflowStatus({
|
|
615
|
+
targetRepoSlug,
|
|
616
|
+
workflowPath: TARGET_WORKFLOW_PATH,
|
|
617
|
+
intendedWorkflowContent,
|
|
618
|
+
productionBranch: input.productionBranch,
|
|
619
|
+
});
|
|
620
|
+
if (postMergeStatus.workflowStatus === "present") {
|
|
621
|
+
return completeResult({
|
|
622
|
+
repoConfigId: input.repoConfigId,
|
|
623
|
+
targetRepo: input.targetRepo,
|
|
624
|
+
targetRepoSlug,
|
|
625
|
+
productionBranch: input.productionBranch,
|
|
626
|
+
branchName,
|
|
627
|
+
prUrl,
|
|
628
|
+
prNumber,
|
|
629
|
+
validatedHeadSha,
|
|
630
|
+
advancedThisRequest: true,
|
|
631
|
+
lockContended,
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
session.verificationStartedAt ??= Date.now();
|
|
635
|
+
if (Date.now() - session.verificationStartedAt >
|
|
636
|
+
WORKFLOW_INSTALL_VERIFICATION_TIMEOUT_MS) {
|
|
637
|
+
sessions.set(sessionKey(targetRepoSlug, input.repoConfigId), session);
|
|
638
|
+
return blockedResult({
|
|
639
|
+
repoConfigId: input.repoConfigId,
|
|
640
|
+
targetRepo: input.targetRepo,
|
|
641
|
+
targetRepoSlug,
|
|
642
|
+
productionBranch: input.productionBranch,
|
|
643
|
+
branchName,
|
|
644
|
+
category: "verification-failed",
|
|
645
|
+
workflowStatus: postMergeStatus.workflowStatus,
|
|
646
|
+
prUrl,
|
|
647
|
+
prNumber,
|
|
648
|
+
validatedHeadSha,
|
|
649
|
+
advancedThisRequest: true,
|
|
650
|
+
lockContended,
|
|
651
|
+
customMessage: "Workflow install PR merged, but production verification timed out.",
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
sessions.set(sessionKey(targetRepoSlug, input.repoConfigId), session);
|
|
655
|
+
return progressResult({
|
|
656
|
+
repoConfigId: input.repoConfigId,
|
|
657
|
+
targetRepo: input.targetRepo,
|
|
658
|
+
targetRepoSlug,
|
|
659
|
+
productionBranch: input.productionBranch,
|
|
660
|
+
branchName,
|
|
661
|
+
lifecycle: "verifying",
|
|
662
|
+
workflowStatus: postMergeStatus.workflowStatus,
|
|
663
|
+
message: "Verifying workflow on the production branch.",
|
|
664
|
+
prUrl,
|
|
665
|
+
prNumber,
|
|
666
|
+
validatedHeadSha,
|
|
667
|
+
advancedThisRequest: true,
|
|
668
|
+
lockContended,
|
|
669
|
+
canRetry: true,
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
export async function finalizeTargetWorkflowRemote(options) {
|
|
673
|
+
const targetRepoSlug = targetRepoSlugFromUrl(options.input.targetRepo);
|
|
674
|
+
const lockKey = buildFinalizationLockKey(targetRepoSlug ?? options.input.targetRepo, options.input.repoConfigId);
|
|
675
|
+
const { result, lockContended } = await withTargetWorkflowFinalizationLock(lockKey, async () => advanceTargetWorkflowFinalizationStep({
|
|
676
|
+
cwd: options.cwd,
|
|
677
|
+
input: options.input,
|
|
678
|
+
provider: options.provider,
|
|
679
|
+
client: options.client,
|
|
680
|
+
lockContended: false,
|
|
681
|
+
}));
|
|
682
|
+
return {
|
|
683
|
+
...result,
|
|
684
|
+
lockContended: lockContended || result.lockContended,
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
export function resetTargetWorkflowFinalizationSessionsForTests() {
|
|
688
|
+
sessions.clear();
|
|
689
|
+
}
|
|
690
|
+
//# sourceMappingURL=target-workflow-finalization.js.map
|