dotshare-cli 3.2.1 β†’ 3.2.2

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 CHANGED
@@ -24,15 +24,15 @@
24
24
 
25
25
  ---
26
26
 
27
- ## πŸ†• What's New in 3.8.1 β€” Fair X
27
+ ## πŸ†• What's New in 3.8.2 β€” Skilled Agents
28
28
 
29
- - **X posts go through DotSuite** and count against your plan's monthly X budget (X charges per post). Your X token stays on DotSuite.
30
- - **See the cost before you post:** agents show the exact X charge and what's left, and the DotSuite dashboard lists every charge.
31
- - **Fair charges:** the most a post can cost is held while it's pending, then you pay what X actually took and the rest is released.
29
+ - **A much better agent skill:** your AI agent writes native posts for each platform, compares choices and previews in small tables, and talks at your level. [What it changes](docs/AGENT_SKILL.md).
30
+ - **Setup installs it for you** in Claude Code, Codex, Cursor and now **Antigravity**, or anywhere with `--skills-dir`. Run setup again after an upgrade to update it.
31
+ - **Fair X charges:** the most a post can cost is held while it's pending, then you pay what X actually took and the rest is released.
32
32
 
33
- Builds on 3.7.0: sign-in on dotsuite.dev, browser sign-in for agents, `schedule_draft`, video and GIFs, Bluesky mentions, post stats and setup for Claude Code and Cursor.
33
+ Builds on 3.8: X posts through DotSuite with a monthly X budget. And on 3.7: sign-in on dotsuite.dev, browser sign-in for agents, `schedule_draft`, video and GIFs, Bluesky mentions and post stats.
34
34
 
