@usesocial/cli 0.5.0 → 0.6.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 +14 -0
- package/README.md +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +1839 -1021
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @usesocial/cli
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#30](https://github.com/usesocial/monorepo/pull/30) [`7aefe83`](https://github.com/usesocial/monorepo/commit/7aefe83f716321d7fa10d52be67cb6f96b5474f0) Thanks [@CyrusNuevoDia](https://github.com/CyrusNuevoDia)! - Per-collection sync with a confirm-by-credits gate, a local profiles mirror, and cache-first enriched reads.
|
|
8
|
+
|
|
9
|
+
- `social x|linkedin sync <collection>` gates spend with a single `--credits {N}` flag that is both the consent and the hard cap; bare invocations auto-run cheap syncs (≤ $5) or print a credit estimate and stop. Replaces `--billing-limit`/`--yes`/the TTY prompt, and `sync` is now a visible command.
|
|
10
|
+
- New `x_messages` DM collection (flat `/dm_events`) and a DM `includes.users` profile extractor. Syncs mirror participant profiles into the local cache (`x_profiles`/`li_profiles`) with a COALESCE merge so thin sources never clobber richer rows; the server `profiles` corpus merges the same way.
|
|
11
|
+
- `x followers|following|messages` and `linkedin connections|messages|requests` now read from the local cache, enriched with the profiles mirror. They require a first sync; `followers`/`following`/`connections` then auto-refresh only when older than 15 minutes, while `messages` and `requests sent|received` refresh on every read so they always return the latest.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#30](https://github.com/usesocial/monorepo/pull/30) [`e58d6c7`](https://github.com/usesocial/monorepo/commit/e58d6c7d44dfe7cd569ac0ce6e93bd2f25765993) Thanks [@CyrusNuevoDia](https://github.com/CyrusNuevoDia)! - Retry LinkedIn 429 responses automatically with `Retry-After` support, exponential fallback, and sync progress on stderr/spinner without changing JSON summaries.
|
|
16
|
+
|
|
3
17
|
## 0.5.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -204,7 +204,7 @@ jq -r '.items[].id' /tmp/recent-posts.json \
|
|
|
204
204
|
| `3` | Not found | Check the resource ID or pick a different item. |
|
|
205
205
|
| `4` | Auth or scope error | Run `social account login`, or log out and choose the needed scope. |
|
|
206
206
|
| `5` | API or unexpected error | Retry later or surface the server error. |
|
|
207
|
-
| `7` | Rate limited |
|
|
207
|
+
| `7` | Rate limited | LinkedIn retries automatically; otherwise back off, using `retryAfterSeconds` when present. |
|
|
208
208
|
|
|
209
209
|
## Auth
|
|
210
210
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1199,6 +1199,7 @@ type PrintResultArgs = {
|
|
|
1199
1199
|
data: unknown;
|
|
1200
1200
|
resolved?: ResourceResolutionRecord[];
|
|
1201
1201
|
responseHeaders?: Headers;
|
|
1202
|
+
usage?: unknown;
|
|
1202
1203
|
};
|
|
1203
1204
|
//#endregion
|
|
1204
1205
|
//#region src/lib/ui.d.ts
|
|
@@ -1435,7 +1436,7 @@ declare const createSocialCommand: (deps?: {
|
|
|
1435
1436
|
[k: string]: string;
|
|
1436
1437
|
}>;
|
|
1437
1438
|
printData: (value: unknown) => void;
|
|
1438
|
-
printResult: (args: PrintResultArgs) => void
|
|
1439
|
+
printResult: (args: PrintResultArgs) => Promise<void>;
|
|
1439
1440
|
resolveAccount: ({
|
|
1440
1441
|
account,
|
|
1441
1442
|
platform
|