@oscharko-dev/keiko 1.3.0 → 1.3.2

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 (536) hide show
  1. package/README.md +40 -5
  2. package/dist/ui/csp-hashes.json +7 -7
  3. package/dist/ui/static/404.html +1 -1
  4. package/dist/ui/static/__next.__PAGE__.txt +8 -8
  5. package/dist/ui/static/__next._full.txt +8 -8
  6. package/dist/ui/static/__next._tree.txt +1 -1
  7. package/dist/ui/static/_next/static/chunks/{1layk925byvud.js → 0-o73vcl81gxp.js} +1 -1
  8. package/dist/ui/static/_next/static/chunks/01f2r2l4gzscm.css +4 -0
  9. package/dist/ui/static/_next/static/chunks/{1na0aypin6kwh.js → 01nzk47fvnp1t.js} +1 -1
  10. package/dist/ui/static/_next/static/chunks/{0kx828qnu1y09.js → 02jl1lf3a8dud.js} +5 -5
  11. package/dist/ui/static/_next/static/chunks/05ckjqpq5fs4j.js +1 -0
  12. package/dist/ui/static/_next/static/chunks/{2_c97y2pecrx2.js → 06j35fs_cota7.js} +1 -1
  13. package/dist/ui/static/_next/static/chunks/0egrai9cigb1t.js +1 -0
  14. package/dist/ui/static/_next/static/chunks/0gzualdhleagc.js +1 -0
  15. package/dist/ui/static/_next/static/chunks/0h-d1ht-slu-w.js +1 -0
  16. package/dist/ui/static/_next/static/chunks/0l2m0uaca7i0k.js +1 -0
  17. package/dist/ui/static/_next/static/chunks/{3_qhvykv4ncye.js → 0wsxu0g-c4dbf.js} +1 -1
  18. package/dist/ui/static/_next/static/chunks/{0cpk4khbn9_uw.js → 1axubnnxhxh-s.js} +1 -1
  19. package/dist/ui/static/_next/static/chunks/1cvzxvmhd8k9g.js +1 -0
  20. package/dist/ui/static/_next/static/chunks/1gnjh00dyjkye.js +1 -0
  21. package/dist/ui/static/_next/static/chunks/{21yx7habl0roe.js → 1jgm4793jm1pv.js} +1 -1
  22. package/dist/ui/static/_next/static/chunks/1ka7n7_t88nku.js +29 -0
  23. package/dist/ui/static/_next/static/chunks/1livbv_zx95bb.js +1 -0
  24. package/dist/ui/static/_next/static/chunks/1lpdde9w2vl93.js +1 -0
  25. package/dist/ui/static/_next/static/chunks/{2dge_j5c5fie5.js → 1mvumqxojg5gz.js} +1 -1
  26. package/dist/ui/static/_next/static/chunks/1n5zoyzs4szlj.js +1 -0
  27. package/dist/ui/static/_next/static/chunks/1ps1c2k2b450f.js +1 -0
  28. package/dist/ui/static/_next/static/chunks/{272m__6w4ehe1.css → 2ayb5cby-2fpy.css} +9 -8
  29. package/dist/ui/static/_next/static/chunks/2gxdz5i19sf2x.js +1 -0
  30. package/dist/ui/static/_next/static/chunks/2muaa_i0plkwf.js +1 -0
  31. package/dist/ui/static/_next/static/chunks/{0e-mzde0wr44_.js → 2ulu3p0ddze30.js} +1 -1
  32. package/dist/ui/static/_next/static/chunks/{2vmw7uw9qfxtm.js → 3-vp5mbiz_k0a.js} +1 -1
  33. package/dist/ui/static/_next/static/chunks/{1jychynbljt3y.js → 37k03e11rps3i.js} +1 -1
  34. package/dist/ui/static/_next/static/chunks/{2mk8qovgc1zl-.js → 3_2d222-16b9x.js} +1 -1
  35. package/dist/ui/static/_next/static/chunks/{3jgowfcbukuu6.js → 3__pdxfo3bpc1.js} +1 -1
  36. package/dist/ui/static/_next/static/chunks/{3tl76hukh2-pb.js → 3hw8-lgs3prjc.js} +1 -1
  37. package/dist/ui/static/_next/static/chunks/{26dysjhfplkru.js → 3pe5ji2-axln6.js} +1 -1
  38. package/dist/ui/static/_next/static/chunks/3qgbq3-b3p7a3.js +1 -0
  39. package/dist/ui/static/_next/static/chunks/{0bn9_5u9n-9b9.js → 3ts6g_psw2r__.js} +1 -1
  40. package/dist/ui/static/_next/static/chunks/3ulj-p08q5sh1.js +1 -0
  41. package/dist/ui/static/_next/static/chunks/{2ni4tm0tqgcdk.js → 3xsa-ukczporu.js} +1 -1
  42. package/dist/ui/static/_next/static/chunks/3yaa0g7ymbq5e.js +1 -0
  43. package/dist/ui/static/_next/static/chunks/{turbopack-3-2dc0s_e9msx.js → turbopack-2n-b6-g15qsj4.js} +1 -1
  44. package/dist/ui/static/_not-found/__next._full.txt +3 -3
  45. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +3 -3
  46. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  47. package/dist/ui/static/_not-found.html +1 -1
  48. package/dist/ui/static/_not-found.txt +3 -3
  49. package/dist/ui/static/atlassian-connectors/__next._full.txt +3 -3
  50. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  51. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +3 -3
  52. package/dist/ui/static/atlassian-connectors.html +1 -1
  53. package/dist/ui/static/atlassian-connectors.txt +3 -3
  54. package/dist/ui/static/index.html +1 -1
  55. package/dist/ui/static/index.txt +8 -8
  56. package/dist/ui/static/launch/__next._full.txt +8 -8
  57. package/dist/ui/static/launch/__next._tree.txt +1 -1
  58. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +8 -8
  59. package/dist/ui/static/launch.html +1 -1
  60. package/dist/ui/static/launch.txt +8 -8
  61. package/dist/ui/static/local-knowledge/__next._full.txt +8 -8
  62. package/dist/ui/static/local-knowledge/__next._tree.txt +1 -1
  63. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +8 -8
  64. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +3 -3
  65. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  66. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +3 -3
  67. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  68. package/dist/ui/static/local-knowledge/capsule.txt +3 -3
  69. package/dist/ui/static/local-knowledge.html +1 -1
  70. package/dist/ui/static/local-knowledge.txt +8 -8
  71. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory-data.generated.json +20 -4
  72. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +10 -0
  73. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -1
  74. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +12 -0
  75. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +14 -0
  76. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -1
  77. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +17 -1
  78. package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
  79. package/node_modules/@oscharko-dev/keiko-cli/dist/doctor.d.ts.map +1 -1
  80. package/node_modules/@oscharko-dev/keiko-cli/dist/doctor.js +28 -3
  81. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts +2 -0
  82. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts.map +1 -1
  83. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.js +38 -2
  84. package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
  85. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
  86. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
  87. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  88. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +85 -5
  89. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -1
  90. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +99 -2
  91. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-coverage.generated.json +365 -5
  92. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-identity.generated.d.ts +1 -1
  93. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-identity.generated.js +1 -1
  94. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operation-surfaces.generated.json +5 -0
  95. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +276 -6
  96. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts.map +1 -1
  97. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.js +325 -3
  98. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.d.ts +2 -0
  99. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.d.ts.map +1 -1
  100. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.js +3 -0
  101. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +38 -0
  102. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
  103. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +89 -1
  104. package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts +48 -1
  105. package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts.map +1 -1
  106. package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.js +85 -6
  107. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.d.ts +14 -1
  108. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.d.ts.map +1 -1
  109. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.js +23 -0
  110. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts +23 -0
  111. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts.map +1 -1
  112. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.js +29 -0
  113. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +2 -2
  114. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
  115. package/node_modules/@oscharko-dev/keiko-contracts/dist/verification.d.ts +8 -0
  116. package/node_modules/@oscharko-dev/keiko-contracts/dist/verification.d.ts.map +1 -1
  117. package/node_modules/@oscharko-dev/keiko-contracts/dist/verification.js +26 -0
  118. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
  119. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
  120. package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts +19 -1
  121. package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts.map +1 -1
  122. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  123. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  124. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  125. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  126. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  127. package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
  128. package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
  129. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  130. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  131. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  132. package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
  133. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  134. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  135. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  136. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  137. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  138. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  139. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  140. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  141. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  142. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  143. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  144. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  145. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  146. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  147. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  148. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  149. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  150. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  151. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts +13 -0
  152. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts.map +1 -1
  153. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts.map +1 -1
  154. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.js +20 -4
  155. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts +1 -1
  156. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts.map +1 -1
  157. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.js +1 -1
  158. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.d.ts +1 -1
  159. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.d.ts.map +1 -1
  160. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.js +24 -3
  161. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.d.ts.map +1 -1
  162. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.js +8 -0
  163. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +7 -1
  164. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts.map +1 -1
  165. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.js +96 -23
  166. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.d.ts.map +1 -1
  167. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.js +24 -6
  168. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  169. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  170. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
  171. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  172. package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.d.ts.map +1 -1
  173. package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.js +22 -3
  174. package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts +6 -0
  175. package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts.map +1 -1
  176. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  177. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  178. package/node_modules/@oscharko-dev/keiko-security/dist/content-redaction.d.ts +27 -0
  179. package/node_modules/@oscharko-dev/keiko-security/dist/content-redaction.d.ts.map +1 -0
  180. package/node_modules/@oscharko-dev/keiko-security/dist/content-redaction.js +32 -0
  181. package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts +2 -1
  182. package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts.map +1 -1
  183. package/node_modules/@oscharko-dev/keiko-security/dist/index.js +2 -1
  184. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-code.d.ts +6 -0
  185. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-code.d.ts.map +1 -1
  186. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-diff.d.ts.map +1 -1
  187. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-diff.js +77 -9
  188. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts +19 -2
  189. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts.map +1 -1
  190. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.js +67 -11
  191. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  192. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  193. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  194. package/node_modules/@oscharko-dev/keiko-server/dist/agent-run-governance.d.ts.map +1 -1
  195. package/node_modules/@oscharko-dev/keiko-server/dist/agent-run-governance.js +4 -1
  196. package/node_modules/@oscharko-dev/keiko-server/dist/browser.d.ts.map +1 -1
  197. package/node_modules/@oscharko-dev/keiko-server/dist/browser.js +5 -5
  198. package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.d.ts.map +1 -1
  199. package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.js +9 -2
  200. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
  201. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +12 -10
  202. package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-rehydration.d.ts +2 -1
  203. package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-rehydration.d.ts.map +1 -1
  204. package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-rehydration.js +22 -9
  205. package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget-diagnostics.d.ts +2 -1
  206. package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget-diagnostics.d.ts.map +1 -1
  207. package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget-token-summary.d.ts +2 -1
  208. package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget-token-summary.d.ts.map +1 -1
  209. package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget-token-summary.js +2 -2
  210. package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget.d.ts +2 -1
  211. package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget.d.ts.map +1 -1
  212. package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget.js +9 -6
  213. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts.map +1 -1
  214. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +9 -7
  215. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.d.ts.map +1 -1
  216. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.js +71 -11
  217. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.d.ts +1 -1
  218. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.d.ts.map +1 -1
  219. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.js +8 -1
  220. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts +2 -1
  221. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts.map +1 -1
  222. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.js +53 -18
  223. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingRunSessionLease.d.ts +33 -0
  224. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingRunSessionLease.d.ts.map +1 -0
  225. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingRunSessionLease.js +188 -0
  226. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts +8 -0
  227. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts.map +1 -1
  228. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.js +31 -16
  229. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionStreamWriter.d.ts +35 -8
  230. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionStreamWriter.d.ts.map +1 -1
  231. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionStreamWriter.js +159 -54
  232. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts +5 -0
  233. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts.map +1 -1
  234. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.js +9 -0
  235. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +25 -0
  236. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts.map +1 -1
  237. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.js +127 -28
  238. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.d.ts.map +1 -1
  239. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.js +10 -7
  240. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts +6 -1
  241. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts.map +1 -1
  242. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.js +25 -6
  243. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.d.ts.map +1 -1
  244. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.js +12 -1
  245. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts.map +1 -1
  246. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.js +4 -3
  247. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts +20 -2
  248. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts.map +1 -1
  249. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.d.ts +12 -1
  250. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.d.ts.map +1 -1
  251. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.js +14 -2
  252. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts +9 -1
  253. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts.map +1 -1
  254. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.js +14 -2
  255. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolNativeEffect.d.ts.map +1 -1
  256. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolNativeEffect.js +29 -12
  257. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.d.ts +3 -3
  258. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.d.ts.map +1 -1
  259. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.js +28 -13
  260. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessTree.d.ts +4 -0
  261. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessTree.d.ts.map +1 -1
  262. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessTree.js +53 -6
  263. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeHttpClient.js +3 -0
  264. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts +7 -1
  265. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts.map +1 -1
  266. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.js +8 -1
  267. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.d.ts +15 -3
  268. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.d.ts.map +1 -1
  269. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.js +100 -1
  270. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.d.ts +17 -7
  271. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.d.ts.map +1 -1
  272. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.js +36 -16
  273. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.d.ts +9 -7
  274. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.d.ts.map +1 -1
  275. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.js +53 -12
  276. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRunStateSweep.d.ts +27 -0
  277. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRunStateSweep.d.ts.map +1 -0
  278. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRunStateSweep.js +114 -0
  279. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts +12 -0
  280. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts.map +1 -1
  281. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.js +62 -2
  282. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts +8 -0
  283. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts.map +1 -1
  284. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.js +70 -13
  285. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts +7 -7
  286. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts.map +1 -1
  287. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.js +7 -2
  288. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts +23 -2
  289. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts.map +1 -1
  290. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.js +174 -60
  291. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts +11 -0
  292. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts.map +1 -1
  293. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.js +35 -11
  294. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts +5 -0
  295. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts.map +1 -1
  296. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.js +7 -0
  297. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeHost.js +1 -0
  298. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts +5 -0
  299. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts.map +1 -1
  300. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.js +10 -2
  301. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts.map +1 -1
  302. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.js +106 -6
  303. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts.map +1 -1
  304. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.js +13 -2
  305. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts.map +1 -1
  306. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.js +3 -1
  307. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.d.ts +3 -0
  308. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.d.ts.map +1 -1
  309. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.js +21 -3
  310. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts.map +1 -1
  311. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.js +101 -23
  312. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.js +2 -2
  313. package/node_modules/@oscharko-dev/keiko-server/dist/command-runner-routes.d.ts.map +1 -1
  314. package/node_modules/@oscharko-dev/keiko-server/dist/command-runner-routes.js +4 -4
  315. package/node_modules/@oscharko-dev/keiko-server/dist/content-redactor.d.ts +13 -0
  316. package/node_modules/@oscharko-dev/keiko-server/dist/content-redactor.d.ts.map +1 -0
  317. package/node_modules/@oscharko-dev/keiko-server/dist/content-redactor.js +33 -0
  318. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-compaction.d.ts +3 -1
  319. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-compaction.d.ts.map +1 -1
  320. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-compaction.js +1 -1
  321. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-gateway.d.ts +2 -2
  322. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-gateway.d.ts.map +1 -1
  323. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-gateway.js +3 -3
  324. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-prompt.d.ts +3 -1
  325. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-prompt.d.ts.map +1 -1
  326. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-prompt.js +10 -0
  327. package/node_modules/@oscharko-dev/keiko-server/dist/deps-activity.d.ts +4 -0
  328. package/node_modules/@oscharko-dev/keiko-server/dist/deps-activity.d.ts.map +1 -1
  329. package/node_modules/@oscharko-dev/keiko-server/dist/deps-activity.js +38 -0
  330. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +12 -4
  331. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
  332. package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +70 -105
  333. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +2 -2
  334. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
  335. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +8 -6
  336. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.d.ts.map +1 -1
  337. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.js +12 -6
  338. package/node_modules/@oscharko-dev/keiko-server/dist/editor/dap/dapDebugRoutes.js +5 -5
  339. package/node_modules/@oscharko-dev/keiko-server/dist/editor/settings/editorSettingsEvents.js +2 -2
  340. package/node_modules/@oscharko-dev/keiko-server/dist/editor/snippets/workspaceSnippetsRoutes.js +3 -3
  341. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRoutes.d.ts.map +1 -1
  342. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRoutes.js +9 -8
  343. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.d.ts.map +1 -1
  344. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.js +11 -0
  345. package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.js +6 -6
  346. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
  347. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +89 -5
  348. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts.map +1 -1
  349. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.js +26 -13
  350. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionRoutes.d.ts.map +1 -1
  351. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionRoutes.js +7 -2
  352. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.d.ts.map +1 -1
  353. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.js +24 -6
  354. package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffTruncation.d.ts +2 -0
  355. package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffTruncation.d.ts.map +1 -0
  356. package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffTruncation.js +78 -0
  357. package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffView.d.ts +9 -0
  358. package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffView.d.ts.map +1 -0
  359. package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffView.js +54 -0
  360. package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.d.ts.map +1 -1
  361. package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.js +27 -3
  362. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.d.ts.map +1 -1
  363. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.js +2 -1
  364. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.d.ts.map +1 -1
  365. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.js +7 -5
  366. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.d.ts.map +1 -1
  367. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.js +4 -2
  368. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.d.ts +1 -0
  369. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.d.ts.map +1 -1
  370. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.js +3 -0
  371. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts +3 -1
  372. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts.map +1 -1
  373. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.js +14 -1
  374. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.d.ts +2 -1
  375. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.d.ts.map +1 -1
  376. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.js +10 -4
  377. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts.map +1 -1
  378. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.js +23 -21
  379. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts.map +1 -1
  380. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.js +17 -10
  381. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts +3 -1
  382. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts.map +1 -1
  383. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +30 -17
  384. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.d.ts +6 -1
  385. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.d.ts.map +1 -1
  386. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.js +8 -1
  387. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-semantic-request.d.ts.map +1 -1
  388. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-semantic-request.js +6 -1
  389. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts.map +1 -1
  390. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.js +4 -3
  391. package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-authority.d.ts.map +1 -1
  392. package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-authority.js +7 -3
  393. package/node_modules/@oscharko-dev/keiko-server/dist/memory-salience.d.ts.map +1 -1
  394. package/node_modules/@oscharko-dev/keiko-server/dist/memory-salience.js +10 -1
  395. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.js +3 -3
  396. package/node_modules/@oscharko-dev/keiko-server/dist/redaction-secrets.d.ts +13 -0
  397. package/node_modules/@oscharko-dev/keiko-server/dist/redaction-secrets.d.ts.map +1 -0
  398. package/node_modules/@oscharko-dev/keiko-server/dist/redaction-secrets.js +85 -0
  399. package/node_modules/@oscharko-dev/keiko-server/dist/relationship-activity-broadcast.d.ts +1 -1
  400. package/node_modules/@oscharko-dev/keiko-server/dist/relationship-activity-broadcast.d.ts.map +1 -1
  401. package/node_modules/@oscharko-dev/keiko-server/dist/relationship-activity-broadcast.js +4 -4
  402. package/node_modules/@oscharko-dev/keiko-server/dist/relationship-handlers.js +3 -3
  403. package/node_modules/@oscharko-dev/keiko-server/dist/request-deps-root.d.ts +8 -0
  404. package/node_modules/@oscharko-dev/keiko-server/dist/request-deps-root.d.ts.map +1 -0
  405. package/node_modules/@oscharko-dev/keiko-server/dist/request-deps-root.js +22 -0
  406. package/node_modules/@oscharko-dev/keiko-server/dist/run-handlers.d.ts.map +1 -1
  407. package/node_modules/@oscharko-dev/keiko-server/dist/run-handlers.js +4 -14
  408. package/node_modules/@oscharko-dev/keiko-server/dist/runtime/containerRoutes.d.ts.map +1 -1
  409. package/node_modules/@oscharko-dev/keiko-server/dist/runtime/containerRoutes.js +4 -4
  410. package/node_modules/@oscharko-dev/keiko-server/dist/sse-write.d.ts +42 -18
  411. package/node_modules/@oscharko-dev/keiko-server/dist/sse-write.d.ts.map +1 -1
  412. package/node_modules/@oscharko-dev/keiko-server/dist/sse-write.js +122 -35
  413. package/node_modules/@oscharko-dev/keiko-server/dist/sse.d.ts +6 -4
  414. package/node_modules/@oscharko-dev/keiko-server/dist/sse.d.ts.map +1 -1
  415. package/node_modules/@oscharko-dev/keiko-server/dist/sse.js +13 -29
  416. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts.map +1 -1
  417. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.js +12 -8
  418. package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.d.ts +2 -2
  419. package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.d.ts.map +1 -1
  420. package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.js +3 -3
  421. package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts +1 -0
  422. package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts.map +1 -1
  423. package/node_modules/@oscharko-dev/keiko-server/dist/terminal-routes.d.ts.map +1 -1
  424. package/node_modules/@oscharko-dev/keiko-server/dist/terminal-routes.js +5 -5
  425. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.d.ts.map +1 -1
  426. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.js +4 -3
  427. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolLifecycle.d.ts.map +1 -1
  428. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolLifecycle.js +15 -1
  429. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.d.ts +1 -1
  430. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.d.ts.map +1 -1
  431. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.js +19 -5
  432. package/node_modules/@oscharko-dev/keiko-server/package.json +23 -23
  433. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/arguments.d.ts +1 -1
  434. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/arguments.d.ts.map +1 -1
  435. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/arguments.js +2 -1
  436. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/descriptor.d.ts +2 -2
  437. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/descriptor.d.ts.map +1 -1
  438. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/descriptor.js +6 -5
  439. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/json.d.ts +9 -3
  440. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/json.d.ts.map +1 -1
  441. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/json.js +19 -8
  442. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts.map +1 -1
  443. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.js +6 -4
  444. package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
  445. package/node_modules/@oscharko-dev/keiko-tools/dist/exec.d.ts.map +1 -1
  446. package/node_modules/@oscharko-dev/keiko-tools/dist/exec.js +61 -12
  447. package/node_modules/@oscharko-dev/keiko-tools/dist/git-pr-node.d.ts.map +1 -1
  448. package/node_modules/@oscharko-dev/keiko-tools/dist/git-pr-node.js +22 -2
  449. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  450. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  451. package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
  452. package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts +2 -2
  453. package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts.map +1 -1
  454. package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.js +20 -5
  455. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  456. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  457. package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts +8 -0
  458. package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts.map +1 -1
  459. package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.js +14 -3
  460. package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.d.ts.map +1 -1
  461. package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.js +4 -2
  462. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts.map +1 -1
  463. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.js +7 -5
  464. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts.map +1 -1
  465. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.js +4 -2
  466. package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.d.ts +5 -1
  467. package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.d.ts.map +1 -1
  468. package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.js +14 -6
  469. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  470. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  471. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts +1 -0
  472. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts.map +1 -1
  473. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.js +4 -0
  474. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  475. package/package.json +28 -28
  476. package/release-impact.catalog.json +152 -0
  477. package/vendor/oscharko-dev-keiko-activity-log-1.3.2.tgz +0 -0
  478. package/vendor/oscharko-dev-keiko-cli-1.3.2.tgz +0 -0
  479. package/vendor/{oscharko-dev-keiko-connectors-1.3.0.tgz → oscharko-dev-keiko-connectors-1.3.2.tgz} +0 -0
  480. package/vendor/oscharko-dev-keiko-contracts-1.3.2.tgz +0 -0
  481. package/vendor/{oscharko-dev-keiko-evaluations-1.3.0.tgz → oscharko-dev-keiko-evaluations-1.3.2.tgz} +0 -0
  482. package/vendor/{oscharko-dev-keiko-evidence-1.3.0.tgz → oscharko-dev-keiko-evidence-1.3.2.tgz} +0 -0
  483. package/vendor/{oscharko-dev-keiko-git-1.3.0.tgz → oscharko-dev-keiko-git-1.3.2.tgz} +0 -0
  484. package/vendor/{oscharko-dev-keiko-harness-1.3.0.tgz → oscharko-dev-keiko-harness-1.3.2.tgz} +0 -0
  485. package/vendor/{oscharko-dev-keiko-local-knowledge-1.3.0.tgz → oscharko-dev-keiko-local-knowledge-1.3.2.tgz} +0 -0
  486. package/vendor/{oscharko-dev-keiko-memory-capture-1.3.0.tgz → oscharko-dev-keiko-memory-capture-1.3.2.tgz} +0 -0
  487. package/vendor/oscharko-dev-keiko-memory-consolidation-1.3.2.tgz +0 -0
  488. package/vendor/{oscharko-dev-keiko-memory-governance-1.3.0.tgz → oscharko-dev-keiko-memory-governance-1.3.2.tgz} +0 -0
  489. package/vendor/oscharko-dev-keiko-memory-retrieval-1.3.2.tgz +0 -0
  490. package/vendor/{oscharko-dev-keiko-memory-vault-1.3.0.tgz → oscharko-dev-keiko-memory-vault-1.3.2.tgz} +0 -0
  491. package/vendor/oscharko-dev-keiko-model-gateway-1.3.2.tgz +0 -0
  492. package/vendor/{oscharko-dev-keiko-quality-intelligence-1.3.0.tgz → oscharko-dev-keiko-quality-intelligence-1.3.2.tgz} +0 -0
  493. package/vendor/oscharko-dev-keiko-sandbox-1.3.2.tgz +0 -0
  494. package/vendor/oscharko-dev-keiko-sdk-1.3.2.tgz +0 -0
  495. package/vendor/oscharko-dev-keiko-security-1.3.2.tgz +0 -0
  496. package/vendor/oscharko-dev-keiko-server-1.3.2.tgz +0 -0
  497. package/vendor/oscharko-dev-keiko-tool-catalog-1.3.2.tgz +0 -0
  498. package/vendor/oscharko-dev-keiko-tools-1.3.2.tgz +0 -0
  499. package/vendor/oscharko-dev-keiko-verification-1.3.2.tgz +0 -0
  500. package/vendor/{oscharko-dev-keiko-workflows-1.3.0.tgz → oscharko-dev-keiko-workflows-1.3.2.tgz} +0 -0
  501. package/vendor/oscharko-dev-keiko-workspace-1.3.2.tgz +0 -0
  502. package/dist/ui/static/_next/static/chunks/04k2mahro7j92.js +0 -1
  503. package/dist/ui/static/_next/static/chunks/05822ttahyz33.js +0 -1
  504. package/dist/ui/static/_next/static/chunks/07957vlppntmk.js +0 -29
  505. package/dist/ui/static/_next/static/chunks/0dq9bimpknhi-.js +0 -1
  506. package/dist/ui/static/_next/static/chunks/0unrefuwohxkf.js +0 -1
  507. package/dist/ui/static/_next/static/chunks/1cirwobl5ywpw.js +0 -1
  508. package/dist/ui/static/_next/static/chunks/270j9fwgnu94m.js +0 -1
  509. package/dist/ui/static/_next/static/chunks/2bm_bps837c8s.js +0 -1
  510. package/dist/ui/static/_next/static/chunks/2he22glqm5s22.js +0 -1
  511. package/dist/ui/static/_next/static/chunks/2kqjvq-p_chx9.js +0 -1
  512. package/dist/ui/static/_next/static/chunks/2mcajqb-umr1q.css +0 -4
  513. package/dist/ui/static/_next/static/chunks/2ym2gl1kulqav.js +0 -1
  514. package/dist/ui/static/_next/static/chunks/3-ejbbkmhwal-.js +0 -1
  515. package/dist/ui/static/_next/static/chunks/3e_kp81r43l1p.js +0 -1
  516. package/dist/ui/static/_next/static/chunks/3s1wb0rz0bdep.js +0 -1
  517. package/dist/ui/static/_next/static/chunks/3ucjnrrnoloze.js +0 -1
  518. package/dist/ui/static/_next/static/chunks/3w0ad9bnfy9s8.js +0 -1
  519. package/dist/ui/static/_next/static/chunks/43qb7fm2lvzfr.js +0 -1
  520. package/vendor/oscharko-dev-keiko-activity-log-1.3.0.tgz +0 -0
  521. package/vendor/oscharko-dev-keiko-cli-1.3.0.tgz +0 -0
  522. package/vendor/oscharko-dev-keiko-contracts-1.3.0.tgz +0 -0
  523. package/vendor/oscharko-dev-keiko-memory-consolidation-1.3.0.tgz +0 -0
  524. package/vendor/oscharko-dev-keiko-memory-retrieval-1.3.0.tgz +0 -0
  525. package/vendor/oscharko-dev-keiko-model-gateway-1.3.0.tgz +0 -0
  526. package/vendor/oscharko-dev-keiko-sandbox-1.3.0.tgz +0 -0
  527. package/vendor/oscharko-dev-keiko-sdk-1.3.0.tgz +0 -0
  528. package/vendor/oscharko-dev-keiko-security-1.3.0.tgz +0 -0
  529. package/vendor/oscharko-dev-keiko-server-1.3.0.tgz +0 -0
  530. package/vendor/oscharko-dev-keiko-tool-catalog-1.3.0.tgz +0 -0
  531. package/vendor/oscharko-dev-keiko-tools-1.3.0.tgz +0 -0
  532. package/vendor/oscharko-dev-keiko-verification-1.3.0.tgz +0 -0
  533. package/vendor/oscharko-dev-keiko-workspace-1.3.0.tgz +0 -0
  534. /package/dist/ui/static/_next/static/{6pkGWU1F8PM1C3Cb4rVAo → xKDN0SO4oRp9dU6qR6ood}/_buildManifest.js +0 -0
  535. /package/dist/ui/static/_next/static/{6pkGWU1F8PM1C3Cb4rVAo → xKDN0SO4oRp9dU6qR6ood}/_clientMiddlewareManifest.js +0 -0
  536. /package/dist/ui/static/_next/static/{6pkGWU1F8PM1C3Cb4rVAo → xKDN0SO4oRp9dU6qR6ood}/_ssgManifest.js +0 -0
