@plot-app/cli 0.0.7 → 0.0.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/CHANGELOG.md +12 -0
  2. package/README.md +31 -16
  3. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Plot CLI Changelog
2
2
 
3
+ ## 0.0.9 - 2026-05-01
4
+
5
+ - Standardized response presentations across CLI commands for more consistent output (DEV-364)
6
+ - Fixed a bug with `read at` timestamps
7
+
8
+ ## 0.0.8 - 2026-04-30
9
+
10
+ - Markdown task descriptions now sync reliably through the outbox.
11
+ - Preserved Zero error metadata and made batch operations fire-and-forget for snappier task workflows.
12
+ - Task creation now composes the shared mutator, removing server-await and manual rollback handling for more reliable creates.
13
+ - Additional fixes for issues introduced in DEV-354.
14
+
3
15
  ## 0.0.7 - 2026-04-30
4
16
 
5
17
  - Fixed several CLI gaps identified during review (DEV-354).
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Plot CLI
2
2
 
3
- Programmatic access to Plot workspaces for agents. The CLI is built around stable handles and JSON output so coding agents can inspect and update Plot data without scraping the web app.
3
+ Programmatic access to Plot workspaces for agents. The CLI is built around stable handles and compact output so coding agents can inspect and update Plot data without scraping the web app.
4
4
 
5
5
  ## Agent Quick Start
6
6
 
@@ -12,7 +12,7 @@ plot login --token "$PLOT_API_TOKEN"
12
12
  # Confirm identity and choose a workspace.
13
13
  plot whoami
14
14
  plot workspace list --format json
15
- plot workspace use scalespark-media --format json
15
+ plot workspace use scalespark-media
16
16
 
17
17
  # Pull orientation data before changing work.
18
18
  plot workspace info --format json
@@ -22,10 +22,12 @@ plot help identifiers
22
22
 
23
23
  ## Agent Operating Contract
24
24
 
25
- - Prefer `--format json`. It is the default for most commands and is the safest shape for agents to parse.
25
+ - Prefer `--format json` for reads. It is the default for most read commands and is the safest shape for agents to parse.
26
26
  - Run `plot commands --format json` when you need the current command manifest.
27
27
  - Run `plot help identifiers` before resolving copied Plot URLs or user-provided handles.
28
28
  - Prefer handles over UUIDs: task `pathId` (`ENG-042`), team `publicId` (`ENG`), project/document slug or trailing `publicId`, collection slug, and user `@username`.
29
+ - Read responses expose the reusable root handle as `id` for every entity: task pathId, team/project/document publicId, collection/workspace slug, and user `@username`.
30
+ - Mutation commands print a short success sentence regardless of `--format`, for example `Updated task ENG-042`. `plot batch` and `plot task create-tree` keep structured JSON.
29
31
  - Switch workspaces explicitly with `plot workspace use <slug>` when a copied URL contains a different workspace slug.
30
32
  - Batch dependent writes through `plot batch` or `plot task create-tree` to reduce round trips and keep outputs machine-readable.
31
33
  - Treat every non-zero exit as structured failure. The CLI writes errors as JSON with `error`, `code`, `message`, and (when applicable) a `hint` describing the next step an agent can take.
@@ -71,11 +73,11 @@ plot task list --team ENG --limit 20 --format json
71
73
  plot task list --parent none --limit 20 --format json # only top-level (non-subtask) tasks
72
74
  plot task list --parent ENG-042 --format json # subtasks of ENG-042
73
75
  plot task get ENG-042 --format json
74
- plot task update ENG-042 --status Done --format json
75
- plot task update ENG-042 --add-labels label_abc,label_def --format json
76
- plot task update ENG-042 --remove-labels label_xyz --format json
77
- plot task update ENG-042 --set-labels label_abc,label_def --format json # replace label set; pass "" to clear
78
- plot comment add --task-id ENG-042 --body "Implemented and verified." --format json
76
+ plot task update ENG-042 --status Done
77
+ plot task update ENG-042 --add-labels label_abc,label_def
78
+ plot task update ENG-042 --remove-labels label_xyz
79
+ plot task update ENG-042 --set-labels label_abc,label_def # replace label set; pass "" to clear
80
+ plot comment add --task-id ENG-042 --body "Implemented and verified."
79
81
  ```
80
82
 
81
83
  `task update` label semantics: `--add-labels` appends, `--remove-labels` detaches, `--set-labels` replaces the full set. `--add-labels`/`--remove-labels` can be combined; `--set-labels` cannot be combined with the other two. `--labels` is kept as a back-compat alias for `--add-labels`.
@@ -85,13 +87,12 @@ plot comment add --task-id ENG-042 --body "Implemented and verified." --format j
85
87
  ```bash
