@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.
Files changed (45) hide show
  1. package/README.md +23 -0
  2. package/dist/card.generated.d.ts +1 -1
  3. package/dist/card.generated.js +2 -2
  4. package/dist/card.generated.js.map +1 -1
  5. package/dist/cidr.d.ts +46 -0
  6. package/dist/cidr.d.ts.map +1 -0
  7. package/dist/cidr.js +143 -0
  8. package/dist/cidr.js.map +1 -0
  9. package/dist/config.d.ts +9 -0
  10. package/dist/config.d.ts.map +1 -1
  11. package/dist/config.js.map +1 -1
  12. package/dist/index.js +3 -1
  13. package/dist/index.js.map +1 -1
  14. package/dist/legal.d.ts +7 -1
  15. package/dist/legal.d.ts.map +1 -1
  16. package/dist/legal.js +10 -3
  17. package/dist/legal.js.map +1 -1
  18. package/dist/lib.d.ts +6 -0
  19. package/dist/lib.d.ts.map +1 -1
  20. package/dist/lib.js +5 -0
  21. package/dist/lib.js.map +1 -1
  22. package/dist/ranges-check-cli.d.ts +3 -0
  23. package/dist/ranges-check-cli.d.ts.map +1 -0
  24. package/dist/ranges-check-cli.js +10 -0
  25. package/dist/ranges-check-cli.js.map +1 -0
  26. package/dist/ranges-check.d.ts +39 -0
  27. package/dist/ranges-check.d.ts.map +1 -0
  28. package/dist/ranges-check.js +137 -0
  29. package/dist/ranges-check.js.map +1 -0
  30. package/dist/server.d.ts +5 -2
  31. package/dist/server.d.ts.map +1 -1
  32. package/dist/server.js +56 -11
  33. package/dist/server.js.map +1 -1
  34. package/dist/source-allowlist.d.ts +95 -0
  35. package/dist/source-allowlist.d.ts.map +1 -0
  36. package/dist/source-allowlist.js +250 -0
  37. package/dist/source-allowlist.js.map +1 -0
  38. package/dist/source-ranges.d.ts +30 -0
  39. package/dist/source-ranges.d.ts.map +1 -0
  40. package/dist/source-ranges.js +376 -0
  41. package/dist/source-ranges.js.map +1 -0
  42. package/dist/tools.d.ts.map +1 -1
  43. package/dist/tools.js +37 -14
  44. package/dist/tools.js.map +1 -1
  45. 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/)
@@ -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 = "28bc15a788e8ff3fa98fad935224485afcfff765d75842e74388758dd8cc9958";
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