From 43c5d8e293a7e1c070081bf73f368ae2144872f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Levasseur?= Date: Fri, 28 Nov 2025 20:07:57 -0500 Subject: [PATCH 1/2] chore(cli): better error messages on json parse (#14615) --- packages/cli/package.json | 2 +- .../command-implementations/add-command.ts | 7 ++-- .../command-implementations/global-command.ts | 18 +++++++---- .../command-implementations/init-command.ts | 10 +++--- .../project-command.ts | 12 +++++-- packages/cli/src/utils/cache-utils.ts | 7 +++- packages/cli/src/utils/index.ts | 1 + packages/cli/src/utils/json-utils.ts | 19 +++++++++++ packages/cli/src/utils/pkgjson-utils.ts | 32 +++++++++++++++++-- packages/cli/src/worker/child-entrypoint.ts | 13 +++++++- 10 files changed, 101 insertions(+), 20 deletions(-) create mode 100644 packages/cli/src/utils/json-utils.ts diff --git a/packages/cli/package.json b/packages/cli/package.json index f7496eb2e76..a27e849ad7e 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@botpress/cli", - "version": "4.27.2", + "version": "4.27.3", "description": "Botpress CLI", "scripts": { "build": "pnpm run build:types && pnpm run bundle && pnpm run template:gen", diff --git a/packages/cli/src/command-implementations/add-command.ts b/packages/cli/src/command-implementations/add-command.ts index 8c7120df293..29ee4640954 100644 --- a/packages/cli/src/command-implementations/add-command.ts +++ b/packages/cli/src/command-implementations/add-command.ts @@ -43,7 +43,7 @@ export class AddCommand extends GlobalCommand { } const pkgJson = await utils.pkgJson.readPackageJson(this.argv.installPath).catch((thrown) => { - throw errors.BotpressCLIError.wrap(thrown, 'failed to read package.json file') + throw errors.BotpressCLIError.wrap(thrown, 'Failed to read package.json file') }) if (!pkgJson) { @@ -346,7 +346,10 @@ export class AddCommand extends GlobalCommand { } private async _addDependencyToPackage(packageName: string, targetPackage: InstallablePackage) { - const pkgJson = await utils.pkgJson.readPackageJson(this.argv.installPath) + const pkgJson = await utils.pkgJson.readPackageJson(this.argv.installPath).catch((thrown) => { + throw errors.BotpressCLIError.wrap(thrown, 'Failed to read package.json file') + }) + const version = targetPackage.pkg.path ?? `${targetPackage.type}:${targetPackage.pkg.name}@${targetPackage.pkg.version}` if (!pkgJson) { diff --git a/packages/cli/src/command-implementations/global-command.ts b/packages/cli/src/command-implementations/global-command.ts index c090a24b7ac..ef34284d4ad 100644 --- a/packages/cli/src/command-implementations/global-command.ts +++ b/packages/cli/src/command-implementations/global-command.ts @@ -64,7 +64,7 @@ export abstract class GlobalCommand extends B } protected override async bootstrap() { - const pkgJson = await this.readPkgJson() + const pkgJson = await this.readCLIPkgJson() const versionText = chalk.bold(`v${pkgJson.version}`) this.logger.log(`Botpress CLI ${versionText}`, { prefix: '🤖' }) @@ -134,9 +134,12 @@ export abstract class GlobalCommand extends B throw new errors.BotpressCLIError(`Profile file not found at "${this.globalPaths.abs.profilesPath}"`) } const fileContent = await fs.promises.readFile(this.globalPaths.abs.profilesPath, 'utf-8') - const parsedProfiles = JSON.parse(fileContent) + const jsonParseResult = utils.json.safeParseJson(fileContent) + if (!jsonParseResult.success) { + throw new errors.BotpressCLIError(`Error parsing profiles file: ${jsonParseResult.error.message}`) + } - const zodParseResult = z.record(profileCredentialSchema).safeParse(parsedProfiles) + const zodParseResult = z.record(profileCredentialSchema).safeParse(jsonParseResult.data) if (!zodParseResult.success) { throw errors.BotpressCLIError.wrap(zodParseResult.error, 'Error parsing profiles: ') } @@ -174,7 +177,7 @@ export abstract class GlobalCommand extends B try { this.logger.debug('Checking if cli is up to date') - const pkgJson = await this.readPkgJson() + const pkgJson = await this.readCLIPkgJson() if (!pkgJson.version) { throw new errors.BotpressCLIError('Could not find version in package.json') } @@ -199,12 +202,15 @@ export abstract class GlobalCommand extends B } } - protected async readPkgJson(): Promise { + protected async readCLIPkgJson(): Promise { if (this._pkgJson) { return this._pkgJson } const { cliRootDir } = this.globalPaths.abs - const pkgJson = await utils.pkgJson.readPackageJson(cliRootDir) + const pkgJson = await utils.pkgJson.readPackageJson(cliRootDir).catch((thrown) => { + throw errors.BotpressCLIError.wrap(thrown, `Failed to read CLI package.json file at "${cliRootDir}"`) + }) + if (!pkgJson) { throw new errors.BotpressCLIError(`Could not find package.json at "${cliRootDir}"`) } diff --git a/packages/cli/src/command-implementations/init-command.ts b/packages/cli/src/command-implementations/init-command.ts index 26527cf6c73..65fc6a32529 100644 --- a/packages/cli/src/command-implementations/init-command.ts +++ b/packages/cli/src/command-implementations/init-command.ts @@ -198,13 +198,15 @@ export class InitCommand extends GlobalCommand { await fs.promises.cp(srcDir, destination, { recursive: true }) - const pkgJsonPath = pathlib.join(destination, 'package.json') - const strContent = await fs.promises.readFile(pkgJsonPath, 'utf-8') - const json = JSON.parse(strContent) + const json = await utils.pkgJson.readPackageJson(destination).catch((thrown) => { + throw errors.BotpressCLIError.wrap(thrown, 'Failed to read package.json file') + }) const pkgJsonName = utils.casing.to.snakeCase(name) const updatedJson = { name: pkgJsonName, ...json, ...pkgJson } - await fs.promises.writeFile(pkgJsonPath, JSON.stringify(updatedJson, null, 2)) + await utils.pkgJson.writePackageJson(destination, updatedJson).catch((thrown) => { + throw errors.BotpressCLIError.wrap(thrown, 'Failed to write package.json file') + }) } private _checkIfDestinationCanBeUsed = async (destination: string) => { diff --git a/packages/cli/src/command-implementations/project-command.ts b/packages/cli/src/command-implementations/project-command.ts index c883c73c7f2..f3e32c9eb36 100644 --- a/packages/cli/src/command-implementations/project-command.ts +++ b/packages/cli/src/command-implementations/project-command.ts @@ -713,12 +713,18 @@ export abstract class ProjectCommand extends this.logger.debug('Checking if sdk is up to date') const { workDir } = this.projectPaths.abs - const projectPkgJson = await utils.pkgJson.readPackageJson(workDir) - if (!projectPkgJson) { + const readProjectPkgJsonResult = await utils.pkgJson.safeReadPackageJson(workDir) + if (!readProjectPkgJsonResult.success) { + this.logger.debug(`Could not read package.json at "${workDir}": ${readProjectPkgJsonResult.error.message}`) + return + } + + if (!readProjectPkgJsonResult.pkgJson) { this.logger.debug(`Could not find package.json at "${workDir}"`) return } + const { pkgJson: projectPkgJson } = readProjectPkgJsonResult const sdkPackageName = '@botpress/sdk' const actualSdkVersion = utils.pkgJson.findDependency(projectPkgJson, sdkPackageName) if (!actualSdkVersion) { @@ -736,7 +742,7 @@ export abstract class ProjectCommand extends return } - const cliPkgJson = await this.readPkgJson() + const cliPkgJson = await this.readCLIPkgJson() const expectedSdkVersion = utils.pkgJson.findDependency(cliPkgJson, sdkPackageName) if (!expectedSdkVersion) { this.logger.debug(`Could not find dependency "${sdkPackageName}" in cli package.json`) diff --git a/packages/cli/src/utils/cache-utils.ts b/packages/cli/src/utils/cache-utils.ts index 87f7e511361..a218337d2f8 100644 --- a/packages/cli/src/utils/cache-utils.ts +++ b/packages/cli/src/utils/cache-utils.ts @@ -1,5 +1,6 @@ import fs from 'fs' import pathlib from 'path' +import * as json from './json-utils' export class FSKeyValueCache { private _initialized = false @@ -74,6 +75,10 @@ export class FSKeyValueCache { private _readJSON = async (filepath: string) => { const fileContent = await fs.promises.readFile(filepath, 'utf8') - return JSON.parse(fileContent) + const parseResult = json.safeParseJson(fileContent) + if (!parseResult.success) { + throw new Error(`Failed to parse JSON file at ${filepath}: ${parseResult.error.message}`) + } + return parseResult.data as T } } diff --git a/packages/cli/src/utils/index.ts b/packages/cli/src/utils/index.ts index 2c3356f6ec7..db7fc6727dd 100644 --- a/packages/cli/src/utils/index.ts +++ b/packages/cli/src/utils/index.ts @@ -6,6 +6,7 @@ export * as esbuild from './esbuild-utils' export * as filewatcher from './file-watcher' export * as guards from './guard-utils' export * as id from './id-utils' +export * as json from './json-utils' export * as object from './object-utils' export * as path from './path-utils' export * as pkgJson from './pkgjson-utils' diff --git a/packages/cli/src/utils/json-utils.ts b/packages/cli/src/utils/json-utils.ts new file mode 100644 index 00000000000..2107cf6754b --- /dev/null +++ b/packages/cli/src/utils/json-utils.ts @@ -0,0 +1,19 @@ +export type ParseJsonResult = + | { + success: true + data: T + } + | { + success: false + error: Error + } + +export const safeParseJson = (jsonStr: string): ParseJsonResult => { + try { + const data: T = JSON.parse(jsonStr) + return { success: true, data } + } catch (thrown) { + const error = thrown instanceof Error ? thrown : new Error(String(thrown)) + return { success: false, error } + } +} diff --git a/packages/cli/src/utils/pkgjson-utils.ts b/packages/cli/src/utils/pkgjson-utils.ts index 0f880c4c87d..005c68b6abc 100644 --- a/packages/cli/src/utils/pkgjson-utils.ts +++ b/packages/cli/src/utils/pkgjson-utils.ts @@ -1,5 +1,6 @@ import fs from 'fs' import pathlib from 'path' +import * as json from './json-utils' type JSON = string | number | boolean | null | JSON[] | { [key: string]: JSON } @@ -24,8 +25,35 @@ export const readPackageJson = async (path: string): Promise => { + try { + const pkgJson = await readPackageJson(path) + if (!pkgJson) { + return { success: true } + } + return { success: true, pkgJson } + } catch (thrown) { + const error = thrown instanceof Error ? thrown : new Error(String(thrown)) + return { success: false, error } + } } export const findDependency = (pkgJson: PackageJson, name: string): string | undefined => { diff --git a/packages/cli/src/worker/child-entrypoint.ts b/packages/cli/src/worker/child-entrypoint.ts index d053d331b17..0805ebd9c8c 100644 --- a/packages/cli/src/worker/child-entrypoint.ts +++ b/packages/cli/src/worker/child-entrypoint.ts @@ -9,7 +9,18 @@ const childProcessEntrypoint = async (_props: ChildProcessProps) => { if (!rawConfig) { throw new Error(`Config variable ${CONFIG_ENV_KEY} was not set`) } - const config = configSchema.parse(JSON.parse(rawConfig)) + + const jsonParseResult = utils.json.safeParseJson(rawConfig) + if (!jsonParseResult.success) { + throw new Error(`Failed to parse config JSON: ${jsonParseResult.error.message}`) + } + + const zodParseResult = configSchema.safeParse(jsonParseResult.data) + if (!zodParseResult.success) { + throw new Error(`Config validation failed: ${zodParseResult.error.message}`) + } + + const config = zodParseResult.data if (config.type === 'code') { utils.require.requireJsCode(config.code) From 37df378d2a6cdd4f0e9db4b986ba1dc961910b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Levasseur?= Date: Fri, 28 Nov 2025 21:26:14 -0500 Subject: [PATCH 2/2] chore: speedup ci setup (#14617) --- .github/actions/setup/action.yml | 2 +- .github/scripts/update-linear.ts | 12 ++--- .github/workflows/run-cli-tests-windows.yml | 2 + bots/bugbuster/package.json | 1 + bots/clog/package.json | 2 + bots/doppel-doer/package.json | 1 + bots/hello-world/package.json | 1 + bots/hit-looper/package.json | 1 + bots/knowledgiani/package.json | 1 + bots/notionaut/package.json | 1 + bots/sheetzy/package.json | 1 + bots/sinlin/package.json | 1 + bots/synchrotron/package.json | 1 + integrations/airtable/package.json | 3 +- integrations/anthropic/package.json | 1 + integrations/asana/package.json | 1 + integrations/attio/package.json | 2 + integrations/bamboohr/package.json | 2 + integrations/bigcommerce-sync/package.json | 3 +- integrations/browser/package.json | 3 +- integrations/calcom/package.json | 3 +- integrations/calendly/package.json | 4 ++ integrations/canny/package.json | 4 ++ integrations/cerebras/package.json | 1 + integrations/charts/package.json | 1 + integrations/chat/package.json | 1 + integrations/clickup/package.json | 3 +- integrations/confluence/package.json | 3 +- integrations/dalle/package.json | 3 +- integrations/docusign/package.json | 2 + integrations/dropbox/package.json | 1 + integrations/email/package.json | 2 + integrations/feature-base/package.json | 2 + integrations/fireworks-ai/package.json | 1 + integrations/freshchat/package.json | 1 + integrations/github/package.json | 1 + integrations/gmail/package.json | 1 + integrations/google-ai/package.json | 1 + integrations/googlecalendar/package.json | 1 + integrations/googledrive/package.json | 1 + integrations/groq/package.json | 1 + integrations/gsheets/package.json | 1 + integrations/hubspot/package.json | 3 +- integrations/hunter/package.json | 4 ++ integrations/instagram/package.json | 1 + integrations/intercom/package.json | 1 + integrations/line/package.json | 1 + integrations/linear/package.json | 1 + integrations/loops/package.json | 3 +- integrations/mailchimp/package.json | 1 + integrations/make/package.json | 3 +- integrations/messenger/package.json | 1 + integrations/mintlify/package.json | 2 + integrations/monday/package.json | 3 +- integrations/notion/package.json | 1 + integrations/openai/package.json | 1 + integrations/pdf-generator/package.json | 3 +- integrations/resend/package.json | 2 + integrations/sendgrid/package.json | 1 + integrations/slack/package.json | 1 + integrations/stripe/package.json | 3 +- integrations/sunco/package.json | 1 + integrations/teams/package.json | 1 + integrations/telegram/package.json | 1 + integrations/todoist/package.json | 1 + integrations/trello/package.json | 1 + integrations/twilio/package.json | 1 + integrations/viber/package.json | 1 + integrations/vonage/package.json | 1 + integrations/webflow/package.json | 4 ++ integrations/webhook/package.json | 1 + integrations/whatsapp/package.json | 1 + integrations/workable/package.json | 2 + integrations/zapier/package.json | 1 + integrations/zendesk/package.json | 1 + integrations/zoho/package.json | 3 +- interfaces/creatable/package.json | 3 +- interfaces/deletable/package.json | 3 +- interfaces/files-readonly/package.json | 3 +- interfaces/hitl/package.json | 3 +- interfaces/listable/package.json | 3 +- interfaces/llm/package.json | 3 +- .../proactive-conversation/package.json | 3 +- interfaces/proactive-user/package.json | 3 +- interfaces/readable/package.json | 3 +- interfaces/speech-to-text/package.json | 3 +- interfaces/text-to-image/package.json | 3 +- interfaces/typing-indicator/package.json | 3 +- interfaces/updatable/package.json | 3 +- package.json | 2 +- plugins/analytics/package.json | 1 + plugins/conversation-insights/package.json | 2 + plugins/file-synchronizer/package.json | 1 + plugins/hitl/package.json | 1 + plugins/knowledge/package.json | 1 + plugins/logger/package.json | 1 + plugins/personality/package.json | 1 + plugins/synchronizer/package.json | 1 + pnpm-lock.yaml | 46 +++++++++++++++++++ 99 files changed, 199 insertions(+), 35 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 27451a99429..4a70b679efb 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -29,4 +29,4 @@ runs: shell: ${{ runner.os == 'Windows' && 'pwsh' || 'bash' }} env: BP_VERBOSE: 'true' - run: pnpm build ${{ inputs.extra_filters }} + run: pnpm turbo run build ${{ inputs.extra_filters }} diff --git a/.github/scripts/update-linear.ts b/.github/scripts/update-linear.ts index 6313db3c47f..3af66e2df22 100644 --- a/.github/scripts/update-linear.ts +++ b/.github/scripts/update-linear.ts @@ -37,8 +37,8 @@ async function getStates(targetTeam: Team): Promise<{ sourceState: WorkflowState if (!sourceState) throw new Error(`Could not find workflow state ${SOURCE_STATE_NAME}`) if (!targetState) throw new Error(`Could not find workflow state ${TARGET_STATE_NAME}`) - console.log(`Found source state: ${sourceState.name} (${sourceState.id})`) - console.log(`Found target state: ${targetState.name} (${targetState.id})`) + console.info(`Found source state: ${sourceState.name} (${sourceState.id})`) + console.info(`Found target state: ${targetState.name} (${targetState.id})`) return { sourceState, targetState } } @@ -60,9 +60,9 @@ async function getTargetLabels(targetTeam: Team): Promise { throw new Error(`Could not find any labels matching ${TARGET_LABEL}`) } - console.log(`Found ${targetLabels.length} matching label(s):`) + console.info(`Found ${targetLabels.length} matching label(s):`) targetLabels.forEach((label) => { - console.log(` - ${label.name} (${label.id})`) + console.info(` - ${label.name} (${label.id})`) }) return targetLabels @@ -82,11 +82,11 @@ async function updateLinearIssues() { }, }) - console.log(`Found ${issues.nodes.length} issue(s) in state "${SOURCE_STATE_NAME}"`) + console.info(`Found ${issues.nodes.length} issue(s) in state "${SOURCE_STATE_NAME}"`) await Promise.all( issues.nodes.map(async (issue) => { - console.log(`Updating issue ${issue.identifier} to ${TARGET_STATE_NAME}`) + console.info(`Updating issue ${issue.identifier} to ${TARGET_STATE_NAME}`) await issue.update({ stateId: targetState.id }) }) ) diff --git a/.github/workflows/run-cli-tests-windows.yml b/.github/workflows/run-cli-tests-windows.yml index 8daca79e78a..02eda539edf 100644 --- a/.github/workflows/run-cli-tests-windows.yml +++ b/.github/workflows/run-cli-tests-windows.yml @@ -18,6 +18,8 @@ jobs: - uses: actions/checkout@v2 - name: Setup uses: ./.github/actions/setup + with: + extra_filters: '-F @botpress/cli' - run: | pnpm run -F cli test:e2e -v ` --api-url https://api.botpress.dev ` diff --git a/bots/bugbuster/package.json b/bots/bugbuster/package.json index 3140edea9c0..bb0a64d46e0 100644 --- a/bots/bugbuster/package.json +++ b/bots/bugbuster/package.json @@ -15,6 +15,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/github": "workspace:*", "@botpresshub/linear": "workspace:*", "@botpresshub/slack": "workspace:*", diff --git a/bots/clog/package.json b/bots/clog/package.json index a178022ad7d..56a8d9dfedf 100644 --- a/bots/clog/package.json +++ b/bots/clog/package.json @@ -14,6 +14,8 @@ "cheerio": "^1.1.2" }, "devDependencies": { + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/slack": "workspace:*" }, "bpDependencies": { diff --git a/bots/doppel-doer/package.json b/bots/doppel-doer/package.json index 62238c696a7..669cb5f138b 100644 --- a/bots/doppel-doer/package.json +++ b/bots/doppel-doer/package.json @@ -14,6 +14,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/todoist": "workspace:*", "@bpinternal/genenv": "0.0.1" }, diff --git a/bots/hello-world/package.json b/bots/hello-world/package.json index b4d32cb4873..2ac4a45090a 100644 --- a/bots/hello-world/package.json +++ b/bots/hello-world/package.json @@ -17,6 +17,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/logger": "workspace:*", "@botpresshub/telegram": "workspace:*", "@botpresshub/webhook": "workspace:*", diff --git a/bots/hit-looper/package.json b/bots/hit-looper/package.json index 3a51f67896c..aa24ed5567e 100644 --- a/bots/hit-looper/package.json +++ b/bots/hit-looper/package.json @@ -14,6 +14,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/chat": "workspace:*", "@botpresshub/hitl-plugin": "workspace:*", "@botpresshub/zendesk": "workspace:*", diff --git a/bots/knowledgiani/package.json b/bots/knowledgiani/package.json index 239bbe0d0d0..8891f1eee96 100644 --- a/bots/knowledgiani/package.json +++ b/bots/knowledgiani/package.json @@ -15,6 +15,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/knowledge": "workspace:*", "@botpresshub/openai": "workspace:*", "@botpresshub/personality": "workspace:*", diff --git a/bots/notionaut/package.json b/bots/notionaut/package.json index beda80aae28..1d2957183a5 100644 --- a/bots/notionaut/package.json +++ b/bots/notionaut/package.json @@ -14,6 +14,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/chat": "workspace:*", "@botpresshub/file-synchronizer": "workspace:*", "@botpresshub/notion": "workspace:*", diff --git a/bots/sheetzy/package.json b/bots/sheetzy/package.json index 21d511cb0c1..7d65889e647 100644 --- a/bots/sheetzy/package.json +++ b/bots/sheetzy/package.json @@ -14,6 +14,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/gsheets": "workspace:*", "@botpresshub/telegram": "workspace:*", "@bpinternal/genenv": "0.0.1" diff --git a/bots/sinlin/package.json b/bots/sinlin/package.json index 51441dd53b2..76c3d48134e 100644 --- a/bots/sinlin/package.json +++ b/bots/sinlin/package.json @@ -15,6 +15,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/chat": "workspace:*", "@botpresshub/linear": "workspace:*", "@botpresshub/synchronizer": "workspace:*", diff --git a/bots/synchrotron/package.json b/bots/synchrotron/package.json index d8e858e7bc3..d1eb77d08f2 100644 --- a/bots/synchrotron/package.json +++ b/bots/synchrotron/package.json @@ -14,6 +14,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/chat": "workspace:*", "@botpresshub/dropbox": "workspace:*", "@botpresshub/file-synchronizer": "workspace:*", diff --git a/integrations/airtable/package.json b/integrations/airtable/package.json index a734732215b..8f02902d557 100644 --- a/integrations/airtable/package.json +++ b/integrations/airtable/package.json @@ -14,6 +14,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", - "@botpress/common": "workspace:*" + "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/anthropic/package.json b/integrations/anthropic/package.json index 0bde0de08b0..e50c101069a 100644 --- a/integrations/anthropic/package.json +++ b/integrations/anthropic/package.json @@ -14,6 +14,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/llm": "workspace:*" }, "bpDependencies": { diff --git a/integrations/asana/package.json b/integrations/asana/package.json index d16f33f555d..4d32e3859b5 100644 --- a/integrations/asana/package.json +++ b/integrations/asana/package.json @@ -16,6 +16,7 @@ "@botpress/cli": "workspace:*", "@botpress/client": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1", "@types/asana": "^0.18.12" } diff --git a/integrations/attio/package.json b/integrations/attio/package.json index 1f6c3de562c..93ea5d81cd3 100644 --- a/integrations/attio/package.json +++ b/integrations/attio/package.json @@ -10,6 +10,8 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@types/node": "^22.16.4", "typescript": "^5.6.3" } diff --git a/integrations/bamboohr/package.json b/integrations/bamboohr/package.json index c50348ba60d..e08ca4984c6 100644 --- a/integrations/bamboohr/package.json +++ b/integrations/bamboohr/package.json @@ -13,6 +13,8 @@ "lodash": "^4.17.21" }, "devDependencies": { + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@types/jsonwebtoken": "^9.0.3", "@types/lodash": "^4.14.191", "@types/node": "^22.16.4", diff --git a/integrations/bigcommerce-sync/package.json b/integrations/bigcommerce-sync/package.json index 083ff2c1aef..90b54a38c9d 100644 --- a/integrations/bigcommerce-sync/package.json +++ b/integrations/bigcommerce-sync/package.json @@ -11,6 +11,7 @@ "axios": "^1.7.2" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/browser/package.json b/integrations/browser/package.json index f243c38597e..8fe20b28aa2 100644 --- a/integrations/browser/package.json +++ b/integrations/browser/package.json @@ -13,6 +13,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", - "@botpress/common": "workspace:*" + "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/calcom/package.json b/integrations/calcom/package.json index 71c435ea957..373fc6e3bf0 100644 --- a/integrations/calcom/package.json +++ b/integrations/calcom/package.json @@ -12,6 +12,7 @@ "axios": "^1.11.0" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/calendly/package.json b/integrations/calendly/package.json index f16e87e93de..b86b958f7de 100644 --- a/integrations/calendly/package.json +++ b/integrations/calendly/package.json @@ -10,5 +10,9 @@ "@botpress/client": "workspace:*", "@botpress/sdk": "workspace:*", "axios": "^1.11.0" + }, + "devDependencies": { + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/canny/package.json b/integrations/canny/package.json index d8082a1cb4d..ba1293c0a4f 100644 --- a/integrations/canny/package.json +++ b/integrations/canny/package.json @@ -11,5 +11,9 @@ "@botpress/client": "workspace:*", "@botpress/sdk": "workspace:*", "axios": "^1.6.0" + }, + "devDependencies": { + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/cerebras/package.json b/integrations/cerebras/package.json index ef3abaa025e..5881f26c71c 100644 --- a/integrations/cerebras/package.json +++ b/integrations/cerebras/package.json @@ -14,6 +14,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/llm": "workspace:*" }, "bpDependencies": { diff --git a/integrations/charts/package.json b/integrations/charts/package.json index 191de6b2348..e0d45563f2e 100644 --- a/integrations/charts/package.json +++ b/integrations/charts/package.json @@ -13,6 +13,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "chart.js": "^3.9.1" } } diff --git a/integrations/chat/package.json b/integrations/chat/package.json index e7aafefd363..80f68e07d93 100644 --- a/integrations/chat/package.json +++ b/integrations/chat/package.json @@ -21,6 +21,7 @@ "devDependencies": { "@botpress/chat-api": "workspace:*", "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@types/json-schema": "^7.0.12", "@types/jsonwebtoken": "^9.0.3", "@types/lodash": "^4.14.191", diff --git a/integrations/clickup/package.json b/integrations/clickup/package.json index b7845da1ab1..89befb7bae7 100644 --- a/integrations/clickup/package.json +++ b/integrations/clickup/package.json @@ -14,6 +14,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", - "@botpress/common": "workspace:*" + "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/confluence/package.json b/integrations/confluence/package.json index 363437cbf5d..ad84a607434 100644 --- a/integrations/confluence/package.json +++ b/integrations/confluence/package.json @@ -16,7 +16,8 @@ "unified": "^11.0.5" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" }, "bpDependencies": { "files-readonly": "../../interfaces/files-readonly", diff --git a/integrations/dalle/package.json b/integrations/dalle/package.json index dd9a8ed0721..38ac6d1538d 100644 --- a/integrations/dalle/package.json +++ b/integrations/dalle/package.json @@ -14,6 +14,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", - "@botpress/common": "workspace:*" + "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/docusign/package.json b/integrations/docusign/package.json index 5b5b3e157a6..4df36cda148 100644 --- a/integrations/docusign/package.json +++ b/integrations/docusign/package.json @@ -13,6 +13,8 @@ "docusign-esign": "^8.4.0" }, "devDependencies": { + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@types/docusign-esign": "^5.19.9" } } diff --git a/integrations/dropbox/package.json b/integrations/dropbox/package.json index 2003fc04c15..669efbe76c6 100644 --- a/integrations/dropbox/package.json +++ b/integrations/dropbox/package.json @@ -8,6 +8,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1" }, "private": true, diff --git a/integrations/email/package.json b/integrations/email/package.json index 69ac528429b..3d1a67667ab 100644 --- a/integrations/email/package.json +++ b/integrations/email/package.json @@ -13,6 +13,8 @@ "nodemailer": "^6.7.2" }, "devDependencies": { + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@types/imap": "^0.8.42", "@types/nodemailer": "^6.4.4" } diff --git a/integrations/feature-base/package.json b/integrations/feature-base/package.json index 118bb90e8fc..70090ab835f 100644 --- a/integrations/feature-base/package.json +++ b/integrations/feature-base/package.json @@ -12,6 +12,8 @@ "axios": "^1.11.0" }, "devDependencies": { + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@types/node": "^22.16.4", "typescript": "^5.6.3" } diff --git a/integrations/fireworks-ai/package.json b/integrations/fireworks-ai/package.json index aed9bb7c6a0..196768b5ae5 100644 --- a/integrations/fireworks-ai/package.json +++ b/integrations/fireworks-ai/package.json @@ -14,6 +14,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/llm": "workspace:*", "@botpresshub/speech-to-text": "workspace:*" }, diff --git a/integrations/freshchat/package.json b/integrations/freshchat/package.json index db67e074838..42d6d4c1391 100644 --- a/integrations/freshchat/package.json +++ b/integrations/freshchat/package.json @@ -20,6 +20,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/hitl": "workspace:*", "@sentry/cli": "^2.39.1", "@types/lodash": "^4.14.191" diff --git a/integrations/github/package.json b/integrations/github/package.json index 99fb5507b66..15b78a06b70 100644 --- a/integrations/github/package.json +++ b/integrations/github/package.json @@ -18,6 +18,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/client": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1" } } diff --git a/integrations/gmail/package.json b/integrations/gmail/package.json index 6ee6b1cb255..d86478c07a1 100644 --- a/integrations/gmail/package.json +++ b/integrations/gmail/package.json @@ -27,6 +27,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1", "@types/nodemailer": "^6.4.4", "@types/react": "^18.3.11", diff --git a/integrations/google-ai/package.json b/integrations/google-ai/package.json index abfc4824e14..c0c3ab532c8 100644 --- a/integrations/google-ai/package.json +++ b/integrations/google-ai/package.json @@ -14,6 +14,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/llm": "workspace:*" }, "bpDependencies": { diff --git a/integrations/googlecalendar/package.json b/integrations/googlecalendar/package.json index 9c8e1ec7e34..81db2bf6324 100644 --- a/integrations/googlecalendar/package.json +++ b/integrations/googlecalendar/package.json @@ -15,6 +15,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/creatable": "workspace:*", "@botpresshub/deletable": "workspace:*", "@botpresshub/listable": "workspace:*", diff --git a/integrations/googledrive/package.json b/integrations/googledrive/package.json index 17a6df32d42..7e2b7cd7585 100644 --- a/integrations/googledrive/package.json +++ b/integrations/googledrive/package.json @@ -17,6 +17,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1", "@types/jsonwebtoken": "^9.0.3", "@types/uuid": "^9.0.1", diff --git a/integrations/groq/package.json b/integrations/groq/package.json index 66698b919e3..d5390e22f7e 100644 --- a/integrations/groq/package.json +++ b/integrations/groq/package.json @@ -14,6 +14,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/llm": "workspace:*", "@botpresshub/speech-to-text": "workspace:*" }, diff --git a/integrations/gsheets/package.json b/integrations/gsheets/package.json index 35327bcd853..d8ae7da2b04 100644 --- a/integrations/gsheets/package.json +++ b/integrations/gsheets/package.json @@ -16,6 +16,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1" } } diff --git a/integrations/hubspot/package.json b/integrations/hubspot/package.json index 87c90747447..2a11f6c6919 100644 --- a/integrations/hubspot/package.json +++ b/integrations/hubspot/package.json @@ -13,6 +13,7 @@ "@hubspot/api-client": "^13.1.0" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/hunter/package.json b/integrations/hunter/package.json index 6ab7154f5be..d89ed2860b4 100644 --- a/integrations/hunter/package.json +++ b/integrations/hunter/package.json @@ -11,5 +11,9 @@ "@botpress/client": "workspace:*", "@botpress/sdk": "workspace:*", "axios": "^1.13.1" + }, + "devDependencies": { + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/instagram/package.json b/integrations/instagram/package.json index 445e567f896..99169cf5d7f 100644 --- a/integrations/instagram/package.json +++ b/integrations/instagram/package.json @@ -19,6 +19,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1" }, "bpDependencies": { diff --git a/integrations/intercom/package.json b/integrations/intercom/package.json index 7e8294472ad..89254d257cc 100644 --- a/integrations/intercom/package.json +++ b/integrations/intercom/package.json @@ -18,6 +18,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1" }, "bpDependencies": { diff --git a/integrations/line/package.json b/integrations/line/package.json index 697721b3fd0..6498cd5d61a 100644 --- a/integrations/line/package.json +++ b/integrations/line/package.json @@ -19,6 +19,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/proactive-conversation": "workspace:*", "@botpresshub/proactive-user": "workspace:*", "@botpresshub/typing-indicator": "workspace:*", diff --git a/integrations/linear/package.json b/integrations/linear/package.json index 8d5f5f23376..689583c7f17 100644 --- a/integrations/linear/package.json +++ b/integrations/linear/package.json @@ -18,6 +18,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/deletable": "workspace:*", "@botpresshub/listable": "workspace:*", "@sentry/cli": "^2.39.1" diff --git a/integrations/loops/package.json b/integrations/loops/package.json index 027bd02fed7..9c35933103c 100644 --- a/integrations/loops/package.json +++ b/integrations/loops/package.json @@ -12,6 +12,7 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/mailchimp/package.json b/integrations/mailchimp/package.json index ebb2d1ad96f..64ec850033c 100644 --- a/integrations/mailchimp/package.json +++ b/integrations/mailchimp/package.json @@ -14,6 +14,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@types/mailchimp__mailchimp_marketing": "3.0.10" } } diff --git a/integrations/make/package.json b/integrations/make/package.json index 9d6a495b799..bb9e47be9aa 100644 --- a/integrations/make/package.json +++ b/integrations/make/package.json @@ -13,6 +13,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", - "@botpress/common": "workspace:*" + "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/messenger/package.json b/integrations/messenger/package.json index a324cdd6aa8..9aba43e279f 100644 --- a/integrations/messenger/package.json +++ b/integrations/messenger/package.json @@ -19,6 +19,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1" }, "bpDependencies": { diff --git a/integrations/mintlify/package.json b/integrations/mintlify/package.json index 00fc641c758..70f60b3ce1b 100644 --- a/integrations/mintlify/package.json +++ b/integrations/mintlify/package.json @@ -12,6 +12,8 @@ "axios": "^1.13.1" }, "devDependencies": { + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@types/node": "^22.16.4", "typescript": "^5.6.3" } diff --git a/integrations/monday/package.json b/integrations/monday/package.json index 45cd546311e..a2343784ee8 100644 --- a/integrations/monday/package.json +++ b/integrations/monday/package.json @@ -7,7 +7,8 @@ }, "private": true, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" }, "dependencies": { "@botpress/client": "workspace:*", diff --git a/integrations/notion/package.json b/integrations/notion/package.json index 276ec12b103..99cbcbf0897 100644 --- a/integrations/notion/package.json +++ b/integrations/notion/package.json @@ -16,6 +16,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1" }, "bpDependencies": { diff --git a/integrations/openai/package.json b/integrations/openai/package.json index 7315f55b5e4..0c01ccc5518 100644 --- a/integrations/openai/package.json +++ b/integrations/openai/package.json @@ -14,6 +14,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/llm": "workspace:*", "@botpresshub/speech-to-text": "workspace:*", "@botpresshub/text-to-image": "workspace:*" diff --git a/integrations/pdf-generator/package.json b/integrations/pdf-generator/package.json index 15610ab1b4c..387c3b7e718 100644 --- a/integrations/pdf-generator/package.json +++ b/integrations/pdf-generator/package.json @@ -13,6 +13,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", - "@botpress/common": "workspace:*" + "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/resend/package.json b/integrations/resend/package.json index f7f520c89b9..0eaab0dc98f 100644 --- a/integrations/resend/package.json +++ b/integrations/resend/package.json @@ -14,6 +14,8 @@ "svix": "^1.69.0" }, "devDependencies": { + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@types/markdown-it": "^14.1.2" } } diff --git a/integrations/sendgrid/package.json b/integrations/sendgrid/package.json index 3307461ec83..d44f79d0c39 100644 --- a/integrations/sendgrid/package.json +++ b/integrations/sendgrid/package.json @@ -17,6 +17,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@types/markdown-it": "^14.1.2" } } diff --git a/integrations/slack/package.json b/integrations/slack/package.json index 67a51fe8160..a73995e3745 100644 --- a/integrations/slack/package.json +++ b/integrations/slack/package.json @@ -23,6 +23,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/client": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1" }, "bpDependencies": { diff --git a/integrations/stripe/package.json b/integrations/stripe/package.json index b2b5aa2efaf..8bde1662e4c 100644 --- a/integrations/stripe/package.json +++ b/integrations/stripe/package.json @@ -13,6 +13,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", - "@botpress/common": "workspace:*" + "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/sunco/package.json b/integrations/sunco/package.json index 108d26ff55f..92af7f4f24f 100644 --- a/integrations/sunco/package.json +++ b/integrations/sunco/package.json @@ -17,6 +17,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1" }, "bpDependencies": { diff --git a/integrations/teams/package.json b/integrations/teams/package.json index 07b75299cec..3f9610308d1 100644 --- a/integrations/teams/package.json +++ b/integrations/teams/package.json @@ -22,6 +22,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1", "@types/jsonwebtoken": "^9.0.3" }, diff --git a/integrations/telegram/package.json b/integrations/telegram/package.json index e55184c5b14..88bf5a0b05e 100644 --- a/integrations/telegram/package.json +++ b/integrations/telegram/package.json @@ -20,6 +20,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/typing-indicator": "workspace:*", "@sentry/cli": "^2.39.1", "@types/lodash": "^4.14.191", diff --git a/integrations/todoist/package.json b/integrations/todoist/package.json index 1861e649681..50fed573421 100644 --- a/integrations/todoist/package.json +++ b/integrations/todoist/package.json @@ -15,6 +15,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/creatable": "workspace:*", "@sentry/cli": "^2.39.1" }, diff --git a/integrations/trello/package.json b/integrations/trello/package.json index a891e2db4c8..14cd0b7b918 100644 --- a/integrations/trello/package.json +++ b/integrations/trello/package.json @@ -17,6 +17,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/creatable": "workspace:*", "@botpresshub/deletable": "workspace:*", "@botpresshub/listable": "workspace:*", diff --git a/integrations/twilio/package.json b/integrations/twilio/package.json index f384e19dc94..3f11e7292b1 100644 --- a/integrations/twilio/package.json +++ b/integrations/twilio/package.json @@ -20,6 +20,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/proactive-conversation": "workspace:*", "@botpresshub/proactive-user": "workspace:*", "@sentry/cli": "^2.39.1" diff --git a/integrations/viber/package.json b/integrations/viber/package.json index 2274529453a..1739fcf7f0d 100644 --- a/integrations/viber/package.json +++ b/integrations/viber/package.json @@ -16,6 +16,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1" } } diff --git a/integrations/vonage/package.json b/integrations/vonage/package.json index abf995ed146..e5218f7d5c2 100644 --- a/integrations/vonage/package.json +++ b/integrations/vonage/package.json @@ -16,6 +16,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1" }, "bpDependencies": { diff --git a/integrations/webflow/package.json b/integrations/webflow/package.json index 8bf963c35eb..faf6b058880 100644 --- a/integrations/webflow/package.json +++ b/integrations/webflow/package.json @@ -10,5 +10,9 @@ "@botpress/client": "workspace:*", "@botpress/sdk": "workspace:*", "axios": "^1.11.0" + }, + "devDependencies": { + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/integrations/webhook/package.json b/integrations/webhook/package.json index 9494f7c74a8..c95446cd921 100644 --- a/integrations/webhook/package.json +++ b/integrations/webhook/package.json @@ -17,6 +17,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1", "@types/qs": "^6.9.7" } diff --git a/integrations/whatsapp/package.json b/integrations/whatsapp/package.json index dcb161a6225..3813c80ee67 100644 --- a/integrations/whatsapp/package.json +++ b/integrations/whatsapp/package.json @@ -23,6 +23,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1" }, "bpDependencies": { diff --git a/integrations/workable/package.json b/integrations/workable/package.json index 744df114049..58d87db3841 100644 --- a/integrations/workable/package.json +++ b/integrations/workable/package.json @@ -10,6 +10,8 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@types/node": "^22.16.4", "typescript": "^5.6.3" } diff --git a/integrations/zapier/package.json b/integrations/zapier/package.json index 4b89b942d49..17572b8a171 100644 --- a/integrations/zapier/package.json +++ b/integrations/zapier/package.json @@ -17,6 +17,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@sentry/cli": "^2.39.1", "@types/jest": "^29.5.0", "@types/uuid": "^9.0.1", diff --git a/integrations/zendesk/package.json b/integrations/zendesk/package.json index d0fbb949f46..b2a744ae433 100644 --- a/integrations/zendesk/package.json +++ b/integrations/zendesk/package.json @@ -18,6 +18,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/hitl": "workspace:*", "@sentry/cli": "^2.39.1", "@types/lodash": "^4.14.191" diff --git a/integrations/zoho/package.json b/integrations/zoho/package.json index 42d30467972..876cbaf95f1 100644 --- a/integrations/zoho/package.json +++ b/integrations/zoho/package.json @@ -13,6 +13,7 @@ "form-data": "^4.0.0" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/interfaces/creatable/package.json b/interfaces/creatable/package.json index 6c255a1cebc..7d87bfb61cb 100644 --- a/interfaces/creatable/package.json +++ b/interfaces/creatable/package.json @@ -11,6 +11,7 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/interfaces/deletable/package.json b/interfaces/deletable/package.json index f01e2d94e25..dc5895ae79f 100644 --- a/interfaces/deletable/package.json +++ b/interfaces/deletable/package.json @@ -11,6 +11,7 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/interfaces/files-readonly/package.json b/interfaces/files-readonly/package.json index 36327dec658..63cbe79b0c9 100644 --- a/interfaces/files-readonly/package.json +++ b/interfaces/files-readonly/package.json @@ -11,6 +11,7 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/interfaces/hitl/package.json b/interfaces/hitl/package.json index ad23e5a3269..cc81b783b60 100644 --- a/interfaces/hitl/package.json +++ b/interfaces/hitl/package.json @@ -10,6 +10,7 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/interfaces/listable/package.json b/interfaces/listable/package.json index 54923dad57f..f983644d4e1 100644 --- a/interfaces/listable/package.json +++ b/interfaces/listable/package.json @@ -11,6 +11,7 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/interfaces/llm/package.json b/interfaces/llm/package.json index 39df616cef7..72cc548ec9f 100644 --- a/interfaces/llm/package.json +++ b/interfaces/llm/package.json @@ -12,6 +12,7 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/interfaces/proactive-conversation/package.json b/interfaces/proactive-conversation/package.json index ca11f63c314..ad5a693fadd 100644 --- a/interfaces/proactive-conversation/package.json +++ b/interfaces/proactive-conversation/package.json @@ -10,6 +10,7 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/interfaces/proactive-user/package.json b/interfaces/proactive-user/package.json index 12993f1a02b..277c9d8b50a 100644 --- a/interfaces/proactive-user/package.json +++ b/interfaces/proactive-user/package.json @@ -10,6 +10,7 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/interfaces/readable/package.json b/interfaces/readable/package.json index f7ae9ea93a9..8831e68d190 100644 --- a/interfaces/readable/package.json +++ b/interfaces/readable/package.json @@ -11,6 +11,7 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/interfaces/speech-to-text/package.json b/interfaces/speech-to-text/package.json index b9f70eabd1c..dc88eba602c 100644 --- a/interfaces/speech-to-text/package.json +++ b/interfaces/speech-to-text/package.json @@ -12,6 +12,7 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/interfaces/text-to-image/package.json b/interfaces/text-to-image/package.json index 85cc6c9009e..9a470f55553 100644 --- a/interfaces/text-to-image/package.json +++ b/interfaces/text-to-image/package.json @@ -12,6 +12,7 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/interfaces/typing-indicator/package.json b/interfaces/typing-indicator/package.json index 0bd104d6b3e..7c28e739f25 100644 --- a/interfaces/typing-indicator/package.json +++ b/interfaces/typing-indicator/package.json @@ -11,6 +11,7 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/interfaces/updatable/package.json b/interfaces/updatable/package.json index cd5ae98a679..0cf5e354da4 100644 --- a/interfaces/updatable/package.json +++ b/interfaces/updatable/package.json @@ -11,6 +11,7 @@ "@botpress/sdk": "workspace:*" }, "devDependencies": { - "@botpress/cli": "workspace:*" + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*" } } diff --git a/package.json b/package.json index ec91fe50400..45f9594aacb 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "botpress", "private": true, "scripts": { - "build": "turbo run generate && turbo run build", + "build": "turbo run build", "bump": "depsynky bump --ignore-dev && pnpm -w install", "test": "vitest --run", "check:bplint": "turbo check:bplint", diff --git a/plugins/analytics/package.json b/plugins/analytics/package.json index d955a8b0441..59eee832faf 100644 --- a/plugins/analytics/package.json +++ b/plugins/analytics/package.json @@ -13,6 +13,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@bpinternal/genenv": "0.0.1" } } diff --git a/plugins/conversation-insights/package.json b/plugins/conversation-insights/package.json index 0efc70fc068..0338800799e 100644 --- a/plugins/conversation-insights/package.json +++ b/plugins/conversation-insights/package.json @@ -12,6 +12,8 @@ "jsonrepair": "^3.10.0" }, "devDependencies": { + "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/llm": "workspace:*" } } diff --git a/plugins/file-synchronizer/package.json b/plugins/file-synchronizer/package.json index f1665bd4b43..27e87deea39 100644 --- a/plugins/file-synchronizer/package.json +++ b/plugins/file-synchronizer/package.json @@ -12,6 +12,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/hitl": "workspace:*", "@types/picomatch": "^3.0.2", "@types/semver": "^7.3.11", diff --git a/plugins/hitl/package.json b/plugins/hitl/package.json index d76aba35013..7e4d811af1e 100644 --- a/plugins/hitl/package.json +++ b/plugins/hitl/package.json @@ -12,6 +12,7 @@ }, "devDependencies": { "@botpress/cli": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/hitl": "workspace:*", "@types/lodash": "^4.14.191", "@types/semver": "^7.3.11", diff --git a/plugins/knowledge/package.json b/plugins/knowledge/package.json index 306c2e0205b..9990ae7e4d5 100644 --- a/plugins/knowledge/package.json +++ b/plugins/knowledge/package.json @@ -14,6 +14,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/llm": "workspace:*", "@bpinternal/genenv": "0.0.1", "@types/semver": "^7.3.11", diff --git a/plugins/logger/package.json b/plugins/logger/package.json index 68c08a6d301..e6daa2a4329 100644 --- a/plugins/logger/package.json +++ b/plugins/logger/package.json @@ -13,6 +13,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@bpinternal/genenv": "0.0.1" } } diff --git a/plugins/personality/package.json b/plugins/personality/package.json index c92669252c0..d57f005eca6 100644 --- a/plugins/personality/package.json +++ b/plugins/personality/package.json @@ -15,6 +15,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/llm": "workspace:*", "@bpinternal/genenv": "0.0.1", "@types/semver": "^7.3.11", diff --git a/plugins/synchronizer/package.json b/plugins/synchronizer/package.json index b93b28d80b9..90598fdc8cf 100644 --- a/plugins/synchronizer/package.json +++ b/plugins/synchronizer/package.json @@ -13,6 +13,7 @@ "devDependencies": { "@botpress/cli": "workspace:*", "@botpress/common": "workspace:*", + "@botpress/sdk": "workspace:*", "@botpresshub/creatable": "workspace:*", "@botpresshub/deletable": "workspace:*", "@botpresshub/listable": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d62f0114578..7d56e89800b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -159,6 +159,9 @@ importers: specifier: ^1.1.2 version: 1.1.2 devDependencies: + '@botpress/cli': + specifier: workspace:* + version: link:../../packages/cli '@botpresshub/slack': specifier: workspace:* version: link:../../integrations/slack @@ -489,6 +492,9 @@ importers: specifier: workspace:* version: link:../../packages/sdk devDependencies: + '@botpress/cli': + specifier: workspace:* + version: link:../../packages/cli '@types/node': specifier: ^22.16.4 version: 22.16.4 @@ -511,6 +517,9 @@ importers: specifier: ^4.17.21 version: 4.17.21 devDependencies: + '@botpress/cli': + specifier: workspace:* + version: link:../../packages/cli '@types/jsonwebtoken': specifier: ^9.0.3 version: 9.0.3 @@ -586,6 +595,10 @@ importers: axios: specifier: ^1.11.0 version: 1.11.0 + devDependencies: + '@botpress/cli': + specifier: workspace:* + version: link:../../packages/cli integrations/canny: dependencies: @@ -598,6 +611,10 @@ importers: axios: specifier: ^1.6.0 version: 1.11.0 + devDependencies: + '@botpress/cli': + specifier: workspace:* + version: link:../../packages/cli integrations/cerebras: dependencies: @@ -773,6 +790,9 @@ importers: specifier: ^8.4.0 version: 8.4.0 devDependencies: + '@botpress/cli': + specifier: workspace:* + version: link:../../packages/cli '@types/docusign-esign': specifier: ^5.19.9 version: 5.19.9 @@ -814,6 +834,9 @@ importers: specifier: ^6.7.2 version: 6.9.3 devDependencies: + '@botpress/cli': + specifier: workspace:* + version: link:../../packages/cli '@types/imap': specifier: ^0.8.42 version: 0.8.42 @@ -833,6 +856,9 @@ importers: specifier: ^1.11.0 version: 1.11.0 devDependencies: + '@botpress/cli': + specifier: workspace:* + version: link:../../packages/cli '@types/node': specifier: ^22.16.4 version: 22.16.4 @@ -1164,6 +1190,10 @@ importers: axios: specifier: ^1.13.1 version: 1.13.1 + devDependencies: + '@botpress/cli': + specifier: workspace:* + version: link:../../packages/cli integrations/instagram: dependencies: @@ -1395,6 +1425,9 @@ importers: specifier: ^1.13.1 version: 1.13.1 devDependencies: + '@botpress/cli': + specifier: workspace:* + version: link:../../packages/cli '@types/node': specifier: ^22.16.4 version: 22.16.4 @@ -1511,6 +1544,9 @@ importers: specifier: ^1.69.0 version: 1.69.0 devDependencies: + '@botpress/cli': + specifier: workspace:* + version: link:../../packages/cli '@types/markdown-it': specifier: ^14.1.2 version: 14.1.2 @@ -1882,6 +1918,10 @@ importers: axios: specifier: ^1.11.0 version: 1.11.0 + devDependencies: + '@botpress/cli': + specifier: workspace:* + version: link:../../packages/cli integrations/webhook: dependencies: @@ -1957,6 +1997,9 @@ importers: specifier: workspace:* version: link:../../packages/sdk devDependencies: + '@botpress/cli': + specifier: workspace:* + version: link:../../packages/cli '@types/node': specifier: ^22.16.4 version: 22.16.4 @@ -2917,6 +2960,9 @@ importers: specifier: ^3.10.0 version: 3.10.0 devDependencies: + '@botpress/cli': + specifier: workspace:* + version: link:../../packages/cli '@botpresshub/llm': specifier: workspace:* version: link:../../interfaces/llm