@curless/hotel-storefront 0.74.6 → 0.75.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.
- package/dist/account/index.d.ts +12 -3
- package/dist/account/index.d.ts.map +1 -1
- package/dist/account/index.js +52 -10
- package/dist/account/index.js.map +1 -1
- package/dist/account/member-login.d.ts +6 -1
- package/dist/account/member-login.d.ts.map +1 -1
- package/dist/account/member-login.js +1 -1
- package/dist/account/member-login.js.map +1 -1
- package/dist/backend.d.ts +21 -1
- package/dist/backend.d.ts.map +1 -1
- package/dist/backend.js.map +1 -1
- 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/choices.d.ts +16 -17
- package/dist/choices.d.ts.map +1 -1
- package/dist/choices.js +18 -43
- package/dist/choices.js.map +1 -1
- package/dist/huazhu/backend.d.ts +16 -1
- package/dist/huazhu/backend.d.ts.map +1 -1
- package/dist/huazhu/backend.js +39 -4
- package/dist/huazhu/backend.js.map +1 -1
- package/dist/huazhu/catalog.d.ts.map +1 -1
- package/dist/huazhu/catalog.js +20 -0
- package/dist/huazhu/catalog.js.map +1 -1
- package/dist/huazhu/english.d.ts +12 -1
- package/dist/huazhu/english.d.ts.map +1 -1
- package/dist/huazhu/english.js +55 -4
- package/dist/huazhu/english.js.map +1 -1
- package/dist/legal.d.ts +3 -17
- package/dist/legal.d.ts.map +1 -1
- package/dist/legal.js +92 -9
- package/dist/legal.js.map +1 -1
- package/dist/otaless/backend.d.ts +6 -0
- package/dist/otaless/backend.d.ts.map +1 -1
- package/dist/otaless/backend.js +86 -7
- package/dist/otaless/backend.js.map +1 -1
- package/dist/otaless/booking.d.ts +29 -7
- package/dist/otaless/booking.d.ts.map +1 -1
- package/dist/otaless/booking.js +179 -34
- package/dist/otaless/booking.js.map +1 -1
- package/dist/present.d.ts.map +1 -1
- package/dist/present.js +3 -5
- package/dist/present.js.map +1 -1
- package/dist/server.d.ts +21 -2
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +345 -25
- package/dist/server.js.map +1 -1
- package/dist/surface.d.ts.map +1 -1
- package/dist/surface.js +11 -4
- package/dist/surface.js.map +1 -1
- package/dist/tools.d.ts +30 -5
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +231 -97
- package/dist/tools.js.map +1 -1
- package/dist/trip-ids.d.ts +44 -0
- package/dist/trip-ids.d.ts.map +1 -1
- package/dist/trip-ids.js +105 -1
- package/dist/trip-ids.js.map +1 -1
- package/dist/types.d.ts +16 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/account/index.d.ts
CHANGED
|
@@ -132,9 +132,11 @@ export type Account = {
|
|
|
132
132
|
/**
|
|
133
133
|
* What every answer carries for the card's header. `cards`: the session said
|
|
134
134
|
* it draws cards; `ours`: the call acted on its own conversation, naming no
|
|
135
|
-
* trip or its own. The name (nickname, else user name)
|
|
136
|
-
*
|
|
137
|
-
*
|
|
135
|
+
* trip or its own. The name (nickname, else user name), the masked facts, the level
|
|
136
|
+
* and a membership's tier and masked number only where `ours` (0.75.1, P1-a, 总线程
|
|
137
|
+
* 11-18) - and the facts, the level and the memberships only where `cards` too. A call
|
|
138
|
+
* naming another conversation's trip is told whether it is signed in, and the groups'
|
|
139
|
+
* rows by whether each is linked - nothing of whose account it is.
|
|
138
140
|
*/
|
|
139
141
|
meta: (key: string, who: {
|
|
140
142
|
cards: boolean;
|
|
@@ -246,6 +248,13 @@ export type AccountUsage = {
|
|
|
246
248
|
export type AccountOptions = {
|
|
247
249
|
/** Steps for the usage statistics, where they are on (server.ts). Never throws into a request. */
|
|
248
250
|
onUsage?: (e: AccountUsage) => void;
|
|
251
|
+
/**
|
|
252
|
+
* The conversation `key` was just signed in, on the page (0.75.1, risk A): server.ts gives
|
|
253
|
+
* it a new trip id (`TripIds.renew`). `sign`: which sign-in - its link's code, hashed
|
|
254
|
+
* (`SignInRequest.codeHash`) - so the claim handed with that link (`SignInClaims`) is the one
|
|
255
|
+
* that may take the new id. Called after the sign-in is kept; a throw is caught.
|
|
256
|
+
*/
|
|
257
|
+
onSignedIn?: (key: string, sign: string) => void;
|
|
249
258
|
account: AccountConfig;
|
|
250
259
|
brand: string;
|
|
251
260
|
/** The deployment's own name (`server.name`): a card takes only its own account. */
|
|
@@ -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,0DAA0D;IAC1D,MAAM,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MAAM,MAAM,EACjB,OAAO,SAAS;IAGnC,OAAO,CAAC,MAAM;IAKd,8FAA8F;IAC9F,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO;IAIvC,uEAAuE;IACvE,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO;IAMxC,wGAAwG;IACxG,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;CAyB/D;AAkCD,eAAO,MAAM,WAAW,GAAI,MAAM,cAAc,KAAG,OAwwFlD,CAAC"}
|
package/dist/account/index.js
CHANGED
|
@@ -878,7 +878,7 @@ export const makeAccount = (opts) => {
|
|
|
878
878
|
const NO_PRICE = linking
|
|
879
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.`
|
|
880
880
|
: `Being signed in changes no price or room shown here: ${brand} has no member rate here yet.`;
|
|
881
|
-
const NEVER_IN_CHAT = 'never in this chat: do not ask for, or accept, a password,
|
|
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"';
|
|
882
882
|
const minutes = Math.round(requests.ttlMs / 60_000);
|
|
883
883
|
const accountUrl = `${publicUrl}/account`;
|
|
884
884
|
// ⚠️ THE NAME THE ACCOUNT GOES BY: ITS NICKNAME, ELSE ITS USER NAME (0.61.0,
|
|
@@ -1285,7 +1285,10 @@ export const makeAccount = (opts) => {
|
|
|
1285
1285
|
name: names.view,
|
|
1286
1286
|
// ⚠️ ONLY WHEN ASKED (robin 11-06, claude.ai): the assistant called it on its
|
|
1287
1287
|
// own 40 ms after a list, and ended its list with "I can't see your sign-in".
|
|
1288
|
-
|
|
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.`,
|
|
1289
1292
|
annotations: {
|
|
1290
1293
|
title: `My ${brand} account`,
|
|
1291
1294
|
readOnlyHint: true,
|
|
@@ -1313,11 +1316,12 @@ export const makeAccount = (opts) => {
|
|
|
1313
1316
|
name: names.link,
|
|
1314
1317
|
// ⚠️ NOTHING ABOUT THE GUEST IS ASKED FOR HERE - the group's email and
|
|
1315
1318
|
// password are typed on our page, never in the chat.
|
|
1316
|
-
description: `Links one hotel group's loyalty membership to the guest's ${brand} account - or joins that group and links the new membership
|
|
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(', ')}.`,
|
|
1317
1320
|
annotations: {
|
|
1318
1321
|
title: 'Link a hotel membership',
|
|
1319
1322
|
readOnlyHint: false,
|
|
1320
|
-
|
|
1323
|
+
// `mode: unlink` undoes the link at once (0.75.0, T4).
|
|
1324
|
+
destructiveHint: true,
|
|
1321
1325
|
idempotentHint: false,
|
|
1322
1326
|
openWorldHint: true,
|
|
1323
1327
|
},
|
|
@@ -1332,7 +1336,7 @@ export const makeAccount = (opts) => {
|
|
|
1332
1336
|
mode: {
|
|
1333
1337
|
type: 'string',
|
|
1334
1338
|
enum: ['sign_in', 'join', 'unlink'],
|
|
1335
|
-
description: 'sign_in: link a membership the guest has (the default); join: make one and link it; unlink:
|
|
1339
|
+
description: 'sign_in: link a membership the guest has (the default); join: make one and link it; unlink: remove the link at once',
|
|
1336
1340
|
},
|
|
1337
1341
|
lang: {
|
|
1338
1342
|
type: 'string',
|
|
@@ -1348,11 +1352,12 @@ export const makeAccount = (opts) => {
|
|
|
1348
1352
|
{
|
|
1349
1353
|
name: names.card,
|
|
1350
1354
|
// The card's own (app-only, server.ts): never offered to the assistant.
|
|
1351
|
-
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
|
|
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.`,
|
|
1352
1356
|
annotations: {
|
|
1353
1357
|
title: `${brand} account (card)`,
|
|
1354
1358
|
readOnlyHint: false,
|
|
1355
|
-
|
|
1359
|
+
// `sign_out` and `unlink` end a sign-in or a link at once (0.75.0, T4).
|
|
1360
|
+
destructiveHint: true,
|
|
1356
1361
|
idempotentHint: false,
|
|
1357
1362
|
openWorldHint: true,
|
|
1358
1363
|
},
|
|
@@ -1463,8 +1468,8 @@ export const makeAccount = (opts) => {
|
|
|
1463
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.`
|
|
1464
1469
|
: '';
|
|
1465
1470
|
const instructions = (noCards) => (noCards
|
|
1466
|
-
? `${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,
|
|
1467
|
-
: `${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,
|
|
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.'}`) +
|
|
1468
1473
|
LINK_SAID;
|
|
1469
1474
|
// ── The pages ────────────────────────────────────────────────────────────
|
|
1470
1475
|
const send = (c, status, html) => c.html(html, status, PAGE_HEADERS);
|
|
@@ -2505,6 +2510,13 @@ export const makeAccount = (opts) => {
|
|
|
2505
2510
|
return again('busy');
|
|
2506
2511
|
}
|
|
2507
2512
|
requests.done(r);
|
|
2513
|
+
// A new trip id for the conversation (0.75.1, risk A) - never in the sign-in's way.
|
|
2514
|
+
try {
|
|
2515
|
+
opts.onSignedIn?.(r.key, r.codeHash);
|
|
2516
|
+
}
|
|
2517
|
+
catch {
|
|
2518
|
+
log(`[account] ${tag(r.key)}: its trip id was not given out again`);
|
|
2519
|
+
}
|
|
2508
2520
|
usage({
|
|
2509
2521
|
key: r.key,
|
|
2510
2522
|
kind: 'account',
|
|
@@ -2662,8 +2674,38 @@ export const makeAccount = (opts) => {
|
|
|
2662
2674
|
name === names.card ||
|
|
2663
2675
|
(linking && name === names.link),
|
|
2664
2676
|
handle,
|
|
2665
|
-
meta: (key, { cards }) => {
|
|
2677
|
+
meta: (key, { cards, ours }) => {
|
|
2666
2678
|
const s = store.get(key);
|
|
2679
|
+
// ⚠️ A CALL THAT NAMES ANOTHER CONVERSATION'S TRIP IS TOLD NOTHING OF WHOSE ACCOUNT IT IS
|
|
2680
|
+
// (0.75.1 - P1-a, the review's C1 ④, 总线程 11-18): whether it is signed in, and the
|
|
2681
|
+
// deployment's own tool names (the card reads none of `curless/account` without them) -
|
|
2682
|
+
// no name, no masked email, no level, discount or points, no membership's tier or
|
|
2683
|
+
// masked number. A trip id is all such a call shows it has; the card in claude.ai,
|
|
2684
|
+
// whose calls all name its conversation's trip, keeps what its conversation's own
|
|
2685
|
+
// answers told it (card.ts `readAccountMeta`).
|
|
2686
|
+
// The memberships' rows go on, by group and whether linked - nothing else of them (no
|
|
2687
|
+
// tier, no number): a card's link waits on its group's row saying linked, and the
|
|
2688
|
+
// account's own answer (its structured content, for any caller) says as much.
|
|
2689
|
+
if (!ours)
|
|
2690
|
+
return {
|
|
2691
|
+
[ACCOUNT_META_KEY]: {
|
|
2692
|
+
from: opts.from,
|
|
2693
|
+
tools: linking
|
|
2694
|
+
? names
|
|
2695
|
+
: {
|
|
2696
|
+
signIn: names.signIn,
|
|
2697
|
+
view: names.view,
|
|
2698
|
+
signOut: names.signOut,
|
|
2699
|
+
card: names.card,
|
|
2700
|
+
},
|
|
2701
|
+
signedIn: !!s,
|
|
2702
|
+
...(linking && cards
|
|
2703
|
+
? {
|
|
2704
|
+
memberships: membershipRows(s, true, false).map(({ label: _label, numberMasked: _number, ...row }) => row),
|
|
2705
|
+
}
|
|
2706
|
+
: {}),
|
|
2707
|
+
},
|
|
2708
|
+
};
|
|
2667
2709
|
// ⚠️ THE NAME IT GOES BY - THE NICKNAME, ELSE THE USER NAME - TO EVERY CALL
|
|
2668
2710
|
// (0.61.0, robin 11-10; 总线程 weighed it): the words say the same name (`nameOf`),
|
|
2669
2711
|
// and the card in claude.ai, whose calls name the conversation's trip (ours=false),
|