35
- [Download VS Code 3.8.1 (.vsix)](https://github.com/kareem2099/DotShare/releases/download/v3.8.1/dotshare-3.8.1.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.1)
35
+ [Download VS Code 3.8.2 (.vsix)](https://github.com/kareem2099/DotShare/releases/download/v3.8.2/dotshare-3.8.2.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.2)
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 / --client cursor
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. After setup, reconnect
60
- or restart your MCP client. Try this prompt to save a draft and prepare a preview:
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.1` VSIX above and run `code --install-extension ./dotshare-3.8.1.vsix`.
112
+ **From GitHub:** download the `v3.8.2` VSIX above and run `code --install-extension ./dotshare-3.8.2.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 / --client cursor
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.1.tgz`. [GitHub release](https://github.com/kareem2099/DotShare/releases/tag/v3.8.1)
27
+ You can also download the tarball and install it with `npm install -g ./dotshare-cli-3.2.2.tgz`. [GitHub release](https://github.com/kareem2099/DotShare/releases/tag/v3.8.2)
28
28
 
29
29
  To build and configure from source instead:
30
30
 
@@ -55,11 +55,13 @@ local account stores only `{"via": "dotsuite"}`, and posts go through
55
55
  `POST /v1/x/posts` with the DotSuite key from `dotshare cloud login`:
56
56
 
57
57
  - Each plan has a monthly X budget. Preview calls `POST /v1/x/estimate` and shows the
58
- exact charge and what's left, and refuses posts the budget can't cover.
59
- - Prices follow X's list ($0.015 per post, $0.20 with a link, plus images). Anything
60
- that might be a link is priced as one, and if X deducts more than the estimate
61
- (measured from DotSuite's X balance before and after each post), the actual amount
62
- is charged.
58
+ most the posts can cost and the least that will be left, and refuses posts the
59
+ budget can't cover.
60
+ - It works like a card payment. The most a post can cost is held while it's pending:
61
+ X's list price ($0.015 per post, $0.20 with a link, plus images), with anything that
62
+ might be a link priced as one. After the post, DotSuite reads its X balance and
63
+ charges exactly what X deducted, and the rest of the hold goes back to the budget.
64
+ If the deduction can't be confirmed, the hold is charged. Nothing is added later.
63
65
  - Publishing is idempotent by request ID, so retries never post or charge twice. A post
64
66
  X doesn't confirm is charged and never resent automatically.
65
67
  - Images and GIFs are uploaded to DotSuite first; videos aren't supported this way yet.
@@ -89,10 +91,39 @@ identified by its sign-in, not its current token. LinkedIn sign-ins last 60 days
89
91
  After packaging/installing the CLI, the same commands are available through
90
92
  `dotshare`, `dotshare-agent`, and the dedicated `dotshare-mcp` server entrypoint.
91
93
 
92
- The npm package also ships an agent skill at `skills/dotshare/SKILL.md` (in the
93
- installed package directory, e.g. `$(npm root -g)/dotshare-cli/skills/dotshare`). Copy
94
- that folder into your agent's skills directory so it follows DotShare's draft β†’ preview
95
- β†’ approval β†’ publish workflow and per-platform rules.
94
+ ### Agent skill
95
+
96
+ The package ships an agent skill, the `skills/dotshare` folder, that teaches the agent
97
+ to write strong posts for each platform and to follow DotShare's draft β†’ preview β†’
98
+ approval β†’ publish workflow. It compares options and previews in small tables, talks
99
+ at the user's level (plain results for most people, what each step does for those who
100
+ ask), and says what DotShare can't do. `SKILL.md` stays short; the agent opens
101
+ `references/` (writing, platform limits, tools, scheduling, recovery, setup, CLI) only
102
+ when it needs them. A test keeps its limit tables in sync with the code. `setup`
103
+ installs the whole folder where the client loads skills, and running `setup` again
104
+ after an upgrade replaces it:
105
+
106
+ | Client | Installed at |
107
+ | --- | --- |
108
+ | Claude Code | `~/.claude/skills/dotshare` (or `$CLAUDE_CONFIG_DIR/skills/dotshare`) |
109
+ | Codex | `~/.codex/skills/dotshare` (or `$CODEX_HOME/skills/dotshare`) |
110
+ | Cursor | `~/.cursor/skills/dotshare` |
111
+ | Antigravity | `~/.gemini/config/skills/dotshare` |
112
+ | Any other agent | `--skills-dir <dir>` installs it as `<dir>/dotshare`, e.g. `--skills-dir ~/.agents/skills` |
113
+
114
+ The skill doesn't depend on a particular model or client. It's a standard `SKILL.md`
115
+ (the open Agent Skills format), so any agent that reads skills can use it, and any MCP
116
+ client can use the server itself. `--skills-dir` works with every `--client`, including
117
+ `generic`, and replaces the client's default skills directory.
118
+
119
+ An older DotShare copy is replaced as a whole, so files it no longer ships go away. A different skill already named `dotshare` is
120
+ kept unless you pass `--replace`, and then it's backed up to `~/.dotshare/skill-backups`
121
+ (outside the skills directory, so it isn't loaded twice). A symlinked
122
+ skill is never written through. `--no-skill` skips it, and `doctor` (with the same
123
+ `--client` or `--skills-dir`) warns when it's missing or from another version. You can
124
+ also copy the folder yourself from `$(npm root -g)/dotshare-cli/skills/dotshare`. Start
125
+ a new agent session to load it. [Install the agent skill](AGENT_SKILL.md) explains what
126
+ it changes for you.
96
127
 
97
128
  ### Credential fields
98
129
 
@@ -179,7 +210,8 @@ dotshare-agent setup --text-only
179
210
  dotshare-agent setup --dry-run
180
211
  dotshare-agent setup --client claude
181
212
  dotshare-agent setup --client cursor
182
- dotshare-agent setup --client generic
213
+ dotshare-agent setup --client antigravity
214
+ dotshare-agent setup --client generic --skills-dir ~/.agents/skills
183
215
  dotshare-agent setup --config /absolute/path/to/config.toml --json
184
216
  ```
185
217
 
@@ -187,7 +219,10 @@ dotshare-agent setup --config /absolute/path/to/config.toml --json
187
219
  settings. `--client claude` adds DotShare to Claude Code's user scope by running
188
220
  `claude mcp add-json` (with `--dry-run` it prints that command instead).
189
221
  `--client cursor` merges a `dotshare` entry into `~/.cursor/mcp.json` (or `--config`),
190
- keeping other servers and settings and saving a backup. `--client generic` prints an
222
+ keeping other servers and settings and saving a backup. `--client antigravity` does the
223
+ same in `~/.gemini/config/mcp_config.json`, which the Antigravity app and CLI share; then
224
+ refresh MCP servers in the agent panel (Customizations β†’ MCP Servers) and start a new
225
+ conversation. `--client generic` prints an
191
226
  `mcpServers` JSON snippet for manual import; adapt the wrapper key to your client's format. A different existing DotShare server
192
227
  is preserved unless `--replace` is explicitly supplied. Existing inline/dotted-key
193
228
  DotShare TOML entries must be converted to `[mcp_servers.dotshare]` before automatic