@botpress/adk 2.0.1-beta.0 → 2.0.1-beta.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 (43) hide show
  1. package/dist/agent0/capabilities/commands/adk-ship.md +3 -2
  2. package/dist/agent0/capabilities/commands/adk-validate.md +1 -1
  3. package/dist/agent0/capabilities/skills/adk/SKILL.md +19 -9
  4. package/dist/agent0/capabilities/skills/adk/references/actions.md +2 -0
  5. package/dist/agent0/capabilities/skills/adk/references/agent-config.md +25 -15
  6. package/dist/agent0/capabilities/skills/adk/references/cli.md +134 -41
  7. package/dist/agent0/capabilities/skills/adk/references/context-api.md +2 -0
  8. package/dist/agent0/capabilities/skills/adk/references/conversations.md +21 -0
  9. package/dist/agent0/capabilities/skills/adk/references/explain-config.md +2 -2
  10. package/dist/agent0/capabilities/skills/adk/references/integrations.md +39 -25
  11. package/dist/agent0/capabilities/skills/adk/references/interfaces.md +1 -1
  12. package/dist/agent0/capabilities/skills/adk/references/knowledge-bases.md +4 -4
  13. package/dist/agent0/capabilities/skills/adk/references/mcp-server.md +1 -1
  14. package/dist/agent0/capabilities/skills/adk/references/patterns-mistakes.md +16 -0
  15. package/dist/agent0/capabilities/skills/adk/references/plugins.md +28 -30
  16. package/dist/agent0/capabilities/skills/adk/references/tables.md +13 -26
  17. package/dist/agent0/capabilities/skills/adk/references/tools.md +2 -0
  18. package/dist/agent0/capabilities/skills/adk/references/triggers.md +16 -12
  19. package/dist/agent0/capabilities/skills/adk/references/workflows.md +2 -0
  20. package/dist/agent0/capabilities/skills/adk-debugger/references/common-failures.md +4 -4
  21. package/dist/agent0/capabilities/skills/adk-debugger/references/debug-workflow.md +11 -11
  22. package/dist/agent0/capabilities/skills/adk-dev-console/SKILL.md +5 -0
  23. package/dist/agent0/capabilities/skills/adk-dev-console/references/pages.md +14 -0
  24. package/dist/agent0/index.js +44 -9
  25. package/dist/agent0/index.js.map +5 -5
  26. package/dist/agent0/runtime/client.d.ts.map +1 -1
  27. package/dist/agent0/types.d.ts +5 -0
  28. package/dist/agent0/types.d.ts.map +1 -1
  29. package/dist/bot-generator/generator.d.ts.map +1 -1
  30. package/dist/commands/bp-dev-command.d.ts.map +1 -1
  31. package/dist/config/manager.d.ts.map +1 -1
  32. package/dist/dependencies/dependency-manager.d.ts +4 -0
  33. package/dist/dependencies/dependency-manager.d.ts.map +1 -1
  34. package/dist/dependencies/index.js +19 -3
  35. package/dist/dependencies/index.js.map +4 -4
  36. package/dist/deploy-manifest/index.d.ts.map +1 -1
  37. package/dist/generators/table-types.d.ts +1 -0
  38. package/dist/generators/table-types.d.ts.map +1 -1
  39. package/dist/index.js +54 -14
  40. package/dist/index.js.map +11 -10
  41. package/dist/utils/schema-serialization.d.ts +2 -0
  42. package/dist/utils/schema-serialization.d.ts.map +1 -0
  43. package/package.json +2 -2
@@ -14,13 +14,14 @@ This is a deploy-to-production command — treat it as destructive-by-default. C
14
14
  - `adk evals --format json` — must pass if any evals exist; if none exist, surface that as a warning and offer `/adk-eval` before shipping.
15
15
  - `git status` — surface uncommitted changes; ask whether to ship the working tree as-is or commit first.
16
16
  - `adk status --format json` — confirm the project is linked to the intended workspace and bot.
17
- - Check `agent.config.ts` for unconfigured integrations (missing secrets, missing models). If any, block the ship and list them.
17
+ - `adk integrations status --target prod --format json` and `adk plugins status --target prod --format json` — block on unavailable/unconfigured enabled dependencies. Check `agent.config.ts` for missing models.
18
+ - If a project command reports an ADK runtime/package mismatch, run `adk project upgrade --dry-run`, show the plan, and get approval before `adk project upgrade`.
18
19
 
19
20
  2. **Summarize.** Show a tight pre-flight report: ✅ checks passed, ⚠️ warnings, ❌ blockers. Include the linked bot and a one-line diff summary if there are uncommitted changes.
