@curless/hotel-storefront 0.74.5 → 0.75.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.
Files changed (42) hide show
  1. package/dist/account/index.d.ts +1 -1
  2. package/dist/account/index.d.ts.map +1 -1
  3. package/dist/account/index.js +53 -20
  4. package/dist/account/index.js.map +1 -1
  5. package/dist/card.generated.d.ts +1 -1
  6. package/dist/card.generated.js +2 -2
  7. package/dist/card.generated.js.map +1 -1
  8. package/dist/config.d.ts +11 -0
  9. package/dist/config.d.ts.map +1 -1
  10. package/dist/config.js.map +1 -1
  11. package/dist/legal.d.ts +3 -17
  12. package/dist/legal.d.ts.map +1 -1
  13. package/dist/legal.js +88 -4
  14. package/dist/legal.js.map +1 -1
  15. package/dist/otaless/backend.d.ts +2 -0
  16. package/dist/otaless/backend.d.ts.map +1 -1
  17. package/dist/otaless/backend.js +56 -3
  18. package/dist/otaless/backend.js.map +1 -1
  19. package/dist/otaless/booking.d.ts +1 -1
  20. package/dist/otaless/booking.d.ts.map +1 -1
  21. package/dist/otaless/booking.js +20 -7
  22. package/dist/otaless/booking.js.map +1 -1
  23. package/dist/otaless/client.d.ts +7 -0
  24. package/dist/otaless/client.d.ts.map +1 -1
  25. package/dist/otaless/client.js +16 -1
  26. package/dist/otaless/client.js.map +1 -1
  27. package/dist/otaless/make.d.ts.map +1 -1
  28. package/dist/otaless/make.js +17 -0
  29. package/dist/otaless/make.js.map +1 -1
  30. package/dist/server.d.ts +2 -2
  31. package/dist/server.d.ts.map +1 -1
  32. package/dist/server.js +7 -3
  33. package/dist/server.js.map +1 -1
  34. package/dist/surface.js +1 -1
  35. package/dist/surface.js.map +1 -1
  36. package/dist/tools.d.ts +12 -4
  37. package/dist/tools.d.ts.map +1 -1
  38. package/dist/tools.js +139 -45
  39. package/dist/tools.js.map +1 -1
  40. package/dist/types.d.ts +14 -0
  41. package/dist/types.d.ts.map +1 -1
  42. package/package.json +1 -1
