@glodon-aiot/agent-cli-sdk 2.4.7
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 +70 -0
- package/dist/agent-cli-sdk.js +34975 -0
- package/dist/agent-cli-sdk.umd.cjs +150 -0
- package/dist/cdn/agent-cli-sdk.js +32945 -0
- package/dist/cdn/agent-cli-sdk.umd.cjs +140 -0
- package/dist/cdn/src/AgentPlugin.d.ts +17 -0
- package/dist/cdn/src/AgentSession.d.ts +8 -0
- package/dist/cdn/src/BotClient.d.ts +46 -0
- package/dist/cdn/src/Config.d.ts +32 -0
- package/dist/cdn/src/DialogSession.d.ts +21 -0
- package/dist/cdn/src/EventBus.d.ts +23 -0
- package/dist/cdn/src/Logger.d.ts +12 -0
- package/dist/cdn/src/PayloadTypes.d.ts +84 -0
- package/dist/cdn/src/Session.d.ts +156 -0
- package/dist/cdn/src/__ tests __/AgentClient.spec.d.ts +1 -0
- package/dist/cdn/src/__ tests __/AgentSession.spec.d.ts +1 -0
- package/dist/cdn/src/__ tests __/DialogClient.spec.d.ts +1 -0
- package/dist/cdn/src/api/fetchEventSource/fetch.d.ts +44 -0
- package/dist/cdn/src/api/fetchEventSource/index.d.ts +1 -0
- package/dist/cdn/src/api/fetchEventSource/parse.d.ts +36 -0
- package/dist/cdn/src/api/index.d.ts +2 -0
- package/dist/cdn/src/index.d.ts +5 -0
- package/dist/cdn/src/utils.d.ts +4 -0
- package/dist/es/AgentPlugin.mjs +20 -0
- package/dist/es/AgentSession.mjs +243 -0
- package/dist/es/BotClient.mjs +242 -0
- package/dist/es/Config.mjs +34 -0
- package/dist/es/DialogSession.mjs +281 -0
- package/dist/es/EventBus.mjs +64 -0
- package/dist/es/Logger.mjs +31 -0
- package/dist/es/PayloadTypes.mjs +4 -0
- package/dist/es/Session.mjs +527 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +4 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/index2.mjs +4 -0
- package/dist/es/_virtual/index3.mjs +4 -0
- package/dist/es/_virtual/minio-zj.mjs +4 -0
- package/dist/es/api/fetchEventSource/fetch.mjs +112 -0
- package/dist/es/api/fetchEventSource/parse.mjs +97 -0
- package/dist/es/api/index.mjs +48 -0
- package/dist/es/index.mjs +11 -0
- package/dist/es/node_modules/@glodon-aiot/minio/dist/minio-zj.mjs +26485 -0
- package/dist/es/node_modules/@socket.io/component-emitter/lib/esm/index.mjs +54 -0
- package/dist/es/node_modules/base64-js/index.mjs +47 -0
- package/dist/es/node_modules/buffer/index.mjs +927 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/has-cors.mjs +9 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseqs.mjs +18 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseuri.mjs +24 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/yeast.mjs +19 -0
- package/dist/es/node_modules/engine.io-client/build/esm/globalThis.browser.mjs +4 -0
- package/dist/es/node_modules/engine.io-client/build/esm/socket.mjs +317 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transport.mjs +113 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/index.mjs +11 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/polling.mjs +273 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.mjs +8 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket.mjs +87 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/webtransport.mjs +52 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.mjs +21 -0
- package/dist/es/node_modules/engine.io-client/build/esm/util.mjs +23 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/commons.mjs +21 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.mjs +14 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/decodePacket.browser.mjs +39 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/encodePacket.browser.mjs +28 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/index.mjs +105 -0
- package/dist/es/node_modules/ieee754/index.mjs +28 -0
- package/dist/es/node_modules/js-base64/base64.mjs +31 -0
- package/dist/es/node_modules/socket.io-client/build/esm/contrib/backo2.mjs +26 -0
- package/dist/es/node_modules/socket.io-client/build/esm/index.mjs +25 -0
- package/dist/es/node_modules/socket.io-client/build/esm/manager.mjs +242 -0
- package/dist/es/node_modules/socket.io-client/build/esm/on.mjs +8 -0
- package/dist/es/node_modules/socket.io-client/build/esm/socket.mjs +608 -0
- package/dist/es/node_modules/socket.io-client/build/esm/url.mjs +19 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/binary.mjs +52 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/index.mjs +203 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/is-binary.mjs +26 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +6 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/rng.mjs +10 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
- package/dist/es/packages/apis/dist/es/aecpilot/model.mjs +4 -0
- package/dist/es/packages/apis/dist/es/aecpilotui/index.mjs +8 -0
- package/dist/es/packages/apis/dist/es/agentcliui/index.mjs +8 -0
- package/dist/es/packages/apis/dist/es/base/index.mjs +154 -0
- package/dist/es/packages/apis/dist/es/cvforce/index.mjs +431 -0
- package/dist/es/packages/apis/dist/es/cvforce/model.mjs +5 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +1 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +3 -0
- package/dist/es/utils.mjs +11 -0
- package/dist/lib/index.js +126 -0
- package/dist/src/AgentPlugin.d.ts +17 -0
- package/dist/src/AgentSession.d.ts +8 -0
- package/dist/src/BotClient.d.ts +46 -0
- package/dist/src/Config.d.ts +32 -0
- package/dist/src/DialogSession.d.ts +21 -0
- package/dist/src/EventBus.d.ts +23 -0
- package/dist/src/Logger.d.ts +12 -0
- package/dist/src/PayloadTypes.d.ts +84 -0
- package/dist/src/Session.d.ts +155 -0
- package/dist/src/__ tests __/AgentClient.spec.d.ts +1 -0
- package/dist/src/__ tests __/AgentSession.spec.d.ts +1 -0
- package/dist/src/__ tests __/DialogClient.spec.d.ts +1 -0
- package/dist/src/api/fetchEventSource/fetch.d.ts +44 -0
- package/dist/src/api/fetchEventSource/index.d.ts +1 -0
- package/dist/src/api/fetchEventSource/parse.d.ts +36 -0
- package/dist/src/api/index.d.ts +2 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/utils.d.ts +4 -0
- package/package.json +102 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
function r(t) {
|
|
2
|
+
if (t)
|
|
3
|
+
return n(t);
|
|
4
|
+
}
|
|
5
|
+
function n(t) {
|
|
6
|
+
for (var s in r.prototype)
|
|
7
|
+
t[s] = r.prototype[s];
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
r.prototype.on = r.prototype.addEventListener = function(t, s) {
|
|
11
|
+
return this._callbacks = this._callbacks || {}, (this._callbacks["$" + t] = this._callbacks["$" + t] || []).push(s), this;
|
|
12
|
+
};
|
|
13
|
+
r.prototype.once = function(t, s) {
|
|
14
|
+
function e() {
|
|
15
|
+
this.off(t, e), s.apply(this, arguments);
|
|
16
|
+
}
|
|
17
|
+
return e.fn = s, this.on(t, e), this;
|
|
18
|
+
};
|
|
19
|
+
r.prototype.off = r.prototype.removeListener = r.prototype.removeAllListeners = r.prototype.removeEventListener = function(t, s) {
|
|
20
|
+
if (this._callbacks = this._callbacks || {}, arguments.length == 0)
|
|
21
|
+
return this._callbacks = {}, this;
|
|
22
|
+
var e = this._callbacks["$" + t];
|
|
23
|
+
if (!e)
|
|
24
|
+
return this;
|
|
25
|
+
if (arguments.length == 1)
|
|
26
|
+
return delete this._callbacks["$" + t], this;
|
|
27
|
+
for (var a, i = 0; i < e.length; i++)
|
|
28
|
+
if (a = e[i], a === s || a.fn === s) {
|
|
29
|
+
e.splice(i, 1);
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
return e.length === 0 && delete this._callbacks["$" + t], this;
|
|
33
|
+
};
|
|
34
|
+
r.prototype.emit = function(t) {
|
|
35
|
+
this._callbacks = this._callbacks || {};
|
|
36
|
+
for (var s = new Array(arguments.length - 1), e = this._callbacks["$" + t], a = 1; a < arguments.length; a++)
|
|
37
|
+
s[a - 1] = arguments[a];
|
|
38
|
+
if (e) {
|
|
39
|
+
e = e.slice(0);
|
|
40
|
+
for (var a = 0, i = e.length; a < i; ++a)
|
|
41
|
+
e[a].apply(this, s);
|
|
42
|
+
}
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
r.prototype.emitReserved = r.prototype.emit;
|
|
46
|
+
r.prototype.listeners = function(t) {
|
|
47
|
+
return this._callbacks = this._callbacks || {}, this._callbacks["$" + t] || [];
|
|
48
|
+
};
|
|
49
|
+
r.prototype.hasListeners = function(t) {
|
|
50
|
+
return !!this.listeners(t).length;
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
r as Emitter
|
|
54
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { __exports as l } from "../../_virtual/index2.mjs";
|
|
2
|
+
l.byteLength = p;
|
|
3
|
+
l.toByteArray = C;
|
|
4
|
+
l.fromByteArray = i;
|
|
5
|
+
var F = [], f = [], u = typeof Uint8Array != "undefined" ? Uint8Array : Array, x = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
6
|
+
for (var c = 0, A = x.length; c < A; ++c)
|
|
7
|
+
F[c] = x[c], f[x.charCodeAt(c)] = c;
|
|
8
|
+
f["-".charCodeAt(0)] = 62;
|
|
9
|
+
f["_".charCodeAt(0)] = 63;
|
|
10
|
+
function s(r) {
|
|
11
|
+
var e = r.length;
|
|
12
|
+
if (e % 4 > 0)
|
|
13
|
+
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
14
|
+
var a = r.indexOf("=");
|
|
15
|
+
a === -1 && (a = e);
|
|
16
|
+
var o = a === e ? 0 : 4 - a % 4;
|
|
17
|
+
return [a, o];
|
|
18
|
+
}
|
|
19
|
+
function p(r) {
|
|
20
|
+
var e = s(r), a = e[0], o = e[1];
|
|
21
|
+
return (a + o) * 3 / 4 - o;
|
|
22
|
+
}
|
|
23
|
+
function y(r, e, a) {
|
|
24
|
+
return (e + a) * 3 / 4 - a;
|
|
25
|
+
}
|
|
26
|
+
function C(r) {
|
|
27
|
+
var e, a = s(r), o = a[0], n = a[1], t = new u(y(r, o, n)), v = 0, d = n > 0 ? o - 4 : o, h;
|
|
28
|
+
for (h = 0; h < d; h += 4)
|
|
29
|
+
e = f[r.charCodeAt(h)] << 18 | f[r.charCodeAt(h + 1)] << 12 | f[r.charCodeAt(h + 2)] << 6 | f[r.charCodeAt(h + 3)], t[v++] = e >> 16 & 255, t[v++] = e >> 8 & 255, t[v++] = e & 255;
|
|
30
|
+
return n === 2 && (e = f[r.charCodeAt(h)] << 2 | f[r.charCodeAt(h + 1)] >> 4, t[v++] = e & 255), n === 1 && (e = f[r.charCodeAt(h)] << 10 | f[r.charCodeAt(h + 1)] << 4 | f[r.charCodeAt(h + 2)] >> 2, t[v++] = e >> 8 & 255, t[v++] = e & 255), t;
|
|
31
|
+
}
|
|
32
|
+
function L(r) {
|
|
33
|
+
return F[r >> 18 & 63] + F[r >> 12 & 63] + F[r >> 6 & 63] + F[r & 63];
|
|
34
|
+
}
|
|
35
|
+
function g(r, e, a) {
|
|
36
|
+
for (var o, n = [], t = e; t < a; t += 3)
|
|
37
|
+
o = (r[t] << 16 & 16711680) + (r[t + 1] << 8 & 65280) + (r[t + 2] & 255), n.push(L(o));
|
|
38
|
+
return n.join("");
|
|
39
|
+
}
|
|
40
|
+
function i(r) {
|
|
41
|
+
for (var e, a = r.length, o = a % 3, n = [], t = 16383, v = 0, d = a - o; v < d; v += t)
|
|
42
|
+
n.push(g(r, v, v + t > d ? d : v + t));
|
|
43
|
+
return o === 1 ? (e = r[a - 1], n.push(F[e >> 2] + F[e << 4 & 63] + "==")) : o === 2 && (e = (r[a - 2] << 8) + r[a - 1], n.push(F[e >> 10] + F[e >> 4 & 63] + F[e << 2 & 63] + "=")), n.join("");
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
l as default
|
|
47
|
+
};
|