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 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(`\nšŸ” Yap2App Codebase Context Scanner:`);
16
+ console.log(`\nYap2App Codebase Context:\n`);
17
17
  const context = await scanCodebase(process.cwd());
18
- console.log(`\nProject: ${context.project_name}`);
19
- console.log(`Framework: ${context.framework} (${context.framework_display_name || 'Generic'})`);
20
- console.log(`Path Alias: ${context.path_alias || '@/'}`);
21
- const depCount = Array.isArray(context.dependencies) ? context.dependencies.length : Object.keys(context.dependencies || {}).length;
22
- console.log(`Dependencies Detected: ${depCount}`);
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
- ⚔ Yap2App CLI & MCP Toolkit ⚔
28
+ Yap2App CLI
31
29
 
32
30
  Usage:
33
31
  npx yap2app [command]
34
32
 
35
33
  Commands:
36
- start | bridge Start the Localhost Bridge with W3C PNA for 1-click Web Studio Sync (Default)
37
- mcp Run the Model Context Protocol (MCP) Server over stdio for Cursor/Claude
38
- scan Run a shallow codebase scan and print detected standards & UI primitives
39
- help Display this help guide
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