@codex-app-sdk/vue 0.19.3 → 0.19.4
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(() => 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 && (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);
|
|
@@ -7875,13 +7883,13 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7875
7883
|
], () => {
|
|
7876
7884
|
S.value && n.itemsView === "summary" && !n.detailsLoading && !n.detailsError && n.turnId && r("loadTurnHistory", n.turnId);
|
|
7877
7885
|
}, { immediate: !0 });
|
|
7878
|
-
function
|
|
7886
|
+
function T(e) {
|
|
7879
7887
|
let t = Va(e).filter((e) => n.showToolBlocks || e.type !== "tool" && e.type !== "tool-group");
|
|
7880
7888
|
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
7889
|
}
|
|
7882
|
-
return (e, t) => (k(), l("div",
|
|
7890
|
+
return (e, t) => (k(), l("div", kd, [I(e.$slots, "default", {}, void 0, !0)]));
|
|
7883
7891
|
}
|
|
7884
|
-
}), [["__scopeId", "data-v-
|
|
7892
|
+
}), [["__scopeId", "data-v-ea4d9485"]]), jd = ["aria-label", "title"], Md = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
7885
7893
|
__name: "CodexScrollToBottom",
|
|
7886
7894
|
props: { label: { default: "Scroll to bottom" } },
|
|
7887
7895
|
emits: ["click"],
|
|
@@ -7897,9 +7905,9 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
7897
7905
|
"aria-hidden": "true",
|
|
7898
7906
|
size: 24,
|
|
7899
7907
|
"stroke-width": 1.75
|
|
7900
|
-
})], 8,
|
|
7908
|
+
})], 8, jd));
|
|
7901
7909
|
}
|
|
7902
|
-
}), [["__scopeId", "data-v-5a75ce89"]]),
|
|
7910
|
+
}), [["__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
7911
|
__name: "CodexMessageList",
|
|
7904
7912
|
props: {
|
|
7905
7913
|
actionsDisabled: { type: Boolean },
|
|
@@ -8293,7 +8301,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
8293
8301
|
onClickCapture: he,
|
|
8294
8302
|
onPointerdown: ge,
|
|
8295
8303
|
onScroll: pe
|
|
8296
|
-
}, [u("div",
|
|
8304
|
+
}, [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
8305
|
key: i.key,
|
|
8298
8306
|
entries: i.entries,
|
|
8299
8307
|
"answered-client-request-ids": e.answeredClientRequestIds,
|
|
@@ -8315,7 +8323,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
8315
8323
|
}, [n.$slots.message ? I(n.$slots, "message", {
|
|
8316
8324
|
message: H(Ca)(J(t.message, i.turnId)),
|
|
8317
8325
|
index: t.index
|
|
8318
|
-
}, void 0, !0, 0) : (k(), s(
|
|
8326
|
+
}, void 0, !0, 0) : (k(), s(Od, {
|
|
8319
8327
|
key: 1,
|
|
8320
8328
|
"activity-state": t.activityState,
|
|
8321
8329
|
"actions-disabled": e.actionsDisabled,
|
|
@@ -8415,7 +8423,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
8415
8423
|
"show-tool-details",
|
|
8416
8424
|
"skills",
|
|
8417
8425
|
"thread-actions-disabled"
|
|
8418
|
-
]))], 8,
|
|
8426
|
+
]))], 8, Id))), 128))]),
|
|
8419
8427
|
_: 2
|
|
8420
8428
|
}, 1032, [
|
|
8421
8429
|
"entries",
|
|
@@ -8429,20 +8437,20 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
8429
8437
|
"items-view",
|
|
8430
8438
|
"details-loading",
|
|
8431
8439
|
"details-error"
|
|
8432
|
-
]))), 128))])], 544), ce.value ? (k(), s(
|
|
8440
|
+
]))), 128))])], 544), ce.value ? (k(), s(Md, {
|
|
8433
8441
|
key: 0,
|
|
8434
8442
|
class: "codex-message-list__scroll-to-bottom",
|
|
8435
8443
|
label: e.scrollToBottomLabel,
|
|
8436
8444
|
onClick: ze
|
|
8437
|
-
}, null, 8, ["label"])) : c("", !0)], 8,
|
|
8445
|
+
}, null, 8, ["label"])) : c("", !0)], 8, Nd));
|
|
8438
8446
|
}
|
|
8439
|
-
}), [["__scopeId", "data-v-65a073f4"]]),
|
|
8447
|
+
}), [["__scopeId", "data-v-65a073f4"]]), Rd = {
|
|
8440
8448
|
key: 0,
|
|
8441
8449
|
class: "codex-workbench-layout__body codex-workbench-layout__body--scroll"
|
|
8442
|
-
},
|
|
8450
|
+
}, zd = { class: "codex-workbench-layout__body-content" }, Bd = {
|
|
8443
8451
|
key: 1,
|
|
8444
8452
|
class: "codex-workbench-layout__body codex-workbench-layout__body--child"
|
|
8445
|
-
},
|
|
8453
|
+
}, Vd = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
8446
8454
|
__name: "CodexWorkbenchLayout",
|
|
8447
8455
|
props: { scrollMode: { default: "body" } },
|
|
8448
8456
|
setup(e) {
|
|
@@ -8468,7 +8476,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
8468
8476
|
class: C(["codex-chat-theme codex-workbench-layout", `codex-workbench-layout--${e.scrollMode}`]),
|
|
8469
8477
|
style: T(a.value)
|
|
8470
8478
|
}, [
|
|
8471
|
-
e.scrollMode === "body" ? (k(), l("div",
|
|
8479
|
+
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
8480
|
r.$slots.header ? (k(), l("div", {
|
|
8473
8481
|
key: 2,
|
|
8474
8482
|
ref_key: "headerEl",
|
|
@@ -8483,36 +8491,36 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
8483
8491
|
}, [I(r.$slots, "footer", {}, void 0, !0)], 512)) : c("", !0)
|
|
8484
8492
|
], 6));
|
|
8485
8493
|
}
|
|
8486
|
-
}), [["__scopeId", "data-v-661ca7b5"]]),
|
|
8494
|
+
}), [["__scopeId", "data-v-661ca7b5"]]), Hd = [
|
|
8487
8495
|
"aria-busy",
|
|
8488
8496
|
"aria-label",
|
|
8489
8497
|
"data-codex-generating"
|
|
8490
|
-
],
|
|
8498
|
+
], Ud = {
|
|
8491
8499
|
key: 1,
|
|
8492
8500
|
class: "codex-conversation-pane__hero"
|
|
8493
|
-
},
|
|
8501
|
+
}, Wd = { class: "codex-conversation-pane__hero-copy" }, Gd = { key: 0 }, Kd = {
|
|
8494
8502
|
key: 0,
|
|
8495
8503
|
class: "codex-conversation-pane__error",
|
|
8496
8504
|
role: "alert"
|
|
8497
|
-
},
|
|
8505
|
+
}, qd = {
|
|
8498
8506
|
key: 1,
|
|
8499
8507
|
class: "codex-conversation-pane__approvals"
|
|
8500
|
-
},
|
|
8508
|
+
}, Jd = {
|
|
8501
8509
|
key: 0,
|
|
8502
8510
|
class: "codex-conversation-pane__pending-question"
|
|
8503
|
-
},
|
|
8511
|
+
}, Yd = ["aria-label"], Xd = {
|
|
8504
8512
|
key: 0,
|
|
8505
8513
|
class: "codex-conversation-pane__attachments",
|
|
8506
8514
|
"aria-label": "Prompt attachments"
|
|
8507
|
-
},
|
|
8515
|
+
}, Zd = ["src", "alt"], Qd = {
|
|
8508
8516
|
key: 1,
|
|
8509
8517
|
class: "codex-conversation-pane__attachment-file",
|
|
8510
8518
|
"aria-hidden": "true"
|
|
8511
|
-
},
|
|
8519
|
+
}, $d = ["title"], ef = { class: "codex-conversation-pane__attachment-actions" }, tf = [
|
|
8512
8520
|
"aria-label",
|
|
8513
8521
|
"disabled",
|
|
8514
8522
|
"onClick"
|
|
8515
|
-
],
|
|
8523
|
+
], nf = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
8516
8524
|
__name: "CodexConversationPane",
|
|
8517
8525
|
props: {
|
|
8518
8526
|
ariaLabel: { default: "Conversation" },
|
|
@@ -9183,7 +9191,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9183
9191
|
}, [_t.value ? (k(), s(Ws, {
|
|
9184
9192
|
key: 0,
|
|
9185
9193
|
class: "codex-conversation-pane__history-loader"
|
|
9186
|
-
})) : (k(), s(
|
|
9194
|
+
})) : (k(), s(Vd, {
|
|
9187
9195
|
key: 1,
|
|
9188
9196
|
class: "codex-conversation-pane__layout",
|
|
9189
9197
|
"scroll-mode": "child"
|
|
@@ -9192,7 +9200,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9192
9200
|
ref_key: "footerElement",
|
|
9193
9201
|
ref: y,
|
|
9194
9202
|
class: "codex-conversation-pane__footer"
|
|
9195
|
-
}, [Fe.value ? (k(), l("p",
|
|
9203
|
+
}, [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
9204
|
key: Ee.value.id,
|
|
9197
9205
|
approval: Ee.value,
|
|
9198
9206
|
disabled: Pe.value,
|
|
@@ -9298,7 +9306,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9298
9306
|
"onUpdate:reasoningEffort": _n,
|
|
9299
9307
|
"onUpdate:serviceTier": vn
|
|
9300
9308
|
}, d({
|
|
9301
|
-
"before-meta": G(() => [ye.value.length > 0 ? (k(), l("span",
|
|
9309
|
+
"before-meta": G(() => [ye.value.length > 0 ? (k(), l("span", Jd, [u("button", {
|
|
9302
9310
|
class: "codex-conversation-pane__pending-question-cancel",
|
|
9303
9311
|
type: "button",
|
|
9304
9312
|
"aria-label": "Cancel pending question",
|
|
@@ -9314,8 +9322,8 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9314
9322
|
type: "button",
|
|
9315
9323
|
"aria-label": ye.value.length === 1 ? "Pending question" : `${ye.value.length} pending questions`,
|
|
9316
9324
|
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",
|
|
9325
|
+
}, B(ye.value.length === 1 ? "Pending question" : `${ye.value.length} pending questions`), 9, Yd)])) : c("", !0)]),
|
|
9326
|
+
before: G(() => [q.value.length > 0 ? (k(), l("div", Xd, [(k(!0), l(t, null, F(q.value, (e, t) => (k(), l("div", {
|
|
9319
9327
|
key: e.id,
|
|
9320
9328
|
class: "codex-conversation-pane__attachment"
|
|
9321
9329
|
}, [
|
|
@@ -9324,12 +9332,12 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9324
9332
|
class: "codex-conversation-pane__attachment-preview",
|
|
9325
9333
|
src: e.previewUrl,
|
|
9326
9334
|
alt: e.name
|
|
9327
|
-
}, null, 8,
|
|
9335
|
+
}, null, 8, Zd)) : (k(), l("span", Qd, "📎")),
|
|
9328
9336
|
u("span", {
|
|
9329
9337
|
class: "codex-conversation-pane__attachment-name",
|
|
9330
9338
|
title: e.name
|
|
9331
|
-
}, B(e.name), 9,
|
|
9332
|
-
u("span",
|
|
9339
|
+
}, B(e.name), 9, $d),
|
|
9340
|
+
u("span", ef, [I(n.$slots, "composer-attachment-actions", {
|
|
9333
9341
|
attachments: q.value,
|
|
9334
9342
|
index: t,
|
|
9335
9343
|
disabled: Pe.value
|
|
@@ -9339,7 +9347,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9339
9347
|
"aria-label": `Remove ${e.name}`,
|
|
9340
9348
|
disabled: Pe.value,
|
|
9341
9349
|
onClick: (t) => Kt(e.id)
|
|
9342
|
-
}, [m(H(tt), { "aria-hidden": "true" })], 8,
|
|
9350
|
+
}, [m(H(tt), { "aria-hidden": "true" })], 8, tf)])
|
|
9343
9351
|
]))), 128))])) : c("", !0), I(n.$slots, "composer-context", { disabled: Pe.value }, void 0, !0)]),
|
|
9344
9352
|
_: 2
|
|
9345
9353
|
}, [
|
|
@@ -9376,7 +9384,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9376
9384
|
]), 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
9385
|
I(n.$slots, "after-composer", {}, void 0, !0)
|
|
9378
9386
|
], 64))], 512)]),
|
|
9379
|
-
default: G(() => [vt.value ? (k(), s(
|
|
9387
|
+
default: G(() => [vt.value ? (k(), s(Ld, {
|
|
9380
9388
|
key: 0,
|
|
9381
9389
|
ref_key: "messageList",
|
|
9382
9390
|
ref: b,
|
|
@@ -9477,23 +9485,23 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9477
9485
|
fn: G((e) => [I(n.$slots, "message-tool", w(_(e)), void 0, !0)]),
|
|
9478
9486
|
key: "9"
|
|
9479
9487
|
} : 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",
|
|
9488
|
+
]), 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
9489
|
title: e.emptyTitle,
|
|
9482
9490
|
description: e.emptyDescription
|
|
9483
|
-
}, () => [u("div",
|
|
9491
|
+
}, () => [u("div", Wd, [u("h1", null, B(e.emptyTitle), 1), e.emptyDescription ? (k(), l("p", Gd, B(e.emptyDescription), 1)) : c("", !0)])], !0)]))]),
|
|
9484
9492
|
_: 3
|
|
9485
|
-
}))], 40,
|
|
9493
|
+
}))], 40, Hd));
|
|
9486
9494
|
}
|
|
9487
|
-
}), [["__scopeId", "data-v-be3ee0f0"]]),
|
|
9495
|
+
}), [["__scopeId", "data-v-be3ee0f0"]]), rf = {
|
|
9488
9496
|
class: "codex-conversation-sidebar",
|
|
9489
9497
|
"aria-label": "Conversations"
|
|
9490
|
-
},
|
|
9498
|
+
}, af = { class: "codex-conversation-sidebar__header" }, of = { class: "codex-conversation-sidebar__brand" }, sf = ["disabled"], cf = {
|
|
9491
9499
|
key: 0,
|
|
9492
9500
|
class: "codex-conversation-sidebar__empty"
|
|
9493
|
-
},
|
|
9501
|
+
}, lf = {
|
|
9494
9502
|
key: 1,
|
|
9495
9503
|
class: "codex-conversation-sidebar__list"
|
|
9496
|
-
},
|
|
9504
|
+
}, 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
9505
|
__name: "CodexConversationSidebar",
|
|
9498
9506
|
props: {
|
|
9499
9507
|
activeConversationId: { default: null },
|
|
@@ -9525,12 +9533,12 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9525
9533
|
let n = Math.floor(t / 60);
|
|
9526
9534
|
return n < 24 ? `${n}h` : `${Math.floor(n / 24)}d`;
|
|
9527
9535
|
}
|
|
9528
|
-
return (n, o) => (k(), l("aside",
|
|
9536
|
+
return (n, o) => (k(), l("aside", rf, [u("div", af, [u("span", of, B(e.brand), 1), u("button", {
|
|
9529
9537
|
class: "codex-conversation-sidebar__new",
|
|
9530
9538
|
type: "button",
|
|
9531
9539
|
disabled: e.createDisabled,
|
|
9532
9540
|
onClick: o[0] ||= (e) => r("create")
|
|
9533
|
-
}, [...o[1] ||= [u("span", { "aria-hidden": "true" }, "+", -1), p(" New thread ", -1)]], 8,
|
|
9541
|
+
}, [...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
9542
|
key: t.id,
|
|
9535
9543
|
class: C(["codex-conversation-sidebar__item", { "codex-conversation-sidebar__item--active": t.id === e.activeConversationId }])
|
|
9536
9544
|
}, [u("button", {
|
|
@@ -9543,10 +9551,10 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9543
9551
|
class: C(["codex-conversation-sidebar__status", `codex-conversation-sidebar__status--${t.status}`]),
|
|
9544
9552
|
"aria-label": `Status: ${t.status}`,
|
|
9545
9553
|
title: t.status
|
|
9546
|
-
}, null, 10,
|
|
9547
|
-
u("span",
|
|
9548
|
-
u("span",
|
|
9549
|
-
], 8,
|
|
9554
|
+
}, null, 10, df),
|
|
9555
|
+
u("span", ff, B(t.title), 1),
|
|
9556
|
+
u("span", pf, B(a(t.updatedAt)), 1)
|
|
9557
|
+
], 8, uf), u("button", {
|
|
9550
9558
|
class: "codex-conversation-sidebar__delete",
|
|
9551
9559
|
type: "button",
|
|
9552
9560
|
"aria-label": `Delete ${t.title}`,
|
|
@@ -9556,15 +9564,15 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9556
9564
|
"aria-hidden": "true",
|
|
9557
9565
|
fill: "none",
|
|
9558
9566
|
viewBox: "0 0 24 24"
|
|
9559
|
-
}, [u("path", { d: "M4 7h16M10 11v6m4-6v6M9 7l1-2h4l1 2m2 0-1 12H8L7 7" })], -1)]], 8,
|
|
9567
|
+
}, [u("path", { d: "M4 7h16M10 11v6m4-6v6M9 7l1-2h4l1 2m2 0-1 12H8L7 7" })], -1)]], 8, mf)], 2))), 128))]))]));
|
|
9560
9568
|
}
|
|
9561
|
-
}), [["__scopeId", "data-v-97c47314"]]),
|
|
9569
|
+
}), [["__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
9570
|
key: 0,
|
|
9563
9571
|
class: "chat-composer-file-menu__hint"
|
|
9564
|
-
},
|
|
9572
|
+
}, xf = {
|
|
9565
9573
|
key: 1,
|
|
9566
9574
|
class: "chat-composer-file-menu__empty"
|
|
9567
|
-
},
|
|
9575
|
+
}, Sf = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
9568
9576
|
__name: "ChatComposerFileMentionMenu",
|
|
9569
9577
|
props: {
|
|
9570
9578
|
activeIndex: {},
|
|
@@ -9585,7 +9593,7 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9585
9593
|
role: "listbox",
|
|
9586
9594
|
"aria-label": "Files"
|
|
9587
9595
|
}, [
|
|
9588
|
-
u("div",
|
|
9596
|
+
u("div", gf, B(H(r)("chat.files.title")), 1),
|
|
9589
9597
|
(k(!0), l(t, null, F(e.visibleFiles, (t, r) => (k(), l("button", {
|
|
9590
9598
|
key: t.path,
|
|
9591
9599
|
class: C(["chat-composer-file-menu__item", { "chat-composer-file-menu__item--active": r === e.activeIndex }]),
|
|
@@ -9597,16 +9605,16 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9597
9605
|
class: "chat-composer-file-menu__icon",
|
|
9598
9606
|
"aria-hidden": "true"
|
|
9599
9607
|
}),
|
|
9600
|
-
u("span",
|
|
9601
|
-
u("span",
|
|
9602
|
-
], 42,
|
|
9603
|
-
e.showHint ? (k(), l("div",
|
|
9608
|
+
u("span", vf, B(t.name), 1),
|
|
9609
|
+
u("span", yf, B(t.path), 1)
|
|
9610
|
+
], 42, _f))), 128)),
|
|
9611
|
+
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
9612
|
], 512));
|
|
9605
9613
|
}
|
|
9606
|
-
}), [["__scopeId", "data-v-122fc71c"]]),
|
|
9614
|
+
}), [["__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
9615
|
key: 0,
|
|
9608
9616
|
class: "chat-composer-plugin-menu__empty"
|
|
9609
|
-
},
|
|
9617
|
+
}, kf = /*#__PURE__*/ Z(/* @__PURE__ */ h({
|
|
9610
9618
|
__name: "ChatComposerPluginMenu",
|
|
9611
9619
|
props: {
|
|
9612
9620
|
activeIndex: {},
|
|
@@ -9640,24 +9648,24 @@ var fd = ["aria-busy", "aria-label"], pd = ["title"], md = ["title"], hd = /*#__
|
|
|
9640
9648
|
alt: "",
|
|
9641
9649
|
"aria-hidden": "true",
|
|
9642
9650
|
referrerpolicy: "no-referrer"
|
|
9643
|
-
}, null, 8,
|
|
9651
|
+
}, null, 8, wf)) : (k(), s(H(Le), {
|
|
9644
9652
|
key: 1,
|
|
9645
9653
|
class: "chat-composer-plugin-menu__icon",
|
|
9646
9654
|
"aria-hidden": "true"
|
|
9647
|
-
})), u("span",
|
|
9648
|
-
e.visiblePlugins.length === 0 ? (k(), l("div",
|
|
9655
|
+
})), u("span", Tf, [u("span", Ef, B(H(vr)(t)), 1), u("span", Df, B(H(yr)(t)), 1)])], 42, Cf))), 128)),
|
|
9656
|
+
e.visiblePlugins.length === 0 ? (k(), l("div", Of, "No matching plugins")) : c("", !0)
|
|
9649
9657
|
], 512));
|
|
9650
9658
|
}
|
|
9651
|
-
}), [["__scopeId", "data-v-336657b0"]]),
|
|
9652
|
-
function
|
|
9653
|
-
return
|
|
9654
|
-
id: `queued-prompt-${
|
|
9659
|
+
}), [["__scopeId", "data-v-336657b0"]]), Af = 0;
|
|
9660
|
+
function jf(e) {
|
|
9661
|
+
return Af += 1, {
|
|
9662
|
+
id: `queued-prompt-${Af}`,
|
|
9655
9663
|
text: e
|
|
9656
9664
|
};
|
|
9657
9665
|
}
|
|
9658
9666
|
//#endregion
|
|
9659
9667
|
//#region src/use-codex-surface.ts
|
|
9660
|
-
var
|
|
9668
|
+
var Mf = {
|
|
9661
9669
|
status: "idle",
|
|
9662
9670
|
authentication: {
|
|
9663
9671
|
status: "notLoaded",
|
|
@@ -9702,8 +9710,8 @@ var Nf = {
|
|
|
9702
9710
|
historyLoading: !1,
|
|
9703
9711
|
error: null
|
|
9704
9712
|
};
|
|
9705
|
-
function
|
|
9706
|
-
let t = j(structuredClone(
|
|
9713
|
+
function Nf(e) {
|
|
9714
|
+
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
9715
|
Object.assign(t, e), n.clear();
|
|
9708
9716
|
for (let t of e.answeredClientRequestIds) n.add(t);
|
|
9709
9717
|
}, c = jt(e, (e) => {
|
|
@@ -9765,7 +9773,7 @@ function Pf(e) {
|
|
|
9765
9773
|
}
|
|
9766
9774
|
//#endregion
|
|
9767
9775
|
//#region src/use-codex-live-chat.ts
|
|
9768
|
-
function
|
|
9776
|
+
function Pf(e) {
|
|
9769
9777
|
let t = N("idle"), n = N(null), r = N(!1), i = N([]), a, o = !1;
|
|
9770
9778
|
function s(t) {
|
|
9771
9779
|
if (!(!("conversationId" in t) || t.conversationId !== e.conversationId)) {
|
|
@@ -9826,7 +9834,7 @@ function Ff(e) {
|
|
|
9826
9834
|
let a = new Audio();
|
|
9827
9835
|
if (a.autoplay = !0, u.audio = a, i.ontrack = (e) => {
|
|
9828
9836
|
a.srcObject = e.streams[0] ?? new MediaStream([e.track]), a.play().catch((e) => {
|
|
9829
|
-
u.cancelled || (n.value =
|
|
9837
|
+
u.cancelled || (n.value = Ff(e), d().catch(() => void 0));
|
|
9830
9838
|
});
|
|
9831
9839
|
}, i.onconnectionstatechange = () => {
|
|
9832
9840
|
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 +9854,7 @@ function Ff(e) {
|
|
|
9846
9854
|
n.value = "Timed out connecting live chat", d().catch(() => void 0);
|
|
9847
9855
|
}, 3e4));
|
|
9848
9856
|
} catch (e) {
|
|
9849
|
-
if (!u.cancelled) throw n.value =
|
|
9857
|
+
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
9858
|
} finally {
|
|
9851
9859
|
u.cancelled && c(u);
|
|
9852
9860
|
}
|
|
@@ -9858,7 +9866,7 @@ function Ff(e) {
|
|
|
9858
9866
|
try {
|
|
9859
9867
|
e.requested && await e.done?.catch(() => void 0), await l(e);
|
|
9860
9868
|
} catch (e) {
|
|
9861
|
-
throw n.value =
|
|
9869
|
+
throw n.value = Ff(e), e;
|
|
9862
9870
|
} finally {
|
|
9863
9871
|
a === e && (a = void 0), t.value = n.value ? "error" : "idle";
|
|
9864
9872
|
}
|
|
@@ -9881,16 +9889,16 @@ function Ff(e) {
|
|
|
9881
9889
|
setMuted: f
|
|
9882
9890
|
};
|
|
9883
9891
|
}
|
|
9884
|
-
function
|
|
9892
|
+
function Ff(e) {
|
|
9885
9893
|
return e instanceof Error ? e.message : String(e);
|
|
9886
9894
|
}
|
|
9887
9895
|
//#endregion
|
|
9888
9896
|
//#region src/codex-theme.ts
|
|
9889
|
-
function
|
|
9897
|
+
function If(e, t = {}) {
|
|
9890
9898
|
let n = e.getAttribute("data-codex-theme"), r = /* @__PURE__ */ new Map(), i = t.mode ?? "system";
|
|
9891
9899
|
e.setAttribute("data-codex-theme", i);
|
|
9892
9900
|
for (let [n, i] of Object.entries(t.tokens ?? {})) {
|
|
9893
|
-
let t =
|
|
9901
|
+
let t = Lf(n);
|
|
9894
9902
|
r.has(t) || r.set(t, e.style.getPropertyValue(t)), i == null || !i.trim() ? e.style.removeProperty(t) : e.style.setProperty(t, i);
|
|
9895
9903
|
}
|
|
9896
9904
|
return () => {
|
|
@@ -9898,7 +9906,7 @@ function Lf(e, t = {}) {
|
|
|
9898
9906
|
for (let [t, n] of r) n ? e.style.setProperty(t, n) : e.style.removeProperty(t);
|
|
9899
9907
|
};
|
|
9900
9908
|
}
|
|
9901
|
-
function
|
|
9909
|
+
function Lf(e) {
|
|
9902
9910
|
let t = e.trim();
|
|
9903
9911
|
if (t.startsWith("--codex-")) return t;
|
|
9904
9912
|
let n = t.replace(/^--/, "").replace(/([a-z\d])([A-Z])/g, "$1-$2").replace(/[^a-zA-Z\d-]+/g, "-").replace(/^-+|-+$/g, "").toLowerCase();
|
|
@@ -9906,6 +9914,6 @@ function Rf(e) {
|
|
|
9906
9914
|
return `--codex-${n}`;
|
|
9907
9915
|
}
|
|
9908
9916
|
//#endregion
|
|
9909
|
-
export { To as CodexAnimatedDiffStat, ga as CodexApprovalPrompt, hc as CodexAttachmentBlock,
|
|
9917
|
+
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
9918
|
|
|
9911
9919
|
//# sourceMappingURL=index.js.map
|