@stacksjs/chat 0.70.36 → 0.70.42

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.
@@ -0,0 +1,11 @@
1
+ import type { ChatDriver, ChatDriverConfig, ChatMessage, ChatResult, RenderOptions } from '@stacksjs/types';
2
+ export declare abstract class BaseChatDriver implements ChatDriver {
3
+ abstract name: string;
4
+ protected config: Required<ChatDriverConfig>;
5
+ constructor(config?: ChatDriverConfig);
6
+ configure(config: ChatDriverConfig): void;
7
+ abstract send(message: ChatMessage, options?: RenderOptions): Promise<ChatResult>;
8
+ protected validateMessage(message: ChatMessage): boolean;
9
+ protected handleError(error: unknown, message: ChatMessage): Promise<ChatResult>;
10
+ protected handleSuccess(message: ChatMessage, messageId?: string): Promise<ChatResult>;
11
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/chat",
3
3
  "type": "module",
4
- "version": "0.70.36",
4
+ "version": "0.70.42",
5
5
  "description": "Easily interact with chat APIs.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -48,10 +48,10 @@
48
48
  "prepublishOnly": "bun run build"
49
49
  },
50
50
  "devDependencies": {
51
- "@stacksjs/cli": "0.70.30",
52
- "@stacksjs/config": "0.70.30",
51
+ "@stacksjs/cli": "^0.70.42",
52
+ "@stacksjs/config": "^0.70.42",
53
53
  "better-dx": "^0.2.12",
54
- "@stacksjs/error-handling": "0.70.30",
55
- "@stacksjs/types": "0.70.30"
54
+ "@stacksjs/error-handling": "^0.70.42",
55
+ "@stacksjs/types": "^0.70.42"
56
56
  }
57
57
  }