@redocly/replay 0.27.0-next.5 → 0.27.0-next.7

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 (52) hide show
  1. package/dist/{replay-AiChatProvider-CVvR1kSd.js → replay-AiChatProvider-Dub7iVgM.js} +273 -271
  2. package/dist/replay-AiChatProvider-e4PWUCRp.js +6 -0
  3. package/dist/{replay-AiChatSqliteDBStorage-DVJ9f2EK.js → replay-AiChatSqliteDBStorage-CpjwxLnF.js} +1 -1
  4. package/dist/{replay-AiChatSqliteDBStorage-BFHRKFlk.js → replay-AiChatSqliteDBStorage-DbxNU-ot.js} +1 -1
  5. package/dist/replay-AiPanel-B_zDmo55.js +868 -0
  6. package/dist/{replay-AiPanel-CynVcVmm.js → replay-AiPanel-DuRA2zAt.js} +1226 -1114
  7. package/dist/{replay-SqliteDBStorage-eRBPh4E8.js → replay-SqliteDBStorage-BrNleq7S.js} +1 -1
  8. package/dist/{replay-SqliteDBStorage-CSz7NYH4.js → replay-SqliteDBStorage-CafBNNLB.js} +1 -1
  9. package/dist/{replay-agent-loop-CEZz1kj-.js → replay-agent-loop-CV0s4022.js} +48 -48
  10. package/dist/{replay-agent-loop-C60p47KY.js → replay-agent-loop-CzV79Gr1.js} +1 -1
  11. package/dist/{replay-ai-chat-mappers-BAHU6JIc.js → replay-ai-chat-mappers-BNsR30dS.js} +1 -1
  12. package/dist/{replay-ai-chat-mappers-Dqg-QVZy.js → replay-ai-chat-mappers-BWeZN6p_.js} +1 -1
  13. package/dist/{replay-create-model-C2NQtDcL.js → replay-create-model-CEDEaJC8.js} +3 -3
  14. package/dist/{replay-create-model-CUL-l-eX.js → replay-create-model-CmRk68RD.js} +2 -2
  15. package/dist/{replay-db-C4jAfGtc.js → replay-db-BfSnfWcb.js} +8 -8
  16. package/dist/{replay-db-Dw-X2WGx.js → replay-db-CM8OLcFK.js} +21 -21
  17. package/dist/{replay-external-resolver-DAkLV0nr.js → replay-external-resolver-G86hjAvS.js} +2 -2
  18. package/dist/{replay-external-resolver-DN_PWq_2.js → replay-external-resolver-bdSEZsNk.js} +1 -1
  19. package/dist/{replay-index-BmX1FPBL.js → replay-index-BmotNqNI.js} +1170 -1148
  20. package/dist/replay-index-Bsag-eKM.js +1 -0
  21. package/dist/replay-index-C6SJPGDO.js +23 -0
  22. package/dist/replay-index-CUs62_1f.js +1 -0
  23. package/dist/{replay-index-rRWvC2pp.js → replay-index-C_eJVbPZ.js} +1 -1
  24. package/dist/{replay-index-O_Pq5an3.js → replay-index-Cd9LaUVx.js} +23380 -22731
  25. package/dist/{replay-index-m00jnWFr.js → replay-index-D58Mg6_y.js} +1 -1
  26. package/dist/{replay-index-DR1uVBvc.js → replay-index-DYtNY0OY.js} +42 -41
  27. package/dist/replay-lint-CxwKILeF.js +184 -0
  28. package/dist/{replay-lint-CcVVykW7.js → replay-lint-YfaLafO6.js} +8246 -8047
  29. package/dist/{replay-lint-graphql-DlD7bblx.js → replay-lint-graphql-BRrk1UK5.js} +1 -1
  30. package/dist/{replay-lint-graphql-5cGt2KR_.js → replay-lint-graphql-GtbZklco.js} +1 -1
  31. package/dist/replay-resolve-Bza6lozO.js +47 -0
  32. package/dist/{replay-resolve-Ca3DUbGq.js → replay-resolve-Rb3XjiUd.js} +919 -908
  33. package/dist/{replay-respect-run-eSRzH2dk.js → replay-respect-run-BB0VXCz-.js} +1605 -1555
  34. package/dist/replay-respect-run-Pkoy4Q3P.js +78 -0
  35. package/dist/{replay-tauri-path-C-oxFOHe.js → replay-tauri-path-B8tT4cGY.js} +2 -2
  36. package/dist/{replay-tauri-path-CKcvIl_h.js → replay-tauri-path-yOFqWleH.js} +1 -1
  37. package/dist/{replay-useAiChatQueries-CVTxcu2Z.js → replay-useAiChatQueries-1fqZwVTj.js} +71 -48
  38. package/dist/{replay-useAiChatQueries-vdKvbmp2.js → replay-useAiChatQueries-B7ZcWDmG.js} +1111 -990
  39. package/dist/{replay-validate-key-VkgZoK1f.js → replay-validate-key-C8-nF61w.js} +1 -1
  40. package/dist/{replay-validate-key-CwIopif3.js → replay-validate-key-qJOuAQJK.js} +2 -2
  41. package/dist/replay.cjs +1 -1
  42. package/dist/replay.d.ts +35 -5
  43. package/dist/replay.js +10 -10
  44. package/package.json +4 -4
  45. package/dist/replay-AiChatProvider-BGXsZqW2.js +0 -6
  46. package/dist/replay-AiPanel-qVp_s4gD.js +0 -849
  47. package/dist/replay-index-DSKZHOXq.js +0 -1
  48. package/dist/replay-index-DT5gdiBA.js +0 -21
  49. package/dist/replay-index-qZlgEmbq.js +0 -1
  50. package/dist/replay-lint-ON47l7Vu.js +0 -184
  51. package/dist/replay-resolve-BTzo-fSv.js +0 -47
  52. package/dist/replay-respect-run-BtC2agF9.js +0 -78
