open-design/apps
Mason cc6da191e8
fix(version): resolve daemon package.json from any compiled layout (#537)
Settings -> About used to display 0.0.0 in packaged builds because
`readCurrentAppVersionInfo` resolved `'../package.json'` relative to
`import.meta.url`, which only points at the daemon package root from the
flat CLI build (`dist/app-version.js`). The sidecar build emits
`dist/src/app-version.js`, where the same relative path lands on the
non-existent `dist/package.json`, so `readPackageMetadata` returned null
and the version fell back to APP_VERSION_FALLBACK.

Walk up from `import.meta.url` to find the nearest real `package.json`
instead, so the daemon reports its actual version regardless of whether
it runs from TypeScript source (tools-dev), the flat CLI dist, or the
nested sidecar dist used by the packaged desktop app. The OD_APP_VERSION
env still wins inside `resolveAppVersionInfo`, so callers that already
inject it (mac/win packagers) keep working.

Also write `appVersion` into the Linux packaged config so Linux follows
the same env-injection path as mac/win and stays consistent with the new
fallback resolution.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-05 22:02:05 +08:00
..
daemon fix(version): resolve daemon package.json from any compiled layout (#537) 2026-05-05 22:02:05 +08:00
desktop Add live artifacts and Composio connector catalog (#381) 2026-05-05 16:42:11 +08:00
landing-page feat(skills): open-design-landing rename, kami skills, landing OG (#428) 2026-05-04 19:22:46 +08:00
packaged chore: enforce test directory conventions (#496) 2026-05-05 15:34:22 +08:00
web Add Tweaks mode for HTML previews with picker, pod selection, and batched chat attachments (#513) 2026-05-05 21:09:20 +08:00
AGENTS.md chore: enforce test directory conventions (#496) 2026-05-05 15:34:22 +08:00