mulmocast-vision 0.0.9 → 0.1.1

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 (175) hide show
  1. package/lib/commons.d.ts +1 -5
  2. package/lib/mcp/core.js +12 -16
  3. package/lib/mcp_tools.d.ts +2 -35
  4. package/lib/presentationHandlers/html.d.ts +1 -80
  5. package/lib/presentationHandlers/html.js +7 -321
  6. package/lib/presentationHandlers/html_class.d.ts +1 -240
  7. package/lib/presentationHandlers/html_class.js +10 -240
  8. package/lib/presentationHandlers/vision_data_class.d.ts +80 -80
  9. package/lib/presentationHandlers/vision_data_class.js +81 -81
  10. package/lib/runner.js +8 -13
  11. package/lib/tools.d.ts +18 -1
  12. package/lib/tools.js +269 -162
  13. package/lib/type.d.ts +13 -10
  14. package/lib/utils.js +10 -0
  15. package/package.json +3 -3
  16. /package/html/html/{agendaPage.html → agendaSlide.html} +0 -0
  17. /package/html/html/{balanceSheetPage.html → balanceSheetSlide.html} +0 -0
  18. /package/html/html/{balancedScorecardPage.html → balancedScorecardSlide.html} +0 -0
  19. /package/html/html/{bcgMatrixPage.html → bcgMatrixSlide.html} +0 -0
  20. /package/html/html/{beforeAfterPage.html → beforeAfterSlide.html} +0 -0
  21. /package/html/html/{benchmarkingTablePage.html → benchmarkingTableSlide.html} +0 -0
  22. /package/html/html/{bubbleChartPlaceholderPage.html → bubbleChartPlaceholderSlide.html} +0 -0
  23. /package/html/html/{businessModelCanvasPage.html → businessModelCanvasSlide.html} +0 -0
  24. /package/html/html/{capabilityMaturityPage.html → capabilityMaturitySlide.html} +0 -0
  25. /package/html/html/{cashFlowPage.html → cashFlowSlide.html} +0 -0
  26. /package/html/html/{changeCurvePage.html → changeCurveSlide.html} +0 -0
  27. /package/html/html/{circularEconomyMapPage.html → circularEconomyMapSlide.html} +0 -0
  28. /package/html/html/{communicationPlanPage.html → communicationPlanSlide.html} +0 -0
  29. /package/html/html/{complianceHeatmapPage.html → complianceHeatmapSlide.html} +0 -0
  30. /package/html/html/{costStructurePage.html → costStructureSlide.html} +0 -0
  31. /package/html/html/{csrInitiativesPage.html → csrInitiativesSlide.html} +0 -0
  32. /package/html/html/{cultureValuesPage.html → cultureValuesSlide.html} +0 -0
  33. /package/html/html/{customerJourneyPage.html → customerJourneySlide.html} +0 -0
  34. /package/html/html/{customerSuccessJourneyPage.html → customerSuccessJourneySlide.html} +0 -0
  35. /package/html/html/{digitalMaturityPage.html → digitalMaturitySlide.html} +0 -0
  36. /package/html/html/{driverTreePage.html → driverTreeSlide.html} +0 -0
  37. /package/html/html/{ecosystemMapPage.html → ecosystemMapSlide.html} +0 -0
  38. /package/html/html/{esgFrameworkPage.html → esgFrameworkSlide.html} +0 -0
  39. /package/html/html/{executiveSummaryPage.html → executiveSummarySlide.html} +0 -0
  40. /package/html/html/{fourPPage.html → fourPSlide.html} +0 -0
  41. /package/html/html/{funnelPage.html → funnelSlide.html} +0 -0
  42. /package/html/html/{ganttSimplePage.html → ganttSimpleSlide.html} +0 -0
  43. /package/html/html/{geMcKinseyMatrixPage.html → geMcKinseyMatrixSlide.html} +0 -0
  44. /package/html/html/{heatmapPlaceholderPage.html → heatmapPlaceholderSlide.html} +0 -0
  45. /package/html/html/{hypothesisPage.html → hypothesisSlide.html} +0 -0
  46. /package/html/html/{innovationFunnelPage.html → innovationFunnelSlide.html} +0 -0
  47. /package/html/html/{integrationPlanPage.html → integrationPlanSlide.html} +0 -0
  48. /package/html/html/{issueTreePage.html → issueTreeSlide.html} +0 -0
  49. /package/html/html/{keyMessageWithSupportsPage.html → keyMessageWithSupportsSlide.html} +0 -0
  50. /package/html/html/{kpiHighlightPage.html → kpiHighlightSlide.html} +0 -0
  51. /package/html/html/{launchPlanPage.html → launchPlanSlide.html} +0 -0
  52. /package/html/html/{mAPipelinePage.html → mAPipelineSlide.html} +0 -0
  53. /package/html/html/{marimekkoPlaceholderPage.html → marimekkoPlaceholderSlide.html} +0 -0
  54. /package/html/html/{marketDriversPage.html → marketDriversSlide.html} +0 -0
  55. /package/html/html/{marketingMixPage.html → marketingMixSlide.html} +0 -0
  56. /package/html/html/{meceListPage.html → meceListSlide.html} +0 -0
  57. /package/html/html/{milestoneTimelinePage.html → milestoneTimelineSlide.html} +0 -0
  58. /package/html/html/{npvSummaryPage.html → npvSummarySlide.html} +0 -0
  59. /package/html/html/{okrKpiDashboardPage.html → okrKpiDashboardSlide.html} +0 -0
  60. /package/html/html/{optionEvaluationPage.html → optionEvaluationSlide.html} +0 -0
  61. /package/html/html/{orgChartPage.html → orgChartSlide.html} +0 -0
  62. /package/html/html/{pLBreakdownPage.html → pLBreakdownSlide.html} +0 -0
  63. /package/html/html/{partnershipMapPage.html → partnershipMapSlide.html} +0 -0
  64. /package/html/html/{personasPage.html → personasSlide.html} +0 -0
  65. /package/html/html/{pipelineFunnelPage.html → pipelineFunnelSlide.html} +0 -0
  66. /package/html/html/{porterFiveForcesPage.html → porterFiveForcesSlide.html} +0 -0
  67. /package/html/html/{positioningMapPage.html → positioningMapSlide.html} +0 -0
  68. /package/html/html/{pricingWaterfallPage.html → pricingWaterfallSlide.html} +0 -0
  69. /package/html/html/{productRoadmapPage.html → productRoadmapSlide.html} +0 -0
  70. /package/html/html/{pyramidPrinciplePage.html → pyramidPrincipleSlide.html} +0 -0
  71. /package/html/html/{quarterlyRoadmapPage.html → quarterlyRoadmapSlide.html} +0 -0
  72. /package/html/html/{raciPage.html → raciSlide.html} +0 -0
  73. /package/html/html/{revenueModelPage.html → revenueModelSlide.html} +0 -0
  74. /package/html/html/{riskMitigationPage.html → riskMitigationSlide.html} +0 -0
  75. /package/html/html/{salesDashboardPage.html → salesDashboardSlide.html} +0 -0
  76. /package/html/html/{scenarioPlanningPage.html → scenarioPlanningSlide.html} +0 -0
  77. /package/html/html/{scqaPage.html → scqaSlide.html} +0 -0
  78. /package/html/html/{sectionDividerPage.html → sectionDividerSlide.html} +0 -0
  79. /package/html/html/{segmentationPage.html → segmentationSlide.html} +0 -0
  80. /package/html/html/{sensitivityAnalysisPage.html → sensitivityAnalysisSlide.html} +0 -0
  81. /package/html/html/{sevenSPage.html → sevenSSlide.html} +0 -0
  82. /package/html/html/{shareholderValueTreePage.html → shareholderValueTreeSlide.html} +0 -0
  83. /package/html/html/{stakeholderMapPage.html → stakeholderMapSlide.html} +0 -0
  84. /package/html/html/{supportOrgModelPage.html → supportOrgModelSlide.html} +0 -0
  85. /package/html/html/{surveyResultsPage.html → surveyResultsSlide.html} +0 -0
  86. /package/html/html/{sustainabilityRoadmapPage.html → sustainabilityRoadmapSlide.html} +0 -0
  87. /package/html/html/{swotPage.html → swotSlide.html} +0 -0
  88. /package/html/html/{synergyCapturePage.html → synergyCaptureSlide.html} +0 -0
  89. /package/html/html/{tamSamSomPage.html → tamSamSomSlide.html} +0 -0
  90. /package/html/html/{techRoadmapPage.html → techRoadmapSlide.html} +0 -0
  91. /package/html/html/{thankYouContactPage.html → thankYouContactSlide.html} +0 -0
  92. /package/html/html/{threeCPage.html → threeCSlide.html} +0 -0
  93. /package/html/html/{twoByTwoMatrixPage.html → twoByTwoMatrixSlide.html} +0 -0
  94. /package/html/html/{valueChainPage.html → valueChainSlide.html} +0 -0
  95. /package/html/html/{waterfallPage.html → waterfallSlide.html} +0 -0
  96. /package/html/html2/{agendaPage.html → agendaSlide.html} +0 -0
  97. /package/html/html2/{balanceSheetPage.html → balanceSheetSlide.html} +0 -0
  98. /package/html/html2/{balancedScorecardPage.html → balancedScorecardSlide.html} +0 -0
  99. /package/html/html2/{bcgMatrixPage.html → bcgMatrixSlide.html} +0 -0
  100. /package/html/html2/{beforeAfterPage.html → beforeAfterSlide.html} +0 -0
  101. /package/html/html2/{benchmarkingTablePage.html → benchmarkingTableSlide.html} +0 -0
  102. /package/html/html2/{bubbleChartPlaceholderPage.html → bubbleChartPlaceholderSlide.html} +0 -0
  103. /package/html/html2/{businessModelCanvasPage.html → businessModelCanvasSlide.html} +0 -0
  104. /package/html/html2/{capabilityMaturityPage.html → capabilityMaturitySlide.html} +0 -0
  105. /package/html/html2/{cashFlowPage.html → cashFlowSlide.html} +0 -0
  106. /package/html/html2/{changeCurvePage.html → changeCurveSlide.html} +0 -0
  107. /package/html/html2/{circularEconomyMapPage.html → circularEconomyMapSlide.html} +0 -0
  108. /package/html/html2/{communicationPlanPage.html → communicationPlanSlide.html} +0 -0
  109. /package/html/html2/{complianceHeatmapPage.html → complianceHeatmapSlide.html} +0 -0
  110. /package/html/html2/{costStructurePage.html → costStructureSlide.html} +0 -0
  111. /package/html/html2/{csrInitiativesPage.html → csrInitiativesSlide.html} +0 -0
  112. /package/html/html2/{cultureValuesPage.html → cultureValuesSlide.html} +0 -0
  113. /package/html/html2/{customerJourneyPage.html → customerJourneySlide.html} +0 -0
  114. /package/html/html2/{customerSuccessJourneyPage.html → customerSuccessJourneySlide.html} +0 -0
  115. /package/html/html2/{digitalMaturityPage.html → digitalMaturitySlide.html} +0 -0
  116. /package/html/html2/{driverTreePage.html → driverTreeSlide.html} +0 -0
  117. /package/html/html2/{ecosystemMapPage.html → ecosystemMapSlide.html} +0 -0
  118. /package/html/html2/{esgFrameworkPage.html → esgFrameworkSlide.html} +0 -0
  119. /package/html/html2/{executiveSummaryPage.html → executiveSummarySlide.html} +0 -0
  120. /package/html/html2/{fourPPage.html → fourPSlide.html} +0 -0
  121. /package/html/html2/{funnelPage.html → funnelSlide.html} +0 -0
  122. /package/html/html2/{ganttSimplePage.html → ganttSimpleSlide.html} +0 -0
  123. /package/html/html2/{geMcKinseyMatrixPage.html → geMcKinseyMatrixSlide.html} +0 -0
  124. /package/html/html2/{heatmapPlaceholderPage.html → heatmapPlaceholderSlide.html} +0 -0
  125. /package/html/html2/{hypothesisPage.html → hypothesisSlide.html} +0 -0
  126. /package/html/html2/{innovationFunnelPage.html → innovationFunnelSlide.html} +0 -0
  127. /package/html/html2/{integrationPlanPage.html → integrationPlanSlide.html} +0 -0
  128. /package/html/html2/{issueTreePage.html → issueTreeSlide.html} +0 -0
  129. /package/html/html2/{keyMessageWithSupportsPage.html → keyMessageWithSupportsSlide.html} +0 -0
  130. /package/html/html2/{kpiHighlightPage.html → kpiHighlightSlide.html} +0 -0
  131. /package/html/html2/{launchPlanPage.html → launchPlanSlide.html} +0 -0
  132. /package/html/html2/{mAPipelinePage.html → mAPipelineSlide.html} +0 -0
  133. /package/html/html2/{marimekkoPlaceholderPage.html → marimekkoPlaceholderSlide.html} +0 -0
  134. /package/html/html2/{marketDriversPage.html → marketDriversSlide.html} +0 -0
  135. /package/html/html2/{marketingMixPage.html → marketingMixSlide.html} +0 -0
  136. /package/html/html2/{meceListPage.html → meceListSlide.html} +0 -0
  137. /package/html/html2/{milestoneTimelinePage.html → milestoneTimelineSlide.html} +0 -0
  138. /package/html/html2/{npvSummaryPage.html → npvSummarySlide.html} +0 -0
  139. /package/html/html2/{okrKpiDashboardPage.html → okrKpiDashboardSlide.html} +0 -0
  140. /package/html/html2/{optionEvaluationPage.html → optionEvaluationSlide.html} +0 -0
  141. /package/html/html2/{orgChartPage.html → orgChartSlide.html} +0 -0
  142. /package/html/html2/{pLBreakdownPage.html → pLBreakdownSlide.html} +0 -0
  143. /package/html/html2/{partnershipMapPage.html → partnershipMapSlide.html} +0 -0
  144. /package/html/html2/{personasPage.html → personasSlide.html} +0 -0
  145. /package/html/html2/{pipelineFunnelPage.html → pipelineFunnelSlide.html} +0 -0
  146. /package/html/html2/{porterFiveForcesPage.html → porterFiveForcesSlide.html} +0 -0
  147. /package/html/html2/{positioningMapPage.html → positioningMapSlide.html} +0 -0
  148. /package/html/html2/{pricingWaterfallPage.html → pricingWaterfallSlide.html} +0 -0
  149. /package/html/html2/{productRoadmapPage.html → productRoadmapSlide.html} +0 -0
  150. /package/html/html2/{pyramidPrinciplePage.html → pyramidPrincipleSlide.html} +0 -0
  151. /package/html/html2/{quarterlyRoadmapPage.html → quarterlyRoadmapSlide.html} +0 -0
  152. /package/html/html2/{raciPage.html → raciSlide.html} +0 -0
  153. /package/html/html2/{revenueModelPage.html → revenueModelSlide.html} +0 -0
  154. /package/html/html2/{riskMitigationPage.html → riskMitigationSlide.html} +0 -0
  155. /package/html/html2/{salesDashboardPage.html → salesDashboardSlide.html} +0 -0
  156. /package/html/html2/{scenarioPlanningPage.html → scenarioPlanningSlide.html} +0 -0
  157. /package/html/html2/{scqaPage.html → scqaSlide.html} +0 -0
  158. /package/html/html2/{sectionDividerPage.html → sectionDividerSlide.html} +0 -0
  159. /package/html/html2/{segmentationPage.html → segmentationSlide.html} +0 -0
  160. /package/html/html2/{sensitivityAnalysisPage.html → sensitivityAnalysisSlide.html} +0 -0
  161. /package/html/html2/{sevenSPage.html → sevenSSlide.html} +0 -0
  162. /package/html/html2/{shareholderValueTreePage.html → shareholderValueTreeSlide.html} +0 -0
  163. /package/html/html2/{stakeholderMapPage.html → stakeholderMapSlide.html} +0 -0
  164. /package/html/html2/{supportOrgModelPage.html → supportOrgModelSlide.html} +0 -0
  165. /package/html/html2/{surveyResultsPage.html → surveyResultsSlide.html} +0 -0
  166. /package/html/html2/{sustainabilityRoadmapPage.html → sustainabilityRoadmapSlide.html} +0 -0
  167. /package/html/html2/{swotPage.html → swotSlide.html} +0 -0
  168. /package/html/html2/{synergyCapturePage.html → synergyCaptureSlide.html} +0 -0
  169. /package/html/html2/{tamSamSomPage.html → tamSamSomSlide.html} +0 -0
  170. /package/html/html2/{techRoadmapPage.html → techRoadmapSlide.html} +0 -0
  171. /package/html/html2/{thankYouContactPage.html → thankYouContactSlide.html} +0 -0
  172. /package/html/html2/{threeCPage.html → threeCSlide.html} +0 -0
  173. /package/html/html2/{twoByTwoMatrixPage.html → twoByTwoMatrixSlide.html} +0 -0
  174. /package/html/html2/{valueChainPage.html → valueChainSlide.html} +0 -0
  175. /package/html/html2/{waterfallPage.html → waterfallSlide.html} +0 -0