@@ -1,4 +1,4 @@
1
- import { aD as a } from "./replay-index-O_Pq5an3.js";
1
+ import { F as a } from "./replay-index-Cd9LaUVx.js";
2
2
  async function l(t = {}) {
3
3
  return typeof t == "object" && Object.freeze(t), await a("plugin:dialog|open", { options: t });
4
4
  }
@@ -1,10 +1,10 @@
1
- import { aK as E, aL as p } from "./replay-index-O_Pq5an3.js";
2
- import { i as N, g as T, d as k, t as P, A as F, S as w, N as V, n as L, w as $, u as Y, C as M, c as S, l as D } from "./replay-lint-CcVVykW7.js";
3
- import { a as fe, b as de, e as ge, f as he, h as ue, j as ve, k as Ee, m as Te, o as Se, D as Re, p as be, I as Oe, q as Ie, O as Ne, r as Pe, s as De, v as Ce, x as _e, y as xe, P as ze, z as je, B as ke, E as Fe, F as we, G as Ve, H as Le, J as $e, K as Ye, L as Me, M as Ue, Q as Ge, R as Ke, T as Be, U as We, V as He, W as Je, X as qe, Y as Xe, Z as Ze, _ as Qe, $ as Ae, a0 as es, a1 as ss, a2 as ts, a3 as as, a4 as ns, a5 as rs, a6 as is, a7 as os, Z as ls, a8 as cs } from "./replay-lint-CcVVykW7.js";
4
- import { B as u, n as U, r as G, m as C } from "./replay-resolve-Ca3DUbGq.js";
5
- import { R as ps, S as ys, Y as fs, e as ds, g as gs, i as hs, a as us, b as vs, c as Es, d as Ts, f as Ss, p as Rs, h as bs, j as Os, s as Is, u as Ns } from "./replay-resolve-Ca3DUbGq.js";
1
+ import { aK as u, aL as p } from "./replay-index-Cd9LaUVx.js";
2
+ import { i as N, g as T, d as j, t as P, A as F, S as w, N as V, n as L, w as $, C as Y, R as G, c as S, l as D } from "./replay-lint-YfaLafO6.js";
3
+ import { a as fe, b as de, e as ge, f as he, h as ve, j as Ee, k as ue, m as Te, o as Se, D as Re, p as be, I as Oe, q as Ie, O as Ne, r as Pe, s as De, u as Ce, v as _e, x as xe, P as ke, y as ze, z as je, B as Fe, E as we, F as Ve, G as Le, H as $e, J as Ye, K as Ge, L as Me, M as Ue, Q as Ke, T as Be, U as We, V as He, W as Je, X as qe, Y as Xe, Z as Ze, _ as Qe, $ as Ae, a0 as es, a1 as ss, a2 as ts, a3 as as, a4 as ns, a5 as rs, a6 as is, a7 as os, Z as ls, a8 as cs } from "./replay-lint-YfaLafO6.js";
4
+ import { B as v, n as M, r as U, m as C } from "./replay-resolve-Rb3XjiUd.js";
5
+ import { R as ps, S as ys, Y as fs, e as ds, g as gs, i as hs, a as vs, b as Es, c as us, d as Ts, f as Ss, h as Rs, p as bs, j as Os, k as Is, s as Ns, u as Ps } from "./replay-resolve-Rb3XjiUd.js";
6
6
  function ae(e) {
7
- return (E.extname(e) === ".yaml" || E.extname(e) === ".yml") && !1;
7
+ return (u.extname(e) === ".yaml" || u.extname(e) === ".yml") && !1;
8
8
  }
