@redocly/replay 0.31.0-next.4 → 0.31.0-next.6

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.
Files changed (32) hide show
  1. package/dist/{replay-AiChatProvider-DmFb_KEh.js → replay-AiChatProvider-CV9DUb_-.js} +6 -6
  2. package/dist/{replay-AiChatSqliteDBStorage-DPCC1JxA.js → replay-AiChatSqliteDBStorage-BFEyqvr8.js} +1 -1
  3. package/dist/{replay-AiPanel-Duce6bPI.js → replay-AiPanel-DmzGuuSQ.js} +26 -31
  4. package/dist/{replay-FileWatcher-CuDTvKR_.js → replay-FileWatcher-CIGL35HB.js} +2 -2
  5. package/dist/{replay-SemanticSearchService-UD-ISya0.js → replay-SemanticSearchService-CUfoNuvR.js} +1 -1
  6. package/dist/{replay-SqliteDBStorage-yz16M_Mv.js → replay-SqliteDBStorage-DrRaVJqC.js} +1 -1
  7. package/dist/{replay-TauriFileSystemAdapter-D6ELx87H.js → replay-TauriFileSystemAdapter-Bwl7UUzV.js} +1 -1
  8. package/dist/{replay-TauriRootStorage-BBtrm1uU.js → replay-TauriRootStorage-D26SUyiD.js} +2 -2
  9. package/dist/{replay-agent-loop-X-3QP3_I.js → replay-agent-loop-CrimHDXe.js} +3 -3
  10. package/dist/{replay-ai-chat-mappers-Cn5M5bfQ.js → replay-ai-chat-mappers-C8SbEqZQ.js} +1 -1
  11. package/dist/{replay-create-model-I01u52en.js → replay-create-model-Bb6G3SMI.js} +16108 -17055
  12. package/dist/{replay-db-_AqPojpS.js → replay-db-D6OPItrR.js} +1 -1
  13. package/dist/{replay-external-resolver-B9jDVIjA.js → replay-external-resolver-BivDnyzd.js} +2 -2
  14. package/dist/replay-index-CEqJEwMV.js +917 -0
  15. package/dist/{replay-index-NeiVLZKP.js → replay-index-D9fqcKuo.js} +1 -1
  16. package/dist/{replay-index-vq6dCDYU.js → replay-index-DBOkHLJ1.js} +1 -1
  17. package/dist/{replay-index-5x470UiG.js → replay-index-DpNZqtfa.js} +1 -1
  18. package/dist/{replay-index-Bd6nBD-g.js → replay-index-DxQ-bRJ-.js} +24248 -23603
  19. package/dist/replay-index-Dzrhrnzp.js +4 -0
  20. package/dist/{replay-lint-Bag9E2VE.js → replay-lint-B1carxC2.js} +6569 -5787
  21. package/dist/{replay-lint-graphql-Dy_zzWSu.js → replay-lint-graphql-DxiD9Apj.js} +2 -2
  22. package/dist/{replay-periodic-revalidation-ZF9THDF0.js → replay-periodic-revalidation-Z92wFdAa.js} +1 -1
  23. package/dist/{replay-resolve-C-3GwDKX.js → replay-resolve-KCayE22f.js} +886 -866
  24. package/dist/{replay-respect-run-CGAeb4ct.js → replay-respect-run-CJZW6ZvP.js} +123 -123
  25. package/dist/{replay-tauri-path-JPWbAoK0.js → replay-tauri-path-goqCdKKW.js} +2 -2
  26. package/dist/{replay-useAiChatQueries-B8RKvZ6W.js → replay-useAiChatQueries-BHjMUusg.js} +83 -81
  27. package/dist/{replay-validate-key-BA81wxhp.js → replay-validate-key-DpxgR65_.js} +2 -2
  28. package/dist/replay.d.ts +25 -10
  29. package/dist/replay.js +1 -1
  30. package/package.json +6 -6
  31. package/dist/replay-index-BW65Uxno.js +0 -4
  32. package/dist/replay-index-CryjpI5N.js +0 -576
