@zerolingua/mcp 0.4.0 → 0.4.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/README.md CHANGED
@@ -123,6 +123,10 @@ tool, authenticated with the user's own Application Password.
123
123
 
124
124
  ## Versions
125
125
 
126
+ - **0.4.1** — the tools say what Zerø Lingua 0.12.1 does: what an agent saves
127
+ stays a draft unless the site publishes AI without review everywhere
128
+ (Settings → automation), and a sentence whose ⟦0⟧ changes the word before it
129
+ (de → d') is rewritten so it does not depend on it.
126
130
  - **0.4.0** — `keep_original`: a brand or a name is marked «keep original»
127
131
  instead of saved as a copy of its source (needs Zerø Lingua 0.11.2).
128
132
  `translate_batch`, deprecated since 0.3.0, is gone: Zerø Lingua 0.12 removed
package/index.js CHANGED
@@ -37,7 +37,7 @@ if ( missing.length ) {
37
37
  * the opening exchange and pins one instance to it.
38
38
  */
39
39
  function buildServer() {
40
- const server = new McpServer( { name: 'zero-lingua', version: '0.4.0' } );
40
+ const server = new McpServer( { name: 'zero-lingua', version: '0.4.1' } );
41
41
  for ( const tool of TOOLS ) {
42
42
  server.registerTool(
43
43
  tool.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerolingua/mcp",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "MCP server for Zerø Lingua — lets AI agents read a site's strings, write translations, and approve pending work through the plugin's licensed REST surface. Speaks MCP 2026-07-28 and the 2025 era.",
5
5
  "type": "module",
6
6
  "scripts": {
package/tools.js CHANGED
@@ -179,11 +179,17 @@ export const TOOLS = [
179
179
  'Write translations YOU produced (for the site\'s own AI engine use translate_set instead). ' +
180
180
  'Every entry must carry a `hash` from item_strings — source-only entries are rejected on this ' +
181
181
  'surface. Placeholder tokens wrapped in ⟦ ⟧ must be preserved in the translation EXACTLY as they ' +
182
- 'appear in the source, or that entry is skipped. Inline HTML holds to the same rule: when the ' +
182
+ 'appear in the source, or that entry is skipped. One translation serves every value a token ' +
183
+ 'takes: when the value changes the word before it (Catalan de → d\', French le → l\'), rewrite ' +
184
+ 'the sentence so it does not depend on it, e.g. «Veure la carta: ⟦0⟧», not «Veure la carta de ⟦0⟧». ' +
185
+ 'Inline HTML holds to the same rule: when the ' +
183
186
  'source carries tags (a link, a bold), the translation must carry the same tags, in the same ' +
184
187
  'order, with the same attributes — adding, repointing or dropping one gets the entry skipped. ' +
185
- 'Saves land as DRAFTS behind the review gate: nothing serves publicly until approve_item or ' +
186
- 'approve_set (or a human in the panel) signs it off — never treat a save as published. The ' +
188
+ 'Saves land as DRAFTS behind the review gate: nothing new serves publicly until approve_item or ' +
189
+ 'approve_set (or a human in the panel) signs it off, and a text already live keeps serving until ' +
190
+ 'then — unless the site owner chose «publish AI without review everywhere» (settings → automation), ' +
191
+ 'when a save serves at once. The response\'s `review` says which: "approved" only when every saved ' +
192
+ 'entry is live, "draft" otherwise; never treat a save as published without it. The ' +
187
193
  'response reports `saved` and `skipped` honestly, and `skipped_at` lists the indexes of the ' +
188
194
  'skipped entries; skipped means a guard refused it (placeholder or markup mismatch, rights, ' +
189
195
  'unknown hash), not a partial success. A text that needs no translation (a brand, a wine, a name) ' +