chirpie 1.0.30 → 1.0.31

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 +12 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -490,7 +490,10 @@ accountsCommand.command("connect-x").description("Connect a new X/Twitter accoun
490
490
  process.exit(1);
491
491
  }
492
492
  });
493
- accountsCommand.command("connect-bluesky").description("Connect a Bluesky account via app password").requiredOption("--handle <handle>", "Bluesky handle (e.g. user.bsky.social)").option("--app-password <password>", "App password (omit to enter securely via prompt)").option("--json", "Output raw JSON").action(async (opts, cmd) => {
493
+ accountsCommand.command("connect-bluesky").description("Connect a Bluesky account via app password").requiredOption(
494
+ "--handle <handle>",
495
+ "Bluesky handle. The first part alone is enough (user), and user.bsky.social, a handle on your own domain, or the account email also work"
496
+ ).option("--app-password <password>", "App password (omit to enter securely via prompt)").option("--json", "Output raw JSON").action(async (opts, cmd) => {
494
497
  const client = getClient();
495
498
  try {
496
499
  let appPassword = opts.appPassword;
@@ -550,7 +553,10 @@ accountsCommand.command("connect-threads").description("Connect a Threads (Meta)
550
553
  process.exit(1);
551
554
  }
552
555
  });
553
- accountsCommand.command("connect-mastodon").description("Connect a Mastodon account via OAuth").requiredOption("--instance <url>", "Mastodon instance URL (e.g. https://mastodon.social)").option("--json", "Output raw JSON").action(async (opts, cmd) => {
556
+ accountsCommand.command("connect-mastodon").description("Connect a Mastodon account via OAuth").requiredOption(
557
+ "--instance <instance>",
558
+ "Mastodon instance. A bare host is enough (mastodon.social), and https://mastodon.social or an @you@fosstodon.org address also work"
559
+ ).option("--json", "Output raw JSON").action(async (opts, cmd) => {
554
560
  const client = getClient();
555
561
  try {
556
562
  const result = await client.connectMastodonAccount({
@@ -609,7 +615,10 @@ accountsCommand.command("connect-facebook").description("Connect a Facebook Page
609
615
  process.exit(1);
610
616
  }
611
617
  });
612
- accountsCommand.command("connect-telegram").description("Connect a Telegram bot to a channel or group").option("--bot-token <token>", "Telegram bot token (omit to enter securely via prompt)").option("--chat-id <id>", "Telegram chat ID (omit to enter via prompt)").option("--json", "Output raw JSON").action(async (opts, cmd) => {
618
+ accountsCommand.command("connect-telegram").description("Connect a Telegram bot to a channel or group").option("--bot-token <token>", "Telegram bot token (omit to enter securely via prompt)").option(
619
+ "--chat-id <id>",
620
+ "Telegram channel or group. A bare name is enough (channelname), and @channelname, a t.me link, or a numeric chat ID also work (omit to enter via prompt)"
621
+ ).option("--json", "Output raw JSON").action(async (opts, cmd) => {
613
622
  const client = getClient();
614
623
  try {
615
624
  let botToken = opts.botToken;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chirpie",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
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.27",
47
+ "@chirpie/sdk": "^1.0.28",
48
48
  "commander": "^13"
49
49
  },
50
50
  "devDependencies": {