@@ -163,7 +163,7 @@ export type Account = {
163
163
  * group's for this account, so it is remembered as linked (`inferLink`) - or its "link again"
164
164
  * flag goes.
165
165
  */
166
- booked: (key: string, group: string) => void;
166
+ booked: (key: string, group: string, token: string) => void;
167
167
  /**
168
168
  * The backend refused the account's own token (401, 0.74.1): the conversation is signed out
169
169
  * HERE - nothing sent to the backend with a token it refuses; remembered links stay.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/account/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAI1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAoC7C,OAAO,EAEL,KAAK,IAAI,EAMV,MAAM,eAAe,CAAC;AA4EvB;;;GAGG;AACH,eAAO,MAAM,yBAAyB,WAAW,CAAC;AAgBlD,eAAO,MAAM,mBAAmB,GAAI,GAAG,OAAO,KAAG,OAI3B,CAAC;AAKvB,MAAM,MAAM,aAAa,GAAG;IAC1B,iFAAiF;IACjF,MAAM,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,uBAAuB,EAAE,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxB,0DAA0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"}
@@ -497,6 +497,9 @@ export const makeAccount = (opts) => {
497
497
  ...(r.source === 'inferred-from-booking'
498
498
  ? { source: 'inferred-from-booking' }
499
499
  : {}),
500
+ ...(typeof r.unlinkedAt === 'number' && Number.isFinite(r.unlinkedAt)
501
+ ? { unlinkedAt: r.unlinkedAt }
502
+ : {}),
500
503
  });
501
504
  }
502
505
  const at = a.at;
@@ -560,6 +563,9 @@ export const makeAccount = (opts) => {
560
563
  if (!linking || !memberships.some((m) => m.code === code))
561
564
  return false;
562
565
  const had = rememberedOf(s, code);
566
+ // ⚠️ UNLINKED BY THE GUEST, IT STAYS SO (0.74.6, P3-1): its record carries `unlinkedAt` and
567
+ // never `relink` (`flagRelink`), so it is left as it is here - only the guest's own new link
568
+ // (`remember`) makes it linked again.
563
569
  if (had) {
564
570
  if (!had.relink)
565
571
  return false;
@@ -576,21 +582,24 @@ export const makeAccount = (opts) => {
576
582
  opts.linksFile?.changed();
577
583
  return true;
578
584
  };
579
- /** Unlinked: the account's record of this group is deleted. Says whether there was one. */
585
+ /**
586
+ * Unlinked: the account's record of this group is left as "unlinked by the guest" alone - its
587
+ * label, number and flags go (0.74.6, P3-1: so an order there afterwards does not mark it
588
+ * linked again). Says whether it was linked (a record not already unlinked).
589
+ */
580
590
  const forgetRemembered = (s, code) => {
581
- const id = accountIdOf(s);
582
- const a = remembered.get(id);
583
- if (!a?.groups.delete(code))
591
+ const a = remembered.get(accountIdOf(s));
592
+ const r = a?.groups.get(code);
593
+ if (!a || !r || r.unlinkedAt)
584
594
  return false;
585
- if (!a.groups.size)
586
- remembered.delete(id);
595
+ a.groups.set(code, { linkedAt: r.linkedAt, unlinkedAt: now() });
587
596
  opts.linksFile?.changed();
588
597
  return true;
589
598
  };
590
599
  /** The group's session is over: the record stays, flagged - the guest links again. */
591
600
  const flagRelink = (s, code) => {
592
601
  const r = rememberedOf(s, code);
593
- if (!r)
602
+ if (!r || r.unlinkedAt)
594
603
  return false;
595
604
  if (!r.relink) {
596
605
  r.relink = true;
@@ -633,9 +642,23 @@ export const makeAccount = (opts) => {
633
642
  })
634
643
  .catch((e) => log(`[account] a membership's sign-out did not answer (${codeOf(e)})`));
635
644
  };
636
- /** ⚠️ THE ONE THING THAT DELETES A REMEMBERED LINK (with a link replaced by a new one). */
645
+ /**
646
+ * ⚠️ THE ONE THING THAT ENDS A REMEMBERED LINK (with a link replaced by a new one).
647
+ *
648
+ * ⚠️ AT THE BACKEND TOO, WITH NO LIVE LINK HERE (0.74.6, 总线程's review of 0.74.5, P3-1): a link
649
+ * remembered from another conversation, or inferred from an order (`inferLink`), has no
650
+ * session of ours to end - the group's session at the backend went on, the next order went
651
+ * through and was taken as linked again: the guest's Unlink undone in silence. So the group's
652
+ * channel is signed out with the account's token (its providerCode, no session) - never the
653
+ * account's own channel - and the record says the guest unlinked it.
654
+ */
637
655
  const unlink = (s, code) => {
638
656
  const live = dropLink(s, code) !== null;
657
+ const had = rememberedOf(s, code);
658
+ if (!live && had && !had.unlinkedAt && s.platform.provider !== code)
659
+ ota
660
+ .signOut({ group: code, auth: s.platform.access })
661
+ .catch((e) => log(`[account] a membership's sign-out did not answer (${codeOf(e)})`));
639
662
  return forgetRemembered(s, code) || live;
640
663
  };
641
664
  /** "ASR Member (AS82••36)" → "ASR Member": a label with its hidden number taken out. */
@@ -656,7 +679,9 @@ export const makeAccount = (opts) => {
656
679
  const live = s ? liveLink(s, m.code) : undefined;
657
680
  // A link remembered (0.74.0) is linked too, whichever conversation signed in - unless the
658
681
  // group's session ended (`relink`): then the card says to link it again.
659
- const mem = live ? undefined : rememberedOf(s, m.code);
682
+ const kept = live ? undefined : rememberedOf(s, m.code);
683
+ // Unlinked by the guest (0.74.6): as never linked.
684
+ const mem = kept?.unlinkedAt ? undefined : kept;
660
685
  const l = live ?? mem;
661
686
  const relink = mem?.relink === true;
662
687
  // The group's logo, for the card (0.61.0) - the hotel list's address; none, its initials.
@@ -853,7 +878,7 @@ export const makeAccount = (opts) => {
853
878
  const NO_PRICE = linking
854
879
  ? `Being signed in to ${brand} itself changes no price or room shown here; a hotel group's membership linked to the account (${names.link}) asks that group for its prices as the member.`
855
880
  : `Being signed in changes no price or room shown here: ${brand} has no member rate here yet.`;
856
- const NEVER_IN_CHAT = 'never in this chat: do not ask for, or accept, a password, an email or a phone number here, and never write back one the guest typed - not even to say which to change';
881
+ const NEVER_IN_CHAT = 'never in this chat: do not ask for, or accept, a password here, nor the email or phone number to sign in with, and never write back one the guest typed, whole or in part - not even to say which to change or not to use again: it is "the password you typed"';
857
882
  const minutes = Math.round(requests.ttlMs / 60_000);
858
883
  const accountUrl = `${publicUrl}/account`;
859
884
  // ⚠️ THE NAME THE ACCOUNT GOES BY: ITS NICKNAME, ELSE ITS USER NAME (0.61.0,
@@ -1260,7 +1285,10 @@ export const makeAccount = (opts) => {
1260
1285
  name: names.view,
1261
1286
  // ⚠️ ONLY WHEN ASKED (robin 11-06, claude.ai): the assistant called it on its
1262
1287
  // own 40 ms after a list, and ended its list with "I can't see your sign-in".
1263
- description: `Whether the guest is signed in to their ${brand} account in this conversation, and the name the account goes by (its nickname where it has one) - only when the guest asks about their account or whether they are signed in; never on your own, and not alongside a search. Its contact details are not given: they are on ${brand}'s account page.`,
1288
+ // That rule is the SERVER INSTRUCTIONS' (`instructions` below, both versions), not this
1289
+ // description's (0.75.0, T1: OpenAI - a description says what a tool does, not how the
1290
+ // model should use it).
1291
+ description: `Whether the guest is signed in to their ${brand} account in this conversation, and the name the account goes by (its nickname where it has one). Its contact details are not given: they are on ${brand}'s account page.`,
1264
1292
  annotations: {
1265
1293
  title: `My ${brand} account`,
1266
1294
  readOnlyHint: true,
@@ -1288,11 +1316,12 @@ export const makeAccount = (opts) => {
1288
1316
  name: names.link,
1289
1317
  // ⚠️ NOTHING ABOUT THE GUEST IS ASKED FOR HERE - the group's email and
1290
1318
  // password are typed on our page, never in the chat.
1291
- description: `Links one hotel group's loyalty membership to the guest's ${brand} account - or joins that group and links the new membership, or unlinks it - on ${brand}'s own web page: answers with a one-time link, which opens in the browser the guest signed in to ${brand} with. Needs the guest signed in to ${brand}. Takes no personal details. Groups: ${memberships.map((m) => `\`${m.code}\` (${groupName(m)})`).join(', ')}.`,
1319
+ description: `Links one hotel group's loyalty membership to the guest's ${brand} account - or joins that group and links the new membership - on ${brand}'s own web page: answers with a one-time link, which opens in the browser the guest signed in to ${brand} with - or unlinks it at once (mode unlink), with no page: the link is removed and that group's session ends. Needs the guest signed in to ${brand}. Takes no personal details. Groups: ${memberships.map((m) => `\`${m.code}\` (${groupName(m)})`).join(', ')}.`,
1292
1320
  annotations: {
1293
1321
  title: 'Link a hotel membership',
1294
1322
  readOnlyHint: false,
1295
- destructiveHint: false,
1323
+ // `mode: unlink` undoes the link at once (0.75.0, T4).
1324
+ destructiveHint: true,
1296
1325
  idempotentHint: false,
1297
1326
  openWorldHint: true,
1298
1327
  },
@@ -1307,7 +1336,7 @@ export const makeAccount = (opts) => {
1307
1336
  mode: {
1308
1337
  type: 'string',
1309
1338
  enum: ['sign_in', 'join', 'unlink'],
1310
- description: 'sign_in: link a membership the guest has (the default); join: make one and link it; unlink: undo a link',
1339
+ description: 'sign_in: link a membership the guest has (the default); join: make one and link it; unlink: remove the link at once',
1311
1340
  },
1312
1341
  lang: {
1313
1342
  type: 'string',
@@ -1323,11 +1352,12 @@ export const makeAccount = (opts) => {
1323
1352
  {
1324
1353
  name: names.card,
1325
1354
  // The card's own (app-only, server.ts): never offered to the assistant.
1326
- description: `The booking card's own way to sign in to the ${brand} account, see who is signed in, or sign out - for the conversation the card was drawn for. The assistant uses ${names.signIn}, ${names.view} and ${names.signOut}.`,
1355
+ description: `The booking card's own way to sign in to the ${brand} account, see who is signed in, or sign out - for the conversation the card was drawn for. The same steps as ${names.signIn}, ${linking ? `${names.view}, ${names.signOut} and ${names.link}` : `${names.view} and ${names.signOut}`}, called by the card itself.`,
1327
1356
  annotations: {
1328
1357
  title: `${brand} account (card)`,
1329
1358
  readOnlyHint: false,
1330
- destructiveHint: false,
1359
+ // `sign_out` and `unlink` end a sign-in or a link at once (0.75.0, T4).
1360
+ destructiveHint: true,
1331
1361
  idempotentHint: false,
1332
1362
  openWorldHint: true,
1333
1363
  },
@@ -1438,8 +1468,8 @@ export const makeAccount = (opts) => {
1438
1468
  ? ` HOTEL MEMBERSHIPS: a guest signed in to ${brand} can link a hotel group's loyalty membership to the account - ${memberships.map(groupName).join(', ')} - and that group's prices here are then asked for as the member. ${names.link} gives a one-time page for it (or joins the group, or unlinks); the group's email and password are typed on that page, never in the chat - never ask for or accept them here, and never write one back. Say a price is a member rate only where the answer says so.`
1439
1469
  : '';
1440
1470
  const instructions = (noCards) => (noCards
1441
- ? `${brand} ACCOUNT: a guest who wants to sign in to their ${brand} account, or create one, is given a one-time page by ${names.signIn}: pass on its link and its code exactly, and say they sign in or create the account on that page. Never ask for, or accept, a password, an email or a phone number in the chat; if the guest types one, never write it back - not even to say which one to change: call it \"the password you typed\" - and tell them to use the page and, as it went into a chat, to choose another. When they say they are done, ${names.view} - with the conversation's trip, as every call - shows who is signed in; use it only when they ask, never on your own; ${names.signOut} signs them out.${linking ? '' : ' Being signed in changes no price here: say nothing of member rates.'}`
1442
- : `${brand} ACCOUNT: the card's Sign in opens ${brand}'s own page, where the guest signs in or creates an account; ${names.signIn} does the same when they ask in words. The card tells you when the guest signs in or out on it - take its word, and do not look again to check. Look at the account (${names.view}) only when the guest asks about it - never on your own, and never beside a list of hotels. Never ask for, or accept, a password, an email or a phone number in the chat; if the guest types one, never write it back - not even to say which one to change: call it \"the password you typed\" - and tell them to use the page and, as it went into a chat, to choose another. ${names.signOut} signs them out.${linking ? '' : ' Being signed in changes no price here: say nothing of member rates.'}`) +
1471
+ ? `${brand} ACCOUNT: a guest who wants to sign in to their ${brand} account, or create one, is given a one-time page by ${names.signIn}: pass on its link and its code exactly, and say they sign in or create the account on that page. Never ask for, or accept, a password in the chat, nor the email or phone number to sign in or link a membership with; if the guest types one of them, never write it back, whole or in part - not even to say which one to change or not to use again: call it \"the password you typed\" - and tell them to use the page and, as it went into a chat, to choose another, without naming the old one. The name, email and phone number a booking asks for are the booking's own details, not the account's: ask for them in the chat, as that booking tool needs them. When they say they are done, ${names.view} - with the conversation's trip, as every call - shows who is signed in; use it only when they ask, never on your own and never beside a list of hotels or a search; ${names.signOut} signs them out.${linking ? '' : ' Being signed in changes no price here: say nothing of member rates.'}`
1472
+ : `${brand} ACCOUNT: the card's Sign in opens ${brand}'s own page, where the guest signs in or creates an account; ${names.signIn} does the same when they ask in words. The card tells you when the guest signs in or out on it - take its word, and do not look again to check. Look at the account (${names.view}) only when the guest asks about it - never on your own, and never beside a list of hotels. Never ask for, or accept, a password in the chat, nor the email or phone number to sign in or link a membership with; if the guest types one of them, never write it back, whole or in part - not even to say which one to change or not to use again: call it \"the password you typed\" - and tell them to use the page and, as it went into a chat, to choose another, without naming the old one. The name, email and phone number a booking asks for are the booking's own details, not the account's: the guest fills them in on the card's booking form. ${names.signOut} signs them out.${linking ? '' : ' Being signed in changes no price here: say nothing of member rates.'}`) +
1443
1473
  LINK_SAID;
1444
1474
  // ── The pages ────────────────────────────────────────────────────────────
1445
1475
  const send = (c, status, html) => c.html(html, status, PAGE_HEADERS);
@@ -2748,9 +2778,12 @@ export const makeAccount = (opts) => {
2748
2778
  s.platform.mcpSessionId = undefined;
2749
2779
  }
2750
2780
  },
2751
- booked: (key, group) => {
2781
+ booked: (key, group, token) => {
2752
2782
  const s = store.get(key);
2753
- if (!s)
2783
+ // ⚠️ THE ACCOUNT THAT BOOKED IT (0.74.6, 总线程's review of 0.74.5, P3-4): signed in as
2784
+ // another account while the order was out, the conversation's account now is not the one
2785
+ // whose session made it - nothing is marked.
2786
+ if (!s || !token || s.platform.access !== token)
2754
2787
  return;
2755
2788
  const code = group.trim().toLowerCase();
2756
2789
  if (inferLink(s, code))