@@ -1,12 +1,12 @@
1
1
  import { jsx as te } from "react/jsx-runtime";
2
2
  import { useRef as W, useCallback as f, useSyncExternalStore as re, useEffect as R, useMemo as I, useState as z } from "react";
3
- import { a8 as S, a9 as ce, X as _e, aa as Re, ab as $e, ac as $, ad as Pe, ae as xe, c as De, af as We, ag as Be, a as Oe, ah as Ue, ai as Fe, aj as Le, ak as je, al as fe, am as Ne, an as Ke, ao as qe, ap as Ae, aq as se, ar as ue, as as Te, at as Qe, au as Ve, av as Ge, aw as ye, J as ge, K as He, R as ne, ax as ze, ay as ae, az as Ye, aA as Je } from "./replay-index-Bd6nBD-g.js";
4
- import { A as Xe, D as Ze, l as et } from "./replay-create-model-I01u52en.js";
5
- import { AgentLoop as tt } from "./replay-agent-loop-X-3QP3_I.js";
6
- import { s as nt } from "./replay-db-_AqPojpS.js";
7
- import { r as st, g as rt, a as ot, o as at, s as it, w as lt, m as ct, b as ut, u as dt, c as ht, d as pt, e as ft, f as gt, h as mt, i as vt, A as wt, j as Ct, k as It } from "./replay-useAiChatQueries-B8RKvZ6W.js";
3
+ import { a8 as S, a9 as ce, X as _e, aa as Re, ab as $e, ac as $, ad as Pe, ae as xe, c as De, af as We, ag as Be, a as Oe, ah as Ue, ai as Fe, aj as Le, ak as je, al as fe, am as Ne, an as Ke, ao as qe, ap as Ae, aq as se, ar as ue, as as Te, at as Qe, au as Ve, av as Ge, aw as ye, J as ge, K as He, R as ne, ax as ze, ay as ae, az as Ye, aA as Je } from "./replay-index-DxQ-bRJ-.js";
4
+ import { A as Xe, D as Ze, l as et } from "./replay-create-model-Bb6G3SMI.js";
5
+ import { AgentLoop as tt } from "./replay-agent-loop-CrimHDXe.js";
6
+ import { s as nt } from "./replay-db-D6OPItrR.js";
7
+ import { r as st, g as rt, a as ot, o as at, s as it, w as lt, m as ct, b as ut, u as dt, c as ht, d as pt, e as ft, f as gt, h as mt, i as vt, A as wt, j as Ct, k as It } from "./replay-useAiChatQueries-BHjMUusg.js";
8
8
  import { useQueryClient as de, useMutation as he } from "@tanstack/react-query";
