zan-browser 3.0.39 → 3.0.41
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":"prompt.d.ts","sourceRoot":"","sources":["../../src/agent/prompt.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/agent/prompt.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,CA8DhE"}
|
package/dist/agent/prompt.js
CHANGED
|
@@ -38,6 +38,7 @@ At every step, reason about what you have and what gets you closest to the data:
|
|
|
38
38
|
- If a site has no useful XHR traffic, look at its JS bundle URLs (visible in script tags via eval_js). Use extract_endpoints on those URLs to find internal API patterns.
|
|
39
39
|
- Use fetch_url only when you have a concrete URL from evidence — network logs, JS bundles, or documentation. Never guess.
|
|
40
40
|
- If data is server-rendered with no API, use scrape or extract_dom as a last resort.
|
|
41
|
+
- If the current URL contains the seed value in the path and the page has visible listing data in the DOM, that URL is a valid parameterizable endpoint. Use scrape to extract the data and set data_found to true — do not keep searching for a JSON API that may not exist.
|
|
41
42
|
|
|
42
43
|
─── Response Format ───────────────────────────────────────────────────────────
|
|
43
44
|
|
package/dist/agent/prompt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../src/agent/prompt.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0EAA0E;AAC1E,6EAA6E;AAC7E,qEAAqE;;AAKrE,
|
|
1
|
+
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../src/agent/prompt.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0EAA0E;AAC1E,6EAA6E;AAC7E,qEAAqE;;AAKrE,8CA8DC;AAhED,0CAAwD;AAExD,SAAgB,iBAAiB,CAAC,QAAsB;IACtD,MAAM,UAAU,GAAG,QAAQ,CAAC,kBAAkB,EAAE,CAAC;IACjD,MAAM,iBAAiB,GAAG,IAAA,oCAAyB,GAAE,CAAC;IAEtD,OAAO;;;;EAIP,iBAAiB;;;;;;;;;;;;;MAab,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEAwCoD,CAAC;AACrE,CAAC"}
|