@contractspec/module.ai-chat 4.3.6 → 4.3.7
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/README.md +62 -370
- package/dist/adapters/ai-sdk-bundle-adapter.d.ts +1 -1
- package/dist/adapters/index.d.ts +1 -1
- package/dist/browser/context/index.js +93 -93
- package/dist/browser/core/index.js +308 -307
- package/dist/browser/index.js +3803 -3801
- package/dist/browser/presentation/components/index.js +2617 -2618
- package/dist/browser/presentation/hooks/index.js +476 -476
- package/dist/browser/presentation/index.js +2474 -2475
- package/dist/browser/providers/index.js +7 -7
- package/dist/context/index.d.ts +1 -1
- package/dist/context/index.js +93 -93
- package/dist/core/agent-tools-adapter.d.ts +1 -1
- package/dist/core/chat-service.d.ts +4 -4
- package/dist/core/create-chat-route.d.ts +1 -1
- package/dist/core/create-completion-route.d.ts +15 -0
- package/dist/core/export-formatters.d.ts +1 -1
- package/dist/core/index.d.ts +6 -6
- package/dist/core/index.js +308 -307
- package/dist/core/local-storage-conversation-store.d.ts +1 -1
- package/dist/core/surface-planner-tools.d.ts +2 -2
- package/dist/core/workflow-tools.d.ts +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +3803 -3801
- package/dist/node/context/index.js +93 -93
- package/dist/node/core/index.js +308 -307
- package/dist/node/index.js +3803 -3801
- package/dist/node/presentation/components/index.js +2617 -2618
- package/dist/node/presentation/hooks/index.js +476 -476
- package/dist/node/presentation/index.js +2474 -2475
- package/dist/node/providers/index.js +7 -7
- package/dist/presentation/components/ChainOfThought.d.ts +1 -1
- package/dist/presentation/components/ChatExportToolbar.d.ts +1 -1
- package/dist/presentation/components/ChatSidebar.d.ts +1 -1
- package/dist/presentation/components/ChatWithExport.d.ts +1 -1
- package/dist/presentation/components/index.d.ts +11 -11
- package/dist/presentation/components/index.js +2617 -2618
- package/dist/presentation/hooks/index.d.ts +4 -4
- package/dist/presentation/hooks/index.js +476 -476
- package/dist/presentation/hooks/useChat.d.ts +6 -6
- package/dist/presentation/hooks/useConversations.d.ts +1 -1
- package/dist/presentation/hooks/useProviders.d.ts +1 -1
- package/dist/presentation/index.js +2474 -2475
- package/dist/providers/index.d.ts +2 -2
- package/dist/providers/index.js +7 -7
- package/package.json +10 -10
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Re-exports from @contractspec/lib.ai-providers with chat-specific utilities.
|
|
5
5
|
*/
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
6
|
+
export { createProvider, createProviderFromEnv, DEFAULT_MODELS, getAvailableProviders, getDefaultModel, getEnvVarName, getModelInfo, getModelsForProvider, getRecommendedModels, hasCredentials, isOllamaRunning, listOllamaModels, MODELS, type ModelCapabilities, type ModelInfo as ChatModelInfo, type Provider as ChatProvider, type ProviderAvailability, type ProviderConfig as ChatProviderConfig, type ProviderMode as ChatProviderMode, type ProviderName as ChatProviderName, validateProvider, } from '@contractspec/lib.ai-providers';
|
|
7
|
+
export { isStudioAvailable, supportsLocalMode } from './chat-utilities';
|
package/dist/providers/index.js
CHANGED
|
@@ -5,18 +5,18 @@ var __require = import.meta.require;
|
|
|
5
5
|
import {
|
|
6
6
|
createProvider,
|
|
7
7
|
createProviderFromEnv,
|
|
8
|
-
getAvailableProviders,
|
|
9
8
|
DEFAULT_MODELS,
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
getAvailableProviders,
|
|
10
|
+
getDefaultModel,
|
|
11
|
+
getEnvVarName,
|
|
12
12
|
getModelInfo,
|
|
13
|
+
getModelsForProvider,
|
|
13
14
|
getRecommendedModels,
|
|
14
|
-
getDefaultModel,
|
|
15
|
-
validateProvider,
|
|
16
15
|
hasCredentials,
|
|
17
|
-
getEnvVarName,
|
|
18
16
|
isOllamaRunning,
|
|
19
|
-
listOllamaModels
|
|
17
|
+
listOllamaModels,
|
|
18
|
+
MODELS,
|
|
19
|
+
validateProvider
|
|
20
20
|
} from "@contractspec/lib.ai-providers";
|
|
21
21
|
|
|
22
22
|
// src/providers/chat-utilities.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/module.ai-chat",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.7",
|
|
4
4
|
"description": "AI chat interface module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -24,23 +24,23 @@
|
|
|
24
24
|
"dev": "contractspec-bun-build dev",
|
|
25
25
|
"clean": "rimraf dist .turbo",
|
|
26
26
|
"lint": "bun lint:fix",
|
|
27
|
-
"lint:fix": "
|
|
28
|
-
"lint:check": "
|
|
27
|
+
"lint:fix": "biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .",
|
|
28
|
+
"lint:check": "biome check .",
|
|
29
29
|
"test": "bun test",
|
|
30
30
|
"prebuild": "contractspec-bun-build prebuild",
|
|
31
31
|
"typecheck": "tsc --noEmit"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@contractspec/lib.ai-agent": "7.0.
|
|
35
|
-
"@contractspec/lib.surface-runtime": "0.5.
|
|
34
|
+
"@contractspec/lib.ai-agent": "7.0.7",
|
|
35
|
+
"@contractspec/lib.surface-runtime": "0.5.7",
|
|
36
36
|
"@contractspec/lib.ai-providers": "3.7.6",
|
|
37
|
-
"@contractspec/lib.contracts-spec": "
|
|
38
|
-
"@contractspec/lib.workflow-composer": "3.7.
|
|
37
|
+
"@contractspec/lib.contracts-spec": "4.0.0",
|
|
38
|
+
"@contractspec/lib.workflow-composer": "3.7.7",
|
|
39
39
|
"@contractspec/lib.schema": "3.7.6",
|
|
40
|
-
"@contractspec/lib.metering": "3.7.
|
|
40
|
+
"@contractspec/lib.metering": "3.7.7",
|
|
41
41
|
"@contractspec/lib.cost-tracking": "3.7.6",
|
|
42
|
-
"@contractspec/lib.design-system": "3.
|
|
43
|
-
"@contractspec/lib.ui-kit-web": "3.
|
|
42
|
+
"@contractspec/lib.design-system": "3.8.0",
|
|
43
|
+
"@contractspec/lib.ui-kit-web": "3.8.0",
|
|
44
44
|
"@ai-sdk/react": "3.0.118",
|
|
45
45
|
"ai": "6.0.116",
|
|
46
46
|
"lucide-react": "^0.577.0",
|