@zerolingua/mcp 0.4.1 → 0.4.2

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
@@ -89,7 +89,8 @@ server resolves it, checks rights per item and reports what it did not do.
89
89
  `{ "document": <post id> }` or `{ "site_identity": true }`) **or** `targets`
90
90
  (`[{ "id", "kind" }]`, at most 500). `langs` is required and never empty.
91
91
  Optional filters: `status` (`translated`, `needs_review`, `in_progress`,
92
- `not_translated`; aliases `done`, `todo`), `search`, `kinds` (strings only),
92
+ `not_translated`; aliases `done`, `todo`, and `to_approve`: `needs_review` plus
93
+ what is live and read by nobody), `search`, `kinds` (strings only),
93
94
  `taxonomies` (terms only).
94
95
  - **Dry run first.** The same call with `dry_run: true` answers the number
95
96
  (strings to pay for and the month's `budget`, or rows to approve) and writes
@@ -123,6 +124,8 @@ tool, authenticated with the user's own Application Password.
123
124
 
124
125
  ## Versions
125
126
 
127
+ - **0.4.2** — `status` takes `to_approve` (Zerø Lingua 0.13): `needs_review` plus what is
128
+ live and read by nobody, the set «approve» signs.
126
129
  - **0.4.1** — the tools say what Zerø Lingua 0.12.1 does: what an agent saves
127
130
  stays a draft unless the site publishes AI without review everywhere
128
131
  (Settings → automation), and a sentence whose ⟦0⟧ changes the word before it
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.1' } );
40
+ const server = new McpServer( { name: 'zero-lingua', version: '0.4.2' } );
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.1",
3
+ "version": "0.4.2",
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
@@ -22,8 +22,8 @@ const WORKFLOW =
22
22
  "site's AI engine: dry_run first) → approve_item (one page) or approve_set (a whole set) → " +
23
23
  'queue_status (follow queued work). A brand or a name that needs no translation: keep_original.';
24
24
 
25
- /** The contract's status words and their two aliases (SELECTOR-CONTRACT.md § Enums). */
26
- const STATUS = [ 'translated', 'needs_review', 'in_progress', 'not_translated', 'done', 'todo' ];
25
+ /** The contract's status words and their three aliases (SELECTOR-CONTRACT.md § Enums). */
26
+ const STATUS = [ 'translated', 'needs_review', 'in_progress', 'not_translated', 'done', 'todo', 'to_approve' ];
27
27
 
28
28
  /** What a unit is (SELECTOR-CONTRACT.md § El selector, `targets[].kind`). */
29
29
  const UNIT_KINDS = [ 'post', 'component', 'term', 'menu', 'form', 'loop', 'string' ];