@famgia/omnify-typescript 0.0.95 → 0.0.97

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-typescript",
3
- "version": "0.0.95",
3
+ "version": "0.0.97",
4
4
  "description": "TypeScript type definitions generator for Omnify schemas",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -48,7 +48,7 @@
48
48
  "directory": "packages/typescript-generator"
49
49
  },
50
50
  "dependencies": {
51
- "@famgia/omnify-types": "0.0.105"
51
+ "@famgia/omnify-types": "0.0.107"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "zod": "^3.0.0"
@@ -1,12 +1,12 @@
1
1
  ---
2
- description: "Omnify schema creation workflow - Use /omnify-schema command"
2
+ description: "Omnify schema YAML syntax and examples. Apply when creating or editing schema files in schemas/ folder. Covers property types, relationships, validations, and Japanese compound types."
3
3
  globs: ["schemas/**/*.yaml", "schemas/**/*.yml", "{{LARAVEL_BASE}}/database/migrations/**"]
4
4
  alwaysApply: false
5
5
  ---
6
6
 
7
7
  # Omnify Schema Creation Workflow
8
8
 
9
- > **Command:** `/omnify-schema` - Follow this workflow when creating or modifying schemas
9
+ > **Usage:** This rule auto-applies when editing schema files, or mention `@omnify-schema` in chat
10
10
 
11
11
  ## 📋 Workflow Steps
12
12
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Frontend Design System - Japanese Business UI Guidelines
2
+ description: "Japanese Business UI Design System: 4px spacing grid, Ant Design theme tokens (NO custom colors!), 間(Ma) whitespace philosophy. Apply when designing layouts, choosing colors, or setting spacing."
3
3
  globs: ["{{TYPESCRIPT_BASE}}/**/*.tsx", "{{TYPESCRIPT_BASE}}/**/*.css"]
4
4
  alwaysApply: false
5
5
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: "Form development guide - Omnify patterns, Zod validation, backend errors"
3
- globs: ["{{TYPESCRIPT_BASE}}/features/**", "{{TYPESCRIPT_BASE}}/components/**"]
2
+ description: "React form development with Ant Design + Zod validation. Covers form instances, zodRule helper, Japanese compound fields (JapaneseName, JapaneseAddress), and backend 422 error handling. Apply when creating forms."
3
+ globs: ["{{TYPESCRIPT_BASE}}/**/*Form*.tsx", "{{TYPESCRIPT_BASE}}/**/*form*.tsx"]
4
4
  alwaysApply: false
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: "Frontend Services layer - API communication with backend"
3
- globs: ["{{TYPESCRIPT_BASE}}/services/**"]
2
+ description: "React service layer pattern: MUST read api-docs.json first, use TanStack Query for server state, define types from OpenAPI response. Apply when creating API integration or service files."
3
+ globs: ["{{TYPESCRIPT_BASE}}/services/**/*.ts"]
4
4
  alwaysApply: false
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: "React + Ant Design frontend development rules"
3
- globs: ["{{TYPESCRIPT_BASE}}/**"]
2
+ description: "React + Ant Design + TanStack Query rules for Omnify projects: component patterns, form validation with Zod, i18n, service layer, and generated types. Apply when creating React components, forms, or API integrations."
3
+ globs: ["{{TYPESCRIPT_BASE}}/**/*.{ts,tsx}"]
4
4
  alwaysApply: false
5
5
  ---
6
6
 
@@ -10,7 +10,7 @@ alwaysApply: false
10
10
  > - **Form Development:** `.cursor/rules/omnify/react-form.mdc`
11
11
  > - **Design System:** `.cursor/rules/omnify/react-design.mdc`
12
12
  > - **Services:** `.cursor/rules/omnify/react-services.mdc`
13
- > - **Schema Creation:** `.cursor/rules/omnify/schema-create.mdc` (use `/schema-create` command)
13
+ > - **Schema Creation:** `.cursor/rules/omnify/schema-create.mdc` (mention `@schema-create` in chat)
14
14
 
15
15
  ## Guide Documentation
16
16
 
@@ -1,12 +1,12 @@
1
1
  ---
2
- description: "Omnify schema creation workflow - Use /schema-create command"
2
+ description: "Step-by-step schema creation workflow: 1) Read guide, 2) Create YAML, 3) npx omnify generate, 4) Validate output, 5) Migrate. CRITICAL: String defaults must be plain values without quotes wrapper!"
3
3
  globs: ["schemas/**/*.yaml", "schemas/**/*.yml", "{{LARAVEL_BASE}}/database/migrations/**"]
4
4
  alwaysApply: false
5
5
  ---
6
6
 
7
7
  # Omnify Schema Creation Workflow
8
8
 
9
- > **Command:** `/schema-create` - Follow this workflow when creating or modifying schemas
9
+ > **Usage:** Mention `@schema-create` in chat OR this rule auto-applies when editing schema files
10
10
 
11
11
  ## 📋 Workflow Steps
12
12