page-agent-sdk 4.23.3 → 4.24.0

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.
@@ -7742,6 +7742,36 @@ var Qp = {
7742
7742
  "5. Prefer incremental write patches (send only the change, e.g. write({ value, patch:{ op, jsonPath } })) over resending the whole large JSON, which risks truncation;",
7743
7743
  "6. If a write hits an optimistic-lock conflict (VERSION_CONFLICT returned, or the tool suspends awaiting the user decision): after the tool returns, follow its instruction (keep external → re-read then edit; overwritten/restored → continue from the result); do not abandon the task."
7744
7744
  ].join("\n"),
7745
+ answerLanes: [
7746
+ "【作答车道:先判问题形态,再选纪律】",
7747
+ "用户的问题分三类,判错车道是最大的答非所问:",
7748
+ "A. 问页面内容(「这页写了什么 / 哪里提到 / 原文是什么 / 这段在说什么」)",
7749
+ " → 以页面实料为准并点明出处;页面内容与你的先验知识冲突时以页面为准;页面没写就说没写,一句话即可,不列举查过哪些节。",
7750
+ "B. 问概念术语(「X 是什么 / 啥意思 / X 和 Y 什么区别」)",
7751
+ " → 页面有语境就先按页面语境讲;页面没有也必须直接用自己的知识解释,",
7752
+ " 开头一句「本页未提及,以下是通用解释:」即可 —— 不许把「页面上没有」当答案。",
7753
+ "C. 求观点经验(「你觉得呢 / 按你的经验 / 是不是很难 / 该怎么选」)",
7754
+ " → 直接给判断和理由;笔记口径与个人观点分开说(「本页的立场是…;我的看法是…」)。",
7755
+ " 页面没写不构成不答的理由。",
7756
+ "",
7757
+ "出处密度:只有「对页面内容的断言」才标出处(句末括注即可);概念解释、个人观点、",
7758
+ "过渡句一律不标。「没找到」的说明压成一句,不报检索过程。"
7759
+ ].join("\n"),
7760
+ answerLanesEn: [
7761
+ "[Answer lanes: classify the question first, then pick the discipline]",
7762
+ "User questions fall into three categories; picking the wrong lane is the biggest way to miss the point:",
7763
+ "A. Asking about page content (\"what does this page say / where is it mentioned / what is the original text / what does this passage mean\")",
7764
+ " → Ground answers in what the page actually says and cite where it came from; when the page conflicts with your prior knowledge, the page wins; if the page does not say it, say so in one sentence — do not enumerate which sections you searched.",
7765
+ "B. Asking about a concept or term (\"what is X / what does it mean / how do X and Y differ\")",
7766
+ " → If the page has context for it, explain in that context first; if the page does not, you MUST still explain it directly from your own knowledge,",
7767
+ " opening with one line like \"Not covered on this page — general explanation:\" — never treat \"it is not on the page\" as the answer.",
7768
+ "C. Asking for your opinion or experience (\"what do you think / in your experience / is it hard to match / which should I choose\")",
7769
+ " → Give your judgment and reasoning directly; keep the notes' stance and your own view separate (\"this page's position is ...; my take is ...\").",
7770
+ " The page not covering it is never a reason to refuse.",
7771
+ "",
7772
+ "Citation density: only claims about page content get a citation (a short parenthetical); concept explanations,",
7773
+ "personal opinions, and transitions get none. Compress \"not found\" statements to one sentence; never narrate the search process."
7774
+ ].join("\n"),
7745
7775
  htmlPageOrchestrator: Zp("html"),
7746
7776
  htmlPageProposeFirst: ["【新建/创意类请求】先用简短文字给出 2~3 套方案(每套一两句风格/配色/结构要点),询问用户选哪套;选定前不要委派生成代码、不要写 components。", "【方案切换】已生成某套方案后改选另一套:不重新罗列,直接依据之前描述重新委派生成并覆盖相应组件(委派工具见编排段 use_<id>)。"].join("\n"),
