@clickminded/coauthor-cli 0.0.72 → 0.0.74

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.72",
3
+ "version": "0.0.74",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "coauthor": "dist/index.js",
@@ -17,6 +17,7 @@ coauthor draft revise <id> --instruction "Cut the intro to two sentences and lea
17
17
  - One revision can be open on a draft at a time, and an open one blocks the user's saves in the browser. Always apply or discard it. `revision_pending` means one is already open. A revision you leave waiting for review is discarded automatically after 30 minutes (`expires_at` in `draft revision show`), so review it promptly; after that, start a new one.
18
18
  - If `--wait` returns `still_running`, check again with `coauthor draft revision show <id> <revision-id> --json`.
19
19
  - While a revision runs, up to 100 available credits are temporarily held for its steps. Only actual usage is charged; unused held credits are released when it finishes or stops. A hold is included in `coauthor credits <id> --json` and does not change the request's spending limit.
20
+ - A revision that ends without a result (it failed, or didn't finish within 12 minutes and was closed) has the credits it used refunded automatically. A revision you cancel is not refunded.
20
21
  - `revise_unavailable` means this account cannot revise by instruction yet; use a direct edit.
21
22
 
22
23
  ## 2. Direct edit (exact text you already have)
@@ -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
 
@@ -45,6 +45,8 @@ Every failure prints JSON on stderr with `ok: false`, `error` (a readable messag
45
45
  | `reindex_too_soon` | `site reindex` within 15 minutes of the last read. | Wait, or check `coauthor site status`. |
46
46
  | `site_index_unavailable` | The site reader couldn't be reached. | Try again later; posts are still written, just without new internal links. |
47
47
  | `seo_not_applicable` | The project was created before SEO mode launched. | Create a new project with `--keyword`. |
48
+ | `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`. |
49
+ | `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
50
  | `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
51
  | `invalid_keyword` | The keyword is empty or longer than 200 characters. | Pass a plain search phrase. |
50
52
  | `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`. |
@@ -317,6 +317,7 @@ coauthor draft revise <id> --instruction "Cut the intro to two sentences and lea
317
317
  - One revision can be open on a draft at a time, and an open one blocks the user's saves in the browser. Always apply or discard it. `revision_pending` means one is already open. A revision you leave waiting for review is discarded automatically after 30 minutes (`expires_at` in `draft revision show`), so review it promptly; after that, start a new one.
318
318
  - If `--wait` returns `still_running`, check again with `coauthor draft revision show <id> <revision-id> --json`.
319
319
  - While a revision runs, up to 100 available credits are temporarily held for its steps. Only actual usage is charged; unused held credits are released when it finishes or stops. A hold is included in `coauthor credits <id> --json` and does not change the request's spending limit.
320
+ - A revision that ends without a result (it failed, or didn't finish within 12 minutes and was closed) has the credits it used refunded automatically. A revision you cancel is not refunded.
320
321
  - `revise_unavailable` means this account cannot revise by instruction yet; use a direct edit.
321
322
 
322
323
  ### 2. Direct edit (exact text you already have)
@@ -535,6 +536,7 @@ coauthor repurpose generate <id> --format all --json # all five text f
535
536
  - Generate only after the draft is final. Regenerating replaces the previous version of that format.
536
537
  - The full set costs roughly 100-150 credits on top of the article.
537
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.
538
540
 
539
541
  ### Review
540
542
 
@@ -555,7 +557,7 @@ coauthor repurpose save <id> --format x-post --data '{"variation_id":"<id>","pos
555
557
  coauthor repurpose save <id> --format x-thread --data '{"posts":[...]}' --json
556
558
  ```
557
559
 
558
- 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.
559
561
 
560
562
  ### Slideshow
561
563
 
@@ -759,6 +761,8 @@ Every failure prints JSON on stderr with `ok: false`, `error` (a readable messag
759
761
  | `reindex_too_soon` | `site reindex` within 15 minutes of the last read. | Wait, or check `coauthor site status`. |
760
762
  | `site_index_unavailable` | The site reader couldn't be reached. | Try again later; posts are still written, just without new internal links. |
761
763
  | `seo_not_applicable` | The project was created before SEO mode launched. | Create a new project with `--keyword`. |
764
+ | `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`. |
765
+ | `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. |
762
766
  | `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`. |
763
767
  | `invalid_keyword` | The keyword is empty or longer than 200 characters. | Pass a plain search phrase. |
764
768
  | `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`. |