yap2app 1.1.6 → 1.1.7
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/bin/cli-esm.js +15 -1
- package/bin/cli.bundle.js +489 -470
- package/bin/cli.js +489 -470
- package/bridge.js +40 -14
- package/mcp.js +1 -30
- package/package.json +2 -1
- package/scanner.js +7 -0
package/bin/cli-esm.js
CHANGED
|
@@ -20,6 +20,19 @@ async function main() {
|
|
|
20
20
|
console.log(` Path Alias: ${context.path_alias || '@/'}`);
|
|
21
21
|
console.log(` Files: ${context.discovered_files?.length || 0}`);
|
|
22
22
|
console.log(` Components: ${(context.component_names || []).join(', ') || 'None'}\n`);
|
|
23
|
+
} else if (command === 'init' || command === 'install') {
|
|
24
|
+
const context = await scanCodebase(process.cwd());
|
|
25
|
+
console.log(`\n⚡ Yap2App Workspace Initializer:`);
|
|
26
|
+
console.log(` Directory: ${context.project_root}`);
|
|
27
|
+
console.log(` Framework: ${context.framework_display_name || 'Plain HTML / CSS / JS (Fresh Workspace)'}`);
|
|
28
|
+
console.log(` Files Found: ${context.total_files_count}`);
|
|
29
|
+
if (context.total_files_count === 0) {
|
|
30
|
+
console.log(`\n ℹ️ Fresh / empty directory detected.`);
|
|
31
|
+
console.log(` Starting Local Bridge. Generate and sync components from Web Studio to scaffold files directly here.\n`);
|
|
32
|
+
} else {
|
|
33
|
+
console.log(`\n Existing codebase indexed with ${context.total_files_count} files.\n`);
|
|
34
|
+
}
|
|
35
|
+
startBridge();
|
|
23
36
|
} else if (command === 'start' || command === 'bridge' || command === 'server') {
|
|
24
37
|
// Start Localhost Bridge for Web Studio UI
|
|
25
38
|
startBridge();
|
|
@@ -32,7 +45,8 @@ Usage:
|
|
|
32
45
|
|
|
33
46
|
Commands:
|
|
34
47
|
start, bridge Start local bridge for Web Studio sync (default)
|
|
35
|
-
|
|
48
|
+
init, install Initialize and link fresh/existing folder with Web Studio
|
|
49
|
+
mcp Run MCP server over stdio for Cursor / Claude Desktop
|
|
36
50
|
scan Scan codebase context and detected components
|
|
37
51
|
help Show this help message
|
|
38
52
|
`);
|