@botpress/adk 2.0.0-alpha.1 → 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.
- package/dist/agent0/capabilities/commands/adk-ship.md +3 -2
- package/dist/agent0/capabilities/commands/adk-validate.md +1 -1
- package/dist/agent0/capabilities/skills/adk/SKILL.md +19 -9
- package/dist/agent0/capabilities/skills/adk/references/actions.md +2 -0
- package/dist/agent0/capabilities/skills/adk/references/agent-config.md +25 -15
- package/dist/agent0/capabilities/skills/adk/references/cli.md +134 -41
- package/dist/agent0/capabilities/skills/adk/references/context-api.md +2 -0
- package/dist/agent0/capabilities/skills/adk/references/conversations.md +21 -0
- package/dist/agent0/capabilities/skills/adk/references/explain-config.md +2 -2
- package/dist/agent0/capabilities/skills/adk/references/integrations.md +39 -25
- package/dist/agent0/capabilities/skills/adk/references/interfaces.md +1 -1
- package/dist/agent0/capabilities/skills/adk/references/knowledge-bases.md +4 -4
- package/dist/agent0/capabilities/skills/adk/references/mcp-server.md +1 -1
- package/dist/agent0/capabilities/skills/adk/references/patterns-mistakes.md +16 -0
- package/dist/agent0/capabilities/skills/adk/references/plugins.md +28 -30
- package/dist/agent0/capabilities/skills/adk/references/tables.md +13 -26
- package/dist/agent0/capabilities/skills/adk/references/tools.md +2 -0
- package/dist/agent0/capabilities/skills/adk/references/triggers.md +16 -12
- package/dist/agent0/capabilities/skills/adk/references/workflows.md +2 -0
- package/dist/agent0/capabilities/skills/adk-debugger/references/common-failures.md +4 -4
- package/dist/agent0/capabilities/skills/adk-debugger/references/debug-workflow.md +11 -11
- package/dist/agent0/capabilities/skills/adk-dev-console/SKILL.md +5 -0
- package/dist/agent0/capabilities/skills/adk-dev-console/references/pages.md +14 -0
- package/dist/agent0/index.js +44 -9
- package/dist/agent0/index.js.map +5 -5
- package/dist/agent0/runtime/client.d.ts.map +1 -1
- package/dist/agent0/types.d.ts +5 -0
- package/dist/agent0/types.d.ts.map +1 -1
- package/dist/bot-generator/generator.d.ts.map +1 -1
- package/dist/commands/bp-dev-command.d.ts.map +1 -1
- package/dist/config/manager.d.ts.map +1 -1
- package/dist/dependencies/dependency-manager.d.ts +4 -0
- package/dist/dependencies/dependency-manager.d.ts.map +1 -1
- package/dist/dependencies/index.js +19 -3
- package/dist/dependencies/index.js.map +4 -4
- package/dist/deploy-manifest/index.d.ts.map +1 -1
- package/dist/generators/table-types.d.ts +1 -0
- package/dist/generators/table-types.d.ts.map +1 -1
- package/dist/index.js +54 -14
- package/dist/index.js.map +11 -10
- package/dist/utils/schema-serialization.d.ts +2 -0
- package/dist/utils/schema-serialization.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -15,6 +15,7 @@ The Dev Console is a **singleton shared dashboard**: one UI server per user, wit
|
|
|
15
15
|
Activate when users ask about:
|
|
16
16
|
|
|
17
17
|
- **UI concepts** — "What are Agent Steps?", "What does the Observe tab show?", "What is a turn?", "What is the component registry?", "What is the Agent Map?"
|
|
18
|
+
- **Agent(0) UI** — "What are the Tasks under Agent(0)?", "Where did the todo list come from?", "Why is Agent(0) showing task progress?"
|
|
18
19
|
- **Dev Console navigation** — "What tabs are available?", "Where do I find traces?", "How do I test RAG?"
|
|
19
20
|
- **Reading execution data** — "What do the steps mean?", "Why is my step red?", "What's the cost shown?"
|
|
20
21
|
- **Component registry** — "Where do I find custom components?", "How do I install a component?", "What components are available?"
|
|
@@ -57,6 +58,10 @@ Match depth to the question:
|
|
|
57
58
|
| **Observe** | Conversations, Traces, Logs | View conversation history, execution traces, runtime logs |
|
|
58
59
|
| **Config** | Settings, Integrations | Agent config, secrets, LLM settings, integration management |
|
|
59
60
|
|
|
61
|
+
### Agent(0) Task Dock
|
|
62
|
+
|
|
63
|
+
When Agent(0) uses its todo tool, the panel shows a compact **Tasks** dock with completed/total count, the active task, and an expandable task list. Status icons map to pending, in progress, completed, and cancelled; priorities are shown as low/medium/high chips.
|
|
64
|
+
|
|
60
65
|
### Multi-Agent Sidebar
|
|
61
66
|
|
|
62
67
|
The sidebar header shows the currently selected agent with a status indicator and mode pill (dev/prod/cloud). Clicking it opens the **Agent Selector** dropdown:
|
|
@@ -26,6 +26,7 @@ Real-time conversation interface for testing the agent.
|
|
|
26
26
|
- Conversation picker dropdown (filters to webchat conversations)
|
|
27
27
|
- "Open conversation traces" link to jump to full Traces view
|
|
28
28
|
- Download transcript button
|
|
29
|
+
- Agent(0) side panel can show a **Tasks** dock when Agent(0) emits todo-tool updates: collapsed progress count, active task text, and an expandable list with status and priority.
|
|
29
30
|
|
|
30
31
|
---
|
|
31
32
|
|
|
@@ -279,6 +280,19 @@ Install, configure, and manage integrations.
|
|
|
279
280
|
- Configuration editing via UI
|
|
280
281
|
- Installation status per integration
|
|
281
282
|
- Configured integrations' actions appear on the Actions page
|
|
283
|
+
- Dependency actions for comparing dev/prod state and promoting reviewed changes
|
|
284
|
+
- In Cloud Console mode, install/uninstall/upgrade controls are disabled; finish config/auth in the Hub or disable/remove the dependency from the owning environment.
|
|
285
|
+
|
|
286
|
+
### Deploy Dialog
|
|
287
|
+
|
|
288
|
+
The deploy dialog computes the same deploy plan as `adk deploy`.
|
|
289
|
+
|
|
290
|
+
**Warnings and blockers:**
|
|
291
|
+
|
|
292
|
+
- Missing required secrets block deploy until values are provided.
|
|
293
|
+
- Enabled dependencies that are unavailable, unconfigured, or unresolved block deploy.
|
|
294
|
+
- Integration version mismatches are non-blocking: if dev and prod have the same alias/name but different versions, the dialog shows a warning and points to Integrations dependency actions for Compare Dev vs Prod and Promote Dev to Prod.
|
|
295
|
+
- Destructive table, KB, or asset changes require explicit confirmation.
|
|
282
296
|
|
|
283
297
|
---
|
|
284
298
|
|
package/dist/agent0/index.js
CHANGED
|
@@ -318,7 +318,19 @@ Warm, direct, and efficient. No filler. Bias to action over questions; when you
|
|
|
318
318
|
|
|
319
319
|
// src/agent0/capabilities/builtins.ts
|
|
320
320
|
var AGENT0_DEFAULT_AGENT = "default";
|
|
321
|
-
var
|
|
321
|
+
var AGENT0_DEFAULT_PRIMARY_AGENT_STEPS = 64;
|
|
322
|
+
var AGENT0_PRIMARY_AGENT_STEPS_ENV = "ADK_AGENT0_MAX_STEPS";
|
|
323
|
+
function resolveAgent0PrimaryAgentSteps(env = process.env) {
|
|
324
|
+
const raw = env[AGENT0_PRIMARY_AGENT_STEPS_ENV];
|
|
325
|
+
if (raw === undefined || raw.trim() === "")
|
|
326
|
+
return AGENT0_DEFAULT_PRIMARY_AGENT_STEPS;
|
|
327
|
+
const parsed = Number(raw);
|
|
328
|
+
if (Number.isInteger(parsed) && parsed > 0)
|
|
329
|
+
return parsed;
|
|
330
|
+
process.stderr.write(`[adk] Ignoring invalid ${AGENT0_PRIMARY_AGENT_STEPS_ENV}=${JSON.stringify(raw)}: ` + `expected a positive integer of agentic steps. Falling back to ${AGENT0_DEFAULT_PRIMARY_AGENT_STEPS}.
|
|
331
|
+
`);
|
|
332
|
+
return AGENT0_DEFAULT_PRIMARY_AGENT_STEPS;
|
|
333
|
+
}
|
|
322
334
|
var AGENT0_PROJECT_DIR = ".agent0";
|
|
323
335
|
var AGENT0_PROJECT_CAPABILITIES_DIR = "capabilities";
|
|
324
336
|
var AGENT0_PROJECT_SKILLS_DIR = "skills";
|
|
@@ -329,6 +341,7 @@ var AGENT0_SCREENSHOT_RAW_TOOL_PERMISSION = "adk_take_screenshot";
|
|
|
329
341
|
function buildAgent0BuiltInCapabilities(options) {
|
|
330
342
|
const skillsRoot = resolveAgent0ProjectSkillsRoot(options.agentPath);
|
|
331
343
|
const commandsRoot = resolveAgent0ProjectPlaybooksRoot(options.agentPath);
|
|
344
|
+
const primaryAgentSteps = resolveAgent0PrimaryAgentSteps();
|
|
332
345
|
return {
|
|
333
346
|
mcp: {
|
|
334
347
|
adk: {
|
|
@@ -348,13 +361,13 @@ function buildAgent0BuiltInCapabilities(options) {
|
|
|
348
361
|
description: "Agent(0) - helps build and debug Botpress ADK agents",
|
|
349
362
|
prompt: AGENT0_DEFAULT_PROMPT,
|
|
350
363
|
mode: "primary",
|
|
351
|
-
steps:
|
|
364
|
+
steps: primaryAgentSteps
|
|
352
365
|
},
|
|
353
366
|
guided: {
|
|
354
367
|
description: "ADK guided setup - interviews the developer and scaffolds a new agent",
|
|
355
368
|
prompt: GUIDED_SETUP_PROMPT,
|
|
356
369
|
mode: "primary",
|
|
357
|
-
steps:
|
|
370
|
+
steps: primaryAgentSteps,
|
|
358
371
|
permission: {
|
|
359
372
|
[AGENT0_SCREENSHOT_MCP_TOOL_PERMISSION]: "deny",
|
|
360
373
|
[AGENT0_SCREENSHOT_RAW_TOOL_PERMISSION]: "deny"
|
|
@@ -362,11 +375,11 @@ function buildAgent0BuiltInCapabilities(options) {
|
|
|
362
375
|
},
|
|
363
376
|
build: {
|
|
364
377
|
mode: "primary",
|
|
365
|
-
steps:
|
|
378
|
+
steps: primaryAgentSteps
|
|
366
379
|
},
|
|
367
380
|
plan: {
|
|
368
381
|
mode: "primary",
|
|
369
|
-
steps:
|
|
382
|
+
steps: primaryAgentSteps
|
|
370
383
|
}
|
|
371
384
|
},
|
|
372
385
|
defaultAgent: AGENT0_DEFAULT_AGENT
|
|
@@ -2488,7 +2501,7 @@ function normalizeOpenCodeEvent(value) {
|
|
|
2488
2501
|
...id ? { id } : {},
|
|
2489
2502
|
type: "session.error",
|
|
2490
2503
|
...typeof properties.sessionID === "string" ? { sessionId: properties.sessionID } : {},
|
|
2491
|
-
error:
|
|
2504
|
+
error: normalizeAgent0Error(properties.error)
|
|
2492
2505
|
};
|
|
2493
2506
|
}
|
|
2494
2507
|
case "question.asked": {
|
|
@@ -2663,7 +2676,7 @@ function normalizeAgent0MessageInfo(info) {
|
|
|
2663
2676
|
...mode ? { mode } : {},
|
|
2664
2677
|
...model ? { model } : {},
|
|
2665
2678
|
...usage ? { usage } : {},
|
|
2666
|
-
...isRecord2(info.error) ? { error:
|
|
2679
|
+
...isRecord2(info.error) ? { error: normalizeAgent0Error(info.error) } : {}
|
|
2667
2680
|
};
|
|
2668
2681
|
}
|
|
2669
2682
|
var EMPTY_COMPLETION_MAX_RETRIES = 1;
|
|
@@ -2811,7 +2824,7 @@ function normalizeAgent0MessagePart(part) {
|
|
|
2811
2824
|
status: "error",
|
|
2812
2825
|
...typeof part.attempt === "number" && Number.isFinite(part.attempt) ? { attempt: part.attempt } : {},
|
|
2813
2826
|
...normalizeAgent0PartTime(part.time) ? { time: normalizeAgent0PartTime(part.time) } : {},
|
|
2814
|
-
...isRecord2(part.error) ? { error:
|
|
2827
|
+
...isRecord2(part.error) ? { error: normalizeAgent0Error(part.error) } : {}
|
|
2815
2828
|
}
|
|
2816
2829
|
];
|
|
2817
2830
|
case "snapshot":
|
|
@@ -2945,6 +2958,26 @@ function normalizePartSource(value) {
|
|
|
2945
2958
|
function normalizeErrorMessage(value) {
|
|
2946
2959
|
return typeof value.message === "string" && value.message.trim().length > 0 ? value.message : "Agent(0) message failed.";
|
|
2947
2960
|
}
|
|
2961
|
+
var MAX_ERROR_DATA_STRING = 2000;
|
|
2962
|
+
function truncateErrorData(data) {
|
|
2963
|
+
const out = {};
|
|
2964
|
+
for (const [key, value] of Object.entries(data)) {
|
|
2965
|
+
out[key] = typeof value === "string" && value.length > MAX_ERROR_DATA_STRING ? value.slice(0, MAX_ERROR_DATA_STRING) : value;
|
|
2966
|
+
}
|
|
2967
|
+
return out;
|
|
2968
|
+
}
|
|
2969
|
+
function normalizeAgent0Error(value) {
|
|
2970
|
+
const error = { message: normalizeErrorMessage(value) };
|
|
2971
|
+
if (typeof value.name === "string")
|
|
2972
|
+
error.name = value.name;
|
|
2973
|
+
if (typeof value.code === "string")
|
|
2974
|
+
error.code = value.code;
|
|
2975
|
+
if (typeof value.status === "number")
|
|
2976
|
+
error.status = value.status;
|
|
2977
|
+
if (isRecord2(value.data))
|
|
2978
|
+
error.data = truncateErrorData(value.data);
|
|
2979
|
+
return error;
|
|
2980
|
+
}
|
|
2948
2981
|
function normalizeAgent0MessageUsage(value) {
|
|
2949
2982
|
const usage = {};
|
|
2950
2983
|
if (typeof value.cost === "number" && Number.isFinite(value.cost))
|
|
@@ -3330,6 +3363,7 @@ export {
|
|
|
3330
3363
|
sanitizeAgent0OpenCodeBaseEnv,
|
|
3331
3364
|
resolveAgent0ProjectSkillsRoot,
|
|
3332
3365
|
resolveAgent0ProjectPlaybooksRoot,
|
|
3366
|
+
resolveAgent0PrimaryAgentSteps,
|
|
3333
3367
|
resolveAgent0OpenCodeBinary,
|
|
3334
3368
|
resolveAgent0BuiltInSkillsRootCandidates,
|
|
3335
3369
|
resolveAgent0BuiltInSkillsRoot,
|
|
@@ -3395,9 +3429,10 @@ export {
|
|
|
3395
3429
|
AGENT0_PROJECT_DIR,
|
|
3396
3430
|
AGENT0_PROJECT_CAPABILITIES_MANIFEST,
|
|
3397
3431
|
AGENT0_PROJECT_CAPABILITIES_DIR,
|
|
3432
|
+
AGENT0_PRIMARY_AGENT_STEPS_ENV,
|
|
3398
3433
|
AGENT0_HIDDEN_OPENCODE_SKILL,
|
|
3399
3434
|
AGENT0_CONFIG_SCHEMA_VERSION,
|
|
3400
3435
|
AGENT0_BUILT_IN_MCP_PERMISSION
|
|
3401
3436
|
};
|
|
3402
3437
|
|
|
3403
|
-
//# debugId=
|
|
3438
|
+
//# debugId=07622382B0AACB9164756E2164756E21
|