@useago/sdk 0.4.6 → 1.0.0
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/CHANGELOG.md +98 -0
- package/LICENSE +201 -0
- package/NOTICE +10 -0
- package/README.md +19 -11
- package/dist/{AgoClient-rvTz2thR.js → AgoClient-BrYhSO5M.js} +32 -26
- package/dist/AgoClient-CPqPT5s6.cjs +6 -0
- package/dist/angular.cjs +1 -1
- package/dist/angular.d.cts +5 -0
- package/dist/angular.d.ts +5 -0
- package/dist/angular.js +1 -1
- package/dist/{createConversationSession-DGcM_Z3f.cjs → createConversationSession-CGRO0bs2.cjs} +1 -1
- package/dist/{createConversationSession-D-eq8VIo.js → createConversationSession-Dmqd80DX.js} +1 -1
- package/dist/{createFormCollector-DON4vdJV.js → createFormCollector-CPS2phYq.js} +51 -50
- package/dist/createFormCollector-DaWZsBsI.cjs +1 -0
- package/dist/devtools.cjs +3 -3
- package/dist/devtools.d.cts +7 -2
- package/dist/devtools.d.ts +7 -2
- package/dist/devtools.js +41 -35
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +38 -37
- package/dist/react.cjs +19 -19
- package/dist/react.d.cts +16 -0
- package/dist/react.d.ts +16 -0
- package/dist/react.js +1516 -1490
- package/dist/testing.cjs +1 -0
- package/dist/testing.d.cts +482 -0
- package/dist/testing.d.ts +482 -0
- package/dist/testing.js +4 -0
- package/dist/vue.cjs +1 -1
- package/dist/vue.d.cts +5 -0
- package/dist/vue.d.ts +5 -0
- package/dist/vue.js +1 -1
- package/dist/widget.cjs +4 -4
- package/dist/widget.d.cts +6 -1
- package/dist/widget.d.ts +6 -1
- package/dist/widget.js +300 -286
- package/package.json +30 -9
- package/dist/AgoClient-D4EL6nva.cjs +0 -6
- package/dist/createFormCollector-IO6bfPQx.cjs +0 -1
package/dist/index.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { a as w, c as h, d as A, f as y, i as C, l as E, n as S, o as b, r as v, s as k, t as d, u as M } from "./AgoClient-
|
|
2
|
-
import { n as T, r as I, t as U } from "./createFormCollector-
|
|
3
|
-
import { t as O } from "./createConversationSession-
|
|
1
|
+
import { a as w, c as h, d as A, f as y, i as C, l as E, n as S, o as b, r as v, s as k, t as d, u as M } from "./AgoClient-BrYhSO5M.js";
|
|
2
|
+
import { n as T, r as I, t as U } from "./createFormCollector-CPS2phYq.js";
|
|
3
|
+
import { t as O } from "./createConversationSession-Dmqd80DX.js";
|
|
4
4
|
import { t as x } from "./createMockClient-DwdxNwEn.js";
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import "./testing.js";
|
|
6
|
+
import { a as D, c as H, d as J, f as R, i as j, l as B, m as P, o as $, p as z, r as K, s as Q, t as V, u as W } from "./functions-C1-5vadY.js";
|
|
7
|
+
function X(e) {
|
|
7
8
|
return e;
|
|
8
9
|
}
|
|
9
|
-
function
|
|
10
|
+
function Y(e, t) {
|
|
10
11
|
return e.on("message:complete", t), () => e.off("message:complete", t);
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
+
function Z(e, t) {
|
|
13
14
|
return e.on("message:chunk", t), () => e.off("message:chunk", t);
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
+
function _(e, t) {
|
|
16
17
|
return e.on("message:start", t), () => e.off("message:start", t);
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
+
function ee(e, t) {
|
|
19
20
|
return e.on("message:error", t), () => e.off("message:error", t);
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
+
function te(e, t) {
|
|
22
23
|
return e.on("toolCall:received", t), () => e.off("toolCall:received", t);
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
+
function oe(e, t) {
|
|
25
26
|
return e.on("function:invoke", t), () => e.off("function:invoke", t);
|
|
26
27
|
}
|
|
27
|
-
async function*
|
|
28
|
+
async function* re(e, t, g) {
|
|
28
29
|
const a = [];
|
|
29
30
|
let r = null, n = !1;
|
|
30
31
|
const u = (s) => {
|
|
@@ -87,12 +88,12 @@ function c(e) {
|
|
|
87
88
|
debug: f
|
|
88
89
|
} : null;
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function ae(e) {
|
|
91
92
|
const t = c(e);
|
|
92
93
|
if (!t) throw new Error('createAgo(): could not detect AGO configuration. Set window.AGO, add <meta name="ago-base-url">, or pass { baseUrl } explicitly.');
|
|
93
94
|
return new d(t);
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
+
function ne(e, t) {
|
|
96
97
|
return {
|
|
97
98
|
...e,
|
|
98
99
|
handler: t
|
|
@@ -110,34 +111,34 @@ export {
|
|
|
110
111
|
b as FunctionRegistry,
|
|
111
112
|
v as SSEHandler,
|
|
112
113
|
c as autoDetectConfig,
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
V as copyToClipboard,
|
|
115
|
+
ae as createAgo,
|
|
115
116
|
O as createConversationSession,
|
|
116
117
|
U as createFormCollector,
|
|
117
|
-
|
|
118
|
+
re as createMessageStream,
|
|
118
119
|
x as createMockClient,
|
|
119
120
|
I as createStore,
|
|
120
|
-
|
|
121
|
+
X as defineFunction,
|
|
121
122
|
T as deriveFormStatus,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
K as getLocalStorage,
|
|
124
|
+
j as getUserLocation,
|
|
125
|
+
D as highlightElement,
|
|
125
126
|
C as isStreamNetworkError,
|
|
126
127
|
k as logger,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
128
|
+
oe as onFunctionInvoke,
|
|
129
|
+
Y as onMessage,
|
|
130
|
+
Z as onMessageChunk,
|
|
131
|
+
ee as onMessageError,
|
|
132
|
+
_ as onMessageStart,
|
|
133
|
+
te as onToolCall,
|
|
134
|
+
$ as openUrl,
|
|
135
|
+
Q as scrollToElement,
|
|
136
|
+
H as setLocalStorage,
|
|
137
|
+
B as setTheme,
|
|
138
|
+
W as showConfirmDialog,
|
|
139
|
+
J as showNotification,
|
|
140
|
+
R as showToast,
|
|
141
|
+
z as submitForm,
|
|
142
|
+
P as trackEvent,
|
|
143
|
+
ne as withHandler
|
|
143
144
|
};
|