local-cli-agent 5.0.4

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 (776) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +306 -0
  3. package/dist/agents/base/base-agent.d.ts +38 -0
  4. package/dist/agents/base/base-agent.d.ts.map +1 -0
  5. package/dist/agents/base/base-agent.js +69 -0
  6. package/dist/agents/base/base-agent.js.map +1 -0
  7. package/dist/agents/browser/browser-profile-manager.d.ts +16 -0
  8. package/dist/agents/browser/browser-profile-manager.d.ts.map +1 -0
  9. package/dist/agents/browser/browser-profile-manager.js +149 -0
  10. package/dist/agents/browser/browser-profile-manager.js.map +1 -0
  11. package/dist/agents/browser/browser-sub-agent.d.ts +22 -0
  12. package/dist/agents/browser/browser-sub-agent.d.ts.map +1 -0
  13. package/dist/agents/browser/browser-sub-agent.js +162 -0
  14. package/dist/agents/browser/browser-sub-agent.js.map +1 -0
  15. package/dist/agents/browser/confluence-agent.d.ts +3 -0
  16. package/dist/agents/browser/confluence-agent.d.ts.map +1 -0
  17. package/dist/agents/browser/confluence-agent.js +35 -0
  18. package/dist/agents/browser/confluence-agent.js.map +1 -0
  19. package/dist/agents/browser/index.d.ts +4 -0
  20. package/dist/agents/browser/index.d.ts.map +1 -0
  21. package/dist/agents/browser/index.js +4 -0
  22. package/dist/agents/browser/index.js.map +1 -0
  23. package/dist/agents/browser/jira-agent.d.ts +3 -0
  24. package/dist/agents/browser/jira-agent.d.ts.map +1 -0
  25. package/dist/agents/browser/jira-agent.js +35 -0
  26. package/dist/agents/browser/jira-agent.js.map +1 -0
  27. package/dist/agents/browser/prompts.d.ts +4 -0
  28. package/dist/agents/browser/prompts.d.ts.map +1 -0
  29. package/dist/agents/browser/prompts.js +241 -0
  30. package/dist/agents/browser/prompts.js.map +1 -0
  31. package/dist/agents/browser/search-agent.d.ts +3 -0
  32. package/dist/agents/browser/search-agent.d.ts.map +1 -0
  33. package/dist/agents/browser/search-agent.js +31 -0
  34. package/dist/agents/browser/search-agent.js.map +1 -0
  35. package/dist/agents/common/complete-tool.d.ts +3 -0
  36. package/dist/agents/common/complete-tool.d.ts.map +1 -0
  37. package/dist/agents/common/complete-tool.js +18 -0
  38. package/dist/agents/common/complete-tool.js.map +1 -0
  39. package/dist/agents/common/index.d.ts +3 -0
  40. package/dist/agents/common/index.d.ts.map +1 -0
  41. package/dist/agents/common/index.js +3 -0
  42. package/dist/agents/common/index.js.map +1 -0
  43. package/dist/agents/common/sub-agent.d.ts +40 -0
  44. package/dist/agents/common/sub-agent.d.ts.map +1 -0
  45. package/dist/agents/common/sub-agent.js +313 -0
  46. package/dist/agents/common/sub-agent.js.map +1 -0
  47. package/dist/agents/index.d.ts +5 -0
  48. package/dist/agents/index.d.ts.map +1 -0
  49. package/dist/agents/index.js +5 -0
  50. package/dist/agents/index.js.map +1 -0
  51. package/dist/agents/office/complete-tool.d.ts +3 -0
  52. package/dist/agents/office/complete-tool.d.ts.map +1 -0
  53. package/dist/agents/office/complete-tool.js +18 -0
  54. package/dist/agents/office/complete-tool.js.map +1 -0
  55. package/dist/agents/office/excel-agent.d.ts +3 -0
  56. package/dist/agents/office/excel-agent.d.ts.map +1 -0
  57. package/dist/agents/office/excel-agent.js +31 -0
  58. package/dist/agents/office/excel-agent.js.map +1 -0
  59. package/dist/agents/office/excel-create-agent.d.ts +3 -0
  60. package/dist/agents/office/excel-create-agent.d.ts.map +1 -0
  61. package/dist/agents/office/excel-create-agent.js +58 -0
  62. package/dist/agents/office/excel-create-agent.js.map +1 -0
  63. package/dist/agents/office/excel-create-prompts.d.ts +4 -0
  64. package/dist/agents/office/excel-create-prompts.d.ts.map +1 -0
  65. package/dist/agents/office/excel-create-prompts.js +217 -0
  66. package/dist/agents/office/excel-create-prompts.js.map +1 -0
  67. package/dist/agents/office/index.d.ts +10 -0
  68. package/dist/agents/office/index.d.ts.map +1 -0
  69. package/dist/agents/office/index.js +10 -0
  70. package/dist/agents/office/index.js.map +1 -0
  71. package/dist/agents/office/office-sub-agent.d.ts +21 -0
  72. package/dist/agents/office/office-sub-agent.d.ts.map +1 -0
  73. package/dist/agents/office/office-sub-agent.js +127 -0
  74. package/dist/agents/office/office-sub-agent.js.map +1 -0
  75. package/dist/agents/office/powerpoint-agent.d.ts +3 -0
  76. package/dist/agents/office/powerpoint-agent.d.ts.map +1 -0
  77. package/dist/agents/office/powerpoint-agent.js +37 -0
  78. package/dist/agents/office/powerpoint-agent.js.map +1 -0
  79. package/dist/agents/office/powerpoint-create-agent.d.ts +3 -0
  80. package/dist/agents/office/powerpoint-create-agent.d.ts.map +1 -0
  81. package/dist/agents/office/powerpoint-create-agent.js +1124 -0
  82. package/dist/agents/office/powerpoint-create-agent.js.map +1 -0
  83. package/dist/agents/office/powerpoint-create-prompts.d.ts +116 -0
  84. package/dist/agents/office/powerpoint-create-prompts.d.ts.map +1 -0
  85. package/dist/agents/office/powerpoint-create-prompts.js +1354 -0
  86. package/dist/agents/office/powerpoint-create-prompts.js.map +1 -0
  87. package/dist/agents/office/prompts.d.ts +11 -0
  88. package/dist/agents/office/prompts.d.ts.map +1 -0
  89. package/dist/agents/office/prompts.js +852 -0
  90. package/dist/agents/office/prompts.js.map +1 -0
  91. package/dist/agents/office/word-agent.d.ts +3 -0
  92. package/dist/agents/office/word-agent.d.ts.map +1 -0
  93. package/dist/agents/office/word-agent.js +31 -0
  94. package/dist/agents/office/word-agent.js.map +1 -0
  95. package/dist/agents/office/word-create-agent.d.ts +3 -0
  96. package/dist/agents/office/word-create-agent.d.ts.map +1 -0
  97. package/dist/agents/office/word-create-agent.js +36 -0
  98. package/dist/agents/office/word-create-agent.js.map +1 -0
  99. package/dist/agents/office/word-create-prompts.d.ts +4 -0
  100. package/dist/agents/office/word-create-prompts.d.ts.map +1 -0
  101. package/dist/agents/office/word-create-prompts.js +288 -0
  102. package/dist/agents/office/word-create-prompts.js.map +1 -0
  103. package/dist/agents/planner/index.d.ts +14 -0
  104. package/dist/agents/planner/index.d.ts.map +1 -0
  105. package/dist/agents/planner/index.js +334 -0
  106. package/dist/agents/planner/index.js.map +1 -0
  107. package/dist/cli.d.ts +3 -0
  108. package/dist/cli.d.ts.map +1 -0
  109. package/dist/cli.js +166 -0
  110. package/dist/cli.js.map +1 -0
  111. package/dist/commands/chat-command.d.ts +2 -0
  112. package/dist/commands/chat-command.d.ts.map +1 -0
  113. package/dist/commands/chat-command.js +90 -0
  114. package/dist/commands/chat-command.js.map +1 -0
  115. package/dist/commands/electron-client.d.ts +17 -0
  116. package/dist/commands/electron-client.d.ts.map +1 -0
  117. package/dist/commands/electron-client.js +180 -0
  118. package/dist/commands/electron-client.js.map +1 -0
  119. package/dist/commands/jarvis-command.d.ts +2 -0
  120. package/dist/commands/jarvis-command.d.ts.map +1 -0
  121. package/dist/commands/jarvis-command.js +66 -0
  122. package/dist/commands/jarvis-command.js.map +1 -0
  123. package/dist/constants.d.ts +11 -0
  124. package/dist/constants.d.ts.map +1 -0
  125. package/dist/constants.js +13 -0
  126. package/dist/constants.js.map +1 -0
  127. package/dist/core/compact/compact-manager.d.ts +22 -0
  128. package/dist/core/compact/compact-manager.d.ts.map +1 -0
  129. package/dist/core/compact/compact-manager.js +77 -0
  130. package/dist/core/compact/compact-manager.js.map +1 -0
  131. package/dist/core/compact/compact-prompts.d.ts +11 -0
  132. package/dist/core/compact/compact-prompts.d.ts.map +1 -0
  133. package/dist/core/compact/compact-prompts.js +90 -0
  134. package/dist/core/compact/compact-prompts.js.map +1 -0
  135. package/dist/core/compact/context-tracker.d.ts +28 -0
  136. package/dist/core/compact/context-tracker.d.ts.map +1 -0
  137. package/dist/core/compact/context-tracker.js +71 -0
  138. package/dist/core/compact/context-tracker.js.map +1 -0
  139. package/dist/core/compact/index.d.ts +4 -0
  140. package/dist/core/compact/index.d.ts.map +1 -0
  141. package/dist/core/compact/index.js +4 -0
  142. package/dist/core/compact/index.js.map +1 -0
  143. package/dist/core/config/config-manager.d.ts +43 -0
  144. package/dist/core/config/config-manager.d.ts.map +1 -0
  145. package/dist/core/config/config-manager.js +254 -0
  146. package/dist/core/config/config-manager.js.map +1 -0
  147. package/dist/core/config/index.d.ts +2 -0
  148. package/dist/core/config/index.d.ts.map +1 -0
  149. package/dist/core/config/index.js +2 -0
  150. package/dist/core/config/index.js.map +1 -0
  151. package/dist/core/docs-manager.d.ts +46 -0
  152. package/dist/core/docs-manager.d.ts.map +1 -0
  153. package/dist/core/docs-manager.js +475 -0
  154. package/dist/core/docs-manager.js.map +1 -0
  155. package/dist/core/git-auto-updater.d.ts +58 -0
  156. package/dist/core/git-auto-updater.d.ts.map +1 -0
  157. package/dist/core/git-auto-updater.js +374 -0
  158. package/dist/core/git-auto-updater.js.map +1 -0
  159. package/dist/core/llm/index.d.ts +2 -0
  160. package/dist/core/llm/index.d.ts.map +1 -0
  161. package/dist/core/llm/index.js +2 -0
  162. package/dist/core/llm/index.js.map +1 -0
  163. package/dist/core/llm/llm-client.d.ts +110 -0
  164. package/dist/core/llm/llm-client.d.ts.map +1 -0
  165. package/dist/core/llm/llm-client.js +1272 -0
  166. package/dist/core/llm/llm-client.js.map +1 -0
  167. package/dist/core/session/index.d.ts +2 -0
  168. package/dist/core/session/index.d.ts.map +1 -0
  169. package/dist/core/session/index.js +2 -0
  170. package/dist/core/session/index.js.map +1 -0
  171. package/dist/core/session/session-manager.d.ts +73 -0
  172. package/dist/core/session/session-manager.d.ts.map +1 -0
  173. package/dist/core/session/session-manager.js +260 -0
  174. package/dist/core/session/session-manager.js.map +1 -0
  175. package/dist/core/slash-command-handler.d.ts +31 -0
  176. package/dist/core/slash-command-handler.d.ts.map +1 -0
  177. package/dist/core/slash-command-handler.js +304 -0
  178. package/dist/core/slash-command-handler.js.map +1 -0
  179. package/dist/core/telemetry/error-reporter.d.ts +2 -0
  180. package/dist/core/telemetry/error-reporter.d.ts.map +1 -0
  181. package/dist/core/telemetry/error-reporter.js +3 -0
  182. package/dist/core/telemetry/error-reporter.js.map +1 -0
  183. package/dist/core/usage-tracker.d.ts +70 -0
  184. package/dist/core/usage-tracker.d.ts.map +1 -0
  185. package/dist/core/usage-tracker.js +251 -0
  186. package/dist/core/usage-tracker.js.map +1 -0
  187. package/dist/errors/base.d.ts +22 -0
  188. package/dist/errors/base.d.ts.map +1 -0
  189. package/dist/errors/base.js +43 -0
  190. package/dist/errors/base.js.map +1 -0
  191. package/dist/errors/file.d.ts +31 -0
  192. package/dist/errors/file.d.ts.map +1 -0
  193. package/dist/errors/file.js +110 -0
  194. package/dist/errors/file.js.map +1 -0
  195. package/dist/errors/index.d.ts +10 -0
  196. package/dist/errors/index.d.ts.map +1 -0
  197. package/dist/errors/index.js +41 -0
  198. package/dist/errors/index.js.map +1 -0
  199. package/dist/errors/llm.d.ts +30 -0
  200. package/dist/errors/llm.d.ts.map +1 -0
  201. package/dist/errors/llm.js +97 -0
  202. package/dist/errors/llm.js.map +1 -0
  203. package/dist/errors/network.d.ts +19 -0
  204. package/dist/errors/network.d.ts.map +1 -0
  205. package/dist/errors/network.js +82 -0
  206. package/dist/errors/network.js.map +1 -0
  207. package/dist/errors/validation.d.ts +19 -0
  208. package/dist/errors/validation.d.ts.map +1 -0
  209. package/dist/errors/validation.js +62 -0
  210. package/dist/errors/validation.js.map +1 -0
  211. package/dist/eval/eval-runner.d.ts +24 -0
  212. package/dist/eval/eval-runner.d.ts.map +1 -0
  213. package/dist/eval/eval-runner.js +291 -0
  214. package/dist/eval/eval-runner.js.map +1 -0
  215. package/dist/eval/index.d.ts +3 -0
  216. package/dist/eval/index.d.ts.map +1 -0
  217. package/dist/eval/index.js +3 -0
  218. package/dist/eval/index.js.map +1 -0
  219. package/dist/eval/types.d.ts +77 -0
  220. package/dist/eval/types.d.ts.map +1 -0
  221. package/dist/eval/types.js +2 -0
  222. package/dist/eval/types.js.map +1 -0
  223. package/dist/index.d.ts +4 -0
  224. package/dist/index.d.ts.map +1 -0
  225. package/dist/index.js +6 -0
  226. package/dist/index.js.map +1 -0
  227. package/dist/orchestration/index.d.ts +4 -0
  228. package/dist/orchestration/index.d.ts.map +1 -0
  229. package/dist/orchestration/index.js +3 -0
  230. package/dist/orchestration/index.js.map +1 -0
  231. package/dist/orchestration/plan-executor.d.ts +27 -0
  232. package/dist/orchestration/plan-executor.d.ts.map +1 -0
  233. package/dist/orchestration/plan-executor.js +536 -0
  234. package/dist/orchestration/plan-executor.js.map +1 -0
  235. package/dist/orchestration/types.d.ts +69 -0
  236. package/dist/orchestration/types.d.ts.map +1 -0
  237. package/dist/orchestration/types.js +2 -0
  238. package/dist/orchestration/types.js.map +1 -0
  239. package/dist/orchestration/utils.d.ts +14 -0
  240. package/dist/orchestration/utils.d.ts.map +1 -0
  241. package/dist/orchestration/utils.js +105 -0
  242. package/dist/orchestration/utils.js.map +1 -0
  243. package/dist/pipe/index.d.ts +2 -0
  244. package/dist/pipe/index.d.ts.map +1 -0
  245. package/dist/pipe/index.js +2 -0
  246. package/dist/pipe/index.js.map +1 -0
  247. package/dist/pipe/pipe-runner.d.ts +15 -0
  248. package/dist/pipe/pipe-runner.d.ts.map +1 -0
  249. package/dist/pipe/pipe-runner.js +207 -0
  250. package/dist/pipe/pipe-runner.js.map +1 -0
  251. package/dist/prompts/agents/planning.d.ts +4 -0
  252. package/dist/prompts/agents/planning.d.ts.map +1 -0
  253. package/dist/prompts/agents/planning.js +318 -0
  254. package/dist/prompts/agents/planning.js.map +1 -0
  255. package/dist/prompts/index.d.ts +8 -0
  256. package/dist/prompts/index.d.ts.map +1 -0
  257. package/dist/prompts/index.js +8 -0
  258. package/dist/prompts/index.js.map +1 -0
  259. package/dist/prompts/shared/codebase-rules.d.ts +4 -0
  260. package/dist/prompts/shared/codebase-rules.d.ts.map +1 -0
  261. package/dist/prompts/shared/codebase-rules.js +16 -0
  262. package/dist/prompts/shared/codebase-rules.js.map +1 -0
  263. package/dist/prompts/shared/git-rules.d.ts +2 -0
  264. package/dist/prompts/shared/git-rules.d.ts.map +1 -0
  265. package/dist/prompts/shared/git-rules.js +87 -0
  266. package/dist/prompts/shared/git-rules.js.map +1 -0
  267. package/dist/prompts/shared/language-rules.d.ts +4 -0
  268. package/dist/prompts/shared/language-rules.d.ts.map +1 -0
  269. package/dist/prompts/shared/language-rules.js +22 -0
  270. package/dist/prompts/shared/language-rules.js.map +1 -0
  271. package/dist/prompts/shared/tool-usage.d.ts +14 -0
  272. package/dist/prompts/shared/tool-usage.d.ts.map +1 -0
  273. package/dist/prompts/shared/tool-usage.js +92 -0
  274. package/dist/prompts/shared/tool-usage.js.map +1 -0
  275. package/dist/prompts/system/compact.d.ts +3 -0
  276. package/dist/prompts/system/compact.d.ts.map +1 -0
  277. package/dist/prompts/system/compact.js +73 -0
  278. package/dist/prompts/system/compact.js.map +1 -0
  279. package/dist/prompts/system/plan-execute.d.ts +6 -0
  280. package/dist/prompts/system/plan-execute.d.ts.map +1 -0
  281. package/dist/prompts/system/plan-execute.js +178 -0
  282. package/dist/prompts/system/plan-execute.js.map +1 -0
  283. package/dist/tools/browser/browser-client.d.ts +108 -0
  284. package/dist/tools/browser/browser-client.d.ts.map +1 -0
  285. package/dist/tools/browser/browser-client.js +965 -0
  286. package/dist/tools/browser/browser-client.js.map +1 -0
  287. package/dist/tools/browser/browser-tools.d.ts +18 -0
  288. package/dist/tools/browser/browser-tools.d.ts.map +1 -0
  289. package/dist/tools/browser/browser-tools.js +983 -0
  290. package/dist/tools/browser/browser-tools.js.map +1 -0
  291. package/dist/tools/browser/index.d.ts +7 -0
  292. package/dist/tools/browser/index.d.ts.map +1 -0
  293. package/dist/tools/browser/index.js +17 -0
  294. package/dist/tools/browser/index.js.map +1 -0
  295. package/dist/tools/index.d.ts +4 -0
  296. package/dist/tools/index.d.ts.map +1 -0
  297. package/dist/tools/index.js +4 -0
  298. package/dist/tools/index.js.map +1 -0
  299. package/dist/tools/llm/index.d.ts +2 -0
  300. package/dist/tools/llm/index.d.ts.map +1 -0
  301. package/dist/tools/llm/index.js +2 -0
  302. package/dist/tools/llm/index.js.map +1 -0
  303. package/dist/tools/llm/simple/ask-user-tool.d.ts +5 -0
  304. package/dist/tools/llm/simple/ask-user-tool.d.ts.map +1 -0
  305. package/dist/tools/llm/simple/ask-user-tool.js +7 -0
  306. package/dist/tools/llm/simple/ask-user-tool.js.map +1 -0
  307. package/dist/tools/llm/simple/background-bash-tool.d.ts +30 -0
  308. package/dist/tools/llm/simple/background-bash-tool.d.ts.map +1 -0
  309. package/dist/tools/llm/simple/background-bash-tool.js +320 -0
  310. package/dist/tools/llm/simple/background-bash-tool.js.map +1 -0
  311. package/dist/tools/llm/simple/background-powershell-tool.d.ts +30 -0
  312. package/dist/tools/llm/simple/background-powershell-tool.d.ts.map +1 -0
  313. package/dist/tools/llm/simple/background-powershell-tool.js +302 -0
  314. package/dist/tools/llm/simple/background-powershell-tool.js.map +1 -0
  315. package/dist/tools/llm/simple/bash-tool.d.ts +4 -0
  316. package/dist/tools/llm/simple/bash-tool.d.ts.map +1 -0
  317. package/dist/tools/llm/simple/bash-tool.js +167 -0
  318. package/dist/tools/llm/simple/bash-tool.js.map +1 -0
  319. package/dist/tools/llm/simple/file-tools.d.ts +13 -0
  320. package/dist/tools/llm/simple/file-tools.d.ts.map +1 -0
  321. package/dist/tools/llm/simple/file-tools.js +814 -0
  322. package/dist/tools/llm/simple/file-tools.js.map +1 -0
  323. package/dist/tools/llm/simple/final-response-tool.d.ts +12 -0
  324. package/dist/tools/llm/simple/final-response-tool.d.ts.map +1 -0
  325. package/dist/tools/llm/simple/final-response-tool.js +107 -0
  326. package/dist/tools/llm/simple/final-response-tool.js.map +1 -0
  327. package/dist/tools/llm/simple/index.d.ts +11 -0
  328. package/dist/tools/llm/simple/index.d.ts.map +1 -0
  329. package/dist/tools/llm/simple/index.js +20 -0
  330. package/dist/tools/llm/simple/index.js.map +1 -0
  331. package/dist/tools/llm/simple/planning-tools.d.ts +5 -0
  332. package/dist/tools/llm/simple/planning-tools.d.ts.map +1 -0
  333. package/dist/tools/llm/simple/planning-tools.js +121 -0
  334. package/dist/tools/llm/simple/planning-tools.js.map +1 -0
  335. package/dist/tools/llm/simple/powershell-tool.d.ts +4 -0
  336. package/dist/tools/llm/simple/powershell-tool.d.ts.map +1 -0
  337. package/dist/tools/llm/simple/powershell-tool.js +163 -0
  338. package/dist/tools/llm/simple/powershell-tool.js.map +1 -0
  339. package/dist/tools/llm/simple/read-image-tool.d.ts +8 -0
  340. package/dist/tools/llm/simple/read-image-tool.d.ts.map +1 -0
  341. package/dist/tools/llm/simple/read-image-tool.js +170 -0
  342. package/dist/tools/llm/simple/read-image-tool.js.map +1 -0
  343. package/dist/tools/llm/simple/simple-tool-executor.d.ts +40 -0
  344. package/dist/tools/llm/simple/simple-tool-executor.d.ts.map +1 -0
  345. package/dist/tools/llm/simple/simple-tool-executor.js +159 -0
  346. package/dist/tools/llm/simple/simple-tool-executor.js.map +1 -0
  347. package/dist/tools/llm/simple/todo-tools.d.ts +15 -0
  348. package/dist/tools/llm/simple/todo-tools.d.ts.map +1 -0
  349. package/dist/tools/llm/simple/todo-tools.js +145 -0
  350. package/dist/tools/llm/simple/todo-tools.js.map +1 -0
  351. package/dist/tools/llm/simple/user-interaction-tools.d.ts +22 -0
  352. package/dist/tools/llm/simple/user-interaction-tools.d.ts.map +1 -0
  353. package/dist/tools/llm/simple/user-interaction-tools.js +168 -0
  354. package/dist/tools/llm/simple/user-interaction-tools.js.map +1 -0
  355. package/dist/tools/office/common/constants.d.ts +192 -0
  356. package/dist/tools/office/common/constants.d.ts.map +1 -0
  357. package/dist/tools/office/common/constants.js +165 -0
  358. package/dist/tools/office/common/constants.js.map +1 -0
  359. package/dist/tools/office/common/index.d.ts +4 -0
  360. package/dist/tools/office/common/index.d.ts.map +1 -0
  361. package/dist/tools/office/common/index.js +3 -0
  362. package/dist/tools/office/common/index.js.map +1 -0
  363. package/dist/tools/office/common/types.d.ts +82 -0
  364. package/dist/tools/office/common/types.d.ts.map +1 -0
  365. package/dist/tools/office/common/types.js +2 -0
  366. package/dist/tools/office/common/types.js.map +1 -0
  367. package/dist/tools/office/common/utils.d.ts +16 -0
  368. package/dist/tools/office/common/utils.d.ts.map +1 -0
  369. package/dist/tools/office/common/utils.js +60 -0
  370. package/dist/tools/office/common/utils.js.map +1 -0
  371. package/dist/tools/office/excel-client.d.ts +219 -0
  372. package/dist/tools/office/excel-client.d.ts.map +1 -0
  373. package/dist/tools/office/excel-client.js +2346 -0
  374. package/dist/tools/office/excel-client.js.map +1 -0
  375. package/dist/tools/office/excel-tools/cells.d.ts +10 -0
  376. package/dist/tools/office/excel-tools/cells.d.ts.map +1 -0
  377. package/dist/tools/office/excel-tools/cells.js +283 -0
  378. package/dist/tools/office/excel-tools/cells.js.map +1 -0
  379. package/dist/tools/office/excel-tools/charts.d.ts +6 -0
  380. package/dist/tools/office/excel-tools/charts.d.ts.map +1 -0
  381. package/dist/tools/office/excel-tools/charts.js +124 -0
  382. package/dist/tools/office/excel-tools/charts.js.map +1 -0
  383. package/dist/tools/office/excel-tools/comments.d.ts +6 -0
  384. package/dist/tools/office/excel-tools/comments.d.ts.map +1 -0
  385. package/dist/tools/office/excel-tools/comments.js +114 -0
  386. package/dist/tools/office/excel-tools/comments.js.map +1 -0
  387. package/dist/tools/office/excel-tools/data-ops.d.ts +10 -0
  388. package/dist/tools/office/excel-tools/data-ops.d.ts.map +1 -0
  389. package/dist/tools/office/excel-tools/data-ops.js +266 -0
  390. package/dist/tools/office/excel-tools/data-ops.js.map +1 -0
  391. package/dist/tools/office/excel-tools/export.d.ts +5 -0
  392. package/dist/tools/office/excel-tools/export.d.ts.map +1 -0
  393. package/dist/tools/office/excel-tools/export.js +75 -0
  394. package/dist/tools/office/excel-tools/export.js.map +1 -0
  395. package/dist/tools/office/excel-tools/formatting.d.ts +10 -0
  396. package/dist/tools/office/excel-tools/formatting.d.ts.map +1 -0
  397. package/dist/tools/office/excel-tools/formatting.js +276 -0
  398. package/dist/tools/office/excel-tools/formatting.js.map +1 -0
  399. package/dist/tools/office/excel-tools/index.d.ts +18 -0
  400. package/dist/tools/office/excel-tools/index.d.ts.map +1 -0
  401. package/dist/tools/office/excel-tools/index.js +54 -0
  402. package/dist/tools/office/excel-tools/index.js.map +1 -0
  403. package/dist/tools/office/excel-tools/launch.d.ts +10 -0
  404. package/dist/tools/office/excel-tools/launch.d.ts.map +1 -0
  405. package/dist/tools/office/excel-tools/launch.js +250 -0
  406. package/dist/tools/office/excel-tools/launch.js.map +1 -0
  407. package/dist/tools/office/excel-tools/media.d.ts +5 -0
  408. package/dist/tools/office/excel-tools/media.d.ts.map +1 -0
  409. package/dist/tools/office/excel-tools/media.js +84 -0
  410. package/dist/tools/office/excel-tools/media.js.map +1 -0
  411. package/dist/tools/office/excel-tools/named-ranges.d.ts +6 -0
  412. package/dist/tools/office/excel-tools/named-ranges.d.ts.map +1 -0
  413. package/dist/tools/office/excel-tools/named-ranges.js +113 -0
  414. package/dist/tools/office/excel-tools/named-ranges.js.map +1 -0
  415. package/dist/tools/office/excel-tools/protection.d.ts +5 -0
  416. package/dist/tools/office/excel-tools/protection.d.ts.map +1 -0
  417. package/dist/tools/office/excel-tools/protection.js +75 -0
  418. package/dist/tools/office/excel-tools/protection.js.map +1 -0
  419. package/dist/tools/office/excel-tools/rows-columns.d.ts +11 -0
  420. package/dist/tools/office/excel-tools/rows-columns.d.ts.map +1 -0
  421. package/dist/tools/office/excel-tools/rows-columns.js +293 -0
  422. package/dist/tools/office/excel-tools/rows-columns.js.map +1 -0
  423. package/dist/tools/office/excel-tools/sheet-builders.d.ts +9 -0
  424. package/dist/tools/office/excel-tools/sheet-builders.d.ts.map +1 -0
  425. package/dist/tools/office/excel-tools/sheet-builders.js +483 -0
  426. package/dist/tools/office/excel-tools/sheet-builders.js.map +1 -0
  427. package/dist/tools/office/excel-tools/sheets.d.ts +8 -0
  428. package/dist/tools/office/excel-tools/sheets.d.ts.map +1 -0
  429. package/dist/tools/office/excel-tools/sheets.js +182 -0
  430. package/dist/tools/office/excel-tools/sheets.js.map +1 -0
  431. package/dist/tools/office/excel-tools/validation.d.ts +7 -0
  432. package/dist/tools/office/excel-tools/validation.d.ts.map +1 -0
  433. package/dist/tools/office/excel-tools/validation.js +175 -0
  434. package/dist/tools/office/excel-tools/validation.js.map +1 -0
  435. package/dist/tools/office/excel-tools.d.ts +3 -0
  436. package/dist/tools/office/excel-tools.d.ts.map +1 -0
  437. package/dist/tools/office/excel-tools.js +3 -0
  438. package/dist/tools/office/excel-tools.js.map +1 -0
  439. package/dist/tools/office/index.d.ts +6 -0
  440. package/dist/tools/office/index.d.ts.map +1 -0
  441. package/dist/tools/office/index.js +9 -0
  442. package/dist/tools/office/index.js.map +1 -0
  443. package/dist/tools/office/office-client-base.d.ts +33 -0
  444. package/dist/tools/office/office-client-base.d.ts.map +1 -0
  445. package/dist/tools/office/office-client-base.js +166 -0
  446. package/dist/tools/office/office-client-base.js.map +1 -0
  447. package/dist/tools/office/office-client.d.ts +196 -0
  448. package/dist/tools/office/office-client.d.ts.map +1 -0
  449. package/dist/tools/office/office-client.js +200 -0
  450. package/dist/tools/office/office-client.js.map +1 -0
  451. package/dist/tools/office/powerpoint-client.d.ts +148 -0
  452. package/dist/tools/office/powerpoint-client.d.ts.map +1 -0
  453. package/dist/tools/office/powerpoint-client.js +1310 -0
  454. package/dist/tools/office/powerpoint-client.js.map +1 -0
  455. package/dist/tools/office/powerpoint-tools/effects.d.ts +9 -0
  456. package/dist/tools/office/powerpoint-tools/effects.d.ts.map +1 -0
  457. package/dist/tools/office/powerpoint-tools/effects.js +246 -0
  458. package/dist/tools/office/powerpoint-tools/effects.js.map +1 -0
  459. package/dist/tools/office/powerpoint-tools/export.d.ts +6 -0
  460. package/dist/tools/office/powerpoint-tools/export.d.ts.map +1 -0
  461. package/dist/tools/office/powerpoint-tools/export.js +123 -0
  462. package/dist/tools/office/powerpoint-tools/export.js.map +1 -0
  463. package/dist/tools/office/powerpoint-tools/index.d.ts +15 -0
  464. package/dist/tools/office/powerpoint-tools/index.d.ts.map +1 -0
  465. package/dist/tools/office/powerpoint-tools/index.js +40 -0
  466. package/dist/tools/office/powerpoint-tools/index.js.map +1 -0
  467. package/dist/tools/office/powerpoint-tools/launch.d.ts +9 -0
  468. package/dist/tools/office/powerpoint-tools/launch.d.ts.map +1 -0
  469. package/dist/tools/office/powerpoint-tools/launch.js +218 -0
  470. package/dist/tools/office/powerpoint-tools/launch.js.map +1 -0
  471. package/dist/tools/office/powerpoint-tools/layout-builders.d.ts +12 -0
  472. package/dist/tools/office/powerpoint-tools/layout-builders.d.ts.map +1 -0
  473. package/dist/tools/office/powerpoint-tools/layout-builders.js +785 -0
  474. package/dist/tools/office/powerpoint-tools/layout-builders.js.map +1 -0
  475. package/dist/tools/office/powerpoint-tools/media.d.ts +8 -0
  476. package/dist/tools/office/powerpoint-tools/media.d.ts.map +1 -0
  477. package/dist/tools/office/powerpoint-tools/media.js +211 -0
  478. package/dist/tools/office/powerpoint-tools/media.js.map +1 -0
  479. package/dist/tools/office/powerpoint-tools/notes.d.ts +8 -0
  480. package/dist/tools/office/powerpoint-tools/notes.d.ts.map +1 -0
  481. package/dist/tools/office/powerpoint-tools/notes.js +171 -0
  482. package/dist/tools/office/powerpoint-tools/notes.js.map +1 -0
  483. package/dist/tools/office/powerpoint-tools/sections.d.ts +6 -0
  484. package/dist/tools/office/powerpoint-tools/sections.d.ts.map +1 -0
  485. package/dist/tools/office/powerpoint-tools/sections.js +104 -0
  486. package/dist/tools/office/powerpoint-tools/sections.js.map +1 -0
  487. package/dist/tools/office/powerpoint-tools/shapes.d.ts +22 -0
  488. package/dist/tools/office/powerpoint-tools/shapes.d.ts.map +1 -0
  489. package/dist/tools/office/powerpoint-tools/shapes.js +681 -0
  490. package/dist/tools/office/powerpoint-tools/shapes.js.map +1 -0
  491. package/dist/tools/office/powerpoint-tools/slides.d.ts +11 -0
  492. package/dist/tools/office/powerpoint-tools/slides.d.ts.map +1 -0
  493. package/dist/tools/office/powerpoint-tools/slides.js +283 -0
  494. package/dist/tools/office/powerpoint-tools/slides.js.map +1 -0
  495. package/dist/tools/office/powerpoint-tools/tables.d.ts +6 -0
  496. package/dist/tools/office/powerpoint-tools/tables.d.ts.map +1 -0
  497. package/dist/tools/office/powerpoint-tools/tables.js +132 -0
  498. package/dist/tools/office/powerpoint-tools/tables.js.map +1 -0
  499. package/dist/tools/office/powerpoint-tools/text.d.ts +12 -0
  500. package/dist/tools/office/powerpoint-tools/text.d.ts.map +1 -0
  501. package/dist/tools/office/powerpoint-tools/text.js +379 -0
  502. package/dist/tools/office/powerpoint-tools/text.js.map +1 -0
  503. package/dist/tools/office/powerpoint-tools.d.ts +3 -0
  504. package/dist/tools/office/powerpoint-tools.d.ts.map +1 -0
  505. package/dist/tools/office/powerpoint-tools.js +3 -0
  506. package/dist/tools/office/powerpoint-tools.js.map +1 -0
  507. package/dist/tools/office/word-client.d.ts +169 -0
  508. package/dist/tools/office/word-client.d.ts.map +1 -0
  509. package/dist/tools/office/word-client.js +1636 -0
  510. package/dist/tools/office/word-client.js.map +1 -0
  511. package/dist/tools/office/word-tools/bookmarks.d.ts +7 -0
  512. package/dist/tools/office/word-tools/bookmarks.d.ts.map +1 -0
  513. package/dist/tools/office/word-tools/bookmarks.js +146 -0
  514. package/dist/tools/office/word-tools/bookmarks.js.map +1 -0
  515. package/dist/tools/office/word-tools/comments.d.ts +7 -0
  516. package/dist/tools/office/word-tools/comments.d.ts.map +1 -0
  517. package/dist/tools/office/word-tools/comments.js +146 -0
  518. package/dist/tools/office/word-tools/comments.js.map +1 -0
  519. package/dist/tools/office/word-tools/content.d.ts +7 -0
  520. package/dist/tools/office/word-tools/content.d.ts.map +1 -0
  521. package/dist/tools/office/word-tools/content.js +168 -0
  522. package/dist/tools/office/word-tools/content.js.map +1 -0
  523. package/dist/tools/office/word-tools/export.d.ts +5 -0
  524. package/dist/tools/office/word-tools/export.d.ts.map +1 -0
  525. package/dist/tools/office/word-tools/export.js +73 -0
  526. package/dist/tools/office/word-tools/export.js.map +1 -0
  527. package/dist/tools/office/word-tools/formatting.d.ts +6 -0
  528. package/dist/tools/office/word-tools/formatting.d.ts.map +1 -0
  529. package/dist/tools/office/word-tools/formatting.js +129 -0
  530. package/dist/tools/office/word-tools/formatting.js.map +1 -0
  531. package/dist/tools/office/word-tools/headers-footers.d.ts +6 -0
  532. package/dist/tools/office/word-tools/headers-footers.d.ts.map +1 -0
  533. package/dist/tools/office/word-tools/headers-footers.js +117 -0
  534. package/dist/tools/office/word-tools/headers-footers.js.map +1 -0
  535. package/dist/tools/office/word-tools/index.d.ts +19 -0
  536. package/dist/tools/office/word-tools/index.d.ts.map +1 -0
  537. package/dist/tools/office/word-tools/index.js +60 -0
  538. package/dist/tools/office/word-tools/index.js.map +1 -0
  539. package/dist/tools/office/word-tools/launch.d.ts +10 -0
  540. package/dist/tools/office/word-tools/launch.d.ts.map +1 -0
  541. package/dist/tools/office/word-tools/launch.js +257 -0
  542. package/dist/tools/office/word-tools/launch.js.map +1 -0
  543. package/dist/tools/office/word-tools/lists.d.ts +5 -0
  544. package/dist/tools/office/word-tools/lists.d.ts.map +1 -0
  545. package/dist/tools/office/word-tools/lists.js +73 -0
  546. package/dist/tools/office/word-tools/lists.js.map +1 -0
  547. package/dist/tools/office/word-tools/navigation.d.ts +5 -0
  548. package/dist/tools/office/word-tools/navigation.d.ts.map +1 -0
  549. package/dist/tools/office/word-tools/navigation.js +85 -0
  550. package/dist/tools/office/word-tools/navigation.js.map +1 -0
  551. package/dist/tools/office/word-tools/page-setup.d.ts +7 -0
  552. package/dist/tools/office/word-tools/page-setup.d.ts.map +1 -0
  553. package/dist/tools/office/word-tools/page-setup.js +152 -0
  554. package/dist/tools/office/word-tools/page-setup.js.map +1 -0
  555. package/dist/tools/office/word-tools/section-builders.d.ts +12 -0
  556. package/dist/tools/office/word-tools/section-builders.d.ts.map +1 -0
  557. package/dist/tools/office/word-tools/section-builders.js +601 -0
  558. package/dist/tools/office/word-tools/section-builders.js.map +1 -0
  559. package/dist/tools/office/word-tools/tables.d.ts +8 -0
  560. package/dist/tools/office/word-tools/tables.d.ts.map +1 -0
  561. package/dist/tools/office/word-tools/tables.js +197 -0
  562. package/dist/tools/office/word-tools/tables.js.map +1 -0
  563. package/dist/tools/office/word-tools/text.d.ts +9 -0
  564. package/dist/tools/office/word-tools/text.d.ts.map +1 -0
  565. package/dist/tools/office/word-tools/text.js +245 -0
  566. package/dist/tools/office/word-tools/text.js.map +1 -0
  567. package/dist/tools/office/word-tools/undo-redo.d.ts +5 -0
  568. package/dist/tools/office/word-tools/undo-redo.d.ts.map +1 -0
  569. package/dist/tools/office/word-tools/undo-redo.js +73 -0
  570. package/dist/tools/office/word-tools/undo-redo.js.map +1 -0
  571. package/dist/tools/office/word-tools/watermarks.d.ts +5 -0
  572. package/dist/tools/office/word-tools/watermarks.d.ts.map +1 -0
  573. package/dist/tools/office/word-tools/watermarks.js +81 -0
  574. package/dist/tools/office/word-tools/watermarks.js.map +1 -0
  575. package/dist/tools/office/word-tools.d.ts +3 -0
  576. package/dist/tools/office/word-tools.d.ts.map +1 -0
  577. package/dist/tools/office/word-tools.js +3 -0
  578. package/dist/tools/office/word-tools.js.map +1 -0
  579. package/dist/tools/registry.d.ts +55 -0
  580. package/dist/tools/registry.d.ts.map +1 -0
  581. package/dist/tools/registry.js +296 -0
  582. package/dist/tools/registry.js.map +1 -0
  583. package/dist/tools/types.d.ts +88 -0
  584. package/dist/tools/types.d.ts.map +1 -0
  585. package/dist/tools/types.js +19 -0
  586. package/dist/tools/types.js.map +1 -0
  587. package/dist/types/index.d.ts +132 -0
  588. package/dist/types/index.d.ts.map +1 -0
  589. package/dist/types/index.js +2 -0
  590. package/dist/types/index.js.map +1 -0
  591. package/dist/ui/PlanExecuteView.d.ts +11 -0
  592. package/dist/ui/PlanExecuteView.d.ts.map +1 -0
  593. package/dist/ui/PlanExecuteView.js +27 -0
  594. package/dist/ui/PlanExecuteView.js.map +1 -0
  595. package/dist/ui/TodoPanel.d.ts +13 -0
  596. package/dist/ui/TodoPanel.d.ts.map +1 -0
  597. package/dist/ui/TodoPanel.js +138 -0
  598. package/dist/ui/TodoPanel.js.map +1 -0
  599. package/dist/ui/UpdateNotification.d.ts +13 -0
  600. package/dist/ui/UpdateNotification.d.ts.map +1 -0
  601. package/dist/ui/UpdateNotification.js +42 -0
  602. package/dist/ui/UpdateNotification.js.map +1 -0
  603. package/dist/ui/components/ActivityIndicator.d.ts +25 -0
  604. package/dist/ui/components/ActivityIndicator.d.ts.map +1 -0
  605. package/dist/ui/components/ActivityIndicator.js +116 -0
  606. package/dist/ui/components/ActivityIndicator.js.map +1 -0
  607. package/dist/ui/components/CommandBrowser.d.ts +10 -0
  608. package/dist/ui/components/CommandBrowser.d.ts.map +1 -0
  609. package/dist/ui/components/CommandBrowser.js +57 -0
  610. package/dist/ui/components/CommandBrowser.js.map +1 -0
  611. package/dist/ui/components/CustomTextInput.d.ts +13 -0
  612. package/dist/ui/components/CustomTextInput.d.ts.map +1 -0
  613. package/dist/ui/components/CustomTextInput.js +246 -0
  614. package/dist/ui/components/CustomTextInput.js.map +1 -0
  615. package/dist/ui/components/FileBrowser.d.ts +11 -0
  616. package/dist/ui/components/FileBrowser.d.ts.map +1 -0
  617. package/dist/ui/components/FileBrowser.js +45 -0
  618. package/dist/ui/components/FileBrowser.js.map +1 -0
  619. package/dist/ui/components/LLMSetupWizard.d.ts +8 -0
  620. package/dist/ui/components/LLMSetupWizard.d.ts.map +1 -0
  621. package/dist/ui/components/LLMSetupWizard.js +197 -0
  622. package/dist/ui/components/LLMSetupWizard.js.map +1 -0
  623. package/dist/ui/components/Logo.d.ts +20 -0
  624. package/dist/ui/components/Logo.d.ts.map +1 -0
  625. package/dist/ui/components/Logo.js +100 -0
  626. package/dist/ui/components/Logo.js.map +1 -0
  627. package/dist/ui/components/MarkdownRenderer.d.ts +9 -0
  628. package/dist/ui/components/MarkdownRenderer.d.ts.map +1 -0
  629. package/dist/ui/components/MarkdownRenderer.js +198 -0
  630. package/dist/ui/components/MarkdownRenderer.js.map +1 -0
  631. package/dist/ui/components/ModelSelector.d.ts +8 -0
  632. package/dist/ui/components/ModelSelector.d.ts.map +1 -0
  633. package/dist/ui/components/ModelSelector.js +111 -0
  634. package/dist/ui/components/ModelSelector.js.map +1 -0
  635. package/dist/ui/components/PlanExecuteApp.d.ts +23 -0
  636. package/dist/ui/components/PlanExecuteApp.d.ts.map +1 -0
  637. package/dist/ui/components/PlanExecuteApp.js +1377 -0
  638. package/dist/ui/components/PlanExecuteApp.js.map +1 -0
  639. package/dist/ui/components/ProgressBar.d.ts +10 -0
  640. package/dist/ui/components/ProgressBar.d.ts.map +1 -0
  641. package/dist/ui/components/ProgressBar.js +26 -0
  642. package/dist/ui/components/ProgressBar.js.map +1 -0
  643. package/dist/ui/components/StatusBar.d.ts +23 -0
  644. package/dist/ui/components/StatusBar.d.ts.map +1 -0
  645. package/dist/ui/components/StatusBar.js +162 -0
  646. package/dist/ui/components/StatusBar.js.map +1 -0
  647. package/dist/ui/components/ThinkingIndicator.d.ts +14 -0
  648. package/dist/ui/components/ThinkingIndicator.d.ts.map +1 -0
  649. package/dist/ui/components/ThinkingIndicator.js +63 -0
  650. package/dist/ui/components/ThinkingIndicator.js.map +1 -0
  651. package/dist/ui/components/TodoListView.d.ts +11 -0
  652. package/dist/ui/components/TodoListView.d.ts.map +1 -0
  653. package/dist/ui/components/TodoListView.js +69 -0
  654. package/dist/ui/components/TodoListView.js.map +1 -0
  655. package/dist/ui/components/ToolSelector.d.ts +7 -0
  656. package/dist/ui/components/ToolSelector.d.ts.map +1 -0
  657. package/dist/ui/components/ToolSelector.js +112 -0
  658. package/dist/ui/components/ToolSelector.js.map +1 -0
  659. package/dist/ui/components/dialogs/ApprovalDialog.d.ts +13 -0
  660. package/dist/ui/components/dialogs/ApprovalDialog.d.ts.map +1 -0
  661. package/dist/ui/components/dialogs/ApprovalDialog.js +175 -0
  662. package/dist/ui/components/dialogs/ApprovalDialog.js.map +1 -0
  663. package/dist/ui/components/dialogs/AskUserDialog.d.ts +9 -0
  664. package/dist/ui/components/dialogs/AskUserDialog.d.ts.map +1 -0
  665. package/dist/ui/components/dialogs/AskUserDialog.js +111 -0
  666. package/dist/ui/components/dialogs/AskUserDialog.js.map +1 -0
  667. package/dist/ui/components/dialogs/DocsBrowser.d.ts +8 -0
  668. package/dist/ui/components/dialogs/DocsBrowser.d.ts.map +1 -0
  669. package/dist/ui/components/dialogs/DocsBrowser.js +127 -0
  670. package/dist/ui/components/dialogs/DocsBrowser.js.map +1 -0
  671. package/dist/ui/components/dialogs/SettingsDialog.d.ts +10 -0
  672. package/dist/ui/components/dialogs/SettingsDialog.d.ts.map +1 -0
  673. package/dist/ui/components/dialogs/SettingsDialog.js +586 -0
  674. package/dist/ui/components/dialogs/SettingsDialog.js.map +1 -0
  675. package/dist/ui/components/dialogs/index.d.ts +3 -0
  676. package/dist/ui/components/dialogs/index.d.ts.map +1 -0
  677. package/dist/ui/components/dialogs/index.js +3 -0
  678. package/dist/ui/components/dialogs/index.js.map +1 -0
  679. package/dist/ui/components/index.d.ts +12 -0
  680. package/dist/ui/components/index.d.ts.map +1 -0
  681. package/dist/ui/components/index.js +9 -0
  682. package/dist/ui/components/index.js.map +1 -0
  683. package/dist/ui/components/panels/LogPanel.d.ts +7 -0
  684. package/dist/ui/components/panels/LogPanel.d.ts.map +1 -0
  685. package/dist/ui/components/panels/LogPanel.js +280 -0
  686. package/dist/ui/components/panels/LogPanel.js.map +1 -0
  687. package/dist/ui/components/panels/SessionPanel.d.ts +8 -0
  688. package/dist/ui/components/panels/SessionPanel.d.ts.map +1 -0
  689. package/dist/ui/components/panels/SessionPanel.js +81 -0
  690. package/dist/ui/components/panels/SessionPanel.js.map +1 -0
  691. package/dist/ui/components/panels/index.d.ts +4 -0
  692. package/dist/ui/components/panels/index.d.ts.map +1 -0
  693. package/dist/ui/components/panels/index.js +4 -0
  694. package/dist/ui/components/panels/index.js.map +1 -0
  695. package/dist/ui/components/views/ChatView.d.ts +12 -0
  696. package/dist/ui/components/views/ChatView.d.ts.map +1 -0
  697. package/dist/ui/components/views/ChatView.js +289 -0
  698. package/dist/ui/components/views/ChatView.js.map +1 -0
  699. package/dist/ui/components/views/index.d.ts +2 -0
  700. package/dist/ui/components/views/index.d.ts.map +1 -0
  701. package/dist/ui/components/views/index.js +2 -0
  702. package/dist/ui/components/views/index.js.map +1 -0
  703. package/dist/ui/contexts/TokenContext.d.ts +29 -0
  704. package/dist/ui/contexts/TokenContext.d.ts.map +1 -0
  705. package/dist/ui/contexts/TokenContext.js +79 -0
  706. package/dist/ui/contexts/TokenContext.js.map +1 -0
  707. package/dist/ui/hooks/atFileProcessor.d.ts +15 -0
  708. package/dist/ui/hooks/atFileProcessor.d.ts.map +1 -0
  709. package/dist/ui/hooks/atFileProcessor.js +88 -0
  710. package/dist/ui/hooks/atFileProcessor.js.map +1 -0
  711. package/dist/ui/hooks/index.d.ts +9 -0
  712. package/dist/ui/hooks/index.d.ts.map +1 -0
  713. package/dist/ui/hooks/index.js +9 -0
  714. package/dist/ui/hooks/index.js.map +1 -0
  715. package/dist/ui/hooks/slashCommandProcessor.d.ts +21 -0
  716. package/dist/ui/hooks/slashCommandProcessor.d.ts.map +1 -0
  717. package/dist/ui/hooks/slashCommandProcessor.js +96 -0
  718. package/dist/ui/hooks/slashCommandProcessor.js.map +1 -0
  719. package/dist/ui/hooks/useCommandBrowserState.d.ts +12 -0
  720. package/dist/ui/hooks/useCommandBrowserState.d.ts.map +1 -0
  721. package/dist/ui/hooks/useCommandBrowserState.js +66 -0
  722. package/dist/ui/hooks/useCommandBrowserState.js.map +1 -0
  723. package/dist/ui/hooks/useFileBrowserState.d.ts +15 -0
  724. package/dist/ui/hooks/useFileBrowserState.d.ts.map +1 -0
  725. package/dist/ui/hooks/useFileBrowserState.js +80 -0
  726. package/dist/ui/hooks/useFileBrowserState.js.map +1 -0
  727. package/dist/ui/hooks/useFileList.d.ts +20 -0
  728. package/dist/ui/hooks/useFileList.d.ts.map +1 -0
  729. package/dist/ui/hooks/useFileList.js +57 -0
  730. package/dist/ui/hooks/useFileList.js.map +1 -0
  731. package/dist/ui/hooks/useInputHistory.d.ts +9 -0
  732. package/dist/ui/hooks/useInputHistory.d.ts.map +1 -0
  733. package/dist/ui/hooks/useInputHistory.js +68 -0
  734. package/dist/ui/hooks/useInputHistory.js.map +1 -0
  735. package/dist/ui/hooks/usePlanExecution.d.ts +8 -0
  736. package/dist/ui/hooks/usePlanExecution.d.ts.map +1 -0
  737. package/dist/ui/hooks/usePlanExecution.js +218 -0
  738. package/dist/ui/hooks/usePlanExecution.js.map +1 -0
  739. package/dist/ui/hooks/useTerminalWidth.d.ts +4 -0
  740. package/dist/ui/hooks/useTerminalWidth.d.ts.map +1 -0
  741. package/dist/ui/hooks/useTerminalWidth.js +26 -0
  742. package/dist/ui/hooks/useTerminalWidth.js.map +1 -0
  743. package/dist/ui/index.d.ts +7 -0
  744. package/dist/ui/index.d.ts.map +1 -0
  745. package/dist/ui/index.js +7 -0
  746. package/dist/ui/index.js.map +1 -0
  747. package/dist/ui/ink-entry.d.ts +3 -0
  748. package/dist/ui/ink-entry.d.ts.map +1 -0
  749. package/dist/ui/ink-entry.js +22 -0
  750. package/dist/ui/ink-entry.js.map +1 -0
  751. package/dist/utils/file-system.d.ts +9 -0
  752. package/dist/utils/file-system.d.ts.map +1 -0
  753. package/dist/utils/file-system.js +99 -0
  754. package/dist/utils/file-system.js.map +1 -0
  755. package/dist/utils/git-utils.d.ts +2 -0
  756. package/dist/utils/git-utils.d.ts.map +1 -0
  757. package/dist/utils/git-utils.js +16 -0
  758. package/dist/utils/git-utils.js.map +1 -0
  759. package/dist/utils/json-stream-logger.d.ts +74 -0
  760. package/dist/utils/json-stream-logger.d.ts.map +1 -0
  761. package/dist/utils/json-stream-logger.js +808 -0
  762. package/dist/utils/json-stream-logger.js.map +1 -0
  763. package/dist/utils/logger.d.ts +152 -0
  764. package/dist/utils/logger.d.ts.map +1 -0
  765. package/dist/utils/logger.js +1672 -0
  766. package/dist/utils/logger.js.map +1 -0
  767. package/dist/utils/platform-utils.d.ts +19 -0
  768. package/dist/utils/platform-utils.d.ts.map +1 -0
  769. package/dist/utils/platform-utils.js +134 -0
  770. package/dist/utils/platform-utils.js.map +1 -0
  771. package/dist/utils/wsl-utils.d.ts +4 -0
  772. package/dist/utils/wsl-utils.d.ts.map +1 -0
  773. package/dist/utils/wsl-utils.js +72 -0
  774. package/dist/utils/wsl-utils.js.map +1 -0
  775. package/package.json +132 -0
  776. package/scripts/patch-yoga.js +48 -0
