dotshare-cli 3.2.2 → 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/package.json CHANGED
@@ -2,11 +2,13 @@
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.2.2",
5
+ "version": "3.2.3",
6
+ "mcpName": "io.github.kareem2099/dotshare",
6
7
  "bin": {
7
8
  "dotshare": "./bin/dotshare-cli.js",
8
9
  "dotshare-mcp": "./bin/dotshare-mcp.js",
9
- "dotshare-agent": "./bin/dotshare-agent.js"
10
+ "dotshare-agent": "./bin/dotshare-agent.js",
11
+ "dotshare-cli": "./bin/dotshare-mcp.js"
10
12
  },
11
13
  "files": [
12
14
  "bin/",
@@ -97,6 +97,8 @@ the approval to the exact content.
97
97
 
98
98
  1. `list_accounts`: use only account IDs that exist. If the one they mean is
99
99
  missing, tell them how to add it (see [references/setup.md](references/setup.md)).
100
+ An account's `footer` is added by preview, so don't write it into the text. If the
101
+ user adds the same hashtags or line to every post, suggest saving it as a footer.
100
102
  2. `create_draft` with the base content; then `set_draft_variant` per account where
101
103
  the platforms differ. Check the result with `get_draft_variants`.
102
104
  3. `preview_draft`: fix any errors (`update_draft` / `set_draft_variant`) and
@@ -142,7 +144,9 @@ Keep it short: one row per account with the result and the link to every post.
142
144
  | work-linkedin | posted, link in the first comment | https://linkedin.com/… |
143
145
 
144
146
  Only "posted" (`Published`) means public; a Dev.to draft is "saved as a Dev.to
145
- draft". Anything else gets a plain reason and the next step. If a publish timed out
146
- or only partly went out, follow [references/recovery.md](references/recovery.md)
147
- before doing anything else, and never post again with a new request ID unless the
148
- user asks.
147
+ draft". `Failed` means it wasn't sent: give the reason in plain words ("there was no
148
+ internet connection, nothing was posted") and offer to publish again, which reuses the
149
+ same request ID and continues a thread where it stopped. `NeedsReview` means it may
150
+ have been posted: show the links and ask the user to check. For both, follow
151
+ [references/recovery.md](references/recovery.md), and never post again with a new
152
+ request ID unless the user asks.
@@ -8,6 +8,7 @@ show the preview and wait for a clear yes before `publish` or `schedule`.
8
8
  | Step | Command |
9
9
  |---|---|
10
10
  | Accounts | `dotshare accounts list` |
11
+ | Footer for every post | `dotshare accounts footer <accountId> "#Hashtag"` / `--clear` |
11
12
  | Save a draft | `dotshare drafts create --input draft.json` |
12
13
  | Edit it | `dotshare drafts update <draftId> --revision N --input patch.json` |
13
14
  | One account's version | `dotshare drafts set-variant <draftId> <accountId> --revision N --input variant.json` |
@@ -5,10 +5,11 @@ record is how you find out what happened without posting twice.
5
5
 
6
6
  | What happened | Do | Never |
7
7
  |---|---|---|
8
+ | `Failed` (accounts `not_sent`): nothing was sent, or only the first parts of a thread. The error says why: no network, DNS, the platform refused (sign-in, rate limit), an upload failed | tell the user the reason in plain words; once they say go, publish again with the **same** `requestId`. It retries only what wasn't sent and continues a thread from where it stopped. If nothing was posted anywhere, the draft can also be edited, previewed again and published with a new `requestId` | use a new `requestId` without editing, or retry on your own without the user |
8
9
  | Timeout or disconnect | `get_operation { requestId }`, or retry with the **same** `requestId` and content: it returns the existing result without posting again | retry with a new ID |
9
- | `needs_review` / `NeedsReview` / a `running` that stays | show the user which parts went out (their links) and ask them to check those accounts | retry, or start a new ID on your own |
10
+ | `needs_review` / `NeedsReview` / a `running` that stays: it **may** have been posted | show the user which parts went out (their links) and ask them to check those accounts | retry, or start a new ID on your own |
10
11
  | Error before publishing (preview errors, missing credentials, budget) | fix the cause, preview again, ask again | publish without a new preview |
11
- | Some accounts posted, one failed | report each account; offer to post only the failed one, as a new draft for that account | re-post to the accounts that succeeded |
12
+ | Some accounts posted, one failed | report each account. If the operation is `failed`, publishing again with the same `requestId` sends only the failed account. If it's `needs_review`, offer a new draft for just that account, after the user checks it | re-post to the accounts that succeeded |
12
13
  | Reusing an ID with different content | it fails by design; use a new ID only for a new approved action | change the ID to force it through |
13
14
 
14
15
  After a restart, `list_history` and `list_drafts` show what happened.
@@ -19,10 +19,15 @@ Used by `create_draft` (under `content`), `preview_post` and `publish_post`:
19
19
  autoSplit: false, // true: split long `text` into numbered parts mechanically
20
20
  firstComment: "…", // LinkedIn only, ≤1250: posted right after, e.g. the link
21
21
  overrides: { "<accountId>": { text?, media?, posts?, firstComment? } },
22
+ addFooter: false, // optional: leave out the accounts' saved footers this time
22
23
  article: { title, tags, published, description?, series?, canonicalUrl?, coverImage? } // Dev.to
23
24
  }
24
25
  ```
25
26
 
27
+ An account can have a saved footer (`footer` in `list_accounts`), such as hashtags
28
+ or a signature line. Preview adds it to the end of the last post unless the text
29
+ already contains it, and counts it toward the limit. Don't add it yourself.
30
+
26
31
  Use either `posts` or `text`/`media`, not both. Prefer `posts` when you wrote the
27
32
  thread; `autoSplit` only for long text the user wants split as is. Media paths are
28
33
  local files inside the allowed media folders (relative paths are looked up there);
@@ -41,8 +46,10 @@ Dev.to takes public HTTPS image URLs.
41
46
  | `publish_draft { draftId, expectedRevision, previewId, requestId }` | posts exactly that preview, once | **yes** |
42
47
 
43
48
  Draft statuses: `Draft` → `Preview` → `Published` (public), `SavedRemotely` (a Dev.to
44
- draft), `Scheduled`, or `NeedsReview` (see recovery.md). `Published`, `Publishing`
45
- and `NeedsReview` drafts can't be edited.
49
+ draft), `Scheduled`, `Failed` (nothing sent, or only the first parts of a thread:
50
+ publish again with the same `requestId`) or `NeedsReview` (may have been posted; see
51
+ recovery.md). `Published`, `Publishing` and `NeedsReview` drafts can't be edited; a
52
+ `Failed` draft can only if nothing was posted anywhere.
46
53
 
47
54
  `requestId`: one per approved action, letters, digits, `.`, `_`, `-`, up to 100
48
55
  characters, for example `launch-2026-11-11-1`. Reuse it only to retry the same action.