@syntrologie/runtime-sdk 2.8.0-canary.70 → 2.8.0-canary.72

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.
@@ -3456,7 +3456,7 @@ function getAntiFlickerSnippet(config = {}) {
3456
3456
  }
3457
3457
 
3458
3458
  // src/version.ts
3459
- var SDK_VERSION = "2.8.0-canary.70";
3459
+ var SDK_VERSION = "2.8.0-canary.72";
3460
3460
 
3461
3461
  // src/types.ts
3462
3462
  var SDK_SCHEMA_VERSION = "2.0";
@@ -9142,15 +9142,30 @@ function createActionEngine(options) {
9142
9142
  const handles = [];
9143
9143
  const appliedHandles = [];
9144
9144
  try {
9145
- for (const action of actions) {
9146
- const handle = await apply(action);
9147
- handles.push(handle);
9148
- appliedHandles.push(handle);
9145
+ const results = await Promise.allSettled(actions.map((action) => apply(action)));
9146
+ const errors = [];
9147
+ for (const result of results) {
9148
+ if (result.status === "fulfilled") {
9149
+ handles.push(result.value);
9150
+ appliedHandles.push(result.value);
9151
+ } else {
9152
+ errors.push(
9153
+ result.reason instanceof Error ? result.reason : new Error(String(result.reason))
9154
+ );
9155
+ }
9156
+ }
9157
+ if (errors.length > 0 && appliedHandles.length === 0) {
9158
+ throw errors[0];
9159
+ }
9160
+ if (errors.length > 0) {
9161
+ console.warn(
9162
+ `[ActionEngine] ${errors.length}/${actions.length} action(s) failed in batch:`,
9163
+ errors.map((e) => e.message).join("; ")
9164
+ );
9149
9165
  }
9150
9166
  } catch (error2) {
9151
9167
  console.error(
9152
- `[ActionEngine] Batch apply FAILED at action ${appliedHandles.length + 1}/${actions.length}.`,
9153
- `Successfully applied: ${appliedHandles.length}. Rolling back...`,
9168
+ `[ActionEngine] Batch apply FAILED. Successfully applied: ${appliedHandles.length}. Rolling back...`,
9154
9169
  error2
9155
9170
  );
9156
9171
  for (const handle of appliedHandles) {
@@ -11748,9 +11763,8 @@ var ExperimentsFetcher = class {
11748
11763
  __publicField(this, "featureKey");
11749
11764
  __publicField(this, "manifestKey");
11750
11765
  __publicField(this, "variantFlagPrefix");
11751
- var _a2;
11752
11766
  this.client = options.client;
11753
- this.featureKey = (_a2 = options.featureKey) != null ? _a2 : "smart-canvas-config";
11767
+ this.featureKey = options.featureKey;
11754
11768
  this.manifestKey = options.manifestKey;
11755
11769
  this.variantFlagPrefix = options.variantFlagPrefix;
11756
11770
  }
@@ -12403,4 +12417,4 @@ export {
12403
12417
  encodeToken,
12404
12418
  Syntro
12405
12419
  };
12406
- //# sourceMappingURL=chunk-N5OR6Q2I.js.map
12420
+ //# sourceMappingURL=chunk-GE5WQIUI.js.map