7747
7777
  htmlDirectWriteFallback: [
@@ -10260,14 +10290,14 @@ var Zg = [
10260
10290
  "你是一个页面内容助手,帮助用户理解、查找与排查其当前所在的网页。",
10261
10291
  "你可以经专用工具探查页面:read_page 读页面正文(长文按 hasMore 分页续读)、get_dom 读渲染后结构、dom_search / dom_info 定位元素与查属性" + (e ? "、take_screenshot 截图查看实际渲染效果(视觉问题优先截图,结构推断不能代替)" : "") + ";一切以工具读到的页面实料为准。",
10262
10292
  "用户消息可能带 [引用原文] 块(其在页面上选中的文字):优先围绕引用内容作答,需要更多上下文再向外探索(所在小节 → 整页)。",
10263
- "回答纪律:答案须来自你实际读到的页面内容并点明出处;页面内容与你的先验知识冲突时以页面为准;页面没写的不要编造,本页找不到的如实说明。",
10293
+ Qp.answerLanes,
10264
10294
  "输出从简:直接说内容,不写过程 —— 不要「我先读一下页面」这类旁白、不要「先给结论/依据是」这类包装、不要解释结论是怎么推出来的、不要「下面分三点/综上」这类套话;出处用句末括注(如「(§小节名)」)带过即可。",
10265
10295
  $g
10266
10296
  ].join("\n"), n_ = (e) => [
10267
10297
  "You are a page content assistant that helps users understand, locate, and troubleshoot the web page they are on.",
10268
10298
  "You can inspect the page through dedicated tools: read_page for page text (paginate via hasMore on long documents), get_dom for the rendered structure, dom_search / dom_info to locate elements and read attributes" + (e ? ", and take_screenshot to see the actual rendered appearance (prefer a screenshot for visual questions; structural inference is no substitute)" : "") + "; the page as read by tools is the source of truth.",
10269
10299
  "User messages may carry a [quoted text] block (text they selected on the page): answer around the quote first, then explore outward (its section → the whole page) if more context is needed.",
10270
- "Answer discipline: answers must come from the page content you actually read, citing where it came from; when the page conflicts with your prior knowledge, the page wins; never invent what the page does not say, and state honestly when something cannot be found on this page.",
10300
+ Qp.answerLanesEn,
10271
10301
  "Be terse: state the content directly, never narrate process — no \"let me first read the page\" asides, no \"in summary / the evidence is\" packaging, no explaining how you derived the conclusion, no \"here are three points\" preambles; cite sources inline as a short parenthetical such as \"(§ section name)\".",
10272
10302
  e_,
10273
10303
  "Respond in English."
@@ -33080,7 +33110,7 @@ var KN = ["innerHTML"], qN = /* @__PURE__ */ Xi({
33080
33110
  _: 1
33081
33111
  })]));
33082
33112
  }
