@codex-app-sdk/vue 0.19.3 → 0.19.5
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/index.js
CHANGED
|
@@ -6945,16 +6945,17 @@ function Yu(e) {
|
|
|
6945
6945
|
var Xu = {
|
|
6946
6946
|
key: 0,
|
|
6947
6947
|
class: "chat-work-group__header"
|
|
6948
|
-
}, Zu = { class: "chat-work-group__title" }, Qu = [
|
|
6948
|
+
}, Zu = { class: "chat-work-group__title" }, Qu = [
|
|
6949
|
+
"aria-expanded",
|
|
6950
|
+
"disabled",
|
|
6951
|
+
"aria-busy"
|
|
6952
|
+
], $u = ["data-label"], ed = { class: "chat-work-group__body" }, td = {
|
|
6949
6953
|
key: 0,
|
|
6950
|
-
role: "status"
|
|
6951
|
-
}, nd = {
|
|
6952
|
-
key: 1,
|
|
6953
6954
|
role: "alert"
|
|
6954
|
-
},
|
|
6955
|
+
}, nd = {
|
|
6955
6956
|
key: 3,
|
|
6956
6957
|
class: "chat-work-group__body chat-work-group__body--continuation"
|
|
6957
|
-
},
|
|
6958
|
+
}, rd = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
6958
6959
|
__name: "ChatWorkGroup",
|
|
6959
6960
|
props: {
|
|
6960
6961
|
active: { type: Boolean },
|
|
@@ -6962,22 +6963,22 @@ var Xu = {
|
|
|
6962
6963
|
finalStarted: { type: Boolean }
|
|
6963
6964
|
},
|
|
6964
6965
|
setup(e) {
|
|
6965
|
-
let t = e, n = $n(), r = b(bo, void 0), i = b(xo, void 0), a = o(() => r?.enabled.value === !0 && i !== void 0), d = o(() => a.value ? r.completedWithoutFinal.value : !t.active && !t.finalStarted), f = N(t.active && !t.finalStarted), m = N(!1), h = o(() => a.value ? r.active.value : t.active && !t.finalStarted), g = o(() => !a.value || h.value || r.hasDetails?.value !== !1), _ = o(() => h.value || d.value ? !0 : a.value ? r.expanded.value : f.value),
|
|
6966
|
+
let t = e, n = $n(), r = b(bo, void 0), i = b(xo, void 0), a = o(() => r?.enabled.value === !0 && i !== void 0), d = o(() => a.value ? r.completedWithoutFinal.value : !t.active && !t.finalStarted), f = N(t.active && !t.finalStarted), m = N(!1), h = o(() => a.value ? r.active.value : t.active && !t.finalStarted), g = o(() => !a.value || h.value || r.hasDetails?.value !== !1), _ = o(() => r?.detailsLoading?.value === !0), v = o(() => h.value || d.value ? !0 : a.value ? r.expanded.value : f.value), y = o(() => !t.continuation && !d.value && (!a.value || r.headerMessageIndex.value === i.value)), x = N(Date.now()), S;
|
|
6966
6967
|
W(h, (e) => {
|
|
6967
|
-
clearInterval(
|
|
6968
|
-
|
|
6968
|
+
clearInterval(S), S = void 0, e && (x.value = Date.now(), S = setInterval(() => {
|
|
6969
|
+
x.value = Date.now();
|
|
6969
6970
|
}, 1e3));
|
|
6970
|
-
}, { immediate: !0 }), O(() => clearInterval(
|
|
6971
|
-
let
|
|
6971
|
+
}, { immediate: !0 }), O(() => clearInterval(S));
|
|
6972
|
+
let w = o(() => {
|
|
6972
6973
|
if (!a.value) return "";
|
|
6973
6974
|
if (!h.value) return Yu(r.durationMs?.value);
|
|
6974
6975
|
let e = r.startedAt?.value;
|
|
6975
|
-
return e ? Yu(
|
|
6976
|
-
}),
|
|
6977
|
-
let e = { duration:
|
|
6976
|
+
return e ? Yu(x.value - Date.parse(e)) : "";
|
|
6977
|
+
}), T = o(() => {
|
|
6978
|
+
let e = { duration: w.value }, t = w.value !== "", i = h.value ? "working" : r?.status.value === "interrupted" ? "stopped" : r?.status.value === "failed" ? "failed" : "done";
|
|
6978
6979
|
if (i === "working") return n(t ? "chat.work.workingFor" : "chat.work.working", e);
|
|
6979
6980
|
if (!g.value) return n(`chat.work.${i}${t ? "For" : ""}`, e);
|
|
6980
|
-
let a =
|
|
6981
|
+
let a = v.value ? "HideDetails" : "ViewDetails";
|
|
6981
6982
|
return n(`chat.work.${i}${a}${t ? "For" : ""}`, e);
|
|
6982
6983
|
});
|
|
6983
6984
|
W(() => t.finalStarted, (e, t) => {
|
|
@@ -6985,7 +6986,7 @@ var Xu = {
|
|
|
6985
6986
|
}), W(() => t.active, (e) => {
|
|
6986
6987
|
!a.value && !m.value && (f.value = e && !t.finalStarted);
|
|
6987
6988
|
});
|
|
6988
|
-
function
|
|
6989
|
+
function E() {
|
|
6989
6990
|
if (!h.value) {
|
|
6990
6991
|
if (a.value) {
|
|
6991
6992
|
r.toggle();
|
|
@@ -6994,34 +6995,41 @@ var Xu = {
|
|
|
6994
6995
|
m.value = !0, f.value = !f.value;
|
|
6995
6996
|
}
|
|
6996
6997
|
}
|
|
6997
|
-
return (e, t) =>
|
|
6998
|
+
return (e, t) => y.value || v.value ? (k(), l("section", {
|
|
6998
6999
|
key: 0,
|
|
6999
|
-
class: C(["codex-chat-theme chat-work-group", { "chat-work-group--continuation": !
|
|
7000
|
-
}, [
|
|
7000
|
+
class: C(["codex-chat-theme chat-work-group", { "chat-work-group--continuation": !y.value }])
|
|
7001
|
+
}, [y.value && !g.value ? (k(), l("div", Xu, [u("span", Zu, B(T.value), 1)])) : y.value ? (k(), l("button", {
|
|
7001
7002
|
key: 1,
|
|
7002
7003
|
type: "button",
|
|
7003
7004
|
class: "chat-work-group__header",
|
|
7004
|
-
"aria-expanded":
|
|
7005
|
-
disabled: h.value,
|
|
7006
|
-
|
|
7005
|
+
"aria-expanded": v.value,
|
|
7006
|
+
disabled: h.value || _.value,
|
|
7007
|
+
"aria-busy": _.value || void 0,
|
|
7008
|
+
onClick: E
|
|
7007
7009
|
}, [u("span", {
|
|
7008
7010
|
class: C(["chat-work-group__title", { "codex-text-shimmer": h.value }]),
|
|
7009
|
-
"data-label":
|
|
7010
|
-
}, B(
|
|
7011
|
+
"data-label": T.value
|
|
7012
|
+
}, B(T.value), 11, $u), _.value ? (k(), s(H(Oe), {
|
|
7011
7013
|
key: 0,
|
|
7014
|
+
class: "chat-work-group__spinner",
|
|
7015
|
+
size: 15,
|
|
7016
|
+
role: "status",
|
|
7017
|
+
"aria-label": H(n)("chat.work.loadingDetails")
|
|
7018
|
+
}, null, 8, ["aria-label"])) : h.value ? c("", !0) : (k(), s(R(v.value ? H(X) : H(me)), {
|
|
7019
|
+
key: 1,
|
|
7012
7020
|
size: 15
|
|
7013
|
-
}))], 8, Qu)) : c("", !0),
|
|
7021
|
+
}))], 8, Qu)) : c("", !0), y.value && g.value ? (k(), s(xc, {
|
|
7014
7022
|
key: 2,
|
|
7015
|
-
open:
|
|
7023
|
+
open: v.value
|
|
7016
7024
|
}, {
|
|
7017
|
-
default: G(() => [u("div", ed, [H(r)?.
|
|
7025
|
+
default: G(() => [u("div", ed, [H(r)?.detailsError?.value ? (k(), l("div", td, [p(B(H(r).detailsError.value) + " ", 1), u("button", {
|
|
7018
7026
|
type: "button",
|
|
7019
7027
|
onClick: t[0] ||= (e) => H(r).reloadDetails?.()
|
|
7020
|
-
}, B(H(n)("chat.actions.retry")), 1)])) : I(e.$slots, "default", {}, void 0, !0,
|
|
7028
|
+
}, B(H(n)("chat.actions.retry")), 1)])) : I(e.$slots, "default", {}, void 0, !0, 1)])]),
|
|
7021
7029
|
_: 3
|
|
7022
|
-
}, 8, ["open"])) :
|
|
7030
|
+
}, 8, ["open"])) : v.value && g.value ? (k(), l("div", nd, [I(e.$slots, "default", {}, void 0, !0)])) : c("", !0)], 2)) : c("", !0);
|
|
7023
7031
|
}
|
|
7024
|
-
}), [["__scopeId", "data-v-
|
|
7032
|
+
}), [["__scopeId", "data-v-952c0b97"]]), id = ["innerHTML"], ad = ["innerHTML"], od = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
7025
7033
|
__name: "ChatMessageBlock",
|
|
7026
7034
|
props: {
|
|
7027
7035
|
block: {},
|
|
@@ -7089,12 +7097,12 @@ var Xu = {
|
|
|
7089
7097
|
class: "codex-chat-theme chat-message-block chat-message-block--text codex-markdown",
|
|
7090
7098
|
innerHTML: p.value,
|
|
7091
7099
|
onClick: g
|
|
7092
|
-
}, null, 8,
|
|
7100
|
+
}, null, 8, id)], !0, 1) : e.block.type === "reasoning" ? (k(), l("div", {
|
|
7093
7101
|
key: 2,
|
|
7094
7102
|
class: "codex-chat-theme chat-message-block chat-message-block--reasoning codex-markdown",
|
|
7095
7103
|
innerHTML: p.value,
|
|
7096
7104
|
onClick: g
|
|
7097
|
-
}, null, 8,
|
|
7105
|
+
}, null, 8, ad)) : e.block.type === "html" ? (k(), s(Yl, {
|
|
7098
7106
|
key: 3,
|
|
7099
7107
|
source: e.block.source,
|
|
7100
7108
|
title: e.block.title,
|
|
@@ -7162,7 +7170,7 @@ var Xu = {
|
|
|
7162
7170
|
"answered-client-request-ids",
|
|
7163
7171
|
"show-tool-details",
|
|
7164
7172
|
"tool-calls"
|
|
7165
|
-
])], !0, 10) : e.block.type === "work-group" ? (k(), s(
|
|
7173
|
+
])], !0, 10) : e.block.type === "work-group" ? (k(), s(rd, {
|
|
7166
7174
|
key: 11,
|
|
7167
7175
|
active: e.block.active,
|
|
7168
7176
|
continuation: e.block.continuation,
|
|
@@ -7224,15 +7232,15 @@ var Xu = {
|
|
|
7224
7232
|
}, null, 8, ["disabled", "prompts"])) : c("", !0);
|
|
7225
7233
|
};
|
|
7226
7234
|
}
|
|
7227
|
-
}), [["__scopeId", "data-v-e5561e04"]]),
|
|
7228
|
-
function
|
|
7235
|
+
}), [["__scopeId", "data-v-e5561e04"]]), sd = 1440 * 60 * 1e3;
|
|
7236
|
+
function cd(e, t = /* @__PURE__ */ new Date()) {
|
|
7229
7237
|
let n = new Date(e);
|
|
7230
7238
|
if (Number.isNaN(n.getTime())) return "";
|
|
7231
7239
|
let r = {
|
|
7232
7240
|
hour: "numeric",
|
|
7233
7241
|
minute: "2-digit"
|
|
7234
7242
|
};
|
|
7235
|
-
return
|
|
7243
|
+
return ud(n, t) ? new Intl.DateTimeFormat(void 0, r).format(n) : n.getTime() < t.getTime() && t.getTime() - n.getTime() < 7 * sd ? new Intl.DateTimeFormat(void 0, {
|
|
7236
7244
|
weekday: "short",
|
|
7237
7245
|
...r
|
|
7238
7246
|
}).format(n) : new Intl.DateTimeFormat(void 0, {
|
|
@@ -7240,19 +7248,19 @@ function ld(e, t = /* @__PURE__ */ new Date()) {
|
|
|
7240
7248
|
timeStyle: "short"
|
|
7241
7249
|
}).format(n);
|
|
7242
7250
|
}
|
|
7243
|
-
function
|
|
7251
|
+
function ld(e) {
|
|
7244
7252
|
let t = new Date(e);
|
|
7245
7253
|
return Number.isNaN(t.getTime()) ? "" : new Intl.DateTimeFormat(void 0, {
|
|
7246
7254
|
dateStyle: "full",
|
|
7247
7255
|
timeStyle: "short"
|
|
7248
7256
|
}).format(t);
|
|
7249
7257
|
}
|
|
7250
|
-
function
|
|
7258
|
+
function ud(e, t) {
|
|
7251
7259
|
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
7252
7260
|
}
|
|
7253
7261
|
//#endregion
|
|
7254
7262
|
//#region src/chat/ChatMessageActions.vue?vue&type=script&setup=true&lang.ts
|
|
7255
|
-
var
|
|
7263
|
+
var dd = ["aria-busy", "aria-label"], fd = ["title"], pd = ["title"], md = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
7256
7264
|
__name: "ChatMessageActions",
|
|
7257
7265
|
props: {
|
|
7258
7266
|
canDelete: {
|
|
@@ -7286,7 +7294,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7286
7294
|
"retry"
|
|
7287
7295
|
],
|
|
7288
7296
|
setup(e, { emit: t }) {
|
|
7289
|
-
let n = e, r = t, i = $n(), a = o(() => n.presentation?.copy !== !1), u = o(() => n.presentation?.delete !== !1), d = o(() => n.presentation?.edit !== !1), f = o(() => n.presentation?.fork !== !1), p = o(() => n.presentation?.quote !== !1), h = o(() => n.presentation?.retry !== !1), g = o(() => n.message.createdAt ?
|
|
7297
|
+
let n = e, r = t, i = $n(), a = o(() => n.presentation?.copy !== !1), u = o(() => n.presentation?.delete !== !1), d = o(() => n.presentation?.edit !== !1), f = o(() => n.presentation?.fork !== !1), p = o(() => n.presentation?.quote !== !1), h = o(() => n.presentation?.retry !== !1), g = o(() => n.message.createdAt ? cd(n.message.createdAt) : ""), _ = o(() => n.message.createdAt ? ld(n.message.createdAt) : void 0);
|
|
7290
7298
|
async function v() {
|
|
7291
7299
|
await n.copyAction?.(), r("copy");
|
|
7292
7300
|
}
|
|
@@ -7299,7 +7307,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7299
7307
|
key: 0,
|
|
7300
7308
|
class: "chat-message-actions__sent-at",
|
|
7301
7309
|
title: _.value
|
|
7302
|
-
}, B(g.value), 9,
|
|
7310
|
+
}, B(g.value), 9, fd)) : c("", !0),
|
|
7303
7311
|
a.value ? (k(), s(yc, {
|
|
7304
7312
|
key: 1,
|
|
7305
7313
|
action: v,
|
|
@@ -7364,10 +7372,10 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7364
7372
|
key: 7,
|
|
7365
7373
|
class: "chat-message-actions__sent-at",
|
|
7366
7374
|
title: _.value
|
|
7367
|
-
}, B(g.value), 9,
|
|
7368
|
-
], 10,
|
|
7375
|
+
}, B(g.value), 9, pd)) : c("", !0)
|
|
7376
|
+
], 10, dd));
|
|
7369
7377
|
}
|
|
7370
|
-
}), [["__scopeId", "data-v-704b28cf"]]),
|
|
7378
|
+
}), [["__scopeId", "data-v-704b28cf"]]), hd = ["data-label"], gd = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
7371
7379
|
__name: "ChatCompactionMessage",
|
|
7372
7380
|
props: {
|
|
7373
7381
|
completedTitle: {},
|
|
@@ -7379,9 +7387,9 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7379
7387
|
return (e, t) => (k(), l("div", { class: C(["codex-chat-theme chat-message chat-message--compaction", { "chat-message--compaction-running": n.value }]) }, [t[0] ||= u("div", { class: "chat-message__compaction-line" }, null, -1), u("span", {
|
|
7380
7388
|
class: "chat-message__compaction-title",
|
|
7381
7389
|
"data-label": r.value
|
|
7382
|
-
}, [u("span", { class: C(["chat-message__compaction-label", { "codex-text-shimmer": n.value }]) }, B(r.value), 3)], 8,
|
|
7390
|
+
}, [u("span", { class: C(["chat-message__compaction-label", { "codex-text-shimmer": n.value }]) }, B(r.value), 3)], 8, hd)], 2));
|
|
7383
7391
|
}
|
|
7384
|
-
}), [["__scopeId", "data-v-49449489"]]),
|
|
7392
|
+
}), [["__scopeId", "data-v-49449489"]]), _d = { class: "codex-chat-theme chat-message__edit-card" }, vd = ["aria-label", "onKeydown"], yd = { class: "chat-message__edit-actions" }, bd = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
7385
7393
|
__name: "ChatMessageEditor",
|
|
7386
7394
|
props: {
|
|
7387
7395
|
cancelLabel: {},
|
|
@@ -7423,7 +7431,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7423
7431
|
let e = i.value.trim();
|
|
7424
7432
|
e && (a.value ? r("save", e, { content: se(a.value.readContent()) }) : r("save", e));
|
|
7425
7433
|
}
|
|
7426
|
-
return (t, n) => (k(), l("div",
|
|
7434
|
+
return (t, n) => (k(), l("div", _d, [e.promptContent?.some((e) => e.type === "mention") ? (k(), s(_i, {
|
|
7427
7435
|
key: 0,
|
|
7428
7436
|
ref_key: "richInput",
|
|
7429
7437
|
ref: a,
|
|
@@ -7450,7 +7458,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7450
7458
|
K(q(m, ["meta", "prevent"]), ["enter"]),
|
|
7451
7459
|
K(q(m, ["ctrl", "prevent"]), ["enter"])
|
|
7452
7460
|
]
|
|
7453
|
-
}, null, 40,
|
|
7461
|
+
}, null, 40, vd)), [[U, i.value]]), u("div", yd, [u("button", {
|
|
7454
7462
|
type: "button",
|
|
7455
7463
|
class: "chat-message__edit-button",
|
|
7456
7464
|
onClick: d
|
|
@@ -7460,23 +7468,23 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7460
7468
|
onClick: m
|
|
7461
7469
|
}, B(e.saveLabel), 1)])]));
|
|
7462
7470
|
}
|
|
7463
|
-
}), [["__scopeId", "data-v-50787bcd"]]),
|
|
7471
|
+
}), [["__scopeId", "data-v-50787bcd"]]), xd = { class: "chat-message__body" }, Sd = {
|
|
7464
7472
|
key: 0,
|
|
7465
7473
|
class: "chat-message--steer chat-message--steer-above"
|
|
7466
|
-
},
|
|
7474
|
+
}, Cd = {
|
|
7467
7475
|
key: 1,
|
|
7468
7476
|
class: "chat-message__attachments",
|
|
7469
7477
|
"aria-label": "Message attachments"
|
|
7470
|
-
},
|
|
7478
|
+
}, wd = {
|
|
7471
7479
|
key: 2,
|
|
7472
7480
|
class: "chat-message__stack"
|
|
7473
|
-
},
|
|
7481
|
+
}, Td = {
|
|
7474
7482
|
key: 0,
|
|
7475
7483
|
class: "chat-message__empty-response"
|
|
7476
|
-
},
|
|
7484
|
+
}, Ed = ["data-label"], Dd = {
|
|
7477
7485
|
key: 4,
|
|
7478
7486
|
class: "chat-message--steer chat-message--steer-below"
|
|
7479
|
-
},
|
|
7487
|
+
}, Od = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
7480
7488
|
__name: "CodexMessage",
|
|
7481
7489
|
props: {
|
|
7482
7490
|
activityState: {},
|
|
@@ -7601,7 +7609,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7601
7609
|
function me(e) {
|
|
7602
7610
|
return e.type === "text" ? e.content.trim().length > 0 : e.type === "attachment" || e.type === "media" || e.type === "mermaid" || e.type === "html" || e.type === "reasoning" || e.type === "tool" || e.type === "tool-group" || e.type === "visualization" || e.type === "work-group";
|
|
7603
7611
|
}
|
|
7604
|
-
return (n, r) => h.value.type === "compaction" ? (k(), s(
|
|
7612
|
+
return (n, r) => h.value.type === "compaction" ? (k(), s(gd, {
|
|
7605
7613
|
key: 0,
|
|
7606
7614
|
class: "codex-chat-theme",
|
|
7607
7615
|
"completed-title": H(f)("chat.compaction.completed"),
|
|
@@ -7617,17 +7625,17 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7617
7625
|
"chat-message--actions-visible": e.actionsAlwaysVisible && !U.value,
|
|
7618
7626
|
"chat-message--editing": V.value
|
|
7619
7627
|
}]])
|
|
7620
|
-
}, [u("div",
|
|
7621
|
-
n.$slots.header ? (k(), l("div",
|
|
7628
|
+
}, [u("div", xd, [
|
|
7629
|
+
n.$slots.header ? (k(), l("div", Sd, [I(n.$slots, "header", {
|
|
7622
7630
|
index: e.index,
|
|
7623
7631
|
message: h.value
|
|
7624
7632
|
}, void 0, !0)])) : c("", !0),
|
|
7625
|
-
L.value.length > 0 ? (k(), l("div",
|
|
7633
|
+
L.value.length > 0 ? (k(), l("div", Cd, [(k(!0), l(t, null, F(L.value, ({ block: t, blockIndex: r }) => I(n.$slots, "block", {
|
|
7626
7634
|
block: t,
|
|
7627
7635
|
blockIndex: r,
|
|
7628
7636
|
index: e.index,
|
|
7629
7637
|
message: h.value
|
|
7630
|
-
}, () => [m(
|
|
7638
|
+
}, () => [m(od, {
|
|
7631
7639
|
block: t,
|
|
7632
7640
|
"open-image": X
|
|
7633
7641
|
}, d({ _: 2 }, [n.$slots.attachment ? {
|
|
@@ -7638,7 +7646,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7638
7646
|
}), void 0, !0)]),
|
|
7639
7647
|
key: "0"
|
|
7640
7648
|
} : void 0]), 1032, ["block"])], !0, `attachment-${r}`)), 128))])) : c("", !0),
|
|
7641
|
-
V.value || R.value.length > 0 || ae.value || oe.value || se.value ? (k(), l("div",
|
|
7649
|
+
V.value || R.value.length > 0 || ae.value || oe.value || se.value ? (k(), l("div", wd, [V.value ? (k(), s(bd, {
|
|
7642
7650
|
key: 0,
|
|
7643
7651
|
"cancel-label": H(f)("chat.actions.cancel"),
|
|
7644
7652
|
content: z.value,
|
|
@@ -7654,7 +7662,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7654
7662
|
"input-label",
|
|
7655
7663
|
"save-label"
|
|
7656
7664
|
])) : (k(), l(t, { key: 1 }, [
|
|
7657
|
-
(k(!0), l(t, null, F(R.value, ({ block: a, blockIndex: o }) => (k(), l(t, { key: a.type === "tool" ? a.toolCall.id : `${a.type}-${o}` }, [a.type === "work-group" ? (k(), s(
|
|
7665
|
+
(k(!0), l(t, null, F(R.value, ({ block: a, blockIndex: o }) => (k(), l(t, { key: a.type === "tool" ? a.toolCall.id : `${a.type}-${o}` }, [a.type === "work-group" ? (k(), s(od, {
|
|
7658
7666
|
key: 0,
|
|
7659
7667
|
"answered-client-request-ids": e.answeredClientRequestIds,
|
|
7660
7668
|
block: a,
|
|
@@ -7707,7 +7715,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7707
7715
|
blockIndex: o,
|
|
7708
7716
|
index: e.index,
|
|
7709
7717
|
message: h.value
|
|
7710
|
-
}, () => [m(
|
|
7718
|
+
}, () => [m(od, {
|
|
7711
7719
|
"answered-client-request-ids": e.answeredClientRequestIds,
|
|
7712
7720
|
block: a,
|
|
7713
7721
|
"follow-ups-disabled": e.followUpsDisabled,
|
|
@@ -7763,14 +7771,14 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7763
7771
|
"show-tool-details",
|
|
7764
7772
|
"skills"
|
|
7765
7773
|
])], !0, 1)], 64))), 128)),
|
|
7766
|
-
ae.value ? (k(), l("span",
|
|
7774
|
+
ae.value ? (k(), l("span", Td, B(H(f)("chat.message.emptyResponse")), 1)) : c("", !0),
|
|
7767
7775
|
oe.value ? I(n.$slots, "thinking", {
|
|
7768
7776
|
index: e.index,
|
|
7769
7777
|
message: h.value
|
|
7770
7778
|
}, () => [u("span", {
|
|
7771
7779
|
class: "chat-message__thinking codex-text-shimmer",
|
|
7772
7780
|
"data-label": p.value
|
|
7773
|
-
}, B(p.value), 9,
|
|
7781
|
+
}, B(p.value), 9, Ed)], !0, 1) : se.value ? I(n.$slots, "status", {
|
|
7774
7782
|
index: e.index,
|
|
7775
7783
|
message: h.value,
|
|
7776
7784
|
status: "streaming"
|
|
@@ -7783,7 +7791,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7783
7791
|
disabled: U.value,
|
|
7784
7792
|
index: e.index,
|
|
7785
7793
|
message: h.value
|
|
7786
|
-
}, () => [m(
|
|
7794
|
+
}, () => [m(md, {
|
|
7787
7795
|
class: C(["chat-message__actions", { "chat-message__actions--reserved": U.value }]),
|
|
7788
7796
|
"aria-hidden": U.value ? "true" : void 0,
|
|
7789
7797
|
inert: U.value ? "" : void 0,
|
|
@@ -7815,10 +7823,10 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7815
7823
|
"mutation-disabled",
|
|
7816
7824
|
"presentation"
|
|
7817
7825
|
])], !0, 3) : c("", !0),
|
|
7818
|
-
h.value.type === "steer" ? (k(), l("div",
|
|
7826
|
+
h.value.type === "steer" ? (k(), l("div", Dd, " Steered conversation ")) : c("", !0)
|
|
7819
7827
|
])], 2));
|
|
7820
7828
|
}
|
|
7821
|
-
}), [["__scopeId", "data-v-12f1136c"]]),
|
|
7829
|
+
}), [["__scopeId", "data-v-12f1136c"]]), kd = { class: "codex-message-turn" }, Ad = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
7822
7830
|
__name: "CodexMessageTurn",
|
|
7823
7831
|
props: {
|
|
7824
7832
|
active: { type: Boolean },
|
|
@@ -7839,7 +7847,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7839
7847
|
let n = e, r = t, i = o(() => n.entries.map((e) => ({
|
|
7840
7848
|
entry: e,
|
|
7841
7849
|
message: Ca(e.message)
|
|
7842
|
-
}))), a = o(() => n.turnId), s = o(() => i.value.some(({ message: e }) => e.role === "assistant" && eo(e))), c = o(() => [...i.value].reverse().find(({ message: e }) => e.role === "assistant" && e.streaming === !0)?.entry.index), u = o(() => n.active === !1 ? void 0 : [...i.value].reverse().find(({ message: e }) => e.role === "assistant" && e.streaming === !0 && (e.parts?.length ?? 0) > 0)?.entry.index), d = o(() => i.value.some(({ entry: e, message: t }) => t.role === "assistant" && (u.value === void 0 || e.index >= u.value) && (t.parts?.some((e) => e.type === "text" && e.phase === "final_answer" && e.content.trim().length > 0) ?? !1))), f = o(() => !d.value && (n.active ?? i.value.some(({ message: e }) => e.role === "assistant" && e.streaming === !0))), p = o(() => n.status), m = o(() => n.startedAt), h = o(() => n.durationMs), g = o(() => !f.value && !d.value && (p.value === "interrupted" || p.value === "failed")), _ = o(() => n.itemsView === void 0 && s.value && !f.value && !d.value && (p.value === void 0 || p.value === "completed")), v = o(() => i.value.find(({ message: e }) => e.role === "assistant" && (n.itemsView !== void 0 ||
|
|
7850
|
+
}))), a = o(() => n.turnId), s = o(() => i.value.some(({ message: e }) => e.role === "assistant" && eo(e))), c = o(() => [...i.value].reverse().find(({ message: e }) => e.role === "assistant" && e.streaming === !0)?.entry.index), u = o(() => n.active === !1 ? void 0 : [...i.value].reverse().find(({ message: e }) => e.role === "assistant" && e.streaming === !0 && (e.parts?.length ?? 0) > 0)?.entry.index), d = o(() => i.value.some(({ entry: e, message: t }) => t.role === "assistant" && (u.value === void 0 || e.index >= u.value) && (t.parts?.some((e) => e.type === "text" && e.phase === "final_answer" && e.content.trim().length > 0) ?? !1))), f = o(() => !d.value && (n.active ?? i.value.some(({ message: e }) => e.role === "assistant" && e.streaming === !0))), p = o(() => n.status), m = o(() => n.startedAt), h = o(() => n.durationMs), g = o(() => !f.value && !d.value && (p.value === "interrupted" || p.value === "failed")), _ = o(() => n.itemsView === void 0 && s.value && !f.value && !d.value && (p.value === void 0 || p.value === "completed")), v = o(() => i.value.find(({ message: e }) => e.role === "assistant" && (n.itemsView !== void 0 || T(e)))?.entry.index), y = o(() => n.itemsView === "summary" || i.value.some(({ message: e }) => e.type === "steer" && Va(e).length > 0 || e.role === "assistant" && Va(e).some((e) => (n.showToolBlocks || e.type !== "tool" && e.type !== "tool-group") && to(e, n.answeredClientRequestIds)))), x = o(() => !!(a.value && v.value !== void 0)), S = N(f.value && !d.value || g.value), C = N(!1), w = o(() => !f.value && (n.detailsLoading || S.value && n.itemsView === "summary" && !n.detailsError));
|
|
7843
7851
|
W(d, (e, t) => {
|
|
7844
7852
|
e && !t && !C.value && (S.value = !1);
|
|
7845
7853
|
}), W([f, g], ([e, t]) => {
|
|
@@ -7848,7 +7856,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7848
7856
|
active: f,
|
|
7849
7857
|
completedWithoutFinal: _,
|
|
7850
7858
|
enabled: x,
|
|
7851
|
-
expanded: S,
|
|
7859
|
+
expanded: o(() => S.value && !w.value && (f.value || n.itemsView !== "summary" || !!n.detailsError)),
|
|
7852
7860
|
finalStarted: d,
|
|
7853
7861
|
headerMessageIndex: v,
|
|
7854
7862
|
latestStreamingAssistantIndex: c,
|
|
@@ -7857,7 +7865,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7857
7865
|
durationMs: h,
|
|
7858
7866
|
hasDetails: y,
|
|
7859
7867
|
itemsView: o(() => n.itemsView),
|
|
7860
|
-
detailsLoading:
|
|
7868
|
+
detailsLoading: w,
|
|
7861
7869
|
detailsError: o(() => n.detailsError),
|
|
7862
7870
|
reloadDetails: () => {
|
|
7863
7871
|
n.turnId && r("loadTurnHistory", n.turnId);
|
|
@@ -7868,20 +7876,21 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7868
7876
|
C.value = !0, S.value = !S.value;
|
|
7869
7877
|
}
|
|
7870
7878
|
}), W([
|
|
7879
|
+
f,
|
|
7871
7880
|
S,
|
|
7872
7881
|
() => n.itemsView,
|
|
7873
7882
|
() => n.detailsLoading,
|
|
7874
7883
|
() => n.detailsError
|
|
7875
7884
|
], () => {
|
|
7876
|
-
S.value && n.itemsView === "summary" && !n.detailsLoading && !n.detailsError && n.turnId && r("loadTurnHistory", n.turnId);
|
|
7885
|
+
!f.value && S.value && n.itemsView === "summary" && !n.detailsLoading && !n.detailsError && n.turnId && r("loadTurnHistory", n.turnId);
|
|
7877
7886
|
}, { immediate: !0 });
|
|
7878
|
-
function
|
|
7887
|
+
function T(e) {
|
|
7879
7888
|
let t = Va(e).filter((e) => n.showToolBlocks || e.type !== "tool" && e.type !== "tool-group");
|
|
7880
7889
|
return t.length === 0 ? !1 : s.value ? t.some((e) => to(e, n.answeredClientRequestIds)) : f.value && t.every((e) => e.type === "tool" || e.type === "tool-group");
|
|
7881
7890
|
}
|
|
7882
|
-
return (e, t) => (k(), l("div",
|
|
7891
|
+
return (e, t) => (k(), l("div", kd, [I(e.$slots, "default", {}, void 0, !0)]));
|
|
7883
7892
|
}
|
|
7884
|
-
}), [["__scopeId", "data-v-
|
|
7893
|
+
}), [["__scopeId", "data-v-964be11a"]]), jd = ["aria-label", "title"], Md = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
7885
7894
|
__name: "CodexScrollToBottom",
|
|
7886
7895
|
props: { label: { default: "Scroll to bottom" } },
|
|
7887
7896
|
emits: ["click"],
|
|
@@ -7897,9 +7906,9 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7897
7906
|
"aria-hidden": "true",
|
|
7898
7907
|
size: 24,
|
|
7899
7908
|
"stroke-width": 1.75
|
|
7900
|
-
})], 8,
|
|
7909
|
+
})], 8, jd));
|
|
7901
7910
|
}
|
|
7902
|
-
}), [["__scopeId", "data-v-5a75ce89"]]),
|
|
7911
|
+
}), [["__scopeId", "data-v-5a75ce89"]]), Nd = ["aria-label"], Pd = { class: "codex-message-list__content" }, Fd = { class: "codex-message-list__empty" }, Id = ["data-codex-message-index"], Ld = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
7903
7912
|
__name: "CodexMessageList",
|
|
7904
7913
|
props: {
|
|
7905
7914
|
actionsDisabled: { type: Boolean },
|
|
@@ -8293,7 +8302,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
8293
8302
|
onClickCapture: he,
|
|
8294
8303
|
onPointerdown: ge,
|
|
8295
8304
|
onScroll: pe
|
|
8296
|
-
}, [u("div",
|
|
8305
|
+
}, [u("div", Pd, [L.value.length === 0 ? I(n.$slots, "empty", {}, () => [u("p", Fd, B(e.emptyLabel), 1)], !0, 0) : (k(!0), l(t, { key: 1 }, F(z.value, (i) => (k(), s(Ad, {
|
|
8297
8306
|
key: i.key,
|
|
8298
8307
|
entries: i.entries,
|
|
8299
8308
|
"answered-client-request-ids": e.answeredClientRequestIds,
|
|
@@ -8315,7 +8324,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
8315
8324
|
}, [n.$slots.message ? I(n.$slots, "message", {
|
|
8316
8325
|
message: H(Ca)(J(t.message, i.turnId)),
|
|
8317
8326
|
index: t.index
|
|
8318
|
-
}, void 0, !0, 0) : (k(), s(
|
|
8327
|
+
}, void 0, !0, 0) : (k(), s(Od, {
|
|
8319
8328
|
key: 1,
|
|
8320
8329
|
"activity-state": t.activityState,
|
|
8321
8330
|
"actions-disabled": e.actionsDisabled,
|
|
@@ -8415,7 +8424,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
8415
8424
|
"show-tool-details",
|
|
8416
8425
|
"skills",
|
|
8417
8426
|
"thread-actions-disabled"
|
|
8418
|
-
]))], 8,
|
|
8427
|
+
]))], 8, Id))), 128))]),
|
|
8419
8428
|
_: 2
|
|
8420
8429
|
}, 1032, [
|
|
8421
8430
|
"entries",
|
|
@@ -8429,20 +8438,20 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
8429
8438
|
"items-view",
|
|
8430
8439
|
"details-loading",
|
|
8431
8440
|
"details-error"
|
|
8432
|
-
]))), 128))])], 544), ce.value ? (k(), s(
|
|
8441
|
+
]))), 128))])], 544), ce.value ? (k(), s(Md, {
|
|
8433
8442
|
key: 0,
|
|
8434
8443
|
class: "codex-message-list__scroll-to-bottom",
|
|
8435
8444
|
label: e.scrollToBottomLabel,
|
|
8436
8445
|
onClick: ze
|
|
8437
|
-
}, null, 8, ["label"])) : c("", !0)], 8,
|
|
8446
|
+
}, null, 8, ["label"])) : c("", !0)], 8, Nd));
|
|
8438
8447
|
}
|
|
8439
|
-
}), [["__scopeId", "data-v-65a073f4"]]),
|
|
8448
|
+
}), [["__scopeId", "data-v-65a073f4"]]), Rd = {
|
|
8440
8449
|
key: 0,
|
|
8441
8450
|
class: "codex-workbench-layout__body codex-workbench-layout__body--scroll"
|
|
8442
|
-
},
|
|
8451
|
+
}, zd = { class: "codex-workbench-layout__body-content" }, Bd = {
|
|
8443
8452
|
key: 1,
|
|
8444
8453
|
class: "codex-workbench-layout__body codex-workbench-layout__body--child"
|
|
8445
|
-
},
|
|
8454
|
+
}, Vd = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
8446
8455
|
__name: "CodexWorkbenchLayout",
|
|
8447
8456
|
props: { scrollMode: { default: "body" } },
|
|
8448
8457
|
setup(e) {
|
|
@@ -8468,7 +8477,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
8468
8477
|
class: C(["codex-chat-theme codex-workbench-layout", `codex-workbench-layout--${e.scrollMode}`]),
|
|
8469
8478
|
style: T(a.value)
|
|
8470
8479
|
}, [
|
|
8471
|
-
e.scrollMode === "body" ? (k(), l("div",
|
|
8480
|
+
e.scrollMode === "body" ? (k(), l("div", Rd, [u("div", zd, [I(r.$slots, "default", {}, void 0, !0)])])) : (k(), l("div", Bd, [I(r.$slots, "default", {}, void 0, !0)])),
|
|
8472
8481
|
r.$slots.header ? (k(), l("div", {
|
|
8473
8482
|
key: 2,
|
|
8474
8483
|
ref_key: "headerEl",
|
|
@@ -8483,36 +8492,36 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
8483
8492
|
}, [I(r.$slots, "footer", {}, void 0, !0)], 512)) : c("", !0)
|
|
8484
8493
|
], 6));
|
|
8485
8494
|
}
|
|
8486
|
-
}), [["__scopeId", "data-v-661ca7b5"]]),
|
|
8495
|
+
}), [["__scopeId", "data-v-661ca7b5"]]), Hd = [
|
|
8487
8496
|
"aria-busy",
|
|
8488
8497
|
"aria-label",
|
|
8489
8498
|
"data-codex-generating"
|
|
8490
|
-
],
|
|
8499
|
+
], Ud = {
|
|
8491
8500
|
key: 1,
|
|
8492
8501
|
class: "codex-conversation-pane__hero"
|
|
8493
|
-
},
|
|
8502
|
+
}, Wd = { class: "codex-conversation-pane__hero-copy" }, Gd = { key: 0 }, Kd = {
|
|
8494
8503
|
key: 0,
|
|
8495
8504
|
class: "codex-conversation-pane__error",
|
|
8496
8505
|
role: "alert"
|
|
8497
|
-
},
|
|
8506
|
+
}, qd = {
|
|
8498
8507
|
key: 1,
|
|
8499
8508
|
class: "codex-conversation-pane__approvals"
|
|
8500
|
-
},
|
|
8509
|
+
}, Jd = {
|
|
8501
8510
|
key: 0,
|
|
8502
8511
|
class: "codex-conversation-pane__pending-question"
|
|
8503
|
-
},
|
|
8512
|
+
}, Yd = ["aria-label"], Xd = {
|
|
8504
8513
|
key: 0,
|
|
8505
8514
|
class: "codex-conversation-pane__attachments",
|
|
8506
8515
|
"aria-label": "Prompt attachments"
|
|
8507
|
-
},
|
|
8516
|
+
}, Zd = ["src", "alt"], Qd = {
|
|
8508
8517
|
key: 1,
|
|
8509
8518
|
class: "codex-conversation-pane__attachment-file",
|
|
8510
8519
|
"aria-hidden": "true"
|
|
8511
|
-
},
|
|
8520
|
+
}, $d = ["title"], ef = { class: "codex-conversation-pane__attachment-actions" }, tf = [
|
|
8512
8521
|
"aria-label",
|
|
8513
8522
|
"disabled",
|
|
8514
8523
|
"onClick"
|
|
8515
|
-
],
|
|
8524
|
+
], nf = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
8516
8525
|
__name: "CodexConversationPane",
|
|
8517
8526
|
props: {
|
|
8518
8527
|
ariaLabel: { default: "Conversation" },
|
|
@@ -9183,7 +9192,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9183
9192
|
}, [_t.value ? (k(), s(Ws, {
|
|
9184
9193
|
key: 0,
|
|
9185
9194
|
class: "codex-conversation-pane__history-loader"
|
|
9186
|
-
})) : (k(), s(
|
|
9195
|
+
})) : (k(), s(Vd, {
|
|
9187
9196
|
key: 1,
|
|
9188
9197
|
class: "codex-conversation-pane__layout",
|
|
9189
9198
|
"scroll-mode": "child"
|
|
@@ -9192,7 +9201,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9192
9201
|
ref_key: "footerElement",
|
|
9193
9202
|
ref: y,
|
|
9194
9203
|
class: "codex-conversation-pane__footer"
|
|
9195
|
-
}, [Fe.value ? (k(), l("p",
|
|
9204
|
+
}, [Fe.value ? (k(), l("p", Kd, B(Fe.value), 1)) : c("", !0), Ee.value ? (k(), l("div", qd, [I(n.$slots, "approval", { approval: Ee.value }, () => [(k(), s(ga, {
|
|
9196
9205
|
key: Ee.value.id,
|
|
9197
9206
|
approval: Ee.value,
|
|
9198
9207
|
disabled: Pe.value,
|
|
@@ -9298,7 +9307,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9298
9307
|
"onUpdate:reasoningEffort": _n,
|
|
9299
9308
|
"onUpdate:serviceTier": vn
|
|
9300
9309
|
}, d({
|
|
9301
|
-
"before-meta": G(() => [ye.value.length > 0 ? (k(), l("span",
|
|
9310
|
+
"before-meta": G(() => [ye.value.length > 0 ? (k(), l("span", Jd, [u("button", {
|
|
9302
9311
|
class: "codex-conversation-pane__pending-question-cancel",
|
|
9303
9312
|
type: "button",
|
|
9304
9313
|
"aria-label": "Cancel pending question",
|
|
@@ -9314,8 +9323,8 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9314
9323
|
type: "button",
|
|
9315
9324
|
"aria-label": ye.value.length === 1 ? "Pending question" : `${ye.value.length} pending questions`,
|
|
9316
9325
|
onClick: r[3] ||= (e) => h.value = ye.value[0].id
|
|
9317
|
-
}, B(ye.value.length === 1 ? "Pending question" : `${ye.value.length} pending questions`), 9,
|
|
9318
|
-
before: G(() => [q.value.length > 0 ? (k(), l("div",
|
|
9326
|
+
}, B(ye.value.length === 1 ? "Pending question" : `${ye.value.length} pending questions`), 9, Yd)])) : c("", !0)]),
|
|
9327
|
+
before: G(() => [q.value.length > 0 ? (k(), l("div", Xd, [(k(!0), l(t, null, F(q.value, (e, t) => (k(), l("div", {
|
|
9319
9328
|
key: e.id,
|
|
9320
9329
|
class: "codex-conversation-pane__attachment"
|
|
9321
9330
|
}, [
|
|
@@ -9324,12 +9333,12 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9324
9333
|
class: "codex-conversation-pane__attachment-preview",
|
|
9325
9334
|
src: e.previewUrl,
|
|
9326
9335
|
alt: e.name
|
|
9327
|
-
}, null, 8,
|
|
9336
|
+
}, null, 8, Zd)) : (k(), l("span", Qd, "📎")),
|
|
9328
9337
|
u("span", {
|
|
9329
9338
|
class: "codex-conversation-pane__attachment-name",
|
|
9330
9339
|
title: e.name
|
|
9331
|
-
}, B(e.name), 9,
|
|
9332
|
-
u("span",
|
|
9340
|
+
}, B(e.name), 9, $d),
|
|
9341
|
+
u("span", ef, [I(n.$slots, "composer-attachment-actions", {
|
|
9333
9342
|
attachments: q.value,
|
|
9334
9343
|
index: t,
|
|
9335
9344
|
disabled: Pe.value
|
|
@@ -9339,7 +9348,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9339
9348
|
"aria-label": `Remove ${e.name}`,
|
|
9340
9349
|
disabled: Pe.value,
|
|
9341
9350
|
onClick: (t) => Kt(e.id)
|
|
9342
|
-
}, [m(H(tt), { "aria-hidden": "true" })], 8,
|
|
9351
|
+
}, [m(H(tt), { "aria-hidden": "true" })], 8, tf)])
|
|
9343
9352
|
]))), 128))])) : c("", !0), I(n.$slots, "composer-context", { disabled: Pe.value }, void 0, !0)]),
|
|
9344
9353
|
_: 2
|
|
9345
9354
|
}, [
|
|
@@ -9376,7 +9385,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9376
9385
|
]), 1032, /* @__PURE__ */ "autofocus.attach-enabled.capabilities.can-continue-interrupted-turn.commands.composer-state.context-usage.disabled.draft.empty-send-prompt.follow-up-behavior.files.has-attachments.has-external-content.interrupt-armed.plugins.prompt-history.prompt-history-loading.queued-prompt-id.is-sending.leading-menu-items.menu-items.model-menu-items.mention-groups.model-catalog-status.models.placeholder.approval-preset.plan-mode.presentation.selected-model-id.selected-reasoning-effort.selected-service-tier.skill-catalog-status.skills.transcribe-audio".split("."))),
|
|
9377
9386
|
I(n.$slots, "after-composer", {}, void 0, !0)
|
|
9378
9387
|
], 64))], 512)]),
|
|
9379
|
-
default: G(() => [vt.value ? (k(), s(
|
|
9388
|
+
default: G(() => [vt.value ? (k(), s(Ld, {
|
|
9380
9389
|
key: 0,
|
|
9381
9390
|
ref_key: "messageList",
|
|
9382
9391
|
ref: b,
|
|
@@ -9477,23 +9486,23 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9477
9486
|
fn: G((e) => [I(n.$slots, "message-tool", w(_(e)), void 0, !0)]),
|
|
9478
9487
|
key: "9"
|
|
9479
9488
|
} : void 0
|
|
9480
|
-
]), 1032, /* @__PURE__ */ "actions-disabled.active-turn-id.answered-client-request-ids.aria-label.busy.can-delete-turn.can-edit-turn.can-fork-turn.can-retry-turn.deleting-turn-id.empty-label.follow-ups-disabled.has-older-messages.hidden-client-request-ids.render-strategy.loading-older-messages.initial-message-batch-size.message-batch-size.message-text-selection.messages.mention-groups.plugins.presentation.reset-key.scroll-to-bottom-label.show-tool-details.skills.tool-visibility.transform-message.turns".split("."))) : (k(), l("div",
|
|
9489
|
+
]), 1032, /* @__PURE__ */ "actions-disabled.active-turn-id.answered-client-request-ids.aria-label.busy.can-delete-turn.can-edit-turn.can-fork-turn.can-retry-turn.deleting-turn-id.empty-label.follow-ups-disabled.has-older-messages.hidden-client-request-ids.render-strategy.loading-older-messages.initial-message-batch-size.message-batch-size.message-text-selection.messages.mention-groups.plugins.presentation.reset-key.scroll-to-bottom-label.show-tool-details.skills.tool-visibility.transform-message.turns".split("."))) : (k(), l("div", Ud, [I(n.$slots, "empty", {
|
|
9481
9490
|
title: e.emptyTitle,
|
|
9482
9491
|
description: e.emptyDescription
|
|
9483
|
-
}, () => [u("div",
|
|
9492
|
+
}, () => [u("div", Wd, [u("h1", null, B(e.emptyTitle), 1), e.emptyDescription ? (k(), l("p", Gd, B(e.emptyDescription), 1)) : c("", !0)])], !0)]))]),
|
|
9484
9493
|
_: 3
|
|
9485
|
-
}))], 40,
|
|
9494
|
+
}))], 40, Hd));
|
|
9486
9495
|
}
|
|
9487
|
-
}), [["__scopeId", "data-v-be3ee0f0"]]),
|
|
9496
|
+
}), [["__scopeId", "data-v-be3ee0f0"]]), rf = {
|
|
9488
9497
|
class: "codex-conversation-sidebar",
|
|
9489
9498
|
"aria-label": "Conversations"
|
|
9490
|
-
},
|
|
9499
|
+
}, af = { class: "codex-conversation-sidebar__header" }, of = { class: "codex-conversation-sidebar__brand" }, sf = ["disabled"], cf = {
|
|
9491
9500
|
key: 0,
|
|
9492
9501
|
class: "codex-conversation-sidebar__empty"
|
|
9493
|
-
},
|
|
9502
|
+
}, lf = {
|
|
9494
9503
|
key: 1,
|
|
9495
9504
|
class: "codex-conversation-sidebar__list"
|
|
9496
|
-
},
|
|
9505
|
+
}, uf = ["aria-current", "onClick"], df = ["aria-label", "title"], ff = { class: "codex-conversation-sidebar__title" }, pf = { class: "codex-conversation-sidebar__time" }, mf = ["aria-label", "onClick"], hf = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
9497
9506
|
__name: "CodexConversationSidebar",
|
|
9498
9507
|
props: {
|
|
9499
9508
|
activeConversationId: { default: null },
|
|
@@ -9525,12 +9534,12 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9525
9534
|
let n = Math.floor(t / 60);
|
|
9526
9535
|
return n < 24 ? `${n}h` : `${Math.floor(n / 24)}d`;
|
|
9527
9536
|
}
|
|
9528
|
-
return (n, o) => (k(), l("aside",
|
|
9537
|
+
return (n, o) => (k(), l("aside", rf, [u("div", af, [u("span", of, B(e.brand), 1), u("button", {
|
|
9529
9538
|
class: "codex-conversation-sidebar__new",
|
|
9530
9539
|
type: "button",
|
|
9531
9540
|
disabled: e.createDisabled,
|
|
9532
9541
|
onClick: o[0] ||= (e) => r("create")
|
|
9533
|
-
}, [...o[1] ||= [u("span", { "aria-hidden": "true" }, "+", -1), p(" New thread ", -1)]], 8,
|
|
9542
|
+
}, [...o[1] ||= [u("span", { "aria-hidden": "true" }, "+", -1), p(" New thread ", -1)]], 8, sf)]), e.conversations.length === 0 ? (k(), l("p", cf, B(e.loading ? "Loading threads…" : "No conversations yet"), 1)) : (k(), l("nav", lf, [(k(!0), l(t, null, F(e.conversations, (t) => (k(), l("div", {
|
|
9534
9543
|
key: t.id,
|
|
9535
9544
|
class: C(["codex-conversation-sidebar__item", { "codex-conversation-sidebar__item--active": t.id === e.activeConversationId }])
|
|
9536
9545
|
}, [u("button", {
|
|
@@ -9543,10 +9552,10 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9543
9552
|
class: C(["codex-conversation-sidebar__status", `codex-conversation-sidebar__status--${t.status}`]),
|
|
9544
9553
|
"aria-label": `Status: ${t.status}`,
|
|
9545
9554
|
title: t.status
|
|
9546
|
-
}, null, 10,
|
|
9547
|
-
u("span",
|
|
9548
|
-
u("span",
|
|
9549
|
-
], 8,
|
|
9555
|
+
}, null, 10, df),
|
|
9556
|
+
u("span", ff, B(t.title), 1),
|
|
9557
|
+
u("span", pf, B(a(t.updatedAt)), 1)
|
|
9558
|
+
], 8, uf), u("button", {
|
|
9550
9559
|
class: "codex-conversation-sidebar__delete",
|
|
9551
9560
|
type: "button",
|
|
9552
9561
|
"aria-label": `Delete ${t.title}`,
|
|
@@ -9556,15 +9565,15 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9556
9565
|
"aria-hidden": "true",
|
|
9557
9566
|
fill: "none",
|
|
9558
9567
|
viewBox: "0 0 24 24"
|
|
9559
|
-
}, [u("path", { d: "M4 7h16M10 11v6m4-6v6M9 7l1-2h4l1 2m2 0-1 12H8L7 7" })], -1)]], 8,
|
|
9568
|
+
}, [u("path", { d: "M4 7h16M10 11v6m4-6v6M9 7l1-2h4l1 2m2 0-1 12H8L7 7" })], -1)]], 8, mf)], 2))), 128))]))]));
|
|
9560
9569
|
}
|
|
9561
|
-
}), [["__scopeId", "data-v-97c47314"]]),
|
|
9570
|
+
}), [["__scopeId", "data-v-97c47314"]]), gf = { class: "chat-composer-file-menu__section" }, _f = ["onMousedown"], vf = { class: "chat-composer-file-menu__name" }, yf = { class: "chat-composer-file-menu__path" }, bf = {
|
|
9562
9571
|
key: 0,
|
|
9563
9572
|
class: "chat-composer-file-menu__hint"
|
|
9564
|
-
},
|
|
9573
|
+
}, xf = {
|
|
9565
9574
|
key: 1,
|
|
9566
9575
|
class: "chat-composer-file-menu__empty"
|
|
9567
|
-
},
|
|
9576
|
+
}, Sf = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
9568
9577
|
__name: "ChatComposerFileMentionMenu",
|
|
9569
9578
|
props: {
|
|
9570
9579
|
activeIndex: {},
|
|
@@ -9585,7 +9594,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9585
9594
|
role: "listbox",
|
|
9586
9595
|
"aria-label": "Files"
|
|
9587
9596
|
}, [
|
|
9588
|
-
u("div",
|
|
9597
|
+
u("div", gf, B(H(r)("chat.files.title")), 1),
|
|
9589
9598
|
(k(!0), l(t, null, F(e.visibleFiles, (t, r) => (k(), l("button", {
|
|
9590
9599
|
key: t.path,
|
|
9591
9600
|
class: C(["chat-composer-file-menu__item", { "chat-composer-file-menu__item--active": r === e.activeIndex }]),
|
|
@@ -9597,16 +9606,16 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9597
9606
|
class: "chat-composer-file-menu__icon",
|
|
9598
9607
|
"aria-hidden": "true"
|
|
9599
9608
|
}),
|
|
9600
|
-
u("span",
|
|
9601
|
-
u("span",
|
|
9602
|
-
], 42,
|
|
9603
|
-
e.showHint ? (k(), l("div",
|
|
9609
|
+
u("span", vf, B(t.name), 1),
|
|
9610
|
+
u("span", yf, B(t.path), 1)
|
|
9611
|
+
], 42, _f))), 128)),
|
|
9612
|
+
e.showHint ? (k(), l("div", bf, B(H(r)("chat.files.hint")), 1)) : e.visibleFiles.length === 0 ? (k(), l("div", xf, B(H(r)("chat.files.empty")), 1)) : c("", !0)
|
|
9604
9613
|
], 512));
|
|
9605
9614
|
}
|
|
9606
|
-
}), [["__scopeId", "data-v-122fc71c"]]),
|
|
9615
|
+
}), [["__scopeId", "data-v-122fc71c"]]), Cf = ["onMousedown"], wf = ["src"], Tf = { class: "chat-composer-plugin-menu__main" }, Ef = { class: "chat-composer-plugin-menu__name" }, Df = { class: "chat-composer-plugin-menu__description" }, Of = {
|
|
9607
9616
|
key: 0,
|
|
9608
9617
|
class: "chat-composer-plugin-menu__empty"
|
|
9609
|
-
},
|
|
9618
|
+
}, kf = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
9610
9619
|
__name: "ChatComposerPluginMenu",
|
|
9611
9620
|
props: {
|
|
9612
9621
|
activeIndex: {},
|
|
@@ -9640,24 +9649,24 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9640
9649
|
alt: "",
|
|
9641
9650
|
"aria-hidden": "true",
|
|
9642
9651
|
referrerpolicy: "no-referrer"
|
|
9643
|
-
}, null, 8,
|
|
9652
|
+
}, null, 8, wf)) : (k(), s(H(Le), {
|
|
9644
9653
|
key: 1,
|
|
9645
9654
|
class: "chat-composer-plugin-menu__icon",
|
|
9646
9655
|
"aria-hidden": "true"
|
|
9647
|
-
})), u("span",
|
|
9648
|
-
e.visiblePlugins.length === 0 ? (k(), l("div",
|
|
9656
|
+
})), u("span", Tf, [u("span", Ef, B(H(vr)(t)), 1), u("span", Df, B(H(yr)(t)), 1)])], 42, Cf))), 128)),
|
|
9657
|
+
e.visiblePlugins.length === 0 ? (k(), l("div", Of, "No matching plugins")) : c("", !0)
|
|
9649
9658
|
], 512));
|
|
9650
9659
|
}
|
|
9651
|
-
}), [["__scopeId", "data-v-336657b0"]]),
|
|
9652
|
-
function
|
|
9653
|
-
return
|
|
9654
|
-
id: `queued-prompt-${
|
|
9660
|
+
}), [["__scopeId", "data-v-336657b0"]]), Af = 0;
|
|
9661
|
+
function jf(e) {
|
|
9662
|
+
return Af += 1, {
|
|
9663
|
+
id: `queued-prompt-${Af}`,
|
|
9655
9664
|
text: e
|
|
9656
9665
|
};
|
|
9657
9666
|
}
|
|
9658
9667
|
//#endregion
|
|
9659
9668
|
//#region src/use-codex-surface.ts
|
|
9660
|
-
var
|
|
9669
|
+
var Mf = {
|
|
9661
9670
|
status: "idle",
|
|
9662
9671
|
authentication: {
|
|
9663
9672
|
status: "notLoaded",
|
|
@@ -9702,8 +9711,8 @@ var Nf = {
|
|
|
9702
9711
|
historyLoading: !1,
|
|
9703
9712
|
error: null
|
|
9704
9713
|
};
|
|
9705
|
-
function
|
|
9706
|
-
let t = j(structuredClone(
|
|
9714
|
+
function Nf(e) {
|
|
9715
|
+
let t = j(structuredClone(Mf)), n = j(/* @__PURE__ */ new Set()), r = M(n), i = z(null), a = /* @__PURE__ */ new Set(), o = 0, s = (e) => {
|
|
9707
9716
|
Object.assign(t, e), n.clear();
|
|
9708
9717
|
for (let t of e.answeredClientRequestIds) n.add(t);
|
|
9709
9718
|
}, c = jt(e, (e) => {
|
|
@@ -9765,7 +9774,7 @@ function Pf(e) {
|
|
|
9765
9774
|
}
|
|
9766
9775
|
//#endregion
|
|
9767
9776
|
//#region src/use-codex-live-chat.ts
|
|
9768
|
-
function
|
|
9777
|
+
function Pf(e) {
|
|
9769
9778
|
let t = N("idle"), n = N(null), r = N(!1), i = N([]), a, o = !1;
|
|
9770
9779
|
function s(t) {
|
|
9771
9780
|
if (!(!("conversationId" in t) || t.conversationId !== e.conversationId)) {
|
|
@@ -9826,7 +9835,7 @@ function Ff(e) {
|
|
|
9826
9835
|
let a = new Audio();
|
|
9827
9836
|
if (a.autoplay = !0, u.audio = a, i.ontrack = (e) => {
|
|
9828
9837
|
a.srcObject = e.streams[0] ?? new MediaStream([e.track]), a.play().catch((e) => {
|
|
9829
|
-
u.cancelled || (n.value =
|
|
9838
|
+
u.cancelled || (n.value = Ff(e), d().catch(() => void 0));
|
|
9830
9839
|
});
|
|
9831
9840
|
}, i.onconnectionstatechange = () => {
|
|
9832
9841
|
u.cancelled || (i.connectionState === "connected" && (clearTimeout(u.timer), t.value = "connected"), (i.connectionState === "failed" || i.connectionState === "closed") && (n.value = "Live chat connection ended", d().catch(() => void 0)));
|
|
@@ -9846,7 +9855,7 @@ function Ff(e) {
|
|
|
9846
9855
|
n.value = "Timed out connecting live chat", d().catch(() => void 0);
|
|
9847
9856
|
}, 3e4));
|
|
9848
9857
|
} catch (e) {
|
|
9849
|
-
if (!u.cancelled) throw n.value =
|
|
9858
|
+
if (!u.cancelled) throw n.value = Ff(e), t.value = "error", c(u), await l(u).catch(() => void 0), a === u && (a = void 0), e;
|
|
9850
9859
|
} finally {
|
|
9851
9860
|
u.cancelled && c(u);
|
|
9852
9861
|
}
|
|
@@ -9858,7 +9867,7 @@ function Ff(e) {
|
|
|
9858
9867
|
try {
|
|
9859
9868
|
e.requested && await e.done?.catch(() => void 0), await l(e);
|
|
9860
9869
|
} catch (e) {
|
|
9861
|
-
throw n.value =
|
|
9870
|
+
throw n.value = Ff(e), e;
|
|
9862
9871
|
} finally {
|
|
9863
9872
|
a === e && (a = void 0), t.value = n.value ? "error" : "idle";
|
|
9864
9873
|
}
|
|
@@ -9881,16 +9890,16 @@ function Ff(e) {
|
|
|
9881
9890
|
setMuted: f
|
|
9882
9891
|
};
|
|
9883
9892
|
}
|
|
9884
|
-
function
|
|
9893
|
+
function Ff(e) {
|
|
9885
9894
|
return e instanceof Error ? e.message : String(e);
|
|
9886
9895
|
}
|
|
9887
9896
|
//#endregion
|
|
9888
9897
|
//#region src/codex-theme.ts
|
|
9889
|
-
function
|
|
9898
|
+
function If(e, t = {}) {
|
|
9890
9899
|
let n = e.getAttribute("data-codex-theme"), r = /* @__PURE__ */ new Map(), i = t.mode ?? "system";
|
|
9891
9900
|
e.setAttribute("data-codex-theme", i);
|
|
9892
9901
|
for (let [n, i] of Object.entries(t.tokens ?? {})) {
|
|
9893
|
-
let t =
|
|
9902
|
+
let t = Lf(n);
|
|
9894
9903
|
r.has(t) || r.set(t, e.style.getPropertyValue(t)), i == null || !i.trim() ? e.style.removeProperty(t) : e.style.setProperty(t, i);
|
|
9895
9904
|
}
|
|
9896
9905
|
return () => {
|
|
@@ -9898,7 +9907,7 @@ function Lf(e, t = {}) {
|
|
|
9898
9907
|
for (let [t, n] of r) n ? e.style.setProperty(t, n) : e.style.removeProperty(t);
|
|
9899
9908
|
};
|
|
9900
9909
|
}
|
|
9901
|
-
function
|
|
9910
|
+
function Lf(e) {
|
|
9902
9911
|
let t = e.trim();
|
|
9903
9912
|
if (t.startsWith("--codex-")) return t;
|
|
9904
9913
|
let n = t.replace(/^--/, "").replace(/([a-z\d])([A-Z])/g, "$1-$2").replace(/[^a-zA-Z\d-]+/g, "-").replace(/^-+|-+$/g, "").toLowerCase();
|
|
@@ -9906,6 +9915,6 @@ function Rf(e) {
|
|
|
9906
9915
|
return `--codex-${n}`;
|
|
9907
9916
|
}
|
|
9908
9917
|
//#endregion
|
|
9909
|
-
export { To as CodexAnimatedDiffStat, ga as CodexApprovalPrompt, hc as CodexAttachmentBlock,
|
|
9918
|
+
export { To as CodexAnimatedDiffStat, ga as CodexApprovalPrompt, hc as CodexAttachmentBlock, gd as CodexCompactionMessage, ta as CodexComposer, un as CodexComposerActionMenu, Kt as CodexComposerActiveModes, Mr as CodexComposerAtMentionMenu, Cs as CodexComposerDrawer, Os as CodexComposerDrawerRow, Sf as CodexComposerFileMentionMenu, cn as CodexComposerMenu, on as CodexComposerMenuList, kf as CodexComposerPluginMenu, Ht as CodexComposerSendButton, Bs as CodexComposerShelf, qr as CodexComposerSkillMenu, li as CodexComposerSlashMenu, fn as CodexComposerVoiceButton, yn as CodexComposerVoiceField, ir as CodexContextUsageIndicator, Ws as CodexConversationHistoryLoader, nf as CodexConversationPane, hf as CodexConversationSidebar, xc as CodexFoldTransition, vc as CodexFollowUps, ys as CodexGoal, nc as CodexIconButton, cc as CodexImageLightbox, Lc as CodexMediaBlock, pi as CodexMentionChip, Qc as CodexMermaidBlock, Od as CodexMessage, md as CodexMessageActions, od as CodexMessageBlock, bd as CodexMessageEditor, Ld as CodexMessageList, Ad as CodexMessageTurn, fr as CodexModelReasoningSelector, ds as CodexQuestionRequest, Ns as CodexQueuedPrompt, Ps as CodexQueuedPrompts, _i as CodexRichTextEditor, Md as CodexScrollToBottom, xu as CodexToolCall, Ro as CodexToolCallTitle, ps as CodexToolConfirmation, Ou as CodexToolGroup, Eo as CodexToolIcon, us as CodexToolUserInputRequest, Ls as CodexTurnGitInfo, sr as CodexUltrafastIcon, Ku as CodexUserText, Ju as CodexVisualizationBlock, rd as CodexWorkGroup, Vd as CodexWorkbenchLayout, If as applyCodexTheme, Jt as approvalPresetOptions, Pt as codexCapabilities, Ft as codexCommands, xn as codexConversationLinkFromHref, Xr as commandDescription, va as createCodexConversationPaneController, jf as createQueuedChatPrompt, qt as defaultApprovalPreset, er as defaultCodexChatTranslate, Mt as defaultCodexConversationPresentation, Yr as filterComposerCommands, mi as filterComposerMentionGroups, _r as filterComposerPlugins, Pr as filterComposerSkills, hi as findComposerMention, Bi as getCodexGlobalHostCapabilities, Vi as getCodexNativeRendererApi, Lu as humanizeMentionName, Ui as ingestCodexAttachments, Yt as isApprovalPreset, dl as languageForFilePath, ku as parseAuthoredUserText, bn as parseCodexEditorFileReference, ju as parseCodexUserText, Hi as pickCodexAttachments, yr as pluginDescription, vr as pluginDisplayName, br as pluginInsertText, xr as pluginMatchesMention, zr as promptSkillInputsFromText, Qn as provideCodexChatTranslate, Ri as provideCodexHostCapabilities, tu as provideCodexToolCallDetails, Ql as provideCodexToolPresentation, Dn as registerCodexToolTitlePresenter, ul as renderCodeBlock, _l as renderMarkdown, _a as resolveCodexConversationPaneValue, Nt as resolveCodexConversationPresentation, Ir as skillDescription, Fr as skillDisplayName, Lr as skillInsertText, Rr as skillMatchesMention, wa as surfaceMessageToChatMessage, Ca as toCodexChatMessage, Sa as toCodexChatMessages, $n as useCodexChatTranslate, Ji as useCodexComposerVoice, zi as useCodexHostCapabilities, Pf as useCodexLiveChat, Nf as useCodexSurface, nu as useCodexToolCallDetails, $l as useCodexToolPresentation };
|
|
9910
9919
|
|
|
9911
9920
|
//# sourceMappingURL=index.js.map
|