hanseol-dev 5.0.2-dev.9 → 5.0.2-dev.91

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 (122) hide show
  1. package/dist/agents/common/sub-agent.d.ts +21 -0
  2. package/dist/agents/common/sub-agent.d.ts.map +1 -1
  3. package/dist/agents/common/sub-agent.js +195 -10
  4. package/dist/agents/common/sub-agent.js.map +1 -1
  5. package/dist/agents/index.d.ts +1 -1
  6. package/dist/agents/index.d.ts.map +1 -1
  7. package/dist/agents/index.js +1 -1
  8. package/dist/agents/index.js.map +1 -1
  9. package/dist/agents/office/excel-agent.d.ts +1 -1
  10. package/dist/agents/office/excel-agent.d.ts.map +1 -1
  11. package/dist/agents/office/excel-agent.js +6 -6
  12. package/dist/agents/office/excel-agent.js.map +1 -1
  13. package/dist/agents/office/excel-create-agent.d.ts +3 -0
  14. package/dist/agents/office/excel-create-agent.d.ts.map +1 -0
  15. package/dist/agents/office/excel-create-agent.js +38 -0
  16. package/dist/agents/office/excel-create-agent.js.map +1 -0
  17. package/dist/agents/office/excel-create-prompts.d.ts +4 -0
  18. package/dist/agents/office/excel-create-prompts.d.ts.map +1 -0
  19. package/dist/agents/office/excel-create-prompts.js +154 -0
  20. package/dist/agents/office/excel-create-prompts.js.map +1 -0
  21. package/dist/agents/office/index.d.ts +6 -3
  22. package/dist/agents/office/index.d.ts.map +1 -1
  23. package/dist/agents/office/index.js +6 -3
  24. package/dist/agents/office/index.js.map +1 -1
  25. package/dist/agents/office/powerpoint-agent.d.ts +1 -1
  26. package/dist/agents/office/powerpoint-agent.d.ts.map +1 -1
  27. package/dist/agents/office/powerpoint-agent.js +6 -6
  28. package/dist/agents/office/powerpoint-agent.js.map +1 -1
  29. package/dist/agents/office/powerpoint-create-agent.d.ts +3 -0
  30. package/dist/agents/office/powerpoint-create-agent.d.ts.map +1 -0
  31. package/dist/agents/office/powerpoint-create-agent.js +1062 -0
  32. package/dist/agents/office/powerpoint-create-agent.js.map +1 -0
  33. package/dist/agents/office/powerpoint-create-prompts.d.ts +19 -0
  34. package/dist/agents/office/powerpoint-create-prompts.d.ts.map +1 -0
  35. package/dist/agents/office/powerpoint-create-prompts.js +389 -0
  36. package/dist/agents/office/powerpoint-create-prompts.js.map +1 -0
  37. package/dist/agents/office/prompts.d.ts +10 -3
  38. package/dist/agents/office/prompts.d.ts.map +1 -1
  39. package/dist/agents/office/prompts.js +451 -52
  40. package/dist/agents/office/prompts.js.map +1 -1
  41. package/dist/agents/office/word-agent.d.ts +1 -1
  42. package/dist/agents/office/word-agent.d.ts.map +1 -1
  43. package/dist/agents/office/word-agent.js +6 -6
  44. package/dist/agents/office/word-agent.js.map +1 -1
  45. package/dist/agents/office/word-create-agent.d.ts +3 -0
  46. package/dist/agents/office/word-create-agent.d.ts.map +1 -0
  47. package/dist/agents/office/word-create-agent.js +38 -0
  48. package/dist/agents/office/word-create-agent.js.map +1 -0
  49. package/dist/agents/office/word-create-prompts.d.ts +4 -0
  50. package/dist/agents/office/word-create-prompts.d.ts.map +1 -0
  51. package/dist/agents/office/word-create-prompts.js +164 -0
  52. package/dist/agents/office/word-create-prompts.js.map +1 -0
  53. package/dist/cli.js +3 -0
  54. package/dist/cli.js.map +1 -1
  55. package/dist/constants.d.ts +1 -1
  56. package/dist/constants.d.ts.map +1 -1
  57. package/dist/constants.js +1 -1
  58. package/dist/constants.js.map +1 -1
  59. package/dist/pipe/pipe-runner.d.ts.map +1 -1
  60. package/dist/pipe/pipe-runner.js +20 -0
  61. package/dist/pipe/pipe-runner.js.map +1 -1
  62. package/dist/prompts/agents/planning.d.ts.map +1 -1
  63. package/dist/prompts/agents/planning.js +43 -18
  64. package/dist/prompts/agents/planning.js.map +1 -1
  65. package/dist/prompts/shared/tool-usage.d.ts.map +1 -1
  66. package/dist/prompts/shared/tool-usage.js +6 -3
  67. package/dist/prompts/shared/tool-usage.js.map +1 -1
  68. package/dist/prompts/system/plan-execute.js +1 -1
  69. package/dist/tools/office/excel-client.js +4 -4
  70. package/dist/tools/office/excel-tools/index.d.ts +2 -0
  71. package/dist/tools/office/excel-tools/index.d.ts.map +1 -1
  72. package/dist/tools/office/excel-tools/index.js +12 -0
  73. package/dist/tools/office/excel-tools/index.js.map +1 -1
  74. package/dist/tools/office/excel-tools/sheet-builders.d.ts +8 -0
  75. package/dist/tools/office/excel-tools/sheet-builders.d.ts.map +1 -0
  76. package/dist/tools/office/excel-tools/sheet-builders.js +414 -0
  77. package/dist/tools/office/excel-tools/sheet-builders.js.map +1 -0
  78. package/dist/tools/office/excel-tools.d.ts +1 -1
  79. package/dist/tools/office/excel-tools.d.ts.map +1 -1
  80. package/dist/tools/office/excel-tools.js +1 -1
  81. package/dist/tools/office/excel-tools.js.map +1 -1
  82. package/dist/tools/office/powerpoint-client.d.ts +3 -0
  83. package/dist/tools/office/powerpoint-client.d.ts.map +1 -1
  84. package/dist/tools/office/powerpoint-client.js +136 -10
  85. package/dist/tools/office/powerpoint-client.js.map +1 -1
  86. package/dist/tools/office/powerpoint-tools/export.d.ts.map +1 -1
  87. package/dist/tools/office/powerpoint-tools/export.js +16 -1
  88. package/dist/tools/office/powerpoint-tools/export.js.map +1 -1
  89. package/dist/tools/office/powerpoint-tools/index.d.ts +2 -0
  90. package/dist/tools/office/powerpoint-tools/index.d.ts.map +1 -1
  91. package/dist/tools/office/powerpoint-tools/index.js +7 -0
  92. package/dist/tools/office/powerpoint-tools/index.js.map +1 -1
  93. package/dist/tools/office/powerpoint-tools/launch.d.ts.map +1 -1
  94. package/dist/tools/office/powerpoint-tools/launch.js +2 -0
  95. package/dist/tools/office/powerpoint-tools/launch.js.map +1 -1
  96. package/dist/tools/office/powerpoint-tools/layout-builders.d.ts +12 -0
  97. package/dist/tools/office/powerpoint-tools/layout-builders.d.ts.map +1 -0
  98. package/dist/tools/office/powerpoint-tools/layout-builders.js +785 -0
  99. package/dist/tools/office/powerpoint-tools/layout-builders.js.map +1 -0
  100. package/dist/tools/office/powerpoint-tools/slides.js +1 -1
  101. package/dist/tools/office/powerpoint-tools/slides.js.map +1 -1
  102. package/dist/tools/office/powerpoint-tools.d.ts +1 -1
  103. package/dist/tools/office/powerpoint-tools.d.ts.map +1 -1
  104. package/dist/tools/office/powerpoint-tools.js +1 -1
  105. package/dist/tools/office/powerpoint-tools.js.map +1 -1
  106. package/dist/tools/office/word-client.js +4 -4
  107. package/dist/tools/office/word-tools/index.d.ts +4 -1
  108. package/dist/tools/office/word-tools/index.d.ts.map +1 -1
  109. package/dist/tools/office/word-tools/index.js +15 -0
  110. package/dist/tools/office/word-tools/index.js.map +1 -1
  111. package/dist/tools/office/word-tools/section-builders.d.ts +10 -0
  112. package/dist/tools/office/word-tools/section-builders.d.ts.map +1 -0
  113. package/dist/tools/office/word-tools/section-builders.js +421 -0
  114. package/dist/tools/office/word-tools/section-builders.js.map +1 -0
  115. package/dist/tools/office/word-tools.d.ts +1 -1
  116. package/dist/tools/office/word-tools.d.ts.map +1 -1
  117. package/dist/tools/office/word-tools.js +1 -1
  118. package/dist/tools/office/word-tools.js.map +1 -1
  119. package/dist/tools/registry.d.ts.map +1 -1
  120. package/dist/tools/registry.js +7 -4
  121. package/dist/tools/registry.js.map +1 -1
  122. package/package.json +1 -1
