@memberjunction/realtime-widget 6.2.0-edge.7 → 6.2.0-edge.8
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/dist/embed/chunks/UserViewEngine-ELH6XPEL.js +7 -0
- package/dist/embed/chunks/{chunk-MQPAK26D.js → chunk-DAGQZKVY.js} +9271 -8077
- package/dist/embed/chunks/{chunk-46L5OHPT.js → chunk-HDCS43DU.js} +6204 -1046
- package/dist/embed/chunks/{chunk-4IZZL4GA.js → chunk-JOGHPRST.js} +1 -1
- package/dist/embed/chunks/{chunk-FOFOZNZC.js → chunk-L4OBOWDD.js} +14 -14
- package/dist/embed/chunks/{dist-S5YIFSWR.js → dist-BOIIDZ2X.js} +5 -5
- package/dist/embed/chunks/{guest-tool-relay-2MP5GU67.js → guest-tool-relay-IAAOBPAS.js} +6 -6
- package/dist/embed/chunks/{guest-voice-mint-MNMKTI3E.js → guest-voice-mint-GPJQNDR3.js} +6 -6
- package/dist/embed/chunks/{realtime-voice-controller-D2GLGIK2.js → realtime-voice-controller-76SVXCXJ.js} +2 -2
- package/dist/embed/chunks/{runtime-widget-transport-V7B2B3TL.js → runtime-widget-transport-XT55WJB2.js} +9 -9
- package/dist/embed/mj-widget.js +6 -6
- package/package.json +9 -9
- package/dist/embed/chunks/UserViewEngine-H2CVAVG5.js +0 -7
- /package/dist/embed/chunks/{chunk-VXA62VEQ.js → chunk-DIDGGUK7.js} +0 -0
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
ArtifactMetadataEngine,
|
|
4
4
|
ConversationEngine,
|
|
5
5
|
ConversationUtility,
|
|
6
|
+
Fe,
|
|
6
7
|
FileStorageEngineBase,
|
|
7
8
|
MJAICredentialBindingEntity,
|
|
8
9
|
MJAIModelPriceUnitTypeEntity,
|
|
10
|
+
Rr,
|
|
11
|
+
S,
|
|
9
12
|
TemplateEngineBase,
|
|
10
|
-
coerceFailedExecuteAgentResult
|
|
11
|
-
|
|
12
|
-
lr,
|
|
13
|
-
we
|
|
14
|
-
} from "./chunk-46L5OHPT.js";
|
|
13
|
+
coerceFailedExecuteAgentResult
|
|
14
|
+
} from "./chunk-HDCS43DU.js";
|
|
15
15
|
import {
|
|
16
16
|
BaseEngine,
|
|
17
17
|
BaseEntity,
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
PermissionConstrainedError,
|
|
23
23
|
RegisterForStartup,
|
|
24
24
|
RunView
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-DAGQZKVY.js";
|
|
26
26
|
import {
|
|
27
27
|
ParseModelConfiguration,
|
|
28
28
|
ParseVendorConfiguration,
|
|
29
29
|
ResolveEffectiveModelConfiguration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-JOGHPRST.js";
|
|
31
31
|
import {
|
|
32
32
|
BaseSingleton,
|
|
33
33
|
BehaviorSubject,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
ValidationErrorInfo,
|
|
45
45
|
ValidationErrorType,
|
|
46
46
|
throttleTime
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-DIDGGUK7.js";
|
|
48
48
|
|
|
49
49
|
// ../../AI/BaseAIEngine/dist/PriceUnitTypes.js
|
|
50
50
|
var __decorate = function(decorators, target, key, desc) {
|
|
@@ -3650,7 +3650,7 @@ var AgentClientSession = class {
|
|
|
3650
3650
|
if (!provider) {
|
|
3651
3651
|
return { Success: false, ErrorMessage: "GraphQL provider not available" };
|
|
3652
3652
|
}
|
|
3653
|
-
const aiClient = new
|
|
3653
|
+
const aiClient = new Fe(provider);
|
|
3654
3654
|
try {
|
|
3655
3655
|
const agentShim = { ID: params.AgentId };
|
|
3656
3656
|
const messages = params.Messages.map((m) => ({
|
|
@@ -3708,7 +3708,7 @@ var AgentClientSession = class {
|
|
|
3708
3708
|
if (!provider) {
|
|
3709
3709
|
return { Success: false, ErrorMessage: "GraphQL provider not available" };
|
|
3710
3710
|
}
|
|
3711
|
-
const aiClient = new
|
|
3711
|
+
const aiClient = new Fe(provider);
|
|
3712
3712
|
try {
|
|
3713
3713
|
const gqlParams = {
|
|
3714
3714
|
userMessageId: params.UserMessageId,
|
|
@@ -4861,7 +4861,7 @@ var ConversationStreaming = class {
|
|
|
4861
4861
|
return;
|
|
4862
4862
|
}
|
|
4863
4863
|
try {
|
|
4864
|
-
const dataProvider =
|
|
4864
|
+
const dataProvider = S.Instance;
|
|
4865
4865
|
this.watchSocketAcknowledgement(dataProvider);
|
|
4866
4866
|
this.pushStatusSubscription = dataProvider.PushStatusUpdates().subscribe({
|
|
4867
4867
|
next: (status) => {
|
|
@@ -5395,7 +5395,7 @@ var ConversationLiveness = class {
|
|
|
5395
5395
|
}
|
|
5396
5396
|
let socketWired = false;
|
|
5397
5397
|
try {
|
|
5398
|
-
const provider =
|
|
5398
|
+
const provider = S.Instance;
|
|
5399
5399
|
if (provider) {
|
|
5400
5400
|
this.subscriptions.add(provider.SocketReconnected$.subscribe(() => this.Trigger("socket-reconnected")));
|
|
5401
5401
|
socketWired = true;
|
|
@@ -5493,11 +5493,11 @@ var ConversationTail = class {
|
|
|
5493
5493
|
return this.client;
|
|
5494
5494
|
}
|
|
5495
5495
|
try {
|
|
5496
|
-
const provider =
|
|
5496
|
+
const provider = S.Instance;
|
|
5497
5497
|
if (!provider) {
|
|
5498
5498
|
return void 0;
|
|
5499
5499
|
}
|
|
5500
|
-
this.client = new
|
|
5500
|
+
this.client = new Rr(provider);
|
|
5501
5501
|
return this.client;
|
|
5502
5502
|
} catch {
|
|
5503
5503
|
return void 0;
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
SessionCardStatusChip,
|
|
29
29
|
SessionCardTitle,
|
|
30
30
|
SessionsObserver
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-L4OBOWDD.js";
|
|
32
|
+
import "./chunk-HDCS43DU.js";
|
|
33
|
+
import "./chunk-DAGQZKVY.js";
|
|
34
|
+
import "./chunk-JOGHPRST.js";
|
|
35
|
+
import "./chunk-DIDGGUK7.js";
|
|
36
36
|
export {
|
|
37
37
|
BuildConversationTimeline,
|
|
38
38
|
ClientToolRegistry,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
2
|
+
S
|
|
3
|
+
} from "./chunk-HDCS43DU.js";
|
|
4
|
+
import "./chunk-DAGQZKVY.js";
|
|
5
|
+
import "./chunk-JOGHPRST.js";
|
|
6
|
+
import "./chunk-DIDGGUK7.js";
|
|
7
7
|
|
|
8
8
|
// dist/voice/guest-tool-relay.js
|
|
9
9
|
var EXECUTE_TOOL_MUTATION = `
|
|
@@ -12,7 +12,7 @@ mutation WidgetRelayRealtimeTool($agentSessionId: String!, $callId: String!, $to
|
|
|
12
12
|
}`;
|
|
13
13
|
function CreateGuestToolRelay() {
|
|
14
14
|
return async (agentSessionId, callId, toolName, argsJson) => {
|
|
15
|
-
const data = await
|
|
15
|
+
const data = await S.Instance.ExecuteGQL(EXECUTE_TOOL_MUTATION, {
|
|
16
16
|
agentSessionId,
|
|
17
17
|
callId,
|
|
18
18
|
toolName,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
2
|
+
S
|
|
3
|
+
} from "./chunk-HDCS43DU.js";
|
|
4
|
+
import "./chunk-DAGQZKVY.js";
|
|
5
5
|
import {
|
|
6
6
|
ParseRealtimeClientTransport
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-JOGHPRST.js";
|
|
8
|
+
import "./chunk-DIDGGUK7.js";
|
|
9
9
|
|
|
10
10
|
// dist/voice/guest-voice-mint.js
|
|
11
11
|
var MINT_FIELDS = ["AgentSessionId", "Provider", "Model", "EphemeralToken", "ExpiresAt", "SessionConfigJson"];
|
|
@@ -42,7 +42,7 @@ function CreateGuestVoiceMint(session) {
|
|
|
42
42
|
for (; ; ) {
|
|
43
43
|
try {
|
|
44
44
|
const sent = asked.NoAgentVideo ? { ...variables, showsAgentVideo: false } : variables;
|
|
45
|
-
return await
|
|
45
|
+
return await S.Instance.ExecuteGQL(startRealtimeMutation(asked), sent);
|
|
46
46
|
} catch (error) {
|
|
47
47
|
const rejected = rejectedExtension(error, asked);
|
|
48
48
|
if (!rejected) {
|
|
@@ -26,14 +26,14 @@ import {
|
|
|
26
26
|
VideoSourceSeenNote,
|
|
27
27
|
VideoSourceTurnedOffNote,
|
|
28
28
|
VideoSourceTurnedOnNote
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-JOGHPRST.js";
|
|
30
30
|
import {
|
|
31
31
|
BaseSingleton,
|
|
32
32
|
MJGlobal,
|
|
33
33
|
RegisterClass,
|
|
34
34
|
__commonJS,
|
|
35
35
|
__toESM
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-DIDGGUK7.js";
|
|
37
37
|
|
|
38
38
|
// ../../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js
|
|
39
39
|
var require_retry_operation = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConversationsRuntime
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L4OBOWDD.js";
|
|
4
4
|
import {
|
|
5
|
+
Bt,
|
|
5
6
|
ConversationEngine,
|
|
6
|
-
|
|
7
|
-
Nt,
|
|
7
|
+
Ot,
|
|
8
8
|
agentFailureMessage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HDCS43DU.js";
|
|
10
10
|
import {
|
|
11
11
|
RunView
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-DAGQZKVY.js";
|
|
13
|
+
import "./chunk-JOGHPRST.js";
|
|
14
|
+
import "./chunk-DIDGGUK7.js";
|
|
15
15
|
|
|
16
16
|
// dist/transport/runtime-widget-transport.js
|
|
17
17
|
var CONVERSATIONS_ENTITY = "MJ: Conversations";
|
|
@@ -29,7 +29,7 @@ var RuntimeWidgetTransport = class {
|
|
|
29
29
|
async Initialize(session) {
|
|
30
30
|
this.session = session;
|
|
31
31
|
this.token = session.token;
|
|
32
|
-
const provider = await
|
|
32
|
+
const provider = await Bt(this.buildConfig());
|
|
33
33
|
this.provider = provider;
|
|
34
34
|
this.contextUser = provider.CurrentUser;
|
|
35
35
|
await ConversationsRuntime.Instance.Config(false, provider.CurrentUser, provider);
|
|
@@ -85,7 +85,7 @@ var RuntimeWidgetTransport = class {
|
|
|
85
85
|
buildConfig() {
|
|
86
86
|
const base = this.apiUrl.replace(/\/+$/, "");
|
|
87
87
|
const wsUrl = base.replace(/^http/, "ws");
|
|
88
|
-
return new
|
|
88
|
+
return new Ot(this.token, base, wsUrl, async () => this.token);
|
|
89
89
|
}
|
|
90
90
|
/** Creates the conversation row the guest's turns attach to. */
|
|
91
91
|
async createConversation() {
|
package/dist/embed/mj-widget.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
CreateProofOfPossessionJwt,
|
|
6
6
|
CreateProofOfPossessionKey
|
|
7
|
-
} from "./chunks/chunk-
|
|
7
|
+
} from "./chunks/chunk-DIDGGUK7.js";
|
|
8
8
|
|
|
9
9
|
// dist/ui/tokens.js
|
|
10
10
|
var WIDGET_SHADOW_STYLES = `
|
|
@@ -960,14 +960,14 @@ function defaultSessionClient(apiUrl, widgetKey) {
|
|
|
960
960
|
return new WidgetSessionClient(apiUrl, widgetKey);
|
|
961
961
|
}
|
|
962
962
|
async function defaultTransport(apiUrl) {
|
|
963
|
-
const { RuntimeWidgetTransport } = await import("./chunks/runtime-widget-transport-
|
|
963
|
+
const { RuntimeWidgetTransport } = await import("./chunks/runtime-widget-transport-XT55WJB2.js");
|
|
964
964
|
return new RuntimeWidgetTransport(apiUrl);
|
|
965
965
|
}
|
|
966
966
|
async function defaultVoiceController(session) {
|
|
967
967
|
const [{ RealtimeVoiceController }, { createGuestVoiceMint }, { createGuestToolRelay }] = await Promise.all([
|
|
968
|
-
import("./chunks/realtime-voice-controller-
|
|
969
|
-
import("./chunks/guest-voice-mint-
|
|
970
|
-
import("./chunks/guest-tool-relay-
|
|
968
|
+
import("./chunks/realtime-voice-controller-76SVXCXJ.js"),
|
|
969
|
+
import("./chunks/guest-voice-mint-GPJQNDR3.js"),
|
|
970
|
+
import("./chunks/guest-tool-relay-IAAOBPAS.js")
|
|
971
971
|
]);
|
|
972
972
|
return new RealtimeVoiceController(
|
|
973
973
|
createGuestVoiceMint(session),
|
|
@@ -998,7 +998,7 @@ function resolveMountTarget(target) {
|
|
|
998
998
|
return document.body;
|
|
999
999
|
}
|
|
1000
1000
|
function registerNotificationAdapter(element) {
|
|
1001
|
-
void import("./chunks/dist-
|
|
1001
|
+
void import("./chunks/dist-BOIIDZ2X.js").then(({ ConversationsRuntime }) => {
|
|
1002
1002
|
ConversationsRuntime.Instance.UseNotificationAdapter({
|
|
1003
1003
|
Notify: (level, message) => {
|
|
1004
1004
|
if (level === "error" || level === "warning") {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/realtime-widget",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.2.0-edge.
|
|
4
|
+
"version": "6.2.0-edge.8",
|
|
5
5
|
"description": "MemberJunction: Droppable, embeddable public customer-support widget (text + voice). A shadow-DOM web component that reuses ConversationsRuntime + the realtime client stack against MJAPI with a guest session JWT. No MJ login required.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"author": "MemberJunction.com",
|
|
12
12
|
"license": "BUSL-1.1",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@memberjunction/global": "6.2.0-edge.
|
|
15
|
-
"@memberjunction/core": "6.2.0-edge.
|
|
16
|
-
"@memberjunction/core-entities": "6.2.0-edge.
|
|
17
|
-
"@memberjunction/ai": "6.2.0-edge.
|
|
18
|
-
"@memberjunction/ai-core-plus": "6.2.0-edge.
|
|
19
|
-
"@memberjunction/ai-realtime-client": "6.2.0-edge.
|
|
20
|
-
"@memberjunction/conversations-runtime": "6.2.0-edge.
|
|
21
|
-
"@memberjunction/graphql-dataprovider": "6.2.0-edge.
|
|
14
|
+
"@memberjunction/global": "6.2.0-edge.8",
|
|
15
|
+
"@memberjunction/core": "6.2.0-edge.8",
|
|
16
|
+
"@memberjunction/core-entities": "6.2.0-edge.8",
|
|
17
|
+
"@memberjunction/ai": "6.2.0-edge.8",
|
|
18
|
+
"@memberjunction/ai-core-plus": "6.2.0-edge.8",
|
|
19
|
+
"@memberjunction/ai-realtime-client": "6.2.0-edge.8",
|
|
20
|
+
"@memberjunction/conversations-runtime": "6.2.0-edge.8",
|
|
21
|
+
"@memberjunction/graphql-dataprovider": "6.2.0-edge.8"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "24.10.11",
|
|
File without changes
|