@vybestack/llxprt-code-tools 0.10.0-nightly.260613.1adad3b34

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 (364) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +294 -0
  3. package/dist/.last_build +0 -0
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.js +2 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/src/__tests__/fixtures/filesystem-tool-fixtures.d.ts +29 -0
  8. package/dist/src/__tests__/fixtures/filesystem-tool-fixtures.js +30 -0
  9. package/dist/src/__tests__/fixtures/filesystem-tool-fixtures.js.map +1 -0
  10. package/dist/src/__tests__/fixtures/key-storage-fixtures.d.ts +39 -0
  11. package/dist/src/__tests__/fixtures/key-storage-fixtures.js +53 -0
  12. package/dist/src/__tests__/fixtures/key-storage-fixtures.js.map +1 -0
  13. package/dist/src/__tests__/fixtures/provider-formatting-fixtures.d.ts +140 -0
  14. package/dist/src/__tests__/fixtures/provider-formatting-fixtures.js +157 -0
  15. package/dist/src/__tests__/fixtures/provider-formatting-fixtures.js.map +1 -0
  16. package/dist/src/__tests__/red-test-helpers.d.ts +14 -0
  17. package/dist/src/__tests__/red-test-helpers.js +18 -0
  18. package/dist/src/__tests__/red-test-helpers.js.map +1 -0
  19. package/dist/src/formatters/IToolFormatter.d.ts +84 -0
  20. package/dist/src/formatters/IToolFormatter.js +6 -0
  21. package/dist/src/formatters/IToolFormatter.js.map +1 -0
  22. package/dist/src/formatters/ToolFormatter.d.ts +94 -0
  23. package/dist/src/formatters/ToolFormatter.js +379 -0
  24. package/dist/src/formatters/ToolFormatter.js.map +1 -0
  25. package/dist/src/formatters/ToolIdStrategy.d.ts +79 -0
  26. package/dist/src/formatters/ToolIdStrategy.js +173 -0
  27. package/dist/src/formatters/ToolIdStrategy.js.map +1 -0
  28. package/dist/src/formatters/doubleEscapeUtils.d.ts +46 -0
  29. package/dist/src/formatters/doubleEscapeUtils.js +223 -0
  30. package/dist/src/formatters/doubleEscapeUtils.js.map +1 -0
  31. package/dist/src/formatters/index.d.ts +21 -0
  32. package/dist/src/formatters/index.js +12 -0
  33. package/dist/src/formatters/index.js.map +1 -0
  34. package/dist/src/formatters/toolIdNormalization.d.ts +28 -0
  35. package/dist/src/formatters/toolIdNormalization.js +97 -0
  36. package/dist/src/formatters/toolIdNormalization.js.map +1 -0
  37. package/dist/src/formatters/toolNameUtils.d.ts +43 -0
  38. package/dist/src/formatters/toolNameUtils.js +143 -0
  39. package/dist/src/formatters/toolNameUtils.js.map +1 -0
  40. package/dist/src/index.d.ts +88 -0
  41. package/dist/src/index.js +68 -0
  42. package/dist/src/index.js.map +1 -0
  43. package/dist/src/interfaces/IAsyncTaskService.d.ts +57 -0
  44. package/dist/src/interfaces/IAsyncTaskService.js +6 -0
  45. package/dist/src/interfaces/IAsyncTaskService.js.map +1 -0
  46. package/dist/src/interfaces/IIdeService.d.ts +62 -0
  47. package/dist/src/interfaces/IIdeService.js +6 -0
  48. package/dist/src/interfaces/IIdeService.js.map +1 -0
  49. package/dist/src/interfaces/ILspService.d.ts +54 -0
  50. package/dist/src/interfaces/ILspService.js +6 -0
  51. package/dist/src/interfaces/ILspService.js.map +1 -0
  52. package/dist/src/interfaces/IMcpToolService.d.ts +47 -0
  53. package/dist/src/interfaces/IMcpToolService.js +6 -0
  54. package/dist/src/interfaces/IMcpToolService.js.map +1 -0
  55. package/dist/src/interfaces/IPromptRegistryService.d.ts +51 -0
  56. package/dist/src/interfaces/IPromptRegistryService.js +6 -0
  57. package/dist/src/interfaces/IPromptRegistryService.js.map +1 -0
  58. package/dist/src/interfaces/ISettingsService.d.ts +50 -0
  59. package/dist/src/interfaces/ISettingsService.js +6 -0
  60. package/dist/src/interfaces/ISettingsService.js.map +1 -0
  61. package/dist/src/interfaces/IShellExecutionService.d.ts +55 -0
  62. package/dist/src/interfaces/IShellExecutionService.js +6 -0
  63. package/dist/src/interfaces/IShellExecutionService.js.map +1 -0
  64. package/dist/src/interfaces/IShellToolHost.d.ts +176 -0
  65. package/dist/src/interfaces/IShellToolHost.js +6 -0
  66. package/dist/src/interfaces/IShellToolHost.js.map +1 -0
  67. package/dist/src/interfaces/ISkillService.d.ts +69 -0
  68. package/dist/src/interfaces/ISkillService.js +6 -0
  69. package/dist/src/interfaces/ISkillService.js.map +1 -0
  70. package/dist/src/interfaces/IStorageService.d.ts +42 -0
  71. package/dist/src/interfaces/IStorageService.js +6 -0
  72. package/dist/src/interfaces/IStorageService.js.map +1 -0
  73. package/dist/src/interfaces/ISubagentService.d.ts +112 -0
  74. package/dist/src/interfaces/ISubagentService.js +6 -0
  75. package/dist/src/interfaces/ISubagentService.js.map +1 -0
  76. package/dist/src/interfaces/ITaskToolHost.d.ts +185 -0
  77. package/dist/src/interfaces/ITaskToolHost.js +6 -0
  78. package/dist/src/interfaces/ITaskToolHost.js.map +1 -0
  79. package/dist/src/interfaces/ITodoService.d.ts +79 -0
  80. package/dist/src/interfaces/ITodoService.js +6 -0
  81. package/dist/src/interfaces/ITodoService.js.map +1 -0
  82. package/dist/src/interfaces/IToolHost.d.ts +91 -0
  83. package/dist/src/interfaces/IToolHost.js +6 -0
  84. package/dist/src/interfaces/IToolHost.js.map +1 -0
  85. package/dist/src/interfaces/IToolKeyStorage.d.ts +62 -0
  86. package/dist/src/interfaces/IToolKeyStorage.js +6 -0
  87. package/dist/src/interfaces/IToolKeyStorage.js.map +1 -0
  88. package/dist/src/interfaces/IToolMessageBus.d.ts +63 -0
  89. package/dist/src/interfaces/IToolMessageBus.js +6 -0
  90. package/dist/src/interfaces/IToolMessageBus.js.map +1 -0
  91. package/dist/src/interfaces/IToolRegistryHost.d.ts +43 -0
  92. package/dist/src/interfaces/IToolRegistryHost.js +6 -0
  93. package/dist/src/interfaces/IToolRegistryHost.js.map +1 -0
  94. package/dist/src/interfaces/IWebSearchService.d.ts +16 -0
  95. package/dist/src/interfaces/IWebSearchService.js +7 -0
  96. package/dist/src/interfaces/IWebSearchService.js.map +1 -0
  97. package/dist/src/interfaces/index.d.ts +33 -0
  98. package/dist/src/interfaces/index.js +6 -0
  99. package/dist/src/interfaces/index.js.map +1 -0
  100. package/dist/src/tools/activate-skill.d.ts +26 -0
  101. package/dist/src/tools/activate-skill.js +121 -0
  102. package/dist/src/tools/activate-skill.js.map +1 -0
  103. package/dist/src/tools/apply-patch.d.ts +65 -0
  104. package/dist/src/tools/apply-patch.js +528 -0
  105. package/dist/src/tools/apply-patch.js.map +1 -0
  106. package/dist/src/tools/ast-edit/ast-config.d.ts +67 -0
  107. package/dist/src/tools/ast-edit/ast-config.js +72 -0
  108. package/dist/src/tools/ast-edit/ast-config.js.map +1 -0
  109. package/dist/src/tools/ast-edit/ast-edit-invocation.d.ts +40 -0
  110. package/dist/src/tools/ast-edit/ast-edit-invocation.js +410 -0
  111. package/dist/src/tools/ast-edit/ast-edit-invocation.js.map +1 -0
  112. package/dist/src/tools/ast-edit/ast-query-extractor.d.ts +21 -0
  113. package/dist/src/tools/ast-edit/ast-query-extractor.js +178 -0
  114. package/dist/src/tools/ast-edit/ast-query-extractor.js.map +1 -0
  115. package/dist/src/tools/ast-edit/ast-read-file-invocation.d.ts +26 -0
  116. package/dist/src/tools/ast-edit/ast-read-file-invocation.js +149 -0
  117. package/dist/src/tools/ast-edit/ast-read-file-invocation.js.map +1 -0
  118. package/dist/src/tools/ast-edit/constants.d.ts +30 -0
  119. package/dist/src/tools/ast-edit/constants.js +36 -0
  120. package/dist/src/tools/ast-edit/constants.js.map +1 -0
  121. package/dist/src/tools/ast-edit/context-collector.d.ts +25 -0
  122. package/dist/src/tools/ast-edit/context-collector.js +115 -0
  123. package/dist/src/tools/ast-edit/context-collector.js.map +1 -0
  124. package/dist/src/tools/ast-edit/context-optimizer.d.ts +29 -0
  125. package/dist/src/tools/ast-edit/context-optimizer.js +86 -0
  126. package/dist/src/tools/ast-edit/context-optimizer.js.map +1 -0
  127. package/dist/src/tools/ast-edit/cross-file-analyzer.d.ts +41 -0
  128. package/dist/src/tools/ast-edit/cross-file-analyzer.js +294 -0
  129. package/dist/src/tools/ast-edit/cross-file-analyzer.js.map +1 -0
  130. package/dist/src/tools/ast-edit/edit-calculator.d.ts +71 -0
  131. package/dist/src/tools/ast-edit/edit-calculator.js +249 -0
  132. package/dist/src/tools/ast-edit/edit-calculator.js.map +1 -0
  133. package/dist/src/tools/ast-edit/edit-helpers.d.ts +22 -0
  134. package/dist/src/tools/ast-edit/edit-helpers.js +36 -0
  135. package/dist/src/tools/ast-edit/edit-helpers.js.map +1 -0
  136. package/dist/src/tools/ast-edit/language-analysis.d.ts +19 -0
  137. package/dist/src/tools/ast-edit/language-analysis.js +123 -0
  138. package/dist/src/tools/ast-edit/language-analysis.js.map +1 -0
  139. package/dist/src/tools/ast-edit/local-context-analyzer.d.ts +84 -0
  140. package/dist/src/tools/ast-edit/local-context-analyzer.js +267 -0
  141. package/dist/src/tools/ast-edit/local-context-analyzer.js.map +1 -0
  142. package/dist/src/tools/ast-edit/repository-context-provider.d.ts +22 -0
  143. package/dist/src/tools/ast-edit/repository-context-provider.js +139 -0
  144. package/dist/src/tools/ast-edit/repository-context-provider.js.map +1 -0
  145. package/dist/src/tools/ast-edit/types.d.ts +155 -0
  146. package/dist/src/tools/ast-edit/types.js +7 -0
  147. package/dist/src/tools/ast-edit/types.js.map +1 -0
  148. package/dist/src/tools/ast-edit/workspace-context-provider.d.ts +22 -0
  149. package/dist/src/tools/ast-edit/workspace-context-provider.js +39 -0
  150. package/dist/src/tools/ast-edit/workspace-context-provider.js.map +1 -0
  151. package/dist/src/tools/ast-edit.d.ts +43 -0
  152. package/dist/src/tools/ast-edit.js +183 -0
  153. package/dist/src/tools/ast-edit.js.map +1 -0
  154. package/dist/src/tools/ast-grep.d.ts +22 -0
  155. package/dist/src/tools/ast-grep.js +291 -0
  156. package/dist/src/tools/ast-grep.js.map +1 -0
  157. package/dist/src/tools/check-async-tasks.d.ts +46 -0
  158. package/dist/src/tools/check-async-tasks.js +241 -0
  159. package/dist/src/tools/check-async-tasks.js.map +1 -0
  160. package/dist/src/tools/codesearch.d.ts +25 -0
  161. package/dist/src/tools/codesearch.js +153 -0
  162. package/dist/src/tools/codesearch.js.map +1 -0
  163. package/dist/src/tools/delete_line_range.d.ts +41 -0
  164. package/dist/src/tools/delete_line_range.js +238 -0
  165. package/dist/src/tools/delete_line_range.js.map +1 -0
  166. package/dist/src/tools/direct-web-fetch.d.ts +22 -0
  167. package/dist/src/tools/direct-web-fetch.js +215 -0
  168. package/dist/src/tools/direct-web-fetch.js.map +1 -0
  169. package/dist/src/tools/edit-utils.d.ts +53 -0
  170. package/dist/src/tools/edit-utils.js +250 -0
  171. package/dist/src/tools/edit-utils.js.map +1 -0
  172. package/dist/src/tools/edit.d.ts +70 -0
  173. package/dist/src/tools/edit.js +816 -0
  174. package/dist/src/tools/edit.js.map +1 -0
  175. package/dist/src/tools/exa-web-search.d.ts +27 -0
  176. package/dist/src/tools/exa-web-search.js +153 -0
  177. package/dist/src/tools/exa-web-search.js.map +1 -0
  178. package/dist/src/tools/glob.d.ts +55 -0
  179. package/dist/src/tools/glob.js +284 -0
  180. package/dist/src/tools/glob.js.map +1 -0
  181. package/dist/src/tools/google-web-fetch.d.ts +34 -0
  182. package/dist/src/tools/google-web-fetch.js +417 -0
  183. package/dist/src/tools/google-web-fetch.js.map +1 -0
  184. package/dist/src/tools/google-web-search-invocation.d.ts +53 -0
  185. package/dist/src/tools/google-web-search-invocation.js +180 -0
  186. package/dist/src/tools/google-web-search-invocation.js.map +1 -0
  187. package/dist/src/tools/google-web-search.d.ts +16 -0
  188. package/dist/src/tools/google-web-search.js +34 -0
  189. package/dist/src/tools/google-web-search.js.map +1 -0
  190. package/dist/src/tools/grep.d.ts +56 -0
  191. package/dist/src/tools/grep.js +883 -0
  192. package/dist/src/tools/grep.js.map +1 -0
  193. package/dist/src/tools/insert_at_line.d.ts +41 -0
  194. package/dist/src/tools/insert_at_line.js +287 -0
  195. package/dist/src/tools/insert_at_line.js.map +1 -0
  196. package/dist/src/tools/list-subagents.d.ts +31 -0
  197. package/dist/src/tools/list-subagents.js +122 -0
  198. package/dist/src/tools/list-subagents.js.map +1 -0
  199. package/dist/src/tools/ls.d.ts +71 -0
  200. package/dist/src/tools/ls.js +238 -0
  201. package/dist/src/tools/ls.js.map +1 -0
  202. package/dist/src/tools/memoryTool.d.ts +66 -0
  203. package/dist/src/tools/memoryTool.js +435 -0
  204. package/dist/src/tools/memoryTool.js.map +1 -0
  205. package/dist/src/tools/modifiable-tool.d.ts +37 -0
  206. package/dist/src/tools/modifiable-tool.js +120 -0
  207. package/dist/src/tools/modifiable-tool.js.map +1 -0
  208. package/dist/src/tools/read-file.d.ts +49 -0
  209. package/dist/src/tools/read-file.js +279 -0
  210. package/dist/src/tools/read-file.js.map +1 -0
  211. package/dist/src/tools/read-many-files.d.ts +60 -0
  212. package/dist/src/tools/read-many-files.js +529 -0
  213. package/dist/src/tools/read-many-files.js.map +1 -0
  214. package/dist/src/tools/read_line_range.d.ts +47 -0
  215. package/dist/src/tools/read_line_range.js +248 -0
  216. package/dist/src/tools/read_line_range.js.map +1 -0
  217. package/dist/src/tools/ripGrep.d.ts +41 -0
  218. package/dist/src/tools/ripGrep.js +395 -0
  219. package/dist/src/tools/ripGrep.js.map +1 -0
  220. package/dist/src/tools/shell.d.ts +60 -0
  221. package/dist/src/tools/shell.js +735 -0
  222. package/dist/src/tools/shell.js.map +1 -0
  223. package/dist/src/tools/structural-analysis.d.ts +27 -0
  224. package/dist/src/tools/structural-analysis.js +1089 -0
  225. package/dist/src/tools/structural-analysis.js.map +1 -0
  226. package/dist/src/tools/stubs.d.ts +10 -0
  227. package/dist/src/tools/stubs.js +6 -0
  228. package/dist/src/tools/stubs.js.map +1 -0
  229. package/dist/src/tools/task.d.ts +41 -0
  230. package/dist/src/tools/task.js +195 -0
  231. package/dist/src/tools/task.js.map +1 -0
  232. package/dist/src/tools/todo-events.d.ts +22 -0
  233. package/dist/src/tools/todo-events.js +24 -0
  234. package/dist/src/tools/todo-events.js.map +1 -0
  235. package/dist/src/tools/todo-pause.d.ts +29 -0
  236. package/dist/src/tools/todo-pause.js +172 -0
  237. package/dist/src/tools/todo-pause.js.map +1 -0
  238. package/dist/src/tools/todo-read.d.ts +18 -0
  239. package/dist/src/tools/todo-read.js +98 -0
  240. package/dist/src/tools/todo-read.js.map +1 -0
  241. package/dist/src/tools/todo-store.d.ts +35 -0
  242. package/dist/src/tools/todo-store.js +124 -0
  243. package/dist/src/tools/todo-store.js.map +1 -0
  244. package/dist/src/tools/todo-write.d.ts +29 -0
  245. package/dist/src/tools/todo-write.js +366 -0
  246. package/dist/src/tools/todo-write.js.map +1 -0
  247. package/dist/src/tools/tool-registry.d.ts +156 -0
  248. package/dist/src/tools/tool-registry.js +623 -0
  249. package/dist/src/tools/tool-registry.js.map +1 -0
  250. package/dist/src/tools/tools.d.ts +403 -0
  251. package/dist/src/tools/tools.js +519 -0
  252. package/dist/src/tools/tools.js.map +1 -0
  253. package/dist/src/tools/write-file.d.ts +45 -0
  254. package/dist/src/tools/write-file.js +320 -0
  255. package/dist/src/tools/write-file.js.map +1 -0
  256. package/dist/src/types/index.d.ts +17 -0
  257. package/dist/src/types/index.js +9 -0
  258. package/dist/src/types/index.js.map +1 -0
  259. package/dist/src/types/provider-content-types.d.ts +56 -0
  260. package/dist/src/types/provider-content-types.js +6 -0
  261. package/dist/src/types/provider-content-types.js.map +1 -0
  262. package/dist/src/types/todo-schemas.d.ts +263 -0
  263. package/dist/src/types/todo-schemas.js +32 -0
  264. package/dist/src/types/todo-schemas.js.map +1 -0
  265. package/dist/src/types/tool-confirmation-types.d.ts +34 -0
  266. package/dist/src/types/tool-confirmation-types.js +29 -0
  267. package/dist/src/types/tool-confirmation-types.js.map +1 -0
  268. package/dist/src/types/tool-context.d.ts +31 -0
  269. package/dist/src/types/tool-context.js +6 -0
  270. package/dist/src/types/tool-context.js.map +1 -0
  271. package/dist/src/types/tool-error.d.ts +69 -0
  272. package/dist/src/types/tool-error.js +94 -0
  273. package/dist/src/types/tool-error.js.map +1 -0
  274. package/dist/src/types/tool-names.d.ts +57 -0
  275. package/dist/src/types/tool-names.js +64 -0
  276. package/dist/src/types/tool-names.js.map +1 -0
  277. package/dist/src/utils/EmojiFilter.d.ts +134 -0
  278. package/dist/src/utils/EmojiFilter.js +370 -0
  279. package/dist/src/utils/EmojiFilter.js.map +1 -0
  280. package/dist/src/utils/ast-grep-utils.d.ts +42 -0
  281. package/dist/src/utils/ast-grep-utils.js +140 -0
  282. package/dist/src/utils/ast-grep-utils.js.map +1 -0
  283. package/dist/src/utils/debugLogger.d.ts +11 -0
  284. package/dist/src/utils/debugLogger.js +16 -0
  285. package/dist/src/utils/debugLogger.js.map +1 -0
  286. package/dist/src/utils/diffOptions.d.ts +14 -0
  287. package/dist/src/utils/diffOptions.js +46 -0
  288. package/dist/src/utils/diffOptions.js.map +1 -0
  289. package/dist/src/utils/editor.d.ts +39 -0
  290. package/dist/src/utils/editor.js +212 -0
  291. package/dist/src/utils/editor.js.map +1 -0
  292. package/dist/src/utils/ensure-dirs.d.ts +10 -0
  293. package/dist/src/utils/ensure-dirs.js +16 -0
  294. package/dist/src/utils/ensure-dirs.js.map +1 -0
  295. package/dist/src/utils/errors.d.ts +59 -0
  296. package/dist/src/utils/errors.js +178 -0
  297. package/dist/src/utils/errors.js.map +1 -0
  298. package/dist/src/utils/fetch.d.ts +11 -0
  299. package/dist/src/utils/fetch.js +74 -0
  300. package/dist/src/utils/fetch.js.map +1 -0
  301. package/dist/src/utils/fileUtils.d.ts +32 -0
  302. package/dist/src/utils/fileUtils.js +363 -0
  303. package/dist/src/utils/fileUtils.js.map +1 -0
  304. package/dist/src/utils/fuzzy-replacer.d.ts +61 -0
  305. package/dist/src/utils/fuzzy-replacer.js +492 -0
  306. package/dist/src/utils/fuzzy-replacer.js.map +1 -0
  307. package/dist/src/utils/gitLineChanges.d.ts +12 -0
  308. package/dist/src/utils/gitLineChanges.js +171 -0
  309. package/dist/src/utils/gitLineChanges.js.map +1 -0
  310. package/dist/src/utils/gitUtils.d.ts +6 -0
  311. package/dist/src/utils/gitUtils.js +31 -0
  312. package/dist/src/utils/gitUtils.js.map +1 -0
  313. package/dist/src/utils/lsp-diagnostics-helper.d.ts +27 -0
  314. package/dist/src/utils/lsp-diagnostics-helper.js +62 -0
  315. package/dist/src/utils/lsp-diagnostics-helper.js.map +1 -0
  316. package/dist/src/utils/mediaUtils.d.ts +38 -0
  317. package/dist/src/utils/mediaUtils.js +22 -0
  318. package/dist/src/utils/mediaUtils.js.map +1 -0
  319. package/dist/src/utils/pathValidation.d.ts +7 -0
  320. package/dist/src/utils/pathValidation.js +39 -0
  321. package/dist/src/utils/pathValidation.js.map +1 -0
  322. package/dist/src/utils/paths.d.ts +7 -0
  323. package/dist/src/utils/paths.js +158 -0
  324. package/dist/src/utils/paths.js.map +1 -0
  325. package/dist/src/utils/resolveTextSearchTarget.d.ts +17 -0
  326. package/dist/src/utils/resolveTextSearchTarget.js +45 -0
  327. package/dist/src/utils/resolveTextSearchTarget.js.map +1 -0
  328. package/dist/src/utils/retry.d.ts +17 -0
  329. package/dist/src/utils/retry.js +185 -0
  330. package/dist/src/utils/retry.js.map +1 -0
  331. package/dist/src/utils/ripgrepPathResolver.d.ts +23 -0
  332. package/dist/src/utils/ripgrepPathResolver.js +179 -0
  333. package/dist/src/utils/ripgrepPathResolver.js.map +1 -0
  334. package/dist/src/utils/safeJsonStringify.d.ts +9 -0
  335. package/dist/src/utils/safeJsonStringify.js +21 -0
  336. package/dist/src/utils/safeJsonStringify.js.map +1 -0
  337. package/dist/src/utils/schemaValidator.d.ts +13 -0
  338. package/dist/src/utils/schemaValidator.js +275 -0
  339. package/dist/src/utils/schemaValidator.js.map +1 -0
  340. package/dist/src/utils/terminalSerializer.d.ts +33 -0
  341. package/dist/src/utils/terminalSerializer.js +6 -0
  342. package/dist/src/utils/terminalSerializer.js.map +1 -0
  343. package/dist/src/utils/todoContextTracker.d.ts +12 -0
  344. package/dist/src/utils/todoContextTracker.js +28 -0
  345. package/dist/src/utils/todoContextTracker.js.map +1 -0
  346. package/dist/src/utils/todoFormatter.d.ts +24 -0
  347. package/dist/src/utils/todoFormatter.js +157 -0
  348. package/dist/src/utils/todoFormatter.js.map +1 -0
  349. package/dist/src/utils/todoReminderService.d.ts +22 -0
  350. package/dist/src/utils/todoReminderService.js +43 -0
  351. package/dist/src/utils/todoReminderService.js.map +1 -0
  352. package/dist/src/utils/tool-key-storage-facade.d.ts +32 -0
  353. package/dist/src/utils/tool-key-storage-facade.js +56 -0
  354. package/dist/src/utils/tool-key-storage-facade.js.map +1 -0
  355. package/dist/src/utils/tool-key-storage-types.d.ts +56 -0
  356. package/dist/src/utils/tool-key-storage-types.js +56 -0
  357. package/dist/src/utils/tool-key-storage-types.js.map +1 -0
  358. package/dist/src/utils/toolOutputLimiter.d.ts +29 -0
  359. package/dist/src/utils/toolOutputLimiter.js +107 -0
  360. package/dist/src/utils/toolOutputLimiter.js.map +1 -0
  361. package/dist/src/utils/unicodeUtils.d.ts +55 -0
  362. package/dist/src/utils/unicodeUtils.js +129 -0
  363. package/dist/src/utils/unicodeUtils.js.map +1 -0
  364. package/package.json +75 -0
