@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.
- package/index.mjs +1 -1
- package/lib.mjs +10 -7
- 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.
|
|
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
|
|
404
|
+
// The verdict when the api ran the check, the guide when it could not have.
|
|
405
405
|
//
|
|
406
|
-
//
|
|
407
|
-
//
|
|
408
|
-
// happen, this
|
|
409
|
-
//
|
|
410
|
-
// again, in a place nobody would think to look
|
|
411
|
-
const style =
|
|
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