@nervekit/desktop 0.11.0 → 0.13.0

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 (681) hide show
  1. package/README.md +166 -135
  2. package/dist/app/run-runtime-recovery.d.ts +1 -0
  3. package/dist/app/run-runtime-recovery.d.ts.map +1 -1
  4. package/dist/app/run-runtime-recovery.js +23 -1
  5. package/dist/app/run-runtime-recovery.js.map +1 -1
  6. package/dist/app/startup-sequence.d.ts +28 -0
  7. package/dist/app/startup-sequence.d.ts.map +1 -0
  8. package/dist/app/startup-sequence.js +46 -0
  9. package/dist/app/startup-sequence.js.map +1 -0
  10. package/dist/main.js +56 -31
  11. package/dist/main.js.map +1 -1
  12. package/dist/settings/desktop-settings.d.ts +2 -1
  13. package/dist/settings/desktop-settings.d.ts.map +1 -1
  14. package/dist/settings/desktop-settings.js +7 -3
  15. package/dist/settings/desktop-settings.js.map +1 -1
  16. package/dist/window/initial-zoom.d.ts +3 -0
  17. package/dist/window/initial-zoom.d.ts.map +1 -0
  18. package/dist/window/initial-zoom.js +9 -0
  19. package/dist/window/initial-zoom.js.map +1 -0
  20. package/node_modules/@nervekit/contracts/dist/domains/agents/agent.operations.schema.d.ts +1 -1
  21. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.d.ts +2 -1
  22. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.d.ts.map +1 -1
  23. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.events.schema.d.ts.map +1 -1
  24. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.events.schema.js +5 -1
  25. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.events.schema.js.map +1 -1
  26. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.js +15 -10
  27. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.js.map +1 -1
  28. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.operations.schema.d.ts +4 -0
  29. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.operations.schema.d.ts.map +1 -1
  30. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.operations.schema.js +1 -0
  31. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.operations.schema.js.map +1 -1
  32. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.schema.d.ts +28 -2
  33. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.schema.d.ts.map +1 -1
  34. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.schema.js +17 -2
  35. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.schema.js.map +1 -1
  36. package/node_modules/@nervekit/contracts/dist/domains/events/bounded-public-data.schema.d.ts +2 -0
  37. package/node_modules/@nervekit/contracts/dist/domains/events/bounded-public-data.schema.d.ts.map +1 -1
  38. package/node_modules/@nervekit/contracts/dist/domains/events/bounded-public-data.schema.js +5 -5
  39. package/node_modules/@nervekit/contracts/dist/domains/events/bounded-public-data.schema.js.map +1 -1
  40. package/node_modules/@nervekit/contracts/dist/domains/protocol/http.schema.d.ts +4 -0
  41. package/node_modules/@nervekit/contracts/dist/domains/protocol/http.schema.d.ts.map +1 -1
  42. package/node_modules/@nervekit/contracts/dist/domains/protocol/messages.schema.d.ts +2 -0
  43. package/node_modules/@nervekit/contracts/dist/domains/protocol/messages.schema.d.ts.map +1 -1
  44. package/node_modules/@nervekit/contracts/dist/domains/protocol/operation-catalog.schema.d.ts +24 -5
  45. package/node_modules/@nervekit/contracts/dist/domains/protocol/operation-catalog.schema.d.ts.map +1 -1
  46. package/node_modules/@nervekit/contracts/dist/domains/settings/settings.operations.schema.d.ts +12 -3
  47. package/node_modules/@nervekit/contracts/dist/domains/settings/settings.operations.schema.d.ts.map +1 -1
  48. package/node_modules/@nervekit/contracts/dist/domains/settings/settings.schema.d.ts +8 -2
  49. package/node_modules/@nervekit/contracts/dist/domains/settings/settings.schema.d.ts.map +1 -1
  50. package/node_modules/@nervekit/contracts/dist/domains/settings/settings.schema.js +13 -2
  51. package/node_modules/@nervekit/contracts/dist/domains/settings/settings.schema.js.map +1 -1
  52. package/node_modules/@nervekit/contracts/dist/domains/skills/skill.operations.schema.d.ts +5 -0
  53. package/node_modules/@nervekit/contracts/dist/domains/skills/skill.operations.schema.d.ts.map +1 -1
  54. package/node_modules/@nervekit/contracts/dist/domains/skills/skill.schema.d.ts +5 -0
  55. package/node_modules/@nervekit/contracts/dist/domains/skills/skill.schema.d.ts.map +1 -1
  56. package/node_modules/@nervekit/contracts/dist/domains/skills/skill.schema.js +1 -0
  57. package/node_modules/@nervekit/contracts/dist/domains/skills/skill.schema.js.map +1 -1
  58. package/node_modules/@nervekit/contracts/dist/domains/status/status.schema.d.ts +0 -2
  59. package/node_modules/@nervekit/contracts/dist/domains/status/status.schema.d.ts.map +1 -1
  60. package/node_modules/@nervekit/contracts/dist/domains/status/status.schema.js +1 -8
  61. package/node_modules/@nervekit/contracts/dist/domains/status/status.schema.js.map +1 -1
  62. package/node_modules/@nervekit/contracts/dist/domains/tools/records.schema.d.ts +5 -5
  63. package/node_modules/@nervekit/contracts/dist/domains/tools/records.schema.js +2 -2
  64. package/node_modules/@nervekit/contracts/dist/domains/tools/records.schema.js.map +1 -1
  65. package/node_modules/@nervekit/contracts/dist/domains/tools/tool.operations.schema.d.ts +1 -1
  66. package/node_modules/@nervekit/contracts/package.json +1 -1
  67. package/node_modules/@nervekit/harness/dist/{agent.d.ts → agent/agent.d.ts} +2 -2
  68. package/node_modules/@nervekit/harness/dist/agent/agent.d.ts.map +1 -0
  69. package/node_modules/@nervekit/harness/dist/{agent.js → agent/agent.js} +2 -2
  70. package/node_modules/@nervekit/harness/dist/agent/agent.js.map +1 -0
  71. package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/agent-loop.d.ts +1 -1
  72. package/node_modules/@nervekit/harness/dist/agent/loop/agent-loop.d.ts.map +1 -0
  73. package/node_modules/@nervekit/harness/dist/agent/loop/agent-loop.js.map +1 -0
  74. package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/events.d.ts +1 -1
  75. package/node_modules/@nervekit/harness/dist/agent/loop/events.d.ts.map +1 -0
  76. package/node_modules/@nervekit/harness/dist/agent/loop/events.js.map +1 -0
  77. package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/stream-assistant.d.ts +1 -1
  78. package/node_modules/@nervekit/harness/dist/agent/loop/stream-assistant.d.ts.map +1 -0
  79. package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/stream-assistant.js +2 -2
  80. package/node_modules/@nervekit/harness/dist/agent/loop/stream-assistant.js.map +1 -0
  81. package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/tool-execution.d.ts +1 -1
  82. package/node_modules/@nervekit/harness/dist/agent/loop/tool-execution.d.ts.map +1 -0
  83. package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/tool-execution.js +1 -1
  84. package/node_modules/@nervekit/harness/dist/agent/loop/tool-execution.js.map +1 -0
  85. package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/turn-loop.d.ts +1 -1
  86. package/node_modules/@nervekit/harness/dist/agent/loop/turn-loop.d.ts.map +1 -0
  87. package/node_modules/@nervekit/harness/dist/agent/loop/turn-loop.js.map +1 -0
  88. package/node_modules/@nervekit/harness/dist/{suspension.d.ts → agent/suspension.d.ts} +1 -1
  89. package/node_modules/@nervekit/harness/dist/agent/suspension.d.ts.map +1 -0
  90. package/node_modules/@nervekit/harness/dist/agent/suspension.js.map +1 -0
  91. package/node_modules/@nervekit/harness/dist/{tool-adapter.d.ts → agent/tool-adapter.d.ts} +1 -1
  92. package/node_modules/@nervekit/harness/dist/agent/tool-adapter.d.ts.map +1 -0
  93. package/node_modules/@nervekit/harness/dist/agent/tool-adapter.js.map +1 -0
  94. package/node_modules/@nervekit/harness/dist/agent/types/agent.d.ts +83 -0
  95. package/node_modules/@nervekit/harness/dist/agent/types/agent.d.ts.map +1 -0
  96. package/node_modules/@nervekit/harness/dist/agent/types/agent.js +2 -0
  97. package/node_modules/@nervekit/harness/dist/agent/types/agent.js.map +1 -0
  98. package/node_modules/@nervekit/harness/dist/agent/types/common.d.ts +26 -0
  99. package/node_modules/@nervekit/harness/dist/agent/types/common.d.ts.map +1 -0
  100. package/node_modules/@nervekit/harness/dist/agent/types/common.js +2 -0
  101. package/node_modules/@nervekit/harness/dist/agent/types/common.js.map +1 -0
  102. package/node_modules/@nervekit/harness/dist/agent/types/index.d.ts +6 -0
  103. package/node_modules/@nervekit/harness/dist/agent/types/index.d.ts.map +1 -0
  104. package/node_modules/@nervekit/harness/dist/agent/types/index.js +6 -0
  105. package/node_modules/@nervekit/harness/dist/agent/types/index.js.map +1 -0
  106. package/node_modules/@nervekit/harness/dist/{types.d.ts → agent/types/loop.d.ts} +5 -197
  107. package/node_modules/@nervekit/harness/dist/agent/types/loop.d.ts.map +1 -0
  108. package/node_modules/@nervekit/harness/dist/agent/types/loop.js +2 -0
  109. package/node_modules/@nervekit/harness/dist/agent/types/loop.js.map +1 -0
  110. package/node_modules/@nervekit/harness/dist/agent/types/messages.d.ts +24 -0
  111. package/node_modules/@nervekit/harness/dist/agent/types/messages.d.ts.map +1 -0
  112. package/node_modules/@nervekit/harness/dist/agent/types/messages.js +2 -0
  113. package/node_modules/@nervekit/harness/dist/agent/types/messages.js.map +1 -0
  114. package/node_modules/@nervekit/harness/dist/agent/types/tools.d.ts +74 -0
  115. package/node_modules/@nervekit/harness/dist/agent/types/tools.d.ts.map +1 -0
  116. package/node_modules/@nervekit/harness/dist/agent/types/tools.js +2 -0
  117. package/node_modules/@nervekit/harness/dist/agent/types/tools.js.map +1 -0
  118. package/node_modules/@nervekit/harness/dist/harness/agent-harness.d.ts +6 -5
  119. package/node_modules/@nervekit/harness/dist/harness/agent-harness.d.ts.map +1 -1
  120. package/node_modules/@nervekit/harness/dist/harness/agent-harness.js +67 -191
  121. package/node_modules/@nervekit/harness/dist/harness/agent-harness.js.map +1 -1
  122. package/node_modules/@nervekit/harness/dist/harness/compaction/branch-summarization.d.ts +2 -2
  123. package/node_modules/@nervekit/harness/dist/harness/compaction/branch-summarization.d.ts.map +1 -1
  124. package/node_modules/@nervekit/harness/dist/harness/compaction/branch-summarization.js +1 -1
  125. package/node_modules/@nervekit/harness/dist/harness/compaction/branch-summarization.js.map +1 -1
  126. package/node_modules/@nervekit/harness/dist/harness/compaction/compaction.d.ts +1 -1
  127. package/node_modules/@nervekit/harness/dist/harness/compaction/compaction.d.ts.map +1 -1
  128. package/node_modules/@nervekit/harness/dist/harness/compaction/compaction.js +1 -1
  129. package/node_modules/@nervekit/harness/dist/harness/compaction/compaction.js.map +1 -1
  130. package/node_modules/@nervekit/harness/dist/harness/compaction/types.d.ts +1 -1
  131. package/node_modules/@nervekit/harness/dist/harness/compaction/types.d.ts.map +1 -1
  132. package/node_modules/@nervekit/harness/dist/harness/compaction/usage.d.ts +1 -1
  133. package/node_modules/@nervekit/harness/dist/harness/compaction/usage.d.ts.map +1 -1
  134. package/node_modules/@nervekit/harness/dist/harness/compaction/utils.d.ts +1 -1
  135. package/node_modules/@nervekit/harness/dist/harness/compaction/utils.d.ts.map +1 -1
  136. package/node_modules/@nervekit/harness/dist/harness/{harness-configuration-methods.d.ts → configuration/operations.d.ts} +4 -4
  137. package/node_modules/@nervekit/harness/dist/harness/configuration/operations.d.ts.map +1 -0
  138. package/node_modules/@nervekit/harness/dist/harness/{harness-configuration-methods.js → configuration/operations.js} +5 -5
  139. package/node_modules/@nervekit/harness/dist/harness/configuration/operations.js.map +1 -0
  140. package/node_modules/@nervekit/harness/dist/harness/{options.d.ts → configuration/options.d.ts} +3 -3
  141. package/node_modules/@nervekit/harness/dist/harness/configuration/options.d.ts.map +1 -0
  142. package/node_modules/@nervekit/harness/dist/harness/configuration/options.js.map +1 -0
  143. package/node_modules/@nervekit/harness/dist/harness/configuration/stream-options.d.ts.map +1 -0
  144. package/node_modules/@nervekit/harness/dist/harness/configuration/stream-options.js.map +1 -0
  145. package/node_modules/@nervekit/harness/dist/harness/{configuration.d.ts → configuration/tools.d.ts} +3 -3
  146. package/node_modules/@nervekit/harness/dist/harness/configuration/tools.d.ts.map +1 -0
  147. package/node_modules/@nervekit/harness/dist/harness/{configuration.js → configuration/tools.js} +2 -2
  148. package/node_modules/@nervekit/harness/dist/harness/configuration/tools.js.map +1 -0
  149. package/node_modules/@nervekit/harness/dist/harness/{turn-state.d.ts → configuration/turn-state.d.ts} +3 -3
  150. package/node_modules/@nervekit/harness/dist/harness/configuration/turn-state.d.ts.map +1 -0
  151. package/node_modules/@nervekit/harness/dist/harness/configuration/turn-state.js.map +1 -0
  152. package/node_modules/@nervekit/harness/dist/harness/conversation/context.d.ts +1 -1
  153. package/node_modules/@nervekit/harness/dist/harness/conversation/context.d.ts.map +1 -1
  154. package/node_modules/@nervekit/harness/dist/harness/conversation/conversation.d.ts +1 -1
  155. package/node_modules/@nervekit/harness/dist/harness/conversation/conversation.d.ts.map +1 -1
  156. package/node_modules/@nervekit/harness/dist/harness/conversation/entries.d.ts +1 -1
  157. package/node_modules/@nervekit/harness/dist/harness/conversation/entries.d.ts.map +1 -1
  158. package/node_modules/@nervekit/harness/dist/harness/conversation/jsonl-repo.d.ts +1 -1
  159. package/node_modules/@nervekit/harness/dist/harness/conversation/jsonl-repo.d.ts.map +1 -1
  160. package/node_modules/@nervekit/harness/dist/harness/conversation/jsonl-storage.d.ts +1 -1
  161. package/node_modules/@nervekit/harness/dist/harness/conversation/jsonl-storage.d.ts.map +1 -1
  162. package/node_modules/@nervekit/harness/dist/harness/environment/nodejs.d.ts.map +1 -0
  163. package/node_modules/@nervekit/harness/dist/harness/environment/nodejs.js.map +1 -0
  164. package/node_modules/@nervekit/harness/dist/harness/environment/types.d.ts.map +1 -0
  165. package/node_modules/@nervekit/harness/dist/harness/environment/types.js.map +1 -0
  166. package/node_modules/@nervekit/harness/dist/harness/{harness-events.d.ts → lifecycle/event-hub.d.ts} +4 -4
  167. package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-hub.d.ts.map +1 -0
  168. package/node_modules/@nervekit/harness/dist/harness/{harness-events.js → lifecycle/event-hub.js} +4 -4
  169. package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-hub.js.map +1 -0
  170. package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-processing.d.ts +26 -0
  171. package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-processing.d.ts.map +1 -0
  172. package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-processing.js +52 -0
  173. package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-processing.js.map +1 -0
  174. package/node_modules/@nervekit/harness/dist/harness/{events.d.ts → lifecycle/events.d.ts} +3 -3
  175. package/node_modules/@nervekit/harness/dist/harness/lifecycle/events.d.ts.map +1 -0
  176. package/node_modules/@nervekit/harness/dist/harness/{events.js.map → lifecycle/events.js.map} +1 -1
  177. package/node_modules/@nervekit/harness/dist/harness/{harness-maintenance.d.ts → maintenance/operations.d.ts} +5 -5
  178. package/node_modules/@nervekit/harness/dist/harness/maintenance/operations.d.ts.map +1 -0
  179. package/node_modules/@nervekit/harness/dist/harness/{harness-maintenance.js → maintenance/operations.js} +6 -6
  180. package/node_modules/@nervekit/harness/dist/harness/maintenance/operations.js.map +1 -0
  181. package/node_modules/@nervekit/harness/dist/harness/messages.d.ts +2 -2
  182. package/node_modules/@nervekit/harness/dist/harness/messages.d.ts.map +1 -1
  183. package/node_modules/@nervekit/harness/dist/harness/{utils/env-path.d.ts → path-utils.d.ts} +1 -1
  184. package/node_modules/@nervekit/harness/dist/harness/path-utils.d.ts.map +1 -0
  185. package/node_modules/@nervekit/harness/dist/harness/{utils/env-path.js → path-utils.js} +1 -1
  186. package/node_modules/@nervekit/harness/dist/harness/path-utils.js.map +1 -0
  187. package/node_modules/@nervekit/harness/dist/harness/{harness-queue-coalescing.d.ts → queue/coalescing.d.ts} +3 -3
  188. package/node_modules/@nervekit/harness/dist/harness/queue/coalescing.d.ts.map +1 -0
  189. package/node_modules/@nervekit/harness/dist/harness/{harness-queue-coalescing.js → queue/coalescing.js} +2 -2
  190. package/node_modules/@nervekit/harness/dist/harness/queue/coalescing.js.map +1 -0
  191. package/node_modules/@nervekit/harness/dist/harness/{harness-queue-methods.d.ts → queue/operations.d.ts} +14 -4
  192. package/node_modules/@nervekit/harness/dist/harness/queue/operations.d.ts.map +1 -0
  193. package/node_modules/@nervekit/harness/dist/harness/{harness-queue-methods.js → queue/operations.js} +35 -5
  194. package/node_modules/@nervekit/harness/dist/harness/queue/operations.js.map +1 -0
  195. package/node_modules/@nervekit/harness/dist/harness/{harness-invocations.d.ts → resources/invocations.d.ts} +4 -4
  196. package/node_modules/@nervekit/harness/dist/harness/resources/invocations.d.ts.map +1 -0
  197. package/node_modules/@nervekit/harness/dist/harness/{harness-invocations.js → resources/invocations.js} +3 -3
  198. package/node_modules/@nervekit/harness/dist/harness/resources/invocations.js.map +1 -0
  199. package/node_modules/@nervekit/harness/dist/harness/{prompt-templates.d.ts → resources/prompt-templates.d.ts} +2 -2
  200. package/node_modules/@nervekit/harness/dist/harness/resources/prompt-templates.d.ts.map +1 -0
  201. package/node_modules/@nervekit/harness/dist/harness/{prompt-templates.js → resources/prompt-templates.js} +2 -2
  202. package/node_modules/@nervekit/harness/dist/harness/resources/prompt-templates.js.map +1 -0
  203. package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/format.d.ts +1 -1
  204. package/node_modules/@nervekit/harness/dist/harness/resources/skills/format.d.ts.map +1 -0
  205. package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/format.js +1 -1
  206. package/node_modules/@nervekit/harness/dist/harness/resources/skills/format.js.map +1 -0
  207. package/node_modules/@nervekit/harness/dist/harness/resources/skills/index.d.ts.map +1 -0
  208. package/node_modules/@nervekit/harness/dist/harness/resources/skills/index.js.map +1 -0
  209. package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/loader.d.ts +2 -2
  210. package/node_modules/@nervekit/harness/dist/harness/resources/skills/loader.d.ts.map +1 -0
  211. package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/loader.js +1 -1
  212. package/node_modules/@nervekit/harness/dist/harness/resources/skills/loader.js.map +1 -0
  213. package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/parser.d.ts +1 -1
  214. package/node_modules/@nervekit/harness/dist/harness/resources/skills/parser.d.ts.map +1 -0
  215. package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/parser.js +1 -1
  216. package/node_modules/@nervekit/harness/dist/harness/resources/skills/parser.js.map +1 -0
  217. package/node_modules/@nervekit/harness/dist/harness/resources/skills/validation.d.ts.map +1 -0
  218. package/node_modules/@nervekit/harness/dist/harness/resources/skills/validation.js.map +1 -0
  219. package/node_modules/@nervekit/harness/dist/harness/resources/system-prompt.d.ts.map +1 -0
  220. package/node_modules/@nervekit/harness/dist/harness/resources/system-prompt.js.map +1 -0
  221. package/node_modules/@nervekit/harness/dist/harness/{harness-continuation.d.ts → run/continuation.d.ts} +4 -4
  222. package/node_modules/@nervekit/harness/dist/harness/run/continuation.d.ts.map +1 -0
  223. package/node_modules/@nervekit/harness/dist/harness/{harness-continuation.js → run/continuation.js} +6 -6
  224. package/node_modules/@nervekit/harness/dist/harness/run/continuation.js.map +1 -0
  225. package/node_modules/@nervekit/harness/dist/harness/{conversation-writes.d.ts → run/conversation-writes.d.ts} +3 -3
  226. package/node_modules/@nervekit/harness/dist/harness/run/conversation-writes.d.ts.map +1 -0
  227. package/node_modules/@nervekit/harness/dist/harness/run/conversation-writes.js.map +1 -0
  228. package/node_modules/@nervekit/harness/dist/harness/run/execution.d.ts +42 -0
  229. package/node_modules/@nervekit/harness/dist/harness/run/execution.d.ts.map +1 -0
  230. package/node_modules/@nervekit/harness/dist/harness/run/execution.js +118 -0
  231. package/node_modules/@nervekit/harness/dist/harness/run/execution.js.map +1 -0
  232. package/node_modules/@nervekit/harness/dist/harness/run/messages.d.ts +1 -1
  233. package/node_modules/@nervekit/harness/dist/harness/run/messages.d.ts.map +1 -1
  234. package/node_modules/@nervekit/harness/dist/index.d.ts +22 -13
  235. package/node_modules/@nervekit/harness/dist/index.d.ts.map +1 -1
  236. package/node_modules/@nervekit/harness/dist/index.js +22 -13
  237. package/node_modules/@nervekit/harness/dist/index.js.map +1 -1
  238. package/node_modules/@nervekit/harness/dist/models/image-normalization.d.ts.map +1 -0
  239. package/node_modules/@nervekit/harness/dist/models/image-normalization.js.map +1 -0
  240. package/node_modules/@nervekit/harness/dist/models/prompt-stream.d.ts +4 -0
  241. package/node_modules/@nervekit/harness/dist/models/prompt-stream.d.ts.map +1 -0
  242. package/node_modules/@nervekit/harness/dist/models/prompt-stream.js +23 -0
  243. package/node_modules/@nervekit/harness/dist/models/prompt-stream.js.map +1 -0
  244. package/node_modules/@nervekit/harness/dist/{pi-ai-models.d.ts → models/provider-registry.d.ts} +1 -1
  245. package/node_modules/@nervekit/harness/dist/models/provider-registry.d.ts.map +1 -0
  246. package/node_modules/@nervekit/harness/dist/{pi-ai-models.js → models/provider-registry.js} +1 -1
  247. package/node_modules/@nervekit/harness/dist/models/provider-registry.js.map +1 -0
  248. package/node_modules/@nervekit/harness/dist/models/resolution.d.ts +17 -0
  249. package/node_modules/@nervekit/harness/dist/models/resolution.d.ts.map +1 -0
  250. package/node_modules/@nervekit/harness/dist/{runtime.js → models/resolution.js} +5 -74
  251. package/node_modules/@nervekit/harness/dist/models/resolution.js.map +1 -0
  252. package/node_modules/@nervekit/harness/dist/models/scripted-provider.d.ts +10 -0
  253. package/node_modules/@nervekit/harness/dist/models/scripted-provider.d.ts.map +1 -0
  254. package/node_modules/@nervekit/harness/dist/models/scripted-provider.js +55 -0
  255. package/node_modules/@nervekit/harness/dist/models/scripted-provider.js.map +1 -0
  256. package/node_modules/@nervekit/harness/dist/{runtime.d.ts → models/types.d.ts} +3 -23
  257. package/node_modules/@nervekit/harness/dist/models/types.d.ts.map +1 -0
  258. package/node_modules/@nervekit/harness/dist/{harness/env → models}/types.js.map +1 -1
  259. package/node_modules/@nervekit/harness/dist/node.d.ts +1 -1
  260. package/node_modules/@nervekit/harness/dist/node.d.ts.map +1 -1
  261. package/node_modules/@nervekit/harness/dist/node.js +1 -1
  262. package/node_modules/@nervekit/harness/dist/node.js.map +1 -1
  263. package/node_modules/@nervekit/harness/dist/{proxy.d.ts → transport/proxy.d.ts} +1 -1
  264. package/node_modules/@nervekit/harness/dist/transport/proxy.d.ts.map +1 -0
  265. package/node_modules/@nervekit/harness/dist/transport/proxy.js.map +1 -0
  266. package/node_modules/@nervekit/harness/package.json +3 -3
  267. package/node_modules/@nervekit/host-runtime/dist/run-unit-of-work.d.ts.map +1 -1
  268. package/node_modules/@nervekit/host-runtime/dist/run-unit-of-work.js +18 -1
  269. package/node_modules/@nervekit/host-runtime/dist/run-unit-of-work.js.map +1 -1
  270. package/node_modules/@nervekit/host-runtime/dist/task-service.d.ts +1 -2
  271. package/node_modules/@nervekit/host-runtime/dist/task-service.d.ts.map +1 -1
  272. package/node_modules/@nervekit/host-runtime/dist/task-service.js +21 -6
  273. package/node_modules/@nervekit/host-runtime/dist/task-service.js.map +1 -1
  274. package/node_modules/@nervekit/host-runtime/package.json +4 -4
  275. package/node_modules/@nervekit/protocol/package.json +2 -2
  276. package/node_modules/@nervekit/tools/dist/catalog/core/python.tools.d.ts +1 -1
  277. package/node_modules/@nervekit/tools/dist/catalog/core/python.tools.js +6 -6
  278. package/node_modules/@nervekit/tools/dist/catalog/core/python.tools.js.map +1 -1
  279. package/node_modules/@nervekit/tools/dist/catalog/core/shell.tools.d.ts +1 -0
  280. package/node_modules/@nervekit/tools/dist/catalog/core/shell.tools.d.ts.map +1 -1
  281. package/node_modules/@nervekit/tools/dist/catalog/core/shell.tools.js +3 -0
  282. package/node_modules/@nervekit/tools/dist/catalog/core/shell.tools.js.map +1 -1
  283. package/node_modules/@nervekit/tools/dist/execution/common/command-cwd.d.ts +2 -0
  284. package/node_modules/@nervekit/tools/dist/execution/common/command-cwd.d.ts.map +1 -0
  285. package/node_modules/@nervekit/tools/dist/execution/common/command-cwd.js +23 -0
  286. package/node_modules/@nervekit/tools/dist/execution/common/command-cwd.js.map +1 -0
  287. package/node_modules/@nervekit/tools/dist/execution/common/html-to-markdown.worker.d.ts +2 -0
  288. package/node_modules/@nervekit/tools/dist/execution/common/html-to-markdown.worker.d.ts.map +1 -0
  289. package/node_modules/@nervekit/tools/dist/execution/common/html-to-markdown.worker.js +59 -0
  290. package/node_modules/@nervekit/tools/dist/execution/common/html-to-markdown.worker.js.map +1 -0
  291. package/node_modules/@nervekit/tools/dist/execution/common/isolated-html-to-markdown.d.ts +17 -0
  292. package/node_modules/@nervekit/tools/dist/execution/common/isolated-html-to-markdown.d.ts.map +1 -0
  293. package/node_modules/@nervekit/tools/dist/execution/common/isolated-html-to-markdown.js +162 -0
  294. package/node_modules/@nervekit/tools/dist/execution/common/isolated-html-to-markdown.js.map +1 -0
  295. package/node_modules/@nervekit/tools/dist/execution/common/live-output.d.ts +15 -0
  296. package/node_modules/@nervekit/tools/dist/execution/common/live-output.d.ts.map +1 -0
  297. package/node_modules/@nervekit/tools/dist/execution/common/live-output.js +47 -0
  298. package/node_modules/@nervekit/tools/dist/execution/common/live-output.js.map +1 -0
  299. package/node_modules/@nervekit/tools/dist/execution/common/output-budget.d.ts +5 -1
  300. package/node_modules/@nervekit/tools/dist/execution/common/output-budget.d.ts.map +1 -1
  301. package/node_modules/@nervekit/tools/dist/execution/common/output-budget.js +24 -10
  302. package/node_modules/@nervekit/tools/dist/execution/common/output-budget.js.map +1 -1
  303. package/node_modules/@nervekit/tools/dist/execution/common/process-result.js +1 -1
  304. package/node_modules/@nervekit/tools/dist/execution/common/process-result.js.map +1 -1
  305. package/node_modules/@nervekit/tools/dist/execution/common/process-tree.d.ts +8 -2
  306. package/node_modules/@nervekit/tools/dist/execution/common/process-tree.d.ts.map +1 -1
  307. package/node_modules/@nervekit/tools/dist/execution/common/process-tree.js +63 -14
  308. package/node_modules/@nervekit/tools/dist/execution/common/process-tree.js.map +1 -1
  309. package/node_modules/@nervekit/tools/dist/execution/confluence/files.d.ts.map +1 -1
  310. package/node_modules/@nervekit/tools/dist/execution/confluence/files.js +2 -2
  311. package/node_modules/@nervekit/tools/dist/execution/confluence/files.js.map +1 -1
  312. package/node_modules/@nervekit/tools/dist/execution/confluence/markdown.d.ts +1 -1
  313. package/node_modules/@nervekit/tools/dist/execution/confluence/markdown.d.ts.map +1 -1
  314. package/node_modules/@nervekit/tools/dist/execution/confluence/markdown.js +6 -31
  315. package/node_modules/@nervekit/tools/dist/execution/confluence/markdown.js.map +1 -1
  316. package/node_modules/@nervekit/tools/dist/execution/filesystem/find.js +3 -2
  317. package/node_modules/@nervekit/tools/dist/execution/filesystem/find.js.map +1 -1
  318. package/node_modules/@nervekit/tools/dist/execution/index.d.ts +3 -1
  319. package/node_modules/@nervekit/tools/dist/execution/index.d.ts.map +1 -1
  320. package/node_modules/@nervekit/tools/dist/execution/index.js +3 -1
  321. package/node_modules/@nervekit/tools/dist/execution/index.js.map +1 -1
  322. package/node_modules/@nervekit/tools/dist/execution/python/python.d.ts.map +1 -1
  323. package/node_modules/@nervekit/tools/dist/execution/python/python.js +35 -29
  324. package/node_modules/@nervekit/tools/dist/execution/python/python.js.map +1 -1
  325. package/node_modules/@nervekit/tools/dist/execution/python/runtime.d.ts +1 -1
  326. package/node_modules/@nervekit/tools/dist/execution/python/runtime.d.ts.map +1 -1
  327. package/node_modules/@nervekit/tools/dist/execution/python/runtime.js +6 -29
  328. package/node_modules/@nervekit/tools/dist/execution/python/runtime.js.map +1 -1
  329. package/node_modules/@nervekit/tools/dist/execution/shell/bash.d.ts.map +1 -1
  330. package/node_modules/@nervekit/tools/dist/execution/shell/bash.js +30 -24
  331. package/node_modules/@nervekit/tools/dist/execution/shell/bash.js.map +1 -1
  332. package/node_modules/@nervekit/tools/dist/execution/web/web-fetch.d.ts.map +1 -1
  333. package/node_modules/@nervekit/tools/dist/execution/web/web-fetch.js +49 -4
  334. package/node_modules/@nervekit/tools/dist/execution/web/web-fetch.js.map +1 -1
  335. package/node_modules/@nervekit/tools/dist/git/git-branches.d.ts +7 -0
  336. package/node_modules/@nervekit/tools/dist/git/git-branches.d.ts.map +1 -1
  337. package/node_modules/@nervekit/tools/dist/git/git-branches.js +51 -52
  338. package/node_modules/@nervekit/tools/dist/git/git-branches.js.map +1 -1
  339. package/node_modules/@nervekit/tools/dist/git/git-command.d.ts.map +1 -1
  340. package/node_modules/@nervekit/tools/dist/git/git-command.js +1 -0
  341. package/node_modules/@nervekit/tools/dist/git/git-command.js.map +1 -1
  342. package/node_modules/@nervekit/tools/dist/git/git-github-service.d.ts +1 -0
  343. package/node_modules/@nervekit/tools/dist/git/git-github-service.d.ts.map +1 -1
  344. package/node_modules/@nervekit/tools/dist/git/git-github-service.js +1 -0
  345. package/node_modules/@nervekit/tools/dist/git/git-github-service.js.map +1 -1
  346. package/node_modules/@nervekit/tools/dist/git/git-observability.d.ts +21 -0
  347. package/node_modules/@nervekit/tools/dist/git/git-observability.d.ts.map +1 -0
  348. package/node_modules/@nervekit/tools/dist/git/git-observability.js +2 -0
  349. package/node_modules/@nervekit/tools/dist/git/git-observability.js.map +1 -0
  350. package/node_modules/@nervekit/tools/dist/git/git-overview.d.ts +6 -0
  351. package/node_modules/@nervekit/tools/dist/git/git-overview.d.ts.map +1 -0
  352. package/node_modules/@nervekit/tools/dist/git/git-overview.js +94 -0
  353. package/node_modules/@nervekit/tools/dist/git/git-overview.js.map +1 -0
  354. package/node_modules/@nervekit/tools/dist/git/git-repository-metadata.d.ts +21 -0
  355. package/node_modules/@nervekit/tools/dist/git/git-repository-metadata.d.ts.map +1 -0
  356. package/node_modules/@nervekit/tools/dist/git/git-repository-metadata.js +59 -0
  357. package/node_modules/@nervekit/tools/dist/git/git-repository-metadata.js.map +1 -0
  358. package/node_modules/@nervekit/tools/dist/git/git-service.d.ts +14 -5
  359. package/node_modules/@nervekit/tools/dist/git/git-service.d.ts.map +1 -1
  360. package/node_modules/@nervekit/tools/dist/git/git-service.js +97 -109
  361. package/node_modules/@nervekit/tools/dist/git/git-service.js.map +1 -1
  362. package/node_modules/@nervekit/tools/dist/index.d.ts +2 -1
  363. package/node_modules/@nervekit/tools/dist/index.d.ts.map +1 -1
  364. package/node_modules/@nervekit/tools/dist/index.js +2 -1
  365. package/node_modules/@nervekit/tools/dist/index.js.map +1 -1
  366. package/node_modules/@nervekit/tools/dist/runtime/dispatcher.js +3 -3
  367. package/node_modules/@nervekit/tools/dist/runtime/dispatcher.js.map +1 -1
  368. package/node_modules/@nervekit/tools/dist/runtime/types.d.ts +1 -1
  369. package/node_modules/@nervekit/tools/dist/runtime/types.d.ts.map +1 -1
  370. package/node_modules/@nervekit/tools/dist/runtime/types.js.map +1 -1
  371. package/node_modules/@nervekit/tools/dist/types.d.ts +2 -1
  372. package/node_modules/@nervekit/tools/dist/types.d.ts.map +1 -1
  373. package/node_modules/@nervekit/tools/package.json +2 -2
  374. package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.d.ts +2 -0
  375. package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.d.ts.map +1 -1
  376. package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.js +39 -2
  377. package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.js.map +1 -1
  378. package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.d.ts +1 -0
  379. package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.d.ts.map +1 -1
  380. package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.js +37 -5
  381. package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.js.map +1 -1
  382. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.d.ts +16 -0
  383. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.d.ts.map +1 -0
  384. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.js +137 -0
  385. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.js.map +1 -0
  386. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/resource-loader.d.ts +3 -1
  387. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/resource-loader.d.ts.map +1 -1
  388. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/resource-loader.js +11 -4
  389. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/resource-loader.js.map +1 -1
  390. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/auto-compaction-runner.d.ts +5 -0
  391. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/auto-compaction-runner.d.ts.map +1 -1
  392. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/auto-compaction-runner.js +10 -4
  393. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/auto-compaction-runner.js.map +1 -1
  394. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/subagent-runner.d.ts +3 -3
  395. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/subagent-runner.d.ts.map +1 -1
  396. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/subagent-runner.js +2 -5
  397. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/subagent-runner.js.map +1 -1
  398. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/system-prompt-builder.d.ts +3 -0
  399. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/system-prompt-builder.d.ts.map +1 -1
  400. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/system-prompt-builder.js +2 -0
  401. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/system-prompt-builder.js.map +1 -1
  402. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-agent-mechanics.d.ts +5 -1
  403. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-agent-mechanics.d.ts.map +1 -1
  404. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-agent-mechanics.js +8 -3
  405. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-agent-mechanics.js.map +1 -1
  406. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-harness-execution.d.ts.map +1 -1
  407. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-harness-execution.js +5 -2
  408. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-harness-execution.js.map +1 -1
  409. package/node_modules/@nervekit/workbench-server/dist/domains/auth/oauth-flow-manager.d.ts +1 -1
  410. package/node_modules/@nervekit/workbench-server/dist/domains/auth/oauth-flow-manager.d.ts.map +1 -1
  411. package/node_modules/@nervekit/workbench-server/dist/domains/auth/oauth-flow-manager.js +5 -5
  412. package/node_modules/@nervekit/workbench-server/dist/domains/auth/oauth-flow-manager.js.map +1 -1
  413. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-lifecycle.service.d.ts.map +1 -1
  414. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-lifecycle.service.js +5 -3
  415. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-lifecycle.service.js.map +1 -1
  416. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-service.d.ts.map +1 -1
  417. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-service.js +3 -3
  418. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-service.js.map +1 -1
  419. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation.repository.d.ts.map +1 -1
  420. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation.repository.js +5 -7
  421. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation.repository.js.map +1 -1
  422. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-service.d.ts +5 -1
  423. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-service.d.ts.map +1 -1
  424. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-service.js +210 -145
  425. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-service.js.map +1 -1
  426. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.d.ts +1 -0
  427. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.d.ts.map +1 -1
  428. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.js +12 -3
  429. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.js.map +1 -1
  430. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.d.ts.map +1 -1
  431. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.js +5 -2
  432. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.js.map +1 -1
  433. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-supervisor.js +4 -1
  434. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-supervisor.js.map +1 -1
  435. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.d.ts +4 -0
  436. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.d.ts.map +1 -1
  437. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.js +28 -7
  438. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.js.map +1 -1
  439. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service.d.ts +7 -3
  440. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service.d.ts.map +1 -1
  441. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service.js.map +1 -1
  442. package/node_modules/@nervekit/workbench-server/dist/domains/tools/agent-tool-adapter.js +1 -1
  443. package/node_modules/@nervekit/workbench-server/dist/domains/tools/agent-tool-adapter.js.map +1 -1
  444. package/node_modules/@nervekit/workbench-server/dist/domains/tools/live-tool-output-publisher.d.ts +17 -0
  445. package/node_modules/@nervekit/workbench-server/dist/domains/tools/live-tool-output-publisher.d.ts.map +1 -0
  446. package/node_modules/@nervekit/workbench-server/dist/domains/tools/live-tool-output-publisher.js +75 -0
  447. package/node_modules/@nervekit/workbench-server/dist/domains/tools/live-tool-output-publisher.js.map +1 -0
  448. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher-handlers.d.ts +1 -1
  449. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher-handlers.d.ts.map +1 -1
  450. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher-handlers.js +5 -31
  451. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher-handlers.js.map +1 -1
  452. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher.d.ts +5 -1
  453. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher.d.ts.map +1 -1
  454. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher.js +29 -15
  455. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher.js.map +1 -1
  456. package/node_modules/@nervekit/workbench-server/dist/domains/tools/policy.js +1 -1
  457. package/node_modules/@nervekit/workbench-server/dist/domains/tools/policy.js.map +1 -1
  458. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call-transcript-preview.d.ts.map +1 -1
  459. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call-transcript-preview.js +2 -1
  460. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call-transcript-preview.js.map +1 -1
  461. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call.repository.d.ts +17 -1
  462. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call.repository.d.ts.map +1 -1
  463. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call.repository.js +44 -4
  464. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call.repository.js.map +1 -1
  465. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-service.d.ts +2 -1
  466. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-service.d.ts.map +1 -1
  467. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-service.js +16 -0
  468. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-service.js.map +1 -1
  469. package/node_modules/@nervekit/workbench-server/dist/domains/usage/subscription-usage-service.d.ts +2 -0
  470. package/node_modules/@nervekit/workbench-server/dist/domains/usage/subscription-usage-service.d.ts.map +1 -1
  471. package/node_modules/@nervekit/workbench-server/dist/domains/usage/subscription-usage-service.js +9 -2
  472. package/node_modules/@nervekit/workbench-server/dist/domains/usage/subscription-usage-service.js.map +1 -1
  473. package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/logging.d.ts +1 -0
  474. package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/logging.d.ts.map +1 -1
  475. package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/logging.js +20 -4
  476. package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/logging.js.map +1 -1
  477. package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/log-migration.js +3 -3
  478. package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/log-migration.js.map +1 -1
  479. package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.d.ts +12 -0
  480. package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.d.ts.map +1 -1
  481. package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.js +74 -19
  482. package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.js.map +1 -1
  483. package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log.d.ts +9 -0
  484. package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log.d.ts.map +1 -1
  485. package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log.js +85 -62
  486. package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log.js.map +1 -1
  487. package/node_modules/@nervekit/workbench-server/dist/infrastructure/index-store/index-store.d.ts +2 -0
  488. package/node_modules/@nervekit/workbench-server/dist/infrastructure/index-store/index-store.d.ts.map +1 -1
  489. package/node_modules/@nervekit/workbench-server/dist/infrastructure/index-store/index-store.js +49 -0
  490. package/node_modules/@nervekit/workbench-server/dist/infrastructure/index-store/index-store.js.map +1 -1
  491. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/file-mutations.d.ts +20 -0
  492. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/file-mutations.d.ts.map +1 -0
  493. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/file-mutations.js +99 -0
  494. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/file-mutations.js.map +1 -0
  495. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/index.d.ts +1 -0
  496. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/index.d.ts.map +1 -1
  497. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/index.js +1 -0
  498. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/index.js.map +1 -1
  499. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/initialize.d.ts.map +1 -1
  500. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/initialize.js +43 -2
  501. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/initialize.js.map +1 -1
  502. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.d.ts +7 -3
  503. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.d.ts.map +1 -1
  504. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.js +84 -90
  505. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.js.map +1 -1
  506. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/legacy-home-migration.d.ts.map +1 -1
  507. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/legacy-home-migration.js +4 -3
  508. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/legacy-home-migration.js.map +1 -1
  509. package/node_modules/@nervekit/workbench-server/dist/main.js +32 -14
  510. package/node_modules/@nervekit/workbench-server/dist/main.js.map +1 -1
  511. package/node_modules/@nervekit/workbench-server/dist/protocol/file-idempotency-store.d.ts.map +1 -1
  512. package/node_modules/@nervekit/workbench-server/dist/protocol/file-idempotency-store.js +3 -2
  513. package/node_modules/@nervekit/workbench-server/dist/protocol/file-idempotency-store.js.map +1 -1
  514. package/node_modules/@nervekit/workbench-server/dist/protocol/http-dispatcher.d.ts.map +1 -1
  515. package/node_modules/@nervekit/workbench-server/dist/protocol/http-dispatcher.js +3 -11
  516. package/node_modules/@nervekit/workbench-server/dist/protocol/http-dispatcher.js.map +1 -1
  517. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handler-registry.d.ts +17 -0
  518. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handler-registry.d.ts.map +1 -0
  519. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handler-registry.js +54 -0
  520. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handler-registry.js.map +1 -0
  521. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/conversation-agent-method-handlers.d.ts +505 -0
  522. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/conversation-agent-method-handlers.d.ts.map +1 -0
  523. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/conversation-agent-method-handlers.js +88 -0
  524. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/conversation-agent-method-handlers.js.map +1 -0
  525. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/git-method-handlers.d.ts +433 -0
  526. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/git-method-handlers.d.ts.map +1 -0
  527. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/git-method-handlers.js +24 -0
  528. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/git-method-handlers.js.map +1 -0
  529. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/interaction-method-handlers.d.ts +400 -0
  530. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/interaction-method-handlers.d.ts.map +1 -0
  531. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/interaction-method-handlers.js +68 -0
  532. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/interaction-method-handlers.js.map +1 -0
  533. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/platform-method-handlers.d.ts +1099 -0
  534. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/platform-method-handlers.d.ts.map +1 -0
  535. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/platform-method-handlers.js +127 -0
  536. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/platform-method-handlers.js.map +1 -0
  537. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/project-task-method-handlers.d.ts +910 -0
  538. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/project-task-method-handlers.d.ts.map +1 -0
  539. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/project-task-method-handlers.js +82 -0
  540. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/project-task-method-handlers.js.map +1 -0
  541. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.d.ts +3 -1
  542. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.d.ts.map +1 -1
  543. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.js +18 -565
  544. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.js.map +1 -1
  545. package/node_modules/@nervekit/workbench-server/dist/routes/agent-routes.d.ts.map +1 -1
  546. package/node_modules/@nervekit/workbench-server/dist/routes/agent-routes.js +2 -0
  547. package/node_modules/@nervekit/workbench-server/dist/routes/agent-routes.js.map +1 -1
  548. package/node_modules/@nervekit/workbench-server/dist/routes/auth-routes.js +1 -1
  549. package/node_modules/@nervekit/workbench-server/dist/routes/auth-routes.js.map +1 -1
  550. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.d.ts +2 -0
  551. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.d.ts.map +1 -1
  552. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.js +24 -1
  553. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.js.map +1 -1
  554. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.d.ts +15 -2
  555. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.d.ts.map +1 -1
  556. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.js +74 -19
  557. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.js.map +1 -1
  558. package/node_modules/@nervekit/workbench-server/dist/web/assets/{dist-CzAenP9m.js → dist-CFWIYh0s.js} +1 -1
  559. package/node_modules/@nervekit/workbench-server/dist/web/assets/index-maZKRPqe.css +1 -0
  560. package/node_modules/@nervekit/workbench-server/dist/web/assets/index-uoIbQOdM.js +261 -0
  561. package/node_modules/@nervekit/workbench-server/dist/web/index.html +31 -2
  562. package/node_modules/@nervekit/workbench-server/dist/web/sw.js +1 -1
  563. package/node_modules/@nervekit/workbench-server/package.json +5 -5
  564. package/package.json +8 -8
  565. package/node_modules/@nervekit/harness/dist/agent-loop.d.ts +0 -2
  566. package/node_modules/@nervekit/harness/dist/agent-loop.d.ts.map +0 -1
  567. package/node_modules/@nervekit/harness/dist/agent-loop.js +0 -2
  568. package/node_modules/@nervekit/harness/dist/agent-loop.js.map +0 -1
  569. package/node_modules/@nervekit/harness/dist/agent.d.ts.map +0 -1
  570. package/node_modules/@nervekit/harness/dist/agent.js.map +0 -1
  571. package/node_modules/@nervekit/harness/dist/harness/configuration.d.ts.map +0 -1
  572. package/node_modules/@nervekit/harness/dist/harness/configuration.js.map +0 -1
  573. package/node_modules/@nervekit/harness/dist/harness/conversation-writes.d.ts.map +0 -1
  574. package/node_modules/@nervekit/harness/dist/harness/conversation-writes.js.map +0 -1
  575. package/node_modules/@nervekit/harness/dist/harness/env/nodejs.d.ts.map +0 -1
  576. package/node_modules/@nervekit/harness/dist/harness/env/nodejs.js.map +0 -1
  577. package/node_modules/@nervekit/harness/dist/harness/env/types.d.ts.map +0 -1
  578. package/node_modules/@nervekit/harness/dist/harness/events.d.ts.map +0 -1
  579. package/node_modules/@nervekit/harness/dist/harness/harness-configuration-methods.d.ts.map +0 -1
  580. package/node_modules/@nervekit/harness/dist/harness/harness-configuration-methods.js.map +0 -1
  581. package/node_modules/@nervekit/harness/dist/harness/harness-continuation.d.ts.map +0 -1
  582. package/node_modules/@nervekit/harness/dist/harness/harness-continuation.js.map +0 -1
  583. package/node_modules/@nervekit/harness/dist/harness/harness-events.d.ts.map +0 -1
  584. package/node_modules/@nervekit/harness/dist/harness/harness-events.js.map +0 -1
  585. package/node_modules/@nervekit/harness/dist/harness/harness-invocations.d.ts.map +0 -1
  586. package/node_modules/@nervekit/harness/dist/harness/harness-invocations.js.map +0 -1
  587. package/node_modules/@nervekit/harness/dist/harness/harness-maintenance.d.ts.map +0 -1
  588. package/node_modules/@nervekit/harness/dist/harness/harness-maintenance.js.map +0 -1
  589. package/node_modules/@nervekit/harness/dist/harness/harness-queue-coalescing.d.ts.map +0 -1
  590. package/node_modules/@nervekit/harness/dist/harness/harness-queue-coalescing.js.map +0 -1
  591. package/node_modules/@nervekit/harness/dist/harness/harness-queue-methods.d.ts.map +0 -1
  592. package/node_modules/@nervekit/harness/dist/harness/harness-queue-methods.js.map +0 -1
  593. package/node_modules/@nervekit/harness/dist/harness/options.d.ts.map +0 -1
  594. package/node_modules/@nervekit/harness/dist/harness/options.js.map +0 -1
  595. package/node_modules/@nervekit/harness/dist/harness/prompt-templates.d.ts.map +0 -1
  596. package/node_modules/@nervekit/harness/dist/harness/prompt-templates.js.map +0 -1
  597. package/node_modules/@nervekit/harness/dist/harness/skills/format.d.ts.map +0 -1
  598. package/node_modules/@nervekit/harness/dist/harness/skills/format.js.map +0 -1
  599. package/node_modules/@nervekit/harness/dist/harness/skills/index.d.ts.map +0 -1
  600. package/node_modules/@nervekit/harness/dist/harness/skills/index.js.map +0 -1
  601. package/node_modules/@nervekit/harness/dist/harness/skills/loader.d.ts.map +0 -1
  602. package/node_modules/@nervekit/harness/dist/harness/skills/loader.js.map +0 -1
  603. package/node_modules/@nervekit/harness/dist/harness/skills/parser.d.ts.map +0 -1
  604. package/node_modules/@nervekit/harness/dist/harness/skills/parser.js.map +0 -1
  605. package/node_modules/@nervekit/harness/dist/harness/skills/validation.d.ts.map +0 -1
  606. package/node_modules/@nervekit/harness/dist/harness/skills/validation.js.map +0 -1
  607. package/node_modules/@nervekit/harness/dist/harness/skills.d.ts +0 -2
  608. package/node_modules/@nervekit/harness/dist/harness/skills.d.ts.map +0 -1
  609. package/node_modules/@nervekit/harness/dist/harness/skills.js +0 -2
  610. package/node_modules/@nervekit/harness/dist/harness/skills.js.map +0 -1
  611. package/node_modules/@nervekit/harness/dist/harness/stream-options.d.ts.map +0 -1
  612. package/node_modules/@nervekit/harness/dist/harness/stream-options.js.map +0 -1
  613. package/node_modules/@nervekit/harness/dist/harness/system-prompt.d.ts.map +0 -1
  614. package/node_modules/@nervekit/harness/dist/harness/system-prompt.js.map +0 -1
  615. package/node_modules/@nervekit/harness/dist/harness/turn-state.d.ts.map +0 -1
  616. package/node_modules/@nervekit/harness/dist/harness/turn-state.js.map +0 -1
  617. package/node_modules/@nervekit/harness/dist/harness/types.d.ts +0 -9
  618. package/node_modules/@nervekit/harness/dist/harness/types.d.ts.map +0 -1
  619. package/node_modules/@nervekit/harness/dist/harness/types.js +0 -8
  620. package/node_modules/@nervekit/harness/dist/harness/types.js.map +0 -1
  621. package/node_modules/@nervekit/harness/dist/harness/utils/env-path.d.ts.map +0 -1
  622. package/node_modules/@nervekit/harness/dist/harness/utils/env-path.js.map +0 -1
  623. package/node_modules/@nervekit/harness/dist/pi-ai-models.d.ts.map +0 -1
  624. package/node_modules/@nervekit/harness/dist/pi-ai-models.js.map +0 -1
  625. package/node_modules/@nervekit/harness/dist/proxy.d.ts.map +0 -1
  626. package/node_modules/@nervekit/harness/dist/proxy.js.map +0 -1
  627. package/node_modules/@nervekit/harness/dist/runtime/image-normalization.d.ts.map +0 -1
  628. package/node_modules/@nervekit/harness/dist/runtime/image-normalization.js.map +0 -1
  629. package/node_modules/@nervekit/harness/dist/runtime/loop/agent-loop.d.ts.map +0 -1
  630. package/node_modules/@nervekit/harness/dist/runtime/loop/agent-loop.js.map +0 -1
  631. package/node_modules/@nervekit/harness/dist/runtime/loop/events.d.ts.map +0 -1
  632. package/node_modules/@nervekit/harness/dist/runtime/loop/events.js.map +0 -1
  633. package/node_modules/@nervekit/harness/dist/runtime/loop/index.d.ts +0 -6
  634. package/node_modules/@nervekit/harness/dist/runtime/loop/index.d.ts.map +0 -1
  635. package/node_modules/@nervekit/harness/dist/runtime/loop/index.js +0 -6
  636. package/node_modules/@nervekit/harness/dist/runtime/loop/index.js.map +0 -1
  637. package/node_modules/@nervekit/harness/dist/runtime/loop/stream-assistant.d.ts.map +0 -1
  638. package/node_modules/@nervekit/harness/dist/runtime/loop/stream-assistant.js.map +0 -1
  639. package/node_modules/@nervekit/harness/dist/runtime/loop/tool-execution.d.ts.map +0 -1
  640. package/node_modules/@nervekit/harness/dist/runtime/loop/tool-execution.js.map +0 -1
  641. package/node_modules/@nervekit/harness/dist/runtime/loop/turn-loop.d.ts.map +0 -1
  642. package/node_modules/@nervekit/harness/dist/runtime/loop/turn-loop.js.map +0 -1
  643. package/node_modules/@nervekit/harness/dist/runtime.d.ts.map +0 -1
  644. package/node_modules/@nervekit/harness/dist/runtime.js.map +0 -1
  645. package/node_modules/@nervekit/harness/dist/suspension.d.ts.map +0 -1
  646. package/node_modules/@nervekit/harness/dist/suspension.js.map +0 -1
  647. package/node_modules/@nervekit/harness/dist/tool-adapter.d.ts.map +0 -1
  648. package/node_modules/@nervekit/harness/dist/tool-adapter.js.map +0 -1
  649. package/node_modules/@nervekit/harness/dist/types.d.ts.map +0 -1
  650. package/node_modules/@nervekit/harness/dist/types.js.map +0 -1
  651. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-runtime.d.ts +0 -114
  652. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-runtime.d.ts.map +0 -1
  653. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-runtime.js +0 -452
  654. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-runtime.js.map +0 -1
  655. package/node_modules/@nervekit/workbench-server/dist/web/assets/index-5CMVpr1y.js +0 -260
  656. package/node_modules/@nervekit/workbench-server/dist/web/assets/index-CtD2pS6K.css +0 -2
  657. /package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/agent-loop.js +0 -0
  658. /package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/events.js +0 -0
  659. /package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/turn-loop.js +0 -0
  660. /package/node_modules/@nervekit/harness/dist/{suspension.js → agent/suspension.js} +0 -0
  661. /package/node_modules/@nervekit/harness/dist/{tool-adapter.js → agent/tool-adapter.js} +0 -0
  662. /package/node_modules/@nervekit/harness/dist/harness/{options.js → configuration/options.js} +0 -0
  663. /package/node_modules/@nervekit/harness/dist/harness/{stream-options.d.ts → configuration/stream-options.d.ts} +0 -0
  664. /package/node_modules/@nervekit/harness/dist/harness/{stream-options.js → configuration/stream-options.js} +0 -0
  665. /package/node_modules/@nervekit/harness/dist/harness/{turn-state.js → configuration/turn-state.js} +0 -0
  666. /package/node_modules/@nervekit/harness/dist/harness/{env → environment}/nodejs.d.ts +0 -0
  667. /package/node_modules/@nervekit/harness/dist/harness/{env → environment}/nodejs.js +0 -0
  668. /package/node_modules/@nervekit/harness/dist/harness/{env → environment}/types.d.ts +0 -0
  669. /package/node_modules/@nervekit/harness/dist/harness/{env → environment}/types.js +0 -0
  670. /package/node_modules/@nervekit/harness/dist/harness/{events.js → lifecycle/events.js} +0 -0
  671. /package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/index.d.ts +0 -0
  672. /package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/index.js +0 -0
  673. /package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/validation.d.ts +0 -0
  674. /package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/validation.js +0 -0
  675. /package/node_modules/@nervekit/harness/dist/harness/{system-prompt.d.ts → resources/system-prompt.d.ts} +0 -0
  676. /package/node_modules/@nervekit/harness/dist/harness/{system-prompt.js → resources/system-prompt.js} +0 -0
  677. /package/node_modules/@nervekit/harness/dist/harness/{conversation-writes.js → run/conversation-writes.js} +0 -0
  678. /package/node_modules/@nervekit/harness/dist/{runtime → models}/image-normalization.d.ts +0 -0
  679. /package/node_modules/@nervekit/harness/dist/{runtime → models}/image-normalization.js +0 -0
  680. /package/node_modules/@nervekit/harness/dist/{types.js → models/types.js} +0 -0
  681. /package/node_modules/@nervekit/harness/dist/{proxy.js → transport/proxy.js} +0 -0
