@codex-app-sdk/vue 0.19.9 → 0.20.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"CodexMessageTurn.vue.d.ts","sourceRoot":"","sources":["../../src/components/CodexMessageTurn.vue"],"names":[],"mappings":"AAoKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAOzF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAK5C,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,OAAO,GAAG,cAAc,CAAA;CAClC,CAAA;AAGD,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,wBAAwB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC9C,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,OAAO,EAAE,SAAS,SAAS,EAAE,CAAA;IAC7B,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,MAAM,CAAC,EAAE,sBAAsB,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;AA8IF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAG/C,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,C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AAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
package/dist/index.js CHANGED
@@ -3458,7 +3458,7 @@ var pa = { class: "chat-composer__input-row" }, ma = { class: "chat-composer__me
3458
3458
  }
3459
3459
  function st(e) {
3460
3460
  let t = f.value.trim();
3461
- if (!ce.value || e === "steer" && !t && !r.hasAttachments) return;
3461
+ if (!ce.value || e === "steer" && !t && !r.hasAttachments && !r.hasExternalContent) return;
3462
3462
  let n = B.value ? `/${B.value.slashName ?? B.value.name}` : null, a = n && t ? `${n} ${t}` : t || (r.hasAttachments ? "(no user instructions)" : ""), o = se(v.value?.readContent() ?? [{
3463
3463
  type: "text",
3464
3464
  text: t
@@ -3847,7 +3847,7 @@ var pa = { class: "chat-composer__input-row" }, ma = { class: "chat-composer__me
3847
3847
  ])])
3848
3848
  ], 34));
3849
3849
  }
3850
- }), [["__scopeId", "data-v-c21808fb"]]), va = { class: "codex-chat-theme codex-request-card chat-tool-confirmation" }, ya = { class: "codex-request-header chat-tool-confirmation__header" }, ba = { class: "codex-request-eyebrow chat-tool-confirmation__tag" }, xa = { class: "codex-request-title chat-tool-confirmation__question" }, Sa = {
3850
+ }), [["__scopeId", "data-v-4474d877"]]), va = { class: "codex-chat-theme codex-request-card chat-tool-confirmation" }, ya = { class: "codex-request-header chat-tool-confirmation__header" }, ba = { class: "codex-request-eyebrow chat-tool-confirmation__tag" }, xa = { class: "codex-request-title chat-tool-confirmation__question" }, Sa = {
3851
3851
  key: 0,
3852
3852
  class: "codex-request-description chat-tool-confirmation__description"
3853
3853
  }, Ca = {
@@ -7904,7 +7904,7 @@ var _d = ["aria-busy", "aria-label"], vd = ["title"], yd = ["title"], bd = /*#__
7904
7904
  let n = e, r = t, i = o(() => n.entries.map((e) => ({
7905
7905
  entry: e,
7906
7906
  message: za(e.message)
7907
- }))), a = o(() => n.turnId), s = o(() => i.value.some(({ message: e }) => e.role === "assistant" && _o(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" && ro(e).length > 0 || e.role === "assistant" && ro(e).some((e) => (n.showToolBlocks || e.type !== "tool" && e.type !== "tool-group") && vo(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));
7907
+ }))), a = o(() => n.turnId), s = o(() => i.value.some(({ message: e }) => e.role === "assistant" && _o(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(() => n.itemsView !== "summary" && !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" && ro(e).length > 0 || e.role === "assistant" && ro(e).some((e) => (n.showToolBlocks || e.type !== "tool" && e.type !== "tool-group") && vo(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 && S.value && (n.detailsLoading || n.itemsView === "summary" && !n.detailsError));
7908
7908
  W(d, (e, t) => {
7909
7909
  e && !t && !C.value && (S.value = !1);
7910
7910
  }), W([f, g], ([e, t]) => {
@@ -7947,7 +7947,7 @@ var _d = ["aria-busy", "aria-label"], vd = ["title"], yd = ["title"], bd = /*#__
7947
7947
  }
7948
7948
  return (e, t) => (k(), l("div", Fd, [I(e.$slots, "default", {}, void 0, !0)]));
7949
7949
  }
7950
- }), [["__scopeId", "data-v-964be11a"]]), Ld = ["aria-label", "title"], Rd = /*#__PURE__*/ $(/* @__PURE__ */ h({
7950
+ }), [["__scopeId", "data-v-74a82909"]]), Ld = ["aria-label", "title"], Rd = /*#__PURE__*/ $(/* @__PURE__ */ h({
7951
7951
  __name: "CodexScrollToBottom",
7952
7952
  props: { label: { default: "Scroll to bottom" } },
7953
7953
  emits: ["click"],