From 07258bad0e7e14475acbe88e111d3bc31c77cff7 Mon Sep 17 00:00:00 2001 From: Yann Allard <42552874+allardy@users.noreply.github.com> Date: Thu, 27 Nov 2025 18:55:00 -0500 Subject: [PATCH 1/2] chore: bump client (#14601) --- package.json | 2 +- packages/cli/package.json | 6 +-- packages/cli/templates/empty-bot/package.json | 4 +- .../templates/empty-integration/package.json | 4 +- .../cli/templates/empty-plugin/package.json | 2 +- .../cli/templates/hello-world/package.json | 4 +- .../templates/webhook-message/package.json | 4 +- packages/client/package.json | 2 +- packages/cognitive/package.json | 2 +- packages/llmz/package.json | 4 +- packages/sdk/package.json | 4 +- packages/vai/package.json | 2 +- packages/zai/package.json | 4 +- plugins/conversation-insights/package.json | 2 +- pnpm-lock.yaml | 44 +++++++++---------- 15 files changed, 45 insertions(+), 45 deletions(-) diff --git a/package.json b/package.json index 4798ffeb47c..94f117f8873 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ }, "devDependencies": { "@aws-sdk/client-dynamodb": "^3.564.0", - "@botpress/api": "1.54.0", + "@botpress/api": "1.55.1", "@botpress/cli": "workspace:*", "@botpress/client": "workspace:*", "@botpress/sdk": "workspace:*", diff --git a/packages/cli/package.json b/packages/cli/package.json index c3efa3347b9..3e4565299d1 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@botpress/cli", - "version": "4.27.0", + "version": "4.27.1", "description": "Botpress CLI", "scripts": { "build": "pnpm run build:types && pnpm run bundle && pnpm run template:gen", @@ -26,8 +26,8 @@ "dependencies": { "@apidevtools/json-schema-ref-parser": "^11.7.0", "@botpress/chat": "0.5.4", - "@botpress/client": "1.27.1", - "@botpress/sdk": "4.20.0", + "@botpress/client": "1.27.2", + "@botpress/sdk": "4.20.1", "@bpinternal/const": "^0.1.0", "@bpinternal/tunnel": "^0.1.1", "@bpinternal/verel": "^0.2.0", diff --git a/packages/cli/templates/empty-bot/package.json b/packages/cli/templates/empty-bot/package.json index 066503386df..ff047fdad1d 100644 --- a/packages/cli/templates/empty-bot/package.json +++ b/packages/cli/templates/empty-bot/package.json @@ -5,8 +5,8 @@ }, "private": true, "dependencies": { - "@botpress/client": "1.27.1", - "@botpress/sdk": "4.20.0" + "@botpress/client": "1.27.2", + "@botpress/sdk": "4.20.1" }, "devDependencies": { "@types/node": "^22.16.4", diff --git a/packages/cli/templates/empty-integration/package.json b/packages/cli/templates/empty-integration/package.json index b973094c300..9264fa5fd9f 100644 --- a/packages/cli/templates/empty-integration/package.json +++ b/packages/cli/templates/empty-integration/package.json @@ -6,8 +6,8 @@ }, "private": true, "dependencies": { - "@botpress/client": "1.27.1", - "@botpress/sdk": "4.20.0" + "@botpress/client": "1.27.2", + "@botpress/sdk": "4.20.1" }, "devDependencies": { "@types/node": "^22.16.4", diff --git a/packages/cli/templates/empty-plugin/package.json b/packages/cli/templates/empty-plugin/package.json index 525ce5d0620..71919fba8ca 100644 --- a/packages/cli/templates/empty-plugin/package.json +++ b/packages/cli/templates/empty-plugin/package.json @@ -6,7 +6,7 @@ }, "private": true, "dependencies": { - "@botpress/sdk": "4.20.0" + "@botpress/sdk": "4.20.1" }, "devDependencies": { "@types/node": "^22.16.4", diff --git a/packages/cli/templates/hello-world/package.json b/packages/cli/templates/hello-world/package.json index 1cc6ad03772..7222d15c25d 100644 --- a/packages/cli/templates/hello-world/package.json +++ b/packages/cli/templates/hello-world/package.json @@ -6,8 +6,8 @@ }, "private": true, "dependencies": { - "@botpress/client": "1.27.1", - "@botpress/sdk": "4.20.0" + "@botpress/client": "1.27.2", + "@botpress/sdk": "4.20.1" }, "devDependencies": { "@types/node": "^22.16.4", diff --git a/packages/cli/templates/webhook-message/package.json b/packages/cli/templates/webhook-message/package.json index f8c3b0b4d9b..242a0d6efc0 100644 --- a/packages/cli/templates/webhook-message/package.json +++ b/packages/cli/templates/webhook-message/package.json @@ -6,8 +6,8 @@ }, "private": true, "dependencies": { - "@botpress/client": "1.27.1", - "@botpress/sdk": "4.20.0", + "@botpress/client": "1.27.2", + "@botpress/sdk": "4.20.1", "axios": "^1.6.8" }, "devDependencies": { diff --git a/packages/client/package.json b/packages/client/package.json index d5b7ce7d024..884b2dc078b 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@botpress/client", - "version": "1.27.1", + "version": "1.27.2", "description": "Botpress Client", "main": "./dist/index.cjs", "module": "./dist/index.mjs", diff --git a/packages/cognitive/package.json b/packages/cognitive/package.json index c09637d26de..dcb705f9993 100644 --- a/packages/cognitive/package.json +++ b/packages/cognitive/package.json @@ -1,6 +1,6 @@ { "name": "@botpress/cognitive", - "version": "0.3.0", + "version": "0.3.1", "description": "Wrapper around the Botpress Client to call LLMs", "main": "./dist/index.cjs", "module": "./dist/index.mjs", diff --git a/packages/llmz/package.json b/packages/llmz/package.json index 66f5d0c02a3..0062e2feaf4 100644 --- a/packages/llmz/package.json +++ b/packages/llmz/package.json @@ -70,8 +70,8 @@ "tsx": "^4.19.2" }, "peerDependencies": { - "@botpress/client": "1.27.1", - "@botpress/cognitive": "0.3.0", + "@botpress/client": "1.27.2", + "@botpress/cognitive": "0.3.1", "@bpinternal/thicktoken": "^1.0.5", "@bpinternal/zui": "1.2.1" }, diff --git a/packages/sdk/package.json b/packages/sdk/package.json index ffe3f809cb2..d98baee2186 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@botpress/sdk", - "version": "4.20.0", + "version": "4.20.1", "description": "Botpress SDK", "main": "./dist/index.cjs", "module": "./dist/index.mjs", @@ -19,7 +19,7 @@ "author": "", "license": "MIT", "dependencies": { - "@botpress/client": "1.27.1", + "@botpress/client": "1.27.2", "browser-or-node": "^2.1.1", "semver": "^7.3.8" }, diff --git a/packages/vai/package.json b/packages/vai/package.json index 05c45801f37..cf9af6fe9e1 100644 --- a/packages/vai/package.json +++ b/packages/vai/package.json @@ -39,7 +39,7 @@ "tsup": "^8.0.2" }, "peerDependencies": { - "@botpress/client": "1.27.1", + "@botpress/client": "1.27.2", "@bpinternal/thicktoken": "^1.0.1", "@bpinternal/zui": "1.2.1", "lodash": "^4.17.21", diff --git a/packages/zai/package.json b/packages/zai/package.json index 63b6ad43b8a..2a27d1e1afb 100644 --- a/packages/zai/package.json +++ b/packages/zai/package.json @@ -1,7 +1,7 @@ { "name": "@botpress/zai", "description": "Zui AI (zai) – An LLM utility library written on top of Zui and the Botpress API", - "version": "2.5.2", + "version": "2.5.3", "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { @@ -32,7 +32,7 @@ "author": "", "license": "ISC", "dependencies": { - "@botpress/cognitive": "0.3.0", + "@botpress/cognitive": "0.3.1", "json5": "^2.2.3", "jsonrepair": "^3.10.0", "lodash-es": "^4.17.21", diff --git a/plugins/conversation-insights/package.json b/plugins/conversation-insights/package.json index 629789940be..0efc70fc068 100644 --- a/plugins/conversation-insights/package.json +++ b/plugins/conversation-insights/package.json @@ -6,7 +6,7 @@ }, "private": true, "dependencies": { - "@botpress/cognitive": "0.3.0", + "@botpress/cognitive": "0.3.1", "@botpress/sdk": "workspace:*", "browser-or-node": "^2.1.1", "jsonrepair": "^3.10.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 14d2d58d7e3..ad491670854 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,8 +17,8 @@ importers: specifier: ^3.564.0 version: 3.709.0 '@botpress/api': - specifier: 1.54.0 - version: 1.54.0 + specifier: 1.55.1 + version: 1.55.1 '@botpress/cli': specifier: workspace:* version: link:packages/cli @@ -2303,10 +2303,10 @@ importers: specifier: 0.5.4 version: link:../chat-client '@botpress/client': - specifier: 1.27.1 + specifier: 1.27.2 version: link:../client '@botpress/sdk': - specifier: 4.20.0 + specifier: 4.20.1 version: link:../sdk '@bpinternal/const': specifier: ^0.1.0 @@ -2421,10 +2421,10 @@ importers: packages/cli/templates/empty-bot: dependencies: '@botpress/client': - specifier: 1.27.1 + specifier: 1.27.2 version: link:../../../client '@botpress/sdk': - specifier: 4.20.0 + specifier: 4.20.1 version: link:../../../sdk devDependencies: '@types/node': @@ -2437,10 +2437,10 @@ importers: packages/cli/templates/empty-integration: dependencies: '@botpress/client': - specifier: 1.27.1 + specifier: 1.27.2 version: link:../../../client '@botpress/sdk': - specifier: 4.20.0 + specifier: 4.20.1 version: link:../../../sdk devDependencies: '@types/node': @@ -2453,7 +2453,7 @@ importers: packages/cli/templates/empty-plugin: dependencies: '@botpress/sdk': - specifier: 4.20.0 + specifier: 4.20.1 version: link:../../../sdk devDependencies: '@types/node': @@ -2466,10 +2466,10 @@ importers: packages/cli/templates/hello-world: dependencies: '@botpress/client': - specifier: 1.27.1 + specifier: 1.27.2 version: link:../../../client '@botpress/sdk': - specifier: 4.20.0 + specifier: 4.20.1 version: link:../../../sdk devDependencies: '@types/node': @@ -2482,10 +2482,10 @@ importers: packages/cli/templates/webhook-message: dependencies: '@botpress/client': - specifier: 1.27.1 + specifier: 1.27.2 version: link:../../../client '@botpress/sdk': - specifier: 4.20.0 + specifier: 4.20.1 version: link:../../../sdk axios: specifier: ^1.6.8 @@ -2633,10 +2633,10 @@ importers: specifier: ^7.26.3 version: 7.26.9 '@botpress/client': - specifier: 1.27.1 + specifier: 1.27.2 version: link:../client '@botpress/cognitive': - specifier: 0.3.0 + specifier: 0.3.1 version: link:../cognitive '@bpinternal/thicktoken': specifier: ^1.0.5 @@ -2739,7 +2739,7 @@ importers: packages/sdk: dependencies: '@botpress/client': - specifier: 1.27.1 + specifier: 1.27.2 version: link:../client '@bpinternal/zui': specifier: 1.2.1 @@ -2776,7 +2776,7 @@ importers: packages/vai: dependencies: '@botpress/client': - specifier: 1.27.1 + specifier: 1.27.2 version: link:../client '@bpinternal/thicktoken': specifier: ^1.0.1 @@ -2819,7 +2819,7 @@ importers: packages/zai: dependencies: '@botpress/cognitive': - specifier: 0.3.0 + specifier: 0.3.1 version: link:../cognitive '@bpinternal/thicktoken': specifier: ^1.0.0 @@ -2902,7 +2902,7 @@ importers: plugins/conversation-insights: dependencies: '@botpress/cognitive': - specifier: 0.3.0 + specifier: 0.3.1 version: link:../../packages/cognitive '@botpress/sdk': specifier: workspace:* @@ -3751,8 +3751,8 @@ packages: '@bcoe/v8-coverage@0.2.3': resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} - '@botpress/api@1.54.0': - resolution: {integrity: sha512-vfOKxzsw07s5Vvawd0CQl5qBPIKab/7NP6Rb9tiD/ULAfGLRUa8+2sE3FYZCfwK8iHfJ7oDRY0bQsqZwHxVmGA==} + '@botpress/api@1.55.1': + resolution: {integrity: sha512-Nq37hVSTXQhc1/1SSxGurKIYpajUWiYIQPQ56dEToG9vrw25Guvh9JhVFiDqSOk44HaQR++r/5rNFrQ4fvQCHg==} '@bpinternal/const@0.1.0': resolution: {integrity: sha512-iIQg9oYYXOt+LSK34oNhJVQTcgRdtLmLZirEUaE+R9hnmbKONA5reR2kTewxZmekGyxej+5RtDK9xrC/0hmeAw==} @@ -12770,7 +12770,7 @@ snapshots: '@bcoe/v8-coverage@0.2.3': {} - '@botpress/api@1.54.0': + '@botpress/api@1.55.1': dependencies: '@bpinternal/opapi': 1.0.0(openapi-types@12.1.3) transitivePeerDependencies: From 6fc5da1f14a6c4288b2fcfcff6ef69dfb3ecb0cd Mon Sep 17 00:00:00 2001 From: Mathieu Faucher <99497774+Math-Fauch@users.noreply.github.com> Date: Thu, 27 Nov 2025 21:48:54 -0500 Subject: [PATCH 2/2] chore(integrations/github): Remove disabling of lint (#14492) --- integrations/github/integration.definition.ts | 2 +- .../github/src/definitions/actions.ts | 50 ++++++++++--------- integrations/github/src/definitions/events.ts | 14 +++--- 3 files changed, 35 insertions(+), 31 deletions(-) diff --git a/integrations/github/integration.definition.ts b/integrations/github/integration.definition.ts index 0569c51a6a1..178712ae310 100644 --- a/integrations/github/integration.definition.ts +++ b/integrations/github/integration.definition.ts @@ -8,7 +8,7 @@ import { actions, events, configuration, configurations, channels, user, secrets export default new sdk.IntegrationDefinition({ name: INTEGRATION_NAME, title: 'GitHub', - version: '1.1.5', + version: '1.1.6', icon: 'icon.svg', readme: 'hub.md', description: 'Manage GitHub issues, pull requests, and repositories.', diff --git a/integrations/github/src/definitions/actions.ts b/integrations/github/src/definitions/actions.ts index 03132d2b87e..380e7caf752 100644 --- a/integrations/github/src/definitions/actions.ts +++ b/integrations/github/src/definitions/actions.ts @@ -8,28 +8,30 @@ export type Target = { tags: { [key: string]: string } channel: (typeof Channels)[number] } - -const findTarget = { - input: { - schema: z.object({ - query: z.string(), - channel: z.enum(Channels), - repo: z.string().title('Repository').describe('The repository name'), - }), - }, - output: { - schema: z.object({ - targets: z.array( - z.object({ - displayName: z.string(), - tags: z.record(z.string()), - channel: z.enum(Channels), - }) - ), - }), - }, -} - export const actions = { - findTarget, -} satisfies sdk.IntegrationDefinitionProps['actions'] + findTarget: { + title: 'Find Target', + description: 'Find a target in a repository', + input: { + schema: z.object({ + query: z.string().title('Query').describe('The query used to find the target'), + channel: z.enum(Channels).title('Channel').describe('The channel of the target'), + repo: z.string().title('Repository').describe('The repository name'), + }), + }, + output: { + schema: z.object({ + targets: z + .array( + z.object({ + displayName: z.string().title('Display Name').describe('The display name'), + tags: z.record(z.string()).title('Tags').describe('The tags associated with the target'), + channel: z.enum(Channels).title('Channel').describe('The channel of the target'), + }) + ) + .title('Targets') + .describe('The list of received target'), + }), + }, + }, +} as const satisfies sdk.IntegrationDefinitionProps['actions'] diff --git a/integrations/github/src/definitions/events.ts b/integrations/github/src/definitions/events.ts index bdabd7c1562..dd09f358334 100644 --- a/integrations/github/src/definitions/events.ts +++ b/integrations/github/src/definitions/events.ts @@ -17,7 +17,7 @@ const pullRequestOpened = { // The following fields have been kept for backwards compatibility. // TODO: Remove these fields in the next major version : - type: z.literal('github:pullRequestOpened').optional().title('DEPRECATED: type'), + type: z.literal('github:pullRequestOpened').optional().title('DEPRECATED: type').describe('Not needed anymore'), id: z.number().title('DEPRECATED: id').describe('use pullRequest.id instead'), title: z.string().title('DEPRECATED: title').describe('use pullRequest.name instead'), content: z.string().title('DEPRECATED: content').describe('use pullRequest.body instead'), @@ -31,10 +31,11 @@ const pullRequestOpened = { targets: z .object({ pullRequest: z.string().optional().title('DEPRECATED: pullRequest').describe('use pullRequest.number instead'), - issue: z.string().optional().title('DEPRECATED: issue'), - discussion: z.string().optional().title('DEPRECATED: discussion'), + issue: z.string().optional().title('DEPRECATED: issue').describe('Not needed'), + discussion: z.string().optional().title('DEPRECATED: discussion').describe('Not needed'), }) - .title('DEPRECATED: targets'), + .title('DEPRECATED: targets') + .describe('Not needed'), }), } as const satisfies sdk.EventDefinition @@ -47,7 +48,7 @@ export const pullRequestMerged = { // The following fields have been kept for backwards compatibility. // TODO: Remove these fields in the next major version : - type: z.literal('github:pullRequestMerged').optional().title('DEPRECATED: type'), + type: z.literal('github:pullRequestMerged').optional().title('DEPRECATED: type').describe('Not needed anymore'), id: z.number().title('DEPRECATED: id').describe('use pullRequest.id instead'), title: z.string().title('DEPRECATED: title').describe('use pullRequest.name instead'), content: z.string().title('DEPRECATED: content').describe('use pullRequest.body instead'), @@ -64,7 +65,8 @@ export const pullRequestMerged = { issue: z.string().optional().title('DEPRECATED: issue'), discussion: z.string().optional().title('DEPRECATED: discussion'), }) - .title('DEPRECATED: targets'), + .title('DEPRECATED: targets') + .describe('Not needed'), }), } as const satisfies sdk.EventDefinition