@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,96 +0,0 @@
1
- /** Pure context-budget receipt schema — no AgentOS/app dependencies. */
2
- export declare const RUNTIME_CONTEXT_BUDGET_RECEIPT_SCHEMA_VERSION: "runtime-context-budget-receipt.v1";
3
- export declare const RUNTIME_CONTEXT_BUDGET_RECEIPT_V2_SCHEMA_VERSION: "runtime-context-budget-receipt.v2";
4
- export type RuntimeContextBudgetReceiptSchemaVersion = typeof RUNTIME_CONTEXT_BUDGET_RECEIPT_SCHEMA_VERSION | typeof RUNTIME_CONTEXT_BUDGET_RECEIPT_V2_SCHEMA_VERSION;
5
- export type ContextEnvelopeMode = "routine" | "review" | "ops" | "debug" | "handoff";
6
- export type ContextBudgetReceiptSurface = "chat_default" | "context_envelope" | "harness_worker" | "runtime_prompt" | "mcp_tool_context" | "agentos_handoff" | "operator_debug" | "full_expansion";
7
- export type RuntimeContextSection = "instruction_policy" | "persona" | "task_envelope" | "active_state" | "memory_preview" | "memory_quality" | "recent_failures" | "onboarding" | "structural";
8
- export type RuntimeContextRehydrationKind = "memory" | "task" | "plan" | "active_state" | "source";
9
- export interface RuntimeContextRehydrationRoute {
10
- handle: string;
11
- kind: RuntimeContextRehydrationKind;
12
- }
13
- export interface RuntimeContextSectionReceipt {
14
- section: RuntimeContextSection;
15
- chars: number;
16
- estimatedTokens: number;
17
- fingerprint?: string | null;
18
- selectedSlugs?: string[];
19
- omittedCount?: number;
20
- duplicatesCollapsed?: number;
21
- policyFingerprint?: string | null;
22
- rehydrationRoutes?: RuntimeContextRehydrationRoute[];
23
- }
24
- export type RuntimeContextActiveStateLookupKind = "pr" | "branch" | "deploy" | "daemon" | "task" | "worker";
25
- export type RuntimeContextActiveStateLookupStatus = "used" | "missing" | "error";
26
- export interface RuntimeContextActiveStateLookup {
27
- kind: RuntimeContextActiveStateLookupKind;
28
- handle: string;
29
- status: RuntimeContextActiveStateLookupStatus;
30
- }
31
- export interface UsefulContextCoverage {
32
- requiredOperatingRuleSlugsPresent: string[];
33
- requiredOperatingRuleDenominator: number;
34
- activeTaskHandlePresent: boolean;
35
- planHandlePresent: boolean;
36
- selectedHandles: string[];
37
- omittedHandles: string[];
38
- expansionRoutes: string[];
39
- memoryQualityTraceId?: string | null;
40
- }
41
- export interface RuntimeContextBudgetReceipt {
42
- schemaVersion: typeof RUNTIME_CONTEXT_BUDGET_RECEIPT_SCHEMA_VERSION;
43
- agentOsId: string;
44
- taskId: string;
45
- planId: string | null;
46
- personaSlug: string | null;
47
- mode: ContextEnvelopeMode;
48
- generatedAt: string;
49
- totalChars: number;
50
- estimatedTokens: number;
51
- duplicatesCollapsed: number;
52
- omittedCount: number;
53
- activeStateLookups: RuntimeContextActiveStateLookup[];
54
- sections: RuntimeContextSectionReceipt[];
55
- }
56
- export interface RuntimeContextBudgetReceiptV2 extends Omit<RuntimeContextBudgetReceipt, "schemaVersion" | "agentOsId" | "taskId"> {
57
- schemaVersion: typeof RUNTIME_CONTEXT_BUDGET_RECEIPT_V2_SCHEMA_VERSION;
58
- surface: ContextBudgetReceiptSurface;
59
- agentOsId: string | null;
60
- taskId: string | null;
61
- finalSerializedChars: number;
62
- finalSerializedTokens: number;
63
- usefulContextCoverage: UsefulContextCoverage;
64
- budgetSatisfied: boolean;
65
- overBudgetReason: string | null;
66
- }
67
- /** Deterministic chars → token estimate (4 UTF-16 code units per token, ceiling). */
68
- export declare function estimateTokensFromChars(chars: number): number;
69
- export declare function sectionReceiptFromMarkdown(section: RuntimeContextSection, markdown: string | null | undefined, extras?: Partial<Pick<RuntimeContextSectionReceipt, "fingerprint" | "selectedSlugs" | "omittedCount" | "duplicatesCollapsed" | "policyFingerprint" | "rehydrationRoutes">>): RuntimeContextSectionReceipt;
70
- export declare function finalizeReceiptTotals(sections: RuntimeContextSectionReceipt[], overrides?: {
71
- duplicatesCollapsed?: number;
72
- omittedCount?: number;
73
- }): Pick<RuntimeContextBudgetReceipt, "totalChars" | "estimatedTokens" | "duplicatesCollapsed" | "omittedCount">;
74
- export interface BuildContextBudgetReceiptV2Input {
75
- surface: ContextBudgetReceiptSurface;
76
- agentOsId?: string | null;
77
- taskId?: string | null;
78
- planId?: string | null;
79
- personaSlug?: string | null;
80
- mode: ContextEnvelopeMode;
81
- generatedAt: string;
82
- finalSerializedChars: number;
83
- sections: RuntimeContextSectionReceipt[];
84
- usefulContextCoverage: UsefulContextCoverage;
85
- activeStateLookups?: RuntimeContextActiveStateLookup[];
86
- duplicatesCollapsed?: number;
87
- omittedCount?: number;
88
- budgetSatisfied?: boolean;
89
- overBudgetReason?: string | null;
90
- }
91
- export declare function buildContextBudgetReceiptV2(input: BuildContextBudgetReceiptV2Input): RuntimeContextBudgetReceiptV2;
92
- export declare function upgradeReceiptToV2(v1: RuntimeContextBudgetReceipt, input: Omit<BuildContextBudgetReceiptV2Input, "sections" | "mode" | "generatedAt"> & {
93
- mode?: ContextEnvelopeMode;
94
- generatedAt?: string;
95
- }): RuntimeContextBudgetReceiptV2;
96
- export declare function isRuntimeContextBudgetReceiptV2(receipt: RuntimeContextBudgetReceipt | RuntimeContextBudgetReceiptV2): receipt is RuntimeContextBudgetReceiptV2;
@@ -1,33 +0,0 @@
1
- /** Shared with app memory-retrieval.constants — single source for MCP + server preview blocks. */
2
- export declare const MEMORY_LANE_PREVIEW_CHARS = 160;
3
- export interface ContextPreviewMemoryItem {
4
- slug: string;
5
- lane?: string | null;
6
- trust?: string | null;
7
- contentPreview: string;
8
- selectedBecause?: string | null;
9
- expansionRoute?: string | null;
10
- expandable?: boolean;
11
- }
12
- export interface ContextPreviewBlockInput {
13
- sectionTitle: string;
14
- items: ContextPreviewMemoryItem[];
15
- emptyFallback?: string;
16
- previewCharsPerItem?: number;
17
- }
18
- /** Compact preview block — handles-first, never full memory bodies. */
19
- export declare function formatContextPreviewMemoryBlock(input: ContextPreviewBlockInput): string;
20
- export declare function chatMemoriesToPreviewItems(memories: {
21
- content: string;
22
- similarity?: number;
23
- }[]): ContextPreviewMemoryItem[];
24
- /** Legacy chat memory block — flag-invariant (PR1 baseline capture, diagnostics). */
25
- export declare function buildLegacyChatMemorySection(memories: {
26
- content: string;
27
- similarity?: number;
28
- }[]): string;
29
- /** Shadow chat preview — ignores dark flag (diagnostics / MCP comparison). */
30
- export declare function buildChatMemoryShadowPreview(memories: {
31
- content: string;
32
- similarity?: number;
33
- }[]): string;
@@ -1,7 +0,0 @@
1
- /**
2
- * Portable absolute path to the `kynver` CLI entry for systemd/supervisors.
3
- * systemd does not inherit shell PATH — bare `kynver` fails with status 203/EXEC.
4
- */
5
- export declare function resolveKynverCliExecutable(cliEntry?: string): string;
6
- /** Quote an ExecStart binary path when it contains whitespace. */
7
- export declare function formatSystemdExecPath(executable: string): string;
@@ -1,22 +0,0 @@
1
- export declare const DEFAULT_KYNVER_ENV_FILE: string;
2
- export interface EnvFileMergeResult {
3
- path: string;
4
- changed: boolean;
5
- keysWritten: string[];
6
- keysRemoved: string[];
7
- }
8
- /** Parse `KEY=VALUE` lines; skips blanks and `#` comments. */
9
- export declare function parseEnvFile(content: string): Map<string, string>;
10
- export declare function serializeEnvFile(values: Map<string, string>, header?: string): string;
11
- export declare function readEnvFile(filePath?: string): Map<string, string>;
12
- export declare function loadEnvFileIntoProcess(filePath?: string, options?: {
13
- override?: boolean;
14
- }): {
15
- path: string;
16
- loaded: number;
17
- skipped: number;
18
- };
19
- export declare function mergeEnvFile(updates: Record<string, string | undefined>, options?: {
20
- filePath?: string;
21
- removeKeys?: string[];
22
- }): EnvFileMergeResult;
@@ -1,21 +0,0 @@
1
- export interface KynverCronEnv {
2
- storePath: string;
3
- statePath: string;
4
- lockPath: string;
5
- fireBaseUrl: string | null;
6
- secret: string | null;
7
- tickEnabled: boolean;
8
- tickIntervalMs: number;
9
- missedRunPolicy: "catch_up" | "skip";
10
- maxCatchUpPerTick: number;
11
- maxRetries: number;
12
- retryBackoffMs: number;
13
- inflightLeaseMs: number;
14
- }
15
- export declare function defaultKynverCronStorePath(): string;
16
- export declare function defaultKynverCronStatePath(storePath?: string): string;
17
- export declare function resolveKynverCronFireBaseUrl(): string | null;
18
- export declare function resolveKynverCronSecret(): string | null;
19
- /** Whether the connected-box daemon should run the local cron tick loop. */
20
- export declare function resolveKynverCronEnv(): KynverCronEnv;
21
- export declare function isKynverCronDaemonPrimary(env?: KynverCronEnv): boolean;
@@ -1,8 +0,0 @@
1
- import type { CronFireResult, CronRegisteredJob } from "./cron-types.js";
2
- export declare function fireKynverCronJob(input: {
3
- entry: CronRegisteredJob;
4
- baseUrl: string;
5
- secret: string;
6
- jobId?: string | null;
7
- fetchFn?: typeof fetch;
8
- }): Promise<CronFireResult>;
@@ -1,3 +0,0 @@
1
- import type { CronJobSpec } from "./cron-types.js";
2
- /** Match server `deterministicId` in scheduler.providers.kynver-cron.ts */
3
- export declare function deterministicCronProviderId(spec: CronJobSpec): string;
@@ -1,27 +0,0 @@
1
- import type { CronJobSpec } from "./cron-types.js";
2
- export interface SchedulerJobRow {
3
- id: string;
4
- kind: string;
5
- provider: string;
6
- status: string;
7
- cron?: string | null;
8
- dedupeKey?: string | null;
9
- }
10
- export declare function listSchedulerJobs(baseUrl: string, agentOsId: string, apiKey: string, query?: Record<string, string>): Promise<SchedulerJobRow[]>;
11
- export declare function ensureWatchdogScheduleRemote(baseUrl: string, agentOsId: string, apiKey: string, cron?: string, options?: {
12
- requireProvider?: "kynver-cron";
13
- }): Promise<{
14
- job: SchedulerJobRow;
15
- route: string;
16
- dedupeKey: string;
17
- requestedCron: string;
18
- selectedProvider: string | null;
19
- }>;
20
- export declare function cancelSchedulerJob(baseUrl: string, agentOsId: string, jobId: string, apiKey: string): Promise<void>;
21
- export declare function buildWatchdogCronSpec(agentOsId: string, cron: string, dedupeKey?: string): CronJobSpec;
22
- export declare function findQstashWatchdogLeftovers(jobs: SchedulerJobRow[]): SchedulerJobRow[];
23
- export declare function findKynverCronWatchdog(jobs: SchedulerJobRow[]): SchedulerJobRow | undefined;
24
- export declare function canCancelQstashWatchdogLeftovers(jobs: SchedulerJobRow[]): {
25
- allowed: boolean;
26
- reason?: string;
27
- };
@@ -1,2 +0,0 @@
1
- export declare function runCronInstallCli(args: Record<string, string | boolean>): Promise<void>;
2
- export declare function runCronVerifyCli(args: Record<string, string | boolean>): Promise<void>;
@@ -1,34 +0,0 @@
1
- import type { KynverUserConfig } from "../config.js";
2
- export declare const WATCHDOG_DEDUPE_KEY = "watchdog:board-sweep";
3
- export declare const DEFAULT_WATCHDOG_CRON = "*/5 * * * *";
4
- export declare const HOSTED_KYNVER_CRON_CUTOVER_STEPS: readonly ["Set KYNVER_SCHEDULER_PROVIDER=kynver-cron on the hosted Kynver deployment (the Railway production service).", "Set KYNVER_CRON_SECRET to the same value written to ~/.kynver/.env by this installer.", "Unset KYNVER_CRON_STORE_PATH on the Railway service — the connected box owns the local store.", "Keep QSTASH_TOKEN only if other non-watchdog schedules still use QStash (analyst/market jobs)."];
5
- /** @deprecated Renamed after the 2026-08 Railway cutover — use HOSTED_KYNVER_CRON_CUTOVER_STEPS. */
6
- export declare const VERCEL_KYNVER_CRON_CUTOVER_STEPS: readonly ["Set KYNVER_SCHEDULER_PROVIDER=kynver-cron on the hosted Kynver deployment (the Railway production service).", "Set KYNVER_CRON_SECRET to the same value written to ~/.kynver/.env by this installer.", "Unset KYNVER_CRON_STORE_PATH on the Railway service — the connected box owns the local store.", "Keep QSTASH_TOKEN only if other non-watchdog schedules still use QStash (analyst/market jobs)."];
7
- export interface CronInstallPlanInput {
8
- config: KynverUserConfig;
9
- apiBaseUrl: string;
10
- agentOsId: string;
11
- cronSecret: string;
12
- storePath?: string;
13
- envFilePath?: string;
14
- defaultDaemonRunId?: string;
15
- installSystemd?: boolean;
16
- }
17
- export interface CronInstallPlan {
18
- envFilePath: string;
19
- configPath: string;
20
- storePath: string;
21
- envUpdates: Record<string, string>;
22
- envRemovals: string[];
23
- configUpdates: Partial<KynverUserConfig>;
24
- deploymentSteps: readonly string[];
25
- prerequisites: string[];
26
- systemdSupported: boolean;
27
- watchdogSpec: {
28
- kind: "watchdog";
29
- cron: string;
30
- dedupeKey: string;
31
- callbackPath: string;
32
- };
33
- }
34
- export declare function buildCronInstallPlan(input: CronInstallPlanInput): CronInstallPlan;
@@ -1,6 +0,0 @@
1
- export declare function generateCronSecret(): string;
2
- export declare function resolveCronSecretForInstall(envFilePath?: string): {
3
- secret: string;
4
- generated: boolean;
5
- source: "env" | "env-file" | "generated";
6
- };
@@ -1,18 +0,0 @@
1
- export declare const KYNVER_CRON_DAEMON_UNIT = "kynver-cron-daemon.service";
2
- export interface SystemdDaemonServiceInput {
3
- envFilePath: string;
4
- agentOsId: string;
5
- runId: string;
6
- kynverBin?: string;
7
- }
8
- export declare function defaultSystemdUserUnitDir(): string;
9
- export declare function renderKynverCronDaemonService(input: SystemdDaemonServiceInput): string;
10
- export interface SystemdInstallResult {
11
- supported: boolean;
12
- unitPath: string | null;
13
- written: boolean;
14
- enabled: boolean;
15
- started: boolean;
16
- note?: string;
17
- }
18
- export declare function installSystemdUserDaemon(input: SystemdDaemonServiceInput, execute: boolean): SystemdInstallResult;
@@ -1,15 +0,0 @@
1
- import type { KynverUserConfig } from "../config.js";
2
- export interface CronVerifyCheck {
3
- id: string;
4
- ok: boolean;
5
- summary: string;
6
- remediation?: string;
7
- }
8
- export interface CronInstallVerifyReport {
9
- ok: boolean;
10
- checks: CronVerifyCheck[];
11
- }
12
- export declare function verifyCronInstall(input: {
13
- config: KynverUserConfig;
14
- envFilePath?: string;
15
- }): Promise<CronInstallVerifyReport>;
@@ -1,51 +0,0 @@
1
- import { buildCronInstallPlan } from "./cron-install-plan.js";
2
- import { installSystemdUserDaemon } from "./cron-install-systemd.js";
3
- import { verifyCronInstall } from "./cron-install-verify.js";
4
- export interface CronInstallOptions {
5
- execute?: boolean;
6
- json?: boolean;
7
- installSystemd?: boolean;
8
- confirmQstashRemoval?: boolean;
9
- skipWatchdog?: boolean;
10
- skipTestFire?: boolean;
11
- agentOsId?: string;
12
- apiBaseUrl?: string;
13
- runId?: string;
14
- }
15
- export interface CronInstallResult {
16
- ok: boolean;
17
- dryRun: boolean;
18
- plan: ReturnType<typeof buildCronInstallPlan>;
19
- secretGenerated: boolean;
20
- envFile?: {
21
- path: string;
22
- changed: boolean;
23
- keysWritten: string[];
24
- };
25
- configPath: string;
26
- storeInitialized: boolean;
27
- watchdog?: {
28
- remoteJobId?: string;
29
- provider?: string;
30
- localProviderScheduleId?: string;
31
- error?: string;
32
- };
33
- qstashWatchdog?: {
34
- found: Array<{
35
- id: string;
36
- provider: string;
37
- status: string;
38
- }>;
39
- removed: string[];
40
- manualSteps: string[];
41
- };
42
- systemd?: ReturnType<typeof installSystemdUserDaemon>;
43
- testFire?: {
44
- fired: number;
45
- errors: number;
46
- skipped?: boolean;
47
- };
48
- verify?: Awaited<ReturnType<typeof verifyCronInstall>>;
49
- blockers: string[];
50
- }
51
- export declare function runCronInstall(opts?: CronInstallOptions): Promise<CronInstallResult>;
@@ -1,9 +0,0 @@
1
- export interface CronTickLockInfo {
2
- pid: number;
3
- at: string;
4
- }
5
- export declare function tryAcquireCronTickLock(lockPath: string): {
6
- acquired: boolean;
7
- reason?: string;
8
- };
9
- export declare function releaseCronTickLock(lockPath: string): void;
@@ -1,8 +0,0 @@
1
- import type { CronJobSpec } from "./cron-types.js";
2
- export declare function isCronExpression(value: string): boolean;
3
- /** UTC 5-field cron match for a Date (minute resolution). */
4
- export declare function cronMatchesUtc(expr: string, at: Date): boolean;
5
- /** Next UTC fire at or strictly after `after` (minute resolution). */
6
- export declare function computeNextCronFireUtc(expr: string, after: Date): Date | null;
7
- export declare function computeInitialNextFire(spec: CronJobSpec, now: Date): string | null;
8
- export declare function advanceRecurringNextFire(spec: CronJobSpec, fromInclusive: Date): string | null;
@@ -1,35 +0,0 @@
1
- import type { KynverUserConfig } from "../config.js";
2
- import { type CronInstallVerifyReport, type CronVerifyCheck } from "./cron-install-verify.js";
3
- export type DeploymentSchedulerProvider = "qstash" | "kynver-cron" | "openclaw-cron";
4
- /** Local box checks that must pass before the daemon can own cron fires. */
5
- export declare const LOCAL_CRON_READINESS_CHECK_IDS: readonly ["deployment_provider", "cron_secret", "env_file", "cron_store"];
6
- export type LocalCronReadinessCheckId = (typeof LOCAL_CRON_READINESS_CHECK_IDS)[number];
7
- export interface CronReadinessReport {
8
- expectsKynverCron: boolean;
9
- ready: boolean;
10
- failedChecks: CronVerifyCheck[];
11
- }
12
- /**
13
- * Whether this connected runner should use the local Kynver Cron tick loop.
14
- * QStash/OpenClaw attestations win; otherwise a linked box defaults to kynver-cron.
15
- */
16
- export declare function expectsKynverCronOnRunner(config: KynverUserConfig): boolean;
17
- export declare function isCronLocallyReady(report: CronInstallVerifyReport): boolean;
18
- export declare function assessCronReadiness(config: KynverUserConfig): Promise<CronReadinessReport>;
19
- export declare function formatCronReadinessGuidance(failedChecks: CronVerifyCheck[]): string[];
20
- export interface EnsureCronForStartInput {
21
- config: KynverUserConfig;
22
- agentOsId: string;
23
- runId: string;
24
- args: Record<string, string | boolean>;
25
- }
26
- export interface EnsureCronForStartResult {
27
- action: "skipped" | "ready" | "installed" | "guided";
28
- installOk?: boolean;
29
- blockers?: string[];
30
- }
31
- /**
32
- * Before `kynver start` hands off to the daemon, ensure local Kynver Cron is configured
33
- * when this box is expected to own schedule fires.
34
- */
35
- export declare function ensureCronReadyForStart(input: EnsureCronForStartInput): Promise<EnsureCronForStartResult>;
@@ -1,10 +0,0 @@
1
- import type { KynverCronEnv } from "./cron-env.js";
2
- export interface KynverCronStatusReport {
3
- primary: "kynver-cron-daemon" | "qstash" | "disabled";
4
- env: Pick<KynverCronEnv, "storePath" | "statePath" | "tickEnabled" | "fireBaseUrl" | "missedRunPolicy" | "maxCatchUpPerTick" | "maxRetries">;
5
- jobCount: number;
6
- stateJobCount: number;
7
- credentialsReady: boolean;
8
- daemonPrimary: boolean;
9
- }
10
- export declare function buildKynverCronStatusReport(env?: KynverCronEnv): Promise<KynverCronStatusReport>;
@@ -1,8 +0,0 @@
1
- import type { CronRegisteredJob } from "./cron-types.js";
2
- export declare function parseCronStore(raw: string | null): CronRegisteredJob[];
3
- export declare function loadCronJobs(storePath?: string): Promise<CronRegisteredJob[]>;
4
- /** Insert or replace a cron store entry (by `providerScheduleId`). */
5
- export declare function saveCronJob(entry: CronRegisteredJob, storePath?: string): Promise<void>;
6
- export declare function ensureCronStoreInitialized(storePath?: string): Promise<{
7
- created: boolean;
8
- }>;
@@ -1,2 +0,0 @@
1
- export declare function runCronStatusCli(json: boolean): Promise<void>;
2
- export declare function runCronTickCli(args: Record<string, string | boolean>): Promise<void>;
@@ -1,5 +0,0 @@
1
- import type { CronTickJobState, CronTickStateFile } from "./cron-types.js";
2
- export declare function parseCronTickState(raw: string | null): CronTickStateFile;
3
- export declare function loadCronTickState(statePath: string): Promise<CronTickStateFile>;
4
- export declare function saveCronTickState(statePath: string, state: CronTickStateFile): Promise<void>;
5
- export declare function getOrCreateJobState(state: CronTickStateFile, providerScheduleId: string): CronTickJobState;
@@ -1,19 +0,0 @@
1
- import type { CronTickErrorDetail } from "./cron-types.js";
2
- import type { KynverCronEnv } from "./cron-env.js";
3
- export interface CronTickResult {
4
- enabled: boolean;
5
- skipped?: string;
6
- scanned: number;
7
- due: number;
8
- fired: number;
9
- skippedJobs: number;
10
- errors: number;
11
- lockHeld?: boolean;
12
- errorDetails?: CronTickErrorDetail[];
13
- }
14
- export declare function runKynverCronTick(opts?: {
15
- env?: KynverCronEnv;
16
- now?: Date;
17
- fetchFn?: typeof fetch;
18
- agentOsIdFilter?: string | null;
19
- }): Promise<CronTickResult>;
@@ -1,53 +0,0 @@
1
- /** Minimal mirror of server `KynverCronRegisteredJob` / `SchedulerJobSpec` for the local store. */
2
- export interface CronJobTarget {
3
- agentOsId: string;
4
- taskId?: string | null;
5
- planId?: string | null;
6
- planVersionId?: string | null;
7
- goalId?: string | null;
8
- projectId?: string | null;
9
- }
10
- export interface CronJobSpec {
11
- kind: string;
12
- scheduleKind: "cron" | "runAt";
13
- cron?: string | null;
14
- runAt?: string | null;
15
- callbackPath: string;
16
- payload?: Record<string, unknown> | null;
17
- target: CronJobTarget;
18
- description?: string | null;
19
- dedupeKey?: string | null;
20
- }
21
- export interface CronRegisteredJob {
22
- providerScheduleId: string;
23
- spec: CronJobSpec;
24
- registeredAt: string;
25
- paused: boolean;
26
- }
27
- export interface CronTickJobState {
28
- providerScheduleId: string;
29
- nextFireAt: string | null;
30
- lastFiredAt: string | null;
31
- lastAttemptAt: string | null;
32
- consecutiveFailures: number;
33
- completedAt: string | null;
34
- inflightUntil: string | null;
35
- }
36
- export interface CronTickStateFile {
37
- version: 1;
38
- jobs: Record<string, CronTickJobState>;
39
- }
40
- export interface CronFireResult {
41
- ok: boolean;
42
- status: number;
43
- body: unknown;
44
- url: string;
45
- }
46
- export interface CronTickErrorDetail {
47
- providerScheduleId: string;
48
- callbackPath: string;
49
- url?: string;
50
- status?: number;
51
- body?: unknown;
52
- error?: string;
53
- }
@@ -1 +0,0 @@
1
- export { classifyOpenAiCodexError, formatCronJobDeliveryFailure, formatOpenAiCodexFailureNotice, resolveOpenAiCodexRetryBudget, type ClassifiedOpenAiCodexError, type CodexFailureNoticeInput, } from "../providers/openai-codex-resilience.js";
@@ -1,16 +0,0 @@
1
- import { type KynverUserConfig } from "./config.js";
2
- import { type ResolvedBoxIdentity } from "./box-identity.js";
3
- export interface DaemonInstallValidation {
4
- ok: boolean;
5
- box: ResolvedBoxIdentity;
6
- workerCapSource: string;
7
- maxConcurrentWorkers: number;
8
- autoCap: number;
9
- warnings: string[];
10
- errors: string[];
11
- }
12
- /**
13
- * Validate box identity and worker-cap provenance before the daemon loop runs.
14
- * Loud warnings prevent Forge hosts from silently inheriting Ghost workspace slugs.
15
- */
16
- export declare function validateDaemonInstallIdentity(config?: KynverUserConfig, env?: NodeJS.ProcessEnv): DaemonInstallValidation;
@@ -1,30 +0,0 @@
1
- import { type RuntimeIdentityV1 } from "./runtime-identity.js";
2
- export interface DaemonHeartbeat {
3
- observedAt: string;
4
- pid: number;
5
- runId: string;
6
- agentOsId: string;
7
- /** Active server-delivered instruction bundle version (M6); additive. */
8
- instructionBundleVersion?: string;
9
- /**
10
- * Versioned runtime identity (Node 24 migration N2b); additive. Absent on
11
- * pre-N2b payloads — consumers MUST map absence to `unknown`, never
12
- * `compatible`.
13
- */
14
- runtimeIdentity?: RuntimeIdentityV1;
15
- }
16
- export declare function daemonHeartbeatPath(agentOsId: string): string;
17
- /** Best-effort atomic write (temp + rename). Never throws. */
18
- export declare function writeDaemonHeartbeat(input: {
19
- agentOsId: string;
20
- runId: string;
21
- now?: Date;
22
- instructionBundleVersion?: string;
23
- }): void;
24
- export declare function readDaemonHeartbeat(agentOsId: string): DaemonHeartbeat | null;
25
- /**
26
- * True when the heartbeat indicates a hung daemon. A missing heartbeat is NOT
27
- * stale — a freshly spawned child has not written one yet; the keeper grants a
28
- * startup grace window instead.
29
- */
30
- export declare function isDaemonHeartbeatStale(beat: DaemonHeartbeat | null, stallMs: number, nowMs?: number): boolean;
@@ -1,53 +0,0 @@
1
- /**
2
- * A child that dies nonzero this fast with a config-shaped error message will
3
- * die identically on every respawn — a bad `~/.kynver/config.json` must not
4
- * become an infinite keeper crash loop (respawn → same error → backoff → …).
5
- */
6
- export declare const KEEPER_PERMANENT_FAILURE_WINDOW_MS = 10000;
7
- export interface KeeperChildFailureVerdict {
8
- permanent: boolean;
9
- /** First stderr line that matched a permanent pattern (for the operator). */
10
- matchedLine?: string;
11
- }
12
- /**
13
- * Decide whether a child exit is a permanent configuration failure (stop
14
- * respawning) or transient (keep exponential backoff). Permanent requires ALL
15
- * of: a nonzero exit code (signals are transient — OOM killer etc.), death
16
- * inside the startup grace window, and stderr matching a known config-error
17
- * class. Anything else keeps the resilient default: respawn with backoff.
18
- */
19
- export declare function classifyKeeperChildFailure(input: {
20
- exitCode: number | null;
21
- exitSignal: NodeJS.Signals | null;
22
- uptimeMs: number;
23
- stderrTail: string;
24
- }): KeeperChildFailureVerdict;
25
- /**
26
- * Remediation-formatted error for a missing daemon/keeper argument (modeled
27
- * on `formatAgentOsIdValidationError`): what is missing, where it normally
28
- * comes from (`~/.kynver/config.json`), and the command that sets it up. The
29
- * leading `missing --…` token is load-bearing — the keeper's permanent
30
- * config-error classifier and legacy log greps both key on it.
31
- */
32
- export declare function formatMissingDaemonArgError(flag: "--run" | "--agent-os-id"): string;
33
- export declare function resolveKeeperStallMs(flag: string | boolean | undefined, env?: NodeJS.ProcessEnv): number;
34
- /**
35
- * Supervision is the DEFAULT for `kynver daemon`. Opt out only when an
36
- * external supervisor (systemd, pm2, container restart policy) already owns
37
- * restarts: `--no-supervise`, `--supervised false`, or
38
- * `KYNVER_DAEMON_SUPERVISED=0|false|no|off`. The keeper's own child carries
39
- * the internal `--keeper-child` flag so it can never recurse into a second
40
- * keeper. `--supervised` stays accepted as a no-op for back-compat.
41
- */
42
- export declare function shouldRunDaemonKeeper(args: Record<string, string | boolean>, env?: NodeJS.ProcessEnv): boolean;
43
- /** Exponential backoff with cap; resets to base after a healthy stretch. */
44
- export declare function nextKeeperBackoffMs(consecutiveFailures: number, base?: number, cap?: number): number;
45
- /** True when the child ran long enough to count as healthy (resets backoff). */
46
- export declare function keeperRunWasHealthy(startedAtMs: number, endedAtMs: number, healthyMs?: number): boolean;
47
- /**
48
- * Rebuild the child argv: original daemon args minus keeper-only flags, plus
49
- * the internal `--keeper-child` marker that prevents keeper recursion now
50
- * that supervision is the default.
51
- */
52
- export declare function buildKeeperChildArgv(argv: readonly string[]): string[];
53
- export declare function runDaemonKeeper(args: Record<string, string | boolean>, rawArgv?: readonly string[]): Promise<void>;
@@ -1,2 +0,0 @@
1
- /** Block native Windows daemon unless explicitly overridden (console flash swarm). */
2
- export declare function assertNativeDaemonAllowed(): void;
@@ -1,4 +0,0 @@
1
- /** Supported consumer host kinds for daemon restart ownership. */
2
- export type SupportedHostKind = "linux" | "wsl" | "darwin" | "win32";
3
- export declare function detectSupportedHostKind(): SupportedHostKind;
4
- export declare function hostSupportsSystemdUserUnit(host: SupportedHostKind): boolean;
@@ -1,6 +0,0 @@
1
- export { detectSupportedHostKind, hostSupportsSystemdUserUnit, type SupportedHostKind } from "./host.js";
2
- export { buildDaemonSupervisionPolicy, defaultSupervisionOwner, formatSupervisionGuidance, resolveSupervisionOwner, supervisionEnvUpdates, type DaemonSupervisionOwner, type DaemonSupervisionPolicy, } from "./policy.js";
3
- export { applyDaemonSupervisionSetup, defaultSystemdUserUnitPath, isSystemdSupervisionInstalled, supervisionOwnerForDoctor, type DaemonSupervisionSetupResult, } from "./setup.js";
4
- export { ensureDaemonSupervisionForStart, formatSystemdDelegationGuidance, shouldDelegateStartToSystemd, summarizeSupervisionForStart, type EnsureDaemonSupervisionInput, type EnsureDaemonSupervisionResult, } from "./start.js";
5
- export { assessDaemonSupervisionChecks, type AssessDaemonSupervisionOptions, type DaemonSupervisionVerifyCheck, } from "./verify.js";
6
- export { assessSupervisionHealth, type SupervisionHealth } from "./supervision-health.js";