9
- import { d as Se, g as me } from "./replay-ai-chat-mappers-Cn5M5bfQ.js";
9
+ import { d as Se, g as me } from "./replay-ai-chat-mappers-C8SbEqZQ.js";
10
10
  class At {
11
11
  handlers = /* @__PURE__ */ new Map();
12
12
  middlewares;
@@ -1,7 +1,7 @@
1
1
  import "./replay-history.schema-B0lLwmdG.js";
2
2
  import "./replay-step-context.schema-BOprzd6Z.js";
3
3
  import { a as h, b as r, c as n } from "./replay-ai-message-parts.schema-DKLf0SiG.js";
4
- import { c, a as u, b as m } from "./replay-ai-chat-mappers-Cn5M5bfQ.js";
4
+ import { c, a as u, b as m } from "./replay-ai-chat-mappers-C8SbEqZQ.js";
5
5
  import { b as l, e, c as b } from "./replay-indexes-B3PJtgeh.js";
6
6
  const g = {
7
7
  orderBy: [l(r.createdAt), l(r.indexWithinInsertBatch)],
@@ -1,13 +1,13 @@
1
1
  import { jsxs as m, jsx as i, Fragment as Ne } from "react/jsx-runtime";
2
2
  import { useCallback as _, useMemo as A, useState as Y, Fragment as ht, useRef as F, useEffect as B, useLayoutEffect as je } from "react";
3
3
  import c, { css as ue } from "styled-components";
4
- import { ab as be, aB as Ce, aC as mt, ao as gt, ap as vt, v as yt, aD as fe, aE as pe, F as V, aF as xe, aG as xt, aH as wt, aI as ke, c as bt, aJ as Ct, aK as Ue, aL as kt, aM as Tt, R as he, A as le, aN as We, aw as Ge, aO as we, aP as U, aQ as It } from "./replay-index-Bd6nBD-g.js";
5
- import { l as At, n as St, p as Lt, q as Pt, T as Et, t as Rt, v as Ot, x as Ye, C as I, y as Dt, z as qe, L as Mt, B as Q, D as _t, E as zt, F as Vt, G as $t, H as N } from "./replay-useAiChatQueries-B8RKvZ6W.js";
4
+ import { ab as be, aB as Ce, aC as mt, ao as gt, ap as vt, v as yt, aD as fe, aE as pe, F as V, aF as xe, aG as xt, aH as wt, aI as ke, c as bt, aJ as Ct, aK as Ue, aL as kt, aM as Tt, R as he, A as le, aN as We, aw as Ge, aO as we, aP as U, aQ as It } from "./replay-index-DxQ-bRJ-.js";
5
+ import { l as At, n as St, p as Lt, q as Pt, T as Et, t as Rt, v as Ot, x as Ye, C as I, y as Dt, z as qe, L as Mt, B as Q, D as _t, E as zt, F as Vt, G as $t, H as N } from "./replay-useAiChatQueries-BHjMUusg.js";
6
6
  import { AI_SEARCH_MAX_MESSAGE_LENGTH as Ht } from "@redocly/theme/core/constants/search";
7
7
  import { Button as P } from "@redocly/theme/components/Button/Button";
8
8
  import { SendIcon as Bt } from "@redocly/theme/icons/SendIcon/SendIcon";
9
9
  import { StopIcon as Ft } from "@redocly/theme/icons/StopIcon/StopIcon";
10
- import { M as z } from "./replay-db-_AqPojpS.js";
10
+ import { M as z } from "./replay-db-D6OPItrR.js";
11
11
  import { CheckboxIcon as Nt } from "@redocly/theme/icons/CheckboxIcon/CheckboxIcon";
12
12
  import { CheckmarkFilledIcon as jt } from "@redocly/theme/icons/CheckmarkFilledIcon/CheckmarkFilledIcon";
13
13
  import { CloseFilledIcon as Ut } from "@redocly/theme/icons/CloseFilledIcon/CloseFilledIcon";
@@ -25,7 +25,7 @@ import { ChatGptIcon as Qt } from "@redocly/theme/icons/ChatGptIcon/ChatGptIcon"
25
25
  import { GeminiIcon as en } from "@redocly/theme/icons/GeminiIcon/GeminiIcon";
26
26
  import { ClaudeIcon as tn } from "@redocly/theme/icons/ClaudeIcon/ClaudeIcon";
27
27
  import { Tooltip as W } from "@redocly/theme/components/Tooltip/Tooltip";
28
- import { g as Te } from "./replay-SemanticSearchService-UD-ISya0.js";
28
+ import { g as Te } from "./replay-SemanticSearchService-CUfoNuvR.js";
29
29
  import "@tanstack/react-query";
30
30
  import { Typography as Z } from "@redocly/theme/components/Typography/Typography";
31
31
  import { TrashCanIcon as nn } from "@redocly/theme/icons/TrashCanIcon/TrashCanIcon";
@@ -2517,6 +2517,12 @@ const dt = c(ct)`
2517
2517
  }
2518
2518
  }
2519
2519
  `, ci = c(Z)`
2520
+ min-width: 0;
2521
+ padding: 0;
2522
+ border: 0;
2523
+ background: none;
2524
+ text-align: left;
2525
+ cursor: pointer;
2520
2526
  overflow: hidden;
2521
2527
  white-space: nowrap;
2522
2528
  text-overflow: ellipsis;
@@ -2526,33 +2532,22 @@ const dt = c(ct)`
2526
2532
  `;
2527
2533
  function di(e) {
2528
2534
  const { chat: t, onSelect: n, onRemove: r } = e;
2529
- return /* @__PURE__ */ i(ai, { children: /* @__PURE__ */ i(W, { tip: U(t.updatedAt).format("MMM DD, YYYY, hh:mm:ss A"), className: "expanded", children: /* @__PURE__ */ m(
2530
- si,
2531
- {
2532
- role: "button",
2533
- tabIndex: 0,
2534
- onClick: () => n?.(t.id),
2535
- onKeyDown: (o) => {
2536
- o.target === o.currentTarget && (o.key === "Enter" || o.key === " ") && (o.preventDefault(), n?.(t.id));
2537
- },
2538
- children: [
2539
- /* @__PURE__ */ i(ci, { children: t.title ?? "New chat" }),
2540
- /* @__PURE__ */ i(
2541
- P,
2542
- {
2543
- variant: "ghost",
2544
- size: "small",
2545
- tone: "danger",
2546
- icon: /* @__PURE__ */ i(nn, {}),
2547
- "aria-label": "Delete chat",
2548
- onClick: (o) => {
2549
- o.stopPropagation(), r?.(t.id);
2550
- }
2551
- }
2552
- )
2553
- ]
2554
- }
2555
- ) }) });
2535
+ return /* @__PURE__ */ i(ai, { children: /* @__PURE__ */ i(W, { tip: U(t.updatedAt).format("MMM DD, YYYY, hh:mm:ss A"), className: "expanded", children: /* @__PURE__ */ m(si, { onClick: () => n?.(t.id), children: [
2536
+ /* @__PURE__ */ i(ci, { as: "button", type: "button", children: t.title ?? "New chat" }),
2537
+ /* @__PURE__ */ i(
2538
+ P,
2539
+ {
2540
+ variant: "ghost",
2541
+ size: "small",
2542
+ tone: "danger",
2543
+ icon: /* @__PURE__ */ i(nn, {}),
2544
+ "aria-label": "Delete chat",
2545
+ onClick: (o) => {
2546
+ o.stopPropagation(), r?.(t.id);
2547
+ }
2548
+ }
2549
+ )
2550
+ ] }) }) });
2556
2551
  }
2557
2552
  function ui(e) {
2558
2553
  const { group: t, onChatSelect: n, onChatRemove: r } = e;
@@ -1,5 +1,5 @@
1
- import { q as f, t as w, P as m, u as v, v as C, D as F } from "./replay-index-Bd6nBD-g.js";
2
- import { g } from "./replay-SemanticSearchService-UD-ISya0.js";
1
+ import { q as f, t as w, P as m, u as v, v as C, D as F } from "./replay-index-DxQ-bRJ-.js";
2
+ import { g } from "./replay-SemanticSearchService-CUfoNuvR.js";
3
3
  var E;
4
4
  (function(l) {
5
5
  l.WINDOW_RESIZED = "tauri://resize", l.WINDOW_MOVED = "tauri://move", l.WINDOW_CLOSE_REQUESTED = "tauri://close-requested", l.WINDOW_DESTROYED = "tauri://destroyed", l.WINDOW_FOCUS = "tauri://focus", l.WINDOW_BLUR = "tauri://blur", l.WINDOW_SCALE_FACTOR_CHANGED = "tauri://scale-change", l.WINDOW_THEME_CHANGED = "tauri://theme-changed", l.WINDOW_CREATED = "tauri://window-created", l.WEBVIEW_CREATED = "tauri://webview-created", l.DRAG_ENTER = "tauri://drag-enter", l.DRAG_OVER = "tauri://drag-over", l.DRAG_DROP = "tauri://drag-drop", l.DRAG_LEAVE = "tauri://drag-leave";
@@ -1,4 +1,4 @@
1
- import { q as f, V as Q, W as X, I as y } from "./replay-index-Bd6nBD-g.js";
1
+ import { q as f, V as Q, W as X, I as y } from "./replay-index-DxQ-bRJ-.js";
2
2
  import { O as z } from "./replay-Observable-D6wKbFwB.js";
3
3
  import { p as K } from "./replay-promise-map-limit-DglaAlWc.js";
4
4
  function w(t) {
@@ -1,4 +1,4 @@
1
- import { q as Qe } from "./replay-index-Bd6nBD-g.js";
1
+ import { q as Qe } from "./replay-index-DxQ-bRJ-.js";
2
2
  import { h as Ve } from "./replay-history.schema-B0lLwmdG.js";
3
3
  import { s as Ue } from "./replay-step-context.schema-BOprzd6Z.js";
4
4
  import { b as J, c as X, a as ee } from "./replay-ai-message-parts.schema-DKLf0SiG.js";
@@ -1,4 +1,4 @@
1
- import { m as o, r as u, j as c, P as d, b as h, e as l, s as w, w as y, d as m, f } from "./replay-index-Bd6nBD-g.js";
1
+ import { m as o, r as u, j as c, P as d, b as h, e as l, s as w, w as y, d as m, f } from "./replay-index-DxQ-bRJ-.js";
2
2
  import { O as E } from "./replay-Observable-D6wKbFwB.js";
3
3
  const F = /* @__PURE__ */ new Set(["node_modules"]), T = /\(os error [23]\)/;
4
4
  function g(r) {
@@ -1,6 +1,6 @@
1
- import { X as he, Y as fe, Z as k, _ as de, $ as N, a0 as H, a1 as pe, a2 as ve, a3 as _e, O as F, v as me, N as O, q as we, a4 as ye, a5 as ge, P as Pe, D as be } from "./replay-index-Bd6nBD-g.js";
1
+ import { X as he, Y as fe, Z as k, _ as de, $ as N, a0 as H, a1 as pe, a2 as ve, a3 as _e, O as F, v as me, N as O, q as we, a4 as ye, a5 as ge, P as Pe, D as be } from "./replay-index-DxQ-bRJ-.js";
2
2
  import { p as J } from "./replay-promise-map-limit-DglaAlWc.js";
3
- import { TauriFileSystemAdapter as X } from "./replay-TauriFileSystemAdapter-D6ELx87H.js";
3
+ import { TauriFileSystemAdapter as X } from "./replay-TauriFileSystemAdapter-Bwl7UUzV.js";
4
4
  var B = { exports: {} }, Z;
5
5
  function Ee() {
6
6
  return Z || (Z = 1, (function(n) {
@@ -1,6 +1,6 @@
1
- import { a as O, p as w, T as L, i as J, c as D, s as $ } from "./replay-create-model-I01u52en.js";
2
- import { J as g, K as _, L as S, N as M, T as W, O as I, Q as z, U as K } from "./replay-index-Bd6nBD-g.js";
3
- import { g as U } from "./replay-db-_AqPojpS.js";
1
+ import { a as O, p as w, T as L, i as J, c as D, s as $ } from "./replay-create-model-Bb6G3SMI.js";
2
+ import { J as g, K as _, L as S, N as M, T as W, O as I, Q as z, U as K } from "./replay-index-DxQ-bRJ-.js";
3
+ import { g as U } from "./replay-db-D6OPItrR.js";
4
4
  import { L as G, C as B } from "./replay-defaults-CzR6jw9a.js";
5
5
  function y(t) {
6
6
  const e = t.toLowerCase(), n = [
@@ -1,4 +1,4 @@
1
- import { y as n, R as d, A as i } from "./replay-index-Bd6nBD-g.js";
1
+ import { y as n, R as d, A as i } from "./replay-index-DxQ-bRJ-.js";
2
2
  function A() {
3
3
  return `aichat_${n()}`;
4
4
  }