20
21
 
21
22
  3. **Confirm.** Always ask before deploying — the original `/adk-ship` invocation is not consent. If there are blockers, stop and offer to fix each. Otherwise (warnings or fully green), ask: _"Ship to <bot>? (yes / no)"_.
22
23
 
23
- 4. **Deploy.** Run `adk deploy`. Stream output. If `adk deploy` prompts for preflight approval, surface the prompt to the user — do not auto-approve.
24
+ 4. **Deploy.** Run `adk deploy`. Stream output. If `adk deploy` prompts for preflight approval, surface the prompt to the user — do not auto-approve. If deploy warns that integration versions differ between dev and prod, show the warning and recommend `adk integrations copy --from dev --to prod --dry-run` before any promotion.
24
25
 
25
26
  5. **Verify.** After deploy, run `adk status --format json` to confirm the deployed version. Report deployed version and any post-deploy warnings. Note: `adk chat` runs against the local dev bot, not the deployed one — do not use it as a production smoke test. Direct the user to the Dev Console for live verification.
26
27
 
@@ -23,7 +23,7 @@ This is the proactive counterpart to `/adk-debug`: nothing is necessarily broken
23
23
  - Imports come from `@botpress/runtime` (not the SDK).
24
24
  - Each primitive is exported in the shape the ADK expects for its type (see references in the `adk` skill).
25
25
  - Zod / schema definitions cover all inputs and outputs the code uses.
26
- - Any referenced integration is installed (`adk list --format json`) and configured in `agent.config.ts`.
26
+ - Any referenced integration is installed (`adk integrations list --format json`) and available/configured (`adk integrations status --format json`).
27
27
  - Any referenced model is available in the project's model config.
28
28
  - Any referenced sibling primitive (table, action, tool) actually exists in `src/`.
29
29
  - **Feature-level only:** the primitives in the set actually wire together — e.g., the workflow's action calls resolve to existing actions, the table the workflow writes to matches the schema the action reads.
@@ -22,7 +22,7 @@ The ADK provides primitives for:
22
22
  - Knowledge Bases (RAG implementation)
23
23
  - Triggers (event-driven automation)
24
24
  - Assets (static files with permanent URLs)
25
- - Integrations (external service connections managed via CLI and lock files)
25
+ - Integrations (external service connections managed via CLI and dependency snapshots)
26
26
  - Plugins (reusable agent extensions with interface dependencies)
27
27
  - **Zai** (production-ready LLM utility library for common AI operations)
28
28
 