@@ -305,6 +305,102 @@ export function openCodeNativeVerificationKind(resources) {
305
305
  }
306
306
  return kind;
307
307
  }
308
+ /** How many package scripts deep a passing line's credit follows `npm run` into `npm run`. */
309
+ const SCRIPT_CREDIT_DEPTH = 4;
310
+ /**
311
+ * The other project checks a passing native check line proves, beside the one its exit status is
312
+ * named for (`openCodeNativeVerificationKind`). An `&&` list exits zero only when every command in
313
+ * it did, so a zero status proves each check of the line, and each check a package script it runs
314
+ * chains with `&&`: `npm run check`, with `"check": "npm run typecheck && npm run lint && npm test"`,
315
+ * proved a type check, a lint and a test. Keiko 1.3.1's qualification run failed as unverified
316
+ * after exactly that line passed, because only its test was counted. A non-zero status proves
317
+ * nothing about any single check, so the caller credits these only on a pass. `scripts` reads the
318
+ * package.json of the directory the line starts in, at most once; a line that changes directory,
319
+ * or a script invocation with options of its own (`--workspace`, `--prefix`), reads no script.
320
+ */
321
+ export function openCodeNativeCreditedKinds(resources, scripts) {
322
+ const primary = openCodeNativeVerificationKind(resources);
323
+ if (primary === undefined)
324
+ return [];
325
+ const lines = resources
326
+ .flatMap((resource) => statusPreservingSegments(resource) ?? [])
327
+ .map(commandTokens);
328
+ const source = lines.some(([program]) => program === "cd") ? undefined : readOnce(scripts);
329
+ const kinds = new Set();
330
+ for (const tokens of lines) {
331
+ for (const kind of creditedSegmentKinds(tokens, source, SCRIPT_CREDIT_DEPTH, false)) {
332
+ kinds.add(kind);
333
+ }
334
+ }
335
+ kinds.delete(primary);
336
+ return [...kinds];
337
+ }
338
+ function readOnce(read) {
339
+ if (read === undefined)
340
+ return undefined;
341
+ let scripts;
342
+ return () => {
343
+ scripts ??= { value: read() };
344
+ return scripts.value;
345
+ };
346
+ }
347
+ /**
348
+ * The checks one command proves when it exits zero: its own, and those of the script it runs. In a
349
+ * script body a program is resolved from the package's own `node_modules/.bin`, so `tsc --noEmit`
350
+ * there is the same type check `npx tsc --noEmit` is on a line.
351
+ */
352
+ function creditedSegmentKinds(tokens, scripts, depth, inScript) {
353
+ const own = segmentVerificationKind(tokens) ?? (inScript ? scriptBinaryKind(tokens) : undefined);
354
+ if (own === undefined)
355
+ return [];
356
+ const name = scripts === undefined || depth === 0 ? undefined : invokedScriptName(tokens);
357
+ const body = name === undefined ? undefined : scripts?.()?.get(name);
358
+ return body === undefined ? [own] : [own, ...scriptBodyKinds(body, scripts, depth - 1)];
359
+ }
360
+ /**
361
+ * The checks of a script body whose status is its last command's under `&&` alone. Its other
362
+ * commands prove nothing, and after a `cd` its scripts belong to another package, so they are
363
+ * credited by their own names only.
364
+ */
365
+ function scriptBodyKinds(body, scripts, depth) {
366
+ const segments = statusPreservingSegments(body);
367
+ if (segments === undefined)
368
+ return [];
369
+ const kinds = [];
370
+ let source = scripts;
371
+ for (const segment of segments) {
372
+ const tokens = commandTokens(segment);
373
+ if (tokens[0] === "cd")
374
+ source = undefined;
375
+ kinds.push(...creditedSegmentKinds(tokens, source, depth, true));
376
+ }
377
+ return kinds;
378
+ }
379
+ function scriptBinaryKind(tokens) {
380
+ const [program] = tokens;
381
+ return program === undefined || nonExecutingCheck(tokens)
382
+ ? undefined
383
+ : NPX_VERIFICATION_KINDS.get(program);
384
+ }
385
+ const SCRIPT_RUNNERS = new Set(["npm", "pnpm", "yarn", "bun"]);
386
+ /**
387
+ * The package script a package-manager command runs: `npm test`, `npm run <name>`. An option before
388
+ * `--` can point the manager at another package (`--workspace`, `--prefix`, `-C`), so a command
389
+ * with one names no script here. `bun test` runs Bun's own test runner, not a script.
390
+ */
391
+ function invokedScriptName(tokens) {
392
+ const [program] = tokens;
393
+ if (program === undefined || !SCRIPT_RUNNERS.has(program))
394
+ return undefined;
395
+ const separator = tokens.indexOf("--");
396
+ const own = tokens.slice(1, separator === -1 ? undefined : separator);
397
+ if (own.some((token) => token.startsWith("-")))
398
+ return undefined;
399
+ const [subcommand, script] = own;
400
+ if (subcommand === "test" || subcommand === "t")
401
+ return program === "bun" ? undefined : "test";
402
+ return subcommand === "run" || subcommand === "run-script" ? script : undefined;
403
+ }
308
404
  /**
309
405
  * The `&&`-joined simple commands of a line, or undefined when another operator could hand the
310
406
  * line's exit status to a command after the check. A descriptor duplication (`2>&1`) is not one.
@@ -1216,7 +1312,8 @@ export const CODING_RUNTIME_NATIVE_POLICY_DECIDED_OPERATION = defineActivityLogO
1216
1312
  resourceDigest: { type: "string", dataClass: "digest", required: true, maxLength: 64 },
1217
1313
  requestId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 128 },
1218
1314
  // Why the live authority refused an allowed effect (outcome `authority-refused`): the budget,
1219
- // an expired or revoked envelope, a class outside it, a drifted binding, or no owner at all.
1315
+ // an expired or revoked envelope, a class outside it, an edit over the changeset cap, a drifted
1316
+ // binding, or no owner at all.
1220
1317
  authorityReason: {
1221
1318
  type: "string",
1222
1319
  dataClass: "closed-enum",
@@ -1227,6 +1324,7 @@ export const CODING_RUNTIME_NATIVE_POLICY_DECIDED_OPERATION = defineActivityLogO
1227
1324
  "revoked",
1228
1325
  "authority-resolution-failed",
1229
1326
  "action-not-authorized",
1327
+ "patch-too-large",
1230
1328
  "drift",
1231
1329
  "unavailable",
1232
1330
  "other",
@@ -1259,6 +1357,7 @@ export function nativeAuthorityReasonLogValue(reason) {
1259
1357
  case "revoked":
1260
1358
  case "authority-resolution-failed":
1261
1359
  case "action-not-authorized":
1360
+ case "patch-too-large":
1262
1361
  case "unavailable":
1263
1362
  return reason;
1264
1363
  default:
@@ -33,20 +33,30 @@ export interface OpenCodeLiveControl {
33
33
  /**
34
34
  * A durable tool part records the governed call's arguments twice: parsed as `state.input` (every
35
35
  * status) and as the provider's raw text `state.raw` (pending). Both were admitted upstream under
36
- * the catalog ceilings (ADR-0175 D4, `TOOL_CATALOG_LIMITS`), so the same ceilings -- not the
37
- * 4096-character metadata bound -- re-bound them here, and this is the largest part one call can
38
- * therefore leave: the metadata budget plus two argument bodies. Run 2026-09-10: a 19 KiB
39
- * `keiko_changeset_edit` patch, inside the 64 KiB patch contract, failed the metadata bound, the
40
- * whole `POST /sync/history` pull threw, and the run ended `runtime-failed` on its first edit.
36
+ * the catalog ceilings (ADR-0175 D4, `TOOL_CATALOG_LIMITS`; the governed changeset edit and the
37
+ * native file-content tools carry their own, `CHANGESET_EDIT_ARGUMENT_LIMITS`), so the same
38
+ * ceilings -- not the 4096-character metadata bound -- re-bound them here, and this is the largest
39
+ * part one call can therefore leave: the metadata budget plus two argument bodies of the largest
40
+ * ceiling. Run 2026-09-10: a 19 KiB `keiko_changeset_edit` patch, inside the patch contract of the
41
+ * time, failed the metadata bound, the whole `POST /sync/history` pull threw, and the run ended
42
+ * `runtime-failed` on its first edit.
41
43
  */
