@tiwater/office-mcp 0.15.13 → 0.16.0

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.
Files changed (50) hide show
  1. package/office/README.md +3 -14
  2. package/office/contracts/tiwater-office-provider-contract-manifest-v1.json +1 -507
  3. package/office/index.mjs +16 -54
  4. package/package.json +1 -1
  5. package/office/contracts/docx_apply_font_policy.schema.json +0 -77
  6. package/office/contracts/docx_apply_toc_style_policy.schema.json +0 -53
  7. package/office/contracts/docx_collapse_trailing_empty_paragraphs.schema.json +0 -30
  8. package/office/contracts/docx_collapse_trailing_empty_section.schema.json +0 -30
  9. package/office/contracts/docx_delete_body_drawing_before_paragraph.schema.json +0 -54
  10. package/office/contracts/docx_delete_body_paragraph.schema.json +0 -54
  11. package/office/contracts/docx_delete_body_range.schema.json +0 -69
  12. package/office/contracts/docx_delete_comments.schema.json +0 -52
  13. package/office/contracts/docx_delete_table_rows.schema.json +0 -61
  14. package/office/contracts/docx_freeze_fields.schema.json +0 -30
  15. package/office/contracts/docx_insert_body_image.schema.json +0 -70
  16. package/office/contracts/docx_insert_body_range.schema.json +0 -67
  17. package/office/contracts/docx_insert_table_columns.schema.json +0 -65
  18. package/office/contracts/docx_insert_table_rows.schema.json +0 -140
  19. package/office/contracts/docx_mark_fields_dirty.schema.json +0 -30
  20. package/office/contracts/docx_replace_body_text.schema.json +0 -52
  21. package/office/contracts/docx_replace_drawing_image.schema.json +0 -61
  22. package/office/contracts/docx_replace_header_text.schema.json +0 -52
  23. package/office/contracts/docx_replace_table_rows.schema.json +0 -149
  24. package/office/contracts/docx_sanitize_fields.schema.json +0 -30
  25. package/office/contracts/docx_set_anchored_text.schema.json +0 -52
  26. package/office/contracts/docx_set_body_paragraph_keep_lines.schema.json +0 -53
  27. package/office/contracts/docx_set_body_paragraph_keep_next.schema.json +0 -53
  28. package/office/contracts/docx_set_footer_paragraph_text.schema.json +0 -59
  29. package/office/contracts/docx_set_footer_run_text.schema.json +0 -65
  30. package/office/contracts/docx_set_footer_table_cell_run_text.schema.json +0 -83
  31. package/office/contracts/docx_set_footer_table_cell_text.schema.json +0 -71
  32. package/office/contracts/docx_set_header_paragraph_font_size.schema.json +0 -60
  33. package/office/contracts/docx_set_header_paragraph_text.schema.json +0 -59
  34. package/office/contracts/docx_set_header_run_text.schema.json +0 -65
  35. package/office/contracts/docx_set_header_table_cell_run_text.schema.json +0 -83
  36. package/office/contracts/docx_set_header_table_cell_text.schema.json +0 -71
  37. package/office/contracts/docx_set_paragraph_run_text.schema.json +0 -59
  38. package/office/contracts/docx_set_paragraph_text.schema.json +0 -53
  39. package/office/contracts/docx_set_table_cell_alignment.schema.json +0 -66
  40. package/office/contracts/docx_set_table_cell_font_size.schema.json +0 -66
  41. package/office/contracts/docx_set_table_cell_no_wrap.schema.json +0 -65
  42. package/office/contracts/docx_set_table_cell_rich_text.schema.json +0 -100
  43. package/office/contracts/docx_set_table_cell_run_text.schema.json +0 -77
  44. package/office/contracts/docx_set_table_cell_text.schema.json +0 -68
  45. package/office/contracts/docx_set_table_row_cant_split.schema.json +0 -59
  46. package/office/contracts/docx_set_table_row_height.schema.json +0 -63
  47. package/office/contracts/docx_set_table_row_keep_next.schema.json +0 -59
  48. package/office/contracts/docx_set_table_row_repeat_as_header.schema.json +0 -123
  49. package/office/contracts/docx_set_table_width.schema.json +0 -64
  50. package/office/contracts/docx_start_section.schema.json +0 -56
