@uniformdev/context 19.76.0 → 19.77.1-alpha.47

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,4 +1,4 @@
1
- import { av as paths$7, N as ManifestV2 } from '../types-a88088c8.js';
1
+ import { av as paths$7, N as ManifestV2 } from '../types-9c370116.js';
2
2
  import 'mitt';
3
3
 
4
4
  type LimitPolicy = <ReturnValue>(func: () => Promise<ReturnValue>) => Promise<ReturnValue>;
package/dist/api/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { av as paths$7, N as ManifestV2 } from '../types-a88088c8.js';
1
+ import { av as paths$7, N as ManifestV2 } from '../types-9c370116.js';
2
2
  import 'mitt';
3
3
 
4
4
  type LimitPolicy = <ReturnValue>(func: () => Promise<ReturnValue>) => Promise<ReturnValue>;
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as OutputSeverity, L as LogDrain, C as ContextPlugin, S as ScoreVector, A as AggregateDimension, T as TransitionDataStore, a as StorageCommands, V as VisitorData, b as TransitionDataStoreOptions, D as DecayFunction, c as CriteriaEvaluator, d as StringMatch, e as VariantMatchCriteria, f as LogMessage } from './types-a88088c8.js';
2
- export { _ as AggregateDimensionInput, a4 as BehaviorTag, g as CONTEXTUAL_EDITING_TEST_NAME, h as CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID, m as Context, k as ContextEvents, l as ContextInstance, i as ContextOptions, at as ContextState, au as ContextStateUpdate, J as CriteriaEvaluatorParameters, I as CriteriaEvaluatorResult, ak as DecayOptions, p as DevToolsActions, t as DevToolsDataEvent, q as DevToolsEvent, r as DevToolsEvents, x as DevToolsForgetEvent, u as DevToolsHelloEvent, s as DevToolsLogEvent, w as DevToolsRawCommandsEvent, o as DevToolsState, n as DevToolsUiVersion, v as DevToolsUpdateEvent, a1 as DimensionMatch, X as EnrichmentCategory, aq as EnrichmentData, ar as EventData, H as GroupCriteriaEvaluator, af as IdentifyCommand, F as LogMessageGroup, E as LogMessageSingle, y as LogMessages, G as ManifestInstance, N as ManifestV2, M as MessageCategory, B as MessageFunc, aa as ModifyScoreCommand, ab as ModifySessionScoreCommand, Y as NumberMatch, P as PersonalizationEvent, Q as PersonalizationManifest, a2 as PersonalizeOptions, a6 as PersonalizedResult, a5 as PersonalizedVariant, ao as Quirks, ai as SERVER_STATE_ID, ah as ServerToClientTransitionState, ac as SetConsentCommand, ag as SetControlGroupCommand, ad as SetQuirkCommand, ae as SetTestCommand, z as Severity, R as Signal, W as SignalCriteria, U as SignalCriteriaGroup, K as SignalData, a9 as StorageCommand, Z as TestDefinition, j as TestEvent, $ as TestOptions, a8 as TestResult, a7 as TestVariant, ap as Tests, aj as TransitionDataStoreEvents, an as VisitorDataStore, am as VisitorDataStoreEvents, al as VisitorDataStoreOptions, as as emptyVisitorData, a3 as personalizeVariations, a0 as testVariations } from './types-a88088c8.js';
1
+ import { O as OutputSeverity, L as LogDrain, C as ContextPlugin, S as ScoreVector, A as AggregateDimension, T as TransitionDataStore, a as StorageCommands, V as VisitorData, b as TransitionDataStoreOptions, D as DecayFunction, c as CriteriaEvaluator, d as StringMatch, e as VariantMatchCriteria, f as LogMessage, g as DevToolsEvents } from './types-9c370116.js';
2
+ export { _ as AggregateDimensionInput, a4 as BehaviorTag, h as CONTEXTUAL_EDITING_TEST_NAME, i as CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID, n as Context, l as ContextEvents, m as ContextInstance, j as ContextOptions, at as ContextState, au as ContextStateUpdate, J as CriteriaEvaluatorParameters, I as CriteriaEvaluatorResult, ak as DecayOptions, q as DevToolsActions, t as DevToolsDataEvent, r as DevToolsEvent, x as DevToolsForgetEvent, u as DevToolsHelloEvent, s as DevToolsLogEvent, w as DevToolsRawCommandsEvent, p as DevToolsState, o as DevToolsUiVersion, v as DevToolsUpdateEvent, a1 as DimensionMatch, X as EnrichmentCategory, aq as EnrichmentData, ar as EventData, H as GroupCriteriaEvaluator, af as IdentifyCommand, F as LogMessageGroup, E as LogMessageSingle, y as LogMessages, G as ManifestInstance, N as ManifestV2, M as MessageCategory, B as MessageFunc, aa as ModifyScoreCommand, ab as ModifySessionScoreCommand, Y as NumberMatch, P as PersonalizationEvent, Q as PersonalizationManifest, a2 as PersonalizeOptions, a6 as PersonalizedResult, a5 as PersonalizedVariant, ao as Quirks, ai as SERVER_STATE_ID, ah as ServerToClientTransitionState, ac as SetConsentCommand, ag as SetControlGroupCommand, ad as SetQuirkCommand, ae as SetTestCommand, z as Severity, R as Signal, W as SignalCriteria, U as SignalCriteriaGroup, K as SignalData, a9 as StorageCommand, Z as TestDefinition, k as TestEvent, $ as TestOptions, a8 as TestResult, a7 as TestVariant, ap as Tests, aj as TransitionDataStoreEvents, an as VisitorDataStore, am as VisitorDataStoreEvents, al as VisitorDataStoreOptions, as as emptyVisitorData, a3 as personalizeVariations, a0 as testVariations } from './types-9c370116.js';
3
3
  import Cookies from 'js-cookie';
