@vtj/designer 0.19.19 → 0.19.20
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/dist/Editor-14n_tZ6z.js +4 -0
- package/dist/{index-XZTe9av3.js → index-Dxcz5Bcf.js} +137 -131
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
- package/types/components/widgets/agent/types/agent.d.ts +2 -0
- package/types/components/widgets/agent/utils/chat.d.ts +2 -0
- package/types/components/widgets/agent/utils/messages.d.ts +1 -1
- package/types/version.d.ts +2 -2
- package/dist/Editor-BBme3a7y.js +0 -4
|
@@ -19,10 +19,10 @@ import { editor as vh } from "monaco-editor";
|
|
|
19
19
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
20
20
|
* @name @vtj/designer
|
|
21
21
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
22
|
-
* @version 0.19.
|
|
22
|
+
* @version 0.19.20
|
|
23
23
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
24
24
|
*/
|
|
25
|
-
const ar = "0.19.
|
|
25
|
+
const ar = "0.19.20", bh = {
|
|
26
26
|
width: 390,
|
|
27
27
|
height: 844
|
|
28
28
|
}, yh = {
|
|
@@ -8927,7 +8927,7 @@ const s0 = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8927
8927
|
]));
|
|
8928
8928
|
}
|
|
8929
8929
|
}), Et = Hp({
|
|
8930
|
-
loader: () => import("./Editor-
|
|
8930
|
+
loader: () => import("./Editor-14n_tZ6z.js"),
|
|
8931
8931
|
loadingComponent: H({
|
|
8932
8932
|
render() {
|
|
8933
8933
|
return fo("div", "正在拼命加载...");
|
|
@@ -23719,19 +23719,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), jt = se, ut = Se), He
|
|
|
23719
23719
|
}
|
|
23720
23720
|
function ko(se, Se, He, ut) {
|
|
23721
23721
|
const jt = /* @__PURE__ */ Object.create(null);
|
|
23722
|
-
function ie(
|
|
23723
|
-
return
|
|
23722
|
+
function ie(de, Ce) {
|
|
23723
|
+
return de.keywords[Ce];
|
|
23724
23724
|
}
|
|
23725
23725
|
function xe() {
|
|
23726
23726
|
if (!je.keywords) {
|
|
23727
23727
|
Jt.addText(vt);
|
|
23728
23728
|
return;
|
|
23729
23729
|
}
|
|
23730
|
-
let
|
|
23730
|
+
let de = 0;
|
|
23731
23731
|
je.keywordPatternRe.lastIndex = 0;
|
|
23732
23732
|
let Ce = je.keywordPatternRe.exec(vt), We = "";
|
|
23733
23733
|
for (; Ce; ) {
|
|
23734
|
-
We += vt.substring(
|
|
23734
|
+
We += vt.substring(de, Ce.index);
|
|
23735
23735
|
const dt = Nn.case_insensitive ? Ce[0].toLowerCase() : Ce[0], Zt = ie(je, dt);
|
|
23736
23736
|
if (Zt) {
|
|
23737
23737
|
const [zn, Vp] = Zt;
|
|
@@ -23743,92 +23743,92 @@ https://github.com/highlightjs/highlight.js/issues/2277`), jt = se, ut = Se), He
|
|
|
23743
23743
|
}
|
|
23744
23744
|
} else
|
|
23745
23745
|
We += Ce[0];
|
|
23746
|
-
|
|
23746
|
+
de = je.keywordPatternRe.lastIndex, Ce = je.keywordPatternRe.exec(vt);
|
|
23747
23747
|
}
|
|
23748
|
-
We += vt.substring(
|
|
23748
|
+
We += vt.substring(de), Jt.addText(We);
|
|
23749
23749
|
}
|
|
23750
23750
|
function Je() {
|
|
23751
23751
|
if (vt === "") return;
|
|
23752
|
-
let
|
|
23752
|
+
let de = null;
|
|
23753
23753
|
if (typeof je.subLanguage == "string") {
|
|
23754
23754
|
if (!X[je.subLanguage]) {
|
|
23755
23755
|
Jt.addText(vt);
|
|
23756
23756
|
return;
|
|
23757
23757
|
}
|
|
23758
|
-
|
|
23759
|
-
|
|
23758
|
+
de = ko(je.subLanguage, vt, !0, ll[je.subLanguage]), ll[je.subLanguage] = /** @type {CompiledMode} */
|
|
23759
|
+
de._top;
|
|
23760
23760
|
} else
|
|
23761
|
-
|
|
23762
|
-
je.relevance > 0 && (es +=
|
|
23761
|
+
de = Ho(vt, je.subLanguage.length ? je.subLanguage : null);
|
|
23762
|
+
je.relevance > 0 && (es += de.relevance), Jt.__addSublanguage(de._emitter, de.language);
|
|
23763
23763
|
}
|
|
23764
23764
|
function ft() {
|
|
23765
23765
|
je.subLanguage != null ? Je() : xe(), vt = "";
|
|
23766
23766
|
}
|
|
23767
|
-
function ht(
|
|
23768
|
-
|
|
23767
|
+
function ht(de, Ce) {
|
|
23768
|
+
de !== "" && (Jt.startScope(Ce), Jt.addText(de), Jt.endScope());
|
|
23769
23769
|
}
|
|
23770
|
-
function vr(
|
|
23770
|
+
function vr(de, Ce) {
|
|
23771
23771
|
let We = 1;
|
|
23772
23772
|
const dt = Ce.length - 1;
|
|
23773
23773
|
for (; We <= dt; ) {
|
|
23774
|
-
if (!
|
|
23774
|
+
if (!de._emit[We]) {
|
|
23775
23775
|
We++;
|
|
23776
23776
|
continue;
|
|
23777
23777
|
}
|
|
23778
|
-
const Zt = Nn.classNameAliases[
|
|
23778
|
+
const Zt = Nn.classNameAliases[de[We]] || de[We], zn = Ce[We];
|
|
23779
23779
|
Zt ? ht(zn, Zt) : (vt = zn, xe(), vt = ""), We++;
|
|
23780
23780
|
}
|
|
23781
23781
|
}
|
|
23782
|
-
function sl(
|
|
23783
|
-
return
|
|
23782
|
+
function sl(de, Ce) {
|
|
23783
|
+
return de.scope && typeof de.scope == "string" && Jt.openNode(Nn.classNameAliases[de.scope] || de.scope), de.beginScope && (de.beginScope._wrap ? (ht(vt, Nn.classNameAliases[de.beginScope._wrap] || de.beginScope._wrap), vt = "") : de.beginScope._multi && (vr(de.beginScope, Ce), vt = "")), je = Object.create(de, { parent: { value: je } }), je;
|
|
23784
23784
|
}
|
|
23785
|
-
function al(
|
|
23786
|
-
let dt = C(
|
|
23785
|
+
function al(de, Ce, We) {
|
|
23786
|
+
let dt = C(de.endRe, We);
|
|
23787
23787
|
if (dt) {
|
|
23788
|
-
if (
|
|
23789
|
-
const Zt = new t(
|
|
23790
|
-
|
|
23788
|
+
if (de["on:end"]) {
|
|
23789
|
+
const Zt = new t(de);
|
|
23790
|
+
de["on:end"](Ce, Zt), Zt.isMatchIgnored && (dt = !1);
|
|
23791
23791
|
}
|
|
23792
23792
|
if (dt) {
|
|
23793
|
-
for (;
|
|
23794
|
-
|
|
23795
|
-
return
|
|
23793
|
+
for (; de.endsParent && de.parent; )
|
|
23794
|
+
de = de.parent;
|
|
23795
|
+
return de;
|
|
23796
23796
|
}
|
|
23797
23797
|
}
|
|
23798
|
-
if (
|
|
23799
|
-
return al(
|
|
23798
|
+
if (de.endsWithParent)
|
|
23799
|
+
return al(de.parent, Ce, We);
|
|
23800
23800
|
}
|
|
23801
|
-
function Rp(
|
|
23802
|
-
return je.matcher.regexIndex === 0 ? (vt +=
|
|
23801
|
+
function Rp(de) {
|
|
23802
|
+
return je.matcher.regexIndex === 0 ? (vt += de[0], 1) : (ua = !0, 0);
|
|
23803
23803
|
}
|
|
23804
|
-
function Dp(
|
|
23805
|
-
const Ce =
|
|
23804
|
+
function Dp(de) {
|
|
23805
|
+
const Ce = de[0], We = de.rule, dt = new t(We), Zt = [We.__beforeBegin, We["on:begin"]];
|
|
23806
23806
|
for (const zn of Zt)
|
|
23807
|
-
if (zn && (zn(
|
|
23807
|
+
if (zn && (zn(de, dt), dt.isMatchIgnored))
|
|
23808
23808
|
return Rp(Ce);
|
|
23809
|
-
return We.skip ? vt += Ce : (We.excludeBegin && (vt += Ce), ft(), !We.returnBegin && !We.excludeBegin && (vt = Ce)), sl(We,
|
|
23809
|
+
return We.skip ? vt += Ce : (We.excludeBegin && (vt += Ce), ft(), !We.returnBegin && !We.excludeBegin && (vt = Ce)), sl(We, de), We.returnBegin ? 0 : Ce.length;
|
|
23810
23810
|
}
|
|
23811
|
-
function Np(
|
|
23812
|
-
const Ce =
|
|
23811
|
+
function Np(de) {
|
|
23812
|
+
const Ce = de[0], We = Se.substring(de.index), dt = al(je, de, We);
|
|
23813
23813
|
if (!dt)
|
|
23814
23814
|
return qr;
|
|
23815
23815
|
const Zt = je;
|
|
23816
|
-
je.endScope && je.endScope._wrap ? (ft(), ht(Ce, je.endScope._wrap)) : je.endScope && je.endScope._multi ? (ft(), vr(je.endScope,
|
|
23816
|
+
je.endScope && je.endScope._wrap ? (ft(), ht(Ce, je.endScope._wrap)) : je.endScope && je.endScope._multi ? (ft(), vr(je.endScope, de)) : Zt.skip ? vt += Ce : (Zt.returnEnd || Zt.excludeEnd || (vt += Ce), ft(), Zt.excludeEnd && (vt = Ce));
|
|
23817
23817
|
do
|
|
23818
23818
|
je.scope && Jt.closeNode(), !je.skip && !je.subLanguage && (es += je.relevance), je = je.parent;
|
|
23819
23819
|
while (je !== dt.parent);
|
|
23820
|
-
return dt.starts && sl(dt.starts,
|
|
23820
|
+
return dt.starts && sl(dt.starts, de), Zt.returnEnd ? 0 : Ce.length;
|
|
23821
23821
|
}
|
|
23822
23822
|
function Pp() {
|
|
23823
|
-
const
|
|
23823
|
+
const de = [];
|
|
23824
23824
|
for (let Ce = je; Ce !== Nn; Ce = Ce.parent)
|
|
23825
|
-
Ce.scope &&
|
|
23826
|
-
|
|
23825
|
+
Ce.scope && de.unshift(Ce.scope);
|
|
23826
|
+
de.forEach((Ce) => Jt.openNode(Ce));
|
|
23827
23827
|
}
|
|
23828
23828
|
let Qr = {};
|
|
23829
|
-
function il(
|
|
23829
|
+
function il(de, Ce) {
|
|
23830
23830
|
const We = Ce && Ce[0];
|
|
23831
|
-
if (vt +=
|
|
23831
|
+
if (vt += de, We == null)
|
|
23832
23832
|
return ft(), 0;
|
|
23833
23833
|
if (Qr.type === "begin" && Ce.type === "end" && Qr.index === Ce.index && We === "") {
|
|
23834
23834
|
if (vt += Se.slice(Ce.index, Ce.index + 1), !at) {
|
|
@@ -23868,10 +23868,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), jt = se, ut = Se), He
|
|
|
23868
23868
|
else {
|
|
23869
23869
|
for (je.matcher.considerAll(); ; ) {
|
|
23870
23870
|
ca++, ua ? ua = !1 : je.matcher.considerAll(), je.matcher.lastIndex = xo;
|
|
23871
|
-
const
|
|
23872
|
-
if (!
|
|
23873
|
-
const Ce = Se.substring(xo,
|
|
23874
|
-
xo =
|
|
23871
|
+
const de = je.matcher.exec(Se);
|
|
23872
|
+
if (!de) break;
|
|
23873
|
+
const Ce = Se.substring(xo, de.index), We = il(Ce, de);
|
|
23874
|
+
xo = de.index + We;
|
|
23875
23875
|
}
|
|
23876
23876
|
il(Se.substring(xo));
|
|
23877
23877
|
}
|
|
@@ -23883,18 +23883,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), jt = se, ut = Se), He
|
|
|
23883
23883
|
_emitter: Jt,
|
|
23884
23884
|
_top: je
|
|
23885
23885
|
};
|
|
23886
|
-
} catch (
|
|
23887
|
-
if (
|
|
23886
|
+
} catch (de) {
|
|
23887
|
+
if (de.message && de.message.includes("Illegal"))
|
|
23888
23888
|
return {
|
|
23889
23889
|
language: se,
|
|
23890
23890
|
value: Yn(Se),
|
|
23891
23891
|
illegal: !0,
|
|
23892
23892
|
relevance: 0,
|
|
23893
23893
|
_illegalBy: {
|
|
23894
|
-
message:
|
|
23894
|
+
message: de.message,
|
|
23895
23895
|
index: xo,
|
|
23896
23896
|
context: Se.slice(xo - 100, xo + 100),
|
|
23897
|
-
mode:
|
|
23897
|
+
mode: de.mode,
|
|
23898
23898
|
resultSoFar: la
|
|
23899
23899
|
},
|
|
23900
23900
|
_emitter: Jt
|
|
@@ -23905,11 +23905,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), jt = se, ut = Se), He
|
|
|
23905
23905
|
value: Yn(Se),
|
|
23906
23906
|
illegal: !1,
|
|
23907
23907
|
relevance: 0,
|
|
23908
|
-
errorRaised:
|
|
23908
|
+
errorRaised: de,
|
|
23909
23909
|
_emitter: Jt,
|
|
23910
23910
|
_top: je
|
|
23911
23911
|
};
|
|
23912
|
-
throw
|
|
23912
|
+
throw de;
|
|
23913
23913
|
}
|
|
23914
23914
|
}
|
|
23915
23915
|
function hr(se) {
|
|
@@ -26962,7 +26962,7 @@ function ci(e, t) {
|
|
|
26962
26962
|
function QT(e, t, n) {
|
|
26963
26963
|
e.value = n.text, t.value = n.type;
|
|
26964
26964
|
}
|
|
26965
|
-
const
|
|
26965
|
+
const pe = {
|
|
26966
26966
|
// 校验
|
|
26967
26967
|
tokenMissing: { text: "请先获取 Token", type: "danger" },
|
|
26968
26968
|
promptEmpty: { text: "请输入消息或上传文件", type: "danger" },
|
|
@@ -27064,8 +27064,8 @@ const de = {
|
|
|
27064
27064
|
text: `Architect 输出异常,正在重试 (${e}/${t})...`,
|
|
27065
27065
|
type: "warning"
|
|
27066
27066
|
}),
|
|
27067
|
-
architectFailed: (e) => ({
|
|
27068
|
-
text: `Architect
|
|
27067
|
+
architectFailed: (e, t = 0) => ({
|
|
27068
|
+
text: `Architect 规划失败${t ? `(已自动重试 ${t} 次)` : ""}: ${e}`,
|
|
27069
27069
|
type: "danger"
|
|
27070
27070
|
}),
|
|
27071
27071
|
error: (e) => ({
|
|
@@ -27130,7 +27130,9 @@ function vs(e) {
|
|
|
27130
27130
|
topicId: e.topicId,
|
|
27131
27131
|
userId: e.userId,
|
|
27132
27132
|
status: e.status ?? "Success",
|
|
27133
|
+
attempt: e.attempt,
|
|
27133
27134
|
content: e.content || " ",
|
|
27135
|
+
message: e.message,
|
|
27134
27136
|
reasoning: e.result?.reasoning || "",
|
|
27135
27137
|
modelUsed: e.result?.modelUsed || "",
|
|
27136
27138
|
tokens: e.tokens || 0,
|
|
@@ -27276,10 +27278,10 @@ function uA(e) {
|
|
|
27276
27278
|
action: A,
|
|
27277
27279
|
risk: C,
|
|
27278
27280
|
status: "pending"
|
|
27279
|
-
}, a(
|
|
27281
|
+
}, a(pe.awaitingApproval(A, C));
|
|
27280
27282
|
const I = await i(S);
|
|
27281
27283
|
return E.approval.status = I ? "approved" : "rejected", a(
|
|
27282
|
-
I ?
|
|
27284
|
+
I ? pe.executingAction(A) : pe.actionRejected(A)
|
|
27283
27285
|
), I;
|
|
27284
27286
|
}
|
|
27285
27287
|
function u(E, A, C, S) {
|
|
@@ -27358,7 +27360,7 @@ function uA(e) {
|
|
|
27358
27360
|
return U() ? B(ce) : (ce.error = Te, ce.done = !0, Hn(Te, N, k, ve));
|
|
27359
27361
|
}
|
|
27360
27362
|
if (U() || (a(
|
|
27361
|
-
|
|
27363
|
+
pe.editorExecuting(C.description, S + 1, I.length)
|
|
27362
27364
|
), await s({
|
|
27363
27365
|
id: E,
|
|
27364
27366
|
currentStepId: C.id,
|
|
@@ -27435,8 +27437,8 @@ ${ve}
|
|
|
27435
27437
|
ce.vueCode,
|
|
27436
27438
|
ce.dsl,
|
|
27437
27439
|
Te
|
|
27438
|
-
), await ne(!0) ? "retry" : (R.content = ce.content, R.done = !0, ps(ce.content, N, k))) : (R.error =
|
|
27439
|
-
|
|
27440
|
+
), await ne(!0) ? "retry" : (R.content = ce.content, R.done = !0, ps(ce.content, N, k))) : (R.error = pe.lockedProject.text, R.done = !0, Hn(
|
|
27441
|
+
pe.lockedProject.text,
|
|
27440
27442
|
N,
|
|
27441
27443
|
k,
|
|
27442
27444
|
ce.content
|
|
@@ -27465,7 +27467,7 @@ ${ve}
|
|
|
27465
27467
|
userName: ""
|
|
27466
27468
|
});
|
|
27467
27469
|
} catch (ze) {
|
|
27468
|
-
return R.error =
|
|
27470
|
+
return R.error = pe.chatCreateFailed(ze.message).text, R.done = !0, Hn(R.error, N, k);
|
|
27469
27471
|
}
|
|
27470
27472
|
z = 1;
|
|
27471
27473
|
const nt = Hr(ot).chatId;
|
|
@@ -27489,7 +27491,7 @@ ${ve}
|
|
|
27489
27491
|
);
|
|
27490
27492
|
const ze = W(
|
|
27491
27493
|
R,
|
|
27492
|
-
|
|
27494
|
+
pe.userRejectedTool.text,
|
|
27493
27495
|
ve
|
|
27494
27496
|
);
|
|
27495
27497
|
if (ze) return ze;
|
|
@@ -27600,7 +27602,7 @@ ${gt.result}
|
|
|
27600
27602
|
stepIdx: S,
|
|
27601
27603
|
attempt: Te + 1,
|
|
27602
27604
|
error: fe?.message || String(fe)
|
|
27603
|
-
}), R.error =
|
|
27605
|
+
}), R.error = pe.chatCreateFailed(fe.message).text, R.done = !0, Hn(R.error, N, k);
|
|
27604
27606
|
}
|
|
27605
27607
|
const Ke = Hr(nt).chatId;
|
|
27606
27608
|
if (U()) return B(R);
|
|
@@ -27674,7 +27676,7 @@ ${gt.result}
|
|
|
27674
27676
|
), K(ve);
|
|
27675
27677
|
const te = W(
|
|
27676
27678
|
R,
|
|
27677
|
-
|
|
27679
|
+
pe.userRejectedTool.text,
|
|
27678
27680
|
fe
|
|
27679
27681
|
);
|
|
27680
27682
|
if (te) return te;
|
|
@@ -27748,7 +27750,7 @@ ${Xe.result}
|
|
|
27748
27750
|
);
|
|
27749
27751
|
try {
|
|
27750
27752
|
const Fe = r(), tt = Fe.project.value?.toDsl();
|
|
27751
|
-
if (!tt) throw new Error(
|
|
27753
|
+
if (!tt) throw new Error(pe.projectNotReady.text);
|
|
27752
27754
|
const At = Fe.current.value?.toDsl(ui), Xe = await Fe.service.parseVue(tt, {
|
|
27753
27755
|
id: At?.id || "ai_gen",
|
|
27754
27756
|
name: At?.name || "AiGenFile",
|
|
@@ -27769,7 +27771,7 @@ ${be}
|
|
|
27769
27771
|
content: fe,
|
|
27770
27772
|
edChatId: Ke,
|
|
27771
27773
|
action: "applyVue",
|
|
27772
|
-
rejectMessage:
|
|
27774
|
+
rejectMessage: pe.userRejectedVue.text,
|
|
27773
27775
|
engine: Fe,
|
|
27774
27776
|
vueCode: Ae.code,
|
|
27775
27777
|
dsl: Xe,
|
|
@@ -27794,7 +27796,7 @@ ${be}
|
|
|
27794
27796
|
turn: ce,
|
|
27795
27797
|
error: Fe.message
|
|
27796
27798
|
});
|
|
27797
|
-
const tt =
|
|
27799
|
+
const tt = pe.vueToDslFailed(Fe.message).text;
|
|
27798
27800
|
return R.error = tt, R.done = !0, Hn(tt, N, k, fe);
|
|
27799
27801
|
}
|
|
27800
27802
|
}
|
|
@@ -27810,12 +27812,12 @@ ${be}
|
|
|
27810
27812
|
try {
|
|
27811
27813
|
const Fe = r(), tt = Fe.project.value?.toDsl(), At = Fe.current.value?.toDsl(ui);
|
|
27812
27814
|
if (!tt || !At)
|
|
27813
|
-
throw new Error(
|
|
27815
|
+
throw new Error(pe.fileNotReady.text);
|
|
27814
27816
|
const Xe = await Fe.service.genVueContent(
|
|
27815
27817
|
tt,
|
|
27816
27818
|
At
|
|
27817
27819
|
);
|
|
27818
|
-
if (!Xe) throw new Error(
|
|
27820
|
+
if (!Xe) throw new Error(pe.sourceUnavailable.text);
|
|
27819
27821
|
let te = Xe.replace(/\r\n/g, `
|
|
27820
27822
|
`);
|
|
27821
27823
|
for (const Qe of Ae.patches) {
|
|
@@ -27858,7 +27860,7 @@ ${Xe}
|
|
|
27858
27860
|
content: fe,
|
|
27859
27861
|
edChatId: Ke,
|
|
27860
27862
|
action: "applyDiff",
|
|
27861
|
-
rejectMessage:
|
|
27863
|
+
rejectMessage: pe.userRejectedDiff.text,
|
|
27862
27864
|
engine: Fe,
|
|
27863
27865
|
vueCode: te,
|
|
27864
27866
|
dsl: be,
|
|
@@ -27876,7 +27878,7 @@ ${Xe}
|
|
|
27876
27878
|
turn: ce,
|
|
27877
27879
|
error: Fe.message
|
|
27878
27880
|
});
|
|
27879
|
-
const tt =
|
|
27881
|
+
const tt = pe.diffApplyFailed(Fe.message).text;
|
|
27880
27882
|
return R.error = tt, R.done = !0, Hn(tt, N, k, fe);
|
|
27881
27883
|
}
|
|
27882
27884
|
}
|
|
@@ -27924,7 +27926,7 @@ ${et}
|
|
|
27924
27926
|
}), R.error = fe.message, R.done = !0, Hn(fe.message, N, k);
|
|
27925
27927
|
}
|
|
27926
27928
|
}
|
|
27927
|
-
const st =
|
|
27929
|
+
const st = pe.maxTurnsReached(bc).text;
|
|
27928
27930
|
return R.error = st, R.done = !0, Hn(st, N, k);
|
|
27929
27931
|
}
|
|
27930
27932
|
return { executeEditorStep: b };
|
|
@@ -28006,7 +28008,9 @@ function dA(e, t) {
|
|
|
28006
28008
|
n.push({ path: `${f}.toolName`, message: "工具不存在" });
|
|
28007
28009
|
continue;
|
|
28008
28010
|
}
|
|
28009
|
-
d.parameters !== void 0 && !Array.isArray(d.parameters) ? n.push({ path: `${f}.parameters`, message: "必须是数组" }) : g && d.parameters && !
|
|
28011
|
+
d.parameters !== void 0 && !Array.isArray(d.parameters) ? n.push({ path: `${f}.parameters`, message: "必须是数组" }) : g && d.parameters && !(d.toolName === "active" && d.parameters.length === 0 && d.dependsOn?.length === 1 && ["createPage", "createBlock"].includes(
|
|
28012
|
+
o.find((v) => v?.id === d.dependsOn[0])?.toolName || ""
|
|
28013
|
+
)) && !Sp(d.parameters, g.parameters) && n.push({
|
|
28010
28014
|
path: `${f}.parameters`,
|
|
28011
28015
|
message: "参数不符合工具定义"
|
|
28012
28016
|
}), g?.risk === "destructive" && e.safety !== "destructive" && n.push({
|
|
@@ -28129,7 +28133,7 @@ function fA(e) {
|
|
|
28129
28133
|
return /拒绝|审批/.test(I) ? "approval_rejected" : /refresh|运行时/.test(I) ? "runtime" : /计划|architect/i.test(I) ? "plan" : /超时/.test(I) ? "timeout" : "execution";
|
|
28130
28134
|
}
|
|
28131
28135
|
async function d(S, I, k, w, _, T) {
|
|
28132
|
-
w.summaryText = "", w.summaryReasoning = "", w.summaryError = "", a(
|
|
28136
|
+
w.summaryText = "", w.summaryReasoning = "", w.summaryError = "", a(pe.generatingSummary);
|
|
28133
28137
|
try {
|
|
28134
28138
|
const N = await n({
|
|
28135
28139
|
topicId: S,
|
|
@@ -28217,7 +28221,7 @@ function fA(e) {
|
|
|
28217
28221
|
model: S.round.modelUsed,
|
|
28218
28222
|
checkpointId: S.round.checkpointId
|
|
28219
28223
|
}), a(
|
|
28220
|
-
I ?
|
|
28224
|
+
I ? pe.summaryFailed(S.round.summaryError) : S.successMessage
|
|
28221
28225
|
);
|
|
28222
28226
|
}
|
|
28223
28227
|
async function v(S, I, k, w, _, T, N, U, B) {
|
|
@@ -28225,7 +28229,7 @@ function fA(e) {
|
|
|
28225
28229
|
let ee = N + J.reduce((Y, ae) => Y + ae.tokens, 0), R = -1;
|
|
28226
28230
|
for (let Y = T; Y < q.length; Y++) {
|
|
28227
28231
|
if (U?.aborted) {
|
|
28228
|
-
a(
|
|
28232
|
+
a(pe.cancelledWithProgress(Y, q.length));
|
|
28229
28233
|
return;
|
|
28230
28234
|
}
|
|
28231
28235
|
const ae = await c(
|
|
@@ -28256,7 +28260,7 @@ function fA(e) {
|
|
|
28256
28260
|
}
|
|
28257
28261
|
}
|
|
28258
28262
|
if (U?.aborted) {
|
|
28259
|
-
a(
|
|
28263
|
+
a(pe.cancelled);
|
|
28260
28264
|
return;
|
|
28261
28265
|
}
|
|
28262
28266
|
if (R < 0 && (ee += await d(
|
|
@@ -28276,7 +28280,7 @@ function fA(e) {
|
|
|
28276
28280
|
tokens: 0,
|
|
28277
28281
|
duration: 0
|
|
28278
28282
|
})), U?.aborted) {
|
|
28279
|
-
a(
|
|
28283
|
+
a(pe.cancelled);
|
|
28280
28284
|
return;
|
|
28281
28285
|
}
|
|
28282
28286
|
const K = R >= 0 || _.summaryError ? "failed" : "completed";
|
|
@@ -28290,7 +28294,7 @@ function fA(e) {
|
|
|
28290
28294
|
startTime: W,
|
|
28291
28295
|
model: _.modelUsed,
|
|
28292
28296
|
checkpointId: _.checkpointId
|
|
28293
|
-
}), R >= 0 ? a(
|
|
28297
|
+
}), R >= 0 ? a(pe.stepFailed(R + 1)) : _.summaryError ? a(pe.summaryFailed(_.summaryError)) : a(pe.allStepsDone(q.length));
|
|
28294
28298
|
}
|
|
28295
28299
|
async function b(S, I, k, w, _, T, N) {
|
|
28296
28300
|
const U = Date.now();
|
|
@@ -28298,7 +28302,7 @@ function fA(e) {
|
|
|
28298
28302
|
function W() {
|
|
28299
28303
|
return N?.aborted ?? !1;
|
|
28300
28304
|
}
|
|
28301
|
-
a(
|
|
28305
|
+
a(pe.architectPlanning), T.architectStreamText = "", T.reasoningText = "", T.architectError = "";
|
|
28302
28306
|
const q = () => t(
|
|
28303
28307
|
S,
|
|
28304
28308
|
I,
|
|
@@ -28324,8 +28328,10 @@ function fA(e) {
|
|
|
28324
28328
|
topicId: S,
|
|
28325
28329
|
userId: k,
|
|
28326
28330
|
content: T.architectStreamText || " ",
|
|
28331
|
+
message: R,
|
|
28327
28332
|
result: null,
|
|
28328
28333
|
tokens: 0,
|
|
28334
|
+
attempt: K,
|
|
28329
28335
|
status: "Failed"
|
|
28330
28336
|
})
|
|
28331
28337
|
);
|
|
@@ -28338,7 +28344,7 @@ function fA(e) {
|
|
|
28338
28344
|
});
|
|
28339
28345
|
}
|
|
28340
28346
|
T.architectStreamText = "", T.reasoningText = "", a(
|
|
28341
|
-
|
|
28347
|
+
pe.architectRetrying(K, Sc + 1)
|
|
28342
28348
|
), J = await q(), B += J.usage?.total_tokens || 0;
|
|
28343
28349
|
const ae = di(
|
|
28344
28350
|
T.architectStreamText,
|
|
@@ -28347,7 +28353,7 @@ function fA(e) {
|
|
|
28347
28353
|
ee = ae.plan, ae.error && (R = ae.error);
|
|
28348
28354
|
}
|
|
28349
28355
|
if (W()) {
|
|
28350
|
-
a(
|
|
28356
|
+
a(pe.cancelled);
|
|
28351
28357
|
return;
|
|
28352
28358
|
}
|
|
28353
28359
|
if (T.architectPlan = ee, T.modelUsed = J?.modelUsed, await o(
|
|
@@ -28356,13 +28362,13 @@ function fA(e) {
|
|
|
28356
28362
|
topicId: S,
|
|
28357
28363
|
userId: k,
|
|
28358
28364
|
content: T.architectStreamText || " ",
|
|
28365
|
+
message: ee ? "" : R,
|
|
28359
28366
|
result: J,
|
|
28360
|
-
tokens: J?.usage?.total_tokens || 0
|
|
28367
|
+
tokens: J?.usage?.total_tokens || 0,
|
|
28368
|
+
attempt: K + 1
|
|
28361
28369
|
})
|
|
28362
28370
|
), !T.architectPlan) {
|
|
28363
|
-
T.architectError = R ||
|
|
28364
|
-
R ? de.architectFailed(R) : de.planInvalid
|
|
28365
|
-
), await f({
|
|
28371
|
+
T.architectError = R || pe.planInvalid.text, a(pe.architectFailed(T.architectError, K)), await f({
|
|
28366
28372
|
topicId: S,
|
|
28367
28373
|
traceId: w,
|
|
28368
28374
|
status: "failed",
|
|
@@ -28393,7 +28399,7 @@ function fA(e) {
|
|
|
28393
28399
|
const Y = T.architectPlan.steps;
|
|
28394
28400
|
if (Y?.length && T.architectPlan.safety !== "readonly" && !T.checkpointId && (T.checkpointId = m(w)), !Y || Y.length === 0) {
|
|
28395
28401
|
const ae = T.architectPlan.answer || T.architectPlan.intent || "(无回复)";
|
|
28396
|
-
T.architectAnswer = ae, a(
|
|
28402
|
+
T.architectAnswer = ae, a(pe.architectAnswered), await f({
|
|
28397
28403
|
topicId: S,
|
|
28398
28404
|
traceId: w,
|
|
28399
28405
|
status: "completed",
|
|
@@ -28405,7 +28411,7 @@ function fA(e) {
|
|
|
28405
28411
|
});
|
|
28406
28412
|
return;
|
|
28407
28413
|
}
|
|
28408
|
-
a(
|
|
28414
|
+
a(pe.planGenerated(T.architectPlan.intent)), await v(
|
|
28409
28415
|
S,
|
|
28410
28416
|
k,
|
|
28411
28417
|
w,
|
|
@@ -28419,7 +28425,7 @@ function fA(e) {
|
|
|
28419
28425
|
async function E(S, I, k, w, _, T, N) {
|
|
28420
28426
|
const U = _.editorResults[T];
|
|
28421
28427
|
if (!_.architectPlan || !U?.error)
|
|
28422
|
-
throw new Error(
|
|
28428
|
+
throw new Error(pe.stepNotRetryable.text);
|
|
28423
28429
|
_.editorResults.splice(T + 1), _.summaryText = "", _.summaryReasoning = "", _.summaryError = "", await s({ id: S, status: "executing", traceId: k }), await v(
|
|
28424
28430
|
S,
|
|
28425
28431
|
I,
|
|
@@ -28434,7 +28440,7 @@ function fA(e) {
|
|
|
28434
28440
|
}
|
|
28435
28441
|
async function A(S, I, k, w, _, T) {
|
|
28436
28442
|
if (!_.architectPlan || !_.summaryError)
|
|
28437
|
-
throw new Error(
|
|
28443
|
+
throw new Error(pe.summaryNotRetryable.text);
|
|
28438
28444
|
const N = Date.now(), U = _.editorResults.map(p), B = await d(
|
|
28439
28445
|
S,
|
|
28440
28446
|
I,
|
|
@@ -28450,16 +28456,16 @@ function fA(e) {
|
|
|
28450
28456
|
records: U,
|
|
28451
28457
|
totalTokens: B,
|
|
28452
28458
|
startTime: N,
|
|
28453
|
-
successMessage:
|
|
28459
|
+
successMessage: pe.summaryRegenerated
|
|
28454
28460
|
});
|
|
28455
28461
|
}
|
|
28456
28462
|
async function C(S, I, k, w, _, T) {
|
|
28457
28463
|
const N = _.architectPlan?.steps || [];
|
|
28458
|
-
if (!N.length) throw new Error(
|
|
28464
|
+
if (!N.length) throw new Error(pe.planNotResumable.text);
|
|
28459
28465
|
const U = Date.now(), B = _.editorResults, W = B[B.length - 1];
|
|
28460
28466
|
let q = B.length, J;
|
|
28461
28467
|
if (W?.aborted && (q = B.length - 1, J = W), q >= N.length) {
|
|
28462
|
-
a(
|
|
28468
|
+
a(pe.resumedSummary);
|
|
28463
28469
|
const ee = B.map(p), R = await d(
|
|
28464
28470
|
S,
|
|
28465
28471
|
I,
|
|
@@ -28476,11 +28482,11 @@ function fA(e) {
|
|
|
28476
28482
|
records: ee,
|
|
28477
28483
|
totalTokens: R,
|
|
28478
28484
|
startTime: U,
|
|
28479
|
-
successMessage:
|
|
28485
|
+
successMessage: pe.summaryGenerated
|
|
28480
28486
|
});
|
|
28481
28487
|
return;
|
|
28482
28488
|
}
|
|
28483
|
-
await s({ id: S, status: "executing", traceId: k }), a(
|
|
28489
|
+
await s({ id: S, status: "executing", traceId: k }), a(pe.resumingStep(q + 1, N.length)), await v(
|
|
28484
28490
|
S,
|
|
28485
28491
|
I,
|
|
28486
28492
|
k,
|
|
@@ -28542,7 +28548,7 @@ function gA(e, t, n, o, s, r) {
|
|
|
28542
28548
|
return o ? o() : i.value;
|
|
28543
28549
|
}
|
|
28544
28550
|
function U(L) {
|
|
28545
|
-
return p.value ? L.trim() ? !0 : (b(
|
|
28551
|
+
return p.value ? L.trim() ? !0 : (b(pe.promptEmpty), !1) : (b(pe.tokenMissing), !1);
|
|
28546
28552
|
}
|
|
28547
28553
|
async function B(L, z) {
|
|
28548
28554
|
const ne = z ?? N();
|
|
@@ -28576,7 +28582,7 @@ function gA(e, t, n, o, s, r) {
|
|
|
28576
28582
|
prompt: ne.slice(0, 200),
|
|
28577
28583
|
error: ve?.message || String(ve),
|
|
28578
28584
|
stack: ve?.stack
|
|
28579
|
-
}), ve?.name !== "AbortError" && !Te && (T = () => B(L, ne)), b(
|
|
28585
|
+
}), ve?.name !== "AbortError" && !Te && (T = () => B(L, ne)), b(pe.error(ve.message));
|
|
28580
28586
|
} finally {
|
|
28581
28587
|
ce && (ce.state.streaming = !1), a.value = !1, c.value = !!_?.signal.aborted, _ = null;
|
|
28582
28588
|
}
|
|
@@ -28585,7 +28591,7 @@ function gA(e, t, n, o, s, r) {
|
|
|
28585
28591
|
T = null;
|
|
28586
28592
|
const z = lo("trace");
|
|
28587
28593
|
await B(async (ne, De, st) => {
|
|
28588
|
-
w.value = [], b(
|
|
28594
|
+
w.value = [], b(pe.creatingTopic);
|
|
28589
28595
|
const ce = e.access?.getData(), Te = {
|
|
28590
28596
|
model: m.value,
|
|
28591
28597
|
llm: JSON.stringify(
|
|
@@ -28605,7 +28611,7 @@ function gA(e, t, n, o, s, r) {
|
|
|
28605
28611
|
files: st.length ? JSON.stringify(st) : void 0,
|
|
28606
28612
|
requestId: z
|
|
28607
28613
|
}, ve = await E(Te), { topicId: ot, userId: nt, chatId: Ke } = GT(ve);
|
|
28608
|
-
d(ot), b(
|
|
28614
|
+
d(ot), b(pe.topicCreated(ot));
|
|
28609
28615
|
const ke = Tn(xc(De));
|
|
28610
28616
|
return ke.attachments = st, ke.promptSent = ne, w.value.push(ke), ke.architectChatId = Ke, { topicId: ot, userId: nt, chatId: Ke, round: ke };
|
|
28611
28617
|
}, L);
|
|
@@ -28614,20 +28620,20 @@ function gA(e, t, n, o, s, r) {
|
|
|
28614
28620
|
T = null;
|
|
28615
28621
|
const L = u.value.trim();
|
|
28616
28622
|
if (!L) {
|
|
28617
|
-
b(
|
|
28623
|
+
b(pe.topicIdMissing);
|
|
28618
28624
|
return;
|
|
28619
28625
|
}
|
|
28620
28626
|
const z = w.value[w.value.length - 1];
|
|
28621
28627
|
if (z && mA(N())) {
|
|
28622
28628
|
const De = kp(w.value), st = z.editorResults.some((ce) => ce.error) || !!z.summaryError || !!z.architectError;
|
|
28623
28629
|
if (De || st) {
|
|
28624
|
-
b(
|
|
28630
|
+
b(pe.resumingFromPrompt), await (st ? Be("续跑") : G());
|
|
28625
28631
|
return;
|
|
28626
28632
|
}
|
|
28627
28633
|
}
|
|
28628
28634
|
const ne = lo("trace");
|
|
28629
28635
|
await B(async (De, st, ce) => {
|
|
28630
|
-
b(
|
|
28636
|
+
b(pe.creatingArchitectChat);
|
|
28631
28637
|
const Te = {
|
|
28632
28638
|
topicId: L,
|
|
28633
28639
|
prompt: De,
|
|
@@ -28652,14 +28658,14 @@ function gA(e, t, n, o, s, r) {
|
|
|
28652
28658
|
try {
|
|
28653
28659
|
g(), await L(_.signal);
|
|
28654
28660
|
} catch (ne) {
|
|
28655
|
-
b(
|
|
28661
|
+
b(pe.retryFailed(ne.message));
|
|
28656
28662
|
} finally {
|
|
28657
28663
|
z && (z.state.streaming = !1), a.value = !1, c.value = !!_?.signal.aborted, _ = null;
|
|
28658
28664
|
}
|
|
28659
28665
|
}
|
|
28660
28666
|
function R() {
|
|
28661
28667
|
const L = u.value.trim();
|
|
28662
|
-
if (!L) throw new Error(
|
|
28668
|
+
if (!L) throw new Error(pe.retryTopicIdMissing.text);
|
|
28663
28669
|
return {
|
|
28664
28670
|
topicId: L,
|
|
28665
28671
|
userId: e.access?.getData()?.id || "",
|
|
@@ -28670,8 +28676,8 @@ function gA(e, t, n, o, s, r) {
|
|
|
28670
28676
|
await ee(async (ne) => {
|
|
28671
28677
|
const { topicId: De, userId: st, traceId: ce } = R();
|
|
28672
28678
|
if (!L.editorResults[z]?.error)
|
|
28673
|
-
throw new Error(
|
|
28674
|
-
b(
|
|
28679
|
+
throw new Error(pe.stepNotFailed.text);
|
|
28680
|
+
b(pe.retryingStep(z + 1)), await S(
|
|
28675
28681
|
De,
|
|
28676
28682
|
st,
|
|
28677
28683
|
ce,
|
|
@@ -28685,7 +28691,7 @@ function gA(e, t, n, o, s, r) {
|
|
|
28685
28691
|
async function Y(L) {
|
|
28686
28692
|
await ee(async (z) => {
|
|
28687
28693
|
const { topicId: ne, userId: De, traceId: st } = R();
|
|
28688
|
-
b(
|
|
28694
|
+
b(pe.retryingSummary), await k(
|
|
28689
28695
|
ne,
|
|
28690
28696
|
De,
|
|
28691
28697
|
st,
|
|
@@ -28699,13 +28705,13 @@ function gA(e, t, n, o, s, r) {
|
|
|
28699
28705
|
let ne;
|
|
28700
28706
|
try {
|
|
28701
28707
|
if (ne = R(), !L.architectChatId)
|
|
28702
|
-
throw new Error(
|
|
28708
|
+
throw new Error(pe.architectChatIdMissing.text);
|
|
28703
28709
|
} catch (De) {
|
|
28704
|
-
b(
|
|
28710
|
+
b(pe.error(De.message));
|
|
28705
28711
|
return;
|
|
28706
28712
|
}
|
|
28707
28713
|
await ee(async (De) => {
|
|
28708
|
-
L.architectPlan = null, L.architectAnswer = "", L.architectStreamText = "", L.reasoningText = "", L.architectError = "", L.architectRetryCount = 0, L.editorResults = [], L.summaryText = "", L.summaryReasoning = "", L.summaryError = "", b(
|
|
28714
|
+
L.architectPlan = null, L.architectAnswer = "", L.architectStreamText = "", L.reasoningText = "", L.architectError = "", L.architectRetryCount = 0, L.editorResults = [], L.summaryText = "", L.summaryReasoning = "", L.summaryError = "", b(pe.retryArchitect(z)), await C(
|
|
28709
28715
|
ne.topicId,
|
|
28710
28716
|
L.architectChatId,
|
|
28711
28717
|
ne.userId,
|
|
@@ -28721,14 +28727,14 @@ function gA(e, t, n, o, s, r) {
|
|
|
28721
28727
|
}
|
|
28722
28728
|
async function Be(L = "重试") {
|
|
28723
28729
|
if (T)
|
|
28724
|
-
return b(
|
|
28730
|
+
return b(pe.retryingLastRequest), T();
|
|
28725
28731
|
const z = w.value[w.value.length - 1];
|
|
28726
28732
|
if (!z) {
|
|
28727
|
-
b(
|
|
28733
|
+
b(pe.noRetryRound);
|
|
28728
28734
|
return;
|
|
28729
28735
|
}
|
|
28730
28736
|
if (!u.value.trim()) {
|
|
28731
|
-
b(
|
|
28737
|
+
b(pe.retryTopicIdMissing);
|
|
28732
28738
|
return;
|
|
28733
28739
|
}
|
|
28734
28740
|
const ne = z.editorResults.findIndex((De) => De.error);
|
|
@@ -28737,11 +28743,11 @@ function gA(e, t, n, o, s, r) {
|
|
|
28737
28743
|
async function G() {
|
|
28738
28744
|
const L = w.value[w.value.length - 1];
|
|
28739
28745
|
if (!L) {
|
|
28740
|
-
b(
|
|
28746
|
+
b(pe.noResumeRound);
|
|
28741
28747
|
return;
|
|
28742
28748
|
}
|
|
28743
28749
|
if (!u.value.trim()) {
|
|
28744
|
-
b(
|
|
28750
|
+
b(pe.resumeTopicIdMissing);
|
|
28745
28751
|
return;
|
|
28746
28752
|
}
|
|
28747
28753
|
if (!L.architectPlan)
|
|
@@ -28955,7 +28961,7 @@ function xA(e) {
|
|
|
28955
28961
|
step: i,
|
|
28956
28962
|
content: m?.content || "",
|
|
28957
28963
|
reasoning: p,
|
|
28958
|
-
error: m?.status && m.status !== "Success" ? m.message ||
|
|
28964
|
+
error: m?.status && m.status !== "Success" ? m.message || pe.replayStepFailed.text : null,
|
|
28959
28965
|
done: !0,
|
|
28960
28966
|
aborted: u || void 0,
|
|
28961
28967
|
turns: c,
|
|
@@ -29015,34 +29021,34 @@ function TA(e) {
|
|
|
29015
29021
|
t.architectAnswer = t.architectPlan.answer;
|
|
29016
29022
|
else if (s.length === 0 && !t.architectPlan) {
|
|
29017
29023
|
const a = n.content || "", i = di(a);
|
|
29018
|
-
i.error ? t.architectError = i.error : a.trim() ? t.architectAnswer = a : t.architectError =
|
|
29024
|
+
i.error ? t.architectError = i.error : a.trim() ? t.architectAnswer = a : t.architectError = pe.planInvalid.text;
|
|
29019
29025
|
}
|
|
29020
|
-
!t.architectError && n.status && n.status !== "Success" && (t.architectError = n.message ||
|
|
29026
|
+
!t.architectError && n.status && n.status !== "Success" && (t.architectError = n.message || pe.planInvalid.text);
|
|
29021
29027
|
} else r && (t.userMessage = li(r.prompt || ""), t.architectAnswer = r.content || "", t.reasoningText = r.reasoning || "", t.architectStreamText = r.content || "", t.attachments = r.files || void 0, t.promptSent = r.prompt || "");
|
|
29022
|
-
return t.editorResults = xA(s), o && (t.summaryAttempt = o.attempt || 1, t.summaryText = o.content || "", t.summaryReasoning = o.reasoning || "", o.status && o.status !== "Success" && (t.summaryError = o.message ||
|
|
29028
|
+
return t.editorResults = xA(s), o && (t.summaryAttempt = o.attempt || 1, t.summaryText = o.content || "", t.summaryReasoning = o.reasoning || "", o.status && o.status !== "Success" && (t.summaryError = o.message || pe.replaySummaryFailed.text)), t;
|
|
29023
29029
|
}
|
|
29024
29030
|
function AA(e, t) {
|
|
29025
29031
|
const { getChats: n, setStatus: o } = e;
|
|
29026
29032
|
async function s(r) {
|
|
29027
29033
|
if (!r) {
|
|
29028
|
-
o(
|
|
29034
|
+
o(pe.replayTopicIdMissing);
|
|
29029
29035
|
return;
|
|
29030
29036
|
}
|
|
29031
|
-
o(
|
|
29037
|
+
o(pe.loadingHistory);
|
|
29032
29038
|
try {
|
|
29033
29039
|
const a = await n(r);
|
|
29034
29040
|
if (!Array.isArray(a)) {
|
|
29035
|
-
console.error("[useReplayChat]", "接口返回数据格式异常", a), o(
|
|
29041
|
+
console.error("[useReplayChat]", "接口返回数据格式异常", a), o(pe.historyFormatInvalid(typeof a));
|
|
29036
29042
|
return;
|
|
29037
29043
|
}
|
|
29038
29044
|
if (a.length === 0) {
|
|
29039
|
-
t.value = [], o(
|
|
29045
|
+
t.value = [], o(pe.historyEmpty);
|
|
29040
29046
|
return;
|
|
29041
29047
|
}
|
|
29042
29048
|
const c = CA(a).map((p) => TA(p)).filter((p) => p !== null).map((p) => Tn(p));
|
|
29043
|
-
t.value = c, o(
|
|
29049
|
+
t.value = c, o(pe.historyLoaded(c.length));
|
|
29044
29050
|
} catch (a) {
|
|
29045
|
-
console.error("[useReplayChat]", "加载失败:", a), o(
|
|
29051
|
+
console.error("[useReplayChat]", "加载失败:", a), o(pe.historyLoadFailed(a.message));
|
|
29046
29052
|
}
|
|
29047
29053
|
}
|
|
29048
29054
|
return { loadChatHistory: s };
|
|
@@ -29307,7 +29313,7 @@ const RA = {
|
|
|
29307
29313
|
if (!ie) return;
|
|
29308
29314
|
const xe = ho(ie), Je = n.current.value?.id;
|
|
29309
29315
|
if (Je && (xe.id = Je), !await n.applyAI(xe)) {
|
|
29310
|
-
a(
|
|
29316
|
+
a(pe.lockedProject);
|
|
29311
29317
|
return;
|
|
29312
29318
|
}
|
|
29313
29319
|
S.value = !1;
|
|
@@ -29358,7 +29364,7 @@ const RA = {
|
|
|
29358
29364
|
ke(), await qr(), Te(), await Qn();
|
|
29359
29365
|
}, So = async () => {
|
|
29360
29366
|
if (!f.value) {
|
|
29361
|
-
a(
|
|
29367
|
+
a(pe.tokenMissing);
|
|
29362
29368
|
return;
|
|
29363
29369
|
}
|
|
29364
29370
|
u.value = !u.value, u.value && await Qn();
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as r, b as t, c as E, d as n, C as i, D as S, e as _, f as o, E as I, g as T, h as g, i as O, G as l, H as p, j as d, k as V, K as R, M as A, l as M, m as D, N, n as P, O as L, P as m, o as c, R as u, p as K, q as b, r as W, S as Y, s as B, t as G, u as U, v as y, w as C, x as F, y as f, z as k, B as w, F as x, T as H, I as X, J, V as Z, L as h, Q as j, U as q, W as v, X as z, Y as Q, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as ra, a3 as ta, a4 as Ea, a5 as na, a6 as ia, a7 as Sa, a8 as _a, a9 as oa, aa as Ia, ab as Ta, ac as ga, ad as Oa, ae as la, af as pa, ag as da, ah as Va, ai as Ra, aj as Aa, ak as Ma, al as Da, am as Na, an as Pa, ao as La, ap as ma, aq as ca, ar as ua, as as Ka } from "./index-
|
|
1
|
+
import { A as e, a as r, b as t, c as E, d as n, C as i, D as S, e as _, f as o, E as I, g as T, h as g, i as O, G as l, H as p, j as d, k as V, K as R, M as A, l as M, m as D, N, n as P, O as L, P as m, o as c, R as u, p as K, q as b, r as W, S as Y, s as B, t as G, u as U, v as y, w as C, x as F, y as f, z as k, B as w, F as x, T as H, I as X, J, V as Z, L as h, Q as j, U as q, W as v, X as z, Y as Q, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as ra, a3 as ta, a4 as Ea, a5 as na, a6 as ia, a7 as Sa, a8 as _a, a9 as oa, aa as Ia, ab as Ta, ac as ga, ad as Oa, ae as la, af as pa, ag as da, ah as Va, ai as Ra, aj as Aa, ak as Ma, al as Da, am as Na, an as Pa, ao as La, ap as ma, aq as ca, ar as ua, as as Ka } from "./index-Dxcz5Bcf.js";
|
|
2
2
|
export {
|
|
3
3
|
e as API_METHOD_TYPES,
|
|
4
4
|
r as ActionMenu,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/designer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.20",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"低代码引擎",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"marked": "~17.0.1",
|
|
30
30
|
"mockjs": "~1.1.0",
|
|
31
31
|
"monaco-editor": "~0.55.0",
|
|
32
|
-
"@vtj/
|
|
33
|
-
"@vtj/
|
|
34
|
-
"@vtj/ui": "~0.19.
|
|
35
|
-
"@vtj/renderer": "~0.19.
|
|
36
|
-
"@vtj/
|
|
37
|
-
"@vtj/
|
|
32
|
+
"@vtj/core": "~0.19.20",
|
|
33
|
+
"@vtj/icons": "~0.19.20",
|
|
34
|
+
"@vtj/ui": "~0.19.20",
|
|
35
|
+
"@vtj/renderer": "~0.19.20",
|
|
36
|
+
"@vtj/uni": "~0.19.20",
|
|
37
|
+
"@vtj/utils": "~0.19.20"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/mockjs": "~1.0.10",
|
|
@@ -168,7 +168,7 @@ export declare const Messages: {
|
|
|
168
168
|
retryingStep: (index: number) => AgentStatusMessage;
|
|
169
169
|
retryArchitect: (label: string) => AgentStatusMessage;
|
|
170
170
|
architectRetrying: (attempt: number, max: number) => AgentStatusMessage;
|
|
171
|
-
architectFailed: (message: string) => AgentStatusMessage;
|
|
171
|
+
architectFailed: (message: string, retries?: number) => AgentStatusMessage;
|
|
172
172
|
error: (message: string) => AgentStatusMessage;
|
|
173
173
|
retryFailed: (message: string) => AgentStatusMessage;
|
|
174
174
|
historyLoaded: (count: number) => AgentStatusMessage;
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/designer
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.19.
|
|
5
|
+
* @version 0.19.20
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.19.
|
|
8
|
+
export declare const version = "0.19.20";
|
package/dist/Editor-BBme3a7y.js
DELETED