@@ -1,17 +1,16 @@
1
1
  import { join } from "node:path";
2
2
  import { GitWorkflowError } from "@nervekit/host-runtime/tools";
3
- import { operationDefinition, operationNameSchema, protocolRequestMessageSchema, } from "@nervekit/contracts";
3
+ import { operationDefinition, protocolRequestMessageSchema, } from "@nervekit/contracts";
4
4
  import { RpcDispatcher, } from "@nervekit/protocol";
5
5
  import { ZodError } from "zod";
6
6
  import { HttpError } from "../http/errors.js";
7
7
  import { FileIdempotencyStore } from "./file-idempotency-store.js";
8
8
  import { createProtocolMessage, orchestratorSource } from "./messages.js";
9
- import { handleProtocolMethod, WORKBENCH_OPERATION_METHODS, } from "./method-handlers.js";
9
+ import { bindWorkbenchOperationHandlers, WORKBENCH_OPERATION_METHODS, } from "./method-handlers.js";
10
10
  import { protocolErrorData, redactProtocolValue } from "./protocol-errors.js";
11
11
  export const PROTOCOL_HTTP_CONTENT_TYPE = "application/vnd.nerve.protocol.v1+json";
12
12
  const MAX_PROTOCOL_HTTP_BODY_BYTES = 4 * 1024 * 1024;
