exponential-cli 1.27.0 → 1.29.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 CHANGED
@@ -43,8 +43,11 @@ exponential auth whoami
43
43
  # Login with token
44
44
  exponential auth login --token <jwt> --api-url <url>
45
45
 
46
- # Check authentication status
46
+ # Who the token signs in as: name, user id, and whether it is an external agent (and its owner)
47
47
  exponential auth whoami
48
+ exponential auth whoami --json
49
+
50
+ # Where the credentials live (offline; shows the token prefix)
48
51
  exponential auth status
49
52
 
50
53
  # Logout
@@ -484,6 +487,38 @@ exponential workspaces set-default <workspace-slug>
484
487
  exponential workspaces members --search andi
485
488
  ```
486
489
 
490
+ ### Positions — roles & responsibilities
491
+
492
+ The roles on a workspace's settings page (`/w/<slug>/settings`). `roles` is an
493
+ alias for `positions`. A position is referenced by id or by title
494
+ (case-insensitive); holders by name, email or user id.
495
+
496
+ Writes need **your own login**: agent keys are refused. Owners and admins can
497
+ do everything. A member who holds a position may edit its remit.
498
+
499
+ ```bash
500
+ exponential positions list --workspace clear [--gaps] # --gaps: members with no stated remit
501
+ exponential positions show "Technical Director" --workspace clear
502
+
503
+ exponential positions create --workspace clear \
504
+ --title "Travel researcher" \
505
+ --remit-file remit.md \
506
+ --not-accountable-for "Booking and payment" \
507
+ --holder andi --holder james@example.com
508
+
509
+ exponential positions update "Travel researcher" --remit "Flights, hotels, visas" --clear-not-accountable-for
510
+ exponential positions update "Travel researcher" --holder andi # replaces holders
511
+ exponential positions holders add "Travel researcher" james
512
+ exponential positions holders remove "Travel researcher" andi
513
+ exponential positions delete "Travel researcher"
514
+
515
+ # Upsert many by title, all or nothing. Preview first with --dry-run.
516
+ exponential positions import roles.json --dry-run
517
+ ```
518
+
519
+ `roles.json` is `[{ "title", "remit", "notAccountableFor"?, "holders"?: ["name|email|id"] }]`.
520
+ An import never renames a position or removes a holder.
521
+
487
522
  ### Comments and @mentions
488
523
 
489
524
  Features, tickets, actions, pages, and goals all take comments:
@@ -674,4 +709,4 @@ npm link
674
709
 
675
710
  ## License
676
711
 
677
- MIT
712
+ GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See [LICENSE](LICENSE).