Google Flights MCP, CLI and Python Library
chore(npm): rename package to unscoped fli-js (#189)
Punit Aranied6550492b5c
diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.ymlindex 68b9b49..f22ad75 100644--- a/.github/workflows/publish-npm.yml+++ b/.github/workflows/publish-npm.yml@@ -151,7 +151,7 @@ jobs:environment:name: npm- url: https://www.npmjs.com/package/@punitarani/fli+ url: https://www.npmjs.com/package/fli-jssteps:- name: Setup Node.jsdiff --git a/CLAUDE.md b/CLAUDE.mdindex 1603150..8f7ac93 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -141,7 +141,7 @@ server-side; the data is not displayed in the current release.## Releasing-The Python (`flights` on PyPI) and JavaScript (`fli` on npm) packages+The Python (`flights` on PyPI) and JavaScript (`fli-js` on npm) packagesare versioned and released **independently**, but with the same shape:manual `workflow_dispatch` → bump → tag → GitHub Release → publish.diff --git a/docs/guides/release-npm.md b/docs/guides/release-npm.mdindex 27f7a2e..1c0ed1e 100644--- a/docs/guides/release-npm.md+++ b/docs/guides/release-npm.md@@ -1,7 +1,7 @@# Releasing fli-js to npm-Releases of the TypeScript / JavaScript package `fli` on-[npmjs.com](https://www.npmjs.com/package/fli) are driven by a manual+Releases of the TypeScript / JavaScript package `fli-js` on+[npmjs.com](https://www.npmjs.com/package/fli-js) are driven by a manualGitHub Actions workflow. There is no auto-publish on push to `main`;cutting a release is always an explicit, one-click action — same shapeas the Python release flow, but on its own schedule.diff --git a/docs/guides/release.md b/docs/guides/release.mdindex 8f23298..8927ff5 100644--- a/docs/guides/release.md+++ b/docs/guides/release.md@@ -4,7 +4,7 @@ Releases of the Python package `flights` are driven by a manual GitHubActions workflow. There is no auto-publish on push to `main`; cutting arelease is always an explicit, one-click action.-For the TypeScript / JavaScript package (`fli` on npm), see+For the TypeScript / JavaScript package (`fli-js` on npm), see[`release-npm.md`](release-npm.md) — the same shape, different manifest,different tag prefix (`fli-js-vX.Y.Z`).diff --git a/fli-js/README.md b/fli-js/README.mdindex 9a724eb..926d224 100644--- a/fli-js/README.md+++ b/fli-js/README.md@@ -9,7 +9,7 @@ filter encoding, same wire-format decoders.## Install```bash-bun add @punitarani/fli # or: npm install @punitarani/fli / pnpm add @punitarani/fli+npm i fli-js # or: pnpm add fli-js / yarn add fli-js / bun add fli-js```## Quick start@@ -24,7 +24,7 @@ import {SearchFlights,SeatType,SortBy,-} from "@punitarani/fli";+} from "fli-js";const filters = new FlightSearchFilters({passenger_info: { adults: 1, children: 0, infants_in_seat: 0, infants_on_lap: 0 },@@ -47,7 +47,7 @@ console.log(results);### Date-range search```ts-import { Airport, DateSearchFilters, FlightSegment, SearchDates } from "@punitarani/fli";+import { Airport, DateSearchFilters, FlightSegment, SearchDates } from "fli-js";const filters = new DateSearchFilters({passenger_info: { adults: 1, children: 0, infants_in_seat: 0, infants_on_lap: 0 },@@ -77,7 +77,7 @@ The TypeScript port uses native `fetch` (Bun's built-in) and replacesexplicit `proxy` option on `new Client({...})`).```ts-import { Client, SearchFlights } from "@punitarani/fli";+import { Client, SearchFlights } from "fli-js";const search = new SearchFlights(new Client({ proxy: "http://user:[email protected]:8080" }),@@ -89,11 +89,11 @@ Set the per-request timeout with `FLI_TIMEOUT=30` (seconds) or via the## Modules-- `fli/models` — `Airport`, `Airline`, `FlightSearchFilters`, `DateSearchFilters`,+- `fli-js/models` — `Airport`, `Airline`, `FlightSearchFilters`, `DateSearchFilters`,`FlightSegment`, `FlightResult`, `BookingOption`, all enums.-- `fli/core` — string-to-enum parsers, segment builders, airport search,+- `fli-js/core` — string-to-enum parsers, segment builders, airport search,currency token decoders.-- `fli/search` — `SearchFlights`, `SearchDates`, `Client`, error classes,+- `fli-js/search` — `SearchFlights`, `SearchDates`, `Client`, error classes,protobuf token helpers (`buildBookingToken`, `extractBookingTokenFromTfu`).## Developmentdiff --git a/fli-js/package.json b/fli-js/package.jsonindex ed9a957..a986fcc 100644--- a/fli-js/package.json+++ b/fli-js/package.json@@ -1,5 +1,5 @@{- "name": "@punitarani/fli",+ "name": "fli-js","version": "0.0.4","description": "TypeScript port of the fli library: programmatic access to Google Flights data through direct API interaction.","type": "module",