@botpress/cognitive 0.1.24 → 0.1.25

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,19 +1,19 @@
1
1
 
2
- > @botpress/cognitive@0.1.24 build /home/runner/work/botpress/botpress/packages/cognitive
2
+ > @botpress/cognitive@0.1.25 build /home/runner/work/botpress/botpress/packages/cognitive
3
3
  > pnpm build:type && pnpm build:neutral && size-limit
4
4
 
5
5
 
6
- > @botpress/cognitive@0.1.24 build:type /home/runner/work/botpress/botpress/packages/cognitive
6
+ > @botpress/cognitive@0.1.25 build:type /home/runner/work/botpress/botpress/packages/cognitive
7
7
  > tsup --tsconfig tsconfig.build.json ./src/index.ts --dts-resolve --dts-only --clean
8
8
 
9
9
  CLI Building entry: ./src/index.ts
10
10
  CLI Using tsconfig: tsconfig.build.json
11
11
  CLI tsup v8.0.2
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 9990ms
13
+ DTS ⚡️ Build success in 9838ms
14
14
  DTS dist/index.d.ts 578.33 KB
15
15
 
16
- > @botpress/cognitive@0.1.24 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
16
+ > @botpress/cognitive@0.1.25 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
17
17
  > ts-node -T ./build.ts --neutral
18
18
 
19
19
  Done
package/build.ts CHANGED
@@ -13,11 +13,12 @@ const common: esbuild.BuildOptions = {
13
13
  }
14
14
 
15
15
  async function generateTypes() {
16
- const code = `export type GenerateContentInput = ${llm.schemas.GenerateContentInputSchema(z.any()).toTypescript()};
16
+ const code =
17
+ `export type GenerateContentInput = ${llm.schemas.GenerateContentInputSchema(z.any()).toTypescriptType()};
17
18
 
18
- export type GenerateContentOutput = ${llm.schemas.GenerateContentOutputSchema.toTypescript()};
19
+ export type GenerateContentOutput = ${llm.schemas.GenerateContentOutputSchema.toTypescriptType()};
19
20
 
20
- export type Model = ${llm.schemas.ModelSchema.toTypescript()};
21
+ export type Model = ${llm.schemas.ModelSchema.toTypescriptType()};
21
22
  `.trim()
22
23
 
23
24
  const filePath = './src/schemas.gen.ts'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/cognitive",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Wrapper around the Botpress Client to call LLMs",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -30,7 +30,7 @@
30
30
  "devDependencies": {
31
31
  "@botpress/client": "workspace:*",
32
32
  "@botpress/common": "workspace:*",
33
- "@bpinternal/zui": "0.22.5",
33
+ "@bpinternal/zui": "^1.0.0",
34
34
  "@size-limit/file": "^11.1.6",
35
35
  "@types/axios": "^0.14.4",
36
36
  "@types/debug": "^4.1.12",