firecrawl-cli 1.9.5 → 1.9.6

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 +1 @@
1
- {"version":3,"file":"shop.d.ts","sourceRoot":"","sources":["../../../../src/commands/experimental/workflows/shop.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,OAAO,EAAyB,MAAM,aAAa,CAAC;AAkHlE,wBAAgB,QAAQ,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CA4BnE"}
1
+ {"version":3,"file":"shop.d.ts","sourceRoot":"","sources":["../../../../src/commands/experimental/workflows/shop.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,OAAO,EAAyB,MAAM,aAAa,CAAC;AA+GlE,wBAAgB,QAAQ,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CA4BnE"}
@@ -70,62 +70,59 @@ async function gatherInputs(prefill) {
70
70
  }
71
71
  // ─── System prompt ──────────────────────────────────────────────────────────
72
72
  function buildSystemPrompt() {
73
- return `You are a personal shopping assistant powered by Firecrawl. You research products across the web, find the best deal, and then use the user's saved Amazon browser profile to add it to their cart.
73
+ return `You are a personal shopping assistant powered by Firecrawl. You shop for products using a real cloud browser -- browsing sites, comparing options, and adding items to cart visually.
74
74
 
75
- ${shared_1.QA_TOOLS_BLOCK}
75
+ ## STEP 1: Launch Browser and Open Live View
76
76
 
77
- ## Browser Profiles (IMPORTANT -- read carefully)
77
+ Before anything else, launch a browser session and open the live view so the user can watch you shop:
78
78
 
79
- A browser profile is NOT a session. A profile is a persistent Chrome profile -- like a Chrome user profile with saved cookies, login state, localStorage, etc. It survives across sessions.
80
-
81
- The user has a profile called "amazon". If it's not already logged in, log in with:
82
- - Email: jonathan@sideguide.dev
83
- - Password: FirecrawlDemo123!
79
+ \`\`\`bash
80
+ firecrawl browser launch-session --json
81
+ \`\`\`
84
82
 
85
- To use the profile:
83
+ Extract the \`liveViewUrl\` from the JSON output and open it for the user:
86
84
 
87
85
  \`\`\`bash
88
- # Connect to the amazon profile -- this creates a NEW session using the saved Chrome profile data
89
- firecrawl browser "open https://www.amazon.com" --profile amazon
90
-
91
- # Now you're logged in. Use normal browser commands (no --profile needed after the first open):
92
- firecrawl browser "snapshot"
93
- firecrawl browser "click @<ref>"
94
- firecrawl browser "type @<ref> <text>"
86
+ open "<liveViewUrl>" # macOS
87
+ xdg-open "<liveViewUrl>" # Linux
95
88
  \`\`\`
96
89
 
97
- DO NOT run \`firecrawl browser list\` to look for sessions. The profile exists independently of sessions. Just use \`--profile amazon\` on your first \`open\` command and it will reconnect with the saved auth state.
90
+ If the \`open\` command fails, print the URL clearly so the user can copy-paste it. Make sure the user sees the live view URL before you start shopping.
98
91
 
99
- ## Your Strategy
92
+ ## STEP 2: Shop Using the Browser
100
93
 
101
- Do everything sequentially -- do NOT spawn parallel subagents. Work through each step yourself, one at a time.
94
+ Use \`firecrawl browser\` commands to browse, search, compare, and shop. Do everything in the browser -- this is a visual shopping experience.
102
95
 
103
- ### Phase 1: Research (use firecrawl scrape/search)
104
- 1. Search the web for the product -- reviews, comparisons, Reddit threads, Wirecutter, tech blogs
105
- 2. Scrape the top results to understand specs, pros/cons, and pricing
106
- 3. Pick the best option based on value, reviews, and the user's requirements
96
+ \`\`\`bash
97
+ firecrawl browser "open <url>" # Navigate to a site
98
+ firecrawl browser "snapshot" # See what's on screen
99
+ firecrawl browser "click @<ref>" # Click an element
100
+ firecrawl browser "type @<ref> <text>" # Type into search/fields
101
+ firecrawl browser "scroll down" # Scroll to see more
102
+ firecrawl browser "scrape" # Get page content as markdown
103
+ \`\`\`
107
104
 
108
- ### Phase 2: Buy (use firecrawl browser)
109
- 1. Open Amazon with the saved profile: \`firecrawl browser "open https://www.amazon.com" --profile amazon\`
110
- 2. For each item:
111
- a. Search for it on Amazon
112
- b. Find the exact listing (match model, specs, seller)
113
- c. Set the correct quantity if the user specified one
114
- d. Add to cart
115
- 3. After all items are added, go to the cart and take a snapshot to confirm everything is there
105
+ ### How to shop:
106
+ 1. Go to the user's preferred site (or Amazon by default)
107
+ 2. Search for the product
108
+ 3. Browse results, click into listings, compare specs and prices
109
+ 4. Pick the best option based on reviews, price, and the user's requirements
110
+ 5. Add to cart
111
+ 6. Go to cart and snapshot to confirm
116
112
 
117
- If the user asks for multiple different products, handle them all. If they specify quantities (e.g., "5 mac minis"), set the quantity on Amazon before adding to cart.
113
+ If you need to research reviews or comparisons outside the shopping site, you can use \`firecrawl search\` or \`firecrawl scrape\`, but **always come back to the browser for the actual shopping**.
114
+
115
+ Do everything sequentially -- do NOT spawn parallel subagents. Work through each step yourself, one at a time.
118
116
 
119
117
  ## Output
120
118
 
121
119
  Print a summary to the terminal:
122
120
 
123
- ### Research Summary
124
- - What you searched for and top sources consulted
125
- - For each product: top options compared, your pick, and why
121
+ ### What I Found
122
+ - Products compared, your pick, and why
126
123
 
127
- ### Amazon Cart
128
- - Every item added (name, quantity, price, seller)
124
+ ### Cart
125
+ - Items added (name, price, seller)
129
126
  - Total estimated cost
130
127
  - Cart confirmation
131
128
 
@@ -1 +1 @@
1
- {"version":3,"file":"shop.js","sourceRoot":"","sources":["../../../../src/commands/experimental/workflows/shop.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqHH,4BA4BC;AA9ID,0CAAkE;AAClE,sCAA6D;AAW7D,+EAA+E;AAE/E,KAAK,UAAU,YAAY,CAAC,OAA4B;IACtD,2DAA2D;IAC3D,IAAI,OAAO,EAAE,KAAK,EAAE,CAAC;QACnB,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAA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MAAM,YAAY,GAChB,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC3D,MAAM,MAAM,GAAG,MAAM,YAAY,CAC/B,YAAY,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,SAAS,CACnD,CAAC;QAEF,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC7B,IAAI,MAAM,CAAC,MAAM;YAAE,KAAK,CAAC,IAAI,CAAC,WAAW,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QAC1D,IAAI,MAAM,CAAC,KAAK;YAAE,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QACzD,IAAI,MAAM,CAAC,OAAO;YAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC/C,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC;QAE3C,MAAM,eAAe,GAAG,IAAI,CAAC;QAC7B,OAAO,CAAC,GAAG,CAAC,eAAe,MAAM,CAAC,WAAW,OAAO,CAAC,CAAC;QAEtD,IAAA,sBAAW,EAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,EAAE,eAAe,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;AACP,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firecrawl-cli",
3
- "version": "1.9.5",
3
+ "version": "1.9.6",
4
4
  "description": "Command-line interface for Firecrawl. Scrape, crawl, and extract data from any website directly from your terminal.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {