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.cjs CHANGED
@@ -126,6 +126,9 @@ function buildScavioToolkit(options = {}) {
126
126
  enableCapterra = false,
127
127
  enableGoogleAds = false,
128
128
  enableMetaAds = false,
129
+ enableHeb = false,
130
+ enableKroger = false,
131
+ enableDecathlon = false,
129
132
  enableCrawl = false,
130
133
  pollIntervalMs = JOB_POLL_INTERVAL_MS,
131
134
  all = false
@@ -2480,6 +2483,95 @@ function buildScavioToolkit(options = {}) {
2480
2483
  )
2481
2484
  );
2482
2485
  }
2486
+ if (all || enableHeb) {
2487
+ tools.push(
2488
+ tool(
2489
+ "HEB_SEARCH",
2490
+ "Scavio HEB Search",
2491
+ "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.",
2492
+ import_zod.z.object({
2493
+ query: str("Search keywords (1-200 characters)."),
2494
+ page: onum("Results page, 1-based (1-100)."),
2495
+ page_size: onum("Results per page, 1-60. Defaults to 60."),
2496
+ 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.")
2497
+ }),
2498
+ (i) => client.heb.search(i)
2499
+ ),
2500
+ tool(
2501
+ "HEB_PRODUCT",
2502
+ "Scavio HEB Product",
2503
+ "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.",
2504
+ import_zod.z.object({
2505
+ product_url: ostr("Full or relative product URL from heb.com. Preferred over slug + product_id."),
2506
+ product_id: ostr("HEB product id. Needs slug, unless store_id is set (then product_id alone works)."),
2507
+ slug: ostr("Product slug (readable part of the URL). Required with product_id unless store_id is set."),
2508
+ 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.")
2509
+ }),
2510
+ (i) => client.heb.product(i)
2511
+ ),
2512
+ tool(
2513
+ "HEB_STORES",
2514
+ "Scavio HEB Stores",
2515
+ "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.",
2516
+ import_zod.z.object({
2517
+ zip: ostr("5-digit US ZIP code (e.g. '78701')."),
2518
+ city: ostr("City name (e.g. 'Austin'). Pass zip or city.")
2519
+ }),
2520
+ (i) => client.heb.stores(i)
2521
+ )
2522
+ );
2523
+ }
2524
+ if (all || enableKroger) {
2525
+ tools.push(
2526
+ tool(
2527
+ "KROGER_SEARCH",
2528
+ "Scavio Kroger Search",
2529
+ "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.",
2530
+ import_zod.z.object({
2531
+ query: str("Search keywords (1-200 characters)."),
2532
+ page: onum("Results page, 1-based (1-100).")
2533
+ }),
2534
+ (i) => client.kroger.search(i)
2535
+ ),
2536
+ tool(
2537
+ "KROGER_PRODUCT",
2538
+ "Scavio Kroger Product",
2539
+ "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.",
2540
+ import_zod.z.object({
2541
+ product_url: ostr("Full or relative product URL from kroger.com. Preferred."),
2542
+ upc: ostr("Kroger product UPC (from search or product URLs: /p/{slug}/{upc})."),
2543
+ slug: ostr("Product slug for readable URL. Optional with upc.")
2544
+ }),
2545
+ (i) => client.kroger.product(i)
2546
+ )
2547
+ );
2548
+ }
2549
+ if (all || enableDecathlon) {
2550
+ tools.push(
2551
+ tool(
2552
+ "DECATHLON_SEARCH",
2553
+ "Scavio Decathlon Search",
2554
+ "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.",
2555
+ import_zod.z.object({
2556
+ query: str("Search keywords (1-200 characters)."),
2557
+ country: import_zod.z.enum(["fr", "es", "it", "in", "uk", "pt", "net"]).describe("Country domain."),
2558
+ page: onum("Results page, 1-based (1-50).")
2559
+ }),
2560
+ (i) => client.decathlon.search(i)
2561
+ ),
2562
+ tool(
2563
+ "DECATHLON_PRODUCT",
2564
+ "Scavio Decathlon Product",
2565
+ "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.",
2566
+ import_zod.z.object({
2567
+ product_url: ostr("Full or relative product URL from any Decathlon domain. Preferred."),
2568
+ product_id: ostr("Decathlon numeric product ID."),
2569
+ country: import_zod.z.enum(["fr", "es", "it", "in", "uk", "pt", "net"]).describe("Country domain.")
2570
+ }),
2571
+ (i) => client.decathlon.product(i)
2572
+ )
2573
+ );
2574
+ }
2483
2575
  if (all || enableExtract) {
2484
2576
  tools.push(
2485
2577
  tool(
@@ -2583,7 +2675,7 @@ function buildScavioToolkit(options = {}) {
2583
2675
  }
2584
2676
  return (0, import_core.experimental_createToolkit)("SCAVIO", {
2585
2677
  name: "Scavio",
2586
- 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.",
2678
+ 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.",
2587
2679
  tools
2588
2680
  });
2589
2681
  }