@curless/hotel-storefront 0.47.5 → 0.47.7
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/dist/card.generated.d.ts +2 -2
- package/dist/card.generated.js +3 -3
- package/dist/card.generated.js.map +1 -1
- package/dist/server.d.ts +2 -2
- package/dist/server.js +2 -2
- package/dist/surface.d.ts.map +1 -1
- package/dist/surface.js +18 -5
- package/dist/surface.js.map +1 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +57 -3
- package/dist/tools.js.map +1 -1
- package/package.json +3 -3
|
@@ -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,
|
|
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,87jjCAA87jjC,EAC97jjC,QAAQ,CACT,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAEnB,6GAA6G;AAC7G,MAAM,CAAC,MAAM,qBAAqB,GAChC,kEAAkE,CAAC;AAErE,0GAA0G;AAC1G,MAAM,CAAC,MAAM,qBAAqB,GAChC,iLAAiL,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.47.
|
|
31
|
+
export declare const VERSION = "0.47.7";
|
|
32
32
|
/**
|
|
33
33
|
* The card's resource URI.
|
|
34
34
|
*
|
|
@@ -37,7 +37,7 @@ export declare const VERSION = "0.47.5";
|
|
|
37
37
|
* connector went storefront-v35 → v40 in a single day of UI work for exactly
|
|
38
38
|
* this reason.
|
|
39
39
|
*/
|
|
40
|
-
export declare const CARD_URI = "ui://curless/hotel/booking-
|
|
40
|
+
export declare const CARD_URI = "ui://curless/hotel/booking-v95.html";
|
|
41
41
|
/**
|
|
42
42
|
* The URI one deployment names its card by: `CARD_URI` with a short hash of
|
|
43
43
|
* everything a host caches under it - the card itself, and the hosts it may
|
package/dist/server.js
CHANGED
|
@@ -47,7 +47,7 @@ export const INITIALIZE_PER_MINUTE = 300;
|
|
|
47
47
|
* number. Found by reading the boot banner of a container that had just been
|
|
48
48
|
* deployed (2026-09-22): seventeen tools listed, and "0.7.0" above them.
|
|
49
49
|
*/
|
|
50
|
-
export const VERSION = '0.47.
|
|
50
|
+
export const VERSION = '0.47.7';
|
|
51
51
|
/**
|
|
52
52
|
* The card's resource URI.
|
|
53
53
|
*
|
|
@@ -56,7 +56,7 @@ export const VERSION = '0.47.5';
|
|
|
56
56
|
* connector went storefront-v35 → v40 in a single day of UI work for exactly
|
|
57
57
|
* this reason.
|
|
58
58
|
*/
|
|
59
|
-
export const CARD_URI = 'ui://curless/hotel/booking-
|
|
59
|
+
export const CARD_URI = 'ui://curless/hotel/booking-v95.html';
|
|
60
60
|
/** The card as it ships, hashed once - what a host caches under the URI. */
|
|
61
61
|
const CARD_HTML_SHA = createHash('sha256').update(HOTEL_CARD_HTML).digest('hex');
|
|
62
62
|
/**
|
package/dist/surface.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../src/surface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAqB,MAAM,cAAc,CAAC;AAE3E,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,YAAY,CAAC;AA8BlE,eAAO,MAAM,iBAAiB,GAC5B,OAAO,aAAa,EACpB,OAAM,mBAAuC;AAC7C;;;GAGG;AACH,OAAM;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAO,KAChC,
|
|
1
|
+
{"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../src/surface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAqB,MAAM,cAAc,CAAC;AAE3E,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,YAAY,CAAC;AA8BlE,eAAO,MAAM,iBAAiB,GAC5B,OAAO,aAAa,EACpB,OAAM,mBAAuC;AAC7C;;;GAGG;AACH,OAAM;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAO,KAChC,MAmNF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,EACzE,OAAO,SAAS,CAAC,EAAE,EACnB,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,SAAS,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClD,YAAW,WAAW,CAAC,MAAM,CAAa;;;;;;;;;;;;;;;;;KAwBxC,CAAC;AAEL;;;;;GAKG;AACH,eAAO,MAAM,UAAU;;;CAIb,CAAC;AAEX,6DAA6D;AAC7D,eAAO,MAAM,aAAa,GAAI,OAAO,aAAa,KAAG,WAAW,CAAC,MAAM,CAsBnE,CAAC"}
|
package/dist/surface.js
CHANGED
|
@@ -86,18 +86,31 @@ opts = {}) => {
|
|
|
86
86
|
// (2026-09-18, both cases). Same shape as the contradiction the shopping
|
|
87
87
|
// connector shipped on 2026-09-17 - one rule written twice, differently.
|
|
88
88
|
// The carve-out is named here rather than hoped for.
|
|
89
|
-
|
|
89
|
+
//
|
|
90
|
+
// ⚠️ AND IT WAS NAMED AT THE END OF THE PARAGRAPH, WHERE A FIRST TURN NEVER
|
|
91
|
+
// GETS TO (the owner, 2026-10-26, live 0.47.5 on Atour, two new conversations
|
|
92
|
+
// whose first words were 「11月1号到7号北京行程,帮我安排一下」 and 「给我安排11月1号到11月7号
|
|
93
|
+
// 北京的行程」): both times look_up, then list_hotels - a "Beijing, 4 hotels"
|
|
94
|
+
// card - then show_itinerary with all six nights at one hotel. A model
|
|
95
|
+
// reading the first turn follows the first sentence it meets, and the first
|
|
96
|
+
// sentence said "ONCE and stop"; "THE ONE EXCEPTION" came after the long
|
|
97
|
+
// destinations branch. So the exemption is IN the first sentence, before the
|
|
98
|
+
// rule, and the second sentence says what a planning first turn is.
|
|
99
|
+
`FIRST TURN - unless the guest's first words ask for days planned (行程, 安排, 行程推荐, an itinerary, "plan our trip"), a comparison or a recommendation: call ${t.listHotels} ONCE and stop - with the guest's own words as \`query\`, or the city as \`city\`, when they have said where they are going, and with nothing when they have not. When the first words ask for a plan, the first turn is ${t.lookUp} (if needed) and ONE ${t.itinerary} - no ${t.listHotels}. On the list turn, do not interview them first, do not recommend, and do not describe the ${v.nounPlural} in prose; they are on the screen. Say at most one short line. ${
|
|
90
100
|
// ⚠️ ONE HOTEL IS NOT A CHOICE OF PLACES (2026-10-15 smoke runs): told
|
|
91
101
|
// "the group's destinations" here, the model offered to list another
|
|
92
102
|
// city's hotels three times over a deployment that has one.
|
|
93
103
|
opts.oneHotel && !v.market
|
|
94
104
|
? `This deployment has ONE ${v.noun} in all: with nothing named, the answer is that ${v.noun}'s own page. There is no other ${v.noun} and no other city here, so never ask which city, and never offer to look somewhere else or to list others.`
|
|
95
|
-
: `With nothing named, the answer is the group's destinations - regions, countries and cities, for the guest to choose from on the card - so do not list or name places in prose and do not ask which city: the card is where they choose. A country of many cities answers with its cities the same way; \`all\` lists the ${v.nounPlural} themselves, for a guest who asked for every one.`}
|
|
105
|
+
: `With nothing named, the answer is the group's destinations - regions, countries and cities, for the guest to choose from on the card - so do not list or name places in prose and do not ask which city: the card is where they choose. A country of many cities answers with its cities the same way; \`all\` lists the ${v.nounPlural} themselves, for a guest who asked for every one.`} A comparison or a plan is drawn in the first turn itself, with ${t.compare} or ${t.itinerary}, never after a list. WHICH ONE IS DECIDED BY WHAT THEY ASKED FOR, not by the word "recommend": days, a plan or an itinerary in any words - "plan our days", 行程推荐, 行程安排, 推荐一下行程 - is ${t.itinerary}, with your pick of ${v.noun} on it; which ${v.noun} to stay at - "recommend a hotel", 推荐一下酒店, "which is better" - is ${t.compare}, with your pick as \`recommended\`. Both take ${v.nounPlural} by name or id and read every figure themselves. To read up before either - which ${v.nounPlural} a city has, what each is like, its rooms${caps.extras ? ' and add-ons' : ''} - call ${t.lookUp}: it answers in text and draws nothing. ${drawing}, and each one called on the way to a comparison or a plan is one more card above it.`,
|
|
96
106
|
// ⚠️ A CITY IS NOT A HOTEL. The single most useful thing in the reference
|
|
97
107
|
// demo, and the easiest to lose: four Hong Kong properties under three
|
|
98
108
|
// brands, and an assistant that "helpfully" picks one has made the guest's
|
|
99
109
|
// choice for them.
|
|
100
|
-
|
|
110
|
+
// ⚠️ THIS IS THE RULE FOR SHOWING, NOT FOR PLANNING (2026-10-26): read as a
|
|
111
|
+
// rule about the whole conversation it kept a planning model from choosing a
|
|
112
|
+
// hotel per part of the trip, and the week went to one hotel.
|
|
113
|
+
`A city usually has several ${v.nounPlural}. For a guest who asks to SEE them: show all of them and let the guest choose - do not pick one for them, and do not drop the ones you would not have chosen. That is the rule for showing ${v.nounPlural}. In a day-by-day plan the stays ARE your picks, one for each part of the trip, said as picks (below) - the plan is not a list, and the guest can change any of them.`,
|
|
101
114
|
// ⚠️ DATES ARE NOT YOURS TO GUESS.
|
|
102
115
|
`A room has no price until the nights are known. When the guest has not said their dates, ask - do not assume tonight, this weekend, or the dates of anything else in the conversation. ${t.getHotel} without dates returns the ${v.noun} and no rooms; the card then fills in tonight and tomorrow so the guest sees rooms straight away, with those dates on screen above them and editable. So ask which nights they mean rather than treating what is on the card as their trip.`,
|
|
103
116
|
`${t.listHotels} narrows by \`brand\`, \`facilities\` (pool, spa, beach, fitness, kids), \`freeCancellation\` and \`breakfast\` - use them for what the guest asked for, never as a guess at what they want; and given \`checkIn\` and \`checkOut\` it prices every ${v.noun} for those nights. The card shows the same filters as chips the guest can change.`,
|
|
@@ -187,12 +200,12 @@ opts = {}) => {
|
|
|
187
200
|
// each a whole error card. So: planning draws no list; the days come first
|
|
188
201
|
// and the hotels follow where they are spent; a reason is said for each
|
|
189
202
|
// stay; and a plan's stays go into the trip by the ids its answer gives.
|
|
190
|
-
`A day-by-day plan needs a ${v.noun} to be based at for each part of the trip. Plan the days first, by where the guest will spend them; then, for each part of the trip, read up the ${v.nounPlural} near where those days are spent with ${t.lookUp}, and base each stay there. A city of
|
|
203
|
+
`A day-by-day plan needs a ${v.noun} to be based at for each part of the trip. Plan the days first, by where the guest will spend them; then, for each part of the trip, read up the ${v.nounPlural} near where those days are spent with ${t.lookUp}, and base each stay there. A week in a big city spans areas - its old centre, a palace or a park far out, a day out of town, a shopping district - so the plan has two or three stays by default, not one: group the days by the part of the city (or the city) they are spent in, and when a group is far from the others - most of an hour across town, say - base those nights at a ${v.noun} near them. Keep one ${v.noun} for the whole trip only when the guest asked for one ${v.noun} or every day really is in one area; a central ${v.noun} that can reach everything is not a reason by itself. "One ${v.noun} saves moving" is the guest's call, not yours: offer it in your reply as the alternative - name staying at one ${v.noun} throughout as the other way, with what it saves and what it costs in travel - and do not draw it as the plan. Say for each move why, in one sentence. Put the reason for each stay in that day's \`why\`: near what, good for what, in one sentence. When the guest named no ${v.noun}, each stay is your pick, said as a pick; one alternative in a sentence is still fine. The plan is where they see your picks, and nothing on it is booked, so the choice is still theirs.`,
|
|
191
204
|
// ⚠️ ONE PLAN, ONE CARD. Each call to a tool here draws a card, so looking
|
|
192
205
|
// hotels up before planning put them all above the plan; and a timeline the
|
|
193
206
|
// model draws itself is a second, unchecked copy of the plan beside ours.
|
|
194
207
|
// And list_hotels is not a step of planning at all (2026-10-26).
|
|
195
|
-
`A plan is ONE ${t.itinerary} call, and planning draws no ${v.noun} list: read up with ${t.lookUp} (it draws nothing), and call no ${t.getHotel}${caps.extras ? `, ${t.listExtras}` : ''} or ${t.compare} before it. ${t.listHotels} is for a guest who asks to SEE a list of ${v.nounPlural}, never a step of planning. Each of them draws its own card above the plan, and ${t.itinerary} reads every price itself. Put the day's moments in each day's \`plan\` - when, and what - and the ${v.noun} in its \`items\`. When the guest gave dates, pass \`checkIn\` and \`checkOut\` to ${t.itinerary}: the plan is then priced, and its stays can be put in the trip from the card. The card is the plan: do not draw a timeline, a table or another picture of the same days yourself.`,
|
|
208
|
+
`A plan is ONE ${t.itinerary} call, and planning draws no ${v.noun} list: read up with ${t.lookUp} (it draws nothing), and call no ${t.getHotel}${caps.extras ? `, ${t.listExtras}` : ''} or ${t.compare} before it. ${t.listHotels} is for a guest who asks to SEE a list of ${v.nounPlural}, never a step of planning. Each of them draws its own card above the plan, and ${t.itinerary} reads every price itself. Put the day's moments in each day's \`plan\` - when, and what - and the ${v.noun} in its \`items\`. When the guest gave dates, pass \`checkIn\` and \`checkOut\` to ${t.itinerary}: the plan is then priced, and its stays can be put in the trip from the card. The card is the plan: do not draw a timeline, a table or another picture of the same days yourself. Check the days before you draw them - a sight's closing day, the distance of a day out of town - so the plan is drawn once; a correction afterwards is said in your reply, and the plan is drawn again only when the guest asks.`,
|
|
196
209
|
// ⚠️ THE PLAN'S SHAPE IS ITS NIGHTS. The server reads a hotel named on
|
|
197
210
|
// consecutive days as one stay of that many nights, and a dated day that
|
|
198
211
|
// names none as another night at the last one - robin's six Shanghai
|
package/dist/surface.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface.js","sourceRoot":"","sources":["../src/surface.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,UA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IAAI,GAAG,CAAC;IACN,KAAK,CAAC,KAAK,CAAC,SAAS;IACrB,KAAK,CAAC,KAAK,CAAC,QAAQ;IACpB,KAAK,CAAC,KAAK,CAAC,SAAS;IACrB,KAAK,CAAC,KAAK,CAAC,cAAc;IAC1B,0EAA0E;IAC1E,sDAAsD;IACtD,KAAK,CAAC,KAAK,CAAC,QAAQ;IACpB,KAAK,CAAC,KAAK,CAAC,UAAU;IACtB,KAAK,CAAC,KAAK,CAAC,mBAAmB;IAC/B,KAAK,CAAC,KAAK,CAAC,aAAa;IACzB,0EAA0E;IAC1E,8DAA8D;IAC9D,KAAK,CAAC,KAAK,CAAC,YAAY;IACxB,KAAK,CAAC,KAAK,CAAC,aAAa;IACzB,KAAK,CAAC,KAAK,CAAC,aAAa;IACzB,0CAA0C;IAC1C,KAAK,CAAC,KAAK,CAAC,UAAU;IACtB,0EAA0E;IAC1E,8BAA8B;IAC9B,KAAK,CAAC,KAAK,CAAC,SAAS;CACtB,CAAC,CAAC"}
|
package/dist/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EASzB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAa,YAAY,EAAgB,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAK7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EASzB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAa,YAAY,EAAgB,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EAAE,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b,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,4FAA4F;IAC5F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AA8MF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IACjC,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;IAChC,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAyxCF;;;;GAIG;AACH,eAAO,MAAM,eAAe,IAAI,CAAC;AAyKjC;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAM,QAAQ,KAAG,UAOzC,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,MAAM,QAAQ,EACd,MAAM,MAAM,EACZ,SAAS,OAAO,EAChB,KAAK,WAAW,KACf,OAAO,CAAC,UAAU,CAkBpB,CAAC"}
|
package/dist/tools.js
CHANGED
|
@@ -2943,6 +2943,58 @@ export const handleTool = async (deps, name, rawArgs, ctx) => {
|
|
|
2943
2943
|
const fitsManyOf = (deps, dropped) => dropped.flatMap((d) => d.candidates?.length
|
|
2944
2944
|
? [`"${d.name}" ${namesMoreThanOne(d.candidates, branded(deps.vocab, deps.vocab.noun))}`]
|
|
2945
2945
|
: []);
|
|
2946
|
+
/** A stay this long, at one hotel, is worth asking whether the days stay in one area. */
|
|
2947
|
+
const LONG_STAY_NIGHTS = 4;
|
|
2948
|
+
/** The other areas a long stay's answer names - one hotel each. */
|
|
2949
|
+
const OTHER_AREAS_MAX = 4;
|
|
2950
|
+
/**
|
|
2951
|
+
* For each priced stay of four nights or more, the other areas of its city that
|
|
2952
|
+
* have a hotel - for the model, in the tool's text, never on the card or in the
|
|
2953
|
+
* schema.
|
|
2954
|
+
*
|
|
2955
|
+
* ⚠️ A WEEK AT ONE HOTEL WAS THE PLAN, AND THE MODEL NEVER SAW WHAT ELSE THE
|
|
2956
|
+
* CITY HAS (the owner, 2026-10-26, on the live Atour connector: both Beijing
|
|
2957
|
+
* weeks, all six nights at one hotel). The instructions say a long stay in a big
|
|
2958
|
+
* city usually spans areas; this is the answer saying it at the moment the plan
|
|
2959
|
+
* has just been drawn that way, with the hotels of the other areas by id, so the
|
|
2960
|
+
* model can plan the stay in parts - or offer the move - without a second
|
|
2961
|
+
* look-up. Nothing where the city has no other area, or the backend cannot say:
|
|
2962
|
+
* a nudge that guesses is worse than none.
|
|
2963
|
+
*/
|
|
2964
|
+
const longStayNudges = async (deps, stays) => {
|
|
2965
|
+
// The areas the plan already uses are not "other" for any of its stays.
|
|
2966
|
+
const used = new Set(stays.map((x) => x.area?.toLowerCase()).filter(Boolean));
|
|
2967
|
+
const out = [];
|
|
2968
|
+
for (const x of stays) {
|
|
2969
|
+
if ((x.nights ?? 0) < LONG_STAY_NIGHTS || !x.area || !x.city)
|
|
2970
|
+
continue;
|
|
2971
|
+
let hotels;
|
|
2972
|
+
try {
|
|
2973
|
+
hotels = (await deps.backend.searchHotels({ city: x.city, limit: MAX_PAGE })).hotels;
|
|
2974
|
+
}
|
|
2975
|
+
catch {
|
|
2976
|
+
// The plan is already drawn; a city that cannot be read just gets no nudge.
|
|
2977
|
+
continue;
|
|
2978
|
+
}
|
|
2979
|
+
const byArea = new Map();
|
|
2980
|
+
for (const h of hotels) {
|
|
2981
|
+
const area = h.area?.trim();
|
|
2982
|
+
if (!area || h.city !== x.city || h.id === x.id)
|
|
2983
|
+
continue;
|
|
2984
|
+
const lower = area.toLowerCase();
|
|
2985
|
+
if (used.has(lower) || byArea.has(lower))
|
|
2986
|
+
continue;
|
|
2987
|
+
byArea.set(lower, h);
|
|
2988
|
+
}
|
|
2989
|
+
if (byArea.size === 0)
|
|
2990
|
+
continue;
|
|
2991
|
+
const others = [...byArea.values()]
|
|
2992
|
+
.slice(0, OTHER_AREAS_MAX)
|
|
2993
|
+
.map((h) => `${h.area} - ${h.name} (\`${h.id}\`)`);
|
|
2994
|
+
out.push(`${stays.length === 1 ? `All ${x.nights} nights are` : `${x.nights} nights are`} at ${x.name} (${x.area}). ${x.city} also has: ${others.join('; ')}. In your reply, name the planned days that are far from ${x.area} and offer moving those nights to the hotel here nearest them, with the reason in one sentence - or say why every day suits ${x.area}. The plan on screen stays as it is; draw it again only if the guest asks.`);
|
|
2995
|
+
}
|
|
2996
|
+
return out;
|
|
2997
|
+
};
|
|
2946
2998
|
/** The hotel a call named - or the answer that says there is none, or several by that name. */
|
|
2947
2999
|
const hotelNamed = async (deps, key, wanted) => {
|
|
2948
3000
|
const detail = await deps.backend.getHotel(wanted);
|
|
@@ -4925,10 +4977,10 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
|
|
|
4925
4977
|
// such room" three times, a whole error card each (the owner, 2026-10-26,
|
|
4926
4978
|
// Atour). Each priced stay is listed with the hotel id, the room id and the
|
|
4927
4979
|
// nights, which is exactly what add_to_trip takes.
|
|
4928
|
-
const
|
|
4980
|
+
const stayItems = plan.days
|
|
4929
4981
|
.flatMap((day) => day.items)
|
|
4930
|
-
.filter((x) => x.kind === 'hotel' && (x.night ?? 1) === 1 && x.checkIn && x.roomId)
|
|
4931
|
-
|
|
4982
|
+
.filter((x) => x.kind === 'hotel' && (x.night ?? 1) === 1 && x.checkIn && x.roomId);
|
|
4983
|
+
const stays = stayItems.map((x, i) => `Stay ${i + 1}: ${x.name} (\`${x.id}\`), room \`${x.roomId}\`${x.roomName ? ` (${x.roomName})` : ''}, ${x.checkIn} to ${x.checkOut}${x.nights ? ` (${x.nights} ${x.nights === 1 ? 'night' : 'nights'})` : ''}${x.booked ? ` - booked, ${x.booked}` : x.inTrip ? ' - in the trip' : ''}`);
|
|
4932
4984
|
return {
|
|
4933
4985
|
structured: { view: 'itinerary', ...common(deps, key), ...plan, gap },
|
|
4934
4986
|
text: [
|
|
@@ -4937,6 +4989,8 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
|
|
|
4937
4989
|
? [
|
|
4938
4990
|
`Priced stays (${plan.stay?.guests ?? 2} guests; ${t.addToTrip} takes each one's hotel id, room id and dates):`,
|
|
4939
4991
|
...stays,
|
|
4992
|
+
// ⚠️ IN THE TEXT ONLY - not in `structured`, not in the schema.
|
|
4993
|
+
...(await longStayNudges(deps, stayItems)),
|
|
4940
4994
|
]
|
|
4941
4995
|
: []),
|
|
4942
4996
|
...plan.dropped.map((d) => `Left out: ${d.name} — ${d.why}`),
|