@@ -0,0 +1,154 @@
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
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
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
38
+ 7. Additional sheets if needed (repeat steps 2-6)
39
+ 8. \`excel_save\` → save to path
40
+ 9. \`final_response\` → report completion
41
+
42
+ ## DESIGN CONSISTENCY
43
+
44
+ - Use the SAME \`color_scheme\` (or \`colors\`) and \`fonts\` across ALL builders
45
+ - The Enhancement LLM specifies the color scheme — use it consistently
46
+ - Available presets: MODERN_GREEN, WARM_AMBER, MINIMAL_SLATE, CORPORATE_BLUE, VIBRANT_CORAL, DEEP_PURPLE
47
+
48
+ ## CRITICAL: Number Handling
49
+
50
+ - Write numbers AS NUMBERS, not strings: \`12500\`, not \`"12,500"\`
51
+ - Use \`number_formats\` parameter for display format: \`"#,##0"\`, \`"0.0%"\`
52
+ - Percentages: write as decimal (0.15 for 15%), format as \`"0.0%"\`
53
+ - Currency: write raw number, format as \`"₩#,##0"\` or \`"$#,##0"\`
54
+
55
+ ## CONTENT QUALITY
56
+
57
+ - ALL labels and titles MUST be in Korean
58
+ - Data must be REALISTIC — use plausible numbers for the topic
59
+ - Include at least one formula column (growth, change, ratio, etc.)
60
+ - Include at least one summary row (SUM, AVERAGE)
61
+ - Include at least one chart
62
+ - NEVER use placeholder data like "데이터1", "값1"
63
+
64
+ ## RULES
65
+
66
+ 1. ALWAYS call \`excel_create\` first
67
+ 2. ALWAYS save before completing
68
+ 3. Numbers must be written as numbers, not formatted strings
69
+ 4. Use \`excel_build_data_sheet\` for the main data — it handles everything
70
+ 5. Add formulas AFTER data sheet is built (need row references)
71
+ 6. Chart data_range must reference actual data range
72
+ 7. NEVER call low-level Excel tools — only use the builders listed above
73
+ `;
74
+ export const EXCEL_CREATE_PLANNING_PROMPT = `You are the Planning LLM for an Excel Spreadsheet Creation Agent.
75
+ Given the user's request and the Enhancement LLM's creative content, create a concrete execution plan.
76
+
77
+ ## OUTPUT FORMAT
78
+
79
+ MODE: CREATE
80
+ DESIGN DECISIONS:
81
+ - COLOR_SCHEME: [preset name or custom hex values]
82
+ - FONTS: [preset name or custom]
83
+
84
+ TOTAL_SHEETS: [number]
85
+
86
+ SHEET_PLAN:
87
+ For each sheet:
88
+
89
+ SHEET: "[sheet_name]"
90
+ 1. [DATA] excel_build_data_sheet — Title: "...", Headers: [...], Rows: N
91
+ 2. [FORMULA] excel_build_formula_columns — Columns: [col: formula description]
92
+ 3. [SUMMARY] excel_build_summary_row — Row N+3: SUM/AVG for columns [...]
93
+ 4. [FORMAT] excel_build_conditional_format — Range: "...", Rule: ...
94
+ 5. [CHART] excel_build_chart — Type: ..., Range: "...", Title: "..."
95
+
96
+ ## CONTENT DENSITY
97
+
98
+ - Data sheet: 5-15 data rows, 4-8 columns
99
+ - Formula columns: 1-3 calculated columns
100
+ - Summary row: SUM and/or AVERAGE for numeric columns
101
+ - Chart: matches the data story (bar for comparison, line for trends, pie for composition)
102
+
103
+ ## CRITICAL: Numbers
104
+
105
+ - Plan data values as RAW NUMBERS: 125000, not "125,000"
106
+ - Plan percentages as DECIMALS: 0.15, not "15%"
107
+ - Specify number_formats separately: {"C": "#,##0", "D": "0.0%"}
108
+
109
+ ## VERIFICATION
110
+
111
+ Before finalizing the plan, check:
112
+ ✅ excel_create called first?
113
+ ✅ Data has realistic, specific values?
114
+ ✅ At least 1 formula column?
115
+ ✅ Summary row included?
116
+ ✅ At least 1 chart?
117
+ ✅ Number formats specified?
118
+ ✅ Save path specified?
119
+ ✅ All Korean labels?
120
+ `;
121
+ export const EXCEL_CREATE_ENHANCEMENT_PROMPT = `You are the Enhancement LLM for an Excel Spreadsheet Creation Agent.
122
+ Generate rich, professional data content for the spreadsheet.
123
+
124
+ ## OUTPUT FORMAT
125
+
126
+ DATA_TYPE: [sales/finance/HR/inventory/performance/survey]
127
+ TARGET_AUDIENCE: [executives/team/analysts/general]
128
+ TOTAL_SHEETS: [1-3]
129
+
130
+ DESIGN_SPECIFICATION:
131
+ - COLOR_SCHEME: [choose from: MODERN_GREEN, WARM_AMBER, MINIMAL_SLATE, CORPORATE_BLUE, VIBRANT_CORAL, DEEP_PURPLE — or specify custom hex]
132
+ - FONTS: [choose matching preset or custom {title, body}]
133
+
134
+ For each sheet:
135
+ SHEET: "[name]"
136
+ - Title: "..."
137
+ - Headers: ["col1", "col2", ...]
138
+ - Data description: what each row represents, how many rows
139
+ - Sample data: first 2-3 rows as example (use REAL numbers, not placeholders)
140
+ - Formula columns: what calculations to add
141
+ - Summary: what aggregations (SUM, AVERAGE)
142
+ - Chart: type + what it shows
143
+ - Conditional formatting: what to highlight
144
+
145
+ ## RULES
146
+
147
+ - ALL labels, headers, and titles MUST be in Korean
148
+ - Provide REALISTIC data appropriate for the topic
149
+ - Numbers must be raw values (125000, not "125,000")
150
+ - Percentages as decimals (0.15, not "15%")
151
+ - Include at least one meaningful calculation (growth rate, variance, ratio)
152
+ - Think like a professional analyst creating a real spreadsheet
153
+ `;
154
+ //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuE9D,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8C3C,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC9C,CAAC"}
@@ -1,7 +1,10 @@
1
1
  export { SubAgent as OfficeSubAgent, type SubAgentConfig as OfficeSubAgentConfig } from '../common/index.js';
