create-tigra 5.0.2 → 5.0.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  A generated project never changes after it is created: these notes say what new projects get. To bring an older
4
4
  project along, port the changes you need; the guides in [docs/](docs/) cover the ones that need care.
5
5
 
6
+ ## 5.0.4 (2026-11-28)
7
+
8
+ Dependency security updates. `npm audit --omit=dev` (what runs in production) now finds nothing in the server and
9
+ 4 moderate findings in the client, all one advisory; the generator itself has none.
10
+
11
+ - Client: `@sentry/nextjs` 10.78 (clears a critical middleware-bypass advisory for tunnel routes) and `zod` 4.6.7.
12
+ `follow-redirects`, `fast-uri` and other packages deep in the tree are on fixed versions.
13
+ - Server: `fastify` 5.12.8, `@fastify/static` 10.1.12 and `zod` 4.6.7. Prisma 6 pins vulnerable `effect` and
14
+ `deepmerge-ts` in its config loader; `overrides` in `server/package.json` move them to 3.22.5 and 8.0.2 (Prisma
15
+ generates, migrates and passes the integration tests with them). They go away with Prisma 7.
16
+ - Dev tools: Vitest 4.1.12, ESLint 10.16 (server), shadcn 4.23 (client; its `tailwind.css` only adds opt-in
17
+ utilities), with refreshed `vite`, `undici` and `hono`. The generator's `ts-morph` helper no longer brings a
18
+ vulnerable `minimatch`.
19
+ - Both Dockerfiles use `node:24-alpine` with Node 24.22.3 (security release, npm 11.19.1 as before).
20
+ - Still reported, all needing a major upgrade: in the client, `glob` inside Sentry's build-time source-map plugin
21
+ (fixed only in `@sentry/nextjs` 11); among dev tools, `minimatch` under typescript-eslint and `glob` under
22
+ Testcontainers. None of them runs while the app serves requests.
23
+
24
+ To bring an existing project along: apply the same version changes in its `package.json` files (and the server's
25
+ `@prisma/config` overrides), run `npm install` with npm 11.19 or newer, then `npx prisma generate` and the project's
26
+ tests. Check `npm audit --omit=dev` in both apps afterwards.
27
+
28
+ ## 5.0.3 (2026-11-27)
29
+
30
+ - New projects' `AGENTS.md` has a plain Project facts section. It used to name the maintainer's private tools.
31
+ - The guide `create-tigra add diagnostics` installs (`server/docs/diagnostics.md`) reads the diagnostics view with plain
32
+ SQL from any read-only MySQL client, instead of the maintainer's private tooling.
33
+ - The repository is ready for contributions: `CONTRIBUTING.md`, `SECURITY.md` (private vulnerability reporting), issue
34
+ and pull request templates and `CODEOWNERS`. The old Claude Code archive left the repository.
35
+
6
36
  ## 5.0.2 (2026-11-18)
7
37
 
8
38
  - Give new apps a shared 1px inset focus outline. Keyboard navigation shows the outline from the first frame, and text fields also show it after a click or tap. Adjust the width and style in `client/src/app/globals.css`.
