@redocly/replay 0.31.0-next.3 → 0.31.0-next.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.
Files changed (70) hide show
  1. package/dist/{replay-AiChatProvider-Cuo8x0ff.js → replay-AiChatProvider-DF95dPI4.js} +6 -6
  2. package/dist/{replay-AiChatSqliteDBStorage-Cj4xkdFz.js → replay-AiChatSqliteDBStorage-DFai0iTB.js} +1 -1
  3. package/dist/{replay-AiPanel-Dm_sNNeL.js → replay-AiPanel-DWJrryHB.js} +26 -31
  4. package/dist/{replay-FileWatcher-0Bmib4dK.js → replay-FileWatcher-DhpdT_VS.js} +2 -2
  5. package/dist/{replay-SemanticSearchService-D4YjQR5-.js → replay-SemanticSearchService-C9AkUyVE.js} +1 -1
  6. package/dist/{replay-SqliteDBStorage-snMqhV35.js → replay-SqliteDBStorage-DT9_LMLs.js} +1 -1
  7. package/dist/{replay-TauriFileSystemAdapter-bAK0DIvp.js → replay-TauriFileSystemAdapter-C16TSOZg.js} +1 -1
  8. package/dist/{replay-TauriRootStorage-DAYZ414x.js → replay-TauriRootStorage-BNacv6Qu.js} +2 -2
  9. package/dist/{replay-agent-loop-qyzKV3mo.js → replay-agent-loop-Om_DXb5S.js} +3 -3
  10. package/dist/{replay-ai-chat-mappers-BAe0oFmS.js → replay-ai-chat-mappers-T6Rn74yZ.js} +1 -1
  11. package/dist/{replay-create-model-BEoVz7Ji.js → replay-create-model-CWTiZi7t.js} +16108 -17055
  12. package/dist/{replay-db-DMKqL3h6.js → replay-db-DGrxiWzT.js} +1 -1
  13. package/dist/{replay-external-resolver-DCN1lkbA.js → replay-external-resolver-1QWjOOVR.js} +2 -2
  14. package/dist/{replay-index-BvZDjF45.js → replay-index-BZZ4OP90.js} +1 -1
  15. package/dist/replay-index-CEqxKoBH.js +4 -0
  16. package/dist/{replay-index-Bo3TEqX0.js → replay-index-CTTaOYRK.js} +1 -1
  17. package/dist/{replay-index-BHjBRyB3.js → replay-index-CiOV_Ucc.js} +23399 -22851
  18. package/dist/{replay-index-DZ1tkFgq.js → replay-index-DF2XA7Wl.js} +1 -1
  19. package/dist/replay-index-DVf85Dg1.js +917 -0
  20. package/dist/{replay-lint-T24IsDM8.js → replay-lint-B6TsU9Uq.js} +7560 -6763
  21. package/dist/{replay-lint-graphql-CZtMsHz-.js → replay-lint-graphql-CmPzfY7b.js} +2 -2
  22. package/dist/{replay-periodic-revalidation-BHLdYOFw.js → replay-periodic-revalidation-B77h_-F6.js} +1 -1
  23. package/dist/{replay-resolve-DIE-MBAc.js → replay-resolve-9K6-oXdr.js} +886 -866
  24. package/dist/{replay-respect-run-50PYi6j2.js → replay-respect-run-Cpt4Fgtq.js} +1844 -1790
  25. package/dist/{replay-tauri-path-CKxG25k9.js → replay-tauri-path-wnkmhbG_.js} +2 -2
  26. package/dist/{replay-useAiChatQueries-mMfaDZ5s.js → replay-useAiChatQueries-CTLNVgPv.js} +83 -81
  27. package/dist/{replay-validate-key-taJ0a7Z_.js → replay-validate-key-C5YTZaNy.js} +2 -2
  28. package/dist/replay.js +1 -1
  29. package/package.json +8 -9
  30. package/dist/oauth2-redirect.cjs +0 -1
  31. package/dist/replay-AiChatProvider-iPTdlp7T.js +0 -6
  32. package/dist/replay-AiChatSqliteDBStorage-BAUsAhPY.js +0 -1
  33. package/dist/replay-AiPanel-Bn2z_RC-.js +0 -741
  34. package/dist/replay-FileWatcher-CSNd_juo.js +0 -1
  35. package/dist/replay-HistorySqliteDBStorage-BrILW8Fu.js +0 -1
  36. package/dist/replay-Observable-bjJ6wkRB.js +0 -1
  37. package/dist/replay-SemanticSearchService-DdDe4QRB.js +0 -1
  38. package/dist/replay-SqliteDBStorage-C81Ns5uk.js +0 -14
  39. package/dist/replay-StepContextSqliteDBStorage-BSepLyBI.js +0 -1
  40. package/dist/replay-TauriFileSystemAdapter-IgI3iLBq.js +0 -1
  41. package/dist/replay-TauriRootStorage-Ck5_FUc2.js +0 -1
  42. package/dist/replay-agent-loop-MetNOO5W.js +0 -1
  43. package/dist/replay-ai-chat-mappers-BZ4yaQTm.js +0 -1
  44. package/dist/replay-ai-message-parts.schema-BBdjwldJ.js +0 -1
  45. package/dist/replay-create-model-Bv2837Bc.js +0 -104
  46. package/dist/replay-db-C5FJ_vSh.js +0 -64
  47. package/dist/replay-defaults-DVvOnvnR.js +0 -27
  48. package/dist/replay-external-resolver-BdagmP7Q.js +0 -2
  49. package/dist/replay-history.schema-miM3Etuf.js +0 -1
  50. package/dist/replay-index-0Yt7t6Z2.js +0 -577
  51. package/dist/replay-index-B5BMRDgs.js +0 -1
  52. package/dist/replay-index-BUx40Nkf.js +0 -1
  53. package/dist/replay-index-C5rpe6OU.js +0 -4
  54. package/dist/replay-index-D8rrXWx9.js +0 -1
  55. package/dist/replay-index-DBkr5-ap.js +0 -7438
  56. package/dist/replay-index-Qup2K90F.js +0 -1
  57. package/dist/replay-index-Y0OU8J0E.js +0 -1
  58. package/dist/replay-indexes-Dqjl8m6C.js +0 -1
  59. package/dist/replay-lint-B3RgfCeS.js +0 -130
  60. package/dist/replay-lint-graphql-DekIfP8E.js +0 -1
  61. package/dist/replay-oauth2-redirect-handler-BfZRvm6l.js +0 -4
  62. package/dist/replay-periodic-revalidation-D3-joAo0.js +0 -1
  63. package/dist/replay-promise-map-limit-DDfN3Ygo.js +0 -1
  64. package/dist/replay-resolve-o5oxpXCI.js +0 -53
  65. package/dist/replay-respect-run-CYC3kgFU.js +0 -73
  66. package/dist/replay-step-context.schema-BuuXkAck.js +0 -1
  67. package/dist/replay-tauri-path-CXjp0Fsn.js +0 -1
  68. package/dist/replay-useAiChatQueries-BavVwZlq.js +0 -215
  69. package/dist/replay-validate-key-Bk5lGsX4.js +0 -1
  70. package/dist/replay.cjs +0 -1
