mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-20 07:52:00 +08:00
feat: add CloudCLI computer use semantics, desktop helper packaging, and permission onboarding
This commit is contained in:
24
scripts/copy-computer-semantics-bin.mjs
Normal file
24
scripts/copy-computer-semantics-bin.mjs
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env node
|
||||
import fs from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const rootDir = path.resolve(__dirname, '..');
|
||||
const sourceDir = path.join(rootDir, 'server', 'modules', 'computer-use', 'semantics', 'bin');
|
||||
const targetDir = path.join(rootDir, 'dist-server', 'server', 'modules', 'computer-use', 'semantics', 'bin');
|
||||
|
||||
async function pathExists(filePath) {
|
||||
try {
|
||||
await fs.access(filePath);
|
||||
return true;
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (await pathExists(sourceDir)) {
|
||||
await fs.mkdir(path.dirname(targetDir), { recursive: true });
|
||||
await fs.cp(sourceDir, targetDir, { recursive: true });
|
||||
console.log(`Copied Computer Use semantic helpers to ${path.relative(rootDir, targetDir)}`);
|
||||
}
|
||||
Reference in New Issue
Block a user