@kurlo/cli 2.2.4 → 2.2.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 +12 -0
- package/bin/kurlo.js +3 -2
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -7,6 +7,18 @@ npm install -g @kurlo/cli
|
|
|
7
7
|
kurlo --version
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
+
### `EACCES: permission denied` on `npm install -g`
|
|
11
|
+
|
|
12
|
+
npm could not write to the folder that holds global packages. It happens with Node from the nodejs.org installer, which puts that folder in `/usr/local`, owned by the system. It is not specific to Kurlo, and any global package fails the same way. Either skip the install and run the CLI with `npx -y @kurlo/cli`, or move global packages into your home folder once:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
mkdir -p ~/.npm-global && npm config set prefix ~/.npm-global
|
|
16
|
+
echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
|
|
17
|
+
npm install -g @kurlo/cli
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Node installed with Homebrew, Volta or nvm keeps global packages in your home folder already. Avoid `sudo npm install -g`: it works, but leaves root-owned files that break later installs.
|
|
21
|
+
|
|
10
22
|
## Connect an AI agent
|
|
11
23
|
|
|
12
24
|
Claude Code:
|
package/bin/kurlo.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import { spawnSync } from 'node:child_process';
|
|
3
|
+
import { createRequire } from 'node:module';
|
|
3
4
|
|
|
4
|
-
const
|
|
5
|
+
const require = createRequire(import.meta.url);
|
|
5
6
|
|
|
6
7
|
const platforms = {
|
|
7
8
|
'darwin arm64': '@kurlo/darwin-arm64',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kurlo/cli",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
4
4
|
"description": "Kurlo's command line: run API collections in CI and serve them to AI agents over MCP.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"directory": "npm/cli"
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
|
+
"type": "module",
|
|
23
24
|
"bin": {
|
|
24
25
|
"kurlo": "bin/kurlo.js"
|
|
25
26
|
},
|
|
@@ -34,11 +35,11 @@
|
|
|
34
35
|
"access": "public"
|
|
35
36
|
},
|
|
36
37
|
"optionalDependencies": {
|
|
37
|
-
"@kurlo/darwin-arm64": "2.2.
|
|
38
|
-
"@kurlo/darwin-x64": "2.2.
|
|
39
|
-
"@kurlo/linux-arm64": "2.2.
|
|
40
|
-
"@kurlo/linux-x64": "2.2.
|
|
41
|
-
"@kurlo/win32-arm64": "2.2.
|
|
42
|
-
"@kurlo/win32-x64": "2.2.
|
|
38
|
+
"@kurlo/darwin-arm64": "2.2.6",
|
|
39
|
+
"@kurlo/darwin-x64": "2.2.6",
|
|
40
|
+
"@kurlo/linux-arm64": "2.2.6",
|
|
41
|
+
"@kurlo/linux-x64": "2.2.6",
|
|
42
|
+
"@kurlo/win32-arm64": "2.2.6",
|
|
43
|
+
"@kurlo/win32-x64": "2.2.6"
|
|
43
44
|
}
|
|
44
45
|
}
|