@curless/hotel-storefront 0.27.13 → 0.27.14

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.
@@ -1 +1 @@
1
- {"version":3,"file":"card.generated.js","sourceRoot":"","sources":["../src/card.generated.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,wEAAwE;AACxE,gFAAgF;AAChF,4DAA4D;AAC5D,MAAM,CAAC,MAAM,eAAe,GAAW,MAAM,CAAC,IAAI,CAChD,s12YAAs12Y,EACt12Y,QAAQ,CACT,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAEnB,6GAA6G;AAC7G,MAAM,CAAC,MAAM,qBAAqB,GAChC,kEAAkE,CAAC"}
1
+ {"version":3,"file":"card.generated.js","sourceRoot":"","sources":["../src/card.generated.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,wEAAwE;AACxE,gFAAgF;AAChF,4DAA4D;AAC5D,MAAM,CAAC,MAAM,eAAe,GAAW,MAAM,CAAC,IAAI,CAChD,092YAA092Y,EAC192Y,QAAQ,CACT,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAEnB,6GAA6G;AAC7G,MAAM,CAAC,MAAM,qBAAqB,GAChC,kEAAkE,CAAC"}
package/dist/server.d.ts CHANGED
@@ -28,7 +28,7 @@ export declare const INITIALIZE_PER_MINUTE = 300;
28
28
  * number. Found by reading the boot banner of a container that had just been
29
29
  * deployed (2026-09-22): seventeen tools listed, and "0.7.0" above them.
30
30
  */
31
- export declare const VERSION = "0.27.13";
31
+ export declare const VERSION = "0.27.14";
32
32
  /**
33
33
  * The card's resource URI.
34
34
  *
package/dist/server.js CHANGED
@@ -44,7 +44,7 @@ export const INITIALIZE_PER_MINUTE = 300;
44
44
  * number. Found by reading the boot banner of a container that had just been
45
45
  * deployed (2026-09-22): seventeen tools listed, and "0.7.0" above them.
46
46
  */
47
- export const VERSION = '0.27.13';
47
+ export const VERSION = '0.27.14';
48
48
  /**
49
49
  * The card's resource URI.
50
50
  *
package/dist/tools.js CHANGED
@@ -2149,9 +2149,16 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
2149
2149
  ...(listAll ? { all: true } : {}),
2150
2150
  ...stayArgs,
2151
2151
  });
2152
+ // A country, said as the data spells it - or by another name the backend
2153
+ // understood (中国, from a place's aliases or a market's): the answer is
2154
+ // one country and many cities, none of them the place asked for. "中国"
2155
+ // drew fifty hotels where "China" drew the city picker (Marketplace,
2156
+ // 2026-10-08).
2152
2157
  const namedCountry = !!asked.city &&
2153
2158
  facets?.countries.length === 1 &&
2154
- facets.countries[0]?.name.toLowerCase() === asked.city.toLowerCase();
2159
+ (facets.countries[0]?.name.toLowerCase() === asked.city.toLowerCase() ||
2160
+ (facets.cities.length > 1 &&
2161
+ !facets.cities.some((c) => c.name.toLowerCase() === asked.city?.toLowerCase())));
2155
2162
  const choosing = facets &&
2156
2163
  !asked.filters &&
2157
2164
  !asked.query &&