# @tailor-platform/erp-kit

## 0.16.0

### Minor Changes

- 9bb24e2: - Add GitHub Actions composite action for Tailor Platform token fetching and reusable backend integration test workflow
  - Add stale erp-kit-\* workflow and action cleanup during `erp-kit update`
  - Improve app skills to adopt "adapt reference app" paradigm with init-time scaffolding and deploy workflow
  - Improve module init to scaffold boilerplate during `module init` instead of `module generate code`
  - Fix PurchasePaymentTermLine snapshot to select only snapshot-relevant fields, avoiding TailorDB rejection
  - Refactor app init to scaffold full boilerplate so `app generate code` focuses on doc-based stub generation
  - Refactor app-deploy into app-shared references instead of standalone skill

## 0.15.0

### Minor Changes

- 49c6c02: - Add `erp-kit run` interactive script runner command
  - Add edge-case tests and coverage setup for purchase module
  - Improve app-data skill with updated guidance
  - Add integration test workflow for scaffold backend

## 0.14.0

### Minor Changes

- b737558: - Add hierarchical permission matching: scope-level and module-level keys grant access to all commands under them

## 0.13.0

### Minor Changes

- 2b4cffe: - Add Result Checking rules to command and query skill documentation
  - Fix result handling violations in inventory commands (confirmStockMovement, createInventoryAdjustment, createStockMovement, updateStockMovement)
  - Fix result handling in purchase commands (createPurchaseBill, postGoodsReceipt) with proper error propagation
  - Improve integration test setup to auto-create and teardown workspace per test run
- 28a2125: add data-ingest skill

## 0.12.0

### Minor Changes

- 50c63b5: - Fix circular dependency in module barrel exports
  - Fix changeset-bump skill to recreate branch from main avoiding stale changesets
  - Update @tailor-platform/sdk dependencies
  - Update dependencies: typescript v6, lucide-react v1, pnpm v10.33.0, knip v6.1.0, @typescript-eslint/parser v8.58.0, pnpm/action-setup v5

## 0.11.0

### Minor Changes

- cedb4bd: - Add permission scope hierarchy to permission keys across all modules
  - Add app CI workflow template for application projects
  - Refactor user-management to replace PermissionGroup with direct Role permissions
  - Fix default workflow path inclusion in fileMatch override
  - Fix module-5-impl skill to include db field builder API reference
  - Update dependencies: @jackchuka/mdschema v0.12.8, pnpm/action-setup v5, build-tools

## 0.10.0

### Minor Changes

- 7a0d6a5: - Redesign user-management RBAC with permission groups for flexible role-based access control
  - Add debug logging to defineCommand/defineQuery for easier troubleshooting
  - Rename product-management setProductAttributeAssignment to assign/remove pattern (BREAKING)
  - Migrate purchase-management document lines from JSON columns to separate tables
  - Improve progress log error messages and schema-first logging
  - Fix performance.now() replaced with Date.now() for V8 compatibility
  - Remove unused scaffold permissions.ts template
  - Add erp-kit quickstart guide documentation
  - Add knip dead code detection with CI job

## 0.9.0

### Minor Changes

- afa2455: - Add seed:validate script and skill step to scaffold template
  - Add vitest to module scaffold template
  - Add version self-checking to all erp-kit skills
  - Fix command return properties to use full model names across all modules
  - Fix tree-shaking by adding sideEffects annotations to all module defineModule exports
  - Fix scaffold app integration tests
  - Fix inactive users being able to access the scaffold app
  - Fix skills CLI version check, remove erp-kit-shared dependency
  - Refactor audit pages out of user-management directory into standalone location
  - Remove audit dependency from coa-management module

## 0.8.0

### Minor Changes

- 16f35c6: - Add project scaffolding to `erp-kit init` command (pnpm workspace, package.json, directory structure)
  - Add accounting module implementation with models, commands, queries, and test fixtures
  - Add app-shell primitives and component cheat sheet reference for frontend implementation skill
  - Improve frontend templates by consolidating duplicate UI components into shared packages
  - Update manufacturing module documentation with additional model and command details
- cdb3690: - Add user-management scaffold template with full RBAC and audit support
  - Add `update` command pattern with union lookup keys for flexible record updates
  - Add app-shell primitives and detail-view reference for frontend implementation
  - Fix app scaffold expansion to exclude docs directory from template processing
  - Improve update command conventions with followup refinements
- 16f35c6: - Add manufacturing module with BOM, work orders, and production tracking
  - Add story test case sync-check and stub generation for `erp-kit test` command
  - Update workspace creation instructions and deployment steps in skills

### Patch Changes

- 16f35c6: - Fix relative shared imports to use package self-reference for consistent module resolution
  - Fix priority calibration in requirements review skill to improve accuracy
  - Fix severity validation in module-2 requirements review skill
  - Update module-4-plan-review skill and regenerate .agents/skills

## 0.7.0

### Minor Changes

- f30a314: - Add progress log tracking to app skill workflows for better visibility into skill execution
  - Add missing test file detection as errors in sync check
  - Fix APP_PATHS.storySegment reference to APP_PATHS.docs.story after path restructure
  - Fix CI git identity configuration and remove downstream-only workflow
  - Fix erp-kit command examples in skills to include npx prefix
  - Fix skill file sync and table formatting for CI compatibility
  - Fix app --path flag to expect direct app directory
  - Refactor progress logging section to top of app skill files for consistency
  - Remove resolver test generation from sync check

