@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.
Files changed (413) hide show
  1. package/README.md +52 -18
  2. package/dist/chat/command-auth-proof.js +1 -1
  3. package/dist/cli.js +74 -65
  4. package/dist/index.js +96 -87
  5. package/dist/instruction-bundle/contract.js +2 -2
  6. package/dist/local-run-store/index.js +6 -6
  7. package/dist/server/adapter-contract.js +1 -1
  8. package/dist/server/cleanup.js +14 -14
  9. package/dist/server/db-credentials.js +2 -2
  10. package/dist/server/default-repo.js +1 -1
  11. package/dist/server/heavy-verification.js +1 -1
  12. package/dist/server/memory-cost-enforce.js +2 -2
  13. package/dist/server/memory-cost.js +2 -2
  14. package/dist/server/model-routing.js +4 -4
  15. package/dist/server/monitor.js +7 -7
  16. package/dist/server/orchestration.js +1 -1
  17. package/dist/server/worker-policy.js +2 -2
  18. package/package.json +6 -3
  19. package/dist/active-harness-workers.d.ts +0 -11
  20. package/dist/auto-complete.d.ts +0 -60
  21. package/dist/bootstrap.d.ts +0 -1
  22. package/dist/bounded-build/admission.d.ts +0 -30
  23. package/dist/bounded-build/constants.d.ts +0 -10
  24. package/dist/bounded-build/exec.d.ts +0 -35
  25. package/dist/bounded-build/index.d.ts +0 -6
  26. package/dist/bounded-build/meminfo.d.ts +0 -5
  27. package/dist/bounded-build/node-options.d.ts +0 -9
  28. package/dist/bounded-build/systemd-wrap.d.ts +0 -17
  29. package/dist/box-identity.d.ts +0 -19
  30. package/dist/box-resource-snapshot-shared.d.ts +0 -13
  31. package/dist/box-resource-snapshot.d.ts +0 -45
  32. package/dist/box-worker-cap.d.ts +0 -9
  33. package/dist/byoc/context-hydration.d.ts +0 -54
  34. package/dist/byoc/execution-proof.d.ts +0 -46
  35. package/dist/byoc/index.d.ts +0 -5
  36. package/dist/byoc/job-envelope.d.ts +0 -39
  37. package/dist/byoc/m6-golden-path.d.ts +0 -86
  38. package/dist/byoc/mcp-tool-proof.d.ts +0 -42
  39. package/dist/callback-headers.d.ts +0 -2
  40. package/dist/callbacks.d.ts +0 -74
  41. package/dist/chat/anthropic-credentials.d.ts +0 -11
  42. package/dist/chat/anthropic-stream.d.ts +0 -43
  43. package/dist/chat/chat-claim-loop.d.ts +0 -41
  44. package/dist/chat/chat-primary-cli.d.ts +0 -2
  45. package/dist/chat/command-allowlist.d.ts +0 -8
  46. package/dist/chat/command-auth-proof.d.ts +0 -67
  47. package/dist/chat/command-executor.d.ts +0 -18
  48. package/dist/chat/delta-batcher.d.ts +0 -13
  49. package/dist/cleanup-active-worktrees.d.ts +0 -14
  50. package/dist/cleanup-build-cache-paths.d.ts +0 -5
  51. package/dist/cleanup-cli.d.ts +0 -1
  52. package/dist/cleanup-completion-blocker.d.ts +0 -10
  53. package/dist/cleanup-dependency-scan.d.ts +0 -13
  54. package/dist/cleanup-dir-size.d.ts +0 -5
  55. package/dist/cleanup-disk-pressure.d.ts +0 -15
  56. package/dist/cleanup-duplicate-worktrees.d.ts +0 -8
  57. package/dist/cleanup-evidence.d.ts +0 -10
  58. package/dist/cleanup-execute.d.ts +0 -7
  59. package/dist/cleanup-git-probe.d.ts +0 -5
  60. package/dist/cleanup-git-rev-cache.d.ts +0 -5
  61. package/dist/cleanup-git-status-cache.d.ts +0 -5
  62. package/dist/cleanup-guards-helpers.d.ts +0 -2
  63. package/dist/cleanup-guards.d.ts +0 -53
  64. package/dist/cleanup-harness-path-validate.d.ts +0 -5
  65. package/dist/cleanup-harness-roots.d.ts +0 -6
  66. package/dist/cleanup-index-status.d.ts +0 -16
  67. package/dist/cleanup-orphan-safety.d.ts +0 -17
  68. package/dist/cleanup-path-ownership.d.ts +0 -9
  69. package/dist/cleanup-privileged-remove.d.ts +0 -13
  70. package/dist/cleanup-progress.d.ts +0 -2
  71. package/dist/cleanup-remove-path.d.ts +0 -17
  72. package/dist/cleanup-retention-config.d.ts +0 -26
  73. package/dist/cleanup-run-directory.d.ts +0 -20
  74. package/dist/cleanup-run-liveness.d.ts +0 -21
  75. package/dist/cleanup-run-terminal-cache.d.ts +0 -6
  76. package/dist/cleanup-salvage-evidence.d.ts +0 -33
  77. package/dist/cleanup-scan.d.ts +0 -15
  78. package/dist/cleanup-summary.d.ts +0 -29
  79. package/dist/cleanup-types.d.ts +0 -154
  80. package/dist/cleanup-worker-harness-live.d.ts +0 -9
  81. package/dist/cleanup-worktree-index.d.ts +0 -18
  82. package/dist/cleanup-worktree-salvage.d.ts +0 -7
  83. package/dist/cleanup.d.ts +0 -5
  84. package/dist/cli-output/worker-start-stdout.d.ts +0 -11
  85. package/dist/cli.d.ts +0 -3
  86. package/dist/command-center-contract-cli.d.ts +0 -1
  87. package/dist/completion-ack.d.ts +0 -18
  88. package/dist/completion-replay.d.ts +0 -10
  89. package/dist/completion-response.d.ts +0 -15
  90. package/dist/config.d.ts +0 -122
  91. package/dist/context-budget-receipt.d.ts +0 -96
  92. package/dist/context-preview/chat-memory-preview.d.ts +0 -33
  93. package/dist/cron/cron-cli-bin.d.ts +0 -7
  94. package/dist/cron/cron-env-file.d.ts +0 -22
  95. package/dist/cron/cron-env.d.ts +0 -21
  96. package/dist/cron/cron-fire.d.ts +0 -8
  97. package/dist/cron/cron-id.d.ts +0 -3
  98. package/dist/cron/cron-install-api.d.ts +0 -27
  99. package/dist/cron/cron-install-cli.d.ts +0 -2
  100. package/dist/cron/cron-install-plan.d.ts +0 -34
  101. package/dist/cron/cron-install-secrets.d.ts +0 -6
  102. package/dist/cron/cron-install-systemd.d.ts +0 -18
  103. package/dist/cron/cron-install-verify.d.ts +0 -15
  104. package/dist/cron/cron-install.d.ts +0 -51
  105. package/dist/cron/cron-lock.d.ts +0 -9
  106. package/dist/cron/cron-match.d.ts +0 -8
  107. package/dist/cron/cron-readiness.d.ts +0 -35
  108. package/dist/cron/cron-status.d.ts +0 -10
  109. package/dist/cron/cron-store.d.ts +0 -8
  110. package/dist/cron/cron-tick-cli.d.ts +0 -2
  111. package/dist/cron/cron-tick-state.d.ts +0 -5
  112. package/dist/cron/cron-tick.d.ts +0 -19
  113. package/dist/cron/cron-types.d.ts +0 -53
  114. package/dist/cron/hermes-provider-notice.d.ts +0 -1
  115. package/dist/daemon-box-identity.d.ts +0 -16
  116. package/dist/daemon-heartbeat.d.ts +0 -30
  117. package/dist/daemon-keeper.d.ts +0 -21
  118. package/dist/daemon-platform-guard.d.ts +0 -2
  119. package/dist/daemon-supervision/host.d.ts +0 -4
  120. package/dist/daemon-supervision/index.d.ts +0 -6
  121. package/dist/daemon-supervision/policy.d.ts +0 -16
  122. package/dist/daemon-supervision/setup.d.ts +0 -23
  123. package/dist/daemon-supervision/start.d.ts +0 -26
  124. package/dist/daemon-supervision/supervision-health.d.ts +0 -20
  125. package/dist/daemon-supervision/verify.d.ts +0 -13
  126. package/dist/daemon.d.ts +0 -5
  127. package/dist/db-credential-env-paths.d.ts +0 -13
  128. package/dist/db-credential-resolver.d.ts +0 -38
  129. package/dist/db-url-hint.d.ts +0 -4
  130. package/dist/default-repo-cli.d.ts +0 -20
  131. package/dist/default-repo-discovery.d.ts +0 -25
  132. package/dist/default-repo.d.ts +0 -32
  133. package/dist/device-login.d.ts +0 -8
  134. package/dist/discard-disposable.d.ts +0 -6
  135. package/dist/disk-gate.d.ts +0 -25
  136. package/dist/dispatch-callback-timeout.d.ts +0 -1
  137. package/dist/dispatch-claim-release.d.ts +0 -23
  138. package/dist/dispatch-lane-normalization.d.ts +0 -14
  139. package/dist/dispatch-model-guard.d.ts +0 -26
  140. package/dist/dispatch-progress.d.ts +0 -3
  141. package/dist/dispatch-resource-gate.d.ts +0 -20
  142. package/dist/dispatch-start-abort.d.ts +0 -3
  143. package/dist/dispatch-start-readback.d.ts +0 -27
  144. package/dist/dispatch.d.ts +0 -24
  145. package/dist/disposable-artifacts.d.ts +0 -2
  146. package/dist/doctor/context-envelope-cli.d.ts +0 -1
  147. package/dist/doctor/context-envelope.d.ts +0 -13
  148. package/dist/doctor/context-envelope.probes.d.ts +0 -25
  149. package/dist/doctor/context-envelope.types.d.ts +0 -42
  150. package/dist/doctor/doctor.types.d.ts +0 -50
  151. package/dist/doctor/github-readiness.d.ts +0 -16
  152. package/dist/doctor/index.d.ts +0 -7
  153. package/dist/doctor/local-store-cli.d.ts +0 -11
  154. package/dist/doctor/local-store.d.ts +0 -35
  155. package/dist/doctor/node-runtime-cli.d.ts +0 -6
  156. package/dist/doctor/node-runtime.d.ts +0 -19
  157. package/dist/doctor/runner-install-cli.d.ts +0 -1
  158. package/dist/doctor/runner-install.d.ts +0 -2
  159. package/dist/doctor/runtime-takeover-cli.d.ts +0 -1
  160. package/dist/doctor/runtime-takeover-daemon-supervision.d.ts +0 -3
  161. package/dist/doctor/runtime-takeover-deploy-evidence.d.ts +0 -13
  162. package/dist/doctor/runtime-takeover-scheduler.d.ts +0 -29
  163. package/dist/doctor/runtime-takeover.d.ts +0 -3
  164. package/dist/doctor/runtime-takeover.probes.d.ts +0 -45
  165. package/dist/executor-ref-routing.d.ts +0 -14
  166. package/dist/exit-classify.d.ts +0 -12
  167. package/dist/exited-salvage.d.ts +0 -22
  168. package/dist/exited-worker-handoff-capture.d.ts +0 -19
  169. package/dist/factory-status/collect.d.ts +0 -12
  170. package/dist/factory-status/lightweight.d.ts +0 -5
  171. package/dist/factory-status/render.d.ts +0 -5
  172. package/dist/factory-status/types.d.ts +0 -46
  173. package/dist/factory-status-cli.d.ts +0 -1
  174. package/dist/factory-steer-delivery.d.ts +0 -7
  175. package/dist/finalize.d.ts +0 -25
  176. package/dist/fortress-engagement-gate.d.ts +0 -5
  177. package/dist/git.d.ts +0 -37
  178. package/dist/github-repo.d.ts +0 -5
  179. package/dist/harness-expert-review.d.ts +0 -12
  180. package/dist/harness-lease-owner.d.ts +0 -13
  181. package/dist/harness-notice/harness-notice.auto-complete.d.ts +0 -3
  182. package/dist/harness-notice/harness-notice.monitor-tick.d.ts +0 -6
  183. package/dist/harness-notice/harness-notice.parse.d.ts +0 -3
  184. package/dist/harness-notice/harness-notice.tool-response.d.ts +0 -3
  185. package/dist/harness-notice/harness-notice.types.d.ts +0 -17
  186. package/dist/harness-notice/harness-notice.worker-complete.d.ts +0 -3
  187. package/dist/harness-notice/harness-notice.worker-start.d.ts +0 -7
  188. package/dist/harness-notice/harness-notice.worker-status.d.ts +0 -2
  189. package/dist/harness-notice/index.d.ts +0 -8
  190. package/dist/harness-repair-target.d.ts +0 -23
  191. package/dist/harness-storage-snapshot.d.ts +0 -26
  192. package/dist/harness-verify-cli.d.ts +0 -1
  193. package/dist/harness-verify.d.ts +0 -30
  194. package/dist/harness-worker-active.d.ts +0 -12
  195. package/dist/harness-worktree-build-guard.d.ts +0 -12
  196. package/dist/heartbeat-final-result.d.ts +0 -5
  197. package/dist/heartbeat.d.ts +0 -27
  198. package/dist/heavy-verification/command-classify.d.ts +0 -9
  199. package/dist/heavy-verification/gate.d.ts +0 -10
  200. package/dist/heavy-verification/index.d.ts +0 -5
  201. package/dist/heavy-verification/paths.d.ts +0 -3
  202. package/dist/heavy-verification/slot.d.ts +0 -49
  203. package/dist/heavy-verification/worker-command-gate.d.ts +0 -23
  204. package/dist/index.d.ts +0 -85
  205. package/dist/installed-package-versions.d.ts +0 -8
  206. package/dist/instruction-bundle/cache.d.ts +0 -6
  207. package/dist/instruction-bundle/client.d.ts +0 -25
  208. package/dist/instruction-bundle/contract.d.ts +0 -4
  209. package/dist/instruction-bundle/embedded-bundle.d.ts +0 -3
  210. package/dist/instruction-bundle/index.d.ts +0 -7
  211. package/dist/instruction-bundle/keys.d.ts +0 -14
  212. package/dist/instruction-bundle/state.d.ts +0 -24
  213. package/dist/instruction-bundle/types.d.ts +0 -42
  214. package/dist/instruction-bundle/verify.d.ts +0 -15
  215. package/dist/landing/cli-auth.d.ts +0 -11
  216. package/dist/landing/land-pr-check-classify.d.ts +0 -17
  217. package/dist/landing/land-pr-completion-post.d.ts +0 -12
  218. package/dist/landing/land-pr.d.ts +0 -28
  219. package/dist/landing-contract-gate.d.ts +0 -27
  220. package/dist/landing-contract-pr-classify.d.ts +0 -4
  221. package/dist/landing-gate.d.ts +0 -24
  222. package/dist/lane/landing-maintainer-local.d.ts +0 -15
  223. package/dist/lane/landing-maintainer-tick.d.ts +0 -16
  224. package/dist/lane/lane-spec.d.ts +0 -8
  225. package/dist/lane/lane-tick-cli.d.ts +0 -1
  226. package/dist/lease-renewal.d.ts +0 -15
  227. package/dist/local-pr-attention-reconcile.d.ts +0 -25
  228. package/dist/local-run-store/admission-enforce.d.ts +0 -38
  229. package/dist/local-run-store/admission-shadow.d.ts +0 -56
  230. package/dist/local-run-store/dispatch-claim-recovery-startup.d.ts +0 -11
  231. package/dist/local-run-store/dispatch-claim-recovery.d.ts +0 -54
  232. package/dist/local-run-store/dispatch-receipts.d.ts +0 -90
  233. package/dist/local-run-store/index.d.ts +0 -15
  234. package/dist/local-run-store/local-run-store.d.ts +0 -106
  235. package/dist/local-run-store/remote-surface-flags.d.ts +0 -15
  236. package/dist/local-run-store/small-surfaces.d.ts +0 -37
  237. package/dist/local-run-store/sqlite/sqlite-filesystem-policy.d.ts +0 -16
  238. package/dist/local-run-store/sqlite/sqlite-local-run-store.d.ts +0 -68
  239. package/dist/local-run-store/sqlite/sqlite-recovery.d.ts +0 -14
  240. package/dist/local-run-store/sqlite/sqlite-schema.d.ts +0 -13
  241. package/dist/local-run-store/store-lifecycle.d.ts +0 -38
  242. package/dist/local-run-store/surface-flags.d.ts +0 -47
  243. package/dist/local-run-store/tick-posture.d.ts +0 -27
  244. package/dist/material-worktree-changes.d.ts +0 -2
  245. package/dist/memory-cost-package-version-guard-enforce.d.ts +0 -10
  246. package/dist/memory-cost-package-version-guard.d.ts +0 -49
  247. package/dist/mesh-liveness/mesh-cron-lease-store.d.ts +0 -9
  248. package/dist/model-routing-task-enrich.d.ts +0 -8
  249. package/dist/model-routing.d.ts +0 -49
  250. package/dist/monitor/index.d.ts +0 -7
  251. package/dist/monitor/monitor-cli.d.ts +0 -9
  252. package/dist/monitor/monitor-loop.d.ts +0 -1
  253. package/dist/monitor/monitor-spawn.d.ts +0 -18
  254. package/dist/monitor/monitor.classify.d.ts +0 -15
  255. package/dist/monitor/monitor.service.d.ts +0 -17
  256. package/dist/monitor/monitor.store.d.ts +0 -6
  257. package/dist/monitor/monitor.task-lease.d.ts +0 -11
  258. package/dist/monitor/monitor.terminal.d.ts +0 -11
  259. package/dist/monitor/monitor.types.d.ts +0 -77
  260. package/dist/node-runtime-policy.d.ts +0 -25
  261. package/dist/orchestration-enforcement/config.d.ts +0 -5
  262. package/dist/orchestration-enforcement/evaluator.d.ts +0 -6
  263. package/dist/orchestration-enforcement/idempotency.d.ts +0 -8
  264. package/dist/orchestration-enforcement/index.d.ts +0 -4
  265. package/dist/orchestration-enforcement/types.d.ts +0 -24
  266. package/dist/orchestration-providers/adapter-contract.d.ts +0 -50
  267. package/dist/orchestration-providers/audit.d.ts +0 -3
  268. package/dist/orchestration-providers/capabilities.d.ts +0 -3
  269. package/dist/orchestration-providers/claude-oauth-binding.d.ts +0 -6
  270. package/dist/orchestration-providers/codex-oauth-binding.d.ts +0 -5
  271. package/dist/orchestration-providers/codex-orchestration-adapter.d.ts +0 -13
  272. package/dist/orchestration-providers/cost-router.d.ts +0 -24
  273. package/dist/orchestration-providers/cursor-oauth-binding.d.ts +0 -5
  274. package/dist/orchestration-providers/hermes-cli-adapter.d.ts +0 -15
  275. package/dist/orchestration-providers/hermes-openai-codex-binding.d.ts +0 -15
  276. package/dist/orchestration-providers/index.d.ts +0 -14
  277. package/dist/orchestration-providers/inventory.d.ts +0 -31
  278. package/dist/orchestration-providers/oauth-binding-utils.d.ts +0 -22
  279. package/dist/orchestration-providers/routing.d.ts +0 -16
  280. package/dist/orchestration-providers/types.d.ts +0 -45
  281. package/dist/package-version.d.ts +0 -5
  282. package/dist/path-values.d.ts +0 -5
  283. package/dist/paths.d.ts +0 -16
  284. package/dist/pipeline-dispatch.d.ts +0 -8
  285. package/dist/pipeline-exact-targets.d.ts +0 -2
  286. package/dist/pipeline-max-starts.d.ts +0 -26
  287. package/dist/pipeline-tick.d.ts +0 -50
  288. package/dist/plan-persist/agentos-api.d.ts +0 -28
  289. package/dist/plan-persist/body-hash.d.ts +0 -3
  290. package/dist/plan-persist/drain.d.ts +0 -7
  291. package/dist/plan-persist/errors.d.ts +0 -9
  292. package/dist/plan-persist/handoff.d.ts +0 -7
  293. package/dist/plan-persist/idempotency.d.ts +0 -2
  294. package/dist/plan-persist/index.d.ts +0 -8
  295. package/dist/plan-persist/outbox-durability.d.ts +0 -31
  296. package/dist/plan-persist/outbox-store.d.ts +0 -36
  297. package/dist/plan-persist/paths.d.ts +0 -8
  298. package/dist/plan-persist/persist.d.ts +0 -10
  299. package/dist/plan-persist/readback.d.ts +0 -17
  300. package/dist/plan-persist/types.d.ts +0 -95
  301. package/dist/plan-persist-cli.d.ts +0 -3
  302. package/dist/plan-progress-daemon-sync.d.ts +0 -7
  303. package/dist/plan-progress-sync.d.ts +0 -21
  304. package/dist/plan-progress.d.ts +0 -10
  305. package/dist/post-restart-unblock.d.ts +0 -24
  306. package/dist/pr-handoff/index.d.ts +0 -6
  307. package/dist/pr-handoff/pr-handoff-assess.d.ts +0 -44
  308. package/dist/pr-handoff/pr-handoff-dedupe.d.ts +0 -18
  309. package/dist/pr-handoff/pr-handoff-gh.d.ts +0 -52
  310. package/dist/pr-handoff/pr-handoff-supersede.d.ts +0 -17
  311. package/dist/pr-handoff/pr-handoff.d.ts +0 -8
  312. package/dist/pr-handoff/pr-handoff.types.d.ts +0 -45
  313. package/dist/pr-handoff/same-head-pr-guard.d.ts +0 -10
  314. package/dist/prompt.d.ts +0 -56
  315. package/dist/provider-evidence/collect.d.ts +0 -31
  316. package/dist/provider-evidence/exec.d.ts +0 -5
  317. package/dist/provider-evidence/index.d.ts +0 -7
  318. package/dist/provider-evidence/recipes-github.d.ts +0 -5
  319. package/dist/provider-evidence/recipes-vercel.d.ts +0 -2
  320. package/dist/provider-evidence/registry.d.ts +0 -6
  321. package/dist/provider-evidence/shared-cache.d.ts +0 -8
  322. package/dist/provider-evidence/types.d.ts +0 -48
  323. package/dist/provider-evidence/wanted-store.d.ts +0 -13
  324. package/dist/provider-quota-preflight.d.ts +0 -38
  325. package/dist/providers/claude.d.ts +0 -8
  326. package/dist/providers/codex.d.ts +0 -14
  327. package/dist/providers/cursor-windows.d.ts +0 -7
  328. package/dist/providers/cursor.d.ts +0 -13
  329. package/dist/providers/hermes-codex.d.ts +0 -12
  330. package/dist/providers/model-preflight.d.ts +0 -33
  331. package/dist/providers/openai-codex-resilience.d.ts +0 -33
  332. package/dist/providers/registry.d.ts +0 -4
  333. package/dist/providers/types.d.ts +0 -36
  334. package/dist/redact.d.ts +0 -1
  335. package/dist/repair-target-worktree.d.ts +0 -4
  336. package/dist/repo-search.d.ts +0 -53
  337. package/dist/resource-gate.d.ts +0 -74
  338. package/dist/retry-limits.d.ts +0 -12
  339. package/dist/review-head-reconcile.d.ts +0 -17
  340. package/dist/run-list.d.ts +0 -38
  341. package/dist/run-metadata-retention.d.ts +0 -38
  342. package/dist/run-resolve.d.ts +0 -4
  343. package/dist/run-store.d.ts +0 -38
  344. package/dist/run-worker-index.d.ts +0 -10
  345. package/dist/runner-boundary/index.d.ts +0 -6
  346. package/dist/runner-boundary/runner-boundary.dispatch-guard.d.ts +0 -4
  347. package/dist/runner-boundary/runner-boundary.forge-legacy-migration.d.ts +0 -23
  348. package/dist/runner-boundary/runner-boundary.harness-root.d.ts +0 -17
  349. package/dist/runner-boundary/runner-boundary.resolve.d.ts +0 -4
  350. package/dist/runner-boundary/runner-boundary.run-guard.d.ts +0 -12
  351. package/dist/runner-boundary/runner-boundary.types.d.ts +0 -31
  352. package/dist/runner-config-backfill.d.ts +0 -18
  353. package/dist/runner-identity.d.ts +0 -21
  354. package/dist/runtime-identity.d.ts +0 -9
  355. package/dist/runtime-memory-envelope.d.ts +0 -16
  356. package/dist/scheduler-cutover-cli.d.ts +0 -2
  357. package/dist/scheduler-cutover.d.ts +0 -25
  358. package/dist/security-review-environment.d.ts +0 -27
  359. package/dist/server/adapter-contract.d.ts +0 -1
  360. package/dist/server/cleanup.d.ts +0 -3
  361. package/dist/server/context-budget-receipt.d.ts +0 -2
  362. package/dist/server/db-credentials.d.ts +0 -1
  363. package/dist/server/default-repo.d.ts +0 -1
  364. package/dist/server/harness-notice.d.ts +0 -2
  365. package/dist/server/heavy-verification.d.ts +0 -3
  366. package/dist/server/landing.d.ts +0 -1
  367. package/dist/server/memory-cost-enforce.d.ts +0 -1
  368. package/dist/server/memory-cost.d.ts +0 -1
  369. package/dist/server/model-routing.d.ts +0 -3
  370. package/dist/server/monitor.d.ts +0 -3
  371. package/dist/server/node-runtime-policy.d.ts +0 -1
  372. package/dist/server/orchestration.d.ts +0 -10
  373. package/dist/server/pr-evidence.d.ts +0 -2
  374. package/dist/server/prompt.d.ts +0 -1
  375. package/dist/server/repo-search.d.ts +0 -1
  376. package/dist/server/worker-policy.d.ts +0 -6
  377. package/dist/server/wsl-crash-dumps.d.ts +0 -2
  378. package/dist/shell-command-outcome.d.ts +0 -32
  379. package/dist/sidecar-cli.d.ts +0 -16
  380. package/dist/stale-reconcile.d.ts +0 -31
  381. package/dist/start-box-identity.d.ts +0 -12
  382. package/dist/start.d.ts +0 -13
  383. package/dist/status.d.ts +0 -260
  384. package/dist/stream.d.ts +0 -20
  385. package/dist/supervisor.d.ts +0 -40
  386. package/dist/sweep.d.ts +0 -1
  387. package/dist/util.d.ts +0 -35
  388. package/dist/validate.d.ts +0 -15
  389. package/dist/vercel/index.d.ts +0 -4
  390. package/dist/vercel/vercel-api.d.ts +0 -17
  391. package/dist/vercel/vercel-evidence.d.ts +0 -48
  392. package/dist/vercel/vercel-github-status.d.ts +0 -19
  393. package/dist/vercel/vercel-url.d.ts +0 -18
  394. package/dist/verify-live/verify-live-prompt.d.ts +0 -2
  395. package/dist/worker-cap-source.d.ts +0 -29
  396. package/dist/worker-env.d.ts +0 -52
  397. package/dist/worker-execution-mode.d.ts +0 -5
  398. package/dist/worker-final-result-embed.d.ts +0 -1
  399. package/dist/worker-lease-sync.d.ts +0 -15
  400. package/dist/worker-lifecycle.d.ts +0 -28
  401. package/dist/worker-metadata-paths.d.ts +0 -26
  402. package/dist/worker-metadata-reconcile.d.ts +0 -21
  403. package/dist/worker-ops.d.ts +0 -45
  404. package/dist/worker-persona-catalog.d.ts +0 -29
  405. package/dist/worker-provider-policy.d.ts +0 -26
  406. package/dist/workspace-runtime-config.d.ts +0 -10
  407. package/dist/worktree-base-ref.d.ts +0 -34
  408. package/dist/worktree-completion-handoff.d.ts +0 -17
  409. package/dist/worktree.d.ts +0 -11
  410. package/dist/wsl-crash-dumps-cleanup.d.ts +0 -31
  411. package/dist/wsl-crash-dumps-cli.d.ts +0 -1
  412. package/dist/wsl-crash-dumps.d.ts +0 -90
  413. package/dist/wsl-host.d.ts +0 -71
