@gurulu/cli 0.2.0 → 0.2.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/dist/commands/install.js +29 -0
- package/package.json +1 -1
package/dist/commands/install.js
CHANGED
|
@@ -651,7 +651,36 @@ async function runAuthenticatedInstallFlow(args, authDeps, installDeps, scriptsD
|
|
|
651
651
|
}
|
|
652
652
|
catch (err) {
|
|
653
653
|
installDeps.log?.warn(`Intent analyzer failed: ${err.message}`);
|
|
654
|
+
installDeps.log?.warn('⚠ Falling back to built-in generic event set.');
|
|
654
655
|
intentRecord.error = `analyze_failed:${err.message}`;
|
|
656
|
+
intentRecord.analyzed = true; // Mark as analyzed so auto-instrument proceeds
|
|
657
|
+
// Client-side fallback: produce a minimal generic intent so
|
|
658
|
+
// auto-instrument and pre-seed still work even when the API is down.
|
|
659
|
+
intent = {
|
|
660
|
+
vertical: 'generic',
|
|
661
|
+
confidence: 'low',
|
|
662
|
+
reasoning: 'API unavailable — using built-in generic fallback.',
|
|
663
|
+
analyzerMode: 'heuristic',
|
|
664
|
+
alternativeVerticals: [],
|
|
665
|
+
events: [
|
|
666
|
+
{ name: '$page_view', category: 'engagement', source: 'inferred:pattern', properties: [], confidence: 1.0, reasoning: 'Baseline page impression.' },
|
|
667
|
+
{ name: '$session_start', category: 'engagement', source: 'inferred:pattern', properties: [], confidence: 1.0, reasoning: 'Session boundary.' },
|
|
668
|
+
{ name: '$signup', category: 'acquisition', source: 'inferred:pattern', properties: [{ name: 'method', type: 'string' }], confidence: 0.9, reasoning: 'New account signal.' },
|
|
669
|
+
{ name: '$login', category: 'engagement', source: 'inferred:pattern', properties: [{ name: 'method', type: 'string' }], confidence: 0.9, reasoning: 'Returning user signal.' },
|
|
670
|
+
{ name: '$logout', category: 'engagement', source: 'inferred:pattern', properties: [], confidence: 0.9, reasoning: 'Session end.' },
|
|
671
|
+
{ name: '$first_action', category: 'activation', source: 'inferred:pattern', properties: [], confidence: 0.8, reasoning: 'First meaningful interaction.' },
|
|
672
|
+
{ name: 'click', category: 'engagement', source: 'inferred:pattern', properties: [{ name: 'selector', type: 'string' }], confidence: 1.0, reasoning: 'User clicks.' },
|
|
673
|
+
{ name: 'scroll_depth', category: 'engagement', source: 'inferred:pattern', properties: [{ name: 'depth', type: 'number' }], confidence: 1.0, reasoning: 'Scroll engagement.' },
|
|
674
|
+
{ name: 'form_submit', category: 'engagement', source: 'inferred:pattern', properties: [{ name: 'form_id', type: 'string' }], confidence: 0.9, reasoning: 'Form completion.' },
|
|
675
|
+
{ name: 'engaged_session', category: 'engagement', source: 'inferred:pattern', properties: [], confidence: 1.0, reasoning: 'Quality session marker.' },
|
|
676
|
+
{ name: '$search', category: 'engagement', source: 'inferred:pattern', properties: [{ name: 'query', type: 'string' }], confidence: 0.7, reasoning: 'Search intent.' },
|
|
677
|
+
{ name: '$error', category: 'engagement', source: 'inferred:pattern', properties: [{ name: 'message', type: 'string' }], confidence: 0.8, reasoning: 'Client error tracking.' },
|
|
678
|
+
],
|
|
679
|
+
funnels: [
|
|
680
|
+
{ name: 'Signup Flow', category: 'acquisition', steps: ['$page_view', '$signup', '$login'], reasoning: 'Page view to signup to first login.' },
|
|
681
|
+
{ name: 'Engagement', category: 'engagement', steps: ['$page_view', 'scroll_depth', 'engaged_session'], reasoning: 'Page view to scroll to engaged session.' },
|
|
682
|
+
],
|
|
683
|
+
};
|
|
655
684
|
}
|
|
656
685
|
if (intent) {
|
|
657
686
|
const io = authDeps.intent.io || {
|