@famgia/omnify-laravel 0.0.116 → 0.0.118

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@famgia/omnify-laravel",
3
- "version": "0.0.116",
3
+ "version": "0.0.118",
4
4
  "description": "Laravel migration and TypeScript type generator for omnify-schema",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,9 +25,9 @@
25
25
  "README.md"
26
26
  ],
27
27
  "dependencies": {
28
- "@famgia/omnify-types": "0.0.105",
29
- "@famgia/omnify-atlas": "0.0.101",
30
- "@famgia/omnify-core": "0.0.107"
28
+ "@famgia/omnify-types": "0.0.107",
29
+ "@famgia/omnify-core": "0.0.109",
30
+ "@famgia/omnify-atlas": "0.0.103"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "tsup",
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: "Controller development rules - thin controller, query builder, OpenAPI"
3
- globs: ["{{LARAVEL_BASE}}/Http/Controllers/**"]
2
+ description: "Laravel controller patterns: thin controllers with query builder, OpenAPI documentation (NO /api prefix!), validation with $request->validated(), and proper Resource usage. Apply when creating or editing controllers."
3
+ globs: ["{{LARAVEL_BASE}}/app/Http/Controllers/**/*.php"]
4
4
  alwaysApply: false
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: "FormRequest rules - OpenAPI Schema must match validation rules"
3
- globs: ["{{LARAVEL_BASE}}/Http/Requests/**"]
2
+ description: "Laravel FormRequest rules: OpenAPI schema MUST match schemaRules(), extend OmnifyBase for auto-generated validation, never use $request->all(). Apply when editing Request classes."
3
+ globs: ["{{LARAVEL_BASE}}/app/Http/Requests/**/*.php"]
4
4
  alwaysApply: false
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: "Resource class rules - OpenAPI Schema must match actual output"
3
- globs: ["{{LARAVEL_BASE}}/Http/Resources/**"]
2
+ description: "Laravel API Resource rules: OpenAPI schema MUST match toArray() output, extend OmnifyBase for auto-generated fields, use whenLoaded() for relations. Apply when editing Resource classes."
3
+ globs: ["{{LARAVEL_BASE}}/app/Http/Resources/**/*.php"]
4
4
  alwaysApply: false
5
5
  ---
6
6
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: "Code review checklist - security, performance, quality"
2
+ description: "Code review checklist for Laravel: security ($request->validated, SQL injection), performance (eager loading, N+1), and quality standards. Mention @laravel-review in chat to invoke."
3
3
  globs: []
4
4
  alwaysApply: false
5
5
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: "PEST testing rules - 正常系/異常系, naming conventions"
3
- globs: ["tests/**", "**/*Test.php"]
2
+ description: "PEST testing guide: 正常系 (happy path) + 異常系 (error cases), Japanese naming conventions, RefreshDatabase trait, and factory usage. Apply when writing or reviewing tests."
3
+ globs: ["{{LARAVEL_BASE}}/tests/**/*.php"]
4
4
  alwaysApply: false
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: "Laravel backend development rules - security, performance, patterns"
3
- globs: ["{{LARAVEL_BASE}}/**"]
2
+ description: "Laravel backend rules for Omnify projects: schema-first migrations, thin controllers, security patterns, and code generation. Apply when working with Laravel controllers, models, migrations, or API endpoints."
3
+ globs: ["{{LARAVEL_BASE}}/**/*.php"]
4
4
  alwaysApply: false
5
5
  ---
6
6
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: "CRITICAL: Use Omnify Schema for migrations - DO NOT create migrations manually"
2
+ description: "Schema-first workflow for database changes. NEVER use php artisan make:migration - always edit schemas/*.yaml and run npx omnify generate instead. This rule enforces the correct workflow when working with migrations."
3
3
  globs: ["{{LARAVEL_BASE}}/database/migrations/**"]
4
4
  alwaysApply: true
5
5
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: "CRITICAL: Auto-generated Omnify migrations - DO NOT EDIT"
3
- globs: ["{{LARAVEL_BASE}}/migrations/omnify/**"]
2
+ description: "STOP! These are auto-generated Omnify migrations. DO NOT EDIT these files - edit schemas/*.yaml instead and run npx omnify generate"
3
+ globs: ["{{LARAVEL_BASE}}/database/migrations/omnify/**"]
4
4
  alwaysApply: true
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: "Omnify schema-driven code generation rules"
3
- globs: ["schemas/**/*.yaml", "omnify.config.ts"]
2
+ description: "Omnify schema-driven code generation: YAML schema syntax, configuration (omnify.config.ts), and generation workflow. Apply when editing schema files or config."
3
+ globs: ["schemas/**/*.yaml", "schemas/**/*.yml", "omnify.config.ts"]
4
4
  alwaysApply: false
5
5
  ---
6
6