dotshare-cli 3.2.1 β 3.2.3
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 +13 -10
- package/docs/AGENT_INTEGRATION.md +66 -13
- package/out/agent/commands.js +33 -28
- package/out/agent/server.js +18 -14
- package/out/cli/commands.js +42 -37
- package/package.json +5 -3
- package/skills/dotshare/SKILL.md +143 -206
- package/skills/dotshare/references/cli.md +35 -0
- package/skills/dotshare/references/platforms.md +63 -0
- package/skills/dotshare/references/recovery.md +21 -0
- package/skills/dotshare/references/scheduling.md +41 -0
- package/skills/dotshare/references/setup.md +48 -0
- package/skills/dotshare/references/tools.md +88 -0
- package/skills/dotshare/references/writing.md +166 -0
package/README.md
CHANGED
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
|
-
## π What's New in 3.8.
|
|
27
|
+
## π What's New in 3.8.3 β Safe Retries
|
|
28
28
|
|
|
29
|
-
- **
|
|
30
|
-
- **
|
|
31
|
-
- **
|
|
29
|
+
- **Retry what never went out:** when nothing was posted (no internet, the platform refused, an upload failed), the post is marked **Failed** with the reason, and publishing again retries only what wasn't sent. Threads continue from the part that stopped. Anything that may have been posted is still never resent.
|
|
30
|
+
- **A saved footer per account:** `dotshare-agent accounts footer <id> "#YourTag"` adds your hashtags or signature line to every post, and the preview shows it.
|
|
31
|
+
- **No more hanging publishes:** posts time out after 60 seconds and uploads after 5 minutes.
|
|
32
32
|
|
|
33
|
-
Builds on 3.
|
|
33
|
+
Builds on 3.8.2: an agent skill that setup installs for Claude Code, Codex, Cursor and Antigravity. And on 3.8: X posts through DotSuite with a monthly X budget, held and settled at what X actually charges.
|
|
34
34
|
|
|
35
|
-
[Download VS Code 3.8.
|
|
35
|
+
[Download VS Code 3.8.3 (.vsix)](https://github.com/kareem2099/DotShare/releases/download/v3.8.3/dotshare-3.8.3.vsix) Β· [CLI and MCP on npm](https://www.npmjs.com/package/dotshare-cli) Β· [Release notes and tarball](https://github.com/kareem2099/DotShare/releases/tag/v3.8.3)
|
|
36
36
|
|
|
37
37
|
---
|
|
38
38
|
|
|
@@ -49,15 +49,18 @@ server from npm, then connect your MCP client and a publishing account.
|
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
51
|
npm install -g dotshare-cli
|
|
52
|
-
dotshare-agent setup # Codex; or --client claude /
|
|
52
|
+
dotshare-agent setup # Codex; or --client claude / cursor / antigravity. Also installs the agent skill
|
|
53
53
|
dotshare-agent accounts connect work-linkedin --platform linkedin # LinkedIn/X: sign in in the browser
|
|
54
54
|
dotshare-agent accounts add personal-mastodon --platform mastodon
|
|
55
55
|
dotshare-agent doctor --account personal-mastodon
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
`accounts connect` opens your browser to sign in to LinkedIn or X. For other platforms,
|
|
59
|
-
`accounts add` asks for the credentials in hidden terminal prompts.
|
|
60
|
-
|
|
59
|
+
`accounts add` asks for the credentials in hidden terminal prompts. Setup also installs the
|
|
60
|
+
DotShare [agent skill](docs/AGENT_SKILL.md), which teaches your agent the
|
|
61
|
+
draft β preview β approval workflow. Any other MCP client works too: `--client generic`
|
|
62
|
+
prints the server entry, and `--skills-dir <dir>` puts the skill wherever your agent reads
|
|
63
|
+
skills. After setup, reconnect or restart your MCP client. Try this prompt to save a draft and prepare a preview:
|
|
61
64
|
|
|
62
65
|
> Use DotShare to save a draft titled βMy first DotShare postβ for `personal-mastodon` with the text βHello from DotShare!β and prepare a preview for me to review.
|
|
63
66
|
|
|
@@ -106,7 +109,7 @@ composer drafts remain in their existing screen; no automatic migration occurs.
|
|
|
106
109
|
code --install-extension freerave.dotshare
|
|
107
110
|
```
|
|
108
111
|
|
|
109
|
-
**From GitHub:** download the `v3.8.
|
|
112
|
+
**From GitHub:** download the `v3.8.3` VSIX above and run `code --install-extension ./dotshare-3.8.3.vsix`.
|
|
110
113
|
For the shared Publishing Library, also complete the [MCP quick start](#quick-start-for-ai-agents).
|
|
111
114
|
|
|
112
115
|
Also available on the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=freerave.dotshare) and [Open VSX](https://open-vsx.org/extension/freerave/dotshare) (VSCodium, Cursor, Windsurf and other compatible editors). Requires VS Code **1.90** or later.
|
|
@@ -14,7 +14,7 @@ Install the CLI and MCP server from npm. For an existing library, follow the [up
|
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
16
|
npm install -g dotshare-cli
|
|
17
|
-
dotshare-agent setup # Codex; or --client claude /
|
|
17
|
+
dotshare-agent setup # Codex; or --client claude / cursor / antigravity
|
|
18
18
|
dotshare-agent accounts connect work-x --platform x # LinkedIn and X: browser sign-in
|
|
19
19
|
dotshare-agent accounts add personal-mastodon --platform mastodon --name "Personal Mastodon"
|
|
20
20
|
dotshare-agent doctor --account personal-mastodon
|
|
@@ -24,7 +24,7 @@ Restart or reconnect your MCP client after setup. In Codex, ask DotShare to list
|
|
|
24
24
|
accounts, save a draft for one of them and prepare its preview. To review that draft
|
|
25
25
|
in VS Code, follow the [Publishing Library guide](PUBLISHING_LIBRARY.md).
|
|
26
26
|
|
|
27
|
-
You can also download the tarball and install it with `npm install -g ./dotshare-cli-3.2.
|
|
27
|
+
You can also download the tarball and install it with `npm install -g ./dotshare-cli-3.2.3.tgz`. [GitHub release](https://github.com/kareem2099/DotShare/releases/tag/v3.8.3)
|
|
28
28
|
|
|
29
29
|
To build and configure from source instead:
|
|
30
30
|
|
|
@@ -42,6 +42,12 @@ Account setup prompts hide typed credentials. Enter platform secrets in your
|
|
|
42
42
|
terminal prompts. Existing VS Code accounts are not automatically copied.
|
|
43
43
|
Multiple accounts on one platform use
|
|
44
44
|
different IDs. To replace an account's credentials, run `accounts add` with its ID.
|
|
45
|
+
`accounts footer <id> "<text>"` saves text added to the end of every post from that
|
|
46
|
+
account, such as hashtags or a signature line; `accounts footer <id> --clear` removes
|
|
47
|
+
it. Preview adds the footer to the last post (or before an automatic split), counts it
|
|
48
|
+
toward the limit and shows it, so the approved text is what gets published. It's
|
|
49
|
+
skipped when the text already contains it, for Dev.to articles, and when a post sets
|
|
50
|
+
`addFooter: false`. Reconnecting an account keeps its footer.
|
|
45
51
|
`accounts remove <id>` removes the local account and deletes its credential from the OS keyring.
|
|
46
52
|
It does not revoke the token on the platform. Expired/revoked platform tokens must
|
|
47
53
|
be replaced using `accounts add`, or `accounts connect` for LinkedIn and X.
|
|
@@ -55,11 +61,13 @@ local account stores only `{"via": "dotsuite"}`, and posts go through
|
|
|
55
61
|
`POST /v1/x/posts` with the DotSuite key from `dotshare cloud login`:
|
|
56
62
|
|
|
57
63
|
- Each plan has a monthly X budget. Preview calls `POST /v1/x/estimate` and shows the
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
(
|
|
62
|
-
|
|
64
|
+
most the posts can cost and the least that will be left, and refuses posts the
|
|
65
|
+
budget can't cover.
|
|
66
|
+
- It works like a card payment. The most a post can cost is held while it's pending:
|
|
67
|
+
X's list price ($0.015 per post, $0.20 with a link, plus images), with anything that
|
|
68
|
+
might be a link priced as one. After the post, DotSuite reads its X balance and
|
|
69
|
+
charges exactly what X deducted, and the rest of the hold goes back to the budget.
|
|
70
|
+
If the deduction can't be confirmed, the hold is charged. Nothing is added later.
|
|
63
71
|
- Publishing is idempotent by request ID, so retries never post or charge twice. A post
|
|
64
72
|
X doesn't confirm is charged and never resent automatically.
|
|
65
73
|
- Images and GIFs are uploaded to DotSuite first; videos aren't supported this way yet.
|
|
@@ -89,10 +97,39 @@ identified by its sign-in, not its current token. LinkedIn sign-ins last 60 days
|
|
|
89
97
|
After packaging/installing the CLI, the same commands are available through
|
|
90
98
|
`dotshare`, `dotshare-agent`, and the dedicated `dotshare-mcp` server entrypoint.
|
|
91
99
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
100
|
+
### Agent skill
|
|
101
|
+
|
|
102
|
+
The package ships an agent skill, the `skills/dotshare` folder, that teaches the agent
|
|
103
|
+
to write strong posts for each platform and to follow DotShare's draft β preview β
|
|
104
|
+
approval β publish workflow. It compares options and previews in small tables, talks
|
|
105
|
+
at the user's level (plain results for most people, what each step does for those who
|
|
106
|
+
ask), and says what DotShare can't do. `SKILL.md` stays short; the agent opens
|
|
107
|
+
`references/` (writing, platform limits, tools, scheduling, recovery, setup, CLI) only
|
|
108
|
+
when it needs them. A test keeps its limit tables in sync with the code. `setup`
|
|
109
|
+
installs the whole folder where the client loads skills, and running `setup` again
|
|
110
|
+
after an upgrade replaces it:
|
|
111
|
+
|
|
112
|
+
| Client | Installed at |
|
|
113
|
+
| --- | --- |
|
|
114
|
+
| Claude Code | `~/.claude/skills/dotshare` (or `$CLAUDE_CONFIG_DIR/skills/dotshare`) |
|
|
115
|
+
| Codex | `~/.codex/skills/dotshare` (or `$CODEX_HOME/skills/dotshare`) |
|
|
116
|
+
| Cursor | `~/.cursor/skills/dotshare` |
|
|
117
|
+
| Antigravity | `~/.gemini/config/skills/dotshare` |
|
|
118
|
+
| Any other agent | `--skills-dir <dir>` installs it as `<dir>/dotshare`, e.g. `--skills-dir ~/.agents/skills` |
|
|
119
|
+
|
|
120
|
+
The skill doesn't depend on a particular model or client. It's a standard `SKILL.md`
|
|
121
|
+
(the open Agent Skills format), so any agent that reads skills can use it, and any MCP
|
|
122
|
+
client can use the server itself. `--skills-dir` works with every `--client`, including
|
|
123
|
+
`generic`, and replaces the client's default skills directory.
|
|
124
|
+
|
|
125
|
+
An older DotShare copy is replaced as a whole, so files it no longer ships go away. A different skill already named `dotshare` is
|
|
126
|
+
kept unless you pass `--replace`, and then it's backed up to `~/.dotshare/skill-backups`
|
|
127
|
+
(outside the skills directory, so it isn't loaded twice). A symlinked
|
|
128
|
+
skill is never written through. `--no-skill` skips it, and `doctor` (with the same
|
|
129
|
+
`--client` or `--skills-dir`) warns when it's missing or from another version. You can
|
|
130
|
+
also copy the folder yourself from `$(npm root -g)/dotshare-cli/skills/dotshare`. Start
|
|
131
|
+
a new agent session to load it. [Install the agent skill](AGENT_SKILL.md) explains what
|
|
132
|
+
it changes for you.
|
|
96
133
|
|
|
97
134
|
### Credential fields
|
|
98
135
|
|
|
@@ -179,7 +216,8 @@ dotshare-agent setup --text-only
|
|
|
179
216
|
dotshare-agent setup --dry-run
|
|
180
217
|
dotshare-agent setup --client claude
|
|
181
218
|
dotshare-agent setup --client cursor
|
|
182
|
-
dotshare-agent setup --client
|
|
219
|
+
dotshare-agent setup --client antigravity
|
|
220
|
+
dotshare-agent setup --client generic --skills-dir ~/.agents/skills
|
|
183
221
|
dotshare-agent setup --config /absolute/path/to/config.toml --json
|
|
184
222
|
```
|
|
185
223
|
|
|
@@ -187,7 +225,10 @@ dotshare-agent setup --config /absolute/path/to/config.toml --json
|
|
|
187
225
|
settings. `--client claude` adds DotShare to Claude Code's user scope by running
|
|
188
226
|
`claude mcp add-json` (with `--dry-run` it prints that command instead).
|
|
189
227
|
`--client cursor` merges a `dotshare` entry into `~/.cursor/mcp.json` (or `--config`),
|
|
190
|
-
keeping other servers and settings and saving a backup. `--client
|
|
228
|
+
keeping other servers and settings and saving a backup. `--client antigravity` does the
|
|
229
|
+
same in `~/.gemini/config/mcp_config.json`, which the Antigravity app and CLI share; then
|
|
230
|
+
refresh MCP servers in the agent panel (Customizations β MCP Servers) and start a new
|
|
231
|
+
conversation. `--client generic` prints an
|
|
191
232
|
`mcpServers` JSON snippet for manual import; adapt the wrapper key to your client's format. A different existing DotShare server
|
|
192
233
|
is preserved unless `--replace` is explicitly supplied. Existing inline/dotted-key
|
|
193
234
|
DotShare TOML entries must be converted to `[mcp_servers.dotshare]` before automatic
|
|
@@ -567,6 +608,18 @@ not platform credentials or full post bodies.
|
|
|
567
608
|
- A timeout can occur after a platform accepted a post. `needs_review`, `uncertain`,
|
|
568
609
|
and stale `running` operations require inspection of the destination, not an
|
|
569
610
|
automatic retry with a new ID. Already published parts are not rolled back.
|
|
611
|
+
- Some failures prove nothing was sent: the connection never opened (DNS failure, no
|
|
612
|
+
network route, connection refused, a connect timeout, a bad TLS certificate), the
|
|
613
|
+
platform refused the request (400, 401, 403, 404, 413, 422, 429), or the step that
|
|
614
|
+
failed came before the post itself (signing in, uploading media). Those accounts are
|
|
615
|
+
`not_sent` and the operation is `failed` (draft status `Failed`), with a plain reason
|
|
616
|
+
in each account's `error`. Publishing again with the **same** requestId retries only
|
|
617
|
+
those accounts and continues a thread after its last published part (Mastodon,
|
|
618
|
+
Bluesky and X with your own token; a partial Telegram, LinkedIn first comment or
|
|
619
|
+
Discord delivery stays `needs_review`). A `Failed` draft that posted nothing anywhere
|
|
620
|
+
can also be edited, previewed again and published with a new requestId.
|
|
621
|
+
- Every request that creates a post times out after 60 seconds, and each media upload
|
|
622
|
+
after 5 minutes, so a dead connection can't hang a publish.
|
|
570
623
|
- To intentionally publish the same content again, provide a new user-authorized ID.
|
|
571
624
|
- `operation <requestId>` and `history` recover local results. Credentials must be
|
|
572
625
|
available for all target accounts before the first publication starts.
|