@venturewild/workspace 0.1.3 → 0.1.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venturewild/workspace",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Claude Code Web — Replit/Lovable-style chat-first browser UI that wraps the AI agent already installed on your machine.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -299,4 +299,16 @@ export function buildConfig(overrides = {}) {
299
299
  };
300
300
  }
301
301
 
302
- export const APP_VERSION = '0.1.0';
302
+ // Read from package.json (the single source of truth) so the reported version
303
+ // can never drift from the published release — `npm version` bumps it for free.
304
+ // This previously hardcoded '0.1.0', so every release (0.1.1/0.1.2/0.1.3) shipped
305
+ // a stale version to `--version`, /api/health, doctor, and all telemetry.
306
+ function readAppVersion() {
307
+ try {
308
+ const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../../package.json'), 'utf8'));
309
+ return pkg.version || '0.0.0';
310
+ } catch {
311
+ return '0.0.0';
312
+ }
313
+ }
314
+ export const APP_VERSION = readAppVersion();