@usesocial/cli 0.18.1 → 0.18.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @usesocial/cli
2
2
 
3
+ ## 0.18.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#107](https://github.com/usesocial/monorepo/pull/107) [`24bd270`](https://github.com/usesocial/monorepo/commit/24bd270d5b6b9d19814a38de565f18ccc44bb3cf) Thanks [@CyrusNuevoDia](https://github.com/CyrusNuevoDia)! - Make usage-credit settlement durable when provider requests succeed.
8
+
9
+ ## 0.18.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#104](https://github.com/usesocial/monorepo/pull/104) [`03fbe31`](https://github.com/usesocial/monorepo/commit/03fbe31543fa98604dd4c931b17f8aa1106f2fde) Thanks [@CyrusNuevoDia](https://github.com/CyrusNuevoDia)! - Make `social account setup` the pollable authentication and base-billing flow, with the former command retained only as a hidden compatibility alias.
14
+
3
15
  ## 0.18.1
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -50,7 +50,7 @@ fields. It does not authenticate, call providers, or spend usage.
50
50
  ## Quickstart
51
51
 
52
52
  ```sh
53
- social account login
53
+ social account setup
54
54
  social account connect linkedin
55
55
  social linkedin profile
56
56
  social account connect x
@@ -261,20 +261,22 @@ jq -r '.items[].id' /tmp/recent-posts.json \
261
261
  | `0` | Success | Continue. |
262
262
  | `2` | Usage or validation error | Fix the command, flags, IDs, JSON body, or local input - server-side failures are exit 5. |
263
263
  | `3` | Not found | Check the resource ID or pick a different item. |
264
- | `4` | Auth or scope error | Run `social account login`, or log out and choose the needed scope. |
264
+ | `4` | Auth or scope error | Run `social account setup`, or log out and choose the needed scope. |
265
265
  | `5` | API, proxy, or unexpected error | Retry later or surface the server error. |
266
266
  | `7` | Rate limited | Back off, using `retryAfterSeconds`, `resumeAt`, and `retryCommand` when present. |
267
267
 
268
268
  ## Auth
269
269
 
270
- `social account login` runs a device-authorization flow. It asks what access to
271
- grant, sends a magic link, waits for browser approval, stores the returned token
272
- in your OS keyring, and confirms billing checkout when a seat is needed.
270
+ `social account setup` authenticates the Social account and establishes base
271
+ billing. In a terminal it guides browser approval; in CI and agent shells it is
272
+ a bounded pollable command with `pending_approval`, `pending_billing`, and
273
+ `ready` states. Both billing states include the authenticated user, normalized
274
+ scope, exact capabilities, and seat summary.
273
275
 
274
276
  Sessions last two years unless revoked. `social account logout` revokes the
275
- session and removes the stored token.
276
- `social account login` requires an interactive terminal and is not supported from
277
- CI, background jobs, or agent-mediated setup flows.
277
+ session and removes the stored token. Non-interactive callers should surface the
278
+ returned approval or checkout URL, then rerun `social account setup` until it is
279
+ `ready`.
278
280
 
279
281
  `social account billing` prints the current seat/subscription snapshot plus
280
282
  aggregate usage billing. `social account billing portal` opens the hosted