chirpie 1.0.3 → 1.0.5
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/dist/index.js +27 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -286,7 +286,7 @@ postsCommand.command("delete <id>").description("Delete a post").action(async (i
|
|
|
286
286
|
|
|
287
287
|
// src/commands/accounts.ts
|
|
288
288
|
import { Command as Command6 } from "commander";
|
|
289
|
-
var accountsCommand = new Command6("accounts").description("List connected social accounts (X and
|
|
289
|
+
var accountsCommand = new Command6("accounts").description("List connected social accounts (X, Bluesky, LinkedIn, and Threads)").option("--json", "Output raw JSON").action(async (opts) => {
|
|
290
290
|
const client = getClient();
|
|
291
291
|
try {
|
|
292
292
|
const accounts = await client.listAccounts();
|
|
@@ -351,6 +351,32 @@ accountsCommand.command("connect-bluesky").description("Connect a Bluesky accoun
|
|
|
351
351
|
process.exit(1);
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
|
+
accountsCommand.command("connect-linkedin").description("Connect a LinkedIn account via OAuth").action(async () => {
|
|
355
|
+
const client = getClient();
|
|
356
|
+
try {
|
|
357
|
+
const result = await client.connectLinkedInAccount();
|
|
358
|
+
info("Open this URL in your browser to connect your LinkedIn account:");
|
|
359
|
+
console.log(`
|
|
360
|
+
${result.authorization_url}
|
|
361
|
+
`);
|
|
362
|
+
} catch (err) {
|
|
363
|
+
error(err instanceof Error ? err.message : "Failed to start LinkedIn connection");
|
|
364
|
+
process.exit(1);
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
accountsCommand.command("connect-threads").description("Connect a Threads (Meta) account via OAuth").action(async () => {
|
|
368
|
+
const client = getClient();
|
|
369
|
+
try {
|
|
370
|
+
const result = await client.connectThreadsAccount();
|
|
371
|
+
info("Open this URL in your browser to connect your Threads account:");
|
|
372
|
+
console.log(`
|
|
373
|
+
${result.authorization_url}
|
|
374
|
+
`);
|
|
375
|
+
} catch (err) {
|
|
376
|
+
error(err instanceof Error ? err.message : "Failed to start Threads connection");
|
|
377
|
+
process.exit(1);
|
|
378
|
+
}
|
|
379
|
+
});
|
|
354
380
|
|
|
355
381
|
// src/commands/analytics.ts
|
|
356
382
|
import { Command as Command7 } from "commander";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chirpie",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
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.
|
|
34
|
+
"@chirpie/sdk": "^1.0.4",
|
|
35
35
|
"commander": "^13"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|