@botpress/adk 1.19.0-beta.9 → 2.0.0-alpha.1

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 (199) hide show
  1. package/dist/agent-init/agent-project-generator.d.ts +5 -1
  2. package/dist/agent-init/agent-project-generator.d.ts.map +1 -1
  3. package/dist/agent-project/agent-project.d.ts +3 -3
  4. package/dist/agent-project/agent-project.d.ts.map +1 -1
  5. package/dist/agent-project/agent-resolver.d.ts.map +1 -1
  6. package/dist/agent-project/config-writer.d.ts +1 -1
  7. package/dist/agent-project/dependency-state-to-dependencies.d.ts +11 -0
  8. package/dist/agent-project/dependency-state-to-dependencies.d.ts.map +1 -0
  9. package/dist/agent-project/types.d.ts +9 -4
  10. package/dist/agent-project/types.d.ts.map +1 -1
  11. package/dist/agent0/capabilities/commands/adk-build.md +6 -5
  12. package/dist/agent0/capabilities/commands/adk-debug.md +1 -1
  13. package/dist/agent0/capabilities/commands/adk-dev-console.md +1 -1
  14. package/dist/agent0/capabilities/commands/adk-document.md +10 -2
  15. package/dist/agent0/capabilities/commands/adk-eval.md +1 -1
  16. package/dist/agent0/capabilities/commands/adk-explain.md +2 -2
  17. package/dist/agent0/capabilities/commands/adk-init.md +2 -2
  18. package/dist/agent0/capabilities/commands/adk-ship.md +1 -1
  19. package/dist/agent0/capabilities/commands/adk-test.md +3 -3
  20. package/dist/agent0/capabilities/commands/adk-validate.md +3 -3
  21. package/dist/agent0/capabilities/skills/adk/SKILL.md +21 -21
  22. package/dist/agent0/capabilities/skills/adk/references/actions.md +245 -239
  23. package/dist/agent0/capabilities/skills/adk/references/advanced-patterns.md +185 -218
  24. package/dist/agent0/capabilities/skills/adk/references/agent-config.md +74 -71
  25. package/dist/agent0/capabilities/skills/adk/references/assets.md +45 -48
  26. package/dist/agent0/capabilities/skills/adk/references/autonomous-execution.md +40 -46
  27. package/dist/agent0/capabilities/skills/adk/references/cli.md +17 -7
  28. package/dist/agent0/capabilities/skills/adk/references/context-api.md +98 -94
  29. package/dist/agent0/capabilities/skills/adk/references/conversation-lifecycle.md +65 -62
  30. package/dist/agent0/capabilities/skills/adk/references/conversations.md +395 -385
  31. package/dist/agent0/capabilities/skills/adk/references/custom-components.md +1 -1
  32. package/dist/agent0/capabilities/skills/adk/references/desk.md +236 -234
  33. package/dist/agent0/capabilities/skills/adk/references/explain-config.md +54 -37
  34. package/dist/agent0/capabilities/skills/adk/references/files.md +301 -306
  35. package/dist/agent0/capabilities/skills/adk/references/integration-actions.md +211 -214
  36. package/dist/agent0/capabilities/skills/adk/references/integrations.md +33 -31
  37. package/dist/agent0/capabilities/skills/adk/references/interfaces.md +13 -12
  38. package/dist/agent0/capabilities/skills/adk/references/knowledge-bases.md +98 -111
  39. package/dist/agent0/capabilities/skills/adk/references/mcp-server.md +6 -0
  40. package/dist/agent0/capabilities/skills/adk/references/messages.md +280 -256
  41. package/dist/agent0/capabilities/skills/adk/references/model-configuration.md +52 -49
  42. package/dist/agent0/capabilities/skills/adk/references/patterns-mistakes.md +102 -101
  43. package/dist/agent0/capabilities/skills/adk/references/plugins.md +15 -15
  44. package/dist/agent0/capabilities/skills/adk/references/tables.md +204 -210
  45. package/dist/agent0/capabilities/skills/adk/references/tags.md +141 -143
  46. package/dist/agent0/capabilities/skills/adk/references/tools.md +191 -199
  47. package/dist/agent0/capabilities/skills/adk/references/triggers.md +331 -336
  48. package/dist/agent0/capabilities/skills/adk/references/workflow-steps.md +132 -96
  49. package/dist/agent0/capabilities/skills/adk/references/workflows.md +479 -464
  50. package/dist/agent0/capabilities/skills/adk/references/zai-agent-reference.md +127 -129
  51. package/dist/agent0/capabilities/skills/adk/references/zai-complete-guide.md +255 -276
  52. package/dist/agent0/capabilities/skills/adk-debugger/SKILL.md +21 -17
  53. package/dist/agent0/capabilities/skills/adk-debugger/references/common-failures.md +25 -25
  54. package/dist/agent0/capabilities/skills/adk-debugger/references/conversation-analysis.md +49 -41
  55. package/dist/agent0/capabilities/skills/adk-debugger/references/debug-workflow.md +20 -14
  56. package/dist/agent0/capabilities/skills/adk-debugger/references/llm-debugging.md +13 -13
  57. package/dist/agent0/capabilities/skills/adk-debugger/references/trace-summarization.md +18 -18
  58. package/dist/agent0/capabilities/skills/adk-debugger/references/traces-and-logs.md +67 -67
  59. package/dist/agent0/capabilities/skills/adk-dev-console/SKILL.md +36 -36
  60. package/dist/agent0/capabilities/skills/adk-dev-console/references/agent-steps.md +14 -6
  61. package/dist/agent0/capabilities/skills/adk-dev-console/references/multi-agent-dashboard.md +13 -13
  62. package/dist/agent0/capabilities/skills/adk-dev-console/references/pages.md +18 -0
  63. package/dist/agent0/capabilities/skills/adk-docs/SKILL.md +13 -13
  64. package/dist/agent0/capabilities/skills/adk-docs/references/doc-standards.md +15 -0
  65. package/dist/agent0/capabilities/skills/adk-evals/SKILL.md +29 -23
  66. package/dist/agent0/capabilities/skills/adk-evals/references/eval-format.md +31 -23
  67. package/dist/agent0/capabilities/skills/adk-evals/references/test-patterns.md +25 -36
  68. package/dist/agent0/capabilities/skills/adk-evals/references/testing-workflow.md +6 -4
  69. package/dist/agent0/index.js +41 -19
  70. package/dist/agent0/index.js.map +7 -7
  71. package/dist/agent0/runtime/client.d.ts +2 -0
  72. package/dist/agent0/runtime/client.d.ts.map +1 -1
  73. package/dist/agent0/runtime/engine.d.ts +2 -1
  74. package/dist/agent0/runtime/engine.d.ts.map +1 -1
  75. package/dist/agent0/runtime/process.d.ts +1 -0
  76. package/dist/agent0/runtime/process.d.ts.map +1 -1
  77. package/dist/assets/manager.d.ts +3 -0
  78. package/dist/assets/manager.d.ts.map +1 -1
  79. package/dist/auth/credentials.d.ts +1 -1
  80. package/dist/bot-generator/generator.d.ts +22 -0
  81. package/dist/bot-generator/generator.d.ts.map +1 -1
  82. package/dist/bot-generator/plugin-sync.d.ts.map +1 -1
  83. package/dist/commands/base-command.d.ts +1 -0
  84. package/dist/commands/base-command.d.ts.map +1 -1
  85. package/dist/commands/bp-dev-command.d.ts +1 -1
  86. package/dist/commands/bp-dev-command.d.ts.map +1 -1
  87. package/dist/commands/bp-dev-stderr.d.ts +9 -0
  88. package/dist/commands/bp-dev-stderr.d.ts.map +1 -1
  89. package/dist/commands/index.d.ts +1 -0
  90. package/dist/commands/index.d.ts.map +1 -1
  91. package/dist/dependencies/catalog/catalog-service.d.ts +53 -0
  92. package/dist/dependencies/catalog/catalog-service.d.ts.map +1 -0
  93. package/dist/dependencies/catalog/client-factory.d.ts +33 -0
  94. package/dist/dependencies/catalog/client-factory.d.ts.map +1 -0
  95. package/dist/dependencies/catalog/integration-source.d.ts +34 -0
  96. package/dist/dependencies/catalog/integration-source.d.ts.map +1 -0
  97. package/dist/dependencies/catalog/interface-source.d.ts +23 -0
  98. package/dist/dependencies/catalog/interface-source.d.ts.map +1 -0
  99. package/dist/dependencies/catalog/plugin-source.d.ts +49 -0
  100. package/dist/dependencies/catalog/plugin-source.d.ts.map +1 -0
  101. package/dist/dependencies/catalog/resolution-cache.d.ts +76 -0
  102. package/dist/dependencies/catalog/resolution-cache.d.ts.map +1 -0
  103. package/dist/dependencies/dependency-manager.d.ts +31 -16
  104. package/dist/dependencies/dependency-manager.d.ts.map +1 -1
  105. package/dist/dependencies/errors.d.ts +2 -2
  106. package/dist/dependencies/errors.d.ts.map +1 -1
  107. package/dist/dependencies/index.d.ts +5 -4
  108. package/dist/dependencies/index.d.ts.map +1 -1
  109. package/dist/dependencies/index.js +2089 -1670
  110. package/dist/dependencies/index.js.map +37 -30
  111. package/dist/dependencies/legacy-lock-file.d.ts +15 -0
  112. package/dist/dependencies/legacy-lock-file.d.ts.map +1 -0
  113. package/dist/dependencies/migration.d.ts +19 -0
  114. package/dist/dependencies/migration.d.ts.map +1 -1
  115. package/dist/dependencies/resolvers/integration-resolver.d.ts +4 -3
  116. package/dist/dependencies/resolvers/integration-resolver.d.ts.map +1 -1
  117. package/dist/dependencies/resolvers/plugin-resolver.d.ts +4 -4
  118. package/dist/dependencies/resolvers/plugin-resolver.d.ts.map +1 -1
  119. package/dist/dependencies/snapshot-store.d.ts +59 -0
  120. package/dist/dependencies/snapshot-store.d.ts.map +1 -0
  121. package/dist/dependencies/status-resolver.d.ts +36 -0
  122. package/dist/dependencies/status-resolver.d.ts.map +1 -0
  123. package/dist/dependencies/status.d.ts +214 -0
  124. package/dist/dependencies/status.d.ts.map +1 -0
  125. package/dist/dependencies/types.d.ts +380 -29
  126. package/dist/dependencies/types.d.ts.map +1 -1
  127. package/dist/file-watcher/watcher.d.ts +21 -5
  128. package/dist/file-watcher/watcher.d.ts.map +1 -1
  129. package/dist/generators/action-types.d.ts.map +1 -1
  130. package/dist/generators/client-wrapper.d.ts.map +1 -1
  131. package/dist/index.d.ts +4 -5
  132. package/dist/index.d.ts.map +1 -1
  133. package/dist/index.js +3134 -2226
  134. package/dist/index.js.map +55 -48
  135. package/dist/integrations/config-utils.d.ts +11 -7
  136. package/dist/integrations/config-utils.d.ts.map +1 -1
  137. package/dist/integrations/hub-cache.d.ts +0 -58
  138. package/dist/integrations/hub-cache.d.ts.map +1 -1
  139. package/dist/integrations/index.d.ts +1 -3
  140. package/dist/integrations/index.d.ts.map +1 -1
  141. package/dist/integrations/manager.d.ts +19 -53
  142. package/dist/integrations/manager.d.ts.map +1 -1
  143. package/dist/interfaces/enhanced-cache.d.ts +7 -7
  144. package/dist/interfaces/enhanced-cache.d.ts.map +1 -1
  145. package/dist/interfaces/manager.d.ts +11 -17
  146. package/dist/interfaces/manager.d.ts.map +1 -1
  147. package/dist/knowledge/manager.d.ts +3 -0
  148. package/dist/knowledge/manager.d.ts.map +1 -1
  149. package/dist/plugins/index.d.ts +0 -1
  150. package/dist/plugins/index.d.ts.map +1 -1
  151. package/dist/plugins/manager.d.ts +16 -48
  152. package/dist/plugins/manager.d.ts.map +1 -1
  153. package/dist/preflight/checker.d.ts +6 -1
  154. package/dist/preflight/checker.d.ts.map +1 -1
  155. package/dist/preflight/dependency-gate.d.ts +37 -0
  156. package/dist/preflight/dependency-gate.d.ts.map +1 -0
  157. package/dist/preflight/index.d.ts +2 -1
  158. package/dist/preflight/index.d.ts.map +1 -1
  159. package/dist/preflight/types.d.ts +18 -0
  160. package/dist/preflight/types.d.ts.map +1 -1
  161. package/dist/runner/script-runner.d.ts.map +1 -1
  162. package/dist/tables/table-manager.d.ts +3 -0
  163. package/dist/tables/table-manager.d.ts.map +1 -1
  164. package/dist/templates/README.md +23 -13
  165. package/dist/templates/blank/agent.config.ts +3 -3
  166. package/dist/templates/blank/src/triggers/index.ts +1 -1
  167. package/dist/templates/botpress-desk/evals/index.eval.ts +1 -1
  168. package/dist/templates/botpress-desk/src/triggers/index.ts +1 -1
  169. package/dist/templates/crm-enrichment/README.md +3 -3
  170. package/dist/templates/crm-enrichment/agent.config.ts +2 -2
  171. package/dist/templates/crm-enrichment/src/conversations/index.ts +1 -1
  172. package/dist/templates/hello-world/agent.config.ts +3 -3
  173. package/dist/templates/hello-world/src/triggers/index.ts +1 -1
  174. package/dist/templates/knowledge-assistant/src/triggers/index.ts +1 -1
  175. package/dist/templates/template.config.json +3 -3
  176. package/dist/utils/ids.d.ts +10 -0
  177. package/dist/utils/ids.d.ts.map +1 -1
  178. package/dist/workspace/workspace-cache.d.ts +2 -1
  179. package/dist/workspace/workspace-cache.d.ts.map +1 -1
  180. package/package.json +3 -3
  181. package/dist/agent-project/lock-to-dependencies.d.ts +0 -11
  182. package/dist/agent-project/lock-to-dependencies.d.ts.map +0 -1
  183. package/dist/dependencies/lock-file.d.ts +0 -15
  184. package/dist/dependencies/lock-file.d.ts.map +0 -1
  185. package/dist/integrations/enhanced-cache.d.ts +0 -53
  186. package/dist/integrations/enhanced-cache.d.ts.map +0 -1
  187. package/dist/plugins/enhanced-cache.d.ts +0 -53
  188. package/dist/plugins/enhanced-cache.d.ts.map +0 -1
  189. package/dist/templates/blank/package.json +0 -17
  190. package/dist/templates/blank/tsconfig.json +0 -25
  191. package/dist/templates/botpress-desk/package.json +0 -17
  192. package/dist/templates/crm-enrichment/package.json +0 -18
  193. package/dist/templates/crm-enrichment/tsconfig.json +0 -25
  194. package/dist/templates/hello-world/package.json +0 -18
  195. package/dist/templates/hello-world/tsconfig.json +0 -25
  196. package/dist/templates/knowledge-assistant/package.json +0 -18
  197. package/dist/templates/knowledge-assistant/tsconfig.json +0 -25
  198. package/dist/templates/slack-triage/package.json +0 -18
  199. package/dist/templates/slack-triage/tsconfig.json +0 -25
