@usesocial/cli 0.12.3 → 0.13.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,11 @@
1
1
  # @usesocial/cli
2
2
 
3
+ ## 0.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#88](https://github.com/usesocial/monorepo/pull/88) [`6d3c8aa`](https://github.com/usesocial/monorepo/commit/6d3c8aaaafe23d461c97048bd3589a9b53001ade) Thanks [@CyrusNuevoDia](https://github.com/CyrusNuevoDia)! - Remove `social x sync timeline` from the supported X sync collections.
8
+
3
9
  ## 0.12.3
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -64,7 +64,7 @@ social x profile
64
64
  | "Surface the ten warm contacts worth reaching out to this week." | `linkedin search people`, `linkedin reactions`, `linkedin sql` |
65
65
  | "Pull everyone who reacted to my last LinkedIn post and flag the warm leads." | `linkedin posts <target>`, `linkedin reactions`, `linkedin profile` |
66
66
  | "Read this creator's recent posts and break down what makes them land." | `linkedin posts <target>`, `x tweets <target>` |
67
- | "Find what people are saying about AI agents this week and summarize the themes." | `linkedin search posts`, `x sync timeline`, `x sql` |
67
+ | "Find what people are saying about AI agents this week and summarize the themes." | `linkedin search posts` |
68
68
  | "Triage my inbox and draft replies for approval." | `sync messages`, `sql`, `linkedin message`, `x message` |
69
69
  | "Show this week's company Page visitors and invite the approved prospects." | `linkedin page visitors`, `linkedin page invite` |
70
70
  | "Draft a reply to this thread and post it once I approve." | `linkedin comment`, `x post` |
@@ -217,7 +217,7 @@ profile lookup is needed.
217
217
  | `quotes <target>` | List quote posts of a post. | |
218
218
  | `likers <target>` | List users who liked a post. | |
219
219
  | `reposters <target>` | List users who reposted a post. | |
220
- | `sync [collection]` | Pull your own `tweets`, `timeline`, `followers`, `following`, `bookmarks`, `liked`, `mentions`, or `messages` into the local mirror; costs usage. | local |
220
+ | `sync [collection]` | Pull your own `tweets`, `followers`, `following`, `bookmarks`, `liked`, `mentions`, or `messages` into the local mirror; costs usage. | local |
221
221
  | `sql [query]` | Query your local mirror with read-only SQL - free; bare `sql` prints compact schema metadata. | |
222
222
  | `post` | Create a post (body from stdin). | write |
223
223
  | `message <recipients>` | Send a DM (body from stdin). | write |
@@ -304,9 +304,6 @@ query it with `sql`. SQL reads show local freshness in `meta.cache.tables` and a
304
304
  ```sh
305
305
  social x sql "SELECT sender_username, text FROM x_messages ORDER BY created_at DESC LIMIT 5" \
306
306
  | jq '{cache: .meta.cache}'
307
- social x sync timeline
308
- social x sql "SELECT text, url FROM x_timeline ORDER BY created_at DESC LIMIT 20" \
309
- | jq '{cache: .meta.cache}'
310
307
  ```
311
308
 
312
309
  Agents should watch `.meta.cost` when it is present during high-fanout loops, use
@@ -334,8 +331,6 @@ social x sync messages
334
331
  social x sql "SELECT sender_username, text FROM x_messages ORDER BY created_at DESC LIMIT 20"
335
332
  social x sql "SELECT text, url FROM x_bookmarks ORDER BY created_at DESC LIMIT 50"
336
333
  social x sql "SELECT username, name, followers_count FROM x_followers ORDER BY followers_count DESC LIMIT 100"
337
- social x sync timeline
338
- social x sql "SELECT text, url FROM x_timeline ORDER BY created_at DESC LIMIT 50"
339
334
 
340
335
  # X live reads.
341
336
  social x tweets profile_id:<x-user-id> --limit 30
package/dist/index.mjs CHANGED
@@ -405,7 +405,7 @@ const U = (e) => e.status === `ok` ? {
405
405
  const org = "usesocial";
406
406
  const cliPackageName = `@${org}/cli`;
407
407
  const cliBin = "social";
408
- const skillInstallCommand = `npx skills add ${org}/skill`;
408
+ const skillInstallCommand = `npx --yes skills add ${org}/skill --global --yes --agent claude-code codex`;
409
409
  const publicWebURL = "https://usesocial.dev";
410
410
  const publicAPIURL = "https://api.usesocial.dev/v1";
411
411
  const publicLinks = {
@@ -444,10 +444,11 @@ const cliBrand = {
444
444
  installCommands: {
445
445
  setup: `curl -fsSL ${setupScriptURL} | bash`,
446
446
  bun: `bun install -g ${cliPackageName}`,
447
- npm: `npm install -g ${cliPackageName}`,
447
+ npm: `npm install -g ${cliPackageName}@latest`,
448
448
  skill: skillInstallCommand
449
449
  }
450
450
  };
451
+ `${cliBrand.installCommands.npm}${cliBrand.installCommands.skill}`;
451
452
  h("InvalidPublicBaseURL")();
452
453
  h("InvalidPublicRoute")();
453
454
  const publicURLForLiteral = (route) => new URL(route, brandURLs.publicWebURL).toString();
@@ -1837,6 +1838,7 @@ const X_COLLECTIONS = [
1837
1838
  pageSize: 100,
1838
1839
  sinceField: "created_at",
1839
1840
  expectedFields: expectedTweetFields,
1841
+ syncable: false,
1840
1842
  lift: liftTweet
1841
1843
  },
1842
1844
  {
@@ -2011,7 +2013,7 @@ const collectionByKey = (key) => COLLECTIONS.find((collection) => collection.key
2011
2013
  const collectionsFor = (platform) => COLLECTIONS.filter((collection) => collection.platform === platform);
2012
2014
  const syncableCollectionsFor = (platform) => {
2013
2015
  const parentKeys = new Set(COLLECTIONS.map((collection) => collection.parentCollection).filter(Boolean));
2014
- return collectionsFor(platform).filter((collection) => !parentKeys.has(collection.key));
2016
+ return collectionsFor(platform).filter((collection) => collection.syncable !== false && !parentKeys.has(collection.key));
2015
2017
  };
2016
2018
  const physicalTableFor = (collection) => collection.table ?? collection.key;
2017
2019
  const resetTablesFor = (collection) => {
@@ -11047,6 +11049,8 @@ pgTable("wrapped", {
11047
11049
  status: text$1("status", { enum: WRAPPED_STATUSES }).notNull().default("pending"),
11048
11050
  quotedCredits: integer("quoted_credits").notNull().default(0),
11049
11051
  billedCredits: integer("billed_credits").notNull().default(0),
11052
+ readCount: integer("read_count").notNull().default(0),
11053
+ resumeCursor: text$1("resume_cursor"),
11050
11054
  workflowRunId: text$1("workflow_run_id"),
11051
11055
  snapshot: jsonb("snapshot").$type(),
11052
11056
  error: text$1("error"),
@@ -23961,7 +23965,7 @@ function createEnv(opts) {
23961
23965
  }
23962
23966
  //#endregion
23963
23967
  //#region package.json
23964
- var version$1 = "0.12.3";
23968
+ var version$1 = "0.13.0";
23965
23969
  //#endregion
23966
23970
  //#region src/lib/env.ts
23967
23971
  const URLWithTrailingSlash = url().transform(ensureTrailingSlash);