@crvouga/mockingbird-service-postgres 1.6.0 → 2.0.0
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 +35 -0
- package/COMPATIBILITY.md +4 -0
- package/DISCOVERY.md +48 -0
- package/README.md +7 -0
- package/dist/admin.js +629 -235
- package/dist/admin.js.map +3 -3
- package/dist/server.d.ts +9 -0
- package/dist/server.js +25808 -0
- package/dist/server.js.map +7 -0
- package/dist/wire/cli.js +1215 -107
- package/dist/wire/cli.js.map +4 -4
- package/dist/wire/cluster.d.ts +3 -0
- package/dist/wire/fleet.d.ts +81 -0
- package/dist/wire/index.d.ts +6 -0
- package/dist/wire/index.js +23 -3
- package/dist/wire/index.js.map +2 -2
- package/dist/wire/probe.d.ts +2 -0
- package/package.json +31 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-postgres
|
|
2
2
|
|
|
3
|
+
## 2.0.0 (2026-10-04)
|
|
4
|
+
|
|
5
|
+
### ⚠️ Breaking changes
|
|
6
|
+
|
|
7
|
+
- isolate internal routes ([5e19b21](https://github.com/crvouga/mockingbird/commit/5e19b21d403acc74b04778a8b545e80bcbdf8d51))
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- add route filtering ([4e59b1d](https://github.com/crvouga/mockingbird/commit/4e59b1d42a76550f844b744f8431a637433a0781))
|
|
12
|
+
- publish agent package indexes ([eca61d3](https://github.com/crvouga/mockingbird/commit/eca61d358b86982cf0b777ae8bd7feaa3663aaa6))
|
|
13
|
+
|
|
14
|
+
### Fixes and improvements
|
|
15
|
+
|
|
16
|
+
- honor configured prefixes ([4f569d7](https://github.com/crvouga/mockingbird/commit/4f569d74ca8089f2ed5e33a1abf32b90973f41dd))
|
|
17
|
+
- explain configurable internal paths ([21b47ae](https://github.com/crvouga/mockingbird/commit/21b47ae4d4a096cdf63189aaeaf721ccb369bcf3))
|
|
18
|
+
- parse ISO journal timestamps ([20b39a2](https://github.com/crvouga/mockingbird/commit/20b39a2c738e278533d610dfc91f1cb3ae9b3f1e))
|
|
19
|
+
- harden shared controls ([7822614](https://github.com/crvouga/mockingbird/commit/7822614f6cba0387aeb60ba7320b0379aa1ef690))
|
|
20
|
+
|
|
21
|
+
## 1.7.0 (2026-10-01)
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
- coordinate HTTP and protocol mocks ([3168653](https://github.com/crvouga/mockingbird/commit/31686534c55a9823fdaa92afc9cc456cf741b809))
|
|
26
|
+
|
|
27
|
+
### Fixes and improvements
|
|
28
|
+
|
|
29
|
+
- decouple smoke types from built packages ([a4b31c6](https://github.com/crvouga/mockingbird/commit/a4b31c6205d92aa0c6f7c9de3518d5ae44d38829))
|
|
30
|
+
- protect child admin endpoints ([5410b94](https://github.com/crvouga/mockingbird/commit/5410b948a30dcedc21e9a70e44fd415c1ea25394))
|
|
31
|
+
- explain discovery and controls ([dd0fed6](https://github.com/crvouga/mockingbird/commit/dd0fed6f5f94cac51ae71f2d2e7d58a6b01ccc63))
|
|
32
|
+
- harden protocol startup and state ([6f5b557](https://github.com/crvouga/mockingbird/commit/6f5b557e87b48b31985949e04f3b5ef58f51d295))
|
|
33
|
+
- preserve checkpoints and lifecycle ([50e8c32](https://github.com/crvouga/mockingbird/commit/50e8c322feded2f7f45afce9d8cdef43c37ab9ab))
|
|
34
|
+
- clean branch state on reset ([3b714d4](https://github.com/crvouga/mockingbird/commit/3b714d4a5df8e75fee0bb31e98d7c7566e164381))
|
|
35
|
+
- type signal listener cleanup ([5279852](https://github.com/crvouga/mockingbird/commit/5279852e56ea60262ccf17aa6e46b3c31091a34a))
|
|
36
|
+
|
|
3
37
|
## 1.6.0 (2026-10-01)
|
|
4
38
|
|
|
5
39
|
### Features
|
|
@@ -36,6 +70,7 @@
|
|
|
36
70
|
- allow unpopulated materialized views to reference each other ([3ce1d8f](https://github.com/crvouga/mockingbird/commit/3ce1d8f555ed4008dd894aed20ebf64ab0253774))
|
|
37
71
|
- support CREATE EXTENSION pg_trgm ([2296ba2](https://github.com/crvouga/mockingbird/commit/2296ba2f3d1a9ea7ce8ec9f528e979034692ebf1))
|
|
38
72
|
- install pgcrypto digest() ([b5f3ccf](https://github.com/crvouga/mockingbird/commit/b5f3ccf79c6fedcabab157f1ee07af18a7871057))
|
|
73
|
+
- boot Bolt over Socket Mode ([01322df](https://github.com/crvouga/mockingbird/commit/01322df315c66b1f2f5b53094cbbeeeef6d3ae6c))
|
|
39
74
|
|
|
40
75
|
## 1.3.1 (2026-09-29)
|
|
41
76
|
|
package/COMPATIBILITY.md
CHANGED
|
@@ -10,6 +10,10 @@ See [COMPATIBILITY-AUDIT.md](COMPATIBILITY-AUDIT.md) for the latest evidence-bas
|
|
|
10
10
|
|
|
11
11
|
Reference oracle: **PostgreSQL 18.3** via PGlite (`@electric-sql/pglite`, real Postgres compiled to WASM, in-process). Inventory: `bun run inventory`. Construct catalog: `bun run scenarios` → [`compat/scenarios.ts`](compat/scenarios.ts). Divergences: [`compat/divergences.json`](compat/divergences.json). Requirements matrix: `bun run requirements` → `compat/requirements.json` + `compat/coverage.json`.
|
|
12
12
|
|
|
13
|
+
The Node `/server` entry participates in protocol fleets. Acceptance tests use `pg@8.23.0`
|
|
14
|
+
for authenticated readiness, shutdown, namespace isolation, full-catalog reset/snapshot/restore and
|
|
15
|
+
clock controls. This supervisor surface does not change the SQL dialect compatibility contract.
|
|
16
|
+
|
|
13
17
|
## Proof surface
|
|
14
18
|
|
|
15
19
|
Differential tests compare a **tuple** per statement: rows (normalized to canonical PostgreSQL text where typed), column names and type names where requested, error SQLSTATE class + normalized message, command tag / `rowCount`, and transaction status, plus a **logical state dump** (catalog names, column definitions, row payloads, sequence values) after write sequences.
|
package/DISCOVERY.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# @crvouga/mockingbird-service-postgres discovery
|
|
2
|
+
|
|
3
|
+
This is the installed-package index for coding agents and tooling. All relative links resolve
|
|
4
|
+
inside `node_modules/@crvouga/mockingbird-service-postgres/`; no repository checkout is needed to discover the mock's
|
|
5
|
+
supported surface or documented behavior.
|
|
6
|
+
|
|
7
|
+
## Capability and behavior sources
|
|
8
|
+
|
|
9
|
+
| Question | Authoritative file | What it contains |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| Behaviour and integration | [`README.md`](README.md) | Routes, state transitions, auth, webhooks, controls, presets and deliberate omissions. |
|
|
12
|
+
| Exact capabilities | [`COMPATIBILITY.md`](COMPATIBILITY.md) | Supported, unsupported and parity-covered operations or commands, including reasons for gaps. |
|
|
13
|
+
| Public API | [`dist/index.d.ts`](dist/index.d.ts) | The installed package's exact TypeScript exports and signatures. |
|
|
14
|
+
| Package metadata | [`package.json`](package.json) | Runtime/entry-point claims, vendor links, parity scope/tier and `mockingbird.discovery`. |
|
|
15
|
+
|
|
16
|
+
Read these together: the contract/capability matrix says *what* is available, while the README
|
|
17
|
+
defines stateful behavior, lifecycle rules, test controls, and intentional oracle differences.
|
|
18
|
+
If prose and an executable surface disagree, report a parity mismatch instead of adding a
|
|
19
|
+
consumer-side workaround.
|
|
20
|
+
|
|
21
|
+
## Parity and oracle
|
|
22
|
+
|
|
23
|
+
- Declared parity surface: **In-memory SQL engine**.
|
|
24
|
+
- Oracle: **PostgreSQL 18.3 via PGlite**.
|
|
25
|
+
- Repository command: `bun run --cwd packages/service/postgres test:postgres-compat`.
|
|
26
|
+
- Evidence model: Fail-closed differential contracts compare rows, types, errors, row counts and logical state.
|
|
27
|
+
|
|
28
|
+
The npm package contains evidence summaries and the exact contract, not credentials or the
|
|
29
|
+
repository-only parity harness. Self-parity/property and acceptance tests run in the Mockingbird
|
|
30
|
+
repository; live parity is an additional oracle check, not a substitute for the packaged matrix.
|
|
31
|
+
|
|
32
|
+
## Runtime introspection
|
|
33
|
+
|
|
34
|
+
- `README.md public test controls`
|
|
35
|
+
- `COMPATIBILITY.md compatibility and divergence evidence`
|
|
36
|
+
|
|
37
|
+
For HTTP services, use `x-mockingbird-namespace` (or the documented credential/path carrier) so
|
|
38
|
+
parallel tests do not share state. Admin state, journal, metrics and fault-preset endpoints are
|
|
39
|
+
designed for assertions and diagnosis by consuming test suites.
|
|
40
|
+
|
|
41
|
+
## Report a mismatch or missing capability
|
|
42
|
+
|
|
43
|
+
Follow the [agent reporting contract](https://github.com/crvouga/mockingbird/blob/main/docs/REPORTING_ISSUES.md). Include package version,
|
|
44
|
+
operation/command, a minimal redacted request, actual mock result, expected oracle result or vendor
|
|
45
|
+
documentation, and whether the mismatch appears in the matrix. Never include keys, tokens,
|
|
46
|
+
customer data, prompts, PHI, card data, or unredacted recordings.
|
|
47
|
+
|
|
48
|
+
Service key: `postgres`.
|
package/README.md
CHANGED
|
@@ -193,6 +193,13 @@ server from one frozen template, so a seeded stack starts from the same bytes ea
|
|
|
193
193
|
surface as every other mock, including the table explorer (`GET /sql/tables`, `POST /sql/query`).
|
|
194
194
|
The wire server does not speak that HTTP API.
|
|
195
195
|
|
|
196
|
+
`mockingbird-postgres serve --config mockingbird.json` also supervises a mixed HTTP/Postgres/Redis
|
|
197
|
+
fleet through the Node `/server` entry. See [fleet configuration and controls](../../../docs/FLEETS.md)
|
|
198
|
+
for ephemeral discovery, namespace endpoints, aggregate health, snapshots and clocks. Each declared
|
|
199
|
+
namespace has an independent cluster. Fleet checkpoints restore its entire catalog, including created
|
|
200
|
+
and dropped databases, records, deterministic random state, faults and time; live client sessions
|
|
201
|
+
return a conflict until closed.
|
|
202
|
+
|
|
196
203
|
`server.snapshot()` freezes the live state; `server.fault({ dropConnection | delayStatementMs |
|
|
197
204
|
failCommit })` arms the next statement or connection for a drop, a delay, or a `40001` commit
|
|
198
205
|
failure.
|