@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
@@ -0,0 +1,88 @@
1
+ import { defineWorkbenchMethodHandlers } from "../method-handler-registry.js";
2
+ export const conversationAgentMethodHandlers = defineWorkbenchMethodHandlers({
3
+ "conversation.create": async (state, params) => ({
4
+ conversation: await state.registry.createConversation(params),
5
+ }),
6
+ "conversation.import": (state, params) => state.registry.importConversation(params),
7
+ "conversation.list": (state) => ({
8
+ conversations: state.registry.listConversations(),
9
+ }),
10
+ "conversation.get": (state, params) => ({
11
+ conversation: state.registry.getConversation(params.conversationId),
12
+ }),
13
+ "conversation.delete": async (state, params) => {
14
+ await state.registry.removeConversation(params.conversationId);
15
+ return { ok: true };
16
+ },
17
+ "conversation.entries.list": (state, params) => ({
18
+ entries: state.registry.getConversationEntries(params.conversationId),
19
+ }),
20
+ "conversation.contextUsage.get": async (state, params) => ({
21
+ contextUsage: await state.registry.getContextUsage(params.conversationId),
22
+ }),
23
+ "conversation.tree.get": (state, params) => ({
24
+ tree: state.registry.getConversationTree(params.conversationId),
25
+ }),
26
+ "conversation.navigate": async (state, params) => ({
27
+ conversation: await state.registry.navigateConversation(params.conversationId, params),
28
+ }),
29
+ "conversation.compact": (state, params) => state.registry.compactConversation(params.conversationId, params),
30
+ "conversation.compaction.cancel": (state, params) => state.registry.cancelConversationCompaction(params.conversationId),
31
+ "agent.create": async (state, params) => ({
32
+ agent: await state.registry.createAgent(params),
33
+ }),
34
+ "agent.list": (state) => ({ agents: state.registry.listAgents() }),
35
+ "agent.get": (state, params) => ({
36
+ agent: state.registry.getAgent(params.agentId),
37
+ }),
38
+ "agent.configure": async (state, params) => ({
39
+ agent: await state.registry.configureAgent(params.agentId, params),
40
+ }),
41
+ "run.start": (state, params) => dispatchPrompt(state, "run.start", params),
42
+ "run.steer": (state, params) => dispatchPrompt(state, "run.steer", params),
43
+ "run.followUp": (state, params) => dispatchPrompt(state, "run.followUp", params),
44
+ "agent.promptQueue.list": async (state, params) => ({
45
+ queuedPrompts: await state.registry.listQueuedPrompts(params.agentId),
46
+ }),
47
+ "agent.promptQueue.cancel": async (state, params) => ({
48
+ queuedPrompt: await state.registry.cancelQueuedPrompt(params.agentId, params.queuedPromptId),
49
+ }),
50
+ "agent.requestTool": (state, params) => state.registry.requestTool(params.agentId, params.toolName, params.args),
51
+ "run.continue": async (state, params) => {
52
+ if (!params.agentId || !params.runId) {
53
+ throw new Error("run.continue requires agentId and runId");
54
+ }
55
+ await state.registry.continueRun(params.agentId, params.runId);
56
+ return {
57
+ accepted: true,
58
+ agentId: params.agentId,
59
+ runId: params.runId,
60
+ };
61
+ },
62
+ "run.cancel": async (state, params) => {
63
+ if (!params.agentId && !params.runId) {
64
+ throw new Error("run.cancel requires agentId or runId");
65
+ }
66
+ await state.registry.abortRun(params);
67
+ return {
68
+ accepted: true,
69
+ agentId: params.agentId,
70
+ runId: params.runId,
71
+ status: "cancelled",
72
+ };
73
+ },
74
+ });
75
+ async function dispatchPrompt(state, method, request) {
76
+ if (!request.agentId)
77
+ throw new Error(`${method} requires agentId`);
78
+ await state.registry.promptAgent(request.agentId, {
79
+ ...request,
80
+ behavior: method === "run.steer"
81
+ ? "steer"
82
+ : method === "run.followUp"
83
+ ? "follow-up"
84
+ : "reject-if-busy",
85
+ });
86
+ return { accepted: true, agentId: request.agentId };
87
+ }
88
+ //# sourceMappingURL=conversation-agent-method-handlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-agent-method-handlers.js","sourceRoot":"","sources":["../../../src/protocol/method-handlers/conversation-agent-method-handlers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAE9E,MAAM,CAAC,MAAM,+BAA+B,GAAG,6BAA6B,CAAC;IAC3E,qBAAqB,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;QAC/C,YAAY,EAAE,MAAM,KAAK,CAAC,QAAQ,CAAC,kBAAkB,CAAC,MAAM,CAAC;KAC9D,CAAC;IACF,qBAAqB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CACvC,KAAK,CAAC,QAAQ,CAAC,kBAAkB,CAAC,MAAe,CAAC;IACpD,mBAAmB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAC/B,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,iBAAiB,EAAE;KAClD,CAAC;IACF,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;QACtC,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,cAAc,CAAC;KACpE,CAAC;IACF,qBAAqB,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;QAC7C,MAAM,KAAK,CAAC,QAAQ,CAAC,kBAAkB,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAC/D,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;IACtB,CAAC;IACD,2B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gBAAgB;KAChB,CAAC,CAAC;IACZ,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;AACtD,CAAC"}
@@ -0,0 +1,433 @@
1
+ export declare const gitMethodHandlers: {
2
+ readonly "git.repos.discover": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
3
+ projectId: string;
4
+ }) => Promise<{
5
+ projectIsRepo: boolean;
6
+ repos: {
7
+ relativePath: string;
8
+ absDir: string;
9
+ name: string;
10
+ isRepo: true;
11
+ currentBranch: string | null;
12
+ detached: boolean;
13
+ ahead: number | null;
14
+ behind: number | null;
15
+ hasUpstream: boolean;
16
+ hasRemote: boolean;
17
+ hasGithubRemote: boolean;
18
+ baseBranch: string;
19
+ onBaseBranch: boolean;
20
+ mergedToBase: boolean;
21
+ dirty: boolean;
22
+ changeCount: number;
23
+ }[];
24
+ }>;
25
+ readonly "git.overview.get": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
26
+ projectId: string;
27
+ repo?: string | undefined;
28
+ }) => Promise<{
29
+ repo: {
30
+ relativePath: string;
31
+ absDir: string;
32
+ name: string;
33
+ isRepo: true;
34
+ currentBranch: string | null;
35
+ detached: boolean;
36
+ ahead: number | null;
37
+ behind: number | null;
38
+ hasUpstream: boolean;
39
+ hasRemote: boolean;
40
+ hasGithubRemote: boolean;
41
+ baseBranch: string;
42
+ onBaseBranch: boolean;
43
+ mergedToBase: boolean;
44
+ dirty: boolean;
45
+ changeCount: number;
46
+ };
47
+ baseBranch: string;
48
+ onBaseBranch: boolean;
49
+ files: {
50
+ path: string;
51
+ index: " " | "!" | "M" | "A" | "D" | "R" | "C" | "U" | "?";
52
+ worktree: " " | "!" | "M" | "A" | "D" | "R" | "C" | "U" | "?";
53
+ staged: boolean;
54
+ untracked: boolean;
55
+ renamedFrom?: string | undefined;
56
+ }[];
57
+ stagedCount: number;
58
+ unstagedCount: number;
59
+ untrackedCount: number;
60
+ insertions: number;
61
+ deletions: number;
62
+ recentCommits: {
63
+ hash: string;
64
+ subject: string;
65
+ relativeDate: string;
66
+ }[];
67
+ }>;
68
+ readonly "git.branches.list": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
69
+ projectId: string;
70
+ repo?: string | undefined;
71
+ }) => Promise<{
72
+ branches: {
73
+ name: string;
74
+ current: boolean;
75
+ remote: boolean;
76
+ upstream: string | null;
77
+ }[];
78
+ }>;
79
+ readonly "git.branch.create": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
80
+ projectId: string;
81
+ name: string;
82
+ repo?: string | undefined;
83
+ }) => Promise<{
84
+ repo: {
85
+ relativePath: string;
86
+ absDir: string;
87
+ name: string;
88
+ isRepo: true;
89
+ currentBranch: string | null;
90
+ detached: boolean;
91
+ ahead: number | null;
92
+ behind: number | null;
93
+ hasUpstream: boolean;
94
+ hasRemote: boolean;
95
+ hasGithubRemote: boolean;
96
+ baseBranch: string;
97
+ onBaseBranch: boolean;
98
+ mergedToBase: boolean;
99
+ dirty: boolean;
100
+ changeCount: number;
101
+ };
102
+ }>;
103
+ readonly "git.branch.switch": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
104
+ projectId: string;
105
+ name: string;
106
+ repo?: string | undefined;
107
+ }) => Promise<{
108
+ repo: {
109
+ relativePath: string;
110
+ absDir: string;
111
+ name: string;
112
+ isRepo: true;
113
+ currentBranch: string | null;
114
+ detached: boolean;
115
+ ahead: number | null;
116
+ behind: number | null;
117
+ hasUpstream: boolean;
118
+ hasRemote: boolean;
119
+ hasGithubRemote: boolean;
120
+ baseBranch: string;
121
+ onBaseBranch: boolean;
122
+ mergedToBase: boolean;
123
+ dirty: boolean;
124
+ changeCount: number;
125
+ };
126
+ }>;
127
+ readonly "git.file.stage": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
128
+ projectId: string;
129
+ path: string;
130
+ repo?: string | undefined;
131
+ }) => Promise<{
132
+ repo: {
133
+ relativePath: string;
134
+ absDir: string;
135
+ name: string;
136
+ isRepo: true;
137
+ currentBranch: string | null;
138
+ detached: boolean;
139
+ ahead: number | null;
140
+ behind: number | null;
141
+ hasUpstream: boolean;
142
+ hasRemote: boolean;
143
+ hasGithubRemote: boolean;
144
+ baseBranch: string;
145
+ onBaseBranch: boolean;
146
+ mergedToBase: boolean;
147
+ dirty: boolean;
148
+ changeCount: number;
149
+ };
150
+ }>;
151
+ readonly "git.file.unstage": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
152
+ projectId: string;
153
+ path: string;
154
+ repo?: string | undefined;
155
+ }) => Promise<{
156
+ repo: {
157
+ relativePath: string;
158
+ absDir: string;
159
+ name: string;
160
+ isRepo: true;
161
+ currentBranch: string | null;
162
+ detached: boolean;
163
+ ahead: number | null;
164
+ behind: number | null;
165
+ hasUpstream: boolean;
166
+ hasRemote: boolean;
167
+ hasGithubRemote: boolean;
168
+ baseBranch: string;
169
+ onBaseBranch: boolean;
170
+ mergedToBase: boolean;
171
+ dirty: boolean;
172
+ changeCount: number;
173
+ };
174
+ }>;
175
+ readonly "git.file.discard": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
176
+ projectId: string;
177
+ path: string;
178
+ repo?: string | undefined;
179
+ }) => Promise<{
180
+ repo: {
181
+ relativePath: string;
182
+ absDir: string;
183
+ name: string;
184
+ isRepo: true;
185
+ currentBranch: string | null;
186
+ detached: boolean;
187
+ ahead: number | null;
188
+ behind: number | null;
189
+ hasUpstream: boolean;
190
+ hasRemote: boolean;
191
+ hasGithubRemote: boolean;
192
+ baseBranch: string;
193
+ onBaseBranch: boolean;
194
+ mergedToBase: boolean;
195
+ dirty: boolean;
196
+ changeCount: number;
197
+ };
198
+ }>;
199
+ readonly "git.sync": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
200
+ projectId: string;
201
+ repo?: string | undefined;
202
+ }) => Promise<{
203
+ repo: {
204
+ relativePath: string;
205
+ absDir: string;
206
+ name: string;
207
+ isRepo: true;
208
+ currentBranch: string | null;
209
+ detached: boolean;
210
+ ahead: number | null;
211
+ behind: number | null;
212
+ hasUpstream: boolean;
213
+ hasRemote: boolean;
214
+ hasGithubRemote: boolean;
215
+ baseBranch: string;
216
+ onBaseBranch: boolean;
217
+ mergedToBase: boolean;
218
+ dirty: boolean;
219
+ changeCount: number;
220
+ };
221
+ }>;
222
+ readonly "git.push": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
223
+ projectId: string;
224
+ repo?: string | undefined;
225
+ }) => Promise<{
226
+ repo: {
227
+ relativePath: string;
228
+ absDir: string;
229
+ name: string;
230
+ isRepo: true;
231
+ currentBranch: string | null;
232
+ detached: boolean;
233
+ ahead: number | null;
234
+ behind: number | null;
235
+ hasUpstream: boolean;
236
+ hasRemote: boolean;
237
+ hasGithubRemote: boolean;
238
+ baseBranch: string;
239
+ onBaseBranch: boolean;
240
+ mergedToBase: boolean;
241
+ dirty: boolean;
242
+ changeCount: number;
243
+ };
244
+ }>;
245
+ readonly "git.pull": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
246
+ projectId: string;
247
+ repo?: string | undefined;
248
+ }) => Promise<{
249
+ repo: {
250
+ relativePath: string;
251
+ absDir: string;
252
+ name: string;
253
+ isRepo: true;
254
+ currentBranch: string | null;
255
+ detached: boolean;
256
+ ahead: number | null;
257
+ behind: number | null;
258
+ hasUpstream: boolean;
259
+ hasRemote: boolean;
260
+ hasGithubRemote: boolean;
261
+ baseBranch: string;
262
+ onBaseBranch: boolean;
263
+ mergedToBase: boolean;
264
+ dirty: boolean;
265
+ changeCount: number;
266
+ };
267
+ }>;
268
+ readonly "git.fetch": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
269
+ projectId: string;
270
+ repo?: string | undefined;
271
+ }) => Promise<{
272
+ repo: {
273
+ relativePath: string;
274
+ absDir: string;
275
+ name: string;
276
+ isRepo: true;
277
+ currentBranch: string | null;
278
+ detached: boolean;
279
+ ahead: number | null;
280
+ behind: number | null;
281
+ hasUpstream: boolean;
282
+ hasRemote: boolean;
283
+ hasGithubRemote: boolean;
284
+ baseBranch: string;
285
+ onBaseBranch: boolean;
286
+ mergedToBase: boolean;
287
+ dirty: boolean;
288
+ changeCount: number;
289
+ };
290
+ }>;
291
+ readonly "git.switchBaseAndPull": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
292
+ projectId: string;
293
+ repo?: string | undefined;
294
+ }) => Promise<{
295
+ repo: {
296
+ relativePath: string;
297
+ absDir: string;
298
+ name: string;
299
+ isRepo: true;
300
+ currentBranch: string | null;
301
+ detached: boolean;
302
+ ahead: number | null;
303
+ behind: number | null;
304
+ hasUpstream: boolean;
305
+ hasRemote: boolean;
306
+ hasGithubRemote: boolean;
307
+ baseBranch: string;
308
+ onBaseBranch: boolean;
309
+ mergedToBase: boolean;
310
+ dirty: boolean;
311
+ changeCount: number;
312
+ };
313
+ }>;
314
+ readonly "github.status.get": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
315
+ projectId: string;
316
+ repo?: string | undefined;
317
+ }) => Promise<{
318
+ available: boolean;
319
+ authenticated: boolean;
320
+ login: string | null;
321
+ reason?: string | undefined;
322
+ }>;
323
+ readonly "github.pr.list": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
324
+ projectId: string;
325
+ repo?: string | undefined;
326
+ filters?: {
327
+ author?: "any" | "username" | "me" | undefined;
328
+ username?: string | undefined;
329
+ drafts?: "include" | "exclude" | "only" | undefined;
330
+ title?: string | undefined;
331
+ head?: string | undefined;
332
+ labels?: string[] | undefined;
333
+ sort?: "updated-desc" | "updated-asc" | undefined;
334
+ } | undefined;
335
+ }) => Promise<{
336
+ prs: {
337
+ number: number;
338
+ title: string;
339
+ url: string;
340
+ state: string;
341
+ isDraft: boolean;
342
+ headRefName: string;
343
+ baseRefName: string;
344
+ updatedAt: string;
345
+ checks: {
346
+ status: "none" | "pending" | "passing" | "failing";
347
+ total: number;
348
+ passed: number;
349
+ failed: number;
350
+ pending: number;
351
+ runs: {
352
+ name: string;
353
+ status: string;
354
+ conclusion: string | null;
355
+ url?: string | undefined;
356
+ }[];
357
+ };
358
+ }[];
359
+ }>;
360
+ readonly "github.pr.get": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
361
+ projectId: string;
362
+ number: number;
363
+ repo?: string | undefined;
364
+ }) => Promise<{
365
+ number: number;
366
+ title: string;
367
+ url: string;
368
+ state: string;
369
+ isDraft: boolean;
370
+ headRefName: string;
371
+ baseRefName: string;
372
+ updatedAt: string;
373
+ checks: {
374
+ status: "none" | "pending" | "passing" | "failing";
375
+ total: number;
376
+ passed: number;
377
+ failed: number;
378
+ pending: number;
379
+ runs: {
380
+ name: string;
381
+ status: string;
382
+ conclusion: string | null;
383
+ url?: string | undefined;
384
+ }[];
385
+ };
386
+ body: string;
387
+ author: string | null;
388
+ createdAt: string;
389
+ additions: number;
390
+ deletions: number;
391
+ changedFiles: number;
392
+ mergeable: string | null;
393
+ reviewDecision: string | null;
394
+ files: {
395
+ path: string;
396
+ additions: number;
397
+ deletions: number;
398
+ }[];
399
+ commits: {
400
+ oid: string;
401
+ abbrev: string;
402
+ messageHeadline: string;
403
+ authoredDate?: string | undefined;
404
+ authorName?: string | undefined;
405
+ }[];
406
+ }>;
407
+ readonly "github.pr.checkout": (state: import("../../app/orchestrator-state.js").OrchestratorState, params: {
408
+ projectId: string;
409
+ number: number;
410
+ repo?: string | undefined;
411
+ }) => Promise<{
412
+ repo: {
413
+ relativePath: string;
414
+ absDir: string;
415
+ name: string;
416
+ isRepo: true;
417
+ currentBranch: string | null;
418
+ detached: boolean;
419
+ ahead: number | null;
420
+ behind: number | null;
421
+ hasUpstream: boolean;
422
+ hasRemote: boolean;
423
+ hasGithubRemote: boolean;
424
+ baseBranch: string;
425
+ onBaseBranch: boolean;
426
+ mergedToBase: boolean;
427
+ dirty: boolean;
428
+ changeCount: number;
429
+ };
430
+ number: number;
431
+ }>;
432
+ };
433
+ //# sourceMappingURL=git-method-handlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-method-handlers.d.ts","sourceRoot":"","sources":["../../../src/protocol/method-handlers/git-method-handlers.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmD5B,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { defineWorkbenchMethodHandlers } from "../method-handler-registry.js";
2
+ export const gitMethodHandlers = defineWorkbenchMethodHandlers({
3
+ "git.repos.discover": (state, params) => state.registry.git.discoverRepos(params.projectId),
4
+ "git.overview.get": (state, params) => state.registry.git.overview(params.projectId, repo(params)),
5
+ "git.branches.list": (state, params) => state.registry.git.listBranches(params.projectId, repo(params)),
6
+ "git.branch.create": (state, params) => state.registry.git.createBranch(params.projectId, repo(params), params.name),
7
+ "git.branch.switch": (state, params) => state.registry.git.switchBranch(params.projectId, repo(params), params.name),
8
+ "git.file.stage": (state, params) => state.registry.git.stageFile(params.projectId, repo(params), params.path),
9
+ "git.file.unstage": (state, params) => state.registry.git.unstageFile(params.projectId, repo(params), params.path),
10
+ "git.file.discard": (state, params) => state.registry.git.discardFile(params.projectId, repo(params), params.path),
11
+ "git.sync": (state, params) => state.registry.git.syncBranch(params.projectId, repo(params)),
12
+ "git.push": (state, params) => state.registry.git.push(params.projectId, repo(params)),
13
+ "git.pull": (state, params) => state.registry.git.pull(params.projectId, repo(params)),
14
+ "git.fetch": (state, params) => state.registry.git.fetch(params.projectId, repo(params)),
15
+ "git.switchBaseAndPull": (state, params) => state.registry.git.switchBaseAndPull(params.projectId, repo(params)),
16
+ "github.status.get": (state, params) => state.registry.git.githubStatus(params.projectId, repo(params)),
17
+ "github.pr.list": (state, params) => state.registry.git.listOpenPrs(params.projectId, repo(params), params.filters),
18
+ "github.pr.get": (state, params) => state.registry.git.prDetail(params.projectId, repo(params), params.number),
19
+ "github.pr.checkout": (state, params) => state.registry.git.checkoutPr(params.projectId, repo(params), params.number),
20
+ });
21
+ function repo(params) {
22
+ return params.repo || ".";
23
+ }
24
+ //# sourceMappingURL=git-method-handlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-method-handlers.js","sourceRoot":"","sources":["../../../src/protocol/method-handlers/git-method-handlers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAE9E,MAAM,CAAC,MAAM,iBAAiB,GAAG,6BAA6B,CAAC;IAC7D,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CACtC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC;IACpD,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CACpC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7D,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CACrC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACjE,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,EA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