42
44
  export declare const OPENCODE_HISTORY_TOOL_PART_MAX_BYTES: number;
43
45
  /** Argument-bearing calls one catch-up pull is budgeted for after a stream reconnect. */
44
46
  export declare const OPENCODE_HISTORY_CATCH_UP_TOOL_CALLS = 8;
47
+ /**
48
+ * Of those calls, how many may be changeset-edit calls (or native file-content calls) at their own,
49
+ * far larger argument ceiling (owner decision 2026-10-28: an edit of up to 8 MiB is never
50
+ * refused). One whole such call fits a pull; the rest of the budget is ordinary calls, so the
51
+ * response bound grows by one call's rows, not by a multiple of the whole catch-up allowance.
52
+ */
53
+ export declare const OPENCODE_HISTORY_CATCH_UP_CHANGESET_EDIT_CALLS = 1;
45
54
  /**
46
55
  * `POST /sync/history` returns every durable row after the checkpoints, so one pull after a stream
47
56
  * reconnect can carry a whole turn. The response budget therefore covers the ordinary metadata rows
48
- * plus the argument-bearing rows of OPENCODE_HISTORY_CATCH_UP_TOOL_CALLS calls; a pull above it
49
- * still fails closed (`opencode-history-oversized`) and is recorded by its closed reason.
57
+ * plus the argument-bearing rows of OPENCODE_HISTORY_CATCH_UP_TOOL_CALLS calls, of which
58
+ * OPENCODE_HISTORY_CATCH_UP_CHANGESET_EDIT_CALLS may be at the changeset-edit ceiling; a pull above
59
+ * it still fails closed (`opencode-history-oversized`) and is recorded by its closed reason.
50
60
  */
