kooyu 0.0.0-stage → 0.2.1

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 (483) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +66 -2
  3. package/bin/kooyu.mjs +56 -0
  4. package/node_modules/@kodo/platform/LICENSE +21 -0
  5. package/node_modules/@kodo/platform/dist/index.d.ts +4 -0
  6. package/node_modules/@kodo/platform/dist/index.js +26 -0
  7. package/node_modules/@kodo/platform/dist/index.js.map +1 -0
  8. package/node_modules/@kodo/platform/package.json +16 -0
  9. package/node_modules/@kodo/protocol/LICENSE +21 -0
  10. package/node_modules/@kodo/protocol/dist/activity.d.ts +26 -0
  11. package/node_modules/@kodo/protocol/dist/activity.js +2 -0
  12. package/node_modules/@kodo/protocol/dist/activity.js.map +1 -0
  13. package/node_modules/@kodo/protocol/dist/assistant-content.d.ts +10 -0
  14. package/node_modules/@kodo/protocol/dist/assistant-content.js +77 -0
  15. package/node_modules/@kodo/protocol/dist/assistant-content.js.map +1 -0
  16. package/node_modules/@kodo/protocol/dist/automation-schedule.d.ts +18 -0
  17. package/node_modules/@kodo/protocol/dist/automation-schedule.js +98 -0
  18. package/node_modules/@kodo/protocol/dist/automation-schedule.js.map +1 -0
  19. package/node_modules/@kodo/protocol/dist/client.d.ts +11 -0
  20. package/node_modules/@kodo/protocol/dist/client.js +75 -0
  21. package/node_modules/@kodo/protocol/dist/client.js.map +1 -0
  22. package/node_modules/@kodo/protocol/dist/clients.d.ts +203 -0
  23. package/node_modules/@kodo/protocol/dist/clients.js +18 -0
  24. package/node_modules/@kodo/protocol/dist/clients.js.map +1 -0
  25. package/node_modules/@kodo/protocol/dist/conversation.d.ts +11 -0
  26. package/node_modules/@kodo/protocol/dist/conversation.js +38 -0
  27. package/node_modules/@kodo/protocol/dist/conversation.js.map +1 -0
  28. package/node_modules/@kodo/protocol/dist/files.d.ts +93 -0
  29. package/node_modules/@kodo/protocol/dist/files.js +44 -0
  30. package/node_modules/@kodo/protocol/dist/files.js.map +1 -0
  31. package/node_modules/@kodo/protocol/dist/goals.d.ts +204 -0
  32. package/node_modules/@kodo/protocol/dist/goals.js +99 -0
  33. package/node_modules/@kodo/protocol/dist/goals.js.map +1 -0
  34. package/node_modules/@kodo/protocol/dist/index.d.ts +678 -0
  35. package/node_modules/@kodo/protocol/dist/index.js +179 -0
  36. package/node_modules/@kodo/protocol/dist/index.js.map +1 -0
  37. package/node_modules/@kodo/protocol/dist/notifications.d.ts +50 -0
  38. package/node_modules/@kodo/protocol/dist/notifications.js +15 -0
  39. package/node_modules/@kodo/protocol/dist/notifications.js.map +1 -0
  40. package/node_modules/@kodo/protocol/dist/onboarding.d.ts +17 -0
  41. package/node_modules/@kodo/protocol/dist/onboarding.js +9 -0
  42. package/node_modules/@kodo/protocol/dist/onboarding.js.map +1 -0
  43. package/node_modules/@kodo/protocol/dist/providers.d.ts +292 -0
  44. package/node_modules/@kodo/protocol/dist/providers.js +142 -0
  45. package/node_modules/@kodo/protocol/dist/providers.js.map +1 -0
  46. package/node_modules/@kodo/protocol/dist/self-hosted.d.ts +146 -0
  47. package/node_modules/@kodo/protocol/dist/self-hosted.js +76 -0
  48. package/node_modules/@kodo/protocol/dist/self-hosted.js.map +1 -0
  49. package/node_modules/@kodo/protocol/dist/settings.d.ts +137 -0
  50. package/node_modules/@kodo/protocol/dist/settings.js +80 -0
  51. package/node_modules/@kodo/protocol/dist/settings.js.map +1 -0
  52. package/node_modules/@kodo/protocol/dist/skills.d.ts +27 -0
  53. package/node_modules/@kodo/protocol/dist/skills.js +2 -0
  54. package/node_modules/@kodo/protocol/dist/skills.js.map +1 -0
  55. package/node_modules/@kodo/protocol/dist/web.d.ts +47 -0
  56. package/node_modules/@kodo/protocol/dist/web.js +13 -0
  57. package/node_modules/@kodo/protocol/dist/web.js.map +1 -0
  58. package/node_modules/@kodo/protocol/dist/workspace-files.d.ts +37 -0
  59. package/node_modules/@kodo/protocol/dist/workspace-files.js +2 -0
  60. package/node_modules/@kodo/protocol/dist/workspace-files.js.map +1 -0
  61. package/node_modules/@kodo/protocol/package.json +23 -0
  62. package/package.json +56 -4
  63. package/runtime/apps/web/dist/apple-touch-icon.png +0 -0
  64. package/runtime/apps/web/dist/art/prism-alabaster.jpg +0 -0
  65. package/runtime/apps/web/dist/art/prism-obsidian.jpg +0 -0
  66. package/runtime/apps/web/dist/assets/index-5gyqwenn.js +80191 -0
  67. package/runtime/apps/web/dist/assets/index-BC5Kj-z8.css +20556 -0
  68. package/runtime/apps/web/dist/favicon.ico +0 -0
  69. package/runtime/apps/web/dist/icon-192.png +0 -0
  70. package/runtime/apps/web/dist/icon-512.png +0 -0
  71. package/runtime/apps/web/dist/icon-maskable-512.png +0 -0
  72. package/runtime/apps/web/dist/icon.svg +21 -0
  73. package/runtime/apps/web/dist/index.html +21 -0
  74. package/runtime/apps/web/dist/manifest.webmanifest +35 -0
  75. package/runtime/apps/web/dist/sw.js +42 -0
  76. package/runtime/docs/verification.json +549 -0
  77. package/runtime/package-lock.json +12599 -0
  78. package/runtime/package.json +6 -0
  79. package/runtime/packages/host/dist/applications/http.d.ts +2 -0
  80. package/runtime/packages/host/dist/applications/http.js +36 -0
  81. package/runtime/packages/host/dist/applications/http.js.map +1 -0
  82. package/runtime/packages/host/dist/applications/oauth.d.ts +24 -0
  83. package/runtime/packages/host/dist/applications/oauth.js +216 -0
  84. package/runtime/packages/host/dist/applications/oauth.js.map +1 -0
  85. package/runtime/packages/host/dist/applications/permissions.d.ts +19 -0
  86. package/runtime/packages/host/dist/applications/permissions.js +103 -0
  87. package/runtime/packages/host/dist/applications/permissions.js.map +1 -0
  88. package/runtime/packages/host/dist/applications/service.d.ts +208 -0
  89. package/runtime/packages/host/dist/applications/service.js +340 -0
  90. package/runtime/packages/host/dist/applications/service.js.map +1 -0
  91. package/runtime/packages/host/dist/automations/schedule.d.ts +6 -0
  92. package/runtime/packages/host/dist/automations/schedule.js +123 -0
  93. package/runtime/packages/host/dist/automations/schedule.js.map +1 -0
  94. package/runtime/packages/host/dist/automations/service.d.ts +34 -0
  95. package/runtime/packages/host/dist/automations/service.js +420 -0
  96. package/runtime/packages/host/dist/automations/service.js.map +1 -0
  97. package/runtime/packages/host/dist/automations/webhooks.d.ts +65 -0
  98. package/runtime/packages/host/dist/automations/webhooks.js +238 -0
  99. package/runtime/packages/host/dist/automations/webhooks.js.map +1 -0
  100. package/runtime/packages/host/dist/clients/access.d.ts +11 -0
  101. package/runtime/packages/host/dist/clients/access.js +170 -0
  102. package/runtime/packages/host/dist/clients/access.js.map +1 -0
  103. package/runtime/packages/host/dist/clients/configuration.d.ts +16 -0
  104. package/runtime/packages/host/dist/clients/configuration.js +112 -0
  105. package/runtime/packages/host/dist/clients/configuration.js.map +1 -0
  106. package/runtime/packages/host/dist/clients/details.d.ts +6 -0
  107. package/runtime/packages/host/dist/clients/details.js +132 -0
  108. package/runtime/packages/host/dist/clients/details.js.map +1 -0
  109. package/runtime/packages/host/dist/clients/operations.d.ts +46 -0
  110. package/runtime/packages/host/dist/clients/operations.js +224 -0
  111. package/runtime/packages/host/dist/clients/operations.js.map +1 -0
  112. package/runtime/packages/host/dist/clients/sync.d.ts +13 -0
  113. package/runtime/packages/host/dist/clients/sync.js +55 -0
  114. package/runtime/packages/host/dist/clients/sync.js.map +1 -0
  115. package/runtime/packages/host/dist/clients/workbench.d.ts +5 -0
  116. package/runtime/packages/host/dist/clients/workbench.js +75 -0
  117. package/runtime/packages/host/dist/clients/workbench.js.map +1 -0
  118. package/runtime/packages/host/dist/configuration/config-files.d.ts +17 -0
  119. package/runtime/packages/host/dist/configuration/config-files.js +137 -0
  120. package/runtime/packages/host/dist/configuration/config-files.js.map +1 -0
  121. package/runtime/packages/host/dist/configuration/config.d.ts +43 -0
  122. package/runtime/packages/host/dist/configuration/config.js +297 -0
  123. package/runtime/packages/host/dist/configuration/config.js.map +1 -0
  124. package/runtime/packages/host/dist/configuration/engines.d.ts +24 -0
  125. package/runtime/packages/host/dist/configuration/engines.js +223 -0
  126. package/runtime/packages/host/dist/configuration/engines.js.map +1 -0
  127. package/runtime/packages/host/dist/configuration/onboarding.d.ts +5 -0
  128. package/runtime/packages/host/dist/configuration/onboarding.js +42 -0
  129. package/runtime/packages/host/dist/configuration/onboarding.js.map +1 -0
  130. package/runtime/packages/host/dist/configuration/permissions.d.ts +7 -0
  131. package/runtime/packages/host/dist/configuration/permissions.js +56 -0
  132. package/runtime/packages/host/dist/configuration/permissions.js.map +1 -0
  133. package/runtime/packages/host/dist/configuration/preferences.d.ts +4 -0
  134. package/runtime/packages/host/dist/configuration/preferences.js +17 -0
  135. package/runtime/packages/host/dist/configuration/preferences.js.map +1 -0
  136. package/runtime/packages/host/dist/configuration/skills.d.ts +32 -0
  137. package/runtime/packages/host/dist/configuration/skills.js +376 -0
  138. package/runtime/packages/host/dist/configuration/skills.js.map +1 -0
  139. package/runtime/packages/host/dist/credentials/vault.d.ts +57 -0
  140. package/runtime/packages/host/dist/credentials/vault.js +181 -0
  141. package/runtime/packages/host/dist/credentials/vault.js.map +1 -0
  142. package/runtime/packages/host/dist/devices/native-client.d.ts +34 -0
  143. package/runtime/packages/host/dist/devices/native-client.js +52 -0
  144. package/runtime/packages/host/dist/devices/native-client.js.map +1 -0
  145. package/runtime/packages/host/dist/devices/pairing.d.ts +25 -0
  146. package/runtime/packages/host/dist/devices/pairing.js +70 -0
  147. package/runtime/packages/host/dist/devices/pairing.js.map +1 -0
  148. package/runtime/packages/host/dist/devices/relay.d.ts +40 -0
  149. package/runtime/packages/host/dist/devices/relay.js +290 -0
  150. package/runtime/packages/host/dist/devices/relay.js.map +1 -0
  151. package/runtime/packages/host/dist/domain/session-rules.d.ts +4 -0
  152. package/runtime/packages/host/dist/domain/session-rules.js +35 -0
  153. package/runtime/packages/host/dist/domain/session-rules.js.map +1 -0
  154. package/runtime/packages/host/dist/execution/actions.d.ts +34 -0
  155. package/runtime/packages/host/dist/execution/actions.js +117 -0
  156. package/runtime/packages/host/dist/execution/actions.js.map +1 -0
  157. package/runtime/packages/host/dist/execution/browser.d.ts +105 -0
  158. package/runtime/packages/host/dist/execution/browser.js +317 -0
  159. package/runtime/packages/host/dist/execution/browser.js.map +1 -0
  160. package/runtime/packages/host/dist/execution/capacity.d.ts +16 -0
  161. package/runtime/packages/host/dist/execution/capacity.js +44 -0
  162. package/runtime/packages/host/dist/execution/capacity.js.map +1 -0
  163. package/runtime/packages/host/dist/execution/service.d.ts +73 -0
  164. package/runtime/packages/host/dist/execution/service.js +318 -0
  165. package/runtime/packages/host/dist/execution/service.js.map +1 -0
  166. package/runtime/packages/host/dist/execution/worker.d.ts +2 -0
  167. package/runtime/packages/host/dist/execution/worker.js +304 -0
  168. package/runtime/packages/host/dist/execution/worker.js.map +1 -0
  169. package/runtime/packages/host/dist/files/http-content.d.ts +6 -0
  170. package/runtime/packages/host/dist/files/http-content.js +81 -0
  171. package/runtime/packages/host/dist/files/http-content.js.map +1 -0
  172. package/runtime/packages/host/dist/files/store.d.ts +98 -0
  173. package/runtime/packages/host/dist/files/store.js +507 -0
  174. package/runtime/packages/host/dist/files/store.js.map +1 -0
  175. package/runtime/packages/host/dist/goals/service.d.ts +73 -0
  176. package/runtime/packages/host/dist/goals/service.js +639 -0
  177. package/runtime/packages/host/dist/goals/service.js.map +1 -0
  178. package/runtime/packages/host/dist/goals/workspace.d.ts +27 -0
  179. package/runtime/packages/host/dist/goals/workspace.js +228 -0
  180. package/runtime/packages/host/dist/goals/workspace.js.map +1 -0
  181. package/runtime/packages/host/dist/harnesses/acp-client.d.ts +20 -0
  182. package/runtime/packages/host/dist/harnesses/acp-client.js +286 -0
  183. package/runtime/packages/host/dist/harnesses/acp-client.js.map +1 -0
  184. package/runtime/packages/host/dist/harnesses/acp-history.d.ts +8 -0
  185. package/runtime/packages/host/dist/harnesses/acp-history.js +67 -0
  186. package/runtime/packages/host/dist/harnesses/acp-history.js.map +1 -0
  187. package/runtime/packages/host/dist/harnesses/acp-sessions.d.ts +6 -0
  188. package/runtime/packages/host/dist/harnesses/acp-sessions.js +76 -0
  189. package/runtime/packages/host/dist/harnesses/acp-sessions.js.map +1 -0
  190. package/runtime/packages/host/dist/harnesses/acp.d.ts +3 -0
  191. package/runtime/packages/host/dist/harnesses/acp.js +451 -0
  192. package/runtime/packages/host/dist/harnesses/acp.js.map +1 -0
  193. package/runtime/packages/host/dist/harnesses/adapter.d.ts +83 -0
  194. package/runtime/packages/host/dist/harnesses/adapter.js +24 -0
  195. package/runtime/packages/host/dist/harnesses/adapter.js.map +1 -0
  196. package/runtime/packages/host/dist/harnesses/asar.d.ts +3 -0
  197. package/runtime/packages/host/dist/harnesses/asar.js +77 -0
  198. package/runtime/packages/host/dist/harnesses/asar.js.map +1 -0
  199. package/runtime/packages/host/dist/harnesses/claude-code.d.ts +12 -0
  200. package/runtime/packages/host/dist/harnesses/claude-code.js +535 -0
  201. package/runtime/packages/host/dist/harnesses/claude-code.js.map +1 -0
  202. package/runtime/packages/host/dist/harnesses/claude-history.d.ts +17 -0
  203. package/runtime/packages/host/dist/harnesses/claude-history.js +101 -0
  204. package/runtime/packages/host/dist/harnesses/claude-history.js.map +1 -0
  205. package/runtime/packages/host/dist/harnesses/codex-history.d.ts +13 -0
  206. package/runtime/packages/host/dist/harnesses/codex-history.js +107 -0
  207. package/runtime/packages/host/dist/harnesses/codex-history.js.map +1 -0
  208. package/runtime/packages/host/dist/harnesses/codex.d.ts +2 -0
  209. package/runtime/packages/host/dist/harnesses/codex.js +430 -0
  210. package/runtime/packages/host/dist/harnesses/codex.js.map +1 -0
  211. package/runtime/packages/host/dist/harnesses/cursor.d.ts +8 -0
  212. package/runtime/packages/host/dist/harnesses/cursor.js +119 -0
  213. package/runtime/packages/host/dist/harnesses/cursor.js.map +1 -0
  214. package/runtime/packages/host/dist/harnesses/deepseek-harness.d.ts +2 -0
  215. package/runtime/packages/host/dist/harnesses/deepseek-harness.js +296 -0
  216. package/runtime/packages/host/dist/harnesses/deepseek-harness.js.map +1 -0
  217. package/runtime/packages/host/dist/harnesses/desktop-installations.d.ts +6 -0
  218. package/runtime/packages/host/dist/harnesses/desktop-installations.js +247 -0
  219. package/runtime/packages/host/dist/harnesses/desktop-installations.js.map +1 -0
  220. package/runtime/packages/host/dist/harnesses/desktop-opencode.d.ts +1 -0
  221. package/runtime/packages/host/dist/harnesses/desktop-opencode.js +39 -0
  222. package/runtime/packages/host/dist/harnesses/desktop-opencode.js.map +1 -0
  223. package/runtime/packages/host/dist/harnesses/dsh-history.d.ts +9 -0
  224. package/runtime/packages/host/dist/harnesses/dsh-history.js +200 -0
  225. package/runtime/packages/host/dist/harnesses/dsh-history.js.map +1 -0
  226. package/runtime/packages/host/dist/harnesses/dsh-native.d.ts +20 -0
  227. package/runtime/packages/host/dist/harnesses/dsh-native.js +106 -0
  228. package/runtime/packages/host/dist/harnesses/dsh-native.js.map +1 -0
  229. package/runtime/packages/host/dist/harnesses/gemini.d.ts +2 -0
  230. package/runtime/packages/host/dist/harnesses/gemini.js +217 -0
  231. package/runtime/packages/host/dist/harnesses/gemini.js.map +1 -0
  232. package/runtime/packages/host/dist/harnesses/grok-build.d.ts +6 -0
  233. package/runtime/packages/host/dist/harnesses/grok-build.js +152 -0
  234. package/runtime/packages/host/dist/harnesses/grok-build.js.map +1 -0
  235. package/runtime/packages/host/dist/harnesses/input-modalities.d.ts +9 -0
  236. package/runtime/packages/host/dist/harnesses/input-modalities.js +17 -0
  237. package/runtime/packages/host/dist/harnesses/input-modalities.js.map +1 -0
  238. package/runtime/packages/host/dist/harnesses/kimi-code.d.ts +2 -0
  239. package/runtime/packages/host/dist/harnesses/kimi-code.js +648 -0
  240. package/runtime/packages/host/dist/harnesses/kimi-code.js.map +1 -0
  241. package/runtime/packages/host/dist/harnesses/kimi-interactions.d.ts +3 -0
  242. package/runtime/packages/host/dist/harnesses/kimi-interactions.js +82 -0
  243. package/runtime/packages/host/dist/harnesses/kimi-interactions.js.map +1 -0
  244. package/runtime/packages/host/dist/harnesses/kodo.d.ts +2 -0
  245. package/runtime/packages/host/dist/harnesses/kodo.js +11 -0
  246. package/runtime/packages/host/dist/harnesses/kodo.js.map +1 -0
  247. package/runtime/packages/host/dist/harnesses/launch-types.d.ts +12 -0
  248. package/runtime/packages/host/dist/harnesses/launch-types.js +2 -0
  249. package/runtime/packages/host/dist/harnesses/launch-types.js.map +1 -0
  250. package/runtime/packages/host/dist/harnesses/model-metadata.d.ts +12 -0
  251. package/runtime/packages/host/dist/harnesses/model-metadata.js +43 -0
  252. package/runtime/packages/host/dist/harnesses/model-metadata.js.map +1 -0
  253. package/runtime/packages/host/dist/harnesses/model-options.d.ts +31 -0
  254. package/runtime/packages/host/dist/harnesses/model-options.js +242 -0
  255. package/runtime/packages/host/dist/harnesses/model-options.js.map +1 -0
  256. package/runtime/packages/host/dist/harnesses/models.d.ts +14 -0
  257. package/runtime/packages/host/dist/harnesses/models.js +161 -0
  258. package/runtime/packages/host/dist/harnesses/models.js.map +1 -0
  259. package/runtime/packages/host/dist/harnesses/native-command.d.ts +2 -0
  260. package/runtime/packages/host/dist/harnesses/native-command.js +50 -0
  261. package/runtime/packages/host/dist/harnesses/native-command.js.map +1 -0
  262. package/runtime/packages/host/dist/harnesses/native-defaults.d.ts +15 -0
  263. package/runtime/packages/host/dist/harnesses/native-defaults.js +165 -0
  264. package/runtime/packages/host/dist/harnesses/native-defaults.js.map +1 -0
  265. package/runtime/packages/host/dist/harnesses/native-history.d.ts +4 -0
  266. package/runtime/packages/host/dist/harnesses/native-history.js +35 -0
  267. package/runtime/packages/host/dist/harnesses/native-history.js.map +1 -0
  268. package/runtime/packages/host/dist/harnesses/native-interactions.d.ts +11 -0
  269. package/runtime/packages/host/dist/harnesses/native-interactions.js +50 -0
  270. package/runtime/packages/host/dist/harnesses/native-interactions.js.map +1 -0
  271. package/runtime/packages/host/dist/harnesses/opencode-events.d.ts +13 -0
  272. package/runtime/packages/host/dist/harnesses/opencode-events.js +112 -0
  273. package/runtime/packages/host/dist/harnesses/opencode-events.js.map +1 -0
  274. package/runtime/packages/host/dist/harnesses/opencode-history.d.ts +8 -0
  275. package/runtime/packages/host/dist/harnesses/opencode-history.js +50 -0
  276. package/runtime/packages/host/dist/harnesses/opencode-history.js.map +1 -0
  277. package/runtime/packages/host/dist/harnesses/opencode.d.ts +2 -0
  278. package/runtime/packages/host/dist/harnesses/opencode.js +421 -0
  279. package/runtime/packages/host/dist/harnesses/opencode.js.map +1 -0
  280. package/runtime/packages/host/dist/harnesses/pi.d.ts +2 -0
  281. package/runtime/packages/host/dist/harnesses/pi.js +11 -0
  282. package/runtime/packages/host/dist/harnesses/pi.js.map +1 -0
  283. package/runtime/packages/host/dist/harnesses/registry.d.ts +3 -0
  284. package/runtime/packages/host/dist/harnesses/registry.js +32 -0
  285. package/runtime/packages/host/dist/harnesses/registry.js.map +1 -0
  286. package/runtime/packages/host/dist/harnesses/retry.d.ts +4 -0
  287. package/runtime/packages/host/dist/harnesses/retry.js +19 -0
  288. package/runtime/packages/host/dist/harnesses/retry.js.map +1 -0
  289. package/runtime/packages/host/dist/harnesses/rpc.d.ts +25 -0
  290. package/runtime/packages/host/dist/harnesses/rpc.js +202 -0
  291. package/runtime/packages/host/dist/harnesses/rpc.js.map +1 -0
  292. package/runtime/packages/host/dist/harnesses/sdk-history.d.ts +6 -0
  293. package/runtime/packages/host/dist/harnesses/sdk-history.js +84 -0
  294. package/runtime/packages/host/dist/harnesses/sdk-history.js.map +1 -0
  295. package/runtime/packages/host/dist/harnesses/session-presence.d.ts +14 -0
  296. package/runtime/packages/host/dist/harnesses/session-presence.js +139 -0
  297. package/runtime/packages/host/dist/harnesses/session-presence.js.map +1 -0
  298. package/runtime/packages/host/dist/harnesses/subagents.d.ts +12 -0
  299. package/runtime/packages/host/dist/harnesses/subagents.js +44 -0
  300. package/runtime/packages/host/dist/harnesses/subagents.js.map +1 -0
  301. package/runtime/packages/host/dist/harnesses/todos.d.ts +12 -0
  302. package/runtime/packages/host/dist/harnesses/todos.js +179 -0
  303. package/runtime/packages/host/dist/harnesses/todos.js.map +1 -0
  304. package/runtime/packages/host/dist/harnesses/zcode-frames.d.ts +12 -0
  305. package/runtime/packages/host/dist/harnesses/zcode-frames.js +245 -0
  306. package/runtime/packages/host/dist/harnesses/zcode-frames.js.map +1 -0
  307. package/runtime/packages/host/dist/harnesses/zcode-history.d.ts +6 -0
  308. package/runtime/packages/host/dist/harnesses/zcode-history.js +46 -0
  309. package/runtime/packages/host/dist/harnesses/zcode-history.js.map +1 -0
  310. package/runtime/packages/host/dist/harnesses/zcode-sessions.d.ts +3 -0
  311. package/runtime/packages/host/dist/harnesses/zcode-sessions.js +86 -0
  312. package/runtime/packages/host/dist/harnesses/zcode-sessions.js.map +1 -0
  313. package/runtime/packages/host/dist/harnesses/zcode.d.ts +2 -0
  314. package/runtime/packages/host/dist/harnesses/zcode.js +532 -0
  315. package/runtime/packages/host/dist/harnesses/zcode.js.map +1 -0
  316. package/runtime/packages/host/dist/http/client-routes.d.ts +4 -0
  317. package/runtime/packages/host/dist/http/client-routes.js +85 -0
  318. package/runtime/packages/host/dist/http/client-routes.js.map +1 -0
  319. package/runtime/packages/host/dist/http/self-hosted-routes.d.ts +6 -0
  320. package/runtime/packages/host/dist/http/self-hosted-routes.js +365 -0
  321. package/runtime/packages/host/dist/http/self-hosted-routes.js.map +1 -0
  322. package/runtime/packages/host/dist/http/server.d.ts +15 -0
  323. package/runtime/packages/host/dist/http/server.js +960 -0
  324. package/runtime/packages/host/dist/http/server.js.map +1 -0
  325. package/runtime/packages/host/dist/http/work-routes.d.ts +17 -0
  326. package/runtime/packages/host/dist/http/work-routes.js +229 -0
  327. package/runtime/packages/host/dist/http/work-routes.js.map +1 -0
  328. package/runtime/packages/host/dist/kodo/credentials.d.ts +8 -0
  329. package/runtime/packages/host/dist/kodo/credentials.js +56 -0
  330. package/runtime/packages/host/dist/kodo/credentials.js.map +1 -0
  331. package/runtime/packages/host/dist/kodo/kernel.d.ts +11 -0
  332. package/runtime/packages/host/dist/kodo/kernel.js +566 -0
  333. package/runtime/packages/host/dist/kodo/kernel.js.map +1 -0
  334. package/runtime/packages/host/dist/kodo/self-hosted-tools.d.ts +4 -0
  335. package/runtime/packages/host/dist/kodo/self-hosted-tools.js +230 -0
  336. package/runtime/packages/host/dist/kodo/self-hosted-tools.js.map +1 -0
  337. package/runtime/packages/host/dist/kodo/tools.d.ts +6 -0
  338. package/runtime/packages/host/dist/kodo/tools.js +467 -0
  339. package/runtime/packages/host/dist/kodo/tools.js.map +1 -0
  340. package/runtime/packages/host/dist/kodo/work-tools.d.ts +10 -0
  341. package/runtime/packages/host/dist/kodo/work-tools.js +259 -0
  342. package/runtime/packages/host/dist/kodo/work-tools.js.map +1 -0
  343. package/runtime/packages/host/dist/lifecycle/doctor.d.ts +18 -0
  344. package/runtime/packages/host/dist/lifecycle/doctor.js +68 -0
  345. package/runtime/packages/host/dist/lifecycle/doctor.js.map +1 -0
  346. package/runtime/packages/host/dist/lifecycle/gate.d.ts +38 -0
  347. package/runtime/packages/host/dist/lifecycle/gate.js +65 -0
  348. package/runtime/packages/host/dist/lifecycle/gate.js.map +1 -0
  349. package/runtime/packages/host/dist/main.d.ts +1 -0
  350. package/runtime/packages/host/dist/main.js +159 -0
  351. package/runtime/packages/host/dist/main.js.map +1 -0
  352. package/runtime/packages/host/dist/memory/service.d.ts +46 -0
  353. package/runtime/packages/host/dist/memory/service.js +213 -0
  354. package/runtime/packages/host/dist/memory/service.js.map +1 -0
  355. package/runtime/packages/host/dist/messaging/outbox.d.ts +28 -0
  356. package/runtime/packages/host/dist/messaging/outbox.js +158 -0
  357. package/runtime/packages/host/dist/messaging/outbox.js.map +1 -0
  358. package/runtime/packages/host/dist/native-import.d.ts +23 -0
  359. package/runtime/packages/host/dist/native-import.js +234 -0
  360. package/runtime/packages/host/dist/native-import.js.map +1 -0
  361. package/runtime/packages/host/dist/notifications/apns.d.ts +62 -0
  362. package/runtime/packages/host/dist/notifications/apns.js +231 -0
  363. package/runtime/packages/host/dist/notifications/apns.js.map +1 -0
  364. package/runtime/packages/host/dist/notifications/delivery.d.ts +66 -0
  365. package/runtime/packages/host/dist/notifications/delivery.js +393 -0
  366. package/runtime/packages/host/dist/notifications/delivery.js.map +1 -0
  367. package/runtime/packages/host/dist/notifications/service.d.ts +32 -0
  368. package/runtime/packages/host/dist/notifications/service.js +146 -0
  369. package/runtime/packages/host/dist/notifications/service.js.map +1 -0
  370. package/runtime/packages/host/dist/providers/catalog.d.ts +35 -0
  371. package/runtime/packages/host/dist/providers/catalog.js +267 -0
  372. package/runtime/packages/host/dist/providers/catalog.js.map +1 -0
  373. package/runtime/packages/host/dist/providers/credential-relay.d.ts +18 -0
  374. package/runtime/packages/host/dist/providers/credential-relay.js +142 -0
  375. package/runtime/packages/host/dist/providers/credential-relay.js.map +1 -0
  376. package/runtime/packages/host/dist/providers/gateway.d.ts +23 -0
  377. package/runtime/packages/host/dist/providers/gateway.js +592 -0
  378. package/runtime/packages/host/dist/providers/gateway.js.map +1 -0
  379. package/runtime/packages/host/dist/providers/gemini-chat.d.ts +6 -0
  380. package/runtime/packages/host/dist/providers/gemini-chat.js +273 -0
  381. package/runtime/packages/host/dist/providers/gemini-chat.js.map +1 -0
  382. package/runtime/packages/host/dist/providers/model-option.d.ts +3 -0
  383. package/runtime/packages/host/dist/providers/model-option.js +40 -0
  384. package/runtime/packages/host/dist/providers/model-option.js.map +1 -0
  385. package/runtime/packages/host/dist/providers/model-reasoning.d.ts +6 -0
  386. package/runtime/packages/host/dist/providers/model-reasoning.js +20 -0
  387. package/runtime/packages/host/dist/providers/model-reasoning.js.map +1 -0
  388. package/runtime/packages/host/dist/providers/native-config.d.ts +6 -0
  389. package/runtime/packages/host/dist/providers/native-config.js +236 -0
  390. package/runtime/packages/host/dist/providers/native-config.js.map +1 -0
  391. package/runtime/packages/host/dist/providers/service.d.ts +175 -0
  392. package/runtime/packages/host/dist/providers/service.js +1208 -0
  393. package/runtime/packages/host/dist/providers/service.js.map +1 -0
  394. package/runtime/packages/host/dist/session-activity.d.ts +9 -0
  395. package/runtime/packages/host/dist/session-activity.js +105 -0
  396. package/runtime/packages/host/dist/session-activity.js.map +1 -0
  397. package/runtime/packages/host/dist/session-service.d.ts +481 -0
  398. package/runtime/packages/host/dist/session-service.js +3885 -0
  399. package/runtime/packages/host/dist/session-service.js.map +1 -0
  400. package/runtime/packages/host/dist/storage/schema.d.ts +7 -0
  401. package/runtime/packages/host/dist/storage/schema.js +191 -0
  402. package/runtime/packages/host/dist/storage/schema.js.map +1 -0
  403. package/runtime/packages/host/dist/storage/self-hosted.d.ts +13 -0
  404. package/runtime/packages/host/dist/storage/self-hosted.js +51 -0
  405. package/runtime/packages/host/dist/storage/self-hosted.js.map +1 -0
  406. package/runtime/packages/host/dist/storage/store.d.ts +56 -0
  407. package/runtime/packages/host/dist/storage/store.js +470 -0
  408. package/runtime/packages/host/dist/storage/store.js.map +1 -0
  409. package/runtime/packages/host/dist/tools/web.d.ts +77 -0
  410. package/runtime/packages/host/dist/tools/web.js +532 -0
  411. package/runtime/packages/host/dist/tools/web.js.map +1 -0
  412. package/runtime/packages/host/dist/updater.d.ts +56 -0
  413. package/runtime/packages/host/dist/updater.js +622 -0
  414. package/runtime/packages/host/dist/updater.js.map +1 -0
  415. package/runtime/packages/host/dist/voice.d.ts +25 -0
  416. package/runtime/packages/host/dist/voice.js +173 -0
  417. package/runtime/packages/host/dist/voice.js.map +1 -0
  418. package/runtime/packages/host/dist/workspaces/artifacts.d.ts +25 -0
  419. package/runtime/packages/host/dist/workspaces/artifacts.js +76 -0
  420. package/runtime/packages/host/dist/workspaces/artifacts.js.map +1 -0
  421. package/runtime/packages/host/dist/workspaces/directories.d.ts +10 -0
  422. package/runtime/packages/host/dist/workspaces/directories.js +45 -0
  423. package/runtime/packages/host/dist/workspaces/directories.js.map +1 -0
  424. package/runtime/packages/host/dist/workspaces/files.d.ts +15 -0
  425. package/runtime/packages/host/dist/workspaces/files.js +223 -0
  426. package/runtime/packages/host/dist/workspaces/files.js.map +1 -0
  427. package/runtime/packages/host/package.json +25 -0
  428. package/runtime/packages/platform/dist/index.d.ts +4 -0
  429. package/runtime/packages/platform/dist/index.js +26 -0
  430. package/runtime/packages/platform/dist/index.js.map +1 -0
  431. package/runtime/packages/platform/package.json +16 -0
  432. package/runtime/packages/protocol/dist/activity.d.ts +26 -0
  433. package/runtime/packages/protocol/dist/activity.js +2 -0
  434. package/runtime/packages/protocol/dist/activity.js.map +1 -0
  435. package/runtime/packages/protocol/dist/assistant-content.d.ts +10 -0
  436. package/runtime/packages/protocol/dist/assistant-content.js +77 -0
  437. package/runtime/packages/protocol/dist/assistant-content.js.map +1 -0
  438. package/runtime/packages/protocol/dist/automation-schedule.d.ts +18 -0
  439. package/runtime/packages/protocol/dist/automation-schedule.js +98 -0
  440. package/runtime/packages/protocol/dist/automation-schedule.js.map +1 -0
  441. package/runtime/packages/protocol/dist/client.d.ts +11 -0
  442. package/runtime/packages/protocol/dist/client.js +75 -0
  443. package/runtime/packages/protocol/dist/client.js.map +1 -0
  444. package/runtime/packages/protocol/dist/clients.d.ts +203 -0
  445. package/runtime/packages/protocol/dist/clients.js +18 -0
  446. package/runtime/packages/protocol/dist/clients.js.map +1 -0
  447. package/runtime/packages/protocol/dist/conversation.d.ts +11 -0
  448. package/runtime/packages/protocol/dist/conversation.js +38 -0
  449. package/runtime/packages/protocol/dist/conversation.js.map +1 -0
  450. package/runtime/packages/protocol/dist/files.d.ts +93 -0
  451. package/runtime/packages/protocol/dist/files.js +44 -0
  452. package/runtime/packages/protocol/dist/files.js.map +1 -0
  453. package/runtime/packages/protocol/dist/goals.d.ts +204 -0
  454. package/runtime/packages/protocol/dist/goals.js +99 -0
  455. package/runtime/packages/protocol/dist/goals.js.map +1 -0
  456. package/runtime/packages/protocol/dist/index.d.ts +678 -0
  457. package/runtime/packages/protocol/dist/index.js +179 -0
  458. package/runtime/packages/protocol/dist/index.js.map +1 -0
  459. package/runtime/packages/protocol/dist/notifications.d.ts +50 -0
  460. package/runtime/packages/protocol/dist/notifications.js +15 -0
  461. package/runtime/packages/protocol/dist/notifications.js.map +1 -0
  462. package/runtime/packages/protocol/dist/onboarding.d.ts +17 -0
  463. package/runtime/packages/protocol/dist/onboarding.js +9 -0
  464. package/runtime/packages/protocol/dist/onboarding.js.map +1 -0
  465. package/runtime/packages/protocol/dist/providers.d.ts +292 -0
  466. package/runtime/packages/protocol/dist/providers.js +142 -0
  467. package/runtime/packages/protocol/dist/providers.js.map +1 -0
  468. package/runtime/packages/protocol/dist/self-hosted.d.ts +146 -0
  469. package/runtime/packages/protocol/dist/self-hosted.js +76 -0
  470. package/runtime/packages/protocol/dist/self-hosted.js.map +1 -0
  471. package/runtime/packages/protocol/dist/settings.d.ts +137 -0
  472. package/runtime/packages/protocol/dist/settings.js +80 -0
  473. package/runtime/packages/protocol/dist/settings.js.map +1 -0
  474. package/runtime/packages/protocol/dist/skills.d.ts +27 -0
  475. package/runtime/packages/protocol/dist/skills.js +2 -0
  476. package/runtime/packages/protocol/dist/skills.js.map +1 -0
  477. package/runtime/packages/protocol/dist/web.d.ts +47 -0
  478. package/runtime/packages/protocol/dist/web.js +13 -0
  479. package/runtime/packages/protocol/dist/web.js.map +1 -0
  480. package/runtime/packages/protocol/dist/workspace-files.d.ts +37 -0
  481. package/runtime/packages/protocol/dist/workspace-files.js +2 -0
  482. package/runtime/packages/protocol/dist/workspace-files.js.map +1 -0
  483. package/runtime/packages/protocol/package.json +23 -0
