@crvouga/mockingbird-service-google-maps 1.9.0 → 2.1.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 -1
- package/DISCOVERY.md +55 -0
- package/README.md +3 -3
- package/SUPPORT.md +16 -0
- package/dist/chunk-53MIPHUJ.js +4977 -0
- package/dist/chunk-53MIPHUJ.js.map +7 -0
- package/dist/{chunk-6O3ECBQ4.js → chunk-WJ6YEIWV.js} +44 -24
- package/dist/chunk-WJ6YEIWV.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +6 -3
- package/dist/index.js +1 -1
- package/dist/server.d.ts +4 -0
- package/dist/server.js +2 -2
- package/openapi.yaml +747 -0
- package/package.json +29 -4
- package/dist/chunk-6O3ECBQ4.js.map +0 -7
- package/dist/chunk-CODFR63R.js +0 -6781
- package/dist/chunk-CODFR63R.js.map +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-google-maps
|
|
2
2
|
|
|
3
|
-
## 1.
|
|
3
|
+
## 2.1.0 (2026-10-04)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- use shared forms for service actions ([af19eb9](https://github.com/crvouga/mockingbird/commit/af19eb9d4896d8418f5db850f20808a89291b949))
|
|
8
|
+
- replace UI with Ant Design ([6547b4e](https://github.com/crvouga/mockingbird/commit/6547b4ef1663fb597ab515cce06245c82010407a))
|
|
9
|
+
|
|
10
|
+
### Fixes and improvements
|
|
11
|
+
|
|
12
|
+
- fill the embedded viewport ([c1a35a4](https://github.com/crvouga/mockingbird/commit/c1a35a4789389ee9cd06c286d09bd47c4d06c71e))
|
|
13
|
+
- make dialog cleanup immediate ([0c1a3c5](https://github.com/crvouga/mockingbird/commit/0c1a3c5b12584d50c19dcae595b951b8e5417b9c))
|
|
14
|
+
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
17
|
+
- `@crvouga/mockingbird-service-sqlite`
|
|
18
|
+
|
|
19
|
+
## 2.0.0 (2026-10-04)
|
|
20
|
+
|
|
21
|
+
### ⚠️ Breaking changes
|
|
22
|
+
|
|
23
|
+
- isolate internal routes ([5e19b21](https://github.com/crvouga/mockingbird/commit/5e19b21d403acc74b04778a8b545e80bcbdf8d51))
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
- add route filtering ([4e59b1d](https://github.com/crvouga/mockingbird/commit/4e59b1d42a76550f844b744f8431a637433a0781))
|
|
28
|
+
- publish agent package indexes ([eca61d3](https://github.com/crvouga/mockingbird/commit/eca61d358b86982cf0b777ae8bd7feaa3663aaa6))
|
|
29
|
+
|
|
30
|
+
### Fixes and improvements
|
|
31
|
+
|
|
32
|
+
- honor configured prefixes ([4f569d7](https://github.com/crvouga/mockingbird/commit/4f569d74ca8089f2ed5e33a1abf32b90973f41dd))
|
|
33
|
+
- explain configurable internal paths ([21b47ae](https://github.com/crvouga/mockingbird/commit/21b47ae4d4a096cdf63189aaeaf721ccb369bcf3))
|
|
34
|
+
- parse ISO journal timestamps ([20b39a2](https://github.com/crvouga/mockingbird/commit/20b39a2c738e278533d610dfc91f1cb3ae9b3f1e))
|
|
35
|
+
- harden shared controls ([7822614](https://github.com/crvouga/mockingbird/commit/7822614f6cba0387aeb60ba7320b0379aa1ef690))
|
|
36
|
+
|
|
37
|
+
## 1.9.0 (2026-10-01)
|
|
4
38
|
|
|
5
39
|
### Features
|
|
6
40
|
|
package/DISCOVERY.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# @crvouga/mockingbird-service-google-maps 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-google-maps/`; 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 | [`SUPPORT.md`](SUPPORT.md) | Supported, unsupported and parity-covered operations or commands, including reasons for gaps. |
|
|
13
|
+
| Wire contract | [`openapi.yaml`](openapi.yaml) | Machine-readable paths, methods, schemas, responses and parity annotations. |
|
|
14
|
+
| Public API | [`dist/index.d.ts`](dist/index.d.ts) | The installed package's exact TypeScript exports and signatures. |
|
|
15
|
+
| Package metadata | [`package.json`](package.json) | Runtime/entry-point claims, vendor links, parity scope/tier and `mockingbird.discovery`. |
|
|
16
|
+
|
|
17
|
+
Read these together: the contract/capability matrix says *what* is available, while the README
|
|
18
|
+
defines stateful behavior, lifecycle rules, test controls, and intentional oracle differences.
|
|
19
|
+
If prose and an executable surface disagree, report a parity mismatch instead of adding a
|
|
20
|
+
consumer-side workaround.
|
|
21
|
+
|
|
22
|
+
## Parity and oracle
|
|
23
|
+
|
|
24
|
+
- Declared parity surface: **Places, geocoding, and address validation**.
|
|
25
|
+
- Parity tier: **cold** (the repository controls when live checks run).
|
|
26
|
+
- Oracle: **Live vendor API or sandbox**.
|
|
27
|
+
- Repository command: `bun run parity:service -- google-maps`.
|
|
28
|
+
- Evidence model: Run from a Mockingbird checkout; credentials come only from .env.local or GitHub Actions secrets. Missing credentials exit 2.
|
|
29
|
+
|
|
30
|
+
The npm package contains evidence summaries and the exact contract, not credentials or the
|
|
31
|
+
repository-only parity harness. Self-parity/property and acceptance tests run in the Mockingbird
|
|
32
|
+
repository; live parity is an additional oracle check, not a substitute for the packaged matrix.
|
|
33
|
+
|
|
34
|
+
## Runtime introspection
|
|
35
|
+
|
|
36
|
+
- `GET /__admin/health`
|
|
37
|
+
- `GET /__admin`
|
|
38
|
+
- `GET /__admin/state`
|
|
39
|
+
- `GET /__admin/requests`
|
|
40
|
+
- `GET /__admin/metrics`
|
|
41
|
+
- `GET /__admin/faults/presets`
|
|
42
|
+
- `GET /__admin/ui`
|
|
43
|
+
|
|
44
|
+
For HTTP services, use `x-mockingbird-namespace` (or the documented credential/path carrier) so
|
|
45
|
+
parallel tests do not share state. Admin state, journal, metrics and fault-preset endpoints are
|
|
46
|
+
designed for assertions and diagnosis by consuming test suites.
|
|
47
|
+
|
|
48
|
+
## Report a mismatch or missing capability
|
|
49
|
+
|
|
50
|
+
Follow the [agent reporting contract](https://github.com/crvouga/mockingbird/blob/main/docs/REPORTING_ISSUES.md). Include package version,
|
|
51
|
+
operation/command, a minimal redacted request, actual mock result, expected oracle result or vendor
|
|
52
|
+
documentation, and whether the mismatch appears in the matrix. Never include keys, tokens,
|
|
53
|
+
customer data, prompts, PHI, card data, or unredacted recordings.
|
|
54
|
+
|
|
55
|
+
Service key: `google-maps`.
|
package/README.md
CHANGED
|
@@ -63,7 +63,7 @@ maps.applyPreset("autocomplete_over_query_limit", "default", { count: 2 })
|
|
|
63
63
|
|
|
64
64
|
Google serves it from a different host, `https://addressvalidation.googleapis.com`; the paths do
|
|
65
65
|
not collide, so one mock serves both. Point the server-side client's Address Validation base URL
|
|
66
|
-
at the mock (or at `<mock>/ns/<namespace>`), with the key as `?key=` (or `X-Goog-Api-Key`).
|
|
66
|
+
at the mock (or at `<mock>/__admin/ns/<namespace>`), with the key as `?key=` (or `X-Goog-Api-Key`).
|
|
67
67
|
|
|
68
68
|
```ts
|
|
69
69
|
import { createRuntime } from "@crvouga/mockingbird-service-google-maps"
|
|
@@ -146,7 +146,7 @@ has a `responseId`. Send a componentized address (line 1 + optional unit line 2,
|
|
|
146
146
|
`packages/app/src/test-addresses` members, plus `ADDRESS_AT_HOME_PHLEBOTOMY_2` (501 N 5th St).
|
|
147
147
|
Each has its real county and the city's coordinates. Place ids are stable (`ChIJ…` for rows;
|
|
148
148
|
synthesized addresses get an `Ei…` id carrying the address, as Google's own address ids do, so
|
|
149
|
-
Details needs no stored state). `GET /health` reports the corpus.
|
|
149
|
+
Details needs no stored state). `GET /__admin/health` reports the corpus.
|
|
150
150
|
|
|
151
151
|
### Admin (beyond the standard contract)
|
|
152
152
|
|
|
@@ -171,7 +171,7 @@ counts `ValidateAddress` on its own.
|
|
|
171
171
|
|
|
172
172
|
### Namespaces
|
|
173
173
|
|
|
174
|
-
`x-mockingbird-namespace`, a `/ns/<name>` prefix on the base URL (the JS shim served under a
|
|
174
|
+
`x-mockingbird-namespace`, a `/__admin/ns/<name>` prefix on the base URL (the JS shim served under a
|
|
175
175
|
prefix calls back through it), or by API key:
|
|
176
176
|
`PUT /__admin/credentials {"credentials": {"<PLACES_KEY>": "<namespace>"}}` (the `key` query
|
|
177
177
|
parameter, or `X-Goog-Api-Key` for Address Validation, is the credential). The request journal
|
package/SUPPORT.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Google Places, Geocoding and Maps JavaScript API (Mockingbird subset) — operation support
|
|
2
|
+
|
|
3
|
+
Generated from `openapi.yaml`; do not edit by hand.
|
|
4
|
+
|
|
5
|
+
- operations in spec: **6**
|
|
6
|
+
- supported by the mock: **6**
|
|
7
|
+
- parity enabled: **5**
|
|
8
|
+
|
|
9
|
+
| operationId | route | mock | parity | notes |
|
|
10
|
+
| --- | --- | --- | --- | --- |
|
|
11
|
+
| `PlaceAutocomplete` | `GET /maps/api/place/autocomplete/json` | ✅ supported | ✅ | |
|
|
12
|
+
| `PlaceDetails` | `GET /maps/api/place/details/json` | ✅ supported | ✅ | |
|
|
13
|
+
| `Geocode` | `GET /maps/api/geocode/json` | ✅ supported | ✅ | |
|
|
14
|
+
| `FindPlaceFromText` | `GET /maps/api/place/findplacefromtext/json` | ✅ supported | ✅ | |
|
|
15
|
+
| `MapsJavaScriptApi` | `GET /maps/api/js` | ✅ supported | ❌ disabled | A JavaScript program, not data: it is exercised by evaluating it in a fake window and driving our web client through it (google-maps.acceptance.test.ts). |
|
|
16
|
+
| `ValidateAddress` | `POST /v1:validateAddress` | ✅ supported | ✅ | |
|