Computer use CLI for AI agents
Rust accessibilityaccessibility-apiai-agentsautomationclicomputer-usecomputer-use-agentcomputer-use-agentsdesktop-automationmacosmcprust
ci: validate npm package metadata
Lahfirb782c03b5b63
diff --git a/npm/package.json b/npm/package.jsonindex 584d210cc..c3e61682c 100644--- a/npm/package.json+++ b/npm/package.json@@ -5,11 +5,11 @@"license": "Apache-2.0","repository": {"type": "git",- "url": "https://github.com/lahfir/agent-desktop.git"+ "url": "git+https://github.com/lahfir/agent-desktop.git"},"homepage": "https://github.com/lahfir/agent-desktop","bin": {- "agent-desktop": "./bin/agent-desktop.js"+ "agent-desktop": "bin/agent-desktop.js"},"scripts": {"postinstall": "node scripts/postinstall.js"diff --git a/scripts/check-npm-package.js b/scripts/check-npm-package.jsindex ef230f833..407c825e9 100644--- a/scripts/check-npm-package.js+++ b/scripts/check-npm-package.js@@ -5,12 +5,21 @@ const { join } = require('path');const root = join(__dirname, '..');const npmDir = join(root, 'npm');+const pkg = require(join(npmDir, 'package.json'));const expectedFiles = ['bin/agent-desktop.js','package.json','scripts/postinstall.js',];+if (pkg.bin?.['agent-desktop'] !== 'bin/agent-desktop.js') {+ throw new Error('npm bin path must be bin/agent-desktop.js');+}++if (pkg.repository?.url !== 'git+https://github.com/lahfir/agent-desktop.git') {+ throw new Error('npm repository URL must be normalized for npm publish');+}+const output = execFileSync('npm', ['pack', '--dry-run', '--json'], {cwd: npmDir,encoding: 'utf8',