@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.
- package/dist/agent-init/agent-project-generator.d.ts +5 -1
- package/dist/agent-init/agent-project-generator.d.ts.map +1 -1
- package/dist/agent-project/agent-project.d.ts +3 -3
- package/dist/agent-project/agent-project.d.ts.map +1 -1
- package/dist/agent-project/agent-resolver.d.ts.map +1 -1
- package/dist/agent-project/config-writer.d.ts +1 -1
- package/dist/agent-project/dependency-state-to-dependencies.d.ts +11 -0
- package/dist/agent-project/dependency-state-to-dependencies.d.ts.map +1 -0
- package/dist/agent-project/types.d.ts +9 -4
- package/dist/agent-project/types.d.ts.map +1 -1
- package/dist/agent0/capabilities/commands/adk-build.md +6 -5
- package/dist/agent0/capabilities/commands/adk-debug.md +1 -1
- package/dist/agent0/capabilities/commands/adk-dev-console.md +1 -1
- package/dist/agent0/capabilities/commands/adk-document.md +10 -2
- package/dist/agent0/capabilities/commands/adk-eval.md +1 -1
- package/dist/agent0/capabilities/commands/adk-explain.md +2 -2
- package/dist/agent0/capabilities/commands/adk-init.md +2 -2
- package/dist/agent0/capabilities/commands/adk-ship.md +1 -1
- package/dist/agent0/capabilities/commands/adk-test.md +3 -3
- package/dist/agent0/capabilities/commands/adk-validate.md +3 -3
- package/dist/agent0/capabilities/skills/adk/SKILL.md +21 -21
- package/dist/agent0/capabilities/skills/adk/references/actions.md +245 -239
- package/dist/agent0/capabilities/skills/adk/references/advanced-patterns.md +185 -218
- package/dist/agent0/capabilities/skills/adk/references/agent-config.md +74 -71
- package/dist/agent0/capabilities/skills/adk/references/assets.md +45 -48
- package/dist/agent0/capabilities/skills/adk/references/autonomous-execution.md +40 -46
- package/dist/agent0/capabilities/skills/adk/references/cli.md +17 -7
- package/dist/agent0/capabilities/skills/adk/references/context-api.md +98 -94
- package/dist/agent0/capabilities/skills/adk/references/conversation-lifecycle.md +65 -62
- package/dist/agent0/capabilities/skills/adk/references/conversations.md +395 -385
- package/dist/agent0/capabilities/skills/adk/references/custom-components.md +1 -1
- package/dist/agent0/capabilities/skills/adk/references/desk.md +236 -234
- package/dist/agent0/capabilities/skills/adk/references/explain-config.md +54 -37
- package/dist/agent0/capabilities/skills/adk/references/files.md +301 -306
- package/dist/agent0/capabilities/skills/adk/references/integration-actions.md +211 -214
- package/dist/agent0/capabilities/skills/adk/references/integrations.md +33 -31
- package/dist/agent0/capabilities/skills/adk/references/interfaces.md +13 -12
- package/dist/agent0/capabilities/skills/adk/references/knowledge-bases.md +98 -111
- package/dist/agent0/capabilities/skills/adk/references/mcp-server.md +6 -0
- package/dist/agent0/capabilities/skills/adk/references/messages.md +280 -256
- package/dist/agent0/capabilities/skills/adk/references/model-configuration.md +52 -49
- package/dist/agent0/capabilities/skills/adk/references/patterns-mistakes.md +102 -101
- package/dist/agent0/capabilities/skills/adk/references/plugins.md +15 -15
- package/dist/agent0/capabilities/skills/adk/references/tables.md +204 -210
- package/dist/agent0/capabilities/skills/adk/references/tags.md +141 -143
- package/dist/agent0/capabilities/skills/adk/references/tools.md +191 -199
- package/dist/agent0/capabilities/skills/adk/references/triggers.md +331 -336
- package/dist/agent0/capabilities/skills/adk/references/workflow-steps.md +132 -96
- package/dist/agent0/capabilities/skills/adk/references/workflows.md +479 -464
- package/dist/agent0/capabilities/skills/adk/references/zai-agent-reference.md +127 -129
- package/dist/agent0/capabilities/skills/adk/references/zai-complete-guide.md +255 -276
- package/dist/agent0/capabilities/skills/adk-debugger/SKILL.md +21 -17
- package/dist/agent0/capabilities/skills/adk-debugger/references/common-failures.md +25 -25
- package/dist/agent0/capabilities/skills/adk-debugger/references/conversation-analysis.md +49 -41
- package/dist/agent0/capabilities/skills/adk-debugger/references/debug-workflow.md +20 -14
- package/dist/agent0/capabilities/skills/adk-debugger/references/llm-debugging.md +13 -13
- package/dist/agent0/capabilities/skills/adk-debugger/references/trace-summarization.md +18 -18
- package/dist/agent0/capabilities/skills/adk-debugger/references/traces-and-logs.md +67 -67
- package/dist/agent0/capabilities/skills/adk-dev-console/SKILL.md +36 -36
- package/dist/agent0/capabilities/skills/adk-dev-console/references/agent-steps.md +14 -6
- package/dist/agent0/capabilities/skills/adk-dev-console/references/multi-agent-dashboard.md +13 -13
- package/dist/agent0/capabilities/skills/adk-dev-console/references/pages.md +18 -0
- package/dist/agent0/capabilities/skills/adk-docs/SKILL.md +13 -13
- package/dist/agent0/capabilities/skills/adk-docs/references/doc-standards.md +15 -0
- package/dist/agent0/capabilities/skills/adk-evals/SKILL.md +29 -23
- package/dist/agent0/capabilities/skills/adk-evals/references/eval-format.md +31 -23
- package/dist/agent0/capabilities/skills/adk-evals/references/test-patterns.md +25 -36
- package/dist/agent0/capabilities/skills/adk-evals/references/testing-workflow.md +6 -4
- package/dist/agent0/index.js +41 -19
- package/dist/agent0/index.js.map +7 -7
- package/dist/agent0/runtime/client.d.ts +2 -0
- package/dist/agent0/runtime/client.d.ts.map +1 -1
- package/dist/agent0/runtime/engine.d.ts +2 -1
- package/dist/agent0/runtime/engine.d.ts.map +1 -1
- package/dist/agent0/runtime/process.d.ts +1 -0
- package/dist/agent0/runtime/process.d.ts.map +1 -1
- package/dist/assets/manager.d.ts +3 -0
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/auth/credentials.d.ts +1 -1
- package/dist/bot-generator/generator.d.ts +22 -0
- package/dist/bot-generator/generator.d.ts.map +1 -1
- package/dist/bot-generator/plugin-sync.d.ts.map +1 -1
- package/dist/commands/base-command.d.ts +1 -0
- package/dist/commands/base-command.d.ts.map +1 -1
- package/dist/commands/bp-dev-command.d.ts +1 -1
- package/dist/commands/bp-dev-command.d.ts.map +1 -1
- package/dist/commands/bp-dev-stderr.d.ts +9 -0
- package/dist/commands/bp-dev-stderr.d.ts.map +1 -1
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/dependencies/catalog/catalog-service.d.ts +53 -0
- package/dist/dependencies/catalog/catalog-service.d.ts.map +1 -0
- package/dist/dependencies/catalog/client-factory.d.ts +33 -0
- package/dist/dependencies/catalog/client-factory.d.ts.map +1 -0
- package/dist/dependencies/catalog/integration-source.d.ts +34 -0
- package/dist/dependencies/catalog/integration-source.d.ts.map +1 -0
- package/dist/dependencies/catalog/interface-source.d.ts +23 -0
- package/dist/dependencies/catalog/interface-source.d.ts.map +1 -0
- package/dist/dependencies/catalog/plugin-source.d.ts +49 -0
- package/dist/dependencies/catalog/plugin-source.d.ts.map +1 -0
- package/dist/dependencies/catalog/resolution-cache.d.ts +76 -0
- package/dist/dependencies/catalog/resolution-cache.d.ts.map +1 -0
- package/dist/dependencies/dependency-manager.d.ts +31 -16
- package/dist/dependencies/dependency-manager.d.ts.map +1 -1
- package/dist/dependencies/errors.d.ts +2 -2
- package/dist/dependencies/errors.d.ts.map +1 -1
- package/dist/dependencies/index.d.ts +5 -4
- package/dist/dependencies/index.d.ts.map +1 -1
- package/dist/dependencies/index.js +2089 -1670
- package/dist/dependencies/index.js.map +37 -30
- package/dist/dependencies/legacy-lock-file.d.ts +15 -0
- package/dist/dependencies/legacy-lock-file.d.ts.map +1 -0
- package/dist/dependencies/migration.d.ts +19 -0
- package/dist/dependencies/migration.d.ts.map +1 -1
- package/dist/dependencies/resolvers/integration-resolver.d.ts +4 -3
- package/dist/dependencies/resolvers/integration-resolver.d.ts.map +1 -1
- package/dist/dependencies/resolvers/plugin-resolver.d.ts +4 -4
- package/dist/dependencies/resolvers/plugin-resolver.d.ts.map +1 -1
- package/dist/dependencies/snapshot-store.d.ts +59 -0
- package/dist/dependencies/snapshot-store.d.ts.map +1 -0
- package/dist/dependencies/status-resolver.d.ts +36 -0
- package/dist/dependencies/status-resolver.d.ts.map +1 -0
- package/dist/dependencies/status.d.ts +214 -0
- package/dist/dependencies/status.d.ts.map +1 -0
- package/dist/dependencies/types.d.ts +380 -29
- package/dist/dependencies/types.d.ts.map +1 -1
- 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/client-wrapper.d.ts.map +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3134 -2226
- package/dist/index.js.map +55 -48
- package/dist/integrations/config-utils.d.ts +11 -7
- package/dist/integrations/config-utils.d.ts.map +1 -1
- package/dist/integrations/hub-cache.d.ts +0 -58
- package/dist/integrations/hub-cache.d.ts.map +1 -1
- package/dist/integrations/index.d.ts +1 -3
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/manager.d.ts +19 -53
- package/dist/integrations/manager.d.ts.map +1 -1
- package/dist/interfaces/enhanced-cache.d.ts +7 -7
- package/dist/interfaces/enhanced-cache.d.ts.map +1 -1
- package/dist/interfaces/manager.d.ts +11 -17
- package/dist/interfaces/manager.d.ts.map +1 -1
- package/dist/knowledge/manager.d.ts +3 -0
- package/dist/knowledge/manager.d.ts.map +1 -1
- package/dist/plugins/index.d.ts +0 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/manager.d.ts +16 -48
- package/dist/plugins/manager.d.ts.map +1 -1
- package/dist/preflight/checker.d.ts +6 -1
- package/dist/preflight/checker.d.ts.map +1 -1
- package/dist/preflight/dependency-gate.d.ts +37 -0
- package/dist/preflight/dependency-gate.d.ts.map +1 -0
- package/dist/preflight/index.d.ts +2 -1
- package/dist/preflight/index.d.ts.map +1 -1
- package/dist/preflight/types.d.ts +18 -0
- package/dist/preflight/types.d.ts.map +1 -1
- package/dist/runner/script-runner.d.ts.map +1 -1
- package/dist/tables/table-manager.d.ts +3 -0
- package/dist/tables/table-manager.d.ts.map +1 -1
- package/dist/templates/README.md +23 -13
- package/dist/templates/blank/agent.config.ts +3 -3
- package/dist/templates/blank/src/triggers/index.ts +1 -1
- package/dist/templates/botpress-desk/evals/index.eval.ts +1 -1
- package/dist/templates/botpress-desk/src/triggers/index.ts +1 -1
- package/dist/templates/crm-enrichment/README.md +3 -3
- package/dist/templates/crm-enrichment/agent.config.ts +2 -2
- package/dist/templates/crm-enrichment/src/conversations/index.ts +1 -1
- package/dist/templates/hello-world/agent.config.ts +3 -3
- package/dist/templates/hello-world/src/triggers/index.ts +1 -1
- package/dist/templates/knowledge-assistant/src/triggers/index.ts +1 -1
- package/dist/templates/template.config.json +3 -3
- package/dist/utils/ids.d.ts +10 -0
- package/dist/utils/ids.d.ts.map +1 -1
- package/dist/workspace/workspace-cache.d.ts +2 -1
- package/dist/workspace/workspace-cache.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/agent-project/lock-to-dependencies.d.ts +0 -11
- package/dist/agent-project/lock-to-dependencies.d.ts.map +0 -1
- package/dist/dependencies/lock-file.d.ts +0 -15
- package/dist/dependencies/lock-file.d.ts.map +0 -1
- package/dist/integrations/enhanced-cache.d.ts +0 -53
- package/dist/integrations/enhanced-cache.d.ts.map +0 -1
- package/dist/plugins/enhanced-cache.d.ts +0 -53
- package/dist/plugins/enhanced-cache.d.ts.map +0 -1
- package/dist/templates/blank/package.json +0 -17
- package/dist/templates/blank/tsconfig.json +0 -25
- package/dist/templates/botpress-desk/package.json +0 -17
- package/dist/templates/crm-enrichment/package.json +0 -18
- package/dist/templates/crm-enrichment/tsconfig.json +0 -25
- package/dist/templates/hello-world/package.json +0 -18
- package/dist/templates/hello-world/tsconfig.json +0 -25
- package/dist/templates/knowledge-assistant/package.json +0 -18
- package/dist/templates/knowledge-assistant/tsconfig.json +0 -25
- package/dist/templates/slack-triage/package.json +0 -18
- package/dist/templates/slack-triage/tsconfig.json +0 -25
|
@@ -31,18 +31,22 @@ export declare class AgentProjectGenerator {
|
|
|
31
31
|
integrations: string[];
|
|
32
32
|
plugins: string[];
|
|
33
33
|
};
|
|
34
|
+
private getTemplateConfig;
|
|
34
35
|
/**
|
|
35
36
|
* Optional external templates provider. When set (e.g., by the CLI from embedded assets),
|
|
36
37
|
* this is used as the templates root instead of filesystem resolution.
|
|
37
38
|
*/
|
|
38
39
|
private static _templatesRootOverride;
|
|
39
40
|
static setTemplatesRoot(dir: string): void;
|
|
41
|
+
static resetTemplatesRoot(): void;
|
|
40
42
|
private static getTemplatesRoot;
|
|
41
43
|
private resolveTemplateDir;
|
|
42
44
|
private copyTemplateFiles;
|
|
43
45
|
private copyDirRecursive;
|
|
44
46
|
private ensureEmptyDirectory;
|
|
45
|
-
private
|
|
47
|
+
private createPackageJson;
|
|
48
|
+
private createTsConfig;
|
|
49
|
+
private createGitignore;
|
|
46
50
|
private createAIAssistantInstructions;
|
|
47
51
|
private writeFile;
|
|
48
52
|
private writeJsonFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-project-generator.d.ts","sourceRoot":"","sources":["../../src/agent-init/agent-project-generator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-project-generator.d.ts","sourceRoot":"","sources":["../../src/agent-init/agent-project-generator.ts"],"names":[],"mappings":"AA2EA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,UAAU,GAAG,cAAc,GAAG,UAAU,CAAA;IACpD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE;QAAE,YAAY,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;CAC5D;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,cAAc,EAAE,CAAA;CAC5B;AAED,qBAAa,qBAAqB;IAChC,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,QAAQ,CAAQ;gBAEZ,WAAW,EAAE,MAAM,EAAE,cAAc,GAAE,MAAc,EAAE,QAAQ,GAAE,MAAgB;IAOrF,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAsB/B;;OAEG;IACH,MAAM,CAAC,qBAAqB,IAAI,cAAc,EAAE;IAmBhD;;OAEG;IACH,eAAe,IAAI;QAAE,YAAY,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE;IAIhE,OAAO,CAAC,iBAAiB;IAKzB;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAsB;IAE3D,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI1C,MAAM,CAAC,kBAAkB,IAAI,IAAI;IAIjC,OAAO,CAAC,MAAM,CAAC,gBAAgB;IA2C/B,OAAO,CAAC,kBAAkB;YA+BZ,iBAAiB;YAUjB,gBAAgB;IA4C9B,OAAO,CAAC,oBAAoB;IAgB5B,OAAO,CAAC,iBAAiB;IAqBzB,OAAO,CAAC,cAAc;IA4BtB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,6BAA6B;IAMrC,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,aAAa;CAGtB"}
|
|
@@ -2,7 +2,7 @@ import { Primitives } from '@botpress/runtime/internal';
|
|
|
2
2
|
import { AssetsManager, AssetSyncOptions, AssetSyncPlan, AssetSyncResult } from '../assets/index.js';
|
|
3
3
|
import { ParsedIntegration } from '../integrations/types.js';
|
|
4
4
|
import { ParsedInterface } from '../interfaces/types.js';
|
|
5
|
-
import { AgentConfig, AgentInfo, AgentLocalInfo, Dependencies, Integration, ProjectInfo, ProjectState, ValidationResult, ToolReference } from './types.js';
|
|
5
|
+
import { AgentConfig, AgentInfo, AgentLink, AgentLocalInfo, Dependencies, Integration, ProjectInfo, ProjectState, ValidationResult, ToolReference } from './types.js';
|
|
6
6
|
export interface AgentProjectOptions {
|
|
7
7
|
noCache?: boolean;
|
|
8
8
|
adkCommand?: 'adk-dev' | 'adk-build' | 'adk-deploy';
|
|
@@ -77,8 +77,8 @@ export declare class AgentProject {
|
|
|
77
77
|
syncAssets(options?: AssetSyncOptions): Promise<AssetSyncResult>;
|
|
78
78
|
hasAssetsDirectory(): Promise<boolean>;
|
|
79
79
|
get assetsManager(): AssetsManager;
|
|
80
|
-
createAgentInfo(info:
|
|
81
|
-
updateAgentInfo(updates: Partial<
|
|
80
|
+
createAgentInfo(info: AgentLink): Promise<void>;
|
|
81
|
+
updateAgentInfo(updates: Partial<AgentLink>): Promise<void>;
|
|
82
82
|
createAgentLocalInfo(info: AgentLocalInfo): Promise<void>;
|
|
83
83
|
updateAgentLocalInfo(updates: Partial<AgentLocalInfo>): Promise<void>;
|
|
84
84
|
requiresAgentInfo(operation: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-project.d.ts","sourceRoot":"","sources":["../../src/agent-project/agent-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,UAAU,EAAiB,MAAM,4BAA4B,CAAA;AAShH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAOxD,OAAO,EACL,WAAW,EACX,SAAS,EAET,cAAc,EACd,YAAY,
|
|
1
|
+
{"version":3,"file":"agent-project.d.ts","sourceRoot":"","sources":["../../src/agent-project/agent-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,UAAU,EAAiB,MAAM,4BAA4B,CAAA;AAShH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAOxD,OAAO,EACL,WAAW,EACX,SAAS,EACT,S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AAC,GAAG,OAAO,CAAC,IAAI,CAAC;IA4D3E,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;YAc5B,UAAU;YAuJV,aAAa;YAkBb,oBAAoB;YAapB,kBAAkB;YAclB,2BAA2B;IAkCzC;;;;OAIG;IACH;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAuBxB,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,0BAA0B;IAOlC,OAAO,CAAC,eAAe;YAUT,mBAAmB;CA0VlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-resolver.d.ts","sourceRoot":"","sources":["../../src/agent-project/agent-resolver.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA8D,MAAM,YAAY,CAAA;AAIvG,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAiDD;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"agent-resolver.d.ts","sourceRoot":"","sources":["../../src/agent-project/agent-resolver.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA8D,MAAM,YAAY,CAAA;AAIvG,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAiDD;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAqFlH;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAQtE"}
|
|
@@ -104,7 +104,7 @@ export declare class ConfigWriter {
|
|
|
104
104
|
updateConfiguration(updates: ConfigSchemaFieldUpdate[]): Promise<void>;
|
|
105
105
|
/**
|
|
106
106
|
* Removes the top-level `dependencies` field from agent.config.ts.
|
|
107
|
-
* Used during migration to move dependencies to
|
|
107
|
+
* Used during migration to move dependencies to Cloud-backed .adk snapshots.
|
|
108
108
|
*/
|
|
109
109
|
removeDependenciesField(): Promise<void>;
|
|
110
110
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DependencyStateData } from '@botpress/adk/dependencies';
|
|
2
|
+
import type { Dependencies } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Convert per-env dependency snapshot data into the `Dependencies` shape
|
|
5
|
+
* consumed by IntegrationManager / InterfaceManager / PluginManager.
|
|
6
|
+
*
|
|
7
|
+
* The persisted snapshot is keyed by alias with `{ name, version, enabled, config }`.
|
|
8
|
+
* The legacy `Dependencies` shape is keyed by alias with `{ version: "name@version", enabled, config }`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function dependencyStateToDependencies(state: DependencyStateData): Dependencies;
|
|
11
|
+
//# sourceMappingURL=dependency-state-to-dependencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependency-state-to-dependencies.d.ts","sourceRoot":"","sources":["../../src/agent-project/dependency-state-to-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,mBAAmB,GAAG,YAAY,CAwBtF"}
|
|
@@ -32,6 +32,7 @@ export declare const dependenciesSchema: z.ZodObject<{
|
|
|
32
32
|
integrationAlias: string;
|
|
33
33
|
integrationInterfaceAlias?: string | undefined;
|
|
34
34
|
}>>>;
|
|
35
|
+
missingFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
35
36
|
}, "strip", {
|
|
36
37
|
version: string;
|
|
37
38
|
config?: Record<string, any> | undefined;
|
|
@@ -39,6 +40,7 @@ export declare const dependenciesSchema: z.ZodObject<{
|
|
|
39
40
|
integrationAlias: string;
|
|
40
41
|
integrationInterfaceAlias?: string | undefined;
|
|
41
42
|
}> | undefined;
|
|
43
|
+
missingFields?: string[] | undefined;
|
|
42
44
|
}, {
|
|
43
45
|
version: string;
|
|
44
46
|
config?: Record<string, any> | undefined;
|
|
@@ -46,6 +48,7 @@ export declare const dependenciesSchema: z.ZodObject<{
|
|
|
46
48
|
integrationAlias: string;
|
|
47
49
|
integrationInterfaceAlias?: string | undefined;
|
|
48
50
|
}> | undefined;
|
|
51
|
+
missingFields?: string[] | undefined;
|
|
49
52
|
}>>>;
|
|
50
53
|
}, "strip", {
|
|
51
54
|
integrations?: Record<string, string | {
|
|
@@ -61,6 +64,7 @@ export declare const dependenciesSchema: z.ZodObject<{
|
|
|
61
64
|
integrationAlias: string;
|
|
62
65
|
integrationInterfaceAlias?: string | undefined;
|
|
63
66
|
}> | undefined;
|
|
67
|
+
missingFields?: string[] | undefined;
|
|
64
68
|
}> | undefined;
|
|
65
69
|
}, {
|
|
66
70
|
integrations?: Record<string, string | {
|
|
@@ -76,6 +80,7 @@ export declare const dependenciesSchema: z.ZodObject<{
|
|
|
76
80
|
integrationAlias: string;
|
|
77
81
|
integrationInterfaceAlias?: string | undefined;
|
|
78
82
|
}> | undefined;
|
|
83
|
+
missingFields?: string[] | undefined;
|
|
79
84
|
}> | undefined;
|
|
80
85
|
}>;
|
|
81
86
|
export type Dependencies = z.infer<typeof dependenciesSchema>;
|
|
@@ -83,19 +88,19 @@ export declare const agentInfoSchema: z.ZodObject<{
|
|
|
83
88
|
botId: z.ZodString;
|
|
84
89
|
workspaceId: z.ZodString;
|
|
85
90
|
apiUrl: z.ZodOptional<z.ZodString>;
|
|
86
|
-
devId: z.ZodOptional<z.ZodString>;
|
|
87
91
|
}, "strip", {
|
|
88
92
|
botId: string;
|
|
89
93
|
workspaceId: string;
|
|
90
94
|
apiUrl?: string | undefined;
|
|
91
|
-
devId?: string | undefined;
|
|
92
95
|
}, {
|
|
93
96
|
botId: string;
|
|
94
97
|
workspaceId: string;
|
|
95
98
|
apiUrl?: string | undefined;
|
|
96
|
-
devId?: string | undefined;
|
|
97
99
|
}>;
|
|
98
|
-
export type
|
|
100
|
+
export type AgentLink = z.infer<typeof agentInfoSchema>;
|
|
101
|
+
export type AgentInfo = AgentLink & {
|
|
102
|
+
devId?: string;
|
|
103
|
+
};
|
|
99
104
|
export declare const agentLocalInfoSchema: z.ZodObject<{
|
|
100
105
|
botId: z.ZodOptional<z.ZodString>;
|
|
101
106
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/agent-project/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;AASzD,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/agent-project/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,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AmB,GAAG,gBAAgB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: adk-build
|
|
3
3
|
description: Interview the user about a new ADK primitive or feature, then build it
|
|
4
|
-
argument-hint:
|
|
4
|
+
argument-hint: '[primitive] <description>'
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
Load the `adk` skill, then build the requested target immediately.
|
|
@@ -18,11 +18,11 @@ If `$ARGUMENTS` is empty or only a primitive type with no description, ask what
|
|
|
18
18
|
1. **Read context first.** Read `agent.config.ts` for available integrations and models. Glob `src/` and skim 1–2 existing primitives in each directory you expect to touch, to match the project's naming, file structure, and import style.
|
|
19
19
|
|
|
20
20
|
**Conversation handlers — read every existing one.** Glob `src/conversations/*.ts` and read each file's `channel:` field, not just one or two of them. Build a map of `<file> → <channels>`. From that map:
|
|
21
|
-
|
|
22
|
-
- **Default rule: extend, do not add.** If any existing handler routes through a channel set that overlaps with what the new behavior needs (and `*` overlaps with everything; identical arrays overlap; arrays sharing any one channel overlap), the new behavior must be added to that existing handler — new turn, new tool wiring, new state field, whatever — *not* a new file. Two conversation handlers with overlapping channels both fire on the same message and produce ambiguous routing; this is the failure mode the user has hit before.
|
|
21
|
+
- **Default rule: extend, do not add.** If any existing handler routes through a channel set that overlaps with what the new behavior needs (and `*` overlaps with everything; identical arrays overlap; arrays sharing any one channel overlap), the new behavior must be added to that existing handler — new turn, new tool wiring, new state field, whatever — _not_ a new file. Two conversation handlers with overlapping channels both fire on the same message and produce ambiguous routing; this is the failure mode the user has hit before.
|
|
23
22
|
- **Only create a new file when channels are disjoint.** A new conversation file is justifiable when its channel set has zero overlap with every existing handler — e.g., a Slack-only handler when all existing handlers are `webchat.channel` only. State the disjointness explicitly in the plan (step 4).
|
|
24
23
|
- **Or when the user asked for one.** If the user explicitly requested a separate handler ("a dedicated triage conversation distinct from the main chat"), honor that — but still call out the channel overlap in the plan so they can confirm.
|
|
25
|
-
|
|
24
|
+
|
|
25
|
+
2. **Interview only about _what_, never _how_.** Ask only outcome and behavior questions — what should this do, when should it happen from the user's perspective, what does success look like. Do not ask about schemas, return types, durability, retry policy, channel routing, storage shape, or _which primitives to use_ — infer those from the description, existing primitives, and sensible defaults.
|
|
26
26
|
|
|
27
27
|
Examples of acceptable questions:
|
|
28
28
|
- "What should this do, in plain language?"
|
|
@@ -32,7 +32,8 @@ If `$ARGUMENTS` is empty or only a primitive type with no description, ask what
|
|
|
32
32
|
- For a feature: "Is X part of this, or a separate thing?" — only when scope is genuinely ambiguous.
|
|
33
33
|
|
|
34
34
|
Ask 1–3 questions max, only when the description leaves a genuine outcome-level gap. If the description already conveys intent, skip the interview entirely.
|
|
35
|
-
|
|
35
|
+
|
|
36
|
+
3. **Decompose (feature mode only).** From the outcome, identify the primitives needed and the directories they belong in (`src/workflows/`, `src/actions/`, `src/tables/`, etc.). State the decomposition explicitly in the plan — _"This needs a `checkout` workflow, a `process-payment` action, and an `orders` table because …"_.
|
|
36
37
|
4. **Propose a plan.** List every file to create or modify (full path), the exports, and any dependencies (integrations to add, models needed, `agent.config.ts` edits). For features, also describe how the primitives wire together. **If the plan involves a new conversation file**, include a one-line "channel-overlap check" justifying the new file (channels disjoint from every existing handler, or explicit user request) — if you can't justify it, fold the change into an existing handler instead. Wait for approval if the plan is non-trivial or touches `agent.config.ts`.
|
|
37
38
|
5. **Build it.** Write the files under the right `src/<dir>/` paths. Use `@botpress/runtime` imports. Match the conventions you read in step 1. For a feature, build the primitives in dependency order (table → action → workflow → conversation), so each file's imports resolve as it's written. For conversation behavior, edit the existing handler identified in step 1 — do not spawn a new one unless step 4's channel-overlap check explicitly justified it.
|
|
38
39
|
6. **Validate — always.** Run `adk check --format json` after every build, no exceptions. If it reports errors or warnings, fix them in this same turn and re-run. Do not report the task done until the check passes.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: adk-dev-console
|
|
3
3
|
description: Explain ADK Dev Console features, tabs, and UI concepts
|
|
4
|
-
argument-hint:
|
|
4
|
+
argument-hint: '[UI concept, tab name, or question]'
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
Load the `adk-dev-console` skill, then answer the user's question about **$ARGUMENTS** immediately.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: adk-document
|
|
3
3
|
description: Create, review, update, sync, or search project documentation for an ADK bot
|
|
4
|
-
argument-hint:
|
|
4
|
+
argument-hint: '[action] [topic or doc-path]'
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
Load the `adk-docs` skill for documentation standards and the `adk` skill for ADK context, then help with documentation immediately.
|
|
@@ -11,9 +11,10 @@ Parse `$ARGUMENTS` to determine the action. The first word is usually the action
|
|
|
11
11
|
## Route by Action
|
|
12
12
|
|
|
13
13
|
### create [topic]
|
|
14
|
+
|
|
14
15
|
E.g., `/adk-document create workflows`, `/adk-document create the checkout flow`
|
|
15
16
|
|
|
16
|
-
If the topic is a broad term ("workflows", "tools", "actions"), read `src/<relevant-dir>/` to enumerate the user's actual primitives first. Document
|
|
17
|
+
If the topic is a broad term ("workflows", "tools", "actions"), read `src/<relevant-dir>/` to enumerate the user's actual primitives first. Document _their specific implementations_ — not generic concepts.
|
|
17
18
|
|
|
18
19
|
1. **Research**: Find the user's ADK project (`agent.config.ts`), read relevant source files in `src/`, check existing docs in `./docs/` or `./guides/`.
|
|
19
20
|
2. **Choose type**: Reference (400-500 lines), Conceptual (500-700), Comprehensive (600-800) — see doc-standards reference.
|
|
@@ -21,9 +22,11 @@ If the topic is a broad term ("workflows", "tools", "actions"), read `src/<relev
|
|
|
21
22
|
4. **Save**: Ask where if unclear (common: `./docs/`, `./guides/`). Verify headers are searchable.
|
|
22
23
|
|
|
23
24
|
### review [doc-path]
|
|
25
|
+
|
|
24
26
|
E.g., `/adk-document review docs/workflows.md`
|
|
25
27
|
|
|
26
28
|
Review the doc for technical accuracy, searchability, and completeness:
|
|
29
|
+
|
|
27
30
|
- **Code accuracy**: correct imports (`@botpress/runtime`), examples from actual code with file paths, no speculation
|
|
28
31
|
- **Searchability**: clear section headers, TOC present, keyword-rich section names
|
|
29
32
|
- **ADK-specific**: distinguishes ADK vs SDK primitives, messages vs events, channel-specific vs agnostic
|
|
@@ -32,6 +35,7 @@ Review the doc for technical accuracy, searchability, and completeness:
|
|
|
32
35
|
Report: Critical Issues → Searchability Issues → Speculative Content → Missing Verification → Recommendations.
|
|
33
36
|
|
|
34
37
|
### update [doc-path] [what-changed]
|
|
38
|
+
|
|
35
39
|
E.g., `/adk-document update docs/workflows.md added new step type`
|
|
36
40
|
|
|
37
41
|
1. Read the existing doc.
|
|
@@ -41,9 +45,11 @@ E.g., `/adk-document update docs/workflows.md added new step type`
|
|
|
41
45
|
5. Mark deprecations clearly. Update file path references.
|
|
42
46
|
|
|
43
47
|
### sync [optional-doc-path]
|
|
48
|
+
|
|
44
49
|
E.g., `/adk-document sync`, `/adk-document sync docs/actions.md`
|
|
45
50
|
|
|
46
51
|
Check if docs are current with the code:
|
|
52
|
+
|
|
47
53
|
1. Find API changes: new exports, deprecated features, changed signatures.
|
|
48
54
|
2. Cross-reference: what's documented vs. what exists in `src/`.
|
|
49
55
|
3. Verify: do documented code examples still match actual code?
|
|
@@ -52,6 +58,7 @@ Report: Undocumented Features → Deprecated Content → Broken Examples → Mis
|
|
|
52
58
|
If gaps found, offer to fix them.
|
|
53
59
|
|
|
54
60
|
### search [term]
|
|
61
|
+
|
|
55
62
|
E.g., `/adk-document search workflows`, `/adk-document search sendMessage`
|
|
56
63
|
|
|
57
64
|
1. Find project docs: `Glob({ pattern: "./{docs,guides}/**/*.md" })`
|
|
@@ -62,6 +69,7 @@ E.g., `/adk-document search workflows`, `/adk-document search sendMessage`
|
|
|
62
69
|
## If No Action Specified
|
|
63
70
|
|
|
64
71
|
If `$ARGUMENTS` doesn't start with create/review/update/sync/search, infer the intent:
|
|
72
|
+
|
|
65
73
|
- Looks like a file path (contains `/` or `.md`) → **review** that file
|
|
66
74
|
- Looks like a search term → **search** for it
|
|
67
75
|
- Looks like a topic to document → **create** docs for it
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: adk-explain
|
|
3
3
|
description: Explain an ADK bot's architecture, flow, and components
|
|
4
|
-
argument-hint:
|
|
4
|
+
argument-hint: '[component or question about the bot]'
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
Load the `adk` skill, then answer the user's question about **$ARGUMENTS** immediately.
|
|
@@ -10,7 +10,7 @@ Resolve shorthand first: "kbs" = knowledge bases, "convos" = conversations, "wf"
|
|
|
10
10
|
|
|
11
11
|
If the user named a specific ADK concept or primitive, look it up in the `adk` skill's references and explain it. Match depth to the question — a one-word topic like "kbs" is a conceptual question: give a one-sentence explanation and a short code example from the references, then stop.
|
|
12
12
|
|
|
13
|
-
If the user is in an ADK project (check for `agent.config.ts`), also check whether their project uses the component they asked about. If it does, read the relevant source files in `src/` and explain
|
|
13
|
+
If the user is in an ADK project (check for `agent.config.ts`), also check whether their project uses the component they asked about. If it does, read the relevant source files in `src/` and explain _their specific setup_ — not just the generic concept.
|
|
14
14
|
|
|
15
15
|
If the user asks a broad question ("explain my bot", "what does this do?", or no arguments):
|
|
16
16
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: adk-init
|
|
3
3
|
description: Scaffold a new Botpress ADK project
|
|
4
|
-
argument-hint:
|
|
4
|
+
argument-hint: '[project-name]'
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
Help the user initialize a new Botpress ADK project.
|
|
@@ -18,7 +18,7 @@ First, load the `adk` skill for full ADK knowledge.
|
|
|
18
18
|
|
|
19
19
|
Don't just explain the project structure — ask what they want to build and guide next steps:
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
_"Your project is ready. What are you building?"_
|
|
22
22
|
|
|
23
23
|
- **Support agent** → suggest adding a conversation handler, ticket table, and relevant integrations (Slack, Linear, etc.)
|
|
24
24
|
- **Knowledge-base Q&A** → suggest creating a knowledge base in `src/knowledge/` and a search tool
|
|
@@ -18,7 +18,7 @@ This is a deploy-to-production command — treat it as destructive-by-default. C
|
|
|
18
18
|
|
|
19
19
|
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
20
|
|
|
21
|
-
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:
|
|
21
|
+
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
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
24
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: adk-test
|
|
3
3
|
description: Invoke an ADK primitive end-to-end with realistic input to confirm it works
|
|
4
|
-
argument-hint:
|
|
4
|
+
argument-hint: '[primitive name] [input]'
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
Load the `adk` skill, then run the named primitive immediately.
|
|
8
8
|
|
|
9
|
-
This is exploratory, one-shot testing —
|
|
9
|
+
This is exploratory, one-shot testing — _does it work right now?_. It is distinct from `/adk-eval`, which writes persistent assertion-based eval files. If the user wants assertions or coverage, route them there.
|
|
10
10
|
|
|
11
11
|
If `$ARGUMENTS` is empty, list the user's primitives and ask which to test.
|
|
12
12
|
|
|
@@ -21,7 +21,7 @@ If `$ARGUMENTS` is empty, list the user's primitives and ask which to test.
|
|
|
21
21
|
- **Table:** insert a sample row, run a representative query, then **delete the row** before reporting. Tag the test row with a recognizable marker (e.g., a `__test_<timestamp>` value in a string column) so the cleanup query is unambiguous. If the project is linked to a shared or production workspace, ask the user before inserting at all — offer to scope the test to a local dev table instead.
|
|
22
22
|
- **Knowledge base:** run a search query against it.
|
|
23
23
|
3. **Run it and read traces.** Capture the response. Run `adk traces --format json` filtered to the most recent invocation if the response alone is not enough to judge correctness.
|
|
24
|
-
4. **Report.** Show the input used, the output, latency, and any errors or surprising behavior. Be explicit if the trace shows the primitive was
|
|
24
|
+
4. **Report.** Show the input used, the output, latency, and any errors or surprising behavior. Be explicit if the trace shows the primitive was _not_ exercised (e.g., the LLM ignored the tool).
|
|
25
25
|
5. **Suggest follow-ups.** If the test surfaced something worth pinning down, offer `/adk-eval <name>` to capture it as a regression eval. If it failed, offer `/adk-debug` with the relevant context.
|
|
26
26
|
|
|
27
27
|
Clean up any disposable runner scripts under `.adk/scratch/test-*.ts` after the test unless the user asks to keep them.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: adk-validate
|
|
3
3
|
description: Validate an ADK primitive or a feature (a set of related primitives)
|
|
4
|
-
argument-hint:
|
|
4
|
+
argument-hint: '[primitive or feature name]'
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
Load the `adk` skill, then validate the named target immediately.
|
|
@@ -16,7 +16,7 @@ This is the proactive counterpart to `/adk-debug`: nothing is necessarily broken
|
|
|
16
16
|
2. **Resolve the target — primitive or feature.** Try in this order:
|
|
17
17
|
- **Exact primitive match.** Glob `src/**/<name>.ts`. If exactly one file matches, that's the target.
|
|
18
18
|
- **Multiple primitive matches.** List them with their types (action / tool / workflow / etc.) and ask which one — or whether the user wants to validate the whole set as a feature.
|
|
19
|
-
- **No exact match — treat as a feature.** Search the codebase for the term: file names, exported symbols, string literals, and comments under `src/`. Present the candidate set ("Found these files that look like the
|
|
19
|
+
- **No exact match — treat as a feature.** Search the codebase for the term: file names, exported symbols, string literals, and comments under `src/`. Present the candidate set ("Found these files that look like the _<name>_ feature: …") and confirm with the user before proceeding. If nothing plausible turns up, suggest the closest exact filename hits and stop.
|
|
20
20
|
3. **Read each file in the target set.** Identify the type of each from its directory.
|
|
21
21
|
4. **Filter the baseline output.** From the type-check and `adk check` output captured in step 1, pull out diagnostics that mention any name or file path in the target set.
|
|
22
22
|
5. **Static checks** (read the sources and verify):
|
|
@@ -28,4 +28,4 @@ This is the proactive counterpart to `/adk-debug`: nothing is necessarily broken
|
|
|
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.
|
|
30
30
|
- No hardcoded secrets, tokens, or API keys.
|
|
31
|
-
6. **Report.** Group findings as ❌ Errors → ⚠️ Warnings → ✅ Passed, with each finding tagged by file. For a feature target, also include a short "wiring" subsection that summarizes how the primitives connect. End with one line:
|
|
31
|
+
6. **Report.** Group findings as ❌ Errors → ⚠️ Warnings → ✅ Passed, with each finding tagged by file. For a feature target, also include a short "wiring" subsection that summarizes how the primitives connect. End with one line: _"Run `/adk-test <name>` to actually invoke it."_ Do not apply fixes from this command — let the user decide which to take.
|
|
@@ -56,7 +56,7 @@ Most primitives must be placed in `src/` directory (assets use the `assets/` dir
|
|
|
56
56
|
The first time you help with an ADK project in a session, silently check the project's health:
|
|
57
57
|
|
|
58
58
|
1. Run `adk check --format json` and `adk status --format json`.
|
|
59
|
-
2. If there are errors or warnings (unconfigured integrations, missing models, validation issues), proactively mention them before answering the user's question:
|
|
59
|
+
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
60
|
3. Only do this once per session. Don't re-run on every question.
|
|
61
61
|
|
|
62
62
|
## Available Commands
|
|
@@ -69,7 +69,7 @@ If the user asks "what can you help with?", "what commands are available?", or i
|
|
|
69
69
|
- **Document**: `/adk-document` (create, review, update, sync, search)
|
|
70
70
|
- **Understand**: `/adk-explain` (explain bot architecture and components), `/adk-dev-console` (navigate the Dev Console)
|
|
71
71
|
|
|
72
|
-
Then ask:
|
|
72
|
+
Then ask: _"What are you working on?"_
|
|
73
73
|
|
|
74
74
|
## When to Use This Skill
|
|
75
75
|
|
|
@@ -319,46 +319,46 @@ import {
|
|
|
319
319
|
conversation,
|
|
320
320
|
configuration,
|
|
321
321
|
context,
|
|
322
|
-
} from
|
|
322
|
+
} from '@botpress/runtime'
|
|
323
323
|
```
|
|
324
324
|
|
|
325
325
|
### State Management
|
|
326
326
|
|
|
327
327
|
```typescript
|
|
328
328
|
// Bot state (defined in agent.config.ts)
|
|
329
|
-
bot.state.maintenanceMode = true
|
|
330
|
-
bot.state.lastDeployedAt = new Date().toISOString()
|
|
329
|
+
bot.state.maintenanceMode = true
|
|
330
|
+
bot.state.lastDeployedAt = new Date().toISOString()
|
|
331
331
|
|
|
332
332
|
// User state (defined in agent.config.ts)
|
|
333
|
-
user.state.preferredLanguage =
|
|
334
|
-
user.state.onboardingComplete = true
|
|
333
|
+
user.state.preferredLanguage = 'en'
|
|
334
|
+
user.state.onboardingComplete = true
|
|
335
335
|
|
|
336
336
|
// User tags
|
|
337
|
-
user.tags.email
|
|
337
|
+
user.tags.email // Access user metadata
|
|
338
338
|
```
|
|
339
339
|
|
|
340
340
|
### Calling Actions
|
|
341
341
|
|
|
342
342
|
```typescript
|
|
343
343
|
// Call bot actions
|
|
344
|
-
await actions.fetchUser({ userId:
|
|
345
|
-
await actions.processOrder({ orderId:
|
|
344
|
+
await actions.fetchUser({ userId: '123' })
|
|
345
|
+
await actions.processOrder({ orderId: '456' })
|
|
346
346
|
|
|
347
347
|
// Call integration actions
|
|
348
|
-
await actions.slack.sendMessage({ channel:
|
|
349
|
-
await actions.linear.issueList({ teamId:
|
|
348
|
+
await actions.slack.sendMessage({ channel: '...', text: '...' })
|
|
349
|
+
await actions.linear.issueList({ teamId: '...' })
|
|
350
350
|
|
|
351
351
|
// Convert action to tool
|
|
352
|
-
tools: [fetchUser.asTool()]
|
|
352
|
+
tools: [fetchUser.asTool()]
|
|
353
353
|
```
|
|
354
354
|
|
|
355
355
|
### Context API
|
|
356
356
|
|
|
357
357
|
```typescript
|
|
358
358
|
// Get runtime services
|
|
359
|
-
const client = context.get(
|
|
360
|
-
const cognitive = context.get(
|
|
361
|
-
const citations = context.get(
|
|
359
|
+
const client = context.get('client') // Botpress client
|
|
360
|
+
const cognitive = context.get('cognitive') // AI model client
|
|
361
|
+
const citations = context.get('citations') // Citation manager
|
|
362
362
|
```
|
|
363
363
|
|
|
364
364
|
### File Naming
|
|
@@ -391,11 +391,11 @@ pnpm install # Works fine
|
|
|
391
391
|
|
|
392
392
|
```typescript
|
|
393
393
|
// ✅ CORRECT - Always from @botpress/runtime
|
|
394
|
-
import { Action, Autonomous, Workflow, z } from
|
|
394
|
+
import { Action, Autonomous, Workflow, z } from '@botpress/runtime'
|
|
395
395
|
|
|
396
396
|
// ❌ WRONG - Never from zod or @botpress/sdk
|
|
397
|
-
import { z } from
|
|
398
|
-
import { Action } from
|
|
397
|
+
import { z } from 'zod' // ❌ Wrong
|
|
398
|
+
import { Action } from '@botpress/sdk' // ❌ Wrong
|
|
399
399
|
```
|
|
400
400
|
|
|
401
401
|
### Export Patterns
|
|
@@ -435,9 +435,9 @@ handler({ userId }) { // ❌ Wrong - must be { input }
|
|
|
435
435
|
export const myTool = new Autonomous.Tool({
|
|
436
436
|
handler: async ({ query, maxResults }) => {
|
|
437
437
|
// ✅ Direct destructuring OK
|
|
438
|
-
return search(query, maxResults)
|
|
438
|
+
return search(query, maxResults)
|
|
439
439
|
},
|
|
440
|
-
})
|
|
440
|
+
})
|
|
441
441
|
```
|
|
442
442
|
|
|
443
443
|
### Conversations
|