@syntrologie/runtime-sdk 2.8.0-canary.82 → 2.8.0-canary.83

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.
@@ -20723,7 +20723,7 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
20723
20723
  }
20724
20724
 
20725
20725
  // src/version.ts
20726
- var SDK_VERSION = "2.8.0-canary.82";
20726
+ var SDK_VERSION = "2.8.0-canary.83";
20727
20727
 
20728
20728
  // src/types.ts
20729
20729
  var SDK_SCHEMA_VERSION = "2.0";
@@ -24409,21 +24409,9 @@ ${cssRules}
24409
24409
  const updateUrl = () => setLocalUrl(window.location.href);
24410
24410
  window.addEventListener("popstate", updateUrl);
24411
24411
  window.addEventListener("hashchange", updateUrl);
24412
- const originalPushState = history.pushState;
24413
- const originalReplaceState = history.replaceState;
24414
- history.pushState = function(...args) {
24415
- originalPushState.apply(this, args);
24416
- queueMicrotask(updateUrl);
24417
- };
24418
- history.replaceState = function(...args) {
24419
- originalReplaceState.apply(this, args);
24420
- queueMicrotask(updateUrl);
24421
- };
24422
24412
  return () => {
24423
24413
  window.removeEventListener("popstate", updateUrl);
24424
24414
  window.removeEventListener("hashchange", updateUrl);
24425
- history.pushState = originalPushState;
24426
- history.replaceState = originalReplaceState;
24427
24415
  };
24428
24416
  }, [runtime7]);
24429
24417
  const derivedFetcher = (0, import_react16.useMemo)(() => {
@@ -24465,7 +24453,11 @@ ${cssRules}
24465
24453
  const stale = () => version !== runVersionRef.current;
24466
24454
  const run = async () => {
24467
24455
  if (pendingRevertRef.current) {
24468
- await pendingRevertRef.current;
24456
+ try {
24457
+ await pendingRevertRef.current;
24458
+ } catch (err) {
24459
+ console.error("[SmartCanvasApp] Pending revert failed:", err);
24460
+ }
24469
24461
  pendingRevertRef.current = null;
24470
24462
  }
24471
24463
  if (batchHandleRef.current) {
@@ -38536,7 +38528,7 @@ ${cssRules}
38536
38528
  state: entry.state
38537
38529
  }));
38538
38530
  }
38539
- function destroy() {
38531
+ async function destroy() {
38540
38532
  for (const unsubs of conditionalUnsubs.values()) {
38541
38533
  for (const unsub of unsubs) {
38542
38534
  try {
@@ -38546,16 +38538,27 @@ ${cssRules}
38546
38538
  }
38547
38539
  }
38548
38540
  conditionalUnsubs.clear();
38541
+ const cleanupPromises = [];
38549
38542
  for (const entry of activeActions.values()) {
38550
38543
  if (entry.state === "applied") {
38551
38544
  try {
38552
- entry.cleanup();
38545
+ const result = entry.cleanup();
38546
+ if (result && typeof result.then === "function") {
38547
+ cleanupPromises.push(
38548
+ result.catch((error2) => {
38549
+ console.error(`[ActionEngine] Error during async cleanup:`, error2);
38550
+ })
38551
+ );
38552
+ }
38553
38553
  } catch (error2) {
38554
38554
  console.error(`[ActionEngine] Error during cleanup:`, error2);
38555
38555
  }
38556
38556
  }
38557
38557
  }
38558
38558
  activeActions.clear();
38559
+ if (cleanupPromises.length > 0) {
38560
+ await Promise.all(cleanupPromises);
38561
+ }
38559
38562
  }
38560
38563
  return {
38561
38564
  apply,
@@ -42237,7 +42240,7 @@ ${cssRules}
42237
42240
  }
42238
42241
 
42239
42242
  // src/index.ts
42240
- var RUNTIME_SDK_BUILD = true ? `${"2026-04-15T20:36:38.211Z"} (${"141225872b6"})` : "dev";
42243
+ var RUNTIME_SDK_BUILD = true ? `${"2026-04-16T00:06:35.234Z"} (${"019a80d9d19"})` : "dev";
42241
42244
  if (typeof window !== "undefined") {
42242
42245
  console.log(`[Syntro Runtime] Build: ${RUNTIME_SDK_BUILD}`);
42243
42246
  const existing = window.SynOS;