86
88
  plot task create \
87
89
  --name "Write checkout regression tests" \
88
- --team-id ENG \
90
+ --team ENG \
89
91
  --project-id checkout-redesign-a1b2c3d4e5f6 \
90
- --blocked-by ENG-041 \
91
- --format json
92
+ --blocked-by ENG-041
92
93
  ```
93
94
 
94
- `task create` is all-or-nothing: if any subsequent step (label add, dependency wiring, status/priority patch) fails, the created task is rolled back so the workspace is left without orphaned partial state.
95
+ `task create` is all-or-nothing: labels, dependencies, parent, status, priority, dates, and visibility are created through one composite mutator.
95
96
 
96
97
  ### Create A Parent Task Tree
97
98
 
@@ -169,9 +170,9 @@ Run `plot <command> --help` for command-specific options.
169
170
  | `doc list`, `doc get`, `doc create`, `doc update` | Read and mutate documents. |
170
171
  | `collection list`, `collection get`, `collection create`, `collection update` | Read and mutate collections. |
171
172
  | `team list`, `team get <id>` | List and inspect teams. |
172
- | `task-status list --team-id <id>` | List valid task statuses for a team. |
173
- | `label list --team-id <id>` | List task labels for a team. |
174
- | `user list`, `user get <id>`, `user by-team <team-id>` | Discover users. |
173
+ | `task-status list --team <handle>` | List valid task statuses for a team. |
174
+ | `label list --team <handle>` | List task labels for a team. |
175
+ | `user list`, `user get <id>`, `user by-team <team>` | Discover users. |
175
176
  | `user combined-members` | List users with access across projects, teams, and/or a task. |
176
177
  | `activity list` | List activity feed entries. |
177
178
  | `inbox list`, `inbox read <id>`, `inbox archive <id>` | Read and manage notifications. |
@@ -204,7 +205,21 @@ Extract the workspace slug first. If it differs from the active workspace, run `
204
205
 
205
206
  ## Output And Errors
206
207
 
207
- Most commands accept `--format json` or `--format markdown`. JSON is the default.
208
+ Most read commands accept `--format json` or `--format markdown`. JSON is the default. Mutation commands ignore `--format` and print a short success sentence such as `Created task ENG-042` or `Deleted task ENG-042`.
209
+
210
+ ### Root Handles
211
+
212
+ Read responses use `id` for the agent-facing handle on the root entity:
213
+
214
+ ```json
215
+ {
216
+ "id": "ENG-042",
217
+ "name": "Write checkout regression tests",
218
+ "status": "In Progress"
219
+ }
220
+ ```
221
+
222
+ The value is the canonical handle to reuse in later CLI calls: task pathId, team/project/document publicId, collection/workspace slug, or user `@username`.
208
223
 
209
224
  ### List Envelope
210
225
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plot-app/cli",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Programmatic access to Plot workspaces for agents.",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {
@@ -23,10 +23,10 @@
23
23
  "node": ">=18"
24
24
  },
25
25
  "optionalDependencies": {
26
- "@plot-app/cli-darwin-arm64": "0.0.7",
27
- "@plot-app/cli-darwin-x64": "0.0.7",
28
- "@plot-app/cli-linux-x64": "0.0.7",
29
- "@plot-app/cli-linux-arm64": "0.0.7"
26
+ "@plot-app/cli-darwin-arm64": "0.0.9",
27
+ "@plot-app/cli-darwin-x64": "0.0.9",
28
+ "@plot-app/cli-linux-x64": "0.0.9",
29
+ "@plot-app/cli-linux-arm64": "0.0.9"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public",