dotshare-cli 1.0.0 โ†’ 3.0.1

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 (57) hide show
  1. package/LICENSE +201 -21
  2. package/README.md +258 -189
  3. package/SECURITY.md +145 -0
  4. package/bin/dotshare-agent.js +7 -0
  5. package/bin/dotshare-cli.js +11 -7
  6. package/bin/dotshare-mcp.js +6 -0
  7. package/docs/AGENT_INTEGRATION.md +556 -0
  8. package/out/agent/commands.js +120 -0
  9. package/out/agent/server.js +98 -0
  10. package/out/cli/commands.js +129 -376
  11. package/package.json +34 -94
  12. package/bin/dotshare-scheduler.js +0 -208
  13. package/out/analytics.js +0 -67
  14. package/out/analytics.js.map +0 -1
  15. package/out/bluesky.js +0 -100
  16. package/out/bluesky.js.map +0 -1
  17. package/out/cli/commands.js.map +0 -1
  18. package/out/cli/config.js +0 -144
  19. package/out/cli/config.js.map +0 -1
  20. package/out/credential-provider.js +0 -92
  21. package/out/credential-provider.js.map +0 -1
  22. package/out/discord.js +0 -85
  23. package/out/discord.js.map +0 -1
  24. package/out/extension.js +0 -1383
  25. package/out/extension.js.map +0 -1
  26. package/out/facebook.js +0 -66
  27. package/out/facebook.js.map +0 -1
  28. package/out/gemini.js +0 -219
  29. package/out/gemini.js.map +0 -1
  30. package/out/linkedin.js +0 -110
  31. package/out/linkedin.js.map +0 -1
  32. package/out/message-handlers.js +0 -391
  33. package/out/message-handlers.js.map +0 -1
  34. package/out/openai.js +0 -217
  35. package/out/openai.js.map +0 -1
  36. package/out/post-executor.js +0 -168
  37. package/out/post-executor.js.map +0 -1
  38. package/out/reddit.js +0 -538
  39. package/out/reddit.js.map +0 -1
  40. package/out/scheduled-posts.js +0 -100
  41. package/out/scheduled-posts.js.map +0 -1
  42. package/out/scheduler.js +0 -98
  43. package/out/scheduler.js.map +0 -1
  44. package/out/storage-manager.js +0 -403
  45. package/out/storage-manager.js.map +0 -1
  46. package/out/telegram.js +0 -104
  47. package/out/telegram.js.map +0 -1
  48. package/out/types.js +0 -3
  49. package/out/types.js.map +0 -1
  50. package/out/webview-provider.js +0 -168
  51. package/out/webview-provider.js.map +0 -1
  52. package/out/x.js +0 -55
  53. package/out/x.js.map +0 -1
  54. package/out/xai.js +0 -235
  55. package/out/xai.js.map +0 -1
  56. package/src/cli/commands.ts +0 -380
  57. package/src/cli/config.ts +0 -148
package/README.md CHANGED
@@ -1,253 +1,322 @@
1
- # DotShare
1
+ <div align="center">
2
2
 
