@curless/hotel-storefront 0.84.3 → 0.84.5
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/README.md +21 -0
- package/dist/card.generated.d.ts +1 -1
- package/dist/card.generated.js +2 -2
- package/dist/card.generated.js.map +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/otaless/addons.d.ts +8 -0
- package/dist/otaless/addons.d.ts.map +1 -1
- package/dist/otaless/addons.js +3 -0
- package/dist/otaless/addons.js.map +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +3 -1
- package/dist/server.js.map +1 -1
- package/dist/tools.d.ts +16 -0
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +66 -5
- package/dist/tools.js.map +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -130,4 +130,25 @@ name, amount or anything typed is written; a country is looked up, only for
|
|
|
130
130
|
ChatGPT's own addresses, in DB-IP Lite files you put in `HOTEL_GEOIP_DIR`
|
|
131
131
|
(never downloaded). `curless-hotel-usage report --deployment <id>` sums them.
|
|
132
132
|
|
|
133
|
+
## Tests (working on this package)
|
|
134
|
+
|
|
135
|
+
- `pnpm test:gate` - the card contract and the two freeze tests: what every
|
|
136
|
+
change runs. Seconds.
|
|
137
|
+
- `pnpm test:related [base]` - a small change (a page of the card, its words,
|
|
138
|
+
its layout) reports on this: the gate, the test files this branch added or
|
|
139
|
+
changed since `base` (default `origin/main`), and the tests that import a
|
|
140
|
+
changed source themselves. A source more than 30 tests import (`server.ts`,
|
|
141
|
+
`tools.ts`, the card helper) and a card change (`widget/`) pick nothing by
|
|
142
|
+
themselves - name more test files after `--`. 0.84.4's change: 45 files, 36 s.
|
|
143
|
+
- `pnpm test:full` - all ~7,000 tests on two workers, about 4½ minutes; before
|
|
144
|
+
a release, or for a change to the shared money, booking, account or sign-in
|
|
145
|
+
code. Refuses to start beside another vitest.
|
|
146
|
+
|
|
147
|
+
The card tests draw the shipped card in jsdom (`src/__tests__/__helpers__/
|
|
148
|
+
card-dom.ts`): its script is compiled once instead of parsed into every page,
|
|
149
|
+
and the helper's waits run on a clock that skips time in which nothing can
|
|
150
|
+
happen (`card-clock.ts`). A fresh worktree needs `pnpm install` and
|
|
151
|
+
`pnpm turbo run build --filter='@curless/hotel-storefront^...'` first, or
|
|
152
|
+
two thirds of the files fail to load.
|
|
153
|
+
|
|
133
154
|
MIT · part of [agentbank](https://mcp.curless.ai/doc/sdks/)
|
package/dist/card.generated.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const HOTEL_CARD_HTML: string;
|
|
2
2
|
/** sha256 of everything the card is built from (card-kit's source-hash.mjs) - the drift guard reads this. */
|
|
3
|
-
export declare const HOTEL_CARD_SOURCE_SHA = "
|
|
3
|
+
export declare const HOTEL_CARD_SOURCE_SHA = "6b6d06400f600b33aa9951eb86c2208958e677585693ba7cddbd3263dff87692";
|
|
4
4
|
/** Versions it was built with (card-kit/built-with.mjs) - the drift guard compares them with the lock. */
|
|
5
5
|
export declare const HOTEL_CARD_BUILT_WITH = "@modelcontextprotocol/ext-apps@1.7.5 @modelcontextprotocol/sdk@1.32.1 esbuild@0.25.12 rollup@4.63.3 vite@6.4.4 vite-plugin-singlefile@2.3.3 zod@4.6.7 zod-to-json-schema@3.25.2";
|
|
6
6
|
//# sourceMappingURL=card.generated.d.ts.map
|