@clickminded/coauthor-cli 0.0.73 → 0.0.75

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickminded/coauthor-cli",
3
- "version": "0.0.73",
3
+ "version": "0.0.75",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "coauthor": "dist/index.js",
@@ -22,6 +22,7 @@ coauthor repurpose generate <id> --format all --json # all five text f
22
22
  - Generate only after the draft is final. Regenerating replaces the previous version of that format.
23
23
  - The full set costs roughly 100-150 credits on top of the article.
24
24
  - `coauthor repurpose list <id> --json` shows which formats exist and which are `stale` (the draft changed since they were made). Regenerate stale ones before anyone posts them.
25
+ - Repurposing follows the article as it is now, not the original brief, so a rewritten draft repurposes to its new argument.
25
26
 
26
27
  ## Review
27
28
 
@@ -42,7 +43,7 @@ coauthor repurpose save <id> --format x-post --data '{"variation_id":"<id>","pos
42
43
  coauthor repurpose save <id> --format x-thread --data '{"posts":[...]}' --json
43
44
  ```
44
45
 
45
- Add `"destination_url": "https://..."` to point the posts at the published article. Keep the `{{POST_URL}}` placeholder in stored text; it is replaced with the destination URL on copy.
46
+ Send only these fields, not the whole artifact: a save with none of them returns `nothing_to_save` and changes nothing. Add `"destination_url": "https://..."` to point the posts at the published article. Keep the `{{POST_URL}}` placeholder in stored text; it is replaced with the destination URL on copy.
46
47
 
47
48
  ## Slideshow
48
49
 
@@ -20,6 +20,7 @@ Every failure prints JSON on stderr with `ok: false`, `error` (a readable messag
20
20
  | `entitlement_sync_unavailable` | Subscription status couldn't be checked right now. | Don't retry in a loop. Try again in a few minutes. |
21
21
  | `draft_exists` | `brief answer` on a project that already has a draft. | Edit the draft instead. `--force` only if the user wants to restart from the brief (the draft is regenerated). |
22
22
  | `downstream_exists` | `outline revise` or `research-plan revise` after research ran. | Same: edit the draft, or `--force` to restart from that stage with the user's OK. |
23
+ | `outline_generation_failed` | `outline generate` (or `workflow run`/`advance` reaching the outline) couldn't produce an outline. Nothing was saved; the current outline is unchanged. | Retry once after a minute. If it fails again, tell the user; never write a generic outline yourself and approve it. |
23
24
  | `revision_invalid` | CoAuthor's revision referenced sections that don't exist. | Run `revise` again with feedback that names sections by their current headings. |
24
25
  | `stale_draft` | The draft changed after you read it. | Re-read with `draft get`, reapply your edit, save. |
25
26
  | `user_recently_editing` | The user saved in the browser in the last 90 seconds. | Wait, or ask them. `--force` only with their OK. |
@@ -45,6 +46,8 @@ Every failure prints JSON on stderr with `ok: false`, `error` (a readable messag
45
46
  | `reindex_too_soon` | `site reindex` within 15 minutes of the last read. | Wait, or check `coauthor site status`. |
46
47
  | `site_index_unavailable` | The site reader couldn't be reached. | Try again later; posts are still written, just without new internal links. |
47
48
  | `seo_not_applicable` | The project was created before SEO mode launched. | Create a new project with `--keyword`. |
49
+ | `nothing_to_save` | `repurpose save` had none of the fields it edits (for example the whole artifact sent back). Nothing changed. | Send the edited variation's fields with its id from `data.artifact.variations[].id`, as in `references/repurposing.md`. |
50
+ | `variation_not_saved` | `repurpose save` found the variation but the edit didn't stick (it was regenerated or removed meanwhile). | Run `repurpose show` again and reapply the edit to the current variation id. |
48
51
  | `confirmation_required` | `search-brief set-keyword` or `set-mode` on a project that already has an outline. | Tell the user the outline, research and draft will be regenerated; with their OK, repeat with `--confirm-reset`. |
49
52
  | `invalid_keyword` | The keyword is empty or longer than 200 characters. | Pass a plain search phrase. |
50
53
  | `invalid_seo_mode` | `--seo` or `set-mode` got something other than `optimize`, `my-way` or `off`, or `--seo off` was combined with `--keyword`. | Pass one of the three modes; drop `--keyword` with `off`. |
@@ -536,6 +536,7 @@ coauthor repurpose generate <id> --format all --json # all five text f
536
536
  - Generate only after the draft is final. Regenerating replaces the previous version of that format.
537
537
  - The full set costs roughly 100-150 credits on top of the article.
538
538
  - `coauthor repurpose list <id> --json` shows which formats exist and which are `stale` (the draft changed since they were made). Regenerate stale ones before anyone posts them.
539
+ - Repurposing follows the article as it is now, not the original brief, so a rewritten draft repurposes to its new argument.
539
540
 
540
541
  ### Review
541
542
 
@@ -556,7 +557,7 @@ coauthor repurpose save <id> --format x-post --data '{"variation_id":"<id>","pos
556
557
  coauthor repurpose save <id> --format x-thread --data '{"posts":[...]}' --json
557
558
  ```
