@terreno/ai 0.26.0 → 0.28.0

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
@@ -18,14 +18,14 @@
18
18
  "description": "AI service layer for Terreno apps - GPT chat, request logging, and admin tools.",
19
19
  "devDependencies": {
20
20
  "@biomejs/biome": "^2.3.6",
21
- "@terreno/test": "0.26.0",
21
+ "@terreno/test": "0.28.0",
22
22
  "@types/bun": "^1.3.8",
23
23
  "@types/express": "^5.0.6",
24
24
  "@types/luxon": "^3.7.1",
25
25
  "@types/multer": "^1.4.12",
26
26
  "@types/passport-local-mongoose": "^6.1.5",
27
27
  "@types/supertest": "^7.2.0",
28
- "@terreno/api": "0.26.0",
28
+ "@terreno/api": "0.28.0",
29
29
  "mongoose": "8.23.0",
30
30
  "passport-local-mongoose": "^9.0.1",
31
31
  "supertest": "^7.2.2",
@@ -72,7 +72,7 @@
72
72
  "access": "public"
73
73
  },
74
74
  "peerDependencies": {
75
- "@terreno/api": "0.26.0",
75
+ "@terreno/api": "0.28.0",
76
76
  "mongoose": "^8.0.0"
77
77
  },
78
78
  "repository": {
@@ -91,5 +91,5 @@
91
91
  "test:coverage": "bun run ../scripts/check-coverage.ts"
92
92
  },
93
93
  "types": "dist/index.d.ts",
94
- "version": "0.26.0"
94
+ "version": "0.28.0"
95
95
  }
@@ -47,7 +47,7 @@ describe("requireAdmin", () => {
47
47
  status?: number;
48
48
  title?: string;
49
49
  };
50
- expect(apiError.name).toBe("APIError");
50
+ expect(apiError.name).toBe("ForbiddenError");
51
51
  expect(apiError.status).toBe(403);
52
52
  expect(apiError.title).toBe("Forbidden");
53
53
  expect(apiError.disableExternalErrorTracking).toBe(true);
@@ -1,3 +1,4 @@
1
+ // noExplicitAny: test mock typing
1
2
  // biome-ignore-all lint/suspicious/noExplicitAny: test mock typing
2
3
  import {registerSimpleMongoPreload} from "@terreno/test";
3
4
 
@@ -164,6 +164,7 @@ export interface AIServiceOptions {
164
164
  export interface GenerateTextOptions {
165
165
  maxOutputTokens?: number;
166
166
  prompt: string;
167
+ // noExplicitAny: Vercel AI SDK's StopCondition is generic over the tool set; consumers may pass any tool shape.
167
168
  // biome-ignore lint/suspicious/noExplicitAny: Vercel AI SDK's StopCondition is generic over the tool set; consumers may pass any tool shape.
168
169
  stopWhen?: import("ai").StopCondition<any>;
169
170
  systemPrompt?: string;
@@ -183,6 +184,7 @@ export interface GenerateStreamOptions {
183
184
 
184
185
  export interface GenerateChatStreamOptions {
185
186
  messages: Array<{content: string; role: "user" | "assistant" | "system"}>;
187
+ // noExplicitAny: Vercel AI SDK's StopCondition is generic over the tool set; consumers may pass any tool shape.
186
188
  // biome-ignore lint/suspicious/noExplicitAny: Vercel AI SDK's StopCondition is generic over the tool set; consumers may pass any tool shape.
187
189
  stopWhen?: import("ai").StopCondition<any>;
188
190
  systemPrompt?: string;