codelocal 1.5.5 → 1.5.7
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 +29 -2
- package/bin/codelocal.js +14 -3
- package/bin/helpers/computer-darwin-amd64 +0 -0
- package/bin/helpers/computer-darwin-arm64 +0 -0
- package/bin/helpers/computer-linux-amd64 +0 -0
- package/bin/helpers/computer-linux-arm64 +0 -0
- package/bin/helpers/computer-windows-amd64.exe +0 -0
- package/bin/helpers/computer-windows-arm64.exe +0 -0
- 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 +3 -2
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Native Go local development runtime for ChatGPT.
|
|
4
4
|
|
|
5
|
+
Website: [https://codelocal.cloud](https://codelocal.cloud/)
|
|
6
|
+
|
|
5
7
|
## Install
|
|
6
8
|
|
|
7
9
|
```bash
|
|
@@ -23,10 +25,35 @@ codelocal .
|
|
|
23
25
|
codelocal
|
|
24
26
|
```
|
|
25
27
|
|
|
26
|
-
On first start, CodeLocal asks which local capabilities ChatGPT may use. Browser Automation
|
|
28
|
+
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
29
|
|
|
28
30
|
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
31
|
|
|
30
32
|
Use `codelocal status` to inspect it and `codelocal stop` to stop it.
|
|
31
33
|
|
|
32
|
-
The user only installs and starts `codelocal`; Playwright
|
|
34
|
+
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.
|
|
35
|
+
|
|
36
|
+
## Reset or uninstall
|
|
37
|
+
|
|
38
|
+
Return CodeLocal to first-time setup while keeping the CLI installed:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
codelocal reset --all
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
This stops the runtime and removes the local login, workspace grants, approvals, indexes, history, managed Chromium browser and Browser/Computer choices. Run `codelocal` afterward to start the onboarding flow again.
|
|
45
|
+
|
|
46
|
+
Remove both the local data and the globally installed npm package:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
codelocal uninstall --all
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Both commands ask for confirmation. For intentional non-interactive cleanup only, add `--yes`:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
codelocal reset --all --yes
|
|
56
|
+
codelocal uninstall --all --yes
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Operating-system privacy permissions such as macOS Accessibility and Screen Recording remain controlled by the OS and are not silently changed.
|
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
|
-
|
|
15
|
-
|
|
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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|