@@ -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-BHjBRyB3.js";
4
- import { A as Xe, D as Ze, l as et } from "./replay-create-model-BEoVz7Ji.js";
5
- import { AgentLoop as tt } from "./replay-agent-loop-qyzKV3mo.js";
6
- import { s as nt } from "./replay-db-DMKqL3h6.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-mMfaDZ5s.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-CiOV_Ucc.js";
4
+ import { A as Xe, D as Ze, l as et } from "./replay-create-model-CWTiZi7t.js";
5
+ import { AgentLoop as tt } from "./replay-agent-loop-Om_DXb5S.js";
6
+ import { s as nt } from "./replay-db-DGrxiWzT.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-CTLNVgPv.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-BAe0oFmS.js";
9
+ import { d as Se, g as me } from "./replay-ai-chat-mappers-T6Rn74yZ.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-BAe0oFmS.js";
4
+ import { c, a as u, b as m } from "./replay-ai-chat-mappers-T6Rn74yZ.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-BHjBRyB3.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-mMfaDZ5s.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-CiOV_Ucc.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-CTLNVgPv.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-DMKqL3h6.js";
10
+ import { M as z } from "./replay-db-DGrxiWzT.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-D4YjQR5-.js";
28
+ import { g as Te } from "./replay-SemanticSearchService-C9AkUyVE.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-BHjBRyB3.js";
2
- import { g } from "./replay-SemanticSearchService-D4YjQR5-.js";
1
+ import { q as f, t as w, P as m, u as v, v as C, D as F } from "./replay-index-CiOV_Ucc.js";
2
+ import { g } from "./replay-SemanticSearchService-C9AkUyVE.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-BHjBRyB3.js";
1
+ import { q as f, V as Q, W as X, I as y } from "./replay-index-CiOV_Ucc.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-BHjBRyB3.js";
1
+ import { q as Qe } from "./replay-index-CiOV_Ucc.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-BHjBRyB3.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-CiOV_Ucc.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-BHjBRyB3.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-CiOV_Ucc.js";
2
2
  import { p as J } from "./replay-promise-map-limit-DglaAlWc.js";
3
- import { TauriFileSystemAdapter as X } from "./replay-TauriFileSystemAdapter-bAK0DIvp.js";
3
+ import { TauriFileSystemAdapter as X } from "./replay-TauriFileSystemAdapter-C16TSOZg.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-BEoVz7Ji.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-BHjBRyB3.js";
3
- import { g as U } from "./replay-db-DMKqL3h6.js";
1
+ import { a as O, p as w, T as L, i as J, c as D, s as $ } from "./replay-create-model-CWTiZi7t.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-CiOV_Ucc.js";
3
+ import { g as U } from "./replay-db-DGrxiWzT.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-BHjBRyB3.js";
1
+ import { y as n, R as d, A as i } from "./replay-index-CiOV_Ucc.js";
2
2
  function A() {
3
3
  return `aichat_${n()}`;
4
4
  }