codelocal 1.5.5 → 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,10 +23,10 @@ codelocal .
23
23
  codelocal
24
24
  ```
25
25
 
26
- On first start, CodeLocal asks which local capabilities ChatGPT may use. Browser Automation is powered by the Playwright CLI dependency that ships with CodeLocal; if enabled, CodeLocal prepares its managed browser automatically before starting the runtime. Computer Use remains a separate opt-in capability.
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
27
 
28
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.
29
29
 
30
30
  Use `codelocal status` to inspect it and `codelocal stop` to stop it.
31
31
 
32
- The user only installs and starts `codelocal`; Playwright is an internal dependency and does not require a separate global install command.
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,18 +10,29 @@ 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
  }
18
27
  const packageRoot = path.resolve(__dirname, '..');
19
28
  const playwrightCli = path.join(packageRoot, 'node_modules', '.bin', process.platform === 'win32' ? 'playwright-cli.cmd' : 'playwright-cli');
20
29
  const binary = path.join(__dirname, 'native', file);
30
+ const computerHelper = path.join(__dirname, 'helpers', helperFile);
21
31
  const env = {
22
32
  ...process.env,
23
33
  CODELOCAL_PACKAGE_ROOT: packageRoot,
24
- CODELOCAL_PLAYWRIGHT_CLI: process.env.CODELOCAL_PLAYWRIGHT_CLI || playwrightCli
34
+ CODELOCAL_PLAYWRIGHT_CLI: process.env.CODELOCAL_PLAYWRIGHT_CLI || playwrightCli,
35
+ CODELOCAL_COMPUTER_HELPER: process.env.CODELOCAL_COMPUTER_HELPER || computerHelper
25
36
  };
26
37
  const result = spawnSync(binary, process.argv.slice(2), { stdio: 'inherit', env });
27
38
  if (result.error) {
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -20,9 +20,10 @@
20
20
  "local",
21
21
  "go",
22
22
  "playwright",
23
- "browser-automation"
23
+ "browser-automation",
24
+ "computer-use"
24
25
  ],
25
26
  "license": "UNLICENSED",
26
27
  "name": "codelocal",
27
- "version": "1.5.5"
28
+ "version": "1.5.6"
28
29
  }