erosolar-cli 1.0.2 → 1.0.3

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 (418) hide show
  1. package/Agents.md +411 -200
  2. package/README.md +77 -44
  3. package/dist/adapters/browser/index.d.ts +12 -0
  4. package/dist/adapters/browser/index.d.ts.map +1 -0
  5. package/dist/adapters/browser/index.js +1 -0
  6. package/dist/adapters/browser/index.js.map +1 -0
  7. package/dist/adapters/node/index.d.ts +17 -0
  8. package/dist/adapters/node/index.d.ts.map +1 -0
  9. package/dist/adapters/node/index.js +1 -0
  10. package/dist/adapters/node/index.js.map +1 -0
  11. package/dist/adapters/remote/index.d.ts +13 -0
  12. package/dist/adapters/remote/index.d.ts.map +1 -0
  13. package/dist/adapters/remote/index.js +1 -0
  14. package/dist/adapters/remote/index.js.map +1 -0
  15. package/dist/adapters/types.d.ts +14 -0
  16. package/dist/adapters/types.d.ts.map +1 -0
  17. package/dist/adapters/types.js +1 -0
  18. package/dist/adapters/types.js.map +1 -0
  19. package/dist/bin/erosolar.d.ts +3 -0
  20. package/dist/bin/erosolar.d.ts.map +1 -0
  21. package/dist/bin/erosolar.js +1 -0
  22. package/dist/bin/erosolar.js.map +1 -0
  23. package/dist/capabilities/bashCapability.d.ts +13 -0
  24. package/dist/capabilities/bashCapability.d.ts.map +1 -0
  25. package/dist/capabilities/bashCapability.js +1 -0
  26. package/dist/capabilities/bashCapability.js.map +1 -0
  27. package/dist/capabilities/codeAnalysisCapability.d.ts +13 -0
  28. package/dist/capabilities/codeAnalysisCapability.d.ts.map +1 -0
  29. package/dist/capabilities/codeAnalysisCapability.js +24 -0
  30. package/dist/capabilities/codeAnalysisCapability.js.map +1 -0
  31. package/dist/capabilities/codeGenerationCapability.d.ts +13 -0
  32. package/dist/capabilities/codeGenerationCapability.d.ts.map +1 -0
  33. package/dist/capabilities/codeGenerationCapability.js +25 -0
  34. package/dist/capabilities/codeGenerationCapability.js.map +1 -0
  35. package/dist/capabilities/codeQualityCapability.d.ts +13 -0
  36. package/dist/capabilities/codeQualityCapability.d.ts.map +1 -0
  37. package/dist/capabilities/codeQualityCapability.js +25 -0
  38. package/dist/capabilities/codeQualityCapability.js.map +1 -0
  39. package/dist/capabilities/dependencySecurityCapability.d.ts +13 -0
  40. package/dist/capabilities/dependencySecurityCapability.d.ts.map +1 -0
  41. package/dist/capabilities/dependencySecurityCapability.js +24 -0
  42. package/dist/capabilities/dependencySecurityCapability.js.map +1 -0
  43. package/dist/capabilities/devCapability.d.ts +13 -0
  44. package/dist/capabilities/devCapability.d.ts.map +1 -0
  45. package/dist/capabilities/devCapability.js +24 -0
  46. package/dist/capabilities/devCapability.js.map +1 -0
  47. package/dist/capabilities/filesystemCapability.d.ts +13 -0
  48. package/dist/capabilities/filesystemCapability.d.ts.map +1 -0
  49. package/dist/capabilities/filesystemCapability.js +1 -0
  50. package/dist/capabilities/filesystemCapability.js.map +1 -0
  51. package/dist/capabilities/index.d.ts +10 -0
  52. package/dist/capabilities/index.d.ts.map +1 -0
  53. package/dist/capabilities/index.js +7 -0
  54. package/dist/capabilities/index.js.map +1 -0
  55. package/dist/capabilities/refactoringCapability.d.ts +13 -0
  56. package/dist/capabilities/refactoringCapability.d.ts.map +1 -0
  57. package/dist/capabilities/refactoringCapability.js +25 -0
  58. package/dist/capabilities/refactoringCapability.js.map +1 -0
  59. package/dist/capabilities/repoChecksCapability.d.ts +10 -0
  60. package/dist/capabilities/repoChecksCapability.d.ts.map +1 -0
  61. package/dist/capabilities/repoChecksCapability.js +24 -0
  62. package/dist/capabilities/repoChecksCapability.js.map +1 -0
  63. package/dist/capabilities/searchCapability.d.ts +13 -0
  64. package/dist/capabilities/searchCapability.d.ts.map +1 -0
  65. package/dist/capabilities/searchCapability.js +1 -0
  66. package/dist/capabilities/searchCapability.js.map +1 -0
  67. package/dist/capabilities/testingCapability.d.ts +13 -0
  68. package/dist/capabilities/testingCapability.d.ts.map +1 -0
  69. package/dist/capabilities/testingCapability.js +25 -0
  70. package/dist/capabilities/testingCapability.js.map +1 -0
  71. package/dist/capabilities/toolManifest.d.ts +3 -0
  72. package/dist/capabilities/toolManifest.d.ts.map +1 -0
  73. package/dist/capabilities/toolManifest.js +160 -0
  74. package/dist/capabilities/toolManifest.js.map +1 -0
  75. package/dist/capabilities/toolRegistry.d.ts +22 -0
  76. package/dist/capabilities/toolRegistry.d.ts.map +1 -0
  77. package/dist/capabilities/toolRegistry.js +49 -32
  78. package/dist/capabilities/toolRegistry.js.map +1 -0
  79. package/dist/config.d.ts +28 -0
  80. package/dist/config.d.ts.map +1 -0
  81. package/dist/config.js +98 -23
  82. package/dist/config.js.map +1 -0
  83. package/dist/contracts/agent-profiles.schema.json +43 -0
  84. package/dist/contracts/agent-schema.snapshot.json +437 -0
  85. package/dist/contracts/schemas/agent-profile.schema.json +157 -0
  86. package/dist/contracts/schemas/agent-rules.schema.json +238 -0
  87. package/dist/contracts/schemas/agent.schema.json +89 -0
  88. package/dist/contracts/schemas/tool-selection.schema.json +174 -0
  89. package/dist/contracts/tools.schema.json +100 -0
  90. package/dist/contracts/v1/agent.d.ts +147 -0
  91. package/dist/contracts/v1/agent.d.ts.map +1 -0
  92. package/dist/contracts/v1/agent.js +1 -0
  93. package/dist/contracts/v1/agent.js.map +1 -0
  94. package/dist/contracts/v1/agentProfileManifest.d.ts +52 -0
  95. package/dist/contracts/v1/agentProfileManifest.d.ts.map +1 -0
  96. package/dist/contracts/v1/agentProfileManifest.js +9 -0
  97. package/dist/contracts/v1/agentProfileManifest.js.map +1 -0
  98. package/dist/contracts/v1/agentRules.d.ts +60 -0
  99. package/dist/contracts/v1/agentRules.d.ts.map +1 -0
  100. package/dist/contracts/v1/agentRules.js +10 -0
  101. package/dist/contracts/v1/agentRules.js.map +1 -0
  102. package/dist/contracts/v1/provider.d.ts +149 -0
  103. package/dist/contracts/v1/provider.d.ts.map +1 -0
  104. package/dist/contracts/v1/provider.js +1 -0
  105. package/dist/contracts/v1/provider.js.map +1 -0
  106. package/dist/contracts/v1/tool.d.ts +136 -0
  107. package/dist/contracts/v1/tool.d.ts.map +1 -0
  108. package/dist/contracts/v1/tool.js +1 -0
  109. package/dist/contracts/v1/tool.js.map +1 -0
  110. package/dist/contracts/v1/toolAccess.d.ts +43 -0
  111. package/dist/contracts/v1/toolAccess.d.ts.map +1 -0
  112. package/dist/contracts/v1/toolAccess.js +9 -0
  113. package/dist/contracts/v1/toolAccess.js.map +1 -0
  114. package/dist/core/agent.d.ts +35 -0
  115. package/dist/core/agent.d.ts.map +1 -0
  116. package/dist/core/agent.js +17 -9
  117. package/dist/core/agent.js.map +1 -0
  118. package/dist/core/agentProfileManifest.d.ts +3 -0
  119. package/dist/core/agentProfileManifest.d.ts.map +1 -0
  120. package/dist/core/agentProfileManifest.js +176 -0
  121. package/dist/core/agentProfileManifest.js.map +1 -0
  122. package/dist/core/agentProfiles.d.ts +22 -0
  123. package/dist/core/agentProfiles.d.ts.map +1 -0
  124. package/dist/core/agentProfiles.js +1 -0
  125. package/dist/core/agentProfiles.js.map +1 -0
  126. package/dist/core/agentRulebook.d.ts +10 -0
  127. package/dist/core/agentRulebook.d.ts.map +1 -0
  128. package/dist/core/agentRulebook.js +153 -0
  129. package/dist/core/agentRulebook.js.map +1 -0
  130. package/dist/core/agentSchemaSnapshot.d.ts +14 -0
  131. package/dist/core/agentSchemaSnapshot.d.ts.map +1 -0
  132. package/dist/core/agentSchemaSnapshot.js +38 -0
  133. package/dist/core/agentSchemaSnapshot.js.map +1 -0
  134. package/dist/core/agentsDocument.d.ts +4 -0
  135. package/dist/core/agentsDocument.d.ts.map +1 -0
  136. package/dist/core/agentsDocument.js +70 -0
  137. package/dist/core/agentsDocument.js.map +1 -0
  138. package/dist/core/contextWindow.d.ts +6 -0
  139. package/dist/core/contextWindow.d.ts.map +1 -0
  140. package/dist/core/contextWindow.js +1 -0
  141. package/dist/core/contextWindow.js.map +1 -0
  142. package/dist/core/errors/apiKeyErrors.d.ts +11 -0
  143. package/dist/core/errors/apiKeyErrors.d.ts.map +1 -0
  144. package/dist/core/errors/apiKeyErrors.js +1 -0
  145. package/dist/core/errors/apiKeyErrors.js.map +1 -0
  146. package/dist/core/errors.d.ts +4 -0
  147. package/dist/core/errors.d.ts.map +1 -0
  148. package/dist/core/errors.js +33 -0
  149. package/dist/core/errors.js.map +1 -0
  150. package/dist/core/preferences.d.ts +21 -0
  151. package/dist/core/preferences.d.ts.map +1 -0
  152. package/dist/core/preferences.js +13 -7
  153. package/dist/core/preferences.js.map +1 -0
  154. package/dist/core/schemaValidator.d.ts +6 -0
  155. package/dist/core/schemaValidator.d.ts.map +1 -0
  156. package/dist/core/schemaValidator.js +93 -0
  157. package/dist/core/schemaValidator.js.map +1 -0
  158. package/dist/core/secretStore.d.ts +20 -0
  159. package/dist/core/secretStore.d.ts.map +1 -0
  160. package/dist/core/secretStore.js +3 -8
  161. package/dist/core/secretStore.js.map +1 -0
  162. package/dist/core/toolRuntime.d.ts +48 -0
  163. package/dist/core/toolRuntime.d.ts.map +1 -0
  164. package/dist/core/toolRuntime.js +34 -11
  165. package/dist/core/toolRuntime.js.map +1 -0
  166. package/dist/core/types.d.ts +86 -0
  167. package/dist/core/types.d.ts.map +1 -0
  168. package/dist/core/types.js +1 -0
  169. package/dist/core/types.js.map +1 -0
  170. package/dist/plugins/providers/anthropic/index.d.ts +2 -0
  171. package/dist/plugins/providers/anthropic/index.d.ts.map +1 -0
  172. package/dist/plugins/providers/anthropic/index.js +6 -4
  173. package/dist/plugins/providers/anthropic/index.js.map +1 -0
  174. package/dist/plugins/providers/deepseek/index.d.ts +2 -0
  175. package/dist/plugins/providers/deepseek/index.d.ts.map +1 -0
  176. package/dist/plugins/providers/deepseek/index.js +1 -0
  177. package/dist/plugins/providers/deepseek/index.js.map +1 -0
  178. package/dist/plugins/providers/google/index.d.ts +2 -0
  179. package/dist/plugins/providers/google/index.d.ts.map +1 -0
  180. package/dist/plugins/providers/google/index.js +6 -4
  181. package/dist/plugins/providers/google/index.js.map +1 -0
  182. package/dist/plugins/providers/index.d.ts +2 -0
  183. package/dist/plugins/providers/index.d.ts.map +1 -0
  184. package/dist/plugins/providers/index.js +1 -0
  185. package/dist/plugins/providers/index.js.map +1 -0
  186. package/dist/plugins/providers/openai/index.d.ts +3 -0
  187. package/dist/plugins/providers/openai/index.d.ts.map +1 -0
  188. package/dist/plugins/providers/openai/index.js +6 -4
  189. package/dist/plugins/providers/openai/index.js.map +1 -0
  190. package/dist/plugins/providers/xai/index.d.ts +2 -0
  191. package/dist/plugins/providers/xai/index.d.ts.map +1 -0
  192. package/dist/plugins/providers/xai/index.js +1 -0
  193. package/dist/plugins/providers/xai/index.js.map +1 -0
  194. package/dist/plugins/tools/bash/localBashPlugin.d.ts +3 -0
  195. package/dist/plugins/tools/bash/localBashPlugin.d.ts.map +1 -0
  196. package/dist/plugins/tools/bash/localBashPlugin.js +1 -0
  197. package/dist/plugins/tools/bash/localBashPlugin.js.map +1 -0
  198. package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts +3 -0
  199. package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts.map +1 -0
  200. package/dist/plugins/tools/checks/localRepoChecksPlugin.js +14 -0
  201. package/dist/plugins/tools/checks/localRepoChecksPlugin.js.map +1 -0
  202. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts +3 -0
  203. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts.map +1 -0
  204. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +14 -0
  205. package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js.map +1 -0
  206. package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts +3 -0
  207. package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts.map +1 -0
  208. package/dist/plugins/tools/codeQuality/codeQualityPlugin.js +14 -0
  209. package/dist/plugins/tools/codeQuality/codeQualityPlugin.js.map +1 -0
  210. package/dist/plugins/tools/dependency/dependencyPlugin.d.ts +3 -0
  211. package/dist/plugins/tools/dependency/dependencyPlugin.d.ts.map +1 -0
  212. package/dist/plugins/tools/dependency/dependencyPlugin.js +12 -0
  213. package/dist/plugins/tools/dependency/dependencyPlugin.js.map +1 -0
  214. package/dist/plugins/tools/development/devPlugin.d.ts +3 -0
  215. package/dist/plugins/tools/development/devPlugin.d.ts.map +1 -0
  216. package/dist/plugins/tools/development/devPlugin.js +14 -0
  217. package/dist/plugins/tools/development/devPlugin.js.map +1 -0
  218. package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts +3 -0
  219. package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts.map +1 -0
  220. package/dist/plugins/tools/filesystem/localFilesystemPlugin.js +1 -0
  221. package/dist/plugins/tools/filesystem/localFilesystemPlugin.js.map +1 -0
  222. package/dist/plugins/tools/index.d.ts +3 -0
  223. package/dist/plugins/tools/index.d.ts.map +1 -0
  224. package/dist/plugins/tools/index.js +1 -0
  225. package/dist/plugins/tools/index.js.map +1 -0
  226. package/dist/plugins/tools/nodeDefaults.d.ts +2 -0
  227. package/dist/plugins/tools/nodeDefaults.d.ts.map +1 -0
  228. package/dist/plugins/tools/nodeDefaults.js +15 -2
  229. package/dist/plugins/tools/nodeDefaults.js.map +1 -0
  230. package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts +3 -0
  231. package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts.map +1 -0
  232. package/dist/plugins/tools/refactoring/refactoringPlugin.js +12 -0
  233. package/dist/plugins/tools/refactoring/refactoringPlugin.js.map +1 -0
  234. package/dist/plugins/tools/registry.d.ts +22 -0
  235. package/dist/plugins/tools/registry.d.ts.map +1 -0
  236. package/dist/plugins/tools/registry.js +1 -0
  237. package/dist/plugins/tools/registry.js.map +1 -0
  238. package/dist/plugins/tools/search/localSearchPlugin.d.ts +3 -0
  239. package/dist/plugins/tools/search/localSearchPlugin.d.ts.map +1 -0
  240. package/dist/plugins/tools/search/localSearchPlugin.js +1 -0
  241. package/dist/plugins/tools/search/localSearchPlugin.js.map +1 -0
  242. package/dist/plugins/tools/testing/testingPlugin.d.ts +3 -0
  243. package/dist/plugins/tools/testing/testingPlugin.d.ts.map +1 -0
  244. package/dist/plugins/tools/testing/testingPlugin.js +12 -0
  245. package/dist/plugins/tools/testing/testingPlugin.js.map +1 -0
  246. package/dist/providers/anthropicProvider.d.ts +23 -0
  247. package/dist/providers/anthropicProvider.d.ts.map +1 -0
  248. package/dist/providers/anthropicProvider.js +3 -2
  249. package/dist/providers/anthropicProvider.js.map +1 -0
  250. package/dist/providers/googleProvider.d.ts +19 -0
  251. package/dist/providers/googleProvider.d.ts.map +1 -0
  252. package/dist/providers/googleProvider.js +1 -1
  253. package/dist/providers/googleProvider.js.map +1 -0
  254. package/dist/providers/openaiChatCompletionsProvider.d.ts +16 -0
  255. package/dist/providers/openaiChatCompletionsProvider.d.ts.map +1 -0
  256. package/dist/providers/openaiChatCompletionsProvider.js +1 -0
  257. package/dist/providers/openaiChatCompletionsProvider.js.map +1 -0
  258. package/dist/providers/openaiResponsesProvider.d.ts +20 -0
  259. package/dist/providers/openaiResponsesProvider.d.ts.map +1 -0
  260. package/dist/providers/openaiResponsesProvider.js +1 -0
  261. package/dist/providers/openaiResponsesProvider.js.map +1 -0
  262. package/dist/providers/providerFactory.d.ts +18 -0
  263. package/dist/providers/providerFactory.d.ts.map +1 -0
  264. package/dist/providers/providerFactory.js +5 -1
  265. package/dist/providers/providerFactory.js.map +1 -0
  266. package/dist/runtime/agentHost.d.ts +61 -0
  267. package/dist/runtime/agentHost.d.ts.map +1 -0
  268. package/dist/runtime/agentHost.js +5 -1
  269. package/dist/runtime/agentHost.js.map +1 -0
  270. package/dist/runtime/agentSession.d.ts +32 -0
  271. package/dist/runtime/agentSession.d.ts.map +1 -0
  272. package/dist/runtime/agentSession.js +23 -1
  273. package/dist/runtime/agentSession.js.map +1 -0
  274. package/dist/runtime/browser.d.ts +7 -0
  275. package/dist/runtime/browser.d.ts.map +1 -0
  276. package/dist/runtime/browser.js +1 -0
  277. package/dist/runtime/browser.js.map +1 -0
  278. package/dist/runtime/cloud.d.ts +7 -0
  279. package/dist/runtime/cloud.d.ts.map +1 -0
  280. package/dist/runtime/cloud.js +1 -0
  281. package/dist/runtime/cloud.js.map +1 -0
  282. package/dist/runtime/node.d.ts +8 -0
  283. package/dist/runtime/node.d.ts.map +1 -0
  284. package/dist/runtime/node.js +1 -0
  285. package/dist/runtime/node.js.map +1 -0
  286. package/dist/runtime/universal.d.ts +21 -0
  287. package/dist/runtime/universal.d.ts.map +1 -0
  288. package/dist/runtime/universal.js +1 -0
  289. package/dist/runtime/universal.js.map +1 -0
  290. package/dist/shell/bracketedPasteManager.d.ts +23 -0
  291. package/dist/shell/bracketedPasteManager.d.ts.map +1 -0
  292. package/dist/shell/bracketedPasteManager.js +1 -0
  293. package/dist/shell/bracketedPasteManager.js.map +1 -0
  294. package/dist/shell/interactiveShell.d.ts +128 -0
  295. package/dist/shell/interactiveShell.d.ts.map +1 -0
  296. package/dist/shell/interactiveShell.js +264 -146
  297. package/dist/shell/interactiveShell.js.map +1 -0
  298. package/dist/shell/liveStatus.d.ts +33 -0
  299. package/dist/shell/liveStatus.d.ts.map +1 -0
  300. package/dist/shell/liveStatus.js +89 -0
  301. package/dist/shell/liveStatus.js.map +1 -0
  302. package/dist/shell/promptSkin.d.ts +50 -0
  303. package/dist/shell/promptSkin.d.ts.map +1 -0
  304. package/dist/shell/promptSkin.js +380 -0
  305. package/dist/shell/promptSkin.js.map +1 -0
  306. package/dist/shell/shellApp.d.ts +10 -0
  307. package/dist/shell/shellApp.d.ts.map +1 -0
  308. package/dist/shell/shellApp.js +155 -78
  309. package/dist/shell/shellApp.js.map +1 -0
  310. package/dist/shell/systemPrompt.d.ts +3 -0
  311. package/dist/shell/systemPrompt.d.ts.map +1 -0
  312. package/dist/shell/systemPrompt.js +64 -0
  313. package/dist/shell/systemPrompt.js.map +1 -0
  314. package/dist/shell/updateManager.d.ts +2 -0
  315. package/dist/shell/updateManager.d.ts.map +1 -0
  316. package/dist/shell/updateManager.js +109 -0
  317. package/dist/shell/updateManager.js.map +1 -0
  318. package/dist/tools/bashTools.d.ts +8 -0
  319. package/dist/tools/bashTools.d.ts.map +1 -0
  320. package/dist/tools/bashTools.js +18 -15
  321. package/dist/tools/bashTools.js.map +1 -0
  322. package/dist/tools/codeAnalysisTools.d.ts +74 -0
  323. package/dist/tools/codeAnalysisTools.d.ts.map +1 -0
  324. package/dist/tools/codeAnalysisTools.js +642 -0
  325. package/dist/tools/codeAnalysisTools.js.map +1 -0
  326. package/dist/tools/codeGenerationTools.d.ts +3 -0
  327. package/dist/tools/codeGenerationTools.d.ts.map +1 -0
  328. package/dist/tools/codeGenerationTools.js +369 -0
  329. package/dist/tools/codeGenerationTools.js.map +1 -0
  330. package/dist/tools/codeQualityTools.d.ts +3 -0
  331. package/dist/tools/codeQualityTools.d.ts.map +1 -0
  332. package/dist/tools/codeQualityTools.js +295 -0
  333. package/dist/tools/codeQualityTools.js.map +1 -0
  334. package/dist/tools/dependencyTools.d.ts +3 -0
  335. package/dist/tools/dependencyTools.d.ts.map +1 -0
  336. package/dist/tools/dependencyTools.js +283 -0
  337. package/dist/tools/dependencyTools.js.map +1 -0
  338. package/dist/tools/devTools.d.ts +10 -0
  339. package/dist/tools/devTools.d.ts.map +1 -0
  340. package/dist/tools/devTools.js +239 -0
  341. package/dist/tools/devTools.js.map +1 -0
  342. package/dist/tools/diffUtils.d.ts +8 -0
  343. package/dist/tools/diffUtils.d.ts.map +1 -0
  344. package/dist/tools/diffUtils.js +2 -1
  345. package/dist/tools/diffUtils.js.map +1 -0
  346. package/dist/tools/fileTools.d.ts +3 -0
  347. package/dist/tools/fileTools.d.ts.map +1 -0
  348. package/dist/tools/fileTools.js +72 -21
  349. package/dist/tools/fileTools.js.map +1 -0
  350. package/dist/tools/refactoringTools.d.ts +3 -0
  351. package/dist/tools/refactoringTools.d.ts.map +1 -0
  352. package/dist/tools/refactoringTools.js +294 -0
  353. package/dist/tools/refactoringTools.js.map +1 -0
  354. package/dist/tools/repoChecksTools.d.ts +3 -0
  355. package/dist/tools/repoChecksTools.d.ts.map +1 -0
  356. package/dist/tools/repoChecksTools.js +161 -0
  357. package/dist/tools/repoChecksTools.js.map +1 -0
  358. package/dist/tools/searchTools.d.ts +3 -0
  359. package/dist/tools/searchTools.d.ts.map +1 -0
  360. package/dist/tools/searchTools.js +50 -22
  361. package/dist/tools/searchTools.js.map +1 -0
  362. package/dist/tools/testingTools.d.ts +3 -0
  363. package/dist/tools/testingTools.d.ts.map +1 -0
  364. package/dist/tools/testingTools.js +233 -0
  365. package/dist/tools/testingTools.js.map +1 -0
  366. package/dist/ui/codeHighlighter.d.ts +6 -0
  367. package/dist/ui/codeHighlighter.d.ts.map +1 -0
  368. package/dist/ui/codeHighlighter.js +41 -29
  369. package/dist/ui/codeHighlighter.js.map +1 -0
  370. package/dist/ui/designSystem.d.ts +26 -0
  371. package/dist/ui/designSystem.d.ts.map +1 -0
  372. package/dist/ui/designSystem.js +1 -0
  373. package/dist/ui/designSystem.js.map +1 -0
  374. package/dist/ui/display.d.ts +78 -0
  375. package/dist/ui/display.d.ts.map +1 -0
  376. package/dist/ui/display.js +211 -153
  377. package/dist/ui/display.js.map +1 -0
  378. package/dist/ui/layout.d.ts +17 -0
  379. package/dist/ui/layout.d.ts.map +1 -0
  380. package/dist/ui/layout.js +12 -7
  381. package/dist/ui/layout.js.map +1 -0
  382. package/dist/ui/richText.d.ts +6 -0
  383. package/dist/ui/richText.d.ts.map +1 -0
  384. package/dist/ui/richText.js +13 -4
  385. package/dist/ui/richText.js.map +1 -0
  386. package/dist/ui/theme.d.ts +77 -0
  387. package/dist/ui/theme.d.ts.map +1 -0
  388. package/dist/ui/theme.js +19 -6
  389. package/dist/ui/theme.js.map +1 -0
  390. package/dist/ui/unified/UIEventBus.d.ts +93 -0
  391. package/dist/ui/unified/UIEventBus.d.ts.map +1 -0
  392. package/dist/ui/unified/UIEventBus.js +124 -0
  393. package/dist/ui/unified/UIEventBus.js.map +1 -0
  394. package/dist/ui/unified/UIState.d.ts +123 -0
  395. package/dist/ui/unified/UIState.d.ts.map +1 -0
  396. package/dist/ui/unified/UIState.js +188 -0
  397. package/dist/ui/unified/UIState.js.map +1 -0
  398. package/dist/utils/errorUtils.d.ts +16 -0
  399. package/dist/utils/errorUtils.d.ts.map +1 -0
  400. package/dist/utils/errorUtils.js +68 -0
  401. package/dist/utils/errorUtils.js.map +1 -0
  402. package/dist/utils/nodeVersion.d.ts +3 -0
  403. package/dist/utils/nodeVersion.d.ts.map +1 -0
  404. package/dist/utils/nodeVersion.js +51 -0
  405. package/dist/utils/nodeVersion.js.map +1 -0
  406. package/dist/workspace.d.ts +8 -0
  407. package/dist/workspace.d.ts.map +1 -0
  408. package/dist/workspace.js +63 -11
  409. package/dist/workspace.js.map +1 -0
  410. package/package.json +27 -14
  411. package/scripts/health-check.mjs +179 -0
  412. package/ARCHITECTURE.json +0 -157
  413. package/SOURCE_OF_TRUTH.json +0 -103
  414. package/dist/capabilities/tavilyCapability.js +0 -26
  415. package/dist/plugins/tools/tavily/tavilyPlugin.js +0 -16
  416. package/dist/shell/__tests__/bracketedPasteManager.test.js +0 -35
  417. package/dist/tools/tavilyTools.js +0 -176
  418. package/dist/ui/__tests__/richText.test.js +0 -36
