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,347 @@
|
|
|
1
|
+
// File: /Users/weston/Code/agentic-product-development-harness/apps/gui/app/api/setup/apply-target-workflow/route.ts
|
|
2
|
+
import * as entry from '../../../../../../app/api/setup/apply-target-workflow/route.js'
|
|
3
|
+
import type { NextRequest } from 'next/server.js'
|
|
4
|
+
|
|
5
|
+
type TEntry = typeof import('../../../../../../app/api/setup/apply-target-workflow/route.js')
|
|
6
|
+
|
|
7
|
+
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
8
|
+
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
9
|
+
: T
|
|
10
|
+
|
|
11
|
+
// Check that the entry is a valid entry
|
|
12
|
+
checkFields<Diff<{
|
|
13
|
+
GET?: Function
|
|
14
|
+
HEAD?: Function
|
|
15
|
+
OPTIONS?: Function
|
|
16
|
+
POST?: Function
|
|
17
|
+
PUT?: Function
|
|
18
|
+
DELETE?: Function
|
|
19
|
+
PATCH?: Function
|
|
20
|
+
config?: {}
|
|
21
|
+
generateStaticParams?: Function
|
|
22
|
+
revalidate?: RevalidateRange<TEntry> | false
|
|
23
|
+
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
24
|
+
dynamicParams?: boolean
|
|
25
|
+
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
26
|
+
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
27
|
+
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
28
|
+
maxDuration?: number
|
|
29
|
+
|
|
30
|
+
}, TEntry, ''>>()
|
|
31
|
+
|
|
32
|
+
type RouteContext = { params: Promise<SegmentParams> }
|
|
33
|
+
// Check the prop type of the entry function
|
|
34
|
+
if ('GET' in entry) {
|
|
35
|
+
checkFields<
|
|
36
|
+
Diff<
|
|
37
|
+
ParamCheck<Request | NextRequest>,
|
|
38
|
+
{
|
|
39
|
+
__tag__: 'GET'
|
|
40
|
+
__param_position__: 'first'
|
|
41
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
|
|
42
|
+
},
|
|
43
|
+
'GET'
|
|
44
|
+
>
|
|
45
|
+
>()
|
|
46
|
+
checkFields<
|
|
47
|
+
Diff<
|
|
48
|
+
ParamCheck<RouteContext>,
|
|
49
|
+
{
|
|
50
|
+
__tag__: 'GET'
|
|
51
|
+
__param_position__: 'second'
|
|
52
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
|
|
53
|
+
},
|
|
54
|
+
'GET'
|
|
55
|
+
>
|
|
56
|
+
>()
|
|
57
|
+
|
|
58
|
+
checkFields<
|
|
59
|
+
Diff<
|
|
60
|
+
{
|
|
61
|
+
__tag__: 'GET',
|
|
62
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
__tag__: 'GET',
|
|
66
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
|
|
67
|
+
},
|
|
68
|
+
'GET'
|
|
69
|
+
>
|
|
70
|
+
>()
|
|
71
|
+
}
|
|
72
|
+
// Check the prop type of the entry function
|
|
73
|
+
if ('HEAD' in entry) {
|
|
74
|
+
checkFields<
|
|
75
|
+
Diff<
|
|
76
|
+
ParamCheck<Request | NextRequest>,
|
|
77
|
+
{
|
|
78
|
+
__tag__: 'HEAD'
|
|
79
|
+
__param_position__: 'first'
|
|
80
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
|
|
81
|
+
},
|
|
82
|
+
'HEAD'
|
|
83
|
+
>
|
|
84
|
+
>()
|
|
85
|
+
checkFields<
|
|
86
|
+
Diff<
|
|
87
|
+
ParamCheck<RouteContext>,
|
|
88
|
+
{
|
|
89
|
+
__tag__: 'HEAD'
|
|
90
|
+
__param_position__: 'second'
|
|
91
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
|
|
92
|
+
},
|
|
93
|
+
'HEAD'
|
|
94
|
+
>
|
|
95
|
+
>()
|
|
96
|
+
|
|
97
|
+
checkFields<
|
|
98
|
+
Diff<
|
|
99
|
+
{
|
|
100
|
+
__tag__: 'HEAD',
|
|
101
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
__tag__: 'HEAD',
|
|
105
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
|
|
106
|
+
},
|
|
107
|
+
'HEAD'
|
|
108
|
+
>
|
|
109
|
+
>()
|
|
110
|
+
}
|
|
111
|
+
// Check the prop type of the entry function
|
|
112
|
+
if ('OPTIONS' in entry) {
|
|
113
|
+
checkFields<
|
|
114
|
+
Diff<
|
|
115
|
+
ParamCheck<Request | NextRequest>,
|
|
116
|
+
{
|
|
117
|
+
__tag__: 'OPTIONS'
|
|
118
|
+
__param_position__: 'first'
|
|
119
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
120
|
+
},
|
|
121
|
+
'OPTIONS'
|
|
122
|
+
>
|
|
123
|
+
>()
|
|
124
|
+
checkFields<
|
|
125
|
+
Diff<
|
|
126
|
+
ParamCheck<RouteContext>,
|
|
127
|
+
{
|
|
128
|
+
__tag__: 'OPTIONS'
|
|
129
|
+
__param_position__: 'second'
|
|
130
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
131
|
+
},
|
|
132
|
+
'OPTIONS'
|
|
133
|
+
>
|
|
134
|
+
>()
|
|
135
|
+
|
|
136
|
+
checkFields<
|
|
137
|
+
Diff<
|
|
138
|
+
{
|
|
139
|
+
__tag__: 'OPTIONS',
|
|
140
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
__tag__: 'OPTIONS',
|
|
144
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
|
|
145
|
+
},
|
|
146
|
+
'OPTIONS'
|
|
147
|
+
>
|
|
148
|
+
>()
|
|
149
|
+
}
|
|
150
|
+
// Check the prop type of the entry function
|
|
151
|
+
if ('POST' in entry) {
|
|
152
|
+
checkFields<
|
|
153
|
+
Diff<
|
|
154
|
+
ParamCheck<Request | NextRequest>,
|
|
155
|
+
{
|
|
156
|
+
__tag__: 'POST'
|
|
157
|
+
__param_position__: 'first'
|
|
158
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
|
|
159
|
+
},
|
|
160
|
+
'POST'
|
|
161
|
+
>
|
|
162
|
+
>()
|
|
163
|
+
checkFields<
|
|
164
|
+
Diff<
|
|
165
|
+
ParamCheck<RouteContext>,
|
|
166
|
+
{
|
|
167
|
+
__tag__: 'POST'
|
|
168
|
+
__param_position__: 'second'
|
|
169
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
|
|
170
|
+
},
|
|
171
|
+
'POST'
|
|
172
|
+
>
|
|
173
|
+
>()
|
|
174
|
+
|
|
175
|
+
checkFields<
|
|
176
|
+
Diff<
|
|
177
|
+
{
|
|
178
|
+
__tag__: 'POST',
|
|
179
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
__tag__: 'POST',
|
|
183
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
|
|
184
|
+
},
|
|
185
|
+
'POST'
|
|
186
|
+
>
|
|
187
|
+
>()
|
|
188
|
+
}
|
|
189
|
+
// Check the prop type of the entry function
|
|
190
|
+
if ('PUT' in entry) {
|
|
191
|
+
checkFields<
|
|
192
|
+
Diff<
|
|
193
|
+
ParamCheck<Request | NextRequest>,
|
|
194
|
+
{
|
|
195
|
+
__tag__: 'PUT'
|
|
196
|
+
__param_position__: 'first'
|
|
197
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
|
|
198
|
+
},
|
|
199
|
+
'PUT'
|
|
200
|
+
>
|
|
201
|
+
>()
|
|
202
|
+
checkFields<
|
|
203
|
+
Diff<
|
|
204
|
+
ParamCheck<RouteContext>,
|
|
205
|
+
{
|
|
206
|
+
__tag__: 'PUT'
|
|
207
|
+
__param_position__: 'second'
|
|
208
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
|
|
209
|
+
},
|
|
210
|
+
'PUT'
|
|
211
|
+
>
|
|
212
|
+
>()
|
|
213
|
+
|
|
214
|
+
checkFields<
|
|
215
|
+
Diff<
|
|
216
|
+
{
|
|
217
|
+
__tag__: 'PUT',
|
|
218
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
__tag__: 'PUT',
|
|
222
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
|
|
223
|
+
},
|
|
224
|
+
'PUT'
|
|
225
|
+
>
|
|
226
|
+
>()
|
|
227
|
+
}
|
|
228
|
+
// Check the prop type of the entry function
|
|
229
|
+
if ('DELETE' in entry) {
|
|
230
|
+
checkFields<
|
|
231
|
+
Diff<
|
|
232
|
+
ParamCheck<Request | NextRequest>,
|
|
233
|
+
{
|
|
234
|
+
__tag__: 'DELETE'
|
|
235
|
+
__param_position__: 'first'
|
|
236
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
|
|
237
|
+
},
|
|
238
|
+
'DELETE'
|
|
239
|
+
>
|
|
240
|
+
>()
|
|
241
|
+
checkFields<
|
|
242
|
+
Diff<
|
|
243
|
+
ParamCheck<RouteContext>,
|
|
244
|
+
{
|
|
245
|
+
__tag__: 'DELETE'
|
|
246
|
+
__param_position__: 'second'
|
|
247
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
|
|
248
|
+
},
|
|
249
|
+
'DELETE'
|
|
250
|
+
>
|
|
251
|
+
>()
|
|
252
|
+
|
|
253
|
+
checkFields<
|
|
254
|
+
Diff<
|
|
255
|
+
{
|
|
256
|
+
__tag__: 'DELETE',
|
|
257
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
__tag__: 'DELETE',
|
|
261
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
|
|
262
|
+
},
|
|
263
|
+
'DELETE'
|
|
264
|
+
>
|
|
265
|
+
>()
|
|
266
|
+
}
|
|
267
|
+
// Check the prop type of the entry function
|
|
268
|
+
if ('PATCH' in entry) {
|
|
269
|
+
checkFields<
|
|
270
|
+
Diff<
|
|
271
|
+
ParamCheck<Request | NextRequest>,
|
|
272
|
+
{
|
|
273
|
+
__tag__: 'PATCH'
|
|
274
|
+
__param_position__: 'first'
|
|
275
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
|
|
276
|
+
},
|
|
277
|
+
'PATCH'
|
|
278
|
+
>
|
|
279
|
+
>()
|
|
280
|
+
checkFields<
|
|
281
|
+
Diff<
|
|
282
|
+
ParamCheck<RouteContext>,
|
|
283
|
+
{
|
|
284
|
+
__tag__: 'PATCH'
|
|
285
|
+
__param_position__: 'second'
|
|
286
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
|
|
287
|
+
},
|
|
288
|
+
'PATCH'
|
|
289
|
+
>
|
|
290
|
+
>()
|
|
291
|
+
|
|
292
|
+
checkFields<
|
|
293
|
+
Diff<
|
|
294
|
+
{
|
|
295
|
+
__tag__: 'PATCH',
|
|
296
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
__tag__: 'PATCH',
|
|
300
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
|
|
301
|
+
},
|
|
302
|
+
'PATCH'
|
|
303
|
+
>
|
|
304
|
+
>()
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// Check the arguments and return type of the generateStaticParams function
|
|
308
|
+
if ('generateStaticParams' in entry) {
|
|
309
|
+
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
310
|
+
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export interface PageProps {
|
|
314
|
+
params?: Promise<SegmentParams>
|
|
315
|
+
searchParams?: Promise<any>
|
|
316
|
+
}
|
|
317
|
+
export interface LayoutProps {
|
|
318
|
+
children?: React.ReactNode
|
|
319
|
+
|
|
320
|
+
params?: Promise<SegmentParams>
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// =============
|
|
324
|
+
// Utility types
|
|
325
|
+
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
326
|
+
|
|
327
|
+
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
328
|
+
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
329
|
+
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
330
|
+
|
|
331
|
+
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
332
|
+
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
333
|
+
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
334
|
+
|
|
335
|
+
type ParamCheck<T> = {
|
|
336
|
+
__tag__: string
|
|
337
|
+
__param_position__: string
|
|
338
|
+
__param_type__: T
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
342
|
+
|
|
343
|
+
// https://github.com/sindresorhus/type-fest
|
|
344
|
+
type Numeric = number | bigint
|
|
345
|
+
type Zero = 0 | 0n
|
|
346
|
+
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
347
|
+
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
// File: /Users/weston/Code/agentic-product-development-harness/apps/gui/app/api/setup/apply-vercel-bridge/route.ts
|
|
2
|
+
import * as entry from '../../../../../../app/api/setup/apply-vercel-bridge/route.js'
|
|
3
|
+
import type { NextRequest } from 'next/server.js'
|
|
4
|
+
|
|
5
|
+
type TEntry = typeof import('../../../../../../app/api/setup/apply-vercel-bridge/route.js')
|
|
6
|
+
|
|
7
|
+
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
8
|
+
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
9
|
+
: T
|
|
10
|
+
|
|
11
|
+
// Check that the entry is a valid entry
|
|
12
|
+
checkFields<Diff<{
|
|
13
|
+
GET?: Function
|
|
14
|
+
HEAD?: Function
|
|
15
|
+
OPTIONS?: Function
|
|
16
|
+
POST?: Function
|
|
17
|
+
PUT?: Function
|
|
18
|
+
DELETE?: Function
|
|
19
|
+
PATCH?: Function
|
|
20
|
+
config?: {}
|
|
21
|
+
generateStaticParams?: Function
|
|
22
|
+
revalidate?: RevalidateRange<TEntry> | false
|
|
23
|
+
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
24
|
+
dynamicParams?: boolean
|
|
25
|
+
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
26
|
+
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
27
|
+
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
28
|
+
maxDuration?: number
|
|
29
|
+
|
|
30
|
+
}, TEntry, ''>>()
|
|
31
|
+
|
|
32
|
+
type RouteContext = { params: Promise<SegmentParams> }
|
|
33
|
+
// Check the prop type of the entry function
|
|
34
|
+
if ('GET' in entry) {
|
|
35
|
+
checkFields<
|
|
36
|
+
Diff<
|
|
37
|
+
ParamCheck<Request | NextRequest>,
|
|
38
|
+
{
|
|
39
|
+
__tag__: 'GET'
|
|
40
|
+
__param_position__: 'first'
|
|
41
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
|
|
42
|
+
},
|
|
43
|
+
'GET'
|
|
44
|
+
>
|
|
45
|
+
>()
|
|
46
|
+
checkFields<
|
|
47
|
+
Diff<
|
|
48
|
+
ParamCheck<RouteContext>,
|
|
49
|
+
{
|
|
50
|
+
__tag__: 'GET'
|
|
51
|
+
__param_position__: 'second'
|
|
52
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
|
|
53
|
+
},
|
|
54
|
+
'GET'
|
|
55
|
+
>
|
|
56
|
+
>()
|
|
57
|
+
|
|
58
|
+
checkFields<
|
|
59
|
+
Diff<
|
|
60
|
+
{
|
|
61
|
+
__tag__: 'GET',
|
|
62
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
__tag__: 'GET',
|
|
66
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
|
|
67
|
+
},
|
|
68
|
+
'GET'
|
|
69
|
+
>
|
|
70
|
+
>()
|
|
71
|
+
}
|
|
72
|
+
// Check the prop type of the entry function
|
|
73
|
+
if ('HEAD' in entry) {
|
|
74
|
+
checkFields<
|
|
75
|
+
Diff<
|
|
76
|
+
ParamCheck<Request | NextRequest>,
|
|
77
|
+
{
|
|
78
|
+
__tag__: 'HEAD'
|
|
79
|
+
__param_position__: 'first'
|
|
80
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
|
|
81
|
+
},
|
|
82
|
+
'HEAD'
|
|
83
|
+
>
|
|
84
|
+
>()
|
|
85
|
+
checkFields<
|
|
86
|
+
Diff<
|
|
87
|
+
ParamCheck<RouteContext>,
|
|
88
|
+
{
|
|
89
|
+
__tag__: 'HEAD'
|
|
90
|
+
__param_position__: 'second'
|
|
91
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
|
|
92
|
+
},
|
|
93
|
+
'HEAD'
|
|
94
|
+
>
|
|
95
|
+
>()
|
|
96
|
+
|
|
97
|
+
checkFields<
|
|
98
|
+
Diff<
|
|
99
|
+
{
|
|
100
|
+
__tag__: 'HEAD',
|
|
101
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
__tag__: 'HEAD',
|
|
105
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
|
|
106
|
+
},
|
|
107
|
+
'HEAD'
|
|
108
|
+
>
|
|
109
|
+
>()
|
|
110
|
+
}
|
|
111
|
+
// Check the prop type of the entry function
|
|
112
|
+
if ('OPTIONS' in entry) {
|
|
113
|
+
checkFields<
|
|
114
|
+
Diff<
|
|
115
|
+
ParamCheck<Request | NextRequest>,
|
|
116
|
+
{
|
|
117
|
+
__tag__: 'OPTIONS'
|
|
118
|
+
__param_position__: 'first'
|
|
119
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
120
|
+
},
|
|
121
|
+
'OPTIONS'
|
|
122
|
+
>
|
|
123
|
+
>()
|
|
124
|
+
checkFields<
|
|
125
|
+
Diff<
|
|
126
|
+
ParamCheck<RouteContext>,
|
|
127
|
+
{
|
|
128
|
+
__tag__: 'OPTIONS'
|
|
129
|
+
__param_position__: 'second'
|
|
130
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
131
|
+
},
|
|
132
|
+
'OPTIONS'
|
|
133
|
+
>
|
|
134
|
+
>()
|
|
135
|
+
|
|
136
|
+
checkFields<
|
|
137
|
+
Diff<
|
|
138
|
+
{
|
|
139
|
+
__tag__: 'OPTIONS',
|
|
140
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
__tag__: 'OPTIONS',
|
|
144
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
|
|
145
|
+
},
|
|
146
|
+
'OPTIONS'
|
|
147
|
+
>
|
|
148
|
+
>()
|
|
149
|
+
}
|
|
150
|
+
// Check the prop type of the entry function
|
|
151
|
+
if ('POST' in entry) {
|
|
152
|
+
checkFields<
|
|
153
|
+
Diff<
|
|
154
|
+
ParamCheck<Request | NextRequest>,
|
|
155
|
+
{
|
|
156
|
+
__tag__: 'POST'
|
|
157
|
+
__param_position__: 'first'
|
|
158
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
|
|
159
|
+
},
|
|
160
|
+
'POST'
|
|
161
|
+
>
|
|
162
|
+
>()
|
|
163
|
+
checkFields<
|
|
164
|
+
Diff<
|
|
165
|
+
ParamCheck<RouteContext>,
|
|
166
|
+
{
|
|
167
|
+
__tag__: 'POST'
|
|
168
|
+
__param_position__: 'second'
|
|
169
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
|
|
170
|
+
},
|
|
171
|
+
'POST'
|
|
172
|
+
>
|
|
173
|
+
>()
|
|
174
|
+
|
|
175
|
+
checkFields<
|
|
176
|
+
Diff<
|
|
177
|
+
{
|
|
178
|
+
__tag__: 'POST',
|
|
179
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
__tag__: 'POST',
|
|
183
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
|
|
184
|
+
},
|
|
185
|
+
'POST'
|
|
186
|
+
>
|
|
187
|
+
>()
|
|
188
|
+
}
|
|
189
|
+
// Check the prop type of the entry function
|
|
190
|
+
if ('PUT' in entry) {
|
|
191
|
+
checkFields<
|
|
192
|
+
Diff<
|
|
193
|
+
ParamCheck<Request | NextRequest>,
|
|
194
|
+
{
|
|
195
|
+
__tag__: 'PUT'
|
|
196
|
+
__param_position__: 'first'
|
|
197
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
|
|
198
|
+
},
|
|
199
|
+
'PUT'
|
|
200
|
+
>
|
|
201
|
+
>()
|
|
202
|
+
checkFields<
|
|
203
|
+
Diff<
|
|
204
|
+
ParamCheck<RouteContext>,
|
|
205
|
+
{
|
|
206
|
+
__tag__: 'PUT'
|
|
207
|
+
__param_position__: 'second'
|
|
208
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
|
|
209
|
+
},
|
|
210
|
+
'PUT'
|
|
211
|
+
>
|
|
212
|
+
>()
|
|
213
|
+
|
|
214
|
+
checkFields<
|
|
215
|
+
Diff<
|
|
216
|
+
{
|
|
217
|
+
__tag__: 'PUT',
|
|
218
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
__tag__: 'PUT',
|
|
222
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
|
|
223
|
+
},
|
|
224
|
+
'PUT'
|
|
225
|
+
>
|
|
226
|
+
>()
|
|
227
|
+
}
|
|
228
|
+
// Check the prop type of the entry function
|
|
229
|
+
if ('DELETE' in entry) {
|
|
230
|
+
checkFields<
|
|
231
|
+
Diff<
|
|
232
|
+
ParamCheck<Request | NextRequest>,
|
|
233
|
+
{
|
|
234
|
+
__tag__: 'DELETE'
|
|
235
|
+
__param_position__: 'first'
|
|
236
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
|
|
237
|
+
},
|
|
238
|
+
'DELETE'
|
|
239
|
+
>
|
|
240
|
+
>()
|
|
241
|
+
checkFields<
|
|
242
|
+
Diff<
|
|
243
|
+
ParamCheck<RouteContext>,
|
|
244
|
+
{
|
|
245
|
+
__tag__: 'DELETE'
|
|
246
|
+
__param_position__: 'second'
|
|
247
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
|
|
248
|
+
},
|
|
249
|
+
'DELETE'
|
|
250
|
+
>
|
|
251
|
+
>()
|
|
252
|
+
|
|
253
|
+
checkFields<
|
|
254
|
+
Diff<
|
|
255
|
+
{
|
|
256
|
+
__tag__: 'DELETE',
|
|
257
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
__tag__: 'DELETE',
|
|
261
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
|
|
262
|
+
},
|
|
263
|
+
'DELETE'
|
|
264
|
+
>
|
|
265
|
+
>()
|
|
266
|
+
}
|
|
267
|
+
// Check the prop type of the entry function
|
|
268
|
+
if ('PATCH' in entry) {
|
|
269
|
+
checkFields<
|
|
270
|
+
Diff<
|
|
271
|
+
ParamCheck<Request | NextRequest>,
|
|
272
|
+
{
|
|
273
|
+
__tag__: 'PATCH'
|
|
274
|
+
__param_position__: 'first'
|
|
275
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
|
|
276
|
+
},
|
|
277
|
+
'PATCH'
|
|
278
|
+
>
|
|
279
|
+
>()
|
|
280
|
+
checkFields<
|
|
281
|
+
Diff<
|
|
282
|
+
ParamCheck<RouteContext>,
|
|
283
|
+
{
|
|
284
|
+
__tag__: 'PATCH'
|
|
285
|
+
__param_position__: 'second'
|
|
286
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
|
|
287
|
+
},
|
|
288
|
+
'PATCH'
|
|
289
|
+
>
|
|
290
|
+
>()
|
|
291
|
+
|
|
292
|
+
checkFields<
|
|
293
|
+
Diff<
|
|
294
|
+
{
|
|
295
|
+
__tag__: 'PATCH',
|
|
296
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
__tag__: 'PATCH',
|
|
300
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
|
|
301
|
+
},
|
|
302
|
+
'PATCH'
|
|
303
|
+
>
|
|
304
|
+
>()
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// Check the arguments and return type of the generateStaticParams function
|
|
308
|
+
if ('generateStaticParams' in entry) {
|
|
309
|
+
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
310
|
+
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export interface PageProps {
|
|
314
|
+
params?: Promise<SegmentParams>
|
|
315
|
+
searchParams?: Promise<any>
|
|
316
|
+
}
|
|
317
|
+
export interface LayoutProps {
|
|
318
|
+
children?: React.ReactNode
|
|
319
|
+
|
|
320
|
+
params?: Promise<SegmentParams>
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// =============
|
|
324
|
+
// Utility types
|
|
325
|
+
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
326
|
+
|
|
327
|
+
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
328
|
+
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
329
|
+
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
330
|
+
|
|
331
|
+
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
332
|
+
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
333
|
+
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
334
|
+
|
|
335
|
+
type ParamCheck<T> = {
|
|
336
|
+
__tag__: string
|
|
337
|
+
__param_position__: string
|
|
338
|
+
__param_type__: T
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
342
|
+
|
|
343
|
+
// https://github.com/sindresorhus/type-fest
|
|
344
|
+
type Numeric = number | bigint
|
|
345
|
+
type Zero = 0 | 0n
|
|
346
|
+
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
347
|
+
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|