dotshare-cli 3.0.0 → 3.1.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 +45 -29
- package/docs/AGENT_INTEGRATION.md +97 -25
- package/out/agent/commands.js +47 -36
- package/out/agent/server.js +24 -20
- package/out/cli/commands.js +56 -45
- package/package.json +2 -1
- package/skills/dotshare/SKILL.md +200 -0
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
[](https://github.com/kareem2099/DotShare/blob/master/LICENSE)
|
|
13
13
|
[](https://github.com/kareem2099/DotShare)
|
|
14
14
|
|
|
15
|
-
[Install](#-install) · [
|
|
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)
|
|
16
16
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
@@ -24,18 +24,19 @@
|
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
|
-
## 🆕 What's New in 3.
|
|
27
|
+
## 🆕 What's New in 3.7.0 — Connect
|
|
28
28
|
|
|
29
|
-
- **
|
|
30
|
-
- **
|
|
31
|
-
- **
|
|
32
|
-
- **
|
|
29
|
+
- **LinkedIn and X sign-in on dotsuite.dev**, with the whole exchange on the server.
|
|
30
|
+
- **Agents sign in through the browser:** `dotshare-agent accounts connect`, with no token to copy, and X sign-ins renew themselves.
|
|
31
|
+
- **Schedule saved drafts** with `schedule_draft`, so each platform gets its own version, images included.
|
|
32
|
+
- **Videos and GIFs from agents**, clickable **Bluesky mentions**, and **post stats** with `get_post_stats`.
|
|
33
|
+
- **One-command setup for Claude Code and Cursor.**
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
[Download VS Code 3.7.0 (.vsix)](https://github.com/kareem2099/DotShare/releases/download/v3.7.0/dotshare-3.7.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.7.0)
|
|
35
36
|
|
|
36
37
|
---
|
|
37
38
|
|
|
38
|
-
##
|
|
39
|
+
## Quick start for AI agents
|
|
39
40
|
|
|
40
41
|
DotShare now includes a local **MCP server** and an agent CLI. Connect Codex or another
|
|
41
42
|
MCP client, then ask it to preview or publish posts, images and threads to named
|
|
@@ -43,17 +44,30 @@ accounts on LinkedIn, X, Bluesky, Mastodon, Telegram, Discord and Dev.to. Per-ac
|
|
|
43
44
|
content, multiple accounts, durable retry protection and DotSuite cloud scheduling
|
|
44
45
|
are available through structured tools.
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
Run `dotshare-agent setup` to connect Codex, then `dotshare-agent doctor` to verify
|
|
49
|
-
the connection. Connect accounts with `dotshare-agent accounts add`.
|
|
50
|
-
`dotshare-agent doctor --check-accounts` checks platform identities without publishing.
|
|
51
|
-
From a source checkout, replace `dotshare-agent` with `node bin/dotshare-agent.js`.
|
|
47
|
+
Use Node.js 22.12+ and an unlocked OS credential store. Install the CLI and MCP
|
|
48
|
+
server from npm, then connect your MCP client and a publishing account.
|
|
52
49
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
```sh
|
|
51
|
+
npm install -g dotshare-cli
|
|
52
|
+
dotshare-agent setup # Codex; or --client claude / --client cursor
|
|
53
|
+
dotshare-agent accounts connect work-linkedin --platform linkedin # LinkedIn/X: sign in in the browser
|
|
54
|
+
dotshare-agent accounts add personal-mastodon --platform mastodon
|
|
55
|
+
dotshare-agent doctor --account personal-mastodon
|
|
56
|
+
```
|
|
57
|
+
|
|
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:
|
|
61
|
+
|
|
62
|
+
> 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
|
+
|
|
64
|
+
To review it in VS Code, install the extension and run **DotShare: Open Publishing Library**
|
|
65
|
+
from the Command Palette. Open the draft and review it before selecting **Publish this saved preview**.
|
|
66
|
+
The receipt includes the result for each account and the post URL when the platform returns one.
|
|
67
|
+
|
|
68
|
+
Upgrading an existing library? Stop active publications, run `dotshare-agent security protect`,
|
|
69
|
+
and restart all DotShare MCP clients and VS Code windows. Linux requires an unlocked Secret Service
|
|
70
|
+
session. See the [upgrade and recovery guide](SECURITY.md#upgrading-an-existing-library).
|
|
57
71
|
|
|
58
72
|
Saved drafts have explicit **Draft → Preview → Published** states, with separate
|
|
59
73
|
in-progress/uncertain results and publication URLs. Editing invalidates the preview;
|
|
@@ -92,6 +106,9 @@ composer drafts remain in their existing screen; no automatic migration occurs.
|
|
|
92
106
|
code --install-extension freerave.dotshare
|
|
93
107
|
```
|
|
94
108
|
|
|
109
|
+
**From GitHub:** download the `v3.7.0` VSIX above and run `code --install-extension ./dotshare-3.7.0.vsix`.
|
|
110
|
+
For the shared Publishing Library, also complete the [MCP quick start](#quick-start-for-ai-agents).
|
|
111
|
+
|
|
95
112
|
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.
|
|
96
113
|
|
|
97
114
|
### Quick start
|
|
@@ -176,7 +193,7 @@ See current plans on the [DotShare page on DotSuite](https://dotsuite.dev/en/pro
|
|
|
176
193
|
<summary><b>🐘 Mastodon</b></summary>
|
|
177
194
|
|
|
178
195
|
1. On your Mastodon server, open **Preferences → Development → New application** (for example `https://mastodon.social/settings/applications/new`).
|
|
179
|
-
2. Enter any name, keep the redirect URI as `urn:ietf:wg:oauth:2.0:oob`, and enable only **`write:statuses`** and **`
|
|
196
|
+
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).
|
|
180
197
|
3. Save, open the application, and copy **Your access token**.
|
|
181
198
|
4. In DotShare's Mastodon card, enter your instance URL (such as `https://mastodon.social`) and the token.
|
|
182
199
|
|
|
@@ -227,18 +244,17 @@ Generate a key under [Dev.to Settings → Extensions](https://dev.to/settings/ex
|
|
|
227
244
|
## ⌨️ DotShare CLI
|
|
228
245
|
|
|
229
246
|
Use named local accounts from your terminal or CI. Requires Node.js 22.12+ and
|
|
230
|
-
an unlocked OS credential store.
|
|
231
|
-
|
|
247
|
+
an unlocked OS credential store. Install the CLI with `npm install -g dotshare-cli`.
|
|
248
|
+
With an account already connected, save and preview a draft from the terminal:
|
|
232
249
|
|
|
233
250
|
```bash
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
node bin/dotshare-agent.js templates list
|
|
237
|
-
node bin/dotshare-agent.js drafts create --input draft.json
|
|
238
|
-
node bin/dotshare-agent.js drafts preview DRAFT_ID --revision 1
|
|
239
|
-
node bin/dotshare-agent.js drafts publish DRAFT_ID --revision 1 --preview-id PREVIEW_ID --request-id release-1
|
|
251
|
+
printf '%s\n' '{"title":"My first draft","content":{"accountIds":["personal-mastodon"],"text":"Hello from DotShare!"}}' | dotshare-agent drafts create --input -
|
|
252
|
+
dotshare-agent drafts preview DRAFT_ID --revision 1
|
|
240
253
|
```
|
|
241
254
|
|
|
255
|
+
Replace `DRAFT_ID` with the ID from the create response. After reviewing the output,
|
|
256
|
+
see the [CLI draft commands](docs/AGENT_INTEGRATION.md) for publishing the saved revision.
|
|
257
|
+
|
|
242
258
|
Credentials stay in the required OS keyring. Shared drafts, custom templates and
|
|
243
259
|
journals are encrypted with a separate OS-keyring master key. The old `dotshare
|
|
244
260
|
"message"` relay and legacy login are disabled; use the direct named-account tools.
|
|
@@ -252,9 +268,9 @@ journals are encrypted with a separate OS-keyring master key. The old `dotshare
|
|
|
252
268
|
- **Direct publishing** sends each credential only to its own platform. AI prompts go only to the provider you choose.
|
|
253
269
|
- **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.
|
|
254
270
|
- **Logs are redacted**: credential values and OAuth callback queries are excluded, and known secret formats are masked.
|
|
255
|
-
- **Clear All Credentials** removes local platform, AI, GitHub and DotSuite secrets and cloud consent.
|
|
271
|
+
- **DotShare: Clear All Credentials** (Command Palette) removes local platform, AI, GitHub and DotSuite secrets and cloud consent. It doesn't revoke tokens at each platform. To delete copies already synced to DotSuite, email support@dotsuite.dev.
|
|
256
272
|
|
|
257
|
-
Server-side handling is implemented in the separately maintained DotSuite backend; local SecretStorage does not protect copies held there.
|
|
273
|
+
Server-side handling is implemented in the separately maintained DotSuite backend; local SecretStorage does not protect copies held there. Full details: **[DotShare Privacy Policy](https://dotsuite.dev/en/dotshare/privacy)**.
|
|
258
274
|
|
|
259
275
|
---
|
|
260
276
|
|
|
@@ -10,14 +10,22 @@ The local MCP server uses stdio and does not require a separate model/API key.
|
|
|
10
10
|
Requires Node.js 22.12+ and an unlocked OS credential store. On Linux, a working
|
|
11
11
|
Secret Service/keyring session is required. There is no plaintext secret fallback.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Install the CLI and MCP server from npm. For an existing library, follow the [upgrade steps](#local-storage-protection) before resuming publication.
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
|
-
npm install -g
|
|
17
|
-
dotshare-agent setup
|
|
18
|
-
dotshare-agent
|
|
16
|
+
npm install -g dotshare-cli
|
|
17
|
+
dotshare-agent setup # Codex; or --client claude / --client cursor
|
|
18
|
+
dotshare-agent accounts connect work-x --platform x # LinkedIn and X: browser sign-in
|
|
19
|
+
dotshare-agent accounts add personal-mastodon --platform mastodon --name "Personal Mastodon"
|
|
20
|
+
dotshare-agent doctor --account personal-mastodon
|
|
19
21
|
```
|
|
20
22
|
|
|
23
|
+
Restart or reconnect your MCP client after setup. In Codex, ask DotShare to list your local
|
|
24
|
+
accounts, save a draft for one of them and prepare its preview. To review that draft
|
|
25
|
+
in VS Code, follow the [Publishing Library guide](PUBLISHING_LIBRARY.md).
|
|
26
|
+
|
|
27
|
+
You can also download the tarball and install it with `npm install -g ./dotshare-cli-3.1.0.tgz`. [GitHub release](https://github.com/kareem2099/DotShare/releases/tag/v3.7.0)
|
|
28
|
+
|
|
21
29
|
To build and configure from source instead:
|
|
22
30
|
|
|
23
31
|
```sh
|
|
@@ -30,18 +38,40 @@ node bin/dotshare-agent.js accounts add work-linkedin --platform linkedin --name
|
|
|
30
38
|
node bin/dotshare-agent.js accounts list
|
|
31
39
|
```
|
|
32
40
|
|
|
33
|
-
Account setup prompts hide typed credentials.
|
|
34
|
-
terminal
|
|
35
|
-
|
|
41
|
+
Account setup prompts hide typed credentials. Enter platform secrets in your
|
|
42
|
+
terminal prompts. Existing VS Code accounts are not automatically copied.
|
|
43
|
+
Multiple accounts on one platform use
|
|
36
44
|
different IDs. To replace an account's credentials, run `accounts add` with its ID.
|
|
37
45
|
`accounts remove <id>` removes the local account and deletes its credential from the OS keyring.
|
|
38
46
|
It does not revoke the token on the platform. Expired/revoked platform tokens must
|
|
39
|
-
be replaced using `accounts add
|
|
40
|
-
|
|
47
|
+
be replaced using `accounts add`, or `accounts connect` for LinkedIn and X.
|
|
48
|
+
|
|
49
|
+
### Browser sign-in for LinkedIn and X
|
|
50
|
+
|
|
51
|
+
`dotshare-agent accounts connect <id> --platform linkedin|x [--name ...] [--no-open]`
|
|
52
|
+
opens dotsuite.dev in your browser, where you approve DotShare on LinkedIn or X.
|
|
53
|
+
There is no token to copy. The CLI listens on `127.0.0.1` for the result, which
|
|
54
|
+
dotsuite.dev encrypts to a key that exists only in that CLI process (X25519 + HKDF +
|
|
55
|
+
AES-256-GCM). Tokens never appear readable in a URL or in browser history. A nonce
|
|
56
|
+
inside the ciphertext ties the result to this sign-in; anything else sent to the port
|
|
57
|
+
is ignored. The wait ends after 5 minutes (`--timeout` changes it).
|
|
58
|
+
|
|
59
|
+
X access tokens last two hours. For accounts connected this way, DotShare swaps the
|
|
60
|
+
refresh token through dotsuite.dev when an X token has under five minutes left,
|
|
61
|
+
before publishing or checking the account. The rotated pair is saved to the keyring
|
|
62
|
+
first. Refreshing doesn't invalidate saved previews, because a connected account is
|
|
63
|
+
identified by its sign-in, not its current token. LinkedIn sign-ins last 60 days;
|
|
64
|
+
`doctor --check-accounts` warns a week before they expire. Tokens pasted with
|
|
65
|
+
`accounts add` are used as they are and never refreshed.
|
|
41
66
|
|
|
42
67
|
After packaging/installing the CLI, the same commands are available through
|
|
43
68
|
`dotshare`, `dotshare-agent`, and the dedicated `dotshare-mcp` server entrypoint.
|
|
44
69
|
|
|
70
|
+
The npm package also ships an agent skill at `skills/dotshare/SKILL.md` (in the
|
|
71
|
+
installed package directory, e.g. `$(npm root -g)/dotshare-cli/skills/dotshare`). Copy
|
|
72
|
+
that folder into your agent's skills directory so it follows DotShare's draft → preview
|
|
73
|
+
→ approval → publish workflow and per-platform rules.
|
|
74
|
+
|
|
45
75
|
### Credential fields
|
|
46
76
|
|
|
47
77
|
| Platform | Fields entered during setup |
|
|
@@ -69,17 +99,24 @@ The master key is generated randomly and stored in the OS keyring only; a locked
|
|
|
69
99
|
missing or mismatched key fails closed. Restore the original OS key and security.json
|
|
70
100
|
instead of generating a replacement key for existing ciphertext.
|
|
71
101
|
|
|
72
|
-
|
|
102
|
+
To upgrade an existing installation, stop active publications and run these commands.
|
|
73
103
|
|
|
74
104
|
```sh
|
|
75
|
-
|
|
76
|
-
|
|
105
|
+
npm install -g dotshare-cli
|
|
106
|
+
dotshare-agent security status
|
|
107
|
+
dotshare-agent security protect
|
|
77
108
|
```
|
|
78
109
|
|
|
110
|
+
For a source checkout, substitute `node bin/dotshare-agent.js` for `dotshare-agent`.
|
|
111
|
+
If you switched from a source checkout to the installed package, use
|
|
112
|
+
`dotshare-agent setup --dry-run --replace` to review the new launcher paths.
|
|
113
|
+
Then run `dotshare-agent setup --replace` to replace the existing DotShare entry.
|
|
114
|
+
Review the media roots and include `--media-root` for any directory you want to allow.
|
|
115
|
+
|
|
79
116
|
`protect` verifies existing account access, repairs private permissions and converts
|
|
80
117
|
existing plaintext records in place. It verifies preserved content without making
|
|
81
|
-
plaintext backups. Restart all DotShare MCP clients and VS Code windows afterwards
|
|
82
|
-
|
|
118
|
+
plaintext backups. Restart all DotShare MCP clients and VS Code windows afterwards,
|
|
119
|
+
then run `dotshare-agent doctor --check-accounts`. Prior snapshots and backups may
|
|
83
120
|
still contain plaintext; the migration does not securely erase old disk pages.
|
|
84
121
|
|
|
85
122
|
Credential JSON input files must be private (0600 on Unix), regular files owned by
|
|
@@ -118,13 +155,18 @@ allowed. Existing allowed directories are retained when setup runs again:
|
|
|
118
155
|
dotshare-agent setup --media-root /absolute/path/to/images
|
|
119
156
|
dotshare-agent setup --text-only
|
|
120
157
|
dotshare-agent setup --dry-run
|
|
158
|
+
dotshare-agent setup --client claude
|
|
159
|
+
dotshare-agent setup --client cursor
|
|
121
160
|
dotshare-agent setup --client generic
|
|
122
161
|
dotshare-agent setup --config /absolute/path/to/config.toml --json
|
|
123
162
|
```
|
|
124
163
|
|
|
125
164
|
`--dry-run` checks the server and prints a configuration preview without writing
|
|
126
|
-
settings. `--client
|
|
127
|
-
|
|
165
|
+
settings. `--client claude` adds DotShare to Claude Code's user scope by running
|
|
166
|
+
`claude mcp add-json` (with `--dry-run` it prints that command instead).
|
|
167
|
+
`--client cursor` merges a `dotshare` entry into `~/.cursor/mcp.json` (or `--config`),
|
|
168
|
+
keeping other servers and settings and saving a backup. `--client generic` prints an
|
|
169
|
+
`mcpServers` JSON snippet for manual import; adapt the wrapper key to your client's format. A different existing DotShare server
|
|
128
170
|
is preserved unless `--replace` is explicitly supplied. Existing inline/dotted-key
|
|
129
171
|
DotShare TOML entries must be converted to `[mcp_servers.dotshare]` before automatic
|
|
130
172
|
updates; malformed config files are never overwritten. `CODEX_HOME` is honored.
|
|
@@ -178,7 +220,8 @@ in the OS keyring are shared between home directories; account IDs should be uni
|
|
|
178
220
|
if using several directories. `DOTSHARE_MEDIA_ROOTS` contains allowed image directories
|
|
179
221
|
separated by the OS path delimiter (`:` on Linux/macOS, `;` on Windows). Each entry
|
|
180
222
|
must be an absolute path. When it is unset or invalid, local images are disabled and
|
|
181
|
-
text-only posts still work.
|
|
223
|
+
text-only posts still work. A relative image path such as `launch.png` is looked up
|
|
224
|
+
inside each root in order. Real paths are checked, including symlink targets.
|
|
182
225
|
The server never downloads arbitrary social-media URLs or reads credentials from
|
|
183
226
|
tool arguments. Diagnostics go to stderr; stdout is reserved for MCP JSON.
|
|
184
227
|
|
|
@@ -193,10 +236,10 @@ Example requests after connecting:
|
|
|
193
236
|
The server exposes `list_accounts`, `preview_post`, `publish_post`, `get_operation`,
|
|
194
237
|
`list_history`, `list_cloud_connections`, `schedule_post`, `list_scheduled_posts`, and
|
|
195
238
|
`cancel_scheduled_post`, plus `create_draft`, `get_draft`, `list_drafts`,
|
|
196
|
-
`update_draft`, `preview_draft`, and `
|
|
239
|
+
`update_draft`, `preview_draft`, `publish_draft` and `schedule_draft`, plus `list_templates`,
|
|
197
240
|
`get_template`, `save_template`, `delete_template`, `render_template`,
|
|
198
|
-
`create_draft_from_template`, `get_draft_variants` and `
|
|
199
|
-
(
|
|
241
|
+
`create_draft_from_template`, `get_draft_variants`, `set_draft_variant` and `get_post_stats`
|
|
242
|
+
(25 tools total).
|
|
200
243
|
`dotshare://guide` describes the workflow, and the
|
|
201
244
|
`release-announcement` prompt helps prepare drafts from release notes.
|
|
202
245
|
|
|
@@ -464,9 +507,26 @@ is published to. Character counts for combined emoji on X/Bluesky are conservati
|
|
|
464
507
|
| Local images | PNG/JPEG; WebP also on Bluesky, Mastodon and Discord |
|
|
465
508
|
| Size | 1,000,000 bytes/image on Bluesky; 8 MiB/image otherwise, subject to platform limits |
|
|
466
509
|
| Images/post | X/Bluesky/Mastodon up to 4 (Mastodon also checks instance limits); LinkedIn 1; Telegram/Discord 10 |
|
|
467
|
-
|
|
|
510
|
+
| Video (MP4/MOV) | X 512 MB, LinkedIn 200 MB, Mastodon 99 MB (WebM too), Telegram 50 MB, Discord 10 MB (WebM too); not Bluesky |
|
|
511
|
+
| GIF | X 15 MB, Mastodon 16 MB, Telegram 50 MB, Discord 10 MB; not LinkedIn or Bluesky |
|
|
512
|
+
| Mixing | On X and Mastodon a video or GIF must be the post's only media |
|
|
513
|
+
| Telegram | Caption limited to 1,024 characters; multiple files are sent as separate messages, caption on first |
|
|
468
514
|
| Dev.to | Public HTTPS image URLs; local files are rejected |
|
|
469
|
-
|
|
515
|
+
|
|
516
|
+
Files are identified by their first bytes and extension. X videos and GIFs use the v2
|
|
517
|
+
chunked upload and wait for X to finish processing before posting; Mastodon waits
|
|
518
|
+
for its own processing. Bluesky turns `@handle.domain` into a mention when the handle
|
|
519
|
+
resolves; other handles stay plain text.
|
|
520
|
+
|
|
521
|
+
## Post stats
|
|
522
|
+
|
|
523
|
+
`get_post_stats` (CLI: `dotshare-agent stats --request-id ID` or `--draft DRAFT_ID`)
|
|
524
|
+
reads current engagement for a published operation: likes, reposts, replies and
|
|
525
|
+
quotes, plus impressions on X and views, reactions and comments on Dev.to, per
|
|
526
|
+
account and thread part. It is read-only. Bluesky uses the public AppView;
|
|
527
|
+
Mastodon, X, LinkedIn and Dev.to use the account's saved credentials. Telegram and
|
|
528
|
+
Discord offer no metrics. LinkedIn returns them only to apps with read access, and
|
|
529
|
+
X depends on the API plan; when a platform refuses, the result says why.
|
|
470
530
|
|
|
471
531
|
Dev.to requires `article: {"title":"Release notes","tags":["opensource"],"published":true}`.
|
|
472
532
|
Optional article fields include `canonicalUrl`, `coverImage`, `description`, and
|
|
@@ -519,9 +579,21 @@ Backend plan limits, permissions and available connections still apply.
|
|
|
519
579
|
}
|
|
520
580
|
```
|
|
521
581
|
|
|
522
|
-
Scheduling
|
|
523
|
-
|
|
524
|
-
|
|
582
|
+
### Scheduling a saved draft
|
|
583
|
+
|
|
584
|
+
`schedule_draft` (CLI: `drafts schedule ID --revision N --preview-id P --request-id R --at TIME`)
|
|
585
|
+
schedules a previewed draft through DotSuite with the same revision/preview checks as
|
|
586
|
+
`publish_draft`. It makes one cloud post per platform with that platform's own
|
|
587
|
+
variant. Local images and GIFs are uploaded to DotSuite first (5 MB each), so a
|
|
588
|
+
failed upload schedules nothing. Each platform's scheduled post ID is kept as its
|
|
589
|
+
receipt, and the draft becomes `Scheduled`. Cloud posts are single posts: thread
|
|
590
|
+
parts, LinkedIn first comments, videos, Discord and Dev.to are refused with a clear
|
|
591
|
+
reason. Every account on a platform must share one text, because DotSuite has one
|
|
592
|
+
connection per platform. Retrying needs the same `requestId` and time.
|
|
593
|
+
|
|
594
|
+
Scheduling requires a timezone and at least one minute of lead time. `schedule_post`
|
|
595
|
+
supports one post with public HTTPS image URLs, without local file uploads, threads or
|
|
596
|
+
account overrides. Discord cloud scheduling is unavailable. `DOTSUITE_API_URL` optionally
|
|
525
597
|
selects a compatible HTTPS backend. It cannot contain credentials/query parameters.
|
|
526
598
|
|
|
527
599
|
## Build and validate
|