@kynver-app/runtime 0.2.24 → 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/dist/chat/command-auth-proof.js +1 -1
- package/dist/cli.js +69 -68
- package/dist/index.js +89 -88
- 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 +9 -9
- 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 +3 -3
- package/dist/server/monitor.js +5 -5
- package/dist/server/orchestration.js +1 -1
- package/dist/server/worker-policy.js +2 -2
- package/package.json +4 -2
- package/dist/active-harness-workers.d.ts +0 -11
- package/dist/auto-complete.d.ts +0 -60
- package/dist/bootstrap.d.ts +0 -49
- 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 -14
- 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 -53
- 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 -86
- 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 -88
- 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 -54
- 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 -41
- package/dist/providers/openai-codex-resilience.d.ts +0 -33
- package/dist/providers/openai-compatible-response.d.ts +0 -23
- package/dist/providers/openai-compatible-runner.d.ts +0 -1
- package/dist/providers/openai-compatible.d.ts +0 -46
- 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 -262
- package/dist/stream.d.ts +0 -33
- 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 -43
- package/dist/worker-usage.d.ts +0 -20
- 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 -44
- 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,16 +0,0 @@
|
|
|
1
|
-
import type { KynverUserConfig } from "../config.js";
|
|
2
|
-
import { type SupportedHostKind } from "./host.js";
|
|
3
|
-
/** Who owns daemon process restarts on this box (Kynver-owned, not Hermes cron). */
|
|
4
|
-
export type DaemonSupervisionOwner = "keeper" | "systemd";
|
|
5
|
-
export interface DaemonSupervisionPolicy {
|
|
6
|
-
hostKind: SupportedHostKind;
|
|
7
|
-
owner: DaemonSupervisionOwner;
|
|
8
|
-
/** Env keys written during setup/start so the server knows a local daemon owns cron. */
|
|
9
|
-
envUpdates: Record<string, string>;
|
|
10
|
-
guidance: string[];
|
|
11
|
-
}
|
|
12
|
-
export declare function defaultSupervisionOwner(hostKind: SupportedHostKind): DaemonSupervisionOwner;
|
|
13
|
-
export declare function resolveSupervisionOwner(config: KynverUserConfig, hostKind: SupportedHostKind, args?: Record<string, string | boolean>): DaemonSupervisionOwner;
|
|
14
|
-
export declare function supervisionEnvUpdates(): Record<string, string>;
|
|
15
|
-
export declare function formatSupervisionGuidance(hostKind: SupportedHostKind, owner: DaemonSupervisionOwner): string[];
|
|
16
|
-
export declare function buildDaemonSupervisionPolicy(config: KynverUserConfig, args?: Record<string, string | boolean>, hostKind?: SupportedHostKind): DaemonSupervisionPolicy;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type KynverUserConfig } from "../config.js";
|
|
2
|
-
import { type DaemonSupervisionOwner, type DaemonSupervisionPolicy } from "./policy.js";
|
|
3
|
-
import type { SupportedHostKind } from "./host.js";
|
|
4
|
-
export interface DaemonSupervisionSetupResult {
|
|
5
|
-
policy: DaemonSupervisionPolicy;
|
|
6
|
-
configPath: string;
|
|
7
|
-
envFilePath: string;
|
|
8
|
-
envChanged: boolean;
|
|
9
|
-
configUpdated: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface DaemonSupervisionPersistIdentity {
|
|
12
|
-
agentOsId: string;
|
|
13
|
-
runId: string;
|
|
14
|
-
}
|
|
15
|
-
export interface DaemonSupervisionConfigIdentity extends DaemonSupervisionPersistIdentity {
|
|
16
|
-
owner: DaemonSupervisionOwner;
|
|
17
|
-
}
|
|
18
|
-
/** Partial ~/.kynver/config.json updates for restart/watchdog supervision identity. */
|
|
19
|
-
export declare function buildDaemonSupervisionConfigUpdates(config: KynverUserConfig, identity: DaemonSupervisionConfigIdentity): Partial<KynverUserConfig>;
|
|
20
|
-
export declare function defaultSystemdUserUnitPath(): string;
|
|
21
|
-
export declare function isSystemdSupervisionInstalled(): boolean;
|
|
22
|
-
export declare function applyDaemonSupervisionSetup(config: KynverUserConfig, args?: Record<string, string | boolean>, hostKind?: SupportedHostKind, identity?: DaemonSupervisionPersistIdentity): DaemonSupervisionSetupResult;
|
|
23
|
-
export declare function supervisionOwnerForDoctor(config: KynverUserConfig, hostKind: SupportedHostKind): DaemonSupervisionOwner;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { installSystemdUserDaemon } from "../cron/cron-install-systemd.js";
|
|
2
|
-
import { type KynverUserConfig } from "../config.js";
|
|
3
|
-
export interface EnsureDaemonSupervisionInput {
|
|
4
|
-
config: KynverUserConfig;
|
|
5
|
-
agentOsId: string;
|
|
6
|
-
runId: string;
|
|
7
|
-
args: Record<string, string | boolean>;
|
|
8
|
-
}
|
|
9
|
-
export interface EnsureDaemonSupervisionResult {
|
|
10
|
-
action: "keeper" | "systemd_installed" | "systemd_guided" | "systemd_skipped";
|
|
11
|
-
owner: "keeper" | "systemd";
|
|
12
|
-
systemd?: ReturnType<typeof installSystemdUserDaemon>;
|
|
13
|
-
blockers?: string[];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Before `kynver start` hands off to the keeper, persist supervision env and
|
|
17
|
-
* optionally install the Linux systemd user unit (logout-surviving restarts).
|
|
18
|
-
*/
|
|
19
|
-
export declare function ensureDaemonSupervisionForStart(input: EnsureDaemonSupervisionInput): Promise<EnsureDaemonSupervisionResult>;
|
|
20
|
-
/** When systemd install succeeds, `kynver start` must not spawn a foreground keeper. */
|
|
21
|
-
export declare function shouldDelegateStartToSystemd(result: EnsureDaemonSupervisionResult): boolean;
|
|
22
|
-
export declare function formatSystemdDelegationGuidance(unitName?: string): string[];
|
|
23
|
-
export declare function summarizeSupervisionForStart(config: KynverUserConfig, args: Record<string, string | boolean>): {
|
|
24
|
-
owner: "keeper" | "systemd";
|
|
25
|
-
guidance: string[];
|
|
26
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { KynverUserConfig } from "../config.js";
|
|
2
|
-
import type { DaemonSupervisionOwner } from "./policy.js";
|
|
3
|
-
export interface SupervisionHealthOptions {
|
|
4
|
-
envFilePath?: string;
|
|
5
|
-
/** Injectable for tests. */
|
|
6
|
-
systemdUnitActive?: () => boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface SupervisionHealth {
|
|
9
|
-
owner: DaemonSupervisionOwner | null;
|
|
10
|
-
daemonPresentSignal: boolean;
|
|
11
|
-
systemdUnitInstalled: boolean;
|
|
12
|
-
systemdUnitActive: boolean;
|
|
13
|
-
/** True when restart policy is persisted or inferable from a healthy supervised daemon. */
|
|
14
|
-
effectivelyConfigured: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Infer whether a keeper/systemd-owned daemon is already healthy on this host,
|
|
18
|
-
* so doctor checks avoid stale warnings on upgraded installs.
|
|
19
|
-
*/
|
|
20
|
-
export declare function assessSupervisionHealth(config: KynverUserConfig, options?: SupervisionHealthOptions): SupervisionHealth;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { KynverUserConfig } from "../config.js";
|
|
2
|
-
export interface AssessDaemonSupervisionOptions {
|
|
3
|
-
/** Override for tests; defaults to ~/.kynver/.env */
|
|
4
|
-
envFilePath?: string;
|
|
5
|
-
systemdUnitActive?: () => boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface DaemonSupervisionVerifyCheck {
|
|
8
|
-
id: string;
|
|
9
|
-
ok: boolean;
|
|
10
|
-
summary: string;
|
|
11
|
-
remediation?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function assessDaemonSupervisionChecks(config: KynverUserConfig, options?: AssessDaemonSupervisionOptions): DaemonSupervisionVerifyCheck[];
|
package/dist/daemon.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function runDaemon(args: Record<string, string | boolean>): Promise<void>;
|
|
2
|
-
export { runPipelineTick } from "./pipeline-tick.js";
|
|
3
|
-
export { dispatchRun } from "./dispatch.js";
|
|
4
|
-
export { sweepRun } from "./sweep.js";
|
|
5
|
-
export { completeWorker } from "./worker-ops.js";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Expand a leading `~/` for filesystem use. */
|
|
2
|
-
export declare function expandHomePath(filePath: string): string;
|
|
3
|
-
/**
|
|
4
|
-
* Candidate `.env` paths for selective production DB key reads.
|
|
5
|
-
* Order: explicit `KYNVER_ENV_FILE` → walk up from `cwd` → `~/.kynver/.env` →
|
|
6
|
-
* `defaultRepo` from `~/.kynver/config.json`.
|
|
7
|
-
*/
|
|
8
|
-
export declare function discoverProductionDbEnvFilePaths(options?: {
|
|
9
|
-
cwd?: string;
|
|
10
|
-
env?: NodeJS.ProcessEnv;
|
|
11
|
-
/** Injectable for tests; defaults to `os.homedir()`. */
|
|
12
|
-
homeDir?: string;
|
|
13
|
-
}): string[];
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/** How production DATABASE_URL was obtained (no secrets in this enum). */
|
|
2
|
-
export type DbCredentialSource = "neon-cli" | "env:KYNVER_PRODUCTION_DATABASE_URL" | "env:PRODUCTION_DATABASE_URL" | "env-file:PRODUCTION_DATABASE_URL" | "env-file:KYNVER_PRODUCTION_DATABASE_URL";
|
|
3
|
-
export interface DbCredentialResolution {
|
|
4
|
-
ok: true;
|
|
5
|
-
databaseUrl: string;
|
|
6
|
-
source: DbCredentialSource;
|
|
7
|
-
hint: string;
|
|
8
|
-
}
|
|
9
|
-
export interface DbCredentialFailure {
|
|
10
|
-
ok: false;
|
|
11
|
-
reason: string;
|
|
12
|
-
attempted: DbCredentialSource[];
|
|
13
|
-
}
|
|
14
|
-
export type ResolveProductionDatabaseResult = DbCredentialResolution | DbCredentialFailure;
|
|
15
|
-
declare const ENV_FILE_KEYS: readonly ["KYNVER_PRODUCTION_DATABASE_URL", "PRODUCTION_DATABASE_URL"];
|
|
16
|
-
export interface ResolveProductionDatabaseOptions {
|
|
17
|
-
cwd?: string;
|
|
18
|
-
env?: NodeJS.ProcessEnv;
|
|
19
|
-
/** Injectable for tests — runs `neon connection-string`. */
|
|
20
|
-
neonConnectionString?: (args: {
|
|
21
|
-
branch: string;
|
|
22
|
-
projectId?: string;
|
|
23
|
-
databaseName?: string;
|
|
24
|
-
roleName?: string;
|
|
25
|
-
pooled?: boolean;
|
|
26
|
-
}) => string | null;
|
|
27
|
-
}
|
|
28
|
-
/** Parse only production DB keys from a dotenv file — never loads unrelated secrets. */
|
|
29
|
-
export declare function readProductionDbKeysFromEnvFile(envPath: string): Partial<Record<(typeof ENV_FILE_KEYS)[number], string>>;
|
|
30
|
-
/**
|
|
31
|
-
* Resolve a production Prisma `DATABASE_URL` at CLI execution time.
|
|
32
|
-
* Precedence: Neon CLI → explicit process env → selective `.env` keys
|
|
33
|
-
* (`KYNVER_ENV_FILE`, walk-up from cwd, `~/.kynver/.env`, `defaultRepo/.env`).
|
|
34
|
-
*/
|
|
35
|
-
export declare function resolveProductionDatabaseUrl(options?: ResolveProductionDatabaseOptions): ResolveProductionDatabaseResult;
|
|
36
|
-
/** Set `process.env.DATABASE_URL` from resolver; logs source + host hint to stderr (no secrets). */
|
|
37
|
-
export declare function applyProductionDatabaseToProcess(options?: ResolveProductionDatabaseOptions): DbCredentialResolution;
|
|
38
|
-
export {};
|
package/dist/db-url-hint.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { presentUserConfig } from "./config.js";
|
|
2
|
-
import { formatResolvedDefaultRepo, type ResolvedDefaultRepo } from "./default-repo.js";
|
|
3
|
-
export interface EnsureDefaultRepoResult {
|
|
4
|
-
ok: boolean;
|
|
5
|
-
remediated: boolean;
|
|
6
|
-
alreadyPersisted: boolean;
|
|
7
|
-
configPath: string;
|
|
8
|
-
resolved: ReturnType<typeof formatResolvedDefaultRepo> | null;
|
|
9
|
-
config?: ReturnType<typeof presentUserConfig>;
|
|
10
|
-
reason?: string;
|
|
11
|
-
remediation?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function ensureDefaultRepo(opts?: {
|
|
14
|
-
cwd?: string;
|
|
15
|
-
}): EnsureDefaultRepoResult;
|
|
16
|
-
export declare function runEnsureDefaultRepoCli(json?: boolean): void;
|
|
17
|
-
export declare function summarizeResolvedDefaultRepo(resolved: ResolvedDefaultRepo | null): {
|
|
18
|
-
status: "pass" | "warn";
|
|
19
|
-
remediation?: string;
|
|
20
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type DefaultRepoDiscoverySource = "cwd_git" | "runtime_checkout" | "well_known_path";
|
|
2
|
-
export interface DiscoveredDefaultRepo {
|
|
3
|
-
repo: string;
|
|
4
|
-
source: DefaultRepoDiscoverySource;
|
|
5
|
-
}
|
|
6
|
-
export declare function isKynverMonorepoRoot(repoRoot: string): boolean;
|
|
7
|
-
export declare function gitRepoRoot(startDir: string): string | null;
|
|
8
|
-
export declare function discoverDefaultRepoCandidates(opts?: {
|
|
9
|
-
cwd?: string;
|
|
10
|
-
runtimeModuleUrl?: string;
|
|
11
|
-
}): DiscoveredDefaultRepo[];
|
|
12
|
-
export declare function discoverDefaultRepo(opts?: {
|
|
13
|
-
cwd?: string;
|
|
14
|
-
runtimeModuleUrl?: string;
|
|
15
|
-
}): DiscoveredDefaultRepo | null;
|
|
16
|
-
/** Harness worker worktrees are valid for ephemeral resolution but poor durable defaultRepo targets. */
|
|
17
|
-
export declare function isHarnessWorktreeRepo(repo: string): boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Prefer stable monorepo checkouts when persisting defaultRepo (setup, doctor remediation).
|
|
20
|
-
* Falls back to cwd when no durable candidate exists.
|
|
21
|
-
*/
|
|
22
|
-
export declare function discoverDefaultRepoForPersistence(opts?: {
|
|
23
|
-
cwd?: string;
|
|
24
|
-
runtimeModuleUrl?: string;
|
|
25
|
-
}): DiscoveredDefaultRepo | null;
|
package/dist/default-repo.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type KynverUserConfig } from "./config.js";
|
|
2
|
-
import { type DefaultRepoDiscoverySource, type DiscoveredDefaultRepo } from "./default-repo-discovery.js";
|
|
3
|
-
export type DefaultRepoSource = "config" | "env_default_repo" | "env_harness_repo" | DefaultRepoDiscoverySource;
|
|
4
|
-
export interface ResolvedDefaultRepo {
|
|
5
|
-
repo: string;
|
|
6
|
-
source: DefaultRepoSource;
|
|
7
|
-
persistedInConfig: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface ResolveDefaultRepoOptions {
|
|
10
|
-
config?: KynverUserConfig;
|
|
11
|
-
env?: NodeJS.ProcessEnv;
|
|
12
|
-
cwd?: string;
|
|
13
|
-
runtimeModuleUrl?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare function resolveDefaultRepo(opts?: ResolveDefaultRepoOptions): ResolvedDefaultRepo | null;
|
|
16
|
-
/** Discovery for setup/doctor persistence — skips harness worktrees when a stable checkout exists. */
|
|
17
|
-
export declare function resolveDefaultRepoForPersistence(opts?: ResolveDefaultRepoOptions): ResolvedDefaultRepo | null;
|
|
18
|
-
export declare function persistDefaultRepo(repo: string, existing?: KynverUserConfig): KynverUserConfig;
|
|
19
|
-
export declare function remediateDefaultRepo(opts?: ResolveDefaultRepoOptions): {
|
|
20
|
-
ok: true;
|
|
21
|
-
resolved: ResolvedDefaultRepo;
|
|
22
|
-
config: KynverUserConfig;
|
|
23
|
-
} | {
|
|
24
|
-
ok: false;
|
|
25
|
-
reason: string;
|
|
26
|
-
};
|
|
27
|
-
export declare function formatResolvedDefaultRepo(resolved: ResolvedDefaultRepo): {
|
|
28
|
-
defaultRepo: string;
|
|
29
|
-
source: DefaultRepoSource;
|
|
30
|
-
persistedInConfig: boolean;
|
|
31
|
-
};
|
|
32
|
-
export type { DiscoveredDefaultRepo };
|
package/dist/device-login.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run the device-authorization login flow. Returns `{ ok, apiKey }`. Prints
|
|
3
|
-
* progress to the console. Does not exit the process (the caller decides).
|
|
4
|
-
*/
|
|
5
|
-
export declare function runDeviceLogin(args: Record<string, string | boolean>): Promise<{
|
|
6
|
-
ok: boolean;
|
|
7
|
-
apiKey?: string;
|
|
8
|
-
}>;
|
package/dist/disk-gate.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { DispatchNextDiskGateShape } from "./callbacks.js";
|
|
2
|
-
import { type ObserveWslCrashDumpsOptions } from "./wsl-crash-dumps.js";
|
|
3
|
-
import { type ObserveWslHostDiskOptions } from "./wsl-host.js";
|
|
4
|
-
export interface ObserveDiskGateInput {
|
|
5
|
-
diskPath?: string;
|
|
6
|
-
diskFreeWarnBytes?: number;
|
|
7
|
-
diskFreeCriticalBytes?: number;
|
|
8
|
-
diskMaxUsedPercent?: number;
|
|
9
|
-
diskHardMaxUsedPercent?: number;
|
|
10
|
-
/** Opt-out for the WSL host disk probe — leave `false`/undefined by
|
|
11
|
-
* default so we always check `/mnt/c` under WSL. */
|
|
12
|
-
skipWslHostCheck?: boolean;
|
|
13
|
-
wslHost?: ObserveWslHostDiskOptions;
|
|
14
|
-
/** Opt-out for the Windows-side wsl-crashes probe. */
|
|
15
|
-
skipWslCrashDumpCheck?: boolean;
|
|
16
|
-
wslCrashDumps?: ObserveWslCrashDumpsOptions;
|
|
17
|
-
}
|
|
18
|
-
export declare function observeRunnerDiskGate(input?: ObserveDiskGateInput): DispatchNextDiskGateShape;
|
|
19
|
-
/**
|
|
20
|
-
* Operator escape hatch (mirrors `KYNVER_CLEANUP_DISK_PRESSURE_FORCE`):
|
|
21
|
-
* `KYNVER_DISPATCH_DISK_GATE_FORCE=ok|open|none` pins the gate open with the
|
|
22
|
-
* suppressed reason kept visible; `block|pressured` forces it closed. The
|
|
23
|
-
* hosted server honors the same env on its side, so either end can unblock.
|
|
24
|
-
*/
|
|
25
|
-
export declare function applyDiskGateForce(gate: DispatchNextDiskGateShape): DispatchNextDiskGateShape;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function resolveDispatchCallbackTimeoutMs(): number;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface ReleaseDispatchClaimInput {
|
|
2
|
-
baseUrl: string;
|
|
3
|
-
secret: string;
|
|
4
|
-
agentOsId: string;
|
|
5
|
-
taskId: string;
|
|
6
|
-
leaseOwner: string;
|
|
7
|
-
/** The lease token from claim time — the server refuses a superseded release (§7.7). */
|
|
8
|
-
leaseToken?: string | null;
|
|
9
|
-
failureDetail?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface ReleaseDispatchClaimOutcome {
|
|
12
|
-
released: boolean;
|
|
13
|
-
releaseResponse: unknown;
|
|
14
|
-
httpOk: boolean;
|
|
15
|
-
/** True only when the POST itself failed (no HTTP response at all) — a
|
|
16
|
-
* transport failure is NOT a server refusal and callers that bracket on
|
|
17
|
-
* refusal must not bracket on it (D1b review A2). */
|
|
18
|
-
transportError: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Hand a dispatch-next lease back to the board when local worker spawn did not start.
|
|
22
|
-
*/
|
|
23
|
-
export declare function releaseDispatchClaimAfterSpawnFailure(input: ReleaseDispatchClaimInput): Promise<ReleaseDispatchClaimOutcome>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** Runtime mirror of server dispatch lane normalization (keep in sync). */
|
|
2
|
-
export type DispatchNextLane = "implementation" | "review" | "landing" | "any";
|
|
3
|
-
export type DispatchLaneTaskHints = {
|
|
4
|
-
title?: string | null;
|
|
5
|
-
executorRef?: string | null;
|
|
6
|
-
personaSlug?: string | null;
|
|
7
|
-
status?: string | null;
|
|
8
|
-
roleLane?: string | null;
|
|
9
|
-
};
|
|
10
|
-
export declare function roleLaneToDispatchLane(roleLane: string | null | undefined): DispatchNextLane | null;
|
|
11
|
-
export declare function normalizeDispatchNextLaneFilter(raw: string | null | undefined): DispatchNextLane | undefined;
|
|
12
|
-
export declare function inferRoleLaneFromTaskHints(task: DispatchLaneTaskHints): string | null;
|
|
13
|
-
export declare function inferTaskDispatchLane(task: DispatchLaneTaskHints): DispatchNextLane;
|
|
14
|
-
export declare function resolveDispatchNextLaneFilter(raw: string | null | undefined): DispatchNextLane;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { ModelRoutingDecision } from "./model-routing.js";
|
|
2
|
-
export interface DispatchModelGuardInput {
|
|
3
|
-
task?: Record<string, unknown> | null;
|
|
4
|
-
routing: ModelRoutingDecision;
|
|
5
|
-
explicitProvider?: string | null;
|
|
6
|
-
explicitModel?: string | null;
|
|
7
|
-
}
|
|
8
|
-
export interface DispatchModelGuardResult {
|
|
9
|
-
ok: boolean;
|
|
10
|
-
error?: string;
|
|
11
|
-
requested?: {
|
|
12
|
-
provider?: string;
|
|
13
|
-
model?: string;
|
|
14
|
-
source: string;
|
|
15
|
-
};
|
|
16
|
-
resolved?: {
|
|
17
|
-
provider: string;
|
|
18
|
-
model?: string;
|
|
19
|
-
rule: string;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Block spawn when the board row (or CLI) requested a non-Cursor provider/model
|
|
24
|
-
* but routing resolved to Cursor — silent downgrade is worse than an explicit skip.
|
|
25
|
-
*/
|
|
26
|
-
export declare function assessDispatchModelGuard(input: DispatchModelGuardInput): DispatchModelGuardResult;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type WorkspaceRuntimePreferences } from "./workspace-runtime-config.js";
|
|
2
|
-
import { type ObserveResourceGateInput, type RunnerResourceGateShape } from "./resource-gate.js";
|
|
3
|
-
interface DispatchResourceGateDependencies {
|
|
4
|
-
fetchPreferences: (agentOsId: string, args: Record<string, string | boolean>) => Promise<WorkspaceRuntimePreferences | null>;
|
|
5
|
-
configuredOverride: (preferences: WorkspaceRuntimePreferences | null | undefined, env?: NodeJS.ProcessEnv) => number | undefined;
|
|
6
|
-
observe: (input: ObserveResourceGateInput) => RunnerResourceGateShape;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Resolve interactive dispatch capacity from the same workspace preference as
|
|
10
|
-
* the keeper daemon. Local config/env/auto sizing remains the fallback when
|
|
11
|
-
* the workspace has no authoritative Ghost cap; Forge ignores the workspace
|
|
12
|
-
* override through configuredMaxWorkersOverrideForBox.
|
|
13
|
-
*/
|
|
14
|
-
export declare function observeInteractiveDispatchResourceGate(input: {
|
|
15
|
-
runId: string;
|
|
16
|
-
agentOsId: string;
|
|
17
|
-
args: Record<string, string | boolean>;
|
|
18
|
-
env?: NodeJS.ProcessEnv;
|
|
19
|
-
}, dependencies?: DispatchResourceGateDependencies): Promise<RunnerResourceGateShape>;
|
|
20
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { HarnessWorkerRecord } from "./status.js";
|
|
2
|
-
/** Stop a just-spawned worker when dispatch-start readback fails closed. */
|
|
3
|
-
export declare function abortDispatchedWorkerAfterReadbackFailure(runId: string, worker: HarnessWorkerRecord, reason: string): HarnessWorkerRecord;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { HarnessWorkerRecord } from "./status.js";
|
|
2
|
-
import type { TaskLeaseSnapshot } from "./monitor/monitor.types.js";
|
|
3
|
-
export declare const DISPATCH_START_READBACK_PREFIX = "dispatch_start_readback_failed:";
|
|
4
|
-
export interface DispatchStartReadbackInput {
|
|
5
|
-
agentOsId: string;
|
|
6
|
-
taskId: string;
|
|
7
|
-
leaseOwner: string;
|
|
8
|
-
expectedLeaseToken: string;
|
|
9
|
-
worker: HarnessWorkerRecord;
|
|
10
|
-
baseUrl: string;
|
|
11
|
-
secret: string;
|
|
12
|
-
}
|
|
13
|
-
export interface DispatchStartReadbackResult {
|
|
14
|
-
ok: boolean;
|
|
15
|
-
error?: string;
|
|
16
|
-
detail?: Record<string, unknown>;
|
|
17
|
-
snapshot?: TaskLeaseSnapshot;
|
|
18
|
-
}
|
|
19
|
-
export declare function formatDispatchStartReadbackFailure(reason: string): string;
|
|
20
|
-
export declare function assessDispatchStartReadback(input: {
|
|
21
|
-
snapshot: TaskLeaseSnapshot | null | undefined;
|
|
22
|
-
leaseOwner: string;
|
|
23
|
-
expectedLeaseToken: string;
|
|
24
|
-
worker: HarnessWorkerRecord;
|
|
25
|
-
}): DispatchStartReadbackResult;
|
|
26
|
-
/** Post-spawn AgentOS readback — board must show a live lease matching the claim token. */
|
|
27
|
-
export declare function verifyDispatchStartReadback(input: DispatchStartReadbackInput): Promise<DispatchStartReadbackResult>;
|
package/dist/dispatch.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { runDirectory } from "./run-store.js";
|
|
2
|
-
import type { ContextEnvelopeEvidenceSnapshot, HarnessMemoryQualityCaptureSnapshot, InstructionPolicyEvidenceSnapshot, PersonaContextEvidenceSnapshot, RuntimeEnvelopeEvidenceSnapshot } from "./status.js";
|
|
3
|
-
export declare const DEFAULT_DISPATCH_LEASE_MS: number;
|
|
4
|
-
export interface HarnessWorkerDispatchContext {
|
|
5
|
-
instructionPolicyMarkdown: string | null;
|
|
6
|
-
instructionPolicyFingerprint: string | null;
|
|
7
|
-
instructionPolicyEvidence: InstructionPolicyEvidenceSnapshot | null;
|
|
8
|
-
memoryQualityCapture: HarnessMemoryQualityCaptureSnapshot | null;
|
|
9
|
-
memoryQualityPromptMarkdown: string | null;
|
|
10
|
-
personaMarkdown: string | null;
|
|
11
|
-
personaSlug: string | null;
|
|
12
|
-
personaEvidence: PersonaContextEvidenceSnapshot | null;
|
|
13
|
-
personaInjectionReady: boolean;
|
|
14
|
-
contextEnvelopeMarkdown: string | null;
|
|
15
|
-
contextEnvelopeEvidence: ContextEnvelopeEvidenceSnapshot | null;
|
|
16
|
-
contextEnvelopeReady: boolean;
|
|
17
|
-
runtimeEnvelopeMarkdown: string | null;
|
|
18
|
-
runtimeEnvelopeEvidence: RuntimeEnvelopeEvidenceSnapshot | null;
|
|
19
|
-
runtimeEnvelopeReady: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare function readHarnessWorkerContext(decision: Record<string, unknown>): HarnessWorkerDispatchContext | null;
|
|
22
|
-
export declare function buildDispatchTaskText(task: Record<string, unknown>, agentOsId: string): string;
|
|
23
|
-
export declare function dispatchRun(args: Record<string, string | boolean>): Promise<Record<string, unknown> | void>;
|
|
24
|
-
export { runDirectory };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function runContextEnvelopeDoctorCli(args: Record<string, string | boolean>): Promise<void>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type ContextEnvelopeDoctorProbes } from "./context-envelope.probes.js";
|
|
2
|
-
import type { ContextEnvelopeDoctorReport } from "./context-envelope.types.js";
|
|
3
|
-
/** Stable non-existent anchor for fail-closed probe — never a real row id. */
|
|
4
|
-
export declare const CONTEXT_ENVELOPE_SMOKE_MISSING_ANCHOR_ID = "00000000-0000-4000-8000-000000000001";
|
|
5
|
-
export interface AssessContextEnvelopeDoctorInput {
|
|
6
|
-
slug?: string;
|
|
7
|
-
agentOsId?: string;
|
|
8
|
-
baseUrl?: string;
|
|
9
|
-
taskId?: string;
|
|
10
|
-
apiKey?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function assessContextEnvelopeDoctor(input?: AssessContextEnvelopeDoctorInput, probes?: ContextEnvelopeDoctorProbes): Promise<ContextEnvelopeDoctorReport>;
|
|
13
|
-
export declare function redactContextEnvelopeDoctorReport(report: ContextEnvelopeDoctorReport, secret?: string): ContextEnvelopeDoctorReport;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface HttpJsonResult {
|
|
2
|
-
ok: boolean;
|
|
3
|
-
status: number;
|
|
4
|
-
response: unknown;
|
|
5
|
-
}
|
|
6
|
-
export interface ContextEnvelopeDoctorProbeConfig {
|
|
7
|
-
slug: string;
|
|
8
|
-
agentOsId: string;
|
|
9
|
-
baseUrl: string;
|
|
10
|
-
apiKey?: string;
|
|
11
|
-
runnerSecret?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ContextEnvelopeDoctorProbes {
|
|
14
|
-
loadConfig(): {
|
|
15
|
-
slug: string;
|
|
16
|
-
agentOsId: string;
|
|
17
|
-
baseUrl: string;
|
|
18
|
-
apiKey?: string;
|
|
19
|
-
};
|
|
20
|
-
resolveRunnerSecret(agentOsId: string, baseUrl: string): Promise<string | null>;
|
|
21
|
-
fetchContextEnvelope(config: ContextEnvelopeDoctorProbeConfig, anchorType: string, anchorId: string): Promise<HttpJsonResult>;
|
|
22
|
-
fetchTasks(config: ContextEnvelopeDoctorProbeConfig, limit?: number): Promise<HttpJsonResult>;
|
|
23
|
-
fetchRetrieveTelemetryDiagnostic(config: ContextEnvelopeDoctorProbeConfig): Promise<HttpJsonResult>;
|
|
24
|
-
}
|
|
25
|
-
export declare function defaultContextEnvelopeDoctorProbes(): ContextEnvelopeDoctorProbes;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { DoctorSection } from "./doctor.types.js";
|
|
2
|
-
/** Redacted operator summary for a live context-envelope smoke probe. */
|
|
3
|
-
export interface ContextEnvelopeSmokeSummary {
|
|
4
|
-
slug: string;
|
|
5
|
-
agentOsId: string;
|
|
6
|
-
taskId: string;
|
|
7
|
-
anchor: {
|
|
8
|
-
type: string;
|
|
9
|
-
id: string;
|
|
10
|
-
exists: boolean;
|
|
11
|
-
title: string | null;
|
|
12
|
-
status: string | null;
|
|
13
|
-
};
|
|
14
|
-
personaSlug: string | null;
|
|
15
|
-
memoryCount: number;
|
|
16
|
-
operatingRuleCount: number;
|
|
17
|
-
withinBudget: boolean;
|
|
18
|
-
projection: string | null;
|
|
19
|
-
mode: string | null;
|
|
20
|
-
contractVersion: string | null;
|
|
21
|
-
serializedBytes: number | null;
|
|
22
|
-
}
|
|
23
|
-
export interface ContextEnvelopeTelemetrySummary {
|
|
24
|
-
slug: string;
|
|
25
|
-
status: string;
|
|
26
|
-
summary: string;
|
|
27
|
-
eventCount: number | null;
|
|
28
|
-
retrieveCount: number | null;
|
|
29
|
-
}
|
|
30
|
-
export interface ContextEnvelopeDoctorReport {
|
|
31
|
-
command: "doctor context-envelope";
|
|
32
|
-
ready: boolean;
|
|
33
|
-
summary: string;
|
|
34
|
-
counts: {
|
|
35
|
-
pass: number;
|
|
36
|
-
warn: number;
|
|
37
|
-
fail: number;
|
|
38
|
-
};
|
|
39
|
-
sections: DoctorSection[];
|
|
40
|
-
envelopeSummary: ContextEnvelopeSmokeSummary | null;
|
|
41
|
-
telemetryDiagnostic: ContextEnvelopeTelemetrySummary | null;
|
|
42
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export type DoctorCheckStatus = "pass" | "warn" | "fail";
|
|
2
|
-
export interface DoctorCheck {
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
status: DoctorCheckStatus;
|
|
6
|
-
summary: string;
|
|
7
|
-
remediation?: string;
|
|
8
|
-
details?: Record<string, unknown>;
|
|
9
|
-
}
|
|
10
|
-
export interface DoctorSection {
|
|
11
|
-
id: string;
|
|
12
|
-
label: string;
|
|
13
|
-
checks: DoctorCheck[];
|
|
14
|
-
}
|
|
15
|
-
export interface RuntimeTakeoverDoctorReport {
|
|
16
|
-
command: "doctor runtime-takeover";
|
|
17
|
-
ready: boolean;
|
|
18
|
-
summary: string;
|
|
19
|
-
counts: {
|
|
20
|
-
pass: number;
|
|
21
|
-
warn: number;
|
|
22
|
-
fail: number;
|
|
23
|
-
};
|
|
24
|
-
sections: DoctorSection[];
|
|
25
|
-
/** Optional remediation actions applied before this report was generated. */
|
|
26
|
-
notes?: string[];
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* M0.3 self-serve runner install and device-binding lifecycle report.
|
|
30
|
-
*
|
|
31
|
-
* Covers: install → device login → workspace binding → repo selection →
|
|
32
|
-
* runner credential → supervised daemon. Ready when stages 1–5 all pass
|
|
33
|
-
* (daemon liveness in stage 6 is advisory / warn-only).
|
|
34
|
-
*/
|
|
35
|
-
export interface RunnerInstallDoctorReport {
|
|
36
|
-
command: "doctor runner-install";
|
|
37
|
-
ready: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Highest lifecycle stage that has fully passed (0 = none).
|
|
40
|
-
* Stage definitions: 1=install, 2=login, 3=workspace, 4=repo, 5=credential, 6=daemon.
|
|
41
|
-
*/
|
|
42
|
-
lifecycleStage: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
43
|
-
summary: string;
|
|
44
|
-
counts: {
|
|
45
|
-
pass: number;
|
|
46
|
-
warn: number;
|
|
47
|
-
fail: number;
|
|
48
|
-
};
|
|
49
|
-
sections: DoctorSection[];
|
|
50
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { CommandProbeResult } from "./runtime-takeover.probes.js";
|
|
2
|
-
export type GitHubReadinessSource = "env" | "gh-cli" | "missing";
|
|
3
|
-
export interface GitHubReadinessProbe {
|
|
4
|
-
envGithubToken?: boolean;
|
|
5
|
-
envGhToken?: boolean;
|
|
6
|
-
ghAuthToken(): CommandProbeResult;
|
|
7
|
-
}
|
|
8
|
-
export interface GitHubReadinessResult {
|
|
9
|
-
viable: boolean;
|
|
10
|
-
source: GitHubReadinessSource;
|
|
11
|
-
summary: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Read-only GitHub auth probe for doctor checks. Never prints or persists tokens.
|
|
15
|
-
*/
|
|
16
|
-
export declare function probeGitHubReadiness(probe: GitHubReadinessProbe): GitHubReadinessResult;
|
package/dist/doctor/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type { DoctorCheck, DoctorCheckStatus, DoctorSection, RuntimeTakeoverDoctorReport, } from "./doctor.types.js";
|
|
2
|
-
export { assessRuntimeTakeoverReadiness, } from "./runtime-takeover.js";
|
|
3
|
-
export { defaultRuntimeTakeoverProbes, type CommandProbeResult, type RuntimeTakeoverProbes, } from "./runtime-takeover.probes.js";
|
|
4
|
-
export { runRuntimeTakeoverDoctorCli } from "./runtime-takeover-cli.js";
|
|
5
|
-
export { assessContextEnvelopeDoctor, redactContextEnvelopeDoctorReport, CONTEXT_ENVELOPE_SMOKE_MISSING_ANCHOR_ID, } from "./context-envelope.js";
|
|
6
|
-
export type { ContextEnvelopeDoctorReport, ContextEnvelopeSmokeSummary, ContextEnvelopeTelemetrySummary, } from "./context-envelope.types.js";
|
|
7
|
-
export { runContextEnvelopeDoctorCli } from "./context-envelope-cli.js";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `kynver doctor local-store [--no-probe]` — report-only in D0: always exits
|
|
3
|
-
* 0 (no surface consults the store yet, so nothing may gate on this); the
|
|
4
|
-
* posture lives in the printed report.
|
|
5
|
-
*
|
|
6
|
-
* The default openability probe CREATES `local-run-store.sqlite` under the
|
|
7
|
-
* harness root on a host that never opened it (inert — nothing reads it with
|
|
8
|
-
* flags off). Pass `--no-probe` to report current lifecycle state without
|
|
9
|
-
* touching disk.
|
|
10
|
-
*/
|
|
11
|
-
export declare function runLocalStoreDoctorCli(args?: Record<string, unknown>): void;
|