chirpie 1.0.33 → 1.0.35

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/README.md CHANGED
@@ -40,6 +40,7 @@ export CHIRPIE_API_KEY=chirpie_sk_...
40
40
  | `chirpie accounts connect-x` | Start the X OAuth flow and print the URL |
41
41
  | `chirpie accounts connect-bluesky` | Connect Bluesky with an app password |
42
42
  | `chirpie accounts connect-linkedin` / `connect-threads` / `connect-mastodon` / `connect-instagram` / `connect-facebook` | Start that platform's OAuth flow |
43
+ | `chirpie accounts connect-linkedin --pages` | Connect the LinkedIn Pages you administer, each as its own account (coming soon) |
43
44
  | `chirpie accounts connect-telegram` | Connect a Telegram bot to a channel or group |
44
45
  | `chirpie accounts x-keys set` / `status` / `remove` | Use your own X developer app |
45
46
  | `chirpie analytics <post_id>` | Engagement metrics for a published post |
package/dist/index.js CHANGED
@@ -418,7 +418,9 @@ var accountsCommand = new Command6("accounts").description("List connected socia
418
418
  table(
419
419
  accounts.map((a) => ({
420
420
  id: a.id.slice(0, 8),
421
- platform: a.platform,
421
+ // A LinkedIn row is either your profile or a Page you administer,
422
+ // and the two read identically without saying which.
423
+ platform: a.account_type === "organization" ? `${a.platform} (page)` : a.platform,
422
424
  username: a.platform === "x" ? `@${a.username}` : a.username,
423
425
  name: a.display_name ?? "",
424
426
  active: a.is_active ? "\u2713" : "\u2717",
@@ -519,14 +521,23 @@ accountsCommand.command("connect-bluesky").description("Connect a Bluesky accoun
519
521
  process.exit(1);
520
522
  }
521
523
  });
522
- accountsCommand.command("connect-linkedin").description("Connect a LinkedIn account via OAuth").option("--json", "Output raw JSON").action(async (opts, cmd) => {
524
+ accountsCommand.command("connect-linkedin").description(
525
+ "Connect LinkedIn via OAuth. Connects your profile by default; pass --pages for the LinkedIn Pages you administer (coming soon)"
526
+ ).option(
527
+ "--pages",
528
+ "Connect the LinkedIn Pages you administer, each as its own account (coming soon)"
529
+ ).option("--json", "Output raw JSON").action(async (opts, cmd) => {
523
530
  const client = getClient();
524
531
  try {
525
- const result = await client.connectLinkedInAccount();
532
+ const result = await client.connectLinkedInAccount(
533
+ opts.pages ? "pages" : void 0
534
+ );
526
535
  if (wantsJson(opts, cmd)) {
527
536
  json(result);
528
537
  } else {
529
- info("Open this URL in your browser to connect your LinkedIn account:");
538
+ info(
539
+ opts.pages ? "Open this URL in your browser to connect your LinkedIn Pages:" : "Open this URL in your browser to connect your LinkedIn account:"
540
+ );
530
541
  console.log(`
531
542
  ${result.authorization_url}
532
543
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chirpie",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "description": "Chirpie CLI: post to social media from the command line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,7 +44,7 @@
44
44
  ],
45
45
  "license": "MIT",
46
46
  "dependencies": {
47
- "@chirpie/sdk": "^1.0.30",
47
+ "@chirpie/sdk": "^1.0.32",
48
48
  "commander": "^13"
49
49
  },
50
50
  "devDependencies": {