package/lib/commons.d.ts CHANGED
@@ -6,11 +6,7 @@ export declare const openAIToolsToAnthropicTools: (tools: OpenAITool[]) => {
6
6
  tools: {
7
7
  name: string;
8
8
  description: string;
9
- inputSchema: {
10
- type: string;
11
- required: string[];
12
- properties: Record<string, unknown>;
13
- };
9
+ inputSchema: import("./type").ToolParametersSchema;
14
10
  }[];
15
11
  };
16
12
  export declare const convertTools: (tools: OpenAITool[]) => {
package/lib/mcp/core.js CHANGED
@@ -26,23 +26,19 @@ const getServer = (rootDir, outputDir) => {
26
26
  server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
27
27
  const { name, arguments: args } = request.params;
28
28
  try {
29
- if (name in handler && args) {
30
- const key = name;
31
- const method = handler[key];
32
- if (typeof method === "function") {
33
- const fileName = (0, commons_1.generateUniqueId)();
34
- const result = await method(args, { functionName: name, outputFileName: fileName });
35
- return {
36
- content: [
37
- {
38
- type: "text",
39
- text: result?.text ?? "success",
40
- },
41
- ],
42
- };
43
- }
29
+ if (args) {
30
+ const fileName = (0, commons_1.generateUniqueId)();
31
+ const result = await handler.callNamedFunction(name, args, { outputFileName: fileName });
32
+ return {
33
+ content: [
34
+ {
35
+ type: "text",
36
+ text: result?.text ?? "success",
37
+ },
38
+ ],
39
+ };
44
40
  }
45
- throw new Error(`Unknown command: ${name}.`);
41
+ throw new Error(`No args: ${name}.`);
46
42
  }
47
43
  catch (error) {
48
44
  const errorMessage = error instanceof Error ? error.message : String(error);
@@ -1,35 +1,2 @@
1
- export declare const mcp_tools: ({
2
- type: string;
3
- function: {
4
- name: string;
5
- description: string;
6
- parameters: {
7
- type: string;
8
- properties: {
9
- directoryName: {
10
- type: string;
11
- description: string;
12
- };
13
- status?: undefined;
14
- };
15
- required: string[];
16
- };
17
- };
18
- } | {
19
- type: string;
20
- function: {
21
- name: string;
22
- description: string;
23
- parameters: {
24
- type: string;
25
- properties: {
26
- status: {
27
- type: string;
28
- description: string;
29
- };
30
- directoryName?: undefined;
31
- };
32
- required: string[];
33
- };
34
- };
35
- })[];
1
+ import { OpenAITool } from "./type";
2
+ export declare const mcp_tools: OpenAITool[];
@@ -1,82 +1,3 @@
1
1
  import { type PluginOptionParams, type ToolArgs } from "../type";
2
2
  export declare const baseDir: string;
3
- export declare const createSectionDividerPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
4
- export declare const createAgendaPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
5
- export declare const createExecutiveSummaryPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
6
- export declare const createKeyMessageWithSupportsPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
7
- export declare const createHypothesisPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
8
- export declare const createIssueTreePage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
9
- export declare const createDriverTreePage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
10
- export declare const createMeceListPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
11
- export declare const createPyramidPrinciplePage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
12
- export declare const createScqaPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
13
- export declare const createSwotPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
14
- export declare const createThreeCPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
15
- export declare const createFourPPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
16
- export declare const createSevenSPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
17
- export declare const createValueChainPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
18
- export declare const createPorterFiveForcesPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
19
- export declare const createBusinessModelCanvasPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
20
- export declare const createCustomerJourneyPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
21
- export declare const createStakeholderMapPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
22
- export declare const createRaciPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
23
- export declare const createOkrKpiDashboardPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
24
- export declare const createBalancedScorecardPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
25
- export declare const createQuarterlyRoadmapPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
26
- export declare const createMilestoneTimelinePage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
27
- export declare const createGanttSimplePage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
28
- export declare const createWaterfallPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
29
- export declare const createFunnelPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
30
- export declare const createTwoByTwoMatrixPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
31
- export declare const createBcgMatrixPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
32
- export declare const createGeMcKinseyMatrixPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
33
- export declare const createMarimekkoPlaceholderPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
34
- export declare const createBubbleChartPlaceholderPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
35
- export declare const createHeatmapPlaceholderPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
36
- export declare const createKpiHighlightPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
37
- export declare const createBeforeAfterPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
38
- export declare const createOptionEvaluationPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
39
- export declare const createRiskMitigationPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
40
- export declare const createPositioningMapPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
41
- export declare const createTamSamSomPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
42
- export declare const createMarketDriversPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
43
- export declare const createRevenueModelPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
44
- export declare const createCostStructurePage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
45
- export declare const createOrgChartPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
46
- export declare const createCapabilityMaturityPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
47
- export declare const createTechRoadmapPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
48
- export declare const createDigitalMaturityPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
49
- export declare const createEcosystemMapPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
50
- export declare const createChangeCurvePage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
51
- export declare const createCommunicationPlanPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
52
- export declare const createIntegrationPlanPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
53
- export declare const createBenchmarkingTablePage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
54
- export declare const createSurveyResultsPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
55
- export declare const createPersonasPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
56
- export declare const createSegmentationPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
57
- export declare const createPricingWaterfallPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
58
- export declare const createSensitivityAnalysisPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
59
- export declare const createPLBreakdownPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
60
- export declare const createCashFlowPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
61
- export declare const createBalanceSheetPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
62
- export declare const createShareholderValueTreePage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
63
- export declare const createNpvSummaryPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
64
- export declare const createScenarioPlanningPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
65
- export declare const createComplianceHeatmapPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
66
- export declare const createEsgFrameworkPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
67
- export declare const createCsrInitiativesPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
68
- export declare const createSustainabilityRoadmapPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
69
- export declare const createCircularEconomyMapPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
70
- export declare const createInnovationFunnelPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
71
- export declare const createProductRoadmapPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
72
- export declare const createLaunchPlanPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
73
- export declare const createPipelineFunnelPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
74
- export declare const createSalesDashboardPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
75
- export declare const createMarketingMixPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
76
- export declare const createCustomerSuccessJourneyPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
77
- export declare const createSupportOrgModelPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
78
- export declare const createPartnershipMapPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
79
- export declare const createMAPipelinePage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
80
- export declare const createSynergyCapturePage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
81
- export declare const createCultureValuesPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
82
- export declare const createThankYouContactPage: (args: ToolArgs, options: PluginOptionParams) => Promise<void>;
3
+ export declare const callNamedFunction: (functionName: string, args: ToolArgs, options: PluginOptionParams) => Promise<void>;
@@ -3,8 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createCommunicationPlanPage = exports.createChangeCurvePage = exports.createEcosystemMapPage = exports.createDigitalMaturityPage = exports.createTechRoadmapPage = exports.createCapabilityMaturityPage = exports.createOrgChartPage = exports.createCostStructurePage = exports.createRevenueModelPage = exports.createMarketDriversPage = exports.createTamSamSomPage = exports.createPositioningMapPage = exports.createRiskMitigationPage = exports.createOptionEvaluationPage = exports.createBeforeAfterPage = exports.createKpiHighlightPage = exports.createHeatmapPlaceholderPage = exports.createBubbleChartPlaceholderPage = exports.createMarimekkoPlaceholderPage = exports.createGeMcKinseyMatrixPage = exports.createBcgMatrixPage = exports.createTwoByTwoMatrixPage = exports.createFunnelPage = exports.createWaterfallPage = exports.createGanttSimplePage = exports.createMilestoneTimelinePage = exports.createQuarterlyRoadmapPage = exports.createBalancedScorecardPage = exports.createOkrKpiDashboardPage = exports.createRaciPage = exports.createStakeholderMapPage = exports.createCustomerJourneyPage = exports.createBusinessModelCanvasPage = exports.createPorterFiveForcesPage = exports.createValueChainPage = exports.createSevenSPage = exports.createFourPPage = exports.createThreeCPage = exports.createSwotPage = exports.createScqaPage = exports.createPyramidPrinciplePage = exports.createMeceListPage = exports.createDriverTreePage = exports.createIssueTreePage = exports.createHypothesisPage = exports.createKeyMessageWithSupportsPage = exports.createExecutiveSummaryPage = exports.createAgendaPage = exports.createSectionDividerPage = exports.baseDir = void 0;
7
- exports.createThankYouContactPage = exports.createCultureValuesPage = exports.createSynergyCapturePage = exports.createMAPipelinePage = exports.createPartnershipMapPage = exports.createSupportOrgModelPage = exports.createCustomerSuccessJourneyPage = exports.createMarketingMixPage = exports.createSalesDashboardPage = exports.createPipelineFunnelPage = exports.createLaunchPlanPage = exports.createProductRoadmapPage = exports.createInnovationFunnelPage = exports.createCircularEconomyMapPage = exports.createSustainabilityRoadmapPage = exports.createCsrInitiativesPage = exports.createEsgFrameworkPage = exports.createComplianceHeatmapPage = exports.createScenarioPlanningPage = exports.createNpvSummaryPage = exports.createShareholderValueTreePage = exports.createBalanceSheetPage = exports.createCashFlowPage = exports.createPLBreakdownPage = exports.createSensitivityAnalysisPage = exports.createPricingWaterfallPage = exports.createSegmentationPage = exports.createPersonasPage = exports.createSurveyResultsPage = exports.createBenchmarkingTablePage = exports.createIntegrationPlanPage = void 0;
6
+ exports.callNamedFunction = exports.baseDir = void 0;
8
7
  const path_1 = __importDefault(require("path"));
9
8
  const utils_1 = require("../utils");
10
9
  const commons_1 = require("../commons");
@@ -17,327 +16,14 @@ const filePath = (filename) => {
17
16
  };
18
17
  const generateHtml = async (args, options) => {
19
18
  const { outputFileName, functionName, imageFilePath } = options ?? {};
19
+ if (!functionName) {
20
+ throw new Error("functionName is required");
21
+ }
20
22
  const templateFileName = (0, commons_1.functionNameToTemplateName)(functionName);
21
23
  const outfile = imageFilePath ?? path_1.default.resolve(exports.baseDir, `${outputFileName}.png`);
22
24
  await (0, utils_1.createPage)(rootDir, outfile, nunjucks_1.default.render(filePath(templateFileName), args));
23
25
  };
24
- const createSectionDividerPage = async (args, options) => {
25
- await generateHtml(args, options);
26
+ const callNamedFunction = async (functionName, args, options) => {
27
+ return generateHtml(args, { ...options, functionName });
26
28
  };
27
- exports.createSectionDividerPage = createSectionDividerPage;
28
- const createAgendaPage = async (args, options) => {
29
- await generateHtml(args, options);
30
- };
31
- exports.createAgendaPage = createAgendaPage;
32
- const createExecutiveSummaryPage = async (args, options) => {
33
- await generateHtml(args, options);
34
- };
35
- exports.createExecutiveSummaryPage = createExecutiveSummaryPage;
36
- const createKeyMessageWithSupportsPage = async (args, options) => {
37
- await generateHtml(args, options);
38
- };
39
- exports.createKeyMessageWithSupportsPage = createKeyMessageWithSupportsPage;
40
- const createHypothesisPage = async (args, options) => {
41
- await generateHtml(args, options);
42
- };
43
- exports.createHypothesisPage = createHypothesisPage;
44
- const createIssueTreePage = async (args, options) => {
45
- await generateHtml(args, options);
46
- };
47
- exports.createIssueTreePage = createIssueTreePage;
48
- const createDriverTreePage = async (args, options) => {
49
- await generateHtml(args, options);
50
- };
51
- exports.createDriverTreePage = createDriverTreePage;
52
- const createMeceListPage = async (args, options) => {
53
- await generateHtml(args, options);
54
- };
55
- exports.createMeceListPage = createMeceListPage;
56
- const createPyramidPrinciplePage = async (args, options) => {
57
- await generateHtml(args, options);
58
- };
59
- exports.createPyramidPrinciplePage = createPyramidPrinciplePage;
60
- const createScqaPage = async (args, options) => {
61
- await generateHtml(args, options);
62
- };
63
- exports.createScqaPage = createScqaPage;
64
- const createSwotPage = async (args, options) => {
65
- await generateHtml(args, options);
66
- };
67
- exports.createSwotPage = createSwotPage;
68
- const createThreeCPage = async (args, options) => {
69
- await generateHtml(args, options);
70
- };
71
- exports.createThreeCPage = createThreeCPage;
72
- const createFourPPage = async (args, options) => {
73
- await generateHtml(args, options);
74
- };
75
- exports.createFourPPage = createFourPPage;
76
- const createSevenSPage = async (args, options) => {
77
- await generateHtml(args, options);
78
- };
79
- exports.createSevenSPage = createSevenSPage;
80
- const createValueChainPage = async (args, options) => {
81
- await generateHtml(args, options);
82
- };
83
- exports.createValueChainPage = createValueChainPage;
84
- const createPorterFiveForcesPage = async (args, options) => {
85
- await generateHtml(args, options);
86
- };
87
- exports.createPorterFiveForcesPage = createPorterFiveForcesPage;
88
- const createBusinessModelCanvasPage = async (args, options) => {
89
- await generateHtml(args, options);
90
- };
91
- exports.createBusinessModelCanvasPage = createBusinessModelCanvasPage;
92
- const createCustomerJourneyPage = async (args, options) => {
93
- await generateHtml(args, options);
94
- };
95
- exports.createCustomerJourneyPage = createCustomerJourneyPage;
96
- const createStakeholderMapPage = async (args, options) => {
97
- await generateHtml(args, options);
98
- };
99
- exports.createStakeholderMapPage = createStakeholderMapPage;
100
- const createRaciPage = async (args, options) => {
101
- await generateHtml(args, options);
102
- };
103
- exports.createRaciPage = createRaciPage;
104
- const createOkrKpiDashboardPage = async (args, options) => {
105
- await generateHtml(args, options);
106
- };
107
- exports.createOkrKpiDashboardPage = createOkrKpiDashboardPage;
108
- const createBalancedScorecardPage = async (args, options) => {
109
- await generateHtml(args, options);
110
- };
111
- exports.createBalancedScorecardPage = createBalancedScorecardPage;
112
- const createQuarterlyRoadmapPage = async (args, options) => {
113
- await generateHtml(args, options);
114
- };
115
- exports.createQuarterlyRoadmapPage = createQuarterlyRoadmapPage;
116
- const createMilestoneTimelinePage = async (args, options) => {
117
- await generateHtml(args, options);
118
- };
119
- exports.createMilestoneTimelinePage = createMilestoneTimelinePage;
120
- const createGanttSimplePage = async (args, options) => {
121
- await generateHtml(args, options);
122
- };
123
- exports.createGanttSimplePage = createGanttSimplePage;
124
- const createWaterfallPage = async (args, options) => {
125
- await generateHtml(args, options);
126
- };
127
- exports.createWaterfallPage = createWaterfallPage;
128
- const createFunnelPage = async (args, options) => {
129
- await generateHtml(args, options);
130
- };
131
- exports.createFunnelPage = createFunnelPage;
132
- const createTwoByTwoMatrixPage = async (args, options) => {
133
- await generateHtml(args, options);
134
- };
135
- exports.createTwoByTwoMatrixPage = createTwoByTwoMatrixPage;
136
- const createBcgMatrixPage = async (args, options) => {
137
- await generateHtml(args, options);
138
- };
139
- exports.createBcgMatrixPage = createBcgMatrixPage;
140
- const createGeMcKinseyMatrixPage = async (args, options) => {
141
- await generateHtml(args, options);
142
- };
143
- exports.createGeMcKinseyMatrixPage = createGeMcKinseyMatrixPage;
144
- const createMarimekkoPlaceholderPage = async (args, options) => {
145
- await generateHtml(args, options);
146
- };
147
- exports.createMarimekkoPlaceholderPage = createMarimekkoPlaceholderPage;
148
- const createBubbleChartPlaceholderPage = async (args, options) => {
149
- await generateHtml(args, options);
150
- };
151
- exports.createBubbleChartPlaceholderPage = createBubbleChartPlaceholderPage;
152
- const createHeatmapPlaceholderPage = async (args, options) => {
153
- await generateHtml(args, options);
154
- };
155
- exports.createHeatmapPlaceholderPage = createHeatmapPlaceholderPage;
156
- const createKpiHighlightPage = async (args, options) => {
157
- await generateHtml(args, options);
158
- };
159
- exports.createKpiHighlightPage = createKpiHighlightPage;
160
- const createBeforeAfterPage = async (args, options) => {
161
- await generateHtml(args, options);
162
- };
163
- exports.createBeforeAfterPage = createBeforeAfterPage;
164
- const createOptionEvaluationPage = async (args, options) => {
165
- await generateHtml(args, options);
166
- };
167
- exports.createOptionEvaluationPage = createOptionEvaluationPage;
168
- const createRiskMitigationPage = async (args, options) => {
169
- await generateHtml(args, options);
170
- };
171
- exports.createRiskMitigationPage = createRiskMitigationPage;
172
- const createPositioningMapPage = async (args, options) => {
173
- await generateHtml(args, options);
174
- };
175
- exports.createPositioningMapPage = createPositioningMapPage;
176
- const createTamSamSomPage = async (args, options) => {
177
- await generateHtml(args, options);
178
- };
179
- exports.createTamSamSomPage = createTamSamSomPage;
180
- const createMarketDriversPage = async (args, options) => {
181
- await generateHtml(args, options);
182
- };
183
- exports.createMarketDriversPage = createMarketDriversPage;
184
- const createRevenueModelPage = async (args, options) => {
185
- await generateHtml(args, options);
186
- };
187
- exports.createRevenueModelPage = createRevenueModelPage;
188
- const createCostStructurePage = async (args, options) => {
189
- await generateHtml(args, options);
190
- };
191
- exports.createCostStructurePage = createCostStructurePage;
192
- const createOrgChartPage = async (args, options) => {
193
- await generateHtml(args, options);
194
- };
195
- exports.createOrgChartPage = createOrgChartPage;
196
- const createCapabilityMaturityPage = async (args, options) => {
197
- await generateHtml(args, options);
198
- };
199
- exports.createCapabilityMaturityPage = createCapabilityMaturityPage;
200
- const createTechRoadmapPage = async (args, options) => {
201
- await generateHtml(args, options);
202
- };
203
- exports.createTechRoadmapPage = createTechRoadmapPage;
204
- const createDigitalMaturityPage = async (args, options) => {
205
- await generateHtml(args, options);
206
- };
207
- exports.createDigitalMaturityPage = createDigitalMaturityPage;
208
- const createEcosystemMapPage = async (args, options) => {
209
- await generateHtml(args, options);
210
- };
211
- exports.createEcosystemMapPage = createEcosystemMapPage;
212
- const createChangeCurvePage = async (args, options) => {
213
- await generateHtml(args, options);
214
- };
215
- exports.createChangeCurvePage = createChangeCurvePage;
216
- const createCommunicationPlanPage = async (args, options) => {
217
- await generateHtml(args, options);
218
- };
219
- exports.createCommunicationPlanPage = createCommunicationPlanPage;
220
- const createIntegrationPlanPage = async (args, options) => {
221
- await generateHtml(args, options);
222
- };
223
- exports.createIntegrationPlanPage = createIntegrationPlanPage;
224
- const createBenchmarkingTablePage = async (args, options) => {
225
- await generateHtml(args, options);
226
- };
227
- exports.createBenchmarkingTablePage = createBenchmarkingTablePage;
228
- const createSurveyResultsPage = async (args, options) => {
229
- await generateHtml(args, options);
230
- };
231
- exports.createSurveyResultsPage = createSurveyResultsPage;
232
- const createPersonasPage = async (args, options) => {
233
- await generateHtml(args, options);
234
- };
235
- exports.createPersonasPage = createPersonasPage;
236
- const createSegmentationPage = async (args, options) => {
237
- await generateHtml(args, options);
238
- };
239
- exports.createSegmentationPage = createSegmentationPage;
240
- const createPricingWaterfallPage = async (args, options) => {
241
- await generateHtml(args, options);
242
- };
243
- exports.createPricingWaterfallPage = createPricingWaterfallPage;
244
- const createSensitivityAnalysisPage = async (args, options) => {
245
- await generateHtml(args, options);
246
- };
247
- exports.createSensitivityAnalysisPage = createSensitivityAnalysisPage;
248
- const createPLBreakdownPage = async (args, options) => {
249
- await generateHtml(args, options);
250
- };
251
- exports.createPLBreakdownPage = createPLBreakdownPage;
252
- const createCashFlowPage = async (args, options) => {
253
- await generateHtml(args, options);
254
- };
255
- exports.createCashFlowPage = createCashFlowPage;
256
- const createBalanceSheetPage = async (args, options) => {
257
- await generateHtml(args, options);
258
- };
259
- exports.createBalanceSheetPage = createBalanceSheetPage;
260
- const createShareholderValueTreePage = async (args, options) => {
261
- await generateHtml(args, options);
262
- };
263
- exports.createShareholderValueTreePage = createShareholderValueTreePage;
264
- const createNpvSummaryPage = async (args, options) => {
265
- await generateHtml(args, options);
266
- };
267
- exports.createNpvSummaryPage = createNpvSummaryPage;
268
- const createScenarioPlanningPage = async (args, options) => {
269
- await generateHtml(args, options);
270
- };
271
- exports.createScenarioPlanningPage = createScenarioPlanningPage;
272
- const createComplianceHeatmapPage = async (args, options) => {
273
- await generateHtml(args, options);
274
- };
275
- exports.createComplianceHeatmapPage = createComplianceHeatmapPage;
276
- const createEsgFrameworkPage = async (args, options) => {
277
- await generateHtml(args, options);
278
- };
279
- exports.createEsgFrameworkPage = createEsgFrameworkPage;
280
- const createCsrInitiativesPage = async (args, options) => {
281
- await generateHtml(args, options);
282
- };
283
- exports.createCsrInitiativesPage = createCsrInitiativesPage;
284
- const createSustainabilityRoadmapPage = async (args, options) => {
285
- await generateHtml(args, options);
286
- };
287
- exports.createSustainabilityRoadmapPage = createSustainabilityRoadmapPage;
288
- const createCircularEconomyMapPage = async (args, options) => {
289
- await generateHtml(args, options);
290
- };
291
- exports.createCircularEconomyMapPage = createCircularEconomyMapPage;
292
- const createInnovationFunnelPage = async (args, options) => {
293
- await generateHtml(args, options);
294
- };
295
- exports.createInnovationFunnelPage = createInnovationFunnelPage;
296
- const createProductRoadmapPage = async (args, options) => {
297
- await generateHtml(args, options);
298
- };
299
- exports.createProductRoadmapPage = createProductRoadmapPage;
300
- const createLaunchPlanPage = async (args, options) => {
301
- await generateHtml(args, options);
302
- };
303
- exports.createLaunchPlanPage = createLaunchPlanPage;
304
- const createPipelineFunnelPage = async (args, options) => {
305
- await generateHtml(args, options);
306
- };
307
- exports.createPipelineFunnelPage = createPipelineFunnelPage;
308
- const createSalesDashboardPage = async (args, options) => {
309
- await generateHtml(args, options);
310
- };
311
- exports.createSalesDashboardPage = createSalesDashboardPage;
312
- const createMarketingMixPage = async (args, options) => {
313
- await generateHtml(args, options);
314
- };
315
- exports.createMarketingMixPage = createMarketingMixPage;
316
- const createCustomerSuccessJourneyPage = async (args, options) => {
317
- await generateHtml(args, options);
318
- };
319
- exports.createCustomerSuccessJourneyPage = createCustomerSuccessJourneyPage;
320
- const createSupportOrgModelPage = async (args, options) => {
321
- await generateHtml(args, options);
322
- };
323
- exports.createSupportOrgModelPage = createSupportOrgModelPage;
324
- const createPartnershipMapPage = async (args, options) => {
325
- await generateHtml(args, options);
326
- };
327
- exports.createPartnershipMapPage = createPartnershipMapPage;
328
- const createMAPipelinePage = async (args, options) => {
329
- await generateHtml(args, options);
330
- };
331
- exports.createMAPipelinePage = createMAPipelinePage;
332
- const createSynergyCapturePage = async (args, options) => {
333
- await generateHtml(args, options);
334
- };
335
- exports.createSynergyCapturePage = createSynergyCapturePage;
336
- const createCultureValuesPage = async (args, options) => {
337
- await generateHtml(args, options);
338
- };
339
- exports.createCultureValuesPage = createCultureValuesPage;
340
- const createThankYouContactPage = async (args, options) => {
341
- await generateHtml(args, options);
342
- };
343
- exports.createThankYouContactPage = createThankYouContactPage;
29
+ exports.callNamedFunction = callNamedFunction;