@curless/hotel-storefront 0.58.0 → 0.58.2

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":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,KAAK,mBAAmB,EAWzB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAa,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAe7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAmChD,OAAO,EAGL,KAAK,SAAS,EAMf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAEV,cAAc,EAgBd,KAAK,EACL,KAAK,EAKL,eAAe,EAMhB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,UAAU,EAA+B,MAAM,YAAY,CAAC;AAuF1E,+GAA+G;AAC/G,eAAO,MAAM,WAAW,IAAI,CAAC;AAE7B;;;;GAIG;AACH,eAAO,MAAM,UAAU,GACrB,GAAG,SAAS,EACZ,GAAG,UAAU,EACb,OAAM,mBAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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eAAO,MAAM,oBAAoB,kOACgM,CAAC;AAElO;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO;;;CAKV,CAAC;AAEX;;;;;;GAMG;AACH;;;GAGG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAMrC,eAAO,MAAM,cAAc,mgBAAohB,CAAC"}
package/dist/tools.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { aboutLines } from './about.js';
2
2
  import { DEFAULT_PAGE, FULL_CAPABILITIES, LASTING_REQUESTS, MAX_PAGE, REQUEST_KINDS, REQUEST_NOTE_MAX, guestTooLong, notPricedForNoAnswer, unansweredBy, unitWords, } from './backend.js';
3
3
  import { usedOnWords } from './coupon-words.js';
4
- import { MAX_GUESTS, addDays, dateOptions, dayWords, isDay, nights as nightsBetween, stayDayWords, toDay, } from './dates.js';
4
+ import { MAX_GUESTS, addDays, dateOptions, dayWords, isDay, nights as nightsBetween, stayDayWords, toDay, weekendOf, weekendWords, } from './dates.js';
5
5
  import { FACILITIES } from './facilities.js';
6
6
  import { DESCRIPTION_MAX, POLICY_MAX, hotelName, hotelText } from './fence.js';
7
7
  import { clockOf, minutesOf, startProblem, stayWords, windowWords } from './hourly.js';
