@usesocial/cli 0.18.3 → 0.19.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @usesocial/cli
2
2
 
3
+ ## 0.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#114](https://github.com/usesocial/monorepo/pull/114) [`f248ff3`](https://github.com/usesocial/monorepo/commit/f248ff3128ee73fd1dfddc419bbdaf0088acf1e7) Thanks [@CyrusNuevoDia](https://github.com/CyrusNuevoDia)! - Authorize a reusable payment method during account setup, purchase only the selected provider seat during account connection, and expose retry-safe connection attempts plus provider-keyed billing across the CLI, API, and MCP. Preserve Social X's entity-linked per-seat credit grant when its Autumn catalog changes are pushed.
8
+
9
+ ## 0.18.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#112](https://github.com/usesocial/monorepo/pull/112) [`5fe726e`](https://github.com/usesocial/monorepo/commit/5fe726eae937f234fc33728433a9775834427af3) Thanks [@CyrusNuevoDia](https://github.com/CyrusNuevoDia)! - Update the CLI's `better-result` runtime dependency and error-class compatibility.
14
+
3
15
  ## 0.18.3
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -157,17 +157,17 @@ profile lookup is needed.
157
157
  | Command | Description | |
158
158
  | --- | --- | --- |
159
159
  | `(bare)` | Show who is signed in and list connected accounts. | |
160
- | `login` | Device sign-in, scope selection, and billing. | |
160
+ | `login` | Device sign-in and scope selection. | |
161
161
  | `logout` | Revoke the session and clear the saved token. | |
162
- | `connect linkedin` | Print a LinkedIn connection URL and poll for approval. | write |
163
- | `connect x` | Print an X OAuth URL and poll for approval. | write |
162
+ | `connect linkedin [--attempt <id>]` | Start a LinkedIn billing-and-connect attempt, or resume the exact returned attempt. | write |
163
+ | `connect x [--attempt <id>]` | Start an X billing-and-connect attempt, or resume the exact returned attempt. | write |
164
164
  | `reconnect linkedin <account>` | Re-auth an existing LinkedIn account. | write |
165
165
  | `reconnect x <account>` | Re-auth an existing X account. | write |
166
166
  | `disconnect linkedin <account>` | Disconnect a LinkedIn account. | write |
167
167
  | `disconnect x <account>` | Disconnect an X account. | write |
168
168
  | `default get <platform>` | Read the shared default account for LinkedIn or X. | |
169
169
  | `default set <platform> <account>` | Set the shared default account for LinkedIn or X. | write |
170
- | `billing` | Show seats, subscription, and current usage billing. | |
170
+ | `billing` | Show Social LinkedIn and Social X subscriptions, seats, and X usage. | |
171
171
  | `billing portal` | Print the hosted billing portal URL. | |
172
172
  | `usage` | Aggregate proxy calls and usage. | |
173
173
  | `logs` | Recent proxy calls. | |
@@ -182,14 +182,14 @@ profile lookup is needed.
182
182
  | `posts <target>` | Live posts for a person or company; target required. | |
183
183
  | `comments <target>` | List a post's comments. | |
184
184
  | `reactions <target>` | List a post's reactions. | |
185
- | `connections [target]` | Live connection graph read; omit target for your own account. Costs usage. | |
185
+ | `connections [target]` | Live connection graph read under flat LinkedIn proxy usage; omit target for your own account. | |
186
186
  | `company <target>` | Fetch a company profile. | |
187
187
  | `jobs <target>` | List a company's job postings. | |
188
188
  | `search people\|posts\|jobs\|companies <keywords>` | Search LinkedIn. | |
189
- | `page visitors` | Read company Page visitor analytics; pass `--page` or configure a default Page. Costs usage. | |
189
+ | `page visitors` | Read company Page visitor analytics under flat LinkedIn proxy usage; pass `--page` or configure a default Page. | |
190
190
  | `page invite <user...>` | Invite one or more users to follow the company Page selected by `--page` or default config. | write |
191
191
  | `proxy` | Forward a raw LinkedIn JSON envelope from stdin via Unipile. | write |
192
- | `sync [collection]` | Pull your own `connections`, `posts`, `messages`, or `requests` into the local mirror; costs usage. | local |
192
+ | `sync [collection]` | Pull your own `connections`, `posts`, `messages`, or `requests` into the local mirror under flat LinkedIn proxy usage. | local |
193
193
  | `sql [query]` | Query your local mirror with read-only SQL - free; bare `sql` prints compact schema metadata. | |
194
194
  | `post` | Create a post (body from stdin). | write |
195
195
  | `comment <target>` | Comment on a post (body from stdin). | write |
@@ -267,27 +267,42 @@ jq -r '.items[].id' /tmp/recent-posts.json \
267
267
 
268
268
  ## Auth
269
269
 
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.
270
+ `social account setup` authenticates the Social account, then asks Autumn to
271
+ authorize a reusable payment method. In a terminal it guides browser approval;
272
+ in CI and agent shells it is a bounded pollable command with
273
+ `pending_approval`, `pending_billing`, and `ready` states. While the payment
274
+ method is not ready, setup returns `checkoutURL`. The hosted page authorizes the
275
+ card; setup never selects or purchases a provider plan.
275
276
 
276
277
  Sessions last two years unless revoked. `social account logout` revokes the
277
278
  session and removes the stored token. Non-interactive callers should surface the
278
279
  returned approval or checkout URL, then rerun `social account setup` until it is
279
280
  `ready`.
280
281
 
281
- `social account billing` prints the current seat/subscription snapshot plus
282
- aggregate usage billing. `social account billing portal` opens the hosted
283
- billing portal when possible and always prints the portal URL as JSON.
282
+ `social account connect <platform>` starts or resumes a server-owned attempt
283
+ that purchases only that provider's plan or next seat, or the applicable legacy
284
+ Social Pro seat during transition. It normally charges the stored card directly
285
+ before returning hosted provider approval. In a non-TTY
286
+ shell, omit `--attempt` on the first call, capture the returned `attemptId`, and
287
+ pass it back as `--attempt <attemptId>` on every poll. Surface `paymentURL` only
288
+ when `pending_billing` says customer action is required, then surface
289
+ `connectURL` for provider approval. Replaying a completed attempt is stable;
290
+ omit `--attempt` after completion only to connect another account.
291
+
292
+ `social account billing` prints Social LinkedIn and Social X independently.
293
+ Social LinkedIn costs $20 per connected account with flat proxy usage. Social X
294
+ costs $20 per connected account, includes 15,000 monthly credits per account
295
+ with one-month rollover, and offers $15 top-ups for another 15,000 credits.
296
+ `social account billing portal` opens the hosted billing portal when possible
297
+ and always prints the portal URL as JSON.
284
298
 
285
299
  ## Cache config
286
300
 
287
301
  There are two cache layers.
288
302
 
289
- The proxy cache applies to live reads only. Cache hits are free; fresh upstream
290
- reads are metered. Configure the default:
303
+ The proxy cache applies to live reads only. X cache hits spend no credits;
304
+ LinkedIn proxy usage is flat whether or not a request hits the cache. Configure
305
+ the default:
291
306
 
292
307
  ```sh
293
308
  social account config cache ttl 3600