@botpress/adk 2.0.4 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +8 -88
- package/dist/agent-project/types.d.ts.map +1 -1
- package/dist/agent0/config/schema.d.ts +8 -130
- package/dist/agent0/config/schema.d.ts.map +1 -1
- package/dist/agent0/index.js +280 -63
- package/dist/agent0/index.js.map +17 -14
- 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 +22 -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 +5 -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 +26 -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 +23 -22
- 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/catalog-service.d.ts +2 -0
- package/dist/dependencies/catalog/catalog-service.d.ts.map +1 -1
- package/dist/dependencies/catalog/client-factory.d.ts +7 -10
- package/dist/dependencies/catalog/client-factory.d.ts.map +1 -1
- package/dist/dependencies/catalog/integration-source.d.ts +1 -0
- package/dist/dependencies/catalog/integration-source.d.ts.map +1 -1
- package/dist/dependencies/catalog/interface-source.d.ts +1 -0
- package/dist/dependencies/catalog/interface-source.d.ts.map +1 -1
- package/dist/dependencies/catalog/plugin-source.d.ts +7 -0
- package/dist/dependencies/catalog/plugin-source.d.ts.map +1 -1
- package/dist/dependencies/catalog/resolution-cache.d.ts +8 -6
- package/dist/dependencies/catalog/resolution-cache.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 +502 -267
- package/dist/dependencies/index.js.map +24 -24
- 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 +23 -318
- 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 +23 -491
- package/dist/deploy-manifest/index.d.ts.map +1 -1
- 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 +15846 -10935
- package/dist/index.js.map +128 -48
- package/dist/knowledge/manager.d.ts.map +1 -1
- 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 +11 -12
- 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
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { BaseCommand } from './base-command.js';
|
|
2
|
-
export interface BpDevCommandOptions {
|
|
3
|
-
port: string;
|
|
4
|
-
botPath: string;
|
|
5
|
-
agentPath: string;
|
|
6
|
-
workspaceId: string;
|
|
7
|
-
credentials: {
|
|
8
|
-
token: string;
|
|
9
|
-
apiUrl: string;
|
|
10
|
-
};
|
|
11
|
-
/** The dev bot ID if already known (from agent.local.json) */
|
|
12
|
-
devBotId?: string;
|
|
13
|
-
sourceMap?: boolean;
|
|
14
|
-
/** When `false`, pass `--no-watch` to `bp dev`. Requires @botpress/cli >= 6.8.6. */
|
|
15
|
-
watch?: boolean;
|
|
16
|
-
/** Bot configuration to inject as environment variable */
|
|
17
|
-
configuration?: Record<string, unknown>;
|
|
18
|
-
/** Secret values to inject as SECRET_* environment variables */
|
|
19
|
-
secrets?: Record<string, string>;
|
|
20
|
-
/** Auto-negotiated port for the internal CLI span ingest server (HttpSpanExporter) */
|
|
21
|
-
spanIngestPort: number;
|
|
22
|
-
/** Port for standard OTLP export to external tools (default 4318) */
|
|
23
|
-
otlpPort?: number;
|
|
24
|
-
/** Bot name from agent.config.ts, used for OTLP service.name */
|
|
25
|
-
botName?: string;
|
|
26
|
-
}
|
|
27
|
-
export type BpDevProgressEvent = {
|
|
28
|
-
type: 'generating';
|
|
29
|
-
startTime: number;
|
|
30
|
-
endTime?: number;
|
|
31
|
-
} | {
|
|
32
|
-
type: 'bundling';
|
|
33
|
-
startTime: number;
|
|
34
|
-
endTime?: number;
|
|
35
|
-
data?: {
|
|
36
|
-
buildTime: number;
|
|
37
|
-
};
|
|
38
|
-
} | {
|
|
39
|
-
type: 'deploying';
|
|
40
|
-
startTime: number;
|
|
41
|
-
endTime?: number;
|
|
42
|
-
data?: {
|
|
43
|
-
botId: string;
|
|
44
|
-
tunnelUrl: string;
|
|
45
|
-
};
|
|
46
|
-
} | {
|
|
47
|
-
type: 'listening';
|
|
48
|
-
startTime: number;
|
|
49
|
-
data: {
|
|
50
|
-
port: number;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export declare class BpDevCommand extends BaseCommand<BpDevProgressEvent> {
|
|
54
|
-
private options;
|
|
55
|
-
private childProcess;
|
|
56
|
-
private killed;
|
|
57
|
-
private stderrLines;
|
|
58
|
-
private readonly MAX_STDERR_LINES;
|
|
59
|
-
private progressEvents;
|
|
60
|
-
constructor(options: BpDevCommandOptions);
|
|
61
|
-
run(): Promise<void>;
|
|
62
|
-
private parseOutput;
|
|
63
|
-
private optimizeSourceMapIfExists;
|
|
64
|
-
/**
|
|
65
|
-
* The PID of the spawned `bp dev` child process, or null if not yet started.
|
|
66
|
-
* Used by `adk ps` to display bot runtime process information.
|
|
67
|
-
*/
|
|
68
|
-
get pid(): number | null;
|
|
69
|
-
/**
|
|
70
|
-
* Signal the entire `bp dev` process tree (parent + worker subprocesses).
|
|
71
|
-
*
|
|
72
|
-
* SIGTERM on the direct child alone leaves worker grandchildren holding
|
|
73
|
-
* the dev server port, causing EADDRINUSE on respawn. `tree-kill` walks
|
|
74
|
-
* the process tree via `pgrep` / `taskkill /T` for cross-platform reach.
|
|
75
|
-
*/
|
|
76
|
-
kill(signal?: NodeJS.Signals): void;
|
|
77
|
-
/**
|
|
78
|
-
* Kill the full process tree and wait until the child is reaped.
|
|
79
|
-
*
|
|
80
|
-
* Escalates to SIGKILL if the tree doesn't exit within 2s, so a stuck
|
|
81
|
-
* worker can't block the respawn. Callers can spawn a new instance on
|
|
82
|
-
* the same port immediately after this resolves.
|
|
83
|
-
*/
|
|
84
|
-
waitForExit(): Promise<void>;
|
|
85
|
-
restart(): Promise<BpDevCommand>;
|
|
86
|
-
getProgressEvent(type: BpDevProgressEvent['type']): BpDevProgressEvent | undefined;
|
|
87
|
-
getAllProgressEvents(): BpDevProgressEvent[];
|
|
88
|
-
}
|
|
89
|
-
//# sourceMappingURL=bp-dev-command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bp-dev-command.d.ts","sourceRoot":"","sources":["../../src/commands/bp-dev-command.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAK/C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE;QACX,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IACD,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,oFAAoF;IACpF,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,0DAA0D;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACvC,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,sFAAsF;IACtF,cAAc,EAAE,MAAM,CAAA;IACtB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,kBAAkB,GAC1B;IACE,IAAI,EAAE,YAAY,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,GACD;IACE,IAAI,EAAE,UAAU,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE;QACL,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;CACF,GACD;IACE,IAAI,EAAE,WAAW,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE;QACL,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;CACF,GACD;IACE,IAAI,EAAE,WAAW,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAA;AAEL,qBAAa,YAAa,SAAQ,WAAW,CAAC,kBAAkB,CAAC;IASnD,OAAO,CAAC,OAAO;IAR3B,OAAO,CAAC,YAAY,CAA6B;IACjD,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,WAAW,CAAe;IAClC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAK;IAGtC,OAAO,CAAC,cAAc,CAAiE;gBAEnE,OAAO,EAAE,mBAAmB;IAI1C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA+L1B,OAAO,CAAC,WAAW;YA8GL,yBAAyB;IAqBvC;;;OAGG;IACH,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAEvB;IAED;;;;;;OAMG;IACH,IAAI,CAAC,MAAM,GAAE,MAAM,CAAC,OAAmB,GAAG,IAAI;IAW9C;;;;;;OAMG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAmB5B,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC;IAOtC,gBAAgB,CAAC,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAAG,kBAAkB,GAAG,SAAS;IAIlF,oBAAoB,IAAI,kBAAkB,EAAE;CAG7C"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Marker for `bp dev`'s per-request tunnel-forward failure (logged when a request reaches the
|
|
3
|
-
* tunnel while the local worker is momentarily down — typically the rebuild/restart window).
|
|
4
|
-
* The current `bp dev` output may stop at this prefix; richer versions can append request/cause
|
|
5
|
-
* details after it. Match the prefix only so both shapes are classified the same way.
|
|
6
|
-
*
|
|
7
|
-
* Keep in sync with packages/cli/src/commands/adk-dev-events.ts so fatal stderr
|
|
8
|
-
* classification and non-interactive event normalization recognize the same marker.
|
|
9
|
-
*/
|
|
10
|
-
export declare const REQUEST_HANDLING_ERROR_MARKER: RegExp;
|
|
11
|
-
/**
|
|
12
|
-
* Classify a chunk of `bp dev` stderr as a fatal startup error, or null if not fatal.
|
|
13
|
-
*
|
|
14
|
-
* `econnrefused`/`connection refused` is only treated as fatal (the Botpress API being
|
|
15
|
-
* unreachable) when the chunk is NOT a per-request tunnel-forward failure. A single forwarded
|
|
16
|
-
* request failing because the worker is mid-restart is self-healing and must never tear down the
|
|
17
|
-
* whole dev session. If `bp dev` includes a richer cause chain in that message, it can contain
|
|
18
|
-
* `ECONNREFUSED`, which would otherwise trip this rule.
|
|
19
|
-
*/
|
|
20
|
-
export declare function classifyFatalStderr(text: string, port: string): string | null;
|
|
21
|
-
export interface RecoverableRegistrationFailure {
|
|
22
|
-
/** Integration alias `bp` reported as `registration_failed`. */
|
|
23
|
-
name: string;
|
|
24
|
-
/** `bp`'s `statusReason` for the failure (OAuth, missing config, …); '' when none was printed. */
|
|
25
|
-
reason: string;
|
|
26
|
-
}
|
|
27
|
-
export declare function classifyRecoverableDeployError(text: string): {
|
|
28
|
-
failures: RecoverableRegistrationFailure[];
|
|
29
|
-
} | null;
|
|
30
|
-
//# sourceMappingURL=bp-dev-stderr.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bp-dev-stderr.d.ts","sourceRoot":"","sources":["../../src/commands/bp-dev-stderr.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,QAA8C,CAAA;AAExF;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAkB7E;AA2BD,MAAM,WAAW,8BAA8B;IAC7C,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAA;IACZ,kGAAkG;IAClG,MAAM,EAAE,MAAM,CAAA;CACf;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,QAAQ,EAAE,8BAA8B,EAAE,CAAA;CAAE,GAAG,IAAI,CAgBlH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bp-dev-worker-env.d.ts","sourceRoot":"","sources":["../../src/commands/bp-dev-worker-env.ts"],"names":[],"mappings":"AAAA,KAAK,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;AAkB7C,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAKnF;AAED,wBAAgB,4BAA4B,CAAC,GAAG,GAAE,GAAiB,GAAG,OAAO,CAM5E;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,OAAO,EAAE,GAAG,GAAE,GAAiB,GAAG,OAAO,CAE3F;AAED,wBAAgB,oBAAoB,CAAC,GAAG,GAAE,GAAiB,GAAG,MAAM,CAWnE"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export type Environment = 'dev' | 'prod';
|
|
2
|
-
export declare class SecretsManager {
|
|
3
|
-
private storePath;
|
|
4
|
-
constructor(projectPath: string);
|
|
5
|
-
private readStore;
|
|
6
|
-
private writeStore;
|
|
7
|
-
/**
|
|
8
|
-
* List secret names and their values for the given environment.
|
|
9
|
-
* Returns names only (not values) for display purposes.
|
|
10
|
-
*/
|
|
11
|
-
list(env: Environment): Promise<string[]>;
|
|
12
|
-
/**
|
|
13
|
-
* Get declared secret key-value pairs for the given environment.
|
|
14
|
-
* Used internally to inject into bp dev/deploy.
|
|
15
|
-
*
|
|
16
|
-
* Secrets present in the local store but not listed in `declaredSecrets`
|
|
17
|
-
* (i.e. orphans from a removed declaration) are filtered out so they are
|
|
18
|
-
* never injected into the bot process or forwarded to `bp dev`/`bp deploy`.
|
|
19
|
-
* The local file is not modified — call `delete` to remove a value for good.
|
|
20
|
-
*/
|
|
21
|
-
getAll(env: Environment, declaredSecrets: Record<string, {
|
|
22
|
-
optional?: boolean;
|
|
23
|
-
description?: string;
|
|
24
|
-
}>): Promise<Record<string, string>>;
|
|
25
|
-
/**
|
|
26
|
-
* Set a secret value in the local store.
|
|
27
|
-
*/
|
|
28
|
-
set(key: string, value: string, env: Environment): Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* Delete a secret from the local store.
|
|
31
|
-
*/
|
|
32
|
-
delete(key: string, env: Environment): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* Compare declared secrets against what's stored locally.
|
|
35
|
-
*/
|
|
36
|
-
getMissing(declaredSecrets: Record<string, {
|
|
37
|
-
optional?: boolean;
|
|
38
|
-
description?: string;
|
|
39
|
-
}>, storedSecrets: Record<string, string>): {
|
|
40
|
-
required: string[];
|
|
41
|
-
optional: string[];
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/secrets/manager.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,CAAA;AAExC,qBAAa,cAAc;IACzB,OAAO,CAAC,SAAS,CAAQ;gBAEb,WAAW,EAAE,MAAM;YAIjB,SAAS;YAkDT,UAAU;IAaxB;;;OAGG;IACG,IAAI,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAK/C;;;;;;;;OAQG;IACG,MAAM,CACV,GAAG,EAAE,WAAW,EAChB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAC5E,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAMlC;;OAEG;IACG,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAMtE;;OAEG;IACG,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAM1D;;OAEG;IACH,UAAU,CACR,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,EAC7E,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACpC;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE;CAiB9C"}
|