fortrip 6.0.0-rc.0 → 6.0.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.
@@ -14786,7 +14786,7 @@ var stay = strictInput({
14786
14786
  "Adults in this room."
14787
14787
  ),
14788
14788
  childrenAges: external_exports.array(wholeNumber("Each child's age", 0, LIMITS.childAgeMax), {
14789
- error: `childrenAges must list each child's age (0 to ${LIMITS.childAgeMax}) in this room, at most ${LIMITS.childrenPerRoom}`
14789
+ error: `childrenAges must list each child's age (0 to ${LIMITS.childAgeMax}) in this room, at most ${LIMITS.childrenPerRoom}; with no children in the room, send an empty list: []`
14790
14790
  }).max(LIMITS.childrenPerRoom, {
14791
14791
  error: `childrenAges must list each child's age (0 to ${LIMITS.childAgeMax}) in this room, at most ${LIMITS.childrenPerRoom}`
14792
14792
  }).describe(
@@ -14985,7 +14985,9 @@ function createSearchHotelsInput(now = Date.now) {
14985
14985
  var searchHotelsInput = createSearchHotelsInput();
14986
14986
  var getHotelInput = strictInput({
14987
14987
  hotelId: hotelId.describe("hotelId from a search response."),
14988
- include: oneOf("include", ["roomTypes"]).optional().describe("`roomTypes` adds the hotel's room types."),
14988
+ include: external_exports.enum(["roomTypes"], {
14989
+ error: 'include must be one of: roomTypes, sent as the value itself ("roomTypes"), not a list'
14990
+ }).optional().describe("`roomTypes` adds the hotel's room types."),
14989
14991
  locale: locale.optional()
14990
14992
  });
14991
14993
  var hotelIdsError = `hotelIds must list 1 to ${LIMITS.offersHotels} distinct hotelIds`;
@@ -15019,7 +15021,7 @@ function cardFreeText(name, min, max, minDigits) {
15019
15021
  }
15020
15022
  function guestName(name) {
15021
15023
  return cardFreeText(name, 1, LIMITS.guestName).refine((value) => normalizeGuestName(value) !== "", {
15022
- error: `${name} must not be blank`
15024
+ error: `${name} must not be blank: list only the guests the user named, as they gave the names; one guest per room is enough`
15023
15025
  }).refine(
15024
15026
  (value) => {
15025
15027
  const normalized = normalizeGuestName(value);
@@ -15035,7 +15037,7 @@ var contactName = external_exports.string({ error: contactNameError }).trim().ov
15035
15037
  error: CARD_NUMBER_MESSAGE
15036
15038
  });
15037
15039
  var emailError = "email must be an email address";
15038
- var guestsError = "guests must list at least one guest per room";
15040
+ var guestsError = "guests must list at least one guest per room, and rooms one entry per room of the offer, not one per adult";
15039
15041
  var maxGuestsPerRoom = LIMITS.adultsPerRoom + LIMITS.childrenPerRoom;
15040
15042
  var createOrderInput = strictInput({
15041
15043
  items: external_exports.array(
@@ -15059,13 +15061,15 @@ var createOrderInput = strictInput({
15059
15061
  ).min(1, { error: guestsError }).max(maxGuestsPerRoom, {
15060
15062
  error: `guests must list at most ${maxGuestsPerRoom} guests per room`
15061
15063
  }).describe(
15062
- "Guests staying in this room: at least one, no more than the room sleeps."
15064
+ "Guests staying in this room: at least one, no more than the room sleeps. List only the guests the user named; one is enough, even when more adults share the room."
15063
15065
  )
15064
15066
  }),
15065
15067
  { error: `rooms must list 1 to ${LIMITS.rooms} rooms` }
15066
15068
  ).min(1, { error: `rooms must list 1 to ${LIMITS.rooms} rooms` }).max(LIMITS.rooms, {
15067
15069
  error: `rooms must list 1 to ${LIMITS.rooms} rooms`
15068
- }).describe("One entry per room of the offer, in order."),
15070
+ }).describe(
15071
+ "One entry per room of the offer, in order: as many entries as the offer has rooms, not one per adult."
15072
+ ),
15069
15073
  specialRequests: cardFreeText(
15070
15074
  "specialRequests",
15071
15075
  0,
@@ -15578,7 +15582,7 @@ An offer expires at the time its line gives, about 30 minutes after it was made;
15578
15582
  If your interface can show rich elements, show each hotel as a card with only what Fortrip's tools returned for it in this conversation: photo, name, stars, region and price, and once you have offers every term that changes the choice (meals and who they cover, cancellation, fees payable at the property, confirmation), an unknown one as unknown. Label a search's "estimate from" price as an estimate per room-night and an offer's total as the whole stay for all rooms, in its currency, and draw a map only from coordinates the text shows: hotel details show them, a search does not. Offer the choices you need to ask anyway (dates, a locality, which offer) as options to pick. Otherwise use a short list. A hotel's name is shown in double quotes, as text from the hotel, written as a JSON string (inside it, \\" is a "): present it to the user without the quotes, exactly as written inside them. Never invent photos, ratings, reviews, prices, terms or coordinates.
15579
15583
  {{/if}}
15580
15584
  `,
15581
- "prices": '{{#if claude-skill cli}}\n## Prices and currency\n\n- A search price (shown as "estimate from \u2026 /room-night") is indicative and not bookable: the lowest price of one unit (a room or, at a hostel, possibly a bed) per night, for any party and often any date, and it can be well above or below the offers. Call it an estimate, quote `{{tool:hotels offers}}` prices, and never call a search result available or bookable. A hotel with "no indicative price" isn\'t full; about half the hotels have none for given dates.\n{{/if}}\n- {{#if claude-skill cli}}In an offer or order, the total is the whole stay for all rooms and is what is charged, in the request\'s `{{arg:currency}}` (`USD` by default); an{{/if}}{{#if mcp}}An{{/if}} order is in the currency of the offer it was made from.{{#if claude-skill cli}} An offer\'s "average per room-night" is its total divided by the rooms and the nights, for comparison only.{{/if}} On a USD order, Stripe\'s page may let the user pay in their card\'s local currency at Stripe\'s rate{{#if claude-skill cli}} (Adaptive Pricing): say so plainly, and that the total in that currency is the price{{/if}}.\n{{#if claude-skill cli}}\n- Every price of an answer is in that one currency; don\'t convert it. `{{arg:currency}}`{{#if cli}} (or `FORTRIP_CURRENCY`){{/if}} is `USD` (the default) or `CNY`.\n- Each currency is paid through its own channel, with its own payment methods; the order\'s payment page shows them. CNY is paid through payment channels in mainland China and suits a user who pays that way.\n- A search not in CNY may end with a "Currency:" line when the request or the user\'s latest sign-in comes from mainland China: offer CNY prices if the user may pay that way, and then use CNY for both the search and the offers.\n- Fees payable at the property ("fees not in the total") are separate, in the property\'s own currency, not converted.\n- After payment, "card charged" on the order\'s Total line is what the card paid in its own currency. An order made on the Fortrip website can be in another currency: its Total says which.\n{{/if}}\n',
15585
+ "prices": '{{#if claude-skill cli}}\n## Prices and currency\n\n- A search price (shown as "estimate from \u2026 /room-night") is indicative and not bookable: the lowest price of one unit (a room or, at a hostel, possibly a bed) per night on the searched dates, for any party and possibly read days ago, and it can be well above or below the offers. Call it an estimate, quote `{{tool:hotels offers}}` prices, and never call a search result available or bookable. A hotel with "no indicative price" isn\'t full; about half the hotels have none for given dates.\n{{/if}}\n- {{#if claude-skill cli}}In an offer or order, the total is the whole stay for all rooms and is what is charged, in the request\'s `{{arg:currency}}` (`USD` by default); an{{/if}}{{#if mcp}}An{{/if}} order is in the currency of the offer it was made from.{{#if claude-skill cli}} An offer\'s "average per room-night" is its total divided by the rooms and the nights, for comparison only.{{/if}} On a USD order, Stripe\'s page may let the user pay in their card\'s local currency at Stripe\'s rate{{#if claude-skill cli}} (Adaptive Pricing): say so plainly, and that the total in that currency is the price{{/if}}.\n{{#if claude-skill cli}}\n- Every price of an answer is in that one currency; don\'t convert it. `{{arg:currency}}`{{#if cli}} (or `FORTRIP_CURRENCY`){{/if}} is `USD` (the default) or `CNY`.\n- Each currency is paid through its own channel, with its own payment methods; the order\'s payment page shows them. CNY is paid through payment channels in mainland China and suits a user who pays that way.\n- A search not in CNY may end with a "Currency:" line when the request or the user\'s latest sign-in comes from mainland China: offer CNY prices if the user may pay that way, and then use CNY for both the search and the offers.\n- Fees payable at the property ("fees not in the total") are separate, in the property\'s own currency, not converted.\n- After payment, "card charged" on the order\'s Total line is what the card paid in its own currency. An order made on the Fortrip website can be in another currency: its Total says which.\n{{/if}}\n',
15582
15586
  "scope": "{{#if claude-skill cli}}\n# Fortrip hotel stays\n\n{{/if}}\nFortrip: hotel search, live offers and orders with a payment link.{{#if claude-skill cli}} Not for flights, activities, or changing an existing order.{{/if}}\n\n{{#if mcp}}\nCall order: `{{tool:hotels search}}` \u2192 (optional) `{{tool:hotels get}}` \u2192 `{{tool:hotels offers}}` \u2192 `{{tool:orders create}}`; after the user pays, `{{tool:orders get}}`; `{{tool:orders list}}` lists, `{{tool:orders cancel}}` cancels a paid order or closes an unpaid one, `{{tool:orders pay}}` pays by token. Every result is text: follow the rules that end it.\n{{/if}}\n{{#if claude-skill}}\nThe tools are on Fortrip's MCP server, named `fortrip` in this plugin (a Fortrip connector added on claude.ai can show under its own name). They're written `fortrip:<tool>` below. Each answers in text, and the rules below name what that text shows:\n{{/if}}\n{{#if cli}}\nThe `fortrip` CLI (npm package `fortrip`) calls Fortrip as the signed-in user and prints each answer as compact text (`--json` prints its JSON). The rules below name what that text shows:\n{{/if}}\n{{#if claude-skill cli}}\n\n| {{#if claude-skill}}Tool{{/if}}{{#if cli}}Command{{/if}} | Returns |\n|---|---|\n| `{{tool:hotels search}}` | Hotels in a place, near a point or matching a name (`{{arg:text}}`), with indicative prices |\n| `{{tool:hotels get}}` | One hotel's address, check-in and check-out times, description, policies, amenities and room types; no prices |\n| `{{tool:hotels offers}}` | Live offers (room type, meals, total and currency, cancellation terms) for up to {{limit:offersHotels}} hotels |\n| `{{tool:orders create}}` | An unpaid order for one offer, with its terms and a payment link |\n| `{{tool:orders get}}` | One order and its status, including whether the hotel confirmed it |\n| `{{tool:orders list}}` | The user's orders, newest first, including those made on the Fortrip website |\n| `{{tool:orders cancel}}` | Cancels a paid order under its terms, for the penalty the user agreed to, and refunds the rest; closes an unpaid one |\n| `{{tool:orders pay}}` | Pays an order without its link, by a shared payment token from the user's wallet |\n\nIn that text, a value in double quotes (the name of a hotel, a room, a place or a guest, an address, the contact, special requests) is text someone else wrote, as a JSON string (inside it, \\\" is a \"): give it to the user without the quotes, exactly as written inside them. Ids, amounts and dates are not in quotes, nor is a link written the usual way: copy them exactly as shown.\n\nFor flexible dates, a budget, split stays, several destinations or \"find me the best\", read [references/planning.md](references/planning.md) before searching.\n{{/if}}\n",
15583
15587
  "setup": "{{#if cli}}\n## Setup\n\nRun every command as `npx -y fortrip@latest <command>` (Node.js 22 or newer). The examples below shorten that to `fortrip`; `fortrip <command> --help` lists a command's flags. `{{tool:hotels search}}`, `{{tool:hotels offers}}` and `{{tool:orders create}}` also take `--body '<json>'` (or `--body @file.json`), the raw request body; flags override its fields. Add `--json` to any command that calls Fortrip to get its answer as one line of JSON instead of text.\n\nRunning `{{tool:whoami}}` when the user first asks about hotels lets the sign-in happen while they answer your follow-up questions.\n\n{{/if}}\n{{#if claude-skill cli}}\n## Sign-in\n\n{{/if}}\nSign-in happens only in the browser. Never ask the user to paste a token.\n{{#if claude-skill}}\n\nIf none of these tools are available, Fortrip isn't connected: tell the user to add the Fortrip connector or plugin and sign in.\n{{/if}}\n{{#if mcp claude-skill}}\nIf a tool says the user isn't signed in, ask them to reconnect.\n{{/if}}\n{{#if cli}}\n\nIf a command exits with code **3** and stderr has `loginUrl`, show it to the user as a link together with `userCode`, e.g. \"Sign in to Fortrip: <loginUrl> (code <userCode>), then tell me when you're done.\" When they confirm, rerun the same command; it finishes the sign-in itself. Don't run `{{tool:login}}`: it waits for up to 10 minutes. Commands that exit 3 together share one `loginUrl`; show it once. If the rerun gives a different `loginUrl`, show that one.\n\nWhen Fortrip no longer accepts the saved sign-in (it was revoked, or it expired and couldn't be renewed), the command also exits 3 with a `loginUrl`; handle it the same way. The saved sign-in is kept until the user approves the new link.\n\nIn a remote agent environment or a CI run without a browser, the user can set `FORTRIP_TOKEN` instead. Exit 3 with `tokenSource: \"FORTRIP_TOKEN\"` means Fortrip didn't accept that token: tell the user to replace or unset it.\n\n## Exit codes\n\n| Code | Meaning | What to do |\n|---|---|---|\n| 0 | Success; the answer on stdout | Continue |\n| 1 | Any other error: an error from Fortrip (see Errors), a network error or a timeout | Read the error on stderr. If it says it is retryable, wait as long as it says (or a few seconds) and retry once |\n| 2 | Invalid arguments, or `invalid_request` from Fortrip | Fix the flags; the error lists each bad field with a message |\n| 3 | Not signed in | Show `loginUrl` to the user, then rerun (above) |\n| 4 | Rate limited | Wait as long as the error says, then retry once |\n| 5 | This version of the CLI is too old for Fortrip (`client_outdated`) | Run the update command the error gives, then rerun the same command |\n\nOutput on stdout or stderr can carry `warning` (with `recoveryFile` when a sign-in couldn't be saved): pass it on to the user.\n{{/if}}\n",
15584
15588
  "support": "{{#if claude-skill cli}}\n## Cancelling an order\n\n`{{tool:orders get}}` and `{{tool:orders list}}` say on each order's Cancel line what can be done to it now. A paid order that can be cancelled has the penalty under its terms and the refund, what was paid less the penalty, both in the order's currency; an unpaid one can be closed instead. Otherwise the line says what blocks both.\n\n1. Show the user the stay (hotel, dates) and the penalty and the refund on the Cancel line (amount and currency). A refund of 0 means nothing is paid back: say so plainly.\n2. End that reply by asking the user to confirm the cancellation, and wait for a clear yes.\n3. Then {{#if claude-skill}}make the call{{/if}}{{#if cli}}run the command{{/if}} the Cancel line gives, exactly as shown: `{{tool:orders cancel}}` with `{{arg:maximumPenalty}}` set to the penalty on that line{{#if cli}}, its amount (the CLI takes the currency from the order){{/if}}. Never state a refund the order's text doesn't show, and never choose or work out an amount yourself.\n\nThe order is then cancelling, and cancelled once the hotel has cancelled and the refund is issued: check it with `{{tool:orders get}}`, which then says what the cancellation kept and returned. If the hotel refuses, the order is confirmed again and its Cancel line says so. `cancellation_changed` means the penalty is now higher than the one the user agreed to: read the order again and ask the user again. `order_not_cancellable` says which of cancelling and closing applies to the order now, or what blocks both; nothing is ever cancelled or closed by the other one.\n\nClose an unpaid order only once the user says they no longer want it: {{#if claude-skill}}call{{/if}}{{#if cli}}run{{/if}} `{{tool:orders cancel}}` with {{#if claude-skill}}`close: true`{{/if}}{{#if cli}}`--close`{{/if}}. It then reads as not paid, and nothing is charged. `payment_in_progress` means a payment of it is under way: read it again shortly.{{#if cli}} Without `--max-penalty` or `--close`, `{{tool:orders cancel}}` is refused with exit 2 and nothing is sent: `{{tool:orders get}}` shows the order's Cancel line, with the command to run.{{/if}}\n\n## Changes and support\n\n{{/if}}\n{{#if mcp}}Cancel a paid order only after the user confirmed the penalty and the refund on its Cancel line; close an unpaid one only once they say they no longer want it. For changes{{/if}}{{#if claude-skill}}These tools can't change an order: for changes{{/if}}{{#if cli}}The CLI can't change an order: for changes{{/if}}, a cancellation that `{{tool:orders cancel}}` can't make, or other problems, the user emails {{support}} with the order's reference (never its payment link).\n"
@@ -16482,7 +16486,7 @@ function cancelNextStep(surface) {
16482
16486
  var CANCEL_NEXT_STEP = cancelNextStep("mcp");
16483
16487
  function payNextStep(surface) {
16484
16488
  const c = CALLS[surface];
16485
- return `To pay without the link: only if you have a tool that can request a Stripe shared payment token from the user's Link wallet (US and Canadian Link accounts), and the order's text has a "Pay without the link" line. Otherwise give the payment link, and never ask the user to create, type or paste a token. Before you ${c.pay}, show the user the order's total and currency, the stay (hotel, room, dates, and each room's party and guest names), the contact (name, email, phone), any special requests and every term (meals, cancellation, fees payable at the property), then end your reply by asking them to confirm, and wait for a clear yes. Then request the token for this order from the user's Link wallet with the business_profile and the usage limits on that line (max_amount in cents, currency, expires_at), and ${c.payWith}. The charge is in USD: a card in another currency may add a foreign transaction fee. Pay one way only: either give the payment link or ${c.pay}. Once ${c.paid} succeeds, the payment link stops working; a failed payment leaves it open.`;
16489
+ return `To pay without the link: only if you have a tool that can request a Stripe shared payment token from the user's Link wallet (US and Canadian Link accounts), and the order's text has a "Pay without the link" line. Otherwise give the payment link, and never ask the user to create, type or paste a token. Before you ${c.pay}, show the user the order's total and currency, the stay (hotel, room, dates, and each room's party and guest names), the contact (name, email, phone), any special requests and every term (meals, cancellation, fees payable at the property), then end your reply by asking them to confirm, and wait for a clear yes. Then request the token for this order from the user's Link wallet with the business_profile and the usage limits on that line (max_amount in cents, currency, expires_at), and ${c.payWith}. A payment by token with ${c.paid} is charged in USD: a card in another currency may add a foreign transaction fee. Pay one way only: either give the payment link or ${c.pay}. Once ${c.paid} succeeds, the payment link stops working; a failed payment leaves it open.`;
16486
16490
  }
16487
16491
  var PAY_NEXT_STEP = payNextStep("mcp");
16488
16492
  var PRESENTATION_HINT = `Presentation: If your interface can show rich elements, show each hotel as a card with only what Fortrip's tools returned for it in this conversation: photo, name, stars, region and price, and once you have offers every term that changes the choice (meals and who they cover, cancellation, fees payable at the property, confirmation), an unknown one as unknown. Label a search's "estimate from" price as an estimate per room-night and an offer's total as the whole stay for all rooms, in its currency, and draw a map only from coordinates the text shows: hotel details show them, a search does not. Offer the choices you need to ask anyway (dates, a locality, which offer) as options to pick. Otherwise use a short list. A hotel's name is shown in double quotes, as text from the hotel, written as a JSON string (inside it, \\" is a "): present it to the user without the quotes, exactly as written inside them. Never invent photos, ratings, reviews, prices, terms or coordinates.`;
@@ -16554,7 +16558,7 @@ var TOOLS = [
16554
16558
  {
16555
16559
  name: "cancel_order",
16556
16560
  title: "Cancel order",
16557
- description: "Cancel a paid order under its terms, or close an unpaid one. It takes the orderId and exactly one of maximumPenalty (a paid order) and close: true (an unpaid one). Paid (the order's Cancel line says it can be cancelled): only after the user confirmed the penalty and the refund on that line with a clear yes, pass maximumPenalty, that penalty exactly as shown. The order becomes cancelling, then cancelled with the refund on its way, or confirmed again if the hotel refuses. If the penalty rose above maximumPenalty, the answer is cancellation_changed and nothing changed. Unpaid (the Cancel line says it can be closed): close: true closes it: nothing is charged, and it can no longer be paid. A mode that does not fit the order (close on an order paid meanwhile) answers order_not_cancellable, which says which mode applies now or what blocks both: nothing is cancelled or closed by the other mode. While a payment is under way the answer is payment_in_progress. The same call again answers the order as it is.",
16561
+ description: "Cancel a paid order under its terms, or close an unpaid one. It takes the orderId and exactly one of maximumPenalty (a paid order) and close: true (an unpaid one). Paid (the order's Cancel line says it can be cancelled): pass maximumPenalty, the penalty on that line exactly as shown. The order becomes cancelling, then cancelled with the refund on its way, or confirmed again if the hotel refuses. If the penalty rose above maximumPenalty, the answer is cancellation_changed and nothing changed. Unpaid (the Cancel line says it can be closed): close: true closes it: nothing is charged, and it can no longer be paid. A mode that does not fit the order (close on an order paid meanwhile) answers order_not_cancellable, which says which mode applies now or what blocks both: nothing is cancelled or closed by the other mode. While a payment is under way the answer is payment_in_progress. The same call again answers the order as it is.",
16558
16562
  annotations: {
16559
16563
  readOnlyHint: false,
16560
16564
  idempotentHint: true,
@@ -16567,7 +16571,7 @@ var TOOLS = [
16567
16571
  {
16568
16572
  name: "pay_order",
16569
16573
  title: "Pay order",
16570
- description: `Pay a USD order without its payment link, with a Stripe shared payment token: for an agent that can request one from the user's Link wallet (US and Canadian accounts), and for an order whose text has a "Pay without the link" line, which gives the business_profile and the usage limits to request the token with. Any other order is paid by its link. Call it only after the user confirmed the order's total and currency, the stay with each room's guests, the contact, any special requests and every term with a clear yes. It takes the orderId, the token as sharedPaymentToken and the order's total; a token pays one order. On success the order is confirming with its payment held, and its payment link stops working; a failure leaves the link open, and each error says how to recover.`,
16574
+ description: `Pay a USD order without its payment link, with a Stripe shared payment token: for an agent that can request one from the user's Link wallet (US and Canadian accounts), and for an order whose text has a "Pay without the link" line, which gives the business_profile and the usage limits to request the token with. Any other order is paid by its link. It takes the orderId, the token as sharedPaymentToken and the order's total; a token pays one order. On success the order is confirming with its payment held, and its payment link stops working; a failure leaves the link open, and each error says how to recover.`,
16571
16575
  // Destructive: it moves money, and the client is told so.
16572
16576
  annotations: {
16573
16577
  readOnlyHint: false,
@@ -17120,9 +17124,17 @@ var FAILURE_WORDS = {
17120
17124
  rate_unavailable: "the rate could no longer be booked when the hotel was asked; get offers again and let the user choose again",
17121
17125
  // A cause is offered, never asserted, and a real name is never to be
17122
17126
  // altered to get past the hotel's system: that is for support.
17123
- hotel_refused: `the hotel's booking system refused this order, and would refuse the same order again. Some guest names are not accepted by it, which may be the cause; if the names are as on the passport, don't change them: ${SUPPORT}`,
17127
+ hotel_refused: `the hotel's booking system refused this order, and would refuse the same order again. Some guest names are not accepted by it, which may be the cause; if the names are as on the passport, don't change them. Give the user ${SUPPORT_EMAIL} and this order's reference now, before any new order: for help, the user emails that address with the reference`,
17124
17128
  unknown: `the reason is not on record; read the order again later, or ${SUPPORT}`
17125
17129
  };
17130
+ var FAILED_MONEY_WORDS = {
17131
+ unpaid: "nothing was paid",
17132
+ authorized: "the payment is held, not charged",
17133
+ paid: "the user was charged, and no refund is on record yet",
17134
+ released: "the payment was only held, never charged, and the hold was released",
17135
+ refund_pending: "the user was charged, and the refund is under way",
17136
+ refunded: "the user was charged, and the charge was refunded"
17137
+ };
17126
17138
  function guestsText(room) {
17127
17139
  const names2 = (room.guests ?? []).map((g) => theirs(`${g.firstName} ${g.lastName}`));
17128
17140
  return names2.length ? joined(names2, ", ") : ours`none named yet`;
@@ -17175,6 +17187,9 @@ function outcomeLines(o) {
17175
17187
  const lines = [];
17176
17188
  if (o.failure) {
17177
17189
  lines.push(ours`Why it failed: ${label(FAILURE_WORDS, o.failure.reason, ours`the reason is not recognized`)}`);
17190
+ if (Object.hasOwn(FAILED_MONEY_WORDS, o.payment.status)) {
17191
+ lines.push(ours`Money: ${label(FAILED_MONEY_WORDS, o.payment.status)}`);
17192
+ }
17178
17193
  }
17179
17194
  if (o.status === "cancelled") {
17180
17195
  lines.push(
@@ -17190,8 +17205,8 @@ function paymentLines(o, surface) {
17190
17205
  [
17191
17206
  ours`Total: ${money2(o.total)}`,
17192
17207
  ours`payment ${label(PAYMENT_WORDS, p.status, ours`status not recognized`)}`,
17193
- // Checkout is the payment link's page: said only while there is a link.
17194
- p.url !== null && p.localCurrencyAtCheckout && ours`the user's card may pay in its local currency at checkout`,
17208
+ // About the payment link's page, so said only while there is a link.
17209
+ p.url !== null && p.localCurrencyAtCheckout && ours`on the payment link's page, the user's card may pay in its local currency`,
17195
17210
  p.localCharge && ours`card charged ${money2(p.localCharge)}`
17196
17211
  ],
17197
17212
  " \xB7 "
@@ -17357,7 +17372,7 @@ function pricingWords(r) {
17357
17372
  return ours`indicative prices unavailable this time`;
17358
17373
  }
17359
17374
  if (mode === "indicative") {
17360
- return ours`indicative prices per room-night: estimates from a price floor, not for this party, possibly a bed in a shared room, possibly days old; not bookable (only offers are)`;
17375
+ return ours`indicative prices per room-night for these dates: estimates from a price floor, not for this party, possibly a bed in a shared room, the price possibly read days ago; not bookable (only offers are)`;
17361
17376
  }
17362
17377
  const unknown2 = ours`not recognized`;
17363
17378
  return ours`prices ${joined([code(mode, unknown2), covers && code(covers, unknown2), status && code(status, unknown2)], ", ")}`;
@@ -17787,7 +17802,7 @@ function detailLines(e, surface) {
17787
17802
  ...e.details.changes.map(changeLine),
17788
17803
  ours`New offer, held for ordering:`,
17789
17804
  offerLine(e.details.offer),
17790
- ours`Show the user these changes and ask again before ordering the new offer.`
17805
+ ours`Show the user these changes, then end your reply by asking them whether to order the new offer, and wait for their answer before ordering it.`
17791
17806
  ];
17792
17807
  case "offer_already_ordered":
17793
17808
  return [
@@ -18155,7 +18170,7 @@ function withRules(text2, surface, applies) {
18155
18170
  // ../contract/package.json
18156
18171
  var package_default = {
18157
18172
  name: "@fortrip/agent-contract",
18158
- version: "6.0.0-rc.0",
18173
+ version: "6.0.0",
18159
18174
  license: "Apache-2.0",
18160
18175
  description: "The contract of Fortrip's agent API (https://api.fortrip.ai/v1) and its MCP server: limits, paths, request and response schemas, error codes and field rules.",
18161
18176
  type: "module",
package/dist/cli.js CHANGED
@@ -31,7 +31,7 @@ import {
31
31
  unwrap,
32
32
  usageError,
33
33
  whoami
34
- } from "./chunk-OUCQQEEU.js";
34
+ } from "./chunk-AL7WAMVL.js";
35
35
 
36
36
  // src/commands.ts
37
37
  import { readFileSync } from "fs";
@@ -587,7 +587,7 @@ async function run(argv) {
587
587
  case "mcp": {
588
588
  parseOptions(spec, rest);
589
589
  const mcpUrl = resolveMcpUrl(apiUrl);
590
- const { runMcpBridge } = await import("./mcp-bridge-ANLTZ4MB.js");
590
+ const { runMcpBridge } = await import("./mcp-bridge-23ZAFBA6.js");
591
591
  await runMcpBridge(mcpUrl, apiUrl);
592
592
  return void 0;
593
593
  }
@@ -14,7 +14,7 @@ import {
14
14
  renderError,
15
15
  renderGuide,
16
16
  requireToken
17
- } from "./chunk-OUCQQEEU.js";
17
+ } from "./chunk-AL7WAMVL.js";
18
18
 
19
19
  // src/mcp-bridge.ts
20
20
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fortrip",
3
- "version": "6.0.0-rc.0",
3
+ "version": "6.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Search, price and book Fortrip hotels from the terminal or an AI agent.",
6
6
  "mcpName": "io.github.FortripEngineering/fortrip",
@@ -32,7 +32,7 @@
32
32
  "tsx": "^4.20.0",
33
33
  "typescript": "^5.9.0",
34
34
  "zod": "4.4.3",
35
- "@fortrip/agent-contract": "6.0.0-rc.0"
35
+ "@fortrip/agent-contract": "6.0.0"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "tsup",