51
61
  export declare const OPENCODE_HISTORY_RESPONSE_MAX_BYTES: number;
52
62
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"opencodeProtocol.d.ts","sourceRoot":"","sources":["../../src/coding-runtime/opencodeProtocol.ts"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAGV,2BAA2B,EAC5B,MAAM,yBAAyB,CAAC;AAOjC,uEAAuE;AACvE,eAAO,MAAM,2BAA2B,gXAe7B,CAAC;AAEZ,MAAM,MAAM,uBAAuB,GACjC,gBAAg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X_PATHS, CODING_WORKBENCH_APPROVAL_REVIEW_PATH_MAX_CHARS, } from "@oscharko-dev/keiko-contracts/runtime/coding-workbench-runtime-approval-review";
3
- import { TOOL_CATALOG_LIMITS } from "@oscharko-dev/keiko-contracts/runtime/governed-tool-catalog";
3
+ import { toolArgumentLimitsByToolName } from "@oscharko-dev/keiko-contracts/runtime/governed-tool-bridge";
4
+ import { CHANGESET_EDIT_ARGUMENT_LIMITS, TOOL_CATALOG_LIMITS, } from "@oscharko-dev/keiko-contracts/runtime/governed-tool-catalog";
4
5
  import { ToolCatalogError, captureCatalogJson } from "@oscharko-dev/keiko-tool-catalog";
