@curless/hotel-storefront 0.66.0 → 0.67.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 (80) hide show
  1. package/dist/account/fake-ota.d.ts.map +1 -1
  2. package/dist/account/fake-ota.js +2 -0
  3. package/dist/account/fake-ota.js.map +1 -1
  4. package/dist/account/index.d.ts +20 -0
  5. package/dist/account/index.d.ts.map +1 -1
  6. package/dist/account/index.js +85 -24
  7. package/dist/account/index.js.map +1 -1
  8. package/dist/account/ota-member.d.ts +2 -0
  9. package/dist/account/ota-member.d.ts.map +1 -1
  10. package/dist/account/ota-member.js +2 -0
  11. package/dist/account/ota-member.js.map +1 -1
  12. package/dist/account/pages.d.ts +16 -1
  13. package/dist/account/pages.d.ts.map +1 -1
  14. package/dist/account/pages.js +88 -10
  15. package/dist/account/pages.js.map +1 -1
  16. package/dist/account/requests.d.ts +1 -1
  17. package/dist/account/requests.d.ts.map +1 -1
  18. package/dist/account/store.d.ts +38 -1
  19. package/dist/account/store.d.ts.map +1 -1
  20. package/dist/account/store.js +32 -1
  21. package/dist/account/store.js.map +1 -1
  22. package/dist/card.generated.d.ts +1 -1
  23. package/dist/card.generated.js +2 -2
  24. package/dist/card.generated.js.map +1 -1
  25. package/dist/config.d.ts +20 -0
  26. package/dist/config.d.ts.map +1 -1
  27. package/dist/config.js.map +1 -1
  28. package/dist/otaless/backend.d.ts +6 -0
  29. package/dist/otaless/backend.d.ts.map +1 -1
  30. package/dist/otaless/backend.js +70 -5
  31. package/dist/otaless/backend.js.map +1 -1
  32. package/dist/otaless/booking.d.ts +119 -5
  33. package/dist/otaless/booking.d.ts.map +1 -1
  34. package/dist/otaless/booking.js +477 -59
  35. package/dist/otaless/booking.js.map +1 -1
  36. package/dist/otaless/client.d.ts +83 -7
  37. package/dist/otaless/client.d.ts.map +1 -1
  38. package/dist/otaless/client.js +117 -13
  39. package/dist/otaless/client.js.map +1 -1
  40. package/dist/otaless/fake.d.ts +45 -2
  41. package/dist/otaless/fake.d.ts.map +1 -1
  42. package/dist/otaless/fake.js +94 -10
  43. package/dist/otaless/fake.js.map +1 -1
  44. package/dist/otaless/make.d.ts +8 -0
  45. package/dist/otaless/make.d.ts.map +1 -1
  46. package/dist/otaless/make.js +55 -4
  47. package/dist/otaless/make.js.map +1 -1
  48. package/dist/otaless/places.d.ts +14 -0
  49. package/dist/otaless/places.d.ts.map +1 -1
  50. package/dist/otaless/places.js +108 -1
  51. package/dist/otaless/places.js.map +1 -1
  52. package/dist/pictures.d.ts +19 -0
  53. package/dist/pictures.d.ts.map +1 -0
  54. package/dist/pictures.js +74 -0
  55. package/dist/pictures.js.map +1 -0
  56. package/dist/server.d.ts +17 -2
  57. package/dist/server.d.ts.map +1 -1
  58. package/dist/server.js +415 -40
  59. package/dist/server.js.map +1 -1
  60. package/dist/sessions.d.ts +23 -0
  61. package/dist/sessions.d.ts.map +1 -1
  62. package/dist/sessions.js +39 -1
  63. package/dist/sessions.js.map +1 -1
  64. package/dist/supplier.js +4 -0
  65. package/dist/supplier.js.map +1 -1
  66. package/dist/surface.d.ts +24 -1
  67. package/dist/surface.d.ts.map +1 -1
  68. package/dist/surface.js +31 -4
  69. package/dist/surface.js.map +1 -1
  70. package/dist/tools.d.ts +30 -0
  71. package/dist/tools.d.ts.map +1 -1
  72. package/dist/tools.js +221 -27
  73. package/dist/tools.js.map +1 -1
  74. package/dist/trip-ids.d.ts +38 -1
  75. package/dist/trip-ids.d.ts.map +1 -1
  76. package/dist/trip-ids.js +98 -3
  77. package/dist/trip-ids.js.map +1 -1
  78. package/dist/types.d.ts +69 -1
  79. package/dist/types.d.ts.map +1 -1
  80. package/package.json +1 -1
@@ -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,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3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,QAAQ;IACd,WAAW,EACT,8RAA8R;CACxR,CAAC;AAEX,6DAA6D;AAC7D,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAoB,EAAuB,EAAE,CACzE,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,uEAAuE;IACvE,wDAAwD;IACxD,KAAK,CAAC,KAAK,CAAC,WAAW;IACvB,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 CHANGED
@@ -1262,6 +1262,24 @@ export type ToolDeps = {
1262
1262
  linkTool?: string;
1263
1263
  signInTool?: string;
1264
1264
  };
1265
+ /**
1266
+ * The conversation's signed-in account's details, for a booking (0.67.0, 总线程
1267
+ * 11-11 「下单时带上登录会员的信息」, account/index.ts `profileFor`): `whole` fills
1268
+ * what the guest left empty, on the server alone; `shown` (masked) is what the
1269
+ * card and the model are told. Absent: a deployment with no account.
1270
+ */
1271
+ guestProfile?: (key: string) => {
1272
+ whole: {
1273
+ name?: string;
1274
+ email?: string;
1275
+ phone?: string;
1276
+ };
1277
+ shown: {
1278
+ name?: true;
1279
+ email?: string;
1280
+ phone?: true;
1281
+ };
1282
+ } | undefined;
1265
1283
  };
