@contractspec/module.ai-chat 2.9.1 → 3.1.1
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/dist/core/chat-service.d.ts +6 -0
- package/package.json +14 -14
|
@@ -21,6 +21,12 @@ export interface ChatServiceConfig {
|
|
|
21
21
|
inputTokens: number;
|
|
22
22
|
outputTokens: number;
|
|
23
23
|
}) => void;
|
|
24
|
+
/** Transport protocol for provider communication (e.g. "rest", "mcp"). */
|
|
25
|
+
transport?: string;
|
|
26
|
+
/** Auth method the provider expects (e.g. "api-key", "oauth2"). */
|
|
27
|
+
authMethod?: string;
|
|
28
|
+
/** Extra headers forwarded to the provider for authentication. */
|
|
29
|
+
authHeaders?: Record<string, string>;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Main chat service for AI-powered conversations
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/module.ai-chat",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "AI chat interface module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -31,25 +31,25 @@
|
|
|
31
31
|
"typecheck": "tsc --noEmit"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@contractspec/lib.ai-agent": "
|
|
35
|
-
"@contractspec/lib.ai-providers": "
|
|
36
|
-
"@contractspec/lib.contracts-spec": "
|
|
37
|
-
"@contractspec/lib.schema": "
|
|
38
|
-
"@contractspec/lib.metering": "
|
|
39
|
-
"@contractspec/lib.cost-tracking": "
|
|
40
|
-
"@contractspec/lib.design-system": "
|
|
41
|
-
"@contractspec/lib.ui-kit-web": "
|
|
42
|
-
"@ai-sdk/react": "3.0.
|
|
43
|
-
"ai": "6.0.
|
|
44
|
-
"lucide-react": "^0.
|
|
34
|
+
"@contractspec/lib.ai-agent": "3.1.1",
|
|
35
|
+
"@contractspec/lib.ai-providers": "3.1.1",
|
|
36
|
+
"@contractspec/lib.contracts-spec": "3.1.1",
|
|
37
|
+
"@contractspec/lib.schema": "3.1.0",
|
|
38
|
+
"@contractspec/lib.metering": "3.1.1",
|
|
39
|
+
"@contractspec/lib.cost-tracking": "3.1.0",
|
|
40
|
+
"@contractspec/lib.design-system": "3.1.1",
|
|
41
|
+
"@contractspec/lib.ui-kit-web": "3.1.0",
|
|
42
|
+
"@ai-sdk/react": "3.0.118",
|
|
43
|
+
"ai": "6.0.116",
|
|
44
|
+
"lucide-react": "^0.577.0",
|
|
45
45
|
"react": "19.2.4",
|
|
46
46
|
"zod": "^4.3.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@contractspec/tool.typescript": "
|
|
49
|
+
"@contractspec/tool.typescript": "3.1.0",
|
|
50
50
|
"@types/react": "^19.2.14",
|
|
51
51
|
"typescript": "^5.9.3",
|
|
52
|
-
"@contractspec/tool.bun": "
|
|
52
|
+
"@contractspec/tool.bun": "3.1.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"react": ">=19.2.4"
|