@@ -42,12 +42,17 @@ Most primitives must be placed in `src/` directory (assets use the `assets/` dir
42
42
  │ ├── triggers/ # Event handlers → subscribe to events
43
43
  │ ├── knowledge/ # Knowledge bases → RAG with semantic search
44
44
  │ └── utils/ # Shared helpers (not auto-registered)
45
- ├── dependencies.dev.lock.json # Integration/plugin state (dev)
46
- ├── dependencies.prod.lock.json # Integration/plugin state (prod)
45
+ ├── .adk/
46
+ │ └── dependencies/
47
+ │ ├── dev.json # Generated dependency snapshot (dev)
48
+ │ ├── prod.json # Generated dependency snapshot (prod)
49
+ │ └── migration.json # One-way legacy migration marker
50
+ ├── .agent0/
51
+ │ └── capabilities/ # Project-local Agent(0) capability bundle
47
52
  └── agent.config.ts # Bot configuration
48
53
  ```
49
54
 
50
- > **Note:** Integrations and plugins are managed via lock files and the `adk integrations` / `adk plugins` CLI. See `integrations.md` and `plugins.md`.
55
+ > **Note:** Manage integrations and plugins via the `adk integrations` / `adk plugins` CLI or the Dev Console. Botpress Cloud is the source of truth; `.adk/dependencies/` contains generated local snapshots for fast/offline reads and should not be edited manually. See `integrations.md` and `plugins.md`.
51
56
 
52
57
  > **Critical:** Files outside `src/` are not discovered. Location = behavior.
53
58
 
@@ -55,7 +60,7 @@ Most primitives must be placed in `src/` directory (assets use the `assets/` dir
55
60
 
56
61
  The first time you help with an ADK project in a session, silently check the project's health:
57
62
 
58
- 1. Run `adk check --format json` and `adk status --format json`.
63
+ 1. Run `adk check --format json` and `adk status --format json`. (`adk check` validates primitives but does **not** typecheck — also run `tsc --noEmit` to catch type errors before treating work as done.)
59
64
  2. If there are errors or warnings (unconfigured integrations, missing models, validation issues), proactively mention them before answering the user's question: _"Before we start — I noticed [issue]. Want me to help fix that?"_
60
65
  3. Only do this once per session. Don't re-run on every question.
61
66
 
@@ -117,8 +122,8 @@ For integration discovery and CLI queries, use the Bash tool to run commands dir
117
122
  # Search for integrations
118
123
  adk integrations search <query>
119
124
 
120
- # List all available integrations
121
- adk integrations list --available
125
+ # Find integrations that implement an interface
126
+ adk integrations search --interface <interface-name>
122
127
 
123
128
  # Get detailed integration info (actions, channels, events)
124
129
  adk integrations info <integration-name>
@@ -155,6 +160,10 @@ adk link --workspace ws_123 --bot bot_456
155
160
  # More automation-friendly dev mode (NDJSON events, no TUI)
156
161
  adk dev --non-interactive
157
162
 
163
+ # Review/apply project compatibility updates after ADK upgrades
164
+ adk project upgrade --dry-run
165
+ adk project upgrade
166
+
158
167
  # Auto-approve non-destructive deploy-plan changes
159
168
  adk deploy --yes
160
169
  ```
@@ -167,6 +176,7 @@ Use these defaults when relevant:
167
176
  - Treat `adk link --workspace ... --bot ...` as scriptable, but not guaranteed safe in every no-TTY environment.
168
177
  - Treat `adk dev --non-interactive` as CI-friendly, not fully prompt-free.
169
178
  - Treat `adk deploy --yes` as auto-approving non-destructive deploy-plan changes; config validation and destructive storage changes can still block automation.
179
+ - If project commands report a runtime/package mismatch, run `adk project upgrade --dry-run` first, then `adk project upgrade` to apply compatibility patches.
170
180
 
171
181
  **When to use CLI commands:**
172
182
 
@@ -252,9 +262,9 @@ Documentation should be located in `./references/` directory relative to this sk
252
262
  - **autonomous-execution.md** - Advanced execute() API: Objects, Exits, hooks, configuration
253
263
  - **workflows.md** - Workflows and step-based execution
254
264
  - **workflow-steps.md** - Complete Workflow Step API reference (step.request, step.map, step.notify, etc.)
255
- - **conversations.md** - Conversation handlers and message routing
265
+ - **conversations.md** - Conversation handlers, message routing, and receiving `chat:custom` events
256
266
  - **conversation-lifecycle.md** - Nudge/expiration lifecycle management for conversations
257
- - **triggers.md** - Event-driven automation
267
+ - **triggers.md** - Integration & bot-lifecycle event subscriptions (app-pushed custom events → conversations.md)
258
268
  - **messages.md** - Sending messages and events
259
269
  - **custom-components.md** - Custom webchat components (`.bp.tsx` files, metadata, usage in conversations)
260
270
 
@@ -53,6 +53,8 @@ export default new Action({
53
53
  });
54
54
  ```
55
55
 
56
+ > **`output` is required.** Declare it as a bare Zui schema (`output: z.object({ ... })`), never `output: { schema: ... }`. Omitting it fails the type check (`adk check` won't catch it).
57
+
56
58
  **Why use `export const`?**
57
59
 
58
60
  - Enables direct imports: `import { myAction } from "./actions/myAction"`
@@ -1,10 +1,10 @@
1
1
  # Configuration
2
2
 
3
- Configure your bot's behavior, integrations, dependencies, and global state through the unified `agent.config.ts` file.
3
+ Configure your bot's behavior, integration aliases, and global state through the unified `agent.config.ts` file. Installed integration and plugin state is managed through Botpress Cloud dependency snapshots, not through `agent.config.ts`.
4
4
 
5
5
  ## agent.config.ts
6
6
 
7
- The main configuration file defines your bot's core settings, AI models, dependencies, and state schemas.
7
+ The main configuration file defines your bot's core settings, AI models, integration aliases, and state schemas.
8
8
 
9
9
  ### Configuration Example
10
10
 
@@ -54,7 +54,7 @@ export default defineConfig({
54
54
  }),
55
55
  },
56
56
 
57
- // Integrations are managed via lock files (dependencies.dev.lock.json / dependencies.prod.lock.json)
57
+ // Cloud is the source of truth; .adk/dependencies/ stores generated snapshots.
58
58
  // Use `adk integrations add/remove/configure` to manage them — see integrations.md
59
59
  })
60
60
  ```
@@ -167,14 +167,17 @@ user.state.metadata.lastQuery = 'product pricing'
167
167
 
168
168
  ## Dependencies (Integrations, Plugins, Interfaces)
169
169
 
170
- Integration state lives in per-environment lock files at the project root, not in `agent.config.ts`:
170
+ Integration and plugin state lives in Botpress Cloud, not in `agent.config.ts`. The ADK writes generated per-environment snapshots under `.adk/dependencies/` for fast/offline reads:
171
171
 
172
- - `dependencies.dev.lock.json` — development environment
173
- - `dependencies.prod.lock.json` — production environment
172
+ - `.adk/dependencies/dev.json` — development environment snapshot
173
+ - `.adk/dependencies/prod.json` — production environment snapshot
174
+ - `.adk/dependencies/migration.json` — one-way legacy migration marker
174
175
 
175
- Cloud is the source of truth. Lock files are local reflections refreshed after every mutation. Never edit lock files by hand.
176
+ Cloud is the source of truth. Snapshots are refreshed after dependency mutations and Cloud reads. Never edit dependency snapshots by hand.
176
177
 
177
- > **Migration:** Projects with a legacy `dependencies` block in `agent.config.ts` are auto-migrated to lock files on the first CLI command.
178
+ > **Migration:** Projects with a legacy `dependencies` block in `agent.config.ts` or legacy `dependencies.<env>.lock.json` files are auto-migrated on the first CLI command. If the target Cloud bot has no dependency state, legacy state is imported to Cloud automatically, including prod. The migration is one-shot and is skipped whenever `.adk/dependencies/migration.json` exists; the marker contents are informational, so even a corrupt marker still counts as migrated.
179
+
180
+ Use `adk dependencies export` / `adk dependencies import` only for explicit dependency-only backup or transfer artifacts. These JSON files are not the generated local snapshots and should not become a new source of truth.
178
181
 
179
182
  ### Managing Dependencies
180
183
 
@@ -186,8 +189,9 @@ adk integrations add <name>@<version> # Add integration
186
189
  adk integrations configure <alias> --set key=value # Configure
187
190
  adk integrations enable <alias> # Enable
188
191
  adk integrations remove <alias> # Remove
189
- adk integrations upgrade [alias] # Upgrade
192
+ adk integrations upgrade <alias> # Upgrade
190
193
  adk integrations list # List installed
194
+ adk integrations status # Show availability/remediation
191
195
  ```
192
196
 
193
197
  ### Using Integration Actions
@@ -410,13 +414,12 @@ export default defineConfig({
410
414
 
411
415
  ### agent.json
412
416
 
413
- The `agent.json` file stores bot and workspace IDs for deployment. This file is automatically created by `adk link` or `adk dev`.
417
+ The `agent.json` file stores the shared production bot and workspace IDs for deployment. This file is created by `adk link`.
414
418
 
415
419
  ```json
416
420
  {
417
421
  "botId": "bot_abc123",
418
- "workspaceId": "ws_xyz789",
419
- "devId": "bot_dev_123"
422
+ "workspaceId": "ws_xyz789"
420
423
  }
421
424
  ```
422
425
 
@@ -424,13 +427,20 @@ The `agent.json` file stores bot and workspace IDs for deployment. This file is
424
427
 
425
428
  - `botId` - Production bot ID (used by `adk deploy`)
426
429
  - `workspaceId` - Workspace ID
427
- - `devId` - Development bot ID (used by `adk dev`)
430
+
431
+ The development bot ID is stored in `agent.local.json`:
432
+
433
+ ```json
434
+ {
435
+ "devId": "bot_dev_123"
436
+ }
437
+ ```
428
438
 
429
439
  **Important:**
430
440
 
431
441
  - Add `agent.json` to `.gitignore` if you do not want environment-specific IDs committed
432
- - Each developer/environment can have different IDs
433
- - Created automatically by `adk link` or `adk dev`
442
+ - Each developer/environment can have a different local `devId`
443
+ - `agent.json` is created by `adk link`; `agent.local.json` is written by local dev flows
434
444
  - Current scaffolds do not add `agent.json` to `.gitignore` automatically
435
445
 
436
446
  ### package.json
@@ -71,6 +71,13 @@ adk init customer-support --template hello-world
71
71
 
72
72
  ```
73
73
  my-agent/
74
+ ├── package.json # Common ADK scripts and runtime/evals deps
75
+ ├── tsconfig.json # Generated type includes
76
+ ├── .gitignore # Generated/runtime outputs
77
+ ├── AGENTS.md # Assistant instructions
78
+ ├── CLAUDE.md # Assistant instructions
79
+ ├── .agent0/
80
+ │ └── capabilities/ # Project-local Agent(0) capability bundle
74
81
  ├── agent.config.ts # Agent configuration
75
82
  └── src/
76
83
  ├── actions/ # Functions
@@ -83,6 +90,44 @@ my-agent/
83
90
 
84
91
  **Note:** Additional directories like `tools/`, `assets/`, etc. can be created manually as needed.
85
92
 
93
+ ### adk export
94
+
95
+ Export the current ADK project as a portable archive.
96
+
97
+ ```bash
98
+ adk export [output] [options]
99
+ ```
100
+
101
+ **Options:**
102
+
103
+ - `output` - Archive path (default: `<project-name>.adk`)
104
+ - `--no-config` - Omit integration and plugin configuration from dependency snapshots
105
+ - `--format <format>` - Output format (`json`)
106
+
107
+ The archive includes project files plus dependency snapshots for linked dev/prod bots when available. Config is included by default and may contain sensitive values; use `--no-config` before sharing.
108
+
109
+ ### adk import
110
+
111
+ Import an ADK project archive and link it to new or existing bots.
112
+
113
+ ```bash
114
+ adk import <archive> [directory] [options]
115
+ ```
116
+
117
+ **Options:**
118
+
119
+ - `archive` - Archive path created by `adk export`
120
+ - `directory` - Destination directory (default: archive project name)
121
+ - `--workspace <workspaceId>` - Destination workspace ID
122
+ - `--bot <botId>` - Destination production bot ID
123
+ - `--dev <devBotId>` - Destination dev bot ID
124
+ - `--api-url <apiUrl>` - Botpress API URL
125
+ - `-f, --force` - Skip confirmation prompts
126
+ - `--package-manager <packageManager>` - `bun`, `pnpm`, `yarn`, or `npm`
127
+ - `--format <format>` - Output format (`json`)
128
+
129
+ Interactive import guides workspace/bot selection and package install. Non-interactive import with `--format json` requires `--workspace`, and applying links/dependency snapshots requires `--force`.
130
+
86
131
  ### adk login
87
132
 
88
133
  Authenticate with Botpress.
@@ -211,6 +256,7 @@ adk deploy [options]
211
256
  - `-y, --yes` - Auto-approve non-destructive deploy-plan changes without prompting
212
257
  - `--confirm-storage-changes` - Explicitly confirm destructive table/KB/asset deletions
213
258
  - `--dry-run` - Compute the deploy plan without applying changes
259
+ - `--allow-unconfigured` - Deploy with enabled unconfigured/unresolved dependencies inert instead of blocking
214
260
  - `--format <format>` - Output format (`json`; requires `--yes` or `--dry-run`)
215
261
 
216
262
  **What it does:**
@@ -245,6 +291,8 @@ adk deploy --dry-run --format json
245
291
 
246
292
  - `--yes` auto-approves non-destructive deploy-plan changes.
247
293
  - Destructive table, KB, or asset deletions still require `--confirm-storage-changes`.
294
+ - Enabled dependencies that are unavailable, unconfigured, or unresolved block real deploys unless the user explicitly chooses `--allow-unconfigured`.
295
+ - If dev and prod have the same integration alias/name but different versions, deploy prints a non-blocking warning. Preview promotion with `adk integrations copy --from dev --to prod --dry-run` before applying `--yes`.
248
296
  - JSON output requires either `--yes` or `--dry-run`.
249
297
  - Deploy still validates configuration and may require interaction if config values are missing.
250
298
  - Do not assume `adk deploy --yes` is fully non-interactive.
@@ -338,6 +386,8 @@ Bot: Hi! How can I help you today?
338
386
 
339
387
  Offline validation of the project — schema correctness, ADK convention compliance, integration availability — without contacting Botpress Cloud. Use before `adk dev`, before `adk deploy`, and after any code change.
340
388
 
389
+ `adk check` does **not** typecheck your TypeScript — a green `valid: true` does not mean the code compiles. Run `tsc --noEmit` separately to catch type errors before treating work as done.
390
+
341
391
  ```bash
342
392
  adk check [options]
343
393
  ```
@@ -353,6 +403,21 @@ adk check
353
403
  adk check --format json # machine-readable for automation
354
404
  ```
355
405
 
406
+ ### adk project upgrade
407
+
408
+ Review and apply ADK project compatibility updates after CLI/runtime upgrades.
409
+
410
+ ```bash
411
+ adk project upgrade [options]
412
+ ```
413
+
414
+ **Options:**
415
+
416
+ - `--dry-run` - Review required updates without applying them
417
+ - `--format <format>` - Output format (`json`)
418
+
419
+ Project commands run a runtime preflight before execution. If `@botpress/runtime` is missing, outdated, invalid, or on an unsupported major, the CLI points to `adk project upgrade --dry-run` and then `adk project upgrade`. The upgrade command may update ADK package versions, migrate deprecated integration config object entries to string shorthand when safe, migrate legacy dependency state into Cloud-backed snapshots, and create the project-local Agent(0) capability bundle when missing. If the project runtime is newer than the CLI's supported major, run `adk self-upgrade` instead.
420
+
356
421
  ### adk status
357
422
 
358
423
  Report the project's current link state (workspace + bot), deployed version metadata, and any pending sync issues. Read-only.
@@ -638,37 +703,31 @@ adk evals runs --latest -v
638
703
 
639
704
  ### adk integrations
640
705
 
641
- Manage integrations, plugins, and interfaces. All subcommands support `--target <env>` (dev or prod, default: dev) and `--format <format>` (text or json).
706
+ Manage integrations, plugins, and interfaces. Mutation/state subcommands support `--target <env>` (dev or prod, default: dev); use `--format json` where listed for scripted output.
642
707
 
643
- > **Deprecated aliases:** The old flat commands (`adk add`, `adk remove`, `adk search`, `adk list`, `adk info`, `adk upgrade`) still work as shims but emit deprecation warnings.
708
+ > **Removed aliases:** The old flat commands (`adk add`, `adk remove`, `adk search`, `adk list`, `adk info`, `adk upgrade`) are no longer part of the public CLI. Use `adk integrations ...`.
644
709
 
645
710
  #### Discovery
646
711
 
647
712
  ```bash
648
- adk integrations search <query> # Search by keyword
649
- adk integrations list --available # Browse all Hub integrations
650
- adk integrations list # Show installed dependencies
651
- adk integrations info <name> # Full integration details
713
+ adk integrations search <query> # Search by keyword
714
+ adk integrations search --interface <name> # Find implementers of an interface
715
+ adk integrations list # Show installed dependencies
716
+ adk integrations info <name[@version]> # Full integration details
652
717
  ```
653
718
 
654
719
  **`adk integrations search` options:**
655
720
 
656
721
  - `--format json` - Machine-readable output
657
- - `--limit <n>` - Max results (default: 20)
722
+ - `--interface <name>` - Find integrations that implement an interface
658
723
 
659
724
  **`adk integrations list` options:**
660
725
 
661
- - `--available` - Browse Hub instead of installed
662
726
  - `--format json` - Machine-readable output
663
727
  - `--verbose` - Show config details
664
- - `--limit <n>` - Max results (default: 50)
665
728
 
666
729
  **`adk integrations info` options:**
667
730
 
668
- - `--actions` - Show only actions
669
- - `--channels` - Show only channels
670
- - `--events` - Show only events
671
- - `--full` - Show all sections
672
731
  - `--format json` - Machine-readable output
673
732
 
674
733
  #### Mutations
@@ -717,29 +776,29 @@ adk integrations enable slack
717
776
  adk integrations remove slack
718
777
  ```
719
778
 
720
- #### State Management
779
+ #### State Inspection and Promotion
721
780
 
722
781
  ```bash
723
- adk integrations pull-lock # Pull cloud state into lock file
724
- adk integrations push-lock # Push lock file to cloud
725
- adk integrations copy # Copy state between environments
726
- adk integrations diff # Show lock vs cloud differences
782
+ adk integrations status # Show availability/remediation
783
+ adk integrations copy # Copy integration state between environments
784
+ adk integrations diff # Show snapshot vs Cloud differences
727
785
  ```
728
786
 
729
- `adk pull-lock` and `adk push-lock` (no subcommand) run pull/push for both integrations and plugins at once.
730
-
731
- **`adk integrations pull-lock` options:**
787
+ **`adk integrations status` options:**
732
788
 
733
- - `--dry-run` - Preview without writing the lock file
789
+ - `--target <env>` - Environment (dev/prod)
790
+ - `--format json` - Machine-readable output
734
791
 
735
- **`adk integrations push-lock` options:**
792
+ **`adk integrations copy` options:**
736
793
 
794
+ - `--from <env>` - Source environment
795
+ - `--to <env>` - Target environment
737
796
  - `--dry-run` - Preview without applying
738
- - `--yes` - Skip confirmation
797
+ - `--yes` - Skip confirmation for prod/destructive changes
739
798
 
740
799
  ### adk plugins
741
800
 
742
- Manage plugins (reusable agent extensions). Mirrors the `adk integrations` subcommand structure. All subcommands support `--target <env>` and `--format <format>`.
801
+ Manage plugins (reusable agent extensions). Mirrors the `adk integrations` subcommand structure. Mutation/state subcommands support `--target <env>`; use `--format json` where listed for scripted output.
743
802
 
744
803
  ```bash
745
804
  adk plugins search <query> # Search by keyword
@@ -751,10 +810,9 @@ adk plugins upgrade <alias> # Upgrade version
751
810
  adk plugins enable <alias> # Enable a disabled plugin
752
811
  adk plugins disable <alias> # Disable without removing
753
812
  adk plugins configure <alias> # Set config and interface mappings
754
- adk plugins pull-lock # Pull cloud state into lock file
755
- adk plugins push-lock # Push lock file to cloud
813
+ adk plugins status # Show availability/remediation
756
814
  adk plugins copy # Copy state between environments
757
- adk plugins diff # Show lock vs cloud differences
815
+ adk plugins diff # Show snapshot vs Cloud differences
758
816
  ```
759
817
 
760
818
  **Plugin-specific flags:**
@@ -768,6 +826,32 @@ adk plugins diff # Show lock vs cloud differences
768
826
 
769
827
  Plugins require interfaces implemented by installed integrations. The CLI auto-resolves dependencies when unambiguous. See **[Plugins](./plugins.md)** for details.
770
828
 
829
+ ### adk dependencies
830
+
831
+ Export or import dependency-only snapshots for integrations and plugins.
832
+
833
+ ```bash
834
+ adk dependencies export [output] [options]
835
+ adk dependencies import <file> [options]
836
+ ```
837
+
838
+ **`adk dependencies export` options:**
839
+
840
+ - `output` - Snapshot path (default: `<project-name>.dependencies.<target>.json`)
841
+ - `--target <env>` - `dev` or `prod` (default: `dev`)
842
+ - `--no-config` - Omit integration and plugin configuration
843
+ - `--format <format>` - `text` or `json`
844
+
845
+ **`adk dependencies import` options:**
846
+
847
+ - `file` - Snapshot path created by `adk dependencies export`
848
+ - `--target <env>` - `dev` or `prod` (default: snapshot env)
849
+ - `--dry-run` - Show what would change without writing
850
+ - `--yes` - Allow prod or destructive changes without confirmation
851
+ - `--format <format>` - `text` or `json`
852
+
853
+ These artifacts are explicit backups or transfer files. They are not replacements for generated `.adk/dependencies/dev.json` or `.adk/dependencies/prod.json`.
854
+
771
855
  ### adk self-upgrade
772
856
 
773
857
  Upgrade the ADK CLI itself to the latest version.
@@ -803,7 +887,7 @@ adk self-upgrade
803
887
 
804
888
  **Note:** The ADK automatically checks for updates every 24 hours and shows a notification when a new version is available. On Windows, you may need to restart your terminal after upgrading.
805
889
 
806
- **This is different from `adk upgrade`** which upgrades integrations, not the CLI itself.
890
+ **This is different from `adk integrations upgrade` / `adk plugins upgrade`**, which upgrade installed dependencies, not the CLI itself.
807
891
 
808
892
  ### adk kb
809
893
 
@@ -1201,8 +1285,8 @@ adk dev
1201
1285
  # Search for integrations
1202
1286
  adk integrations search slack
1203
1287
 
1204
- # List all available integrations
1205
- adk integrations list --available
1288
+ # Find integrations that implement an interface
1289
+ adk integrations search --interface hitl
1206
1290
 
1207
1291
  # Get detailed info about an integration
1208
1292
  adk integrations info slack
@@ -1272,16 +1356,16 @@ adk workflows runs # List or inspect workflow runs
1272
1356
  # Dependencies (integrations, plugins, interfaces)
1273
1357
  adk integrations search <query> # Search for integrations
1274
1358
  adk integrations list # List installed dependencies
1275
- adk integrations list --available # List all available integrations
1276
1359
  adk integrations info <name> # Show integration details
1277
1360
  adk integrations add <name>@<ver> # Add integration
1278
1361
  adk integrations remove <alias> # Remove integration
1279
- adk integrations upgrade [alias] # Upgrade dependency
1362
+ adk integrations upgrade <alias> # Upgrade dependency
1280
1363
  adk integrations enable <alias> # Enable integration
1281
1364
  adk integrations disable <alias> # Disable integration
1282
1365
  adk integrations configure <alias> # Set/unset config values
1283
- adk integrations pull-lock # Pull cloud state to lock file
1284
- adk integrations push-lock # Push lock file to cloud
1366
+ adk integrations status # Show availability/remediation
1367
+ adk integrations copy --from dev --to prod --dry-run # Preview promotion
1368
+ adk integrations diff # Show snapshot vs Cloud differences
1285
1369
 
1286
1370
  # Plugins
1287
1371
  adk plugins search <query> # Search for plugins
@@ -1289,12 +1373,21 @@ adk plugins list # List installed plugins
1289
1373
  adk plugins add <name>@<version> # Add plugin
1290
1374
  adk plugins remove <alias> # Remove plugin
1291
1375
  adk plugins configure <alias> # Set config / remap interfaces
1292
- adk plugins pull-lock # Pull cloud state to lock file
1293
- adk plugins push-lock # Push lock file to cloud
1294
-
1295
- # Lock file (both integrations + plugins at once)
1296
- adk pull-lock # Pull cloud state for both
1297
- adk push-lock # Push lock files to cloud for both
1376
+ adk plugins status # Show availability/remediation
1377
+ adk plugins copy --from dev --to prod --dry-run # Preview promotion
1378
+ adk plugins diff # Show snapshot vs Cloud differences
1379
+
1380
+ # Dependency import/export (integrations + plugins)
1381
+ adk dependencies export # Export dev dependency state
1382
+ adk dependencies export --target prod --no-config
1383
+ adk dependencies import <file> --dry-run
1384
+ adk dependencies import <file> --target prod --yes
1385
+
1386
+ # Project portability and compatibility
1387
+ adk export # Export a portable .adk project archive
1388
+ adk import <archive> # Import an ADK project archive
1389
+ adk project upgrade --dry-run # Review project compatibility updates
1390
+ adk project upgrade # Apply project compatibility updates
1298
1391
 
1299
1392
  # MCP (AI Assistant Integration)
1300
1393
  adk mcp # Start MCP server
@@ -131,6 +131,8 @@ if (conversation) {
131
131
 
132
132
  **Type:** `Conversation | null`
133
133
 
134
+ > Tools and Actions **cannot send messages** — the `conversation` here is read-only (no `.send()`). Return data from the Tool/Action and let the `Conversation` handler send it.
135
+
134
136
  ### message
135
137
 
136
138
  Incoming message (when triggered by a message event).
@@ -138,6 +138,27 @@ export const Chat = new Conversation({
138
138
 
139
139
  See **[Messages](./messages.md)** for complete guide on all message types, metadata, and sending patterns.
140
140
 
141
+ ## Custom & Proactive Events
142
+
143
+ To push a message into a conversation from an external trigger (e.g. an announcement or status update), handle a custom event **inside the Conversation** — declare it in `events` and branch on `type === 'event'`. Don't build a separate `Trigger` + `client.createMessage`; an integration can't post messages as itself.
144
+
145
+ ```typescript
146
+ export const Chat = new Conversation({
147
+ channel: '*',
148
+ events: ['chat:custom'],
149
+ async handler({ type, event, conversation }) {
150
+ if (type === 'event') {
151
+ // The pushed data is in event.payload. On channel '*' the handler types
152
+ // event as `unknown`, so read its payload with a cast (or use a concrete channel).
153
+ const { orderId } = (event as { payload: { orderId: string } }).payload
154
+ await conversation.send({ type: 'text', payload: { text: `Order ${orderId} shipped!` } })
155
+ return
156
+ }
157
+ // ...handle messages as normal
158
+ },
159
+ })
160
+ ```
161
+
141
162
  ## Conversation Instance Methods
142
163
 
143
164
  The `conversation` object provides methods for interacting with the current conversation.
@@ -230,7 +230,7 @@ dependencies: {
230
230
  **To get details about a specific integration's capabilities:**
231
231
 
232
232
  ```bash
233
- adk info slack
233
+ adk integrations info slack --format json
234
234
  ```
235
235
 
236
236
  **Potential issues:**
@@ -412,7 +412,7 @@ Based on what's present vs missing, suggest concrete next steps:
412
412
  1. Run `adk status --format json` — check the `integrations` array
413
413
  2. For each integration, explain what it provides
414
414
  3. Flag any with `status: "unconfigured"`
415
- 4. Optionally run `adk info <name>` to show available actions/channels
415
+ 4. Optionally run `adk integrations info <name> --format json` to show available actions/channels
416
416
 
417
417
  ### "Explain my config"
418
418