@curless/hotel-storefront 0.84.8 → 0.86.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 (229) hide show
  1. package/dist/config.d.ts +35 -2
  2. package/dist/config.d.ts.map +1 -1
  3. package/dist/config.js.map +1 -1
  4. package/dist/huazhu/ari-sync.d.ts +93 -6
  5. package/dist/huazhu/ari-sync.d.ts.map +1 -1
  6. package/dist/huazhu/ari-sync.js +303 -28
  7. package/dist/huazhu/ari-sync.js.map +1 -1
  8. package/dist/huazhu/backend.d.ts +9 -0
  9. package/dist/huazhu/backend.d.ts.map +1 -1
  10. package/dist/huazhu/backend.js +62 -22
  11. package/dist/huazhu/backend.js.map +1 -1
  12. package/dist/huazhu/catalog.d.ts +58 -1
  13. package/dist/huazhu/catalog.d.ts.map +1 -1
  14. package/dist/huazhu/catalog.js +318 -15
  15. package/dist/huazhu/catalog.js.map +1 -1
  16. package/dist/huazhu/live-asks.d.ts +63 -0
  17. package/dist/huazhu/live-asks.d.ts.map +1 -0
  18. package/dist/huazhu/live-asks.js +127 -0
  19. package/dist/huazhu/live-asks.js.map +1 -0
  20. package/dist/huazhu/make.d.ts.map +1 -1
  21. package/dist/huazhu/make.js +50 -4
  22. package/dist/huazhu/make.js.map +1 -1
  23. package/dist/server.d.ts +1 -1
  24. package/dist/server.js +1 -1
  25. package/dist/tools/accept-terms.d.ts +4 -0
  26. package/dist/tools/accept-terms.d.ts.map +1 -0
  27. package/dist/tools/accept-terms.js +26 -0
  28. package/dist/tools/accept-terms.js.map +1 -0
  29. package/dist/tools/add-booking-addon.d.ts +4 -0
  30. package/dist/tools/add-booking-addon.d.ts.map +1 -0
  31. package/dist/tools/add-booking-addon.js +44 -0
  32. package/dist/tools/add-booking-addon.js.map +1 -0
  33. package/dist/tools/add-to-trip.d.ts +4 -0
  34. package/dist/tools/add-to-trip.d.ts.map +1 -0
  35. package/dist/tools/add-to-trip.js +49 -0
  36. package/dist/tools/add-to-trip.js.map +1 -0
  37. package/dist/tools/all-tools.d.ts +1342 -0
  38. package/dist/tools/all-tools.d.ts.map +1 -0
  39. package/dist/tools/all-tools.js +954 -0
  40. package/dist/tools/all-tools.js.map +1 -0
  41. package/dist/tools/answer.d.ts +3 -0
  42. package/dist/tools/answer.d.ts.map +1 -0
  43. package/dist/tools/answer.js +104 -0
  44. package/dist/tools/answer.js.map +1 -0
  45. package/dist/tools/args.d.ts +149 -0
  46. package/dist/tools/args.d.ts.map +1 -0
  47. package/dist/tools/args.js +176 -0
  48. package/dist/tools/args.js.map +1 -0
  49. package/dist/tools/base-output-schemas.d.ts +3 -0
  50. package/dist/tools/base-output-schemas.d.ts.map +1 -0
  51. package/dist/tools/base-output-schemas.js +380 -0
  52. package/dist/tools/base-output-schemas.js.map +1 -0
  53. package/dist/tools/book-picked.d.ts +4 -0
  54. package/dist/tools/book-picked.d.ts.map +1 -0
  55. package/dist/tools/book-picked.js +14 -0
  56. package/dist/tools/book-picked.js.map +1 -0
  57. package/dist/tools/booking-answer.d.ts +24 -0
  58. package/dist/tools/booking-answer.d.ts.map +1 -0
  59. package/dist/tools/booking-answer.js +485 -0
  60. package/dist/tools/booking-answer.js.map +1 -0
  61. package/dist/tools/buy-shop-item.d.ts +4 -0
  62. package/dist/tools/buy-shop-item.d.ts.map +1 -0
  63. package/dist/tools/buy-shop-item.js +45 -0
  64. package/dist/tools/buy-shop-item.js.map +1 -0
  65. package/dist/tools/call.d.ts +11 -0
  66. package/dist/tools/call.d.ts.map +1 -0
  67. package/dist/tools/call.js +2 -0
  68. package/dist/tools/call.js.map +1 -0
  69. package/dist/tools/cancel-facts.d.ts +281 -0
  70. package/dist/tools/cancel-facts.d.ts.map +1 -0
  71. package/dist/tools/cancel-facts.js +309 -0
  72. package/dist/tools/cancel-facts.js.map +1 -0
  73. package/dist/tools/cancel.d.ts +4 -0
  74. package/dist/tools/cancel.d.ts.map +1 -0
  75. package/dist/tools/cancel.js +364 -0
  76. package/dist/tools/cancel.js.map +1 -0
  77. package/dist/tools/card-addons.d.ts +4 -0
  78. package/dist/tools/card-addons.d.ts.map +1 -0
  79. package/dist/tools/card-addons.js +76 -0
  80. package/dist/tools/card-addons.js.map +1 -0
  81. package/dist/tools/change-booking.d.ts +4 -0
  82. package/dist/tools/change-booking.d.ts.map +1 -0
  83. package/dist/tools/change-booking.js +145 -0
  84. package/dist/tools/change-booking.js.map +1 -0
  85. package/dist/tools/clear-trip.d.ts +4 -0
  86. package/dist/tools/clear-trip.d.ts.map +1 -0
  87. package/dist/tools/clear-trip.js +10 -0
  88. package/dist/tools/clear-trip.js.map +1 -0
  89. package/dist/tools/compare.d.ts +4 -0
  90. package/dist/tools/compare.d.ts.map +1 -0
  91. package/dist/tools/compare.js +114 -0
  92. package/dist/tools/compare.js.map +1 -0
  93. package/dist/tools/current-trip.d.ts +70 -0
  94. package/dist/tools/current-trip.d.ts.map +1 -0
  95. package/dist/tools/current-trip.js +261 -0
  96. package/dist/tools/current-trip.js.map +1 -0
  97. package/dist/tools/deps.d.ts +229 -0
  98. package/dist/tools/deps.d.ts.map +1 -0
  99. package/dist/tools/deps.js +2 -0
  100. package/dist/tools/deps.js.map +1 -0
  101. package/dist/tools/follow-ups.d.ts +120 -0
  102. package/dist/tools/follow-ups.d.ts.map +1 -0
  103. package/dist/tools/follow-ups.js +369 -0
  104. package/dist/tools/follow-ups.js.map +1 -0
  105. package/dist/tools/forget-preferences.d.ts +4 -0
  106. package/dist/tools/forget-preferences.d.ts.map +1 -0
  107. package/dist/tools/forget-preferences.js +24 -0
  108. package/dist/tools/forget-preferences.js.map +1 -0
  109. package/dist/tools/get-hotel.d.ts +4 -0
  110. package/dist/tools/get-hotel.d.ts.map +1 -0
  111. package/dist/tools/get-hotel.js +324 -0
  112. package/dist/tools/get-hotel.js.map +1 -0
  113. package/dist/tools/hotel-choices.d.ts +132 -0
  114. package/dist/tools/hotel-choices.d.ts.map +1 -0
  115. package/dist/tools/hotel-choices.js +558 -0
  116. package/dist/tools/hotel-choices.js.map +1 -0
  117. package/dist/tools/itinerary.d.ts +4 -0
  118. package/dist/tools/itinerary.d.ts.map +1 -0
  119. package/dist/tools/itinerary.js +148 -0
  120. package/dist/tools/itinerary.js.map +1 -0
  121. package/dist/tools/list-booking-addons.d.ts +4 -0
  122. package/dist/tools/list-booking-addons.d.ts.map +1 -0
  123. package/dist/tools/list-booking-addons.js +21 -0
  124. package/dist/tools/list-booking-addons.js.map +1 -0
  125. package/dist/tools/list-bookings.d.ts +4 -0
  126. package/dist/tools/list-bookings.d.ts.map +1 -0
  127. package/dist/tools/list-bookings.js +119 -0
  128. package/dist/tools/list-bookings.js.map +1 -0
  129. package/dist/tools/list-extras.d.ts +4 -0
  130. package/dist/tools/list-extras.d.ts.map +1 -0
  131. package/dist/tools/list-extras.js +90 -0
  132. package/dist/tools/list-extras.js.map +1 -0
  133. package/dist/tools/list-hotels.d.ts +4 -0
  134. package/dist/tools/list-hotels.d.ts.map +1 -0
  135. package/dist/tools/list-hotels.js +891 -0
  136. package/dist/tools/list-hotels.js.map +1 -0
  137. package/dist/tools/list-shop-items.d.ts +4 -0
  138. package/dist/tools/list-shop-items.d.ts.map +1 -0
  139. package/dist/tools/list-shop-items.js +34 -0
  140. package/dist/tools/list-shop-items.js.map +1 -0
  141. package/dist/tools/list-shop-orders.d.ts +4 -0
  142. package/dist/tools/list-shop-orders.d.ts.map +1 -0
  143. package/dist/tools/list-shop-orders.js +22 -0
  144. package/dist/tools/list-shop-orders.js.map +1 -0
  145. package/dist/tools/look-up.d.ts +4 -0
  146. package/dist/tools/look-up.d.ts.map +1 -0
  147. package/dist/tools/look-up.js +170 -0
  148. package/dist/tools/look-up.js.map +1 -0
  149. package/dist/tools/output-schemas.d.ts +645 -0
  150. package/dist/tools/output-schemas.d.ts.map +1 -0
  151. package/dist/tools/output-schemas.js +503 -0
  152. package/dist/tools/output-schemas.js.map +1 -0
  153. package/dist/tools/paid-lines.d.ts +718 -0
  154. package/dist/tools/paid-lines.d.ts.map +1 -0
  155. package/dist/tools/paid-lines.js +359 -0
  156. package/dist/tools/paid-lines.js.map +1 -0
  157. package/dist/tools/pay-with-union-pay.d.ts +4 -0
  158. package/dist/tools/pay-with-union-pay.d.ts.map +1 -0
  159. package/dist/tools/pay-with-union-pay.js +112 -0
  160. package/dist/tools/pay-with-union-pay.js.map +1 -0
  161. package/dist/tools/payment-words.d.ts +269 -0
  162. package/dist/tools/payment-words.d.ts.map +1 -0
  163. package/dist/tools/payment-words.js +365 -0
  164. package/dist/tools/payment-words.js.map +1 -0
  165. package/dist/tools/pick-room.d.ts +4 -0
  166. package/dist/tools/pick-room.d.ts.map +1 -0
  167. package/dist/tools/pick-room.js +23 -0
  168. package/dist/tools/pick-room.js.map +1 -0
  169. package/dist/tools/policies.d.ts +4 -0
  170. package/dist/tools/policies.d.ts.map +1 -0
  171. package/dist/tools/policies.js +74 -0
  172. package/dist/tools/policies.js.map +1 -0
  173. package/dist/tools/pricing.d.ts +55 -0
  174. package/dist/tools/pricing.d.ts.map +1 -0
  175. package/dist/tools/pricing.js +260 -0
  176. package/dist/tools/pricing.js.map +1 -0
  177. package/dist/tools/put-room-line.d.ts +12 -0
  178. package/dist/tools/put-room-line.d.ts.map +1 -0
  179. package/dist/tools/put-room-line.js +314 -0
  180. package/dist/tools/put-room-line.js.map +1 -0
  181. package/dist/tools/quote-card.d.ts +234 -0
  182. package/dist/tools/quote-card.d.ts.map +1 -0
  183. package/dist/tools/quote-card.js +375 -0
  184. package/dist/tools/quote-card.js.map +1 -0
  185. package/dist/tools/refund-booking.d.ts +4 -0
  186. package/dist/tools/refund-booking.d.ts.map +1 -0
  187. package/dist/tools/refund-booking.js +112 -0
  188. package/dist/tools/refund-booking.js.map +1 -0
  189. package/dist/tools/request-booking.d.ts +4 -0
  190. package/dist/tools/request-booking.d.ts.map +1 -0
  191. package/dist/tools/request-booking.js +5 -0
  192. package/dist/tools/request-booking.js.map +1 -0
  193. package/dist/tools/request-words.d.ts +238 -0
  194. package/dist/tools/request-words.d.ts.map +1 -0
  195. package/dist/tools/request-words.js +487 -0
  196. package/dist/tools/request-words.js.map +1 -0
  197. package/dist/tools/room-choices.d.ts +64 -0
  198. package/dist/tools/room-choices.d.ts.map +1 -0
  199. package/dist/tools/room-choices.js +348 -0
  200. package/dist/tools/room-choices.js.map +1 -0
  201. package/dist/tools/session-notes.d.ts +164 -0
  202. package/dist/tools/session-notes.d.ts.map +1 -0
  203. package/dist/tools/session-notes.js +412 -0
  204. package/dist/tools/session-notes.js.map +1 -0
  205. package/dist/tools/sign-in.d.ts +4 -0
  206. package/dist/tools/sign-in.d.ts.map +1 -0
  207. package/dist/tools/sign-in.js +72 -0
  208. package/dist/tools/sign-in.js.map +1 -0
  209. package/dist/tools/sign-out.d.ts +4 -0
  210. package/dist/tools/sign-out.d.ts.map +1 -0
  211. package/dist/tools/sign-out.js +13 -0
  212. package/dist/tools/sign-out.js.map +1 -0
  213. package/dist/tools/terms-answer.d.ts +114 -0
  214. package/dist/tools/terms-answer.d.ts.map +1 -0
  215. package/dist/tools/terms-answer.js +475 -0
  216. package/dist/tools/terms-answer.js.map +1 -0
  217. package/dist/tools/tool-set.d.ts +1474 -0
  218. package/dist/tools/tool-set.d.ts.map +1 -0
  219. package/dist/tools/tool-set.js +497 -0
  220. package/dist/tools/tool-set.js.map +1 -0
  221. package/dist/tools/view-trip.d.ts +4 -0
  222. package/dist/tools/view-trip.d.ts.map +1 -0
  223. package/dist/tools/view-trip.js +7 -0
  224. package/dist/tools/view-trip.js.map +1 -0
  225. package/dist/tools.d.ts +13 -2089
  226. package/dist/tools.d.ts.map +1 -1
  227. package/dist/tools.js +11 -10685
  228. package/dist/tools.js.map +1 -1
  229. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-set.d.ts","sourceRoot":"","sources":["../../src/tools/tool-set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAwC,MAAM,eAAe,CAAC;AAC/F,OAAO,KA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;;;;IACC,CAAC;AAQjD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAQnC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,EAChG,GAAG,CAAC,EACJ,OAAO;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,UAAU,CAAA;CAAE,EAC9C,OAAO,MAAM,KACZ,CA+BF,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,GAAG,SAAS,EAAE,MAAM,mBAAmB,KAAG,GAAG,CAAC,MAAM,CAyC9E,CAAC;AAEL;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,mBAAmB,KAAG,OACpB,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC,KAAG,MACoO,CAAC;AAE3S;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAAI,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC,KAAG,MAC0J,CAAC"}
