@firstlovecenter/ai-chat 0.2.3 → 0.6.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/CHANGELOG.md +57 -0
- package/dist/drizzle/index.cjs +24 -0
- package/dist/drizzle/index.cjs.map +1 -1
- package/dist/drizzle/index.d.cts +36 -1
- package/dist/drizzle/index.d.ts +36 -1
- package/dist/drizzle/index.js +25 -1
- package/dist/drizzle/index.js.map +1 -1
- package/dist/prisma/index.cjs +7 -0
- package/dist/prisma/index.cjs.map +1 -1
- package/dist/prisma/index.d.cts +8 -1
- package/dist/prisma/index.d.ts +8 -1
- package/dist/prisma/index.js +7 -0
- package/dist/prisma/index.js.map +1 -1
- package/dist/server/index.cjs +353 -15
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +50 -4
- package/dist/server/index.d.ts +50 -4
- package/dist/server/index.js +353 -15
- package/dist/server/index.js.map +1 -1
- package/dist/{types-DNwFvL-C.d.cts → types-CQntnyDJ.d.cts} +24 -2
- package/dist/{types-DNwFvL-C.d.ts → types-CQntnyDJ.d.ts} +24 -2
- package/dist/ui/index.cjs +1024 -87
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +24 -12
- package/dist/ui/index.d.ts +24 -12
- package/dist/ui/index.js +1022 -88
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
- package/prisma/chat-models.prisma +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firstlovecenter/ai-chat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Reusable AI chat module: agent loop, Vertex providers (Claude + Gemini), narrators, persistence schema, and chat UI components. Host injects auth, scope, tools, and credentials via configureAiChat().",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "First Love Church",
|
|
@@ -54,6 +54,13 @@ model AiSettings {
|
|
|
54
54
|
toolProvider String @default("claude") @map("tool_provider") @db.VarChar(32)
|
|
55
55
|
gcpLocation String @default("us-east5") @map("gcp_location") @db.VarChar(32)
|
|
56
56
|
chatInterface String @default("custom") @map("chat_interface") @db.VarChar(32)
|
|
57
|
+
// Caps the per-turn output budget for both the agent loop and the prose
|
|
58
|
+
// narrator. Bump well past 4096 for reasoning models — internal thinking
|
|
59
|
+
// tokens are charged against this.
|
|
60
|
+
maxOutputTokens Int @default(4096) @map("max_output_tokens") @db.Int
|
|
61
|
+
// Optional admin-editable persona; null falls back to the host's static
|
|
62
|
+
// configureAiChat({ rolePrompt }) option.
|
|
63
|
+
rolePrompt String? @map("role_prompt") @db.Text
|
|
57
64
|
updatedAt DateTime @default(now()) @map("updated_at") @db.DateTime(0)
|
|
58
65
|
updatedByUserId BigInt? @map("updated_by_user_id") @db.UnsignedBigInt
|
|
59
66
|
|