@@ -0,0 +1,176 @@
1
+ /**
2
+ * @plan:PLAN-20260608-ISSUE1585.P11
3
+ * @requirement:REQ-INTERFACE-OWNERSHIP
4
+ */
5
+ /**
6
+ * @license
7
+ * Copyright 2025 Vybestack LLC
8
+ * SPDX-License-Identifier: Apache-2.0
9
+ */
10
+ /**
11
+ * Tools-owned interface for shell tool host dependencies.
12
+ *
13
+ * Encapsulates all behaviors that shell tool needs from core
14
+ * (command policy, path validation, shell execution, output limiting,
15
+ * summarization, debug mode, timeout settings, etc.) behind a single
16
+ * adapter interface.
17
+ *
18
+ * Consumed by: shell tool in packages/tools.
19
+ * Implemented by: CoreShellToolHostAdapter in packages/core.
20
+ */
21
+ /** Result of a shell execution with full metadata. */
22
+ export interface ShellExecutionResult {
23
+ /** Standard output and error combined. */
24
+ output: string;
25
+ /** Process exit code, null if terminated by signal. */
26
+ exitCode: number | null;
27
+ /** Signal that terminated the process, null for normal exit. */
28
+ signal: string | null;
29
+ /** Error from spawning the process. */
30
+ error: Error | null;
31
+ /** Whether the command was aborted. */
32
+ aborted: boolean;
33
+ /** Process ID of the spawned process. */
34
+ pid: number | undefined;
35
+ /** Background process IDs discovered for non-Windows shells. */
36
+ backgroundPIDs?: number[];
37
+ /** Process group ID discovered for non-Windows shells. */
38
+ pgid?: number | null;
39
+ }
40
+ /** Result of command policy check. */
41
+ export interface CommandPolicyResult {
42
+ /** Whether the command is allowed. */
43
+ allowed: boolean;
44
+ /** Reason for denial if not allowed. */
45
+ reason?: string;
46
+ }
47
+ /** Output limits configuration. */
48
+ export interface OutputLimits {
49
+ /** Maximum output tokens, undefined for no limit. */
50
+ maxTokens?: number;
51
+ /** Truncation mode. */
52
+ truncateMode?: string;
53
+ /** Token limit for summarization. */
54
+ effectiveTokenLimit?: number;
55
+ }
56
+ /** Shell execution configuration from host. */
57
+ export interface ShellExecutionConfig {
58
+ /** Whether to use node-pty for shell execution. */
59
+ shouldUseNodePty: boolean;
60
+ /** Shell execution options. */
61
+ executionOptions: Record<string, unknown>;
62
+ /** PTY terminal width. */
63
+ ptyTerminalWidth?: number;
64
+ /** PTY terminal height. */
65
+ ptyTerminalHeight?: number;
66
+ }
67
+ /** Timeout configuration resolved from settings. */
68
+ export interface ShellTimeoutConfig {
69
+ /** Resolved timeout in seconds, undefined for no timeout. */
70
+ timeoutSeconds: number | undefined;
71
+ /** Default timeout in seconds. */
72
+ defaultTimeoutSeconds: number;
73
+ }
74
+ /** Command roots extraction result. */
75
+ export interface CommandRootsResult {
76
+ /** The root commands extracted. */
77
+ roots: string[];
78
+ }
79
+ export interface IShellToolHost {
80
+ /**
81
+ * Get the target/working directory.
82
+ */
83
+ getTargetDir(): string;
84
+ /**
85
+ * Get the workspace context for path validation.
86
+ */
87
+ getWorkspaceContext(): {
88
+ getDirectories(): string[];
89
+ isPathWithinWorkspace(resolvedPath: string): boolean;
90
+ };
91
+ /**
92
+ * Check if a command is allowed by policy.
93
+ */
94
+ isCommandAllowed(command: string): CommandPolicyResult;
95
+ /**
96
+ * Check if a shell invocation is allowlisted (non-interactive mode).
97
+ */
98
+ isShellInvocationAllowlisted(command: string, toolName: string): boolean;
99
+ /**
100
+ * Check if the environment is interactive.
101
+ */
102
+ isInteractive(): boolean;
103
+ /**
104
+ * Check if approval mode is YOLO.
105
+ */
106
+ isYoloMode(): boolean;
107
+ /**
108
+ * Get debug mode status.
109
+ */
110
+ getDebugMode(): boolean;
111
+ /**
112
+ * Get shell execution configuration.
113
+ */
114
+ getShellExecutionConfig(): ShellExecutionConfig;
115
+ /**
116
+ * Get timeout configuration for shell commands.
117
+ */
118
+ getTimeoutConfig(): ShellTimeoutConfig;
119
+ /**
120
+ * Get output limits for shell tool.
121
+ */
122
+ getOutputLimits(): OutputLimits;
123
+ /**
124
+ * Execute a shell command.
125
+ */
126
+ executeShellCommand(command: string, cwd: string, onOutput: (event: ShellOutputEvent) => void, signal: AbortSignal): Promise<ShellExecutionResult>;
127
+ /**
128
+ * Get the command roots for a command string.
129
+ */
130
+ getCommandRoots(command: string): string[];
131
+ /**
132
+ * Strip shell wrapper from a command.
133
+ */
134
+ stripShellWrapper(command: string): string;
135
+ /**
136
+ * Validate a path is within workspace.
137
+ */
138
+ validatePathWithinWorkspace(workspaceContext: {
139
+ getDirectories(): string[];
140
+ isPathWithinWorkspace(resolvedPath: string): boolean;
141
+ }, dirPath: string, label: string): string | null;
142
+ /**
143
+ * Check if a PTY PID is active.
144
+ */
145
+ isPtyActive(pid: number): boolean;
146
+ /**
147
+ * Format memory usage for display.
148
+ */
149
+ formatMemoryUsage(bytes: number): string;
150
+ /**
151
+ * Try to summarize tool output if summarization is configured.
152
+ * @returns Summarized output or original content.
153
+ */
154
+ trySummarizeOutput(content: string, signal: AbortSignal, tokenBudget?: number): Promise<string>;
155
+ /**
156
+ * Get summarize tool output config for shell tool.
157
+ */
158
+ getSummarizeConfig(): {
159
+ tokenBudget?: number;
160
+ } | undefined;
161
+ /**
162
+ * Apply output token limiting.
163
+ */
164
+ limitOutputTokens(content: string): {
165
+ content: string;
166
+ wasTruncated: boolean;
167
+ };
168
+ }
169
+ /**
170
+ * Shell output event from the execution service.
171
+ */
172
+ export interface ShellOutputEvent {
173
+ type: 'data' | 'binary_detected' | 'binary_progress';
174
+ chunk?: string;
175
+ bytesReceived?: number;
176
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @plan:PLAN-20260608-ISSUE1585.P11
3
+ * @requirement:REQ-INTERFACE-OWNERSHIP
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=IShellToolHost.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IShellToolHost.js","sourceRoot":"","sources":["../../../src/interfaces/IShellToolHost.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * @plan:PLAN-20260608-ISSUE1585.P03
3
+ * @requirement:REQ-INTERFACE-OWNERSHIP
4
+ */
5
+ /**
6
+ * @license
7
+ * Copyright 2025 Google LLC
8
+ * SPDX-License-Identifier: Apache-2.0
9
+ */
10
+ /** Result of a skill activation request. */
11
+ export interface SkillActivationResult {
12
+ /** Whether the activation succeeded. */
13
+ success: boolean;
14
+ /** The activated skill instructions, if any. */
15
+ instructions?: string;
16
+ /** Skill description. */
17
+ description?: string;
18
+ /** Skill source location. */
19
+ location?: string;
20
+ /** Folder structure for skill resources. */
21
+ folderStructure?: string;
22
+ /** Directory added to workspace context for skill resources. */
23
+ resourceDirectory?: string;
24
+ /** Error message if activation failed. */
25
+ error?: string;
26
+ /** Available skill names when activation fails because the skill is missing. */
27
+ availableSkills?: string[];
28
+ }
29
+ export interface SkillInfo {
30
+ name: string;
31
+ description?: string;
32
+ location?: string;
33
+ }
34
+ /** Opaque handle to the skill manager. */
35
+ export interface SkillManager {
36
+ /** Discover available skills. */
37
+ discoverSkills?: (...args: unknown[]) => Promise<void>;
38
+ /** Get list of skills. */
39
+ getSkills?: () => SkillInfo[];
40
+ /** Get one skill by name. */
41
+ getSkill?: (name: string) => SkillInfo | null;
42
+ /** Set disabled skills. */
43
+ setDisabledSkills?: (names: string[]) => void;
44
+ }
45
+ export interface ISkillService {
46
+ /**
47
+ * Activate a skill by name.
48
+ * @param name - The skill name to activate.
49
+ * @returns The activation result.
50
+ */
51
+ activateSkill(name: string): Promise<SkillActivationResult>;
52
+ /**
53
+ * Get the skill manager instance.
54
+ * @returns The skill manager.
55
+ */
56
+ getSkillManager(): SkillManager;
57
+ /**
58
+ * List available skills for schema generation and validation.
59
+ */
60
+ listSkills(): SkillInfo[];
61
+ /**
62
+ * Get one skill by name.
63
+ */
64
+ getSkill(name: string): SkillInfo | null;
65
+ /**
66
+ * Get the folder structure for a skill's resource directory.
67
+ */
68
+ getFolderStructure(skillName: string): Promise<string>;
69
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @plan:PLAN-20260608-ISSUE1585.P03
3
+ * @requirement:REQ-INTERFACE-OWNERSHIP
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=ISkillService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISkillService.js","sourceRoot":"","sources":["../../../src/interfaces/ISkillService.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @plan:PLAN-20260608-ISSUE1585.P03
3
+ * @requirement:REQ-INTERFACE-OWNERSHIP
4
+ */
5
+ /**
6
+ * @license
7
+ * Copyright 2025 Google LLC
8
+ * SPDX-License-Identifier: Apache-2.0
9
+ */
10
+ /**
11
+ * Tools-owned interface for storage operations.
12
+ *
13
+ * Provides LLXPRT directory access and file read/write/ensureDir
14
+ * needed by the memory tool.
15
+ *
16
+ * Consumed by: memoryTool.
17
+ * Implemented by: CoreStorageServiceAdapter in packages/core.
18
+ */
19
+ export interface IStorageService {
20
+ /**
21
+ * Get the path to the LLXPRT directory.
22
+ * @returns The LLXPRT directory path.
23
+ */
24
+ getLLXPRTDir(): string;
25
+ /**
26
+ * Read a file's content as a string.
27
+ * @param path - The file path to read.
28
+ * @returns The file content.
29
+ */
30
+ readFile(path: string): Promise<string>;
31
+ /**
32
+ * Write content to a file.
33
+ * @param path - The file path to write.
34
+ * @param content - The content to write.
35
+ */
36
+ writeFile(path: string, content: string): Promise<void>;
37
+ /**
38
+ * Ensure a directory exists, creating it if necessary.
39
+ * @param path - The directory path to ensure.
40
+ */
41
+ ensureDir(path: string): Promise<void>;
42
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @plan:PLAN-20260608-ISSUE1585.P03
3
+ * @requirement:REQ-INTERFACE-OWNERSHIP
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=IStorageService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IStorageService.js","sourceRoot":"","sources":["../../../src/interfaces/IStorageService.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,112 @@
1
+ /**
2
+ * @plan:PLAN-20260608-ISSUE1585.P03
3
+ * @requirement:REQ-INTERFACE-OWNERSHIP
4
+ */
5
+ /**
6
+ * @license
7
+ * Copyright 2025 Google LLC
8
+ * SPDX-License-Identifier: Apache-2.0
9
+ */
10
+ import type { ToolErrorType } from '../types/tool-error.js';
11
+ /** Request to execute a subagent. */
12
+ export interface SubagentRequest {
13
+ /** Name of the subagent to execute. */
14
+ name: string;
15
+ /** Prompt or instruction for the subagent. */
16
+ prompt: string;
17
+ /** Optional working directory. */
18
+ cwd?: string;
19
+ /** Additional behavioural prompts to append after the primary prompt. */
20
+ behaviourPrompts?: string[];
21
+ /** American-spelling alias for behaviourPrompts. */
22
+ behaviorPrompts?: string[];
23
+ /** Optional tool whitelist for the subagent runtime. */
24
+ toolWhitelist?: string[];
25
+ /** Whether the request included an explicit whitelist even if it was empty. */
26
+ hasExplicitToolWhitelist?: boolean;
27
+ /** Expected variables the subagent should emit. */
28
+ outputSpec?: Record<string, unknown>;
29
+ /** Optional execution timeout in seconds. */
30
+ timeoutSeconds?: number;
31
+ /** Whether the caller requested background execution. */
32
+ async?: boolean;
33
+ /** Extra key/value context exposed to the subagent. */
34
+ context?: Record<string, unknown>;
35
+ }
36
+ /** Runtime options supplied by the Task tool invocation. */
37
+ export interface SubagentExecutionOptions {
38
+ /** Signal used to cancel foreground execution. */
39
+ signal?: AbortSignal;
40
+ /** Optional streaming callback for subagent progress output. */
41
+ updateOutput?: (output: string) => void;
42
+ }
43
+ /** Result of a subagent execution. */
44
+ export interface SubagentResult {
45
+ /** The output text from the subagent. */
46
+ output: string;
47
+ /** Whether the execution succeeded. */
48
+ success: boolean;
49
+ /** Error message if execution failed. */
50
+ error?: string;
51
+ /** Runtime agent id when execution launched. */
52
+ agentId?: string;
53
+ /** Termination reason from the subagent runtime. */
54
+ terminateReason?: string;
55
+ /** Variables emitted by the subagent runtime. */
56
+ emittedVars?: Record<string, unknown>;
57
+ /** Exact LLM content when the service owns legacy-compatible formatting. */
58
+ llmContent?: string;
59
+ /** Exact return display when the service owns legacy-compatible formatting. */
60
+ returnDisplay?: string;
61
+ /** Tool metadata produced by the service. */
62
+ metadata?: Record<string, unknown>;
63
+ /** Specific tool error type for failures. */
64
+ errorType?: ToolErrorType;
65
+ }
66
+ /** Information about a discovered subagent. */
67
+ export interface SubagentInfo {
68
+ /** Name of the subagent. */
69
+ name: string;
70
+ /** Description of the subagent. */
71
+ description?: string;
72
+ /** Associated profile name. */
73
+ profile?: string;
74
+ /** Last update timestamp. */
75
+ updatedAt?: string;
76
+ }
77
+ /** Configuration for a subagent. */
78
+ export interface SubagentConfig {
79
+ /** Name of the subagent. */
80
+ name: string;
81
+ /** Instructions or system prompt for the subagent. */
82
+ instructions?: string;
83
+ /** System prompt for the subagent. */
84
+ systemPrompt?: string;
85
+ /** The model to use. */
86
+ model?: string;
87
+ /** Associated profile name. */
88
+ profile?: string;
89
+ /** Last update timestamp. */
90
+ updatedAt?: string;
91
+ /** Additional configuration properties. */
92
+ [key: string]: unknown;
93
+ }
94
+ export interface ISubagentService {
95
+ /**
96
+ * Execute a subagent with the given request.
97
+ * @param request - The subagent execution request.
98
+ * @returns The execution result.
99
+ */
100
+ executeSubagent(request: SubagentRequest, options?: SubagentExecutionOptions): Promise<SubagentResult>;
101
+ /**
102
+ * List all available subagents.
103
+ * @returns Array of subagent information.
104
+ */
105
+ listSubagents(): Promise<SubagentInfo[]>;
106
+ /**
107
+ * Get configuration for a specific subagent.
108
+ * @param name - The subagent name.
109
+ * @returns The subagent configuration, or undefined if not found.
110
+ */
111
+ getSubagentConfig(name: string): Promise<SubagentConfig | undefined>;
112
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @plan:PLAN-20260608-ISSUE1585.P03
3
+ * @requirement:REQ-INTERFACE-OWNERSHIP
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=ISubagentService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISubagentService.js","sourceRoot":"","sources":["../../../src/interfaces/ISubagentService.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,185 @@
1
+ /**
2
+ * @plan:PLAN-20260608-ISSUE1585.P11
3
+ * @requirement:REQ-INTERFACE-OWNERSHIP
4
+ */
5
+ /**
6
+ * @license
7
+ * Copyright 2025 Vybestack LLC
8
+ * SPDX-License-Identifier: Apache-2.0
9
+ */
10
+ /**
11
+ * Tools-owned interface for task tool host dependencies.
12
+ *
13
+ * Encapsulates all behaviors that task tool needs from core
14
+ * (orchestration, governance, async tasks, scheduler, tool registry,
15
+ * settings, timeout) behind adapter interfaces.
16
+ *
17
+ * Historical task-host contract retained for compatibility with earlier P11 plans.
18
+ * Current task execution uses ISubagentService, implemented by
19
+ * CoreSubagentServiceAdapter in packages/core.
20
+ */
21
+ /** Information about a launched subagent. */
22
+ export interface LaunchedSubagent {
23
+ /** Unique agent identifier. */
24
+ agentId: string;
25
+ /** The subagent scope for interaction. */
26
+ scope: ISubagentScope;
27
+ /** Cleanup function. */
28
+ dispose: () => Promise<void>;
29
+ }
30
+ /** Subagent scope interface for interaction. */
31
+ export interface ISubagentScope {
32
+ /** Output from subagent execution. */
33
+ output: ISubagentOutput | undefined;
34
+ /** Message handler for streaming. */
35
+ onMessage: ((message: string) => void) | undefined;
36
+ /** Run the subagent interactively. */
37
+ runInteractive(contextState: unknown, options?: {
38
+ schedulerFactory?: unknown;
39
+ }): Promise<void>;
40
+ /** Run the subagent non-interactively. */
41
+ runNonInteractive(contextState: unknown): Promise<void>;
42
+ /** Cancel the subagent. */
43
+ cancel?(reason?: string): void;
44
+ }
45
+ /** Output from subagent execution. */
46
+ export interface ISubagentOutput {
47
+ /** Reason for termination. */
48
+ terminate_reason: string;
49
+ /** Emitted variables from the subagent. */
50
+ emitted_vars: Record<string, unknown>;
51
+ /** Final message from the subagent. */
52
+ final_message?: string;
53
+ }
54
+ /** Launch request for a subagent. */
55
+ export interface TaskLaunchRequest {
56
+ /** Name of the subagent. */
57
+ name: string;
58
+ /** Run configuration. */
59
+ runConfig?: {
60
+ max_time_minutes?: number;
61
+ };
62
+ /** Behaviour prompts. */
63
+ behaviourPrompts?: string[];
64
+ /** Tool configuration. */
65
+ toolConfig?: {
66
+ tools: string[];
67
+ };
68
+ /** Output configuration. */
69
+ outputConfig?: {
70
+ outputs: Record<string, string>;
71
+ };
72
+ }
73
+ /** Timeout configuration for task execution. */
74
+ export interface TaskTimeoutConfig {
75
+ /** Resolved timeout in seconds, undefined for no timeout. */
76
+ timeoutSeconds: number | undefined;
77
+ /** Default timeout in seconds. */
78
+ defaultTimeoutSeconds: number;
79
+ }
80
+ /** Result of async settings check. */
81
+ export interface AsyncSettingsCheck {
82
+ /** Whether async is enabled. */
83
+ enabled: boolean;
84
+ /** Reason if disabled. */
85
+ reason?: string;
86
+ }
87
+ /** Async slot reservation result. */
88
+ export interface AsyncSlotResult {
89
+ /** Reservation ID if slot was obtained. */
90
+ bookingId: string | undefined;
91
+ }
92
+ /** Async task registration input. */
93
+ export interface AsyncTaskRegistration {
94
+ id: string;
95
+ subagentName: string;
96
+ goalPrompt: string;
97
+ abortController: AbortController;
98
+ }
99
+ /** Can-launch result for async tasks. */
100
+ export interface CanLaunchResult {
101
+ /** Whether an async task can be launched. */
102
+ reason?: string;
103
+ }
104
+ /** Governs tool access for the subagent. */
105
+ export interface IToolGovernance {
106
+ /** Whether the given tool name is blocked. */
107
+ isToolBlocked(canonicalName: string): boolean;
108
+ }
109
+ export interface ITaskToolHost {
110
+ /**
111
+ * Launch a subagent with the given request.
112
+ */
113
+ launchSubagent(request: TaskLaunchRequest, signal?: AbortSignal): Promise<LaunchedSubagent>;
114
+ /**
115
+ * Check if the environment is interactive.
116
+ */
117
+ isInteractiveEnvironment(): boolean;
118
+ /**
119
+ * Get the interactive subagent scheduler factory, if available.
120
+ */
121
+ getSchedulerFactory(): unknown | undefined;
122
+ /**
123
+ * Get timeout configuration for task execution.
124
+ */
125
+ getTimeoutConfig(requestedTimeoutSeconds: number | undefined): TaskTimeoutConfig;
126
+ /**
127
+ * Get async timeout configuration.
128
+ */
129
+ getAsyncTimeoutConfig(requestedTimeoutSeconds: number | undefined): TaskTimeoutConfig;
130
+ /**
131
+ * Check if async tasks are enabled in settings.
132
+ */
133
+ checkAsyncSettings(): AsyncSettingsCheck;
134
+ /**
135
+ * Check if async task manager is available.
136
+ */
137
+ hasAsyncTaskManager(): boolean;
138
+ /**
139
+ * Try to reserve an async slot.
140
+ */
141
+ tryReserveAsyncSlot(): string | undefined;
142
+ /**
143
+ * Register an async task.
144
+ */
145
+ registerAsyncTask(task: AsyncTaskRegistration, bookingId: string | undefined): void;
146
+ /**
147
+ * Cancel an async slot reservation.
148
+ */
149
+ cancelAsyncReservation(bookingId: string): void;
150
+ /**
151
+ * Check if an async task can be launched.
152
+ */
153
+ canLaunchAsync(): CanLaunchResult;
154
+ /**
155
+ * Get the session ID.
156
+ */
157
+ getSessionId(): string;
158
+ /**
159
+ * Build governed tool whitelist from candidates and registry.
160
+ * Returns filtered list of tools that are allowed by governance.
161
+ */
162
+ buildGovernedToolWhitelist(candidateTools: string[] | undefined, hasExplicitWhitelist: boolean): string[] | undefined;
163
+ /**
164
+ * Get the default agent ID.
165
+ */
166
+ getDefaultAgentId(): string;
167
+ /**
168
+ * Complete an async task.
169
+ */
170
+ completeAsyncTask(agentId: string, output: ISubagentOutput): void;
171
+ /**
172
+ * Fail an async task.
173
+ */
174
+ failAsyncTask(agentId: string, error: string): void;
175
+ /**
176
+ * Get an async task by ID.
177
+ */
178
+ getAsyncTask(agentId: string): {
179
+ status: string;
180
+ } | undefined;
181
+ /**
182
+ * Cancel async reservation on error.
183
+ */
184
+ cancelAsyncTaskReservation(bookingId: string | undefined, taskRegistered: boolean): void;
185
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @plan:PLAN-20260608-ISSUE1585.P11
3
+ * @requirement:REQ-INTERFACE-OWNERSHIP
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=ITaskToolHost.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITaskToolHost.js","sourceRoot":"","sources":["../../../src/interfaces/ITaskToolHost.ts"],"names":[],"mappings":"AAAA;;;GAGG"}