Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integrations/github/integration.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down
50 changes: 26 additions & 24 deletions integrations/github/src/definitions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
14 changes: 8 additions & 6 deletions integrations/github/src/definitions/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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

Expand All @@ -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'),
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*",
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/templates/empty-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/templates/empty-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/templates/empty-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"private": true,
"dependencies": {
"@botpress/sdk": "4.20.0"
"@botpress/sdk": "4.20.1"
},
"devDependencies": {
"@types/node": "^22.16.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/templates/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/templates/webhook-message/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/cognitive/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/llmz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/vai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/zai/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion plugins/conversation-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading
Loading