gui-chat-protocol 0.0.1 → 0.0.2
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/index.d.ts +9 -1
- package/dist/react.d.ts +9 -1
- package/dist/vue.d.ts +9 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -132,6 +132,14 @@ export declare interface SelectOption {
|
|
|
132
132
|
disabled?: boolean;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
/**
|
|
136
|
+
* Options for sendTextMessage
|
|
137
|
+
*/
|
|
138
|
+
export declare interface SendTextMessageOptions {
|
|
139
|
+
/** Optional data to pass along with the message (for testing/debugging) */
|
|
140
|
+
data?: unknown;
|
|
141
|
+
}
|
|
142
|
+
|
|
135
143
|
export declare interface StringFieldSchema extends BaseFieldSchema {
|
|
136
144
|
type: "string";
|
|
137
145
|
placeholder?: string;
|
|
@@ -253,7 +261,7 @@ export declare interface UrlInputHandler {
|
|
|
253
261
|
*/
|
|
254
262
|
export declare interface ViewComponentProps<T = unknown, J = unknown> {
|
|
255
263
|
selectedResult: ToolResultComplete<T, J>;
|
|
256
|
-
sendTextMessage: (text?: string) => void;
|
|
264
|
+
sendTextMessage: (text?: string, options?: SendTextMessageOptions) => void;
|
|
257
265
|
onUpdateResult?: (result: Partial<ToolResult<T, J>>) => void;
|
|
258
266
|
pluginConfigs?: Record<string, unknown>;
|
|
259
267
|
}
|
package/dist/react.d.ts
CHANGED
|
@@ -134,6 +134,14 @@ export declare interface SelectOption {
|
|
|
134
134
|
disabled?: boolean;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Options for sendTextMessage
|
|
139
|
+
*/
|
|
140
|
+
export declare interface SendTextMessageOptions {
|
|
141
|
+
/** Optional data to pass along with the message (for testing/debugging) */
|
|
142
|
+
data?: unknown;
|
|
143
|
+
}
|
|
144
|
+
|
|
137
145
|
export declare interface StringFieldSchema extends BaseFieldSchema {
|
|
138
146
|
type: "string";
|
|
139
147
|
placeholder?: string;
|
|
@@ -269,7 +277,7 @@ export declare interface UrlInputHandler {
|
|
|
269
277
|
*/
|
|
270
278
|
export declare interface ViewComponentProps<T = unknown, J = unknown> {
|
|
271
279
|
selectedResult: ToolResultComplete<T, J>;
|
|
272
|
-
sendTextMessage: (text?: string) => void;
|
|
280
|
+
sendTextMessage: (text?: string, options?: SendTextMessageOptions) => void;
|
|
273
281
|
onUpdateResult?: (result: Partial<ToolResult<T, J>>) => void;
|
|
274
282
|
pluginConfigs?: Record<string, unknown>;
|
|
275
283
|
}
|
package/dist/vue.d.ts
CHANGED
|
@@ -134,6 +134,14 @@ export declare interface SelectOption {
|
|
|
134
134
|
disabled?: boolean;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Options for sendTextMessage
|
|
139
|
+
*/
|
|
140
|
+
export declare interface SendTextMessageOptions {
|
|
141
|
+
/** Optional data to pass along with the message (for testing/debugging) */
|
|
142
|
+
data?: unknown;
|
|
143
|
+
}
|
|
144
|
+
|
|
137
145
|
export declare interface StringFieldSchema extends BaseFieldSchema {
|
|
138
146
|
type: "string";
|
|
139
147
|
placeholder?: string;
|
|
@@ -289,7 +297,7 @@ export declare interface UrlInputHandler {
|
|
|
289
297
|
*/
|
|
290
298
|
export declare interface ViewComponentProps<T = unknown, J = unknown> {
|
|
291
299
|
selectedResult: ToolResultComplete<T, J>;
|
|
292
|
-
sendTextMessage: (text?: string) => void;
|
|
300
|
+
sendTextMessage: (text?: string, options?: SendTextMessageOptions) => void;
|
|
293
301
|
onUpdateResult?: (result: Partial<ToolResult<T, J>>) => void;
|
|
294
302
|
pluginConfigs?: Record<string, unknown>;
|
|
295
303
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gui-chat-protocol",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Protocol types for GUI chat plugins - framework-agnostic core with Vue and React adapters",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
49
|
"vite": "^7.3.1",
|
|
50
50
|
"vite-plugin-dts": "^4.5.4",
|
|
51
|
-
"vue": "^3.5.
|
|
51
|
+
"vue": "^3.5.27"
|
|
52
52
|
},
|
|
53
53
|
"keywords": [
|
|
54
54
|
"gui-chat",
|