2
2
  export { COMPLETE_TOOL_DEFINITION } from '../common/index.js';
3
3
  export { WORD_SYSTEM_PROMPT, EXCEL_SYSTEM_PROMPT, POWERPOINT_SYSTEM_PROMPT, } from './prompts.js';
4
- export { createWordWorkRequestTool } from './word-agent.js';
5
- export { createExcelWorkRequestTool } from './excel-agent.js';
6
- export { createPowerPointWorkRequestTool } from './powerpoint-agent.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';
7
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agents/office/index.ts"],"names":[],"mappings":"AAOA,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;AACtB,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agents/office/index.ts"],"names":[],"mappings":"AAOA,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"}
@@ -1,7 +1,10 @@
1
1
  export { SubAgent as OfficeSubAgent } from '../common/index.js';
2
2
  export { COMPLETE_TOOL_DEFINITION } from '../common/index.js';
3
3
  export { WORD_SYSTEM_PROMPT, EXCEL_SYSTEM_PROMPT, POWERPOINT_SYSTEM_PROMPT, } from './prompts.js';
4
- export { createWordWorkRequestTool } from './word-agent.js';
5
- export { createExcelWorkRequestTool } from './excel-agent.js';
6
- export { createPowerPointWorkRequestTool } from './powerpoint-agent.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';
7
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/agents/office/index.ts"],"names":[],"mappings":"AAOA,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;AACtB,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/agents/office/index.ts"],"names":[],"mappings":"AAOA,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"}
@@ -1,3 +1,3 @@
1
1
  import { LLMAgentTool } from '../../tools/types.js';
