@refrakt-md/cli 0.5.0 → 0.5.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/dist/bin.js +222 -0
- package/dist/bin.js.map +1 -1
- package/dist/commands/edit.d.ts +8 -0
- package/dist/commands/edit.d.ts.map +1 -0
- package/dist/commands/edit.js +100 -0
- package/dist/commands/edit.js.map +1 -0
- package/dist/commands/extract.d.ts +10 -0
- package/dist/commands/extract.d.ts.map +1 -0
- package/dist/commands/extract.js +158 -0
- package/dist/commands/extract.js.map +1 -0
- package/dist/commands/theme.d.ts +10 -0
- package/dist/commands/theme.d.ts.map +1 -0
- package/dist/commands/theme.js +160 -0
- package/dist/commands/theme.js.map +1 -0
- package/dist/config-file.d.ts +15 -0
- package/dist/config-file.d.ts.map +1 -0
- package/dist/config-file.js +47 -0
- package/dist/config-file.js.map +1 -0
- package/dist/extractors/index.d.ts +3 -0
- package/dist/extractors/index.d.ts.map +1 -0
- package/dist/extractors/index.js +15 -0
- package/dist/extractors/index.js.map +1 -0
- package/dist/extractors/python.d.ts +6 -0
- package/dist/extractors/python.d.ts.map +1 -0
- package/dist/extractors/python.js +8 -0
- package/dist/extractors/python.js.map +1 -0
- package/dist/extractors/types.d.ts +55 -0
- package/dist/extractors/types.d.ts.map +1 -0
- package/dist/extractors/types.js +2 -0
- package/dist/extractors/types.js.map +1 -0
- package/dist/extractors/typescript.d.ts +28 -0
- package/dist/extractors/typescript.d.ts.map +1 -0
- package/dist/extractors/typescript.js +566 -0
- package/dist/extractors/typescript.js.map +1 -0
- package/dist/lib/layout-generator.d.ts +8 -0
- package/dist/lib/layout-generator.d.ts.map +1 -0
- package/dist/lib/layout-generator.js +22 -0
- package/dist/lib/layout-generator.js.map +1 -0
- package/dist/lib/symbol-generator.d.ts +14 -0
- package/dist/lib/symbol-generator.d.ts.map +1 -0
- package/dist/lib/symbol-generator.js +202 -0
- package/dist/lib/symbol-generator.js.map +1 -0
- package/package.json +8 -6
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SymbolDoc } from '../extractors/types.js';
|
|
2
|
+
export interface GeneratorOptions {
|
|
3
|
+
/** Base heading level for the symbol name (default: 2 = ##) */
|
|
4
|
+
headingLevel?: number;
|
|
5
|
+
/** Whether to include frontmatter (default: true) */
|
|
6
|
+
frontmatter?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** Convert camelCase/PascalCase to kebab-case for file slugs */
|
|
9
|
+
export declare function toSlug(name: string): string;
|
|
10
|
+
/** Generate a single {% symbol %} Markdown block for one SymbolDoc */
|
|
11
|
+
export declare function generateSymbolMarkdown(doc: SymbolDoc, options?: GeneratorOptions): string;
|
|
12
|
+
/** Generate a single file containing multiple symbols from the same source file */
|
|
13
|
+
export declare function generateMultiSymbolMarkdown(docs: SymbolDoc[], fileName: string): string;
|
|
14
|
+
//# sourceMappingURL=symbol-generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"symbol-generator.d.ts","sourceRoot":"","sources":["../../src/lib/symbol-generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAgD,MAAM,wBAAwB,CAAC;AAEtG,MAAM,WAAW,gBAAgB;IAChC,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qDAAqD;IACrD,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAQD,gEAAgE;AAChE,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAK3C;AAoED,sEAAsE;AACtE,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,MAAM,CAmIzF;AAED,mFAAmF;AACnF,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAcvF"}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
const GROUP_KINDS = ['class', 'interface', 'module'];
|
|
2
|
+
function isGroupKind(kind) {
|
|
3
|
+
return GROUP_KINDS.includes(kind);
|
|
4
|
+
}
|
|
5
|
+
/** Convert camelCase/PascalCase to kebab-case for file slugs */
|
|
6
|
+
export function toSlug(name) {
|
|
7
|
+
return name
|
|
8
|
+
.replace(/([a-z0-9])([A-Z])/g, '$1-$2')
|
|
9
|
+
.replace(/([A-Z])([A-Z][a-z])/g, '$1-$2')
|
|
10
|
+
.toLowerCase();
|
|
11
|
+
}
|
|
12
|
+
function escapeYaml(s) {
|
|
13
|
+
if (/[:"'{}\[\]#&*!|>%@`]/.test(s) || s.startsWith(' ') || s.endsWith(' ')) {
|
|
14
|
+
return `"${s.replace(/"/g, '\\"')}"`;
|
|
15
|
+
}
|
|
16
|
+
return s;
|
|
17
|
+
}
|
|
18
|
+
function heading(level, text) {
|
|
19
|
+
return `${'#'.repeat(level)} ${text}`;
|
|
20
|
+
}
|
|
21
|
+
function formatParameter(param) {
|
|
22
|
+
const optionalMark = param.optional ? ' *(optional)*' : '';
|
|
23
|
+
const defaultMark = param.defaultValue ? ` *Default: \`${param.defaultValue}\`*` : '';
|
|
24
|
+
const desc = param.description ? ` -- ${param.description}` : '';
|
|
25
|
+
return `- **${param.name}** \`${param.type}\`${optionalMark}${desc}${defaultMark}`;
|
|
26
|
+
}
|
|
27
|
+
function formatChildParameter(param) {
|
|
28
|
+
const optionalMark = param.optional ? ' *(optional)*' : '';
|
|
29
|
+
const defaultMark = param.defaultValue ? ` *Default: \`${param.defaultValue}\`*` : '';
|
|
30
|
+
const desc = param.description ? ` -- ${param.description}` : '';
|
|
31
|
+
return ` - **${param.name}** \`${param.type}\`${optionalMark}${desc}${defaultMark}`;
|
|
32
|
+
}
|
|
33
|
+
function writeMember(lines, member, memberLevel) {
|
|
34
|
+
lines.push(heading(memberLevel, member.name));
|
|
35
|
+
lines.push('');
|
|
36
|
+
if (member.description) {
|
|
37
|
+
lines.push(member.description);
|
|
38
|
+
lines.push('');
|
|
39
|
+
}
|
|
40
|
+
lines.push('```typescript');
|
|
41
|
+
lines.push(member.signature);
|
|
42
|
+
lines.push('```');
|
|
43
|
+
lines.push('');
|
|
44
|
+
if (member.parameters && member.parameters.length > 0) {
|
|
45
|
+
for (const param of member.parameters) {
|
|
46
|
+
lines.push(formatParameter(param));
|
|
47
|
+
if (param.children) {
|
|
48
|
+
for (const child of param.children) {
|
|
49
|
+
lines.push(formatChildParameter(child));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
lines.push('');
|
|
54
|
+
}
|
|
55
|
+
if (member.returns) {
|
|
56
|
+
const desc = member.returns.description ? ` -- ${member.returns.description}` : '';
|
|
57
|
+
lines.push(`> Returns \`${member.returns.type}\`${desc}`);
|
|
58
|
+
lines.push('');
|
|
59
|
+
}
|
|
60
|
+
if (member.throws) {
|
|
61
|
+
for (const t of member.throws) {
|
|
62
|
+
const desc = t.description ? ` ${t.description}` : '';
|
|
63
|
+
lines.push(`> Throws \`${t.type}\`${desc}`);
|
|
64
|
+
lines.push('');
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/** Generate a single {% symbol %} Markdown block for one SymbolDoc */
|
|
69
|
+
export function generateSymbolMarkdown(doc, options) {
|
|
70
|
+
const level = options?.headingLevel ?? 2;
|
|
71
|
+
const lines = [];
|
|
72
|
+
// Frontmatter
|
|
73
|
+
if (options?.frontmatter !== false) {
|
|
74
|
+
lines.push('---');
|
|
75
|
+
lines.push(`title: ${escapeYaml(doc.name)}`);
|
|
76
|
+
const firstLine = doc.description.split('\n')[0].trim();
|
|
77
|
+
if (firstLine) {
|
|
78
|
+
lines.push(`description: ${escapeYaml(firstLine)}`);
|
|
79
|
+
}
|
|
80
|
+
lines.push('---');
|
|
81
|
+
lines.push('');
|
|
82
|
+
}
|
|
83
|
+
// Opening tag
|
|
84
|
+
const attrs = [`kind="${doc.kind}"`];
|
|
85
|
+
attrs.push(`lang="typescript"`);
|
|
86
|
+
if (doc.since)
|
|
87
|
+
attrs.push(`since="${doc.since}"`);
|
|
88
|
+
if (doc.deprecated)
|
|
89
|
+
attrs.push(`deprecated="${doc.deprecated}"`);
|
|
90
|
+
if (doc.source)
|
|
91
|
+
attrs.push(`source="${doc.source}"`);
|
|
92
|
+
if (level !== 2)
|
|
93
|
+
attrs.push(`headingLevel=${level}`);
|
|
94
|
+
lines.push(`{% symbol ${attrs.join(' ')} %}`);
|
|
95
|
+
lines.push('');
|
|
96
|
+
// Symbol name heading
|
|
97
|
+
lines.push(heading(level, doc.name));
|
|
98
|
+
lines.push('');
|
|
99
|
+
// For functions/enums/types: description before signature
|
|
100
|
+
// For classes/interfaces/modules: description after signature
|
|
101
|
+
if (!isGroupKind(doc.kind)) {
|
|
102
|
+
if (doc.description) {
|
|
103
|
+
lines.push(doc.description);
|
|
104
|
+
lines.push('');
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
// Type signature
|
|
108
|
+
lines.push('```typescript');
|
|
109
|
+
lines.push(doc.signature);
|
|
110
|
+
lines.push('```');
|
|
111
|
+
lines.push('');
|
|
112
|
+
// For group kinds: description after signature
|
|
113
|
+
if (isGroupKind(doc.kind)) {
|
|
114
|
+
if (doc.description) {
|
|
115
|
+
lines.push(doc.description);
|
|
116
|
+
lines.push('');
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
// Parameters (for function/enum kinds)
|
|
120
|
+
if (doc.parameters && doc.parameters.length > 0) {
|
|
121
|
+
for (const param of doc.parameters) {
|
|
122
|
+
lines.push(formatParameter(param));
|
|
123
|
+
if (param.children) {
|
|
124
|
+
for (const child of param.children) {
|
|
125
|
+
lines.push(formatChildParameter(child));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
lines.push('');
|
|
130
|
+
}
|
|
131
|
+
// Returns (as blockquote)
|
|
132
|
+
if (doc.returns) {
|
|
133
|
+
const desc = doc.returns.description ? ` -- ${doc.returns.description}` : '';
|
|
134
|
+
lines.push(`> Returns \`${doc.returns.type}\`${desc}`);
|
|
135
|
+
lines.push('');
|
|
136
|
+
}
|
|
137
|
+
// Throws (as blockquotes)
|
|
138
|
+
if (doc.throws) {
|
|
139
|
+
for (const t of doc.throws) {
|
|
140
|
+
const desc = t.description ? ` ${t.description}` : '';
|
|
141
|
+
lines.push(`> Throws \`${t.type}\`${desc}`);
|
|
142
|
+
lines.push('');
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
// Groups (for class/interface/module kinds)
|
|
146
|
+
if (doc.groups) {
|
|
147
|
+
const groupLevel = level + 1;
|
|
148
|
+
const memberLevel = level + 2;
|
|
149
|
+
for (const group of doc.groups) {
|
|
150
|
+
// Special case: Constructor group has no group heading in the docs format
|
|
151
|
+
// Actually, looking at the docs, Constructor IS a group heading
|
|
152
|
+
lines.push(heading(groupLevel, group.label));
|
|
153
|
+
lines.push('');
|
|
154
|
+
if (group.members.length === 1 && group.label === 'Constructor') {
|
|
155
|
+
// Constructor is typically shown without a member sub-heading
|
|
156
|
+
const member = group.members[0];
|
|
157
|
+
if (member.description) {
|
|
158
|
+
lines.push(member.description);
|
|
159
|
+
lines.push('');
|
|
160
|
+
}
|
|
161
|
+
lines.push('```typescript');
|
|
162
|
+
lines.push(member.signature);
|
|
163
|
+
lines.push('```');
|
|
164
|
+
lines.push('');
|
|
165
|
+
if (member.parameters && member.parameters.length > 0) {
|
|
166
|
+
for (const param of member.parameters) {
|
|
167
|
+
lines.push(formatParameter(param));
|
|
168
|
+
if (param.children) {
|
|
169
|
+
for (const child of param.children) {
|
|
170
|
+
lines.push(formatChildParameter(child));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
lines.push('');
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
for (const member of group.members) {
|
|
179
|
+
writeMember(lines, member, memberLevel);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
// Closing tag
|
|
185
|
+
lines.push('{% /symbol %}');
|
|
186
|
+
lines.push('');
|
|
187
|
+
return lines.join('\n');
|
|
188
|
+
}
|
|
189
|
+
/** Generate a single file containing multiple symbols from the same source file */
|
|
190
|
+
export function generateMultiSymbolMarkdown(docs, fileName) {
|
|
191
|
+
const lines = [];
|
|
192
|
+
lines.push('---');
|
|
193
|
+
lines.push(`title: ${escapeYaml(fileName)}`);
|
|
194
|
+
lines.push(`description: ${escapeYaml(`API reference for ${fileName}`)}`);
|
|
195
|
+
lines.push('---');
|
|
196
|
+
lines.push('');
|
|
197
|
+
for (const doc of docs) {
|
|
198
|
+
lines.push(generateSymbolMarkdown(doc, { frontmatter: false }));
|
|
199
|
+
}
|
|
200
|
+
return lines.join('\n');
|
|
201
|
+
}
|
|
202
|
+
//# sourceMappingURL=symbol-generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"symbol-generator.js","sourceRoot":"","sources":["../../src/lib/symbol-generator.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,GAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;AAEnE,SAAS,WAAW,CAAC,IAAgB;IACpC,OAAO,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC;AAED,gEAAgE;AAChE,MAAM,UAAU,MAAM,CAAC,IAAY;IAClC,OAAO,IAAI;SACT,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC;SACtC,OAAO,CAAC,sBAAsB,EAAE,OAAO,CAAC;SACxC,WAAW,EAAE,CAAC;AACjB,CAAC;AAED,SAAS,UAAU,CAAC,CAAS;IAC5B,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5E,OAAO,IAAI,CAAC,CAAC,OAAO,CA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qB,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;IAC1E,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEf,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC,GAAG,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refrakt-md/cli",
|
|
3
3
|
"description": "CLI tools for refrakt.md",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -25,10 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@markdoc/markdoc": "0.4.0",
|
|
28
|
-
"@refrakt-md/ai": "0.5.
|
|
29
|
-
"@refrakt-md/
|
|
30
|
-
"@refrakt-md/
|
|
31
|
-
"@refrakt-md/
|
|
32
|
-
"
|
|
28
|
+
"@refrakt-md/ai": "0.5.1",
|
|
29
|
+
"@refrakt-md/editor": "0.5.1",
|
|
30
|
+
"@refrakt-md/runes": "0.5.1",
|
|
31
|
+
"@refrakt-md/theme-base": "0.5.1",
|
|
32
|
+
"@refrakt-md/transform": "0.5.1",
|
|
33
|
+
"postcss": "^8.4.0",
|
|
34
|
+
"typescript": "^5.4.0"
|
|
33
35
|
}
|
|
34
36
|
}
|