@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
- export interface VercelDeploymentLookupResult {
2
- ok: boolean;
3
- readyState: string | null;
4
- previewUrl: string | null;
5
- error: string | null;
6
- }
7
- export interface VercelDeploymentLookupOptions {
8
- token?: string | null;
9
- teamId?: string | null;
10
- fetchImpl?: typeof fetch;
11
- }
12
- /**
13
- * Fetch deployment state by id (`dpl_*`) or `*.vercel.app` host URL.
14
- * Requires `VERCEL_TOKEN` (or explicit token) — never shells out to the Vercel CLI.
15
- */
16
- export declare function fetchVercelDeploymentStatus(deploymentIdOrUrl: string, options?: VercelDeploymentLookupOptions): Promise<VercelDeploymentLookupResult>;
17
- export declare function mapVercelReadyStateToEvidenceStatus(readyState: string | null, githubPending: boolean): "ready" | "building" | "error";
@@ -1,48 +0,0 @@
1
- import { type VercelDeploymentLookupResult } from "./vercel-api.js";
2
- import { type GitHubCommitStatusRow, type GitHubStatusState, type GitHubVercelStatusContext } from "./vercel-github-status.js";
3
- import { type ClassifiedVercelUrl } from "./vercel-url.js";
4
- export type VercelEvidenceStatus = "ready" | "building" | "error" | "unavailable" | "not_run";
5
- export interface VercelEvidenceResult {
6
- status: VercelEvidenceStatus;
7
- previewUrl: string | null;
8
- deploymentUrl: string | null;
9
- summary: string | null;
10
- observedAt: string | null;
11
- /** True when Vercel API lookup was not run (GitHub-only or missing token). */
12
- inspectSkipped: boolean;
13
- inspectReason: string | null;
14
- githubState: GitHubStatusState | null;
15
- vercelContext: string | null;
16
- }
17
- /** @deprecated Renamed — use VercelDeploymentLookupResult from vercel-api. */
18
- export type VercelInspectCommandResult = VercelDeploymentLookupResult;
19
- export type RunVercelDeploymentLookup = (target: string) => Promise<VercelDeploymentLookupResult>;
20
- /** @deprecated Renamed — use RunVercelDeploymentLookup. */
21
- export type RunVercelInspect = RunVercelDeploymentLookup;
22
- /**
23
- * Resolve the deployment lookup target. Never returns a vercel.com dashboard page URL.
24
- */
25
- export declare function resolveVercelInspectTarget(rawUrl: string | null | undefined): {
26
- target: string | null;
27
- classified: ClassifiedVercelUrl | null;
28
- reason: string | null;
29
- };
30
- export declare function evidenceFromGitHubVercelStatus(statuses: GitHubCommitStatusRow[] | null | undefined, options?: {
31
- observedAt?: string;
32
- }): VercelEvidenceResult;
33
- export interface CollectVercelEvidenceInput {
34
- statuses?: GitHubCommitStatusRow[] | null;
35
- /** When false, never call Vercel REST API (GitHub status only). Default path. */
36
- allowInspect?: boolean;
37
- /** @deprecated waitSeconds was for CLI inspect; ignored for API lookup. */
38
- waitSeconds?: number;
39
- runInspect?: RunVercelDeploymentLookup;
40
- observedAt?: string;
41
- }
42
- /**
43
- * Prefer GitHub Vercel StatusContext.state for gates. Call Vercel REST API only when
44
- * inspectable (deployment host or id), GitHub state is not terminal success, and
45
- * `allowInspect` is true with VERCEL_TOKEN configured.
46
- */
47
- export declare function collectVercelEvidence(input: CollectVercelEvidenceInput): Promise<VercelEvidenceResult>;
48
- export type { GitHubVercelStatusContext };
@@ -1,19 +0,0 @@
1
- export type GitHubStatusState = "success" | "pending" | "failure" | "error" | "unknown";
2
- export interface GitHubCommitStatusRow {
3
- context?: string | null;
4
- state?: string | null;
5
- target_url?: string | null;
6
- description?: string | null;
7
- }
8
- export interface GitHubVercelStatusContext {
9
- context: string;
10
- state: GitHubStatusState;
11
- targetUrl: string | null;
12
- description: string | null;
13
- deploymentId: string | null;
14
- previewUrl: string | null;
15
- dashboardUrl: string | null;
16
- }
17
- export declare function normalizeGitHubStatusState(state: unknown): GitHubStatusState;
18
- export declare function isVercelStatusContext(context: unknown): boolean;
19
- export declare function pickVercelStatusContext(statuses: GitHubCommitStatusRow[] | null | undefined): GitHubVercelStatusContext | null;
@@ -1,18 +0,0 @@
1
- export type VercelUrlKind = "deployment_host" | "dashboard" | "deployment_id" | "unknown";
2
- export interface ClassifiedVercelUrl {
3
- kind: VercelUrlKind;
4
- /** Original URL when it is a usable preview/deployment host. */
5
- previewUrl: string | null;
6
- /** Deployment id or host URL suitable for Vercel REST API lookup — never a dashboard page URL. */
7
- inspectTarget: string | null;
8
- /** Deployment id extracted from dashboard paths when present. */
9
- deploymentId: string | null;
10
- }
11
- /** True when the string is safe for Vercel REST API deployment lookup (never a dashboard page URL). */
12
- export declare function isInspectableVercelTarget(target: string): boolean;
13
- /**
14
- * Classify a Vercel-related URL from GitHub commit status target_url.
15
- * Vercel REST API accepts deployment ids and `*.vercel.app` hosts — not vercel.com dashboard links.
16
- */
17
- export declare function classifyVercelUrl(raw: string): ClassifiedVercelUrl;
18
- export declare function isDashboardVercelUrl(raw: string): boolean;
@@ -1,2 +0,0 @@
1
- /** Instruction block appended to verify_live harness dispatch tasks. */
2
- export declare function formatVerifyLiveCompletionContract(): string;
@@ -1,29 +0,0 @@
1
- import type { KynverUserConfig } from "./config.js";
2
- export type WorkerCapSource = "workspace_override" | "env" | "config" | "auto";
3
- export interface ResolvedWorkerCap {
4
- configuredMaxWorkers: number | null;
5
- autoCap: number;
6
- workerCapSource: WorkerCapSource;
7
- }
8
- export declare function resolveWorkerCap(input: {
9
- config?: KynverUserConfig;
10
- configuredMaxWorkersOverride?: number | null;
11
- totalMemBytes: number;
12
- env?: NodeJS.ProcessEnv;
13
- }): ResolvedWorkerCap;
14
- export interface SetupWorkerCapRecommendation {
15
- totalMemBytes: number;
16
- autoCap: number;
17
- recommendedMaxWorkers: number;
18
- diskPath: string;
19
- diskGateOk: boolean;
20
- diskFreeBytes: number | null;
21
- }
22
- /** RAM/disk-aware default for `kynver setup` when the operator omits --max-workers. */
23
- export declare function recommendSetupWorkerCap(input?: {
24
- totalMemBytes?: number;
25
- diskPath?: string;
26
- diskGateOk?: boolean;
27
- diskFreeBytes?: number | null;
28
- config?: KynverUserConfig;
29
- }): SetupWorkerCapRecommendation;
@@ -1,52 +0,0 @@
1
- /**
2
- * Worker spawn env scrub — harness workers must not inherit host deployment secrets.
3
- *
4
- * §7.8 hardening (kernel-plan H8 phase 1, verified leaks 2026-07-19): the
5
- * original denylist stopped at `_SECRET`/`_API_KEY`, letting `MEMORY_CONTENT_KEK`,
6
- * `LLM_BYOK_KEK`, `KYNVER_COMMAND_AUTH_KEY`, `KYNVER_INSTRUCTION_BUNDLE_KEY`,
7
- * and `KYNVER_MEMORY_LEDGER_KEY` reach worker children. The suffix net now
8
- * covers the secret-shaped families (`_KEK`, `_KEY`, `_TOKEN`, `_PASSWORD`,
9
- * `_PASSPHRASE`, `_SALT`) with EXPLICIT allows for the keys workers
10
- * legitimately need — pass-through is a documented decision, never an
11
- * accident:
12
- *
13
- * - `GITHUB_TOKEN` / `GH_TOKEN`: git-push + `gh` credential-helper auth for
14
- * the worker's own branch pushes.
15
- * - `CLAUDE_CODE_OAUTH_TOKEN`: the worker CLI's own auth on boxes that use
16
- * env-based OAuth instead of the credentials file (same trust domain as
17
- * `~/.claude` — it is the worker's credential, not a deployment secret).
18
- * - `*_PUBLIC_KEY`: public verification material (command-auth /
19
- * instruction-bundle / ledger pins), safe by definition.
20
- *
21
- * Operator escape hatch: `KYNVER_WORKER_ENV_ALLOW` on the host (comma- or
22
- * whitespace-separated key names) allows additional suffix-matched keys
23
- * through when a box workflow needs one — it can NEVER re-admit a key on the
24
- * exact forbidden list below (those are known deployment secrets).
25
- */
26
- /** Exact env keys that must never reach a worker child process (not overridable). */
27
- export declare const FORBIDDEN_WORKER_ENV_KEYS: readonly ["ANTHROPIC_API_KEY", "ANALYST_API_KEY", "RECRUITER_API_KEY", "AUTH_SECRET", "NEXTAUTH_SECRET", "DATABASE_URL", "PRODUCTION_DATABASE_URL", "KYNVER_PRODUCTION_DATABASE_URL", "REDIS_URL", "GOOGLE_CLIENT_SECRET", "GITHUB_CLIENT_SECRET", "KYNVER_API_KEY", "KYNVER_SERVICE_SECRET", "KYNVER_RUNTIME_SECRET", "KYNVER_CRON_SECRET", "OPENCLAW_CRON_SECRET", "QSTASH_TOKEN", "QSTASH_CURRENT_SIGNING_KEY", "QSTASH_NEXT_SIGNING_KEY", "TOOL_SECRETS_KEK", "TOOL_EXECUTOR_DISPATCH_SECRET", "CLOUDFLARE_API_TOKEN", "STRIPE_SECRET_KEY", "STRIPE_WEBHOOK_SECRET", "STRIPE_IDENTITY_WEBHOOK_SECRET", "VOYAGE_API_KEY", "PERPLEXITY_API_KEY", "FRED_API_KEY", "FMP_API_KEY", "CURSOR_API_KEY", "MEMORY_CONTENT_KEK", "LLM_BYOK_KEK", "KYNVER_COMMAND_AUTH_KEY", "KYNVER_INSTRUCTION_BUNDLE_KEY", "KYNVER_MEMORY_LEDGER_KEY", "KYNVER_JWKS_PRIVATE_KEY_JWK"];
28
- /** Suffix-matched keys workers legitimately need — explicit decisions, see module doc. */
29
- export declare const ALLOWED_WORKER_ENV_KEYS: readonly ["GITHUB_TOKEN", "GH_TOKEN", "CLAUDE_CODE_OAUTH_TOKEN"];
30
- /** Host env var naming extra suffix-matched keys to allow through (comma/whitespace separated). */
31
- export declare const KYNVER_WORKER_ENV_ALLOW = "KYNVER_WORKER_ENV_ALLOW";
32
- export declare function isForbiddenWorkerEnvKey(key: string, opts?: {
33
- operatorAllow?: ReadonlySet<string>;
34
- }): boolean;
35
- export declare function listForbiddenWorkerEnvKeys(env: NodeJS.ProcessEnv): string[];
36
- /**
37
- * §7.8 review A3 — audit visibility for the escape hatch: the operator-allow
38
- * entries that are PRESENT in this env and would be scrubbed without the
39
- * hatch (key names only, never values). An armed hatch must be visible on
40
- * audit surfaces, not silently absent from the forbidden list.
41
- */
42
- export declare function listOperatorAllowedWorkerEnvKeys(env: NodeJS.ProcessEnv): string[];
43
- export declare function scrubWorkerEnv(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
44
- export interface WorkerEnvAudit {
45
- forbiddenPresent: string[];
46
- safe: boolean;
47
- /** Present (non-empty) only when the KYNVER_WORKER_ENV_ALLOW hatch is armed for live keys. */
48
- operatorAllowedActive?: string[];
49
- }
50
- export declare function auditWorkerEnv(env: NodeJS.ProcessEnv): WorkerEnvAudit;
51
- /** @deprecated Use {@link scrubWorkerEnv} — kept for existing imports from git.ts */
52
- export declare function scrubClaudeEnv(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
@@ -1,5 +0,0 @@
1
- export type WorkerExecutionMode = "write" | "read_only";
2
- export declare function resolveWorkerExecutionMode(task: {
3
- description?: unknown;
4
- executorRef?: unknown;
5
- }): WorkerExecutionMode;
@@ -1 +0,0 @@
1
- export declare function extractEmbeddedWorkerFinalResultRecord(value: string): Record<string, unknown> | null;
@@ -1,15 +0,0 @@
1
- import type { HarnessWorkerRecord } from "./status.js";
2
- export interface ResolveWorkerLeaseForCallbackInput {
3
- worker: HarnessWorkerRecord;
4
- agentOsId: string;
5
- baseUrl?: string;
6
- secret?: string;
7
- }
8
- /**
9
- * Ensure completion/renewal uses the same lease token the board holds for this
10
- * worker's task. Persists a fetched token onto worker.json when missing locally.
11
- */
12
- export declare function resolveWorkerLeaseForCallback(input: ResolveWorkerLeaseForCallbackInput): Promise<{
13
- leaseOwner: string | null;
14
- leaseToken: string | null;
15
- }>;
@@ -1,28 +0,0 @@
1
- import type { HarnessWorkerRecord, RawHarnessWorkerStatus } from "./status.js";
2
- export interface CompletionSnapshot {
3
- finalResult?: unknown;
4
- prUrl?: string | null;
5
- summary?: string | null;
6
- }
7
- export declare function isCompletionAcknowledged(worker: HarnessWorkerRecord): boolean;
8
- export declare function completionSnapshotFromStatus(status: RawHarnessWorkerStatus): CompletionSnapshot;
9
- /**
10
- * Persist local terminal lifecycle after AgentOS acknowledges harness completion.
11
- * Prevents a later PID reuse or still-running wrapper from re-reporting the worker
12
- * as `running` once the board task has advanced.
13
- */
14
- export declare function persistCompletionAcknowledged(worker: HarnessWorkerRecord, status: RawHarnessWorkerStatus, opts?: {
15
- source?: string;
16
- }): void;
17
- /**
18
- * When the board task has left `running` but the local worker still looks live
19
- * (common after server-side completion reconcile), mirror the terminal lifecycle
20
- * on disk so harness status matches AgentOS.
21
- */
22
- export declare function syncCompletionAcknowledgedFromOperatorTick(runId: string, operatorTick: unknown): Array<{
23
- worker: string;
24
- taskId: string;
25
- taskStatus: string;
26
- }>;
27
- /** Reload helper for callers that already hold a worker name. */
28
- export declare function acknowledgeWorkerIfBoardTaskAdvanced(runId: string, workerName: string, operatorTick: unknown): boolean;
@@ -1,26 +0,0 @@
1
- /** True when a persisted harness path contains the historical `runs/runs` segment. */
2
- export declare function hasNestedRunsSegment(filePath: string): boolean;
3
- /**
4
- * Rewrite a nested `.../runs/runs/<runId>/...` path to canonical `.../runs/<runId>/...`.
5
- * Returns the input unchanged when no nested segment is present.
6
- */
7
- export declare function repairNestedRunsPath(filePath: string, harnessRoot: string): string;
8
- export declare function canonicalRunDir(harnessRoot: string, runId: string): string;
9
- export declare function canonicalWorkerDir(harnessRoot: string, runId: string, workerName: string): string;
10
- /** Historical mistaken layout when harness root ended in `/runs`. */
11
- export declare function legacyNestedWorkerDir(harnessRoot: string, runId: string, workerName: string): string;
12
- export declare function workerArtifactFileNames(): readonly string[];
13
- export declare function workerArtifactPaths(workerDir: string): {
14
- workerJsonPath: string;
15
- stdoutPath: string;
16
- stderrPath: string;
17
- heartbeatPath: string;
18
- lastStatusPath: string;
19
- };
20
- /** Resolve the best on-disk worker.json path for a run worker entry. */
21
- export declare function resolveWorkerJsonPath(input: {
22
- harnessRoot: string;
23
- runId: string;
24
- workerName: string;
25
- statusPath?: string;
26
- }): string;
@@ -1,21 +0,0 @@
1
- import { repairMissingRunMetadata } from "./run-metadata-retention.js";
2
- export interface WorkerMetadataReconcileOutcome {
3
- runId: string;
4
- worker: string;
5
- action: "materialized_run_symlink" | "repaired_run_index" | "repaired_worker_paths" | "relocated_artifacts" | "synthesized_worker_json" | "marked_abandoned" | "skipped";
6
- reason: string;
7
- }
8
- export interface WorkerMetadataReconcileResult {
9
- workers: WorkerMetadataReconcileOutcome[];
10
- runMetadataRetention: ReturnType<typeof repairMissingRunMetadata>;
11
- }
12
- /**
13
- * Repair historical harness worker metadata:
14
- * - fix run.json index paths that still reference nested `runs/runs`
15
- * - relocate split artifacts into canonical worker dirs
16
- * - synthesize missing worker.json from last-status/heartbeat/stdout when possible
17
- * - mark empty abandoned worker dirs truthfully
18
- */
19
- export declare function reconcileWorkerMetadata(): WorkerMetadataReconcileResult;
20
- /** JSON summary for CLI / verifier scripts. */
21
- export declare function reconcileWorkerMetadataCli(): void;
@@ -1,45 +0,0 @@
1
- export declare function tryCompleteWorker(args: Record<string, string | boolean>): Promise<{
2
- ok: boolean;
3
- skipped?: boolean;
4
- reason?: string;
5
- nextAction?: string;
6
- httpStatus?: number;
7
- response?: unknown;
8
- completionBlocked?: boolean;
9
- prHandoff?: {
10
- prUrl?: string;
11
- created?: boolean;
12
- };
13
- }>;
14
- export declare function completeWorker(args: Record<string, string | boolean>): Promise<void>;
15
- export declare function workerStatus(args: Record<string, string | boolean>): void;
16
- export declare function workerList(args: Record<string, string | boolean>): void;
17
- type RunBoardWorker = Record<string, unknown> & {
18
- worker: string;
19
- status?: string;
20
- attention?: string;
21
- lifecycleStage?: string | null;
22
- lastActivityAt?: string | null;
23
- };
24
- interface RunBoard {
25
- runId: string;
26
- name: string;
27
- status: string;
28
- repo: string;
29
- workerCount: number;
30
- needsAttention: string[];
31
- workers: RunBoardWorker[];
32
- projection?: "compact" | "full";
33
- activeFilters?: Record<string, string | boolean>;
34
- resultContract?: Record<string, unknown>;
35
- drilldownCommands?: Record<string, string>;
36
- summary?: Record<string, unknown>;
37
- controller?: Record<string, unknown>;
38
- }
39
- export declare function buildRunBoard(runId: string): RunBoard;
40
- export declare function buildCompactRunBoard(runId: string): RunBoard;
41
- export declare function publishHarnessBoardSnapshot(args: Record<string, string | boolean>, source: string): Promise<Record<string, unknown> | null>;
42
- export declare function runStatus(args: Record<string, string | boolean>): void;
43
- export declare function tailWorker(args: Record<string, string | boolean>): void;
44
- export declare function stopWorker(args: Record<string, string | boolean>): void;
45
- export {};
@@ -1,29 +0,0 @@
1
- export declare const WORKER_PERSONA_DISPATCH_LANES: readonly ["implementation", "review", "landing"];
2
- export type WorkerPersonaDispatchLane = (typeof WORKER_PERSONA_DISPATCH_LANES)[number];
3
- export declare const WORKER_PERSONA_DEFAULT_ROLE_LANES: readonly ["plan_author", "implementer", "report_reviewer", "deep_reviewer", "runtime_verifier", "system"];
4
- export type WorkerPersonaDefaultRoleLane = (typeof WORKER_PERSONA_DEFAULT_ROLE_LANES)[number];
5
- export interface WorkerPersonaCatalogEntry {
6
- slug: string;
7
- displayName: string;
8
- description: string;
9
- /** Harness dispatch lane reserved for this persona (null = orchestration / no dispatch). */
10
- dispatchLane: WorkerPersonaDispatchLane | null;
11
- /** Default plan progress role when enriching harness tasks. */
12
- defaultRoleLane: WorkerPersonaDefaultRoleLane;
13
- }
14
- /**
15
- * Embedded structural catalog (slugs, display names, lanes; generic
16
- * descriptions). Lane-derivation helpers use this so dispatch semantics are
17
- * stable regardless of bundle state.
18
- */
19
- export declare const WORKER_PERSONA_CATALOG: readonly WorkerPersonaCatalogEntry[];
20
- export type WorkerPersonaCatalogSlug = (typeof WORKER_PERSONA_CATALOG)[number]["slug"];
21
- export declare function getWorkerPersonaCatalogEntry(slug: string | null | undefined): WorkerPersonaCatalogEntry | null;
22
- /** Dispatch lane reserved for a persona; null when orchestration-only or unknown. */
23
- export declare function getPersonaDispatchLane(slug: string | null | undefined): WorkerPersonaDispatchLane | null;
24
- export declare function getPersonaDefaultRoleLane(slug: string | null | undefined): WorkerPersonaDefaultRoleLane | null;
25
- export declare function isKnownWorkerPersonaSlug(slug: string | null | undefined): boolean;
26
- /** Personas whose harness dispatch lane is `review` (derived — do not hardcode slugs). */
27
- export declare function workerPersonaReviewSlugs(): readonly WorkerPersonaCatalogSlug[];
28
- /** Personas whose harness dispatch lane is `landing` (derived — do not hardcode slugs). */
29
- export declare function workerPersonaLandingSlugs(): readonly WorkerPersonaCatalogSlug[];
@@ -1,43 +0,0 @@
1
- import type { ModelRoutingDecision } from "./model-routing.js";
2
- /** Default harness worker CLI provider when the operator expressed no preference anywhere. */
3
- export declare const DEFAULT_WORKER_PROVIDER = "cursor";
4
- /** Normalize an operator-supplied worker provider name to its canonical key. */
5
- export declare function normalizeWorkerProviderName(name: string): string;
6
- export declare function isClaudeFamilyProvider(provider: string | null | undefined): boolean;
7
- /**
8
- * True when the board row explicitly opts into a Claude/Opus worker
9
- * (operator override on the task).
10
- */
11
- export declare function taskAllowsClaudeWorker(task: Record<string, unknown> | null | undefined): boolean;
12
- export interface EnforceCursorWorkerProviderInput {
13
- routing: ModelRoutingDecision;
14
- task?: Record<string, unknown> | null;
15
- /** Per-invocation `--provider` from the harness CLI. */
16
- explicitProvider?: string | null;
17
- /** When true, `--provider claude` is treated as an operator run override. */
18
- explicitProviderIsOperatorOverride?: boolean;
19
- }
20
- /**
21
- * True when the board row expresses ANY worker-provider preference (not just
22
- * Claude): `workerProviderOverride`, an executorRef `provider:*` intent, or the
23
- * Claude override markers handled by {@link taskAllowsClaudeWorker}.
24
- */
25
- export declare function taskExpressesWorkerProviderPreference(task: Record<string, unknown> | null | undefined): boolean;
26
- /**
27
- * W2b routing authority: the Cursor coercion is a *default-only* fallback.
28
- * An operator preference expressed anywhere — explicit CLI `--provider`,
29
- * explicit CLI model (incl. provider aliases), executorRef provider intent,
30
- * factory `provider:*` routing, or task override markers — is authoritative
31
- * and never rewritten. Only preference-free Claude-family routing (e.g. the
32
- * global default model inferring Claude) is coerced to the Cursor default.
33
- */
34
- export declare function enforceCursorWorkerProvider(input: EnforceCursorWorkerProviderInput): ModelRoutingDecision;
35
- /**
36
- * Resolve the configured worker provider. W2b: `config.workerProvider` is the
37
- * operator's explicit choice and is honored verbatim (after alias
38
- * normalization) — the legacy behavior of downgrading Claude-family configs to
39
- * Cursor is removed. Only an EMPTY config falls back to the Cursor default.
40
- */
41
- export declare function resolveConfiguredWorkerProvider(configured: string | null | undefined, fallback?: string): string;
42
- /** Plan / Command Center executor lists — Cursor wins when both families appear. */
43
- export declare function preferCursorExecutor(executors: string[]): string[];
@@ -1,20 +0,0 @@
1
- import type { ParsedStreamUsage } from "./stream.js";
2
- export interface WorkerUsagePayload {
3
- provider: string;
4
- model: string | null;
5
- inputTokens: number | null;
6
- outputTokens: number | null;
7
- }
8
- export interface ResolveWorkerUsageInput {
9
- /** Usage parsed from the worker's stream output (null/undefined → no payload). */
10
- usage?: ParsedStreamUsage | null;
11
- /** Provider key frozen at spawn (worker.json), falling back to status readback. */
12
- provider?: string | null;
13
- /** Launch model from worker.json — used when the stream did not name a model. */
14
- model?: string | null;
15
- }
16
- /**
17
- * Build the completion `workerUsage` payload, or null when the provider
18
- * reported no token usage (the field is then omitted from the POST entirely).
19
- */
20
- export declare function resolveWorkerUsagePayload(input: ResolveWorkerUsageInput): WorkerUsagePayload | null;
@@ -1,10 +0,0 @@
1
- export interface WorkspaceRuntimePreferences {
2
- maxConcurrentWorkers: number | null;
3
- }
4
- export declare function shouldApplyWorkspaceRuntimePreferences(env?: NodeJS.ProcessEnv): boolean;
5
- export declare function configuredMaxWorkersOverrideForBox(preferences: WorkspaceRuntimePreferences | null | undefined, env?: NodeJS.ProcessEnv): number | undefined;
6
- /**
7
- * Pull the Command Center worker cap each pipeline tick so the daemon honors
8
- * workspace settings without restarting or editing ~/.kynver/config.json.
9
- */
10
- export declare function fetchWorkspaceRuntimePreferences(agentOsId: string, args: Record<string, string | boolean>): Promise<WorkspaceRuntimePreferences | null>;
@@ -1,34 +0,0 @@
1
- /**
2
- * Worktree base-ref resolution + self-heal.
3
- *
4
- * Live incident (7-day event breakdown, 2026-08-05): 75 of 82 spawn-failure
5
- * claim releases — 91% of the week's compensator load — were
6
- * `git worktree add … unknown failed: fatal: invalid reference: unknown`.
7
- * The run-metadata repair path (`run-metadata-retention.ts`) synthesizes
8
- * rebuilt run.json records with `baseCommit: "unknown"`, and the supervisor
9
- * passed that literal to git; every spawn in a repaired run then failed
10
- * forever, each failure burning an attempt (the failure text was not
11
- * infrastructure-classified) and minting over-attempt recovery children.
12
- *
13
- * This resolver picks the first candidate ref that git can verify —
14
- * the recorded baseCommit (unless it is the known-invalid marker), the
15
- * run's base branch, `origin/main`, `origin/HEAD` — and reports when the
16
- * pick differs from the record so the caller can PERSIST the repair
17
- * (self-heal: one resolution fixes the run for all subsequent spawns).
18
- */
19
- /** Marker the metadata-repair path historically stamped on rebuilt runs. */
20
- export declare const INVALID_BASE_COMMIT_MARKER = "unknown";
21
- export interface ResolveWorktreeBaseRefInput {
22
- baseCommit?: string | null;
23
- base?: string | null;
24
- /** Verify a ref resolves to a commit; injectable for tests. */
25
- verifyRef: (ref: string) => boolean;
26
- }
27
- export interface ResolvedWorktreeBaseRef {
28
- ref: string;
29
- /** True when the pick differs from the recorded baseCommit — persist it. */
30
- repaired: boolean;
31
- /** Which candidate won (for the spawn log). */
32
- source: "baseCommit" | "base" | "origin/main" | "origin/HEAD";
33
- }
34
- export declare function resolveWorktreeBaseRef(input: ResolveWorktreeBaseRefInput): ResolvedWorktreeBaseRef;
@@ -1,17 +0,0 @@
1
- export type WorktreeCompletionHandoffState = "clean" | "pr_handoff" | "commit_handoff" | "dirty_worktree" | "dirty_worktree_no_pr";
2
- export interface WorktreeCompletionHandoffInput {
3
- changedFiles?: unknown;
4
- finalResult?: unknown;
5
- prUrl?: string | null;
6
- headCommit?: string | null;
7
- artifactBundlePath?: string | null;
8
- patchPath?: string | null;
9
- disposableArtifactsRemoved?: string[] | null;
10
- }
11
- export interface WorktreeCompletionHandoffVerdict {
12
- allowed: boolean;
13
- state: WorktreeCompletionHandoffState;
14
- materialDirtyCount: number;
15
- detail?: string;
16
- }
17
- export declare function assessWorktreeCompletionHandoff(input: WorktreeCompletionHandoffInput): WorktreeCompletionHandoffVerdict;
@@ -1,44 +0,0 @@
1
- import { loadRun, runDirectory, saveRun } from "./run-store.js";
2
- export interface CreatedRunInfo {
3
- runId: string;
4
- runDir: string;
5
- repo: string;
6
- base: string;
7
- baseCommit: string;
8
- }
9
- export type RunBaseRefSource = "flag" | "env" | "config" | "origin/main" | "remote-head";
10
- export interface ResolveRunBaseRefInput {
11
- /** `--base` on the command line. */
12
- explicitBase?: string;
13
- /** `KYNVER_RUN_BASE_REF` env override. */
14
- envBaseRef?: string;
15
- /** `defaultBase` from `~/.kynver/config.json`. */
16
- configDefaultBase?: string;
17
- /** Verify a ref resolves to a commit in the repo; injectable for tests. */
18
- verifyRef: (ref: string) => boolean;
19
- /** Resolve the remote default branch (e.g. `origin/master`); injectable for tests. */
20
- resolveRemoteHeadRef: () => string | null;
21
- /** Repo path for error messages. */
22
- repoLabel?: string;
23
- }
24
- export interface ResolvedRunBaseRef {
25
- base: string;
26
- source: RunBaseRefSource;
27
- /** Human note when the pick was a fallback (never fall back silently). */
28
- note?: string;
29
- }
30
- /**
31
- * Resolve the base ref a new run is cut from. Precedence: `--base` flag >
32
- * `KYNVER_RUN_BASE_REF` env > config `defaultBase` > `origin/main` > the
33
- * remote HEAD default branch. An EXPLICIT override (flag/env/config) that
34
- * does not verify is an error — never silently substituted with another ref.
35
- * When `origin/main` is absent (repos whose default branch is `master`,
36
- * `develop`, …) the remote HEAD fallback is used with a visible note; when
37
- * nothing resolves the error names everything tried plus the fix.
38
- */
39
- export declare function resolveRunBaseRef(input: ResolveRunBaseRefInput): ResolvedRunBaseRef;
40
- /** Resolve the remote default branch without hitting `git remote show` (porcelain-free). */
41
- export declare function resolveRemoteHeadRefForRepo(repo: string): string | null;
42
- export declare function createRun(args: Record<string, string | boolean>): CreatedRunInfo;
43
- export declare function listRuns(): void;
44
- export { loadRun, saveRun, runDirectory };
@@ -1,31 +0,0 @@
1
- import { type WslCrashDumpObservation } from "./wsl-crash-dumps.js";
2
- export interface WslCrashDumpCleanupResult {
3
- observation: WslCrashDumpObservation | null;
4
- execute: boolean;
5
- keepNewest: number;
6
- removed: Array<{
7
- path: string;
8
- bytes: number;
9
- name: string;
10
- }>;
11
- removedBytes: number;
12
- skipped: Array<{
13
- path: string;
14
- reason: string;
15
- }>;
16
- }
17
- export interface WslCrashDumpCleanupOptions {
18
- execute?: boolean;
19
- /** Keep this many newest dumps; remove the rest when execute=true. */
20
- keepNewest?: number;
21
- /** When true, remove all dumps regardless of keepNewest (operator purge). */
22
- purgeAll?: boolean;
23
- forceWsl?: boolean;
24
- }
25
- /**
26
- * Prune Windows-side WSL crash dumps. Dry-run by default; pass execute=true
27
- * or `KYNVER_WSL_CRASH_DUMP_EXECUTE=1` to unlink files.
28
- */
29
- export declare function cleanupWslCrashDumps(options?: WslCrashDumpCleanupOptions): WslCrashDumpCleanupResult;
30
- /** True when automatic cleanup should run during harness retention sweeps. */
31
- export declare function shouldAutoCleanupWslCrashDumps(observation: WslCrashDumpObservation | null): boolean;
@@ -1 +0,0 @@
1
- export declare function runWslCrashesCli(args: Record<string, string | boolean>): void;