vibe-coding-mcp 2.3.0
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 +179 -0
- package/dist/__tests__/collectCodeContext.test.d.ts +2 -0
- package/dist/__tests__/collectCodeContext.test.d.ts.map +1 -0
- package/dist/__tests__/collectCodeContext.test.js +139 -0
- package/dist/__tests__/collectCodeContext.test.js.map +1 -0
- package/dist/__tests__/createSessionLog.test.d.ts +2 -0
- package/dist/__tests__/createSessionLog.test.d.ts.map +1 -0
- package/dist/__tests__/createSessionLog.test.js +130 -0
- package/dist/__tests__/createSessionLog.test.js.map +1 -0
- package/dist/__tests__/generateDevDocument.test.d.ts +2 -0
- package/dist/__tests__/generateDevDocument.test.d.ts.map +1 -0
- package/dist/__tests__/generateDevDocument.test.js +174 -0
- package/dist/__tests__/generateDevDocument.test.js.map +1 -0
- package/dist/__tests__/normalizeForPlatform.test.d.ts +2 -0
- package/dist/__tests__/normalizeForPlatform.test.d.ts.map +1 -0
- package/dist/__tests__/normalizeForPlatform.test.js +171 -0
- package/dist/__tests__/normalizeForPlatform.test.js.map +1 -0
- package/dist/__tests__/publishDocument.test.d.ts +2 -0
- package/dist/__tests__/publishDocument.test.d.ts.map +1 -0
- package/dist/__tests__/publishDocument.test.js +93 -0
- package/dist/__tests__/publishDocument.test.js.map +1 -0
- package/dist/__tests__/summarizeDesignDecisions.test.d.ts +2 -0
- package/dist/__tests__/summarizeDesignDecisions.test.d.ts.map +1 -0
- package/dist/__tests__/summarizeDesignDecisions.test.js +158 -0
- package/dist/__tests__/summarizeDesignDecisions.test.js.map +1 -0
- package/dist/core/cache.d.ts +39 -0
- package/dist/core/cache.d.ts.map +1 -0
- package/dist/core/cache.js +112 -0
- package/dist/core/cache.js.map +1 -0
- package/dist/core/config.d.ts +30 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +90 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/errors.d.ts +52 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js +99 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/logger.d.ts +57 -0
- package/dist/core/logger.d.ts.map +1 -0
- package/dist/core/logger.js +114 -0
- package/dist/core/logger.js.map +1 -0
- package/dist/core/schemas.d.ts +690 -0
- package/dist/core/schemas.d.ts.map +1 -0
- package/dist/core/schemas.js +136 -0
- package/dist/core/schemas.js.map +1 -0
- package/dist/core/security.d.ts +28 -0
- package/dist/core/security.d.ts.map +1 -0
- package/dist/core/security.js +103 -0
- package/dist/core/security.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +168 -0
- package/dist/index.js.map +1 -0
- package/dist/platforms/confluence.d.ts +13 -0
- package/dist/platforms/confluence.d.ts.map +1 -0
- package/dist/platforms/confluence.js +178 -0
- package/dist/platforms/confluence.js.map +1 -0
- package/dist/platforms/discord.d.ts +54 -0
- package/dist/platforms/discord.d.ts.map +1 -0
- package/dist/platforms/discord.js +176 -0
- package/dist/platforms/discord.js.map +1 -0
- package/dist/platforms/github-wiki.d.ts +3 -0
- package/dist/platforms/github-wiki.d.ts.map +1 -0
- package/dist/platforms/github-wiki.js +120 -0
- package/dist/platforms/github-wiki.js.map +1 -0
- package/dist/platforms/notion.d.ts +3 -0
- package/dist/platforms/notion.d.ts.map +1 -0
- package/dist/platforms/notion.js +205 -0
- package/dist/platforms/notion.js.map +1 -0
- package/dist/platforms/obsidian.d.ts +3 -0
- package/dist/platforms/obsidian.d.ts.map +1 -0
- package/dist/platforms/obsidian.js +43 -0
- package/dist/platforms/obsidian.js.map +1 -0
- package/dist/platforms/slack.d.ts +21 -0
- package/dist/platforms/slack.d.ts.map +1 -0
- package/dist/platforms/slack.js +217 -0
- package/dist/platforms/slack.js.map +1 -0
- package/dist/stdio.d.ts +6 -0
- package/dist/stdio.d.ts.map +1 -0
- package/dist/stdio.js +98 -0
- package/dist/stdio.js.map +1 -0
- package/dist/tools/analyzeCode.d.ts +65 -0
- package/dist/tools/analyzeCode.d.ts.map +1 -0
- package/dist/tools/analyzeCode.js +113 -0
- package/dist/tools/analyzeCode.js.map +1 -0
- package/dist/tools/collectCodeContext.d.ts +86 -0
- package/dist/tools/collectCodeContext.d.ts.map +1 -0
- package/dist/tools/collectCodeContext.js +275 -0
- package/dist/tools/collectCodeContext.js.map +1 -0
- package/dist/tools/createSessionLog.d.ts +79 -0
- package/dist/tools/createSessionLog.d.ts.map +1 -0
- package/dist/tools/createSessionLog.js +160 -0
- package/dist/tools/createSessionLog.js.map +1 -0
- package/dist/tools/generateDevDocument.d.ts +216 -0
- package/dist/tools/generateDevDocument.d.ts.map +1 -0
- package/dist/tools/generateDevDocument.js +659 -0
- package/dist/tools/generateDevDocument.js.map +1 -0
- package/dist/tools/normalizeForPlatform.d.ts +95 -0
- package/dist/tools/normalizeForPlatform.d.ts.map +1 -0
- package/dist/tools/normalizeForPlatform.js +340 -0
- package/dist/tools/normalizeForPlatform.js.map +1 -0
- package/dist/tools/publishDocument.d.ts +60 -0
- package/dist/tools/publishDocument.d.ts.map +1 -0
- package/dist/tools/publishDocument.js +117 -0
- package/dist/tools/publishDocument.js.map +1 -0
- package/dist/tools/summarizeDesignDecisions.d.ts +82 -0
- package/dist/tools/summarizeDesignDecisions.d.ts.map +1 -0
- package/dist/tools/summarizeDesignDecisions.js +361 -0
- package/dist/tools/summarizeDesignDecisions.js.map +1 -0
- package/dist/types/index.d.ts +63 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/astParser.d.ts +55 -0
- package/dist/utils/astParser.d.ts.map +1 -0
- package/dist/utils/astParser.js +333 -0
- package/dist/utils/astParser.js.map +1 -0
- package/dist/utils/i18n.d.ts +67 -0
- package/dist/utils/i18n.d.ts.map +1 -0
- package/dist/utils/i18n.js +193 -0
- package/dist/utils/i18n.js.map +1 -0
- package/dist/utils/markdown.d.ts +9 -0
- package/dist/utils/markdown.d.ts.map +1 -0
- package/dist/utils/markdown.js +99 -0
- package/dist/utils/markdown.js.map +1 -0
- package/dist/utils/mermaidGenerator.d.ts +69 -0
- package/dist/utils/mermaidGenerator.d.ts.map +1 -0
- package/dist/utils/mermaidGenerator.js +315 -0
- package/dist/utils/mermaidGenerator.js.map +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { generateId, formatDate, getCurrentTimestamp } from '../utils/markdown.js';
|
|
2
|
+
import { validatePathWithinDirectory, sanitizeFilename } from '../core/security.js';
|
|
3
|
+
import * as fs from 'fs/promises';
|
|
4
|
+
import * as path from 'path';
|
|
5
|
+
export async function createSessionLog(input) {
|
|
6
|
+
const sessionLog = {
|
|
7
|
+
sessionId: generateId(),
|
|
8
|
+
date: formatDate(),
|
|
9
|
+
title: input.title,
|
|
10
|
+
summary: input.summary,
|
|
11
|
+
codeContexts: input.codeContexts || [],
|
|
12
|
+
designDecisions: input.designDecisions || [],
|
|
13
|
+
duration: input.duration,
|
|
14
|
+
tags: input.tags
|
|
15
|
+
};
|
|
16
|
+
const options = input.options || { logType: 'session', format: 'markdown' };
|
|
17
|
+
let content;
|
|
18
|
+
let filePath;
|
|
19
|
+
if (options.format === 'json') {
|
|
20
|
+
content = JSON.stringify(sessionLog, null, 2);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
content = generateMarkdownLog(sessionLog, options.logType);
|
|
24
|
+
}
|
|
25
|
+
// 파일로 저장
|
|
26
|
+
if (options.outputPath) {
|
|
27
|
+
const extension = options.format === 'json' ? '.json' : '.md';
|
|
28
|
+
const rawFilename = options.logType === 'daily'
|
|
29
|
+
? `${formatDate()}-daily-log${extension}`
|
|
30
|
+
: `${sessionLog.sessionId}${extension}`;
|
|
31
|
+
// Sanitize filename and validate path
|
|
32
|
+
const safeFilename = sanitizeFilename(rawFilename) + (rawFilename.endsWith(extension) ? '' : extension);
|
|
33
|
+
const targetPath = path.join(options.outputPath, safeFilename);
|
|
34
|
+
try {
|
|
35
|
+
// Validate path stays within output directory (prevent path traversal)
|
|
36
|
+
filePath = validatePathWithinDirectory(targetPath, options.outputPath);
|
|
37
|
+
await fs.mkdir(path.dirname(filePath), { recursive: true });
|
|
38
|
+
await fs.writeFile(filePath, content, 'utf-8');
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
// 파일 저장 실패시 filePath를 undefined로
|
|
42
|
+
filePath = undefined;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
sessionLog,
|
|
47
|
+
filePath,
|
|
48
|
+
content
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function generateMarkdownLog(log, logType) {
|
|
52
|
+
let md = '';
|
|
53
|
+
if (logType === 'daily') {
|
|
54
|
+
md += `# Daily Vibe Coding Log - ${log.date}\n\n`;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
md += `# Session: ${log.title}\n\n`;
|
|
58
|
+
md += `**Session ID:** ${log.sessionId}\n`;
|
|
59
|
+
md += `**Date:** ${log.date}\n`;
|
|
60
|
+
}
|
|
61
|
+
if (log.duration) {
|
|
62
|
+
md += `**Duration:** ${Math.round(log.duration / 60)} minutes\n`;
|
|
63
|
+
}
|
|
64
|
+
if (log.tags && log.tags.length > 0) {
|
|
65
|
+
md += `**Tags:** ${log.tags.map(t => `#${t}`).join(' ')}\n`;
|
|
66
|
+
}
|
|
67
|
+
md += '\n---\n\n';
|
|
68
|
+
md += `## Summary\n\n${log.summary}\n\n`;
|
|
69
|
+
if (log.codeContexts.length > 0) {
|
|
70
|
+
md += `## Code Contexts\n\n`;
|
|
71
|
+
for (const context of log.codeContexts) {
|
|
72
|
+
md += `### ${context.timestamp}\n\n`;
|
|
73
|
+
md += context.conversationSummary + '\n\n';
|
|
74
|
+
if (context.codeBlocks.length > 0) {
|
|
75
|
+
md += `<details>\n<summary>View Code (${context.codeBlocks.length} blocks)</summary>\n\n`;
|
|
76
|
+
for (const block of context.codeBlocks) {
|
|
77
|
+
md += `\`\`\`${block.language}\n${block.code}\n\`\`\`\n\n`;
|
|
78
|
+
}
|
|
79
|
+
md += `</details>\n\n`;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (log.designDecisions.length > 0) {
|
|
84
|
+
md += `## Design Decisions\n\n`;
|
|
85
|
+
for (const decision of log.designDecisions) {
|
|
86
|
+
md += `### ${decision.title}\n\n`;
|
|
87
|
+
md += `**Category:** ${decision.category}\n\n`;
|
|
88
|
+
md += decision.description + '\n\n';
|
|
89
|
+
if (decision.rationale) {
|
|
90
|
+
md += `> **Rationale:** ${decision.rationale}\n\n`;
|
|
91
|
+
}
|
|
92
|
+
if (decision.alternatives && decision.alternatives.length > 0) {
|
|
93
|
+
md += `**Alternatives considered:**\n`;
|
|
94
|
+
for (const alt of decision.alternatives) {
|
|
95
|
+
md += `- ${alt}\n`;
|
|
96
|
+
}
|
|
97
|
+
md += '\n';
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
md += `---\n\n*Log generated at ${getCurrentTimestamp()}*\n`;
|
|
102
|
+
return md;
|
|
103
|
+
}
|
|
104
|
+
export const createSessionLogSchema = {
|
|
105
|
+
name: 'muse_create_session_log',
|
|
106
|
+
description: 'Creates daily or session-based vibe coding session logs.',
|
|
107
|
+
inputSchema: {
|
|
108
|
+
type: 'object',
|
|
109
|
+
properties: {
|
|
110
|
+
title: {
|
|
111
|
+
type: 'string',
|
|
112
|
+
description: 'Title of the session'
|
|
113
|
+
},
|
|
114
|
+
summary: {
|
|
115
|
+
type: 'string',
|
|
116
|
+
description: 'Summary of what was accomplished'
|
|
117
|
+
},
|
|
118
|
+
codeContexts: {
|
|
119
|
+
type: 'array',
|
|
120
|
+
description: 'Array of code contexts from the session',
|
|
121
|
+
items: { type: 'object' }
|
|
122
|
+
},
|
|
123
|
+
designDecisions: {
|
|
124
|
+
type: 'array',
|
|
125
|
+
description: 'Array of design decisions made',
|
|
126
|
+
items: { type: 'object' }
|
|
127
|
+
},
|
|
128
|
+
duration: {
|
|
129
|
+
type: 'number',
|
|
130
|
+
description: 'Session duration in seconds'
|
|
131
|
+
},
|
|
132
|
+
tags: {
|
|
133
|
+
type: 'array',
|
|
134
|
+
items: { type: 'string' },
|
|
135
|
+
description: 'Tags for the session'
|
|
136
|
+
},
|
|
137
|
+
options: {
|
|
138
|
+
type: 'object',
|
|
139
|
+
properties: {
|
|
140
|
+
logType: {
|
|
141
|
+
type: 'string',
|
|
142
|
+
enum: ['daily', 'session'],
|
|
143
|
+
description: 'Type of log to create'
|
|
144
|
+
},
|
|
145
|
+
outputPath: {
|
|
146
|
+
type: 'string',
|
|
147
|
+
description: 'Directory path to save the log file'
|
|
148
|
+
},
|
|
149
|
+
format: {
|
|
150
|
+
type: 'string',
|
|
151
|
+
enum: ['markdown', 'json'],
|
|
152
|
+
description: 'Output format of the log'
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
required: ['title', 'summary']
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
//# sourceMappingURL=createSessionLog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSessionLog.js","sourceRoot":"","sources":["../../src/tools/createSessionLog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAkB7B,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,KAA4B;IACjE,MAAM,UAAU,GAAe;QAC7B,SAAS,EAAE,UAAU,EAAE;QACvB,IAAI,EAAE,UAAU,EAAE;QAClB,KAAK,EAAE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BACP,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC;wBAC1B,WAAW,EAAE,uBAAuB;qBACrC;oBACD,UAAU,EAAE;wBACV,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,qCAAqC;qBACnD;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;wBAC1B,WAAW,EAAE,0BAA0B;qBACxC;iBACF;aACF;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC;KAC/B;CACF,CAAC"}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { DocumentType, CodeContext, DesignDecision } from '../types/index.js';
|
|
2
|
+
export interface GenerateDevDocumentInput {
|
|
3
|
+
documentType: DocumentType;
|
|
4
|
+
title?: string;
|
|
5
|
+
projectName?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
codeContexts?: CodeContext[];
|
|
8
|
+
designDecisions?: DesignDecision[];
|
|
9
|
+
customSections?: Record<string, string>;
|
|
10
|
+
includeTableOfContents?: boolean;
|
|
11
|
+
language?: 'en' | 'ko';
|
|
12
|
+
author?: string;
|
|
13
|
+
version?: string;
|
|
14
|
+
license?: string;
|
|
15
|
+
repository?: string;
|
|
16
|
+
badges?: {
|
|
17
|
+
label: string;
|
|
18
|
+
message: string;
|
|
19
|
+
color: string;
|
|
20
|
+
}[];
|
|
21
|
+
features?: string[];
|
|
22
|
+
installation?: {
|
|
23
|
+
steps: string[];
|
|
24
|
+
requirements?: string[];
|
|
25
|
+
};
|
|
26
|
+
apiReference?: {
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
params?: string[];
|
|
30
|
+
returns?: string;
|
|
31
|
+
}[];
|
|
32
|
+
faq?: {
|
|
33
|
+
question: string;
|
|
34
|
+
answer: string;
|
|
35
|
+
}[];
|
|
36
|
+
contributors?: {
|
|
37
|
+
name: string;
|
|
38
|
+
role?: string;
|
|
39
|
+
}[];
|
|
40
|
+
}
|
|
41
|
+
export interface GenerateDevDocumentOutput {
|
|
42
|
+
document: string;
|
|
43
|
+
documentType: DocumentType;
|
|
44
|
+
generatedAt: string;
|
|
45
|
+
wordCount: number;
|
|
46
|
+
sections: string[];
|
|
47
|
+
}
|
|
48
|
+
export declare function generateDevDocument(input: GenerateDevDocumentInput): GenerateDevDocumentOutput;
|
|
49
|
+
export declare const generateDevDocumentSchema: {
|
|
50
|
+
name: string;
|
|
51
|
+
description: string;
|
|
52
|
+
inputSchema: {
|
|
53
|
+
type: string;
|
|
54
|
+
properties: {
|
|
55
|
+
documentType: {
|
|
56
|
+
type: string;
|
|
57
|
+
enum: string[];
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
title: {
|
|
61
|
+
type: string;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
projectName: {
|
|
65
|
+
type: string;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
description: {
|
|
69
|
+
type: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
language: {
|
|
73
|
+
type: string;
|
|
74
|
+
enum: string[];
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
author: {
|
|
78
|
+
type: string;
|
|
79
|
+
description: string;
|
|
80
|
+
};
|
|
81
|
+
version: {
|
|
82
|
+
type: string;
|
|
83
|
+
description: string;
|
|
84
|
+
};
|
|
85
|
+
license: {
|
|
86
|
+
type: string;
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
repository: {
|
|
90
|
+
type: string;
|
|
91
|
+
description: string;
|
|
92
|
+
};
|
|
93
|
+
badges: {
|
|
94
|
+
type: string;
|
|
95
|
+
description: string;
|
|
96
|
+
items: {
|
|
97
|
+
type: string;
|
|
98
|
+
properties: {
|
|
99
|
+
label: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
message: {
|
|
103
|
+
type: string;
|
|
104
|
+
};
|
|
105
|
+
color: {
|
|
106
|
+
type: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
features: {
|
|
112
|
+
type: string;
|
|
113
|
+
items: {
|
|
114
|
+
type: string;
|
|
115
|
+
};
|
|
116
|
+
description: string;
|
|
117
|
+
};
|
|
118
|
+
installation: {
|
|
119
|
+
type: string;
|
|
120
|
+
description: string;
|
|
121
|
+
properties: {
|
|
122
|
+
steps: {
|
|
123
|
+
type: string;
|
|
124
|
+
items: {
|
|
125
|
+
type: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
requirements: {
|
|
129
|
+
type: string;
|
|
130
|
+
items: {
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
apiReference: {
|
|
137
|
+
type: string;
|
|
138
|
+
description: string;
|
|
139
|
+
items: {
|
|
140
|
+
type: string;
|
|
141
|
+
properties: {
|
|
142
|
+
name: {
|
|
143
|
+
type: string;
|
|
144
|
+
};
|
|
145
|
+
description: {
|
|
146
|
+
type: string;
|
|
147
|
+
};
|
|
148
|
+
params: {
|
|
149
|
+
type: string;
|
|
150
|
+
items: {
|
|
151
|
+
type: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
returns: {
|
|
155
|
+
type: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
faq: {
|
|
161
|
+
type: string;
|
|
162
|
+
description: string;
|
|
163
|
+
items: {
|
|
164
|
+
type: string;
|
|
165
|
+
properties: {
|
|
166
|
+
question: {
|
|
167
|
+
type: string;
|
|
168
|
+
};
|
|
169
|
+
answer: {
|
|
170
|
+
type: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
contributors: {
|
|
176
|
+
type: string;
|
|
177
|
+
description: string;
|
|
178
|
+
items: {
|
|
179
|
+
type: string;
|
|
180
|
+
properties: {
|
|
181
|
+
name: {
|
|
182
|
+
type: string;
|
|
183
|
+
};
|
|
184
|
+
role: {
|
|
185
|
+
type: string;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
codeContexts: {
|
|
191
|
+
type: string;
|
|
192
|
+
description: string;
|
|
193
|
+
items: {
|
|
194
|
+
type: string;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
designDecisions: {
|
|
198
|
+
type: string;
|
|
199
|
+
description: string;
|
|
200
|
+
items: {
|
|
201
|
+
type: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
customSections: {
|
|
205
|
+
type: string;
|
|
206
|
+
description: string;
|
|
207
|
+
};
|
|
208
|
+
includeTableOfContents: {
|
|
209
|
+
type: string;
|
|
210
|
+
description: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
required: string[];
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
//# sourceMappingURL=generateDevDocument.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateDevDocument.d.ts","sourceRoot":"","sources":["../../src/tools/generateDevDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAG9E,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,sBAAsB,CAAC,EAA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