@crvouga/mockingbird-service-wholescripts 3.6.0 → 3.7.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 +7 -1
- package/README.md +13 -1
- package/dist/{chunk-T6P2TKQO.js → chunk-4BLJLSNN.js} +260 -67
- package/dist/chunk-4BLJLSNN.js.map +7 -0
- package/dist/{chunk-6T4MXYKN.js → chunk-R57VJDWN.js} +141 -12
- package/dist/chunk-R57VJDWN.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +41 -1
- package/dist/index.js +5 -1
- package/dist/server.d.ts +127 -51
- package/dist/server.js +4 -2
- package/package.json +1 -1
- package/dist/chunk-6T4MXYKN.js.map +0 -7
- package/dist/chunk-T6P2TKQO.js.map +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-wholescripts
|
|
2
2
|
|
|
3
|
-
## 3.
|
|
3
|
+
## 3.7.0 (2026-10-19)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- resolve the agent-reported issue queue in one batch ([25c52b6](https://github.com/crvouga/mockingbird/commit/25c52b668a53ddb80b968419601a20abf33f956b))
|
|
8
|
+
|
|
9
|
+
## 3.6.0 (2026-10-16)
|
|
4
10
|
|
|
5
11
|
### Features
|
|
6
12
|
|
package/README.md
CHANGED
|
@@ -110,7 +110,18 @@ The default catalog is the rows our consumers' own tests use
|
|
|
110
110
|
(the consumer app's `wholescripts-service.test.ts`), with their repeated
|
|
111
111
|
`medPaxSku`s made unique, plus the scheduler's MedPax box `000000000200095263` and `medPaxDetails`
|
|
112
112
|
rows the scheduler's catalog sync reads. `Protein Powder` (`PP001`) is out of stock. No sandbox
|
|
113
|
-
recording exists;
|
|
113
|
+
recording exists; load recorded rows with `serve --catalog <file>`, the `catalog` option, or
|
|
114
|
+
`PUT /__admin/catalog`.
|
|
115
|
+
|
|
116
|
+
`serve --catalog rows.json` lays a JSON file onto the default catalog for every namespace, and
|
|
117
|
+
a reset returns to it (unlike `PUT /__admin/catalog`, which replaces the catalog until the next reset). The file is
|
|
118
|
+
`{products?, medPaxPills?, privateLabelCartons?}`, or a bare array of products. A row needs its
|
|
119
|
+
`sku` (and a product its `productName`); every other string defaults to `""` and every number to
|
|
120
|
+
`0`, so give `quantity` for a product that should survive `instockonly=true`. By default
|
|
121
|
+
(`--catalog-mode merge`) a row whose SKU the default already has replaces it in place, any other is
|
|
122
|
+
appended, and a list the file leaves out is kept. `--catalog-mode replace` makes the file the whole
|
|
123
|
+
catalog (a list it leaves out is empty). In a fleet, set `options: {"catalog": "rows.json",
|
|
124
|
+
"catalog-mode": "replace"}`. The `catalog` option of `createRuntime` still takes a whole `Catalog`.
|
|
114
125
|
|
|
115
126
|
### Deliberately not modelled
|
|
116
127
|
|
|
@@ -133,6 +144,7 @@ recording exists; pass `catalog` (or `PUT /__admin/catalog`) to load recorded ro
|
|
|
133
144
|
| `basicUsername` | function | The Basic username a request carries (how credentials map to namespaces). |
|
|
134
145
|
| `canonicalStatus` | function | The canonical casing of a transition target (`complete` → `Complete`). |
|
|
135
146
|
| `DEFAULT_CATALOG` | object | The default `{products, medPaxPills, privateLabelCartons}`. |
|
|
147
|
+
| `parseCatalogDocument`, `mergeCatalog` | functions | Check a `--catalog` document (filling omitted fields) and lay it onto a catalog by SKU. |
|
|
136
148
|
| `MEDPAX_BOX_SKU` | string | The supplement scheduler's MedPax box SKU, `000000000200095263`. |
|
|
137
149
|
| `document`, `operationIds`, `supportedOperationIds` | values | The vendored OpenAPI contract and its operation ids. |
|
|
138
150
|
| `createServer`, `serveTarget`, `DEFAULT_PORT` (`./server`) | Node | Serve over `node:http` (auto-advance ticks every 100 ms); the `serve` CLI target; port 8803. |
|