cabloy 5.1.59 → 5.1.61

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 (149) hide show
  1. package/.claude/hooks/contract-loop-gate.ts +296 -0
  2. package/.claude/settings.json +16 -0
  3. package/.claude/skills/cabloy-backend-scaffold/references/follow-up-checklist.md +1 -0
  4. package/.claude/skills/cabloy-contract-loop/SKILL.md +103 -14
  5. package/.claude/skills/cabloy-contract-loop/references/contract-loop-map.md +126 -12
  6. package/.claude/skills/cabloy-contract-loop/references/resource-custom-state-pattern.md +148 -0
  7. package/.claude/skills/cabloy-contract-loop/references/verification-checklist.md +49 -13
  8. package/.claude/skills/cabloy-frontend-scaffold/SKILL.md +11 -0
  9. package/.claude/skills/cabloy-frontend-scaffold/references/follow-up-checklist.md +2 -0
  10. package/.claude/skills/cabloy-module-removal/SKILL.md +144 -0
  11. package/.claude/skills/cabloy-resource-field-update/SKILL.md +274 -0
  12. package/.claude/skills/cabloy-resource-field-update/evals/evals.json +53 -0
  13. package/.claude/skills/cabloy-resource-field-update/references/custom-renderer-demo-checklist.md +102 -0
  14. package/.claude/skills/cabloy-resource-field-update/references/field-update-decision-tree.md +120 -0
  15. package/.claude/skills/cabloy-resource-field-update/references/follow-up-checklist.md +80 -0
  16. package/.claude/skills/cabloy-resource-field-update/references/verification-checklist.md +97 -0
  17. package/.claude/skills/cabloy-zova-source-reading/SKILL.md +221 -0
  18. package/.claude/skills/cabloy-zova-source-reading/references/analysis-modes.md +91 -0
  19. package/.claude/skills/cabloy-zova-source-reading/references/core-reading-paths.md +117 -0
  20. package/.github/workflows/docs-pages.yml +2 -0
  21. package/.github/workflows/vona-cov-pg.yml +2 -0
  22. package/.github/workflows/vona-test-crud.yml +4 -2
  23. package/.github/workflows/vona-test-mysql.yml +2 -0
  24. package/.github/workflows/vona-test-pg.yml +2 -0
  25. package/.github/workflows/vona-test-sqlite3.yml +2 -0
  26. package/.github/workflows/vona-tsc.yml +2 -0
  27. package/.github/workflows/zova-ui.yml +2 -0
  28. package/.gitignore +0 -4
  29. package/CHANGELOG.md +52 -0
  30. package/CLAUDE.md +12 -0
  31. package/README.md +15 -0
  32. package/cabloy-docs/.vitepress/config.mjs +89 -0
  33. package/cabloy-docs/ai/class-placement-rule.md +2 -0
  34. package/cabloy-docs/ai/cli-to-skill-map.md +14 -0
  35. package/cabloy-docs/ai/docs-skills-rules-mapping.md +14 -0
  36. package/cabloy-docs/ai/future-skill-roadmap.md +27 -9
  37. package/cabloy-docs/ai/introduction.md +1 -0
  38. package/cabloy-docs/ai/playbook-backend-module.md +6 -0
  39. package/cabloy-docs/ai/playbook-module-removal.md +164 -0
  40. package/cabloy-docs/ai/skills.md +11 -0
  41. package/cabloy-docs/backend/bean-scene-authoring.md +350 -0
  42. package/cabloy-docs/backend/cli.md +26 -1
  43. package/cabloy-docs/backend/dto-guide.md +6 -0
  44. package/cabloy-docs/backend/entity-guide.md +18 -0
  45. package/cabloy-docs/backend/foundation.md +28 -3
  46. package/cabloy-docs/backend/introduction.md +10 -0
  47. package/cabloy-docs/backend/serialization-guide.md +10 -0
  48. package/cabloy-docs/backend/service-guide.md +2 -0
  49. package/cabloy-docs/backend/status-guide.md +271 -0
  50. package/cabloy-docs/backend/websocket-call-flow.md +435 -0
  51. package/cabloy-docs/backend/websocket-guide.md +455 -0
  52. package/cabloy-docs/backend/websocket-protocol-guide.md +381 -0
  53. package/cabloy-docs/backend/websocket-usage-guide.md +356 -0
  54. package/cabloy-docs/frontend/api-guide.md +2 -0
  55. package/cabloy-docs/frontend/bean-scene-authoring.md +374 -0
  56. package/cabloy-docs/frontend/behavior-guide.md +449 -0
  57. package/cabloy-docs/frontend/cli.md +24 -0
  58. package/cabloy-docs/frontend/command-scene-authoring.md +495 -0
  59. package/cabloy-docs/frontend/design-principles.md +6 -0
  60. package/cabloy-docs/frontend/fetch-interceptor-guide.md +440 -0
  61. package/cabloy-docs/frontend/form-guide.md +795 -0
  62. package/cabloy-docs/frontend/foundation.md +29 -0
  63. package/cabloy-docs/frontend/introduction.md +17 -1
  64. package/cabloy-docs/frontend/ioc-and-beans.md +16 -9
  65. package/cabloy-docs/frontend/mock-guide.md +1 -0
  66. package/cabloy-docs/frontend/model-architecture.md +252 -39
  67. package/cabloy-docs/frontend/model-resource-best-practices.md +379 -0
  68. package/cabloy-docs/frontend/model-resource-cookbook.md +505 -0
  69. package/cabloy-docs/frontend/model-resource-owner-pattern.md +382 -0
  70. package/cabloy-docs/frontend/model-resource-usage-guide.md +318 -0
  71. package/cabloy-docs/frontend/model-state-guide.md +366 -13
  72. package/cabloy-docs/frontend/openapi-sdk-guide.md +5 -2
  73. package/cabloy-docs/frontend/page-guide.md +6 -0
  74. package/cabloy-docs/frontend/quickstart.md +4 -0
  75. package/cabloy-docs/frontend/reading-zova-for-vue-developers.md +266 -0
  76. package/cabloy-docs/frontend/router-tabs-admin-web-comparison.md +206 -0
  77. package/cabloy-docs/frontend/router-tabs-introduction.md +106 -0
  78. package/cabloy-docs/frontend/router-tabs-mechanism.md +469 -0
  79. package/cabloy-docs/frontend/router-tabs-overview.md +227 -0
  80. package/cabloy-docs/frontend/router-tabs-route-meta-cookbook.md +343 -0
  81. package/cabloy-docs/frontend/server-data.md +2 -0
  82. package/cabloy-docs/frontend/ssr-architecture-overview.md +211 -0
  83. package/cabloy-docs/frontend/ssr-build-deploy-guide.md +308 -0
  84. package/cabloy-docs/frontend/ssr-review-checklist.md +184 -0
  85. package/cabloy-docs/frontend/ssr-troubleshooting-guide.md +301 -0
  86. package/cabloy-docs/frontend/zova-form-source-reading-map.md +295 -0
  87. package/cabloy-docs/frontend/zova-form-under-the-hood.md +556 -0
  88. package/cabloy-docs/frontend/zova-reactivity-under-the-hood.md +320 -0
  89. package/cabloy-docs/frontend/zova-source-reading-map.md +327 -0
  90. package/cabloy-docs/frontend/zova-vs-vue3-comparison.md +308 -0
  91. package/cabloy-docs/fullstack/contract-loop-playbook.md +350 -0
  92. package/cabloy-docs/fullstack/framework-performance.md +3 -3
  93. package/cabloy-docs/fullstack/frontend-metadata-to-backend.md +44 -1
  94. package/cabloy-docs/fullstack/introduction.md +40 -0
  95. package/cabloy-docs/fullstack/openapi-to-sdk.md +19 -9
  96. package/cabloy-docs/fullstack/quickstart.md +7 -1
  97. package/cabloy-docs/fullstack/tutorial-1-first-module.md +111 -0
  98. package/cabloy-docs/fullstack/tutorial-2-first-crud.md +122 -0
  99. package/cabloy-docs/fullstack/tutorial-3-frontend-metadata-sharing.md +131 -0
  100. package/cabloy-docs/fullstack/tutorial-4-custom-level-renderers.md +144 -0
  101. package/cabloy-docs/fullstack/tutorial-5-backend-contract-sharing.md +146 -0
  102. package/cabloy-docs/fullstack/tutorial-6-one-contract-four-uses.md +170 -0
  103. package/cabloy-docs/fullstack/tutorials-overview.md +192 -0
  104. package/cabloy-docs/index.md +4 -3
  105. package/cabloy-docs/reference/bean-scene-boilerplates.md +75 -0
  106. package/cabloy-docs/reference/cli-reference.md +2 -0
  107. package/package.json +7 -2
  108. package/scripts/initTestData.ts +25 -0
  109. package/scripts/upgrade.ts +17 -2
  110. package/vona/packages-cli/cabloy-cli/package.json +2 -2
  111. package/vona/packages-cli/cli/package.json +1 -1
  112. package/vona/packages-cli/cli-set-api/package.json +1 -1
  113. package/vona/packages-cli/cli-set-api/src/lib/bean/cli.create.module.ts +4 -0
  114. package/vona/packages-vona/vona/package.json +1 -1
  115. package/vona/pnpm-lock.yaml +226 -1091
  116. package/vona/pnpm-workspace.yaml +0 -1
  117. package/vona/src/suite-vendor/a-vona/modules/a-core/assets/static/img/vona.svg +1 -1
  118. package/vona/src/suite-vendor/a-vona/modules/a-core/package.json +1 -1
  119. package/vona/src/suite-vendor/a-vona/modules/a-permission/package.json +1 -1
  120. package/vona/src/suite-vendor/a-vona/modules/a-permission/src/bean/bean.permission.ts +1 -1
  121. package/vona/src/suite-vendor/a-vona/modules/a-upload/package.json +2 -2
  122. package/vona/src/suite-vendor/a-vona/package.json +1 -1
  123. package/zova/package.original.json +1 -1
  124. package/zova/packages-cli/cli/package.json +3 -3
  125. package/zova/packages-cli/cli-set-front/cli/templates/init/icon/boilerplate/icons/default/zova.svg +1 -1
  126. package/zova/packages-cli/cli-set-front/cli/templates/openapi/config/boilerplate/module/openapi.config.ts +6 -1
  127. package/zova/packages-cli/cli-set-front/package.json +3 -3
  128. package/zova/packages-cli/cli-set-front/src/lib/bean/cli.create.module.ts +4 -0
  129. package/zova/packages-cli/cli-set-front/src/lib/bean/cli.openapi.generate.ts +34 -4
  130. package/zova/packages-cli/cli-set-front/src/lib/command/create.bean.ts +5 -1
  131. package/zova/packages-utils/zova-vite/package.json +2 -2
  132. package/zova/packages-zova/zova/package.json +2 -2
  133. package/zova/pnpm-lock.yaml +282 -1311
  134. package/zova/pnpm-workspace.yaml +0 -1
  135. package/zova/src/suite/a-home/modules/home-icon/icons/social/cabloy.svg +1 -1
  136. package/zova/src/suite/a-home/modules/home-icon/icons/social/vona.svg +1 -1
  137. package/zova/src/suite/a-home/modules/home-icon/icons/social/zova.svg +1 -1
  138. package/zova/src/suite/a-home/modules/home-icon/src/.metadata/icons/groups/social.svg +3 -3
  139. package/zova/src/suite/cabloy-basic/modules/basic-select/src/component/formFieldSelect/controller.tsx +9 -0
  140. package/zova/src/suite-vendor/a-cabloy/modules/rest-resource/package.json +1 -1
  141. package/zova/src/suite-vendor/a-cabloy/modules/rest-resource/src/model/resource.ts +66 -16
  142. package/zova/src/suite-vendor/a-cabloy/package.json +2 -2
  143. package/zova/src/suite-vendor/a-zova/modules/a-routertabs/package.json +1 -1
  144. package/zova/src/suite-vendor/a-zova/modules/a-routertabs/src/model/tabs.ts +60 -18
  145. package/zova/src/suite-vendor/a-zova/modules/a-table/cli/tableActionRow/boilerplate/{{sceneName}}.{{beanName}}.tsx_ +6 -1
  146. package/zova/src/suite-vendor/a-zova/modules/a-table/cli/tableCell/boilerplate/{{sceneName}}.{{beanName}}.tsx_ +6 -1
  147. package/zova/src/suite-vendor/a-zova/modules/a-table/package.json +1 -1
  148. package/zova/src/suite-vendor/a-zova/modules/a-zova/package.json +2 -2
  149. package/zova/src/suite-vendor/a-zova/package.json +4 -4
