chirpie 1.0.23 → 1.0.25

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 +6 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -397,10 +397,14 @@ async function readSecretFromStdin(prompt) {
397
397
  var accountsCommand = new Command6("accounts").description("List connected social accounts (X, Bluesky, LinkedIn, Threads, Mastodon, Instagram, Facebook, Telegram, Pinterest, TikTok, YouTube, and Google Business Profile)").option("--json", "Output raw JSON").action(async (opts) => {
398
398
  const client = getClient();
399
399
  try {
400
- const accounts = await client.listAccounts();
400
+ const list = await client.listAccountsWithLimits();
401
+ const { accounts, accounts_limit, accounts_active } = list;
401
402
  if (opts.json) {
402
- json(accounts);
403
+ json(list);
403
404
  } else {
405
+ info(
406
+ accounts_limit === null ? `${accounts_active} accounts` : `${accounts_active} / ${accounts_limit} accounts`
407
+ );
404
408
  table(
405
409
  accounts.map((a) => ({
406
410
  id: a.id.slice(0, 8),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chirpie",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
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.21",
47
+ "@chirpie/sdk": "^1.0.23",
48
48
  "commander": "^13"
49
49
  },
50
50
  "devDependencies": {