@botpress/vai 0.0.6 → 0.0.7

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.
@@ -46,7 +46,7 @@ ${options.systemMessage}
46
46
  ---
47
47
  Please generate a JSON response with the following format:
48
48
  \`\`\`typescript
49
- ${outputSchema.toTypescriptType()}
49
+ ${outputSchema.toTypescriptType({ treatDefaultAsOptional: true })}
50
50
  \`\`\`
51
51
  `.trim(),
52
52
  messages: [
@@ -0,0 +1,13 @@
1
+ import rootConfig from '../../eslint.config.mjs'
2
+
3
+ export default [
4
+ ...rootConfig,
5
+ {
6
+ languageOptions: {
7
+ parserOptions: {
8
+ project: ['./tsconfig.json'],
9
+ tsconfigRootDir: import.meta.dirname,
10
+ },
11
+ },
12
+ },
13
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/vai",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "Vitest AI (vai) – a vitest extension for testing with LLMs",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -10,6 +10,9 @@
10
10
  "require": "./dist/index.js"
11
11
  }
12
12
  },
13
+ "repository": {
14
+ "url": "https://github.com/botpress/botpress"
15
+ },
13
16
  "scripts": {
14
17
  "check:type": "tsc --noEmit",
15
18
  "build": "pnpm run build:types && pnpm run build:neutral",
@@ -31,19 +34,19 @@
31
34
  "@botpress/common": "workspace:*",
32
35
  "@types/lodash": "^4.14.191",
33
36
  "dotenv": "^16.4.4",
34
- "esbuild": "^0.16.12",
37
+ "esbuild": "^0.25.10",
35
38
  "glob": "^9.3.4",
36
39
  "tsup": "^8.0.2"
37
40
  },
38
41
  "peerDependencies": {
39
- "@botpress/client": "1.15.1",
42
+ "@botpress/client": "1.26.0",
40
43
  "@bpinternal/thicktoken": "^1.0.1",
41
- "@bpinternal/zui": "^1.0.0",
44
+ "@bpinternal/zui": "1.2.1",
42
45
  "lodash": "^4.17.21",
43
46
  "vitest": "^2 || ^3 || ^4 || ^5"
44
47
  },
45
48
  "engines": {
46
49
  "node": ">=18.0.0"
47
50
  },
48
- "packageManager": "pnpm@8.6.2"
51
+ "packageManager": "pnpm@10.12.4"
49
52
  }
package/tsconfig.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "strict": false
5
5
  },
6
6
  "exclude": ["node_modules", "dist"],
7
- "include": ["src/**/*", "vitest.d.ts", "e2e/**/*"]
7
+ "include": ["src/**/*", "e2e/**/*", "*.ts"]
8
8
  }