4
4
  import 'mitt';
5
5
 
@@ -126,13 +126,16 @@ declare function enableDebugConsoleLogDrain(level: OutputSeverity, options?: Con
126
126
 
127
127
  declare function evaluateVariantMatch(variantId: string, match: VariantMatchCriteria | undefined | null, vec: ScoreVector, onLogMessage?: (message: LogMessage) => void): boolean;
128
128
 
129
+ type ContextDevToolOptions = {
130
+ onAfterMessageReceived?: (message: DevToolsEvents) => void;
131
+ };
129
132
  /**
130
133
  * Enables a Context instance to feed data to the Uniform Context DevTools.
131
134
  * DevTools can be hosted either as a Chromium extension, or as a standalone
132
135
  * React app within a page and receive data once this plugin has been activated.
133
136
  * @returns Function that when invoked detaches the event listeners and disables DevTools.
134
137
  */
135
- declare function enableContextDevTools(): ContextPlugin;
138
+ declare function enableContextDevTools(options?: ContextDevToolOptions): ContextPlugin;
136
139
 
137
140
  declare enum ScriptType {
138
141
  ListStart = "nesi-list-start",
@@ -160,4 +163,4 @@ type QuickConnectConfig = {
160
163
  declare function serializeQuickConnect(config: QuickConnectConfig): string;
161
164
  declare function parseQuickConnect(serialized: string): Required<QuickConnectConfig>;
162
165
 
163
- export { AggregateDimension, ConsoleDebugLogDrainOptions, ContextPlugin, CookieTransitionDataStore, CookieTransitionDataStoreOptions, CriteriaEvaluator, DecayFunction, EdgeNodeTagName, EdgePersonalizeComponentOptions, EdgeTestComponentOptions, EdgeTransitionDataStore, EdgeTransitionDataStoreOptions, LinearDecayOptions, LogDrain, LogMessage, OutputSeverity, QuickConnectConfig, ScoreVector, ScriptType, StorageCommands, StringMatch, TransitionDataStore, TransitionDataStoreOptions, UNIFORM_DEFAULT_COOKIE_NAME, VariantMatchCriteria, VisitorData, computeAggregateDimensions, cookieEvaluator, createConsoleLogDrain, createDebugConsoleLogDrain, createLinearDecay, currentPageEvaluator, enableConsoleLogDrain, enableContextDevTools, enableDebugConsoleLogDrain, evaluateVariantMatch, eventEvaluator, explainStringMatch, explainStringMatchCriteria, getEnrichmentVectorKey, isStringMatch, pageViewCountDimension, pageViewCountEvaluator, parseQuickConnect, queryStringEvaluator, quirkEvaluator, serializeQuickConnect };
166
+ export { AggregateDimension, ConsoleDebugLogDrainOptions, ContextDevToolOptions, ContextPlugin, CookieTransitionDataStore, CookieTransitionDataStoreOptions, CriteriaEvaluator, DecayFunction, DevToolsEvents, EdgeNodeTagName, EdgePersonalizeComponentOptions, EdgeTestComponentOptions, EdgeTransitionDataStore, EdgeTransitionDataStoreOptions, LinearDecayOptions, LogDrain, LogMessage, OutputSeverity, QuickConnectConfig, ScoreVector, ScriptType, StorageCommands, StringMatch, TransitionDataStore, TransitionDataStoreOptions, UNIFORM_DEFAULT_COOKIE_NAME, VariantMatchCriteria, VisitorData, computeAggregateDimensions, cookieEvaluator, createConsoleLogDrain, createDebugConsoleLogDrain, createLinearDecay, currentPageEvaluator, enableConsoleLogDrain, enableContextDevTools, enableDebugConsoleLogDrain, evaluateVariantMatch, eventEvaluator, explainStringMatch, explainStringMatchCriteria, getEnrichmentVectorKey, isStringMatch, pageViewCountDimension, pageViewCountEvaluator, parseQuickConnect, queryStringEvaluator, quirkEvaluator, serializeQuickConnect };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as OutputSeverity, L as LogDrain, C as ContextPlugin, S as ScoreVector, A as AggregateDimension, T as TransitionDataStore, a as StorageCommands, V as VisitorData, b as TransitionDataStoreOptions, D as DecayFunction, c as CriteriaEvaluator, d as StringMatch, e as VariantMatchCriteria, f as LogMessage } from './types-a88088c8.js';
2
- export { _ as AggregateDimensionInput, a4 as BehaviorTag, g as CONTEXTUAL_EDITING_TEST_NAME, h as CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID, m as Context, k as ContextEvents, l as ContextInstance, i as ContextOptions, at as ContextState, au as ContextStateUpdate, J as CriteriaEvaluatorParameters, I as CriteriaEvaluatorResult, ak as DecayOptions, p as DevToolsActions, t as DevToolsDataEvent, q as DevToolsEvent, r as DevToolsEvents, x as DevToolsForgetEvent, u as DevToolsHelloEvent, s as DevToolsLogEvent, w as DevToolsRawCommandsEvent, o as DevToolsState, n as DevToolsUiVersion, v as DevToolsUpdateEvent, a1 as DimensionMatch, X as EnrichmentCategory, aq as EnrichmentData, ar as EventData, H as GroupCriteriaEvaluator, af as IdentifyCommand, F as LogMessageGroup, E as LogMessageSingle, y as LogMessages, G as ManifestInstance, N as ManifestV2, M as MessageCategory, B as MessageFunc, aa as ModifyScoreCommand, ab as ModifySessionScoreCommand, Y as NumberMatch, P as PersonalizationEvent, Q as PersonalizationManifest, a2 as PersonalizeOptions, a6 as PersonalizedResult, a5 as PersonalizedVariant, ao as Quirks, ai as SERVER_STATE_ID, ah as ServerToClientTransitionState, ac as SetConsentCommand, ag as SetControlGroupCommand, ad as SetQuirkCommand, ae as SetTestCommand, z as Severity, R as Signal, W as SignalCriteria, U as SignalCriteriaGroup, K as SignalData, a9 as StorageCommand, Z as TestDefinition, j as TestEvent, $ as TestOptions, a8 as TestResult, a7 as TestVariant, ap as Tests, aj as TransitionDataStoreEvents, an as VisitorDataStore, am as VisitorDataStoreEvents, al as VisitorDataStoreOptions, as as emptyVisitorData, a3 as personalizeVariations, a0 as testVariations } from './types-a88088c8.js';
1
+ import { O as OutputSeverity, L as LogDrain, C as ContextPlugin, S as ScoreVector, A as AggregateDimension, T as TransitionDataStore, a as StorageCommands, V as VisitorData, b as TransitionDataStoreOptions, D as DecayFunction, c as CriteriaEvaluator, d as StringMatch, e as VariantMatchCriteria, f as LogMessage, g as DevToolsEvents } from './types-9c370116.js';
2
+ export { _ as AggregateDimensionInput, a4 as BehaviorTag, h as CONTEXTUAL_EDITING_TEST_NAME, i as CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID, n as Context, l as ContextEvents, m as ContextInstance, j as ContextOptions, at as ContextState, au as ContextStateUpdate, J as CriteriaEvaluatorParameters, I as CriteriaEvaluatorResult, ak as DecayOptions, q as DevToolsActions, t as DevToolsDataEvent, r as DevToolsEvent, x as DevToolsForgetEvent, u as DevToolsHelloEvent, s as DevToolsLogEvent, w as DevToolsRawCommandsEvent, p as DevToolsState, o as DevToolsUiVersion, v as DevToolsUpdateEvent, a1 as DimensionMatch, X as EnrichmentCategory, aq as EnrichmentData, ar as EventData, H as GroupCriteriaEvaluator, af as IdentifyCommand, F as LogMessageGroup, E as LogMessageSingle, y as LogMessages, G as ManifestInstance, N as ManifestV2, M as MessageCategory, B as MessageFunc, aa as ModifyScoreCommand, ab as ModifySessionScoreCommand, Y as NumberMatch, P as PersonalizationEvent, Q as PersonalizationManifest, a2 as PersonalizeOptions, a6 as PersonalizedResult, a5 as PersonalizedVariant, ao as Quirks, ai as SERVER_STATE_ID, ah as ServerToClientTransitionState, ac as SetConsentCommand, ag as SetControlGroupCommand, ad as SetQuirkCommand, ae as SetTestCommand, z as Severity, R as Signal, W as SignalCriteria, U as SignalCriteriaGroup, K as SignalData, a9 as StorageCommand, Z as TestDefinition, k as TestEvent, $ as TestOptions, a8 as TestResult, a7 as TestVariant, ap as Tests, aj as TransitionDataStoreEvents, an as VisitorDataStore, am as VisitorDataStoreEvents, al as VisitorDataStoreOptions, as as emptyVisitorData, a3 as personalizeVariations, a0 as testVariations } from './types-9c370116.js';
3
3
  import Cookies from 'js-cookie';
4
4
  import 'mitt';
5
5
 
@@ -126,13 +126,16 @@ declare function enableDebugConsoleLogDrain(level: OutputSeverity, options?: Con
126
126
 
127
127
  declare function evaluateVariantMatch(variantId: string, match: VariantMatchCriteria | undefined | null, vec: ScoreVector, onLogMessage?: (message: LogMessage) => void): boolean;
128
128
 
129
+ type ContextDevToolOptions = {
130
+ onAfterMessageReceived?: (message: DevToolsEvents) => void;
131
+ };
129
132
  /**
130
133
  * Enables a Context instance to feed data to the Uniform Context DevTools.
131
134
  * DevTools can be hosted either as a Chromium extension, or as a standalone
132
135
  * React app within a page and receive data once this plugin has been activated.
133
136
  * @returns Function that when invoked detaches the event listeners and disables DevTools.
134
137
  */
135
- declare function enableContextDevTools(): ContextPlugin;
138
+ declare function enableContextDevTools(options?: ContextDevToolOptions): ContextPlugin;
136
139
 
137
140
  declare enum ScriptType {
138
141
  ListStart = "nesi-list-start",
@@ -160,4 +163,4 @@ type QuickConnectConfig = {
160
163
  declare function serializeQuickConnect(config: QuickConnectConfig): string;
161
164
  declare function parseQuickConnect(serialized: string): Required<QuickConnectConfig>;
162
165
 
163
- export { AggregateDimension, ConsoleDebugLogDrainOptions, ContextPlugin, CookieTransitionDataStore, CookieTransitionDataStoreOptions, CriteriaEvaluator, DecayFunction, EdgeNodeTagName, EdgePersonalizeComponentOptions, EdgeTestComponentOptions, EdgeTransitionDataStore, EdgeTransitionDataStoreOptions, LinearDecayOptions, LogDrain, LogMessage, OutputSeverity, QuickConnectConfig, ScoreVector, ScriptType, StorageCommands, StringMatch, TransitionDataStore, TransitionDataStoreOptions, UNIFORM_DEFAULT_COOKIE_NAME, VariantMatchCriteria, VisitorData, computeAggregateDimensions, cookieEvaluator, createConsoleLogDrain, createDebugConsoleLogDrain, createLinearDecay, currentPageEvaluator, enableConsoleLogDrain, enableContextDevTools, enableDebugConsoleLogDrain, evaluateVariantMatch, eventEvaluator, explainStringMatch, explainStringMatchCriteria, getEnrichmentVectorKey, isStringMatch, pageViewCountDimension, pageViewCountEvaluator, parseQuickConnect, queryStringEvaluator, quirkEvaluator, serializeQuickConnect };
166
+ export { AggregateDimension, ConsoleDebugLogDrainOptions, ContextDevToolOptions, ContextPlugin, CookieTransitionDataStore, CookieTransitionDataStoreOptions, CriteriaEvaluator, DecayFunction, DevToolsEvents, EdgeNodeTagName, EdgePersonalizeComponentOptions, EdgeTestComponentOptions, EdgeTransitionDataStore, EdgeTransitionDataStoreOptions, LinearDecayOptions, LogDrain, LogMessage, OutputSeverity, QuickConnectConfig, ScoreVector, ScriptType, StorageCommands, StringMatch, TransitionDataStore, TransitionDataStoreOptions, UNIFORM_DEFAULT_COOKIE_NAME, VariantMatchCriteria, VisitorData, computeAggregateDimensions, cookieEvaluator, createConsoleLogDrain, createDebugConsoleLogDrain, createLinearDecay, currentPageEvaluator, enableConsoleLogDrain, enableContextDevTools, enableDebugConsoleLogDrain, evaluateVariantMatch, eventEvaluator, explainStringMatch, explainStringMatchCriteria, getEnrichmentVectorKey, isStringMatch, pageViewCountDimension, pageViewCountEvaluator, parseQuickConnect, queryStringEvaluator, quirkEvaluator, serializeQuickConnect };
package/dist/index.esm.js CHANGED
@@ -1624,7 +1624,7 @@ calculateScores_fn = function(newData) {
1624
1624
 
1625
1625
  // src/devTools/enableContextDevTools.ts
1626
1626
  var isBrowser = typeof top !== "undefined";
1627
- function enableContextDevTools() {
1627
+ function enableContextDevTools(options) {
1628
1628
  return {
1629
1629
  logDrain: (message) => {
1630
1630
  if (!isBrowser) {
@@ -1677,7 +1677,11 @@ function enableContextDevTools() {
1677
1677
  return;
1678
1678
  }
1679
1679
  const message = event.data;
1680
- await handleMessageFromDevTools(message, context);
1680
+ await handleMessageFromDevTools({
1681
+ message,
1682
+ context,
1683
+ afterMessageReceived: options == null ? void 0 : options.onAfterMessageReceived
1684
+ });
1681
1685
  });
1682
1686
  } catch (e) {
1683
1687
  console.warn(
@@ -1707,16 +1711,27 @@ function enableContextDevTools() {
1707
1711
  }
1708
1712
  };
1709
1713
  }
1710
- async function handleMessageFromDevTools(message, context) {
1714
+ async function handleMessageFromDevTools({
1715
+ message,
1716
+ context,
1717
+ afterMessageReceived
1718
+ }) {
1719
+ let receivedUniformMessage = false;
1711
1720
  if (message.type === "uniform-in:context:update" && message.newData) {
1721
+ receivedUniformMessage = true;
1712
1722
  await context.update(message.newData);
1713
1723
  }
1714
1724
  if (message.type === "uniform-in:context:commands" && message.commands && Array.isArray(message.commands)) {
1725
+ receivedUniformMessage = true;
1715
1726
  await context.storage.updateData(message.commands);
1716
1727
  }
1717
1728
  if (message.type === "uniform-in:context:forget") {
1729
+ receivedUniformMessage = true;
1718
1730
  await context.forget(false);
1719
1731
  }
1732
+ if (receivedUniformMessage && typeof afterMessageReceived === "function") {
1733
+ afterMessageReceived(message);
1734
+ }
1720
1735
  }
1721
1736
 
1722
1737
  // src/edge/index.ts
package/dist/index.js CHANGED
@@ -1694,7 +1694,7 @@ calculateScores_fn = function(newData) {
1694
1694
 
1695
1695
  // src/devTools/enableContextDevTools.ts
1696
1696
  var isBrowser = typeof top !== "undefined";
1697
- function enableContextDevTools() {
1697
+ function enableContextDevTools(options) {
1698
1698
  return {
1699
1699
  logDrain: (message) => {
1700
1700
  if (!isBrowser) {
@@ -1747,7 +1747,11 @@ function enableContextDevTools() {
1747
1747
  return;
1748
1748
  }
1749
1749
  const message = event.data;
1750
- await handleMessageFromDevTools(message, context);
1750
+ await handleMessageFromDevTools({
1751
+ message,
1752
+ context,
1753
+ afterMessageReceived: options == null ? void 0 : options.onAfterMessageReceived
1754
+ });
1751
1755
  });
1752
1756
  } catch (e) {
1753
1757
  console.warn(
@@ -1777,16 +1781,27 @@ function enableContextDevTools() {
1777
1781
  }
1778
1782
  };
1779
1783
  }
1780
- async function handleMessageFromDevTools(message, context) {
1784
+ async function handleMessageFromDevTools({
1785
+ message,
1786
+ context,
1787
+ afterMessageReceived
1788
+ }) {
1789
+ let receivedUniformMessage = false;
1781
1790
  if (message.type === "uniform-in:context:update" && message.newData) {
1791
+ receivedUniformMessage = true;
1782
1792
  await context.update(message.newData);
1783
1793
  }
1784
1794
  if (message.type === "uniform-in:context:commands" && message.commands && Array.isArray(message.commands)) {
1795
+ receivedUniformMessage = true;
1785
1796
  await context.storage.updateData(message.commands);
1786
1797
  }
1787
1798
  if (message.type === "uniform-in:context:forget") {
1799
+ receivedUniformMessage = true;
1788
1800
  await context.forget(false);
1789
1801
  }
1802
+ if (receivedUniformMessage && typeof afterMessageReceived === "function") {
1803
+ afterMessageReceived(message);
1804
+ }
1790
1805
  }
1791
1806
 
1792
1807
  // src/edge/index.ts
package/dist/index.mjs CHANGED
@@ -1624,7 +1624,7 @@ calculateScores_fn = function(newData) {
1624
1624
 
1625
1625
  // src/devTools/enableContextDevTools.ts
1626
1626
  var isBrowser = typeof top !== "undefined";
1627
- function enableContextDevTools() {
1627
+ function enableContextDevTools(options) {
1628
1628
  return {
1629
1629
  logDrain: (message) => {
1630
1630
  if (!isBrowser) {
@@ -1677,7 +1677,11 @@ function enableContextDevTools() {
1677
1677
  return;
1678
1678
  }
1679
1679
  const message = event.data;
1680
- await handleMessageFromDevTools(message, context);
1680
+ await handleMessageFromDevTools({
1681
+ message,
1682
+ context,
1683
+ afterMessageReceived: options == null ? void 0 : options.onAfterMessageReceived
1684
+ });
1681
1685
  });
1682
1686
  } catch (e) {
1683
1687
  console.warn(
@@ -1707,16 +1711,27 @@ function enableContextDevTools() {
1707
1711
  }
1708
1712
  };
1709
1713
  }
1710
- async function handleMessageFromDevTools(message, context) {
1714
+ async function handleMessageFromDevTools({
1715
+ message,
1716
+ context,
1717
+ afterMessageReceived
1718
+ }) {
1719
+ let receivedUniformMessage = false;
1711
1720
  if (message.type === "uniform-in:context:update" && message.newData) {
1721
+ receivedUniformMessage = true;
1712
1722
  await context.update(message.newData);
1713
1723
  }
1714
1724
  if (message.type === "uniform-in:context:commands" && message.commands && Array.isArray(message.commands)) {
1725
+ receivedUniformMessage = true;
1715
1726
  await context.storage.updateData(message.commands);
1716
1727
  }
1717
1728
  if (message.type === "uniform-in:context:forget") {
1729
+ receivedUniformMessage = true;
1718
1730
  await context.forget(false);
1719
1731
  }
1732
+ if (receivedUniformMessage && typeof afterMessageReceived === "function") {
1733
+ afterMessageReceived(message);
1734
+ }
1720
1735
  }
1721
1736
 
1722
1737
  // src/edge/index.ts