fortrip 0.2.1 → 0.3.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/AGENT_GUIDE.md +114 -42
- package/LICENSE +21 -0
- package/README.md +67 -19
- package/dist/cli.js +763 -133
- package/guides/planning.md +8 -5
- package/package.json +2 -2
- package/skills/fortrip-hotels/SKILL.md +0 -20
package/guides/planning.md
CHANGED
|
@@ -8,9 +8,11 @@ for `npx -y fortrip@latest`.
|
|
|
8
8
|
|
|
9
9
|
## What to collect
|
|
10
10
|
|
|
11
|
-
Keep track of: dates (or the flexible window), nights, destination(s),
|
|
12
|
-
and
|
|
13
|
-
and what the user said matters most (cheapest, most
|
|
11
|
+
Keep track of: dates (or the flexible window), nights, destination(s), rooms
|
|
12
|
+
and the guests in each room, room constraints (beds, connecting rooms,
|
|
13
|
+
accessibility), budget, and what the user said matters most (cheapest, most
|
|
14
|
+
flexible, closest to X). `--adults` and `--child-age` are per room and every
|
|
15
|
+
room has the same occupancy, so 4 adults in 2 rooms is `--rooms 2 --adults 2`.
|
|
14
16
|
|
|
15
17
|
Ask only for what changes which hotels qualify or how they rank. If children
|
|
16
18
|
come along, ask each child's age; `rates` and `book` need it. Don't ask for
|
|
@@ -50,5 +52,6 @@ separate payment link.
|
|
|
50
52
|
request needs more hotels or date combinations than a few calls can cover,
|
|
51
53
|
narrow it with the user, or present the result as a comparison of the
|
|
52
54
|
hotels you priced, not the best overall.
|
|
53
|
-
- Urgency is not consent:
|
|
54
|
-
|
|
55
|
+
- Urgency is not consent: run `book` only for the rate the user picked, and
|
|
56
|
+
give the payment link only after the user confirms the terms that `book`
|
|
57
|
+
returned.
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fortrip",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"license": "MIT",
|
|
4
5
|
"description": "Search, price and book Fortrip hotels from the terminal or an AI agent.",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"repository": {
|
|
@@ -12,7 +13,6 @@
|
|
|
12
13
|
},
|
|
13
14
|
"files": [
|
|
14
15
|
"dist",
|
|
15
|
-
"skills",
|
|
16
16
|
"guides",
|
|
17
17
|
"AGENT_GUIDE.md",
|
|
18
18
|
"README.md"
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: fortrip-hotels
|
|
3
|
-
description: Search hotels, compare live room rates and create a hotel booking with a payment link through Fortrip. Use when the user wants to find, compare, price or book a hotel stay, including flexible dates, budgets, split stays or several destinations, or asks for a hotel payment link.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Fortrip hotels
|
|
7
|
-
|
|
8
|
-
Before anything else, run:
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
npx -y fortrip@latest skill
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
It prints the current instructions for the Fortrip CLI: commands, call order,
|
|
15
|
-
login, and what to show the user before giving a payment link. Follow them.
|
|
16
|
-
They ship with each CLI release, so this file stays short and doesn't go out
|
|
17
|
-
of date.
|
|
18
|
-
|
|
19
|
-
Needs Node.js 22 or newer. If the command fails, tell the user why instead of
|
|
20
|
-
guessing the CLI's flags.
|