@botpress/adk-cli 1.19.0-beta.4 → 1.19.0-beta.5

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 (65) hide show
  1. package/dist/{README-wjb7z7f0.md → README-824wa4jj.md} +1 -1
  2. package/dist/SKILL-75ym6tcj.md +257 -0
  3. package/dist/SKILL-chnwzmt1.md +548 -0
  4. package/dist/SKILL-d4bs53y3.md +244 -0
  5. package/dist/SKILL-h4b2f1n9.md +114 -0
  6. package/dist/SKILL-hbw5nt95.md +111 -0
  7. package/dist/actions-h7hxxvxr.md +823 -0
  8. package/dist/adk-build-emhwd0tg.md +39 -0
  9. package/dist/adk-debug-yrrdtpmb.md +23 -0
  10. package/dist/adk-dev-console-7z9rtjpy.md +17 -0
  11. package/dist/adk-document-ras6zzzh.md +68 -0
  12. package/dist/adk-eval-vx76dwq0.md +17 -0
  13. package/dist/adk-explain-fcsaw852.md +22 -0
  14. package/dist/adk-init-9kmxmbbe.md +30 -0
  15. package/dist/adk-ship-dybzn884.md +29 -0
  16. package/dist/adk-test-xq67savs.md +27 -0
  17. package/dist/adk-validate-1p4skv4m.md +31 -0
  18. package/dist/advanced-patterns-z86m9h1a.md +669 -0
  19. package/dist/agent-config-1aqvkrgf.md +450 -0
  20. package/dist/agent-steps-zj4c1n9t.md +115 -0
  21. package/dist/assets-q7jt8r2q.md +237 -0
  22. package/dist/autonomous-execution-fymc12e5.md +747 -0
  23. package/dist/cli-c31e06yr.md +1334 -0
  24. package/dist/cli.js +970 -566
  25. package/dist/commands.json +24 -3
  26. package/dist/common-failures-ht29w2db.md +231 -0
  27. package/dist/component-registry-bbpw0see.md +43 -0
  28. package/dist/context-api-760cvh0h.md +461 -0
  29. package/dist/conversation-analysis-8ka4nrm4.md +420 -0
  30. package/dist/conversation-lifecycle-4seqqjc1.md +311 -0
  31. package/dist/conversations-gwfvxaee.md +1111 -0
  32. package/dist/custom-components-y5wdgpey.md +167 -0
  33. package/dist/debug-workflow-vz84q80v.md +239 -0
  34. package/dist/desk-k54ktvsd.md +852 -0
  35. package/dist/doc-standards-ck6ax2jd.md +124 -0
  36. package/dist/eval-format-7n9brja4.md +354 -0
  37. package/dist/evals-y1zcr1mc.md +11 -0
  38. package/dist/explain-config-1yaq3zzd.md +424 -0
  39. package/dist/files-dzt0wxn3.md +918 -0
  40. package/dist/integration-actions-xang7tma.md +659 -0
  41. package/dist/integrations-k5ss07f4.md +266 -0
  42. package/dist/interfaces-6t0bpxs4.md +97 -0
  43. package/dist/knowledge-bases-20rg8p5c.md +456 -0
  44. package/dist/llm-debugging-76ng8rzm.md +209 -0
  45. package/dist/mcp-server-n1asyzhv.md +112 -0
  46. package/dist/messages-gkkg0b54.md +769 -0
  47. package/dist/model-configuration-f273kgd0.md +201 -0
  48. package/dist/multi-agent-dashboard-1mdfjdts.md +70 -0
  49. package/dist/pages-xn18xn73.md +273 -0
  50. package/dist/patterns-mistakes-5vb99dhf.md +469 -0
  51. package/dist/plugins-ttnx8f49.md +280 -0
  52. package/dist/tables-x45t36dd.md +1136 -0
  53. package/dist/tags-46td3qrg.md +516 -0
  54. package/dist/test-patterns-hj47w4nc.md +355 -0
  55. package/dist/testing-workflow-2vkp932f.md +225 -0
  56. package/dist/tools-wk7bq24z.md +581 -0
  57. package/dist/trace-summarization-hdyx1c2e.md +313 -0
  58. package/dist/traces-and-logs-f2kjfh19.md +203 -0
  59. package/dist/triggers-4j2cc86x.md +719 -0
  60. package/dist/ui-server-entry.js +952 -137
  61. package/dist/workflow-steps-mrdrf1c5.md +851 -0
  62. package/dist/workflows-gadx3s69.md +1408 -0
  63. package/dist/zai-agent-reference-e6644aad.md +454 -0
  64. package/dist/zai-complete-guide-mnna5d6f.md +1408 -0
  65. package/package.json +4 -4
