@botpress/adk 1.18.3 → 1.19.0-beta.11

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 (299) hide show
  1. package/dist/agent-init/agent-project-generator.d.ts +10 -7
  2. package/dist/agent-init/agent-project-generator.d.ts.map +1 -1
  3. package/dist/agent-project/agent-project.d.ts +1 -1
  4. package/dist/agent-project/agent-project.d.ts.map +1 -1
  5. package/dist/agent-project/component-files.d.ts +10 -0
  6. package/dist/agent-project/component-files.d.ts.map +1 -0
  7. package/dist/agent-project/component-index-writer.d.ts +22 -0
  8. package/dist/agent-project/component-index-writer.d.ts.map +1 -0
  9. package/dist/agent-project/config-writer.d.ts +5 -0
  10. package/dist/agent-project/config-writer.d.ts.map +1 -1
  11. package/dist/agent-project/dependencies-parser.d.ts.map +1 -1
  12. package/dist/agent-project/file-watcher.d.ts.map +1 -1
  13. package/dist/agent-project/index.d.ts +3 -0
  14. package/dist/agent-project/index.d.ts.map +1 -1
  15. package/dist/agent-project/lock-to-dependencies.d.ts +11 -0
  16. package/dist/agent-project/lock-to-dependencies.d.ts.map +1 -0
  17. package/dist/agent-project/types.d.ts +1 -0
  18. package/dist/agent-project/types.d.ts.map +1 -1
  19. package/dist/agent-project/validation-errors.d.ts +1 -0
  20. package/dist/agent-project/validation-errors.d.ts.map +1 -1
  21. package/dist/agent0/capabilities/commands/adk-build.md +39 -0
  22. package/dist/agent0/capabilities/commands/adk-debug.md +23 -0
  23. package/dist/agent0/capabilities/commands/adk-dev-console.md +17 -0
  24. package/dist/agent0/capabilities/commands/adk-document.md +68 -0
  25. package/dist/agent0/capabilities/commands/adk-eval.md +17 -0
  26. package/dist/agent0/capabilities/commands/adk-explain.md +22 -0
  27. package/dist/agent0/capabilities/commands/adk-init.md +30 -0
  28. package/dist/agent0/capabilities/commands/adk-ship.md +29 -0
  29. package/dist/agent0/capabilities/commands/adk-test.md +27 -0
  30. package/dist/agent0/capabilities/commands/adk-validate.md +31 -0
  31. package/dist/agent0/capabilities/skills/adk/SKILL.md +548 -0
  32. package/dist/agent0/capabilities/skills/adk/references/actions.md +823 -0
  33. package/dist/agent0/capabilities/skills/adk/references/advanced-patterns.md +669 -0
  34. package/dist/agent0/capabilities/skills/adk/references/agent-config.md +450 -0
  35. package/dist/agent0/capabilities/skills/adk/references/assets.md +237 -0
  36. package/dist/agent0/capabilities/skills/adk/references/autonomous-execution.md +747 -0
  37. package/dist/agent0/capabilities/skills/adk/references/cli.md +1334 -0
  38. package/dist/agent0/capabilities/skills/adk/references/context-api.md +461 -0
  39. package/dist/agent0/capabilities/skills/adk/references/conversation-lifecycle.md +311 -0
  40. package/dist/agent0/capabilities/skills/adk/references/conversations.md +1111 -0
  41. package/dist/agent0/capabilities/skills/adk/references/custom-components.md +167 -0
  42. package/dist/agent0/capabilities/skills/adk/references/desk.md +852 -0
  43. package/dist/agent0/capabilities/skills/adk/references/evals.md +11 -0
  44. package/dist/agent0/capabilities/skills/adk/references/explain-config.md +424 -0
  45. package/dist/agent0/capabilities/skills/adk/references/files.md +918 -0
  46. package/dist/agent0/capabilities/skills/adk/references/integration-actions.md +659 -0
  47. package/dist/agent0/capabilities/skills/adk/references/integrations.md +266 -0
  48. package/dist/agent0/capabilities/skills/adk/references/interfaces.md +97 -0
  49. package/dist/agent0/capabilities/skills/adk/references/knowledge-bases.md +456 -0
  50. package/dist/agent0/capabilities/skills/adk/references/mcp-server.md +112 -0
  51. package/dist/agent0/capabilities/skills/adk/references/messages.md +769 -0
  52. package/dist/agent0/capabilities/skills/adk/references/model-configuration.md +201 -0
  53. package/dist/agent0/capabilities/skills/adk/references/patterns-mistakes.md +469 -0
  54. package/dist/agent0/capabilities/skills/adk/references/plugins.md +280 -0
  55. package/dist/agent0/capabilities/skills/adk/references/tables.md +1136 -0
  56. package/dist/agent0/capabilities/skills/adk/references/tags.md +516 -0
  57. package/dist/agent0/capabilities/skills/adk/references/tools.md +581 -0
  58. package/dist/agent0/capabilities/skills/adk/references/triggers.md +719 -0
  59. package/dist/agent0/capabilities/skills/adk/references/workflow-steps.md +851 -0
  60. package/dist/agent0/capabilities/skills/adk/references/workflows.md +1408 -0
  61. package/dist/agent0/capabilities/skills/adk/references/zai-agent-reference.md +454 -0
  62. package/dist/agent0/capabilities/skills/adk/references/zai-complete-guide.md +1408 -0
  63. package/dist/agent0/capabilities/skills/adk-debugger/SKILL.md +257 -0
  64. package/dist/agent0/capabilities/skills/adk-debugger/references/common-failures.md +231 -0
  65. package/dist/agent0/capabilities/skills/adk-debugger/references/conversation-analysis.md +420 -0
  66. package/dist/agent0/capabilities/skills/adk-debugger/references/debug-workflow.md +239 -0
  67. package/dist/agent0/capabilities/skills/adk-debugger/references/llm-debugging.md +209 -0
  68. package/dist/agent0/capabilities/skills/adk-debugger/references/trace-summarization.md +313 -0
  69. package/dist/agent0/capabilities/skills/adk-debugger/references/traces-and-logs.md +203 -0
  70. package/dist/agent0/capabilities/skills/adk-dev-console/SKILL.md +111 -0
  71. package/dist/agent0/capabilities/skills/adk-dev-console/references/agent-steps.md +115 -0
  72. package/dist/agent0/capabilities/skills/adk-dev-console/references/component-registry.md +43 -0
  73. package/dist/agent0/capabilities/skills/adk-dev-console/references/multi-agent-dashboard.md +70 -0
  74. package/dist/agent0/capabilities/skills/adk-dev-console/references/pages.md +273 -0
  75. package/dist/agent0/capabilities/skills/adk-docs/SKILL.md +114 -0
  76. package/dist/agent0/capabilities/skills/adk-docs/references/doc-standards.md +124 -0
  77. package/dist/agent0/capabilities/skills/adk-evals/SKILL.md +244 -0
  78. package/dist/agent0/capabilities/skills/adk-evals/references/eval-format.md +354 -0
  79. package/dist/agent0/capabilities/skills/adk-evals/references/test-patterns.md +355 -0
  80. package/dist/agent0/capabilities/skills/adk-evals/references/testing-workflow.md +225 -0
  81. package/dist/agent0/config/index.d.ts +5 -0
  82. package/dist/agent0/config/index.d.ts.map +1 -0
  83. package/dist/agent0/config/paths.d.ts +12 -0
  84. package/dist/agent0/config/paths.d.ts.map +1 -0
  85. package/dist/agent0/config/schema.d.ts +171 -0
  86. package/dist/agent0/config/schema.d.ts.map +1 -0
  87. package/dist/agent0/config/secrets.d.ts +4 -0
  88. package/dist/agent0/config/secrets.d.ts.map +1 -0
  89. package/dist/agent0/config/store.d.ts +26 -0
  90. package/dist/agent0/config/store.d.ts.map +1 -0
  91. package/dist/agent0/index.d.ts +6 -0
  92. package/dist/agent0/index.d.ts.map +1 -0
  93. package/dist/agent0/index.js +3381 -0
  94. package/dist/agent0/index.js.map +29 -0
  95. package/dist/agent0/providers/catalog.d.ts +189 -0
  96. package/dist/agent0/providers/catalog.d.ts.map +1 -0
  97. package/dist/agent0/providers/index.d.ts +4 -0
  98. package/dist/agent0/providers/index.d.ts.map +1 -0
  99. package/dist/agent0/providers/registry.d.ts +32 -0
  100. package/dist/agent0/providers/registry.d.ts.map +1 -0
  101. package/dist/agent0/providers/source.d.ts +105 -0
  102. package/dist/agent0/providers/source.d.ts.map +1 -0
  103. package/dist/agent0/runtime/client.d.ts +49 -0
  104. package/dist/agent0/runtime/client.d.ts.map +1 -0
  105. package/dist/agent0/runtime/engine.d.ts +79 -0
  106. package/dist/agent0/runtime/engine.d.ts.map +1 -0
  107. package/dist/agent0/runtime/index.d.ts +7 -0
  108. package/dist/agent0/runtime/index.d.ts.map +1 -0
  109. package/dist/agent0/runtime/manager.d.ts +81 -0
  110. package/dist/agent0/runtime/manager.d.ts.map +1 -0
  111. package/dist/agent0/runtime/permissions.d.ts +6 -0
  112. package/dist/agent0/runtime/permissions.d.ts.map +1 -0
  113. package/dist/agent0/runtime/process.d.ts +52 -0
  114. package/dist/agent0/runtime/process.d.ts.map +1 -0
  115. package/dist/agent0/runtime/project-discovery.d.ts +5 -0
  116. package/dist/agent0/runtime/project-discovery.d.ts.map +1 -0
  117. package/dist/agent0/types.d.ts +447 -0
  118. package/dist/agent0/types.d.ts.map +1 -0
  119. package/dist/assets/manager.d.ts +0 -2
  120. package/dist/assets/manager.d.ts.map +1 -1
  121. package/dist/assets/types.d.ts +3 -1
  122. package/dist/assets/types.d.ts.map +1 -1
  123. package/dist/auth/credentials.d.ts.map +1 -1
  124. package/dist/auth/index.d.ts +30 -0
  125. package/dist/auth/index.d.ts.map +1 -1
  126. package/dist/auth/service.d.ts.map +1 -1
  127. package/dist/bot-generator/dev-id-manager.d.ts.map +1 -1
  128. package/dist/bot-generator/generator.d.ts +5 -1
  129. package/dist/bot-generator/generator.d.ts.map +1 -1
  130. package/dist/bot-generator/integration-sync.d.ts +2 -0
  131. package/dist/bot-generator/integration-sync.d.ts.map +1 -1
  132. package/dist/bot-generator/interface-sync.d.ts +2 -0
  133. package/dist/bot-generator/interface-sync.d.ts.map +1 -1
  134. package/dist/bot-generator/plugin-sync.d.ts +2 -0
  135. package/dist/bot-generator/plugin-sync.d.ts.map +1 -1
  136. package/dist/bot-generator/table-validation.d.ts +17 -0
  137. package/dist/bot-generator/table-validation.d.ts.map +1 -0
  138. package/dist/chat-bundle.cjs +31 -0
  139. package/dist/cognitive/models.d.ts +32 -0
  140. package/dist/cognitive/models.d.ts.map +1 -0
  141. package/dist/commands/base-command.d.ts +1 -0
  142. package/dist/commands/base-command.d.ts.map +1 -1
  143. package/dist/commands/bp-add-command.d.ts.map +1 -1
  144. package/dist/commands/bp-build-command.d.ts.map +1 -1
  145. package/dist/commands/bp-chat-command.d.ts.map +1 -1
  146. package/dist/commands/bp-cli.d.ts +1 -0
  147. package/dist/commands/bp-cli.d.ts.map +1 -1
  148. package/dist/commands/bp-cli.js +147 -0
  149. package/dist/commands/bp-cli.js.map +12 -0
  150. package/dist/commands/bp-deploy-command.d.ts.map +1 -1
  151. package/dist/commands/bp-dev-command.d.ts +7 -0
  152. package/dist/commands/bp-dev-command.d.ts.map +1 -1
  153. package/dist/commands/bp-dev-stderr.d.ts +21 -0
  154. package/dist/commands/bp-dev-stderr.d.ts.map +1 -0
  155. package/dist/commands/bp-dev-worker-env.d.ts +7 -0
  156. package/dist/commands/bp-dev-worker-env.d.ts.map +1 -0
  157. package/dist/commands/index.d.ts +0 -5
  158. package/dist/commands/index.d.ts.map +1 -1
  159. package/dist/config/manager.d.ts +9 -1
  160. package/dist/config/manager.d.ts.map +1 -1
  161. package/dist/constants.d.ts +1 -0
  162. package/dist/constants.d.ts.map +1 -1
  163. package/dist/dependencies/alias-utils.d.ts +13 -0
  164. package/dist/dependencies/alias-utils.d.ts.map +1 -0
  165. package/dist/dependencies/dependency-manager.d.ts +89 -0
  166. package/dist/dependencies/dependency-manager.d.ts.map +1 -0
  167. package/dist/dependencies/errors.d.ts +19 -0
  168. package/dist/dependencies/errors.d.ts.map +1 -0
  169. package/dist/dependencies/index.d.ts +17 -0
  170. package/dist/dependencies/index.d.ts.map +1 -0
  171. package/dist/dependencies/index.js +6233 -0
  172. package/dist/dependencies/index.js.map +61 -0
  173. package/dist/dependencies/json-utils.d.ts +3 -0
  174. package/dist/dependencies/json-utils.d.ts.map +1 -0
  175. package/dist/dependencies/lock-file.d.ts +15 -0
  176. package/dist/dependencies/lock-file.d.ts.map +1 -0
  177. package/dist/dependencies/migration.d.ts +8 -0
  178. package/dist/dependencies/migration.d.ts.map +1 -0
  179. package/dist/dependencies/registry/integration-registry.d.ts +17 -0
  180. package/dist/dependencies/registry/integration-registry.d.ts.map +1 -0
  181. package/dist/dependencies/registry/interface-registry.d.ts +11 -0
  182. package/dist/dependencies/registry/interface-registry.d.ts.map +1 -0
  183. package/dist/dependencies/registry/plugin-registry.d.ts +16 -0
  184. package/dist/dependencies/registry/plugin-registry.d.ts.map +1 -0
  185. package/dist/dependencies/resolvers/integration-resolver.d.ts +30 -0
  186. package/dist/dependencies/resolvers/integration-resolver.d.ts.map +1 -0
  187. package/dist/dependencies/resolvers/plugin-resolver.d.ts +38 -0
  188. package/dist/dependencies/resolvers/plugin-resolver.d.ts.map +1 -0
  189. package/dist/dependencies/types.d.ts +254 -0
  190. package/dist/dependencies/types.d.ts.map +1 -0
  191. package/dist/deploy-manifest/index.d.ts +608 -0
  192. package/dist/deploy-manifest/index.d.ts.map +1 -0
  193. package/dist/file-watcher/watcher.d.ts +21 -5
  194. package/dist/file-watcher/watcher.d.ts.map +1 -1
  195. package/dist/generators/action-types.d.ts.map +1 -1
  196. package/dist/generators/assets.d.ts +2 -2
  197. package/dist/generators/assets.d.ts.map +1 -1
  198. package/dist/generators/client-wrapper.d.ts.map +1 -1
  199. package/dist/generators/tests.d.ts +6 -6
  200. package/dist/generators/tests.d.ts.map +1 -1
  201. package/dist/generators/utils.d.ts.map +1 -1
  202. package/dist/index.d.ts +15 -12
  203. package/dist/index.d.ts.map +1 -1
  204. package/dist/index.js +17614 -5514
  205. package/dist/index.js.map +83 -66
  206. package/dist/integrations/config-utils.d.ts.map +1 -1
  207. package/dist/integrations/hub-cache.d.ts.map +1 -1
  208. package/dist/integrations/index.d.ts +0 -6
  209. package/dist/integrations/index.d.ts.map +1 -1
  210. package/dist/integrations/manager.d.ts +17 -1
  211. package/dist/integrations/manager.d.ts.map +1 -1
  212. package/dist/interfaces/index.d.ts +0 -2
  213. package/dist/interfaces/index.d.ts.map +1 -1
  214. package/dist/interfaces/manager.d.ts +3 -1
  215. package/dist/interfaces/manager.d.ts.map +1 -1
  216. package/dist/interfaces/parser.d.ts.map +1 -1
  217. package/dist/knowledge/manager.d.ts +3 -1
  218. package/dist/knowledge/manager.d.ts.map +1 -1
  219. package/dist/knowledge/types.d.ts +2 -2
  220. package/dist/knowledge/types.d.ts.map +1 -1
  221. package/dist/plugins/manager.d.ts +34 -1
  222. package/dist/plugins/manager.d.ts.map +1 -1
  223. package/dist/preflight/checker.d.ts +5 -6
  224. package/dist/preflight/checker.d.ts.map +1 -1
  225. package/dist/preflight/index.d.ts +2 -2
  226. package/dist/preflight/index.d.ts.map +1 -1
  227. package/dist/preflight/types.d.ts +30 -32
  228. package/dist/preflight/types.d.ts.map +1 -1
  229. package/dist/runner/script-runner.d.ts +2 -0
  230. package/dist/runner/script-runner.d.ts.map +1 -1
  231. package/dist/runner/supervise-child.d.ts +24 -0
  232. package/dist/runner/supervise-child.d.ts.map +1 -0
  233. package/dist/secrets/manager.d.ts.map +1 -1
  234. package/dist/tables/table-manager.d.ts.map +1 -1
  235. package/dist/tables/types.d.ts +3 -2
  236. package/dist/tables/types.d.ts.map +1 -1
  237. package/dist/templates/README.md +14 -13
  238. package/dist/templates/blank/agent.config.ts +0 -3
  239. package/dist/templates/blank/evals/index.eval.ts +30 -0
  240. package/dist/templates/blank/src/conversations/index.ts +16 -16
  241. package/dist/templates/blank/tsconfig.json +1 -1
  242. package/dist/templates/botpress-desk/README.md +87 -0
  243. package/dist/templates/botpress-desk/agent.config.ts +19 -0
  244. package/dist/templates/botpress-desk/evals/index.eval.ts +30 -0
  245. package/dist/templates/botpress-desk/package.json +17 -0
  246. package/dist/templates/botpress-desk/src/actions/index.ts +19 -0
  247. package/dist/templates/botpress-desk/src/conversations/index.ts +16 -0
  248. package/dist/templates/botpress-desk/src/knowledge/index.ts +20 -0
  249. package/dist/templates/botpress-desk/src/tables/index.ts +16 -0
  250. package/dist/templates/botpress-desk/src/tools/handToSupport.ts +23 -0
  251. package/dist/templates/botpress-desk/src/triggers/index.ts +17 -0
  252. package/dist/templates/botpress-desk/src/workflows/index.ts +21 -0
  253. package/dist/templates/crm-enrichment/agent.config.ts +0 -3
  254. package/dist/templates/crm-enrichment/evals/example.eval.ts +29 -0
  255. package/dist/templates/crm-enrichment/package.json +1 -0
  256. package/dist/templates/crm-enrichment/tsconfig.json +1 -1
  257. package/dist/templates/hello-world/agent.config.ts +0 -3
  258. package/dist/templates/hello-world/evals/context-retention.eval.ts +37 -0
  259. package/dist/templates/hello-world/evals/greeting.eval.ts +43 -0
  260. package/dist/templates/hello-world/package.json +1 -0
  261. package/dist/templates/hello-world/tsconfig.json +1 -1
  262. package/dist/templates/knowledge-assistant/agent.config.ts +0 -3
  263. package/dist/templates/knowledge-assistant/evals/engineering-practices.eval.ts +45 -0
  264. package/dist/templates/knowledge-assistant/evals/out-of-scope.eval.ts +33 -0
  265. package/dist/templates/knowledge-assistant/evals/pto-policy.eval.ts +44 -0
  266. package/dist/templates/knowledge-assistant/package.json +1 -0
  267. package/dist/templates/knowledge-assistant/tsconfig.json +1 -1
  268. package/dist/templates/slack-triage/agent.config.ts +0 -8
  269. package/dist/templates/slack-triage/evals/triage-basic.eval.ts +9 -39
  270. package/dist/templates/slack-triage/package.json +1 -0
  271. package/dist/templates/slack-triage/src/conversations/slack-dm.ts +4 -1
  272. package/dist/templates/slack-triage/tsconfig.json +1 -1
  273. package/dist/templates/template.config.json +16 -16
  274. package/dist/test-utils/mock-module.d.ts +29 -0
  275. package/dist/test-utils/mock-module.d.ts.map +1 -0
  276. package/dist/utils/require-chat.d.ts +3 -24
  277. package/dist/utils/require-chat.d.ts.map +1 -1
  278. package/dist/utils/search-ranking.d.ts +15 -0
  279. package/dist/utils/search-ranking.d.ts.map +1 -0
  280. package/dist/utils/source-map-optimizer.d.ts +10 -11
  281. package/dist/utils/source-map-optimizer.d.ts.map +1 -1
  282. package/dist/workspace/workspace-cache.d.ts.map +1 -1
  283. package/package.json +23 -11
  284. package/dist/commands/copilot-config-reader.d.ts +0 -12
  285. package/dist/commands/copilot-config-reader.d.ts.map +0 -1
  286. package/dist/commands/copilot-server.d.ts +0 -26
  287. package/dist/commands/copilot-server.d.ts.map +0 -1
  288. package/dist/commands/opencode-config.d.ts +0 -29
  289. package/dist/commands/opencode-config.d.ts.map +0 -1
  290. package/dist/integrations/checker.d.ts +0 -41
  291. package/dist/integrations/checker.d.ts.map +0 -1
  292. package/dist/integrations/operations.d.ts +0 -140
  293. package/dist/integrations/operations.d.ts.map +0 -1
  294. package/dist/integrations/sync-manager.d.ts +0 -19
  295. package/dist/integrations/sync-manager.d.ts.map +0 -1
  296. package/dist/interfaces/operations.d.ts +0 -48
  297. package/dist/interfaces/operations.d.ts.map +0 -1
  298. package/dist/preflight/formatter.d.ts +0 -12
  299. package/dist/preflight/formatter.d.ts.map +0 -1
