@famgia/omnify 2.0.13 → 2.0.14
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/package.json +8 -9
- package/scripts/postinstall.js +1 -25
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@famgia/omnify",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14",
|
|
4
4
|
"description": "Schema-driven database migration system with TypeScript types and Laravel migrations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,14 +26,13 @@
|
|
|
26
26
|
"README.md"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@famgia/omnify-
|
|
30
|
-
"@famgia/omnify-
|
|
31
|
-
"@famgia/omnify-types": "2.0.
|
|
32
|
-
"@famgia/omnify-typescript": "2.0.
|
|
33
|
-
"@famgia/omnify-laravel": "2.0.
|
|
34
|
-
"@famgia/omnify-atlas": "2.0.
|
|
35
|
-
"@famgia/omnify-
|
|
36
|
-
"@famgia/omnify-japan": "2.0.13"
|
|
29
|
+
"@famgia/omnify-cli": "2.0.14",
|
|
30
|
+
"@famgia/omnify-core": "2.0.14",
|
|
31
|
+
"@famgia/omnify-types": "2.0.14",
|
|
32
|
+
"@famgia/omnify-typescript": "2.0.14",
|
|
33
|
+
"@famgia/omnify-laravel": "2.0.14",
|
|
34
|
+
"@famgia/omnify-atlas": "2.0.14",
|
|
35
|
+
"@famgia/omnify-japan": "2.0.14"
|
|
37
36
|
},
|
|
38
37
|
"keywords": [
|
|
39
38
|
"omnify",
|
package/scripts/postinstall.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* 2. Copy AI guides to .claude/omnify/
|
|
9
9
|
* 3. Create/update CLAUDE.md
|
|
10
10
|
* 4. Create .cursor/rules/omnify.md
|
|
11
|
-
* 5. Configure Claude MCP server
|
|
11
|
+
* 5. (Optional) Configure Claude MCP server
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import fs from 'fs';
|
|
@@ -388,28 +388,6 @@ function setupCursorRules(projectRoot) {
|
|
|
388
388
|
fs.writeFileSync(path.join(dir, 'omnify.md'), CURSOR_RULES);
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
function setupClaudeMcp() {
|
|
392
|
-
const configPath = path.join(os.homedir(), '.claude', 'claude_desktop_config.json');
|
|
393
|
-
|
|
394
|
-
try {
|
|
395
|
-
const dir = path.dirname(configPath);
|
|
396
|
-
if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
|
|
397
|
-
|
|
398
|
-
let config = { mcpServers: {} };
|
|
399
|
-
if (fs.existsSync(configPath)) {
|
|
400
|
-
try {
|
|
401
|
-
config = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
|
|
402
|
-
config.mcpServers = config.mcpServers || {};
|
|
403
|
-
} catch { /* use default */ }
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
if (!config.mcpServers.omnify) {
|
|
407
|
-
config.mcpServers.omnify = { command: 'npx', args: ['@famgia/omnify-mcp'] };
|
|
408
|
-
fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
|
|
409
|
-
}
|
|
410
|
-
} catch { /* optional, ignore errors */ }
|
|
411
|
-
}
|
|
412
|
-
|
|
413
391
|
// ============================================================================
|
|
414
392
|
// Main
|
|
415
393
|
// ============================================================================
|
|
@@ -463,8 +441,6 @@ function main() {
|
|
|
463
441
|
results.push('✓ Updated .cursor/rules/omnify.md');
|
|
464
442
|
} catch { /* ignore */ }
|
|
465
443
|
|
|
466
|
-
setupClaudeMcp();
|
|
467
|
-
|
|
468
444
|
// Setup @omnify alias in config files
|
|
469
445
|
const omnifyPath = getOmnifyTypescriptPath(projectRoot) || 'src/omnify';
|
|
470
446
|
|