## 0.6.0

### Minor Changes

- 0cb94dc: - Add manufacturing module with BOM, work orders, and production tracking
  - Add story test case sync-check and stub generation for `erp-kit test` command
  - Update workspace creation instructions and deployment steps in skills

### Patch Changes

- 0cb94dc: - Fix relative shared imports to use package self-reference for consistent module resolution
  - Fix priority calibration in requirements review skill to improve accuracy
  - Fix severity validation in module-2 requirements review skill
  - Update module-4-plan-review skill and regenerate .agents/skills

## 0.5.1

### Patch Changes

- fb40e4d: - Fix mdschema binary resolution to use platform-specific native binaries, enabling Windows support
  - Fix init commands to be idempotent when directory already exists instead of erroring
  - Add package.json and dev tooling to module template
  - Update app skill to use erp-kit app generate seed

## 0.5.0

### Minor Changes

- 15c7f9c: - Add sales module with full TDD implementation (models, commands, queries, tests)
  - Add purchase module with full TDD implementation (29 commands, 8 queries, 104 process flow branches)
  - Add primitives module seed data (currencies, UoM categories, units, exchange rates) with deterministic UUID v5 IDs
  - Add `erp-kit app generate seed` CLI command for discovering module seed exports and writing JSONL files
  - Add module-3-update-plan skill for targeted doc fixes based on plan review feedback
  - Add scaffolded code orientation to app implementation skills (app-5-backend, app-6-frontend)
  - Add module metadata validation to app-4-plan-review skill
  - Add comprehensive documentation for inventory module Item model and lifecycle
  - Improve review skills with query-specific parity checks and enhanced test coverage
  - Improve support for N/A resolver status for background jobs and system events
  - Fix `.claude/skills` symlink on Windows using junction fallback
  - Refactor shared/testing exclusion handling by removing dead code
  - Update @tailor-platform/sdk to 1.25.4 (kysely now bundled in SDK)
- fb7e95a: - Add sales module with full TDD implementation
  - Add purchase module with full TDD implementation
  - Add N/A resolver status support for background jobs and system events
  - Add module-3-update-plan skill for targeted doc fixes
  - Add scaffolded code orientation to app implementation skills
  - Add module metadata validation to app review skills
  - Fix `erp-kit init` failing to create `.claude/skills` symlink on Windows (junction fallback + copy fallback)
  - Fix `erp-kit update skills` to refresh copied `.claude/skills` on Windows
  - Fix inventory documentation

## 0.4.1

### Patch Changes

- 4aada62: - Fix relative shared imports to use package self-reference for consistent module resolution
  - Fix priority calibration in requirements review skill to improve accuracy
  - Fix severity validation in module-2 requirements review skill
  - Update module-4-plan-review skill and regenerate .agents/skills

## 0.4.0

### Minor Changes

- d6f6d7e: - Add `erp-kit doc` command for AI-friendly module documentation rendering
  - Add `erp-kit doc search` command for searching across module documentation
  - Generate resolver code from app-level documentation specs
  - Add coa-management module with full GL account hierarchy support
  - Add business-partner module (renamed from supplier-management)
  - Add audit module with shared utilities for tracking changes
  - Add organization module with Company, Site, and Department models
  - Add tax module documentation with full feature specs
  - Add storage-master module documentation with full feature specs
  - Complete user-management RBAC documentation
  - Consolidate module roadmap from 21 to 12 modules, removing redundant scope
  - Remove obsolete modules per consolidated roadmap
  - Change resolver path convention from `src/modules/*/resolvers` to `src/resolvers`
  - Refactor and unify `src/` internals for cleaner module boundaries
  - Improve app skill workflow guidance and module integration quality
  - Update dependencies: eslint v10, vitest v4, vite v8, shadcn v4, @tailor-platform/sdk v1.25.2

## 0.3.0

### Minor Changes

- a8462ee: Reorganize scaffold into init/generate and update README

  - Refactor: replace `module scaffold` and `app scaffold` with `init` + `generate doc` / `generate code` subcommands
  - Feat: add `erp-kit-app-shared` skill consolidating duplicated references across app skills
  - Feat: add db stub generation and `reset:module` script
  - Refactor: run generate before impl agents in `erp-kit-module-5-impl`
  - Docs: rewrite README to align with current CLI commands, flags, skills (17), and testing exports

## 0.2.2

### Patch Changes

- 980a1f0: Add app-level scaffold with template files

## 0.2.1

### Patch Changes

- 4c94ba6: Add erp-kit-app-5-implementation skill, remove app-4-design and app-5-design-review skills

## 0.2.0

### Minor Changes

- 373b856: Add doc-driven deterministic code generation, defineQuery functions, type-safe command errors with Result type, license check command, auto-generated CLI docs, and item-management module. Fix cross-module type references in Kysely codegen and module scaffold structure. Refactor shared module skills, cross-module dependency handling, and scaffold templates.

## 0.1.2

### Patch Changes

- 0c9a2e5: CQRS query support and app/module subcommands

## 0.1.1

### Patch Changes

- 2f43392: Add MIT LICENSE and include CHANGELOG.md in published package
