@syntrologie/runtime-sdk 2.7.0-canary.3 → 2.7.0

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.
@@ -19285,7 +19285,7 @@ var SyntrologieSDK = (() => {
19285
19285
  }
19286
19286
 
19287
19287
  // src/version.ts
19288
- var SDK_VERSION = "2.7.0-canary.3";
19288
+ var SDK_VERSION = "2.7.0";
19289
19289
 
19290
19290
  // src/types.ts
19291
19291
  var SDK_SCHEMA_VERSION = "2.0";
@@ -19559,9 +19559,8 @@ var SyntrologieSDK = (() => {
19559
19559
  var getActiveSdkMode = () => {
19560
19560
  const conf = getEditorConf();
19561
19561
  const source = getEditorSource();
19562
- if (!source?.token || !conf) return null;
19563
- if (conf.mode === "editor" || conf.mode === "audit" || conf.mode === "review") return conf.mode;
19564
- return null;
19562
+ if (!source?.token || !conf?.mode) return null;
19563
+ return conf.mode;
19565
19564
  };
19566
19565
  function getToken() {
19567
19566
  return getEditorSource()?.token ?? null;
@@ -38985,39 +38984,6 @@ ${cssRules}
38985
38984
  }
38986
38985
  return void 0;
38987
38986
  }
38988
- function isEditorMode() {
38989
- if (typeof window === "undefined") {
38990
- debug("Syntro Bootstrap", "isEditorMode: not in browser");
38991
- return false;
38992
- }
38993
- const conf = getEditorConf();
38994
- const source = getEditorSource();
38995
- const isEditor = !!(source?.token && conf?.mode === "editor");
38996
- debug("Syntro Bootstrap", "isEditorMode:", isEditor);
38997
- return isEditor;
38998
- }
38999
- function isAuditMode() {
39000
- if (typeof window === "undefined") {
39001
- debug("Syntro Bootstrap", "isAuditMode: not in browser");
39002
- return false;
39003
- }
39004
- const conf = getEditorConf();
39005
- const source = getEditorSource();
39006
- const isAudit = !!(source?.token && conf?.mode === "audit");
39007
- debug("Syntro Bootstrap", "isAuditMode:", isAudit);
39008
- return isAudit;
39009
- }
39010
- function isReviewMode() {
39011
- if (typeof window === "undefined") {
39012
- debug("Syntro Bootstrap", "isReviewMode: not in browser");
39013
- return false;
39014
- }
39015
- const conf = getEditorConf();
39016
- const source = getEditorSource();
39017
- const isReview = !!(source?.token && conf?.mode === "review");
39018
- debug("Syntro Bootstrap", "isReviewMode:", isReview);
39019
- return isReview;
39020
- }
39021
38987
  var SEGMENT_CACHE_KEY = "syntro_segment_attributes";
39022
38988
  function loadCachedSegmentAttributes() {
39023
38989
  if (typeof window === "undefined") return {};
@@ -39098,13 +39064,8 @@ ${cssRules}
39098
39064
  tokenPrefix: `${options.token?.slice(0, 15)}...`,
39099
39065
  hasCanvasOptions: !!options.canvas
39100
39066
  });
39101
- const editorMode = isEditorMode();
39102
- const auditMode = isAuditMode();
39103
- const reviewMode = isReviewMode();
39104
- const sdkMode = editorMode ? "editor" : auditMode ? "audit" : reviewMode ? "review" : null;
39105
- console.log(
39106
- `[DIAG] Mode detection: editor=${editorMode}, audit=${auditMode}, review=${reviewMode}, sdkMode=${sdkMode}`
39107
- );
39067
+ const sdkMode = getActiveSdkMode();
39068
+ console.log(`[DIAG] Mode detection: sdkMode=${sdkMode}`);
39108
39069
  console.log(`[DIAG] editorSource:`, getEditorSource());
39109
39070
  console.log(`[DIAG] editorConf:`, getEditorConf());
39110
39071
  debug("Syntro Bootstrap", "SDK mode:", sdkMode ?? "normal");
@@ -39221,8 +39182,8 @@ ${cssRules}
39221
39182
  });
39222
39183
  debug("Syntro Bootstrap", "SessionMetricTracker created");
39223
39184
  let runtimeMode = "production";
39224
- if (editorMode) runtimeMode = "editor";
39225
- else if (auditMode) runtimeMode = "audit";
39185
+ if (sdkMode === "editor") runtimeMode = "editor";
39186
+ else if (sdkMode === "audit") runtimeMode = "audit";
39226
39187
  else if (getEnvVar("NODE_ENV") === "development") runtimeMode = "development";
39227
39188
  const runtime7 = createSmartCanvasRuntime({
39228
39189
  telemetry,
@@ -39386,7 +39347,7 @@ ${cssRules}
39386
39347
  }
39387
39348
 
39388
39349
  // src/index.ts
39389
- var RUNTIME_SDK_BUILD = true ? `${"2026-03-08T17:05:19.784Z"} (${"635be6c569"})` : "dev";
39350
+ var RUNTIME_SDK_BUILD = true ? `${"2026-03-08T22:29:47.958Z"} (${"c824504ba1"})` : "dev";
39390
39351
  if (typeof window !== "undefined") {
39391
39352
  console.log(`[Syntro Runtime] Build: ${RUNTIME_SDK_BUILD}`);
39392
39353
  const existing = window.SynOS;