@kynver-app/runtime 0.2.24 → 0.2.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,26 +0,0 @@
1
- export interface HarnessStorageSnapshot {
2
- harnessRoot: string;
3
- worktreesDir: string;
4
- /** Sum of per-run directory sizes. `null` when scan exceeded entry cap. */
5
- worktreesBytes: number | null;
6
- /** Top-level run directory count under `worktreesDir`. */
7
- runCount: number;
8
- /** Total worktree (worker) directories across all runs. */
9
- workerCount: number;
10
- /** Earliest run-directory mtime, ISO string. `null` when no runs present. */
11
- oldestRunAt: string | null;
12
- scannedAt: string;
13
- }
14
- interface ScanOptions {
15
- harnessRoot?: string;
16
- /** Cap per directorySizeBytes call. Default 50k entries — keeps the snapshot fast for monitor ticks. Set null/0 to return bytes=null without scanning. */
17
- perRunEntryCap?: number | null;
18
- now?: number;
19
- }
20
- /**
21
- * Read-only summary of harness worktree storage usage. Surfaced in cleanup
22
- * summaries and consumable by monitor/Command Center to flag disk pressure
23
- * before WSL runs out of space again.
24
- */
25
- export declare function harnessStorageSnapshot(opts?: ScanOptions): HarnessStorageSnapshot;
26
- export {};
@@ -1 +0,0 @@
1
- export declare function runHarnessVerifyCli(args: Record<string, string | boolean>): void;
@@ -1,30 +0,0 @@
1
- import { type BoundedBuildExecResult } from "./bounded-build/index.js";
2
- /** Default expensive checks for harness / plan runtime verification. */
3
- export declare const DEFAULT_HARNESS_VERIFY_COMMANDS: readonly ["npm run typecheck", "npm run test"];
4
- export interface HarnessVerifyStep {
5
- command: string;
6
- result: BoundedBuildExecResult;
7
- }
8
- export interface HarnessVerifySummary {
9
- passed: boolean;
10
- steps: HarnessVerifyStep[];
11
- }
12
- /**
13
- * Run plan/harness verification commands through the cross-process heavy-verification
14
- * gate and memory-bounded subprocess execution. Parallel workers queue here instead
15
- * of launching simultaneous typecheck/build commands.
16
- */
17
- export declare function runHarnessVerifyCommands(cwd: string, commands?: readonly string[], opts?: {
18
- waitForAdmissionMs?: number;
19
- timeoutMs?: number;
20
- /** Called synchronously before each command starts — safe for stderr progress logs. */
21
- onBeforeCommand?: (cmd: string, index: number, total: number) => void;
22
- /**
23
- * Stop after the first failing command (plan §7.5): a failed typecheck
24
- * already fails the verify — running the full test suite after it wastes
25
- * minutes of box time per broken-typecheck landing. Default ON; pass
26
- * false to force every command (e.g. a diagnostics lane that wants the
27
- * complete failure picture).
28
- */
29
- failFast?: boolean;
30
- }): HarnessVerifySummary;
@@ -1,12 +0,0 @@
1
- import type { HarnessWorkerRecord } from "./status.js";
2
- /**
3
- * PID existence is not enough on long-running hosts: Linux can reuse an old
4
- * worker PID for an unrelated process, which makes stale worker.json records
5
- * look alive and can falsely saturate the global worker gate.
6
- */
7
- export declare function workerProcessMatchesRecord(worker: HarnessWorkerRecord): boolean;
8
- /**
9
- * Whether a worker still occupies a machine-wide harness capacity slot.
10
- * Ignores completion-acknowledged workers even when the recorded PID was reused.
11
- */
12
- export declare function isActiveHarnessWorker(worker: HarnessWorkerRecord): boolean;
@@ -1,12 +0,0 @@
1
- export declare function isPathUnderHarnessWorktree(cwd: string): boolean;
2
- export type HarnessWorktreeBuildGuardVerdict = {
3
- ok: true;
4
- } | {
5
- ok: false;
6
- reason: string;
7
- };
8
- /**
9
- * Prevent root-owned generated caches: npm/build as uid 0 inside harness worktrees
10
- * creates node_modules/.next the daemon user cannot reclaim during cleanup.
11
- */
12
- export declare function assessHarnessWorktreeBuildGuard(cwd: string): HarnessWorktreeBuildGuardVerdict;
@@ -1,5 +0,0 @@
1
- /**
2
- * Prefer an explicit heartbeat `finalResult`, else structured JSON embedded in
3
- * `summary`, else the summary string (legacy contract).
4
- */
5
- export declare function terminalFinalResultFromHeartbeatRow(row: Record<string, unknown>): unknown;
@@ -1,27 +0,0 @@
1
- import type { RuntimeBoxResourceSnapshot, RuntimeBoxResourceSnapshotPrEvidence } from "./box-resource-snapshot.js";
2
- export interface ParsedHeartbeat {
3
- heartbeatCount: number;
4
- lastHeartbeatAt: string | null;
5
- lastHeartbeatPhase: string | null;
6
- lastHeartbeatSummary: string | null;
7
- /** Structured finalResult from the terminal `phase: complete` heartbeat line. */
8
- terminalFinalResult: unknown;
9
- heartbeatBlocker: string | null;
10
- timestampAnomalies: ParsedHeartbeatTimestampAnomaly[];
11
- lastBoxResourceSnapshot: RuntimeBoxResourceSnapshot | null;
12
- lastPrEvidence: RuntimeBoxResourceSnapshotPrEvidence[];
13
- }
14
- export interface ParsedHeartbeatTimestampAnomaly {
15
- kind: "future_heartbeat_timestamp";
16
- observedAt: string;
17
- clampedTo: string;
18
- }
19
- /** Worker contract: append `phase: "complete"` when productively finished. */
20
- export declare function isTerminalHeartbeatPhase(phase: string | null | undefined): boolean;
21
- /**
22
- * When stdout has no stream-json `result` yet (common for Cursor workers mid-exit),
23
- * treat the worker's completion heartbeat as a synthetic final result so lifecycle
24
- * sync, completion replay, and resource gates advance.
25
- */
26
- export declare function terminalFinalResultFromHeartbeat(heartbeat: ParsedHeartbeat): unknown;
27
- export declare function parseHeartbeat(file: string): ParsedHeartbeat;
@@ -1,9 +0,0 @@
1
- export type HeavyCommandClass = "full_typecheck" | "full_build" | "vercel_verify" | "paid_compute" | "allowed";
2
- export interface HeavyCommandClassification {
3
- heavy: boolean;
4
- commandClass: HeavyCommandClass;
5
- reason: string | null;
6
- }
7
- /** Pure classifier — unit-tested. */
8
- export declare function classifyHeavyShellCommand(command: string): HeavyCommandClassification;
9
- export declare const HEAVY_VERIFICATION_TOKEN_REQUIRED: "heavy_verification_token_required";
@@ -1,10 +0,0 @@
1
- import { assessHeavyVerificationGate, tryAcquireHeavyVerificationSlot, type HeavyVerificationGateVerdict } from "./slot.js";
2
- export declare function sleepMs(ms: number): void;
3
- /**
4
- * Poll until a heavy-verification slot is acquired or timeout elapses.
5
- * Serializes expensive typecheck/build across harness worker processes.
6
- */
7
- export declare function waitForHeavyVerificationSlot(command: string, timeoutMs: number, pollMs?: number, opts?: Parameters<typeof tryAcquireHeavyVerificationSlot>[1]): HeavyVerificationGateVerdict & {
8
- slotId: string | null;
9
- };
10
- export { assessHeavyVerificationGate, type HeavyVerificationGateVerdict };
@@ -1,5 +0,0 @@
1
- export { DEFAULT_HEAVY_VERIFICATION_MAX_CONCURRENT, DEFAULT_HEAVY_VERIFICATION_STALE_MS, assessHeavyVerificationGate, countActiveHeavyVerificationSlots, isHeavyVerificationGateSkipped, listActiveHeavyVerificationSlots, reclaimStaleHeavyVerificationSlots, releaseHeavyVerificationSlot, resolveHeavyVerificationMaxConcurrent, tryAcquireHeavyVerificationSlot, type HeavyVerificationGateVerdict, type HeavyVerificationSlotRecord, } from "./slot.js";
2
- export { waitForHeavyVerificationSlot } from "./gate.js";
3
- export { classifyHeavyShellCommand, HEAVY_VERIFICATION_TOKEN_REQUIRED, type HeavyCommandClassification, type HeavyCommandClass, } from "./command-classify.js";
4
- export { gateWorkerShellCommand, type GateWorkerShellCommandOpts, type WorkerCommandGateOutcome, type WorkerCommandGateResult, } from "./worker-command-gate.js";
5
- export { ensureHeavyVerificationDirs, heavyVerificationSlotsDir, resolveHeavyVerificationRoot, } from "./paths.js";
@@ -1,3 +0,0 @@
1
- export declare function resolveHeavyVerificationRoot(): string;
2
- export declare function heavyVerificationSlotsDir(): string;
3
- export declare function ensureHeavyVerificationDirs(): string;
@@ -1,49 +0,0 @@
1
- /** Reclaim slots held by dead PIDs or long-running orphans. */
2
- export declare const DEFAULT_HEAVY_VERIFICATION_STALE_MS: number;
3
- /** Default global cap — serialize typecheck/build across harness workers. */
4
- export declare const DEFAULT_HEAVY_VERIFICATION_MAX_CONCURRENT = 1;
5
- export interface HeavyVerificationSlotRecord {
6
- slotId: string;
7
- pid: number;
8
- acquiredAt: string;
9
- command: string;
10
- }
11
- export interface HeavyVerificationGateVerdict {
12
- admitted: boolean;
13
- slotId: string | null;
14
- activeSlots: number;
15
- maxSlots: number;
16
- reason: string | null;
17
- }
18
- export declare function isHeavyVerificationGateSkipped(): boolean;
19
- export declare function resolveHeavyVerificationMaxConcurrent(): number;
20
- /** Remove dead/orphan slot files before admission attempts. */
21
- export declare function reclaimStaleHeavyVerificationSlots(opts?: {
22
- slotsDir?: string;
23
- staleMs?: number;
24
- }): number;
25
- export declare function listActiveHeavyVerificationSlots(opts?: {
26
- slotsDir?: string;
27
- staleMs?: number;
28
- }): HeavyVerificationSlotRecord[];
29
- export declare function countActiveHeavyVerificationSlots(opts?: {
30
- slotsDir?: string;
31
- staleMs?: number;
32
- }): number;
33
- /**
34
- * Try to acquire one heavy-verification slot using fixed index files (`slot-0.json`, …)
35
- * and exclusive `wx` create. Avoids count-then-UUID TOCTOU races under burst dispatch.
36
- */
37
- export declare function tryAcquireHeavyVerificationSlot(command: string, opts?: {
38
- slotsDir?: string;
39
- staleMs?: number;
40
- maxSlots?: number;
41
- }): HeavyVerificationGateVerdict;
42
- export declare function releaseHeavyVerificationSlot(slotId: string | null | undefined, opts?: {
43
- slotsDir?: string;
44
- }): void;
45
- export declare function assessHeavyVerificationGate(command: string, opts?: {
46
- slotsDir?: string;
47
- staleMs?: number;
48
- maxSlots?: number;
49
- }): HeavyVerificationGateVerdict;
@@ -1,23 +0,0 @@
1
- import { classifyHeavyShellCommand, HEAVY_VERIFICATION_TOKEN_REQUIRED } from "./command-classify.js";
2
- import { type HeavyVerificationGateVerdict } from "./slot.js";
3
- export { HEAVY_VERIFICATION_TOKEN_REQUIRED };
4
- export type WorkerCommandGateOutcome = typeof HEAVY_VERIFICATION_TOKEN_REQUIRED | "allowed" | "heavy_verification_skipped";
5
- export interface WorkerCommandGateResult {
6
- allowed: boolean;
7
- outcome: WorkerCommandGateOutcome;
8
- commandClass: ReturnType<typeof classifyHeavyShellCommand>["commandClass"];
9
- reason: string;
10
- verificationGate: HeavyVerificationGateVerdict & {
11
- slotId: string | null;
12
- };
13
- }
14
- export interface GateWorkerShellCommandOpts {
15
- /** Max ms to wait for a heavy-verification slot (0 = fail fast). */
16
- waitMs?: number;
17
- pollMs?: number;
18
- }
19
- /**
20
- * Gate a shell command before spawn. Heavy commands require an admitted slot;
21
- * denied attempts return a typed refusal (never a silent hang).
22
- */
23
- export declare function gateWorkerShellCommand(command: string, opts?: GateWorkerShellCommandOpts): WorkerCommandGateResult;
package/dist/index.d.ts DELETED
@@ -1,88 +0,0 @@
1
- export { PACKAGE_VERSION } from "./package-version.js";
2
- export { MEMORY_COST_PACKAGE_MIN_VERSIONS, MEMORY_COST_MANAGED_PACKAGES, MemoryCostPackageVersionGuardError, assertMemoryCostPackageVersionGuard, compareSemver, evaluateMemoryCostPackageVersionGuard, formatMemoryCostPackageGuardError, probeRepoPackageVersions, semverAtLeast, type MemoryCostManagedPackageName, type MemoryCostPackageGuardResult, type MemoryCostPackageGuardRow, } from "./memory-cost-package-version-guard.js";
3
- export { buildMemoryCostPackageGuardInput, enforceMemoryCostPackageGuardAtStartup, evaluateMemoryCostPackageGuardAtStartup, shouldEnforceMemoryCostPackageGuardCli, } from "./memory-cost-package-version-guard-enforce.js";
4
- export { buildDispatchTaskText, dispatchRun, DEFAULT_DISPATCH_LEASE_MS } from "./dispatch.js";
5
- export { observeRunnerDiskGate } from "./disk-gate.js";
6
- export { isWslHost, observeWslHostDisk, summarizeWslRecoverySteps, DEFAULT_WSL_HOST_MOUNT, DEFAULT_WSL_HOST_WARN_FREE_BYTES, DEFAULT_WSL_HOST_CRITICAL_FREE_BYTES, type WslHostDiskShape, } from "./wsl-host.js";
7
- export { observeWslCrashDumps, parseWslCrashDumpFilename, readKernelCorePattern, readWslConfigCrashDumpSettings, resolveWslCrashDumpDir, resolveWslWindowsUsername, summarizeWslCrashDumpRecoverySteps, DEFAULT_WSL_CRASH_DUMP_WARN_BYTES, DEFAULT_WSL_CRASH_DUMP_CRITICAL_BYTES, type WslCrashDumpFile, type WslCrashDumpObservation, } from "./wsl-crash-dumps.js";
8
- export { cleanupWslCrashDumps, shouldAutoCleanupWslCrashDumps, type WslCrashDumpCleanupResult, } from "./wsl-crash-dumps-cleanup.js";
9
- export { postJson, type DispatchNextDiskGateShape, type DispatchNextWslHostShape, } from "./callbacks.js";
10
- export { parseClaudeStream, parseHarnessStream, summarizeEvent, summarizeShellToolCallEvent, } from "./stream.js";
11
- export { classifyNpmAuditOutcome, classifyShellCommandOutcome, summarizeNpmAuditReport, type NpmAuditSummary, type ShellCommandOutcome, type ShellCommandOutcomeKind, } from "./shell-command-outcome.js";
12
- export { classifyRepoSearchMeta, diagnoseRepoSearchFailure, extractSearchMeta, extractSearchMetaFromToolLine, formatRepoSearchGuidance, isRgExcludeScopeTarget, isSingleFileSearchTarget, metaToNormalizedRgCommand, normalizeRepoSearchCommand, normalizeRgArgv, shouldTreatRgNoMatchAsSuccess, unwrapShellWrapperCommand, type RepoSearchContext, type RepoSearchKind, } from "./repo-search.js";
13
- export { parseHeartbeat, isTerminalHeartbeatPhase, terminalFinalResultFromHeartbeat, } from "./heartbeat.js";
14
- export { buildBoxResourceSnapshotFromGate, formatHeartbeatLine, type RuntimeBoxResourceSnapshot, type RuntimeBoxResourceSnapshotPrEvidence, type HeartbeatLineInput, } from "./box-resource-snapshot.js";
15
- export { resolveBoxKindFromEnv, defaultBoxId } from "./box-resource-snapshot-shared.js";
16
- export { computeWorkerStatus, computeAttention, isFinishedWorkerStatus, isLandingBlockedWorkerStatus, deriveRunStatus, type RawHarnessWorkerStatus, type HarnessWorkerRecord, type WorkerAttention, } from "./status.js";
17
- export { assessWorkerLanding, type WorkerLandingVerdict } from "./landing-gate.js";
18
- export { isEngagementRequiredSkip } from "./fortress-engagement-gate.js";
19
- export { assessWorkerLandingContract, landingContractAttentionReason, type WorkerLandingContract, type WorkerLandingContractVerdict, type TargetPrReconciliation, } from "./landing-contract-gate.js";
20
- export { assessExitedWorkerSalvage, type ExitedSalvageAssessment, type ExitedSalvageKind, } from "./exited-salvage.js";
21
- export { persistExitedWorkerHandoffCapture, resolveExitedWorkerFinalResult, type ExitedHandoffCapture, type ExitedHandoffCaptureSource, } from "./exited-worker-handoff-capture.js";
22
- export { buildPrompt, buildPromptWithReceipt, RUNTIME_PROMPT_ENFORCEMENT, type BuildPromptInput, } from "./prompt.js";
23
- export { RUNTIME_CONTEXT_BUDGET_RECEIPT_SCHEMA_VERSION, RUNTIME_CONTEXT_BUDGET_RECEIPT_V2_SCHEMA_VERSION, buildContextBudgetReceiptV2, estimateTokensFromChars, finalizeReceiptTotals, isRuntimeContextBudgetReceiptV2, sectionReceiptFromMarkdown, upgradeReceiptToV2, type BuildContextBudgetReceiptV2Input, type ContextBudgetReceiptSurface, type ContextEnvelopeMode, type RuntimeContextActiveStateLookup, type RuntimeContextActiveStateLookupKind, type RuntimeContextActiveStateLookupStatus, type RuntimeContextBudgetReceipt, type RuntimeContextBudgetReceiptSchemaVersion, type RuntimeContextBudgetReceiptV2, type RuntimeContextRehydrationKind, type RuntimeContextRehydrationRoute, type RuntimeContextSection, type RuntimeContextSectionReceipt, type UsefulContextCoverage, } from "./context-budget-receipt.js";
24
- export { MEMORY_LANE_PREVIEW_CHARS, buildChatMemoryShadowPreview, buildLegacyChatMemorySection, chatMemoriesToPreviewItems, formatContextPreviewMemoryBlock, type ContextPreviewBlockInput, type ContextPreviewMemoryItem, } from "./context-preview/chat-memory-preview.js";
25
- export { canonicalJsonStringify, computeInstructionBundleVersion, deriveInstructionBundleKeyId, parseRawEd25519Key, isSignedInstructionBundleShape, PINNED_INSTRUCTION_BUNDLE_PUBLIC_KEYS, resolveInstructionBundlePublicKey, verifyInstructionBundleSignatureWithKey, verifySignedInstructionBundle, EMBEDDED_INSTRUCTION_BUNDLE, EMBEDDED_INSTRUCTION_BUNDLE_VERSION, getActiveInstructionBundle, getActiveInstructionBundleSource, getActiveInstructionBundleVersion, setActiveInstructionBundle, resolveInstructionText, resolvePolicyThreshold, resolveBundlePersona, ensureInstructionBundle, instructionBundleCachePath, loadInstructionBundleCache, saveInstructionBundleCache, INSTRUCTION_BUNDLE_REFRESH_TTL_MS, type InstructionBundle, type InstructionBundleContent, type InstructionBundlePersona, type SignedInstructionBundle, type InstructionBundleSource, type InstructionBundleVerifyResult, type EnsureInstructionBundleOptions, type EnsureInstructionBundleResult, } from "./instruction-bundle/index.js";
26
- export { WORKER_PERSONA_CATALOG, getWorkerPersonaCatalogEntry, getPersonaDispatchLane, getPersonaDefaultRoleLane, isKnownWorkerPersonaSlug, workerPersonaReviewSlugs, workerPersonaLandingSlugs, type WorkerPersonaCatalogEntry, type WorkerPersonaCatalogSlug, type WorkerPersonaDispatchLane, type WorkerPersonaDefaultRoleLane, } from "./worker-persona-catalog.js";
27
- export { assessPrHandoffRequirement, ensurePrReadyHandoff, extractPrUrlFromText, } from "./pr-handoff/index.js";
28
- export { normalizeCursorModelAlias, preflightClaudeModel, preflightCodexModel, preflightCursorModel, preflightOpenAiCompatibleModel, } from "./providers/model-preflight.js";
29
- export { CODEX_DEFAULT_MODEL, codexProvider, buildCodexExecArgv } from "./providers/codex.js";
30
- export { OPENAI_COMPATIBLE_PROVIDER, OPENAI_COMPATIBLE_SYSTEM_PROMPT, OpenAiCompatibleConfigError, buildOpenAiCompatibleChatRequest, buildOpenAiCompatibleRunnerConfig, openAiCompatibleProvider, resolveOpenAiCompatibleDefaultModel, resolveOpenAiCompatibleEndpoint, type OpenAiCompatibleChatRequest, type OpenAiCompatibleEndpoint, type OpenAiCompatibleRunnerConfig, } from "./providers/openai-compatible.js";
31
- export { extractOpenAiCompatibleCompletion, type OpenAiCompatibleCompletion, type OpenAiCompatibleUsage, } from "./providers/openai-compatible-response.js";
32
- export { resolveWorkerUsagePayload, type ResolveWorkerUsageInput, type WorkerUsagePayload, } from "./worker-usage.js";
33
- export { HERMES_OPENAI_CODEX_DEFAULT_MODEL, hermesCodexProvider, buildHermesOpenAiCodexChatArgv, } from "./providers/hermes-codex.js";
34
- export { classifyOpenAiCodexError, formatCronJobDeliveryFailure, formatOpenAiCodexFailureNotice, redactProviderErrorText, resolveOpenAiCodexRetryBudget, TRANSIENT_OPENAI_CODEX_ERROR_CLASSES, OPENAI_CODEX_PROVIDER, type ClassifiedOpenAiCodexError, type CodexFailureNoticeInput, type OpenAiCodexErrorClass, } from "./providers/openai-codex-resilience.js";
35
- export * from "./cron/hermes-provider-notice.js";
36
- export { buildOrchestrationProviderInventory, classifyOrchestrationRisk, compareProviderCandidates, getOrchestrationProviderCapability, listOrchestrationProviderCapabilities, probeClaudeOAuthBinding, probeCodexOAuthBinding, probeCursorOAuthBinding, probeHermesCliAdapter, probeHermesOpenAiCodexBinding, probeOrchestrationProviderBinding, providerCapableForRisk, resolveCodexOrchestrationAdapter, resolveOrchestrationRouting, selectCheapestCapableProvider, sanitizeOrchestrationAudit, orchestrationAuditForWorkerJson, getAdapterContextContract, listAdapterContextContracts, type AdapterContextCapability, type AdapterContextContract, type AdapterContextContractId, type CodexOrchestrationAdapterStatus, type CodexOrchestrationPath, type HermesCliAdapterStatus, type HermesOpenAiCodexBindingStatus, type OrchestrationAuthSource, type OrchestrationCloudApiCredits, type OrchestrationCostTier, type OrchestrationProviderBindingStatus, type OrchestrationProviderCapability, type OrchestrationProviderId, type OrchestrationProviderInventory, type OrchestrationRiskClass, type OrchestrationRoutingAudit, type OrchestrationRoutingDecision, } from "./orchestration-providers/index.js";
37
- export { ORCHESTRATION_POLICY_MODES, ORCHESTRATION_ACTION_KINDS, ORCHESTRATION_POLICY_DECISIONS, resolveOrchestrationPolicyMode, isOrchestrationEnforceTasksEnabled, buildForegroundHarnessIdempotencyKey, evaluateOrchestrationPolicy, type OrchestrationPolicyMode, type OrchestrationActionKind, type OrchestrationPolicyDecision, type OrchestrationPolicyEvaluateInput, type OrchestrationPolicyEvaluateResult, } from "./orchestration-enforcement/index.js";
38
- export { DEFAULT_WORKER_PROVIDER, enforceCursorWorkerProvider, isClaudeFamilyProvider, normalizeWorkerProviderName, preferCursorExecutor, resolveConfiguredWorkerProvider, taskAllowsClaudeWorker, taskExpressesWorkerProviderPreference, type EnforceCursorWorkerProviderInput, } from "./worker-provider-policy.js";
39
- export { parseExecutorRefRoutingIntent, executorRefRequestsNonCursorWorker, type ExecutorRefRoutingIntent, } from "./executor-ref-routing.js";
40
- export { assessDispatchModelGuard, type DispatchModelGuardInput, type DispatchModelGuardResult, } from "./dispatch-model-guard.js";
41
- export { GLOBAL_DEFAULT_MODEL, CURSOR_DEFAULT_MODEL, inferModelRoutingFromTask, resolveGlobalDefaultModel, resolveModelFallback, resolveWorkerLaunch, type ModelRoutingDecision, } from "./model-routing.js";
42
- export { redactHarness } from "./redact.js";
43
- export { scrubWorkerEnv, scrubClaudeEnv, auditWorkerEnv, listForbiddenWorkerEnvKeys, listOperatorAllowedWorkerEnvKeys, isForbiddenWorkerEnvKey, FORBIDDEN_WORKER_ENV_KEYS, type WorkerEnvAudit, } from "./worker-env.js";
44
- export { KYNVER_NO_PROD_DB_CREDENTIALS_ENV, REVIEW_WORKER_EXTRA_FORBIDDEN_ENV_KEYS, ProductionDatabaseCredentialBlockedError, assertProductionDatabaseResolutionAllowed, auditReviewWorkerCredentialScope, buildWorkerSpawnEnv, isNoProdCredentialReviewEnvironment, type BuildWorkerSpawnEnvOptions, type ReviewWorkerCredentialScopeAudit, } from "./security-review-environment.js";
45
- export { isHarnessExpertReviewWorker } from "./harness-expert-review.js";
46
- export { discoverProductionDbEnvFilePaths, expandHomePath } from "./db-credential-env-paths.js";
47
- export { applyProductionDatabaseToProcess, readProductionDbKeysFromEnvFile, resolveProductionDatabaseUrl, type DbCredentialResolution, type DbCredentialFailure, type DbCredentialSource, type ResolveProductionDatabaseResult, type ResolveProductionDatabaseOptions, } from "./db-credential-resolver.js";
48
- export { safeDatabaseUrlHint } from "./db-url-hint.js";
49
- export { validateRunId, validateWorkerName, validateRepo, validateOwnedPaths, validateTailLines, resolveWorkerTargetArgs, resolveRunTargetArg, } from "./validate.js";
50
- export { spawnWorkerProcess, startWorker } from "./supervisor.js";
51
- export { createRun, listRuns } from "./worktree.js";
52
- export { buildRunListRows, listRunsCli, type RunListFinalizeBlockedReason, type RunListRow, type RunListWorkerEvidence, } from "./run-list.js";
53
- export { resolveHarnessRunByName, resolveHarnessRunCli } from "./run-resolve.js";
54
- export { isActiveHarnessWorker } from "./harness-worker-active.js";
55
- export { sweepRun } from "./sweep.js";
56
- export { completeWorker, runStatus, workerStatus, tailWorker, stopWorker } from "./worker-ops.js";
57
- export { autoCompleteWorker, autoCompleteWorkerCli, spawnCompletionSidecar, type AutoCompleteArgs, type AutoCompleteOutcome, type SpawnSidecarOptions, type SpawnedSidecar, } from "./auto-complete.js";
58
- export { loadUserConfig, saveUserConfig, resolveBaseUrl, tryResolveBaseUrl, resolveCallbackSecret, resolveCallbackSecretWithMint, tryResolveCallbackSecretWithMint, parseArgs, } from "./config.js";
59
- export { discoverDefaultRepo, discoverDefaultRepoCandidates, discoverDefaultRepoForPersistence, isHarnessWorktreeRepo, isKynverMonorepoRoot, gitRepoRoot, type DiscoveredDefaultRepo, type DefaultRepoDiscoverySource, } from "./default-repo-discovery.js";
60
- export { resolveDefaultRepo, resolveDefaultRepoForPersistence, persistDefaultRepo, remediateDefaultRepo, formatResolvedDefaultRepo, type ResolvedDefaultRepo, type DefaultRepoSource, } from "./default-repo.js";
61
- export { getHarnessPaths, harnessRunsDir, harnessWorktreesDir, normalizeHarnessRoot, resolveHarnessRoot, } from "./paths.js";
62
- export { harnessStorageSnapshot, type HarnessStorageSnapshot, } from "./harness-storage-snapshot.js";
63
- export { runHarnessCleanup, runPipelineHarnessCleanup, isPipelineCleanupEnabled, } from "./cleanup.js";
64
- export type { HarnessCleanupSummary, HarnessCleanupOptions, HarnessStorageSnapshotShape, WorktreeRemovalGuardHook, WorktreeRemovalGuardInput, CleanupSkipReason, } from "./cleanup-types.js";
65
- export { DEFAULT_MAX_ACTIONS_PER_SWEEP, DEFAULT_NODE_MODULES_AGE_MS, DEFAULT_RUN_DIRECTORIES_AGE_MS, DEFAULT_TERMINAL_WORKTREES_AGE_MS, DEFAULT_WORKTREES_AGE_MS, } from "./cleanup-types.js";
66
- export { assessOrphanWorktreeSafety } from "./cleanup-orphan-safety.js";
67
- export { isGeneratedHarnessPath, HARNESS_BUILD_CACHE_RELATIVE_PATHS } from "./cleanup-build-cache-paths.js";
68
- export { usage, main } from "./cli.js";
69
- export { reconcileRunsCli, reconcileStaleWorkers, type ReconcileStaleWorkersResult, type StaleWorkerReconcileOutcome } from "./stale-reconcile.js";
70
- export { repairMissingRunMetadata, archiveTerminalWorkerMetadata, collectFilesystemLiveRunKeys, isHarnessRunMetadataPath, runDirHasActiveRetentionSignals, workerDirHasActiveRetentionSignals, RUN_METADATA_ACTIVE_SIGNAL_MS, TERMINAL_WORKER_ARCHIVE_AGE_MS, type TerminalWorkerArchiveOutcome, type TerminalWorkerArchiveResult, type RunMetadataRetentionOutcome, type RunMetadataRetentionResult, } from "./run-metadata-retention.js";
71
- export { reconcileWorkerMetadata, reconcileWorkerMetadataCli, type WorkerMetadataReconcileOutcome, type WorkerMetadataReconcileResult, } from "./worker-metadata-reconcile.js";
72
- export { reconcileLocalOnlyMergedPrAttention, type LocalPrAttentionReconcileOutcome, type LocalPrAttentionReconcileResult, } from "./local-pr-attention-reconcile.js";
73
- export { canonicalWorkerDir, hasNestedRunsSegment, repairNestedRunsPath, resolveWorkerJsonPath, } from "./worker-metadata-paths.js";
74
- export { runDaemon } from "./daemon.js";
75
- export { runHarnessVerifyCommands, DEFAULT_HARNESS_VERIFY_COMMANDS, type HarnessVerifySummary, type HarnessVerifyStep, } from "./harness-verify.js";
76
- export { runBoundedBuildCheck, assessBuildAdmission, mergeNodeOptionsForBuildCheck, buildSystemdRunArgv, isSystemdRunAvailable, readMemAvailableBytes, type BoundedBuildExecResult, type BuildAdmissionVerdict, } from "./bounded-build/index.js";
77
- export { assessHeavyVerificationGate, countActiveHeavyVerificationSlots, isHeavyVerificationGateSkipped, listActiveHeavyVerificationSlots, reclaimStaleHeavyVerificationSlots, releaseHeavyVerificationSlot, resolveHeavyVerificationMaxConcurrent, tryAcquireHeavyVerificationSlot, waitForHeavyVerificationSlot, DEFAULT_HEAVY_VERIFICATION_MAX_CONCURRENT, classifyHeavyShellCommand, gateWorkerShellCommand, HEAVY_VERIFICATION_TOKEN_REQUIRED, type HeavyCommandClass, type HeavyCommandClassification, type HeavyVerificationGateVerdict, type HeavyVerificationSlotRecord, type WorkerCommandGateOutcome, type WorkerCommandGateResult, } from "./heavy-verification/index.js";
78
- export { assessAutoCompleteEligibility, classifyWorkerHealth, getMonitorStatus, listMonitors, runMonitorTick, spawnMonitorSidecar, type AutoCompleteAssessment, type MonitorTickResult, type TaskLeaseSnapshot, type WorkerHealthClass, type WorkerMonitorView, } from "./monitor/index.js";
79
- export { formatHarnessToolReadable, formatMonitorTickNotice, formatAutoCompleteOutcomeNotice, formatWorkerStatusNotice, formatWorkerCompleteNotice, joinHarnessNotice, type HarnessReadableNotice, type HarnessToolFormatContext, } from "./harness-notice/index.js";
80
- export { persistPlan, drainPlanOutbox, listOutboxItems, writeOutboxItem, formatPlanOutboxHandoffBlock, extractPlanOutboxFromTask, hashPlanBody, type PersistPlanInput, type PersistPlanResult, type PlanPersistUserStatus, } from "./plan-persist/index.js";
81
- export { classifyVercelUrl, collectVercelEvidence, evidenceFromGitHubVercelStatus, isDashboardVercelUrl, isInspectableVercelTarget, isVercelStatusContext, pickVercelStatusContext, resolveVercelInspectTarget, type CollectVercelEvidenceInput, type GitHubCommitStatusRow, type VercelEvidenceResult, type VercelEvidenceStatus, } from "./vercel/index.js";
82
- export { validateJobEnvelope, type LocalCodexJobEnvelope, type LocalCodexJobToolPolicy, type JobEnvelopeValidationError, type JobEnvelopeValidationResult, } from "./byoc/job-envelope.js";
83
- export { verifyLocalCodexGoldenPath, formatGoldenPathFailureNotice, type GoldenPathCheckCode, type GoldenPathAuditEvidence, type GoldenPathOptions, type GoldenPathResult, } from "./byoc/m6-golden-path.js";
84
- export { AGENT_RUNTIME_ENVELOPE_SCHEMA_VERSION, AGENT_RUNTIME_ENVELOPE_SCHEMA_VERSION_V2, AGENT_RUNTIME_ENVELOPE_SCHEMA_VERSIONS, isAgentRuntimeEnvelopeSchemaVersion, resolveRuntimeEnvelopeWriterConfig, runtimeEnvelopeV2Enabled, type AgentRuntimeEnvelopeSchemaVersion, type RuntimeEnvelopeFlagSource, type RuntimeEnvelopeWriterConfig, } from "./runtime-memory-envelope.js";
85
- export { evaluateNodeRuntimePolicy, KYNVER_NODE_PATCH_FLOOR, PUBLISHED_NODE_RANGE, PRIVATE_ROOT_NODE_RANGE, type NodeRuntimePolicyStatus, type NodeRuntimePolicyVerdict, } from "./node-runtime-policy.js";
86
- export { buildRuntimeIdentity, type RuntimeIdentityV1 } from "./runtime-identity.js";
87
- export { buildNodeRuntimeDoctorReport, type NodeRuntimeDoctorReport } from "./doctor/node-runtime.js";
88
- export { readJson, writeJson } from "./util.js";
@@ -1,8 +0,0 @@
1
- export type InstalledPackageVersionMap = Record<string, {
2
- version: string;
3
- observedAt: string;
4
- path: string;
5
- }>;
6
- /** Candidate install paths for one managed package across OpenClaw + global npm roots. */
7
- export declare function installedPackageJsonCandidates(packageName: string): string[];
8
- export declare function collectInstalledPackageVersions(observedAt?: string): Promise<InstalledPackageVersionMap>;
@@ -1,6 +0,0 @@
1
- import { type SignedInstructionBundle } from "./types.js";
2
- export declare function instructionBundleCachePath(agentOsId: string): string;
3
- /** Best-effort atomic write (temp + rename). Never throws. */
4
- export declare function saveInstructionBundleCache(agentOsId: string, signed: SignedInstructionBundle): void;
5
- /** Load the cached signed payload. Caller MUST verify the signature before use. */
6
- export declare function loadInstructionBundleCache(agentOsId: string): SignedInstructionBundle | null;
@@ -1,25 +0,0 @@
1
- export declare const INSTRUCTION_BUNDLE_REFRESH_TTL_MS: number;
2
- export declare function __resetInstructionBundleClientForTest(): void;
3
- export interface EnsureInstructionBundleOptions {
4
- agentOsId: string;
5
- /** Kynver API base URL (e.g. from `resolveBaseUrl`). No fetch when absent. */
6
- baseUrl?: string | null;
7
- /** Runner credential / callback secret for the by-id route. */
8
- secret?: string | null;
9
- /** Bypass the TTL gate (startup / tests). */
10
- force?: boolean;
11
- fetchImpl?: typeof fetch;
12
- nowMs?: number;
13
- }
14
- export interface EnsureInstructionBundleResult {
15
- source: "server" | "disk" | "embedded" | "primed";
16
- version: string;
17
- /** True when this call changed the active bundle. */
18
- updated: boolean;
19
- }
20
- /**
21
- * Ensure the active instruction bundle is fresh. TTL-gated (15 min) so the
22
- * daemon can call it every tick; the first call performs the startup fetch.
23
- * Never throws.
24
- */
25
- export declare function ensureInstructionBundle(opts: EnsureInstructionBundleOptions): Promise<EnsureInstructionBundleResult>;
@@ -1,4 +0,0 @@
1
- export * from "./types.js";
2
- export { PINNED_INSTRUCTION_BUNDLE_PUBLIC_KEYS, resolveInstructionBundlePublicKey, } from "./keys.js";
3
- export { verifyInstructionBundleSignatureWithKey, verifySignedInstructionBundle, type InstructionBundleVerifyResult, } from "./verify.js";
4
- export { EMBEDDED_INSTRUCTION_BUNDLE, EMBEDDED_INSTRUCTION_BUNDLE_VERSION, } from "./embedded-bundle.js";
@@ -1,3 +0,0 @@
1
- import type { InstructionBundle } from "./types.js";
2
- export declare const EMBEDDED_INSTRUCTION_BUNDLE_VERSION = "embedded-1";
3
- export declare const EMBEDDED_INSTRUCTION_BUNDLE: InstructionBundle;
@@ -1,7 +0,0 @@
1
- export * from "./types.js";
2
- export * from "./keys.js";
3
- export * from "./verify.js";
4
- export * from "./embedded-bundle.js";
5
- export * from "./state.js";
6
- export * from "./cache.js";
7
- export * from "./client.js";
@@ -1,14 +0,0 @@
1
- /**
2
- * keyId → raw Ed25519 public key (hex). `ib-3bab6314f0ba` is the committed
3
- * DEV fallback pair the server uses when `KYNVER_INSTRUCTION_BUNDLE_KEY` is
4
- * unset — fine for dev/first-boot, NOT a production trust root (its private
5
- * half is committed server-side). Production deployments set a real private
6
- * key on the server and `KYNVER_INSTRUCTION_BUNDLE_PUBLIC_KEY` on daemon
7
- * hosts until the prod public key is pinned here in a republish.
8
- */
9
- export declare const PINNED_INSTRUCTION_BUNDLE_PUBLIC_KEYS: Readonly<Record<string, string>>;
10
- /**
11
- * Resolve the raw public key for a `publicKeyId`. The env override wins (key
12
- * rotation without a package republish); otherwise the pinned set by id.
13
- */
14
- export declare function resolveInstructionBundlePublicKey(publicKeyId: string, env?: Record<string, string | undefined>): Uint8Array | null;
@@ -1,24 +0,0 @@
1
- import type { InstructionBundle, InstructionBundlePersona } from "./types.js";
2
- export type InstructionBundleSource = "embedded" | "disk" | "server" | "primed";
3
- export declare function getActiveInstructionBundle(): InstructionBundle;
4
- export declare function getActiveInstructionBundleVersion(): string;
5
- export declare function getActiveInstructionBundleSource(): InstructionBundleSource;
6
- /**
7
- * Install a bundle as the active one. The fetch client calls this ONLY after
8
- * signature verification; `primed` is for in-process callers that already
9
- * hold canonical content (e.g. the Kynver server seeding its own runtime
10
- * imports) and for tests.
11
- */
12
- export declare function setActiveInstructionBundle(bundle: InstructionBundle, source: InstructionBundleSource): void;
13
- /** Reset to the embedded fallback (tests). */
14
- export declare function __resetActiveInstructionBundleForTest(): void;
15
- /**
16
- * Resolve a keyed instruction literal: active bundle first, then the embedded
17
- * fallback for that key, then empty string (never throws — a missing key must
18
- * never take a worker down).
19
- */
20
- export declare function resolveInstructionText(key: string): string;
21
- /** Resolve a numeric policy threshold: active bundle → embedded → fallback. */
22
- export declare function resolvePolicyThreshold(key: string, fallback: number): number;
23
- /** Persona entry from the active bundle (null when the slug is not present). */
24
- export declare function resolveBundlePersona(slug: string | null | undefined): InstructionBundlePersona | null;
@@ -1,42 +0,0 @@
1
- export type InstructionBundleDispatchLane = "implementation" | "review" | "landing";
2
- export type InstructionBundleRoleLane = "plan_author" | "implementer" | "report_reviewer" | "deep_reviewer" | "runtime_verifier" | "system";
3
- export interface InstructionBundlePersona {
4
- slug: string;
5
- displayName: string;
6
- description: string;
7
- dispatchLane: InstructionBundleDispatchLane | null;
8
- defaultRoleLane: InstructionBundleRoleLane;
9
- }
10
- /** Content payload — everything the version hash covers. */
11
- export interface InstructionBundleContent {
12
- personas: InstructionBundlePersona[];
13
- /** Keyed instruction literals (e.g. `worker.prompt.core_rules`). */
14
- instructions: Record<string, string>;
15
- /** Keyed numeric policy thresholds (e.g. `harness.maxTaskAttempts`). */
16
- policyThresholds: Record<string, number>;
17
- }
18
- export interface InstructionBundle extends InstructionBundleContent {
19
- /** Content hash (`ib1-<sha256 prefix>`) — stable per content, used as ETag. */
20
- version: string;
21
- generatedAt: string;
22
- }
23
- export interface SignedInstructionBundle {
24
- bundle: InstructionBundle;
25
- /** base64url Ed25519 signature over `canonicalJsonStringify(bundle)`. */
26
- signature: string;
27
- /** Identifies the signing key (`ib-<sha256(publicKey) prefix>`). */
28
- publicKeyId: string;
29
- }
30
- /**
31
- * Deterministic JSON: recursively sorted object keys so signer and verifier
32
- * agree on the signed bytes regardless of construction/parse order.
33
- */
34
- export declare function canonicalJsonStringify(value: unknown): string;
35
- /** Stable content-hash version: `ib1-` + first 16 hex of sha256(canonical content). */
36
- export declare function computeInstructionBundleVersion(content: InstructionBundleContent): string;
37
- /** Derive the key id used as `publicKeyId` from a raw 32-byte Ed25519 public key. */
38
- export declare function deriveInstructionBundleKeyId(rawPublicKey: Uint8Array): string;
39
- /** Parse a raw 32-byte key from hex (64 chars) or base64. Returns null when malformed. */
40
- export declare function parseRawEd25519Key(raw: string | null | undefined): Uint8Array | null;
41
- /** Structural validation of a parsed wire payload. */
42
- export declare function isSignedInstructionBundleShape(value: unknown): value is SignedInstructionBundle;
@@ -1,15 +0,0 @@
1
- import { type InstructionBundle } from "./types.js";
2
- export type InstructionBundleVerifyResult = {
3
- ok: true;
4
- bundle: InstructionBundle;
5
- } | {
6
- ok: false;
7
- reason: string;
8
- };
9
- /** Verify a signed bundle against an explicit raw 32-byte public key. */
10
- export declare function verifyInstructionBundleSignatureWithKey(signed: unknown, rawPublicKey: Uint8Array): InstructionBundleVerifyResult;
11
- /**
12
- * Verify a signed bundle resolving the key from the env override / pinned set.
13
- * This is the daemon's trust gate — a bundle that fails here is never used.
14
- */
15
- export declare function verifySignedInstructionBundle(signed: unknown, env?: Record<string, string | undefined>): InstructionBundleVerifyResult;
@@ -1,11 +0,0 @@
1
- export interface EnsureGitHubCliAuthResult {
2
- source: "env" | "gh-cli" | "missing";
3
- configured: boolean;
4
- reason: string;
5
- }
6
- /**
7
- * Intentional duplicate of `src/modules/agent-os/ready-pr-landing/ready-pr-landing.cli-auth.ts`.
8
- * The runtime package cannot import `@/src` server modules (standalone esbuild bundle), so gh
9
- * token resolution is mirrored here. Keep both copies in sync when auth probe logic changes.
10
- */
11
- export declare function ensureGitHubTokenFromCliAuth(): EnsureGitHubCliAuthResult;
@@ -1,17 +0,0 @@
1
- export declare function checkName(check: Record<string, unknown>): string;
2
- /** Collapse rollup to the latest run per check name so stale failures do not block landing. */
3
- export declare function collapseCheckRollupByName(statusCheckRollup: unknown[] | undefined): Record<string, unknown>[];
4
- export declare function isGitHubActionsCheck(check: Record<string, unknown>): boolean;
5
- export declare function classifyChecks(statusCheckRollup: unknown[] | undefined): {
6
- pending: string[];
7
- failed: string[];
8
- ignoredActions: string[];
9
- };
10
- /**
11
- * LEGACY (Vercel decommissioned 2026-08): no check named `vercel*` appears on
12
- * current PRs, so this always returns false post-cutover. Retained so landing
13
- * evidence for pre-cutover PRs still classifies; callers treat it as one
14
- * optional evidence source among several.
15
- */
16
- export declare function vercelCheckSuccess(statusCheckRollup: unknown[] | undefined): boolean;
17
- export declare function mergeStateReadinessError(mergeStateStatus: string, checks: ReturnType<typeof classifyChecks>): string | null;
@@ -1,12 +0,0 @@
1
- import type { LandPrCompletionReport } from "./land-pr.js";
2
- export declare function postLandPrHarnessCompletion(input: {
3
- baseUrl: string;
4
- secret?: string;
5
- agentOsId: string;
6
- runId: string;
7
- task: Record<string, unknown>;
8
- report: LandPrCompletionReport;
9
- }): Promise<{
10
- ok: boolean;
11
- status: number;
12
- }>;
@@ -1,28 +0,0 @@
1
- import type { PrHandoffExec } from "../pr-handoff/pr-handoff-gh.js";
2
- export type LandPrOutcome = "merged" | "blocked" | "skipped";
3
- export interface LandPrCompletionReport {
4
- prUrl: string;
5
- outcome: LandPrOutcome;
6
- mergeCommit?: string | null;
7
- reason: string;
8
- }
9
- export interface ExecuteLandPrMergeInput {
10
- prUrl: string;
11
- repo?: string | null;
12
- cwd?: string;
13
- dryRun?: boolean;
14
- skipNotReady?: boolean;
15
- exec?: PrHandoffExec;
16
- }
17
- /** Parse `owner/repo` from a GitHub PR URL, e.g. https://github.com/acme/app/pull/42 -> "acme/app". Returns null on non-match. */
18
- export declare function repoFromPrUrl(prUrl: string): string | null;
19
- /** Pure predicate form of the runtime verification-evidence gate (for tests). */
20
- export declare function runtimeVerificationEvidenceSufficient(input: {
21
- title?: string | null;
22
- body?: string | null;
23
- vercelCheckSuccess?: boolean;
24
- }): boolean;
25
- /**
26
- * Daemon-local PR merge — live readiness, squash merge, branch delete, worktree cleanup.
27
- */
28
- export declare function executeLandPrMerge(input: ExecuteLandPrMergeInput): Promise<LandPrCompletionReport>;
@@ -1,27 +0,0 @@
1
- import type { WorkerLandingSnapshot } from "./landing-gate.js";
2
- export type TargetPrOutcome = "merged" | "skipped" | "blocked";
3
- export interface TargetPrReconciliation {
4
- prUrl: string;
5
- outcome: TargetPrOutcome;
6
- mergeCommit?: string | null;
7
- reason?: string | null;
8
- }
9
- export interface WorkerLandingContract {
10
- landingOnly: boolean;
11
- targetPrUrls: string[];
12
- targetPrUrl?: string | null;
13
- repairEnforceOriginalPr?: boolean;
14
- requiresTargetPrReconciliation?: boolean;
15
- }
16
- export type WorkerLandingContractBlockReason = "unrelated_implementation_pr" | "missing_target_pr_reconciliation" | "incomplete_target_pr_landing" | "duplicate_repair_pr" | "missing_repair_target_reconciliation";
17
- export interface WorkerLandingContractVerdict {
18
- blocked: boolean;
19
- reason?: WorkerLandingContractBlockReason;
20
- detail?: string;
21
- }
22
- export declare function assessWorkerLandingContract(input: {
23
- contract: WorkerLandingContract;
24
- snapshot: WorkerLandingSnapshot;
25
- finalResult?: unknown;
26
- }): WorkerLandingContractVerdict;
27
- export declare function landingContractAttentionReason(verdict: WorkerLandingContractVerdict): string | undefined;
@@ -1,4 +0,0 @@
1
- import type { TargetPrReconciliation } from "./landing-contract-gate.js";
2
- export type WorkerReconciliationPrRole = "contract" | "support" | "unrelated";
3
- export declare function classifyWorkerReconciliationPrRole(prUrl: string, targetPrUrls: readonly string[], entry?: TargetPrReconciliation | null): WorkerReconciliationPrRole;
4
- export declare function unrelatedWorkerReconciliationPrUrls(reconciliation: readonly TargetPrReconciliation[], targetPrUrls: readonly string[]): string[];