p-dev-harness 0.3.1 → 0.4.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/README.md +12 -4
- package/dist/agents/cursor-provider.d.ts.map +1 -1
- package/dist/agents/cursor-provider.js +9 -8
- package/dist/agents/cursor-provider.js.map +1 -1
- package/dist/agents/index.d.ts +3 -4
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +2 -5
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/types.d.ts +36 -2
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/artifacts/redact.d.ts +2 -0
- package/dist/artifacts/redact.d.ts.map +1 -1
- package/dist/artifacts/redact.js +15 -1
- package/dist/artifacts/redact.js.map +1 -1
- package/dist/artifacts/write-json-out-manifest.d.ts +17 -0
- package/dist/artifacts/write-json-out-manifest.d.ts.map +1 -0
- package/dist/artifacts/write-json-out-manifest.js +68 -0
- package/dist/artifacts/write-json-out-manifest.js.map +1 -0
- package/dist/cli/commands/canary-runner-config.d.ts +2 -0
- package/dist/cli/commands/canary-runner-config.d.ts.map +1 -0
- package/dist/cli/commands/canary-runner-config.js +6 -0
- package/dist/cli/commands/canary-runner-config.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js +129 -0
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/resolve-route.d.ts.map +1 -1
- package/dist/cli/commands/resolve-route.js +5 -0
- package/dist/cli/commands/resolve-route.js.map +1 -1
- package/dist/cli/commands/run.d.ts +1 -0
- package/dist/cli/commands/run.d.ts.map +1 -1
- package/dist/cli/commands/run.js +54 -12
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/sync-managed-runner.d.ts +7 -0
- package/dist/cli/commands/sync-managed-runner.d.ts.map +1 -0
- package/dist/cli/commands/sync-managed-runner.js +89 -0
- package/dist/cli/commands/sync-managed-runner.js.map +1 -0
- package/dist/cli/program.d.ts.map +1 -1
- package/dist/cli/program.js +27 -0
- package/dist/cli/program.js.map +1 -1
- package/dist/config/assert-cloud-config-fingerprint.d.ts +10 -0
- package/dist/config/assert-cloud-config-fingerprint.d.ts.map +1 -0
- package/dist/config/assert-cloud-config-fingerprint.js +26 -0
- package/dist/config/assert-cloud-config-fingerprint.js.map +1 -0
- package/dist/config/cloud-config-fingerprint.d.ts +26 -0
- package/dist/config/cloud-config-fingerprint.d.ts.map +1 -0
- package/dist/config/cloud-config-fingerprint.js +64 -0
- package/dist/config/cloud-config-fingerprint.js.map +1 -0
- package/dist/config/legacy-linear-top-level.d.ts +16 -0
- package/dist/config/legacy-linear-top-level.d.ts.map +1 -0
- package/dist/config/legacy-linear-top-level.js +42 -0
- package/dist/config/legacy-linear-top-level.js.map +1 -0
- package/dist/config/linear-association-gate.d.ts +26 -0
- package/dist/config/linear-association-gate.d.ts.map +1 -0
- package/dist/config/linear-association-gate.js +46 -0
- package/dist/config/linear-association-gate.js.map +1 -0
- package/dist/config/resolve-linear-team.d.ts +10 -0
- package/dist/config/resolve-linear-team.d.ts.map +1 -0
- package/dist/config/resolve-linear-team.js +24 -0
- package/dist/config/resolve-linear-team.js.map +1 -0
- package/dist/config/resolve-linear-workspace.d.ts +83 -0
- package/dist/config/resolve-linear-workspace.d.ts.map +1 -0
- package/dist/config/resolve-linear-workspace.js +244 -0
- package/dist/config/resolve-linear-workspace.js.map +1 -0
- package/dist/config/role-models.d.ts +160 -0
- package/dist/config/role-models.d.ts.map +1 -0
- package/dist/config/role-models.js +31 -0
- package/dist/config/role-models.js.map +1 -0
- package/dist/config/runner-upgrade-sync-gate.d.ts +10 -0
- package/dist/config/runner-upgrade-sync-gate.d.ts.map +1 -0
- package/dist/config/runner-upgrade-sync-gate.js +24 -0
- package/dist/config/runner-upgrade-sync-gate.js.map +1 -0
- package/dist/config/schema.d.ts +266 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +14 -0
- package/dist/config/schema.js.map +1 -1
- package/dist/config/types.d.ts +1 -1
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/workspace-root.d.ts +7 -0
- package/dist/config/workspace-root.d.ts.map +1 -0
- package/dist/config/workspace-root.js +21 -0
- package/dist/config/workspace-root.js.map +1 -0
- package/dist/cursor/agent-factory.d.ts +8 -0
- package/dist/cursor/agent-factory.d.ts.map +1 -1
- package/dist/cursor/agent-factory.js +34 -5
- package/dist/cursor/agent-factory.js.map +1 -1
- package/dist/cursor/builder-resume-errors.d.ts +3 -0
- package/dist/cursor/builder-resume-errors.d.ts.map +1 -0
- package/dist/cursor/builder-resume-errors.js +32 -0
- package/dist/cursor/builder-resume-errors.js.map +1 -0
- package/dist/cursor/model.d.ts +18 -22
- package/dist/cursor/model.d.ts.map +1 -1
- package/dist/cursor/model.js +73 -25
- package/dist/cursor/model.js.map +1 -1
- package/dist/cursor/run-observer.d.ts +8 -1
- package/dist/cursor/run-observer.d.ts.map +1 -1
- package/dist/cursor/run-observer.js +9 -1
- package/dist/cursor/run-observer.js.map +1 -1
- package/dist/github/auth-verification-retry.d.ts +12 -0
- package/dist/github/auth-verification-retry.d.ts.map +1 -0
- package/dist/github/auth-verification-retry.js +47 -0
- package/dist/github/auth-verification-retry.js.map +1 -0
- package/dist/github/client.d.ts +53 -4
- package/dist/github/client.d.ts.map +1 -1
- package/dist/github/client.js +108 -7
- package/dist/github/client.js.map +1 -1
- package/dist/gui/configure-health.js +2 -2
- package/dist/gui/configure-health.js.map +1 -1
- package/dist/gui/repo-root.d.ts +3 -0
- package/dist/gui/repo-root.d.ts.map +1 -1
- package/dist/gui/repo-root.js +16 -1
- package/dist/gui/repo-root.js.map +1 -1
- package/dist/gui/start-configure-stable.js +6 -2
- package/dist/gui/start-configure-stable.js.map +1 -1
- package/dist/gui/start-gui.js +7 -3
- package/dist/gui/start-gui.js.map +1 -1
- package/dist/linear/client.d.ts +4 -0
- package/dist/linear/client.d.ts.map +1 -1
- package/dist/linear/client.js +7 -0
- package/dist/linear/client.js.map +1 -1
- package/dist/linear/comments.d.ts +9 -0
- package/dist/linear/comments.d.ts.map +1 -1
- package/dist/linear/comments.js +34 -0
- package/dist/linear/comments.js.map +1 -1
- package/dist/linear/issue-query.d.ts +1 -0
- package/dist/linear/issue-query.d.ts.map +1 -1
- package/dist/linear/issue-query.js +3 -0
- package/dist/linear/issue-query.js.map +1 -1
- package/dist/linear/markers.d.ts +7 -0
- package/dist/linear/markers.d.ts.map +1 -1
- package/dist/linear/markers.js +21 -0
- package/dist/linear/markers.js.map +1 -1
- package/dist/linear/parser.d.ts +2 -1
- package/dist/linear/parser.d.ts.map +1 -1
- package/dist/linear/parser.js +46 -0
- package/dist/linear/parser.js.map +1 -1
- package/dist/linear/project-harness-metadata.d.ts +10 -0
- package/dist/linear/project-harness-metadata.d.ts.map +1 -0
- package/dist/linear/project-harness-metadata.js +109 -0
- package/dist/linear/project-harness-metadata.js.map +1 -0
- package/dist/linear/project-metadata-sync.d.ts +29 -0
- package/dist/linear/project-metadata-sync.d.ts.map +1 -0
- package/dist/linear/project-metadata-sync.js +64 -0
- package/dist/linear/project-metadata-sync.js.map +1 -0
- package/dist/linear/run-status-comment.d.ts +49 -0
- package/dist/linear/run-status-comment.d.ts.map +1 -0
- package/dist/linear/run-status-comment.js +118 -0
- package/dist/linear/run-status-comment.js.map +1 -0
- package/dist/linear/writer.d.ts +8 -0
- package/dist/linear/writer.d.ts.map +1 -1
- package/dist/linear/writer.js +13 -0
- package/dist/linear/writer.js.map +1 -1
- package/dist/observability/adapters/fake.d.ts +17 -0
- package/dist/observability/adapters/fake.d.ts.map +1 -0
- package/dist/observability/adapters/fake.js +205 -0
- package/dist/observability/adapters/fake.js.map +1 -0
- package/dist/observability/adapters/noop.d.ts +5 -0
- package/dist/observability/adapters/noop.d.ts.map +1 -0
- package/dist/observability/adapters/noop.js +51 -0
- package/dist/observability/adapters/noop.js.map +1 -0
- package/dist/observability/adapters/posthog.d.ts +12 -0
- package/dist/observability/adapters/posthog.d.ts.map +1 -0
- package/dist/observability/adapters/posthog.js +142 -0
- package/dist/observability/adapters/posthog.js.map +1 -0
- package/dist/observability/adapters/sentry.d.ts +12 -0
- package/dist/observability/adapters/sentry.d.ts.map +1 -0
- package/dist/observability/adapters/sentry.js +217 -0
- package/dist/observability/adapters/sentry.js.map +1 -0
- package/dist/observability/analytics-schemas.d.ts +59 -0
- package/dist/observability/analytics-schemas.d.ts.map +1 -0
- package/dist/observability/analytics-schemas.js +119 -0
- package/dist/observability/analytics-schemas.js.map +1 -0
- package/dist/observability/consent.d.ts +14 -0
- package/dist/observability/consent.d.ts.map +1 -0
- package/dist/observability/consent.js +35 -0
- package/dist/observability/consent.js.map +1 -0
- package/dist/observability/constants.d.ts +18 -0
- package/dist/observability/constants.d.ts.map +1 -0
- package/dist/observability/constants.js +18 -0
- package/dist/observability/constants.js.map +1 -0
- package/dist/observability/context.d.ts +21 -0
- package/dist/observability/context.d.ts.map +1 -0
- package/dist/observability/context.js +105 -0
- package/dist/observability/context.js.map +1 -0
- package/dist/observability/facade-runtime-state.d.ts +17 -0
- package/dist/observability/facade-runtime-state.d.ts.map +1 -0
- package/dist/observability/facade-runtime-state.js +23 -0
- package/dist/observability/facade-runtime-state.js.map +1 -0
- package/dist/observability/facade.d.ts +44 -0
- package/dist/observability/facade.d.ts.map +1 -0
- package/dist/observability/facade.js +432 -0
- package/dist/observability/facade.js.map +1 -0
- package/dist/observability/fatal-handlers.d.ts +4 -0
- package/dist/observability/fatal-handlers.d.ts.map +1 -0
- package/dist/observability/fatal-handlers.js +54 -0
- package/dist/observability/fatal-handlers.js.map +1 -0
- package/dist/observability/identity.d.ts +4 -0
- package/dist/observability/identity.d.ts.map +1 -0
- package/dist/observability/identity.js +11 -0
- package/dist/observability/identity.js.map +1 -0
- package/dist/observability/index.d.ts +9 -0
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/index.js +6 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/observability/local-state.d.ts +14 -0
- package/dist/observability/local-state.d.ts.map +1 -0
- package/dist/observability/local-state.js +107 -0
- package/dist/observability/local-state.js.map +1 -0
- package/dist/observability/package-config.d.ts +11 -0
- package/dist/observability/package-config.d.ts.map +1 -0
- package/dist/observability/package-config.js +117 -0
- package/dist/observability/package-config.js.map +1 -0
- package/dist/observability/posthog-dashboard-contract.d.ts +46 -0
- package/dist/observability/posthog-dashboard-contract.d.ts.map +1 -0
- package/dist/observability/posthog-dashboard-contract.js +200 -0
- package/dist/observability/posthog-dashboard-contract.js.map +1 -0
- package/dist/observability/privacy-schema.d.ts +13 -0
- package/dist/observability/privacy-schema.d.ts.map +1 -0
- package/dist/observability/privacy-schema.js +204 -0
- package/dist/observability/privacy-schema.js.map +1 -0
- package/dist/observability/product-error-messages.d.ts +2 -0
- package/dist/observability/product-error-messages.d.ts.map +1 -0
- package/dist/observability/product-error-messages.js +15 -0
- package/dist/observability/product-error-messages.js.map +1 -0
- package/dist/observability/product-errors.d.ts +12 -0
- package/dist/observability/product-errors.d.ts.map +1 -0
- package/dist/observability/product-errors.js +109 -0
- package/dist/observability/product-errors.js.map +1 -0
- package/dist/observability/provisioning-analytics.d.ts +12 -0
- package/dist/observability/provisioning-analytics.d.ts.map +1 -0
- package/dist/observability/provisioning-analytics.js +11 -0
- package/dist/observability/provisioning-analytics.js.map +1 -0
- package/dist/observability/redaction.d.ts +10 -0
- package/dist/observability/redaction.d.ts.map +1 -0
- package/dist/observability/redaction.js +72 -0
- package/dist/observability/redaction.js.map +1 -0
- package/dist/observability/runtime-eligibility.d.ts +6 -0
- package/dist/observability/runtime-eligibility.d.ts.map +1 -0
- package/dist/observability/runtime-eligibility.js +33 -0
- package/dist/observability/runtime-eligibility.js.map +1 -0
- package/dist/observability/sentry-outbound-privacy.d.ts +12 -0
- package/dist/observability/sentry-outbound-privacy.d.ts.map +1 -0
- package/dist/observability/sentry-outbound-privacy.js +168 -0
- package/dist/observability/sentry-outbound-privacy.js.map +1 -0
- package/dist/observability/session-dedupe.d.ts +8 -0
- package/dist/observability/session-dedupe.d.ts.map +1 -0
- package/dist/observability/session-dedupe.js +42 -0
- package/dist/observability/session-dedupe.js.map +1 -0
- package/dist/observability/session-handoff.d.ts +10 -0
- package/dist/observability/session-handoff.d.ts.map +1 -0
- package/dist/observability/session-handoff.js +25 -0
- package/dist/observability/session-handoff.js.map +1 -0
- package/dist/observability/transport-lifecycle.d.ts +20 -0
- package/dist/observability/transport-lifecycle.d.ts.map +1 -0
- package/dist/observability/transport-lifecycle.js +69 -0
- package/dist/observability/transport-lifecycle.js.map +1 -0
- package/dist/observability/types.d.ts +189 -0
- package/dist/observability/types.d.ts.map +1 -0
- package/dist/observability/types.js +2 -0
- package/dist/observability/types.js.map +1 -0
- package/dist/p-dev/cli.d.ts +1 -1
- package/dist/p-dev/cli.d.ts.map +1 -1
- package/dist/p-dev/cli.js +1 -1
- package/dist/p-dev/cli.js.map +1 -1
- package/dist/p-dev/git-object-plumbing.d.ts +20 -0
- package/dist/p-dev/git-object-plumbing.d.ts.map +1 -1
- package/dist/p-dev/git-object-plumbing.js +106 -13
- package/dist/p-dev/git-object-plumbing.js.map +1 -1
- package/dist/p-dev/launch.d.ts.map +1 -1
- package/dist/p-dev/launch.js +77 -15
- package/dist/p-dev/launch.js.map +1 -1
- package/dist/p-dev/main.js +9 -1
- package/dist/p-dev/main.js.map +1 -1
- package/dist/p-dev/package-paths.d.ts +12 -0
- package/dist/p-dev/package-paths.d.ts.map +1 -1
- package/dist/p-dev/package-paths.js +48 -2
- package/dist/p-dev/package-paths.js.map +1 -1
- package/dist/p-dev/workspace-snapshot-generator.d.ts.map +1 -1
- package/dist/p-dev/workspace-snapshot-generator.js +18 -0
- package/dist/p-dev/workspace-snapshot-generator.js.map +1 -1
- package/dist/p-dev/workspace-snapshot-manifest.d.ts.map +1 -1
- package/dist/p-dev/workspace-snapshot-manifest.js +48 -0
- package/dist/p-dev/workspace-snapshot-manifest.js.map +1 -1
- package/dist/p-dev/workspace-snapshot-types.d.ts +8 -0
- package/dist/p-dev/workspace-snapshot-types.d.ts.map +1 -1
- package/dist/preview/preview-capability.d.ts +9 -0
- package/dist/preview/preview-capability.d.ts.map +1 -0
- package/dist/preview/preview-capability.js +15 -0
- package/dist/preview/preview-capability.js.map +1 -0
- package/dist/product/initialization-state.d.ts +15 -0
- package/dist/product/initialization-state.d.ts.map +1 -0
- package/dist/product/initialization-state.js +37 -0
- package/dist/product/initialization-state.js.map +1 -0
- package/dist/product/product-marker.d.ts +77 -0
- package/dist/product/product-marker.d.ts.map +1 -0
- package/dist/product/product-marker.js +62 -0
- package/dist/product/product-marker.js.map +1 -0
- package/dist/product/read-product-marker.d.ts +15 -0
- package/dist/product/read-product-marker.d.ts.map +1 -0
- package/dist/product/read-product-marker.js +28 -0
- package/dist/product/read-product-marker.js.map +1 -0
- package/dist/prompts/builder.d.ts +10 -1
- package/dist/prompts/builder.d.ts.map +1 -1
- package/dist/prompts/builder.js +16 -2
- package/dist/prompts/builder.js.map +1 -1
- package/dist/resolver/errors.d.ts +1 -1
- package/dist/resolver/errors.d.ts.map +1 -1
- package/dist/resolver/errors.js.map +1 -1
- package/dist/resolver/target-repo.d.ts +4 -1
- package/dist/resolver/target-repo.d.ts.map +1 -1
- package/dist/resolver/target-repo.js +40 -0
- package/dist/resolver/target-repo.js.map +1 -1
- package/dist/runner/builder-thread-acquire.d.ts +41 -0
- package/dist/runner/builder-thread-acquire.d.ts.map +1 -0
- package/dist/runner/builder-thread-acquire.js +224 -0
- package/dist/runner/builder-thread-acquire.js.map +1 -0
- package/dist/runner/builder-thread-evidence.d.ts +13 -0
- package/dist/runner/builder-thread-evidence.d.ts.map +1 -0
- package/dist/runner/builder-thread-evidence.js +23 -0
- package/dist/runner/builder-thread-evidence.js.map +1 -0
- package/dist/runner/builder-thread-idempotency.d.ts +17 -0
- package/dist/runner/builder-thread-idempotency.d.ts.map +1 -0
- package/dist/runner/builder-thread-idempotency.js +12 -0
- package/dist/runner/builder-thread-idempotency.js.map +1 -0
- package/dist/runner/builder-thread-lineage-errors.d.ts +7 -0
- package/dist/runner/builder-thread-lineage-errors.d.ts.map +1 -0
- package/dist/runner/builder-thread-lineage-errors.js +11 -0
- package/dist/runner/builder-thread-lineage-errors.js.map +1 -0
- package/dist/runner/builder-thread-lineage.d.ts +18 -0
- package/dist/runner/builder-thread-lineage.d.ts.map +1 -0
- package/dist/runner/builder-thread-lineage.js +342 -0
- package/dist/runner/builder-thread-lineage.js.map +1 -0
- package/dist/runner/builder-thread-types.d.ts +30 -0
- package/dist/runner/builder-thread-types.d.ts.map +1 -0
- package/dist/runner/builder-thread-types.js +2 -0
- package/dist/runner/builder-thread-types.js.map +1 -0
- package/dist/runner/delivery-dedup.d.ts +26 -0
- package/dist/runner/delivery-dedup.d.ts.map +1 -0
- package/dist/runner/delivery-dedup.js +44 -0
- package/dist/runner/delivery-dedup.js.map +1 -0
- package/dist/runner/failure-finalization.d.ts +34 -0
- package/dist/runner/failure-finalization.d.ts.map +1 -0
- package/dist/runner/failure-finalization.js +154 -0
- package/dist/runner/failure-finalization.js.map +1 -0
- package/dist/runner/fixture.d.ts +1 -1
- package/dist/runner/fixture.d.ts.map +1 -1
- package/dist/runner/fixture.js +3 -0
- package/dist/runner/fixture.js.map +1 -1
- package/dist/runner/phases/handoff.d.ts.map +1 -1
- package/dist/runner/phases/handoff.js +59 -32
- package/dist/runner/phases/handoff.js.map +1 -1
- package/dist/runner/phases/implementation.d.ts.map +1 -1
- package/dist/runner/phases/implementation.js +147 -24
- package/dist/runner/phases/implementation.js.map +1 -1
- package/dist/runner/phases/integration-repair.d.ts +18 -0
- package/dist/runner/phases/integration-repair.d.ts.map +1 -1
- package/dist/runner/phases/integration-repair.js +93 -7
- package/dist/runner/phases/integration-repair.js.map +1 -1
- package/dist/runner/phases/merge.d.ts.map +1 -1
- package/dist/runner/phases/merge.js +129 -51
- package/dist/runner/phases/merge.js.map +1 -1
- package/dist/runner/phases/planning.d.ts.map +1 -1
- package/dist/runner/phases/planning.js +46 -8
- package/dist/runner/phases/planning.js.map +1 -1
- package/dist/runner/phases/production-sync.d.ts.map +1 -1
- package/dist/runner/phases/production-sync.js +28 -4
- package/dist/runner/phases/production-sync.js.map +1 -1
- package/dist/runner/phases/revision.d.ts.map +1 -1
- package/dist/runner/phases/revision.js +112 -32
- package/dist/runner/phases/revision.js.map +1 -1
- package/dist/runner/preflight.d.ts +2 -0
- package/dist/runner/preflight.d.ts.map +1 -1
- package/dist/runner/preflight.js +112 -3
- package/dist/runner/preflight.js.map +1 -1
- package/dist/runner/resolve-route.d.ts +1 -0
- package/dist/runner/resolve-route.d.ts.map +1 -1
- package/dist/runner/resolve-route.js +26 -0
- package/dist/runner/resolve-route.js.map +1 -1
- package/dist/runner/run-generation.d.ts +2 -0
- package/dist/runner/run-generation.d.ts.map +1 -0
- package/dist/runner/run-generation.js +19 -0
- package/dist/runner/run-generation.js.map +1 -0
- package/dist/runner/uninitialized-product-routing.d.ts +24 -0
- package/dist/runner/uninitialized-product-routing.d.ts.map +1 -0
- package/dist/runner/uninitialized-product-routing.js +70 -0
- package/dist/runner/uninitialized-product-routing.js.map +1 -0
- package/dist/setup/config-builder.d.ts.map +1 -1
- package/dist/setup/config-builder.js +12 -0
- package/dist/setup/config-builder.js.map +1 -1
- package/dist/setup/control-plane-readiness.d.ts +8 -1
- package/dist/setup/control-plane-readiness.d.ts.map +1 -1
- package/dist/setup/control-plane-readiness.js +63 -19
- package/dist/setup/control-plane-readiness.js.map +1 -1
- package/dist/setup/control-plane-setup-state.d.ts +13 -3
- package/dist/setup/control-plane-setup-state.d.ts.map +1 -1
- package/dist/setup/control-plane-setup-state.js +30 -3
- package/dist/setup/control-plane-setup-state.js.map +1 -1
- package/dist/setup/control-plane-state-lock.d.ts +12 -0
- package/dist/setup/control-plane-state-lock.d.ts.map +1 -0
- package/dist/setup/control-plane-state-lock.js +79 -0
- package/dist/setup/control-plane-state-lock.js.map +1 -0
- package/dist/setup/control-plane-types.d.ts +72 -1
- package/dist/setup/control-plane-types.d.ts.map +1 -1
- package/dist/setup/first-run-readiness.d.ts +4 -0
- package/dist/setup/first-run-readiness.d.ts.map +1 -1
- package/dist/setup/first-run-readiness.js +2 -2
- package/dist/setup/first-run-readiness.js.map +1 -1
- package/dist/setup/git-askpass-credentials.d.ts +19 -0
- package/dist/setup/git-askpass-credentials.d.ts.map +1 -0
- package/dist/setup/git-askpass-credentials.js +60 -0
- package/dist/setup/git-askpass-credentials.js.map +1 -0
- package/dist/setup/github-dispatch-token.d.ts +4 -0
- package/dist/setup/github-dispatch-token.d.ts.map +1 -1
- package/dist/setup/github-dispatch-token.js +23 -3
- package/dist/setup/github-dispatch-token.js.map +1 -1
- package/dist/setup/github-remote-provider.d.ts +44 -0
- package/dist/setup/github-remote-provider.d.ts.map +1 -1
- package/dist/setup/github-remote-provider.js +22 -2
- package/dist/setup/github-remote-provider.js.map +1 -1
- package/dist/setup/github-remote-setup-live.d.ts +30 -1
- package/dist/setup/github-remote-setup-live.d.ts.map +1 -1
- package/dist/setup/github-remote-setup-live.js +68 -11
- package/dist/setup/github-remote-setup-live.js.map +1 -1
- package/dist/setup/github-repository-name.d.ts +15 -0
- package/dist/setup/github-repository-name.d.ts.map +1 -0
- package/dist/setup/github-repository-name.js +54 -0
- package/dist/setup/github-repository-name.js.map +1 -0
- package/dist/setup/github-target-repository-provider-live.d.ts +35 -0
- package/dist/setup/github-target-repository-provider-live.d.ts.map +1 -0
- package/dist/setup/github-target-repository-provider-live.js +236 -0
- package/dist/setup/github-target-repository-provider-live.js.map +1 -0
- package/dist/setup/github-target-repository-provider-mock.d.ts +47 -0
- package/dist/setup/github-target-repository-provider-mock.d.ts.map +1 -0
- package/dist/setup/github-target-repository-provider-mock.js +189 -0
- package/dist/setup/github-target-repository-provider-mock.js.map +1 -0
- package/dist/setup/github-target-repository-provider.d.ts +44 -0
- package/dist/setup/github-target-repository-provider.d.ts.map +1 -0
- package/dist/setup/github-target-repository-provider.js +7 -0
- package/dist/setup/github-target-repository-provider.js.map +1 -0
- package/dist/setup/github-workflow-permissions.d.ts +1 -1
- package/dist/setup/github-workflow-permissions.d.ts.map +1 -1
- package/dist/setup/github-workflow-permissions.js +1 -1
- package/dist/setup/github-workflow-permissions.js.map +1 -1
- package/dist/setup/gui-view-model.d.ts +5 -0
- package/dist/setup/gui-view-model.d.ts.map +1 -1
- package/dist/setup/gui-view-model.js +5 -0
- package/dist/setup/gui-view-model.js.map +1 -1
- package/dist/setup/harness-dispatch-repo.d.ts +16 -2
- package/dist/setup/harness-dispatch-repo.d.ts.map +1 -1
- package/dist/setup/harness-dispatch-repo.js +113 -22
- package/dist/setup/harness-dispatch-repo.js.map +1 -1
- package/dist/setup/harness-managed-repo-marker.d.ts +1 -0
- package/dist/setup/harness-managed-repo-marker.d.ts.map +1 -1
- package/dist/setup/harness-managed-repo-marker.js +18 -0
- package/dist/setup/harness-managed-repo-marker.js.map +1 -1
- package/dist/setup/harness-provisioning-last-run.d.ts +27 -0
- package/dist/setup/harness-provisioning-last-run.d.ts.map +1 -0
- package/dist/setup/harness-provisioning-last-run.js +94 -0
- package/dist/setup/harness-provisioning-last-run.js.map +1 -0
- package/dist/setup/harness-provisioning-pending-state.d.ts +1 -1
- package/dist/setup/harness-provisioning-pending-state.d.ts.map +1 -1
- package/dist/setup/harness-provisioning-pending-state.js.map +1 -1
- package/dist/setup/harness-provisioning-progress.d.ts +58 -0
- package/dist/setup/harness-provisioning-progress.d.ts.map +1 -0
- package/dist/setup/harness-provisioning-progress.js +134 -0
- package/dist/setup/harness-provisioning-progress.js.map +1 -0
- package/dist/setup/harness-repo-provisioning.d.ts +11 -0
- package/dist/setup/harness-repo-provisioning.d.ts.map +1 -1
- package/dist/setup/harness-repo-provisioning.js +98 -6
- package/dist/setup/harness-repo-provisioning.js.map +1 -1
- package/dist/setup/harness-snapshot-git-transport.d.ts +92 -0
- package/dist/setup/harness-snapshot-git-transport.d.ts.map +1 -0
- package/dist/setup/harness-snapshot-git-transport.js +544 -0
- package/dist/setup/harness-snapshot-git-transport.js.map +1 -0
- package/dist/setup/harness-snapshot-provisioning-helpers.d.ts +1 -1
- package/dist/setup/harness-snapshot-provisioning-helpers.d.ts.map +1 -1
- package/dist/setup/harness-snapshot-provisioning-helpers.js.map +1 -1
- package/dist/setup/harness-snapshot-provisioning.d.ts +12 -1
- package/dist/setup/harness-snapshot-provisioning.d.ts.map +1 -1
- package/dist/setup/harness-snapshot-provisioning.js +298 -73
- package/dist/setup/harness-snapshot-provisioning.js.map +1 -1
- package/dist/setup/harness-step-readiness-server.d.ts +11 -0
- package/dist/setup/harness-step-readiness-server.d.ts.map +1 -0
- package/dist/setup/harness-step-readiness-server.js +24 -0
- package/dist/setup/harness-step-readiness-server.js.map +1 -0
- package/dist/setup/harness-step-readiness.d.ts +21 -0
- package/dist/setup/harness-step-readiness.d.ts.map +1 -0
- package/dist/setup/harness-step-readiness.js +40 -0
- package/dist/setup/harness-step-readiness.js.map +1 -0
- package/dist/setup/harness-workspace-snapshot-loader.d.ts +6 -1
- package/dist/setup/harness-workspace-snapshot-loader.d.ts.map +1 -1
- package/dist/setup/harness-workspace-snapshot-loader.js +45 -12
- package/dist/setup/harness-workspace-snapshot-loader.js.map +1 -1
- package/dist/setup/initial-setup-lifecycle.d.ts +51 -0
- package/dist/setup/initial-setup-lifecycle.d.ts.map +1 -0
- package/dist/setup/initial-setup-lifecycle.js +93 -0
- package/dist/setup/initial-setup-lifecycle.js.map +1 -0
- package/dist/setup/linear-category-labels.d.ts +2 -0
- package/dist/setup/linear-category-labels.d.ts.map +1 -0
- package/dist/setup/linear-category-labels.js +19 -0
- package/dist/setup/linear-category-labels.js.map +1 -0
- package/dist/setup/linear-setup-apply.d.ts +1 -0
- package/dist/setup/linear-setup-apply.d.ts.map +1 -1
- package/dist/setup/linear-setup-apply.js +67 -16
- package/dist/setup/linear-setup-apply.js.map +1 -1
- package/dist/setup/linear-setup-client.d.ts +24 -0
- package/dist/setup/linear-setup-client.d.ts.map +1 -1
- package/dist/setup/linear-setup-client.js +61 -0
- package/dist/setup/linear-setup-client.js.map +1 -1
- package/dist/setup/linear-setup-plan.d.ts +22 -1
- package/dist/setup/linear-setup-plan.d.ts.map +1 -1
- package/dist/setup/linear-setup-plan.js +69 -6
- package/dist/setup/linear-setup-plan.js.map +1 -1
- package/dist/setup/linear-setup-progress.d.ts +30 -0
- package/dist/setup/linear-setup-progress.d.ts.map +1 -0
- package/dist/setup/linear-setup-progress.js +71 -0
- package/dist/setup/linear-setup-progress.js.map +1 -0
- package/dist/setup/linear-status-contract.d.ts +2 -1
- package/dist/setup/linear-status-contract.d.ts.map +1 -1
- package/dist/setup/linear-status-contract.js +26 -67
- package/dist/setup/linear-status-contract.js.map +1 -1
- package/dist/setup/linear-workflow-status-repair.d.ts +36 -0
- package/dist/setup/linear-workflow-status-repair.d.ts.map +1 -0
- package/dist/setup/linear-workflow-status-repair.js +187 -0
- package/dist/setup/linear-workflow-status-repair.js.map +1 -0
- package/dist/setup/linear-workspace-apply.d.ts +25 -0
- package/dist/setup/linear-workspace-apply.d.ts.map +1 -0
- package/dist/setup/linear-workspace-apply.js +212 -0
- package/dist/setup/linear-workspace-apply.js.map +1 -0
- package/dist/setup/linear-workspace-drift.d.ts +2 -0
- package/dist/setup/linear-workspace-drift.d.ts.map +1 -0
- package/dist/setup/linear-workspace-drift.js +2 -0
- package/dist/setup/linear-workspace-drift.js.map +1 -0
- package/dist/setup/linear-workspace-migration.d.ts +43 -0
- package/dist/setup/linear-workspace-migration.d.ts.map +1 -0
- package/dist/setup/linear-workspace-migration.js +212 -0
- package/dist/setup/linear-workspace-migration.js.map +1 -0
- package/dist/setup/linear-workspace-plan.d.ts +92 -0
- package/dist/setup/linear-workspace-plan.d.ts.map +1 -0
- package/dist/setup/linear-workspace-plan.js +283 -0
- package/dist/setup/linear-workspace-plan.js.map +1 -0
- package/dist/setup/local-readiness-checks.d.ts +17 -0
- package/dist/setup/local-readiness-checks.d.ts.map +1 -1
- package/dist/setup/local-readiness-checks.js +86 -23
- package/dist/setup/local-readiness-checks.js.map +1 -1
- package/dist/setup/mock-target-workflow-finalization.d.ts.map +1 -1
- package/dist/setup/mock-target-workflow-finalization.js +27 -4
- package/dist/setup/mock-target-workflow-finalization.js.map +1 -1
- package/dist/setup/packaged-default-route.d.ts +15 -0
- package/dist/setup/packaged-default-route.d.ts.map +1 -0
- package/dist/setup/packaged-default-route.js +17 -0
- package/dist/setup/packaged-default-route.js.map +1 -0
- package/dist/setup/release-sync-managed-runner.d.ts +61 -0
- package/dist/setup/release-sync-managed-runner.d.ts.map +1 -0
- package/dist/setup/release-sync-managed-runner.js +364 -0
- package/dist/setup/release-sync-managed-runner.js.map +1 -0
- package/dist/setup/remote-apply-actions.d.ts.map +1 -1
- package/dist/setup/remote-apply-actions.js +23 -0
- package/dist/setup/remote-apply-actions.js.map +1 -1
- package/dist/setup/runner-upgrade-canary-dispatch.d.ts +19 -0
- package/dist/setup/runner-upgrade-canary-dispatch.d.ts.map +1 -0
- package/dist/setup/runner-upgrade-canary-dispatch.js +38 -0
- package/dist/setup/runner-upgrade-canary-dispatch.js.map +1 -0
- package/dist/setup/runner-upgrade-canary.d.ts +23 -0
- package/dist/setup/runner-upgrade-canary.d.ts.map +1 -0
- package/dist/setup/runner-upgrade-canary.js +146 -0
- package/dist/setup/runner-upgrade-canary.js.map +1 -0
- package/dist/setup/runner-upgrade-evidence.d.ts +14 -0
- package/dist/setup/runner-upgrade-evidence.d.ts.map +1 -0
- package/dist/setup/runner-upgrade-evidence.js +9 -0
- package/dist/setup/runner-upgrade-evidence.js.map +1 -0
- package/dist/setup/runner-upgrade-pending-state.d.ts +30 -0
- package/dist/setup/runner-upgrade-pending-state.d.ts.map +1 -0
- package/dist/setup/runner-upgrade-pending-state.js +75 -0
- package/dist/setup/runner-upgrade-pending-state.js.map +1 -0
- package/dist/setup/runner-upgrade-progress.d.ts +38 -0
- package/dist/setup/runner-upgrade-progress.d.ts.map +1 -0
- package/dist/setup/runner-upgrade-progress.js +95 -0
- package/dist/setup/runner-upgrade-progress.js.map +1 -0
- package/dist/setup/runner-upgrade-provider-live.d.ts +5 -0
- package/dist/setup/runner-upgrade-provider-live.d.ts.map +1 -0
- package/dist/setup/runner-upgrade-provider-live.js +338 -0
- package/dist/setup/runner-upgrade-provider-live.js.map +1 -0
- package/dist/setup/runner-upgrade-provider.d.ts +231 -0
- package/dist/setup/runner-upgrade-provider.d.ts.map +1 -0
- package/dist/setup/runner-upgrade-provider.js +466 -0
- package/dist/setup/runner-upgrade-provider.js.map +1 -0
- package/dist/setup/runner-upgrade-status-cache.d.ts +13 -0
- package/dist/setup/runner-upgrade-status-cache.d.ts.map +1 -0
- package/dist/setup/runner-upgrade-status-cache.js +39 -0
- package/dist/setup/runner-upgrade-status-cache.js.map +1 -0
- package/dist/setup/runner-upgrade-three-way.d.ts +28 -0
- package/dist/setup/runner-upgrade-three-way.d.ts.map +1 -0
- package/dist/setup/runner-upgrade-three-way.js +102 -0
- package/dist/setup/runner-upgrade-three-way.js.map +1 -0
- package/dist/setup/runner-upgrade-timeouts.d.ts +72 -0
- package/dist/setup/runner-upgrade-timeouts.d.ts.map +1 -0
- package/dist/setup/runner-upgrade-timeouts.js +261 -0
- package/dist/setup/runner-upgrade-timeouts.js.map +1 -0
- package/dist/setup/runner-upgrade-types.d.ts +84 -0
- package/dist/setup/runner-upgrade-types.d.ts.map +1 -0
- package/dist/setup/runner-upgrade-types.js +64 -0
- package/dist/setup/runner-upgrade-types.js.map +1 -0
- package/dist/setup/runner-upgrade-worker.d.ts +17 -0
- package/dist/setup/runner-upgrade-worker.d.ts.map +1 -0
- package/dist/setup/runner-upgrade-worker.js +115 -0
- package/dist/setup/runner-upgrade-worker.js.map +1 -0
- package/dist/setup/runner-upgrade.d.ts +57 -0
- package/dist/setup/runner-upgrade.d.ts.map +1 -0
- package/dist/setup/runner-upgrade.js +1311 -0
- package/dist/setup/runner-upgrade.js.map +1 -0
- package/dist/setup/service-verification.d.ts +18 -1
- package/dist/setup/service-verification.d.ts.map +1 -1
- package/dist/setup/service-verification.js +110 -19
- package/dist/setup/service-verification.js.map +1 -1
- package/dist/setup/settings-config-patch.d.ts +69 -0
- package/dist/setup/settings-config-patch.d.ts.map +1 -0
- package/dist/setup/settings-config-patch.js +312 -0
- package/dist/setup/settings-config-patch.js.map +1 -0
- package/dist/setup/setup-state.d.ts +1 -0
- package/dist/setup/setup-state.d.ts.map +1 -1
- package/dist/setup/setup-state.js +11 -1
- package/dist/setup/setup-state.js.map +1 -1
- package/dist/setup/step6-automatic-control-state.d.ts +21 -0
- package/dist/setup/step6-automatic-control-state.d.ts.map +1 -0
- package/dist/setup/step6-automatic-control-state.js +28 -0
- package/dist/setup/step6-automatic-control-state.js.map +1 -0
- package/dist/setup/sync-harness-config-cloud.d.ts +23 -0
- package/dist/setup/sync-harness-config-cloud.d.ts.map +1 -0
- package/dist/setup/sync-harness-config-cloud.js +91 -0
- package/dist/setup/sync-harness-config-cloud.js.map +1 -0
- package/dist/setup/target-repo-provisioning-pending-state.d.ts +42 -0
- package/dist/setup/target-repo-provisioning-pending-state.d.ts.map +1 -0
- package/dist/setup/target-repo-provisioning-pending-state.js +95 -0
- package/dist/setup/target-repo-provisioning-pending-state.js.map +1 -0
- package/dist/setup/target-repo-provisioning.d.ts +67 -0
- package/dist/setup/target-repo-provisioning.d.ts.map +1 -0
- package/dist/setup/target-repo-provisioning.js +473 -0
- package/dist/setup/target-repo-provisioning.js.map +1 -0
- package/dist/setup/target-workflow-finalization-progress.d.ts +43 -0
- package/dist/setup/target-workflow-finalization-progress.d.ts.map +1 -0
- package/dist/setup/target-workflow-finalization-progress.js +83 -0
- package/dist/setup/target-workflow-finalization-progress.js.map +1 -0
- package/dist/setup/target-workflow-finalization-types.d.ts +21 -1
- package/dist/setup/target-workflow-finalization-types.d.ts.map +1 -1
- package/dist/setup/target-workflow-finalization-types.js +75 -0
- package/dist/setup/target-workflow-finalization-types.js.map +1 -1
- package/dist/setup/target-workflow-finalization.d.ts.map +1 -1
- package/dist/setup/target-workflow-finalization.js +618 -15
- package/dist/setup/target-workflow-finalization.js.map +1 -1
- package/dist/setup/target-workflow-setup.d.ts.map +1 -1
- package/dist/setup/target-workflow-setup.js +2 -0
- package/dist/setup/target-workflow-setup.js.map +1 -1
- package/dist/setup/test-only-runner-upgrade-provider.d.ts +11 -0
- package/dist/setup/test-only-runner-upgrade-provider.d.ts.map +1 -0
- package/dist/setup/test-only-runner-upgrade-provider.js +37 -0
- package/dist/setup/test-only-runner-upgrade-provider.js.map +1 -0
- package/dist/setup/test-only-target-repo-provisioning-provider.d.ts +7 -0
- package/dist/setup/test-only-target-repo-provisioning-provider.d.ts.map +1 -0
- package/dist/setup/test-only-target-repo-provisioning-provider.js +33 -0
- package/dist/setup/test-only-target-repo-provisioning-provider.js.map +1 -0
- package/dist/setup/vercel-bridge-artifact.d.ts +7 -0
- package/dist/setup/vercel-bridge-artifact.d.ts.map +1 -0
- package/dist/setup/vercel-bridge-artifact.js +164 -0
- package/dist/setup/vercel-bridge-artifact.js.map +1 -0
- package/dist/setup/vercel-bridge-deploy.d.ts +42 -0
- package/dist/setup/vercel-bridge-deploy.d.ts.map +1 -0
- package/dist/setup/vercel-bridge-deploy.js +138 -0
- package/dist/setup/vercel-bridge-deploy.js.map +1 -0
- package/dist/setup/vercel-bridge-diagnostics.js +1 -1
- package/dist/setup/vercel-bridge-diagnostics.js.map +1 -1
- package/dist/setup/vercel-bridge-options.d.ts +2 -0
- package/dist/setup/vercel-bridge-options.d.ts.map +1 -1
- package/dist/setup/vercel-bridge-options.js +2 -0
- package/dist/setup/vercel-bridge-options.js.map +1 -1
- package/dist/setup/vercel-bridge-orchestration-summary.d.ts +13 -0
- package/dist/setup/vercel-bridge-orchestration-summary.d.ts.map +1 -0
- package/dist/setup/vercel-bridge-orchestration-summary.js +22 -0
- package/dist/setup/vercel-bridge-orchestration-summary.js.map +1 -0
- package/dist/setup/vercel-bridge-project-marker.d.ts +5 -0
- package/dist/setup/vercel-bridge-project-marker.d.ts.map +1 -0
- package/dist/setup/vercel-bridge-project-marker.js +6 -0
- package/dist/setup/vercel-bridge-project-marker.js.map +1 -0
- package/dist/setup/vercel-bridge-readiness.d.ts +1 -0
- package/dist/setup/vercel-bridge-readiness.d.ts.map +1 -1
- package/dist/setup/vercel-bridge-readiness.js +1 -1
- package/dist/setup/vercel-bridge-readiness.js.map +1 -1
- package/dist/setup/vercel-bridge-redeploy-normalize.d.ts +18 -0
- package/dist/setup/vercel-bridge-redeploy-normalize.d.ts.map +1 -0
- package/dist/setup/vercel-bridge-redeploy-normalize.js +175 -0
- package/dist/setup/vercel-bridge-redeploy-normalize.js.map +1 -0
- package/dist/setup/vercel-bridge-redeploy-poll.d.ts +7 -1
- package/dist/setup/vercel-bridge-redeploy-poll.d.ts.map +1 -1
- package/dist/setup/vercel-bridge-redeploy-poll.js +329 -166
- package/dist/setup/vercel-bridge-redeploy-poll.js.map +1 -1
- package/dist/setup/vercel-bridge-redeploy-state.d.ts.map +1 -1
- package/dist/setup/vercel-bridge-redeploy-state.js +3 -0
- package/dist/setup/vercel-bridge-redeploy-state.js.map +1 -1
- package/dist/setup/vercel-bridge-structured-log.d.ts +5 -0
- package/dist/setup/vercel-bridge-structured-log.d.ts.map +1 -1
- package/dist/setup/vercel-bridge-structured-log.js.map +1 -1
- package/dist/setup/vercel-project-name.d.ts +7 -0
- package/dist/setup/vercel-project-name.d.ts.map +1 -0
- package/dist/setup/vercel-project-name.js +26 -0
- package/dist/setup/vercel-project-name.js.map +1 -0
- package/dist/setup/vercel-setup-apply.d.ts +7 -2
- package/dist/setup/vercel-setup-apply.d.ts.map +1 -1
- package/dist/setup/vercel-setup-apply.js +315 -38
- package/dist/setup/vercel-setup-apply.js.map +1 -1
- package/dist/setup/vercel-setup-client.d.ts +26 -1
- package/dist/setup/vercel-setup-client.d.ts.map +1 -1
- package/dist/setup/vercel-setup-client.js +50 -1
- package/dist/setup/vercel-setup-client.js.map +1 -1
- package/dist/setup/vercel-setup-plan.d.ts +5 -0
- package/dist/setup/vercel-setup-plan.d.ts.map +1 -1
- package/dist/setup/vercel-setup-plan.js +65 -13
- package/dist/setup/vercel-setup-plan.js.map +1 -1
- package/dist/setup/vercel-setup-summary.d.ts +3 -0
- package/dist/setup/vercel-setup-summary.d.ts.map +1 -1
- package/dist/setup/vercel-setup-summary.js +4 -0
- package/dist/setup/vercel-setup-summary.js.map +1 -1
- package/dist/setup/workflow-config-snapshot.d.ts +8 -0
- package/dist/setup/workflow-config-snapshot.d.ts.map +1 -0
- package/dist/setup/workflow-config-snapshot.js +13 -0
- package/dist/setup/workflow-config-snapshot.js.map +1 -0
- package/dist/setup/workflow-install-branch-recovery.d.ts +116 -0
- package/dist/setup/workflow-install-branch-recovery.d.ts.map +1 -0
- package/dist/setup/workflow-install-branch-recovery.js +385 -0
- package/dist/setup/workflow-install-branch-recovery.js.map +1 -0
- package/dist/setup/workflow-install-merge-errors.d.ts +5 -2
- package/dist/setup/workflow-install-merge-errors.d.ts.map +1 -1
- package/dist/setup/workflow-install-merge-errors.js +51 -17
- package/dist/setup/workflow-install-merge-errors.js.map +1 -1
- package/dist/setup/workflow-install-merge-gate.d.ts +10 -0
- package/dist/setup/workflow-install-merge-gate.d.ts.map +1 -0
- package/dist/setup/workflow-install-merge-gate.js +21 -0
- package/dist/setup/workflow-install-merge-gate.js.map +1 -0
- package/dist/setup/workflow-model-save-queue.d.ts +16 -0
- package/dist/setup/workflow-model-save-queue.d.ts.map +1 -0
- package/dist/setup/workflow-model-save-queue.js +174 -0
- package/dist/setup/workflow-model-save-queue.js.map +1 -0
- package/dist/setup/workflow-model-sync-lock.d.ts +12 -0
- package/dist/setup/workflow-model-sync-lock.d.ts.map +1 -0
- package/dist/setup/workflow-model-sync-lock.js +79 -0
- package/dist/setup/workflow-model-sync-lock.js.map +1 -0
- package/dist/setup/workflow-model-sync.d.ts +34 -0
- package/dist/setup/workflow-model-sync.d.ts.map +1 -0
- package/dist/setup/workflow-model-sync.js +163 -0
- package/dist/setup/workflow-model-sync.js.map +1 -0
- package/dist/setup/workflow-models-sync-evidence.d.ts +12 -0
- package/dist/setup/workflow-models-sync-evidence.d.ts.map +1 -0
- package/dist/setup/workflow-models-sync-evidence.js +15 -0
- package/dist/setup/workflow-models-sync-evidence.js.map +1 -0
- package/dist/types/parsed-issue.d.ts +8 -0
- package/dist/types/parsed-issue.d.ts.map +1 -1
- package/dist/types/run.d.ts +18 -3
- package/dist/types/run.d.ts.map +1 -1
- package/dist/validate/issue.d.ts +5 -0
- package/dist/validate/issue.d.ts.map +1 -1
- package/dist/validate/issue.js +23 -3
- package/dist/validate/issue.js.map +1 -1
- package/dist/validate/types.d.ts +3 -0
- package/dist/validate/types.d.ts.map +1 -1
- package/dist/webhook/dispatch-statuses.d.ts +1 -1
- package/dist/webhook/dispatch-statuses.d.ts.map +1 -1
- package/dist/webhook/dispatch-statuses.js +4 -13
- package/dist/webhook/dispatch-statuses.js.map +1 -1
- package/dist/webhook/filter.d.ts +5 -2
- package/dist/webhook/filter.d.ts.map +1 -1
- package/dist/webhook/filter.js +15 -1
- package/dist/webhook/filter.js.map +1 -1
- package/dist/webhook/handle-linear-webhook.d.ts.map +1 -1
- package/dist/webhook/handle-linear-webhook.js +15 -1
- package/dist/webhook/handle-linear-webhook.js.map +1 -1
- package/dist/webhook/parse-linear-issue-event.d.ts +6 -0
- package/dist/webhook/parse-linear-issue-event.d.ts.map +1 -1
- package/dist/webhook/parse-linear-issue-event.js +2 -0
- package/dist/webhook/parse-linear-issue-event.js.map +1 -1
- package/dist/webhook/types.d.ts +3 -1
- package/dist/webhook/types.d.ts.map +1 -1
- package/dist/workflow/canonical-product-development-workflow.d.ts +106 -0
- package/dist/workflow/canonical-product-development-workflow.d.ts.map +1 -0
- package/dist/workflow/canonical-product-development-workflow.js +425 -0
- package/dist/workflow/canonical-product-development-workflow.js.map +1 -0
- package/dist/workflow/canonical-workflow-gate.d.ts +33 -0
- package/dist/workflow/canonical-workflow-gate.d.ts.map +1 -0
- package/dist/workflow/canonical-workflow-gate.js +164 -0
- package/dist/workflow/canonical-workflow-gate.js.map +1 -0
- package/dist/workflow/canonical-workflow-validation.d.ts +44 -0
- package/dist/workflow/canonical-workflow-validation.d.ts.map +1 -0
- package/dist/workflow/canonical-workflow-validation.js +193 -0
- package/dist/workflow/canonical-workflow-validation.js.map +1 -0
- package/dist/workflow/finalize-harness-run.d.ts +2 -0
- package/dist/workflow/finalize-harness-run.d.ts.map +1 -0
- package/dist/workflow/finalize-harness-run.js +62 -0
- package/dist/workflow/finalize-harness-run.js.map +1 -0
- package/dist/workflow/preflight-canonical.d.ts +11 -0
- package/dist/workflow/preflight-canonical.d.ts.map +1 -0
- package/dist/workflow/preflight-canonical.js +20 -0
- package/dist/workflow/preflight-canonical.js.map +1 -0
- package/dist/workflow/write-fallback-manifest.d.ts +2 -0
- package/dist/workflow/write-fallback-manifest.d.ts.map +1 -0
- package/dist/workflow/write-fallback-manifest.js +30 -0
- package/dist/workflow/write-fallback-manifest.js.map +1 -0
- package/dist/workflow-page/bootstrap.d.ts +21 -0
- package/dist/workflow-page/bootstrap.d.ts.map +1 -0
- package/dist/workflow-page/bootstrap.js +185 -0
- package/dist/workflow-page/bootstrap.js.map +1 -0
- package/dist/workflow-page/catalog-validation.d.ts +33 -0
- package/dist/workflow-page/catalog-validation.d.ts.map +1 -0
- package/dist/workflow-page/catalog-validation.js +105 -0
- package/dist/workflow-page/catalog-validation.js.map +1 -0
- package/dist/workflow-page/constants.d.ts +7 -0
- package/dist/workflow-page/constants.d.ts.map +1 -0
- package/dist/workflow-page/constants.js +18 -0
- package/dist/workflow-page/constants.js.map +1 -0
- package/dist/workflow-page/current-workflow.d.ts +18 -0
- package/dist/workflow-page/current-workflow.d.ts.map +1 -0
- package/dist/workflow-page/current-workflow.js +142 -0
- package/dist/workflow-page/current-workflow.js.map +1 -0
- package/dist/workflow-page/fingerprint.d.ts +3 -0
- package/dist/workflow-page/fingerprint.d.ts.map +1 -0
- package/dist/workflow-page/fingerprint.js +8 -0
- package/dist/workflow-page/fingerprint.js.map +1 -0
- package/dist/workflow-page/fixture-definition.d.ts +13 -0
- package/dist/workflow-page/fixture-definition.d.ts.map +1 -0
- package/dist/workflow-page/fixture-definition.js +2 -0
- package/dist/workflow-page/fixture-definition.js.map +1 -0
- package/dist/workflow-page/fixture-role-models.d.ts +19 -0
- package/dist/workflow-page/fixture-role-models.d.ts.map +1 -0
- package/dist/workflow-page/fixture-role-models.js +32 -0
- package/dist/workflow-page/fixture-role-models.js.map +1 -0
- package/dist/workflow-page/fixtures/basic-current-workflow.d.ts +5 -0
- package/dist/workflow-page/fixtures/basic-current-workflow.d.ts.map +1 -0
- package/dist/workflow-page/fixtures/basic-current-workflow.js +36 -0
- package/dist/workflow-page/fixtures/basic-current-workflow.js.map +1 -0
- package/dist/workflow-page/fixtures/branching-pr-review.d.ts +3 -0
- package/dist/workflow-page/fixtures/branching-pr-review.d.ts.map +1 -0
- package/dist/workflow-page/fixtures/branching-pr-review.js +10 -0
- package/dist/workflow-page/fixtures/branching-pr-review.js.map +1 -0
- package/dist/workflow-page/fixtures/canonical-violations.d.ts +6 -0
- package/dist/workflow-page/fixtures/canonical-violations.d.ts.map +1 -0
- package/dist/workflow-page/fixtures/canonical-violations.js +19 -0
- package/dist/workflow-page/fixtures/canonical-violations.js.map +1 -0
- package/dist/workflow-page/fixtures/credential-errors.d.ts +3 -0
- package/dist/workflow-page/fixtures/credential-errors.d.ts.map +1 -0
- package/dist/workflow-page/fixtures/credential-errors.js +12 -0
- package/dist/workflow-page/fixtures/credential-errors.js.map +1 -0
- package/dist/workflow-page/fixtures/empty-linear-statuses.d.ts +3 -0
- package/dist/workflow-page/fixtures/empty-linear-statuses.d.ts.map +1 -0
- package/dist/workflow-page/fixtures/empty-linear-statuses.js +9 -0
- package/dist/workflow-page/fixtures/empty-linear-statuses.js.map +1 -0
- package/dist/workflow-page/fixtures/hundred-node-performance.d.ts +3 -0
- package/dist/workflow-page/fixtures/hundred-node-performance.d.ts.map +1 -0
- package/dist/workflow-page/fixtures/hundred-node-performance.js +21 -0
- package/dist/workflow-page/fixtures/hundred-node-performance.js.map +1 -0
- package/dist/workflow-page/fixtures/index.d.ts +6 -0
- package/dist/workflow-page/fixtures/index.d.ts.map +1 -0
- package/dist/workflow-page/fixtures/index.js +24 -0
- package/dist/workflow-page/fixtures/index.js.map +1 -0
- package/dist/workflow-page/fixtures/model-catalog-snapshot.d.ts +10 -0
- package/dist/workflow-page/fixtures/model-catalog-snapshot.d.ts.map +1 -0
- package/dist/workflow-page/fixtures/model-catalog-snapshot.js +29 -0
- package/dist/workflow-page/fixtures/model-catalog-snapshot.js.map +1 -0
- package/dist/workflow-page/fixtures/workflow-scopes.d.ts +4 -0
- package/dist/workflow-page/fixtures/workflow-scopes.d.ts.map +1 -0
- package/dist/workflow-page/fixtures/workflow-scopes.js +16 -0
- package/dist/workflow-page/fixtures/workflow-scopes.js.map +1 -0
- package/dist/workflow-page/linear-status-source.d.ts +15 -0
- package/dist/workflow-page/linear-status-source.d.ts.map +1 -0
- package/dist/workflow-page/linear-status-source.js +44 -0
- package/dist/workflow-page/linear-status-source.js.map +1 -0
- package/dist/workflow-page/model-catalog-lookup.d.ts +3 -0
- package/dist/workflow-page/model-catalog-lookup.d.ts.map +1 -0
- package/dist/workflow-page/model-catalog-lookup.js +4 -0
- package/dist/workflow-page/model-catalog-lookup.js.map +1 -0
- package/dist/workflow-page/model-catalog-utils.d.ts +19 -0
- package/dist/workflow-page/model-catalog-utils.d.ts.map +1 -0
- package/dist/workflow-page/model-catalog-utils.js +46 -0
- package/dist/workflow-page/model-catalog-utils.js.map +1 -0
- package/dist/workflow-page/model-catalog.d.ts +12 -0
- package/dist/workflow-page/model-catalog.d.ts.map +1 -0
- package/dist/workflow-page/model-catalog.js +40 -0
- package/dist/workflow-page/model-catalog.js.map +1 -0
- package/dist/workflow-page/scope-branches.d.ts +11 -0
- package/dist/workflow-page/scope-branches.d.ts.map +1 -0
- package/dist/workflow-page/scope-branches.js +18 -0
- package/dist/workflow-page/scope-branches.js.map +1 -0
- package/dist/workflow-page/source-context.d.ts +13 -0
- package/dist/workflow-page/source-context.d.ts.map +1 -0
- package/dist/workflow-page/source-context.js +61 -0
- package/dist/workflow-page/source-context.js.map +1 -0
- package/dist/workflow-page/types.d.ts +108 -0
- package/dist/workflow-page/types.d.ts.map +1 -0
- package/dist/workflow-page/types.js +2 -0
- package/dist/workflow-page/types.js.map +1 -0
- package/dist/workflow-page/workflow-scopes.d.ts +16 -0
- package/dist/workflow-page/workflow-scopes.d.ts.map +1 -0
- package/dist/workflow-page/workflow-scopes.js +55 -0
- package/dist/workflow-page/workflow-scopes.js.map +1 -0
- package/gui/.next/BUILD_ID +1 -1
- package/gui/.next/app-build-manifest.json +376 -115
- package/gui/.next/app-path-routes-manifest.json +44 -15
- package/gui/.next/build-manifest.json +12 -12
- package/gui/.next/next-minimal-server.js.nft.json +1 -1
- package/gui/.next/next-server.js.nft.json +1 -1
- package/gui/.next/prerender-manifest.json +0 -24
- package/gui/.next/required-server-files.json +4 -3
- package/gui/.next/routes-manifest.json +54 -0
- package/gui/.next/server/app/_not-found/page.js +2 -2
- package/gui/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/gui/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/_not-found.html +1 -1
- package/gui/.next/server/app/_not-found.rsc +3 -3
- package/gui/.next/server/app/api/observability/event/route.js +1 -0
- package/gui/.next/server/app/api/observability/event/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/observability/event/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/observability/preferences/route.js +1 -0
- package/gui/.next/server/app/api/observability/preferences/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/observability/preferences/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/operations/bootstrap/route.js +1 -0
- package/gui/.next/server/app/api/operations/bootstrap/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/operations/bootstrap/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/operations/draft/route.js +1 -0
- package/gui/.next/server/app/api/operations/draft/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/operations/draft/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/settings/apply-config-patch/route.js +8 -0
- package/gui/.next/server/app/api/settings/apply-config-patch/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/settings/apply-config-patch/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/settings/preview-config-patch/route.js +8 -0
- package/gui/.next/server/app/api/settings/preview-config-patch/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/settings/preview-config-patch/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/apply-connect-services/route.js +1 -1
- package/gui/.next/server/app/api/setup/apply-connect-services/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/apply-connect-services/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/apply-harness-repo-provisioning/route.js +1 -1
- package/gui/.next/server/app/api/setup/apply-harness-repo-provisioning/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/apply-harness-repo-provisioning/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/apply-harness-secrets/route.js +1 -1
- package/gui/.next/server/app/api/setup/apply-harness-secrets/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/apply-harness-secrets/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/apply-linear-setup/route.js +1 -1
- package/gui/.next/server/app/api/setup/apply-linear-setup/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/apply-linear-setup/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/apply-linear-workspace/route.js +1 -0
- package/gui/.next/server/app/api/setup/apply-linear-workspace/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/apply-linear-workspace/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/apply-local-files/route.js +1 -1
- package/gui/.next/server/app/api/setup/apply-local-files/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/apply-local-files/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/apply-runner-upgrade/route.js +1 -0
- package/gui/.next/server/app/api/setup/apply-runner-upgrade/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/apply-runner-upgrade/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/apply-target-repo-provisioning/route.js +1 -0
- package/gui/.next/server/app/api/setup/apply-target-repo-provisioning/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/apply-target-repo-provisioning/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/apply-target-workflow/route.js +1 -1
- package/gui/.next/server/app/api/setup/apply-target-workflow/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/apply-target-workflow/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/apply-vercel-bridge/route.js +1 -1
- package/gui/.next/server/app/api/setup/apply-vercel-bridge/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/apply-vercel-bridge/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/complete-initial-setup/route.js +1 -0
- package/gui/.next/server/app/api/setup/complete-initial-setup/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/complete-initial-setup/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/finalize-target-workflow/route.js +1 -1
- package/gui/.next/server/app/api/setup/finalize-target-workflow/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/finalize-target-workflow/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/harness-provisioning-progress/route.js +1 -0
- package/gui/.next/server/app/api/setup/harness-provisioning-progress/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/harness-provisioning-progress/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/harness-provisioning-summary/route.js +1 -1
- package/gui/.next/server/app/api/setup/harness-provisioning-summary/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/harness-provisioning-summary/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/linear-options/route.js +1 -1
- package/gui/.next/server/app/api/setup/linear-options/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/linear-options/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/linear-setup-progress/route.js +1 -0
- package/gui/.next/server/app/api/setup/linear-setup-progress/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/linear-setup-progress/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/linear-summary/route.js +1 -1
- package/gui/.next/server/app/api/setup/linear-summary/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/linear-summary/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/linear-workspace-editor-state/route.js +1 -0
- package/gui/.next/server/app/api/setup/linear-workspace-editor-state/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/linear-workspace-editor-state/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/local-readiness/route.js +3 -1
- package/gui/.next/server/app/api/setup/local-readiness/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/local-readiness/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/manual-harness-secret-values/route.js +1 -1
- package/gui/.next/server/app/api/setup/manual-harness-secret-values/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/manual-harness-secret-values/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/preview-connect-services/route.js +1 -1
- package/gui/.next/server/app/api/setup/preview-connect-services/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/preview-connect-services/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/preview-harness-repo-provisioning/route.js +1 -1
- package/gui/.next/server/app/api/setup/preview-harness-repo-provisioning/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/preview-harness-repo-provisioning/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/preview-harness-secrets/route.js +1 -1
- package/gui/.next/server/app/api/setup/preview-harness-secrets/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/preview-harness-secrets/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/preview-linear-setup/route.js +1 -1
- package/gui/.next/server/app/api/setup/preview-linear-setup/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/preview-linear-setup/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/preview-linear-workspace/route.js +1 -0
- package/gui/.next/server/app/api/setup/preview-linear-workspace/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/preview-linear-workspace/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/preview-local-files/route.js +1 -1
- package/gui/.next/server/app/api/setup/preview-local-files/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/preview-local-files/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/preview-runner-upgrade/route.js +1 -0
- package/gui/.next/server/app/api/setup/preview-runner-upgrade/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/preview-runner-upgrade/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/preview-target-repo-provisioning/route.js +1 -0
- package/gui/.next/server/app/api/setup/preview-target-repo-provisioning/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/preview-target-repo-provisioning/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/preview-target-workflow/route.js +1 -1
- package/gui/.next/server/app/api/setup/preview-target-workflow/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/preview-target-workflow/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/preview-vercel-bridge/route.js +1 -1
- package/gui/.next/server/app/api/setup/preview-vercel-bridge/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/preview-vercel-bridge/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/remote-summary/route.js +1 -1
- package/gui/.next/server/app/api/setup/remote-summary/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/remote-summary/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/runner-upgrade-progress/route.js +1 -0
- package/gui/.next/server/app/api/setup/runner-upgrade-progress/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/runner-upgrade-progress/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/runner-upgrade-status/route.js +1 -0
- package/gui/.next/server/app/api/setup/runner-upgrade-status/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/setup/runner-upgrade-status/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/setup/summary/route.js +1 -1
- package/gui/.next/server/app/api/setup/summary/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/summary/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/vercel-bridge-options/route.js +1 -1
- package/gui/.next/server/app/api/setup/vercel-bridge-options/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/vercel-bridge-options/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/vercel-bridge-redeploy-status/route.js +1 -1
- package/gui/.next/server/app/api/setup/vercel-bridge-redeploy-status/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/vercel-bridge-redeploy-status/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/vercel-summary/route.js +1 -1
- package/gui/.next/server/app/api/setup/vercel-summary/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/vercel-summary/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/verify-harness-repo/route.js +1 -1
- package/gui/.next/server/app/api/setup/verify-harness-repo/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/verify-harness-repo/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/verify-service/route.js +1 -1
- package/gui/.next/server/app/api/setup/verify-service/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/verify-service/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/setup/verify-target-repo/route.js +1 -1
- package/gui/.next/server/app/api/setup/verify-target-repo/route.js.nft.json +1 -1
- package/gui/.next/server/app/api/setup/verify-target-repo/route_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/api/workflow/bootstrap/route.js +1 -0
- package/gui/.next/server/app/api/workflow/bootstrap/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/workflow/bootstrap/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/api/workflow/models/route.js +1 -0
- package/gui/.next/server/app/api/workflow/models/route.js.nft.json +1 -0
- package/gui/.next/server/app/api/workflow/models/route_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/operations/page.js +2 -0
- package/gui/.next/server/app/operations/page.js.nft.json +1 -0
- package/gui/.next/server/app/operations/page_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/page.js +3 -2
- package/gui/.next/server/app/page.js.nft.json +1 -1
- package/gui/.next/server/app/page_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/settings/(console)/connections/page.js +2 -0
- package/gui/.next/server/app/settings/(console)/connections/page.js.nft.json +1 -0
- package/gui/.next/server/app/settings/(console)/connections/page_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/settings/(console)/data-sharing/page.js +2 -0
- package/gui/.next/server/app/settings/(console)/data-sharing/page.js.nft.json +1 -0
- package/gui/.next/server/app/settings/(console)/data-sharing/page_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/settings/(console)/deployments/page.js +2 -0
- package/gui/.next/server/app/settings/(console)/deployments/page.js.nft.json +1 -0
- package/gui/.next/server/app/settings/(console)/deployments/page_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/settings/(console)/linear/page.js +10 -0
- package/gui/.next/server/app/settings/(console)/linear/page.js.nft.json +1 -0
- package/gui/.next/server/app/settings/(console)/linear/page_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/settings/(console)/models/page.js +2 -0
- package/gui/.next/server/app/settings/(console)/models/page.js.nft.json +1 -0
- package/gui/.next/server/app/settings/(console)/models/page_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/settings/(console)/page.js +2 -0
- package/gui/.next/server/app/settings/(console)/page.js.nft.json +1 -0
- package/gui/.next/server/app/settings/(console)/page_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/settings/(console)/repositories/page.js +6 -0
- package/gui/.next/server/app/settings/(console)/repositories/page.js.nft.json +1 -0
- package/gui/.next/server/app/settings/(console)/repositories/page_client-reference-manifest.js +1 -0
- package/gui/.next/server/app/settings/configure/page.js +4 -4
- package/gui/.next/server/app/settings/configure/page.js.nft.json +1 -1
- package/gui/.next/server/app/settings/configure/page_client-reference-manifest.js +1 -1
- package/gui/.next/server/app/workflow/page.js +2 -0
- package/gui/.next/server/app/workflow/page.js.nft.json +1 -0
- package/gui/.next/server/app/workflow/page_client-reference-manifest.js +1 -0
- package/gui/.next/server/app-paths-manifest.json +44 -15
- package/gui/.next/server/chunks/105.js +2 -0
- package/gui/.next/server/chunks/1304.js +200 -0
- package/gui/.next/server/chunks/1536.js +1 -0
- package/gui/.next/server/chunks/1948.js +59 -0
- package/gui/.next/server/chunks/2470.js +3 -0
- package/gui/.next/server/chunks/2581.js +2 -0
- package/gui/.next/server/chunks/383.js +1 -1
- package/gui/.next/server/chunks/521.js +1 -0
- package/gui/.next/server/chunks/553.js +1 -0
- package/gui/.next/server/chunks/5827.js +1 -0
- package/gui/.next/server/chunks/6408.js +1 -0
- package/gui/.next/server/chunks/641.js +1 -0
- package/gui/.next/server/chunks/6482.js +1 -0
- package/gui/.next/server/chunks/6801.js +1 -0
- package/gui/.next/server/chunks/6890.js +1 -0
- package/gui/.next/server/chunks/7201.js +1 -0
- package/gui/.next/server/chunks/7221.js +1 -0
- package/gui/.next/server/chunks/{332.js → 7332.js} +1 -1
- package/gui/.next/server/chunks/7527.js +1 -0
- package/gui/.next/server/chunks/8312.js +1 -0
- package/gui/.next/server/chunks/8476.js +8 -0
- package/gui/.next/server/chunks/8764.js +16 -0
- package/gui/.next/server/chunks/8819.js +22 -0
- package/gui/.next/server/chunks/8825.js +1 -0
- package/gui/.next/server/chunks/9148.js +1 -0
- package/gui/.next/server/chunks/9454.js +1 -0
- package/gui/.next/server/instrumentation.js +1 -0
- package/gui/.next/server/instrumentation.js.nft.json +1 -0
- package/gui/.next/server/middleware-build-manifest.js +1 -1
- package/gui/.next/server/pages/404.html +1 -1
- package/gui/.next/server/pages/500.html +1 -1
- package/gui/.next/server/pages/_document.js +1 -1
- package/gui/.next/server/pages/_document.js.nft.json +1 -1
- package/gui/.next/server/pages/_error.js +2 -2
- package/gui/.next/server/pages/_error.js.nft.json +1 -1
- package/gui/.next/server/pages-manifest.json +1 -1
- package/gui/.next/server/webpack-runtime.js +1 -1
- package/gui/.next/static/chunks/3800-379a4b854a7eb1dc.js +1 -0
- package/gui/.next/static/chunks/464-7503c96bb839c213.js +1 -0
- package/gui/.next/static/chunks/5567-672d065d2668f1ea.js +1 -0
- package/gui/.next/static/chunks/6240-d3f8028539091853.js +1 -0
- package/gui/.next/static/chunks/7420-cb03f2f94db611c4.js +1 -0
- package/gui/.next/static/chunks/8002-528c2e589bc54111.js +1 -0
- package/gui/.next/static/chunks/9188-540635591aa2baf5.js +1 -0
- package/gui/.next/static/chunks/9289-00509b3e0c520cce.js +1 -0
- package/gui/.next/static/chunks/9576-6d94e3d152f876e7.js +1 -0
- package/gui/.next/static/chunks/app/_not-found/page-89865576110e31f0.js +1 -0
- package/gui/.next/static/chunks/app/api/observability/event/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/observability/preferences/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/operations/bootstrap/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/operations/draft/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/settings/apply-config-patch/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/settings/preview-config-patch/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-connect-services/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-harness-repo-provisioning/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-harness-secrets/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-linear-setup/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-linear-workspace/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-local-files/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-runner-upgrade/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-target-repo-provisioning/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-target-workflow/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/apply-vercel-bridge/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/complete-initial-setup/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/finalize-target-workflow/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/harness-provisioning-progress/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/harness-provisioning-summary/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/linear-options/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/linear-setup-progress/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/linear-summary/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/linear-workspace-editor-state/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/local-readiness/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/manual-harness-secret-values/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-connect-services/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-harness-repo-provisioning/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-harness-secrets/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-linear-setup/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-linear-workspace/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-local-files/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-runner-upgrade/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-target-repo-provisioning/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-target-workflow/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/preview-vercel-bridge/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/remote-summary/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/runner-upgrade-progress/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/runner-upgrade-status/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/summary/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/vercel-bridge-options/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/vercel-bridge-redeploy-status/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/vercel-summary/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/verify-harness-repo/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/verify-service/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/setup/verify-target-repo/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/workflow/bootstrap/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/api/workflow/models/route-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/layout-ec756afb9686f579.js +1 -0
- package/gui/.next/static/chunks/app/operations/page-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/page-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/settings/(console)/connections/page-95847d89fc70089a.js +1 -0
- package/gui/.next/static/chunks/app/settings/(console)/data-sharing/page-3e0d8fe941c7334e.js +1 -0
- package/gui/.next/static/chunks/app/settings/(console)/deployments/page-e3aaff205f09b567.js +1 -0
- package/gui/.next/static/chunks/app/settings/(console)/layout-74ce539ae02dc765.js +1 -0
- package/gui/.next/static/chunks/app/settings/(console)/linear/page-0a1e73b5ec66af90.js +1 -0
- package/gui/.next/static/chunks/app/settings/(console)/models/page-336406c2905983c9.js +1 -0
- package/gui/.next/static/chunks/app/settings/(console)/page-08ffe80f6f4603f6.js +1 -0
- package/gui/.next/static/chunks/app/settings/(console)/repositories/page-b1f7159c7771b16a.js +1 -0
- package/gui/.next/static/chunks/app/settings/configure/loading-5f1e73b910fbd9da.js +1 -0
- package/gui/.next/static/chunks/app/settings/configure/page-54b7572655b9f60f.js +1 -0
- package/gui/.next/static/chunks/app/workflow/page-8087b342a6ece93c.js +1 -0
- package/gui/.next/static/chunks/framework-dc88dc15d5e043e1.js +1 -0
- package/gui/.next/static/chunks/main-5b390d9aaa7199a5.js +1 -0
- package/gui/.next/static/chunks/main-app-7fbf1b54aaed0242.js +1 -0
- package/gui/.next/static/chunks/pages/{_app-2e239ff05bfdf6d6.js → _app-50fa07b56b2d29ac.js} +1 -1
- package/gui/.next/static/chunks/pages/_error-fed8688bdd23f211.js +1 -0
- package/gui/.next/static/chunks/{webpack-1e50074b7e886e1b.js → webpack-b27d2f88ec3d35a4.js} +1 -1
- package/gui/.next/static/css/b7b323a34ac09e0b.css +3 -0
- package/gui/.next/static/wM7YWpWgyTcGc7H5h1u7U/_buildManifest.js +1 -0
- package/gui/.next/trace +6 -4
- package/gui/.next/types/app/api/observability/event/route.ts +347 -0
- package/gui/.next/types/app/api/observability/preferences/route.ts +347 -0
- package/gui/.next/types/app/api/operations/bootstrap/route.ts +347 -0
- package/gui/.next/types/app/api/operations/draft/route.ts +347 -0
- package/gui/.next/types/app/api/settings/apply-config-patch/route.ts +347 -0
- package/gui/.next/types/app/api/settings/preview-config-patch/route.ts +347 -0
- package/gui/.next/types/app/api/setup/apply-linear-workspace/route.ts +347 -0
- package/gui/.next/types/app/api/setup/apply-runner-upgrade/route.ts +347 -0
- package/gui/.next/types/app/api/setup/apply-target-repo-provisioning/route.ts +347 -0
- package/gui/.next/types/app/api/setup/complete-initial-setup/route.ts +347 -0
- package/gui/.next/types/app/api/setup/harness-provisioning-progress/route.ts +347 -0
- package/gui/.next/types/app/api/setup/linear-setup-progress/route.ts +347 -0
- package/gui/.next/types/app/api/setup/linear-workspace-editor-state/route.ts +347 -0
- package/gui/.next/types/app/api/setup/preview-linear-workspace/route.ts +347 -0
- package/gui/.next/types/app/api/setup/preview-runner-upgrade/route.ts +347 -0
- package/gui/.next/types/app/api/setup/preview-target-repo-provisioning/route.ts +347 -0
- package/gui/.next/types/app/api/setup/runner-upgrade-progress/route.ts +347 -0
- package/gui/.next/types/app/api/setup/runner-upgrade-status/route.ts +347 -0
- package/gui/.next/types/app/api/workflow/bootstrap/route.ts +347 -0
- package/gui/.next/types/app/api/workflow/models/route.ts +347 -0
- package/gui/.next/types/app/operations/page.ts +84 -0
- package/gui/.next/types/app/settings/(console)/connections/page.ts +84 -0
- package/gui/.next/types/app/settings/(console)/data-sharing/page.ts +84 -0
- package/gui/.next/types/app/settings/(console)/deployments/page.ts +84 -0
- package/gui/.next/types/app/settings/(console)/layout.ts +84 -0
- package/gui/.next/types/app/settings/(console)/linear/page.ts +84 -0
- package/gui/.next/types/app/settings/(console)/models/page.ts +84 -0
- package/gui/.next/types/app/settings/(console)/page.ts +84 -0
- package/gui/.next/types/app/settings/(console)/repositories/page.ts +84 -0
- package/gui/.next/types/app/workflow/page.ts +84 -0
- package/gui/.next/types/routes.d.ts +33 -3
- package/gui/.next/types/validator.ts +270 -0
- package/observability.public.json +6 -0
- package/package.json +5 -1
- package/templates/.harness/config.example.json +1 -0
- package/workspace-snapshot/files/.agents/skills/implementation/SKILL.md +4 -0
- package/workspace-snapshot/files/.agents/skills/issue-intake/SKILL.md +13 -1
- package/workspace-snapshot/files/.agents/skills/planner/SKILL.md +10 -0
- package/workspace-snapshot/files/.github/workflows/harness-auto-runner.yml +38 -11
- package/workspace-snapshot/files/.github/workflows/p-dev-runner-config-canary.yml +24 -0
- package/workspace-snapshot/files/.harness/config.example.json +1 -0
- package/workspace-snapshot/files/AGENTS.md +13 -2
- package/workspace-snapshot/files/ARCHITECTURE.md +23 -6
- package/workspace-snapshot/files/CHANGELOG.md +50 -5
- package/workspace-snapshot/files/README.md +10 -4
- package/workspace-snapshot/files/ROADMAP.md +10 -1
- package/workspace-snapshot/files/apps/gui/app/api/observability/event/route.ts +36 -0
- package/workspace-snapshot/files/apps/gui/app/api/observability/preferences/route.ts +88 -0
- package/workspace-snapshot/files/apps/gui/app/api/operations/bootstrap/route.ts +8 -0
- package/workspace-snapshot/files/apps/gui/app/api/operations/draft/route.ts +15 -0
- package/workspace-snapshot/files/apps/gui/app/api/settings/apply-config-patch/route.ts +52 -0
- package/workspace-snapshot/files/apps/gui/app/api/settings/preview-config-patch/route.ts +40 -0
- package/workspace-snapshot/files/apps/gui/app/api/setup/apply-harness-repo-provisioning/route.ts +6 -5
- package/workspace-snapshot/files/apps/gui/app/api/setup/apply-linear-workspace/route.ts +23 -0
- package/workspace-snapshot/files/apps/gui/app/api/setup/apply-runner-upgrade/route.ts +33 -0
- package/workspace-snapshot/files/apps/gui/app/api/setup/apply-target-repo-provisioning/route.ts +38 -0
- package/workspace-snapshot/files/apps/gui/app/api/setup/apply-vercel-bridge/route.ts +7 -1
- package/workspace-snapshot/files/apps/gui/app/api/setup/complete-initial-setup/route.ts +49 -0
- package/workspace-snapshot/files/apps/gui/app/api/setup/harness-provisioning-progress/route.ts +21 -0
- package/workspace-snapshot/files/apps/gui/app/api/setup/linear-setup-progress/route.ts +17 -0
- package/workspace-snapshot/files/apps/gui/app/api/setup/linear-workspace-editor-state/route.ts +17 -0
- package/workspace-snapshot/files/apps/gui/app/api/setup/local-readiness/route.ts +52 -13
- package/workspace-snapshot/files/apps/gui/app/api/setup/preview-linear-workspace/route.ts +22 -0
- package/workspace-snapshot/files/apps/gui/app/api/setup/preview-runner-upgrade/route.ts +17 -0
- package/workspace-snapshot/files/apps/gui/app/api/setup/preview-target-repo-provisioning/route.ts +34 -0
- package/workspace-snapshot/files/apps/gui/app/api/setup/runner-upgrade-progress/route.ts +17 -0
- package/workspace-snapshot/files/apps/gui/app/api/setup/runner-upgrade-status/route.ts +72 -0
- package/workspace-snapshot/files/apps/gui/app/api/setup/verify-service/route.ts +2 -2
- package/workspace-snapshot/files/apps/gui/app/api/setup/verify-target-repo/route.ts +9 -2
- package/workspace-snapshot/files/apps/gui/app/api/workflow/bootstrap/route.ts +24 -0
- package/workspace-snapshot/files/apps/gui/app/api/workflow/models/route.ts +86 -0
- package/workspace-snapshot/files/apps/gui/app/operations/page.tsx +23 -0
- package/workspace-snapshot/files/apps/gui/app/page.tsx +8 -2
- package/workspace-snapshot/files/apps/gui/app/settings/(console)/connections/page.tsx +27 -0
- package/workspace-snapshot/files/apps/gui/app/settings/(console)/data-sharing/page.tsx +25 -0
- package/workspace-snapshot/files/apps/gui/app/settings/(console)/deployments/page.tsx +28 -0
- package/workspace-snapshot/files/apps/gui/app/settings/(console)/layout.tsx +45 -0
- package/workspace-snapshot/files/apps/gui/app/settings/(console)/linear/page.tsx +20 -0
- package/workspace-snapshot/files/apps/gui/app/settings/(console)/models/page.tsx +14 -0
- package/workspace-snapshot/files/apps/gui/app/settings/(console)/page.tsx +7 -0
- package/workspace-snapshot/files/apps/gui/app/settings/(console)/repositories/page.tsx +29 -0
- package/workspace-snapshot/files/apps/gui/app/settings/configure/loading.tsx +25 -0
- package/workspace-snapshot/files/apps/gui/app/settings/configure/page.tsx +76 -7
- package/workspace-snapshot/files/apps/gui/app/workflow/page.tsx +24 -0
- package/workspace-snapshot/files/apps/gui/components/custom/app-shell.tsx +26 -32
- package/workspace-snapshot/files/apps/gui/components/custom/application-header.tsx +64 -0
- package/workspace-snapshot/files/apps/gui/components/custom/configure-experience.tsx +347 -85
- package/workspace-snapshot/files/apps/gui/components/custom/configure-page-content.tsx +15 -0
- package/workspace-snapshot/files/apps/gui/components/custom/configure-workflow.tsx +675 -112
- package/workspace-snapshot/files/apps/gui/components/custom/data-sharing-preferences.tsx +159 -0
- package/workspace-snapshot/files/apps/gui/components/custom/environment-config-form.tsx +31 -13
- package/workspace-snapshot/files/apps/gui/components/custom/guided-cloud-secrets-card.tsx +99 -46
- package/workspace-snapshot/files/apps/gui/components/custom/guided-linear-workspace-card.tsx +974 -148
- package/workspace-snapshot/files/apps/gui/components/custom/guided-local-readiness-card.tsx +153 -35
- package/workspace-snapshot/files/apps/gui/components/custom/guided-operation-panel.tsx +102 -0
- package/workspace-snapshot/files/apps/gui/components/custom/guided-progress-check.tsx +37 -0
- package/workspace-snapshot/files/apps/gui/components/custom/guided-setup-progress.tsx +114 -0
- package/workspace-snapshot/files/apps/gui/components/custom/guided-step-success-panel.tsx +50 -0
- package/workspace-snapshot/files/apps/gui/components/custom/guided-step-transition.tsx +81 -27
- package/workspace-snapshot/files/apps/gui/components/custom/guided-target-workflow-card.tsx +267 -60
- package/workspace-snapshot/files/apps/gui/components/custom/guided-vercel-bridge-card.tsx +341 -179
- package/workspace-snapshot/files/apps/gui/components/custom/observability-settings-card.tsx +23 -0
- package/workspace-snapshot/files/apps/gui/components/custom/remote-action-confirmation.tsx +13 -11
- package/workspace-snapshot/files/apps/gui/components/custom/review-workflow-changes-disclosure.tsx +59 -0
- package/workspace-snapshot/files/apps/gui/components/custom/settings-menu.tsx +109 -0
- package/workspace-snapshot/files/apps/gui/components/custom/setup-checklist.tsx +47 -29
- package/workspace-snapshot/files/apps/gui/components/custom/target-repo-config-form.tsx +22 -2
- package/workspace-snapshot/files/apps/gui/components/custom/target-repo-create-connect.tsx +419 -0
- package/workspace-snapshot/files/apps/gui/components/custom/target-workflow-pr-card.tsx +105 -43
- package/workspace-snapshot/files/apps/gui/components/custom/theme-toggle.tsx +3 -11
- package/workspace-snapshot/files/apps/gui/components/custom/vercel-bridge-orchestration-status.tsx +65 -0
- package/workspace-snapshot/files/apps/gui/components/custom/workflow-install-pending-panel.tsx +125 -53
- package/workspace-snapshot/files/apps/gui/components/settings/editors/connections-settings-editor.tsx +261 -0
- package/workspace-snapshot/files/apps/gui/components/settings/editors/deployments-settings-editor.tsx +397 -0
- package/workspace-snapshot/files/apps/gui/components/settings/editors/linear-settings-editor.tsx +512 -0
- package/workspace-snapshot/files/apps/gui/components/settings/editors/repositories-settings-editor.tsx +749 -0
- package/workspace-snapshot/files/apps/gui/components/settings/editors/runner-upgrade-settings-card.tsx +533 -0
- package/workspace-snapshot/files/apps/gui/components/settings/settings-models-client.tsx +102 -0
- package/workspace-snapshot/files/apps/gui/components/settings/settings-mutation-panel.tsx +125 -0
- package/workspace-snapshot/files/apps/gui/components/settings/settings-shell.tsx +46 -0
- package/workspace-snapshot/files/apps/gui/components/ui/dropdown-menu.tsx +257 -0
- package/workspace-snapshot/files/apps/gui/components/ui/guided-select.tsx +22 -0
- package/workspace-snapshot/files/apps/gui/components/workflow/workflow-cards-section.tsx +206 -0
- package/workspace-snapshot/files/apps/gui/components/workflow/workflow-health-panel.tsx +43 -0
- package/workspace-snapshot/files/apps/gui/components/workflow/workflow-model-control.tsx +111 -0
- package/workspace-snapshot/files/apps/gui/components/workflow/workflow-page-client.tsx +161 -0
- package/workspace-snapshot/files/apps/gui/components/workflow/workflow-scope-selector.tsx +41 -0
- package/workspace-snapshot/files/apps/gui/instrumentation.ts +136 -0
- package/workspace-snapshot/files/apps/gui/lib/configure-navigation-timing.ts +53 -0
- package/workspace-snapshot/files/apps/gui/lib/constants/form.ts +5 -0
- package/workspace-snapshot/files/apps/gui/lib/constants/layout.ts +10 -3
- package/workspace-snapshot/files/apps/gui/lib/guided-setup.ts +222 -0
- package/workspace-snapshot/files/apps/gui/lib/linear-association-draft.ts +93 -0
- package/workspace-snapshot/files/apps/gui/lib/local-readiness-visual-queue.ts +61 -0
- package/workspace-snapshot/files/apps/gui/lib/observability-client.ts +21 -0
- package/workspace-snapshot/files/apps/gui/lib/observability-preferences.ts +19 -0
- package/workspace-snapshot/files/apps/gui/lib/observability-request-guard.ts +136 -0
- package/workspace-snapshot/files/apps/gui/lib/observability-route.ts +75 -0
- package/workspace-snapshot/files/apps/gui/lib/settings/load-harness-config-summary.ts +20 -0
- package/workspace-snapshot/files/apps/gui/lib/settings/load-repositories-overview.ts +37 -0
- package/workspace-snapshot/files/apps/gui/lib/settings/load-settings-editor-data.ts +51 -0
- package/workspace-snapshot/files/apps/gui/lib/settings/load-target-repo-overview-fields.ts +124 -0
- package/workspace-snapshot/files/apps/gui/lib/settings/runner-upgrade-feature-flag.ts +9 -0
- package/workspace-snapshot/files/apps/gui/lib/settings/runner-upgrade-ssr.ts +13 -0
- package/workspace-snapshot/files/apps/gui/lib/settings/runner-upgrade-ui-gates.ts +87 -0
- package/workspace-snapshot/files/apps/gui/lib/settings/settings-mutation.ts +49 -0
- package/workspace-snapshot/files/apps/gui/lib/settings/settings-navigation.ts +10 -0
- package/workspace-snapshot/files/apps/gui/lib/settings/settings-setup-client.ts +312 -0
- package/workspace-snapshot/files/apps/gui/lib/setup-server.ts +608 -17
- package/workspace-snapshot/files/apps/gui/lib/use-theme-toggle.ts +26 -0
- package/workspace-snapshot/files/apps/gui/lib/vercel-bridge-polling-ui.ts +88 -1
- package/workspace-snapshot/files/apps/gui/lib/verification-state.ts +97 -1
- package/workspace-snapshot/files/apps/gui/lib/workflow/api-client.ts +84 -0
- package/workspace-snapshot/files/apps/gui/lib/workflow/use-model-autosave.ts +90 -0
- package/workspace-snapshot/files/apps/gui/lib/workflow/use-workflow-model-save.ts +265 -0
- package/workspace-snapshot/files/apps/gui/lib/workflow/workflow-health.ts +53 -0
- package/workspace-snapshot/files/apps/gui/lib/workflow/workflow-ownership.ts +47 -0
- package/workspace-snapshot/files/apps/gui/lib/workflow/workflow-status-content.ts +149 -0
- package/workspace-snapshot/files/apps/gui/lib/workflow/workflow-violation-messages.ts +49 -0
- package/workspace-snapshot/files/apps/gui/lib/workflow-server.ts +307 -0
- package/workspace-snapshot/files/apps/gui/next.config.ts +8 -3
- package/workspace-snapshot/files/docs/architecture/canonical-product-development-workflow.md +70 -0
- package/workspace-snapshot/files/docs/architecture/linear-automation-state-machine.md +26 -10
- package/workspace-snapshot/files/docs/design/product-development-harness-gui.md +0 -1
- package/workspace-snapshot/files/docs/getting-started.md +2 -2
- package/workspace-snapshot/files/docs/gui-local.md +3 -3
- package/workspace-snapshot/files/docs/gui-remote-setup.md +2 -2
- package/workspace-snapshot/files/docs/issue-intake.md +12 -0
- package/workspace-snapshot/files/docs/observability-and-privacy.md +247 -0
- package/workspace-snapshot/files/docs/operator-config.md +16 -1
- package/workspace-snapshot/files/docs/p-dev.md +43 -9
- package/workspace-snapshot/files/docs/releases/release-process.md +135 -7
- package/workspace-snapshot/files/docs/releases/v0.3.1.md +42 -6
- package/workspace-snapshot/files/docs/releases/v0.4.0.md +93 -0
- package/workspace-snapshot/files/docs/security.md +8 -0
- package/workspace-snapshot/files/docs/settings-console.md +44 -0
- package/workspace-snapshot/files/harness.config.schema.json +114 -0
- package/workspace-snapshot/files/package-lock.json +1881 -95
- package/workspace-snapshot/files/package.json +10 -2
- package/workspace-snapshot/files/packages/p-dev/README.md +12 -4
- package/workspace-snapshot/files/packages/p-dev/observability.public.json +6 -0
- package/workspace-snapshot/files/packages/p-dev/package.json +5 -1
- package/workspace-snapshot/files/prompts/issue-intake-chatgpt.md +4 -0
- package/workspace-snapshot/files/scripts/configure-browser-matrix.config.ts +40 -0
- package/workspace-snapshot/files/scripts/configure-browser-matrix.spec.ts +294 -0
- package/workspace-snapshot/files/scripts/configure-step4-harness-readiness.config.ts +118 -0
- package/workspace-snapshot/files/scripts/configure-step4-harness-readiness.spec.ts +80 -0
- package/workspace-snapshot/files/scripts/prepare-configure-browser-workspace.ts +138 -0
- package/workspace-snapshot/files/scripts/prepare-p-dev-package.ts +9 -0
- package/workspace-snapshot/files/scripts/workflow-browser-matrix.config.ts +27 -0
- package/workspace-snapshot/files/scripts/workflow-browser-matrix.spec.ts +151 -0
- package/workspace-snapshot/files/src/agents/cursor-provider.ts +12 -14
- package/workspace-snapshot/files/src/agents/index.ts +8 -12
- package/workspace-snapshot/files/src/agents/types.ts +40 -4
- package/workspace-snapshot/files/src/artifacts/redact.ts +18 -2
- package/workspace-snapshot/files/src/artifacts/write-json-out-manifest.ts +90 -0
- package/workspace-snapshot/files/src/cli/commands/canary-runner-config.ts +6 -0
- package/workspace-snapshot/files/src/cli/commands/doctor.ts +148 -0
- package/workspace-snapshot/files/src/cli/commands/resolve-route.ts +5 -0
- package/workspace-snapshot/files/src/cli/commands/run.ts +65 -17
- package/workspace-snapshot/files/src/cli/commands/sync-managed-runner.ts +126 -0
- package/workspace-snapshot/files/src/cli/program.ts +47 -0
- package/workspace-snapshot/files/src/config/assert-cloud-config-fingerprint.ts +36 -0
- package/workspace-snapshot/files/src/config/cloud-config-fingerprint.ts +90 -0
- package/workspace-snapshot/files/src/config/legacy-linear-top-level.ts +69 -0
- package/workspace-snapshot/files/src/config/linear-association-gate.ts +80 -0
- package/workspace-snapshot/files/src/config/resolve-linear-team.ts +41 -0
- package/workspace-snapshot/files/src/config/resolve-linear-workspace.ts +391 -0
- package/workspace-snapshot/files/src/config/role-models.ts +39 -0
- package/workspace-snapshot/files/src/config/runner-upgrade-sync-gate.ts +26 -0
- package/workspace-snapshot/files/src/config/schema.ts +17 -0
- package/workspace-snapshot/files/src/config/types.ts +5 -1
- package/workspace-snapshot/files/src/config/workspace-root.ts +28 -0
- package/workspace-snapshot/files/src/cursor/agent-factory.ts +51 -5
- package/workspace-snapshot/files/src/cursor/builder-resume-errors.ts +41 -0
- package/workspace-snapshot/files/src/cursor/model.ts +106 -25
- package/workspace-snapshot/files/src/cursor/run-observer.ts +15 -2
- package/workspace-snapshot/files/src/github/auth-verification-retry.ts +63 -0
- package/workspace-snapshot/files/src/github/client.ts +204 -5
- package/workspace-snapshot/files/src/gui/configure-health.ts +2 -2
- package/workspace-snapshot/files/src/gui/repo-root.ts +20 -1
- package/workspace-snapshot/files/src/gui/start-configure-stable.ts +6 -2
- package/workspace-snapshot/files/src/gui/start-gui.ts +8 -3
- package/workspace-snapshot/files/src/linear/client.ts +10 -0
- package/workspace-snapshot/files/src/linear/comments.ts +52 -0
- package/workspace-snapshot/files/src/linear/issue-query.ts +4 -0
- package/workspace-snapshot/files/src/linear/markers.ts +28 -0
- package/workspace-snapshot/files/src/linear/parser.ts +61 -1
- package/workspace-snapshot/files/src/linear/project-harness-metadata.ts +147 -0
- package/workspace-snapshot/files/src/linear/project-metadata-sync.ts +115 -0
- package/workspace-snapshot/files/src/linear/run-status-comment.ts +197 -0
- package/workspace-snapshot/files/src/linear/writer.ts +25 -0
- package/workspace-snapshot/files/src/observability/adapters/fake.ts +267 -0
- package/workspace-snapshot/files/src/observability/adapters/noop.ts +62 -0
- package/workspace-snapshot/files/src/observability/adapters/posthog.ts +165 -0
- package/workspace-snapshot/files/src/observability/adapters/sentry.ts +276 -0
- package/workspace-snapshot/files/src/observability/analytics-schemas.ts +150 -0
- package/workspace-snapshot/files/src/observability/consent.ts +70 -0
- package/workspace-snapshot/files/src/observability/constants.ts +25 -0
- package/workspace-snapshot/files/src/observability/context.ts +152 -0
- package/workspace-snapshot/files/src/observability/facade-runtime-state.ts +47 -0
- package/workspace-snapshot/files/src/observability/facade.ts +628 -0
- package/workspace-snapshot/files/src/observability/fatal-handlers.ts +60 -0
- package/workspace-snapshot/files/src/observability/identity.ts +13 -0
- package/workspace-snapshot/files/src/observability/index.ts +47 -0
- package/workspace-snapshot/files/src/observability/local-state.ts +142 -0
- package/workspace-snapshot/files/src/observability/package-config.ts +180 -0
- package/workspace-snapshot/files/src/observability/posthog-dashboard-contract.ts +277 -0
- package/workspace-snapshot/files/src/observability/privacy-schema.ts +229 -0
- package/workspace-snapshot/files/src/observability/product-error-messages.ts +19 -0
- package/workspace-snapshot/files/src/observability/product-errors.ts +139 -0
- package/workspace-snapshot/files/src/observability/provisioning-analytics.ts +28 -0
- package/workspace-snapshot/files/src/observability/redaction.ts +85 -0
- package/workspace-snapshot/files/src/observability/runtime-eligibility.ts +50 -0
- package/workspace-snapshot/files/src/observability/sentry-outbound-privacy.ts +216 -0
- package/workspace-snapshot/files/src/observability/session-dedupe.ts +73 -0
- package/workspace-snapshot/files/src/observability/session-handoff.ts +47 -0
- package/workspace-snapshot/files/src/observability/transport-lifecycle.ts +93 -0
- package/workspace-snapshot/files/src/observability/types.ts +265 -0
- package/workspace-snapshot/files/src/p-dev/cli.ts +1 -1
- package/workspace-snapshot/files/src/p-dev/git-object-plumbing.ts +139 -14
- package/workspace-snapshot/files/src/p-dev/launch.ts +93 -14
- package/workspace-snapshot/files/src/p-dev/main.ts +12 -1
- package/workspace-snapshot/files/src/p-dev/package-paths.ts +72 -2
- package/workspace-snapshot/files/src/p-dev/workspace-snapshot-generator.ts +21 -0
- package/workspace-snapshot/files/src/p-dev/workspace-snapshot-manifest.ts +53 -0
- package/workspace-snapshot/files/src/p-dev/workspace-snapshot-types.ts +8 -0
- package/workspace-snapshot/files/src/preview/preview-capability.ts +21 -0
- package/workspace-snapshot/files/src/product/initialization-state.ts +65 -0
- package/workspace-snapshot/files/src/product/product-marker.ts +76 -0
- package/workspace-snapshot/files/src/product/read-product-marker.ts +63 -0
- package/workspace-snapshot/files/src/prompts/builder.ts +31 -1
- package/workspace-snapshot/files/src/prompts/implementation.md +6 -0
- package/workspace-snapshot/files/src/prompts/integration-repair.md +6 -0
- package/workspace-snapshot/files/src/prompts/planning.md +8 -0
- package/workspace-snapshot/files/src/prompts/revision.md +7 -0
- package/workspace-snapshot/files/src/resolver/errors.ts +3 -1
- package/workspace-snapshot/files/src/resolver/target-repo.ts +60 -1
- package/workspace-snapshot/files/src/runner/builder-thread-acquire.ts +321 -0
- package/workspace-snapshot/files/src/runner/builder-thread-evidence.ts +40 -0
- package/workspace-snapshot/files/src/runner/builder-thread-idempotency.ts +27 -0
- package/workspace-snapshot/files/src/runner/builder-thread-lineage-errors.ts +23 -0
- package/workspace-snapshot/files/src/runner/builder-thread-lineage.ts +555 -0
- package/workspace-snapshot/files/src/runner/builder-thread-types.ts +41 -0
- package/workspace-snapshot/files/src/runner/delivery-dedup.ts +78 -0
- package/workspace-snapshot/files/src/runner/failure-finalization.ts +234 -0
- package/workspace-snapshot/files/src/runner/fixture.ts +6 -1
- package/workspace-snapshot/files/src/runner/phases/handoff.ts +74 -46
- package/workspace-snapshot/files/src/runner/phases/implementation.ts +174 -28
- package/workspace-snapshot/files/src/runner/phases/integration-repair.ts +123 -7
- package/workspace-snapshot/files/src/runner/phases/merge.ts +145 -67
- package/workspace-snapshot/files/src/runner/phases/planning.ts +50 -7
- package/workspace-snapshot/files/src/runner/phases/production-sync.ts +37 -4
- package/workspace-snapshot/files/src/runner/phases/revision.ts +130 -44
- package/workspace-snapshot/files/src/runner/preflight.ts +134 -7
- package/workspace-snapshot/files/src/runner/resolve-route.ts +29 -0
- package/workspace-snapshot/files/src/runner/run-generation.ts +21 -0
- package/workspace-snapshot/files/src/runner/uninitialized-product-routing.ts +121 -0
- package/workspace-snapshot/files/src/setup/config-builder.ts +14 -0
- package/workspace-snapshot/files/src/setup/control-plane-readiness.ts +92 -18
- package/workspace-snapshot/files/src/setup/control-plane-setup-state.ts +61 -5
- package/workspace-snapshot/files/src/setup/control-plane-state-lock.ts +103 -0
- package/workspace-snapshot/files/src/setup/control-plane-types.ts +100 -1
- package/workspace-snapshot/files/src/setup/first-run-readiness.ts +9 -2
- package/workspace-snapshot/files/src/setup/git-askpass-credentials.ts +80 -0
- package/workspace-snapshot/files/src/setup/github-dispatch-token.ts +34 -3
- package/workspace-snapshot/files/src/setup/github-remote-provider.ts +78 -2
- package/workspace-snapshot/files/src/setup/github-remote-setup-live.ts +113 -11
- package/workspace-snapshot/files/src/setup/github-repository-name.ts +63 -0
- package/workspace-snapshot/files/src/setup/github-target-repository-provider-live.ts +323 -0
- package/workspace-snapshot/files/src/setup/github-target-repository-provider-mock.ts +284 -0
- package/workspace-snapshot/files/src/setup/github-target-repository-provider.ts +86 -0
- package/workspace-snapshot/files/src/setup/github-workflow-permissions.ts +2 -1
- package/workspace-snapshot/files/src/setup/gui-view-model.ts +10 -0
- package/workspace-snapshot/files/src/setup/harness-dispatch-repo.ts +157 -25
- package/workspace-snapshot/files/src/setup/harness-managed-repo-marker.ts +24 -0
- package/workspace-snapshot/files/src/setup/harness-provisioning-last-run.ts +152 -0
- package/workspace-snapshot/files/src/setup/harness-provisioning-pending-state.ts +3 -0
- package/workspace-snapshot/files/src/setup/harness-provisioning-progress.ts +213 -0
- package/workspace-snapshot/files/src/setup/harness-repo-provisioning.ts +135 -6
- package/workspace-snapshot/files/src/setup/harness-snapshot-git-transport.ts +846 -0
- package/workspace-snapshot/files/src/setup/harness-snapshot-provisioning-helpers.ts +4 -1
- package/workspace-snapshot/files/src/setup/harness-snapshot-provisioning.ts +352 -81
- package/workspace-snapshot/files/src/setup/harness-step-readiness-server.ts +39 -0
- package/workspace-snapshot/files/src/setup/harness-step-readiness.ts +72 -0
- package/workspace-snapshot/files/src/setup/harness-workspace-snapshot-loader.ts +59 -12
- package/workspace-snapshot/files/src/setup/initial-setup-lifecycle.ts +181 -0
- package/workspace-snapshot/files/src/setup/linear-category-labels.ts +18 -0
- package/workspace-snapshot/files/src/setup/linear-setup-apply.ts +97 -17
- package/workspace-snapshot/files/src/setup/linear-setup-client.ts +96 -0
- package/workspace-snapshot/files/src/setup/linear-setup-plan.ts +105 -11
- package/workspace-snapshot/files/src/setup/linear-setup-progress.ts +113 -0
- package/workspace-snapshot/files/src/setup/linear-status-contract.ts +36 -77
- package/workspace-snapshot/files/src/setup/linear-workflow-status-repair.ts +278 -0
- package/workspace-snapshot/files/src/setup/linear-workspace-apply.ts +309 -0
- package/workspace-snapshot/files/src/setup/linear-workspace-drift.ts +4 -0
- package/workspace-snapshot/files/src/setup/linear-workspace-migration.ts +314 -0
- package/workspace-snapshot/files/src/setup/linear-workspace-plan.ts +407 -0
- package/workspace-snapshot/files/src/setup/local-readiness-checks.ts +163 -31
- package/workspace-snapshot/files/src/setup/mock-target-workflow-finalization.ts +30 -4
- package/workspace-snapshot/files/src/setup/packaged-default-route.ts +29 -0
- package/workspace-snapshot/files/src/setup/release-sync-managed-runner.ts +604 -0
- package/workspace-snapshot/files/src/setup/remote-apply-actions.ts +33 -0
- package/workspace-snapshot/files/src/setup/runner-upgrade-canary-dispatch.ts +69 -0
- package/workspace-snapshot/files/src/setup/runner-upgrade-canary.ts +213 -0
- package/workspace-snapshot/files/src/setup/runner-upgrade-evidence.ts +30 -0
- package/workspace-snapshot/files/src/setup/runner-upgrade-pending-state.ts +116 -0
- package/workspace-snapshot/files/src/setup/runner-upgrade-progress.ts +150 -0
- package/workspace-snapshot/files/src/setup/runner-upgrade-provider-live.ts +520 -0
- package/workspace-snapshot/files/src/setup/runner-upgrade-provider.ts +852 -0
- package/workspace-snapshot/files/src/setup/runner-upgrade-status-cache.ts +61 -0
- package/workspace-snapshot/files/src/setup/runner-upgrade-three-way.ts +162 -0
- package/workspace-snapshot/files/src/setup/runner-upgrade-timeouts.ts +386 -0
- package/workspace-snapshot/files/src/setup/runner-upgrade-types.ts +176 -0
- package/workspace-snapshot/files/src/setup/runner-upgrade-worker.ts +149 -0
- package/workspace-snapshot/files/src/setup/runner-upgrade.ts +1926 -0
- package/workspace-snapshot/files/src/setup/service-verification.ts +160 -20
- package/workspace-snapshot/files/src/setup/settings-config-patch.ts +461 -0
- package/workspace-snapshot/files/src/setup/setup-state.ts +12 -1
- package/workspace-snapshot/files/src/setup/step6-automatic-control-state.ts +59 -0
- package/workspace-snapshot/files/src/setup/sync-harness-config-cloud.ts +128 -0
- package/workspace-snapshot/files/src/setup/target-repo-provisioning-pending-state.ts +160 -0
- package/workspace-snapshot/files/src/setup/target-repo-provisioning.ts +704 -0
- package/workspace-snapshot/files/src/setup/target-workflow-finalization-progress.ts +166 -0
- package/workspace-snapshot/files/src/setup/target-workflow-finalization-types.ts +128 -1
- package/workspace-snapshot/files/src/setup/target-workflow-finalization.ts +806 -15
- package/workspace-snapshot/files/src/setup/target-workflow-setup.ts +2 -0
- package/workspace-snapshot/files/src/setup/test-only-runner-upgrade-provider.ts +51 -0
- package/workspace-snapshot/files/src/setup/test-only-target-repo-provisioning-provider.ts +47 -0
- package/workspace-snapshot/files/src/setup/vercel-bridge-artifact.ts +174 -0
- package/workspace-snapshot/files/src/setup/vercel-bridge-deploy.ts +217 -0
- package/workspace-snapshot/files/src/setup/vercel-bridge-diagnostics.ts +1 -1
- package/workspace-snapshot/files/src/setup/vercel-bridge-options.ts +4 -0
- package/workspace-snapshot/files/src/setup/vercel-bridge-orchestration-summary.ts +46 -0
- package/workspace-snapshot/files/src/setup/vercel-bridge-project-marker.ts +8 -0
- package/workspace-snapshot/files/src/setup/vercel-bridge-readiness.ts +2 -1
- package/workspace-snapshot/files/src/setup/vercel-bridge-redeploy-normalize.ts +244 -0
- package/workspace-snapshot/files/src/setup/vercel-bridge-redeploy-poll.ts +406 -190
- package/workspace-snapshot/files/src/setup/vercel-bridge-redeploy-state.ts +3 -0
- package/workspace-snapshot/files/src/setup/vercel-bridge-structured-log.ts +5 -0
- package/workspace-snapshot/files/src/setup/vercel-project-name.ts +38 -0
- package/workspace-snapshot/files/src/setup/vercel-setup-apply.ts +386 -40
- package/workspace-snapshot/files/src/setup/vercel-setup-client.ts +97 -3
- package/workspace-snapshot/files/src/setup/vercel-setup-plan.ts +84 -14
- package/workspace-snapshot/files/src/setup/vercel-setup-summary.ts +10 -0
- package/workspace-snapshot/files/src/setup/workflow-config-snapshot.ts +22 -0
- package/workspace-snapshot/files/src/setup/workflow-install-branch-recovery.ts +660 -0
- package/workspace-snapshot/files/src/setup/workflow-install-merge-errors.ts +70 -20
- package/workspace-snapshot/files/src/setup/workflow-install-merge-gate.ts +25 -0
- package/workspace-snapshot/files/src/setup/workflow-model-save-queue.ts +251 -0
- package/workspace-snapshot/files/src/setup/workflow-model-sync-lock.ts +103 -0
- package/workspace-snapshot/files/src/setup/workflow-model-sync.ts +259 -0
- package/workspace-snapshot/files/src/setup/workflow-models-sync-evidence.ts +34 -0
- package/workspace-snapshot/files/src/types/parsed-issue.ts +9 -0
- package/workspace-snapshot/files/src/types/run.ts +44 -1
- package/workspace-snapshot/files/src/validate/issue.ts +52 -6
- package/workspace-snapshot/files/src/validate/types.ts +3 -0
- package/workspace-snapshot/files/src/webhook/dispatch-statuses.ts +8 -16
- package/workspace-snapshot/files/src/webhook/filter.ts +24 -1
- package/workspace-snapshot/files/src/webhook/handle-linear-webhook.ts +15 -1
- package/workspace-snapshot/files/src/webhook/parse-linear-issue-event.ts +4 -0
- package/workspace-snapshot/files/src/webhook/types.ts +4 -1
- package/workspace-snapshot/files/src/workflow/canonical-product-development-workflow.ts +584 -0
- package/workspace-snapshot/files/src/workflow/canonical-workflow-gate.ts +255 -0
- package/workspace-snapshot/files/src/workflow/canonical-workflow-validation.ts +297 -0
- package/workspace-snapshot/files/src/workflow/finalize-harness-run.ts +83 -0
- package/workspace-snapshot/files/src/workflow/preflight-canonical.ts +40 -0
- package/workspace-snapshot/files/src/workflow/write-fallback-manifest.ts +39 -0
- package/workspace-snapshot/files/src/workflow-page/bootstrap.ts +277 -0
- package/workspace-snapshot/files/src/workflow-page/catalog-validation.ts +158 -0
- package/workspace-snapshot/files/src/workflow-page/constants.ts +22 -0
- package/workspace-snapshot/files/src/workflow-page/current-workflow.ts +225 -0
- package/workspace-snapshot/files/src/workflow-page/fingerprint.ts +9 -0
- package/workspace-snapshot/files/src/workflow-page/fixture-definition.ts +16 -0
- package/workspace-snapshot/files/src/workflow-page/fixture-role-models.ts +50 -0
- package/workspace-snapshot/files/src/workflow-page/fixtures/basic-current-workflow.ts +39 -0
- package/workspace-snapshot/files/src/workflow-page/fixtures/branching-pr-review.ts +11 -0
- package/workspace-snapshot/files/src/workflow-page/fixtures/canonical-violations.ts +50 -0
- package/workspace-snapshot/files/src/workflow-page/fixtures/credential-errors.ts +13 -0
- package/workspace-snapshot/files/src/workflow-page/fixtures/empty-linear-statuses.ts +10 -0
- package/workspace-snapshot/files/src/workflow-page/fixtures/hundred-node-performance.ts +23 -0
- package/workspace-snapshot/files/src/workflow-page/fixtures/index.ts +37 -0
- package/workspace-snapshot/files/src/workflow-page/fixtures/model-catalog-snapshot.ts +34 -0
- package/workspace-snapshot/files/src/workflow-page/fixtures/workflow-scopes.ts +18 -0
- package/workspace-snapshot/files/src/workflow-page/linear-status-source.ts +65 -0
- package/workspace-snapshot/files/src/workflow-page/model-catalog-lookup.ts +8 -0
- package/workspace-snapshot/files/src/workflow-page/model-catalog-utils.ts +83 -0
- package/workspace-snapshot/files/src/workflow-page/model-catalog.ts +60 -0
- package/workspace-snapshot/files/src/workflow-page/scope-branches.ts +27 -0
- package/workspace-snapshot/files/src/workflow-page/source-context.ts +91 -0
- package/workspace-snapshot/files/src/workflow-page/types.ts +134 -0
- package/workspace-snapshot/files/src/workflow-page/workflow-scopes.ts +73 -0
- package/workspace-snapshot/files/tests/agents/cursor-provider.test.ts +41 -29
- package/workspace-snapshot/files/tests/artifacts/redact.test.ts +11 -0
- package/workspace-snapshot/files/tests/cli/json-out-manifest.test.ts +96 -0
- package/workspace-snapshot/files/tests/config/cloud-config-fingerprint.test.ts +62 -0
- package/workspace-snapshot/files/tests/config/legacy-linear-top-level.test.ts +86 -0
- package/workspace-snapshot/files/tests/config/onboarding-cloud-runner-contract.test.ts +139 -0
- package/workspace-snapshot/files/tests/config/resolve-linear-workspace.test.ts +314 -0
- package/workspace-snapshot/files/tests/config/role-models.test.ts +35 -0
- package/workspace-snapshot/files/tests/cursor/agent-factory.test.ts +124 -0
- package/workspace-snapshot/files/tests/cursor/role-models.test.ts +52 -0
- package/workspace-snapshot/files/tests/cursor/run-observer.test.ts +36 -0
- package/workspace-snapshot/files/tests/fixtures/workflows/harness-auto-runner-with-production-sync.yml +36 -11
- package/workspace-snapshot/files/tests/github/auth-verification-retry.test.ts +141 -0
- package/workspace-snapshot/files/tests/gui/app-shell-settings-menu.test.ts +115 -0
- package/workspace-snapshot/files/tests/gui/configure-fix-loop.test.ts +50 -37
- package/workspace-snapshot/files/tests/gui/configure-navigation-contract.test.ts +107 -0
- package/workspace-snapshot/files/tests/gui/configure-target-repo-create.test.ts +103 -0
- package/workspace-snapshot/files/tests/gui/configure-workflow-readiness.test.ts +117 -0
- package/workspace-snapshot/files/tests/gui/data-sharing-preferences.test.ts +43 -0
- package/workspace-snapshot/files/tests/gui/design-system.test.ts +65 -5
- package/workspace-snapshot/files/tests/gui/guided-linear-workspace-card.test.ts +168 -0
- package/workspace-snapshot/files/tests/gui/guided-operation-ux.test.ts +100 -0
- package/workspace-snapshot/files/tests/gui/guided-setup-progress.test.ts +267 -0
- package/workspace-snapshot/files/tests/gui/guided-setup.test.ts +60 -0
- package/workspace-snapshot/files/tests/gui/guided-target-workflow-polling.test.ts +38 -0
- package/workspace-snapshot/files/tests/gui/linear-association-draft.test.ts +93 -0
- package/workspace-snapshot/files/tests/gui/local-readiness-stream.test.ts +154 -0
- package/workspace-snapshot/files/tests/gui/local-readiness-visual-queue.test.ts +69 -0
- package/workspace-snapshot/files/tests/gui/local-readiness-workspace.test.ts +299 -0
- package/workspace-snapshot/files/tests/gui/m6-configure-boundaries.test.ts +177 -35
- package/workspace-snapshot/files/tests/gui/observability-preferences-route.test.ts +343 -0
- package/workspace-snapshot/files/tests/gui/observability-request-guard.test.ts +177 -0
- package/workspace-snapshot/files/tests/gui/packaged-harness-cloud-secrets-routes.test.ts +16 -0
- package/workspace-snapshot/files/tests/gui/packaged-runner-upgrade-routes.test.ts +532 -0
- package/workspace-snapshot/files/tests/gui/packaged-target-repo-provisioning-routes.test.ts +108 -0
- package/workspace-snapshot/files/tests/gui/repo-root.test.ts +55 -0
- package/workspace-snapshot/files/tests/gui/runner-upgrade-settings-card.test.ts +97 -0
- package/workspace-snapshot/files/tests/gui/settings-cursor.test.ts +39 -0
- package/workspace-snapshot/files/tests/gui/settings-deployments-autoload.test.ts +57 -0
- package/workspace-snapshot/files/tests/gui/settings-mutation-editors.test.ts +154 -0
- package/workspace-snapshot/files/tests/gui/settings-navigation.test.ts +95 -0
- package/workspace-snapshot/files/tests/gui/settings-repositories-page.test.ts +54 -0
- package/workspace-snapshot/files/tests/gui/step7-settings-polish.test.ts +180 -0
- package/workspace-snapshot/files/tests/gui/target-workflow-pr-card.test.ts +68 -0
- package/workspace-snapshot/files/tests/gui/vercel-bridge-polling-ui.test.ts +50 -1
- package/workspace-snapshot/files/tests/gui/verification-state.test.ts +45 -0
- package/workspace-snapshot/files/tests/gui/workflow-bootstrap-route.test.ts +78 -0
- package/workspace-snapshot/files/tests/gui/workflow-model-autosave.test.ts +36 -0
- package/workspace-snapshot/files/tests/gui/workflow-source-ui.test.ts +22 -0
- package/workspace-snapshot/files/tests/gui/workflow-violation-messages.test.ts +39 -0
- package/workspace-snapshot/files/tests/gui/workflow-workspace.test.ts +188 -0
- package/workspace-snapshot/files/tests/linear/markers.test.ts +29 -0
- package/workspace-snapshot/files/tests/linear/run-status-comment.test.ts +143 -0
- package/workspace-snapshot/files/tests/observability/analytics-schemas.test.ts +74 -0
- package/workspace-snapshot/files/tests/observability/context.test.ts +132 -0
- package/workspace-snapshot/files/tests/observability/fatal-process.test.ts +106 -0
- package/workspace-snapshot/files/tests/observability/foundation.test.ts +229 -0
- package/workspace-snapshot/files/tests/observability/instrumentation-dev-startup.test.ts +79 -0
- package/workspace-snapshot/files/tests/observability/lifecycle.test.ts +348 -0
- package/workspace-snapshot/files/tests/observability/package-config.test.ts +66 -0
- package/workspace-snapshot/files/tests/observability/packaged-config.test.ts +47 -0
- package/workspace-snapshot/files/tests/observability/posthog-dashboard-contract.test.ts +133 -0
- package/workspace-snapshot/files/tests/observability/posthog-envelope.test.ts +167 -0
- package/workspace-snapshot/files/tests/observability/posthog-shutdown.test.ts +68 -0
- package/workspace-snapshot/files/tests/observability/privacy-schema.test.ts +83 -0
- package/workspace-snapshot/files/tests/observability/provisioning-analytics.test.ts +54 -0
- package/workspace-snapshot/files/tests/observability/public-config-enablement.test.ts +48 -0
- package/workspace-snapshot/files/tests/observability/sentry-envelope.test.ts +289 -0
- package/workspace-snapshot/files/tests/observability/sentry-outbound-privacy.test.ts +141 -0
- package/workspace-snapshot/files/tests/observability/sentry-privacy-assertions.ts +52 -0
- package/workspace-snapshot/files/tests/observability/sentry-server-only.test.ts +68 -0
- package/workspace-snapshot/files/tests/observability/sentry-transport.test.ts +88 -0
- package/workspace-snapshot/files/tests/observability/session-dedupe.test.ts +117 -0
- package/workspace-snapshot/files/tests/observability/snapshot-exclusion.test.ts +9 -0
- package/workspace-snapshot/files/tests/p-dev/cli.test.ts +2 -2
- package/workspace-snapshot/files/tests/p-dev/git-object-plumbing.test.ts +49 -0
- package/workspace-snapshot/files/tests/p-dev/installed-tarball-gui.test.ts +475 -0
- package/workspace-snapshot/files/tests/p-dev/installed-tarball-loopback.test.ts +986 -0
- package/workspace-snapshot/files/tests/p-dev/installed-tarball-snapshot-provisioning.test.ts +361 -0
- package/workspace-snapshot/files/tests/p-dev/launch.test.ts +55 -3
- package/workspace-snapshot/files/tests/p-dev/package-manifest.test.ts +3 -1
- package/workspace-snapshot/files/tests/p-dev/package-packed-artifact.test.ts +115 -10
- package/workspace-snapshot/files/tests/p-dev/package-paths.test.ts +51 -0
- package/workspace-snapshot/files/tests/p-dev/package-version.test.ts +1 -1
- package/workspace-snapshot/files/tests/p-dev/packaged-workspace-setup.test.ts +1 -1
- package/workspace-snapshot/files/tests/p-dev/workspace-snapshot-policy.test.ts +6 -0
- package/workspace-snapshot/files/tests/product/initialization-state.test.ts +78 -0
- package/workspace-snapshot/files/tests/product/read-product-marker.test.ts +46 -0
- package/workspace-snapshot/files/tests/prompts/builder.test.ts +1 -0
- package/workspace-snapshot/files/tests/prompts/implementation-builder.test.ts +1 -0
- package/workspace-snapshot/files/tests/prompts/issue-intake-chatgpt.test.ts +1 -0
- package/workspace-snapshot/files/tests/resolver/target-repo.test.ts +66 -0
- package/workspace-snapshot/files/tests/runner/builder-thread-acquire.test.ts +288 -0
- package/workspace-snapshot/files/tests/runner/builder-thread-idempotency.test.ts +42 -0
- package/workspace-snapshot/files/tests/runner/builder-thread-lineage.test.ts +206 -0
- package/workspace-snapshot/files/tests/runner/delivery-dedup.test.ts +53 -0
- package/workspace-snapshot/files/tests/runner/failure-finalization-runner-upgrade.test.ts +112 -0
- package/workspace-snapshot/files/tests/runner/failure-finalization.test.ts +203 -0
- package/workspace-snapshot/files/tests/runner/handoff.test.ts +66 -0
- package/workspace-snapshot/files/tests/runner/idempotency-handoff.test.ts +1 -0
- package/workspace-snapshot/files/tests/runner/idempotency-implementation.test.ts +1 -0
- package/workspace-snapshot/files/tests/runner/idempotency-revision.test.ts +1 -0
- package/workspace-snapshot/files/tests/runner/idempotency.test.ts +1 -0
- package/workspace-snapshot/files/tests/runner/implementation.test.ts +24 -5
- package/workspace-snapshot/files/tests/runner/integration-repair.test.ts +21 -6
- package/workspace-snapshot/files/tests/runner/merge-linear-metadata.test.ts +90 -0
- package/workspace-snapshot/files/tests/runner/merge.test.ts +79 -0
- package/workspace-snapshot/files/tests/runner/planning.test.ts +9 -0
- package/workspace-snapshot/files/tests/runner/preflight-canonical.test.ts +73 -0
- package/workspace-snapshot/files/tests/runner/preflight-fail-closed.integration.test.ts +418 -0
- package/workspace-snapshot/files/tests/runner/preview-capability.test.ts +46 -0
- package/workspace-snapshot/files/tests/runner/resolve-route.test.ts +6 -0
- package/workspace-snapshot/files/tests/runner/revision.test.ts +117 -9
- package/workspace-snapshot/files/tests/runner/uninitialized-product-routing.test.ts +120 -0
- package/workspace-snapshot/files/tests/setup/control-plane-readiness.test.ts +86 -0
- package/workspace-snapshot/files/tests/setup/control-plane-state-lock.test.ts +67 -0
- package/workspace-snapshot/files/tests/setup/first-run-readiness.test.ts +134 -2
- package/workspace-snapshot/files/tests/setup/github-dispatch-token.test.ts +49 -1
- package/workspace-snapshot/files/tests/setup/github-repository-name.test.ts +28 -0
- package/workspace-snapshot/files/tests/setup/gui-remote-storage.test.ts +0 -2
- package/workspace-snapshot/files/tests/setup/harness-dispatch-repo.test.ts +292 -3
- package/workspace-snapshot/files/tests/setup/harness-snapshot-bulk-fixture.ts +72 -0
- package/workspace-snapshot/files/tests/setup/harness-snapshot-bulk-installed.test.ts +93 -0
- package/workspace-snapshot/files/tests/setup/harness-snapshot-git-transport.test.ts +518 -0
- package/workspace-snapshot/files/tests/setup/harness-step-readiness.test.ts +145 -0
- package/workspace-snapshot/files/tests/setup/harness-workspace-snapshot-loader.test.ts +142 -0
- package/workspace-snapshot/files/tests/setup/initial-setup-lifecycle.test.ts +220 -0
- package/workspace-snapshot/files/tests/setup/linear-setup-apply.test.ts +7 -4
- package/workspace-snapshot/files/tests/setup/linear-setup-plan.test.ts +46 -3
- package/workspace-snapshot/files/tests/setup/linear-workflow-status-repair.test.ts +314 -0
- package/workspace-snapshot/files/tests/setup/linear-workspace-migration.test.ts +173 -0
- package/workspace-snapshot/files/tests/setup/linear-workspace-plan.test.ts +247 -0
- package/workspace-snapshot/files/tests/setup/local-apply-actions.test.ts +13 -0
- package/workspace-snapshot/files/tests/setup/local-readiness-checks.test.ts +25 -1
- package/workspace-snapshot/files/tests/setup/mock-canonical-preflight.ts +14 -0
- package/workspace-snapshot/files/tests/setup/packaged-default-route.test.ts +85 -0
- package/workspace-snapshot/files/tests/setup/release-sync-managed-runner.test.ts +385 -0
- package/workspace-snapshot/files/tests/setup/runner-upgrade-canary.test.ts +201 -0
- package/workspace-snapshot/files/tests/setup/runner-upgrade-three-way.test.ts +226 -0
- package/workspace-snapshot/files/tests/setup/runner-upgrade.test.ts +702 -0
- package/workspace-snapshot/files/tests/setup/service-verification.test.ts +197 -18
- package/workspace-snapshot/files/tests/setup/settings-config-patch.test.ts +280 -0
- package/workspace-snapshot/files/tests/setup/setup-state.test.ts +47 -0
- package/workspace-snapshot/files/tests/setup/step6-automatic-apply-outcome.test.ts +1 -0
- package/workspace-snapshot/files/tests/setup/step6-automatic-control-state.test.ts +73 -0
- package/workspace-snapshot/files/tests/setup/target-repo-provisioning.test.ts +307 -0
- package/workspace-snapshot/files/tests/setup/target-workflow-finalization-progress.test.ts +71 -0
- package/workspace-snapshot/files/tests/setup/target-workflow-finalization-step-github.test.ts +240 -0
- package/workspace-snapshot/files/tests/setup/vercel-bridge-redeploy-normalize.test.ts +106 -0
- package/workspace-snapshot/files/tests/setup/vercel-bridge-redeploy-poll.test.ts +78 -4
- package/workspace-snapshot/files/tests/setup/vercel-setup-apply.test.ts +278 -3
- package/workspace-snapshot/files/tests/setup/vercel-setup-client.test.ts +76 -0
- package/workspace-snapshot/files/tests/setup/vercel-setup-plan.test.ts +58 -0
- package/workspace-snapshot/files/tests/setup/workflow-install-branch-recovery-commit.test.ts +144 -0
- package/workspace-snapshot/files/tests/setup/workflow-install-branch-recovery.test.ts +133 -0
- package/workspace-snapshot/files/tests/setup/workflow-install-merge-errors.test.ts +66 -1
- package/workspace-snapshot/files/tests/setup/workflow-install-merge-gate.test.ts +58 -0
- package/workspace-snapshot/files/tests/setup/workflow-model-save-queue.test.ts +139 -0
- package/workspace-snapshot/files/tests/setup/workflow-model-sync.test.ts +141 -0
- package/workspace-snapshot/files/tests/validate-issue/uninitialized-product.test.ts +108 -0
- package/workspace-snapshot/files/tests/webhook/filter.test.ts +55 -0
- package/workspace-snapshot/files/tests/webhook/harness-auto-runner-workflow.test.ts +7 -0
- package/workspace-snapshot/files/tests/workflow/canonical-product-development-workflow.test.ts +193 -0
- package/workspace-snapshot/files/tests/workflow/canonical-workflow-validation.test.ts +202 -0
- package/workspace-snapshot/files/tests/workflow/workflow-shell-safety.test.ts +5 -2
- package/workspace-snapshot/files/vitest.config.ts +5 -0
- package/workspace-snapshot/manifest.json +3604 -836
- package/workspace-snapshot/object-pack/snapshot-2735d42c938e514f27a9b2aaf5fa2fcc68019075.idx +0 -0
- package/workspace-snapshot/object-pack/snapshot-2735d42c938e514f27a9b2aaf5fa2fcc68019075.pack +0 -0
- package/gui/.next/server/app/index.html +0 -1
- package/gui/.next/server/app/index.meta +0 -9
- package/gui/.next/server/app/index.rsc +0 -18
- package/gui/.next/server/chunks/200.js +0 -1
- package/gui/.next/server/chunks/477.js +0 -16
- package/gui/.next/server/chunks/585.js +0 -1
- package/gui/.next/server/chunks/647.js +0 -82
- package/gui/.next/server/chunks/711.js +0 -1
- package/gui/.next/server/chunks/900.js +0 -1
- package/gui/.next/server/chunks/901.js +0 -22
- package/gui/.next/static/ZGJuemeaiW4yT7CTlmjdG/_buildManifest.js +0 -1
- package/gui/.next/static/chunks/661-5fc9351358e2f084.js +0 -1
- package/gui/.next/static/chunks/app/_not-found/page-f15332c94524c284.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/apply-connect-services/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/apply-harness-repo-provisioning/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/apply-harness-secrets/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/apply-linear-setup/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/apply-local-files/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/apply-target-workflow/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/apply-vercel-bridge/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/finalize-target-workflow/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/harness-provisioning-summary/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/linear-options/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/linear-summary/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/local-readiness/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/manual-harness-secret-values/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/preview-connect-services/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/preview-harness-repo-provisioning/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/preview-harness-secrets/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/preview-linear-setup/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/preview-local-files/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/preview-target-workflow/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/preview-vercel-bridge/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/remote-summary/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/summary/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/vercel-bridge-options/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/vercel-bridge-redeploy-status/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/vercel-summary/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/verify-harness-repo/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/verify-service/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/api/setup/verify-target-repo/route-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/layout-10445a363bff6a38.js +0 -1
- package/gui/.next/static/chunks/app/page-979ec1702bd9938a.js +0 -1
- package/gui/.next/static/chunks/app/settings/configure/page-25b2288ace2949a1.js +0 -1
- package/gui/.next/static/chunks/framework-7318ce553e854ad6.js +0 -1
- package/gui/.next/static/chunks/main-app-732547e2b1a794b6.js +0 -1
- package/gui/.next/static/chunks/main-f7a784f5852cbbd1.js +0 -1
- package/gui/.next/static/chunks/pages/_error-bda15e7831eec981.js +0 -1
- package/gui/.next/static/css/781f3c93b6d7425a.css +0 -3
- package/workspace-snapshot/files/apps/gui/components/custom/setup-dashboard.tsx +0 -124
- package/workspace-snapshot/files/apps/gui/components/custom/setup-readonly-sections.tsx +0 -210
- /package/gui/.next/static/{ZGJuemeaiW4yT7CTlmjdG → wM7YWpWgyTcGc7H5h1u7U}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,1311 @@
|
|
|
1
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
2
|
+
import { readFile } from "node:fs/promises";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { isIncludedSnapshotPath, isForbiddenSnapshotPath, } from "../p-dev/workspace-snapshot-policy.js";
|
|
5
|
+
import { loadWorkspaceSnapshotEntryContent } from "../p-dev/workspace-snapshot-generator.js";
|
|
6
|
+
import { loadEmbeddedWorkspaceSnapshot, loadEmbeddedWorkspaceSnapshotIdentityForStatus, } from "./harness-workspace-snapshot-loader.js";
|
|
7
|
+
import { HARNESS_MANAGED_REPO_MARKER_FILE, buildHarnessSnapshotManagedRepoMarker, parseHarnessManagedRepoMarkerJson, validateManagedMarkerForReconnect, } from "./harness-managed-repo-marker.js";
|
|
8
|
+
import { formatHarnessDispatchRepo, resolveHarnessDispatchRepo } from "./harness-dispatch-repo.js";
|
|
9
|
+
import { deriveProvisioningCommitIdentity } from "./harness-snapshot-provisioning-helpers.js";
|
|
10
|
+
import { syncHarnessConfigCloudPair } from "./sync-harness-config-cloud.js";
|
|
11
|
+
import { recordRunnerUpgradeEvidence } from "./runner-upgrade-evidence.js";
|
|
12
|
+
import { clearRunnerUpgradePendingState, readRunnerUpgradePendingState, withHarnessRunnerUpgradeMutex, writeRunnerUpgradePendingStateAtomic, } from "./runner-upgrade-pending-state.js";
|
|
13
|
+
import { writeRunnerUpgradeProgressAtomic, } from "./runner-upgrade-progress.js";
|
|
14
|
+
import { compareThreeWayUpgrade, extractFileHashesFromManifest, extractFileHashesFromMarker, } from "./runner-upgrade-three-way.js";
|
|
15
|
+
import { CANARY_OPERATION_ID_INPUT, locateCanaryRunByOperationId, } from "./runner-upgrade-canary-dispatch.js";
|
|
16
|
+
import { asRemoteSetupProviderForRunnerUpgrade, } from "./runner-upgrade-provider.js";
|
|
17
|
+
import { lastVerifiedToSnapshotSummary, readRunnerUpgradeLastVerifiedIdentity, writeRunnerUpgradeLastVerifiedIdentity, } from "./runner-upgrade-status-cache.js";
|
|
18
|
+
import { RUNNER_UPGRADE_CANARY_WORKFLOW_PATH, buildRunnerUpgradeBranchName, buildRunnerUpgradePrMarker, parseRunnerUpgradePrMarker, runnerUpgradeStatusLabel, } from "./runner-upgrade-types.js";
|
|
19
|
+
import { RUNNER_UPGRADE_HEARTBEAT_EVERY_FILES, RUNNER_UPGRADE_STATUS_OVERALL_DEADLINE_MS, RUNNER_UPGRADE_STATUS_PROVIDER_TIMEOUT_MS, RUNNER_UPGRADE_WORKER_PROVIDER_TIMEOUT_MS, RunnerUpgradeStatusStageTracker, RunnerUpgradeTimeoutError, beginRunnerUpgradeStatusRequest, endRunnerUpgradeStatusRequest, recordRunnerUpgradeStatusCallTimings, throwIfRunnerUpgradeAborted, withRunnerUpgradeStatusDeadline, withTimedRunnerUpgradeCall, } from "./runner-upgrade-timeouts.js";
|
|
20
|
+
import { enqueueRunnerUpgradeOperation, isRunnerUpgradeOperationActive, reconcileAbandonedRunnerUpgrades, } from "./runner-upgrade-worker.js";
|
|
21
|
+
export { getLastRunnerUpgradeStatusCallTimings, getLastRunnerUpgradeStatusStageTimings, getLastUnresolvedRunnerUpgradeStatusStage, isRunnerUpgradeProgressStale, abortInFlightRunnerUpgradeStatus, RUNNER_UPGRADE_NO_PROGRESS_STALE_MS, RUNNER_UPGRADE_STATUS_OVERALL_DEADLINE_MS, RUNNER_UPGRADE_STATUS_PROVIDER_TIMEOUT_MS, RUNNER_UPGRADE_WORKER_PROVIDER_TIMEOUT_MS, runnerUpgradeProgressShowsNoProgress, } from "./runner-upgrade-timeouts.js";
|
|
22
|
+
const ALL_RUNNER_UPGRADE_PHASES = [
|
|
23
|
+
"verifying-managed-repository",
|
|
24
|
+
"comparing-runner-snapshots",
|
|
25
|
+
"preparing-upgrade-commit",
|
|
26
|
+
"updating-managed-runner",
|
|
27
|
+
"verifying-runner-on-production-branch",
|
|
28
|
+
"synchronizing-cloud-configuration",
|
|
29
|
+
"running-configuration-canary",
|
|
30
|
+
];
|
|
31
|
+
const DEFAULT_CANARY_POLL_INTERVAL_MS = 2_000;
|
|
32
|
+
const DEFAULT_CANARY_POLL_TIMEOUT_MS = 120_000;
|
|
33
|
+
const OPERATOR_LOCAL_ONLY_PATHS = new Set([
|
|
34
|
+
".harness/config.local.json",
|
|
35
|
+
".env.local",
|
|
36
|
+
]);
|
|
37
|
+
function sha256Content(content) {
|
|
38
|
+
return createHash("sha256").update(content).digest("hex");
|
|
39
|
+
}
|
|
40
|
+
function snapshotSummaryFromManifest(manifest) {
|
|
41
|
+
return {
|
|
42
|
+
snapshotContentId: manifest.snapshotContentId,
|
|
43
|
+
packageVersion: manifest.packageVersion,
|
|
44
|
+
sourceCommit: manifest.sourceCommit,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function buildImpactSummary(input) {
|
|
48
|
+
return {
|
|
49
|
+
replacePathCount: input.replacePaths.length,
|
|
50
|
+
deletePathCount: input.deletePaths.length,
|
|
51
|
+
sampleReplacePaths: input.replacePaths.slice(0, 8),
|
|
52
|
+
sampleDeletePaths: input.deletePaths.slice(0, 8),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function computePreviewFingerprint(input) {
|
|
56
|
+
return sha256Content(JSON.stringify({
|
|
57
|
+
targetSnapshotContentId: input.targetSnapshotContentId,
|
|
58
|
+
replacePaths: [...input.replacePaths].sort(),
|
|
59
|
+
deletePaths: [...input.deletePaths].sort(),
|
|
60
|
+
repositoryId: input.repositoryId,
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
function isOperatorLocalOnlyPath(filePath) {
|
|
64
|
+
if (OPERATOR_LOCAL_ONLY_PATHS.has(filePath)) {
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
return isForbiddenSnapshotPath(filePath);
|
|
68
|
+
}
|
|
69
|
+
function findUnexpectedRemotePaths(input) {
|
|
70
|
+
const packagePaths = new Set(Object.keys(input.nextHashes));
|
|
71
|
+
const unexpected = [];
|
|
72
|
+
for (const remotePath of input.remoteTreePaths) {
|
|
73
|
+
if (remotePath === HARNESS_MANAGED_REPO_MARKER_FILE) {
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if (!isIncludedSnapshotPath(remotePath)) {
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
if (packagePaths.has(remotePath)) {
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
if (isOperatorLocalOnlyPath(remotePath)) {
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
if (input.previousHashes?.[remotePath]) {
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
unexpected.push(remotePath);
|
|
89
|
+
}
|
|
90
|
+
return [...new Set(unexpected)].sort();
|
|
91
|
+
}
|
|
92
|
+
async function resolveHarnessRepository(cwd) {
|
|
93
|
+
const harnessDispatchRepo = await resolveHarnessDispatchRepo({ cwd });
|
|
94
|
+
if (!harnessDispatchRepo.resolved || !harnessDispatchRepo.repo) {
|
|
95
|
+
throw new Error("Harness dispatch repository is not configured.");
|
|
96
|
+
}
|
|
97
|
+
const repoSlug = formatHarnessDispatchRepo(harnessDispatchRepo);
|
|
98
|
+
const [owner, repo] = repoSlug.split("/");
|
|
99
|
+
if (!owner || !repo) {
|
|
100
|
+
throw new Error(`Invalid harness repository slug ${repoSlug}.`);
|
|
101
|
+
}
|
|
102
|
+
return { repoSlug, owner, repo };
|
|
103
|
+
}
|
|
104
|
+
async function loadPackagedSnapshot() {
|
|
105
|
+
const embedded = await loadEmbeddedWorkspaceSnapshot(import.meta.url);
|
|
106
|
+
if (!embedded.ok) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
packageRoot: embedded.packageRoot,
|
|
111
|
+
snapshotRoot: embedded.snapshotRoot,
|
|
112
|
+
packageVersion: embedded.packageVersion,
|
|
113
|
+
manifest: embedded.manifest,
|
|
114
|
+
fingerprint: embedded.fingerprint,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
async function loadPackagedSnapshotIdentityForStatus(signal) {
|
|
118
|
+
const embedded = await loadEmbeddedWorkspaceSnapshotIdentityForStatus(import.meta.url, process.env, signal);
|
|
119
|
+
if (!embedded.ok) {
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
packageRoot: embedded.packageRoot,
|
|
124
|
+
snapshotRoot: embedded.snapshotRoot,
|
|
125
|
+
packageVersion: embedded.packageVersion,
|
|
126
|
+
manifest: embedded.manifest,
|
|
127
|
+
fingerprint: embedded.fingerprint,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
async function hasLocalManagedRepoEvidence(cwd) {
|
|
131
|
+
const raw = await readLocalManagedRepoMarker(cwd);
|
|
132
|
+
if (!raw) {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
const parsed = parseHarnessManagedRepoMarkerJson(raw);
|
|
136
|
+
return parsed.ok;
|
|
137
|
+
}
|
|
138
|
+
async function readRemoteManagedMarker(provider, input) {
|
|
139
|
+
const raw = await provider.readRepositoryFileContent(input.owner, input.repo, HARNESS_MANAGED_REPO_MARKER_FILE, input.defaultBranchHead, { signal: input.signal });
|
|
140
|
+
if (!raw) {
|
|
141
|
+
return {
|
|
142
|
+
ok: false,
|
|
143
|
+
status: "blocked_non_managed",
|
|
144
|
+
reason: "Managed repository marker is missing on the default branch.",
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
const parsed = parseHarnessManagedRepoMarkerJson(raw);
|
|
148
|
+
if (!parsed.ok) {
|
|
149
|
+
return {
|
|
150
|
+
ok: false,
|
|
151
|
+
status: "blocked_non_managed",
|
|
152
|
+
reason: parsed.reason,
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
if (!parsed.marker.createdFromPackageSnapshot) {
|
|
156
|
+
return {
|
|
157
|
+
ok: false,
|
|
158
|
+
status: "blocked_non_managed",
|
|
159
|
+
reason: "Managed repository was not created from a packaged workspace snapshot.",
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
return { ok: true, marker: parsed.marker };
|
|
163
|
+
}
|
|
164
|
+
async function buildRemoteFileHashes(provider, input) {
|
|
165
|
+
const hashes = {};
|
|
166
|
+
const total = input.paths.length;
|
|
167
|
+
let inspected = 0;
|
|
168
|
+
for (const filePath of input.paths) {
|
|
169
|
+
const content = await provider.readRepositoryFileContent(input.owner, input.repo, filePath, input.defaultBranchHead);
|
|
170
|
+
inspected += 1;
|
|
171
|
+
if (content !== null) {
|
|
172
|
+
hashes[filePath] = sha256Content(content);
|
|
173
|
+
}
|
|
174
|
+
if (input.onHeartbeat &&
|
|
175
|
+
(inspected % RUNNER_UPGRADE_HEARTBEAT_EVERY_FILES === 0 ||
|
|
176
|
+
inspected === total)) {
|
|
177
|
+
await input.onHeartbeat({
|
|
178
|
+
filesInspected: inspected,
|
|
179
|
+
filesTotal: total,
|
|
180
|
+
lastCompletedBatch: filePath,
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return hashes;
|
|
185
|
+
}
|
|
186
|
+
async function maybeHangForTest(stage, options) {
|
|
187
|
+
if (options?.testHangAfterStage !== stage) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
await new Promise((_resolve, reject) => {
|
|
191
|
+
const onAbort = () => {
|
|
192
|
+
reject(new RunnerUpgradeTimeoutError(`test hang aborted at ${stage}`, "testHangAfterStage", 0, stage));
|
|
193
|
+
};
|
|
194
|
+
if (options.signal?.aborted) {
|
|
195
|
+
onAbort();
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
options.signal?.addEventListener("abort", onAbort, { once: true });
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
async function resolveRunnerUpgradeContext(cwd, provider, mode = "worker", options = {}) {
|
|
202
|
+
const providerTimeoutMs = mode === "status"
|
|
203
|
+
? RUNNER_UPGRADE_STATUS_PROVIDER_TIMEOUT_MS
|
|
204
|
+
: RUNNER_UPGRADE_WORKER_PROVIDER_TIMEOUT_MS;
|
|
205
|
+
const timings = [];
|
|
206
|
+
const recordTiming = (timing) => {
|
|
207
|
+
timings.push(timing);
|
|
208
|
+
};
|
|
209
|
+
const tracker = options.tracker;
|
|
210
|
+
const signal = options.signal;
|
|
211
|
+
tracker?.begin("embedded_snapshot_identity");
|
|
212
|
+
throwIfRunnerUpgradeAborted(signal);
|
|
213
|
+
await maybeHangForTest("embedded_snapshot_identity", options);
|
|
214
|
+
const packagedSnapshot = mode === "status"
|
|
215
|
+
? await loadPackagedSnapshotIdentityForStatus(signal)
|
|
216
|
+
: await loadPackagedSnapshot();
|
|
217
|
+
tracker?.end();
|
|
218
|
+
if (!packagedSnapshot) {
|
|
219
|
+
if (mode === "status") {
|
|
220
|
+
recordRunnerUpgradeStatusCallTimings(timings);
|
|
221
|
+
}
|
|
222
|
+
return {
|
|
223
|
+
ok: false,
|
|
224
|
+
result: {
|
|
225
|
+
status: "failed",
|
|
226
|
+
statusLabel: runnerUpgradeStatusLabel("failed"),
|
|
227
|
+
blockedReason: "Embedded workspace snapshot is unavailable.",
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
try {
|
|
232
|
+
tracker?.begin("context_normalization");
|
|
233
|
+
throwIfRunnerUpgradeAborted(signal);
|
|
234
|
+
await maybeHangForTest("context_normalization", options);
|
|
235
|
+
const { repoSlug, owner, repo } = await resolveHarnessRepository(cwd);
|
|
236
|
+
tracker?.end();
|
|
237
|
+
tracker?.begin("provider_wrapper");
|
|
238
|
+
throwIfRunnerUpgradeAborted(signal);
|
|
239
|
+
await maybeHangForTest("provider_wrapper", options);
|
|
240
|
+
const metadata = await withTimedRunnerUpgradeCall("getRepositoryMetadata", providerTimeoutMs, (callSignal) => provider.getRepositoryMetadata(owner, repo, { signal: callSignal }), recordTiming, signal);
|
|
241
|
+
if (!metadata) {
|
|
242
|
+
tracker?.end();
|
|
243
|
+
if (mode === "status") {
|
|
244
|
+
recordRunnerUpgradeStatusCallTimings(timings);
|
|
245
|
+
}
|
|
246
|
+
return {
|
|
247
|
+
ok: false,
|
|
248
|
+
result: {
|
|
249
|
+
status: "failed",
|
|
250
|
+
statusLabel: runnerUpgradeStatusLabel("failed"),
|
|
251
|
+
blockedReason: `Harness repository ${repoSlug} is not accessible.`,
|
|
252
|
+
},
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
const defaultBranchHead = await withTimedRunnerUpgradeCall("getRepositoryDefaultBranchHead", providerTimeoutMs, (callSignal) => provider.getRepositoryDefaultBranchHead(owner, repo, metadata.defaultBranch, { signal: callSignal }), recordTiming, signal);
|
|
256
|
+
tracker?.end();
|
|
257
|
+
tracker?.begin("marker_parsing");
|
|
258
|
+
throwIfRunnerUpgradeAborted(signal);
|
|
259
|
+
await maybeHangForTest("marker_parsing", options);
|
|
260
|
+
const markerResult = await withTimedRunnerUpgradeCall("readRemoteManagedMarker", providerTimeoutMs, (callSignal) => readRemoteManagedMarker(provider, {
|
|
261
|
+
owner,
|
|
262
|
+
repo,
|
|
263
|
+
defaultBranch: metadata.defaultBranch,
|
|
264
|
+
defaultBranchHead,
|
|
265
|
+
signal: callSignal,
|
|
266
|
+
}), recordTiming, signal);
|
|
267
|
+
tracker?.end();
|
|
268
|
+
if (mode === "status") {
|
|
269
|
+
recordRunnerUpgradeStatusCallTimings(timings);
|
|
270
|
+
}
|
|
271
|
+
if (!markerResult.ok) {
|
|
272
|
+
return {
|
|
273
|
+
ok: false,
|
|
274
|
+
result: {
|
|
275
|
+
status: markerResult.status,
|
|
276
|
+
statusLabel: runnerUpgradeStatusLabel(markerResult.status),
|
|
277
|
+
blockedReason: markerResult.reason,
|
|
278
|
+
availableSnapshot: snapshotSummaryFromManifest(packagedSnapshot.manifest),
|
|
279
|
+
},
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
tracker?.begin("status_conversion");
|
|
283
|
+
throwIfRunnerUpgradeAborted(signal);
|
|
284
|
+
await maybeHangForTest("status_conversion", options);
|
|
285
|
+
const reconnect = validateManagedMarkerForReconnect(markerResult.marker, repoSlug, { repositoryId: metadata.id });
|
|
286
|
+
if (!reconnect.ok) {
|
|
287
|
+
tracker?.end();
|
|
288
|
+
return {
|
|
289
|
+
ok: false,
|
|
290
|
+
result: {
|
|
291
|
+
status: "blocked_non_managed",
|
|
292
|
+
statusLabel: runnerUpgradeStatusLabel("blocked_non_managed"),
|
|
293
|
+
blockedReason: reconnect.reason,
|
|
294
|
+
currentSnapshot: markerResult.marker.createdFromPackageSnapshot
|
|
295
|
+
? {
|
|
296
|
+
snapshotContentId: markerResult.marker.createdFromPackageSnapshot
|
|
297
|
+
.snapshotContentId,
|
|
298
|
+
packageVersion: markerResult.marker.createdFromPackageSnapshot.packageVersion,
|
|
299
|
+
sourceCommit: markerResult.marker.createdFromPackageSnapshot.sourceCommit,
|
|
300
|
+
}
|
|
301
|
+
: undefined,
|
|
302
|
+
availableSnapshot: snapshotSummaryFromManifest(packagedSnapshot.manifest),
|
|
303
|
+
},
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
tracker?.end();
|
|
307
|
+
return {
|
|
308
|
+
ok: true,
|
|
309
|
+
context: {
|
|
310
|
+
repoSlug,
|
|
311
|
+
owner,
|
|
312
|
+
repo,
|
|
313
|
+
repositoryId: metadata.id,
|
|
314
|
+
defaultBranch: metadata.defaultBranch,
|
|
315
|
+
defaultBranchHead,
|
|
316
|
+
marker: markerResult.marker,
|
|
317
|
+
packagedSnapshot,
|
|
318
|
+
},
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
catch (error) {
|
|
322
|
+
if (mode === "status") {
|
|
323
|
+
recordRunnerUpgradeStatusCallTimings(timings);
|
|
324
|
+
tracker?.markTimedOut();
|
|
325
|
+
}
|
|
326
|
+
if (error instanceof RunnerUpgradeTimeoutError || mode === "status") {
|
|
327
|
+
return {
|
|
328
|
+
ok: false,
|
|
329
|
+
result: {
|
|
330
|
+
status: "checking",
|
|
331
|
+
statusLabel: runnerUpgradeStatusLabel("checking"),
|
|
332
|
+
degraded: true,
|
|
333
|
+
blockedReason: error instanceof Error
|
|
334
|
+
? error.message
|
|
335
|
+
: "Runner upgrade status check timed out.",
|
|
336
|
+
retryGuidance: "Retry status shortly. GitHub did not respond within the page-status deadline.",
|
|
337
|
+
retryAvailable: true,
|
|
338
|
+
unresolvedStage: tracker?.unresolvedStage,
|
|
339
|
+
availableSnapshot: snapshotSummaryFromManifest(packagedSnapshot.manifest),
|
|
340
|
+
},
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
throw error;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
async function writeProgress(cwd, pending, phase, extras) {
|
|
347
|
+
const now = new Date().toISOString();
|
|
348
|
+
await writeRunnerUpgradeProgressAtomic({
|
|
349
|
+
operationId: pending.operationId,
|
|
350
|
+
phase,
|
|
351
|
+
phaseStartedAt: now,
|
|
352
|
+
startedAt: pending.startedAt,
|
|
353
|
+
canaryRunId: pending.canaryRunId,
|
|
354
|
+
canaryRunUrl: pending.canaryRunUrl,
|
|
355
|
+
prUrl: pending.prUrl,
|
|
356
|
+
workerHeartbeatAt: extras?.workerHeartbeatAt ?? now,
|
|
357
|
+
lastSuccessfulProviderCallAt: extras?.lastSuccessfulProviderCallAt,
|
|
358
|
+
filesInspected: extras?.filesInspected,
|
|
359
|
+
filesTotal: extras?.filesTotal,
|
|
360
|
+
lastCompletedBatch: extras?.lastCompletedBatch,
|
|
361
|
+
retryCount: extras?.retryCount,
|
|
362
|
+
retryable: extras?.retryable,
|
|
363
|
+
errorCode: extras?.errorCode,
|
|
364
|
+
lastCheckpoint: extras?.lastCheckpoint ?? phase,
|
|
365
|
+
recoveryInstruction: extras?.recoveryInstruction,
|
|
366
|
+
}, cwd);
|
|
367
|
+
}
|
|
368
|
+
async function compareUpgradeSnapshots(provider, context, options) {
|
|
369
|
+
const previousHashes = extractFileHashesFromMarker(context.marker);
|
|
370
|
+
const nextHashes = extractFileHashesFromManifest(context.packagedSnapshot.manifest);
|
|
371
|
+
const comparePaths = [
|
|
372
|
+
...new Set([
|
|
373
|
+
...Object.keys(previousHashes ?? {}),
|
|
374
|
+
...Object.keys(nextHashes),
|
|
375
|
+
]),
|
|
376
|
+
].sort();
|
|
377
|
+
const remoteHashes = await buildRemoteFileHashes(provider, {
|
|
378
|
+
owner: context.owner,
|
|
379
|
+
repo: context.repo,
|
|
380
|
+
defaultBranchHead: context.defaultBranchHead,
|
|
381
|
+
paths: comparePaths,
|
|
382
|
+
onHeartbeat: options?.onHeartbeat,
|
|
383
|
+
});
|
|
384
|
+
if (provider.listRepositoryTreePaths) {
|
|
385
|
+
const treePaths = await provider.listRepositoryTreePaths(context.owner, context.repo, context.defaultBranchHead);
|
|
386
|
+
const unexpected = findUnexpectedRemotePaths({
|
|
387
|
+
remoteTreePaths: treePaths.map((entry) => entry.path),
|
|
388
|
+
nextHashes,
|
|
389
|
+
previousHashes,
|
|
390
|
+
});
|
|
391
|
+
if (unexpected.length > 0) {
|
|
392
|
+
return {
|
|
393
|
+
ok: false,
|
|
394
|
+
status: "blocked_unexpected_remote",
|
|
395
|
+
message: `Unexpected remote paths outside packaged policy: ${unexpected.join(", ")}`,
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
const compare = compareThreeWayUpgrade({
|
|
400
|
+
previousHashes,
|
|
401
|
+
remoteHashes,
|
|
402
|
+
nextHashes,
|
|
403
|
+
previousSnapshotContentId: context.marker.createdFromPackageSnapshot?.snapshotContentId,
|
|
404
|
+
remoteSnapshotContentId: context.marker.createdFromPackageSnapshot?.snapshotContentId,
|
|
405
|
+
remoteTreeSha: context.marker.createdFromPackageSnapshot?.snapshotGitTreeSha1,
|
|
406
|
+
previousTreeSha: context.marker.createdFromPackageSnapshot?.snapshotGitTreeSha1,
|
|
407
|
+
});
|
|
408
|
+
if (!compare.ok) {
|
|
409
|
+
return {
|
|
410
|
+
ok: false,
|
|
411
|
+
status: compare.code === "operator_conflicts"
|
|
412
|
+
? "blocked_operator_conflicts"
|
|
413
|
+
: "blocked_non_managed",
|
|
414
|
+
conflictPaths: compare.conflictPaths,
|
|
415
|
+
message: compare.message,
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
const previewFingerprint = computePreviewFingerprint({
|
|
419
|
+
targetSnapshotContentId: context.packagedSnapshot.manifest.snapshotContentId,
|
|
420
|
+
replacePaths: compare.replacePaths,
|
|
421
|
+
deletePaths: compare.deletePaths,
|
|
422
|
+
repositoryId: context.repositoryId,
|
|
423
|
+
});
|
|
424
|
+
return {
|
|
425
|
+
ok: true,
|
|
426
|
+
previousHashes,
|
|
427
|
+
remoteHashes,
|
|
428
|
+
nextHashes,
|
|
429
|
+
replacePaths: compare.replacePaths,
|
|
430
|
+
deletePaths: compare.deletePaths,
|
|
431
|
+
previewFingerprint,
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
async function findExistingUpgradePullRequest(provider, input) {
|
|
435
|
+
const openPulls = await provider.listPullRequests(input.owner, input.repo, {
|
|
436
|
+
state: "open",
|
|
437
|
+
base: input.defaultBranch,
|
|
438
|
+
});
|
|
439
|
+
for (const pull of openPulls) {
|
|
440
|
+
const marker = parseRunnerUpgradePrMarker(pull.body);
|
|
441
|
+
if (marker &&
|
|
442
|
+
marker.repositoryId === input.repositoryId &&
|
|
443
|
+
marker.snapshotContentId === input.snapshotContentId) {
|
|
444
|
+
return {
|
|
445
|
+
number: pull.number,
|
|
446
|
+
htmlUrl: pull.htmlUrl,
|
|
447
|
+
headSha: pull.headSha,
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
const byBranch = openPulls.find((pull) => pull.headRef === input.branchName);
|
|
452
|
+
if (byBranch) {
|
|
453
|
+
return {
|
|
454
|
+
number: byBranch.number,
|
|
455
|
+
htmlUrl: byBranch.htmlUrl,
|
|
456
|
+
headSha: byBranch.headSha,
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
return null;
|
|
460
|
+
}
|
|
461
|
+
async function buildUpgradeCommitOnBranch(provider, context, input) {
|
|
462
|
+
const parentSha = context.defaultBranchHead;
|
|
463
|
+
const parentCommit = await provider.getGitCommit(context.owner, context.repo, parentSha);
|
|
464
|
+
const parentTreeSha = parentCommit.tree.sha;
|
|
465
|
+
const manifest = context.packagedSnapshot.manifest;
|
|
466
|
+
const blobShaByPath = new Map();
|
|
467
|
+
for (const filePath of input.replacePaths) {
|
|
468
|
+
const manifestFile = manifest.files.find((file) => file.path === filePath);
|
|
469
|
+
if (!manifestFile) {
|
|
470
|
+
throw new Error(`Packaged snapshot is missing ${filePath}.`);
|
|
471
|
+
}
|
|
472
|
+
const content = await loadWorkspaceSnapshotEntryContent({
|
|
473
|
+
snapshotRoot: context.packagedSnapshot.snapshotRoot,
|
|
474
|
+
path: filePath,
|
|
475
|
+
expectedSha256: manifestFile.sha256,
|
|
476
|
+
});
|
|
477
|
+
const blob = await provider.createGitBlob({
|
|
478
|
+
owner: context.owner,
|
|
479
|
+
repo: context.repo,
|
|
480
|
+
content,
|
|
481
|
+
});
|
|
482
|
+
blobShaByPath.set(filePath, blob.sha);
|
|
483
|
+
}
|
|
484
|
+
const markerContent = JSON.stringify(buildHarnessSnapshotManagedRepoMarker({
|
|
485
|
+
repository: context.repoSlug,
|
|
486
|
+
repositoryId: context.repositoryId,
|
|
487
|
+
manifest,
|
|
488
|
+
snapshotCommitSha: "pending",
|
|
489
|
+
defaultBranch: context.defaultBranch,
|
|
490
|
+
operationId: input.operationId,
|
|
491
|
+
pDevVersion: context.packagedSnapshot.packageVersion,
|
|
492
|
+
}), null, 2);
|
|
493
|
+
const markerBlob = await provider.createGitBlob({
|
|
494
|
+
owner: context.owner,
|
|
495
|
+
repo: context.repo,
|
|
496
|
+
content: Buffer.from(`${markerContent}\n`, "utf8"),
|
|
497
|
+
});
|
|
498
|
+
blobShaByPath.set(HARNESS_MANAGED_REPO_MARKER_FILE, markerBlob.sha);
|
|
499
|
+
const treeEntries = [
|
|
500
|
+
...input.replacePaths.map((filePath) => {
|
|
501
|
+
const manifestFile = manifest.files.find((file) => file.path === filePath);
|
|
502
|
+
return {
|
|
503
|
+
path: filePath,
|
|
504
|
+
mode: manifestFile?.mode ?? "100644",
|
|
505
|
+
type: "blob",
|
|
506
|
+
sha: blobShaByPath.get(filePath),
|
|
507
|
+
};
|
|
508
|
+
}),
|
|
509
|
+
...input.deletePaths.map((filePath) => ({
|
|
510
|
+
path: filePath,
|
|
511
|
+
mode: "100644",
|
|
512
|
+
type: "blob",
|
|
513
|
+
sha: null,
|
|
514
|
+
})),
|
|
515
|
+
{
|
|
516
|
+
path: HARNESS_MANAGED_REPO_MARKER_FILE,
|
|
517
|
+
mode: "100644",
|
|
518
|
+
type: "blob",
|
|
519
|
+
sha: markerBlob.sha,
|
|
520
|
+
},
|
|
521
|
+
];
|
|
522
|
+
const tree = await provider.createGitTree({
|
|
523
|
+
owner: context.owner,
|
|
524
|
+
repo: context.repo,
|
|
525
|
+
baseTree: parentTreeSha,
|
|
526
|
+
tree: treeEntries,
|
|
527
|
+
});
|
|
528
|
+
const commitIdentity = deriveProvisioningCommitIdentity({
|
|
529
|
+
operationId: input.operationId,
|
|
530
|
+
sourceCommit: manifest.sourceCommit,
|
|
531
|
+
});
|
|
532
|
+
const commit = await provider.createGitCommit({
|
|
533
|
+
owner: context.owner,
|
|
534
|
+
repo: context.repo,
|
|
535
|
+
message: `Update p-dev runner to ${manifest.packageVersion}`,
|
|
536
|
+
tree: tree.sha,
|
|
537
|
+
parents: [parentSha],
|
|
538
|
+
author: commitIdentity,
|
|
539
|
+
committer: commitIdentity,
|
|
540
|
+
});
|
|
541
|
+
let branchHeadSha = null;
|
|
542
|
+
try {
|
|
543
|
+
const existingRef = await provider.getGitRef(context.owner, context.repo, input.branchName);
|
|
544
|
+
branchHeadSha = existingRef.object.sha;
|
|
545
|
+
}
|
|
546
|
+
catch {
|
|
547
|
+
branchHeadSha = null;
|
|
548
|
+
}
|
|
549
|
+
if (branchHeadSha) {
|
|
550
|
+
await provider.updateGitRef({
|
|
551
|
+
owner: context.owner,
|
|
552
|
+
repo: context.repo,
|
|
553
|
+
ref: input.branchName,
|
|
554
|
+
sha: commit.sha,
|
|
555
|
+
expectedSha: branchHeadSha,
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
else if (provider.createGitRef) {
|
|
559
|
+
await provider.createGitRef({
|
|
560
|
+
owner: context.owner,
|
|
561
|
+
repo: context.repo,
|
|
562
|
+
ref: input.branchName,
|
|
563
|
+
sha: commit.sha,
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
else {
|
|
567
|
+
await provider.updateGitRef({
|
|
568
|
+
owner: context.owner,
|
|
569
|
+
repo: context.repo,
|
|
570
|
+
ref: input.branchName,
|
|
571
|
+
sha: commit.sha,
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
return { commitSha: commit.sha, headSha: commit.sha };
|
|
575
|
+
}
|
|
576
|
+
async function verifyProductionMarker(provider, context, targetSnapshotContentId) {
|
|
577
|
+
const headSha = await provider.getRepositoryDefaultBranchHead(context.owner, context.repo, context.defaultBranch);
|
|
578
|
+
const raw = await provider.readRepositoryFileContent(context.owner, context.repo, HARNESS_MANAGED_REPO_MARKER_FILE, headSha);
|
|
579
|
+
if (!raw) {
|
|
580
|
+
return { ok: false, message: "Production marker is missing after merge." };
|
|
581
|
+
}
|
|
582
|
+
const parsed = parseHarnessManagedRepoMarkerJson(raw);
|
|
583
|
+
if (!parsed.ok) {
|
|
584
|
+
return { ok: false, message: parsed.reason };
|
|
585
|
+
}
|
|
586
|
+
const remoteSnapshotContentId = parsed.marker.createdFromPackageSnapshot?.snapshotContentId;
|
|
587
|
+
if (remoteSnapshotContentId !== targetSnapshotContentId) {
|
|
588
|
+
return {
|
|
589
|
+
ok: false,
|
|
590
|
+
message: `Production marker snapshotContentId mismatch (expected ${targetSnapshotContentId}, found ${remoteSnapshotContentId ?? "none"}).`,
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
const remoteHashes = extractFileHashesFromMarker(parsed.marker);
|
|
594
|
+
if (remoteHashes) {
|
|
595
|
+
const nextHashes = extractFileHashesFromManifest(context.packagedSnapshot.manifest);
|
|
596
|
+
for (const [filePath, expectedHash] of Object.entries(nextHashes)) {
|
|
597
|
+
if (remoteHashes[filePath] !== expectedHash) {
|
|
598
|
+
return {
|
|
599
|
+
ok: false,
|
|
600
|
+
message: `Production marker file hash mismatch for ${filePath}.`,
|
|
601
|
+
};
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
return { ok: true };
|
|
606
|
+
}
|
|
607
|
+
async function pollCanaryRun(provider, input) {
|
|
608
|
+
const started = Date.now();
|
|
609
|
+
while (Date.now() - started < input.pollTimeoutMs) {
|
|
610
|
+
const run = await provider.getWorkflowRun(input.owner, input.repo, input.runId);
|
|
611
|
+
await input.onHeartbeat?.();
|
|
612
|
+
if (run.status === "completed") {
|
|
613
|
+
if (run.conclusion === "success") {
|
|
614
|
+
return { ok: true, run: { htmlUrl: run.htmlUrl } };
|
|
615
|
+
}
|
|
616
|
+
return {
|
|
617
|
+
ok: false,
|
|
618
|
+
message: `Configuration canary failed with conclusion ${run.conclusion ?? "unknown"}.`,
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
await new Promise((resolve) => setTimeout(resolve, input.pollIntervalMs));
|
|
622
|
+
}
|
|
623
|
+
return { ok: false, message: "Configuration canary timed out." };
|
|
624
|
+
}
|
|
625
|
+
function statusFromPending(pending) {
|
|
626
|
+
if (pending.lastError) {
|
|
627
|
+
const status = pending.lastStatus ??
|
|
628
|
+
(pending.codeUpdateComplete ? "partially_updated" : "failed");
|
|
629
|
+
return {
|
|
630
|
+
status,
|
|
631
|
+
statusLabel: runnerUpgradeStatusLabel(status),
|
|
632
|
+
pendingOperationId: pending.operationId,
|
|
633
|
+
pendingPhase: pending.phase,
|
|
634
|
+
blockedReason: pending.lastError,
|
|
635
|
+
conflictPaths: pending.conflictPaths,
|
|
636
|
+
prUrl: pending.prUrl,
|
|
637
|
+
canaryRunUrl: pending.canaryRunUrl,
|
|
638
|
+
retryGuidance: pending.codeUpdateComplete
|
|
639
|
+
? "Resume the runner upgrade to finish cloud sync or canary."
|
|
640
|
+
: "Retry or Resume the runner upgrade after reviewing the error.",
|
|
641
|
+
retryAvailable: true,
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
return {
|
|
645
|
+
status: pending.codeUpdateComplete ? "partially_updated" : "updating",
|
|
646
|
+
statusLabel: runnerUpgradeStatusLabel(pending.codeUpdateComplete ? "partially_updated" : "updating"),
|
|
647
|
+
pendingOperationId: pending.operationId,
|
|
648
|
+
pendingPhase: pending.phase,
|
|
649
|
+
prUrl: pending.prUrl,
|
|
650
|
+
canaryRunUrl: pending.canaryRunUrl,
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
async function withCachedIdentityFallback(cwd, result, availableSnapshot, debugTimings, tracker) {
|
|
654
|
+
const localManagedRepoEvidence = await hasLocalManagedRepoEvidence(cwd);
|
|
655
|
+
const cached = await readRunnerUpgradeLastVerifiedIdentity(cwd);
|
|
656
|
+
tracker?.commit();
|
|
657
|
+
const base = {
|
|
658
|
+
...result,
|
|
659
|
+
localManagedRepoEvidence,
|
|
660
|
+
availableSnapshot: result.availableSnapshot ?? availableSnapshot,
|
|
661
|
+
unresolvedStage: result.unresolvedStage ?? tracker?.unresolvedStage,
|
|
662
|
+
retryAvailable: result.retryAvailable ??
|
|
663
|
+
(result.status === "checking" || result.degraded === true),
|
|
664
|
+
debugTimings: debugTimings ? tracker?.snapshot() : result.debugTimings,
|
|
665
|
+
};
|
|
666
|
+
if (base.currentSnapshot || !cached) {
|
|
667
|
+
return base;
|
|
668
|
+
}
|
|
669
|
+
return {
|
|
670
|
+
...base,
|
|
671
|
+
currentSnapshot: lastVerifiedToSnapshotSummary(cached),
|
|
672
|
+
currentSnapshotCached: true,
|
|
673
|
+
currentSnapshotVerifiedAt: cached.verifiedAt,
|
|
674
|
+
};
|
|
675
|
+
}
|
|
676
|
+
export async function loadRunnerUpgradeStatus(cwd, provider, options = {}) {
|
|
677
|
+
const workspaceKey = options.workspaceKey ?? cwd ?? process.cwd();
|
|
678
|
+
const { signal, controller } = options.signal
|
|
679
|
+
? { signal: options.signal, controller: null }
|
|
680
|
+
: beginRunnerUpgradeStatusRequest(workspaceKey);
|
|
681
|
+
const tracker = new RunnerUpgradeStatusStageTracker();
|
|
682
|
+
const deadlineMs = options.overallDeadlineMs ?? RUNNER_UPGRADE_STATUS_OVERALL_DEADLINE_MS;
|
|
683
|
+
const run = async (requestSignal) => {
|
|
684
|
+
tracker.begin("local_state_reads");
|
|
685
|
+
throwIfRunnerUpgradeAborted(requestSignal);
|
|
686
|
+
const pending = await readRunnerUpgradePendingState(cwd);
|
|
687
|
+
const localManagedRepoEvidence = await hasLocalManagedRepoEvidence(cwd);
|
|
688
|
+
tracker.end();
|
|
689
|
+
if (pending) {
|
|
690
|
+
tracker.begin("reconciliation_enqueue");
|
|
691
|
+
if (!pending.lastError &&
|
|
692
|
+
!isRunnerUpgradeOperationActive(pending.operationId)) {
|
|
693
|
+
// Enqueue only — never await worker/mutex work on the status path.
|
|
694
|
+
void reconcileAbandonedRunnerUpgrades(cwd);
|
|
695
|
+
}
|
|
696
|
+
tracker.end();
|
|
697
|
+
tracker.begin("status_conversion");
|
|
698
|
+
const fromPending = statusFromPending(pending);
|
|
699
|
+
tracker.end();
|
|
700
|
+
return withCachedIdentityFallback(cwd, {
|
|
701
|
+
...fromPending,
|
|
702
|
+
localManagedRepoEvidence,
|
|
703
|
+
}, undefined, options.debugTimings, tracker);
|
|
704
|
+
}
|
|
705
|
+
tracker.begin("embedded_snapshot_identity");
|
|
706
|
+
throwIfRunnerUpgradeAborted(requestSignal);
|
|
707
|
+
const packagedSnapshot = await loadPackagedSnapshotIdentityForStatus(requestSignal);
|
|
708
|
+
tracker.end();
|
|
709
|
+
const availableSnapshot = packagedSnapshot
|
|
710
|
+
? snapshotSummaryFromManifest(packagedSnapshot.manifest)
|
|
711
|
+
: undefined;
|
|
712
|
+
const checkingTimeout = (unresolvedStage, blockedReason) => withCachedIdentityFallback(cwd, {
|
|
713
|
+
status: "checking",
|
|
714
|
+
statusLabel: runnerUpgradeStatusLabel("checking"),
|
|
715
|
+
degraded: true,
|
|
716
|
+
localManagedRepoEvidence,
|
|
717
|
+
availableSnapshot,
|
|
718
|
+
blockedReason: blockedReason ??
|
|
719
|
+
`runner-upgrade-status overall deadline exceeded after ${deadlineMs}ms.`,
|
|
720
|
+
retryGuidance: "Retry status shortly. GitHub did not respond within the page-status deadline.",
|
|
721
|
+
retryAvailable: true,
|
|
722
|
+
unresolvedStage,
|
|
723
|
+
}, availableSnapshot, options.debugTimings, tracker);
|
|
724
|
+
return withRunnerUpgradeStatusDeadline(deadlineMs, requestSignal, () => {
|
|
725
|
+
if (!requestSignal.aborted) {
|
|
726
|
+
controller?.abort();
|
|
727
|
+
}
|
|
728
|
+
}, async (deadlineSignal) => {
|
|
729
|
+
const resolved = await resolveRunnerUpgradeContext(cwd, provider, "status", {
|
|
730
|
+
signal: deadlineSignal,
|
|
731
|
+
tracker,
|
|
732
|
+
testHangAfterStage: options.testHangAfterStage,
|
|
733
|
+
debugTimings: options.debugTimings,
|
|
734
|
+
});
|
|
735
|
+
if (!resolved.ok) {
|
|
736
|
+
return withCachedIdentityFallback(cwd, {
|
|
737
|
+
...resolved.result,
|
|
738
|
+
localManagedRepoEvidence,
|
|
739
|
+
retryAvailable: resolved.result.status === "checking" ||
|
|
740
|
+
resolved.result.degraded === true,
|
|
741
|
+
}, availableSnapshot, options.debugTimings, tracker);
|
|
742
|
+
}
|
|
743
|
+
const { context } = resolved;
|
|
744
|
+
tracker.begin("status_conversion");
|
|
745
|
+
throwIfRunnerUpgradeAborted(deadlineSignal);
|
|
746
|
+
const currentSnapshot = snapshotSummaryFromManifest(context.marker.createdFromPackageSnapshot
|
|
747
|
+
? {
|
|
748
|
+
...context.packagedSnapshot.manifest,
|
|
749
|
+
snapshotContentId: context.marker.createdFromPackageSnapshot.snapshotContentId,
|
|
750
|
+
packageVersion: context.marker.createdFromPackageSnapshot.packageVersion,
|
|
751
|
+
sourceCommit: context.marker.createdFromPackageSnapshot.sourceCommit,
|
|
752
|
+
}
|
|
753
|
+
: context.packagedSnapshot.manifest);
|
|
754
|
+
const verifiedAt = new Date().toISOString();
|
|
755
|
+
await writeRunnerUpgradeLastVerifiedIdentity({
|
|
756
|
+
...currentSnapshot,
|
|
757
|
+
verifiedAt,
|
|
758
|
+
repoSlug: context.repoSlug,
|
|
759
|
+
}, cwd);
|
|
760
|
+
tracker.end();
|
|
761
|
+
if (currentSnapshot.snapshotContentId ===
|
|
762
|
+
availableSnapshot?.snapshotContentId) {
|
|
763
|
+
return withCachedIdentityFallback(cwd, {
|
|
764
|
+
status: "up_to_date",
|
|
765
|
+
statusLabel: runnerUpgradeStatusLabel("up_to_date"),
|
|
766
|
+
currentSnapshot,
|
|
767
|
+
availableSnapshot,
|
|
768
|
+
localManagedRepoEvidence,
|
|
769
|
+
currentSnapshotVerifiedAt: verifiedAt,
|
|
770
|
+
}, availableSnapshot, options.debugTimings, tracker);
|
|
771
|
+
}
|
|
772
|
+
return withCachedIdentityFallback(cwd, {
|
|
773
|
+
status: "update_available",
|
|
774
|
+
statusLabel: runnerUpgradeStatusLabel("update_available"),
|
|
775
|
+
currentSnapshot,
|
|
776
|
+
availableSnapshot,
|
|
777
|
+
localManagedRepoEvidence,
|
|
778
|
+
currentSnapshotVerifiedAt: verifiedAt,
|
|
779
|
+
}, availableSnapshot, options.debugTimings, tracker);
|
|
780
|
+
}, (unresolvedStage) => checkingTimeout(unresolvedStage), tracker);
|
|
781
|
+
};
|
|
782
|
+
try {
|
|
783
|
+
return await run(signal);
|
|
784
|
+
}
|
|
785
|
+
finally {
|
|
786
|
+
if (controller) {
|
|
787
|
+
endRunnerUpgradeStatusRequest(workspaceKey, controller);
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
export async function previewRunnerUpgrade(cwd, provider) {
|
|
792
|
+
const resolved = await resolveRunnerUpgradeContext(cwd, provider);
|
|
793
|
+
if (!resolved.ok) {
|
|
794
|
+
return {
|
|
795
|
+
previewFingerprint: "",
|
|
796
|
+
targetSnapshotContentId: "",
|
|
797
|
+
phases: ALL_RUNNER_UPGRADE_PHASES,
|
|
798
|
+
blocked: true,
|
|
799
|
+
blockedStatus: resolved.result.status,
|
|
800
|
+
message: resolved.result.blockedReason,
|
|
801
|
+
impact: {
|
|
802
|
+
replacePathCount: 0,
|
|
803
|
+
deletePathCount: 0,
|
|
804
|
+
sampleReplacePaths: [],
|
|
805
|
+
sampleDeletePaths: [],
|
|
806
|
+
},
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
const compare = await compareUpgradeSnapshots(provider, resolved.context);
|
|
810
|
+
if (!compare.ok) {
|
|
811
|
+
return {
|
|
812
|
+
previewFingerprint: "",
|
|
813
|
+
targetSnapshotContentId: resolved.context.packagedSnapshot.manifest.snapshotContentId,
|
|
814
|
+
currentSnapshotContentId: resolved.context.marker.createdFromPackageSnapshot?.snapshotContentId,
|
|
815
|
+
phases: ALL_RUNNER_UPGRADE_PHASES,
|
|
816
|
+
blocked: true,
|
|
817
|
+
blockedStatus: compare.status,
|
|
818
|
+
conflictPaths: compare.conflictPaths,
|
|
819
|
+
message: compare.message,
|
|
820
|
+
impact: {
|
|
821
|
+
replacePathCount: 0,
|
|
822
|
+
deletePathCount: 0,
|
|
823
|
+
sampleReplacePaths: [],
|
|
824
|
+
sampleDeletePaths: [],
|
|
825
|
+
},
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
return {
|
|
829
|
+
previewFingerprint: compare.previewFingerprint,
|
|
830
|
+
targetSnapshotContentId: resolved.context.packagedSnapshot.manifest.snapshotContentId,
|
|
831
|
+
currentSnapshotContentId: resolved.context.marker.createdFromPackageSnapshot?.snapshotContentId,
|
|
832
|
+
impact: buildImpactSummary({
|
|
833
|
+
replacePaths: compare.replacePaths,
|
|
834
|
+
deletePaths: compare.deletePaths,
|
|
835
|
+
}),
|
|
836
|
+
phases: ALL_RUNNER_UPGRADE_PHASES,
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
async function buildAcceptedPendingState(cwd, options = {}) {
|
|
840
|
+
const existing = await readRunnerUpgradePendingState(cwd);
|
|
841
|
+
if (existing) {
|
|
842
|
+
const next = {
|
|
843
|
+
...existing,
|
|
844
|
+
previewFingerprint: options.previewFingerprint ?? existing.previewFingerprint,
|
|
845
|
+
};
|
|
846
|
+
if (options.resume || existing.lastError) {
|
|
847
|
+
delete next.lastError;
|
|
848
|
+
delete next.lastStatus;
|
|
849
|
+
}
|
|
850
|
+
return next;
|
|
851
|
+
}
|
|
852
|
+
const packagedSnapshot = await loadPackagedSnapshot();
|
|
853
|
+
if (!packagedSnapshot) {
|
|
854
|
+
throw new Error("Embedded workspace snapshot is unavailable.");
|
|
855
|
+
}
|
|
856
|
+
const { repoSlug } = await resolveHarnessRepository(cwd);
|
|
857
|
+
let repositoryId = 0;
|
|
858
|
+
let defaultBranch = "main";
|
|
859
|
+
try {
|
|
860
|
+
const localMarkerRaw = await readLocalManagedRepoMarker(cwd);
|
|
861
|
+
if (localMarkerRaw) {
|
|
862
|
+
const parsed = parseHarnessManagedRepoMarkerJson(localMarkerRaw);
|
|
863
|
+
if (parsed.ok) {
|
|
864
|
+
repositoryId = parsed.marker.repositoryId ?? repositoryId;
|
|
865
|
+
defaultBranch =
|
|
866
|
+
parsed.marker.createdFromTemplate?.defaultBranch ?? defaultBranch;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
catch {
|
|
871
|
+
// Local marker is optional for accept.
|
|
872
|
+
}
|
|
873
|
+
return {
|
|
874
|
+
operationId: randomUUID(),
|
|
875
|
+
repositoryId,
|
|
876
|
+
repoSlug,
|
|
877
|
+
defaultBranch,
|
|
878
|
+
targetSnapshotContentId: packagedSnapshot.manifest.snapshotContentId,
|
|
879
|
+
phase: "verifying-managed-repository",
|
|
880
|
+
startedAt: new Date().toISOString(),
|
|
881
|
+
previewFingerprint: options.previewFingerprint ?? "",
|
|
882
|
+
syncInProgress: false,
|
|
883
|
+
codeUpdateComplete: false,
|
|
884
|
+
branchName: buildRunnerUpgradeBranchName(packagedSnapshot.manifest.snapshotContentId),
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Accept an upgrade: write durable pending/progress locally, enqueue the
|
|
889
|
+
* process-level worker, and return before any remote provider work.
|
|
890
|
+
*/
|
|
891
|
+
export async function acceptRunnerUpgrade(cwd, options = {}) {
|
|
892
|
+
const workspaceDir = cwd ?? process.cwd();
|
|
893
|
+
return withHarnessRunnerUpgradeMutex(workspaceDir, async () => {
|
|
894
|
+
const pending = await buildAcceptedPendingState(cwd, options);
|
|
895
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
896
|
+
const progress = await writeRunnerUpgradeProgressAtomic({
|
|
897
|
+
operationId: pending.operationId,
|
|
898
|
+
phase: pending.phase,
|
|
899
|
+
phaseStartedAt: new Date().toISOString(),
|
|
900
|
+
startedAt: pending.startedAt,
|
|
901
|
+
canaryRunId: pending.canaryRunId,
|
|
902
|
+
canaryRunUrl: pending.canaryRunUrl,
|
|
903
|
+
prUrl: pending.prUrl,
|
|
904
|
+
workerHeartbeatAt: new Date().toISOString(),
|
|
905
|
+
lastCheckpoint: pending.phase,
|
|
906
|
+
}, cwd);
|
|
907
|
+
enqueueRunnerUpgradeOperation(pending.operationId, cwd);
|
|
908
|
+
return {
|
|
909
|
+
apply: {
|
|
910
|
+
operationId: pending.operationId,
|
|
911
|
+
status: "updating",
|
|
912
|
+
phase: pending.phase,
|
|
913
|
+
previewFingerprint: pending.previewFingerprint,
|
|
914
|
+
message: "Runner upgrade accepted and queued.",
|
|
915
|
+
},
|
|
916
|
+
progress,
|
|
917
|
+
};
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Execute a previously accepted upgrade from durable pending state.
|
|
922
|
+
* Owned by the process-level worker (or sync unit tests via executeInline).
|
|
923
|
+
*/
|
|
924
|
+
export async function executeRunnerUpgradeOperation(cwd, provider, options = {}) {
|
|
925
|
+
return applyRunnerUpgradeInternal(cwd, provider, options);
|
|
926
|
+
}
|
|
927
|
+
async function applyRunnerUpgradeInternal(cwd, provider, options = {}) {
|
|
928
|
+
let pending = await readRunnerUpgradePendingState(cwd);
|
|
929
|
+
const startedAt = pending?.startedAt ?? new Date().toISOString();
|
|
930
|
+
const operationId = pending?.operationId ?? randomUUID();
|
|
931
|
+
if (!pending) {
|
|
932
|
+
pending = await buildAcceptedPendingState(cwd, {
|
|
933
|
+
previewFingerprint: options.previewFingerprint,
|
|
934
|
+
});
|
|
935
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
936
|
+
await writeProgress(cwd, pending, pending.phase, {
|
|
937
|
+
workerHeartbeatAt: new Date().toISOString(),
|
|
938
|
+
lastSuccessfulProviderCallAt: undefined,
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
else {
|
|
942
|
+
await writeProgress(cwd, pending, pending.phase, {
|
|
943
|
+
workerHeartbeatAt: new Date().toISOString(),
|
|
944
|
+
});
|
|
945
|
+
}
|
|
946
|
+
const resolved = await resolveRunnerUpgradeContext(cwd, provider, "worker");
|
|
947
|
+
if (!resolved.ok) {
|
|
948
|
+
pending.lastError = resolved.result.blockedReason;
|
|
949
|
+
pending.lastStatus = resolved.result.status;
|
|
950
|
+
pending.phase = "verifying-managed-repository";
|
|
951
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
952
|
+
await writeProgress(cwd, pending, pending.phase, {
|
|
953
|
+
retryable: true,
|
|
954
|
+
errorCode: "verify_managed_repository_failed",
|
|
955
|
+
});
|
|
956
|
+
return {
|
|
957
|
+
operationId,
|
|
958
|
+
status: resolved.result.status,
|
|
959
|
+
phase: "verifying-managed-repository",
|
|
960
|
+
previewFingerprint: pending.previewFingerprint,
|
|
961
|
+
message: resolved.result.blockedReason,
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
const context = resolved.context;
|
|
965
|
+
if (context.marker.createdFromPackageSnapshot) {
|
|
966
|
+
await writeRunnerUpgradeLastVerifiedIdentity({
|
|
967
|
+
snapshotContentId: context.marker.createdFromPackageSnapshot.snapshotContentId,
|
|
968
|
+
packageVersion: context.marker.createdFromPackageSnapshot.packageVersion,
|
|
969
|
+
sourceCommit: context.marker.createdFromPackageSnapshot.sourceCommit,
|
|
970
|
+
verifiedAt: new Date().toISOString(),
|
|
971
|
+
repoSlug: context.repoSlug,
|
|
972
|
+
}, cwd);
|
|
973
|
+
}
|
|
974
|
+
pending.repositoryId = context.repositoryId;
|
|
975
|
+
pending.repoSlug = context.repoSlug;
|
|
976
|
+
pending.defaultBranch = context.defaultBranch;
|
|
977
|
+
pending.targetSnapshotContentId =
|
|
978
|
+
context.packagedSnapshot.manifest.snapshotContentId;
|
|
979
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
980
|
+
await writeProgress(cwd, pending, pending.phase, {
|
|
981
|
+
lastSuccessfulProviderCallAt: new Date().toISOString(),
|
|
982
|
+
workerHeartbeatAt: new Date().toISOString(),
|
|
983
|
+
});
|
|
984
|
+
if (context.marker.createdFromPackageSnapshot?.snapshotContentId ===
|
|
985
|
+
context.packagedSnapshot.manifest.snapshotContentId &&
|
|
986
|
+
!pending.codeUpdateComplete) {
|
|
987
|
+
await clearRunnerUpgradePendingState(cwd);
|
|
988
|
+
return {
|
|
989
|
+
operationId,
|
|
990
|
+
status: "up_to_date",
|
|
991
|
+
phase: "verifying-managed-repository",
|
|
992
|
+
previewFingerprint: pending.previewFingerprint,
|
|
993
|
+
message: "Runner is already up to date.",
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
let compare = null;
|
|
997
|
+
if (!pending.codeUpdateComplete) {
|
|
998
|
+
pending.phase = "comparing-runner-snapshots";
|
|
999
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1000
|
+
await writeProgress(cwd, pending, pending.phase, {
|
|
1001
|
+
workerHeartbeatAt: new Date().toISOString(),
|
|
1002
|
+
});
|
|
1003
|
+
compare = await compareUpgradeSnapshots(provider, context, {
|
|
1004
|
+
onHeartbeat: async (heartbeat) => {
|
|
1005
|
+
await writeProgress(cwd, pending, pending.phase, {
|
|
1006
|
+
workerHeartbeatAt: new Date().toISOString(),
|
|
1007
|
+
lastSuccessfulProviderCallAt: new Date().toISOString(),
|
|
1008
|
+
filesInspected: heartbeat.filesInspected,
|
|
1009
|
+
filesTotal: heartbeat.filesTotal,
|
|
1010
|
+
lastCompletedBatch: heartbeat.lastCompletedBatch,
|
|
1011
|
+
lastCheckpoint: "comparing-runner-snapshots",
|
|
1012
|
+
});
|
|
1013
|
+
},
|
|
1014
|
+
});
|
|
1015
|
+
if (!compare.ok) {
|
|
1016
|
+
pending.phase = "comparing-runner-snapshots";
|
|
1017
|
+
pending.conflictPaths = compare.conflictPaths;
|
|
1018
|
+
pending.lastError = compare.message;
|
|
1019
|
+
pending.syncInProgress = false;
|
|
1020
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1021
|
+
await writeProgress(cwd, pending, pending.phase, {
|
|
1022
|
+
retryable: true,
|
|
1023
|
+
errorCode: compare.status,
|
|
1024
|
+
});
|
|
1025
|
+
return {
|
|
1026
|
+
operationId,
|
|
1027
|
+
status: compare.status,
|
|
1028
|
+
phase: "comparing-runner-snapshots",
|
|
1029
|
+
previewFingerprint: pending.previewFingerprint,
|
|
1030
|
+
message: compare.message,
|
|
1031
|
+
};
|
|
1032
|
+
}
|
|
1033
|
+
if (options.previewFingerprint &&
|
|
1034
|
+
options.previewFingerprint !== compare.previewFingerprint) {
|
|
1035
|
+
pending.lastError =
|
|
1036
|
+
"Preview fingerprint mismatch; re-run preview before applying.";
|
|
1037
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1038
|
+
await writeProgress(cwd, pending, pending.phase, {
|
|
1039
|
+
retryable: true,
|
|
1040
|
+
errorCode: "preview_fingerprint_mismatch",
|
|
1041
|
+
});
|
|
1042
|
+
return {
|
|
1043
|
+
operationId,
|
|
1044
|
+
status: "failed",
|
|
1045
|
+
phase: "comparing-runner-snapshots",
|
|
1046
|
+
previewFingerprint: compare.previewFingerprint,
|
|
1047
|
+
message: pending.lastError,
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
const previewFingerprint = pending.previewFingerprint || compare?.previewFingerprint || "";
|
|
1052
|
+
pending.previewFingerprint = previewFingerprint;
|
|
1053
|
+
const branchName = pending.branchName ??
|
|
1054
|
+
buildRunnerUpgradeBranchName(context.packagedSnapshot.manifest.snapshotContentId);
|
|
1055
|
+
pending.branchName = branchName;
|
|
1056
|
+
const targetSnapshotContentId = context.packagedSnapshot.manifest.snapshotContentId;
|
|
1057
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1058
|
+
await writeProgress(cwd, pending, pending.phase, {
|
|
1059
|
+
lastSuccessfulProviderCallAt: new Date().toISOString(),
|
|
1060
|
+
workerHeartbeatAt: new Date().toISOString(),
|
|
1061
|
+
});
|
|
1062
|
+
if (!pending.codeUpdateComplete) {
|
|
1063
|
+
pending.phase = "preparing-upgrade-commit";
|
|
1064
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1065
|
+
await writeProgress(cwd, pending, pending.phase, {
|
|
1066
|
+
workerHeartbeatAt: new Date().toISOString(),
|
|
1067
|
+
});
|
|
1068
|
+
const upgradeCommit = await buildUpgradeCommitOnBranch(provider, context, {
|
|
1069
|
+
operationId,
|
|
1070
|
+
branchName,
|
|
1071
|
+
replacePaths: compare.replacePaths,
|
|
1072
|
+
deletePaths: compare.deletePaths,
|
|
1073
|
+
});
|
|
1074
|
+
await writeProgress(cwd, pending, pending.phase, {
|
|
1075
|
+
lastSuccessfulProviderCallAt: new Date().toISOString(),
|
|
1076
|
+
workerHeartbeatAt: new Date().toISOString(),
|
|
1077
|
+
});
|
|
1078
|
+
pending.phase = "updating-managed-runner";
|
|
1079
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1080
|
+
await writeProgress(cwd, pending, pending.phase);
|
|
1081
|
+
let pr = await findExistingUpgradePullRequest(provider, {
|
|
1082
|
+
owner: context.owner,
|
|
1083
|
+
repo: context.repo,
|
|
1084
|
+
repositoryId: context.repositoryId,
|
|
1085
|
+
snapshotContentId: targetSnapshotContentId,
|
|
1086
|
+
defaultBranch: context.defaultBranch,
|
|
1087
|
+
branchName,
|
|
1088
|
+
});
|
|
1089
|
+
if (!pr) {
|
|
1090
|
+
const created = await provider.createPullRequest({
|
|
1091
|
+
owner: context.owner,
|
|
1092
|
+
repo: context.repo,
|
|
1093
|
+
title: `Update p-dev runner to ${context.packagedSnapshot.packageVersion}`,
|
|
1094
|
+
head: branchName,
|
|
1095
|
+
base: context.defaultBranch,
|
|
1096
|
+
body: [
|
|
1097
|
+
buildRunnerUpgradePrMarker(context.repositoryId, targetSnapshotContentId),
|
|
1098
|
+
"",
|
|
1099
|
+
`Updates the managed p-dev runner workspace to package ${context.packagedSnapshot.packageVersion}.`,
|
|
1100
|
+
].join("\n"),
|
|
1101
|
+
});
|
|
1102
|
+
pr = {
|
|
1103
|
+
number: created.number,
|
|
1104
|
+
htmlUrl: created.htmlUrl,
|
|
1105
|
+
headSha: upgradeCommit.headSha,
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
pending.prUrl = pr.htmlUrl;
|
|
1109
|
+
pending.prNumber = pr.number;
|
|
1110
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1111
|
+
await writeProgress(cwd, pending, pending.phase);
|
|
1112
|
+
const latestHeadRef = await provider.getGitRef(context.owner, context.repo, branchName);
|
|
1113
|
+
const mergeHeadSha = latestHeadRef.object.sha;
|
|
1114
|
+
await provider.mergePullRequest(context.owner, context.repo, pr.number, {
|
|
1115
|
+
mergeMethod: "squash",
|
|
1116
|
+
commitTitle: `Update p-dev runner to ${context.packagedSnapshot.packageVersion}`,
|
|
1117
|
+
expectedHeadSha: mergeHeadSha,
|
|
1118
|
+
});
|
|
1119
|
+
pending.phase = "verifying-runner-on-production-branch";
|
|
1120
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1121
|
+
await writeProgress(cwd, pending, pending.phase);
|
|
1122
|
+
const productionCheck = await verifyProductionMarker(provider, context, targetSnapshotContentId);
|
|
1123
|
+
if (!productionCheck.ok) {
|
|
1124
|
+
pending.lastError = productionCheck.message;
|
|
1125
|
+
pending.phase = "verifying-runner-on-production-branch";
|
|
1126
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1127
|
+
await writeProgress(cwd, pending, pending.phase);
|
|
1128
|
+
return {
|
|
1129
|
+
operationId,
|
|
1130
|
+
status: "failed",
|
|
1131
|
+
phase: pending.phase,
|
|
1132
|
+
previewFingerprint,
|
|
1133
|
+
prUrl: pending.prUrl,
|
|
1134
|
+
prNumber: pending.prNumber,
|
|
1135
|
+
branchName,
|
|
1136
|
+
message: productionCheck.message,
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
pending.codeUpdateComplete = true;
|
|
1140
|
+
pending.phase = "synchronizing-cloud-configuration";
|
|
1141
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1142
|
+
await writeProgress(cwd, pending, pending.phase);
|
|
1143
|
+
}
|
|
1144
|
+
pending.syncInProgress = true;
|
|
1145
|
+
pending.phase = "synchronizing-cloud-configuration";
|
|
1146
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1147
|
+
await writeProgress(cwd, pending, pending.phase);
|
|
1148
|
+
try {
|
|
1149
|
+
const syncResult = await syncHarnessConfigCloudPair({
|
|
1150
|
+
cwd,
|
|
1151
|
+
provider: asRemoteSetupProviderForRunnerUpgrade(provider),
|
|
1152
|
+
harnessRepository: context.repoSlug,
|
|
1153
|
+
});
|
|
1154
|
+
pending.expectedFingerprint = syncResult.fingerprint;
|
|
1155
|
+
}
|
|
1156
|
+
catch (error) {
|
|
1157
|
+
pending.lastError =
|
|
1158
|
+
error instanceof Error ? error.message : "Cloud configuration sync failed.";
|
|
1159
|
+
pending.syncInProgress = false;
|
|
1160
|
+
pending.phase = "synchronizing-cloud-configuration";
|
|
1161
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1162
|
+
await writeProgress(cwd, pending, pending.phase);
|
|
1163
|
+
return {
|
|
1164
|
+
operationId,
|
|
1165
|
+
status: "partially_updated",
|
|
1166
|
+
phase: pending.phase,
|
|
1167
|
+
previewFingerprint,
|
|
1168
|
+
prUrl: pending.prUrl,
|
|
1169
|
+
prNumber: pending.prNumber,
|
|
1170
|
+
branchName,
|
|
1171
|
+
message: pending.lastError,
|
|
1172
|
+
};
|
|
1173
|
+
}
|
|
1174
|
+
pending.phase = "running-configuration-canary";
|
|
1175
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1176
|
+
await writeProgress(cwd, pending, pending.phase);
|
|
1177
|
+
const canaryOperationId = randomUUID();
|
|
1178
|
+
// GitHub workflow_dispatch returns 204 with no run id — locate by operation id.
|
|
1179
|
+
await provider.dispatchWorkflow(context.owner, context.repo, RUNNER_UPGRADE_CANARY_WORKFLOW_PATH, context.defaultBranch, { [CANARY_OPERATION_ID_INPUT]: canaryOperationId });
|
|
1180
|
+
const located = await locateCanaryRunByOperationId(provider, {
|
|
1181
|
+
owner: context.owner,
|
|
1182
|
+
repo: context.repo,
|
|
1183
|
+
operationId: canaryOperationId,
|
|
1184
|
+
ref: context.defaultBranch,
|
|
1185
|
+
pollIntervalMs: options.canaryPollIntervalMs ?? DEFAULT_CANARY_POLL_INTERVAL_MS,
|
|
1186
|
+
pollTimeoutMs: Math.min(options.canaryPollTimeoutMs ?? DEFAULT_CANARY_POLL_TIMEOUT_MS, 60_000),
|
|
1187
|
+
});
|
|
1188
|
+
if (!located) {
|
|
1189
|
+
pending.lastError = `Could not locate canary workflow run for operation id ${canaryOperationId} after workflow_dispatch (204).`;
|
|
1190
|
+
pending.syncInProgress = false;
|
|
1191
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1192
|
+
await writeProgress(cwd, pending, pending.phase);
|
|
1193
|
+
return {
|
|
1194
|
+
operationId,
|
|
1195
|
+
status: "partially_updated",
|
|
1196
|
+
phase: pending.phase,
|
|
1197
|
+
previewFingerprint,
|
|
1198
|
+
prUrl: pending.prUrl,
|
|
1199
|
+
prNumber: pending.prNumber,
|
|
1200
|
+
branchName,
|
|
1201
|
+
message: pending.lastError,
|
|
1202
|
+
};
|
|
1203
|
+
}
|
|
1204
|
+
pending.canaryRunId = String(located.id);
|
|
1205
|
+
const canaryPoll = await pollCanaryRun(provider, {
|
|
1206
|
+
owner: context.owner,
|
|
1207
|
+
repo: context.repo,
|
|
1208
|
+
runId: located.id,
|
|
1209
|
+
pollIntervalMs: options.canaryPollIntervalMs ?? DEFAULT_CANARY_POLL_INTERVAL_MS,
|
|
1210
|
+
pollTimeoutMs: options.canaryPollTimeoutMs ?? DEFAULT_CANARY_POLL_TIMEOUT_MS,
|
|
1211
|
+
onHeartbeat: async () => {
|
|
1212
|
+
await writeProgress(cwd, pending, pending.phase, {
|
|
1213
|
+
lastSuccessfulProviderCallAt: new Date().toISOString(),
|
|
1214
|
+
workerHeartbeatAt: new Date().toISOString(),
|
|
1215
|
+
lastCheckpoint: "running-configuration-canary",
|
|
1216
|
+
});
|
|
1217
|
+
},
|
|
1218
|
+
});
|
|
1219
|
+
if (!canaryPoll.ok) {
|
|
1220
|
+
pending.canaryRunUrl =
|
|
1221
|
+
located.htmlUrl ??
|
|
1222
|
+
`https://github.com/${context.owner}/${context.repo}/actions/runs/${located.id}`;
|
|
1223
|
+
pending.lastError = canaryPoll.message;
|
|
1224
|
+
pending.syncInProgress = false;
|
|
1225
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1226
|
+
await writeProgress(cwd, pending, pending.phase);
|
|
1227
|
+
return {
|
|
1228
|
+
operationId,
|
|
1229
|
+
status: "partially_updated",
|
|
1230
|
+
phase: pending.phase,
|
|
1231
|
+
previewFingerprint,
|
|
1232
|
+
prUrl: pending.prUrl,
|
|
1233
|
+
prNumber: pending.prNumber,
|
|
1234
|
+
branchName,
|
|
1235
|
+
canaryRunId: pending.canaryRunId,
|
|
1236
|
+
canaryRunUrl: pending.canaryRunUrl,
|
|
1237
|
+
message: pending.lastError,
|
|
1238
|
+
};
|
|
1239
|
+
}
|
|
1240
|
+
pending.canaryRunUrl = canaryPoll.run.htmlUrl;
|
|
1241
|
+
await recordRunnerUpgradeEvidence({
|
|
1242
|
+
appliedSnapshotContentId: targetSnapshotContentId,
|
|
1243
|
+
appliedAt: new Date().toISOString(),
|
|
1244
|
+
targetSnapshotContentId,
|
|
1245
|
+
repositoryId: context.repositoryId,
|
|
1246
|
+
lastOperationId: operationId,
|
|
1247
|
+
syncInProgress: false,
|
|
1248
|
+
status: "up_to_date",
|
|
1249
|
+
canaryRunUrl: pending.canaryRunUrl,
|
|
1250
|
+
}, cwd);
|
|
1251
|
+
await clearRunnerUpgradePendingState(cwd);
|
|
1252
|
+
await writeRunnerUpgradeProgressAtomic({
|
|
1253
|
+
operationId,
|
|
1254
|
+
phase: "running-configuration-canary",
|
|
1255
|
+
phaseStartedAt: new Date().toISOString(),
|
|
1256
|
+
startedAt,
|
|
1257
|
+
canaryRunUrl: pending.canaryRunUrl,
|
|
1258
|
+
prUrl: pending.prUrl,
|
|
1259
|
+
recoveryInstruction: "Runner upgrade completed successfully.",
|
|
1260
|
+
}, cwd);
|
|
1261
|
+
return {
|
|
1262
|
+
operationId,
|
|
1263
|
+
status: "up_to_date",
|
|
1264
|
+
phase: "running-configuration-canary",
|
|
1265
|
+
previewFingerprint,
|
|
1266
|
+
prUrl: pending.prUrl,
|
|
1267
|
+
prNumber: pending.prNumber,
|
|
1268
|
+
branchName,
|
|
1269
|
+
canaryRunId: pending.canaryRunId,
|
|
1270
|
+
canaryRunUrl: pending.canaryRunUrl,
|
|
1271
|
+
message: "Runner upgrade completed successfully.",
|
|
1272
|
+
};
|
|
1273
|
+
}
|
|
1274
|
+
/**
|
|
1275
|
+
* Synchronous apply path for unit tests and inline execution.
|
|
1276
|
+
* Writes durable pending first, then runs the upgrade body under the mutex.
|
|
1277
|
+
* GUI/routes should use acceptRunnerUpgrade + the process worker instead.
|
|
1278
|
+
*/
|
|
1279
|
+
export async function applyRunnerUpgrade(cwd, provider, options = {}) {
|
|
1280
|
+
const workspaceDir = cwd ?? process.cwd();
|
|
1281
|
+
return withHarnessRunnerUpgradeMutex(workspaceDir, () => applyRunnerUpgradeInternal(cwd, provider, {
|
|
1282
|
+
...options,
|
|
1283
|
+
executeInline: true,
|
|
1284
|
+
}));
|
|
1285
|
+
}
|
|
1286
|
+
export async function resumeRunnerUpgrade(cwd, provider, options = {}) {
|
|
1287
|
+
const pending = await readRunnerUpgradePendingState(cwd);
|
|
1288
|
+
if (!pending) {
|
|
1289
|
+
return {
|
|
1290
|
+
operationId: randomUUID(),
|
|
1291
|
+
status: "update_available",
|
|
1292
|
+
phase: "verifying-managed-repository",
|
|
1293
|
+
previewFingerprint: "",
|
|
1294
|
+
message: "No pending runner upgrade operation to resume.",
|
|
1295
|
+
};
|
|
1296
|
+
}
|
|
1297
|
+
delete pending.lastError;
|
|
1298
|
+
await writeRunnerUpgradePendingStateAtomic(pending, cwd);
|
|
1299
|
+
return applyRunnerUpgrade(cwd, provider, options);
|
|
1300
|
+
}
|
|
1301
|
+
export async function readLocalManagedRepoMarker(cwd) {
|
|
1302
|
+
const markerPath = process.env.CANARY_MARKER_PATH ??
|
|
1303
|
+
path.join(cwd ?? process.cwd(), HARNESS_MANAGED_REPO_MARKER_FILE);
|
|
1304
|
+
try {
|
|
1305
|
+
return await readFile(markerPath, "utf8");
|
|
1306
|
+
}
|
|
1307
|
+
catch {
|
|
1308
|
+
return null;
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
//# sourceMappingURL=runner-upgrade.js.map
|