@tiwater/office-mcp 0.21.36 → 0.21.37

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.
@@ -63,36 +63,29 @@
63
63
  "type": "object", "properties": {
64
64
  "columns": { "type": "array", "minItems": 1, "description": "One or more contiguous request-local column IDs occupied by this cell.", "items": { "type": "string", "minLength": 1, "maxLength": 80 } },
65
65
  "rowSpan": { "type": "integer", "minimum": 1, "maximum": 2147483647 },
66
- "text": { "anyOf": [{ "type": "string" }, { "type": "null" }], "description": "Final derived plain text, or null when sourceContent is used." },
67
- "sourceContent": {
68
- "anyOf": [{
69
- "type": "object",
70
- "properties": {
71
- "input": { "type": "string", "minLength": 1, "x-tiwater-file-role": "read" },
72
- "selections": {
73
- "type": "array", "minItems": 1,
74
- "items": {
75
- "type": "object", "properties": {
76
- "address": {
77
- "type": "object", "properties": {
78
- "part": { "type": "string", "minLength": 1, "pattern": "^\\/" },
79
- "path": { "type": "string", "pattern": "^\\/[A-Za-z_][A-Za-z0-9_.-]*:[A-Za-z_][A-Za-z0-9_.-]*\\[[1-9][0-9]*\\](?:\\/[A-Za-z_][A-Za-z0-9_.-]*:[A-Za-z_][A-Za-z0-9_.-]*\\[[1-9][0-9]*\\])*$" }
80
- }, "required": ["part", "path"], "additionalProperties": false
81
- },
82
- "range": {
83
- "type": "object", "properties": {
84
- "start": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
85
- "length": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }
86
- }, "required": ["start", "length"], "additionalProperties": false
87
- }
88
- }, "required": ["address"], "additionalProperties": false
89
- }
66
+ "text": { "anyOf": [{ "type": "string" }, { "type": "null" }], "description": "Final derived plain text, or null when sourceInput and sourceSelections are used." },
67
+ "sourceInput": { "type": "string", "minLength": 1, "description": "Current source DOCX containing sourceSelections. Omit when text is used.", "x-tiwater-file-role": "read" },
68
+ "sourceSelections": {
69
+ "type": "array", "minItems": 1,
70
+ "description": "Exact ordered native source selections. Omit when text is used.",
71
+ "items": {
72
+ "type": "object", "properties": {
73
+ "address": {
74
+ "type": "object", "properties": {
75
+ "part": { "type": "string", "minLength": 1, "pattern": "^\\/" },
76
+ "path": { "type": "string", "pattern": "^\\/[A-Za-z_][A-Za-z0-9_.-]*:[A-Za-z_][A-Za-z0-9_.-]*\\[[1-9][0-9]*\\](?:\\/[A-Za-z_][A-Za-z0-9_.-]*:[A-Za-z_][A-Za-z0-9_.-]*\\[[1-9][0-9]*\\])*$" }
77
+ }, "required": ["part", "path"], "additionalProperties": false
78
+ },
79
+ "range": {
80
+ "type": "object", "properties": {
81
+ "start": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
82
+ "length": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }
83
+ }, "required": ["start", "length"], "additionalProperties": false
90
84
  }
91
- }, "required": ["input", "selections"], "additionalProperties": false
92
- }, { "type": "null" }],
93
- "description": "Exact ordered native source selections, or null when text is used."
85
+ }, "required": ["address"], "additionalProperties": false
86
+ }
94
87
  }
95
- }, "required": ["columns", "text", "sourceContent"], "additionalProperties": false
88
+ }, "required": ["columns", "text"], "additionalProperties": false
96
89
  }
97
90
  },
98
91
  "cantSplit": { "type": "boolean" }
@@ -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.36"
5
+ "version": "0.21.37"
6
6
  },
7
7
  "tools": [
8
8
  {
@@ -196,11 +196,11 @@
196
196
  "name": "docx_set_table",
197
197
  "providerContract": {
198
198
  "source": "packages/docx-cli/contracts/mcp-input/docx_set_table.schema.json",
199
- "sha256": "1b501654b6cd3ee58831393c9100ac37e1e5c21a5a92071a6f612b103aae122e"
199
+ "sha256": "17c0f3c64fe36bbb3658ee44ce2b505b25241f37d0c08957a8706bd610f8e160"
200
200
  },
201
201
  "inputContract": {
202
202
  "path": "office/contracts/docx_set_table.schema.json",
203
- "sha256": "1b501654b6cd3ee58831393c9100ac37e1e5c21a5a92071a6f612b103aae122e"
203
+ "sha256": "17c0f3c64fe36bbb3658ee44ce2b505b25241f37d0c08957a8706bd610f8e160"
204
204
  }
205
205
  },
206
206
  {
package/office/index.mjs CHANGED
@@ -503,7 +503,7 @@ const tools = [
503
503
  {
504
504
  name: 'docx_set_table',
505
505
  effectKind: 'document-mutation',
506
- description: 'Atomically replace one exact current target-table row range with a fully specified table body. Name every target grid column in native order. Each explicit cell occupies contiguous columns and may span logical rows; covered columns are omitted from following rows. Set each cell from either derived text or exact native source selections, never both. Native source selections retain run formatting such as superscript and subscript. The provider retains the target table, target cell styles, grid widths, and all content outside the replaced range, and exposes no intermediate document. It does not select source rows, map business columns, infer target shape, derive wording, or copy a source table wholesale.',
506
+ description: 'Atomically replace one exact current target-table row range with a fully specified table body. Name every target grid column in native order. Each explicit cell occupies contiguous columns and may span logical rows; covered columns are omitted from following rows. Set each cell from either derived text or sourceInput plus exact native sourceSelections, never both. Native source selections retain run formatting such as superscript and subscript. The provider retains the target table, target cell styles, grid widths, and all content outside the replaced range, and exposes no intermediate document. It does not select source rows, map business columns, infer target shape, derive wording, or copy a source table wholesale.',
507
507
  inputSchema: inputContract('docx_set_table'),
508
508
  outputSchema: fixedEditOutput('docx_set_table'),
509
509
  handler: (args, tool) => fixedEdit(tool, args, docxCandidates),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiwater/office-mcp",
3
- "version": "0.21.36",
3
+ "version": "0.21.37",
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.36"
5
+ "version": "0.21.37"
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.36"
5
+ "version": "0.21.37"
6
6
  },
7
7
  "tools": [
8
8
  {