@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.
- package/dist/agent-init/agent-project-generator.d.ts +10 -7
- package/dist/agent-init/agent-project-generator.d.ts.map +1 -1
- package/dist/agent-project/agent-project.d.ts +1 -1
- package/dist/agent-project/agent-project.d.ts.map +1 -1
- package/dist/agent-project/component-files.d.ts +10 -0
- package/dist/agent-project/component-files.d.ts.map +1 -0
- package/dist/agent-project/component-index-writer.d.ts +22 -0
- package/dist/agent-project/component-index-writer.d.ts.map +1 -0
- package/dist/agent-project/config-writer.d.ts +5 -0
- package/dist/agent-project/config-writer.d.ts.map +1 -1
- package/dist/agent-project/dependencies-parser.d.ts.map +1 -1
- package/dist/agent-project/file-watcher.d.ts.map +1 -1
- package/dist/agent-project/index.d.ts +3 -0
- package/dist/agent-project/index.d.ts.map +1 -1
- package/dist/agent-project/lock-to-dependencies.d.ts +11 -0
- package/dist/agent-project/lock-to-dependencies.d.ts.map +1 -0
- package/dist/agent-project/types.d.ts +1 -0
- package/dist/agent-project/types.d.ts.map +1 -1
- package/dist/agent-project/validation-errors.d.ts +1 -0
- package/dist/agent-project/validation-errors.d.ts.map +1 -1
- package/dist/agent0/capabilities/commands/adk-build.md +39 -0
- package/dist/agent0/capabilities/commands/adk-debug.md +23 -0
- package/dist/agent0/capabilities/commands/adk-dev-console.md +17 -0
- package/dist/agent0/capabilities/commands/adk-document.md +68 -0
- package/dist/agent0/capabilities/commands/adk-eval.md +17 -0
- package/dist/agent0/capabilities/commands/adk-explain.md +22 -0
- package/dist/agent0/capabilities/commands/adk-init.md +30 -0
- package/dist/agent0/capabilities/commands/adk-ship.md +29 -0
- package/dist/agent0/capabilities/commands/adk-test.md +27 -0
- package/dist/agent0/capabilities/commands/adk-validate.md +31 -0
- package/dist/agent0/capabilities/skills/adk/SKILL.md +548 -0
- package/dist/agent0/capabilities/skills/adk/references/actions.md +823 -0
- package/dist/agent0/capabilities/skills/adk/references/advanced-patterns.md +669 -0
- package/dist/agent0/capabilities/skills/adk/references/agent-config.md +450 -0
- package/dist/agent0/capabilities/skills/adk/references/assets.md +237 -0
- package/dist/agent0/capabilities/skills/adk/references/autonomous-execution.md +747 -0
- package/dist/agent0/capabilities/skills/adk/references/cli.md +1334 -0
- package/dist/agent0/capabilities/skills/adk/references/context-api.md +461 -0
- package/dist/agent0/capabilities/skills/adk/references/conversation-lifecycle.md +311 -0
- package/dist/agent0/capabilities/skills/adk/references/conversations.md +1111 -0
- package/dist/agent0/capabilities/skills/adk/references/custom-components.md +167 -0
- package/dist/agent0/capabilities/skills/adk/references/desk.md +852 -0
- package/dist/agent0/capabilities/skills/adk/references/evals.md +11 -0
- package/dist/agent0/capabilities/skills/adk/references/explain-config.md +424 -0
- package/dist/agent0/capabilities/skills/adk/references/files.md +918 -0
- package/dist/agent0/capabilities/skills/adk/references/integration-actions.md +659 -0
- package/dist/agent0/capabilities/skills/adk/references/integrations.md +266 -0
- package/dist/agent0/capabilities/skills/adk/references/interfaces.md +97 -0
- package/dist/agent0/capabilities/skills/adk/references/knowledge-bases.md +456 -0
- package/dist/agent0/capabilities/skills/adk/references/mcp-server.md +112 -0
- package/dist/agent0/capabilities/skills/adk/references/messages.md +769 -0
- package/dist/agent0/capabilities/skills/adk/references/model-configuration.md +201 -0
- package/dist/agent0/capabilities/skills/adk/references/patterns-mistakes.md +469 -0
- package/dist/agent0/capabilities/skills/adk/references/plugins.md +280 -0
- package/dist/agent0/capabilities/skills/adk/references/tables.md +1136 -0
- package/dist/agent0/capabilities/skills/adk/references/tags.md +516 -0
- package/dist/agent0/capabilities/skills/adk/references/tools.md +581 -0
- package/dist/agent0/capabilities/skills/adk/references/triggers.md +719 -0
- package/dist/agent0/capabilities/skills/adk/references/workflow-steps.md +851 -0
- package/dist/agent0/capabilities/skills/adk/references/workflows.md +1408 -0
- package/dist/agent0/capabilities/skills/adk/references/zai-agent-reference.md +454 -0
- package/dist/agent0/capabilities/skills/adk/references/zai-complete-guide.md +1408 -0
- package/dist/agent0/capabilities/skills/adk-debugger/SKILL.md +257 -0
- package/dist/agent0/capabilities/skills/adk-debugger/references/common-failures.md +231 -0
- package/dist/agent0/capabilities/skills/adk-debugger/references/conversation-analysis.md +420 -0
- package/dist/agent0/capabilities/skills/adk-debugger/references/debug-workflow.md +239 -0
- package/dist/agent0/capabilities/skills/adk-debugger/references/llm-debugging.md +209 -0
- package/dist/agent0/capabilities/skills/adk-debugger/references/trace-summarization.md +313 -0
- package/dist/agent0/capabilities/skills/adk-debugger/references/traces-and-logs.md +203 -0
- package/dist/agent0/capabilities/skills/adk-dev-console/SKILL.md +111 -0
- package/dist/agent0/capabilities/skills/adk-dev-console/references/agent-steps.md +115 -0
- package/dist/agent0/capabilities/skills/adk-dev-console/references/component-registry.md +43 -0
- package/dist/agent0/capabilities/skills/adk-dev-console/references/multi-agent-dashboard.md +70 -0
- package/dist/agent0/capabilities/skills/adk-dev-console/references/pages.md +273 -0
- package/dist/agent0/capabilities/skills/adk-docs/SKILL.md +114 -0
- package/dist/agent0/capabilities/skills/adk-docs/references/doc-standards.md +124 -0
- package/dist/agent0/capabilities/skills/adk-evals/SKILL.md +244 -0
- package/dist/agent0/capabilities/skills/adk-evals/references/eval-format.md +354 -0
- package/dist/agent0/capabilities/skills/adk-evals/references/test-patterns.md +355 -0
- package/dist/agent0/capabilities/skills/adk-evals/references/testing-workflow.md +225 -0
- package/dist/agent0/config/index.d.ts +5 -0
- package/dist/agent0/config/index.d.ts.map +1 -0
- package/dist/agent0/config/paths.d.ts +12 -0
- package/dist/agent0/config/paths.d.ts.map +1 -0
- package/dist/agent0/config/schema.d.ts +171 -0
- package/dist/agent0/config/schema.d.ts.map +1 -0
- package/dist/agent0/config/secrets.d.ts +4 -0
- package/dist/agent0/config/secrets.d.ts.map +1 -0
- package/dist/agent0/config/store.d.ts +26 -0
- package/dist/agent0/config/store.d.ts.map +1 -0
- package/dist/agent0/index.d.ts +6 -0
- package/dist/agent0/index.d.ts.map +1 -0
- package/dist/agent0/index.js +3381 -0
- package/dist/agent0/index.js.map +29 -0
- package/dist/agent0/providers/catalog.d.ts +189 -0
- package/dist/agent0/providers/catalog.d.ts.map +1 -0
- package/dist/agent0/providers/index.d.ts +4 -0
- package/dist/agent0/providers/index.d.ts.map +1 -0
- package/dist/agent0/providers/registry.d.ts +32 -0
- package/dist/agent0/providers/registry.d.ts.map +1 -0
- package/dist/agent0/providers/source.d.ts +105 -0
- package/dist/agent0/providers/source.d.ts.map +1 -0
- package/dist/agent0/runtime/client.d.ts +49 -0
- package/dist/agent0/runtime/client.d.ts.map +1 -0
- package/dist/agent0/runtime/engine.d.ts +79 -0
- package/dist/agent0/runtime/engine.d.ts.map +1 -0
- package/dist/agent0/runtime/index.d.ts +7 -0
- package/dist/agent0/runtime/index.d.ts.map +1 -0
- package/dist/agent0/runtime/manager.d.ts +81 -0
- package/dist/agent0/runtime/manager.d.ts.map +1 -0
- package/dist/agent0/runtime/permissions.d.ts +6 -0
- package/dist/agent0/runtime/permissions.d.ts.map +1 -0
- package/dist/agent0/runtime/process.d.ts +52 -0
- package/dist/agent0/runtime/process.d.ts.map +1 -0
- package/dist/agent0/runtime/project-discovery.d.ts +5 -0
- package/dist/agent0/runtime/project-discovery.d.ts.map +1 -0
- package/dist/agent0/types.d.ts +447 -0
- package/dist/agent0/types.d.ts.map +1 -0
- package/dist/assets/manager.d.ts +0 -2
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/assets/types.d.ts +3 -1
- package/dist/assets/types.d.ts.map +1 -1
- package/dist/auth/credentials.d.ts.map +1 -1
- package/dist/auth/index.d.ts +30 -0
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/service.d.ts.map +1 -1
- package/dist/bot-generator/dev-id-manager.d.ts.map +1 -1
- package/dist/bot-generator/generator.d.ts +5 -1
- package/dist/bot-generator/generator.d.ts.map +1 -1
- package/dist/bot-generator/integration-sync.d.ts +2 -0
- package/dist/bot-generator/integration-sync.d.ts.map +1 -1
- package/dist/bot-generator/interface-sync.d.ts +2 -0
- package/dist/bot-generator/interface-sync.d.ts.map +1 -1
- package/dist/bot-generator/plugin-sync.d.ts +2 -0
- package/dist/bot-generator/plugin-sync.d.ts.map +1 -1
- package/dist/bot-generator/table-validation.d.ts +17 -0
- package/dist/bot-generator/table-validation.d.ts.map +1 -0
- package/dist/chat-bundle.cjs +31 -0
- package/dist/cognitive/models.d.ts +32 -0
- package/dist/cognitive/models.d.ts.map +1 -0
- package/dist/commands/base-command.d.ts +1 -0
- package/dist/commands/base-command.d.ts.map +1 -1
- package/dist/commands/bp-add-command.d.ts.map +1 -1
- package/dist/commands/bp-build-command.d.ts.map +1 -1
- package/dist/commands/bp-chat-command.d.ts.map +1 -1
- package/dist/commands/bp-cli.d.ts +1 -0
- package/dist/commands/bp-cli.d.ts.map +1 -1
- package/dist/commands/bp-cli.js +147 -0
- package/dist/commands/bp-cli.js.map +12 -0
- package/dist/commands/bp-deploy-command.d.ts.map +1 -1
- package/dist/commands/bp-dev-command.d.ts +7 -0
- package/dist/commands/bp-dev-command.d.ts.map +1 -1
- package/dist/commands/bp-dev-stderr.d.ts +21 -0
- package/dist/commands/bp-dev-stderr.d.ts.map +1 -0
- package/dist/commands/bp-dev-worker-env.d.ts +7 -0
- package/dist/commands/bp-dev-worker-env.d.ts.map +1 -0
- package/dist/commands/index.d.ts +0 -5
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/config/manager.d.ts +9 -1
- package/dist/config/manager.d.ts.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/dependencies/alias-utils.d.ts +13 -0
- package/dist/dependencies/alias-utils.d.ts.map +1 -0
- package/dist/dependencies/dependency-manager.d.ts +89 -0
- package/dist/dependencies/dependency-manager.d.ts.map +1 -0
- package/dist/dependencies/errors.d.ts +19 -0
- package/dist/dependencies/errors.d.ts.map +1 -0
- package/dist/dependencies/index.d.ts +17 -0
- package/dist/dependencies/index.d.ts.map +1 -0
- package/dist/dependencies/index.js +6233 -0
- package/dist/dependencies/index.js.map +61 -0
- package/dist/dependencies/json-utils.d.ts +3 -0
- package/dist/dependencies/json-utils.d.ts.map +1 -0
- package/dist/dependencies/lock-file.d.ts +15 -0
- package/dist/dependencies/lock-file.d.ts.map +1 -0
- package/dist/dependencies/migration.d.ts +8 -0
- package/dist/dependencies/migration.d.ts.map +1 -0
- package/dist/dependencies/registry/integration-registry.d.ts +17 -0
- package/dist/dependencies/registry/integration-registry.d.ts.map +1 -0
- package/dist/dependencies/registry/interface-registry.d.ts +11 -0
- package/dist/dependencies/registry/interface-registry.d.ts.map +1 -0
- package/dist/dependencies/registry/plugin-registry.d.ts +16 -0
- package/dist/dependencies/registry/plugin-registry.d.ts.map +1 -0
- package/dist/dependencies/resolvers/integration-resolver.d.ts +30 -0
- package/dist/dependencies/resolvers/integration-resolver.d.ts.map +1 -0
- package/dist/dependencies/resolvers/plugin-resolver.d.ts +38 -0
- package/dist/dependencies/resolvers/plugin-resolver.d.ts.map +1 -0
- package/dist/dependencies/types.d.ts +254 -0
- package/dist/dependencies/types.d.ts.map +1 -0
- package/dist/deploy-manifest/index.d.ts +608 -0
- package/dist/deploy-manifest/index.d.ts.map +1 -0
- package/dist/file-watcher/watcher.d.ts +21 -5
- package/dist/file-watcher/watcher.d.ts.map +1 -1
- package/dist/generators/action-types.d.ts.map +1 -1
- package/dist/generators/assets.d.ts +2 -2
- package/dist/generators/assets.d.ts.map +1 -1
- package/dist/generators/client-wrapper.d.ts.map +1 -1
- package/dist/generators/tests.d.ts +6 -6
- package/dist/generators/tests.d.ts.map +1 -1
- package/dist/generators/utils.d.ts.map +1 -1
- package/dist/index.d.ts +15 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17614 -5514
- package/dist/index.js.map +83 -66
- package/dist/integrations/config-utils.d.ts.map +1 -1
- package/dist/integrations/hub-cache.d.ts.map +1 -1
- package/dist/integrations/index.d.ts +0 -6
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/manager.d.ts +17 -1
- package/dist/integrations/manager.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +0 -2
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/manager.d.ts +3 -1
- package/dist/interfaces/manager.d.ts.map +1 -1
- package/dist/interfaces/parser.d.ts.map +1 -1
- package/dist/knowledge/manager.d.ts +3 -1
- package/dist/knowledge/manager.d.ts.map +1 -1
- package/dist/knowledge/types.d.ts +2 -2
- package/dist/knowledge/types.d.ts.map +1 -1
- package/dist/plugins/manager.d.ts +34 -1
- package/dist/plugins/manager.d.ts.map +1 -1
- package/dist/preflight/checker.d.ts +5 -6
- package/dist/preflight/checker.d.ts.map +1 -1
- package/dist/preflight/index.d.ts +2 -2
- package/dist/preflight/index.d.ts.map +1 -1
- package/dist/preflight/types.d.ts +30 -32
- package/dist/preflight/types.d.ts.map +1 -1
- package/dist/runner/script-runner.d.ts +2 -0
- package/dist/runner/script-runner.d.ts.map +1 -1
- package/dist/runner/supervise-child.d.ts +24 -0
- package/dist/runner/supervise-child.d.ts.map +1 -0
- package/dist/secrets/manager.d.ts.map +1 -1
- package/dist/tables/table-manager.d.ts.map +1 -1
- package/dist/tables/types.d.ts +3 -2
- package/dist/tables/types.d.ts.map +1 -1
- package/dist/templates/README.md +14 -13
- package/dist/templates/blank/agent.config.ts +0 -3
- package/dist/templates/blank/evals/index.eval.ts +30 -0
- package/dist/templates/blank/src/conversations/index.ts +16 -16
- package/dist/templates/blank/tsconfig.json +1 -1
- package/dist/templates/botpress-desk/README.md +87 -0
- package/dist/templates/botpress-desk/agent.config.ts +19 -0
- package/dist/templates/botpress-desk/evals/index.eval.ts +30 -0
- package/dist/templates/botpress-desk/package.json +17 -0
- package/dist/templates/botpress-desk/src/actions/index.ts +19 -0
- package/dist/templates/botpress-desk/src/conversations/index.ts +16 -0
- package/dist/templates/botpress-desk/src/knowledge/index.ts +20 -0
- package/dist/templates/botpress-desk/src/tables/index.ts +16 -0
- package/dist/templates/botpress-desk/src/tools/handToSupport.ts +23 -0
- package/dist/templates/botpress-desk/src/triggers/index.ts +17 -0
- package/dist/templates/botpress-desk/src/workflows/index.ts +21 -0
- package/dist/templates/crm-enrichment/agent.config.ts +0 -3
- package/dist/templates/crm-enrichment/evals/example.eval.ts +29 -0
- package/dist/templates/crm-enrichment/package.json +1 -0
- package/dist/templates/crm-enrichment/tsconfig.json +1 -1
- package/dist/templates/hello-world/agent.config.ts +0 -3
- package/dist/templates/hello-world/evals/context-retention.eval.ts +37 -0
- package/dist/templates/hello-world/evals/greeting.eval.ts +43 -0
- package/dist/templates/hello-world/package.json +1 -0
- package/dist/templates/hello-world/tsconfig.json +1 -1
- package/dist/templates/knowledge-assistant/agent.config.ts +0 -3
- package/dist/templates/knowledge-assistant/evals/engineering-practices.eval.ts +45 -0
- package/dist/templates/knowledge-assistant/evals/out-of-scope.eval.ts +33 -0
- package/dist/templates/knowledge-assistant/evals/pto-policy.eval.ts +44 -0
- package/dist/templates/knowledge-assistant/package.json +1 -0
- package/dist/templates/knowledge-assistant/tsconfig.json +1 -1
- package/dist/templates/slack-triage/agent.config.ts +0 -8
- package/dist/templates/slack-triage/evals/triage-basic.eval.ts +9 -39
- package/dist/templates/slack-triage/package.json +1 -0
- package/dist/templates/slack-triage/src/conversations/slack-dm.ts +4 -1
- package/dist/templates/slack-triage/tsconfig.json +1 -1
- package/dist/templates/template.config.json +16 -16
- package/dist/test-utils/mock-module.d.ts +29 -0
- package/dist/test-utils/mock-module.d.ts.map +1 -0
- package/dist/utils/require-chat.d.ts +3 -24
- package/dist/utils/require-chat.d.ts.map +1 -1
- package/dist/utils/search-ranking.d.ts +15 -0
- package/dist/utils/search-ranking.d.ts.map +1 -0
- package/dist/utils/source-map-optimizer.d.ts +10 -11
- package/dist/utils/source-map-optimizer.d.ts.map +1 -1
- package/dist/workspace/workspace-cache.d.ts.map +1 -1
- package/package.json +23 -11
- package/dist/commands/copilot-config-reader.d.ts +0 -12
- package/dist/commands/copilot-config-reader.d.ts.map +0 -1
- package/dist/commands/copilot-server.d.ts +0 -26
- package/dist/commands/copilot-server.d.ts.map +0 -1
- package/dist/commands/opencode-config.d.ts +0 -29
- package/dist/commands/opencode-config.d.ts.map +0 -1
- package/dist/integrations/checker.d.ts +0 -41
- package/dist/integrations/checker.d.ts.map +0 -1
- package/dist/integrations/operations.d.ts +0 -140
- package/dist/integrations/operations.d.ts.map +0 -1
- package/dist/integrations/sync-manager.d.ts +0 -19
- package/dist/integrations/sync-manager.d.ts.map +0 -1
- package/dist/interfaces/operations.d.ts +0 -48
- package/dist/interfaces/operations.d.ts.map +0 -1
- package/dist/preflight/formatter.d.ts +0 -12
- 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
|