@axiom-lattice/core 4.2.13 → 4.2.14

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.mjs CHANGED
@@ -1971,6 +1971,12 @@ var InMemoryMcpServerConfigStore = class {
1971
1971
 
1972
1972
  // src/store_lattice/InMemoryAgentWebAppStore.ts
1973
1973
  import { randomUUID } from "crypto";
1974
+ function cloneAppearance(appearance) {
1975
+ return {
1976
+ ...appearance,
1977
+ ...appearance.quickPrompts ? { quickPrompts: appearance.quickPrompts.map((prompt) => ({ ...prompt })) } : {}
1978
+ };
1979
+ }
1974
1980
  function cloneWebApp(webApp) {
1975
1981
  return {
1976
1982
  ...webApp,
@@ -1981,7 +1987,7 @@ function cloneWebApp(webApp) {
1981
1987
  allowedModelKeys: webApp.scope.allowedModelKeys ? [...webApp.scope.allowedModelKeys] : void 0
1982
1988
  },
1983
1989
  features: { ...webApp.features },
1984
- appearance: { ...webApp.appearance },
1990
+ appearance: cloneAppearance(webApp.appearance),
1985
1991
  identity: webApp.identity ? { policy: webApp.identity.policy, issuers: webApp.identity.issuers.map((issuer) => ({ ...issuer })) } : void 0,
1986
1992
  createdAt: new Date(webApp.createdAt),
1987
1993
  updatedAt: new Date(webApp.updatedAt)
@@ -2027,7 +2033,7 @@ var InMemoryAgentWebAppStore = class {
2027
2033
  allowedModelKeys: input.scope.allowedModelKeys ? [...input.scope.allowedModelKeys] : void 0
2028
2034
  },
2029
2035
  features: { ...input.features },
2030
- appearance: { ...input.appearance },
2036
+ appearance: cloneAppearance(input.appearance),
2031
2037
  identity: input.identity ? { policy: input.identity.policy, issuers: input.identity.issuers.map((issuer) => ({ ...issuer })) } : void 0,
2032
2038
  createdAt: now,
2033
2039
  updatedAt: now
@@ -2059,7 +2065,7 @@ var InMemoryAgentWebAppStore = class {
2059
2065
  }
2060
2066
  } : {},
2061
2067
  ...patch.features ? { features: { ...patch.features } } : {},
2062
- ...patch.appearance ? { appearance: { ...patch.appearance } } : {},
2068
+ ...patch.appearance ? { appearance: cloneAppearance(patch.appearance) } : {},
2063
2069
  ...patch.identity !== void 0 ? { identity: { policy: patch.identity.policy, issuers: patch.identity.issuers.map((issuer) => ({ ...issuer })) } } : {},
2064
2070
  ...patch.status !== void 0 ? { status: patch.status } : {},
2065
2071
  updatedAt: new Date(Math.max(Date.now(), existing.updatedAt.getTime() + 1))