@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
package/dist/worker-env.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Worker spawn env scrub — harness workers must not inherit host deployment secrets.
|
|
3
|
-
*
|
|
4
|
-
* §7.8 hardening (kernel-plan H8 phase 1, verified leaks 2026-07-19): the
|
|
5
|
-
* original denylist stopped at `_SECRET`/`_API_KEY`, letting `MEMORY_CONTENT_KEK`,
|
|
6
|
-
* `LLM_BYOK_KEK`, `KYNVER_COMMAND_AUTH_KEY`, `KYNVER_INSTRUCTION_BUNDLE_KEY`,
|
|
7
|
-
* and `KYNVER_MEMORY_LEDGER_KEY` reach worker children. The suffix net now
|
|
8
|
-
* covers the secret-shaped families (`_KEK`, `_KEY`, `_TOKEN`, `_PASSWORD`,
|
|
9
|
-
* `_PASSPHRASE`, `_SALT`) with EXPLICIT allows for the keys workers
|
|
10
|
-
* legitimately need — pass-through is a documented decision, never an
|
|
11
|
-
* accident:
|
|
12
|
-
*
|
|
13
|
-
* - `GITHUB_TOKEN` / `GH_TOKEN`: git-push + `gh` credential-helper auth for
|
|
14
|
-
* the worker's own branch pushes.
|
|
15
|
-
* - `CLAUDE_CODE_OAUTH_TOKEN`: the worker CLI's own auth on boxes that use
|
|
16
|
-
* env-based OAuth instead of the credentials file (same trust domain as
|
|
17
|
-
* `~/.claude` — it is the worker's credential, not a deployment secret).
|
|
18
|
-
* - `*_PUBLIC_KEY`: public verification material (command-auth /
|
|
19
|
-
* instruction-bundle / ledger pins), safe by definition.
|
|
20
|
-
*
|
|
21
|
-
* Operator escape hatch: `KYNVER_WORKER_ENV_ALLOW` on the host (comma- or
|
|
22
|
-
* whitespace-separated key names) allows additional suffix-matched keys
|
|
23
|
-
* through when a box workflow needs one — it can NEVER re-admit a key on the
|
|
24
|
-
* exact forbidden list below (those are known deployment secrets).
|
|
25
|
-
*/
|
|
26
|
-
/** Exact env keys that must never reach a worker child process (not overridable). */
|
|
27
|
-
export declare const FORBIDDEN_WORKER_ENV_KEYS: readonly ["ANTHROPIC_API_KEY", "ANALYST_API_KEY", "RECRUITER_API_KEY", "AUTH_SECRET", "NEXTAUTH_SECRET", "DATABASE_URL", "PRODUCTION_DATABASE_URL", "KYNVER_PRODUCTION_DATABASE_URL", "REDIS_URL", "GOOGLE_CLIENT_SECRET", "GITHUB_CLIENT_SECRET", "KYNVER_API_KEY", "KYNVER_SERVICE_SECRET", "KYNVER_RUNTIME_SECRET", "KYNVER_CRON_SECRET", "OPENCLAW_CRON_SECRET", "QSTASH_TOKEN", "QSTASH_CURRENT_SIGNING_KEY", "QSTASH_NEXT_SIGNING_KEY", "TOOL_SECRETS_KEK", "TOOL_EXECUTOR_DISPATCH_SECRET", "CLOUDFLARE_API_TOKEN", "STRIPE_SECRET_KEY", "STRIPE_WEBHOOK_SECRET", "STRIPE_IDENTITY_WEBHOOK_SECRET", "VOYAGE_API_KEY", "PERPLEXITY_API_KEY", "FRED_API_KEY", "FMP_API_KEY", "CURSOR_API_KEY", "MEMORY_CONTENT_KEK", "LLM_BYOK_KEK", "KYNVER_COMMAND_AUTH_KEY", "KYNVER_INSTRUCTION_BUNDLE_KEY", "KYNVER_MEMORY_LEDGER_KEY", "KYNVER_JWKS_PRIVATE_KEY_JWK"];
|
|
28
|
-
/** Suffix-matched keys workers legitimately need — explicit decisions, see module doc. */
|
|
29
|
-
export declare const ALLOWED_WORKER_ENV_KEYS: readonly ["GITHUB_TOKEN", "GH_TOKEN", "CLAUDE_CODE_OAUTH_TOKEN"];
|
|
30
|
-
/** Host env var naming extra suffix-matched keys to allow through (comma/whitespace separated). */
|
|
31
|
-
export declare const KYNVER_WORKER_ENV_ALLOW = "KYNVER_WORKER_ENV_ALLOW";
|
|
32
|
-
export declare function isForbiddenWorkerEnvKey(key: string, opts?: {
|
|
33
|
-
operatorAllow?: ReadonlySet<string>;
|
|
34
|
-
}): boolean;
|
|
35
|
-
export declare function listForbiddenWorkerEnvKeys(env: NodeJS.ProcessEnv): string[];
|
|
36
|
-
/**
|
|
37
|
-
* §7.8 review A3 — audit visibility for the escape hatch: the operator-allow
|
|
38
|
-
* entries that are PRESENT in this env and would be scrubbed without the
|
|
39
|
-
* hatch (key names only, never values). An armed hatch must be visible on
|
|
40
|
-
* audit surfaces, not silently absent from the forbidden list.
|
|
41
|
-
*/
|
|
42
|
-
export declare function listOperatorAllowedWorkerEnvKeys(env: NodeJS.ProcessEnv): string[];
|
|
43
|
-
export declare function scrubWorkerEnv(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
44
|
-
export interface WorkerEnvAudit {
|
|
45
|
-
forbiddenPresent: string[];
|
|
46
|
-
safe: boolean;
|
|
47
|
-
/** Present (non-empty) only when the KYNVER_WORKER_ENV_ALLOW hatch is armed for live keys. */
|
|
48
|
-
operatorAllowedActive?: string[];
|
|
49
|
-
}
|
|
50
|
-
export declare function auditWorkerEnv(env: NodeJS.ProcessEnv): WorkerEnvAudit;
|
|
51
|
-
/** @deprecated Use {@link scrubWorkerEnv} — kept for existing imports from git.ts */
|
|
52
|
-
export declare function scrubClaudeEnv(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function extractEmbeddedWorkerFinalResultRecord(value: string): Record<string, unknown> | null;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { HarnessWorkerRecord } from "./status.js";
|
|
2
|
-
export interface ResolveWorkerLeaseForCallbackInput {
|
|
3
|
-
worker: HarnessWorkerRecord;
|
|
4
|
-
agentOsId: string;
|
|
5
|
-
baseUrl?: string;
|
|
6
|
-
secret?: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Ensure completion/renewal uses the same lease token the board holds for this
|
|
10
|
-
* worker's task. Persists a fetched token onto worker.json when missing locally.
|
|
11
|
-
*/
|
|
12
|
-
export declare function resolveWorkerLeaseForCallback(input: ResolveWorkerLeaseForCallbackInput): Promise<{
|
|
13
|
-
leaseOwner: string | null;
|
|
14
|
-
leaseToken: string | null;
|
|
15
|
-
}>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { HarnessWorkerRecord, RawHarnessWorkerStatus } from "./status.js";
|
|
2
|
-
export interface CompletionSnapshot {
|
|
3
|
-
finalResult?: unknown;
|
|
4
|
-
prUrl?: string | null;
|
|
5
|
-
summary?: string | null;
|
|
6
|
-
}
|
|
7
|
-
export declare function isCompletionAcknowledged(worker: HarnessWorkerRecord): boolean;
|
|
8
|
-
export declare function completionSnapshotFromStatus(status: RawHarnessWorkerStatus): CompletionSnapshot;
|
|
9
|
-
/**
|
|
10
|
-
* Persist local terminal lifecycle after AgentOS acknowledges harness completion.
|
|
11
|
-
* Prevents a later PID reuse or still-running wrapper from re-reporting the worker
|
|
12
|
-
* as `running` once the board task has advanced.
|
|
13
|
-
*/
|
|
14
|
-
export declare function persistCompletionAcknowledged(worker: HarnessWorkerRecord, status: RawHarnessWorkerStatus, opts?: {
|
|
15
|
-
source?: string;
|
|
16
|
-
}): void;
|
|
17
|
-
/**
|
|
18
|
-
* When the board task has left `running` but the local worker still looks live
|
|
19
|
-
* (common after server-side completion reconcile), mirror the terminal lifecycle
|
|
20
|
-
* on disk so harness status matches AgentOS.
|
|
21
|
-
*/
|
|
22
|
-
export declare function syncCompletionAcknowledgedFromOperatorTick(runId: string, operatorTick: unknown): Array<{
|
|
23
|
-
worker: string;
|
|
24
|
-
taskId: string;
|
|
25
|
-
taskStatus: string;
|
|
26
|
-
}>;
|
|
27
|
-
/** Reload helper for callers that already hold a worker name. */
|
|
28
|
-
export declare function acknowledgeWorkerIfBoardTaskAdvanced(runId: string, workerName: string, operatorTick: unknown): boolean;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** True when a persisted harness path contains the historical `runs/runs` segment. */
|
|
2
|
-
export declare function hasNestedRunsSegment(filePath: string): boolean;
|
|
3
|
-
/**
|
|
4
|
-
* Rewrite a nested `.../runs/runs/<runId>/...` path to canonical `.../runs/<runId>/...`.
|
|
5
|
-
* Returns the input unchanged when no nested segment is present.
|
|
6
|
-
*/
|
|
7
|
-
export declare function repairNestedRunsPath(filePath: string, harnessRoot: string): string;
|
|
8
|
-
export declare function canonicalRunDir(harnessRoot: string, runId: string): string;
|
|
9
|
-
export declare function canonicalWorkerDir(harnessRoot: string, runId: string, workerName: string): string;
|
|
10
|
-
/** Historical mistaken layout when harness root ended in `/runs`. */
|
|
11
|
-
export declare function legacyNestedWorkerDir(harnessRoot: string, runId: string, workerName: string): string;
|
|
12
|
-
export declare function workerArtifactFileNames(): readonly string[];
|
|
13
|
-
export declare function workerArtifactPaths(workerDir: string): {
|
|
14
|
-
workerJsonPath: string;
|
|
15
|
-
stdoutPath: string;
|
|
16
|
-
stderrPath: string;
|
|
17
|
-
heartbeatPath: string;
|
|
18
|
-
lastStatusPath: string;
|
|
19
|
-
};
|
|
20
|
-
/** Resolve the best on-disk worker.json path for a run worker entry. */
|
|
21
|
-
export declare function resolveWorkerJsonPath(input: {
|
|
22
|
-
harnessRoot: string;
|
|
23
|
-
runId: string;
|
|
24
|
-
workerName: string;
|
|
25
|
-
statusPath?: string;
|
|
26
|
-
}): string;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { repairMissingRunMetadata } from "./run-metadata-retention.js";
|
|
2
|
-
export interface WorkerMetadataReconcileOutcome {
|
|
3
|
-
runId: string;
|
|
4
|
-
worker: string;
|
|
5
|
-
action: "materialized_run_symlink" | "repaired_run_index" | "repaired_worker_paths" | "relocated_artifacts" | "synthesized_worker_json" | "marked_abandoned" | "skipped";
|
|
6
|
-
reason: string;
|
|
7
|
-
}
|
|
8
|
-
export interface WorkerMetadataReconcileResult {
|
|
9
|
-
workers: WorkerMetadataReconcileOutcome[];
|
|
10
|
-
runMetadataRetention: ReturnType<typeof repairMissingRunMetadata>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Repair historical harness worker metadata:
|
|
14
|
-
* - fix run.json index paths that still reference nested `runs/runs`
|
|
15
|
-
* - relocate split artifacts into canonical worker dirs
|
|
16
|
-
* - synthesize missing worker.json from last-status/heartbeat/stdout when possible
|
|
17
|
-
* - mark empty abandoned worker dirs truthfully
|
|
18
|
-
*/
|
|
19
|
-
export declare function reconcileWorkerMetadata(): WorkerMetadataReconcileResult;
|
|
20
|
-
/** JSON summary for CLI / verifier scripts. */
|
|
21
|
-
export declare function reconcileWorkerMetadataCli(): void;
|
package/dist/worker-ops.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export declare function tryCompleteWorker(args: Record<string, string | boolean>): Promise<{
|
|
2
|
-
ok: boolean;
|
|
3
|
-
skipped?: boolean;
|
|
4
|
-
reason?: string;
|
|
5
|
-
nextAction?: string;
|
|
6
|
-
httpStatus?: number;
|
|
7
|
-
response?: unknown;
|
|
8
|
-
completionBlocked?: boolean;
|
|
9
|
-
prHandoff?: {
|
|
10
|
-
prUrl?: string;
|
|
11
|
-
created?: boolean;
|
|
12
|
-
};
|
|
13
|
-
}>;
|
|
14
|
-
export declare function completeWorker(args: Record<string, string | boolean>): Promise<void>;
|
|
15
|
-
export declare function workerStatus(args: Record<string, string | boolean>): void;
|
|
16
|
-
export declare function workerList(args: Record<string, string | boolean>): void;
|
|
17
|
-
type RunBoardWorker = Record<string, unknown> & {
|
|
18
|
-
worker: string;
|
|
19
|
-
status?: string;
|
|
20
|
-
attention?: string;
|
|
21
|
-
lifecycleStage?: string | null;
|
|
22
|
-
lastActivityAt?: string | null;
|
|
23
|
-
};
|
|
24
|
-
interface RunBoard {
|
|
25
|
-
runId: string;
|
|
26
|
-
name: string;
|
|
27
|
-
status: string;
|
|
28
|
-
repo: string;
|
|
29
|
-
workerCount: number;
|
|
30
|
-
needsAttention: string[];
|
|
31
|
-
workers: RunBoardWorker[];
|
|
32
|
-
projection?: "compact" | "full";
|
|
33
|
-
activeFilters?: Record<string, string | boolean>;
|
|
34
|
-
resultContract?: Record<string, unknown>;
|
|
35
|
-
drilldownCommands?: Record<string, string>;
|
|
36
|
-
summary?: Record<string, unknown>;
|
|
37
|
-
controller?: Record<string, unknown>;
|
|
38
|
-
}
|
|
39
|
-
export declare function buildRunBoard(runId: string): RunBoard;
|
|
40
|
-
export declare function buildCompactRunBoard(runId: string): RunBoard;
|
|
41
|
-
export declare function publishHarnessBoardSnapshot(args: Record<string, string | boolean>, source: string): Promise<Record<string, unknown> | null>;
|
|
42
|
-
export declare function runStatus(args: Record<string, string | boolean>): void;
|
|
43
|
-
export declare function tailWorker(args: Record<string, string | boolean>): void;
|
|
44
|
-
export declare function stopWorker(args: Record<string, string | boolean>): void;
|
|
45
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const WORKER_PERSONA_DISPATCH_LANES: readonly ["implementation", "review", "landing"];
|
|
2
|
-
export type WorkerPersonaDispatchLane = (typeof WORKER_PERSONA_DISPATCH_LANES)[number];
|
|
3
|
-
export declare const WORKER_PERSONA_DEFAULT_ROLE_LANES: readonly ["plan_author", "implementer", "report_reviewer", "deep_reviewer", "runtime_verifier", "system"];
|
|
4
|
-
export type WorkerPersonaDefaultRoleLane = (typeof WORKER_PERSONA_DEFAULT_ROLE_LANES)[number];
|
|
5
|
-
export interface WorkerPersonaCatalogEntry {
|
|
6
|
-
slug: string;
|
|
7
|
-
displayName: string;
|
|
8
|
-
description: string;
|
|
9
|
-
/** Harness dispatch lane reserved for this persona (null = orchestration / no dispatch). */
|
|
10
|
-
dispatchLane: WorkerPersonaDispatchLane | null;
|
|
11
|
-
/** Default plan progress role when enriching harness tasks. */
|
|
12
|
-
defaultRoleLane: WorkerPersonaDefaultRoleLane;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Embedded structural catalog (slugs, display names, lanes; generic
|
|
16
|
-
* descriptions). Lane-derivation helpers use this so dispatch semantics are
|
|
17
|
-
* stable regardless of bundle state.
|
|
18
|
-
*/
|
|
19
|
-
export declare const WORKER_PERSONA_CATALOG: readonly WorkerPersonaCatalogEntry[];
|
|
20
|
-
export type WorkerPersonaCatalogSlug = (typeof WORKER_PERSONA_CATALOG)[number]["slug"];
|
|
21
|
-
export declare function getWorkerPersonaCatalogEntry(slug: string | null | undefined): WorkerPersonaCatalogEntry | null;
|
|
22
|
-
/** Dispatch lane reserved for a persona; null when orchestration-only or unknown. */
|
|
23
|
-
export declare function getPersonaDispatchLane(slug: string | null | undefined): WorkerPersonaDispatchLane | null;
|
|
24
|
-
export declare function getPersonaDefaultRoleLane(slug: string | null | undefined): WorkerPersonaDefaultRoleLane | null;
|
|
25
|
-
export declare function isKnownWorkerPersonaSlug(slug: string | null | undefined): boolean;
|
|
26
|
-
/** Personas whose harness dispatch lane is `review` (derived — do not hardcode slugs). */
|
|
27
|
-
export declare function workerPersonaReviewSlugs(): readonly WorkerPersonaCatalogSlug[];
|
|
28
|
-
/** Personas whose harness dispatch lane is `landing` (derived — do not hardcode slugs). */
|
|
29
|
-
export declare function workerPersonaLandingSlugs(): readonly WorkerPersonaCatalogSlug[];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { ModelRoutingDecision } from "./model-routing.js";
|
|
2
|
-
/** Default harness worker CLI provider unless an operator override allows Claude. */
|
|
3
|
-
export declare const DEFAULT_WORKER_PROVIDER = "cursor";
|
|
4
|
-
export declare function isClaudeFamilyProvider(provider: string | null | undefined): boolean;
|
|
5
|
-
/**
|
|
6
|
-
* True when the board row explicitly opts into a Claude/Opus worker
|
|
7
|
-
* (operator override on the task).
|
|
8
|
-
*/
|
|
9
|
-
export declare function taskAllowsClaudeWorker(task: Record<string, unknown> | null | undefined): boolean;
|
|
10
|
-
export interface EnforceCursorWorkerProviderInput {
|
|
11
|
-
routing: ModelRoutingDecision;
|
|
12
|
-
task?: Record<string, unknown> | null;
|
|
13
|
-
/** Per-invocation `--provider` from the harness CLI. */
|
|
14
|
-
explicitProvider?: string | null;
|
|
15
|
-
/** When true, `--provider claude` is treated as an operator run override. */
|
|
16
|
-
explicitProviderIsOperatorOverride?: boolean;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Rewrites Claude/Opus routing to Cursor unless the task or an explicit operator
|
|
20
|
-
* run override allows Claude workers.
|
|
21
|
-
*/
|
|
22
|
-
export declare function enforceCursorWorkerProvider(input: EnforceCursorWorkerProviderInput): ModelRoutingDecision;
|
|
23
|
-
/** Normalize config/registry defaults — legacy `claude` configs map to Cursor unless overridden. */
|
|
24
|
-
export declare function resolveConfiguredWorkerProvider(configured: string | null | undefined, fallback?: string): string;
|
|
25
|
-
/** Plan / Command Center executor lists — Cursor wins when both families appear. */
|
|
26
|
-
export declare function preferCursorExecutor(executors: string[]): string[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface WorkspaceRuntimePreferences {
|
|
2
|
-
maxConcurrentWorkers: number | null;
|
|
3
|
-
}
|
|
4
|
-
export declare function shouldApplyWorkspaceRuntimePreferences(env?: NodeJS.ProcessEnv): boolean;
|
|
5
|
-
export declare function configuredMaxWorkersOverrideForBox(preferences: WorkspaceRuntimePreferences | null | undefined, env?: NodeJS.ProcessEnv): number | undefined;
|
|
6
|
-
/**
|
|
7
|
-
* Pull the Command Center worker cap each pipeline tick so the daemon honors
|
|
8
|
-
* workspace settings without restarting or editing ~/.kynver/config.json.
|
|
9
|
-
*/
|
|
10
|
-
export declare function fetchWorkspaceRuntimePreferences(agentOsId: string, args: Record<string, string | boolean>): Promise<WorkspaceRuntimePreferences | null>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Worktree base-ref resolution + self-heal.
|
|
3
|
-
*
|
|
4
|
-
* Live incident (7-day event breakdown, 2026-08-05): 75 of 82 spawn-failure
|
|
5
|
-
* claim releases — 91% of the week's compensator load — were
|
|
6
|
-
* `git worktree add … unknown failed: fatal: invalid reference: unknown`.
|
|
7
|
-
* The run-metadata repair path (`run-metadata-retention.ts`) synthesizes
|
|
8
|
-
* rebuilt run.json records with `baseCommit: "unknown"`, and the supervisor
|
|
9
|
-
* passed that literal to git; every spawn in a repaired run then failed
|
|
10
|
-
* forever, each failure burning an attempt (the failure text was not
|
|
11
|
-
* infrastructure-classified) and minting over-attempt recovery children.
|
|
12
|
-
*
|
|
13
|
-
* This resolver picks the first candidate ref that git can verify —
|
|
14
|
-
* the recorded baseCommit (unless it is the known-invalid marker), the
|
|
15
|
-
* run's base branch, `origin/main`, `origin/HEAD` — and reports when the
|
|
16
|
-
* pick differs from the record so the caller can PERSIST the repair
|
|
17
|
-
* (self-heal: one resolution fixes the run for all subsequent spawns).
|
|
18
|
-
*/
|
|
19
|
-
/** Marker the metadata-repair path historically stamped on rebuilt runs. */
|
|
20
|
-
export declare const INVALID_BASE_COMMIT_MARKER = "unknown";
|
|
21
|
-
export interface ResolveWorktreeBaseRefInput {
|
|
22
|
-
baseCommit?: string | null;
|
|
23
|
-
base?: string | null;
|
|
24
|
-
/** Verify a ref resolves to a commit; injectable for tests. */
|
|
25
|
-
verifyRef: (ref: string) => boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface ResolvedWorktreeBaseRef {
|
|
28
|
-
ref: string;
|
|
29
|
-
/** True when the pick differs from the recorded baseCommit — persist it. */
|
|
30
|
-
repaired: boolean;
|
|
31
|
-
/** Which candidate won (for the spawn log). */
|
|
32
|
-
source: "baseCommit" | "base" | "origin/main" | "origin/HEAD";
|
|
33
|
-
}
|
|
34
|
-
export declare function resolveWorktreeBaseRef(input: ResolveWorktreeBaseRefInput): ResolvedWorktreeBaseRef;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type WorktreeCompletionHandoffState = "clean" | "pr_handoff" | "commit_handoff" | "dirty_worktree" | "dirty_worktree_no_pr";
|
|
2
|
-
export interface WorktreeCompletionHandoffInput {
|
|
3
|
-
changedFiles?: unknown;
|
|
4
|
-
finalResult?: unknown;
|
|
5
|
-
prUrl?: string | null;
|
|
6
|
-
headCommit?: string | null;
|
|
7
|
-
artifactBundlePath?: string | null;
|
|
8
|
-
patchPath?: string | null;
|
|
9
|
-
disposableArtifactsRemoved?: string[] | null;
|
|
10
|
-
}
|
|
11
|
-
export interface WorktreeCompletionHandoffVerdict {
|
|
12
|
-
allowed: boolean;
|
|
13
|
-
state: WorktreeCompletionHandoffState;
|
|
14
|
-
materialDirtyCount: number;
|
|
15
|
-
detail?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare function assessWorktreeCompletionHandoff(input: WorktreeCompletionHandoffInput): WorktreeCompletionHandoffVerdict;
|
package/dist/worktree.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { loadRun, runDirectory, saveRun } from "./run-store.js";
|
|
2
|
-
export interface CreatedRunInfo {
|
|
3
|
-
runId: string;
|
|
4
|
-
runDir: string;
|
|
5
|
-
repo: string;
|
|
6
|
-
base: string;
|
|
7
|
-
baseCommit: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function createRun(args: Record<string, string | boolean>): CreatedRunInfo;
|
|
10
|
-
export declare function listRuns(): void;
|
|
11
|
-
export { loadRun, saveRun, runDirectory };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type WslCrashDumpObservation } from "./wsl-crash-dumps.js";
|
|
2
|
-
export interface WslCrashDumpCleanupResult {
|
|
3
|
-
observation: WslCrashDumpObservation | null;
|
|
4
|
-
execute: boolean;
|
|
5
|
-
keepNewest: number;
|
|
6
|
-
removed: Array<{
|
|
7
|
-
path: string;
|
|
8
|
-
bytes: number;
|
|
9
|
-
name: string;
|
|
10
|
-
}>;
|
|
11
|
-
removedBytes: number;
|
|
12
|
-
skipped: Array<{
|
|
13
|
-
path: string;
|
|
14
|
-
reason: string;
|
|
15
|
-
}>;
|
|
16
|
-
}
|
|
17
|
-
export interface WslCrashDumpCleanupOptions {
|
|
18
|
-
execute?: boolean;
|
|
19
|
-
/** Keep this many newest dumps; remove the rest when execute=true. */
|
|
20
|
-
keepNewest?: number;
|
|
21
|
-
/** When true, remove all dumps regardless of keepNewest (operator purge). */
|
|
22
|
-
purgeAll?: boolean;
|
|
23
|
-
forceWsl?: boolean;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Prune Windows-side WSL crash dumps. Dry-run by default; pass execute=true
|
|
27
|
-
* or `KYNVER_WSL_CRASH_DUMP_EXECUTE=1` to unlink files.
|
|
28
|
-
*/
|
|
29
|
-
export declare function cleanupWslCrashDumps(options?: WslCrashDumpCleanupOptions): WslCrashDumpCleanupResult;
|
|
30
|
-
/** True when automatic cleanup should run during harness retention sweeps. */
|
|
31
|
-
export declare function shouldAutoCleanupWslCrashDumps(observation: WslCrashDumpObservation | null): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function runWslCrashesCli(args: Record<string, string | boolean>): void;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/** Default total bytes in wsl-crashes before the observer flags warning (5 GiB). */
|
|
2
|
-
export declare const DEFAULT_WSL_CRASH_DUMP_WARN_BYTES: number;
|
|
3
|
-
/** Default total bytes before critical — ~4× typical 2.2 GiB node dump (10 GiB). */
|
|
4
|
-
export declare const DEFAULT_WSL_CRASH_DUMP_CRITICAL_BYTES: number;
|
|
5
|
-
/** Default dump count before warning. */
|
|
6
|
-
export declare const DEFAULT_WSL_CRASH_DUMP_WARN_COUNT = 2;
|
|
7
|
-
/** Default dump count before critical. */
|
|
8
|
-
export declare const DEFAULT_WSL_CRASH_DUMP_CRITICAL_COUNT = 4;
|
|
9
|
-
export interface WslCrashDumpFile {
|
|
10
|
-
name: string;
|
|
11
|
-
path: string;
|
|
12
|
-
bytes: number;
|
|
13
|
-
mtimeMs: number;
|
|
14
|
-
/** Best-effort executable hint parsed from the WSL dump filename. */
|
|
15
|
-
executableHint: string | null;
|
|
16
|
-
signal: number | null;
|
|
17
|
-
pid: number | null;
|
|
18
|
-
}
|
|
19
|
-
export interface WslCrashDumpObservation {
|
|
20
|
-
ok: boolean;
|
|
21
|
-
/** Resolved host path (WSL mount) to the wsl-crashes directory. */
|
|
22
|
-
path: string | null;
|
|
23
|
-
windowsUser: string | null;
|
|
24
|
-
dumpCount: number;
|
|
25
|
-
totalBytes: number;
|
|
26
|
-
warnBelowBytes: number;
|
|
27
|
-
criticalBelowBytes: number;
|
|
28
|
-
warnCount: number;
|
|
29
|
-
criticalCount: number;
|
|
30
|
-
/** Newest dumps first. */
|
|
31
|
-
dumps: WslCrashDumpFile[];
|
|
32
|
-
/** Unique executable hints across dumps (e.g. node, cursor, vscode-server). */
|
|
33
|
-
executables: string[];
|
|
34
|
-
/** `kernel.core_pattern` when readable — surfaces wsl-capture-crash vs apport. */
|
|
35
|
-
corePattern: string | null;
|
|
36
|
-
wslCaptureEnabled: boolean;
|
|
37
|
-
/** Parsed MaxCrashDumpCount from %USERPROFILE%/.wslconfig when readable. */
|
|
38
|
-
maxCrashDumpCount: number | null;
|
|
39
|
-
dumpsDisabledInWslConfig: boolean;
|
|
40
|
-
reason: string | null;
|
|
41
|
-
probeError: string | null;
|
|
42
|
-
}
|
|
43
|
-
export interface ObserveWslCrashDumpsOptions {
|
|
44
|
-
forceWsl?: boolean;
|
|
45
|
-
hostMount?: string;
|
|
46
|
-
windowsUser?: string;
|
|
47
|
-
crashDumpDir?: string;
|
|
48
|
-
warnBelowBytes?: number;
|
|
49
|
-
criticalBelowBytes?: number;
|
|
50
|
-
warnCount?: number;
|
|
51
|
-
criticalCount?: number;
|
|
52
|
-
/** Test seam — inject listing instead of reading the filesystem. */
|
|
53
|
-
listDumps?: (dir: string) => WslCrashDumpFile[];
|
|
54
|
-
readCorePattern?: () => string | null;
|
|
55
|
-
readWslConfig?: (windowsUser: string, hostMount: string) => WslConfigCrashDumpSettings | null;
|
|
56
|
-
}
|
|
57
|
-
export interface WslConfigCrashDumpSettings {
|
|
58
|
-
maxCrashDumpCount: number | null;
|
|
59
|
-
crashDumpFolder: string | null;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Resolve the Windows username for the WSL interop mount. Order: explicit env,
|
|
63
|
-
* `cmd.exe echo %USERNAME%`, then Linux user matching `/mnt/c/Users/<user>`.
|
|
64
|
-
*/
|
|
65
|
-
export declare function resolveWslWindowsUsername(): string | null;
|
|
66
|
-
/** Default Windows-side folder: `%LOCALAPPDATA%\\Temp\\wsl-crashes` under the host mount. */
|
|
67
|
-
export declare function resolveWslCrashDumpDir(options?: {
|
|
68
|
-
hostMount?: string;
|
|
69
|
-
windowsUser?: string | null;
|
|
70
|
-
crashDumpDir?: string;
|
|
71
|
-
}): string | null;
|
|
72
|
-
/** Parse WSL dump names like `wsl-crash-1726372480-366-_usr_bin_node-6.dmp`. */
|
|
73
|
-
export declare function parseWslCrashDumpFilename(name: string): {
|
|
74
|
-
executableHint: string | null;
|
|
75
|
-
signal: number | null;
|
|
76
|
-
pid: number | null;
|
|
77
|
-
};
|
|
78
|
-
export declare function readKernelCorePattern(): string | null;
|
|
79
|
-
export declare function isWslCaptureCrashPattern(corePattern: string | null): boolean;
|
|
80
|
-
/** Best-effort parse of `%USERPROFILE%/.wslconfig` crash-dump knobs. */
|
|
81
|
-
export declare function readWslConfigCrashDumpSettings(windowsUser: string, hostMount?: string): WslConfigCrashDumpSettings | null;
|
|
82
|
-
/**
|
|
83
|
-
* Observe Windows-side WSL crash dumps. Returns `null` on non-WSL hosts.
|
|
84
|
-
* When the directory is missing, returns a healthy empty observation.
|
|
85
|
-
*/
|
|
86
|
-
export declare function observeWslCrashDumps(options?: ObserveWslCrashDumpsOptions): WslCrashDumpObservation | null;
|
|
87
|
-
export declare function summarizeWslCrashDumpRecoverySteps(input?: {
|
|
88
|
-
wslCaptureEnabled?: boolean;
|
|
89
|
-
dumpsDisabledInWslConfig?: boolean;
|
|
90
|
-
}): string;
|
package/dist/wsl-host.d.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WSL host disk probe.
|
|
3
|
-
*
|
|
4
|
-
* Under WSL, the runtime VHDX (mounted at `/`) grows dynamically into the
|
|
5
|
-
* Windows host C: drive. When Windows C: fills up, the VHDX cannot expand:
|
|
6
|
-
* writes return SIGBUS, workers exit 135, and the Vmmem VM degrades while
|
|
7
|
-
* the Linux-side `statfs /` still reports plenty of free space inside the
|
|
8
|
-
* VHDX. This module gives the harness a cheap signal for that pressure so
|
|
9
|
-
* it can block dispatch *before* a large npm install/build pushes Windows
|
|
10
|
-
* C: into the ground.
|
|
11
|
-
*/
|
|
12
|
-
/** Default warn threshold for the Windows host disk (25 GiB free). */
|
|
13
|
-
export declare const DEFAULT_WSL_HOST_WARN_FREE_BYTES: number;
|
|
14
|
-
/** Default critical threshold for the Windows host disk (12 GiB free). Below
|
|
15
|
-
* this, large rebuilds have been observed to trigger SIGBUS / exit 135 on
|
|
16
|
-
* WSL when the VHDX cannot grow further. */
|
|
17
|
-
export declare const DEFAULT_WSL_HOST_CRITICAL_FREE_BYTES: number;
|
|
18
|
-
/** Default Windows host mount point under WSL. Overridable via env or option. */
|
|
19
|
-
export declare const DEFAULT_WSL_HOST_MOUNT = "/mnt/c";
|
|
20
|
-
export interface WslHostDiskShape {
|
|
21
|
-
ok: boolean;
|
|
22
|
-
/** Mount point that was probed. */
|
|
23
|
-
path: string;
|
|
24
|
-
freeBytes: number;
|
|
25
|
-
totalBytes: number;
|
|
26
|
-
usedPercent: number;
|
|
27
|
-
warnBelowBytes: number;
|
|
28
|
-
criticalBelowBytes: number;
|
|
29
|
-
/** Human-readable explanation when the host disk is under pressure. */
|
|
30
|
-
reason: string | null;
|
|
31
|
-
/** True when the probe itself failed (mount missing, statfs error). */
|
|
32
|
-
probeError: string | null;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Cheap WSL detection. Reads `/proc/sys/kernel/osrelease` (kernel string
|
|
36
|
-
* contains "microsoft" / "WSL2" on Microsoft's WSL kernel) and falls back
|
|
37
|
-
* to `/proc/version`. Both reads are one-shot and gated by `existsSync`,
|
|
38
|
-
* so non-Linux hosts return false without throwing.
|
|
39
|
-
*/
|
|
40
|
-
export declare function isWslHost(): boolean;
|
|
41
|
-
export interface ObserveWslHostDiskOptions {
|
|
42
|
-
/** Override the Windows host mount path (e.g. `/mnt/d`). Falls back to
|
|
43
|
-
* `KYNVER_WSL_HOST_MOUNT` env, then `/mnt/c`. */
|
|
44
|
-
wslHostMount?: string;
|
|
45
|
-
wslHostFreeWarnBytes?: number;
|
|
46
|
-
wslHostFreeCriticalBytes?: number;
|
|
47
|
-
/** Override WSL detection for tests / cross-platform CI:
|
|
48
|
-
* `true` → treat host as WSL; `false` → treat host as non-WSL;
|
|
49
|
-
* `undefined` → autodetect via `isWslHost()`. */
|
|
50
|
-
forceWsl?: boolean;
|
|
51
|
-
/** Test seam — swap in a fake statfs. */
|
|
52
|
-
statfs?: (path: string) => {
|
|
53
|
-
bavail: bigint | number;
|
|
54
|
-
blocks: bigint | number;
|
|
55
|
-
bsize: bigint | number;
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Probe the Windows host disk under WSL. Returns `null` when this host is
|
|
60
|
-
* not WSL (so callers can treat the field as optional in the gate output).
|
|
61
|
-
* When WSL but the mount is unreachable, returns a `probeError` row with
|
|
62
|
-
* `ok = false` rather than throwing — the gate must still block dispatch
|
|
63
|
-
* because we can't prove the host disk is healthy.
|
|
64
|
-
*/
|
|
65
|
-
export declare function observeWslHostDisk(options?: ObserveWslHostDiskOptions): WslHostDiskShape | null;
|
|
66
|
-
/**
|
|
67
|
-
* Short operator recovery hint embedded in gate reasons so AgentOS evidence
|
|
68
|
-
* surfaces actionable steps without a doc lookup. Keep terse — full runbook
|
|
69
|
-
* lives at `docs/runbooks/wsl-disk-pressure.md`.
|
|
70
|
-
*/
|
|
71
|
-
export declare function summarizeWslRecoverySteps(): string;
|