@mingfuyun/star-allinone 0.3.2 → 0.4.0

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.
Files changed (30) hide show
  1. package/README.md +35 -75
  2. package/dist/components/CustomDrawer/index.d.ts +2 -0
  3. package/dist/components/CustomDrawer/index.d.ts.map +1 -1
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.esm.js +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/tracking/index.d.ts +60 -0
  9. package/dist/tracking/index.d.ts.map +1 -0
  10. package/examples/AGENTS.md +14 -2
  11. package/package.json +4 -2
  12. package/scripts/cli.js +28 -1
  13. package/scripts/gen/doctor.js +293 -0
  14. package/scripts/gen/fields.js +118 -0
  15. package/scripts/gen/fixtures/run.js +78 -10
  16. package/scripts/gen/fixtures/widgets.openapi.json +2 -1
  17. package/scripts/gen/page.js +194 -43
  18. package/skills/README.md +16 -3
  19. package/skills/shared/design-to-page/SKILL.md +3 -3
  20. package/skills/shared/design-to-page/references/list-page-template.md +13 -3
  21. package/skills/shared/design-to-page/references/overlays.md +6 -0
  22. package/skills/shared/design-to-page/references/page-conventions.md +2 -1
  23. package/skills/shared/project-conventions/references/architecture.md +5 -2
  24. package/skills/shared/project-conventions/references/component-contract.md +38 -0
  25. package/skills/shared/project-conventions/references/mfprotable.md +59 -0
  26. package/skills/shared/project-conventions/references/quality-checklist.md +14 -0
  27. package/skills/shared/project-conventions/references/review-checklist.md +2 -2
  28. package/skills/shared/publish-test/SKILL.md +10 -0
  29. package/skills/shared/review-and-submit/references/ai-review.md +5 -1
  30. package/skills/shared/review-and-submit/references/verify.md +2 -0
@@ -15,7 +15,11 @@ If `.agents/project/review-rules.md` exists, apply extra domain checks only; do
15
15
  2. API contracts: method/path/params, response unwrapping, pagination, nullability, enum drift, error handling, DTO mismatch.
16
16
  3. Permissions: route access, button visibility, mutation authorization, client-only enforcement.
17
17
  4. Forms/tables: validation, reset, duplicate submit, refresh after mutation, column-state, long text, empty/error.
18
- 5. Performance: eager `xlsx`/editor imports, duplicate libraries, large lists without virtualization, unstable columns/handlers, avoidable requests.
18
+ 5. Performance (hard checks):
19
+ - New or changed files must not statically `import 'xlsx'`, `@uiw/react-codemirror`, `@codemirror/*`, `echarts`, `@ant-design/charts`, or `react-json-view` at module top level. Those must be `import()`.
20
+ - Do not add heavy modules to `src/app.ts`, `src/global.tsx`, or layout bootstrap.
21
+ - Flag generated list pages that pull Excel/editor/chart code into the route entry instead of a feature-level dynamic import.
22
+ - Also check duplicate libraries, large lists without virtualization, unstable columns/handlers, and avoidable requests.
19
23
  6. Security/privacy: tokens, user data, URLs, unsafe HTML, sensitive logs, environment config.
20
24
  7. Tests and accessibility: critical paths, failure states, keyboard labels, disabled/loading semantics.
21
25
 
@@ -16,6 +16,8 @@ Do not auto-fix. If `.agents/project/review-rules.md` exists, apply extra domain
16
16
  3. Every `await` has `try-catch`; loading restores in `finally`; overlays clear state on close; successful mutations reload lists.
17
17
  4. Scan new `any`, `as any`, `@ts-ignore`, direct Ant Design `Modal` / `Drawer` / `<Form>` containers, and production fake data.
18
18
  5. Empty table values, duplicate-submit guards, permission wrappers, and narrow-screen overflow.
19
+ 6. Heavy deps (`xlsx`, editors, charts) are `import()`; nothing new lands in `src/app.ts`.
20
+ 7. No `MFTablePro` / table-from-package imports; overlays come from `@mingfuyun/star-allinone`.
19
21
 
20
22
  ## Commands
21
23