zan-browser 3.0.54 → 3.0.55
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,CAmEhE"}
|
package/dist/agent/prompt.js
CHANGED
|
@@ -42,6 +42,8 @@ At every step, reason about what you have and what gets you closest to the data:
|
|
|
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
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.
|
|
45
|
+
- Before declaring done with an endpoint found via fetch_url, verify the seed value appears literally in the URL you are returning. If it doesn't, the user cannot construct that URL at runtime — it is not a parameterizable endpoint. Keep searching.
|
|
46
|
+
- If no endpoint in network logs contains the seed value directly in its URL, check whether the current browser URL contains the seed value in the path and the page shows relevant data in the DOM. If so, use scrape — the page URL itself is the parameterizable endpoint. Set data_found=true and finish.
|
|
45
47
|
|
|
46
48
|
─── Response Format ───────────────────────────────────────────────────────────
|
|
47
49
|
|
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,8CAmEC;AArED,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEA6CoD,CAAC;AACrE,CAAC"}
|