5
6
  import { parseCodingSidecarEventLine, } from "./codingSidecarEventParser.js";
6
7
  import { isAdmissibleOpenCodeToolName, openCodeToolLogLabel } from "./opencodeNativeTools.js";
@@ -28,28 +29,46 @@ const MAX_HISTORY_INFO_DEPTH = 8;
28
29
  /**
29
30
  * A durable tool part records the governed call's arguments twice: parsed as `state.input` (every
30
31
  * status) and as the provider's raw text `state.raw` (pending). Both were admitted upstream under
31
- * the catalog ceilings (ADR-0175 D4, `TOOL_CATALOG_LIMITS`), so the same ceilings -- not the
32
- * 4096-character metadata bound -- re-bound them here, and this is the largest part one call can
33
- * therefore leave: the metadata budget plus two argument bodies. Run 2026-09-10: a 19 KiB
34
- * `keiko_changeset_edit` patch, inside the 64 KiB patch contract, failed the metadata bound, the
35
- * whole `POST /sync/history` pull threw, and the run ended `runtime-failed` on its first edit.
32
+ * the catalog ceilings (ADR-0175 D4, `TOOL_CATALOG_LIMITS`; the governed changeset edit and the
33
+ * native file-content tools carry their own, `CHANGESET_EDIT_ARGUMENT_LIMITS`), so the same
34
+ * ceilings -- not the 4096-character metadata bound -- re-bound them here, and this is the largest
35
+ * part one call can therefore leave: the metadata budget plus two argument bodies of the largest
36
+ * ceiling. Run 2026-09-10: a 19 KiB `keiko_changeset_edit` patch, inside the patch contract of the
37
+ * time, failed the metadata bound, the whole `POST /sync/history` pull threw, and the run ended
38
+ * `runtime-failed` on its first edit.
36
39
  */
