@curless/hotel-storefront 0.70.1 → 0.71.0
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 +1 -1
- package/dist/card.generated.js +2 -2
- package/dist/card.generated.js.map +1 -1
- package/dist/otaless/backend.d.ts.map +1 -1
- package/dist/otaless/backend.js +22 -4
- package/dist/otaless/backend.js.map +1 -1
- package/dist/present.d.ts +6 -1
- package/dist/present.d.ts.map +1 -1
- package/dist/present.js +27 -6
- package/dist/present.js.map +1 -1
- package/dist/server.d.ts +2 -2
- package/dist/server.js +2 -2
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +79 -24
- package/dist/tools.js.map +1 -1
- package/dist/types.d.ts +15 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/tools.d.ts.map
CHANGED
|
@@ -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;AAa1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAiB7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAqChD,OAAO,EAGL,KAAK,SAAS,EAMf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAEV,cAAc,EAgBd,QAAQ,EAER,KAAK,EACL,KAAK,EAKL,eAAe,EAOhB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,UAAU,EAA+B,MAAM,YAAY,CAAC;AAuF1E,+GAA+G;AAC/G,eAAO,MAAM,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AEF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,QAAQ,EACd,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,WAAW;AAChB,sGAAsG;AACtG,OAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,KACjC,OAAO,CAAC,UAAU,CAoCpB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,QAAQ,EAAE,KAAK,MAAM,KAAG,WAQxD,CAAC;AACF,eAAO,MAAM,WAAW,GAAI,MAAM,QAAQ,EAAE,KAAK,MAAM,KAAG,QACd,CAAC;AAE7C,uGAAuG;AACvG,eAAO,MAAM,cAAc,SAzjDnB,QAAQ,OACT,MAAM,OACN,OAAO,KACX,CAAC,UAAU,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,GAAG,SAsjDC,CAAC;AAE5C,eAAO,MAAM,UAAU,GACrB,MAAM,QAAQ,EACd,MAAM,MAAM,EACZ,SAAS,OAAO,EAChB,KAAK,WAAW,KACf,OAAO,CAAC,UAAU,CAsDpB,CAAC;AAsBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,oPACuN,CAAC;AAEpP;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,2aAC+Y,CAAC;AAE3a,sFAAsF;AACtF,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,gxBAA8xB,CAAC"}
|
package/dist/tools.js
CHANGED
|
@@ -3027,7 +3027,17 @@ const offerCount = (rooms) => {
|
|
|
3027
3027
|
/** What one room costs, as the text says it: nights, or the hours of a room by the hour. */
|
|
3028
3028
|
const priceWords = (r, noCards) => r.hourly
|
|
3029
3029
|
? `${formatMoney(r.stayTotal)} for ${r.hourly.hours} hours incl. taxes and fees, starting between ${r.hourly.earliestStart} and ${r.hourly.latestStart} today and out by ${r.hourly.latestEnd}`
|
|
3030
|
-
: `${formatMoney(r.nightly)} ${nightWords(noCards, nightlyIncludesTaxes(r))}, ${
|
|
3030
|
+
: `${formatMoney(r.nightly)} ${nightWords(noCards, nightlyIncludesTaxes(r))}, ${wholeStayWords(r)}`;
|
|
3031
|
+
/**
|
|
3032
|
+
* The whole stay, as the text says it - or that the group has quoted none.
|
|
3033
|
+
*
|
|
3034
|
+
* ⚠️ NO STAY TOTAL THAT IS OURS (总线程 11-13, `Room.stayTotalUnquoted`): the
|
|
3035
|
+
* nights times a night was said as "CN¥172 for the stay incl. taxes and fees"
|
|
3036
|
+
* for a rate the group had priced for one night only.
|
|
3037
|
+
*/
|
|
3038
|
+
const wholeStayWords = (r) => r.stayTotalUnquoted
|
|
3039
|
+
? 'no price from the group for the whole stay yet'
|
|
3040
|
+
: `${formatMoney(r.stayTotal)} for the stay incl. taxes and fees`;
|
|
3031
3041
|
/**
|
|
3032
3042
|
* "a night" - and to a client that draws no card, "a night before taxes".
|
|
3033
3043
|
*
|
|
@@ -3064,6 +3074,12 @@ const labelWords = (r) => {
|
|
|
3064
3074
|
};
|
|
3065
3075
|
/** What a list and a page both say of a hotel with nothing on sale here: other nights would not help. */
|
|
3066
3076
|
const NOT_SOLD_OUT = 'not sold out, and other nights make no difference';
|
|
3077
|
+
/**
|
|
3078
|
+
* The whys of a list's unpriced hotel that are not "no room for those nights",
|
|
3079
|
+
* each counted on its own: nothing on sale here (U11), and a group that did not
|
|
3080
|
+
* answer this time (总线程 11-13: 华住生产's 2001 "System error" was counted as no room).
|
|
3081
|
+
*/
|
|
3082
|
+
const NOT_NO_ROOM = new Set(['none-on-sale', 'unreachable']);
|
|
3067
3083
|
/**
|
|
3068
3084
|
* What is said of rates listed but not booked here (`Room.notSoldHere`) - in
|
|
3069
3085
|
* the text and, word for word, in the structure (`notSoldHere`): the model reads
|
|
@@ -3130,7 +3146,7 @@ const roomFactsWords = (r, rate = false) => {
|
|
|
3130
3146
|
/** The cheapest price a rate quotes, as the text says it: "from" a night, or the hours of a block. */
|
|
3131
3147
|
const fromWords = (r, noCards) => r.hourly
|
|
3132
3148
|
? `${formatMoney(r.stayTotal)} for ${r.hourly.hours} hours incl. taxes and fees`
|
|
3133
|
-
: `${formatMoney(r.nightly)} ${nightWords(noCards, nightlyIncludesTaxes(r))}, ${
|
|
3149
|
+
: `${formatMoney(r.nightly)} ${nightWords(noCards, nightlyIncludesTaxes(r))}, ${wholeStayWords(r)}`;
|
|
3134
3150
|
/**
|
|
3135
3151
|
* A hotel's rooms for the nights, one line per ROOM TYPE.
|
|
3136
3152
|
*
|
|
@@ -3150,7 +3166,7 @@ terms,
|
|
|
3150
3166
|
* card is what books a room for a card host.
|
|
3151
3167
|
*/
|
|
3152
3168
|
noCards) => {
|
|
3153
|
-
const forRooms = (r) => roomsWanted > 1
|
|
3169
|
+
const forRooms = (r) => roomsWanted > 1 && !r.stayTotalUnquoted
|
|
3154
3170
|
? ` (${formatMoney(multiplyMoney(r.stayTotal, roomsWanted))} for ${roomsWanted} rooms)`
|
|
3155
3171
|
: '';
|
|
3156
3172
|
return byRoomType(rooms).map((type) => {
|
|
@@ -3237,9 +3253,12 @@ readOnly = false) => {
|
|
|
3237
3253
|
const many = roomsWanted > 1;
|
|
3238
3254
|
const price = (r) => r.hourly
|
|
3239
3255
|
? `${formatMoney(r.stayTotal)} for ${r.hourly.hours} hours`
|
|
3240
|
-
:
|
|
3241
|
-
?
|
|
3242
|
-
|
|
3256
|
+
: r.stayTotalUnquoted
|
|
3257
|
+
? // ⚠️ A NIGHT'S PRICE, NOT OUR TOTAL (总线程 11-13, `Room.stayTotalUnquoted`).
|
|
3258
|
+
`${formatMoney(r.nightly)} a night${many ? ', per room' : ''}`
|
|
3259
|
+
: many
|
|
3260
|
+
? `${formatMoney(multiplyMoney(r.stayTotal, roomsWanted))} for ${roomsWanted} rooms`
|
|
3261
|
+
: formatMoney(r.stayTotal);
|
|
3243
3262
|
// ⚠️ "BEFORE TAXES" ONLY WHERE IT IS SO (0.55.3): see `nightlyIncludesTaxes`.
|
|
3244
3263
|
const nightly = (r) => r.hourly
|
|
3245
3264
|
? ''
|
|
@@ -3319,11 +3338,14 @@ readOnly = false) => {
|
|
|
3319
3338
|
const said = [
|
|
3320
3339
|
first?.hourly
|
|
3321
3340
|
? "Prices are for each room's hours, taxes and fees included."
|
|
3322
|
-
:
|
|
3323
|
-
?
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
: '
|
|
3341
|
+
: rows.every(({ r }) => r.stayTotalUnquoted)
|
|
3342
|
+
? // ⚠️ NIGHTLY PRICES, NOT STAY PRICES (总线程 11-13, `Room.stayTotalUnquoted`).
|
|
3343
|
+
'Prices are a night each, as the group gives them; it has quoted no price for the whole stay yet.'
|
|
3344
|
+
: samePrice && rows.length > 1
|
|
3345
|
+
? `All ${rows.length} are ${samePrice}${many ? '' : ' for the stay'}, taxes and fees included${sharedBy(spread.nightly) ? ` (${sharedBy(spread.nightly)})` : ''}.`
|
|
3346
|
+
: many
|
|
3347
|
+
? `Prices are for ${roomsWanted} rooms for the whole stay, taxes and fees included.`
|
|
3348
|
+
: 'Prices are for the stay, taxes and fees included.',
|
|
3327
3349
|
shared.length ? `Every one: ${shared.join('; ')}.` : '',
|
|
3328
3350
|
most.length ? `Unless a room says otherwise: ${most.join('; ')}.` : '',
|
|
3329
3351
|
pay.said,
|
|
@@ -5335,10 +5357,15 @@ readOnly = false) => {
|
|
|
5335
5357
|
f && priced.length < 2 && !readOnly ? PAY_WORDS[payOf(f)] : '',
|
|
5336
5358
|
// ⚠️ NOT SOLD HERE IS NOT SOLD OUT (2026-11-03 review, U11): a hotel with no
|
|
5337
5359
|
// rooms on sale through this connector says what its own page says.
|
|
5360
|
+
// ⚠️ NOR IS A GROUP THAT DID NOT ANSWER (总线程 11-13, Manus on 华住生产): its
|
|
5361
|
+
// inventory call came back 2001 "System error", the line said "no room for
|
|
5362
|
+
// those nights", and the hotel's own page a moment later had nine room types.
|
|
5338
5363
|
!f && h.noRoomsForStay
|
|
5339
5364
|
? h.noRoomsForStayCode === 'none-on-sale'
|
|
5340
5365
|
? h.noRoomsForStay
|
|
5341
|
-
:
|
|
5366
|
+
: h.noRoomsForStayCode === 'unreachable'
|
|
5367
|
+
? `${groupOf(h)?.name ?? group} did not answer for its prices just now - this does not mean it has no room for those nights`
|
|
5368
|
+
: 'no room for those nights'
|
|
5342
5369
|
: '',
|
|
5343
5370
|
]),
|
|
5344
5371
|
tags: [
|
|
@@ -5357,7 +5384,9 @@ readOnly = false) => {
|
|
|
5357
5384
|
: h.noRoomsForStay
|
|
5358
5385
|
? h.noRoomsForStayCode === 'none-on-sale'
|
|
5359
5386
|
? 'Not on sale here'
|
|
5360
|
-
:
|
|
5387
|
+
: h.noRoomsForStayCode === 'unreachable'
|
|
5388
|
+
? 'Not priced just now'
|
|
5389
|
+
: 'No room for those nights'
|
|
5361
5390
|
: h.fromNightly
|
|
5362
5391
|
? `from ${formatMoney(h.fromNightly)} ${nightWords(true, h.fromNightlyTaxes === 'unknown')}`
|
|
5363
5392
|
: '',
|
|
@@ -5416,7 +5445,7 @@ const comparedInWords = (c) => {
|
|
|
5416
5445
|
const p = c.price;
|
|
5417
5446
|
const priced = p
|
|
5418
5447
|
? [
|
|
5419
|
-
`${withZh(p.room, p.roomNames, true)} at ${p.nightly} ${nightWords(true, p.nightlyTaxesIn)}, ${p.stayTotal} for the stay incl. taxes and fees`,
|
|
5448
|
+
`${withZh(p.room, p.roomNames, true)} at ${p.nightly} ${nightWords(true, p.nightlyTaxesIn)}, ${p.stayTotal === undefined ? 'no price from the group for the whole stay yet' : `${p.stayTotal} for the stay incl. taxes and fees`}`,
|
|
5420
5449
|
p.terms !== undefined
|
|
5421
5450
|
? termsWords(p.terms)
|
|
5422
5451
|
: p.freeCancellationUntil
|
|
@@ -5802,9 +5831,11 @@ const putRoomLine = async (deps, t, ctx, key, store, args, detail) => {
|
|
|
5802
5831
|
const priced = [...open].sort((a, b) => a.stayTotal.minor - b.stayTotal.minor);
|
|
5803
5832
|
const price = (r) => r.hourly
|
|
5804
5833
|
? priceWords(r, true)
|
|
5805
|
-
:
|
|
5806
|
-
? `${formatMoney(
|
|
5807
|
-
:
|
|
5834
|
+
: r.stayTotalUnquoted
|
|
5835
|
+
? `${formatMoney(r.nightly)} a night, ${wholeStayWords(r)}`
|
|
5836
|
+
: wanted > 1
|
|
5837
|
+
? `${formatMoney(multiplyMoney(r.stayTotal, wanted))} for ${wanted} rooms, for the stay incl. taxes and fees`
|
|
5838
|
+
: `${formatMoney(r.stayTotal)} for the stay incl. taxes and fees`;
|
|
5808
5839
|
const said = [
|
|
5809
5840
|
`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.`,
|
|
5810
5841
|
priced.length
|
|
@@ -7072,12 +7103,17 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
|
|
|
7072
7103
|
// list for 「这周末」 came back and the reply never said which nights).
|
|
7073
7104
|
ctx.noCards
|
|
7074
7105
|
? `${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)`
|
|
7075
|
-
: `${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
|
|
7076
|
-
? `; ${hotels.filter((h) => h.noRoomsForStay && h.noRoomsForStayCode
|
|
7106
|
+
: `${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 && !NOT_NO_ROOM.has(h.noRoomsForStayCode ?? ''))
|
|
7107
|
+
? `; ${hotels.filter((h) => h.noRoomsForStay && !NOT_NO_ROOM.has(h.noRoomsForStayCode ?? '')).length} in this answer ${hotels.filter((h) => h.noRoomsForStay && !NOT_NO_ROOM.has(h.noRoomsForStayCode ?? '')).length === 1 ? 'has' : 'have'} no room for those nights`
|
|
7077
7108
|
: ''}${
|
|
7078
7109
|
// The other kind, said as its own (U11): other nights will not help.
|
|
7079
7110
|
hotels.some((h) => h.noRoomsForStayCode === 'none-on-sale')
|
|
7080
7111
|
? `; ${hotels.filter((h) => h.noRoomsForStayCode === 'none-on-sale').length} in this answer ${hotels.filter((h) => h.noRoomsForStayCode === 'none-on-sale').length === 1 ? 'has' : 'have'} no rooms on sale here - ${NOT_SOLD_OUT}`
|
|
7112
|
+
: ''}${
|
|
7113
|
+
// ⚠️ AND A GROUP THAT DID NOT ANSWER IS NOT "NO ROOM" (总线程 11-13): the
|
|
7114
|
+
// hotel's prices could not be read this time - its own page asks again.
|
|
7115
|
+
hotels.some((h) => h.noRoomsForStay && h.noRoomsForStayCode === 'unreachable')
|
|
7116
|
+
? `; ${hotels.filter((h) => h.noRoomsForStay && h.noRoomsForStayCode === 'unreachable').length} in this answer could not be priced just now - ${hotels.filter((h) => h.noRoomsForStay && h.noRoomsForStayCode === 'unreachable').length === 1 ? 'its group did not answer, which does not mean it has' : 'their group did not answer, which does not mean they have'} no room`
|
|
7081
7117
|
: ''}.`
|
|
7082
7118
|
: '',
|
|
7083
7119
|
].filter(Boolean);
|
|
@@ -7397,7 +7433,11 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
|
|
|
7397
7433
|
...(r.terms !== undefined ? {} : { refundable }),
|
|
7398
7434
|
facets: facetsOf({ ...r, roomsLeft, refundable }),
|
|
7399
7435
|
nightly: formatMoney(r.nightly),
|
|
7400
|
-
|
|
7436
|
+
// ⚠️ NO STAY TOTAL WHERE IT IS OURS (总线程 11-13, `Room.stayTotalUnquoted`):
|
|
7437
|
+
// absent here, so neither the card nor the model reads nights times a night
|
|
7438
|
+
// as a price the group gave for the stay.
|
|
7439
|
+
// (Undefined, so the key does not travel: the answer is JSON.)
|
|
7440
|
+
stayTotal: r.stayTotalUnquoted ? undefined : formatMoney(r.stayTotal),
|
|
7401
7441
|
// ⚠️ "INCLUDED", NOT "¥0", where the supplier's price has its taxes in and
|
|
7402
7442
|
// gives no split (`Room.terms`, Otaless): told "taxesAndFees ¥0", the
|
|
7403
7443
|
// model said "税费 ¥0" - no tax - of a price the group says includes it.
|
|
@@ -7409,7 +7449,7 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
|
|
|
7409
7449
|
// nothing said so - robin changed the count and watched the price not
|
|
7410
7450
|
// move (2026-09-18). Multiplied HERE, in minor units, because the card
|
|
7411
7451
|
// holds formatted strings and must never do arithmetic on money.
|
|
7412
|
-
...(roomsWanted > 1
|
|
7452
|
+
...(roomsWanted > 1 && !r.stayTotalUnquoted
|
|
7413
7453
|
? { roomsTotal: formatMoney(multiplyMoney(r.stayTotal, roomsWanted)) }
|
|
7414
7454
|
: {}),
|
|
7415
7455
|
// ⚠️ THE PUBLIC RATE IS MONEY TOO. It went out as a raw
|
|
@@ -7474,11 +7514,14 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
|
|
|
7474
7514
|
...flex.structured,
|
|
7475
7515
|
...(ctx.drawsCards && enough.length ? { cardShows: ON_CARD.rooms } : {}),
|
|
7476
7516
|
...(notBookable ? { notBookable } : {}),
|
|
7517
|
+
// ⚠️ THE GROUP'S TWO PRICE ANSWERS DISAGREE (总线程 11-13): in both, the model reads either.
|
|
7518
|
+
...(detail.priceNotes?.length ? { priceNotes: detail.priceNotes } : {}),
|
|
7477
7519
|
},
|
|
7478
7520
|
text: [
|
|
7479
7521
|
weekend,
|
|
7480
7522
|
memberRates?.said ?? '',
|
|
7481
7523
|
notBookable,
|
|
7524
|
+
...(detail.priceNotes ?? []),
|
|
7482
7525
|
...roomsText(ctx.noCards ? withZh(h.name, h.names?.name, true) : h.name, byTheHour
|
|
7483
7526
|
? (rs) => `${rs.length} ${rs.length === 1 ? 'room' : 'rooms'} by the hour for today, ${stay.checkIn}, ${stay.guests} guests`
|
|
7484
7527
|
: (rs) =>
|
|
@@ -7600,7 +7643,7 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
|
|
|
7600
7643
|
// answer says them.
|
|
7601
7644
|
...(ctx.noCards
|
|
7602
7645
|
? roomTypeLines(rooms, roomsWanted, undefined, true)
|
|
7603
|
-
: rooms.map((r) => `- ${r.name} · sleeps ${r.sleeps}${r.breakfast ? ' · breakfast' : ''} · ${formatMoney(r.stayTotal)} for the stay incl. taxes and fees${roomsWanted > 1 ? ` (${formatMoney(multiplyMoney(r.stayTotal, roomsWanted))} for ${roomsWanted} rooms)` : ''}${r.terms !== undefined ? `, ${termsWords(r.terms)}` : r.freeCancellationUntil ? `, free to cancel until ${freeUntilText(r)}` : r.refundable ? '' : ', non-refundable'}`)),
|
|
7646
|
+
: rooms.map((r) => `- ${r.name} · sleeps ${r.sleeps}${r.breakfast ? ' · breakfast' : ''} · ${r.stayTotalUnquoted ? `${formatMoney(r.nightly)} a night, ${wholeStayWords(r)}` : `${formatMoney(r.stayTotal)} for the stay incl. taxes and fees`}${roomsWanted > 1 && !r.stayTotalUnquoted ? ` (${formatMoney(multiplyMoney(r.stayTotal, roomsWanted))} for ${roomsWanted} rooms)` : ''}${r.terms !== undefined ? `, ${termsWords(r.terms)}` : r.freeCancellationUntil ? `, free to cancel until ${freeUntilText(r)}` : r.refundable ? '' : ', non-refundable'}`)),
|
|
7604
7647
|
...siteBookingLines(rooms, groupNameOf(deps, h.id)),
|
|
7605
7648
|
].join('\n')
|
|
7606
7649
|
: (detail.noRooms ?? `No room type here has ${roomsWanted} left for those nights.`),
|
|
@@ -8598,12 +8641,22 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
|
|
|
8598
8641
|
// none was answered "2 side by side" and nothing else, and its model
|
|
8599
8642
|
// could not say what either hotel cost. Then the table is said here,
|
|
8600
8643
|
// one line a hotel, from the same records the card's rows are read off.
|
|
8644
|
+
//
|
|
8645
|
+
// ⚠️ A COMPARISON OF ONE IS NOT "1 SIDE BY SIDE" (总线程 11-13): when the
|
|
8646
|
+
// others were left out, say how many were asked for and that only one
|
|
8647
|
+
// could be compared - the "Left out" lines below say why.
|
|
8601
8648
|
...(ctx.noCards
|
|
8602
8649
|
? [
|
|
8603
|
-
|
|
8650
|
+
comparison.columns.length === 1 && comparison.dropped.length > 0
|
|
8651
|
+
? `Only 1 of the ${comparison.columns.length + comparison.dropped.length} could be compared${stayWords}. ${COMPARISON_NOT_DRAWN}`
|
|
8652
|
+
: `${comparison.columns.length} compared${stayWords}. ${COMPARISON_NOT_DRAWN}`,
|
|
8604
8653
|
...comparison.columns.map(comparedInWords),
|
|
8605
8654
|
]
|
|
8606
|
-
: [
|
|
8655
|
+
: [
|
|
8656
|
+
comparison.columns.length === 1 && comparison.dropped.length > 0
|
|
8657
|
+
? `Only 1 of the ${comparison.columns.length + comparison.dropped.length} could be compared${stayWords}.`
|
|
8658
|
+
: `${comparison.columns.length} side by side${stayWords}.`,
|
|
8659
|
+
]),
|
|
8607
8660
|
// ⚠️ SAY IT IN THE TEXT TOO. The card carries the warning for whoever is
|
|
8608
8661
|
// looking at it; this line is for the model, which is about to describe
|
|
8609
8662
|
// the table in prose and would otherwise read "¥67,500" against
|
|
@@ -8611,6 +8664,8 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
|
|
|
8611
8664
|
comparison.currencies
|
|
8612
8665
|
? `These are priced in different currencies (${comparison.currencies.join(', ')}) and nothing here converts them — do not call one cheaper than another.`
|
|
8613
8666
|
: '',
|
|
8667
|
+
// ⚠️ THE GROUP'S TWO PRICE ANSWERS DISAGREE (总线程 11-13, `HotelDetail.priceNotes`).
|
|
8668
|
+
...(comparison.priceNotes ?? []),
|
|
8614
8669
|
...comparison.dropped.map((d) => `Left out: ${d.name} — ${d.why}`),
|
|
8615
8670
|
...fitsManyOf(deps, comparison.dropped),
|
|
8616
8671
|
comparison.dropped.some((d) => d.code === 'supplier-timeout') ? askLater(!ctx.noCards) : '',
|