@@ -32,7 +32,7 @@ flowchart TD
32
32
  C --> E[copyDirRecursive]
33
33
  D --> E
34
34
  E --> F["Replace {{projectName}}, {{runtimeVersion}}, {{packageManager}}"]
35
- F --> G[Write CLAUDE.md + agent.json if missing]
35
+ F --> G[Write CLAUDE.md, AGENTS.md + agent.json if missing]
36
36
  G --> H["Install dependencies (integrations, plugins)"]
37
37
  ```
38
38
 
@@ -0,0 +1,257 @@
1
+ ---
2
+ name: adk-debugger
3
+ description: Systematic debugging for ADK agents — trace reading, log analysis, common failure diagnosis, and the debug loop.
4
+ license: MIT
5
+ ---
6
+
7
+ # ADK Debugger Skill
8
+
9
+ ## What is ADK Debugging?
10
+
11
+ Every ADK agent records its behavior as traces and logs — every conversation turn, tool call, LLM reasoning step, and error. These are the source of truth for understanding what your agent did and why.
12
+
13
+ The ADK CLI provides the tools you need to debug. Most diagnostic commands support `--format json`; use it for programmatic output. The exception is `adk dev`, which has no `--format` flag and uses `adk dev --non-interactive` for structured NDJSON output.
14
+
15
+ ## When to Use This Skill
16
+
17
+ Use this skill when the developer asks about:
18
+
19
+ - **Bot not working** — not responding, wrong responses, unexpected behavior
20
+ - **Tool issues** — wrong tool called, tool errors, hallucinated parameters
21
+ - **Workflow problems** — stuck workflows, steps not executing, state issues
22
+ - **Reading traces/logs** — how to query, filter, and interpret debug output
23
+ - **LLM misbehavior** — hallucinations, refusals, looping, poor extraction
24
+ - **Build/deploy failures** — validation errors, schema mismatches
25
+ - **Config issues** — agent.json vs agent.local.json, integration setup
26
+ - **Post-fix verification** — confirming a fix worked, writing regression evals
27
+
28
+ **Trigger questions:**
29
+ - "My bot isn't responding"
30
+ - "The wrong tool was called"
31
+ - "My workflow is stuck"
32
+ - "How do I read traces?"
33
+ - "How do I check logs?"
34
+ - "The LLM is hallucinating"
35
+ - "Something broke after my last change"
36
+ - "My deploy failed"
37
+ - "`adk check` found errors"
38
+ - "Summarize this trace"
39
+ - "What happened in trace X?"
40
+ - "Give me an overview of this conversation turn"
41
+ - "Why did the bot do X in this trace?"
42
+ - "Walk me through what happened"
43
+ - "How do I debug this?"
44
+ - "Summarize this conversation"
45
+ - "Explain what happened in conversation X"
46
+ - "Why did the bot respond that way?"
47
+ - "Walk me through this conversation"
48
+ - "What went wrong in this conversation?"
49
+
50
+ ## Available Documentation
51
+
52
+ | File | Contents |
53
+ |------|----------|
54
+ | `references/traces-and-logs.md` | CLI debugging tools, log querying, trace structure, span types, `onTrace` hooks, reproduction with `adk chat` |
55
+ | `references/common-failures.md` | Runtime failure patterns — validation, bot not responding, tool errors, workflow stuck, integration failures, build errors, config confusion |
56
+ | `references/llm-debugging.md` | LLM behavior issues — wrong tool, hallucinated params, refusals, token limits, looping, reading model reasoning |
57
+ | `references/debug-workflow.md` | The systematic 8-step debug loop: validate → reproduce → logs → traces → classify → fix → verify → prevent |
58
+ | `references/trace-summarization.md` | How to fetch, walk, and summarize traces as free-form natural-language narratives — adapting depth to context |
59
+ | `references/conversation-analysis.md` | How to summarize and explain full conversations — listing conversations, timeline analysis, correlating with traces, common patterns |
60
+
61
+ ## How to Answer
62
+
63
+ 1. **"How do I read traces/logs?"** → Read `traces-and-logs.md` for CLI commands and trace structure
64
+ 2. **Something is broken, known pattern** → Read `common-failures.md` for the matching failure pattern
65
+ 3. **LLM is misbehaving** → Read `llm-debugging.md` for the matching behavior issue
66
+ 4. **Systematic investigation needed** → Read `debug-workflow.md` and follow the 8-step loop
67
+ 5. **"Summarize this trace" / "What happened?"** → Read `trace-summarization.md` for how to fetch, walk, and narrate traces
68
+ 6. **"Summarize this conversation" / "Explain what happened"** → Read `conversation-analysis.md` for multi-turn conversation summaries and explanations
69
+ 7. **After fixing, need to prevent regression** → Point to the `adk-evals` skill for writing evals
70
+
71
+ ---
72
+
73
+ ## Quick Reference
74
+
75
+ ### The Debug Loop
76
+
77
+ ```
78
+ symptom → validate (adk check) → reproduce (adk chat) → logs (adk logs) → traces (adk traces) → root cause → fix → verify
79
+ ```
80
+
81
+ ### CLI Commands (prefer structured output)
82
+
83
+ ```bash
84
+ adk check --format json # offline validation
85
+ adk logs error --format json # recent errors
86
+ adk logs --follow --format json # stream live
87
+ adk traces --format json # recent traces
88
+ adk traces conversation=<id> --format json # specific conversation
89
+ adk chat --single "msg" --format json # test message
90
+ adk dev --non-interactive # structured NDJSON dev output (no TUI)
91
+ adk conversations --format json # list recent conversations
92
+ adk conversations show <id> --format json # conversation timeline
93
+ adk conversations show <id> --include-llm --format json # timeline with LLM reasoning
94
+ ```
95
+
96
+ ### Span Types
97
+
98
+ | Type | What It Shows |
99
+ |------|--------------|
100
+ | `think` | LLM reasoning — why it chose an action |
101
+ | `tool_call` | Tool invocation — name, input, output, success/error |
102
+ | `code_execution_exception` | Runtime error — message and stack trace |
103
+ | `end` | Conversation turn completed |
104
+
105
+ ---
106
+
107
+ ## Prerequisites Check
108
+
109
+ Before debugging, verify:
110
+
111
+ - [ ] **Project valid?** Run `adk check --format json` — fix any reported issues first
112
+ - [ ] **Dev server running?** `adk dev` (or `adk dev --non-interactive` for structured NDJSON output)
113
+ - [ ] **Bot linked?** `agent.json` exists with `botId` and `workspaceId` (created by `adk link`)
114
+ - [ ] **Dev bot created?** `agent.local.json` has `devId` (set automatically by the first `adk dev` run)
115
+ - [ ] **Integration configured?** Check Dev Console at localhost:3001 for unconfigured integrations
116
+
117
+ ---
118
+
119
+ ## Critical Patterns
120
+
121
+ ✅ **Run `adk check` before debugging runtime issues**
122
+
123
+ ```bash
124
+ # CORRECT — catch config/schema problems offline first
125
+ adk check --format json
126
+ # Then debug runtime issues
127
+ ```
128
+
129
+ ❌ **Skipping offline validation**
130
+
131
+ ```bash
132
+ # WRONG — jumping straight to runtime debugging wastes time on config issues
133
+ adk traces --format json # might be chasing a config problem
134
+ ```
135
+
136
+ ---
137
+
138
+ ✅ **Use `--format json` on all CLI commands**
139
+
140
+ ```bash
141
+ # CORRECT — structured output for reliable parsing
142
+ adk logs error --format json
143
+ adk traces --format json
144
+ adk chat --single "test" --format json
145
+ ```
146
+
147
+ ❌ **Parsing human-readable output**
148
+
149
+ ```bash
150
+ # WRONG — human-readable format is for display, not parsing
151
+ adk logs error
152
+ adk traces
153
+ ```
154
+
155
+ ---
156
+
157
+ ✅ **Use `adk logs error` to filter errors**
158
+
159
+ ```bash
160
+ # CORRECT — focused error scan
161
+ adk logs error --format json
162
+ adk logs warning since=1h --format json
163
+ ```
164
+
165
+ ❌ **Scrolling through all output**
166
+
167
+ ```bash
168
+ # WRONG — too much noise, easy to miss the actual error
169
+ adk logs --format json # 50 entries of everything
170
+ ```
171
+
172
+ ---
173
+
174
+ ✅ **Use `onTrace` hooks for programmatic monitoring**
175
+
176
+ ```typescript
177
+ // CORRECT — structured, automated trace analysis
178
+ hooks: {
179
+ onTrace: ({ trace }) => {
180
+ if (trace.type === "tool_call" && !trace.success) {
181
+ console.error(`[TOOL ERROR] ${trace.tool_name}`, trace.error);
182
+ }
183
+ }
184
+ }
185
+ ```
186
+
187
+ ❌ **Only checking console output**
188
+
189
+ ```typescript
190
+ // WRONG — console.log in handlers misses the structured trace data
191
+ handler: async (input) => {
192
+ console.log("tool called"); // not useful for debugging
193
+ }
194
+ ```
195
+
196
+ ---
197
+
198
+ ✅ **Write a regression eval after fixing**
199
+
200
+ ```typescript
201
+ // CORRECT — prevents the bug from coming back
202
+ export default new Eval({
203
+ name: 'fix-order-lookup',
204
+ type: 'regression',
205
+ conversation: [{ user: 'Look up order 123', assert: { tools: [{ called: 'lookupOrder' }] } }],
206
+ })
207
+ ```
208
+
209
+ ❌ **Fixing and moving on**
210
+
211
+ ```
212
+ // WRONG — the same bug will return and you'll debug it again
213
+ ```
214
+
215
+ ---
216
+
217
+ ## Example Questions
218
+
219
+ **Basic:**
220
+ - "My bot isn't responding — how do I figure out why?"
221
+ - "How do I check for errors in my ADK project?"
222
+ - "What's the difference between agent.json and agent.local.json?"
223
+
224
+ **Intermediate:**
225
+ - "The bot called createTicket instead of lookupTicket — how do I fix this?"
226
+ - "My workflow starts but the second step never runs"
227
+ - "How do I see what the LLM was thinking when it made a decision?"
228
+ - "Integration actions are failing with auth errors"
229
+
230
+ **Advanced:**
231
+ - "How do I set up onTrace hooks for automated error detection?"
232
+ - "The model loops on the same tool call — how do I add a guardrail?"
233
+ - "How do I monitor tool call performance with timing metrics?"
234
+ - "How do I systematically debug a multi-step workflow failure?"
235
+
236
+ ---
237
+
238
+ ## Response Format
239
+
240
+ **Match depth to the question.**
241
+
242
+ ### Simple questions ("how do I check logs?", "what are trace spans?")
243
+
244
+ Answer directly — one sentence + the CLI command or concept. Don't run the full debug loop for informational questions.
245
+
246
+ ### Active debugging ("my bot is broken", "X isn't working")
247
+
248
+ Follow the full loop:
249
+
250
+ 1. **Check prerequisites** — verify dev server, config files, project validation
251
+ 2. **Start with `adk check --format json`** — rule out offline issues
252
+ 3. **Reproduce** — use `adk chat --single "msg" --format json` to create a clean reproduction
253
+ 4. **Read the evidence** — `adk logs error --format json` for quick scan, `adk traces --format json` for details
254
+ 5. **Identify the root cause** — point to the specific span, log entry, or config issue
255
+ 6. **Suggest a targeted fix** — reference the appropriate failure pattern doc
256
+ 7. **Verify** — re-run the reproduction, confirm clean output
257
+ 8. **Write a regression eval** — load the `adk-evals` skill and generate the eval file automatically