tina4-nodejs 3.13.165 → 3.13.166
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/CLAUDE.md +12 -5
- package/package.json +1 -1
- package/packages/cli/dist/bin.js +596 -342
- package/packages/cli/src/commands/seed.ts +10 -11
- package/packages/core/dist/index.js +586 -328
- package/packages/core/src/connectionUrl.ts +242 -0
- package/packages/core/src/devAdmin.ts +18 -3
- package/packages/core/src/fakeData.ts +47 -12
- package/packages/core/src/index.ts +1 -1
- package/packages/core/src/mqtt.ts +24 -48
- package/packages/core/src/queueBackends/rabbitmqBackend.ts +32 -20
- package/packages/core/src/router.ts +44 -30
- package/packages/core/src/server.ts +35 -18
- package/packages/core/src/urlRedaction.ts +252 -0
- package/packages/core/src/websocketBackplane.ts +15 -3
- package/packages/orm/dist/index.js +577 -320
- package/packages/orm/src/database.ts +7 -1
- package/packages/orm/src/databaseUrl.ts +73 -190
- package/packages/orm/src/docstore.ts +8 -1
- package/packages/orm/src/graph/graphUrl.ts +43 -7
- package/types/core/src/connectionUrl.d.ts +61 -0
- package/types/core/src/fakeData.d.ts +11 -2
- package/types/core/src/index.d.ts +1 -1
- package/types/core/src/queueBackends/rabbitmqBackend.d.ts +0 -7
- package/types/core/src/router.d.ts +17 -2
- package/types/core/src/server.d.ts +13 -0
- package/types/core/src/urlRedaction.d.ts +61 -0
- package/types/orm/src/databaseUrl.d.ts +18 -19
- package/types/orm/src/graph/graphUrl.d.ts +18 -0
package/CLAUDE.md
CHANGED
|
@@ -14,13 +14,13 @@ Even if the skill text is not currently loaded, these are non-negotiable:
|
|
|
14
14
|
|
|
15
15
|
The full discipline lives in `.claude/skills/tina4-maintainer/SKILL.md`; this block is the always-on floor.
|
|
16
16
|
|
|
17
|
-
# CLAUDE.md - AI Developer Guide for tina4-nodejs (v3.13.
|
|
17
|
+
# CLAUDE.md - AI Developer Guide for tina4-nodejs (v3.13.166)
|
|
18
18
|
|
|
19
19
|
> This file helps AI assistants (Claude, Copilot, Cursor, etc.) understand and work on this codebase effectively.
|
|
20
20
|
|
|
21
21
|
## What This Project Is
|
|
22
22
|
|
|
23
|
-
Tina4 for Node.js/TypeScript v3.13.
|
|
23
|
+
Tina4 for Node.js/TypeScript v3.13.166 - The Intelligent Native Application 4ramework. A convention-over-configuration structural paradigm. The developer writes TypeScript; Tina4 is invisible infrastructure.
|
|
24
24
|
|
|
25
25
|
The philosophy: zero ceremony, batteries included, file system as source of truth.
|
|
26
26
|
|
|
@@ -1081,10 +1081,17 @@ for await (const job of queue.consume("emails")) {
|
|
|
1081
1081
|
## Graceful shutdown (`packages/core/src/server.ts`)
|
|
1082
1082
|
|
|
1083
1083
|
`startServer()` owns signal handling. It is the ONLY place that registers
|
|
1084
|
-
`process.on("SIGTERM"/"SIGINT")`
|
|
1085
|
-
deliberately register none.
|
|
1084
|
+
`process.on("SIGTERM"/"SIGINT")` (plus `"SIGBREAK"` on Windows) — `background.ts`
|
|
1085
|
+
and the CLI's `serve.ts` deliberately register none.
|
|
1086
1086
|
|
|
1087
|
-
On
|
|
1087
|
+
On Windows, Ctrl+Break and the CTRL_BREAK_EVENT a console or service manager
|
|
1088
|
+
sends a process group arrive as **SIGBREAK**; untrapped, Node kills the process
|
|
1089
|
+
on the spot (exit `0xC000013A`). `startServer()` traps it into the same drain, at
|
|
1090
|
+
parity with tina4-python (SIGINT/SIGBREAK/SIGTERM on Windows).
|
|
1091
|
+
`test/gracefulShutdown.test.ts` drives it with a real CTRL_BREAK_EVENT via
|
|
1092
|
+
`test/_ctrlBreak.ts`.
|
|
1093
|
+
|
|
1094
|
+
On SIGTERM, SIGINT or (Windows) SIGBREAK it: stops background tasks, sends RFC 6455 close code
|
|
1088
1095
|
**1001 ("going away")** to every live WebSocket, closes the listeners so new
|
|
1089
1096
|
connections get a clean refusal, waits for in-flight requests to finish (up to
|
|
1090
1097
|
`TINA4_SHUTDOWN_TIMEOUT`), closes the database, and exits **0**.
|