💬 Commit message: Update 2026-02-08 04:14:33, 6 files, 36 lines

📁 Files changed: 6
📝 Lines changed: 36

  • cli.js
  • cli.js.map
  • mcp.js
  • mcp.js.map
  • cli.ts
  • mcp.ts
This commit is contained in:
Adam Ladachowski
2026-02-08 04:14:33 +01:00
parent 647aeb819d
commit df37c89e49
6 changed files with 28 additions and 8 deletions
Vendored
+6 -2
View File
@@ -1,9 +1,13 @@
#!/usr/bin/env node
import { resolve } from 'node:path';
import { readFileSync } from 'node:fs';
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { parseArgs } from 'node:util';
import { ClaudeBrowser } from './browser.js';
import * as image from './image.js';
import { startServer } from './server.js';
const __dirname = dirname(fileURLToPath(import.meta.url));
const pkg = JSON.parse(readFileSync(resolve(__dirname, '../package.json'), 'utf-8'));
const { values, positionals } = parseArgs({
allowPositionals: true,
options: {
@@ -223,7 +227,7 @@ async function runBrowserMode() {
}
async function main() {
if (values.version) {
console.log('claude-browse 0.1.0');
console.log(`claude-browse ${pkg.version}`);
process.exit(0);
}
if (values.help) {