letsfg 2026.5.55 → 2026.5.57

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.
@@ -1596,6 +1596,8 @@ var LetsFG = class {
1596
1596
  if (options.cabinClass) body.cabin_class = options.cabinClass;
1597
1597
  if (options.maxStopovers != null) body.max_stopovers = options.maxStopovers;
1598
1598
  if (options.sort) body.sort = options.sort;
1599
+ if (options.departureTimeFrom) body.departure_time_from = options.departureTimeFrom;
1600
+ if (options.departureTimeTo) body.departure_time_to = options.departureTimeTo;
1599
1601
  if (this.usingPFS) {
1600
1602
  return this.searchPFS(body);
1601
1603
  }
@@ -1610,7 +1612,7 @@ var LetsFG = class {
1610
1612
  const result = await this.getNoAuth(
1611
1613
  `/api/results/${search_id}`
1612
1614
  );
1613
- if (result.status !== "pending") {
1615
+ if (!["pending", "searching"].includes(result.status)) {
1614
1616
  return result;
1615
1617
  }
1616
1618
  }
package/dist/cli.js CHANGED
@@ -351,6 +351,8 @@ var LetsFG = class {
351
351
  if (options.cabinClass) body.cabin_class = options.cabinClass;
352
352
  if (options.maxStopovers != null) body.max_stopovers = options.maxStopovers;
353
353
  if (options.sort) body.sort = options.sort;
354
+ if (options.departureTimeFrom) body.departure_time_from = options.departureTimeFrom;
355
+ if (options.departureTimeTo) body.departure_time_to = options.departureTimeTo;
354
356
  if (this.usingPFS) {
355
357
  return this.searchPFS(body);
356
358
  }
@@ -365,7 +367,7 @@ var LetsFG = class {
365
367
  const result = await this.getNoAuth(
366
368
  `/api/results/${search_id}`
367
369
  );
368
- if (result.status !== "pending") {
370
+ if (!["pending", "searching"].includes(result.status)) {
369
371
  return result;
370
372
  }
371
373
  }
@@ -541,6 +543,8 @@ async function cmdSearch(args) {
541
543
  const currency = getFlag(args, "--currency") || "EUR";
542
544
  const limit = parseInt(getFlag(args, "--limit", "-l") || "20");
543
545
  const sort = getFlag(args, "--sort") || "price";
546
+ const departureFrom = getFlag(args, "--departure-from");
547
+ const departureTo = getFlag(args, "--departure-to");
544
548
  const [origin, destination, date] = args;
545
549
  if (!origin || !destination || !date) {
546
550
  console.error("Usage: letsfg search <origin> <destination> <date> [options]");
@@ -554,7 +558,9 @@ async function cmdSearch(args) {
554
558
  maxStopovers: stops,
555
559
  currency,
556
560
  limit,
557
- sort
561
+ sort,
562
+ departureTimeFrom: departureFrom,
563
+ departureTimeTo: departureTo
558
564
  });
559
565
  if (jsonOut) {
560
566
  console.log(JSON.stringify({
package/dist/cli.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  LetsFG,
4
4
  LetsFGError,
5
5
  offerSummary
6
- } from "./chunk-7C3EKQ37.mjs";
6
+ } from "./chunk-3F2FJHVG.mjs";
7
7
 
8
8
  // src/cli.ts
9
9
  function getFlag(args, flag, alias) {
@@ -53,6 +53,8 @@ async function cmdSearch(args) {
53
53
  const currency = getFlag(args, "--currency") || "EUR";
54
54
  const limit = parseInt(getFlag(args, "--limit", "-l") || "20");
55
55
  const sort = getFlag(args, "--sort") || "price";
56
+ const departureFrom = getFlag(args, "--departure-from");
57
+ const departureTo = getFlag(args, "--departure-to");
56
58
  const [origin, destination, date] = args;
57
59
  if (!origin || !destination || !date) {
58
60
  console.error("Usage: letsfg search <origin> <destination> <date> [options]");
@@ -66,7 +68,9 @@ async function cmdSearch(args) {
66
68
  maxStopovers: stops,
67
69
  currency,
68
70
  limit,
69
- sort
71
+ sort,
72
+ departureTimeFrom: departureFrom,
73
+ departureTimeTo: departureTo
70
74
  });
71
75
  if (jsonOut) {
72
76
  console.log(JSON.stringify({
package/dist/index.d.mts CHANGED
@@ -379,6 +379,8 @@ interface SearchOptions {
379
379
  currency?: string;
380
380
  limit?: number;
381
381
  sort?: 'price' | 'duration';
382
+ departureTimeFrom?: string;
383
+ departureTimeTo?: string;
382
384
  }
383
385
  interface LetsFGConfig {
384
386
  /** PFS Bearer token from `letsfg auth`. Enables free search via POST /api/search polling. */
package/dist/index.d.ts CHANGED
@@ -379,6 +379,8 @@ interface SearchOptions {
379
379
  currency?: string;
380
380
  limit?: number;
381
381
  sort?: 'price' | 'duration';
382
+ departureTimeFrom?: string;
383
+ departureTimeTo?: string;
382
384
  }
383
385
  interface LetsFGConfig {
384
386
  /** PFS Bearer token from `letsfg auth`. Enables free search via POST /api/search polling. */
package/dist/index.js CHANGED
@@ -1644,6 +1644,8 @@ var LetsFG = class {
1644
1644
  if (options.cabinClass) body.cabin_class = options.cabinClass;
1645
1645
  if (options.maxStopovers != null) body.max_stopovers = options.maxStopovers;
1646
1646
  if (options.sort) body.sort = options.sort;
1647
+ if (options.departureTimeFrom) body.departure_time_from = options.departureTimeFrom;
1648
+ if (options.departureTimeTo) body.departure_time_to = options.departureTimeTo;
1647
1649
  if (this.usingPFS) {
1648
1650
  return this.searchPFS(body);
1649
1651
  }
@@ -1658,7 +1660,7 @@ var LetsFG = class {
1658
1660
  const result = await this.getNoAuth(
1659
1661
  `/api/results/${search_id}`
1660
1662
  );
1661
- if (result.status !== "pending") {
1663
+ if (!["pending", "searching"].includes(result.status)) {
1662
1664
  return result;
1663
1665
  }
1664
1666
  }
package/dist/index.mjs CHANGED
@@ -22,7 +22,7 @@ import {
22
22
  offerSummary,
23
23
  rankOffers,
24
24
  selectDiverseTop
25
- } from "./chunk-7C3EKQ37.mjs";
25
+ } from "./chunk-3F2FJHVG.mjs";
26
26
  export {
27
27
  AuthenticationError,
28
28
  BoostedTravel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "letsfg",
3
- "version": "2026.5.55",
3
+ "version": "2026.5.57",
4
4
  "description": "Flight search & booking for AI agents. Server-side engine covers hundreds of airlines. Free search via Bearer token or prepaid Developer API. Includes open-source ranking engine.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",