@@ -0,0 +1,203 @@
1
+ import { z } from "zod";
2
+ import type { ErrorCode, Snapshot, Session, Workspace, InboxItem, HarnessId, PermissionMode, HarnessModelOption, BindingDefaults, HarnessBindingDefaults } from "./index.js";
3
+ import type { AppSettings } from "./settings.js";
4
+ import type { Goal, GoalHistoryEntry, Verification } from "./goals.js";
5
+ import type { Artifact, ManagedFile } from "./files.js";
6
+ import type { NotificationItem } from "./notifications.js";
7
+ import type { Automation, Activation, MemoryEntry } from "./self-hosted.js";
8
+ export interface WorkbenchOverview {
9
+ hostId: string;
10
+ projectId: string | null;
11
+ project: Snapshot["projects"][number] | null;
12
+ projects: Snapshot["projects"];
13
+ sessions: Session[];
14
+ workspaces: Workspace[];
15
+ harnesses: Snapshot["harnesses"];
16
+ inbox: InboxItem[];
17
+ goals: Goal[];
18
+ artifacts: GoalDetail["artifacts"];
19
+ plans: Automation[];
20
+ activations: Activation[];
21
+ memories: MemoryEntry[];
22
+ actions: Record<string, ClientOperationAccess>;
23
+ coverage: {
24
+ artifactsLimit: number;
25
+ activationLimit: number;
26
+ };
27
+ }
28
+ /** Explicit local-admin delegation; never includes installation, secrets or device administration. */
29
+ export declare const delegatedOperations: readonly ["goals.check"];
30
+ export type DelegatedOperation = (typeof delegatedOperations)[number];
31
+ export interface DeviceAccess {
32
+ deviceId: string;
33
+ revision: number;
34
+ operations: DelegatedOperation[];
35
+ }
36
+ export declare const deviceAccessSchema: z.ZodObject<{
37
+ expectedRevision: z.ZodNumber;
38
+ operations: z.ZodArray<z.ZodEnum<{
39
+ "goals.check": "goals.check";
40
+ }>>;
41
+ }, z.core.$strict>;
42
+ export interface ClientOperationAccess {
43
+ supported: boolean;
44
+ allowed: boolean;
45
+ available: boolean;
46
+ reason: string | null;
47
+ requirement: "paired-device" | "local-administrator" | "explicit-delegation" | "unsupported";
48
+ }
49
+ export interface ClientCapabilities {
50
+ protocolVersion: number;
51
+ contractVersion: 1;
52
+ hostId: string;
53
+ localAdministrator: boolean;
54
+ accessRevision: number;
55
+ /** Retained for existing clients. Values indicate protocol support, not availability. */
56
+ capabilities: Record<string, number>;
57
+ unsupported: string[];
58
+ operations: Record<string, ClientOperationAccess>;
59
+ limits: {
60
+ maxUploadBytes: number;
61
+ maxChunkBytes: number;
62
+ syncHistoryEntries: number;
63
+ };
64
+ }
65
+ export interface GoalDetail {
66
+ goal: Goal;
67
+ verifications: Verification[];
68
+ history: GoalHistoryEntry[];
69
+ controller: Session;
70
+ sessions: Session[];
71
+ workspaces: Workspace[];
72
+ artifacts: {
73
+ artifact: Artifact;
74
+ file: ManagedFile | null;
75
+ available: boolean;
76
+ reason: string | null;
77
+ }[];
78
+ inbox: ClientInboxItem[];
79
+ missingSessionIds: string[];
80
+ missingWorkspaceIds: string[];
81
+ missingArtifactIds: string[];
82
+ actions: Record<string, ClientOperationAccess>;
83
+ }
84
+ export interface NotificationContext {
85
+ notification: NotificationItem;
86
+ hostId: string;
87
+ target: {
88
+ kind: "inbox" | "goal" | "session";
89
+ id: string;
90
+ } | null;
91
+ state: "actionable" | "resolved" | "unavailable";
92
+ session: Session | null;
93
+ inbox: ClientInboxItem | null;
94
+ goal: GoalDetail | null;
95
+ }
96
+ export declare const clientMutationSchema: z.ZodObject<{
97
+ requestId: z.ZodString;
98
+ method: z.ZodEnum<{
99
+ POST: "POST";
100
+ PATCH: "PATCH";
101
+ DELETE: "DELETE";
102
+ }>;
103
+ path: z.ZodString;
104
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
105
+ }, z.core.$strict>;
106
+ export type ClientMutation = z.infer<typeof clientMutationSchema>;
107
+ /** Separate from native input command receipts; only management writes use this contract. */
108
+ export interface ClientMutationReceipt {
109
+ requestId: string;
110
+ deviceId: string;
111
+ method: ClientMutation["method"];
112
+ path: string;
113
+ status: "pending" | "confirmed" | "failed" | "unknown";
114
+ retryable: false;
115
+ result?: unknown;
116
+ error?: {
117
+ code: ErrorCode;
118
+ message: string;
119
+ };
120
+ createdAt: string;
121
+ updatedAt: string;
122
+ }
123
+ export interface NativeSyncPage {
124
+ hostId: string;
125
+ protocolVersion: number;
126
+ cursor: string;
127
+ baseCursor: string | null;
128
+ resetRequired: boolean;
129
+ snapshot?: Snapshot & {
130
+ goals: Goal[];
131
+ inbox: ClientInboxItem[];
132
+ };
133
+ /** Array members use stable IDs; projectGrants use controllerSessionId:projectId. */
134
+ collections?: Record<string, {
135
+ upsert: unknown[];
136
+ remove: string[];
137
+ order: string[];
138
+ }>;
139
+ values?: Record<string, unknown>;
140
+ }
141
+ export interface ClientAction {
142
+ label: string;
143
+ answer: Record<string, unknown>;
144
+ destructive?: boolean;
145
+ }
146
+ export interface ClientInboxItem extends InboxItem {
147
+ actions: ClientAction[];
148
+ }
149
+ export interface SessionConfiguration {
150
+ schemaVersion: 1;
151
+ sessionId: string;
152
+ harnessId: HarnessId;
153
+ settingsRevision: number;
154
+ configurationRevision: string;
155
+ binding: {
156
+ id: string | null;
157
+ revision: number | null;
158
+ source: "session-snapshot";
159
+ available: boolean;
160
+ };
161
+ model: {
162
+ selected: string | null;
163
+ observed: string | null;
164
+ effective: string | null;
165
+ source: "session" | "binding" | "runtime" | "native-default" | "unresolved";
166
+ support: string;
167
+ options: HarnessModelOption[];
168
+ };
169
+ permissions: {
170
+ selected: PermissionMode | null;
171
+ current: PermissionMode | null;
172
+ /** Only a live runtime report; null also means unreported. See source. */
173
+ observed: PermissionMode | null;
174
+ source: "runtime" | "host-catalog" | "unresolved";
175
+ options: {
176
+ value: PermissionMode;
177
+ label: string;
178
+ detail?: string;
179
+ }[];
180
+ canChange: boolean;
181
+ reason: string | null;
182
+ };
183
+ newSessionDefaults: {
184
+ host: BindingDefaults;
185
+ project: HarnessBindingDefaults | null;
186
+ harness: AppSettings["harnessDefaults"][HarnessId] | null;
187
+ };
188
+ }
189
+ export interface ManagedFileAccess {
190
+ fileId: string;
191
+ size: number;
192
+ sha256: string;
193
+ mediaType: string;
194
+ preview: {
195
+ available: boolean;
196
+ reason: string | null;
197
+ contentUrl: string;
198
+ };
199
+ downloadUrl: string;
200
+ etag: string;
201
+ supportsRanges: true;
202
+ maxUploadBytes: number;
203
+ }
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ /** Explicit local-admin delegation; never includes installation, secrets or device administration. */
3
+ export const delegatedOperations = ["goals.check"];
4
+ export const deviceAccessSchema = z
5
+ .object({
6
+ expectedRevision: z.number().int().nonnegative(),
7
+ operations: z.array(z.enum(delegatedOperations)).max(delegatedOperations.length),
8
+ })
9
+ .strict();
10
+ export const clientMutationSchema = z
11
+ .object({
12
+ requestId: z.string().uuid(),
13
+ method: z.enum(["POST", "PATCH", "DELETE"]),
14
+ path: z.string().min(1).max(300),
15
+ body: z.record(z.string(), z.unknown()).optional(),
16
+ })
17
+ .strict();
18
+ //# sourceMappingURL=clients.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clients.js","sourceRoot":"","sources":["../src/clients.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqCxB,sGAAsG;AACtG,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,aAAa,CAAU,CAAC;AAO5D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAChD,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,GAAG,CAAC,mBAAmB,CAAC,MAAM,CAAC;CACjF,CAAC;KACD,MAAM,EAAE,CAAC;AAgDZ,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,MAAM,CAAC;IACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC;KACD,MAAM,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { RuntimeEvent, Session } from "./index.js";
2
+ export interface ConversationMark {
3
+ id: string;
4
+ eventId: string;
5
+ sequence: number;
6
+ label: string;
7
+ }
8
+ /** A compact directory of user turns; independent of the loaded event window. */
9
+ export declare function conversationMessageIndex(events: RuntimeEvent[], conversation?: Session["conversation"]): ConversationMark[];
10
+ /** The immutable event log retains every variant; only the chosen path is rendered/sent. */
11
+ export declare function conversationEvents(events: RuntimeEvent[], conversation?: Session["conversation"]): RuntimeEvent[];
@@ -0,0 +1,38 @@
1
+ /** A compact directory of user turns; independent of the loaded event window. */
2
+ export function conversationMessageIndex(events, conversation) {
3
+ const path = conversationEvents(events, conversation);
4
+ const replaced = new Set(path.map((e) => e.payload?.replaceEventId));
5
+ const marks = new Map();
6
+ for (const event of path) {
7
+ const p = event.payload;
8
+ if (event.type !== "message" || p?.role !== "user" || replaced.has(event.id))
9
+ continue;
10
+ const text = typeof p.text === "string"
11
+ ? p.text
12
+ : typeof p.content === "string"
13
+ ? p.content
14
+ : Array.isArray(p.content)
15
+ ? p.content.map((part) => (typeof part?.text === "string" ? part.text : "")).join("\n")
16
+ : "";
17
+ if (!text && !p.attachments?.length)
18
+ continue;
19
+ const id = `message-${p.id ? `message:${p.id}` : event.id}`;
20
+ const previous = marks.get(id);
21
+ marks.set(id, {
22
+ id,
23
+ eventId: previous?.eventId ?? event.id,
24
+ sequence: previous?.sequence ?? event.sequence,
25
+ label: text.replace(/\s+/g, " ").trim().slice(0, 80) || "附件消息",
26
+ });
27
+ }
28
+ return [...marks.values()];
29
+ }
30
+ /** The immutable event log retains every variant; only the chosen path is rendered/sent. */
31
+ export function conversationEvents(events, conversation) {
32
+ if (!conversation)
33
+ return events;
34
+ const branch = conversation.branches.find((item) => item.id === conversation.activeId);
35
+ const prefix = new Set(branch?.prefixEventIds ?? []);
36
+ return events.filter((event) => prefix.has(event.id) || (event.conversationBranchId ?? "root") === conversation.activeId);
37
+ }
38
+ //# sourceMappingURL=conversation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation.js","sourceRoot":"","sources":["../src/conversation.ts"],"names":[],"mappings":"AASA,iFAAiF;AACjF,MAAM,UAAU,wBAAwB,CACtC,MAAsB,EACtB,YAAsC;IAEtC,MAAM,IAAI,GAAG,kBAAkB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACtD,MAAM,QAAQ,GAAG,IAAI,GAAG,CACtB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAE,CAAC,CAAC,OAAuC,EAAE,cAAc,CAAC,CAC5E,CAAC;IACF,MAAM,KAAK,GAAG,IAAI,GAAG,EAA4B,CAAC;IAClD,KAAK,MAAM,KAAK,IAAI,IAAI,EAAE,CAAC;QACzB,MAAM,CAAC,GAAG,KAAK,CAAC,OAMf,CAAC;QACF,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,EAAE,IAAI,KAAK,MAAM,IAAI,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YAAE,SAAS;QACvF,MAAM,IAAI,GACR,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ;YACxB,CAAC,CAAC,CAAC,CAAC,IAAI;YACR,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,KAAK,QAAQ;gBAC7B,CAAC,CAAC,CAAC,CAAC,OAAO;gBACX,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;oBACxB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,IAAI,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;oBACvF,CAAC,CAAC,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,MAAM;YAAE,SAAS;QAC9C,MAAM,EAAE,GAAG,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;QAC5D,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC/B,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE;YACZ,EAAE;YACF,OAAO,EAAE,QAAQ,EAAE,OAAO,IAAI,KAAK,CAAC,EAAE;YACtC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,IAAI,KAAK,CAAC,QAAQ;YAC9C,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,MAAM;SAC/D,CAAC,CAAC;IACL,CAAC;IACD,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;AAC7B,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,kBAAkB,CAAC,MAAsB,EAAE,YAAsC;IAC/F,IAAI,CAAC,YAAY;QAAE,OAAO,MAAM,CAAC;IACjC,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,YAAY,CAAC,QAAQ,CAAC,CAAC;IACvF,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,MAAM,EAAE,cAAc,IAAI,EAAE,CAAC,CAAC;IACrD,OAAO,MAAM,CAAC,MAAM,CAClB,CAAC,KAAK,EAAE,EAAE,CACR,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,oBAAoB,IAAI,MAAM,CAAC,KAAK,YAAY,CAAC,QAAQ,CAC3F,CAAC;AACJ,CAAC"}
@@ -0,0 +1,93 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Host-managed file. The display name is separate from the content-addressed
4
+ * storage location; uploads never choose a Host path.
5
+ */
6
+ export interface ManagedFile {
7
+ id: string;
8
+ sha256: string;
9
+ size: number;
10
+ mediaType: string;
11
+ displayName: string;
12
+ origin: "upload" | "artifact";
13
+ state: "uploading" | "available" | "deleted";
14
+ projectId: string | null;
15
+ sessionId: string | null;
16
+ goalId: string | null;
17
+ createdAt: string;
18
+ }
19
+ export interface UploadSession {
20
+ id: string;
21
+ displayName: string;
22
+ mediaType: string;
23
+ size: number;
24
+ sha256: string;
25
+ received: number;
26
+ projectId: string | null;
27
+ sessionId: string | null;
28
+ goalId: string | null;
29
+ state: "open" | "completed" | "cancelled";
30
+ fileId: string | null;
31
+ createdAt: string;
32
+ }
33
+ /**
34
+ * Immutable delivered result. Later edits to the source produce a new version;
35
+ * an artifact already handed over never changes.
36
+ */
37
+ export interface Artifact {
38
+ id: string;
39
+ fileId: string;
40
+ goalId: string | null;
41
+ sessionId: string | null;
42
+ title: string;
43
+ description: string;
44
+ version: number;
45
+ sha256: string;
46
+ size: number;
47
+ mediaType: string;
48
+ displayName: string;
49
+ /** Where the snapshot came from; null for inline content. */
50
+ source: {
51
+ workspaceId: string;
52
+ path: string;
53
+ } | null;
54
+ publishedBy: "model" | "user";
55
+ createdAt: string;
56
+ }
57
+ /**
58
+ * A file sent with a message. `delivery` records how the Host actually handed it to
59
+ * the harness: inline text, a native image input, or a reference to a Host file.
60
+ */
61
+ export interface MessageAttachment {
62
+ fileId: string;
63
+ displayName: string;
64
+ mediaType: string;
65
+ size: number;
66
+ sha256: string;
67
+ delivery?: "inline-text" | "image" | "file-reference";
68
+ /** Host path given to the harness for file references. */
69
+ path?: string;
70
+ /** Inline text was cut to the per-file limit. */
71
+ truncated?: boolean;
72
+ }
73
+ export declare const createUploadSchema: z.ZodObject<{
74
+ requestId: z.ZodString;
75
+ displayName: z.ZodString;
76
+ mediaType: z.ZodDefault<z.ZodString>;
77
+ size: z.ZodNumber;
78
+ sha256: z.ZodString;
79
+ projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ goalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ }, z.core.$strict>;
83
+ export declare const publishArtifactSchema: z.ZodObject<{
84
+ requestId: z.ZodString;
85
+ title: z.ZodString;
86
+ description: z.ZodDefault<z.ZodString>;
87
+ goalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ workspaceId: z.ZodOptional<z.ZodString>;
89
+ path: z.ZodOptional<z.ZodString>;
90
+ content: z.ZodOptional<z.ZodString>;
91
+ displayName: z.ZodOptional<z.ZodString>;
92
+ mediaType: z.ZodOptional<z.ZodString>;
93
+ }, z.core.$strict>;
@@ -0,0 +1,44 @@
1
+ import { z } from "zod";
2
+ const name = z
3
+ .string()
4
+ .trim()
5
+ .min(1)
6
+ .max(255)
7
+ .refine((v) => !/[\\/\0]/.test(v) && v !== "." && v !== "..", "文件名不能包含路径。");
8
+ export const createUploadSchema = z
9
+ .object({
10
+ requestId: z.string().uuid(),
11
+ displayName: name,
12
+ mediaType: z.string().trim().min(1).max(200).default("application/octet-stream"),
13
+ size: z.number().int().nonnegative(),
14
+ sha256: z.string().regex(/^[0-9a-f]{64}$/),
15
+ projectId: z.string().uuid().nullable().optional(),
16
+ sessionId: z.string().uuid().nullable().optional(),
17
+ goalId: z.string().uuid().nullable().optional(),
18
+ })
19
+ .strict();
20
+ export const publishArtifactSchema = z
21
+ .object({
22
+ requestId: z.string().uuid(),
23
+ title: z.string().trim().min(1).max(200),
24
+ description: z.string().trim().max(4000).default(""),
25
+ goalId: z.string().uuid().nullable().optional(),
26
+ /** Snapshot of a workspace file … */
27
+ workspaceId: z.string().uuid().optional(),
28
+ path: z.string().trim().min(1).max(1000).optional(),
29
+ /** … or inline text content (e.g. a report written without a working directory). */
30
+ content: z
31
+ .string()
32
+ .max(4 * 1024 * 1024)
33
+ .optional(),
34
+ displayName: name.optional(),
35
+ mediaType: z.string().trim().min(1).max(200).optional(),
36
+ })
37
+ .strict()
38
+ .refine((v) => (v.path !== undefined) !== (v.content !== undefined), {
39
+ message: "需要且只能提供工作区文件路径或内联内容之一。",
40
+ })
41
+ .refine((v) => v.content === undefined || Boolean(v.displayName), {
42
+ message: "内联内容需要文件名。",
43
+ });
44
+ //# sourceMappingURL=files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.js","sourceRoot":"","sources":["../src/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0ExB,MAAM,IAAI,GAAG,CAAC;KACX,MAAM,EAAE;KACR,IAAI,EAAE;KACN,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,GAAG,CAAC;KACR,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,YAAY,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,WAAW,EAAE,IAAI;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IAChF,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACpC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAClD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAClD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC;KACD,MAAM,EAAE,CAAC;AACZ,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KACnC,MAAM,CAAC;IACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACxC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACpD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC/C,qCAAqC;IACrC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IACnD,oFAAoF;IACpF,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;SACpB,QAAQ,EAAE;IACb,WAAW,EAAE,IAAI,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACxD,CAAC;KACD,MAAM,EAAE;KACR,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,KAAK,SAAS,CAAC,EAAE;IACnE,OAAO,EAAE,wBAAwB;CAClC,CAAC;KACD,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE;IAChE,OAAO,EAAE,YAAY;CACtB,CAAC,CAAC"}
@@ -0,0 +1,204 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * A Goal is one piece of acceptable work owned by a Kooyu main conversation.
4
+ * Native turns ending, or the model saying "done", never completes a goal:
5
+ * the model can only move it to awaiting-review; the user accepts it.
6
+ */
7
+ export declare const GOAL_STATUSES: readonly ["draft", "active", "blocked", "awaiting-review", "completed", "cancelled"];
8
+ export type GoalStatus = (typeof GOAL_STATUSES)[number];
9
+ export declare const VERIFICATION_STATUSES: readonly ["unverified", "passed", "failed", "not-applicable"];
10
+ export type VerificationStatus = (typeof VERIFICATION_STATUSES)[number];
11
+ /** Git state captured when a goal starts, so final changes can be attributed honestly. */
12
+ export interface GoalBaseline {
13
+ workspaceId: string;
14
+ rootPath: string;
15
+ capturedAt: string;
16
+ git: boolean;
17
+ head: string | null;
18
+ /** Files already dirty (staged/unstaged/untracked) when the goal started. */
19
+ dirty: {
20
+ path: string;
21
+ status: string;
22
+ sha256: string | null;
23
+ }[];
24
+ truncated: boolean;
25
+ error?: string;
26
+ }
27
+ export interface GoalChange {
28
+ path: string;
29
+ /**
30
+ * introduced: clean at baseline, changed since (agent or another writer in a shared tree);
31
+ * preexisting-modified: already dirty at baseline and changed again (attribution unknown).
32
+ */
33
+ attribution: "introduced" | "preexisting-modified";
34
+ status: string;
35
+ }
36
+ export interface GoalChangeReport {
37
+ workspaceId: string;
38
+ rootPath: string;
39
+ comparedTo: string | null;
40
+ changes: GoalChange[];
41
+ /** Files dirty at baseline and unchanged since; listed so they are not credited to the goal. */
42
+ preexistingUnchanged: number;
43
+ coverage: string;
44
+ error?: string;
45
+ }
46
+ export interface GoalResult {
47
+ summary: string;
48
+ deliverables: string[];
49
+ limitations: string[];
50
+ reportedAt: string;
51
+ reportedBy: "model" | "user";
52
+ changes?: GoalChangeReport[];
53
+ }
54
+ export interface GoalAcceptance {
55
+ actor: "user";
56
+ at: string;
57
+ verificationStatus: VerificationStatus;
58
+ remainingUncertainty: string | null;
59
+ }
60
+ export interface Goal {
61
+ id: string;
62
+ projectId: string | null;
63
+ controllerSessionId: string;
64
+ revision: number;
65
+ /** Increments when the description or acceptance criteria change; older checks no longer count. */
66
+ scopeRevision: number;
67
+ title: string;
68
+ description: string;
69
+ acceptanceCriteria: string[];
70
+ workspaceIds: string[];
71
+ sessionIds: string[];
72
+ status: GoalStatus;
73
+ blockedReason: string | null;
74
+ verificationStatus: VerificationStatus;
75
+ artifactIds: string[];
76
+ verificationIds: string[];
77
+ baselines: GoalBaseline[];
78
+ result: GoalResult | null;
79
+ acceptedBy: GoalAcceptance | null;
80
+ /** User takeover/cancellation facts; the goal itself is kept. */
81
+ notes: {
82
+ at: string;
83
+ actor: "user" | "model" | "host";
84
+ text: string;
85
+ }[];
86
+ createdAt: string;
87
+ updatedAt: string;
88
+ }
89
+ export declare const VERIFICATION_KINDS: readonly ["command", "test", "build", "review", "source-check", "manual", "other"];
90
+ export interface Verification {
91
+ id: string;
92
+ goalId: string;
93
+ goalRevision: number;
94
+ scopeRevision: number;
95
+ kind: (typeof VERIFICATION_KINDS)[number];
96
+ /** Command line or short description of the method. */
97
+ method: string;
98
+ /** Where the check ran (host + workspace path), null for attestations. */
99
+ location: string | null;
100
+ exitCode: number | null;
101
+ outcome: "passed" | "failed" | "inconclusive";
102
+ /** host: Kooyu executed it and recorded the real exit code. model/user: attestation. */
103
+ recordedBy: "host" | "model" | "user";
104
+ evidence: string;
105
+ durationMs: number | null;
106
+ timedOut?: boolean;
107
+ /** Hashes of files the check relied on, taken right after it ran. */
108
+ fileHashes?: {
109
+ path: string;
110
+ sha256: string | null;
111
+ }[];
112
+ createdAt: string;
113
+ }
114
+ export interface GoalHistoryEntry {
115
+ goalId: string;
116
+ revision: number;
117
+ status: GoalStatus;
118
+ verificationStatus: VerificationStatus;
119
+ actor: "user" | "model" | "host";
120
+ change: string;
121
+ at: string;
122
+ }
123
+ export declare const createGoalSchema: z.ZodObject<{
124
+ requestId: z.ZodString;
125
+ controllerSessionId: z.ZodString;
126
+ title: z.ZodString;
127
+ description: z.ZodDefault<z.ZodString>;
128
+ acceptanceCriteria: z.ZodDefault<z.ZodArray<z.ZodString>>;
129
+ workspaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
130
+ sessionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
131
+ status: z.ZodDefault<z.ZodEnum<{
132
+ active: "active";
133
+ draft: "draft";
134
+ }>>;
135
+ }, z.core.$strict>;
136
+ export declare const updateGoalSchema: z.ZodObject<{
137
+ requestId: z.ZodString;
138
+ expectedRevision: z.ZodNumber;
139
+ title: z.ZodOptional<z.ZodString>;
140
+ description: z.ZodOptional<z.ZodString>;
141
+ acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString>>;
142
+ status: z.ZodOptional<z.ZodEnum<{
143
+ blocked: "blocked";
144
+ active: "active";
145
+ draft: "draft";
146
+ }>>;
147
+ blockedReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ addSessionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
149
+ addWorkspaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
150
+ note: z.ZodOptional<z.ZodString>;
151
+ }, z.core.$strict>;
152
+ export declare const recordVerificationSchema: z.ZodObject<{
153
+ requestId: z.ZodString;
154
+ kind: z.ZodEnum<{
155
+ command: "command";
156
+ test: "test";
157
+ build: "build";
158
+ review: "review";
159
+ "source-check": "source-check";
160
+ manual: "manual";
161
+ other: "other";
162
+ }>;
163
+ method: z.ZodString;
164
+ outcome: z.ZodEnum<{
165
+ failed: "failed";
166
+ passed: "passed";
167
+ inconclusive: "inconclusive";
168
+ }>;
169
+ evidence: z.ZodDefault<z.ZodString>;
170
+ }, z.core.$strict>;
171
+ export declare const runCheckSchema: z.ZodObject<{
172
+ requestId: z.ZodString;
173
+ kind: z.ZodDefault<z.ZodEnum<{
174
+ command: "command";
175
+ test: "test";
176
+ build: "build";
177
+ }>>;
178
+ command: z.ZodString;
179
+ workspaceId: z.ZodOptional<z.ZodString>;
180
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
181
+ hashFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
182
+ }, z.core.$strict>;
183
+ export declare const completeGoalSchema: z.ZodObject<{
184
+ requestId: z.ZodString;
185
+ expectedRevision: z.ZodNumber;
186
+ summary: z.ZodString;
187
+ deliverables: z.ZodDefault<z.ZodArray<z.ZodString>>;
188
+ limitations: z.ZodDefault<z.ZodArray<z.ZodString>>;
189
+ }, z.core.$strict>;
190
+ export declare const reviewGoalSchema: z.ZodObject<{
191
+ requestId: z.ZodString;
192
+ expectedRevision: z.ZodNumber;
193
+ decision: z.ZodEnum<{
194
+ "not-applicable": "not-applicable";
195
+ accept: "accept";
196
+ "request-changes": "request-changes";
197
+ cancel: "cancel";
198
+ }>;
199
+ note: z.ZodOptional<z.ZodString>;
200
+ remainingUncertainty: z.ZodOptional<z.ZodString>;
201
+ stopSessions: z.ZodOptional<z.ZodBoolean>;
202
+ }, z.core.$strict>;
203
+ export type CreateGoal = z.infer<typeof createGoalSchema>;
204
+ export type UpdateGoal = z.infer<typeof updateGoalSchema>;