@doclift/workflows-mcp 0.1.0 → 0.1.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/dist/guidance.js CHANGED
@@ -89,6 +89,17 @@ makes no network request at render time, so every picture has to go through
89
89
  \`image_upload\` and be cited by the URL it answers with. \`workflow_validate\`
90
90
  reports the others under \`unreachable_images\`.
91
91
 
92
+ **2 sexies. A running title band is clipped at the height of its margin.** The
93
+ band is framed at the margin reserved for its side — never less than
94
+ \`capabilities.authoring.band.reserved_mm_minimum\` — and what does not fit is
95
+ hidden. Measured at the default margins: it holds
96
+ \`capabilities.authoring.band.usable_lines_at_minimum\` lines and loses the rest,
97
+ **from the top for a footer**, so a paragraph of legal text comes back starting
98
+ mid-sentence. No write refuses it, \`workflow_validate\` sees nothing wrong with
99
+ the markup, and the render answers 200. \`workflow_selfcheck\` reports these as
100
+ \`clipped_bands\`. A band is a line, not a paragraph: legal text belongs in a
101
+ content section, which flows onto the next page instead of being cut.
102
+
92
103
  **3. Declaring inline what the theme already says freezes the document.** It
93
104
  looks identical today and stops following the theme forever. Set the theme, then
94
105
  write only what departs from it. This is the mistake that costs the most and
@@ -194,10 +205,13 @@ satisfied.
194
205
  the integrity check, and is invisible everywhere else.
195
206
  3. **No picture is unreachable.** The engine makes no network request, and a
196
207
  token that no longer names a stored image is removed at render time.
197
- 4. **No variable was declared and never used.** The mirror of a broken
208
+ 4. **No band is longer than the margin reserved for it.** A running head or
209
+ foot is clipped, without an error, and a footer loses its opening rather
210
+ than its end.
211
+ 5. **No variable was declared and never used.** The mirror of a broken
198
212
  reference: it usually means a token was written with a typo, and the typo
199
213
  became a second, dead name.
200
- 5. **A PDF exists, and it is newer than your last edit.** If you rendered before
214
+ 6. **A PDF exists, and it is newer than your last edit.** If you rendered before
201
215
  your last change, what you looked at is not what you have.
202
216
 
203
217
  ## What it cannot check, and you must
@@ -99,6 +99,13 @@ const selfcheck = (validation, template, payload) => {
99
99
  };
100
100
  lines.push(listLine('inert_tokens', 'No variable token is inert', 'Rewrite each token with the class capabilities.content.tokens gives, then section_update.'));
101
101
  lines.push(listLine('unreachable_images', 'No picture is unreachable', 'Upload each picture with image_upload and cite the URL it answers with.'));
102
+ // A band is framed at the height of the margin reserved for it and clipped.
103
+ // Measured: at the default margins it holds two lines and loses the third,
104
+ // from the top for a footer — so a paragraph of legal text comes back
105
+ // starting mid-sentence, and nothing else in this API says a word about it.
106
+ lines.push(listLine('clipped_bands', 'No running title band is longer than the margin reserved for it', 'Shorten the band, or widen the margin on that side. A band is not a place ' +
107
+ 'for a paragraph: move legal text into a content section, which flows and ' +
108
+ 'is never cut.'));
102
109
  lines.push(listLine('layout_tables', 'No table is used for a column layout with its rules showing', 'Put capabilities.authoring.table.layout_row_class on the <tr>: it takes the rules away and ' +
103
110
  'leaves the columns. A ruled table around two blocks set side by side is a shape no ' +
104
111
  'hand-made document has.'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doclift/workflows-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "MCP server over the Doclift workflow authoring API",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.doclift.io/docs/getting-started",
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "type": "module",
16
16
  "bin": {
17
- "doclift-workflows-mcp": "./dist/index.js"
17
+ "doclift-workflows-mcp": "dist/index.js"
18
18
  },
19
19
  "files": [
20
20
  "dist"