13
13
  const workbenchDispatchers = new WeakMap();
14
- const workbenchMethods = new Set(WORKBENCH_OPERATION_METHODS);
15
14
  const workbenchCapabilities = WORKBENCH_OPERATION_METHODS.map((method) => operationDefinition(method).requiredCapability).filter((capability) => Boolean(capability));
16
15
  export class ProtocolHttpDispatcher {
17
16
  state;
@@ -78,14 +77,7 @@ export class ProtocolHttpDispatcher {
78
77
  }
79
78
  }
80
79
  export function workbenchOperationHandlers(state) {
81
- return new Proxy({}, {
82
- get(_target, property) {
83
- if (typeof property !== "string" || !workbenchMethods.has(property))
84
- return undefined;
85
- const method = operationNameSchema.parse(property);
86
- return (params) => handleProtocolMethod(state, method, params);
87
- },
88
- });
80
+ return bindWorkbenchOperationHandlers(state);
89
81
  }
90
82
  export function workbenchRpcDispatcher(state) {
91
83
  const existing = workbenchDispatchers.get(state);
@@ -1 +1 @@
1
- {"version":3,"file":"http-dispatcher.js","sourceRoot":"","sources":["../../src/protocol/http-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAGL,mBAAmB,EACnB,mBAAmB,EAGnB,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,aAAa,GACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EACL,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAA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AAQ,IAAI,EAAE,CAAC;QACb,KAAK,eAAe,CAAC;QACrB,KAAK,cAAc;YACjB,OAAO,GAAG,CAAC;QACb,KAAK,gBAAgB,CAAC;QACtB,KAAK,eAAe,CAAC;QACrB,KAAK,qBAAqB;YACxB,OAAO,GAAG,CAAC;QACb,KAAK,kBAAkB,CAAC;QACxB,KAAK,oBAAoB;YACvB,OAAO,GAAG,CAAC;QACb,KAAK,UAAU,CAAC;QAChB,KAAK,sBAAsB;YACzB,OAAO,GAAG,CAAC;QACb,KAAK,0BAA0B;YAC7B,OAAO,GAAG,CAAC;QACb,KAAK,mBAAmB;YACtB,OAAO,GAAG,CAAC;QACb,KAAK,qBAAqB,CAAC;QAC3B,KAAK,SAAS;YACZ,OAAO,GAAG,CAAC;QACb,KAAK,gBAAgB;YACnB,OAAO,GAAG,CAAC;QACb;YACE,OAAO,GAAG,CAAC;IACf,CAAC;AACH,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type OperationName, type OperationParams } from "@nervekit/contracts";
2
+ import type { OperationHandlerRegistry } from "@nervekit/protocol";
3
+ import type { OrchestratorState } from "../app/orchestrator-state.js";
4
+ type MaybePromise<T> = T | Promise<T>;
5
+ type WorkbenchMethodHandler<M extends OperationName> = (state: OrchestratorState, params: OperationParams<M>) => MaybePromise<unknown>;
6
+ export type WorkbenchMethodHandlerMap = {
7
+ readonly [M in OperationName]?: WorkbenchMethodHandler<M>;
8
+ };
9
+ export declare function defineWorkbenchMethodHandlers<const Handlers extends WorkbenchMethodHandlerMap>(handlers: Handlers): Handlers;
10
+ export interface WorkbenchMethodRegistry {
11
+ readonly methods: readonly OperationName[];
12
+ handle(state: OrchestratorState, method: OperationName, params: unknown): Promise<unknown>;
13
+ bind(state: OrchestratorState): Partial<OperationHandlerRegistry>;
14
+ }
15
+ export declare function createWorkbenchMethodRegistry(groups: readonly WorkbenchMethodHandlerMap[]): WorkbenchMethodRegistry;
16
+ export {};
17
+ //# sourceMappingURL=method-handler-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method-handler-registry.d.ts","sourceRoot":"","sources":["../../src/protocol/method-handler-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAEtC,KAAK,sBAAsB,CAAC,CAAC,SAAS,aAAa,IAAI,CACrD,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,KACvB,YAAY,CAAC,OAAO,CAAC,CAAC;AAE3B,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,CAAC,IAAI,aAAa,CAAC,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC;CAC1D,CAAC;AAEF,wBAAgB,6BAA6B,CAC3C,KAAK,CAAC,QAAQ,SAAS,yBAAyB,EAChD,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAE9B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,SAAS,aAAa,EAAE,CAAC;IAC3C,MAAM,CACJ,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,OAAO,CAAC,CAAC;IACpB,IAAI,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACnE;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,SAAS,yBAAyB,EAAE,GAC3C,uBAAuB,CAsEzB"}
@@ -0,0 +1,54 @@
1
+ import { allOperationDefinitions, } from "@nervekit/contracts";
2
+ export function defineWorkbenchMethodHandlers(handlers) {
3
+ return handlers;
4
+ }
5
+ export function createWorkbenchMethodRegistry(groups) {
6
+ const handlers = new Map();
7
+ const duplicates = [];
8
+ for (const group of groups) {
9
+ for (const [method, handler] of Object.entries(group)) {
10
+ if (handlers.has(method))
11
+ duplicates.push(method);
12
+ handlers.set(method, handler);
13
+ }
14
+ }
15
+ if (duplicates.length > 0) {
16
+ throw new Error(`Duplicate workbench operation handlers: ${sorted(duplicates).join(", ")}`);
17
+ }
18
+ const expectedMethods = allOperationDefinitions()
19
+ .filter((definition) => definition.allowedTargetRoles.includes("workbench_server"))
20
+ .map((definition) => definition.method);
21
+ const expected = new Set(expectedMethods);
22
+ const missing = expectedMethods.filter((method) => !handlers.has(method));
23
+ const unexpected = [...handlers.keys()].filter((method) => !expected.has(method));
24
+ if (missing.length > 0 || unexpected.length > 0) {
25
+ throw new Error([
26
+ missing.length > 0
27
+ ? `missing: ${sorted(missing).join(", ")}`
28
+ : undefined,
29
+ unexpected.length > 0
30
+ ? `unexpected: ${sorted(unexpected).join(", ")}`
31
+ : undefined,
32
+ ]
33
+ .filter(Boolean)
34
+ .join("; ")
35
+ .replace(/^/, "Workbench operation handler coverage mismatch: "));
36
+ }
37
+ async function handle(state, method, params) {
38
+ const handler = handlers.get(method);
39
+ if (!handler)
40
+ throw new Error(`Unsupported workbench operation: ${method}`);
41
+ return handler(state, params);
42
+ }
43
+ function bind(state) {
44
+ return Object.fromEntries(expectedMethods.map((method) => [
45
+ method,
46
+ (params) => handle(state, method, params),
47
+ ]));
48
+ }
49
+ return { methods: expectedMethods, handle, bind };
50
+ }
51
+ function sorted(methods) {
52
+ return [...new Set(methods)].sort();
53
+ }
54
+ //# sourceMappingURL=method-handler-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method-handler-registry.js","sourceRoot":"","sources":["../../src/protocol/method-handler-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,GAGxB,MAAM,qBAAqB,CAAC;AAe7B,MAAM,UAAU,6BAA6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,MAAM,CAAC,OAAiC;IAC/C,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AACtC,CAAC"}
@@ -0,0 +1,505 @@
1
+ import type { OrchestratorState } from "../../app/orchestrator-state.js";
2
+ export declare const conversationAgentMethodHandlers: {
3
+ readonly "conversation.create": (state: OrchestratorState, params: {
4
+ projectId: string;
5
+ title?: string | undefined;
6
+ mode?: "planning" | "coding" | undefined;
7
+ permissionLevel?: "autonomous" | "supervised" | "read_only" | undefined;
8
+ approvalPolicy?: {
9
+ autoApproveReadOnly?: boolean | undefined;
10
+ } | undefined;
11
+ }) => Promise<{
12
+ conversation: {
13
+ id: string;
14
+ projectId: string;
15
+ title: string;
16
+ mode: "planning" | "coding";
17
+ permissionLevel: "autonomous" | "supervised" | "read_only";
18
+ approvalPolicy: {
19
+ autoApproveReadOnly: boolean;
20
+ };
21
+ createdAt: string;
22
+ updatedAt: string;
23
+ activeAgentId?: string | undefined;
24
+ activeEntryId?: string | undefined;
25
+ lastUserMessageAt?: string | undefined;
26
+ };
27
+ }>;
28
+ readonly "conversation.import": (state: OrchestratorState, params: {
29
+ conversation: {
30
+ title?: string | undefined;
31
+ mode?: "planning" | "coding" | undefined;
32
+ permissionLevel?: "autonomous" | "supervised" | "read_only" | undefined;
33
+ approvalPolicy?: {
34
+ autoApproveReadOnly?: boolean | undefined;
35
+ } | undefined;
36
+ };
37
+ project?: {
38
+ dir: string;
39
+ name?: string | undefined;
40
+ } | undefined;
41
+ agents?: unknown[] | undefined;
42
+ entries?: unknown[] | undefined;
43
+ }) => Promise<{
44
+ project: import("@nervekit/contracts").ProjectRecord;
45
+ conversation: import("@nervekit/contracts").ConversationRecord;
46
+ agents: import("@nervekit/contracts").AgentRecord[];
47
+ entries: import("@nervekit/contracts").ConversationEntry[];
48
+ }>;
49
+ readonly "conversation.list": (state: OrchestratorState) => {
50
+ conversations: {
51
+ id: string;
52
+ projectId: string;
53
+ title: string;
54
+ mode: "planning" | "coding";
55
+ permissionLevel: "autonomous" | "supervised" | "read_only";
56
+ approvalPolicy: {
57
+ autoApproveReadOnly: boolean;
58
+ };
59
+ createdAt: string;
60
+ updatedAt: string;
61
+ activeAgentId?: string | undefined;
62
+ activeEntryId?: string | undefined;
63
+ lastUserMessageAt?: string | undefined;
64
+ }[];
65
+ };
66
+ readonly "conversation.get": (state: OrchestratorState, params: {
67
+ conversationId: string;
68
+ }) => {
69
+ conversation: {
70
+ id: string;
71
+ projectId: string;
72
+ title: string;
73
+ mode: "planning" | "coding";
74
+ permissionLevel: "autonomous" | "supervised" | "read_only";
75
+ approvalPolicy: {
76
+ autoApproveReadOnly: boolean;
77
+ };
78
+ createdAt: string;
79
+ updatedAt: string;
80
+ activeAgentId?: string | undefined;
81
+ activeEntryId?: string | undefined;
82
+ lastUserMessageAt?: string | undefined;
83
+ };
84
+ };
85
+ readonly "conversation.delete": (state: OrchestratorState, params: {
86
+ conversationId: string;
87
+ }) => Promise<{
88
+ ok: boolean;
89
+ }>;
90
+ readonly "conversation.entries.list": (state: OrchestratorState, params: {
91
+ conversationId: string;
92
+ }) => {
93
+ entries: {
94
+ id: string;
95
+ conversationId: string;
96
+ role: "system" | "user" | "assistant";
97
+ kind: "compaction" | "message" | "branch_summary" | "explore_report" | "run_status" | "task_event";
98
+ text: string;
99
+ createdAt: string;
100
+ agentId?: string | undefined;
101
+ runId?: string | undefined;
102
+ turnId?: string | undefined;
103
+ liveMessageId?: string | undefined;
104
+ messageOrdinal?: number | undefined;
105
+ parentEntryId?: string | undefined;
106
+ summary?: string | undefined;
107
+ tokensBefore?: number | undefined;
108
+ usage?: {
109
+ input: number;
110
+ output: number;
111
+ cacheRead: number;
112
+ cacheWrite: number;
113
+ totalTokens: number;
114
+ cost: number;
115
+ } | undefined;
116
+ firstKeptEntryId?: string | undefined;
117
+ fromEntryId?: string | undefined;
118
+ details?: unknown;
119
+ }[];
120
+ };
121
+ readonly "conversation.contextUsage.get": (state: OrchestratorState, params: {
122
+ conversationId: string;
123
+ }) => Promise<{
124
+ contextUsage: {
125
+ tokens: number | null;
126
+ contextWindow: number;
127
+ percent: number | null;
128
+ };
129
+ }>;
130
+ readonly "conversation.tree.get": (state: OrchestratorState, params: {
131
+ conversationId: string;
132
+ }) => {
133
+ tree: {
134
+ conversationId: string;
135
+ rootEntryIds: string[];
136
+ nodes: {
137
+ entry: {
138
+ id: string;
139
+ conversationId: string;
140
+ role: "system" | "user" | "assistant";
141
+ kind: "compaction" | "message" | "branch_summary" | "explore_report" | "run_status" | "task_event";
142
+ text: string;
143
+ createdAt: string;
144
+ agentId?: string | undefined;
145
+ runId?: string | undefined;
146
+ turnId?: string | undefined;
147
+ liveMessageId?: string | undefined;
148
+ messageOrdinal?: number | undefined;
149
+ parentEntryId?: string | undefined;
150
+ summary?: string | undefined;
151
+ tokensBefore?: number | undefined;
152
+ usage?: {
153
+ input: number;
154
+ output: number;
155
+ cacheRead: number;
156
+ cacheWrite: number;
157
+ totalTokens: number;
158
+ cost: number;
159
+ } | undefined;
160
+ firstKeptEntryId?: string | undefined;
161
+ fromEntryId?: string | undefined;
162
+ details?: unknown;
163
+ };
164
+ childEntryIds: string[];
165
+ }[];
166
+ activeEntryId?: string | undefined;
167
+ };
168
+ };
169
+ readonly "conversation.navigate": (state: OrchestratorState, params: {
170
+ conversationId: string;
171
+ activeEntryId: string | null;
172
+ summarize?: boolean | undefined;
173
+ summaryInstructions?: string | undefined;
174
+ }) => Promise<{
175
+ conversation: {
176
+ id: string;
177
+ projectId: string;
178
+ title: string;
179
+ mode: "planning" | "coding";
180
+ permissionLevel: "autonomous" | "supervised" | "read_only";
181
+ approvalPolicy: {
182
+ autoApproveReadOnly: boolean;
183
+ };
184
+ createdAt: string;
185
+ updatedAt: string;
186
+ activeAgentId?: string | undefined;
187
+ activeEntryId?: string | undefined;
188
+ lastUserMessageAt?: string | undefined;
189
+ };
190
+ }>;
191
+ readonly "conversation.compact": (state: OrchestratorState, params: {
192
+ conversationId: string;
193
+ instructions?: string | undefined;
194
+ keepRecentTokens?: number | undefined;
195
+ }) => Promise<{
196
+ conversation: import("@nervekit/contracts").ConversationRecord;
197
+ entry: import("@nervekit/contracts").ConversationEntry;
198
+ }>;
199
+ readonly "conversation.compaction.cancel": (state: OrchestratorState, params: {
200
+ conversationId: string;
201
+ }) => Promise<{
202
+ ok: true;
203
+ }>;
204
+ readonly "agent.create": (state: OrchestratorState, params: {
205
+ conversationId: string;
206
+ projectId: string;
207
+ projectDir?: string | undefined;
208
+ workerId?: string | undefined;
209
+ parentAgentId?: string | undefined;
210
+ task?: string | undefined;
211
+ mode?: "planning" | "coding" | undefined;
212
+ permissionLevel?: "autonomous" | "supervised" | "read_only" | undefined;
213
+ approvalPolicy?: {
214
+ autoApproveReadOnly?: boolean | undefined;
215
+ } | undefined;
216
+ workspaceScope?: {
217
+ roots: string[];
218
+ readonly?: boolean | undefined;
219
+ } | undefined;
220
+ systemPrompt?: string | undefined;
221
+ budget?: {
222
+ depth?: number | undefined;
223
+ maxDepth?: number | undefined;
224
+ maxRuns?: number | undefined;
225
+ usedRuns?: number | undefined;
226
+ } | undefined;
227
+ model?: {
228
+ provider: string;
229
+ modelId: string;
230
+ } | undefined;
231
+ thinkingLevel?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
232
+ }) => Promise<{
233
+ agent: {
234
+ id: string;
235
+ conversationId: string;
236
+ projectId: string;
237
+ projectDir: string;
238
+ rootAgentId: string;
239
+ mode: "planning" | "coding";
240
+ permissionLevel: "autonomous" | "supervised" | "read_only";
241
+ approvalPolicy: {
242
+ autoApproveReadOnly: boolean;
243
+ };
244
+ workspaceScope: {
245
+ roots: string[];
246
+ readonly?: boolean | undefined;
247
+ };
248
+ budget: {
249
+ depth: number;
250
+ maxDepth: number;
251
+ maxRuns: number;
252
+ usedRuns: number;
253
+ };
254
+ thinkingLevel: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
255
+ status: "error" | "running" | "aborted" | "idle" | "awaiting_user";
256
+ createdAt: string;
257
+ updatedAt: string;
258
+ workerId?: string | undefined;
259
+ parentAgentId?: string | undefined;
260
+ systemPrompt?: string | undefined;
261
+ model?: {
262
+ provider: string;
263
+ modelId: string;
264
+ } | undefined;
265
+ };
266
+ }>;
267
+ readonly "agent.list": (state: OrchestratorState) => {
268
+ agents: {
269
+ id: string;
270
+ conversationId: string;
271
+ projectId: string;
272
+ projectDir: string;
273
+ rootAgentId: string;
274
+ mode: "planning" | "coding";
275
+ permissionLevel: "autonomous" | "supervised" | "read_only";
276
+ approvalPolicy: {
277
+ autoApproveReadOnly: boolean;
278
+ };
279
+ workspaceScope: {
280
+ roots: string[];
281
+ readonly?: boolean | undefined;
282
+ };
283
+ budget: {
284
+ depth: number;
285
+ maxDepth: number;
286
+ maxRuns: number;
287
+ usedRuns: number;
288
+ };
289
+ thinkingLevel: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
290
+ status: "error" | "running" | "aborted" | "idle" | "awaiting_user";
291
+ createdAt: string;
292
+ updatedAt: string;
293
+ workerId?: string | undefined;
294
+ parentAgentId?: string | undefined;
295
+ systemPrompt?: string | undefined;
296
+ model?: {
297
+ provider: string;
298
+ modelId: string;
299
+ } | undefined;
300
+ }[];
301
+ };
302
+ readonly "agent.get": (state: OrchestratorState, params: {
303
+ agentId: string;
304
+ }) => {
305
+ agent: {
306
+ id: string;
307
+ conversationId: string;
308
+ projectId: string;
309
+ projectDir: string;
310
+ rootAgentId: string;
311
+ mode: "planning" | "coding";
312
+ permissionLevel: "autonomous" | "supervised" | "read_only";
313
+ approvalPolicy: {
314
+ autoApproveReadOnly: boolean;
315
+ };
316
+ workspaceScope: {
317
+ roots: string[];
318
+ readonly?: boolean | undefined;
319
+ };
320
+ budget: {
321
+ depth: number;
322
+ maxDepth: number;
323
+ maxRuns: number;
324
+ usedRuns: number;
325
+ };
326
+ thinkingLevel: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
327
+ status: "error" | "running" | "aborted" | "idle" | "awaiting_user";
328
+ createdAt: string;
329
+ updatedAt: string;
330
+ workerId?: string | undefined;
331
+ parentAgentId?: string | undefined;
332
+ systemPrompt?: string | undefined;
333
+ model?: {
334
+ provider: string;
335
+ modelId: string;
336
+ } | undefined;
337
+ };
338
+ };
339
+ readonly "agent.configure": (state: OrchestratorState, params: {
340
+ agentId: string;
341
+ mode?: "planning" | "coding" | undefined;
342
+ permissionLevel?: "autonomous" | "supervised" | "read_only" | undefined;
343
+ approvalPolicy?: {
344
+ autoApproveReadOnly?: boolean | undefined;
345
+ } | undefined;
346
+ model?: {
347
+ provider: string;
348
+ modelId: string;
349
+ } | null | undefined;
350
+ thinkingLevel?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
351
+ }) => Promise<{
352
+ agent: {
353
+ id: string;
354
+ conversationId: string;
355
+ projectId: string;
356
+ projectDir: string;
357
+ rootAgentId: string;
358
+ mode: "planning" | "coding";
359
+ permissionLevel: "autonomous" | "supervised" | "read_only";
360
+ approvalPolicy: {
361
+ autoApproveReadOnly: boolean;
362
+ };
363
+ workspaceScope: {
364
+ roots: string[];
365
+ readonly?: boolean | undefined;
366
+ };
367
+ budget: {
368
+ depth: number;
369
+ maxDepth: number;
370
+ maxRuns: number;
371
+ usedRuns: number;
372
+ };
373
+ thinkingLevel: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
374
+ status: "error" | "running" | "aborted" | "idle" | "awaiting_user";
375
+ createdAt: string;
376
+ updatedAt: string;
377
+ workerId?: string | undefined;
378
+ parentAgentId?: string | undefined;
379
+ systemPrompt?: string | undefined;
380
+ model?: {
381
+ provider: string;
382
+ modelId: string;
383
+ } | undefined;
384
+ };
385
+ }>;
386
+ readonly "run.start": (state: OrchestratorState, params: {
387
+ text: string;
388
+ conversationId?: string | undefined;
389
+ agentId?: string | undefined;
390
+ images?: {
391
+ type: "image";
392
+ data: string;
393
+ mimeType: string;
394
+ }[] | undefined;
395
+ }) => Promise<{
396
+ accepted: boolean;
397
+ agentId: string;
398
+ }>;
399
+ readonly "run.steer": (state: OrchestratorState, params: {
400
+ agentId: string;
401
+ text: string;
402
+ conversationId?: string | undefined;
403
+ runId?: string | undefined;
404
+ images?: {
405
+ type: "image";
406
+ data: string;
407
+ mimeType: string;
408
+ }[] | undefined;
409
+ }) => Promise<{
410
+ accepted: boolean;
411
+ agentId: string;
412
+ }>;
413
+ readonly "run.followUp": (state: OrchestratorState, params: {
414
+ agentId: string;
415
+ text: string;
416
+ conversationId?: string | undefined;
417
+ runId?: string | undefined;
418
+ images?: {
419
+ type: "image";
420
+ data: string;
421
+ mimeType: string;
422
+ }[] | undefined;
423
+ }) => Promise<{
424
+ accepted: boolean;
425
+ agentId: string;
426
+ }>;
427
+ readonly "agent.promptQueue.list": (state: OrchestratorState, params: {
428
+ agentId: string;
429
+ }) => Promise<{
430
+ queuedPrompts: {
431
+ id: string;
432
+ agentId: string;
433
+ conversationId: string;
434
+ projectId: string;
435
+ behavior: "steer" | "follow-up";
436
+ text: string;
437
+ status: "failed" | "cancelled" | "queued" | "accepted" | "delivered";
438
+ createdAt: string;
439
+ updatedAt: string;
440
+ ordinal: number;
441
+ deliveryAttempts: number;
442
+ runId?: string | undefined;
443
+ images?: {
444
+ type: "image";
445
+ data: string;
446
+ mimeType: string;
447
+ }[] | undefined;
448
+ deliveredEntryId?: string | undefined;
449
+ error?: string | undefined;
450
+ }[];
451
+ }>;
452
+ readonly "agent.promptQueue.cancel": (state: OrchestratorState, params: {
453
+ agentId: string;
454
+ queuedPromptId: string;
455
+ }) => Promise<{
456
+ queuedPrompt: {
457
+ id: string;
458
+ agentId: string;
459
+ conversationId: string;
460
+ projectId: string;
461
+ behavior: "steer" | "follow-up";
462
+ text: string;
463
+ status: "failed" | "cancelled" | "queued" | "accepted" | "delivered";
464
+ createdAt: string;
465
+ updatedAt: string;
466
+ ordinal: number;
467
+ deliveryAttempts: number;
468
+ runId?: string | undefined;
469
+ images?: {
470
+ type: "image";
471
+ data: string;
472
+ mimeType: string;
473
+ }[] | undefined;
474
+ deliveredEntryId?: string | undefined;
475
+ error?: string | undefined;
476
+ };
477
+ }>;
478
+ readonly "agent.requestTool": (state: OrchestratorState, params: {
479
+ agentId: string;
480
+ toolName: "bash" | "python_exec" | "web_search" | "web_fetch" | "find" | "read" | "explore" | "edit" | "write" | "grep" | "ls" | "ask_user" | "todos_set" | "todos_get" | "jira_search_users" | "jira_search_issues" | "jira_get_issue" | "jira_get_project" | "jira_create_issue" | "jira_update_issue" | "jira_add_comment" | "jira_transition_issue" | "confluence_search_spaces" | "confluence_search_pages" | "confluence_get_page" | "confluence_download_pages" | "confluence_create_page" | "confluence_update_page" | "confluence_publish_pages" | "confluence_upload_attachment" | "task_start" | "task_status" | "task_logs" | "task_cancel" | "task_restart" | "plan_mode_enter" | "plan_mode_present" | "plan_mode_force_exit";
481
+ args?: Record<string, unknown> | undefined;
482
+ }) => Promise<import("../../domains/tools/tool-service.js").ToolExecutionResponse>;
483
+ readonly "run.continue": (state: OrchestratorState, params: {
484
+ runId: string;
485
+ agentId?: string | undefined;
486
+ conversationId?: string | undefined;
487
+ reason?: "manual" | "after_input" | "after_approval" | "retry_error" | undefined;
488
+ }) => Promise<{
489
+ accepted: boolean;
490
+ agentId: string;
491
+ runId: string;
492
+ }>;
493
+ readonly "run.cancel": (state: OrchestratorState, params: {
494
+ agentId?: string | undefined;
495
+ conversationId?: string | undefined;
496
+ runId?: string | undefined;
497
+ reason?: string | undefined;
498
+ }) => Promise<{
499
+ accepted: boolean;
500
+ agentId: string | undefined;
501
+ runId: string | undefined;
502
+ status: string;
503
+ }>;
504
+ };
505
+ //# sourceMappingURL=conversation-agent-method-handlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-agent-method-handlers.d.ts","sourceRoot":"","sources":["../../../src/protocol/method-handlers/conversation-agent-method-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAGzE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuF1C,CAAC"}