@kynver-app/runtime 0.2.23 → 0.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (413) hide show
  1. package/README.md +52 -18
  2. package/dist/chat/command-auth-proof.js +1 -1
  3. package/dist/cli.js +74 -65
  4. package/dist/index.js +96 -87
  5. package/dist/instruction-bundle/contract.js +2 -2
  6. package/dist/local-run-store/index.js +6 -6
  7. package/dist/server/adapter-contract.js +1 -1
  8. package/dist/server/cleanup.js +14 -14
  9. package/dist/server/db-credentials.js +2 -2
  10. package/dist/server/default-repo.js +1 -1
  11. package/dist/server/heavy-verification.js +1 -1
  12. package/dist/server/memory-cost-enforce.js +2 -2
  13. package/dist/server/memory-cost.js +2 -2
  14. package/dist/server/model-routing.js +4 -4
  15. package/dist/server/monitor.js +7 -7
  16. package/dist/server/orchestration.js +1 -1
  17. package/dist/server/worker-policy.js +2 -2
  18. package/package.json +6 -3
  19. package/dist/active-harness-workers.d.ts +0 -11
  20. package/dist/auto-complete.d.ts +0 -60
  21. package/dist/bootstrap.d.ts +0 -1
  22. package/dist/bounded-build/admission.d.ts +0 -30
  23. package/dist/bounded-build/constants.d.ts +0 -10
  24. package/dist/bounded-build/exec.d.ts +0 -35
  25. package/dist/bounded-build/index.d.ts +0 -6
  26. package/dist/bounded-build/meminfo.d.ts +0 -5
  27. package/dist/bounded-build/node-options.d.ts +0 -9
  28. package/dist/bounded-build/systemd-wrap.d.ts +0 -17
  29. package/dist/box-identity.d.ts +0 -19
  30. package/dist/box-resource-snapshot-shared.d.ts +0 -13
  31. package/dist/box-resource-snapshot.d.ts +0 -45
  32. package/dist/box-worker-cap.d.ts +0 -9
  33. package/dist/byoc/context-hydration.d.ts +0 -54
  34. package/dist/byoc/execution-proof.d.ts +0 -46
  35. package/dist/byoc/index.d.ts +0 -5
  36. package/dist/byoc/job-envelope.d.ts +0 -39
  37. package/dist/byoc/m6-golden-path.d.ts +0 -86
  38. package/dist/byoc/mcp-tool-proof.d.ts +0 -42
  39. package/dist/callback-headers.d.ts +0 -2
  40. package/dist/callbacks.d.ts +0 -74
  41. package/dist/chat/anthropic-credentials.d.ts +0 -11
  42. package/dist/chat/anthropic-stream.d.ts +0 -43
  43. package/dist/chat/chat-claim-loop.d.ts +0 -41
  44. package/dist/chat/chat-primary-cli.d.ts +0 -2
  45. package/dist/chat/command-allowlist.d.ts +0 -8
  46. package/dist/chat/command-auth-proof.d.ts +0 -67
  47. package/dist/chat/command-executor.d.ts +0 -18
  48. package/dist/chat/delta-batcher.d.ts +0 -13
  49. package/dist/cleanup-active-worktrees.d.ts +0 -14
  50. package/dist/cleanup-build-cache-paths.d.ts +0 -5
  51. package/dist/cleanup-cli.d.ts +0 -1
  52. package/dist/cleanup-completion-blocker.d.ts +0 -10
  53. package/dist/cleanup-dependency-scan.d.ts +0 -13
  54. package/dist/cleanup-dir-size.d.ts +0 -5
  55. package/dist/cleanup-disk-pressure.d.ts +0 -15
  56. package/dist/cleanup-duplicate-worktrees.d.ts +0 -8
  57. package/dist/cleanup-evidence.d.ts +0 -10
  58. package/dist/cleanup-execute.d.ts +0 -7
  59. package/dist/cleanup-git-probe.d.ts +0 -5
  60. package/dist/cleanup-git-rev-cache.d.ts +0 -5
  61. package/dist/cleanup-git-status-cache.d.ts +0 -5
  62. package/dist/cleanup-guards-helpers.d.ts +0 -2
  63. package/dist/cleanup-guards.d.ts +0 -53
  64. package/dist/cleanup-harness-path-validate.d.ts +0 -5
  65. package/dist/cleanup-harness-roots.d.ts +0 -6
  66. package/dist/cleanup-index-status.d.ts +0 -16
  67. package/dist/cleanup-orphan-safety.d.ts +0 -17
  68. package/dist/cleanup-path-ownership.d.ts +0 -9
  69. package/dist/cleanup-privileged-remove.d.ts +0 -13
  70. package/dist/cleanup-progress.d.ts +0 -2
  71. package/dist/cleanup-remove-path.d.ts +0 -17
  72. package/dist/cleanup-retention-config.d.ts +0 -26
  73. package/dist/cleanup-run-directory.d.ts +0 -20
  74. package/dist/cleanup-run-liveness.d.ts +0 -21
  75. package/dist/cleanup-run-terminal-cache.d.ts +0 -6
  76. package/dist/cleanup-salvage-evidence.d.ts +0 -33
  77. package/dist/cleanup-scan.d.ts +0 -15
  78. package/dist/cleanup-summary.d.ts +0 -29
  79. package/dist/cleanup-types.d.ts +0 -154
  80. package/dist/cleanup-worker-harness-live.d.ts +0 -9
  81. package/dist/cleanup-worktree-index.d.ts +0 -18
  82. package/dist/cleanup-worktree-salvage.d.ts +0 -7
  83. package/dist/cleanup.d.ts +0 -5
  84. package/dist/cli-output/worker-start-stdout.d.ts +0 -11
  85. package/dist/cli.d.ts +0 -3
  86. package/dist/command-center-contract-cli.d.ts +0 -1
  87. package/dist/completion-ack.d.ts +0 -18
  88. package/dist/completion-replay.d.ts +0 -10
  89. package/dist/completion-response.d.ts +0 -15
  90. package/dist/config.d.ts +0 -122
  91. package/dist/context-budget-receipt.d.ts +0 -96
  92. package/dist/context-preview/chat-memory-preview.d.ts +0 -33
  93. package/dist/cron/cron-cli-bin.d.ts +0 -7
  94. package/dist/cron/cron-env-file.d.ts +0 -22
  95. package/dist/cron/cron-env.d.ts +0 -21
  96. package/dist/cron/cron-fire.d.ts +0 -8
  97. package/dist/cron/cron-id.d.ts +0 -3
  98. package/dist/cron/cron-install-api.d.ts +0 -27
  99. package/dist/cron/cron-install-cli.d.ts +0 -2
  100. package/dist/cron/cron-install-plan.d.ts +0 -34
  101. package/dist/cron/cron-install-secrets.d.ts +0 -6
  102. package/dist/cron/cron-install-systemd.d.ts +0 -18
  103. package/dist/cron/cron-install-verify.d.ts +0 -15
  104. package/dist/cron/cron-install.d.ts +0 -51
  105. package/dist/cron/cron-lock.d.ts +0 -9
  106. package/dist/cron/cron-match.d.ts +0 -8
  107. package/dist/cron/cron-readiness.d.ts +0 -35
  108. package/dist/cron/cron-status.d.ts +0 -10
  109. package/dist/cron/cron-store.d.ts +0 -8
  110. package/dist/cron/cron-tick-cli.d.ts +0 -2
  111. package/dist/cron/cron-tick-state.d.ts +0 -5
  112. package/dist/cron/cron-tick.d.ts +0 -19
  113. package/dist/cron/cron-types.d.ts +0 -53
  114. package/dist/cron/hermes-provider-notice.d.ts +0 -1
  115. package/dist/daemon-box-identity.d.ts +0 -16
  116. package/dist/daemon-heartbeat.d.ts +0 -30
  117. package/dist/daemon-keeper.d.ts +0 -21
  118. package/dist/daemon-platform-guard.d.ts +0 -2
  119. package/dist/daemon-supervision/host.d.ts +0 -4
  120. package/dist/daemon-supervision/index.d.ts +0 -6
  121. package/dist/daemon-supervision/policy.d.ts +0 -16
  122. package/dist/daemon-supervision/setup.d.ts +0 -23
  123. package/dist/daemon-supervision/start.d.ts +0 -26
  124. package/dist/daemon-supervision/supervision-health.d.ts +0 -20
  125. package/dist/daemon-supervision/verify.d.ts +0 -13
  126. package/dist/daemon.d.ts +0 -5
  127. package/dist/db-credential-env-paths.d.ts +0 -13
  128. package/dist/db-credential-resolver.d.ts +0 -38
  129. package/dist/db-url-hint.d.ts +0 -4
  130. package/dist/default-repo-cli.d.ts +0 -20
  131. package/dist/default-repo-discovery.d.ts +0 -25
  132. package/dist/default-repo.d.ts +0 -32
  133. package/dist/device-login.d.ts +0 -8
  134. package/dist/discard-disposable.d.ts +0 -6
  135. package/dist/disk-gate.d.ts +0 -25
  136. package/dist/dispatch-callback-timeout.d.ts +0 -1
  137. package/dist/dispatch-claim-release.d.ts +0 -23
  138. package/dist/dispatch-lane-normalization.d.ts +0 -14
  139. package/dist/dispatch-model-guard.d.ts +0 -26
  140. package/dist/dispatch-progress.d.ts +0 -3
  141. package/dist/dispatch-resource-gate.d.ts +0 -20
  142. package/dist/dispatch-start-abort.d.ts +0 -3
  143. package/dist/dispatch-start-readback.d.ts +0 -27
  144. package/dist/dispatch.d.ts +0 -24
  145. package/dist/disposable-artifacts.d.ts +0 -2
  146. package/dist/doctor/context-envelope-cli.d.ts +0 -1
  147. package/dist/doctor/context-envelope.d.ts +0 -13
  148. package/dist/doctor/context-envelope.probes.d.ts +0 -25
  149. package/dist/doctor/context-envelope.types.d.ts +0 -42
  150. package/dist/doctor/doctor.types.d.ts +0 -50
  151. package/dist/doctor/github-readiness.d.ts +0 -16
  152. package/dist/doctor/index.d.ts +0 -7
  153. package/dist/doctor/local-store-cli.d.ts +0 -11
  154. package/dist/doctor/local-store.d.ts +0 -35
  155. package/dist/doctor/node-runtime-cli.d.ts +0 -6
  156. package/dist/doctor/node-runtime.d.ts +0 -19
  157. package/dist/doctor/runner-install-cli.d.ts +0 -1
  158. package/dist/doctor/runner-install.d.ts +0 -2
  159. package/dist/doctor/runtime-takeover-cli.d.ts +0 -1
  160. package/dist/doctor/runtime-takeover-daemon-supervision.d.ts +0 -3
  161. package/dist/doctor/runtime-takeover-deploy-evidence.d.ts +0 -13
  162. package/dist/doctor/runtime-takeover-scheduler.d.ts +0 -29
  163. package/dist/doctor/runtime-takeover.d.ts +0 -3
  164. package/dist/doctor/runtime-takeover.probes.d.ts +0 -45
  165. package/dist/executor-ref-routing.d.ts +0 -14
  166. package/dist/exit-classify.d.ts +0 -12
  167. package/dist/exited-salvage.d.ts +0 -22
  168. package/dist/exited-worker-handoff-capture.d.ts +0 -19
  169. package/dist/factory-status/collect.d.ts +0 -12
  170. package/dist/factory-status/lightweight.d.ts +0 -5
  171. package/dist/factory-status/render.d.ts +0 -5
  172. package/dist/factory-status/types.d.ts +0 -46
  173. package/dist/factory-status-cli.d.ts +0 -1
  174. package/dist/factory-steer-delivery.d.ts +0 -7
  175. package/dist/finalize.d.ts +0 -25
  176. package/dist/fortress-engagement-gate.d.ts +0 -5
  177. package/dist/git.d.ts +0 -37
  178. package/dist/github-repo.d.ts +0 -5
  179. package/dist/harness-expert-review.d.ts +0 -12
  180. package/dist/harness-lease-owner.d.ts +0 -13
  181. package/dist/harness-notice/harness-notice.auto-complete.d.ts +0 -3
  182. package/dist/harness-notice/harness-notice.monitor-tick.d.ts +0 -6
  183. package/dist/harness-notice/harness-notice.parse.d.ts +0 -3
  184. package/dist/harness-notice/harness-notice.tool-response.d.ts +0 -3
  185. package/dist/harness-notice/harness-notice.types.d.ts +0 -17
  186. package/dist/harness-notice/harness-notice.worker-complete.d.ts +0 -3
  187. package/dist/harness-notice/harness-notice.worker-start.d.ts +0 -7
  188. package/dist/harness-notice/harness-notice.worker-status.d.ts +0 -2
  189. package/dist/harness-notice/index.d.ts +0 -8
  190. package/dist/harness-repair-target.d.ts +0 -23
  191. package/dist/harness-storage-snapshot.d.ts +0 -26
  192. package/dist/harness-verify-cli.d.ts +0 -1
  193. package/dist/harness-verify.d.ts +0 -30
  194. package/dist/harness-worker-active.d.ts +0 -12
  195. package/dist/harness-worktree-build-guard.d.ts +0 -12
  196. package/dist/heartbeat-final-result.d.ts +0 -5
  197. package/dist/heartbeat.d.ts +0 -27
  198. package/dist/heavy-verification/command-classify.d.ts +0 -9
  199. package/dist/heavy-verification/gate.d.ts +0 -10
  200. package/dist/heavy-verification/index.d.ts +0 -5
  201. package/dist/heavy-verification/paths.d.ts +0 -3
  202. package/dist/heavy-verification/slot.d.ts +0 -49
  203. package/dist/heavy-verification/worker-command-gate.d.ts +0 -23
  204. package/dist/index.d.ts +0 -85
  205. package/dist/installed-package-versions.d.ts +0 -8
  206. package/dist/instruction-bundle/cache.d.ts +0 -6
  207. package/dist/instruction-bundle/client.d.ts +0 -25
  208. package/dist/instruction-bundle/contract.d.ts +0 -4
  209. package/dist/instruction-bundle/embedded-bundle.d.ts +0 -3
  210. package/dist/instruction-bundle/index.d.ts +0 -7
  211. package/dist/instruction-bundle/keys.d.ts +0 -14
  212. package/dist/instruction-bundle/state.d.ts +0 -24
  213. package/dist/instruction-bundle/types.d.ts +0 -42
  214. package/dist/instruction-bundle/verify.d.ts +0 -15
  215. package/dist/landing/cli-auth.d.ts +0 -11
  216. package/dist/landing/land-pr-check-classify.d.ts +0 -17
  217. package/dist/landing/land-pr-completion-post.d.ts +0 -12
  218. package/dist/landing/land-pr.d.ts +0 -28
  219. package/dist/landing-contract-gate.d.ts +0 -27
  220. package/dist/landing-contract-pr-classify.d.ts +0 -4
  221. package/dist/landing-gate.d.ts +0 -24
  222. package/dist/lane/landing-maintainer-local.d.ts +0 -15
  223. package/dist/lane/landing-maintainer-tick.d.ts +0 -16
  224. package/dist/lane/lane-spec.d.ts +0 -8
  225. package/dist/lane/lane-tick-cli.d.ts +0 -1
  226. package/dist/lease-renewal.d.ts +0 -15
  227. package/dist/local-pr-attention-reconcile.d.ts +0 -25
  228. package/dist/local-run-store/admission-enforce.d.ts +0 -38
  229. package/dist/local-run-store/admission-shadow.d.ts +0 -56
  230. package/dist/local-run-store/dispatch-claim-recovery-startup.d.ts +0 -11
  231. package/dist/local-run-store/dispatch-claim-recovery.d.ts +0 -54
  232. package/dist/local-run-store/dispatch-receipts.d.ts +0 -90
  233. package/dist/local-run-store/index.d.ts +0 -15
  234. package/dist/local-run-store/local-run-store.d.ts +0 -106
  235. package/dist/local-run-store/remote-surface-flags.d.ts +0 -15
  236. package/dist/local-run-store/small-surfaces.d.ts +0 -37
  237. package/dist/local-run-store/sqlite/sqlite-filesystem-policy.d.ts +0 -16
  238. package/dist/local-run-store/sqlite/sqlite-local-run-store.d.ts +0 -68
  239. package/dist/local-run-store/sqlite/sqlite-recovery.d.ts +0 -14
  240. package/dist/local-run-store/sqlite/sqlite-schema.d.ts +0 -13
  241. package/dist/local-run-store/store-lifecycle.d.ts +0 -38
  242. package/dist/local-run-store/surface-flags.d.ts +0 -47
  243. package/dist/local-run-store/tick-posture.d.ts +0 -27
  244. package/dist/material-worktree-changes.d.ts +0 -2
  245. package/dist/memory-cost-package-version-guard-enforce.d.ts +0 -10
  246. package/dist/memory-cost-package-version-guard.d.ts +0 -49
  247. package/dist/mesh-liveness/mesh-cron-lease-store.d.ts +0 -9
  248. package/dist/model-routing-task-enrich.d.ts +0 -8
  249. package/dist/model-routing.d.ts +0 -49
  250. package/dist/monitor/index.d.ts +0 -7
  251. package/dist/monitor/monitor-cli.d.ts +0 -9
  252. package/dist/monitor/monitor-loop.d.ts +0 -1
  253. package/dist/monitor/monitor-spawn.d.ts +0 -18
  254. package/dist/monitor/monitor.classify.d.ts +0 -15
  255. package/dist/monitor/monitor.service.d.ts +0 -17
  256. package/dist/monitor/monitor.store.d.ts +0 -6
  257. package/dist/monitor/monitor.task-lease.d.ts +0 -11
  258. package/dist/monitor/monitor.terminal.d.ts +0 -11
  259. package/dist/monitor/monitor.types.d.ts +0 -77
  260. package/dist/node-runtime-policy.d.ts +0 -25
  261. package/dist/orchestration-enforcement/config.d.ts +0 -5
  262. package/dist/orchestration-enforcement/evaluator.d.ts +0 -6
  263. package/dist/orchestration-enforcement/idempotency.d.ts +0 -8
  264. package/dist/orchestration-enforcement/index.d.ts +0 -4
  265. package/dist/orchestration-enforcement/types.d.ts +0 -24
  266. package/dist/orchestration-providers/adapter-contract.d.ts +0 -50
  267. package/dist/orchestration-providers/audit.d.ts +0 -3
  268. package/dist/orchestration-providers/capabilities.d.ts +0 -3
  269. package/dist/orchestration-providers/claude-oauth-binding.d.ts +0 -6
  270. package/dist/orchestration-providers/codex-oauth-binding.d.ts +0 -5
  271. package/dist/orchestration-providers/codex-orchestration-adapter.d.ts +0 -13
  272. package/dist/orchestration-providers/cost-router.d.ts +0 -24
  273. package/dist/orchestration-providers/cursor-oauth-binding.d.ts +0 -5
  274. package/dist/orchestration-providers/hermes-cli-adapter.d.ts +0 -15
  275. package/dist/orchestration-providers/hermes-openai-codex-binding.d.ts +0 -15
  276. package/dist/orchestration-providers/index.d.ts +0 -14
  277. package/dist/orchestration-providers/inventory.d.ts +0 -31
  278. package/dist/orchestration-providers/oauth-binding-utils.d.ts +0 -22
  279. package/dist/orchestration-providers/routing.d.ts +0 -16
  280. package/dist/orchestration-providers/types.d.ts +0 -45
  281. package/dist/package-version.d.ts +0 -5
  282. package/dist/path-values.d.ts +0 -5
  283. package/dist/paths.d.ts +0 -16
  284. package/dist/pipeline-dispatch.d.ts +0 -8
  285. package/dist/pipeline-exact-targets.d.ts +0 -2
  286. package/dist/pipeline-max-starts.d.ts +0 -26
  287. package/dist/pipeline-tick.d.ts +0 -50
  288. package/dist/plan-persist/agentos-api.d.ts +0 -28
  289. package/dist/plan-persist/body-hash.d.ts +0 -3
  290. package/dist/plan-persist/drain.d.ts +0 -7
  291. package/dist/plan-persist/errors.d.ts +0 -9
  292. package/dist/plan-persist/handoff.d.ts +0 -7
  293. package/dist/plan-persist/idempotency.d.ts +0 -2
  294. package/dist/plan-persist/index.d.ts +0 -8
  295. package/dist/plan-persist/outbox-durability.d.ts +0 -31
  296. package/dist/plan-persist/outbox-store.d.ts +0 -36
  297. package/dist/plan-persist/paths.d.ts +0 -8
  298. package/dist/plan-persist/persist.d.ts +0 -10
  299. package/dist/plan-persist/readback.d.ts +0 -17
  300. package/dist/plan-persist/types.d.ts +0 -95
  301. package/dist/plan-persist-cli.d.ts +0 -3
  302. package/dist/plan-progress-daemon-sync.d.ts +0 -7
  303. package/dist/plan-progress-sync.d.ts +0 -21
  304. package/dist/plan-progress.d.ts +0 -10
  305. package/dist/post-restart-unblock.d.ts +0 -24
  306. package/dist/pr-handoff/index.d.ts +0 -6
  307. package/dist/pr-handoff/pr-handoff-assess.d.ts +0 -44
  308. package/dist/pr-handoff/pr-handoff-dedupe.d.ts +0 -18
  309. package/dist/pr-handoff/pr-handoff-gh.d.ts +0 -52
  310. package/dist/pr-handoff/pr-handoff-supersede.d.ts +0 -17
  311. package/dist/pr-handoff/pr-handoff.d.ts +0 -8
  312. package/dist/pr-handoff/pr-handoff.types.d.ts +0 -45
  313. package/dist/pr-handoff/same-head-pr-guard.d.ts +0 -10
  314. package/dist/prompt.d.ts +0 -56
  315. package/dist/provider-evidence/collect.d.ts +0 -31
  316. package/dist/provider-evidence/exec.d.ts +0 -5
  317. package/dist/provider-evidence/index.d.ts +0 -7
  318. package/dist/provider-evidence/recipes-github.d.ts +0 -5
  319. package/dist/provider-evidence/recipes-vercel.d.ts +0 -2
  320. package/dist/provider-evidence/registry.d.ts +0 -6
  321. package/dist/provider-evidence/shared-cache.d.ts +0 -8
  322. package/dist/provider-evidence/types.d.ts +0 -48
  323. package/dist/provider-evidence/wanted-store.d.ts +0 -13
  324. package/dist/provider-quota-preflight.d.ts +0 -38
  325. package/dist/providers/claude.d.ts +0 -8
  326. package/dist/providers/codex.d.ts +0 -14
  327. package/dist/providers/cursor-windows.d.ts +0 -7
  328. package/dist/providers/cursor.d.ts +0 -13
  329. package/dist/providers/hermes-codex.d.ts +0 -12
  330. package/dist/providers/model-preflight.d.ts +0 -33
  331. package/dist/providers/openai-codex-resilience.d.ts +0 -33
  332. package/dist/providers/registry.d.ts +0 -4
  333. package/dist/providers/types.d.ts +0 -36
  334. package/dist/redact.d.ts +0 -1
  335. package/dist/repair-target-worktree.d.ts +0 -4
  336. package/dist/repo-search.d.ts +0 -53
  337. package/dist/resource-gate.d.ts +0 -74
  338. package/dist/retry-limits.d.ts +0 -12
  339. package/dist/review-head-reconcile.d.ts +0 -17
  340. package/dist/run-list.d.ts +0 -38
  341. package/dist/run-metadata-retention.d.ts +0 -38
  342. package/dist/run-resolve.d.ts +0 -4
  343. package/dist/run-store.d.ts +0 -38
  344. package/dist/run-worker-index.d.ts +0 -10
  345. package/dist/runner-boundary/index.d.ts +0 -6
  346. package/dist/runner-boundary/runner-boundary.dispatch-guard.d.ts +0 -4
  347. package/dist/runner-boundary/runner-boundary.forge-legacy-migration.d.ts +0 -23
  348. package/dist/runner-boundary/runner-boundary.harness-root.d.ts +0 -17
  349. package/dist/runner-boundary/runner-boundary.resolve.d.ts +0 -4
  350. package/dist/runner-boundary/runner-boundary.run-guard.d.ts +0 -12
  351. package/dist/runner-boundary/runner-boundary.types.d.ts +0 -31
  352. package/dist/runner-config-backfill.d.ts +0 -18
  353. package/dist/runner-identity.d.ts +0 -21
  354. package/dist/runtime-identity.d.ts +0 -9
  355. package/dist/runtime-memory-envelope.d.ts +0 -16
  356. package/dist/scheduler-cutover-cli.d.ts +0 -2
  357. package/dist/scheduler-cutover.d.ts +0 -25
  358. package/dist/security-review-environment.d.ts +0 -27
  359. package/dist/server/adapter-contract.d.ts +0 -1
  360. package/dist/server/cleanup.d.ts +0 -3
  361. package/dist/server/context-budget-receipt.d.ts +0 -2
  362. package/dist/server/db-credentials.d.ts +0 -1
  363. package/dist/server/default-repo.d.ts +0 -1
  364. package/dist/server/harness-notice.d.ts +0 -2
  365. package/dist/server/heavy-verification.d.ts +0 -3
  366. package/dist/server/landing.d.ts +0 -1
  367. package/dist/server/memory-cost-enforce.d.ts +0 -1
  368. package/dist/server/memory-cost.d.ts +0 -1
  369. package/dist/server/model-routing.d.ts +0 -3
  370. package/dist/server/monitor.d.ts +0 -3
  371. package/dist/server/node-runtime-policy.d.ts +0 -1
  372. package/dist/server/orchestration.d.ts +0 -10
  373. package/dist/server/pr-evidence.d.ts +0 -2
  374. package/dist/server/prompt.d.ts +0 -1
  375. package/dist/server/repo-search.d.ts +0 -1
  376. package/dist/server/worker-policy.d.ts +0 -6
  377. package/dist/server/wsl-crash-dumps.d.ts +0 -2
  378. package/dist/shell-command-outcome.d.ts +0 -32
  379. package/dist/sidecar-cli.d.ts +0 -16
  380. package/dist/stale-reconcile.d.ts +0 -31
  381. package/dist/start-box-identity.d.ts +0 -12
  382. package/dist/start.d.ts +0 -13
  383. package/dist/status.d.ts +0 -260
  384. package/dist/stream.d.ts +0 -20
  385. package/dist/supervisor.d.ts +0 -40
  386. package/dist/sweep.d.ts +0 -1
  387. package/dist/util.d.ts +0 -35
  388. package/dist/validate.d.ts +0 -15
  389. package/dist/vercel/index.d.ts +0 -4
  390. package/dist/vercel/vercel-api.d.ts +0 -17
  391. package/dist/vercel/vercel-evidence.d.ts +0 -48
  392. package/dist/vercel/vercel-github-status.d.ts +0 -19
  393. package/dist/vercel/vercel-url.d.ts +0 -18
  394. package/dist/verify-live/verify-live-prompt.d.ts +0 -2
  395. package/dist/worker-cap-source.d.ts +0 -29
  396. package/dist/worker-env.d.ts +0 -52
  397. package/dist/worker-execution-mode.d.ts +0 -5
  398. package/dist/worker-final-result-embed.d.ts +0 -1
  399. package/dist/worker-lease-sync.d.ts +0 -15
  400. package/dist/worker-lifecycle.d.ts +0 -28
  401. package/dist/worker-metadata-paths.d.ts +0 -26
  402. package/dist/worker-metadata-reconcile.d.ts +0 -21
  403. package/dist/worker-ops.d.ts +0 -45
  404. package/dist/worker-persona-catalog.d.ts +0 -29
  405. package/dist/worker-provider-policy.d.ts +0 -26
  406. package/dist/workspace-runtime-config.d.ts +0 -10
  407. package/dist/worktree-base-ref.d.ts +0 -34
  408. package/dist/worktree-completion-handoff.d.ts +0 -17
  409. package/dist/worktree.d.ts +0 -11
  410. package/dist/wsl-crash-dumps-cleanup.d.ts +0 -31
  411. package/dist/wsl-crash-dumps-cli.d.ts +0 -1
  412. package/dist/wsl-crash-dumps.d.ts +0 -90
  413. package/dist/wsl-host.d.ts +0 -71