@@ -1,68 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "tableIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "rowIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "cellIndex": {
40
- "type": "integer",
41
- "minimum": 0,
42
- "maximum": 9007199254740991
43
- },
44
- "text": {
45
- "type": "string"
46
- },
47
- "alignment": {
48
- "type": "string"
49
- }
50
- },
51
- "required": [
52
- "tableIndex",
53
- "rowIndex",
54
- "cellIndex",
55
- "text"
56
- ],
57
- "additionalProperties": false
58
- }
59
- }
60
- },
61
- "required": [
62
- "input",
63
- "output",
64
- "receiptOutput",
65
- "changes"
66
- ],
67
- "additionalProperties": false
68
- }
@@ -1,59 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "tableIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "rowIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "cantSplit": {
40
- "type": "boolean"
41
- }
42
- },
43
- "required": [
44
- "tableIndex",
45
- "rowIndex",
46
- "cantSplit"
47
- ],
48
- "additionalProperties": false
49
- }
50
- }
51
- },
52
- "required": [
53
- "input",
54
- "output",
55
- "receiptOutput",
56
- "changes"
57
- ],
58
- "additionalProperties": false
59
- }
@@ -1,63 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "tableIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "rowIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "height": {
40
- "type": "string",
41
- "minLength": 1
42
- },
43
- "heightRule": {
44
- "type": "string"
45
- }
46
- },
47
- "required": [
48
- "tableIndex",
49
- "rowIndex",
50
- "height"
51
- ],
52
- "additionalProperties": false
53
- }
54
- }
55
- },
56
- "required": [
57
- "input",
58
- "output",
59
- "receiptOutput",
60
- "changes"
61
- ],
62
- "additionalProperties": false
63
- }
@@ -1,59 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "tableIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "rowIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "keepNext": {
40
- "type": "boolean"
41
- }
42
- },
43
- "required": [
44
- "tableIndex",
45
- "rowIndex",
46
- "keepNext"
47
- ],
48
- "additionalProperties": false
49
- }
50
- }
51
- },
52
- "required": [
53
- "input",
54
- "output",
55
- "receiptOutput",
56
- "changes"
57
- ],
58
- "additionalProperties": false
59
- }
@@ -1,123 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "anyOf": [
28
- {
29
- "type": "object",
30
- "properties": {
31
- "tableIndex": {
32
- "type": "integer",
33
- "minimum": 0,
34
- "maximum": 9007199254740991
35
- },
36
- "rowIndex": {
37
- "type": "integer",
38
- "minimum": 0,
39
- "maximum": 9007199254740991
40
- },
41
- "repeatAsHeader": {
42
- "type": "boolean"
43
- }
44
- },
45
- "required": [
46
- "tableIndex",
47
- "rowIndex",
48
- "repeatAsHeader"
49
- ],
50
- "additionalProperties": false
51
- },
52
- {
53
- "type": "object",
54
- "properties": {
55
- "tableIndex": {
56
- "type": "integer",
57
- "minimum": 0,
58
- "maximum": 9007199254740991
59
- },
60
- "rowIndex": {
61
- "type": "integer",
62
- "minimum": 0,
63
- "maximum": 9007199254740991
64
- },
65
- "repeatAsHeader": {
66
- "type": "boolean"
67
- },
68
- "headerIndex": {
69
- "type": "integer",
70
- "minimum": 0,
71
- "maximum": 9007199254740991
72
- }
73
- },
74
- "required": [
75
- "tableIndex",
76
- "rowIndex",
77
- "repeatAsHeader",
78
- "headerIndex"
79
- ],
80
- "additionalProperties": false
81
- },
82
- {
83
- "type": "object",
84
- "properties": {
85
- "tableIndex": {
86
- "type": "integer",
87
- "minimum": 0,
88
- "maximum": 9007199254740991
89
- },
90
- "rowIndex": {
91
- "type": "integer",
92
- "minimum": 0,
93
- "maximum": 9007199254740991
94
- },
95
- "repeatAsHeader": {
96
- "type": "boolean"
97
- },
98
- "footerIndex": {
99
- "type": "integer",
100
- "minimum": 0,
101
- "maximum": 9007199254740991
102
- }
103
- },
104
- "required": [
105
- "tableIndex",
106
- "rowIndex",
107
- "repeatAsHeader",
108
- "footerIndex"
109
- ],
110
- "additionalProperties": false
111
- }
112
- ]
113
- }
114
- }
115
- },
116
- "required": [
117
- "input",
118
- "output",
119
- "receiptOutput",
120
- "changes"
121
- ],
122
- "additionalProperties": false
123
- }
@@ -1,64 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "tableIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "width": {
35
- "type": "string",
36
- "minLength": 1
37
- },
38
- "widthType": {
39
- "type": "string",
40
- "enum": [
41
- "pct",
42
- "dxa",
43
- "auto",
44
- "nil"
45
- ]
46
- }
47
- },
48
- "required": [
49
- "tableIndex",
50
- "width",
51
- "widthType"
52
- ],
53
- "additionalProperties": false
54
- }
55
- }
56
- },
57
- "required": [
58
- "input",
59
- "output",
60
- "receiptOutput",
61
- "changes"
62
- ],
63
- "additionalProperties": false
64
- }
@@ -1,56 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "findText": {
30
- "type": "string",
31
- "minLength": 1
32
- },
33
- "orientation": {
34
- "type": "string",
35
- "enum": [
36
- "portrait",
37
- "landscape"
38
- ]
39
- }
40
- },
41
- "required": [
42
- "findText",
43
- "orientation"
44
- ],
45
- "additionalProperties": false
46
- }
47
- }
48
- },
49
- "required": [
50
- "input",
51
- "output",
52
- "receiptOutput",
53
- "changes"
54
- ],
55
- "additionalProperties": false
56
- }