@floless/app 0.9.0 → 0.9.1

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.
@@ -52357,7 +52357,7 @@ function appVersion() {
52357
52357
  return resolveVersion({
52358
52358
  isSea: isSea2(),
52359
52359
  sqVersionXml: readSqVersionXml(),
52360
- define: true ? "0.9.0" : void 0,
52360
+ define: true ? "0.9.1" : void 0,
52361
52361
  pkgVersion: readPkgVersion()
52362
52362
  });
52363
52363
  }
@@ -52367,7 +52367,7 @@ function resolveChannel(s) {
52367
52367
  return "dev";
52368
52368
  }
52369
52369
  function appChannel() {
52370
- return resolveChannel({ isSea: isSea2(), define: true ? "0.9.0" : void 0 });
52370
+ return resolveChannel({ isSea: isSea2(), define: true ? "0.9.1" : void 0 });
52371
52371
  }
52372
52372
 
52373
52373
  // oauth-presets.ts
@@ -52406,13 +52406,23 @@ function managedProfileYaml(preset) {
52406
52406
  function oauthDir() {
52407
52407
  return process.env.AWARE_HOME ? (0, import_node_path6.join)(process.env.AWARE_HOME, "oauth") : (0, import_node_path6.join)((0, import_node_os6.homedir)(), ".aware", "oauth");
52408
52408
  }
52409
+ function isUpgradableLegacyProfile(existing, preset) {
52410
+ if (existing.startsWith(MANAGED_HEADER)) return false;
52411
+ const content = existing.split("\n").map((l) => l.trim()).filter((l) => l.length > 0 && !l.startsWith("#"));
52412
+ const only = content.length === 1 ? content[0] : void 0;
52413
+ if (only === void 0) return false;
52414
+ const m = /^client_id\s*:\s*(.+?)\s*$/.exec(only);
52415
+ return m !== null && m[1] === preset.clientId;
52416
+ }
52409
52417
  function ensureManagedProfile(id) {
52410
52418
  const preset = OAUTH_PRESETS[id];
52411
52419
  if (!preset) return "not-managed";
52412
52420
  const dir = oauthDir();
52413
52421
  const file = (0, import_node_path6.join)(dir, `${id}.yaml`);
52414
52422
  const existing = (0, import_node_fs7.existsSync)(file) ? (0, import_node_fs7.readFileSync)(file, "utf8") : null;
52415
- if (existing !== null && !existing.startsWith(MANAGED_HEADER)) return "skipped";
52423
+ if (existing !== null && !existing.startsWith(MANAGED_HEADER) && !isUpgradableLegacyProfile(existing, preset)) {
52424
+ return "skipped";
52425
+ }
52416
52426
  const desired = managedProfileYaml(preset);
52417
52427
  if (existing === desired) return "unchanged";
52418
52428
  (0, import_node_fs7.mkdirSync)(dir, { recursive: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floless/app",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "description": "Thin localhost host for floless.app — serves web/ and shells the aware CLI. No engine, no LLM.",
6
6
  "bin": {