composio-scavio 0.6.0 → 0.6.2

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/dist/index.d.cts CHANGED
@@ -36,6 +36,9 @@ interface BuildScavioToolkitOptions {
36
36
  enableCapterra?: boolean;
37
37
  enableGoogleAds?: boolean;
38
38
  enableMetaAds?: boolean;
39
+ enableHeb?: boolean;
40
+ enableKroger?: boolean;
41
+ enableDecathlon?: boolean;
39
42
  /**
40
43
  * Website map, crawl and batch extract (five tools: MAP_WEBSITE, CRAWL_WEBSITE,
41
44
  * CRAWL_STATUS, BATCH_EXTRACT, BATCH_STATUS). Opt-in: a crawl bills per page.
@@ -52,7 +55,7 @@ interface BuildScavioToolkitOptions {
52
55
  /**
53
56
  * Build a Composio custom toolkit exposing Scavio search tools.
54
57
  *
55
- * Scavio is a single Search API over Google, YouTube, Amazon, Walmart, Reddit,
58
+ * Scavio is a single Search API over Google, YouTube, Amazon, Walmart, HEB, Kroger, Reddit,
56
59
  * TikTok, TikTok Shop, Instagram, X and LinkedIn; this toolkit covers all ten.
57
60
  * Pass to `composio.create(userId, { experimental:
58
61
  * { customToolkits: [toolkit] } })`. Agent-facing slugs are prefixed `LOCAL_SCAVIO_`.
package/dist/index.d.ts CHANGED
@@ -36,6 +36,9 @@ interface BuildScavioToolkitOptions {
36
36
  enableCapterra?: boolean;
37
37
  enableGoogleAds?: boolean;
38
38
  enableMetaAds?: boolean;
39
+ enableHeb?: boolean;
40
+ enableKroger?: boolean;
41
+ enableDecathlon?: boolean;
39
42
  /**
40
43
  * Website map, crawl and batch extract (five tools: MAP_WEBSITE, CRAWL_WEBSITE,
41
44
  * CRAWL_STATUS, BATCH_EXTRACT, BATCH_STATUS). Opt-in: a crawl bills per page.
@@ -52,7 +55,7 @@ interface BuildScavioToolkitOptions {
52
55
  /**
53
56
  * Build a Composio custom toolkit exposing Scavio search tools.
54
57
  *
55
- * Scavio is a single Search API over Google, YouTube, Amazon, Walmart, Reddit,
58
+ * Scavio is a single Search API over Google, YouTube, Amazon, Walmart, HEB, Kroger, Reddit,
56
59
  * TikTok, TikTok Shop, Instagram, X and LinkedIn; this toolkit covers all ten.
57
60
  * Pass to `composio.create(userId, { experimental:
58
61
  * { customToolkits: [toolkit] } })`. Agent-facing slugs are prefixed `LOCAL_SCAVIO_`.
package/dist/index.js CHANGED
@@ -104,6 +104,9 @@ function buildScavioToolkit(options = {}) {
104
104
  enableCapterra = false,
105
105
  enableGoogleAds = false,
106
106
  enableMetaAds = false,
107
+ enableHeb = false,
108
+ enableKroger = false,
109
+ enableDecathlon = false,
107
110
  enableCrawl = false,
108
111
  pollIntervalMs = JOB_POLL_INTERVAL_MS,
109
112
  all = false
@@ -2458,6 +2461,95 @@ function buildScavioToolkit(options = {}) {
2458
2461
  )
2459
2462
  );
2460
2463
  }
2464
+ if (all || enableHeb) {
2465
+ tools.push(
2466
+ tool(
2467
+ "HEB_SEARCH",
2468
+ "Scavio HEB Search",
2469
+ "Search HEB grocery products: price in cents, sale status, unit price, size, UPC, stock, EBT/SNAP eligibility, aisle location and product URL. Pass store_id for one store's prices, stock and assortment. Costs 2 credits.",
2470
+ z.object({
2471
+ query: str("Search keywords (1-200 characters)."),
2472
+ page: onum("Results page, 1-based (1-100)."),
2473
+ page_size: onum("Results per page, 1-60. Defaults to 60."),
2474
+ store_id: ostr("HEB store number from the HEB stores tool (store_number), e.g. '441'. Prices, stock, aisle location and assortment come from that store; the store used is echoed in data.store {store_id, name}. US only. Omit for HEB's default store.")
2475
+ }),
2476
+ (i) => client.heb.search(i)
2477
+ ),
2478
+ tool(
2479
+ "HEB_PRODUCT",
2480
+ "Scavio HEB Product",
2481
+ "Full HEB product detail: nutrition facts, ingredients, description, images, similar products, coupons, EBT/SNAP eligibility and breadcrumbs. Pass product_url (from search) or slug + product_id; with store_id, product_id alone works and price, stock and aisle are for that store. Costs 2 credits.",
2482
+ z.object({
2483
+ product_url: ostr("Full or relative product URL from heb.com. Preferred over slug + product_id."),
2484
+ product_id: ostr("HEB product id. Needs slug, unless store_id is set (then product_id alone works)."),
2485
+ slug: ostr("Product slug (readable part of the URL). Required with product_id unless store_id is set."),
2486
+ store_id: ostr("HEB store number from the HEB stores tool (store_number), e.g. '441'. Prices, stock, aisle location and assortment come from that store; the store used is echoed in data.store {store_id, name}. US only. Omit for HEB's default store.")
2487
+ }),
2488
+ (i) => client.heb.product(i)
2489
+ ),
2490
+ tool(
2491
+ "HEB_STORES",
2492
+ "Scavio HEB Stores",
2493
+ "HEB stores near a US ZIP code or city: store number, address, phone, hours, pharmacy availability, fulfillment channels, distance and store URL. Pass zip or city. Costs 2 credits.",
2494
+ z.object({
2495
+ zip: ostr("5-digit US ZIP code (e.g. '78701')."),
2496
+ city: ostr("City name (e.g. 'Austin'). Pass zip or city.")
2497
+ }),
2498
+ (i) => client.heb.stores(i)
2499
+ )
2500
+ );
2501
+ }
2502
+ if (all || enableKroger) {
2503
+ tools.push(
2504
+ tool(
2505
+ "KROGER_SEARCH",
2506
+ "Scavio Kroger Search",
2507
+ "Search Kroger grocery products: price in cents, promo price, n-for deals, unit price, size, UPC, stock, SNAP eligibility, dietary info, rating and category. Kroger operates Kroger, Ralphs, Fred Meyer, Harris Teeter, King Soopers and Fry's. Costs 2 credits.",
2508
+ z.object({
2509
+ query: str("Search keywords (1-200 characters)."),
2510
+ page: onum("Results page, 1-based (1-100).")
2511
+ }),
2512
+ (i) => client.kroger.search(i)
2513
+ ),
2514
+ tool(
2515
+ "KROGER_PRODUCT",
2516
+ "Scavio Kroger Product",
2517
+ "Full Kroger product detail by URL or UPC: nutrition facts, allergens, ingredients, nutrients with daily values, description, images, rating distribution, store aisle, stock, dietary flags, SNAP eligibility, dimensions and country of origin. Costs 2 credits.",
2518
+ z.object({
2519
+ product_url: ostr("Full or relative product URL from kroger.com. Preferred."),
2520
+ upc: ostr("Kroger product UPC (from search or product URLs: /p/{slug}/{upc})."),
2521
+ slug: ostr("Product slug for readable URL. Optional with upc.")
2522
+ }),
2523
+ (i) => client.kroger.product(i)
2524
+ )
2525
+ );
2526
+ }
2527
+ if (all || enableDecathlon) {
2528
+ tools.push(
2529
+ tool(
2530
+ "DECATHLON_SEARCH",
2531
+ "Scavio Decathlon Search",
2532
+ "Search Decathlon products by keyword across 7 country domains (FR, ES, IT, IN, UK, PT, NET). Returns product name, brand, price (cents), currency, availability, rating, review count and image. Costs 2 credits.",
2533
+ z.object({
2534
+ query: str("Search keywords (1-200 characters)."),
2535
+ country: z.enum(["fr", "es", "it", "in", "uk", "pt", "net"]).describe("Country domain."),
2536
+ page: onum("Results page, 1-based (1-50).")
2537
+ }),
2538
+ (i) => client.decathlon.search(i)
2539
+ ),
2540
+ tool(
2541
+ "DECATHLON_PRODUCT",
2542
+ "Scavio Decathlon Product",
2543
+ "Full Decathlon product detail by URL or product ID: description, images, SKU, GTIN, color, price (cents), list price, availability, offers/variants, rating, review count, category and breadcrumbs. Costs 2 credits.",
2544
+ z.object({
2545
+ product_url: ostr("Full or relative product URL from any Decathlon domain. Preferred."),
2546
+ product_id: ostr("Decathlon numeric product ID."),
2547
+ country: z.enum(["fr", "es", "it", "in", "uk", "pt", "net"]).describe("Country domain.")
2548
+ }),
2549
+ (i) => client.decathlon.product(i)
2550
+ )
2551
+ );
2552
+ }
2461
2553
  if (all || enableExtract) {
2462
2554
  tools.push(
2463
2555
  tool(
@@ -2561,7 +2653,7 @@ function buildScavioToolkit(options = {}) {
2561
2653
  }
2562
2654
  return experimental_createToolkit("SCAVIO", {
2563
2655
  name: "Scavio",
2564
- description: "Real-time structured search over 31 platforms - Google (SERP, AI Mode, Maps, Shopping, Flights, Hotels, News, Trends), YouTube, Amazon, Walmart, eBay, Target, Home Depot, Reddit, TikTok, TikTok Shop, Instagram, X, LinkedIn, Threads, Kuaishou, Zillow, Redfin, Booking.com, Airbnb, Tripadvisor, Yelp, Indeed, Glassdoor, the Apple App Store, Google Play, SEC EDGAR, Companies House, G2, Capterra, Google Ads Transparency and the Meta Ad Library - plus extract, which reads any URL as Markdown, plain text or raw HTML, and website map, crawl and batch extract.",
2656
+ description: "Real-time structured search over 33 platforms - Google (SERP, AI Mode, Maps, Shopping, Flights, Hotels, News, Trends), YouTube, Amazon, Walmart, eBay, Target, Home Depot, HEB, Kroger, Reddit, TikTok, TikTok Shop, Instagram, X, LinkedIn, Threads, Kuaishou, Zillow, Redfin, Booking.com, Airbnb, Tripadvisor, Yelp, Indeed, Glassdoor, the Apple App Store, Google Play, SEC EDGAR, Companies House, G2, Capterra, Google Ads Transparency and the Meta Ad Library - plus extract, which reads any URL as Markdown, plain text or raw HTML, and website map, crawl and batch extract.",
2565
2657
  tools
2566
2658
  });
2567
2659
  }