@botpress/adk 1.18.3 → 1.19.0-beta.11
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 +10 -7
- package/dist/agent-init/agent-project-generator.d.ts.map +1 -1
- package/dist/agent-project/agent-project.d.ts +1 -1
- package/dist/agent-project/agent-project.d.ts.map +1 -1
- package/dist/agent-project/component-files.d.ts +10 -0
- package/dist/agent-project/component-files.d.ts.map +1 -0
- package/dist/agent-project/component-index-writer.d.ts +22 -0
- package/dist/agent-project/component-index-writer.d.ts.map +1 -0
- package/dist/agent-project/config-writer.d.ts +5 -0
- package/dist/agent-project/config-writer.d.ts.map +1 -1
- package/dist/agent-project/dependencies-parser.d.ts.map +1 -1
- package/dist/agent-project/file-watcher.d.ts.map +1 -1
- package/dist/agent-project/index.d.ts +3 -0
- package/dist/agent-project/index.d.ts.map +1 -1
- package/dist/agent-project/lock-to-dependencies.d.ts +11 -0
- package/dist/agent-project/lock-to-dependencies.d.ts.map +1 -0
- package/dist/agent-project/types.d.ts +1 -0
- package/dist/agent-project/types.d.ts.map +1 -1
- package/dist/agent-project/validation-errors.d.ts +1 -0
- package/dist/agent-project/validation-errors.d.ts.map +1 -1
- package/dist/agent0/capabilities/commands/adk-build.md +39 -0
- package/dist/agent0/capabilities/commands/adk-debug.md +23 -0
- package/dist/agent0/capabilities/commands/adk-dev-console.md +17 -0
- package/dist/agent0/capabilities/commands/adk-document.md +68 -0
- package/dist/agent0/capabilities/commands/adk-eval.md +17 -0
- package/dist/agent0/capabilities/commands/adk-explain.md +22 -0
- package/dist/agent0/capabilities/commands/adk-init.md +30 -0
- package/dist/agent0/capabilities/commands/adk-ship.md +29 -0
- package/dist/agent0/capabilities/commands/adk-test.md +27 -0
- package/dist/agent0/capabilities/commands/adk-validate.md +31 -0
- package/dist/agent0/capabilities/skills/adk/SKILL.md +548 -0
- package/dist/agent0/capabilities/skills/adk/references/actions.md +823 -0
- package/dist/agent0/capabilities/skills/adk/references/advanced-patterns.md +669 -0
- package/dist/agent0/capabilities/skills/adk/references/agent-config.md +450 -0
- package/dist/agent0/capabilities/skills/adk/references/assets.md +237 -0
- package/dist/agent0/capabilities/skills/adk/references/autonomous-execution.md +747 -0
- package/dist/agent0/capabilities/skills/adk/references/cli.md +1334 -0
- package/dist/agent0/capabilities/skills/adk/references/context-api.md +461 -0
- package/dist/agent0/capabilities/skills/adk/references/conversation-lifecycle.md +311 -0
- package/dist/agent0/capabilities/skills/adk/references/conversations.md +1111 -0
- package/dist/agent0/capabilities/skills/adk/references/custom-components.md +167 -0
- package/dist/agent0/capabilities/skills/adk/references/desk.md +852 -0
- package/dist/agent0/capabilities/skills/adk/references/evals.md +11 -0
- package/dist/agent0/capabilities/skills/adk/references/explain-config.md +424 -0
- package/dist/agent0/capabilities/skills/adk/references/files.md +918 -0
- package/dist/agent0/capabilities/skills/adk/references/integration-actions.md +659 -0
- package/dist/agent0/capabilities/skills/adk/references/integrations.md +266 -0
- package/dist/agent0/capabilities/skills/adk/references/interfaces.md +97 -0
- package/dist/agent0/capabilities/skills/adk/references/knowledge-bases.md +456 -0
- package/dist/agent0/capabilities/skills/adk/references/mcp-server.md +112 -0
- package/dist/agent0/capabilities/skills/adk/references/messages.md +769 -0
- package/dist/agent0/capabilities/skills/adk/references/model-configuration.md +201 -0
- package/dist/agent0/capabilities/skills/adk/references/patterns-mistakes.md +469 -0
- package/dist/agent0/capabilities/skills/adk/references/plugins.md +280 -0
- package/dist/agent0/capabilities/skills/adk/references/tables.md +1136 -0
- package/dist/agent0/capabilities/skills/adk/references/tags.md +516 -0
- package/dist/agent0/capabilities/skills/adk/references/tools.md +581 -0
- package/dist/agent0/capabilities/skills/adk/references/triggers.md +719 -0
- package/dist/agent0/capabilities/skills/adk/references/workflow-steps.md +851 -0
- package/dist/agent0/capabilities/skills/adk/references/workflows.md +1408 -0
- package/dist/agent0/capabilities/skills/adk/references/zai-agent-reference.md +454 -0
- package/dist/agent0/capabilities/skills/adk/references/zai-complete-guide.md +1408 -0
- package/dist/agent0/capabilities/skills/adk-debugger/SKILL.md +257 -0
- package/dist/agent0/capabilities/skills/adk-debugger/references/common-failures.md +231 -0
- package/dist/agent0/capabilities/skills/adk-debugger/references/conversation-analysis.md +420 -0
- package/dist/agent0/capabilities/skills/adk-debugger/references/debug-workflow.md +239 -0
- package/dist/agent0/capabilities/skills/adk-debugger/references/llm-debugging.md +209 -0
- package/dist/agent0/capabilities/skills/adk-debugger/references/trace-summarization.md +313 -0
- package/dist/agent0/capabilities/skills/adk-debugger/references/traces-and-logs.md +203 -0
- package/dist/agent0/capabilities/skills/adk-dev-console/SKILL.md +111 -0
- package/dist/agent0/capabilities/skills/adk-dev-console/references/agent-steps.md +115 -0
- package/dist/agent0/capabilities/skills/adk-dev-console/references/component-registry.md +43 -0
- package/dist/agent0/capabilities/skills/adk-dev-console/references/multi-agent-dashboard.md +70 -0
- package/dist/agent0/capabilities/skills/adk-dev-console/references/pages.md +273 -0
- package/dist/agent0/capabilities/skills/adk-docs/SKILL.md +114 -0
- package/dist/agent0/capabilities/skills/adk-docs/references/doc-standards.md +124 -0
- package/dist/agent0/capabilities/skills/adk-evals/SKILL.md +244 -0
- package/dist/agent0/capabilities/skills/adk-evals/references/eval-format.md +354 -0
- package/dist/agent0/capabilities/skills/adk-evals/references/test-patterns.md +355 -0
- package/dist/agent0/capabilities/skills/adk-evals/references/testing-workflow.md +225 -0
- package/dist/agent0/config/index.d.ts +5 -0
- package/dist/agent0/config/index.d.ts.map +1 -0
- package/dist/agent0/config/paths.d.ts +12 -0
- package/dist/agent0/config/paths.d.ts.map +1 -0
- package/dist/agent0/config/schema.d.ts +171 -0
- package/dist/agent0/config/schema.d.ts.map +1 -0
- package/dist/agent0/config/secrets.d.ts +4 -0
- package/dist/agent0/config/secrets.d.ts.map +1 -0
- package/dist/agent0/config/store.d.ts +26 -0
- package/dist/agent0/config/store.d.ts.map +1 -0
- package/dist/agent0/index.d.ts +6 -0
- package/dist/agent0/index.d.ts.map +1 -0
- package/dist/agent0/index.js +3381 -0
- package/dist/agent0/index.js.map +29 -0
- package/dist/agent0/providers/catalog.d.ts +189 -0
- package/dist/agent0/providers/catalog.d.ts.map +1 -0
- package/dist/agent0/providers/index.d.ts +4 -0
- package/dist/agent0/providers/index.d.ts.map +1 -0
- package/dist/agent0/providers/registry.d.ts +32 -0
- package/dist/agent0/providers/registry.d.ts.map +1 -0
- package/dist/agent0/providers/source.d.ts +105 -0
- package/dist/agent0/providers/source.d.ts.map +1 -0
- package/dist/agent0/runtime/client.d.ts +49 -0
- package/dist/agent0/runtime/client.d.ts.map +1 -0
- package/dist/agent0/runtime/engine.d.ts +79 -0
- package/dist/agent0/runtime/engine.d.ts.map +1 -0
- package/dist/agent0/runtime/index.d.ts +7 -0
- package/dist/agent0/runtime/index.d.ts.map +1 -0
- package/dist/agent0/runtime/manager.d.ts +81 -0
- package/dist/agent0/runtime/manager.d.ts.map +1 -0
- package/dist/agent0/runtime/permissions.d.ts +6 -0
- package/dist/agent0/runtime/permissions.d.ts.map +1 -0
- package/dist/agent0/runtime/process.d.ts +52 -0
- package/dist/agent0/runtime/process.d.ts.map +1 -0
- package/dist/agent0/runtime/project-discovery.d.ts +5 -0
- package/dist/agent0/runtime/project-discovery.d.ts.map +1 -0
- package/dist/agent0/types.d.ts +447 -0
- package/dist/agent0/types.d.ts.map +1 -0
- package/dist/assets/manager.d.ts +0 -2
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/assets/types.d.ts +3 -1
- package/dist/assets/types.d.ts.map +1 -1
- package/dist/auth/credentials.d.ts.map +1 -1
- package/dist/auth/index.d.ts +30 -0
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/service.d.ts.map +1 -1
- package/dist/bot-generator/dev-id-manager.d.ts.map +1 -1
- package/dist/bot-generator/generator.d.ts +5 -1
- package/dist/bot-generator/generator.d.ts.map +1 -1
- package/dist/bot-generator/integration-sync.d.ts +2 -0
- package/dist/bot-generator/integration-sync.d.ts.map +1 -1
- package/dist/bot-generator/interface-sync.d.ts +2 -0
- package/dist/bot-generator/interface-sync.d.ts.map +1 -1
- package/dist/bot-generator/plugin-sync.d.ts +2 -0
- package/dist/bot-generator/plugin-sync.d.ts.map +1 -1
- package/dist/bot-generator/table-validation.d.ts +17 -0
- package/dist/bot-generator/table-validation.d.ts.map +1 -0
- package/dist/chat-bundle.cjs +31 -0
- package/dist/cognitive/models.d.ts +32 -0
- package/dist/cognitive/models.d.ts.map +1 -0
- package/dist/commands/base-command.d.ts +1 -0
- package/dist/commands/base-command.d.ts.map +1 -1
- package/dist/commands/bp-add-command.d.ts.map +1 -1
- package/dist/commands/bp-build-command.d.ts.map +1 -1
- package/dist/commands/bp-chat-command.d.ts.map +1 -1
- package/dist/commands/bp-cli.d.ts +1 -0
- package/dist/commands/bp-cli.d.ts.map +1 -1
- package/dist/commands/bp-cli.js +147 -0
- package/dist/commands/bp-cli.js.map +12 -0
- package/dist/commands/bp-deploy-command.d.ts.map +1 -1
- package/dist/commands/bp-dev-command.d.ts +7 -0
- package/dist/commands/bp-dev-command.d.ts.map +1 -1
- package/dist/commands/bp-dev-stderr.d.ts +21 -0
- package/dist/commands/bp-dev-stderr.d.ts.map +1 -0
- package/dist/commands/bp-dev-worker-env.d.ts +7 -0
- package/dist/commands/bp-dev-worker-env.d.ts.map +1 -0
- package/dist/commands/index.d.ts +0 -5
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/config/manager.d.ts +9 -1
- package/dist/config/manager.d.ts.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/dependencies/alias-utils.d.ts +13 -0
- package/dist/dependencies/alias-utils.d.ts.map +1 -0
- package/dist/dependencies/dependency-manager.d.ts +89 -0
- package/dist/dependencies/dependency-manager.d.ts.map +1 -0
- package/dist/dependencies/errors.d.ts +19 -0
- package/dist/dependencies/errors.d.ts.map +1 -0
- package/dist/dependencies/index.d.ts +17 -0
- package/dist/dependencies/index.d.ts.map +1 -0
- package/dist/dependencies/index.js +6233 -0
- package/dist/dependencies/index.js.map +61 -0
- package/dist/dependencies/json-utils.d.ts +3 -0
- package/dist/dependencies/json-utils.d.ts.map +1 -0
- package/dist/dependencies/lock-file.d.ts +15 -0
- package/dist/dependencies/lock-file.d.ts.map +1 -0
- package/dist/dependencies/migration.d.ts +8 -0
- package/dist/dependencies/migration.d.ts.map +1 -0
- package/dist/dependencies/registry/integration-registry.d.ts +17 -0
- package/dist/dependencies/registry/integration-registry.d.ts.map +1 -0
- package/dist/dependencies/registry/interface-registry.d.ts +11 -0
- package/dist/dependencies/registry/interface-registry.d.ts.map +1 -0
- package/dist/dependencies/registry/plugin-registry.d.ts +16 -0
- package/dist/dependencies/registry/plugin-registry.d.ts.map +1 -0
- package/dist/dependencies/resolvers/integration-resolver.d.ts +30 -0
- package/dist/dependencies/resolvers/integration-resolver.d.ts.map +1 -0
- package/dist/dependencies/resolvers/plugin-resolver.d.ts +38 -0
- package/dist/dependencies/resolvers/plugin-resolver.d.ts.map +1 -0
- package/dist/dependencies/types.d.ts +254 -0
- package/dist/dependencies/types.d.ts.map +1 -0
- package/dist/deploy-manifest/index.d.ts +608 -0
- package/dist/deploy-manifest/index.d.ts.map +1 -0
- 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/assets.d.ts +2 -2
- package/dist/generators/assets.d.ts.map +1 -1
- package/dist/generators/client-wrapper.d.ts.map +1 -1
- package/dist/generators/tests.d.ts +6 -6
- package/dist/generators/tests.d.ts.map +1 -1
- package/dist/generators/utils.d.ts.map +1 -1
- package/dist/index.d.ts +15 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17614 -5514
- package/dist/index.js.map +83 -66
- package/dist/integrations/config-utils.d.ts.map +1 -1
- package/dist/integrations/hub-cache.d.ts.map +1 -1
- package/dist/integrations/index.d.ts +0 -6
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/manager.d.ts +17 -1
- package/dist/integrations/manager.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +0 -2
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/manager.d.ts +3 -1
- package/dist/interfaces/manager.d.ts.map +1 -1
- package/dist/interfaces/parser.d.ts.map +1 -1
- package/dist/knowledge/manager.d.ts +3 -1
- package/dist/knowledge/manager.d.ts.map +1 -1
- package/dist/knowledge/types.d.ts +2 -2
- package/dist/knowledge/types.d.ts.map +1 -1
- package/dist/plugins/manager.d.ts +34 -1
- package/dist/plugins/manager.d.ts.map +1 -1
- package/dist/preflight/checker.d.ts +5 -6
- package/dist/preflight/checker.d.ts.map +1 -1
- package/dist/preflight/index.d.ts +2 -2
- package/dist/preflight/index.d.ts.map +1 -1
- package/dist/preflight/types.d.ts +30 -32
- package/dist/preflight/types.d.ts.map +1 -1
- package/dist/runner/script-runner.d.ts +2 -0
- package/dist/runner/script-runner.d.ts.map +1 -1
- package/dist/runner/supervise-child.d.ts +24 -0
- package/dist/runner/supervise-child.d.ts.map +1 -0
- package/dist/secrets/manager.d.ts.map +1 -1
- package/dist/tables/table-manager.d.ts.map +1 -1
- package/dist/tables/types.d.ts +3 -2
- package/dist/tables/types.d.ts.map +1 -1
- package/dist/templates/README.md +14 -13
- package/dist/templates/blank/agent.config.ts +0 -3
- package/dist/templates/blank/evals/index.eval.ts +30 -0
- package/dist/templates/blank/src/conversations/index.ts +16 -16
- package/dist/templates/blank/tsconfig.json +1 -1
- package/dist/templates/botpress-desk/README.md +87 -0
- package/dist/templates/botpress-desk/agent.config.ts +19 -0
- package/dist/templates/botpress-desk/evals/index.eval.ts +30 -0
- package/dist/templates/botpress-desk/package.json +17 -0
- package/dist/templates/botpress-desk/src/actions/index.ts +19 -0
- package/dist/templates/botpress-desk/src/conversations/index.ts +16 -0
- package/dist/templates/botpress-desk/src/knowledge/index.ts +20 -0
- package/dist/templates/botpress-desk/src/tables/index.ts +16 -0
- package/dist/templates/botpress-desk/src/tools/handToSupport.ts +23 -0
- package/dist/templates/botpress-desk/src/triggers/index.ts +17 -0
- package/dist/templates/botpress-desk/src/workflows/index.ts +21 -0
- package/dist/templates/crm-enrichment/agent.config.ts +0 -3
- package/dist/templates/crm-enrichment/evals/example.eval.ts +29 -0
- package/dist/templates/crm-enrichment/package.json +1 -0
- package/dist/templates/crm-enrichment/tsconfig.json +1 -1
- package/dist/templates/hello-world/agent.config.ts +0 -3
- package/dist/templates/hello-world/evals/context-retention.eval.ts +37 -0
- package/dist/templates/hello-world/evals/greeting.eval.ts +43 -0
- package/dist/templates/hello-world/package.json +1 -0
- package/dist/templates/hello-world/tsconfig.json +1 -1
- package/dist/templates/knowledge-assistant/agent.config.ts +0 -3
- package/dist/templates/knowledge-assistant/evals/engineering-practices.eval.ts +45 -0
- package/dist/templates/knowledge-assistant/evals/out-of-scope.eval.ts +33 -0
- package/dist/templates/knowledge-assistant/evals/pto-policy.eval.ts +44 -0
- package/dist/templates/knowledge-assistant/package.json +1 -0
- package/dist/templates/knowledge-assistant/tsconfig.json +1 -1
- package/dist/templates/slack-triage/agent.config.ts +0 -8
- package/dist/templates/slack-triage/evals/triage-basic.eval.ts +9 -39
- package/dist/templates/slack-triage/package.json +1 -0
- package/dist/templates/slack-triage/src/conversations/slack-dm.ts +4 -1
- package/dist/templates/slack-triage/tsconfig.json +1 -1
- package/dist/templates/template.config.json +16 -16
- package/dist/test-utils/mock-module.d.ts +29 -0
- package/dist/test-utils/mock-module.d.ts.map +1 -0
- package/dist/utils/require-chat.d.ts +3 -24
- package/dist/utils/require-chat.d.ts.map +1 -1
- package/dist/utils/search-ranking.d.ts +15 -0
- package/dist/utils/search-ranking.d.ts.map +1 -0
- package/dist/utils/source-map-optimizer.d.ts +10 -11
- package/dist/utils/source-map-optimizer.d.ts.map +1 -1
- package/dist/workspace/workspace-cache.d.ts.map +1 -1
- package/package.json +23 -11
- package/dist/commands/copilot-config-reader.d.ts +0 -12
- package/dist/commands/copilot-config-reader.d.ts.map +0 -1
- package/dist/commands/copilot-server.d.ts +0 -26
- package/dist/commands/copilot-server.d.ts.map +0 -1
- package/dist/commands/opencode-config.d.ts +0 -29
- package/dist/commands/opencode-config.d.ts.map +0 -1
- package/dist/integrations/checker.d.ts +0 -41
- package/dist/integrations/checker.d.ts.map +0 -1
- package/dist/integrations/operations.d.ts +0 -140
- package/dist/integrations/operations.d.ts.map +0 -1
- package/dist/integrations/sync-manager.d.ts +0 -19
- package/dist/integrations/sync-manager.d.ts.map +0 -1
- package/dist/interfaces/operations.d.ts +0 -48
- package/dist/interfaces/operations.d.ts.map +0 -1
- package/dist/preflight/formatter.d.ts +0 -12
- package/dist/preflight/formatter.d.ts.map +0 -1
|
@@ -24,12 +24,4 @@ export default defineConfig({
|
|
|
24
24
|
requestCount: z.number().default(0).describe('Number of requests from this user'),
|
|
25
25
|
}),
|
|
26
26
|
},
|
|
27
|
-
|
|
28
|
-
// Integrations extend your agent with actions, channels, and events.
|
|
29
|
-
// Browse available integrations: adk search <name> | adk list --available
|
|
30
|
-
// Install one: adk add <integration> (e.g. adk add browser)
|
|
31
|
-
// See actions/events/channels: adk info <integration>
|
|
32
|
-
dependencies: {
|
|
33
|
-
integrations: {},
|
|
34
|
-
},
|
|
35
27
|
})
|
|
@@ -1,54 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Eval: triage-basic
|
|
3
|
+
* A minimal smoke test — the bot acknowledges and classifies a bug report
|
|
4
|
+
* without erroring.
|
|
3
5
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* simulated conversation with assertions on the bot's responses and tool usage.
|
|
8
|
-
*
|
|
9
|
-
* Run evals with: adk eval
|
|
10
|
-
* Run a specific eval: adk eval --name triage-basic
|
|
6
|
+
* Run with:
|
|
7
|
+
* adk evals
|
|
8
|
+
* adk evals triage-basic
|
|
11
9
|
*/
|
|
12
|
-
import { Eval } from '@botpress/
|
|
10
|
+
import { Eval } from '@botpress/evals'
|
|
13
11
|
|
|
14
12
|
export default new Eval({
|
|
15
13
|
name: 'triage-basic',
|
|
16
|
-
description: '
|
|
17
|
-
tags: ['triage', 'classification'],
|
|
14
|
+
description: 'Bot acknowledges and classifies a bug report',
|
|
18
15
|
type: 'regression',
|
|
19
16
|
|
|
20
17
|
conversation: [
|
|
21
18
|
{
|
|
22
|
-
user: '
|
|
23
|
-
assert: {
|
|
24
|
-
response: [
|
|
25
|
-
{
|
|
26
|
-
llm_judge:
|
|
27
|
-
'Response acknowledges this is a bug or error report and indicates it will be triaged or routed to the appropriate team',
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
user: 'It would be great if we could export dashboard data to CSV',
|
|
34
|
-
assert: {
|
|
35
|
-
response: [
|
|
36
|
-
{
|
|
37
|
-
llm_judge:
|
|
38
|
-
'Response recognizes this as a feature request and indicates it will be forwarded to the product team or logged appropriately',
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
user: 'How do I reset my password?',
|
|
19
|
+
user: 'Production API is returning 502s for every request',
|
|
45
20
|
assert: {
|
|
46
|
-
response: [
|
|
47
|
-
{
|
|
48
|
-
llm_judge:
|
|
49
|
-
'Response treats this as a general question and either answers it directly or indicates it will be routed to support',
|
|
50
|
-
},
|
|
51
|
-
],
|
|
21
|
+
response: [{ not_contains: 'error' }],
|
|
52
22
|
},
|
|
53
23
|
},
|
|
54
24
|
],
|
|
@@ -26,7 +26,10 @@ const TriageComplete = new Autonomous.Exit({
|
|
|
26
26
|
* - Remove the exit to keep the conversation open for follow-ups
|
|
27
27
|
*/
|
|
28
28
|
export const SlackDM = new Conversation({
|
|
29
|
-
channel
|
|
29
|
+
// `chat.channel` is included so the eval runner (which sends messages via
|
|
30
|
+
// @botpress/chat) can drive this handler without needing a real Slack workspace.
|
|
31
|
+
// Remove it once you're ready to test exclusively through Slack.
|
|
32
|
+
channel: ['slack.dm', 'chat.channel'],
|
|
30
33
|
|
|
31
34
|
async handler({ execute }) {
|
|
32
35
|
// Classify and respond in one shot. The AI will:
|
|
@@ -2,46 +2,46 @@
|
|
|
2
2
|
"templates": [
|
|
3
3
|
{
|
|
4
4
|
"name": "blank",
|
|
5
|
-
"description": "Empty project with
|
|
5
|
+
"description": "Empty project with webchat pre-wired so you can test in the dev console",
|
|
6
6
|
"category": "starter",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"complexity": "beginner"
|
|
7
|
+
"complexity": "beginner",
|
|
8
|
+
"dependencies": { "integrations": ["webchat@latest"], "plugins": [] }
|
|
10
9
|
},
|
|
11
10
|
{
|
|
12
11
|
"name": "hello-world",
|
|
13
12
|
"description": "A working chatbot with chat and webchat integrations",
|
|
14
13
|
"category": "starter",
|
|
15
|
-
"integrations": ["chat", "webchat"],
|
|
16
|
-
"primitives": ["conversations"],
|
|
17
14
|
"complexity": "beginner",
|
|
18
|
-
"
|
|
15
|
+
"dependencies": { "integrations": ["chat@latest", "webchat@latest"], "plugins": [] }
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "botpress-desk",
|
|
19
|
+
"title": "Desk Deflecting Agent",
|
|
20
|
+
"description": "Customer support bot with human handoff via Botpress Desk",
|
|
21
|
+
"category": "support",
|
|
22
|
+
"complexity": "intermediate",
|
|
23
|
+
"dependencies": { "integrations": ["webchat@latest"], "plugins": ["desk-hitl@latest"] }
|
|
19
24
|
},
|
|
20
25
|
{
|
|
21
26
|
"name": "slack-triage",
|
|
22
27
|
"description": "Slack bot that monitors a channel, classifies requests, and routes to the right person",
|
|
23
28
|
"category": "triage",
|
|
24
|
-
"integrations": ["slack"],
|
|
25
|
-
"primitives": ["actions", "workflows", "conversations", "tables", "triggers", "knowledge"],
|
|
26
29
|
"complexity": "intermediate",
|
|
27
|
-
"
|
|
30
|
+
"dependencies": { "integrations": ["slack@latest", "chat@latest"], "plugins": [] }
|
|
28
31
|
},
|
|
29
32
|
{
|
|
30
33
|
"name": "knowledge-assistant",
|
|
31
34
|
"description": "RAG-powered Q&A agent with knowledge base and source citations",
|
|
32
35
|
"category": "knowledge",
|
|
33
|
-
"integrations": ["chat", "webchat"],
|
|
34
|
-
"primitives": ["conversations", "knowledge", "actions"],
|
|
35
36
|
"complexity": "beginner",
|
|
36
|
-
"
|
|
37
|
+
"dependencies": { "integrations": ["chat@latest", "webchat@latest"], "plugins": [] }
|
|
37
38
|
},
|
|
38
39
|
{
|
|
39
40
|
"name": "crm-enrichment",
|
|
40
41
|
"description": "Scheduled workflow that enriches CRM contacts with AI-driven classification",
|
|
41
42
|
"category": "enrichment",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"complexity": "intermediate"
|
|
43
|
+
"complexity": "intermediate",
|
|
44
|
+
"dependencies": { "integrations": [], "plugins": [] }
|
|
45
45
|
}
|
|
46
46
|
]
|
|
47
47
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `mock.module()` that automatically restores the real module once the current
|
|
3
|
+
* test file finishes.
|
|
4
|
+
*
|
|
5
|
+
* bun's `mock.module()` mutates the live module namespace in place and the
|
|
6
|
+
* override persists for the entire test process — it is not undone by
|
|
7
|
+
* `mock.restore()` and it leaks into every test file that runs afterwards. When
|
|
8
|
+
* the whole suite runs in a single `bun test` process that makes the result
|
|
9
|
+
* order-dependent: a module mocked by one file is still mocked when an unrelated
|
|
10
|
+
* file imports the real thing.
|
|
11
|
+
*
|
|
12
|
+
* Pass the statically-imported real module namespace as `realModule` so a
|
|
13
|
+
* shallow snapshot is captured before the mock is installed; an `afterAll` then
|
|
14
|
+
* reinstates that snapshot, keeping each test file hermetic.
|
|
15
|
+
*
|
|
16
|
+
* Relative specifiers (`./` or `../`) are resolved against the *caller's*
|
|
17
|
+
* directory before being handed to `mock.module()`. bun resolves a relative
|
|
18
|
+
* specifier relative to the file that invokes `mock.module()`, which here is
|
|
19
|
+
* this helper rather than the test file — so a bare relative string would
|
|
20
|
+
* register the override under the wrong path and silently do nothing. Resolving
|
|
21
|
+
* to an absolute path up front keys the override correctly regardless of where
|
|
22
|
+
* the helper lives.
|
|
23
|
+
*
|
|
24
|
+
* Usage:
|
|
25
|
+
* import * as agentRoot from '../utils/agent-root.js'
|
|
26
|
+
* mockModule('../utils/agent-root.js', agentRoot, () => ({ findAgentRootOrFail: mockFn }))
|
|
27
|
+
*/
|
|
28
|
+
export declare function mockModule(specifier: string, realModule: Record<string, unknown>, factory: () => Record<string, unknown>): void;
|
|
29
|
+
//# sourceMappingURL=mock-module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-module.d.ts","sourceRoot":"","sources":["../../src/test-utils/mock-module.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,UAAU,CACxB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,IAAI,CAON"}
|
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility to load @botpress/chat via CJS resolution from within the ADK's dependency tree.
|
|
3
|
-
*
|
|
4
|
-
* ## Why CJS?
|
|
5
|
-
*
|
|
6
|
-
* @botpress/chat ships two bundles:
|
|
7
|
-
* - index.mjs (browser build): axios 1.2.5 fully inlined with http adapter set to null
|
|
8
|
-
* - index.cjs (Node build): uses external require("axios") with real Node.js http adapter
|
|
9
|
-
*
|
|
10
|
-
* ESM `import()` resolves via the "module" field to index.mjs, which has a broken http
|
|
11
|
-
* adapter in any server runtime (Node, Bun, compiled binary). CJS `require()` resolves
|
|
12
|
-
* via "main" to index.cjs with a working adapter.
|
|
13
|
-
*
|
|
14
|
-
* ## Why two hops?
|
|
15
|
-
*
|
|
16
|
-
* In a compiled Bun binary, `import.meta.url` points to `/$bunfs/root/` (a virtual FS
|
|
17
|
-
* with no node_modules), so `createRequire` must anchor to `process.cwd()`. But
|
|
18
|
-
* `@botpress/chat` is a dependency of `@botpress/adk`, not the agent project at cwd.
|
|
19
|
-
* So we first resolve `@botpress/adk` from cwd, then resolve `@botpress/chat` from
|
|
20
|
-
* the ADK's location on disk.
|
|
21
|
-
*/
|
|
22
1
|
export type ChatClient = typeof import('@botpress/chat').Client;
|
|
23
2
|
/**
|
|
24
|
-
* Returns the @botpress/chat Client class
|
|
25
|
-
*
|
|
3
|
+
* Returns the @botpress/chat Client class. The chat client ships with the CLI
|
|
4
|
+
* binary, so no user-side dep declaration or anchor is needed.
|
|
26
5
|
*/
|
|
27
|
-
export declare function getChatClient(
|
|
6
|
+
export declare function getChatClient(): ChatClient;
|
|
28
7
|
//# sourceMappingURL=require-chat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"require-chat.d.ts","sourceRoot":"","sources":["../../src/utils/require-chat.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"require-chat.d.ts","sourceRoot":"","sources":["../../src/utils/require-chat.ts"],"names":[],"mappings":"AA8BA,MAAM,MAAM,UAAU,GAAG,cAAc,gBAAgB,EAAE,MAAM,CAAA;AAE/D;;;GAGG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAY1C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface SearchableCatalogEntry {
|
|
2
|
+
name: string;
|
|
3
|
+
version: string;
|
|
4
|
+
updatedAt?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface RankedCatalogEntry<T extends SearchableCatalogEntry> {
|
|
9
|
+
entry: T;
|
|
10
|
+
rank: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function collectCatalogSearchResult<T extends SearchableCatalogEntry>(results: Map<string, RankedCatalogEntry<T>>, entry: T, query: string): void;
|
|
13
|
+
export declare function getSortedCatalogSearchResults<T extends SearchableCatalogEntry>(results: Map<string, RankedCatalogEntry<T>>, limit: number): T[];
|
|
14
|
+
export declare function getSortedVersions(versions: Iterable<string>): string[];
|
|
15
|
+
//# sourceMappingURL=search-ranking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-ranking.d.ts","sourceRoot":"","sources":["../../src/utils/search-ranking.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,sBAAsB;IAClE,KAAK,EAAE,CAAC,CAAA;IACR,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,sBAAsB,EACzE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,EAC3C,KAAK,EAAE,CAAC,EACR,KAAK,EAAE,MAAM,GACZ,IAAI,CAWN;AAED,wBAAgB,6BAA6B,CAAC,CAAC,SAAS,sBAAsB,EAC5E,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,EAC3C,KAAK,EAAE,MAAM,GACZ,CAAC,EAAE,CAQL;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,CAEtE"}
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
*
|
|
16
16
|
* ## Solution
|
|
17
17
|
* 1. Parse the source map and identify which sources are inside the agent's src directory
|
|
18
|
-
* 2.
|
|
19
|
-
*
|
|
18
|
+
* 2. Decode the VLQ mappings in a single pass, retaining only the segments that
|
|
19
|
+
* reference a kept source (plus generated-column-only markers)
|
|
20
|
+
* 3. Re-encode the (tiny) retained set with compacted source/name indices
|
|
20
21
|
* 4. Save both an optimized .map file AND inline it into the .cjs bundle
|
|
21
22
|
*
|
|
22
23
|
* ## What is VLQ?
|
|
@@ -36,15 +37,13 @@
|
|
|
36
37
|
* - `,` to separate segments within a line
|
|
37
38
|
* - Base64 characters to encode VLQ values
|
|
38
39
|
*
|
|
39
|
-
* ##
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* This reduces file size by 90%+ while keeping the source map valid and functional
|
|
47
|
-
* for debugging the agent's own code.
|
|
40
|
+
* ## Performance
|
|
41
|
+
* The decode is unavoidable — source/name indices are cumulative deltas, so every
|
|
42
|
+
* segment must be decoded to keep the running state correct even for the ~99% that
|
|
43
|
+
* get dropped. But we avoid the two dominant costs of a naive decoder: we never
|
|
44
|
+
* allocate a tuple per VLQ field (a shared cursor is advanced in place), and we
|
|
45
|
+
* only materialize an object for segments we actually keep. For an agent bundle
|
|
46
|
+
* that turns millions of allocations into thousands.
|
|
48
47
|
*/
|
|
49
48
|
export interface SourceMapOptimizeOptions {
|
|
50
49
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-map-optimizer.d.ts","sourceRoot":"","sources":["../../src/utils/source-map-optimizer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"source-map-optimizer.d.ts","sourceRoot":"","sources":["../../src/utils/source-map-optimizer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAMH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAA;CACrB;AA4PD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkHxF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-cache.d.ts","sourceRoot":"","sources":["../../src/workspace/workspace-cache.ts"],"names":[],"mappings":"AASA,cAAM,cAAc;IAClB,OAAO,CAAC,KAAK,CAAwC;IACrD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAErC,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"workspace-cache.d.ts","sourceRoot":"","sources":["../../src/workspace/workspace-cache.ts"],"names":[],"mappings":"AASA,cAAM,cAAc;IAClB,OAAO,CAAC,KAAK,CAAwC;IACrD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAErC,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAuCxE,KAAK,IAAI,IAAI;CAGd;AAGD,eAAO,MAAM,cAAc,gBAAuB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/adk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0-beta.11",
|
|
4
4
|
"description": "Core ADK library for building AI agents on Botpress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adk",
|
|
@@ -30,13 +30,25 @@
|
|
|
30
30
|
"types": "./dist/index.d.ts",
|
|
31
31
|
"import": "./dist/index.js"
|
|
32
32
|
},
|
|
33
|
+
"./dependencies": {
|
|
34
|
+
"types": "./dist/dependencies/index.d.ts",
|
|
35
|
+
"import": "./dist/dependencies/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./internal/agent0": {
|
|
38
|
+
"types": "./dist/agent0/index.d.ts",
|
|
39
|
+
"import": "./dist/agent0/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./internal/bp-cli": {
|
|
42
|
+
"types": "./dist/commands/bp-cli.d.ts",
|
|
43
|
+
"import": "./dist/commands/bp-cli.js"
|
|
44
|
+
},
|
|
33
45
|
"./package.json": "./package.json",
|
|
34
46
|
"./schemas/*": "./schemas/*"
|
|
35
47
|
},
|
|
36
48
|
"scripts": {
|
|
37
|
-
"build": "bun run build:types && bun run build.ts",
|
|
49
|
+
"build": "bun run build:types && bun run scripts/build-chat-bundle.ts && bun run build.ts",
|
|
38
50
|
"build:types": "tsc --emitDeclarationOnly",
|
|
39
|
-
"watch": "bun run build:types && bun build ./src/index.ts --outdir ./dist --target node --format esm --sourcemap --watch",
|
|
51
|
+
"watch": "bun run build:types && bun run scripts/build-chat-bundle.ts && bun build ./src/index.ts --outdir ./dist --target node --format esm --sourcemap --watch",
|
|
40
52
|
"clean": "rm -rf dist",
|
|
41
53
|
"prepublishOnly": "bun run clean && bun run build",
|
|
42
54
|
"test": "bun test",
|
|
@@ -46,11 +58,11 @@
|
|
|
46
58
|
},
|
|
47
59
|
"dependencies": {
|
|
48
60
|
"@botpress/chat": "~0.5.5",
|
|
49
|
-
"@botpress/cli": "~6.
|
|
50
|
-
"@botpress/client": "~1.
|
|
51
|
-
"@botpress/cognitive": "~0.
|
|
52
|
-
"@botpress/runtime": "^1.
|
|
53
|
-
"@botpress/sdk": "~6.
|
|
61
|
+
"@botpress/cli": "~6.8.6",
|
|
62
|
+
"@botpress/client": "~1.46.0",
|
|
63
|
+
"@botpress/cognitive": "~0.6.0",
|
|
64
|
+
"@botpress/runtime": "^1.19.0-beta.11",
|
|
65
|
+
"@botpress/sdk": "~6.11.1",
|
|
54
66
|
"@bpinternal/jex": "^1.2.4",
|
|
55
67
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
56
68
|
"@parcel/watcher": "^2.5.1",
|
|
@@ -59,7 +71,7 @@
|
|
|
59
71
|
"execa": "9.6.1",
|
|
60
72
|
"glob": "^11.1.0",
|
|
61
73
|
"luxon": "^3.7.2",
|
|
62
|
-
"opencode-ai": "1.
|
|
74
|
+
"opencode-ai": "1.15.10",
|
|
63
75
|
"oxfmt": "^0.41.0",
|
|
64
76
|
"semver": "^7.7.2",
|
|
65
77
|
"tree-kill": "^1.2.2",
|
|
@@ -69,8 +81,8 @@
|
|
|
69
81
|
"typescript": ">=4.5.0"
|
|
70
82
|
},
|
|
71
83
|
"engines": {
|
|
72
|
-
"bun": ">=1.3.
|
|
84
|
+
"bun": ">=1.3.14",
|
|
73
85
|
"node": ">=22.0.0"
|
|
74
86
|
},
|
|
75
|
-
"packageManager": "bun@1.3.
|
|
87
|
+
"packageManager": "bun@1.3.14"
|
|
76
88
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check if the project's opencode.json has at least one real LLM provider configured.
|
|
3
|
-
* Also checks the global config at ~/.config/opencode/opencode.json as a fallback —
|
|
4
|
-
* if the global config file exists at all, the user has set up OpenCode and we pass the check.
|
|
5
|
-
*/
|
|
6
|
-
export declare function checkHasProvider(agentPath: string): boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Check if any opencode.json (project or global) has an explicit LLM provider with a valid API key.
|
|
9
|
-
* Returns false when the config exists but relies on external provider resolution (e.g. model-only config).
|
|
10
|
-
*/
|
|
11
|
-
export declare function checkHasExplicitProvider(agentPath: string): boolean;
|
|
12
|
-
//# sourceMappingURL=copilot-config-reader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"copilot-config-reader.d.ts","sourceRoot":"","sources":["../../src/commands/copilot-config-reader.ts"],"names":[],"mappings":"AA2CA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAU3D;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAQnE"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface CopilotServerOptions {
|
|
2
|
-
/** Working directory (the agent project path) */
|
|
3
|
-
cwd: string;
|
|
4
|
-
/** CORS origins to allow */
|
|
5
|
-
corsOrigins?: string[];
|
|
6
|
-
/** Path to the `adk` CLI binary (for MCP registration) */
|
|
7
|
-
adkBinPath?: string;
|
|
8
|
-
/** UI/API server port so MCP tools can reach it */
|
|
9
|
-
adkDevConsolePort?: number;
|
|
10
|
-
/** Abort signal for cancellation */
|
|
11
|
-
signal?: AbortSignal;
|
|
12
|
-
/** Optional callback for progress messages (download status, etc.) */
|
|
13
|
-
onLog?: (message: string) => void;
|
|
14
|
-
}
|
|
15
|
-
export interface CopilotServer {
|
|
16
|
-
url: string;
|
|
17
|
-
port: number;
|
|
18
|
-
close: () => void;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Start the copilot server using the opencode binary.
|
|
22
|
-
* Resolves the binary from node_modules, cache, or downloads it on demand.
|
|
23
|
-
* Finds a free port automatically — no hardcoded ports.
|
|
24
|
-
*/
|
|
25
|
-
export declare function startCopilotServer(options: CopilotServerOptions): Promise<CopilotServer>;
|
|
26
|
-
//# sourceMappingURL=copilot-server.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"copilot-server.d.ts","sourceRoot":"","sources":["../../src/commands/copilot-server.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,oBAAoB;IACnC,iDAAiD;IACjD,GAAG,EAAE,MAAM,CAAA;IACX,4BAA4B;IAC5B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,oCAAoC;IACpC,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,sEAAsE;IACtE,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAkJD;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC,CAoF9F"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface OpenCodeConfig {
|
|
2
|
-
mcp: Record<string, {
|
|
3
|
-
type: string;
|
|
4
|
-
command: string[];
|
|
5
|
-
}>;
|
|
6
|
-
agent: Record<string, {
|
|
7
|
-
description: string;
|
|
8
|
-
prompt: string;
|
|
9
|
-
}>;
|
|
10
|
-
server?: {
|
|
11
|
-
port: number;
|
|
12
|
-
cors?: string[];
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Build the OpenCode configuration for the ADK Copilot.
|
|
17
|
-
*
|
|
18
|
-
* Registers the ADK MCP server and sets up a default agent prompt
|
|
19
|
-
* scoped to ADK development. Passed to `opencode serve` via
|
|
20
|
-
* the `OPENCODE_CONFIG_CONTENT` environment variable.
|
|
21
|
-
*/
|
|
22
|
-
export declare function buildOpenCodeConfig(options: {
|
|
23
|
-
adkBinPath: string;
|
|
24
|
-
agentPath: string;
|
|
25
|
-
adkDevConsolePort?: number;
|
|
26
|
-
openCodePort?: number;
|
|
27
|
-
corsOrigins?: string[];
|
|
28
|
-
}): OpenCodeConfig;
|
|
29
|
-
//# sourceMappingURL=opencode-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"opencode-config.d.ts","sourceRoot":"","sources":["../../src/commands/opencode-config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAA;IACxD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9D,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;CAC3C;AAuED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE;IAC3C,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB,GAAG,cAAc,CAwBjB"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { type Integration } from '@botpress/client';
|
|
2
|
-
export type IntegrationInstallStatus = 'enabled' | 'not_installed' | 'disabled';
|
|
3
|
-
export type IntegrationRegistrationStatus = 'registered' | 'registration_pending' | 'registration_failed' | 'unregistration_pending' | 'unregistered' | 'unregistration_failed';
|
|
4
|
-
export interface IntegrationCheckResult {
|
|
5
|
-
alias: string;
|
|
6
|
-
name: string;
|
|
7
|
-
installStatus: IntegrationInstallStatus;
|
|
8
|
-
registrationStatus?: IntegrationRegistrationStatus;
|
|
9
|
-
installedVersion?: string;
|
|
10
|
-
currentConfigurationType?: string | null;
|
|
11
|
-
currentConfiguration?: Record<string, unknown>;
|
|
12
|
-
desiredInstallStatus: IntegrationInstallStatus;
|
|
13
|
-
desiredVersion: string;
|
|
14
|
-
desiredIntegrationId?: string;
|
|
15
|
-
desiredConfigurationType?: string | null;
|
|
16
|
-
desiredConfiguration?: Record<string, unknown>;
|
|
17
|
-
definition: Integration;
|
|
18
|
-
needsInstall: boolean;
|
|
19
|
-
needsUpdate: boolean;
|
|
20
|
-
needsRemoval: boolean;
|
|
21
|
-
needsConfiguration: boolean;
|
|
22
|
-
hasError: boolean;
|
|
23
|
-
errorMessage?: string;
|
|
24
|
-
}
|
|
25
|
-
export declare class IntegrationChecker {
|
|
26
|
-
private projectPath;
|
|
27
|
-
private client?;
|
|
28
|
-
constructor(projectPath: string);
|
|
29
|
-
private getClient;
|
|
30
|
-
/**
|
|
31
|
-
* Fetch integration definition from Botpress API
|
|
32
|
-
* Try private first, then public
|
|
33
|
-
*/
|
|
34
|
-
private fetchIntegrationDefinition;
|
|
35
|
-
/**
|
|
36
|
-
* Check integration status for a specific bot
|
|
37
|
-
*/
|
|
38
|
-
checkIntegrations(botId: string): Promise<IntegrationCheckResult[]>;
|
|
39
|
-
private checkIntegration;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=checker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checker.d.ts","sourceRoot":"","sources":["../../src/integrations/checker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,WAAW,EAAY,MAAM,kBAAkB,CAAA;AAOrE,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,eAAe,GAAG,UAAU,CAAA;AAC/E,MAAM,MAAM,6BAA6B,GACrC,YAAY,GACZ,sBAAsB,GACtB,qBAAqB,GACrB,wBAAwB,GACxB,cAAc,GACd,uBAAuB,CAAA;AAE3B,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IAGZ,aAAa,EAAE,wBAAwB,CAAA;IACvC,kBAAkB,CAAC,EAAE,6BAA6B,CAAA;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxC,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAG9C,oBAAoB,EAAE,wBAAwB,CAAA;IAC9C,cAAc,EAAE,MAAM,CAAA;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxC,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAG9C,UAAU,EAAE,WAAW,CAAA;IAGvB,YAAY,EAAE,OAAO,CAAA;IACrB,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,OAAO,CAAA;IACrB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,MAAM,CAAC,CAAQ;gBAEX,WAAW,EAAE,MAAM;YAIjB,SAAS;IAuBvB;;;OAGG;YACW,0BAA0B;IA0BxC;;OAEG;IACG,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC;YAyE3D,gBAAgB;CA4H/B"}
|