@kynver-app/runtime 0.2.24 → 0.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (416) hide show
  1. package/dist/chat/command-auth-proof.js +1 -1
  2. package/dist/cli.js +69 -68
  3. package/dist/index.js +89 -88
  4. package/dist/instruction-bundle/contract.js +2 -2
  5. package/dist/local-run-store/index.js +6 -6
  6. package/dist/server/adapter-contract.js +1 -1
  7. package/dist/server/cleanup.js +9 -9
  8. package/dist/server/db-credentials.js +2 -2
  9. package/dist/server/default-repo.js +1 -1
  10. package/dist/server/heavy-verification.js +1 -1
  11. package/dist/server/memory-cost-enforce.js +2 -2
  12. package/dist/server/memory-cost.js +2 -2
  13. package/dist/server/model-routing.js +3 -3
  14. package/dist/server/monitor.js +5 -5
  15. package/dist/server/orchestration.js +1 -1
  16. package/dist/server/worker-policy.js +2 -2
  17. package/package.json +4 -2
  18. package/dist/active-harness-workers.d.ts +0 -11
  19. package/dist/auto-complete.d.ts +0 -60
  20. package/dist/bootstrap.d.ts +0 -49
  21. package/dist/bounded-build/admission.d.ts +0 -30
  22. package/dist/bounded-build/constants.d.ts +0 -10
  23. package/dist/bounded-build/exec.d.ts +0 -35
  24. package/dist/bounded-build/index.d.ts +0 -6
  25. package/dist/bounded-build/meminfo.d.ts +0 -5
  26. package/dist/bounded-build/node-options.d.ts +0 -9
  27. package/dist/bounded-build/systemd-wrap.d.ts +0 -17
  28. package/dist/box-identity.d.ts +0 -19
  29. package/dist/box-resource-snapshot-shared.d.ts +0 -13
  30. package/dist/box-resource-snapshot.d.ts +0 -45
  31. package/dist/box-worker-cap.d.ts +0 -9
  32. package/dist/byoc/context-hydration.d.ts +0 -54
  33. package/dist/byoc/execution-proof.d.ts +0 -46
  34. package/dist/byoc/index.d.ts +0 -5
  35. package/dist/byoc/job-envelope.d.ts +0 -39
  36. package/dist/byoc/m6-golden-path.d.ts +0 -86
  37. package/dist/byoc/mcp-tool-proof.d.ts +0 -42
  38. package/dist/callback-headers.d.ts +0 -2
  39. package/dist/callbacks.d.ts +0 -74
  40. package/dist/chat/anthropic-credentials.d.ts +0 -11
  41. package/dist/chat/anthropic-stream.d.ts +0 -43
  42. package/dist/chat/chat-claim-loop.d.ts +0 -41
  43. package/dist/chat/chat-primary-cli.d.ts +0 -2
  44. package/dist/chat/command-allowlist.d.ts +0 -8
  45. package/dist/chat/command-auth-proof.d.ts +0 -67
  46. package/dist/chat/command-executor.d.ts +0 -18
  47. package/dist/chat/delta-batcher.d.ts +0 -13
  48. package/dist/cleanup-active-worktrees.d.ts +0 -14
  49. package/dist/cleanup-build-cache-paths.d.ts +0 -5
  50. package/dist/cleanup-cli.d.ts +0 -1
  51. package/dist/cleanup-completion-blocker.d.ts +0 -10
  52. package/dist/cleanup-dependency-scan.d.ts +0 -13
  53. package/dist/cleanup-dir-size.d.ts +0 -5
  54. package/dist/cleanup-disk-pressure.d.ts +0 -15
  55. package/dist/cleanup-duplicate-worktrees.d.ts +0 -8
  56. package/dist/cleanup-evidence.d.ts +0 -10
  57. package/dist/cleanup-execute.d.ts +0 -7
  58. package/dist/cleanup-git-probe.d.ts +0 -5
  59. package/dist/cleanup-git-rev-cache.d.ts +0 -5
  60. package/dist/cleanup-git-status-cache.d.ts +0 -5
  61. package/dist/cleanup-guards-helpers.d.ts +0 -2
  62. package/dist/cleanup-guards.d.ts +0 -53
  63. package/dist/cleanup-harness-path-validate.d.ts +0 -5
  64. package/dist/cleanup-harness-roots.d.ts +0 -6
  65. package/dist/cleanup-index-status.d.ts +0 -16
  66. package/dist/cleanup-orphan-safety.d.ts +0 -17
  67. package/dist/cleanup-path-ownership.d.ts +0 -9
  68. package/dist/cleanup-privileged-remove.d.ts +0 -13
  69. package/dist/cleanup-progress.d.ts +0 -2
  70. package/dist/cleanup-remove-path.d.ts +0 -17
  71. package/dist/cleanup-retention-config.d.ts +0 -26
  72. package/dist/cleanup-run-directory.d.ts +0 -20
  73. package/dist/cleanup-run-liveness.d.ts +0 -21
  74. package/dist/cleanup-run-terminal-cache.d.ts +0 -6
  75. package/dist/cleanup-salvage-evidence.d.ts +0 -33
  76. package/dist/cleanup-scan.d.ts +0 -15
  77. package/dist/cleanup-summary.d.ts +0 -29
  78. package/dist/cleanup-types.d.ts +0 -154
  79. package/dist/cleanup-worker-harness-live.d.ts +0 -9
  80. package/dist/cleanup-worktree-index.d.ts +0 -18
  81. package/dist/cleanup-worktree-salvage.d.ts +0 -7
  82. package/dist/cleanup.d.ts +0 -5
  83. package/dist/cli-output/worker-start-stdout.d.ts +0 -11
  84. package/dist/cli.d.ts +0 -14
  85. package/dist/command-center-contract-cli.d.ts +0 -1
  86. package/dist/completion-ack.d.ts +0 -18
  87. package/dist/completion-replay.d.ts +0 -10
  88. package/dist/completion-response.d.ts +0 -15
  89. package/dist/config.d.ts +0 -122
  90. package/dist/context-budget-receipt.d.ts +0 -96
  91. package/dist/context-preview/chat-memory-preview.d.ts +0 -33
  92. package/dist/cron/cron-cli-bin.d.ts +0 -7
  93. package/dist/cron/cron-env-file.d.ts +0 -22
  94. package/dist/cron/cron-env.d.ts +0 -21
  95. package/dist/cron/cron-fire.d.ts +0 -8
  96. package/dist/cron/cron-id.d.ts +0 -3
  97. package/dist/cron/cron-install-api.d.ts +0 -27
  98. package/dist/cron/cron-install-cli.d.ts +0 -2
  99. package/dist/cron/cron-install-plan.d.ts +0 -34
  100. package/dist/cron/cron-install-secrets.d.ts +0 -6
  101. package/dist/cron/cron-install-systemd.d.ts +0 -18
  102. package/dist/cron/cron-install-verify.d.ts +0 -15
  103. package/dist/cron/cron-install.d.ts +0 -51
  104. package/dist/cron/cron-lock.d.ts +0 -9
  105. package/dist/cron/cron-match.d.ts +0 -8
  106. package/dist/cron/cron-readiness.d.ts +0 -35
  107. package/dist/cron/cron-status.d.ts +0 -10
  108. package/dist/cron/cron-store.d.ts +0 -8
  109. package/dist/cron/cron-tick-cli.d.ts +0 -2
  110. package/dist/cron/cron-tick-state.d.ts +0 -5
  111. package/dist/cron/cron-tick.d.ts +0 -19
  112. package/dist/cron/cron-types.d.ts +0 -53
  113. package/dist/cron/hermes-provider-notice.d.ts +0 -1
  114. package/dist/daemon-box-identity.d.ts +0 -16
  115. package/dist/daemon-heartbeat.d.ts +0 -30
  116. package/dist/daemon-keeper.d.ts +0 -53
  117. package/dist/daemon-platform-guard.d.ts +0 -2
  118. package/dist/daemon-supervision/host.d.ts +0 -4
  119. package/dist/daemon-supervision/index.d.ts +0 -6
  120. package/dist/daemon-supervision/policy.d.ts +0 -16
  121. package/dist/daemon-supervision/setup.d.ts +0 -23
  122. package/dist/daemon-supervision/start.d.ts +0 -26
  123. package/dist/daemon-supervision/supervision-health.d.ts +0 -20
  124. package/dist/daemon-supervision/verify.d.ts +0 -13
  125. package/dist/daemon.d.ts +0 -5
  126. package/dist/db-credential-env-paths.d.ts +0 -13
  127. package/dist/db-credential-resolver.d.ts +0 -38
  128. package/dist/db-url-hint.d.ts +0 -4
  129. package/dist/default-repo-cli.d.ts +0 -20
  130. package/dist/default-repo-discovery.d.ts +0 -25
  131. package/dist/default-repo.d.ts +0 -32
  132. package/dist/device-login.d.ts +0 -8
  133. package/dist/discard-disposable.d.ts +0 -6
  134. package/dist/disk-gate.d.ts +0 -25
  135. package/dist/dispatch-callback-timeout.d.ts +0 -1
  136. package/dist/dispatch-claim-release.d.ts +0 -23
  137. package/dist/dispatch-lane-normalization.d.ts +0 -14
  138. package/dist/dispatch-model-guard.d.ts +0 -26
  139. package/dist/dispatch-progress.d.ts +0 -3
  140. package/dist/dispatch-resource-gate.d.ts +0 -20
  141. package/dist/dispatch-start-abort.d.ts +0 -3
  142. package/dist/dispatch-start-readback.d.ts +0 -27
  143. package/dist/dispatch.d.ts +0 -24
  144. package/dist/disposable-artifacts.d.ts +0 -2
  145. package/dist/doctor/context-envelope-cli.d.ts +0 -1
  146. package/dist/doctor/context-envelope.d.ts +0 -13
  147. package/dist/doctor/context-envelope.probes.d.ts +0 -25
  148. package/dist/doctor/context-envelope.types.d.ts +0 -42
  149. package/dist/doctor/doctor.types.d.ts +0 -50
  150. package/dist/doctor/github-readiness.d.ts +0 -16
  151. package/dist/doctor/index.d.ts +0 -7
  152. package/dist/doctor/local-store-cli.d.ts +0 -11
  153. package/dist/doctor/local-store.d.ts +0 -35
  154. package/dist/doctor/node-runtime-cli.d.ts +0 -6
  155. package/dist/doctor/node-runtime.d.ts +0 -19
  156. package/dist/doctor/runner-install-cli.d.ts +0 -1
  157. package/dist/doctor/runner-install.d.ts +0 -86
  158. package/dist/doctor/runtime-takeover-cli.d.ts +0 -1
  159. package/dist/doctor/runtime-takeover-daemon-supervision.d.ts +0 -3
  160. package/dist/doctor/runtime-takeover-deploy-evidence.d.ts +0 -13
  161. package/dist/doctor/runtime-takeover-scheduler.d.ts +0 -29
  162. package/dist/doctor/runtime-takeover.d.ts +0 -3
  163. package/dist/doctor/runtime-takeover.probes.d.ts +0 -45
  164. package/dist/executor-ref-routing.d.ts +0 -14
  165. package/dist/exit-classify.d.ts +0 -12
  166. package/dist/exited-salvage.d.ts +0 -22
  167. package/dist/exited-worker-handoff-capture.d.ts +0 -19
  168. package/dist/factory-status/collect.d.ts +0 -12
  169. package/dist/factory-status/lightweight.d.ts +0 -5
  170. package/dist/factory-status/render.d.ts +0 -5
  171. package/dist/factory-status/types.d.ts +0 -46
  172. package/dist/factory-status-cli.d.ts +0 -1
  173. package/dist/factory-steer-delivery.d.ts +0 -7
  174. package/dist/finalize.d.ts +0 -25
  175. package/dist/fortress-engagement-gate.d.ts +0 -5
  176. package/dist/git.d.ts +0 -37
  177. package/dist/github-repo.d.ts +0 -5
  178. package/dist/harness-expert-review.d.ts +0 -12
  179. package/dist/harness-lease-owner.d.ts +0 -13
  180. package/dist/harness-notice/harness-notice.auto-complete.d.ts +0 -3
  181. package/dist/harness-notice/harness-notice.monitor-tick.d.ts +0 -6
  182. package/dist/harness-notice/harness-notice.parse.d.ts +0 -3
  183. package/dist/harness-notice/harness-notice.tool-response.d.ts +0 -3
  184. package/dist/harness-notice/harness-notice.types.d.ts +0 -17
  185. package/dist/harness-notice/harness-notice.worker-complete.d.ts +0 -3
  186. package/dist/harness-notice/harness-notice.worker-start.d.ts +0 -7
  187. package/dist/harness-notice/harness-notice.worker-status.d.ts +0 -2
  188. package/dist/harness-notice/index.d.ts +0 -8
  189. package/dist/harness-repair-target.d.ts +0 -23
  190. package/dist/harness-storage-snapshot.d.ts +0 -26
  191. package/dist/harness-verify-cli.d.ts +0 -1
  192. package/dist/harness-verify.d.ts +0 -30
  193. package/dist/harness-worker-active.d.ts +0 -12
  194. package/dist/harness-worktree-build-guard.d.ts +0 -12
  195. package/dist/heartbeat-final-result.d.ts +0 -5
  196. package/dist/heartbeat.d.ts +0 -27
  197. package/dist/heavy-verification/command-classify.d.ts +0 -9
  198. package/dist/heavy-verification/gate.d.ts +0 -10
  199. package/dist/heavy-verification/index.d.ts +0 -5
  200. package/dist/heavy-verification/paths.d.ts +0 -3
  201. package/dist/heavy-verification/slot.d.ts +0 -49
  202. package/dist/heavy-verification/worker-command-gate.d.ts +0 -23
  203. package/dist/index.d.ts +0 -88
  204. package/dist/installed-package-versions.d.ts +0 -8
  205. package/dist/instruction-bundle/cache.d.ts +0 -6
  206. package/dist/instruction-bundle/client.d.ts +0 -25
  207. package/dist/instruction-bundle/contract.d.ts +0 -4
  208. package/dist/instruction-bundle/embedded-bundle.d.ts +0 -3
  209. package/dist/instruction-bundle/index.d.ts +0 -7
  210. package/dist/instruction-bundle/keys.d.ts +0 -14
  211. package/dist/instruction-bundle/state.d.ts +0 -24
  212. package/dist/instruction-bundle/types.d.ts +0 -42
  213. package/dist/instruction-bundle/verify.d.ts +0 -15
  214. package/dist/landing/cli-auth.d.ts +0 -11
  215. package/dist/landing/land-pr-check-classify.d.ts +0 -17
  216. package/dist/landing/land-pr-completion-post.d.ts +0 -12
  217. package/dist/landing/land-pr.d.ts +0 -28
  218. package/dist/landing-contract-gate.d.ts +0 -27
  219. package/dist/landing-contract-pr-classify.d.ts +0 -4
  220. package/dist/landing-gate.d.ts +0 -24
  221. package/dist/lane/landing-maintainer-local.d.ts +0 -15
  222. package/dist/lane/landing-maintainer-tick.d.ts +0 -16
  223. package/dist/lane/lane-spec.d.ts +0 -8
  224. package/dist/lane/lane-tick-cli.d.ts +0 -1
  225. package/dist/lease-renewal.d.ts +0 -15
  226. package/dist/local-pr-attention-reconcile.d.ts +0 -25
  227. package/dist/local-run-store/admission-enforce.d.ts +0 -38
  228. package/dist/local-run-store/admission-shadow.d.ts +0 -56
  229. package/dist/local-run-store/dispatch-claim-recovery-startup.d.ts +0 -11
  230. package/dist/local-run-store/dispatch-claim-recovery.d.ts +0 -54
  231. package/dist/local-run-store/dispatch-receipts.d.ts +0 -90
  232. package/dist/local-run-store/index.d.ts +0 -15
  233. package/dist/local-run-store/local-run-store.d.ts +0 -106
  234. package/dist/local-run-store/remote-surface-flags.d.ts +0 -15
  235. package/dist/local-run-store/small-surfaces.d.ts +0 -37
  236. package/dist/local-run-store/sqlite/sqlite-filesystem-policy.d.ts +0 -16
  237. package/dist/local-run-store/sqlite/sqlite-local-run-store.d.ts +0 -68
  238. package/dist/local-run-store/sqlite/sqlite-recovery.d.ts +0 -14
  239. package/dist/local-run-store/sqlite/sqlite-schema.d.ts +0 -13
  240. package/dist/local-run-store/store-lifecycle.d.ts +0 -38
  241. package/dist/local-run-store/surface-flags.d.ts +0 -47
  242. package/dist/local-run-store/tick-posture.d.ts +0 -27
  243. package/dist/material-worktree-changes.d.ts +0 -2
  244. package/dist/memory-cost-package-version-guard-enforce.d.ts +0 -10
  245. package/dist/memory-cost-package-version-guard.d.ts +0 -49
  246. package/dist/mesh-liveness/mesh-cron-lease-store.d.ts +0 -9
  247. package/dist/model-routing-task-enrich.d.ts +0 -8
  248. package/dist/model-routing.d.ts +0 -49
  249. package/dist/monitor/index.d.ts +0 -7
  250. package/dist/monitor/monitor-cli.d.ts +0 -9
  251. package/dist/monitor/monitor-loop.d.ts +0 -1
  252. package/dist/monitor/monitor-spawn.d.ts +0 -18
  253. package/dist/monitor/monitor.classify.d.ts +0 -15
  254. package/dist/monitor/monitor.service.d.ts +0 -17
  255. package/dist/monitor/monitor.store.d.ts +0 -6
  256. package/dist/monitor/monitor.task-lease.d.ts +0 -11
  257. package/dist/monitor/monitor.terminal.d.ts +0 -11
  258. package/dist/monitor/monitor.types.d.ts +0 -77
  259. package/dist/node-runtime-policy.d.ts +0 -25
  260. package/dist/orchestration-enforcement/config.d.ts +0 -5
  261. package/dist/orchestration-enforcement/evaluator.d.ts +0 -6
  262. package/dist/orchestration-enforcement/idempotency.d.ts +0 -8
  263. package/dist/orchestration-enforcement/index.d.ts +0 -4
  264. package/dist/orchestration-enforcement/types.d.ts +0 -24
  265. package/dist/orchestration-providers/adapter-contract.d.ts +0 -50
  266. package/dist/orchestration-providers/audit.d.ts +0 -3
  267. package/dist/orchestration-providers/capabilities.d.ts +0 -3
  268. package/dist/orchestration-providers/claude-oauth-binding.d.ts +0 -6
  269. package/dist/orchestration-providers/codex-oauth-binding.d.ts +0 -5
  270. package/dist/orchestration-providers/codex-orchestration-adapter.d.ts +0 -13
  271. package/dist/orchestration-providers/cost-router.d.ts +0 -24
  272. package/dist/orchestration-providers/cursor-oauth-binding.d.ts +0 -5
  273. package/dist/orchestration-providers/hermes-cli-adapter.d.ts +0 -15
  274. package/dist/orchestration-providers/hermes-openai-codex-binding.d.ts +0 -15
  275. package/dist/orchestration-providers/index.d.ts +0 -14
  276. package/dist/orchestration-providers/inventory.d.ts +0 -54
  277. package/dist/orchestration-providers/oauth-binding-utils.d.ts +0 -22
  278. package/dist/orchestration-providers/routing.d.ts +0 -16
  279. package/dist/orchestration-providers/types.d.ts +0 -45
  280. package/dist/package-version.d.ts +0 -5
  281. package/dist/path-values.d.ts +0 -5
  282. package/dist/paths.d.ts +0 -16
  283. package/dist/pipeline-dispatch.d.ts +0 -8
  284. package/dist/pipeline-exact-targets.d.ts +0 -2
  285. package/dist/pipeline-max-starts.d.ts +0 -26
  286. package/dist/pipeline-tick.d.ts +0 -50
  287. package/dist/plan-persist/agentos-api.d.ts +0 -28
  288. package/dist/plan-persist/body-hash.d.ts +0 -3
  289. package/dist/plan-persist/drain.d.ts +0 -7
  290. package/dist/plan-persist/errors.d.ts +0 -9
  291. package/dist/plan-persist/handoff.d.ts +0 -7
  292. package/dist/plan-persist/idempotency.d.ts +0 -2
  293. package/dist/plan-persist/index.d.ts +0 -8
  294. package/dist/plan-persist/outbox-durability.d.ts +0 -31
  295. package/dist/plan-persist/outbox-store.d.ts +0 -36
  296. package/dist/plan-persist/paths.d.ts +0 -8
  297. package/dist/plan-persist/persist.d.ts +0 -10
  298. package/dist/plan-persist/readback.d.ts +0 -17
  299. package/dist/plan-persist/types.d.ts +0 -95
  300. package/dist/plan-persist-cli.d.ts +0 -3
  301. package/dist/plan-progress-daemon-sync.d.ts +0 -7
  302. package/dist/plan-progress-sync.d.ts +0 -21
  303. package/dist/plan-progress.d.ts +0 -10
  304. package/dist/post-restart-unblock.d.ts +0 -24
  305. package/dist/pr-handoff/index.d.ts +0 -6
  306. package/dist/pr-handoff/pr-handoff-assess.d.ts +0 -44
  307. package/dist/pr-handoff/pr-handoff-dedupe.d.ts +0 -18
  308. package/dist/pr-handoff/pr-handoff-gh.d.ts +0 -52
  309. package/dist/pr-handoff/pr-handoff-supersede.d.ts +0 -17
  310. package/dist/pr-handoff/pr-handoff.d.ts +0 -8
  311. package/dist/pr-handoff/pr-handoff.types.d.ts +0 -45
  312. package/dist/pr-handoff/same-head-pr-guard.d.ts +0 -10
  313. package/dist/prompt.d.ts +0 -56
  314. package/dist/provider-evidence/collect.d.ts +0 -31
  315. package/dist/provider-evidence/exec.d.ts +0 -5
  316. package/dist/provider-evidence/index.d.ts +0 -7
  317. package/dist/provider-evidence/recipes-github.d.ts +0 -5
  318. package/dist/provider-evidence/recipes-vercel.d.ts +0 -2
  319. package/dist/provider-evidence/registry.d.ts +0 -6
  320. package/dist/provider-evidence/shared-cache.d.ts +0 -8
  321. package/dist/provider-evidence/types.d.ts +0 -48
  322. package/dist/provider-evidence/wanted-store.d.ts +0 -13
  323. package/dist/provider-quota-preflight.d.ts +0 -38
  324. package/dist/providers/claude.d.ts +0 -8
  325. package/dist/providers/codex.d.ts +0 -14
  326. package/dist/providers/cursor-windows.d.ts +0 -7
  327. package/dist/providers/cursor.d.ts +0 -13
  328. package/dist/providers/hermes-codex.d.ts +0 -12
  329. package/dist/providers/model-preflight.d.ts +0 -41
  330. package/dist/providers/openai-codex-resilience.d.ts +0 -33
  331. package/dist/providers/openai-compatible-response.d.ts +0 -23
  332. package/dist/providers/openai-compatible-runner.d.ts +0 -1
  333. package/dist/providers/openai-compatible.d.ts +0 -46
  334. package/dist/providers/registry.d.ts +0 -4
  335. package/dist/providers/types.d.ts +0 -36
  336. package/dist/redact.d.ts +0 -1
  337. package/dist/repair-target-worktree.d.ts +0 -4
  338. package/dist/repo-search.d.ts +0 -53
  339. package/dist/resource-gate.d.ts +0 -74
  340. package/dist/retry-limits.d.ts +0 -12
  341. package/dist/review-head-reconcile.d.ts +0 -17
  342. package/dist/run-list.d.ts +0 -38
  343. package/dist/run-metadata-retention.d.ts +0 -38
  344. package/dist/run-resolve.d.ts +0 -4
  345. package/dist/run-store.d.ts +0 -38
  346. package/dist/run-worker-index.d.ts +0 -10
  347. package/dist/runner-boundary/index.d.ts +0 -6
  348. package/dist/runner-boundary/runner-boundary.dispatch-guard.d.ts +0 -4
  349. package/dist/runner-boundary/runner-boundary.forge-legacy-migration.d.ts +0 -23
  350. package/dist/runner-boundary/runner-boundary.harness-root.d.ts +0 -17
  351. package/dist/runner-boundary/runner-boundary.resolve.d.ts +0 -4
  352. package/dist/runner-boundary/runner-boundary.run-guard.d.ts +0 -12
  353. package/dist/runner-boundary/runner-boundary.types.d.ts +0 -31
  354. package/dist/runner-config-backfill.d.ts +0 -18
  355. package/dist/runner-identity.d.ts +0 -21
  356. package/dist/runtime-identity.d.ts +0 -9
  357. package/dist/runtime-memory-envelope.d.ts +0 -16
  358. package/dist/scheduler-cutover-cli.d.ts +0 -2
  359. package/dist/scheduler-cutover.d.ts +0 -25
  360. package/dist/security-review-environment.d.ts +0 -27
  361. package/dist/server/adapter-contract.d.ts +0 -1
  362. package/dist/server/cleanup.d.ts +0 -3
  363. package/dist/server/context-budget-receipt.d.ts +0 -2
  364. package/dist/server/db-credentials.d.ts +0 -1
  365. package/dist/server/default-repo.d.ts +0 -1
  366. package/dist/server/harness-notice.d.ts +0 -2
  367. package/dist/server/heavy-verification.d.ts +0 -3
  368. package/dist/server/landing.d.ts +0 -1
  369. package/dist/server/memory-cost-enforce.d.ts +0 -1
  370. package/dist/server/memory-cost.d.ts +0 -1
  371. package/dist/server/model-routing.d.ts +0 -3
  372. package/dist/server/monitor.d.ts +0 -3
  373. package/dist/server/node-runtime-policy.d.ts +0 -1
  374. package/dist/server/orchestration.d.ts +0 -10
  375. package/dist/server/pr-evidence.d.ts +0 -2
  376. package/dist/server/prompt.d.ts +0 -1
  377. package/dist/server/repo-search.d.ts +0 -1
  378. package/dist/server/worker-policy.d.ts +0 -6
  379. package/dist/server/wsl-crash-dumps.d.ts +0 -2
  380. package/dist/shell-command-outcome.d.ts +0 -32
  381. package/dist/sidecar-cli.d.ts +0 -16
  382. package/dist/stale-reconcile.d.ts +0 -31
  383. package/dist/start-box-identity.d.ts +0 -12
  384. package/dist/start.d.ts +0 -13
  385. package/dist/status.d.ts +0 -262
  386. package/dist/stream.d.ts +0 -33
  387. package/dist/supervisor.d.ts +0 -40
  388. package/dist/sweep.d.ts +0 -1
  389. package/dist/util.d.ts +0 -35
  390. package/dist/validate.d.ts +0 -15
  391. package/dist/vercel/index.d.ts +0 -4
  392. package/dist/vercel/vercel-api.d.ts +0 -17
  393. package/dist/vercel/vercel-evidence.d.ts +0 -48
  394. package/dist/vercel/vercel-github-status.d.ts +0 -19
  395. package/dist/vercel/vercel-url.d.ts +0 -18
  396. package/dist/verify-live/verify-live-prompt.d.ts +0 -2
  397. package/dist/worker-cap-source.d.ts +0 -29
  398. package/dist/worker-env.d.ts +0 -52
  399. package/dist/worker-execution-mode.d.ts +0 -5
  400. package/dist/worker-final-result-embed.d.ts +0 -1
  401. package/dist/worker-lease-sync.d.ts +0 -15
  402. package/dist/worker-lifecycle.d.ts +0 -28
  403. package/dist/worker-metadata-paths.d.ts +0 -26
  404. package/dist/worker-metadata-reconcile.d.ts +0 -21
  405. package/dist/worker-ops.d.ts +0 -45
  406. package/dist/worker-persona-catalog.d.ts +0 -29
  407. package/dist/worker-provider-policy.d.ts +0 -43
  408. package/dist/worker-usage.d.ts +0 -20
  409. package/dist/workspace-runtime-config.d.ts +0 -10
  410. package/dist/worktree-base-ref.d.ts +0 -34
  411. package/dist/worktree-completion-handoff.d.ts +0 -17
  412. package/dist/worktree.d.ts +0 -44
  413. package/dist/wsl-crash-dumps-cleanup.d.ts +0 -31
  414. package/dist/wsl-crash-dumps-cli.d.ts +0 -1
  415. package/dist/wsl-crash-dumps.d.ts +0 -90
  416. package/dist/wsl-host.d.ts +0 -71
