@curless/hotel-storefront 0.68.3 → 0.69.1
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 +23 -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/cidr.d.ts +46 -0
- package/dist/cidr.d.ts.map +1 -0
- package/dist/cidr.js +143 -0
- package/dist/cidr.js.map +1 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/legal.d.ts +7 -1
- package/dist/legal.d.ts.map +1 -1
- package/dist/legal.js +10 -3
- package/dist/legal.js.map +1 -1
- package/dist/lib.d.ts +6 -0
- package/dist/lib.d.ts.map +1 -1
- package/dist/lib.js +5 -0
- package/dist/lib.js.map +1 -1
- package/dist/ranges-check-cli.d.ts +3 -0
- package/dist/ranges-check-cli.d.ts.map +1 -0
- package/dist/ranges-check-cli.js +10 -0
- package/dist/ranges-check-cli.js.map +1 -0
- package/dist/ranges-check.d.ts +39 -0
- package/dist/ranges-check.d.ts.map +1 -0
- package/dist/ranges-check.js +137 -0
- package/dist/ranges-check.js.map +1 -0
- package/dist/server.d.ts +5 -2
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +56 -11
- package/dist/server.js.map +1 -1
- package/dist/source-allowlist.d.ts +95 -0
- package/dist/source-allowlist.d.ts.map +1 -0
- package/dist/source-allowlist.js +250 -0
- package/dist/source-allowlist.js.map +1 -0
- package/dist/source-ranges.d.ts +30 -0
- package/dist/source-ranges.d.ts.map +1 -0
- package/dist/source-ranges.js +376 -0
- package/dist/source-ranges.js.map +1 -0
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +37 -14
- package/dist/tools.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -96,4 +96,27 @@ HUAZHU_CLIENT_ID=… HUAZHU_CLIENT_SECRET=… HUAZHU_DISTRIBUTOR_ID=… \
|
|
|
96
96
|
Not in this version, by design: the arc ends at a booking request. The seam is
|
|
97
97
|
`config.payment.mode`.
|
|
98
98
|
|
|
99
|
+
## Who may reach /mcp
|
|
100
|
+
|
|
101
|
+
Optional, off by default. `sourceAllowlist` lets only the AI platforms' own
|
|
102
|
+
servers reach `/mcp`, by the ranges they publish as the source of their MCP
|
|
103
|
+
calls (`PLATFORM_RANGES`: Anthropic's outbound ranges, OpenAI's
|
|
104
|
+
`chatgpt-connectors.json`; Google, Manus and Muse publish none). Every other
|
|
105
|
+
path stays open.
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
"sourceAllowlist": {
|
|
109
|
+
"mode": "shadow",
|
|
110
|
+
"platforms": ["anthropic", "openai", "google", "manus", "muse"],
|
|
111
|
+
"extraCidrs": ["192.0.2.10"]
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
`shadow` logs one `[source]` line per new session and counts them on
|
|
116
|
+
`/healthz/detail`; `enforce` answers 403 to anywhere else.
|
|
117
|
+
`HOTEL_SOURCE_ALLOWLIST=off|shadow|enforce` overrides the mode. The address
|
|
118
|
+
believed is the last `X-Forwarded-For` entry - the one a single proxy of your
|
|
119
|
+
own appends. `npm run check-ranges` compares the ranges with what the
|
|
120
|
+
platforms publish today; the server never fetches them.
|
|
121
|
+
|
|
99
122
|
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 = "be82f97d13314c102e8bb6aba0819155beca48af0d3daca88ef259a58371cdb8";
|
|
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
|