create-tigra 5.0.2 → 5.0.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.3 (2026-11-27)
7
+
8
+ - New projects' `AGENTS.md` has a plain Project facts section. It used to name the maintainer's private tools.
9
+ - The guide `create-tigra add diagnostics` installs (`server/docs/diagnostics.md`) reads the diagnostics view with plain
10
+ SQL from any read-only MySQL client, instead of the maintainer's private tooling.
11
+ - The repository is ready for contributions: `CONTRIBUTING.md`, `SECURITY.md` (private vulnerability reporting), issue
12
+ and pull request templates and `CODEOWNERS`. The old Claude Code archive left the repository.
13
+
6
14
  ## 5.0.2 (2026-11-18)
7
15
 
8
16
  - 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.3",
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
@@ -14,7 +14,7 @@ const MIN = 60_000;
14
14
  const HOUR = 60 * MIN;
15
15
 
16
16
  /**
17
- * The shipped defaults (Tornike, 2026-10-19). Changing a limit means changing it here
17
+ * The shipped defaults (set 2026-10-19). Changing a limit means changing it here
18
18
  * too, on purpose. The two email-module entries exist only in projects scaffolded with
19
19
  * (or patched to add) email verification.
20
20
  */
@@ -12,8 +12,8 @@ import { DEFAULT_LIMIT } from '@config/rate-limit.config.js';
12
12
  // Strikes are asserted, never stored: no Redis in unit tests.
13
13
  vi.mock('../ip-block.js', () => ({ recordRateLimitViolation: vi.fn() }));
14
14
 
15
- const VISITOR = '31.146.10.20';
16
- const OTHER_VISITOR = '31.146.10.21';
15
+ const VISITOR = '93.184.216.34';
16
+ const OTHER_VISITOR = '93.184.216.35';
17
17
 
18
18
  /**
19
19
  * A bare Fastify wired exactly like app.ts (same trustProxy, the same rate-limit module and