@@ -0,0 +1,497 @@
1
+ import { FULL_CAPABILITIES, unpaidBookingNote } from '../backend.js';
2
+ import { allTools } from './all-tools.js';
3
+ import { HOME_LIST_MAX } from './current-trip.js';
4
+ import { SHOP_ORDERS_IN_BOOKINGS, STAYS_ON_THEIR_OWN } from './output-schemas.js';
5
+ // The eleven things a guest can do: find hotels, look at one on dates, see what
6
+ // else it offers, build a trip, ask for the rooms, and deal with a booking they
7
+ // already have.
8
+ //
9
+ // ⚠️ TOOL DESCRIPTIONS SAY WHAT A TOOL DOES AND NOTHING ELSE. No "always call
10
+ // X first", no "do not use web search", no rules about the model's behaviour.
11
+ // That is not style: the directory listings both attest that "tool descriptions
12
+ // contain no instructions about model behavior, other tools, or external
13
+ // instruction sources", and the shopping connector had to move nine
14
+ // descriptions' worth of guidance into the server instructions on 2026-09-17 to
15
+ // make that attestation true. This package starts there. Behaviour lives in
16
+ // surface.ts, and `tool-descriptions.test.ts` holds the line.
17
+ /**
18
+ * Annotations, every hint stated, and each one true of the code.
19
+ *
20
+ * OpenAI's review rejected the shopping app's v1.0.0 over exactly this - an
21
+ * absent `idempotentHint` reads as null, and `openWorldHint: false` was a claim
22
+ * the code could not support. So: reads are reads, the trip tools write OUR
23
+ * state and say so, and `openWorldHint` follows where the rooms actually come
24
+ * from - false while this serves a local demonstration file, true once a
25
+ * deployment points at the group's own booking system, which answers with
26
+ * whatever it says at that moment.
27
+ */
28
+ export const reads = (title, openWorld) => ({
29
+ title,
30
+ readOnlyHint: true,
31
+ destructiveHint: false,
32
+ idempotentHint: true,
33
+ openWorldHint: openWorld,
34
+ });
35
+ /** Changes the trip we hold for this conversation. Nothing at the hotel moves. */
36
+ export const edits = (title, openWorld) => ({
37
+ title,
38
+ readOnlyHint: false,
39
+ destructiveHint: false,
40
+ idempotentHint: true,
41
+ openWorldHint: openWorld,
42
+ });
43
+ /**
44
+ * Writes over something that was there - the whole trip, or a booking's nights.
45
+ * Repeating it changes nothing more, but what it replaced is gone (2026-10-05
46
+ * audit, P3: these two said `destructiveHint: false`).
47
+ */
48
+ export const replaces = (title, openWorld) => ({
49
+ title,
50
+ readOnlyHint: false,
51
+ destructiveHint: true,
52
+ idempotentHint: true,
53
+ openWorldHint: openWorld,
54
+ });
55
+ /** Asks the hotel to hold rooms. Takes no money, and undoing it is what the cancel tools are for. */
56
+ export const books = (title, openWorld) => ({
57
+ title,
58
+ readOnlyHint: false,
59
+ destructiveHint: false,
60
+ idempotentHint: false,
61
+ openWorldHint: openWorld,
62
+ });
63
+ /**
64
+ * Places an order with the hotel's group - a booking, or the guest's agreement that sends it
65
+ * (0.75.0, T3). `destructiveHint: true`: OpenAI's rule gives it to "an irreversible send or a
66
+ * transaction", and that the group lets a booking be cancelled afterwards is not a reason to
67
+ * say false. Not idempotent: a second call is a second order.
68
+ */
69
+ export const orders = (title, openWorld) => ({
70
+ title,
71
+ readOnlyHint: false,
72
+ destructiveHint: true,
73
+ idempotentHint: false,
74
+ openWorldHint: openWorld,
75
+ });
76
+ export const cancels = (title, openWorld) => ({
77
+ title,
78
+ readOnlyHint: false,
79
+ destructiveHint: true,
80
+ idempotentHint: true,
81
+ openWorldHint: openWorld,
82
+ });
83
+ // ⚠️ THE SHAPE IS IN THE SCHEMA, not only in the words (2026-10-05 audit, P2):
84
+ // a date, a count of rooms and a number of guests each say what they may be.
85
+ export const DATE = (what) => ({
86
+ type: 'string',
87
+ pattern: '^\\d{4}-\\d{2}-\\d{2}$',
88
+ description: `${what}, as YYYY-MM-DD`,
89
+ });
90
+ /** How many ${nounPlural} one look-up reads - a city's worth, and what a comparison can hold and then some. */
91
+ export const LOOK_UP_MAX = 6;
92
+ /**
93
+ * The tools this deployment offers: every tool, less the ones its backend
94
+ * cannot do, and with the descriptions of the rest saying only what is true
95
+ * of it - see `BackendCapabilities`.
96
+ */
97
+ export const buildTools = (n, v, caps = FULL_CAPABILITIES) => forCapabilities(allTools(n, v), n, v, caps);
98
+ /** The tool names a backend with these capabilities leaves out. */
99
+ /** The list tool's sentence on what it answers asked with no place - every deployment's. */
100
+ const PLACES_SENTENCE = /Asked with no place[\s\S]*?themselves\. /;
101
+ /** The same, where a list without dates is priced for tonight (`listsTonight`) - see `tonightHomeSentence`. */
102
+ const TONIGHT_HOME_SENTENCE = /Asked with no place, it answers with the cities[\s\S]*?asked to see every one\. /;
103
+ /**
104
+ * The most hotels a list priced for tonight by default holds on one page
105
+ * (`listsTonight`, 0.75.1, 总线程 11-18): every one is a price asked of the group - two
106
+ * calls, and its products - so a guest who named no nights waits for twelve at most, and
107
+ * the rest come with the next page. A `limit` above it is taken as this.
108
+ */
109
+ export const TONIGHT_PAGE_MAX = 12;
110
+ /**
111
+ * What the list tool answers asked with no place, where a list without dates is priced
112
+ * for tonight and there are too many hotels for one page (Huazhu's production, 88 on
113
+ * 2026-11-18): the cities to choose from - the home - and never `all` for it.
114
+ */
115
+ const tonightHomeSentence = (v) => `Asked with no place, it answers with the cities to choose from, each with how many ${v.nounPlural} it has: that is the home, for a guest who has not said where. Any list here without dates - a city, words, a brand or a filter - is priced for tonight, a page at a time; \`all\` lists every ${v.noun} itself the same way, for a guest who asked to see every one. `;
116
+ /**
117
+ * The list tool where the deployment is one hotel in all (2026-10-15, Huazhu's
118
+ * test system): asked with no place it answers with that hotel's page, not
119
+ * with places to choose from - and says so, or the model offers to look in
120
+ * another city (three smoke runs did). Where it is a few (`HOME_LIST_MAX`,
121
+ * Huazhu's production, 2026-10-30), asked with no place it lists all of them.
122
+ * Never in a market.
123
+ *
124
+ * ⚠️ `all` SAYS SO TOO (0.51.1): its "true lists the hotels themselves" is
125
+ * what had the model open Huazhu's production with `all: true` - the one way
126
+ * past the home, with no tonight and no prices. It is the home there now, and
127
+ * its description says it changes nothing.
128
+ */
129
+ export const homeListing = (t, brand, count) => {
130
+ const v = brand.vocab;
131
+ if (t.name !== brand.tools.listHotels || v.market || count < 1 || count > HOME_LIST_MAX)
132
+ return t;
133
+ const home = count === 1 ? `it answers with that ${v.noun}'s own page` : 'it lists every one of them';
134
+ const one = `This deployment has ${count === 1 ? `ONE ${v.noun} in all` : `only a few ${v.nounPlural}`}: asked with no place, or with \`all\`, ${home}; any list here without dates is priced for tonight; and there is no other ${v.noun} or city to list or search. `;
135
+ // The places sentence as every deployment has it, or as one priced for tonight has it
136
+ // (`tonightHomeSentence`): either way, this one is said instead.
137
+ const places = new RegExp(`${TONIGHT_HOME_SENTENCE.source}|${PLACES_SENTENCE.source}`);
138
+ const schema = t.inputSchema;
139
+ const all = schema?.properties?.all;
140
+ return {
141
+ ...t,
142
+ description: places.test(t.description)
143
+ ? t.description.replace(places, one)
144
+ : `${one}${t.description}`,
145
+ ...(schema && all
146
+ ? {
147
+ inputSchema: {
148
+ ...schema,
149
+ properties: {
150
+ ...schema.properties,
151
+ all: {
152
+ ...all,
153
+ description: `Changes nothing here: with ${count === 1 ? `one ${v.noun} in all` : `only a few ${v.nounPlural}`}, asked with no place ${home} either way`,
154
+ },
155
+ },
156
+ },
157
+ }
158
+ : {}),
159
+ };
160
+ };
161
+ export const withheldTools = (n, caps) => new Set([
162
+ ...(caps.members ? [] : [n.signIn, n.signOut, n.forgetPreferences, n.memberCard]),
163
+ ...(caps.extras ? [] : [n.listExtras]),
164
+ ...(caps.changes || caps.extras ? [] : [n.previewChange, n.changeBooking]),
165
+ ...(caps.policies === false ? [n.policies] : []),
166
+ ...(caps.unionpay ? [] : [n.payWithUnionPay]),
167
+ // The group's own checkout (Otaless 0.63.0): the card's agreement to its
168
+ // terms, a paid booking's refund, and the add-ons after a booking - each
169
+ // listed only where the backend says it has them, and never where nothing
170
+ // can be booked.
171
+ ...(caps.groupCheckout && !caps.readOnly ? [] : [n.acceptTerms]),
172
+ // ⚠️ NO REFUND TOOL BESIDE CANCEL (0.74.2, robin 11-17: 「这个申请退款和取消有什么区别,应该留
173
+ // 一个取消就好了吧」): a paid booking's money is asked back by cancelling it (`caps.refunds`
174
+ // now says that), so a guest - or a model - never has two ways out of one booking.
175
+ n.refundBooking,
176
+ ...(caps.addons && !caps.readOnly ? [] : [n.listBookingAddons, n.addBookingAddon]),
177
+ // The add-on shop (`capabilities.shop`, docs §17.6): its listing where the deployment has it, and
178
+ // its buy tool only where buying is open too. The names exist only with `data.otaless.shop`.
179
+ ...(n.listShopItems && !(caps.shop && !caps.readOnly) ? [n.listShopItems] : []),
180
+ ...(n.buyShopItem && !(caps.shop && caps.shopBuy && !caps.readOnly) ? [n.buyShopItem] : []),
181
+ // The account's value-added service orders (0.84.1): where the shop's listing is.
182
+ ...(n.listShopOrders && !(caps.shop && !caps.readOnly) ? [n.listShopOrders] : []),
183
+ // The card's own add-ons tool (0.82.0): only where the hotel's add-ons or the shop are on.
184
+ ...(n.cardAddons && !((caps.addons || caps.shop) && !caps.readOnly) ? [n.cardAddons] : []),
185
+ // Nothing can be booked here yet (`readOnly`, Otaless 2026-11-03): no tool
186
+ // that books, finds, changes or cancels a booking - the card's own two
187
+ // for Reserve included, so no button that books is drawn.
188
+ ...(caps.readOnly
189
+ ? [
190
+ n.requestBooking,
191
+ n.pickRoom,
192
+ n.bookPicked,
193
+ n.listBookings,
194
+ n.previewCancellation,
195
+ n.cancelBooking,
196
+ n.previewChange,
197
+ n.changeBooking,
198
+ n.payWithUnionPay,
199
+ ]
200
+ : []),
201
+ ]);
202
+ /**
203
+ * Orders are the ACCOUNT'S (Otaless, 0.75.0 T5/T6): the group's own checkout with booking on.
204
+ * A booking is found by the account that made it - never by a confirmation code and the email
205
+ * it was made with - and what it sends the group is the guest's name, phone, email, dates and
206
+ * rooms and nothing else (no requests, arrival time or notes). So no tool lists an `email` to
207
+ * find one, nor a field the order has nowhere to carry. (`groupCheckout` is only ever Otaless's.)
208
+ */
209
+ export const ordersByAccount = (caps) => !!caps.groupCheckout && !caps.readOnly;
210
+ /**
211
+ * What to tell a guest who wants to book where nothing can be booked yet
212
+ * (`capabilities.readOnly`) - the same words in the instructions and in each
213
+ * answer that would otherwise say how to book.
214
+ */
215
+ export const readOnlyWords = (v) => `Nothing can be booked through ${v.brand} yet: it shows ${v.noun}s, rooms and prices only. When the guest wants to book, say so plainly - nothing is booked or held - and suggest booking with the ${v.noun}'s own group directly, on its website or app, with the ${v.noun}, room and dates from here.`;
216
+ /**
217
+ * Said with every price where nothing can be booked yet (`capabilities.readOnly`;
218
+ * 总线程 11-09, Manus on Otaless after 0.59.0): asked for a hotel's rooms after a
219
+ * comparison, the model answered from the comparison - which said nothing of
220
+ * it - and called them "两种可订房型", with nowhere to book. On a list, a hotel's
221
+ * page, a comparison and a plan, in the text and, word for word, in the
222
+ * structure (`notBookable`); what `readOnlyWords` tells it to do when the guest
223
+ * asks to book, in one sentence.
224
+ */
225
+ export const notBookableWords = (v) => `Nothing can be booked through ${v.brand} yet: never call a ${v.noun}, room or rate here bookable (可订) - to book, the guest uses the ${v.noun}'s own group, on its website or app, with the ${v.noun}, room and dates from here.`;
226
+ const forCapabilities = (tools, n, v, caps) => {
227
+ const withheld = withheldTools(n, caps);
228
+ const without = (schema, ...keys) => {
229
+ const s = schema;
230
+ const properties = { ...(s.properties ?? {}) };
231
+ for (const k of keys)
232
+ delete properties[k];
233
+ return { ...s, properties };
234
+ };
235
+ return tools
236
+ .filter((t) => !withheld.has(t.name))
237
+ .map((t) => {
238
+ let out = t;
239
+ // ⚠️ A BIG DEPLOYMENT PRICED FOR TONIGHT HAS A HOME OF CITIES, AND `all` IS NOT IT
240
+ // (robin 11-18, 华住生产 at 88 hotels: 「华住首页改成城市选择的吧」 - and a list of all 88,
241
+ // 「选好日期看价格」 on each, was not what opening Huazhu should be). The sentence a
242
+ // deployment of a few has instead is `homeListing`'s, which replaces this one.
243
+ if (caps.listsTonight && !v.market && t.name === n.listHotels) {
244
+ const schema = out.inputSchema;
245
+ const all = schema?.properties?.all;
246
+ out = {
247
+ ...out,
248
+ description: out.description.replace(PLACES_SENTENCE, tonightHomeSentence(v)),
249
+ ...(schema && all
250
+ ? {
251
+ inputSchema: {
252
+ ...schema,
253
+ properties: {
254
+ ...schema.properties,
255
+ all: {
256
+ ...all,
257
+ description: `True lists every ${v.noun} itself, a page at a time - only for a guest who asked to see every one. With nothing named the answer is the cities to choose from, and \`all\` is not the way to it`,
258
+ },
259
+ },
260
+ },
261
+ }
262
+ : {}),
263
+ };
264
+ }
265
+ // ⚠️ NOTHING TO BOOK, SO NO "TO BOOK" (2026-11-09 audit, T3): a read-only
266
+ // deployment's list is for looking through and picking one.
267
+ if (caps.readOnly && t.name === n.listHotels) {
268
+ out = {
269
+ ...out,
270
+ description: out.description.replace(`pick one ${v.noun} to book.`, `pick one ${v.noun}.`),
271
+ };
272
+ }
273
+ if (!caps.extras) {
274
+ if (t.name === n.addToTrip) {
275
+ out = {
276
+ ...out,
277
+ description: `Puts room nights into the trip - a plan kept in this conversation - and returns the whole trip, priced. Nothing in the trip is booked or charged. A room line needs the ${v.noun}, the room type and the dates; \`rooms\` sets how many of that room type. A line is replaced, not stacked: sending the same room and dates again sets that line's room count, and 0 takes it out of the plan.`,
278
+ inputSchema: without(out.inputSchema, 'extra', 'quantity'),
279
+ };
280
+ }
281
+ if (t.name === n.viewTrip) {
282
+ out = {
283
+ ...out,
284
+ description: 'The trip as it stands: every room line with its own total, the taxes and fees, and the all-in total, laid out day by day (on the card, in an app that draws one).',
285
+ };
286
+ }
287
+ if (t.name === n.lookUp) {
288
+ out = {
289
+ ...out,
290
+ description: out.description.replace(', its add-ons with their ids and prices', ''),
291
+ };
292
+ }
293
+ if (t.name === n.itinerary) {
294
+ out = JSON.parse(JSON.stringify(out).replaceAll(' and add-ons', ''));
295
+ }
296
+ }
297
+ // ⚠️ ONLY WHERE THERE ARE ROOMS BY THE HOUR: a connector that sells none
298
+ // lists no parameter for them (总线程, 2026-10-12: inputs only gain
299
+ // optional parameters, the descriptions only say facts).
300
+ if (caps.hourly) {
301
+ const withProps = (schema, props) => {
302
+ const s = schema;
303
+ return { ...s, properties: { ...(s.properties ?? {}), ...props } };
304
+ };
305
+ if (t.name === n.getHotel)
306
+ out = {
307
+ ...out,
308
+ inputSchema: withProps(out.inputSchema, {
309
+ hourly: {
310
+ type: 'boolean',
311
+ description: "Today's rooms by the hour, each priced for its hours. checkIn and checkOut are not used: rooms by the hour are sold for today only.",
312
+ },
313
+ }),
314
+ };
315
+ if (t.name === n.listHotels)
316
+ out = {
317
+ ...out,
318
+ inputSchema: withProps(out.inputSchema, {
319
+ hourly: {
320
+ type: 'boolean',
321
+ description: `Only ${v.nounPlural} with a room by the hour today, each priced by its cheapest block.`,
322
+ },
323
+ }),
324
+ };
325
+ if (t.name === n.addToTrip || t.name === n.pickRoom)
326
+ out = {
327
+ ...out,
328
+ inputSchema: withProps(out.inputSchema, {
329
+ startTime: {
330
+ type: 'string',
331
+ pattern: '^([01]?\\d|2[0-3]):[0-5]\\d$',
332
+ description: 'For a room by the hour: when the guest arrives today, HH:MM, within the start times the room lists. The date is today; checkOut is not used.',
333
+ },
334
+ }),
335
+ };
336
+ }
337
+ // ⚠️ ONLY WHERE COUPONS ARE TAKEN (`capabilities.coupons`): a group that
338
+ // takes none is offered no parameter for one.
339
+ if (caps.coupons) {
340
+ const withCoupon = (schema, description) => {
341
+ const s = schema;
342
+ return {
343
+ ...s,
344
+ properties: { ...(s.properties ?? {}), coupon: { type: 'string', description } },
345
+ };
346
+ };
347
+ if (t.name === n.viewTrip)
348
+ out = {
349
+ ...out,
350
+ description: `${out.description} With \`coupon\`, priced with that coupon taken off, after the member rate - nothing is spent by looking.`,
351
+ inputSchema: withCoupon(out.inputSchema, 'A coupon the signed-in member holds, by the id the sign-in answer gave it. Only one the guest named or agreed to - never one picked for them'),
352
+ };
353
+ if (t.name === n.requestBooking)
354
+ out = {
355
+ ...out,
356
+ inputSchema: withCoupon(out.inputSchema, 'A coupon the signed-in member holds, by its id: used on this booking, which spends it. Only when the guest named it or agreed to it - the one the price they agreed to was shown with. If it cannot be used, nothing is booked'),
357
+ };
358
+ // The card's stepper and Remove on a trip priced with a coupon keep it.
359
+ if (t.name === n.addToTrip)
360
+ out = {
361
+ ...out,
362
+ inputSchema: withCoupon(out.inputSchema, 'The coupon this trip is already priced with, by its id, to keep it on the new price - nothing is spent. Only one the guest named or agreed to'),
363
+ };
364
+ if (t.name === n.pickRoom || t.name === n.bookPicked)
365
+ out = {
366
+ ...out,
367
+ inputSchema: withCoupon(out.inputSchema, 'The coupon the guest chose on the card, by its id'),
368
+ };
369
+ if (t.name === n.signIn)
370
+ out = {
371
+ ...out,
372
+ description: out.description.replace('it answers with their tier, their point balance', 'it answers with their tier, their point balance, the coupons they hold'),
373
+ };
374
+ }
375
+ // ⚠️ THE PICKED ROOM'S BOOKING TAKES THE SAME GUEST FIELDS as the trip's:
376
+ // a phone where the hotel needs one, and no `rememberRequests` without
377
+ // members. Its description is its own (below, only request_booking's).
378
+ if (t.name === n.requestBooking || t.name === n.bookPicked) {
379
+ if (caps.requiresPhone) {
380
+ const schema = out.inputSchema;
381
+ out = {
382
+ ...out,
383
+ inputSchema: {
384
+ ...schema,
385
+ properties: {
386
+ ...(schema.properties ?? {}),
387
+ phone: {
388
+ type: 'string',
389
+ description: v.market
390
+ ? "The guest's phone number, for the hotel to reach them - needed for some groups' hotels, and the answer asks for it when it is"
391
+ : "The guest's phone number, for the hotel to reach them",
392
+ },
393
+ },
394
+ // ⚠️ NOT REQUIRED IN A MARKET: one group needing a phone made it
395
+ // required for every booking, and asked of a Shangri-La stay the
396
+ // model would not book without one (market eval, 2026-10-08).
397
+ // Whether this trip needs one is the trip's groups' to say.
398
+ required: v.market
399
+ ? (schema.required ?? [])
400
+ : [...new Set([...(schema.required ?? []), 'phone'])],
401
+ },
402
+ };
403
+ }
404
+ if (!caps.members)
405
+ out = { ...out, inputSchema: without(out.inputSchema, 'rememberRequests') };
406
+ // ⚠️ THE GROUP'S OWN CHECKOUT (Otaless 0.63.0): a booking is an order with
407
+ // the group, which may first send its terms back for the GUEST to agree
408
+ // to, and is paid on the group's own page. One list for every client, so
409
+ // "the card or a one-time page" - never a card alone.
410
+ if (t.name === n.requestBooking && caps.groupCheckout)
411
+ out = {
412
+ ...out,
413
+ description: `Books the trip's rooms for a named guest through each hotel group's own checkout, one order per stay with the group that stay belongs to. The group may first send its booking terms back for the guest to read and agree to themselves - on the card or on a one-time page, not in the chat - and the payment page that booking gives (Curless's, or the group's own), with its host and the time to pay by, is then in the answer. A stay is booked once it is paid; the bookings list says when it has been.`,
414
+ };
415
+ // A market's suppliers book differently - its own description says so.
416
+ if (t.name === n.requestBooking && caps.booking === 'pay-at-hotel' && !v.market) {
417
+ out = {
418
+ ...out,
419
+ // ⚠️ A BOOKING THAT IS NOT A RESERVATION SAYS SO ITSELF (2026-09-30: the
420
+ // description promised "the hotel's own reservation" on the sandbox) -
421
+ // as the fact, never "test" or "simulated" (robin, 2026-11-03).
422
+ description: v.test || v.demo
423
+ ? `Books the trip's rooms for a named guest: each stay gets its own confirmation code, and ${v.test
424
+ ? 'none of it holds a room for anyone or is a stay anyone goes to'
425
+ : `none of it is sent to ${v.brand} or holds a real room`}. ${caps.prepaid
426
+ ? 'A rate marked paid in advance is booked on its own, and not at once: the answer gives a card page where no real money moves and the time it is paid by, and the stay is booked once it is paid - no card is collected here. Every other rate is paid by nobody.'
427
+ : 'No payment is taken and no card is collected.'} ${STAYS_ON_THEIR_OWN} Preferences - a bed type, a floor, a late arrival - ride along on the booking as requests.`
428
+ : `Books the trip's rooms with ${v.brand} for a named guest: each stay becomes the hotel's own reservation, with its own confirmation code, paid at the hotel. No payment is taken here and no card is collected. ${STAYS_ON_THEIR_OWN} ${caps.unpaidBooking ? `Rates paid at the hotel can be booked here. ${unpaidBookingNote(v.brand, caps.unpaidBooking.hotels)}` : 'Only rates paid at the hotel can be booked here.'} Preferences - a bed type, a floor, a late arrival - ride along on the booking as requests the desk tries to meet.`,
429
+ };
430
+ }
431
+ // The card's own step books the same way, and the same is true of it (总线程 11-18,
432
+ // 华住上架). Only where nothing is paid in advance, and not in a test or a demonstration.
433
+ if (t.name === n.bookPicked &&
434
+ caps.booking === 'pay-at-hotel' &&
435
+ !caps.prepaid &&
436
+ !v.market &&
437
+ !v.test &&
438
+ !v.demo)
439
+ out = {
440
+ ...out,
441
+ description: caps.unpaidBooking
442
+ ? `${out.description} Rates paid at the hotel can be booked here. ${unpaidBookingNote(v.brand, caps.unpaidBooking.hotels)}`
443
+ : `${out.description} Only rates paid at the hotel can be booked here.`,
444
+ };
445
+ }
446
+ // ⚠️ ORDERS ARE THE ACCOUNT'S (0.75.0, T5/T6; OpenAI: only the data that is needed).
447
+ // Old chats and old cards may still send `email`, `requests`, `arrivingAt` or `notes`:
448
+ // the server takes them and ignores them (`ordersByAccount`).
449
+ if (ordersByAccount(caps)) {
450
+ if (t.name === n.listBookings) {
451
+ out = {
452
+ ...out,
453
+ // The account's, in any conversation signed in to it (`otaless/booking.ts`
454
+ // `listBookings`: by the sign-in at each order's group) - and nothing when no one is.
455
+ description: `The bookings of the ${v.brand} account signed in here - made in any conversation signed in to it - newest to oldest, with their status, dates and confirmation codes. Nothing is listed when no account is signed in.`,
456
+ inputSchema: (() => {
457
+ const s = without(out.inputSchema, 'email');
458
+ return {
459
+ ...s,
460
+ properties: {
461
+ ...s.properties,
462
+ booking: {
463
+ ...s.properties.booking,
464
+ description: "A confirmation code of this account's",
465
+ },
466
+ },
467
+ };
468
+ })(),
469
+ };
470
+ }
471
+ if (t.name === n.previewCancellation || t.name === n.cancelBooking)
472
+ out = { ...out, inputSchema: without(out.inputSchema, 'email') };
473
+ if (t.name === n.requestBooking || t.name === n.bookPicked)
474
+ out = {
475
+ ...out,
476
+ inputSchema: without(out.inputSchema, 'requests', 'arrivingAt', 'notes'),
477
+ };
478
+ }
479
+ // ⚠️ A VALUE-ADDED SERVICE ORDER IS NOT A HOTEL BOOKING (0.84.1, robin 11-25: asked for "my shop
480
+ // orders", the model read the hotel bookings first and had no times). Only where the shop is on:
481
+ // every other deployment's description is word for word as it was (the frozen root listing).
482
+ if (t.name === n.listBookings && n.listShopOrders && caps.shop && !caps.readOnly)
483
+ out = {
484
+ ...out,
485
+ description: `${out.description} ${SHOP_ORDERS_IN_BOOKINGS}`,
486
+ };
487
+ // ⚠️ ONE CANCEL, WHICH ASKS THE REFUND TOO (0.74.2, robin 11-17): said by the tool
488
+ // itself, for the model in every client - there is no refund tool to reach for.
489
+ if (t.name === n.cancelBooking && caps.refunds && !caps.readOnly)
490
+ out = {
491
+ ...out,
492
+ description: `${out.description} A booking already paid: cancelling it also asks the hotel group for all of what was paid back, in the same step - there is no separate refund; the group reviews it and returns it to the card it was paid with, and the answer says what became of the request.`,
493
+ };
494
+ return out;
495
+ });
496
+ };
497
+ //# sourceMappingURL=tool-set.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-set.js","sourceRoot":"","sources":["../../src/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AAO,CAAC,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,CAAC;iBACzE,CAAC;QACN,CAAC;QACD,iGAAiG;QACjG,iGAAiG;QACjG,6FAA6F;QAC7F,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,YAAY,IAAI,CAAC,CAAC,cAAc,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ;YAC9E,GAAG,GAAG;gBACJ,GAAG,GAAG;gBACN,WAAW,EAAE,GAAG,GAAG,CAAC,WAAW,IAAI,uBAAuB,EAAE;aAC7D,CAAC;QACJ,mFAAmF;QACnF,gFAAgF;QAChF,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,aAAa,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ;YAC9D,GAAG,GAAG;gBACJ,GAAG,GAAG;gBACN,WAAW,EAAE,GAAG,GAAG,CAAC,WAAW,mQAAmQ;aACnS,CAAC;QACJ,OAAO,GAAQ,CAAC;IAClB,CAAC,CAAC,CAAC;AACP,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ToolCall } from './call.js';
2
+ import type { ToolAnswer } from './deps.js';
3
+ export declare const answerViewTrip: ({ deps, args, ctx, key }: ToolCall) => Promise<ToolAnswer>;
4
+ //# sourceMappingURL=view-trip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-trip.d.ts","sourceRoot":"","sources":["../../src/tools/view-trip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAI5C,eAAO,MAAM,cAAc,GAAU,0BAA0B,QAAQ,KAAG,OAAO,CAAC,UAAU,CAE3F,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { currentTrip } from './current-trip.js';
2
+ import { couponOf } from './pricing.js';
3
+ import { identity } from './session-notes.js';
4
+ export const answerViewTrip = async ({ deps, args, ctx, key }) => {
5
+ return currentTrip(deps, key, identity(deps, ctx, key), key, couponOf(deps, args), ctx);
6
+ };
7
+ //# sourceMappingURL=view-trip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-trip.js","sourceRoot":"","sources":["../../src/tools/view-trip.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAY,EAAuB,EAAE;IAC9F,OAAO,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;AAC1F,CAAC,CAAC"}