1266
1284
  export type ToolContext = {
1267
1285
  /** The host's `Mcp-Session-Id`, or a per-connection fallback. Never a shared constant. */
@@ -1300,6 +1318,18 @@ export type ToolContext = {
1300
1318
  * and on Manus, Muse and Claude Code the guest saw no product at all.
1301
1319
  */
1302
1320
  drawsCards?: boolean;
1321
+ /**
1322
+ * The conversation's id, as its answers give it to a client that draws no
1323
+ * card (0.67.0, server.ts `inWords`): an answer that says what to call next
1324
+ * says to pass it, so a new connection finds this conversation.
1325
+ */
1326
+ tripInWords?: string;
1327
+ /**
1328
+ * The conversation this connection acts in, as a trip key, where it is not its own
1329
+ * session's (0.67.1): a client that draws no card, on a new connection that took its
1330
+ * conversation over (server.ts `Sessions.bind`). A booking is that conversation's.
1331
+ */
1332
+ conversation?: string;
1303
1333
  };
1304
1334
  export type ToolAnswer = {
1305
1335
  structured: Record<string, unknown>;
@@ -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;AAoChD,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,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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
@@ -14,6 +14,7 @@ import { withReference } from './reference.js';
14
14
  import { regionOf } from './regions.js';
15
15
  import { FAMILY_SLEEPS, activeKeysOf, byRoomType, facetsOf, keyWords, matchesTerms, optionsOf, roomTermsOf, termWords, } from './room-filters.js';
16
16
  import { SAME_BOOKING_MS } from './same-booking.js';
17
+ import { withTrip } from './trip-ids.js';
17
18
  import { MAX_EXTRA_QUANTITY, MAX_ROOMS_PER_LINE, clampCount, pickedKey, shownOf, stampOf, tripKey, } from './trip.js';
18
19
  import { branded, catalogue, upFirst } from './vocab.js';
19
20
  // The eleven things a guest can do: find hotels, look at one on dates, see what
@@ -2063,6 +2064,22 @@ const holderOf = (deps, supplier) => {
2063
2064
  notReal: deps.vocab.demo && !deps.vocab.test,
2064
2065
  };
2065
2066
  };
2067
+ /**
2068
+ * ⚠️ A HELD BOOKING'S NEW TERMS ARE A STRANGER'S TEXT, AND NEVER THE MODEL'S (0.67.0, 总线程's
2069
+ * review of 0.66.0, 5): the order the group answered with other terms carries them on its
2070
+ * quote line (`QuoteLine.terms`), and a booking goes into the structure the model reads.
2071
+ * They reach the card as the terms to agree to do (`TERMS_META_KEY`), so they are left off
2072
+ * the line of a booking whose payment page waits for them - the card has no use for them there.
2073
+ */
2074
+ const heldQuoteForCard = (b, q) => b.termsChanged || b.confirmAsked || TERMS_GONE.has(b.status)
2075
+ ? { ...q, lines: q.lines.map(({ terms: _terms, ...rest }) => rest) }
2076
+ : q;
2077
+ /**
2078
+ * …and a booking that is gone or not known (0.67.0, 总线程 11-12, from the gracious-hugle
2079
+ * session's 0.67.0): cancelled, lapsed, failed, or with a person. The integration's release
2080
+ * keeps a held order's line terms - nobody agreed to them, and nobody needs them now.
2081
+ */
2082
+ const TERMS_GONE = new Set(['cancelled', 'expired', 'failed', 'unconfirmed']);
2066
2083
  /**
2067
2084
  * What was made, in one sentence - which depends on what asking MAKES here.
2068
2085
  *
@@ -2085,7 +2102,7 @@ const bookingForCard = (b) => ({
2085
2102
  ...(b.couponReturned === false && !b.couponNotReturnedBecause
2086
2103
  ? { couponNotReturnedBecause: 'expired' }
2087
2104
  : {}),
2088
- quote: quoteForCard(b.quote),
2105
+ quote: heldQuoteForCard(b, quoteForCard(b.quote)),
2089
2106
  // What a cancelled booking was charged to cancel, as text like every amount the
2090
2107
  // card is given: "Cancelled" in My bookings says it beside the struck-out total
2091
2108
  // (r10 #21). `cancellationFee` stays the money it was.
@@ -2103,7 +2120,8 @@ const bookingForCard = (b) => ({
2103
2120
  ...(b.payment.status === 'awaiting' &&
2104
2121
  !b.payment.url &&
2105
2122
  b.payment.method === 'card' &&
2106
- !b.termsChanged
2123
+ !b.termsChanged &&
2124
+ !b.confirmAsked
2107
2125
  ? { linkClosed: true, linkClosedSaid: LINK_CLOSED_WORDS }
2108
2126
  : {}),
2109
2127
  ...(payByWords(b.payment) ? { payByWords: payByWords(b.payment) } : {}),
@@ -2208,8 +2226,9 @@ const paidLine = (deps, b, fee) => {
2208
2226
  ? `Once it is paid the booking is made here - it is not sent to ${h.name} - and ${deps.tools.listBookings} shows it`
2209
2227
  : `Once it is paid the stay is booked with ${h.name}, and ${deps.tools.listBookings} shows it`}; unpaid by then, the page closes and nothing is booked or charged.`
2210
2228
  : deps.backend.otalessBooking
2211
- ? b.termsChanged
2212
- ? // 0.66.0: held back for the group's new terms - not closed.
2229
+ ? b.termsChanged || b.confirmAsked
2230
+ ? // 0.66.0: held back for the group's new terms (or, 0.67.1, for the guest to confirm
2231
+ // what the group asked) - not closed.
2213
2232
  `**Not booked yet** - ${termsHeldWords(deps, b)}.`
2214
2233
  : // Otaless 0.63.2: the group's link can close on its own.
2215
2234
  `**Not booked yet** - ${LINK_CLOSED_WORDS}.`
@@ -3128,6 +3147,20 @@ noCards) => {
3128
3147
  : `- ${type.name}${roomFactsWords(cheapest)} — ${n} rates from ${fromWords(cheapest)}${forRooms(cheapest)}. Cheapest: "${cheapest.name}"${labelWords(cheapest)}, ${cancelWords(cheapest)}.${also.length ? ` ${also.join('; ')}.` : ''}`;
3129
3148
  });
3130
3149
  };
3150
+ /**
3151
+ * ⚠️ A ROOM'S BOOKING LINK ON THE GROUP'S OWN SITE (0.67.1, robin 11-12): said once a
3152
+ * room type, where one of its rates has one (`Room.bookingUrl`, already checked against
3153
+ * the deployment's `bookingUrlHosts`). Nothing where none has - so a deployment without
3154
+ * them says nothing new.
3155
+ */
3156
+ const siteBookingLines = (rooms, group) => byRoomType(rooms).flatMap((type) => {
3157
+ const url = type.rooms.find((r) => r.bookingUrl)?.bookingUrl;
3158
+ if (!url)
3159
+ return [];
3160
+ return [
3161
+ `${type.name}: Also bookable on ${group}'s own site (${new URL(url).hostname}), not through here: ${url}`,
3162
+ ];
3163
+ });
3131
3164
  /** How many room types a client that draws no card shows the guest at once - see `roomChoiceRows`. */
3132
3165
  export const ROOM_CHOICES_SHOWN = 5;
3133
3166
  /** The labels that say what a rate has for breakfast - its column of a choice, not a label after it. */
@@ -3383,6 +3416,7 @@ readOnly = false) => {
3383
3416
  ...(noCards
3384
3417
  ? roomChoicesOf(rs, roomsWanted, saidWhen ?? when, before, group, readOnly)
3385
3418
  : roomTypeLines(rs, roomsWanted, terms)),
3419
+ ...siteBookingLines(rs, group || 'the hotel group'),
3386
3420
  ...(byRoomType(rs).some((t) => t.rooms.length > 1)
3387
3421
  ? [
3388
3422
  noCards
@@ -3486,6 +3520,14 @@ const notSentStatus = (deps, b) => {
3486
3520
  ? `not sent to ${h.name} - nobody confirms it, and no room is held`
3487
3521
  : undefined;
3488
3522
  };
3523
+ /**
3524
+ * ⚠️ A BOOKING WITH A PERSON FOR HOURS (Otaless 0.67.0, 总线程's review of 0.66.0, 6): once
3525
+ * the guest has been told it is still with a person, it no longer holds the stay back
3526
+ * (`Booking.rebookable`) - and it may already stand at the group. So "cannot be booked
3527
+ * again" is no longer true of it; say what is: check with the group first, and booking
3528
+ * again makes a NEW order.
3529
+ */
3530
+ const rebookableWords = (group) => `the earlier order may already exist at ${group}: the guest should check with ${group} first - booking this stay again makes a new order`;
3489
3531
  /**
3490
3532
  * An `unconfirmed` booking said for what it is (Otaless 0.63.2): a person is
3491
3533
  * checking a payment that was not the amount asked, or the group never said
@@ -3496,15 +3538,19 @@ const unconfirmedSaid = (deps, b) => {
3496
3538
  return undefined;
3497
3539
  const group = holderOf(deps, b.supplier).name;
3498
3540
  if (b.needsPerson === 'paid-amount')
3499
- return `unconfirmed: ${group} says it was paid, but not at the amount asked - a person is checking the payment. No payment link is given, and this stay cannot be booked again until it is settled.`;
3541
+ return `unconfirmed: ${group} says it was paid, but not at the amount asked - a person is checking the payment. No payment link is given, and ${b.rebookable ? rebookableWords(group) : 'this stay cannot be booked again until it is settled'}.`;
3500
3542
  // 0.66.0: an order the group made that was not the one asked for, and cancelling it
3501
3543
  // at once did not go through. It may still stand at the group: never paid.
3502
3544
  if (b.needsPerson === 'release')
3503
- return `unconfirmed: ${group} made an order that is not the one the guest was shown, and cancelling it did not go through - a person is looking at it. Do not pay it: no payment link is given, and this stay cannot be booked again until it is settled.`;
3545
+ return `unconfirmed: ${group} made an order that is not the one the guest was shown, and cancelling it did not go through - a person is looking at it. Do not pay it: no payment link is given, and ${b.rebookable ? rebookableWords(group) : 'this stay cannot be booked again until it is settled'}.`;
3504
3546
  if (b.unverifiable)
3505
3547
  return `unconfirmed: ${group} never confirmed whether it was made, and it could not be found in its bookings - it may have been made. The guest should check with ${group} before booking it again; asked again, a new booking is made.`;
3506
3548
  return undefined;
3507
3549
  };
3550
+ /** An order held for new terms whose time to agree has gone by (it is not settled yet). */
3551
+ const termsOverdue = (deps, b) => (b.termsChanged === true || b.confirmAsked === true) &&
3552
+ !!b.termsUntil &&
3553
+ Date.parse(b.termsUntil) <= deps.trips.now();
3508
3554
  /**
3509
3555
  * The words for an order whose payment page is held back for the group's new
3510
3556
  * cancellation terms (Otaless 0.66.0; 总线程 11-11, D): only the facts - never "nothing
@@ -3512,19 +3558,51 @@ const unconfirmedSaid = (deps, b) => {
3512
3558
  */
3513
3559
  const termsHeldWords = (deps, b) => {
3514
3560
  const group = holderOf(deps, b.supplier).name;
3561
+ // 0.67.1 (questions #68): the group made the order and asks the guest to CONFIRM what it
3562
+ // sent - not new cancellation terms, not a closed link. Same shape: the facts only.
3563
+ if (b.confirmAsked) {
3564
+ if (termsOverdue(deps, b))
3565
+ return 'the time for the guest to confirm has passed, so the order is being cancelled; if it cannot be cancelled, a person takes it over. Do not pay it';
3566
+ const by = b.termsUntil ? (clockWords(b.termsUntil) ?? b.termsUntil) : undefined;
3567
+ return `waiting for the guest to confirm what ${group} asked to confirm: no payment page until they do${by ? `; not confirmed by ${by}, the order is cancelled` : ''}`;
3568
+ }
3569
+ // ⚠️ PAST ITS TIME AND NOT SETTLED YET (0.67.0, 总线程's review of 0.66.0, 1): "the order is
3570
+ // cancelled at <time>" of a time that has gone by promises what has not happened. The facts:
3571
+ // the time has passed, it is being cancelled, and if that does not go through a person takes over.
3572
+ if (termsOverdue(deps, b))
3573
+ return `the time for the guest to agree to ${group}'s new cancellation terms has passed, so the order is being cancelled; if it cannot be cancelled, a person takes it over. Do not pay it`;
3515
3574
  const until = b.termsUntil ? (clockWords(b.termsUntil) ?? b.termsUntil) : undefined;
3516
3575
  return `waiting for the guest to agree to ${group}'s new cancellation terms: ${group} answered the order with terms that are not the ones the guest saw before, so there is no payment page until the guest reads them and agrees${until ? `; not agreed by ${until}, the order is cancelled` : ''}`;
3517
3576
  };
3518
3577
  /** The words for a payment page that has closed on its own (Otaless 0.63.2). */
3519
3578
  const LINK_CLOSED_WORDS = 'the payment link is no longer open - look at the bookings again; nothing is paid until it is';
3579
+ /**
3580
+ * What is said of a booking made with no terms to agree to, or one the group may want
3581
+ * confirmed separately (0.67.1) - the facts, beside the price and the dates; '' for neither.
3582
+ */
3583
+ const noTermsWords = (deps, b) => b.noTermsGiven
3584
+ ? `${holderOf(deps, b.supplier).name} gave no cancellation terms for this room.`
3585
+ : '';
3586
+ const confirmUnseenWords = (deps, b) => {
3587
+ const g = holderOf(deps, b.supplier).name;
3588
+ return b.confirmUnseen
3589
+ ? `${g} may ask for this booking to be confirmed separately; what it would ask is not shown here.`
3590
+ : '';
3591
+ };
3592
+ const bookingNotes = (deps, b) => [noTermsWords(deps, b), confirmUnseenWords(deps, b)].filter(Boolean).join(' ');
3520
3593
  /** A booking for the card and the model's structure, with `notSentStatus` where there is one. */
3521
3594
  const listedForCard = (deps, b) => {
3522
3595
  const said = notSentStatus(deps, b) ?? unconfirmedSaid(deps, b);
3523
3596
  return {
3524
3597
  ...bookingForCard(b),
3598
+ // 0.67.1: no terms given / may need the group's own confirmation - the same words as the text.
3599
+ ...(b.noTermsGiven ? { noTermsSaid: noTermsWords(deps, b) } : {}),
3600
+ ...(b.confirmUnseen ? { confirmUnseenSaid: confirmUnseenWords(deps, b) } : {}),
3525
3601
  ...(said ? { statusSaid: said } : {}),
3526
3602
  // 0.66.0: its payment page held back for the group's new terms - said, for the model.
3527
- ...(b.termsChanged ? { termsHeldSaid: termsHeldWords(deps, b) } : {}),
3603
+ ...(b.termsChanged || b.confirmAsked ? { termsHeldSaid: termsHeldWords(deps, b) } : {}),
3604
+ // …and past its time: for the card, which has no clock of the deployment's (0.67.0).
3605
+ ...(termsOverdue(deps, b) ? { termsOverdue: true } : {}),
3528
3606
  };
3529
3607
  };
3530
3608
  /**
@@ -3663,26 +3741,48 @@ const termsAnswer = (deps, ctx, key, terms) => {
3663
3741
  const onPage = !!ctx.noCards || !ctx.drawsCards;
3664
3742
  const groupOf = (x) => withZh(x.groupName, x.groupNames, ctx.noCards);
3665
3743
  const namesOf = (xs) => [...new Set(xs.map(groupOf))];
3666
- const before = terms.filter((x) => !x.changed);
3744
+ // Terms the group asked for when the booking was sent (`askedByGroup`, 0.67.0, questions
3745
+ // #66): nothing is ordered, and the booking is sent once more when the guest has agreed.
3746
+ const asked = terms.filter((x) => x.askedByGroup === 'terms' && !x.changed);
3747
+ // …or to confirm the booking itself (`askedByGroup: 'confirm'`, questions #68).
3748
+ // 0.67.1: with the order's `bookingId` the order EXISTS and its payment page is held -
3749
+ // never "nothing has been ordered" of those.
3750
+ const confirmOrder = terms.filter((x) => x.askedByGroup === 'confirm' && !x.changed && !!x.bookingId);
3751
+ const confirm = terms.filter((x) => x.askedByGroup === 'confirm' && !x.changed && !x.bookingId);
3752
+ const before = terms.filter((x) => !x.changed && !x.askedByGroup);
3667
3753
  const changed = terms.filter((x) => x.changed);
3668
3754
  const where = onPage
3669
3755
  ? "on the one-time page linked below, which opens only in the browser signed in to the guest's account"
3670
- : 'on the card, with its Agree button';
3756
+ : `on the card, with its ${terms.every((x) => x.askedByGroup === 'confirm') ? 'Confirm' : 'Agree'} button`;
3671
3757
  // ⚠️ EVERY BOOKING STARTS WITH ITS TERMS (Otaless 0.66.0, 8 booking/create, docs/
3672
3758
  // otaless-hotels.md §15): nothing is ordered before the guest agrees - but terms the
3673
3759
  // group answered an ORDER with (`changed`, 总线程 11-11, D) come after it was made:
3674
3760
  // never "nothing is ordered" of those, and never "cancelling is free before paying".
3761
+ const confirmCodes = confirmOrder.map((x) => x.confirmationCode ?? x.bookingId).filter(Boolean);
3675
3762
  const codes = changed.map((x) => x.confirmationCode ?? x.bookingId).filter(Boolean);
3676
- const all = namesOf(terms);
3763
+ // ⚠️ "THE GROUP MAY HAVE TERMS OF ITS OWN" IS NOT SAID OF THESE (0.67.0): the group has
3764
+ // just asked for its own, and they are the ones below - the sentence would contradict it.
3765
+ const all = namesOf(terms.filter((x) => !x.askedByGroup));
3677
3766
  const termsSaid = [
3678
3767
  before.length
3679
3768
  ? `Not booked yet: before any booking is made, the guest reads its cancellation terms and agrees to them themselves, ${where}. Nothing is ordered until they do.`
3680
3769
  : '',
3770
+ confirmOrder.length
3771
+ ? `Not paid yet, and no payment page: ${listAnd(namesOf(confirmOrder))} made the order${confirmCodes.length ? ` (${confirmCodes.join(', ')})` : ''} and asks the guest to confirm what is below first. The guest confirms it themselves, ${where}; once they have, the payment page is given; if they have not confirmed by the time below, the order is cancelled.`
3772
+ : '',
3773
+ confirm.length
3774
+ ? `Not booked yet: ${listAnd(namesOf(confirm))} asked, when the booking was sent, for the guest to confirm it first - what it asks to confirm is below; nothing has been ordered. The guest confirms it themselves, ${where}; once they have, the booking is sent again.`
3775
+ : '',
3776
+ asked.length
3777
+ ? `Not booked yet: ${listAnd(namesOf(asked))} asked, when the booking was sent, for the guest to agree to ${asked.length > 1 ? 'terms of their own' : 'its own terms'} first, which are below - nothing has been ordered. The guest reads them and agrees to them themselves, ${where}; once they have, the booking is sent again.`
3778
+ : '',
3681
3779
  changed.length
3682
3780
  ? `Not paid yet, and no payment page: ${listAnd(namesOf(changed))} answered the order${codes.length ? ` (${codes.join(', ')})` : ''} with cancellation terms that are not the ones the guest saw before. The guest reads the new terms and decides, ${where}: if they agree, the payment page is given; if they have not agreed by the time below, the order is cancelled.`
3683
3781
  : '',
3684
3782
  // ⚠️ ALWAYS, UNTIL QUESTIONS #61 (3) IS ANSWERED (总线程 11-11, A).
3685
- `${listAnd(all)} may also have terms of ${all.length > 1 ? 'their' : 'its'} own when the booking is made, which are not shown here.`,
3783
+ all.length
3784
+ ? `${listAnd(all)} may also have terms of ${all.length > 1 ? 'their' : 'its'} own when the booking is made, which are not shown here.`
3785
+ : '',
3686
3786
  'You cannot agree for them, and do not ask them to say they agree in the chat.',
3687
3787
  ]
3688
3788
  .filter(Boolean)
@@ -3709,9 +3809,11 @@ const termsAnswer = (deps, ctx, key, terms) => {
3709
3809
  // Where the terms are from, and what is said beside them (0.66.0): none for the
3710
3810
  // room said in our words, the group's own at booking always, an order's changed.
3711
3811
  source: x.source ?? 'room',
3712
- more: true,
3812
+ // Not of terms the group has just asked for (0.67.0): they are its own terms.
3813
+ ...(x.askedByGroup ? { askedByGroup: x.askedByGroup } : { more: true }),
3713
3814
  ...(x.changed ? { changed: true } : {}),
3714
- ...(x.changed && (x.confirmationCode ?? x.bookingId)
3815
+ ...((x.changed || (x.askedByGroup === 'confirm' && x.bookingId)) &&
3816
+ (x.confirmationCode ?? x.bookingId)
3715
3817
  ? { confirmationCode: x.confirmationCode ?? x.bookingId }
3716
3818
  : {}),
3717
3819
  ...(link ? { link } : {}),
@@ -3722,19 +3824,28 @@ const termsAnswer = (deps, ctx, key, terms) => {
3722
3824
  });
3723
3825
  const blocks = entries.map(({ link, x }) => {
3724
3826
  const until = clockWords(x.until) ?? x.until;
3725
- const code = x.changed ? (x.confirmationCode ?? x.bookingId) : undefined;
3827
+ const heldOrder = x.askedByGroup === 'confirm' && !x.changed && !!x.bookingId;
3828
+ const code = x.changed || heldOrder ? (x.confirmationCode ?? x.bookingId) : undefined;
3726
3829
  return [
3727
3830
  `${withZh(x.hotelName, x.hotelNames, ctx.noCards)} · ${x.roomName} · ${stayWords(x.stay)} · ${x.rooms} ${x.rooms === 1 ? 'room' : 'rooms'} · ${formatMoney(x.total)} · ${x.groupName}${code ? ` · order ${code}` : ''}`,
3728
3831
  x.source === 'none' ? `${x.groupName} gave no cancellation terms for this room.` : '',
3729
3832
  x.changed
3730
3833
  ? `They can be agreed to until ${until}; not agreed by then, the order is cancelled.`
3731
- : `They can be agreed to until ${until}.`,
3834
+ : heldOrder
3835
+ ? `It can be confirmed until ${until}; not confirmed by then, the order is cancelled.`
3836
+ : x.askedByGroup === 'confirm'
3837
+ ? `It can be confirmed until ${until}.`
3838
+ : `They can be agreed to until ${until}.`,
3732
3839
  onPage
3733
3840
  ? link
3734
3841
  ? `Give the guest this one-time link to read the terms and agree on ${deps.vocab.brand}'s page - it opens only in the browser signed in to their ${deps.vocab.brand} account, works once, until ${clockWords(link.expiresAt) ?? link.expiresAt}: ${link.url}. When they say they are done, call ${t.listBookings} to see the booking and its payment page.`
3735
3842
  : x.changed
3736
3843
  ? 'These terms can only be agreed to on a client that shows the card.'
3737
- : 'These terms can only be agreed to on a client that shows the card; nothing was ordered.'
3844
+ : heldOrder
3845
+ ? 'This can only be confirmed on a client that shows the card.'
3846
+ : x.askedByGroup === 'confirm'
3847
+ ? 'This can only be confirmed on a client that shows the card; nothing was ordered.'
3848
+ : 'These terms can only be agreed to on a client that shows the card; nothing was ordered.'
3738
3849
  : '',
3739
3850
  ]
3740
3851
  .filter(Boolean)
@@ -3802,9 +3913,10 @@ const bookingLine = (deps, b, noCards) => {
3802
3913
  : b.payment.status === 'awaiting' &&
3803
3914
  b.payment.method === 'card' &&
3804
3915
  deps.backend.otalessBooking
3805
- ? ` · ${b.termsChanged ? termsHeldWords(deps, b) : LINK_CLOSED_WORDS}`
3916
+ ? ` · ${b.termsChanged || b.confirmAsked ? termsHeldWords(deps, b) : LINK_CLOSED_WORDS}`
3806
3917
  : ` · ${paymentWords(b)}`
3807
3918
  : '',
3919
+ bookingNotes(deps, b) ? ` · ${bookingNotes(deps, b)}` : '',
3808
3920
  ].join('');
3809
3921
  };
3810
3922
  /**
@@ -3939,7 +4051,7 @@ const soldOutTypesOf = (detail, enough, wanted) => {
3939
4051
  const identity = (deps, ctx, key, args = {}) => {
3940
4052
  const email = str(args.email);
3941
4053
  const member = deps.members.read(key);
3942
- const own = tripKey(ctx.session, deps.vocab.brand);
4054
+ const own = ctx.conversation ?? tripKey(ctx.session, deps.vocab.brand);
3943
4055
  return {
3944
4056
  // ⚠️ THE CALLER'S OWN SESSION, NEVER THE TRIP IT NAMED. This was the trip
3945
4057
  // key, so that the card - on a connection of its own - could cancel what
@@ -4059,11 +4171,29 @@ card = !noCards) => {
4059
4171
  const down = answer.degraded ?? [];
4060
4172
  if (down.length === 0)
4061
4173
  return { structured: {}, said: '' };
4062
- const one = down.length === 1;
4063
- const said = `${listAnd(down.map((d) => withZh(d.name, d.names, noCards)))} did not answer in time, so none of ${one ? 'its' : 'their'} ${noun} is in this list - this does not mean ${one ? 'it has' : 'they have'} none here. ${askLater(card)}`;
4174
+ // ⚠️ A GROUP NOT LOOKED UP IS NOT A GROUP THAT DID NOT ANSWER (0.67.0, 总线程
4175
+ // 11-11): Accor is found only with a country or a city named. Said as that,
4176
+ // beside - not instead of - the groups that really were silent.
4177
+ const silent = down.filter((d) => d.why !== 'needs-place');
4178
+ const unplaced = down.filter((d) => d.why === 'needs-place');
4179
+ const saidOf = (list) => listAnd(list.map((d) => withZh(d.name, d.names, noCards)));
4180
+ const parts = [];
4181
+ if (silent.length) {
4182
+ const one = silent.length === 1;
4183
+ parts.push(`${saidOf(silent)} did not answer in time, so none of ${one ? 'its' : 'their'} ${noun} is in this list - this does not mean ${one ? 'it has' : 'they have'} none here. ${askLater(card)}`);
4184
+ }
4185
+ if (unplaced.length) {
4186
+ const one = unplaced.length === 1;
4187
+ parts.push(`${saidOf(unplaced)} ${one ? 'is' : 'are'} looked up only once a country or a city is named - name one to see ${one ? 'its' : 'their'} ${noun}.`);
4188
+ }
4189
+ const said = parts.join(' ');
4064
4190
  return {
4065
4191
  structured: {
4066
- degraded: down.map((d) => ({ supplier: d.supplier, name: d.name })),
4192
+ degraded: down.map((d) => ({
4193
+ supplier: d.supplier,
4194
+ name: d.name,
4195
+ ...(d.why ? { why: d.why } : {}),
4196
+ })),
4067
4197
  degradedSaid: said,
4068
4198
  },
4069
4199
  said,
@@ -4328,6 +4458,19 @@ const needsRoomIn = (t, lines, parts) => {
4328
4458
  .join('\n'),
4329
4459
  };
4330
4460
  };
4461
+ /**
4462
+ * The sentence that asks the guest for what a booking takes - or, for a guest
4463
+ * signed in to an account that has their details (0.67.0), says those are used:
4464
+ * the model asks for nothing it would only be told back (masked).
4465
+ */
4466
+ const detailsAsked = (deps, key, rooms) => {
4467
+ const asked = `ask for their own ${guestDetailsFor(deps, rooms)} if they have not typed them in this conversation.`;
4468
+ const p = deps.guestProfile?.(key)?.shown;
4469
+ if (!p?.email)
4470
+ return asked;
4471
+ const has = [p.name ? 'name' : '', `email (${p.email})`, p.phone ? 'phone' : ''].filter(Boolean);
4472
+ return `say that the booking uses the ${listAnd(has)} on their ${deps.vocab.brand} account - do not ask for ${has.length > 1 ? 'them' : 'it'}; pass name, email or phone to ${deps.tools.requestBooking} only for ones the guest gives instead${p.name ? '' : ', and ask for their full name if they have not typed it in this conversation'}.`;
4473
+ };
4331
4474
  /**
4332
4475
  * What a booking of these stays takes of the guest, in the words of the
4333
4476
  * sentence that asks for it: "name and email", and a phone number where a group
@@ -4401,7 +4544,7 @@ const currentTrip = async (deps, key, who, store = key, coupon, ctx) => {
4401
4544
  const nextStep = ctx?.noCards && parts.some((p) => p.lines.some((l) => l.kind === 'room'))
4402
4545
  ? (deps.backend.capabilities ?? FULL_CAPABILITIES).readOnly
4403
4546
  ? readOnlyWords(deps.vocab)
4404
- : `Nothing in the trip is booked yet. Before booking, say it back to the guest once, in one message: each ${deps.vocab.noun}, its nights with their weekdays, the room, the guests, the total and the cancellation terms, as this answer gives them - and ask them to reply "confirm" (确认) to book it, or to say what to change. In the same message, ask for their own ${guestDetailsFor(deps, lines.filter((l) => l.kind === 'room'))} if they have not typed them in this conversation. Call ${deps.tools.requestBooking} only after that yes - unless the guest's own message just now named all of it (the ${deps.vocab.noun}, the room, the nights as dates) and asked for it to be booked, which is the yes. A guest changing the room or the nights is not adding a stay: take the old line out (its rooms to 0).`
4547
+ : `Nothing in the trip is booked yet. Before booking, say it back to the guest once, in one message: each ${deps.vocab.noun}, its nights with their weekdays, the room, the guests, the total and the cancellation terms, as this answer gives them - and ask them to reply "confirm" (确认) to book it, or to say what to change. In the same message, ${detailsAsked(deps, key, lines.filter((l) => l.kind === 'room'))} Call ${deps.tools.requestBooking} only after that yes - unless the guest's own message just now named all of it (the ${deps.vocab.noun}, the room, the nights as dates) and asked for it to be booked, which is the yes. A guest changing the room or the nights is not adding a stay: take the old line out (its rooms to 0).`
4405
4548
  : '';
4406
4549
  if (parts.length === 1 && only) {
4407
4550
  return {
@@ -5916,6 +6059,7 @@ const bookingAnswer = async (deps, t, ctx, key, store, args, inTrip, lines, show
5916
6059
  `**${confirming(deps, booking) ? 'Being confirmed' : booking.confirmationCode}** · ${withZh(booking.hotelName, booking.hotelNames, ctx.noCards)} · ${stayWords(booking.stay, booking.hourly)}`,
5917
6060
  ctx.noCards ? heldRoomsWords(booking) : '',
5918
6061
  bookedLine(deps, booking),
6062
+ bookingNotes(deps, booking),
5919
6063
  ...asked,
5920
6064
  ]),
5921
6065
  ...failedText,
@@ -5947,6 +6091,52 @@ const bookingAnswer = async (deps, t, ctx, key, store, args, inTrip, lines, show
5947
6091
  * member rate and under the same limits, and the trip is never read or emptied.
5948
6092
  * `nothingThere` is what is said when the slot is empty.
5949
6093
  */
6094
+ /**
6095
+ * A booking's name, email and phone, with what the guest left empty taken from
6096
+ * their signed-in account (0.67.0, `ToolDeps.guestProfile`). What they typed
6097
+ * stands; a field that is empty - or masked, as the account's is shown (a model
6098
+ * passing back 「l•••@e•••.com」) - is the account's. `used` names what was taken,
6099
+ * and `shown` says it masked, for the answer.
6100
+ */
6101
+ const withProfile = (deps, key, args) => {
6102
+ const p = deps.guestProfile?.(key);
6103
+ if (!p)
6104
+ return { args, used: [] };
6105
+ const blank = (v) => {
6106
+ const t = str(v).trim();
6107
+ return !t || t.includes('•');
6108
+ };
6109
+ const out = { ...args };
6110
+ const used = [];
6111
+ for (const k of ['name', 'email', 'phone']) {
6112
+ const v = p.whole[k];
6113
+ if (v && blank(args[k])) {
6114
+ out[k] = v;
6115
+ used.push(k);
6116
+ }
6117
+ }
6118
+ return {
6119
+ args: out,
6120
+ used,
6121
+ shown: used.includes('email') && p.shown.email ? { email: p.shown.email } : {},
6122
+ };
6123
+ };
6124
+ /** The answer to a booking, saying what of the account it used (masked) - see `withProfile`. */
6125
+ const saidProfile = (deps, answer, filled) => {
6126
+ if (!filled.used.length)
6127
+ return answer;
6128
+ const parts = [
6129
+ filled.used.includes('name') ? 'name' : '',
6130
+ filled.shown?.email ? `email ${filled.shown.email}` : '',
6131
+ filled.used.includes('phone') ? 'phone' : '',
6132
+ ].filter(Boolean);
6133
+ const words = `For what the guest did not give, this booking uses their ${deps.vocab.brand} account's ${listAnd(parts)}.`;
6134
+ return {
6135
+ ...answer,
6136
+ structured: { ...answer.structured, fromAccount: { used: filled.used, ...filled.shown } },
6137
+ text: `${answer.text}\n\n${words}`,
6138
+ };
6139
+ };
5950
6140
  const bookTripLines = async (deps, t, ctx, key, store, args, nothingThere) => {
5951
6141
  const inTrip = deps.trips.read(store);
5952
6142
  if (inTrip.length === 0) {
@@ -7188,6 +7378,7 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
7188
7378
  ...(ctx.noCards
7189
7379
  ? roomTypeLines(rooms, roomsWanted, undefined, true)
7190
7380
  : 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'}`)),
7381
+ ...siteBookingLines(rooms, groupNameOf(deps, h.id)),
7191
7382
  ].join('\n')
7192
7383
  : (detail.noRooms ?? `No room type here has ${roomsWanted} left for those nights.`),
7193
7384
  extras.length
@@ -7384,17 +7575,20 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
7384
7575
  };
7385
7576
  }
7386
7577
  if (name === t.requestBooking) {
7387
- return bookTripLines(deps, t, ctx, key, key, args, `There is nothing in the trip yet. ${t.addToTrip} puts room nights in it.`);
7578
+ const filled = withProfile(deps, key, args);
7579
+ return saidProfile(deps, await bookTripLines(deps, t, ctx, key, key, filled.args, `There is nothing in the trip yet. ${t.addToTrip} puts room nights in it.`), filled);
7388
7580
  }
7389
7581
  // The card's own: the room the guest picked with Reserve, booked exactly as
7390
7582
  // a trip is - and the trip left as it is.
7391
7583
  if (name === t.bookPicked) {
7392
- const changed = pickChanged(deps, key, args);
7584
+ // What the guest left empty on the card's form, from their account (0.67.0).
7585
+ const filled = withProfile(deps, key, args);
7586
+ const changed = pickChanged(deps, key, filled.args);
7393
7587
  if (changed) {
7394
7588
  const emptied = !deps.trips.read(pickedKey(key)).some((l) => l.kind === 'room');
7395
- return direct((emptied && (await bookedFromThisForm(deps, ctx, key, args))) || changed);
7589
+ return direct((emptied && (await bookedFromThisForm(deps, ctx, key, filled.args))) || changed);
7396
7590
  }
7397
- return direct(await bookTripLines(deps, t, ctx, key, pickedKey(key), args, 'Nothing is picked: the guest presses Reserve on a room first.'));
7591
+ return direct(saidProfile(deps, await bookTripLines(deps, t, ctx, key, pickedKey(key), filled.args, 'Nothing is picked: the guest presses Reserve on a room first.'), filled));
7398
7592
  }
7399
7593
  // The card's own: the guest pressed "Agree and continue" under a group's
7400
7594
  // booking terms. ⚠️ THE ONLY AGREEMENT THERE IS: no tool the model sees has a
@@ -8385,7 +8579,7 @@ const answerTool = async (deps, name, rawArgs, ctx) => {
8385
8579
  shortCode: made.short,
8386
8580
  ...said,
8387
8581
  },
8388
- text: `A one-time ${deps.vocab.brand} member sign-in page is ready: ${made.url} - the guest opens it in their browser and types their membership number and the surname on it there. ${MEMBER_NEVER_IN_CHAT} The page shows the code ${made.short}: tell the guest it must match the code you give them here, and to close the page if it does not. The link works once, for ${made.minutes} minutes. When they say they are done, call ${t.signIn} again: it then answers with their tier and member rate.`,
8582
+ text: `A one-time ${deps.vocab.brand} member sign-in page is ready: ${made.url} - the guest opens it in their browser and types their membership number and the surname on it there. ${MEMBER_NEVER_IN_CHAT} The page shows the code ${made.short}: tell the guest it must match the code you give them here, and to close the page if it does not. The link works once, for ${made.minutes} minutes. When they say they are done, call ${t.signIn} again${withTrip(ctx.tripInWords)}: it then answers with their tier and member rate.`,
8389
8583
  };
8390
8584
  // ⚠️ THE LINK AND THE CODE ARE THE CARD'S (as the account's, Nexva's review
8391
8585
  // P1-1): where a card is drawn the model is never handed the short code, so