@kynver-app/runtime 0.2.24 → 0.2.29
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,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LB1 — review workers must not receive unrestricted production DB credentials.
|
|
3
|
-
* Spawn sets KYNVER_NO_PROD_DB_CREDENTIALS; db-credential-resolver refuses when set.
|
|
4
|
-
*/
|
|
5
|
-
/** Truthy when the worker is a source-only / expert review lane (no prod DB). */
|
|
6
|
-
export declare const KYNVER_NO_PROD_DB_CREDENTIALS_ENV = "KYNVER_NO_PROD_DB_CREDENTIALS";
|
|
7
|
-
/** Extra env keys stripped for review workers (operator file pointers). */
|
|
8
|
-
export declare const REVIEW_WORKER_EXTRA_FORBIDDEN_ENV_KEYS: readonly ["KYNVER_ENV_FILE"];
|
|
9
|
-
export declare function isNoProdCredentialReviewEnvironment(env: NodeJS.ProcessEnv): boolean;
|
|
10
|
-
export interface BuildWorkerSpawnEnvOptions {
|
|
11
|
-
reviewWorker?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare function buildWorkerSpawnEnv(hostEnv: NodeJS.ProcessEnv, opts?: BuildWorkerSpawnEnvOptions): NodeJS.ProcessEnv;
|
|
14
|
-
export declare class ProductionDatabaseCredentialBlockedError extends Error {
|
|
15
|
-
constructor();
|
|
16
|
-
}
|
|
17
|
-
export declare function assertProductionDatabaseResolutionAllowed(env: NodeJS.ProcessEnv): void;
|
|
18
|
-
export interface ReviewWorkerCredentialScopeAudit {
|
|
19
|
-
reviewMode: boolean;
|
|
20
|
-
noProdFlagPresent: boolean;
|
|
21
|
-
forbiddenKeysAfterScrub: string[];
|
|
22
|
-
productionDbKeysAbsent: boolean;
|
|
23
|
-
envFilePointerStripped: boolean;
|
|
24
|
-
safe: boolean;
|
|
25
|
-
}
|
|
26
|
-
/** Audit credential scope for diagnostics and security-boundary proofs (no secret values). */
|
|
27
|
-
export declare function auditReviewWorkerCredentialScope(env: NodeJS.ProcessEnv, opts?: BuildWorkerSpawnEnvOptions): ReviewWorkerCredentialScopeAudit;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { getAdapterContextContract, listAdapterContextContracts, type AdapterContextCapability, type AdapterContextContract, type AdapterContextContractId, } from "../orchestration-providers/adapter-contract.js";
|
package/dist/server/cleanup.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { runHarnessCleanup } from "../cleanup.js";
|
|
2
|
-
export { DEFAULT_MAX_ACTIONS_PER_SWEEP, DEFAULT_NODE_MODULES_AGE_MS, DEFAULT_RUN_DIRECTORIES_AGE_MS, DEFAULT_WORKTREES_AGE_MS, } from "../cleanup-types.js";
|
|
3
|
-
export type { CleanupSkipReason, HarnessCleanupSummary } from "../cleanup-types.js";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { RUNTIME_CONTEXT_BUDGET_RECEIPT_SCHEMA_VERSION, RUNTIME_CONTEXT_BUDGET_RECEIPT_V2_SCHEMA_VERSION, buildContextBudgetReceiptV2, estimateTokensFromChars, finalizeReceiptTotals, isRuntimeContextBudgetReceiptV2, sectionReceiptFromMarkdown, upgradeReceiptToV2, type BuildContextBudgetReceiptV2Input, type ContextBudgetReceiptSurface, type ContextEnvelopeMode, type RuntimeContextActiveStateLookup, type RuntimeContextActiveStateLookupKind, type RuntimeContextActiveStateLookupStatus, type RuntimeContextBudgetReceipt, type RuntimeContextBudgetReceiptSchemaVersion, type RuntimeContextBudgetReceiptV2, type RuntimeContextRehydrationKind, type RuntimeContextRehydrationRoute, type RuntimeContextSection, type RuntimeContextSectionReceipt, type UsefulContextCoverage, } from "../context-budget-receipt.js";
|
|
2
|
-
export { MEMORY_LANE_PREVIEW_CHARS, buildChatMemoryShadowPreview, buildLegacyChatMemorySection, chatMemoriesToPreviewItems, formatContextPreviewMemoryBlock, type ContextPreviewBlockInput, type ContextPreviewMemoryItem, } from "../context-preview/chat-memory-preview.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { resolveProductionDatabaseUrl, type DbCredentialFailure, type DbCredentialResolution, type DbCredentialSource, type ResolveProductionDatabaseOptions, type ResolveProductionDatabaseResult, } from "../db-credential-resolver.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { resolveDefaultRepo } from "../default-repo.js";
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { assessHeavyVerificationGate, countActiveHeavyVerificationSlots, isHeavyVerificationGateSkipped, resolveHeavyVerificationMaxConcurrent, } from "../heavy-verification/slot.js";
|
|
2
|
-
export { waitForHeavyVerificationSlot } from "../heavy-verification/gate.js";
|
|
3
|
-
export { compareSemver } from "../memory-cost-package-version-guard.js";
|
package/dist/server/landing.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { assessWorkerLanding, type WorkerLandingVerdict } from "../landing-gate.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { buildMemoryCostPackageGuardInput, enforceMemoryCostPackageGuardAtStartup, evaluateMemoryCostPackageGuardAtStartup, } from "../memory-cost-package-version-guard-enforce.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { compareSemver, evaluateMemoryCostPackageVersionGuard, assertMemoryCostPackageVersionGuard, MemoryCostPackageVersionGuardError, MEMORY_COST_PACKAGE_MIN_VERSIONS, type MemoryCostPackageGuardResult, } from "../memory-cost-package-version-guard.js";
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { parseExecutorRefRoutingIntent, executorRefRequestsNonCursorWorker, type ExecutorRefRoutingIntent, } from "../executor-ref-routing.js";
|
|
2
|
-
export { assessDispatchModelGuard, type DispatchModelGuardInput, type DispatchModelGuardResult, } from "../dispatch-model-guard.js";
|
|
3
|
-
export { GLOBAL_DEFAULT_MODEL, CURSOR_DEFAULT_MODEL, inferModelRoutingFromTask, resolveGlobalDefaultModel, resolveModelFallback, resolveWorkerLaunch, type ModelRoutingDecision, } from "../model-routing.js";
|
package/dist/server/monitor.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { evaluateNodeRuntimePolicy, KYNVER_NODE_PATCH_FLOOR, PRIVATE_ROOT_NODE_RANGE, PUBLISHED_NODE_RANGE, type NodeRuntimePolicyStatus, type NodeRuntimePolicyVerdict, } from "../node-runtime-policy.js";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { buildOrchestrationProviderInventory } from "../orchestration-providers/inventory.js";
|
|
2
|
-
export { listOrchestrationProviderCapabilities } from "../orchestration-providers/capabilities.js";
|
|
3
|
-
export type { OrchestrationProviderBindingStatus, OrchestrationProviderCapability, OrchestrationProviderId, } from "../orchestration-providers/types.js";
|
|
4
|
-
export type { OrchestrationCloudApiCredits, OrchestrationWorkerEndpoint, } from "../orchestration-providers/inventory.js";
|
|
5
|
-
export type { HermesCliAdapterStatus } from "../orchestration-providers/hermes-cli-adapter.js";
|
|
6
|
-
export type { HermesOpenAiCodexBindingStatus } from "../orchestration-providers/hermes-openai-codex-binding.js";
|
|
7
|
-
export type { CodexOrchestrationPath } from "../orchestration-providers/codex-orchestration-adapter.js";
|
|
8
|
-
export { evaluateOrchestrationPolicy } from "../orchestration-enforcement/evaluator.js";
|
|
9
|
-
export { resolveOrchestrationPolicyMode, isOrchestrationEnforceTasksEnabled, } from "../orchestration-enforcement/config.js";
|
|
10
|
-
export { buildForegroundHarnessIdempotencyKey } from "../orchestration-enforcement/idempotency.js";
|
package/dist/server/prompt.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { buildPrompt, buildPromptWithReceipt, RUNTIME_PROMPT_ENFORCEMENT, type BuildPromptInput, } from "../prompt.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { classifyRepoSearchMeta, diagnoseRepoSearchFailure, extractSearchMetaFromToolLine, formatRepoSearchGuidance, normalizeRepoSearchCommand, shouldTreatRgNoMatchAsSuccess, unwrapShellWrapperCommand, } from "../repo-search.js";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { auditWorkerEnv, scrubWorkerEnv, listForbiddenWorkerEnvKeys, listOperatorAllowedWorkerEnvKeys, isForbiddenWorkerEnvKey, } from "../worker-env.js";
|
|
2
|
-
export { auditReviewWorkerCredentialScope, buildWorkerSpawnEnv, isNoProdCredentialReviewEnvironment, KYNVER_NO_PROD_DB_CREDENTIALS_ENV, } from "../security-review-environment.js";
|
|
3
|
-
export { isHarnessExpertReviewWorker } from "../harness-expert-review.js";
|
|
4
|
-
export { DEFAULT_WORKER_PROVIDER, normalizeWorkerProviderName, resolveConfiguredWorkerProvider, isClaudeFamilyProvider, taskAllowsClaudeWorker, taskExpressesWorkerProviderPreference, enforceCursorWorkerProvider, preferCursorExecutor, type EnforceCursorWorkerProviderInput, } from "../worker-provider-policy.js";
|
|
5
|
-
export { classifyHeavyShellCommand } from "../heavy-verification/command-classify.js";
|
|
6
|
-
export { gateWorkerShellCommand, HEAVY_VERIFICATION_TOKEN_REQUIRED, type GateWorkerShellCommandOpts, type WorkerCommandGateOutcome, type WorkerCommandGateResult, } from "../heavy-verification/worker-command-gate.js";
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export type ShellCommandOutcomeKind = "success" | "audit_findings" | "search_no_matches" | "command_failure";
|
|
2
|
-
export interface NpmAuditSummary {
|
|
3
|
-
total: number;
|
|
4
|
-
critical: number;
|
|
5
|
-
high: number;
|
|
6
|
-
moderate: number;
|
|
7
|
-
low: number;
|
|
8
|
-
info: number;
|
|
9
|
-
}
|
|
10
|
-
export interface ShellCommandOutcome {
|
|
11
|
-
kind: ShellCommandOutcomeKind;
|
|
12
|
-
exitCode: number;
|
|
13
|
-
/** Short operator-facing line (no raw JSON blob). */
|
|
14
|
-
summary: string;
|
|
15
|
-
/** Present when kind === audit_findings and JSON parsed. */
|
|
16
|
-
audit?: NpmAuditSummary;
|
|
17
|
-
/** When JSON was expected but invalid. */
|
|
18
|
-
parseError?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare function summarizeNpmAuditReport(report: Record<string, unknown>): NpmAuditSummary | null;
|
|
21
|
-
export declare function classifyNpmAuditOutcome(input: {
|
|
22
|
-
exitCode: number;
|
|
23
|
-
stdout: string;
|
|
24
|
-
stderr: string;
|
|
25
|
-
}): ShellCommandOutcome;
|
|
26
|
-
export declare function classifyShellCommandOutcome(input: {
|
|
27
|
-
command: string;
|
|
28
|
-
exitCode: number;
|
|
29
|
-
stdout?: string;
|
|
30
|
-
stderr?: string;
|
|
31
|
-
interleavedOutput?: string;
|
|
32
|
-
}): ShellCommandOutcome;
|
package/dist/sidecar-cli.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface SidecarCliCommand {
|
|
2
|
-
command: string;
|
|
3
|
-
argsPrefix: string[];
|
|
4
|
-
cliPath: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Runtime sidecars normally execute bundled `dist/cli.js`. During repo-source
|
|
8
|
-
* daemon runs, however, `import.meta.url` points at `src/*.ts` and no sibling
|
|
9
|
-
* `cli.js` exists until `npm run build`. Fall back to `tsx src/cli.ts` so
|
|
10
|
-
* source-driven workers still get completion/monitor sidecars.
|
|
11
|
-
*/
|
|
12
|
-
export declare function resolveSidecarCliCommand(input: {
|
|
13
|
-
importMetaUrl: string;
|
|
14
|
-
explicitCliPath?: string;
|
|
15
|
-
nodeExecutable: string;
|
|
16
|
-
}): SidecarCliCommand | null;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type RunFinalizeResult } from "./finalize.js";
|
|
2
|
-
import { reconcileWorkerMetadata } from "./worker-metadata-reconcile.js";
|
|
3
|
-
import { reconcileLocalOnlyMergedPrAttention } from "./local-pr-attention-reconcile.js";
|
|
4
|
-
import { archiveTerminalWorkerMetadata } from "./run-metadata-retention.js";
|
|
5
|
-
/** No heartbeat this long + dead PID → reconcile as exited. */
|
|
6
|
-
export declare const STALE_RECONCILE_HEARTBEAT_MS: number;
|
|
7
|
-
export interface StaleWorkerReconcileOutcome {
|
|
8
|
-
runId: string;
|
|
9
|
-
worker: string;
|
|
10
|
-
action: "marked_exited" | "killed_stale" | "skipped";
|
|
11
|
-
reason: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ReconcileStaleWorkersResult {
|
|
14
|
-
workers: StaleWorkerReconcileOutcome[];
|
|
15
|
-
finalizedRuns: RunFinalizeResult[];
|
|
16
|
-
metadataReconcile: ReturnType<typeof reconcileWorkerMetadata>;
|
|
17
|
-
localPrAttentionReconcile: ReturnType<typeof reconcileLocalOnlyMergedPrAttention>;
|
|
18
|
-
terminalWorkerArchive: ReturnType<typeof archiveTerminalWorkerMetadata>;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Reconcile workers that exited without updating worker.json, and optionally
|
|
22
|
-
* terminate long-idle live processes. Paused workers with recent heartbeat
|
|
23
|
-
* blockers are left alone (heartbeat freshness gate).
|
|
24
|
-
*/
|
|
25
|
-
export declare function reconcileStaleWorkers(): ReconcileStaleWorkersResult;
|
|
26
|
-
/**
|
|
27
|
-
* One-shot CLI entry for `kynver run reconcile`: reconciles stale workers and
|
|
28
|
-
* finalizes dead runs globally without requiring a running daemon. Prints a
|
|
29
|
-
* JSON summary to stdout.
|
|
30
|
-
*/
|
|
31
|
-
export declare function reconcileRunsCli(): void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { KynverUserConfig } from "./config.js";
|
|
2
|
-
export interface StartBoxIdentityRepair {
|
|
3
|
-
repaired: boolean;
|
|
4
|
-
boxKind: string;
|
|
5
|
-
maxConcurrentWorkers: number;
|
|
6
|
-
warnings: string[];
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* On `kynver start`, persist explicit box identity and clamp mis-inherited Forge caps
|
|
10
|
-
* so Command Center pools stay ghost 8 / forge 4.
|
|
11
|
-
*/
|
|
12
|
-
export declare function repairStartBoxIdentity(config?: KynverUserConfig, env?: NodeJS.ProcessEnv): StartBoxIdentityRepair;
|
package/dist/start.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type HarnessRunRecord } from "./run-store.js";
|
|
2
|
-
/**
|
|
3
|
-
* Pick the run `start` should attach the daemon to: the newest non-terminal
|
|
4
|
-
* run whose repo matches. Returns null when none exists (create one).
|
|
5
|
-
*/
|
|
6
|
-
export declare function resolveStartRunId(runs: HarnessRunRecord[], repo: string): string | null;
|
|
7
|
-
export declare function runStart(args: Record<string, string | boolean>): Promise<void>;
|
|
8
|
-
/**
|
|
9
|
-
* The argv the keeper child re-invokes with: an explicit `kynver daemon`
|
|
10
|
-
* command (NOT `start` — the child must skip bootstrap/run resolution and
|
|
11
|
-
* just run the loop). Forwards the daemon-relevant flags `start` accepts.
|
|
12
|
-
*/
|
|
13
|
-
export declare function buildStartDaemonArgv(runId: string, agentOsId: string, args: Record<string, string | boolean>): string[];
|
package/dist/status.d.ts
DELETED
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
import { type GitAncestry } from "./git.js";
|
|
2
|
-
import { type WorkerLandingContract } from "./landing-contract-gate.js";
|
|
3
|
-
export declare const NO_START_MS = 180000;
|
|
4
|
-
export declare const STALE_MS = 600000;
|
|
5
|
-
export interface WorkerAttention {
|
|
6
|
-
state: "done" | "needs_attention" | "blocked" | "stale" | "ok";
|
|
7
|
-
reason: string;
|
|
8
|
-
}
|
|
9
|
-
/** Snapshot of operating-rules policy injection at worker spawn (from dispatch-next). */
|
|
10
|
-
export interface InstructionPolicyEvidenceSnapshot {
|
|
11
|
-
fingerprint?: string;
|
|
12
|
-
ruleSlugs?: string[];
|
|
13
|
-
globalRuleCount?: number;
|
|
14
|
-
personaRuleCount?: number;
|
|
15
|
-
explicitKindCount?: number;
|
|
16
|
-
invariantCount?: number;
|
|
17
|
-
markdownChars?: number;
|
|
18
|
-
injectedAt?: string;
|
|
19
|
-
}
|
|
20
|
-
/** Snapshot of task-anchored context envelope injection at worker spawn. */
|
|
21
|
-
export interface ContextEnvelopeEvidenceSnapshot {
|
|
22
|
-
anchorTaskId?: string;
|
|
23
|
-
envelopeGeneratedAt?: string;
|
|
24
|
-
injectedAt?: string;
|
|
25
|
-
hasPersonaBlock?: boolean;
|
|
26
|
-
personaSlug?: string | null;
|
|
27
|
-
operatingRuleCount?: number;
|
|
28
|
-
memoryHitCount?: number;
|
|
29
|
-
markdownChars?: number;
|
|
30
|
-
source?: "dispatch_injection" | "tool_call";
|
|
31
|
-
}
|
|
32
|
-
/** Snapshot of anchored persona context-envelope injection at worker spawn. */
|
|
33
|
-
export interface PersonaContextEvidenceSnapshot {
|
|
34
|
-
expectedPersonaSlug?: string;
|
|
35
|
-
injectedPersonaSlug?: string;
|
|
36
|
-
displayName?: string;
|
|
37
|
-
operatingRuleCount?: number;
|
|
38
|
-
anchorTaskId?: string;
|
|
39
|
-
envelopeGeneratedAt?: string;
|
|
40
|
-
injectedAt?: string;
|
|
41
|
-
markdownChars?: number;
|
|
42
|
-
}
|
|
43
|
-
/** Snapshot of first-class runtime memory envelope injection at harness launch. */
|
|
44
|
-
export interface RuntimeEnvelopeEvidenceSnapshot {
|
|
45
|
-
envelopeId?: string;
|
|
46
|
-
envelopeSchemaVersion?: string;
|
|
47
|
-
generatedAt?: string;
|
|
48
|
-
injectedAt?: string;
|
|
49
|
-
mode?: string;
|
|
50
|
-
memoryIncludedCount?: number;
|
|
51
|
-
memoryOmittedCount?: number;
|
|
52
|
-
degraded?: boolean;
|
|
53
|
-
degradedReason?: string | null;
|
|
54
|
-
auditFingerprint?: string;
|
|
55
|
-
promptMarkdownChars?: number;
|
|
56
|
-
}
|
|
57
|
-
/** Dispatch-time retrieval probe replayed on harness completion. */
|
|
58
|
-
export interface HarnessMemoryQualityCaptureSnapshot {
|
|
59
|
-
memoryQuery: string;
|
|
60
|
-
hitCount: number;
|
|
61
|
-
miss: boolean;
|
|
62
|
-
capturedAt: string;
|
|
63
|
-
retrievalEvidence?: Record<string, unknown> | null;
|
|
64
|
-
/** P7 privacy-safe prompt block (trace summary + live-verification nudges). */
|
|
65
|
-
promptMarkdown?: string | null;
|
|
66
|
-
}
|
|
67
|
-
export interface HarnessWorkerRecord {
|
|
68
|
-
name: string;
|
|
69
|
-
runId: string;
|
|
70
|
-
status: string;
|
|
71
|
-
pid?: number;
|
|
72
|
-
/** Model id passed to the worker provider. */
|
|
73
|
-
model?: string;
|
|
74
|
-
/** Worker provider key frozen at spawn for status/completion readback. */
|
|
75
|
-
provider?: string;
|
|
76
|
-
executionMode?: import("./worker-execution-mode.js").WorkerExecutionMode;
|
|
77
|
-
/** Runtime observed unread operator steers and stopped this worker generation. */
|
|
78
|
-
steerRestartRequired?: boolean;
|
|
79
|
-
steerRestartRequestedAt?: string;
|
|
80
|
-
pendingSteerEventIds?: number[];
|
|
81
|
-
dispatchSteerFenceEventId?: number;
|
|
82
|
-
branch: string;
|
|
83
|
-
worktreePath: string;
|
|
84
|
-
workerDir: string;
|
|
85
|
-
stdoutPath: string;
|
|
86
|
-
stderrPath: string;
|
|
87
|
-
heartbeatPath: string;
|
|
88
|
-
ownedPaths?: string[];
|
|
89
|
-
agentOsId?: string;
|
|
90
|
-
taskId?: string;
|
|
91
|
-
planId?: string;
|
|
92
|
-
/** Operating-rules policy fingerprint when dispatch injected operating rules. */
|
|
93
|
-
instructionPolicyFingerprint?: string;
|
|
94
|
-
instructionPolicyEvidence?: InstructionPolicyEvidenceSnapshot;
|
|
95
|
-
memoryQualityCapture?: HarnessMemoryQualityCaptureSnapshot;
|
|
96
|
-
personaSlug?: string;
|
|
97
|
-
personaEvidence?: PersonaContextEvidenceSnapshot;
|
|
98
|
-
contextEnvelopeEvidence?: ContextEnvelopeEvidenceSnapshot;
|
|
99
|
-
runtimeEnvelopeEvidence?: RuntimeEnvelopeEvidenceSnapshot;
|
|
100
|
-
leaseOwner?: string;
|
|
101
|
-
/** Fencing token from claim — sent on renew/completion when set. */
|
|
102
|
-
leaseToken?: string;
|
|
103
|
-
dispatched?: boolean;
|
|
104
|
-
startedAt?: string;
|
|
105
|
-
/** Routing audit — which rule selected model/provider (dispatch inference). */
|
|
106
|
-
routingRule?: string;
|
|
107
|
-
requestedModel?: string;
|
|
108
|
-
/** Orchestration provider/model/auth-source/cost audit (no OAuth secrets). */
|
|
109
|
-
orchestrationAudit?: import("./orchestration-providers/types.js").OrchestrationRoutingAudit;
|
|
110
|
-
/** Board task metadata for landing/PR-handoff gates (set at dispatch). */
|
|
111
|
-
executorRef?: string;
|
|
112
|
-
parentTaskId?: string;
|
|
113
|
-
taskTitle?: string;
|
|
114
|
-
taskPrUrl?: string;
|
|
115
|
-
/** Canonical target PR for repair workers (must not spawn duplicate PRs). */
|
|
116
|
-
repairTargetPrUrl?: string;
|
|
117
|
-
repairTargetBranch?: string;
|
|
118
|
-
/** Set when stale-reconcile patches a dead/stale worker record. */
|
|
119
|
-
reconciledAt?: string;
|
|
120
|
-
reconcileReason?: string;
|
|
121
|
-
/** Last heartbeat blocker text successfully synced to plan-progress-sync (dedupe). */
|
|
122
|
-
lastSyncedHeartbeatBlocker?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Set when the most recent AgentOS completion replay for this finished worker
|
|
125
|
-
* was rejected (e.g. a revoked / expired / cross-workspace runner token) or
|
|
126
|
-
* otherwise failed. While set, the worker is NOT treated as cleanly done:
|
|
127
|
-
* `finalizeStaleRuns` keeps the run non-terminal and the board surfaces it.
|
|
128
|
-
* Cleared once the completion is acknowledged (2xx). Local-only — never sent
|
|
129
|
-
* to the server as part of the worker's intrinsic status.
|
|
130
|
-
*/
|
|
131
|
-
completionBlocker?: string;
|
|
132
|
-
/** Local worker aborted because post-dispatch AgentOS readback failed. */
|
|
133
|
-
dispatchStartReadbackFailed?: boolean;
|
|
134
|
-
/** ISO timestamp when `/harness/completion` returned 2xx for this worker. */
|
|
135
|
-
completionReportedAt?: string;
|
|
136
|
-
/** Snapshot from the acknowledged completion POST — local-only. */
|
|
137
|
-
completionSnapshot?: {
|
|
138
|
-
finalResult?: unknown;
|
|
139
|
-
prUrl?: string | null;
|
|
140
|
-
summary?: string | null;
|
|
141
|
-
};
|
|
142
|
-
/** How `completionSnapshot` was captured before completion ack (reconcile path). */
|
|
143
|
-
completionHandoffSource?: string;
|
|
144
|
-
/** Audit tag for how `completionReportedAt` was set (`tryCompleteWorker`, `board-task-*`). */
|
|
145
|
-
completionAckSource?: string;
|
|
146
|
-
/** Local mirror of the last completion POST outcome. */
|
|
147
|
-
completionOutcome?: "acknowledged" | "rejected";
|
|
148
|
-
/** Truncated JSON body from the last acknowledged completion response. */
|
|
149
|
-
completionResponse?: unknown;
|
|
150
|
-
/**
|
|
151
|
-
* Direct/local worker with no board linkage — must not be mistaken for an
|
|
152
|
-
* AgentTask-backed harness worker in completion or dispatch paths.
|
|
153
|
-
*/
|
|
154
|
-
localOnly?: boolean;
|
|
155
|
-
/** Sidecar PID when detached; used for observability only. */
|
|
156
|
-
completionSidecarPid?: number;
|
|
157
|
-
completionSidecarSpawnFailedAt?: string;
|
|
158
|
-
/** One-off helper paths removed before completion (`kynver worker discard-disposable`). */
|
|
159
|
-
disposableArtifactsRemoved?: string[];
|
|
160
|
-
/** Physical pool label frozen at spawn for orchestration usage attribution. */
|
|
161
|
-
boxKind?: string;
|
|
162
|
-
boxId?: string;
|
|
163
|
-
/** Runner/daemon identity frozen at spawn (KYNVER_RUNTIME_ID). */
|
|
164
|
-
runtimeId?: string;
|
|
165
|
-
}
|
|
166
|
-
export interface RawHarnessWorkerStatus {
|
|
167
|
-
runId: string;
|
|
168
|
-
worker: string;
|
|
169
|
-
pid?: number;
|
|
170
|
-
alive: boolean;
|
|
171
|
-
status: string;
|
|
172
|
-
attention: WorkerAttention;
|
|
173
|
-
branch: string;
|
|
174
|
-
worktreePath: string;
|
|
175
|
-
ownedPaths?: string[];
|
|
176
|
-
stdoutBytes: number;
|
|
177
|
-
stderrBytes: number;
|
|
178
|
-
heartbeatBytes: number;
|
|
179
|
-
firstEventAt: string | null;
|
|
180
|
-
lastEventAt: string | null;
|
|
181
|
-
lastActivityAt: string | null;
|
|
182
|
-
currentTool: string | null;
|
|
183
|
-
heartbeatCount: number;
|
|
184
|
-
lastHeartbeatAt: string | null;
|
|
185
|
-
lastHeartbeatPhase: string | null;
|
|
186
|
-
lastHeartbeatSummary: string | null;
|
|
187
|
-
heartbeatBlocker: string | null;
|
|
188
|
-
steerRestartRequired?: boolean;
|
|
189
|
-
pendingSteerEventIds?: number[];
|
|
190
|
-
dispatchSteerFenceEventId?: number;
|
|
191
|
-
/** Parser-detected timestamp anomalies (e.g., future heartbeat ts). */
|
|
192
|
-
timestampAnomalies?: Array<{
|
|
193
|
-
kind: "future_heartbeat_timestamp";
|
|
194
|
-
observedAt: string;
|
|
195
|
-
clampedTo: string;
|
|
196
|
-
}>;
|
|
197
|
-
finalResult: unknown;
|
|
198
|
-
error?: string;
|
|
199
|
-
changedFiles: string[];
|
|
200
|
-
gitAncestry: GitAncestry;
|
|
201
|
-
/** Set by PR-ready handoff before completion is posted. */
|
|
202
|
-
prUrl?: string;
|
|
203
|
-
headCommit?: string;
|
|
204
|
-
/** Paths removed via `kynver worker discard-disposable` before completion POST. */
|
|
205
|
-
disposableArtifactsRemoved?: string[];
|
|
206
|
-
/** Fencing token from claim — echoed on completion when set. */
|
|
207
|
-
leaseToken?: string;
|
|
208
|
-
/** Operating-rules policy fields echoed on completion status for mirror recovery. */
|
|
209
|
-
instructionPolicyFingerprint?: string | null;
|
|
210
|
-
instructionPolicyEvidence?: InstructionPolicyEvidenceSnapshot | null;
|
|
211
|
-
/** Model the worker was launched with — echoed from worker.json for usage tracking. */
|
|
212
|
-
model?: string | null;
|
|
213
|
-
/** Worker provider key (codex | cursor | claude | openai-compatible) frozen at spawn for usage/routing readback. */
|
|
214
|
-
provider?: string | null;
|
|
215
|
-
/** Token usage parsed from provider stream output (W2c), when the provider reported it. */
|
|
216
|
-
usage?: import("./stream.js").ParsedStreamUsage | null;
|
|
217
|
-
/** Physical pool label — ghost | forge (runtime ≥ 0.1.115). */
|
|
218
|
-
boxKind?: string | null;
|
|
219
|
-
boxId?: string | null;
|
|
220
|
-
/** Runner/daemon identity echoed from worker.json. */
|
|
221
|
-
runtimeId?: string | null;
|
|
222
|
-
personaSlug?: string | null;
|
|
223
|
-
/** True when dispatch-next spawned the worker on a daemon tick. */
|
|
224
|
-
dispatched?: boolean | null;
|
|
225
|
-
localOnly?: boolean | null;
|
|
226
|
-
}
|
|
227
|
-
export interface WorkerStatusOptions {
|
|
228
|
-
/** Branch ref for ancestry when baseCommit is not set. */
|
|
229
|
-
base?: string;
|
|
230
|
-
/** Pinned SHA from run creation — preferred for ancestry vs a moving branch tip. */
|
|
231
|
-
baseCommit?: string;
|
|
232
|
-
}
|
|
233
|
-
export declare function computeAttention(input: {
|
|
234
|
-
alive: boolean;
|
|
235
|
-
finalResult: unknown;
|
|
236
|
-
firstEventAt: string | null;
|
|
237
|
-
stdoutBytes: number;
|
|
238
|
-
stderrBytes?: number;
|
|
239
|
-
heartbeatBytes: number;
|
|
240
|
-
lastActivityAt: string | null;
|
|
241
|
-
heartbeatBlocker: string | null;
|
|
242
|
-
startedAt?: string;
|
|
243
|
-
/** stderr tail / parsed error for a worker that died without a final result. */
|
|
244
|
-
error?: string | null;
|
|
245
|
-
changedFiles?: string[];
|
|
246
|
-
gitAncestry?: GitAncestry | null;
|
|
247
|
-
completionBlocker?: string | null;
|
|
248
|
-
landingContract?: WorkerLandingContract | null;
|
|
249
|
-
prUrl?: string | null;
|
|
250
|
-
localOnly?: boolean;
|
|
251
|
-
taskId?: string | null;
|
|
252
|
-
agentOsId?: string | null;
|
|
253
|
-
reconcileReason?: string | null;
|
|
254
|
-
}): WorkerAttention;
|
|
255
|
-
export declare function computeWorkerStatus(worker: HarnessWorkerRecord, options?: WorkerStatusOptions): RawHarnessWorkerStatus;
|
|
256
|
-
export declare function isFinishedWorkerStatus(status: RawHarnessWorkerStatus): boolean;
|
|
257
|
-
/** True when a worker recorded a final result but failed the landing gate. */
|
|
258
|
-
export declare function isLandingBlockedWorkerStatus(status: RawHarnessWorkerStatus): boolean;
|
|
259
|
-
export declare function deriveRunStatus(fallback: string, workers: Array<{
|
|
260
|
-
attention?: string;
|
|
261
|
-
status?: string;
|
|
262
|
-
}>): string;
|
package/dist/stream.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { type ShellCommandOutcome } from "./shell-command-outcome.js";
|
|
2
|
-
export interface ParsedStream {
|
|
3
|
-
firstEventAt: string | null;
|
|
4
|
-
lastEventAt: string | null;
|
|
5
|
-
currentTool: string | null;
|
|
6
|
-
finalResult: unknown;
|
|
7
|
-
error: string | null;
|
|
8
|
-
/** Most recent non-success shell outcome for operator error streams. */
|
|
9
|
-
lastShellOutcome: ShellCommandOutcome | null;
|
|
10
|
-
/** Token usage observed in provider stream output (W2c contract), when reported. */
|
|
11
|
-
usage: ParsedStreamUsage | null;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Provider-observed token usage. Sources: the Claude CLI stream-json `result`
|
|
15
|
-
* message (`usage.input_tokens`/`output_tokens` + `modelUsage`), Codex exec
|
|
16
|
-
* JSONL usage events, and the openai-compatible runner's `result` event
|
|
17
|
-
* (`usage.input_tokens`/`output_tokens` mapped from prompt/completion tokens).
|
|
18
|
-
*/
|
|
19
|
-
export interface ParsedStreamUsage {
|
|
20
|
-
inputTokens?: number;
|
|
21
|
-
outputTokens?: number;
|
|
22
|
-
model?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Parse harness worker stdout (`stream-json` from Claude Code or Cursor Agent).
|
|
26
|
-
* Cursor emits `tool_call` events and may only write `type: "result"` after exit;
|
|
27
|
-
* completion heartbeats are merged in `computeWorkerStatus`.
|
|
28
|
-
*/
|
|
29
|
-
export declare function parseHarnessStream(file: string): ParsedStream;
|
|
30
|
-
/** @deprecated Use {@link parseHarnessStream} — kept for existing imports. */
|
|
31
|
-
export declare function parseClaudeStream(file: string): ParsedStream;
|
|
32
|
-
export declare function summarizeShellToolCallEvent(event: Record<string, unknown>): string | undefined;
|
|
33
|
-
export declare function summarizeEvent(event: Record<string, unknown>): string | undefined;
|
package/dist/supervisor.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { HarnessRunRecord } from "./run-store.js";
|
|
2
|
-
import type { ContextEnvelopeEvidenceSnapshot, HarnessMemoryQualityCaptureSnapshot, HarnessWorkerRecord, InstructionPolicyEvidenceSnapshot, PersonaContextEvidenceSnapshot, RuntimeEnvelopeEvidenceSnapshot } from "./status.js";
|
|
3
|
-
import type { WorkerExecutionMode } from "./worker-execution-mode.js";
|
|
4
|
-
export interface SpawnWorkerOptions {
|
|
5
|
-
name: string;
|
|
6
|
-
task: string;
|
|
7
|
-
ownedPaths?: string[];
|
|
8
|
-
model?: string;
|
|
9
|
-
branch?: string;
|
|
10
|
-
agentOsId?: string;
|
|
11
|
-
taskId?: string;
|
|
12
|
-
planId?: string;
|
|
13
|
-
instructionPolicyMarkdown?: string | null;
|
|
14
|
-
instructionPolicyFingerprint?: string | null;
|
|
15
|
-
instructionPolicyEvidence?: InstructionPolicyEvidenceSnapshot | null;
|
|
16
|
-
memoryQualityCapture?: HarnessMemoryQualityCaptureSnapshot | null;
|
|
17
|
-
memoryQualityPromptMarkdown?: string | null;
|
|
18
|
-
personaMarkdown?: string | null;
|
|
19
|
-
personaSlug?: string | null;
|
|
20
|
-
personaEvidence?: PersonaContextEvidenceSnapshot | null;
|
|
21
|
-
contextEnvelopeMarkdown?: string | null;
|
|
22
|
-
contextEnvelopeEvidence?: ContextEnvelopeEvidenceSnapshot | null;
|
|
23
|
-
runtimeEnvelopeMarkdown?: string | null;
|
|
24
|
-
runtimeEnvelopeEvidence?: RuntimeEnvelopeEvidenceSnapshot | null;
|
|
25
|
-
leaseOwner?: string;
|
|
26
|
-
leaseToken?: string;
|
|
27
|
-
dispatched?: boolean;
|
|
28
|
-
provider?: string;
|
|
29
|
-
routingRule?: string;
|
|
30
|
-
requestedModel?: string;
|
|
31
|
-
executorRef?: string;
|
|
32
|
-
parentTaskId?: string;
|
|
33
|
-
taskTitle?: string;
|
|
34
|
-
taskPrUrl?: string;
|
|
35
|
-
repairTargetPrUrl?: string;
|
|
36
|
-
repairTargetBranch?: string;
|
|
37
|
-
executionMode?: WorkerExecutionMode;
|
|
38
|
-
}
|
|
39
|
-
export declare function spawnWorkerProcess(run: HarnessRunRecord, opts: SpawnWorkerOptions): HarnessWorkerRecord;
|
|
40
|
-
export declare function startWorker(args: Record<string, string | boolean>): Promise<void>;
|
package/dist/sweep.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function sweepRun(args: Record<string, string | boolean>): Promise<Record<string, unknown> | void>;
|
package/dist/util.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare function fail(message: string): never;
|
|
2
|
-
/** Avoid flashing a visible console on Windows when spawning worker/sidecar children. */
|
|
3
|
-
export declare function hiddenSpawnOptions<T extends Record<string, unknown>>(opts: T): T;
|
|
4
|
-
export declare function required(value: string | undefined, name: string): string;
|
|
5
|
-
export declare function safeJson(line: string): unknown;
|
|
6
|
-
export declare function readJson<T>(file: string, fallback?: T): T;
|
|
7
|
-
/**
|
|
8
|
-
* Atomic JSON write (temp + rename): a PROCESS crash mid-write leaves either
|
|
9
|
-
* the old or the new content on disk, never a torn file (durable-harness D0
|
|
10
|
-
* — the tear-class fix behind every run.json/worker.json/lease write). The
|
|
11
|
-
* temp name is unique per writer so concurrent daemon+CLI writers to the
|
|
12
|
-
* same target cannot collide on the temp path. Scope: the process-crash
|
|
13
|
-
* (SIGKILL/OOM) tear class only — no fsync, so power-loss durability is
|
|
14
|
-
* explicitly out of scope for host-local coordination state. Windows note:
|
|
15
|
-
* rename over a target held open by another process can throw EPERM (a
|
|
16
|
-
* throw path the old direct write did not have).
|
|
17
|
-
*/
|
|
18
|
-
export declare function writeJson(file: string, value: unknown): void;
|
|
19
|
-
export declare function safeSlug(value: string | undefined): string;
|
|
20
|
-
export declare function timestampSlug(name: string): string;
|
|
21
|
-
export declare function splitCsv(value: string | undefined): string[];
|
|
22
|
-
export declare function trimTrailingSlash(url: string): string;
|
|
23
|
-
export declare function oneLine(value: string): string;
|
|
24
|
-
export declare function fileSize(file: string): number;
|
|
25
|
-
export declare function fileMtime(file: string): string | null;
|
|
26
|
-
export declare function tailFile(file: string, lines: number): string;
|
|
27
|
-
export declare function readMaybeFile(file: string | undefined): string;
|
|
28
|
-
export declare function listRunIds(runsDir: string): string[];
|
|
29
|
-
export declare function sleepMs(ms: number): void;
|
|
30
|
-
/** Non-blocking sleep for async loops (daemon backoff, interruptible shutdown). */
|
|
31
|
-
export declare function sleepMsAsync(ms: number): Promise<void>;
|
|
32
|
-
export declare function isPidAlive(pid: number | undefined): boolean;
|
|
33
|
-
export declare function killWorkerProcess(pid: number, signal: NodeJS.Signals): void;
|
|
34
|
-
export declare function latestIso(values: Array<string | null | undefined>): string | null;
|
|
35
|
-
export declare function secsAgo(ms: number): number;
|
package/dist/validate.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare function validateRunId(runId: string): string;
|
|
2
|
-
export declare function validateWorkerName(name: string): string;
|
|
3
|
-
/**
|
|
4
|
-
* Require `--run` and `--name` before touching the filesystem. Missing flags used
|
|
5
|
-
* to become `String(undefined)` → paths under `runs/undefined/workers/undefined`.
|
|
6
|
-
*/
|
|
7
|
-
export declare function resolveWorkerTargetArgs(args: Record<string, string | boolean>): {
|
|
8
|
-
runId: string;
|
|
9
|
-
workerName: string;
|
|
10
|
-
};
|
|
11
|
-
/** Require `--run` before loading run.json or building a run board. */
|
|
12
|
-
export declare function resolveRunTargetArg(args: Record<string, string | boolean>): string;
|
|
13
|
-
export declare function validateRepo(repo: string): string;
|
|
14
|
-
export declare function validateOwnedPaths(repoRoot: string, ownedPaths: string[]): string[];
|
|
15
|
-
export declare function validateTailLines(lines: number): number;
|
package/dist/vercel/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { fetchVercelDeploymentStatus, mapVercelReadyStateToEvidenceStatus, type VercelDeploymentLookupOptions, type VercelDeploymentLookupResult, } from "./vercel-api.js";
|
|
2
|
-
export { classifyVercelUrl, isDashboardVercelUrl, isInspectableVercelTarget, type ClassifiedVercelUrl, type VercelUrlKind, } from "./vercel-url.js";
|
|
3
|
-
export { isVercelStatusContext, normalizeGitHubStatusState, pickVercelStatusContext, type GitHubCommitStatusRow, type GitHubStatusState, type GitHubVercelStatusContext, } from "./vercel-github-status.js";
|
|
4
|
-
export { collectVercelEvidence, evidenceFromGitHubVercelStatus, resolveVercelInspectTarget, type CollectVercelEvidenceInput, type RunVercelDeploymentLookup, type RunVercelInspect, type VercelEvidenceResult, type VercelEvidenceStatus, type VercelInspectCommandResult, } from "./vercel-evidence.js";
|