@onkernel/cli 0.12.5 → 0.13.2

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
@@ -3,7 +3,7 @@
3
3
  </p>
4
4
 
5
5
  <p align="center">
6
- <img alt="GitHub License" src="https://img.shields.io/github/license/onkernel/cli">
6
+ <img alt="GitHub License" src="https://img.shields.io/github/license/kernel/cli">
7
7
  <a href="https://discord.gg/FBrveQRcud"><img src="https://img.shields.io/discord/1342243238748225556?logo=discord&logoColor=white&color=7289DA" alt="Discord"></a>
8
8
  <a href="https://x.com/juecd__"><img src="https://img.shields.io/twitter/follow/juecd__" alt="Follow @juecd__"></a>
9
9
  <a href="https://x.com/rfgarcia"><img src="https://img.shields.io/twitter/follow/rfgarcia" alt="Follow @rfgarcia"></a>
@@ -13,7 +13,7 @@
13
13
 
14
14
  The Kernel CLI is a fast, friendly command‑line interface for Kernel — the platform that provides sandboxed, ready‑to‑use Chrome browsers for browser automations and web agents.
15
15
 
16
- Sign up at [onkernel.com](https://www.onkernel.com/) and read the [docs](https://onkernel.com/docs/introduction).
16
+ Sign up at [kernel.sh](https://www.kernel.sh/) and read the [docs](https://www.kernel.sh/docs/introduction).
17
17
 
18
18
  ## What's Kernel?
19
19
 
@@ -124,6 +124,7 @@ Create an API key from the [Kernel dashboard](https://dashboard.onkernel.com).
124
124
  - `gemini-computer-use` - Implements a Gemini computer use agent (TypeScript only)
125
125
  - `openagi-computer-use` - OpenAGI Lux computer-use models (Python only)
126
126
  - `magnitude` - Magnitude framework sample (TypeScript only)
127
+ - `claude-agent-sdk` - Claude Agent SDK browser automation agent
127
128
 
128
129
  ### App Deployment
129
130
 
@@ -149,6 +150,7 @@ Create an API key from the [Kernel dashboard](https://dashboard.onkernel.com).
149
150
 
150
151
  - `--version <version>`, `-v` - Specify app version (default: latest)
151
152
  - `--payload <json>`, `-p` - JSON payload for the action
153
+ - `--payload-file <path>`, `-f` - Read JSON payload from a file (use `-` for stdin)
152
154
  - `--sync`, `-s` - Invoke synchronously (timeout after 60s)
153
155
 
154
156
  - `kernel app list` - List deployed apps
@@ -395,6 +397,9 @@ kernel create --name my-agent --language ts --template stagehand
395
397
 
396
398
  # Create a Python Computer Use app
397
399
  kernel create --name my-cu-app --language py --template anthropic-computer-use
400
+
401
+ # Create a Claude Agent SDK app (TypeScript or Python)
402
+ kernel create --name my-claude-agent --language ts --template claude-agent-sdk
398
403
  ```
399
404
 
400
405
  ### Deploy with environment variables
@@ -419,6 +424,15 @@ kernel invoke my-scraper scrape-page
419
424
  # With JSON payload
420
425
  kernel invoke my-scraper scrape-page --payload '{"url": "https://example.com"}'
421
426
 
427
+ # Read payload from a file
428
+ kernel invoke my-scraper scrape-page --payload-file payload.json
429
+
430
+ # Read payload from stdin
431
+ cat payload.json | kernel invoke my-scraper scrape-page --payload-file -
432
+
433
+ # Pipe from another command
434
+ echo '{"url": "https://example.com"}' | kernel invoke my-scraper scrape-page -f -
435
+
422
436
  # Synchronous invoke (wait for completion)
423
437
  kernel invoke my-scraper quick-task --sync
424
438
  ```
@@ -587,15 +601,15 @@ kernel proxies delete prx_123 --yes
587
601
 
588
602
  For complete documentation, visit:
589
603
 
590
- - [📖 Documentation](https://onkernel.com/docs)
591
- - [🚀 Quickstart Guide](https://onkernel.com/docs/quickstart)
592
- - [📋 CLI Reference](https://onkernel.com/docs/reference/cli)
604
+ - [📖 Documentation](https://www.kernel.sh/docs)
605
+ - [🚀 Quickstart Guide](https://www.kernel.sh/docs/quickstart)
606
+ - [📋 CLI Reference](https://www.kernel.sh/docs/reference/cli)
593
607
 
594
608
  ## Support
595
609
 
596
610
  - [Discord Community](https://discord.gg/kernel)
597
611
  - [GitHub Issues](https://github.com/onkernel/kernel/issues)
598
- - [Documentation](https://onkernel.com/docs)
612
+ - [Documentation](https://www.kernel.sh/docs)
599
613
 
600
614
  ---
601
615
 
package/lib.js CHANGED
@@ -6,8 +6,11 @@ const path = require("path");
6
6
  const JSZip = require("jszip");
7
7
  const tar = require("tar");
8
8
  const axios = require("axios");
9
+ const { ProxyAgent } = require("proxy-agent");
9
10
  const { spawnSync } = require("child_process");
10
11
 
12
+ const agent = new ProxyAgent();
13
+
11
14
  const getArchive = () => {
12
15
  let target = `${process.platform}-${process.arch}`;
13
16
  const archive = archives[target];
@@ -180,6 +183,8 @@ const download = async (url, filename) => {
180
183
  url: url,
181
184
  responseType: "stream",
182
185
  timeout: 300000, // 5min
186
+ httpAgent: agent,
187
+ httpsAgent: agent,
183
188
  });
184
189
 
185
190
  const writer = fs.createWriteStream(filename);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onkernel/cli",
3
- "version": "0.12.5",
3
+ "version": "0.13.2",
4
4
  "description": "Kernel CLI",
5
5
  "scripts": {
6
6
  "postinstall": "node install.js",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/onkernel"
11
+ "url": "https://github.com/kernel"
12
12
  },
13
13
  "keywords": [
14
14
  "kernel",
@@ -17,91 +17,92 @@
17
17
  "automation",
18
18
  "ai"
19
19
  ],
20
- "author": "Rafael Garcia \u003craf@onkernel.com\u003e",
20
+ "author": "Rafael Garcia \u003craf@kernel.sh\u003e",
21
21
  "license": "MIT",
22
22
  "bugs": {
23
- "url": "https://github.com/onkernel/cli/issues"
23
+ "url": "https://github.com/kernel/cli/issues"
24
24
  },
25
- "homepage": "https://onkernel.com/docs",
25
+ "homepage": "https://www.kernel.sh/docs",
26
26
  "bin": {
27
27
  "kernel": "run-kernel.js"
28
28
  },
29
29
  "dependencies": {
30
30
  "axios": "^1.8.2",
31
31
  "jszip": "^3.10.1",
32
+ "proxy-agent": "^6.5.0",
32
33
  "tar": "^7.4.3"
33
34
  },
34
35
  "archives": {
35
36
  "darwin-arm64": {
36
- "name": "kernel_0.12.5_darwin_arm64.tar.gz",
37
- "url": "https://github.com/onkernel/cli/releases/download/v0.12.5/kernel_0.12.5_darwin_arm64.tar.gz",
37
+ "name": "kernel_0.13.2_darwin_arm64.tar.gz",
38
+ "url": "https://github.com/kernel/cli/releases/download/v0.13.2/kernel_0.13.2_darwin_arm64.tar.gz",
38
39
  "bins": [
39
40
  "kernel"
40
41
  ],
41
42
  "format": "tar.gz",
42
43
  "checksum": {
43
44
  "algorithm": "sha256",
44
- "digest": "c3fd976390d0600ebf908d3f4ea14ae61ae6b0e5253d9dc5601f611431dbd92b"
45
+ "digest": "15c719b1fcaa54d25ffed5de121e23330d1cd7cc91cd9b865bbdaff6ebed0af0"
45
46
  }
46
47
  },
47
48
  "darwin-x64": {
48
- "name": "kernel_0.12.5_darwin_amd64.tar.gz",
49
- "url": "https://github.com/onkernel/cli/releases/download/v0.12.5/kernel_0.12.5_darwin_amd64.tar.gz",
49
+ "name": "kernel_0.13.2_darwin_amd64.tar.gz",
50
+ "url": "https://github.com/kernel/cli/releases/download/v0.13.2/kernel_0.13.2_darwin_amd64.tar.gz",
50
51
  "bins": [
51
52
  "kernel"
52
53
  ],
53
54
  "format": "tar.gz",
54
55
  "checksum": {
55
56
  "algorithm": "sha256",
56
- "digest": "2da74a5117d7f40da7f03dda1851ec3cccd3ee76a212076e09ac742e1338ab23"
57
+ "digest": "44487d6dc6b0bfac6a61753bf75e7a4e4ed632a58490e94c7ff7e7a0eafbfb1b"
57
58
  }
58
59
  },
59
60
  "linux-arm64": {
60
- "name": "kernel_0.12.5_linux_arm64.tar.gz",
61
- "url": "https://github.com/onkernel/cli/releases/download/v0.12.5/kernel_0.12.5_linux_arm64.tar.gz",
61
+ "name": "kernel_0.13.2_linux_arm64.tar.gz",
62
+ "url": "https://github.com/kernel/cli/releases/download/v0.13.2/kernel_0.13.2_linux_arm64.tar.gz",
62
63
  "bins": [
63
64
  "kernel"
64
65
  ],
65
66
  "format": "tar.gz",
66
67
  "checksum": {
67
68
  "algorithm": "sha256",
68
- "digest": "bf4ab67206e06fee17a81647dea1efaa715e3ded8fa73623d44180314e827679"
69
+ "digest": "38d7624857851834715e4ab9934633248db27d634c92900608057685985cb8cc"
69
70
  }
70
71
  },
71
72
  "linux-x64": {
72
- "name": "kernel_0.12.5_linux_amd64.tar.gz",
73
- "url": "https://github.com/onkernel/cli/releases/download/v0.12.5/kernel_0.12.5_linux_amd64.tar.gz",
73
+ "name": "kernel_0.13.2_linux_amd64.tar.gz",
74
+ "url": "https://github.com/kernel/cli/releases/download/v0.13.2/kernel_0.13.2_linux_amd64.tar.gz",
74
75
  "bins": [
75
76
  "kernel"
76
77
  ],
77
78
  "format": "tar.gz",
78
79
  "checksum": {
79
80
  "algorithm": "sha256",
80
- "digest": "f8601a4022f03955330e61e18941c3a850ead115ca733e404ea36fe96dea4647"
81
+ "digest": "131c8f293137c2d31eb44681d43b2c72cc1be1376bf9e5da491662c06f1c510d"
81
82
  }
82
83
  },
83
84
  "win32-arm64": {
84
- "name": "kernel_0.12.5_windows_arm64.tar.gz",
85
- "url": "https://github.com/onkernel/cli/releases/download/v0.12.5/kernel_0.12.5_windows_arm64.tar.gz",
85
+ "name": "kernel_0.13.2_windows_arm64.tar.gz",
86
+ "url": "https://github.com/kernel/cli/releases/download/v0.13.2/kernel_0.13.2_windows_arm64.tar.gz",
86
87
  "bins": [
87
88
  "kernel.exe"
88
89
  ],
89
90
  "format": "tar.gz",
90
91
  "checksum": {
91
92
  "algorithm": "sha256",
92
- "digest": "620976d2996c4aa7c788a05963ea9c3f354174032d2e5567b18528cb610f09f1"
93
+ "digest": "2b1fd91095cfc0d6b657d8e34dceb79d429973ce73724046ef5aa9e915ae6121"
93
94
  }
94
95
  },
95
96
  "win32-x64": {
96
- "name": "kernel_0.12.5_windows_amd64.tar.gz",
97
- "url": "https://github.com/onkernel/cli/releases/download/v0.12.5/kernel_0.12.5_windows_amd64.tar.gz",
97
+ "name": "kernel_0.13.2_windows_amd64.tar.gz",
98
+ "url": "https://github.com/kernel/cli/releases/download/v0.13.2/kernel_0.13.2_windows_amd64.tar.gz",
98
99
  "bins": [
99
100
  "kernel.exe"
100
101
  ],
101
102
  "format": "tar.gz",
102
103
  "checksum": {
103
104
  "algorithm": "sha256",
104
- "digest": "066ae752703b5632fee5694cb3c24154ee8e3aa91cbe9895862d8f0ce9e5ce93"
105
+ "digest": "576d5994ba0c06da5d16fc91921f9be79ba0407d1c64ac14cb639ac371e64cf4"
105
106
  }
106
107
  }
107
108
  }
package/run-kernel.js CHANGED
@@ -3,4 +3,4 @@
3
3
  // This file was generated by GoReleaser. DO NOT EDIT.
4
4
 
5
5
  const { run } = require("./lib.js");
6
- run("kernel");
6
+ run("kernel").then((code) => process.exit(code));