@@ -1,53 +0,0 @@
1
- /**
2
- * Normalize and classify repo text-search commands for harness operators and chat agents.
3
- *
4
- * Codex/OpenClaw often emit `search "pattern" in <scope>` meta that maps poorly to ripgrep
5
- * (e.g. `in !node_modules` instead of `-g '!node_modules/**'`, or `in package.json` as a path).
6
- */
7
- export type RepoSearchKind = "not_repo_search" | "bad_scope" | "rg_exclude_syntax" | "no_matches";
8
- export interface RepoSearchContext {
9
- kind: RepoSearchKind;
10
- pattern?: string;
11
- target?: string;
12
- }
13
- export declare function isSingleFileSearchTarget(target: string | undefined): boolean;
14
- /** `!node_modules` as a path is invalid — ripgrep needs `-g '!node_modules/**'`. */
15
- export declare function isRgExcludeScopeTarget(target: string | undefined): boolean;
16
- export declare function normalizeRgArgv(argv: string[]): {
17
- argv: string[];
18
- changed: boolean;
19
- };
20
- /** Peel `bash -lc '…'` / `sh -c "…"` wrappers so rg normalization sees the inner script. */
21
- export declare function unwrapShellWrapperCommand(command: string): {
22
- command: string;
23
- wrapped: boolean;
24
- };
25
- export declare function normalizeRepoSearchCommand(command: string): {
26
- command: string;
27
- changed: boolean;
28
- };
29
- export declare function isRgLikeCommand(command: string): boolean;
30
- /** Ripgrep exit 1 with no error text is a successful read-only search (no matches), not a shell failure. */
31
- export declare function shouldTreatRgNoMatchAsSuccess(input: {
32
- command: string;
33
- exitCode?: number;
34
- stderr?: string;
35
- interleaved?: string;
36
- }): boolean;
37
- export declare function extractSearchMeta(meta: string): {
38
- pattern?: string;
39
- target?: string;
40
- };
41
- export declare function classifyRepoSearchMeta(meta: string): RepoSearchContext;
42
- export declare function metaToNormalizedRgCommand(meta: string): {
43
- command: string;
44
- changed: boolean;
45
- } | null;
46
- export declare function formatRepoSearchGuidance(ctx: RepoSearchContext): string | null;
47
- /** Extract `search "…" in …` from a tool-failure line or command string. */
48
- export declare function extractSearchMetaFromToolLine(line: string): string | null;
49
- export declare function diagnoseRepoSearchFailure(input: {
50
- meta?: string;
51
- command?: string;
52
- exitCode?: number;
53
- }): string | null;
@@ -1,74 +0,0 @@
1
- import { type KynverUserConfig } from "./config.js";
2
- import type { WorkerCapSource } from "./worker-cap-source.js";
3
- import type { DispatchNextDiskGateShape } from "./callbacks.js";
4
- import { workerProcessMatchesRecord } from "./harness-worker-active.js";
5
- export { workerProcessMatchesRecord };
6
- /** Default RAM budget per worker (~500 MiB, dogfood measured). Internal — not a setup knob. */
7
- export declare const DEFAULT_PER_WORKER_MEM_BYTES: number;
8
- /** Keep headroom for OS / IDE. Internal — not a setup knob. */
9
- export declare const DEFAULT_MEM_RESERVE_BYTES: number;
10
- /** Fraction of total RAM used when auto-sizing worker cap. Internal. */
11
- export declare const DEFAULT_MEM_UTILIZATION = 0.85;
12
- /** Auto cap when the user has not set maxConcurrentWorkers (safety on huge hosts). */
13
- export declare const AUTO_MAX_WORKERS_CEILING = 64;
14
- export interface RunnerResourceGateShape {
15
- ok: boolean;
16
- totalMemBytes: number;
17
- freeMemBytes: number;
18
- memReserveBytes: number;
19
- perWorkerMemBytes: number;
20
- configuredMaxWorkers: number | null;
21
- /** Where the effective worker cap was resolved (workspace override, env, config, or auto). */
22
- workerCapSource: WorkerCapSource;
23
- /** Physical pool for this host (`forge` | `ghost`). */
24
- boxKind: string;
25
- autoCap: number;
26
- capacityWorkers: number;
27
- maxConcurrentWorkers: number;
28
- activeWorkers: number;
29
- slotsAvailable: number;
30
- reason: string | null;
31
- /** Present unless `KYNVER_RESOURCE_GATE_SKIP_DISK=1`. */
32
- diskGate?: DispatchNextDiskGateShape;
33
- }
34
- export interface ObserveResourceGateInput {
35
- runId: string;
36
- config?: KynverUserConfig;
37
- /** Command Center / workspace override — wins over local config when set. */
38
- configuredMaxWorkersOverride?: number | null;
39
- /** Override active worker count (tests). */
40
- activeWorkers?: number;
41
- totalMemBytes?: number;
42
- freeMemBytes?: number;
43
- diskPath?: string;
44
- skipDiskGate?: boolean;
45
- }
46
- /** How many workers this host could run from RAM alone (before a user cap). */
47
- export declare function computeAutoMaxWorkers(totalMemBytes: number, opts?: {
48
- perWorkerMemBytes?: number;
49
- memReserveBytes?: number;
50
- memUtilization?: number;
51
- }): number;
52
- /** Count active workers in ONE run (kept for callers/tests scoped to a run). */
53
- export declare function countActiveWorkers(runId: string): number;
54
- /**
55
- * Count active workers across EVERY run on disk. The harness creates a new run
56
- * per task, so a per-run count let concurrent runs each believe the machine was
57
- * idle — the configured cap was never a real global ceiling (the "spawns 4 or
58
- * infinity, never N" bug). This machine-wide count is what the gate must use.
59
- */
60
- export declare function countActiveWorkersGlobal(): number;
61
- /**
62
- * Identities of every active worker machine-wide (durable-harness D2a: the
63
- * admission-shadow reconcile refreshes/releases slot reservations against
64
- * exactly the records the gate counts).
65
- */
66
- export declare function listActiveWorkerIdentitiesGlobal(): Array<{
67
- runId: string;
68
- workerName: string;
69
- }>;
70
- /**
71
- * Compute how many workers this host can run and how many dispatch slots remain.
72
- * Uses total RAM for steady-state capacity and free RAM as a hard safety gate.
73
- */
74
- export declare function observeRunnerResourceGate(input: ObserveResourceGateInput): RunnerResourceGateShape;
@@ -1,12 +0,0 @@
1
- /** Local dispatch retry/cooldown limits. */
2
- export interface HarnessRetryLimits {
3
- /** Advisory max task attempts surfaced to operator/dispatch (default 4, matches AgentOS). */
4
- maxTaskAttempts: number;
5
- /** Minimum ms between dispatch starts for the same run (default 5s). */
6
- dispatchCooldownMs: number;
7
- }
8
- /**
9
- * Precedence: env override → server-delivered instruction bundle threshold →
10
- * embedded default (M6 — policy values iterate via bundle push, no republish).
11
- */
12
- export declare function readHarnessRetryLimits(): HarnessRetryLimits;
@@ -1,17 +0,0 @@
1
- export interface ReviewHeadReconcileResponse {
2
- ok?: boolean;
3
- dispatchable?: boolean;
4
- outcome?: string;
5
- reason?: string | null;
6
- reviewTaskId?: string;
7
- activeReviewTaskId?: string | null;
8
- reviewTargetSha?: string | null;
9
- merged?: boolean;
10
- }
11
- export declare function taskLooksLikeReviewDispatch(task: Record<string, unknown>): boolean;
12
- export declare function reconcileReviewHeadBeforeWorkerStart(input: {
13
- agentOsId: string;
14
- taskId: string;
15
- baseUrl: string;
16
- secret: string;
17
- }): Promise<ReviewHeadReconcileResponse | null>;
@@ -1,38 +0,0 @@
1
- export interface RunListWorkerEvidence {
2
- worker: string;
3
- workerStatus: string;
4
- attention: string;
5
- attentionReason?: string;
6
- missingHeartbeat: boolean;
7
- missingFinalResult: boolean;
8
- landingBlocked: boolean;
9
- completionBlocked: boolean;
10
- }
11
- export type RunListFinalizeBlockedReason = "landing_blocked" | "completion_blocked" | "active_workers" | null;
12
- export interface RunListRow {
13
- id: string;
14
- name: string;
15
- /** Persisted `run.json` status (updated by `finalizeStaleRuns` after reconcile). */
16
- status: string;
17
- /** Derived from worker attention/status — aligns with operator board semantics. */
18
- effectiveStatus: string;
19
- repo: string;
20
- createdAt: string;
21
- /** Workers still alive without a terminal result. */
22
- openWorkerCount: number;
23
- /** Highest-severity attention across workers (matches board rollup semantics). */
24
- attention: "ok" | "done" | "stale" | "needs_attention" | "blocked";
25
- attentionReason?: string;
26
- /** Why `finalizeStaleRuns` may keep `status` active while workers are dead. */
27
- finalizeBlockedReason: RunListFinalizeBlockedReason;
28
- evidence: {
29
- missingHeartbeatWorkers: string[];
30
- missingFinalResultWorkers: string[];
31
- landingBlockedWorkers: string[];
32
- completionBlockedWorkers: string[];
33
- workers: RunListWorkerEvidence[];
34
- };
35
- }
36
- export declare function buildRunListRows(): RunListRow[];
37
- /** `kynver run list` — reconciles stale workers first, then prints run rows (JSON array). */
38
- export declare function listRunsCli(): void;
@@ -1,38 +0,0 @@
1
- /** Recent heartbeat/stdout activity — treat run metadata as live. */
2
- export declare const RUN_METADATA_ACTIVE_SIGNAL_MS: number;
3
- export declare const TERMINAL_WORKER_ARCHIVE_AGE_MS: number;
4
- export interface RunMetadataRetentionOutcome {
5
- runId: string;
6
- action: "repaired_run_json" | "skipped";
7
- reason: string;
8
- }
9
- export interface RunMetadataRetentionResult {
10
- runs: RunMetadataRetentionOutcome[];
11
- }
12
- export interface TerminalWorkerArchiveOutcome {
13
- runId: string;
14
- worker: string;
15
- action: "archived" | "skipped";
16
- reason: string;
17
- archivePath?: string;
18
- }
19
- export interface TerminalWorkerArchiveResult {
20
- workers: TerminalWorkerArchiveOutcome[];
21
- }
22
- /** True when `targetPath` lives under `{harnessRoot}/runs/` (run + worker metadata). */
23
- export declare function isHarnessRunMetadataPath(targetPath: string, harnessRoot: string): boolean;
24
- /** Worker dir still has live process or recent harness artifacts — retain metadata. */
25
- export declare function workerDirHasActiveRetentionSignals(workerDir: string, now?: number, windowMs?: number): boolean;
26
- /** Any worker under a run dir still looks active — block metadata deletion/relocation. */
27
- export declare function runDirHasActiveRetentionSignals(runDir: string, now?: number, windowMs?: number): boolean;
28
- /**
29
- * Rebuild missing `run.json` files from on-disk worker dirs so reconcile/status
30
- * cannot go blind while worker processes or fresh artifacts remain.
31
- */
32
- export declare function repairMissingRunMetadata(harnessRootInput?: string): RunMetadataRetentionResult;
33
- export declare function archiveTerminalWorkerMetadata(harnessRootInput?: string, options?: {
34
- archiveAgeMs?: number;
35
- now?: number;
36
- }): TerminalWorkerArchiveResult;
37
- /** `${harnessRoot}\0${runId}` keys for runs with filesystem active-retention signals. */
38
- export declare function collectFilesystemLiveRunKeys(harnessRoot: string, now?: number): Set<string>;
@@ -1,4 +0,0 @@
1
- import { type RunListRow } from "./run-list.js";
2
- /** Reconcile stale workers/runs first, then pick a non-completed run by name. */
3
- export declare function resolveHarnessRunByName(runName: string): RunListRow | null;
4
- export declare function resolveHarnessRunCli(args: Record<string, string | boolean>): void;
@@ -1,38 +0,0 @@
1
- import type { HarnessWorkerRecord } from "./status.js";
2
- export interface HarnessRunRecord {
3
- id: string;
4
- name: string;
5
- repo: string;
6
- base: string;
7
- baseCommit: string;
8
- status: string;
9
- createdAt: string;
10
- workers: Record<string, {
11
- workerDir: string;
12
- statusPath: string;
13
- }>;
14
- /** Physical pool that owns this run (`ghost` | `forge`). */
15
- boxKind?: string;
16
- /** Stable runner id that claimed this run namespace. */
17
- runnerId?: string;
18
- /** Harness root path isolating this run from other pools. */
19
- harnessRoot?: string;
20
- }
21
- export declare function getPaths(): {
22
- harnessRoot: string;
23
- runsDir: string;
24
- worktreesDir: string;
25
- };
26
- export declare function loadRun(id: string): HarnessRunRecord;
27
- /**
28
- * Load every run record on disk. Used for global, cross-run accounting (the
29
- * resource gate must see workers from ALL runs, and stale-run finalization
30
- * iterates the whole set). Unreadable/partial run dirs are skipped.
31
- */
32
- export declare function listRunRecords(): HarnessRunRecord[];
33
- export declare function listRunRecordsForHarnessRoot(harnessRoot: string): HarnessRunRecord[];
34
- export declare function loadWorker(runId: string, name: string): HarnessWorkerRecord;
35
- export declare function saveRun(run: HarnessRunRecord): void;
36
- export declare function saveWorker(runId: string, worker: HarnessWorkerRecord): void;
37
- export declare function runDirectory(id: string): string;
38
- export declare function runDirectoryAt(harnessRoot: string, id: string): string;
@@ -1,10 +0,0 @@
1
- import { type HarnessRunRecord } from "./run-store.js";
2
- /**
3
- * Union of `run.json` worker keys and on-disk worker dirs for one run.
4
- *
5
- * Watchdog replenishment can spawn workers whose `worker.json` exists before
6
- * `run.json` is updated (or when concurrent spawns lose a last-write-wins race).
7
- * Finalization, capacity gates, and operator rollups must not treat those
8
- * live workers as absent.
9
- */
10
- export declare function listRunWorkerNames(run: HarnessRunRecord): string[];
@@ -1,6 +0,0 @@
1
- export * from "./runner-boundary.types.js";
2
- export * from "./runner-boundary.harness-root.js";
3
- export * from "./runner-boundary.resolve.js";
4
- export * from "./runner-boundary.run-guard.js";
5
- export * from "./runner-boundary.dispatch-guard.js";
6
- export * from "./runner-boundary.forge-legacy-migration.js";
@@ -1,4 +0,0 @@
1
- import type { RunnerBoundaryIdentity, RunnerBoundaryValidation } from "./runner-boundary.types.js";
2
- export declare function validateInteractiveDispatchBoundary(env?: NodeJS.ProcessEnv): RunnerBoundaryValidation;
3
- export declare function formatRunnerBoundaryFailure(validation: RunnerBoundaryValidation): string;
4
- export declare function assertInteractiveDispatchBoundaryOrThrow(env?: NodeJS.ProcessEnv): RunnerBoundaryIdentity;
@@ -1,23 +0,0 @@
1
- export type ForgeLegacyMigrationVerdict = {
2
- action: "none";
3
- } | {
4
- action: "migrate";
5
- } | {
6
- action: "blocked";
7
- blocker: string;
8
- };
9
- /** True when the forge box-scoped root has no harness layout yet. */
10
- export declare function isForgeScopedHarnessRootEmpty(forgeRoot: string): boolean;
11
- /** True when the legacy shared harness root still has run records on disk. */
12
- export declare function legacySharedHarnessHasRuns(sharedRoot: string): boolean;
13
- /**
14
- * Ghost is co-hosted when a ghost pool namespace exists or shared runs are
15
- * attributed to ghost — moving forge legacy content would orphan ghost work.
16
- */
17
- export declare function isGhostCoHostedAtHarnessRoot(sharedRoot: string): boolean;
18
- export declare function assessForgeLegacyHarnessMigration(input: {
19
- sharedRoot: string;
20
- forgeRoot: string;
21
- }): ForgeLegacyMigrationVerdict;
22
- /** Move legacy shared runs/worktrees into the empty forge box-scoped root. */
23
- export declare function executeForgeLegacyHarnessMigration(sharedRoot: string, forgeRoot: string): void;
@@ -1,17 +0,0 @@
1
- import type { WorkerPoolBoxKind } from "../box-identity.js";
2
- import type { HarnessRootResolution } from "./runner-boundary.types.js";
3
- /** Strip mistaken trailing `runs` / `worktrees` segments from a harness root path. */
4
- export declare function normalizeHarnessRootPath(root: string): string;
5
- /** Per-pool namespace under ~/.kynver/harness/{ghost|forge}. */
6
- export declare function boxScopedHarnessRoot(boxKind: WorkerPoolBoxKind, env?: NodeJS.ProcessEnv): string;
7
- /**
8
- * Resolve the on-disk harness root for a runner boundary.
9
- * Order: env → config.harnessRoot → box-scoped dir → legacy shared (ghost only).
10
- */
11
- export declare function resolveHarnessRootForRunnerBoundary(input: {
12
- boxKind: WorkerPoolBoxKind;
13
- configuredHarnessRoot?: string | null;
14
- env?: NodeJS.ProcessEnv;
15
- /** When false, assess migration but do not move on-disk layout (tests). */
16
- allowForgeLegacyMigration?: boolean;
17
- }): HarnessRootResolution;
@@ -1,4 +0,0 @@
1
- import type { KynverUserConfig } from "../config.js";
2
- import type { RunnerBoundaryResolveOptions, RunnerBoundaryValidation } from "./runner-boundary.types.js";
3
- export declare function deriveDefaultRunnerId(boxKind: string, hostname: string): string;
4
- export declare function resolveRunnerBoundary(config?: KynverUserConfig, env?: NodeJS.ProcessEnv, options?: RunnerBoundaryResolveOptions): RunnerBoundaryValidation;
@@ -1,12 +0,0 @@
1
- import type { HarnessRunRecord } from "../run-store.js";
2
- import type { RunnerBoundaryIdentity } from "./runner-boundary.types.js";
3
- export interface RunBoundaryGuardResult {
4
- ok: boolean;
5
- reason?: string;
6
- stamped?: boolean;
7
- }
8
- /**
9
- * Ensure a harness run belongs to the active runner boundary.
10
- * Legacy runs without stamps are migrated in-place on first dispatch.
11
- */
12
- export declare function assertRunMatchesRunnerBoundary(run: HarnessRunRecord, boundary: RunnerBoundaryIdentity): RunBoundaryGuardResult;
@@ -1,31 +0,0 @@
1
- import type { BoxKindSource, WorkerPoolBoxKind } from "../box-identity.js";
2
- import type { WorkerCapSource } from "../worker-cap-source.js";
3
- export type HarnessRootSource = "env" | "config" | "box_scoped" | "legacy_shared" | "legacy_migrated";
4
- export interface HarnessRootResolution {
5
- harnessRoot: string;
6
- source: HarnessRootSource;
7
- /** Set when Forge legacy migration is required but blocked pending operator sign-off. */
8
- migrationBlocker?: string;
9
- }
10
- export interface RunnerBoundaryIdentity {
11
- boxKind: WorkerPoolBoxKind;
12
- boxKindSource: BoxKindSource;
13
- runnerId: string;
14
- runnerIdSource: "config" | "env" | "derived";
15
- maxConcurrentWorkers: number;
16
- workerCapSource: WorkerCapSource;
17
- harnessRoot: string;
18
- harnessRootSource: HarnessRootSource;
19
- }
20
- export interface RunnerBoundaryValidation {
21
- ok: boolean;
22
- identity: RunnerBoundaryIdentity | null;
23
- errors: string[];
24
- warnings: string[];
25
- }
26
- export interface RunnerBoundaryResolveOptions {
27
- /** Interactive dispatch always requires explicit box kind (config or env). */
28
- requireExplicitBoxKind?: boolean;
29
- /** Treat slug-only env as a hard error (daemon strict mode). */
30
- strict?: boolean;
31
- }
@@ -1,18 +0,0 @@
1
- import { type KynverUserConfig } from "./config.js";
2
- export interface RunnerConfigBackfillResult {
3
- updated: boolean;
4
- fields: string[];
5
- skippedAmbiguous: string[];
6
- }
7
- /**
8
- * Safe migration/backfill of ~/.kynver/config.json from env and scoped credentials.
9
- * Never adopts ambiguous workspace identity or writes raw tokens.
10
- */
11
- export declare function buildRunnerConfigBackfillUpdates(config: KynverUserConfig, env?: NodeJS.ProcessEnv): {
12
- updates: Partial<KynverUserConfig>;
13
- fields: string[];
14
- skippedAmbiguous: string[];
15
- };
16
- export declare function backfillRunnerConfigFromLegacySources(opts?: {
17
- dryRun?: boolean;
18
- }): RunnerConfigBackfillResult;
@@ -1,21 +0,0 @@
1
- export interface RunnerPresencePayload {
2
- runnerId: string;
3
- hostname: string | null;
4
- profile: string | null;
5
- harnessRepo: string | null;
6
- runId?: string | null;
7
- /**
8
- * Active server-delivered instruction bundle version (M6); additive. Reports
9
- * the embedded fallback version (`embedded-1`) when no server bundle has
10
- * loaded — the System console instruction-freshness panel reads this from
11
- * the runner registry to flag daemons running stale content.
12
- */
13
- instructionBundleVersion?: string | null;
14
- }
15
- /** True when this host belongs to the Ghost orchestrator pool (not Hermes Forge). */
16
- export declare function isGhostPoolHost(env?: NodeJS.ProcessEnv): boolean;
17
- /** Stable runner identity for multi-box AgentOS coordination. */
18
- export declare function resolveRunnerPresencePayload(input?: {
19
- runId?: string | null;
20
- env?: NodeJS.ProcessEnv;
21
- }): RunnerPresencePayload;
@@ -1,9 +0,0 @@
1
- export interface RuntimeIdentityV1 {
2
- contractVersion: 1;
3
- nodeVersion: string;
4
- runtimePackageVersion: string;
5
- buildIdentity: string | null;
6
- platform: NodeJS.Platform;
7
- arch: string;
8
- }
9
- export declare function buildRuntimeIdentity(): RuntimeIdentityV1;
@@ -1,16 +0,0 @@
1
- /**
2
- * Dependency-free runtime-memory-envelope v2 schema + flag helpers for harness hosts.
3
- */
4
- export declare const AGENT_RUNTIME_ENVELOPE_SCHEMA_VERSION: "runtime-memory-envelope.v1";
5
- export declare const AGENT_RUNTIME_ENVELOPE_SCHEMA_VERSION_V2: "runtime-memory-envelope.v2";
6
- export declare const AGENT_RUNTIME_ENVELOPE_SCHEMA_VERSIONS: readonly ["runtime-memory-envelope.v1", "runtime-memory-envelope.v2"];
7
- export type AgentRuntimeEnvelopeSchemaVersion = (typeof AGENT_RUNTIME_ENVELOPE_SCHEMA_VERSIONS)[number];
8
- export declare function runtimeEnvelopeV2Enabled(): boolean;
9
- export type RuntimeEnvelopeFlagSource = "env_explicit_on" | "env_explicit_off" | "default_off";
10
- export interface RuntimeEnvelopeWriterConfig {
11
- schemaVersion: AgentRuntimeEnvelopeSchemaVersion;
12
- v2WriterEnabled: boolean;
13
- effectiveSource: RuntimeEnvelopeFlagSource;
14
- }
15
- export declare function resolveRuntimeEnvelopeWriterConfig(): RuntimeEnvelopeWriterConfig;
16
- export declare function isAgentRuntimeEnvelopeSchemaVersion(value: string): value is AgentRuntimeEnvelopeSchemaVersion;
@@ -1,2 +0,0 @@
1
- export declare function runSchedulerCutoverCheckCli(json?: boolean): void;
2
- export declare function runSchedulerAttestCutoverCli(json?: boolean): void;
@@ -1,25 +0,0 @@
1
- import type { KynverUserConfig } from "./config.js";
2
- export type DeploymentSchedulerProvider = "qstash" | "kynver-cron" | "openclaw-cron";
3
- export declare const SCHEDULER_CUTOVER_RUNNER_ENV_KEYS: readonly ["KYNVER_SCHEDULER_PROVIDER", "KYNVER_CRON_STORE_PATH", "KYNVER_CRON_SECRET", "KYNVER_CRON_FIRE_BASE_URL", "OPENCLAW_CRON_STORE_PATH", "OPENCLAW_CRON_SECRET", "OPENCLAW_CRON_FIRE_BASE_URL"];
4
- export interface SchedulerCutoverEnvSnapshot {
5
- kynverSchedulerProvider: string | null;
6
- kynverCronStorePath: string | null;
7
- kynverCronSecret: boolean;
8
- kynverCronFireBaseUrl: string | null;
9
- openclawCronStorePath: string | null;
10
- openclawCronSecret: boolean;
11
- openclawCronFireBaseUrl: string | null;
12
- }
13
- export interface SchedulerCutoverReport {
14
- ok: boolean;
15
- blockers: string[];
16
- runnerEnv: SchedulerCutoverEnvSnapshot;
17
- deploymentSchedulerProvider: DeploymentSchedulerProvider | null;
18
- deploymentSteps: string[];
19
- runnerSteps: string[];
20
- }
21
- export declare const DEPLOYMENT_SCHEDULER_CUTOVER_STEPS: readonly ["Railway/hosted: set KYNVER_SCHEDULER_PROVIDER=qstash", "Railway/hosted: ensure QSTASH_TOKEN (and QStash signing keys) are configured", "Railway/hosted: unset OPENCLAW_CRON_STORE_PATH if present"];
22
- export declare const RUNNER_SCHEDULER_CUTOVER_STEPS: readonly ["User runner: unset KYNVER_SCHEDULER_PROVIDER (scheduling is deployment-owned)", "User runner: unset OPENCLAW_CRON_STORE_PATH, OPENCLAW_CRON_SECRET, OPENCLAW_CRON_FIRE_BASE_URL", "User runner: after deployment cutover, run `kynver scheduler attest-cutover` (or set deploymentSchedulerProvider to \"qstash\" in ~/.kynver/config.json)", "Verify: kynver doctor runtime-takeover — hotspot_openclaw_scheduler should pass"];
23
- export declare function readSchedulerCutoverEnv(env?: NodeJS.ProcessEnv): SchedulerCutoverEnvSnapshot;
24
- export declare function assessSchedulerCutover(config: Pick<KynverUserConfig, "deploymentSchedulerProvider">, env?: SchedulerCutoverEnvSnapshot): SchedulerCutoverReport;
25
- export declare function applySchedulerCutoverAttestation(config: KynverUserConfig): KynverUserConfig;
@@ -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";
@@ -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,2 +0,0 @@
1
- export { extractWorkerStartRecordFromText, formatHarnessToolReadable, formatWorkerStartNotice, joinHarnessNotice, } from "../harness-notice/index.js";
2
- export type { HarnessReadableNotice, HarnessToolFormatContext } from "../harness-notice/index.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";
@@ -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";
@@ -1,3 +0,0 @@
1
- export { computeWorkerStatus } from "../status.js";
2
- export { classifyWorkerHealth } from "../monitor/monitor.classify.js";
3
- export { assessAutoCompleteEligibility } from "../monitor/monitor.terminal.js";
@@ -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 } 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";
@@ -1,2 +0,0 @@
1
- export { evidenceFromGitHubVercelStatus, type VercelEvidenceResult, } from "../vercel/vercel-evidence.js";
2
- export type { GitHubCommitStatusRow } from "../vercel/vercel-github-status.js";
@@ -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, resolveConfiguredWorkerProvider, isClaudeFamilyProvider, taskAllowsClaudeWorker, 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,2 +0,0 @@
1
- export { observeWslCrashDumps, readKernelCorePattern, } from "../wsl-crash-dumps.js";
2
- export type { ObserveWslCrashDumpsOptions, WslCrashDumpObservation, } from "../wsl-crash-dumps.js";