@@ -0,0 +1,4 @@
1
+ export declare const EXCEL_CREATE_SYSTEM_PROMPT = "You are an elite Office automation agent that produces WORLD-CLASS results.\nExecute the user's instruction using the available tools.\nWhen the task is complete, you MUST call the \"complete\" tool with a summary of what was done.\nCall only one tool at a time. After each tool result, decide the next step.\nAlways respond in the same language as the user's instruction.\nALL generated content MUST be in the same language as the user's instruction.\nThis includes: slide TITLES, section headings, body text, bullet points, table headers, table data, chart labels, chart titles, insight text \u2014 EVERYTHING visible on the document.\nIf the user writes in Korean, ALL text MUST be Korean. English titles like \"COMPANY INTRODUCTION\" or \"PROBLEM DEFINITION\" are WRONG \u2014 use \"\uD68C\uC0AC \uC18C\uAC1C\", \"\uBB38\uC81C \uC815\uC758\" instead.\nThe ONLY exceptions: proper nouns (company names), universal abbreviations (KPI, ROI, AI, SaaS), and currency symbols ($, \u20A9).\n\u26A0 TABLE HEADERS: \"Competitor A/B\" is NOT a proper noun \u2014 use \"\uACBD\uC7C1\uC0AC A/B\" in Korean. \"Category\" \u2192 \"\uAD6C\uBD84\". \"Feature\" \u2192 \"\uAE30\uB2A5\". ALL table column/row headers MUST be in the user's language.\nThis is non-negotiable \u2014 wrong language scores ZERO.\n\u26A0 FOREIGN CHARACTER BAN: When user writes Korean, NEVER use Chinese characters (\u8F6E, \u878D, \u8D44, \u4EBF, etc.) or Japanese-only characters. \"A\u8F6E\u878D\u8D44\" is WRONG \u2192 \"\uC2DC\uB9AC\uC988 A \uD22C\uC790\". \"B\u8F6E\u878D\u8D44\" is WRONG \u2192 \"\uC2DC\uB9AC\uC988 B \uD22C\uC790\". \"5\u4EBF\" is WRONG \u2192 \"5\uC5B5\". ALL financial, business, and technical terms must be in Korean.\n\u26A0 LANGUAGE OVERRIDE: Even if the EXECUTION_PLAN contains English titles like \"Problem Definition\" or \"Market Analysis\", you MUST write ALL visible text in the user's language. If the user wrote in Korean, write \"\uBB38\uC81C \uC815\uC758\" not \"Problem Definition\". The plan's labels are for structure \u2014 YOU must output the user's language.\n\n\u2550\u2550\u2550 QUALITY STANDARD \u2550\u2550\u2550\nYour output must score 95+ out of 100 in professional quality.\nEven if the user gives a vague, sloppy, or minimal instruction, YOU must:\n\u2022 Infer the best possible interpretation and fill in the gaps with professional judgment\n\u2022 Generate rich, contextual, topic-appropriate content \u2014 NEVER use generic placeholder text\n\u2022 Apply beautiful, cohesive design with proper color schemes and typography\n\u2022 Deliver a result that looks like it was made by a professional designer\n\n\u2550\u2550\u2550 CONTENT GENERATION RULES \u2550\u2550\u2550\nWhen the user provides only a topic without specific content:\n\u2022 Research the topic mentally and generate realistic, detailed, professional content\n\u2022 Use concrete numbers, dates, names, and examples \u2014 NOT \"XX\" or \"lorem ipsum\"\n\u2022 Tailor vocabulary and tone to the document type (formal for reports, engaging for marketing, precise for technical)\n\u2022 Every paragraph must be substantive (3+ sentences with real information)\n\u2022 Every bullet point must have an explanation, not just a keyword\n\u2022 Tables must have realistic data that makes sense for the topic\n\n\u2550\u2550\u2550 MODE DETECTION \u2550\u2550\u2550\n\u2022 CREATE MODE: user wants a new document \u2192 use *_create, then build from scratch.\n\u2022 MODIFY MODE: user wants to edit an existing file \u2192 use *_open, read content, make targeted changes.\n\u2022 If user provides a file path to open/edit \u2192 MODIFY MODE.\n\u2022 If user says \"create\", \"make\", \"write\", \"build\" (or Korean equivalents) \u2192 CREATE MODE.\n\n\u2550\u2550\u2550 ERROR RECOVERY \u2550\u2550\u2550\nIf a tool fails, do NOT give up immediately:\n1. If file open fails \u2192 try *_create first to launch the app, then *_open again.\n2. If COM error \u2192 retry once. If still fails, report the specific error via \"complete\".\n3. Try at least 2 alternative approaches before reporting failure.\n\n\u2550\u2550\u2550 ABSOLUTE RULES \u2550\u2550\u2550\n1. Every element MUST have explicit formatting (font, size, color).\n2. After ALL work is done, SAVE and call \"complete\".\n3. If the user specifies a save path, save to that exact path.\n4. If the user provides strict formatting instructions, follow them EXACTLY.\n5. NEVER use placeholder text. Every piece of content must be real and relevant.\n\n## YOUR ROLE: Excel Spreadsheet CREATION Specialist\n\nYou create NEW Excel spreadsheets using HIGH-LEVEL sheet builder tools.\nEach tool call creates a complete structure \u2014 you never deal with individual cell formatting.\n\n## AVAILABLE TOOLS\n\n### Lifecycle\n- `excel_create` \u2014 Create a blank workbook\n- `excel_save` \u2014 Save the workbook\n- `excel_screenshot` \u2014 Take a screenshot for verification\n\n### Sheet Management\n- `excel_add_sheet` \u2014 Add a new sheet\n- `excel_rename_sheet` \u2014 Rename a sheet\n\n### Sheet Builders (1 call = 1 complete structure)\n- `excel_build_data_sheet` \u2014 Title row + styled headers + data rows + number format + autofit\n- `excel_build_formula_columns` \u2014 Add formula columns to existing data\n- `excel_build_summary_row` \u2014 Add styled totals/summary row\n- `excel_build_chart` \u2014 Add a styled chart (MUST include category_range for axis labels)\n- `excel_build_conditional_format` \u2014 Apply conditional formatting\n\n### Complete\n- `final_response` \u2014 Return result when all work is done\n\n## WORKFLOW\n\n1. `excel_create` \u2192 create blank workbook (CALL ONLY ONCE \u2014 NEVER call excel_create again!)\n2. `excel_build_data_sheet` \u2192 main data sheet with title, headers, data\n3. `excel_build_formula_columns` \u2192 calculated columns (growth %, variance, etc.)\n4. `excel_build_summary_row` \u2192 totals/averages at bottom\n5. `excel_build_conditional_format` \u2192 highlight key values\n6. `excel_build_chart` \u2192 visual representation of data\n7. `excel_add_sheet` \u2192 add more sheets (repeat steps 2-6 for each sheet)\n8. `excel_save` \u2192 save to path (CALL ONLY ONCE at the very end!)\n9. `complete` \u2192 report completion\n\n## CRITICAL RULES\n- NEVER call `excel_create` more than once! It creates a NEW blank workbook and DESTROYS all previous work.\n- Use `excel_add_sheet` to add additional sheets to the same workbook.\n- **MANDATORY: Build EXACTLY 2-3 sheets.** Single-sheet spreadsheets are UNACCEPTABLE.\n - Sheet 1: Detailed data (the main data table with all rows)\n - Sheet 2: Summary/Dashboard (aggregated view \u2014 quarterly, category, or KPI)\n - Sheet 3 (optional): Additional analysis or breakdown\n- Place charts BELOW data, never overlapping with data cells.\n- When placing 2 charts side by side: first chart left=20, second chart left=540 (500 width + 40 gap).\n- When stacking charts vertically: same left, second chart top = first chart top + 320.\n- Each sheet MUST have at least 1 chart.\n\n## DESIGN CONSISTENCY\n\n- STRONGLY PREFER `color_scheme` presets over custom `colors` \u2014 presets guarantee readability\n- Available presets: MODERN_GREEN, WARM_AMBER, MINIMAL_SLATE, CORPORATE_BLUE, VIBRANT_CORAL, DEEP_PURPLE\n- If you MUST use custom `colors`, the `body` color MUST be dark (e.g. #333333) \u2014 NEVER white or light colors\n- Use the SAME color_scheme and fonts across ALL builders on ALL sheets\n\n## CRITICAL: Number Handling\n\n- Write numbers AS NUMBERS, not strings: `12500`, not `\"12,500\"`\n- Use `number_formats` parameter for display format: `\"#,##0\"`, `\"0.0%\"`\n- Percentages: write as decimal (0.15 for 15%), format as `\"0.0%\"`\n- Currency: write raw number, format as `\"\u20A9#,##0\"` or `\"$#,##0\"`\n- **DATES**: Write as `\"2025-01-15\"` STRING, and set number_format `\"yyyy-mm-dd\"`. Do NOT write date serial numbers.\n - Example: data row `[\"2025-01-15\", \"2025-03-31\", 10]`, number_formats: `{\"A\": \"yyyy-mm-dd\", \"B\": \"yyyy-mm-dd\"}`\n\n## CONTENT QUALITY\n\n- ALL labels and titles MUST be in Korean\n- Data must be REALISTIC \u2014 use plausible numbers for the topic\n- Include at least one formula column (growth, change, ratio, etc.)\n- Include at least one summary row (SUM, AVERAGE) on EVERY sheet \u2014 call `excel_build_summary_row` for each\n- Include at least one chart PER SHEET\n- NEVER use placeholder data like \"\uB370\uC774\uD1301\", \"\uAC121\"\n\n## MANDATORY: Conditional Formatting\n\nYou MUST call `excel_build_conditional_format` at least TWICE per sheet (2+ rules per sheet).\nUse these EXACT parameter patterns (rule_type + operator, NOT shorthand):\n\nExample combo for a sales sheet:\n1. rule_type: \"cellValue\", operator: \"lessThan\", value1: \"0\", font_color: \"#FF0000\" (negative values red)\n2. rule_type: \"colorScale\" on the main numeric column (gradient visualization)\n\nOther options:\n- rule_type: \"cellValue\", operator: \"greaterThan\", value1: \"1000000\", fill_color: \"#C6EFCE\"\n- rule_type: \"dataBar\"\n\n\u26A0\uFE0F NEVER use shorthand types like \"less_than\" or \"greater_than\" \u2014 they will FAIL.\nDo NOT skip this step \u2014 a spreadsheet without conditional formatting looks unprofessional.\n\n## RULES\n\n1. ALWAYS call `excel_create` first\n2. ALWAYS save before completing\n3. Numbers must be written as numbers, not formatted strings\n4. Use `excel_build_data_sheet` for RAW data only \u2014 do NOT include formula columns in the data array\n5. Add formula columns via `excel_build_formula_columns` AFTER the data sheet is built\n - Use {row} for current row, {row-1} for previous row\n - \u26A0\uFE0F NEVER use OFFSET(), INDIRECT(), or INDEX() \u2014 they cause #VALUE! errors\n - ONLY use direct cell references with {row} and {row-1} placeholders\n - Wrap in IFERROR for edge cases: \"=IFERROR((B{row}-B{row-1})/B{row-1},0)\"\n - Growth rate: \"=IFERROR((B{row}-B{row-1})/B{row-1},0)\" with number_format \"0.0%\"\n - Running total: \"=SUM($B$3:B{row})\" with number_format \"#,##0\"\n - Difference: \"=C{row}-D{row}\" with number_format \"#,##0\"\n6. Chart `data_range` must include ALL data rows \u2014 if data is in rows 3-14, end at row 14 (not 13!).\n - Include ONLY pure numeric columns \u2014 EXCLUDE date columns, text columns, ID columns, label columns.\n - data_range includes HEADER ROW: e.g., \"B2:D14\" (row 2 = headers, rows 3-14 = data)\n - Date columns (yyyy-mm-dd) become serial numbers in charts \u2014 they WILL break the chart scale.\n - Example: columns A(label) B(start_date) C(end_date) D(duration) E(progress) \u2192 data_range = \"D2:E14\", category_range = \"A3:A14\"\n - For schedule/timeline data: chart the DURATION or COUNT columns, NOT the date columns.\n7. Chart `category_range` is MANDATORY \u2014 without it, chart X-axis shows 1,2,3 instead of labels!\n - Must point to the label/category column DATA rows (NO header): e.g., \"A3:A14\" for month names\n - For pie/doughnut: category_range = slice labels (e.g., \"A3:A14\" for category names)\n - ALWAYS provide category_range \u2014 NEVER omit it\n8. VERIFY: if data has N rows starting at row 3, the last row is row (3+N-1). data_range MUST end at that row.\n9. NEVER call low-level Excel tools \u2014 only use the builders listed above\n10. EVERY sheet must have its OWN self-contained data rows \u2014 no empty summary sheets\n11. MINIMUM DATA DENSITY: Each sheet must have at least 8 data rows. excel_save WILL REJECT sheets with fewer rows.\n12. NO EMPTY ROWS in data: Every row from row 3 to the last data row must have column A filled. Gaps will be rejected.\n13. Summary row formula must use correct ranges: if data rows are 3-14, use SUM(B3:B14) not SUM(B3:B10).\n";
2
+ export declare const EXCEL_CREATE_PLANNING_PROMPT = "You are the Planning LLM for an Excel Spreadsheet Creation Agent.\nGiven the user's request and the Enhancement LLM's creative content, create a concrete execution plan.\n\n## OUTPUT FORMAT\n\nMODE: CREATE\nDESIGN DECISIONS:\n- COLOR_SCHEME: [preset name or custom hex values]\n- FONTS: [preset name or custom]\n\nTOTAL_SHEETS: [number]\n\nSHEET_PLAN:\nFor each sheet:\n\nSHEET: \"[sheet_name]\"\n1. [DATA] excel_build_data_sheet \u2014 Title: \"...\", Headers: [...], Rows: N\n2. [FORMULA] excel_build_formula_columns \u2014 Columns: [col: formula description]\n3. [SUMMARY] excel_build_summary_row \u2014 Row N+3: SUM/AVG for columns [...]\n4. [FORMAT] excel_build_conditional_format \u2014 Range: \"...\", Rule: ...\n5. [CHART] excel_build_chart \u2014 Type: ..., Range: \"...\", Title: \"...\"\n\n## CONTENT DENSITY\n\n- Data sheet: 8-15 data rows MINIMUM (fewer than 8 will be rejected at save), 5-8 columns\n- Summary sheet: ALSO needs 8+ data rows \u2014 aggregate by different dimension (team, quarter, category)\n- Formula columns: 1-3 calculated columns PER SHEET\n- Summary row: SUM and/or AVERAGE for numeric columns\n- Chart: matches the data story (bar for comparison, line for trends, pie for composition)\n- Chart data_range: ONLY numeric columns \u2014 NEVER include date or text columns in chart data_range\n\n## CRITICAL: Numbers\n\n- Plan data values as RAW NUMBERS: 125000, not \"125,000\"\n- Plan percentages as DECIMALS: 0.15, not \"15%\"\n- Specify number_formats separately: {\"C\": \"#,##0\", \"D\": \"0.0%\"}\n\n## MANDATORY STRUCTURE\n\n- TOTAL_SHEETS must be 2 or 3 (NEVER 1)\n- Sheet 1: Detailed data table (main analysis)\n- Sheet 2: Summary/Dashboard (aggregated or KPI view)\n- Each sheet needs: data + formula column + summary row + chart + conditional formatting\n\n## VERIFICATION\n\nBefore finalizing the plan, check:\n\u2705 excel_create called first?\n\u2705 TOTAL_SHEETS >= 2? (MANDATORY \u2014 single sheet = FAILURE)\n\u2705 Data has realistic, specific values?\n\u2705 At least 1 formula column PER SHEET?\n\u2705 Summary row included on each sheet?\n\u2705 At least 1 chart PER SHEET?\n\u2705 Conditional formatting on each sheet?\n\u2705 Number formats specified?\n\u2705 Save path specified?\n\u2705 All Korean labels?\n";
3
+ export declare const EXCEL_CREATE_ENHANCEMENT_PROMPT = "You are the Enhancement LLM for an Excel Spreadsheet Creation Agent.\nGenerate rich, professional data content for the spreadsheet.\n\n## OUTPUT FORMAT\n\nDATA_TYPE: [sales/finance/HR/inventory/performance/survey]\nTARGET_AUDIENCE: [executives/team/analysts/general]\nTOTAL_SHEETS: [2-3] (NEVER 1 \u2014 minimum 2 sheets mandatory)\n\nDESIGN_SPECIFICATION:\n- COLOR_SCHEME: [choose from: MODERN_GREEN, WARM_AMBER, MINIMAL_SLATE, CORPORATE_BLUE, VIBRANT_CORAL, DEEP_PURPLE \u2014 or specify custom hex]\n- FONTS: [choose matching preset or custom {title, body}]\n\nFor each sheet:\nSHEET: \"[name]\"\n- Title: \"...\"\n- Headers: [\"col1\", \"col2\", ...]\n- Data description: what each row represents, how many rows\n- Sample data: first 2-3 rows as example (use REAL numbers, not placeholders)\n- Formula columns: what calculations to add\n- Summary: what aggregations (SUM, AVERAGE)\n- Chart: type + what it shows\n- Conditional formatting: what to highlight\n\n## RULES\n\n- ALL labels, headers, and titles MUST be in Korean\n- Provide REALISTIC data appropriate for the topic\n- Numbers must be raw values (125000, not \"125,000\")\n- Percentages as decimals (0.15, not \"15%\")\n- Include at least one meaningful calculation (growth rate, variance, ratio)\n- Think like a professional analyst creating a real spreadsheet\n";
4
+ //# sourceMappingURL=excel-create-prompts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"excel-create-prompts.d.ts","sourceRoot":"","sources":["../../../src/agents/office/excel-create-prompts.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,0BAA0B,y+WA2HtC,CAAC;AAEF,eAAO,MAAM,4BAA4B,+tEAyDxC,CAAC;AAEF,eAAO,MAAM,+BAA+B,ozCAgC3C,CAAC"}
@@ -0,0 +1,217 @@
1
+ import { OFFICE_BASE_PROMPT } from './prompts.js';
2
+ export const EXCEL_CREATE_SYSTEM_PROMPT = `${OFFICE_BASE_PROMPT}
3
+
4
+ ## YOUR ROLE: Excel Spreadsheet CREATION Specialist
5
+
6
+ You create NEW Excel spreadsheets using HIGH-LEVEL sheet builder tools.
7
+ Each tool call creates a complete structure — you never deal with individual cell formatting.
8
+
9
+ ## AVAILABLE TOOLS
10
+
11
+ ### Lifecycle
12
+ - \`excel_create\` — Create a blank workbook
13
+ - \`excel_save\` — Save the workbook
14
+ - \`excel_screenshot\` — Take a screenshot for verification
15
+
16
+ ### Sheet Management
17
+ - \`excel_add_sheet\` — Add a new sheet
18
+ - \`excel_rename_sheet\` — Rename a sheet
19
+
20
+ ### Sheet Builders (1 call = 1 complete structure)
21
+ - \`excel_build_data_sheet\` — Title row + styled headers + data rows + number format + autofit
22
+ - \`excel_build_formula_columns\` — Add formula columns to existing data
23
+ - \`excel_build_summary_row\` — Add styled totals/summary row
24
+ - \`excel_build_chart\` — Add a styled chart (MUST include category_range for axis labels)
25
+ - \`excel_build_conditional_format\` — Apply conditional formatting
26
+
27
+ ### Complete
28
+ - \`final_response\` — Return result when all work is done
29
+
30
+ ## WORKFLOW
31
+
32
+ 1. \`excel_create\` → create blank workbook (CALL ONLY ONCE — NEVER call excel_create again!)
33
+ 2. \`excel_build_data_sheet\` → main data sheet with title, headers, data
34
+ 3. \`excel_build_formula_columns\` → calculated columns (growth %, variance, etc.)
35
+ 4. \`excel_build_summary_row\` → totals/averages at bottom
36
+ 5. \`excel_build_conditional_format\` → highlight key values
37
+ 6. \`excel_build_chart\` → visual representation of data
38
+ 7. \`excel_add_sheet\` → add more sheets (repeat steps 2-6 for each sheet)
39
+ 8. \`excel_save\` → save to path (CALL ONLY ONCE at the very end!)
40
+ 9. \`complete\` → report completion
41
+
42
+ ## CRITICAL RULES
43
+ - NEVER call \`excel_create\` more than once! It creates a NEW blank workbook and DESTROYS all previous work.
44
+ - Use \`excel_add_sheet\` to add additional sheets to the same workbook.
45
+ - **MANDATORY: Build EXACTLY 2-3 sheets.** Single-sheet spreadsheets are UNACCEPTABLE.
46
+ - Sheet 1: Detailed data (the main data table with all rows)
47
+ - Sheet 2: Summary/Dashboard (aggregated view — quarterly, category, or KPI)
48
+ - Sheet 3 (optional): Additional analysis or breakdown
49
+ - Place charts BELOW data, never overlapping with data cells.
50
+ - When placing 2 charts side by side: first chart left=20, second chart left=540 (500 width + 40 gap).
51
+ - When stacking charts vertically: same left, second chart top = first chart top + 320.
52
+ - Each sheet MUST have at least 1 chart.
53
+
54
+ ## DESIGN CONSISTENCY
55
+
56
+ - STRONGLY PREFER \`color_scheme\` presets over custom \`colors\` — presets guarantee readability
57
+ - Available presets: MODERN_GREEN, WARM_AMBER, MINIMAL_SLATE, CORPORATE_BLUE, VIBRANT_CORAL, DEEP_PURPLE
58
+ - If you MUST use custom \`colors\`, the \`body\` color MUST be dark (e.g. #333333) — NEVER white or light colors
59
+ - Use the SAME color_scheme and fonts across ALL builders on ALL sheets
60
+
61
+ ## CRITICAL: Number Handling
62
+
63
+ - Write numbers AS NUMBERS, not strings: \`12500\`, not \`"12,500"\`
64
+ - Use \`number_formats\` parameter for display format: \`"#,##0"\`, \`"0.0%"\`
65
+ - Percentages: write as decimal (0.15 for 15%), format as \`"0.0%"\`
66
+ - Currency: write raw number, format as \`"₩#,##0"\` or \`"$#,##0"\`
67
+ - **DATES**: Write as \`"2025-01-15"\` STRING, and set number_format \`"yyyy-mm-dd"\`. Do NOT write date serial numbers.
68
+ - Example: data row \`["2025-01-15", "2025-03-31", 10]\`, number_formats: \`{"A": "yyyy-mm-dd", "B": "yyyy-mm-dd"}\`
69
+
70
+ ## CONTENT QUALITY
71
+
72
+ - ALL labels and titles MUST be in Korean
73
+ - Data must be REALISTIC — use plausible numbers for the topic
74
+ - Include at least one formula column (growth, change, ratio, etc.)
75
+ - Include at least one summary row (SUM, AVERAGE) on EVERY sheet — call \`excel_build_summary_row\` for each
76
+ - Include at least one chart PER SHEET
77
+ - NEVER use placeholder data like "데이터1", "값1"
78
+
79
+ ## MANDATORY: Conditional Formatting
80
+
81
+ You MUST call \`excel_build_conditional_format\` at least TWICE per sheet (2+ rules per sheet).
82
+ Use these EXACT parameter patterns (rule_type + operator, NOT shorthand):
83
+
84
+ Example combo for a sales sheet:
85
+ 1. rule_type: "cellValue", operator: "lessThan", value1: "0", font_color: "#FF0000" (negative values red)
86
+ 2. rule_type: "colorScale" on the main numeric column (gradient visualization)
87
+
88
+ Other options:
89
+ - rule_type: "cellValue", operator: "greaterThan", value1: "1000000", fill_color: "#C6EFCE"
90
+ - rule_type: "dataBar"
91
+
92
+ ⚠️ NEVER use shorthand types like "less_than" or "greater_than" — they will FAIL.
93
+ Do NOT skip this step — a spreadsheet without conditional formatting looks unprofessional.
94
+
95
+ ## RULES
96
+
97
+ 1. ALWAYS call \`excel_create\` first
98
+ 2. ALWAYS save before completing
99
+ 3. Numbers must be written as numbers, not formatted strings
100
+ 4. Use \`excel_build_data_sheet\` for RAW data only — do NOT include formula columns in the data array
101
+ 5. Add formula columns via \`excel_build_formula_columns\` AFTER the data sheet is built
102
+ - Use {row} for current row, {row-1} for previous row
103
+ - ⚠️ NEVER use OFFSET(), INDIRECT(), or INDEX() — they cause #VALUE! errors
104
+ - ONLY use direct cell references with {row} and {row-1} placeholders
105
+ - Wrap in IFERROR for edge cases: "=IFERROR((B{row}-B{row-1})/B{row-1},0)"
106
+ - Growth rate: "=IFERROR((B{row}-B{row-1})/B{row-1},0)" with number_format "0.0%"
107
+ - Running total: "=SUM($B$3:B{row})" with number_format "#,##0"
108
+ - Difference: "=C{row}-D{row}" with number_format "#,##0"
109
+ 6. Chart \`data_range\` must include ALL data rows — if data is in rows 3-14, end at row 14 (not 13!).
110
+ - Include ONLY pure numeric columns — EXCLUDE date columns, text columns, ID columns, label columns.
111
+ - data_range includes HEADER ROW: e.g., "B2:D14" (row 2 = headers, rows 3-14 = data)
112
+ - Date columns (yyyy-mm-dd) become serial numbers in charts — they WILL break the chart scale.
113
+ - Example: columns A(label) B(start_date) C(end_date) D(duration) E(progress) → data_range = "D2:E14", category_range = "A3:A14"
114
+ - For schedule/timeline data: chart the DURATION or COUNT columns, NOT the date columns.
115
+ 7. Chart \`category_range\` is MANDATORY — without it, chart X-axis shows 1,2,3 instead of labels!
116
+ - Must point to the label/category column DATA rows (NO header): e.g., "A3:A14" for month names
117
+ - For pie/doughnut: category_range = slice labels (e.g., "A3:A14" for category names)
118
+ - ALWAYS provide category_range — NEVER omit it
119
+ 8. VERIFY: if data has N rows starting at row 3, the last row is row (3+N-1). data_range MUST end at that row.
120
+ 9. NEVER call low-level Excel tools — only use the builders listed above
121
+ 10. EVERY sheet must have its OWN self-contained data rows — no empty summary sheets
122
+ 11. MINIMUM DATA DENSITY: Each sheet must have at least 8 data rows. excel_save WILL REJECT sheets with fewer rows.
123
+ 12. NO EMPTY ROWS in data: Every row from row 3 to the last data row must have column A filled. Gaps will be rejected.
124
+ 13. Summary row formula must use correct ranges: if data rows are 3-14, use SUM(B3:B14) not SUM(B3:B10).
125
+ `;
126
+ export const EXCEL_CREATE_PLANNING_PROMPT = `You are the Planning LLM for an Excel Spreadsheet Creation Agent.
127
+ Given the user's request and the Enhancement LLM's creative content, create a concrete execution plan.
128
+
129
+ ## OUTPUT FORMAT
130
+
131
+ MODE: CREATE
132
+ DESIGN DECISIONS:
133
+ - COLOR_SCHEME: [preset name or custom hex values]
134
+ - FONTS: [preset name or custom]
135
+
136
+ TOTAL_SHEETS: [number]
137
+
138
+ SHEET_PLAN:
139
+ For each sheet:
140
+
141
+ SHEET: "[sheet_name]"
142
+ 1. [DATA] excel_build_data_sheet — Title: "...", Headers: [...], Rows: N
143
+ 2. [FORMULA] excel_build_formula_columns — Columns: [col: formula description]
144
+ 3. [SUMMARY] excel_build_summary_row — Row N+3: SUM/AVG for columns [...]
145
+ 4. [FORMAT] excel_build_conditional_format — Range: "...", Rule: ...
146
+ 5. [CHART] excel_build_chart — Type: ..., Range: "...", Title: "..."
147
+
148
+ ## CONTENT DENSITY
149
+
150
+ - Data sheet: 8-15 data rows MINIMUM (fewer than 8 will be rejected at save), 5-8 columns
151
+ - Summary sheet: ALSO needs 8+ data rows — aggregate by different dimension (team, quarter, category)
152
+ - Formula columns: 1-3 calculated columns PER SHEET
153
+ - Summary row: SUM and/or AVERAGE for numeric columns
154
+ - Chart: matches the data story (bar for comparison, line for trends, pie for composition)
155
+ - Chart data_range: ONLY numeric columns — NEVER include date or text columns in chart data_range
156
+
157
+ ## CRITICAL: Numbers
158
+
159
+ - Plan data values as RAW NUMBERS: 125000, not "125,000"
160
+ - Plan percentages as DECIMALS: 0.15, not "15%"
161
+ - Specify number_formats separately: {"C": "#,##0", "D": "0.0%"}
162
+
163
+ ## MANDATORY STRUCTURE
164
+
165
+ - TOTAL_SHEETS must be 2 or 3 (NEVER 1)
166
+ - Sheet 1: Detailed data table (main analysis)
167
+ - Sheet 2: Summary/Dashboard (aggregated or KPI view)
168
+ - Each sheet needs: data + formula column + summary row + chart + conditional formatting
169
+
170
+ ## VERIFICATION
171
+
172
+ Before finalizing the plan, check:
173
+ ✅ excel_create called first?
174
+ ✅ TOTAL_SHEETS >= 2? (MANDATORY — single sheet = FAILURE)
175
+ ✅ Data has realistic, specific values?
176
+ ✅ At least 1 formula column PER SHEET?
177
+ ✅ Summary row included on each sheet?
178
+ ✅ At least 1 chart PER SHEET?
179
+ ✅ Conditional formatting on each sheet?
180
+ ✅ Number formats specified?
181
+ ✅ Save path specified?
182
+ ✅ All Korean labels?
183
+ `;
184
+ export const EXCEL_CREATE_ENHANCEMENT_PROMPT = `You are the Enhancement LLM for an Excel Spreadsheet Creation Agent.
185
+ Generate rich, professional data content for the spreadsheet.
186
+
187
+ ## OUTPUT FORMAT
188
+
189
+ DATA_TYPE: [sales/finance/HR/inventory/performance/survey]
190
+ TARGET_AUDIENCE: [executives/team/analysts/general]
191
+ TOTAL_SHEETS: [2-3] (NEVER 1 — minimum 2 sheets mandatory)
192
+
193
+ DESIGN_SPECIFICATION:
194
+ - COLOR_SCHEME: [choose from: MODERN_GREEN, WARM_AMBER, MINIMAL_SLATE, CORPORATE_BLUE, VIBRANT_CORAL, DEEP_PURPLE — or specify custom hex]
195
+ - FONTS: [choose matching preset or custom {title, body}]
196
+
197
+ For each sheet:
198
+ SHEET: "[name]"
199
+ - Title: "..."
200
+ - Headers: ["col1", "col2", ...]
201
+ - Data description: what each row represents, how many rows
202
+ - Sample data: first 2-3 rows as example (use REAL numbers, not placeholders)
203
+ - Formula columns: what calculations to add
204
+ - Summary: what aggregations (SUM, AVERAGE)
205
+ - Chart: type + what it shows
206
+ - Conditional formatting: what to highlight
207
+
208
+ ## RULES
209
+
210
+ - ALL labels, headers, and titles MUST be in Korean
211
+ - Provide REALISTIC data appropriate for the topic
212
+ - Numbers must be raw values (125000, not "125,000")
213
+ - Percentages as decimals (0.15, not "15%")
214
+ - Include at least one meaningful calculation (growth rate, variance, ratio)
215
+ - Think like a professional analyst creating a real spreadsheet
216
+ `;
217
+ //# sourceMappingURL=excel-create-prompts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"excel-create-prompts.js","sourceRoot":"","sources":["../../../src/agents/office/excel-create-prompts.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2H9D,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyD3C,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC9C,CAAC"}
@@ -0,0 +1,10 @@
1
+ export { SubAgent as OfficeSubAgent, type SubAgentConfig as OfficeSubAgentConfig } from '../common/index.js';
2
+ export { COMPLETE_TOOL_DEFINITION } from '../common/index.js';
3
+ export { WORD_SYSTEM_PROMPT, EXCEL_SYSTEM_PROMPT, POWERPOINT_SYSTEM_PROMPT, } from './prompts.js';
4
+ export { createWordCreateRequestTool } from './word-create-agent.js';
5
+ export { createWordModifyRequestTool } from './word-agent.js';
6
+ export { createExcelCreateRequestTool } from './excel-create-agent.js';
7
+ export { createExcelModifyRequestTool } from './excel-agent.js';
8
+ export { createPowerPointCreateRequestTool } from './powerpoint-create-agent.js';
9
+ export { createPowerPointModifyRequestTool } from './powerpoint-agent.js';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agents/office/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,KAAK,cAAc,IAAI,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC7G,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,10 @@
1
+ export { SubAgent as OfficeSubAgent } from '../common/index.js';
2
+ export { COMPLETE_TOOL_DEFINITION } from '../common/index.js';
3
+ export { WORD_SYSTEM_PROMPT, EXCEL_SYSTEM_PROMPT, POWERPOINT_SYSTEM_PROMPT, } from './prompts.js';
4
+ export { createWordCreateRequestTool } from './word-create-agent.js';
5
+ export { createWordModifyRequestTool } from './word-agent.js';
6
+ export { createExcelCreateRequestTool } from './excel-create-agent.js';
7
+ export { createExcelModifyRequestTool } from './excel-agent.js';
8
+ export { createPowerPointCreateRequestTool } from './powerpoint-create-agent.js';
9
+ export { createPowerPointModifyRequestTool } from './powerpoint-agent.js';
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/agents/office/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAA+C,MAAM,oBAAoB,CAAC;AAC7G,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { LLMClient } from '../../core/llm/llm-client.js';
2
+ import { LLMSimpleTool, ToolResult } from '../../tools/types.js';
3
+ export interface OfficeSubAgentConfig {
4
+ maxIterations?: number;
5
+ temperature?: number;
6
+ maxTokens?: number;
7
+ }
8
+ export declare class OfficeSubAgent {
9
+ private llmClient;
10
+ private appName;
11
+ private tools;
12
+ private toolMap;
13
+ private systemPrompt;
14
+ private maxIterations;
15
+ private temperature;
16
+ private maxTokens;
17
+ constructor(llmClient: LLMClient, appName: string, tools: LLMSimpleTool[], systemPrompt: string, config?: OfficeSubAgentConfig);
18
+ run(instruction: string): Promise<ToolResult>;
19
+ private buildResult;
20
+ }
21
+ //# sourceMappingURL=office-sub-agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"office-sub-agent.d.ts","sourceRoot":"","sources":["../../../src/agents/office/office-sub-agent.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIjE,MAAM,WAAW,oBAAoB;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,cAAc;IACzB,OAAO,CAAC,SAAS,CAAY;IAC7B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,KAAK,CAAkB;IAC/B,OAAO,CAAC,OAAO,CAA6B;IAC5C,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,SAAS,CAAS;gBAGxB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,aAAa,EAAE,EACtB,YAAY,EAAE,MAAM,EACpB,MAAM,CAAC,EAAE,oBAAoB;IAqBzB,GAAG,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAyHnD,OAAO,CAAC,WAAW;CAiBpB"}
@@ -0,0 +1,127 @@
1
+ import { COMPLETE_TOOL_DEFINITION } from './complete-tool.js';
2
+ import { logger } from '../../utils/logger.js';
3
+ export class OfficeSubAgent {
4
+ llmClient;
5
+ appName;
6
+ tools;
7
+ toolMap;
8
+ systemPrompt;
9
+ maxIterations;
10
+ temperature;
11
+ maxTokens;
12
+ constructor(llmClient, appName, tools, systemPrompt, config) {
13
+ this.llmClient = llmClient;
14
+ this.appName = appName;
15
+ this.tools = tools;
16
+ this.systemPrompt = systemPrompt;
17
+ this.maxIterations = config?.maxIterations ?? 15;
18
+ this.temperature = config?.temperature ?? 0.3;
19
+ this.maxTokens = config?.maxTokens ?? 4000;
20
+ this.toolMap = new Map();
21
+ for (const tool of tools) {
22
+ this.toolMap.set(tool.definition.function.name, tool);
23
+ }
24
+ }
25
+ async run(instruction) {
26
+ const startTime = Date.now();
27
+ let iterations = 0;
28
+ let totalToolCalls = 0;
29
+ logger.enter(`OfficeSubAgent[${this.appName}].run`);
30
+ logger.info(`Sub-agent starting`, {
31
+ appName: this.appName,
32
+ toolCount: this.tools.length,
33
+ instruction: instruction.slice(0, 100),
34
+ });
35
+ const toolDefinitions = [
36
+ ...this.tools.map((t) => t.definition),
37
+ COMPLETE_TOOL_DEFINITION,
38
+ ];
39
+ const messages = [
40
+ { role: 'system', content: this.systemPrompt },
41
+ { role: 'user', content: instruction },
42
+ ];
43
+ while (iterations < this.maxIterations) {
44
+ iterations++;
45
+ logger.flow(`OfficeSubAgent[${this.appName}] iteration ${iterations}`);
46
+ const response = await this.llmClient.chatCompletion({
47
+ messages,
48
+ tools: toolDefinitions,
49
+ temperature: this.temperature,
50
+ max_tokens: this.maxTokens,
51
+ });
52
+ const assistantMessage = response.choices[0]?.message;
53
+ if (!assistantMessage) {
54
+ return this.buildResult(false, undefined, 'No response from Sub-LLM', iterations, totalToolCalls, startTime);
55
+ }
56
+ messages.push(assistantMessage);
57
+ if (!assistantMessage.tool_calls || assistantMessage.tool_calls.length === 0) {
58
+ const content = assistantMessage.content || '';
59
+ logger.flow(`OfficeSubAgent[${this.appName}] completed with text response`);
60
+ return this.buildResult(true, content, undefined, iterations, totalToolCalls, startTime);
61
+ }
62
+ for (const toolCall of assistantMessage.tool_calls) {
63
+ const toolName = toolCall.function.name;
64
+ let args;
65
+ try {
66
+ args = JSON.parse(toolCall.function.arguments);
67
+ }
68
+ catch {
69
+ messages.push({
70
+ role: 'tool',
71
+ content: 'Error: Invalid JSON in tool arguments.',
72
+ tool_call_id: toolCall.id,
73
+ });
74
+ continue;
75
+ }
76
+ if (toolName === 'complete') {
77
+ const summary = args['summary'] || 'Task completed.';
78
+ logger.flow(`OfficeSubAgent[${this.appName}] completed via complete tool`);
79
+ return this.buildResult(true, summary, undefined, iterations, totalToolCalls, startTime);
80
+ }
81
+ const tool = this.toolMap.get(toolName);
82
+ if (!tool) {
83
+ messages.push({
84
+ role: 'tool',
85
+ content: `Error: Unknown tool "${toolName}". Use only the provided tools.`,
86
+ tool_call_id: toolCall.id,
87
+ });
88
+ continue;
89
+ }
90
+ totalToolCalls++;
91
+ logger.info(`OfficeSubAgent[${this.appName}] executing tool`, { toolName, iteration: iterations });
92
+ try {
93
+ const result = await tool.execute(args);
94
+ const resultText = result.success
95
+ ? result.result || '(success, no output)'
96
+ : `Error: ${result.error || 'Unknown error'}`;
97
+ messages.push({
98
+ role: 'tool',
99
+ content: resultText,
100
+ tool_call_id: toolCall.id,
101
+ });
102
+ }
103
+ catch (error) {
104
+ const errorMsg = error instanceof Error ? error.message : String(error);
105
+ messages.push({
106
+ role: 'tool',
107
+ content: `Error executing ${toolName}: ${errorMsg}`,
108
+ tool_call_id: toolCall.id,
109
+ });
110
+ }
111
+ }
112
+ }
113
+ logger.warn(`OfficeSubAgent[${this.appName}] max iterations reached`, { maxIterations: this.maxIterations });
114
+ return this.buildResult(true, `Sub-agent completed after ${this.maxIterations} iterations. ${totalToolCalls} tool calls executed.`, undefined, iterations, totalToolCalls, startTime);
115
+ }
116
+ buildResult(success, result, error, iterations, toolCalls, startTime) {
117
+ const duration = Date.now() - startTime;
118
+ logger.exit(`OfficeSubAgent[${this.appName}].run`, { success, iterations, toolCalls, duration });
119
+ return {
120
+ success,
121
+ result,
122
+ error,
123
+ metadata: { iterations, toolCalls, duration },
124
+ };
125
+ }
126
+ }
127
+ //# sourceMappingURL=office-sub-agent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"office-sub-agent.js","sourceRoot":"","sources":["../../../src/agents/office/office-sub-agent.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,3 @@
1
+ import { LLMAgentTool } from '../../tools/types.js';
2
+ export declare function createPowerPointModifyRequestTool(): LLMAgentTool;
3
+ //# sourceMappingURL=powerpoint-agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"powerpoint-agent.d.ts","sourceRoot":"","sources":["../../../src/agents/office/powerpoint-agent.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKpD,wBAAgB,iCAAiC,IAAI,YAAY,CAwChE"}
@@ -0,0 +1,37 @@
1
+ import { POWERPOINT_TOOLS } from '../../tools/office/powerpoint-tools.js';
2
+ import { SubAgent } from '../common/sub-agent.js';
3
+ import { POWERPOINT_SYSTEM_PROMPT, POWERPOINT_PLANNING_PROMPT, POWERPOINT_ENHANCEMENT_PROMPT } from './prompts.js';
4
+ export function createPowerPointModifyRequestTool() {
5
+ return {
6
+ definition: {
7
+ type: 'function',
8
+ function: {
9
+ name: 'powerpoint_modify_agent',
10
+ description: 'Autonomous PowerPoint MODIFY agent for editing EXISTING .pptx files. Opens an existing presentation and makes targeted changes: edit text, rearrange slides, modify formatting, add/remove content, update charts, etc. For creating NEW presentations from scratch, use powerpoint_create_agent instead.',
11
+ parameters: {
12
+ type: 'object',
13
+ properties: {
14
+ instruction: {
15
+ type: 'string',
16
+ description: 'Detailed instruction for modifying an existing presentation. Include: file path to open, specific changes needed (text edits, slide modifications, formatting changes), and save path. The agent will open the file, make targeted edits, and save.',
17
+ },
18
+ },
19
+ required: ['instruction'],
20
+ },
21
+ },
22
+ },
23
+ execute: async (args, llmClient) => {
24
+ const agent = new SubAgent(llmClient, 'powerpoint', POWERPOINT_TOOLS, POWERPOINT_SYSTEM_PROMPT, {
25
+ maxIterations: 300,
26
+ planningPrompt: POWERPOINT_PLANNING_PROMPT,
27
+ enhancementPrompt: POWERPOINT_ENHANCEMENT_PROMPT,
28
+ minToolCallsBeforeComplete: 80,
29
+ executionRules: 'CRITICAL RULES:\n1. Build the EXACT layout type assigned in the plan. If the plan says "Layout: B", build two columns — NEVER substitute with Layout A.\n2. Layout A is MAX 3 slides total. After your 3rd Layout A, ALL remaining slides MUST be B/C/D/E/F.\n3. The LAST slide MUST be a CLOSING slide ("감사합니다"/"Thank You"). NEVER end with a content slide.\n4. Before calling powerpoint_save, verify: Is my last slide CLOSING? If not, build it NOW.',
30
+ });
31
+ return agent.run(args['instruction']);
32
+ },
33
+ categories: ['llm-agent'],
34
+ requiresSubLLM: true,
35
+ };
36
+ }
37
+ //# sourceMappingURL=powerpoint-agent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"powerpoint-agent.js","sourceRoot":"","sources":["../../../src/agents/office/powerpoint-agent.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAEnH,MAAM,UAAU,iCAAiC;IAC/C,OAAO;QACL,UAAU,EAAE;YACV,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE;gBACR,IAAI,EAAE,yBAAyB;gBAC/B,WAAW,EACT,2SAA2S;gBAC7S,UAAU,EAAE;oBACV,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,WAAW,EAAE;4BACX,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,qPAAqP;yBACxP;qBACF;oBACD,QAAQ,EAAE,CAAC,aAAa,CAAC;iBAC1B;aACF;SACF;QACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;YACjC,MAAM,KAAK,GAAG,IAAI,QAAQ,CACxB,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB;gBACE,aAAa,EAAE,GAAG;gBAClB,cAAc,EAAE,0BAA0B;gBAC1C,iBAAiB,EAAE,6BAA6B;gBAChD,0BAA0B,EAAE,EAAE;gBAC9B,cAAc,EAAE,4bAA4b;aAC7c,CACF,CAAC;YACF,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,CAAW,CAAC,CAAC;QAClD,CAAC;QACD,UAAU,EAAE,CAAC,WAAW,CAAC;QACzB,cAAc,EAAE,IAAI;KACrB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LLMAgentTool } from '../../tools/types.js';
2
+ export declare function createPowerPointCreateRequestTool(): LLMAgentTool;
3
+ //# sourceMappingURL=powerpoint-create-agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"powerpoint-create-agent.d.ts","sourceRoot":"","sources":["../../../src/agents/office/powerpoint-create-agent.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,YAAY,EAAc,MAAM,sBAAsB,CAAC;AAwyChE,wBAAgB,iCAAiC,IAAI,YAAY,CAkChE"}