@nervekit/desktop 0.12.0 → 0.14.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 (1163) hide show
  1. package/README.md +9 -20
  2. package/build/icons/16x16.png +0 -0
  3. package/build/icons/20x20.png +0 -0
  4. package/build/icons/24x24.png +0 -0
  5. package/build/icons/32x32.png +0 -0
  6. package/build/icons/40x40.png +0 -0
  7. package/build/icons/48x48.png +0 -0
  8. package/build/tray/linux/tray-dark.png +0 -0
  9. package/build/tray/linux/tray-light.png +0 -0
  10. package/build/tray/macos/nerveTemplate.png +0 -0
  11. package/build/tray/macos/nerveTemplate@2x.png +0 -0
  12. package/dist/app/startup-sequence.d.ts +28 -0
  13. package/dist/app/startup-sequence.d.ts.map +1 -0
  14. package/dist/app/startup-sequence.js +46 -0
  15. package/dist/app/startup-sequence.js.map +1 -0
  16. package/dist/main.js +56 -31
  17. package/dist/main.js.map +1 -1
  18. package/dist/settings/desktop-settings.d.ts +2 -1
  19. package/dist/settings/desktop-settings.d.ts.map +1 -1
  20. package/dist/settings/desktop-settings.js +7 -3
  21. package/dist/settings/desktop-settings.js.map +1 -1
  22. package/dist/window/initial-zoom.d.ts +3 -0
  23. package/dist/window/initial-zoom.d.ts.map +1 -0
  24. package/dist/window/initial-zoom.js +9 -0
  25. package/dist/window/initial-zoom.js.map +1 -0
  26. package/dist/window/loading-pages.js +2 -2
  27. package/node_modules/@nervekit/contracts/dist/core/ids.d.ts +1 -1
  28. package/node_modules/@nervekit/contracts/dist/core/ids.d.ts.map +1 -1
  29. package/node_modules/@nervekit/contracts/dist/core/ids.js.map +1 -1
  30. package/node_modules/@nervekit/contracts/dist/domains/agents/agent.operations.schema.js +7 -7
  31. package/node_modules/@nervekit/contracts/dist/domains/agents/agent.operations.schema.js.map +1 -1
  32. package/node_modules/@nervekit/contracts/dist/domains/agents/index.d.ts +1 -0
  33. package/node_modules/@nervekit/contracts/dist/domains/agents/index.d.ts.map +1 -1
  34. package/node_modules/@nervekit/contracts/dist/domains/agents/index.js +1 -0
  35. package/node_modules/@nervekit/contracts/dist/domains/agents/index.js.map +1 -1
  36. package/node_modules/@nervekit/contracts/dist/domains/agents/run.events.schema.d.ts +2 -0
  37. package/node_modules/@nervekit/contracts/dist/domains/agents/run.events.schema.d.ts.map +1 -0
  38. package/node_modules/@nervekit/contracts/dist/domains/agents/run.events.schema.js +62 -0
  39. package/node_modules/@nervekit/contracts/dist/domains/agents/run.events.schema.js.map +1 -0
  40. package/node_modules/@nervekit/contracts/dist/domains/agents/run.operations.schema.js +1 -1
  41. package/node_modules/@nervekit/contracts/dist/domains/agents/run.operations.schema.js.map +1 -1
  42. package/node_modules/@nervekit/contracts/dist/domains/auth/auth.operations.schema.js +1 -1
  43. package/node_modules/@nervekit/contracts/dist/domains/auth/auth.operations.schema.js.map +1 -1
  44. package/node_modules/@nervekit/contracts/dist/domains/auth/auth.schema.d.ts +2 -2
  45. package/node_modules/@nervekit/contracts/dist/domains/completions/completion.operations.schema.js +2 -2
  46. package/node_modules/@nervekit/contracts/dist/domains/completions/completion.operations.schema.js.map +1 -1
  47. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.d.ts +2 -1
  48. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.d.ts.map +1 -1
  49. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.events.schema.js +3 -1
  50. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.events.schema.js.map +1 -1
  51. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.js +15 -10
  52. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.js.map +1 -1
  53. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.events.schema.d.ts.map +1 -1
  54. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.events.schema.js +2 -3
  55. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.events.schema.js.map +1 -1
  56. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.operations.schema.d.ts +4 -0
  57. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.operations.schema.d.ts.map +1 -1
  58. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.operations.schema.js +11 -10
  59. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.operations.schema.js.map +1 -1
  60. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.schema.d.ts +68 -43
  61. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.schema.d.ts.map +1 -1
  62. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.schema.js +35 -3
  63. package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.schema.js.map +1 -1
  64. package/node_modules/@nervekit/contracts/dist/domains/events/bounded-public-data.schema.d.ts +2 -0
  65. package/node_modules/@nervekit/contracts/dist/domains/events/bounded-public-data.schema.d.ts.map +1 -1
  66. package/node_modules/@nervekit/contracts/dist/domains/events/bounded-public-data.schema.js +5 -5
  67. package/node_modules/@nervekit/contracts/dist/domains/events/bounded-public-data.schema.js.map +1 -1
  68. package/node_modules/@nervekit/contracts/dist/domains/events/event-definition.schema.js +1 -1
  69. package/node_modules/@nervekit/contracts/dist/domains/events/event-definition.schema.js.map +1 -1
  70. package/node_modules/@nervekit/contracts/dist/domains/events/public-event-catalog.schema.d.ts.map +1 -1
  71. package/node_modules/@nervekit/contracts/dist/domains/events/public-event-catalog.schema.js +4 -4
  72. package/node_modules/@nervekit/contracts/dist/domains/events/public-event-catalog.schema.js.map +1 -1
  73. package/node_modules/@nervekit/contracts/dist/domains/filesystem/filesystem.operations.schema.d.ts +2 -2
  74. package/node_modules/@nervekit/contracts/dist/domains/filesystem/filesystem.operations.schema.js +1 -1
  75. package/node_modules/@nervekit/contracts/dist/domains/filesystem/filesystem.operations.schema.js.map +1 -1
  76. package/node_modules/@nervekit/contracts/dist/domains/filesystem/filesystem.schema.d.ts +4 -4
  77. package/node_modules/@nervekit/contracts/dist/domains/git/git.operations.schema.d.ts +1 -1
  78. package/node_modules/@nervekit/contracts/dist/domains/git/git.operations.schema.js +17 -17
  79. package/node_modules/@nervekit/contracts/dist/domains/git/git.operations.schema.js.map +1 -1
  80. package/node_modules/@nervekit/contracts/dist/domains/git/git.schema.d.ts +2 -2
  81. package/node_modules/@nervekit/contracts/dist/domains/logs/logs.operations.schema.js +1 -1
  82. package/node_modules/@nervekit/contracts/dist/domains/logs/logs.operations.schema.js.map +1 -1
  83. package/node_modules/@nervekit/contracts/dist/domains/logs/structured-logger.d.ts +7 -8
  84. package/node_modules/@nervekit/contracts/dist/domains/logs/structured-logger.d.ts.map +1 -1
  85. package/node_modules/@nervekit/contracts/dist/domains/logs/structured-logger.js +5 -6
  86. package/node_modules/@nervekit/contracts/dist/domains/logs/structured-logger.js.map +1 -1
  87. package/node_modules/@nervekit/contracts/dist/domains/models/model.operations.schema.js +1 -1
  88. package/node_modules/@nervekit/contracts/dist/domains/models/model.operations.schema.js.map +1 -1
  89. package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.operations.schema.d.ts +30 -50
  90. package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.operations.schema.d.ts.map +1 -1
  91. package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.operations.schema.js +14 -45
  92. package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.operations.schema.js.map +1 -1
  93. package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.schema.d.ts +16 -0
  94. package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.schema.d.ts.map +1 -1
  95. package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.schema.js +3 -0
  96. package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.schema.js.map +1 -1
  97. package/node_modules/@nervekit/contracts/dist/domains/plans/plan.events.schema.d.ts +0 -1
  98. package/node_modules/@nervekit/contracts/dist/domains/plans/plan.events.schema.d.ts.map +1 -1
  99. package/node_modules/@nervekit/contracts/dist/domains/plans/plan.events.schema.js +1 -2
  100. package/node_modules/@nervekit/contracts/dist/domains/plans/plan.events.schema.js.map +1 -1
  101. package/node_modules/@nervekit/contracts/dist/domains/projects/project.operations.schema.js +6 -6
  102. package/node_modules/@nervekit/contracts/dist/domains/projects/project.operations.schema.js.map +1 -1
  103. package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.events.schema.d.ts +11 -0
  104. package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.events.schema.d.ts.map +1 -1
  105. package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.events.schema.js +10 -1
  106. package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.events.schema.js.map +1 -1
  107. package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.operations.schema.d.ts +67 -0
  108. package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.operations.schema.d.ts.map +1 -1
  109. package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.operations.schema.js +6 -4
  110. package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.operations.schema.js.map +1 -1
  111. package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.schema.d.ts +80 -0
  112. package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.schema.d.ts.map +1 -1
  113. package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.schema.js +55 -1
  114. package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.schema.js.map +1 -1
  115. package/node_modules/@nervekit/contracts/dist/domains/protocol/envelope.schema.d.ts +0 -12
  116. package/node_modules/@nervekit/contracts/dist/domains/protocol/envelope.schema.d.ts.map +1 -1
  117. package/node_modules/@nervekit/contracts/dist/domains/protocol/envelope.schema.js +0 -2
  118. package/node_modules/@nervekit/contracts/dist/domains/protocol/envelope.schema.js.map +1 -1
  119. package/node_modules/@nervekit/contracts/dist/domains/protocol/errors.schema.d.ts +0 -4
  120. package/node_modules/@nervekit/contracts/dist/domains/protocol/errors.schema.d.ts.map +1 -1
  121. package/node_modules/@nervekit/contracts/dist/domains/protocol/event-stream.schema.d.ts +0 -4
  122. package/node_modules/@nervekit/contracts/dist/domains/protocol/event-stream.schema.d.ts.map +1 -1
  123. package/node_modules/@nervekit/contracts/dist/domains/protocol/http.schema.d.ts +34 -82
  124. package/node_modules/@nervekit/contracts/dist/domains/protocol/http.schema.d.ts.map +1 -1
  125. package/node_modules/@nervekit/contracts/dist/domains/protocol/messages.schema.d.ts +18 -88
  126. package/node_modules/@nervekit/contracts/dist/domains/protocol/messages.schema.d.ts.map +1 -1
  127. package/node_modules/@nervekit/contracts/dist/domains/protocol/notify.schema.d.ts +0 -4
  128. package/node_modules/@nervekit/contracts/dist/domains/protocol/notify.schema.d.ts.map +1 -1
  129. package/node_modules/@nervekit/contracts/dist/domains/protocol/operation-catalog.schema.d.ts +638 -7027
  130. package/node_modules/@nervekit/contracts/dist/domains/protocol/operation-catalog.schema.d.ts.map +1 -1
  131. package/node_modules/@nervekit/contracts/dist/domains/protocol/operation-catalog.schema.js +2 -4
  132. package/node_modules/@nervekit/contracts/dist/domains/protocol/operation-catalog.schema.js.map +1 -1
  133. package/node_modules/@nervekit/contracts/dist/domains/protocol/session.schema.d.ts +2 -26
  134. package/node_modules/@nervekit/contracts/dist/domains/protocol/session.schema.d.ts.map +1 -1
  135. package/node_modules/@nervekit/contracts/dist/domains/protocol/snapshot.schema.d.ts +55 -7
  136. package/node_modules/@nervekit/contracts/dist/domains/protocol/snapshot.schema.d.ts.map +1 -1
  137. package/node_modules/@nervekit/contracts/dist/domains/protocol/stream-subscription.schema.d.ts +0 -8
  138. package/node_modules/@nervekit/contracts/dist/domains/protocol/stream-subscription.schema.d.ts.map +1 -1
  139. package/node_modules/@nervekit/contracts/dist/domains/providers/provider.operations.schema.d.ts +24 -24
  140. package/node_modules/@nervekit/contracts/dist/domains/providers/provider.operations.schema.js +5 -5
  141. package/node_modules/@nervekit/contracts/dist/domains/providers/provider.operations.schema.js.map +1 -1
  142. package/node_modules/@nervekit/contracts/dist/domains/providers/providers.schema.d.ts +14 -14
  143. package/node_modules/@nervekit/contracts/dist/domains/runs/run-runtime.schema.d.ts +13 -13
  144. package/node_modules/@nervekit/contracts/dist/domains/settings/settings.operations.schema.js +2 -2
  145. package/node_modules/@nervekit/contracts/dist/domains/settings/settings.operations.schema.js.map +1 -1
  146. package/node_modules/@nervekit/contracts/dist/domains/snapshots/snapshot.operations.schema.d.ts +28 -4
  147. package/node_modules/@nervekit/contracts/dist/domains/snapshots/snapshot.operations.schema.d.ts.map +1 -1
  148. package/node_modules/@nervekit/contracts/dist/domains/snapshots/snapshot.operations.schema.js +2 -2
  149. package/node_modules/@nervekit/contracts/dist/domains/snapshots/snapshot.operations.schema.js.map +1 -1
  150. package/node_modules/@nervekit/contracts/dist/domains/storage/storage.operations.schema.d.ts +14 -14
  151. package/node_modules/@nervekit/contracts/dist/domains/storage/storage.operations.schema.js +6 -6
  152. package/node_modules/@nervekit/contracts/dist/domains/storage/storage.operations.schema.js.map +1 -1
  153. package/node_modules/@nervekit/contracts/dist/domains/storage/storage.schema.d.ts +27 -27
  154. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/index.d.ts +3 -0
  155. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/index.d.ts.map +1 -0
  156. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/index.js +3 -0
  157. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/index.js.map +1 -0
  158. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.events.schema.d.ts +2 -0
  159. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.events.schema.d.ts.map +1 -0
  160. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.events.schema.js +10 -0
  161. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.events.schema.js.map +1 -0
  162. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.operations.schema.d.ts +81 -0
  163. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.operations.schema.d.ts.map +1 -0
  164. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.operations.schema.js +26 -0
  165. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.operations.schema.js.map +1 -0
  166. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.schema.d.ts +50 -0
  167. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.schema.d.ts.map +1 -0
  168. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.schema.js +30 -0
  169. package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.schema.js.map +1 -0
  170. package/node_modules/@nervekit/contracts/dist/domains/tasks/task.events.schema.d.ts.map +1 -1
  171. package/node_modules/@nervekit/contracts/dist/domains/tasks/task.events.schema.js +4 -0
  172. package/node_modules/@nervekit/contracts/dist/domains/tasks/task.events.schema.js.map +1 -1
  173. package/node_modules/@nervekit/contracts/dist/domains/tasks/task.operations.schema.d.ts +315 -10
  174. package/node_modules/@nervekit/contracts/dist/domains/tasks/task.operations.schema.d.ts.map +1 -1
  175. package/node_modules/@nervekit/contracts/dist/domains/tasks/task.operations.schema.js +18 -8
  176. package/node_modules/@nervekit/contracts/dist/domains/tasks/task.operations.schema.js.map +1 -1
  177. package/node_modules/@nervekit/contracts/dist/domains/tasks/task.schema.d.ts +95 -6
  178. package/node_modules/@nervekit/contracts/dist/domains/tasks/task.schema.d.ts.map +1 -1
  179. package/node_modules/@nervekit/contracts/dist/domains/tasks/task.schema.js +27 -0
  180. package/node_modules/@nervekit/contracts/dist/domains/tasks/task.schema.js.map +1 -1
  181. package/node_modules/@nervekit/contracts/dist/domains/tools/index.d.ts +0 -1
  182. package/node_modules/@nervekit/contracts/dist/domains/tools/index.d.ts.map +1 -1
  183. package/node_modules/@nervekit/contracts/dist/domains/tools/index.js +0 -1
  184. package/node_modules/@nervekit/contracts/dist/domains/tools/index.js.map +1 -1
  185. package/node_modules/@nervekit/contracts/dist/domains/tools/task-tool-previews.schema.d.ts +45 -18
  186. package/node_modules/@nervekit/contracts/dist/domains/tools/task-tool-previews.schema.d.ts.map +1 -1
  187. package/node_modules/@nervekit/contracts/dist/domains/tools/tool-results.schema.d.ts +150 -18
  188. package/node_modules/@nervekit/contracts/dist/domains/tools/tool-results.schema.d.ts.map +1 -1
  189. package/node_modules/@nervekit/contracts/dist/domains/tools/tool.operations.schema.d.ts +2 -37
  190. package/node_modules/@nervekit/contracts/dist/domains/tools/tool.operations.schema.d.ts.map +1 -1
  191. package/node_modules/@nervekit/contracts/dist/domains/tools/tool.operations.schema.js +15 -19
  192. package/node_modules/@nervekit/contracts/dist/domains/tools/tool.operations.schema.js.map +1 -1
  193. package/node_modules/@nervekit/contracts/dist/domains/usage/usage.operations.schema.js +1 -1
  194. package/node_modules/@nervekit/contracts/dist/domains/usage/usage.operations.schema.js.map +1 -1
  195. package/node_modules/@nervekit/contracts/dist/domains/workers/worker.operations.schema.d.ts +2 -2
  196. package/node_modules/@nervekit/contracts/dist/domains/workers/worker.operations.schema.js +2 -2
  197. package/node_modules/@nervekit/contracts/dist/domains/workers/worker.operations.schema.js.map +1 -1
  198. package/node_modules/@nervekit/contracts/dist/domains/workers/worker.schema.d.ts +2 -2
  199. package/node_modules/@nervekit/contracts/dist/index.d.ts +1 -1
  200. package/node_modules/@nervekit/contracts/dist/index.d.ts.map +1 -1
  201. package/node_modules/@nervekit/contracts/dist/index.js +1 -1
  202. package/node_modules/@nervekit/contracts/dist/index.js.map +1 -1
  203. package/node_modules/@nervekit/contracts/package.json +2 -3
  204. package/node_modules/@nervekit/harness/dist/{agent.d.ts → agent/agent.d.ts} +2 -2
  205. package/node_modules/@nervekit/harness/dist/agent/agent.d.ts.map +1 -0
  206. package/node_modules/@nervekit/harness/dist/{agent.js → agent/agent.js} +2 -2
  207. package/node_modules/@nervekit/harness/dist/agent/agent.js.map +1 -0
  208. package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/agent-loop.d.ts +1 -1
  209. package/node_modules/@nervekit/harness/dist/agent/loop/agent-loop.d.ts.map +1 -0
  210. package/node_modules/@nervekit/harness/dist/agent/loop/agent-loop.js.map +1 -0
  211. package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/events.d.ts +1 -1
  212. package/node_modules/@nervekit/harness/dist/agent/loop/events.d.ts.map +1 -0
  213. package/node_modules/@nervekit/harness/dist/agent/loop/events.js.map +1 -0
  214. package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/stream-assistant.d.ts +1 -1
  215. package/node_modules/@nervekit/harness/dist/agent/loop/stream-assistant.d.ts.map +1 -0
  216. package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/stream-assistant.js +2 -2
  217. package/node_modules/@nervekit/harness/dist/agent/loop/stream-assistant.js.map +1 -0
  218. package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/tool-execution.d.ts +1 -1
  219. package/node_modules/@nervekit/harness/dist/agent/loop/tool-execution.d.ts.map +1 -0
  220. package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/tool-execution.js +1 -1
  221. package/node_modules/@nervekit/harness/dist/agent/loop/tool-execution.js.map +1 -0
  222. package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/turn-loop.d.ts +1 -1
  223. package/node_modules/@nervekit/harness/dist/agent/loop/turn-loop.d.ts.map +1 -0
  224. package/node_modules/@nervekit/harness/dist/agent/loop/turn-loop.js.map +1 -0
  225. package/node_modules/@nervekit/harness/dist/{suspension.d.ts → agent/suspension.d.ts} +1 -1
  226. package/node_modules/@nervekit/harness/dist/agent/suspension.d.ts.map +1 -0
  227. package/node_modules/@nervekit/harness/dist/agent/suspension.js.map +1 -0
  228. package/node_modules/@nervekit/harness/dist/{tool-adapter.d.ts → agent/tool-adapter.d.ts} +1 -1
  229. package/node_modules/@nervekit/harness/dist/agent/tool-adapter.d.ts.map +1 -0
  230. package/node_modules/@nervekit/harness/dist/agent/tool-adapter.js.map +1 -0
  231. package/node_modules/@nervekit/harness/dist/agent/types/agent.d.ts +83 -0
  232. package/node_modules/@nervekit/harness/dist/agent/types/agent.d.ts.map +1 -0
  233. package/node_modules/@nervekit/harness/dist/agent/types/agent.js +2 -0
  234. package/node_modules/@nervekit/harness/dist/agent/types/agent.js.map +1 -0
  235. package/node_modules/@nervekit/harness/dist/agent/types/common.d.ts +26 -0
  236. package/node_modules/@nervekit/harness/dist/agent/types/common.d.ts.map +1 -0
  237. package/node_modules/@nervekit/harness/dist/agent/types/common.js +2 -0
  238. package/node_modules/@nervekit/harness/dist/agent/types/common.js.map +1 -0
  239. package/node_modules/@nervekit/harness/dist/agent/types/index.d.ts +6 -0
  240. package/node_modules/@nervekit/harness/dist/agent/types/index.d.ts.map +1 -0
  241. package/node_modules/@nervekit/harness/dist/agent/types/index.js +6 -0
  242. package/node_modules/@nervekit/harness/dist/agent/types/index.js.map +1 -0
  243. package/node_modules/@nervekit/harness/dist/{types.d.ts → agent/types/loop.d.ts} +5 -197
  244. package/node_modules/@nervekit/harness/dist/agent/types/loop.d.ts.map +1 -0
  245. package/node_modules/@nervekit/harness/dist/agent/types/loop.js +2 -0
  246. package/node_modules/@nervekit/harness/dist/agent/types/loop.js.map +1 -0
  247. package/node_modules/@nervekit/harness/dist/agent/types/messages.d.ts +24 -0
  248. package/node_modules/@nervekit/harness/dist/agent/types/messages.d.ts.map +1 -0
  249. package/node_modules/@nervekit/harness/dist/agent/types/messages.js +2 -0
  250. package/node_modules/@nervekit/harness/dist/agent/types/messages.js.map +1 -0
  251. package/node_modules/@nervekit/harness/dist/agent/types/tools.d.ts +74 -0
  252. package/node_modules/@nervekit/harness/dist/agent/types/tools.d.ts.map +1 -0
  253. package/node_modules/@nervekit/harness/dist/agent/types/tools.js +2 -0
  254. package/node_modules/@nervekit/harness/dist/agent/types/tools.js.map +1 -0
  255. package/node_modules/@nervekit/harness/dist/harness/agent-harness.d.ts +6 -5
  256. package/node_modules/@nervekit/harness/dist/harness/agent-harness.d.ts.map +1 -1
  257. package/node_modules/@nervekit/harness/dist/harness/agent-harness.js +67 -191
  258. package/node_modules/@nervekit/harness/dist/harness/agent-harness.js.map +1 -1
  259. package/node_modules/@nervekit/harness/dist/harness/compaction/branch-summarization.d.ts +2 -2
  260. package/node_modules/@nervekit/harness/dist/harness/compaction/branch-summarization.d.ts.map +1 -1
  261. package/node_modules/@nervekit/harness/dist/harness/compaction/branch-summarization.js +1 -1
  262. package/node_modules/@nervekit/harness/dist/harness/compaction/branch-summarization.js.map +1 -1
  263. package/node_modules/@nervekit/harness/dist/harness/compaction/compaction.d.ts +23 -2
  264. package/node_modules/@nervekit/harness/dist/harness/compaction/compaction.d.ts.map +1 -1
  265. package/node_modules/@nervekit/harness/dist/harness/compaction/compaction.js +55 -16
  266. package/node_modules/@nervekit/harness/dist/harness/compaction/compaction.js.map +1 -1
  267. package/node_modules/@nervekit/harness/dist/harness/compaction/types.d.ts +1 -1
  268. package/node_modules/@nervekit/harness/dist/harness/compaction/types.d.ts.map +1 -1
  269. package/node_modules/@nervekit/harness/dist/harness/compaction/usage.d.ts +1 -1
  270. package/node_modules/@nervekit/harness/dist/harness/compaction/usage.d.ts.map +1 -1
  271. package/node_modules/@nervekit/harness/dist/harness/compaction/utils.d.ts +1 -1
  272. package/node_modules/@nervekit/harness/dist/harness/compaction/utils.d.ts.map +1 -1
  273. package/node_modules/@nervekit/harness/dist/harness/{harness-configuration-methods.d.ts → configuration/operations.d.ts} +4 -4
  274. package/node_modules/@nervekit/harness/dist/harness/configuration/operations.d.ts.map +1 -0
  275. package/node_modules/@nervekit/harness/dist/harness/{harness-configuration-methods.js → configuration/operations.js} +5 -5
  276. package/node_modules/@nervekit/harness/dist/harness/configuration/operations.js.map +1 -0
  277. package/node_modules/@nervekit/harness/dist/harness/{options.d.ts → configuration/options.d.ts} +3 -3
  278. package/node_modules/@nervekit/harness/dist/harness/configuration/options.d.ts.map +1 -0
  279. package/node_modules/@nervekit/harness/dist/harness/configuration/options.js.map +1 -0
  280. package/node_modules/@nervekit/harness/dist/harness/configuration/stream-options.d.ts.map +1 -0
  281. package/node_modules/@nervekit/harness/dist/harness/configuration/stream-options.js.map +1 -0
  282. package/node_modules/@nervekit/harness/dist/harness/{configuration.d.ts → configuration/tools.d.ts} +3 -3
  283. package/node_modules/@nervekit/harness/dist/harness/configuration/tools.d.ts.map +1 -0
  284. package/node_modules/@nervekit/harness/dist/harness/{configuration.js → configuration/tools.js} +2 -2
  285. package/node_modules/@nervekit/harness/dist/harness/configuration/tools.js.map +1 -0
  286. package/node_modules/@nervekit/harness/dist/harness/{turn-state.d.ts → configuration/turn-state.d.ts} +3 -3
  287. package/node_modules/@nervekit/harness/dist/harness/configuration/turn-state.d.ts.map +1 -0
  288. package/node_modules/@nervekit/harness/dist/harness/configuration/turn-state.js.map +1 -0
  289. package/node_modules/@nervekit/harness/dist/harness/conversation/context.d.ts +1 -1
  290. package/node_modules/@nervekit/harness/dist/harness/conversation/context.d.ts.map +1 -1
  291. package/node_modules/@nervekit/harness/dist/harness/conversation/conversation.d.ts +1 -1
  292. package/node_modules/@nervekit/harness/dist/harness/conversation/conversation.d.ts.map +1 -1
  293. package/node_modules/@nervekit/harness/dist/harness/conversation/entries.d.ts +1 -1
  294. package/node_modules/@nervekit/harness/dist/harness/conversation/entries.d.ts.map +1 -1
  295. package/node_modules/@nervekit/harness/dist/harness/conversation/jsonl-repo.d.ts +1 -1
  296. package/node_modules/@nervekit/harness/dist/harness/conversation/jsonl-repo.d.ts.map +1 -1
  297. package/node_modules/@nervekit/harness/dist/harness/conversation/jsonl-storage.d.ts +1 -1
  298. package/node_modules/@nervekit/harness/dist/harness/conversation/jsonl-storage.d.ts.map +1 -1
  299. package/node_modules/@nervekit/harness/dist/harness/environment/nodejs.d.ts.map +1 -0
  300. package/node_modules/@nervekit/harness/dist/harness/environment/nodejs.js.map +1 -0
  301. package/node_modules/@nervekit/harness/dist/harness/environment/types.d.ts.map +1 -0
  302. package/node_modules/@nervekit/harness/dist/harness/environment/types.js.map +1 -0
  303. package/node_modules/@nervekit/harness/dist/harness/{harness-events.d.ts → lifecycle/event-hub.d.ts} +4 -4
  304. package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-hub.d.ts.map +1 -0
  305. package/node_modules/@nervekit/harness/dist/harness/{harness-events.js → lifecycle/event-hub.js} +4 -4
  306. package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-hub.js.map +1 -0
  307. package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-processing.d.ts +26 -0
  308. package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-processing.d.ts.map +1 -0
  309. package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-processing.js +52 -0
  310. package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-processing.js.map +1 -0
  311. package/node_modules/@nervekit/harness/dist/harness/{events.d.ts → lifecycle/events.d.ts} +3 -3
  312. package/node_modules/@nervekit/harness/dist/harness/lifecycle/events.d.ts.map +1 -0
  313. package/node_modules/@nervekit/harness/dist/harness/{events.js.map → lifecycle/events.js.map} +1 -1
  314. package/node_modules/@nervekit/harness/dist/harness/{harness-maintenance.d.ts → maintenance/operations.d.ts} +5 -5
  315. package/node_modules/@nervekit/harness/dist/harness/maintenance/operations.d.ts.map +1 -0
  316. package/node_modules/@nervekit/harness/dist/harness/{harness-maintenance.js → maintenance/operations.js} +6 -6
  317. package/node_modules/@nervekit/harness/dist/harness/maintenance/operations.js.map +1 -0
  318. package/node_modules/@nervekit/harness/dist/harness/messages.d.ts +3 -3
  319. package/node_modules/@nervekit/harness/dist/harness/messages.d.ts.map +1 -1
  320. package/node_modules/@nervekit/harness/dist/harness/messages.js.map +1 -1
  321. package/node_modules/@nervekit/harness/dist/harness/{utils/env-path.d.ts → path-utils.d.ts} +1 -1
  322. package/node_modules/@nervekit/harness/dist/harness/path-utils.d.ts.map +1 -0
  323. package/node_modules/@nervekit/harness/dist/harness/{utils/env-path.js → path-utils.js} +1 -1
  324. package/node_modules/@nervekit/harness/dist/harness/path-utils.js.map +1 -0
  325. package/node_modules/@nervekit/harness/dist/harness/{harness-queue-coalescing.d.ts → queue/coalescing.d.ts} +3 -3
  326. package/node_modules/@nervekit/harness/dist/harness/queue/coalescing.d.ts.map +1 -0
  327. package/node_modules/@nervekit/harness/dist/harness/{harness-queue-coalescing.js → queue/coalescing.js} +2 -2
  328. package/node_modules/@nervekit/harness/dist/harness/queue/coalescing.js.map +1 -0
  329. package/node_modules/@nervekit/harness/dist/harness/{harness-queue-methods.d.ts → queue/operations.d.ts} +14 -4
  330. package/node_modules/@nervekit/harness/dist/harness/queue/operations.d.ts.map +1 -0
  331. package/node_modules/@nervekit/harness/dist/harness/{harness-queue-methods.js → queue/operations.js} +35 -5
  332. package/node_modules/@nervekit/harness/dist/harness/queue/operations.js.map +1 -0
  333. package/node_modules/@nervekit/harness/dist/harness/{harness-invocations.d.ts → resources/invocations.d.ts} +4 -4
  334. package/node_modules/@nervekit/harness/dist/harness/resources/invocations.d.ts.map +1 -0
  335. package/node_modules/@nervekit/harness/dist/harness/{harness-invocations.js → resources/invocations.js} +3 -3
  336. package/node_modules/@nervekit/harness/dist/harness/resources/invocations.js.map +1 -0
  337. package/node_modules/@nervekit/harness/dist/harness/{prompt-templates.d.ts → resources/prompt-templates.d.ts} +2 -2
  338. package/node_modules/@nervekit/harness/dist/harness/resources/prompt-templates.d.ts.map +1 -0
  339. package/node_modules/@nervekit/harness/dist/harness/{prompt-templates.js → resources/prompt-templates.js} +2 -2
  340. package/node_modules/@nervekit/harness/dist/harness/resources/prompt-templates.js.map +1 -0
  341. package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/format.d.ts +1 -1
  342. package/node_modules/@nervekit/harness/dist/harness/resources/skills/format.d.ts.map +1 -0
  343. package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/format.js +1 -1
  344. package/node_modules/@nervekit/harness/dist/harness/resources/skills/format.js.map +1 -0
  345. package/node_modules/@nervekit/harness/dist/harness/resources/skills/index.d.ts.map +1 -0
  346. package/node_modules/@nervekit/harness/dist/harness/resources/skills/index.js.map +1 -0
  347. package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/loader.d.ts +2 -2
  348. package/node_modules/@nervekit/harness/dist/harness/resources/skills/loader.d.ts.map +1 -0
  349. package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/loader.js +1 -1
  350. package/node_modules/@nervekit/harness/dist/harness/resources/skills/loader.js.map +1 -0
  351. package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/parser.d.ts +1 -1
  352. package/node_modules/@nervekit/harness/dist/harness/resources/skills/parser.d.ts.map +1 -0
  353. package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/parser.js +1 -1
  354. package/node_modules/@nervekit/harness/dist/harness/resources/skills/parser.js.map +1 -0
  355. package/node_modules/@nervekit/harness/dist/harness/resources/skills/validation.d.ts.map +1 -0
  356. package/node_modules/@nervekit/harness/dist/harness/resources/skills/validation.js.map +1 -0
  357. package/node_modules/@nervekit/harness/dist/harness/resources/system-prompt.d.ts.map +1 -0
  358. package/node_modules/@nervekit/harness/dist/harness/resources/system-prompt.js.map +1 -0
  359. package/node_modules/@nervekit/harness/dist/harness/{harness-continuation.d.ts → run/continuation.d.ts} +4 -4
  360. package/node_modules/@nervekit/harness/dist/harness/run/continuation.d.ts.map +1 -0
  361. package/node_modules/@nervekit/harness/dist/harness/{harness-continuation.js → run/continuation.js} +6 -6
  362. package/node_modules/@nervekit/harness/dist/harness/run/continuation.js.map +1 -0
  363. package/node_modules/@nervekit/harness/dist/harness/{conversation-writes.d.ts → run/conversation-writes.d.ts} +3 -3
  364. package/node_modules/@nervekit/harness/dist/harness/run/conversation-writes.d.ts.map +1 -0
  365. package/node_modules/@nervekit/harness/dist/harness/run/conversation-writes.js.map +1 -0
  366. package/node_modules/@nervekit/harness/dist/harness/run/execution.d.ts +42 -0
  367. package/node_modules/@nervekit/harness/dist/harness/run/execution.d.ts.map +1 -0
  368. package/node_modules/@nervekit/harness/dist/harness/run/execution.js +118 -0
  369. package/node_modules/@nervekit/harness/dist/harness/run/execution.js.map +1 -0
  370. package/node_modules/@nervekit/harness/dist/harness/run/messages.d.ts +1 -1
  371. package/node_modules/@nervekit/harness/dist/harness/run/messages.d.ts.map +1 -1
  372. package/node_modules/@nervekit/harness/dist/index.d.ts +24 -14
  373. package/node_modules/@nervekit/harness/dist/index.d.ts.map +1 -1
  374. package/node_modules/@nervekit/harness/dist/index.js +23 -13
  375. package/node_modules/@nervekit/harness/dist/index.js.map +1 -1
  376. package/node_modules/@nervekit/harness/dist/models/image-normalization.d.ts.map +1 -0
  377. package/node_modules/@nervekit/harness/dist/models/image-normalization.js.map +1 -0
  378. package/node_modules/@nervekit/harness/dist/models/prompt-stream.d.ts +4 -0
  379. package/node_modules/@nervekit/harness/dist/models/prompt-stream.d.ts.map +1 -0
  380. package/node_modules/@nervekit/harness/dist/models/prompt-stream.js +23 -0
  381. package/node_modules/@nervekit/harness/dist/models/prompt-stream.js.map +1 -0
  382. package/node_modules/@nervekit/harness/dist/models/provider-error-classification.d.ts +3 -0
  383. package/node_modules/@nervekit/harness/dist/models/provider-error-classification.d.ts.map +1 -0
  384. package/node_modules/@nervekit/harness/dist/models/provider-error-classification.js +9 -0
  385. package/node_modules/@nervekit/harness/dist/models/provider-error-classification.js.map +1 -0
  386. package/node_modules/@nervekit/harness/dist/{pi-ai-models.d.ts → models/provider-registry.d.ts} +1 -1
  387. package/node_modules/@nervekit/harness/dist/models/provider-registry.d.ts.map +1 -0
  388. package/node_modules/@nervekit/harness/dist/{pi-ai-models.js → models/provider-registry.js} +1 -1
  389. package/node_modules/@nervekit/harness/dist/models/provider-registry.js.map +1 -0
  390. package/node_modules/@nervekit/harness/dist/models/resolution.d.ts +17 -0
  391. package/node_modules/@nervekit/harness/dist/models/resolution.d.ts.map +1 -0
  392. package/node_modules/@nervekit/harness/dist/{runtime.js → models/resolution.js} +5 -74
  393. package/node_modules/@nervekit/harness/dist/models/resolution.js.map +1 -0
  394. package/node_modules/@nervekit/harness/dist/models/scripted-provider.d.ts +10 -0
  395. package/node_modules/@nervekit/harness/dist/models/scripted-provider.d.ts.map +1 -0
  396. package/node_modules/@nervekit/harness/dist/models/scripted-provider.js +55 -0
  397. package/node_modules/@nervekit/harness/dist/models/scripted-provider.js.map +1 -0
  398. package/node_modules/@nervekit/harness/dist/{runtime.d.ts → models/types.d.ts} +3 -23
  399. package/node_modules/@nervekit/harness/dist/models/types.d.ts.map +1 -0
  400. package/node_modules/@nervekit/harness/dist/{harness/env → models}/types.js.map +1 -1
  401. package/node_modules/@nervekit/harness/dist/node.d.ts +1 -1
  402. package/node_modules/@nervekit/harness/dist/node.d.ts.map +1 -1
  403. package/node_modules/@nervekit/harness/dist/node.js +1 -1
  404. package/node_modules/@nervekit/harness/dist/node.js.map +1 -1
  405. package/node_modules/@nervekit/harness/dist/{proxy.d.ts → transport/proxy.d.ts} +1 -1
  406. package/node_modules/@nervekit/harness/dist/transport/proxy.d.ts.map +1 -0
  407. package/node_modules/@nervekit/harness/dist/transport/proxy.js.map +1 -0
  408. package/node_modules/@nervekit/harness/package.json +4 -4
  409. package/node_modules/@nervekit/protocol/dist/http-client.d.ts.map +1 -1
  410. package/node_modules/@nervekit/protocol/dist/http-client.js +0 -3
  411. package/node_modules/@nervekit/protocol/dist/http-client.js.map +1 -1
  412. package/node_modules/@nervekit/protocol/dist/rpc.d.ts.map +1 -1
  413. package/node_modules/@nervekit/protocol/dist/rpc.js +0 -3
  414. package/node_modules/@nervekit/protocol/dist/rpc.js.map +1 -1
  415. package/node_modules/@nervekit/protocol/package.json +2 -2
  416. package/node_modules/@nervekit/tools/dist/catalog/orchestration/task.tools.d.ts +1 -1
  417. package/node_modules/@nervekit/tools/dist/catalog/orchestration/task.tools.d.ts.map +1 -1
  418. package/node_modules/@nervekit/tools/dist/catalog/orchestration/task.tools.js +3 -0
  419. package/node_modules/@nervekit/tools/dist/catalog/orchestration/task.tools.js.map +1 -1
  420. package/node_modules/@nervekit/tools/dist/execution/common/html-to-markdown.worker.d.ts +2 -0
  421. package/node_modules/@nervekit/tools/dist/execution/common/html-to-markdown.worker.d.ts.map +1 -0
  422. package/node_modules/@nervekit/tools/dist/execution/common/html-to-markdown.worker.js +59 -0
  423. package/node_modules/@nervekit/tools/dist/execution/common/html-to-markdown.worker.js.map +1 -0
  424. package/node_modules/@nervekit/tools/dist/execution/common/isolated-html-to-markdown.d.ts +17 -0
  425. package/node_modules/@nervekit/tools/dist/execution/common/isolated-html-to-markdown.d.ts.map +1 -0
  426. package/node_modules/@nervekit/tools/dist/execution/common/isolated-html-to-markdown.js +162 -0
  427. package/node_modules/@nervekit/tools/dist/execution/common/isolated-html-to-markdown.js.map +1 -0
  428. package/node_modules/@nervekit/tools/dist/execution/common/live-output.d.ts +15 -0
  429. package/node_modules/@nervekit/tools/dist/execution/common/live-output.d.ts.map +1 -0
  430. package/node_modules/@nervekit/tools/dist/execution/common/live-output.js +47 -0
  431. package/node_modules/@nervekit/tools/dist/execution/common/live-output.js.map +1 -0
  432. package/node_modules/@nervekit/tools/dist/execution/common/output-budget.d.ts +5 -1
  433. package/node_modules/@nervekit/tools/dist/execution/common/output-budget.d.ts.map +1 -1
  434. package/node_modules/@nervekit/tools/dist/execution/common/output-budget.js +24 -10
  435. package/node_modules/@nervekit/tools/dist/execution/common/output-budget.js.map +1 -1
  436. package/node_modules/@nervekit/tools/dist/execution/confluence/files.d.ts.map +1 -1
  437. package/node_modules/@nervekit/tools/dist/execution/confluence/files.js +2 -2
  438. package/node_modules/@nervekit/tools/dist/execution/confluence/files.js.map +1 -1
  439. package/node_modules/@nervekit/tools/dist/execution/confluence/markdown.d.ts +1 -1
  440. package/node_modules/@nervekit/tools/dist/execution/confluence/markdown.d.ts.map +1 -1
  441. package/node_modules/@nervekit/tools/dist/execution/confluence/markdown.js +6 -31
  442. package/node_modules/@nervekit/tools/dist/execution/confluence/markdown.js.map +1 -1
  443. package/node_modules/@nervekit/tools/dist/execution/index.d.ts +2 -1
  444. package/node_modules/@nervekit/tools/dist/execution/index.d.ts.map +1 -1
  445. package/node_modules/@nervekit/tools/dist/execution/index.js +2 -1
  446. package/node_modules/@nervekit/tools/dist/execution/index.js.map +1 -1
  447. package/node_modules/@nervekit/tools/dist/execution/python/python.js +7 -12
  448. package/node_modules/@nervekit/tools/dist/execution/python/python.js.map +1 -1
  449. package/node_modules/@nervekit/tools/dist/execution/shell/bash.d.ts.map +1 -1
  450. package/node_modules/@nervekit/tools/dist/execution/shell/bash.js +8 -13
  451. package/node_modules/@nervekit/tools/dist/execution/shell/bash.js.map +1 -1
  452. package/node_modules/@nervekit/tools/dist/execution/web/web-fetch.d.ts.map +1 -1
  453. package/node_modules/@nervekit/tools/dist/execution/web/web-fetch.js +49 -4
  454. package/node_modules/@nervekit/tools/dist/execution/web/web-fetch.js.map +1 -1
  455. package/node_modules/@nervekit/tools/dist/index.d.ts +1 -1
  456. package/node_modules/@nervekit/tools/dist/index.d.ts.map +1 -1
  457. package/node_modules/@nervekit/tools/dist/index.js +1 -1
  458. package/node_modules/@nervekit/tools/dist/index.js.map +1 -1
  459. package/node_modules/@nervekit/tools/dist/runtime/dispatcher.js +3 -3
  460. package/node_modules/@nervekit/tools/dist/runtime/dispatcher.js.map +1 -1
  461. package/node_modules/@nervekit/tools/dist/runtime/orchestration/tasks.d.ts.map +1 -1
  462. package/node_modules/@nervekit/tools/dist/runtime/orchestration/tasks.js +3 -0
  463. package/node_modules/@nervekit/tools/dist/runtime/orchestration/tasks.js.map +1 -1
  464. package/node_modules/@nervekit/tools/dist/runtime/types.d.ts +1 -1
  465. package/node_modules/@nervekit/tools/dist/runtime/types.d.ts.map +1 -1
  466. package/node_modules/@nervekit/tools/dist/runtime/types.js.map +1 -1
  467. package/node_modules/@nervekit/tools/dist/types.d.ts +1 -1
  468. package/node_modules/@nervekit/tools/dist/types.d.ts.map +1 -1
  469. package/node_modules/@nervekit/tools/package.json +3 -3
  470. package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.d.ts.map +1 -1
  471. package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.js +9 -1
  472. package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.js.map +1 -1
  473. package/node_modules/@nervekit/{host-runtime/dist/index.d.ts → workbench-server/dist/core/ports.d.ts} +1 -14
  474. package/node_modules/@nervekit/workbench-server/dist/core/ports.d.ts.map +1 -0
  475. package/node_modules/@nervekit/workbench-server/dist/core/ports.js +2 -0
  476. package/node_modules/@nervekit/workbench-server/dist/core/ports.js.map +1 -0
  477. package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.js +1 -1
  478. package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.js.map +1 -1
  479. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.d.ts +1 -1
  480. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.d.ts.map +1 -1
  481. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.js +1 -1
  482. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.js.map +1 -1
  483. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/nerve-system-prompt.d.ts +1 -1
  484. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/nerve-system-prompt.d.ts.map +1 -1
  485. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/nerve-system-prompt.js +1 -1
  486. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/nerve-system-prompt.js.map +1 -1
  487. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/resource-loader.d.ts +1 -1
  488. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/resource-loader.d.ts.map +1 -1
  489. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/resource-loader.js +1 -1
  490. package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/resource-loader.js.map +1 -1
  491. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/auto-compaction-runner.d.ts +6 -1
  492. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/auto-compaction-runner.d.ts.map +1 -1
  493. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/auto-compaction-runner.js +12 -6
  494. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/auto-compaction-runner.js.map +1 -1
  495. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/harness-execution-shared.d.ts.map +1 -1
  496. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/harness-execution-shared.js +3 -7
  497. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/harness-execution-shared.js.map +1 -1
  498. package/node_modules/@nervekit/{host-runtime/dist/harness.d.ts → workbench-server/dist/domains/agents/run/harness-factory.d.ts} +1 -2
  499. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/harness-factory.d.ts.map +1 -0
  500. package/node_modules/@nervekit/{host-runtime/dist/harness.js → workbench-server/dist/domains/agents/run/harness-factory.js} +1 -2
  501. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/harness-factory.js.map +1 -0
  502. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/inline-command-results.d.ts +2 -2
  503. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/inline-command-results.d.ts.map +1 -1
  504. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/inline-command-runner.d.ts +2 -2
  505. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/inline-command-runner.d.ts.map +1 -1
  506. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/inline-command-runner.js +1 -1
  507. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/inline-command-runner.js.map +1 -1
  508. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/message-mirror.d.ts +1 -1
  509. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/message-mirror.d.ts.map +1 -1
  510. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/prompt-block-expansion.d.ts +1 -1
  511. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/prompt-block-expansion.d.ts.map +1 -1
  512. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/sequential-tool-approval-batch.d.ts +2 -2
  513. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/sequential-tool-approval-batch.d.ts.map +1 -1
  514. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/subagent-runner.js +1 -1
  515. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/subagent-runner.js.map +1 -1
  516. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/system-prompt-builder.d.ts +1 -1
  517. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/system-prompt-builder.d.ts.map +1 -1
  518. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-agent-mechanics.d.ts +7 -5
  519. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-agent-mechanics.d.ts.map +1 -1
  520. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-agent-mechanics.js +8 -2
  521. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-agent-mechanics.js.map +1 -1
  522. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-harness-execution.d.ts +1 -1
  523. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-harness-execution.d.ts.map +1 -1
  524. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-harness-execution.js +4 -2
  525. package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-harness-execution.js.map +1 -1
  526. package/node_modules/@nervekit/workbench-server/dist/domains/auth/oauth-flow-manager.d.ts +1 -1
  527. package/node_modules/@nervekit/workbench-server/dist/domains/auth/oauth-flow-manager.d.ts.map +1 -1
  528. package/node_modules/@nervekit/workbench-server/dist/domains/auth/oauth-flow-manager.js +5 -5
  529. package/node_modules/@nervekit/workbench-server/dist/domains/auth/oauth-flow-manager.js.map +1 -1
  530. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-harness-storage.d.ts +1 -1
  531. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-harness-storage.d.ts.map +1 -1
  532. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-harness-storage.js +1 -1
  533. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-harness-storage.js.map +1 -1
  534. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-lifecycle.service.d.ts.map +1 -1
  535. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-lifecycle.service.js +5 -3
  536. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-lifecycle.service.js.map +1 -1
  537. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-service.d.ts.map +1 -1
  538. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-service.js +4 -4
  539. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-service.js.map +1 -1
  540. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation.repository.d.ts.map +1 -1
  541. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation.repository.js +5 -7
  542. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation.repository.js.map +1 -1
  543. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-progress-publisher.d.ts +36 -0
  544. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-progress-publisher.d.ts.map +1 -0
  545. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-progress-publisher.js +92 -0
  546. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-progress-publisher.js.map +1 -0
  547. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-service.d.ts +10 -2
  548. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-service.d.ts.map +1 -1
  549. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-service.js +221 -144
  550. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-service.js.map +1 -1
  551. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/navigation-service.d.ts.map +1 -1
  552. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/navigation-service.js +1 -2
  553. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/navigation-service.js.map +1 -1
  554. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/summary.d.ts +1 -1
  555. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/summary.d.ts.map +1 -1
  556. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/summary.js +1 -1
  557. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/summary.js.map +1 -1
  558. package/node_modules/@nervekit/workbench-server/dist/domains/plans/plan-paths.js +1 -1
  559. package/node_modules/@nervekit/workbench-server/dist/domains/plans/plan-paths.js.map +1 -1
  560. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/index.d.ts +1 -0
  561. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/index.d.ts.map +1 -1
  562. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/index.js +1 -0
  563. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/index.js.map +1 -1
  564. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-builtins.d.ts +3 -0
  565. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-builtins.d.ts.map +1 -0
  566. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-builtins.js +95 -0
  567. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-builtins.js.map +1 -0
  568. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-enablement.repository.d.ts +18 -0
  569. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-enablement.repository.d.ts.map +1 -0
  570. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-enablement.repository.js +51 -0
  571. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-enablement.repository.js.map +1 -0
  572. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-evaluator.d.ts.map +1 -1
  573. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-evaluator.js +10 -4
  574. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-evaluator.js.map +1 -1
  575. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-loader.d.ts +2 -0
  576. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-loader.d.ts.map +1 -1
  577. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-loader.js +39 -11
  578. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-loader.js.map +1 -1
  579. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-types.d.ts +5 -0
  580. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-types.d.ts.map +1 -1
  581. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-types.js.map +1 -1
  582. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion.service.d.ts +10 -3
  583. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion.service.d.ts.map +1 -1
  584. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion.service.js +175 -53
  585. package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion.service.js.map +1 -1
  586. package/node_modules/@nervekit/workbench-server/dist/domains/providers/provider-catalog.store.d.ts +1 -1
  587. package/node_modules/@nervekit/workbench-server/dist/domains/providers/provider-catalog.store.d.ts.map +1 -1
  588. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-cancellation.d.ts +1 -1
  589. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-cancellation.d.ts.map +1 -1
  590. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-composition.d.ts +1 -1
  591. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-composition.d.ts.map +1 -1
  592. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-composition.js +1 -1
  593. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-composition.js.map +1 -1
  594. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-event-publisher.d.ts +1 -1
  595. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-event-publisher.d.ts.map +1 -1
  596. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-execution.d.ts +1 -1
  597. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-execution.d.ts.map +1 -1
  598. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-integrity.d.ts +1 -1
  599. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-integrity.d.ts.map +1 -1
  600. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-live-executions.d.ts +2 -2
  601. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-live-executions.d.ts.map +1 -1
  602. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-references.d.ts +2 -2
  603. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-references.d.ts.map +1 -1
  604. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.d.ts +1 -1
  605. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.d.ts.map +1 -1
  606. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.js +3 -4
  607. package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.js.map +1 -1
  608. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/index.d.ts +16 -0
  609. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/index.d.ts.map +1 -0
  610. package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/index.js +5 -3
  611. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/index.js.map +1 -0
  612. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-cancellation.d.ts.map +1 -0
  613. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-cancellation.js.map +1 -0
  614. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-checkpoints.d.ts.map +1 -0
  615. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-checkpoints.js.map +1 -0
  616. package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-coordinator.d.ts +1 -1
  617. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-coordinator.d.ts.map +1 -0
  618. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-coordinator.js.map +1 -0
  619. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-errors.d.ts.map +1 -0
  620. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-errors.js.map +1 -0
  621. package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-events.d.ts +1 -1
  622. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-events.d.ts.map +1 -0
  623. package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-events.js +1 -1
  624. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-events.js.map +1 -0
  625. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-execution.d.ts.map +1 -0
  626. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-execution.js.map +1 -0
  627. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-locks.d.ts.map +1 -0
  628. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-locks.js.map +1 -0
  629. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-lookup-index.d.ts.map +1 -0
  630. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-lookup-index.js.map +1 -0
  631. package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-prompts.d.ts +1 -1
  632. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-prompts.d.ts.map +1 -0
  633. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-prompts.js.map +1 -0
  634. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-recovery.d.ts.map +1 -0
  635. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-recovery.js.map +1 -0
  636. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-retries.d.ts.map +1 -0
  637. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-retries.js.map +1 -0
  638. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-runtime.d.ts.map +1 -0
  639. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-runtime.js.map +1 -0
  640. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-settlement.d.ts.map +1 -0
  641. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-settlement.js.map +1 -0
  642. package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-transitions.d.ts +3 -3
  643. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-transitions.d.ts.map +1 -0
  644. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-transitions.js.map +1 -0
  645. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-unit-of-work.d.ts.map +1 -0
  646. package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-unit-of-work.js.map +1 -0
  647. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-agent-execution.d.ts +1 -1
  648. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-agent-execution.d.ts.map +1 -1
  649. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run-query.d.ts +1 -1
  650. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run-query.d.ts.map +1 -1
  651. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run-query.js +1 -1
  652. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run-query.js.map +1 -1
  653. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run-status-projector.d.ts +1 -1
  654. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run-status-projector.d.ts.map +1 -1
  655. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.d.ts +1 -1
  656. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.d.ts.map +1 -1
  657. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.js +1 -1
  658. package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.js.map +1 -1
  659. package/node_modules/@nervekit/workbench-server/dist/domains/runtime/python-runtime-service.d.ts +1 -1
  660. package/node_modules/@nervekit/workbench-server/dist/domains/runtime/python-runtime-service.d.ts.map +1 -1
  661. package/node_modules/@nervekit/workbench-server/dist/domains/runtime/python-runtime-service.js +1 -1
  662. package/node_modules/@nervekit/workbench-server/dist/domains/runtime/python-runtime-service.js.map +1 -1
  663. package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/index.d.ts +3 -0
  664. package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/index.d.ts.map +1 -0
  665. package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/index.js +3 -0
  666. package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/index.js.map +1 -0
  667. package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.repository.d.ts +11 -0
  668. package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.repository.d.ts.map +1 -0
  669. package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.repository.js +53 -0
  670. package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.repository.js.map +1 -0
  671. package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.service.d.ts +15 -0
  672. package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.service.d.ts.map +1 -0
  673. package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.service.js +74 -0
  674. package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.service.js.map +1 -0
  675. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/command.d.ts +8 -0
  676. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/command.d.ts.map +1 -0
  677. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/command.js +40 -0
  678. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/command.js.map +1 -0
  679. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/darwin-driver.d.ts +3 -0
  680. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/darwin-driver.d.ts.map +1 -0
  681. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/darwin-driver.js +163 -0
  682. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/darwin-driver.js.map +1 -0
  683. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/index.d.ts +7 -0
  684. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/index.d.ts.map +1 -0
  685. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/index.js +7 -0
  686. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/index.js.map +1 -0
  687. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/linux-driver.d.ts +3 -0
  688. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/linux-driver.d.ts.map +1 -0
  689. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/linux-driver.js +182 -0
  690. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/linux-driver.js.map +1 -0
  691. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/runtime-driver.d.ts +4 -0
  692. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/runtime-driver.d.ts.map +1 -0
  693. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/runtime-driver.js +14 -0
  694. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/runtime-driver.js.map +1 -0
  695. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/shell.d.ts +9 -0
  696. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/shell.d.ts.map +1 -0
  697. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/shell.js +63 -0
  698. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/shell.js.map +1 -0
  699. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/types.d.ts +46 -0
  700. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/types.d.ts.map +1 -0
  701. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/types.js +2 -0
  702. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/types.js.map +1 -0
  703. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/windows-driver.d.ts +3 -0
  704. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/windows-driver.d.ts.map +1 -0
  705. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/windows-driver.js +148 -0
  706. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/windows-driver.js.map +1 -0
  707. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-log-query.d.ts.map +1 -0
  708. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-log-query.js.map +1 -0
  709. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-log.service.js +1 -1
  710. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-log.service.js.map +1 -1
  711. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-notification.service.d.ts.map +1 -1
  712. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-notification.service.js +8 -2
  713. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-notification.service.js.map +1 -1
  714. package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/tasks}/task-service.d.ts +16 -6
  715. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-service.d.ts.map +1 -0
  716. package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/tasks}/task-service.js +102 -16
  717. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-service.js.map +1 -0
  718. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-status.d.ts.map +1 -1
  719. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-status.js +3 -2
  720. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-status.js.map +1 -1
  721. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-supervisor.d.ts +4 -1
  722. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-supervisor.d.ts.map +1 -1
  723. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-supervisor.js +16 -7
  724. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-supervisor.js.map +1 -1
  725. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.d.ts +1 -1
  726. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.d.ts.map +1 -1
  727. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.js +38 -12
  728. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.js.map +1 -1
  729. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service-foreground.d.ts +1 -1
  730. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service-foreground.d.ts.map +1 -1
  731. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service-foreground.js +12 -2
  732. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service-foreground.js.map +1 -1
  733. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service.d.ts +9 -6
  734. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service.d.ts.map +1 -1
  735. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service.js +15 -3
  736. package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service.js.map +1 -1
  737. package/node_modules/@nervekit/workbench-server/dist/domains/tools/agent-tool-adapter.d.ts +1 -1
  738. package/node_modules/@nervekit/workbench-server/dist/domains/tools/agent-tool-adapter.d.ts.map +1 -1
  739. package/node_modules/@nervekit/workbench-server/dist/domains/tools/agent-tool-adapter.js +2 -2
  740. package/node_modules/@nervekit/workbench-server/dist/domains/tools/agent-tool-adapter.js.map +1 -1
  741. package/node_modules/@nervekit/workbench-server/dist/domains/tools/git-mutation-publisher.d.ts.map +1 -0
  742. package/node_modules/@nervekit/workbench-server/dist/domains/tools/git-mutation-publisher.js.map +1 -0
  743. package/node_modules/@nervekit/{host-runtime/dist/tools.d.ts → workbench-server/dist/domains/tools/host-tool-factory.d.ts} +1 -2
  744. package/node_modules/@nervekit/workbench-server/dist/domains/tools/host-tool-factory.d.ts.map +1 -0
  745. package/node_modules/@nervekit/{host-runtime/dist/tools.js → workbench-server/dist/domains/tools/host-tool-factory.js} +1 -2
  746. package/node_modules/@nervekit/workbench-server/dist/domains/tools/host-tool-factory.js.map +1 -0
  747. package/node_modules/@nervekit/workbench-server/dist/domains/tools/live-tool-output-publisher.d.ts +17 -0
  748. package/node_modules/@nervekit/workbench-server/dist/domains/tools/live-tool-output-publisher.d.ts.map +1 -0
  749. package/node_modules/@nervekit/workbench-server/dist/domains/tools/live-tool-output-publisher.js +75 -0
  750. package/node_modules/@nervekit/workbench-server/dist/domains/tools/live-tool-output-publisher.js.map +1 -0
  751. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher-handlers.d.ts +2 -2
  752. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher-handlers.d.ts.map +1 -1
  753. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher-handlers.js +6 -32
  754. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher-handlers.js.map +1 -1
  755. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher.d.ts +6 -2
  756. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher.d.ts.map +1 -1
  757. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher.js +17 -8
  758. package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher.js.map +1 -1
  759. package/node_modules/@nervekit/workbench-server/dist/domains/tools/policy.js +1 -1
  760. package/node_modules/@nervekit/workbench-server/dist/domains/tools/policy.js.map +1 -1
  761. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call.repository.d.ts +17 -1
  762. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call.repository.d.ts.map +1 -1
  763. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call.repository.js +44 -4
  764. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call.repository.js.map +1 -1
  765. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-result-bounds.d.ts.map +1 -1
  766. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-result-bounds.js +1 -1
  767. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-result-bounds.js.map +1 -1
  768. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-result-model-limits.d.ts +1 -1
  769. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-result-model-limits.d.ts.map +1 -1
  770. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-result-model-limits.js +1 -1
  771. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-result-model-limits.js.map +1 -1
  772. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-service.d.ts +1 -0
  773. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-service.d.ts.map +1 -1
  774. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-service.js +17 -1
  775. package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-service.js.map +1 -1
  776. package/node_modules/@nervekit/workbench-server/dist/domains/usage/subscription-usage-service.d.ts +2 -0
  777. package/node_modules/@nervekit/workbench-server/dist/domains/usage/subscription-usage-service.d.ts.map +1 -1
  778. package/node_modules/@nervekit/workbench-server/dist/domains/usage/subscription-usage-service.js +9 -2
  779. package/node_modules/@nervekit/workbench-server/dist/domains/usage/subscription-usage-service.js.map +1 -1
  780. package/node_modules/@nervekit/workbench-server/dist/domains/workers/agent-process.js +1 -1
  781. package/node_modules/@nervekit/workbench-server/dist/domains/workers/agent-process.js.map +1 -1
  782. package/node_modules/@nervekit/workbench-server/dist/domains/workers/worker-manager.d.ts +2 -2
  783. package/node_modules/@nervekit/workbench-server/dist/http/errors.js +1 -1
  784. package/node_modules/@nervekit/workbench-server/dist/http/errors.js.map +1 -1
  785. package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/logging.d.ts +1 -0
  786. package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/logging.d.ts.map +1 -1
  787. package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/logging.js +20 -4
  788. package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/logging.js.map +1 -1
  789. package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.d.ts +8 -0
  790. package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.d.ts.map +1 -1
  791. package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.js +26 -0
  792. package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.js.map +1 -1
  793. package/node_modules/@nervekit/workbench-server/dist/infrastructure/index-store/index-store.d.ts +2 -0
  794. package/node_modules/@nervekit/workbench-server/dist/infrastructure/index-store/index-store.d.ts.map +1 -1
  795. package/node_modules/@nervekit/workbench-server/dist/infrastructure/index-store/index-store.js +49 -0
  796. package/node_modules/@nervekit/workbench-server/dist/infrastructure/index-store/index-store.js.map +1 -1
  797. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.d.ts +7 -3
  798. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.d.ts.map +1 -1
  799. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.js +67 -21
  800. package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.js.map +1 -1
  801. package/node_modules/@nervekit/workbench-server/dist/main.js +21 -14
  802. package/node_modules/@nervekit/workbench-server/dist/main.js.map +1 -1
  803. package/node_modules/@nervekit/workbench-server/dist/protocol/http-dispatcher.d.ts.map +1 -1
  804. package/node_modules/@nervekit/workbench-server/dist/protocol/http-dispatcher.js +4 -12
  805. package/node_modules/@nervekit/workbench-server/dist/protocol/http-dispatcher.js.map +1 -1
  806. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handler-registry.d.ts +17 -0
  807. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handler-registry.d.ts.map +1 -0
  808. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handler-registry.js +54 -0
  809. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handler-registry.js.map +1 -0
  810. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/conversation-agent-method-handlers.d.ts +505 -0
  811. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/conversation-agent-method-handlers.d.ts.map +1 -0
  812. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/conversation-agent-method-handlers.js +88 -0
  813. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/conversation-agent-method-handlers.js.map +1 -0
  814. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/git-method-handlers.d.ts +433 -0
  815. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/git-method-handlers.d.ts.map +1 -0
  816. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/git-method-handlers.js +24 -0
  817. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/git-method-handlers.js.map +1 -0
  818. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/interaction-method-handlers.d.ts +400 -0
  819. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/interaction-method-handlers.d.ts.map +1 -0
  820. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/interaction-method-handlers.js +68 -0
  821. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/interaction-method-handlers.js.map +1 -0
  822. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/platform-method-handlers.d.ts +1120 -0
  823. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/platform-method-handlers.d.ts.map +1 -0
  824. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/platform-method-handlers.js +127 -0
  825. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/platform-method-handlers.js.map +1 -0
  826. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/project-task-method-handlers.d.ts +1085 -0
  827. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/project-task-method-handlers.d.ts.map +1 -0
  828. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/project-task-method-handlers.js +92 -0
  829. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/project-task-method-handlers.js.map +1 -0
  830. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.d.ts +3 -1
  831. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.d.ts.map +1 -1
  832. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.js +18 -566
  833. package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.js.map +1 -1
  834. package/node_modules/@nervekit/workbench-server/dist/routes/auth-routes.js +1 -1
  835. package/node_modules/@nervekit/workbench-server/dist/routes/auth-routes.js.map +1 -1
  836. package/node_modules/@nervekit/workbench-server/dist/routes/project-routes.js +11 -11
  837. package/node_modules/@nervekit/workbench-server/dist/routes/project-routes.js.map +1 -1
  838. package/node_modules/@nervekit/workbench-server/dist/routes/prompt-suggestion-routes.d.ts.map +1 -1
  839. package/node_modules/@nervekit/workbench-server/dist/routes/prompt-suggestion-routes.js +12 -1
  840. package/node_modules/@nervekit/workbench-server/dist/routes/prompt-suggestion-routes.js.map +1 -1
  841. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.d.ts +3 -3
  842. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.d.ts.map +1 -1
  843. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.js +23 -9
  844. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.js.map +1 -1
  845. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.d.ts +172 -18
  846. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.d.ts.map +1 -1
  847. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.js +117 -29
  848. package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.js.map +1 -1
  849. package/node_modules/@nervekit/workbench-server/dist/web/assets/{dist-CUNRgpDl.js → dist-U4j7h_73.js} +1 -1
  850. package/node_modules/@nervekit/workbench-server/dist/web/assets/index-C7drErUN.css +1 -0
  851. package/node_modules/@nervekit/workbench-server/dist/web/assets/index-Woxp8XqF.js +261 -0
  852. package/node_modules/@nervekit/workbench-server/dist/web/index.html +31 -2
  853. package/node_modules/@nervekit/workbench-server/dist/web/sw.js +1 -1
  854. package/node_modules/@nervekit/workbench-server/package.json +8 -7
  855. package/package.json +11 -13
  856. package/node_modules/@nervekit/contracts/dist/domains/sandbox/index.d.ts +0 -12
  857. package/node_modules/@nervekit/contracts/dist/domains/sandbox/index.d.ts.map +0 -1
  858. package/node_modules/@nervekit/contracts/dist/domains/sandbox/index.js +0 -12
  859. package/node_modules/@nervekit/contracts/dist/domains/sandbox/index.js.map +0 -1
  860. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-manager.events.schema.d.ts +0 -2
  861. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-manager.events.schema.d.ts.map +0 -1
  862. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-manager.events.schema.js +0 -35
  863. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-manager.events.schema.js.map +0 -1
  864. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-runtime.events.schema.d.ts +0 -2
  865. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-runtime.events.schema.d.ts.map +0 -1
  866. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-runtime.events.schema.js +0 -22
  867. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-runtime.events.schema.js.map +0 -1
  868. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.common.schema.d.ts +0 -226
  869. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.common.schema.d.ts.map +0 -1
  870. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.common.schema.js +0 -171
  871. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.common.schema.js.map +0 -1
  872. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.config.schema.d.ts +0 -6717
  873. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.config.schema.d.ts.map +0 -1
  874. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.config.schema.js +0 -781
  875. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.config.schema.js.map +0 -1
  876. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.conversation-snapshot.schema.d.ts +0 -711
  877. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.conversation-snapshot.schema.d.ts.map +0 -1
  878. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.conversation-snapshot.schema.js +0 -38
  879. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.conversation-snapshot.schema.js.map +0 -1
  880. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.events.schema.d.ts +0 -1345
  881. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.events.schema.d.ts.map +0 -1
  882. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.events.schema.js +0 -323
  883. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.events.schema.js.map +0 -1
  884. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.hash.d.ts +0 -7
  885. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.hash.d.ts.map +0 -1
  886. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.hash.js +0 -37
  887. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.hash.js.map +0 -1
  888. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.manager.schema.d.ts +0 -5424
  889. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.manager.schema.d.ts.map +0 -1
  890. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.manager.schema.js +0 -699
  891. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.manager.schema.js.map +0 -1
  892. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.operations.schema.d.ts +0 -6737
  893. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.operations.schema.d.ts.map +0 -1
  894. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.operations.schema.js +0 -45
  895. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.operations.schema.js.map +0 -1
  896. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.runtime-state.schema.d.ts +0 -891
  897. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.runtime-state.schema.d.ts.map +0 -1
  898. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.runtime-state.schema.js +0 -363
  899. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.runtime-state.schema.js.map +0 -1
  900. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.snapshot.schema.d.ts +0 -2284
  901. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.snapshot.schema.d.ts.map +0 -1
  902. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.snapshot.schema.js +0 -377
  903. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.snapshot.schema.js.map +0 -1
  904. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.startup.d.ts +0 -21
  905. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.startup.d.ts.map +0 -1
  906. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.startup.js +0 -323
  907. package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.startup.js.map +0 -1
  908. package/node_modules/@nervekit/contracts/dist/domains/tools/tool-call-details.schema.d.ts +0 -39
  909. package/node_modules/@nervekit/contracts/dist/domains/tools/tool-call-details.schema.d.ts.map +0 -1
  910. package/node_modules/@nervekit/contracts/dist/domains/tools/tool-call-details.schema.js +0 -41
  911. package/node_modules/@nervekit/contracts/dist/domains/tools/tool-call-details.schema.js.map +0 -1
  912. package/node_modules/@nervekit/contracts/schemas/sandbox-config-v1.schema.json +0 -8403
  913. package/node_modules/@nervekit/harness/dist/agent-loop.d.ts +0 -2
  914. package/node_modules/@nervekit/harness/dist/agent-loop.d.ts.map +0 -1
  915. package/node_modules/@nervekit/harness/dist/agent-loop.js +0 -2
  916. package/node_modules/@nervekit/harness/dist/agent-loop.js.map +0 -1
  917. package/node_modules/@nervekit/harness/dist/agent.d.ts.map +0 -1
  918. package/node_modules/@nervekit/harness/dist/agent.js.map +0 -1
  919. package/node_modules/@nervekit/harness/dist/harness/configuration.d.ts.map +0 -1
  920. package/node_modules/@nervekit/harness/dist/harness/configuration.js.map +0 -1
  921. package/node_modules/@nervekit/harness/dist/harness/conversation-writes.d.ts.map +0 -1
  922. package/node_modules/@nervekit/harness/dist/harness/conversation-writes.js.map +0 -1
  923. package/node_modules/@nervekit/harness/dist/harness/env/nodejs.d.ts.map +0 -1
  924. package/node_modules/@nervekit/harness/dist/harness/env/nodejs.js.map +0 -1
  925. package/node_modules/@nervekit/harness/dist/harness/env/types.d.ts.map +0 -1
  926. package/node_modules/@nervekit/harness/dist/harness/events.d.ts.map +0 -1
  927. package/node_modules/@nervekit/harness/dist/harness/harness-configuration-methods.d.ts.map +0 -1
  928. package/node_modules/@nervekit/harness/dist/harness/harness-configuration-methods.js.map +0 -1
  929. package/node_modules/@nervekit/harness/dist/harness/harness-continuation.d.ts.map +0 -1
  930. package/node_modules/@nervekit/harness/dist/harness/harness-continuation.js.map +0 -1
  931. package/node_modules/@nervekit/harness/dist/harness/harness-events.d.ts.map +0 -1
  932. package/node_modules/@nervekit/harness/dist/harness/harness-events.js.map +0 -1
  933. package/node_modules/@nervekit/harness/dist/harness/harness-invocations.d.ts.map +0 -1
  934. package/node_modules/@nervekit/harness/dist/harness/harness-invocations.js.map +0 -1
  935. package/node_modules/@nervekit/harness/dist/harness/harness-maintenance.d.ts.map +0 -1
  936. package/node_modules/@nervekit/harness/dist/harness/harness-maintenance.js.map +0 -1
  937. package/node_modules/@nervekit/harness/dist/harness/harness-queue-coalescing.d.ts.map +0 -1
  938. package/node_modules/@nervekit/harness/dist/harness/harness-queue-coalescing.js.map +0 -1
  939. package/node_modules/@nervekit/harness/dist/harness/harness-queue-methods.d.ts.map +0 -1
  940. package/node_modules/@nervekit/harness/dist/harness/harness-queue-methods.js.map +0 -1
  941. package/node_modules/@nervekit/harness/dist/harness/options.d.ts.map +0 -1
  942. package/node_modules/@nervekit/harness/dist/harness/options.js.map +0 -1
  943. package/node_modules/@nervekit/harness/dist/harness/prompt-templates.d.ts.map +0 -1
  944. package/node_modules/@nervekit/harness/dist/harness/prompt-templates.js.map +0 -1
  945. package/node_modules/@nervekit/harness/dist/harness/skills/format.d.ts.map +0 -1
  946. package/node_modules/@nervekit/harness/dist/harness/skills/format.js.map +0 -1
  947. package/node_modules/@nervekit/harness/dist/harness/skills/index.d.ts.map +0 -1
  948. package/node_modules/@nervekit/harness/dist/harness/skills/index.js.map +0 -1
  949. package/node_modules/@nervekit/harness/dist/harness/skills/loader.d.ts.map +0 -1
  950. package/node_modules/@nervekit/harness/dist/harness/skills/loader.js.map +0 -1
  951. package/node_modules/@nervekit/harness/dist/harness/skills/parser.d.ts.map +0 -1
  952. package/node_modules/@nervekit/harness/dist/harness/skills/parser.js.map +0 -1
  953. package/node_modules/@nervekit/harness/dist/harness/skills/validation.d.ts.map +0 -1
  954. package/node_modules/@nervekit/harness/dist/harness/skills/validation.js.map +0 -1
  955. package/node_modules/@nervekit/harness/dist/harness/skills.d.ts +0 -2
  956. package/node_modules/@nervekit/harness/dist/harness/skills.d.ts.map +0 -1
  957. package/node_modules/@nervekit/harness/dist/harness/skills.js +0 -2
  958. package/node_modules/@nervekit/harness/dist/harness/skills.js.map +0 -1
  959. package/node_modules/@nervekit/harness/dist/harness/stream-options.d.ts.map +0 -1
  960. package/node_modules/@nervekit/harness/dist/harness/stream-options.js.map +0 -1
  961. package/node_modules/@nervekit/harness/dist/harness/system-prompt.d.ts.map +0 -1
  962. package/node_modules/@nervekit/harness/dist/harness/system-prompt.js.map +0 -1
  963. package/node_modules/@nervekit/harness/dist/harness/turn-state.d.ts.map +0 -1
  964. package/node_modules/@nervekit/harness/dist/harness/turn-state.js.map +0 -1
  965. package/node_modules/@nervekit/harness/dist/harness/types.d.ts +0 -9
  966. package/node_modules/@nervekit/harness/dist/harness/types.d.ts.map +0 -1
  967. package/node_modules/@nervekit/harness/dist/harness/types.js +0 -8
  968. package/node_modules/@nervekit/harness/dist/harness/types.js.map +0 -1
  969. package/node_modules/@nervekit/harness/dist/harness/utils/env-path.d.ts.map +0 -1
  970. package/node_modules/@nervekit/harness/dist/harness/utils/env-path.js.map +0 -1
  971. package/node_modules/@nervekit/harness/dist/pi-ai-models.d.ts.map +0 -1
  972. package/node_modules/@nervekit/harness/dist/pi-ai-models.js.map +0 -1
  973. package/node_modules/@nervekit/harness/dist/proxy.d.ts.map +0 -1
  974. package/node_modules/@nervekit/harness/dist/proxy.js.map +0 -1
  975. package/node_modules/@nervekit/harness/dist/runtime/image-normalization.d.ts.map +0 -1
  976. package/node_modules/@nervekit/harness/dist/runtime/image-normalization.js.map +0 -1
  977. package/node_modules/@nervekit/harness/dist/runtime/loop/agent-loop.d.ts.map +0 -1
  978. package/node_modules/@nervekit/harness/dist/runtime/loop/agent-loop.js.map +0 -1
  979. package/node_modules/@nervekit/harness/dist/runtime/loop/events.d.ts.map +0 -1
  980. package/node_modules/@nervekit/harness/dist/runtime/loop/events.js.map +0 -1
  981. package/node_modules/@nervekit/harness/dist/runtime/loop/index.d.ts +0 -6
  982. package/node_modules/@nervekit/harness/dist/runtime/loop/index.d.ts.map +0 -1
  983. package/node_modules/@nervekit/harness/dist/runtime/loop/index.js +0 -6
  984. package/node_modules/@nervekit/harness/dist/runtime/loop/index.js.map +0 -1
  985. package/node_modules/@nervekit/harness/dist/runtime/loop/stream-assistant.d.ts.map +0 -1
  986. package/node_modules/@nervekit/harness/dist/runtime/loop/stream-assistant.js.map +0 -1
  987. package/node_modules/@nervekit/harness/dist/runtime/loop/tool-execution.d.ts.map +0 -1
  988. package/node_modules/@nervekit/harness/dist/runtime/loop/tool-execution.js.map +0 -1
  989. package/node_modules/@nervekit/harness/dist/runtime/loop/turn-loop.d.ts.map +0 -1
  990. package/node_modules/@nervekit/harness/dist/runtime/loop/turn-loop.js.map +0 -1
  991. package/node_modules/@nervekit/harness/dist/runtime.d.ts.map +0 -1
  992. package/node_modules/@nervekit/harness/dist/runtime.js.map +0 -1
  993. package/node_modules/@nervekit/harness/dist/suspension.d.ts.map +0 -1
  994. package/node_modules/@nervekit/harness/dist/suspension.js.map +0 -1
  995. package/node_modules/@nervekit/harness/dist/tool-adapter.d.ts.map +0 -1
  996. package/node_modules/@nervekit/harness/dist/tool-adapter.js.map +0 -1
  997. package/node_modules/@nervekit/harness/dist/types.d.ts.map +0 -1
  998. package/node_modules/@nervekit/harness/dist/types.js.map +0 -1
  999. package/node_modules/@nervekit/host-runtime/LICENSE +0 -201
  1000. package/node_modules/@nervekit/host-runtime/NOTICE +0 -5
  1001. package/node_modules/@nervekit/host-runtime/dist/git-mutation-publisher.d.ts.map +0 -1
  1002. package/node_modules/@nervekit/host-runtime/dist/git-mutation-publisher.js.map +0 -1
  1003. package/node_modules/@nervekit/host-runtime/dist/harness-worker.d.ts +0 -2
  1004. package/node_modules/@nervekit/host-runtime/dist/harness-worker.d.ts.map +0 -1
  1005. package/node_modules/@nervekit/host-runtime/dist/harness-worker.js +0 -2
  1006. package/node_modules/@nervekit/host-runtime/dist/harness-worker.js.map +0 -1
  1007. package/node_modules/@nervekit/host-runtime/dist/harness.d.ts.map +0 -1
  1008. package/node_modules/@nervekit/host-runtime/dist/harness.js.map +0 -1
  1009. package/node_modules/@nervekit/host-runtime/dist/index.d.ts.map +0 -1
  1010. package/node_modules/@nervekit/host-runtime/dist/index.js.map +0 -1
  1011. package/node_modules/@nervekit/host-runtime/dist/run-cancellation.d.ts.map +0 -1
  1012. package/node_modules/@nervekit/host-runtime/dist/run-cancellation.js.map +0 -1
  1013. package/node_modules/@nervekit/host-runtime/dist/run-checkpoints.d.ts.map +0 -1
  1014. package/node_modules/@nervekit/host-runtime/dist/run-checkpoints.js.map +0 -1
  1015. package/node_modules/@nervekit/host-runtime/dist/run-coordinator.d.ts.map +0 -1
  1016. package/node_modules/@nervekit/host-runtime/dist/run-coordinator.js.map +0 -1
  1017. package/node_modules/@nervekit/host-runtime/dist/run-errors.d.ts.map +0 -1
  1018. package/node_modules/@nervekit/host-runtime/dist/run-errors.js.map +0 -1
  1019. package/node_modules/@nervekit/host-runtime/dist/run-events.d.ts.map +0 -1
  1020. package/node_modules/@nervekit/host-runtime/dist/run-events.js.map +0 -1
  1021. package/node_modules/@nervekit/host-runtime/dist/run-execution.d.ts.map +0 -1
  1022. package/node_modules/@nervekit/host-runtime/dist/run-execution.js.map +0 -1
  1023. package/node_modules/@nervekit/host-runtime/dist/run-locks.d.ts.map +0 -1
  1024. package/node_modules/@nervekit/host-runtime/dist/run-locks.js.map +0 -1
  1025. package/node_modules/@nervekit/host-runtime/dist/run-lookup-index.d.ts.map +0 -1
  1026. package/node_modules/@nervekit/host-runtime/dist/run-lookup-index.js.map +0 -1
  1027. package/node_modules/@nervekit/host-runtime/dist/run-prompts.d.ts.map +0 -1
  1028. package/node_modules/@nervekit/host-runtime/dist/run-prompts.js.map +0 -1
  1029. package/node_modules/@nervekit/host-runtime/dist/run-recovery.d.ts.map +0 -1
  1030. package/node_modules/@nervekit/host-runtime/dist/run-recovery.js.map +0 -1
  1031. package/node_modules/@nervekit/host-runtime/dist/run-retries.d.ts.map +0 -1
  1032. package/node_modules/@nervekit/host-runtime/dist/run-retries.js.map +0 -1
  1033. package/node_modules/@nervekit/host-runtime/dist/run-runtime.d.ts.map +0 -1
  1034. package/node_modules/@nervekit/host-runtime/dist/run-runtime.js.map +0 -1
  1035. package/node_modules/@nervekit/host-runtime/dist/run-settlement.d.ts.map +0 -1
  1036. package/node_modules/@nervekit/host-runtime/dist/run-settlement.js.map +0 -1
  1037. package/node_modules/@nervekit/host-runtime/dist/run-transitions.d.ts.map +0 -1
  1038. package/node_modules/@nervekit/host-runtime/dist/run-transitions.js.map +0 -1
  1039. package/node_modules/@nervekit/host-runtime/dist/run-unit-of-work.d.ts.map +0 -1
  1040. package/node_modules/@nervekit/host-runtime/dist/run-unit-of-work.js.map +0 -1
  1041. package/node_modules/@nervekit/host-runtime/dist/task-log-query.d.ts.map +0 -1
  1042. package/node_modules/@nervekit/host-runtime/dist/task-log-query.js.map +0 -1
  1043. package/node_modules/@nervekit/host-runtime/dist/task-service.d.ts.map +0 -1
  1044. package/node_modules/@nervekit/host-runtime/dist/task-service.js.map +0 -1
  1045. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/assertions.d.ts +0 -71
  1046. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/assertions.d.ts.map +0 -1
  1047. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/assertions.js +0 -121
  1048. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/assertions.js.map +0 -1
  1049. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/cancellation.d.ts +0 -3
  1050. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/cancellation.d.ts.map +0 -1
  1051. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/cancellation.js +0 -146
  1052. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/cancellation.js.map +0 -1
  1053. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/completion.d.ts +0 -6
  1054. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/completion.d.ts.map +0 -1
  1055. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/completion.js +0 -52
  1056. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/completion.js.map +0 -1
  1057. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/fixture.d.ts +0 -96
  1058. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/fixture.d.ts.map +0 -1
  1059. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/fixture.js +0 -2
  1060. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/fixture.js.map +0 -1
  1061. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/index.d.ts +0 -10
  1062. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/index.d.ts.map +0 -1
  1063. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/index.js +0 -10
  1064. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/index.js.map +0 -1
  1065. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/interactions.d.ts +0 -3
  1066. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/interactions.d.ts.map +0 -1
  1067. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/interactions.js +0 -150
  1068. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/interactions.js.map +0 -1
  1069. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/matrix.d.ts +0 -4
  1070. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/matrix.d.ts.map +0 -1
  1071. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/matrix.js +0 -22
  1072. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/matrix.js.map +0 -1
  1073. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/redelivery-races.d.ts +0 -3
  1074. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/redelivery-races.d.ts.map +0 -1
  1075. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/redelivery-races.js +0 -68
  1076. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/redelivery-races.js.map +0 -1
  1077. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/retry-recovery.d.ts +0 -3
  1078. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/retry-recovery.d.ts.map +0 -1
  1079. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/retry-recovery.js +0 -93
  1080. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/retry-recovery.js.map +0 -1
  1081. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/tools.d.ts +0 -3
  1082. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/tools.d.ts.map +0 -1
  1083. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/tools.js +0 -36
  1084. package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/tools.js.map +0 -1
  1085. package/node_modules/@nervekit/host-runtime/dist/test-support.d.ts +0 -2
  1086. package/node_modules/@nervekit/host-runtime/dist/test-support.d.ts.map +0 -1
  1087. package/node_modules/@nervekit/host-runtime/dist/test-support.js +0 -2
  1088. package/node_modules/@nervekit/host-runtime/dist/test-support.js.map +0 -1
  1089. package/node_modules/@nervekit/host-runtime/dist/tools.d.ts.map +0 -1
  1090. package/node_modules/@nervekit/host-runtime/dist/tools.js.map +0 -1
  1091. package/node_modules/@nervekit/host-runtime/package.json +0 -38
  1092. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-runtime.d.ts +0 -114
  1093. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-runtime.d.ts.map +0 -1
  1094. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-runtime.js +0 -452
  1095. package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-runtime.js.map +0 -1
  1096. package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/index.d.ts +0 -3
  1097. package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/index.d.ts.map +0 -1
  1098. package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/index.js +0 -3
  1099. package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/index.js.map +0 -1
  1100. package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.repository.d.ts +0 -10
  1101. package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.repository.d.ts.map +0 -1
  1102. package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.repository.js +0 -28
  1103. package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.repository.js.map +0 -1
  1104. package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.service.d.ts +0 -13
  1105. package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.service.d.ts.map +0 -1
  1106. package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.service.js +0 -63
  1107. package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.service.js.map +0 -1
  1108. package/node_modules/@nervekit/workbench-server/dist/web/assets/index-CEGKY4zN.js +0 -260
  1109. package/node_modules/@nervekit/workbench-server/dist/web/assets/index-oDY02_0Y.css +0 -2
  1110. /package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/agent-loop.js +0 -0
  1111. /package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/events.js +0 -0
  1112. /package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/turn-loop.js +0 -0
  1113. /package/node_modules/@nervekit/harness/dist/{suspension.js → agent/suspension.js} +0 -0
  1114. /package/node_modules/@nervekit/harness/dist/{tool-adapter.js → agent/tool-adapter.js} +0 -0
  1115. /package/node_modules/@nervekit/harness/dist/harness/{options.js → configuration/options.js} +0 -0
  1116. /package/node_modules/@nervekit/harness/dist/harness/{stream-options.d.ts → configuration/stream-options.d.ts} +0 -0
  1117. /package/node_modules/@nervekit/harness/dist/harness/{stream-options.js → configuration/stream-options.js} +0 -0
  1118. /package/node_modules/@nervekit/harness/dist/harness/{turn-state.js → configuration/turn-state.js} +0 -0
  1119. /package/node_modules/@nervekit/harness/dist/harness/{env → environment}/nodejs.d.ts +0 -0
  1120. /package/node_modules/@nervekit/harness/dist/harness/{env → environment}/nodejs.js +0 -0
  1121. /package/node_modules/@nervekit/harness/dist/harness/{env → environment}/types.d.ts +0 -0
  1122. /package/node_modules/@nervekit/harness/dist/harness/{env → environment}/types.js +0 -0
  1123. /package/node_modules/@nervekit/harness/dist/harness/{events.js → lifecycle/events.js} +0 -0
  1124. /package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/index.d.ts +0 -0
  1125. /package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/index.js +0 -0
  1126. /package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/validation.d.ts +0 -0
  1127. /package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/validation.js +0 -0
  1128. /package/node_modules/@nervekit/harness/dist/harness/{system-prompt.d.ts → resources/system-prompt.d.ts} +0 -0
  1129. /package/node_modules/@nervekit/harness/dist/harness/{system-prompt.js → resources/system-prompt.js} +0 -0
  1130. /package/node_modules/@nervekit/harness/dist/harness/{conversation-writes.js → run/conversation-writes.js} +0 -0
  1131. /package/node_modules/@nervekit/harness/dist/{runtime → models}/image-normalization.d.ts +0 -0
  1132. /package/node_modules/@nervekit/harness/dist/{runtime → models}/image-normalization.js +0 -0
  1133. /package/node_modules/@nervekit/harness/dist/{types.js → models/types.js} +0 -0
  1134. /package/node_modules/@nervekit/harness/dist/{proxy.js → transport/proxy.js} +0 -0
  1135. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-cancellation.d.ts +0 -0
  1136. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-cancellation.js +0 -0
  1137. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-checkpoints.d.ts +0 -0
  1138. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-checkpoints.js +0 -0
  1139. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-coordinator.js +0 -0
  1140. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-errors.d.ts +0 -0
  1141. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-errors.js +0 -0
  1142. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-execution.d.ts +0 -0
  1143. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-execution.js +0 -0
  1144. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-locks.d.ts +0 -0
  1145. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-locks.js +0 -0
  1146. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-lookup-index.d.ts +0 -0
  1147. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-lookup-index.js +0 -0
  1148. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-prompts.js +0 -0
  1149. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-recovery.d.ts +0 -0
  1150. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-recovery.js +0 -0
  1151. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-retries.d.ts +0 -0
  1152. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-retries.js +0 -0
  1153. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-runtime.d.ts +0 -0
  1154. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-runtime.js +0 -0
  1155. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-settlement.d.ts +0 -0
  1156. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-settlement.js +0 -0
  1157. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-transitions.js +0 -0
  1158. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-unit-of-work.d.ts +0 -0
  1159. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-unit-of-work.js +0 -0
  1160. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/tasks}/task-log-query.d.ts +0 -0
  1161. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/tasks}/task-log-query.js +0 -0
  1162. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/tools}/git-mutation-publisher.d.ts +0 -0
  1163. /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/tools}/git-mutation-publisher.js +0 -0
