@syntrologie/adapt-chatbot 2.8.0-canary.263 → 2.8.0-canary.265
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatAssistantLit.d.ts","sourceRoot":"","sources":["../src/ChatAssistantLit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAGH,OAAO,mBAAmB,CAAC;AAK3B,OAAO,KAAK,EAAE,aAAa,EAAmB,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAuGD,MAAM,WAAW,uBAAuB;IACtC;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC;IACvD;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,kBAAkB,CAAC;IACvD;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,qBAAqB,CACzC,IAAI,GAAE,uBAA4B,GACjC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAgHxB;AAqGD,eAAO,MAAM,yBAAyB;qBACnB,WAAW,gBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatAssistantLit.d.ts","sourceRoot":"","sources":["../src/ChatAssistantLit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAGH,OAAO,mBAAmB,CAAC;AAK3B,OAAO,KAAK,EAAE,aAAa,EAAmB,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAuGD,MAAM,WAAW,uBAAuB;IACtC;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC;IACvD;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,kBAAkB,CAAC;IACvD;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,qBAAqB,CACzC,IAAI,GAAE,uBAA4B,GACjC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAgHxB;AAqGD,eAAO,MAAM,yBAAyB;qBACnB,WAAW,gBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAyYpE,CAAC"}
|
package/dist/ChatAssistantLit.js
CHANGED
|
@@ -6659,7 +6659,7 @@ function varint32read() {
|
|
|
6659
6659
|
var protoInt64 = /* @__PURE__ */ makeInt64Support();
|
|
6660
6660
|
function makeInt64Support() {
|
|
6661
6661
|
const dv = new DataView(new ArrayBuffer(8));
|
|
6662
|
-
const ok = typeof BigInt === "function" && typeof dv.getBigInt64 === "function" && typeof dv.getBigUint64 === "function" && typeof dv.setBigInt64 === "function" && typeof dv.setBigUint64 === "function" && (!!globalThis.Deno || typeof process != "object" || typeof process.env != "object" ||
|
|
6662
|
+
const ok = typeof BigInt === "function" && typeof dv.getBigInt64 === "function" && typeof dv.getBigUint64 === "function" && typeof dv.setBigInt64 === "function" && typeof dv.setBigUint64 === "function" && (!!globalThis.Deno || typeof process != "object" || typeof process.env != "object" || true);
|
|
6663
6663
|
if (ok) {
|
|
6664
6664
|
const MIN = BigInt("-9223372036854775808");
|
|
6665
6665
|
const MAX = BigInt("9223372036854775807");
|
|
@@ -9350,7 +9350,7 @@ function A2(e) {
|
|
|
9350
9350
|
return e;
|
|
9351
9351
|
}
|
|
9352
9352
|
async function j2(e, t, n, r) {
|
|
9353
|
-
let i =
|
|
9353
|
+
let i = false, a = false, o = O2(t), s = O2(n), c = o, l = s, u3;
|
|
9354
9354
|
for (let t2 of e) try {
|
|
9355
9355
|
a && (A2(c), A2(l));
|
|
9356
9356
|
let e2 = await r(t2, c, l);
|
|
@@ -10096,7 +10096,7 @@ var be = class extends K2 {
|
|
|
10096
10096
|
super(...e), this.currentReasoningId = null, this.currentMessageId = null;
|
|
10097
10097
|
}
|
|
10098
10098
|
warnAboutTransformation(e, t) {
|
|
10099
|
-
|
|
10099
|
+
console.warn(`AG-UI is converting ${e} to ${t}. To remove this warning, upgrade your AG-UI integration package (e.g. @ag-ui/langgraph). To surpress it, set SUPPRESS_TRANSFORMATION_WARNINGS=true in your .env file.`);
|
|
10100
10100
|
}
|
|
10101
10101
|
run(e, t) {
|
|
10102
10102
|
return this.currentReasoningId = null, this.currentMessageId = null, this.runNext(e, t).pipe(map((e2) => this.transformEvent(e2)));
|
|
@@ -10968,10 +10968,18 @@ var ChatAssistantLitMountable = {
|
|
|
10968
10968
|
errorStatus: lastErrorPayload?.status ?? null,
|
|
10969
10969
|
errorBody: lastErrorPayload?.body ?? null,
|
|
10970
10970
|
errorMessage: lastErrorPayload?.message ?? null,
|
|
10971
|
-
errorName: lastErrorPayload?.errorName ?? null
|
|
10971
|
+
errorName: lastErrorPayload?.errorName ?? null,
|
|
10972
|
+
// Snapshot of the agent backend URL so PostHog queries can group
|
|
10973
|
+
// fallback events by customer environment (demo-api vs
|
|
10974
|
+
// dev-api). Cheap to attach; the SDK already has it in scope.
|
|
10975
|
+
backendUrl: streamUrl
|
|
10972
10976
|
};
|
|
10973
10977
|
runtime.events.publish("chatbot.fallback_rendered", payload);
|
|
10974
|
-
|
|
10978
|
+
const statusLabel = lastErrorPayload?.status ?? "no-status";
|
|
10979
|
+
console.warn(
|
|
10980
|
+
`[adaptive-chatbot] fallback rendered mountId=${mountId} reason=${reason} botCheck=${botCheckOutcome} errorStatus=${statusLabel} messagesSent=${messagesSent}`,
|
|
10981
|
+
payload
|
|
10982
|
+
);
|
|
10975
10983
|
transport?.disconnect();
|
|
10976
10984
|
el.remove();
|
|
10977
10985
|
container.innerHTML = renderFallbackHtml(chatbotConfig.fallback);
|
|
@@ -11016,12 +11024,21 @@ var ChatAssistantLitMountable = {
|
|
|
11016
11024
|
errorBody: errEvent.body ?? null,
|
|
11017
11025
|
errorName: errEvent.errorName ?? null
|
|
11018
11026
|
});
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
body
|
|
11023
|
-
|
|
11024
|
-
|
|
11027
|
+
const statusLabel = errEvent.status ?? "no-status";
|
|
11028
|
+
const bodySnippet = errEvent.body ? errEvent.body.slice(0, 120) : "<no-body>";
|
|
11029
|
+
console.warn(
|
|
11030
|
+
`[adaptive-chatbot] transport error mountId=${mountId} status=${statusLabel} hasSucceeded=${hasSucceeded} body=${JSON.stringify(bodySnippet)}`,
|
|
11031
|
+
{
|
|
11032
|
+
mountId,
|
|
11033
|
+
status: errEvent.status,
|
|
11034
|
+
body: errEvent.body,
|
|
11035
|
+
errorName: errEvent.errorName,
|
|
11036
|
+
errorMessage: errEvent.message,
|
|
11037
|
+
hasSucceeded,
|
|
11038
|
+
messagesSent,
|
|
11039
|
+
mountAgeMs: mountAgeMs()
|
|
11040
|
+
}
|
|
11041
|
+
);
|
|
11025
11042
|
if (hasSucceeded || errorDebounceTimer) return;
|
|
11026
11043
|
errorDebounceTimer = setTimeout(() => {
|
|
11027
11044
|
errorDebounceTimer = null;
|
|
@@ -11174,4 +11191,4 @@ fast-json-patch/module/duplex.mjs:
|
|
|
11174
11191
|
* MIT license
|
|
11175
11192
|
*)
|
|
11176
11193
|
*/
|
|
11177
|
-
//# sourceMappingURL=chunk-
|
|
11194
|
+
//# sourceMappingURL=chunk-IOJOPG5W.js.map
|