upfynai-code 2.8.4 → 2.8.5

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/cli.js +8 -2
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -1,6 +1,9 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  import { Command } from 'commander';
4
+ import { readFileSync } from 'fs';
5
+ import { dirname, join } from 'path';
6
+ import { fileURLToPath } from 'url';
4
7
  import { login, logout, status } from '../src/auth.js';
5
8
  import { openHosted, startLocal } from '../src/launch.js';
6
9
  import { connect } from '../src/connect.js';
@@ -8,12 +11,15 @@ import { mcp } from '../src/mcp.js';
8
11
  import { readConfig, writeConfig, clearConfig, DEFAULTS, displayUrl } from '../src/config.js';
9
12
  import chalk from 'chalk';
10
13
 
14
+ const __dirname = dirname(fileURLToPath(import.meta.url));
15
+ const pkg = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8'));
16
+
11
17
  const program = new Command();
12
18
 
13
19
  program
14
20
  .name('upfynai-code')
15
21
  .description('Launch Upfyn AI coding environment from your terminal')
16
- .version('2.6.7')
22
+ .version(pkg.version)
17
23
  .option('--local', 'Start a local server instead of opening the hosted app')
18
24
  .action(async (options) => {
19
25
  if (options.local) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "upfynai-code",
3
- "version": "2.8.4",
3
+ "version": "2.8.5",
4
4
  "description": "Unified AI coding interface — access AI chat, terminal, file explorer, git, and visual canvas from any browser. Connect your local machine and code from anywhere.",
5
5
  "type": "module",
6
6
  "bin": {