@tiwater/office-mcp 0.21.59 → 0.21.61

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.
@@ -9,7 +9,8 @@
9
9
  "x-tiwater-file-role": "read", "x-tiwater-document-revision-role": "current"
10
10
  },
11
11
  "changes": {
12
- "minItems": 1,
12
+ "description": "Formatting operations to apply. An empty array is valid: it materializes an unchanged output and a passing receipt with zero operation and applied counts.",
13
+ "minItems": 0,
13
14
  "type": "array",
14
15
  "items": {
15
16
  "type": "object",
@@ -2,7 +2,7 @@
2
2
  "schema": "tiwater.office-provider-contract-manifest/v1",
3
3
  "provider": {
4
4
  "id": "@tiwater/office-mcp",
5
- "version": "0.21.59"
5
+ "version": "0.21.61"
6
6
  },
7
7
  "tools": [
8
8
  {
@@ -383,11 +383,11 @@
383
383
  "name": "pptx_apply_format",
384
384
  "providerContract": {
385
385
  "source": "packages/pptx-cli/contracts/mcp-input/pptx_apply_format.schema.json",
386
- "sha256": "00c616c27bdcc2c0e66a0e59a4c2609ea32414993084d5987f5fc753334631c9"
386
+ "sha256": "860bed4e102fae68cf94437f54152ace275defffce9d1d1811ae9fbf13f25d4f"
387
387
  },
388
388
  "inputContract": {
389
389
  "path": "office/contracts/pptx_apply_format.schema.json",
390
- "sha256": "00c616c27bdcc2c0e66a0e59a4c2609ea32414993084d5987f5fc753334631c9"
390
+ "sha256": "860bed4e102fae68cf94437f54152ace275defffce9d1d1811ae9fbf13f25d4f"
391
391
  }
392
392
  },
393
393
  {
package/office/index.mjs CHANGED
@@ -633,7 +633,7 @@ const tools = [
633
633
  {
634
634
  name: 'docx_set_text',
635
635
  effectKind: 'document-mutation',
636
- description: 'Replace the whole text content of paragraph or cell objects observed from this exact input DOCX while retaining target formatting, bookmarks, spans, and vertical merges. Pass small batches in changes or keep a large batch out of the tool call by putting the same changes array in changesInput; both may be combined in one atomic commit. A change may explicitly set the Latin and complex-script font family of its nonempty replacement run; East Asian font settings remain inherited from the target. For a vertically merged logical cell, write its visible text to the restart cell rather than a continue cell. Tabs and line breaks remain native document text controls; targets containing non-text objects are rejected. Use this only for newly derived text. Content copied or selected from a source DOCX uses docx_replace_content_from_source so native runs such as superscript and subscript are retained. This does not insert objects, change table structure, copy source formatting, or decide business wording.',
636
+ description: 'Replace the whole text content of paragraph or cell objects, or one exact text node, observed from this exact input DOCX while retaining target formatting, bookmarks, spans, and vertical merges. A text-node target replaces only that node and preserves every surrounding native sibling. Pass small batches in changes or keep a large batch out of the tool call by putting the same changes array in changesInput; both may be combined in one atomic commit. A change may explicitly set the Latin and complex-script font family of its nonempty replacement run; East Asian font settings remain inherited from the target. For a vertically merged logical cell, write its visible text to the restart cell rather than a continue cell. Tabs and line breaks remain native document text controls; paragraph or cell targets containing non-text objects are rejected. Use this only for newly derived text. Content copied or selected from a source DOCX uses docx_replace_content_from_source so native runs such as superscript and subscript are retained. This does not insert objects, change table structure, copy source formatting, or decide business wording.',
637
637
  inputSchema: inputContract('docx_set_text'),
638
638
  outputSchema: fixedEditOutput('docx_set_text'),
639
639
  handler: async (args, tool) => fixedEdit(tool, await resolveFileBackedChanges(args), docxCandidates),
@@ -932,7 +932,7 @@ const tools = [
932
932
  {
933
933
  name: 'pptx_apply_format',
934
934
  effectKind: 'document-mutation',
935
- description: 'Apply one deterministic PPTX formatting plan to a current presentation. This tool executes published formatting operations; it does not derive values, coordinates, or business decisions.',
935
+ description: 'Apply one deterministic PPTX formatting plan to a current presentation. This tool executes published formatting operations; it does not derive values, coordinates, or business decisions. When no formatting change is required, pass an empty changes array to materialize an unchanged output and a passing receipt with zero operation and applied counts.',
936
936
  inputSchema: inputContract('pptx_apply_format'),
937
937
  outputSchema: fixedEditOutput('pptx_apply_format'),
938
938
  handler: (args, tool) => fixedEdit(tool, args, pptxCandidates),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiwater/office-mcp",
3
- "version": "0.21.59",
3
+ "version": "0.21.61",
4
4
  "description": "Published MCP distribution for independent Tiwater Office, PDF, and Text document capabilities",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -2,7 +2,7 @@
2
2
  "schema": "tiwater.pdf-provider-contract-manifest/v1",
3
3
  "provider": {
4
4
  "id": "@tiwater/office-mcp",
5
- "version": "0.21.59"
5
+ "version": "0.21.61"
6
6
  },
7
7
  "runtime": {
8
8
  "command": "tiwater-pdf"
@@ -2,7 +2,7 @@
2
2
  "schema": "tiwater.text-provider-contract-manifest/v1",
3
3
  "provider": {
4
4
  "id": "@tiwater/office-mcp",
5
- "version": "0.21.59"
5
+ "version": "0.21.61"
6
6
  },
7
7
  "tools": [
8
8
  {