@botpress/adk 1.18.3 → 1.19.0-beta.10

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
@@ -0,0 +1,273 @@
1
+ # Dev Console Pages
2
+
3
+ Every page accessible from the ADK Dev Console at `http://localhost:3001`.
4
+
5
+ Pages marked **(dev only)** are hidden when the environment toggle is set to Production.
6
+ Pages marked **(experimental)** are behind a feature flag and may change.
7
+
8
+ ---
9
+
10
+ ## Multi-Agent Navigation
11
+
12
+ The Dev Console is a shared singleton — multiple `adk dev` agents register with one UI server. The sidebar agent selector switches between running agents, and the environment toggle switches between dev and prod targets. See [multi-agent-dashboard.md](./multi-agent-dashboard.md) for details.
13
+
14
+ ---
15
+
16
+ ## Chat (`/chat`)
17
+
18
+ Real-time conversation interface for testing the agent.
19
+
20
+ **Layout:** Webchat embed (left) + Agent Steps visualization (right)
21
+
22
+ **Features:**
23
+ - Webchat panel for sending messages to the agent
24
+ - Agent Steps panel showing execution flow (see `agent-steps.md`)
25
+ - Conversation picker dropdown (filters to webchat conversations)
26
+ - "Open conversation traces" link to jump to full Traces view
27
+ - Download transcript button
28
+
29
+ ---
30
+
31
+ ## Agent Map (`/agent-map`) — dev only, experimental
32
+
33
+ Interactive bird's-eye visualization of the agent's architecture as a graph. Feature-flagged behind `enable_agent_forge`.
34
+
35
+ **Layout:** Full-screen React Flow canvas with auto-layout (elkjs) + detail panel
36
+
37
+ **Features:**
38
+ - Graph nodes for agent primitives: triggers, actions, workflows, autonomous handlers, knowledge bases, tables
39
+ - Edges showing relationships between primitives
40
+ - Auto-layout with elkjs; user can drag nodes (positions persist to localStorage per agent)
41
+ - Detail panel: click a node to inspect metadata (description, knowledge counts, table schemas)
42
+ - Hover cards with node summary
43
+ - Change pulse animation when the agent snapshot updates (e.g., after file save)
44
+ - Data from `/api/agent-map/snapshot` (one-shot) and `/api/agent-map/stream` (SSE for live updates)
45
+ - "Experimental feature" badge — the map is compiled by parsing code and may be incomplete or inaccurate
46
+
47
+ ---
48
+
49
+ ## Components
50
+
51
+ ### Webchat Components (`/components`)
52
+
53
+ Browse the component registry and inspect components installed in the agent.
54
+
55
+ **Layout:** Two-tab interface (Installed / Registry) + masonry card grid + detail overlay
56
+
57
+ **Tabs:**
58
+
59
+ **Installed** — Components present in the agent's `src/components/` directory:
60
+ - Masonry card layout with component preview (rendered in shadow DOM)
61
+ - Click a card to open overlay with full details
62
+ - Empty state: "No components installed yet" with guidance
63
+
64
+ **Registry** — Available components from the external component registry:
65
+ - Same masonry layout
66
+ - Click a card to open overlay with installation instructions and metadata
67
+ - Empty state: "Registry is empty"
68
+
69
+ **Features:**
70
+ - Live reload on component source changes
71
+ - Preview rendering via shadow DOM isolation
72
+ - Error states for load/fetch failures
73
+ - Loading skeletons while fetching
74
+
75
+ See `component-registry.md` for details on the registry model and component lifecycle.
76
+
77
+ ### Actions (`/actions`) — dev only
78
+
79
+ Browse and test bot actions and integration actions.
80
+
81
+ **Layout:** Sidebar (action list) + detail pane
82
+
83
+ **Features:**
84
+ - Bot custom actions with input/output schema visualization
85
+ - Integration actions grouped by integration (icon, title, description)
86
+ - "Invoke action" button opens a modal to test with live inputs
87
+ - Schema view for input/output types
88
+
89
+ ### Workflows (`/workflows`) — dev only
90
+
91
+ Browse workflows and view execution history.
92
+
93
+ **Layout:** Sidebar (workflow list) + detail pane
94
+
95
+ **Features:**
96
+ - Workflow name, path, description, timeout badge
97
+ - "Invoke workflow" button to trigger manually
98
+ - Workflow definition schema
99
+ - **Runs tab** (`/workflows/runs`): execution history table with status, duration, timestamp
100
+ - Click a run to open WorkflowRunDetail modal
101
+
102
+ ### Triggers (`/triggers`) — dev only
103
+
104
+ Browse event triggers defined in the agent.
105
+
106
+ **Layout:** Sidebar (trigger list) + detail pane
107
+
108
+ **Features:**
109
+ - Trigger names and event types
110
+ - Trigger metadata and status
111
+
112
+ ---
113
+
114
+ ## Test
115
+
116
+ ### RAG Search (`/search`)
117
+
118
+ Test knowledge base search interactively.
119
+
120
+ **Layout:** Sidebar (KB filter + content tree) + search input + results area + detail drawer
121
+
122
+ **Features:**
123
+ - Dropdown to filter by specific knowledge base
124
+ - Query input with advanced settings (result limit, context depth)
125
+ - Search results as cards: relevance score, source file, text snippet
126
+ - Content tree sidebar showing hierarchical KB structure
127
+ - Click a result to open detail drawer with full document + highlighted passages
128
+ - Real-time search as you type
129
+
130
+ ### Evals (`/evals`) — dev only
131
+
132
+ Run and inspect automated conversation tests.
133
+
134
+ **Layout:** Sidebar (eval list) + detail pane
135
+
136
+ **Features:**
137
+ - Eval definitions with run history
138
+ - Run status: pending, in-progress, completed
139
+ - Per-turn assertion results with pass/fail badges
140
+ - Assertion types: response content, tool usage, state changes, table data, workflow triggers
141
+ - Outcome summary (passed/failed/pending counts)
142
+ - Elapsed time, turn counts
143
+ - **Runs tab** (`/evals/runs`): run history with timestamps and status
144
+ - Download results button
145
+
146
+ ---
147
+
148
+ ## Data
149
+
150
+ ### Knowledge (`/knowledge`)
151
+
152
+ Manage knowledge bases and uploaded files.
153
+
154
+ **Layout:** Sidebar (KB list) + toolbar + file grid
155
+
156
+ **Features:**
157
+ - Knowledge base list with icons and descriptions
158
+ - File grid: name, size, upload date, status badge (synced/syncing/error/local)
159
+ - Filter by name, source, status, date range
160
+ - Sort by name, date, or size
161
+ - File detail drawer: metadata, embedding status, delete/sync/copy path
162
+ - KB sync dialog to upload and sync files
163
+ - Pagination for large file lists
164
+
165
+ ### Tables (`/tables`)
166
+
167
+ Manage agent data tables.
168
+
169
+ **Layout:** Sidebar (table list) + toolbar + data grid + pagination
170
+
171
+ **Features:**
172
+ - Table definitions with row counts
173
+ - Sortable, filterable data grid (100 rows/page)
174
+ - Add/edit/delete rows
175
+ - Import/export data
176
+ - "Transfer to prod" option (with confirmation modal)
177
+ - "Recreate table" for schema changes
178
+ - Column headers with sort indicators
179
+
180
+ ### Files (`/files`) — dev only
181
+
182
+ Browse agent files.
183
+
184
+ **Layout:** Folder browser
185
+
186
+ **Features:**
187
+ - Folder tree: All Files, Knowledge Base, System, Webchat
188
+ - File list with name, size, modification time
189
+ - Copy file path button
190
+ - Hover cards with full file info
191
+ - Browser-style navigation (back/forward/refresh)
192
+
193
+ ---
194
+
195
+ ## Observe
196
+
197
+ ### Conversations (`/conversations`) — dev only
198
+
199
+ View all conversations with the agent.
200
+
201
+ **Layout:** Full-page table
202
+
203
+ **Features:**
204
+ - Table columns: ID, Integration → Channel, Created, Updated, Preview
205
+ - Sortable columns
206
+ - Real-time polling for new conversations
207
+ - Click row to inspect conversation
208
+
209
+ ### Traces (`/traces`) — dev only
210
+
211
+ Deep execution trace inspection. More detailed than Agent Steps — shows the full span tree including internal runtime spans.
212
+
213
+ **Layout:** Full-page trace viewer
214
+
215
+ **Features:**
216
+ - Hierarchical span tree grouped by parent
217
+ - Span detail panel: name, timing, status, full data payload
218
+ - JSON and tree view of span data
219
+ - Filter by trace ID or conversation ID
220
+ - Auto-refresh
221
+ - Trace-level cost calculation
222
+ - Timeline visualization showing concurrent spans
223
+
224
+ ### Logs (`/logs`) — dev only
225
+
226
+ Agent runtime logs.
227
+
228
+ **Layout:** Full-page log viewer
229
+
230
+ **Features:**
231
+ - Real-time log stream (stdout, stderr, info)
232
+ - Time range filters: 5m, 15m, 1h, 6h, all
233
+ - Text search/filter
234
+ - Color-coded: green (stdout), red (stderr), blue (info)
235
+ - ANSI color support (terminal-style rendering)
236
+ - Pause/play, clear, copy buttons
237
+ - Collapsible JSON payload inspection
238
+
239
+ ---
240
+
241
+ ## Config
242
+
243
+ ### Settings (`/settings`)
244
+
245
+ Agent configuration management.
246
+
247
+ **Sections (sidebar navigation):**
248
+ 1. **Overview** — Agent metadata: name, Bot ID, Workspace ID, file path, created/updated dates. Copy buttons for IDs.
249
+ 2. **Configuration Variables** (dev only) — Runtime config schema and values. Add/edit/delete variables.
250
+ 3. **Secrets** (dev only) — Secret schema and values. Add/edit/delete secrets.
251
+ 4. **LLM Config** (dev only) — Model selection and parameters.
252
+
253
+ ### Integrations (`/integrations`)
254
+
255
+ Install, configure, and manage integrations.
256
+
257
+ **Features:**
258
+ - Integration Hub UI (Botpress component)
259
+ - OAuth redirect handling
260
+ - Integration name and alias resolution
261
+ - Configuration editing via UI
262
+ - Installation status per integration
263
+ - Configured integrations' actions appear on the Actions page
264
+
265
+ ---
266
+
267
+ ## Dev vs. Production Mode
268
+
269
+ The environment toggle in the top navigation switches between dev and prod:
270
+
271
+ **Dev mode** (default during `adk dev`): All pages and features available.
272
+
273
+ **Production mode**: Hides development-only pages (Actions, Workflows, Triggers, Evals, Files, Conversations, Traces, Logs) and restricts some Settings sections. Chat, Search, Knowledge, Tables, Integrations, and Settings Overview remain available.
@@ -0,0 +1,114 @@
1
+ ---
2
+ name: adk-docs
3
+ description: guidelines for creating, reviewing, updating, and searching ADK documentation - use when users ask about writing, maintaining, or auditing ADK bot docs
4
+ license: MIT
5
+ ---
6
+
7
+ # ADK Documentation Management
8
+
9
+ Use this skill when helping users create, review, update, or maintain documentation for their ADK projects. Users write guides and docs for their own bots and features — code examples should come from their project and the official ADK repo.
10
+
11
+ ## When to Use This Skill
12
+
13
+ Activate this skill when users:
14
+
15
+ - Want to create documentation for their bot ("Document my order workflow", "Write a guide for my custom actions")
16
+ - Need to review existing project docs for accuracy ("Check if my docs are still correct")
17
+ - Want to update docs after changing their bot ("I refactored the checkout flow, update the docs")
18
+ - Need to check if docs are in sync with their code ("Are my docs current?")
19
+ - Want to search their project documentation ("Find docs about my payment handler")
20
+ - Ask about documentation standards or templates
21
+ - Mention `/adk-document`
22
+
23
+ ## Available Documentation
24
+
25
+ | File | Description |
26
+ |------|-------------|
27
+ | [references/doc-standards.md](./references/doc-standards.md) | Document types, templates, quality checklists, and health metrics |
28
+
29
+ ## Available Commands
30
+
31
+ | Command (and suggested subcommand) | Description |
32
+ |---------|-------------|
33
+ | `/adk-document create [topic]` | Create documentation for a feature in the user's bot |
34
+ | `/adk-document review [doc-path]` | Review project docs for accuracy and completeness |
35
+ | `/adk-document update [doc-path] [what-changed]` | Update project docs after code changes |
36
+ | `/adk-document sync [optional-doc-path]` | Check if project docs are in sync with the bot's code |
37
+ | `/adk-document search [search-term]` | Search project documentation for specific topics |
38
+
39
+ ## Shared Principles
40
+
41
+ ### 1. AI-Optimized Structure
42
+
43
+ - Clear section headers (`##`, `###`, `####`) so ripgrep can find sections
44
+ - Table of contents at top with anchor links
45
+ - Right-sized for document type (see doc-standards reference)
46
+ - Keyword-rich section names — no vague "Advanced Topics" or "Other"
47
+
48
+ ### 2. Code-First Approach
49
+
50
+ - Every concept needs a working code example from actual project code
51
+ - Include file paths with line numbers for verification
52
+ - Primary sources for examples (in priority order):
53
+ 1. The user's own ADK project (look for `agent.config.ts` in the workspace) — BEST
54
+ 2. The official ADK repo examples (clone or find locally)
55
+ 3. ADK runtime usage (`@botpress/runtime` packages)
56
+ - Never invent or speculate examples — all code must be verifiable
57
+
58
+ ### 3. Critical Distinctions
59
+
60
+ - ADK primitives (from `@botpress/runtime`) vs Botpress SDK primitives
61
+ - `this.send()` in conversations vs `client.createMessage()` in workflows
62
+ - Messages (persistent, stored) vs Events (ephemeral, not stored)
63
+ - Agnostic APIs vs channel-specific features
64
+
65
+ ### 4. No Speculation
66
+
67
+ - Do NOT add Common Mistakes or Best Practices sections unless the user explicitly provides them
68
+ - Use `❌ WRONG` / `✅ CORRECT` only when documenting actual reported errors
69
+ - Workflows and examples must be verified from actual code, not imagined
70
+
71
+ ### 5. Writing Style
72
+
73
+ - **Direct and actionable** — "Use `this.send()`" not "You might want to consider..."
74
+ - **Technically accurate** — test examples against actual ADK code
75
+ - **Assumes intelligence** — provide context and guidance, not hand-holding
76
+ - **No marketing fluff** — straight to the technical substance
77
+
78
+ ## How to Answer
79
+
80
+ When a user asks about documentation without invoking a specific command:
81
+
82
+ 1. **Load the `adk` skill (& more, if needed)** for ADK context and knowledge
83
+ 2. **Identify what they need** — creating, reviewing, updating, syncing, or searching
84
+ 3. **Point them to the right command** or help directly using the principles above
85
+ 4. **Reference doc-standards** for template and quality guidance
86
+
87
+ ## Documentation Location
88
+
89
+ Documentation is written in the user's own project. Ask the user where they want docs saved if not obvious (common locations: `./docs/`, `./guides/`, or project root).
90
+
91
+ ## Discovering Code Sources
92
+
93
+ Discover the user's project and the official ADK repo for examples:
94
+
95
+ ```javascript
96
+ // Find ADK projects in the workspace
97
+ Glob({ pattern: "**/agent.config.ts" })
98
+
99
+ // Find ADK runtime usage in the user's project
100
+ Grep({ pattern: "from ['\"]@botpress/runtime", output_mode: "files_with_matches" })
101
+
102
+ // Look for existing project documentation
103
+ Glob({ pattern: "./{docs,guides}/**/*.md" })
104
+
105
+ // Find official ADK examples if available locally
106
+ Glob({ pattern: "**/adk/examples/**/*.ts" })
107
+ ```
108
+
109
+ ## Cross-References
110
+
111
+ - **`adk` skill** — Core ADK knowledge (actions, workflows, conversations, etc.)
112
+ - **`adk-evals` skill** — Testing and eval documentation
113
+ - **`adk-frontend` skill** — Frontend integration documentation
114
+ - **`adk` skill `integrations.md` reference** — Integration lifecycle documentation
@@ -0,0 +1,124 @@
1
+ # ADK Documentation Standards
2
+
3
+ Standards, templates, and quality metrics for ADK documentation.
4
+
5
+ ## Document Types
6
+
7
+ Choose the appropriate style based on what you're documenting:
8
+
9
+ ### Reference Documentation (CLI, API endpoints)
10
+
11
+ - **Length:** 400-500 lines
12
+ - **Style:** Concise, one clear example per command/endpoint from actual project code
13
+ - **Structure:** Quick Start at top, command reference, quick reference at bottom
14
+ - **Focus:** Syntax, options, and practical workflows from real code
15
+
16
+ ```markdown
17
+ # [Topic Name]
18
+
19
+ Brief introduction (1-2 sentences)
20
+
21
+ ## Quick Start
22
+ 5-10 line essential usage example from actual project
23
+
24
+ ## Commands / Endpoints
25
+ ### command-name / GET /endpoint
26
+ Brief description
27
+ **Options:** (if applicable)
28
+ **Example:** (one example from project code)
29
+
30
+ ## Common Workflows
31
+ Only 3-4 workflows verified from actual project code
32
+
33
+ ## Quick Reference
34
+ Command summary table or list
35
+
36
+ ## See Also
37
+ Links to related docs
38
+ ```
39
+
40
+ ### Conceptual Guides (workflows, state management, patterns)
41
+
42
+ - **Length:** 500-700 lines
43
+ - **Style:** Examples from actual project implementations
44
+ - **Structure:** Intro, Core Concepts, Features, Quick Reference
45
+ - **Focus:** Understanding through real code patterns
46
+
47
+ ### Comprehensive Guides (messages, conversations, tables)
48
+
49
+ - **Length:** 600-800 lines
50
+ - **Style:** Complete API coverage with verified examples
51
+ - **Structure:** Full TOC, Features, Patterns, Reference
52
+ - **Focus:** Complete feature coverage with real implementations
53
+
54
+ ```markdown
55
+ # [Topic Name]
56
+
57
+ Brief introduction (2-3 sentences)
58
+
59
+ ## Table of Contents
60
+ - Clear links to major sections
61
+ - Include subsection highlights
62
+
63
+ ## Core Concepts
64
+ Basic understanding needed
65
+
66
+ ## [Main Feature 1]
67
+ ### Basic Usage (example from actual project code)
68
+ ### Edge Cases (only if critical and seen in project)
69
+
70
+ ## [Main Feature 2]
71
+ ...
72
+
73
+ ## Quick Reference
74
+ Essential patterns at a glance (if helpful)
75
+ ```
76
+
77
+ ## Quality Checklists
78
+
79
+ ### All Documents
80
+
81
+ - [ ] Clear `##` and `###` headers for ripgrep
82
+ - [ ] Every concept has code example from actual project
83
+ - [ ] All examples verified in actual source locations
84
+ - [ ] Searchable section names (no vague "Advanced Topics")
85
+ - [ ] Critical distinctions highlighted (ADK vs SDK)
86
+ - [ ] File paths included for code verification
87
+ - [ ] No Common Mistakes or Best Practices sections unless user-provided
88
+
89
+ ### Reference Docs (CLI, API)
90
+
91
+ - [ ] Quick Start at top with example from project
92
+ - [ ] One clear example per command/endpoint
93
+ - [ ] 3-4 workflows verified from project code
94
+ - [ ] 400-500 lines total
95
+
96
+ ### Conceptual/Comprehensive Guides
97
+
98
+ - [ ] Table of contents with descriptive links
99
+ - [ ] Quick Reference section (if helpful)
100
+ - [ ] 500-800 lines depending on complexity
101
+
102
+ ## Document Health Metrics
103
+
104
+ **Reference Docs (CLI, API):**
105
+ - Good: 400-500 lines, Quick Start at top, one example per command, 3-4 workflows
106
+ - Warning: >600 lines, multiple examples per command, separate best practices section
107
+
108
+ **Conceptual Guides:**
109
+ - Good: 500-700 lines, progressive examples, verified workflows
110
+ - Warning: >800 lines, vague sections, missing patterns
111
+
112
+ **All Documents:**
113
+ - Good: Every concept has code example, clear `##` headers, searchable section names
114
+ - Warning: Vague section names ("Advanced", "Other"), no table of contents
115
+
116
+ ## Review Report Format
117
+
118
+ When reviewing documentation, report findings in this structure:
119
+
120
+ 1. **Critical Issues** — Wrong code, broken examples, invented examples
121
+ 2. **Searchability Issues** — Missing TOC, unclear headers
122
+ 3. **Speculative Content** — Common mistakes without user feedback, invented best practices
123
+ 4. **Missing Verification** — Examples without file path references
124
+ 5. **Recommendations** — Priority improvements