@gojinko/plugin 2.8.0 → 2.10.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jinko",
|
|
3
3
|
"description": "Search flights, book trips, and manage bookings with the Jinko Travel API. Connects to the Jinko MCP server for live flight pricing, trip management, and payment.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.10.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jinko",
|
|
7
7
|
"url": "https://gojinko.com"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jinko",
|
|
3
3
|
"description": "Search flights, book trips, and manage bookings with the Jinko Travel API. Connects to the Jinko MCP server for live flight pricing, trip management, and payment.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.10.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jinko",
|
|
7
7
|
"url": "https://gojinko.com"
|
package/package.json
CHANGED
package/skills/cli/SKILL.md
CHANGED
|
@@ -19,10 +19,23 @@ Auth alternatives:
|
|
|
19
19
|
- **API key** (for scripts / CI): `jinko --api-key jnk_xxx <command>` or `export JINKO_API_KEY=jnk_xxx`.
|
|
20
20
|
- **OAuth (human)**: `jinko auth login` opens a browser, stores token in `~/.jinko/config.yaml`. Auto-refresh is built in. `jinko auth logout` to clear.
|
|
21
21
|
|
|
22
|
+
## Environments (prod / sandbox)
|
|
23
|
+
|
|
24
|
+
Defaults to **production**. Target **sandbox** (isolated data, **separate API keys**) with `--env sandbox`:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
jinko auth login --env sandbox --key jnk_your_sandbox_key # store the sandbox key
|
|
28
|
+
jinko config set environment sandbox # make sandbox the default
|
|
29
|
+
jinko --env prod <command> # one-off prod override
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Prod and sandbox keys are stored separately in `~/.jinko/config.yaml`. Precedence: `--env` → `JINKO_ENV` → config `environment` → `prod`. `JINKO_API_BASE` still overrides the mapped URL (dev/staging).
|
|
33
|
+
|
|
22
34
|
## Global flags
|
|
23
35
|
|
|
24
36
|
- `--format json` (default) or `--format table` — output shape
|
|
25
37
|
- `--api-key <jnk_...>` — override stored creds
|
|
38
|
+
- `--env <prod|sandbox>` — target environment (default `prod`)
|
|
26
39
|
- `-V` / `--version`
|
|
27
40
|
|
|
28
41
|
## Command surface
|
|
@@ -39,7 +52,7 @@ Auth alternatives:
|
|
|
39
52
|
| `select-ancillaries` | Add baggage / seats / meals to a trip item |
|
|
40
53
|
| `book` | Schedule checkout → returns Stripe payment URL |
|
|
41
54
|
| `trip-status` | Full status: cart, quote, fulfillment, bookings |
|
|
42
|
-
| `get-booking` | Retrieve a booking by `JNK-*` ref + last name (guest access).
|
|
55
|
+
| `get-booking` | Retrieve a booking by `JNK-*` ref + last name (guest access). |
|
|
43
56
|
| `refund check / commit / status` | Voluntary refund flow |
|
|
44
57
|
| `schema <command>` | Print request/response schema for a command |
|
|
45
58
|
| `config` | Read/write CLI config |
|
|
@@ -9,7 +9,7 @@ Post-booking operations using Jinko MCP tools.
|
|
|
9
9
|
|
|
10
10
|
## Get a booking
|
|
11
11
|
|
|
12
|
-
Use `get_booking` to retrieve a booking by its Jinko reference and the traveler's last name. No login required.
|
|
12
|
+
Use `get_booking` to retrieve a booking by its Jinko reference and the traveler's last name. No login required.
|
|
13
13
|
|
|
14
14
|
```json
|
|
15
15
|
{
|