558
559
 
559
- Add `"destination_url": "https://..."` to point the posts at the published article. Keep the `{{POST_URL}}` placeholder in stored text; it is replaced with the destination URL on copy.
560
+ Send only these fields, not the whole artifact: a save with none of them returns `nothing_to_save` and changes nothing. Add `"destination_url": "https://..."` to point the posts at the published article. Keep the `{{POST_URL}}` placeholder in stored text; it is replaced with the destination URL on copy.
560
561
 
561
562
  ### Slideshow
562
563
 
@@ -735,6 +736,7 @@ Every failure prints JSON on stderr with `ok: false`, `error` (a readable messag
735
736
  | `entitlement_sync_unavailable` | Subscription status couldn't be checked right now. | Don't retry in a loop. Try again in a few minutes. |
736
737
  | `draft_exists` | `brief answer` on a project that already has a draft. | Edit the draft instead. `--force` only if the user wants to restart from the brief (the draft is regenerated). |
737
738
  | `downstream_exists` | `outline revise` or `research-plan revise` after research ran. | Same: edit the draft, or `--force` to restart from that stage with the user's OK. |
739
+ | `outline_generation_failed` | `outline generate` (or `workflow run`/`advance` reaching the outline) couldn't produce an outline. Nothing was saved; the current outline is unchanged. | Retry once after a minute. If it fails again, tell the user; never write a generic outline yourself and approve it. |
738
740
  | `revision_invalid` | CoAuthor's revision referenced sections that don't exist. | Run `revise` again with feedback that names sections by their current headings. |
739
741
  | `stale_draft` | The draft changed after you read it. | Re-read with `draft get`, reapply your edit, save. |
740
742
  | `user_recently_editing` | The user saved in the browser in the last 90 seconds. | Wait, or ask them. `--force` only with their OK. |
@@ -760,6 +762,8 @@ Every failure prints JSON on stderr with `ok: false`, `error` (a readable messag
760
762
  | `reindex_too_soon` | `site reindex` within 15 minutes of the last read. | Wait, or check `coauthor site status`. |
761
763
  | `site_index_unavailable` | The site reader couldn't be reached. | Try again later; posts are still written, just without new internal links. |
762
764
  | `seo_not_applicable` | The project was created before SEO mode launched. | Create a new project with `--keyword`. |
765
+ | `nothing_to_save` | `repurpose save` had none of the fields it edits (for example the whole artifact sent back). Nothing changed. | Send the edited variation's fields with its id from `data.artifact.variations[].id`, as in `references/repurposing.md`. |
766
+ | `variation_not_saved` | `repurpose save` found the variation but the edit didn't stick (it was regenerated or removed meanwhile). | Run `repurpose show` again and reapply the edit to the current variation id. |
763
767
  | `confirmation_required` | `search-brief set-keyword` or `set-mode` on a project that already has an outline. | Tell the user the outline, research and draft will be regenerated; with their OK, repeat with `--confirm-reset`. |
764
768
  | `invalid_keyword` | The keyword is empty or longer than 200 characters. | Pass a plain search phrase. |
765
769
  | `invalid_seo_mode` | `--seo` or `set-mode` got something other than `optimize`, `my-way` or `off`, or `--seo off` was combined with `--keyword`. | Pass one of the three modes; drop `--keyword` with `off`. |