@l4yercak3/cli 1.2.15 → 1.2.18
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/docs/INTEGRATION_PATHS_ARCHITECTURE.md +1543 -0
- package/package.json +1 -1
- package/src/commands/spread.js +101 -6
- package/src/detectors/database-detector.js +245 -0
- 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/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/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 +1047 -0
- package/src/generators/quickstart/index.js +151 -0
- package/src/generators/quickstart/pages/index.js +1466 -0
- package/src/mcp/registry/domains/applications.js +4 -4
- package/src/mcp/registry/domains/benefits.js +798 -0
- package/src/mcp/registry/domains/crm.js +11 -11
- package/src/mcp/registry/domains/events.js +12 -12
- package/src/mcp/registry/domains/forms.js +12 -12
- package/src/mcp/registry/index.js +2 -0
- package/tests/database-detector.test.js +221 -0
- package/tests/generators-index.test.js +215 -3
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Database Generator Index
|
|
3
|
+
* Routes to the appropriate database generator
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
const convexGenerator = require('./convex');
|
|
7
|
+
const supabaseGenerator = require('./supabase');
|
|
8
|
+
|
|
9
|
+
class DatabaseGenerator {
|
|
10
|
+
/**
|
|
11
|
+
* Generate database files based on selected database type
|
|
12
|
+
* @param {Object} options - Generation options
|
|
13
|
+
* @returns {Promise<Object>} - Generated file paths
|
|
14
|
+
*/
|
|
15
|
+
async generate(options) {
|
|
16
|
+
const { selectedDatabase } = options;
|
|
17
|
+
|
|
18
|
+
switch (selectedDatabase) {
|
|
19
|
+
case 'convex':
|
|
20
|
+
return convexGenerator.generate(options);
|
|
21
|
+
case 'supabase':
|
|
22
|
+
return supabaseGenerator.generate(options);
|
|
23
|
+
default:
|
|
24
|
+
// No database selected, return empty results
|
|
25
|
+
return {
|
|
26
|
+
schema: null,
|
|
27
|
+
client: null,
|
|
28
|
+
types: null,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
module.exports = new DatabaseGenerator();
|