@contractspec/module.ai-chat 4.3.7 → 4.3.12

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.
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Converts AgentToolConfig from ai-agent to AI SDK ToolSet.
2
+ * Converts contract-defined AgentToolConfig values to AI SDK ToolSet.
3
3
  * Handlers are optional; when missing, execute returns unimplemented stub.
4
4
  */
5
- import type { AgentToolConfig } from '@contractspec/lib.ai-agent';
5
+ import type { AgentToolConfig } from '@contractspec/lib.contracts-spec/agent';
6
6
  import { type ToolSet } from 'ai';
7
7
  export type ToolHandler = (input: Record<string, unknown>) => Promise<unknown> | unknown;
8
8
  /**
@@ -2,7 +2,7 @@
2
2
  * Contracts-spec context for ai-chat.
3
3
  * Exposes agent, data-views, operations, forms, and presentations to the model.
4
4
  */
5
- import type { AgentToolConfig } from '@contractspec/lib.ai-agent';
5
+ import type { AgentToolConfig } from '@contractspec/lib.contracts-spec/agent';
6
6
  export interface ContractsContextConfig {
7
7
  /** Agent specs (for tool schemas, instructions) */
8
8
  agentSpecs?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/module.ai-chat",
3
- "version": "4.3.7",
3
+ "version": "4.3.12",
4
4
  "description": "AI chat interface module",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -31,16 +31,16 @@
31
31
  "typecheck": "tsc --noEmit"
32
32
  },
33
33
  "dependencies": {
34
- "@contractspec/lib.ai-agent": "7.0.7",
35
- "@contractspec/lib.surface-runtime": "0.5.7",
36
- "@contractspec/lib.ai-providers": "3.7.6",
37
- "@contractspec/lib.contracts-spec": "4.0.0",
38
- "@contractspec/lib.workflow-composer": "3.7.7",
39
- "@contractspec/lib.schema": "3.7.6",
40
- "@contractspec/lib.metering": "3.7.7",
41
- "@contractspec/lib.cost-tracking": "3.7.6",
42
- "@contractspec/lib.design-system": "3.8.0",
43
- "@contractspec/lib.ui-kit-web": "3.8.0",
34
+ "@contractspec/lib.ai-agent": "8.0.0",
35
+ "@contractspec/lib.surface-runtime": "0.5.12",
36
+ "@contractspec/lib.ai-providers": "3.7.9",
37
+ "@contractspec/lib.contracts-spec": "5.0.0",
38
+ "@contractspec/lib.workflow-composer": "3.7.12",
39
+ "@contractspec/lib.schema": "3.7.10",
40
+ "@contractspec/lib.metering": "3.7.12",
41
+ "@contractspec/lib.cost-tracking": "3.7.9",
42
+ "@contractspec/lib.design-system": "3.8.5",
43
+ "@contractspec/lib.ui-kit-web": "3.9.4",
44
44
  "@ai-sdk/react": "3.0.118",
45
45
  "ai": "6.0.116",
46
46
  "lucide-react": "^0.577.0",
@@ -48,10 +48,10 @@
48
48
  "zod": "^4.3.5"
49
49
  },
50
50
  "devDependencies": {
51
- "@contractspec/tool.typescript": "3.7.6",
51
+ "@contractspec/tool.typescript": "3.7.9",
52
52
  "@types/react": "^19.2.14",
53
53
  "typescript": "^5.9.3",
54
- "@contractspec/tool.bun": "3.7.6"
54
+ "@contractspec/tool.bun": "3.7.9"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "react": ">=19.2.0"