@@ -156,11 +156,11 @@ if (result.is(Approved)) {
156
156
 
157
157
  Three exits are built into the runtime. Do not redefine them.
158
158
 
159
- | Exit | When Available | Action Name | Purpose |
160
- |------|----------------|-------------|---------|
161
- | **ListenExit** | Chat mode (conversation handlers) | `listen` | Pauses execution, returns control to the user. Auto-added when `execute()` runs in a conversation. |
162
- | **ThinkExit** | Always | `think` | LLM pauses to reflect. Triggers another iteration (does not end execution). |
163
- | **DefaultExit** | Worker mode, when no custom exits provided | `done` | Returns `{ success: true, result? }` or `{ success: false, error }`. |
159
+ | Exit | When Available | Action Name | Purpose |
160
+ | --------------- | ------------------------------------------ | ----------- | -------------------------------------------------------------------------------------------------- |
161
+ | **ListenExit** | Chat mode (conversation handlers) | `listen` | Pauses execution, returns control to the user. Auto-added when `execute()` runs in a conversation. |
162
+ | **ThinkExit** | Always | `think` | LLM pauses to reflect. Triggers another iteration (does not end execution). |
163
+ | **DefaultExit** | Worker mode, when no custom exits provided | `done` | Returns `{ success: true, result? }` or `{ success: false, error }`. |
164
164
 
165
165
  ```typescript
166
166
  import { Autonomous } from '@botpress/runtime'
@@ -238,9 +238,9 @@ The LLM sees this as:
238
238
 
239
239
  ```typescript
240
240
  export namespace user {
241
- const name: Writable<string> = "John Doe"
241
+ const name: Writable<string> = 'John Doe'
242
242
  const email: Writable<string | null> = null
243
- const id: Readonly<string> = "user_123"
243
+ const id: Readonly<string> = 'user_123'
244
244
  }
245
245
  ```
246
246
 
@@ -260,11 +260,11 @@ new Autonomous.Object({
260
260
 
261
261
  ```typescript
262
262
  type ObjectProperty = {
263
- name: string // Valid TypeScript identifier.
264
- value: any // Current value.
265
- type?: ZuiType // Zod schema for validation on write.
266
- description?: string // Helps the LLM understand the property.
267
- writable?: boolean // Default: false. If true, LLM can assign new values.
263
+ name: string // Valid TypeScript identifier.
264
+ value: any // Current value.
265
+ type?: ZuiType // Zod schema for validation on write.
266
+ description?: string // Helps the LLM understand the property.
267
+ writable?: boolean // Default: false. If true, LLM can assign new values.
268
268
  }
269
269
  ```
270
270
 
@@ -362,19 +362,13 @@ type Hooks = {
362
362
  ) => Promise<void | Partial<Iteration>> | void | Partial<Iteration>
363
363
 
364
364
  /** BLOCKING. Called after each iteration. Good for logging and cleanup. */
365
- onIterationEnd?: (
366
- iteration: Iteration,
367
- controller: IterationController
368
- ) => void | Promise<void>
365
+ onIterationEnd?: (iteration: Iteration, controller: IterationController) => void | Promise<void>
369
366
 
370
367
  /** BLOCKING. Called when an exit is reached. Throw to reject the exit. */
371
368
  onExit?: <T = unknown>(result: ExitResult<T>) => Promise<void> | void
372
369
 
373
370
  /** BLOCKING, MUTATION. Called after LLM generates code, before execution. */
374
- onBeforeExecution?: (
375
- iteration: Iteration,
376
- controller: AbortController
377
- ) => Promise<{ code?: string } | void>
371
+ onBeforeExecution?: (iteration: Iteration, controller: AbortController) => Promise<{ code?: string } | void>
378
372
 
379
373
  /** BLOCKING, MUTATION. Called before any tool executes. Can modify input. */
380
374
  onBeforeTool?: (event: {
@@ -397,11 +391,11 @@ type Hooks = {
397
391
 
398
392
  ### Hook Categories
399
393
 
400
- | Category | Hooks | Behavior |
401
- |----------|-------|----------|
402
- | **Non-blocking** | `onTrace` | Fire-and-forget. Cannot delay execution. |
403
- | **Blocking, mutation** | `onIterationStart`, `onBeforeTool`, `onAfterTool`, `onBeforeExecution` | Block until resolved. Can return modified values. |
404
- | **Blocking, non-mutation** | `onIterationEnd`, `onExit` | Block until resolved. Cannot change tool I/O or code. |
394
+ | Category | Hooks | Behavior |
395
+ | -------------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------- |
396
+ | **Non-blocking** | `onTrace` | Fire-and-forget. Cannot delay execution. |
397
+ | **Blocking, mutation** | `onIterationStart`, `onBeforeTool`, `onAfterTool`, `onBeforeExecution` | Block until resolved. Can return modified values. |
398
+ | **Blocking, non-mutation** | `onIterationEnd`, `onExit` | Block until resolved. Cannot change tool I/O or code. |
405
399
 
406
400
  ### Common Hook Patterns
407
401
 
@@ -490,18 +484,18 @@ hooks: {
490
484
  const result = await execute({ instructions: '...' })
491
485
 
492
486
  // Status checks
493
- result.isSuccess() // Completed with an exit
494
- result.isError() // Failed (aborted, iterations exhausted)
487
+ result.isSuccess() // Completed with an exit
488
+ result.isError() // Failed (aborted, iterations exhausted)
495
489
  result.isInterrupted() // Paused with a snapshot (SnapshotSignal)
496
490
 
497
491
  // Exit type-narrowing
498
- result.is(MyExit) // true if exited via MyExit, narrows result.output type
492
+ result.is(MyExit) // true if exited via MyExit, narrows result.output type
499
493
 
500
494
  // Access execution data
501
- result.iteration // Last iteration (or null)
502
- result.iterations // All iterations
503
- result.output // Exit data (if success), null otherwise
504
- result.context // Full execution context
495
+ result.iteration // Last iteration (or null)
496
+ result.iterations // All iterations
497
+ result.output // Exit data (if success), null otherwise
498
+ result.context // Full execution context
505
499
  ```
506
500
 
507
501
  ### Success Result
@@ -551,18 +545,18 @@ if (result.isInterrupted()) {
551
545
  ```typescript
552
546
  await execute({
553
547
  instructions: '...',
554
- model: 'openai:gpt-4o', // Single model
548
+ model: 'openai:gpt-4o', // Single model
555
549
  })
556
550
 
557
551
  await execute({
558
552
  instructions: '...',
559
- model: ['openai:gpt-4o', 'anthropic:claude-3-5-sonnet'], // Fallback chain
553
+ model: ['openai:gpt-4o', 'anthropic:claude-3-5-sonnet'], // Fallback chain
560
554
  })
561
555
 
562
556
  // Dynamic model per iteration
563
557
  await execute({
564
558
  instructions: '...',
565
- model: (ctx) => ctx.iteration > 2 ? 'openai:gpt-4o' : 'openai:gpt-4o-mini',
559
+ model: (ctx) => (ctx.iteration > 2 ? 'openai:gpt-4o' : 'openai:gpt-4o-mini'),
566
560
  })
567
561
  ```
568
562
 
@@ -573,7 +567,7 @@ If `model` is omitted, the `defaultModels.autonomous` value from `agent.config.t
573
567
  ```typescript
574
568
  await execute({
575
569
  instructions: '...',
576
- temperature: 0.1, // Low = deterministic. Default: 0.7. Range: 0-2.
570
+ temperature: 0.1, // Low = deterministic. Default: 0.7. Range: 0-2.
577
571
  })
578
572
  ```
579
573
 
@@ -582,12 +576,12 @@ await execute({
582
576
  ```typescript
583
577
  await execute({
584
578
  instructions: '...',
585
- reasoningEffort: 'high', // 'none' | 'low' | 'medium' | 'high' | 'dynamic'
579
+ reasoningEffort: 'high', // 'none' | 'low' | 'medium' | 'high' | 'dynamic'
586
580
  })
587
581
  ```
588
582
 
589
583
  - `'none'` disables reasoning for models with optional reasoning.
590
- - `'dynamic'` lets the provider decide.
584
+ - `'dynamic'` lets the provider decide.
591
585
  - Omitting this field disables reasoning for optional-reasoning models.
592
586
 
593
587
  ### Iteration Limit
@@ -595,7 +589,7 @@ await execute({
595
589
  ```typescript
596
590
  await execute({
597
591
  instructions: '...',
598
- iterations: 20, // Default: 10. Clamped to 1-100.
592
+ iterations: 20, // Default: 10. Clamped to 1-100.
599
593
  })
600
594
  ```
601
595
 
@@ -644,13 +638,13 @@ This pattern applies to `instructions`, `tools`, `objects`, `exits`, `temperatur
644
638
 
645
639
  `execute()` behaves differently depending on where it runs:
646
640
 
647
- | Aspect | Chat Mode (Conversations) | Worker Mode (Workflows, Actions) |
648
- |--------|--------------------------|----------------------------------|
649
- | Transcript | LLM sees conversation history | No transcript |
650
- | ListenExit | Auto-added | Not available |
651
- | DefaultExit | Not auto-added when exits provided | Auto-added when no exits provided |
652
- | Components | Can yield UI components | No component rendering |
653
- | Typical pattern | Open-ended conversation | Task completion with structured exit |
641
+ | Aspect | Chat Mode (Conversations) | Worker Mode (Workflows, Actions) |
642
+ | --------------- | ---------------------------------- | ------------------------------------ |
643
+ | Transcript | LLM sees conversation history | No transcript |
644
+ | ListenExit | Auto-added | Not available |
645
+ | DefaultExit | Not auto-added when exits provided | Auto-added when no exits provided |
646
+ | Components | Can yield UI components | No component rendering |
647
+ | Typical pattern | Open-ended conversation | Task completion with structured exit |
654
648
 
655
649
  In conversation handlers, `execute()` is provided as a parameter and runs in chat mode by default:
656
650
 
@@ -464,7 +464,7 @@ adk logs warning since=1h # last hour of warnings
464
464
 
465
465
  ### adk traces
466
466
 
467
- Read execution traces — tool calls, action invocations, LLM steps, error context — for understanding *what happened* during a turn, beyond what `adk logs` reports. Reads from the local SQLite trace store under `.adk/`.
467
+ Read execution traces — tool calls, action invocations, LLM steps, error context — for understanding _what happened_ during a turn, beyond what `adk logs` reports. Reads from the local SQLite trace store under `.adk/`.
468
468
 
469
469
  ```bash
470
470
  adk traces [tokens...] [options]
@@ -652,16 +652,19 @@ adk integrations info <name> # Full integration details
652
652
  ```
653
653
 
654
654
  **`adk integrations search` options:**
655
+
655
656
  - `--format json` - Machine-readable output
656
657
  - `--limit <n>` - Max results (default: 20)
657
658
 
658
659
  **`adk integrations list` options:**
660
+
659
661
  - `--available` - Browse Hub instead of installed
660
662
  - `--format json` - Machine-readable output
661
663
  - `--verbose` - Show config details
662
664
  - `--limit <n>` - Max results (default: 50)
663
665
 
664
666
  **`adk integrations info` options:**
667
+
665
668
  - `--actions` - Show only actions
666
669
  - `--channels` - Show only channels
667
670
  - `--events` - Show only events
@@ -680,12 +683,14 @@ adk integrations configure <alias> # Set/unset config values
680
683
  ```
681
684
 
682
685
  **`adk integrations add` options:**
686
+
683
687
  - `--alias <name>` - Custom alias for code access
684
688
  - `--target <env>` - Environment (dev/prod)
685
689
  - `--config key=value` - Set config at install time (repeatable)
686
690
  - `--format json`
687
691
 
688
692
  **`adk integrations configure` options:**
693
+
689
694
  - `--set key=value` - Set config values (repeatable)
690
695
  - `--unset key` - Remove config keys (repeatable)
691
696
  - `--target <env>` - Environment (dev/prod)
@@ -724,9 +729,11 @@ adk integrations diff # Show lock vs cloud differences
724
729
  `adk pull-lock` and `adk push-lock` (no subcommand) run pull/push for both integrations and plugins at once.
725
730
 
726
731
  **`adk integrations pull-lock` options:**
732
+
727
733
  - `--dry-run` - Preview without writing the lock file
728
734
 
729
735
  **`adk integrations push-lock` options:**
736
+
730
737
  - `--dry-run` - Preview without applying
731
738
  - `--yes` - Skip confirmation
732
739
 
@@ -751,10 +758,12 @@ adk plugins diff # Show lock vs cloud differences
751
758
  ```
752
759
 
753
760
  **Plugin-specific flags:**
761
+
754
762
  - `adk plugins add --dep iface=alias` - Wire interface dependency (repeatable)
755
763
  - `adk plugins configure --map iface=alias` - Remap interface dependency
756
764
 
757
765
  **Shared with `adk integrations upgrade`:**
766
+
758
767
  - `--to <version>` - Target specific version
759
768
 
760
769
  Plugins require interfaces implemented by installed integrations. The CLI auto-resolves dependencies when unambiguous. See **[Plugins](./plugins.md)** for details.
@@ -1087,6 +1096,7 @@ adk run <script> [args...] [options]
1087
1096
  **Description:**
1088
1097
 
1089
1098
  Executes a TypeScript script with access to the full ADK runtime, including:
1099
+
1090
1100
  - Bot client with authentication
1091
1101
  - All tables, workflows, and actions from your project
1092
1102
  - Type-safe access to your bot's configuration
@@ -1102,18 +1112,18 @@ Executes a TypeScript script with access to the full ADK runtime, including:
1102
1112
 
1103
1113
  ```typescript
1104
1114
  // scripts/migrate-users.ts
1105
- import { UsersTable } from "../src/tables/Users";
1115
+ import { UsersTable } from '../src/tables/Users'
1106
1116
 
1107
- const { rows } = await UsersTable.findRows({ limit: 100 });
1117
+ const { rows } = await UsersTable.findRows({ limit: 100 })
1108
1118
 
1109
1119
  for (const user of rows) {
1110
1120
  await UsersTable.updateRows({
1111
- rows: [{ id: user.id, migrated: true }]
1112
- });
1113
- console.log(`Migrated user: ${user.id}`);
1121
+ rows: [{ id: user.id, migrated: true }],
1122
+ })
1123
+ console.log(`Migrated user: ${user.id}`)
1114
1124
  }
1115
1125
 
1116
- console.log(`✅ Migrated ${rows.length} users`);
1126
+ console.log(`✅ Migrated ${rows.length} users`)
1117
1127
  ```
1118
1128
 
1119
1129
  **Examples:**