codelocal 1.5.3 → 1.5.5
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 +4 -2
- package/bin/codelocal.js +8 -1
- package/bin/native/codelocal-darwin-arm64 +0 -0
- package/bin/native/codelocal-darwin-x64 +0 -0
- package/bin/native/codelocal-linux-arm64 +0 -0
- package/bin/native/codelocal-linux-x64 +0 -0
- package/bin/native/codelocal-win32-arm64.exe +0 -0
- package/bin/native/codelocal-win32-x64.exe +0 -0
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -23,8 +23,10 @@ codelocal .
|
|
|
23
23
|
codelocal
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
|
|
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.
|
|
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
|
-
|
|
32
|
+
The user only installs and starts `codelocal`; Playwright is an internal dependency and does not require a separate global install command.
|
package/bin/codelocal.js
CHANGED
|
@@ -15,8 +15,15 @@ if (!file) {
|
|
|
15
15
|
console.error('CodeLocal does not have a native binary for ' + key + '.');
|
|
16
16
|
process.exit(1);
|
|
17
17
|
}
|
|
18
|
+
const packageRoot = path.resolve(__dirname, '..');
|
|
19
|
+
const playwrightCli = path.join(packageRoot, 'node_modules', '.bin', process.platform === 'win32' ? 'playwright-cli.cmd' : 'playwright-cli');
|
|
18
20
|
const binary = path.join(__dirname, 'native', file);
|
|
19
|
-
const
|
|
21
|
+
const env = {
|
|
22
|
+
...process.env,
|
|
23
|
+
CODELOCAL_PACKAGE_ROOT: packageRoot,
|
|
24
|
+
CODELOCAL_PLAYWRIGHT_CLI: process.env.CODELOCAL_PLAYWRIGHT_CLI || playwrightCli
|
|
25
|
+
};
|
|
26
|
+
const result = spawnSync(binary, process.argv.slice(2), { stdio: 'inherit', env });
|
|
20
27
|
if (result.error) {
|
|
21
28
|
console.error(result.error.message);
|
|
22
29
|
process.exit(1);
|
|
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,11 @@
|
|
|
15
18
|
"mcp",
|
|
16
19
|
"coding",
|
|
17
20
|
"local",
|
|
18
|
-
"go"
|
|
21
|
+
"go",
|
|
22
|
+
"playwright",
|
|
23
|
+
"browser-automation"
|
|
19
24
|
],
|
|
20
25
|
"license": "UNLICENSED",
|
|
21
26
|
"name": "codelocal",
|
|
22
|
-
"version": "1.5.
|
|
27
|
+
"version": "1.5.5"
|
|
23
28
|
}
|