@@ -1,6 +1,5 @@
1
1
  packages:
2
2
  - 'packages-cli/*'
3
- - 'packages-docs'
4
3
  - 'packages-utils/*'
5
4
  - 'packages-vona/*'
6
5
  - 'src/module/*'
@@ -1,3 +1,3 @@
1
- <svg width="20" height="19" viewBox="0 0 20 19" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ <svg width="32" height="32" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path d="M18.5156 0C18.7656 0 18.9583 0.046875 19.0938 0.140625C19.2292 0.223958 19.3281 0.380208 19.3906 0.609375C19.4635 0.838542 19.5 1.17188 19.5 1.60938C19.5 2.04688 19.4635 2.38021 19.3906 2.60938C19.3281 2.83854 19.2292 2.99479 19.0938 3.07812C18.9583 3.16146 18.7656 3.20312 18.5156 3.20312H17.4531L11.7812 17.875C11.6354 18.25 11.4115 18.5104 11.1094 18.6562C10.8073 18.8125 10.3385 18.8906 9.70312 18.8906C9.06771 18.8906 8.59896 18.8125 8.29688 18.6562C8.00521 18.5 7.79167 18.2396 7.65625 17.875L2.1875 3.20312H0.984375C0.734375 3.20312 0.541667 3.16146 0.40625 3.07812C0.270833 2.99479 0.171875 2.83854 0.109375 2.60938C0.0364583 2.38021 0 2.04688 0 1.60938C0 1.17188 0.0364583 0.838542 0.109375 0.609375C0.171875 0.380208 0.270833 0.223958 0.40625 0.140625C0.541667 0.046875 0.734375 0 0.984375 0H7.76562C8.01562 0 8.20833 0.046875 8.34375 0.140625C8.47917 0.223958 8.57812 0.380208 8.64062 0.609375C8.71354 0.838542 8.75 1.17188 8.75 1.60938C8.75 2.04688 8.71354 2.38021 8.64062 2.60938C8.57812 2.83854 8.47917 2.99479 8.34375 3.07812C8.20833 3.16146 8.01562 3.20312 7.76562 3.20312H6.375L9.73438 12.7812L13.3125 3.20312H12.2031C11.9531 3.20312 11.7604 3.16146 11.625 3.07812C11.4896 2.99479 11.3854 2.83854 11.3125 2.60938C11.25 2.38021 11.2188 2.04688 11.2188 1.60938C11.2188 1.17188 11.25 0.838542 11.3125 0.609375C11.3854 0.380208 11.4896 0.223958 11.625 0.140625C11.7604 0.046875 11.9531 0 12.2031 0H18.5156Z" fill="#FF9300"/>
3
3
  </svg>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-module-a-core",
