@h4shed/skill-mermaid-terminal 1.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/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @fused-gaming/skill-mermaid-terminal
2
+
3
+ Generate terminal-friendly Mermaid diagrams and flowcharts.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @fused-gaming/skill-mermaid-terminal
9
+ ```
10
+
11
+ ## Tools
12
+
13
+ ### `generate-mermaid-diagram`
14
+
15
+ Generate terminal-friendly Mermaid diagrams and flowcharts.
16
+
17
+ ## Implementation Status
18
+
19
+ - ✅ Package scaffolded
20
+ - ✅ Tool schema and handler stub
21
+ - ⏳ Full production implementation pending roadmap prioritization
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@h4shed/skill-mermaid-terminal",
3
+ "version": "1.0.1",
4
+ "description": "Generate terminal-friendly Mermaid diagrams and flowcharts.",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "exports": {
8
+ ".": "./dist/index.js"
9
+ },
10
+ "scripts": {
11
+ "build": "tsc --project tsconfig.json",
12
+ "dev": "tsc --project tsconfig.json --watch",
13
+ "test": "echo \"No tests yet\""
14
+ },
15
+ "dependencies": {
16
+ "@h4shed/mcp-core": "1.0.1"
17
+ },
18
+ "devDependencies": {
19
+ "@types/node": "^20.12.0",
20
+ "typescript": "^5.3.2"
21
+ },
22
+ "keywords": [
23
+ "mcp",
24
+ "skill",
25
+ "planning",
26
+ "automation"
27
+ ],
28
+ "author": "Fused Gaming",
29
+ "license": "Apache-2.0"
30
+ }
package/src/index.ts ADDED
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Mermaid Terminal Skill
3
+ * Generate terminal-friendly Mermaid diagrams and flowcharts.
4
+ */
5
+
6
+ import type { Skill, SkillConfig } from "@fused-gaming/mcp-core";
7
+ import { GenerateMermaidDiagramTool } from "./tools/generate-mermaid-diagram.js";
8
+
9
+ export const MermaidTerminalSkill: Skill = {
10
+ name: "mermaid-terminal",
11
+ version: "1.0.0",
12
+ description: "Generate terminal-friendly Mermaid diagrams and flowcharts.",
13
+ tools: [GenerateMermaidDiagramTool],
14
+
15
+ async initialize(_config: SkillConfig): Promise<void> {
16
+ console.log("[Mermaid Terminal] Skill initialized");
17
+ },
18
+
19
+ async cleanup(): Promise<void> {
20
+ console.log("[Mermaid Terminal] Skill cleaned up");
21
+ },
22
+ };
23
+
24
+ export default MermaidTerminalSkill;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Mermaid Terminal Tool
3
+ * Generate terminal-friendly Mermaid diagrams and flowcharts.
4
+ */
5
+
6
+ import type { ToolDefinition } from "@fused-gaming/mcp-core";
7
+
8
+ export const GenerateMermaidDiagramTool: ToolDefinition = {
9
+ name: "generate-mermaid-diagram",
10
+ description: "Generate terminal-friendly Mermaid diagrams and flowcharts.",
11
+ inputSchema: {
12
+ type: "object",
13
+ properties: {
14
+ objective: {
15
+ type: "string",
16
+ description: "Primary objective for this tool invocation",
17
+ },
18
+ context: {
19
+ type: "string",
20
+ description: "Optional contextual details",
21
+ },
22
+ },
23
+ required: ["objective"],
24
+ },
25
+
26
+ async handler(input: Record<string, unknown>): Promise<Record<string, unknown>> {
27
+ const { objective, context = "" } = input as { objective: string; context?: string };
28
+
29
+ return {
30
+ success: true,
31
+ tool: "generate-mermaid-diagram",
32
+ objective,
33
+ context,
34
+ note: "Scaffold implementation complete; full logic pending.",
35
+ };
36
+ },
37
+ };
package/tsconfig.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "./src",
5
+ "outDir": "./dist",
6
+ "baseUrl": "./",
7
+ "paths": {
8
+ "@/*": ["src/*"]
9
+ }
10
+ },
11
+ "include": ["src/**/*.ts"],
12
+ "exclude": ["node_modules", "dist"]
13
+ }