@onkernel/cli 0.13.1 → 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.
Files changed (2) hide show
  1. package/README.md +10 -0
  2. package/package.json +19 -19
package/README.md CHANGED
@@ -150,6 +150,7 @@ Create an API key from the [Kernel dashboard](https://dashboard.onkernel.com).
150
150
 
151
151
  - `--version <version>`, `-v` - Specify app version (default: latest)
152
152
  - `--payload <json>`, `-p` - JSON payload for the action
153
+ - `--payload-file <path>`, `-f` - Read JSON payload from a file (use `-` for stdin)
153
154
  - `--sync`, `-s` - Invoke synchronously (timeout after 60s)
154
155
 
155
156
  - `kernel app list` - List deployed apps
@@ -423,6 +424,15 @@ kernel invoke my-scraper scrape-page
423
424
  # With JSON payload
424
425
  kernel invoke my-scraper scrape-page --payload '{"url": "https://example.com"}'
425
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
+
426
436
  # Synchronous invoke (wait for completion)
427
437
  kernel invoke my-scraper quick-task --sync
428
438
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onkernel/cli",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "Kernel CLI",
5
5
  "scripts": {
6
6
  "postinstall": "node install.js",
@@ -34,75 +34,75 @@
34
34
  },
35
35
  "archives": {
36
36
  "darwin-arm64": {
37
- "name": "kernel_0.13.1_darwin_arm64.tar.gz",
38
- "url": "https://github.com/kernel/cli/releases/download/v0.13.1/kernel_0.13.1_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",
39
39
  "bins": [
40
40
  "kernel"
41
41
  ],
42
42
  "format": "tar.gz",
43
43
  "checksum": {
44
44
  "algorithm": "sha256",
45
- "digest": "660a6f7dc37391e975185f9309b9cfd4c142a3997b72224855ce326a7733cc20"
45
+ "digest": "15c719b1fcaa54d25ffed5de121e23330d1cd7cc91cd9b865bbdaff6ebed0af0"
46
46
  }
47
47
  },
48
48
  "darwin-x64": {
49
- "name": "kernel_0.13.1_darwin_amd64.tar.gz",
50
- "url": "https://github.com/kernel/cli/releases/download/v0.13.1/kernel_0.13.1_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",
51
51
  "bins": [
52
52
  "kernel"
53
53
  ],
54
54
  "format": "tar.gz",
55
55
  "checksum": {
56
56
  "algorithm": "sha256",
57
- "digest": "19f8e2d330d3f1a54714b12267bf76220919a61c38f46aa2d33087b1fbef49d5"
57
+ "digest": "44487d6dc6b0bfac6a61753bf75e7a4e4ed632a58490e94c7ff7e7a0eafbfb1b"
58
58
  }
59
59
  },
60
60
  "linux-arm64": {
61
- "name": "kernel_0.13.1_linux_arm64.tar.gz",
62
- "url": "https://github.com/kernel/cli/releases/download/v0.13.1/kernel_0.13.1_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",
63
63
  "bins": [
64
64
  "kernel"
65
65
  ],
66
66
  "format": "tar.gz",
67
67
  "checksum": {
68
68
  "algorithm": "sha256",
69
- "digest": "18581682ac0161ed045366960e0d7bcc0baf8fb72f1ed57a80ad16c44fd8d471"
69
+ "digest": "38d7624857851834715e4ab9934633248db27d634c92900608057685985cb8cc"
70
70
  }
71
71
  },
72
72
  "linux-x64": {
73
- "name": "kernel_0.13.1_linux_amd64.tar.gz",
74
- "url": "https://github.com/kernel/cli/releases/download/v0.13.1/kernel_0.13.1_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",
75
75
  "bins": [
76
76
  "kernel"
77
77
  ],
78
78
  "format": "tar.gz",
79
79
  "checksum": {
80
80
  "algorithm": "sha256",
81
- "digest": "948e2494b099ae491ef744b8d21ec5b892ebb5488723f1dd7751a8371ceb7a5a"
81
+ "digest": "131c8f293137c2d31eb44681d43b2c72cc1be1376bf9e5da491662c06f1c510d"
82
82
  }
83
83
  },
84
84
  "win32-arm64": {
85
- "name": "kernel_0.13.1_windows_arm64.tar.gz",
86
- "url": "https://github.com/kernel/cli/releases/download/v0.13.1/kernel_0.13.1_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",
87
87
  "bins": [
88
88
  "kernel.exe"
89
89
  ],
90
90
  "format": "tar.gz",
91
91
  "checksum": {
92
92
  "algorithm": "sha256",
93
- "digest": "8935da83ba9d6bd19ab795b221e168798c6fde215b89ec4a60d072669f4c6189"
93
+ "digest": "2b1fd91095cfc0d6b657d8e34dceb79d429973ce73724046ef5aa9e915ae6121"
94
94
  }
95
95
  },
96
96
  "win32-x64": {
97
- "name": "kernel_0.13.1_windows_amd64.tar.gz",
98
- "url": "https://github.com/kernel/cli/releases/download/v0.13.1/kernel_0.13.1_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",
99
99
  "bins": [
100
100
  "kernel.exe"
101
101
  ],
102
102
  "format": "tar.gz",
103
103
  "checksum": {
104
104
  "algorithm": "sha256",
105
- "digest": "03635704a7823c768f6bb8707d79b7865671e41de292e85e905f1c36571915be"
105
+ "digest": "576d5994ba0c06da5d16fc91921f9be79ba0407d1c64ac14cb639ac371e64cf4"
106
106
  }
107
107
  }
108
108
  }