@galvanized-pukeko/vue-ui 0.0.2 → 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/src/components/a2ui/catalog.d.ts +2 -0
- package/dist/src/composables/useA2UI.d.ts +77 -0
- package/dist/src/index.d.ts +0 -1
- package/dist/src/services/chatService.d.ts +42 -49
- package/dist/src/services/configService.d.ts +2 -3
- package/dist/vue-ui.css +1 -1
- package/dist/vue-ui.es.js +1119 -952
- package/dist/vue-ui.umd.js +1 -3
- package/package.json +3 -2
- package/dist/src/services/connectionService.d.ts +0 -43
- package/dist/src/types/jsonrpc.d.ts +0 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galvanized-pukeko/vue-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/vue-ui.umd.js",
|
|
6
6
|
"module": "dist/vue-ui.es.js",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"preview": "vite preview"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
+
"@ag-ui/client": "^0.0.52",
|
|
25
26
|
"chart.js": "^4.5.1",
|
|
26
27
|
"vue": "^3.5.12"
|
|
27
28
|
},
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
"vue": "^3.5.12"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
33
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
33
34
|
"typescript": "~5.6.2",
|
|
34
35
|
"unplugin-dts": "^1.0.0-beta.6",
|
|
35
36
|
"vite": "^7.0.0",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
type ConnectionStatus = 'connecting' | 'connected' | 'disconnected';
|
|
2
|
-
interface ComponentConfig {
|
|
3
|
-
type: string;
|
|
4
|
-
label: string;
|
|
5
|
-
options?: string[];
|
|
6
|
-
value?: string;
|
|
7
|
-
}
|
|
8
|
-
interface WebSocketMessage {
|
|
9
|
-
type: string;
|
|
10
|
-
components?: ComponentConfig[];
|
|
11
|
-
submitLabel?: string;
|
|
12
|
-
cancelLabel?: string;
|
|
13
|
-
[key: string]: unknown;
|
|
14
|
-
}
|
|
15
|
-
type MessageHandler = (message: WebSocketMessage) => void;
|
|
16
|
-
type StatusHandler = (status: ConnectionStatus) => void;
|
|
17
|
-
declare class ConnectionService {
|
|
18
|
-
private ws;
|
|
19
|
-
private messageHandlers;
|
|
20
|
-
private statusHandlers;
|
|
21
|
-
private currentStatus;
|
|
22
|
-
private reconnectTimeout;
|
|
23
|
-
private requestId;
|
|
24
|
-
private pendingRequests;
|
|
25
|
-
connect(): void;
|
|
26
|
-
disconnect(): void;
|
|
27
|
-
subscribeToMessage(messageType: string, handler: MessageHandler): () => void;
|
|
28
|
-
subscribeToStatus(handler: StatusHandler): () => void;
|
|
29
|
-
sendMessage(message: unknown): void;
|
|
30
|
-
sendJsonRpcRequest(method: string, params?: object | unknown[]): Promise<unknown>;
|
|
31
|
-
sendJsonRpcNotification(method: string, params?: object | unknown[]): void;
|
|
32
|
-
submitForm(data: Record<string, unknown>, timestamp?: number): Promise<unknown>;
|
|
33
|
-
cancelForm(timestamp?: number): Promise<unknown>;
|
|
34
|
-
getStatus(): ConnectionStatus;
|
|
35
|
-
private handleMessage;
|
|
36
|
-
private handleJsonRpcResponse;
|
|
37
|
-
private handleJsonRpcNotification;
|
|
38
|
-
private updateStatus;
|
|
39
|
-
private scheduleReconnect;
|
|
40
|
-
private cleanupPendingRequests;
|
|
41
|
-
}
|
|
42
|
-
export declare const connectionService: ConnectionService;
|
|
43
|
-
export type { ConnectionStatus, ComponentConfig, WebSocketMessage };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface JsonRpcRequest {
|
|
2
|
-
jsonrpc: '2.0';
|
|
3
|
-
method: string;
|
|
4
|
-
params?: unknown[] | object;
|
|
5
|
-
id?: string | number | null;
|
|
6
|
-
}
|
|
7
|
-
export interface JsonRpcResponse {
|
|
8
|
-
jsonrpc: '2.0';
|
|
9
|
-
result?: unknown;
|
|
10
|
-
error?: JsonRpcError;
|
|
11
|
-
id: string | number | null;
|
|
12
|
-
}
|
|
13
|
-
export interface JsonRpcError {
|
|
14
|
-
code: number;
|
|
15
|
-
message: string;
|
|
16
|
-
data?: unknown;
|
|
17
|
-
}
|
|
18
|
-
export interface JsonRpcNotification {
|
|
19
|
-
jsonrpc: '2.0';
|
|
20
|
-
method: string;
|
|
21
|
-
params?: unknown[] | object;
|
|
22
|
-
}
|