@plori/cli 0.2.5 → 0.2.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.
Files changed (2) hide show
  1. package/README.md +26 -8
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -9,22 +9,39 @@ get_run_result → `result`, …).
9
9
 
10
10
  ## Install
11
11
 
12
- Build from this repository (Go ≥ 1.26):
12
+ ```sh
13
+ npm i -g @plori/cli
14
+ ```
15
+
16
+ Or build from this repository (Go ≥ 1.26):
13
17
 
14
18
  ```sh
15
19
  go build -o plori ./cli/cmd/plori
16
20
  ```
17
21
 
18
- Binary releases and an npm wrapper (`@plori/cli`) are published per
19
- `docs/release-channels.md`.
20
-
21
22
  ## Authenticate
22
23
 
23
- Create an API key at <https://plori.ai/dashboard/settings>, then either:
24
+ For an interactive terminal, start the sign-in from the CLI. It opens Plori's
25
+ email-OTP page in your browser and returns to the terminal when complete; a new
26
+ email creates the account in the same flow.
27
+
28
+ ```sh
29
+ plori login
30
+ ```
31
+
32
+ The browser flow requests `openid offline_access mcp`. Its public OAuth client
33
+ id, short-lived access token, rotating refresh token, expiry, and scopes are
34
+ stored in `~/.config/plori/config.json` (or
35
+ `$XDG_CONFIG_HOME/plori/config.json`) with mode `0600`; the CLI refreshes the
36
+ session there when needed.
37
+
38
+ For CI or another headless environment, keep using an API key created at
39
+ <https://plori.ai/dashboard/settings>:
24
40
 
25
41
  ```sh
26
- plori login # prompts for the key, validates it, stores it 0600
27
- export PLORI_API_KEY=… # or: environment (CI, agents)
42
+ plori login --key plori_sk_…
43
+ # or, without writing a file:
44
+ export PLORI_API_KEY=plori_sk_…
28
45
  ```
29
46
 
30
47
  `PLORI_BASE_URL` (or `--base-url`) points the CLI at a non-production
@@ -45,7 +62,8 @@ plori answer <run-id> <tool-call-id> --approve
45
62
  plori answer <run-id> <tool-call-id> --approve --always-allow # + stop asking for this tool
46
63
  plori credits && plori disk
47
64
 
48
- plori workflows list # your workflows
65
+ plori workflows list # all your workflows
66
+ plori workflows list --agent mate # one agent's (use "none" for unassigned)
49
67
  plori workflows create "rss digest" --trigger cron --cron "0 9 * * *"
50
68
  plori workflows run "rss digest" # run it now (real fire, billed)
51
69
  plori workflows execution "rss digest" <exec-id> # poll one run
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plori/cli",
3
3
  "description": "plori (plori.ai): a cloud AI agent with its own computer - persistent disk, real CLI tools, and memory. The official plori CLI.",
4
- "version": "0.2.5",
4
+ "version": "0.2.7",
5
5
  "license": "MIT",
6
6
  "homepage": "https://plori.ai",
7
7
  "repository": {
@@ -26,10 +26,10 @@
26
26
  "node": ">=18"
27
27
  },
28
28
  "optionalDependencies": {
29
- "@plori/cli-darwin-arm64": "0.2.5",
30
- "@plori/cli-darwin-x64": "0.2.5",
31
- "@plori/cli-linux-x64": "0.2.5",
32
- "@plori/cli-linux-arm64": "0.2.5",
33
- "@plori/cli-win32-x64": "0.2.5"
29
+ "@plori/cli-darwin-arm64": "0.2.7",
30
+ "@plori/cli-darwin-x64": "0.2.7",
31
+ "@plori/cli-linux-x64": "0.2.7",
32
+ "@plori/cli-linux-arm64": "0.2.7",
33
+ "@plori/cli-win32-x64": "0.2.7"
34
34
  }
35
35
  }