@feedmepos/mf-miniprogram-v2 0.1.0-dev.31 → 0.1.0-dev.32
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.
|
@@ -9192,31 +9192,31 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9192
9192
|
}, Wf = { class: "flex h-[40px] items-center justify-between gap-8 border-b border-fm-color-neutral-gray-100 px-[10px]" }, Kf = { class: "min-w-0 truncate fm-typo-en-body-sm-600 text-fm-color-typo-primary" }, Vf = { class: "flex shrink-0 items-center gap-4" }, qf = ["disabled"], Zf = {
|
|
9193
9193
|
key: 0,
|
|
9194
9194
|
class: "m-0 shrink-0 bg-fm-color-error-light px-[10px] py-[5px] text-[11px] leading-[15px] text-fm-color-error"
|
|
9195
|
-
}, Yf = { class: "flex min-h-0 flex-col gap-6 overflow-y-auto p-[8px]" }, Xf = { class: "flex min-w-0 items-center gap-6" }, Jf = ["aria-label", "onClick"], Qf = ["onClick"], eh = ["aria-pressed", "aria-label", "onClick"],
|
|
9195
|
+
}, Yf = { class: "flex min-h-0 flex-col gap-6 overflow-y-auto p-[8px]" }, Xf = { class: "flex min-w-0 items-center gap-6" }, Jf = ["aria-label", "onClick"], Qf = ["onClick"], eh = { class: "flex shrink-0 items-center gap-[1px]" }, th = ["aria-pressed", "aria-label", "onClick"], nh = {
|
|
9196
9196
|
key: 0,
|
|
9197
9197
|
class: "preview__mini-dot"
|
|
9198
|
-
},
|
|
9198
|
+
}, rh = ["disabled", "title", "aria-label", "onClick"], sh = ["onClick"], ah = ["onUpdate:modelValue", "placeholder", "onPaste", "onDrop"], ih = {
|
|
9199
9199
|
key: 0,
|
|
9200
9200
|
class: "flex flex-wrap gap-[6px]"
|
|
9201
|
-
},
|
|
9201
|
+
}, oh = ["src", "alt"], lh = ["aria-label", "onClick"], ch = {
|
|
9202
9202
|
key: 2,
|
|
9203
9203
|
class: "preview__error-tray"
|
|
9204
|
-
},
|
|
9204
|
+
}, uh = ["aria-expanded"], dh = {
|
|
9205
9205
|
key: 0,
|
|
9206
9206
|
class: "preview__error-list"
|
|
9207
|
-
},
|
|
9207
|
+
}, ph = { class: "flex items-center justify-between gap-8" }, fh = { key: 0 }, hh = {
|
|
9208
9208
|
key: 0,
|
|
9209
9209
|
class: "truncate"
|
|
9210
|
-
},
|
|
9210
|
+
}, mh = {
|
|
9211
9211
|
key: 3,
|
|
9212
9212
|
class: "preview__device-wrap"
|
|
9213
|
-
},
|
|
9213
|
+
}, gh = { class: "preview__device" }, bh = ["src"], yh = {
|
|
9214
9214
|
class: "preview__overlays",
|
|
9215
9215
|
"aria-hidden": "true"
|
|
9216
|
-
},
|
|
9216
|
+
}, vh = {
|
|
9217
9217
|
key: 4,
|
|
9218
9218
|
class: "flex h-full items-center justify-center p-24 text-center"
|
|
9219
|
-
},
|
|
9219
|
+
}, xh = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _h = { class: "preview__bottom-controls" }, Hn = 20, wh = 0.35, oa = "mpv2:annotation-style-editor-open", kh = /* @__PURE__ */ pt({
|
|
9220
9220
|
__name: "PreviewPanel",
|
|
9221
9221
|
props: {
|
|
9222
9222
|
chat: {}
|
|
@@ -9290,7 +9290,7 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9290
9290
|
const g = p.value;
|
|
9291
9291
|
if (!g) return;
|
|
9292
9292
|
const E = ne.value.width + Hn, Z = ne.value.height + Hn, se = Math.min(1, Math.max(0, g.clientWidth - ue() * 2) / E, Math.max(0, g.clientHeight - ue() * 2) / Z);
|
|
9293
|
-
v.value = Number(Math.max(
|
|
9293
|
+
v.value = Number(Math.max(wh, se).toFixed(4));
|
|
9294
9294
|
}
|
|
9295
9295
|
function Me() {
|
|
9296
9296
|
try {
|
|
@@ -9728,48 +9728,51 @@ ${Yu(g.map(ve))}`;
|
|
|
9728
9728
|
]),
|
|
9729
9729
|
_: 2
|
|
9730
9730
|
}, 1032, ["variant"])) : U("", !0),
|
|
9731
|
-
(
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9731
|
+
f("div", eh, [
|
|
9732
|
+
(Ut = G.payload) != null && Ut.element ? (h(), _("button", {
|
|
9733
|
+
key: 0,
|
|
9734
|
+
type: "button",
|
|
9735
|
+
class: Ae(["preview__mini-icon-button", { "preview__mini-icon-button--active": ke(G.id) }]),
|
|
9736
|
+
"aria-pressed": ke(G.id),
|
|
9737
|
+
"aria-label": `Edit properties for annotation #${G.id}`,
|
|
9738
|
+
title: "Edit properties",
|
|
9739
|
+
onClick: (Je) => Ne(G.id)
|
|
9740
|
+
}, [
|
|
9741
|
+
W(he, {
|
|
9742
|
+
name: "tune",
|
|
9743
|
+
size: "sm",
|
|
9744
|
+
color: ke(G.id) ? "primary" : "typo-secondary"
|
|
9745
|
+
}, null, 8, ["color"]),
|
|
9746
|
+
G.changed && !ke(G.id) ? (h(), _("span", nh)) : U("", !0)
|
|
9747
|
+
], 10, th)) : U("", !0),
|
|
9748
|
+
f("button", {
|
|
9749
|
+
type: "button",
|
|
9750
|
+
class: "preview__mini-icon-button",
|
|
9751
|
+
disabled: pe.value || t.chat.sending,
|
|
9752
|
+
title: pe.value ? `Up to ${O(rn)} images per message` : "Attach an image — or paste / drop one on the note",
|
|
9753
|
+
"aria-label": `Attach an image to annotation #${G.id}`,
|
|
9754
|
+
onClick: (Je) => ce(G)
|
|
9755
|
+
}, [
|
|
9756
|
+
W(he, {
|
|
9757
|
+
name: "add_photo_alternate",
|
|
9758
|
+
size: "sm",
|
|
9759
|
+
color: pe.value || t.chat.sending ? "typo-disabled" : "typo-secondary"
|
|
9760
|
+
}, null, 8, ["color"])
|
|
9761
|
+
], 8, rh)
|
|
9762
|
+
]),
|
|
9761
9763
|
f("button", {
|
|
9762
9764
|
type: "button",
|
|
9763
|
-
class: "preview__mini-icon-button",
|
|
9765
|
+
class: "preview__mini-icon-button preview__mini-icon-button--danger",
|
|
9766
|
+
title: "Remove annotation",
|
|
9764
9767
|
"aria-label": "Remove annotation",
|
|
9765
9768
|
onClick: (Je) => k(G.id)
|
|
9766
9769
|
}, [
|
|
9767
9770
|
W(he, {
|
|
9768
9771
|
name: "close",
|
|
9769
9772
|
size: "sm",
|
|
9770
|
-
color: "typo-
|
|
9773
|
+
color: "typo-tertiary"
|
|
9771
9774
|
})
|
|
9772
|
-
], 8,
|
|
9775
|
+
], 8, sh)
|
|
9773
9776
|
]),
|
|
9774
9777
|
Yn(f("textarea", {
|
|
9775
9778
|
"onUpdate:modelValue": (Je) => G.feedback = Je,
|
|
@@ -9780,10 +9783,10 @@ ${Yu(g.map(ve))}`;
|
|
|
9780
9783
|
onDragover: E[3] || (E[3] = Zn(() => {
|
|
9781
9784
|
}, ["prevent"])),
|
|
9782
9785
|
onDrop: (Je) => ot(Je, G)
|
|
9783
|
-
}, null, 40,
|
|
9786
|
+
}, null, 40, ah), [
|
|
9784
9787
|
[Xn, G.feedback]
|
|
9785
9788
|
]),
|
|
9786
|
-
G.attachments.length ? (h(), _("div",
|
|
9789
|
+
G.attachments.length ? (h(), _("div", ih, [
|
|
9787
9790
|
(h(!0), _(Te, null, Re(G.attachments, (Je) => (h(), _("div", {
|
|
9788
9791
|
key: Je.id,
|
|
9789
9792
|
class: "relative"
|
|
@@ -9792,7 +9795,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9792
9795
|
src: Je.url,
|
|
9793
9796
|
alt: Je.filename || "attached image",
|
|
9794
9797
|
class: "preview__attachment"
|
|
9795
|
-
}, null, 8,
|
|
9798
|
+
}, null, 8, oh),
|
|
9796
9799
|
f("button", {
|
|
9797
9800
|
type: "button",
|
|
9798
9801
|
class: "preview__attachment-remove",
|
|
@@ -9804,7 +9807,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9804
9807
|
size: "sm",
|
|
9805
9808
|
color: "typo-white"
|
|
9806
9809
|
})
|
|
9807
|
-
], 8,
|
|
9810
|
+
], 8, lh)
|
|
9808
9811
|
]))), 128))
|
|
9809
9812
|
])) : U("", !0),
|
|
9810
9813
|
ke(G.id) && (($t = G.payload) != null && $t.element) ? (h(), Se(zf, {
|
|
@@ -9824,7 +9827,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9824
9827
|
}), 128))
|
|
9825
9828
|
])
|
|
9826
9829
|
])) : U("", !0),
|
|
9827
|
-
S.value.length ? (h(), _("section",
|
|
9830
|
+
S.value.length ? (h(), _("section", ch, [
|
|
9828
9831
|
f("button", {
|
|
9829
9832
|
type: "button",
|
|
9830
9833
|
class: "preview__error-summary",
|
|
@@ -9837,21 +9840,21 @@ ${Yu(g.map(ve))}`;
|
|
|
9837
9840
|
size: "sm",
|
|
9838
9841
|
color: "typo-secondary"
|
|
9839
9842
|
})
|
|
9840
|
-
], 8,
|
|
9841
|
-
T.value ? (h(), _("div",
|
|
9843
|
+
], 8, uh),
|
|
9844
|
+
T.value ? (h(), _("div", dh, [
|
|
9842
9845
|
(h(!0), _(Te, null, Re(S.value, (G) => (h(), _("div", {
|
|
9843
9846
|
key: G.id,
|
|
9844
9847
|
class: "preview__error-item"
|
|
9845
9848
|
}, [
|
|
9846
|
-
f("div",
|
|
9849
|
+
f("div", ph, [
|
|
9847
9850
|
f("strong", null, I(G.kind), 1),
|
|
9848
9851
|
f("span", null, I(Ue(G.timestamp)), 1)
|
|
9849
9852
|
]),
|
|
9850
9853
|
f("div", null, [
|
|
9851
9854
|
Ke(I(G.message), 1),
|
|
9852
|
-
G.count > 1 ? (h(), _("span",
|
|
9855
|
+
G.count > 1 ? (h(), _("span", fh, " ×" + I(G.count), 1)) : U("", !0)
|
|
9853
9856
|
]),
|
|
9854
|
-
te(G) ? (h(), _("div",
|
|
9857
|
+
te(G) ? (h(), _("div", hh, I(te(G)), 1)) : U("", !0)
|
|
9855
9858
|
]))), 128)),
|
|
9856
9859
|
f("button", {
|
|
9857
9860
|
type: "button",
|
|
@@ -9863,12 +9866,12 @@ ${Yu(g.map(ve))}`;
|
|
|
9863
9866
|
}, "Clear")
|
|
9864
9867
|
])) : U("", !0)
|
|
9865
9868
|
])) : U("", !0),
|
|
9866
|
-
e.chat.previewUrl ? (h(), _("div",
|
|
9869
|
+
e.chat.previewUrl ? (h(), _("div", mh, [
|
|
9867
9870
|
f("div", {
|
|
9868
9871
|
class: "preview__device-stage",
|
|
9869
9872
|
style: Pt(ee.value)
|
|
9870
9873
|
}, [
|
|
9871
|
-
f("div",
|
|
9874
|
+
f("div", gh, [
|
|
9872
9875
|
E[8] || (E[8] = f("div", { class: "preview__speaker" }, null, -1)),
|
|
9873
9876
|
(h(), _("iframe", {
|
|
9874
9877
|
ref_key: "iframeEl",
|
|
@@ -9879,8 +9882,8 @@ ${Yu(g.map(ve))}`;
|
|
|
9879
9882
|
title: "merchant preview",
|
|
9880
9883
|
allow: "camera",
|
|
9881
9884
|
onLoad: qe
|
|
9882
|
-
}, null, 40,
|
|
9883
|
-
f("div",
|
|
9885
|
+
}, null, 40, bh)),
|
|
9886
|
+
f("div", yh, [
|
|
9884
9887
|
a.value && ((b = tt.value) != null && b.rect) ? (h(), _("div", {
|
|
9885
9888
|
key: 0,
|
|
9886
9889
|
class: Ae(["preview__annotation-hover", { "preview__annotation-tag-inside": F(tt.value.rect) }]),
|
|
@@ -9903,17 +9906,17 @@ ${Yu(g.map(ve))}`;
|
|
|
9903
9906
|
])
|
|
9904
9907
|
])
|
|
9905
9908
|
], 4)
|
|
9906
|
-
])) : (h(), _("div",
|
|
9909
|
+
])) : (h(), _("div", vh, [
|
|
9907
9910
|
f("div", null, [
|
|
9908
9911
|
W(he, {
|
|
9909
9912
|
name: "visibility",
|
|
9910
9913
|
size: "xl",
|
|
9911
9914
|
color: "typo-tertiary"
|
|
9912
9915
|
}),
|
|
9913
|
-
f("p",
|
|
9916
|
+
f("p", xh, I(L.value), 1)
|
|
9914
9917
|
])
|
|
9915
9918
|
])),
|
|
9916
|
-
f("div",
|
|
9919
|
+
f("div", _h, [
|
|
9917
9920
|
W(se, {
|
|
9918
9921
|
size: "md",
|
|
9919
9922
|
variant: "secondary",
|
|
@@ -9927,7 +9930,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9927
9930
|
]);
|
|
9928
9931
|
};
|
|
9929
9932
|
}
|
|
9930
|
-
}),
|
|
9933
|
+
}), Sh = /* @__PURE__ */ Mt(kh, [["__scopeId", "data-v-c128912e"]]), Th = { class: "flex justify-end gap-8" }, Eh = /* @__PURE__ */ pt({
|
|
9931
9934
|
__name: "RenameSessionDialog",
|
|
9932
9935
|
props: {
|
|
9933
9936
|
initialTitle: {}
|
|
@@ -9953,7 +9956,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9953
9956
|
placeholder: "e.g. Homepage banner redesign",
|
|
9954
9957
|
rules: [(m) => !!m.trim() || "Name is required"]
|
|
9955
9958
|
}, null, 8, ["modelValue", "rules"]),
|
|
9956
|
-
f("div",
|
|
9959
|
+
f("div", Th, [
|
|
9957
9960
|
W(u, {
|
|
9958
9961
|
label: "Cancel",
|
|
9959
9962
|
variant: "tertiary",
|
|
@@ -9973,7 +9976,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9973
9976
|
});
|
|
9974
9977
|
};
|
|
9975
9978
|
}
|
|
9976
|
-
}),
|
|
9979
|
+
}), Ah = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseValidator: r, sseDefaultRetryDelay: s, sseMaxRetryAttempts: o, sseMaxRetryDelay: l, sseSleepFn: a, url: i, ...u }) => {
|
|
9977
9980
|
let p;
|
|
9978
9981
|
const v = a ?? ((c) => new Promise((y) => setTimeout(y, c)));
|
|
9979
9982
|
return { stream: async function* () {
|
|
@@ -10053,13 +10056,13 @@ ${Yu(g.map(ve))}`;
|
|
|
10053
10056
|
}
|
|
10054
10057
|
}
|
|
10055
10058
|
}() };
|
|
10056
|
-
},
|
|
10059
|
+
}, Ch = async (t, e) => {
|
|
10057
10060
|
const n = typeof e == "function" ? await e(t) : e;
|
|
10058
10061
|
if (n)
|
|
10059
10062
|
return t.scheme === "bearer" ? `Bearer ${n}` : t.scheme === "basic" ? `Basic ${btoa(n)}` : n;
|
|
10060
|
-
},
|
|
10063
|
+
}, $h = {
|
|
10061
10064
|
bodySerializer: (t) => JSON.stringify(t, (e, n) => typeof n == "bigint" ? n.toString() : n)
|
|
10062
|
-
},
|
|
10065
|
+
}, Rh = (t) => {
|
|
10063
10066
|
switch (t) {
|
|
10064
10067
|
case "label":
|
|
10065
10068
|
return ".";
|
|
@@ -10070,7 +10073,7 @@ ${Yu(g.map(ve))}`;
|
|
|
10070
10073
|
default:
|
|
10071
10074
|
return "&";
|
|
10072
10075
|
}
|
|
10073
|
-
},
|
|
10076
|
+
}, Ih = (t) => {
|
|
10074
10077
|
switch (t) {
|
|
10075
10078
|
case "form":
|
|
10076
10079
|
return ",";
|
|
@@ -10081,7 +10084,7 @@ ${Yu(g.map(ve))}`;
|
|
|
10081
10084
|
default:
|
|
10082
10085
|
return ",";
|
|
10083
10086
|
}
|
|
10084
|
-
},
|
|
10087
|
+
}, Nh = (t) => {
|
|
10085
10088
|
switch (t) {
|
|
10086
10089
|
case "label":
|
|
10087
10090
|
return ".";
|
|
@@ -10094,7 +10097,7 @@ ${Yu(g.map(ve))}`;
|
|
|
10094
10097
|
}
|
|
10095
10098
|
}, vi = ({ allowReserved: t, explode: e, name: n, style: r, value: s }) => {
|
|
10096
10099
|
if (!e) {
|
|
10097
|
-
const a = (t ? s : s.map((i) => encodeURIComponent(i))).join(
|
|
10100
|
+
const a = (t ? s : s.map((i) => encodeURIComponent(i))).join(Ih(r));
|
|
10098
10101
|
switch (r) {
|
|
10099
10102
|
case "label":
|
|
10100
10103
|
return `.${a}`;
|
|
@@ -10106,7 +10109,7 @@ ${Yu(g.map(ve))}`;
|
|
|
10106
10109
|
return `${n}=${a}`;
|
|
10107
10110
|
}
|
|
10108
10111
|
}
|
|
10109
|
-
const o =
|
|
10112
|
+
const o = Rh(r), l = s.map((a) => r === "label" || r === "simple" ? t ? a : encodeURIComponent(a) : fr({
|
|
10110
10113
|
allowReserved: t,
|
|
10111
10114
|
name: n,
|
|
10112
10115
|
value: a
|
|
@@ -10138,15 +10141,15 @@ ${Yu(g.map(ve))}`;
|
|
|
10138
10141
|
return u;
|
|
10139
10142
|
}
|
|
10140
10143
|
}
|
|
10141
|
-
const l =
|
|
10144
|
+
const l = Nh(r), a = Object.entries(s).map(([i, u]) => fr({
|
|
10142
10145
|
allowReserved: t,
|
|
10143
10146
|
name: r === "deepObject" ? `${n}[${i}]` : i,
|
|
10144
10147
|
value: u
|
|
10145
10148
|
})).join(l);
|
|
10146
10149
|
return r === "label" || r === "matrix" ? l + a : a;
|
|
10147
|
-
},
|
|
10150
|
+
}, Oh = /\{[^{}]+\}/g, Ph = ({ path: t, url: e }) => {
|
|
10148
10151
|
let n = e;
|
|
10149
|
-
const r = e.match(
|
|
10152
|
+
const r = e.match(Oh);
|
|
10150
10153
|
if (r)
|
|
10151
10154
|
for (const s of r) {
|
|
10152
10155
|
let o = !1, l = s.substring(1, s.length - 1), a = "simple";
|
|
@@ -10179,10 +10182,10 @@ ${Yu(g.map(ve))}`;
|
|
|
10179
10182
|
n = n.replace(s, u);
|
|
10180
10183
|
}
|
|
10181
10184
|
return n;
|
|
10182
|
-
},
|
|
10185
|
+
}, Mh = ({ baseUrl: t, path: e, query: n, querySerializer: r, url: s }) => {
|
|
10183
10186
|
const o = s.startsWith("/") ? s : `/${s}`;
|
|
10184
10187
|
let l = (t ?? "") + o;
|
|
10185
|
-
e && (l =
|
|
10188
|
+
e && (l = Ph({ path: e, url: l }));
|
|
10186
10189
|
let a = n ? r(n) : "";
|
|
10187
10190
|
return a.startsWith("?") && (a = a.substring(1)), a && (l += `?${a}`), l;
|
|
10188
10191
|
}, _i = ({ allowReserved: t, array: e, object: n } = {}) => (s) => {
|
|
@@ -10221,7 +10224,7 @@ ${Yu(g.map(ve))}`;
|
|
|
10221
10224
|
}
|
|
10222
10225
|
}
|
|
10223
10226
|
return o.join("&");
|
|
10224
|
-
},
|
|
10227
|
+
}, Lh = (t) => {
|
|
10225
10228
|
var n;
|
|
10226
10229
|
if (!t)
|
|
10227
10230
|
return "stream";
|
|
@@ -10236,14 +10239,14 @@ ${Yu(g.map(ve))}`;
|
|
|
10236
10239
|
if (e.startsWith("text/"))
|
|
10237
10240
|
return "text";
|
|
10238
10241
|
}
|
|
10239
|
-
},
|
|
10242
|
+
}, Dh = (t, e) => {
|
|
10240
10243
|
var n, r;
|
|
10241
10244
|
return e ? !!(t.headers.has(e) || (n = t.query) != null && n[e] || (r = t.headers.get("Cookie")) != null && r.includes(`${e}=`)) : !1;
|
|
10242
|
-
},
|
|
10245
|
+
}, zh = async ({ security: t, ...e }) => {
|
|
10243
10246
|
for (const n of t) {
|
|
10244
|
-
if (
|
|
10247
|
+
if (Dh(e, n.name))
|
|
10245
10248
|
continue;
|
|
10246
|
-
const r = await
|
|
10249
|
+
const r = await Ch(n, e.auth);
|
|
10247
10250
|
if (!r)
|
|
10248
10251
|
continue;
|
|
10249
10252
|
const s = n.name ?? "Authorization";
|
|
@@ -10260,7 +10263,7 @@ ${Yu(g.map(ve))}`;
|
|
|
10260
10263
|
break;
|
|
10261
10264
|
}
|
|
10262
10265
|
}
|
|
10263
|
-
}, la = (t) =>
|
|
10266
|
+
}, la = (t) => Mh({
|
|
10264
10267
|
baseUrl: t.baseUrl,
|
|
10265
10268
|
path: t.path,
|
|
10266
10269
|
query: t.query,
|
|
@@ -10313,11 +10316,11 @@ class Tr {
|
|
|
10313
10316
|
return this._fns = [...this._fns, e], this._fns.length - 1;
|
|
10314
10317
|
}
|
|
10315
10318
|
}
|
|
10316
|
-
const
|
|
10319
|
+
const Bh = () => ({
|
|
10317
10320
|
error: new Tr(),
|
|
10318
10321
|
request: new Tr(),
|
|
10319
10322
|
response: new Tr()
|
|
10320
|
-
}),
|
|
10323
|
+
}), Fh = _i({
|
|
10321
10324
|
allowReserved: !1,
|
|
10322
10325
|
array: {
|
|
10323
10326
|
explode: !0,
|
|
@@ -10327,17 +10330,17 @@ const zh = () => ({
|
|
|
10327
10330
|
explode: !0,
|
|
10328
10331
|
style: "deepObject"
|
|
10329
10332
|
}
|
|
10330
|
-
}),
|
|
10333
|
+
}), Uh = {
|
|
10331
10334
|
"Content-Type": "application/json"
|
|
10332
10335
|
}, ki = (t = {}) => ({
|
|
10333
|
-
|
|
10334
|
-
headers:
|
|
10336
|
+
...$h,
|
|
10337
|
+
headers: Uh,
|
|
10335
10338
|
parseAs: "auto",
|
|
10336
|
-
querySerializer:
|
|
10339
|
+
querySerializer: Fh,
|
|
10337
10340
|
...t
|
|
10338
10341
|
}), Si = (t = {}) => {
|
|
10339
10342
|
let e = ca(ki(), t);
|
|
10340
|
-
const n = () => ({ ...e }), r = (i) => (e = ca(e, i), n()), s =
|
|
10343
|
+
const n = () => ({ ...e }), r = (i) => (e = ca(e, i), n()), s = Bh(), o = async (i) => {
|
|
10341
10344
|
const u = {
|
|
10342
10345
|
...e,
|
|
10343
10346
|
...i,
|
|
@@ -10345,7 +10348,7 @@ const zh = () => ({
|
|
|
10345
10348
|
headers: wi(e.headers, i.headers),
|
|
10346
10349
|
serializedBody: void 0
|
|
10347
10350
|
};
|
|
10348
|
-
u.security && await
|
|
10351
|
+
u.security && await zh({
|
|
10349
10352
|
...u,
|
|
10350
10353
|
security: u.security
|
|
10351
10354
|
}), u.requestValidator && await u.requestValidator(u), u.body && u.bodySerializer && (u.serializedBody = u.bodySerializer(u.body)), (u.serializedBody === void 0 || u.serializedBody === "") && u.headers.delete("Content-Type");
|
|
@@ -10374,7 +10377,7 @@ const zh = () => ({
|
|
|
10374
10377
|
data: {},
|
|
10375
10378
|
...y
|
|
10376
10379
|
};
|
|
10377
|
-
const C = (u.parseAs === "auto" ?
|
|
10380
|
+
const C = (u.parseAs === "auto" ? Lh(c.headers.get("Content-Type")) : u.parseAs) ?? "json";
|
|
10378
10381
|
let M;
|
|
10379
10382
|
switch (C) {
|
|
10380
10383
|
case "arrayBuffer":
|
|
@@ -10415,7 +10418,7 @@ const zh = () => ({
|
|
|
10415
10418
|
const u = (p) => l({ ...p, method: i });
|
|
10416
10419
|
return u.sse = async (p) => {
|
|
10417
10420
|
const { opts: v, url: m } = await o(p);
|
|
10418
|
-
return
|
|
10421
|
+
return Ah({
|
|
10419
10422
|
...v,
|
|
10420
10423
|
body: v.body,
|
|
10421
10424
|
headers: v.headers,
|
|
@@ -10440,16 +10443,16 @@ const zh = () => ({
|
|
|
10440
10443
|
setConfig: r,
|
|
10441
10444
|
trace: a("TRACE")
|
|
10442
10445
|
};
|
|
10443
|
-
},
|
|
10446
|
+
}, jh = Si(ki({
|
|
10444
10447
|
baseUrl: "http://localhost:4096"
|
|
10445
10448
|
}));
|
|
10446
10449
|
class Ve {
|
|
10447
10450
|
constructor(e) {
|
|
10448
|
-
be(this, "_client",
|
|
10451
|
+
be(this, "_client", jh);
|
|
10449
10452
|
e != null && e.client && (this._client = e.client);
|
|
10450
10453
|
}
|
|
10451
10454
|
}
|
|
10452
|
-
class
|
|
10455
|
+
class Hh extends Ve {
|
|
10453
10456
|
/**
|
|
10454
10457
|
* Get events
|
|
10455
10458
|
*/
|
|
@@ -10460,7 +10463,7 @@ class jh extends Ve {
|
|
|
10460
10463
|
});
|
|
10461
10464
|
}
|
|
10462
10465
|
}
|
|
10463
|
-
class
|
|
10466
|
+
class Gh extends Ve {
|
|
10464
10467
|
/**
|
|
10465
10468
|
* List all projects
|
|
10466
10469
|
*/
|
|
@@ -10480,7 +10483,7 @@ class Hh extends Ve {
|
|
|
10480
10483
|
});
|
|
10481
10484
|
}
|
|
10482
10485
|
}
|
|
10483
|
-
class
|
|
10486
|
+
class Wh extends Ve {
|
|
10484
10487
|
/**
|
|
10485
10488
|
* List all PTY sessions
|
|
10486
10489
|
*/
|
|
@@ -10544,7 +10547,7 @@ class Gh extends Ve {
|
|
|
10544
10547
|
});
|
|
10545
10548
|
}
|
|
10546
10549
|
}
|
|
10547
|
-
class
|
|
10550
|
+
class Kh extends Ve {
|
|
10548
10551
|
/**
|
|
10549
10552
|
* Get config info
|
|
10550
10553
|
*/
|
|
@@ -10577,7 +10580,7 @@ class Wh extends Ve {
|
|
|
10577
10580
|
});
|
|
10578
10581
|
}
|
|
10579
10582
|
}
|
|
10580
|
-
class
|
|
10583
|
+
class Vh extends Ve {
|
|
10581
10584
|
/**
|
|
10582
10585
|
* List all tool IDs (including built-in and dynamically registered)
|
|
10583
10586
|
*/
|
|
@@ -10597,7 +10600,7 @@ class Kh extends Ve {
|
|
|
10597
10600
|
});
|
|
10598
10601
|
}
|
|
10599
10602
|
}
|
|
10600
|
-
class
|
|
10603
|
+
class qh extends Ve {
|
|
10601
10604
|
/**
|
|
10602
10605
|
* Dispose the current instance
|
|
10603
10606
|
*/
|
|
@@ -10608,7 +10611,7 @@ class Vh extends Ve {
|
|
|
10608
10611
|
});
|
|
10609
10612
|
}
|
|
10610
10613
|
}
|
|
10611
|
-
class
|
|
10614
|
+
class Zh extends Ve {
|
|
10612
10615
|
/**
|
|
10613
10616
|
* Get the current path
|
|
10614
10617
|
*/
|
|
@@ -10619,7 +10622,7 @@ class qh extends Ve {
|
|
|
10619
10622
|
});
|
|
10620
10623
|
}
|
|
10621
10624
|
}
|
|
10622
|
-
class
|
|
10625
|
+
class Yh extends Ve {
|
|
10623
10626
|
/**
|
|
10624
10627
|
* Get VCS info for the current instance
|
|
10625
10628
|
*/
|
|
@@ -10630,7 +10633,7 @@ class Zh extends Ve {
|
|
|
10630
10633
|
});
|
|
10631
10634
|
}
|
|
10632
10635
|
}
|
|
10633
|
-
class
|
|
10636
|
+
class Xh extends Ve {
|
|
10634
10637
|
/**
|
|
10635
10638
|
* List all sessions
|
|
10636
10639
|
*/
|
|
@@ -10879,7 +10882,7 @@ class Yh extends Ve {
|
|
|
10879
10882
|
});
|
|
10880
10883
|
}
|
|
10881
10884
|
}
|
|
10882
|
-
class
|
|
10885
|
+
class Jh extends Ve {
|
|
10883
10886
|
/**
|
|
10884
10887
|
* List all commands
|
|
10885
10888
|
*/
|
|
@@ -10890,7 +10893,7 @@ class Xh extends Ve {
|
|
|
10890
10893
|
});
|
|
10891
10894
|
}
|
|
10892
10895
|
}
|
|
10893
|
-
class
|
|
10896
|
+
class Qh extends Ve {
|
|
10894
10897
|
/**
|
|
10895
10898
|
* Authorize a provider using OAuth
|
|
10896
10899
|
*/
|
|
@@ -10918,10 +10921,10 @@ class Jh extends Ve {
|
|
|
10918
10921
|
});
|
|
10919
10922
|
}
|
|
10920
10923
|
}
|
|
10921
|
-
class
|
|
10924
|
+
class em extends Ve {
|
|
10922
10925
|
constructor() {
|
|
10923
10926
|
super(...arguments);
|
|
10924
|
-
be(this, "oauth", new
|
|
10927
|
+
be(this, "oauth", new Qh({ client: this._client }));
|
|
10925
10928
|
}
|
|
10926
10929
|
/**
|
|
10927
10930
|
* List all providers
|
|
@@ -10942,7 +10945,7 @@ class Qh extends Ve {
|
|
|
10942
10945
|
});
|
|
10943
10946
|
}
|
|
10944
10947
|
}
|
|
10945
|
-
class
|
|
10948
|
+
class tm extends Ve {
|
|
10946
10949
|
/**
|
|
10947
10950
|
* Find text in files
|
|
10948
10951
|
*/
|
|
@@ -10971,7 +10974,7 @@ class em extends Ve {
|
|
|
10971
10974
|
});
|
|
10972
10975
|
}
|
|
10973
10976
|
}
|
|
10974
|
-
class
|
|
10977
|
+
class nm extends Ve {
|
|
10975
10978
|
/**
|
|
10976
10979
|
* List files and directories
|
|
10977
10980
|
*/
|
|
@@ -11000,7 +11003,7 @@ class tm extends Ve {
|
|
|
11000
11003
|
});
|
|
11001
11004
|
}
|
|
11002
11005
|
}
|
|
11003
|
-
class
|
|
11006
|
+
class rm extends Ve {
|
|
11004
11007
|
/**
|
|
11005
11008
|
* Write a log entry to the server logs
|
|
11006
11009
|
*/
|
|
@@ -11079,7 +11082,7 @@ class Ti extends Ve {
|
|
|
11079
11082
|
});
|
|
11080
11083
|
}
|
|
11081
11084
|
}
|
|
11082
|
-
class
|
|
11085
|
+
class sm extends Ve {
|
|
11083
11086
|
constructor() {
|
|
11084
11087
|
super(...arguments);
|
|
11085
11088
|
be(this, "auth", new Ti({ client: this._client }));
|
|
@@ -11125,7 +11128,7 @@ class rm extends Ve {
|
|
|
11125
11128
|
});
|
|
11126
11129
|
}
|
|
11127
11130
|
}
|
|
11128
|
-
class
|
|
11131
|
+
class am extends Ve {
|
|
11129
11132
|
/**
|
|
11130
11133
|
* Get LSP server status
|
|
11131
11134
|
*/
|
|
@@ -11136,7 +11139,7 @@ class sm extends Ve {
|
|
|
11136
11139
|
});
|
|
11137
11140
|
}
|
|
11138
11141
|
}
|
|
11139
|
-
class
|
|
11142
|
+
class im extends Ve {
|
|
11140
11143
|
/**
|
|
11141
11144
|
* Get formatter status
|
|
11142
11145
|
*/
|
|
@@ -11147,7 +11150,7 @@ class am extends Ve {
|
|
|
11147
11150
|
});
|
|
11148
11151
|
}
|
|
11149
11152
|
}
|
|
11150
|
-
class
|
|
11153
|
+
class om extends Ve {
|
|
11151
11154
|
/**
|
|
11152
11155
|
* Get the next TUI request from the queue
|
|
11153
11156
|
*/
|
|
@@ -11171,10 +11174,10 @@ class im extends Ve {
|
|
|
11171
11174
|
});
|
|
11172
11175
|
}
|
|
11173
11176
|
}
|
|
11174
|
-
class
|
|
11177
|
+
class lm extends Ve {
|
|
11175
11178
|
constructor() {
|
|
11176
11179
|
super(...arguments);
|
|
11177
|
-
be(this, "control", new
|
|
11180
|
+
be(this, "control", new om({ client: this._client }));
|
|
11178
11181
|
}
|
|
11179
11182
|
/**
|
|
11180
11183
|
* Append prompt to the TUI
|
|
@@ -11283,7 +11286,7 @@ class om extends Ve {
|
|
|
11283
11286
|
});
|
|
11284
11287
|
}
|
|
11285
11288
|
}
|
|
11286
|
-
class
|
|
11289
|
+
class cm extends Ve {
|
|
11287
11290
|
/**
|
|
11288
11291
|
* Get events
|
|
11289
11292
|
*/
|
|
@@ -11294,29 +11297,29 @@ class lm extends Ve {
|
|
|
11294
11297
|
});
|
|
11295
11298
|
}
|
|
11296
11299
|
}
|
|
11297
|
-
class
|
|
11300
|
+
class um extends Ve {
|
|
11298
11301
|
constructor() {
|
|
11299
11302
|
super(...arguments);
|
|
11300
|
-
be(this, "global", new
|
|
11301
|
-
be(this, "project", new
|
|
11302
|
-
be(this, "pty", new
|
|
11303
|
-
be(this, "config", new
|
|
11304
|
-
be(this, "tool", new
|
|
11305
|
-
be(this, "instance", new
|
|
11306
|
-
be(this, "path", new
|
|
11307
|
-
be(this, "vcs", new
|
|
11308
|
-
be(this, "session", new
|
|
11309
|
-
be(this, "command", new
|
|
11310
|
-
be(this, "provider", new
|
|
11311
|
-
be(this, "find", new
|
|
11312
|
-
be(this, "file", new
|
|
11313
|
-
be(this, "app", new
|
|
11314
|
-
be(this, "mcp", new
|
|
11315
|
-
be(this, "lsp", new
|
|
11316
|
-
be(this, "formatter", new
|
|
11317
|
-
be(this, "tui", new
|
|
11303
|
+
be(this, "global", new Hh({ client: this._client }));
|
|
11304
|
+
be(this, "project", new Gh({ client: this._client }));
|
|
11305
|
+
be(this, "pty", new Wh({ client: this._client }));
|
|
11306
|
+
be(this, "config", new Kh({ client: this._client }));
|
|
11307
|
+
be(this, "tool", new Vh({ client: this._client }));
|
|
11308
|
+
be(this, "instance", new qh({ client: this._client }));
|
|
11309
|
+
be(this, "path", new Zh({ client: this._client }));
|
|
11310
|
+
be(this, "vcs", new Yh({ client: this._client }));
|
|
11311
|
+
be(this, "session", new Xh({ client: this._client }));
|
|
11312
|
+
be(this, "command", new Jh({ client: this._client }));
|
|
11313
|
+
be(this, "provider", new em({ client: this._client }));
|
|
11314
|
+
be(this, "find", new tm({ client: this._client }));
|
|
11315
|
+
be(this, "file", new nm({ client: this._client }));
|
|
11316
|
+
be(this, "app", new rm({ client: this._client }));
|
|
11317
|
+
be(this, "mcp", new sm({ client: this._client }));
|
|
11318
|
+
be(this, "lsp", new am({ client: this._client }));
|
|
11319
|
+
be(this, "formatter", new im({ client: this._client }));
|
|
11320
|
+
be(this, "tui", new lm({ client: this._client }));
|
|
11318
11321
|
be(this, "auth", new Ti({ client: this._client }));
|
|
11319
|
-
be(this, "event", new
|
|
11322
|
+
be(this, "event", new cm({ client: this._client }));
|
|
11320
11323
|
}
|
|
11321
11324
|
/**
|
|
11322
11325
|
* Respond to a permission request
|
|
@@ -11332,7 +11335,7 @@ class cm extends Ve {
|
|
|
11332
11335
|
});
|
|
11333
11336
|
}
|
|
11334
11337
|
}
|
|
11335
|
-
function
|
|
11338
|
+
function dm(t, e, n, r) {
|
|
11336
11339
|
var o;
|
|
11337
11340
|
if (!(r != null && r.throwOnError) || t instanceof Error)
|
|
11338
11341
|
return t;
|
|
@@ -11351,14 +11354,14 @@ function ua(t, e) {
|
|
|
11351
11354
|
const n = (t == null ? void 0 : t.method) ?? "?", r = (t == null ? void 0 : t.url) ?? "?", s = e == null ? void 0 : e.status, o = e == null ? void 0 : e.statusText;
|
|
11352
11355
|
return `${n} ${r}${s ? " → " + s : ""}${o ? " " + o : ""}`;
|
|
11353
11356
|
}
|
|
11354
|
-
function
|
|
11357
|
+
function pm(t, e) {
|
|
11355
11358
|
if (t)
|
|
11356
11359
|
return e && (t === e || t === encodeURIComponent(e)) ? e : t;
|
|
11357
11360
|
}
|
|
11358
|
-
function
|
|
11361
|
+
function fm(t, e) {
|
|
11359
11362
|
if (t.method !== "GET" && t.method !== "HEAD")
|
|
11360
11363
|
return t;
|
|
11361
|
-
const n =
|
|
11364
|
+
const n = pm(t.headers.get("x-opencode-directory"), e);
|
|
11362
11365
|
if (!n)
|
|
11363
11366
|
return t;
|
|
11364
11367
|
const r = new URL(t.url);
|
|
@@ -11366,7 +11369,7 @@ function pm(t, e) {
|
|
|
11366
11369
|
const s = new Request(r, t);
|
|
11367
11370
|
return s.headers.delete("x-opencode-directory"), s;
|
|
11368
11371
|
}
|
|
11369
|
-
function
|
|
11372
|
+
function hm(t) {
|
|
11370
11373
|
t != null && t.fetch || (t = {
|
|
11371
11374
|
...t,
|
|
11372
11375
|
fetch: (r) => (r.timeout = !1, fetch(r))
|
|
@@ -11375,15 +11378,15 @@ function fm(t) {
|
|
|
11375
11378
|
"x-opencode-directory": encodeURIComponent(t.directory)
|
|
11376
11379
|
});
|
|
11377
11380
|
const e = Si(t);
|
|
11378
|
-
return e.interceptors.request.use((n) =>
|
|
11381
|
+
return e.interceptors.request.use((n) => fm(n, t == null ? void 0 : t.directory)), e.interceptors.error.use(dm), new um({ client: e });
|
|
11379
11382
|
}
|
|
11380
11383
|
function da() {
|
|
11381
11384
|
return { pending: [], active: null };
|
|
11382
11385
|
}
|
|
11383
|
-
function
|
|
11386
|
+
function mm(t, e) {
|
|
11384
11387
|
return { ...t, pending: [...t.pending, e] };
|
|
11385
11388
|
}
|
|
11386
|
-
function
|
|
11389
|
+
function gm(t) {
|
|
11387
11390
|
if (t.active || t.pending.length === 0) return { queue: t, item: null };
|
|
11388
11391
|
const e = t.pending[0];
|
|
11389
11392
|
return {
|
|
@@ -11397,11 +11400,11 @@ function pa(t) {
|
|
|
11397
11400
|
item: t.active
|
|
11398
11401
|
};
|
|
11399
11402
|
}
|
|
11400
|
-
function
|
|
11403
|
+
function bm() {
|
|
11401
11404
|
return { lastTimestamp: 0, counter: 0 };
|
|
11402
11405
|
}
|
|
11403
11406
|
const fa = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", Gn = 14;
|
|
11404
|
-
function
|
|
11407
|
+
function ym(t, e = Date.now(), n) {
|
|
11405
11408
|
e !== t.lastTimestamp && (t.lastTimestamp = e, t.counter = 0), t.counter++;
|
|
11406
11409
|
const s = (BigInt(e) * 0x1000n + BigInt(t.counter)).toString(16).padStart(12, "0").slice(-12), o = crypto.getRandomValues(new Uint8Array(Gn));
|
|
11407
11410
|
if (o.length < Gn)
|
|
@@ -11411,7 +11414,7 @@ function bm(t, e = Date.now(), n) {
|
|
|
11411
11414
|
l += fa[o[a] % fa.length];
|
|
11412
11415
|
return `msg_${s}${l}`;
|
|
11413
11416
|
}
|
|
11414
|
-
const
|
|
11417
|
+
const vm = 200, xm = 50, _m = 4 * 60 * 1e3, wm = 6 * 60 * 1e3, ha = 10;
|
|
11415
11418
|
function En(t) {
|
|
11416
11419
|
if (t && typeof t == "object" && "name" in t && "data" in t) {
|
|
11417
11420
|
const { name: e, data: n } = t, r = typeof n.message == "string" ? n.message : void 0;
|
|
@@ -11419,13 +11422,13 @@ function En(t) {
|
|
|
11419
11422
|
}
|
|
11420
11423
|
return "Unknown error";
|
|
11421
11424
|
}
|
|
11422
|
-
function
|
|
11425
|
+
function km(t) {
|
|
11423
11426
|
return t.type === "text" ? { kind: "text", id: t.id, text: t.text } : t.type === "reasoning" ? { kind: "reasoning", id: t.id, text: t.text } : t.type === "tool" ? { kind: "tool", id: t.id, tool: t.tool, state: t.state } : t.type === "file" ? { kind: "file", id: t.id, mime: t.mime, filename: t.filename, url: t.url } : null;
|
|
11424
11427
|
}
|
|
11425
|
-
function
|
|
11428
|
+
function Sm() {
|
|
11426
11429
|
const t = ae("idle"), e = ae("No session selected"), n = ae(null), r = ae(!1), s = ae(null), o = ae(!1), l = ae(!1), a = ae(null), i = ae(null), u = ae(null), p = ae(!1), v = ae(!1), m = ae(0), S = ae(null), c = ae(!1), y = ae(!1), w = ae([]), T = qn({}), x = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Set(), C = ae(da()), M = B(() => C.value.pending.map((k) => k.message)), j = ae(0);
|
|
11427
11430
|
let ne = null, ee = 0, _e = 0, Ce = !1;
|
|
11428
|
-
const V =
|
|
11431
|
+
const V = bm(), Q = /* @__PURE__ */ new Map();
|
|
11429
11432
|
let pe = null, we = null;
|
|
11430
11433
|
function ge() {
|
|
11431
11434
|
pe !== null && (clearTimeout(pe), pe = null), we !== null && (cancelAnimationFrame(we), we = null);
|
|
@@ -11450,7 +11453,7 @@ function km() {
|
|
|
11450
11453
|
pe = null, we = requestAnimationFrame(() => {
|
|
11451
11454
|
we = null, L();
|
|
11452
11455
|
});
|
|
11453
|
-
},
|
|
11456
|
+
}, xm));
|
|
11454
11457
|
}
|
|
11455
11458
|
function me() {
|
|
11456
11459
|
Y(), w.value = [];
|
|
@@ -11518,7 +11521,7 @@ function km() {
|
|
|
11518
11521
|
k.changedFiles = [.../* @__PURE__ */ new Set([...k.changedFiles, ...R.files])], k.parentId && Me(k.parentId), j.value++;
|
|
11519
11522
|
return;
|
|
11520
11523
|
}
|
|
11521
|
-
const H =
|
|
11524
|
+
const H = km(R);
|
|
11522
11525
|
if (!H) return;
|
|
11523
11526
|
const K = k.parts.findIndex((oe) => oe.id === H.id);
|
|
11524
11527
|
K === -1 ? k.parts.push(H) : k.parts[K] = H, j.value++;
|
|
@@ -11543,7 +11546,7 @@ function km() {
|
|
|
11543
11546
|
if (!ne) return;
|
|
11544
11547
|
const { data: R, error: H } = await ne.session.messages({
|
|
11545
11548
|
path: { id: k },
|
|
11546
|
-
query: { limit:
|
|
11549
|
+
query: { limit: vm }
|
|
11547
11550
|
});
|
|
11548
11551
|
if (H) throw new Error(En(H));
|
|
11549
11552
|
Et(R ?? []);
|
|
@@ -11719,7 +11722,7 @@ function km() {
|
|
|
11719
11722
|
try {
|
|
11720
11723
|
const H = new URLSearchParams();
|
|
11721
11724
|
k.businessId && H.set("businessId", k.businessId), k.sessionId && H.set("sessionId", k.sessionId);
|
|
11722
|
-
const K = new AbortController(), oe = window.setTimeout(() => K.abort(),
|
|
11725
|
+
const K = new AbortController(), oe = window.setTimeout(() => K.abort(), _m);
|
|
11723
11726
|
let ve;
|
|
11724
11727
|
try {
|
|
11725
11728
|
ve = await en(Qt(`/api/start${H.size ? `?${H}` : ""}`), {
|
|
@@ -11738,7 +11741,7 @@ function km() {
|
|
|
11738
11741
|
"x-miniprogram-business-id": k.businessId ?? "",
|
|
11739
11742
|
"x-miniprogram-session-id": Ze
|
|
11740
11743
|
};
|
|
11741
|
-
E && (Z.Authorization = E), ne =
|
|
11744
|
+
E && (Z.Authorization = E), ne = hm({
|
|
11742
11745
|
baseUrl: Qt("/api/opencode"),
|
|
11743
11746
|
headers: Z,
|
|
11744
11747
|
fetch: (se) => {
|
|
@@ -11768,7 +11771,7 @@ function km() {
|
|
|
11768
11771
|
if (!u.value || !i.value || !n.value || p.value)
|
|
11769
11772
|
return s.value = "A live session is required to restart the preview server.", !1;
|
|
11770
11773
|
r.value = !0, s.value = null;
|
|
11771
|
-
const k = new AbortController(), R = window.setTimeout(() => k.abort(),
|
|
11774
|
+
const k = new AbortController(), R = window.setTimeout(() => k.abort(), wm);
|
|
11772
11775
|
try {
|
|
11773
11776
|
const H = await en(
|
|
11774
11777
|
Qt(
|
|
@@ -11810,7 +11813,7 @@ function km() {
|
|
|
11810
11813
|
}
|
|
11811
11814
|
async function Ne() {
|
|
11812
11815
|
if (Ce || C.value.active || l.value || c.value || !ne || !a.value || p.value || t.value !== "ready") return;
|
|
11813
|
-
const k =
|
|
11816
|
+
const k = gm(C.value);
|
|
11814
11817
|
if (!k.item) return;
|
|
11815
11818
|
C.value = k.queue;
|
|
11816
11819
|
const R = k.item, H = _e, K = ne, oe = a.value;
|
|
@@ -11821,7 +11824,7 @@ function km() {
|
|
|
11821
11824
|
if (H !== _e || ne !== K || a.value !== oe || C.value.active !== R) return;
|
|
11822
11825
|
const Be = ve.length ? `[The attached image file${ve.length > 1 ? "s are" : " is"} saved on this machine at: ${ve.join(", ")} (outside the repo). If the task needs the actual file as an asset, move it into the app (e.g. src/assets/) — do not try to recreate it. If it is only a visual reference, leave it where it is.]` : "", Ze = [R.text.trim(), Be].filter(Boolean).join(`
|
|
11823
11826
|
|
|
11824
|
-
`), xt =
|
|
11827
|
+
`), xt = ym(V);
|
|
11825
11828
|
R.message.id = xt, x.set(xt, R.message.key), $.add(xt), l.value = !0;
|
|
11826
11829
|
const { error: g } = await K.session.promptAsync({
|
|
11827
11830
|
path: { id: oe },
|
|
@@ -11873,7 +11876,7 @@ function km() {
|
|
|
11873
11876
|
busy: !1,
|
|
11874
11877
|
promptState: "queued"
|
|
11875
11878
|
};
|
|
11876
|
-
return C.value =
|
|
11879
|
+
return C.value = mm(C.value, {
|
|
11877
11880
|
message: oe,
|
|
11878
11881
|
text: H,
|
|
11879
11882
|
attachments: R,
|
|
@@ -11953,12 +11956,12 @@ function km() {
|
|
|
11953
11956
|
restartPreviewServer: q
|
|
11954
11957
|
});
|
|
11955
11958
|
}
|
|
11956
|
-
const ma = ["pointerdown", "pointermove", "keydown", "wheel", "touchstart"],
|
|
11957
|
-
function
|
|
11959
|
+
const ma = ["pointerdown", "pointermove", "keydown", "wheel", "touchstart"], Tm = 6e4, Em = 1e3;
|
|
11960
|
+
function Am(t) {
|
|
11958
11961
|
let e = Date.now(), n = 0, r = null;
|
|
11959
11962
|
function s() {
|
|
11960
11963
|
const l = Date.now();
|
|
11961
|
-
l - n <
|
|
11964
|
+
l - n < Em || (n = l, e = l);
|
|
11962
11965
|
}
|
|
11963
11966
|
function o() {
|
|
11964
11967
|
if (!t.isEligible() || t.isActive()) {
|
|
@@ -11970,7 +11973,7 @@ function Em(t) {
|
|
|
11970
11973
|
Rn(() => {
|
|
11971
11974
|
e = Date.now();
|
|
11972
11975
|
for (const l of ma) window.addEventListener(l, s, { passive: !0 });
|
|
11973
|
-
r = window.setInterval(o,
|
|
11976
|
+
r = window.setInterval(o, Tm);
|
|
11974
11977
|
}), ar(() => {
|
|
11975
11978
|
for (const l of ma) window.removeEventListener(l, s);
|
|
11976
11979
|
r !== null && window.clearInterval(r);
|
|
@@ -11982,10 +11985,10 @@ function Er(t) {
|
|
|
11982
11985
|
function Ar(t) {
|
|
11983
11986
|
return t === "active" ? "Active" : t === "needs_attention" ? "Needs attention" : "Archived";
|
|
11984
11987
|
}
|
|
11985
|
-
function
|
|
11988
|
+
function Cm(t) {
|
|
11986
11989
|
return t === "succeeded" ? "success" : t === "failed" ? "error" : t === "queued" || t === "running" ? "info" : "neutral";
|
|
11987
11990
|
}
|
|
11988
|
-
function
|
|
11991
|
+
function $m(t) {
|
|
11989
11992
|
switch (t) {
|
|
11990
11993
|
case "queued":
|
|
11991
11994
|
return "Queued";
|
|
@@ -11999,7 +12002,7 @@ function Cm(t) {
|
|
|
11999
12002
|
return "No build yet";
|
|
12000
12003
|
}
|
|
12001
12004
|
}
|
|
12002
|
-
function
|
|
12005
|
+
function Rm(t) {
|
|
12003
12006
|
switch (t) {
|
|
12004
12007
|
case "ready":
|
|
12005
12008
|
return "Ready";
|
|
@@ -12011,20 +12014,20 @@ function $m(t) {
|
|
|
12011
12014
|
return "Not set up";
|
|
12012
12015
|
}
|
|
12013
12016
|
}
|
|
12014
|
-
const
|
|
12017
|
+
const Im = ["preview", "published", "rolled_back"];
|
|
12015
12018
|
function Ei(t) {
|
|
12016
|
-
return
|
|
12019
|
+
return Im.includes(t.status);
|
|
12017
12020
|
}
|
|
12018
|
-
function
|
|
12021
|
+
function Nm(t) {
|
|
12019
12022
|
return t.is_live === 1 ? "Live" : t.build_status === "queued" || t.build_status === "running" ? "Building" : t.build_status === "failed" ? "Failed" : t.build_status === "succeeded" ? "Ready" : "Draft";
|
|
12020
12023
|
}
|
|
12021
|
-
function
|
|
12024
|
+
function Om(t) {
|
|
12022
12025
|
return t.is_live === 1 ? "primary" : t.build_status === "succeeded" ? "success" : t.build_status === "queued" || t.build_status === "running" ? "info" : t.build_status === "failed" ? "error" : "neutral";
|
|
12023
12026
|
}
|
|
12024
|
-
function
|
|
12027
|
+
function Pm(t) {
|
|
12025
12028
|
return t === "ready" ? "success" : t === "error" ? "error" : t === "idle" ? "neutral" : "warning";
|
|
12026
12029
|
}
|
|
12027
|
-
function
|
|
12030
|
+
function Mm() {
|
|
12028
12031
|
const t = ae(an() || Dr), e = ae(null), n = ae([]), r = ae([]), s = ae(null), o = ae([]), l = ae(!1), a = ae(!1), i = ae("Project ready"), u = ae(null), p = ae(null), v = B(() => r.value[0] ?? null), m = B(() => {
|
|
12029
12032
|
var N;
|
|
12030
12033
|
return ((N = e.value) == null ? void 0 : N.provisioningStatus) === "ready";
|
|
@@ -12317,88 +12320,88 @@ function Pm() {
|
|
|
12317
12320
|
rollbackToV1: re
|
|
12318
12321
|
});
|
|
12319
12322
|
}
|
|
12320
|
-
const
|
|
12323
|
+
const Lm = ["aria-label", "title"], Dm = { class: "flex flex-col gap-[4px]" }, zm = ["title", "onClick"], Bm = {
|
|
12321
12324
|
key: 0,
|
|
12322
12325
|
class: "min-w-0 flex-1 truncate fm-typo-en-body-md-600"
|
|
12323
|
-
},
|
|
12326
|
+
}, Fm = {
|
|
12324
12327
|
key: 1,
|
|
12325
12328
|
class: "rounded-full bg-fm-color-neutral-gray-100 px-[8px] py-[2px] fm-typo-en-body-xs-600 text-fm-color-typo-secondary"
|
|
12326
|
-
},
|
|
12329
|
+
}, Um = { class: "mt-auto flex flex-col gap-[8px]" }, jm = ["title"], Hm = {
|
|
12327
12330
|
key: 2,
|
|
12328
12331
|
class: "min-w-0 truncate"
|
|
12329
|
-
},
|
|
12332
|
+
}, Gm = {
|
|
12330
12333
|
key: 0,
|
|
12331
12334
|
class: "flex min-w-0 flex-1 flex-col overflow-auto bg-fm-color-neutral-white"
|
|
12332
|
-
},
|
|
12335
|
+
}, Wm = { class: "flex shrink-0 items-center justify-between gap-16 border-b border-fm-color-neutral-gray-100 px-24 py-16" }, Km = { class: "flex w-full max-w-[760px] flex-col gap-16 p-24" }, Vm = { class: "rounded-lg border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white p-16" }, qm = { class: "flex items-center justify-between gap-16" }, Zm = { class: "min-w-0" }, Ym = { class: "m-0 fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Xm = { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Jm = {
|
|
12333
12336
|
key: 0,
|
|
12334
12337
|
class: "m-0 mt-12 break-words fm-typo-en-body-sm-400 text-fm-color-typo-error"
|
|
12335
|
-
},
|
|
12338
|
+
}, Qm = {
|
|
12336
12339
|
key: 1,
|
|
12337
12340
|
class: "workspace__workspace-main flex min-w-0 flex-1 flex-col"
|
|
12338
|
-
},
|
|
12341
|
+
}, eg = { class: "relative flex h-[52px] shrink-0 items-center justify-between gap-8 border-b border-fm-color-neutral-gray-100 px-16" }, tg = { class: "flex min-w-0 items-center gap-8" }, ng = { class: "min-w-0 truncate fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, rg = { class: "truncate" }, sg = { class: "flex shrink-0 items-center gap-4" }, ag = { class: "max-w-[280px] truncate" }, ig = { class: "absolute left-16 top-[52px] z-20 max-h-[360px] w-[320px] overflow-y-auto rounded-lg border border-fm-color-neutral-gray-200 bg-fm-color-neutral-white py-[4px] shadow-lg" }, og = ["onClick"], lg = { class: "min-w-0 flex-1" }, cg = { class: "truncate fm-typo-en-body-md-600 text-fm-color-typo-primary" }, ug = { class: "mt-2 truncate fm-typo-en-body-xs-400 text-fm-color-typo-tertiary" }, dg = {
|
|
12339
12342
|
key: 0,
|
|
12340
12343
|
class: "px-[12px] py-[10px] fm-typo-en-body-sm-400 text-fm-color-typo-tertiary"
|
|
12341
|
-
},
|
|
12344
|
+
}, pg = {
|
|
12342
12345
|
key: 0,
|
|
12343
12346
|
class: "max-h-[320px] shrink-0 overflow-y-auto border-b border-fm-color-neutral-gray-100 bg-fm-color-neutral-white"
|
|
12344
|
-
},
|
|
12347
|
+
}, fg = { class: "flex items-center justify-between gap-12 border-b border-fm-color-neutral-gray-100 px-16 py-10" }, hg = {
|
|
12345
12348
|
key: 0,
|
|
12346
12349
|
class: "border-b border-fm-color-system-error-100 bg-fm-color-system-error-50 px-16 py-8 fm-typo-en-body-sm-400 text-fm-color-typo-error"
|
|
12347
|
-
},
|
|
12350
|
+
}, mg = {
|
|
12348
12351
|
key: 1,
|
|
12349
12352
|
class: "divide-y divide-fm-color-neutral-gray-100"
|
|
12350
|
-
},
|
|
12353
|
+
}, gg = { class: "min-w-0" }, bg = { class: "flex min-w-0 flex-wrap items-center gap-6" }, yg = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, vg = { class: "mt-3 flex flex-wrap items-center gap-8 fm-typo-en-body-xs-400 text-fm-color-typo-secondary" }, xg = { class: "font-mono" }, _g = {
|
|
12351
12354
|
key: 0,
|
|
12352
12355
|
class: "font-mono"
|
|
12353
|
-
},
|
|
12356
|
+
}, wg = { key: 1 }, kg = {
|
|
12354
12357
|
key: 0,
|
|
12355
12358
|
class: "m-0 mt-3 truncate fm-typo-en-body-xs-400 text-fm-color-typo-secondary"
|
|
12356
|
-
},
|
|
12359
|
+
}, Sg = {
|
|
12357
12360
|
key: 1,
|
|
12358
12361
|
class: "m-0 mt-3 truncate fm-typo-en-body-xs-400 text-fm-color-typo-error"
|
|
12359
|
-
},
|
|
12362
|
+
}, Tg = {
|
|
12360
12363
|
key: 2,
|
|
12361
12364
|
class: "px-16 py-14 fm-typo-en-body-sm-400 text-fm-color-typo-tertiary"
|
|
12362
|
-
},
|
|
12365
|
+
}, Eg = {
|
|
12363
12366
|
key: 1,
|
|
12364
12367
|
class: "flex shrink-0 items-center justify-between gap-16 border-b border-fm-color-system-warning-300 bg-fm-color-system-warning-50 px-16 py-8"
|
|
12365
|
-
},
|
|
12368
|
+
}, Ag = { class: "min-w-0 truncate fm-typo-en-body-sm-400 text-fm-color-typo-warning" }, Cg = {
|
|
12366
12369
|
key: 0,
|
|
12367
12370
|
class: "absolute inset-0 z-20 cursor-col-resize"
|
|
12368
|
-
},
|
|
12371
|
+
}, $g = {
|
|
12369
12372
|
key: 1,
|
|
12370
12373
|
class: "workspace__suspend-overlay absolute inset-0 z-40 flex items-center justify-center p-24"
|
|
12371
|
-
},
|
|
12374
|
+
}, Rg = { class: "flex w-full max-w-[400px] flex-col items-center gap-12 rounded-lg border border-fm-color-neutral-gray-200 bg-fm-color-neutral-white p-24 text-center shadow-lg" }, Ig = ["aria-valuenow"], Ng = {
|
|
12372
12375
|
key: 2,
|
|
12373
12376
|
class: "flex min-w-0 flex-1 flex-col overflow-auto bg-fm-color-neutral-white"
|
|
12374
|
-
},
|
|
12377
|
+
}, Og = { class: "flex shrink-0 items-center justify-between gap-16 border-b border-fm-color-neutral-gray-100 px-24 py-16" }, Pg = { class: "flex shrink-0 items-center gap-8" }, Mg = { class: "flex w-full max-w-[920px] flex-col gap-24 p-24" }, Lg = { class: "rounded-lg border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white" }, Dg = { class: "flex flex-col gap-16 p-16" }, zg = { class: "flex items-center justify-between gap-16" }, Bg = { class: "min-w-0" }, Fg = { class: "m-0 fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Ug = { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, jg = { class: "flex shrink-0 items-center gap-6" }, Hg = { class: "flex flex-wrap items-center gap-8" }, Gg = { class: "rounded-lg border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white" }, Wg = { class: "flex items-center justify-between gap-16 border-b border-fm-color-neutral-gray-100 px-16 py-12" }, Kg = { class: "flex items-center gap-12" }, Vg = {
|
|
12375
12378
|
key: 0,
|
|
12376
12379
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
12377
|
-
},
|
|
12380
|
+
}, qg = { class: "font-mono text-fm-color-typo-secondary" }, Zg = {
|
|
12378
12381
|
key: 0,
|
|
12379
12382
|
class: "flex flex-col items-center gap-6 p-24 text-center"
|
|
12380
|
-
},
|
|
12383
|
+
}, Yg = {
|
|
12381
12384
|
key: 1,
|
|
12382
12385
|
class: "divide-y divide-fm-color-neutral-gray-100"
|
|
12383
|
-
},
|
|
12386
|
+
}, Xg = ["onClick"], Jg = { class: "flex min-w-0 flex-wrap items-center gap-[6px]" }, Qg = { class: "inline-flex min-w-0 items-center gap-[4px] truncate fm-typo-en-body-md-600 text-fm-color-typo-primary" }, eb = { class: "mt-4 flex min-w-0 flex-wrap items-center gap-8 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, tb = { class: "font-mono text-fm-color-typo-tertiary" }, nb = { class: "font-mono text-fm-color-typo-tertiary" }, rb = { class: "flex shrink-0 flex-wrap items-center justify-end gap-4" }, sb = { class: "rounded-lg border border-fm-color-system-warning-300 bg-fm-color-neutral-white" }, ab = { class: "flex items-center justify-between gap-16 p-16" }, ib = {
|
|
12384
12387
|
key: 3,
|
|
12385
12388
|
class: "flex min-w-0 flex-1 flex-col overflow-auto bg-fm-color-neutral-white"
|
|
12386
|
-
},
|
|
12389
|
+
}, ob = { class: "flex shrink-0 items-center justify-between gap-16 border-b border-fm-color-neutral-gray-100 px-24 py-16" }, lb = { class: "flex w-full max-w-[920px] flex-col gap-8 p-24" }, cb = ["onClick", "onKeydown"], ub = { class: "min-w-0" }, db = { class: "flex min-w-0 flex-wrap items-center gap-[6px]" }, pb = { class: "truncate fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, fb = { class: "mt-4 flex flex-wrap items-center gap-x-8 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, hb = {
|
|
12387
12390
|
key: 0,
|
|
12388
12391
|
class: "font-mono"
|
|
12389
|
-
},
|
|
12392
|
+
}, mb = {
|
|
12390
12393
|
key: 1,
|
|
12391
12394
|
class: "text-fm-color-typo-error"
|
|
12392
|
-
},
|
|
12395
|
+
}, gb = {
|
|
12393
12396
|
key: 0,
|
|
12394
12397
|
class: "mt-4 truncate fm-typo-en-body-sm-400 text-fm-color-typo-error"
|
|
12395
|
-
},
|
|
12398
|
+
}, bb = { class: "flex shrink-0 items-center gap-4" }, yb = {
|
|
12396
12399
|
key: 0,
|
|
12397
12400
|
class: "flex flex-col items-center gap-8 rounded-lg border border-dashed border-fm-color-neutral-gray-200 p-24 text-center"
|
|
12398
|
-
}, ga = "mpv2:sidebar-collapsed", Cr = "mpv2:chat-column-width",
|
|
12401
|
+
}, ga = "mpv2:sidebar-collapsed", Cr = "mpv2:chat-column-width", vb = 440, Wn = 320, $r = 720, xb = 360, _b = 30 * 60 * 1e3, wb = /* @__PURE__ */ pt({
|
|
12399
12402
|
__name: "ControlPlaneView",
|
|
12400
12403
|
setup(t) {
|
|
12401
|
-
const e = Br(), n =
|
|
12404
|
+
const e = Br(), n = Sm(), r = Mm(), s = ba(), o = ae("workspace"), l = ae(!1), a = ae(yi(ga, !1)), i = ae(!1), u = ae(null), p = ae(Bf(Cr, vb)), v = ae(!1);
|
|
12402
12405
|
let m = null, S = null, c = null, y = "", w = "", T = null;
|
|
12403
12406
|
const x = B(() => r.sessions.find((b) => b.status === "active") ?? null), $ = ae(!1), C = ae(!1), M = ae(!1), j = ae(!1), ne = ae(!1), ee = B(
|
|
12404
12407
|
() => r.sessions.find((b) => b.id === n.workspaceSessionId) ?? x.value
|
|
@@ -12438,7 +12441,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12438
12441
|
function Me() {
|
|
12439
12442
|
var z;
|
|
12440
12443
|
const b = ((z = u.value) == null ? void 0 : z.clientWidth) ?? 0;
|
|
12441
|
-
return b ? Math.max(Wn, Math.min($r, b -
|
|
12444
|
+
return b ? Math.max(Wn, Math.min($r, b - xb)) : $r;
|
|
12442
12445
|
}
|
|
12443
12446
|
function ze(b) {
|
|
12444
12447
|
return Math.round(Math.min(Me(), Math.max(Wn, b)));
|
|
@@ -12721,7 +12724,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12721
12724
|
function Ze(b) {
|
|
12722
12725
|
s.open({
|
|
12723
12726
|
title: "Rename session",
|
|
12724
|
-
dialogComponent:
|
|
12727
|
+
dialogComponent: Eh,
|
|
12725
12728
|
dialogComponentProps: {
|
|
12726
12729
|
initialTitle: b.title,
|
|
12727
12730
|
onSubmit: (z) => {
|
|
@@ -12753,8 +12756,8 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12753
12756
|
}
|
|
12754
12757
|
}
|
|
12755
12758
|
}
|
|
12756
|
-
|
|
12757
|
-
timeoutMs:
|
|
12759
|
+
Am({
|
|
12760
|
+
timeoutMs: _b,
|
|
12758
12761
|
// Only a live workspace generates keep-alive traffic worth stopping; the
|
|
12759
12762
|
// read-only/empty states are already quiet.
|
|
12760
12763
|
isEligible: () => !j.value && !n.readOnly && !!n.workspaceSessionId && n.status === "ready",
|
|
@@ -12818,9 +12821,9 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12818
12821
|
size: "md",
|
|
12819
12822
|
color: "typo-secondary"
|
|
12820
12823
|
}, null, 8, ["name"])
|
|
12821
|
-
], 8,
|
|
12824
|
+
], 8, Lm)
|
|
12822
12825
|
], 2),
|
|
12823
|
-
f("nav",
|
|
12826
|
+
f("nav", Dm, [
|
|
12824
12827
|
(h(), _(Te, null, Re(Fe, (P) => f("button", {
|
|
12825
12828
|
key: P.key,
|
|
12826
12829
|
type: "button",
|
|
@@ -12836,11 +12839,11 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12836
12839
|
color: o.value === P.key ? "primary" : "typo-secondary",
|
|
12837
12840
|
size: "md"
|
|
12838
12841
|
}, null, 8, ["name", "color"]),
|
|
12839
|
-
F.value ? U("", !0) : (h(), _("span",
|
|
12840
|
-
!F.value && P.key === "sessions" ? (h(), _("span",
|
|
12841
|
-
], 10,
|
|
12842
|
+
F.value ? U("", !0) : (h(), _("span", Bm, I(P.label), 1)),
|
|
12843
|
+
!F.value && P.key === "sessions" ? (h(), _("span", Fm, I(O(r).sessions.length), 1)) : U("", !0)
|
|
12844
|
+
], 10, zm)), 64))
|
|
12842
12845
|
]),
|
|
12843
|
-
f("div",
|
|
12846
|
+
f("div", Um, [
|
|
12844
12847
|
O(r).statusText ? (h(), _("p", {
|
|
12845
12848
|
key: 0,
|
|
12846
12849
|
class: Ae(["m-0 flex items-center rounded-md bg-fm-color-neutral-gray-100 fm-typo-en-body-xs-400 text-fm-color-typo-secondary", F.value ? "justify-center px-[6px] py-[8px]" : "gap-[6px] px-[10px] py-[6px]"]),
|
|
@@ -12856,8 +12859,8 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12856
12859
|
size: "sm",
|
|
12857
12860
|
color: "typo-secondary"
|
|
12858
12861
|
})) : U("", !0),
|
|
12859
|
-
F.value ? U("", !0) : (h(), _("span",
|
|
12860
|
-
], 10,
|
|
12862
|
+
F.value ? U("", !0) : (h(), _("span", Hm, I(O(r).statusText), 1))
|
|
12863
|
+
], 10, jm)) : U("", !0),
|
|
12861
12864
|
O(r).isProvisioned ? U("", !0) : (h(), Se(G, {
|
|
12862
12865
|
key: 1,
|
|
12863
12866
|
icon: "source",
|
|
@@ -12876,9 +12879,9 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12876
12879
|
}, null, 8, ["label", "disabled", "loading", "title"])
|
|
12877
12880
|
])
|
|
12878
12881
|
], 2),
|
|
12879
|
-
O(r).isProvisioned ? o.value === "workspace" ? (h(), _("main",
|
|
12880
|
-
f("div",
|
|
12881
|
-
f("div",
|
|
12882
|
+
O(r).isProvisioned ? o.value === "workspace" ? (h(), _("main", Qm, [
|
|
12883
|
+
f("div", eg, [
|
|
12884
|
+
f("div", tg, [
|
|
12882
12885
|
f("button", {
|
|
12883
12886
|
type: "button",
|
|
12884
12887
|
class: "flex min-w-0 cursor-pointer items-center gap-[6px] rounded-md border-0 bg-transparent px-[8px] py-[6px] text-left hover:bg-fm-color-neutral-gray-100",
|
|
@@ -12889,7 +12892,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12889
12892
|
color: "primary",
|
|
12890
12893
|
size: "md"
|
|
12891
12894
|
}),
|
|
12892
|
-
f("span",
|
|
12895
|
+
f("span", ng, I(_e.value), 1),
|
|
12893
12896
|
ee.value ? (h(), Se(Tt, {
|
|
12894
12897
|
key: 0,
|
|
12895
12898
|
variant: O(Er)(ee.value.status)
|
|
@@ -12915,7 +12918,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12915
12918
|
})) : U("", !0),
|
|
12916
12919
|
O(n).readOnly ? U("", !0) : (h(), Se(Tt, {
|
|
12917
12920
|
key: 1,
|
|
12918
|
-
variant: O(
|
|
12921
|
+
variant: O(Pm)(O(n).status),
|
|
12919
12922
|
class: "min-w-0 max-w-[240px]"
|
|
12920
12923
|
}, {
|
|
12921
12924
|
default: gt(() => [
|
|
@@ -12924,12 +12927,12 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12924
12927
|
size: "md",
|
|
12925
12928
|
color: "system-warning-300"
|
|
12926
12929
|
})) : U("", !0),
|
|
12927
|
-
f("span",
|
|
12930
|
+
f("span", rg, I(O(n).statusText), 1)
|
|
12928
12931
|
]),
|
|
12929
12932
|
_: 1
|
|
12930
12933
|
}, 8, ["variant"]))
|
|
12931
12934
|
]),
|
|
12932
|
-
f("div",
|
|
12935
|
+
f("div", sg, [
|
|
12933
12936
|
ee.value ? (h(), _("button", {
|
|
12934
12937
|
key: 0,
|
|
12935
12938
|
type: "button",
|
|
@@ -12944,7 +12947,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12944
12947
|
size: "md",
|
|
12945
12948
|
color: "neutral-gray-300"
|
|
12946
12949
|
})) : U("", !0),
|
|
12947
|
-
f("span",
|
|
12950
|
+
f("span", ag, I(me.value), 1)
|
|
12948
12951
|
]),
|
|
12949
12952
|
_: 1
|
|
12950
12953
|
}, 8, ["variant"])
|
|
@@ -12973,16 +12976,16 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12973
12976
|
class: "fixed inset-0 z-10",
|
|
12974
12977
|
onClick: z[2] || (z[2] = (P) => $.value = !1)
|
|
12975
12978
|
}),
|
|
12976
|
-
f("div",
|
|
12979
|
+
f("div", ig, [
|
|
12977
12980
|
(h(!0), _(Te, null, Re(O(r).sessions, (P) => (h(), _("button", {
|
|
12978
12981
|
key: P.id,
|
|
12979
12982
|
type: "button",
|
|
12980
12983
|
class: Ae(["flex w-full cursor-pointer items-center gap-8 border-0 bg-transparent px-[12px] py-[8px] text-left hover:bg-fm-color-neutral-gray-100", P.id === O(n).workspaceSessionId ? "bg-fm-color-primary-oats" : ""]),
|
|
12981
12984
|
onClick: (lt) => oe(P)
|
|
12982
12985
|
}, [
|
|
12983
|
-
f("div",
|
|
12984
|
-
f("div",
|
|
12985
|
-
f("div",
|
|
12986
|
+
f("div", lg, [
|
|
12987
|
+
f("div", cg, I(se(P)), 1),
|
|
12988
|
+
f("div", ug, I(he(P.updated_at)), 1)
|
|
12986
12989
|
]),
|
|
12987
12990
|
W(Tt, {
|
|
12988
12991
|
variant: O(Er)(P.status)
|
|
@@ -12992,13 +12995,13 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12992
12995
|
]),
|
|
12993
12996
|
_: 2
|
|
12994
12997
|
}, 1032, ["variant"])
|
|
12995
|
-
], 10,
|
|
12996
|
-
O(r).sessions.length ? U("", !0) : (h(), _("div",
|
|
12998
|
+
], 10, og))), 128)),
|
|
12999
|
+
O(r).sessions.length ? U("", !0) : (h(), _("div", dg, " No sessions yet. "))
|
|
12997
13000
|
])
|
|
12998
13001
|
], 64)) : U("", !0)
|
|
12999
13002
|
]),
|
|
13000
|
-
C.value && ee.value ? (h(), _("section",
|
|
13001
|
-
f("div",
|
|
13003
|
+
C.value && ee.value ? (h(), _("section", pg, [
|
|
13004
|
+
f("div", fg, [
|
|
13002
13005
|
z[6] || (z[6] = f("div", { class: "min-w-0" }, [
|
|
13003
13006
|
f("p", { class: "m-0 fm-typo-en-body-md-600 text-fm-color-typo-primary" }, "Checkpoint history"),
|
|
13004
13007
|
f("p", { class: "m-0 mt-2 fm-typo-en-body-xs-400 text-fm-color-typo-secondary" }, " Code and agent context are tracked separately. Restoring code creates a new commit on main. ")
|
|
@@ -13010,15 +13013,15 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13010
13013
|
onClick: z[3] || (z[3] = (P) => ie(!0))
|
|
13011
13014
|
}, null, 8, ["loading"])
|
|
13012
13015
|
]),
|
|
13013
|
-
(Zt = O(r).workspaceState) != null && Zt.checkpointError || O(n).checkpointError ? (h(), _("div",
|
|
13014
|
-
O(r).checkpoints.length ? (h(), _("div",
|
|
13016
|
+
(Zt = O(r).workspaceState) != null && Zt.checkpointError || O(n).checkpointError ? (h(), _("div", hg, I((($t = O(r).workspaceState) == null ? void 0 : $t.checkpointError) || O(n).checkpointError), 1)) : U("", !0),
|
|
13017
|
+
O(r).checkpoints.length ? (h(), _("div", mg, [
|
|
13015
13018
|
(h(!0), _(Te, null, Re(O(r).checkpoints, (P) => (h(), _("div", {
|
|
13016
13019
|
key: P.id,
|
|
13017
13020
|
class: "flex items-center justify-between gap-16 px-16 py-10"
|
|
13018
13021
|
}, [
|
|
13019
|
-
f("div",
|
|
13020
|
-
f("div",
|
|
13021
|
-
f("span",
|
|
13022
|
+
f("div", gg, [
|
|
13023
|
+
f("div", bg, [
|
|
13024
|
+
f("span", yg, I(ht(P)), 1),
|
|
13022
13025
|
W(Tt, {
|
|
13023
13026
|
variant: vt(P),
|
|
13024
13027
|
size: "sm"
|
|
@@ -13038,14 +13041,14 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13038
13041
|
_: 2
|
|
13039
13042
|
}, 1032, ["variant"])
|
|
13040
13043
|
]),
|
|
13041
|
-
f("div",
|
|
13044
|
+
f("div", vg, [
|
|
13042
13045
|
f("span", null, I(he(P.created_at)), 1),
|
|
13043
|
-
f("span",
|
|
13044
|
-
P.verified_remote_sha ? (h(), _("span",
|
|
13045
|
-
P.file_count ? (h(), _("span",
|
|
13046
|
+
f("span", xg, I(P.id), 1),
|
|
13047
|
+
P.verified_remote_sha ? (h(), _("span", _g, I(P.verified_remote_sha.slice(0, 7)), 1)) : U("", !0),
|
|
13048
|
+
P.file_count ? (h(), _("span", wg, I(P.file_count) + " file" + I(P.file_count === 1 ? "" : "s") + " · +" + I(P.additions) + " −" + I(P.deletions), 1)) : U("", !0)
|
|
13046
13049
|
]),
|
|
13047
|
-
P.summary ? (h(), _("p",
|
|
13048
|
-
P.error_message ? (h(), _("p",
|
|
13050
|
+
P.summary ? (h(), _("p", kg, I(P.summary), 1)) : U("", !0),
|
|
13051
|
+
P.error_message ? (h(), _("p", Sg, I(P.error_stage) + ": " + I(P.error_message), 1)) : U("", !0)
|
|
13049
13052
|
]),
|
|
13050
13053
|
W(G, {
|
|
13051
13054
|
label: "Restore",
|
|
@@ -13055,10 +13058,10 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13055
13058
|
onClick: (lt) => q(P)
|
|
13056
13059
|
}, null, 8, ["disabled", "onClick"])
|
|
13057
13060
|
]))), 128))
|
|
13058
|
-
])) : (h(), _("div",
|
|
13061
|
+
])) : (h(), _("div", Tg, " No checkpoints yet. Save manually or complete an agent turn to create one. "))
|
|
13059
13062
|
])) : U("", !0),
|
|
13060
|
-
O(n).readOnly && O(n).workspaceSessionId ? (h(), _("div",
|
|
13061
|
-
f("span",
|
|
13063
|
+
O(n).readOnly && O(n).workspaceSessionId ? (h(), _("div", Eg, [
|
|
13064
|
+
f("span", Ag, I(M.value ? "This session was archived after being idle. Resume it to keep working with the agent." : "You are viewing an archived session. Resume it to continue working with the agent."), 1),
|
|
13062
13065
|
W(G, {
|
|
13063
13066
|
label: "Resume session",
|
|
13064
13067
|
icon: "restart_alt",
|
|
@@ -13072,9 +13075,9 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13072
13075
|
class: "workspace__split relative flex min-h-0 min-w-0 flex-1",
|
|
13073
13076
|
style: Pt(ue.value)
|
|
13074
13077
|
}, [
|
|
13075
|
-
v.value ? (h(), _("div",
|
|
13076
|
-
j.value ? (h(), _("div",
|
|
13077
|
-
f("div",
|
|
13078
|
+
v.value ? (h(), _("div", Cg)) : U("", !0),
|
|
13079
|
+
j.value ? (h(), _("div", $g, [
|
|
13080
|
+
f("div", Rg, [
|
|
13078
13081
|
W(De, {
|
|
13079
13082
|
name: "pause_circle",
|
|
13080
13083
|
size: "xl",
|
|
@@ -13108,19 +13111,19 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13108
13111
|
}, [...z[9] || (z[9] = [
|
|
13109
13112
|
f("span", { class: "w-px bg-fm-color-neutral-gray-100 transition group-hover:bg-fm-color-primary group-focus-visible:bg-fm-color-primary" }, null, -1),
|
|
13110
13113
|
f("span", { class: "pointer-events-none absolute inset-y-0 left-1/2 hidden w-[3px] -translate-x-1/2 rounded-full bg-fm-color-primary opacity-20 group-hover:block group-focus-visible:block" }, null, -1)
|
|
13111
|
-
])], 40,
|
|
13112
|
-
W(
|
|
13114
|
+
])], 40, Ig),
|
|
13115
|
+
W(Sh, {
|
|
13113
13116
|
chat: O(n),
|
|
13114
13117
|
class: "min-w-0 flex-1"
|
|
13115
13118
|
}, null, 8, ["chat"])
|
|
13116
13119
|
], 4)
|
|
13117
|
-
])) : o.value === "releases" ? (h(), _("main",
|
|
13118
|
-
f("header",
|
|
13120
|
+
])) : o.value === "releases" ? (h(), _("main", Ng, [
|
|
13121
|
+
f("header", Og, [
|
|
13119
13122
|
z[10] || (z[10] = f("div", { class: "min-w-0" }, [
|
|
13120
13123
|
f("h2", { class: "m-0 fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Releases"),
|
|
13121
13124
|
f("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Build from the active session, preview the release, then publish when it is ready. ")
|
|
13122
13125
|
], -1)),
|
|
13123
|
-
f("div",
|
|
13126
|
+
f("div", Pg, [
|
|
13124
13127
|
W(G, {
|
|
13125
13128
|
label: "Open live app",
|
|
13126
13129
|
icon: "open_in_new",
|
|
@@ -13137,18 +13140,18 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13137
13140
|
}, null, 8, ["disabled", "loading"])
|
|
13138
13141
|
])
|
|
13139
13142
|
]),
|
|
13140
|
-
f("div",
|
|
13141
|
-
f("section",
|
|
13143
|
+
f("div", Mg, [
|
|
13144
|
+
f("section", Lg, [
|
|
13142
13145
|
z[12] || (z[12] = f("div", { class: "border-b border-fm-color-neutral-gray-100 px-16 py-12" }, [
|
|
13143
13146
|
f("h3", { class: "m-0 fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, "Latest release")
|
|
13144
13147
|
], -1)),
|
|
13145
|
-
f("div",
|
|
13146
|
-
f("div",
|
|
13147
|
-
f("div",
|
|
13148
|
-
f("p",
|
|
13149
|
-
f("p",
|
|
13148
|
+
f("div", Dg, [
|
|
13149
|
+
f("div", zg, [
|
|
13150
|
+
f("div", Bg, [
|
|
13151
|
+
f("p", Fg, I(Ce.value), 1),
|
|
13152
|
+
f("p", Ug, I(V.value), 1)
|
|
13150
13153
|
]),
|
|
13151
|
-
f("div",
|
|
13154
|
+
f("div", jg, [
|
|
13152
13155
|
((Je = O(r).latestRelease) == null ? void 0 : Je.id) === ((vn = we.value) == null ? void 0 : vn.id) ? (h(), Se(Tt, {
|
|
13153
13156
|
key: 0,
|
|
13154
13157
|
variant: "primary",
|
|
@@ -13160,17 +13163,17 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13160
13163
|
_: 1
|
|
13161
13164
|
})) : U("", !0),
|
|
13162
13165
|
W(Tt, {
|
|
13163
|
-
variant: O(
|
|
13166
|
+
variant: O(Cm)(Q.value),
|
|
13164
13167
|
size: "sm"
|
|
13165
13168
|
}, {
|
|
13166
13169
|
default: gt(() => [
|
|
13167
|
-
Ke(I(O(
|
|
13170
|
+
Ke(I(O($m)(Q.value)), 1)
|
|
13168
13171
|
]),
|
|
13169
13172
|
_: 1
|
|
13170
13173
|
}, 8, ["variant"])
|
|
13171
13174
|
])
|
|
13172
13175
|
]),
|
|
13173
|
-
f("div",
|
|
13176
|
+
f("div", Hg, [
|
|
13174
13177
|
W(G, {
|
|
13175
13178
|
label: O(r).latestRelease ? K(O(r).latestRelease) : "Set live",
|
|
13176
13179
|
icon: "publish",
|
|
@@ -13195,13 +13198,13 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13195
13198
|
])
|
|
13196
13199
|
])
|
|
13197
13200
|
]),
|
|
13198
|
-
f("section",
|
|
13199
|
-
f("div",
|
|
13201
|
+
f("section", Gg, [
|
|
13202
|
+
f("div", Wg, [
|
|
13200
13203
|
z[14] || (z[14] = f("h3", { class: "m-0 fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, "Recent releases", -1)),
|
|
13201
|
-
f("div",
|
|
13202
|
-
we.value ? (h(), _("div",
|
|
13204
|
+
f("div", Kg, [
|
|
13205
|
+
we.value ? (h(), _("div", Vg, [
|
|
13203
13206
|
z[13] || (z[13] = Ke(" Live: ", -1)),
|
|
13204
|
-
f("span",
|
|
13207
|
+
f("span", qg, I(we.value.id), 1)
|
|
13205
13208
|
])) : U("", !0),
|
|
13206
13209
|
W(G, {
|
|
13207
13210
|
label: "Refresh",
|
|
@@ -13212,7 +13215,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13212
13215
|
}, null, 8, ["loading"])
|
|
13213
13216
|
])
|
|
13214
13217
|
]),
|
|
13215
|
-
O(r).releases.length === 0 ? (h(), _("div",
|
|
13218
|
+
O(r).releases.length === 0 ? (h(), _("div", Zg, [
|
|
13216
13219
|
W(De, {
|
|
13217
13220
|
name: "rocket_launch",
|
|
13218
13221
|
size: "xl",
|
|
@@ -13220,7 +13223,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13220
13223
|
}),
|
|
13221
13224
|
z[15] || (z[15] = f("p", { class: "m-0 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, "No releases yet", -1)),
|
|
13222
13225
|
z[16] || (z[16] = f("p", { class: "m-0 fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, " Build from the active session to create a release you can preview and publish. ", -1))
|
|
13223
|
-
])) : (h(), _("div",
|
|
13226
|
+
])) : (h(), _("div", Yg, [
|
|
13224
13227
|
(h(!0), _(Te, null, Re(O(r).releases, (P) => (h(), _("div", {
|
|
13225
13228
|
key: P.id,
|
|
13226
13229
|
class: Ae(["flex items-center gap-16 px-16 py-12", E(P)])
|
|
@@ -13230,8 +13233,8 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13230
13233
|
class: "min-w-0 flex-1 cursor-pointer border-0 bg-transparent p-0 text-left",
|
|
13231
13234
|
onClick: (lt) => Dt(P)
|
|
13232
13235
|
}, [
|
|
13233
|
-
f("div",
|
|
13234
|
-
f("span",
|
|
13236
|
+
f("div", Jg, [
|
|
13237
|
+
f("span", Qg, [
|
|
13235
13238
|
W(De, {
|
|
13236
13239
|
name: "space_dashboard",
|
|
13237
13240
|
color: "typo-tertiary",
|
|
@@ -13240,22 +13243,22 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13240
13243
|
Ke(" " + I(P.session_title || "Manual release"), 1)
|
|
13241
13244
|
]),
|
|
13242
13245
|
W(Tt, {
|
|
13243
|
-
variant: O(
|
|
13246
|
+
variant: O(Om)(P),
|
|
13244
13247
|
size: "sm"
|
|
13245
13248
|
}, {
|
|
13246
13249
|
default: gt(() => [
|
|
13247
|
-
Ke(I(O(
|
|
13250
|
+
Ke(I(O(Nm)(P)), 1)
|
|
13248
13251
|
]),
|
|
13249
13252
|
_: 2
|
|
13250
13253
|
}, 1032, ["variant"])
|
|
13251
13254
|
]),
|
|
13252
|
-
f("div",
|
|
13255
|
+
f("div", eb, [
|
|
13253
13256
|
f("span", null, I(he(P.created_at)), 1),
|
|
13254
|
-
f("span",
|
|
13255
|
-
f("span",
|
|
13257
|
+
f("span", tb, I(P.id), 1),
|
|
13258
|
+
f("span", nb, I(P.source_commit_sha.slice(0, 7)), 1)
|
|
13256
13259
|
])
|
|
13257
|
-
], 8,
|
|
13258
|
-
f("div",
|
|
13260
|
+
], 8, Xg),
|
|
13261
|
+
f("div", rb, [
|
|
13259
13262
|
W(G, {
|
|
13260
13263
|
icon: "open_in_new",
|
|
13261
13264
|
variant: "tertiary",
|
|
@@ -13279,8 +13282,8 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13279
13282
|
], 2))), 128))
|
|
13280
13283
|
]))
|
|
13281
13284
|
]),
|
|
13282
|
-
f("section",
|
|
13283
|
-
f("div",
|
|
13285
|
+
f("section", sb, [
|
|
13286
|
+
f("div", ab, [
|
|
13284
13287
|
z[17] || (z[17] = f("div", { class: "min-w-0" }, [
|
|
13285
13288
|
f("h3", { class: "m-0 fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, "Fallback"),
|
|
13286
13289
|
f("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Restore the merchant back to the current v1 miniprogram. ")
|
|
@@ -13296,8 +13299,8 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13296
13299
|
])
|
|
13297
13300
|
])
|
|
13298
13301
|
])
|
|
13299
|
-
])) : (h(), _("main",
|
|
13300
|
-
f("header",
|
|
13302
|
+
])) : (h(), _("main", ib, [
|
|
13303
|
+
f("header", ob, [
|
|
13301
13304
|
z[18] || (z[18] = f("div", { class: "min-w-0" }, [
|
|
13302
13305
|
f("h2", { class: "m-0 fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Sessions"),
|
|
13303
13306
|
f("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Switch between active and archived sessions without exposing internal identifiers. ")
|
|
@@ -13310,7 +13313,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13310
13313
|
onClick: le
|
|
13311
13314
|
}, null, 8, ["disabled", "loading"])
|
|
13312
13315
|
]),
|
|
13313
|
-
f("div",
|
|
13316
|
+
f("div", lb, [
|
|
13314
13317
|
(h(!0), _(Te, null, Re(O(r).sessions, (P) => (h(), _("div", {
|
|
13315
13318
|
key: P.id,
|
|
13316
13319
|
role: "button",
|
|
@@ -13319,9 +13322,9 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13319
13322
|
onClick: (lt) => oe(P),
|
|
13320
13323
|
onKeydown: ji((lt) => oe(P), ["enter"])
|
|
13321
13324
|
}, [
|
|
13322
|
-
f("div",
|
|
13323
|
-
f("div",
|
|
13324
|
-
f("span",
|
|
13325
|
+
f("div", ub, [
|
|
13326
|
+
f("div", db, [
|
|
13327
|
+
f("span", pb, I(se(P)), 1),
|
|
13325
13328
|
P.has_live_release ? (h(), Se(Tt, {
|
|
13326
13329
|
key: 0,
|
|
13327
13330
|
variant: "primary",
|
|
@@ -13342,14 +13345,14 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13342
13345
|
_: 2
|
|
13343
13346
|
}, 1024)) : U("", !0)
|
|
13344
13347
|
]),
|
|
13345
|
-
f("div",
|
|
13348
|
+
f("div", fb, [
|
|
13346
13349
|
f("span", null, "Updated " + I(he(P.updated_at)), 1),
|
|
13347
|
-
P.last_durable_commit_sha ? (h(), _("span",
|
|
13348
|
-
P.checkpoint_status === "local_only" || P.checkpoint_status === "failed" ? (h(), _("span",
|
|
13350
|
+
P.last_durable_commit_sha ? (h(), _("span", hb, " Saved " + I(P.last_durable_commit_sha.slice(0, 7)), 1)) : U("", !0),
|
|
13351
|
+
P.checkpoint_status === "local_only" || P.checkpoint_status === "failed" ? (h(), _("span", mb, " Save incomplete ")) : U("", !0)
|
|
13349
13352
|
]),
|
|
13350
|
-
P.status === "needs_attention" && P.attention_error ? (h(), _("div",
|
|
13353
|
+
P.status === "needs_attention" && P.attention_error ? (h(), _("div", gb, I(P.attention_action) + ": " + I(P.attention_error), 1)) : U("", !0)
|
|
13351
13354
|
]),
|
|
13352
|
-
f("div",
|
|
13355
|
+
f("div", bb, [
|
|
13353
13356
|
W(Tt, {
|
|
13354
13357
|
variant: O(Er)(P.status)
|
|
13355
13358
|
}, {
|
|
@@ -13376,8 +13379,8 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13376
13379
|
size: "md"
|
|
13377
13380
|
})
|
|
13378
13381
|
])
|
|
13379
|
-
], 42,
|
|
13380
|
-
O(r).sessions.length ? U("", !0) : (h(), _("div",
|
|
13382
|
+
], 42, cb))), 128)),
|
|
13383
|
+
O(r).sessions.length ? U("", !0) : (h(), _("div", yb, [
|
|
13381
13384
|
W(De, {
|
|
13382
13385
|
name: "history",
|
|
13383
13386
|
size: "xl",
|
|
@@ -13395,8 +13398,8 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13395
13398
|
}, null, 8, ["disabled", "loading"])
|
|
13396
13399
|
]))
|
|
13397
13400
|
])
|
|
13398
|
-
])) : (h(), _("main",
|
|
13399
|
-
f("header",
|
|
13401
|
+
])) : (h(), _("main", Gm, [
|
|
13402
|
+
f("header", Wm, [
|
|
13400
13403
|
z[5] || (z[5] = f("div", { class: "min-w-0" }, [
|
|
13401
13404
|
f("h2", { class: "m-0 fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Set up v2 project"),
|
|
13402
13405
|
f("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Create the merchant app repository and prepare live previews. Live traffic stays on v1 until a release is published. ")
|
|
@@ -13408,12 +13411,12 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13408
13411
|
onClick: de
|
|
13409
13412
|
}, null, 8, ["loading"])
|
|
13410
13413
|
]),
|
|
13411
|
-
f("div",
|
|
13412
|
-
f("section",
|
|
13413
|
-
f("div",
|
|
13414
|
-
f("div",
|
|
13415
|
-
f("p",
|
|
13416
|
-
f("p",
|
|
13414
|
+
f("div", Km, [
|
|
13415
|
+
f("section", Vm, [
|
|
13416
|
+
f("div", qm, [
|
|
13417
|
+
f("div", Zm, [
|
|
13418
|
+
f("p", Ym, I(((mt = O(r).project) == null ? void 0 : mt.provisioningStatus) === "failed" ? "Setup failed" : "Project is not set up yet"), 1),
|
|
13419
|
+
f("p", Xm, I(((Ut = O(r).project) == null ? void 0 : Ut.repoName) ?? "miniprogram repository"), 1)
|
|
13417
13420
|
]),
|
|
13418
13421
|
W(Tt, {
|
|
13419
13422
|
variant: O(r).provisioningFailed ? "error" : "neutral"
|
|
@@ -13421,20 +13424,20 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13421
13424
|
default: gt(() => {
|
|
13422
13425
|
var P;
|
|
13423
13426
|
return [
|
|
13424
|
-
Ke(I(O(
|
|
13427
|
+
Ke(I(O(Rm)((P = O(r).project) == null ? void 0 : P.provisioningStatus)), 1)
|
|
13425
13428
|
];
|
|
13426
13429
|
}),
|
|
13427
13430
|
_: 1
|
|
13428
13431
|
}, 8, ["variant"])
|
|
13429
13432
|
]),
|
|
13430
|
-
L.value ? (h(), _("p",
|
|
13433
|
+
L.value ? (h(), _("p", Jm, I(L.value), 1)) : U("", !0)
|
|
13431
13434
|
])
|
|
13432
13435
|
])
|
|
13433
13436
|
]))
|
|
13434
13437
|
], 2);
|
|
13435
13438
|
};
|
|
13436
13439
|
}
|
|
13437
|
-
}),
|
|
13440
|
+
}), Cb = /* @__PURE__ */ Mt(wb, [["__scopeId", "data-v-7c371ce3"]]);
|
|
13438
13441
|
export {
|
|
13439
|
-
|
|
13442
|
+
Cb as default
|
|
13440
13443
|
};
|