@@ -24,12 +24,4 @@ export default defineConfig({
24
24
  requestCount: z.number().default(0).describe('Number of requests from this user'),
25
25
  }),
26
26
  },
27
-
28
- // Integrations extend your agent with actions, channels, and events.
29
- // Browse available integrations: adk search <name> | adk list --available
30
- // Install one: adk add <integration> (e.g. adk add browser)
31
- // See actions/events/channels: adk info <integration>
32
- dependencies: {
33
- integrations: {},
34
- },
35
27
  })
@@ -1,54 +1,24 @@
1
1
  /**
2
2
  * Eval: triage-basic
3
+ * A minimal smoke test — the bot acknowledges and classifies a bug report
4
+ * without erroring.
3
5
  *
4
- * Verifies that the triage bot correctly classifies common request types.
5
- *
6
- * Evals use the Eval class from @botpress/runtime. Each eval defines a
7
- * simulated conversation with assertions on the bot's responses and tool usage.
8
- *
9
- * Run evals with: adk eval
10
- * Run a specific eval: adk eval --name triage-basic
6
+ * Run with:
7
+ * adk evals
8
+ * adk evals triage-basic
11
9
  */
12
- import { Eval } from '@botpress/runtime'
10
+ import { Eval } from '@botpress/evals'
13
11
 
