@kynver-app/runtime 0.2.23 → 0.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -18
- package/dist/chat/command-auth-proof.js +1 -1
- package/dist/cli.js +74 -65
- package/dist/index.js +96 -87
- package/dist/instruction-bundle/contract.js +2 -2
- package/dist/local-run-store/index.js +6 -6
- package/dist/server/adapter-contract.js +1 -1
- package/dist/server/cleanup.js +14 -14
- package/dist/server/db-credentials.js +2 -2
- package/dist/server/default-repo.js +1 -1
- package/dist/server/heavy-verification.js +1 -1
- package/dist/server/memory-cost-enforce.js +2 -2
- package/dist/server/memory-cost.js +2 -2
- package/dist/server/model-routing.js +4 -4
- package/dist/server/monitor.js +7 -7
- package/dist/server/orchestration.js +1 -1
- package/dist/server/worker-policy.js +2 -2
- package/package.json +6 -3
- package/dist/active-harness-workers.d.ts +0 -11
- package/dist/auto-complete.d.ts +0 -60
- package/dist/bootstrap.d.ts +0 -1
- package/dist/bounded-build/admission.d.ts +0 -30
- package/dist/bounded-build/constants.d.ts +0 -10
- package/dist/bounded-build/exec.d.ts +0 -35
- package/dist/bounded-build/index.d.ts +0 -6
- package/dist/bounded-build/meminfo.d.ts +0 -5
- package/dist/bounded-build/node-options.d.ts +0 -9
- package/dist/bounded-build/systemd-wrap.d.ts +0 -17
- package/dist/box-identity.d.ts +0 -19
- package/dist/box-resource-snapshot-shared.d.ts +0 -13
- package/dist/box-resource-snapshot.d.ts +0 -45
- package/dist/box-worker-cap.d.ts +0 -9
- package/dist/byoc/context-hydration.d.ts +0 -54
- package/dist/byoc/execution-proof.d.ts +0 -46
- package/dist/byoc/index.d.ts +0 -5
- package/dist/byoc/job-envelope.d.ts +0 -39
- package/dist/byoc/m6-golden-path.d.ts +0 -86
- package/dist/byoc/mcp-tool-proof.d.ts +0 -42
- package/dist/callback-headers.d.ts +0 -2
- package/dist/callbacks.d.ts +0 -74
- package/dist/chat/anthropic-credentials.d.ts +0 -11
- package/dist/chat/anthropic-stream.d.ts +0 -43
- package/dist/chat/chat-claim-loop.d.ts +0 -41
- package/dist/chat/chat-primary-cli.d.ts +0 -2
- package/dist/chat/command-allowlist.d.ts +0 -8
- package/dist/chat/command-auth-proof.d.ts +0 -67
- package/dist/chat/command-executor.d.ts +0 -18
- package/dist/chat/delta-batcher.d.ts +0 -13
- package/dist/cleanup-active-worktrees.d.ts +0 -14
- package/dist/cleanup-build-cache-paths.d.ts +0 -5
- package/dist/cleanup-cli.d.ts +0 -1
- package/dist/cleanup-completion-blocker.d.ts +0 -10
- package/dist/cleanup-dependency-scan.d.ts +0 -13
- package/dist/cleanup-dir-size.d.ts +0 -5
- package/dist/cleanup-disk-pressure.d.ts +0 -15
- package/dist/cleanup-duplicate-worktrees.d.ts +0 -8
- package/dist/cleanup-evidence.d.ts +0 -10
- package/dist/cleanup-execute.d.ts +0 -7
- package/dist/cleanup-git-probe.d.ts +0 -5
- package/dist/cleanup-git-rev-cache.d.ts +0 -5
- package/dist/cleanup-git-status-cache.d.ts +0 -5
- package/dist/cleanup-guards-helpers.d.ts +0 -2
- package/dist/cleanup-guards.d.ts +0 -53
- package/dist/cleanup-harness-path-validate.d.ts +0 -5
- package/dist/cleanup-harness-roots.d.ts +0 -6
- package/dist/cleanup-index-status.d.ts +0 -16
- package/dist/cleanup-orphan-safety.d.ts +0 -17
- package/dist/cleanup-path-ownership.d.ts +0 -9
- package/dist/cleanup-privileged-remove.d.ts +0 -13
- package/dist/cleanup-progress.d.ts +0 -2
- package/dist/cleanup-remove-path.d.ts +0 -17
- package/dist/cleanup-retention-config.d.ts +0 -26
- package/dist/cleanup-run-directory.d.ts +0 -20
- package/dist/cleanup-run-liveness.d.ts +0 -21
- package/dist/cleanup-run-terminal-cache.d.ts +0 -6
- package/dist/cleanup-salvage-evidence.d.ts +0 -33
- package/dist/cleanup-scan.d.ts +0 -15
- package/dist/cleanup-summary.d.ts +0 -29
- package/dist/cleanup-types.d.ts +0 -154
- package/dist/cleanup-worker-harness-live.d.ts +0 -9
- package/dist/cleanup-worktree-index.d.ts +0 -18
- package/dist/cleanup-worktree-salvage.d.ts +0 -7
- package/dist/cleanup.d.ts +0 -5
- package/dist/cli-output/worker-start-stdout.d.ts +0 -11
- package/dist/cli.d.ts +0 -3
- package/dist/command-center-contract-cli.d.ts +0 -1
- package/dist/completion-ack.d.ts +0 -18
- package/dist/completion-replay.d.ts +0 -10
- package/dist/completion-response.d.ts +0 -15
- package/dist/config.d.ts +0 -122
- package/dist/context-budget-receipt.d.ts +0 -96
- package/dist/context-preview/chat-memory-preview.d.ts +0 -33
- package/dist/cron/cron-cli-bin.d.ts +0 -7
- package/dist/cron/cron-env-file.d.ts +0 -22
- package/dist/cron/cron-env.d.ts +0 -21
- package/dist/cron/cron-fire.d.ts +0 -8
- package/dist/cron/cron-id.d.ts +0 -3
- package/dist/cron/cron-install-api.d.ts +0 -27
- package/dist/cron/cron-install-cli.d.ts +0 -2
- package/dist/cron/cron-install-plan.d.ts +0 -34
- package/dist/cron/cron-install-secrets.d.ts +0 -6
- package/dist/cron/cron-install-systemd.d.ts +0 -18
- package/dist/cron/cron-install-verify.d.ts +0 -15
- package/dist/cron/cron-install.d.ts +0 -51
- package/dist/cron/cron-lock.d.ts +0 -9
- package/dist/cron/cron-match.d.ts +0 -8
- package/dist/cron/cron-readiness.d.ts +0 -35
- package/dist/cron/cron-status.d.ts +0 -10
- package/dist/cron/cron-store.d.ts +0 -8
- package/dist/cron/cron-tick-cli.d.ts +0 -2
- package/dist/cron/cron-tick-state.d.ts +0 -5
- package/dist/cron/cron-tick.d.ts +0 -19
- package/dist/cron/cron-types.d.ts +0 -53
- package/dist/cron/hermes-provider-notice.d.ts +0 -1
- package/dist/daemon-box-identity.d.ts +0 -16
- package/dist/daemon-heartbeat.d.ts +0 -30
- package/dist/daemon-keeper.d.ts +0 -21
- package/dist/daemon-platform-guard.d.ts +0 -2
- package/dist/daemon-supervision/host.d.ts +0 -4
- package/dist/daemon-supervision/index.d.ts +0 -6
- package/dist/daemon-supervision/policy.d.ts +0 -16
- package/dist/daemon-supervision/setup.d.ts +0 -23
- package/dist/daemon-supervision/start.d.ts +0 -26
- package/dist/daemon-supervision/supervision-health.d.ts +0 -20
- package/dist/daemon-supervision/verify.d.ts +0 -13
- package/dist/daemon.d.ts +0 -5
- package/dist/db-credential-env-paths.d.ts +0 -13
- package/dist/db-credential-resolver.d.ts +0 -38
- package/dist/db-url-hint.d.ts +0 -4
- package/dist/default-repo-cli.d.ts +0 -20
- package/dist/default-repo-discovery.d.ts +0 -25
- package/dist/default-repo.d.ts +0 -32
- package/dist/device-login.d.ts +0 -8
- package/dist/discard-disposable.d.ts +0 -6
- package/dist/disk-gate.d.ts +0 -25
- package/dist/dispatch-callback-timeout.d.ts +0 -1
- package/dist/dispatch-claim-release.d.ts +0 -23
- package/dist/dispatch-lane-normalization.d.ts +0 -14
- package/dist/dispatch-model-guard.d.ts +0 -26
- package/dist/dispatch-progress.d.ts +0 -3
- package/dist/dispatch-resource-gate.d.ts +0 -20
- package/dist/dispatch-start-abort.d.ts +0 -3
- package/dist/dispatch-start-readback.d.ts +0 -27
- package/dist/dispatch.d.ts +0 -24
- package/dist/disposable-artifacts.d.ts +0 -2
- package/dist/doctor/context-envelope-cli.d.ts +0 -1
- package/dist/doctor/context-envelope.d.ts +0 -13
- package/dist/doctor/context-envelope.probes.d.ts +0 -25
- package/dist/doctor/context-envelope.types.d.ts +0 -42
- package/dist/doctor/doctor.types.d.ts +0 -50
- package/dist/doctor/github-readiness.d.ts +0 -16
- package/dist/doctor/index.d.ts +0 -7
- package/dist/doctor/local-store-cli.d.ts +0 -11
- package/dist/doctor/local-store.d.ts +0 -35
- package/dist/doctor/node-runtime-cli.d.ts +0 -6
- package/dist/doctor/node-runtime.d.ts +0 -19
- package/dist/doctor/runner-install-cli.d.ts +0 -1
- package/dist/doctor/runner-install.d.ts +0 -2
- package/dist/doctor/runtime-takeover-cli.d.ts +0 -1
- package/dist/doctor/runtime-takeover-daemon-supervision.d.ts +0 -3
- package/dist/doctor/runtime-takeover-deploy-evidence.d.ts +0 -13
- package/dist/doctor/runtime-takeover-scheduler.d.ts +0 -29
- package/dist/doctor/runtime-takeover.d.ts +0 -3
- package/dist/doctor/runtime-takeover.probes.d.ts +0 -45
- package/dist/executor-ref-routing.d.ts +0 -14
- package/dist/exit-classify.d.ts +0 -12
- package/dist/exited-salvage.d.ts +0 -22
- package/dist/exited-worker-handoff-capture.d.ts +0 -19
- package/dist/factory-status/collect.d.ts +0 -12
- package/dist/factory-status/lightweight.d.ts +0 -5
- package/dist/factory-status/render.d.ts +0 -5
- package/dist/factory-status/types.d.ts +0 -46
- package/dist/factory-status-cli.d.ts +0 -1
- package/dist/factory-steer-delivery.d.ts +0 -7
- package/dist/finalize.d.ts +0 -25
- package/dist/fortress-engagement-gate.d.ts +0 -5
- package/dist/git.d.ts +0 -37
- package/dist/github-repo.d.ts +0 -5
- package/dist/harness-expert-review.d.ts +0 -12
- package/dist/harness-lease-owner.d.ts +0 -13
- package/dist/harness-notice/harness-notice.auto-complete.d.ts +0 -3
- package/dist/harness-notice/harness-notice.monitor-tick.d.ts +0 -6
- package/dist/harness-notice/harness-notice.parse.d.ts +0 -3
- package/dist/harness-notice/harness-notice.tool-response.d.ts +0 -3
- package/dist/harness-notice/harness-notice.types.d.ts +0 -17
- package/dist/harness-notice/harness-notice.worker-complete.d.ts +0 -3
- package/dist/harness-notice/harness-notice.worker-start.d.ts +0 -7
- package/dist/harness-notice/harness-notice.worker-status.d.ts +0 -2
- package/dist/harness-notice/index.d.ts +0 -8
- package/dist/harness-repair-target.d.ts +0 -23
- package/dist/harness-storage-snapshot.d.ts +0 -26
- package/dist/harness-verify-cli.d.ts +0 -1
- package/dist/harness-verify.d.ts +0 -30
- package/dist/harness-worker-active.d.ts +0 -12
- package/dist/harness-worktree-build-guard.d.ts +0 -12
- package/dist/heartbeat-final-result.d.ts +0 -5
- package/dist/heartbeat.d.ts +0 -27
- package/dist/heavy-verification/command-classify.d.ts +0 -9
- package/dist/heavy-verification/gate.d.ts +0 -10
- package/dist/heavy-verification/index.d.ts +0 -5
- package/dist/heavy-verification/paths.d.ts +0 -3
- package/dist/heavy-verification/slot.d.ts +0 -49
- package/dist/heavy-verification/worker-command-gate.d.ts +0 -23
- package/dist/index.d.ts +0 -85
- package/dist/installed-package-versions.d.ts +0 -8
- package/dist/instruction-bundle/cache.d.ts +0 -6
- package/dist/instruction-bundle/client.d.ts +0 -25
- package/dist/instruction-bundle/contract.d.ts +0 -4
- package/dist/instruction-bundle/embedded-bundle.d.ts +0 -3
- package/dist/instruction-bundle/index.d.ts +0 -7
- package/dist/instruction-bundle/keys.d.ts +0 -14
- package/dist/instruction-bundle/state.d.ts +0 -24
- package/dist/instruction-bundle/types.d.ts +0 -42
- package/dist/instruction-bundle/verify.d.ts +0 -15
- package/dist/landing/cli-auth.d.ts +0 -11
- package/dist/landing/land-pr-check-classify.d.ts +0 -17
- package/dist/landing/land-pr-completion-post.d.ts +0 -12
- package/dist/landing/land-pr.d.ts +0 -28
- package/dist/landing-contract-gate.d.ts +0 -27
- package/dist/landing-contract-pr-classify.d.ts +0 -4
- package/dist/landing-gate.d.ts +0 -24
- package/dist/lane/landing-maintainer-local.d.ts +0 -15
- package/dist/lane/landing-maintainer-tick.d.ts +0 -16
- package/dist/lane/lane-spec.d.ts +0 -8
- package/dist/lane/lane-tick-cli.d.ts +0 -1
- package/dist/lease-renewal.d.ts +0 -15
- package/dist/local-pr-attention-reconcile.d.ts +0 -25
- package/dist/local-run-store/admission-enforce.d.ts +0 -38
- package/dist/local-run-store/admission-shadow.d.ts +0 -56
- package/dist/local-run-store/dispatch-claim-recovery-startup.d.ts +0 -11
- package/dist/local-run-store/dispatch-claim-recovery.d.ts +0 -54
- package/dist/local-run-store/dispatch-receipts.d.ts +0 -90
- package/dist/local-run-store/index.d.ts +0 -15
- package/dist/local-run-store/local-run-store.d.ts +0 -106
- package/dist/local-run-store/remote-surface-flags.d.ts +0 -15
- package/dist/local-run-store/small-surfaces.d.ts +0 -37
- package/dist/local-run-store/sqlite/sqlite-filesystem-policy.d.ts +0 -16
- package/dist/local-run-store/sqlite/sqlite-local-run-store.d.ts +0 -68
- package/dist/local-run-store/sqlite/sqlite-recovery.d.ts +0 -14
- package/dist/local-run-store/sqlite/sqlite-schema.d.ts +0 -13
- package/dist/local-run-store/store-lifecycle.d.ts +0 -38
- package/dist/local-run-store/surface-flags.d.ts +0 -47
- package/dist/local-run-store/tick-posture.d.ts +0 -27
- package/dist/material-worktree-changes.d.ts +0 -2
- package/dist/memory-cost-package-version-guard-enforce.d.ts +0 -10
- package/dist/memory-cost-package-version-guard.d.ts +0 -49
- package/dist/mesh-liveness/mesh-cron-lease-store.d.ts +0 -9
- package/dist/model-routing-task-enrich.d.ts +0 -8
- package/dist/model-routing.d.ts +0 -49
- package/dist/monitor/index.d.ts +0 -7
- package/dist/monitor/monitor-cli.d.ts +0 -9
- package/dist/monitor/monitor-loop.d.ts +0 -1
- package/dist/monitor/monitor-spawn.d.ts +0 -18
- package/dist/monitor/monitor.classify.d.ts +0 -15
- package/dist/monitor/monitor.service.d.ts +0 -17
- package/dist/monitor/monitor.store.d.ts +0 -6
- package/dist/monitor/monitor.task-lease.d.ts +0 -11
- package/dist/monitor/monitor.terminal.d.ts +0 -11
- package/dist/monitor/monitor.types.d.ts +0 -77
- package/dist/node-runtime-policy.d.ts +0 -25
- package/dist/orchestration-enforcement/config.d.ts +0 -5
- package/dist/orchestration-enforcement/evaluator.d.ts +0 -6
- package/dist/orchestration-enforcement/idempotency.d.ts +0 -8
- package/dist/orchestration-enforcement/index.d.ts +0 -4
- package/dist/orchestration-enforcement/types.d.ts +0 -24
- package/dist/orchestration-providers/adapter-contract.d.ts +0 -50
- package/dist/orchestration-providers/audit.d.ts +0 -3
- package/dist/orchestration-providers/capabilities.d.ts +0 -3
- package/dist/orchestration-providers/claude-oauth-binding.d.ts +0 -6
- package/dist/orchestration-providers/codex-oauth-binding.d.ts +0 -5
- package/dist/orchestration-providers/codex-orchestration-adapter.d.ts +0 -13
- package/dist/orchestration-providers/cost-router.d.ts +0 -24
- package/dist/orchestration-providers/cursor-oauth-binding.d.ts +0 -5
- package/dist/orchestration-providers/hermes-cli-adapter.d.ts +0 -15
- package/dist/orchestration-providers/hermes-openai-codex-binding.d.ts +0 -15
- package/dist/orchestration-providers/index.d.ts +0 -14
- package/dist/orchestration-providers/inventory.d.ts +0 -31
- package/dist/orchestration-providers/oauth-binding-utils.d.ts +0 -22
- package/dist/orchestration-providers/routing.d.ts +0 -16
- package/dist/orchestration-providers/types.d.ts +0 -45
- package/dist/package-version.d.ts +0 -5
- package/dist/path-values.d.ts +0 -5
- package/dist/paths.d.ts +0 -16
- package/dist/pipeline-dispatch.d.ts +0 -8
- package/dist/pipeline-exact-targets.d.ts +0 -2
- package/dist/pipeline-max-starts.d.ts +0 -26
- package/dist/pipeline-tick.d.ts +0 -50
- package/dist/plan-persist/agentos-api.d.ts +0 -28
- package/dist/plan-persist/body-hash.d.ts +0 -3
- package/dist/plan-persist/drain.d.ts +0 -7
- package/dist/plan-persist/errors.d.ts +0 -9
- package/dist/plan-persist/handoff.d.ts +0 -7
- package/dist/plan-persist/idempotency.d.ts +0 -2
- package/dist/plan-persist/index.d.ts +0 -8
- package/dist/plan-persist/outbox-durability.d.ts +0 -31
- package/dist/plan-persist/outbox-store.d.ts +0 -36
- package/dist/plan-persist/paths.d.ts +0 -8
- package/dist/plan-persist/persist.d.ts +0 -10
- package/dist/plan-persist/readback.d.ts +0 -17
- package/dist/plan-persist/types.d.ts +0 -95
- package/dist/plan-persist-cli.d.ts +0 -3
- package/dist/plan-progress-daemon-sync.d.ts +0 -7
- package/dist/plan-progress-sync.d.ts +0 -21
- package/dist/plan-progress.d.ts +0 -10
- package/dist/post-restart-unblock.d.ts +0 -24
- package/dist/pr-handoff/index.d.ts +0 -6
- package/dist/pr-handoff/pr-handoff-assess.d.ts +0 -44
- package/dist/pr-handoff/pr-handoff-dedupe.d.ts +0 -18
- package/dist/pr-handoff/pr-handoff-gh.d.ts +0 -52
- package/dist/pr-handoff/pr-handoff-supersede.d.ts +0 -17
- package/dist/pr-handoff/pr-handoff.d.ts +0 -8
- package/dist/pr-handoff/pr-handoff.types.d.ts +0 -45
- package/dist/pr-handoff/same-head-pr-guard.d.ts +0 -10
- package/dist/prompt.d.ts +0 -56
- package/dist/provider-evidence/collect.d.ts +0 -31
- package/dist/provider-evidence/exec.d.ts +0 -5
- package/dist/provider-evidence/index.d.ts +0 -7
- package/dist/provider-evidence/recipes-github.d.ts +0 -5
- package/dist/provider-evidence/recipes-vercel.d.ts +0 -2
- package/dist/provider-evidence/registry.d.ts +0 -6
- package/dist/provider-evidence/shared-cache.d.ts +0 -8
- package/dist/provider-evidence/types.d.ts +0 -48
- package/dist/provider-evidence/wanted-store.d.ts +0 -13
- package/dist/provider-quota-preflight.d.ts +0 -38
- package/dist/providers/claude.d.ts +0 -8
- package/dist/providers/codex.d.ts +0 -14
- package/dist/providers/cursor-windows.d.ts +0 -7
- package/dist/providers/cursor.d.ts +0 -13
- package/dist/providers/hermes-codex.d.ts +0 -12
- package/dist/providers/model-preflight.d.ts +0 -33
- package/dist/providers/openai-codex-resilience.d.ts +0 -33
- package/dist/providers/registry.d.ts +0 -4
- package/dist/providers/types.d.ts +0 -36
- package/dist/redact.d.ts +0 -1
- package/dist/repair-target-worktree.d.ts +0 -4
- package/dist/repo-search.d.ts +0 -53
- package/dist/resource-gate.d.ts +0 -74
- package/dist/retry-limits.d.ts +0 -12
- package/dist/review-head-reconcile.d.ts +0 -17
- package/dist/run-list.d.ts +0 -38
- package/dist/run-metadata-retention.d.ts +0 -38
- package/dist/run-resolve.d.ts +0 -4
- package/dist/run-store.d.ts +0 -38
- package/dist/run-worker-index.d.ts +0 -10
- package/dist/runner-boundary/index.d.ts +0 -6
- package/dist/runner-boundary/runner-boundary.dispatch-guard.d.ts +0 -4
- package/dist/runner-boundary/runner-boundary.forge-legacy-migration.d.ts +0 -23
- package/dist/runner-boundary/runner-boundary.harness-root.d.ts +0 -17
- package/dist/runner-boundary/runner-boundary.resolve.d.ts +0 -4
- package/dist/runner-boundary/runner-boundary.run-guard.d.ts +0 -12
- package/dist/runner-boundary/runner-boundary.types.d.ts +0 -31
- package/dist/runner-config-backfill.d.ts +0 -18
- package/dist/runner-identity.d.ts +0 -21
- package/dist/runtime-identity.d.ts +0 -9
- package/dist/runtime-memory-envelope.d.ts +0 -16
- package/dist/scheduler-cutover-cli.d.ts +0 -2
- package/dist/scheduler-cutover.d.ts +0 -25
- package/dist/security-review-environment.d.ts +0 -27
- package/dist/server/adapter-contract.d.ts +0 -1
- package/dist/server/cleanup.d.ts +0 -3
- package/dist/server/context-budget-receipt.d.ts +0 -2
- package/dist/server/db-credentials.d.ts +0 -1
- package/dist/server/default-repo.d.ts +0 -1
- package/dist/server/harness-notice.d.ts +0 -2
- package/dist/server/heavy-verification.d.ts +0 -3
- package/dist/server/landing.d.ts +0 -1
- package/dist/server/memory-cost-enforce.d.ts +0 -1
- package/dist/server/memory-cost.d.ts +0 -1
- package/dist/server/model-routing.d.ts +0 -3
- package/dist/server/monitor.d.ts +0 -3
- package/dist/server/node-runtime-policy.d.ts +0 -1
- package/dist/server/orchestration.d.ts +0 -10
- package/dist/server/pr-evidence.d.ts +0 -2
- package/dist/server/prompt.d.ts +0 -1
- package/dist/server/repo-search.d.ts +0 -1
- package/dist/server/worker-policy.d.ts +0 -6
- package/dist/server/wsl-crash-dumps.d.ts +0 -2
- package/dist/shell-command-outcome.d.ts +0 -32
- package/dist/sidecar-cli.d.ts +0 -16
- package/dist/stale-reconcile.d.ts +0 -31
- package/dist/start-box-identity.d.ts +0 -12
- package/dist/start.d.ts +0 -13
- package/dist/status.d.ts +0 -260
- package/dist/stream.d.ts +0 -20
- package/dist/supervisor.d.ts +0 -40
- package/dist/sweep.d.ts +0 -1
- package/dist/util.d.ts +0 -35
- package/dist/validate.d.ts +0 -15
- package/dist/vercel/index.d.ts +0 -4
- package/dist/vercel/vercel-api.d.ts +0 -17
- package/dist/vercel/vercel-evidence.d.ts +0 -48
- package/dist/vercel/vercel-github-status.d.ts +0 -19
- package/dist/vercel/vercel-url.d.ts +0 -18
- package/dist/verify-live/verify-live-prompt.d.ts +0 -2
- package/dist/worker-cap-source.d.ts +0 -29
- package/dist/worker-env.d.ts +0 -52
- package/dist/worker-execution-mode.d.ts +0 -5
- package/dist/worker-final-result-embed.d.ts +0 -1
- package/dist/worker-lease-sync.d.ts +0 -15
- package/dist/worker-lifecycle.d.ts +0 -28
- package/dist/worker-metadata-paths.d.ts +0 -26
- package/dist/worker-metadata-reconcile.d.ts +0 -21
- package/dist/worker-ops.d.ts +0 -45
- package/dist/worker-persona-catalog.d.ts +0 -29
- package/dist/worker-provider-policy.d.ts +0 -26
- package/dist/workspace-runtime-config.d.ts +0 -10
- package/dist/worktree-base-ref.d.ts +0 -34
- package/dist/worktree-completion-handoff.d.ts +0 -17
- package/dist/worktree.d.ts +0 -11
- package/dist/wsl-crash-dumps-cleanup.d.ts +0 -31
- package/dist/wsl-crash-dumps-cli.d.ts +0 -1
- package/dist/wsl-crash-dumps.d.ts +0 -90
- package/dist/wsl-host.d.ts +0 -71
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Durable-harness D0 — per-surface migration flags for the local run store.
|
|
3
|
-
*
|
|
4
|
-
* Every surface migrates independently through `off` (default — today's
|
|
5
|
-
* behavior, byte-identical) → `shadow` (store written alongside the existing
|
|
6
|
-
* path; existing path authoritative; divergences counted) → `enforce` (store
|
|
7
|
-
* authoritative for the LOCAL decision). Unknown/empty values resolve to
|
|
8
|
-
* `off` with a recorded warning — a typo must never silently enable a mode.
|
|
9
|
-
*
|
|
10
|
-
* D0 lands the parser only; no surface consults its flag yet.
|
|
11
|
-
*/
|
|
12
|
-
export type LocalRunStoreSurfaceMode = "off" | "shadow" | "enforce";
|
|
13
|
-
export type LocalRunStoreSurfaceKey = "dispatchReceipts" | "admission" | "planOutbox" | "keeper" | "meshLease" | "quota";
|
|
14
|
-
export interface LocalRunStoreSurfaceDefinition {
|
|
15
|
-
key: LocalRunStoreSurfaceKey;
|
|
16
|
-
env: string;
|
|
17
|
-
/** Plan milestone that wires the surface (operator orientation). */
|
|
18
|
-
milestone: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const LOCAL_RUN_STORE_SURFACES: readonly LocalRunStoreSurfaceDefinition[];
|
|
21
|
-
export type LocalRunStoreSurfaceFlags = Record<LocalRunStoreSurfaceKey, LocalRunStoreSurfaceMode>;
|
|
22
|
-
/** Where each surface's effective mode came from (confirmation loop). */
|
|
23
|
-
export type LocalRunStoreSurfaceFlagSource = "env" | "server" | "default";
|
|
24
|
-
export interface ResolvedLocalRunStoreSurfaceFlags {
|
|
25
|
-
flags: LocalRunStoreSurfaceFlags;
|
|
26
|
-
sources: Record<LocalRunStoreSurfaceKey, LocalRunStoreSurfaceFlagSource>;
|
|
27
|
-
/** One entry per env var whose value was set but not a recognized mode. */
|
|
28
|
-
warnings: string[];
|
|
29
|
-
}
|
|
30
|
-
export declare function parseLocalRunStoreSurfaceMode(raw: string | undefined | null): {
|
|
31
|
-
mode: LocalRunStoreSurfaceMode;
|
|
32
|
-
unknown: boolean;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Effective per-surface modes with precedence
|
|
36
|
-
* env (explicitly set) > server-delivered policy > default `off`.
|
|
37
|
-
*
|
|
38
|
-
* The env var is the host-level override and local emergency brake; on the
|
|
39
|
-
* normal box (env unset everywhere) the server-delivered policy governs —
|
|
40
|
-
* boxes are administered from the backend, never by shell access
|
|
41
|
-
* (`remote-surface-flags.ts`). An UNKNOWN env value still wins the
|
|
42
|
-
* precedence as `off` (a typo must fail safe, not silently fall through to
|
|
43
|
-
* a server-delivered `enforce`).
|
|
44
|
-
*/
|
|
45
|
-
export declare function resolveLocalRunStoreSurfaceFlags(env?: NodeJS.ProcessEnv): ResolvedLocalRunStoreSurfaceFlags;
|
|
46
|
-
/** True when any surface is past `off` (store activity expected on this host). */
|
|
47
|
-
export declare function anyLocalRunStoreSurfaceActive(flags: LocalRunStoreSurfaceFlags): boolean;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type LocalRunStoreSurfaceFlags } from "./surface-flags.js";
|
|
2
|
-
export interface LocalRunStoreTickPosture {
|
|
3
|
-
contractVersion: 1;
|
|
4
|
-
observedAt: string;
|
|
5
|
-
/** `open` | `unavailable` (a tick posture always probes, so never `unopened`). */
|
|
6
|
-
state: "open" | "unavailable" | "unopened";
|
|
7
|
-
schemaVersion: number | null;
|
|
8
|
-
/** True when this open had to quarantine a corrupt db and rebuild. */
|
|
9
|
-
recovered: boolean;
|
|
10
|
-
/** Failure class when unavailable (error name only — no message payload). */
|
|
11
|
-
unavailableClass: string | null;
|
|
12
|
-
flags: LocalRunStoreSurfaceFlags;
|
|
13
|
-
/** Where each effective mode came from — env override, server policy, or default. */
|
|
14
|
-
flagSources: Record<string, "env" | "server" | "default">;
|
|
15
|
-
flagWarningCount: number;
|
|
16
|
-
/** Per-surface shadow divergence counters (D1+; empty in D0). */
|
|
17
|
-
divergenceCounters: Record<string, number>;
|
|
18
|
-
}
|
|
19
|
-
export declare function buildLocalRunStoreTickPosture(options?: {
|
|
20
|
-
env?: NodeJS.ProcessEnv;
|
|
21
|
-
now?: () => Date;
|
|
22
|
-
/** Liveness probe for the stranded-claim scan (injected to avoid run-store cycles). */
|
|
23
|
-
hasLiveWorker?: (intent: {
|
|
24
|
-
runId: string;
|
|
25
|
-
workerName: string;
|
|
26
|
-
}) => boolean;
|
|
27
|
-
}): LocalRunStoreTickPosture;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { evaluateMemoryCostPackageVersionGuard, type MemoryCostManagedPackageName, type MemoryCostPackageGuardResult } from "./memory-cost-package-version-guard.js";
|
|
2
|
-
export declare function buildMemoryCostPackageGuardInput(input?: {
|
|
3
|
-
cwd?: string;
|
|
4
|
-
repoRoot?: string;
|
|
5
|
-
selfPackageName?: MemoryCostManagedPackageName;
|
|
6
|
-
selfVersion?: string;
|
|
7
|
-
}): Promise<Parameters<typeof evaluateMemoryCostPackageVersionGuard>[0]>;
|
|
8
|
-
export declare function evaluateMemoryCostPackageGuardAtStartup(input?: Parameters<typeof buildMemoryCostPackageGuardInput>[0]): Promise<MemoryCostPackageGuardResult>;
|
|
9
|
-
export declare function enforceMemoryCostPackageGuardAtStartup(input?: Parameters<typeof buildMemoryCostPackageGuardInput>[0]): Promise<MemoryCostPackageGuardResult>;
|
|
10
|
-
export declare function shouldEnforceMemoryCostPackageGuardCli(scope?: string, action?: string): boolean;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/** Minimum versions that ship MARM memory cost controls (PR #1159). */
|
|
2
|
-
export declare const MEMORY_COST_PACKAGE_MIN_VERSIONS: {
|
|
3
|
-
readonly "@kynver-app/runtime": "0.1.83";
|
|
4
|
-
readonly "@kynver-app/openclaw-agent-os": "0.1.43";
|
|
5
|
-
readonly "@kynver-app/mcp-agent-os": "0.3.34";
|
|
6
|
-
};
|
|
7
|
-
export type MemoryCostManagedPackageName = keyof typeof MEMORY_COST_PACKAGE_MIN_VERSIONS;
|
|
8
|
-
export declare const MEMORY_COST_MANAGED_PACKAGES: MemoryCostManagedPackageName[];
|
|
9
|
-
export type MemoryCostVersionSource = "self" | "installed" | "repo" | "unknown";
|
|
10
|
-
export interface MemoryCostPackageVersionCandidate {
|
|
11
|
-
version: string;
|
|
12
|
-
source: MemoryCostVersionSource;
|
|
13
|
-
path?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface MemoryCostPackageGuardRow {
|
|
16
|
-
packageName: MemoryCostManagedPackageName;
|
|
17
|
-
displayName: string;
|
|
18
|
-
minimumVersion: string;
|
|
19
|
-
effectiveVersion: string | null;
|
|
20
|
-
effectiveSource: MemoryCostVersionSource;
|
|
21
|
-
ok: boolean;
|
|
22
|
-
summary: string;
|
|
23
|
-
remediation: string[];
|
|
24
|
-
}
|
|
25
|
-
export interface MemoryCostPackageGuardResult {
|
|
26
|
-
ok: boolean;
|
|
27
|
-
summary: string;
|
|
28
|
-
packages: MemoryCostPackageGuardRow[];
|
|
29
|
-
}
|
|
30
|
-
/** Parse `major.minor.patch`; pre-release/build suffixes are ignored. */
|
|
31
|
-
export declare function parseSemverParts(version: string): [number, number, number] | null;
|
|
32
|
-
/** Returns 1 if a > b, -1 if a < b, 0 if equal or either unparsable. */
|
|
33
|
-
export declare function compareSemver(a: string, b: string): number;
|
|
34
|
-
export declare function semverAtLeast(version: string, minimum: string): boolean;
|
|
35
|
-
export declare function probeRepoPackageVersions(input?: {
|
|
36
|
-
cwd?: string;
|
|
37
|
-
repoRoot?: string;
|
|
38
|
-
}): Partial<Record<MemoryCostManagedPackageName, MemoryCostPackageVersionCandidate>>;
|
|
39
|
-
export declare function evaluateMemoryCostPackageVersionGuard(input?: {
|
|
40
|
-
installed?: Partial<Record<MemoryCostManagedPackageName, string | MemoryCostPackageVersionCandidate>>;
|
|
41
|
-
repo?: Partial<Record<MemoryCostManagedPackageName, string | MemoryCostPackageVersionCandidate>>;
|
|
42
|
-
self?: Partial<Record<MemoryCostManagedPackageName, string | MemoryCostPackageVersionCandidate>>;
|
|
43
|
-
}): MemoryCostPackageGuardResult;
|
|
44
|
-
export declare class MemoryCostPackageVersionGuardError extends Error {
|
|
45
|
-
readonly result: MemoryCostPackageGuardResult;
|
|
46
|
-
constructor(result: MemoryCostPackageGuardResult);
|
|
47
|
-
}
|
|
48
|
-
export declare function assertMemoryCostPackageVersionGuard(input?: Parameters<typeof evaluateMemoryCostPackageVersionGuard>[0]): MemoryCostPackageGuardResult;
|
|
49
|
-
export declare function formatMemoryCostPackageGuardError(result: MemoryCostPackageGuardResult): string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface PersistedMeshCronLease {
|
|
2
|
-
leaseToken: string | null;
|
|
3
|
-
holderBoxId: string | null;
|
|
4
|
-
authorized: boolean;
|
|
5
|
-
updatedAt: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function loadPersistedMeshCronLease(runId: string): PersistedMeshCronLease | null;
|
|
8
|
-
export declare function persistMeshCronLease(runId: string, input: Pick<PersistedMeshCronLease, "leaseToken" | "holderBoxId" | "authorized">): void;
|
|
9
|
-
export declare function extractMeshLivenessFromOperatorTickResponse(operatorTick: unknown): PersistedMeshCronLease | null;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** Enrich dispatch task metadata with `roleLane` when the board row omits it. */
|
|
2
|
-
/**
|
|
3
|
-
* Best-effort plan role lane from persona, title, and executorRef.
|
|
4
|
-
* Returns undefined when nothing confident matches.
|
|
5
|
-
*/
|
|
6
|
-
export declare function inferRoleLaneFromTask(task: Record<string, unknown>): string | undefined;
|
|
7
|
-
/** Attach inferred `roleLane` so `inferModelRoutingFromTask` can use plan-lane rules. */
|
|
8
|
-
export declare function enrichTaskForModelRouting(task: Record<string, unknown>): Record<string, unknown>;
|
package/dist/model-routing.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { type KynverUserConfig } from "./config.js";
|
|
2
|
-
import type { OrchestrationProviderInventory } from "./orchestration-providers/inventory.js";
|
|
3
|
-
import type { OrchestrationRoutingAudit } from "./orchestration-providers/types.js";
|
|
4
|
-
import { CLAUDE_REVIEW_MODEL } from "./providers/claude.js";
|
|
5
|
-
export { CLAUDE_REVIEW_MODEL };
|
|
6
|
-
/** Conservative default — Sonnet for ordinary harness work (not Opus). */
|
|
7
|
-
export declare const GLOBAL_DEFAULT_MODEL = "claude-sonnet-4-6";
|
|
8
|
-
export declare const CURSOR_DEFAULT_MODEL = "composer-2.5";
|
|
9
|
-
export interface ModelRoutingDecision {
|
|
10
|
-
/** Model id passed to the provider CLI (undefined → provider default). */
|
|
11
|
-
model?: string;
|
|
12
|
-
/** Worker provider key (`claude` | `cursor` | `codex`). */
|
|
13
|
-
provider: string;
|
|
14
|
-
/** Audit trail for Command Center / worker.json. */
|
|
15
|
-
rule: string;
|
|
16
|
-
/** Original task/board model request when inferred from metadata. */
|
|
17
|
-
requestedModel?: string;
|
|
18
|
-
/** Provider/auth/cost audit for orchestration routing (no secrets). */
|
|
19
|
-
orchestrationAudit?: OrchestrationRoutingAudit;
|
|
20
|
-
}
|
|
21
|
-
/** Resolve global default: config → env → Sonnet. */
|
|
22
|
-
export declare function resolveGlobalDefaultModel(config?: KynverUserConfig): string;
|
|
23
|
-
/**
|
|
24
|
-
* Resolve which Claude model to use when a task explicitly requests the claude provider.
|
|
25
|
-
* Review/gate/critique lanes → Opus 4.8; all other lanes (implementation, repair, plan, etc.) → Sonnet 4.6.
|
|
26
|
-
* Invariant: implementation must never silently receive Opus, review must never silently receive Sonnet.
|
|
27
|
-
*/
|
|
28
|
-
export declare function resolveClaudeFactoryModel(roleLane: string, ref: string, title: string): string;
|
|
29
|
-
/**
|
|
30
|
-
* Infer model + provider from AgentOS task metadata when the dispatcher did not
|
|
31
|
-
* pass an explicit `--model`. Explicit CLI/model args always win.
|
|
32
|
-
*/
|
|
33
|
-
export declare function inferModelRoutingFromTask(task: Record<string, unknown>): ModelRoutingDecision;
|
|
34
|
-
/** Resolve launch parameters: explicit CLI wins, then executorRef intent, then task inference. */
|
|
35
|
-
export declare function resolveWorkerLaunch(input: {
|
|
36
|
-
explicitModel?: string;
|
|
37
|
-
explicitProvider?: string;
|
|
38
|
-
/** When true, `--provider claude` is honored without a task-level override. */
|
|
39
|
-
explicitProviderIsOperatorOverride?: boolean;
|
|
40
|
-
task?: Record<string, unknown>;
|
|
41
|
-
/**
|
|
42
|
-
* Pre-built provider inventory for the orchestration overlay. Callers that
|
|
43
|
-
* already probed bindings (or tests) pass this so routing does not re-probe
|
|
44
|
-
* the live host CLIs.
|
|
45
|
-
*/
|
|
46
|
-
orchestrationInventory?: OrchestrationProviderInventory | null;
|
|
47
|
-
}): ModelRoutingDecision;
|
|
48
|
-
/** Fallback chain tail after provider start — never hard-code Opus here. */
|
|
49
|
-
export declare function resolveModelFallback(startedModel: string | undefined, launchModel: string | undefined, providerDefault: string | undefined): string;
|
package/dist/monitor/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type { AutoCompleteAssessment, MonitorListEntry, MonitorSessionRecord, MonitorTickResult, TaskLeaseSnapshot, WorkerHealthClass, WorkerMonitorView, } from "./monitor.types.js";
|
|
2
|
-
export { classifyWorkerHealth, type WorkerHealthClassification } from "./monitor.classify.js";
|
|
3
|
-
export { assessAutoCompleteEligibility } from "./monitor.terminal.js";
|
|
4
|
-
export { getMonitorStatus, listMonitors, monitorAutoCompleteCli, runMonitorTick, stopMonitor, } from "./monitor.service.js";
|
|
5
|
-
export { spawnMonitorSidecar, type SpawnedMonitor, type SpawnMonitorOptions } from "./monitor-spawn.js";
|
|
6
|
-
export { runMonitorLoop } from "./monitor-loop.js";
|
|
7
|
-
export { deleteMonitorSession, loadMonitorSession, monitorIdFor, saveMonitorSession, } from "./monitor.store.js";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { getMonitorStatus, listMonitors, monitorAutoCompleteCli, runMonitorTick, stopMonitor } from "./monitor.service.js";
|
|
2
|
-
import type { StartMonitorResult } from "./monitor.service.js";
|
|
3
|
-
export declare function startMonitorCli(args: Record<string, string | boolean>): Promise<StartMonitorResult>;
|
|
4
|
-
export declare function monitorStatusCli(args: Record<string, string | boolean>): Promise<void>;
|
|
5
|
-
export declare function monitorStopCli(args: Record<string, string | boolean>): void;
|
|
6
|
-
export declare function monitorListCli(): void;
|
|
7
|
-
export declare function monitorRunLoopCli(args: Record<string, string | boolean>): Promise<void>;
|
|
8
|
-
export declare function monitorTickCli(args: Record<string, string | boolean>): Promise<void>;
|
|
9
|
-
export { monitorAutoCompleteCli, startMonitorCli as startMonitor, getMonitorStatus, listMonitors, runMonitorTick, stopMonitor, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function runMonitorLoop(args: Record<string, string | boolean>): Promise<void>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { MonitorSessionRecord } from "./monitor.types.js";
|
|
2
|
-
export interface SpawnMonitorOptions {
|
|
3
|
-
runId: string;
|
|
4
|
-
workerName?: string;
|
|
5
|
-
agentOsId?: string;
|
|
6
|
-
pollMs?: number;
|
|
7
|
-
cliPath?: string;
|
|
8
|
-
nodeExecutable?: string;
|
|
9
|
-
baseUrl?: string;
|
|
10
|
-
secret?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface SpawnedMonitor {
|
|
13
|
-
monitorId: string;
|
|
14
|
-
pid?: number;
|
|
15
|
-
logPath: string;
|
|
16
|
-
session: MonitorSessionRecord;
|
|
17
|
-
}
|
|
18
|
-
export declare function spawnMonitorSidecar(opts: SpawnMonitorOptions): SpawnedMonitor | undefined;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type HarnessWorkerRecord, type RawHarnessWorkerStatus } from "../status.js";
|
|
2
|
-
import type { TaskLeaseSnapshot, WorkerHealthClass } from "./monitor.types.js";
|
|
3
|
-
export interface WorkerHealthClassification {
|
|
4
|
-
health: WorkerHealthClass;
|
|
5
|
-
reason: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Classify harness worker disk state vs optional board lease snapshot.
|
|
9
|
-
* `running` on AgentTask means live executor lease — not plan-row `in_progress`.
|
|
10
|
-
*/
|
|
11
|
-
export declare function classifyWorkerHealth(input: {
|
|
12
|
-
worker: HarnessWorkerRecord;
|
|
13
|
-
status: RawHarnessWorkerStatus;
|
|
14
|
-
taskLease?: TaskLeaseSnapshot | null;
|
|
15
|
-
}): WorkerHealthClassification;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { MonitorListEntry, MonitorSessionRecord, MonitorTickResult } from "./monitor.types.js";
|
|
2
|
-
/** One monitor poll: classify workers, renew leases, auto-complete when verified terminal. */
|
|
3
|
-
export declare function runMonitorTick(args: Record<string, string | boolean>): Promise<MonitorTickResult>;
|
|
4
|
-
export declare function getMonitorStatus(args: Record<string, string | boolean>): MonitorTickResult;
|
|
5
|
-
export declare function listMonitors(): MonitorListEntry[];
|
|
6
|
-
export interface StartMonitorResult {
|
|
7
|
-
monitorId: string;
|
|
8
|
-
session: MonitorSessionRecord;
|
|
9
|
-
spawned: boolean;
|
|
10
|
-
pid?: number;
|
|
11
|
-
}
|
|
12
|
-
export declare function stopMonitor(args: Record<string, string | boolean>): {
|
|
13
|
-
monitorId: string;
|
|
14
|
-
stopped: boolean;
|
|
15
|
-
pid?: number;
|
|
16
|
-
};
|
|
17
|
-
export declare function monitorAutoCompleteCli(args: Record<string, string | boolean>): Promise<void>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { MonitorListEntry, MonitorSessionRecord } from "./monitor.types.js";
|
|
2
|
-
export declare function monitorIdFor(runId: string, workerName?: string): string;
|
|
3
|
-
export declare function loadMonitorSession(monitorId: string): MonitorSessionRecord | undefined;
|
|
4
|
-
export declare function saveMonitorSession(session: MonitorSessionRecord): void;
|
|
5
|
-
export declare function deleteMonitorSession(monitorId: string): boolean;
|
|
6
|
-
export declare function listMonitorSessions(): MonitorListEntry[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { TaskLeaseSnapshot } from "./monitor.types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Best-effort board lease snapshot for monitor classification. Failures return
|
|
4
|
-
* an empty map — local disk classification still runs without server data.
|
|
5
|
-
*/
|
|
6
|
-
export declare function fetchTaskLeasesForWorkers(input: {
|
|
7
|
-
agentOsId?: string;
|
|
8
|
-
taskIds: string[];
|
|
9
|
-
baseUrl?: string;
|
|
10
|
-
secret?: string;
|
|
11
|
-
}): Promise<Map<string, TaskLeaseSnapshot>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type HarnessWorkerRecord, type RawHarnessWorkerStatus } from "../status.js";
|
|
2
|
-
import type { AutoCompleteAssessment } from "./monitor.types.js";
|
|
3
|
-
/**
|
|
4
|
-
* Auto-complete may only run when the worker has reached a verified terminal
|
|
5
|
-
* condition and no structural blocker is present. Never paper over heartbeat
|
|
6
|
-
* blockers, landing gates, or completion replay failures.
|
|
7
|
-
*/
|
|
8
|
-
export declare function assessAutoCompleteEligibility(input: {
|
|
9
|
-
worker: HarnessWorkerRecord;
|
|
10
|
-
status: RawHarnessWorkerStatus;
|
|
11
|
-
}): AutoCompleteAssessment;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import type { RawHarnessWorkerStatus } from "../status.js";
|
|
2
|
-
/** Local worker health — distinct from AgentTask `running` (live executor lease). */
|
|
3
|
-
export type WorkerHealthClass = "healthy" | "stale" | "orphaned";
|
|
4
|
-
export interface TaskLeaseSnapshot {
|
|
5
|
-
taskId: string;
|
|
6
|
-
/** AgentTask.status — `running` means a live executor lease on the board. */
|
|
7
|
-
status: string;
|
|
8
|
-
leaseOwner: string | null;
|
|
9
|
-
leaseToken: string | null;
|
|
10
|
-
leaseExpiresAt: string | null;
|
|
11
|
-
heartbeatAt: string | null;
|
|
12
|
-
blocker: string | null;
|
|
13
|
-
executorRef?: string | null;
|
|
14
|
-
attempt?: number | null;
|
|
15
|
-
}
|
|
16
|
-
export interface MonitorSessionRecord {
|
|
17
|
-
monitorId: string;
|
|
18
|
-
runId: string;
|
|
19
|
-
workerName?: string;
|
|
20
|
-
agentOsId?: string;
|
|
21
|
-
pid?: number;
|
|
22
|
-
startedAt: string;
|
|
23
|
-
stoppedAt?: string;
|
|
24
|
-
pollMs: number;
|
|
25
|
-
logPath: string;
|
|
26
|
-
}
|
|
27
|
-
export interface WorkerMonitorView {
|
|
28
|
-
runId: string;
|
|
29
|
-
worker: string;
|
|
30
|
-
health: WorkerHealthClass;
|
|
31
|
-
healthReason: string;
|
|
32
|
-
workerStatus: string;
|
|
33
|
-
attentionState: string;
|
|
34
|
-
attentionReason: string;
|
|
35
|
-
alive: boolean;
|
|
36
|
-
taskId?: string;
|
|
37
|
-
leaseOwner?: string;
|
|
38
|
-
taskStatus?: string;
|
|
39
|
-
autoComplete: AutoCompleteAssessment;
|
|
40
|
-
status: RawHarnessWorkerStatus;
|
|
41
|
-
}
|
|
42
|
-
export interface AutoCompleteAssessment {
|
|
43
|
-
eligible: boolean;
|
|
44
|
-
terminalVerified: boolean;
|
|
45
|
-
terminalReason?: string;
|
|
46
|
-
blockers: string[];
|
|
47
|
-
}
|
|
48
|
-
export interface MonitorTickResult {
|
|
49
|
-
runId: string;
|
|
50
|
-
agentOsId?: string;
|
|
51
|
-
workers: WorkerMonitorView[];
|
|
52
|
-
leaseRenewal?: {
|
|
53
|
-
renewed: string[];
|
|
54
|
-
failed: Array<{
|
|
55
|
-
worker: string;
|
|
56
|
-
reason: string;
|
|
57
|
-
}>;
|
|
58
|
-
skipped: string[];
|
|
59
|
-
};
|
|
60
|
-
autoCompleted: Array<{
|
|
61
|
-
worker: string;
|
|
62
|
-
outcome: string;
|
|
63
|
-
ok: boolean;
|
|
64
|
-
reason?: string;
|
|
65
|
-
}>;
|
|
66
|
-
}
|
|
67
|
-
export interface MonitorListEntry {
|
|
68
|
-
monitorId: string;
|
|
69
|
-
runId: string;
|
|
70
|
-
workerName?: string;
|
|
71
|
-
agentOsId?: string;
|
|
72
|
-
pid?: number;
|
|
73
|
-
alive: boolean;
|
|
74
|
-
startedAt: string;
|
|
75
|
-
pollMs: number;
|
|
76
|
-
logPath: string;
|
|
77
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Node 24 migration N2b — the ONE shared semantic-version policy contract.
|
|
3
|
-
*
|
|
4
|
-
* The comparator takes the engine range as a parameter: one comparison
|
|
5
|
-
* engine, two contracts. Published CLI/MCP artifacts use the unbounded
|
|
6
|
-
* range; the private root app is bounded per-major. Do NOT duplicate this
|
|
7
|
-
* comparison logic anywhere (N2d wraps it; the server diagnostic imports
|
|
8
|
-
* it). During N2b the policy is report-only: callers may classify, but
|
|
9
|
-
* nothing gates startup on the verdict.
|
|
10
|
-
*/
|
|
11
|
-
export declare const KYNVER_NODE_PATCH_FLOOR = "24.11.0";
|
|
12
|
-
/** Engine contract for published runtime-coupled packages (unbounded). */
|
|
13
|
-
export declare const PUBLISHED_NODE_RANGE = ">=24.11.0";
|
|
14
|
-
/** Engine contract for the private root app (bounded per qualified major). */
|
|
15
|
-
export declare const PRIVATE_ROOT_NODE_RANGE = ">=24.11.0 <25";
|
|
16
|
-
export type NodeRuntimePolicyStatus = "compatible" | "upgrade_required" | "unsupported_major" | "invalid_version";
|
|
17
|
-
export interface NodeRuntimePolicyVerdict {
|
|
18
|
-
status: NodeRuntimePolicyStatus;
|
|
19
|
-
/** Normalized (no leading `v`) version that was evaluated, or the raw input when invalid. */
|
|
20
|
-
currentVersion: string;
|
|
21
|
-
requiredRange: string;
|
|
22
|
-
/** Bounded operator guidance; never environment values or paths. */
|
|
23
|
-
remediation: string | null;
|
|
24
|
-
}
|
|
25
|
-
export declare function evaluateNodeRuntimePolicy(rawVersion: string, requiredRange?: string): NodeRuntimePolicyVerdict;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { OrchestrationPolicyMode } from "./types.js";
|
|
2
|
-
/** Resolve orchestration policy mode from env (default off — local fallback preserved). */
|
|
3
|
-
export declare function resolveOrchestrationPolicyMode(env?: NodeJS.ProcessEnv): OrchestrationPolicyMode;
|
|
4
|
-
/** Feature gate for enforce-mode linked AgentTask creation (default false until explicitly on). */
|
|
5
|
-
export declare function isOrchestrationEnforceTasksEnabled(env?: NodeJS.ProcessEnv): boolean;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { OrchestrationPolicyEvaluateInput, OrchestrationPolicyEvaluateResult } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Evaluate whether a foreground orchestration action should stay local, be
|
|
4
|
-
* observed (logged bypass), or route through linked harness AgentTask creation.
|
|
5
|
-
*/
|
|
6
|
-
export declare function evaluateOrchestrationPolicy(input: OrchestrationPolicyEvaluateInput, env?: NodeJS.ProcessEnv): OrchestrationPolicyEvaluateResult;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** Deterministic foreground harness task idempotency key for Hermes/Forge sessions. */
|
|
2
|
-
export declare function buildForegroundHarnessIdempotencyKey(input: {
|
|
3
|
-
sessionId?: string | null;
|
|
4
|
-
planId?: string | null;
|
|
5
|
-
parentTaskId?: string | null;
|
|
6
|
-
title?: string | null;
|
|
7
|
-
action?: string | null;
|
|
8
|
-
}): string;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** Kynver-first foreground orchestration policy — observe before enforce. */
|
|
2
|
-
export declare const ORCHESTRATION_POLICY_MODES: readonly ["off", "observe", "enforce"];
|
|
3
|
-
export type OrchestrationPolicyMode = (typeof ORCHESTRATION_POLICY_MODES)[number];
|
|
4
|
-
export declare const ORCHESTRATION_ACTION_KINDS: readonly ["foreground_harness_spawn", "shell_platform_dispatch"];
|
|
5
|
-
export type OrchestrationActionKind = (typeof ORCHESTRATION_ACTION_KINDS)[number];
|
|
6
|
-
export declare const ORCHESTRATION_POLICY_DECISIONS: readonly ["allow_local", "observe_bypass", "enforce_harness_task"];
|
|
7
|
-
export type OrchestrationPolicyDecision = (typeof ORCHESTRATION_POLICY_DECISIONS)[number];
|
|
8
|
-
export interface OrchestrationPolicyEvaluateInput {
|
|
9
|
-
action: OrchestrationActionKind;
|
|
10
|
-
toolName?: string | null;
|
|
11
|
-
sessionId?: string | null;
|
|
12
|
-
planId?: string | null;
|
|
13
|
-
parentTaskId?: string | null;
|
|
14
|
-
title?: string | null;
|
|
15
|
-
description?: string | null;
|
|
16
|
-
}
|
|
17
|
-
export interface OrchestrationPolicyEvaluateResult {
|
|
18
|
-
mode: OrchestrationPolicyMode;
|
|
19
|
-
decision: OrchestrationPolicyDecision;
|
|
20
|
-
/** Stable idempotency key when enforce would create a linked harness task. */
|
|
21
|
-
idempotencyKey: string | null;
|
|
22
|
-
bypassLogged: boolean;
|
|
23
|
-
reason: string;
|
|
24
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Adapter context-envelope contract schema.
|
|
3
|
-
*
|
|
4
|
-
* Declares what ContextEnvelope fields each orchestration adapter can
|
|
5
|
-
* consume when a harness worker is dispatched. Used by the server-side
|
|
6
|
-
* context-envelope policy router
|
|
7
|
-
* (src/modules/agent-os/context-envelope-policy/) to validate and record
|
|
8
|
-
* what fields were routed before worker spawn.
|
|
9
|
-
*
|
|
10
|
-
* The canonical parity invariant: kynver-harness and hermes share the
|
|
11
|
-
* same context_envelope_* capabilities so that Kynver-native workers
|
|
12
|
-
* receive the same goal/plan/task/memory context as Hermes-dispatched
|
|
13
|
-
* workers. Kynver-harness additionally supports instruction_policy,
|
|
14
|
-
* persona_context, and memory_quality_capture for richer local context.
|
|
15
|
-
*/
|
|
16
|
-
/** Fields from the AgentOS ContextEnvelope that an adapter can consume. */
|
|
17
|
-
export type AdapterContextCapability = "instruction_policy" | "persona_context" | "memory_quality_capture" | "context_envelope_goal" | "context_envelope_plan" | "context_envelope_task" | "context_envelope_memories" | "context_envelope_sessions" | "context_envelope_persona";
|
|
18
|
-
/** Canonical adapter identity for context-envelope policy routing. */
|
|
19
|
-
export type AdapterContextContractId = "kynver-harness" | "hermes" | "cursor" | "codex" | "claude";
|
|
20
|
-
/**
|
|
21
|
-
* Describes what ContextEnvelope capabilities an orchestration adapter
|
|
22
|
-
* can accept at dispatch time. The context-envelope policy router uses
|
|
23
|
-
* this to determine which fields to route and whether dispatch should be
|
|
24
|
-
* blocked due to missing required context.
|
|
25
|
-
*/
|
|
26
|
-
export interface AdapterContextContract {
|
|
27
|
-
adapterId: AdapterContextContractId;
|
|
28
|
-
displayName: string;
|
|
29
|
-
/** All capabilities this adapter can consume when present. */
|
|
30
|
-
capabilities: AdapterContextCapability[];
|
|
31
|
-
/**
|
|
32
|
-
* Subset of `capabilities` that must be satisfiable before dispatch
|
|
33
|
-
* proceeds. An adapter with a required capability for which the
|
|
34
|
-
* context envelope has no data will produce `shouldBlock: true` in
|
|
35
|
-
* the policy slice. Most adapters have no required capabilities.
|
|
36
|
-
*/
|
|
37
|
-
requiredCapabilities: AdapterContextCapability[];
|
|
38
|
-
/**
|
|
39
|
-
* How this adapter receives injected context. Operator and developer
|
|
40
|
-
* reference only — not machine-enforced.
|
|
41
|
-
*/
|
|
42
|
-
compatibilityNotes: string;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Look up the context-envelope contract for a given adapter. Returns a
|
|
46
|
-
* no-capability contract for unknown adapter IDs so policy routing never
|
|
47
|
-
* throws — it simply records zero satisfied capabilities.
|
|
48
|
-
*/
|
|
49
|
-
export declare function getAdapterContextContract(adapterId: string): AdapterContextContract;
|
|
50
|
-
export declare function listAdapterContextContracts(): AdapterContextContract[];
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { OrchestrationRoutingAudit } from "./types.js";
|
|
2
|
-
export declare function sanitizeOrchestrationAudit(audit: OrchestrationRoutingAudit): OrchestrationRoutingAudit;
|
|
3
|
-
export declare function orchestrationAuditForWorkerJson(audit: OrchestrationRoutingAudit): OrchestrationRoutingAudit;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { OrchestrationProviderCapability, OrchestrationProviderId } from "./types.js";
|
|
2
|
-
export declare function getOrchestrationProviderCapability(id: OrchestrationProviderId): OrchestrationProviderCapability;
|
|
3
|
-
export declare function listOrchestrationProviderCapabilities(): OrchestrationProviderCapability[];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { OrchestrationProviderBindingStatus } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Probe Claude Code OAuth on the local runner. Never reads or returns raw OAuth tokens.
|
|
4
|
-
* ANTHROPIC_API_KEY is reported separately as api_key_env (cloud credits path).
|
|
5
|
-
*/
|
|
6
|
-
export declare function probeClaudeOAuthBinding(nowIso?: string): OrchestrationProviderBindingStatus;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type HermesOpenAiCodexBindingStatus } from "./hermes-openai-codex-binding.js";
|
|
2
|
-
import type { OrchestrationProviderBindingStatus } from "./types.js";
|
|
3
|
-
/** How low-cost Codex orchestration authenticates on this host. */
|
|
4
|
-
export type CodexOrchestrationPath = "codex_cli" | "hermes_openai_codex" | "none";
|
|
5
|
-
export interface CodexOrchestrationAdapterStatus extends OrchestrationProviderBindingStatus {
|
|
6
|
-
path: CodexOrchestrationPath;
|
|
7
|
-
hermesOpenAiCodex?: HermesOpenAiCodexBindingStatus;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Resolve the best local Codex/OpenAI orchestration path: standalone `codex` CLI first,
|
|
11
|
-
* then Hermes-managed `openai-codex` subscription when the CLI is absent or unbound.
|
|
12
|
-
*/
|
|
13
|
-
export declare function resolveCodexOrchestrationAdapter(nowIso?: string): CodexOrchestrationAdapterStatus;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { OrchestrationProviderInventory } from "./inventory.js";
|
|
2
|
-
import type { OrchestrationProviderBindingStatus, OrchestrationProviderId, OrchestrationRiskClass } from "./types.js";
|
|
3
|
-
export declare function providerCapableForRisk(providerId: OrchestrationProviderId, riskClass: OrchestrationRiskClass): boolean;
|
|
4
|
-
export declare function compareProviderCandidates(a: {
|
|
5
|
-
providerId: OrchestrationProviderId;
|
|
6
|
-
binding: OrchestrationProviderBindingStatus;
|
|
7
|
-
}, b: {
|
|
8
|
-
providerId: OrchestrationProviderId;
|
|
9
|
-
binding: OrchestrationProviderBindingStatus;
|
|
10
|
-
}): number;
|
|
11
|
-
export interface CheapestCapableSelection {
|
|
12
|
-
providerId: OrchestrationProviderId;
|
|
13
|
-
binding: OrchestrationProviderBindingStatus;
|
|
14
|
-
escalatedFrom?: OrchestrationProviderId;
|
|
15
|
-
escalatedReason?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Pick the lowest-cost ready provider that can run the given risk class.
|
|
19
|
-
* Sorts by cost tier, then prefers local OAuth CLI over metered API-key paths.
|
|
20
|
-
*/
|
|
21
|
-
export declare function selectCheapestCapableProvider(input: {
|
|
22
|
-
inventory: OrchestrationProviderInventory;
|
|
23
|
-
riskClass: OrchestrationRiskClass;
|
|
24
|
-
}): CheapestCapableSelection | null;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { OrchestrationProviderBindingStatus } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Probe Cursor/Composer OAuth on the local runner. Never reads or returns raw OAuth tokens.
|
|
4
|
-
*/
|
|
5
|
-
export declare function probeCursorOAuthBinding(nowIso?: string): OrchestrationProviderBindingStatus;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { OrchestrationAuthSource } from "./types.js";
|
|
2
|
-
export interface HermesCliAdapterStatus {
|
|
3
|
-
adapterId: "hermes";
|
|
4
|
-
cliAvailable: boolean;
|
|
5
|
-
profileBound: boolean;
|
|
6
|
-
authSource: OrchestrationAuthSource;
|
|
7
|
-
sessionFingerprint?: string;
|
|
8
|
-
checkedAt: string;
|
|
9
|
-
note?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Best-effort Hermes Forge CLI adapter probe. Cloud/API keys in ~/.hermes/.env are
|
|
13
|
-
* reported as api_key_env — distinct from harness worker BYO OAuth inventory.
|
|
14
|
-
*/
|
|
15
|
-
export declare function probeHermesCliAdapter(nowIso?: string): HermesCliAdapterStatus;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { OrchestrationAuthSource } from "./types.js";
|
|
2
|
-
export type HermesOpenAiCodexPath = "hermes_openai_codex";
|
|
3
|
-
export interface HermesOpenAiCodexBindingStatus {
|
|
4
|
-
path: HermesOpenAiCodexPath;
|
|
5
|
-
ready: boolean;
|
|
6
|
-
authSource: OrchestrationAuthSource;
|
|
7
|
-
sessionFingerprint?: string;
|
|
8
|
-
checkedAt: string;
|
|
9
|
-
note?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Probe Hermes-managed OpenAI Codex subscription (ChatGPT backend-api/codex).
|
|
13
|
-
* Uses exit-code-only `hermes auth status` — never reads auth.json token payloads.
|
|
14
|
-
*/
|
|
15
|
-
export declare function probeHermesOpenAiCodexBinding(nowIso?: string): HermesOpenAiCodexBindingStatus;
|