@axiom-lattice/react-sdk 10.8.0 → 10.9.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/dist/{AgentDetailSideApp-MC2QAFUQ.mjs → AgentDetailSideApp-KIJALOS5.mjs} +7 -7
- package/dist/{AgentGovernanceWorkbench-PR2CUMHR.mjs → AgentGovernanceWorkbench-MQX3BH35.mjs} +8 -8
- package/dist/{AgentWebAppProvider-CIabimVC.d.mts → AgentWebAppProvider-x5lVhkhO.d.mts} +6 -0
- package/dist/{AgentWebAppProvider-CIabimVC.d.ts → AgentWebAppProvider-x5lVhkhO.d.ts} +6 -0
- package/dist/{MessageGraph-IUDE2EDC.mjs → MessageGraph-6EQTQAAR.mjs} +2 -2
- package/dist/{ReactChart-TPOQ6BXW.mjs → ReactChart-DZICSFTV.mjs} +2 -2
- package/dist/{TasksSideApp-QDLOQLZS.mjs → TasksSideApp-CLHMMR4L.mjs} +3 -3
- package/dist/{TopologyRuntimeView-JKGKNV7C.mjs → TopologyRuntimeView-BLBB5PQP.mjs} +3 -3
- package/dist/{WorkflowAutomationView-5AJ2QGM2.mjs → WorkflowAutomationView-IPW72SR6.mjs} +5 -5
- package/dist/agent-chat-loader.js +1 -1
- package/dist/{chunk-IIB5BEMF.mjs → chunk-2BFZHC3S.mjs} +2 -2
- package/dist/{chunk-BFKG2OIX.mjs → chunk-3S4RAOOF.mjs} +4 -4
- package/dist/{chunk-WCBQEED7.mjs → chunk-6XN2KL76.mjs} +2 -2
- package/dist/{chunk-DTZPCOY2.mjs → chunk-FVJMVJR2.mjs} +4 -2
- package/dist/chunk-FVJMVJR2.mjs.map +1 -0
- package/dist/{chunk-4AQVKTZZ.mjs → chunk-J7NG35IU.mjs} +2 -2
- package/dist/{chunk-25QAUXI3.mjs → chunk-OTQDEU5U.mjs} +10 -9
- package/dist/chunk-OTQDEU5U.mjs.map +1 -0
- package/dist/{chunk-YGZX4CDC.mjs → chunk-QJTPXXPS.mjs} +4 -4
- package/dist/{chunk-PPMYPBGP.mjs → chunk-YGNARZGO.mjs} +10 -10
- package/dist/{embed-page-AgentDetailSideApp-L2GPADRT.js → embed-page-AgentDetailSideApp-OXIDUA5Q.js} +1 -1
- package/dist/{embed-page-AgentGovernanceWorkbench-YXVJ5FJK.js → embed-page-AgentGovernanceWorkbench-AMQYURAT.js} +1 -1
- package/dist/{embed-page-MessageGraph-IFPNLCXQ.js → embed-page-MessageGraph-3DHT34VK.js} +1 -1
- package/dist/{embed-page-ReactChart-LBU6Y2BP.js → embed-page-ReactChart-V7HF2DHF.js} +1 -1
- package/dist/{embed-page-TasksSideApp-GRQXWFJ2.js → embed-page-TasksSideApp-KTQESBCT.js} +1 -1
- package/dist/{embed-page-TopologyRuntimeView-MAQLZ4DX.js → embed-page-TopologyRuntimeView-MIDX2DWN.js} +1 -1
- package/dist/{embed-page-WorkflowAutomationView-VZPD4WA3.js → embed-page-WorkflowAutomationView-4IR6R7HJ.js} +1 -1
- package/dist/{embed-page-chunk-R4YUWCMY.js → embed-page-chunk-3KAR3CFT.js} +1 -1
- package/dist/{embed-page-chunk-2XQNSJVY.js → embed-page-chunk-6X6A2D25.js} +5 -5
- package/dist/{embed-page-chunk-7PUQYEF4.js → embed-page-chunk-CEOKXM64.js} +1 -1
- package/dist/{embed-page-chunk-BMLFBT5Q.js → embed-page-chunk-TA3SPNRO.js} +1 -1
- package/dist/{embed-page-chunk-OXQV7DZF.js → embed-page-chunk-W6NJJTMF.js} +1 -1
- package/dist/embed-page-chunk-YVQDSZ77.js +8 -0
- package/dist/embed-page.js +3 -3
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/web-app.d.mts +2 -2
- package/dist/web-app.d.ts +2 -2
- package/dist/web-app.js +7 -4
- package/dist/web-app.js.map +1 -1
- package/dist/web-app.mjs +5 -4
- package/dist/web-app.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-25QAUXI3.mjs.map +0 -1
- package/dist/chunk-DTZPCOY2.mjs.map +0 -1
- package/dist/embed-page-chunk-PNDVX33M.js +0 -8
- /package/dist/{AgentDetailSideApp-MC2QAFUQ.mjs.map → AgentDetailSideApp-KIJALOS5.mjs.map} +0 -0
- /package/dist/{AgentGovernanceWorkbench-PR2CUMHR.mjs.map → AgentGovernanceWorkbench-MQX3BH35.mjs.map} +0 -0
- /package/dist/{MessageGraph-IUDE2EDC.mjs.map → MessageGraph-6EQTQAAR.mjs.map} +0 -0
- /package/dist/{ReactChart-TPOQ6BXW.mjs.map → ReactChart-DZICSFTV.mjs.map} +0 -0
- /package/dist/{TasksSideApp-QDLOQLZS.mjs.map → TasksSideApp-CLHMMR4L.mjs.map} +0 -0
- /package/dist/{TopologyRuntimeView-JKGKNV7C.mjs.map → TopologyRuntimeView-BLBB5PQP.mjs.map} +0 -0
- /package/dist/{WorkflowAutomationView-5AJ2QGM2.mjs.map → WorkflowAutomationView-IPW72SR6.mjs.map} +0 -0
- /package/dist/{chunk-IIB5BEMF.mjs.map → chunk-2BFZHC3S.mjs.map} +0 -0
- /package/dist/{chunk-BFKG2OIX.mjs.map → chunk-3S4RAOOF.mjs.map} +0 -0
- /package/dist/{chunk-WCBQEED7.mjs.map → chunk-6XN2KL76.mjs.map} +0 -0
- /package/dist/{chunk-4AQVKTZZ.mjs.map → chunk-J7NG35IU.mjs.map} +0 -0
- /package/dist/{chunk-YGZX4CDC.mjs.map → chunk-QJTPXXPS.mjs.map} +0 -0
- /package/dist/{chunk-PPMYPBGP.mjs.map → chunk-YGNARZGO.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
AgentGraphView,
|
|
4
4
|
AgentList,
|
|
5
5
|
CreateAssistantModal_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QJTPXXPS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
WorkflowAutomationView
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3S4RAOOF.mjs";
|
|
10
10
|
import {
|
|
11
11
|
AgentChatApp,
|
|
12
12
|
AgentConfigGraph,
|
|
@@ -21,17 +21,17 @@ import {
|
|
|
21
21
|
getRoundRepresentativeScore,
|
|
22
22
|
isTrainingRound,
|
|
23
23
|
toAttachmentItems
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OTQDEU5U.mjs";
|
|
25
25
|
import "./chunk-J37GWFPA.mjs";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-J7NG35IU.mjs";
|
|
27
27
|
import {
|
|
28
28
|
WorkflowCanvas_default,
|
|
29
29
|
WorkflowNode_default
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2BFZHC3S.mjs";
|
|
31
31
|
import {
|
|
32
32
|
TenantMonitorPanel
|
|
33
33
|
} from "./chunk-IG35BEQC.mjs";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-6XN2KL76.mjs";
|
|
35
35
|
import "./chunk-3YVWKHQ2.mjs";
|
|
36
36
|
import {
|
|
37
37
|
A2AKeyList,
|
|
@@ -172,7 +172,7 @@ import {
|
|
|
172
172
|
useThreadRunStatus,
|
|
173
173
|
useVoiceRecorder,
|
|
174
174
|
useWebPush
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-YGNARZGO.mjs";
|
|
176
176
|
import {
|
|
177
177
|
ThreadMaintenancePanel
|
|
178
178
|
} from "./chunk-EA7KG3UR.mjs";
|
|
@@ -273,7 +273,7 @@ import {
|
|
|
273
273
|
useOptionalClient,
|
|
274
274
|
writeAuthItem
|
|
275
275
|
} from "./chunk-BKVZCHO4.mjs";
|
|
276
|
-
import "./chunk-
|
|
276
|
+
import "./chunk-FVJMVJR2.mjs";
|
|
277
277
|
import {
|
|
278
278
|
formatErrorMessage,
|
|
279
279
|
rootErrorMessage
|
package/dist/web-app.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AgentWebAppRuntimeClientError } from './AgentWebAppProvider-
|
|
2
|
-
export { A as AgentWebAppIdentity, b as AgentWebAppProvider, c as AgentWebAppProviderProps } from './AgentWebAppProvider-
|
|
1
|
+
import { a as AgentWebAppRuntimeClientError } from './AgentWebAppProvider-x5lVhkhO.mjs';
|
|
2
|
+
export { A as AgentWebAppIdentity, b as AgentWebAppProvider, c as AgentWebAppProviderProps } from './AgentWebAppProvider-x5lVhkhO.mjs';
|
|
3
3
|
import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
|
|
4
4
|
import { AgentWebAppBootstrap, AgentWebAppRuntimeThread, AgentWebAppRuntimeMessage, AgentWebAppInterrupt } from '@axiom-lattice/protocols';
|
|
5
5
|
export { AgentWebAppBootstrap, AgentWebAppError, AgentWebAppErrorCode, AgentWebAppInterrupt, AgentWebAppRuntimeMessage, AgentWebAppRuntimeThread, AgentWebAppStreamEvent, Message } from '@axiom-lattice/protocols';
|
package/dist/web-app.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AgentWebAppRuntimeClientError } from './AgentWebAppProvider-
|
|
2
|
-
export { A as AgentWebAppIdentity, b as AgentWebAppProvider, c as AgentWebAppProviderProps } from './AgentWebAppProvider-
|
|
1
|
+
import { a as AgentWebAppRuntimeClientError } from './AgentWebAppProvider-x5lVhkhO.js';
|
|
2
|
+
export { A as AgentWebAppIdentity, b as AgentWebAppProvider, c as AgentWebAppProviderProps } from './AgentWebAppProvider-x5lVhkhO.js';
|
|
3
3
|
import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
|
|
4
4
|
import { AgentWebAppBootstrap, AgentWebAppRuntimeThread, AgentWebAppRuntimeMessage, AgentWebAppInterrupt } from '@axiom-lattice/protocols';
|
|
5
5
|
export { AgentWebAppBootstrap, AgentWebAppError, AgentWebAppErrorCode, AgentWebAppInterrupt, AgentWebAppRuntimeMessage, AgentWebAppRuntimeThread, AgentWebAppStreamEvent, Message } from '@axiom-lattice/protocols';
|
package/dist/web-app.js
CHANGED
|
@@ -9937,11 +9937,13 @@ var AgentWebAppRuntimeClient = class {
|
|
|
9937
9937
|
this.options = options;
|
|
9938
9938
|
this.baseUrl = `${options.gatewayUrl.replace(/\/+$/, "")}/api/web-apps/${encodeURIComponent(options.webAppId)}/runtime`;
|
|
9939
9939
|
this.fetchImplementation = _nullishCoalesce(options.fetch, () => ( globalThis.fetch.bind(globalThis)));
|
|
9940
|
+
this.credentials = _nullishCoalesce(options.credentials, () => ( "omit"));
|
|
9940
9941
|
this.translate = options.translate;
|
|
9941
9942
|
}
|
|
9942
9943
|
|
|
9943
9944
|
|
|
9944
9945
|
|
|
9946
|
+
|
|
9945
9947
|
async bootstrap(selection = {}, signal) {
|
|
9946
9948
|
return this.request("bootstrap", parseBootstrap, { query: selection, signal });
|
|
9947
9949
|
}
|
|
@@ -10149,7 +10151,7 @@ var AgentWebAppRuntimeClient = class {
|
|
|
10149
10151
|
headers.set("Content-Type", "application/json");
|
|
10150
10152
|
body = JSON.stringify(options.body);
|
|
10151
10153
|
}
|
|
10152
|
-
return this.fetchImplementation(url, { method: _nullishCoalesce(options.method, () => ( "GET")), headers, body, signal: options.signal, credentials:
|
|
10154
|
+
return this.fetchImplementation(url, { method: _nullishCoalesce(options.method, () => ( "GET")), headers, body, signal: options.signal, credentials: this.credentials });
|
|
10153
10155
|
}
|
|
10154
10156
|
async throwResponseError(response) {
|
|
10155
10157
|
let value;
|
|
@@ -10576,11 +10578,11 @@ function requestModelKey(bootstrap, modelKey) {
|
|
|
10576
10578
|
}
|
|
10577
10579
|
function AgentWebAppProvider(props) {
|
|
10578
10580
|
validateProps(props);
|
|
10579
|
-
const scopeKey = `${props.gatewayUrl}\0${props.webAppId}\0${props.identity.mode === "unverified" ? props.identity.userId : "verified:token"}`;
|
|
10581
|
+
const scopeKey = `${props.gatewayUrl}\0${props.webAppId}\0${props.identity.mode === "unverified" ? props.identity.userId : "verified:token"}\0${_nullishCoalesce(props.credentials, () => ( "omit"))}`;
|
|
10580
10582
|
const locale = _nullishCoalesce(readStoredLocale(DEFAULT_LOCALE_STORAGE_KEY), () => ( "en-US"));
|
|
10581
10583
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LocaleLayerIfAbsent, { locale, storageKey: DEFAULT_LOCALE_STORAGE_KEY, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScopedAgentWebAppProvider, { ...props }, scopeKey) });
|
|
10582
10584
|
}
|
|
10583
|
-
function ScopedAgentWebAppProvider({ gatewayUrl, webAppId, identity, children, onError, fetch: fetchImplementation }) {
|
|
10585
|
+
function ScopedAgentWebAppProvider({ gatewayUrl, webAppId, identity, children, onError, fetch: fetchImplementation, credentials }) {
|
|
10584
10586
|
const t = useT();
|
|
10585
10587
|
const [state, dispatch] = _react.useReducer.call(void 0, agentWebAppReducer, initialAgentWebAppState);
|
|
10586
10588
|
const stateRef = _react.useRef.call(void 0, state);
|
|
@@ -10611,7 +10613,8 @@ function ScopedAgentWebAppProvider({ gatewayUrl, webAppId, identity, children, o
|
|
|
10611
10613
|
}
|
|
10612
10614
|
},
|
|
10613
10615
|
translate: t,
|
|
10614
|
-
...fetchImplementation ? { fetch: fetchImplementation } : {}
|
|
10616
|
+
...fetchImplementation ? { fetch: fetchImplementation } : {},
|
|
10617
|
+
...credentials ? { credentials } : {}
|
|
10615
10618
|
});
|
|
10616
10619
|
}
|
|
10617
10620
|
const client = clientRef.current;
|