@axiom-lattice/core 4.2.13 → 4.2.15
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/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3923,6 +3923,12 @@ var InMemoryMcpServerConfigStore = class {
|
|
|
3923
3923
|
|
|
3924
3924
|
// src/store_lattice/InMemoryAgentWebAppStore.ts
|
|
3925
3925
|
var import_crypto = require("crypto");
|
|
3926
|
+
function cloneAppearance(appearance) {
|
|
3927
|
+
return {
|
|
3928
|
+
...appearance,
|
|
3929
|
+
...appearance.quickPrompts ? { quickPrompts: appearance.quickPrompts.map((prompt) => ({ ...prompt })) } : {}
|
|
3930
|
+
};
|
|
3931
|
+
}
|
|
3926
3932
|
function cloneWebApp(webApp) {
|
|
3927
3933
|
return {
|
|
3928
3934
|
...webApp,
|
|
@@ -3933,7 +3939,7 @@ function cloneWebApp(webApp) {
|
|
|
3933
3939
|
allowedModelKeys: webApp.scope.allowedModelKeys ? [...webApp.scope.allowedModelKeys] : void 0
|
|
3934
3940
|
},
|
|
3935
3941
|
features: { ...webApp.features },
|
|
3936
|
-
appearance:
|
|
3942
|
+
appearance: cloneAppearance(webApp.appearance),
|
|
3937
3943
|
identity: webApp.identity ? { policy: webApp.identity.policy, issuers: webApp.identity.issuers.map((issuer) => ({ ...issuer })) } : void 0,
|
|
3938
3944
|
createdAt: new Date(webApp.createdAt),
|
|
3939
3945
|
updatedAt: new Date(webApp.updatedAt)
|
|
@@ -3979,7 +3985,7 @@ var InMemoryAgentWebAppStore = class {
|
|
|
3979
3985
|
allowedModelKeys: input.scope.allowedModelKeys ? [...input.scope.allowedModelKeys] : void 0
|
|
3980
3986
|
},
|
|
3981
3987
|
features: { ...input.features },
|
|
3982
|
-
appearance:
|
|
3988
|
+
appearance: cloneAppearance(input.appearance),
|
|
3983
3989
|
identity: input.identity ? { policy: input.identity.policy, issuers: input.identity.issuers.map((issuer) => ({ ...issuer })) } : void 0,
|
|
3984
3990
|
createdAt: now,
|
|
3985
3991
|
updatedAt: now
|
|
@@ -4011,7 +4017,7 @@ var InMemoryAgentWebAppStore = class {
|
|
|
4011
4017
|
}
|
|
4012
4018
|
} : {},
|
|
4013
4019
|
...patch.features ? { features: { ...patch.features } } : {},
|
|
4014
|
-
...patch.appearance ? { appearance:
|
|
4020
|
+
...patch.appearance ? { appearance: cloneAppearance(patch.appearance) } : {},
|
|
4015
4021
|
...patch.identity !== void 0 ? { identity: { policy: patch.identity.policy, issuers: patch.identity.issuers.map((issuer) => ({ ...issuer })) } } : {},
|
|
4016
4022
|
...patch.status !== void 0 ? { status: patch.status } : {},
|
|
4017
4023
|
updatedAt: new Date(Math.max(Date.now(), existing.updatedAt.getTime() + 1))
|