@famgia/omnify-cli 0.0.115 → 0.0.116

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/cli.js CHANGED
@@ -718,21 +718,57 @@ import { generateTypeScript, copyStubs, generateAIGuides as generateTypescriptAI
718
718
  import { existsSync as existsSync3, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2, readdirSync, readFileSync } from "fs";
719
719
  import { resolve as resolve5, dirname as dirname4, join } from "path";
720
720
  import "url";
721
- var CLAUDE_MD = `## Omnify
721
+ var CLAUDE_MD = `# Omnify Project
722
722
 
723
- This project uses Omnify for schema-driven code generation.
723
+ This project uses **Omnify** for schema-driven code generation.
724
724
 
725
- **Documentation**: \`.claude/omnify/\`
726
- - \`guides/omnify/\` - Omnify tool docs (schema syntax, config)
727
- - \`guides/laravel/\` - Laravel implementation guides
728
- - \`guides/react/\` - React implementation guides
729
- - \`checklists/\` - Development checklists
730
- - \`workflows/\` - Workflow guides
731
- - \`agents/\` - AI agent prompts
725
+ ## Quick Reference
732
726
 
733
- **Commands**:
734
- - \`npx omnify generate\` - Generate code from schemas
735
- - \`npx omnify validate\` - Validate schemas
727
+ - **Schema Guide**: @.claude/omnify/guides/omnify/schema-guide.md
728
+ - **Config Guide**: @.claude/omnify/guides/omnify/config-guide.md
729
+
730
+ ## Commands
731
+
732
+ \`\`\`bash
733
+ npx omnify generate # Generate code from schemas
734
+ npx omnify validate # Validate schemas
735
+ php artisan migrate # Run database migrations
736
+ \`\`\`
737
+
738
+ ## Critical Rules
739
+
740
+ ### \u26D4 DO NOT EDIT Auto-Generated Files
741
+ - \`database/migrations/omnify/**\` - Regenerated on \`npx omnify generate\`
742
+ - \`app/Models/OmnifyBase/**\` - Base models (extend, don't edit)
743
+ - \`app/Http/Requests/OmnifyBase/**\` - Base requests
744
+ - \`app/Http/Resources/OmnifyBase/**\` - Base resources
745
+
746
+ ### \u2705 Schema-First Workflow
747
+ 1. Edit YAML schema in \`schemas/\`
748
+ 2. Run \`npx omnify generate\`
749
+ 3. Run \`php artisan migrate\`
750
+
751
+ **NEVER use \`php artisan make:migration\`** - Always use schemas!
752
+
753
+ ## Documentation Structure
754
+
755
+ \`\`\`
756
+ .claude/
757
+ \u251C\u2500\u2500 CLAUDE.md # This file (root pointer)
758
+ \u251C\u2500\u2500 rules/ # Claude Code rules (path-specific)
759
+ \u2502 \u2514\u2500\u2500 omnify/*.md
760
+ \u2514\u2500\u2500 omnify/ # Detailed guides
761
+ \u251C\u2500\u2500 guides/
762
+ \u2502 \u251C\u2500\u2500 omnify/ # Schema & config docs
763
+ \u2502 \u251C\u2500\u2500 laravel/ # Laravel patterns
764
+ \u2502 \u2514\u2500\u2500 react/ # React patterns
765
+ \u251C\u2500\u2500 workflows/ # Step-by-step workflows
766
+ \u2514\u2500\u2500 agents/ # AI agent prompts
767
+ \`\`\`
768
+
769
+ ## Individual Preferences
770
+
771
+ Add your personal preferences in \`CLAUDE.local.md\` (gitignored).
736
772
  `;
737
773
  function copyOmnifyGuides(rootDir) {
738
774
  let filesWritten = 0;