@workover/mcp 0.7.0 → 0.7.1

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 (3) hide show
  1. package/index.mjs +1 -1
  2. package/lib.mjs +10 -7
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -245,7 +245,7 @@ const telemetry = telemetryEnabled(process.env, { auth });
245
245
  // Keep in step with package.json. It is what every telemetry event is stamped with, so a stale
246
246
  // value here does not break anything — it quietly attributes this release's behaviour to an older
247
247
  // one, which is worse, because the numbers still look fine.
248
- const VERSION = '0.7.0';
248
+ const VERSION = '0.7.1';
249
249
 
250
250
  /**
251
251
  * What the client is told about this server before it calls anything.
package/lib.mjs CHANGED
@@ -401,14 +401,17 @@ export function makeDispatch({ auth, api, apiPost, fetchImpl = fetch, readFile }
401
401
  : ''
402
402
  : ` NOTE: this Workover ignored the categories, so the document is not filed under ${categories.join(', ')} — set them in the document list.`;
403
403
  if (contentCommitted(doc)) {
404
- // The guide, not a verdict.
404
+ // The verdict when the api ran the check, the guide when it could not have.
405
405
  //
406
- // `create` does not run the mechanical lint the way `propose` and `edit` do, because the
407
- // api's create route does not return one — and rather than assert a check that did not
408
- // happen, this shows the rules so the agent can measure its own draft against them on
409
- // the next edit. Claiming "no violations" here would be the empty-checklist problem
410
- // again, in a place nobody would think to look for it.
411
- const style = renderStyleGuide(await fetchRules(api, projectId));
406
+ // A current api lints the body on create the way `propose` and `edit` do and returns
407
+ // `style` (null meaning no rules). An older one has no such field, and rather than assert
408
+ // a check that did not happen, this falls back to showing the rules so the agent can
409
+ // measure its own draft against them. Claiming "no violations" on a check that never ran
410
+ // would be the empty-checklist problem again, in a place nobody would think to look.
411
+ const style =
412
+ doc && 'style' in doc
413
+ ? renderStyleFeedback(doc.style)
414
+ : renderStyleGuide(await fetchRules(api, projectId));
412
415
  return text(
413
416
  `Created "${title}" (document #${doc.id}) with the content written in — no review step, because it is a new document.${filedNote}${doc.documentUrl ? `\n${doc.documentUrl}` : ''}\n\nFurther changes to it go through workover_propose_edit, which the person accepts or rejects. Nothing is published to WordPress either way.${style}`,
414
417
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workover/mcp",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Workover MCP server — let Claude Code and other MCP clients read and cowork on your Workover documents.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ScaleMath",