flowviant 0.28.6 → 0.28.7

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.
Files changed (2) hide show
  1. package/bin/lib/config.mjs +15 -2
  2. package/package.json +1 -1
@@ -1,10 +1,23 @@
1
1
  /** Parsed configuration: env vars, CLI flags, and the chosen credentials. */
2
2
 
3
3
  import { readFileSync } from 'node:fs';
4
- import { join } from 'node:path';
4
+ import { dirname, join } from 'node:path';
5
+ import { fileURLToPath } from 'node:url';
5
6
  import { homedir } from 'node:os';
6
7
 
7
- export const VERSION = '0.28.0';
8
+ // Read the daemon's version from its OWN package.json (always shipped in the npm
9
+ // tarball) — never hardcode it. The hardcoded constant drifted: it sat at
10
+ // '0.28.0' across every release through 0.28.6, so the startup banner, the
11
+ // User-Agent the server version-gates on, and the self-update check all reported
12
+ // a stale version (and the "update available" nag never cleared).
13
+ export const VERSION = (() => {
14
+ try {
15
+ const pkgPath = join(dirname(fileURLToPath(import.meta.url)), '..', '..', 'package.json');
16
+ return JSON.parse(readFileSync(pkgPath, 'utf8')).version || '0.0.0';
17
+ } catch {
18
+ return '0.0.0';
19
+ }
20
+ })();
8
21
 
9
22
  // The model EVERY daemon Claude turn runs on — pinned so autonomous work never
10
23
  // inherits your interactive `~/.claude/settings.json` default. That matters: a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowviant",
3
- "version": "0.28.6",
3
+ "version": "0.28.7",
4
4
  "description": "Run your own Claude Code as headless build agents for Flowviant — on your own credentials. Claims dispatched work, opens PRs, captures review evidence, and routes questions back to you.",
5
5
  "type": "module",
6
6
  "bin": {