37
- export const OPENCODE_HISTORY_TOOL_PART_MAX_BYTES = MAX_HISTORY_INFO_BYTES + 2 * TOOL_CATALOG_LIMITS.maxArgumentBytes;
40
+ export const OPENCODE_HISTORY_TOOL_PART_MAX_BYTES = MAX_HISTORY_INFO_BYTES + 2 * CHANGESET_EDIT_ARGUMENT_LIMITS.maxArgumentBytes;
38
41
  // One governed call leaves at most three argument-bearing rows (pending, running, settled): the
39
42
  // pending row carries both bodies, the other two carry `state.input` once each.
40
- const HISTORY_TOOL_CALL_ROWS_MAX_BYTES = 3 * MAX_HISTORY_INFO_BYTES + 4 * TOOL_CATALOG_LIMITS.maxArgumentBytes;
43
+ function historyToolCallRowsMaxBytes(argumentLimits) {
44
+ return 3 * MAX_HISTORY_INFO_BYTES + 4 * argumentLimits.maxArgumentBytes;
45
+ }
41
46
  /** Argument-bearing calls one catch-up pull is budgeted for after a stream reconnect. */
42
47
  export const OPENCODE_HISTORY_CATCH_UP_TOOL_CALLS = 8;
48
+ /**
49
+ * Of those calls, how many may be changeset-edit calls (or native file-content calls) at their own,
50
+ * far larger argument ceiling (owner decision 2026-10-28: an edit of up to 8 MiB is never
51
+ * refused). One whole such call fits a pull; the rest of the budget is ordinary calls, so the
52
+ * response bound grows by one call's rows, not by a multiple of the whole catch-up allowance.
53
+ */
54
+ export const OPENCODE_HISTORY_CATCH_UP_CHANGESET_EDIT_CALLS = 1;
43
55
  // The per-pull budget every non-argument row shared before tool bodies were admitted at all.
44
56
  const HISTORY_METADATA_ROWS_MAX_BYTES = 1024 * 1024;
45
57
  /**
46
58
  * `POST /sync/history` returns every durable row after the checkpoints, so one pull after a stream
47
59
  * reconnect can carry a whole turn. The response budget therefore covers the ordinary metadata rows
48
- * plus the argument-bearing rows of OPENCODE_HISTORY_CATCH_UP_TOOL_CALLS calls; a pull above it
49
- * still fails closed (`opencode-history-oversized`) and is recorded by its closed reason.
60
+ * plus the argument-bearing rows of OPENCODE_HISTORY_CATCH_UP_TOOL_CALLS calls, of which
61
+ * OPENCODE_HISTORY_CATCH_UP_CHANGESET_EDIT_CALLS may be at the changeset-edit ceiling; a pull above
62
+ * it still fails closed (`opencode-history-oversized`) and is recorded by its closed reason.
50
63
  */
51
64
  export const OPENCODE_HISTORY_RESPONSE_MAX_BYTES = HISTORY_METADATA_ROWS_MAX_BYTES +
52
- OPENCODE_HISTORY_CATCH_UP_TOOL_CALLS * HISTORY_TOOL_CALL_ROWS_MAX_BYTES;
65
+ (OPENCODE_HISTORY_CATCH_UP_TOOL_CALLS - OPENCODE_HISTORY_CATCH_UP_CHANGESET_EDIT_CALLS) *
66
+ historyToolCallRowsMaxBytes({
67
+ maxArgumentBytes: TOOL_CATALOG_LIMITS.maxArgumentBytes,
68
+ maxStringBytes: TOOL_CATALOG_LIMITS.maxStringBytes,
69
+ }) +
70
+ OPENCODE_HISTORY_CATCH_UP_CHANGESET_EDIT_CALLS *
71
+ historyToolCallRowsMaxBytes(CHANGESET_EDIT_ARGUMENT_LIMITS);
53
72
  const MAX_JSON_DEPTH = 64;
54
73
  const ID = /^(?:evt_|ses_|per|que)[A-Za-z0-9_-]+$/u;
55
74
  const PERMISSION_ID = /^per_[A-Za-z0-9_-]+$/u;