14
12
  export default new Eval({
15
13
  name: 'triage-basic',
16
- description: 'Verify the bot classifies bug reports, feature requests, and questions correctly',
17
- tags: ['triage', 'classification'],
14
+ description: 'Bot acknowledges and classifies a bug report',
18
15
  type: 'regression',
19
16
 
20
17
  conversation: [
21
18
  {
22
- user: 'The login page is showing a 500 error whenever I try to sign in with Google SSO',
23
- assert: {
24
- response: [
25
- {
26
- llm_judge:
27
- 'Response acknowledges this is a bug or error report and indicates it will be triaged or routed to the appropriate team',
28
- },
29
- ],
30
- },
31
- },
32
- {
33
- user: 'It would be great if we could export dashboard data to CSV',
34
- assert: {
35
- response: [
36
- {
37
- llm_judge:
38
- 'Response recognizes this as a feature request and indicates it will be forwarded to the product team or logged appropriately',
39
- },
40
- ],
41
- },
42
- },
43
- {
44
- user: 'How do I reset my password?',
19
+ user: 'Production API is returning 502s for every request',
45
20
  assert: {
46
- response: [
47
- {
48
- llm_judge:
49
- 'Response treats this as a general question and either answers it directly or indicates it will be routed to support',
50
- },
51
- ],
21
+ response: [{ not_contains: 'error' }],
52
22
  },
53
23
  },
54
24
  ],
@@ -9,6 +9,7 @@
9
9
  "deploy": "adk deploy"
10
10
  },
11
11
  "dependencies": {
12
+ "@botpress/evals": "^{{runtimeVersion}}",
12
13
  "@botpress/runtime": "^{{runtimeVersion}}"
13
14
  },
14
15
  "devDependencies": {
@@ -26,7 +26,10 @@ const TriageComplete = new Autonomous.Exit({
26
26
  * - Remove the exit to keep the conversation open for follow-ups
27
27
  */
28
28
  export const SlackDM = new Conversation({
29
- channel: 'slack.dm',
29
+ // `chat.channel` is included so the eval runner (which sends messages via
30
+ // @botpress/chat) can drive this handler without needing a real Slack workspace.
31
+ // Remove it once you're ready to test exclusively through Slack.
32
+ channel: ['slack.dm', 'chat.channel'],
30
33
 
31
34
  async handler({ execute }) {
32
35
  // Classify and respond in one shot. The AI will:
@@ -20,6 +20,6 @@
20
20
  "@botpress/runtime/_types/*": ["./.adk/*-types"]
21
21
  }
22
22
  },
23
- "include": ["src/**/*", ".adk/**/*"],
23
+ "include": ["src/**/*", "*.ts", ".adk/*.d.ts"],
24
24
  "exclude": ["node_modules", "dist"]
25
25
  }
@@ -2,46 +2,46 @@
2
2
  "templates": [
3
3
  {
4
4
  "name": "blank",
5
- "description": "Empty project with just the folder structure",
5
+ "description": "Empty project with webchat pre-wired so you can test in the dev console",
6
6
  "category": "starter",
7
- "integrations": [],
8
- "primitives": [],
9
- "complexity": "beginner"
7
+ "complexity": "beginner",
8
+ "dependencies": { "integrations": ["webchat@latest"], "plugins": [] }
10
9
  },
11
10
  {
12
11
  "name": "hello-world",
13
12
  "description": "A working chatbot with chat and webchat integrations",
14
13
  "category": "starter",
15
- "integrations": ["chat", "webchat"],
16
- "primitives": ["conversations"],
17
14
  "complexity": "beginner",
18
- "postInit": ["adk add chat@latest", "adk add webchat@latest"]
15
+ "dependencies": { "integrations": ["chat@latest", "webchat@latest"], "plugins": [] }
16
+ },
17
+ {
18
+ "name": "botpress-desk",
19
+ "title": "Desk Deflecting Agent",
20
+ "description": "Customer support bot with human handoff via Botpress Desk",
21
+ "category": "support",
22
+ "complexity": "intermediate",
23
+ "dependencies": { "integrations": ["webchat@latest"], "plugins": ["desk-hitl@latest"] }
19
24
  },
20
25
  {
21
26
  "name": "slack-triage",
22
27
  "description": "Slack bot that monitors a channel, classifies requests, and routes to the right person",
23
28
  "category": "triage",
24
- "integrations": ["slack"],
25
- "primitives": ["actions", "workflows", "conversations", "tables", "triggers", "knowledge"],
26
29
  "complexity": "intermediate",
27
- "postInit": ["adk add slack@latest"]
30
+ "dependencies": { "integrations": ["slack@latest", "chat@latest"], "plugins": [] }
28
31
  },
29
32
  {
30
33
  "name": "knowledge-assistant",
31
34
  "description": "RAG-powered Q&A agent with knowledge base and source citations",
32
35
  "category": "knowledge",
33
- "integrations": ["chat", "webchat"],
34
- "primitives": ["conversations", "knowledge", "actions"],
35
36
  "complexity": "beginner",
36
- "postInit": ["adk add chat@latest", "adk add webchat@latest"]
37
+ "dependencies": { "integrations": ["chat@latest", "webchat@latest"], "plugins": [] }
37
38
  },
38
39
  {
39
40
  "name": "crm-enrichment",
40
41
  "description": "Scheduled workflow that enriches CRM contacts with AI-driven classification",
41
42
  "category": "enrichment",
42
- "integrations": [],
43
- "primitives": ["workflows", "tables", "actions", "triggers"],
44
- "complexity": "intermediate"
43
+ "complexity": "intermediate",
44
+ "dependencies": { "integrations": [], "plugins": [] }
45
45
  }
46
46
  ]
47
47
  }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * `mock.module()` that automatically restores the real module once the current
3
+ * test file finishes.
4
+ *
5
+ * bun's `mock.module()` mutates the live module namespace in place and the
6
+ * override persists for the entire test process — it is not undone by
7
+ * `mock.restore()` and it leaks into every test file that runs afterwards. When
8
+ * the whole suite runs in a single `bun test` process that makes the result
9
+ * order-dependent: a module mocked by one file is still mocked when an unrelated
10
+ * file imports the real thing.
11
+ *
12
+ * Pass the statically-imported real module namespace as `realModule` so a
13
+ * shallow snapshot is captured before the mock is installed; an `afterAll` then
14
+ * reinstates that snapshot, keeping each test file hermetic.
15
+ *
16
+ * Relative specifiers (`./` or `../`) are resolved against the *caller's*
17
+ * directory before being handed to `mock.module()`. bun resolves a relative
18
+ * specifier relative to the file that invokes `mock.module()`, which here is
19
+ * this helper rather than the test file — so a bare relative string would
20
+ * register the override under the wrong path and silently do nothing. Resolving
21
+ * to an absolute path up front keys the override correctly regardless of where
22
+ * the helper lives.
23
+ *
24
+ * Usage:
25
+ * import * as agentRoot from '../utils/agent-root.js'
26
+ * mockModule('../utils/agent-root.js', agentRoot, () => ({ findAgentRootOrFail: mockFn }))
27
+ */
28
+ export declare function mockModule(specifier: string, realModule: Record<string, unknown>, factory: () => Record<string, unknown>): void;
29
+ //# sourceMappingURL=mock-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock-module.d.ts","sourceRoot":"","sources":["../../src/test-utils/mock-module.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,UAAU,CACxB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,IAAI,CAON"}
@@ -1,28 +1,7 @@
1
- /**
2
- * Utility to load @botpress/chat via CJS resolution from within the ADK's dependency tree.
3
- *
4
- * ## Why CJS?
5
- *
6
- * @botpress/chat ships two bundles:
7
- * - index.mjs (browser build): axios 1.2.5 fully inlined with http adapter set to null
8
- * - index.cjs (Node build): uses external require("axios") with real Node.js http adapter
9
- *
10
- * ESM `import()` resolves via the "module" field to index.mjs, which has a broken http
11
- * adapter in any server runtime (Node, Bun, compiled binary). CJS `require()` resolves
12
- * via "main" to index.cjs with a working adapter.
13
- *
14
- * ## Why two hops?
15
- *
16
- * In a compiled Bun binary, `import.meta.url` points to `/$bunfs/root/` (a virtual FS
17
- * with no node_modules), so `createRequire` must anchor to `process.cwd()`. But
18
- * `@botpress/chat` is a dependency of `@botpress/adk`, not the agent project at cwd.
19
- * So we first resolve `@botpress/adk` from cwd, then resolve `@botpress/chat` from
20
- * the ADK's location on disk.
21
- */
22
1
  export type ChatClient = typeof import('@botpress/chat').Client;
23
2
  /**
24
- * Returns the @botpress/chat Client class, resolved via CJS from the ADK's dependency tree.
25
- * Result is cached per resolved ADK package path after first call.
3
+ * Returns the @botpress/chat Client class. The chat client ships with the CLI
4
+ * binary, so no user-side dep declaration or anchor is needed.
26
5
  */
27
- export declare function getChatClient(cwd?: string): ChatClient;
6
+ export declare function getChatClient(): ChatClient;
28
7
  //# sourceMappingURL=require-chat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"require-chat.d.ts","sourceRoot":"","sources":["../../src/utils/require-chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAMH,MAAM,MAAM,UAAU,GAAG,cAAc,gBAAgB,EAAE,MAAM,CAAA;AAK/D;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,SAAgB,GAAG,UAAU,CAY7D"}
1
+ {"version":3,"file":"require-chat.d.ts","sourceRoot":"","sources":["../../src/utils/require-chat.ts"],"names":[],"mappings":"AA8BA,MAAM,MAAM,UAAU,GAAG,cAAc,gBAAgB,EAAE,MAAM,CAAA;AAE/D;;;GAGG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAY1C"}
@@ -0,0 +1,15 @@
1
+ export interface SearchableCatalogEntry {
2
+ name: string;
3
+ version: string;
4
+ updatedAt?: string;
5
+ title?: string;
6
+ description?: string;
7
+ }
8
+ export interface RankedCatalogEntry<T extends SearchableCatalogEntry> {
9
+ entry: T;
10
+ rank: number;
11
+ }
12
+ export declare function collectCatalogSearchResult<T extends SearchableCatalogEntry>(results: Map<string, RankedCatalogEntry<T>>, entry: T, query: string): void;
13
+ export declare function getSortedCatalogSearchResults<T extends SearchableCatalogEntry>(results: Map<string, RankedCatalogEntry<T>>, limit: number): T[];
14
+ export declare function getSortedVersions(versions: Iterable<string>): string[];
15
+ //# sourceMappingURL=search-ranking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-ranking.d.ts","sourceRoot":"","sources":["../../src/utils/search-ranking.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,sBAAsB;IAClE,KAAK,EAAE,CAAC,CAAA;IACR,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,sBAAsB,EACzE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,EAC3C,KAAK,EAAE,CAAC,EACR,KAAK,EAAE,MAAM,GACZ,IAAI,CAWN;AAED,wBAAgB,6BAA6B,CAAC,CAAC,SAAS,sBAAsB,EAC5E,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,EAC3C,KAAK,EAAE,MAAM,GACZ,CAAC,EAAE,CAQL;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,CAEtE"}
@@ -15,8 +15,9 @@
15
15
  *
16
16
  * ## Solution
17
17
  * 1. Parse the source map and identify which sources are inside the agent's src directory
18
- * 2. Remove all sources outside the agent's src directory
19
- * 3. Rebuild the mappings (VLQ-encoded segments) with updated indices
18
+ * 2. Decode the VLQ mappings in a single pass, retaining only the segments that
19
+ * reference a kept source (plus generated-column-only markers)
20
+ * 3. Re-encode the (tiny) retained set with compacted source/name indices
20
21
  * 4. Save both an optimized .map file AND inline it into the .cjs bundle
21
22
  *
22
23
  * ## What is VLQ?
@@ -36,15 +37,13 @@
36
37
  * - `,` to separate segments within a line
37
38
  * - Base64 characters to encode VLQ values
38
39
  *
39
- * ## Why This Approach?
40
- * Simply blanking out source paths isn't enough - the mappings still reference removed
41
- * sources, and the names array still contains thousands of unused identifiers. We need to:
42
- * 1. Completely remove unused sources and sourcesContent
43
- * 2. Remove unused names
44
- * 3. Rebuild the mappings with correct indices
45
- *
46
- * This reduces file size by 90%+ while keeping the source map valid and functional
47
- * for debugging the agent's own code.
40
+ * ## Performance
41
+ * The decode is unavoidable — source/name indices are cumulative deltas, so every
42
+ * segment must be decoded to keep the running state correct even for the ~99% that
43
+ * get dropped. But we avoid the two dominant costs of a naive decoder: we never
44
+ * allocate a tuple per VLQ field (a shared cursor is advanced in place), and we
45
+ * only materialize an object for segments we actually keep. For an agent bundle
46
+ * that turns millions of allocations into thousands.
48
47
  */
49
48
  export interface SourceMapOptimizeOptions {
50
49
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"source-map-optimizer.d.ts","sourceRoot":"","sources":["../../src/utils/source-map-optimizer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAKH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAA;CACrB;AAsRD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgIxF"}
1
+ {"version":3,"file":"source-map-optimizer.d.ts","sourceRoot":"","sources":["../../src/utils/source-map-optimizer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAMH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAA;CACrB;AA4PD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkHxF"}
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-cache.d.ts","sourceRoot":"","sources":["../../src/workspace/workspace-cache.ts"],"names":[],"mappings":"AASA,cAAM,cAAc;IAClB,OAAO,CAAC,KAAK,CAAwC;IACrD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAErC,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAwCxE,KAAK,IAAI,IAAI;CAGd;AAGD,eAAO,MAAM,cAAc,gBAAuB,CAAA"}
1
+ {"version":3,"file":"workspace-cache.d.ts","sourceRoot":"","sources":["../../src/workspace/workspace-cache.ts"],"names":[],"mappings":"AASA,cAAM,cAAc;IAClB,OAAO,CAAC,KAAK,CAAwC;IACrD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAErC,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAuCxE,KAAK,IAAI,IAAI;CAGd;AAGD,eAAO,MAAM,cAAc,gBAAuB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/adk",
3
- "version": "1.18.3",
3
+ "version": "1.19.0-beta.11",
4
4
  "description": "Core ADK library for building AI agents on Botpress",
5
5
  "keywords": [
6
6
  "adk",
@@ -30,13 +30,25 @@
30
30
  "types": "./dist/index.d.ts",
31
31
  "import": "./dist/index.js"
32
32
  },
33
+ "./dependencies": {
34
+ "types": "./dist/dependencies/index.d.ts",
35
+ "import": "./dist/dependencies/index.js"
36
+ },
37
+ "./internal/agent0": {
38
+ "types": "./dist/agent0/index.d.ts",
39
+ "import": "./dist/agent0/index.js"
40
+ },
41
+ "./internal/bp-cli": {
42
+ "types": "./dist/commands/bp-cli.d.ts",
43
+ "import": "./dist/commands/bp-cli.js"
44
+ },
33
45
  "./package.json": "./package.json",
34
46
  "./schemas/*": "./schemas/*"
35
47
  },
36
48
  "scripts": {
37
- "build": "bun run build:types && bun run build.ts",
49
+ "build": "bun run build:types && bun run scripts/build-chat-bundle.ts && bun run build.ts",
38
50
  "build:types": "tsc --emitDeclarationOnly",
39
- "watch": "bun run build:types && bun build ./src/index.ts --outdir ./dist --target node --format esm --sourcemap --watch",
51
+ "watch": "bun run build:types && bun run scripts/build-chat-bundle.ts && bun build ./src/index.ts --outdir ./dist --target node --format esm --sourcemap --watch",
40
52
  "clean": "rm -rf dist",
41
53
  "prepublishOnly": "bun run clean && bun run build",
42
54
  "test": "bun test",
@@ -46,11 +58,11 @@
46
58
  },
47
59
  "dependencies": {
48
60
  "@botpress/chat": "~0.5.5",
49
- "@botpress/cli": "~6.3.2",
50
- "@botpress/client": "~1.39.0",
51
- "@botpress/cognitive": "~0.5.2",
52
- "@botpress/runtime": "^1.18.3",
53
- "@botpress/sdk": "~6.4.4",
61
+ "@botpress/cli": "~6.8.6",
62
+ "@botpress/client": "~1.46.0",
63
+ "@botpress/cognitive": "~0.6.0",
64
+ "@botpress/runtime": "^1.19.0-beta.11",
65
+ "@botpress/sdk": "~6.11.1",
54
66
  "@bpinternal/jex": "^1.2.4",
55
67
  "@bpinternal/yargs-extra": "^0.0.21",
56
68
  "@parcel/watcher": "^2.5.1",
@@ -59,7 +71,7 @@
59
71
  "execa": "9.6.1",
60
72
  "glob": "^11.1.0",
61
73
  "luxon": "^3.7.2",
62
- "opencode-ai": "1.3.13",
74
+ "opencode-ai": "1.15.10",
63
75
  "oxfmt": "^0.41.0",
64
76
  "semver": "^7.7.2",
65
77
  "tree-kill": "^1.2.2",
@@ -69,8 +81,8 @@
69
81
  "typescript": ">=4.5.0"
70
82
  },
71
83
  "engines": {
72
- "bun": ">=1.3.13",
84
+ "bun": ">=1.3.14",
73
85
  "node": ">=22.0.0"
74
86
  },
75
- "packageManager": "bun@1.3.13"
87
+ "packageManager": "bun@1.3.14"
76
88
  }
@@ -1,12 +0,0 @@
1
- /**
2
- * Check if the project's opencode.json has at least one real LLM provider configured.
3
- * Also checks the global config at ~/.config/opencode/opencode.json as a fallback —
4
- * if the global config file exists at all, the user has set up OpenCode and we pass the check.
5
- */
6
- export declare function checkHasProvider(agentPath: string): boolean;
7
- /**
8
- * Check if any opencode.json (project or global) has an explicit LLM provider with a valid API key.
9
- * Returns false when the config exists but relies on external provider resolution (e.g. model-only config).
10
- */
11
- export declare function checkHasExplicitProvider(agentPath: string): boolean;
12
- //# sourceMappingURL=copilot-config-reader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"copilot-config-reader.d.ts","sourceRoot":"","sources":["../../src/commands/copilot-config-reader.ts"],"names":[],"mappings":"AA2CA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAU3D;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAQnE"}
@@ -1,26 +0,0 @@
1
- export interface CopilotServerOptions {
2
- /** Working directory (the agent project path) */
3
- cwd: string;
4
- /** CORS origins to allow */
5
- corsOrigins?: string[];
6
- /** Path to the `adk` CLI binary (for MCP registration) */
7
- adkBinPath?: string;
8
- /** UI/API server port so MCP tools can reach it */
9
- adkDevConsolePort?: number;
10
- /** Abort signal for cancellation */
11
- signal?: AbortSignal;
12
- /** Optional callback for progress messages (download status, etc.) */
13
- onLog?: (message: string) => void;
14
- }
15
- export interface CopilotServer {
16
- url: string;
17
- port: number;
18
- close: () => void;
19
- }
20
- /**
21
- * Start the copilot server using the opencode binary.
22
- * Resolves the binary from node_modules, cache, or downloads it on demand.
23
- * Finds a free port automatically — no hardcoded ports.
24
- */
25
- export declare function startCopilotServer(options: CopilotServerOptions): Promise<CopilotServer>;
26
- //# sourceMappingURL=copilot-server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"copilot-server.d.ts","sourceRoot":"","sources":["../../src/commands/copilot-server.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,oBAAoB;IACnC,iDAAiD;IACjD,GAAG,EAAE,MAAM,CAAA;IACX,4BAA4B;IAC5B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,oCAAoC;IACpC,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,sEAAsE;IACtE,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAkJD;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC,CAoF9F"}
@@ -1,29 +0,0 @@
1
- export interface OpenCodeConfig {
2
- mcp: Record<string, {
3
- type: string;
4
- command: string[];
5
- }>;
6
- agent: Record<string, {
7
- description: string;
8
- prompt: string;
9
- }>;
10
- server?: {
11
- port: number;
12
- cors?: string[];
13
- };
14
- }
15
- /**
16
- * Build the OpenCode configuration for the ADK Copilot.
17
- *
18
- * Registers the ADK MCP server and sets up a default agent prompt
19
- * scoped to ADK development. Passed to `opencode serve` via
20
- * the `OPENCODE_CONFIG_CONTENT` environment variable.
21
- */
22
- export declare function buildOpenCodeConfig(options: {
23
- adkBinPath: string;
24
- agentPath: string;
25
- adkDevConsolePort?: number;
26
- openCodePort?: number;
27
- corsOrigins?: string[];
28
- }): OpenCodeConfig;
29
- //# sourceMappingURL=opencode-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"opencode-config.d.ts","sourceRoot":"","sources":["../../src/commands/opencode-config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAA;IACxD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9D,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;CAC3C;AAuED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE;IAC3C,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB,GAAG,cAAc,CAwBjB"}
@@ -1,41 +0,0 @@
1
- import { type Integration } from '@botpress/client';
2
- export type IntegrationInstallStatus = 'enabled' | 'not_installed' | 'disabled';
3
- export type IntegrationRegistrationStatus = 'registered' | 'registration_pending' | 'registration_failed' | 'unregistration_pending' | 'unregistered' | 'unregistration_failed';
4
- export interface IntegrationCheckResult {
5
- alias: string;
6
- name: string;
7
- installStatus: IntegrationInstallStatus;
8
- registrationStatus?: IntegrationRegistrationStatus;
9
- installedVersion?: string;
10
- currentConfigurationType?: string | null;
11
- currentConfiguration?: Record<string, unknown>;
12
- desiredInstallStatus: IntegrationInstallStatus;
13
- desiredVersion: string;
14
- desiredIntegrationId?: string;
15
- desiredConfigurationType?: string | null;
16
- desiredConfiguration?: Record<string, unknown>;
17
- definition: Integration;
18
- needsInstall: boolean;
19
- needsUpdate: boolean;
20
- needsRemoval: boolean;
21
- needsConfiguration: boolean;
22
- hasError: boolean;
23
- errorMessage?: string;
24
- }
25
- export declare class IntegrationChecker {
26
- private projectPath;
27
- private client?;
28
- constructor(projectPath: string);
29
- private getClient;
30
- /**
31
- * Fetch integration definition from Botpress API
32
- * Try private first, then public
33
- */
34
- private fetchIntegrationDefinition;
35
- /**
36
- * Check integration status for a specific bot
37
- */
38
- checkIntegrations(botId: string): Promise<IntegrationCheckResult[]>;
39
- private checkIntegration;
40
- }
41
- //# sourceMappingURL=checker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checker.d.ts","sourceRoot":"","sources":["../../src/integrations/checker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,WAAW,EAAY,MAAM,kBAAkB,CAAA;AAOrE,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,eAAe,GAAG,UAAU,CAAA;AAC/E,MAAM,MAAM,6BAA6B,GACrC,YAAY,GACZ,sBAAsB,GACtB,qBAAqB,GACrB,wBAAwB,GACxB,cAAc,GACd,uBAAuB,CAAA;AAE3B,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IAGZ,aAAa,EAAE,wBAAwB,CAAA;IACvC,kBAAkB,CAAC,EAAE,6BAA6B,CAAA;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxC,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAG9C,oBAAoB,EAAE,wBAAwB,CAAA;IAC9C,cAAc,EAAE,MAAM,CAAA;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxC,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAG9C,UAAU,EAAE,WAAW,CAAA;IAGvB,YAAY,EAAE,OAAO,CAAA;IACrB,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,OAAO,CAAA;IACrB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,MAAM,CAAC,CAAQ;gBAEX,WAAW,EAAE,MAAM;YAIjB,SAAS;IAuBvB;;;OAGG;YACW,0BAA0B;IA0BxC;;OAEG;IACG,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC;YAyE3D,gBAAgB;CA4H/B"}