@cccarv82/freya 2.3.11 → 2.3.12

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/freya.js +8 -3
  2. package/package.json +1 -1
package/bin/freya.js CHANGED
@@ -8,12 +8,11 @@ const { cmdWeb } = require('../cli/web');
8
8
  const DEFAULT_PORT = 3872;
9
9
 
10
10
  function usage() {
11
- return `
12
- FREYA web
11
+ return `FREYA web
13
12
 
14
13
  Usage:
15
14
  freya [--port <n>] [--dir <path>] [--no-open] [--dev]
16
-
15
+ freya --version | -v
17
16
  Options:
18
17
  --port <n> Port to bind (default: ${DEFAULT_PORT})
19
18
  --dir <path> Workspace directory (default: ./freya)
@@ -64,6 +63,12 @@ async function run(argv) {
64
63
  return;
65
64
  }
66
65
 
66
+ if (flags.has('--version') || flags.has('-v')) {
67
+ const pkg = require('../package.json');
68
+ process.stdout.write(`${pkg.version}\n`);
69
+ return;
70
+ }
71
+
67
72
  if (positionals.length > 0) {
68
73
  process.stderr.write(`Unknown arguments: ${positionals.join(' ')}\n`);
69
74
  process.stdout.write(usage());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cccarv82/freya",
3
- "version": "2.3.11",
3
+ "version": "2.3.12",
4
4
  "description": "Personal AI Assistant with local-first persistence",
5
5
  "scripts": {
6
6
  "health": "node scripts/validate-data.js && node scripts/validate-structure.js",