@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.
Files changed (41) hide show
  1. package/CHANGELOG.md +98 -0
  2. package/LICENSE +201 -0
  3. package/NOTICE +10 -0
  4. package/README.md +19 -11
  5. package/dist/{AgoClient-rvTz2thR.js → AgoClient-BrYhSO5M.js} +32 -26
  6. package/dist/AgoClient-CPqPT5s6.cjs +6 -0
  7. package/dist/angular.cjs +1 -1
  8. package/dist/angular.d.cts +5 -0
  9. package/dist/angular.d.ts +5 -0
  10. package/dist/angular.js +1 -1
  11. package/dist/{createConversationSession-DGcM_Z3f.cjs → createConversationSession-CGRO0bs2.cjs} +1 -1
  12. package/dist/{createConversationSession-D-eq8VIo.js → createConversationSession-Dmqd80DX.js} +1 -1
  13. package/dist/{createFormCollector-DON4vdJV.js → createFormCollector-CPS2phYq.js} +51 -50
  14. package/dist/createFormCollector-DaWZsBsI.cjs +1 -0
  15. package/dist/devtools.cjs +3 -3
  16. package/dist/devtools.d.cts +7 -2
  17. package/dist/devtools.d.ts +7 -2
  18. package/dist/devtools.js +41 -35
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.d.cts +14 -0
  21. package/dist/index.d.ts +14 -0
  22. package/dist/index.js +38 -37
  23. package/dist/react.cjs +19 -19
  24. package/dist/react.d.cts +16 -0
  25. package/dist/react.d.ts +16 -0
  26. package/dist/react.js +1516 -1490
  27. package/dist/testing.cjs +1 -0
  28. package/dist/testing.d.cts +482 -0
  29. package/dist/testing.d.ts +482 -0
  30. package/dist/testing.js +4 -0
  31. package/dist/vue.cjs +1 -1
  32. package/dist/vue.d.cts +5 -0
  33. package/dist/vue.d.ts +5 -0
  34. package/dist/vue.js +1 -1
  35. package/dist/widget.cjs +4 -4
  36. package/dist/widget.d.cts +6 -1
  37. package/dist/widget.d.ts +6 -1
  38. package/dist/widget.js +300 -286
  39. package/package.json +30 -9
  40. package/dist/AgoClient-D4EL6nva.cjs +0 -6
  41. 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-rvTz2thR.js";
2
- import { n as T, r as I, t as U } from "./createFormCollector-DON4vdJV.js";
3
- import { t as O } from "./createConversationSession-D-eq8VIo.js";
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 { a as N, c as D, d as H, f as J, i as R, l as j, m as B, o as P, p as $, r as z, s as K, t as Q, u as V } from "./functions-C1-5vadY.js";
6
- function W(e) {
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 X(e, t) {
10
+ function Y(e, t) {
10
11
  return e.on("message:complete", t), () => e.off("message:complete", t);
11
12
  }
12
- function Y(e, t) {
13
+ function Z(e, t) {
13
14
  return e.on("message:chunk", t), () => e.off("message:chunk", t);
14
15
  }
15
- function Z(e, t) {
16
+ function _(e, t) {
16
17
  return e.on("message:start", t), () => e.off("message:start", t);
17
18
  }
18
- function _(e, t) {
19
+ function ee(e, t) {
19
20
  return e.on("message:error", t), () => e.off("message:error", t);
20
21
  }
21
- function ee(e, t) {
22
+ function te(e, t) {
22
23
  return e.on("toolCall:received", t), () => e.off("toolCall:received", t);
23
24
  }
24
- function te(e, t) {
25
+ function oe(e, t) {
25
26
  return e.on("function:invoke", t), () => e.off("function:invoke", t);
26
27
  }
27
- async function* oe(e, t, g) {
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 re(e) {
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 ae(e, t) {
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
- Q as copyToClipboard,
114
- re as createAgo,
114
+ V as copyToClipboard,
115
+ ae as createAgo,
115
116
  O as createConversationSession,
116
117
  U as createFormCollector,
117
- oe as createMessageStream,
118
+ re as createMessageStream,
118
119
  x as createMockClient,
119
120
  I as createStore,
120
- W as defineFunction,
121
+ X as defineFunction,
121
122
  T as deriveFormStatus,
122
- z as getLocalStorage,
123
- R as getUserLocation,
124
- N as highlightElement,
123
+ K as getLocalStorage,
124
+ j as getUserLocation,
125
+ D as highlightElement,
125
126
  C as isStreamNetworkError,
126
127
  k as logger,
127
- te as onFunctionInvoke,
128
- X as onMessage,
129
- Y as onMessageChunk,
130
- _ as onMessageError,
131
- Z as onMessageStart,
132
- ee as onToolCall,
133
- P as openUrl,
134
- K as scrollToElement,
135
- D as setLocalStorage,
136
- j as setTheme,
137
- V as showConfirmDialog,
138
- H as showNotification,
139
- J as showToast,
140
- $ as submitForm,
141
- B as trackEvent,
142
- ae as withHandler
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
  };