@motir/cli 0.2.0 → 0.4.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 (3) hide show
  1. package/README.md +4 -4
  2. package/dist/index.js +16895 -7037
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -4,7 +4,7 @@ Terminal dispatch of the Motir work loop. The CLI is a client of **Motir's
4
4
  public REST API** (`/api/v1`): every command is an ordinary HTTPS request
5
5
  carrying a personal access token (PAT) as its bearer. There is no private
6
6
  channel — the CLI uses the same documented endpoints, the same credential and
7
- the same scopes any third-party integration gets, and if it needs a capability
7
+ the same permissions any third-party integration gets, and if it needs a capability
8
8
  that capability lands on `/api/v1` first, where everyone can reach it.
9
9
 
10
10
  That is the point rather than an implementation detail: nothing this tool does
@@ -68,8 +68,8 @@ construction** — the code and URL are printed whether or not a browser opens,
68
68
  an SSH session or a container uses the same command; `--no-browser` skips the
69
69
  launch attempt outright.
70
70
 
71
- The approval mints a CLI-scoped PAT: scopes `read`, `work_items:write`,
72
- `integration` (fixed — the grant can neither widen nor narrow them), 90-day
71
+ The approval mints a CLI-scoped PAT: permissions `project:browse`, `work_item:edit`,
72
+ `comment:add`, `ai:plan` (fixed — the grant can neither widen nor narrow them), 90-day
73
73
  expiry, labelled `CLI · <hostname>`. It lands in `~/.config/motir/config.json`,
74
74
  `chmod 600`, keyed by server URL.
75
75
 
@@ -85,7 +85,7 @@ There are three credential tiers, and `motir login` is the middle one:
85
85
  there is no `.motir.json` to walk up to) and outranks a stored credential.
86
86
 
87
87
  **Disconnecting** is two different things: `motir logout` forgets the local copy
88
- on this machine, while **revoking the token in Settings → Account → API tokens**
88
+ on this machine, while **revoking the token in Settings → Account → Tokens**
89
89
  is the server-side kill switch. Full guide: [`docs/cli.md` §
90
90
  Authenticate](../../docs/cli.md#authenticate).
91
91