@@ -1,452 +0,0 @@
1
- import { createId, } from "@nervekit/contracts";
2
- const MAX_LIVE_TOOL_OUTPUT_CHARS = 32_000;
3
- const MAX_LIVE_TOOL_OUTPUT_CHUNKS = 400;
4
- export class ConversationRuntime {
5
- runsByRunId = new Map();
6
- runIdByAgentId = new Map();
7
- runIdByConversationId = new Map();
8
- draftAnchorByProviderToolCallId = new Map();
9
- startRun(input) {
10
- const startedAt = input.startedAt ?? new Date().toISOString();
11
- const run = {
12
- runId: input.runId,
13
- agentId: input.agentId,
14
- projectId: input.projectId,
15
- conversationId: input.conversationId,
16
- status: "running",
17
- startedAt,
18
- turns: [],
19
- toolOutputsByToolCallId: {},
20
- queuedPrompts: [],
21
- };
22
- this.runsByRunId.set(input.runId, run);
23
- this.runIdByAgentId.set(input.agentId, input.runId);
24
- this.runIdByConversationId.set(input.conversationId, input.runId);
25
- return cloneRun(run);
26
- }
27
- markAborting(runId) {
28
- const run = this.runsByRunId.get(runId);
29
- if (!run)
30
- return undefined;
31
- run.status = "aborting";
32
- return cloneRun(run);
33
- }
34
- markRetrying(runId, retry) {
35
- const run = this.runsByRunId.get(runId);
36
- if (!run)
37
- return undefined;
38
- run.status = "retrying";
39
- run.retry = { ...retry };
40
- return cloneRun(run);
41
- }
42
- clearRetry(runId) {
43
- const run = this.runsByRunId.get(runId);
44
- if (!run)
45
- return undefined;
46
- if (run.status === "retrying")
47
- run.status = "running";
48
- run.retry = undefined;
49
- return cloneRun(run);
50
- }
51
- queuePrompt(runId, queuedPrompt) {
52
- const run = this.runsByRunId.get(runId);
53
- if (!run)
54
- return undefined;
55
- const index = run.queuedPrompts.findIndex((candidate) => candidate.id === queuedPrompt.id);
56
- if (index === -1)
57
- run.queuedPrompts.push(queuedPrompt);
58
- else
59
- run.queuedPrompts[index] = queuedPrompt;
60
- return cloneRun(run);
61
- }
62
- removeQueuedPrompt(runId, queuedPromptId) {
63
- if (!runId)
64
- return undefined;
65
- const run = this.runsByRunId.get(runId);
66
- if (!run)
67
- return undefined;
68
- run.queuedPrompts = run.queuedPrompts.filter((candidate) => candidate.id !== queuedPromptId);
69
- return cloneRun(run);
70
- }
71
- completeRun(runId) {
72
- const run = this.runsByRunId.get(runId);
73
- if (!run)
74
- return;
75
- this.runsByRunId.delete(runId);
76
- this.runIdByAgentId.delete(run.agentId);
77
- this.runIdByConversationId.delete(run.conversationId);
78
- for (const turn of run.turns) {
79
- for (const message of turn.messages) {
80
- for (const block of message.blocks) {
81
- if (block.kind === "tool_call_draft" && block.providerToolCallId) {
82
- this.draftAnchorByProviderToolCallId.delete(block.providerToolCallId);
83
- }
84
- }
85
- }
86
- }
87
- }
88
- failRun(runId) {
89
- this.completeRun(runId);
90
- }
91
- startTurn(runId) {
92
- const run = this.requireRun(runId);
93
- const turn = {
94
- turnId: createId("turn"),
95
- ordinal: run.turns.length,
96
- messages: [],
97
- };
98
- run.turns.push(turn);
99
- return cloneTurn(turn);
100
- }
101
- currentTurn(runId) {
102
- const run = this.runsByRunId.get(runId);
103
- const turn = run?.turns.at(-1);
104
- return turn ? cloneTurn(turn) : undefined;
105
- }
106
- startAssistantMessage(runId, turnId) {
107
- const run = this.requireRun(runId);
108
- const turn = this.requireTurn(run, turnId);
109
- const startedAt = new Date().toISOString();
110
- const message = {
111
- liveMessageId: createId("msg"),
112
- messageOrdinal: turn.messages.length,
113
- startedAt,
114
- blocks: [],
115
- };
116
- turn.messages.push(message);
117
- return {
118
- conversationId: run.conversationId,
119
- agentId: run.agentId,
120
- projectId: run.projectId,
121
- runId,
122
- turnId,
123
- liveMessageId: message.liveMessageId,
124
- messageOrdinal: message.messageOrdinal,
125
- startedAt,
126
- };
127
- }
128
- applyContentDelta(input) {
129
- const { run, message } = this.requireMessage(input);
130
- const block = this.ensureTextBlock(message, input.contentIndex, input.kind);
131
- const offset = block.text.length;
132
- block.text += input.delta;
133
- return {
134
- conversationId: run.conversationId,
135
- agentId: run.agentId,
136
- projectId: run.projectId,
137
- runId: input.runId,
138
- turnId: input.turnId,
139
- liveMessageId: input.liveMessageId,
140
- contentBlockId: block.contentBlockId,
141
- contentIndex: input.contentIndex,
142
- kind: input.kind,
143
- offset,
144
- delta: input.delta,
145
- };
146
- }
147
- finishContent(input) {
148
- const { run, message } = this.requireMessage(input);
149
- const block = this.ensureTextBlock(message, input.contentIndex, input.kind);
150
- if (input.finalText !== undefined)
151
- block.text = input.finalText;
152
- block.done = true;
153
- block.redacted = input.redacted;
154
- return {
155
- conversationId: run.conversationId,
156
- agentId: run.agentId,
157
- projectId: run.projectId,
158
- runId: input.runId,
159
- turnId: input.turnId,
160
- liveMessageId: input.liveMessageId,
161
- contentBlockId: block.contentBlockId,
162
- contentIndex: input.contentIndex,
163
- kind: input.kind,
164
- finalText: input.finalText,
165
- redacted: input.redacted,
166
- };
167
- }
168
- startToolDraft(input) {
169
- const { run, message } = this.requireMessage(input);
170
- const block = this.ensureToolDraftBlock(message, input.contentIndex);
171
- block.providerToolCallId =
172
- input.providerToolCallId ?? block.providerToolCallId;
173
- block.toolName = input.toolName ?? block.toolName;
174
- if (block.providerToolCallId)
175
- this.rememberToolAnchor(input, block.providerToolCallId);
176
- return {
177
- conversationId: run.conversationId,
178
- agentId: run.agentId,
179
- projectId: run.projectId,
180
- runId: input.runId,
181
- turnId: input.turnId,
182
- liveMessageId: input.liveMessageId,
183
- contentBlockId: block.contentBlockId,
184
- contentIndex: input.contentIndex,
185
- providerToolCallId: block.providerToolCallId,
186
- toolName: block.toolName,
187
- };
188
- }
189
- applyToolDraftDelta(input) {
190
- const { run, message } = this.requireMessage(input);
191
- const block = this.ensureToolDraftBlock(message, input.contentIndex);
192
- block.providerToolCallId =
193
- input.providerToolCallId ?? block.providerToolCallId;
194
- block.toolName = input.toolName ?? block.toolName;
195
- if (block.providerToolCallId)
196
- this.rememberToolAnchor(input, block.providerToolCallId);
197
- const offset = block.argsText.length;
198
- block.argsText += input.delta;
199
- return {
200
- conversationId: run.conversationId,
201
- agentId: run.agentId,
202
- projectId: run.projectId,
203
- runId: input.runId,
204
- turnId: input.turnId,
205
- liveMessageId: input.liveMessageId,
206
- contentBlockId: block.contentBlockId,
207
- contentIndex: input.contentIndex,
208
- offset,
209
- providerToolCallId: block.providerToolCallId,
210
- toolName: block.toolName,
211
- delta: input.delta,
212
- };
213
- }
214
- finishToolDraft(input) {
215
- const { run, message } = this.requireMessage(input);
216
- const block = this.ensureToolDraftBlock(message, input.contentIndex);
217
- block.providerToolCallId = input.providerToolCallId;
218
- block.toolName = input.toolName;
219
- block.args = input.args;
220
- block.done = true;
221
- block.argsText = "";
222
- this.rememberToolAnchor(input, input.providerToolCallId);
223
- return {
224
- conversationId: run.conversationId,
225
- agentId: run.agentId,
226
- projectId: run.projectId,
227
- runId: input.runId,
228
- turnId: input.turnId,
229
- liveMessageId: input.liveMessageId,
230
- contentBlockId: block.contentBlockId,
231
- contentIndex: input.contentIndex,
232
- providerToolCallId: input.providerToolCallId,
233
- toolName: input.toolName,
234
- args: input.args,
235
- };
236
- }
237
- applyToolDraftProgress(input) {
238
- const { run, message } = this.requireMessage(input);
239
- const block = this.ensureToolDraftBlock(message, input.contentIndex);
240
- block.providerToolCallId =
241
- input.providerToolCallId ?? block.providerToolCallId;
242
- block.toolName = input.toolName ?? block.toolName;
243
- block.progress = { ...input.progress };
244
- if (block.providerToolCallId) {
245
- this.rememberToolAnchor(input, block.providerToolCallId);
246
- }
247
- return {
248
- conversationId: run.conversationId,
249
- agentId: run.agentId,
250
- projectId: run.projectId,
251
- runId: input.runId,
252
- turnId: input.turnId,
253
- liveMessageId: input.liveMessageId,
254
- contentBlockId: block.contentBlockId,
255
- contentIndex: input.contentIndex,
256
- providerToolCallId: block.providerToolCallId,
257
- toolName: block.toolName,
258
- progress: { ...block.progress },
259
- };
260
- }
261
- discardToolDraft(input) {
262
- const { run, message } = this.requireMessage(input);
263
- const index = message.blocks.findIndex((block) => block.contentIndex === input.contentIndex &&
264
- block.kind === "tool_call_draft");
265
- const block = message.blocks[index];
266
- if (block?.kind !== "tool_call_draft")
267
- return undefined;
268
- if (block.providerToolCallId) {
269
- this.draftAnchorByProviderToolCallId.delete(block.providerToolCallId);
270
- }
271
- message.blocks.splice(index, 1);
272
- return {
273
- conversationId: run.conversationId,
274
- agentId: run.agentId,
275
- projectId: run.projectId,
276
- runId: input.runId,
277
- turnId: input.turnId,
278
- liveMessageId: input.liveMessageId,
279
- contentBlockId: block.contentBlockId,
280
- contentIndex: input.contentIndex,
281
- providerToolCallId: block.providerToolCallId,
282
- toolName: block.toolName,
283
- reason: input.reason,
284
- };
285
- }
286
- applyToolOutputDelta(input) {
287
- const run = input.runId ? this.runsByRunId.get(input.runId) : undefined;
288
- const existing = run?.toolOutputsByToolCallId[input.toolCallId];
289
- const offset = existing?.text.length ?? 0;
290
- const now = new Date().toISOString();
291
- if (run) {
292
- const output = capToolOutput({
293
- toolCallId: input.toolCallId,
294
- chunks: [
295
- ...(existing?.chunks ?? []),
296
- { stream: input.stream, text: input.delta, ts: now },
297
- ],
298
- text: `${existing?.text ?? ""}${input.delta}`,
299
- updatedAt: now,
300
- }, {
301
- totalChars: (existing?.outputLimits?.totalChars ?? existing?.text.length ?? 0) +
302
- input.delta.length,
303
- });
304
- run.toolOutputsByToolCallId[input.toolCallId] = output;
305
- }
306
- return {
307
- conversationId: input.conversationId,
308
- agentId: input.agentId,
309
- projectId: input.projectId,
310
- runId: input.runId,
311
- turnId: input.turnId,
312
- liveMessageId: input.liveMessageId,
313
- contentIndex: input.contentIndex,
314
- providerToolCallId: input.providerToolCallId,
315
- toolCallId: input.toolCallId,
316
- toolName: input.toolName,
317
- stream: input.stream,
318
- offset,
319
- delta: input.delta,
320
- };
321
- }
322
- snapshotForConversation(conversationId) {
323
- const runId = this.runIdByConversationId.get(conversationId);
324
- const run = runId ? this.runsByRunId.get(runId) : undefined;
325
- return run ? cloneRun(run) : undefined;
326
- }
327
- resolveToolAnchor(runId, providerToolCallId) {
328
- const anchor = this.draftAnchorByProviderToolCallId.get(providerToolCallId);
329
- return anchor && anchor.runId === runId ? { ...anchor } : undefined;
330
- }
331
- rememberToolAnchor(input, providerToolCallId) {
332
- this.draftAnchorByProviderToolCallId.set(providerToolCallId, {
333
- runId: input.runId,
334
- turnId: input.turnId,
335
- liveMessageId: input.liveMessageId,
336
- contentIndex: input.contentIndex,
337
- providerToolCallId,
338
- });
339
- }
340
- requireRun(runId) {
341
- const run = this.runsByRunId.get(runId);
342
- if (!run)
343
- throw new Error(`Active conversation run not found: ${runId}`);
344
- return run;
345
- }
346
- requireTurn(run, turnId) {
347
- const turn = run.turns.find((candidate) => candidate.turnId === turnId);
348
- if (!turn)
349
- throw new Error(`Active conversation turn not found: ${turnId}`);
350
- return turn;
351
- }
352
- requireMessage(input) {
353
- const run = this.requireRun(input.runId);
354
- const turn = this.requireTurn(run, input.turnId);
355
- const message = turn.messages.find((candidate) => candidate.liveMessageId === input.liveMessageId);
356
- if (!message) {
357
- throw new Error(`Active live message not found: ${input.liveMessageId}`);
358
- }
359
- return { run, turn, message };
360
- }
361
- ensureTextBlock(message, contentIndex, kind) {
362
- const existing = message.blocks.find((block) => block.contentIndex === contentIndex && block.kind !== "tool_call_draft");
363
- if (existing && existing.kind !== "tool_call_draft")
364
- return existing;
365
- const block = {
366
- kind,
367
- contentBlockId: createId("block"),
368
- contentIndex,
369
- text: "",
370
- done: false,
371
- };
372
- message.blocks.push(block);
373
- message.blocks.sort((a, b) => a.contentIndex - b.contentIndex);
374
- return block;
375
- }
376
- ensureToolDraftBlock(message, contentIndex) {
377
- const existing = message.blocks.find((block) => block.contentIndex === contentIndex && block.kind === "tool_call_draft");
378
- if (existing?.kind === "tool_call_draft")
379
- return existing;
380
- const block = {
381
- kind: "tool_call_draft",
382
- contentBlockId: createId("block"),
383
- contentIndex,
384
- argsText: "",
385
- done: false,
386
- };
387
- message.blocks.push(block);
388
- message.blocks.sort((a, b) => a.contentIndex - b.contentIndex);
389
- return block;
390
- }
391
- }
392
- function cloneRun(run) {
393
- return {
394
- ...run,
395
- turns: run.turns.map(cloneTurn),
396
- toolOutputsByToolCallId: Object.fromEntries(Object.entries(run.toolOutputsByToolCallId).map(([id, output]) => [
397
- id,
398
- { ...output, chunks: output.chunks.map((chunk) => ({ ...chunk })) },
399
- ])),
400
- queuedPrompts: run.queuedPrompts.map((prompt) => ({ ...prompt })),
401
- retry: run.retry ? { ...run.retry } : undefined,
402
- };
403
- }
404
- function cloneTurn(turn) {
405
- return {
406
- ...turn,
407
- messages: turn.messages.map((message) => ({
408
- ...message,
409
- blocks: message.blocks.map((block) => block.kind === "tool_call_draft"
410
- ? {
411
- ...block,
412
- progress: block.progress ? { ...block.progress } : undefined,
413
- }
414
- : { ...block }),
415
- })),
416
- };
417
- }
418
- function capToolOutput(output, totals = {}) {
419
- const totalChars = totals.totalChars ?? output.text.length;
420
- let text = output.text;
421
- if (text.length > MAX_LIVE_TOOL_OUTPUT_CHARS) {
422
- text = text.slice(text.length - MAX_LIVE_TOOL_OUTPUT_CHARS);
423
- }
424
- const chunks = output.chunks.length > MAX_LIVE_TOOL_OUTPUT_CHUNKS
425
- ? output.chunks.slice(output.chunks.length - MAX_LIVE_TOOL_OUTPUT_CHUNKS)
426
- : output.chunks;
427
- const capped = totalChars > text.length ||
428
- output.chunks.length > MAX_LIVE_TOOL_OUTPUT_CHUNKS;
429
- return {
430
- ...output,
431
- text,
432
- chunks,
433
- outputLimits: {
434
- capped,
435
- direction: "tail",
436
- maxChars: MAX_LIVE_TOOL_OUTPUT_CHARS,
437
- maxChunks: MAX_LIVE_TOOL_OUTPUT_CHUNKS,
438
- totalChars,
439
- displayedChars: text.length,
440
- omittedChars: Math.max(0, totalChars - text.length),
441
- displayedLines: countLines(text),
442
- totalLines: capped ? undefined : countLines(text),
443
- omittedLines: undefined,
444
- },
445
- };
446
- }
447
- function countLines(text) {
448
- if (text.length === 0)
449
- return 0;
450
- return text.split("\n").length;
451
- }
452
- //# sourceMappingURL=conversation-runtime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"conversation-runtime.js","sourceRoot":"","sources":["../../../src/domains/conversations/conversation-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAoBL,QAAQ,GAET,MAAM,qBAAqB,CAAC;AAgC7B,MAAM,0BAA0B,GAAG,MAAM,CAAC;AAC1C,MAAM,2BAA2B,GAAG,GAAG,CAAC;AAExC,MAAM,OAAO,mBAAmB;IACb,WAAW,GAAG,IAAI,GAAG,EAAsB,CAAC;IAC5C,cAAc,GAAG,IAAI,GAAG,EAAkB,CAAC;IAC3C,qBAAqB,GAAG,IAAI,GAAG,EAAkB,CAAC;IAClD,+BAA+B,GAAG,IAAI,GAAG,EAGvD,CAAC;IAEJ,QAAQ,CAAC,KAAoB;QAC3B,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,IAAI,IAAI,IAAI,EAAE,CAAC,W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C,IAAI,CAAC;YAChC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC;YACjD,YAAY,EAAE,SAAS;SACxB;KACF,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,IAAY;IAC9B,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC;IAChC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AACjC,CAAC"}
@@ -1,3 +0,0 @@
1
- export { PinnedCommandRepository } from "./pinned-command.repository.js";
2
- export { PinnedCommandService } from "./pinned-command.service.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/pinned-commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1,3 +0,0 @@
1
- export { PinnedCommandRepository } from "./pinned-command.repository.js";
2
- export { PinnedCommandService } from "./pinned-command.service.js";
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domains/pinned-commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1,10 +0,0 @@
1
- import { type PinnedCommand } from "@nervekit/contracts";
2
- import { type InitializedStorage } from "../../infrastructure/storage/index.js";
3
- export declare class PinnedCommandRepository {
4
- private readonly storage;
5
- constructor(storage: InitializedStorage);
6
- private file;
7
- list(projectId: string): Promise<PinnedCommand[]>;
8
- replace(projectId: string, commands: PinnedCommand[]): Promise<void>;
9
- }
10
- //# sourceMappingURL=pinned-command.repository.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pinned-command.repository.d.ts","sourceRoot":"","sources":["../../../src/domains/pinned-commands/pinned-command.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,uCAAuC,CAAC;AAE/C,qBAAa,uBAAuB;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,kBAAkB;IAExD,OAAO,CAAC,IAAI;IASN,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAWjD,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAK3E"}
@@ -1,28 +0,0 @@
1
- import { mkdir } from "node:fs/promises";
2
- import { dirname, join } from "node:path";
3
- import { pinnedCommandSchema } from "@nervekit/contracts";
4
- import { atomicWriteJson, readJsonFile, } from "../../infrastructure/storage/index.js";
5
- export class PinnedCommandRepository {
6
- storage;
7
- constructor(storage) {
8
- this.storage = storage;
9
- }
10
- file(projectId) {
11
- return join(this.storage.paths.home, "projects", projectId, "pinned-commands.json");
12
- }
13
- async list(projectId) {
14
- const raw = await readJsonFile(this.file(projectId)).catch(() => undefined);
15
- if (!Array.isArray(raw))
16
- return [];
17
- return raw
18
- .map((value) => pinnedCommandSchema.safeParse(value))
19
- .filter((result) => result.success)
20
- .map((result) => result.data);
21
- }
22
- async replace(projectId, commands) {
23
- const path = this.file(projectId);
24
- await mkdir(dirname(path), { recursive: true, mode: 0o755 });
25
- await atomicWriteJson(path, commands, 0o600);
26
- }
27
- }
28
- //# sourceMappingURL=pinned-command.repository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pinned-command.repository.js","sourceRoot":"","sources":["../../../src/domains/pinned-commands/pinned-command.repository.ts"],"names":[],"mappings":"AA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AAC;QAC7D,MAAM,eAAe,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC/C,CAAC;CACF"}
@@ -1,13 +0,0 @@
1
- import { type CreatePinnedCommandRequest, type PinnedCommand, type ProjectRecord, type UpdatePinnedCommandRequest } from "@nervekit/contracts";
2
- import type { PinnedCommandRepository } from "./pinned-command.repository.js";
3
- export declare class PinnedCommandService {
4
- private readonly repository;
5
- private readonly getProject;
6
- constructor(repository: PinnedCommandRepository, getProject: (projectId: string) => ProjectRecord);
7
- list(projectId: string): Promise<PinnedCommand[]>;
8
- create(projectId: string, request: CreatePinnedCommandRequest): Promise<PinnedCommand>;
9
- update(projectId: string, commandId: string, request: UpdatePinnedCommandRequest): Promise<PinnedCommand>;
10
- remove(projectId: string, commandId: string): Promise<void>;
11
- private notFound;
12
- }
13
- //# sourceMappingURL=pinned-command.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pinned-command.service.d.ts","sourceRoot":"","sources":["../../../src/domains/pinned-commands/pinned-command.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAE/B,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,0BAA0B,EAChC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAE9E,qBAAa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,UAAU;gBADV,UAAU,EAAE,uBAAuB,EACnC,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,aAAa;IAG7D,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAKjD,MAAM,CACV,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,aAAa,CAAC;IAiBnB,MAAM,CACV,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,aAAa,CAAC;IAqBnB,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQjE,OAAO,CAAC,QAAQ;CAOjB"}
@@ -1,63 +0,0 @@
1
- import { createId, } from "@nervekit/contracts";
2
- import { HttpError } from "../../http/errors.js";
3
- export class PinnedCommandService {
4
- repository;
5
- getProject;
6
- constructor(repository, getProject) {
7
- this.repository = repository;
8
- this.getProject = getProject;
9
- }
10
- async list(projectId) {
11
- this.getProject(projectId);
12
- return this.repository.list(projectId);
13
- }
14
- async create(projectId, request) {
15
- this.getProject(projectId);
16
- const now = new Date().toISOString();
17
- const record = {
18
- id: createId("pin"),
19
- projectId,
20
- label: request.label,
21
- command: request.command,
22
- cwd: request.cwd,
23
- createdAt: now,
24
- updatedAt: now,
25
- };
26
- const existing = await this.repository.list(projectId);
27
- await this.repository.replace(projectId, [...existing, record]);
28
- return record;
29
- }
30
- async update(projectId, commandId, request) {
31
- this.getProject(projectId);
32
- const existing = await this.repository.list(projectId);
33
- const index = existing.findIndex((command) => command.id === commandId);
34
- if (index === -1)
35
- throw this.notFound();
36
- const current = existing[index];
37
- if (!current)
38
- throw this.notFound();
39
- const updated = {
40
- ...current,
41
- ...(request.label ? { label: request.label } : { label: undefined }),
42
- command: request.command,
43
- ...(request.cwd ? { cwd: request.cwd } : { cwd: undefined }),
44
- updatedAt: new Date().toISOString(),
45
- };
46
- const next = [...existing];
47
- next[index] = updated;
48
- await this.repository.replace(projectId, next);
49
- return updated;
50
- }
51
- async remove(projectId, commandId) {
52
- this.getProject(projectId);
53
- const existing = await this.repository.list(projectId);
54
- const filtered = existing.filter((command) => command.id !== commandId);
55
- if (filtered.length === existing.length)
56
- throw this.notFound();
57
- await this.repository.replace(projectId, filtered);
58
- }
59
- notFound() {
60
- return new HttpError(404, "PINNED_COMMAND_NOT_FOUND", "Pinned command not found.");
61
- }
62
- }
63
- //# sourceMappingURL=pinned-command.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pinned-command.service.js","sourceRoot":"","sources":["../../../src/domains/pinned-commands/pinned-command.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,GAIT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,MAAM,OAAO,oBAAoB;IAEZ;IACA;IAFnB,YACmB,UAAmC,EACnC,UAAgD;QADhD,eAAU,GAAV,UAAU,CAAyB;QACnC,eAAU,GAAV,UAAU,CAAsC;IAChE,CAAC;IAEJ,KAAK,CAAC,IAAI,CAAC,SAAiB;QAC1B,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAC3B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,MAAM,CACV,SAAiB,EACjB,OAAmC;QAEnC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QACrC,MAAM,MAAM,GAAkB;YAC5B,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC;YACnB,SAAS;YACT,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,SAAS,EAAE,GAAG;YACd,SAAS,EAAE,GAAG;SACf,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACvD,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,GAAG,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;QAChE,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,KAAK,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