gui-chat-protocol 0.0.1 → 0.0.3

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 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;
@@ -196,7 +204,6 @@ export declare interface ToolPluginCore<T = unknown, J = unknown, A extends obje
196
204
  execute: (context: ToolContext, args: A) => Promise<ToolResult<T, J>>;
197
205
  generatingMessage: string;
198
206
  waitingMessage?: string;
199
- uploadMessage?: string;
200
207
  isEnabled: (startResponse?: S | null) => boolean;
201
208
  delayAfterExecution?: number;
202
209
  systemPrompt?: string;
@@ -253,7 +260,7 @@ export declare interface UrlInputHandler {
253
260
  */
254
261
  export declare interface ViewComponentProps<T = unknown, J = unknown> {
255
262
  selectedResult: ToolResultComplete<T, J>;
256
- sendTextMessage: (text?: string) => void;
263
+ sendTextMessage: (text?: string, options?: SendTextMessageOptions) => void;
257
264
  onUpdateResult?: (result: Partial<ToolResult<T, J>>) => void;
258
265
  pluginConfigs?: Record<string, unknown>;
259
266
  }
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;
@@ -198,7 +206,6 @@ export declare interface ToolPluginCore<T = unknown, J = unknown, A extends obje
198
206
  execute: (context: ToolContext, args: A) => Promise<ToolResult<T, J>>;
199
207
  generatingMessage: string;
200
208
  waitingMessage?: string;
201
- uploadMessage?: string;
202
209
  isEnabled: (startResponse?: S | null) => boolean;
203
210
  delayAfterExecution?: number;
204
211
  systemPrompt?: string;
@@ -269,7 +276,7 @@ export declare interface UrlInputHandler {
269
276
  */
270
277
  export declare interface ViewComponentProps<T = unknown, J = unknown> {
271
278
  selectedResult: ToolResultComplete<T, J>;
272
- sendTextMessage: (text?: string) => void;
279
+ sendTextMessage: (text?: string, options?: SendTextMessageOptions) => void;
273
280
  onUpdateResult?: (result: Partial<ToolResult<T, J>>) => void;
274
281
  pluginConfigs?: Record<string, unknown>;
275
282
  }
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;
@@ -227,7 +235,6 @@ export declare interface ToolPluginCore<T = unknown, J = unknown, A extends obje
227
235
  execute: (context: ToolContext, args: A) => Promise<ToolResult<T, J>>;
228
236
  generatingMessage: string;
229
237
  waitingMessage?: string;
230
- uploadMessage?: string;
231
238
  isEnabled: (startResponse?: S | null) => boolean;
232
239
  delayAfterExecution?: number;
233
240
  systemPrompt?: string;
@@ -289,7 +296,7 @@ export declare interface UrlInputHandler {
289
296
  */
290
297
  export declare interface ViewComponentProps<T = unknown, J = unknown> {
291
298
  selectedResult: ToolResultComplete<T, J>;
292
- sendTextMessage: (text?: string) => void;
299
+ sendTextMessage: (text?: string, options?: SendTextMessageOptions) => void;
293
300
  onUpdateResult?: (result: Partial<ToolResult<T, J>>) => void;
294
301
  pluginConfigs?: Record<string, unknown>;
295
302
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gui-chat-protocol",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
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.26"
51
+ "vue": "^3.5.27"
52
52
  },
53
53
  "keywords": [
54
54
  "gui-chat",