@trops/dash-core 0.1.363 → 0.1.364

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.
@@ -71993,9 +71993,13 @@ async function prepareWidgetForPublish$1(appId, packageId, options = {}) {
71993
71993
  };
71994
71994
  }
71995
71995
  const pkgJson = JSON.parse(fs.readFileSync(pkgJsonPath, "utf8"));
71996
+ // Scope resolution: the caller's registry username always wins. The
71997
+ // package.json may use a local naming convention (e.g. `@ai-built/…`
71998
+ // for AI-generated widgets) but the registry only allows publishing
71999
+ // under the authenticated user's scope. `options.scope` is honored
72000
+ // only if explicitly provided (e.g. for future org publishing).
71996
72001
  const parsedName = parsePackageName(pkgJson.name || "");
71997
- const resolvedScope =
71998
- options.scope || parsedName.scope || widget.scope || callerScope;
72002
+ const resolvedScope = options.scope || callerScope;
71999
72003
 
72000
72004
  // 4. Compute + persist new version
72001
72005
  const previousVersion = pkgJson.version || "1.0.0";