@l4yercak3/cli 1.3.0 → 1.3.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.
@@ -23,7 +23,14 @@
23
23
  "Bash(node:*)",
24
24
  "Bash(node -c:*)",
25
25
  "Bash(grep:*)",
26
- "Bash(git stash:*)"
26
+ "Bash(git stash:*)",
27
+ "Bash(git -C /Users/foundbrand_001/Development/l4yercak3-cli status --short)",
28
+ "Bash(git -C /Users/foundbrand_001/Development/l4yercak3-cli log --oneline -5)",
29
+ "Bash(git -C /Users/foundbrand_001/Development/l4yercak3-cli diff --stat)",
30
+ "Bash(git -C /Users/foundbrand_001/Development/l4yercak3-cli add -A)",
31
+ "Bash(git -C /Users/foundbrand_001/Development/l4yercak3-cli commit -m \"$\\(cat <<''EOF''\nfeat: CLI-to-platform bridge with smart feature detection\n\nAdd model/route scanning, manifest generation, and platform bridge commands\n\\(connect, scaffold, sync\\). Feature selection now auto-checks based on\ndetected data models via mapping suggestor heuristics.\n\nCo-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>\nEOF\n\\)\")",
32
+ "Bash(npm --prefix /Users/foundbrand_001/Development/l4yercak3-cli version patch:*)",
33
+ "Bash(npm:*)"
27
34
  ]
28
35
  }
29
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@l4yercak3/cli",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Icing on the L4yercak3 - The sweet finishing touch for your Layer Cake integration",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -421,22 +421,43 @@ async function handleSpread() {
421
421
  }
422
422
 
423
423
  // Step 4: Feature selection
424
+ // Auto-check features based on detected model mappings
425
+ const platformTypeToFeature = {
426
+ contact: 'crm',
427
+ booking: 'events',
428
+ event: 'events',
429
+ product: 'products',
430
+ invoice: 'invoicing',
431
+ project: 'projects',
432
+ form: 'forms',
433
+ certificate: 'certificates',
434
+ benefit: 'benefits',
435
+ };
436
+ const autoCheckedFeatures = new Set(['crm']); // CRM always default
437
+ for (const mapping of mappings) {
438
+ const feature = platformTypeToFeature[mapping.platformType];
439
+ if (feature) autoCheckedFeatures.add(feature);
440
+ }
441
+
424
442
  console.log(chalk.cyan(' ⚙️ Feature Selection\n'));
443
+ if (mappings.length > 0) {
444
+ console.log(chalk.gray(' Features pre-selected based on detected models:\n'));
445
+ }
425
446
  const { features } = await inquirer.prompt([
426
447
  {
427
448
  type: 'checkbox',
428
449
  name: 'features',
429
450
  message: 'Select features to enable:',
430
451
  choices: [
431
- { name: 'CRM (contacts, organizations)', value: 'crm', checked: true },
432
- { name: 'Events (event management, registrations)', value: 'events', checked: false },
433
- { name: 'Forms (form builder, submissions)', value: 'forms', checked: false },
434
- { name: 'Products (product catalog, inventory)', value: 'products', checked: false },
435
- { name: 'Checkout (cart, payments)', value: 'checkout', checked: false },
436
- { name: 'Invoicing (B2B/B2C invoices)', value: 'invoicing', checked: false },
437
- { name: 'Benefits (claims, commissions)', value: 'benefits', checked: false },
438
- { name: 'Certificates (CME, attendance)', value: 'certificates', checked: false },
439
- { name: 'Projects (task management)', value: 'projects', checked: false },
452
+ { name: 'CRM (contacts, organizations)', value: 'crm', checked: autoCheckedFeatures.has('crm') },
453
+ { name: 'Events (event management, registrations)', value: 'events', checked: autoCheckedFeatures.has('events') },
454
+ { name: 'Forms (form builder, submissions)', value: 'forms', checked: autoCheckedFeatures.has('forms') },
455
+ { name: 'Products (product catalog, inventory)', value: 'products', checked: autoCheckedFeatures.has('products') },
456
+ { name: 'Checkout (cart, payments)', value: 'checkout', checked: autoCheckedFeatures.has('checkout') },
457
+ { name: 'Invoicing (B2B/B2C invoices)', value: 'invoicing', checked: autoCheckedFeatures.has('invoicing') },
458
+ { name: 'Benefits (claims, commissions)', value: 'benefits', checked: autoCheckedFeatures.has('benefits') },
459
+ { name: 'Certificates (CME, attendance)', value: 'certificates', checked: autoCheckedFeatures.has('certificates') },
460
+ { name: 'Projects (task management)', value: 'projects', checked: autoCheckedFeatures.has('projects') },
440
461
  { name: 'OAuth Authentication', value: 'oauth', checked: false },
441
462
  ],
442
463
  },