fortrip 4.0.0 → 4.2.0-rc.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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # fortrip
2
2
 
3
- Search hotels, check live offers and order one with a payment link, from the
4
- terminal or an AI agent. Hotels only for now. The npm package and the command
3
+ Search hotels, compare live rates, book and pay securely, and cancel
4
+ bookings, from the terminal or an AI agent. Hotels only for now. The npm package and the command
5
5
  are both `fortrip`; they talk to Fortrip API v1, `https://api.fortrip.ai/v1`.
6
6
 
7
7
  ```bash
@@ -83,11 +83,11 @@ other command that needs to save a sign-in exits 1 too. The error says to set
83
83
  | `orders get <orderId>` | Show an order and its status |
84
84
  | `orders list` | List your orders, newest first |
85
85
  | `orders cancel <orderId>` | Cancel an order under its terms, for the penalty the user agreed to |
86
- | `orders pay <orderId>` | Pay an order with a shared payment token instead of its link |
87
- | `login` | Sign in through the browser (device code) |
86
+ | `orders pay <orderId>` | Pay an order with a Link wallet token (US and Canada) or with Alipay or WeChat Pay, instead of its payment link |
87
+ | `login` | Sign in through the browser |
88
88
  | `logout` | Revoke and forget the saved token |
89
89
  | `whoami` | Show the signed-in account |
90
- | `guide [topic]` | Print the guide for AI agents (Markdown) |
90
+ | `guide [topic]` | Print the guide for AI agents (Markdown); `fortrip guide planning` prints the planning guide |
91
91
  | `mcp` | Run an MCP server over stdio for local clients, bridged to Fortrip's hosted server |
92
92
 
93
93
  ```bash
@@ -106,7 +106,9 @@ same.
106
106
 
107
107
  `hotels book` creates an unpaid order and prints a payment link for it.
108
108
  Nothing is charged until the person pays on the page the link opens, or
109
- approves a shared payment token for `orders pay` in their wallet. Orders
109
+ approves a shared payment token for `orders pay` in their wallet, or
110
+ scans the WeChat Pay code or opens the Alipay link that `orders pay --wallet`
111
+ prints. Orders
110
112
  are paid in USD whatever `--display-currency` shows.
111
113
 
112
114
  `orders get` and `orders list` say of each order whether it can be cancelled
@@ -138,9 +140,9 @@ npx skills add FortripEngineering/fortrip --skill fortrip-cli
138
140
 
139
141
  ## MCP server
140
142
 
141
- Fortrip's hosted MCP server is `https://mcp.fortrip.ai/`. It has eight tools:
143
+ Fortrip's hosted MCP server is `https://mcp.fortrip.ai/`. It has nine tools:
142
144
  `get_planning_guide`, `search_hotels`, `get_hotel`, `get_hotel_offers`,
143
- `book_hotel`, `get_order`, `list_orders` and `cancel_order`.
145
+ `book_hotel`, `get_order`, `list_orders`, `cancel_order` and `pay_order`.
144
146
 
145
147
  Clients that support remote MCP servers with OAuth don't need the CLI: add
146
148
  `https://mcp.fortrip.ai/` as a remote server and sign in to Fortrip in the
@@ -224,8 +226,10 @@ that starts with `local_`.
224
226
 
225
227
  ## Support
226
228
 
227
- For changes, cancellations, refunds or other help with a booking, email
228
- [info@fortrip.ai](mailto:info@fortrip.ai) with the order's reference or link.
229
+ A cancellation the CLI can make goes through `fortrip orders cancel`. For
230
+ changes, other cancellations, refunds or other help with a booking, email
231
+ [info@fortrip.ai](mailto:info@fortrip.ai) with the order's reference. Never
232
+ send the payment link.
229
233
 
230
234
  ## Releasing
231
235
 
@@ -28,3 +28,29 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
28
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
29
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
30
  SOFTWARE.
31
+
32
+ ================================================================================
33
+ uqr 0.1.3 (MIT)
34
+ --------------------------------------------------------------------------------
35
+ MIT License
36
+
37
+ Copyright (c) Project Nayuki
38
+ Copyright (c) 2023 Anthony Fu <https://github.com/antfu>
39
+
40
+ Permission is hereby granted, free of charge, to any person obtaining a copy
41
+ of this software and associated documentation files (the "Software"), to deal
42
+ in the Software without restriction, including without limitation the rights
43
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
44
+ copies of the Software, and to permit persons to whom the Software is
45
+ furnished to do so, subject to the following conditions:
46
+
47
+ The above copyright notice and this permission notice shall be included in all
48
+ copies or substantial portions of the Software.
49
+
50
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
51
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
52
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
53
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
54
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
55
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
56
+ SOFTWARE.