@startsimpli/llm 0.4.8 → 0.4.11

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startsimpli/llm",
3
- "version": "0.4.8",
3
+ "version": "0.4.11",
4
4
  "description": "Generic LLM service infrastructure — provider abstraction, retry logic, JSON extraction",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -23,12 +23,12 @@
23
23
  "clean": "rm -rf dist"
24
24
  },
25
25
  "dependencies": {
26
- "zod": "^3.22.4"
26
+ "zod": "^4.3.6"
27
27
  },
28
28
  "devDependencies": {
29
- "@types/node": "^20.11.0",
29
+ "@types/node": "^20.19.39",
30
30
  "tsup": "^8.5.1",
31
- "typescript": "^5.3.3",
32
- "vitest": "^2.1.9"
31
+ "typescript": "^6.0.3",
32
+ "vitest": "^4.1.5"
33
33
  }
34
34
  }
package/src/service.ts CHANGED
@@ -308,7 +308,7 @@ export class LLMService<TOutput> {
308
308
  return {
309
309
  valid: false,
310
310
  zodError: result.error,
311
- errors: result.error.errors.map((e) => `${e.path.join('.')}: ${e.message}`),
311
+ errors: result.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`),
312
312
  };
313
313
  }
314
314
 
@@ -10,7 +10,7 @@ export function buildSchemaErrorCorrectionPrompt(
10
10
  previousResponse: string,
11
11
  zodError: ZodError
12
12
  ): string {
13
- const errorDetails = zodError.errors
13
+ const errorDetails = zodError.issues
14
14
  .map((e) => {
15
15
  const path = e.path.length > 0 ? e.path.join('.') : 'root';
16
16
  return `- Path "${path}": ${e.message}`;