@@ -1,17 +0,0 @@
1
- import type { CleanupSkipReason } from "./cleanup-types.js";
2
- export interface OrphanSafetyInput {
3
- worktreePath: string;
4
- harnessRoot: string;
5
- runId?: string;
6
- workerName?: string;
7
- heartbeatFreshMs?: number;
8
- now?: number;
9
- }
10
- /**
11
- * Inspect filesystem signals for an orphan worktree (no run/worker.json index entry).
12
- *
13
- * Returns a `CleanupSkipReason` when removal is unsafe, or `null` when the orphan
14
- * appears safe to delete. Conservative on errors — any unreadable git state or
15
- * unexpected layout returns `pr_or_unmerged_commits` so genuine work is preserved.
16
- */
17
- export declare function assessOrphanWorktreeSafety(input: OrphanSafetyInput): CleanupSkipReason | null;
@@ -1,9 +0,0 @@
1
- export interface PathOwnershipInfo {
2
- uid: number;
3
- gid: number;
4
- /** True when the entry is not owned by the current process user/group. */
5
- foreign: boolean;
6
- }
7
- export declare function readPathOwnership(targetPath: string): PathOwnershipInfo | null;
8
- /** Shallow scan for foreign-owned entries (dependency caches are usually uniform). */
9
- export declare function pathHasForeignOwnedEntry(targetPath: string, maxEntries?: number): boolean;
@@ -1,13 +0,0 @@
1
- export type PrivilegedCleanupMode = "off" | "auto" | "force";
2
- export declare function resolvePrivilegedCleanupMode(): PrivilegedCleanupMode;
3
- export interface PrivilegedReclaimResult {
4
- ok: boolean;
5
- method?: "chown_then_rm" | "sudo_rm";
6
- error?: string;
7
- }
8
- /**
9
- * Reclaim a harness generated cache directory that is not owned by the daemon user.
10
- * Only operates on validated `worktrees/<run>/<worker>/{node_modules,.next,...}` paths.
11
- */
12
- export declare function tryPrivilegedReclaimHarnessCache(targetPath: string, harnessRoot: string, worktreesDir: string): PrivilegedReclaimResult;
13
- export declare const HARNESS_ROOT_OWNED_CACHE_RUNBOOK = "Root-owned harness caches require operator reclaim: configure passwordless sudo for chown/rm under ~/.kynver/harness/worktrees, or run `node scripts/reclaim-harness-root-owned-cache.mjs --execute` as the harness owner with sudo available. See docs/runbooks/harness-root-owned-cache-reclaim.md.";
@@ -1,2 +0,0 @@
1
- /** stderr progress lines so broad cleanup scans do not appear hung before JSON output. */
2
- export declare function emitCleanupProgress(phase: string, detail?: string): void;
@@ -1,17 +0,0 @@
1
- import { rmSync } from "node:fs";
2
- import type { CleanupCandidate, CleanupSkipReason } from "./cleanup-types.js";
3
- import { pathHasForeignOwnedEntry } from "./cleanup-path-ownership.js";
4
- export interface RemoveHarnessPathOutcome {
5
- executed: boolean;
6
- skipped: boolean;
7
- skipReason?: CleanupSkipReason;
8
- error?: string;
9
- bytes?: number;
10
- privilegedReclaim?: boolean;
11
- }
12
- interface RemoveHarnessGeneratedPathDeps {
13
- removePath?: typeof rmSync;
14
- hasForeignOwnedEntry?: typeof pathHasForeignOwnedEntry;
15
- }
16
- export declare function removeHarnessGeneratedPath(candidate: CleanupCandidate, execute: boolean, deps?: RemoveHarnessGeneratedPathDeps): RemoveHarnessPathOutcome;
17
- export {};
@@ -1,26 +0,0 @@
1
- import type { DispatchNextDiskGateShape } from "./callbacks.js";
2
- import { type HarnessCleanupOptions } from "./cleanup-types.js";
3
- export interface ResolvedHarnessRetention {
4
- execute: boolean;
5
- finalizeStaleRuns: boolean;
6
- /** When false, skip node_modules/.next/build-cache scans (worktree-only operator sweeps). */
7
- scanDependencyCaches: boolean;
8
- nodeModulesAgeMs: number;
9
- worktreesAgeMs: number;
10
- terminalWorktreesAgeMs: number;
11
- runDirectoriesAgeMs: number;
12
- maxActionsPerSweep: number;
13
- includeOrphans: boolean;
14
- runIdFilter?: string;
15
- accountBytes: boolean;
16
- /** Cap filesystem walk depth per run dir in `harnessStorageSnapshot` (0 = counts only). */
17
- storagePerRunEntryCap: number | null;
18
- /** Per-candidate walk cap when `du` is unavailable (default 2k). */
19
- byteAccountingEntryCap: number;
20
- diskPressure?: boolean;
21
- diskGate?: DispatchNextDiskGateShape;
22
- }
23
- /** Merge CLI options with operator env defaults (pipeline + `kynver cleanup`). */
24
- export declare function resolveHarnessRetention(options?: HarnessCleanupOptions): ResolvedHarnessRetention;
25
- /** Pipeline tick: dry-run by default; global scope when `KYNVER_CLEANUP_SCOPE=all`. */
26
- export declare function resolvePipelineHarnessRetention(runId?: string): ResolvedHarnessRetention;
@@ -1,20 +0,0 @@
1
- import type { CleanupCandidate, CleanupSkipReason } from "./cleanup-types.js";
2
- import type { ActiveWorktreeGuardSnapshot } from "./cleanup-active-worktrees.js";
3
- export interface ScanRunDirectoryOptions {
4
- harnessRoot: string;
5
- worktreesDir: string;
6
- runDirectoriesAgeMs: number;
7
- runIdFilter?: string;
8
- activeGuards: ActiveWorktreeGuardSnapshot;
9
- now: number;
10
- }
11
- export declare function skipRunDirectoryRemoval(input: {
12
- harnessRoot: string;
13
- runId: string;
14
- runPath: string;
15
- ageMs: number;
16
- runDirectoriesAgeMs: number;
17
- activeGuards: ActiveWorktreeGuardSnapshot;
18
- }): CleanupSkipReason | null;
19
- /** Empty per-run folders under `worktrees/<runId>/` after worker worktrees are gone. */
20
- export declare function scanStaleRunDirectoryCandidates(opts: ScanRunDirectoryOptions): CleanupCandidate[];
@@ -1,21 +0,0 @@
1
- import type { IndexedWorktree } from "./cleanup-worktree-index.js";
2
- import type { CleanupGitRevCache } from "./cleanup-git-rev-cache.js";
3
- import type { CleanupGitStatusCache } from "./cleanup-git-status-cache.js";
4
- import type { CleanupRunTerminalCache } from "./cleanup-run-terminal-cache.js";
5
- export interface CleanupRunLivenessContext {
6
- runTerminalCache: CleanupRunTerminalCache;
7
- gitStatusCache: CleanupGitStatusCache;
8
- gitRevCache: CleanupGitRevCache;
9
- }
10
- /** True when the worker process or heartbeat still shows live harness activity. */
11
- export declare function isWorkerProcessLive(indexed: IndexedWorktree, now?: number): boolean;
12
- /**
13
- * Run record still marked active but every worker is finished — safe to treat as
14
- * terminal for GC after `finalizeStaleRuns()` (or when deriveTerminalRunStatus is set).
15
- */
16
- export declare function isRunStaleActive(indexed: IndexedWorktree, ctx?: CleanupRunLivenessContext): boolean;
17
- /**
18
- * Whether the harness run still has unfinished work that should block whole-worktree removal.
19
- * Does not block per-worker `node_modules` when only this worker is finished.
20
- */
21
- export declare function runBlocksWorktreeRemoval(indexed: IndexedWorktree, ctx?: CleanupRunLivenessContext, now?: number): boolean;
@@ -1,6 +0,0 @@
1
- import type { HarnessRunRecord } from "./run-store.js";
2
- /** Per-sweep memo so worktree guards do not re-derive terminal status for every worker in a run. */
3
- export declare class CleanupRunTerminalCache {
4
- private readonly cache;
5
- derive(run: HarnessRunRecord): string | null;
6
- }
@@ -1,33 +0,0 @@
1
- import type { CleanupSkipReason } from "./cleanup-types.js";
2
- import type { IndexedWorktree } from "./cleanup-worktree-index.js";
3
- import type { RawHarnessWorkerStatus } from "./status.js";
4
- export interface WorktreeSalvageEvidenceRecord {
5
- capturedAt: string;
6
- skipReason: CleanupSkipReason;
7
- runId: string;
8
- workerName: string;
9
- worktreePath: string;
10
- taskId?: string;
11
- agentOsId?: string;
12
- branch?: string;
13
- completionBlocker?: string;
14
- finalResult?: unknown;
15
- changedFiles: string[];
16
- gitAncestry: RawHarnessWorkerStatus["gitAncestry"];
17
- prUrl?: string | null;
18
- patchPath?: string | null;
19
- }
20
- export declare function salvageEvidenceDir(harnessRoot: string, runId: string, workerName: string): string;
21
- export declare function hasSalvageEvidence(input: {
22
- harnessRoot: string;
23
- runId: string;
24
- workerName: string;
25
- }): boolean;
26
- /** Persist worktree/git evidence before whole-worktree removal for operator salvage review. */
27
- export declare function writeWorktreeSalvageEvidence(input: {
28
- harnessRoot: string;
29
- indexed: IndexedWorktree;
30
- skipReason: CleanupSkipReason;
31
- status: RawHarnessWorkerStatus;
32
- now?: number;
33
- }): WorktreeSalvageEvidenceRecord;
@@ -1,15 +0,0 @@
1
- import type { CleanupCandidate } from "./cleanup-types.js";
2
- import { type IndexedWorktree } from "./cleanup-worktree-index.js";
3
- export interface ScanHarnessOptions {
4
- harnessRoot: string;
5
- worktreesDir: string;
6
- nodeModulesAgeMs: number;
7
- worktreesAgeMs: number;
8
- includeOrphans: boolean;
9
- runIdFilter?: string;
10
- index: Map<string, IndexedWorktree>;
11
- now: number;
12
- }
13
- export declare function scanNodeModulesCandidates(opts: ScanHarnessOptions): CleanupCandidate[];
14
- export declare function scanBuildCacheCandidates(opts: ScanHarnessOptions): CleanupCandidate[];
15
- export declare function scanWorktreeCandidates(opts: ScanHarnessOptions): CleanupCandidate[];
@@ -1,29 +0,0 @@
1
- import type { CleanupActionKind, HarnessCleanupSummary, HarnessStorageSnapshotShape } from "./cleanup-types.js";
2
- export interface CleanupCompactSummary {
3
- harnessRoot: string;
4
- scanRoots: string[];
5
- dryRun: boolean;
6
- execute: boolean;
7
- scannedAt: string;
8
- finalizedRuns: number;
9
- actionCount: number;
10
- actionKinds: Partial<Record<CleanupActionKind, number>>;
11
- totals: HarnessCleanupSummary["totals"];
12
- storage?: HarnessStorageSnapshotShape;
13
- preservedLivePaths?: HarnessCleanupSummary["preservedLivePaths"];
14
- removedRunDirectories?: number;
15
- sampleActions: Array<{
16
- kind: CleanupActionKind;
17
- path: string;
18
- skipReason?: string;
19
- bytes?: number | null;
20
- runId?: string;
21
- worker?: string;
22
- }>;
23
- sampleSkips: HarnessCleanupSummary["skips"];
24
- }
25
- /** Operator-facing rollup — bounded samples, no per-path megabyte JSON dumps. */
26
- export declare function buildCleanupCompactSummary(summary: HarnessCleanupSummary, options?: {
27
- maxSampleActions?: number;
28
- maxSampleSkips?: number;
29
- }): CleanupCompactSummary;
@@ -1,154 +0,0 @@
1
- export type CleanupActionKind = "remove_node_modules" | "remove_next_cache" | "remove_build_cache" | "remove_worktree" | "remove_run_directory";
2
- export type CleanupSkipReason = "dry_run" | "below_age_threshold" | "active_worker" | "dirty_worktree" | "landing_blocked" | "pr_or_unmerged_commits" | "completion_blocked" | "run_still_active" | "path_outside_harness" | "worktrees_disabled" | "orphan_without_flag" | "missing_worktree" | "remove_failed"
3
- /** Generated cache owned by another user (often root); daemon cannot unlink without privileged reclaim. */
4
- | "foreign_owner"
5
- /** Harness `runs/` metadata must never be removed by worktree GC. */
6
- | "run_metadata_protected"
7
- /** AgentOS / operator lifecycle overlay blocked removal (see `detail`). */
8
- | "board_lifecycle_blocked";
9
- export interface CleanupCandidate {
10
- kind: CleanupActionKind;
11
- path: string;
12
- bytes: number | null;
13
- harnessRoot?: string;
14
- runId?: string;
15
- worker?: string;
16
- repo?: string;
17
- ageMs: number;
18
- }
19
- export interface CleanupAction extends CleanupCandidate {
20
- executed: boolean;
21
- skipped: boolean;
22
- skipReason?: CleanupSkipReason;
23
- error?: string;
24
- }
25
- export interface RunFinalizeSummary {
26
- runId: string;
27
- from: string;
28
- to: string;
29
- }
30
- export interface HarnessStorageSnapshotShape {
31
- harnessRoot: string;
32
- worktreesDir: string;
33
- worktreesBytes: number | null;
34
- runCount: number;
35
- workerCount: number;
36
- oldestRunAt: string | null;
37
- scannedAt: string;
38
- }
39
- export interface HarnessCleanupSummary {
40
- harnessRoot: string;
41
- /** Every harness tree scanned (primary + well-known extras). */
42
- scanRoots: string[];
43
- dryRun: boolean;
44
- execute: boolean;
45
- nodeModulesAgeMs: number;
46
- worktreesAgeMs: number;
47
- includeOrphans: boolean;
48
- diskPressure?: boolean;
49
- diskGate?: {
50
- ok: boolean;
51
- path: string;
52
- freeBytes: number;
53
- usedPercent: number;
54
- reason: string | null;
55
- };
56
- scannedAt: string;
57
- finalizedRuns: RunFinalizeSummary[];
58
- actions: CleanupAction[];
59
- skips: Array<{
60
- path: string;
61
- reason: CleanupSkipReason;
62
- detail?: string;
63
- }>;
64
- totals: {
65
- candidateBytes: number;
66
- reclaimableBytes: number;
67
- removedBytes: number;
68
- removedPaths: number;
69
- skippedPaths: number;
70
- skipReasons: Partial<Record<CleanupSkipReason, number>>;
71
- };
72
- /** Disk-pressure evidence — present when bytes accounting is enabled. */
73
- storage?: HarnessStorageSnapshotShape;
74
- /** Sample of paths kept because workers/runs are still live (for operator summaries). */
75
- preservedLivePaths?: Array<{
76
- path: string;
77
- reason: CleanupSkipReason;
78
- detail?: string;
79
- }>;
80
- /** Empty harness worktree run directories removed after worker worktrees were reclaimed. */
81
- removedRunDirectories?: number;
82
- /** Windows-side WSL crash dump prune evidence (when auto-cleanup ran or observed). */
83
- wslCrashDumps?: {
84
- observed: boolean;
85
- execute: boolean;
86
- dumpCount: number;
87
- totalBytes: number;
88
- removedCount: number;
89
- removedBytes: number;
90
- executables: string[];
91
- path: string | null;
92
- reason: string | null;
93
- };
94
- /** Bounded operator rollup (always attached; use `kynver cleanup --compact` to emit alone). */
95
- compactSummary?: import("./cleanup-summary.js").CleanupCompactSummary;
96
- }
97
- export interface WorktreeRemovalGuardInput {
98
- worktreePath: string;
99
- /** True when `buildWorktreeIndex()` has a worker.json entry for this path. */
100
- indexed: boolean;
101
- runId?: string;
102
- worker?: string;
103
- }
104
- /** Optional overlay (e.g. AgentOS board + lease checks) evaluated after runtime salvage gates. */
105
- export type WorktreeRemovalGuardHook = (input: WorktreeRemovalGuardInput) => {
106
- reason: CleanupSkipReason;
107
- detail?: string;
108
- } | null;
109
- export interface HarnessCleanupOptions {
110
- harnessRoot?: string;
111
- /** When false (default), only report candidates. */
112
- execute?: boolean;
113
- /** When true (default), call `finalizeStaleRuns()` before scanning. */
114
- finalizeStaleRuns?: boolean;
115
- /** When true, estimate candidate bytes for guard-passing removals only. CLI defaults false. */
116
- accountBytes?: boolean;
117
- /** Per-run entry cap for storage snapshot byte totals (`0` = counts only). */
118
- storagePerRunEntryCap?: number | null;
119
- /** Per-candidate filesystem walk cap when `du` is unavailable. */
120
- byteAccountingEntryCap?: number;
121
- /** When false, skip node_modules/.next/build-cache scans (worktree-only operator sweeps). */
122
- scanDependencyCaches?: boolean;
123
- /** Minimum age before removing generated `node_modules` (default 6h). */
124
- nodeModulesAgeMs?: number;
125
- /** When 0 or unset, worktree removal is disabled. */
126
- worktreesAgeMs?: number;
127
- /**
128
- * Age threshold for worktrees whose harness run is already terminal
129
- * (`completed` / `failed` / `cancelled` / `done`). Salvage gates still apply.
130
- */
131
- terminalWorktreesAgeMs?: number;
132
- /** Minimum age before removing an empty `worktrees/<runId>/` directory. */
133
- runDirectoriesAgeMs?: number;
134
- /** Cap actions evaluated per sweep (cron/watchdog boundedness). */
135
- maxActionsPerSweep?: number;
136
- /** Allow cleaning `node_modules` under worktrees with no worker index entry. */
137
- includeOrphans?: boolean;
138
- /** When set, only consider workers for this harness run (pipeline tick scope). */
139
- runIdFilter?: string;
140
- now?: number;
141
- /** When set, invoked for each worktree candidate after built-in salvage guards. */
142
- worktreeRemovalGuard?: WorktreeRemovalGuardHook;
143
- }
144
- /** Conservative default aligned with 2026-05-27 manual harness cleanup (6h). */
145
- export declare const DEFAULT_NODE_MODULES_AGE_MS: number;
146
- /** Seven days — only used when worktree cleanup is explicitly enabled. */
147
- export declare const DEFAULT_WORKTREES_AGE_MS: number;
148
- /** Terminal runs: salvage-first worktree removal after workers finish (6h default). */
149
- export declare const DEFAULT_TERMINAL_WORKTREES_AGE_MS: number;
150
- /** Empty per-run worktree folders under `worktrees/<runId>/`. */
151
- export declare const DEFAULT_RUN_DIRECTORIES_AGE_MS: number;
152
- /** Bounded cron/watchdog scan — skip remaining candidates when exceeded. */
153
- export declare const DEFAULT_MAX_ACTIONS_PER_SWEEP = 120;
154
- export declare const MAX_PRESERVED_LIVE_PATH_SAMPLES = 24;
@@ -1,9 +0,0 @@
1
- import type { HarnessWorkerRecord } from "./status.js";
2
- /** True when parsed heartbeat JSON has a recent `ts` (not file mtime alone). */
3
- export declare function heartbeatContentIsFresh(worker: HarnessWorkerRecord, now?: number, windowMs?: number): boolean;
4
- /**
5
- * Whether a harness worker still has live execution signals: OS process and/or
6
- * fresh heartbeat content. Ignores stale `worker.json` status and file mtimes
7
- * that daemons or scanners may touch without a running worker.
8
- */
9
- export declare function isHarnessWorkerHarnessLive(worker: HarnessWorkerRecord, now?: number, windowMs?: number): boolean;
@@ -1,18 +0,0 @@
1
- import { type HarnessRunRecord } from "./run-store.js";
2
- import type { HarnessWorkerRecord, RawHarnessWorkerStatus } from "./status.js";
3
- export interface IndexedWorktree {
4
- harnessRoot?: string;
5
- worktreePath: string;
6
- runId: string;
7
- workerName: string;
8
- run: HarnessRunRecord;
9
- worker: HarnessWorkerRecord;
10
- /** Populated lazily via `indexedWorktreeStatus()` during guard evaluation. */
11
- status?: RawHarnessWorkerStatus;
12
- }
13
- export declare function buildWorktreeIndex(): Map<string, IndexedWorktree>;
14
- /** Scope a merged multi-root index to one harness tree (avoids triple-scanning every worker). */
15
- export declare function filterWorktreeIndexForRoot(index: Map<string, IndexedWorktree>, harnessRoot: string): Map<string, IndexedWorktree>;
16
- export declare function buildWorktreeIndexAt(harnessRoot: string): Map<string, IndexedWorktree>;
17
- /** Load worker when index miss but path is known from disk layout. */
18
- export declare function loadIndexedWorker(runId: string, workerName: string): HarnessWorkerRecord | null;
@@ -1,7 +0,0 @@
1
- import type { GitAncestry } from "./git.js";
2
- import type { RawHarnessWorkerStatus } from "./status.js";
3
- export declare function prUrlFromFinalResult(finalResult: unknown): string | null;
4
- /** True when git ancestry shows the worker branch is fully landed on the run base. */
5
- export declare function isLandedGitAncestry(ancestry: GitAncestry | null | undefined): boolean;
6
- /** Blocks whole-worktree removal when commits are not landed or tree is dirty. */
7
- export declare function isPrOrUnmergedWork(status: RawHarnessWorkerStatus): boolean;
package/dist/cleanup.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { type HarnessCleanupOptions, type HarnessCleanupSummary } from "./cleanup-types.js";
2
- export declare function runHarnessCleanup(options?: HarnessCleanupOptions): HarnessCleanupSummary;
3
- /** Pipeline-safe defaults: finalize stale runs, dry-run unless execute env is set. */
4
- export declare function runPipelineHarnessCleanup(runId?: string): HarnessCleanupSummary;
5
- export declare function isPipelineCleanupEnabled(): boolean;
@@ -1,11 +0,0 @@
1
- /** User-facing vs machine stdout for `kynver worker start`. */
2
- export interface WorkerStartDetails {
3
- runId: string;
4
- worker: string;
5
- pid: number | undefined;
6
- branch: string | undefined;
7
- worktreePath: string | undefined;
8
- workerDir: string | undefined;
9
- }
10
- export declare function formatWorkerStartSummary(details: WorkerStartDetails): string;
11
- export declare function formatWorkerStartJson(details: WorkerStartDetails): string;
package/dist/cli.d.ts DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Every routable CLI verb path, exactly as `main()` dispatches them. This is
4
- * the docs-truth contract: the README + user-hosted-runner runbook tests pin
5
- * every `kynver <verb…>` command they mention against this list, so a doc can
6
- * never again teach a command that does not exist (`kynver runner start`,
7
- * bare `kynver doctor`, `kynver selftest`). Keep in lockstep with the
8
- * scope/action routing in `main()` below.
9
- */
10
- export declare const KNOWN_CLI_VERBS: readonly string[];
11
- /** Snapshot of {@link KNOWN_CLI_VERBS} for docs-truth tests and tooling. */
12
- export declare function listKnownCliVerbs(): string[];
13
- export declare function usage(code?: number): never;
14
- export declare function main(argv?: string[]): Promise<void>;
@@ -1 +0,0 @@
1
- export declare function runCommandCenterContractCli(args: Record<string, string | boolean>): Promise<void>;
@@ -1,18 +0,0 @@
1
- import type { HarnessWorkerRecord } from "./status.js";
2
- export type CompletionOutcome = "acknowledged" | "skipped_already_acked" | "structural_blocker";
3
- export interface CompletionAckFields {
4
- completionReportedAt: string;
5
- completionOutcome: "acknowledged" | "rejected";
6
- completionResponse?: unknown;
7
- }
8
- export declare function hasCompletionAck(worker: HarnessWorkerRecord): boolean;
9
- /** True when AgentOS acknowledged completion and the board advanced (or was already terminal). */
10
- export declare function hasSuccessfulCompletionAck(worker: HarnessWorkerRecord): boolean;
11
- /**
12
- * Finished workers with a prior completion POST that did not advance the board
13
- * (rejected route, structural blocker) must be eligible for replay so fresher
14
- * `finalResult` evidence can reach AgentOS.
15
- */
16
- export declare function needsCompletionReplay(worker: HarnessWorkerRecord): boolean;
17
- export declare function persistCompletionAck(worker: HarnessWorkerRecord, runId: string, fields: CompletionAckFields): void;
18
- export declare function clearCompletionAck(worker: HarnessWorkerRecord, runId: string): void;
@@ -1,10 +0,0 @@
1
- import type { HarnessWorkerRecord } from "./status.js";
2
- /**
3
- * A finished worker whose completion POST was recorded but did not advance the
4
- * linked AgentTask (structural blocker or rejected outcome) must be eligible for
5
- * idempotent completion replay on later pipeline ticks — not skipped as "already
6
- * acknowledged".
7
- */
8
- export declare function shouldReplayHarnessCompletion(worker: HarnessWorkerRecord): boolean;
9
- /** Terminal ack with no structural reason to replay completion to AgentOS. */
10
- export declare function hasTerminalCompletionAck(worker: HarnessWorkerRecord): boolean;
@@ -1,15 +0,0 @@
1
- /** Parsed outcome from POST /harness/completion (AgentOS handleHarnessWorkerCompletion). */
2
- export type HarnessCompletionRouteOutcome = "review_scheduled" | "review_already_scheduled" | "needs_attention" | "mirror_only" | "task_not_found" | "task_not_harness" | "skipped_terminal_task" | "closed" | "dispatched" | "dispatch_already_done" | "steer_restart_required" | "blocked" | "reviewer_no_parent" | "landing_no_parent";
3
- export interface HarnessCompletionResponseSummary {
4
- routeOutcome: HarnessCompletionRouteOutcome | null;
5
- /** True when the board task should have moved into review (or already was). */
6
- taskAdvanced: boolean;
7
- detail: string | null;
8
- }
9
- /**
10
- * Classify a 2xx harness completion response. HTTP success alone is not enough:
11
- * `needs_attention` (policy gate, dirty tree, missing artifact) still leaves the
12
- * linked AgentTask blocked while the worker sidecar would otherwise report done.
13
- */
14
- export declare function summarizeHarnessCompletionResponse(parsed: unknown): HarnessCompletionResponseSummary;
15
- export declare function completionPostSucceeded(summary: HarnessCompletionResponseSummary): boolean;
package/dist/config.d.ts DELETED
@@ -1,122 +0,0 @@
1
- export interface KynverUserConfig {
2
- apiBaseUrl?: string;
3
- agentOsSlug?: string;
4
- agentOsId?: string;
5
- defaultRepo?: string;
6
- workerProvider?: string;
7
- /** Default Claude model when dispatch does not infer or pass `--model`. */
8
- defaultModel?: string;
9
- harnessRoot?: string;
10
- /**
11
- * Operator attestation that the hosted Kynver deployment uses this scheduler provider
12
- * (set on user runners after the hosted env cutover — scheduling is deployment-owned).
13
- */
14
- deploymentSchedulerProvider?: "qstash" | "kynver-cron" | "openclaw-cron";
15
- /** Default harness run for `kynver daemon` / systemd user unit (set by `kynver cron install`). */
16
- defaultDaemonRunId?: string;
17
- /**
18
- * Kynver-owned daemon restart owner (`keeper` = in-process keeper; `systemd` = user unit).
19
- * Set during `kynver setup` / `kynver start --install-systemd`.
20
- */
21
- daemonSupervisionOwner?: "keeper" | "systemd";
22
- /** Physical box pool for capacity snapshots (`forge` | `ghost`). Set via `kynver setup --box-kind`. */
23
- boxKind?: "ghost" | "forge";
24
- /** Stable runner id for lease attribution and cross-box dispatch guards. */
25
- runnerId?: string;
26
- /** Stable physical box id for capacity snapshots, e.g. `forge:travelcase`. */
27
- boxId?: string;
28
- /**
29
- * Opt-in: delegated chat turns may use the Claude Code CLI's stored OAuth
30
- * token on this machine (M5.4). Set via `kynver start --chat-oauth` or
31
- * `kynver setup --chat-oauth`; the token itself never leaves the box.
32
- */
33
- chatUseClaudeOauth?: boolean;
34
- /** Max concurrent workers on this machine. Omit to auto-size from RAM. */
35
- maxConcurrentWorkers?: number;
36
- /** Where maxConcurrentWorkers came from. */
37
- maxConcurrentWorkersSource?: "setup-auto" | "setup-flag" | "operator";
38
- /** @internal Advanced tuning — not required for setup. */
39
- perWorkerMemBytes?: number;
40
- /** @internal Advanced tuning — not required for setup. */
41
- memReserveBytes?: number;
42
- /** @internal Advanced tuning — not required for setup. */
43
- memUtilization?: number;
44
- }
45
- export interface AgentOsIdValidationResult {
46
- ok: boolean;
47
- value?: string;
48
- reason?: string;
49
- }
50
- export declare function validateAgentOsId(raw: unknown): AgentOsIdValidationResult;
51
- export declare function formatAgentOsIdValidationError(raw: unknown): string;
52
- export declare function loadUserConfig(): KynverUserConfig;
53
- export declare function saveUserConfig(config: KynverUserConfig): void;
54
- /** Persist path fields with `~` instead of absolute home directories. */
55
- export declare function normalizeConfigPaths(config: KynverUserConfig): KynverUserConfig;
56
- /** Values for setup output (never emit `/home/<user>/…`). */
57
- export declare function presentUserConfig(config: KynverUserConfig): KynverUserConfig;
58
- export declare function computeSetupAutoMaxWorkers(totalMemBytes: number): number;
59
- export declare function resolveSetupWorkerConfig(existing: KynverUserConfig, args: Record<string, string | boolean>, totalMemBytes?: number): Pick<KynverUserConfig, "maxConcurrentWorkers" | "maxConcurrentWorkersSource" | "boxKind">;
60
- export declare function loadApiKey(): string | undefined;
61
- export declare function saveApiKey(apiKey: string): void;
62
- export declare function loadRunnerToken(agentOsId?: string): string | undefined;
63
- export declare function saveRunnerToken(agentOsId: string, token: string): void;
64
- export declare function resolveBaseUrl(argsBaseUrl?: string): string;
65
- /** Non-exiting sibling of `resolveBaseUrl` for long-lived callers (the daemon). */
66
- export declare function tryResolveBaseUrl(argsBaseUrl?: string): string | undefined;
67
- export declare function resolveCallbackSecret(argsSecret?: string, agentOsId?: string): string;
68
- /**
69
- * Non-exiting sibling of `resolveCallbackSecretWithMint` for long-lived
70
- * callers (the supervised daemon): a missing/unmintable runner credential
71
- * must surface as a value, never `process.exit` — exiting inside the daemon
72
- * child turns the keeper into a silent crash loop ("service active, runtime
73
- * dead") and takes the chat claim loop down with it.
74
- */
75
- export declare function tryResolveCallbackSecretWithMint(argsSecret?: string, agentOsId?: string, opts?: {
76
- baseUrl?: string;
77
- }): Promise<{
78
- ok: true;
79
- secret: string;
80
- } | {
81
- ok: false;
82
- reason: string;
83
- }>;
84
- export declare function resolveCallbackSecretWithMint(argsSecret?: string, agentOsId?: string, opts?: {
85
- baseUrl?: string;
86
- }): Promise<string>;
87
- /**
88
- * Force-mint a fresh scoped runner token for `agentOsId`, bypassing any cached
89
- * or env token. Recovery path for a callback that 401s because the configured
90
- * token is revoked, expired, or scoped to a *different* workspace (the
91
- * self-linked repair case). Requires an API key + base URL to mint; returns
92
- * `null` when a fresh token cannot be obtained, so the caller degrades to a
93
- * structural blocker instead of papering the worker over as done.
94
- */
95
- export declare function refreshRunnerToken(agentOsId: string, opts?: {
96
- baseUrl?: string;
97
- }): Promise<string | null>;
98
- export declare function refreshRunnerTokenForAuthFailure(rejectedSecret: string, agentOsId: string, opts?: {
99
- baseUrl?: string;
100
- }): Promise<{
101
- ok: true;
102
- token: string;
103
- } | {
104
- ok: false;
105
- reason: string;
106
- }>;
107
- export declare function fetchRunnerCredential(agentOsId: string, opts?: {
108
- baseUrl?: string;
109
- apiKey?: string;
110
- }): Promise<string>;
111
- export declare function mintRunnerCredential(args: Record<string, string | boolean>): Promise<void>;
112
- /** List runner credentials from the server for a given agentOsId. */
113
- export declare function listRunnerCredentialsCli(args: Record<string, string | boolean>): Promise<void>;
114
- /** Revoke a runner credential by tokenId. */
115
- export declare function revokeRunnerCredentialCli(args: Record<string, string | boolean>): Promise<void>;
116
- /** Rotate a runner credential by tokenId (revoke old + mint new). */
117
- export declare function rotateRunnerCredentialCli(args: Record<string, string | boolean>): Promise<void>;
118
- /** Show the local runner credential status (no server call). */
119
- export declare function runnerCredentialStatusCli(args: Record<string, string | boolean>): void;
120
- export declare function parseArgs(argv: string[]): Record<string, string | boolean>;
121
- export declare function runSetup(args: Record<string, string | boolean>): Promise<void>;
122
- export declare function runLogin(args: Record<string, string | boolean>): Promise<void>;