package/README.md CHANGED
@@ -23,6 +23,7 @@ secrets in its git-ignored `.env` files.
23
23
  - [Adding a module later](#adding-a-module-later)
24
24
  - [Documentation](#documentation)
25
25
  - [Upgrading from 3.x](#upgrading-from-3x)
26
+ - [Contributing](#contributing)
26
27
 
27
28
  ## What you get
28
29
 
@@ -298,6 +299,8 @@ In every generated project:
298
299
  In this repository:
299
300
 
300
301
  - [CHANGELOG.md](CHANGELOG.md): what changed in each release.
302
+ - [CONTRIBUTING.md](CONTRIBUTING.md) and [SECURITY.md](SECURITY.md): how to contribute, and how to report a
303
+ vulnerability privately.
301
304
  - [Client IP behind proxies and Cloudflare](docs/client-ip-behind-proxies.md): how the visitor address is verified,
302
305
  and how to port it to an older project.
303
306
  - [Account ban vs email verification](docs/account-ban-vs-email-verification.md) and
@@ -314,6 +317,15 @@ template (sessions, rate limits, uploads, the admin API, jobs, health checks, te
314
317
  rules and the client). [CHANGELOG.md](CHANGELOG.md) lists every change by area; the guides in `docs/` show how to port
315
318
  the ones that need care. New projects need Node 24 and npm 11.19+ (the 3.3.0 images ran Node 20).
316
319
 
320
+ ## Contributing
321
+
322
+ Contributions of every kind are welcome: bug fixes, modules, core features, docs, tests and ideas. Every pull
323
+ request is reviewed. For a bigger change, open an issue first so we agree on the approach before you build it. The
324
+ template takes no UI pages, since every app designs its own screens. [CONTRIBUTING.md](CONTRIBUTING.md) explains how
325
+ to test a change on freshly generated projects.
326
+
327
+ Found a vulnerability? Report it privately as described in [SECURITY.md](SECURITY.md), never as a public issue.
328
+
317
329
  ## License
318
330
 
319
331
  MIT
@@ -6,31 +6,30 @@ and its configured instance. Read the diagnostics through either path below.
6
6
  Report observed counts and samples separately from what the source suggests
7
7
  caused them. Use the recorded release to locate the matching source revision.
8
8
 
9
- ## Read with the shared MySQL skill
9
+ ## Read with SQL
10
10
 
11
- Use `seed-mysql-control` with the application's existing read-only access.
12
- The example uses PowerShell. Set the checkout, instance and UTC hour for the
13
- project under investigation. The hour format is `YYYY-MM-DD HH:00:00`.
11
+ Connect with any read-only MySQL client (the `mysql` command line, a database GUI, or your own read-only tool) to
12
+ the application's database, and query the `diagnostic_hourly_top` view. Set the UTC hour you are investigating; the
13
+ hour format is `YYYY-MM-DD HH:00:00`.
14
14
 
15
- ```powershell
16
- $tool = 'C:/Users/seed/Documents/GitHub/seed-plugins/mysql/mysql_control.py'
17
- $app = 'C:/path/to/generated-app'
18
- $instance = 'kotiko'
19
- $hour = (Get-Date).ToUniversalTime().AddHours(-1).ToString('yyyy-MM-dd HH:00:00')
20
- uv run --script $tool select $instance --repo-root $app --table diagnostic_hourly_top --columns hour_start,severity,group_rank,group_id,occurrence_count,first_seen,last_seen,source,label,code,message,frames,release --where "hour_start=$hour" --where 'severity=error' --limit 10
15
+ ```sql
16
+ SELECT hour_start, severity, group_rank, group_id, occurrence_count, first_seen, last_seen,
17
+ source, label, code, message, frames, `release`
18
+ FROM diagnostic_hourly_top
19
+ WHERE hour_start = '2026-07-21 12:00:00'
20
+ AND severity = 'error'
21
+ ORDER BY group_rank
22
+ LIMIT 10;
21
23
  ```
22
24
 
23
- Sort returned rows by `group_rank`. Use `severity=warning` for warnings. The
24
- view returns at most ten groups for each exact hour and severity. Use the
25
- admin API for custom intervals and for groups outside the hourly top ten.
25
+ Use `severity = 'warning'` for warnings. The view returns at most ten groups for each exact hour and severity. Use
26
+ the admin API for custom intervals and for groups outside the hourly top ten.
26
27
 
27
- The shared toolkit's existing reader has schema-wide read access. For a
28
- diagnostics-only SQL principal, grant `SELECT` on `diagnostic_hourly_top`
29
- alone. Its fixed projection runs as the app's stable migration account. Use
30
- the bundled `modules/diagnostics/prisma/diagnostic-hourly-view.sql` as a new
31
- migration when retrofitting an installed diagnostics view. Keep the applied
32
- migration and run the new one with a schema-scoped account that will retain
33
- read access to `diagnostic_buckets`.
28
+ A reader with read access to the whole schema can use the view as it is. For a diagnostics-only SQL account, grant
29
+ `SELECT` on `diagnostic_hourly_top` alone. Its fixed projection runs as the app's stable migration account. Use the
30
+ bundled `modules/diagnostics/prisma/diagnostic-hourly-view.sql` as a new migration when retrofitting an installed
31
+ diagnostics view. Keep the applied migration and run the new one with a schema-scoped account that will retain read
32
+ access to `diagnostic_buckets`.
34
33
 
35
34
  ## Read with an existing admin session
36
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-tigra",
3
- "version": "5.0.2",
3
+ "version": "5.0.4",
4
4
  "type": "module",
5
5
  "description": "Create a production-ready full-stack app with Next.js 16 + Fastify 5 + Prisma + Redis",
6
6
  "bin": {
@@ -25,14 +25,14 @@ Every implementation change MUST include a human-readability pass. Add or update
25
25
  <!-- project-facts:start -->
26
26
  ## Project facts
27
27
 
28
- > Maintained by the `seed-project-facts` skill: run it once to fill the TODOs. This section is the source of truth for this project: keep it true. If your work changes any line (deployment, URLs, hosting, databases, Redis, integrations, rules), update it and the seed-plugins registry row in the same change. If it conflicts with reality, trust reality, fix it, and tell Tornike. No secrets here.
28
+ > Fill in the TODOs once. This section is where people and agents look first, so keep it true: when your work changes a line (deployment, URLs, hosting, databases, Redis, integrations, rules), update it in the same change. If it conflicts with reality, trust reality and fix it. No secrets here.
29
29
 
30
30
  - **Name:** {{PROJECT_NAME}}
31
31
  - **Purpose:** TODO
32
32
  - **Production:** TODO (client URL / server URL, or "not deployed")
33
- - **Hosting:** TODO (Coolify instance, or none)
34
- - **Local MySQL:** `{{DATABASE_NAME}}` on TODO (central-mysql | per-project container)
35
- - **Production MySQL:** TODO (`db` on shared MySQL on <instance> | dedicated Coolify MySQL | none)
33
+ - **Hosting:** TODO (e.g. a Coolify server, or none)
34
+ - **Local MySQL:** `{{DATABASE_NAME}}` (server/docker-compose.yml)
35
+ - **Production MySQL:** TODO (database name and where it runs, or none)
36
36
  - **Redis:** TODO (local yes/no / production yes/no)
37
37
  - **Talks to:** TODO
38
38
  - **Special rules:** none
@@ -52,6 +52,7 @@ Every implementation change MUST include a human-readability pass. Add or update
52
52
  - Every deploy applies the new migrations while the old version is still serving, so a migration must work with the code that is still running. Follow expand / deploy / contract (`server/docs/deployment.md`): never drop, rename, retype or make a column required in the same deploy as the code that stops using it.
53
53
  - Both Dockerfiles build sharp against a pinned libvips so images run on CPUs without x86-64-v2. When upgrading sharp (or Next, which brings its own sharp), check the new sharp's `config.libvips` range; if `LIBVIPS_VERSION` no longer satisfies it, bump `LIBVIPS_VERSION` and `LIBVIPS_SHA256` in both Dockerfiles. The build fails with a clear message if they do not match.
54
54
  - Write `package-lock.json` with npm 11.19 or newer (`npm -v`). The images run `npm ci` with npm 11.19.1, which rejects lockfiles from npm 10 and from early npm 11 (11.6.1 was seen failing).
55
+ - `overrides` in `server/package.json` and `client/package.json` force a fixed version of a package deep in the tree when an advisory hit it and its parent has not caught up. Before removing one, check with `npm ls <package>` that the parent now brings the fixed version by itself. The server's `@prisma/config` overrides (`effect`, `deepmerge-ts`) exist because Prisma 6 pins vulnerable versions; drop them when moving to Prisma 7, and after changing them run `npx prisma generate` and the integration tests (they apply the migrations).
55
56
  - `server/docker-compose.yml` is local-development infrastructure, not a production topology. Keep host ports loopback-bound and admin UIs opt-in through the `tools` profile.
56
57
 
57
58
  ## Non-obvious security rules
@@ -9,7 +9,7 @@
9
9
  # (measured ~2.8x: 49s->18s on a real create-tigra client) instead of
10
10
  # re-downloading every tarball. Requires the `# syntax` line above (BuildKit).
11
11
  #
12
- # Every stage uses the same pinned node:24-alpine image (Node 24.22.0,
12
+ # Every stage uses the same pinned node:24-alpine image (Node 24.22.3,
13
13
  # npm 11.19.1, Alpine 3.24). Node 24 is the template's runtime (package.json
14
14
  # engines >=24). `npm ci` below fails when package-lock.json was written by an
15
15
  # older npm: npm 10 always, and early npm 11 too (11.6.1 leaves out the
@@ -40,7 +40,7 @@
40
40
  # 0.35.5). When a sharp upgrade needs more than LIBVIPS_VERSION, bump
41
41
  # LIBVIPS_VERSION and LIBVIPS_SHA256 (from the libvips release page) in BOTH
42
42
  # Dockerfiles. Stage 2 stops the build with a clear message if you forget.
43
- FROM node:24-alpine@sha256:44fce696f38ba8c987c4db89954051000bbd05ffd8d8659ba15ed4a8602e937f AS libvips
43
+ FROM node:24-alpine@sha256:116b800c3754b440ee0aa3ed2f20f5bf3d99a554bfd9adeea09ea8017f6e85f5 AS libvips
44
44
 
45
45
  ARG LIBVIPS_VERSION=8.18.7
46
46
  ARG LIBVIPS_SHA256=5baaead3b0bb20ffdb9e9ff09aa9fda08620923df77b63b436654cb5e0b3bf94
@@ -201,7 +201,7 @@ RUN npm run build
201
201
  # ===================================================================
202
202
  # Stage 4: Production Runtime
203
203
  # ===================================================================
204
- FROM node:24-alpine@sha256:44fce696f38ba8c987c4db89954051000bbd05ffd8d8659ba15ed4a8602e937f AS production
204
+ FROM node:24-alpine@sha256:116b800c3754b440ee0aa3ed2f20f5bf3d99a554bfd9adeea09ea8017f6e85f5 AS production
205
205
 
206
206
  # dumb-init: proper signal handling.
207
207
  # curl: Coolify's own HTTP health check runs curl (then BusyBox wget) inside