yap2app 1.1.4 ā 1.1.6
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 +11 -13
- package/bin/cli.bundle.js +454 -507
- package/bin/cli.js +454 -507
- package/bridge.js +113 -21
- package/mcp.js +1 -1
- package/package.json +1 -1
package/bin/cli-esm.js
CHANGED
|
@@ -13,30 +13,28 @@ async function main() {
|
|
|
13
13
|
await runMcpServer();
|
|
14
14
|
} else if (command === 'scan') {
|
|
15
15
|
// Run standalone shallow scanner and print summary
|
|
16
|
-
console.log(`\
|
|
16
|
+
console.log(`\nYap2App Codebase Context:\n`);
|
|
17
17
|
const context = await scanCodebase(process.cwd());
|
|
18
|
-
console.log(
|
|
19
|
-
console.log(`Framework:
|
|
20
|
-
console.log(`Path Alias:
|
|
21
|
-
|
|
22
|
-
console.log(`
|
|
23
|
-
console.log(`UI Components Catalog: ${(context.component_names || []).join(', ') || 'None'}`);
|
|
24
|
-
console.log(`\nFull Context JSON:\n`, JSON.stringify(context, null, 2));
|
|
18
|
+
console.log(` Project: ${context.project_name}`);
|
|
19
|
+
console.log(` Framework: ${context.framework_display_name || context.framework}`);
|
|
20
|
+
console.log(` Path Alias: ${context.path_alias || '@/'}`);
|
|
21
|
+
console.log(` Files: ${context.discovered_files?.length || 0}`);
|
|
22
|
+
console.log(` Components: ${(context.component_names || []).join(', ') || 'None'}\n`);
|
|
25
23
|
} else if (command === 'start' || command === 'bridge' || command === 'server') {
|
|
26
24
|
// Start Localhost Bridge for Web Studio UI
|
|
27
25
|
startBridge();
|
|
28
26
|
} else if (command === 'help' || command === '--help' || command === '-h') {
|
|
29
27
|
console.log(`
|
|
30
|
-
|
|
28
|
+
Yap2App CLI
|
|
31
29
|
|
|
32
30
|
Usage:
|
|
33
31
|
npx yap2app [command]
|
|
34
32
|
|
|
35
33
|
Commands:
|
|
36
|
-
start
|
|
37
|
-
mcp
|
|
38
|
-
scan
|
|
39
|
-
help
|
|
34
|
+
start, bridge Start local bridge for Web Studio sync (default)
|
|
35
|
+
mcp Run MCP server over stdio for Cursor / Claude
|
|
36
|
+
scan Scan codebase context and detected components
|
|
37
|
+
help Show this help message
|
|
40
38
|
`);
|
|
41
39
|
} else {
|
|
42
40
|
// Default fallback to bridge
|