repoburg 1.3.321 → 1.3.323

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 (192) hide show
  1. package/agent-pane/backend/dist/index.js +518 -88
  2. package/agent-pane/backend/dist/server.js +518 -88
  3. package/backend/dist/src/agent-runtime/agent-runtime-event-emitter.d.ts +6 -1
  4. package/backend/dist/src/agent-runtime/agent-runtime-event-emitter.js +31 -0
  5. package/backend/dist/src/agent-runtime/agent-runtime-event-emitter.js.map +1 -1
  6. package/backend/dist/src/agent-runtime/agent-runtime.types.d.ts +22 -2
  7. package/backend/dist/src/ai-actions/ai-action-batch.service.d.ts +3 -1
  8. package/backend/dist/src/ai-actions/ai-action-batch.service.js +20 -6
  9. package/backend/dist/src/ai-actions/ai-action-batch.service.js.map +1 -1
  10. package/backend/dist/src/app.module.js +6 -0
  11. package/backend/dist/src/app.module.js.map +1 -1
  12. package/backend/dist/src/application-state/application-state.controller.d.ts +0 -6
  13. package/backend/dist/src/application-state/application-state.controller.js +0 -29
  14. package/backend/dist/src/application-state/application-state.controller.js.map +1 -1
  15. package/backend/dist/src/application-state/application-state.service.d.ts +1 -3
  16. package/backend/dist/src/application-state/application-state.service.js +8 -15
  17. package/backend/dist/src/application-state/application-state.service.js.map +1 -1
  18. package/backend/dist/src/background-tasks/background-tasks.controller.d.ts +9 -0
  19. package/backend/dist/src/background-tasks/background-tasks.controller.js +59 -0
  20. package/backend/dist/src/background-tasks/background-tasks.controller.js.map +1 -0
  21. package/backend/dist/src/background-tasks/background-tasks.module.d.ts +2 -0
  22. package/backend/dist/src/background-tasks/background-tasks.module.js +32 -0
  23. package/backend/dist/src/background-tasks/background-tasks.module.js.map +1 -0
  24. package/backend/dist/src/background-tasks/background-tasks.service.d.ts +62 -0
  25. package/backend/dist/src/background-tasks/background-tasks.service.js +415 -0
  26. package/backend/dist/src/background-tasks/background-tasks.service.js.map +1 -0
  27. package/backend/dist/src/command-hooks/command-hooks.module.d.ts +2 -0
  28. package/backend/dist/src/command-hooks/command-hooks.module.js +24 -0
  29. package/backend/dist/src/command-hooks/command-hooks.module.js.map +1 -0
  30. package/backend/dist/src/command-hooks/command-hooks.service.d.ts +39 -0
  31. package/backend/dist/src/command-hooks/command-hooks.service.js +367 -0
  32. package/backend/dist/src/command-hooks/command-hooks.service.js.map +1 -0
  33. package/backend/dist/src/context-generation/context-generation.service.d.ts +3 -0
  34. package/backend/dist/src/context-generation/context-generation.service.js +7 -1
  35. package/backend/dist/src/context-generation/context-generation.service.js.map +1 -1
  36. package/backend/dist/src/core-entities/session.entity.d.ts +1 -0
  37. package/backend/dist/src/core-entities/session.entity.js +7 -0
  38. package/backend/dist/src/core-entities/session.entity.js.map +1 -1
  39. package/backend/dist/src/file-read-registry/file-read-registry.module.d.ts +2 -0
  40. package/backend/dist/src/file-read-registry/file-read-registry.module.js +26 -0
  41. package/backend/dist/src/file-read-registry/file-read-registry.module.js.map +1 -0
  42. package/backend/dist/src/file-read-registry/file-read-registry.service.d.ts +28 -0
  43. package/backend/dist/src/file-read-registry/file-read-registry.service.js +199 -0
  44. package/backend/dist/src/file-read-registry/file-read-registry.service.js.map +1 -0
  45. package/backend/dist/src/global-config/dto/update-global-config.dto.d.ts +1 -1
  46. package/backend/dist/src/global-config/dto/update-global-config.dto.js +7 -5
  47. package/backend/dist/src/global-config/dto/update-global-config.dto.js.map +1 -1
  48. package/backend/dist/src/global-config/global-config.service.d.ts +1 -1
  49. package/backend/dist/src/global-config/global-config.service.js.map +1 -1
  50. package/backend/dist/src/interactive-chat/auto-compact.service.d.ts +3 -1
  51. package/backend/dist/src/interactive-chat/auto-compact.service.js +8 -2
  52. package/backend/dist/src/interactive-chat/auto-compact.service.js.map +1 -1
  53. package/backend/dist/src/interactive-chat/chat.service.d.ts +7 -1
  54. package/backend/dist/src/interactive-chat/chat.service.js +82 -2
  55. package/backend/dist/src/interactive-chat/chat.service.js.map +1 -1
  56. package/backend/dist/src/llm-orchestration/action-handlers/action-handler.interface.d.ts +1 -0
  57. package/backend/dist/src/llm-orchestration/action-handlers/dto/run-command.args.dto.d.ts +2 -0
  58. package/backend/dist/src/llm-orchestration/action-handlers/dto/run-command.args.dto.js +10 -0
  59. package/backend/dist/src/llm-orchestration/action-handlers/dto/run-command.args.dto.js.map +1 -1
  60. package/backend/dist/src/llm-orchestration/action-handlers/list-mcp-resources.handler.d.ts +11 -0
  61. package/backend/dist/src/llm-orchestration/action-handlers/list-mcp-resources.handler.js +100 -0
  62. package/backend/dist/src/llm-orchestration/action-handlers/list-mcp-resources.handler.js.map +1 -0
  63. package/backend/dist/src/llm-orchestration/action-handlers/list-mcp.handler.d.ts +4 -2
  64. package/backend/dist/src/llm-orchestration/action-handlers/list-mcp.handler.js +15 -4
  65. package/backend/dist/src/llm-orchestration/action-handlers/list-mcp.handler.js.map +1 -1
  66. package/backend/dist/src/llm-orchestration/action-handlers/list-tools.handler.d.ts +4 -2
  67. package/backend/dist/src/llm-orchestration/action-handlers/list-tools.handler.js +15 -4
  68. package/backend/dist/src/llm-orchestration/action-handlers/list-tools.handler.js.map +1 -1
  69. package/backend/dist/src/llm-orchestration/action-handlers/load-tool.handler.d.ts +3 -1
  70. package/backend/dist/src/llm-orchestration/action-handlers/load-tool.handler.js +11 -3
  71. package/backend/dist/src/llm-orchestration/action-handlers/load-tool.handler.js.map +1 -1
  72. package/backend/dist/src/llm-orchestration/action-handlers/mcp-tool-action.handler.d.ts +1 -1
  73. package/backend/dist/src/llm-orchestration/action-handlers/mcp-tool-action.handler.js.map +1 -1
  74. package/backend/dist/src/llm-orchestration/action-handlers/read-mcp-resource.handler.d.ts +11 -0
  75. package/backend/dist/src/llm-orchestration/action-handlers/read-mcp-resource.handler.js +94 -0
  76. package/backend/dist/src/llm-orchestration/action-handlers/read-mcp-resource.handler.js.map +1 -0
  77. package/backend/dist/src/llm-orchestration/action-handlers/request-context.handler.d.ts +18 -1
  78. package/backend/dist/src/llm-orchestration/action-handlers/request-context.handler.js +266 -25
  79. package/backend/dist/src/llm-orchestration/action-handlers/request-context.handler.js.map +1 -1
  80. package/backend/dist/src/llm-orchestration/action-handlers/run-command.handler.d.ts +4 -1
  81. package/backend/dist/src/llm-orchestration/action-handlers/run-command.handler.js +79 -2
  82. package/backend/dist/src/llm-orchestration/action-handlers/run-command.handler.js.map +1 -1
  83. package/backend/dist/src/llm-orchestration/action-handlers/task-output.handler.d.ts +16 -0
  84. package/backend/dist/src/llm-orchestration/action-handlers/task-output.handler.js +135 -0
  85. package/backend/dist/src/llm-orchestration/action-handlers/task-output.handler.js.map +1 -0
  86. package/backend/dist/src/llm-orchestration/action-handlers/task-stop.handler.d.ts +12 -0
  87. package/backend/dist/src/llm-orchestration/action-handlers/task-stop.handler.js +78 -0
  88. package/backend/dist/src/llm-orchestration/action-handlers/task-stop.handler.js.map +1 -0
  89. package/backend/dist/src/llm-orchestration/action-handlers/utils/local-web-fetch.d.ts +28 -0
  90. package/backend/dist/src/llm-orchestration/action-handlers/utils/local-web-fetch.js +208 -0
  91. package/backend/dist/src/llm-orchestration/action-handlers/utils/local-web-fetch.js.map +1 -0
  92. package/backend/dist/src/llm-orchestration/action-handlers/web-fetch.handler.d.ts +2 -0
  93. package/backend/dist/src/llm-orchestration/action-handlers/web-fetch.handler.js +85 -60
  94. package/backend/dist/src/llm-orchestration/action-handlers/web-fetch.handler.js.map +1 -1
  95. package/backend/dist/src/llm-orchestration/action-handlers/web-search.handler.d.ts +1 -0
  96. package/backend/dist/src/llm-orchestration/action-handlers/web-search.handler.js +3 -0
  97. package/backend/dist/src/llm-orchestration/action-handlers/web-search.handler.js.map +1 -1
  98. package/backend/dist/src/llm-orchestration/hooks/frontend-notification.hook.js +13 -5
  99. package/backend/dist/src/llm-orchestration/hooks/frontend-notification.hook.js.map +1 -1
  100. package/backend/dist/src/llm-orchestration/hooks/invalid-tool-feedback.hook.js +2 -0
  101. package/backend/dist/src/llm-orchestration/hooks/invalid-tool-feedback.hook.js.map +1 -1
  102. package/backend/dist/src/llm-orchestration/hooks/max-turns-post-execution.hook.d.ts +12 -0
  103. package/backend/dist/src/llm-orchestration/hooks/max-turns-post-execution.hook.js +52 -0
  104. package/backend/dist/src/llm-orchestration/hooks/max-turns-post-execution.hook.js.map +1 -0
  105. package/backend/dist/src/llm-orchestration/hooks/stop-command-hooks.post-execution.hook.d.ts +16 -0
  106. package/backend/dist/src/llm-orchestration/hooks/stop-command-hooks.post-execution.hook.js +79 -0
  107. package/backend/dist/src/llm-orchestration/hooks/stop-command-hooks.post-execution.hook.js.map +1 -0
  108. package/backend/dist/src/llm-orchestration/llm-orchestration.interfaces.d.ts +1 -0
  109. package/backend/dist/src/llm-orchestration/llm-orchestration.interfaces.js.map +1 -1
  110. package/backend/dist/src/llm-orchestration/llm-orchestration.module.js +49 -88
  111. package/backend/dist/src/llm-orchestration/llm-orchestration.module.js.map +1 -1
  112. package/backend/dist/src/llm-orchestration/llm-turn-processor.service.d.ts +9 -1
  113. package/backend/dist/src/llm-orchestration/llm-turn-processor.service.js +143 -5
  114. package/backend/dist/src/llm-orchestration/llm-turn-processor.service.js.map +1 -1
  115. package/backend/dist/src/llm-orchestration/tool-schema.service.d.ts +6 -1
  116. package/backend/dist/src/llm-orchestration/tool-schema.service.js +47 -8
  117. package/backend/dist/src/llm-orchestration/tool-schema.service.js.map +1 -1
  118. package/backend/dist/src/mcp/mcp.module.js +8 -4
  119. package/backend/dist/src/mcp/mcp.module.js.map +1 -1
  120. package/backend/dist/src/mcp/mcp.service.d.ts +3 -0
  121. package/backend/dist/src/mcp/mcp.service.js +9 -0
  122. package/backend/dist/src/mcp/mcp.service.js.map +1 -1
  123. package/backend/dist/src/mcp/session-mcp.controller.d.ts +11 -0
  124. package/backend/dist/src/mcp/session-mcp.controller.js +54 -0
  125. package/backend/dist/src/mcp/session-mcp.controller.js.map +1 -0
  126. package/backend/dist/src/mcp/session-mcp.service.d.ts +67 -0
  127. package/backend/dist/src/mcp/session-mcp.service.js +421 -0
  128. package/backend/dist/src/mcp/session-mcp.service.js.map +1 -0
  129. package/backend/dist/src/seeding/data/sub-agents/control-repoburg.js +4 -0
  130. package/backend/dist/src/seeding/data/sub-agents/control-repoburg.js.map +1 -1
  131. package/backend/dist/src/seeding/data/sub-agents/explore-codebase.js +4 -0
  132. package/backend/dist/src/seeding/data/sub-agents/explore-codebase.js.map +1 -1
  133. package/backend/dist/src/seeding/data/sub-agents/general-purpose.js +4 -0
  134. package/backend/dist/src/seeding/data/sub-agents/general-purpose.js.map +1 -1
  135. package/backend/dist/src/seeding/data/system-prompts/control-repoburg-agent.js +4 -0
  136. package/backend/dist/src/seeding/data/system-prompts/control-repoburg-agent.js.map +1 -1
  137. package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.d.ts +1 -1
  138. package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.js +8 -0
  139. package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.js.map +1 -1
  140. package/backend/dist/src/seeding/data/system-prompts/explore-codebase-agent.d.ts +1 -1
  141. package/backend/dist/src/seeding/data/system-prompts/explore-codebase-agent.js +5 -1
  142. package/backend/dist/src/seeding/data/system-prompts/explore-codebase-agent.js.map +1 -1
  143. package/backend/dist/src/seeding/data/system-prompts/general-purpose-agent.d.ts +1 -1
  144. package/backend/dist/src/seeding/data/system-prompts/general-purpose-agent.js +7 -2
  145. package/backend/dist/src/seeding/data/system-prompts/general-purpose-agent.js.map +1 -1
  146. package/backend/dist/src/session-cancellation/session-cancellation.service.d.ts +5 -0
  147. package/backend/dist/src/session-cancellation/session-cancellation.service.js +20 -0
  148. package/backend/dist/src/session-cancellation/session-cancellation.service.js.map +1 -1
  149. package/backend/dist/src/session-event-logs/session-event-logs.service.d.ts +1 -0
  150. package/backend/dist/src/session-event-logs/session-event-logs.service.js +4 -0
  151. package/backend/dist/src/session-event-logs/session-event-logs.service.js.map +1 -1
  152. package/backend/dist/src/session-inputs/dto/session-input.dto.d.ts +1 -0
  153. package/backend/dist/src/session-inputs/dto/session-input.dto.js +10 -0
  154. package/backend/dist/src/session-inputs/dto/session-input.dto.js.map +1 -1
  155. package/backend/dist/src/session-inputs/session-input-context.service.d.ts +5 -2
  156. package/backend/dist/src/session-inputs/session-input-context.service.js +20 -4
  157. package/backend/dist/src/session-inputs/session-input-context.service.js.map +1 -1
  158. package/backend/dist/src/session-inputs/session-inputs.controller.js +3 -1
  159. package/backend/dist/src/session-inputs/session-inputs.controller.js.map +1 -1
  160. package/backend/dist/src/session-inputs/session-inputs.service.d.ts +8 -2
  161. package/backend/dist/src/session-inputs/session-inputs.service.js +43 -8
  162. package/backend/dist/src/session-inputs/session-inputs.service.js.map +1 -1
  163. package/backend/dist/src/sessions/sessions.controller.d.ts +2 -2
  164. package/backend/dist/src/sessions/sessions.controller.js.map +1 -1
  165. package/backend/dist/src/sessions/sessions.service.d.ts +4 -1
  166. package/backend/dist/src/sessions/sessions.service.js +5 -1
  167. package/backend/dist/src/sessions/sessions.service.js.map +1 -1
  168. package/backend/dist/src/slash-commands/slash-commands.controller.d.ts +1 -1
  169. package/backend/dist/src/slash-commands/slash-commands.controller.js +7 -3
  170. package/backend/dist/src/slash-commands/slash-commands.controller.js.map +1 -1
  171. package/backend/dist/src/slash-commands/slash-commands.module.js +2 -0
  172. package/backend/dist/src/slash-commands/slash-commands.module.js.map +1 -1
  173. package/backend/dist/src/slash-commands/slash-commands.service.d.ts +12 -4
  174. package/backend/dist/src/slash-commands/slash-commands.service.js +279 -65
  175. package/backend/dist/src/slash-commands/slash-commands.service.js.map +1 -1
  176. package/backend/dist/src/system-prompts/system-prompts.service.js +4 -0
  177. package/backend/dist/src/system-prompts/system-prompts.service.js.map +1 -1
  178. package/backend/dist/src/utils/pdf-text.d.ts +16 -0
  179. package/backend/dist/src/utils/pdf-text.js +27 -0
  180. package/backend/dist/src/utils/pdf-text.js.map +1 -0
  181. package/backend/dist/src/utils/tool-images.d.ts +10 -0
  182. package/backend/dist/src/utils/tool-images.js +55 -0
  183. package/backend/dist/src/utils/tool-images.js.map +1 -0
  184. package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  185. package/backend/package.json +1 -0
  186. package/package.json +3 -1
  187. package/tabtape/extension/dist/build-info.json +3 -3
  188. package/tabtape/extension/dist/manifest.json +1 -1
  189. package/tabtape/ui/dist/build-info.json +3 -3
  190. package/backend/dist/src/application-state/dto/set-websocket-enabled.dto.d.ts +0 -3
  191. package/backend/dist/src/application-state/dto/set-websocket-enabled.dto.js +0 -23
  192. package/backend/dist/src/application-state/dto/set-websocket-enabled.dto.js.map +0 -1
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MAX_TOOL_IMAGES = exports.MAX_TOOL_IMAGE_BYTES = exports.IMAGE_MIME_TYPES = void 0;
4
+ exports.imageMarker = imageMarker;
5
+ exports.formatBytes = formatBytes;
6
+ exports.findImageMarkers = findImageMarkers;
7
+ exports.loadToolImage = loadToolImage;
8
+ const fs = require("fs/promises");
9
+ const path = require("path");
10
+ exports.IMAGE_MIME_TYPES = {
11
+ '.png': 'image/png',
12
+ '.jpg': 'image/jpeg',
13
+ '.jpeg': 'image/jpeg',
14
+ '.gif': 'image/gif',
15
+ '.webp': 'image/webp',
16
+ };
17
+ exports.MAX_TOOL_IMAGE_BYTES = 5 * 1024 * 1024;
18
+ exports.MAX_TOOL_IMAGES = 6;
19
+ function imageMarker(file, mime, bytes) {
20
+ return `[image attached: ${file} (${mime}, ${formatBytes(bytes)})]`;
21
+ }
22
+ function formatBytes(bytes) {
23
+ if (bytes < 1024)
24
+ return `${bytes} B`;
25
+ if (bytes < 1024 * 1024)
26
+ return `${(bytes / 1024).toFixed(1)} KB`;
27
+ return `${(bytes / 1024 / 1024).toFixed(1)} MB`;
28
+ }
29
+ const MARKERS = [
30
+ /\[image attached: (.+?) \((image\/[\w.+-]+), [^)\]]*\)\]/g,
31
+ /\[image saved to (.+?) \((image\/[\w.+-]+)\)\]/g,
32
+ ];
33
+ function findImageMarkers(text) {
34
+ const found = [];
35
+ for (const marker of MARKERS) {
36
+ for (const match of text.matchAll(marker)) {
37
+ found.push({ file: match[1], mime: match[2] });
38
+ }
39
+ }
40
+ return found;
41
+ }
42
+ async function loadToolImage(file, mime, projectRoot) {
43
+ try {
44
+ const absolute = path.resolve(projectRoot, file);
45
+ const stat = await fs.stat(absolute);
46
+ if (!stat.isFile() || stat.size > exports.MAX_TOOL_IMAGE_BYTES)
47
+ return null;
48
+ const data = await fs.readFile(absolute);
49
+ return `data:${mime};base64,${data.toString('base64')}`;
50
+ }
51
+ catch {
52
+ return null;
53
+ }
54
+ }
55
+ //# sourceMappingURL=tool-images.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-images.js","sourceRoot":"","sources":["../../../src/utils/tool-images.ts"],"names":[],"mappings":";;;AAyBA,kCAEC;AAED,kCAIC;AAUD,4CAUC;AAGD,sCAcC;AAtED,kCAAkC;AAClC,6BAA6B;AAUhB,QAAA,gBAAgB,GAA2B;IACtD,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,YAAY;IACrB,MAAM,EAAE,WAAW;IACnB,OAAO,EAAE,YAAY;CACtB,CAAC;AAGW,QAAA,oBAAoB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAEvC,QAAA,eAAe,GAAG,CAAC,CAAC;AAGjC,SAAgB,WAAW,CAAC,IAAY,EAAE,IAAY,EAAE,KAAa;IACnE,OAAO,oBAAoB,IAAI,KAAK,IAAI,KAAK,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC;AACtE,CAAC;AAED,SAAgB,WAAW,CAAC,KAAa;IACvC,IAAI,KAAK,GAAG,IAAI;QAAE,OAAO,GAAG,KAAK,IAAI,CAAC;IACtC,IAAI,KAAK,GAAG,IAAI,GAAG,IAAI;QAAE,OAAO,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IAClE,OAAO,GAAG,CAAC,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;AAClD,CAAC;AAED,MAAM,OAAO,GAAG;IAEd,2DAA2D;IAE3D,iDAAiD;CAClD,CAAC;AAGF,SAAgB,gBAAgB,CAC9B,IAAY;IAEZ,MAAM,KAAK,GAAqC,EAAE,CAAC;IACnD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;YAC1C,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAGM,KAAK,UAAU,aAAa,CACjC,IAAY,EACZ,IAAY,EACZ,WAAmB;IAEnB,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QACjD,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,IAAI,CAAC,IAAI,GAAG,4BAAoB;YAAE,OAAO,IAAI,CAAC;QACpE,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACzC,OAAO,QAAQ,IAAI,WAAW,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC1D,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}