@@ -0,0 +1,157 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Agent Profile Manifest v1.0",
4
+ "description": "Schema describing agent profiles, their default providers/models, and how system prompts are constructed.",
5
+ "type": "object",
6
+ "required": ["contractVersion", "version", "profiles"],
7
+ "properties": {
8
+ "contractVersion": {
9
+ "type": "string",
10
+ "description": "Version of the profile manifest contract the payload implements."
11
+ },
12
+ "version": {
13
+ "type": "string",
14
+ "description": "Semantic or date-based version identifier for the manifest."
15
+ },
16
+ "label": {
17
+ "type": "string",
18
+ "description": "Optional display label for the manifest."
19
+ },
20
+ "description": {
21
+ "type": "string",
22
+ "description": "Optional description for operators."
23
+ },
24
+ "profiles": {
25
+ "type": "array",
26
+ "minItems": 1,
27
+ "items": {
28
+ "$ref": "#/definitions/ProfileEntry"
29
+ }
30
+ },
31
+ "metadata": {
32
+ "type": "object",
33
+ "description": "Implementation specific metadata."
34
+ }
35
+ },
36
+ "definitions": {
37
+ "ProfileEntry": {
38
+ "type": "object",
39
+ "required": ["name", "label", "defaultProvider", "defaultModel", "systemPrompt", "rulebook"],
40
+ "properties": {
41
+ "name": {
42
+ "type": "string",
43
+ "description": "Stable identifier for the agent profile."
44
+ },
45
+ "label": {
46
+ "type": "string",
47
+ "description": "Human readable profile label."
48
+ },
49
+ "description": {
50
+ "type": "string",
51
+ "description": "Optional description rendered in UIs."
52
+ },
53
+ "defaultProvider": {
54
+ "type": "string",
55
+ "description": "Provider identifier the profile defaults to."
56
+ },
57
+ "defaultModel": {
58
+ "type": "string",
59
+ "description": "Default model identifier for the profile."
60
+ },
61
+ "temperature": {
62
+ "type": "number",
63
+ "description": "Optional default temperature."
64
+ },
65
+ "maxTokens": {
66
+ "type": "integer",
67
+ "minimum": 1,
68
+ "description": "Optional default max token count."
69
+ },
70
+ "systemPrompt": {
71
+ "$ref": "#/definitions/PromptConfig"
72
+ },
73
+ "rulebook": {
74
+ "$ref": "#/definitions/RulebookReference"
75
+ },
76
+ "metadata": {
77
+ "type": "object",
78
+ "description": "Implementation specific metadata."
79
+ }
80
+ },
81
+ "additionalProperties": false
82
+ },
83
+ "PromptConfig": {
84
+ "oneOf": [
85
+ {
86
+ "$ref": "#/definitions/RulebookPromptConfig"
87
+ },
88
+ {
89
+ "$ref": "#/definitions/LiteralPromptConfig"
90
+ }
91
+ ]
92
+ },
93
+ "RulebookPromptConfig": {
94
+ "type": "object",
95
+ "required": ["type"],
96
+ "properties": {
97
+ "type": {
98
+ "const": "rulebook"
99
+ },
100
+ "template": {
101
+ "type": "string",
102
+ "description": "Optional template with placeholders like {{rulebook}}."
103
+ },
104
+ "metadata": {
105
+ "type": "object",
106
+ "description": "Implementation specific metadata."
107
+ }
108
+ },
109
+ "additionalProperties": false
110
+ },
111
+ "LiteralPromptConfig": {
112
+ "type": "object",
113
+ "required": ["type", "content"],
114
+ "properties": {
115
+ "type": {
116
+ "const": "literal"
117
+ },
118
+ "content": {
119
+ "type": "string",
120
+ "description": "Static system prompt to use verbatim."
121
+ },
122
+ "metadata": {
123
+ "type": "object",
124
+ "description": "Implementation specific metadata."
125
+ }
126
+ },
127
+ "additionalProperties": false
128
+ },
129
+ "RulebookReference": {
130
+ "type": "object",
131
+ "required": ["file"],
132
+ "properties": {
133
+ "file": {
134
+ "type": "string",
135
+ "description": "Relative path to the rulebook JSON file."
136
+ },
137
+ "version": {
138
+ "type": "string",
139
+ "description": "Optional human readable version of the rulebook."
140
+ },
141
+ "contractVersion": {
142
+ "type": "string",
143
+ "description": "Optional contract version for the referenced rulebook."
144
+ },
145
+ "description": {
146
+ "type": "string",
147
+ "description": "Summary of what the rulebook enforces."
148
+ },
149
+ "metadata": {
150
+ "type": "object",
151
+ "description": "Implementation specific metadata."
152
+ }
153
+ },
154
+ "additionalProperties": false
155
+ }
156
+ }
157
+ }
@@ -0,0 +1,238 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Agent Ruleset Contract v1.0",
4
+ "description": "Schema describing the ordered phases, steps, and rules that govern agent execution.",
5
+ "type": "object",
6
+ "required": ["contractVersion", "profile", "version", "phases"],
7
+ "properties": {
8
+ "contractVersion": {
9
+ "type": "string",
10
+ "description": "Version of the agent rules contract the payload adheres to."
11
+ },
12
+ "profile": {
13
+ "type": "string",
14
+ "description": "Profile identifier the ruleset targets (e.g., general, erosolar-code)."
15
+ },
16
+ "version": {
17
+ "type": "string",
18
+ "description": "Semantic or date-based version of the ruleset."
19
+ },
20
+ "label": {
21
+ "type": "string",
22
+ "description": "Optional human readable name for the ruleset."
23
+ },
24
+ "description": {
25
+ "type": "string",
26
+ "description": "Optional long form description for the ruleset."
27
+ },
28
+ "globalPrinciples": {
29
+ "type": "array",
30
+ "description": "Rules that apply to every phase and step.",
31
+ "items": {
32
+ "$ref": "#/definitions/Rule"
33
+ }
34
+ },
35
+ "phases": {
36
+ "type": "array",
37
+ "minItems": 1,
38
+ "items": {
39
+ "$ref": "#/definitions/Phase"
40
+ },
41
+ "description": "Ordered phases the agent should move through."
42
+ },
43
+ "metadata": {
44
+ "type": "object",
45
+ "description": "Optional implementation specific metadata."
46
+ }
47
+ },
48
+ "definitions": {
49
+ "Phase": {
50
+ "type": "object",
51
+ "required": ["id", "label", "steps"],
52
+ "properties": {
53
+ "id": {
54
+ "type": "string",
55
+ "description": "Stable identifier for the phase."
56
+ },
57
+ "label": {
58
+ "type": "string",
59
+ "description": "Display name for operators."
60
+ },
61
+ "description": {
62
+ "type": "string",
63
+ "description": "What the phase accomplishes."
64
+ },
65
+ "trigger": {
66
+ "type": "string",
67
+ "description": "Events or conditions that start the phase."
68
+ },
69
+ "steps": {
70
+ "type": "array",
71
+ "minItems": 1,
72
+ "items": {
73
+ "$ref": "#/definitions/Step"
74
+ },
75
+ "description": "Steps within the phase."
76
+ },
77
+ "metadata": {
78
+ "type": "object",
79
+ "description": "Additional data used by tooling."
80
+ }
81
+ }
82
+ },
83
+ "Step": {
84
+ "type": "object",
85
+ "required": ["id", "title", "rules"],
86
+ "properties": {
87
+ "id": {
88
+ "type": "string",
89
+ "description": "Stable identifier for the step."
90
+ },
91
+ "title": {
92
+ "type": "string",
93
+ "description": "Name of the step."
94
+ },
95
+ "description": {
96
+ "type": "string",
97
+ "description": "High-level summary of the step."
98
+ },
99
+ "intent": {
100
+ "type": "string",
101
+ "description": "Goal the agent should accomplish."
102
+ },
103
+ "entryCriteria": {
104
+ "type": "array",
105
+ "description": "Conditions that must be true before the step begins.",
106
+ "items": {
107
+ "type": "string"
108
+ }
109
+ },
110
+ "exitCriteria": {
111
+ "type": "array",
112
+ "description": "Conditions that must be satisfied before leaving the step.",
113
+ "items": {
114
+ "type": "string"
115
+ }
116
+ },
117
+ "allowedTools": {
118
+ "type": "array",
119
+ "description": "Tool IDs explicitly allowed during the step.",
120
+ "items": {
121
+ "type": "string"
122
+ },
123
+ "uniqueItems": true
124
+ },
125
+ "blockedTools": {
126
+ "type": "array",
127
+ "description": "Tool IDs that are prohibited while inside the step.",
128
+ "items": {
129
+ "type": "string"
130
+ },
131
+ "uniqueItems": true
132
+ },
133
+ "notes": {
134
+ "type": "array",
135
+ "description": "Free-form operator notes for the step.",
136
+ "items": {
137
+ "type": "string"
138
+ }
139
+ },
140
+ "rules": {
141
+ "type": "array",
142
+ "minItems": 1,
143
+ "items": {
144
+ "$ref": "#/definitions/Rule"
145
+ },
146
+ "description": "Rules that must be followed while executing the step."
147
+ },
148
+ "subSteps": {
149
+ "type": "array",
150
+ "description": "Nested sub-steps that inherit context from the parent.",
151
+ "items": {
152
+ "$ref": "#/definitions/Step"
153
+ }
154
+ },
155
+ "metadata": {
156
+ "type": "object",
157
+ "description": "Implementation specific details."
158
+ }
159
+ }
160
+ },
161
+ "Rule": {
162
+ "type": "object",
163
+ "required": ["id", "summary", "severity"],
164
+ "properties": {
165
+ "id": {
166
+ "type": "string",
167
+ "description": "Stable identifier for the rule."
168
+ },
169
+ "summary": {
170
+ "type": "string",
171
+ "description": "Short instruction that must be enforced."
172
+ },
173
+ "detail": {
174
+ "type": "string",
175
+ "description": "Extended rationale or clarification."
176
+ },
177
+ "severity": {
178
+ "type": "string",
179
+ "enum": ["critical", "required", "recommended"],
180
+ "description": "How strictly the rule must be enforced."
181
+ },
182
+ "appliesDuring": {
183
+ "type": "array",
184
+ "description": "Optional labels describing where the rule applies (analysis, planning, edits, etc.).",
185
+ "items": {
186
+ "type": "string"
187
+ }
188
+ },
189
+ "evidenceRequired": {
190
+ "type": "string",
191
+ "description": "Evidence the agent must cite when reporting compliance."
192
+ },
193
+ "references": {
194
+ "type": "array",
195
+ "description": "Supporting documentation for the rule.",
196
+ "items": {
197
+ "$ref": "#/definitions/Reference"
198
+ }
199
+ },
200
+ "toolHints": {
201
+ "type": "array",
202
+ "description": "Suggested tools for satisfying the rule.",
203
+ "items": {
204
+ "type": "string"
205
+ }
206
+ },
207
+ "metadata": {
208
+ "type": "object",
209
+ "description": "Implementation specific metadata."
210
+ }
211
+ }
212
+ },
213
+ "Reference": {
214
+ "type": "object",
215
+ "required": ["label"],
216
+ "properties": {
217
+ "label": {
218
+ "type": "string",
219
+ "description": "Human readable name for the reference."
220
+ },
221
+ "url": {
222
+ "type": "string",
223
+ "format": "uri",
224
+ "description": "Optional link to supporting documentation."
225
+ },
226
+ "file": {
227
+ "type": "string",
228
+ "description": "Workspace relative file reference."
229
+ },
230
+ "line": {
231
+ "type": "integer",
232
+ "minimum": 1,
233
+ "description": "Line number in the referenced file."
234
+ }
235
+ }
236
+ }
237
+ }
238
+ }
@@ -0,0 +1,89 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Agent Contract v1.0",
4
+ "description": "JSON Schema for agent interaction contract",
5
+ "version": "1.0.0",
6
+ "definitions": {
7
+ "AgentEvent": {
8
+ "type": "object",
9
+ "required": ["type", "timestamp"],
10
+ "properties": {
11
+ "type": {
12
+ "enum": [
13
+ "message.start",
14
+ "message.delta",
15
+ "message.complete",
16
+ "tool.start",
17
+ "tool.complete",
18
+ "tool.error",
19
+ "error",
20
+ "usage"
21
+ ]
22
+ },
23
+ "timestamp": {
24
+ "type": "number"
25
+ }
26
+ }
27
+ },
28
+ "ModelConfig": {
29
+ "type": "object",
30
+ "required": ["provider", "model"],
31
+ "properties": {
32
+ "provider": {
33
+ "type": "string"
34
+ },
35
+ "model": {
36
+ "type": "string"
37
+ },
38
+ "temperature": {
39
+ "type": "number",
40
+ "minimum": 0,
41
+ "maximum": 2
42
+ },
43
+ "maxTokens": {
44
+ "type": "integer",
45
+ "minimum": 1
46
+ }
47
+ }
48
+ },
49
+ "CapabilityManifest": {
50
+ "type": "object",
51
+ "required": ["contractVersion", "profile", "model", "tools", "features"],
52
+ "properties": {
53
+ "contractVersion": {
54
+ "type": "string"
55
+ },
56
+ "profile": {
57
+ "type": "string"
58
+ },
59
+ "model": {
60
+ "$ref": "#/definitions/ModelConfig"
61
+ },
62
+ "tools": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "object",
66
+ "required": ["name", "description", "category"],
67
+ "properties": {
68
+ "name": {
69
+ "type": "string"
70
+ },
71
+ "description": {
72
+ "type": "string"
73
+ },
74
+ "category": {
75
+ "type": "string"
76
+ }
77
+ }
78
+ }
79
+ },
80
+ "features": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "string"
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
@@ -0,0 +1,174 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Tool Selection Contract v1.0",
4
+ "description": "Schema describing toggleable tool suites and presets exposed to an agent runtime.",
5
+ "type": "object",
6
+ "required": ["contractVersion", "profile", "version", "options"],
7
+ "properties": {
8
+ "contractVersion": {
9
+ "type": "string",
10
+ "description": "Version of the tool selection contract implemented by the payload."
11
+ },
12
+ "profile": {
13
+ "type": "string",
14
+ "description": "Agent profile identifier that the tool selection applies to."
15
+ },
16
+ "version": {
17
+ "type": "string",
18
+ "description": "Semantic or date-based version for the manifest."
19
+ },
20
+ "label": {
21
+ "type": "string",
22
+ "description": "Optional human readable label for the manifest."
23
+ },
24
+ "description": {
25
+ "type": "string",
26
+ "description": "Optional longer description."
27
+ },
28
+ "options": {
29
+ "type": "array",
30
+ "minItems": 1,
31
+ "items": {
32
+ "$ref": "#/definitions/ToolOption"
33
+ },
34
+ "description": "Toggleable tool suites."
35
+ },
36
+ "presets": {
37
+ "type": "array",
38
+ "description": "Optional named sets of enabled/disabled tools.",
39
+ "items": {
40
+ "$ref": "#/definitions/ToolPreset"
41
+ }
42
+ },
43
+ "metadata": {
44
+ "type": "object",
45
+ "description": "Implementation specific metadata."
46
+ }
47
+ },
48
+ "definitions": {
49
+ "ToolOption": {
50
+ "type": "object",
51
+ "required": ["id", "label", "description", "defaultEnabled", "pluginIds"],
52
+ "properties": {
53
+ "id": {
54
+ "type": "string",
55
+ "description": "Unique identifier for the tool option."
56
+ },
57
+ "label": {
58
+ "type": "string",
59
+ "description": "Human readable name."
60
+ },
61
+ "description": {
62
+ "type": "string",
63
+ "description": "Operator facing description."
64
+ },
65
+ "category": {
66
+ "type": "string",
67
+ "description": "Optional grouping/category label."
68
+ },
69
+ "defaultEnabled": {
70
+ "type": "boolean",
71
+ "description": "Whether the tool is enabled by default."
72
+ },
73
+ "pluginIds": {
74
+ "type": "array",
75
+ "minItems": 1,
76
+ "description": "IDs of the tool plugins activated by this option.",
77
+ "items": {
78
+ "type": "string"
79
+ },
80
+ "uniqueItems": true
81
+ },
82
+ "requiresSecret": {
83
+ "type": "string",
84
+ "description": "Identifier of a secret that must be configured before the tool can load."
85
+ },
86
+ "scopes": {
87
+ "type": "array",
88
+ "description": "Capabilities unlocked when this option is enabled.",
89
+ "items": {
90
+ "type": "string",
91
+ "enum": [
92
+ "filesystem:read",
93
+ "filesystem:write",
94
+ "process:exec",
95
+ "network:web",
96
+ "network:api",
97
+ "analysis:code",
98
+ "analysis:quality",
99
+ "analysis:dependency",
100
+ "analysis:testing",
101
+ "analysis:security",
102
+ "planning:refactor",
103
+ "external:web-search"
104
+ ]
105
+ },
106
+ "uniqueItems": true
107
+ },
108
+ "metadata": {
109
+ "type": "object",
110
+ "description": "Implementation specific metadata."
111
+ }
112
+ }
113
+ },
114
+ "ToolPreset": {
115
+ "type": "object",
116
+ "required": ["id", "label"],
117
+ "properties": {
118
+ "id": {
119
+ "type": "string",
120
+ "description": "Unique identifier for the preset."
121
+ },
122
+ "label": {
123
+ "type": "string",
124
+ "description": "Human readable name for the preset."
125
+ },
126
+ "description": {
127
+ "type": "string",
128
+ "description": "Longer description or guidance."
129
+ },
130
+ "enabled": {
131
+ "type": "array",
132
+ "description": "Tool option IDs forced on by the preset.",
133
+ "items": {
134
+ "type": "string"
135
+ },
136
+ "uniqueItems": true
137
+ },
138
+ "disabled": {
139
+ "type": "array",
140
+ "description": "Tool option IDs forced off by the preset.",
141
+ "items": {
142
+ "type": "string"
143
+ },
144
+ "uniqueItems": true
145
+ },
146
+ "locked": {
147
+ "type": "array",
148
+ "description": "Tool option IDs that cannot be toggled while the preset is active.",
149
+ "items": {
150
+ "type": "string"
151
+ },
152
+ "uniqueItems": true
153
+ },
154
+ "appliesTo": {
155
+ "type": "array",
156
+ "description": "Frontends where this preset should be available.",
157
+ "items": {
158
+ "type": "string",
159
+ "enum": ["cli", "browser", "http", "worker", "service"]
160
+ },
161
+ "uniqueItems": true
162
+ },
163
+ "notes": {
164
+ "type": "string",
165
+ "description": "Optional operator note rendered with the preset."
166
+ },
167
+ "metadata": {
168
+ "type": "object",
169
+ "description": "Implementation specific metadata."
170
+ }
171
+ }
172
+ }
173
+ }
174
+ }