@@ -1,44 +0,0 @@
1
- import type { GitAncestry } from "../git.js";
2
- import type { PrHandoffExec } from "./pr-handoff-gh.js";
3
- import type { PrHandoffRequirement, PrHandoffSnapshot } from "./pr-handoff.types.js";
4
- export declare function isGhNoCommitsBetweenError(detail: string | null | undefined): boolean;
5
- /** Best-effort PR URL from free text (completion summary / final result). */
6
- export declare function extractPrUrlFromText(value: unknown): string | null;
7
- export declare function countCommitsAheadOfBase(worktreePath: string, baseRef: string, exec: PrHandoffExec): number | null;
8
- /**
9
- * Board-dispatched implementation workers with code changes must land with a PR
10
- * URL before AgentOS completion is posted.
11
- */
12
- export declare function assessPrHandoffRequirement(input: {
13
- dispatched?: boolean;
14
- routingRule?: string | null;
15
- personaSlug?: string | null;
16
- prUrl?: string | null;
17
- patchPath?: string | null;
18
- artifactBundlePath?: string | null;
19
- baseRef?: string | null;
20
- exec?: PrHandoffExec;
21
- worker?: {
22
- personaSlug?: string | null;
23
- routingRule?: string | null;
24
- };
25
- snapshot: PrHandoffSnapshot;
26
- /** Board task metadata persisted on worker.json at dispatch. */
27
- taskTitle?: string | null;
28
- executorRef?: string | null;
29
- parentTaskId?: string | null;
30
- /** Target PR on the board task row (review workers inherit parent prUrl). */
31
- taskPrUrl?: string | null;
32
- /** Repair worker canonical target — never auto-open a new PR. */
33
- repairTargetPrUrl?: string | null;
34
- }): PrHandoffRequirement;
35
- export declare function buildPrHandoffSnapshotFromStatus(status: {
36
- changedFiles: string[];
37
- branch: string;
38
- worktreePath: string;
39
- gitAncestry: GitAncestry;
40
- finalResult: unknown;
41
- }, extras?: {
42
- prUrl?: string | null;
43
- headCommit?: string | null;
44
- }): PrHandoffSnapshot;
@@ -1,18 +0,0 @@
1
- import type { PrHandoffExec } from "./pr-handoff-gh.js";
2
- export interface TaskOpenPrRow {
3
- url: string;
4
- number: number;
5
- headRefName: string;
6
- createdAt: string;
7
- }
8
- /** Worker/branch suffix shared across harness retry attempts for one AgentOS task. */
9
- export declare function buildTaskWorkerBranchSuffix(taskId: string): string;
10
- export declare function prRowMatchesTask(row: {
11
- body?: string;
12
- title?: string;
13
- headRefName: string;
14
- }, taskId: string): boolean;
15
- export declare function pickCanonicalTaskPr(rows: TaskOpenPrRow[], preferredUrl?: string | null): TaskOpenPrRow | null;
16
- export declare function supersededPrUrls(rows: TaskOpenPrRow[], canonicalUrl: string): string[];
17
- /** Find open PRs associated with a harness AgentOS task (body, title, or retry branch prefix). */
18
- export declare function listOpenPrsForTask(worktreePath: string, repo: string, taskId: string, exec: PrHandoffExec): TaskOpenPrRow[];
@@ -1,52 +0,0 @@
1
- export interface CommandCapture {
2
- status: number | null;
3
- stdout: string;
4
- stderr: string;
5
- error: string | null;
6
- }
7
- export interface PrHandoffExec {
8
- git: (cwd: string, args: string[]) => CommandCapture;
9
- gh: (cwd: string, args: string[]) => CommandCapture;
10
- }
11
- export declare const defaultPrHandoffExec: PrHandoffExec;
12
- export declare function resolveGithubRepo(worktreePath: string, exec: PrHandoffExec): string | null;
13
- export declare function resolveHeadCommit(worktreePath: string, exec: PrHandoffExec): string | null;
14
- /** Look up an open PR for this head branch. */
15
- export declare function findOpenPrUrl(worktreePath: string, repo: string, branch: string, exec: PrHandoffExec): string | null;
16
- export interface CommitAndPushResult {
17
- ok: boolean;
18
- committed: boolean;
19
- pushed: boolean;
20
- headCommit?: string;
21
- detail?: string;
22
- }
23
- export declare function commitAndPushBranch(input: {
24
- worktreePath: string;
25
- branch: string;
26
- commitMessage: string;
27
- hasDirtyFiles: boolean;
28
- exec: PrHandoffExec;
29
- }): CommitAndPushResult;
30
- export interface CreatePrResult {
31
- ok: boolean;
32
- prUrl?: string;
33
- created?: boolean;
34
- detail?: string;
35
- }
36
- export declare function pushHeadToRemoteBranch(input: {
37
- worktreePath: string;
38
- remoteBranch: string;
39
- exec: PrHandoffExec;
40
- }): {
41
- ok: boolean;
42
- detail?: string;
43
- };
44
- export declare function createGithubPr(input: {
45
- worktreePath: string;
46
- repo: string;
47
- branch: string;
48
- base: string;
49
- title: string;
50
- body: string;
51
- exec: PrHandoffExec;
52
- }): CreatePrResult;
@@ -1,17 +0,0 @@
1
- import type { PrHandoffExec } from "./pr-handoff-gh.js";
2
- import { type TaskOpenPrRow } from "./pr-handoff-dedupe.js";
3
- export interface SupersedePrsResult {
4
- closed: string[];
5
- failed: Array<{
6
- prUrl: string;
7
- detail: string;
8
- }>;
9
- }
10
- /** Close older open PRs for the same task, leaving the canonical PR open. */
11
- export declare function closeSupersededTaskPrs(input: {
12
- worktreePath: string;
13
- repo: string;
14
- rows: TaskOpenPrRow[];
15
- canonicalPrUrl: string;
16
- exec: PrHandoffExec;
17
- }): SupersedePrsResult;
@@ -1,8 +0,0 @@
1
- import { type PrHandoffExec } from "./pr-handoff-gh.js";
2
- import type { EnsurePrHandoffInput, EnsurePrHandoffResult } from "./pr-handoff.types.js";
3
- /**
4
- * Ensure a board-dispatched implementation worker has a GitHub PR before completion
5
- * is posted to AgentOS. Commits dirty trees, pushes the branch, and runs
6
- * `gh pr create` when needed.
7
- */
8
- export declare function ensurePrReadyHandoff(input: EnsurePrHandoffInput, exec?: PrHandoffExec): EnsurePrHandoffResult;
@@ -1,45 +0,0 @@
1
- import type { GitAncestry } from "../git.js";
2
- import type { RawHarnessWorkerStatus } from "../status.js";
3
- import type { HarnessRunRecord } from "../run-store.js";
4
- import type { HarnessWorkerRecord } from "../status.js";
5
- export interface PrHandoffSnapshot {
6
- changedFiles: string[];
7
- headCommit: string | null;
8
- prUrl: string | null;
9
- branch: string;
10
- worktreePath: string;
11
- gitAncestry: GitAncestry;
12
- finalResult: unknown;
13
- }
14
- export type PrHandoffSkipReason = "not_dispatched" | "review_lane" | "expert_review_task" | "review_artifact" | "no_remote_branch_delta" | "already_has_pr" | "no_work_product" | "patch_or_bundle" | "repair_target_pr";
15
- export interface PrHandoffNotRequired {
16
- required: false;
17
- reason: PrHandoffSkipReason;
18
- }
19
- export interface PrHandoffRequired {
20
- required: true;
21
- snapshot: PrHandoffSnapshot;
22
- }
23
- export type PrHandoffRequirement = PrHandoffNotRequired | PrHandoffRequired;
24
- export interface EnsurePrHandoffInput {
25
- worker: HarnessWorkerRecord;
26
- run: HarnessRunRecord;
27
- status: RawHarnessWorkerStatus;
28
- /** PR url extracted from finalResult text when the flat field is absent. */
29
- prUrlHint?: string | null;
30
- }
31
- export interface EnsurePrHandoffOk {
32
- ok: true;
33
- /** Present when a PR was created or discovered. */
34
- prUrl?: string;
35
- headCommit?: string;
36
- committed?: boolean;
37
- pushed?: boolean;
38
- created?: boolean;
39
- }
40
- export interface EnsurePrHandoffBlocked {
41
- ok: false;
42
- reason: string;
43
- nextAction: string;
44
- }
45
- export type EnsurePrHandoffResult = EnsurePrHandoffOk | EnsurePrHandoffBlocked;
@@ -1,10 +0,0 @@
1
- import type { PrHandoffExec } from "./pr-handoff-gh.js";
2
- export interface MergedPrByHeadResult {
3
- prUrl: string;
4
- number: number | null;
5
- }
6
- /**
7
- * Find the lowest-number merged PR for a head commit — prevents duplicate
8
- * `gh pr create` when work already landed via another PR URL.
9
- */
10
- export declare function findMergedPrUrlByHeadCommit(worktreePath: string, repo: string, headCommit: string, exec: PrHandoffExec): MergedPrByHeadResult | null;
package/dist/prompt.d.ts DELETED
@@ -1,56 +0,0 @@
1
- import { type ContextBudgetReceiptSurface, type ContextEnvelopeMode, type RuntimeContextBudgetReceiptV2 } from "./context-budget-receipt.js";
2
- export type BuildPromptInput = {
3
- task: string;
4
- ownedPaths: string[];
5
- worktreePath: string;
6
- heartbeatPath: string;
7
- planId?: string;
8
- taskId?: string;
9
- /** Operating rules from dispatch-next `harnessWorkerContext`. */
10
- instructionPolicyMarkdown?: string | null;
11
- /** Anchored task context-envelope persona block (required when task has personaSlug). */
12
- personaMarkdown?: string | null;
13
- /** Compact task context envelope (non-persona tasks or supplemental). */
14
- contextEnvelopeMarkdown?: string | null;
15
- /** First-class runtime memory envelope markdown (harness launch injection). */
16
- runtimeEnvelopeMarkdown?: string | null;
17
- /** P7 memory-quality trace summary + live-verification nudges (privacy-safe). */
18
- memoryQualityMarkdown?: string | null;
19
- /** When set, Haiku/compact models get a shorter harness instruction block. */
20
- model?: string;
21
- repairTargetPrUrl?: string;
22
- repairTargetBranch?: string;
23
- agentOsId?: string | null;
24
- personaSlug?: string | null;
25
- mode?: ContextEnvelopeMode;
26
- /**
27
- * Package-safe kill-switch gate (PR3): when true, the hard-cap engine is
28
- * active and `budgetSatisfied` on the receipt reflects live enforcement.
29
- * Callers read `KYNVER_CONTEXT_BUDGET_ENFORCEMENT` server-side and pass
30
- * the resolved boolean so the runtime package stays env-free.
31
- * Defaults to false (shadow mode: measure and report, never truncate).
32
- */
33
- enforcementEnabled?: boolean;
34
- /** Operator steer overlay from dispatch-next harnessWorkerContext. */
35
- steerOverlayMarkdown?: string | null;
36
- reviewOnly?: boolean;
37
- };
38
- export declare function buildPrompt(input: BuildPromptInput): string;
39
- export declare function buildPromptWithReceipt(input: BuildPromptInput & {
40
- surface?: ContextBudgetReceiptSurface;
41
- generatedAt?: string;
42
- }): {
43
- prompt: string;
44
- receipt: RuntimeContextBudgetReceiptV2;
45
- };
46
- /**
47
- * Prompt hard-cap constants exposed for tests and diagnostics (PR3).
48
- * All measurements are in chars (runtime prompt is built as a JS string).
49
- * Pass `enforcementEnabled: true` in BuildPromptInput to activate enforcement;
50
- * callers read KYNVER_CONTEXT_BUDGET_ENFORCEMENT server-side — do not read
51
- * env vars inside the runtime package (package-safe contract).
52
- */
53
- export declare const RUNTIME_PROMPT_ENFORCEMENT: {
54
- readonly hardCapChars: 200000;
55
- readonly safeFloorChars: 500;
56
- };
@@ -1,31 +0,0 @@
1
- import { type CliRunner, type ProviderEvidenceItem, type ProviderEvidenceWantedItem } from "./types.js";
2
- export interface ProviderEvidenceCollectionSummary {
3
- attempted: number;
4
- collected: number;
5
- /** Number of items served from caller-provided cache without invoking provider CLIs. */
6
- cached: number;
7
- items: ProviderEvidenceItem[];
8
- skipped: Array<{
9
- provider: string;
10
- kind: string;
11
- subject: string;
12
- reason: "no_recipe" | "provider_unavailable" | "collect_failed" | "budget_exhausted";
13
- }>;
14
- }
15
- export interface ProviderEvidenceCollectionCache {
16
- get(key: string, now: Date): ProviderEvidenceItem | null;
17
- set(key: string, item: ProviderEvidenceItem, now: Date): void;
18
- /**
19
- * Optional live-collection gate. Return false to skip the provider CLI call
20
- * for this item while allowing cache hits to continue flowing.
21
- */
22
- reserve?(item: ProviderEvidenceWantedItem, key: string, now: Date): boolean;
23
- }
24
- export declare function collectProviderEvidence(wanted: ProviderEvidenceWantedItem[], opts?: {
25
- run?: CliRunner;
26
- maxSubjects?: number;
27
- deadlineMs?: number;
28
- now?: () => Date;
29
- /** Optional TTL cache used to avoid re-polling external APIs every daemon tick. */
30
- cache?: ProviderEvidenceCollectionCache;
31
- }): ProviderEvidenceCollectionSummary;
@@ -1,5 +0,0 @@
1
- import type { CliRunner } from "./types.js";
2
- /** Default recipe CLI runner: bounded, capture-only, never throws. */
3
- export declare const defaultCliRunner: CliRunner;
4
- /** Run a CLI expected to emit JSON on stdout; null on failure or bad JSON. */
5
- export declare function runCliJson<T>(run: CliRunner, cmd: string, args: string[]): T | null;
@@ -1,7 +0,0 @@
1
- export * from "./types.js";
2
- export * from "./exec.js";
3
- export * from "./registry.js";
4
- export * from "./collect.js";
5
- export * from "./wanted-store.js";
6
- export * from "./shared-cache.js";
7
- export * from "./recipes-github.js";
@@ -1,5 +0,0 @@
1
- import { type EvidenceCollectorRecipe } from "./types.js";
2
- export declare function resetGitHubRateLimitCooldownForTests(): void;
3
- export declare const githubPrSnapshotRecipe: EvidenceCollectorRecipe;
4
- export declare const githubCommitStatusRecipe: EvidenceCollectorRecipe;
5
- export declare const githubBranchReachabilityRecipe: EvidenceCollectorRecipe;
@@ -1,2 +0,0 @@
1
- import { type EvidenceCollectorRecipe } from "./types.js";
2
- export declare const vercelDeploymentStatusRecipe: EvidenceCollectorRecipe;
@@ -1,6 +0,0 @@
1
- import type { EvidenceCollectorRecipe } from "./types.js";
2
- export declare function registerEvidenceCollector(recipe: EvidenceCollectorRecipe): void;
3
- export declare function getEvidenceCollector(provider: string, kind: string): EvidenceCollectorRecipe | null;
4
- export declare function listEvidenceCollectors(): EvidenceCollectorRecipe[];
5
- /** Idempotent default-recipe registration (called by the collection loop). */
6
- export declare function registerDefaultEvidenceCollectors(): void;
@@ -1,8 +0,0 @@
1
- import type { ProviderEvidenceCollectionCache } from "./collect.js";
2
- export interface ProviderEvidenceSharedCache extends ProviderEvidenceCollectionCache {
3
- flush(): void;
4
- }
5
- export declare function createProviderEvidenceSharedCache(runId: string, opts?: {
6
- ttlMs?: number;
7
- file?: string;
8
- }): ProviderEvidenceSharedCache;
@@ -1,48 +0,0 @@
1
- /** Subject the server asked us to collect (from the tick response). */
2
- export interface ProviderEvidenceWantedItem {
3
- provider: string;
4
- kind: string;
5
- subject: string;
6
- }
7
- /** One collected evidence item shipped on the next operator tick. */
8
- export interface ProviderEvidenceItem {
9
- provider: string;
10
- kind: string;
11
- subject: string;
12
- payload: unknown;
13
- observedAt: string;
14
- collectorVersion?: string;
15
- }
16
- /** Result of one CLI invocation (injectable for tests). */
17
- export interface CliRunResult {
18
- ok: boolean;
19
- stdout: string;
20
- stderr: string;
21
- }
22
- export type CliRunner = (cmd: string, args: string[], opts?: {
23
- timeoutMs?: number;
24
- }) => CliRunResult;
25
- /**
26
- * A collector recipe: the only provider-specific code on the daemon side.
27
- * Runs a CLI with the user's own auth and shapes the output minimally — all
28
- * classification/validation lives with the matching server consumer.
29
- */
30
- export interface EvidenceCollectorRecipe {
31
- provider: string;
32
- kind: string;
33
- version: string;
34
- /** Cheap probe: is the underlying CLI installed + authenticated? */
35
- isAvailable(run: CliRunner): boolean;
36
- /** Collect evidence for one subject; null when collection failed. */
37
- collect(subject: string, run: CliRunner): unknown | null;
38
- }
39
- export declare function providerEvidenceKey(provider: string, kind: string, subject: string): string;
40
- export declare function parseCommitEvidenceSubject(subject: string): {
41
- repo: string;
42
- sha: string;
43
- } | null;
44
- /** Same PR-URL grammar as the server's pr-notification parser. */
45
- export declare function parsePrUrlSubject(subject: string): {
46
- repo: string;
47
- number: number;
48
- } | null;
@@ -1,13 +0,0 @@
1
- import type { ProviderEvidenceCollectionCache } from "./collect.js";
2
- import { type ProviderEvidenceWantedItem } from "./types.js";
3
- export declare function loadPersistedProviderEvidenceWanted(runId: string): ProviderEvidenceWantedItem[];
4
- export declare function persistProviderEvidenceWanted(runId: string, wanted: ProviderEvidenceWantedItem[]): void;
5
- export interface ProviderEvidenceRunCache extends ProviderEvidenceCollectionCache {
6
- flush(): void;
7
- }
8
- export declare function createProviderEvidenceRunCache(runId: string, opts?: {
9
- ttlMs?: number;
10
- }): ProviderEvidenceRunCache;
11
- export declare function providerEvidenceWantedKey(item: ProviderEvidenceWantedItem): string;
12
- /** Extract `providerEvidenceWanted` from an operator-tick response body. */
13
- export declare function extractProviderEvidenceWanted(tickResponse: unknown): ProviderEvidenceWantedItem[] | null;
@@ -1,38 +0,0 @@
1
- export interface ProviderQuotaCooldownRecord {
2
- lastExhaustedAt: string;
3
- reason: string;
4
- }
5
- export type ProviderQuotaCooldownStore = Record<string, ProviderQuotaCooldownRecord>;
6
- export type ProviderQuotaPreflightVerdict = {
7
- ok: true;
8
- } | {
9
- ok: false;
10
- provider: string;
11
- reason: string;
12
- retryAtIso: string;
13
- };
14
- export declare function isProviderQuotaExhaustionText(value: string | null | undefined): boolean;
15
- /** Preflight is on by default; `KYNVER_PROVIDER_QUOTA_PREFLIGHT=off|0|false|no` disables. */
16
- export declare function providerQuotaPreflightEnabled(): boolean;
17
- export declare function providerQuotaCooldownMinutes(): number;
18
- /** Record that `provider` reported quota exhaustion (starts/refreshes its cooldown). */
19
- export declare function recordProviderQuotaExhaustion(provider: string, reason: string, nowMs?: number): void;
20
- /** Drop the cooldown for `provider` (a completion proved it works again). */
21
- export declare function clearProviderQuotaCooldown(provider: string): boolean;
22
- /**
23
- * Decide whether spawning a worker on `provider` is admissible right now.
24
- * Blocked only while a recorded exhaustion is inside the cooldown window;
25
- * expired records are pruned so the next spawn probes the provider.
26
- */
27
- export declare function assessProviderQuotaPreflight(provider: string | null | undefined, nowMs?: number): ProviderQuotaPreflightVerdict;
28
- /**
29
- * Observe a finished worker's outcome for provider quota health:
30
- * quota-shaped failure text → record/refresh the cooldown; any other
31
- * substantive completion → clear it (the provider demonstrably served a run).
32
- */
33
- export declare function observeProviderQuotaFromCompletion(input: {
34
- provider: string | null | undefined;
35
- finalResult: unknown;
36
- error?: string | null;
37
- nowMs?: number;
38
- }): "recorded" | "cleared" | "none";
@@ -1,8 +0,0 @@
1
- import type { WorkerProvider } from "./types.js";
2
- import type { WorkerProviderStartOptions } from "./types.js";
3
- /** Provider default when no explicit model is passed — Sonnet, not Opus. */
4
- export declare const CLAUDE_DEFAULT_MODEL = "claude-sonnet-4-6";
5
- /** Model for review/gate/critique lanes when dispatched on the claude provider. */
6
- export declare const CLAUDE_REVIEW_MODEL = "claude-opus-4-8";
7
- export declare const claudeProvider: WorkerProvider;
8
- export declare function buildClaudeProviderArgs(opts: Pick<WorkerProviderStartOptions, "executionMode" | "prompt">, model: string): string[];
@@ -1,14 +0,0 @@
1
- import type { WorkerProvider } from "./types.js";
2
- /**
3
- * Default Codex model for harness orchestration.
4
- * Override with `--model` flag or `KYNVER_CODEX_DEFAULT_MODEL` env var.
5
- * Cheaper alternatives: `o4-mini`, `gpt-4o-mini`.
6
- */
7
- export declare function resolveCodexDefaultModel(): string;
8
- export declare const CODEX_DEFAULT_MODEL: string;
9
- /**
10
- * Build argv for `codex exec` headless orchestration.
11
- * Uses read-only sandbox + no approval prompts for low-risk harness slices.
12
- */
13
- export declare function buildCodexExecArgv(model: string, prompt: string): string[];
14
- export declare const codexProvider: WorkerProvider;
@@ -1,7 +0,0 @@
1
- export declare function parseCursorVersionSortKey(versionName: string): number | null;
2
- export declare function pickLatestCursorVersionDir(agentRoot: string): string | null;
3
- export declare function resolveWindowsCursorBundled(agentRoot?: string): {
4
- nodeExe: string;
5
- indexJs: string;
6
- versionDir: string;
7
- } | null;
@@ -1,13 +0,0 @@
1
- import type { WorkerProvider } from "./types.js";
2
- import type { WorkerProviderStartOptions } from "./types.js";
3
- export interface CursorSpawnTarget {
4
- executable: string;
5
- prefixArgs: string[];
6
- shell: boolean;
7
- detached: boolean;
8
- bundledVersionDir?: string;
9
- }
10
- /** Resolve a headless Windows spawn target (node.exe + index.js), never agent.cmd via shell. */
11
- export declare function resolveCursorSpawn(agentBin: string): CursorSpawnTarget;
12
- export declare const cursorProvider: WorkerProvider;
13
- export declare function buildCursorProviderArgs(opts: Pick<WorkerProviderStartOptions, "executionMode" | "worktreePath" | "prompt">, model: string, prefixArgs?: string[]): string[];
@@ -1,12 +0,0 @@
1
- import type { WorkerProvider } from "./types.js";
2
- /**
3
- * Default model when routing through Hermes openai-codex subscription.
4
- * Inherits `KYNVER_CODEX_DEFAULT_MODEL` override so both codex paths use the same cheaper model.
5
- */
6
- export declare const HERMES_OPENAI_CODEX_DEFAULT_MODEL: string;
7
- /**
8
- * Non-interactive Hermes chat argv for openai-codex subscription orchestration.
9
- * `-Q` suppresses banners; `--accept-hooks` avoids TTY approval prompts.
10
- */
11
- export declare function buildHermesOpenAiCodexChatArgv(model: string, prompt: string): string[];
12
- export declare const hermesCodexProvider: WorkerProvider;
@@ -1,33 +0,0 @@
1
- export interface ModelPreflightResult {
2
- /** False when the model/provider combination is structurally invalid. */
3
- ok: boolean;
4
- /** The model to launch with (normalized). Meaningful only when `ok`. */
5
- model: string;
6
- /** True when the requested model was rewritten to a different launch model. */
7
- normalized: boolean;
8
- /** The originally requested model, present only when it differs from `model`. */
9
- requested?: string;
10
- /** Human-readable note: the normalization explanation, or the rejection reason. */
11
- note?: string;
12
- }
13
- /** Strip a single trailing reasoning-effort suffix from a model id. */
14
- export declare function stripReasoningSuffix(model: string): string;
15
- /**
16
- * Normalize provider=cursor requests that pass model=cursor (or similar aliases)
17
- * to a real Cursor CLI model. `auto` is the supported default when the board
18
- * does not pin a specific composer id.
19
- */
20
- export declare function normalizeCursorModelAlias(model: string): string | null;
21
- /**
22
- * Preflight a model for the `claude` provider. Normalizes reasoning-effort
23
- * suffixes; rejects models that clearly belong to another provider.
24
- */
25
- export declare function preflightClaudeModel(model: string | undefined, defaultModel: string): ModelPreflightResult;
26
- /**
27
- * Preflight a model for the `cursor` provider. The Cursor agent owns its own
28
- * reasoning levels, so suffixed ids pass through; we only flag a Claude-family
29
- * model that was clearly meant for the `claude` provider.
30
- */
31
- /** Preflight for `codex` provider — accepts OpenAI/Codex model ids; rejects Claude-family ids. */
32
- export declare function preflightCodexModel(model: string | undefined, defaultModel: string): ModelPreflightResult;
33
- export declare function preflightCursorModel(model: string | undefined, defaultModel: string): ModelPreflightResult;
@@ -1,33 +0,0 @@
1
- /**
2
- * Classify transient OpenAI Codex / ChatGPT backend failures and build plain-English
3
- * operator notices. Shared by harness orchestration and Hermes cron delivery UX.
4
- */
5
- export declare const OPENAI_CODEX_PROVIDER = "openai-codex";
6
- export type OpenAiCodexErrorClass = "upstream_503" | "connection_refused" | "connection_reset" | "sse_no_event" | "sse_idle_timeout" | "rate_limit" | "billing" | "auth" | "unknown";
7
- export declare const TRANSIENT_OPENAI_CODEX_ERROR_CLASSES: ReadonlySet<OpenAiCodexErrorClass>;
8
- export type ClassifiedOpenAiCodexError = {
9
- errorClass: OpenAiCodexErrorClass;
10
- summary: string;
11
- statusCode?: number;
12
- transient: boolean;
13
- };
14
- export declare function redactProviderErrorText(text: string, maxLen?: number): string;
15
- export declare function classifyOpenAiCodexError(error: unknown, statusCode?: number): ClassifiedOpenAiCodexError;
16
- export declare function resolveOpenAiCodexRetryBudget(input: {
17
- platform?: string | null;
18
- provider?: string | null;
19
- defaultRetries?: number;
20
- env?: NodeJS.ProcessEnv;
21
- }): number;
22
- export type CodexFailureNoticeInput = {
23
- jobName?: string;
24
- provider?: string;
25
- model?: string;
26
- errorClass: OpenAiCodexErrorClass;
27
- summary: string;
28
- attempts: number;
29
- platform?: string;
30
- degraded?: boolean;
31
- };
32
- export declare function formatOpenAiCodexFailureNotice(input: CodexFailureNoticeInput): string;
33
- export declare function formatCronJobDeliveryFailure(jobName: string, notice: string): string;
@@ -1,4 +0,0 @@
1
- import type { WorkerProvider } from "./types.js";
2
- /** Test hook — inject a stub provider without spawning Claude. */
3
- export declare function setWorkerProviderForTests(provider: WorkerProvider | null): void;
4
- export declare function resolveWorkerProvider(name?: string): WorkerProvider;
@@ -1,36 +0,0 @@
1
- export interface WorkerProviderStartOptions {
2
- name: string;
3
- task: string;
4
- ownedPaths?: string[];
5
- model?: string;
6
- branch?: string;
7
- worktreePath: string;
8
- workerDir: string;
9
- stdoutPath: string;
10
- stderrPath: string;
11
- heartbeatPath: string;
12
- /** Fully built agent prompt passed to the provider CLI. */
13
- prompt: string;
14
- /** Expert/security review lane — spawn env blocks prod DB resolution (LB1). */
15
- reviewWorker?: boolean;
16
- /** Provider-enforced worker capability mode. */
17
- executionMode?: import("../worker-execution-mode.js").WorkerExecutionMode;
18
- }
19
- export interface WorkerProviderStartResult {
20
- pid: number;
21
- model?: string;
22
- }
23
- export type { ModelPreflightResult } from "./model-preflight.js";
24
- import type { ModelPreflightResult } from "./model-preflight.js";
25
- export interface WorkerProvider {
26
- name: string;
27
- /** Model launched when the caller does not request one. */
28
- defaultModel?: string;
29
- /**
30
- * Validate + normalize a requested model before spawn. Returns the launch model
31
- * (possibly rewritten) or a structured failure for an invalid model/provider
32
- * combination. When absent, the model is passed through unchanged.
33
- */
34
- preflightModel?(model: string | undefined): ModelPreflightResult;
35
- start(opts: WorkerProviderStartOptions): WorkerProviderStartResult;
36
- }
package/dist/redact.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare function redactHarness(text: string, secret?: string): string;
@@ -1,4 +0,0 @@
1
- /**
2
- * Add a worktree checked out at an existing remote branch (repair-target checkout).
3
- */
4
- export declare function addWorktreeForRepairBranch(repo: string, worktreePath: string, branch: string): void;