page-agent-sdk 3.36.0 → 3.36.1
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.
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/page-agent-sdk.headless.js +3 -3
- package/dist/page-agent-sdk.iife.js +4 -4
- package/dist/page-agent-sdk.js +12 -8
- package/dist/page-agent-sdk.legacy.js +12 -8
- package/dist/page-agent-sdk.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/dist/page-agent-sdk.js
CHANGED
|
@@ -11223,7 +11223,7 @@ function n_(e) {
|
|
|
11223
11223
|
};
|
|
11224
11224
|
let o = t.op ?? "set", s;
|
|
11225
11225
|
if (o !== "remove") {
|
|
11226
|
-
if (t.value === void 0 || t.value === "") return {
|
|
11226
|
+
if (t.value === void 0 || t.value === "" && o === "move") return {
|
|
11227
11227
|
ok: !1,
|
|
11228
11228
|
error: $({
|
|
11229
11229
|
code: "MISSING_VALUE",
|
|
@@ -16487,7 +16487,7 @@ var HS = {
|
|
|
16487
16487
|
debugTabSubagent: "子 agent",
|
|
16488
16488
|
debugTabInfo: "Agent 信息",
|
|
16489
16489
|
debugClearLogs: "清空日志",
|
|
16490
|
-
debugCopyReport: "
|
|
16490
|
+
debugCopyReport: "下载诊断报告 JSON 文件(完整日志,交维护者排查)",
|
|
16491
16491
|
debugTypeContext: "上下文",
|
|
16492
16492
|
debugTypeLlmRequest: "LLM请求",
|
|
16493
16493
|
debugTypeLlmResponse: "LLM响应",
|
|
@@ -16724,7 +16724,7 @@ var HS = {
|
|
|
16724
16724
|
debugTabSubagent: "Sub-agents",
|
|
16725
16725
|
debugTabInfo: "Agent info",
|
|
16726
16726
|
debugClearLogs: "Clear logs",
|
|
16727
|
-
debugCopyReport: "
|
|
16727
|
+
debugCopyReport: "Download diagnostics report as JSON file (full logs for troubleshooting)",
|
|
16728
16728
|
debugTypeContext: "Context",
|
|
16729
16729
|
debugTypeLlmRequest: "LLM request",
|
|
16730
16730
|
debugTypeLlmResponse: "LLM response",
|
|
@@ -27675,7 +27675,7 @@ var EO = ["innerHTML"], DO = /* @__PURE__ */ Ii({
|
|
|
27675
27675
|
g.value === t && (g.value = "");
|
|
27676
27676
|
}, 1200));
|
|
27677
27677
|
}
|
|
27678
|
-
|
|
27678
|
+
function v() {
|
|
27679
27679
|
let e = "";
|
|
27680
27680
|
try {
|
|
27681
27681
|
e = n.exportDiagnostics ? n.exportDiagnostics() : _h(gh({
|
|
@@ -27685,7 +27685,11 @@ var EO = ["innerHTML"], DO = /* @__PURE__ */ Ii({
|
|
|
27685
27685
|
} catch {
|
|
27686
27686
|
e = "";
|
|
27687
27687
|
}
|
|
27688
|
-
|
|
27688
|
+
if (!e) return;
|
|
27689
|
+
let t = new Blob([e], { type: "application/json" }), r = URL.createObjectURL(t), i = document.createElement("a");
|
|
27690
|
+
i.href = r, i.download = `page-agent-diagnostics-${(/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-")}.json`, i.click(), URL.revokeObjectURL(r), g.value = "report", setTimeout(() => {
|
|
27691
|
+
g.value === "report" && (g.value = "");
|
|
27692
|
+
}, 1200);
|
|
27689
27693
|
}
|
|
27690
27694
|
let y = $s(() => n.messages), b = $s(() => ({
|
|
27691
27695
|
context: {
|
|
@@ -28097,7 +28101,7 @@ var EO = ["innerHTML"], DO = /* @__PURE__ */ Ii({
|
|
|
28097
28101
|
class: "hd-btn",
|
|
28098
28102
|
title: y.value.debugCopyReport,
|
|
28099
28103
|
onClick: v
|
|
28100
|
-
}, U(g.value === "report" ? "✓" : "
|
|
28104
|
+
}, U(g.value === "report" ? "✓" : "💾"), 9, bA),
|
|
28101
28105
|
L.value === "logs" ? (Y(), X("button", {
|
|
28102
28106
|
key: 0,
|
|
28103
28107
|
class: "hd-btn",
|
|
@@ -28449,7 +28453,7 @@ var EO = ["innerHTML"], DO = /* @__PURE__ */ Ii({
|
|
|
28449
28453
|
_: 1
|
|
28450
28454
|
})]));
|
|
28451
28455
|
}
|
|
28452
|
-
}), [["__scopeId", "data-v-
|
|
28456
|
+
}), [["__scopeId", "data-v-2510fa80"]]), tF = { class: "skill-panel" }, nF = { class: "skill-header" }, rF = { class: "skill-title" }, iF = ["title"], aF = { class: "skill-section" }, oF = { class: "section-title" }, sF = ["title"], cF = { class: "field" }, lF = { class: "field-label" }, uF = ["disabled", "placeholder"], dF = { class: "field" }, fF = { class: "field-label" }, pF = ["placeholder"], mF = { class: "field field-textarea" }, hF = { class: "field-label" }, gF = ["placeholder"], _F = {
|
|
28453
28457
|
key: 0,
|
|
28454
28458
|
class: "skill-error"
|
|
28455
28459
|
}, vF = { class: "skill-section" }, yF = { class: "section-title" }, bF = {
|
|
@@ -28848,7 +28852,7 @@ var EO = ["innerHTML"], DO = /* @__PURE__ */ Ii({
|
|
|
28848
28852
|
])], !0) : Q("", !0)
|
|
28849
28853
|
], 6)], 64));
|
|
28850
28854
|
}
|
|
28851
|
-
}), [["__scopeId", "data-v-
|
|
28855
|
+
}), [["__scopeId", "data-v-e3c6c516"]]);
|
|
28852
28856
|
//#endregion
|
|
28853
28857
|
//#region src/core/sdk/mountChatDialog.ts
|
|
28854
28858
|
function OF(e) {
|
|
@@ -68847,7 +68847,7 @@ function E8(e) {
|
|
|
68847
68847
|
};
|
|
68848
68848
|
let o = (g = t.op) == null ? "set" : g, s;
|
|
68849
68849
|
if (o !== "remove") {
|
|
68850
|
-
if (t.value === void 0 || t.value === "") return {
|
|
68850
|
+
if (t.value === void 0 || t.value === "" && o === "move") return {
|
|
68851
68851
|
ok: !1,
|
|
68852
68852
|
error: yZ({
|
|
68853
68853
|
code: "MISSING_VALUE",
|
|
@@ -74310,7 +74310,7 @@ var z7 = {
|
|
|
74310
74310
|
debugTabSubagent: "子 agent",
|
|
74311
74311
|
debugTabInfo: "Agent 信息",
|
|
74312
74312
|
debugClearLogs: "清空日志",
|
|
74313
|
-
debugCopyReport: "
|
|
74313
|
+
debugCopyReport: "下载诊断报告 JSON 文件(完整日志,交维护者排查)",
|
|
74314
74314
|
debugTypeContext: "上下文",
|
|
74315
74315
|
debugTypeLlmRequest: "LLM请求",
|
|
74316
74316
|
debugTypeLlmResponse: "LLM响应",
|
|
@@ -74547,7 +74547,7 @@ var z7 = {
|
|
|
74547
74547
|
debugTabSubagent: "Sub-agents",
|
|
74548
74548
|
debugTabInfo: "Agent info",
|
|
74549
74549
|
debugClearLogs: "Clear logs",
|
|
74550
|
-
debugCopyReport: "
|
|
74550
|
+
debugCopyReport: "Download diagnostics report as JSON file (full logs for troubleshooting)",
|
|
74551
74551
|
debugTypeContext: "Context",
|
|
74552
74552
|
debugTypeLlmRequest: "LLM request",
|
|
74553
74553
|
debugTypeLlmResponse: "LLM response",
|
|
@@ -85567,7 +85567,7 @@ var yze = {
|
|
|
85567
85567
|
g.value === t && (g.value = "");
|
|
85568
85568
|
}, 1200));
|
|
85569
85569
|
}
|
|
85570
|
-
|
|
85570
|
+
function v() {
|
|
85571
85571
|
let e = "";
|
|
85572
85572
|
try {
|
|
85573
85573
|
e = n.exportDiagnostics ? n.exportDiagnostics() : $6(Q6({
|
|
@@ -85577,7 +85577,11 @@ var yze = {
|
|
|
85577
85577
|
} catch (t) {
|
|
85578
85578
|
e = "";
|
|
85579
85579
|
}
|
|
85580
|
-
|
|
85580
|
+
if (!e) return;
|
|
85581
|
+
let t = new Blob([e], { type: "application/json" }), r = URL.createObjectURL(t), i = document.createElement("a");
|
|
85582
|
+
i.href = r, i.download = `page-agent-diagnostics-${(/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-")}.json`, i.click(), URL.revokeObjectURL(r), g.value = "report", setTimeout(() => {
|
|
85583
|
+
g.value === "report" && (g.value = "");
|
|
85584
|
+
}, 1200);
|
|
85581
85585
|
}
|
|
85582
85586
|
let y = OX(() => n.messages), b = OX(() => ({
|
|
85583
85587
|
context: {
|
|
@@ -86026,7 +86030,7 @@ var yze = {
|
|
|
86026
86030
|
class: "hd-btn",
|
|
86027
86031
|
title: y.value.debugCopyReport,
|
|
86028
86032
|
onClick: v
|
|
86029
|
-
}, J(g.value === "report" ? "✓" : "
|
|
86033
|
+
}, J(g.value === "report" ? "✓" : "💾"), 9, Cze),
|
|
86030
86034
|
ue.value === "logs" ? (X(), Z("button", {
|
|
86031
86035
|
key: 0,
|
|
86032
86036
|
class: "hd-btn",
|
|
@@ -86400,7 +86404,7 @@ var yze = {
|
|
|
86400
86404
|
_: 1
|
|
86401
86405
|
})]));
|
|
86402
86406
|
}
|
|
86403
|
-
}), [["__scopeId", "data-v-
|
|
86407
|
+
}), [["__scopeId", "data-v-2510fa80"]]), rWe = { class: "skill-panel" }, iWe = { class: "skill-header" }, aWe = { class: "skill-title" }, oWe = ["title"], sWe = { class: "skill-section" }, cWe = { class: "section-title" }, lWe = ["title"], uWe = { class: "field" }, dWe = { class: "field-label" }, fWe = ["disabled", "placeholder"], pWe = { class: "field" }, mWe = { class: "field-label" }, hWe = ["placeholder"], gWe = { class: "field field-textarea" }, _We = { class: "field-label" }, vWe = ["placeholder"], yWe = {
|
|
86404
86408
|
key: 0,
|
|
86405
86409
|
class: "skill-error"
|
|
86406
86410
|
}, bWe = { class: "skill-section" }, xWe = { class: "section-title" }, SWe = {
|
|
@@ -86805,7 +86809,7 @@ var yze = {
|
|
|
86805
86809
|
])], !0) : $("", !0)
|
|
86806
86810
|
], 6)], 64));
|
|
86807
86811
|
}
|
|
86808
|
-
}), [["__scopeId", "data-v-
|
|
86812
|
+
}), [["__scopeId", "data-v-e3c6c516"]]);
|
|
86809
86813
|
//#endregion
|
|
86810
86814
|
//#region src/core/sdk/mountChatDialog.ts
|
|
86811
86815
|
j();
|