@haneinfo/app-tooling 0.5.1 → 0.5.3

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 (2) hide show
  1. package/README.md +23 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @haneinfo/app-tooling
2
2
 
3
+ ## RBAC 8 App upgrade
4
+
5
+ `haneinfo-app` does not apply database migrations or permission plans. For each App,
6
+ upgrade rbac to 8.0.0 after release and run `haneinfo build`. For Apps using
7
+ `backend/prisma/schema/`, copy the reviewed rbac `prisma/role.prisma` fragment into that
8
+ active schema folder as well (build only emits the composed schema). Add
9
+ an App-owned migration before starting the upgraded backend:
10
+
11
+ ```sql
12
+ ALTER TABLE role_permissions ALTER COLUMN permission TYPE text USING permission::text;
13
+ ```
14
+
15
+ Regenerate Prisma Client, deploy the migration, seed, then run integration tests. Deploy
16
+ `backend/.haneinfo/generated/permissions.json` and start with `backend/` as the working
17
+ directory (or explicitly configure the catalog path). Keep the App `Permission` enum
18
+ as a catalog or supply constant IDs through `RBAC_PERMISSION_CATALOG_OPTIONS`.
19
+ Use the updated frontend-admin, or pass `/roles/permission-catalog` to custom role UIs.
20
+ Seeds must use `string[]` for mixed App/plugin grants and validate them with
21
+ `RbacPermissionCatalog.assertGrantable()` before insertion. Preserve retired grants.
22
+ The enum checker already accepts schemas without `Permission`; it still validates any
23
+ remaining enums and their translations. Do not translate plugin IDs as Prisma enums:
24
+ their labels come from the deployed catalog's `displayName`.
25
+
3
26
  ## Template synchronization
4
27
 
5
28
  Scaffolding records the clean template checkout's actual Git commit in `.haneinfo/scaffold.json`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haneinfo/app-tooling",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "description": "Shared Haneinfo App checks and scaffold tooling",
@@ -17,7 +17,7 @@
17
17
  "semver": "^7.8.5",
18
18
  "typescript": "^5.9.3",
19
19
  "yaml": "^2.9.1",
20
- "@haneinfo/plugin-cli": "2.2.0"
20
+ "@haneinfo/plugin-cli": "2.3.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^24.13.0",