@kynver-app/runtime 0.2.23 → 0.2.28
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 +52 -18
- package/dist/chat/command-auth-proof.js +1 -1
- package/dist/cli.js +74 -65
- package/dist/index.js +96 -87
- package/dist/instruction-bundle/contract.js +2 -2
- package/dist/local-run-store/index.js +6 -6
- package/dist/server/adapter-contract.js +1 -1
- package/dist/server/cleanup.js +14 -14
- package/dist/server/db-credentials.js +2 -2
- package/dist/server/default-repo.js +1 -1
- package/dist/server/heavy-verification.js +1 -1
- package/dist/server/memory-cost-enforce.js +2 -2
- package/dist/server/memory-cost.js +2 -2
- package/dist/server/model-routing.js +4 -4
- package/dist/server/monitor.js +7 -7
- package/dist/server/orchestration.js +1 -1
- package/dist/server/worker-policy.js +2 -2
- package/package.json +6 -3
- package/dist/active-harness-workers.d.ts +0 -11
- package/dist/auto-complete.d.ts +0 -60
- package/dist/bootstrap.d.ts +0 -1
- package/dist/bounded-build/admission.d.ts +0 -30
- package/dist/bounded-build/constants.d.ts +0 -10
- package/dist/bounded-build/exec.d.ts +0 -35
- package/dist/bounded-build/index.d.ts +0 -6
- package/dist/bounded-build/meminfo.d.ts +0 -5
- package/dist/bounded-build/node-options.d.ts +0 -9
- package/dist/bounded-build/systemd-wrap.d.ts +0 -17
- package/dist/box-identity.d.ts +0 -19
- package/dist/box-resource-snapshot-shared.d.ts +0 -13
- package/dist/box-resource-snapshot.d.ts +0 -45
- package/dist/box-worker-cap.d.ts +0 -9
- package/dist/byoc/context-hydration.d.ts +0 -54
- package/dist/byoc/execution-proof.d.ts +0 -46
- package/dist/byoc/index.d.ts +0 -5
- package/dist/byoc/job-envelope.d.ts +0 -39
- package/dist/byoc/m6-golden-path.d.ts +0 -86
- package/dist/byoc/mcp-tool-proof.d.ts +0 -42
- package/dist/callback-headers.d.ts +0 -2
- package/dist/callbacks.d.ts +0 -74
- package/dist/chat/anthropic-credentials.d.ts +0 -11
- package/dist/chat/anthropic-stream.d.ts +0 -43
- package/dist/chat/chat-claim-loop.d.ts +0 -41
- package/dist/chat/chat-primary-cli.d.ts +0 -2
- package/dist/chat/command-allowlist.d.ts +0 -8
- package/dist/chat/command-auth-proof.d.ts +0 -67
- package/dist/chat/command-executor.d.ts +0 -18
- package/dist/chat/delta-batcher.d.ts +0 -13
- package/dist/cleanup-active-worktrees.d.ts +0 -14
- package/dist/cleanup-build-cache-paths.d.ts +0 -5
- package/dist/cleanup-cli.d.ts +0 -1
- package/dist/cleanup-completion-blocker.d.ts +0 -10
- package/dist/cleanup-dependency-scan.d.ts +0 -13
- package/dist/cleanup-dir-size.d.ts +0 -5
- package/dist/cleanup-disk-pressure.d.ts +0 -15
- package/dist/cleanup-duplicate-worktrees.d.ts +0 -8
- package/dist/cleanup-evidence.d.ts +0 -10
- package/dist/cleanup-execute.d.ts +0 -7
- package/dist/cleanup-git-probe.d.ts +0 -5
- package/dist/cleanup-git-rev-cache.d.ts +0 -5
- package/dist/cleanup-git-status-cache.d.ts +0 -5
- package/dist/cleanup-guards-helpers.d.ts +0 -2
- package/dist/cleanup-guards.d.ts +0 -53
- package/dist/cleanup-harness-path-validate.d.ts +0 -5
- package/dist/cleanup-harness-roots.d.ts +0 -6
- package/dist/cleanup-index-status.d.ts +0 -16
- package/dist/cleanup-orphan-safety.d.ts +0 -17
- package/dist/cleanup-path-ownership.d.ts +0 -9
- package/dist/cleanup-privileged-remove.d.ts +0 -13
- package/dist/cleanup-progress.d.ts +0 -2
- package/dist/cleanup-remove-path.d.ts +0 -17
- package/dist/cleanup-retention-config.d.ts +0 -26
- package/dist/cleanup-run-directory.d.ts +0 -20
- package/dist/cleanup-run-liveness.d.ts +0 -21
- package/dist/cleanup-run-terminal-cache.d.ts +0 -6
- package/dist/cleanup-salvage-evidence.d.ts +0 -33
- package/dist/cleanup-scan.d.ts +0 -15
- package/dist/cleanup-summary.d.ts +0 -29
- package/dist/cleanup-types.d.ts +0 -154
- package/dist/cleanup-worker-harness-live.d.ts +0 -9
- package/dist/cleanup-worktree-index.d.ts +0 -18
- package/dist/cleanup-worktree-salvage.d.ts +0 -7
- package/dist/cleanup.d.ts +0 -5
- package/dist/cli-output/worker-start-stdout.d.ts +0 -11
- package/dist/cli.d.ts +0 -3
- package/dist/command-center-contract-cli.d.ts +0 -1
- package/dist/completion-ack.d.ts +0 -18
- package/dist/completion-replay.d.ts +0 -10
- package/dist/completion-response.d.ts +0 -15
- package/dist/config.d.ts +0 -122
- package/dist/context-budget-receipt.d.ts +0 -96
- package/dist/context-preview/chat-memory-preview.d.ts +0 -33
- package/dist/cron/cron-cli-bin.d.ts +0 -7
- package/dist/cron/cron-env-file.d.ts +0 -22
- package/dist/cron/cron-env.d.ts +0 -21
- package/dist/cron/cron-fire.d.ts +0 -8
- package/dist/cron/cron-id.d.ts +0 -3
- package/dist/cron/cron-install-api.d.ts +0 -27
- package/dist/cron/cron-install-cli.d.ts +0 -2
- package/dist/cron/cron-install-plan.d.ts +0 -34
- package/dist/cron/cron-install-secrets.d.ts +0 -6
- package/dist/cron/cron-install-systemd.d.ts +0 -18
- package/dist/cron/cron-install-verify.d.ts +0 -15
- package/dist/cron/cron-install.d.ts +0 -51
- package/dist/cron/cron-lock.d.ts +0 -9
- package/dist/cron/cron-match.d.ts +0 -8
- package/dist/cron/cron-readiness.d.ts +0 -35
- package/dist/cron/cron-status.d.ts +0 -10
- package/dist/cron/cron-store.d.ts +0 -8
- package/dist/cron/cron-tick-cli.d.ts +0 -2
- package/dist/cron/cron-tick-state.d.ts +0 -5
- package/dist/cron/cron-tick.d.ts +0 -19
- package/dist/cron/cron-types.d.ts +0 -53
- package/dist/cron/hermes-provider-notice.d.ts +0 -1
- package/dist/daemon-box-identity.d.ts +0 -16
- package/dist/daemon-heartbeat.d.ts +0 -30
- package/dist/daemon-keeper.d.ts +0 -21
- package/dist/daemon-platform-guard.d.ts +0 -2
- package/dist/daemon-supervision/host.d.ts +0 -4
- package/dist/daemon-supervision/index.d.ts +0 -6
- package/dist/daemon-supervision/policy.d.ts +0 -16
- package/dist/daemon-supervision/setup.d.ts +0 -23
- package/dist/daemon-supervision/start.d.ts +0 -26
- package/dist/daemon-supervision/supervision-health.d.ts +0 -20
- package/dist/daemon-supervision/verify.d.ts +0 -13
- package/dist/daemon.d.ts +0 -5
- package/dist/db-credential-env-paths.d.ts +0 -13
- package/dist/db-credential-resolver.d.ts +0 -38
- package/dist/db-url-hint.d.ts +0 -4
- package/dist/default-repo-cli.d.ts +0 -20
- package/dist/default-repo-discovery.d.ts +0 -25
- package/dist/default-repo.d.ts +0 -32
- package/dist/device-login.d.ts +0 -8
- package/dist/discard-disposable.d.ts +0 -6
- package/dist/disk-gate.d.ts +0 -25
- package/dist/dispatch-callback-timeout.d.ts +0 -1
- package/dist/dispatch-claim-release.d.ts +0 -23
- package/dist/dispatch-lane-normalization.d.ts +0 -14
- package/dist/dispatch-model-guard.d.ts +0 -26
- package/dist/dispatch-progress.d.ts +0 -3
- package/dist/dispatch-resource-gate.d.ts +0 -20
- package/dist/dispatch-start-abort.d.ts +0 -3
- package/dist/dispatch-start-readback.d.ts +0 -27
- package/dist/dispatch.d.ts +0 -24
- package/dist/disposable-artifacts.d.ts +0 -2
- package/dist/doctor/context-envelope-cli.d.ts +0 -1
- package/dist/doctor/context-envelope.d.ts +0 -13
- package/dist/doctor/context-envelope.probes.d.ts +0 -25
- package/dist/doctor/context-envelope.types.d.ts +0 -42
- package/dist/doctor/doctor.types.d.ts +0 -50
- package/dist/doctor/github-readiness.d.ts +0 -16
- package/dist/doctor/index.d.ts +0 -7
- package/dist/doctor/local-store-cli.d.ts +0 -11
- package/dist/doctor/local-store.d.ts +0 -35
- package/dist/doctor/node-runtime-cli.d.ts +0 -6
- package/dist/doctor/node-runtime.d.ts +0 -19
- package/dist/doctor/runner-install-cli.d.ts +0 -1
- package/dist/doctor/runner-install.d.ts +0 -2
- package/dist/doctor/runtime-takeover-cli.d.ts +0 -1
- package/dist/doctor/runtime-takeover-daemon-supervision.d.ts +0 -3
- package/dist/doctor/runtime-takeover-deploy-evidence.d.ts +0 -13
- package/dist/doctor/runtime-takeover-scheduler.d.ts +0 -29
- package/dist/doctor/runtime-takeover.d.ts +0 -3
- package/dist/doctor/runtime-takeover.probes.d.ts +0 -45
- package/dist/executor-ref-routing.d.ts +0 -14
- package/dist/exit-classify.d.ts +0 -12
- package/dist/exited-salvage.d.ts +0 -22
- package/dist/exited-worker-handoff-capture.d.ts +0 -19
- package/dist/factory-status/collect.d.ts +0 -12
- package/dist/factory-status/lightweight.d.ts +0 -5
- package/dist/factory-status/render.d.ts +0 -5
- package/dist/factory-status/types.d.ts +0 -46
- package/dist/factory-status-cli.d.ts +0 -1
- package/dist/factory-steer-delivery.d.ts +0 -7
- package/dist/finalize.d.ts +0 -25
- package/dist/fortress-engagement-gate.d.ts +0 -5
- package/dist/git.d.ts +0 -37
- package/dist/github-repo.d.ts +0 -5
- package/dist/harness-expert-review.d.ts +0 -12
- package/dist/harness-lease-owner.d.ts +0 -13
- package/dist/harness-notice/harness-notice.auto-complete.d.ts +0 -3
- package/dist/harness-notice/harness-notice.monitor-tick.d.ts +0 -6
- package/dist/harness-notice/harness-notice.parse.d.ts +0 -3
- package/dist/harness-notice/harness-notice.tool-response.d.ts +0 -3
- package/dist/harness-notice/harness-notice.types.d.ts +0 -17
- package/dist/harness-notice/harness-notice.worker-complete.d.ts +0 -3
- package/dist/harness-notice/harness-notice.worker-start.d.ts +0 -7
- package/dist/harness-notice/harness-notice.worker-status.d.ts +0 -2
- package/dist/harness-notice/index.d.ts +0 -8
- package/dist/harness-repair-target.d.ts +0 -23
- package/dist/harness-storage-snapshot.d.ts +0 -26
- package/dist/harness-verify-cli.d.ts +0 -1
- package/dist/harness-verify.d.ts +0 -30
- package/dist/harness-worker-active.d.ts +0 -12
- package/dist/harness-worktree-build-guard.d.ts +0 -12
- package/dist/heartbeat-final-result.d.ts +0 -5
- package/dist/heartbeat.d.ts +0 -27
- package/dist/heavy-verification/command-classify.d.ts +0 -9
- package/dist/heavy-verification/gate.d.ts +0 -10
- package/dist/heavy-verification/index.d.ts +0 -5
- package/dist/heavy-verification/paths.d.ts +0 -3
- package/dist/heavy-verification/slot.d.ts +0 -49
- package/dist/heavy-verification/worker-command-gate.d.ts +0 -23
- package/dist/index.d.ts +0 -85
- package/dist/installed-package-versions.d.ts +0 -8
- package/dist/instruction-bundle/cache.d.ts +0 -6
- package/dist/instruction-bundle/client.d.ts +0 -25
- package/dist/instruction-bundle/contract.d.ts +0 -4
- package/dist/instruction-bundle/embedded-bundle.d.ts +0 -3
- package/dist/instruction-bundle/index.d.ts +0 -7
- package/dist/instruction-bundle/keys.d.ts +0 -14
- package/dist/instruction-bundle/state.d.ts +0 -24
- package/dist/instruction-bundle/types.d.ts +0 -42
- package/dist/instruction-bundle/verify.d.ts +0 -15
- package/dist/landing/cli-auth.d.ts +0 -11
- package/dist/landing/land-pr-check-classify.d.ts +0 -17
- package/dist/landing/land-pr-completion-post.d.ts +0 -12
- package/dist/landing/land-pr.d.ts +0 -28
- package/dist/landing-contract-gate.d.ts +0 -27
- package/dist/landing-contract-pr-classify.d.ts +0 -4
- package/dist/landing-gate.d.ts +0 -24
- package/dist/lane/landing-maintainer-local.d.ts +0 -15
- package/dist/lane/landing-maintainer-tick.d.ts +0 -16
- package/dist/lane/lane-spec.d.ts +0 -8
- package/dist/lane/lane-tick-cli.d.ts +0 -1
- package/dist/lease-renewal.d.ts +0 -15
- package/dist/local-pr-attention-reconcile.d.ts +0 -25
- package/dist/local-run-store/admission-enforce.d.ts +0 -38
- package/dist/local-run-store/admission-shadow.d.ts +0 -56
- package/dist/local-run-store/dispatch-claim-recovery-startup.d.ts +0 -11
- package/dist/local-run-store/dispatch-claim-recovery.d.ts +0 -54
- package/dist/local-run-store/dispatch-receipts.d.ts +0 -90
- package/dist/local-run-store/index.d.ts +0 -15
- package/dist/local-run-store/local-run-store.d.ts +0 -106
- package/dist/local-run-store/remote-surface-flags.d.ts +0 -15
- package/dist/local-run-store/small-surfaces.d.ts +0 -37
- package/dist/local-run-store/sqlite/sqlite-filesystem-policy.d.ts +0 -16
- package/dist/local-run-store/sqlite/sqlite-local-run-store.d.ts +0 -68
- package/dist/local-run-store/sqlite/sqlite-recovery.d.ts +0 -14
- package/dist/local-run-store/sqlite/sqlite-schema.d.ts +0 -13
- package/dist/local-run-store/store-lifecycle.d.ts +0 -38
- package/dist/local-run-store/surface-flags.d.ts +0 -47
- package/dist/local-run-store/tick-posture.d.ts +0 -27
- package/dist/material-worktree-changes.d.ts +0 -2
- package/dist/memory-cost-package-version-guard-enforce.d.ts +0 -10
- package/dist/memory-cost-package-version-guard.d.ts +0 -49
- package/dist/mesh-liveness/mesh-cron-lease-store.d.ts +0 -9
- package/dist/model-routing-task-enrich.d.ts +0 -8
- package/dist/model-routing.d.ts +0 -49
- package/dist/monitor/index.d.ts +0 -7
- package/dist/monitor/monitor-cli.d.ts +0 -9
- package/dist/monitor/monitor-loop.d.ts +0 -1
- package/dist/monitor/monitor-spawn.d.ts +0 -18
- package/dist/monitor/monitor.classify.d.ts +0 -15
- package/dist/monitor/monitor.service.d.ts +0 -17
- package/dist/monitor/monitor.store.d.ts +0 -6
- package/dist/monitor/monitor.task-lease.d.ts +0 -11
- package/dist/monitor/monitor.terminal.d.ts +0 -11
- package/dist/monitor/monitor.types.d.ts +0 -77
- package/dist/node-runtime-policy.d.ts +0 -25
- package/dist/orchestration-enforcement/config.d.ts +0 -5
- package/dist/orchestration-enforcement/evaluator.d.ts +0 -6
- package/dist/orchestration-enforcement/idempotency.d.ts +0 -8
- package/dist/orchestration-enforcement/index.d.ts +0 -4
- package/dist/orchestration-enforcement/types.d.ts +0 -24
- package/dist/orchestration-providers/adapter-contract.d.ts +0 -50
- package/dist/orchestration-providers/audit.d.ts +0 -3
- package/dist/orchestration-providers/capabilities.d.ts +0 -3
- package/dist/orchestration-providers/claude-oauth-binding.d.ts +0 -6
- package/dist/orchestration-providers/codex-oauth-binding.d.ts +0 -5
- package/dist/orchestration-providers/codex-orchestration-adapter.d.ts +0 -13
- package/dist/orchestration-providers/cost-router.d.ts +0 -24
- package/dist/orchestration-providers/cursor-oauth-binding.d.ts +0 -5
- package/dist/orchestration-providers/hermes-cli-adapter.d.ts +0 -15
- package/dist/orchestration-providers/hermes-openai-codex-binding.d.ts +0 -15
- package/dist/orchestration-providers/index.d.ts +0 -14
- package/dist/orchestration-providers/inventory.d.ts +0 -31
- package/dist/orchestration-providers/oauth-binding-utils.d.ts +0 -22
- package/dist/orchestration-providers/routing.d.ts +0 -16
- package/dist/orchestration-providers/types.d.ts +0 -45
- package/dist/package-version.d.ts +0 -5
- package/dist/path-values.d.ts +0 -5
- package/dist/paths.d.ts +0 -16
- package/dist/pipeline-dispatch.d.ts +0 -8
- package/dist/pipeline-exact-targets.d.ts +0 -2
- package/dist/pipeline-max-starts.d.ts +0 -26
- package/dist/pipeline-tick.d.ts +0 -50
- package/dist/plan-persist/agentos-api.d.ts +0 -28
- package/dist/plan-persist/body-hash.d.ts +0 -3
- package/dist/plan-persist/drain.d.ts +0 -7
- package/dist/plan-persist/errors.d.ts +0 -9
- package/dist/plan-persist/handoff.d.ts +0 -7
- package/dist/plan-persist/idempotency.d.ts +0 -2
- package/dist/plan-persist/index.d.ts +0 -8
- package/dist/plan-persist/outbox-durability.d.ts +0 -31
- package/dist/plan-persist/outbox-store.d.ts +0 -36
- package/dist/plan-persist/paths.d.ts +0 -8
- package/dist/plan-persist/persist.d.ts +0 -10
- package/dist/plan-persist/readback.d.ts +0 -17
- package/dist/plan-persist/types.d.ts +0 -95
- package/dist/plan-persist-cli.d.ts +0 -3
- package/dist/plan-progress-daemon-sync.d.ts +0 -7
- package/dist/plan-progress-sync.d.ts +0 -21
- package/dist/plan-progress.d.ts +0 -10
- package/dist/post-restart-unblock.d.ts +0 -24
- package/dist/pr-handoff/index.d.ts +0 -6
- package/dist/pr-handoff/pr-handoff-assess.d.ts +0 -44
- package/dist/pr-handoff/pr-handoff-dedupe.d.ts +0 -18
- package/dist/pr-handoff/pr-handoff-gh.d.ts +0 -52
- package/dist/pr-handoff/pr-handoff-supersede.d.ts +0 -17
- package/dist/pr-handoff/pr-handoff.d.ts +0 -8
- package/dist/pr-handoff/pr-handoff.types.d.ts +0 -45
- package/dist/pr-handoff/same-head-pr-guard.d.ts +0 -10
- package/dist/prompt.d.ts +0 -56
- package/dist/provider-evidence/collect.d.ts +0 -31
- package/dist/provider-evidence/exec.d.ts +0 -5
- package/dist/provider-evidence/index.d.ts +0 -7
- package/dist/provider-evidence/recipes-github.d.ts +0 -5
- package/dist/provider-evidence/recipes-vercel.d.ts +0 -2
- package/dist/provider-evidence/registry.d.ts +0 -6
- package/dist/provider-evidence/shared-cache.d.ts +0 -8
- package/dist/provider-evidence/types.d.ts +0 -48
- package/dist/provider-evidence/wanted-store.d.ts +0 -13
- package/dist/provider-quota-preflight.d.ts +0 -38
- package/dist/providers/claude.d.ts +0 -8
- package/dist/providers/codex.d.ts +0 -14
- package/dist/providers/cursor-windows.d.ts +0 -7
- package/dist/providers/cursor.d.ts +0 -13
- package/dist/providers/hermes-codex.d.ts +0 -12
- package/dist/providers/model-preflight.d.ts +0 -33
- package/dist/providers/openai-codex-resilience.d.ts +0 -33
- package/dist/providers/registry.d.ts +0 -4
- package/dist/providers/types.d.ts +0 -36
- package/dist/redact.d.ts +0 -1
- package/dist/repair-target-worktree.d.ts +0 -4
- package/dist/repo-search.d.ts +0 -53
- package/dist/resource-gate.d.ts +0 -74
- package/dist/retry-limits.d.ts +0 -12
- package/dist/review-head-reconcile.d.ts +0 -17
- package/dist/run-list.d.ts +0 -38
- package/dist/run-metadata-retention.d.ts +0 -38
- package/dist/run-resolve.d.ts +0 -4
- package/dist/run-store.d.ts +0 -38
- package/dist/run-worker-index.d.ts +0 -10
- package/dist/runner-boundary/index.d.ts +0 -6
- package/dist/runner-boundary/runner-boundary.dispatch-guard.d.ts +0 -4
- package/dist/runner-boundary/runner-boundary.forge-legacy-migration.d.ts +0 -23
- package/dist/runner-boundary/runner-boundary.harness-root.d.ts +0 -17
- package/dist/runner-boundary/runner-boundary.resolve.d.ts +0 -4
- package/dist/runner-boundary/runner-boundary.run-guard.d.ts +0 -12
- package/dist/runner-boundary/runner-boundary.types.d.ts +0 -31
- package/dist/runner-config-backfill.d.ts +0 -18
- package/dist/runner-identity.d.ts +0 -21
- package/dist/runtime-identity.d.ts +0 -9
- package/dist/runtime-memory-envelope.d.ts +0 -16
- package/dist/scheduler-cutover-cli.d.ts +0 -2
- package/dist/scheduler-cutover.d.ts +0 -25
- package/dist/security-review-environment.d.ts +0 -27
- package/dist/server/adapter-contract.d.ts +0 -1
- package/dist/server/cleanup.d.ts +0 -3
- package/dist/server/context-budget-receipt.d.ts +0 -2
- package/dist/server/db-credentials.d.ts +0 -1
- package/dist/server/default-repo.d.ts +0 -1
- package/dist/server/harness-notice.d.ts +0 -2
- package/dist/server/heavy-verification.d.ts +0 -3
- package/dist/server/landing.d.ts +0 -1
- package/dist/server/memory-cost-enforce.d.ts +0 -1
- package/dist/server/memory-cost.d.ts +0 -1
- package/dist/server/model-routing.d.ts +0 -3
- package/dist/server/monitor.d.ts +0 -3
- package/dist/server/node-runtime-policy.d.ts +0 -1
- package/dist/server/orchestration.d.ts +0 -10
- package/dist/server/pr-evidence.d.ts +0 -2
- package/dist/server/prompt.d.ts +0 -1
- package/dist/server/repo-search.d.ts +0 -1
- package/dist/server/worker-policy.d.ts +0 -6
- package/dist/server/wsl-crash-dumps.d.ts +0 -2
- package/dist/shell-command-outcome.d.ts +0 -32
- package/dist/sidecar-cli.d.ts +0 -16
- package/dist/stale-reconcile.d.ts +0 -31
- package/dist/start-box-identity.d.ts +0 -12
- package/dist/start.d.ts +0 -13
- package/dist/status.d.ts +0 -260
- package/dist/stream.d.ts +0 -20
- package/dist/supervisor.d.ts +0 -40
- package/dist/sweep.d.ts +0 -1
- package/dist/util.d.ts +0 -35
- package/dist/validate.d.ts +0 -15
- package/dist/vercel/index.d.ts +0 -4
- package/dist/vercel/vercel-api.d.ts +0 -17
- package/dist/vercel/vercel-evidence.d.ts +0 -48
- package/dist/vercel/vercel-github-status.d.ts +0 -19
- package/dist/vercel/vercel-url.d.ts +0 -18
- package/dist/verify-live/verify-live-prompt.d.ts +0 -2
- package/dist/worker-cap-source.d.ts +0 -29
- package/dist/worker-env.d.ts +0 -52
- package/dist/worker-execution-mode.d.ts +0 -5
- package/dist/worker-final-result-embed.d.ts +0 -1
- package/dist/worker-lease-sync.d.ts +0 -15
- package/dist/worker-lifecycle.d.ts +0 -28
- package/dist/worker-metadata-paths.d.ts +0 -26
- package/dist/worker-metadata-reconcile.d.ts +0 -21
- package/dist/worker-ops.d.ts +0 -45
- package/dist/worker-persona-catalog.d.ts +0 -29
- package/dist/worker-provider-policy.d.ts +0 -26
- package/dist/workspace-runtime-config.d.ts +0 -10
- package/dist/worktree-base-ref.d.ts +0 -34
- package/dist/worktree-completion-handoff.d.ts +0 -17
- package/dist/worktree.d.ts +0 -11
- package/dist/wsl-crash-dumps-cleanup.d.ts +0 -31
- package/dist/wsl-crash-dumps-cli.d.ts +0 -1
- package/dist/wsl-crash-dumps.d.ts +0 -90
- package/dist/wsl-host.d.ts +0 -71
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type LocalRunStoreLifecycleStatus } from "../local-run-store/store-lifecycle.js";
|
|
2
|
-
import { type LocalRunStoreSurfaceMode } from "../local-run-store/surface-flags.js";
|
|
3
|
-
export interface LocalStoreQuarantineEntry {
|
|
4
|
-
file: string;
|
|
5
|
-
mtime: string | null;
|
|
6
|
-
}
|
|
7
|
-
export interface LocalStoreDoctorReport {
|
|
8
|
-
command: "doctor local-store";
|
|
9
|
-
contractVersion: 1;
|
|
10
|
-
harnessRoot: string;
|
|
11
|
-
store: {
|
|
12
|
-
state: LocalRunStoreLifecycleStatus["state"];
|
|
13
|
-
databasePath: string | null;
|
|
14
|
-
schemaVersion: number | null;
|
|
15
|
-
recovered: boolean;
|
|
16
|
-
quarantinedTo: string | null;
|
|
17
|
-
reason: string | null;
|
|
18
|
-
};
|
|
19
|
-
surfaces: Array<{
|
|
20
|
-
key: string;
|
|
21
|
-
env: string;
|
|
22
|
-
milestone: string;
|
|
23
|
-
mode: LocalRunStoreSurfaceMode;
|
|
24
|
-
/** env override / server-delivered policy / default off. */
|
|
25
|
-
source: "env" | "server" | "default";
|
|
26
|
-
}>;
|
|
27
|
-
flagWarnings: string[];
|
|
28
|
-
/** `*.quarantine-*` artifacts under the harness root (offline inspection). */
|
|
29
|
-
quarantineHistory: LocalStoreQuarantineEntry[];
|
|
30
|
-
}
|
|
31
|
-
export declare function buildLocalStoreDoctorReport(options?: {
|
|
32
|
-
env?: NodeJS.ProcessEnv;
|
|
33
|
-
/** Skip the open probe (report current lifecycle state only). */
|
|
34
|
-
probe?: boolean;
|
|
35
|
-
}): LocalStoreDoctorReport;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type NodeRuntimePolicyVerdict } from "../node-runtime-policy.js";
|
|
2
|
-
import type { RuntimeIdentityV1 } from "../runtime-identity.js";
|
|
3
|
-
export interface NodeRuntimeDoctorReport {
|
|
4
|
-
command: "doctor node-runtime";
|
|
5
|
-
contractVersion: 1;
|
|
6
|
-
nodeVersion: string;
|
|
7
|
-
requiredRange: string;
|
|
8
|
-
status: NodeRuntimePolicyVerdict["status"];
|
|
9
|
-
remediation: string | null;
|
|
10
|
-
platform: NodeJS.Platform;
|
|
11
|
-
arch: string;
|
|
12
|
-
runtimePackageVersion: string;
|
|
13
|
-
buildIdentity: string | null;
|
|
14
|
-
}
|
|
15
|
-
export declare function buildNodeRuntimeDoctorReport(options?: {
|
|
16
|
-
nodeVersion?: string;
|
|
17
|
-
requiredRange?: string;
|
|
18
|
-
identity?: RuntimeIdentityV1;
|
|
19
|
-
}): NodeRuntimeDoctorReport;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function runRunnerInstallDoctorCli(): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function runRuntimeTakeoverDoctorCli(args?: Record<string, string | boolean>): void;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { DoctorSection } from "./doctor.types.js";
|
|
2
|
-
import { type GitHubReadinessProbe } from "./github-readiness.js";
|
|
3
|
-
import type { RuntimeTakeoverProbes } from "./runtime-takeover.probes.js";
|
|
4
|
-
/**
|
|
5
|
-
* Optional deploy-evidence checks for merge-gate / PR handoff workflows
|
|
6
|
-
* (Railway era). Post-cutover (2026-08) production deploy evidence is the
|
|
7
|
-
* production /api/version probe plus GitHub ancestry/commit-status lookups —
|
|
8
|
-
* Vercel is decommissioned, so the old Vercel StatusContext and VERCEL_TOKEN
|
|
9
|
-
* REST fallback no longer exist. This section verifies GitHub auth for those
|
|
10
|
-
* lookups and flags Vercel leftovers (global CLI, stale VERCEL_TOKEN) as
|
|
11
|
-
* hygiene warnings.
|
|
12
|
-
*/
|
|
13
|
-
export declare function assessDeployEvidence(probes: RuntimeTakeoverProbes, githubProbe: GitHubReadinessProbe): DoctorSection;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { DoctorCheck } from "./doctor.types.js";
|
|
2
|
-
export type DeploymentSchedulerProvider = "qstash" | "kynver-cron" | "openclaw-cron";
|
|
3
|
-
export interface RuntimeTakeoverSchedulerEnv {
|
|
4
|
-
kynverSchedulerProvider?: string;
|
|
5
|
-
/** Local durable cron store (`KYNVER_CRON_STORE_PATH` / legacy `OPENCLAW_CRON_STORE_PATH`). */
|
|
6
|
-
openclawCronStorePath?: boolean;
|
|
7
|
-
/** `kynver daemon` runs the Kynver Cron tick loop (primary connected-box scheduler). */
|
|
8
|
-
kynverCronDaemonPrimary?: boolean;
|
|
9
|
-
/** True when this process has QStash credentials (typical Kynver server deploy). */
|
|
10
|
-
qstashTokenPresent?: boolean;
|
|
11
|
-
/** Explicit hosted-deploy marker (`KYNVER_HOSTED_DEPLOYMENT=1|true|yes`). */
|
|
12
|
-
kynverHostedDeployment?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface RuntimeTakeoverSchedulerContext {
|
|
15
|
-
agentOsId?: string | null;
|
|
16
|
-
apiBaseUrl?: string | null;
|
|
17
|
-
hasScopedRunnerToken: boolean;
|
|
18
|
-
/** Operator attestation in ~/.kynver/config.json for the hosted deployment. */
|
|
19
|
-
deploymentSchedulerProvider?: DeploymentSchedulerProvider;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Scheduler readiness for runtime takeover.
|
|
23
|
-
*
|
|
24
|
-
* Runner hosts drive dispatch via `kynver daemon` → `pipeline-tick` → `operator/tick`
|
|
25
|
-
* and must not depend on OpenClaw cron. Server/hosted deploys should resolve to QStash
|
|
26
|
-
* when configured; otherwise the Kynver-owned `kynver-cron` provider is the fallback
|
|
27
|
-
* (not the legacy OpenClaw adapter).
|
|
28
|
-
*/
|
|
29
|
-
export declare function assessRuntimeTakeoverScheduler(env: RuntimeTakeoverSchedulerEnv, ctx: RuntimeTakeoverSchedulerContext): DoctorCheck;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { type KynverUserConfig } from "../config.js";
|
|
2
|
-
export interface CommandProbeResult {
|
|
3
|
-
ok: boolean;
|
|
4
|
-
stdout: string;
|
|
5
|
-
stderr: string;
|
|
6
|
-
error?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface RuntimeTakeoverProbes {
|
|
9
|
-
packageVersion(): string;
|
|
10
|
-
commandOnPath(bin: string): CommandProbeResult;
|
|
11
|
-
kynverVersion(bin: string): CommandProbeResult;
|
|
12
|
-
loadConfig(): KynverUserConfig;
|
|
13
|
-
configFilePath(): string;
|
|
14
|
-
credentialsFilePath(): string;
|
|
15
|
-
readCredentials(): {
|
|
16
|
-
hasApiKey: boolean;
|
|
17
|
-
runnerTokenPrefix?: string;
|
|
18
|
-
runnerTokenAgentOsId?: string;
|
|
19
|
-
};
|
|
20
|
-
envSnapshot(): {
|
|
21
|
-
kynverApiUrl?: string;
|
|
22
|
-
openclawCronFireBaseUrl?: string;
|
|
23
|
-
kynverRunnerTokenPrefix?: string;
|
|
24
|
-
kynverRuntimeSecret: boolean;
|
|
25
|
-
openclawCronSecret: boolean;
|
|
26
|
-
kynverHarnessRoot?: string;
|
|
27
|
-
opusHarnessRoot?: string;
|
|
28
|
-
kynverSchedulerProvider?: string;
|
|
29
|
-
/** Local durable cron store (`KYNVER_CRON_STORE_PATH` / legacy alias). */
|
|
30
|
-
openclawCronStorePath?: boolean;
|
|
31
|
-
kynverCronDaemonPrimary?: boolean;
|
|
32
|
-
qstashTokenPresent?: boolean;
|
|
33
|
-
kynverHostedDeployment?: boolean;
|
|
34
|
-
};
|
|
35
|
-
harnessRoot(): string;
|
|
36
|
-
legacyOpenclawHarnessRoot(): string;
|
|
37
|
-
pathExists(target: string): boolean;
|
|
38
|
-
pathWritable(target: string): boolean;
|
|
39
|
-
ghAuthToken(): CommandProbeResult;
|
|
40
|
-
/** When false, GitHub deploy-evidence checks are advisory-only skips. */
|
|
41
|
-
deployEvidenceNeedsGithub?(): boolean;
|
|
42
|
-
/** Injectable systemd active probe for supervision checks. */
|
|
43
|
-
systemdDaemonActive?(): boolean;
|
|
44
|
-
}
|
|
45
|
-
export declare const defaultRuntimeTakeoverProbes: RuntimeTakeoverProbes;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** Parse provider/model intent encoded in board `executorRef` strings. */
|
|
2
|
-
export interface ExecutorRefRoutingIntent {
|
|
3
|
-
provider?: string;
|
|
4
|
-
model?: string;
|
|
5
|
-
lane?: string;
|
|
6
|
-
rule: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Best-effort decode of model/provider intent from task executorRef.
|
|
10
|
-
* Supports `harness-lane:{lane}:{model}` and `provider:{name}[:{model}]`.
|
|
11
|
-
*/
|
|
12
|
-
export declare function parseExecutorRefRoutingIntent(executorRef: string | null | undefined): ExecutorRefRoutingIntent | null;
|
|
13
|
-
/** True when executorRef encodes a non-Cursor worker provider/model request. */
|
|
14
|
-
export declare function executorRefRequestsNonCursorWorker(executorRef: string | null | undefined): boolean;
|
package/dist/exit-classify.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface ExitClassification {
|
|
2
|
-
/** True when the failure is a structural blocker an operator must fix. */
|
|
3
|
-
blocked: boolean;
|
|
4
|
-
/** Precise, human-readable reason for the blocker. */
|
|
5
|
-
reason: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Classify a dead worker's error/stderr output. Returns a structured blocker when
|
|
9
|
-
* the text matches a known startup/config failure, or null when it does not (the
|
|
10
|
-
* caller should fall back to the generic needs_attention path).
|
|
11
|
-
*/
|
|
12
|
-
export declare function classifyExitFailure(errorText: string | null | undefined): ExitClassification | null;
|
package/dist/exited-salvage.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { GitAncestry } from "./git.js";
|
|
2
|
-
export type ExitedSalvageKind = "none" | "uncommitted" | "committed_ahead" | "both";
|
|
3
|
-
export interface ExitedSalvageAssessment {
|
|
4
|
-
kind: ExitedSalvageKind;
|
|
5
|
-
/** True when the worktree has reviewable uncommitted and/or committed-ahead work. */
|
|
6
|
-
salvageable: boolean;
|
|
7
|
-
uncommittedCount: number;
|
|
8
|
-
headCommit: string | null;
|
|
9
|
-
/** Board / attention reason — stable prefix for downstream parsers. */
|
|
10
|
-
attentionReason: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Classify a dead worker with no `finalResult`. Returns null when the worker is
|
|
14
|
-
* still alive or already recorded a final result.
|
|
15
|
-
*/
|
|
16
|
-
export declare function assessExitedWorkerSalvage(input: {
|
|
17
|
-
alive: boolean;
|
|
18
|
-
finalResult: unknown;
|
|
19
|
-
changedFiles?: string[];
|
|
20
|
-
gitAncestry?: GitAncestry | null;
|
|
21
|
-
headCommit?: string | null;
|
|
22
|
-
}): ExitedSalvageAssessment | null;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type CompletionSnapshot } from "./worker-lifecycle.js";
|
|
2
|
-
import type { HarnessWorkerRecord, RawHarnessWorkerStatus } from "./status.js";
|
|
3
|
-
export type ExitedHandoffCaptureSource = "stdout_stream" | "heartbeat_complete" | "heartbeat_summary" | "exit_failure" | "exit_no_final_result" | "none";
|
|
4
|
-
export interface ExitedHandoffCapture {
|
|
5
|
-
finalResult: unknown;
|
|
6
|
-
source: ExitedHandoffCaptureSource;
|
|
7
|
-
snapshot: CompletionSnapshot;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Best-effort finalResult for a worker whose process has exited without a
|
|
11
|
-
* stream-json terminal event. Priority: stdout result → heartbeat complete →
|
|
12
|
-
* structured exit failure → non-terminal heartbeat summary.
|
|
13
|
-
*/
|
|
14
|
-
export declare function resolveExitedWorkerFinalResult(input: {
|
|
15
|
-
worker: HarnessWorkerRecord;
|
|
16
|
-
status: RawHarnessWorkerStatus;
|
|
17
|
-
}): ExitedHandoffCapture | null;
|
|
18
|
-
/** Persist completionSnapshot when reconcile discovers terminal handoff evidence. */
|
|
19
|
-
export declare function persistExitedWorkerHandoffCapture(worker: HarnessWorkerRecord, capture: ExitedHandoffCapture): boolean;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { buildRunListRows } from "../run-list.js";
|
|
2
|
-
import type { HarnessWorkerRecord } from "../status.js";
|
|
3
|
-
import type { FactoryStatusSnapshot, FactoryWorkerRow } from "./types.js";
|
|
4
|
-
export declare function factoryStatusTaskWorkerCandidateScore(worker: HarnessWorkerRecord, row: FactoryWorkerRow): number;
|
|
5
|
-
export interface CollectFactoryStatusInput {
|
|
6
|
-
mode: FactoryStatusSnapshot["mode"];
|
|
7
|
-
taskId?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function collectFactoryStatus(input: CollectFactoryStatusInput): FactoryStatusSnapshot | {
|
|
10
|
-
mode: "full";
|
|
11
|
-
runs: ReturnType<typeof buildRunListRows>;
|
|
12
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { HarnessRunRecord } from "../run-store.js";
|
|
2
|
-
import type { HarnessWorkerRecord } from "../status.js";
|
|
3
|
-
import type { FactoryWorkerRow } from "./types.js";
|
|
4
|
-
export declare function isLightweightActiveHarnessWorker(worker: HarnessWorkerRecord): boolean;
|
|
5
|
-
export declare function collectLightweightWorkerRow(run: HarnessRunRecord, workerName: string): FactoryWorkerRow | null;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { FactoryStatusSnapshot } from "./types.js";
|
|
2
|
-
export declare function renderFactoryStatusCompact(snapshot: FactoryStatusSnapshot): string;
|
|
3
|
-
export declare function renderFactoryStatusWorkers(snapshot: FactoryStatusSnapshot): string;
|
|
4
|
-
export declare function renderFactoryStatusTask(snapshot: FactoryStatusSnapshot): string;
|
|
5
|
-
export declare function renderFactoryStatus(snapshot: FactoryStatusSnapshot): string;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { RunnerResourceGateShape } from "../resource-gate.js";
|
|
2
|
-
export interface FactoryWorkerRow {
|
|
3
|
-
runId: string;
|
|
4
|
-
runName: string;
|
|
5
|
-
worker: string;
|
|
6
|
-
status: string;
|
|
7
|
-
attention: string;
|
|
8
|
-
attentionReason?: string;
|
|
9
|
-
alive: boolean;
|
|
10
|
-
/** Occupies a machine-wide harness slot (matches dispatch isActiveHarnessWorker semantics). */
|
|
11
|
-
isActive: boolean;
|
|
12
|
-
taskId: string | null;
|
|
13
|
-
planId: string | null;
|
|
14
|
-
leaseOwner: string | null;
|
|
15
|
-
pid?: number;
|
|
16
|
-
model?: string;
|
|
17
|
-
currentTask?: string | null;
|
|
18
|
-
lastHeartbeatPhase?: string | null;
|
|
19
|
-
lastHeartbeatSummary?: string | null;
|
|
20
|
-
heartbeatBlocker?: string | null;
|
|
21
|
-
completionBlocker?: string | null;
|
|
22
|
-
}
|
|
23
|
-
export interface FactoryBlockedItem {
|
|
24
|
-
runId: string;
|
|
25
|
-
worker: string;
|
|
26
|
-
taskId: string | null;
|
|
27
|
-
reason: string;
|
|
28
|
-
}
|
|
29
|
-
export interface FactoryStatusSnapshot {
|
|
30
|
-
generatedAt: string;
|
|
31
|
-
mode: "compact" | "workers" | "task" | "json" | "full";
|
|
32
|
-
harnessRoot: string;
|
|
33
|
-
agentOsId: string | null;
|
|
34
|
-
resourceGate: RunnerResourceGateShape;
|
|
35
|
-
runCount: number;
|
|
36
|
-
runStatusCounts: Record<string, number>;
|
|
37
|
-
workerCount: number;
|
|
38
|
-
workerStatusCounts: Record<string, number>;
|
|
39
|
-
workerAttentionCounts: Record<string, number>;
|
|
40
|
-
activeTaskIds: string[];
|
|
41
|
-
blocked: FactoryBlockedItem[];
|
|
42
|
-
workers: FactoryWorkerRow[];
|
|
43
|
-
/** Present when mode is task drilldown. */
|
|
44
|
-
taskId?: string;
|
|
45
|
-
taskFound?: boolean;
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function runFactoryStatusCli(args: Record<string, string | boolean>): void;
|
package/dist/finalize.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type HarnessRunRecord } from "./run-store.js";
|
|
2
|
-
export interface RunFinalizeResult {
|
|
3
|
-
runId: string;
|
|
4
|
-
from: string;
|
|
5
|
-
to: string;
|
|
6
|
-
}
|
|
7
|
-
/** Run statuses we treat as "not yet terminal" and therefore candidates for finalization. */
|
|
8
|
-
export declare const ACTIVE_RUN_STATUSES: Set<string>;
|
|
9
|
-
export declare const TERMINAL_RUN_STATUSES: Set<string>;
|
|
10
|
-
/**
|
|
11
|
-
* Decide the terminal status for a run, or null if it should stay active.
|
|
12
|
-
* A run is terminal once none of its workers are still alive-and-unfinished.
|
|
13
|
-
*/
|
|
14
|
-
export declare function deriveTerminalRunStatus(run: HarnessRunRecord): string | null;
|
|
15
|
-
/**
|
|
16
|
-
* Finalize runs that are still marked active but have no live workers.
|
|
17
|
-
*
|
|
18
|
-
* The harness creates one run per task and never closed them out, leaving dozens
|
|
19
|
-
* of "running" runs that bloated disk and broke operator views (and made cleanup
|
|
20
|
-
* unsafe to reason about). Active-worker accounting already excludes dead workers,
|
|
21
|
-
* so this is about run-status hygiene + enabling safe pruning of finished runs.
|
|
22
|
-
*
|
|
23
|
-
* Returns the runs whose status changed.
|
|
24
|
-
*/
|
|
25
|
-
export declare function finalizeStaleRuns(): RunFinalizeResult[];
|
package/dist/git.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export interface GitOptions {
|
|
2
|
-
allowFailure?: boolean;
|
|
3
|
-
throwError?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare function git(cwd: string, args: string[], options?: GitOptions): string;
|
|
6
|
-
export declare function ensureGitRepo(repo: string): void;
|
|
7
|
-
export declare function gitStatusShort(worktreePath: string): string[];
|
|
8
|
-
export interface GitCaptureResult {
|
|
9
|
-
status: number | null;
|
|
10
|
-
stdout: string;
|
|
11
|
-
stderr: string;
|
|
12
|
-
error: string | null;
|
|
13
|
-
}
|
|
14
|
-
export declare function gitCapture(cwd: string, args: string[]): GitCaptureResult;
|
|
15
|
-
export declare function gitIsAncestor(cwd: string, ancestor: string, descendant: string): {
|
|
16
|
-
isAncestor: boolean | null;
|
|
17
|
-
error: string | null;
|
|
18
|
-
};
|
|
19
|
-
export type GitAncestryRelation = "synced" | "merged" | "ahead" | "diverged" | "unknown";
|
|
20
|
-
export interface GitAncestry {
|
|
21
|
-
checked: boolean;
|
|
22
|
-
base: string;
|
|
23
|
-
head: string | null;
|
|
24
|
-
baseHead: string | null;
|
|
25
|
-
baseIsAncestorOfHead: boolean | null;
|
|
26
|
-
headIsAncestorOfBase: boolean | null;
|
|
27
|
-
relation: GitAncestryRelation;
|
|
28
|
-
error?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface GitAncestryOptions {
|
|
31
|
-
/** Branch or ref name (e.g. origin/main). Used when baseCommit is unset. */
|
|
32
|
-
base?: string;
|
|
33
|
-
/** Pinned SHA the worktree was created from — preferred over a moving branch ref. */
|
|
34
|
-
baseCommit?: string;
|
|
35
|
-
}
|
|
36
|
-
export declare function computeGitAncestry(worktreePath: string, baseOrOptions?: string | GitAncestryOptions): GitAncestry;
|
|
37
|
-
export { scrubClaudeEnv, scrubWorkerEnv } from "./worker-env.js";
|
package/dist/github-repo.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** Personas that run source-only / security review harness work (LB1 credential scope). */
|
|
2
|
-
export declare const SECURITY_REVIEW_PERSONAS: Set<string>;
|
|
3
|
-
export interface HarnessExpertReviewTaskShape {
|
|
4
|
-
title?: string;
|
|
5
|
-
description?: string | null;
|
|
6
|
-
personaSlug?: string | null;
|
|
7
|
-
planId?: string | null;
|
|
8
|
-
parentTaskId?: string | null;
|
|
9
|
-
executorRef?: string | null;
|
|
10
|
-
}
|
|
11
|
-
/** Expert review workers must not inherit landing-only PR gates or open new PRs. */
|
|
12
|
-
export declare function isHarnessExpertReviewWorker(worker: HarnessExpertReviewTaskShape): boolean;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Run id embedded in a harness lease owner (`kynver-harness:<runId>` or `@runner:` suffix). */
|
|
2
|
-
export declare function parseHarnessLeaseRunId(leaseOwner: string | null | undefined): string | null;
|
|
3
|
-
export declare function parseHarnessLeaseRunnerId(leaseOwner: string | null | undefined): string | null;
|
|
4
|
-
/** Stamp runner id into harness lease owner for cross-runner attribution. */
|
|
5
|
-
export declare function formatHarnessLeaseOwner(runId: string, runnerId: string): string;
|
|
6
|
-
/** True when `leaseOwner` belongs to the harness run identified by `runId`. */
|
|
7
|
-
export declare function harnessLeaseOwnerMatchesRun(leaseOwner: string | null | undefined, runId: string): boolean;
|
|
8
|
-
/** Lease owner sent on renew/release — must match the row exactly. */
|
|
9
|
-
export declare function resolveHarnessLeaseOwnerForRenewal(input: {
|
|
10
|
-
runId: string;
|
|
11
|
-
workerLeaseOwner?: string | null;
|
|
12
|
-
runnerId: string;
|
|
13
|
-
}): string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { MonitorTickResult } from "../monitor/monitor.types.js";
|
|
2
|
-
import type { HarnessReadableNotice } from "./harness-notice.types.js";
|
|
3
|
-
export declare function formatMonitorTickNotice(tick: MonitorTickResult & {
|
|
4
|
-
monitorId?: string;
|
|
5
|
-
phase?: string;
|
|
6
|
-
}): HarnessReadableNotice;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { HarnessReadableNotice, HarnessToolFormatContext } from "./harness-notice.types.js";
|
|
2
|
-
export declare function joinHarnessNotice(notice: HarnessReadableNotice): string;
|
|
3
|
-
export declare function formatHarnessToolReadable(ctx: HarnessToolFormatContext): HarnessReadableNotice;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** Plain-English operator notice with optional raw diagnostic attachment. */
|
|
2
|
-
export interface HarnessReadableNotice {
|
|
3
|
-
/** Primary body — plain English, safe for Telegram. */
|
|
4
|
-
primary: string;
|
|
5
|
-
/** Optional collapsed JSON / technical detail (not the main message). */
|
|
6
|
-
diagnostic?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface HarnessToolFormatContext {
|
|
9
|
-
scope: string;
|
|
10
|
-
action: string;
|
|
11
|
-
ok: boolean;
|
|
12
|
-
exitCode: number | null;
|
|
13
|
-
stdout: string;
|
|
14
|
-
stderr: string;
|
|
15
|
-
error?: string;
|
|
16
|
-
timedOut?: boolean;
|
|
17
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { HarnessReadableNotice } from "./harness-notice.types.js";
|
|
2
|
-
/** True when a parsed JSON object looks like `kynver worker start` stdout. */
|
|
3
|
-
export declare function isWorkerStartStdoutRecord(value: unknown): value is Record<string, unknown>;
|
|
4
|
-
/** Scan stdout / mixed text for the first worker-start JSON blob. */
|
|
5
|
-
export declare function extractWorkerStartRecordFromText(text: string): Record<string, unknown> | null;
|
|
6
|
-
/** Plain-English notice for `kynver worker start` success JSON. */
|
|
7
|
-
export declare function formatWorkerStartNotice(status: unknown): HarnessReadableNotice;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type { HarnessReadableNotice, HarnessToolFormatContext } from "./harness-notice.types.js";
|
|
2
|
-
export { formatHarnessToolReadable, joinHarnessNotice } from "./harness-notice.tool-response.js";
|
|
3
|
-
export { formatWorkerStatusNotice } from "./harness-notice.worker-status.js";
|
|
4
|
-
export { formatAutoCompleteOutcomeNotice } from "./harness-notice.auto-complete.js";
|
|
5
|
-
export { formatMonitorTickNotice } from "./harness-notice.monitor-tick.js";
|
|
6
|
-
export { formatWorkerCompleteNotice } from "./harness-notice.worker-complete.js";
|
|
7
|
-
export { extractWorkerStartRecordFromText, formatWorkerStartNotice, isWorkerStartStdoutRecord, } from "./harness-notice.worker-start.js";
|
|
8
|
-
export { firstJsonFromStdout, diagnosticJson } from "./harness-notice.parse.js";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface HarnessRepairTarget {
|
|
2
|
-
targetPrUrl: string;
|
|
3
|
-
targetPrBranch: string | null;
|
|
4
|
-
}
|
|
5
|
-
export interface HarnessRepairTargetContract {
|
|
6
|
-
repairEnforceOriginalPr: boolean;
|
|
7
|
-
targetPrUrl: string | null;
|
|
8
|
-
targetPrBranch: string | null;
|
|
9
|
-
}
|
|
10
|
-
export declare function normalizePrUrl(url: string): string | null;
|
|
11
|
-
export declare function isHarnessRepairTask(task: {
|
|
12
|
-
title?: string;
|
|
13
|
-
executorRef?: string | null;
|
|
14
|
-
}): boolean;
|
|
15
|
-
export declare function parseRepairTargetContractFromDescription(description: string | null | undefined): HarnessRepairTargetContract;
|
|
16
|
-
export declare function resolveHarnessRepairTargetFromTask(task: {
|
|
17
|
-
title?: string;
|
|
18
|
-
description?: string | null;
|
|
19
|
-
executorRef?: string | null;
|
|
20
|
-
prUrl?: string | null;
|
|
21
|
-
branch?: string | null;
|
|
22
|
-
}): HarnessRepairTarget | null;
|
|
23
|
-
export declare function repairTargetPromptLines(target: HarnessRepairTarget): string[];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface HarnessStorageSnapshot {
|
|
2
|
-
harnessRoot: string;
|
|
3
|
-
worktreesDir: string;
|
|
4
|
-
/** Sum of per-run directory sizes. `null` when scan exceeded entry cap. */
|
|
5
|
-
worktreesBytes: number | null;
|
|
6
|
-
/** Top-level run directory count under `worktreesDir`. */
|
|
7
|
-
runCount: number;
|
|
8
|
-
/** Total worktree (worker) directories across all runs. */
|
|
9
|
-
workerCount: number;
|
|
10
|
-
/** Earliest run-directory mtime, ISO string. `null` when no runs present. */
|
|
11
|
-
oldestRunAt: string | null;
|
|
12
|
-
scannedAt: string;
|
|
13
|
-
}
|
|
14
|
-
interface ScanOptions {
|
|
15
|
-
harnessRoot?: string;
|
|
16
|
-
/** Cap per directorySizeBytes call. Default 50k entries — keeps the snapshot fast for monitor ticks. Set null/0 to return bytes=null without scanning. */
|
|
17
|
-
perRunEntryCap?: number | null;
|
|
18
|
-
now?: number;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Read-only summary of harness worktree storage usage. Surfaced in cleanup
|
|
22
|
-
* summaries and consumable by monitor/Command Center to flag disk pressure
|
|
23
|
-
* before WSL runs out of space again.
|
|
24
|
-
*/
|
|
25
|
-
export declare function harnessStorageSnapshot(opts?: ScanOptions): HarnessStorageSnapshot;
|
|
26
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function runHarnessVerifyCli(args: Record<string, string | boolean>): void;
|
package/dist/harness-verify.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { type BoundedBuildExecResult } from "./bounded-build/index.js";
|
|
2
|
-
/** Default expensive checks for harness / plan runtime verification. */
|
|
3
|
-
export declare const DEFAULT_HARNESS_VERIFY_COMMANDS: readonly ["npm run typecheck", "npm run test"];
|
|
4
|
-
export interface HarnessVerifyStep {
|
|
5
|
-
command: string;
|
|
6
|
-
result: BoundedBuildExecResult;
|
|
7
|
-
}
|
|
8
|
-
export interface HarnessVerifySummary {
|
|
9
|
-
passed: boolean;
|
|
10
|
-
steps: HarnessVerifyStep[];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Run plan/harness verification commands through the cross-process heavy-verification
|
|
14
|
-
* gate and memory-bounded subprocess execution. Parallel workers queue here instead
|
|
15
|
-
* of launching simultaneous typecheck/build commands.
|
|
16
|
-
*/
|
|
17
|
-
export declare function runHarnessVerifyCommands(cwd: string, commands?: readonly string[], opts?: {
|
|
18
|
-
waitForAdmissionMs?: number;
|
|
19
|
-
timeoutMs?: number;
|
|
20
|
-
/** Called synchronously before each command starts — safe for stderr progress logs. */
|
|
21
|
-
onBeforeCommand?: (cmd: string, index: number, total: number) => void;
|
|
22
|
-
/**
|
|
23
|
-
* Stop after the first failing command (plan §7.5): a failed typecheck
|
|
24
|
-
* already fails the verify — running the full test suite after it wastes
|
|
25
|
-
* minutes of box time per broken-typecheck landing. Default ON; pass
|
|
26
|
-
* false to force every command (e.g. a diagnostics lane that wants the
|
|
27
|
-
* complete failure picture).
|
|
28
|
-
*/
|
|
29
|
-
failFast?: boolean;
|
|
30
|
-
}): HarnessVerifySummary;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { HarnessWorkerRecord } from "./status.js";
|
|
2
|
-
/**
|
|
3
|
-
* PID existence is not enough on long-running hosts: Linux can reuse an old
|
|
4
|
-
* worker PID for an unrelated process, which makes stale worker.json records
|
|
5
|
-
* look alive and can falsely saturate the global worker gate.
|
|
6
|
-
*/
|
|
7
|
-
export declare function workerProcessMatchesRecord(worker: HarnessWorkerRecord): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Whether a worker still occupies a machine-wide harness capacity slot.
|
|
10
|
-
* Ignores completion-acknowledged workers even when the recorded PID was reused.
|
|
11
|
-
*/
|
|
12
|
-
export declare function isActiveHarnessWorker(worker: HarnessWorkerRecord): boolean;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare function isPathUnderHarnessWorktree(cwd: string): boolean;
|
|
2
|
-
export type HarnessWorktreeBuildGuardVerdict = {
|
|
3
|
-
ok: true;
|
|
4
|
-
} | {
|
|
5
|
-
ok: false;
|
|
6
|
-
reason: string;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Prevent root-owned generated caches: npm/build as uid 0 inside harness worktrees
|
|
10
|
-
* creates node_modules/.next the daemon user cannot reclaim during cleanup.
|
|
11
|
-
*/
|
|
12
|
-
export declare function assessHarnessWorktreeBuildGuard(cwd: string): HarnessWorktreeBuildGuardVerdict;
|