local-cli-agent 5.0.4 → 5.0.6

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 (187) hide show
  1. package/dist/agents/browser/browser-sub-agent.d.ts.map +1 -1
  2. package/dist/agents/browser/browser-sub-agent.js +3 -0
  3. package/dist/agents/browser/browser-sub-agent.js.map +1 -1
  4. package/dist/constants.d.ts +1 -2
  5. package/dist/constants.d.ts.map +1 -1
  6. package/dist/constants.js +1 -2
  7. package/dist/constants.js.map +1 -1
  8. package/dist/core/llm/llm-client.d.ts +1 -0
  9. package/dist/core/llm/llm-client.d.ts.map +1 -1
  10. package/dist/core/llm/llm-client.js +17 -4
  11. package/dist/core/llm/llm-client.js.map +1 -1
  12. package/dist/core/llm/providers.d.ts +12 -0
  13. package/dist/core/llm/providers.d.ts.map +1 -0
  14. package/dist/core/llm/providers.js +80 -0
  15. package/dist/core/llm/providers.js.map +1 -0
  16. package/dist/prompts/system/plan-execute.d.ts.map +1 -1
  17. package/dist/prompts/system/plan-execute.js +40 -4
  18. package/dist/prompts/system/plan-execute.js.map +1 -1
  19. package/dist/tools/browser/browser-client.d.ts +13 -1
  20. package/dist/tools/browser/browser-client.d.ts.map +1 -1
  21. package/dist/tools/browser/browser-client.js +137 -9
  22. package/dist/tools/browser/browser-client.js.map +1 -1
  23. package/dist/tools/browser/browser-tools.d.ts +8 -2
  24. package/dist/tools/browser/browser-tools.d.ts.map +1 -1
  25. package/dist/tools/browser/browser-tools.js +428 -49
  26. package/dist/tools/browser/browser-tools.js.map +1 -1
  27. package/dist/tools/browser/index.d.ts +1 -1
  28. package/dist/tools/browser/index.d.ts.map +1 -1
  29. package/dist/tools/browser/index.js +1 -1
  30. package/dist/tools/browser/index.js.map +1 -1
  31. package/dist/tools/llm/simple/planning-tools.d.ts +1 -0
  32. package/dist/tools/llm/simple/planning-tools.d.ts.map +1 -1
  33. package/dist/tools/llm/simple/planning-tools.js +80 -26
  34. package/dist/tools/llm/simple/planning-tools.js.map +1 -1
  35. package/dist/tools/llm/simple/read-image-tool.d.ts.map +1 -1
  36. package/dist/tools/llm/simple/read-image-tool.js +0 -2
  37. package/dist/tools/llm/simple/read-image-tool.js.map +1 -1
  38. package/dist/tools/office/excel-tools/advanced.d.ts +13 -0
  39. package/dist/tools/office/excel-tools/advanced.d.ts.map +1 -0
  40. package/dist/tools/office/excel-tools/advanced.js +364 -0
  41. package/dist/tools/office/excel-tools/advanced.js.map +1 -0
  42. package/dist/tools/office/excel-tools/cells.js +1 -1
  43. package/dist/tools/office/excel-tools/cells.js.map +1 -1
  44. package/dist/tools/office/excel-tools/charts.d.ts +6 -0
  45. package/dist/tools/office/excel-tools/charts.d.ts.map +1 -1
  46. package/dist/tools/office/excel-tools/charts.js +250 -1
  47. package/dist/tools/office/excel-tools/charts.js.map +1 -1
  48. package/dist/tools/office/excel-tools/comments.d.ts +1 -0
  49. package/dist/tools/office/excel-tools/comments.d.ts.map +1 -1
  50. package/dist/tools/office/excel-tools/comments.js +36 -0
  51. package/dist/tools/office/excel-tools/comments.js.map +1 -1
  52. package/dist/tools/office/excel-tools/data-ops.d.ts +4 -0
  53. package/dist/tools/office/excel-tools/data-ops.d.ts.map +1 -1
  54. package/dist/tools/office/excel-tools/data-ops.js +155 -1
  55. package/dist/tools/office/excel-tools/data-ops.js.map +1 -1
  56. package/dist/tools/office/excel-tools/export.d.ts +3 -0
  57. package/dist/tools/office/excel-tools/export.d.ts.map +1 -1
  58. package/dist/tools/office/excel-tools/export.js +117 -1
  59. package/dist/tools/office/excel-tools/export.js.map +1 -1
  60. package/dist/tools/office/excel-tools/formatting.d.ts +2 -0
  61. package/dist/tools/office/excel-tools/formatting.d.ts.map +1 -1
  62. package/dist/tools/office/excel-tools/formatting.js +74 -0
  63. package/dist/tools/office/excel-tools/formatting.js.map +1 -1
  64. package/dist/tools/office/excel-tools/formulas.d.ts +11 -0
  65. package/dist/tools/office/excel-tools/formulas.d.ts.map +1 -0
  66. package/dist/tools/office/excel-tools/formulas.js +313 -0
  67. package/dist/tools/office/excel-tools/formulas.js.map +1 -0
  68. package/dist/tools/office/excel-tools/index.d.ts +5 -0
  69. package/dist/tools/office/excel-tools/index.d.ts.map +1 -1
  70. package/dist/tools/office/excel-tools/index.js +15 -0
  71. package/dist/tools/office/excel-tools/index.js.map +1 -1
  72. package/dist/tools/office/excel-tools/launch.d.ts +0 -1
  73. package/dist/tools/office/excel-tools/launch.d.ts.map +1 -1
  74. package/dist/tools/office/excel-tools/launch.js +33 -36
  75. package/dist/tools/office/excel-tools/launch.js.map +1 -1
  76. package/dist/tools/office/excel-tools/media.d.ts +5 -0
  77. package/dist/tools/office/excel-tools/media.d.ts.map +1 -1
  78. package/dist/tools/office/excel-tools/media.js +176 -0
  79. package/dist/tools/office/excel-tools/media.js.map +1 -1
  80. package/dist/tools/office/excel-tools/page-setup.d.ts +6 -0
  81. package/dist/tools/office/excel-tools/page-setup.d.ts.map +1 -0
  82. package/dist/tools/office/excel-tools/page-setup.js +144 -0
  83. package/dist/tools/office/excel-tools/page-setup.js.map +1 -0
  84. package/dist/tools/office/excel-tools/pivot-table.d.ts +7 -0
  85. package/dist/tools/office/excel-tools/pivot-table.d.ts.map +1 -0
  86. package/dist/tools/office/excel-tools/pivot-table.js +151 -0
  87. package/dist/tools/office/excel-tools/pivot-table.js.map +1 -0
  88. package/dist/tools/office/excel-tools/rows-columns.d.ts +4 -0
  89. package/dist/tools/office/excel-tools/rows-columns.d.ts.map +1 -1
  90. package/dist/tools/office/excel-tools/rows-columns.js +149 -2
  91. package/dist/tools/office/excel-tools/rows-columns.js.map +1 -1
  92. package/dist/tools/office/excel-tools/sheets.d.ts +8 -0
  93. package/dist/tools/office/excel-tools/sheets.d.ts.map +1 -1
  94. package/dist/tools/office/excel-tools/sheets.js +288 -0
  95. package/dist/tools/office/excel-tools/sheets.js.map +1 -1
  96. package/dist/tools/office/excel-tools/tables.d.ts +7 -0
  97. package/dist/tools/office/excel-tools/tables.d.ts.map +1 -0
  98. package/dist/tools/office/excel-tools/tables.js +156 -0
  99. package/dist/tools/office/excel-tools/tables.js.map +1 -0
  100. package/dist/tools/office/index.d.ts +3 -3
  101. package/dist/tools/office/index.d.ts.map +1 -1
  102. package/dist/tools/office/index.js +3 -3
  103. package/dist/tools/office/index.js.map +1 -1
  104. package/dist/tools/office/powerpoint-client.d.ts +20 -0
  105. package/dist/tools/office/powerpoint-client.d.ts.map +1 -1
  106. package/dist/tools/office/powerpoint-client.js +223 -0
  107. package/dist/tools/office/powerpoint-client.js.map +1 -1
  108. package/dist/tools/office/powerpoint-tools/effects.d.ts.map +1 -1
  109. package/dist/tools/office/powerpoint-tools/effects.js +55 -42
  110. package/dist/tools/office/powerpoint-tools/effects.js.map +1 -1
  111. package/dist/tools/office/powerpoint-tools/export.d.ts +1 -0
  112. package/dist/tools/office/powerpoint-tools/export.d.ts.map +1 -1
  113. package/dist/tools/office/powerpoint-tools/export.js +44 -1
  114. package/dist/tools/office/powerpoint-tools/export.js.map +1 -1
  115. package/dist/tools/office/powerpoint-tools/launch.d.ts +0 -1
  116. package/dist/tools/office/powerpoint-tools/launch.d.ts.map +1 -1
  117. package/dist/tools/office/powerpoint-tools/launch.js +28 -36
  118. package/dist/tools/office/powerpoint-tools/launch.js.map +1 -1
  119. package/dist/tools/office/powerpoint-tools/media.d.ts.map +1 -1
  120. package/dist/tools/office/powerpoint-tools/media.js +25 -15
  121. package/dist/tools/office/powerpoint-tools/media.js.map +1 -1
  122. package/dist/tools/office/powerpoint-tools/notes.d.ts.map +1 -1
  123. package/dist/tools/office/powerpoint-tools/notes.js +20 -10
  124. package/dist/tools/office/powerpoint-tools/notes.js.map +1 -1
  125. package/dist/tools/office/powerpoint-tools/sections.d.ts.map +1 -1
  126. package/dist/tools/office/powerpoint-tools/sections.js +13 -6
  127. package/dist/tools/office/powerpoint-tools/sections.js.map +1 -1
  128. package/dist/tools/office/powerpoint-tools/shapes.d.ts +2 -0
  129. package/dist/tools/office/powerpoint-tools/shapes.d.ts.map +1 -1
  130. package/dist/tools/office/powerpoint-tools/shapes.js +181 -45
  131. package/dist/tools/office/powerpoint-tools/shapes.js.map +1 -1
  132. package/dist/tools/office/powerpoint-tools/slides.d.ts +4 -0
  133. package/dist/tools/office/powerpoint-tools/slides.d.ts.map +1 -1
  134. package/dist/tools/office/powerpoint-tools/slides.js +179 -15
  135. package/dist/tools/office/powerpoint-tools/slides.js.map +1 -1
  136. package/dist/tools/office/powerpoint-tools/tables.d.ts +6 -0
  137. package/dist/tools/office/powerpoint-tools/tables.d.ts.map +1 -1
  138. package/dist/tools/office/powerpoint-tools/tables.js +239 -9
  139. package/dist/tools/office/powerpoint-tools/tables.js.map +1 -1
  140. package/dist/tools/office/powerpoint-tools/text.d.ts +1 -0
  141. package/dist/tools/office/powerpoint-tools/text.d.ts.map +1 -1
  142. package/dist/tools/office/powerpoint-tools/text.js +96 -34
  143. package/dist/tools/office/powerpoint-tools/text.js.map +1 -1
  144. package/dist/tools/office/word-tools/find.d.ts +5 -0
  145. package/dist/tools/office/word-tools/find.d.ts.map +1 -0
  146. package/dist/tools/office/word-tools/find.js +106 -0
  147. package/dist/tools/office/word-tools/find.js.map +1 -0
  148. package/dist/tools/office/word-tools/footnotes.d.ts +9 -0
  149. package/dist/tools/office/word-tools/footnotes.d.ts.map +1 -0
  150. package/dist/tools/office/word-tools/footnotes.js +227 -0
  151. package/dist/tools/office/word-tools/footnotes.js.map +1 -0
  152. package/dist/tools/office/word-tools/index.d.ts +6 -0
  153. package/dist/tools/office/word-tools/index.d.ts.map +1 -1
  154. package/dist/tools/office/word-tools/index.js +18 -0
  155. package/dist/tools/office/word-tools/index.js.map +1 -1
  156. package/dist/tools/office/word-tools/launch.d.ts +0 -1
  157. package/dist/tools/office/word-tools/launch.d.ts.map +1 -1
  158. package/dist/tools/office/word-tools/launch.js +33 -36
  159. package/dist/tools/office/word-tools/launch.js.map +1 -1
  160. package/dist/tools/office/word-tools/selection.d.ts +8 -0
  161. package/dist/tools/office/word-tools/selection.d.ts.map +1 -0
  162. package/dist/tools/office/word-tools/selection.js +193 -0
  163. package/dist/tools/office/word-tools/selection.js.map +1 -0
  164. package/dist/tools/office/word-tools/tables-advanced.d.ts +8 -0
  165. package/dist/tools/office/word-tools/tables-advanced.d.ts.map +1 -0
  166. package/dist/tools/office/word-tools/tables-advanced.js +190 -0
  167. package/dist/tools/office/word-tools/tables-advanced.js.map +1 -0
  168. package/dist/tools/office/word-tools/toc.d.ts +6 -0
  169. package/dist/tools/office/word-tools/toc.d.ts.map +1 -0
  170. package/dist/tools/office/word-tools/toc.js +114 -0
  171. package/dist/tools/office/word-tools/toc.js.map +1 -0
  172. package/dist/tools/office/word-tools/track-changes.d.ts +8 -0
  173. package/dist/tools/office/word-tools/track-changes.d.ts.map +1 -0
  174. package/dist/tools/office/word-tools/track-changes.js +195 -0
  175. package/dist/tools/office/word-tools/track-changes.js.map +1 -0
  176. package/dist/types/index.d.ts +1 -0
  177. package/dist/types/index.d.ts.map +1 -1
  178. package/dist/ui/components/Logo.d.ts.map +1 -1
  179. package/dist/ui/components/Logo.js +2 -4
  180. package/dist/ui/components/Logo.js.map +1 -1
  181. package/dist/ui/components/PlanExecuteApp.d.ts.map +1 -1
  182. package/dist/ui/components/PlanExecuteApp.js +3 -5
  183. package/dist/ui/components/PlanExecuteApp.js.map +1 -1
  184. package/dist/ui/components/dialogs/SettingsDialog.d.ts.map +1 -1
  185. package/dist/ui/components/dialogs/SettingsDialog.js +50 -5
  186. package/dist/ui/components/dialogs/SettingsDialog.js.map +1 -1
  187. package/package.json +1 -1
