codelocal 1.5.4 → 1.5.6

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.
package/README.md CHANGED
@@ -23,8 +23,10 @@ codelocal .
23
23
  codelocal
24
24
  ```
25
25
 
26
- The Go runtime pairs this machine on first use, syncs authorized workspaces, then waits for ChatGPT. One machine runs one runtime; multiple workspaces activate lazily inside it.
26
+ On first start, CodeLocal asks which local capabilities ChatGPT may use. Browser Automation lets ChatGPT inspect and interact with websites in an isolated session; if enabled, CodeLocal downloads one managed Chromium browser and shows the install progress before starting. Coding works without this optional download. Computer Use remains a separate opt-in capability and uses the native helper already bundled for the current operating system, so it does not trigger another browser download.
27
+
28
+ The Go runtime then pairs this machine if needed, syncs authorized workspaces, and waits for ChatGPT. One machine runs one runtime; multiple workspaces activate lazily inside it.
27
29
 
28
30
  Use `codelocal status` to inspect it and `codelocal stop` to stop it.
29
31
 
30
- This npm package contains compiled native binaries only. CodeLocal source code and the Cloud backend are not distributed in the package.
32
+ Use `codelocal setup` to change either choice later and `codelocal doctor` to inspect Browser/Computer readiness. The user only installs and starts `codelocal`; Playwright and native Computer Use helpers are internal package details and do not require separate install commands.
package/bin/codelocal.js CHANGED
@@ -10,13 +10,31 @@ const files = {
10
10
  'win32-x64': 'codelocal-win32-x64.exe',
11
11
  'win32-arm64': 'codelocal-win32-arm64.exe'
12
12
  };
13
+ const helperFiles = {
14
+ 'darwin-arm64': 'computer-darwin-arm64',
15
+ 'darwin-x64': 'computer-darwin-amd64',
16
+ 'linux-arm64': 'computer-linux-arm64',
17
+ 'linux-x64': 'computer-linux-amd64',
18
+ 'win32-x64': 'computer-windows-amd64.exe',
19
+ 'win32-arm64': 'computer-windows-arm64.exe'
20
+ };
13
21
  const file = files[key];
14
- if (!file) {
15
- console.error('CodeLocal does not have a native binary for ' + key + '.');
22
+ const helperFile = helperFiles[key];
23
+ if (!file || !helperFile) {
24
+ console.error('CodeLocal does not have native binaries for ' + key + '.');
16
25
  process.exit(1);
17
26
  }
27
+ const packageRoot = path.resolve(__dirname, '..');
28
+ const playwrightCli = path.join(packageRoot, 'node_modules', '.bin', process.platform === 'win32' ? 'playwright-cli.cmd' : 'playwright-cli');
18
29
  const binary = path.join(__dirname, 'native', file);
19
- const result = spawnSync(binary, process.argv.slice(2), { stdio: 'inherit', env: process.env });
30
+ const computerHelper = path.join(__dirname, 'helpers', helperFile);
31
+ const env = {
32
+ ...process.env,
33
+ CODELOCAL_PACKAGE_ROOT: packageRoot,
34
+ CODELOCAL_PLAYWRIGHT_CLI: process.env.CODELOCAL_PLAYWRIGHT_CLI || playwrightCli,
35
+ CODELOCAL_COMPUTER_HELPER: process.env.CODELOCAL_COMPUTER_HELPER || computerHelper
36
+ };
37
+ const result = spawnSync(binary, process.argv.slice(2), { stdio: 'inherit', env });
20
38
  if (result.error) {
21
39
  console.error(result.error.message);
22
40
  process.exit(1);
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -2,6 +2,9 @@
2
2
  "bin": {
3
3
  "codelocal": "bin/codelocal.js"
4
4
  },
5
+ "dependencies": {
6
+ "@playwright/cli": "0.1.17"
7
+ },
5
8
  "description": "Native Go runtime that securely connects ChatGPT to local development workspaces.",
6
9
  "engines": {
7
10
  "node": "\u003e=20"
@@ -15,9 +18,12 @@
15
18
  "mcp",
16
19
  "coding",
17
20
  "local",
18
- "go"
21
+ "go",
22
+ "playwright",
23
+ "browser-automation",
24
+ "computer-use"
19
25
  ],
20
26
  "license": "UNLICENSED",
21
27
  "name": "codelocal",
22
- "version": "1.5.4"
28
+ "version": "1.5.6"
23
29
  }