@botpress/cli 0.8.30 → 0.8.32

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.
@@ -1,20 +1,20 @@
1
1
 
2
- > @botpress/cli@0.8.30 build /home/runner/work/botpress/botpress/packages/cli
2
+ > @botpress/cli@0.8.32 build /home/runner/work/botpress/botpress/packages/cli
3
3
  > pnpm run bundle && pnpm run template:gen
4
4
 
5
5
 
6
- > @botpress/cli@0.8.30 bundle /home/runner/work/botpress/botpress/packages/cli
6
+ > @botpress/cli@0.8.32 bundle /home/runner/work/botpress/botpress/packages/cli
7
7
  > ts-node -T build.ts
8
8
 
9
9
 
10
- > @botpress/cli@0.8.30 template:gen /home/runner/work/botpress/botpress/packages/cli
10
+ > @botpress/cli@0.8.32 template:gen /home/runner/work/botpress/botpress/packages/cli
11
11
  > pnpm -r --stream -F @bp-templates/* exec bp gen
12
12
 
13
- šŸ¤– Botpress CLI v0.8.30
14
- šŸ¤– Botpress CLI v0.8.30
15
- šŸ¤– Botpress CLI v0.8.30
16
- šŸ¤– Botpress CLI v0.8.30
13
+ šŸ¤– Botpress CLI v0.8.32
14
+ šŸ¤– Botpress CLI v0.8.32
15
+ šŸ¤– Botpress CLI v0.8.32
16
+ šŸ¤– Botpress CLI v0.8.32
17
17
  ⚠ No typings to generate for bot
18
- ā—‹ Generating typings for integration empty-integration...ā—‹ Generating typings for integration webhook-message...ā—‹ Generating typings for integration hello-world...āœ“ Typings available at .botpress
18
+ ā—‹ Generating typings for integration webhook-message...ā—‹ Generating typings for integration hello-world...ā—‹ Generating typings for integration empty-integration...āœ“ Typings available at .botpress
19
19
  āœ“ Typings available at .botpress
20
20
  āœ“ Typings available at .botpress
@@ -99,6 +99,8 @@ class IntegrationImplementationIndexModule extends import_module.Module {
99
99
  "type SimplifyObject<T extends object> = T extends infer O ? { [K in keyof O]: Simplify<O[K]> } : never",
100
100
  "type Simplify<T> = T extends (...args: infer A) => infer R",
101
101
  " ? (...args: Simplify<A>) => Simplify<R>",
102
+ " : T extends Buffer",
103
+ " ? Buffer",
102
104
  " : T extends Promise<infer R>",
103
105
  " ? Promise<Simplify<R>>",
104
106
  " : T extends object",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/code-generation/integration-implementation.ts"],
4
- "sourcesContent": ["import { GENERATED_HEADER, INDEX_FILE } from './const'\nimport { stringifySingleLine } from './generators'\nimport { ActionsModule } from './integration-schemas/actions-module'\nimport { ChannelsModule } from './integration-schemas/channels-module'\nimport { ConfigurationModule } from './integration-schemas/configuration-module'\nimport { EventsModule } from './integration-schemas/events-module'\nimport { StatesModule } from './integration-schemas/states-module'\nimport { Module, ModuleDef } from './module'\nimport * as types from './typings'\n\nexport class IntegrationImplementationIndexModule extends Module {\n public static async create(integration: types.IntegrationDefinition): Promise<IntegrationImplementationIndexModule> {\n const configModule = await ConfigurationModule.create(integration.configuration ?? { schema: {} })\n configModule.unshift('configuration')\n\n const actionsModule = await ActionsModule.create(integration.actions ?? {})\n actionsModule.unshift('actions')\n\n const channelsModule = await ChannelsModule.create(integration.channels ?? {})\n channelsModule.unshift('channels')\n\n const eventsModule = await EventsModule.create(integration.events ?? {})\n eventsModule.unshift('events')\n\n const statesModule = await StatesModule.create(integration.states ?? {})\n statesModule.unshift('states')\n\n const inst = new IntegrationImplementationIndexModule(\n integration,\n configModule,\n actionsModule,\n channelsModule,\n eventsModule,\n statesModule,\n {\n path: INDEX_FILE,\n exportName: 'Integration',\n content: '',\n }\n )\n\n inst.pushDep(configModule)\n inst.pushDep(actionsModule)\n inst.pushDep(channelsModule)\n inst.pushDep(eventsModule)\n inst.pushDep(statesModule)\n return inst\n }\n\n private constructor(\n private integration: types.IntegrationDefinition,\n private configModule: ConfigurationModule,\n private actionsModule: ActionsModule,\n private channelsModule: ChannelsModule,\n private eventsModule: EventsModule,\n private statesModule: StatesModule,\n def: ModuleDef\n ) {\n super(def)\n }\n\n public override get content(): string {\n let content = GENERATED_HEADER\n\n const { configModule, actionsModule, channelsModule, eventsModule, statesModule, integration } = this\n\n const configImport = configModule.import(this)\n const actionsImport = actionsModule.import(this)\n const channelsImport = channelsModule.import(this)\n const eventsImport = eventsModule.import(this)\n const statesImport = statesModule.import(this)\n\n content += [\n GENERATED_HEADER,\n 'import * as sdk from \"@botpress/sdk\"',\n '',\n `import type * as ${configModule.name} from \"./${configImport}\"`,\n `import type * as ${actionsModule.name} from \"./${actionsImport}\"`,\n `import type * as ${channelsModule.name} from \"./${channelsImport}\"`,\n `import type * as ${eventsModule.name} from \"./${eventsImport}\"`,\n `import type * as ${statesModule.name} from \"./${statesImport}\"`,\n `export * as ${configModule.name} from \"./${configImport}\"`,\n `export * as ${actionsModule.name} from \"./${actionsImport}\"`,\n `export * as ${channelsModule.name} from \"./${channelsImport}\"`,\n `export * as ${eventsModule.name} from \"./${eventsImport}\"`,\n `export * as ${statesModule.name} from \"./${statesImport}\"`,\n '',\n '// type utils',\n 'type Cast<X, Y> = X extends Y ? X : Y',\n 'type ValueOf<T> = T[keyof T]',\n 'type SimplifyObject<T extends object> = T extends infer O ? { [K in keyof O]: Simplify<O[K]> } : never',\n 'type Simplify<T> = T extends (...args: infer A) => infer R',\n ' ? (...args: Simplify<A>) => Simplify<R>',\n ' : T extends Promise<infer R>',\n ' ? Promise<Simplify<R>>',\n ' : T extends object',\n ' ? SimplifyObject<T>',\n ' : T',\n '',\n 'type TIntegration = {',\n ` name: \"${integration.name}\"`,\n ` version: \"${integration.version}\"`,\n ` configuration: ${configModule.name}.${configModule.exports}`,\n ` actions: ${actionsModule.name}.${actionsModule.exports}`,\n ` channels: ${channelsModule.name}.${channelsModule.exports}`,\n ` events: ${eventsModule.name}.${eventsModule.exports}`,\n ` states: ${statesModule.name}.${statesModule.exports}`,\n ` user: ${stringifySingleLine(integration.user)}`,\n '}',\n '',\n 'export type IntegrationProps = sdk.IntegrationProps<TIntegration>',\n '',\n 'export class Integration extends sdk.Integration<TIntegration> {}',\n '',\n 'export type Client = sdk.IntegrationSpecificClient<TIntegration>',\n '',\n '// extra types',\n '',\n \"export type HandlerProps = Simplify<Parameters<IntegrationProps['handler']>[0]>\",\n '',\n 'export type ActionProps = Simplify<{',\n \" [K in keyof IntegrationProps['actions']]: Parameters<IntegrationProps['actions'][K]>[0]\",\n '}>',\n 'export type AnyActionProps = ValueOf<ActionProps>',\n '',\n 'export type MessageProps = Simplify<{',\n \" [TChannel in keyof IntegrationProps['channels']]: {\",\n \" [TMessage in keyof IntegrationProps['channels'][TChannel]['messages']]: Parameters<\",\n \" IntegrationProps['channels'][TChannel]['messages'][TMessage]\",\n ' >[0]',\n ' }',\n '}>',\n 'export type AnyMessageProps = ValueOf<ValueOf<MessageProps>>',\n '',\n \"export type Context = HandlerProps['ctx']\",\n \"export type Logger = HandlerProps['logger']\",\n '',\n 'export type AckFunctions = {',\n ' [TChannel in keyof MessageProps]: {',\n \" [TMessage in keyof MessageProps[TChannel]]: Cast<MessageProps[TChannel][TMessage], AnyMessageProps>['ack']\",\n ' }',\n '}',\n 'export type AnyAckFunction = ValueOf<ValueOf<AckFunctions>>',\n '',\n 'export type ClientOperation = Simplify<keyof Client>',\n 'export type ClientRequests = Simplify<{',\n ' [K in ClientOperation]: Parameters<Client[K]>[0]',\n '}>',\n 'export type ClientResponses = Simplify<{',\n ' [K in ClientOperation]: Awaited<ReturnType<Client[K]>>',\n '}>',\n ].join('\\n')\n\n return content\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA6C;AAC7C,wBAAoC;AACpC,4BAA8B;AAC9B,6BAA+B;AAC/B,kCAAoC;AACpC,2BAA6B;AAC7B,2BAA6B;AAC7B,oBAAkC;AAG3B,MAAM,6CAA6C,qBAAO;AAAA,EAuCvD,YACE,aACA,cACA,eACA,gBACA,cACA,cACR,KACA;AACA,UAAM,GAAG;AARD;AACA;AACA;AACA;AACA;AACA;AAAA,EAIV;AAAA,EA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ACF;",
4
+ "sourcesContent": ["import { GENERATED_HEADER, INDEX_FILE } from './const'\nimport { stringifySingleLine } from './generators'\nimport { ActionsModule } from './integration-schemas/actions-module'\nimport { ChannelsModule } from './integration-schemas/channels-module'\nimport { ConfigurationModule } from './integration-schemas/configuration-module'\nimport { EventsModule } from './integration-schemas/events-module'\nimport { StatesModule } from './integration-schemas/states-module'\nimport { Module, ModuleDef } from './module'\nimport * as types from './typings'\n\nexport class IntegrationImplementationIndexModule extends Module {\n public static async create(integration: types.IntegrationDefinition): Promise<IntegrationImplementationIndexModule> {\n const configModule = await ConfigurationModule.create(integration.configuration ?? { schema: {} })\n configModule.unshift('configuration')\n\n const actionsModule = await ActionsModule.create(integration.actions ?? {})\n actionsModule.unshift('actions')\n\n const channelsModule = await ChannelsModule.create(integration.channels ?? {})\n channelsModule.unshift('channels')\n\n const eventsModule = await EventsModule.create(integration.events ?? {})\n eventsModule.unshift('events')\n\n const statesModule = await StatesModule.create(integration.states ?? {})\n statesModule.unshift('states')\n\n const inst = new IntegrationImplementationIndexModule(\n integration,\n configModule,\n actionsModule,\n channelsModule,\n eventsModule,\n statesModule,\n {\n path: INDEX_FILE,\n exportName: 'Integration',\n content: '',\n }\n )\n\n inst.pushDep(configModule)\n inst.pushDep(actionsModule)\n inst.pushDep(channelsModule)\n inst.pushDep(eventsModule)\n inst.pushDep(statesModule)\n return inst\n }\n\n private constructor(\n private integration: types.IntegrationDefinition,\n private configModule: ConfigurationModule,\n private actionsModule: ActionsModule,\n private channelsModule: ChannelsModule,\n private eventsModule: EventsModule,\n private statesModule: StatesModule,\n def: ModuleDef\n ) {\n super(def)\n }\n\n public override get content(): string {\n let content = GENERATED_HEADER\n\n const { configModule, actionsModule, channelsModule, eventsModule, statesModule, integration } = this\n\n const configImport = configModule.import(this)\n const actionsImport = actionsModule.import(this)\n const channelsImport = channelsModule.import(this)\n const eventsImport = eventsModule.import(this)\n const statesImport = statesModule.import(this)\n\n content += [\n GENERATED_HEADER,\n 'import * as sdk from \"@botpress/sdk\"',\n '',\n `import type * as ${configModule.name} from \"./${configImport}\"`,\n `import type * as ${actionsModule.name} from \"./${actionsImport}\"`,\n `import type * as ${channelsModule.name} from \"./${channelsImport}\"`,\n `import type * as ${eventsModule.name} from \"./${eventsImport}\"`,\n `import type * as ${statesModule.name} from \"./${statesImport}\"`,\n `export * as ${configModule.name} from \"./${configImport}\"`,\n `export * as ${actionsModule.name} from \"./${actionsImport}\"`,\n `export * as ${channelsModule.name} from \"./${channelsImport}\"`,\n `export * as ${eventsModule.name} from \"./${eventsImport}\"`,\n `export * as ${statesModule.name} from \"./${statesImport}\"`,\n '',\n '// type utils',\n 'type Cast<X, Y> = X extends Y ? X : Y',\n 'type ValueOf<T> = T[keyof T]',\n 'type SimplifyObject<T extends object> = T extends infer O ? { [K in keyof O]: Simplify<O[K]> } : never',\n 'type Simplify<T> = T extends (...args: infer A) => infer R',\n ' ? (...args: Simplify<A>) => Simplify<R>',\n ' : T extends Buffer',\n ' ? Buffer',\n ' : T extends Promise<infer R>',\n ' ? Promise<Simplify<R>>',\n ' : T extends object',\n ' ? SimplifyObject<T>',\n ' : T',\n '',\n 'type TIntegration = {',\n ` name: \"${integration.name}\"`,\n ` version: \"${integration.version}\"`,\n ` configuration: ${configModule.name}.${configModule.exports}`,\n ` actions: ${actionsModule.name}.${actionsModule.exports}`,\n ` channels: ${channelsModule.name}.${channelsModule.exports}`,\n ` events: ${eventsModule.name}.${eventsModule.exports}`,\n ` states: ${statesModule.name}.${statesModule.exports}`,\n ` user: ${stringifySingleLine(integration.user)}`,\n '}',\n '',\n 'export type IntegrationProps = sdk.IntegrationProps<TIntegration>',\n '',\n 'export class Integration extends sdk.Integration<TIntegration> {}',\n '',\n 'export type Client = sdk.IntegrationSpecificClient<TIntegration>',\n '',\n '// extra types',\n '',\n \"export type HandlerProps = Simplify<Parameters<IntegrationProps['handler']>[0]>\",\n '',\n 'export type ActionProps = Simplify<{',\n \" [K in keyof IntegrationProps['actions']]: Parameters<IntegrationProps['actions'][K]>[0]\",\n '}>',\n 'export type AnyActionProps = ValueOf<ActionProps>',\n '',\n 'export type MessageProps = Simplify<{',\n \" [TChannel in keyof IntegrationProps['channels']]: {\",\n \" [TMessage in keyof IntegrationProps['channels'][TChannel]['messages']]: Parameters<\",\n \" IntegrationProps['channels'][TChannel]['messages'][TMessage]\",\n ' >[0]',\n ' }',\n '}>',\n 'export type AnyMessageProps = ValueOf<ValueOf<MessageProps>>',\n '',\n \"export type Context = HandlerProps['ctx']\",\n \"export type Logger = HandlerProps['logger']\",\n '',\n 'export type AckFunctions = {',\n ' [TChannel in keyof MessageProps]: {',\n \" [TMessage in keyof MessageProps[TChannel]]: Cast<MessageProps[TChannel][TMessage], AnyMessageProps>['ack']\",\n ' }',\n '}',\n 'export type AnyAckFunction = ValueOf<ValueOf<AckFunctions>>',\n '',\n 'export type ClientOperation = Simplify<keyof Client>',\n 'export type ClientRequests = Simplify<{',\n ' [K in ClientOperation]: Parameters<Client[K]>[0]',\n '}>',\n 'export type ClientResponses = Simplify<{',\n ' [K in ClientOperation]: Awaited<ReturnType<Client[K]>>',\n '}>',\n ].join('\\n')\n\n return content\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA6C;AAC7C,wBAAoC;AACpC,4BAA8B;AAC9B,6BAA+B;AAC/B,kCAAoC;AACpC,2BAA6B;AAC7B,2BAA6B;AAC7B,oBAAkC;AAG3B,MAAM,6CAA6C,qBAAO;AAAA,EAuCvD,YACE,aACA,cACA,eACA,gBACA,cACA,cACR,KACA;AACA,UAAM,GAAG;AARD;AACA;AACA;AACA;AACA;AACA;AAAA,EAIV;AAAA,EAhDA,aAAoB,OAAO,aAAyF;AAClH,UAAM,eAAe,MAAM,gDAAoB,OAAO,YAAY,iBAAiB,EAAE,QAAQ,CAAC,EAAE,CAAC;AACjG,iBAAa,QAAQ,eAAe;AAEpC,UAAM,gBAAgB,MAAM,oCA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c,gBAAgB;AAAA,MAC7C,eAAe,eAAe,gBAAgB;AAAA,MAC9C,eAAe,aAAa,gBAAgB;AAAA,MAC5C,eAAe,aAAa,gBAAgB;AAAA,MAC5C;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,YAAY,YAAY;AAAA,MACxB,eAAe,YAAY;AAAA,MAC3B,oBAAoB,aAAa,QAAQ,aAAa;AAAA,MACtD,cAAc,cAAc,QAAQ,cAAc;AAAA,MAClD,eAAe,eAAe,QAAQ,eAAe;AAAA,MACrD,aAAa,aAAa,QAAQ,aAAa;AAAA,MAC/C,aAAa,aAAa,QAAQ,aAAa;AAAA,MAC/C,eAAW,uCAAoB,YAAY,IAAI;AAAA,MAC/C;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,EAAE,KAAK,IAAI;AAEX,WAAO;AAAA,EACT;AACF;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@botpress/cli",
3
- "version": "0.8.30",
3
+ "version": "0.8.32",
4
4
  "description": "Botpress CLI",
5
5
  "scripts": {
6
6
  "build": "pnpm run bundle && pnpm run template:gen",
7
7
  "dev": "ts-node -T src/index.ts",
8
8
  "start": "node dist/index.js",
9
- "type:check": "tsc --noEmit",
9
+ "check:type": "tsc --noEmit",
10
10
  "bundle": "ts-node -T build.ts",
11
11
  "template:gen": "pnpm -r --stream -F @bp-templates/* exec bp gen",
12
- "e2e:test": "ts-node -T ./e2e",
13
- "unit:test": "pnpm vitest --run"
12
+ "test:e2e": "ts-node -T ./e2e",
13
+ "test:unit": "pnpm vitest --run"
14
14
  },
15
15
  "keywords": [],
16
16
  "author": "",
@@ -21,7 +21,7 @@
21
21
  "main": "dist/index.js",
22
22
  "dependencies": {
23
23
  "@botpress/client": "0.22.0",
24
- "@botpress/sdk": "0.8.25",
24
+ "@botpress/sdk": "0.8.27",
25
25
  "@bpinternal/const": "^0.0.20",
26
26
  "@bpinternal/tunnel": "^0.1.1",
27
27
  "@bpinternal/yargs-extra": "^0.0.3",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@bp-templates/echo-bot",
3
3
  "scripts": {
4
- "type:check": "tsc --noEmit"
4
+ "check:type": "tsc --noEmit"
5
5
  },
6
6
  "private": true,
7
7
  "dependencies": {
8
8
  "@botpress/client": "0.22.0",
9
- "@botpress/sdk": "0.8.25"
9
+ "@botpress/sdk": "0.8.27"
10
10
  },
11
11
  "devDependencies": {
12
12
  "@types/node": "^18.11.17",
@@ -24,6 +24,8 @@ type ValueOf<T> = T[keyof T]
24
24
  type SimplifyObject<T extends object> = T extends infer O ? { [K in keyof O]: Simplify<O[K]> } : never
25
25
  type Simplify<T> = T extends (...args: infer A) => infer R
26
26
  ? (...args: Simplify<A>) => Simplify<R>
27
+ : T extends Buffer
28
+ ? Buffer
27
29
  : T extends Promise<infer R>
28
30
  ? Promise<Simplify<R>>
29
31
  : T extends object
@@ -2,12 +2,12 @@
2
2
  "name": "@bp-templates/empty-integration",
3
3
  "integrationName": "empty-integration",
4
4
  "scripts": {
5
- "type:check": "tsc --noEmit"
5
+ "check:type": "tsc --noEmit"
6
6
  },
7
7
  "private": true,
8
8
  "dependencies": {
9
9
  "@botpress/client": "0.22.0",
10
- "@botpress/sdk": "0.8.25"
10
+ "@botpress/sdk": "0.8.27"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/node": "^18.11.17",
@@ -24,6 +24,8 @@ type ValueOf<T> = T[keyof T]
24
24
  type SimplifyObject<T extends object> = T extends infer O ? { [K in keyof O]: Simplify<O[K]> } : never
25
25
  type Simplify<T> = T extends (...args: infer A) => infer R
26
26
  ? (...args: Simplify<A>) => Simplify<R>
27
+ : T extends Buffer
28
+ ? Buffer
27
29
  : T extends Promise<infer R>
28
30
  ? Promise<Simplify<R>>
29
31
  : T extends object
@@ -2,12 +2,12 @@
2
2
  "name": "@bp-templates/hello-world",
3
3
  "integrationName": "hello-world",
4
4
  "scripts": {
5
- "type:check": "tsc --noEmit"
5
+ "check:type": "tsc --noEmit"
6
6
  },
7
7
  "private": true,
8
8
  "dependencies": {
9
9
  "@botpress/client": "0.22.0",
10
- "@botpress/sdk": "0.8.25"
10
+ "@botpress/sdk": "0.8.27"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/node": "^18.11.17",
@@ -24,6 +24,8 @@ type ValueOf<T> = T[keyof T]
24
24
  type SimplifyObject<T extends object> = T extends infer O ? { [K in keyof O]: Simplify<O[K]> } : never
25
25
  type Simplify<T> = T extends (...args: infer A) => infer R
26
26
  ? (...args: Simplify<A>) => Simplify<R>
27
+ : T extends Buffer
28
+ ? Buffer
27
29
  : T extends Promise<infer R>
28
30
  ? Promise<Simplify<R>>
29
31
  : T extends object
@@ -2,12 +2,12 @@
2
2
  "name": "@bp-templates/webhook-message",
3
3
  "integrationName": "webhook-message",
4
4
  "scripts": {
5
- "type:check": "tsc --noEmit"
5
+ "check:type": "tsc --noEmit"
6
6
  },
7
7
  "private": true,
8
8
  "dependencies": {
9
9
  "@botpress/client": "0.22.0",
10
- "@botpress/sdk": "0.8.25",
10
+ "@botpress/sdk": "0.8.27",
11
11
  "axios": "^1.6.8"
12
12
  },
13
13
  "devDependencies": {