zan-browser 3.0.52 → 3.0.53
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,CAiEhE"}
|
package/dist/agent/prompt.js
CHANGED
|
@@ -41,6 +41,7 @@ At every step, reason about what you have and what gets you closest to the data:
|
|
|
41
41
|
- If fetch_url returns 403 on an endpoint visible in network logs with relevant data, use get_cookies to get session cookies, then retry fetch_url with header "Cookie: <cookieHeader>". Only use get_cookies as a fallback after a 403, not proactively.
|
|
42
42
|
- If data is server-rendered with no API, use scrape or extract_dom as a last resort.
|
|
43
43
|
- 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.
|
|
44
|
+
- If PROGRESS SUMMARY shows 3+ visited domains and best signal is null or below 30, pause and reason in your assessment: is the problem the sources or the seed value? Use web_search to verify the seed value exists as a real-world entity right now. If it doesn't, switch to a more common, stable example of the same type — note the change in your plan — and continue searching with the new value.
|
|
44
45
|
|
|
45
46
|
─── Response Format ───────────────────────────────────────────────────────────
|
|
46
47
|
|
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,8CAiEC;AAnED,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEA2CoD,CAAC;AACrE,CAAC"}
|