@plori/cli 0.5.0 → 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.
Files changed (2) hide show
  1. package/README.md +38 -15
  2. 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 "$AGENT_ID" "daily report" --in 86400
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 --agent "$AGENT_ID" # one agent's (use "none" for unassigned)
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; a run that was waited for completed |
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 |
@@ -328,9 +350,11 @@ and starts the worker. It waits for the copy to be ready, for up to 600 seconds.
328
350
  Use `--timeout` to change that limit. If the Workspace has no saved revision yet,
329
351
  retry when its storage is ready.
330
352
 
331
- `--max-tokens` sets the new group's limit in cache-weighted tokens. The default
332
- is 2,000,000. To share an existing group's limit, use `--task-group <id>` without
333
- `--max-tokens`.
353
+ `--max-tokens` sets a token figure that is recorded on the new group, in
354
+ cache-weighted tokens. The default is 2,000,000. The figure does not limit model
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
357
+ an existing group, use `--task-group <id>` without `--max-tokens`.
334
358
 
335
359
  The command prints the worker ID and a `worker status` command on stderr. It
336
360
  also prints a generated idempotency key if you omit `--idempotency-key`.
@@ -375,10 +399,9 @@ plori advanced worker spawn "$WORKSPACE_ID" 'Update the selected files' --name w
375
399
  plori worker status "$WORKSPACE_ID" "$REQUEST_ID" --wait --wait-seconds 600
376
400
  ```
377
401
 
378
- `--max-tokens` is the group's shared limit in cache-weighted tokens. It must
379
- be positive. Starting a worker reserves one full context window plus output
380
- from this limit, so 2,000,000 tokens covers one worker. Raise the limit when
381
- several workers share the group.
402
+ `--max-tokens` is a token figure recorded on the group, in cache-weighted tokens.
403
+ It must be positive. It does not limit model calls. A stopped group refuses new
404
+ model calls and starts no new workers.
382
405
  Spawn returns a request. Status returns the run result when it is available,
383
406
  with the worker's save and review state. A finished run does not mean its files
384
407
  are saved. `--executor` is the id of an existing agent to run as the worker.
@@ -441,7 +464,7 @@ plori advanced workspace retention "$WORKSPACE_ID" --view pins
441
464
  ```
442
465
 
443
466
  Cost output is the API JSON. A null or missing amount is unknown, not zero, and a
444
- task group's token limit is not a cost. `resources` is one page of observations. Continue
467
+ task group's token figure is not a cost. `resources` is one page of observations. Continue
445
468
  it with `--resource-cursor`. An expired retention state means the item can be
446
469
  removed, not that it is already deleted. `advanced workspace pin` keeps a copy or changeset
447
470
  until `--expires-at` and needs `--kind`, `--resource` and `--idempotency-key`.
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.5.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.5.0",
30
- "@plori/cli-darwin-x64": "0.5.0",
31
- "@plori/cli-linux-x64": "0.5.0",
32
- "@plori/cli-linux-arm64": "0.5.0",
33
- "@plori/cli-win32-x64": "0.5.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
  }