@terreno/ai 0.26.0 → 0.27.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 +4 -4
- package/src/tests/bunSetup.ts +1 -0
- package/src/types/index.ts +2 -0
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.
|
|
21
|
+
"@terreno/test": "0.27.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.
|
|
28
|
+
"@terreno/api": "0.27.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.
|
|
75
|
+
"@terreno/api": "0.27.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.
|
|
94
|
+
"version": "0.27.0"
|
|
95
95
|
}
|
package/src/tests/bunSetup.ts
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -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;
|