mulmocast-vision 0.0.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.
- package/LICENSE +661 -0
- package/README.md +102 -0
- package/assets/html/agendaPage.html +13 -0
- package/assets/html/balanceSheetPage.html +29 -0
- package/assets/html/balancedScorecardPage.html +15 -0
- package/assets/html/bcgMatrixPage.html +37 -0
- package/assets/html/beforeAfterPage.html +21 -0
- package/assets/html/benchmarkingTablePage.html +23 -0
- package/assets/html/bubbleChartPlaceholderPage.html +9 -0
- package/assets/html/businessModelCanvasPage.html +14 -0
- package/assets/html/capabilityMaturityPage.html +8 -0
- package/assets/html/cashFlowPage.html +21 -0
- package/assets/html/changeCurvePage.html +11 -0
- package/assets/html/circularEconomyMapPage.html +8 -0
- package/assets/html/communicationPlanPage.html +22 -0
- package/assets/html/complianceHeatmapPage.html +19 -0
- package/assets/html/costStructurePage.html +20 -0
- package/assets/html/csrInitiativesPage.html +8 -0
- package/assets/html/cultureValuesPage.html +21 -0
- package/assets/html/customerJourneyPage.html +21 -0
- package/assets/html/customerSuccessJourneyPage.html +15 -0
- package/assets/html/digitalMaturityPage.html +14 -0
- package/assets/html/driverTreePage.html +20 -0
- package/assets/html/ecosystemMapPage.html +11 -0
- package/assets/html/esgFrameworkPage.html +28 -0
- package/assets/html/executiveSummaryPage.html +15 -0
- package/assets/html/fourPPage.html +36 -0
- package/assets/html/funnelPage.html +8 -0
- package/assets/html/ganttSimplePage.html +21 -0
- package/assets/html/geMcKinseyMatrixPage.html +13 -0
- package/assets/html/heatmapPlaceholderPage.html +24 -0
- package/assets/html/hypothesisPage.html +22 -0
- package/assets/html/innovationFunnelPage.html +13 -0
- package/assets/html/integrationPlanPage.html +21 -0
- package/assets/html/issueTreePage.html +23 -0
- package/assets/html/keyMessageWithSupportsPage.html +13 -0
- package/assets/html/kpiHighlightPage.html +14 -0
- package/assets/html/launchPlanPage.html +29 -0
- package/assets/html/mAPipelinePage.html +16 -0
- package/assets/html/marimekkoPlaceholderPage.html +9 -0
- package/assets/html/marketDriversPage.html +8 -0
- package/assets/html/marketingMixPage.html +11 -0
- package/assets/html/meceListPage.html +15 -0
- package/assets/html/milestoneTimelinePage.html +14 -0
- package/assets/html/npvSummaryPage.html +12 -0
- package/assets/html/okrKpiDashboardPage.html +16 -0
- package/assets/html/optionEvaluationPage.html +23 -0
- package/assets/html/orgChartPage.html +8 -0
- package/assets/html/pLBreakdownPage.html +19 -0
- package/assets/html/partnershipMapPage.html +11 -0
- package/assets/html/personasPage.html +19 -0
- package/assets/html/pipelineFunnelPage.html +8 -0
- package/assets/html/porterFiveForcesPage.html +44 -0
- package/assets/html/positioningMapPage.html +11 -0
- package/assets/html/pricingWaterfallPage.html +8 -0
- package/assets/html/productRoadmapPage.html +15 -0
- package/assets/html/pyramidPrinciplePage.html +27 -0
- package/assets/html/quarterlyRoadmapPage.html +15 -0
- package/assets/html/raciPage.html +23 -0
- package/assets/html/revenueModelPage.html +17 -0
- package/assets/html/riskMitigationPage.html +17 -0
- package/assets/html/salesDashboardPage.html +11 -0
- package/assets/html/scenarioPlanningPage.html +13 -0
- package/assets/html/scqaPage.html +27 -0
- package/assets/html/sectionDividerPage.html +7 -0
- package/assets/html/segmentationPage.html +15 -0
- package/assets/html/sensitivityAnalysisPage.html +22 -0
- package/assets/html/sevenSPage.html +11 -0
- package/assets/html/shareholderValueTreePage.html +8 -0
- package/assets/html/stakeholderMapPage.html +14 -0
- package/assets/html/supportOrgModelPage.html +21 -0
- package/assets/html/surveyResultsPage.html +11 -0
- package/assets/html/sustainabilityRoadmapPage.html +15 -0
- package/assets/html/swotPage.html +36 -0
- package/assets/html/synergyCapturePage.html +8 -0
- package/assets/html/tamSamSomPage.html +11 -0
- package/assets/html/techRoadmapPage.html +15 -0
- package/assets/html/thankYouContactPage.html +24 -0
- package/assets/html/threeCPage.html +28 -0
- package/assets/html/twoByTwoMatrixPage.html +17 -0
- package/assets/html/valueChainPage.html +18 -0
- package/assets/html/waterfallPage.html +8 -0
- package/assets/html2/agendaPage.html +26 -0
- package/assets/html2/balanceSheetPage.html +87 -0
- package/assets/html2/balancedScorecardPage.html +29 -0
- package/assets/html2/bcgMatrixPage.html +165 -0
- package/assets/html2/beforeAfterPage.html +78 -0
- package/assets/html2/benchmarkingTablePage.html +70 -0
- package/assets/html2/bubbleChartPlaceholderPage.html +107 -0
- package/assets/html2/businessModelCanvasPage.html +43 -0
- package/assets/html2/capabilityMaturityPage.html +38 -0
- package/assets/html2/cashFlowPage.html +68 -0
- package/assets/html2/changeCurvePage.html +53 -0
- package/assets/html2/circularEconomyMapPage.html +35 -0
- package/assets/html2/communicationPlanPage.html +82 -0
- package/assets/html2/complianceHeatmapPage.html +42 -0
- package/assets/html2/costStructurePage.html +60 -0
- package/assets/html2/csrInitiativesPage.html +26 -0
- package/assets/html2/cultureValuesPage.html +44 -0
- package/assets/html2/customerJourneyPage.html +68 -0
- package/assets/html2/customerSuccessJourneyPage.html +54 -0
- package/assets/html2/digitalMaturityPage.html +51 -0
- package/assets/html2/driverTreePage.html +92 -0
- package/assets/html2/ecosystemMapPage.html +30 -0
- package/assets/html2/esgFrameworkPage.html +66 -0
- package/assets/html2/executiveSummaryPage.html +27 -0
- package/assets/html2/fourPPage.html +85 -0
- package/assets/html2/funnelPage.html +53 -0
- package/assets/html2/ganttSimplePage.html +56 -0
- package/assets/html2/geMcKinseyMatrixPage.html +43 -0
- package/assets/html2/heatmapPlaceholderPage.html +131 -0
- package/assets/html2/hypothesisPage.html +100 -0
- package/assets/html2/innovationFunnelPage.html +61 -0
- package/assets/html2/integrationPlanPage.html +61 -0
- package/assets/html2/issueTreePage.html +97 -0
- package/assets/html2/keyMessageWithSupportsPage.html +47 -0
- package/assets/html2/kpiHighlightPage.html +54 -0
- package/assets/html2/launchPlanPage.html +86 -0
- package/assets/html2/mAPipelinePage.html +79 -0
- package/assets/html2/marimekkoPlaceholderPage.html +120 -0
- package/assets/html2/marketDriversPage.html +32 -0
- package/assets/html2/marketingMixPage.html +50 -0
- package/assets/html2/meceListPage.html +32 -0
- package/assets/html2/milestoneTimelinePage.html +59 -0
- package/assets/html2/npvSummaryPage.html +54 -0
- package/assets/html2/okrKpiDashboardPage.html +85 -0
- package/assets/html2/optionEvaluationPage.html +128 -0
- package/assets/html2/orgChartPage.html +30 -0
- package/assets/html2/pLBreakdownPage.html +73 -0
- package/assets/html2/partnershipMapPage.html +26 -0
- package/assets/html2/personasPage.html +39 -0
- package/assets/html2/pipelineFunnelPage.html +77 -0
- package/assets/html2/porterFiveForcesPage.html +140 -0
- package/assets/html2/positioningMapPage.html +40 -0
- package/assets/html2/pricingWaterfallPage.html +33 -0
- package/assets/html2/productRoadmapPage.html +47 -0
- package/assets/html2/pyramidPrinciplePage.html +47 -0
- package/assets/html2/quarterlyRoadmapPage.html +54 -0
- package/assets/html2/raciPage.html +49 -0
- package/assets/html2/revenueModelPage.html +54 -0
- package/assets/html2/riskMitigationPage.html +36 -0
- package/assets/html2/salesDashboardPage.html +58 -0
- package/assets/html2/scenarioPlanningPage.html +63 -0
- package/assets/html2/scqaPage.html +74 -0
- package/assets/html2/sectionDividerPage.html +25 -0
- package/assets/html2/segmentationPage.html +36 -0
- package/assets/html2/sensitivityAnalysisPage.html +82 -0
- package/assets/html2/sevenSPage.html +31 -0
- package/assets/html2/shareholderValueTreePage.html +32 -0
- package/assets/html2/stakeholderMapPage.html +36 -0
- package/assets/html2/supportOrgModelPage.html +57 -0
- package/assets/html2/surveyResultsPage.html +32 -0
- package/assets/html2/sustainabilityRoadmapPage.html +54 -0
- package/assets/html2/swotPage.html +97 -0
- package/assets/html2/synergyCapturePage.html +39 -0
- package/assets/html2/tamSamSomPage.html +62 -0
- package/assets/html2/techRoadmapPage.html +54 -0
- package/assets/html2/thankYouContactPage.html +78 -0
- package/assets/html2/threeCPage.html +66 -0
- package/assets/html2/twoByTwoMatrixPage.html +72 -0
- package/assets/html2/valueChainPage.html +56 -0
- package/assets/html2/waterfallPage.html +47 -0
- package/assets/templates/tailwind-sea.html +34 -0
- package/assets/templates/tailwind.html +14 -0
- package/lib/browser.d.ts +1 -0
- package/lib/browser.js +17 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +18 -0
- package/lib/mcp/server.d.ts +2 -0
- package/lib/mcp/server.js +77 -0
- package/lib/mcp/test.d.ts +1 -0
- package/lib/mcp/test.js +56 -0
- package/lib/presentation.d.ts +1 -0
- package/lib/presentation.js +67 -0
- package/lib/presentationHandlers/html.d.ts +322 -0
- package/lib/presentationHandlers/html.js +348 -0
- package/lib/presentationHandlers/html_class.d.ts +98 -0
- package/lib/presentationHandlers/html_class.js +266 -0
- package/lib/runner.d.ts +1 -0
- package/lib/runner.js +31 -0
- package/lib/server.d.ts +2 -0
- package/lib/server.js +76 -0
- package/lib/tools.d.ts +1 -0
- package/lib/tools.js +1604 -0
- package/lib/utils.d.ts +13 -0
- package/lib/utils.js +80 -0
- package/package.json +51 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
type OptionParams = {
|
|
2
|
+
name: string;
|
|
3
|
+
index?: number;
|
|
4
|
+
imageFilePath?: string;
|
|
5
|
+
htmlFilePath?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare class htmlPlugin {
|
|
8
|
+
protected outputDir: string;
|
|
9
|
+
protected rootDir: string;
|
|
10
|
+
protected templateOptions: any;
|
|
11
|
+
constructor({ outputDir, rootDir, templateOptions }: {
|
|
12
|
+
outputDir: string;
|
|
13
|
+
rootDir?: string;
|
|
14
|
+
templateOptions?: any;
|
|
15
|
+
});
|
|
16
|
+
private generateHtml;
|
|
17
|
+
createSectionDividerPage: (args: any, options: OptionParams) => Promise<void>;
|
|
18
|
+
createAgendaPage: (args: any, options: OptionParams) => Promise<void>;
|
|
19
|
+
createExecutiveSummaryPage: (args: any, options: OptionParams) => Promise<void>;
|
|
20
|
+
createKeyMessageWithSupportsPage: (args: any, options: OptionParams) => Promise<void>;
|
|
21
|
+
createHypothesisPage: (args: any, options: OptionParams) => Promise<void>;
|
|
22
|
+
createIssueTreePage: (args: any, options: OptionParams) => Promise<void>;
|
|
23
|
+
createDriverTreePage: (args: any, options: OptionParams) => Promise<void>;
|
|
24
|
+
createMeceListPage: (args: any, options: OptionParams) => Promise<void>;
|
|
25
|
+
createPyramidPrinciplePage: (args: any, options: OptionParams) => Promise<void>;
|
|
26
|
+
createScqaPage: (args: any, options: OptionParams) => Promise<void>;
|
|
27
|
+
createSwotPage: (args: any, options: OptionParams) => Promise<void>;
|
|
28
|
+
createThreeCPage: (args: any, options: OptionParams) => Promise<void>;
|
|
29
|
+
createFourPPage: (args: any, options: OptionParams) => Promise<void>;
|
|
30
|
+
createSevenSPage: (args: any, options: OptionParams) => Promise<void>;
|
|
31
|
+
createValueChainPage: (args: any, options: OptionParams) => Promise<void>;
|
|
32
|
+
createPorterFiveForcesPage: (args: any, options: OptionParams) => Promise<void>;
|
|
33
|
+
createBusinessModelCanvasPage: (args: any, options: OptionParams) => Promise<void>;
|
|
34
|
+
createCustomerJourneyPage: (args: any, options: OptionParams) => Promise<void>;
|
|
35
|
+
createStakeholderMapPage: (args: any, options: OptionParams) => Promise<void>;
|
|
36
|
+
createRaciPage: (args: any, options: OptionParams) => Promise<void>;
|
|
37
|
+
createOkrKpiDashboardPage: (args: any, options: OptionParams) => Promise<void>;
|
|
38
|
+
createBalancedScorecardPage: (args: any, options: OptionParams) => Promise<void>;
|
|
39
|
+
createQuarterlyRoadmapPage: (args: any, options: OptionParams) => Promise<void>;
|
|
40
|
+
createMilestoneTimelinePage: (args: any, options: OptionParams) => Promise<void>;
|
|
41
|
+
createGanttSimplePage: (args: any, options: OptionParams) => Promise<void>;
|
|
42
|
+
createWaterfallPage: (args: any, options: OptionParams) => Promise<void>;
|
|
43
|
+
createFunnelPage: (args: any, options: OptionParams) => Promise<void>;
|
|
44
|
+
createTwoByTwoMatrixPage: (args: any, options: OptionParams) => Promise<void>;
|
|
45
|
+
createBcgMatrixPage: (args: any, options: OptionParams) => Promise<void>;
|
|
46
|
+
createGeMcKinseyMatrixPage: (args: any, options: OptionParams) => Promise<void>;
|
|
47
|
+
createMarimekkoPlaceholderPage: (args: any, options: OptionParams) => Promise<void>;
|
|
48
|
+
createBubbleChartPlaceholderPage: (args: any, options: OptionParams) => Promise<void>;
|
|
49
|
+
createHeatmapPlaceholderPage: (args: any, options: OptionParams) => Promise<void>;
|
|
50
|
+
createKpiHighlightPage: (args: any, options: OptionParams) => Promise<void>;
|
|
51
|
+
createBeforeAfterPage: (args: any, options: OptionParams) => Promise<void>;
|
|
52
|
+
createOptionEvaluationPage: (args: any, options: OptionParams) => Promise<void>;
|
|
53
|
+
createRiskMitigationPage: (args: any, options: OptionParams) => Promise<void>;
|
|
54
|
+
createPositioningMapPage: (args: any, options: OptionParams) => Promise<void>;
|
|
55
|
+
createTamSamSomPage: (args: any, options: OptionParams) => Promise<void>;
|
|
56
|
+
createMarketDriversPage: (args: any, options: OptionParams) => Promise<void>;
|
|
57
|
+
createRevenueModelPage: (args: any, options: OptionParams) => Promise<void>;
|
|
58
|
+
createCostStructurePage: (args: any, options: OptionParams) => Promise<void>;
|
|
59
|
+
createOrgChartPage: (args: any, options: OptionParams) => Promise<void>;
|
|
60
|
+
createCapabilityMaturityPage: (args: any, options: OptionParams) => Promise<void>;
|
|
61
|
+
createTechRoadmapPage: (args: any, options: OptionParams) => Promise<void>;
|
|
62
|
+
createDigitalMaturityPage: (args: any, options: OptionParams) => Promise<void>;
|
|
63
|
+
createEcosystemMapPage: (args: any, options: OptionParams) => Promise<void>;
|
|
64
|
+
createChangeCurvePage: (args: any, options: OptionParams) => Promise<void>;
|
|
65
|
+
createCommunicationPlanPage: (args: any, options: OptionParams) => Promise<void>;
|
|
66
|
+
createIntegrationPlanPage: (args: any, options: OptionParams) => Promise<void>;
|
|
67
|
+
createBenchmarkingTablePage: (args: any, options: OptionParams) => Promise<void>;
|
|
68
|
+
createSurveyResultsPage: (args: any, options: OptionParams) => Promise<void>;
|
|
69
|
+
createPersonasPage: (args: any, options: OptionParams) => Promise<void>;
|
|
70
|
+
createSegmentationPage: (args: any, options: OptionParams) => Promise<void>;
|
|
71
|
+
createPricingWaterfallPage: (args: any, options: OptionParams) => Promise<void>;
|
|
72
|
+
createSensitivityAnalysisPage: (args: any, options: OptionParams) => Promise<void>;
|
|
73
|
+
createPLBreakdownPage: (args: any, options: OptionParams) => Promise<void>;
|
|
74
|
+
createCashFlowPage: (args: any, options: OptionParams) => Promise<void>;
|
|
75
|
+
createBalanceSheetPage: (args: any, options: OptionParams) => Promise<void>;
|
|
76
|
+
createShareholderValueTreePage: (args: any, options: OptionParams) => Promise<void>;
|
|
77
|
+
createNpvSummaryPage: (args: any, options: OptionParams) => Promise<void>;
|
|
78
|
+
createScenarioPlanningPage: (args: any, options: OptionParams) => Promise<void>;
|
|
79
|
+
createComplianceHeatmapPage: (args: any, options: OptionParams) => Promise<void>;
|
|
80
|
+
createEsgFrameworkPage: (args: any, options: OptionParams) => Promise<void>;
|
|
81
|
+
createCsrInitiativesPage: (args: any, options: OptionParams) => Promise<void>;
|
|
82
|
+
createSustainabilityRoadmapPage: (args: any, options: OptionParams) => Promise<void>;
|
|
83
|
+
createCircularEconomyMapPage: (args: any, options: OptionParams) => Promise<void>;
|
|
84
|
+
createInnovationFunnelPage: (args: any, options: OptionParams) => Promise<void>;
|
|
85
|
+
createProductRoadmapPage: (args: any, options: OptionParams) => Promise<void>;
|
|
86
|
+
createLaunchPlanPage: (args: any, options: OptionParams) => Promise<void>;
|
|
87
|
+
createPipelineFunnelPage: (args: any, options: OptionParams) => Promise<void>;
|
|
88
|
+
createSalesDashboardPage: (args: any, options: OptionParams) => Promise<void>;
|
|
89
|
+
createMarketingMixPage: (args: any, options: OptionParams) => Promise<void>;
|
|
90
|
+
createCustomerSuccessJourneyPage: (args: any, options: OptionParams) => Promise<void>;
|
|
91
|
+
createSupportOrgModelPage: (args: any, options: OptionParams) => Promise<void>;
|
|
92
|
+
createPartnershipMapPage: (args: any, options: OptionParams) => Promise<void>;
|
|
93
|
+
createMAPipelinePage: (args: any, options: OptionParams) => Promise<void>;
|
|
94
|
+
createSynergyCapturePage: (args: any, options: OptionParams) => Promise<void>;
|
|
95
|
+
createCultureValuesPage: (args: any, options: OptionParams) => Promise<void>;
|
|
96
|
+
createThankYouContactPage: (args: any, options: OptionParams) => Promise<void>;
|
|
97
|
+
}
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.htmlPlugin = void 0;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const utils_1 = require("../utils");
|
|
9
|
+
const nunjucks_1 = __importDefault(require("nunjucks"));
|
|
10
|
+
class htmlPlugin {
|
|
11
|
+
constructor({ outputDir, rootDir, templateOptions }) {
|
|
12
|
+
this.generateHtml = async (args, options) => {
|
|
13
|
+
const { index, name, imageFilePath, htmlFilePath } = options ?? {};
|
|
14
|
+
const tmpName = name?.replace(/^create/, "");
|
|
15
|
+
const fileName = tmpName?.charAt(0)?.toLowerCase() + tmpName?.slice(1);
|
|
16
|
+
const templateFileName = path_1.default.resolve(this.rootDir, "./assets/html2", `${fileName}.html`);
|
|
17
|
+
const outfile = imageFilePath ?? path_1.default.resolve(this.outputDir, `${index}.png`);
|
|
18
|
+
const htmlFile = htmlFilePath ?? path_1.default.resolve(this.outputDir, `${index}.html`);
|
|
19
|
+
return await (0, utils_1.createPage)(outfile, nunjucks_1.default.render(templateFileName, args), { htmlFile, ...this.templateOptions });
|
|
20
|
+
};
|
|
21
|
+
this.createSectionDividerPage = async (args, options) => {
|
|
22
|
+
await this.generateHtml(args, options);
|
|
23
|
+
};
|
|
24
|
+
this.createAgendaPage = async (args, options) => {
|
|
25
|
+
await this.generateHtml(args, options);
|
|
26
|
+
};
|
|
27
|
+
this.createExecutiveSummaryPage = async (args, options) => {
|
|
28
|
+
await this.generateHtml(args, options);
|
|
29
|
+
};
|
|
30
|
+
this.createKeyMessageWithSupportsPage = async (args, options) => {
|
|
31
|
+
await this.generateHtml(args, options);
|
|
32
|
+
};
|
|
33
|
+
this.createHypothesisPage = async (args, options) => {
|
|
34
|
+
await this.generateHtml(args, options);
|
|
35
|
+
};
|
|
36
|
+
this.createIssueTreePage = async (args, options) => {
|
|
37
|
+
await this.generateHtml(args, options);
|
|
38
|
+
};
|
|
39
|
+
this.createDriverTreePage = async (args, options) => {
|
|
40
|
+
await this.generateHtml(args, options);
|
|
41
|
+
};
|
|
42
|
+
this.createMeceListPage = async (args, options) => {
|
|
43
|
+
await this.generateHtml(args, options);
|
|
44
|
+
};
|
|
45
|
+
this.createPyramidPrinciplePage = async (args, options) => {
|
|
46
|
+
await this.generateHtml(args, options);
|
|
47
|
+
};
|
|
48
|
+
this.createScqaPage = async (args, options) => {
|
|
49
|
+
await this.generateHtml(args, options);
|
|
50
|
+
};
|
|
51
|
+
this.createSwotPage = async (args, options) => {
|
|
52
|
+
await this.generateHtml(args, options);
|
|
53
|
+
};
|
|
54
|
+
this.createThreeCPage = async (args, options) => {
|
|
55
|
+
await this.generateHtml(args, options);
|
|
56
|
+
};
|
|
57
|
+
this.createFourPPage = async (args, options) => {
|
|
58
|
+
await this.generateHtml(args, options);
|
|
59
|
+
};
|
|
60
|
+
this.createSevenSPage = async (args, options) => {
|
|
61
|
+
await this.generateHtml(args, options);
|
|
62
|
+
};
|
|
63
|
+
this.createValueChainPage = async (args, options) => {
|
|
64
|
+
await this.generateHtml(args, options);
|
|
65
|
+
};
|
|
66
|
+
this.createPorterFiveForcesPage = async (args, options) => {
|
|
67
|
+
await this.generateHtml(args, options);
|
|
68
|
+
};
|
|
69
|
+
this.createBusinessModelCanvasPage = async (args, options) => {
|
|
70
|
+
await this.generateHtml(args, options);
|
|
71
|
+
};
|
|
72
|
+
this.createCustomerJourneyPage = async (args, options) => {
|
|
73
|
+
await this.generateHtml(args, options);
|
|
74
|
+
};
|
|
75
|
+
this.createStakeholderMapPage = async (args, options) => {
|
|
76
|
+
await this.generateHtml(args, options);
|
|
77
|
+
};
|
|
78
|
+
this.createRaciPage = async (args, options) => {
|
|
79
|
+
await this.generateHtml(args, options);
|
|
80
|
+
};
|
|
81
|
+
this.createOkrKpiDashboardPage = async (args, options) => {
|
|
82
|
+
await this.generateHtml(args, options);
|
|
83
|
+
};
|
|
84
|
+
this.createBalancedScorecardPage = async (args, options) => {
|
|
85
|
+
await this.generateHtml(args, options);
|
|
86
|
+
};
|
|
87
|
+
this.createQuarterlyRoadmapPage = async (args, options) => {
|
|
88
|
+
await this.generateHtml(args, options);
|
|
89
|
+
};
|
|
90
|
+
this.createMilestoneTimelinePage = async (args, options) => {
|
|
91
|
+
await this.generateHtml(args, options);
|
|
92
|
+
};
|
|
93
|
+
this.createGanttSimplePage = async (args, options) => {
|
|
94
|
+
await this.generateHtml(args, options);
|
|
95
|
+
};
|
|
96
|
+
this.createWaterfallPage = async (args, options) => {
|
|
97
|
+
await this.generateHtml(args, options);
|
|
98
|
+
};
|
|
99
|
+
this.createFunnelPage = async (args, options) => {
|
|
100
|
+
await this.generateHtml(args, options);
|
|
101
|
+
};
|
|
102
|
+
this.createTwoByTwoMatrixPage = async (args, options) => {
|
|
103
|
+
await this.generateHtml(args, options);
|
|
104
|
+
};
|
|
105
|
+
this.createBcgMatrixPage = async (args, options) => {
|
|
106
|
+
await this.generateHtml(args, options);
|
|
107
|
+
};
|
|
108
|
+
this.createGeMcKinseyMatrixPage = async (args, options) => {
|
|
109
|
+
await this.generateHtml(args, options);
|
|
110
|
+
};
|
|
111
|
+
this.createMarimekkoPlaceholderPage = async (args, options) => {
|
|
112
|
+
await this.generateHtml(args, options);
|
|
113
|
+
};
|
|
114
|
+
this.createBubbleChartPlaceholderPage = async (args, options) => {
|
|
115
|
+
await this.generateHtml(args, options);
|
|
116
|
+
};
|
|
117
|
+
this.createHeatmapPlaceholderPage = async (args, options) => {
|
|
118
|
+
await this.generateHtml(args, options);
|
|
119
|
+
};
|
|
120
|
+
this.createKpiHighlightPage = async (args, options) => {
|
|
121
|
+
await this.generateHtml(args, options);
|
|
122
|
+
};
|
|
123
|
+
this.createBeforeAfterPage = async (args, options) => {
|
|
124
|
+
await this.generateHtml(args, options);
|
|
125
|
+
};
|
|
126
|
+
this.createOptionEvaluationPage = async (args, options) => {
|
|
127
|
+
await this.generateHtml(args, options);
|
|
128
|
+
};
|
|
129
|
+
this.createRiskMitigationPage = async (args, options) => {
|
|
130
|
+
await this.generateHtml(args, options);
|
|
131
|
+
};
|
|
132
|
+
this.createPositioningMapPage = async (args, options) => {
|
|
133
|
+
await this.generateHtml(args, options);
|
|
134
|
+
};
|
|
135
|
+
this.createTamSamSomPage = async (args, options) => {
|
|
136
|
+
await this.generateHtml(args, options);
|
|
137
|
+
};
|
|
138
|
+
this.createMarketDriversPage = async (args, options) => {
|
|
139
|
+
await this.generateHtml(args, options);
|
|
140
|
+
};
|
|
141
|
+
this.createRevenueModelPage = async (args, options) => {
|
|
142
|
+
await this.generateHtml(args, options);
|
|
143
|
+
};
|
|
144
|
+
this.createCostStructurePage = async (args, options) => {
|
|
145
|
+
await this.generateHtml(args, options);
|
|
146
|
+
};
|
|
147
|
+
this.createOrgChartPage = async (args, options) => {
|
|
148
|
+
await this.generateHtml(args, options);
|
|
149
|
+
};
|
|
150
|
+
this.createCapabilityMaturityPage = async (args, options) => {
|
|
151
|
+
await this.generateHtml(args, options);
|
|
152
|
+
};
|
|
153
|
+
this.createTechRoadmapPage = async (args, options) => {
|
|
154
|
+
await this.generateHtml(args, options);
|
|
155
|
+
};
|
|
156
|
+
this.createDigitalMaturityPage = async (args, options) => {
|
|
157
|
+
await this.generateHtml(args, options);
|
|
158
|
+
};
|
|
159
|
+
this.createEcosystemMapPage = async (args, options) => {
|
|
160
|
+
await this.generateHtml(args, options);
|
|
161
|
+
};
|
|
162
|
+
this.createChangeCurvePage = async (args, options) => {
|
|
163
|
+
await this.generateHtml(args, options);
|
|
164
|
+
};
|
|
165
|
+
this.createCommunicationPlanPage = async (args, options) => {
|
|
166
|
+
await this.generateHtml(args, options);
|
|
167
|
+
};
|
|
168
|
+
this.createIntegrationPlanPage = async (args, options) => {
|
|
169
|
+
await this.generateHtml(args, options);
|
|
170
|
+
};
|
|
171
|
+
this.createBenchmarkingTablePage = async (args, options) => {
|
|
172
|
+
await this.generateHtml(args, options);
|
|
173
|
+
};
|
|
174
|
+
this.createSurveyResultsPage = async (args, options) => {
|
|
175
|
+
await this.generateHtml(args, options);
|
|
176
|
+
};
|
|
177
|
+
this.createPersonasPage = async (args, options) => {
|
|
178
|
+
await this.generateHtml(args, options);
|
|
179
|
+
};
|
|
180
|
+
this.createSegmentationPage = async (args, options) => {
|
|
181
|
+
await this.generateHtml(args, options);
|
|
182
|
+
};
|
|
183
|
+
this.createPricingWaterfallPage = async (args, options) => {
|
|
184
|
+
await this.generateHtml(args, options);
|
|
185
|
+
};
|
|
186
|
+
this.createSensitivityAnalysisPage = async (args, options) => {
|
|
187
|
+
await this.generateHtml(args, options);
|
|
188
|
+
};
|
|
189
|
+
this.createPLBreakdownPage = async (args, options) => {
|
|
190
|
+
await this.generateHtml(args, options);
|
|
191
|
+
};
|
|
192
|
+
this.createCashFlowPage = async (args, options) => {
|
|
193
|
+
await this.generateHtml(args, options);
|
|
194
|
+
};
|
|
195
|
+
this.createBalanceSheetPage = async (args, options) => {
|
|
196
|
+
await this.generateHtml(args, options);
|
|
197
|
+
};
|
|
198
|
+
this.createShareholderValueTreePage = async (args, options) => {
|
|
199
|
+
await this.generateHtml(args, options);
|
|
200
|
+
};
|
|
201
|
+
this.createNpvSummaryPage = async (args, options) => {
|
|
202
|
+
await this.generateHtml(args, options);
|
|
203
|
+
};
|
|
204
|
+
this.createScenarioPlanningPage = async (args, options) => {
|
|
205
|
+
await this.generateHtml(args, options);
|
|
206
|
+
};
|
|
207
|
+
this.createComplianceHeatmapPage = async (args, options) => {
|
|
208
|
+
await this.generateHtml(args, options);
|
|
209
|
+
};
|
|
210
|
+
this.createEsgFrameworkPage = async (args, options) => {
|
|
211
|
+
await this.generateHtml(args, options);
|
|
212
|
+
};
|
|
213
|
+
this.createCsrInitiativesPage = async (args, options) => {
|
|
214
|
+
await this.generateHtml(args, options);
|
|
215
|
+
};
|
|
216
|
+
this.createSustainabilityRoadmapPage = async (args, options) => {
|
|
217
|
+
await this.generateHtml(args, options);
|
|
218
|
+
};
|
|
219
|
+
this.createCircularEconomyMapPage = async (args, options) => {
|
|
220
|
+
await this.generateHtml(args, options);
|
|
221
|
+
};
|
|
222
|
+
this.createInnovationFunnelPage = async (args, options) => {
|
|
223
|
+
await this.generateHtml(args, options);
|
|
224
|
+
};
|
|
225
|
+
this.createProductRoadmapPage = async (args, options) => {
|
|
226
|
+
await this.generateHtml(args, options);
|
|
227
|
+
};
|
|
228
|
+
this.createLaunchPlanPage = async (args, options) => {
|
|
229
|
+
await this.generateHtml(args, options);
|
|
230
|
+
};
|
|
231
|
+
this.createPipelineFunnelPage = async (args, options) => {
|
|
232
|
+
await this.generateHtml(args, options);
|
|
233
|
+
};
|
|
234
|
+
this.createSalesDashboardPage = async (args, options) => {
|
|
235
|
+
await this.generateHtml(args, options);
|
|
236
|
+
};
|
|
237
|
+
this.createMarketingMixPage = async (args, options) => {
|
|
238
|
+
await this.generateHtml(args, options);
|
|
239
|
+
};
|
|
240
|
+
this.createCustomerSuccessJourneyPage = async (args, options) => {
|
|
241
|
+
await this.generateHtml(args, options);
|
|
242
|
+
};
|
|
243
|
+
this.createSupportOrgModelPage = async (args, options) => {
|
|
244
|
+
await this.generateHtml(args, options);
|
|
245
|
+
};
|
|
246
|
+
this.createPartnershipMapPage = async (args, options) => {
|
|
247
|
+
await this.generateHtml(args, options);
|
|
248
|
+
};
|
|
249
|
+
this.createMAPipelinePage = async (args, options) => {
|
|
250
|
+
await this.generateHtml(args, options);
|
|
251
|
+
};
|
|
252
|
+
this.createSynergyCapturePage = async (args, options) => {
|
|
253
|
+
await this.generateHtml(args, options);
|
|
254
|
+
};
|
|
255
|
+
this.createCultureValuesPage = async (args, options) => {
|
|
256
|
+
await this.generateHtml(args, options);
|
|
257
|
+
};
|
|
258
|
+
this.createThankYouContactPage = async (args, options) => {
|
|
259
|
+
await this.generateHtml(args, options);
|
|
260
|
+
};
|
|
261
|
+
this.outputDir = outputDir ?? (0, utils_1.getOutDir)();
|
|
262
|
+
this.rootDir = rootDir ?? (0, utils_1.getRootDir)();
|
|
263
|
+
this.templateOptions = templateOptions ?? {};
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
exports.htmlPlugin = htmlPlugin;
|
package/lib/runner.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toolsRunner: (handler: any, response: any) => Promise<void>;
|
package/lib/runner.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toolsRunner = void 0;
|
|
4
|
+
const graphai_1 = require("graphai");
|
|
5
|
+
// options: fileName, style
|
|
6
|
+
const toolsRunner = async (handler, response) => {
|
|
7
|
+
const nodes = {};
|
|
8
|
+
response.forEach((tool, index) => {
|
|
9
|
+
if (handler[tool.name]) {
|
|
10
|
+
nodes[String(index)] = {
|
|
11
|
+
agent: async (namedInput) => {
|
|
12
|
+
await handler[tool.name](namedInput.data.args, namedInput.data.options);
|
|
13
|
+
},
|
|
14
|
+
inputs: {
|
|
15
|
+
data: { args: tool.arguments, options: { name: tool.name, index } },
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
console.log(tool.name);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const data = {
|
|
24
|
+
version: 0.5,
|
|
25
|
+
concurrency: 4,
|
|
26
|
+
nodes,
|
|
27
|
+
};
|
|
28
|
+
const graphai = new graphai_1.GraphAI(data, {});
|
|
29
|
+
await graphai.run();
|
|
30
|
+
};
|
|
31
|
+
exports.toolsRunner = toolsRunner;
|
package/lib/server.d.ts
ADDED
package/lib/server.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const index_js_1 = require("@modelcontextprotocol/sdk/server/index.js");
|
|
5
|
+
const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
6
|
+
const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
|
|
7
|
+
const graphai_1 = require("graphai");
|
|
8
|
+
const tools_1 = require("./tools");
|
|
9
|
+
const html_class_1 = require("./presentationHandlers/html_class");
|
|
10
|
+
const utils_1 = require("./utils");
|
|
11
|
+
// Load MulmoScript JSON Schema from file
|
|
12
|
+
const server = new index_js_1.Server({
|
|
13
|
+
name: "mulmocast-vision-mcp",
|
|
14
|
+
version: "0.1.0",
|
|
15
|
+
}, {
|
|
16
|
+
capabilities: {
|
|
17
|
+
tools: {},
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
// List available tools
|
|
21
|
+
server.setRequestHandler(types_js_1.ListToolsRequestSchema, async () => {
|
|
22
|
+
return {
|
|
23
|
+
tools: tools_1.tools
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
const rootDir = (0, utils_1.getRootDir)();
|
|
27
|
+
const outputDir = (0, utils_1.getOutDir)();
|
|
28
|
+
(0, utils_1.mkdir)(outputDir);
|
|
29
|
+
const handler = new html_class_1.htmlPlugin({ outputDir, rootDir });
|
|
30
|
+
let index = 0;
|
|
31
|
+
// Handle tool calls
|
|
32
|
+
server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
|
|
33
|
+
const { name, arguments: args } = request.params;
|
|
34
|
+
try {
|
|
35
|
+
if (name in handler) {
|
|
36
|
+
const key = name;
|
|
37
|
+
const method = handler[key];
|
|
38
|
+
if (typeof method === "function") {
|
|
39
|
+
// if (handler[name]) {
|
|
40
|
+
index = index + 1;
|
|
41
|
+
method(args, { name, index });
|
|
42
|
+
return {
|
|
43
|
+
content: [
|
|
44
|
+
{
|
|
45
|
+
type: "text",
|
|
46
|
+
text: `html generated successfully to: ${outputDir}`,
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
throw new Error(`Unknown command: ${name}.`);
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
56
|
+
return {
|
|
57
|
+
content: [
|
|
58
|
+
{
|
|
59
|
+
type: "text",
|
|
60
|
+
text: `Error: ${errorMessage}`,
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
isError: true,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
// Start the server
|
|
68
|
+
async function main() {
|
|
69
|
+
const transport = new stdio_js_1.StdioServerTransport();
|
|
70
|
+
await server.connect(transport);
|
|
71
|
+
graphai_1.GraphAILogger.error("MulmoCast MCP Server running on stdio");
|
|
72
|
+
}
|
|
73
|
+
main().catch((error) => {
|
|
74
|
+
graphai_1.GraphAILogger.error("Failed to start MCP server:", error);
|
|
75
|
+
process.exit(1);
|
|
76
|
+
});
|
package/lib/tools.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tools: any;
|