dotshare-cli 3.1.0 → 3.2.0
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 +8 -8
- package/docs/AGENT_INTEGRATION.md +23 -1
- package/out/agent/commands.js +23 -22
- package/out/agent/server.js +15 -14
- package/out/cli/commands.js +37 -36
- package/package.json +1 -1
- package/skills/dotshare/SKILL.md +15 -2
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "dotshare-cli",
|
|
3
3
|
"displayName": "DotShare CLI",
|
|
4
4
|
"description": "Publish posts, images and threads to seven platforms from AI agents, MCP clients or the CLI.",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.2.0",
|
|
6
6
|
"bin": {
|
|
7
7
|
"dotshare": "./bin/dotshare-cli.js",
|
|
8
8
|
"dotshare-mcp": "./bin/dotshare-mcp.js",
|
package/skills/dotshare/SKILL.md
CHANGED
|
@@ -28,7 +28,10 @@ dotshare-agent doctor --check-accounts
|
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
`accounts connect` opens the browser to sign in. There's nothing to copy, and X
|
|
31
|
-
sign-ins renew themselves.
|
|
31
|
+
sign-ins renew themselves. When X is connected **through DotSuite** (the account's
|
|
32
|
+
credentials are only `via: dotsuite`), the X token stays on DotSuite: X posts go
|
|
33
|
+
through the user's DotSuite account (`dotshare cloud login` required) and each one is
|
|
34
|
+
charged to the plan's monthly X budget. `accounts add` prompts for the other platforms'
|
|
32
35
|
credentials with hidden input. Everything is stored in the OS keyring. Fields:
|
|
33
36
|
Mastodon `instance`, `accessToken`; Bluesky `identifier`, `password` (an app
|
|
34
37
|
password); Telegram `botToken`, `chatId`; Discord `webhookUrl`; Dev.to `apiKey`. After an upgrade the
|
|
@@ -94,7 +97,7 @@ capabilities, and Mastodon's limit is read from the user's instance.
|
|
|
94
97
|
|
|
95
98
|
| Platform | Text limit | Threads | Images per post | Notes |
|
|
96
99
|
|---|---|---|---|---|
|
|
97
|
-
| X | 280 (URLs count as 23) | yes | 4 | Hook in the first part. |
|
|
100
|
+
| X | 280 (URLs count as 23) | yes | 4 | Hook in the first part. Through DotSuite, each post costs budget (a link costs much more); preview shows it. |
|
|
98
101
|
| Bluesky | 300 | yes | 4, ≤1 MB each, WebP ok | Links, #hashtags and @handle.domain mentions become clickable (unknown handles stay plain text). |
|
|
99
102
|
| Mastodon | instance limit (default 500; URLs count as 23) | yes | 4, WebP ok | Hashtags drive discovery; use CamelCase (#OpenSource). |
|
|
100
103
|
| LinkedIn | 3,000 | no | 1 | Put the link in `firstComment` (≤1,250 chars), not the body. |
|
|
@@ -162,6 +165,16 @@ Every publish, schedule and cancel is recorded on disk by `requestId`.
|
|
|
162
165
|
- Errors before publishing (preview errors, missing credentials) publish nothing.
|
|
163
166
|
Fix the cause, re-preview and ask again.
|
|
164
167
|
|
|
168
|
+
### X through DotSuite: costs
|
|
169
|
+
|
|
170
|
+
DotSuite pays X per post, so an X account connected through DotSuite has a monthly X
|
|
171
|
+
budget. Preview warns with the exact charge and what's left, for example
|
|
172
|
+
`X will charge $0.215 for 2 post(s), 1 with a link; $4.785 ... left`, and refuses
|
|
173
|
+
posts the budget can't cover. A post with a link costs about 13 times a plain post, so
|
|
174
|
+
when the user asks you to save budget, put the link in a reply only if they want it,
|
|
175
|
+
or leave it out. Tell the user the cost before asking for approval. Images and GIFs
|
|
176
|
+
work; videos don't (yet). Stats aren't available for these accounts.
|
|
177
|
+
|
|
165
178
|
## 6. How did it do? (stats)
|
|
166
179
|
|
|
167
180
|
`get_post_stats { requestId }` or `{ draftId }` reads current engagement for something
|