@contractspec/module.ai-chat 4.3.5 → 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.
Files changed (46) hide show
  1. package/README.md +62 -370
  2. package/dist/adapters/ai-sdk-bundle-adapter.d.ts +1 -1
  3. package/dist/adapters/index.d.ts +1 -1
  4. package/dist/browser/context/index.js +93 -93
  5. package/dist/browser/core/index.js +308 -307
  6. package/dist/browser/index.js +3803 -3801
  7. package/dist/browser/presentation/components/index.js +2617 -2618
  8. package/dist/browser/presentation/hooks/index.js +476 -476
  9. package/dist/browser/presentation/index.js +2474 -2475
  10. package/dist/browser/providers/index.js +7 -7
  11. package/dist/context/index.d.ts +1 -1
  12. package/dist/context/index.js +93 -93
  13. package/dist/core/agent-tools-adapter.d.ts +1 -1
  14. package/dist/core/chat-service.d.ts +4 -4
  15. package/dist/core/create-chat-route.d.ts +1 -1
  16. package/dist/core/create-completion-route.d.ts +15 -0
  17. package/dist/core/export-formatters.d.ts +1 -1
  18. package/dist/core/index.d.ts +6 -6
  19. package/dist/core/index.js +308 -307
  20. package/dist/core/local-storage-conversation-store.d.ts +1 -1
  21. package/dist/core/surface-planner-tools.d.ts +2 -2
  22. package/dist/core/workflow-tools.d.ts +1 -1
  23. package/dist/index.d.ts +8 -8
  24. package/dist/index.js +3803 -3801
  25. package/dist/node/context/index.js +93 -93
  26. package/dist/node/core/index.js +308 -307
  27. package/dist/node/index.js +3803 -3801
  28. package/dist/node/presentation/components/index.js +2617 -2618
  29. package/dist/node/presentation/hooks/index.js +476 -476
  30. package/dist/node/presentation/index.js +2474 -2475
  31. package/dist/node/providers/index.js +7 -7
  32. package/dist/presentation/components/ChainOfThought.d.ts +1 -1
  33. package/dist/presentation/components/ChatExportToolbar.d.ts +1 -1
  34. package/dist/presentation/components/ChatSidebar.d.ts +1 -1
  35. package/dist/presentation/components/ChatWithExport.d.ts +1 -1
  36. package/dist/presentation/components/index.d.ts +11 -11
  37. package/dist/presentation/components/index.js +2617 -2618
  38. package/dist/presentation/hooks/index.d.ts +4 -4
  39. package/dist/presentation/hooks/index.js +476 -476
  40. package/dist/presentation/hooks/useChat.d.ts +6 -6
  41. package/dist/presentation/hooks/useConversations.d.ts +1 -1
  42. package/dist/presentation/hooks/useProviders.d.ts +1 -1
  43. package/dist/presentation/index.js +2474 -2475
  44. package/dist/providers/index.d.ts +2 -2
  45. package/dist/providers/index.js +7 -7
  46. package/package.json +15 -15
@@ -1,13 +1,13 @@
1
- import type { ChatAttachment, ChatConversation, ChatMessage } from '../../core/message-types';
2
- import type { ConversationStore } from '../../core/conversation-store';
3
- import type { ThinkingLevel } from '../../core/thinking-levels';
1
+ import type { McpClientConfig } from '@contractspec/lib.ai-agent/tools/mcp-client.browser';
4
2
  import { type ModelSelector, type ProviderMode, type ProviderName } from '@contractspec/lib.ai-providers';
5
- import type { WorkflowComposer } from '@contractspec/lib.workflow-composer';
6
3
  import type { WorkflowSpec } from '@contractspec/lib.contracts-spec/workflow';
7
- import type { ContractsContextConfig } from '../../core/contracts-context';
8
4
  import type { ResolvedSurfacePlan } from '@contractspec/lib.surface-runtime/runtime/resolve-bundle';
9
5
  import type { SurfacePatchProposal } from '@contractspec/lib.surface-runtime/spec/types';
10
- import type { McpClientConfig } from '@contractspec/lib.ai-agent/tools/mcp-client.browser';
6
+ import type { WorkflowComposer } from '@contractspec/lib.workflow-composer';
7
+ import type { ContractsContextConfig } from '../../core/contracts-context';
8
+ import type { ConversationStore } from '../../core/conversation-store';
9
+ import type { ChatAttachment, ChatConversation, ChatMessage } from '../../core/message-types';
10
+ import type { ThinkingLevel } from '../../core/thinking-levels';
11
11
  /** Tool definition for planner integration (reserved for bundle spec 07_ai_native_chat). */
12
12
  export interface UseChatToolDef {
13
13
  name: string;
@@ -1,5 +1,5 @@
1
- import type { ChatConversation } from '../../core/message-types';
2
1
  import type { ConversationStore } from '../../core/conversation-store';
2
+ import type { ChatConversation } from '../../core/message-types';
3
3
  export interface UseConversationsOptions {
4
4
  store: ConversationStore;
5
5
  projectId?: string;
@@ -1,4 +1,4 @@
1
- import { type ProviderName, type ProviderMode, type ModelInfo } from '@contractspec/lib.ai-providers';
1
+ import { type ModelInfo, type ProviderMode, type ProviderName } from '@contractspec/lib.ai-providers';
2
2
  /**
3
3
  * Provider availability info
4
4
  */