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,779 @@
|
|
|
1
|
+
import { updateControlPlaneSetupState, readControlPlaneSetupState, } from "./control-plane-setup-state.js";
|
|
2
|
+
import { ensureLinearIssueWebhook, generateLinearWebhookSecret, reconcileLinearWebhookUrlForVerification, resolveLinearWebhookCandidateSecret, } from "./linear-webhook-secret.js";
|
|
3
|
+
import { summarizeLinearWebhookReadiness } from "./linear-setup-plan.js";
|
|
4
|
+
import { assertRemoteSetupConfirmed, assertRemoteSetupFingerprint, assertRemoteSetupPermissionScope, } from "./remote-actions.js";
|
|
5
|
+
import { SETUP_PERMISSIONS } from "./permission-model.js";
|
|
6
|
+
import { collectRemoteSecretInputs } from "./redact-secrets.js";
|
|
7
|
+
import { createVercelProject, createVercelTeam, findExistingProjectByName, findExistingTeamBySlug, listVercelProjectEnvVars, listVercelProjects, listVercelTeams, summarizeRequiredEnvPresence, upsertVercelProjectEnvVar, VercelEnvVarTypeError, } from "./vercel-setup-client.js";
|
|
8
|
+
import { buildVercelBridgeVerificationFingerprint, tokenizeCandidateWebhookSecret, } from "./vercel-bridge-verification.js";
|
|
9
|
+
import { runSignedWebhookProbe } from "./vercel-webhook-probe.js";
|
|
10
|
+
import { isAutoRedeployEligible, isStaleDeploymentSignatureProbeFailure, triggerProductionRedeployOnce, findLatestReadyProductionDeploymentId, } from "./vercel-production-redeploy.js";
|
|
11
|
+
import { createPendingRedeployVerification } from "./vercel-bridge-redeploy-state.js";
|
|
12
|
+
import { persistGeneratedLinearWebhookSecret } from "./linear-webhook-env-local.js";
|
|
13
|
+
import { REQUIRED_VERCEL_BRIDGE_ENV_VARS } from "./vercel-bridge-readiness.js";
|
|
14
|
+
import { VERCEL_SETUP_ACTIONS, buildDeploymentRequiredDetail, buildVercelBridgePreviewFingerprintInput, normalizeVercelBridgePlanInput, previewVercelBridgeSetup, resolveVercelBridgeEnvValue, } from "./vercel-setup-plan.js";
|
|
15
|
+
import { logVercelBridgeEvent } from "./vercel-bridge-structured-log.js";
|
|
16
|
+
async function resolveVercelTeamForApply(input) {
|
|
17
|
+
const normalized = normalizeVercelBridgePlanInput(input.plan);
|
|
18
|
+
if (normalized.team?.mode !== "create") {
|
|
19
|
+
const teamId = normalized.teamId?.trim() ? normalized.teamId : undefined;
|
|
20
|
+
const teams = await listVercelTeams(normalized.vercelToken);
|
|
21
|
+
const existing = teamId
|
|
22
|
+
? teams.find((team) => team.id === teamId)
|
|
23
|
+
: undefined;
|
|
24
|
+
if (existing) {
|
|
25
|
+
input.reused.push(`team:${existing.slug}`);
|
|
26
|
+
return {
|
|
27
|
+
teamId: existing.id,
|
|
28
|
+
teamName: existing.name,
|
|
29
|
+
team: {
|
|
30
|
+
id: existing.id,
|
|
31
|
+
name: existing.name,
|
|
32
|
+
outcome: "reused",
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
teamId,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const slug = normalized.team.teamSlug?.trim();
|
|
41
|
+
if (!slug) {
|
|
42
|
+
throw new Error("New Vercel team requires a team slug.");
|
|
43
|
+
}
|
|
44
|
+
const teams = await listVercelTeams(normalized.vercelToken);
|
|
45
|
+
const existing = findExistingTeamBySlug(teams, slug);
|
|
46
|
+
if (existing) {
|
|
47
|
+
input.reused.push(`team:${existing.slug}`);
|
|
48
|
+
return {
|
|
49
|
+
teamId: existing.id,
|
|
50
|
+
teamName: existing.name,
|
|
51
|
+
team: {
|
|
52
|
+
id: existing.id,
|
|
53
|
+
name: existing.name,
|
|
54
|
+
outcome: "reused",
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
const createdTeam = await createVercelTeam(normalized.vercelToken, {
|
|
59
|
+
slug,
|
|
60
|
+
name: normalized.team.teamName,
|
|
61
|
+
});
|
|
62
|
+
input.created.push(`team:${createdTeam.slug}`);
|
|
63
|
+
return {
|
|
64
|
+
teamId: createdTeam.id,
|
|
65
|
+
teamName: createdTeam.name,
|
|
66
|
+
team: {
|
|
67
|
+
id: createdTeam.id,
|
|
68
|
+
name: createdTeam.name,
|
|
69
|
+
outcome: "created",
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
async function resolveVercelProjectForApply(input) {
|
|
74
|
+
const normalized = normalizeVercelBridgePlanInput(input.plan);
|
|
75
|
+
const projects = await listVercelProjects(normalized.vercelToken, input.teamId);
|
|
76
|
+
if (normalized.project?.mode === "existing") {
|
|
77
|
+
const projectId = normalized.projectId ?? normalized.project.projectId;
|
|
78
|
+
const existing = projects.find((project) => project.id === projectId);
|
|
79
|
+
if (!existing) {
|
|
80
|
+
throw new Error("Selected Vercel project is required for apply.");
|
|
81
|
+
}
|
|
82
|
+
input.reused.push(`project:${existing.name}`);
|
|
83
|
+
return {
|
|
84
|
+
project: existing,
|
|
85
|
+
projectResult: {
|
|
86
|
+
id: existing.id,
|
|
87
|
+
name: existing.name,
|
|
88
|
+
outcome: "reused",
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
const projectName = normalized.project?.projectName?.trim();
|
|
93
|
+
if (!projectName) {
|
|
94
|
+
throw new Error("New Vercel project requires a project name.");
|
|
95
|
+
}
|
|
96
|
+
const existing = findExistingProjectByName(projects, projectName);
|
|
97
|
+
if (existing) {
|
|
98
|
+
input.reused.push(`project:${existing.name}`);
|
|
99
|
+
return {
|
|
100
|
+
project: existing,
|
|
101
|
+
projectResult: {
|
|
102
|
+
id: existing.id,
|
|
103
|
+
name: existing.name,
|
|
104
|
+
outcome: "reused",
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
const created = await createVercelProject(normalized.vercelToken, {
|
|
109
|
+
name: projectName,
|
|
110
|
+
teamId: input.teamId,
|
|
111
|
+
});
|
|
112
|
+
input.created.push(`project:${created.name}`);
|
|
113
|
+
return {
|
|
114
|
+
project: created,
|
|
115
|
+
projectResult: {
|
|
116
|
+
id: created.id,
|
|
117
|
+
name: created.name,
|
|
118
|
+
outcome: "created",
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function buildSetupBlockedForMissingDeployment() {
|
|
123
|
+
return {
|
|
124
|
+
message: "No READY production deployment was found to redeploy after env var changes.",
|
|
125
|
+
nextSteps: [
|
|
126
|
+
"Deploy the project in Vercel so it has a production deployment.",
|
|
127
|
+
"Return here and apply Vercel settings again.",
|
|
128
|
+
],
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function buildManualRedeployRecoveryMessage(redeployStatus, redeployMessage) {
|
|
132
|
+
if (redeployStatus === "timeout") {
|
|
133
|
+
return (redeployMessage ??
|
|
134
|
+
"Automatic production redeploy timed out before READY. Redeploy production in Vercel, then use Retry verification.");
|
|
135
|
+
}
|
|
136
|
+
if (redeployStatus === "failed") {
|
|
137
|
+
return (redeployMessage ??
|
|
138
|
+
"Automatic production redeploy failed. Redeploy production in Vercel, then use Retry verification.");
|
|
139
|
+
}
|
|
140
|
+
return "Redeploy production in Vercel, then use Retry verification (this will not rotate secrets or rewrite env vars).";
|
|
141
|
+
}
|
|
142
|
+
async function maybeOrchestrateAutoRedeploy(input) {
|
|
143
|
+
const orchestrationSteps = [
|
|
144
|
+
{
|
|
145
|
+
phase: "writing_env_vars",
|
|
146
|
+
status: input.baseResult.writtenEnvKeys.length > 0 ? "completed" : "failed",
|
|
147
|
+
message: "Writing Vercel env vars…",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
phase: "verifying_webhook",
|
|
151
|
+
status: "failed",
|
|
152
|
+
message: "Initial signed probe failed due to stale deployment.",
|
|
153
|
+
},
|
|
154
|
+
];
|
|
155
|
+
const envVarsWritten = input.baseResult.writtenEnvKeys.length > 0;
|
|
156
|
+
const signedProbeInitialResult = input.signedProbe;
|
|
157
|
+
if (!envVarsWritten ||
|
|
158
|
+
!isStaleDeploymentSignatureProbeFailure(signedProbeInitialResult)) {
|
|
159
|
+
return {
|
|
160
|
+
...input.baseResult,
|
|
161
|
+
envVarsWritten,
|
|
162
|
+
signedProbeInitialResult,
|
|
163
|
+
signedProbe: signedProbeInitialResult,
|
|
164
|
+
productionRedeployTriggered: false,
|
|
165
|
+
productionRedeployStatus: "not_triggered",
|
|
166
|
+
orchestrationSteps: orchestrationSteps.slice(0, 1),
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
const latestState = await readControlPlaneSetupState(input.applyInput.cwd);
|
|
170
|
+
const existingPending = latestState?.vercel?.redeployVerification ??
|
|
171
|
+
input.priorSelection.redeployVerification;
|
|
172
|
+
if (existingPending?.newDeploymentId &&
|
|
173
|
+
existingPending.fingerprint === input.fingerprint &&
|
|
174
|
+
!["verified", "verify_failed", "failed", "timeout", "no_source_deployment"].includes(existingPending.status)) {
|
|
175
|
+
orchestrationSteps.push({
|
|
176
|
+
phase: "redeploying_production",
|
|
177
|
+
status: "completed",
|
|
178
|
+
message: "Redeploying production so new env vars take effect…",
|
|
179
|
+
});
|
|
180
|
+
return {
|
|
181
|
+
...input.baseResult,
|
|
182
|
+
envVarsWritten,
|
|
183
|
+
signedProbeInitialResult,
|
|
184
|
+
signedProbe: signedProbeInitialResult,
|
|
185
|
+
productionRedeployTriggered: true,
|
|
186
|
+
productionRedeployStatus: existingPending.status === "building" ? "building" : "triggered",
|
|
187
|
+
setupPending: true,
|
|
188
|
+
pollActionId: existingPending.actionId,
|
|
189
|
+
orchestrationSteps,
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
const sourceDeploymentId = await findLatestReadyProductionDeploymentId({
|
|
193
|
+
vercelToken: input.vercelToken,
|
|
194
|
+
projectId: input.projectId,
|
|
195
|
+
teamId: input.teamId,
|
|
196
|
+
});
|
|
197
|
+
if (!isAutoRedeployEligible({
|
|
198
|
+
writtenEnvKeys: input.baseResult.writtenEnvKeys,
|
|
199
|
+
signedProbe: signedProbeInitialResult,
|
|
200
|
+
sourceDeploymentId,
|
|
201
|
+
})) {
|
|
202
|
+
if (!sourceDeploymentId) {
|
|
203
|
+
return {
|
|
204
|
+
...input.baseResult,
|
|
205
|
+
envVarsWritten,
|
|
206
|
+
signedProbeInitialResult,
|
|
207
|
+
signedProbe: signedProbeInitialResult,
|
|
208
|
+
productionRedeployTriggered: false,
|
|
209
|
+
productionRedeployStatus: "no_source_deployment",
|
|
210
|
+
setupBlocked: buildSetupBlockedForMissingDeployment(),
|
|
211
|
+
orchestrationSteps,
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
return {
|
|
215
|
+
...input.baseResult,
|
|
216
|
+
envVarsWritten,
|
|
217
|
+
signedProbeInitialResult,
|
|
218
|
+
signedProbe: signedProbeInitialResult,
|
|
219
|
+
productionRedeployTriggered: false,
|
|
220
|
+
productionRedeployStatus: "not_triggered",
|
|
221
|
+
orchestrationSteps: orchestrationSteps.slice(0, 1),
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
const redeployResult = await triggerProductionRedeployOnce({
|
|
225
|
+
vercelToken: input.vercelToken,
|
|
226
|
+
projectId: input.projectId,
|
|
227
|
+
projectName: input.projectName,
|
|
228
|
+
teamId: input.teamId,
|
|
229
|
+
sourceDeploymentId,
|
|
230
|
+
});
|
|
231
|
+
if (redeployResult.status !== "triggered" || !redeployResult.newDeploymentId) {
|
|
232
|
+
orchestrationSteps.push({
|
|
233
|
+
phase: "redeploying_production",
|
|
234
|
+
status: "failed",
|
|
235
|
+
message: redeployResult.message ??
|
|
236
|
+
"Redeploying production so new env vars take effect…",
|
|
237
|
+
});
|
|
238
|
+
const setupBlocked = redeployResult.status === "no_source_deployment"
|
|
239
|
+
? buildSetupBlockedForMissingDeployment()
|
|
240
|
+
: {
|
|
241
|
+
message: buildManualRedeployRecoveryMessage(redeployResult.status, redeployResult.message),
|
|
242
|
+
nextSteps: [
|
|
243
|
+
"Redeploy production in Vercel manually if needed.",
|
|
244
|
+
"Use Retry verification without rewriting env vars or rotating secrets.",
|
|
245
|
+
],
|
|
246
|
+
};
|
|
247
|
+
logVercelBridgeEvent({
|
|
248
|
+
phase: "blocked",
|
|
249
|
+
actionId: VERCEL_SETUP_ACTIONS.apply.id,
|
|
250
|
+
pollStatus: redeployResult.status,
|
|
251
|
+
projectId: input.projectId,
|
|
252
|
+
fingerprint: input.fingerprint,
|
|
253
|
+
setupBlockedMessage: setupBlocked.message,
|
|
254
|
+
setupBlockedNextSteps: setupBlocked.nextSteps,
|
|
255
|
+
});
|
|
256
|
+
return {
|
|
257
|
+
...input.baseResult,
|
|
258
|
+
envVarsWritten,
|
|
259
|
+
signedProbeInitialResult,
|
|
260
|
+
signedProbe: signedProbeInitialResult,
|
|
261
|
+
productionRedeployTriggered: false,
|
|
262
|
+
productionRedeployStatus: redeployResult.status,
|
|
263
|
+
setupBlocked,
|
|
264
|
+
orchestrationSteps,
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
const pendingVerification = createPendingRedeployVerification({
|
|
268
|
+
projectId: input.projectId,
|
|
269
|
+
projectName: input.projectName,
|
|
270
|
+
teamId: input.teamId,
|
|
271
|
+
webhookUrl: input.webhookUrl,
|
|
272
|
+
fingerprint: input.fingerprint,
|
|
273
|
+
fingerprintInputs: input.fingerprintInputs,
|
|
274
|
+
candidateSecretSource: input.baseResult.candidateSecretSource,
|
|
275
|
+
sourceDeploymentId: redeployResult.sourceDeploymentId,
|
|
276
|
+
newDeploymentId: redeployResult.newDeploymentId,
|
|
277
|
+
message: redeployResult.message,
|
|
278
|
+
writtenEnvKeys: input.baseResult.writtenEnvKeys,
|
|
279
|
+
skippedEnvKeys: input.baseResult.skippedEnvKeys,
|
|
280
|
+
});
|
|
281
|
+
await updateControlPlaneSetupState({
|
|
282
|
+
vercel: {
|
|
283
|
+
...input.priorSelection,
|
|
284
|
+
redeployVerification: pendingVerification,
|
|
285
|
+
},
|
|
286
|
+
}, input.applyInput.cwd);
|
|
287
|
+
logVercelBridgeEvent({
|
|
288
|
+
phase: "redeploy_trigger",
|
|
289
|
+
actionId: pendingVerification.actionId,
|
|
290
|
+
pollStatus: "triggered",
|
|
291
|
+
projectId: input.projectId,
|
|
292
|
+
projectName: input.projectName,
|
|
293
|
+
teamId: input.teamId,
|
|
294
|
+
fingerprint: input.fingerprint,
|
|
295
|
+
candidateSecretSource: input.baseResult.candidateSecretSource,
|
|
296
|
+
});
|
|
297
|
+
orchestrationSteps.push({
|
|
298
|
+
phase: "redeploying_production",
|
|
299
|
+
status: "completed",
|
|
300
|
+
message: "Redeploying production so new env vars take effect…",
|
|
301
|
+
});
|
|
302
|
+
return {
|
|
303
|
+
...input.baseResult,
|
|
304
|
+
envVarsWritten,
|
|
305
|
+
signedProbeInitialResult,
|
|
306
|
+
signedProbe: signedProbeInitialResult,
|
|
307
|
+
productionRedeployTriggered: true,
|
|
308
|
+
productionRedeployStatus: "triggered",
|
|
309
|
+
setupPending: true,
|
|
310
|
+
pollActionId: pendingVerification.actionId,
|
|
311
|
+
orchestrationSteps,
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
export async function applyVercelBridgeSetup(input) {
|
|
315
|
+
assertRemoteSetupConfirmed(input.confirmed);
|
|
316
|
+
assertRemoteSetupPermissionScope(VERCEL_SETUP_ACTIONS.apply.permission.scope, SETUP_PERMISSIONS.remoteSecretWrite.scope);
|
|
317
|
+
const normalized = normalizeVercelBridgePlanInput(input.plan);
|
|
318
|
+
logVercelBridgeEvent({
|
|
319
|
+
phase: "apply_start",
|
|
320
|
+
actionId: VERCEL_SETUP_ACTIONS.apply.id,
|
|
321
|
+
verifyOnly: input.verifyOnly === true,
|
|
322
|
+
fingerprint: input.fingerprint,
|
|
323
|
+
projectId: normalized.projectId,
|
|
324
|
+
projectName: normalized.projectName,
|
|
325
|
+
teamId: normalized.teamId,
|
|
326
|
+
});
|
|
327
|
+
const initialPreview = await previewVercelBridgeSetup(normalized);
|
|
328
|
+
assertRemoteSetupFingerprint(input.fingerprint, initialPreview.fingerprint);
|
|
329
|
+
if (initialPreview.validationError) {
|
|
330
|
+
throw new Error(initialPreview.validationError);
|
|
331
|
+
}
|
|
332
|
+
const created = [];
|
|
333
|
+
const reused = [];
|
|
334
|
+
const resolvedTeam = await resolveVercelTeamForApply({
|
|
335
|
+
plan: normalized,
|
|
336
|
+
created,
|
|
337
|
+
reused,
|
|
338
|
+
});
|
|
339
|
+
const resolvedProject = await resolveVercelProjectForApply({
|
|
340
|
+
plan: {
|
|
341
|
+
...normalized,
|
|
342
|
+
teamId: resolvedTeam.teamId,
|
|
343
|
+
projectId: normalized.project?.mode === "existing"
|
|
344
|
+
? (normalized.projectId ?? normalized.project?.projectId)
|
|
345
|
+
: undefined,
|
|
346
|
+
},
|
|
347
|
+
teamId: resolvedTeam.teamId,
|
|
348
|
+
created,
|
|
349
|
+
reused,
|
|
350
|
+
});
|
|
351
|
+
const planForApply = {
|
|
352
|
+
...normalized,
|
|
353
|
+
teamId: resolvedTeam.teamId,
|
|
354
|
+
projectId: resolvedProject.project.id,
|
|
355
|
+
projectName: resolvedProject.project.name,
|
|
356
|
+
team: {
|
|
357
|
+
mode: "existing",
|
|
358
|
+
teamId: resolvedTeam.teamId ?? "",
|
|
359
|
+
},
|
|
360
|
+
project: {
|
|
361
|
+
mode: "existing",
|
|
362
|
+
projectId: resolvedProject.project.id,
|
|
363
|
+
projectName: resolvedProject.project.name,
|
|
364
|
+
},
|
|
365
|
+
};
|
|
366
|
+
const preview = await previewVercelBridgeSetup(planForApply);
|
|
367
|
+
if (preview.validationError) {
|
|
368
|
+
throw new Error(preview.validationError);
|
|
369
|
+
}
|
|
370
|
+
if (!preview.selectedProject) {
|
|
371
|
+
throw new Error("Vercel project must be selected before apply.");
|
|
372
|
+
}
|
|
373
|
+
if (!preview.webhookUrl) {
|
|
374
|
+
const projectJustCreated = resolvedProject.projectResult.outcome === "created";
|
|
375
|
+
const deploymentRequired = buildDeploymentRequiredDetail({
|
|
376
|
+
projectName: preview.selectedProject.name,
|
|
377
|
+
projectJustCreated,
|
|
378
|
+
});
|
|
379
|
+
return {
|
|
380
|
+
actionId: VERCEL_SETUP_ACTIONS.apply.id,
|
|
381
|
+
status: "deployment-required",
|
|
382
|
+
projectId: preview.selectedProject.id,
|
|
383
|
+
projectName: preview.selectedProject.name,
|
|
384
|
+
team: resolvedTeam.team,
|
|
385
|
+
project: resolvedProject.projectResult,
|
|
386
|
+
writtenEnvKeys: [],
|
|
387
|
+
skippedEnvKeys: [],
|
|
388
|
+
linearWebhookSetup: {
|
|
389
|
+
mode: "manual-copy",
|
|
390
|
+
manualSteps: deploymentRequired.nextSteps,
|
|
391
|
+
},
|
|
392
|
+
deploymentRequired: {
|
|
393
|
+
...deploymentRequired,
|
|
394
|
+
projectJustCreated,
|
|
395
|
+
},
|
|
396
|
+
verified: false,
|
|
397
|
+
signedProbeVerified: false,
|
|
398
|
+
deploymentRedeployRequired: false,
|
|
399
|
+
fingerprint: preview.fingerprint,
|
|
400
|
+
permission: VERCEL_SETUP_ACTIONS.apply.permission,
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
const priorState = await readControlPlaneSetupState(input.cwd);
|
|
404
|
+
const activePendingRedeploy = Boolean(priorState?.vercel?.redeployVerification?.newDeploymentId &&
|
|
405
|
+
priorState.vercel.redeployVerification.status !== "verified" &&
|
|
406
|
+
priorState.vercel.redeployVerification.status !== "verify_failed" &&
|
|
407
|
+
priorState.vercel.redeployVerification.status !== "failed" &&
|
|
408
|
+
priorState.vercel.redeployVerification.status !== "timeout" &&
|
|
409
|
+
priorState.vercel.redeployVerification.status !== "no_source_deployment");
|
|
410
|
+
const isVerificationRetry = input.verifyOnly === true ||
|
|
411
|
+
Boolean(!activePendingRedeploy &&
|
|
412
|
+
priorState?.vercel?.deploymentRedeployRequired &&
|
|
413
|
+
priorState.vercel.projectId === preview.selectedProject.id &&
|
|
414
|
+
priorState.vercel.appliedFingerprint === preview.fingerprint);
|
|
415
|
+
const persistedWebhookUrl = priorState?.vercel?.webhookUrl?.trim();
|
|
416
|
+
const canonicalWebhookUrl = preview.webhookUrl?.trim();
|
|
417
|
+
const hasWebhookUrlDrift = Boolean(isVerificationRetry &&
|
|
418
|
+
persistedWebhookUrl &&
|
|
419
|
+
canonicalWebhookUrl &&
|
|
420
|
+
persistedWebhookUrl !== canonicalWebhookUrl);
|
|
421
|
+
const candidateResolution = await resolveLinearWebhookCandidateSecret({
|
|
422
|
+
linearApiKey: normalized.linearApiKey,
|
|
423
|
+
webhookUrl: preview.webhookUrl,
|
|
424
|
+
linearTeamId: normalized.linearTeamId,
|
|
425
|
+
operatorSecret: normalized.envInput?.LINEAR_WEBHOOK_SECRET,
|
|
426
|
+
});
|
|
427
|
+
const savedVerificationSecret = normalized.verificationLinearWebhookSecret?.trim();
|
|
428
|
+
const useSavedVerificationSecret = Boolean(savedVerificationSecret &&
|
|
429
|
+
(isVerificationRetry || normalized.preserveGeneratedWebhookSecretFingerprint));
|
|
430
|
+
let candidateWebhookSecret = candidateResolution.secret;
|
|
431
|
+
if (useSavedVerificationSecret) {
|
|
432
|
+
candidateWebhookSecret = savedVerificationSecret;
|
|
433
|
+
}
|
|
434
|
+
else if (!candidateWebhookSecret?.trim() && candidateResolution.source === "generated") {
|
|
435
|
+
candidateWebhookSecret = generateLinearWebhookSecret();
|
|
436
|
+
}
|
|
437
|
+
if (candidateResolution.source === "unreadable" &&
|
|
438
|
+
!isVerificationRetry &&
|
|
439
|
+
!candidateWebhookSecret?.trim()) {
|
|
440
|
+
candidateWebhookSecret = generateLinearWebhookSecret();
|
|
441
|
+
}
|
|
442
|
+
if (!isVerificationRetry &&
|
|
443
|
+
candidateWebhookSecret?.trim() &&
|
|
444
|
+
!useSavedVerificationSecret &&
|
|
445
|
+
(candidateResolution.source === "generated" ||
|
|
446
|
+
candidateResolution.source === "unreadable")) {
|
|
447
|
+
await persistGeneratedLinearWebhookSecret({
|
|
448
|
+
cwd: input.cwd,
|
|
449
|
+
secret: candidateWebhookSecret,
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
let linearWebhookSetup = {
|
|
453
|
+
mode: "manual-copy",
|
|
454
|
+
manualSteps: candidateResolution.manualSteps,
|
|
455
|
+
manualCopySecret: undefined,
|
|
456
|
+
};
|
|
457
|
+
let webhookUrlReconciliation;
|
|
458
|
+
if (hasWebhookUrlDrift &&
|
|
459
|
+
candidateWebhookSecret?.trim() &&
|
|
460
|
+
useSavedVerificationSecret &&
|
|
461
|
+
normalized.linearApiKey?.trim()) {
|
|
462
|
+
webhookUrlReconciliation = await reconcileLinearWebhookUrlForVerification({
|
|
463
|
+
linearApiKey: normalized.linearApiKey,
|
|
464
|
+
linearTeamId: normalized.linearTeamId,
|
|
465
|
+
previousWebhookUrl: persistedWebhookUrl,
|
|
466
|
+
canonicalWebhookUrl: canonicalWebhookUrl,
|
|
467
|
+
secret: candidateWebhookSecret,
|
|
468
|
+
});
|
|
469
|
+
logVercelBridgeEvent({
|
|
470
|
+
phase: "linear_webhook_url_reconcile",
|
|
471
|
+
actionId: VERCEL_SETUP_ACTIONS.apply.id,
|
|
472
|
+
verifyOnly: input.verifyOnly === true,
|
|
473
|
+
projectId: preview.selectedProject.id,
|
|
474
|
+
fingerprint: preview.fingerprint,
|
|
475
|
+
webhookUrlDrift: true,
|
|
476
|
+
reconciliationAttempted: webhookUrlReconciliation.attempted,
|
|
477
|
+
reconciliationSucceeded: webhookUrlReconciliation.reconciled,
|
|
478
|
+
matchingPreviousWebhookFound: webhookUrlReconciliation.matchingPreviousWebhookFound,
|
|
479
|
+
canonicalWebhookExists: webhookUrlReconciliation.canonicalWebhookExists,
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
if (candidateResolution.source === "unreadable" &&
|
|
483
|
+
isVerificationRetry) {
|
|
484
|
+
linearWebhookSetup = {
|
|
485
|
+
mode: "existing-unverified",
|
|
486
|
+
manualSteps: candidateResolution.manualSteps,
|
|
487
|
+
manualCopySecret: undefined,
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
else if (webhookUrlReconciliation?.attempted &&
|
|
491
|
+
!webhookUrlReconciliation.reconciled) {
|
|
492
|
+
linearWebhookSetup = {
|
|
493
|
+
mode: "existing-unverified",
|
|
494
|
+
manualSteps: webhookUrlReconciliation.manualSteps,
|
|
495
|
+
manualCopySecret: undefined,
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
else if (!candidateWebhookSecret?.trim()) {
|
|
499
|
+
linearWebhookSetup = {
|
|
500
|
+
mode: "manual-copy",
|
|
501
|
+
manualSteps: candidateResolution.manualSteps,
|
|
502
|
+
manualCopySecret: undefined,
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
else if (normalized.linearApiKey?.trim()) {
|
|
506
|
+
const ensured = await ensureLinearIssueWebhook({
|
|
507
|
+
linearApiKey: normalized.linearApiKey,
|
|
508
|
+
webhookUrl: preview.webhookUrl,
|
|
509
|
+
linearTeamId: normalized.linearTeamId,
|
|
510
|
+
secret: candidateWebhookSecret,
|
|
511
|
+
mutatePolicy: isVerificationRetry ? "verify-only" : "setup",
|
|
512
|
+
});
|
|
513
|
+
linearWebhookSetup = {
|
|
514
|
+
mode: ensured.mode,
|
|
515
|
+
manualSteps: ensured.manualSteps,
|
|
516
|
+
manualCopySecret: ensured.mode === "automated" ? undefined : ensured.secret,
|
|
517
|
+
};
|
|
518
|
+
if (!useSavedVerificationSecret) {
|
|
519
|
+
candidateWebhookSecret = ensured.secret;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
else {
|
|
523
|
+
linearWebhookSetup = {
|
|
524
|
+
mode: "manual-copy",
|
|
525
|
+
manualSteps: [
|
|
526
|
+
"Add LINEAR_API_KEY in Step 1 before automated Linear webhook setup can run.",
|
|
527
|
+
"Copy the generated webhook secret into Linear when prompted.",
|
|
528
|
+
],
|
|
529
|
+
manualCopySecret: candidateWebhookSecret,
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
const knownSecrets = collectRemoteSecretInputs({
|
|
533
|
+
linearApiKey: normalized.linearApiKey,
|
|
534
|
+
githubToken: normalized.envInput?.GITHUB_DISPATCH_TOKEN ??
|
|
535
|
+
normalized.derivedGithubDispatchToken,
|
|
536
|
+
});
|
|
537
|
+
if (candidateWebhookSecret?.trim()) {
|
|
538
|
+
knownSecrets.push(candidateWebhookSecret);
|
|
539
|
+
}
|
|
540
|
+
if (normalized.envInput?.GITHUB_DISPATCH_TOKEN) {
|
|
541
|
+
knownSecrets.push(normalized.envInput.GITHUB_DISPATCH_TOKEN);
|
|
542
|
+
}
|
|
543
|
+
if (normalized.derivedGithubDispatchToken) {
|
|
544
|
+
knownSecrets.push(normalized.derivedGithubDispatchToken);
|
|
545
|
+
}
|
|
546
|
+
const existingEnv = await listVercelProjectEnvVars(normalized.vercelToken, preview.selectedProject.id, resolvedTeam.teamId);
|
|
547
|
+
const existingByKey = new Map(existingEnv.map((env) => [env.key, env]));
|
|
548
|
+
const shouldWriteWebhookSecret = !isVerificationRetry && Boolean(candidateWebhookSecret?.trim());
|
|
549
|
+
const writtenEnvKeys = [];
|
|
550
|
+
const skippedEnvKeys = [];
|
|
551
|
+
for (const entry of preview.envWritePlan) {
|
|
552
|
+
if (entry.action === "skip") {
|
|
553
|
+
skippedEnvKeys.push(entry.key);
|
|
554
|
+
continue;
|
|
555
|
+
}
|
|
556
|
+
if (entry.key === "LINEAR_WEBHOOK_SECRET" && !shouldWriteWebhookSecret) {
|
|
557
|
+
skippedEnvKeys.push(entry.key);
|
|
558
|
+
continue;
|
|
559
|
+
}
|
|
560
|
+
const value = resolveVercelBridgeEnvValue({
|
|
561
|
+
key: entry.key,
|
|
562
|
+
envInput: normalized.envInput,
|
|
563
|
+
derivedHarnessTeamKey: normalized.derivedHarnessTeamKey,
|
|
564
|
+
derivedGithubDispatchToken: normalized.derivedGithubDispatchToken,
|
|
565
|
+
generatedLinearWebhookSecret: candidateWebhookSecret,
|
|
566
|
+
});
|
|
567
|
+
if (!value?.trim()) {
|
|
568
|
+
skippedEnvKeys.push(entry.key);
|
|
569
|
+
continue;
|
|
570
|
+
}
|
|
571
|
+
const existing = existingByKey.get(entry.key);
|
|
572
|
+
try {
|
|
573
|
+
await upsertVercelProjectEnvVar(normalized.vercelToken, {
|
|
574
|
+
projectId: preview.selectedProject.id,
|
|
575
|
+
teamId: resolvedTeam.teamId,
|
|
576
|
+
key: entry.key,
|
|
577
|
+
value: value.trim(),
|
|
578
|
+
existingEnv: existing,
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
catch (error) {
|
|
582
|
+
if (error instanceof VercelEnvVarTypeError) {
|
|
583
|
+
throw error;
|
|
584
|
+
}
|
|
585
|
+
throw error;
|
|
586
|
+
}
|
|
587
|
+
writtenEnvKeys.push(entry.key);
|
|
588
|
+
}
|
|
589
|
+
if (shouldWriteWebhookSecret &&
|
|
590
|
+
!writtenEnvKeys.includes("LINEAR_WEBHOOK_SECRET") &&
|
|
591
|
+
candidateWebhookSecret?.trim()) {
|
|
592
|
+
const existing = existingByKey.get("LINEAR_WEBHOOK_SECRET");
|
|
593
|
+
await upsertVercelProjectEnvVar(normalized.vercelToken, {
|
|
594
|
+
projectId: preview.selectedProject.id,
|
|
595
|
+
teamId: resolvedTeam.teamId,
|
|
596
|
+
key: "LINEAR_WEBHOOK_SECRET",
|
|
597
|
+
value: candidateWebhookSecret,
|
|
598
|
+
existingEnv: existing,
|
|
599
|
+
});
|
|
600
|
+
writtenEnvKeys.push("LINEAR_WEBHOOK_SECRET");
|
|
601
|
+
}
|
|
602
|
+
const postWriteEnv = await listVercelProjectEnvVars(normalized.vercelToken, preview.selectedProject.id, resolvedTeam.teamId);
|
|
603
|
+
const requiredEnvPresence = summarizeRequiredEnvPresence(postWriteEnv);
|
|
604
|
+
let linearWebhookVerified = false;
|
|
605
|
+
if (normalized.linearApiKey?.trim()) {
|
|
606
|
+
const webhookSummary = await summarizeLinearWebhookReadiness({
|
|
607
|
+
linearApiKey: normalized.linearApiKey,
|
|
608
|
+
webhookUrl: preview.webhookUrl,
|
|
609
|
+
teamId: normalized.linearTeamId,
|
|
610
|
+
});
|
|
611
|
+
linearWebhookVerified =
|
|
612
|
+
linearWebhookSetup.mode === "automated" &&
|
|
613
|
+
Boolean(webhookSummary.matchingWebhook);
|
|
614
|
+
}
|
|
615
|
+
const verificationFingerprint = buildVercelBridgeVerificationFingerprint({
|
|
616
|
+
projectId: preview.selectedProject.id,
|
|
617
|
+
linearTeamId: normalized.linearTeamId,
|
|
618
|
+
productionUrl: preview.productionUrl,
|
|
619
|
+
webhookUrl: preview.webhookUrl,
|
|
620
|
+
envWritePlan: preview.envWritePlan,
|
|
621
|
+
candidateSecretToken: tokenizeCandidateWebhookSecret(candidateWebhookSecret),
|
|
622
|
+
});
|
|
623
|
+
const signedProbe = candidateWebhookSecret?.trim()
|
|
624
|
+
? await runSignedWebhookProbe({
|
|
625
|
+
webhookUrl: preview.webhookUrl,
|
|
626
|
+
secret: candidateWebhookSecret,
|
|
627
|
+
})
|
|
628
|
+
: {
|
|
629
|
+
passed: false,
|
|
630
|
+
result: "error",
|
|
631
|
+
reason: "missing_candidate_secret",
|
|
632
|
+
probedAt: new Date().toISOString(),
|
|
633
|
+
};
|
|
634
|
+
const signedProbeVerified = signedProbe.passed;
|
|
635
|
+
const deploymentRedeployRequired = writtenEnvKeys.length > 0 && !signedProbeVerified;
|
|
636
|
+
logVercelBridgeEvent({
|
|
637
|
+
phase: "signed_probe",
|
|
638
|
+
actionId: VERCEL_SETUP_ACTIONS.apply.id,
|
|
639
|
+
verifyOnly: input.verifyOnly === true,
|
|
640
|
+
projectId: preview.selectedProject.id,
|
|
641
|
+
projectName: preview.selectedProject.name,
|
|
642
|
+
teamId: resolvedTeam.teamId,
|
|
643
|
+
fingerprint: preview.fingerprint,
|
|
644
|
+
candidateSecretSource: candidateResolution.source,
|
|
645
|
+
hasLocalWebhookSecret: Boolean(normalized.verificationLinearWebhookSecret?.trim() ||
|
|
646
|
+
normalized.envInput?.LINEAR_WEBHOOK_SECRET?.trim()),
|
|
647
|
+
envWritePlan: preview.envWritePlan.map((entry) => ({
|
|
648
|
+
key: entry.key,
|
|
649
|
+
action: entry.action,
|
|
650
|
+
source: entry.source,
|
|
651
|
+
})),
|
|
652
|
+
signedProbeResult: signedProbe.result,
|
|
653
|
+
signedProbeReason: signedProbe.reason,
|
|
654
|
+
signedProbeStatusCode: signedProbe.statusCode,
|
|
655
|
+
});
|
|
656
|
+
const verified = REQUIRED_VERCEL_BRIDGE_ENV_VARS.every((key) => requiredEnvPresence[key] === "present") &&
|
|
657
|
+
preview.endpointReachable &&
|
|
658
|
+
linearWebhookVerified &&
|
|
659
|
+
signedProbeVerified &&
|
|
660
|
+
!deploymentRedeployRequired;
|
|
661
|
+
const selection = {
|
|
662
|
+
teamId: resolvedTeam.teamId,
|
|
663
|
+
teamName: resolvedTeam.teamName,
|
|
664
|
+
projectId: preview.selectedProject.id,
|
|
665
|
+
projectName: preview.selectedProject.name,
|
|
666
|
+
productionUrl: preview.productionUrl ?? "",
|
|
667
|
+
webhookUrl: preview.webhookUrl ?? "",
|
|
668
|
+
endpointReachable: preview.endpointReachable,
|
|
669
|
+
envVarPresence: requiredEnvPresence,
|
|
670
|
+
linearWebhookVerified,
|
|
671
|
+
signedProbeVerified,
|
|
672
|
+
signedProbe,
|
|
673
|
+
verificationFingerprint,
|
|
674
|
+
deploymentRedeployRequired,
|
|
675
|
+
appliedFingerprint: preview.fingerprint,
|
|
676
|
+
appliedAt: new Date().toISOString(),
|
|
677
|
+
manualComplete: input.manualComplete,
|
|
678
|
+
};
|
|
679
|
+
await updateControlPlaneSetupState({ vercel: selection }, input.cwd);
|
|
680
|
+
const resultPayload = {
|
|
681
|
+
actionId: VERCEL_SETUP_ACTIONS.apply.id,
|
|
682
|
+
writtenEnvKeys,
|
|
683
|
+
skippedEnvKeys,
|
|
684
|
+
linearWebhookSetup: {
|
|
685
|
+
mode: linearWebhookSetup.mode,
|
|
686
|
+
manualSteps: linearWebhookSetup.manualSteps,
|
|
687
|
+
},
|
|
688
|
+
signedProbeVerified,
|
|
689
|
+
verified,
|
|
690
|
+
};
|
|
691
|
+
const serialized = JSON.stringify(resultPayload);
|
|
692
|
+
for (const secret of knownSecrets) {
|
|
693
|
+
if (serialized.includes(secret)) {
|
|
694
|
+
throw new Error("Vercel bridge apply result leaked secret material");
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
const baseResult = {
|
|
698
|
+
actionId: VERCEL_SETUP_ACTIONS.apply.id,
|
|
699
|
+
status: "applied",
|
|
700
|
+
projectId: preview.selectedProject.id,
|
|
701
|
+
projectName: preview.selectedProject.name,
|
|
702
|
+
team: resolvedTeam.team,
|
|
703
|
+
project: resolvedProject.projectResult,
|
|
704
|
+
writtenEnvKeys,
|
|
705
|
+
skippedEnvKeys,
|
|
706
|
+
linearWebhookSetup,
|
|
707
|
+
signedProbeVerified,
|
|
708
|
+
signedProbeReason: signedProbe.reason,
|
|
709
|
+
signedProbe,
|
|
710
|
+
deploymentRedeployRequired,
|
|
711
|
+
verificationRetry: isVerificationRetry,
|
|
712
|
+
candidateSecretSource: candidateResolution.source,
|
|
713
|
+
verified,
|
|
714
|
+
fingerprint: preview.fingerprint,
|
|
715
|
+
permission: VERCEL_SETUP_ACTIONS.apply.permission,
|
|
716
|
+
envVarsWritten: writtenEnvKeys.length > 0,
|
|
717
|
+
productionRedeployTriggered: false,
|
|
718
|
+
productionRedeployStatus: "not_triggered",
|
|
719
|
+
};
|
|
720
|
+
if (input.verifyOnly ||
|
|
721
|
+
isVerificationRetry ||
|
|
722
|
+
!deploymentRedeployRequired ||
|
|
723
|
+
baseResult.verified) {
|
|
724
|
+
logVercelBridgeEvent({
|
|
725
|
+
phase: "apply_complete",
|
|
726
|
+
actionId: VERCEL_SETUP_ACTIONS.apply.id,
|
|
727
|
+
verifyOnly: input.verifyOnly === true,
|
|
728
|
+
projectId: preview.selectedProject.id,
|
|
729
|
+
projectName: preview.selectedProject.name,
|
|
730
|
+
teamId: resolvedTeam.teamId,
|
|
731
|
+
fingerprint: preview.fingerprint,
|
|
732
|
+
signedProbeResult: signedProbe.result,
|
|
733
|
+
signedProbeReason: signedProbe.reason,
|
|
734
|
+
pollStatus: baseResult.verified ? "verified" : undefined,
|
|
735
|
+
});
|
|
736
|
+
return baseResult;
|
|
737
|
+
}
|
|
738
|
+
logVercelBridgeEvent({
|
|
739
|
+
phase: "redeploy_trigger",
|
|
740
|
+
actionId: VERCEL_SETUP_ACTIONS.apply.id,
|
|
741
|
+
projectId: preview.selectedProject.id,
|
|
742
|
+
projectName: preview.selectedProject.name,
|
|
743
|
+
teamId: resolvedTeam.teamId,
|
|
744
|
+
fingerprint: preview.fingerprint,
|
|
745
|
+
candidateSecretSource: candidateResolution.source,
|
|
746
|
+
signedProbeResult: signedProbe.result,
|
|
747
|
+
signedProbeReason: signedProbe.reason,
|
|
748
|
+
});
|
|
749
|
+
return maybeOrchestrateAutoRedeploy({
|
|
750
|
+
applyInput: input,
|
|
751
|
+
baseResult,
|
|
752
|
+
signedProbe,
|
|
753
|
+
vercelToken: normalized.vercelToken,
|
|
754
|
+
projectId: preview.selectedProject.id,
|
|
755
|
+
projectName: preview.selectedProject.name,
|
|
756
|
+
teamId: resolvedTeam.teamId,
|
|
757
|
+
webhookUrl: preview.webhookUrl ?? "",
|
|
758
|
+
fingerprint: preview.fingerprint,
|
|
759
|
+
fingerprintInputs: buildVercelBridgePreviewFingerprintInput({
|
|
760
|
+
teamId: resolvedTeam.teamId,
|
|
761
|
+
teamMode: planForApply.team?.mode,
|
|
762
|
+
teamSlug: planForApply.team?.teamSlug,
|
|
763
|
+
projectId: preview.selectedProject.id,
|
|
764
|
+
projectMode: planForApply.project?.mode,
|
|
765
|
+
projectName: planForApply.project?.projectName,
|
|
766
|
+
envWritePlan: preview.envWritePlan,
|
|
767
|
+
willGenerateLinearWebhookSecret: planForApply.willGenerateLinearWebhookSecret ??
|
|
768
|
+
!planForApply.envInput?.LINEAR_WEBHOOK_SECRET?.trim(),
|
|
769
|
+
linearWebhookSecretFromEnv: planForApply.envInput?.LINEAR_WEBHOOK_SECRET,
|
|
770
|
+
githubDispatchTokenFromEnv: planForApply.envInput?.GITHUB_DISPATCH_TOKEN,
|
|
771
|
+
derivedGithubDispatchToken: planForApply.derivedGithubDispatchToken,
|
|
772
|
+
harnessTeamKey: planForApply.envInput?.HARNESS_TEAM_KEY,
|
|
773
|
+
derivedHarnessTeamKey: planForApply.derivedHarnessTeamKey,
|
|
774
|
+
vercelToken: normalized.vercelToken,
|
|
775
|
+
}),
|
|
776
|
+
priorSelection: selection,
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
//# sourceMappingURL=vercel-setup-apply.js.map
|