chirpie 1.0.8 → 1.0.10

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -71
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -149,7 +149,7 @@ function getClient() {
149
149
  }
150
150
 
151
151
  // src/commands/post.ts
152
- var postCommand = new Command3("post").description("Create a post on X").argument("<text>", "Post text (max 280 chars, or 25,000 for X Premium accounts)").option("-a, --account <id>", "Account ID").option("-m, --media <urls...>", "Media URLs (up to 4 images or 1 video)").option("-s, --schedule <datetime>", "Schedule for later (ISO 8601)").option("--json", "Output raw JSON").action(async (text, opts) => {
152
+ var postCommand = new Command3("post").description("Create a post").argument("<text>", "Post text").option("-a, --account <id>", "Account ID").option("-m, --media <urls...>", "Media URLs (up to 4 images or 1 video)").option("-s, --schedule <datetime>", "Schedule for later (ISO 8601)").option("--json", "Output raw JSON").action(async (text, opts) => {
153
153
  const client = getClient();
154
154
  let accountId = opts.account;
155
155
  if (!accountId) {
@@ -161,7 +161,7 @@ var postCommand = new Command3("post").description("Create a post on X").argumen
161
161
  }
162
162
  if (active.length > 1) {
163
163
  error("Multiple accounts found. Use --account <id> to specify:");
164
- active.forEach((a) => console.log(` ${a.id} @${a.x_username}`));
164
+ active.forEach((a) => console.log(` ${a.id} @${a.username}`));
165
165
  process.exit(1);
166
166
  }
167
167
  accountId = active[0].id;
@@ -188,7 +188,7 @@ var postCommand = new Command3("post").description("Create a post on X").argumen
188
188
 
189
189
  // src/commands/thread.ts
190
190
  import { Command as Command4 } from "commander";
191
- var threadCommand = new Command4("thread").description("Create a thread on X").argument("<posts...>", "Thread posts (each argument is one post)").option("-a, --account <id>", "Account ID").option("-s, --schedule <datetime>", "Schedule for later (ISO 8601)").option("--json", "Output raw JSON").action(async (posts, opts) => {
191
+ var threadCommand = new Command4("thread").description("Create a thread").argument("<posts...>", "Thread posts (each argument is one post in the thread)").option("-a, --account <id>", "Account ID").option("-s, --schedule <datetime>", "Schedule for later (ISO 8601)").option("--json", "Output raw JSON").action(async (posts, opts) => {
192
192
  const client = getClient();
193
193
  let accountId = opts.account;
194
194
  if (!accountId) {
@@ -200,7 +200,7 @@ var threadCommand = new Command4("thread").description("Create a thread on X").a
200
200
  }
201
201
  if (active.length > 1) {
202
202
  error("Multiple accounts found. Use --account <id> to specify:");
203
- active.forEach((a) => console.log(` ${a.id} @${a.x_username}`));
203
+ active.forEach((a) => console.log(` ${a.id} @${a.username}`));
204
204
  process.exit(1);
205
205
  }
206
206
  accountId = active[0].id;
@@ -266,7 +266,7 @@ postsCommand.command("get <id>").description("Get a post by ID").option("--json"
266
266
  console.log(`Created: ${post.created_at}`);
267
267
  if (post.scheduled_at) console.log(`Scheduled: ${post.scheduled_at}`);
268
268
  if (post.published_at) console.log(`Published: ${post.published_at}`);
269
- if (post.platform_post_id) console.log(`X Post ID: ${post.platform_post_id}`);
269
+ if (post.platform_post_id) console.log(`Platform Post ID: ${post.platform_post_id}`);
270
270
  }
271
271
  } catch (err) {
272
272
  error(err instanceof Error ? err.message : "Failed to get post");
@@ -466,82 +466,22 @@ accountsCommand.command("connect-telegram").description("Connect a Telegram bot
466
466
  }
467
467
  });
468
468
  accountsCommand.command("connect-reddit").description("Connect a Reddit account via OAuth").action(async () => {
469
- const client = getClient();
470
- try {
471
- const result = await client.connectRedditAccount();
472
- info("Open this URL in your browser to connect your Reddit account:");
473
- console.log(`
474
- ${result.authorization_url}
475
- `);
476
- } catch (err) {
477
- error(err instanceof Error ? err.message : "Failed to start Reddit connection");
478
- process.exit(1);
479
- }
469
+ info("Reddit integration is coming soon. Check chirpie.ai for updates.");
480
470
  });
481
471
  accountsCommand.command("connect-pinterest").description("Connect a Pinterest account via OAuth").action(async () => {
482
- const client = getClient();
483
- try {
484
- const result = await client.connectPinterestAccount();
485
- info("Open this URL in your browser to connect your Pinterest account:");
486
- console.log(`
487
- ${result.authorization_url}
488
- `);
489
- } catch (err) {
490
- error(err instanceof Error ? err.message : "Failed to start Pinterest connection");
491
- process.exit(1);
492
- }
472
+ info("Pinterest integration is coming soon. Check chirpie.ai for updates.");
493
473
  });
494
474
  accountsCommand.command("connect-tiktok").description("Connect a TikTok account via OAuth").action(async () => {
495
- const client = getClient();
496
- try {
497
- const result = await client.connectTikTokAccount();
498
- info("Open this URL in your browser to connect your TikTok account:");
499
- console.log(`
500
- ${result.authorization_url}
501
- `);
502
- } catch (err) {
503
- error(err instanceof Error ? err.message : "Failed to start TikTok connection");
504
- process.exit(1);
505
- }
475
+ info("TikTok integration is coming soon. Check chirpie.ai for updates.");
506
476
  });
507
477
  accountsCommand.command("connect-youtube").description("Connect a YouTube channel via Google OAuth").action(async () => {
508
- const client = getClient();
509
- try {
510
- const result = await client.connectYouTubeAccount();
511
- info("Open this URL in your browser to connect your YouTube channel:");
512
- console.log(`
513
- ${result.authorization_url}
514
- `);
515
- } catch (err) {
516
- error(err instanceof Error ? err.message : "Failed to start YouTube connection");
517
- process.exit(1);
518
- }
478
+ info("YouTube integration is coming soon. Check chirpie.ai for updates.");
519
479
  });
520
480
  accountsCommand.command("connect-google-business").description("Connect a Google Business Profile via Google OAuth").action(async () => {
521
- const client = getClient();
522
- try {
523
- const result = await client.connectGBPAccount();
524
- info("Open this URL in your browser to connect your Google Business Profile:");
525
- console.log(`
526
- ${result.authorization_url}
527
- `);
528
- } catch (err) {
529
- error(err instanceof Error ? err.message : "Failed to start Google Business Profile connection");
530
- process.exit(1);
531
- }
481
+ info("Google Business Profile integration is coming soon. Check chirpie.ai for updates.");
532
482
  });
533
483
  accountsCommand.command("connect-snapchat").description("Connect a Snapchat account via OAuth").action(async () => {
534
- const client = getClient();
535
- try {
536
- const result = await client.connectSnapchatAccount();
537
- info("Open this URL in your browser to connect your Snapchat account:");
538
- console.log(`
539
- ${result.authorization_url}
540
- `);
541
- } catch (err) {
542
- error(err instanceof Error ? err.message : "Failed to start Snapchat connection");
543
- process.exit(1);
544
- }
484
+ info("Snapchat integration is coming soon. Check chirpie.ai for updates.");
545
485
  });
546
486
 
547
487
  // src/commands/analytics.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chirpie",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Chirpie CLI — post to social media from the command line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "@chirpie/sdk": "^1.0.7",
34
+ "@chirpie/sdk": "^1.0.8",
35
35
  "commander": "^13"
36
36
  },
37
37
  "devDependencies": {