3
- [![Version](https://img.shields.io/badge/version-2.0.0-blue.svg)](https://github.com/kareem2099/DotShare)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3
+ <img src="https://raw.githubusercontent.com/kareem2099/DotShare/master/assets/icons/icon.png" alt="DotShare logo" width="96" height="96">
5
4
 
6
- A VS Code extension that helps you share your project updates to social media using AI-powered content generation.
5
+ # DotShare โ€” Share Code Updates to LinkedIn, X, Bluesky, Mastodon & Dev.to from VS Code
7
6
 
8
- ## Features
7
+ **Write, generate with AI, and publish developer updates, threads, code snapshots and Dev.to articles without leaving your editor.**
9
8
 
10
- - ๐Ÿค– **AI-Powered Content Generation**: Generate engaging social media posts using Gemini AI, OpenAI, or xAI
11
- - โœ๏ธ **Manual Post Creation**: Write and post content manually without AI assistance
12
- - ๐Ÿ“Ž **Enhanced Media Upload**: Drag-and-drop and click-to-browse functionality for images and videos
13
- - ๐Ÿ”— **LinkedIn Integration**: Share posts directly to LinkedIn
14
- - ๐Ÿ“ฑ **Telegram Support**: Post to Telegram channels and groups
15
- - ๐Ÿฆ **X/Twitter Integration**: Post directly to X (formerly Twitter)
16
- - ๐Ÿ“˜ **Facebook Support**: Share to Facebook profiles and pages
17
- - ๐Ÿ”ต **Discord Webhooks**: Post updates to Discord channels
18
- - ๐ŸŸ  **Reddit Integration**: Submit posts to Reddit communities and user profiles (r/ and u/)
19
- - ๐ŸŒ… **BlueSky Support**: Early adopter integration with BlueSky social
20
- - โฐ **Scheduled Posting**: CLI tool for automated cross-platform posting
21
- - ๐ŸŒ **Multi-language Support**: English, Arabic, and Russian
22
- - ๐ŸŽจ **Interactive UI**: Built-in webview for managing your posts with improved user experience
23
- - ๐Ÿ“Š **Analytics Dashboard**: Track posting performance across platforms
9
+ [![VS Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/freerave.dotshare?label=VS%20Marketplace&logo=visualstudiocode&color=007ACC)](https://marketplace.visualstudio.com/items?itemName=freerave.dotshare)
10
+ [![Installs](https://img.shields.io/visual-studio-marketplace/i/freerave.dotshare?color=10b981)](https://marketplace.visualstudio.com/items?itemName=freerave.dotshare)
11
+ [![Open VSX](https://img.shields.io/open-vsx/v/freerave/dotshare?label=Open%20VSX&color=a60ee5)](https://open-vsx.org/extension/freerave/dotshare)
12
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://github.com/kareem2099/DotShare/blob/master/LICENSE)
13
+ [![GitHub Stars](https://img.shields.io/github/stars/kareem2099/DotShare?style=flat&logo=github)](https://github.com/kareem2099/DotShare)
24
14
 
25
- ## Installation
15
+ [Install](#-install) ยท [MCP quick start](#quick-start-for-ai-agents) ยท [Publishing Library](docs/PUBLISHING_LIBRARY.md) ยท [Changelog](CHANGELOG.md) ยท [Website](https://dotsuite.dev/en/product/dotshare)
26
16
 
27
- ### VS Code Extension
17
+ </div>
28
18
 
29
- 1. Open VS Code
30
- 2. Go to Extensions (Ctrl+Shift+X)
31
- 3. Search for "DotShare"
32
- 4. Click Install
19
+ ---
33
20
 
34
- ### CLI Scheduler
21
+ **DotShare** is a free, open-source **VS Code extension for building in public**. It turns your commits, changelog and code into posts for **LinkedIn, X (Twitter), Bluesky, Mastodon, Telegram, Discord and Dev.to**, then publishes them directly from the editor. Generate drafts with **Gemini, OpenAI, Claude, DeepSeek or Grok**, build threads, attach images, capture **CodeSnap** code screenshots, create **GitHub Gists**, and schedule posts through **[DotSuite](https://dotsuite.dev)** cloud.
35
22
 
36
- The CLI scheduler can be used independently for automated posting:
23
+ > Part of **[DotSuite](https://dotsuite.dev)**, a family of developer tools for VS Code, Next.js and Python.
37
24
 
38
- ```bash
39
- npm install -g dotshare
40
- dotshare-scheduler --help
41
- ```
25
+ ---
42
26
 
43
- ## Usage
27
+ ## ๐Ÿ†• What's New in 3.6.0 โ€” MCP & Publishing Library
44
28
 
45
- ### VS Code Extension
29
+ - **Local MCP server** for AI agents, with setup and diagnostics for Codex.
30
+ - **Shared Publishing Library** for reviewing drafts, templates and per-account versions in VS Code.
31
+ - **Saved previews and receipts** that record exactly which draft revision was published and where.
32
+ - **Encrypted local records** with an OS-keyring master key and verified migration for existing libraries.
46
33
 
47
- #### Generating Posts
34
+ [Download VS Code 3.6.0 (.vsix)](https://github.com/kareem2099/DotShare/releases/download/v3.6.0/dotshare-3.6.0.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.6.0)
48
35
 
49
- 1. Open your project in VS Code
50
- 2. Use Command Palette (Ctrl+Shift+P)
51
- 3. Run "DotShare: Generate Social Media Post with Gemini"
52
- 4. Choose your AI provider and customize the generated content
36
+ ---
53
37
 
54
- #### Sharing Posts
38
+ ## Quick start for AI agents
55
39
 
56
- - Use "DotShare: Share to LinkedIn" to post to LinkedIn
57
- - Use "DotShare: Share to Telegram" to post to Telegram groups/channels
40
+ DotShare now includes a local **MCP server** and an agent CLI. Connect Codex or another
41
+ MCP client, then ask it to preview or publish posts, images and threads to named
42
+ accounts on LinkedIn, X, Bluesky, Mastodon, Telegram, Discord and Dev.to. Per-account
43
+ content, multiple accounts, durable retry protection and DotSuite cloud scheduling
44
+ are available through structured tools.
58
45
 
59
- The extension now supports sharing to multiple platforms including:
60
- - LinkedIn (profiles)
61
- - Telegram (bots, channels, groups)
62
- - X/Twitter (tweets)
63
- - Facebook (profiles and pages)
64
- - Discord (webhooks)
65
- - Reddit (submissions)
66
- - BlueSky (posts)
46
+ Use Node.js 22.12+ and an unlocked OS credential store. Install the CLI and MCP
47
+ server from npm, then connect Codex and a publishing account.
67
48
 
68
- ### CLI Tool
49
+ ```sh
50
+ npm install -g dotshare-cli
51
+ dotshare-agent setup
52
+ dotshare-agent accounts add personal-mastodon --platform mastodon
53
+ dotshare-agent doctor --account personal-mastodon
54
+ ```
69
55
 
70
- The CLI provides a powerful command-line interface for social media posting.
56
+ Enter the Mastodon instance and token in the terminal prompts. After setup, reconnect
57
+ or restart Codex. Try this prompt to save a draft and prepare a preview:
71
58
 
72
- #### Quick Start
59
+ > 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.
73
60
 
74
- ```bash
75
- # Initialize CLI configuration
76
- dotshare init
61
+ To review it in VS Code, install the extension and run **DotShare: Open Publishing Library**
62
+ from the Command Palette. Open the draft and review it before selecting **Publish this saved preview**.
63
+ The receipt includes the result for each account and the post URL when the platform returns one.
77
64
 
78
- # Authenticate with platforms
79
- dotshare login telegram
80
- dotshare login linkedin
81
- dotshare login reddit
65
+ Upgrading an existing library? Stop active publications, run `dotshare-agent security protect`,
66
+ and restart all DotShare MCP clients and VS Code windows. Linux requires an unlocked Secret Service
67
+ session. See the [upgrade and recovery guide](SECURITY.md#upgrading-an-existing-library).
82
68
 
83
- # Check your setup
84
- dotshare whoami
69
+ Saved drafts have explicit **Draft โ†’ Preview โ†’ Published** states, with separate
70
+ in-progress/uncertain results and publication URLs. Editing invalidates the preview;
71
+ `publish_draft` sends the saved revision and verified local image bytes. Use
72
+ `create_draft`, `update_draft`, `preview_draft` and `publish_draft` from your agent,
73
+ or the CLI's `drafts` commands.
85
74
 
86
- # Start posting!
87
- dotshare "Hello from CLI! ๐Ÿš€"
88
- ```
75
+ Reusable local **templates** support literal `{{variables}}`, required/default values,
76
+ HTTPS URL fields and platform/account variants. Start with five built-in recipes,
77
+ save your own, then create an independent draft. Inspect each account's version with
78
+ `get_draft_variants` and edit it with `set_draft_variant`; every edit requires a fresh
79
+ publication preview. Rendering and draft creation never publish or call an AI provider.
80
+ The same workflow is available through `templates` and `drafts` CLI commands.
89
81
 
90
- #### CLI Commands
82
+ In VS Code, run **DotShare: Open Publishing Library** (or use the sidebar button)
83
+ to work with those **same MCP drafts and templates** visually. Edit shared content
84
+ and account versions, fill/customize templates, prepare a saved preview and publish
85
+ it with per-account receipts. External edits refresh automatically; unsaved changes
86
+ are preserved and stale saves are rejected. The library connects to your configured
87
+ local MCP installation, without copying platform credentials. Earlier platform
88
+ composer drafts remain in their existing screen; no automatic migration occurs.
91
89
 
92
- ##### `dotshare init`
93
- Initialize CLI configuration and test server connection.
94
- ```bash
95
- dotshare init
96
- ```
90
+ โ†’ [Publishing Library guide](docs/PUBLISHING_LIBRARY.md)
97
91
 
98
- ##### `dotshare login <platform>`
99
- Authenticate with social media platforms. Opens browser for OAuth flow.
100
- ```bash
101
- dotshare login telegram # Telegram authentication
102
- dotshare login linkedin # LinkedIn authentication
103
- dotshare login reddit # Reddit authentication
104
- ```
92
+ โ†’ [Agent setup, Codex configuration, examples and supported limits](docs/AGENT_INTEGRATION.md)
93
+
94
+ ---
95
+
96
+ ## ๐Ÿ“ฆ Install
97
+
98
+ **From VS Code:** open Extensions (`Ctrl+Shift+X` / `Cmd+Shift+X`), search **DotShare**, and click **Install**.
99
+
100
+ **From the command line:**
105
101
 
106
- ##### `dotshare whoami`
107
- Show current configuration and authenticated platforms.
108
102
  ```bash
109
- dotshare whoami
103
+ code --install-extension freerave.dotshare
110
104
  ```
111
105
 
112
- ##### `dotshare [message]` (Default)
113
- Post message to all configured platforms.
114
- ```bash
115
- # Post text message
116
- dotshare "๐Ÿš€ Just deployed a new feature!"
106
+ **From GitHub:** download the `v3.6.0` VSIX above and run `code --install-extension ./dotshare-3.6.0.vsix`.
107
+ For the shared Publishing Library, also complete the [MCP quick start](#quick-start-for-ai-agents).
117
108
 
118
- # Post with media
119
- dotshare "Beautiful sunset today ๐ŸŒ…" --media ./sunset.jpg
109
+ 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.
120
110
 
121
- # Post to specific platforms
122
- dotshare "Team update" --platforms telegram,linkedin
111
+ ### Quick start
123
112
 
124
- # Post media only
125
- dotshare --media ./video.mp4
126
- ```
113
+ 1. Click the **DotShare** icon in the Activity Bar.
114
+ 2. On a platform card, add your credentials (see the [setup guides](#-platform-setup-guides)).
115
+ 3. Click **โœจ Create Post**, write or generate your post, and press **Share** (or `Ctrl+Enter`).
127
116
 
128
- #### CLI Options
129
-
130
- - `--media <path>`: Path to media file (image/video)
131
- - `--platforms <list>`: Comma-separated list of platforms (telegram,linkedin,reddit)
132
-
133
- #### CLI Configuration
134
-
135
- Configuration is stored in `~/.dotshare/config.json`:
136
-
137
- ```json
138
- {
139
- "serverUrl": "https://your-railway-app.railway.app",
140
- "credentials": {
141
- "telegram": {
142
- "botToken": "your_telegram_bot_token",
143
- "chatId": "your_chat_id"
144
- },
145
- "linkedin": {
146
- "accessToken": "your_linkedin_token"
147
- },
148
- "reddit": {
149
- "accessToken": "your_reddit_token",
150
- "refreshToken": "your_refresh_token"
151
- }
152
- },
153
- "defaultPlatforms": ["telegram", "linkedin", "reddit"]
154
- }
155
- ```
117
+ ---
156
118
 
157
- ### Scheduled Posting
119
+ ## โœจ Features
158
120
 
159
- Use the CLI scheduler for automated cross-platform posting:
121
+ ### ๐Ÿค– AI release copilot
122
+ - Generate posts and full articles with **Google Gemini, OpenAI, Anthropic Claude, DeepSeek or xAI Grok**, using your own API key. Models are discovered live from each provider.
123
+ - DotShare reads your **CHANGELOG, README, package manifest, Git commits and diffs** so posts describe what actually changed.
124
+ - Five writing tones: Professional, Build in Public, Technical Deep-Dive, Quick TL;DR, and Full Markdown Article.
125
+ - Writes in **English or Arabic**. Run **DotShare: Inspect AI Release Context** to see exactly what the AI receives.
126
+ - Known secret patterns (API keys, tokens, private keys) are redacted from code excerpts before they reach an AI provider.
160
127
 
161
- ```bash
162
- # Run scheduler (requires config file)
163
- npm run scheduler
128
+ ### ๐Ÿงต Thread composer
129
+ - Build threads for **X, Bluesky and Mastodon**, with a character counter per post and up to **4 images per post**.
130
+ - Long single posts are split into numbered threads automatically.
131
+ - **X Premium** mode for posts up to 25,000 characters.
164
132
 
165
- # Or use the interactive CLI for manual posting
166
- dotshare "Scheduled post content"
167
- ```
133
+ ### ๐Ÿ“ฐ Dev.to publishing
134
+ - Generate technical articles with YAML frontmatter, or load the Markdown file open in your editor.
135
+ - Live sanitized preview with word count and reading time; publish as draft or public, with series support.
136
+
137
+ ### ๐Ÿ“ธ CodeSnap
138
+ - Turn selected code into a polished image with 9+ themes (Dracula, Nord, Tokyo Night, GitHub, Catppuccin and more).
139
+ - Send the snapshot straight to the composer, or save it as PNG.
140
+
141
+ ### ๐Ÿ’ป GitHub Gists
142
+ - Create a public or secret Gist from a selection or a whole file, then share it in one click.
143
+
144
+ ### ๐Ÿ“Š Productivity
145
+ - **Drafts** for social posts, articles and Gists.
146
+ - **Analytics** for share counts and success rates per platform.
147
+ - **Smart hashtags** from your project, commits and tech stack (skipped where they don't help, such as Discord).
148
+ - **Saved API sets** to switch between accounts.
149
+ - Interface available in **English, Arabic and Russian**.
150
+
151
+ ---
152
+
153
+ ## ๐ŸŒ Supported Platforms
154
+
155
+ | Platform | Posts | Threads | Images | Cloud scheduling | Sign-in |
156
+ |---|:---:|:---:|:---:|:---:|---|
157
+ | ๐Ÿ”— **LinkedIn** | โœ… | โ€” | 1 | โœ… | OAuth or access token |
158
+ | ๐• **X (Twitter)** | โœ… | โœ… | 4 | โœ… | OAuth |
159
+ | ๐Ÿฆ‹ **Bluesky** | โœ… | โœ… | 4 | โœ… | Handle + app password |
160
+ | ๐Ÿ˜ **Mastodon** | โœ… | โœ… | 4 | โœ… | Instance URL + access token |
161
+ | ๐Ÿ“ฑ **Telegram** | โœ… | โ€” | 10 | โœ… | Bot token + chat ID |
162
+ | ๐Ÿ’ฌ **Discord** | โœ… | โ€” | 10 | โ€” | Webhook URL |
163
+ | ๐Ÿ‘จโ€๐Ÿ’ป **Dev.to** | Articles | โ€” | Cover image URL | โœ… | API key |
164
+ | โšก **GitHub Gist** | Snippets | โ€” | โ€” | โ€” | GitHub sign-in |
165
+
166
+ ---
167
+
168
+ ## ๐Ÿ’Ž Free vs DotSuite Plans
169
+
170
+ Everything that runs inside VS Code with your own accounts and AI keys is **free and open source**. Paid plans add cloud services hosted by DotSuite.
171
+
172
+ | | **Free** | **Pro** | **Max** |
173
+ |---|:---:|:---:|:---:|
174
+ | Direct publishing to every platform | โœ… | โœ… | โœ… |
175
+ | AI generation with your own key | โœ… | โœ… | โœ… |
176
+ | Threads, drafts, Gists, analytics | โœ… | โœ… | โœ… |
177
+ | Cloud-scheduled posts per month | 100 | Unlimited | Unlimited |
178
+ | Scheduled posts with images per month | 10 | Unlimited | Unlimited |
179
+ | Scheduler precision | Hourly | Every 5 minutes | Exact time |
180
+ | CodeSnap without watermark, custom branding, 3ร— and JPG/WEBP export | โ€” | โœ… | โœ… |
181
+ | Price | **$0** | **$15 / month** | **$30 / month** |
168
182
 
169
- #### CLI Troubleshooting
183
+ See current plans on the [DotShare page on DotSuite](https://dotsuite.dev/en/product/dotshare).
170
184
 
171
- **"Server connection failed"**
172
- - Make sure the Python server is running: `cd DotSharePY && python3 server.py`
173
- - Check that the server URL is correct (default: http://localhost:3000)
185
+ ---
174
186
 
175
- **"No platforms configured"**
176
- - Run `dotshare login <platform>` to authenticate with platforms
177
- - Check `dotshare whoami` to see configured platforms
187
+ ## ๐Ÿ”‘ Platform Setup Guides
178
188
 
179
- **"Authentication failed"**
180
- - Verify your credentials are correct
181
- - Check that the Python server has the right environment variables
182
- - Try re-authenticating with `dotshare login <platform>`
189
+ <details>
190
+ <summary><b>๐Ÿ˜ Mastodon</b></summary>
183
191
 
184
- **Permission Issues**
185
- - Make sure the CLI has execute permissions: `chmod +x bin/dotshare-cli.js`
186
- - Check file permissions for `~/.dotshare/config.json`
192
+ 1. On your Mastodon server, open **Preferences โ†’ Development โ†’ New application** (for example `https://mastodon.social/settings/applications/new`).
193
+ 2. Enter any name, keep the redirect URI as `urn:ietf:wg:oauth:2.0:oob`, and enable only **`write:statuses`**, **`write:media`** and **`profile`** (`profile` lets `dotshare-agent doctor` verify the account).
194
+ 3. Save, open the application, and copy **Your access token**.
195
+ 4. In DotShare's Mastodon card, enter your instance URL (such as `https://mastodon.social`) and the token.
187
196
 
188
- #### CLI Development
197
+ Any instance works. The URL must use HTTPS, and the token is only ever sent to that server.
198
+ </details>
189
199
 
190
- To modify the CLI:
200
+ <details>
201
+ <summary><b>๐Ÿฆ‹ Bluesky</b></summary>
191
202
 
192
- 1. Edit commands in `src/cli/commands.ts`
193
- 2. Edit config management in `src/cli/config.ts`
194
- 3. Compile: `npm run compile`
195
- 4. Test: `npm run cli --help`
203
+ 1. Go to [Bluesky โ†’ Settings โ†’ App passwords](https://bsky.app/settings/app-passwords) and create an app password (never use your main password).
204
+ 2. Enter your handle (such as `yourname.bsky.social`) and the app password in DotShare.
205
+ </details>
196
206
 
197
- ## Requirements
207
+ <details>
208
+ <summary><b>๐• X (Twitter)</b></summary>
198
209
 
199
- - VS Code 1.74.0 or higher
200
- - Node.js 18.x or higher
201
- - API keys for AI services (Gemini, OpenAI, etc.)
202
- - API keys for social media platforms
210
+ Click **Connect** on the X card and authorize DotShare in your browser. Tokens refresh automatically.
211
+ </details>
203
212
 
204
- ## Configuration
213
+ <details>
214
+ <summary><b>๐Ÿ”— LinkedIn</b></summary>
205
215
 
206
- Set up your API keys in VS Code settings or environment variables:
216
+ Click **Connect** on the LinkedIn card to sign in with OAuth. You can also paste an access token with the `w_member_social` scope from [LinkedIn Developers](https://www.linkedin.com/developers/) under the advanced options.
217
+ </details>
207
218
 
208
- - `dotshare.geminiApiKey`: For Gemini AI
209
- - `dotshare.openaiApiKey`: For OpenAI
210
- - `dotshare.xaiApiKey`: For xAI
211
- - `dotshare.linkedinToken`: LinkedIn access token
212
- - `dotshare.telegramBot`: Telegram bot token
213
- - `dotshare.telegramChat`: Telegram chat ID
214
- - `dotshare.xAccessToken`: X/Twitter access token
215
- - `dotshare.xAccessSecret`: X/Twitter access secret
216
- - `dotshare.facebookToken`: Facebook access token
217
- - `dotshare.facebookPageToken`: Facebook page access token
218
- - `dotshare.facebookPageId`: Facebook page ID
219
- - `dotshare.discordWebhookUrl`: Discord webhook URL
220
- - `dotshare.redditClientId`: Reddit client ID
221
- - `dotshare.redditClientSecret`: Reddit client secret
222
- - `dotshare.redditAccessToken`: Reddit access token
223
- - `dotshare.redditRefreshToken`: Reddit refresh token
224
- - `dotshare.blueskyIdentifier`: BlueSky username/handle
225
- - `dotshare.blueskyPassword`: BlueSky app password
219
+ <details>
220
+ <summary><b>๐Ÿ“ฑ Telegram</b></summary>
226
221
 
227
- ## Development
222
+ 1. Message [@BotFather](https://t.me/botfather), create a bot with `/newbot`, and copy its token.
223
+ 2. Add the bot to your channel or group, then get the chat ID (for example with [@FreeID](https://github.com/kareem2099/FreeID)).
224
+ 3. Enter both in DotShare.
225
+ </details>
226
+
227
+ <details>
228
+ <summary><b>๐Ÿ’ฌ Discord</b></summary>
229
+
230
+ In your server, open **Channel settings โ†’ Integrations โ†’ Webhooks**, create a webhook, and paste its URL into DotShare.
231
+ </details>
232
+
233
+ <details>
234
+ <summary><b>๐Ÿ‘จโ€๐Ÿ’ป Dev.to</b></summary>
235
+
236
+ Generate a key under [Dev.to Settings โ†’ Extensions](https://dev.to/settings/extensions) and paste it into DotShare. Dev.to's API doesn't accept image uploads, so use publicly hosted image URLs in your article and cover image.
237
+ </details>
238
+
239
+ ---
240
+
241
+ ## โŒจ๏ธ DotShare CLI
242
+
243
+ Use named local accounts from your terminal or CI. Requires Node.js 22.12+ and
244
+ an unlocked OS credential store. Install the CLI with `npm install -g dotshare-cli`.
245
+ With an account already connected, save and preview a draft from the terminal:
228
246
 
229
247
  ```bash
230
- git clone https://github.com/kareem2099/DotShare.git
231
- cd DotShare
232
- npm install
233
- npm run compile
234
- # Press F5 in VS Code to test
248
+ printf '%s\n' '{"title":"My first draft","content":{"accountIds":["personal-mastodon"],"text":"Hello from DotShare!"}}' | dotshare-agent drafts create --input -
249
+ dotshare-agent drafts preview DRAFT_ID --revision 1
235
250
  ```
236
251
 
237
- ## Contributing
252
+ Replace `DRAFT_ID` with the ID from the create response. After reviewing the output,
253
+ see the [CLI draft commands](docs/AGENT_INTEGRATION.md) for publishing the saved revision.
254
+
255
+ Credentials stay in the required OS keyring. Shared drafts, custom templates and
256
+ journals are encrypted with a separate OS-keyring master key. The old `dotshare
257
+ "message"` relay and legacy login are disabled; use the direct named-account tools.
258
+ [Input formats and examples](docs/AGENT_INTEGRATION.md).
259
+
260
+ ---
261
+
262
+ ## ๐Ÿ” Security & Privacy
263
+
264
+ - **Your keys stay in VS Code SecretStorage.** Webviews only receive whether a key is saved, never its value, and saved keys show as **๐Ÿ”’ Key Saved & Active**.
265
+ - **Direct publishing** sends each credential only to its own platform. AI prompts go only to the provider you choose.
266
+ - **Cloud scheduling is opt-in.** Before any credential is synced to DotSuite, DotShare asks for explicit consent (Mastodon has its own prompt). Sync requires HTTPS and a signed-in DotSuite account.
267
+ - **Logs are redacted**: credential values and OAuth callback queries are excluded, and known secret formats are masked.
268
+ - **Clear All Credentials** removes local platform, AI, GitHub and DotSuite secrets and cloud consent. Copies already synced to DotSuite are revoked from the DotSuite Dashboard.
269
+
270
+ Server-side handling is implemented in the separately maintained DotSuite backend; local SecretStorage does not protect copies held there.
271
+
272
+ ---
273
+
274
+ ## โ“ FAQ
275
+
276
+ **Is DotShare free?**
277
+ Yes. The extension is open source under Apache 2.0, and direct publishing with your own accounts and AI keys is free. Only DotSuite cloud services, such as higher scheduling limits, are paid.
278
+
279
+ **Do I need my own server to post to Mastodon?**
280
+ No. You only need an account on any Mastodon instance and an access token. DotShare talks to your instance directly.
281
+
282
+ **Which AI models can I use?**
283
+ Any text model your key can access from Google Gemini, OpenAI, Anthropic Claude, DeepSeek or xAI Grok. DotShare lists them live from each provider.
284
+
285
+ **Can I schedule posts for later?**
286
+ Yes, with a free DotSuite account. Scheduled posts run on DotSuite servers, so your computer doesn't need to stay on.
287
+
288
+ **Does DotShare work in VSCodium, Cursor or Windsurf?**
289
+ Yes, install it from [Open VSX](https://open-vsx.org/extension/freerave/dotshare).
290
+
291
+ **Where are my API keys stored?**
292
+ In VS Code's encrypted SecretStorage on your machine. See [Security & Privacy](#-security--privacy).
293
+
294
+ ---
295
+
296
+ ## ๐Ÿค Contributing
297
+
298
+ Bug reports, platform ideas and pull requests are welcome. Read the [contributing guide](https://github.com/kareem2099/DotShare/blob/master/CONTRIBUTING.md) to get started, and see the [roadmap](https://github.com/kareem2099/DotShare/blob/master/ROADMAP.md) for what's planned.
299
+
300
+ ## ๐Ÿ’ Support the Project
301
+
302
+ If DotShare saves you time, you can help keep it alive:
303
+
304
+ <div align="center">
305
+
306
+ <a href="https://www.buymeacoffee.com/freerave"><img src="https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black" alt="Buy Me a Coffee"></a>
307
+ <a href="https://github.com/sponsors/kareem2099"><img src="https://img.shields.io/badge/Sponsor%20on-GitHub-ea4aaa?style=for-the-badge&logo=github-sponsors" alt="Sponsor on GitHub"></a>
308
+ <a href="https://paypal.me/freerave1"><img src="https://img.shields.io/badge/Donate-PayPal-00457C?style=for-the-badge&logo=paypal" alt="Donate via PayPal"></a>
238
309
 
239
- We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
310
+ </div>
240
311
 
241
- ## Changelog
312
+ Or โญ [star the repository](https://github.com/kareem2099/DotShare), share DotShare with your network, and [report issues](https://github.com/kareem2099/DotShare/issues).
242
313
 
243
- See [CHANGELOG.md](CHANGELOG.md) for the latest updates.
314
+ ## ๐Ÿ“„ License
244
315
 
245
- ## License
316
+ DotShare is licensed under the [Apache License 2.0](https://github.com/kareem2099/DotShare/blob/master/LICENSE).
246
317
 
247
- This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
318
+ <div align="center">
248
319
 
249
- ## Support
320
+ **Made with โค๏ธ by [FreeRave](https://dotsuite.dev) for developers who build in public.**
250
321
 
251
- - ๐Ÿ“ง Create an issue on GitHub
252
- - ๏ฟฝ Get your Telegram User ID using [FreeID Bot](https://github.com/kareem2099/FreeID)
253
- - ๏ฟฝ๐Ÿ’ Support the project: [GitHub Sponsors](https://github.com/sponsors/kareem2099)
322
+ </div>