2
- export declare function createPowerPointWorkRequestTool(): LLMAgentTool;
2
+ export declare function createPowerPointModifyRequestTool(): LLMAgentTool;
3
3
  //# sourceMappingURL=powerpoint-agent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"powerpoint-agent.d.ts","sourceRoot":"","sources":["../../../src/agents/office/powerpoint-agent.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKpD,wBAAgB,+BAA+B,IAAI,YAAY,CAkC9D"}
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,CAkChE"}
@@ -1,19 +1,19 @@
1
1
  import { POWERPOINT_TOOLS } from '../../tools/office/powerpoint-tools.js';
2
2
  import { SubAgent } from '../common/sub-agent.js';
3
- import { POWERPOINT_SYSTEM_PROMPT } from './prompts.js';
4
- export function createPowerPointWorkRequestTool() {
3
+ import { POWERPOINT_SYSTEM_PROMPT, POWERPOINT_PLANNING_PROMPT, POWERPOINT_ENHANCEMENT_PROMPT } from './prompts.js';
4
+ export function createPowerPointModifyRequestTool() {
5
5
  return {
6
6
  definition: {
7
7
  type: 'function',
8
8
  function: {
9
- name: 'powerpoint_agent',
10
- description: 'Autonomous Microsoft PowerPoint specialist agent. Creates stunning presentations with professional slide designs, color schemes, shapes, text layouts, charts, and visual hierarchy — all automatically. Give it a topic or rough outline and it will produce a polished, enterprise-grade presentation with title slide, content slides (bullets, comparisons, metrics, timelines), and closing slide. Also capable of editing existing .pptx files. The agent runs independently with its own tools and returns the completed result.',
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
11
  parameters: {
12
12
  type: 'object',
13
13
  properties: {
14
14
  instruction: {
15
15
  type: 'string',
16
- description: 'Detailed instruction for the PowerPoint agent. Include: presentation topic/title, desired slides and their content, any specific design preferences, and save path. The more detail you provide, the better the result. The agent will autonomously create a professional presentation.',
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
17
  },
18
18
  },
19
19
  required: ['instruction'],
@@ -21,7 +21,7 @@ export function createPowerPointWorkRequestTool() {
21
21
  },
22
22
  },
23
23
  execute: async (args, llmClient) => {
24
- const agent = new SubAgent(llmClient, 'powerpoint', POWERPOINT_TOOLS, POWERPOINT_SYSTEM_PROMPT, { maxIterations: 150 });
24
+ const agent = new SubAgent(llmClient, 'powerpoint', POWERPOINT_TOOLS, POWERPOINT_SYSTEM_PROMPT, { maxIterations: 200, planningPrompt: POWERPOINT_PLANNING_PROMPT, planningMaxTokens: 2000, enhancementPrompt: POWERPOINT_ENHANCEMENT_PROMPT, enhancementMaxTokens: 800, minToolCallsBeforeComplete: 80 });
25
25
  return agent.run(args['instruction']);
26
26
  },
27
27
  categories: ['llm-agent'],
@@ -1 +1 @@
1
- {"version":3,"file":"powerpoint-agent.js","sourceRoot":"","sources":["../../../src/agents/office/powerpoint-agent.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAExD,MAAM,UAAU,+BAA+B;IAC7C,OAAO;QACL,UAAU,EAAE;YACV,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE;gBACR,IAAI,EAAE,kBAAkB;gBACxB,WAAW,EACT,ygBAAygB;gBAC3gB,UAAU,EAAE;oBACV,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,WAAW,EAAE;4BACX,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,yRAAyR;yBAC5R;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,EAAE,aAAa,EAAE,GAAG,EAAE,CACvB,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"}
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,EAAE,aAAa,EAAE,GAAG,EAAE,cAAc,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,IAAI,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,oBAAoB,EAAE,GAAG,EAAE,0BAA0B,EAAE,EAAE,EAAE,CACzM,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":"AAgBA,OAAO,EAAE,YAAY,EAAc,MAAM,sBAAsB,CAAC;AAstChE,wBAAgB,iCAAiC,IAAI,YAAY,CAkChE"}