@plori/cli 0.5.1 → 0.6.0
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 +31 -8
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -106,7 +106,9 @@ plori workspace run mate "Research this topic and save the result to work/report
|
|
|
106
106
|
|
|
107
107
|
Creation prints an idempotency key. Reuse it with `--idempotency-key` when you
|
|
108
108
|
retry the same request. A name can identify more than one Workspace. Use its ID
|
|
109
|
-
from `plori workspace list` if names are duplicated.
|
|
109
|
+
from `plori workspace list` if names are duplicated. The list includes your own
|
|
110
|
+
and shared Workspaces, with `ACCOUNT` and `ROLE` columns. JSON includes
|
|
111
|
+
`account` (`user_id`, `email`) and `role` (`owner`, `member` or `viewer`).
|
|
110
112
|
|
|
111
113
|
For commands that take an agent, set `AGENT_ID` to the creation response's
|
|
112
114
|
`default_manager_agent_id`. The Workspace name is not an agent name.
|
|
@@ -180,19 +182,24 @@ plori workspace run mate "build it" --follow # stream the turn live (tools on s
|
|
|
180
182
|
echo "summarize this" | plori workspace run mate - # message from stdin
|
|
181
183
|
plori account watch --agent "$AGENT_ID" # one JSON line per run ending
|
|
182
184
|
plori account inbox # what ended, and what waits on you
|
|
183
|
-
plori schedules create
|
|
185
|
+
plori schedules create mate "daily report" --in 86400
|
|
186
|
+
plori schedules list mate
|
|
187
|
+
plori schedules cancel mate <schedule-id>
|
|
184
188
|
plori input list "$AGENT_ID" # runs paused on an approval or a question
|
|
185
189
|
plori input answer <run-id> <tool-call-id> --approve
|
|
186
190
|
plori input answer <run-id> <tool-call-id> --approve --always-allow # + stop asking for this tool
|
|
187
191
|
plori account balance && plori account disk
|
|
188
192
|
|
|
189
193
|
plori workflow list # all your workflows
|
|
190
|
-
plori workflow list --
|
|
191
|
-
plori workflow create "rss digest" --trigger cron --cron "0 9 * * *"
|
|
192
|
-
plori workflow run "rss digest" # run it now (real fire, billed)
|
|
193
|
-
plori workflow execution "rss digest" <exec-id> # poll one run
|
|
194
|
+
plori workflow list --workspace mate
|
|
195
|
+
plori workflow create "rss digest" --workspace mate --trigger cron --cron "0 9 * * *"
|
|
196
|
+
plori workflow run "rss digest" --workspace mate # run it now (real fire, billed)
|
|
197
|
+
plori workflow execution "rss digest" <exec-id> --workspace mate # poll one run
|
|
194
198
|
```
|
|
195
199
|
|
|
200
|
+
Schedules take a Workspace name or UUID. `plori workflow create` requires `--workspace`.
|
|
201
|
+
Build the draft with `plori workspace run mate "Build the steps for workflow <id>"`.
|
|
202
|
+
|
|
196
203
|
Agents are addressed by name or UUID. Every command accepts `--json`; when
|
|
197
204
|
stdout is not a TTY the output is JSON automatically, so scripts and agents
|
|
198
205
|
can parse without flags. `plori conversation attach` is the one exception: it is a live
|
|
@@ -206,6 +213,21 @@ the exit codes are listed under [Agent-driven use](#agent-driven-use).
|
|
|
206
213
|
`plori workspace run` prints the reply in a terminal and a JSON result when piped.
|
|
207
214
|
Tool progress goes to stderr. Reuse the Workspace for later tasks.
|
|
208
215
|
|
|
216
|
+
An idle conversation starts a run. If it is running, the server accepts plain text as
|
|
217
|
+
steering or queues it. The CLI prints the receipt and exits `0`, including with
|
|
218
|
+
`--follow`. It does not wait for the running or paused run to end. The receipt
|
|
219
|
+
contains `status` (`steering` or `queued`), `steer_id` and `run_id`, plus the
|
|
220
|
+
conversation and Workspace ids. That `run_id` identifies the running or paused
|
|
221
|
+
run, not a result for this message. Use `plori runs list "$AGENT_ID"` to find a
|
|
222
|
+
later queued turn. There is no lookup from `steer_id` to that later run.
|
|
223
|
+
|
|
224
|
+
If the paused run has exactly one ordinary question assigned to you, the message
|
|
225
|
+
answers it. Otherwise it queues, with `pending_inputs` identifying the request
|
|
226
|
+
and assignee. Sending a message does not cancel a pending request.
|
|
227
|
+
`409 conversation_busy` still applies to attachments or run options in a busy
|
|
228
|
+
conversation, and to working-copy conflicts. Send attachments and options when
|
|
229
|
+
idle.
|
|
230
|
+
|
|
209
231
|
### Start a run and keep working
|
|
210
232
|
|
|
211
233
|
A local agent (a Claude Code or Codex shell, an orchestrator) does not have to
|
|
@@ -273,7 +295,7 @@ tools return: `run_id`, `status`, `session_id`, `url`, `pending_inputs`.
|
|
|
273
295
|
|
|
274
296
|
| code | meaning |
|
|
275
297
|
| ---- | ------- |
|
|
276
|
-
| 0 | the command succeeded
|
|
298
|
+
| 0 | the command succeeded. A waited run completed, or the server accepted a message as steering or queued |
|
|
277
299
|
| 1 | API or runtime failure |
|
|
278
300
|
| 2 | usage error |
|
|
279
301
|
| 3 | missing, rejected, or expired credentials |
|
|
@@ -330,7 +352,8 @@ retry when its storage is ready.
|
|
|
330
352
|
|
|
331
353
|
`--max-tokens` sets a token figure that is recorded on the new group, in
|
|
332
354
|
cache-weighted tokens. The default is 2,000,000. The figure does not limit model
|
|
333
|
-
calls
|
|
355
|
+
calls. The account's credit balance limits spend. A member can also have a
|
|
356
|
+
monthly spend cap that refuses new run starts with `402`. To add the worker to
|
|
334
357
|
an existing group, use `--task-group <id>` without `--max-tokens`.
|
|
335
358
|
|
|
336
359
|
The command prints the worker ID and a `worker status` command on stderr. It
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plori/cli",
|
|
3
3
|
"description": "Plori runs AI agents in Workspaces.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
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.
|
|
30
|
-
"@plori/cli-darwin-x64": "0.
|
|
31
|
-
"@plori/cli-linux-x64": "0.
|
|
32
|
-
"@plori/cli-linux-arm64": "0.
|
|
33
|
-
"@plori/cli-win32-x64": "0.
|
|
29
|
+
"@plori/cli-darwin-arm64": "0.6.0",
|
|
30
|
+
"@plori/cli-darwin-x64": "0.6.0",
|
|
31
|
+
"@plori/cli-linux-x64": "0.6.0",
|
|
32
|
+
"@plori/cli-linux-arm64": "0.6.0",
|
|
33
|
+
"@plori/cli-win32-x64": "0.6.0"
|
|
34
34
|
}
|
|
35
35
|
}
|