@mytechtoday/augment-extensions 1.5.0 → 1.5.2
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/cli/dist/__test_rule-install-hooks.d.ts +2 -0
- package/cli/dist/__test_rule-install-hooks.d.ts.map +1 -0
- package/cli/dist/__test_rule-install-hooks.js +4 -0
- package/cli/dist/__test_rule-install-hooks.js.map +1 -0
- package/cli/dist/commands/show.d.ts +4 -0
- package/cli/dist/commands/show.d.ts.map +1 -1
- package/cli/dist/commands/show.js +72 -2
- package/cli/dist/commands/show.js.map +1 -1
- package/cli/dist/parsers/php-parser.d.ts +127 -0
- package/cli/dist/parsers/php-parser.d.ts.map +1 -0
- package/cli/dist/parsers/php-parser.js +290 -0
- package/cli/dist/parsers/php-parser.js.map +1 -0
- package/cli/dist/utils/ai-prompts.d.ts +32 -0
- package/cli/dist/utils/ai-prompts.d.ts.map +1 -0
- package/cli/dist/utils/ai-prompts.js +192 -0
- package/cli/dist/utils/ai-prompts.js.map +1 -0
- package/cli/dist/utils/ai-summary.d.ts +42 -0
- package/cli/dist/utils/ai-summary.d.ts.map +1 -0
- package/cli/dist/utils/ai-summary.js +177 -0
- package/cli/dist/utils/ai-summary.js.map +1 -0
- package/cli/dist/utils/config-loader.d.ts +90 -0
- package/cli/dist/utils/config-loader.d.ts.map +1 -0
- package/cli/dist/utils/config-loader.js +223 -0
- package/cli/dist/utils/config-loader.js.map +1 -0
- package/cli/dist/webview/inspection-webview-provider.d.ts +49 -0
- package/cli/dist/webview/inspection-webview-provider.d.ts.map +1 -0
- package/cli/dist/webview/inspection-webview-provider.js +386 -0
- package/cli/dist/webview/inspection-webview-provider.js.map +1 -0
- package/package.json +4 -1
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.InspectionWebviewProvider = void 0;
|
|
37
|
+
const vscode = __importStar(require("vscode"));
|
|
38
|
+
const fs = __importStar(require("fs"));
|
|
39
|
+
const path = __importStar(require("path"));
|
|
40
|
+
const module_system_1 = require("../utils/module-system");
|
|
41
|
+
/**
|
|
42
|
+
* Webview provider for module inspection reports
|
|
43
|
+
*/
|
|
44
|
+
class InspectionWebviewProvider {
|
|
45
|
+
constructor(_extensionUri) {
|
|
46
|
+
this._extensionUri = _extensionUri;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Resolve webview view
|
|
50
|
+
*/
|
|
51
|
+
resolveWebviewView(webviewView, context, _token) {
|
|
52
|
+
this._view = webviewView;
|
|
53
|
+
webviewView.webview.options = {
|
|
54
|
+
enableScripts: true,
|
|
55
|
+
localResourceRoots: [this._extensionUri]
|
|
56
|
+
};
|
|
57
|
+
webviewView.webview.html = this._getHtmlForWebview(webviewView.webview);
|
|
58
|
+
// Handle messages from the webview
|
|
59
|
+
webviewView.webview.onDidReceiveMessage(async (data) => {
|
|
60
|
+
switch (data.type) {
|
|
61
|
+
case 'refresh':
|
|
62
|
+
await this.refresh();
|
|
63
|
+
break;
|
|
64
|
+
case 'export':
|
|
65
|
+
await this.exportToFile(data.format);
|
|
66
|
+
break;
|
|
67
|
+
case 'navigate':
|
|
68
|
+
this.navigateToSection(data.section);
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Show module inspection in webview
|
|
75
|
+
*/
|
|
76
|
+
async showModule(module) {
|
|
77
|
+
this._currentModule = module;
|
|
78
|
+
if (this._view) {
|
|
79
|
+
this._view.show?.(true);
|
|
80
|
+
this._view.webview.html = this._getModuleHtml(module);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Refresh current module
|
|
85
|
+
*/
|
|
86
|
+
async refresh() {
|
|
87
|
+
if (this._currentModule && this._view) {
|
|
88
|
+
this._view.webview.html = this._getModuleHtml(this._currentModule);
|
|
89
|
+
vscode.window.showInformationMessage('Module inspection refreshed');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Export to file
|
|
94
|
+
*/
|
|
95
|
+
async exportToFile(format) {
|
|
96
|
+
if (!this._currentModule) {
|
|
97
|
+
vscode.window.showErrorMessage('No module to export');
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const defaultUri = vscode.Uri.file(path.join(vscode.workspace.workspaceFolders?.[0]?.uri.fsPath || '', `${this._currentModule.fullName.replace('/', '-')}-inspection.${format}`));
|
|
101
|
+
const uri = await vscode.window.showSaveDialog({
|
|
102
|
+
defaultUri,
|
|
103
|
+
filters: {
|
|
104
|
+
'JSON': ['json'],
|
|
105
|
+
'Markdown': ['md'],
|
|
106
|
+
'HTML': ['html']
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
if (uri) {
|
|
110
|
+
const content = this._generateExportContent(this._currentModule, format);
|
|
111
|
+
fs.writeFileSync(uri.fsPath, content, 'utf-8');
|
|
112
|
+
vscode.window.showInformationMessage(`Exported to ${uri.fsPath}`);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Navigate to section
|
|
117
|
+
*/
|
|
118
|
+
navigateToSection(section) {
|
|
119
|
+
if (this._view) {
|
|
120
|
+
this._view.webview.postMessage({ type: 'scrollTo', section });
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Generate HTML for webview
|
|
125
|
+
*/
|
|
126
|
+
_getHtmlForWebview(webview) {
|
|
127
|
+
return `<!DOCTYPE html>
|
|
128
|
+
<html lang="en">
|
|
129
|
+
<head>
|
|
130
|
+
<meta charset="UTF-8">
|
|
131
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
132
|
+
<title>Module Inspection</title>
|
|
133
|
+
<style>
|
|
134
|
+
body {
|
|
135
|
+
font-family: var(--vscode-font-family);
|
|
136
|
+
color: var(--vscode-foreground);
|
|
137
|
+
background-color: var(--vscode-editor-background);
|
|
138
|
+
padding: 20px;
|
|
139
|
+
}
|
|
140
|
+
.placeholder {
|
|
141
|
+
text-align: center;
|
|
142
|
+
padding: 40px;
|
|
143
|
+
color: var(--vscode-descriptionForeground);
|
|
144
|
+
}
|
|
145
|
+
.placeholder-icon {
|
|
146
|
+
font-size: 48px;
|
|
147
|
+
margin-bottom: 20px;
|
|
148
|
+
}
|
|
149
|
+
</style>
|
|
150
|
+
</head>
|
|
151
|
+
<body>
|
|
152
|
+
<div class="placeholder">
|
|
153
|
+
<div class="placeholder-icon">📦</div>
|
|
154
|
+
<h2>Module Inspection</h2>
|
|
155
|
+
<p>Select a module to inspect</p>
|
|
156
|
+
<p style="font-size: 12px; margin-top: 20px;">
|
|
157
|
+
Use the command palette (Ctrl+Shift+P) and run:<br>
|
|
158
|
+
<code>Augment: Inspect Module</code>
|
|
159
|
+
</p>
|
|
160
|
+
</div>
|
|
161
|
+
</body>
|
|
162
|
+
</html>`;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Generate HTML for module inspection
|
|
166
|
+
*/
|
|
167
|
+
_getModuleHtml(module) {
|
|
168
|
+
const metadata = (0, module_system_1.extractModuleMetadata)(module.path);
|
|
169
|
+
if (!metadata) {
|
|
170
|
+
return this._getHtmlForWebview(this._view.webview);
|
|
171
|
+
}
|
|
172
|
+
return `<!DOCTYPE html>
|
|
173
|
+
<html lang="en">
|
|
174
|
+
<head>
|
|
175
|
+
<meta charset="UTF-8">
|
|
176
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
177
|
+
<title>${module.fullName} - Inspection</title>
|
|
178
|
+
<style>
|
|
179
|
+
body {
|
|
180
|
+
font-family: var(--vscode-font-family);
|
|
181
|
+
color: var(--vscode-foreground);
|
|
182
|
+
background-color: var(--vscode-editor-background);
|
|
183
|
+
padding: 0;
|
|
184
|
+
margin: 0;
|
|
185
|
+
}
|
|
186
|
+
.header {
|
|
187
|
+
background-color: var(--vscode-editor-inactiveSelectionBackground);
|
|
188
|
+
padding: 20px;
|
|
189
|
+
border-bottom: 1px solid var(--vscode-panel-border);
|
|
190
|
+
}
|
|
191
|
+
.header h1 {
|
|
192
|
+
margin: 0 0 10px 0;
|
|
193
|
+
font-size: 24px;
|
|
194
|
+
}
|
|
195
|
+
.header .meta {
|
|
196
|
+
color: var(--vscode-descriptionForeground);
|
|
197
|
+
font-size: 12px;
|
|
198
|
+
}
|
|
199
|
+
.toolbar {
|
|
200
|
+
background-color: var(--vscode-editorGroupHeader-tabsBackground);
|
|
201
|
+
padding: 10px 20px;
|
|
202
|
+
border-bottom: 1px solid var(--vscode-panel-border);
|
|
203
|
+
display: flex;
|
|
204
|
+
gap: 10px;
|
|
205
|
+
}
|
|
206
|
+
.toolbar button {
|
|
207
|
+
background-color: var(--vscode-button-background);
|
|
208
|
+
color: var(--vscode-button-foreground);
|
|
209
|
+
border: none;
|
|
210
|
+
padding: 6px 12px;
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
border-radius: 2px;
|
|
213
|
+
}
|
|
214
|
+
.toolbar button:hover {
|
|
215
|
+
background-color: var(--vscode-button-hoverBackground);
|
|
216
|
+
}
|
|
217
|
+
.content {
|
|
218
|
+
padding: 20px;
|
|
219
|
+
}
|
|
220
|
+
.section {
|
|
221
|
+
margin-bottom: 30px;
|
|
222
|
+
}
|
|
223
|
+
.section h2 {
|
|
224
|
+
font-size: 18px;
|
|
225
|
+
margin-bottom: 15px;
|
|
226
|
+
border-bottom: 1px solid var(--vscode-panel-border);
|
|
227
|
+
padding-bottom: 5px;
|
|
228
|
+
}
|
|
229
|
+
.stat-grid {
|
|
230
|
+
display: grid;
|
|
231
|
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
232
|
+
gap: 15px;
|
|
233
|
+
margin-bottom: 20px;
|
|
234
|
+
}
|
|
235
|
+
.stat-card {
|
|
236
|
+
background-color: var(--vscode-editor-inactiveSelectionBackground);
|
|
237
|
+
padding: 15px;
|
|
238
|
+
border-radius: 4px;
|
|
239
|
+
}
|
|
240
|
+
.stat-card .label {
|
|
241
|
+
color: var(--vscode-descriptionForeground);
|
|
242
|
+
font-size: 12px;
|
|
243
|
+
margin-bottom: 5px;
|
|
244
|
+
}
|
|
245
|
+
.stat-card .value {
|
|
246
|
+
font-size: 24px;
|
|
247
|
+
font-weight: bold;
|
|
248
|
+
}
|
|
249
|
+
</style>
|
|
250
|
+
</head>
|
|
251
|
+
<body>
|
|
252
|
+
<div class="header">
|
|
253
|
+
<h1>📦 ${module.fullName}</h1>
|
|
254
|
+
<div class="meta">
|
|
255
|
+
<span>Version: ${metadata.version}</span> •
|
|
256
|
+
<span>Type: ${metadata.type}</span>
|
|
257
|
+
</div>
|
|
258
|
+
</div>
|
|
259
|
+
|
|
260
|
+
<div class="toolbar">
|
|
261
|
+
<button onclick="refresh()">🔄 Refresh</button>
|
|
262
|
+
<button onclick="exportJSON()">📄 Export JSON</button>
|
|
263
|
+
<button onclick="exportMarkdown()">📝 Export Markdown</button>
|
|
264
|
+
<button onclick="exportHTML()">🌐 Export HTML</button>
|
|
265
|
+
</div>
|
|
266
|
+
|
|
267
|
+
<div class="content">
|
|
268
|
+
<div class="section" id="overview">
|
|
269
|
+
<h2>Overview</h2>
|
|
270
|
+
<p>${metadata.description}</p>
|
|
271
|
+
${metadata.tags && metadata.tags.length > 0 ? `
|
|
272
|
+
<div>
|
|
273
|
+
${metadata.tags.map(tag => `<span class="tag">${tag}</span>`).join('')}
|
|
274
|
+
</div>
|
|
275
|
+
` : ''}
|
|
276
|
+
</div>
|
|
277
|
+
|
|
278
|
+
<div class="section" id="statistics">
|
|
279
|
+
<h2>Statistics</h2>
|
|
280
|
+
<div class="stat-grid">
|
|
281
|
+
<div class="stat-card">
|
|
282
|
+
<div class="label">Total Files</div>
|
|
283
|
+
<div class="value">${metadata.files?.total || 0}</div>
|
|
284
|
+
</div>
|
|
285
|
+
<div class="stat-card">
|
|
286
|
+
<div class="label">Rules</div>
|
|
287
|
+
<div class="value">${metadata.files?.rules || 0}</div>
|
|
288
|
+
</div>
|
|
289
|
+
<div class="stat-card">
|
|
290
|
+
<div class="label">Examples</div>
|
|
291
|
+
<div class="value">${metadata.files?.examples || 0}</div>
|
|
292
|
+
</div>
|
|
293
|
+
<div class="stat-card">
|
|
294
|
+
<div class="label">Size</div>
|
|
295
|
+
<div class="value">${this._formatBytes(metadata.size?.totalBytes || 0)}</div>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
</div>
|
|
299
|
+
</div>
|
|
300
|
+
|
|
301
|
+
<script>
|
|
302
|
+
const vscode = acquireVsCodeApi();
|
|
303
|
+
|
|
304
|
+
function refresh() {
|
|
305
|
+
vscode.postMessage({ type: 'refresh' });
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
function exportJSON() {
|
|
309
|
+
vscode.postMessage({ type: 'export', format: 'json' });
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
function exportMarkdown() {
|
|
313
|
+
vscode.postMessage({ type: 'export', format: 'markdown' });
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
function exportHTML() {
|
|
317
|
+
vscode.postMessage({ type: 'export', format: 'html' });
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
window.addEventListener('message', event => {
|
|
321
|
+
const message = event.data;
|
|
322
|
+
if (message.type === 'scrollTo') {
|
|
323
|
+
document.getElementById(message.section)?.scrollIntoView({ behavior: 'smooth' });
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
</script>
|
|
327
|
+
</body>
|
|
328
|
+
</html>`;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Generate export content
|
|
332
|
+
*/
|
|
333
|
+
_generateExportContent(module, format) {
|
|
334
|
+
const metadata = (0, module_system_1.extractModuleMetadata)(module.path);
|
|
335
|
+
if (!metadata) {
|
|
336
|
+
return '';
|
|
337
|
+
}
|
|
338
|
+
switch (format) {
|
|
339
|
+
case 'json':
|
|
340
|
+
return JSON.stringify({
|
|
341
|
+
name: module.fullName,
|
|
342
|
+
version: metadata.version,
|
|
343
|
+
type: metadata.type,
|
|
344
|
+
description: metadata.description,
|
|
345
|
+
tags: metadata.tags,
|
|
346
|
+
files: metadata.files,
|
|
347
|
+
size: metadata.size,
|
|
348
|
+
lastModified: metadata.lastModified
|
|
349
|
+
}, null, 2);
|
|
350
|
+
case 'markdown':
|
|
351
|
+
return `# ${module.fullName}
|
|
352
|
+
|
|
353
|
+
**Version:** ${metadata.version}
|
|
354
|
+
**Type:** ${metadata.type}
|
|
355
|
+
**Description:** ${metadata.description}
|
|
356
|
+
|
|
357
|
+
## Statistics
|
|
358
|
+
|
|
359
|
+
- **Total Files:** ${metadata.files?.total || 0}
|
|
360
|
+
- **Rules:** ${metadata.files?.rules || 0}
|
|
361
|
+
- **Examples:** ${metadata.files?.examples || 0}
|
|
362
|
+
- **Size:** ${this._formatBytes(metadata.size?.totalBytes || 0)}
|
|
363
|
+
|
|
364
|
+
${metadata.tags && metadata.tags.length > 0 ? `## Tags\n\n${metadata.tags.map(tag => `- ${tag}`).join('\n')}` : ''}
|
|
365
|
+
`;
|
|
366
|
+
case 'html':
|
|
367
|
+
return this._getModuleHtml(module);
|
|
368
|
+
default:
|
|
369
|
+
return '';
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Format bytes to human-readable string
|
|
374
|
+
*/
|
|
375
|
+
_formatBytes(bytes) {
|
|
376
|
+
if (bytes === 0)
|
|
377
|
+
return '0 B';
|
|
378
|
+
const k = 1024;
|
|
379
|
+
const sizes = ['B', 'KB', 'MB', 'GB'];
|
|
380
|
+
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
381
|
+
return Math.round(bytes / Math.pow(k, i) * 100) / 100 + ' ' + sizes[i];
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
exports.InspectionWebviewProvider = InspectionWebviewProvider;
|
|
385
|
+
InspectionWebviewProvider.viewType = 'augmentExtensions.inspectionView';
|
|
386
|
+
//# sourceMappingURL=inspection-webview-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspection-webview-provider.js","sourceRoot":"","sources":["../../src/webview/inspection-webview-provider.ts"],"names":[],"mappings":";;;;;;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I extension modules",
|
|
5
5
|
"main": "cli/dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -69,6 +69,8 @@
|
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@types/highlight.js": "^9.12.4",
|
|
71
71
|
"@types/js-yaml": "^4.0.9",
|
|
72
|
+
"@typescript-eslint/typescript-estree": "^6.21.0",
|
|
73
|
+
"ajv": "^8.18.0",
|
|
72
74
|
"archiver": "^7.0.1",
|
|
73
75
|
"chalk": "^5.3.0",
|
|
74
76
|
"commander": "^11.0.0",
|
|
@@ -77,6 +79,7 @@
|
|
|
77
79
|
"inquirer": "^9.2.0",
|
|
78
80
|
"js-yaml": "^4.1.1",
|
|
79
81
|
"minimatch": "^10.1.1",
|
|
82
|
+
"php-parser": "^3.3.0",
|
|
80
83
|
"semver": "^7.5.0",
|
|
81
84
|
"tar": "^7.5.9",
|
|
82
85
|
"unzipper": "^0.12.3",
|