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.
- package/dist/agents/common/sub-agent.d.ts +21 -0
- package/dist/agents/common/sub-agent.d.ts.map +1 -1
- package/dist/agents/common/sub-agent.js +195 -10
- package/dist/agents/common/sub-agent.js.map +1 -1
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +1 -1
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/office/excel-agent.d.ts +1 -1
- package/dist/agents/office/excel-agent.d.ts.map +1 -1
- package/dist/agents/office/excel-agent.js +6 -6
- package/dist/agents/office/excel-agent.js.map +1 -1
- package/dist/agents/office/excel-create-agent.d.ts +3 -0
- package/dist/agents/office/excel-create-agent.d.ts.map +1 -0
- package/dist/agents/office/excel-create-agent.js +38 -0
- package/dist/agents/office/excel-create-agent.js.map +1 -0
- package/dist/agents/office/excel-create-prompts.d.ts +4 -0
- package/dist/agents/office/excel-create-prompts.d.ts.map +1 -0
- package/dist/agents/office/excel-create-prompts.js +154 -0
- package/dist/agents/office/excel-create-prompts.js.map +1 -0
- package/dist/agents/office/index.d.ts +6 -3
- package/dist/agents/office/index.d.ts.map +1 -1
- package/dist/agents/office/index.js +6 -3
- package/dist/agents/office/index.js.map +1 -1
- package/dist/agents/office/powerpoint-agent.d.ts +1 -1
- package/dist/agents/office/powerpoint-agent.d.ts.map +1 -1
- package/dist/agents/office/powerpoint-agent.js +6 -6
- package/dist/agents/office/powerpoint-agent.js.map +1 -1
- package/dist/agents/office/powerpoint-create-agent.d.ts +3 -0
- package/dist/agents/office/powerpoint-create-agent.d.ts.map +1 -0
- package/dist/agents/office/powerpoint-create-agent.js +1062 -0
- package/dist/agents/office/powerpoint-create-agent.js.map +1 -0
- package/dist/agents/office/powerpoint-create-prompts.d.ts +19 -0
- package/dist/agents/office/powerpoint-create-prompts.d.ts.map +1 -0
- package/dist/agents/office/powerpoint-create-prompts.js +389 -0
- package/dist/agents/office/powerpoint-create-prompts.js.map +1 -0
- package/dist/agents/office/prompts.d.ts +10 -3
- package/dist/agents/office/prompts.d.ts.map +1 -1
- package/dist/agents/office/prompts.js +451 -52
- package/dist/agents/office/prompts.js.map +1 -1
- package/dist/agents/office/word-agent.d.ts +1 -1
- package/dist/agents/office/word-agent.d.ts.map +1 -1
- package/dist/agents/office/word-agent.js +6 -6
- package/dist/agents/office/word-agent.js.map +1 -1
- package/dist/agents/office/word-create-agent.d.ts +3 -0
- package/dist/agents/office/word-create-agent.d.ts.map +1 -0
- package/dist/agents/office/word-create-agent.js +38 -0
- package/dist/agents/office/word-create-agent.js.map +1 -0
- package/dist/agents/office/word-create-prompts.d.ts +4 -0
- package/dist/agents/office/word-create-prompts.d.ts.map +1 -0
- package/dist/agents/office/word-create-prompts.js +164 -0
- package/dist/agents/office/word-create-prompts.js.map +1 -0
- package/dist/cli.js +3 -0
- package/dist/cli.js.map +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/pipe/pipe-runner.d.ts.map +1 -1
- package/dist/pipe/pipe-runner.js +20 -0
- package/dist/pipe/pipe-runner.js.map +1 -1
- package/dist/prompts/agents/planning.d.ts.map +1 -1
- package/dist/prompts/agents/planning.js +43 -18
- package/dist/prompts/agents/planning.js.map +1 -1
- package/dist/prompts/shared/tool-usage.d.ts.map +1 -1
- package/dist/prompts/shared/tool-usage.js +6 -3
- package/dist/prompts/shared/tool-usage.js.map +1 -1
- package/dist/prompts/system/plan-execute.js +1 -1
- package/dist/tools/office/excel-client.js +4 -4
- package/dist/tools/office/excel-tools/index.d.ts +2 -0
- package/dist/tools/office/excel-tools/index.d.ts.map +1 -1
- package/dist/tools/office/excel-tools/index.js +12 -0
- package/dist/tools/office/excel-tools/index.js.map +1 -1
- package/dist/tools/office/excel-tools/sheet-builders.d.ts +8 -0
- package/dist/tools/office/excel-tools/sheet-builders.d.ts.map +1 -0
- package/dist/tools/office/excel-tools/sheet-builders.js +414 -0
- package/dist/tools/office/excel-tools/sheet-builders.js.map +1 -0
- package/dist/tools/office/excel-tools.d.ts +1 -1
- package/dist/tools/office/excel-tools.d.ts.map +1 -1
- package/dist/tools/office/excel-tools.js +1 -1
- package/dist/tools/office/excel-tools.js.map +1 -1
- package/dist/tools/office/powerpoint-client.d.ts +3 -0
- package/dist/tools/office/powerpoint-client.d.ts.map +1 -1
- package/dist/tools/office/powerpoint-client.js +136 -10
- package/dist/tools/office/powerpoint-client.js.map +1 -1
- package/dist/tools/office/powerpoint-tools/export.d.ts.map +1 -1
- package/dist/tools/office/powerpoint-tools/export.js +16 -1
- package/dist/tools/office/powerpoint-tools/export.js.map +1 -1
- package/dist/tools/office/powerpoint-tools/index.d.ts +2 -0
- package/dist/tools/office/powerpoint-tools/index.d.ts.map +1 -1
- package/dist/tools/office/powerpoint-tools/index.js +7 -0
- package/dist/tools/office/powerpoint-tools/index.js.map +1 -1
- package/dist/tools/office/powerpoint-tools/launch.d.ts.map +1 -1
- package/dist/tools/office/powerpoint-tools/launch.js +2 -0
- package/dist/tools/office/powerpoint-tools/launch.js.map +1 -1
- package/dist/tools/office/powerpoint-tools/layout-builders.d.ts +12 -0
- package/dist/tools/office/powerpoint-tools/layout-builders.d.ts.map +1 -0
- package/dist/tools/office/powerpoint-tools/layout-builders.js +785 -0
- package/dist/tools/office/powerpoint-tools/layout-builders.js.map +1 -0
- package/dist/tools/office/powerpoint-tools/slides.js +1 -1
- package/dist/tools/office/powerpoint-tools/slides.js.map +1 -1
- package/dist/tools/office/powerpoint-tools.d.ts +1 -1
- package/dist/tools/office/powerpoint-tools.d.ts.map +1 -1
- package/dist/tools/office/powerpoint-tools.js +1 -1
- package/dist/tools/office/powerpoint-tools.js.map +1 -1
- package/dist/tools/office/word-client.js +4 -4
- package/dist/tools/office/word-tools/index.d.ts +4 -1
- package/dist/tools/office/word-tools/index.d.ts.map +1 -1
- package/dist/tools/office/word-tools/index.js +15 -0
- package/dist/tools/office/word-tools/index.js.map +1 -1
- package/dist/tools/office/word-tools/section-builders.d.ts +10 -0
- package/dist/tools/office/word-tools/section-builders.d.ts.map +1 -0
- package/dist/tools/office/word-tools/section-builders.js +421 -0
- package/dist/tools/office/word-tools/section-builders.js.map +1 -0
- package/dist/tools/office/word-tools.d.ts +1 -1
- package/dist/tools/office/word-tools.d.ts.map +1 -1
- package/dist/tools/office/word-tools.js +1 -1
- package/dist/tools/office/word-tools.js.map +1 -1
- package/dist/tools/registry.d.ts.map +1 -1
- package/dist/tools/registry.js +7 -4
- package/dist/tools/registry.js.map +1 -1
- package/package.json +1 -1
|
@@ -25,9 +25,12 @@ export const AVAILABLE_TOOLS_WITH_TODO = `
|
|
|
25
25
|
- **once_search**: ONCE — AI-powered personal note/meeting/knowledge search (may take up to 2 min)
|
|
26
26
|
|
|
27
27
|
### Specialist Sub-Agent Tools (autonomous agents that run independently)
|
|
28
|
-
- **
|
|
29
|
-
- **
|
|
30
|
-
- **
|
|
28
|
+
- **word_create_agent**: Autonomous Word CREATION agent — creates NEW documents from scratch with high-level section builders. Provide topic, sections, content, and save path.
|
|
29
|
+
- **word_modify_agent**: Autonomous Word MODIFY agent — edits EXISTING .docx files. Provide file path and specific changes needed.
|
|
30
|
+
- **excel_create_agent**: Autonomous Excel CREATION agent — creates NEW spreadsheets from scratch with high-level sheet builders. Provide data topic, columns, calculations, and save path.
|
|
31
|
+
- **excel_modify_agent**: Autonomous Excel MODIFY agent — edits EXISTING .xlsx files. Provide file path and specific changes needed.
|
|
32
|
+
- **powerpoint_create_agent**: Autonomous PowerPoint CREATION agent — creates NEW presentations from scratch with high-level builder tools. Provide topic, slide outline, content details, and save path.
|
|
33
|
+
- **powerpoint_modify_agent**: Autonomous PowerPoint MODIFY agent — edits EXISTING .pptx files. Provide file path and specific changes needed.
|
|
31
34
|
`.trim();
|
|
32
35
|
export const TOOL_REASON_GUIDE = `
|
|
33
36
|
## CRITICAL - Tool "reason" Parameter
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-usage.js","sourceRoot":"","sources":["../../../src/prompts/shared/tool-usage.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;CAU9B,CAAC,IAAI,EAAE,CAAC;AAKT,MAAM,CAAC,MAAM,yBAAyB,GAAG
|
|
1
|
+
{"version":3,"file":"tool-usage.js","sourceRoot":"","sources":["../../../src/prompts/shared/tool-usage.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;CAU9B,CAAC,IAAI,EAAE,CAAC;AAKT,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsBxC,CAAC,IAAI,EAAE,CAAC;AAKT,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;CAWhC,CAAC,IAAI,EAAE,CAAC;AAKT,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;CAKtC,CAAC,IAAI,EAAE,CAAC;AAKT,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BrC,CAAC,IAAI,EAAE,CAAC;AAET,eAAe;IACb,eAAe;IACf,yBAAyB;IACzB,iBAAiB;IACjB,sBAAsB;IACtB,uBAAuB;CACxB,CAAC"}
|
|
@@ -91,7 +91,7 @@ ${CODEBASE_FIRST_RULE}
|
|
|
91
91
|
|
|
92
92
|
## CRITICAL: Sub-Agent Delegation
|
|
93
93
|
|
|
94
|
-
When delegating to specialist agents (
|
|
94
|
+
When delegating to specialist agents (word_create_agent, word_modify_agent, excel_create_agent, excel_modify_agent, powerpoint_create_agent, powerpoint_modify_agent):
|
|
95
95
|
|
|
96
96
|
**Write DETAILED instructions:**
|
|
97
97
|
- Include the full topic, desired sections, specific data/content, formatting preferences, and save path
|
|
@@ -38,11 +38,11 @@ export class ExcelClient extends OfficeClientBase {
|
|
|
38
38
|
return this.executePowerShell(`
|
|
39
39
|
try {
|
|
40
40
|
$excel = [Runtime.InteropServices.Marshal]::GetActiveObject("Excel.Application")
|
|
41
|
-
$excel.Visible =
|
|
41
|
+
$excel.Visible = -1 # msoTrue
|
|
42
42
|
@{ success = $true; message = "Connected to existing Excel instance" } | ConvertTo-Json -Compress
|
|
43
43
|
} catch {
|
|
44
44
|
$excel = New-Object -ComObject Excel.Application
|
|
45
|
-
$excel.Visible =
|
|
45
|
+
$excel.Visible = -1 # msoTrue
|
|
46
46
|
@{ success = $true; message = "Launched new Excel instance" } | ConvertTo-Json -Compress
|
|
47
47
|
}
|
|
48
48
|
`);
|
|
@@ -55,7 +55,7 @@ try {
|
|
|
55
55
|
$excel = New-Object -ComObject Excel.Application
|
|
56
56
|
}
|
|
57
57
|
$excel.DisplayAlerts = $false
|
|
58
|
-
$excel.Visible =
|
|
58
|
+
$excel.Visible = -1 # msoTrue
|
|
59
59
|
$workbook = $excel.Workbooks.Add()
|
|
60
60
|
$excel.DisplayAlerts = $true
|
|
61
61
|
@{ success = $true; message = "Created new workbook"; workbook_name = $workbook.Name } | ConvertTo-Json -Compress
|
|
@@ -70,7 +70,7 @@ try {
|
|
|
70
70
|
$excel = New-Object -ComObject Excel.Application
|
|
71
71
|
}
|
|
72
72
|
$excel.DisplayAlerts = $false
|
|
73
|
-
$excel.Visible =
|
|
73
|
+
$excel.Visible = -1 # msoTrue
|
|
74
74
|
$workbook = $excel.Workbooks.Open('${windowsPath}')
|
|
75
75
|
$excel.DisplayAlerts = $true
|
|
76
76
|
@{ success = $true; message = "Workbook opened"; workbook_name = $workbook.Name; path = $workbook.FullName } | ConvertTo-Json -Compress
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './sheet-builders.js';
|
|
1
2
|
export * from './launch.js';
|
|
2
3
|
export * from './cells.js';
|
|
3
4
|
export * from './formatting.js';
|
|
@@ -18,4 +19,5 @@ export * from './page-setup.js';
|
|
|
18
19
|
export * from './advanced.js';
|
|
19
20
|
import type { LLMSimpleTool } from '../../types.js';
|
|
20
21
|
export declare const EXCEL_TOOLS: LLMSimpleTool[];
|
|
22
|
+
export declare const EXCEL_CREATE_TOOLS: LLMSimpleTool[];
|
|
21
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tools/office/excel-tools/index.ts"],"names":[],"mappings":"AAMA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tools/office/excel-tools/index.ts"],"names":[],"mappings":"AAMA,cAAc,qBAAqB,CAAC;AAGpC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AA0B9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKpD,eAAO,MAAM,WAAW,EAAE,aAAa,EAmBtC,CAAC;AAMF,eAAO,MAAM,kBAAkB,EAAE,aAAa,EAO7C,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './sheet-builders.js';
|
|
1
2
|
export * from './launch.js';
|
|
2
3
|
export * from './cells.js';
|
|
3
4
|
export * from './formatting.js';
|
|
@@ -34,6 +35,9 @@ import { formulasTools } from './formulas.js';
|
|
|
34
35
|
import { tablesTools } from './tables.js';
|
|
35
36
|
import { pageSetupTools } from './page-setup.js';
|
|
36
37
|
import { advancedTools } from './advanced.js';
|
|
38
|
+
import { sheetBuilderTools } from './sheet-builders.js';
|
|
39
|
+
import { excelCreateTool, excelSaveTool, excelScreenshotTool } from './launch.js';
|
|
40
|
+
import { excelAddSheetTool, excelRenameSheetTool } from './sheets.js';
|
|
37
41
|
export const EXCEL_TOOLS = [
|
|
38
42
|
...launchTools,
|
|
39
43
|
...cellsTools,
|
|
@@ -54,4 +58,12 @@ export const EXCEL_TOOLS = [
|
|
|
54
58
|
...pageSetupTools,
|
|
55
59
|
...advancedTools,
|
|
56
60
|
];
|
|
61
|
+
export const EXCEL_CREATE_TOOLS = [
|
|
62
|
+
excelCreateTool,
|
|
63
|
+
excelSaveTool,
|
|
64
|
+
excelScreenshotTool,
|
|
65
|
+
excelAddSheetTool,
|
|
66
|
+
excelRenameSheetTool,
|
|
67
|
+
...sheetBuilderTools,
|
|
68
|
+
];
|
|
57
69
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/office/excel-tools/index.ts"],"names":[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E,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAOtE,MAAM,CAAC,MAAM,WAAW,GAAoB;IAC1C,GAAG,WAAW;IACd,GAAG,UAAU;IACb,GAAG,eAAe;IAClB,GAAG,WAAW;IACd,GAAG,gBAAgB;IACnB,GAAG,YAAY;IACf,GAAG,WAAW;IACd,GAAG,eAAe;IAClB,GAAG,gBAAgB;IACnB,GAAG,aAAa;IAChB,GAAG,eAAe;IAClB,GAAG,UAAU;IACb,GAAG,WAAW;IACd,GAAG,eAAe;IAClB,GAAG,aAAa;IAChB,GAAG,WAAW;IACd,GAAG,cAAc;IACjB,GAAG,aAAa;CACjB,CAAC;AAMF,MAAM,CAAC,MAAM,kBAAkB,GAAoB;IACjD,eAAe;IACf,aAAa;IACb,mBAAmB;IACnB,iBAAiB;IACjB,oBAAoB;IACpB,GAAG,iBAAiB;CACrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LLMSimpleTool } from '../../types.js';
|
|
2
|
+
export declare const excelBuildDataSheetTool: LLMSimpleTool;
|
|
3
|
+
export declare const excelBuildFormulaColumnsTool: LLMSimpleTool;
|
|
4
|
+
export declare const excelBuildSummaryRowTool: LLMSimpleTool;
|
|
5
|
+
export declare const excelBuildChartTool: LLMSimpleTool;
|
|
6
|
+
export declare const excelBuildConditionalFormatTool: LLMSimpleTool;
|
|
7
|
+
export declare const sheetBuilderTools: LLMSimpleTool[];
|
|
8
|
+
//# sourceMappingURL=sheet-builders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet-builders.d.ts","sourceRoot":"","sources":["../../../../src/tools/office/excel-tools/sheet-builders.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,aAAa,EAAc,MAAM,gBAAgB,CAAC;AA4d3D,eAAO,MAAM,uBAAuB,EAAE,aAKrC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,aAK1C,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,aAKtC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,aAKjC,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,aAK7C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,aAAa,EAM5C,CAAC"}
|
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
import { excelClient } from '../excel-client.js';
|
|
2
|
+
import { OFFICE_CATEGORIES } from '../common/constants.js';
|
|
3
|
+
const COLOR_PRESETS = {
|
|
4
|
+
MODERN_GREEN: { primary: '#0D1B2A', accent: '#1B998B', body: '#333333', light: '#E0F7F5', headerText: '#FFFFFF' },
|
|
5
|
+
WARM_AMBER: { primary: '#2C1810', accent: '#C45B28', body: '#333333', light: '#FFF3EC', headerText: '#FFFFFF' },
|
|
6
|
+
MINIMAL_SLATE: { primary: '#1A1A2E', accent: '#374151', body: '#444444', light: '#F5F5F5', headerText: '#FFFFFF' },
|
|
7
|
+
CORPORATE_BLUE: { primary: '#1B3A5C', accent: '#2E5090', body: '#333333', light: '#EBF0F7', headerText: '#FFFFFF' },
|
|
8
|
+
VIBRANT_CORAL: { primary: '#1A1A2E', accent: '#E63946', body: '#333333', light: '#FFF0F0', headerText: '#FFFFFF' },
|
|
9
|
+
DEEP_PURPLE: { primary: '#1A1A2E', accent: '#6C3483', body: '#333333', light: '#F3E8FF', headerText: '#FFFFFF' },
|
|
10
|
+
};
|
|
11
|
+
const FONT_PRESETS = {
|
|
12
|
+
MODERN_GREEN: { title: 'Segoe UI', body: '맑은 고딕' },
|
|
13
|
+
WARM_AMBER: { title: 'Georgia', body: '맑은 고딕' },
|
|
14
|
+
MINIMAL_SLATE: { title: '맑은 고딕', body: '돋움' },
|
|
15
|
+
CORPORATE_BLUE: { title: 'Calibri', body: '맑은 고딕' },
|
|
16
|
+
VIBRANT_CORAL: { title: 'Arial', body: '맑은 고딕' },
|
|
17
|
+
DEEP_PURPLE: { title: 'Segoe UI', body: '맑은 고딕' },
|
|
18
|
+
};
|
|
19
|
+
const DEFAULT_FONTS = { title: 'Segoe UI', body: '맑은 고딕' };
|
|
20
|
+
function resolveColors(args) {
|
|
21
|
+
if (args['colors'] && typeof args['colors'] === 'object') {
|
|
22
|
+
const c = args['colors'];
|
|
23
|
+
return {
|
|
24
|
+
primary: c['primary'] || '#1A1A2E',
|
|
25
|
+
accent: c['accent'] || '#1B998B',
|
|
26
|
+
body: c['body'] || '#333333',
|
|
27
|
+
light: c['light'] || '#F5F5F5',
|
|
28
|
+
headerText: c['headerText'] || '#FFFFFF',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const scheme = args['color_scheme'] || 'MODERN_GREEN';
|
|
32
|
+
return COLOR_PRESETS[scheme] ?? COLOR_PRESETS['MODERN_GREEN'];
|
|
33
|
+
}
|
|
34
|
+
function resolveFonts(args) {
|
|
35
|
+
if (args['fonts'] && typeof args['fonts'] === 'object') {
|
|
36
|
+
const f = args['fonts'];
|
|
37
|
+
return { title: f['title'] || 'Segoe UI', body: f['body'] || '맑은 고딕' };
|
|
38
|
+
}
|
|
39
|
+
if (typeof args['fonts'] === 'string') {
|
|
40
|
+
return FONT_PRESETS[args['fonts']] ?? DEFAULT_FONTS;
|
|
41
|
+
}
|
|
42
|
+
const scheme = args['color_scheme'] || 'MODERN_GREEN';
|
|
43
|
+
return FONT_PRESETS[scheme] ?? DEFAULT_FONTS;
|
|
44
|
+
}
|
|
45
|
+
function colLetter(index) {
|
|
46
|
+
let letter = '';
|
|
47
|
+
let n = index;
|
|
48
|
+
while (n >= 0) {
|
|
49
|
+
letter = String.fromCharCode((n % 26) + 65) + letter;
|
|
50
|
+
n = Math.floor(n / 26) - 1;
|
|
51
|
+
}
|
|
52
|
+
return letter;
|
|
53
|
+
}
|
|
54
|
+
const COLOR_FONT_PARAMS = {
|
|
55
|
+
color_scheme: { type: 'string', description: 'Preset: MODERN_GREEN, WARM_AMBER, MINIMAL_SLATE, CORPORATE_BLUE, VIBRANT_CORAL, DEEP_PURPLE' },
|
|
56
|
+
colors: { type: 'object', properties: { primary: { type: 'string' }, accent: { type: 'string' }, body: { type: 'string' }, light: { type: 'string' }, headerText: { type: 'string' } } },
|
|
57
|
+
fonts: { type: 'object', properties: { title: { type: 'string' }, body: { type: 'string' } } },
|
|
58
|
+
};
|
|
59
|
+
const EXCEL_BUILD_DATA_SHEET_DEF = {
|
|
60
|
+
type: 'function',
|
|
61
|
+
function: {
|
|
62
|
+
name: 'excel_build_data_sheet',
|
|
63
|
+
description: 'Build a complete data sheet with title row, styled headers, data rows, number formatting, and autofit. One call = one finished data sheet.',
|
|
64
|
+
parameters: {
|
|
65
|
+
type: 'object',
|
|
66
|
+
properties: {
|
|
67
|
+
sheet_name: { type: 'string', description: 'Sheet name (will rename the active sheet)' },
|
|
68
|
+
title: { type: 'string', description: 'Title text for the merged title row' },
|
|
69
|
+
headers: { type: 'array', items: { type: 'string' }, description: 'Column header names' },
|
|
70
|
+
data: {
|
|
71
|
+
type: 'array',
|
|
72
|
+
description: '2D array of data rows. Each row is an array of cell values.',
|
|
73
|
+
items: { type: 'array', items: { type: 'string' } },
|
|
74
|
+
},
|
|
75
|
+
number_formats: {
|
|
76
|
+
type: 'object',
|
|
77
|
+
description: 'Column-letter to format mapping, e.g., {"C": "#,##0", "D": "0.0%"}',
|
|
78
|
+
},
|
|
79
|
+
column_widths: {
|
|
80
|
+
type: 'object',
|
|
81
|
+
description: 'Column-letter to width mapping, e.g., {"A": 15, "B": 30}. Omitted columns get autofit.',
|
|
82
|
+
},
|
|
83
|
+
...COLOR_FONT_PARAMS,
|
|
84
|
+
},
|
|
85
|
+
required: ['sheet_name', 'title', 'headers', 'data'],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
async function executeBuildDataSheet(args) {
|
|
90
|
+
try {
|
|
91
|
+
const colors = resolveColors(args);
|
|
92
|
+
const fonts = resolveFonts(args);
|
|
93
|
+
const sheetName = args['sheet_name'] || 'Sheet1';
|
|
94
|
+
const title = args['title'] || '';
|
|
95
|
+
const headers = args['headers'] || [];
|
|
96
|
+
const data = args['data'] || [];
|
|
97
|
+
const numberFormats = args['number_formats'] || {};
|
|
98
|
+
const columnWidths = args['column_widths'] || {};
|
|
99
|
+
if (headers.length === 0) {
|
|
100
|
+
return { success: false, error: 'Headers array cannot be empty' };
|
|
101
|
+
}
|
|
102
|
+
const colCount = headers.length;
|
|
103
|
+
const lastCol = colLetter(colCount - 1);
|
|
104
|
+
try {
|
|
105
|
+
await excelClient.excelRenameSheet('Sheet1', sheetName);
|
|
106
|
+
}
|
|
107
|
+
catch {
|
|
108
|
+
}
|
|
109
|
+
await excelClient.excelWriteCell('A1', title, sheetName, { fontName: fonts.title, fontSize: 16, bold: true });
|
|
110
|
+
if (colCount > 1) {
|
|
111
|
+
await excelClient.excelMergeCells(`A1:${lastCol}1`, sheetName);
|
|
112
|
+
}
|
|
113
|
+
await excelClient.excelSetFill(`A1:${lastCol}1`, colors.primary, sheetName);
|
|
114
|
+
await excelClient.excelSetFont(`A1:${lastCol}1`, { color: '#FFFFFF', bold: true, fontSize: 16 }, sheetName);
|
|
115
|
+
await excelClient.excelSetAlignment('A1', { horizontal: 'center', vertical: 'center' }, sheetName);
|
|
116
|
+
await excelClient.excelSetRowHeight(1, 40, false, sheetName);
|
|
117
|
+
const headerRow = headers.map(h => h);
|
|
118
|
+
await excelClient.excelWriteRange('A2', [headerRow], sheetName);
|
|
119
|
+
await excelClient.excelSetFill(`A2:${lastCol}2`, colors.accent, sheetName);
|
|
120
|
+
await excelClient.excelSetFont(`A2:${lastCol}2`, { color: colors.headerText, bold: true, fontSize: 11, fontName: fonts.body }, sheetName);
|
|
121
|
+
await excelClient.excelSetAlignment(`A2:${lastCol}2`, { horizontal: 'center', vertical: 'center' }, sheetName);
|
|
122
|
+
await excelClient.excelSetRowHeight(2, 30, false, sheetName);
|
|
123
|
+
await excelClient.excelSetBorder(`A2:${lastCol}2`, { style: 'thin', color: '#FFFFFF' }, sheetName);
|
|
124
|
+
if (data.length > 0) {
|
|
125
|
+
await excelClient.excelWriteRange('A3', data, sheetName);
|
|
126
|
+
const lastRow = 2 + data.length;
|
|
127
|
+
const dataRange = `A3:${lastCol}${lastRow}`;
|
|
128
|
+
await excelClient.excelSetFont(dataRange, { fontName: fonts.body, fontSize: 10, color: colors.body }, sheetName);
|
|
129
|
+
for (let i = 0; i < data.length; i++) {
|
|
130
|
+
const row = 3 + i;
|
|
131
|
+
if (i % 2 === 1) {
|
|
132
|
+
await excelClient.excelSetFill(`A${row}:${lastCol}${row}`, colors.light, sheetName);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
await excelClient.excelSetBorder(dataRange, { style: 'thin', color: '#D0D0D0' }, sheetName);
|
|
136
|
+
for (const [col, format] of Object.entries(numberFormats)) {
|
|
137
|
+
const range = `${col}3:${col}${lastRow}`;
|
|
138
|
+
await excelClient.excelSetNumberFormat(range, format, sheetName);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
for (let i = 0; i < colCount; i++) {
|
|
142
|
+
const col = colLetter(i);
|
|
143
|
+
if (columnWidths[col]) {
|
|
144
|
+
await excelClient.excelSetColumnWidth(col, columnWidths[col], false, sheetName);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
await excelClient.excelSetColumnWidth(col, undefined, true, sheetName);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return { success: true, result: `Data sheet "${sheetName}" built (${headers.length} cols, ${data.length} rows)` };
|
|
151
|
+
}
|
|
152
|
+
catch (error) {
|
|
153
|
+
return { success: false, error: `Failed to build data sheet: ${error instanceof Error ? error.message : String(error)}` };
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
const EXCEL_BUILD_FORMULA_COLUMNS_DEF = {
|
|
157
|
+
type: 'function',
|
|
158
|
+
function: {
|
|
159
|
+
name: 'excel_build_formula_columns',
|
|
160
|
+
description: 'Add formula columns to an existing data sheet. Each formula specifies the column, header, and formula template using {row} placeholder.',
|
|
161
|
+
parameters: {
|
|
162
|
+
type: 'object',
|
|
163
|
+
properties: {
|
|
164
|
+
sheet_name: { type: 'string', description: 'Target sheet name' },
|
|
165
|
+
header_row: { type: 'number', description: 'Row number of headers (default: 2)' },
|
|
166
|
+
data_start_row: { type: 'number', description: 'First data row (default: 3)' },
|
|
167
|
+
data_end_row: { type: 'number', description: 'Last data row' },
|
|
168
|
+
formulas: {
|
|
169
|
+
type: 'array',
|
|
170
|
+
description: 'Formula definitions. Use {row} as row placeholder in formula_template.',
|
|
171
|
+
items: {
|
|
172
|
+
type: 'object',
|
|
173
|
+
properties: {
|
|
174
|
+
column: { type: 'string', description: 'Target column letter (e.g., "F")' },
|
|
175
|
+
header: { type: 'string', description: 'Column header text' },
|
|
176
|
+
formula_template: { type: 'string', description: 'Excel formula with {row} placeholder, e.g., "=C{row}-D{row}" or "=C{row}/B{row}*100"' },
|
|
177
|
+
number_format: { type: 'string', description: 'Number format for the column, e.g., "#,##0", "0.0%"' },
|
|
178
|
+
},
|
|
179
|
+
required: ['column', 'header', 'formula_template'],
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
...COLOR_FONT_PARAMS,
|
|
183
|
+
},
|
|
184
|
+
required: ['sheet_name', 'data_end_row', 'formulas'],
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
};
|
|
188
|
+
async function executeBuildFormulaColumns(args) {
|
|
189
|
+
try {
|
|
190
|
+
const colors = resolveColors(args);
|
|
191
|
+
const fonts = resolveFonts(args);
|
|
192
|
+
const sheetName = args['sheet_name'] || 'Sheet1';
|
|
193
|
+
const headerRow = args['header_row'] || 2;
|
|
194
|
+
const dataStartRow = args['data_start_row'] || 3;
|
|
195
|
+
const dataEndRow = args['data_end_row'] || 10;
|
|
196
|
+
const formulas = args['formulas'] || [];
|
|
197
|
+
for (const f of formulas) {
|
|
198
|
+
const col = f['column'] || 'F';
|
|
199
|
+
const header = f['header'] || '';
|
|
200
|
+
const template = f['formula_template'] || '';
|
|
201
|
+
const numFormat = f['number_format'] || '';
|
|
202
|
+
await excelClient.excelWriteCell(`${col}${headerRow}`, header, sheetName, { fontName: fonts.body, bold: true });
|
|
203
|
+
await excelClient.excelSetFill(`${col}${headerRow}`, colors.accent, sheetName);
|
|
204
|
+
await excelClient.excelSetFont(`${col}${headerRow}`, { color: colors.headerText, bold: true }, sheetName);
|
|
205
|
+
for (let row = dataStartRow; row <= dataEndRow; row++) {
|
|
206
|
+
const formula = template.replace(/\{row\}/g, String(row));
|
|
207
|
+
await excelClient.excelSetFormula(`${col}${row}`, formula, sheetName);
|
|
208
|
+
}
|
|
209
|
+
if (numFormat) {
|
|
210
|
+
await excelClient.excelSetNumberFormat(`${col}${dataStartRow}:${col}${dataEndRow}`, numFormat, sheetName);
|
|
211
|
+
}
|
|
212
|
+
await excelClient.excelSetColumnWidth(col, undefined, true, sheetName);
|
|
213
|
+
}
|
|
214
|
+
return { success: true, result: `${formulas.length} formula column(s) added to "${sheetName}"` };
|
|
215
|
+
}
|
|
216
|
+
catch (error) {
|
|
217
|
+
return { success: false, error: `Failed to add formula columns: ${error instanceof Error ? error.message : String(error)}` };
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
const EXCEL_BUILD_SUMMARY_ROW_DEF = {
|
|
221
|
+
type: 'function',
|
|
222
|
+
function: {
|
|
223
|
+
name: 'excel_build_summary_row',
|
|
224
|
+
description: 'Add a styled summary/total row at the bottom of data. Automatically applies SUM, AVERAGE, or other formulas.',
|
|
225
|
+
parameters: {
|
|
226
|
+
type: 'object',
|
|
227
|
+
properties: {
|
|
228
|
+
sheet_name: { type: 'string', description: 'Target sheet name' },
|
|
229
|
+
label: { type: 'string', description: 'Label text (e.g., "합계", "Total")' },
|
|
230
|
+
label_column: { type: 'string', description: 'Column for the label (default: "A")' },
|
|
231
|
+
target_row: { type: 'number', description: 'Row number for summary' },
|
|
232
|
+
formulas: {
|
|
233
|
+
type: 'array',
|
|
234
|
+
description: 'Summary formulas for specific columns',
|
|
235
|
+
items: {
|
|
236
|
+
type: 'object',
|
|
237
|
+
properties: {
|
|
238
|
+
column: { type: 'string', description: 'Column letter' },
|
|
239
|
+
formula: { type: 'string', description: 'Full formula, e.g., "=SUM(C3:C12)"' },
|
|
240
|
+
number_format: { type: 'string', description: 'Number format' },
|
|
241
|
+
},
|
|
242
|
+
required: ['column', 'formula'],
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
last_data_column: { type: 'string', description: 'Last column letter for styling range' },
|
|
246
|
+
...COLOR_FONT_PARAMS,
|
|
247
|
+
},
|
|
248
|
+
required: ['sheet_name', 'label', 'target_row', 'formulas'],
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
};
|
|
252
|
+
async function executeBuildSummaryRow(args) {
|
|
253
|
+
try {
|
|
254
|
+
const colors = resolveColors(args);
|
|
255
|
+
const fonts = resolveFonts(args);
|
|
256
|
+
const sheetName = args['sheet_name'] || 'Sheet1';
|
|
257
|
+
const label = args['label'] || '합계';
|
|
258
|
+
const labelCol = args['label_column'] || 'A';
|
|
259
|
+
const targetRow = args['target_row'] || 10;
|
|
260
|
+
const formulas = args['formulas'] || [];
|
|
261
|
+
const lastCol = args['last_data_column'] || 'F';
|
|
262
|
+
await excelClient.excelWriteCell(`${labelCol}${targetRow}`, label, sheetName, {
|
|
263
|
+
fontName: fonts.title, fontSize: 11, bold: true,
|
|
264
|
+
});
|
|
265
|
+
for (const f of formulas) {
|
|
266
|
+
const col = f['column'] || 'B';
|
|
267
|
+
const formula = f['formula'] || '';
|
|
268
|
+
const numFormat = f['number_format'] || '';
|
|
269
|
+
await excelClient.excelSetFormula(`${col}${targetRow}`, formula, sheetName);
|
|
270
|
+
if (numFormat) {
|
|
271
|
+
await excelClient.excelSetNumberFormat(`${col}${targetRow}`, numFormat, sheetName);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
const range = `${labelCol}${targetRow}:${lastCol}${targetRow}`;
|
|
275
|
+
await excelClient.excelSetFill(range, colors.primary, sheetName);
|
|
276
|
+
await excelClient.excelSetFont(range, { color: '#FFFFFF', bold: true, fontSize: 11, fontName: fonts.body }, sheetName);
|
|
277
|
+
await excelClient.excelSetBorder(range, { style: 'thin', color: colors.primary }, sheetName);
|
|
278
|
+
await excelClient.excelSetRowHeight(targetRow, 30, false, sheetName);
|
|
279
|
+
return { success: true, result: `Summary row added at row ${targetRow} in "${sheetName}"` };
|
|
280
|
+
}
|
|
281
|
+
catch (error) {
|
|
282
|
+
return { success: false, error: `Failed to add summary row: ${error instanceof Error ? error.message : String(error)}` };
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
const EXCEL_BUILD_CHART_DEF = {
|
|
286
|
+
type: 'function',
|
|
287
|
+
function: {
|
|
288
|
+
name: 'excel_build_chart',
|
|
289
|
+
description: 'Add a styled chart to the sheet. Supports column, bar, line, pie, area, scatter, doughnut types.',
|
|
290
|
+
parameters: {
|
|
291
|
+
type: 'object',
|
|
292
|
+
properties: {
|
|
293
|
+
sheet_name: { type: 'string', description: 'Target sheet name' },
|
|
294
|
+
chart_type: { type: 'string', enum: ['column', 'bar', 'line', 'pie', 'area', 'scatter', 'doughnut'], description: 'Chart type' },
|
|
295
|
+
data_range: { type: 'string', description: 'Data range including headers, e.g., "A2:D12"' },
|
|
296
|
+
title: { type: 'string', description: 'Chart title' },
|
|
297
|
+
position: {
|
|
298
|
+
type: 'object',
|
|
299
|
+
description: 'Chart position and size',
|
|
300
|
+
properties: {
|
|
301
|
+
left: { type: 'number', description: 'Left position in points' },
|
|
302
|
+
top: { type: 'number', description: 'Top position in points' },
|
|
303
|
+
width: { type: 'number', description: 'Width in points (default: 500)' },
|
|
304
|
+
height: { type: 'number', description: 'Height in points (default: 300)' },
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
required: ['sheet_name', 'chart_type', 'data_range', 'title'],
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
};
|
|
312
|
+
async function executeBuildChart(args) {
|
|
313
|
+
try {
|
|
314
|
+
const sheetName = args['sheet_name'] || 'Sheet1';
|
|
315
|
+
const chartType = args['chart_type'] || 'column';
|
|
316
|
+
const dataRange = args['data_range'] || 'A2:D12';
|
|
317
|
+
const title = args['title'] || '';
|
|
318
|
+
const pos = args['position'] || {};
|
|
319
|
+
await excelClient.excelAddChart(dataRange, chartType, {
|
|
320
|
+
title,
|
|
321
|
+
left: pos['left'] || 20,
|
|
322
|
+
top: pos['top'] || 300,
|
|
323
|
+
width: pos['width'] || 500,
|
|
324
|
+
height: pos['height'] || 300,
|
|
325
|
+
sheet: sheetName,
|
|
326
|
+
});
|
|
327
|
+
return { success: true, result: `Chart "${title}" (${chartType}) added to "${sheetName}"` };
|
|
328
|
+
}
|
|
329
|
+
catch (error) {
|
|
330
|
+
return { success: false, error: `Failed to add chart: ${error instanceof Error ? error.message : String(error)}` };
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
const EXCEL_BUILD_CONDITIONAL_FORMAT_DEF = {
|
|
334
|
+
type: 'function',
|
|
335
|
+
function: {
|
|
336
|
+
name: 'excel_build_conditional_format',
|
|
337
|
+
description: 'Apply conditional formatting to a range. Supports cell value rules, color scales, data bars, icon sets, duplicate highlighting, and top/bottom 10.',
|
|
338
|
+
parameters: {
|
|
339
|
+
type: 'object',
|
|
340
|
+
properties: {
|
|
341
|
+
sheet_name: { type: 'string', description: 'Target sheet name' },
|
|
342
|
+
range: { type: 'string', description: 'Cell range, e.g., "C3:C12"' },
|
|
343
|
+
rule_type: {
|
|
344
|
+
type: 'string',
|
|
345
|
+
enum: ['cellValue', 'colorScale', 'dataBar', 'iconSet', 'duplicates', 'top10'],
|
|
346
|
+
description: 'Formatting rule type',
|
|
347
|
+
},
|
|
348
|
+
operator: { type: 'string', description: 'For cellValue: greaterThan, lessThan, between, equal, etc.' },
|
|
349
|
+
value1: { type: 'string', description: 'Primary comparison value' },
|
|
350
|
+
value2: { type: 'string', description: 'Secondary value (for "between")' },
|
|
351
|
+
fill_color: { type: 'string', description: 'Fill color hex for matching cells' },
|
|
352
|
+
font_color: { type: 'string', description: 'Font color hex for matching cells' },
|
|
353
|
+
},
|
|
354
|
+
required: ['sheet_name', 'range', 'rule_type'],
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
};
|
|
358
|
+
async function executeBuildConditionalFormat(args) {
|
|
359
|
+
try {
|
|
360
|
+
const sheetName = args['sheet_name'] || 'Sheet1';
|
|
361
|
+
const range = args['range'] || 'A1';
|
|
362
|
+
const ruleType = args['rule_type'] || 'colorScale';
|
|
363
|
+
await excelClient.excelAddConditionalFormat(range, ruleType, {
|
|
364
|
+
operator: args['operator'],
|
|
365
|
+
value1: args['value1'],
|
|
366
|
+
value2: args['value2'],
|
|
367
|
+
fillColor: args['fill_color'],
|
|
368
|
+
fontColor: args['font_color'],
|
|
369
|
+
sheet: sheetName,
|
|
370
|
+
});
|
|
371
|
+
return { success: true, result: `Conditional format (${ruleType}) applied to ${range} in "${sheetName}"` };
|
|
372
|
+
}
|
|
373
|
+
catch (error) {
|
|
374
|
+
return { success: false, error: `Failed to apply conditional format: ${error instanceof Error ? error.message : String(error)}` };
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
export const excelBuildDataSheetTool = {
|
|
378
|
+
definition: EXCEL_BUILD_DATA_SHEET_DEF,
|
|
379
|
+
execute: executeBuildDataSheet,
|
|
380
|
+
categories: OFFICE_CATEGORIES,
|
|
381
|
+
description: 'Build complete data sheet',
|
|
382
|
+
};
|
|
383
|
+
export const excelBuildFormulaColumnsTool = {
|
|
384
|
+
definition: EXCEL_BUILD_FORMULA_COLUMNS_DEF,
|
|
385
|
+
execute: executeBuildFormulaColumns,
|
|
386
|
+
categories: OFFICE_CATEGORIES,
|
|
387
|
+
description: 'Add formula columns',
|
|
388
|
+
};
|
|
389
|
+
export const excelBuildSummaryRowTool = {
|
|
390
|
+
definition: EXCEL_BUILD_SUMMARY_ROW_DEF,
|
|
391
|
+
execute: executeBuildSummaryRow,
|
|
392
|
+
categories: OFFICE_CATEGORIES,
|
|
393
|
+
description: 'Add summary/total row',
|
|
394
|
+
};
|
|
395
|
+
export const excelBuildChartTool = {
|
|
396
|
+
definition: EXCEL_BUILD_CHART_DEF,
|
|
397
|
+
execute: executeBuildChart,
|
|
398
|
+
categories: OFFICE_CATEGORIES,
|
|
399
|
+
description: 'Add styled chart',
|
|
400
|
+
};
|
|
401
|
+
export const excelBuildConditionalFormatTool = {
|
|
402
|
+
definition: EXCEL_BUILD_CONDITIONAL_FORMAT_DEF,
|
|
403
|
+
execute: executeBuildConditionalFormat,
|
|
404
|
+
categories: OFFICE_CATEGORIES,
|
|
405
|
+
description: 'Apply conditional formatting',
|
|
406
|
+
};
|
|
407
|
+
export const sheetBuilderTools = [
|
|
408
|
+
excelBuildDataSheetTool,
|
|
409
|
+
excelBuildFormulaColumnsTool,
|
|
410
|
+
excelBuildSummaryRowTool,
|
|
411
|
+
excelBuildChartTool,
|
|
412
|
+
excelBuildConditionalFormatTool,
|
|
413
|
+
];
|
|
414
|
+
//# sourceMappingURL=sheet-builders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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AChC,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAkB;IAC5D,UAAU,EAAE,kCAAkC;IAC9C,OAAO,EAAE,6BAA6B;IACtC,UAAU,EAAE,iBAAiB;IAC7B,WAAW,EAAE,8BAA8B;CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAoB;IAChD,uBAAuB;IACvB,4BAA4B;IAC5B,wBAAwB;IACxB,mBAAmB;IACnB,+BAA+B;CAChC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"excel-tools.d.ts","sourceRoot":"","sources":["../../../src/tools/office/excel-tools.ts"],"names":[],"mappings":"AAOA,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"excel-tools.d.ts","sourceRoot":"","sources":["../../../src/tools/office/excel-tools.ts"],"names":[],"mappings":"AAOA,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"excel-tools.js","sourceRoot":"","sources":["../../../src/tools/office/excel-tools.ts"],"names":[],"mappings":"AAOA,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"excel-tools.js","sourceRoot":"","sources":["../../../src/tools/office/excel-tools.ts"],"names":[],"mappings":"AAOA,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -38,6 +38,7 @@ export declare class PowerPointClient extends OfficeClientBase {
|
|
|
38
38
|
color?: string;
|
|
39
39
|
imagePath?: string;
|
|
40
40
|
}): Promise<OfficeResponse>;
|
|
41
|
+
powerpointAddFullSlideImage(slideNumber: number, imagePath: string): Promise<OfficeResponse>;
|
|
41
42
|
powerpointGetSlideCount(): Promise<OfficeResponse>;
|
|
42
43
|
powerpointSave(filePath?: string): Promise<OfficeResponse>;
|
|
43
44
|
powerpointExportToPDF(outputPath: string): Promise<OfficeResponse>;
|
|
@@ -159,6 +160,8 @@ export declare class PowerPointClient extends OfficeClientBase {
|
|
|
159
160
|
start?: number;
|
|
160
161
|
end?: number;
|
|
161
162
|
}, insertPosition?: number): Promise<OfficeResponse>;
|
|
163
|
+
renderHtmlToImage(htmlWindowsPath: string, imageWindowsPath: string): Promise<OfficeResponse>;
|
|
164
|
+
measureHtmlHeight(htmlWindowsPath: string): Promise<number>;
|
|
162
165
|
}
|
|
163
166
|
export declare const powerpointClient: PowerPointClient;
|
|
164
167
|
export type { OfficeResponse, ScreenshotResponse };
|