3
- "version": "5.1.26",
3
+ "version": "5.1.27",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-module-a-permission",
3
- "version": "5.1.9",
3
+ "version": "5.1.10",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "keywords": [
@@ -45,7 +45,7 @@ export class BeanPermission extends BeanBase {
45
45
  }
46
46
 
47
47
  protected retrievePermissionsDefaultCacheKey(info: ICachingActionKeyInfo): string {
48
- return `default:${this._buildPermissionProfileKey(info.args[0])}`;
48
+ return `default:${this._buildPermissionProfileKey(info.args[0] as never)}`;
49
49
  }
50
50
 
51
51
  @Caching.get({ cacheName: 'a-permission:permission', cacheKeyFn: 'retrievePermissionsCacheKey' })
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-module-a-upload",
3
- "version": "5.1.8",
3
+ "version": "5.1.9",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "keywords": [
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "@types/busboy": "^1.5.4",
36
36
  "busboy": "^1.6.0",
37
- "tmp": "^0.2.5"
37
+ "tmp": "^0.2.7"
38
38
  },
39
39
  "devDependencies": {
40
40
  "clean-package": "^2.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-suite-a-vona",
3
- "version": "5.1.40",
3
+ "version": "5.1.41",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "author": "",
@@ -72,7 +72,7 @@
72
72
  "@vitejs/plugin-vue": "^6.0.7",
73
73
  "concurrently": "^8.2.2",
74
74
  "quasar-app-extension-zova": "^1.3.1",
75
- "sass": "^1.99.0",
75
+ "sass": "^1.101.0",
76
76
  "typescript": "^5.9.3",
77
77
  "vite": "^8.0.14",
78
78
  "vite-plugin-fake-server-turbo": "^3.0.18",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-cli",
3
- "version": "1.2.78",
3
+ "version": "1.2.80",
4
4
  "gitHead": "6f675a8cc46d596142c591c28a40cc4d82fcc6cc",
5
5
  "description": "zova cli",
6
6
  "keywords": [
@@ -40,11 +40,11 @@
40
40
  "postpack": "clean-package restore"
41
41
  },
42
42
  "dependencies": {
43
- "@cabloy/cli": "^3.1.17",
43
+ "@cabloy/cli": "^3.1.18",
44
44
  "@cabloy/process-helper": "^3.1.8",
45
45
  "fs-extra": "^11.3.5",
46
46
  "semver": "^7.6.2",
47
- "zova-cli-set-front": "^1.2.76"
47
+ "zova-cli-set-front": "^1.2.78"
48
48
  },
49
49
  "devDependencies": {
50
50
  "clean-package": "^2.2.0",
@@ -1,3 +1,3 @@
1
- <svg width="15" height="19" viewBox="0 0 15 19" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ <svg width="32" height="32" viewBox="0 0 15 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path d="M13.7344 0C13.9844 0 14.1771 0.046875 14.3125 0.140625C14.4479 0.223958 14.5469 0.380208 14.6094 0.609375C14.6823 0.838542 14.7188 1.17188 14.7188 1.60938C14.7188 2.24479 14.599 2.72396 14.3594 3.04688L5.39062 15.1875H11.125V11.7188C11.125 11.3646 11.276 11.1146 11.5781 10.9688C11.8802 10.8125 12.3646 10.7344 13.0312 10.7344C13.6771 10.7344 14.1198 10.8073 14.3594 10.9531C14.599 11.099 14.7188 11.3542 14.7188 11.7188V17.5312C14.7188 17.8854 14.6406 18.1458 14.4844 18.3125C14.3281 18.4688 14.0677 18.5469 13.7031 18.5469H0.984375C0.734375 18.5469 0.541667 18.5052 0.40625 18.4219C0.270833 18.3385 0.166667 18.1823 0.09375 17.9531C0.03125 17.724 0 17.3906 0 16.9531C0 16.2656 0.104167 15.7812 0.3125 15.5L9.28125 3.35938H4.0625V6.51562C4.0625 6.86979 3.91146 7.125 3.60938 7.28125C3.30729 7.42708 2.82292 7.5 2.15625 7.5C1.51042 7.5 1.06771 7.42708 0.828125 7.28125C0.588542 7.13542 0.46875 6.88021 0.46875 6.51562V1.01562C0.46875 0.651042 0.546875 0.390625 0.703125 0.234375C0.869792 0.078125 1.13021 0 1.48438 0H13.7344Z" fill="#FF9300"/>
3
3
  </svg>
@@ -1,5 +1,10 @@
1
1
  import type { ZovaOpenapiConfigModule } from 'zova-openapi';
2
2
 
3
3
  export default function (): ZovaOpenapiConfigModule {
4
- return {};
4
+ return {
5
+ operations: {
6
+ // Specify operations.match or operations.ignore explicitly for this module.
7
+ match: [],
8
+ },
9
+ };
5
10
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-cli-set-front",
3
- "version": "1.2.76",
3
+ "version": "1.2.78",
4
4
  "gitHead": "6f675a8cc46d596142c591c28a40cc4d82fcc6cc",
5
5
  "description": "zova cli-set-front",
6
6
  "keywords": [
@@ -41,7 +41,7 @@
41
41
  "@babel/plugin-proposal-decorators": "^7.29.0",
42
42
  "@babel/plugin-transform-class-properties": "^7.28.6",
43
43
  "@babel/plugin-transform-typescript": "^7.28.6",
44
- "@cabloy/cli": "^3.1.17",
44
+ "@cabloy/cli": "^3.1.18",
45
45
  "@cabloy/extend": "^3.2.8",
46
46
  "@cabloy/module-info": "^2.0.0",
47
47
  "@cabloy/openapi-typescript": "^7.9.2",
@@ -70,7 +70,7 @@
70
70
  "vite": "^8.0.14",
71
71
  "yaml": "^2.8.3",
72
72
  "zova-openapi": "^1.1.17",
73
- "zova-vite": "^1.1.38"
73
+ "zova-vite": "^1.1.39"
74
74
  },
75
75
  "devDependencies": {
76
76
  "clean-package": "^2.2.0",
@@ -81,5 +81,9 @@ export class CliCreateModule extends BeanCliBase {
81
81
  if (!argv.vscode && !argv.ci) {
82
82
  await this.helper.pnpmInstall();
83
83
  }
84
+ // tools.metadata
85
+ if (!argv.nometadata) {
86
+ await this.helper.invokeCli([':tools:metadata', moduleName], { cwd: argv.projectPath });
87
+ }
84
88
  }
85
89
  }
@@ -4,7 +4,11 @@ import type {
4
4
  SchemaObject,
5
5
  TransformNodeOptions,
6
6
  } from '@cabloy/openapi-typescript';
7
- import type { ZovaOpenapiConfig, ZovaOpenapiConfigModule } from 'zova-openapi';
7
+ import type {
8
+ TypeOpenapiConfigMatchRule,
9
+ ZovaOpenapiConfig,
10
+ ZovaOpenapiConfigModule,
11
+ } from 'zova-openapi';
8
12
 
9
13
  import { BeanCliBase } from '@cabloy/cli';
10
14
  import { extend } from '@cabloy/extend';
@@ -107,6 +111,7 @@ export class CliOpenapiGenerate extends BeanCliBase {
107
111
  moduleConfigCli,
108
112
  config.modules[moduleInfo.relativeName],
109
113
  );
114
+ _validateOperations(moduleConfig, moduleInfo.relativeName, configFile);
110
115
  const cache = await this._outputFiles(
111
116
  openapiTypescript,
112
117
  moduleConfig,
@@ -534,12 +539,37 @@ function _q(question: boolean) {
534
539
  return question ? '?' : '';
535
540
  }
536
541
 
542
+ function _hasOperationRule(rule?: TypeOpenapiConfigMatchRule) {
543
+ if (!rule) return false;
544
+ return !Array.isArray(rule) || rule.length > 0;
545
+ }
546
+
547
+ function _validateOperations(
548
+ moduleConfig: ZovaOpenapiConfigModule,
549
+ moduleName: string,
550
+ configFile: string,
551
+ ) {
552
+ if (
553
+ _hasOperationRule(moduleConfig.operations?.match) ||
554
+ _hasOperationRule(moduleConfig.operations?.ignore)
555
+ ) {
556
+ return;
557
+ }
558
+ throw new Error(
559
+ `Please specify operations.match or operations.ignore in ${configFile} to avoid generating a large number of API SDKs unrelated to module "${moduleName}".`,
560
+ );
561
+ }
562
+
537
563
  function _checkOperationIdEnabled(moduleConfig: ZovaOpenapiConfigModule, selector?: string) {
538
564
  if (!selector) return false;
539
- if (!moduleConfig.operations?.match && !moduleConfig.operations?.ignore) return true;
565
+ const match = moduleConfig.operations?.match;
566
+ const ignore = moduleConfig.operations?.ignore;
567
+ const hasMatch = _hasOperationRule(match);
568
+ const hasIgnore = _hasOperationRule(ignore);
569
+ if (!hasMatch && !hasIgnore) return false;
540
570
  return (
541
- (moduleConfig.operations?.match && matchSelector(moduleConfig.operations?.match, selector)) ||
542
- (moduleConfig.operations?.ignore && !matchSelector(moduleConfig.operations?.ignore, selector))
571
+ (hasMatch && matchSelector(match!, selector)) ||
572
+ (hasIgnore && !matchSelector(ignore!, selector))
543
573
  );
544
574
  }
545
575
 
@@ -3,13 +3,17 @@ export default {
3
3
  info: {
4
4
  version: '5.0.0',
5
5
  title: 'Cli: Create Bean',
6
- usage: 'npm run zova :create:bean sceneName beanName -- [--module=]',
6
+ usage: 'npm run zova :create:bean sceneName beanName -- [--module=] [--boilerplate=]',
7
7
  },
8
8
  options: {
9
9
  module: {
10
10
  description: 'module name',
11
11
  type: 'string',
12
12
  },
13
+ boilerplate: {
14
+ description: 'boilerplate',
15
+ type: 'string',
16
+ },
13
17
  },
14
18
  groups: {
15
19
  default: {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-vite",
3
- "version": "1.1.38",
3
+ "version": "1.1.39",
4
4
  "gitHead": "09d901d17140a80ee0764211b441cda72fd94663",
5
5
  "description": "zova vite",
6
6
  "keywords": [
@@ -66,7 +66,7 @@
66
66
  "lodash": "^4.18.1",
67
67
  "minimist": "^1.2.8",
68
68
  "terser": "^5.46.1",
69
- "tmp": "^0.2.5",
69
+ "tmp": "^0.2.7",
70
70
  "vite": "^8.0.14",
71
71
  "vite-plugin-devtools-json": "^1.0.0",
72
72
  "vite-plugin-fake-server-turbo": "^3.0.18"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova",
3
- "version": "5.1.102",
3
+ "version": "5.1.103",
4
4
  "gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
5
5
  "description": "A vue3 framework with ioc",
6
6
  "keywords": [
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "zova-core": "^5.1.57",
49
- "zova-suite-a-zova": "^5.1.101"
49
+ "zova-suite-a-zova": "^5.1.102"
50
50
  },
51
51
  "devDependencies": {
52
52
  "clean-package": "^2.2.0",