@l4yercak3/cli 1.2.16 → 1.2.19
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/.claude/settings.local.json +3 -1
- package/docs/CRM-PIPELINES-SEQUENCES-SPEC.md +429 -0
- package/docs/INTEGRATION_PATHS_ARCHITECTURE.md +1543 -0
- package/package.json +1 -1
- package/src/commands/login.js +26 -7
- package/src/commands/spread.js +251 -10
- package/src/detectors/database-detector.js +245 -0
- package/src/detectors/expo-detector.js +4 -4
- package/src/detectors/index.js +17 -4
- package/src/generators/api-only/client.js +683 -0
- package/src/generators/api-only/index.js +96 -0
- package/src/generators/api-only/types.js +618 -0
- package/src/generators/api-only/webhooks.js +377 -0
- package/src/generators/env-generator.js +23 -8
- package/src/generators/expo-auth-generator.js +1009 -0
- package/src/generators/index.js +88 -2
- package/src/generators/mcp-guide-generator.js +256 -0
- package/src/generators/quickstart/components/index.js +1699 -0
- package/src/generators/quickstart/components-mobile/index.js +1440 -0
- package/src/generators/quickstart/database/convex.js +1257 -0
- package/src/generators/quickstart/database/index.js +34 -0
- package/src/generators/quickstart/database/supabase.js +1132 -0
- package/src/generators/quickstart/hooks/index.js +1065 -0
- package/src/generators/quickstart/index.js +177 -0
- package/src/generators/quickstart/pages/index.js +1466 -0
- package/src/generators/quickstart/screens/index.js +1498 -0
- package/src/mcp/registry/domains/benefits.js +798 -0
- package/src/mcp/registry/index.js +2 -0
- package/tests/database-detector.test.js +221 -0
- package/tests/expo-detector.test.js +3 -4
- package/tests/generators-index.test.js +215 -3
package/src/detectors/index.js
CHANGED
|
@@ -10,6 +10,7 @@ const registry = require('./registry');
|
|
|
10
10
|
const githubDetector = require('./github-detector');
|
|
11
11
|
const apiClientDetector = require('./api-client-detector');
|
|
12
12
|
const oauthDetector = require('./oauth-detector');
|
|
13
|
+
const databaseDetector = require('./database-detector');
|
|
13
14
|
|
|
14
15
|
class ProjectDetector {
|
|
15
16
|
/**
|
|
@@ -26,9 +27,10 @@ class ProjectDetector {
|
|
|
26
27
|
const githubInfo = githubDetector.detect(projectPath);
|
|
27
28
|
const apiClientInfo = apiClientDetector.detect(projectPath);
|
|
28
29
|
const oauthInfo = oauthDetector.detect(projectPath);
|
|
30
|
+
const databaseInfo = databaseDetector.detect(projectPath);
|
|
29
31
|
|
|
30
32
|
// Get detector instance if we have a match
|
|
31
|
-
const detector = frameworkDetection.detected
|
|
33
|
+
const detector = frameworkDetection.detected
|
|
32
34
|
? registry.getDetector(frameworkDetection.detected)
|
|
33
35
|
: null;
|
|
34
36
|
|
|
@@ -41,22 +43,33 @@ class ProjectDetector {
|
|
|
41
43
|
supportedFeatures: detector?.getSupportedFeatures() || {},
|
|
42
44
|
availableGenerators: detector?.getAvailableGenerators() || [],
|
|
43
45
|
},
|
|
44
|
-
|
|
46
|
+
|
|
45
47
|
// Project metadata (framework-agnostic)
|
|
46
48
|
github: githubInfo,
|
|
47
49
|
apiClient: apiClientInfo,
|
|
48
50
|
oauth: oauthInfo,
|
|
49
|
-
|
|
51
|
+
database: databaseInfo,
|
|
52
|
+
|
|
50
53
|
// Raw detection results (for debugging)
|
|
51
54
|
_raw: {
|
|
52
55
|
frameworkResults: frameworkDetection.allResults,
|
|
53
56
|
},
|
|
54
|
-
|
|
57
|
+
|
|
55
58
|
// Project path
|
|
56
59
|
projectPath,
|
|
57
60
|
};
|
|
58
61
|
}
|
|
59
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Detect database configuration in a project
|
|
65
|
+
*
|
|
66
|
+
* @param {string} projectPath - Path to project directory
|
|
67
|
+
* @returns {object} Database detection results
|
|
68
|
+
*/
|
|
69
|
+
detectDatabase(projectPath = process.cwd()) {
|
|
70
|
+
return databaseDetector.detect(projectPath);
|
|
71
|
+
}
|
|
72
|
+
|
|
60
73
|
/**
|
|
61
74
|
* Get detector for a specific project type
|
|
62
75
|
*
|