@botpress/adk 2.0.2 → 3.0.0-beta.0
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-project/agent-project.d.ts +5 -0
- 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/types.d.ts +4 -0
- package/dist/agent-project/types.d.ts.map +1 -1
- package/dist/agent0/capabilities/commands/adk-ship.md +2 -1
- package/dist/agent0/capabilities/commands/adk-validate.md +1 -1
- package/dist/agent0/capabilities/skills/adk/references/agent-config.md +35 -4
- package/dist/agent0/capabilities/skills/adk/references/cli.md +6 -3
- package/dist/agent0/capabilities/skills/adk/references/explain-config.md +2 -2
- package/dist/agent0/capabilities/skills/adk/references/files.md +6 -1
- package/dist/agent0/capabilities/skills/adk/references/knowledge-bases.md +7 -3
- package/dist/agent0/capabilities/skills/adk-dev-console/references/pages.md +6 -4
- package/dist/agent0/index.js +279 -62
- package/dist/agent0/index.js.map +16 -13
- package/dist/agent0/providers/source.d.ts.map +1 -1
- package/dist/agent0/runtime/client.d.ts +2 -1
- package/dist/agent0/runtime/client.d.ts.map +1 -1
- package/dist/agent0/runtime/engine.d.ts +2 -0
- package/dist/agent0/runtime/engine.d.ts.map +1 -1
- package/dist/agent0/runtime/manager.d.ts +2 -1
- package/dist/agent0/runtime/manager.d.ts.map +1 -1
- package/dist/agent0/types.d.ts +41 -1
- package/dist/agent0/types.d.ts.map +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/bot-generator/dev-id-manager.d.ts +6 -0
- package/dist/bot-generator/dev-id-manager.d.ts.map +1 -1
- package/dist/bot-generator/generator.d.ts +1 -1
- package/dist/bot-generator/generator.d.ts.map +1 -1
- package/dist/bot-generator/install-package.d.ts +17 -0
- package/dist/bot-generator/install-package.d.ts.map +1 -0
- package/dist/bot-generator/integration-sync.d.ts +6 -20
- package/dist/bot-generator/integration-sync.d.ts.map +1 -1
- package/dist/bot-generator/interface-sync.d.ts +6 -20
- package/dist/bot-generator/interface-sync.d.ts.map +1 -1
- package/dist/bot-generator/plugin-sync.d.ts +6 -20
- package/dist/bot-generator/plugin-sync.d.ts.map +1 -1
- package/dist/build/__fixtures__/generated-import-bot/bot.definition.d.ts +14 -0
- package/dist/build/__fixtures__/generated-import-bot/bot.definition.d.ts.map +1 -0
- package/dist/build/__fixtures__/generated-import-bot/src/index.d.ts +3 -0
- package/dist/build/__fixtures__/generated-import-bot/src/index.d.ts.map +1 -0
- package/dist/build/__fixtures__/minimal-bot/bot.definition.d.ts +38 -0
- package/dist/build/__fixtures__/minimal-bot/bot.definition.d.ts.map +1 -0
- package/dist/build/__fixtures__/minimal-bot/src/index.d.ts +6 -0
- package/dist/build/__fixtures__/minimal-bot/src/index.d.ts.map +1 -0
- package/dist/build/bot-builder.d.ts +48 -0
- package/dist/build/bot-builder.d.ts.map +1 -0
- package/dist/build/definition-inputs.d.ts +21 -0
- package/dist/build/definition-inputs.d.ts.map +1 -0
- package/dist/build/definition-loader.d.ts +14 -0
- package/dist/build/definition-loader.d.ts.map +1 -0
- package/dist/chat-bundle.cjs +19 -19
- package/dist/codegen/bot-implementation/bot-implementation.d.ts +9 -0
- package/dist/codegen/bot-implementation/bot-implementation.d.ts.map +1 -0
- package/dist/codegen/bot-implementation/bot-plugins/index.d.ts +8 -0
- package/dist/codegen/bot-implementation/bot-plugins/index.d.ts.map +1 -0
- package/dist/codegen/bot-implementation/bot-plugins/plugin-module.d.ts +14 -0
- package/dist/codegen/bot-implementation/bot-plugins/plugin-module.d.ts.map +1 -0
- package/dist/codegen/bot-implementation/bot-typings/actions-module.d.ts +22 -0
- package/dist/codegen/bot-implementation/bot-typings/actions-module.d.ts.map +1 -0
- package/dist/codegen/bot-implementation/bot-typings/events-module.d.ts +11 -0
- package/dist/codegen/bot-implementation/bot-typings/events-module.d.ts.map +1 -0
- package/dist/codegen/bot-implementation/bot-typings/index.d.ts +8 -0
- package/dist/codegen/bot-implementation/bot-typings/index.d.ts.map +1 -0
- package/dist/codegen/bot-implementation/bot-typings/states-module.d.ts +18 -0
- package/dist/codegen/bot-implementation/bot-typings/states-module.d.ts.map +1 -0
- package/dist/codegen/bot-implementation/bot-typings/tables-module.d.ts +11 -0
- package/dist/codegen/bot-implementation/bot-typings/tables-module.d.ts.map +1 -0
- package/dist/codegen/bot-implementation/bot-typings/workflows-module.d.ts +28 -0
- package/dist/codegen/bot-implementation/bot-typings/workflows-module.d.ts.map +1 -0
- package/dist/codegen/bot-implementation/index.d.ts +4 -0
- package/dist/codegen/bot-implementation/index.d.ts.map +1 -0
- package/dist/codegen/casing.d.ts +11 -0
- package/dist/codegen/casing.d.ts.map +1 -0
- package/dist/codegen/consts.d.ts +19 -0
- package/dist/codegen/consts.d.ts.map +1 -0
- package/dist/codegen/generators.d.ts +16 -0
- package/dist/codegen/generators.d.ts.map +1 -0
- package/dist/codegen/index.d.ts +9 -0
- package/dist/codegen/index.d.ts.map +1 -0
- package/dist/codegen/integration-implementation/index.d.ts +4 -0
- package/dist/codegen/integration-implementation/index.d.ts.map +1 -0
- package/dist/codegen/integration-implementation/integration-implementation.d.ts +8 -0
- package/dist/codegen/integration-implementation/integration-implementation.d.ts.map +1 -0
- package/dist/codegen/integration-implementation/integration-typings/actions-module.d.ts +22 -0
- package/dist/codegen/integration-implementation/integration-typings/actions-module.d.ts.map +1 -0
- package/dist/codegen/integration-implementation/integration-typings/channels-module.d.ts +6 -0
- package/dist/codegen/integration-implementation/integration-typings/channels-module.d.ts.map +1 -0
- package/dist/codegen/integration-implementation/integration-typings/configuration-module.d.ts +8 -0
- package/dist/codegen/integration-implementation/integration-typings/configuration-module.d.ts.map +1 -0
- package/dist/codegen/integration-implementation/integration-typings/configurations-module.d.ts +11 -0
- package/dist/codegen/integration-implementation/integration-typings/configurations-module.d.ts.map +1 -0
- package/dist/codegen/integration-implementation/integration-typings/entities-module.d.ts +11 -0
- package/dist/codegen/integration-implementation/integration-typings/entities-module.d.ts.map +1 -0
- package/dist/codegen/integration-implementation/integration-typings/events-module.d.ts +11 -0
- package/dist/codegen/integration-implementation/integration-typings/events-module.d.ts.map +1 -0
- package/dist/codegen/integration-implementation/integration-typings/index.d.ts +9 -0
- package/dist/codegen/integration-implementation/integration-typings/index.d.ts.map +1 -0
- package/dist/codegen/integration-implementation/integration-typings/states-module.d.ts +18 -0
- package/dist/codegen/integration-implementation/integration-typings/states-module.d.ts.map +1 -0
- package/dist/codegen/integration-package/index.d.ts +3 -0
- package/dist/codegen/integration-package/index.d.ts.map +1 -0
- package/dist/codegen/integration-package/integration-package-definition/actions-module.d.ts +22 -0
- package/dist/codegen/integration-package/integration-package-definition/actions-module.d.ts.map +1 -0
- package/dist/codegen/integration-package/integration-package-definition/channels-module.d.ts +6 -0
- package/dist/codegen/integration-package/integration-package-definition/channels-module.d.ts.map +1 -0
- package/dist/codegen/integration-package/integration-package-definition/configuration-module.d.ts +8 -0
- package/dist/codegen/integration-package/integration-package-definition/configuration-module.d.ts.map +1 -0
- package/dist/codegen/integration-package/integration-package-definition/configurations-module.d.ts +11 -0
- package/dist/codegen/integration-package/integration-package-definition/configurations-module.d.ts.map +1 -0
- package/dist/codegen/integration-package/integration-package-definition/entities-module.d.ts +11 -0
- package/dist/codegen/integration-package/integration-package-definition/entities-module.d.ts.map +1 -0
- package/dist/codegen/integration-package/integration-package-definition/events-module.d.ts +11 -0
- package/dist/codegen/integration-package/integration-package-definition/events-module.d.ts.map +1 -0
- package/dist/codegen/integration-package/integration-package-definition/index.d.ts +9 -0
- package/dist/codegen/integration-package/integration-package-definition/index.d.ts.map +1 -0
- package/dist/codegen/integration-package/integration-package-definition/interfaces-module.d.ts +11 -0
- package/dist/codegen/integration-package/integration-package-definition/interfaces-module.d.ts.map +1 -0
- package/dist/codegen/integration-package/integration-package-definition/states-module.d.ts +11 -0
- package/dist/codegen/integration-package/integration-package-definition/states-module.d.ts.map +1 -0
- package/dist/codegen/integration-package/integration-package-definition/typings.d.ts +11 -0
- package/dist/codegen/integration-package/integration-package-definition/typings.d.ts.map +1 -0
- package/dist/codegen/interface-implementation/index.d.ts +5 -0
- package/dist/codegen/interface-implementation/index.d.ts.map +1 -0
- package/dist/codegen/interface-implementation/integration-typings/actions-module.d.ts +22 -0
- package/dist/codegen/interface-implementation/integration-typings/actions-module.d.ts.map +1 -0
- package/dist/codegen/interface-implementation/integration-typings/channels-module.d.ts +6 -0
- package/dist/codegen/interface-implementation/integration-typings/channels-module.d.ts.map +1 -0
- package/dist/codegen/interface-implementation/integration-typings/entities-module.d.ts +11 -0
- package/dist/codegen/interface-implementation/integration-typings/entities-module.d.ts.map +1 -0
- package/dist/codegen/interface-implementation/integration-typings/events-module.d.ts +11 -0
- package/dist/codegen/interface-implementation/integration-typings/events-module.d.ts.map +1 -0
- package/dist/codegen/interface-implementation/integration-typings/index.d.ts +9 -0
- package/dist/codegen/interface-implementation/integration-typings/index.d.ts.map +1 -0
- package/dist/codegen/interface-package/index.d.ts +3 -0
- package/dist/codegen/interface-package/index.d.ts.map +1 -0
- package/dist/codegen/interface-package/interface-package-definition/actions-module.d.ts +22 -0
- package/dist/codegen/interface-package/interface-package-definition/actions-module.d.ts.map +1 -0
- package/dist/codegen/interface-package/interface-package-definition/channels-module.d.ts +6 -0
- package/dist/codegen/interface-package/interface-package-definition/channels-module.d.ts.map +1 -0
- package/dist/codegen/interface-package/interface-package-definition/entities-module.d.ts +11 -0
- package/dist/codegen/interface-package/interface-package-definition/entities-module.d.ts.map +1 -0
- package/dist/codegen/interface-package/interface-package-definition/events-module.d.ts +11 -0
- package/dist/codegen/interface-package/interface-package-definition/events-module.d.ts.map +1 -0
- package/dist/codegen/interface-package/interface-package-definition/index.d.ts +9 -0
- package/dist/codegen/interface-package/interface-package-definition/index.d.ts.map +1 -0
- package/dist/codegen/interface-package/interface-package-definition/typings.d.ts +8 -0
- package/dist/codegen/interface-package/interface-package-definition/typings.d.ts.map +1 -0
- package/dist/codegen/module.d.ts +54 -0
- package/dist/codegen/module.d.ts.map +1 -0
- package/dist/codegen/paths.d.ts +8 -0
- package/dist/codegen/paths.d.ts.map +1 -0
- package/dist/codegen/plugin-implementation/index.d.ts +4 -0
- package/dist/codegen/plugin-implementation/index.d.ts.map +1 -0
- package/dist/codegen/plugin-implementation/plugin-implementation.d.ts +8 -0
- package/dist/codegen/plugin-implementation/plugin-implementation.d.ts.map +1 -0
- package/dist/codegen/plugin-implementation/plugin-typings/actions-module.d.ts +22 -0
- package/dist/codegen/plugin-implementation/plugin-typings/actions-module.d.ts.map +1 -0
- package/dist/codegen/plugin-implementation/plugin-typings/configuration-module.d.ts +8 -0
- package/dist/codegen/plugin-implementation/plugin-typings/configuration-module.d.ts.map +1 -0
- package/dist/codegen/plugin-implementation/plugin-typings/conversation-module.d.ts +8 -0
- package/dist/codegen/plugin-implementation/plugin-typings/conversation-module.d.ts.map +1 -0
- package/dist/codegen/plugin-implementation/plugin-typings/events-module.d.ts +11 -0
- package/dist/codegen/plugin-implementation/plugin-typings/events-module.d.ts.map +1 -0
- package/dist/codegen/plugin-implementation/plugin-typings/index.d.ts +9 -0
- package/dist/codegen/plugin-implementation/plugin-typings/index.d.ts.map +1 -0
- package/dist/codegen/plugin-implementation/plugin-typings/message-module.d.ts +8 -0
- package/dist/codegen/plugin-implementation/plugin-typings/message-module.d.ts.map +1 -0
- package/dist/codegen/plugin-implementation/plugin-typings/states-module.d.ts +18 -0
- package/dist/codegen/plugin-implementation/plugin-typings/states-module.d.ts.map +1 -0
- package/dist/codegen/plugin-implementation/plugin-typings/tables-module.d.ts +11 -0
- package/dist/codegen/plugin-implementation/plugin-typings/tables-module.d.ts.map +1 -0
- package/dist/codegen/plugin-implementation/plugin-typings/user-module.d.ts +8 -0
- package/dist/codegen/plugin-implementation/plugin-typings/user-module.d.ts.map +1 -0
- package/dist/codegen/plugin-implementation/plugin-typings/workflows-module.d.ts +28 -0
- package/dist/codegen/plugin-implementation/plugin-typings/workflows-module.d.ts.map +1 -0
- package/dist/codegen/plugin-package/index.d.ts +3 -0
- package/dist/codegen/plugin-package/index.d.ts.map +1 -0
- package/dist/codegen/plugin-package/plugin-package-definition/actions-module.d.ts +22 -0
- package/dist/codegen/plugin-package/plugin-package-definition/actions-module.d.ts.map +1 -0
- package/dist/codegen/plugin-package/plugin-package-definition/configuration-module.d.ts +8 -0
- package/dist/codegen/plugin-package/plugin-package-definition/configuration-module.d.ts.map +1 -0
- package/dist/codegen/plugin-package/plugin-package-definition/events-module.d.ts +11 -0
- package/dist/codegen/plugin-package/plugin-package-definition/events-module.d.ts.map +1 -0
- package/dist/codegen/plugin-package/plugin-package-definition/index.d.ts +9 -0
- package/dist/codegen/plugin-package/plugin-package-definition/index.d.ts.map +1 -0
- package/dist/codegen/plugin-package/plugin-package-definition/interfaces-module.d.ts +8 -0
- package/dist/codegen/plugin-package/plugin-package-definition/interfaces-module.d.ts.map +1 -0
- package/dist/codegen/plugin-package/plugin-package-definition/recurring-events-module.d.ts +6 -0
- package/dist/codegen/plugin-package/plugin-package-definition/recurring-events-module.d.ts.map +1 -0
- package/dist/codegen/plugin-package/plugin-package-definition/states-module.d.ts +11 -0
- package/dist/codegen/plugin-package/plugin-package-definition/states-module.d.ts.map +1 -0
- package/dist/codegen/plugin-package/plugin-package-definition/typings.d.ts +8 -0
- package/dist/codegen/plugin-package/plugin-package-definition/typings.d.ts.map +1 -0
- package/dist/codegen/schema.d.ts +8 -0
- package/dist/codegen/schema.d.ts.map +1 -0
- package/dist/codegen/secret-module.d.ts +17 -0
- package/dist/codegen/secret-module.d.ts.map +1 -0
- package/dist/codegen/strings.d.ts +6 -0
- package/dist/codegen/strings.d.ts.map +1 -0
- package/dist/codegen/type-utils.d.ts +9 -0
- package/dist/codegen/type-utils.d.ts.map +1 -0
- package/dist/codegen/typings.d.ts +167 -0
- package/dist/codegen/typings.d.ts.map +1 -0
- package/dist/codegen/utils.d.ts +12 -0
- package/dist/codegen/utils.d.ts.map +1 -0
- package/dist/commands/base-command.d.ts.map +1 -1
- package/dist/commands/index.d.ts +1 -12
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/native-command.d.ts +39 -0
- package/dist/commands/native-command.d.ts.map +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/dependencies/catalog/client-factory.d.ts +4 -10
- package/dist/dependencies/catalog/client-factory.d.ts.map +1 -1
- package/dist/dependencies/catalog/plugin-source.d.ts +6 -0
- package/dist/dependencies/catalog/plugin-source.d.ts.map +1 -1
- package/dist/dependencies/dependency-manager.d.ts +13 -0
- package/dist/dependencies/dependency-manager.d.ts.map +1 -1
- package/dist/dependencies/index.js +456 -246
- package/dist/dependencies/index.js.map +20 -20
- package/dist/dependencies/resolvers/plugin-resolver.d.ts.map +1 -1
- package/dist/dependencies/snapshot-store.d.ts.map +1 -1
- package/dist/dependencies/types.d.ts +27 -0
- package/dist/dependencies/types.d.ts.map +1 -1
- package/dist/deploy/attributes.d.ts +16 -0
- package/dist/deploy/attributes.d.ts.map +1 -0
- package/dist/deploy/bot-body.d.ts +26 -0
- package/dist/deploy/bot-body.d.ts.map +1 -0
- package/dist/deploy/errors.d.ts +9 -0
- package/dist/deploy/errors.d.ts.map +1 -0
- package/dist/deploy/integration-utils.d.ts +11 -0
- package/dist/deploy/integration-utils.d.ts.map +1 -0
- package/dist/deploy/records.d.ts +14 -0
- package/dist/deploy/records.d.ts.map +1 -0
- package/dist/deploy/schema-utils.d.ts +16 -0
- package/dist/deploy/schema-utils.d.ts.map +1 -0
- package/dist/deploy-manifest/index.d.ts +8 -8
- package/dist/file-watcher/watcher.d.ts +18 -4
- package/dist/file-watcher/watcher.d.ts.map +1 -1
- package/dist/generators/tests.d.ts.map +1 -1
- package/dist/index.d.ts +11 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10115 -6035
- package/dist/index.js.map +122 -42
- package/dist/native-deploy/deploy-bot.d.ts +32 -0
- package/dist/native-deploy/deploy-bot.d.ts.map +1 -0
- package/dist/native-deploy/prepare-dependencies.d.ts +13 -0
- package/dist/native-deploy/prepare-dependencies.d.ts.map +1 -0
- package/dist/native-dev/dev-runtime.d.ts +159 -0
- package/dist/native-dev/dev-runtime.d.ts.map +1 -0
- package/dist/native-dev/event-emitter.d.ts +8 -0
- package/dist/native-dev/event-emitter.d.ts.map +1 -0
- package/dist/native-dev/tunnel.d.ts +56 -0
- package/dist/native-dev/tunnel.d.ts.map +1 -0
- package/dist/native-dev/worker/child-wrapper.d.ts +24 -0
- package/dist/native-dev/worker/child-wrapper.d.ts.map +1 -0
- package/dist/native-dev/worker/config.d.ts +21 -0
- package/dist/native-dev/worker/config.d.ts.map +1 -0
- package/dist/native-dev/worker/worker-state.d.ts +31 -0
- package/dist/native-dev/worker/worker-state.d.ts.map +1 -0
- package/dist/native-dev/worker/worker.d.ts +32 -0
- package/dist/native-dev/worker/worker.d.ts.map +1 -0
- package/dist/{commands/bp-dev-worker-env.d.ts → native-dev/worker-env.d.ts} +1 -1
- package/dist/native-dev/worker-env.d.ts.map +1 -0
- package/dist/plugins/manager.d.ts +6 -0
- package/dist/plugins/manager.d.ts.map +1 -1
- package/dist/preflight/checker.d.ts +1 -1
- package/dist/preflight/checker.d.ts.map +1 -1
- package/dist/preflight/types.d.ts +1 -1
- package/dist/preflight/types.d.ts.map +1 -1
- package/dist/runner/script-runner.d.ts +0 -4
- package/dist/runner/script-runner.d.ts.map +1 -1
- package/dist/secrets/index.d.ts +5 -2
- package/dist/secrets/index.d.ts.map +1 -1
- package/dist/secrets/local.d.ts +28 -0
- package/dist/secrets/local.d.ts.map +1 -0
- package/dist/secrets/remote.d.ts +22 -0
- package/dist/secrets/remote.d.ts.map +1 -0
- package/dist/secrets/status.d.ts +24 -0
- package/dist/secrets/status.d.ts.map +1 -0
- package/dist/secrets/validation.d.ts +11 -0
- package/dist/secrets/validation.d.ts.map +1 -0
- package/dist/templates/README.md +6 -1
- package/dist/templates/blank/README.md +5 -0
- package/dist/templates/botpress-desk/README.md +5 -0
- package/dist/templates/crm-enrichment/README.md +5 -0
- package/dist/templates/hello-world/README.md +5 -0
- package/dist/templates/knowledge-assistant/README.md +5 -0
- package/dist/templates/slack-triage/README.md +5 -0
- package/dist/utils/adk-ignore.d.ts +17 -0
- package/dist/utils/adk-ignore.d.ts.map +1 -0
- package/dist/utils/json-ordering.d.ts +1 -1
- package/dist/utils/json-ordering.d.ts.map +1 -1
- package/dist/utils/ref-parser.d.ts +17 -0
- package/dist/utils/ref-parser.d.ts.map +1 -0
- package/dist/utils/source-map-optimizer.d.ts +4 -4
- package/package.json +9 -10
- package/dist/auth/bp-cli-import.d.ts +0 -16
- package/dist/auth/bp-cli-import.d.ts.map +0 -1
- package/dist/commands/bp-add-command.d.ts +0 -19
- package/dist/commands/bp-add-command.d.ts.map +0 -1
- package/dist/commands/bp-build-command.d.ts +0 -14
- package/dist/commands/bp-build-command.d.ts.map +0 -1
- package/dist/commands/bp-chat-command.d.ts +0 -18
- package/dist/commands/bp-chat-command.d.ts.map +0 -1
- package/dist/commands/bp-cli.d.ts +0 -14
- package/dist/commands/bp-cli.d.ts.map +0 -1
- package/dist/commands/bp-cli.js +0 -147
- package/dist/commands/bp-cli.js.map +0 -12
- package/dist/commands/bp-deploy-command.d.ts +0 -21
- package/dist/commands/bp-deploy-command.d.ts.map +0 -1
- package/dist/commands/bp-dev-command.d.ts +0 -89
- package/dist/commands/bp-dev-command.d.ts.map +0 -1
- package/dist/commands/bp-dev-stderr.d.ts +0 -30
- package/dist/commands/bp-dev-stderr.d.ts.map +0 -1
- package/dist/commands/bp-dev-worker-env.d.ts.map +0 -1
- package/dist/secrets/manager.d.ts +0 -44
- package/dist/secrets/manager.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/secrets/status.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,CAAA;AAExC,iFAAiF;AACjF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAE7F,MAAM,WAAW,WAAW;IAC1B,sEAAsE;IACtE,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,mEAAmE;IACnE,eAAe,EAAE,MAAM,EAAE,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,kBAAkB,EAAE,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,WAAW,CAgBtG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SecretDeclarations } from './status.js';
|
|
2
|
+
/**
|
|
3
|
+
* Shared set-time checks for secret writes, used by both the CLI commands and
|
|
4
|
+
* the dev-console HTTP handlers so the two surfaces cannot drift.
|
|
5
|
+
* (Name-format validation is `validateSecretName` from @botpress/runtime.)
|
|
6
|
+
*/
|
|
7
|
+
/** Throws when `key` is not declared in the `secrets` field of agent.config.ts. */
|
|
8
|
+
export declare function assertDeclaredSecret(key: string, declared: SecretDeclarations): void;
|
|
9
|
+
/** Trims the value; throws on empty/whitespace-only. Never echoes the value. */
|
|
10
|
+
export declare function normalizeSecretValue(key: string, value: string): string;
|
|
11
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/secrets/validation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAErD;;;;GAIG;AAEH,mFAAmF;AACnF,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,GAAG,IAAI,CAapF;AAED,gFAAgF;AAChF,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAUvE"}
|
package/dist/templates/README.md
CHANGED
|
@@ -57,6 +57,10 @@ Text files (`.ts`, `.json`, `.md`, etc.) get substitution. Binary files are copi
|
|
|
57
57
|
- `.gitignore` — generated/runtime outputs and local-only files
|
|
58
58
|
- `CLAUDE.md` and `AGENTS.md` — assistant instructions
|
|
59
59
|
|
|
60
|
+
Templates may include a project-root `.adkignore` when generated files,
|
|
61
|
+
fixtures, or draft source files under `src/` should be excluded from ADK
|
|
62
|
+
primitive scanning and `adk dev` hot reload.
|
|
63
|
+
|
|
60
64
|
`agent.json` is not created during unlinked init. It is written when the project is linked to a prod bot.
|
|
61
65
|
|
|
62
66
|
## Available Templates
|
|
@@ -79,13 +83,14 @@ Text files (`.ts`, `.json`, `.md`, etc.) get substitution. Binary files are copi
|
|
|
79
83
|
5. Use `{{projectName}}`, `{{runtimeVersion}}`, `{{packageManager}}` for substitution
|
|
80
84
|
6. For unused primitives, use contextual commented-out examples relevant to the template's use case
|
|
81
85
|
7. Dependencies go in `template.config.json`'s `dependencies.integrations` field so `adk integrations add` resolves real versions
|
|
82
|
-
8. Only add `package.json`, `tsconfig.json`, or `.
|
|
86
|
+
8. Only add `package.json`, `tsconfig.json`, `.gitignore`, or `.adkignore` when the template truly needs project-specific behavior
|
|
83
87
|
|
|
84
88
|
### Template Structure
|
|
85
89
|
|
|
86
90
|
```
|
|
87
91
|
templates/<name>/
|
|
88
92
|
├── agent.config.ts # Use {{projectName}}, empty integrations: {}
|
|
93
|
+
├── .adkignore # Optional source-scan exclusions
|
|
89
94
|
├── README.md # Use {{projectName}} and {{packageManager}}
|
|
90
95
|
└── src/
|
|
91
96
|
├── actions/ # Real files or index.ts placeholder
|
|
@@ -30,6 +30,11 @@ A Botpress Agent built with the ADK.
|
|
|
30
30
|
- `src/triggers/` - Define event subscriptions
|
|
31
31
|
- `src/knowledge/` - Add knowledge base files
|
|
32
32
|
|
|
33
|
+
## Ignoring Source Files
|
|
34
|
+
|
|
35
|
+
Create `.adkignore` at the project root to exclude generated files, fixtures, or
|
|
36
|
+
drafts under `src/` from ADK primitive scanning and `adk dev` hot reload.
|
|
37
|
+
|
|
33
38
|
## Learn More
|
|
34
39
|
|
|
35
40
|
- [ADK Documentation](https://botpress.com/docs/adk)
|
|
@@ -43,6 +43,11 @@ A support bot built with the Botpress ADK. It handles common questions autonomou
|
|
|
43
43
|
- `src/workflows/` — Add long-running workflows here
|
|
44
44
|
- `src/triggers/` — Add event-driven triggers here
|
|
45
45
|
|
|
46
|
+
## Ignoring Source Files
|
|
47
|
+
|
|
48
|
+
Create `.adkignore` at the project root to exclude generated files, fixtures, or
|
|
49
|
+
drafts under `src/` from ADK primitive scanning and `adk dev` hot reload.
|
|
50
|
+
|
|
46
51
|
## Customization
|
|
47
52
|
|
|
48
53
|
### Changing the Escalation Conditions
|
|
@@ -79,6 +79,11 @@ adk integrations add sendgrid@latest
|
|
|
79
79
|
- `src/conversations/` -- Unused (backend agent)
|
|
80
80
|
- `src/knowledge/` -- Unused (no RAG needed)
|
|
81
81
|
|
|
82
|
+
## Ignoring Source Files
|
|
83
|
+
|
|
84
|
+
Create `.adkignore` at the project root to exclude generated files, fixtures, or
|
|
85
|
+
drafts under `src/` from ADK primitive scanning and `adk dev` hot reload.
|
|
86
|
+
|
|
82
87
|
## Learn More
|
|
83
88
|
|
|
84
89
|
- [ADK Documentation](https://botpress.com/docs/adk)
|
|
@@ -36,6 +36,11 @@ A Botpress Agent built with the ADK, pre-configured with chat and webchat integr
|
|
|
36
36
|
- `src/triggers/` - Define event subscriptions
|
|
37
37
|
- `src/knowledge/` - Add knowledge base files
|
|
38
38
|
|
|
39
|
+
## Ignoring Source Files
|
|
40
|
+
|
|
41
|
+
Create `.adkignore` at the project root to exclude generated files, fixtures, or
|
|
42
|
+
drafts under `src/` from ADK primitive scanning and `adk dev` hot reload.
|
|
43
|
+
|
|
39
44
|
## Integrations
|
|
40
45
|
|
|
41
46
|
This agent comes with **chat** and **webchat** integrations enabled, so you can start talking to it right away with `adk chat`.
|
|
@@ -49,6 +49,11 @@ The knowledge base automatically indexes all supported files. After adding new d
|
|
|
49
49
|
- `src/triggers/` - Event subscriptions (extend as needed)
|
|
50
50
|
- `src/workflows/` - Long-running processes (extend as needed)
|
|
51
51
|
|
|
52
|
+
## Ignoring Source Files
|
|
53
|
+
|
|
54
|
+
Create `.adkignore` at the project root to exclude generated files, fixtures, or
|
|
55
|
+
drafts under `src/` from ADK primitive scanning and `adk dev` hot reload.
|
|
56
|
+
|
|
52
57
|
## How Citations Work
|
|
53
58
|
|
|
54
59
|
The conversation handler passes the knowledge base to `execute()`. The AI automatically searches relevant documents when answering questions and cites its sources. This is handled by the Botpress runtime -- no manual citation logic is required.
|
|
@@ -54,6 +54,11 @@ A Slack triage bot built with the Botpress ADK. It monitors channels for help re
|
|
|
54
54
|
- `src/triggers/new-message.ts` - Fires on new Slack messages
|
|
55
55
|
- `src/knowledge/team-directory.md` - Team directory for AI context
|
|
56
56
|
|
|
57
|
+
## Ignoring Source Files
|
|
58
|
+
|
|
59
|
+
Create `.adkignore` at the project root to exclude generated files, fixtures, or
|
|
60
|
+
drafts under `src/` from ADK primitive scanning and `adk dev` hot reload.
|
|
61
|
+
|
|
57
62
|
## Customization
|
|
58
63
|
|
|
59
64
|
### Adding Categories
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Project-root ignore file for ADK source scanning and hot reload. */
|
|
2
|
+
export declare const ADK_IGNORE_FILE = ".adkignore";
|
|
3
|
+
export type AdkIgnoreMatcher = {
|
|
4
|
+
hasRules: boolean;
|
|
5
|
+
ignores: (relativePath: string) => boolean;
|
|
6
|
+
canReincludeDescendant: (relativeDirectoryPath: string) => boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function loadAdkIgnoreMatcher(projectPath: string): Promise<AdkIgnoreMatcher>;
|
|
9
|
+
export declare function loadAdkIgnoreMatcherSync(projectPath: string): AdkIgnoreMatcher;
|
|
10
|
+
/**
|
|
11
|
+
* Parse gitignore-like rules relative to the project root.
|
|
12
|
+
*
|
|
13
|
+
* Supported rules cover comments, negation with !, leading slash anchoring,
|
|
14
|
+
* trailing slash directory patterns, *, **, and ?. Later matches win.
|
|
15
|
+
*/
|
|
16
|
+
export declare function parseAdkIgnore(contents: string): AdkIgnoreMatcher;
|
|
17
|
+
//# sourceMappingURL=adk-ignore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adk-ignore.d.ts","sourceRoot":"","sources":["../../src/utils/adk-ignore.ts"],"names":[],"mappings":"AAIA,uEAAuE;AACvE,eAAO,MAAM,eAAe,eAAe,CAAA;AAU3C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAA;IAC1C,sBAAsB,EAAE,CAAC,qBAAqB,EAAE,MAAM,KAAK,OAAO,CAAA;CACnE,CAAA;AAQD,wBAAsB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAMzF;AAED,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,gBAAgB,CAM9E;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,CAyCjE"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Utility for ensuring consistent key ordering in JSON files
|
|
3
3
|
*/
|
|
4
4
|
export declare const agentInfoKeyOrder: readonly ["botId", "workspaceId", "apiUrl"];
|
|
5
|
-
export declare const agentLocalInfoKeyOrder: readonly ["botId", "workspaceId", "apiUrl", "devId"];
|
|
5
|
+
export declare const agentLocalInfoKeyOrder: readonly ["botId", "workspaceId", "apiUrl", "devId", "tunnelId"];
|
|
6
6
|
export declare const dependenciesKeyOrder: readonly ["integrations"];
|
|
7
7
|
export declare const integrationKeyOrder: readonly ["version", "enabled", "configurationType", "config"];
|
|
8
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-ordering.d.ts","sourceRoot":"","sources":["../../src/utils/json-ordering.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,iBAAiB,6CAA8C,CAAA;AAC5E,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"json-ordering.d.ts","sourceRoot":"","sources":["../../src/utils/json-ordering.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,iBAAiB,6CAA8C,CAAA;AAC5E,eAAO,MAAM,sBAAsB,kEAAmE,CAAA;AACtG,eAAO,MAAM,oBAAoB,2BAA4B,CAAA;AAC7D,eAAO,MAAM,mBAAmB,gEAAiE,CAAA;AAEjG;;GAEG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAgCvG;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAYnG;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClE,GAAG,EAAE,CAAC,EACN,QAAQ,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,EAC/B,KAAK,GAAE,MAAM,GAAG,MAAU,GACzB,MAAM,CAcR"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSONSchema7 } from 'json-schema';
|
|
2
|
+
/**
|
|
3
|
+
* json-schema-ref-parser's `cwd()` does `if (typeof window !== 'undefined') return
|
|
4
|
+
* location.href`, so a bare `window` shim with no `location` (e.g. @opentui's TUI,
|
|
5
|
+
* now that build/deploy run in-process) throws `ReferenceError: location is not
|
|
6
|
+
* defined`. We only resolve internal `$ref`s, so the base is unused — give
|
|
7
|
+
* `location` any valid href so the read can't throw. Idempotent and unrestored
|
|
8
|
+
* (safe under the concurrent derefs in `records.mapValuesAsync`).
|
|
9
|
+
*/
|
|
10
|
+
export declare const ensureRefParserCwdSafe: () => void;
|
|
11
|
+
/**
|
|
12
|
+
* Dereference INTERNAL `$ref`/`$defs` only (external/file/http off). Single deref
|
|
13
|
+
* entry point for codegen and deploy — route callers here so the unguarded
|
|
14
|
+
* variant (which throws under the TUI, see above) can't be reintroduced.
|
|
15
|
+
*/
|
|
16
|
+
export declare const dereferenceSchema: (schema: JSONSchema7) => Promise<JSONSchema7>;
|
|
17
|
+
//# sourceMappingURL=ref-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ref-parser.d.ts","sourceRoot":"","sources":["../../src/utils/ref-parser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,QAAO,IAKzC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAU,QAAQ,WAAW,KAAG,OAAO,CAAC,WAAW,CAShF,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Source Map Optimizer
|
|
3
3
|
*
|
|
4
|
-
* This module optimizes source maps generated by
|
|
4
|
+
* This module optimizes source maps generated by native ADK build/dev bundling
|
|
5
5
|
* by removing sources that fall outside the agent's src directory.
|
|
6
6
|
*
|
|
7
7
|
* ## Problem
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* 2. Decode the VLQ mappings in a single pass, retaining only the segments that
|
|
19
19
|
* reference a kept source (plus generated-column-only markers)
|
|
20
20
|
* 3. Re-encode the (tiny) retained set with compacted source/name indices
|
|
21
|
-
* 4. Save both an optimized .map file AND inline it into the
|
|
21
|
+
* 4. Save both an optimized .map file AND inline it into the bundle
|
|
22
22
|
*
|
|
23
23
|
* ## What is VLQ?
|
|
24
24
|
* Variable Length Quantity (VLQ) is a compact encoding format used in source maps.
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
*/
|
|
48
48
|
export interface SourceMapOptimizeOptions {
|
|
49
49
|
/**
|
|
50
|
-
* Path to the source map file
|
|
50
|
+
* Path to the source map file.
|
|
51
51
|
*/
|
|
52
52
|
sourceMapPath: string;
|
|
53
53
|
/**
|
|
@@ -65,7 +65,7 @@ export interface SourceMapOptimizeOptions {
|
|
|
65
65
|
*
|
|
66
66
|
* The optimized source map is both:
|
|
67
67
|
* 1. Written to the .map file (for external reference)
|
|
68
|
-
* 2. Inlined as base64 into the
|
|
68
|
+
* 2. Inlined as base64 into the bundle (for runtime debugging)
|
|
69
69
|
*
|
|
70
70
|
* We inline the source map because after optimization it's tiny (usually <1MB),
|
|
71
71
|
* which makes it much easier for tools like VSCode and Chrome DevTools to load
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/adk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.0",
|
|
4
4
|
"description": "Core ADK library for building AI agents on Botpress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adk",
|
|
@@ -38,10 +38,6 @@
|
|
|
38
38
|
"types": "./dist/agent0/index.d.ts",
|
|
39
39
|
"import": "./dist/agent0/index.js"
|
|
40
40
|
},
|
|
41
|
-
"./internal/bp-cli": {
|
|
42
|
-
"types": "./dist/commands/bp-cli.d.ts",
|
|
43
|
-
"import": "./dist/commands/bp-cli.js"
|
|
44
|
-
},
|
|
45
41
|
"./package.json": "./package.json",
|
|
46
42
|
"./schemas/*": "./schemas/*"
|
|
47
43
|
},
|
|
@@ -57,22 +53,25 @@
|
|
|
57
53
|
"check:type": "tsc --noEmit"
|
|
58
54
|
},
|
|
59
55
|
"dependencies": {
|
|
56
|
+
"@apidevtools/json-schema-ref-parser": "^11.9.3",
|
|
60
57
|
"@botpress/chat": "~0.5.5",
|
|
61
|
-
"@botpress/
|
|
62
|
-
"@botpress/client": "~1.46.0",
|
|
58
|
+
"@botpress/client": "~1.49.0",
|
|
63
59
|
"@botpress/cognitive": "~0.6.0",
|
|
64
|
-
"@botpress/runtime": "^
|
|
65
|
-
"@botpress/sdk": "~6.
|
|
60
|
+
"@botpress/runtime": "^3.0.0-beta.0",
|
|
61
|
+
"@botpress/sdk": "~6.13.3",
|
|
66
62
|
"@bpinternal/jex": "^1.2.4",
|
|
63
|
+
"@bpinternal/tunnel": "0.1.25",
|
|
67
64
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
68
65
|
"@parcel/watcher": "^2.5.1",
|
|
69
66
|
"debug": "^4.4.3",
|
|
70
67
|
"dedent": "^1.7.1",
|
|
71
68
|
"execa": "9.6.1",
|
|
72
69
|
"glob": "^11.1.0",
|
|
70
|
+
"json-schema": "^0.4.0",
|
|
73
71
|
"luxon": "^3.7.2",
|
|
74
|
-
"opencode-ai": "1.
|
|
72
|
+
"opencode-ai": "1.17.11",
|
|
75
73
|
"oxfmt": "^0.41.0",
|
|
74
|
+
"prettier": "^3.8.0",
|
|
76
75
|
"semver": "^7.7.2",
|
|
77
76
|
"tree-kill": "^1.2.2",
|
|
78
77
|
"ts-morph": "^27.0.2"
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface BpCliCredentials {
|
|
2
|
-
token: string;
|
|
3
|
-
workspaceId: string;
|
|
4
|
-
apiUrl: string;
|
|
5
|
-
botId?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class BpCliImporter {
|
|
8
|
-
private bpCachePath;
|
|
9
|
-
constructor();
|
|
10
|
-
hasBpCliCredentials(): Promise<boolean>;
|
|
11
|
-
getBpCliCredentials(): Promise<BpCliCredentials | null>;
|
|
12
|
-
importFromBpCli(profileName?: string): Promise<boolean>;
|
|
13
|
-
}
|
|
14
|
-
export declare const bpCliImporter: BpCliImporter;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=bp-cli-import.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bp-cli-import.d.ts","sourceRoot":"","sources":["../../src/auth/bp-cli-import.ts"],"names":[],"mappings":"AAKA,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,qBAAa,aAAa;IACxB,OAAO,CAAC,WAAW,CAAQ;;IAOrB,mBAAmB,IAAI,OAAO,CAAC,OAAO,CAAC;IASvC,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAgBvD,eAAe,CAAC,WAAW,GAAE,MAAkB,GAAG,OAAO,CAAC,OAAO,CAAC;CAkCzE;AAED,eAAO,MAAM,aAAa,eAAsB,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseCommand } from './base-command.js';
|
|
2
|
-
export interface BpAddCommandOptions {
|
|
3
|
-
resource: string;
|
|
4
|
-
botPath: string;
|
|
5
|
-
workspaceId: string;
|
|
6
|
-
credentials: {
|
|
7
|
-
token: string;
|
|
8
|
-
apiUrl: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export declare class BpAddCommand extends BaseCommand<never, void> {
|
|
12
|
-
private options;
|
|
13
|
-
private childProcess;
|
|
14
|
-
private killed;
|
|
15
|
-
constructor(options: BpAddCommandOptions);
|
|
16
|
-
run(): Promise<void>;
|
|
17
|
-
kill(signal?: NodeJS.Signals): void;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=bp-add-command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bp-add-command.d.ts","sourceRoot":"","sources":["../../src/commands/bp-add-command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE;QACX,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;CACF;AAED,qBAAa,YAAa,SAAQ,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC;IAI5C,OAAO,CAAC,OAAO;IAH3B,OAAO,CAAC,YAAY,CAA6B;IACjD,OAAO,CAAC,MAAM,CAAQ;gBAEF,OAAO,EAAE,mBAAmB;IAI1C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAkE1B,IAAI,CAAC,MAAM,GAAE,MAAM,CAAC,OAAmB,GAAG,IAAI;CAM/C"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseCommand } from './base-command.js';
|
|
2
|
-
export interface BpBuildCommandOptions {
|
|
3
|
-
botPath: string;
|
|
4
|
-
}
|
|
5
|
-
export declare class BpBuildCommand extends BaseCommand<never, void> {
|
|
6
|
-
private options;
|
|
7
|
-
private childProcess;
|
|
8
|
-
private killed;
|
|
9
|
-
constructor(options: BpBuildCommandOptions);
|
|
10
|
-
run(): Promise<void>;
|
|
11
|
-
private optimizeSourceMapIfExists;
|
|
12
|
-
kill(signal?: NodeJS.Signals): void;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=bp-build-command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bp-build-command.d.ts","sourceRoot":"","sources":["../../src/commands/bp-build-command.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAG/C,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,qBAAa,cAAe,SAAQ,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC;IAI9C,OAAO,CAAC,OAAO;IAH3B,OAAO,CAAC,YAAY,CAA6B;IACjD,OAAO,CAAC,MAAM,CAAQ;gBAEF,OAAO,EAAE,qBAAqB;IAI5C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;YAuDZ,yBAAyB;IAqBvC,IAAI,CAAC,MAAM,GAAE,MAAM,CAAC,OAAmB,GAAG,IAAI;CAM/C"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseCommand } from './base-command.js';
|
|
2
|
-
export interface BpChatCommandOptions {
|
|
3
|
-
botId: string;
|
|
4
|
-
workspaceId: string;
|
|
5
|
-
credentials: {
|
|
6
|
-
token: string;
|
|
7
|
-
apiUrl: string;
|
|
8
|
-
};
|
|
9
|
-
projectPath?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare class BpChatCommand extends BaseCommand<never> {
|
|
12
|
-
private options;
|
|
13
|
-
private childProcess;
|
|
14
|
-
constructor(options: BpChatCommandOptions);
|
|
15
|
-
run(): Promise<void>;
|
|
16
|
-
kill(signal?: NodeJS.Signals | number): void;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=bp-chat-command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bp-chat-command.d.ts","sourceRoot":"","sources":["../../src/commands/bp-chat-command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE;QACX,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IACD,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,qBAAa,aAAc,SAAQ,WAAW,CAAC,KAAK,CAAC;IAGvC,OAAO,CAAC,OAAO;IAF3B,OAAO,CAAC,YAAY,CAA6B;gBAE7B,OAAO,EAAE,oBAAoB;IAI3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAuC1B,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,OAAO,GAAG,MAAM,GAAG,IAAI;CAK7C"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface BpCliInfo {
|
|
2
|
-
path: string;
|
|
3
|
-
version: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const BP_CLI_VERSION: string;
|
|
6
|
-
export declare const BP_CLI_INSTALL_ALL: string;
|
|
7
|
-
export declare const BP_CLI_INSTALL_DIR: string;
|
|
8
|
-
export declare const BP_CLI_BIN_PATH: string;
|
|
9
|
-
/**
|
|
10
|
-
* Get bp CLI info (path and version)
|
|
11
|
-
*/
|
|
12
|
-
export declare function getBpCli(): BpCliInfo;
|
|
13
|
-
export declare function getBpCliEnvironment(overrides?: Record<string, string | undefined>): NodeJS.ProcessEnv;
|
|
14
|
-
//# sourceMappingURL=bp-cli.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bp-cli.d.ts","sourceRoot":"","sources":["../../src/commands/bp-cli.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB;AAKD,eAAO,MAAM,cAAc,QAAqB,CAAA;AAChD,eAAO,MAAM,kBAAkB,QAA4C,CAAA;AAC3E,eAAO,MAAM,kBAAkB,QAAgD,CAAA;AAC/E,eAAO,MAAM,eAAe,QAA8E,CAAA;AAgB1G;;GAEG;AACH,wBAAgB,QAAQ,IAAI,SAAS,CAuBpC;AAED,wBAAgB,mBAAmB,CAAC,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAM,GAAG,MAAM,CAAC,UAAU,CAazG"}
|
package/dist/commands/bp-cli.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
function __accessProp(key) {
|
|
8
|
-
return this[key];
|
|
9
|
-
}
|
|
10
|
-
var __toESMCache_node;
|
|
11
|
-
var __toESMCache_esm;
|
|
12
|
-
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
-
var canCache = mod != null && typeof mod === "object";
|
|
14
|
-
if (canCache) {
|
|
15
|
-
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
16
|
-
var cached = cache.get(mod);
|
|
17
|
-
if (cached)
|
|
18
|
-
return cached;
|
|
19
|
-
}
|
|
20
|
-
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
21
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
|
-
for (let key of __getOwnPropNames(mod))
|
|
23
|
-
if (!__hasOwnProp.call(to, key))
|
|
24
|
-
__defProp(to, key, {
|
|
25
|
-
get: __accessProp.bind(mod, key),
|
|
26
|
-
enumerable: true
|
|
27
|
-
});
|
|
28
|
-
if (canCache)
|
|
29
|
-
cache.set(mod, to);
|
|
30
|
-
return to;
|
|
31
|
-
};
|
|
32
|
-
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
33
|
-
var __returnValue = (v) => v;
|
|
34
|
-
function __exportSetter(name, newValue) {
|
|
35
|
-
this[name] = __returnValue.bind(null, newValue);
|
|
36
|
-
}
|
|
37
|
-
var __export = (target, all) => {
|
|
38
|
-
for (var name in all)
|
|
39
|
-
__defProp(target, name, {
|
|
40
|
-
get: all[name],
|
|
41
|
-
enumerable: true,
|
|
42
|
-
configurable: true,
|
|
43
|
-
set: __exportSetter.bind(all, name)
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
47
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
48
|
-
|
|
49
|
-
// ../analytics/src/errors.ts
|
|
50
|
-
function isAdkError(error) {
|
|
51
|
-
if (error instanceof AdkError)
|
|
52
|
-
return true;
|
|
53
|
-
if (!(error instanceof Error))
|
|
54
|
-
return false;
|
|
55
|
-
return error.constructor?.__IS_ADK_BASE_ERROR === true;
|
|
56
|
-
}
|
|
57
|
-
var AdkError;
|
|
58
|
-
var init_errors = __esm(() => {
|
|
59
|
-
AdkError = class AdkError extends Error {
|
|
60
|
-
static __IS_ADK_BASE_ERROR = true;
|
|
61
|
-
code;
|
|
62
|
-
expected;
|
|
63
|
-
details;
|
|
64
|
-
suggestion;
|
|
65
|
-
constructor(opts) {
|
|
66
|
-
super(opts.message, opts.cause !== undefined ? { cause: opts.cause } : undefined);
|
|
67
|
-
this.name = this.constructor.name;
|
|
68
|
-
this.code = opts.code;
|
|
69
|
-
this.expected = opts.expected ?? false;
|
|
70
|
-
if (opts.details !== undefined) {
|
|
71
|
-
this.details = opts.details;
|
|
72
|
-
}
|
|
73
|
-
if (opts.suggestion !== undefined) {
|
|
74
|
-
this.suggestion = opts.suggestion;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
// ../analytics/src/index.ts
|
|
81
|
-
var init_src = __esm(() => {
|
|
82
|
-
init_errors();
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
// src/commands/bp-cli.ts
|
|
86
|
-
init_src();
|
|
87
|
-
import { existsSync } from "fs";
|
|
88
|
-
import os from "os";
|
|
89
|
-
import path from "path";
|
|
90
|
-
import createDebug from "debug";
|
|
91
|
-
var debug = createDebug("adk:bp-cli");
|
|
92
|
-
var BP_CLI_VERSION = "6.8.6";
|
|
93
|
-
var BP_CLI_INSTALL_ALL = path.join(os.homedir(), ".adk", `bp-cli`);
|
|
94
|
-
var BP_CLI_INSTALL_DIR = path.join(BP_CLI_INSTALL_ALL, BP_CLI_VERSION);
|
|
95
|
-
var BP_CLI_BIN_PATH = path.join(BP_CLI_INSTALL_DIR, "node_modules", "@botpress", "cli", "bin.js");
|
|
96
|
-
var BP_CLIENT_ENV_KEYS = [
|
|
97
|
-
"BP_API_URL",
|
|
98
|
-
"BP_TOKEN",
|
|
99
|
-
"BP_WORKSPACE_ID",
|
|
100
|
-
"BP_BOT_ID",
|
|
101
|
-
"BP_INTEGRATION_ID",
|
|
102
|
-
"BP_INTEGRATION_ALIAS"
|
|
103
|
-
];
|
|
104
|
-
debug("BP_CLI_VERSION=%s (injected at build time)", BP_CLI_VERSION);
|
|
105
|
-
debug("BP_CLI_INSTALL_ALL=%s", BP_CLI_INSTALL_ALL);
|
|
106
|
-
debug("BP_CLI_INSTALL_DIR=%s", BP_CLI_INSTALL_DIR);
|
|
107
|
-
debug("BP_CLI_BIN_PATH=%s", BP_CLI_BIN_PATH);
|
|
108
|
-
function getBpCli() {
|
|
109
|
-
debug("getBpCli() called");
|
|
110
|
-
debug("checking if BP_CLI_BIN_PATH exists: %s", BP_CLI_BIN_PATH);
|
|
111
|
-
const exists = existsSync(BP_CLI_BIN_PATH);
|
|
112
|
-
debug("BP_CLI_BIN_PATH exists=%s", exists);
|
|
113
|
-
if (!exists) {
|
|
114
|
-
debug("ERROR: bp CLI not found at expected path");
|
|
115
|
-
throw new AdkError({
|
|
116
|
-
code: "INTERNAL_BP_CLI_MISSING",
|
|
117
|
-
message: `@botpress/cli version ${BP_CLI_VERSION} is not installed in the ADK directory "${BP_CLI_INSTALL_DIR}". This is a bug, please report it to the Botpress team.`,
|
|
118
|
-
expected: false
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
const info = {
|
|
122
|
-
path: BP_CLI_BIN_PATH,
|
|
123
|
-
version: BP_CLI_VERSION
|
|
124
|
-
};
|
|
125
|
-
debug("returning BpCliInfo: %O", info);
|
|
126
|
-
return info;
|
|
127
|
-
}
|
|
128
|
-
function getBpCliEnvironment(overrides = {}) {
|
|
129
|
-
const env = { ...process.env };
|
|
130
|
-
for (const key of BP_CLIENT_ENV_KEYS) {
|
|
131
|
-
delete env[key];
|
|
132
|
-
}
|
|
133
|
-
return {
|
|
134
|
-
...env,
|
|
135
|
-
...overrides
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
export {
|
|
139
|
-
getBpCliEnvironment,
|
|
140
|
-
getBpCli,
|
|
141
|
-
BP_CLI_VERSION,
|
|
142
|
-
BP_CLI_INSTALL_DIR,
|
|
143
|
-
BP_CLI_INSTALL_ALL,
|
|
144
|
-
BP_CLI_BIN_PATH
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
//# debugId=7A5941364504441B64756E2164756E21
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../analytics/src/errors.ts", "../../analytics/src/index.ts", "../src/commands/bp-cli.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"/**\n * Shared base error for ADK packages. Lives in `@botpress/analytics` because\n * it's the dependency-light package every surface already shares (cli, adk,\n * ui) — so all typed errors can genuinely inherit one base instead of\n * mirroring its shape.\n *\n * The policy lives in docs/ERROR-HANDLING.md. The short version: every error\n * we *intend* to throw should carry a stable `code` (so PostHog error\n * tracking can slice issues by code) and an `expected` flag separating\n * user/environment conditions (bad input, not logged in, network down — render\n * a friendly message, low alert priority) from internal bugs (invariant\n * violations — full stack, page someone).\n *\n * The runtime package is out of scope and keeps its own `Errors.AbstractError`\n * hierarchy. The adk typed families (`DependencyError`, `Agent0*Error`) extend\n * this base; new code should start here.\n */\nexport class AdkError<Code extends string = string> extends Error {\n /**\n * Marker for cross-module-instance checks — `instanceof` breaks when a\n * package is duplicated in the dependency graph.\n * @internal\n */\n public static readonly __IS_ADK_BASE_ERROR = true\n\n /**\n * Stable SCREAMING_SNAKE_CASE identifier, e.g. 'BOT_NOT_FOUND'. Subclasses\n * pin `Code` to a literal union (`class EvalRunnerError extends\n * AdkError<EvalErrorCode>`) so typos are compile errors and `code` narrows\n * in switches.\n */\n readonly code: Code\n /**\n * True for user/environment conditions the developer can fix themselves\n * (validation, auth, connectivity). False for internal bugs. Defaults to\n * false so unclassified errors surface as bugs until someone triages them.\n */\n readonly expected: boolean\n /** Structured context. Sanitized before any telemetry leaves the machine. */\n readonly details?: Record<string, unknown>\n /** Actionable next step shown to the user, e.g. \"Run 'adk login' first.\" */\n readonly suggestion?: string\n\n constructor(opts: {\n code: Code\n message: string\n expected?: boolean\n details?: Record<string, unknown>\n suggestion?: string\n cause?: unknown\n }) {\n super(opts.message, opts.cause !== undefined ? { cause: opts.cause } : undefined)\n this.name = this.constructor.name\n this.code = opts.code\n this.expected = opts.expected ?? false\n // Conditional assignment keeps the optional fields absent-not-undefined,\n // which downstream tsconfigs with exactOptionalPropertyTypes require.\n if (opts.details !== undefined) {\n this.details = opts.details\n }\n if (opts.suggestion !== undefined) {\n this.suggestion = opts.suggestion\n }\n }\n}\n\n/**\n * Duck-typed guard that survives duplicated module instances in the\n * dependency graph, where `instanceof AdkError` returns false for an error\n * constructed from another copy of this module. No manual prototype walking\n * needed: static properties are inherited through the constructor chain, so\n * a subclass's constructor resolves the marker in one lookup.\n */\nexport function isAdkError(error: unknown): error is AdkError {\n if (error instanceof AdkError) return true\n if (!(error instanceof Error)) return false\n return (error.constructor as unknown as Record<string, unknown> | undefined)?.__IS_ADK_BASE_ERROR === true\n}\n",
|
|
6
|
-
"export { EventSchemas } from './events'\nexport type { EventName, EventProperties, TrackFn } from './events'\nexport { POSTHOG_API_KEY, POSTHOG_HOST } from './constants'\nexport { sanitizeErrorMessage, sanitizeStackTrace, toSanitizedError } from './sanitize'\nexport { AdkError, isAdkError } from './errors'\n",
|
|
7
|
-
"import { existsSync } from 'fs'\nimport os from 'os'\nimport path from 'path'\nimport createDebug from 'debug'\nimport { AdkError } from '@botpress/analytics'\n\nconst debug = createDebug('adk:bp-cli')\n\nexport interface BpCliInfo {\n path: string\n version: string\n}\n\n// This constant is injected at build time by esbuild's define\ndeclare const __BP_CLI_VERSION__: string\n\nexport const BP_CLI_VERSION = __BP_CLI_VERSION__\nexport const BP_CLI_INSTALL_ALL = path.join(os.homedir(), '.adk', `bp-cli`)\nexport const BP_CLI_INSTALL_DIR = path.join(BP_CLI_INSTALL_ALL, BP_CLI_VERSION)\nexport const BP_CLI_BIN_PATH = path.join(BP_CLI_INSTALL_DIR, 'node_modules', '@botpress', 'cli', 'bin.js')\n\nconst BP_CLIENT_ENV_KEYS = [\n 'BP_API_URL',\n 'BP_TOKEN',\n 'BP_WORKSPACE_ID',\n 'BP_BOT_ID',\n 'BP_INTEGRATION_ID',\n 'BP_INTEGRATION_ALIAS',\n] as const\n\ndebug('BP_CLI_VERSION=%s (injected at build time)', BP_CLI_VERSION)\ndebug('BP_CLI_INSTALL_ALL=%s', BP_CLI_INSTALL_ALL)\ndebug('BP_CLI_INSTALL_DIR=%s', BP_CLI_INSTALL_DIR)\ndebug('BP_CLI_BIN_PATH=%s', BP_CLI_BIN_PATH)\n\n/**\n * Get bp CLI info (path and version)\n */\nexport function getBpCli(): BpCliInfo {\n debug('getBpCli() called')\n debug('checking if BP_CLI_BIN_PATH exists: %s', BP_CLI_BIN_PATH)\n\n const exists = existsSync(BP_CLI_BIN_PATH)\n debug('BP_CLI_BIN_PATH exists=%s', exists)\n\n if (!exists) {\n debug('ERROR: bp CLI not found at expected path')\n throw new AdkError({\n code: 'INTERNAL_BP_CLI_MISSING',\n message: `@botpress/cli version ${BP_CLI_VERSION} is not installed in the ADK directory \"${BP_CLI_INSTALL_DIR}\". This is a bug, please report it to the Botpress team.`,\n expected: false,\n })\n }\n\n const info = {\n path: BP_CLI_BIN_PATH,\n version: BP_CLI_VERSION,\n }\n\n debug('returning BpCliInfo: %O', info)\n return info\n}\n\nexport function getBpCliEnvironment(overrides: Record<string, string | undefined> = {}): NodeJS.ProcessEnv {\n // Callers must pass this with execa's extendEnv: false; otherwise execa merges\n // process.env back in after these stale Botpress client keys are removed.\n const env = { ...process.env }\n\n for (const key of BP_CLIENT_ENV_KEYS) {\n delete env[key]\n }\n\n return {\n ...env,\n ...overrides,\n }\n}\n"
|
|
8
|
-
],
|
|
9
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyEO,SAAS,UAAU,CAAC,OAAmC;AAAA,EAC5D,IAAI,iBAAiB;AAAA,IAAU,OAAO;AAAA,EACtC,IAAI,EAAE,iBAAiB;AAAA,IAAQ,OAAO;AAAA,EACtC,OAAQ,MAAM,aAAgE,wBAAwB;AAAA;AAAA,IA3D3F;AAAA;AAAA,aAAN,MAAM,iBAA+C,MAAM;AAAA,WAMzC,sBAAsB;AAAA,IAQpC;AAAA,IAMA;AAAA,IAEA;AAAA,IAEA;AAAA,IAET,WAAW,CAAC,MAOT;AAAA,MACD,MAAM,KAAK,SAAS,KAAK,UAAU,YAAY,EAAE,OAAO,KAAK,MAAM,IAAI,SAAS;AAAA,MAChF,KAAK,OAAO,KAAK,YAAY;AAAA,MAC7B,KAAK,OAAO,KAAK;AAAA,MACjB,KAAK,WAAW,KAAK,YAAY;AAAA,MAGjC,IAAI,KAAK,YAAY,WAAW;AAAA,QAC9B,KAAK,UAAU,KAAK;AAAA,MACtB;AAAA,MACA,IAAI,KAAK,eAAe,WAAW;AAAA,QACjC,KAAK,aAAa,KAAK;AAAA,MACzB;AAAA;AAAA,EAEJ;AAAA;;;;EC5DA;AAAA;;;ACAA;AAJA;AACA;AACA;AACA;AAGA,IAAM,QAAQ,YAAY,YAAY;AAU/B,IAAM,iBAAiB;AACvB,IAAM,qBAAqB,KAAK,KAAK,GAAG,QAAQ,GAAG,QAAQ,QAAQ;AACnE,IAAM,qBAAqB,KAAK,KAAK,oBAAoB,cAAc;AACvE,IAAM,kBAAkB,KAAK,KAAK,oBAAoB,gBAAgB,aAAa,OAAO,QAAQ;AAEzG,IAAM,qBAAqB;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAM,8CAA8C,cAAc;AAClE,MAAM,yBAAyB,kBAAkB;AACjD,MAAM,yBAAyB,kBAAkB;AACjD,MAAM,sBAAsB,eAAe;AAKpC,SAAS,QAAQ,GAAc;AAAA,EACpC,MAAM,mBAAmB;AAAA,EACzB,MAAM,0CAA0C,eAAe;AAAA,EAE/D,MAAM,SAAS,WAAW,eAAe;AAAA,EACzC,MAAM,6BAA6B,MAAM;AAAA,EAEzC,IAAI,CAAC,QAAQ;AAAA,IACX,MAAM,0CAA0C;AAAA,IAChD,MAAM,IAAI,SAAS;AAAA,MACjB,MAAM;AAAA,MACN,SAAS,yBAAyB,yDAAyD;AAAA,MAC3F,UAAU;AAAA,IACZ,CAAC;AAAA,EACH;AAAA,EAEA,MAAM,OAAO;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EAEA,MAAM,2BAA2B,IAAI;AAAA,EACrC,OAAO;AAAA;AAGF,SAAS,mBAAmB,CAAC,YAAgD,CAAC,GAAsB;AAAA,EAGzG,MAAM,MAAM,KAAK,QAAQ,IAAI;AAAA,EAE7B,WAAW,OAAO,oBAAoB;AAAA,IACpC,OAAO,IAAI;AAAA,EACb;AAAA,EAEA,OAAO;AAAA,OACF;AAAA,OACA;AAAA,EACL;AAAA;",
|
|
10
|
-
"debugId": "7A5941364504441B64756E2164756E21",
|
|
11
|
-
"names": []
|
|
12
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BaseCommand } from './base-command.js';
|
|
2
|
-
export interface BpDeployCommandOptions {
|
|
3
|
-
botPath: string;
|
|
4
|
-
botId: string;
|
|
5
|
-
workspaceId: string;
|
|
6
|
-
credentials: {
|
|
7
|
-
token: string;
|
|
8
|
-
apiUrl: string;
|
|
9
|
-
};
|
|
10
|
-
/** Secret values to pass to bp deploy via --secrets flags */
|
|
11
|
-
secrets?: Record<string, string>;
|
|
12
|
-
}
|
|
13
|
-
export declare class BpDeployCommand extends BaseCommand<never, void> {
|
|
14
|
-
private options;
|
|
15
|
-
private childProcess;
|
|
16
|
-
private killed;
|
|
17
|
-
constructor(options: BpDeployCommandOptions);
|
|
18
|
-
run(): Promise<void>;
|
|
19
|
-
kill(signal?: NodeJS.Signals): void;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=bp-deploy-command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bp-deploy-command.d.ts","sourceRoot":"","sources":["../../src/commands/bp-deploy-command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE;QACX,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IACD,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC;AAED,qBAAa,eAAgB,SAAQ,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC;IAI/C,OAAO,CAAC,OAAO;IAH3B,OAAO,CAAC,YAAY,CAA6B;IACjD,OAAO,CAAC,MAAM,CAAQ;gBAEF,OAAO,EAAE,sBAAsB;IAI7C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAyE1B,IAAI,CAAC,MAAM,GAAE,MAAM,CAAC,OAAmB,GAAG,IAAI;CAM/C"}
|