9
9
  function ne(e) {
10
10
  return p(e) && !N(e);
@@ -12,7 +12,7 @@ function ne(e) {
12
12
  async function re(e) {
13
13
  return new Promise((s) => setTimeout(s, e));
14
14
  }
15
- const v = "type", R = ["api-description", "api-operation", "data-schema"];
15
+ const E = "type", R = ["api-description", "api-operation", "data-schema"];
16
16
  function K(e, s) {
17
17
  const { ctx: t } = T("EntityFileDefault", s), { ctx: a, discriminatorResolver: n } = T("EntityFile", e);
18
18
  return {
@@ -23,7 +23,7 @@ function K(e, s) {
23
23
  properties: {},
24
24
  items: (o) => {
25
25
  if (p(o)) {
26
- const l = o[v];
26
+ const l = o[E];
27
27
  if (!l)
28
28
  return "Entity";
29
29
  const i = n?.(o, l);
@@ -254,7 +254,7 @@ function q(e, s, t) {
254
254
  const r = n[e];
255
255
  try {
256
256
  const o = JSON.parse(s);
257
- if (k(r, o))
257
+ if (j(r, o))
258
258
  return r;
259
259
  } catch {
260
260
  return null;
@@ -288,16 +288,16 @@ function Z(e, s, t) {
288
288
  };
289
289
  }
290
290
  async function Q(e) {
291
- const { document: s, entitySchema: t, entityDefaultSchema: a, severity: n, externalRefResolver: r = new u(), assertionConfig: o = {} } = e, l = {
291
+ const { document: s, entitySchema: t, entityDefaultSchema: a, severity: n, externalRefResolver: r = new v(), assertionConfig: o = {} } = e, l = {
292
292
  problems: [],
293
293
  specVersion: "entity",
294
294
  visitorsData: {}
295
- }, { entityTypes: i, discriminatorResolver: y } = K(t, a), c = U(i);
295
+ }, { entityTypes: i, discriminatorResolver: y } = K(t, a), c = M(i);
296
296
  let m = c.Entity;
297
297
  if (Array.isArray(s.parsed))
298
298
  m = c.EntityFileArray;
299
299
  else if (p(s.parsed)) {
300
- const g = s.parsed[v];
300
+ const g = s.parsed[E];
301
301
  if (!g)
302
302
  m = c.Entity;
303
303
  else {
@@ -332,7 +332,7 @@ async function Q(e) {
332
332
  visitor: W()
333
333
  },
334
334
  ...f
335
- ], z = L(x, c), j = await G({
335
+ ], k = L(x, c), z = await U({
336
336
  rootDocument: s,
337
337
  rootType: m,
338
338
  externalRefResolver: r
@@ -340,18 +340,18 @@ async function Q(e) {
340
340
  return $({
341
341
  document: s,
342
342
  rootType: m,
343
- normalizedVisitors: z,
344
- resolvedRefMap: j,
343
+ normalizedVisitors: k,
344
+ resolvedRefMap: z,
345
345
  ctx: l
346
346
  }), l.problems;
347
347
  }
348
348
  async function ce(e, s, t) {
349
349
  if (!s.rules)
350
350
  throw new Error(`Scorecard level "${s.name}" has no rules defined.`);
351
- const a = new u(), n = C(JSON.stringify(e, null, 2), "entity"), r = n.parsed[v], o = H(r || "unknown", s.rules), { entityRules: l, apiRules: i } = J(o), y = await Q({
351
+ const a = new v(), n = C(JSON.stringify(e, null, 2), "entity"), r = n.parsed[E], o = H(r || "unknown", s.rules), { entityRules: l, apiRules: i } = J(o), y = await Q({
352
352
  document: n,
353
353
  entitySchema: Y,
354
- entityDefaultSchema: M,
354
+ entityDefaultSchema: G,
355
355
  externalRefResolver: a,
356
356
  assertionConfig: l
357
357
  });
@@ -393,7 +393,7 @@ async function ce(e, s, t) {
393
393
  return y;
394
394
  }
395
395
  async function A(e) {
396
- const { schema: s, schemaKey: t, config: a, sourceDocument: n, specType: r, externalRefResolver: o = new u(a.resolve) } = e, l = n.parsed, i = l[r], y = l.info, c = C(JSON.stringify({
396
+ const { schema: s, schemaKey: t, config: a, sourceDocument: n, specType: r, externalRefResolver: o = new v(a.resolve) } = e, l = n.parsed, i = l[r], y = l.info, c = C(JSON.stringify({
397
397
  [r]: i,
398
398
  info: y,
399
399
  components: {
@@ -415,10 +415,10 @@ export {
415
415
  de as Arazzo1_1Types,
416
416
  ge as AsyncApi2Types,
417
417
  he as AsyncApi3Types,
418
- u as BaseResolver,
419
- ue as CONFIG_BUNDLER_VISITOR_ID,
420
- ve as CONFIG_FILE_NAME,
421
- Ee as Config,
418
+ v as BaseResolver,
419
+ ve as CONFIG_BUNDLER_VISITOR_ID,
420
+ Ee as CONFIG_FILE_NAME,
421
+ ue as Config,
422
422
  Te as ConfigTypes,
423
423
  Se as ConfigValidationError,
424
424
  Re as DEFAULT_CONFIG,
@@ -432,45 +432,46 @@ export {
432
432
  Ce as Oas3_2Types,
433
433
  _e as OpenRpcTypes,
434
434
  xe as Overlay1Types,
435
- ze as PLUGINS_COLLECTOR_VISITOR_ID,
435
+ ke as PLUGINS_COLLECTOR_VISITOR_ID,
436
436
  ps as ResolveError,
437
437
  ys as Source,
438
438
  oe as StatsAsync2,
439
439
  le as StatsAsync3,
440
440
  ie as StatsOAS,
441
441
  fs as YamlParseError,
442
- je as bundle,
443
- ke as bundleDocument,
442
+ ze as bundle,
443
+ je as bundleDocument,
444
444
  Fe as bundleFromString,
445
445
  we as clearPluginsCache,
446
446
  S as createConfig,
447
447
  Ve as createConfigTypes,
448
448
  K as createEntityTypes,
449
- k as dequal,
449
+ j as dequal,
450
450
  Le as detectSpec,
451
451
  ae as doesYamlFileExist,
452
452
  ds as escapePointerFragment,
453
453
  $e as findConfig,
454
454
  Ye as formatProblems,
455
- Me as getAstNodeByPointer,
456
- Ue as getCodeframe,
455
+ Ge as getAstNodeByPointer,
456
+ Me as getCodeframe,
457
457
  gs as getDir,
458
- Ge as getLineColLocation,
458
+ Ue as getLineColLocation,
459
459
  Ke as getMajorSpecVersion,
460
460
  Be as getPluginCacheVersion,
461
461
  We as getTotals,
462
462
  He as getTypes,
463
463
  hs as isAbsoluteUrl,
464
- us as isBrowser,
464
+ vs as isBrowser,
465
465
  N as isEmptyObject,
466
- vs as isMappingRef,
466
+ Es as isGraphqlRef,
467
+ us as isMappingRef,
467
468
  Je as isNotEmptyArray,
468
469
  ne as isNotEmptyObject,
469
470
  p as isPlainObject,
470
- Es as isRef,
471
+ Ts as isRef,
471
472
  qe as isString,
472
- Ts as isSupportedExtension,
473
- Ss as isTruthy,
473
+ Ss as isSupportedExtension,
474
+ Rs as isTruthy,
474
475
  Xe as keysOf,
475
476
  Ze as lint,
476
477
  Qe as lintConfig,
@@ -484,19 +485,19 @@ export {
484
485
  ts as logger,
485
486
  C as makeDocumentFromString,
486
487
  as as mapTypeToComponent,
487
- U as normalizeTypes,
488
+ M as normalizeTypes,
488
489
  L as normalizeVisitors,
489
- Rs as parseYaml,
490
+ bs as parseYaml,
490
491
  re as pause,
491
492
  ns as pluralize,
492
- bs as readFileFromUrl,
493
+ Os as readFileFromUrl,
493
494
  rs as regexFromString,
494
- G as resolveDocument,
495
- Os as resolvePath,
495
+ U as resolveDocument,
496
+ Is as resolvePath,
496
497
  is as resolvePlugins,
497
498
  os as slash,
498
- Is as stringifyYaml,
499
- Ns as unescapePointerFragment,
499
+ Ns as stringifyYaml,
500
+ Ps as unescapePointerFragment,
500
501
  ls as validate,
501
502
  $ as walkDocument,
502
503
  cs as xmlEscape