UNPKG

@paulohenriquevn/m2js

Version:

Transform TypeScript/JavaScript code into LLM-friendly Markdown summaries + Smart Dead Code Detection + Graph-Deep Diff Analysis. Extract exported functions, classes, and JSDoc comments for better AI context with 60%+ token reduction. Intelligent dead cod

81 lines 2.58 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NEUTRAL_NODE_TYPES = exports.NEUTRAL_THEME = void 0; exports.generateNeutralCSS = generateNeutralCSS; exports.NEUTRAL_THEME = { theme: 'neutral', flowchart: { curve: 'basis', padding: 10, useMaxWidth: true, }, themeVariables: { primaryColor: '#3498db', primaryTextColor: '#2c3e50', primaryBorderColor: '#2980b9', lineColor: '#7f8c8d', }, }; exports.NEUTRAL_NODE_TYPES = { cli: { type: 'cli', icon: 'UI', color: '#e74c3c', description: 'Command-line interface', }, parser: { type: 'parser', icon: 'UTIL', color: '#9b59b6', description: 'Code parsing and AST analysis', }, generator: { type: 'generator', icon: 'MODEL', color: '#27ae60', description: 'Markdown generation', }, analyzer: { type: 'analyzer', icon: 'TEST', color: '#f39c12', description: 'Dependency analysis', }, types: { type: 'types', icon: 'CONFIG', color: '#34495e', description: 'Type definitions', }, utils: { type: 'utils', icon: 'BUILD', color: '#7f8c8d', description: 'Utility functions', }, test: { type: 'test', icon: 'E2E', color: '#16a085', description: 'Test files', }, core: { type: 'core', icon: 'SYS', color: '#2c3e50', description: 'Core functionality', }, }; function generateNeutralCSS() { return ` classDef cli fill:${exports.NEUTRAL_NODE_TYPES.cli.color},stroke:#fff,stroke-width:2px,color:#fff; classDef parser fill:${exports.NEUTRAL_NODE_TYPES.parser.color},stroke:#fff,stroke-width:2px,color:#fff; classDef generator fill:${exports.NEUTRAL_NODE_TYPES.generator.color},stroke:#fff,stroke-width:2px,color:#fff; classDef analyzer fill:${exports.NEUTRAL_NODE_TYPES.analyzer.color},stroke:#fff,stroke-width:2px,color:#fff; classDef types fill:${exports.NEUTRAL_NODE_TYPES.types.color},stroke:#fff,stroke-width:2px,color:#fff; classDef utils fill:${exports.NEUTRAL_NODE_TYPES.utils.color},stroke:#fff,stroke-width:2px,color:#fff; classDef test fill:${exports.NEUTRAL_NODE_TYPES.test.color},stroke:#fff,stroke-width:2px,color:#fff; classDef core fill:${exports.NEUTRAL_NODE_TYPES.core.color},stroke:#fff,stroke-width:2px,color:#fff; `.trim(); } //# sourceMappingURL=neutral.js.map