@onklave/agent-cli 0.1.8 → 0.1.9

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 (3) hide show
  1. package/README.md +14 -1
  2. package/main.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -60,7 +60,9 @@ onklave run --task "Add unit tests for the auth module"
60
60
  ```
61
61
 
62
62
  Get a CLI token by signing in to the Onklave portal → **Settings → API Tokens →
63
- Generate new CLI token**.
63
+ Generate new token**. Pick an expiry (Never / 30 days / 90 days / 1 year) and a
64
+ descriptive name (e.g. `laptop-cli`). The plaintext is shown **once** — copy it
65
+ immediately; it can't be retrieved later. Revoke any token from the same page.
64
66
 
65
67
  ---
66
68
 
@@ -226,6 +228,17 @@ Machine**.
226
228
 
227
229
  ---
228
230
 
231
+ ## Revoking access
232
+
233
+ Tokens can be revoked instantly from the portal — **Settings → API Tokens** → ⋯ → Revoke.
234
+ Revocation takes effect within ~5 minutes (cached resolves expire on that interval).
235
+
236
+ If you suspect a token has been leaked, revoke it immediately. Existing CLI sessions
237
+ that have already authenticated continue to work *for the user* but lose access on
238
+ their next API call.
239
+
240
+ ---
241
+
229
242
  ## Diagnostics
230
243
 
231
244
  If something looks off:
package/main.js CHANGED
@@ -189,7 +189,7 @@ async function loginCommand(args) {
189
189
  console.log(" 2. Navigate to Settings > API Tokens");
190
190
  console.log(" 3. Generate a new CLI token");
191
191
  console.log(" 4. Run: onklave login --token <your-token>\n");
192
- console.log("Note: Browser-based OAuth login will be available in v2.");
192
+ console.log("Tokens are bearer credentials. Treat them like passwords.");
193
193
  process.exitCode = 1;
194
194
  return;
195
195
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onklave/agent-cli",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Onklave Agent CLI — local agent runner with cloud orchestration",
5
5
  "bin": {
6
6
  "onklave": "./main.js"