@@ -338,8 +338,10 @@ const allTools = (n, v) => {
338
338
  const open = !v.demo;
339
339
  const places = v.hints.places ?? [];
340
340
  const stayProps = {
341
- checkIn: DATE('The arrival date'),
342
- checkOut: DATE('The departure date - the night before it is the last night'),
341
+ // A weekend in the words a guest says it, as `WEEKEND_WORDS` has it (总线程 11-09:
342
+ // 「这周末」 went in as Saturday night alone).
343
+ checkIn: DATE('The arrival date - for a weekend (周末, this weekend), the Friday'),
344
+ checkOut: DATE('The departure date - the night before it is the last night; for a weekend, the Sunday'),
343
345
  guests: {
344
346
  type: 'integer',
345
347
  minimum: 1,
@@ -891,7 +893,9 @@ const allTools = (n, v) => {
891
893
  // 自己的登陆也要改成外链」): the membership number and the surname are typed
892
894
  // on our page (account/member-login.ts), never in the chat - so no schema
893
895
  // here has a field a model could fill with them.
894
- description: `Starts signing a ${v.brand} loyalty member in for this conversation, on ${v.brand}'s own sign-in page: answers with a one-time link and a short code the page shows too, where the guest types their membership number and the surname on it; the chat does not carry them. Once they have, it answers with their tier, their point balance and what the tier takes off the public rate; room rates and trip totals are then quoted at the member rate until they are signed out.`,
896
+ // ⚠️ THE WORDS A GUEST SAYS FOR IT (总线程 11-09): a host that finds tools by
897
+ // searching them (Manus) has 「登录」 to search with.
898
+ description: `Signs a ${v.brand} loyalty member in (log in) for this conversation - ${v.brand} 会员登录 - on ${v.brand}'s own sign-in page: answers with a one-time link and a short code the page shows too, where the guest types their membership number and the surname on it; the chat does not carry them. Once they have, it answers with their tier, their point balance and what the tier takes off the public rate; room rates and trip totals are then quoted at the member rate until they are signed out.`,
895
899
  annotations: edits(`Sign in to ${v.brand}`, open),
896
900
  inputSchema: {
897
901
  type: 'object',
@@ -2763,7 +2767,16 @@ const NOT_SOLD_OUT = 'not sold out, and other nights make no difference';
2763
2767
  * card says no more than 预付 on them (robin, 2026-10-30), so the assistant is
2764
2768
  * the one who knows - and says it when the guest wants one.
2765
2769
  */
2766
- export const notSoldHereWords = (group) => `Rates marked paid in advance are listed as ${group} sells them, but a stay paid in advance cannot be booked here yet; only rates paid at the hotel can be. If the guest wants one, say so plainly - nothing is booked or charged - and offer a rate paid at the hotel, other dates, or booking it with ${group} directly.`;
2770
+ export const notSoldHereWords = (group) => `Rates marked paid in advance are listed as ${group} sells them, but a stay paid in advance cannot be booked here yet; only rates paid at the hotel can be. If the guest wants one, say so plainly - nothing is booked or charged - and ${waysOnWords(group, 'a rate paid at the hotel, where this answer lists one')}`;
2771
+ /**
2772
+ * Where a guest goes from a rate paid in advance (总线程 11-09, Manus on Huazhu:
2773
+ * 「选最便宜那个」 was answered "it cannot be booked here" and nothing more,
2774
+ * where claude.ai had said a rate paid at the hotel, or Huazhu's own app or
2775
+ * site). Only what is so: a rate paid at the hotel where the answer has one,
2776
+ * other nights looked up here, and the group's own channels - by name, never a
2777
+ * link to its site (`server.websiteUrl`: a link reads as the official way in).
2778
+ */
2779
+ const waysOnWords = (group, atHotel) => `give the ways on in the same reply, never stopping at "it cannot be booked here": ${atHotel ? `${atHotel}; ` : ''}other nights, looked up here again; or booking with ${group} directly, in its own app or on its website.`;
2767
2780
  /**
2768
2781
  * A hotel none of whose rooms are on sale here (`none-on-sale`), said on its page
2769
2782
  * with the way out (2026-11-03 review, T5). The page's text had one sentence -
@@ -2873,8 +2886,8 @@ const otherLabelWords = (r) => labelWords({ ...r, labels: (r.labels ?? []).filte
2873
2886
  * One row per ROOM TYPE, cheapest first - name · bed · breakfast · cancelling ·
2874
2887
  * the whole stay's total - at its lowest rate, with how many other rates the
2875
2888
  * type has: what the card shows a guest who can tap, in a line they can answer
2876
- * with its number. The room id after the dash is the one `addToTrip` takes for
2877
- * that number. Every row is in the answer, numbered, so "the sixth" is a row
2889
+ * with its number. The room id `addToTrip` takes for that number is not on
2890
+ * the line: the ids follow the lines, in one line of their own (`idsByNumber`). Every row is in the answer, numbered, so "the sixth" is a row
2878
2891
  * the model can name when the guest asks for the rest; the guest is shown the
2879
2892
  * first `ROOM_CHOICES_SHOWN`, and the others as a count.
2880
2893
  *
@@ -2902,25 +2915,37 @@ const roomChoiceRows = (rooms, roomsWanted) => byRoomType(rooms)
2902
2915
  : `${roomsWanted > 1
2903
2916
  ? `${formatMoney(multiplyMoney(r.stayTotal, roomsWanted))} for ${roomsWanted} rooms, for the stay incl. taxes and fees (${formatMoney(r.nightly)} ${night} a room`
2904
2917
  : `${formatMoney(r.stayTotal)} for the stay incl. taxes and fees (${formatMoney(r.nightly)} ${night}`}${more ? `; ${more}` : ''})`;
2905
- return `${i + 1}. ${[
2906
- withZh(type.name, r.roomType ? r.roomType.names : r.names, true),
2907
- r.beds,
2908
- // A room for a family says so: "three of us" is chosen by it.
2909
- r.sleeps >= FAMILY_SLEEPS ? `sleeps ${r.sleeps}` : '',
2910
- breakfastColumn(r),
2911
- cancelWords(r),
2912
- total,
2913
- ]
2914
- .filter(Boolean)
2915
- .join(' · ')}${otherLabelWords(r)} — room \`${r.id}\``;
2918
+ return {
2919
+ line: `${i + 1}. ${[
2920
+ withZh(type.name, r.roomType ? r.roomType.names : r.names, true),
2921
+ r.beds,
2922
+ // A room for a family says so: "three of us" is chosen by it.
2923
+ r.sleeps >= FAMILY_SLEEPS ? `sleeps ${r.sleeps}` : '',
2924
+ breakfastColumn(r),
2925
+ cancelWords(r),
2926
+ total,
2927
+ ]
2928
+ .filter(Boolean)
2929
+ .join(' · ')}${otherLabelWords(r)}`,
2930
+ id: r.id,
2931
+ };
2916
2932
  });
2933
+ /**
2934
+ * The ids behind numbered lines, in one line after them (总线程 11-09): with the
2935
+ * id on each line - "— room `x`" - the model was to copy the line and drop its
2936
+ * end, and on Manus it rewrote the lines and dropped the numbers instead. The
2937
+ * lines are now the guest's as they stand; this line is the model's.
2938
+ */
2939
+ const idsByNumber = (what, ids, from = 1) => `${what} ids by number, for your calls - never for the guest: ${ids
2940
+ .map((id, i) => `${from + i} = \`${id}\``)
2941
+ .join('; ')}.`;
2917
2942
  /**
2918
2943
  * What the assistant is told to do with `roomChoiceRows` - in the text and,
2919
2944
  * word for word, in the structure (`roomChoices`): the model reads the structure.
2920
2945
  */
2921
- const roomChoicesLead = (types, when) => `Say the dates first, as they are here - ${when} - then show the guest these as a numbered list, one line each, as they are here and in their language, without the room ids - ${types > ROOM_CHOICES_SHOWN
2946
+ const roomChoicesLead = (types, when) => `Say the dates first, as they are here - ${when} - then copy the numbered lines below into your reply as they stand, one line each, each starting with its number ("1.")${types === 1 ? ' - the one line too, as "1."' : ''}; in the guest's language, with every number and figure kept - ${types > ROOM_CHOICES_SHOWN
2922
2947
  ? `the first ${ROOM_CHOICES_SHOWN}, then "${types - ROOM_CHOICES_SHOWN} more room ${types - ROOM_CHOICES_SHOWN === 1 ? 'type' : 'types'}" in one line (the rest are below, for a guest who asks)`
2923
- : 'every one'}. The guest answers with a number or by describing one: a number is that line's room.`;
2948
+ : 'every one'}. The guest answers with a number or by describing one: a number is that line's room, by the ids after the lines.`;
2924
2949
  /**
2925
2950
  * Today at a hotel, for the dates offered to a guest who named none: its own
2926
2951
  * date where the backend gives it (`todayThere`); else the sun's, from where it
@@ -2959,16 +2984,20 @@ numbers) => {
2959
2984
  * via 总线程): nine Huazhu rates, every one paid in advance, and "none of these can
2960
2985
  * be booked here" came after all of them. `before` is that sentence, first.
2961
2986
  */
2962
- const roomChoicesOf = (rooms, roomsWanted, when, before) => [
2963
- ...(before ? [before] : []),
2964
- roomChoicesLead(byRoomType(rooms).length, when),
2965
- ...roomChoiceRows(rooms, roomsWanted),
2966
- ];
2987
+ const roomChoicesOf = (rooms, roomsWanted, when, before) => {
2988
+ const rows = roomChoiceRows(rooms, roomsWanted);
2989
+ return [
2990
+ ...(before ? [before] : []),
2991
+ roomChoicesLead(rows.length, when),
2992
+ ...rows.map((r) => r.line),
2993
+ idsByNumber('Room', rows.map((r) => r.id)),
2994
+ ];
2995
+ };
2967
2996
  /** The sentence said before the rooms where some - or all - of them are paid in advance and not booked here. */
2968
2997
  const notSoldFirst = (rooms, notSold) => !notSold
2969
2998
  ? ''
2970
2999
  : rooms.length > 0 && rooms.every((r) => r.notSoldHere)
2971
- ? `Every rate here for these nights is paid in advance, so none of them can be booked here yet - say that first, before the list. ${notSold}`
3000
+ ? `Every rate here for these nights is paid in advance, so none of them can be booked here yet and none is paid at the hotel - say that first, before the list. ${notSold}`
2972
3001
  : `${notSold} Say it before the list.`;
2973
3002
  /**
2974
3003
  * What a hotel's rooms look like to the assistant for the nights: one line per
@@ -4120,7 +4149,11 @@ export const ON_CARD = {
4120
4149
  * (总线程 11-06, after RollingGo's text answers): the rest are a count.
4121
4150
  */
4122
4151
  export const HOTEL_CHOICES_SHOWN = 6;
4123
- export const LIST_NOT_DRAWN = `Nothing was drawn: this app shows no cards, so the guest has seen none of these hotels. Tell them in your reply as a numbered list, in this order and with these numbers - each one's name; a short line with where it is, its price and what it has; and its tags, where it has any, as one more short line - as given here and nothing that is not - at most ${HOTEL_CHOICES_SHOWN}, and any more as a count the guest can ask for, never a pick of your own. The guest answers with a number or a name:`;
4152
+ // ⚠️ COPIED, NOT RETOLD (总线程 11-09, Manus): told to "tell them as a numbered list",
4153
+ // a model handed one Huazhu hotel wrote it as a sentence with no number, and the
4154
+ // guest's next 「第1家」 had nothing to point at. The lines are the guest's as
4155
+ // they stand, a single one included; the ids are after them, for the model.
4156
+ export const LIST_NOT_DRAWN = `Nothing was drawn: this app shows no cards, so the guest has seen none of these hotels. Copy the numbered lines below into your reply as they stand, in this order and with these numbers, each starting with its number ("1.") - a single line too, as "1."; in the guest's language, with every figure kept and nothing that is not in them - at most ${HOTEL_CHOICES_SHOWN}, and any more as a count the guest can ask for, never a pick of your own. The guest answers with a number or a name; the ids after the lines are for your calls:`;
4124
4157
  /**
4125
4158
  * One hotel of a list as a line, for a client that shows no cards.
4126
4159
  *
@@ -4172,7 +4205,7 @@ const listedInWords = (h, n, tags = []) => {
4172
4205
  ? `rated ${h.rating.value}/${h.rating.scaleMax}${h.rating.count ? ` from ${h.rating.count} reviews` : ''}`
4173
4206
  : '';
4174
4207
  const has = h.amenities.slice(0, 3).map(hotelName).filter(Boolean);
4175
- return `${n}. ${withZh(h.name, h.names?.name, true)} (\`${h.id}\`)${[where, brand, rated]
4208
+ return `${n}. ${withZh(h.name, h.names?.name, true)}${[where, brand, rated]
4176
4209
  .filter(Boolean)
4177
4210
  .map((x) => ` · ${x}`)
4178
4211
  .join('')}${price ? `: ${price}` : ''}${has.length ? `; has ${has.join(', ')}` : ''}${tags.length ? `\n tags: ${tags.join(' · ')}` : ''}`;
@@ -4617,14 +4650,25 @@ const putRoomLine = async (deps, t, ctx, key, store, args, detail) => {
4617
4650
  // ONE ANSWER FOR A ROOM BY THE NIGHT AND A ROOM BY THE HOUR (2026-11-03
4618
4651
  // review, C6): the hourly branch put such a room in the trip before this was
4619
4652
  // asked, and the guest met the refusal at "Book".
4620
- const prepaidNotHere = (room, open, stay, when) => {
4653
+ const prepaidNotHere = (room, open, stay, when, wanted = 1) => {
4621
4654
  const group = groupNameOf(deps, hotelId);
4655
+ // ⚠️ WITH THEIR PRICES, CHEAPEST FIRST, AND THE WAYS ON SAID (总线程 11-09,
4656
+ // Manus on Huazhu): the names alone and "the other ways on" last, and the
4657
+ // model told the guest only that the room could not be booked here.
4658
+ const priced = [...open].sort((a, b) => a.stayTotal.minor - b.stayTotal.minor);
4659
+ const price = (r) => r.hourly
4660
+ ? priceWords(r, true)
4661
+ : wanted > 1
4662
+ ? `${formatMoney(multiplyMoney(r.stayTotal, wanted))} for ${wanted} rooms, for the stay incl. taxes and fees`
4663
+ : `${formatMoney(r.stayTotal)} for the stay incl. taxes and fees`;
4622
4664
  const said = [
4623
4665
  `Nothing was booked or charged: ${room.name} is paid in advance, and a stay paid in advance cannot be booked here yet - only rates paid at the hotel can be.`,
4624
- open.length
4625
- ? `Paid at the hotel at ${detail.hotel.name} ${when}: ${open.map((r) => `${r.name} (\`${r.id}\`)`).join(', ')}.`
4666
+ priced.length
4667
+ ? `Paid at the hotel at ${detail.hotel.name} ${when}, cheapest first: ${priced.map((r) => `${withZh(r.name, r.roomType ? r.roomType.names : r.names, true)} (\`${r.id}\`) - ${price(r)}`).join('; ')}.`
4626
4668
  : `No rate at ${detail.hotel.name} ${when} is paid at the hotel.`,
4627
- `Other dates, or booking this rate with ${group} directly, are the other ways on.`,
4669
+ `Tell the guest that nothing was booked, and ${waysOnWords(group, priced.length
4670
+ ? 'the rates paid at the hotel above, by name and price - one of them is booked here as any other room'
4671
+ : undefined)}`,
4628
4672
  ].join(' ');
4629
4673
  return {
4630
4674
  structured: {
@@ -4684,7 +4728,7 @@ const putRoomLine = async (deps, t, ctx, key, store, args, detail) => {
4684
4728
  checkIn: hourlyRoom.hourly.date,
4685
4729
  checkOut: hourlyRoom.hourly.date,
4686
4730
  guests: guestsOf(args),
4687
- }, 'by the hour today');
4731
+ }, 'by the hour today', wantedHere);
4688
4732
  }
4689
4733
  const bad = startProblem(hourlyRoom.hourly, startTime);
4690
4734
  if (bad) {
@@ -4818,7 +4862,7 @@ const putRoomLine = async (deps, t, ctx, key, store, args, detail) => {
4818
4862
  // Listed, not booked here - see `prepaidNotHere`.
4819
4863
  if (room.notSoldHere) {
4820
4864
  const open = dated.rooms.filter((r) => !r.notSoldHere && r.sleeps >= stay.guests && r.roomsLeft >= wanted);
4821
- return prepaidNotHere(room, open, stay, 'for those nights');
4865
+ return prepaidNotHere(room, open, stay, 'for those nights', wanted);
4822
4866
  }
4823
4867
  deps.trips.set(store, {
4824
4868
  kind: 'room',
@@ -5735,9 +5779,16 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
5735
5779
  ask.filters?.hourly && hotels.some((h) => h.forStay?.hours)
5736
5780
  ? `By the hour, today: each price is that ${deps.vocab.noun}'s cheapest room by the hour, for its hours, taxes included.`
5737
5781
  : ask.stay && fromPricesOnly
5738
- ? `No price for ${ask.stay.checkIn} to ${ask.stay.checkOut} is available here: each price is the ${deps.vocab.noun}'s from-price a night, not a total for the stay. Say so; do not quote a stay total.`
5782
+ ? `No price for ${ctx.noCards
5783
+ ? `${stayDayWords(ask.stay.checkIn, ask.stay.checkOut)} - ${ask.stay.checkIn} to ${ask.stay.checkOut} (open your reply with those nights in one sentence, by weekday and date) -`
5784
+ : `${ask.stay.checkIn} to ${ask.stay.checkOut}`} is available here: each price is the ${deps.vocab.noun}'s from-price a night, not a total for the stay. Say so; do not quote a stay total.`
5739
5785
  : ask.stay
5740
- ? `Priced for ${ask.stay.checkIn} to ${ask.stay.checkOut}${ask.rooms && ask.rooms > 1 ? `, ${ask.rooms} rooms` : ''}: each price is that ${deps.vocab.noun}'s cheapest room for the whole stay, taxes included${hotels.some((h) => h.noRoomsForStay && h.noRoomsForStayCode !== 'none-on-sale')
5786
+ ? `Priced for ${
5787
+ // ⚠️ THE NIGHTS BY THEIR WEEKDAYS, SAID FIRST (总线程 11-09, Manus: a
5788
+ // list for 「这周末」 came back and the reply never said which nights).
5789
+ ctx.noCards
5790
+ ? `${stayDayWords(ask.stay.checkIn, ask.stay.checkOut)} - ${ask.stay.checkIn} to ${ask.stay.checkOut}, ${ask.stay.guests} ${ask.stay.guests === 1 ? 'guest' : 'guests'} (open your reply with those nights in one sentence, by weekday and date)`
5791
+ : `${ask.stay.checkIn} to ${ask.stay.checkOut}`}${ask.rooms && ask.rooms > 1 ? `, ${ask.rooms} rooms` : ''}: each price is that ${deps.vocab.noun}'s cheapest room for the whole stay, taxes included${hotels.some((h) => h.noRoomsForStay && h.noRoomsForStayCode !== 'none-on-sale')
5741
5792
  ? `; ${hotels.filter((h) => h.noRoomsForStay && h.noRoomsForStayCode !== 'none-on-sale').length} in this answer have no room for those nights`
5742
5793
  : ''}${
5743
5794
  // The other kind, said as its own (U11): other nights will not help.
@@ -5749,7 +5800,16 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
5749
5800
  // A price on the list that is not booked here (`notSoldHere`): said as on
5750
5801
  // the hotel's page, in both - see `notSoldHereWords`.
5751
5802
  const notSoldOn = hotels.find((h) => h.forStay?.notSoldHere);
5752
- const notSold = notSoldOn ? notSoldHereWords(groupNameOf(deps, notSoldOn.id)) : '';
5803
+ // ⚠️ EVERY PRICE LISTED PAID IN ADVANCE IS SAID FIRST (总线程 11-09, Manus on
5804
+ // Huazhu's production): one hotel, its one price paid in advance, and the
5805
+ // guest's 「选最便宜那个」 met "it cannot be booked here" and nothing more.
5806
+ const pricedHere = hotels.filter((h) => h.forStay);
5807
+ const allPrepaid = pricedHere.length > 0 && pricedHere.every((h) => h.forStay?.notSoldHere);
5808
+ const notSold = notSoldOn
5809
+ ? `${allPrepaid
5810
+ ? `Every price in this list is a rate paid in advance, which cannot be booked here - say that first, before the list. A ${deps.vocab.noun}'s own page (${deps.tools.getHotel}) lists the rates it has paid at the hotel, if it has any. `
5811
+ : ''}${notSoldHereWords(groupNameOf(deps, notSoldOn.id))}`
5812
+ : '';
5753
5813
  if (notSold)
5754
5814
  priceNotes.push(notSold);
5755
5815
  // To a client that draws no card, the hotels as numbered lines - numbered
@@ -5757,7 +5817,10 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
5757
5817
  // text and, word for word, in the structure (`hotelChoices`).
5758
5818
  const tagsOf = ctx.noCards ? listTagsOf(hotels) : [];
5759
5819
  const hotelChoices = ctx.noCards && hotels.length
5760
- ? hotels.map((h, i) => listedInWords(h, offset + i + 1, tagsOf[i])).join('\n')
5820
+ ? [
5821
+ ...hotels.map((h, i) => listedInWords(h, offset + i + 1, tagsOf[i])),
5822
+ idsByNumber('Hotel', hotels.map((h) => h.id), offset + 1),
5823
+ ].join('\n')
5761
5824
  : '';
5762
5825
  // …and, asked without dates, what its prices are - first of the notes.
5763
5826
  const fromPrices = ctx.noCards && hotels.length && !ask.stay && !ask.filters?.hourly
@@ -5765,6 +5828,14 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
5765
5828
  : '';
5766
5829
  if (fromPrices)
5767
5830
  priceNotes.unshift(fromPrices);
5831
+ // ⚠️ 「这周末」 WORKED OUT AS SATURDAY NIGHT (总线程 11-09) is said first, in
5832
+ // both - see `weekendOf`.
5833
+ const weekendFor = ask.stay && !ask.filters?.hourly && hotels.length
5834
+ ? weekendOf(ask.stay.checkIn, ask.stay.checkOut, today?.min ?? todayOfHotel(hotels[0], deps.trips.now()))
5835
+ : null;
5836
+ const weekend = weekendFor ? weekendWords(weekendFor) : '';
5837
+ if (weekend)
5838
+ priceNotes.unshift(weekend);
5768
5839
  // Every one by name and city, and that there are no others - or, told
5769
5840
  // only "2 hotels", the model asked for the list again to learn which.
5770
5841
  const degraded = degradedOf(deps, answer, undefined, ctx?.noCards);
@@ -5814,6 +5885,7 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
5814
5885
  // not a new one - and a place chip keeps the order the guest chose.
5815
5886
  ask: echo(applied),
5816
5887
  ...(ask.stay ? { stay: ask.stay } : {}),
5888
+ ...(weekend ? { weekend } : {}),
5817
5889
  ...(fromPricesOnly ? { fromPricesOnly: true } : {}),
5818
5890
  ...(answer.refine
5819
5891
  ? { refine: refineFor(answer.refine, asked.filters, total, !!ask.stay) }
@@ -6076,11 +6148,18 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
6076
6148
  const roomChoices = ctx.noCards && choosable.length
6077
6149
  ? roomChoicesOf(choosable, roomsWanted, saidWhen, before).join('\n')
6078
6150
  : undefined;
6151
+ // ⚠️ 「这周末」 WORKED OUT AS SATURDAY NIGHT (总线程 11-09, claude.ai and Manus
6152
+ // both) is said back first, in both - see `weekendOf`.
6153
+ const weekendFor = byTheHour
6154
+ ? null
6155
+ : weekendOf(stay.checkIn, stay.checkOut, todayOfHotel(h, deps.trips.now()));
6156
+ const weekend = weekendFor ? weekendWords(weekendFor) : '';
6079
6157
  return {
6080
6158
  structured: {
6081
6159
  view: 'hotel',
6082
6160
  ...base,
6083
6161
  stay,
6162
+ ...(weekend ? { weekend } : {}),
6084
6163
  ...(roomChoices ? { roomChoices } : {}),
6085
6164
  rooms,
6086
6165
  rooms_wanted: roomsWanted,
@@ -6094,6 +6173,7 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
6094
6173
  ...(ctx.drawsCards && enough.length ? { cardShows: ON_CARD.rooms } : {}),
6095
6174
  },
6096
6175
  text: [
6176
+ weekend,
6097
6177
  memberRates?.said ?? '',
6098
6178
  ...roomsText(ctx.noCards ? withZh(h.name, h.names?.name, true) : h.name, byTheHour
6099
6179
  ? (rs) => `${rs.length} ${rs.length === 1 ? 'room' : 'rooms'} by the hour for today, ${stay.checkIn}, ${stay.guests} guests`