@@ -1113,7 +1132,8 @@ function partBodyGate(part) {
1113
1132
  * metadata, times, ids -- keeps the metadata bound. The admitted bodies never reach the projection.
1114
1133
  */
1115
1134
  function toolPartBodyGate(part, state) {
1116
- if (!boundedToolArguments(state.input) || !boundedRawToolArguments(state.raw)) {
1135
+ const limits = toolArgumentLimitsByToolName(typeof part.tool === "string" ? part.tool : "");
1136
+ if (!boundedToolArguments(state.input, limits) || !boundedRawToolArguments(state.raw, limits)) {
1117
1137
  return "argument-bound";
1118
1138
  }
1119
1139
  const bodiless = { ...part, state: { ...state, ...blankedToolArguments(state) } };
@@ -1131,11 +1151,11 @@ function toolPartBodyGate(part, state) {
1131
1151
  }
1132
1152
  // A non-record is left to the tool-state gate, which refuses it under its own name; a record is
1133
1153
  // validated exactly as the gateway validated it (byte, string-byte, depth, key and item ceilings).
1134
- function boundedToolArguments(input) {
1154
+ function boundedToolArguments(input, limits) {
1135
1155
  if (!isRecord(input))
1136
1156
  return true;
1137
1157
  try {
1138
- captureCatalogJson(input);
1158
+ captureCatalogJson(input, undefined, limits);
1139
1159
  return true;
1140
1160
  }
1141
1161
  catch (error) {
@@ -1146,8 +1166,8 @@ function boundedToolArguments(input) {
1146
1166
  }
1147
1167
  // The raw text is the canonical argument JSON the gateway handed the runtime, so it can never
1148
1168
  // legitimately exceed the argument ceiling; a non-string is again the tool-state gate's refusal.
1149
- function boundedRawToolArguments(raw) {
1150
- return typeof raw !== "string" || bytes(raw) <= TOOL_CATALOG_LIMITS.maxArgumentBytes;
1169
+ function boundedRawToolArguments(raw, limits) {
1170
+ return typeof raw !== "string" || bytes(raw) <= limits.maxArgumentBytes;
1151
1171
  }
1152
1172
  function blankedToolArguments(state) {
1153
1173
  return {
@@ -65,16 +65,18 @@ export interface OpenCodeRipgrepRequest {
65
65
  */
66
66
  export declare function resolveOpenCodeRipgrep(request: OpenCodeRipgrepRequest): OpenCodeRipgrepResolution;
67
67
  /**
68
- * The PATH the native profile's child and its kernel read allowlist share: the verified directory
69
- * in front of what the launcher already had. `undefined` leaves the inherited PATH exactly as it
70
- * was, so an unverified launch is not changed by this module at all.
68
+ * The PATH the native profile's child and its kernel read allowlist share. A verified executable's
69
+ * directory goes in front of what the launcher already had. An unverified one removes every entry
70
+ * that provides a host `rg`, so search degrades instead of running an unverified executable; the
71
+ * read allowlist follows the same PATH. `undefined` only when the launcher had no PATH.
71
72
  */
72
73
  export declare function ripgrepNativePath(launcherPath: string | undefined, resolution: OpenCodeRipgrepResolution): string | undefined;
73
74
  /**
74
- * The environment the manager copies the launch's allowlisted names from. Only a verified
75
- * executable changes it. The native profile inherits the launcher's PATH, so its child PATH is the
76
- * verified directory followed by that PATH. The mapped profiles inherit nothing else, so theirs is
77
- * the verified directory alone; no entry of the launcher's PATH is ever relied on to find ripgrep.
75
+ * The environment the manager copies the launch's allowlisted names from. The native profile
76
+ * inherits the launcher's PATH, so its child PATH is the verified directory followed by that PATH,
77
+ * or, for an unverified ripgrep, that PATH without any `rg` provider. The mapped profiles inherit
78
+ * nothing else, so theirs is the verified directory alone, or no PATH at all when unverified; no
79
+ * entry of the launcher's PATH is ever relied on to find ripgrep.
78
80
  */
79
81
  export declare function ripgrepLaunchEnvironment(processEnv: NodeJS.ProcessEnv | undefined, resolution: OpenCodeRipgrepResolution, native: boolean): NodeJS.ProcessEnv | undefined;
80
82
  /** The mapped profiles inherit no names; they inherit PATH only to carry the verified directory. */
@@ -1 +1 @@
1
- {"version":3,"file":"opencodeRipgrepLaunch.d.ts","sourceRoot":"","sources":["../../src/coding-runtime/opencodeRipgrepLaunch.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAMtE,OAAO,EAQL,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE7B,MAAM,qBAAqB,CAAC;AAS7B,qEAAqE;AACrE,eAAO,MAAM,mCAAmC,YAC9C,oBAAoB,EACpB,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,yBAAyB,EACzB,WAAW,EACX,YAAY,EACZ,6BAA6B,EAC7B,iBAAiB,EACjB,aAAa,EACb,kBAAkB,CACV,CAAC;AAEX,MAAM,MAAM,+BAA+B,GAAG,CAAC,OAAO,mCAAmC,CAAC,CAAC,MAAM,CAAC,CAAC;AAsEnG,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,aAAa,GAAG,aAAa,GAAG,UAAU,CAAC;AAE5F,MAAM,MAAM,yBAAyB,GACjC;IACE,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,uBAAuB,CAAC;IAC5C,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAC;IACvC,QAAQ,CAA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from "node:path";
1
+ import { statSync } from "node:fs";
2
+ import { delimiter, dirname, isAbsolute, join } from "node:path";
2
3
  import { activityLogEvent, defineActivityLogOperation, } from "@oscharko-dev/keiko-contracts/runtime/observability";
3
4
  import { RIPGREP_OVERRIDE_ENV, RIPGREP_RUNTIME_MANIFEST, resolveVerifiedRipgrep, ripgrepActivationDigest, ripgrepRuntimeApproval, ripgrepTargetKeyForPortableTarget, verifyRipgrepExecutable, } from "./ripgrepRuntime.js";
4
5
  // OpenCode's glob and grep tools and its file finder run ripgrep. The runtime looks for `rg` on its
@@ -6,7 +7,10 @@ import { RIPGREP_OVERRIDE_ENV, RIPGREP_RUNTIME_MANIFEST, resolveVerifiedRipgrep,
6
7
  // never lets the runtime reach that third step: at every launch it resolves the one pinned
7
8
  // executable through the verifier, and only a verified executable's directory is put on the child
8
9
  // PATH. An unverified one leaves the run starting with search degraded, and the closed reason is
9
- // recorded on the Activity Log (never a path).
10
+ // recorded on the Activity Log (never a path). A degraded native launch also loses every inherited
11
+ // PATH entry that provides an `rg`: an unverified host ripgrep (Homebrew, a workspace-planted one)
12
+ // is never executed in the pinned one's place. The pinned OpenCode runtime has no switch that turns
13
+ // its own ripgrep download off; below Full access the loopback-only egress refuses it.
10
14
  /** The closed vocabulary of why a launch has no verified ripgrep. */
11
15
  export const OPENCODE_RIPGREP_UNVERIFIED_REASONS = [
12
16
  "unsupported-target",
@@ -189,25 +193,62 @@ function prependDirectory(directory, path) {
189
193
  : path.split(delimiter).filter((entry) => entry !== directory);
190
194
  return [directory, ...inherited].join(delimiter);
191
195
  }
196
+ const RIPGREP_EXECUTABLE_NAMES = process.platform === "win32" ? ["rg.exe", "rg.com", "rg.bat", "rg.cmd"] : ["rg"];
197
+ function isAbsentError(error) {
198
+ return (error instanceof Error &&
199
+ "code" in error &&
200
+ (error.code === "ENOENT" || error.code === "ENOTDIR"));
201
+ }
202
+ function isFile(path) {
203
+ try {
204
+ return statSync(path).isFile();
205
+ }
206
+ catch (error) {
207
+ // Only a missing path proves the file is absent; any other failure cannot prove it, so the
208
+ // directory is treated as a possible provider (fail closed).
209
+ return !isAbsentError(error);
210
+ }
211
+ }
212
+ // An empty or relative entry resolves against the child's working directory, the workspace, which
213
+ // can plant an `rg`; it cannot be proven free of one from here.
214
+ function mayProvideRipgrep(entry) {
215
+ if (!isAbsolute(entry))
216
+ return true;
217
+ return RIPGREP_EXECUTABLE_NAMES.some((name) => isFile(join(entry, name)));
218
+ }
219
+ /** The inherited PATH without any entry that provides an `rg`; every other entry keeps its order. */
220
+ function withoutRipgrepProviders(path) {
221
+ if (path === undefined)
222
+ return undefined;
223
+ return path
224
+ .split(delimiter)
225
+ .filter((entry) => !mayProvideRipgrep(entry))
226
+ .join(delimiter);
227
+ }
192
228
  /**
193
- * The PATH the native profile's child and its kernel read allowlist share: the verified directory
194
- * in front of what the launcher already had. `undefined` leaves the inherited PATH exactly as it
195
- * was, so an unverified launch is not changed by this module at all.
229
+ * The PATH the native profile's child and its kernel read allowlist share. A verified executable's
230
+ * directory goes in front of what the launcher already had. An unverified one removes every entry
231
+ * that provides a host `rg`, so search degrades instead of running an unverified executable; the
232
+ * read allowlist follows the same PATH. `undefined` only when the launcher had no PATH.
196
233
  */
197
234
  export function ripgrepNativePath(launcherPath, resolution) {
198
235
  return resolution.outcome === "verified"
199
236
  ? prependDirectory(resolution.directory, launcherPath)
200
- : undefined;
237
+ : withoutRipgrepProviders(launcherPath);
201
238
  }
202
239
  /**
203
- * The environment the manager copies the launch's allowlisted names from. Only a verified
204
- * executable changes it. The native profile inherits the launcher's PATH, so its child PATH is the
205
- * verified directory followed by that PATH. The mapped profiles inherit nothing else, so theirs is
206
- * the verified directory alone; no entry of the launcher's PATH is ever relied on to find ripgrep.
240
+ * The environment the manager copies the launch's allowlisted names from. The native profile
241
+ * inherits the launcher's PATH, so its child PATH is the verified directory followed by that PATH,
242
+ * or, for an unverified ripgrep, that PATH without any `rg` provider. The mapped profiles inherit
243
+ * nothing else, so theirs is the verified directory alone, or no PATH at all when unverified; no
244
+ * entry of the launcher's PATH is ever relied on to find ripgrep.
207
245
  */
208
246
  export function ripgrepLaunchEnvironment(processEnv, resolution, native) {
209
- if (resolution.outcome !== "verified")
210
- return processEnv;
247
+ if (resolution.outcome !== "verified") {
248
+ if (!native || processEnv?.PATH === undefined)
249
+ return processEnv;
250
+ return { ...processEnv, PATH: withoutRipgrepProviders(processEnv.PATH) };
251
+ }
211
252
  const path = native
212
253
  ? prependDirectory(resolution.directory, processEnv?.PATH)
213
254
  : resolution.directory;
@@ -0,0 +1,27 @@
1
+ import { type ServerDiagnosticSink } from "../diagnostics-log.js";
2
+ export interface OrphanedRunStateSweepInput {
3
+ /** The owned directory that holds one subdirectory per run: `<state>/coding-runtime/opencode`. */
4
+ readonly stateBaseRoot: string;
5
+ /** Whether a run is live or can still be recovered; its directory is then left alone. */
6
+ readonly isRetained: (runId: string) => boolean;
7
+ readonly diagnostics?: ServerDiagnosticSink | undefined;
8
+ /** Removal seam for fault injection; production removes with `rmSync`. */
9
+ readonly remove?: ((path: string) => void) | undefined;
10
+ }
11
+ export interface OrphanedRunStateSweepResult {
12
+ readonly scanned: number;
13
+ readonly removed: number;
14
+ readonly retained: number;
15
+ readonly skipped: number;
16
+ readonly failed: number;
17
+ }
18
+ /**
19
+ * Removes the per-run state directories that belong to no live or recoverable run: a crash or a
20
+ * disposal that failed leaves the run's OpenCode database, configuration and temporary files behind
21
+ * (audit 2026-10, finding 8). Only the owned base directory is scanned, only real directories with
22
+ * a run-shaped name inside it are removed, a symbolic link is never followed or removed, and a
23
+ * directory owned by another user is left alone. The result is counts only; nothing a directory
24
+ * held, and no path, is ever recorded.
25
+ */
26
+ export declare function sweepOrphanedOpenCodeRunState(input: OrphanedRunStateSweepInput): OrphanedRunStateSweepResult;
27
+ //# sourceMappingURL=opencodeRunStateSweep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opencodeRunStateSweep.d.ts","sourceRoot":"","sources":["../../src/coding-runtime/opencodeRunStateSweep.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,uBAAuB,CAAC;AAM/B,MAAM,WAAW,0BAA0B;IACzC,kGAAkG;IAClG,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,yFAAyF;IACzF,QAAQ,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAChD,QAAQ,CAAC,WAAW,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACxD,0EAA0E;IAC1E,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACxD;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAiBD;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,0BAA0B,GAChC,2BAA2B,CAc7B"}
@@ -0,0 +1,114 @@
1
+ import { lstatSync, readdirSync, rmSync } from "node:fs";
2
+ import { join } from "node:path";
3
+ import { UNKNOWN_CORRELATION_ID } from "../correlation.js";
4
+ import { describeError, emitServerDiagnostic, } from "../diagnostics-log.js";
5
+ // A run id as the composition mints it (`run-<decimal>`) and as every fixture spells it; nothing
6
+ // else under the owned directory is ever treated as a run's state.
7
+ const RUN_STATE_DIRECTORY_NAME = /^[A-Za-z0-9_-]{1,128}$/u;
8
+ const NOTHING = {
9
+ scanned: 0,
10
+ removed: 0,
11
+ retained: 0,
12
+ skipped: 0,
13
+ failed: 0,
14
+ };
15
+ function isOwnedDirectory(path) {
16
+ const stat = lstatSync(path, { throwIfNoEntry: false });
17
+ if (stat === undefined || !stat.isDirectory() || stat.isSymbolicLink())
18
+ return false;
19
+ const uid = process.getuid?.();
20
+ return uid === undefined || stat.uid === uid;
21
+ }
22
+ /**
23
+ * Removes the per-run state directories that belong to no live or recoverable run: a crash or a
24
+ * disposal that failed leaves the run's OpenCode database, configuration and temporary files behind
25
+ * (audit 2026-10, finding 8). Only the owned base directory is scanned, only real directories with
26
+ * a run-shaped name inside it are removed, a symbolic link is never followed or removed, and a
27
+ * directory owned by another user is left alone. The result is counts only; nothing a directory
28
+ * held, and no path, is ever recorded.
29
+ */
30
+ export function sweepOrphanedOpenCodeRunState(input) {
31
+ let names;
32
+ try {
33
+ if (!isOwnedDirectory(input.stateBaseRoot))
34
+ return NOTHING;
35
+ names = readdirSync(input.stateBaseRoot, { withFileTypes: true })
36
+ .filter((entry) => entry.isDirectory())
37
+ .map((entry) => entry.name);
38
+ }
39
+ catch (error) {
40
+ recordSweep(input.diagnostics, { ...NOTHING, failed: 1 }, error);
41
+ return { ...NOTHING, failed: 1 };
42
+ }
43
+ const result = sweepEntries(input, names);
44
+ if (result.removed > 0 || result.failed > 0)
45
+ recordSweep(input.diagnostics, result, undefined);
46
+ return result;
47
+ }
48
+ // The failures that are recorded one by one; the summary line still counts all of them.
49
+ const MAX_RECORDED_REMOVAL_FAILURES = 8;
50
+ function sweepEntries(input, names) {
51
+ let removed = 0;
52
+ let retained = 0;
53
+ let skipped = 0;
54
+ let failed = 0;
55
+ for (const name of names) {
56
+ if (!RUN_STATE_DIRECTORY_NAME.test(name)) {
57
+ skipped += 1;
58
+ }
59
+ else if (input.isRetained(name)) {
60
+ retained += 1;
61
+ }
62
+ else {
63
+ try {
64
+ removeRunDirectory(join(input.stateBaseRoot, name), input.remove);
65
+ removed += 1;
66
+ }
67
+ catch (cause) {
68
+ failed += 1;
69
+ if (failed <= MAX_RECORDED_REMOVAL_FAILURES)
70
+ recordRemovalFailure(input.diagnostics, cause);
71
+ }
72
+ }
73
+ }
74
+ return { scanned: names.length, removed, retained, skipped, failed };
75
+ }
76
+ function removeRunDirectory(path, remove) {
77
+ // Re-checked at removal: an entry replaced by a link or a foreign directory since the scan stays.
78
+ if (!isOwnedDirectory(path))
79
+ throw new Error("opencode-run-state-not-owned");
80
+ const removal = remove ??
81
+ ((target) => {
82
+ rmSync(target, { recursive: true, force: true });
83
+ });
84
+ removal(path);
85
+ }
86
+ function recordSweep(diagnostics, counts, error) {
87
+ const detail = error === undefined ? undefined : describeError(error);
88
+ emitServerDiagnostic(diagnostics, {
89
+ correlationId: UNKNOWN_CORRELATION_ID,
90
+ timestamp: new Date().toISOString(),
91
+ operation: "coding-runtime.run-state",
92
+ source: "opencode.run-state.sweep",
93
+ errorClass: detail?.errorClass ?? "OpenCodeOrphanedRunState",
94
+ message: "runtime-lifecycle-failed",
95
+ code: `stage=startup:reason=orphaned-run-state:scanned=${String(counts.scanned)}:removed=${String(counts.removed)}:retained=${String(counts.retained)}:skipped=${String(counts.skipped)}:failed=${String(counts.failed)}`,
96
+ ...(detail?.frames === undefined ? {} : { frames: detail.frames }),
97
+ ...(detail?.causeChain === undefined ? {} : { causeChain: detail.causeChain }),
98
+ });
99
+ }
100
+ // One removal that failed: its error class and Keiko frames, never the path or the error text.
101
+ function recordRemovalFailure(diagnostics, error) {
102
+ const detail = describeError(error);
103
+ emitServerDiagnostic(diagnostics, {
104
+ correlationId: UNKNOWN_CORRELATION_ID,
105
+ timestamp: new Date().toISOString(),
106
+ operation: "coding-runtime.run-state",
107
+ source: "opencode.run-state.sweep",
108
+ errorClass: detail.errorClass,
109
+ message: "runtime-lifecycle-failed",
110
+ code: "stage=startup:reason=orphaned-run-state-remove-failed",
111
+ ...(detail.frames === undefined ? {} : { frames: detail.frames }),
112
+ ...(detail.causeChain === undefined ? {} : { causeChain: detail.causeChain }),
113
+ });
114
+ }
@@ -1,4 +1,5 @@
1
1
  import type { ServerLogSink } from "@oscharko-dev/keiko-activity-log";
2
+ import { type ServerDiagnosticSink } from "../diagnostics-log.js";
2
3
  import type { CodingSafeActivitySignal } from "./codingSafeActivityProjection.js";
3
4
  import { type OpenCodeNativeContextProfile } from "./opencodeNativeContext.js";
4
5
  import { type OpenCodeContextGeometry } from "./opencodeLaunchProfile.js";
@@ -68,11 +69,20 @@ export interface GeneratedOpenCodeBundle {
68
69
  };
69
70
  readonly toolSources: Readonly<Record<string, string>>;
70
71
  }
72
+ export interface OpenCodeReconnectPorts {
73
+ readonly delay?: ((ms: number, signal: AbortSignal) => Promise<void>) | undefined;
74
+ readonly random?: (() => number) | undefined;
75
+ readonly now?: (() => number) | undefined;
76
+ readonly budgetMs?: number | undefined;
77
+ }
71
78
  export interface OpenCodeRuntimeAdapterPorts {
72
79
  readonly activityLog?: ServerLogSink | undefined;
73
80
  readonly correlationId?: string | undefined;
74
81
  /** The run's envelope duration (`budget.maxRuntimeMs`); absent keeps the default backstop. */
75
82
  readonly maxTurnWaitMs?: number | undefined;
83
+ readonly diagnostics?: ServerDiagnosticSink | undefined;
84
+ /** Test seams for the monitor's reconnect backoff; production uses real timers and `Math.random`. */
85
+ readonly reconnect?: OpenCodeReconnectPorts | undefined;
76
86
  readonly contextGeometry?: OpenCodeContextGeometry | undefined;
77
87
  readonly readiness: {
78
88
  readonly verifiedTarget: {
@@ -145,6 +155,8 @@ export interface OpenCodeRuntimeAdapter {
145
155
  readonly waitForTerminal: (signal: AbortSignal) => Promise<OpenCodeTurnOutcome>;
146
156
  }
147
157
  export declare function createOpenCodeRuntimeAdapter(ports: OpenCodeRuntimeAdapterPorts): OpenCodeRuntimeAdapter;
158
+ /** Equal jitter: half the exponential ceiling, plus a random share of the other half. */
159
+ export declare function reconnectDelayMs(attempt: number, random: () => number): number;
148
160
  interface CompactionActivityLogPorts {
149
161
  readonly activityLog?: ServerLogSink | undefined;
150
162
  readonly correlationId?: string | undefined;