@clickminded/coauthor-cli 0.0.21 → 0.0.22

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 (2) hide show
  1. package/dist/commands.js +9 -1
  2. package/package.json +1 -1
package/dist/commands.js CHANGED
@@ -527,7 +527,15 @@ async function runDraftReviseCommand(projectId, input, context) {
527
527
  };
528
528
  }
529
529
  if (getResponseValue(revision, 'awaiting_review') !== true) {
530
- return { ok: true, message: `Revision ${revisionId} finished as ${getResponseString(revision, 'state') ?? 'unknown'} with no changes to review.`, data: revision };
530
+ // No changes usually means CoAuthor asked a question or explained why it
531
+ // did not edit. Show its reply so the caller can answer or rephrase.
532
+ const reply = getResponseString(revision, 'assistant_message');
533
+ return {
534
+ ok: true,
535
+ status: 'no_changes',
536
+ message: `Revision ${revisionId} finished as ${getResponseString(revision, 'state') ?? 'unknown'} with no changes to review.${reply ? `\nCoAuthor replied: ${reply}` : ''}`,
537
+ data: revision,
538
+ };
531
539
  }
532
540
  if (getBoolean(input.values, 'apply')) {
533
541
  const applied = await applyRevision(context.client, projectId, revisionId, input);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickminded/coauthor-cli",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "coauthor": "dist/index.js",