@@ -0,0 +1,193 @@
1
+ import { wordClient } from '../word-client.js';
2
+ import { OFFICE_CATEGORIES } from '../common/constants.js';
3
+ const WORD_DELETE_TEXT_DEFINITION = {
4
+ type: 'function',
5
+ function: {
6
+ name: 'word_delete_text',
7
+ description: `Delete text from the document by specifying start and end positions.
8
+ Position is a character index starting from 0.
9
+ Use word_get_selection or word_find_all to get positions.`,
10
+ parameters: {
11
+ type: 'object',
12
+ properties: {
13
+ reason: { type: 'string', description: 'Why you are deleting this text' },
14
+ start: { type: 'number', description: 'Start position (0-based character index)' },
15
+ end: { type: 'number', description: 'End position (0-based character index)' },
16
+ },
17
+ required: ['reason', 'start', 'end'],
18
+ },
19
+ },
20
+ };
21
+ async function executeWordDeleteText(args) {
22
+ try {
23
+ const response = await wordClient.wordDeleteText(args['start'], args['end']);
24
+ if (response.success) {
25
+ return { success: true, result: response.message || 'Text deleted' };
26
+ }
27
+ return { success: false, error: response.error || 'Failed to delete text' };
28
+ }
29
+ catch (error) {
30
+ return { success: false, error: `Failed to delete text: ${error instanceof Error ? error.message : String(error)}` };
31
+ }
32
+ }
33
+ export const wordDeleteTextTool = {
34
+ definition: WORD_DELETE_TEXT_DEFINITION,
35
+ execute: executeWordDeleteText,
36
+ categories: OFFICE_CATEGORIES,
37
+ description: 'Delete Word text by position',
38
+ };
39
+ const WORD_GET_SELECTION_DEFINITION = {
40
+ type: 'function',
41
+ function: {
42
+ name: 'word_get_selection',
43
+ description: `Get detailed information about the current selection.
44
+ Returns: text, start position, end position, font name, font size.
45
+ Useful before delete/format operations.`,
46
+ parameters: {
47
+ type: 'object',
48
+ properties: {
49
+ reason: { type: 'string', description: 'Why you need selection info' },
50
+ },
51
+ required: ['reason'],
52
+ },
53
+ },
54
+ };
55
+ async function executeWordGetSelection(_args) {
56
+ try {
57
+ const response = await wordClient.wordGetSelection();
58
+ if (response.success) {
59
+ return {
60
+ success: true,
61
+ result: `Selection Info:
62
+ - Text: "${response['text'] || '(none)'}"
63
+ - Start: ${response['start']}
64
+ - End: ${response['end']}
65
+ - Font: ${response['font_name']} ${response['font_size']}pt`,
66
+ };
67
+ }
68
+ return { success: false, error: response.error || 'Failed to get selection' };
69
+ }
70
+ catch (error) {
71
+ return { success: false, error: `Failed to get selection: ${error instanceof Error ? error.message : String(error)}` };
72
+ }
73
+ }
74
+ export const wordGetSelectionTool = {
75
+ definition: WORD_GET_SELECTION_DEFINITION,
76
+ execute: executeWordGetSelection,
77
+ categories: OFFICE_CATEGORIES,
78
+ description: 'Get Word selection info',
79
+ };
80
+ const WORD_SELECT_RANGE_DEFINITION = {
81
+ type: 'function',
82
+ function: {
83
+ name: 'word_select_range',
84
+ description: `Select a range of text by specifying start and end positions.
85
+ Position is a character index starting from 0.
86
+ After selecting, you can apply formatting or delete.`,
87
+ parameters: {
88
+ type: 'object',
89
+ properties: {
90
+ reason: { type: 'string', description: 'Why you are selecting this range' },
91
+ start: { type: 'number', description: 'Start position (0-based character index)' },
92
+ end: { type: 'number', description: 'End position (0-based character index)' },
93
+ },
94
+ required: ['reason', 'start', 'end'],
95
+ },
96
+ },
97
+ };
98
+ async function executeWordSelectRange(args) {
99
+ try {
100
+ const response = await wordClient.wordSelectRange(args['start'], args['end']);
101
+ if (response.success) {
102
+ return { success: true, result: `Selected: "${response['text'] || ''}"` };
103
+ }
104
+ return { success: false, error: response.error || 'Failed to select range' };
105
+ }
106
+ catch (error) {
107
+ return { success: false, error: `Failed to select range: ${error instanceof Error ? error.message : String(error)}` };
108
+ }
109
+ }
110
+ export const wordSelectRangeTool = {
111
+ definition: WORD_SELECT_RANGE_DEFINITION,
112
+ execute: executeWordSelectRange,
113
+ categories: OFFICE_CATEGORIES,
114
+ description: 'Select Word text range',
115
+ };
116
+ const WORD_MOVE_CURSOR_DEFINITION = {
117
+ type: 'function',
118
+ function: {
119
+ name: 'word_move_cursor',
120
+ description: `Move the cursor by a specified unit and count.
121
+ Positive count = move right/forward, negative count = move left/backward.
122
+ Set extend=true to extend selection while moving (like Shift+Arrow).`,
123
+ parameters: {
124
+ type: 'object',
125
+ properties: {
126
+ reason: { type: 'string', description: 'Why you are moving the cursor' },
127
+ unit: { type: 'string', enum: ['character', 'word', 'line', 'paragraph'], description: 'Unit of movement' },
128
+ count: { type: 'number', description: 'Number of units to move (positive=right, negative=left)' },
129
+ extend: { type: 'boolean', description: 'Extend selection while moving (default: false)' },
130
+ },
131
+ required: ['reason', 'unit', 'count'],
132
+ },
133
+ },
134
+ };
135
+ async function executeWordMoveCursor(args) {
136
+ try {
137
+ const response = await wordClient.wordMoveCursor(args['unit'], args['count'], args['extend']);
138
+ if (response.success) {
139
+ return { success: true, result: response.message || 'Cursor moved' };
140
+ }
141
+ return { success: false, error: response.error || 'Failed to move cursor' };
142
+ }
143
+ catch (error) {
144
+ return { success: false, error: `Failed to move cursor: ${error instanceof Error ? error.message : String(error)}` };
145
+ }
146
+ }
147
+ export const wordMoveCursorTool = {
148
+ definition: WORD_MOVE_CURSOR_DEFINITION,
149
+ execute: executeWordMoveCursor,
150
+ categories: OFFICE_CATEGORIES,
151
+ description: 'Move Word cursor',
152
+ };
153
+ const WORD_MOVE_CURSOR_TO_DEFINITION = {
154
+ type: 'function',
155
+ function: {
156
+ name: 'word_move_cursor_to',
157
+ description: `Move the cursor to the start or end of the document.`,
158
+ parameters: {
159
+ type: 'object',
160
+ properties: {
161
+ reason: { type: 'string', description: 'Why you are moving the cursor' },
162
+ position: { type: 'string', enum: ['start', 'end'], description: 'Where to move the cursor' },
163
+ },
164
+ required: ['reason', 'position'],
165
+ },
166
+ },
167
+ };
168
+ async function executeWordMoveCursorTo(args) {
169
+ try {
170
+ const response = await wordClient.wordMoveCursorTo(args['position']);
171
+ if (response.success) {
172
+ return { success: true, result: response.message || 'Cursor moved' };
173
+ }
174
+ return { success: false, error: response.error || 'Failed to move cursor' };
175
+ }
176
+ catch (error) {
177
+ return { success: false, error: `Failed to move cursor: ${error instanceof Error ? error.message : String(error)}` };
178
+ }
179
+ }
180
+ export const wordMoveCursorToTool = {
181
+ definition: WORD_MOVE_CURSOR_TO_DEFINITION,
182
+ execute: executeWordMoveCursorTo,
183
+ categories: OFFICE_CATEGORIES,
184
+ description: 'Move Word cursor to start/end',
185
+ };
186
+ export const selectionTools = [
187
+ wordDeleteTextTool,
188
+ wordGetSelectionTool,
189
+ wordSelectRangeTool,
190
+ wordMoveCursorTool,
191
+ wordMoveCursorToTool,
192
+ ];
193
+ //# sourceMappingURL=selection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection.js","sourceRoot":"","sources":["../../../../src/tools/office/word-tools/selection.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAM3D,MAAM,2BAA2B,GAAmB;IAClD,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE;;0DAEyC;QACtD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,gCAAgC,EAAE;gBACzE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,0CAA0C,EAAE;gBAClF,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,wCAAwC,EAAE;aAC/E;YACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC;SACrC;KACF;CACF,CAAC;AAEF,KAAK,UAAU,qBAAqB,CAAC,IAA6B;IAChE,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,cAAc,CAC9C,IAAI,CAAC,OAAO,CAAW,EACvB,IAAI,CAAC,KAAK,CAAW,CACtB,CAAC;QACF,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;YACrB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,OAAO,IAAI,cAAc,EAAE,CAAC;QACvE,CAAC;QACD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,IAAI,uBAAuB,EAAE,CAAC;IAC9E,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,EAAE,OAAO,EAAE,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B,CAAC,IAA6B;IAClE,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAoB,CAAC,CAAC;QACxF,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;YACrB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,OAAO,IAAI,cAAc,EAAE,CAAC;QACvE,CAAC;QACD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,IAAI,uBAAuB,EAAE,CAAC;IAC9E,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,0BAA0B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;IACvH,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAkB;IACjD,UAAU,EAAE,8BAA8B;IAC1C,OAAO,EAAE,uBAAuB;IAChC,UAAU,EAAE,iBAAiB;IAC7B,WAAW,EAAE,+BAA+B;CAC7C,CAAC;AAMF,MAAM,CAAC,MAAM,cAAc,GAAoB;IAC7C,kBAAkB;IAClB,oBAAoB;IACpB,mBAAmB;IACnB,kBAAkB;IAClB,oBAAoB;CACrB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { LLMSimpleTool } from '../../types.js';
2
+ export declare const wordAddTableRowTool: LLMSimpleTool;
3
+ export declare const wordAddTableColumnTool: LLMSimpleTool;
4
+ export declare const wordDeleteTableRowTool: LLMSimpleTool;
5
+ export declare const wordDeleteTableColumnTool: LLMSimpleTool;
6
+ export declare const wordGetTableInfoTool: LLMSimpleTool;
7
+ export declare const tablesAdvancedTools: LLMSimpleTool[];
8
+ //# sourceMappingURL=tables-advanced.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tables-advanced.d.ts","sourceRoot":"","sources":["../../../../src/tools/office/word-tools/tables-advanced.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,aAAa,EAAc,MAAM,gBAAgB,CAAC;AA0C3D,eAAO,MAAM,mBAAmB,EAAE,aAKjC,CAAC;AAwCF,eAAO,MAAM,sBAAsB,EAAE,aAKpC,CAAC;AAsCF,eAAO,MAAM,sBAAsB,EAAE,aAKpC,CAAC;AAsCF,eAAO,MAAM,yBAAyB,EAAE,aAKvC,CAAC;AAyCF,eAAO,MAAM,oBAAoB,EAAE,aAKlC,CAAC;AAMF,eAAO,MAAM,mBAAmB,EAAE,aAAa,EAM9C,CAAC"}
@@ -0,0 +1,190 @@
1
+ import { wordClient } from '../word-client.js';
2
+ import { OFFICE_CATEGORIES } from '../common/constants.js';
3
+ const WORD_ADD_TABLE_ROW_DEFINITION = {
4
+ type: 'function',
5
+ function: {
6
+ name: 'word_add_table_row',
7
+ description: `Add a new row to a Word table.
8
+ If position is specified, the row is inserted before that row index.
9
+ If position is not specified, the row is added at the end.`,
10
+ parameters: {
11
+ type: 'object',
12
+ properties: {
13
+ reason: { type: 'string', description: 'Why you are adding a row' },
14
+ table_index: { type: 'number', description: 'Table index (1-based)' },
15
+ position: { type: 'number', description: 'Row index to insert before (1-based, optional)' },
16
+ },
17
+ required: ['reason', 'table_index'],
18
+ },
19
+ },
20
+ };
21
+ async function executeWordAddTableRow(args) {
22
+ try {
23
+ const response = await wordClient.wordAddTableRow(args['table_index'], args['position']);
24
+ if (response.success) {
25
+ return { success: true, result: `${response.message}. Total rows: ${response['total_rows']}` };
26
+ }
27
+ return { success: false, error: response.error || 'Failed to add table row' };
28
+ }
29
+ catch (error) {
30
+ return { success: false, error: `Failed to add table row: ${error instanceof Error ? error.message : String(error)}` };
31
+ }
32
+ }
33
+ export const wordAddTableRowTool = {
34
+ definition: WORD_ADD_TABLE_ROW_DEFINITION,
35
+ execute: executeWordAddTableRow,
36
+ categories: OFFICE_CATEGORIES,
37
+ description: 'Add Word table row',
38
+ };
39
+ const WORD_ADD_TABLE_COLUMN_DEFINITION = {
40
+ type: 'function',
41
+ function: {
42
+ name: 'word_add_table_column',
43
+ description: `Add a new column to a Word table.
44
+ If position is specified, the column is inserted before that column index.
45
+ If position is not specified, the column is added at the end.`,
46
+ parameters: {
47
+ type: 'object',
48
+ properties: {
49
+ reason: { type: 'string', description: 'Why you are adding a column' },
50
+ table_index: { type: 'number', description: 'Table index (1-based)' },
51
+ position: { type: 'number', description: 'Column index to insert before (1-based, optional)' },
52
+ },
53
+ required: ['reason', 'table_index'],
54
+ },
55
+ },
56
+ };
57
+ async function executeWordAddTableColumn(args) {
58
+ try {
59
+ const response = await wordClient.wordAddTableColumn(args['table_index'], args['position']);
60
+ if (response.success) {
61
+ return { success: true, result: `${response.message}. Total columns: ${response['total_columns']}` };
62
+ }
63
+ return { success: false, error: response.error || 'Failed to add table column' };
64
+ }
65
+ catch (error) {
66
+ return { success: false, error: `Failed to add table column: ${error instanceof Error ? error.message : String(error)}` };
67
+ }
68
+ }
69
+ export const wordAddTableColumnTool = {
70
+ definition: WORD_ADD_TABLE_COLUMN_DEFINITION,
71
+ execute: executeWordAddTableColumn,
72
+ categories: OFFICE_CATEGORIES,
73
+ description: 'Add Word table column',
74
+ };
75
+ const WORD_DELETE_TABLE_ROW_DEFINITION = {
76
+ type: 'function',
77
+ function: {
78
+ name: 'word_delete_table_row',
79
+ description: `Delete a row from a Word table.`,
80
+ parameters: {
81
+ type: 'object',
82
+ properties: {
83
+ reason: { type: 'string', description: 'Why you are deleting this row' },
84
+ table_index: { type: 'number', description: 'Table index (1-based)' },
85
+ row_index: { type: 'number', description: 'Row index to delete (1-based)' },
86
+ },
87
+ required: ['reason', 'table_index', 'row_index'],
88
+ },
89
+ },
90
+ };
91
+ async function executeWordDeleteTableRow(args) {
92
+ try {
93
+ const response = await wordClient.wordDeleteTableRow(args['table_index'], args['row_index']);
94
+ if (response.success) {
95
+ return { success: true, result: `${response.message}. Remaining rows: ${response['remaining_rows']}` };
96
+ }
97
+ return { success: false, error: response.error || 'Failed to delete table row' };
98
+ }
99
+ catch (error) {
100
+ return { success: false, error: `Failed to delete table row: ${error instanceof Error ? error.message : String(error)}` };
101
+ }
102
+ }
103
+ export const wordDeleteTableRowTool = {
104
+ definition: WORD_DELETE_TABLE_ROW_DEFINITION,
105
+ execute: executeWordDeleteTableRow,
106
+ categories: OFFICE_CATEGORIES,
107
+ description: 'Delete Word table row',
108
+ };
109
+ const WORD_DELETE_TABLE_COLUMN_DEFINITION = {
110
+ type: 'function',
111
+ function: {
112
+ name: 'word_delete_table_column',
113
+ description: `Delete a column from a Word table.`,
114
+ parameters: {
115
+ type: 'object',
116
+ properties: {
117
+ reason: { type: 'string', description: 'Why you are deleting this column' },
118
+ table_index: { type: 'number', description: 'Table index (1-based)' },
119
+ col_index: { type: 'number', description: 'Column index to delete (1-based)' },
120
+ },
121
+ required: ['reason', 'table_index', 'col_index'],
122
+ },
123
+ },
124
+ };
125
+ async function executeWordDeleteTableColumn(args) {
126
+ try {
127
+ const response = await wordClient.wordDeleteTableColumn(args['table_index'], args['col_index']);
128
+ if (response.success) {
129
+ return { success: true, result: `${response.message}. Remaining columns: ${response['remaining_columns']}` };
130
+ }
131
+ return { success: false, error: response.error || 'Failed to delete table column' };
132
+ }
133
+ catch (error) {
134
+ return { success: false, error: `Failed to delete table column: ${error instanceof Error ? error.message : String(error)}` };
135
+ }
136
+ }
137
+ export const wordDeleteTableColumnTool = {
138
+ definition: WORD_DELETE_TABLE_COLUMN_DEFINITION,
139
+ execute: executeWordDeleteTableColumn,
140
+ categories: OFFICE_CATEGORIES,
141
+ description: 'Delete Word table column',
142
+ };
143
+ const WORD_GET_TABLE_INFO_DEFINITION = {
144
+ type: 'function',
145
+ function: {
146
+ name: 'word_get_table_info',
147
+ description: `Get information about a specific table in the document.
148
+ Returns: rows count, columns count, and style.`,
149
+ parameters: {
150
+ type: 'object',
151
+ properties: {
152
+ reason: { type: 'string', description: 'Why you need table info' },
153
+ table_index: { type: 'number', description: 'Table index (1-based)' },
154
+ },
155
+ required: ['reason', 'table_index'],
156
+ },
157
+ },
158
+ };
159
+ async function executeWordGetTableInfo(args) {
160
+ try {
161
+ const response = await wordClient.wordGetTableInfo(args['table_index']);
162
+ if (response.success) {
163
+ return {
164
+ success: true,
165
+ result: `Table ${response['table_index']} Info:
166
+ - Rows: ${response['rows']}
167
+ - Columns: ${response['columns']}
168
+ - Style: ${response['style'] || 'Default'}`,
169
+ };
170
+ }
171
+ return { success: false, error: response.error || 'Failed to get table info' };
172
+ }
173
+ catch (error) {
174
+ return { success: false, error: `Failed to get table info: ${error instanceof Error ? error.message : String(error)}` };
175
+ }
176
+ }
177
+ export const wordGetTableInfoTool = {
178
+ definition: WORD_GET_TABLE_INFO_DEFINITION,
179
+ execute: executeWordGetTableInfo,
180
+ categories: OFFICE_CATEGORIES,
181
+ description: 'Get Word table info',
182
+ };
183
+ export const tablesAdvancedTools = [
184
+ wordAddTableRowTool,
185
+ wordAddTableColumnTool,
186
+ wordDeleteTableRowTool,
187
+ wordDeleteTableColumnTool,
188
+ wordGetTableInfoTool,
189
+ ];
190
+ //# sourceMappingURL=tables-advanced.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tables-advanced.js","sourceRoot":"","sources":["../../../../src/tools/office/word-tools/tables-advanced.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAM3D,MAAM,6BAA6B,GAAmB;IACpD,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE;;2DAE0C;QACvD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,0BAA0B,EA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AO,KAAK,EAAE,CAAC;QACf,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,6BAA6B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;IAC1H,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAkB;IACjD,UAAU,EAAE,8BAA8B;IAC1C,OAAO,EAAE,uBAAuB;IAChC,UAAU,EAAE,iBAAiB;IAC7B,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAMF,MAAM,CAAC,MAAM,mBAAmB,GAAoB;IAClD,mBAAmB;IACnB,sBAAsB;IACtB,sBAAsB;IACtB,yBAAyB;IACzB,oBAAoB;CACrB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { LLMSimpleTool } from '../../types.js';
2
+ export declare const wordInsertTOCTool: LLMSimpleTool;
3
+ export declare const wordUpdateTOCTool: LLMSimpleTool;
4
+ export declare const wordDeleteTOCTool: LLMSimpleTool;
5
+ export declare const tocTools: LLMSimpleTool[];
6
+ //# sourceMappingURL=toc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toc.d.ts","sourceRoot":"","sources":["../../../../src/tools/office/word-tools/toc.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAc,MAAM,gBAAgB,CAAC;AA4C3D,eAAO,MAAM,iBAAiB,EAAE,aAK/B,CAAC;AAkCF,eAAO,MAAM,iBAAiB,EAAE,aAK/B,CAAC;AAiCF,eAAO,MAAM,iBAAiB,EAAE,aAK/B,CAAC;AAMF,eAAO,MAAM,QAAQ,EAAE,aAAa,EAInC,CAAC"}
@@ -0,0 +1,114 @@
1
+ import { wordClient } from '../word-client.js';
2
+ import { OFFICE_CATEGORIES } from '../common/constants.js';
3
+ const WORD_INSERT_TOC_DEFINITION = {
4
+ type: 'function',
5
+ function: {
6
+ name: 'word_insert_toc',
7
+ description: `Insert a table of contents at the current cursor position.
8
+ The TOC is automatically generated from heading styles (Heading 1, 2, 3, etc.).
9
+ Make sure to apply heading styles to your section titles before inserting TOC.`,
10
+ parameters: {
11
+ type: 'object',
12
+ properties: {
13
+ reason: { type: 'string', description: 'Why you are inserting a TOC' },
14
+ upper_heading_level: { type: 'number', description: 'Include headings from this level (default: 1, i.e., Heading 1)' },
15
+ lower_heading_level: { type: 'number', description: 'Include headings to this level (default: 3, i.e., Heading 3)' },
16
+ use_hyperlinks: { type: 'boolean', description: 'Make TOC entries clickable (default: true)' },
17
+ },
18
+ required: ['reason'],
19
+ },
20
+ },
21
+ };
22
+ async function executeWordInsertTOC(args) {
23
+ try {
24
+ const response = await wordClient.wordInsertTOC({
25
+ upperHeadingLevel: args['upper_heading_level'],
26
+ lowerHeadingLevel: args['lower_heading_level'],
27
+ useHyperlinks: args['use_hyperlinks'],
28
+ });
29
+ if (response.success) {
30
+ return { success: true, result: response.message || 'Table of contents inserted' };
31
+ }
32
+ return { success: false, error: response.error || 'Failed to insert TOC' };
33
+ }
34
+ catch (error) {
35
+ return { success: false, error: `Failed to insert TOC: ${error instanceof Error ? error.message : String(error)}` };
36
+ }
37
+ }
38
+ export const wordInsertTOCTool = {
39
+ definition: WORD_INSERT_TOC_DEFINITION,
40
+ execute: executeWordInsertTOC,
41
+ categories: OFFICE_CATEGORIES,
42
+ description: 'Insert Word TOC',
43
+ };
44
+ const WORD_UPDATE_TOC_DEFINITION = {
45
+ type: 'function',
46
+ function: {
47
+ name: 'word_update_toc',
48
+ description: `Update all tables of contents in the document.
49
+ Use this after adding or modifying headings to refresh the TOC.`,
50
+ parameters: {
51
+ type: 'object',
52
+ properties: {
53
+ reason: { type: 'string', description: 'Why you are updating the TOC' },
54
+ },
55
+ required: ['reason'],
56
+ },
57
+ },
58
+ };
59
+ async function executeWordUpdateTOC(_args) {
60
+ try {
61
+ const response = await wordClient.wordUpdateTOC();
62
+ if (response.success) {
63
+ return { success: true, result: response.message || 'TOC updated' };
64
+ }
65
+ return { success: false, error: response.error || 'Failed to update TOC' };
66
+ }
67
+ catch (error) {
68
+ return { success: false, error: `Failed to update TOC: ${error instanceof Error ? error.message : String(error)}` };
69
+ }
70
+ }
71
+ export const wordUpdateTOCTool = {
72
+ definition: WORD_UPDATE_TOC_DEFINITION,
73
+ execute: executeWordUpdateTOC,
74
+ categories: OFFICE_CATEGORIES,
75
+ description: 'Update Word TOC',
76
+ };
77
+ const WORD_DELETE_TOC_DEFINITION = {
78
+ type: 'function',
79
+ function: {
80
+ name: 'word_delete_toc',
81
+ description: `Delete all tables of contents from the document.`,
82
+ parameters: {
83
+ type: 'object',
84
+ properties: {
85
+ reason: { type: 'string', description: 'Why you are deleting the TOC' },
86
+ },
87
+ required: ['reason'],
88
+ },
89
+ },
90
+ };
91
+ async function executeWordDeleteTOC(_args) {
92
+ try {
93
+ const response = await wordClient.wordDeleteTOC();
94
+ if (response.success) {
95
+ return { success: true, result: response.message || 'TOC deleted' };
96
+ }
97
+ return { success: false, error: response.error || 'Failed to delete TOC' };
98
+ }
99
+ catch (error) {
100
+ return { success: false, error: `Failed to delete TOC: ${error instanceof Error ? error.message : String(error)}` };
101
+ }
102
+ }
103
+ export const wordDeleteTOCTool = {
104
+ definition: WORD_DELETE_TOC_DEFINITION,
105
+ execute: executeWordDeleteTOC,
106
+ categories: OFFICE_CATEGORIES,
107
+ description: 'Delete Word TOC',
108
+ };
109
+ export const tocTools = [
110
+ wordInsertTOCTool,
111
+ wordUpdateTOCTool,
112
+ wordDeleteTOCTool,
113
+ ];
114
+ //# sourceMappingURL=toc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toc.js","sourceRoot":"","sources":["../../../../src/tools/office/word-tools/toc.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAM3D,MAAM,0BAA0B,GAAmB;IACjD,IAAI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B;IACjB,iBAAiB;IACjB,iBAAiB;CAClB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { LLMSimpleTool } from '../../types.js';
2
+ export declare const wordSetTrackChangesTool: LLMSimpleTool;
3
+ export declare const wordGetTrackChangesTool: LLMSimpleTool;
4
+ export declare const wordAcceptAllRevisionsTool: LLMSimpleTool;
5
+ export declare const wordRejectAllRevisionsTool: LLMSimpleTool;
6
+ export declare const wordHandleRevisionTool: LLMSimpleTool;
7
+ export declare const trackChangesTools: LLMSimpleTool[];
8
+ //# sourceMappingURL=track-changes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"track-changes.d.ts","sourceRoot":"","sources":["../../../../src/tools/office/word-tools/track-changes.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,aAAa,EAAc,MAAM,gBAAgB,CAAC;AAqC3D,eAAO,MAAM,uBAAuB,EAAE,aAKrC,CAAC;AAgEF,eAAO,MAAM,uBAAuB,EAAE,aAKrC,CAAC;AAkCF,eAAO,MAAM,0BAA0B,EAAE,aAKxC,CAAC;AAkCF,eAAO,MAAM,0BAA0B,EAAE,aAKxC,CAAC;AAuCF,eAAO,MAAM,sBAAsB,EAAE,aAKpC,CAAC;AAMF,eAAO,MAAM,iBAAiB,EAAE,aAAa,EAM5C,CAAC"}