claude-remote-cli 1.1.0 → 1.1.1

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.
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import path from 'node:path';
3
3
  import fs from 'node:fs';
4
- import { createRequire } from 'node:module';
4
+ import { fileURLToPath } from 'node:url';
5
5
  import * as service from '../server/service.js';
6
6
  import { DEFAULTS } from '../server/config.js';
7
- const require = createRequire(import.meta.url);
7
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
8
8
  // Parse CLI flags
9
9
  const args = process.argv.slice(2);
10
10
  if (args.includes('--help') || args.includes('-h')) {
@@ -26,7 +26,7 @@ Options:
26
26
  process.exit(0);
27
27
  }
28
28
  if (args.includes('--version') || args.includes('-v')) {
29
- const pkg = require('../package.json');
29
+ const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../../package.json'), 'utf-8'));
30
30
  console.log(pkg.version);
31
31
  process.exit(0);
32
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-remote-cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Remote web interface for Claude Code CLI sessions",
5
5
  "type": "module",
6
6
  "main": "dist/server/index.js",