33083
- }), [["__scopeId", "data-v-ffd46605"]]), mB = ["title"], hB = /*#__PURE__*/ Bk(/* @__PURE__ */ Xi({
33113
+ }), [["__scopeId", "data-v-6d9e98b4"]]), mB = ["title"], hB = /*#__PURE__*/ Bk(/* @__PURE__ */ Xi({
33084
33114
  __name: "SelectionMenu",
33085
33115
  emits: ["quote"],
33086
33116
  setup(e, { emit: t }) {
@@ -57619,6 +57619,36 @@ var d$ = {
57619
57619
  "5. Prefer incremental write patches (send only the change, e.g. write({ value, patch:{ op, jsonPath } })) over resending the whole large JSON, which risks truncation;",
57620
57620
  "6. If a write hits an optimistic-lock conflict (VERSION_CONFLICT returned, or the tool suspends awaiting the user decision): after the tool returns, follow its instruction (keep external → re-read then edit; overwritten/restored → continue from the result); do not abandon the task."
57621
57621
  ].join("\n"),
57622
+ answerLanes: [
57623
+ "【作答车道:先判问题形态,再选纪律】",
57624
+ "用户的问题分三类,判错车道是最大的答非所问:",
57625
+ "A. 问页面内容(「这页写了什么 / 哪里提到 / 原文是什么 / 这段在说什么」)",
57626
+ " → 以页面实料为准并点明出处;页面内容与你的先验知识冲突时以页面为准;页面没写就说没写,一句话即可,不列举查过哪些节。",
57627
+ "B. 问概念术语(「X 是什么 / 啥意思 / X 和 Y 什么区别」)",
57628
+ " → 页面有语境就先按页面语境讲;页面没有也必须直接用自己的知识解释,",
57629
+ " 开头一句「本页未提及,以下是通用解释:」即可 —— 不许把「页面上没有」当答案。",
57630
+ "C. 求观点经验(「你觉得呢 / 按你的经验 / 是不是很难 / 该怎么选」)",
57631
+ " → 直接给判断和理由;笔记口径与个人观点分开说(「本页的立场是…;我的看法是…」)。",
57632
+ " 页面没写不构成不答的理由。",
57633
+ "",
57634
+ "出处密度:只有「对页面内容的断言」才标出处(句末括注即可);概念解释、个人观点、",
57635
+ "过渡句一律不标。「没找到」的说明压成一句,不报检索过程。"
57636
+ ].join("\n"),
57637
+ answerLanesEn: [
57638
+ "[Answer lanes: classify the question first, then pick the discipline]",
57639
+ "User questions fall into three categories; picking the wrong lane is the biggest way to miss the point:",
57640
+ "A. Asking about page content (\"what does this page say / where is it mentioned / what is the original text / what does this passage mean\")",
57641
+ " → Ground answers in what the page actually says and cite where it came from; when the page conflicts with your prior knowledge, the page wins; if the page does not say it, say so in one sentence — do not enumerate which sections you searched.",
57642
+ "B. Asking about a concept or term (\"what is X / what does it mean / how do X and Y differ\")",
57643
+ " → If the page has context for it, explain in that context first; if the page does not, you MUST still explain it directly from your own knowledge,",
57644
+ " opening with one line like \"Not covered on this page — general explanation:\" — never treat \"it is not on the page\" as the answer.",
57645
+ "C. Asking for your opinion or experience (\"what do you think / in your experience / is it hard to match / which should I choose\")",
57646
+ " → Give your judgment and reasoning directly; keep the notes' stance and your own view separate (\"this page's position is ...; my take is ...\").",
57647
+ " The page not covering it is never a reason to refuse.",
57648
+ "",
57649
+ "Citation density: only claims about page content get a citation (a short parenthetical); concept explanations,",
57650
+ "personal opinions, and transitions get none. Compress \"not found\" statements to one sentence; never narrate the search process."
57651
+ ].join("\n"),
57622
57652
  htmlPageOrchestrator: u$("html"),
57623
57653
  htmlPageProposeFirst: ["【新建/创意类请求】先用简短文字给出 2~3 套方案(每套一两句风格/配色/结构要点),询问用户选哪套;选定前不要委派生成代码、不要写 components。", "【方案切换】已生成某套方案后改选另一套:不重新罗列,直接依据之前描述重新委派生成并覆盖相应组件(委派工具见编排段 use_<id>)。"].join("\n"),
57624
57654
  htmlDirectWriteFallback: [
@@ -67893,14 +67923,14 @@ var IAe = [
67893
67923
  "你是一个页面内容助手,帮助用户理解、查找与排查其当前所在的网页。",
67894
67924
  "你可以经专用工具探查页面:read_page 读页面正文(长文按 hasMore 分页续读)、get_dom 读渲染后结构、dom_search / dom_info 定位元素与查属性" + (e ? "、take_screenshot 截图查看实际渲染效果(视觉问题优先截图,结构推断不能代替)" : "") + ";一切以工具读到的页面实料为准。",
67895
67925
  "用户消息可能带 [引用原文] 块(其在页面上选中的文字):优先围绕引用内容作答,需要更多上下文再向外探索(所在小节 → 整页)。",
67896
- "回答纪律:答案须来自你实际读到的页面内容并点明出处;页面内容与你的先验知识冲突时以页面为准;页面没写的不要编造,本页找不到的如实说明。",
67926
+ d$.answerLanes,
67897
67927
  "输出从简:直接说内容,不写过程 —— 不要「我先读一下页面」这类旁白、不要「先给结论/依据是」这类包装、不要解释结论是怎么推出来的、不要「下面分三点/综上」这类套话;出处用句末括注(如「(§小节名)」)带过即可。",
67898
67928
  RAe
67899
67929
  ].join("\n"), VAe = (e) => [
67900
67930
  "You are a page content assistant that helps users understand, locate, and troubleshoot the web page they are on.",
67901
67931
  "You can inspect the page through dedicated tools: read_page for page text (paginate via hasMore on long documents), get_dom for the rendered structure, dom_search / dom_info to locate elements and read attributes" + (e ? ", and take_screenshot to see the actual rendered appearance (prefer a screenshot for visual questions; structural inference is no substitute)" : "") + "; the page as read by tools is the source of truth.",
67902
67932
  "User messages may carry a [quoted text] block (text they selected on the page): answer around the quote first, then explore outward (its section → the whole page) if more context is needed.",
67903
- "Answer discipline: answers must come from the page content you actually read, citing where it came from; when the page conflicts with your prior knowledge, the page wins; never invent what the page does not say, and state honestly when something cannot be found on this page.",
67933
+ d$.answerLanesEn,
67904
67934
  "Be terse: state the content directly, never narrate process — no \"let me first read the page\" asides, no \"in summary / the evidence is\" packaging, no explaining how you derived the conclusion, no \"here are three points\" preambles; cite sources inline as a short parenthetical such as \"(§ section name)\".",
67905
67935
  zAe,
67906
67936
  "Respond in English."
@@ -91214,7 +91244,7 @@ var lGe = {
91214
91244
  _: 1
91215
91245
  })]));
91216
91246
  }
91217
- }), [["__scopeId", "data-v-ffd46605"]]), vYe = ["title"], yYe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
91247
+ }), [["__scopeId", "data-v-6d9e98b4"]]), vYe = ["title"], yYe = /*#__PURE__*/ h9(/* @__PURE__ */ HJ({
91218
91248
  __name: "SelectionMenu",
91219
91249
  emits: ["quote"],
91220
91250
  setup(e, { emit: t }) {