@useago/sdk 1.0.4 → 1.0.6
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/README.md +3 -3
- package/dist/{AgoClient-1jgDndKs.cjs → AgoClient--y10UXUV.cjs} +1 -1
- package/dist/{AgoClient-j1sk1hK5.js → AgoClient-DYdIe_R4.js} +9 -6
- package/dist/angular.cjs +1 -1
- package/dist/angular.d.cts +49 -2
- package/dist/angular.d.ts +49 -2
- package/dist/angular.js +1 -1
- package/dist/{createConversationSession-CZhoTCtD.js → createConversationSession-Boi0PjDU.js} +1 -1
- package/dist/{createConversationSession-BYNhYbkY.cjs → createConversationSession-lJWANT6T.cjs} +1 -1
- package/dist/{createFormCollector-BPKzKDeX.js → createFormCollector-BUqSA2Qw.js} +1 -1
- package/dist/{createFormCollector-B8V9YSGe.cjs → createFormCollector-CSG5ioym.cjs} +1 -1
- package/dist/devtools.cjs +41 -27
- package/dist/devtools.d.cts +48 -0
- package/dist/devtools.d.ts +48 -0
- package/dist/devtools.js +98 -70
- package/dist/{functions-C1-5vadY.js → functions-CApuQZ2b.js} +50 -43
- package/dist/{functions-DsmzgHjC.cjs → functions-Djnq-JAo.cjs} +1 -1
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +35 -35
- package/dist/react.cjs +3 -31
- package/dist/react.d.cts +49 -2
- package/dist/react.d.ts +49 -2
- package/dist/react.js +599 -8156
- package/dist/rolldown-runtime-16Nf8qvH.cjs +1 -0
- package/dist/testing.d.cts +48 -0
- package/dist/testing.d.ts +48 -0
- package/dist/vue.cjs +1 -1
- package/dist/vue.d.cts +49 -2
- package/dist/vue.d.ts +49 -2
- package/dist/vue.js +1 -1
- package/dist/widget.cjs +1 -1
- package/dist/widget.d.cts +48 -0
- package/dist/widget.d.ts +48 -0
- package/dist/widget.js +3 -3
- package/package.json +6 -6
- package/dist/rolldown-runtime-CaekUdDJ.cjs +0 -1
- package/dist/rolldown-runtime-DxmricAu.js +0 -25
package/dist/react.d.cts
CHANGED
|
@@ -245,6 +245,13 @@ declare interface AgoClientEvents {
|
|
|
245
245
|
conversationId: string;
|
|
246
246
|
messageId: string;
|
|
247
247
|
};
|
|
248
|
+
/**
|
|
249
|
+
* Every raw SSE message parsed off the stream, before the handler interprets it
|
|
250
|
+
* into the higher-level `message:*` / `toolCall:*` / `function:*` events. Carries
|
|
251
|
+
* the chunk verbatim so debugging tools (notably the dev panel) can log the exact
|
|
252
|
+
* wire payload. Heartbeat comments are not messages and don't fire this.
|
|
253
|
+
*/
|
|
254
|
+
"stream:message": SSEChunkData;
|
|
248
255
|
/**
|
|
249
256
|
* The main answer text is done (backend emitted `status: "DONE"`), but follow-up
|
|
250
257
|
* replies may still be pending. Fires once, before `message:complete`.
|
|
@@ -850,6 +857,47 @@ declare interface SendMessageOptions {
|
|
|
850
857
|
files?: File[];
|
|
851
858
|
}
|
|
852
859
|
|
|
860
|
+
/**
|
|
861
|
+
* SSE stream chunk data
|
|
862
|
+
*/
|
|
863
|
+
declare interface SSEChunkData {
|
|
864
|
+
content?: string;
|
|
865
|
+
full_content?: string;
|
|
866
|
+
message_id?: string;
|
|
867
|
+
status?: MessageStatus;
|
|
868
|
+
thread?: {
|
|
869
|
+
id: string;
|
|
870
|
+
};
|
|
871
|
+
agent?: {
|
|
872
|
+
id: string;
|
|
873
|
+
name: string;
|
|
874
|
+
display_name?: string;
|
|
875
|
+
};
|
|
876
|
+
knowledge_sources?: Array<{
|
|
877
|
+
knowledge_document: {
|
|
878
|
+
id: string;
|
|
879
|
+
title: string;
|
|
880
|
+
use_external_link: boolean;
|
|
881
|
+
external_link_url?: string;
|
|
882
|
+
internal_link_url?: string;
|
|
883
|
+
};
|
|
884
|
+
position: number;
|
|
885
|
+
}>;
|
|
886
|
+
tool_call_data?: boolean;
|
|
887
|
+
type?: string;
|
|
888
|
+
id?: string;
|
|
889
|
+
tool_name?: string;
|
|
890
|
+
tool_display_name?: string;
|
|
891
|
+
function_name?: string;
|
|
892
|
+
arguments?: Record<string, unknown>;
|
|
893
|
+
form_schema?: FormSchema;
|
|
894
|
+
message?: string;
|
|
895
|
+
data?: Record<string, unknown>;
|
|
896
|
+
follow_up_replies?: string[];
|
|
897
|
+
satisfaction_feedback?: unknown;
|
|
898
|
+
ask_to_talk_to_human?: boolean;
|
|
899
|
+
}
|
|
900
|
+
|
|
853
901
|
/**
|
|
854
902
|
* A minimal observable store: one value, synchronous subscriptions, and
|
|
855
903
|
* optional persistence via {@link PersistOptions} (localStorage by default).
|
|
@@ -1028,8 +1076,7 @@ export declare interface UseAgoFunctionOptions {
|
|
|
1028
1076
|
*/
|
|
1029
1077
|
export declare function useAgoNavigation(navigate: (path: string) => void, routes: AgoRoute[]): void;
|
|
1030
1078
|
|
|
1031
|
-
export declare
|
|
1032
|
-
}
|
|
1079
|
+
export declare type UseAgoOptions = AgoConfig;
|
|
1033
1080
|
|
|
1034
1081
|
export declare interface UseAgoResult {
|
|
1035
1082
|
/** The AGO client instance */
|
package/dist/react.d.ts
CHANGED
|
@@ -245,6 +245,13 @@ declare interface AgoClientEvents {
|
|
|
245
245
|
conversationId: string;
|
|
246
246
|
messageId: string;
|
|
247
247
|
};
|
|
248
|
+
/**
|
|
249
|
+
* Every raw SSE message parsed off the stream, before the handler interprets it
|
|
250
|
+
* into the higher-level `message:*` / `toolCall:*` / `function:*` events. Carries
|
|
251
|
+
* the chunk verbatim so debugging tools (notably the dev panel) can log the exact
|
|
252
|
+
* wire payload. Heartbeat comments are not messages and don't fire this.
|
|
253
|
+
*/
|
|
254
|
+
"stream:message": SSEChunkData;
|
|
248
255
|
/**
|
|
249
256
|
* The main answer text is done (backend emitted `status: "DONE"`), but follow-up
|
|
250
257
|
* replies may still be pending. Fires once, before `message:complete`.
|
|
@@ -850,6 +857,47 @@ declare interface SendMessageOptions {
|
|
|
850
857
|
files?: File[];
|
|
851
858
|
}
|
|
852
859
|
|
|
860
|
+
/**
|
|
861
|
+
* SSE stream chunk data
|
|
862
|
+
*/
|
|
863
|
+
declare interface SSEChunkData {
|
|
864
|
+
content?: string;
|
|
865
|
+
full_content?: string;
|
|
866
|
+
message_id?: string;
|
|
867
|
+
status?: MessageStatus;
|
|
868
|
+
thread?: {
|
|
869
|
+
id: string;
|
|
870
|
+
};
|
|
871
|
+
agent?: {
|
|
872
|
+
id: string;
|
|
873
|
+
name: string;
|
|
874
|
+
display_name?: string;
|
|
875
|
+
};
|
|
876
|
+
knowledge_sources?: Array<{
|
|
877
|
+
knowledge_document: {
|
|
878
|
+
id: string;
|
|
879
|
+
title: string;
|
|
880
|
+
use_external_link: boolean;
|
|
881
|
+
external_link_url?: string;
|
|
882
|
+
internal_link_url?: string;
|
|
883
|
+
};
|
|
884
|
+
position: number;
|
|
885
|
+
}>;
|
|
886
|
+
tool_call_data?: boolean;
|
|
887
|
+
type?: string;
|
|
888
|
+
id?: string;
|
|
889
|
+
tool_name?: string;
|
|
890
|
+
tool_display_name?: string;
|
|
891
|
+
function_name?: string;
|
|
892
|
+
arguments?: Record<string, unknown>;
|
|
893
|
+
form_schema?: FormSchema;
|
|
894
|
+
message?: string;
|
|
895
|
+
data?: Record<string, unknown>;
|
|
896
|
+
follow_up_replies?: string[];
|
|
897
|
+
satisfaction_feedback?: unknown;
|
|
898
|
+
ask_to_talk_to_human?: boolean;
|
|
899
|
+
}
|
|
900
|
+
|
|
853
901
|
/**
|
|
854
902
|
* A minimal observable store: one value, synchronous subscriptions, and
|
|
855
903
|
* optional persistence via {@link PersistOptions} (localStorage by default).
|
|
@@ -1028,8 +1076,7 @@ export declare interface UseAgoFunctionOptions {
|
|
|
1028
1076
|
*/
|
|
1029
1077
|
export declare function useAgoNavigation(navigate: (path: string) => void, routes: AgoRoute[]): void;
|
|
1030
1078
|
|
|
1031
|
-
export declare
|
|
1032
|
-
}
|
|
1079
|
+
export declare type UseAgoOptions = AgoConfig;
|
|
1033
1080
|
|
|
1034
1081
|
export declare interface UseAgoResult {
|
|
1035
1082
|
/** The AGO client instance */
|